521 lines
2.2 MiB
521 lines
2.2 MiB
System.register([],(function(en,tn){"use strict";return{execute:function(){var en="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(en){var tn={exports:{}};return en(tn,tn.exports),tn.exports}var check=function(en){return en&&en.Math==Math&&en},nn=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof en&&en)||function(){return this}()||Function("return this")(),fails=function(en){try{return!!en()}catch(en){return!0}},rn=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),an={}.propertyIsEnumerable,sn=Object.getOwnPropertyDescriptor,cn={f:sn&&!an.call({1:2},1)?function propertyIsEnumerable(en){var tn=sn(this,en);return!!tn&&tn.enumerable}:an},createPropertyDescriptor=function(en,tn){return{enumerable:!(1&en),configurable:!(2&en),writable:!(4&en),value:tn}},un={}.toString,classofRaw=function(en){return un.call(en).slice(8,-1)},dn="".split,pn=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(en){return"String"==classofRaw(en)?dn.call(en,""):Object(en)}:Object,requireObjectCoercible=function(en){if(null==en)throw TypeError("Can't call method on "+en);return en},toIndexedObject=function(en){return pn(requireObjectCoercible(en))},isObject=function(en){return"object"==typeof en?null!==en:"function"==typeof en},toPrimitive=function(en,tn){if(!isObject(en))return en;var nn,rn;if(tn&&"function"==typeof(nn=en.toString)&&!isObject(rn=nn.call(en)))return rn;if("function"==typeof(nn=en.valueOf)&&!isObject(rn=nn.call(en)))return rn;if(!tn&&"function"==typeof(nn=en.toString)&&!isObject(rn=nn.call(en)))return rn;throw TypeError("Can't convert object to primitive value")},hn={}.hasOwnProperty,has=function(en,tn){return hn.call(en,tn)},gn=nn.document,An=isObject(gn)&&isObject(gn.createElement),documentCreateElement=function(en){return An?gn.createElement(en):{}},mn=!rn&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),vn=Object.getOwnPropertyDescriptor,yn={f:rn?vn:function getOwnPropertyDescriptor(en,tn){if(en=toIndexedObject(en),tn=toPrimitive(tn,!0),mn)try{return vn(en,tn)}catch(en){}if(has(en,tn))return createPropertyDescriptor(!cn.f.call(en,tn),en[tn])}},anObject=function(en){if(!isObject(en))throw TypeError(String(en)+" is not an object");return en},_n=Object.defineProperty,wn={f:rn?_n:function defineProperty(en,tn,nn){if(anObject(en),tn=toPrimitive(tn,!0),anObject(nn),mn)try{return _n(en,tn,nn)}catch(en){}if("get"in nn||"set"in nn)throw TypeError("Accessors not supported");return"value"in nn&&(en[tn]=nn.value),en}},xn=rn?function(en,tn,nn){return wn.f(en,tn,createPropertyDescriptor(1,nn))}:function(en,tn,nn){return en[tn]=nn,en},setGlobal=function(en,tn){try{xn(nn,en,tn)}catch(rn){nn[en]=tn}return tn},Sn="__core-js_shared__",Cn=nn[Sn]||setGlobal(Sn,{}),kn=Function.toString;"function"!=typeof Cn.inspectSource&&(Cn.inspectSource=function(en){return kn.call(en)});var Bn,En,Pn,Ln=Cn.inspectSource,Tn=nn.WeakMap,Nn="function"==typeof Tn&&/native code/.test(Ln(Tn)),In=createCommonjsModule((function(en){(en.exports=function(en,tn){return Cn[en]||(Cn[en]=void 0!==tn?tn:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),On=0,Fn=Math.random(),uid=function(en){return"Symbol("+String(void 0===en?"":en)+")_"+(++On+Fn).toString(36)},Un=In("keys"),sharedKey=function(en){return Un[en]||(Un[en]=uid(en))},Mn={},Rn=nn.WeakMap;if(Nn){var Dn=Cn.state||(Cn.state=new Rn),jn=Dn.get,Qn=Dn.has,Hn=Dn.set;Bn=function(en,tn){return tn.facade=en,Hn.call(Dn,en,tn),tn},En=function(en){return jn.call(Dn,en)||{}},Pn=function(en){return Qn.call(Dn,en)}}else{var Gn=sharedKey("state");Mn[Gn]=!0,Bn=function(en,tn){return tn.facade=en,xn(en,Gn,tn),tn},En=function(en){return has(en,Gn)?en[Gn]:{}},Pn=function(en){return has(en,Gn)}}var Vn,zn,Kn={set:Bn,get:En,has:Pn,enforce:function(en){return Pn(en)?En(en):Bn(en,{})},getterFor:function(en){return function(tn){var nn;if(!isObject(tn)||(nn=En(tn)).type!==en)throw TypeError("Incompatible receiver, "+en+" required");return nn}}},qn=createCommonjsModule((function(en){var tn=Kn.get,rn=Kn.enforce,an=String(String).split("String");(en.exports=function(en,tn,sn,cn){var un,dn=!!cn&&!!cn.unsafe,pn=!!cn&&!!cn.enumerable,hn=!!cn&&!!cn.noTargetGet;"function"==typeof sn&&("string"!=typeof tn||has(sn,"name")||xn(sn,"name",tn),(un=rn(sn)).source||(un.source=an.join("string"==typeof tn?tn:""))),en!==nn?(dn?!hn&&en[tn]&&(pn=!0):delete en[tn],pn?en[tn]=sn:xn(en,tn,sn)):pn?en[tn]=sn:setGlobal(tn,sn)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&tn(this).source||Ln(this)}))})),$n=nn,aFunction=function(en){return"function"==typeof en?en:void 0},getBuiltIn=function(en,tn){return arguments.length<2?aFunction($n[en])||aFunction(nn[en]):$n[en]&&$n[en][tn]||nn[en]&&nn[en][tn]},Wn=Math.ceil,Xn=Math.floor,toInteger=function(en){return isNaN(en=+en)?0:(en>0?Xn:Wn)(en)},Yn=Math.min,toLength=function(en){return en>0?Yn(toInteger(en),9007199254740991):0},Jn=Math.max,Zn=Math.min,toAbsoluteIndex=function(en,tn){var nn=toInteger(en);return nn<0?Jn(nn+tn,0):Zn(nn,tn)},createMethod=function(en){return function(tn,nn,rn){var an,sn=toIndexedObject(tn),cn=toLength(sn.length),un=toAbsoluteIndex(rn,cn);if(en&&nn!=nn){for(;cn>un;)if((an=sn[un++])!=an)return!0}else for(;cn>un;un++)if((en||un in sn)&&sn[un]===nn)return en||un||0;return!en&&-1}},Tr={includes:createMethod(!0),indexOf:createMethod(!1)},Ur=Tr.indexOf,objectKeysInternal=function(en,tn){var nn,rn=toIndexedObject(en),an=0,sn=[];for(nn in rn)!has(Mn,nn)&&has(rn,nn)&&sn.push(nn);for(;tn.length>an;)has(rn,nn=tn[an++])&&(~Ur(sn,nn)||sn.push(nn));return sn},Rr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dr=Rr.concat("length","prototype"),Qr={f:Object.getOwnPropertyNames||function getOwnPropertyNames(en){return objectKeysInternal(en,Dr)}},Hr={f:Object.getOwnPropertySymbols},Gr=getBuiltIn("Reflect","ownKeys")||function ownKeys(en){var tn=Qr.f(anObject(en)),nn=Hr.f;return nn?tn.concat(nn(en)):tn},copyConstructorProperties=function(en,tn){for(var nn=Gr(tn),rn=wn.f,an=yn.f,sn=0;sn<nn.length;sn++){var cn=nn[sn];has(en,cn)||rn(en,cn,an(tn,cn))}},Vr=/#|\.prototype\./,isForced=function(en,tn){var nn=Kr[zr(en)];return nn==Wr||nn!=$r&&("function"==typeof tn?fails(tn):!!tn)},zr=isForced.normalize=function(en){return String(en).replace(Vr,".").toLowerCase()},Kr=isForced.data={},$r=isForced.NATIVE="N",Wr=isForced.POLYFILL="P",Xr=isForced,Yr=yn.f,_export=function(en,tn){var rn,an,sn,cn,un,dn=en.target,pn=en.global,hn=en.stat;if(rn=pn?nn:hn?nn[dn]||setGlobal(dn,{}):(nn[dn]||{}).prototype)for(an in tn){if(cn=tn[an],sn=en.noTargetGet?(un=Yr(rn,an))&&un.value:rn[an],!Xr(pn?an:dn+(hn?".":"#")+an,en.forced)&&void 0!==sn){if(typeof cn==typeof sn)continue;copyConstructorProperties(cn,sn)}(en.sham||sn&&sn.sham)&&xn(cn,"sham",!0),qn(rn,an,cn,en)}},Jr=Array.isArray||function isArray(en){return"Array"==classofRaw(en)},toObject=function(en){return Object(requireObjectCoercible(en))},createProperty=function(en,tn,nn){var rn=toPrimitive(tn);rn in en?wn.f(en,rn,createPropertyDescriptor(0,nn)):en[rn]=nn},Zr=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),ei=Zr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ti=In("wks"),ni=nn.Symbol,ri=ei?ni:ni&&ni.withoutSetter||uid,wellKnownSymbol=function(en){return has(ti,en)||(Zr&&has(ni,en)?ti[en]=ni[en]:ti[en]=ri("Symbol."+en)),ti[en]},ii=wellKnownSymbol("species"),arraySpeciesCreate=function(en,tn){var nn;return Jr(en)&&("function"!=typeof(nn=en.constructor)||nn!==Array&&!Jr(nn.prototype)?isObject(nn)&&null===(nn=nn[ii])&&(nn=void 0):nn=void 0),new(void 0===nn?Array:nn)(0===tn?0:tn)},oi=getBuiltIn("navigator","userAgent")||"",ai=nn.process,si=ai&&ai.versions,li=si&&si.v8;li?zn=(Vn=li.split("."))[0]+Vn[1]:oi&&(!(Vn=oi.match(/Edge\/(\d+)/))||Vn[1]>=74)&&(Vn=oi.match(/Chrome\/(\d+)/))&&(zn=Vn[1]);var ui=zn&&+zn,di=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(en){return ui>=51||!fails((function(){var tn=[];return(tn.constructor={})[di]=function(){return{foo:1}},1!==tn[en](Boolean).foo}))},pi=wellKnownSymbol("isConcatSpreadable"),hi=9007199254740991,gi="Maximum allowed index exceeded",fi=ui>=51||!fails((function(){var en=[];return en[pi]=!1,en.concat()[0]!==en})),Ai=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(en){if(!isObject(en))return!1;var tn=en[pi];return void 0!==tn?!!tn:Jr(en)};_export({target:"Array",proto:!0,forced:!fi||!Ai},{concat:function concat(en){var tn,nn,rn,an,sn,cn=toObject(this),un=arraySpeciesCreate(cn,0),dn=0;for(tn=-1,rn=arguments.length;tn<rn;tn++)if(isConcatSpreadable(sn=-1===tn?cn:arguments[tn])){if(dn+(an=toLength(sn.length))>hi)throw TypeError(gi);for(nn=0;nn<an;nn++,dn++)nn in sn&&createProperty(un,dn,sn[nn])}else{if(dn>=hi)throw TypeError(gi);createProperty(un,dn++,sn)}return un.length=dn,un}});var aFunction$1=function(en){if("function"!=typeof en)throw TypeError(String(en)+" is not a function");return en},functionBindContext=function(en,tn,nn){if(aFunction$1(en),void 0===tn)return en;switch(nn){case 0:return function(){return en.call(tn)};case 1:return function(nn){return en.call(tn,nn)};case 2:return function(nn,rn){return en.call(tn,nn,rn)};case 3:return function(nn,rn,an){return en.call(tn,nn,rn,an)}}return function(){return en.apply(tn,arguments)}},mi=[].push,createMethod$1=function(en){var tn=1==en,nn=2==en,rn=3==en,an=4==en,sn=6==en,cn=7==en,un=5==en||sn;return function(dn,hn,gn,An){for(var mn,vn,yn=toObject(dn),_n=pn(yn),wn=functionBindContext(hn,gn,3),xn=toLength(_n.length),Sn=0,Cn=An||arraySpeciesCreate,kn=tn?Cn(dn,xn):nn||cn?Cn(dn,0):void 0;xn>Sn;Sn++)if((un||Sn in _n)&&(vn=wn(mn=_n[Sn],Sn,yn),en))if(tn)kn[Sn]=vn;else if(vn)switch(en){case 3:return!0;case 5:return mn;case 6:return Sn;case 2:mi.call(kn,mn)}else switch(en){case 4:return!1;case 7:mi.call(kn,mn)}return sn?-1:rn||an?an:kn}},vi={forEach:createMethod$1(0),map:createMethod$1(1),filter:createMethod$1(2),some:createMethod$1(3),every:createMethod$1(4),find:createMethod$1(5),findIndex:createMethod$1(6),filterOut:createMethod$1(7)},yi=Object.defineProperty,_i={},thrower=function(en){throw en},arrayMethodUsesToLength=function(en,tn){if(has(_i,en))return _i[en];tn||(tn={});var nn=[][en],an=!!has(tn,"ACCESSORS")&&tn.ACCESSORS,sn=has(tn,0)?tn[0]:thrower,cn=has(tn,1)?tn[1]:void 0;return _i[en]=!!nn&&!fails((function(){if(an&&!rn)return!0;var en={length:-1};an?yi(en,1,{enumerable:!0,get:thrower}):en[1]=1,nn.call(en,sn,cn)}))},wi=vi.filter,xi=arrayMethodHasSpeciesSupport("filter"),Si=arrayMethodUsesToLength("filter");_export({target:"Array",proto:!0,forced:!xi||!Si},{filter:function filter(en){return wi(this,en,arguments.length>1?arguments[1]:void 0)}});var Ci,ki=Object.keys||function keys(en){return objectKeysInternal(en,Rr)},Bi=rn?Object.defineProperties:function defineProperties(en,tn){anObject(en);for(var nn,rn=ki(tn),an=rn.length,sn=0;an>sn;)wn.f(en,nn=rn[sn++],tn[nn]);return en},Ei=getBuiltIn("document","documentElement"),Pi=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(en){return"<script>"+en+"</"+"script>"},NullProtoObject=function(){try{Ci=document.domain&&new ActiveXObject("htmlfile")}catch(en){}var en,tn;NullProtoObject=Ci?function(en){en.write(scriptTag("")),en.close();var tn=en.parentWindow.Object;return en=null,tn}(Ci):((tn=documentCreateElement("iframe")).style.display="none",Ei.appendChild(tn),tn.src=String("javascript:"),(en=tn.contentWindow.document).open(),en.write(scriptTag("document.F=Object")),en.close(),en.F);for(var nn=Rr.length;nn--;)delete NullProtoObject.prototype[Rr[nn]];return NullProtoObject()};Mn[Pi]=!0;var Li=Object.create||function create(en,tn){var nn;return null!==en?(EmptyConstructor.prototype=anObject(en),nn=new EmptyConstructor,EmptyConstructor.prototype=null,nn[Pi]=en):nn=NullProtoObject(),void 0===tn?nn:Bi(nn,tn)},Ti=wellKnownSymbol("unscopables"),Ni=Array.prototype;null==Ni[Ti]&&wn.f(Ni,Ti,{configurable:!0,value:Li(null)});var addToUnscopables=function(en){Ni[Ti][en]=!0},Ii=vi.find,Oi="find",Fi=!0,Ui=arrayMethodUsesToLength(Oi);Oi in[]&&Array(1).find((function(){Fi=!1})),_export({target:"Array",proto:!0,forced:Fi||!Ui},{find:function find(en){return Ii(this,en,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables(Oi);var arrayMethodIsStrict=function(en,tn){var nn=[][en];return!!nn&&fails((function(){nn.call(null,tn||function(){throw 1},1)}))},Mi=Tr.indexOf,Ri=[].indexOf,Di=!!Ri&&1/[1].indexOf(1,-0)<0,ji=arrayMethodIsStrict("indexOf"),Qi=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:Di||!ji||!Qi},{indexOf:function indexOf(en){return Di?Ri.apply(this,arguments)||0:Mi(this,en,arguments.length>1?arguments[1]:void 0)}});var Hi=[].join,Gi=pn!=Object,Vi=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:Gi||!Vi},{join:function join(en){return Hi.call(toIndexedObject(this),void 0===en?",":en)}});var zi=vi.map,Ki=arrayMethodHasSpeciesSupport("map"),qi=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!Ki||!qi},{map:function map(en){return zi(this,en,arguments.length>1?arguments[1]:void 0)}});var $i=[].reverse,Wi=[1,2];_export({target:"Array",proto:!0,forced:String(Wi)===String(Wi.reverse())},{reverse:function reverse(){return Jr(this)&&(this.length=this.length),$i.call(this)}});var Xi=arrayMethodHasSpeciesSupport("slice"),Yi=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),Ji=wellKnownSymbol("species"),Zi=[].slice,eo=Math.max;_export({target:"Array",proto:!0,forced:!Xi||!Yi},{slice:function slice(en,tn){var nn,rn,an,sn=toIndexedObject(this),cn=toLength(sn.length),un=toAbsoluteIndex(en,cn),dn=toAbsoluteIndex(void 0===tn?cn:tn,cn);if(Jr(sn)&&("function"!=typeof(nn=sn.constructor)||nn!==Array&&!Jr(nn.prototype)?isObject(nn)&&null===(nn=nn[Ji])&&(nn=void 0):nn=void 0,nn===Array||void 0===nn))return Zi.call(sn,un,dn);for(rn=new(void 0===nn?Array:nn)(eo(dn-un,0)),an=0;un<dn;un++,an++)un in sn&&createProperty(rn,an,sn[un]);return rn.length=an,rn}});var to=[],no=to.sort,ro=fails((function(){to.sort(void 0)})),io=fails((function(){to.sort(null)})),oo=arrayMethodIsStrict("sort");_export({target:"Array",proto:!0,forced:ro||!io||!oo},{sort:function sort(en){return void 0===en?no.call(toObject(this)):no.call(toObject(this),aFunction$1(en))}});var ao=arrayMethodHasSpeciesSupport("splice"),so=arrayMethodUsesToLength("splice",{ACCESSORS:!0,0:0,1:2}),lo=Math.max,co=Math.min,uo=9007199254740991,po="Maximum allowed length exceeded";_export({target:"Array",proto:!0,forced:!ao||!so},{splice:function splice(en,tn){var nn,rn,an,sn,cn,un,dn=toObject(this),pn=toLength(dn.length),hn=toAbsoluteIndex(en,pn),gn=arguments.length;if(0===gn?nn=rn=0:1===gn?(nn=0,rn=pn-hn):(nn=gn-2,rn=co(lo(toInteger(tn),0),pn-hn)),pn+nn-rn>uo)throw TypeError(po);for(an=arraySpeciesCreate(dn,rn),sn=0;sn<rn;sn++)(cn=hn+sn)in dn&&createProperty(an,sn,dn[cn]);if(an.length=rn,nn<rn){for(sn=hn;sn<pn-rn;sn++)un=sn+nn,(cn=sn+rn)in dn?dn[un]=dn[cn]:delete dn[un];for(sn=pn;sn>pn-rn+nn;sn--)delete dn[sn-1]}else if(nn>rn)for(sn=pn-rn;sn>hn;sn--)un=sn+nn-1,(cn=sn+rn-1)in dn?dn[un]=dn[cn]:delete dn[un];for(sn=0;sn<nn;sn++)dn[sn+hn]=arguments[sn+2];return dn.length=pn-rn+nn,an}});var ho=fails((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));_export({target:"Date",proto:!0,forced:ho},{toJSON:function toJSON(en){var tn=toObject(this),nn=toPrimitive(tn);return"number"!=typeof nn||isFinite(nn)?tn.toISOString():null}});var go=wn.f,fo=Function.prototype,Ao=fo.toString,mo=/^\s*function ([^ (]*)/,vo="name";rn&&!(vo in fo)&&go(fo,vo,{configurable:!0,get:function(){try{return Ao.call(this).match(mo)[1]}catch(en){return""}}});var yo={};yo[wellKnownSymbol("toStringTag")]="z";var _o="[object z]"===String(yo),wo=wellKnownSymbol("toStringTag"),xo="Arguments"==classofRaw(function(){return arguments}()),So=_o?classofRaw:function(en){var tn,nn,rn;return void 0===en?"Undefined":null===en?"Null":"string"==typeof(nn=function(en,tn){try{return en[tn]}catch(en){}}(tn=Object(en),wo))?nn:xo?classofRaw(tn):"Object"==(rn=classofRaw(tn))&&"function"==typeof tn.callee?"Arguments":rn},Co=_o?{}.toString:function toString(){return"[object "+So(this)+"]"};_o||qn(Object.prototype,"toString",Co,{unsafe:!0});var ko="\t\n\v\f\r \u2028\u2029\ufeff",Bo="["+ko+"]",Eo=RegExp("^"+Bo+Bo+"*"),Po=RegExp(Bo+Bo+"*$"),createMethod$2=function(en){return function(tn){var nn=String(requireObjectCoercible(tn));return 1&en&&(nn=nn.replace(Eo,"")),2&en&&(nn=nn.replace(Po,"")),nn}},Lo={start:createMethod$2(1),end:createMethod$2(2),trim:createMethod$2(3)},To=Lo.trim,No=nn.parseFloat,Io=1/No(ko+"-0")!=-1/0?function parseFloat(en){var tn=To(String(en)),nn=No(tn);return 0===nn&&"-"==tn.charAt(0)?-0:nn}:No;_export({global:!0,forced:parseFloat!=Io},{parseFloat:Io});var Oo=Lo.trim,Fo=nn.parseInt,Uo=/^[+-]?0[Xx]/,Mo=8!==Fo(ko+"08")||22!==Fo(ko+"0x16")?function parseInt(en,tn){var nn=Oo(String(en));return Fo(nn,tn>>>0||(Uo.test(nn)?16:10))}:Fo;_export({global:!0,forced:parseInt!=Mo},{parseInt:Mo});var Ro=Object.setPrototypeOf||("__proto__"in{}?function(){var en,tn=!1,nn={};try{(en=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(nn,[]),tn=nn instanceof Array}catch(en){}return function setPrototypeOf(nn,rn){return anObject(nn),function(en){if(!isObject(en)&&null!==en)throw TypeError("Can't set "+String(en)+" as a prototype")}(rn),tn?en.call(nn,rn):nn.__proto__=rn,nn}}():void 0),inheritIfRequired=function(en,tn,nn){var rn,an;return Ro&&"function"==typeof(rn=tn.constructor)&&rn!==nn&&isObject(an=rn.prototype)&&an!==nn.prototype&&Ro(en,an),en},Do=wellKnownSymbol("match"),isRegexp=function(en){var tn;return isObject(en)&&(void 0!==(tn=en[Do])?!!tn:"RegExp"==classofRaw(en))},regexpFlags=function(){var en=anObject(this),tn="";return en.global&&(tn+="g"),en.ignoreCase&&(tn+="i"),en.multiline&&(tn+="m"),en.dotAll&&(tn+="s"),en.unicode&&(tn+="u"),en.sticky&&(tn+="y"),tn};function RE(en,tn){return RegExp(en,tn)}var jo={UNSUPPORTED_Y:fails((function(){var en=RE("a","y");return en.lastIndex=2,null!=en.exec("abcd")})),BROKEN_CARET:fails((function(){var en=RE("^r","gy");return en.lastIndex=2,null!=en.exec("str")}))},Qo=wellKnownSymbol("species"),setSpecies=function(en){var tn=getBuiltIn(en),nn=wn.f;rn&&tn&&!tn[Qo]&&nn(tn,Qo,{configurable:!0,get:function(){return this}})},Ho=wn.f,Go=Qr.f,Vo=Kn.set,zo=wellKnownSymbol("match"),Ko=nn.RegExp,qo=Ko.prototype,$o=/a/g,Wo=/a/g,Xo=new Ko($o)!==$o,Yo=jo.UNSUPPORTED_Y;if(rn&&Xr("RegExp",!Xo||Yo||fails((function(){return Wo[zo]=!1,Ko($o)!=$o||Ko(Wo)==Wo||"/a/i"!=Ko($o,"i")})))){for(var Jo=function RegExp(en,tn){var nn,rn=this instanceof Jo,an=isRegexp(en),sn=void 0===tn;if(!rn&&an&&en.constructor===Jo&&sn)return en;Xo?an&&!sn&&(en=en.source):en instanceof Jo&&(sn&&(tn=regexpFlags.call(en)),en=en.source),Yo&&(nn=!!tn&&tn.indexOf("y")>-1)&&(tn=tn.replace(/y/g,""));var cn=inheritIfRequired(Xo?new Ko(en,tn):Ko(en,tn),rn?this:qo,Jo);return Yo&&nn&&Vo(cn,{sticky:nn}),cn},proxy=function(en){en in Jo||Ho(Jo,en,{configurable:!0,get:function(){return Ko[en]},set:function(tn){Ko[en]=tn}})},Zo=Go(Ko),ea=0;Zo.length>ea;)proxy(Zo[ea++]);qo.constructor=Jo,Jo.prototype=qo,qn(nn,"RegExp",Jo)}setSpecies("RegExp");var ta=RegExp.prototype.exec,na=String.prototype.replace,ra=ta,ia=function(){var en=/a/,tn=/b*/g;return ta.call(en,"a"),ta.call(tn,"a"),0!==en.lastIndex||0!==tn.lastIndex}(),oa=jo.UNSUPPORTED_Y||jo.BROKEN_CARET,aa=void 0!==/()??/.exec("")[1];(ia||aa||oa)&&(ra=function exec(en){var tn,nn,rn,an,sn=this,cn=oa&&sn.sticky,un=regexpFlags.call(sn),dn=sn.source,pn=0,hn=en;return cn&&(-1===(un=un.replace("y","")).indexOf("g")&&(un+="g"),hn=String(en).slice(sn.lastIndex),sn.lastIndex>0&&(!sn.multiline||sn.multiline&&"\n"!==en[sn.lastIndex-1])&&(dn="(?: "+dn+")",hn=" "+hn,pn++),nn=new RegExp("^(?:"+dn+")",un)),aa&&(nn=new RegExp("^"+dn+"$(?!\\s)",un)),ia&&(tn=sn.lastIndex),rn=ta.call(cn?nn:sn,hn),cn?rn?(rn.input=rn.input.slice(pn),rn[0]=rn[0].slice(pn),rn.index=sn.lastIndex,sn.lastIndex+=rn[0].length):sn.lastIndex=0:ia&&rn&&(sn.lastIndex=sn.global?rn.index+rn[0].length:tn),aa&&rn&&rn.length>1&&na.call(rn[0],nn,(function(){for(an=1;an<arguments.length-2;an++)void 0===arguments[an]&&(rn[an]=void 0)})),rn});var sa=ra;_export({target:"RegExp",proto:!0,forced:/./.exec!==sa},{exec:sa});var la="toString",ua=RegExp.prototype,da=ua.toString,pa=fails((function(){return"/a/b"!=da.call({source:"a",flags:"b"})})),ha=da.name!=la;(pa||ha)&&qn(RegExp.prototype,la,(function toString(){var en=anObject(this),tn=String(en.source),nn=en.flags;return"/"+tn+"/"+String(void 0===nn&&en instanceof RegExp&&!("flags"in ua)?regexpFlags.call(en):nn)}),{unsafe:!0});var ga=wellKnownSymbol("species"),fa=!fails((function(){var en=/./;return en.exec=function(){var en=[];return en.groups={a:"7"},en},"7"!=="".replace(en,"$<a>")})),Aa="$0"==="a".replace(/./,"$0"),ma=wellKnownSymbol("replace"),va=!!/./[ma]&&""===/./[ma]("a","$0"),ya=!fails((function(){var en=/(?:)/,tn=en.exec;en.exec=function(){return tn.apply(this,arguments)};var nn="ab".split(en);return 2!==nn.length||"a"!==nn[0]||"b"!==nn[1]})),fixRegexpWellKnownSymbolLogic=function(en,tn,nn,rn){var an=wellKnownSymbol(en),sn=!fails((function(){var tn={};return tn[an]=function(){return 7},7!=""[en](tn)})),cn=sn&&!fails((function(){var tn=!1,nn=/a/;return"split"===en&&((nn={}).constructor={},nn.constructor[ga]=function(){return nn},nn.flags="",nn[an]=/./[an]),nn.exec=function(){return tn=!0,null},nn[an](""),!tn}));if(!sn||!cn||"replace"===en&&(!fa||!Aa||va)||"split"===en&&!ya){var un=/./[an],dn=nn(an,""[en],(function(en,tn,nn,rn,an){return tn.exec===sa?sn&&!an?{done:!0,value:un.call(tn,nn,rn)}:{done:!0,value:en.call(nn,tn,rn)}:{done:!1}}),{REPLACE_KEEPS_$0:Aa,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:va}),pn=dn[0],hn=dn[1];qn(String.prototype,en,pn),qn(RegExp.prototype,an,2==tn?function(en,tn){return hn.call(en,this,tn)}:function(en){return hn.call(en,this)})}rn&&xn(RegExp.prototype[an],"sham",!0)},createMethod$3=function(en){return function(tn,nn){var rn,an,sn=String(requireObjectCoercible(tn)),cn=toInteger(nn),un=sn.length;return cn<0||cn>=un?en?"":void 0:(rn=sn.charCodeAt(cn))<55296||rn>56319||cn+1===un||(an=sn.charCodeAt(cn+1))<56320||an>57343?en?sn.charAt(cn):rn:en?sn.slice(cn,cn+2):an-56320+(rn-55296<<10)+65536}},_a={codeAt:createMethod$3(!1),charAt:createMethod$3(!0)},ba=_a.charAt,advanceStringIndex=function(en,tn,nn){return tn+(nn?ba(en,tn).length:1)},regexpExecAbstract=function(en,tn){var nn=en.exec;if("function"==typeof nn){var rn=nn.call(en,tn);if("object"!=typeof rn)throw TypeError("RegExp exec method returned something other than an Object or null");return rn}if("RegExp"!==classofRaw(en))throw TypeError("RegExp#exec called on incompatible receiver");return sa.call(en,tn)};fixRegexpWellKnownSymbolLogic("match",1,(function(en,tn,nn){return[function match(tn){var nn=requireObjectCoercible(this),rn=null==tn?void 0:tn[en];return void 0!==rn?rn.call(tn,nn):new RegExp(tn)[en](String(nn))},function(en){var rn=nn(tn,en,this);if(rn.done)return rn.value;var an=anObject(en),sn=String(this);if(!an.global)return regexpExecAbstract(an,sn);var cn=an.unicode;an.lastIndex=0;for(var un,dn=[],pn=0;null!==(un=regexpExecAbstract(an,sn));){var hn=String(un[0]);dn[pn]=hn,""===hn&&(an.lastIndex=advanceStringIndex(sn,toLength(an.lastIndex),cn)),pn++}return 0===pn?null:dn}]}));var wa=Math.floor,xa="".replace,Sa=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ca=/\$([$&'`]|\d\d?)/g,getSubstitution=function(en,tn,nn,rn,an,sn){var cn=nn+en.length,un=rn.length,dn=Ca;return void 0!==an&&(an=toObject(an),dn=Sa),xa.call(sn,dn,(function(sn,dn){var pn;switch(dn.charAt(0)){case"$":return"$";case"&":return en;case"`":return tn.slice(0,nn);case"'":return tn.slice(cn);case"<":pn=an[dn.slice(1,-1)];break;default:var hn=+dn;if(0===hn)return sn;if(hn>un){var gn=wa(hn/10);return 0===gn?sn:gn<=un?void 0===rn[gn-1]?dn.charAt(1):rn[gn-1]+dn.charAt(1):sn}pn=rn[hn-1]}return void 0===pn?"":pn}))},ka=Math.max,Ba=Math.min,maybeToString=function(en){return void 0===en?en:String(en)};fixRegexpWellKnownSymbolLogic("replace",2,(function(en,tn,nn,rn){var an=rn.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,sn=rn.REPLACE_KEEPS_$0,cn=an?"$":"$0";return[function replace(nn,rn){var an=requireObjectCoercible(this),sn=null==nn?void 0:nn[en];return void 0!==sn?sn.call(nn,an,rn):tn.call(String(an),nn,rn)},function(en,rn){if(!an&&sn||"string"==typeof rn&&-1===rn.indexOf(cn)){var un=nn(tn,en,this,rn);if(un.done)return un.value}var dn=anObject(en),pn=String(this),hn="function"==typeof rn;hn||(rn=String(rn));var gn=dn.global;if(gn){var An=dn.unicode;dn.lastIndex=0}for(var mn=[];;){var vn=regexpExecAbstract(dn,pn);if(null===vn)break;if(mn.push(vn),!gn)break;""===String(vn[0])&&(dn.lastIndex=advanceStringIndex(pn,toLength(dn.lastIndex),An))}for(var yn="",_n=0,wn=0;wn<mn.length;wn++){vn=mn[wn];for(var xn=String(vn[0]),Sn=ka(Ba(toInteger(vn.index),pn.length),0),Cn=[],kn=1;kn<vn.length;kn++)Cn.push(maybeToString(vn[kn]));var Bn=vn.groups;if(hn){var En=[xn].concat(Cn,Sn,pn);void 0!==Bn&&En.push(Bn);var Pn=String(rn.apply(void 0,En))}else Pn=getSubstitution(xn,pn,Sn,Cn,Bn,rn);Sn>=_n&&(yn+=pn.slice(_n,Sn)+Pn,_n=Sn+xn.length)}return yn+pn.slice(_n)}]}));var Ea=wellKnownSymbol("species"),speciesConstructor=function(en,tn){var nn,rn=anObject(en).constructor;return void 0===rn||null==(nn=anObject(rn)[Ea])?tn:aFunction$1(nn)},Pa=[].push,La=Math.min,Ta=4294967295,Na=!fails((function(){return!RegExp(Ta,"y")}));fixRegexpWellKnownSymbolLogic("split",2,(function(en,tn,nn){var rn;return rn="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(en,nn){var rn=String(requireObjectCoercible(this)),an=void 0===nn?Ta:nn>>>0;if(0===an)return[];if(void 0===en)return[rn];if(!isRegexp(en))return tn.call(rn,en,an);for(var sn,cn,un,dn=[],pn=(en.ignoreCase?"i":"")+(en.multiline?"m":"")+(en.unicode?"u":"")+(en.sticky?"y":""),hn=0,gn=new RegExp(en.source,pn+"g");(sn=sa.call(gn,rn))&&!((cn=gn.lastIndex)>hn&&(dn.push(rn.slice(hn,sn.index)),sn.length>1&&sn.index<rn.length&&Pa.apply(dn,sn.slice(1)),un=sn[0].length,hn=cn,dn.length>=an));)gn.lastIndex===sn.index&&gn.lastIndex++;return hn===rn.length?!un&&gn.test("")||dn.push(""):dn.push(rn.slice(hn)),dn.length>an?dn.slice(0,an):dn}:"0".split(void 0,0).length?function(en,nn){return void 0===en&&0===nn?[]:tn.call(this,en,nn)}:tn,[function split(tn,nn){var an=requireObjectCoercible(this),sn=null==tn?void 0:tn[en];return void 0!==sn?sn.call(tn,an,nn):rn.call(String(an),tn,nn)},function(en,an){var sn=nn(rn,en,this,an,rn!==tn);if(sn.done)return sn.value;var cn=anObject(en),un=String(this),dn=speciesConstructor(cn,RegExp),pn=cn.unicode,hn=(cn.ignoreCase?"i":"")+(cn.multiline?"m":"")+(cn.unicode?"u":"")+(Na?"y":"g"),gn=new dn(Na?cn:"^(?:"+cn.source+")",hn),An=void 0===an?Ta:an>>>0;if(0===An)return[];if(0===un.length)return null===regexpExecAbstract(gn,un)?[un]:[];for(var mn=0,vn=0,yn=[];vn<un.length;){gn.lastIndex=Na?vn:0;var _n,wn=regexpExecAbstract(gn,Na?un:un.slice(vn));if(null===wn||(_n=La(toLength(gn.lastIndex+(Na?0:vn)),un.length))===mn)vn=advanceStringIndex(un,vn,pn);else{if(yn.push(un.slice(mn,vn)),yn.length===An)return yn;for(var xn=1;xn<=wn.length-1;xn++)if(yn.push(wn[xn]),yn.length===An)return yn;vn=mn=_n}}return yn.push(un.slice(mn)),yn}]}),!Na);var stringTrimForced=function(en){return fails((function(){return!!ko[en]()||"
"!="
"[en]()||ko[en].name!==en}))},Ia=Lo.trim;_export({target:"String",proto:!0,forced:stringTrimForced("trim")},{trim:function trim(){return Ia(this)}});var Oa=/"/g,createHtml=function(en,tn,nn,rn){var an=String(requireObjectCoercible(en)),sn="<"+tn;return""!==nn&&(sn+=" "+nn+'="'+String(rn).replace(Oa,""")+'"'),sn+">"+an+"</"+tn+">"},stringHtmlForced=function(en){return fails((function(){var tn=""[en]('"');return tn!==tn.toLowerCase()||tn.split('"').length>3}))};function _typeof(en){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(en){return typeof en}:function(en){return en&&"function"==typeof Symbol&&en.constructor===Symbol&&en!==Symbol.prototype?"symbol":typeof en})(en)}function asyncGeneratorStep(en,tn,nn,rn,an,sn,cn){try{var un=en[sn](cn),dn=un.value}catch(en){return void nn(en)}un.done?tn(dn):Promise.resolve(dn).then(rn,an)}function _asyncToGenerator(en){return function(){var tn=this,nn=arguments;return new Promise((function(rn,an){var sn=en.apply(tn,nn);function _next(en){asyncGeneratorStep(sn,rn,an,_next,_throw,"next",en)}function _throw(en){asyncGeneratorStep(sn,rn,an,_next,_throw,"throw",en)}_next(void 0)}))}}function _classCallCheck(en,tn){if(!(en instanceof tn))throw new TypeError("Cannot call a class as a function")}function _defineProperties(en,tn){for(var nn=0;nn<tn.length;nn++){var rn=tn[nn];rn.enumerable=rn.enumerable||!1,rn.configurable=!0,"value"in rn&&(rn.writable=!0),Object.defineProperty(en,rn.key,rn)}}function _createClass(en,tn,nn){return tn&&_defineProperties(en.prototype,tn),nn&&_defineProperties(en,nn),en}function _defineProperty(en,tn,nn){return tn in en?Object.defineProperty(en,tn,{value:nn,enumerable:!0,configurable:!0,writable:!0}):en[tn]=nn,en}function ownKeys$1(en,tn){var nn=Object.keys(en);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(en);tn&&(rn=rn.filter((function(tn){return Object.getOwnPropertyDescriptor(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread2(en){for(var tn=1;tn<arguments.length;tn++){var nn=null!=arguments[tn]?arguments[tn]:{};tn%2?ownKeys$1(Object(nn),!0).forEach((function(tn){_defineProperty(en,tn,nn[tn])})):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(nn)):ownKeys$1(Object(nn)).forEach((function(tn){Object.defineProperty(en,tn,Object.getOwnPropertyDescriptor(nn,tn))}))}return en}function _inherits(en,tn){if("function"!=typeof tn&&null!==tn)throw new TypeError("Super expression must either be null or a function");en.prototype=Object.create(tn&&tn.prototype,{constructor:{value:en,writable:!0,configurable:!0}}),tn&&_setPrototypeOf(en,tn)}function _getPrototypeOf(en){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(en){return en.__proto__||Object.getPrototypeOf(en)})(en)}function _setPrototypeOf(en,tn){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(en,tn){return en.__proto__=tn,en})(en,tn)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(en){return!1}}function _construct(en,tn,nn){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(en,tn,nn){var rn=[null];rn.push.apply(rn,tn);var an=new(Function.bind.apply(en,rn));return nn&&_setPrototypeOf(an,nn.prototype),an}).apply(null,arguments)}function _wrapNativeSuper(en){var tn="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(en){if(null===en||!function _isNativeFunction(en){return-1!==Function.toString.call(en).indexOf("[native code]")}(en))return en;if("function"!=typeof en)throw new TypeError("Super expression must either be null or a function");if(void 0!==tn){if(tn.has(en))return tn.get(en);tn.set(en,Wrapper)}function Wrapper(){return _construct(en,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(en.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,en)})(en)}function _assertThisInitialized(en){if(void 0===en)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return en}function _possibleConstructorReturn(en,tn){return!tn||"object"!=typeof tn&&"function"!=typeof tn?_assertThisInitialized(en):tn}function _createSuper(en){var tn=_isNativeReflectConstruct();return function _createSuperInternal(){var nn,rn=_getPrototypeOf(en);if(tn){var an=_getPrototypeOf(this).constructor;nn=Reflect.construct(rn,arguments,an)}else nn=rn.apply(this,arguments);return _possibleConstructorReturn(this,nn)}}function _superPropBase(en,tn){for(;!Object.prototype.hasOwnProperty.call(en,tn)&&null!==(en=_getPrototypeOf(en)););return en}function _get(en,tn,nn){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(en,tn,nn){var rn=_superPropBase(en,tn);if(rn){var an=Object.getOwnPropertyDescriptor(rn,tn);return an.get?an.get.call(nn):an.value}})(en,tn,nn||en)}function set$1(en,tn,nn,rn){return(set$1="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function set(en,tn,nn,rn){var an,sn=_superPropBase(en,tn);if(sn){if((an=Object.getOwnPropertyDescriptor(sn,tn)).set)return an.set.call(rn,nn),!0;if(!an.writable)return!1}if(an=Object.getOwnPropertyDescriptor(rn,tn)){if(!an.writable)return!1;an.value=nn,Object.defineProperty(rn,tn,an)}else _defineProperty(rn,tn,nn);return!0})(en,tn,nn,rn)}function _set(en,tn,nn,rn,an){if(!set$1(en,tn,nn,rn||en)&&an)throw new Error("failed to set property");return nn}function _taggedTemplateLiteral(en,tn){return tn||(tn=en.slice(0)),Object.freeze(Object.defineProperties(en,{raw:{value:Object.freeze(tn)}}))}function _slicedToArray(en,tn){return function _arrayWithHoles(en){if(Array.isArray(en))return en}(en)||function _iterableToArrayLimit(en,tn){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(en)))return;var nn=[],rn=!0,an=!1,sn=void 0;try{for(var cn,un=en[Symbol.iterator]();!(rn=(cn=un.next()).done)&&(nn.push(cn.value),!tn||nn.length!==tn);rn=!0);}catch(en){an=!0,sn=en}finally{try{rn||null==un.return||un.return()}finally{if(an)throw sn}}return nn}(en,tn)||_unsupportedIterableToArray(en,tn)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(en){return function _arrayWithoutHoles(en){if(Array.isArray(en))return _arrayLikeToArray(en)}(en)||function _iterableToArray(en){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(en))return Array.from(en)}(en)||_unsupportedIterableToArray(en)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(en,tn){if(en){if("string"==typeof en)return _arrayLikeToArray(en,tn);var nn=Object.prototype.toString.call(en).slice(8,-1);return"Object"===nn&&en.constructor&&(nn=en.constructor.name),"Map"===nn||"Set"===nn?Array.from(en):"Arguments"===nn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nn)?_arrayLikeToArray(en,tn):void 0}}function _arrayLikeToArray(en,tn){(null==tn||tn>en.length)&&(tn=en.length);for(var nn=0,rn=new Array(tn);nn<tn;nn++)rn[nn]=en[nn];return rn}function _createForOfIteratorHelper(en,tn){var nn;if("undefined"==typeof Symbol||null==en[Symbol.iterator]){if(Array.isArray(en)||(nn=_unsupportedIterableToArray(en))||tn&&en&&"number"==typeof en.length){nn&&(en=nn);var rn=0,F=function(){};return{s:F,n:function(){return rn>=en.length?{done:!0}:{done:!1,value:en[rn++]}},e:function(en){throw en},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var an,sn=!0,cn=!1;return{s:function(){nn=en[Symbol.iterator]()},n:function(){var en=nn.next();return sn=en.done,en},e:function(en){cn=!0,an=en},f:function(){try{sn||null==nn.return||nn.return()}finally{if(cn)throw an}}}}
|
||
/*! jQuery v1.7.1 jquery.com | jquery.org/license */_export({target:"String",proto:!0,forced:stringHtmlForced("sub")},{sub:function sub(){return createHtml(this,"sub","","")}}),_export({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return URL.prototype.toString.call(this)}}),function(en,tn){function cy(en){return sn.isWindow(en)?en:9===en.nodeType&&(en.defaultView||en.parentWindow)}function cv(en){if(!Ti[en]){var tn=nn.body,rn=sn("<"+en+">").appendTo(tn),an=rn.css("display");rn.remove(),"none"!==an&&""!==an||(Bi||((Bi=nn.createElement("iframe")).frameBorder=Bi.width=Bi.height=0),tn.appendChild(Bi),Ei&&Bi.createElement||((Ei=(Bi.contentWindow||Bi.contentDocument).document).write(("CSS1Compat"===nn.compatMode?"<!doctype html>":"")+"<html><body>"),Ei.close()),rn=Ei.createElement(en),Ei.body.appendChild(rn),an=sn.css(rn,"display"),tn.removeChild(Bi)),Ti[en]=an}return Ti[en]}function cu(en,tn){var nn={};return sn.each(Oi.concat.apply([],Oi.slice(0,tn)),(function(){nn[this]=en})),nn}function ct(){Li=tn}function cs(){return setTimeout(ct,0),Li=sn.now()}function ci(){try{return new en.XMLHttpRequest}catch(en){}}function ca(en,tn,nn,rn){if(sn.isArray(tn))sn.each(tn,(function(tn,an){nn||ri.test(en)?rn(en,an):ca(en+"["+("object"==_typeof(an)||sn.isArray(an)?tn:"")+"]",an,nn,rn)}));else if(nn||null==tn||"object"!=_typeof(tn))rn(en,tn);else for(var an in tn)ca(en+"["+an+"]",tn[an],nn,rn)}function b_(en,nn){var rn,an,cn=sn.ajaxSettings.flatOptions||{};for(rn in nn)nn[rn]!==tn&&((cn[rn]?en:an||(an={}))[rn]=nn[rn]);an&&sn.extend(!0,en,an)}function b$(en,nn,rn,an,sn,cn){(cn=cn||{})[sn=sn||nn.dataTypes[0]]=!0;for(var un,dn=en[sn],pn=0,hn=dn?dn.length:0,gn=en===vi;pn<hn&&(gn||!un);pn++)"string"==typeof(un=dn[pn](nn,rn,an))&&(!gn||cn[un]?un=tn:(nn.dataTypes.unshift(un),un=b$(en,nn,rn,an,un,cn)));return(gn||!un)&&!cn["*"]&&(un=b$(en,nn,rn,an,"*",cn)),un}function bZ(en){return function(tn,nn){if("string"!=typeof tn&&(nn=tn,tn="*"),sn.isFunction(nn))for(var rn,an,cn=tn.toLowerCase().split(gi),un=0,dn=cn.length;un<dn;un++)rn=cn[un],(an=/^\+/.test(rn))&&(rn=rn.substr(1)||"*"),(en[rn]=en[rn]||[])[an?"unshift":"push"](nn)}}function bC(en,tn,nn){var rn="width"===tn?en.offsetWidth:en.offsetHeight,an="width"===tn?Jr:Zr,cn=0,un=an.length;if(rn>0){if("border"!==nn)for(;cn<un;cn++)nn||(rn-=parseFloat(sn.css(en,"padding"+an[cn]))||0),"margin"===nn?rn+=parseFloat(sn.css(en,nn+an[cn]))||0:rn-=parseFloat(sn.css(en,"border"+an[cn]+"Width"))||0;return rn+"px"}if(((rn=Qr(en,tn,tn))<0||null==rn)&&(rn=en.style[tn]||0),rn=parseFloat(rn)||0,nn)for(;cn<un;cn++)rn+=parseFloat(sn.css(en,"padding"+an[cn]))||0,"padding"!==nn&&(rn+=parseFloat(sn.css(en,"border"+an[cn]+"Width"))||0),"margin"===nn&&(rn+=parseFloat(sn.css(en,nn+an[cn]))||0);return rn+"px"}function bp(en,tn){tn.src?sn.ajax({url:tn.src,async:!1,dataType:"script"}):sn.globalEval((tn.text||tn.textContent||tn.innerHTML||"").replace(Ur,"/*$0*/")),tn.parentNode&&tn.parentNode.removeChild(tn)}function bo(en){var tn=nn.createElement("div");return Dr.appendChild(tn),tn.innerHTML=en.outerHTML,tn.firstChild}function bn(en){var tn=(en.nodeName||"").toLowerCase();"input"===tn?bm(en):"script"!==tn&&void 0!==en.getElementsByTagName&&sn.grep(en.getElementsByTagName("input"),bm)}function bm(en){"checkbox"!==en.type&&"radio"!==en.type||(en.defaultChecked=en.checked)}function bl(en){return void 0!==en.getElementsByTagName?en.getElementsByTagName("*"):void 0!==en.querySelectorAll?en.querySelectorAll("*"):[]}function bk(en,tn){var nn;1===tn.nodeType&&(tn.clearAttributes&&tn.clearAttributes(),tn.mergeAttributes&&tn.mergeAttributes(en),"object"===(nn=tn.nodeName.toLowerCase())?tn.outerHTML=en.outerHTML:"input"!==nn||"checkbox"!==en.type&&"radio"!==en.type?"option"===nn?tn.selected=en.defaultSelected:"input"!==nn&&"textarea"!==nn||(tn.defaultValue=en.defaultValue):(en.checked&&(tn.defaultChecked=tn.checked=en.checked),tn.value!==en.value&&(tn.value=en.value)),tn.removeAttribute(sn.expando))}function bj(en,tn){if(1===tn.nodeType&&sn.hasData(en)){var nn,rn,an,cn=sn._data(en),un=sn._data(tn,cn),dn=cn.events;if(dn)for(nn in delete un.handle,un.events={},dn)for(rn=0,an=dn[nn].length;rn<an;rn++)sn.event.add(tn,nn+(dn[nn][rn].namespace?".":"")+dn[nn][rn].namespace,dn[nn][rn],dn[nn][rn].data);un.data&&(un.data=sn.extend({},un.data))}}function bi(en,tn){return sn.nodeName(en,"table")?en.getElementsByTagName("tbody")[0]||en.appendChild(en.ownerDocument.createElement("tbody")):en}function U(en){var tn=Gn.split("|"),nn=en.createDocumentFragment();if(nn.createElement)for(;tn.length;)nn.createElement(tn.pop());return nn}function T(en,tn,nn){if(tn=tn||0,sn.isFunction(tn))return sn.grep(en,(function(en,rn){return!!tn.call(en,rn,en)===nn}));if(tn.nodeType)return sn.grep(en,(function(en,rn){return en===tn===nn}));if("string"==typeof tn){var rn=sn.grep(en,(function(en){return 1===en.nodeType}));if(Dn.test(tn))return sn.filter(tn,rn,!nn);tn=sn.filter(tn,rn)}return sn.grep(en,(function(en,rn){return sn.inArray(en,tn)>=0===nn}))}function S(en){return!en||!en.parentNode||11===en.parentNode.nodeType}function K(){return!0}function J(){return!1}function n(en,tn,nn){var rn=tn+"defer",an=tn+"queue",cn=tn+"mark",un=sn._data(en,rn);un&&("queue"===nn||!sn._data(en,an))&&("mark"===nn||!sn._data(en,cn))&&setTimeout((function(){!sn._data(en,an)&&!sn._data(en,cn)&&(sn.removeData(en,rn,!0),un.fire())}),0)}function m(en){for(var tn in en)if(("data"!==tn||!sn.isEmptyObject(en[tn]))&&"toJSON"!==tn)return!1;return!0}function l(en,nn,rn){if(rn===tn&&1===en.nodeType){var an="data-"+nn.replace(pn,"-$1").toLowerCase();if("string"==typeof(rn=en.getAttribute(an))){try{rn="true"===rn||"false"!==rn&&("null"===rn?null:sn.isNumeric(rn)?parseFloat(rn):dn.test(rn)?sn.parseJSON(rn):rn)}catch(en){}sn.data(en,nn,rn)}else rn=tn}return rn}var nn=en.document,rn=en.navigator,an=en.location,sn=function(){function J(){if(!dn.isReady){try{nn.documentElement.doScroll("left")}catch(en){return void setTimeout(J,1)}dn.ready()}}var an,sn,cn,un,dn=function e(en,tn){return new e.fn.init(en,tn,an)},pn=en.jQuery,hn=en.$,gn=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,An=/\S/,mn=/^\s+/,vn=/\s+$/,yn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,_n=/^[\],:{}\s]*$/,wn=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,xn=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Sn=/(?:^|:|,)(?:\s*\[)+/g,Cn=/(webkit)[ \/]([\w.]+)/,kn=/(opera)(?:.*version)?[ \/]([\w.]+)/,Bn=/(msie) ([\w.]+)/,En=/(mozilla)(?:.*? rv:([\w.]+))?/,Pn=/-([a-z]|[0-9])/gi,Ln=/^-ms-/,Tn=function x(en,tn){return(tn+"").toUpperCase()},Nn=rn.userAgent,In=Object.prototype.toString,On=Object.prototype.hasOwnProperty,Fn=Array.prototype.push,Un=Array.prototype.slice,Mn=String.prototype.trim,Rn=Array.prototype.indexOf,Dn={};return dn.fn=dn.prototype={constructor:dn,init:function init(en,rn,an){var sn,cn,un,pn;if(!en)return this;if(en.nodeType)return this.context=this[0]=en,this.length=1,this;if("body"===en&&!rn&&nn.body)return this.context=nn,this[0]=nn.body,this.selector=en,this.length=1,this;if("string"==typeof en){if((sn="<"!==en.charAt(0)||">"!==en.charAt(en.length-1)||en.length<3?gn.exec(en):[null,en,null])&&(sn[1]||!rn)){if(sn[1])return pn=(rn=rn instanceof dn?rn[0]:rn)?rn.ownerDocument||rn:nn,(un=yn.exec(en))?dn.isPlainObject(rn)?(en=[nn.createElement(un[1])],dn.fn.attr.call(en,rn,!0)):en=[pn.createElement(un[1])]:en=((un=dn.buildFragment([sn[1]],[pn])).cacheable?dn.clone(un.fragment):un.fragment).childNodes,dn.merge(this,en);if((cn=nn.getElementById(sn[2]))&&cn.parentNode){if(cn.id!==sn[2])return an.find(en);this.length=1,this[0]=cn}return this.context=nn,this.selector=en,this}return!rn||rn.jquery?(rn||an).find(en):this.constructor(rn).find(en)}return dn.isFunction(en)?an.ready(en):(en.selector!==tn&&(this.selector=en.selector,this.context=en.context),dn.makeArray(en,this))},selector:"",jquery:"1.7.1",length:0,size:function size(){return this.length},toArray:function toArray(){return Un.call(this,0)},get:function get(en){return null==en?this.toArray():en<0?this[this.length+en]:this[en]},pushStack:function pushStack(en,tn,nn){var rn=this.constructor();return dn.isArray(en)?Fn.apply(rn,en):dn.merge(rn,en),rn.prevObject=this,rn.context=this.context,"find"===tn?rn.selector=this.selector+(this.selector?" ":"")+nn:tn&&(rn.selector=this.selector+"."+tn+"("+nn+")"),rn},each:function each(en,tn){return dn.each(this,en,tn)},ready:function ready(en){return dn.bindReady(),cn.add(en),this},eq:function eq(en){return-1===(en=+en)?this.slice(en):this.slice(en,en+1)},first:function first(){return this.eq(0)},last:function last(){return this.eq(-1)},slice:function slice(){return this.pushStack(Un.apply(this,arguments),"slice",Un.call(arguments).join(","))},map:function map(en){return this.pushStack(dn.map(this,(function(tn,nn){return en.call(tn,nn,tn)})))},end:function end(){return this.prevObject||this.constructor(null)},push:Fn,sort:[].sort,splice:[].splice},dn.fn.init.prototype=dn.fn,dn.extend=dn.fn.extend=function(){var en,nn,rn,an,sn,cn,un=arguments[0]||{},pn=1,hn=arguments.length,gn=!1;for("boolean"==typeof un&&(gn=un,un=arguments[1]||{},pn=2),"object"!=_typeof(un)&&!dn.isFunction(un)&&(un={}),hn===pn&&(un=this,--pn);pn<hn;pn++)if(null!=(en=arguments[pn]))for(nn in en)rn=un[nn],un!==(an=en[nn])&&(gn&&an&&(dn.isPlainObject(an)||(sn=dn.isArray(an)))?(sn?(sn=!1,cn=rn&&dn.isArray(rn)?rn:[]):cn=rn&&dn.isPlainObject(rn)?rn:{},un[nn]=dn.extend(gn,cn,an)):an!==tn&&(un[nn]=an));return un},dn.extend({noConflict:function noConflict(tn){return en.$===dn&&(en.$=hn),tn&&en.jQuery===dn&&(en.jQuery=pn),dn},isReady:!1,readyWait:1,holdReady:function holdReady(en){en?dn.readyWait++:dn.ready(!0)},ready:function ready(en){if(!0===en&&!--dn.readyWait||!0!==en&&!dn.isReady){if(!nn.body)return setTimeout(dn.ready,1);if(dn.isReady=!0,!0!==en&&--dn.readyWait>0)return;cn.fireWith(nn,[dn]),dn.fn.trigger&&dn(nn).trigger("ready").off("ready")}},bindReady:function bindReady(){if(!cn){if(cn=dn.Callbacks("once memory"),"complete"===nn.readyState)return setTimeout(dn.ready,1);if(nn.addEventListener)nn.addEventListener("DOMContentLoaded",un,!1),en.addEventListener("load",dn.ready,!1);else if(nn.attachEvent){nn.attachEvent("onreadystatechange",un),en.attachEvent("onload",dn.ready);var tn=!1;try{tn=null==en.frameElement}catch(en){}nn.documentElement.doScroll&&tn&&J()}}},isFunction:function isFunction(en){return"function"===dn.type(en)},isArray:Array.isArray||function(en){return"array"===dn.type(en)},isWindow:function isWindow(en){return en&&"object"==_typeof(en)&&"setInterval"in en},isNumeric:function isNumeric(en){return!isNaN(parseFloat(en))&&isFinite(en)},type:function type(en){return null==en?String(en):Dn[In.call(en)]||"object"},isPlainObject:function isPlainObject(en){if(!en||"object"!==dn.type(en)||en.nodeType||dn.isWindow(en))return!1;try{if(en.constructor&&!On.call(en,"constructor")&&!On.call(en.constructor.prototype,"isPrototypeOf"))return!1}catch(en){return!1}var nn;for(nn in en);return nn===tn||On.call(en,nn)},isEmptyObject:function isEmptyObject(en){for(var tn in en)return!1;return!0},error:function error(en){throw new Error(en)},parseJSON:function parseJSON(tn){return"string"==typeof tn&&tn?(tn=dn.trim(tn),en.JSON&&en.JSON.parse?en.JSON.parse(tn):_n.test(tn.replace(wn,"@").replace(xn,"]").replace(Sn,""))?new Function("return "+tn)():void dn.error("Invalid JSON: "+tn)):null},parseXML:function parseXML(nn){var rn;try{en.DOMParser?rn=(new DOMParser).parseFromString(nn,"text/xml"):((rn=new ActiveXObject("Microsoft.XMLDOM")).async="false",rn.loadXML(nn))}catch(en){rn=tn}return(!rn||!rn.documentElement||rn.getElementsByTagName("parsererror").length)&&dn.error("Invalid XML: "+nn),rn},noop:function noop(){},globalEval:function globalEval(tn){tn&&An.test(tn)&&(en.execScript||function(tn){en.eval.call(en,tn)})(tn)},camelCase:function camelCase(en){return en.replace(Ln,"ms-").replace(Pn,Tn)},nodeName:function nodeName(en,tn){return en.nodeName&&en.nodeName.toUpperCase()===tn.toUpperCase()},each:function each(en,nn,rn){var an,sn=0,cn=en.length,un=cn===tn||dn.isFunction(en);if(rn)if(un){for(an in en)if(!1===nn.apply(en[an],rn))break}else for(;sn<cn&&!1!==nn.apply(en[sn++],rn););else if(un){for(an in en)if(!1===nn.call(en[an],an,en[an]))break}else for(;sn<cn&&!1!==nn.call(en[sn],sn,en[sn++]););return en},trim:Mn?function(en){return null==en?"":Mn.call(en)}:function(en){return null==en?"":(en+"").replace(mn,"").replace(vn,"")},makeArray:function makeArray(en,tn){var nn=tn||[];if(null!=en){var rn=dn.type(en);null==en.length||"string"===rn||"function"===rn||"regexp"===rn||dn.isWindow(en)?Fn.call(nn,en):dn.merge(nn,en)}return nn},inArray:function inArray(en,tn,nn){var rn;if(tn){if(Rn)return Rn.call(tn,en,nn);for(rn=tn.length,nn=nn?nn<0?Math.max(0,rn+nn):nn:0;nn<rn;nn++)if(nn in tn&&tn[nn]===en)return nn}return-1},merge:function merge(en,nn){var rn=en.length,an=0;if("number"==typeof nn.length)for(var sn=nn.length;an<sn;an++)en[rn++]=nn[an];else for(;nn[an]!==tn;)en[rn++]=nn[an++];return en.length=rn,en},grep:function grep(en,tn,nn){var rn=[];nn=!!nn;for(var an=0,sn=en.length;an<sn;an++)nn!==!!tn(en[an],an)&&rn.push(en[an]);return rn},map:function map(en,nn,rn){var an,sn,cn=[],un=0,pn=en.length;if(en instanceof dn||pn!==tn&&"number"==typeof pn&&(pn>0&&en[0]&&en[pn-1]||0===pn||dn.isArray(en)))for(;un<pn;un++)null!=(an=nn(en[un],un,rn))&&(cn[cn.length]=an);else for(sn in en)null!=(an=nn(en[sn],sn,rn))&&(cn[cn.length]=an);return cn.concat.apply([],cn)},guid:1,proxy:function proxy(en,nn){if("string"==typeof nn){var rn=en[nn];nn=en,en=rn}if(!dn.isFunction(en))return tn;var an=Un.call(arguments,2),sn=function g(){return en.apply(nn,an.concat(Un.call(arguments)))};return sn.guid=en.guid=en.guid||sn.guid||dn.guid++,sn},access:function access(en,nn,rn,an,sn,cn){var un=en.length;if("object"==_typeof(nn)){for(var pn in nn)dn.access(en,pn,nn[pn],an,sn,rn);return en}if(rn!==tn){an=!cn&&an&&dn.isFunction(rn);for(var hn=0;hn<un;hn++)sn(en[hn],nn,an?rn.call(en[hn],hn,sn(en[hn],nn)):rn,cn);return en}return un?sn(en[0],nn):tn},now:function now(){return(new Date).getTime()},uaMatch:function uaMatch(en){en=en.toLowerCase();var tn=Cn.exec(en)||kn.exec(en)||Bn.exec(en)||en.indexOf("compatible")<0&&En.exec(en)||[];return{browser:tn[1]||"",version:tn[2]||"0"}},sub:function sub(){function a(en,tn){return new a.fn.init(en,tn)}dn.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(tn,nn){return nn&&nn instanceof dn&&!(nn instanceof a)&&(nn=a(nn)),dn.fn.init.call(this,tn,nn,en)},a.fn.init.prototype=a.fn;var en=a(nn);return a},browser:{}}),dn.each("Boolean Number String Function Array Date RegExp Object".split(" "),(function(en,tn){Dn["[object "+tn+"]"]=tn.toLowerCase()})),(sn=dn.uaMatch(Nn)).browser&&(dn.browser[sn.browser]=!0,dn.browser.version=sn.version),dn.browser.webkit&&(dn.browser.safari=!0),An.test(" ")&&(mn=/^[\s\xA0]+/,vn=/[\s\xA0]+$/),an=dn(nn),nn.addEventListener?un=function B(){nn.removeEventListener("DOMContentLoaded",un,!1),dn.ready()}:nn.attachEvent&&(un=function _B(){"complete"===nn.readyState&&(nn.detachEvent("onreadystatechange",un),dn.ready())}),dn}(),cn={};sn.Callbacks=function(en){en=en?cn[en]||function h(en){var tn,nn,rn=cn[en]={};for(tn=0,nn=(en=en.split(/\s+/)).length;tn<nn;tn++)rn[en[tn]]=!0;return rn}(en):{};var nn,rn,an,un,dn,pn=[],hn=[],gn=function m(tn){var nn,rn,an,cn;for(nn=0,rn=tn.length;nn<rn;nn++)an=tn[nn],"array"===(cn=sn.type(an))?m(an):"function"===cn&&(!en.unique||!mn.has(an))&&pn.push(an)},An=function n(tn,sn){for(sn=sn||[],nn=!en.memory||[tn,sn],rn=!0,dn=an||0,an=0,un=pn.length;pn&&dn<un;dn++)if(!1===pn[dn].apply(tn,sn)&&en.stopOnFalse){nn=!0;break}rn=!1,pn&&(en.once?!0===nn?mn.disable():pn=[]:hn&&hn.length&&(nn=hn.shift(),mn.fireWith(nn[0],nn[1])))},mn={add:function add(){if(pn){var en=pn.length;gn(arguments),rn?un=pn.length:nn&&!0!==nn&&(an=en,An(nn[0],nn[1]))}return this},remove:function remove(){if(pn)for(var tn=arguments,nn=0,an=tn.length;nn<an;nn++)for(var sn=0;sn<pn.length&&(tn[nn]!==pn[sn]||(rn&&sn<=un&&(un--,sn<=dn&&dn--),pn.splice(sn--,1),!en.unique));sn++);return this},has:function has(en){if(pn)for(var tn=0,nn=pn.length;tn<nn;tn++)if(en===pn[tn])return!0;return!1},empty:function empty(){return pn=[],this},disable:function disable(){return pn=hn=nn=tn,this},disabled:function disabled(){return!pn},lock:function lock(){return hn=tn,(!nn||!0===nn)&&mn.disable(),this},locked:function locked(){return!hn},fireWith:function fireWith(tn,an){return hn&&(rn?en.once||hn.push([tn,an]):(!en.once||!nn)&&An(tn,an)),this},fire:function fire(){return mn.fireWith(this,arguments),this},fired:function fired(){return!!nn}};return mn};var un=[].slice;sn.extend({Deferred:function Deferred(en){var tn,nn=sn.Callbacks("once memory"),rn=sn.Callbacks("once memory"),an=sn.Callbacks("memory"),cn="pending",un={resolve:nn,reject:rn,notify:an},dn={done:nn.add,fail:rn.add,progress:an.add,state:function state(){return cn},isResolved:nn.fired,isRejected:rn.fired,then:function then(en,tn,nn){return pn.done(en).fail(tn).progress(nn),this},always:function always(){return pn.done.apply(pn,arguments).fail.apply(pn,arguments),this},pipe:function pipe(en,tn,nn){return sn.Deferred((function(rn){sn.each({done:[en,"resolve"],fail:[tn,"reject"],progress:[nn,"notify"]},(function(en,tn){var nn,an=tn[0],cn=tn[1];sn.isFunction(an)?pn[en]((function(){(nn=an.apply(this,arguments))&&sn.isFunction(nn.promise)?nn.promise().then(rn.resolve,rn.reject,rn.notify):rn[cn+"With"](this===pn?rn:this,[nn])})):pn[en](rn[cn])}))})).promise()},promise:function promise(en){if(null==en)en=dn;else for(var tn in dn)en[tn]=dn[tn];return en}},pn=dn.promise({});for(tn in un)pn[tn]=un[tn].fire,pn[tn+"With"]=un[tn].fireWith;return pn.done((function(){cn="resolved"}),rn.disable,an.lock).fail((function(){cn="rejected"}),nn.disable,an.lock),en&&en.call(pn,pn),pn},when:function when(en){function m(en){return function(tn){an[en]=arguments.length>1?un.call(arguments,0):tn,dn.notifyWith(pn,an)}}function l(en){return function(nn){tn[en]=arguments.length>1?un.call(arguments,0):nn,--cn||dn.resolveWith(dn,tn)}}var tn=un.call(arguments,0),nn=0,rn=tn.length,an=Array(rn),cn=rn,dn=rn<=1&&en&&sn.isFunction(en.promise)?en:sn.Deferred(),pn=dn.promise();if(rn>1){for(;nn<rn;nn++)tn[nn]&&tn[nn].promise&&sn.isFunction(tn[nn].promise)?tn[nn].promise().then(l(nn),dn.reject,m(nn)):--cn;cn||dn.resolveWith(dn,tn)}else dn!==en&&dn.resolveWith(dn,rn?[en]:[]);return pn}}),sn.support=function(){var tn,rn,an,cn,un,dn,pn,hn,gn,An,mn,vn,yn=nn.createElement("div");if(nn.documentElement,yn.setAttribute("className","t"),yn.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",rn=yn.getElementsByTagName("*"),an=yn.getElementsByTagName("a")[0],!rn||!rn.length||!an)return{};un=(cn=nn.createElement("select")).appendChild(nn.createElement("option")),dn=yn.getElementsByTagName("input")[0],tn={leadingWhitespace:3===yn.firstChild.nodeType,tbody:!yn.getElementsByTagName("tbody").length,htmlSerialize:!!yn.getElementsByTagName("link").length,style:/top/.test(an.getAttribute("style")),hrefNormalized:"/a"===an.getAttribute("href"),opacity:/^0.55/.test(an.style.opacity),cssFloat:!!an.style.cssFloat,checkOn:"on"===dn.value,optSelected:un.selected,getSetAttribute:"t"!==yn.className,enctype:!!nn.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==nn.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},dn.checked=!0,tn.noCloneChecked=dn.cloneNode(!0).checked,cn.disabled=!0,tn.optDisabled=!un.disabled;try{delete yn.test}catch(en){tn.deleteExpando=!1}if(!yn.addEventListener&&yn.attachEvent&&yn.fireEvent&&(yn.attachEvent("onclick",(function(){tn.noCloneEvent=!1})),yn.cloneNode(!0).fireEvent("onclick")),(dn=nn.createElement("input")).value="t",dn.setAttribute("type","radio"),tn.radioValue="t"===dn.value,dn.setAttribute("checked","checked"),yn.appendChild(dn),(hn=nn.createDocumentFragment()).appendChild(yn.lastChild),tn.checkClone=hn.cloneNode(!0).cloneNode(!0).lastChild.checked,tn.appendChecked=dn.checked,hn.removeChild(dn),hn.appendChild(yn),yn.innerHTML="",en.getComputedStyle&&((pn=nn.createElement("div")).style.width="0",pn.style.marginRight="0",yn.style.width="2px",yn.appendChild(pn),tn.reliableMarginRight=0===(parseInt((en.getComputedStyle(pn,null)||{marginRight:0}).marginRight,10)||0)),yn.attachEvent)for(mn in{submit:1,change:1,focusin:1})(vn=(An="on"+mn)in yn)||(yn.setAttribute(An,"return;"),vn="function"==typeof yn[An]),tn[mn+"Bubbles"]=vn;return hn.removeChild(yn),hn=cn=un=pn=yn=dn=null,sn((function(){var en,rn,an,cn,un,dn,pn,hn,An=nn.getElementsByTagName("body")[0];!An||(1,pn="visibility:hidden;border:0;","<div "+(hn="style='"+(dn="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;")+"border:5px solid #000;padding:0;'")+"><div></div></div><table "+hn+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",(en=nn.createElement("div")).style.cssText=pn+"width:0;height:0;position:static;top:0;margin-top:1px",An.insertBefore(en,An.firstChild),yn=nn.createElement("div"),en.appendChild(yn),yn.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",gn=yn.getElementsByTagName("td"),vn=0===gn[0].offsetHeight,gn[0].style.display="",gn[1].style.display="none",tn.reliableHiddenOffsets=vn&&0===gn[0].offsetHeight,yn.innerHTML="",yn.style.width=yn.style.paddingLeft="1px",sn.boxModel=tn.boxModel=2===yn.offsetWidth,void 0!==yn.style.zoom&&(yn.style.display="inline",yn.style.zoom=1,tn.inlineBlockNeedsLayout=2===yn.offsetWidth,yn.style.display="",yn.innerHTML="<div style='width:4px;'></div>",tn.shrinkWrapBlocks=2!==yn.offsetWidth),yn.style.cssText=dn+pn,yn.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",an=(rn=yn.firstChild).firstChild,cn=rn.nextSibling.firstChild.firstChild,un={doesNotAddBorder:5!==an.offsetTop,doesAddBorderForTableAndCells:5===cn.offsetTop},an.style.position="fixed",an.style.top="20px",un.fixedPosition=20===an.offsetTop||15===an.offsetTop,an.style.position=an.style.top="",rn.style.overflow="hidden",rn.style.position="relative",un.subtractsBorderForOverflowNotVisible=-5===an.offsetTop,un.doesNotIncludeMarginInBodyOffset=1!==An.offsetTop,An.removeChild(en),yn=en=null,sn.extend(tn,un))})),tn}();var dn=/^(?:\{.*\}|\[.*\])$/,pn=/([A-Z])/g;sn.extend({cache:{},uuid:0,expando:"jQuery"+(sn.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function hasData(en){return!!(en=en.nodeType?sn.cache[en[sn.expando]]:en[sn.expando])&&!m(en)},data:function data(en,nn,rn,an){if(sn.acceptData(en)){var cn,un,dn,pn=sn.expando,hn="string"==typeof nn,gn=en.nodeType,An=gn?sn.cache:en,mn=gn?en[pn]:en[pn]&&pn,vn="events"===nn;if((!mn||!An[mn]||!vn&&!an&&!An[mn].data)&&hn&&rn===tn)return;return mn||(gn?en[pn]=mn=++sn.uuid:mn=pn),An[mn]||(An[mn]={},gn||(An[mn].toJSON=sn.noop)),"object"!=_typeof(nn)&&"function"!=typeof nn||(an?An[mn]=sn.extend(An[mn],nn):An[mn].data=sn.extend(An[mn].data,nn)),cn=un=An[mn],an||(un.data||(un.data={}),un=un.data),rn!==tn&&(un[sn.camelCase(nn)]=rn),vn&&!un[nn]?cn.events:(hn?null==(dn=un[nn])&&(dn=un[sn.camelCase(nn)]):dn=un,dn)}},removeData:function removeData(en,tn,nn){if(sn.acceptData(en)){var rn,an,cn,un=sn.expando,dn=en.nodeType,pn=dn?sn.cache:en,hn=dn?en[un]:un;if(!pn[hn])return;if(tn&&(rn=nn?pn[hn]:pn[hn].data)){sn.isArray(tn)||(tn in rn?tn=[tn]:tn=(tn=sn.camelCase(tn))in rn?[tn]:tn.split(" "));for(an=0,cn=tn.length;an<cn;an++)delete rn[tn[an]];if(!(nn?m:sn.isEmptyObject)(rn))return}if(!nn&&(delete pn[hn].data,!m(pn[hn])))return;sn.support.deleteExpando||!pn.setInterval?delete pn[hn]:pn[hn]=null,dn&&(sn.support.deleteExpando?delete en[un]:en.removeAttribute?en.removeAttribute(un):en[un]=null)}},_data:function _data(en,tn,nn){return sn.data(en,tn,nn,!0)},acceptData:function acceptData(en){if(en.nodeName){var tn=sn.noData[en.nodeName.toLowerCase()];if(tn)return!0!==tn&&en.getAttribute("classid")===tn}return!0}}),sn.fn.extend({data:function data(en,nn){var rn,an,cn,un=null;if(void 0===en){if(this.length&&(un=sn.data(this[0]),1===this[0].nodeType&&!sn._data(this[0],"parsedAttrs"))){for(var dn=0,pn=(an=this[0].attributes).length;dn<pn;dn++)0===(cn=an[dn].name).indexOf("data-")&&(cn=sn.camelCase(cn.substring(5)),l(this[0],cn,un[cn]));sn._data(this[0],"parsedAttrs",!0)}return un}return"object"==_typeof(en)?this.each((function(){sn.data(this,en)})):((rn=en.split("."))[1]=rn[1]?"."+rn[1]:"",nn===tn?((un=this.triggerHandler("getData"+rn[1]+"!",[rn[0]]))===tn&&this.length&&(un=sn.data(this[0],en),un=l(this[0],en,un)),un===tn&&rn[1]?this.data(rn[0]):un):this.each((function(){var tn=sn(this),an=[rn[0],nn];tn.triggerHandler("setData"+rn[1]+"!",an),sn.data(this,en,nn),tn.triggerHandler("changeData"+rn[1]+"!",an)})))},removeData:function removeData(en){return this.each((function(){sn.removeData(this,en)}))}}),sn.extend({_mark:function _mark(en,tn){en&&(tn=(tn||"fx")+"mark",sn._data(en,tn,(sn._data(en,tn)||0)+1))},_unmark:function _unmark(en,tn,nn){if(!0!==en&&(nn=tn,tn=en,en=!1),tn){var rn=(nn=nn||"fx")+"mark",an=en?0:(sn._data(tn,rn)||1)-1;an?sn._data(tn,rn,an):(sn.removeData(tn,rn,!0),n(tn,nn,"mark"))}},queue:function queue(en,tn,nn){var rn;if(en)return tn=(tn||"fx")+"queue",rn=sn._data(en,tn),nn&&(!rn||sn.isArray(nn)?rn=sn._data(en,tn,sn.makeArray(nn)):rn.push(nn)),rn||[]},dequeue:function dequeue(en,tn){tn=tn||"fx";var nn=sn.queue(en,tn),rn=nn.shift(),an={};"inprogress"===rn&&(rn=nn.shift()),rn&&("fx"===tn&&nn.unshift("inprogress"),sn._data(en,tn+".run",an),rn.call(en,(function(){sn.dequeue(en,tn)}),an)),nn.length||(sn.removeData(en,tn+"queue "+tn+".run",!0),n(en,tn,"queue"))}}),sn.fn.extend({queue:function queue(en,nn){return"string"!=typeof en&&(nn=en,en="fx"),nn===tn?sn.queue(this[0],en):this.each((function(){var tn=sn.queue(this,en,nn);"fx"===en&&"inprogress"!==tn[0]&&sn.dequeue(this,en)}))},dequeue:function dequeue(en){return this.each((function(){sn.dequeue(this,en)}))},delay:function delay(en,tn){return en=sn.fx&&sn.fx.speeds[en]||en,tn=tn||"fx",this.queue(tn,(function(tn,nn){var rn=setTimeout(tn,en);nn.stop=function(){clearTimeout(rn)}}))},clearQueue:function clearQueue(en){return this.queue(en||"fx",[])},promise:function promise(en,nn){function m(){--dn||an.resolveWith(cn,[cn])}"string"!=typeof en&&(en=tn),en=en||"fx";for(var rn,an=sn.Deferred(),cn=this,un=cn.length,dn=1,pn=en+"defer",hn=en+"queue",gn=en+"mark";un--;)(rn=sn.data(cn[un],pn,tn,!0)||(sn.data(cn[un],hn,tn,!0)||sn.data(cn[un],gn,tn,!0))&&sn.data(cn[un],pn,sn.Callbacks("once memory"),!0))&&(dn++,rn.add(m));return m(),an.promise()}});var hn,gn,An,mn=/[\n\t\r]/g,vn=/\s+/,yn=/\r/g,_n=/^(?:button|input)$/i,wn=/^(?:button|input|object|select|textarea)$/i,xn=/^a(?:rea)?$/i,Sn=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Cn=sn.support.getSetAttribute;sn.fn.extend({attr:function attr(en,tn){return sn.access(this,en,tn,!0,sn.attr)},removeAttr:function removeAttr(en){return this.each((function(){sn.removeAttr(this,en)}))},prop:function prop(en,tn){return sn.access(this,en,tn,!0,sn.prop)},removeProp:function removeProp(en){return en=sn.propFix[en]||en,this.each((function(){try{this[en]=tn,delete this[en]}catch(en){}}))},addClass:function addClass(en){var tn,nn,rn,an,cn,un,dn;if(sn.isFunction(en))return this.each((function(tn){sn(this).addClass(en.call(this,tn,this.className))}));if(en&&"string"==typeof en)for(tn=en.split(vn),nn=0,rn=this.length;nn<rn;nn++)if(1===(an=this[nn]).nodeType)if(an.className||1!==tn.length){for(cn=" "+an.className+" ",un=0,dn=tn.length;un<dn;un++)~cn.indexOf(" "+tn[un]+" ")||(cn+=tn[un]+" ");an.className=sn.trim(cn)}else an.className=en;return this},removeClass:function removeClass(en){var nn,rn,an,cn,un,dn,pn;if(sn.isFunction(en))return this.each((function(tn){sn(this).removeClass(en.call(this,tn,this.className))}));if(en&&"string"==typeof en||en===tn)for(nn=(en||"").split(vn),rn=0,an=this.length;rn<an;rn++)if(1===(cn=this[rn]).nodeType&&cn.className)if(en){for(un=(" "+cn.className+" ").replace(mn," "),dn=0,pn=nn.length;dn<pn;dn++)un=un.replace(" "+nn[dn]+" "," ");cn.className=sn.trim(un)}else cn.className="";return this},toggleClass:function toggleClass(en,tn){var nn=_typeof(en),rn="boolean"==typeof tn;return sn.isFunction(en)?this.each((function(nn){sn(this).toggleClass(en.call(this,nn,this.className,tn),tn)})):this.each((function(){if("string"===nn)for(var an,cn=0,un=sn(this),dn=tn,pn=en.split(vn);an=pn[cn++];)dn=rn?dn:!un.hasClass(an),un[dn?"addClass":"removeClass"](an);else"undefined"!==nn&&"boolean"!==nn||(this.className&&sn._data(this,"__className__",this.className),this.className=this.className||!1===en?"":sn._data(this,"__className__")||"")}))},hasClass:function hasClass(en){for(var tn=" "+en+" ",nn=0,rn=this.length;nn<rn;nn++)if(1===this[nn].nodeType&&(" "+this[nn].className+" ").replace(mn," ").indexOf(tn)>-1)return!0;return!1},val:function val(en){var nn,rn,an,cn=this[0];return arguments.length?(an=sn.isFunction(en),this.each((function(rn){var cn,un=sn(this);1===this.nodeType&&(null==(cn=an?en.call(this,rn,un.val()):en)?cn="":"number"==typeof cn?cn+="":sn.isArray(cn)&&(cn=sn.map(cn,(function(en){return null==en?"":en+""}))),(nn=sn.valHooks[this.nodeName.toLowerCase()]||sn.valHooks[this.type])&&"set"in nn&&nn.set(this,cn,"value")!==tn||(this.value=cn))}))):cn?(nn=sn.valHooks[cn.nodeName.toLowerCase()]||sn.valHooks[cn.type])&&"get"in nn&&(rn=nn.get(cn,"value"))!==tn?rn:"string"==typeof(rn=cn.value)?rn.replace(yn,""):null==rn?"":rn:void 0}}),sn.extend({valHooks:{option:{get:function get(en){var tn=en.attributes.value;return!tn||tn.specified?en.value:en.text}},select:{get:function get(en){var tn,nn,rn,an,cn=en.selectedIndex,un=[],dn=en.options,pn="select-one"===en.type;if(cn<0)return null;for(nn=pn?cn:0,rn=pn?cn+1:dn.length;nn<rn;nn++)if((an=dn[nn]).selected&&(sn.support.optDisabled?!an.disabled:null===an.getAttribute("disabled"))&&(!an.parentNode.disabled||!sn.nodeName(an.parentNode,"optgroup"))){if(tn=sn(an).val(),pn)return tn;un.push(tn)}return pn&&!un.length&&dn.length?sn(dn[cn]).val():un},set:function set(en,tn){var nn=sn.makeArray(tn);return sn(en).find("option").each((function(){this.selected=sn.inArray(sn(this).val(),nn)>=0})),nn.length||(en.selectedIndex=-1),nn}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function attr(en,nn,rn,an){var cn,un,dn,pn=en.nodeType;if(en&&3!==pn&&8!==pn&&2!==pn)return an&&nn in sn.attrFn?sn(en)[nn](rn):void 0===en.getAttribute?sn.prop(en,nn,rn):((dn=1!==pn||!sn.isXMLDoc(en))&&(nn=nn.toLowerCase(),un=sn.attrHooks[nn]||(Sn.test(nn)?gn:hn)),rn!==tn?null===rn?void sn.removeAttr(en,nn):un&&"set"in un&&dn&&(cn=un.set(en,rn,nn))!==tn?cn:(en.setAttribute(nn,""+rn),rn):un&&"get"in un&&dn&&null!==(cn=un.get(en,nn))?cn:null===(cn=en.getAttribute(nn))?tn:cn)},removeAttr:function removeAttr(en,tn){var nn,rn,an,cn,un=0;if(tn&&1===en.nodeType)for(cn=(rn=tn.toLowerCase().split(vn)).length;un<cn;un++)(an=rn[un])&&(nn=sn.propFix[an]||an,sn.attr(en,an,""),en.removeAttribute(Cn?an:nn),Sn.test(an)&&nn in en&&(en[nn]=!1))},attrHooks:{type:{set:function set(en,tn){if(_n.test(en.nodeName)&&en.parentNode)sn.error("type property can't be changed");else if(!sn.support.radioValue&&"radio"===tn&&sn.nodeName(en,"input")){var nn=en.value;return en.setAttribute("type",tn),nn&&(en.value=nn),tn}}},value:{get:function get(en,tn){return hn&&sn.nodeName(en,"button")?hn.get(en,tn):tn in en?en.value:null},set:function set(en,tn,nn){if(hn&&sn.nodeName(en,"button"))return hn.set(en,tn,nn);en.value=tn}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function prop(en,nn,rn){var an,cn,un=en.nodeType;if(en&&3!==un&&8!==un&&2!==un)return(1!==un||!sn.isXMLDoc(en))&&(nn=sn.propFix[nn]||nn,cn=sn.propHooks[nn]),rn!==tn?cn&&"set"in cn&&(an=cn.set(en,rn,nn))!==tn?an:en[nn]=rn:cn&&"get"in cn&&null!==(an=cn.get(en,nn))?an:en[nn]},propHooks:{tabIndex:{get:function get(en){var nn=en.getAttributeNode("tabindex");return nn&&nn.specified?parseInt(nn.value,10):wn.test(en.nodeName)||xn.test(en.nodeName)&&en.href?0:tn}}}}),sn.attrHooks.tabindex=sn.propHooks.tabIndex,gn={get:function get(en,nn){var rn,an=sn.prop(en,nn);return!0===an||"boolean"!=typeof an&&(rn=en.getAttributeNode(nn))&&!1!==rn.nodeValue?nn.toLowerCase():tn},set:function set(en,tn,nn){var rn;return!1===tn?sn.removeAttr(en,nn):((rn=sn.propFix[nn]||nn)in en&&(en[rn]=!0),en.setAttribute(nn,nn.toLowerCase())),nn}},Cn||(An={name:!0,id:!0},hn=sn.valHooks.button={get:function get(en,nn){var rn;return(rn=en.getAttributeNode(nn))&&(An[nn]?""!==rn.nodeValue:rn.specified)?rn.nodeValue:tn},set:function set(en,tn,rn){var an=en.getAttributeNode(rn);return an||(an=nn.createAttribute(rn),en.setAttributeNode(an)),an.nodeValue=tn+""}},sn.attrHooks.tabindex.set=hn.set,sn.each(["width","height"],(function(en,tn){sn.attrHooks[tn]=sn.extend(sn.attrHooks[tn],{set:function set(en,nn){if(""===nn)return en.setAttribute(tn,"auto"),nn}})})),sn.attrHooks.contenteditable={get:hn.get,set:function set(en,tn,nn){""===tn&&(tn="false"),hn.set(en,tn,nn)}}),sn.support.hrefNormalized||sn.each(["href","src","width","height"],(function(en,nn){sn.attrHooks[nn]=sn.extend(sn.attrHooks[nn],{get:function get(en){var rn=en.getAttribute(nn,2);return null===rn?tn:rn}})})),sn.support.style||(sn.attrHooks.style={get:function get(en){return en.style.cssText.toLowerCase()||tn},set:function set(en,tn){return en.style.cssText=""+tn}}),sn.support.optSelected||(sn.propHooks.selected=sn.extend(sn.propHooks.selected,{get:function get(en){var tn=en.parentNode;return tn&&(tn.selectedIndex,tn.parentNode&&tn.parentNode.selectedIndex),null}})),sn.support.enctype||(sn.propFix.enctype="encoding"),sn.support.checkOn||sn.each(["radio","checkbox"],(function(){sn.valHooks[this]={get:function get(en){return null===en.getAttribute("value")?"on":en.value}}})),sn.each(["radio","checkbox"],(function(){sn.valHooks[this]=sn.extend(sn.valHooks[this],{set:function set(en,tn){if(sn.isArray(tn))return en.checked=sn.inArray(sn(en).val(),tn)>=0}})}));var kn=/^(?:textarea|input|select)$/i,Bn=/^([^\.]*)?(?:\.(.+))?$/,En=/\bhover(\.\S+)?\b/,Pn=/^key/,Ln=/^(?:mouse|contextmenu)|click/,Tn=/^(?:focusinfocus|focusoutblur)$/,Nn=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,In=function G(en){var tn=Nn.exec(en);return tn&&(tn[1]=(tn[1]||"").toLowerCase(),tn[3]=tn[3]&&new RegExp("(?:^|\\s)"+tn[3]+"(?:\\s|$)")),tn},On=function H(en,tn){var nn=en.attributes||{};return(!tn[1]||en.nodeName.toLowerCase()===tn[1])&&(!tn[2]||(nn.id||{}).value===tn[2])&&(!tn[3]||tn[3].test((nn.class||{}).value))},Fn=function I(en){return sn.event.special.hover?en:en.replace(En,"mouseenter$1 mouseleave$1")};sn.event={add:function add(en,nn,rn,an,cn){var un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn;if(3!==en.nodeType&&8!==en.nodeType&&nn&&rn&&(un=sn._data(en))){for(rn.handler&&(rn=(yn=rn).handler),rn.guid||(rn.guid=sn.guid++),(pn=un.events)||(un.events=pn={}),(dn=un.handle)||(un.handle=dn=function i(en){return void 0===sn||en&&sn.event.triggered===en.type?tn:sn.event.dispatch.apply(dn.elem,arguments)},dn.elem=en),nn=sn.trim(Fn(nn)).split(" "),hn=0;hn<nn.length;hn++)An=(gn=Bn.exec(nn[hn])||[])[1],mn=(gn[2]||"").split(".").sort(),wn=sn.event.special[An]||{},An=(cn?wn.delegateType:wn.bindType)||An,wn=sn.event.special[An]||{},vn=sn.extend({type:An,origType:gn[1],data:an,handler:rn,guid:rn.guid,selector:cn,quick:In(cn),namespace:mn.join(".")},yn),(_n=pn[An])||((_n=pn[An]=[]).delegateCount=0,wn.setup&&!1!==wn.setup.call(en,an,mn,dn)||(en.addEventListener?en.addEventListener(An,dn,!1):en.attachEvent&&en.attachEvent("on"+An,dn))),wn.add&&(wn.add.call(en,vn),vn.handler.guid||(vn.handler.guid=rn.guid)),cn?_n.splice(_n.delegateCount++,0,vn):_n.push(vn),sn.event.global[An]=!0;en=null}},global:{},remove:function remove(en,tn,nn,rn,an){var cn,un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn,xn=sn.hasData(en)&&sn._data(en);if(xn&&(mn=xn.events)){for(tn=sn.trim(Fn(tn||"")).split(" "),cn=0;cn<tn.length;cn++)if(dn=pn=(un=Bn.exec(tn[cn])||[])[1],hn=un[2],dn){for(vn=sn.event.special[dn]||{},gn=(_n=mn[dn=(rn?vn.delegateType:vn.bindType)||dn]||[]).length,hn=hn?new RegExp("(^|\\.)"+hn.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,An=0;An<_n.length;An++)wn=_n[An],(an||pn===wn.origType)&&(!nn||nn.guid===wn.guid)&&(!hn||hn.test(wn.namespace))&&(!rn||rn===wn.selector||"**"===rn&&wn.selector)&&(_n.splice(An--,1),wn.selector&&_n.delegateCount--,vn.remove&&vn.remove.call(en,wn));0===_n.length&&gn!==_n.length&&((!vn.teardown||!1===vn.teardown.call(en,hn))&&sn.removeEvent(en,dn,xn.handle),delete mn[dn])}else for(dn in mn)sn.event.remove(en,dn+tn[cn],nn,rn,!0);sn.isEmptyObject(mn)&&((yn=xn.handle)&&(yn.elem=null),sn.removeData(en,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function trigger(nn,rn,an,cn){if(!an||3!==an.nodeType&&8!==an.nodeType){var un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn=nn.type||nn,xn=[];if(Tn.test(wn+sn.event.triggered))return;if(wn.indexOf("!")>=0&&(wn=wn.slice(0,-1),dn=!0),wn.indexOf(".")>=0&&(xn=wn.split("."),wn=xn.shift(),xn.sort()),(!an||sn.event.customEvent[wn])&&!sn.event.global[wn])return;if((nn="object"==_typeof(nn)?nn[sn.expando]?nn:new sn.Event(wn,nn):new sn.Event(wn)).type=wn,nn.isTrigger=!0,nn.exclusive=dn,nn.namespace=xn.join("."),nn.namespace_re=nn.namespace?new RegExp("(^|\\.)"+xn.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,An=wn.indexOf(":")<0?"on"+wn:"",!an){for(pn in un=sn.cache)un[pn].events&&un[pn].events[wn]&&sn.event.trigger(nn,rn,un[pn].handle.elem,!0);return}if(nn.result=tn,nn.target||(nn.target=an),(rn=null!=rn?sn.makeArray(rn):[]).unshift(nn),(mn=sn.event.special[wn]||{}).trigger&&!1===mn.trigger.apply(an,rn))return;if(yn=[[an,mn.bindType||wn]],!cn&&!mn.noBubble&&!sn.isWindow(an)){for(_n=mn.delegateType||wn,hn=Tn.test(_n+wn)?an:an.parentNode,gn=null;hn;hn=hn.parentNode)yn.push([hn,_n]),gn=hn;gn&&gn===an.ownerDocument&&yn.push([gn.defaultView||gn.parentWindow||en,_n])}for(pn=0;pn<yn.length&&!nn.isPropagationStopped();pn++)hn=yn[pn][0],nn.type=yn[pn][1],(vn=(sn._data(hn,"events")||{})[nn.type]&&sn._data(hn,"handle"))&&vn.apply(hn,rn),(vn=An&&hn[An])&&sn.acceptData(hn)&&!1===vn.apply(hn,rn)&&nn.preventDefault();return nn.type=wn,!cn&&!nn.isDefaultPrevented()&&(!mn._default||!1===mn._default.apply(an.ownerDocument,rn))&&("click"!==wn||!sn.nodeName(an,"a"))&&sn.acceptData(an)&&An&&an[wn]&&("focus"!==wn&&"blur"!==wn||0!==nn.target.offsetWidth)&&!sn.isWindow(an)&&((gn=an[An])&&(an[An]=null),sn.event.triggered=wn,an[wn](),sn.event.triggered=tn,gn&&(an[An]=gn)),nn.result}},dispatch:function dispatch(nn){nn=sn.event.fix(nn||en.event);var rn,an,cn,un,dn,pn,hn,gn,An,mn,vn=(sn._data(this,"events")||{})[nn.type]||[],yn=vn.delegateCount,_n=[].slice.call(arguments,0),wn=!nn.exclusive&&!nn.namespace,xn=[];if(_n[0]=nn,nn.delegateTarget=this,yn&&!nn.target.disabled&&(!nn.button||"click"!==nn.type))for((un=sn(this)).context=this.ownerDocument||this,cn=nn.target;cn!=this;cn=cn.parentNode||this){for(pn={},gn=[],un[0]=cn,rn=0;rn<yn;rn++)pn[mn=(An=vn[rn]).selector]===tn&&(pn[mn]=An.quick?On(cn,An.quick):un.is(mn)),pn[mn]&&gn.push(An);gn.length&&xn.push({elem:cn,matches:gn})}for(vn.length>yn&&xn.push({elem:this,matches:vn.slice(yn)}),rn=0;rn<xn.length&&!nn.isPropagationStopped();rn++)for(hn=xn[rn],nn.currentTarget=hn.elem,an=0;an<hn.matches.length&&!nn.isImmediatePropagationStopped();an++)An=hn.matches[an],(wn||!nn.namespace&&!An.namespace||nn.namespace_re&&nn.namespace_re.test(An.namespace))&&(nn.data=An.data,nn.handleObj=An,(dn=((sn.event.special[An.origType]||{}).handle||An.handler).apply(hn.elem,_n))!==tn&&(nn.result=dn,!1===dn&&(nn.preventDefault(),nn.stopPropagation())));return nn.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function filter(en,tn){return null==en.which&&(en.which=null!=tn.charCode?tn.charCode:tn.keyCode),en}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function filter(en,rn){var an,sn,cn,un=rn.button,dn=rn.fromElement;return null==en.pageX&&null!=rn.clientX&&(sn=(an=en.target.ownerDocument||nn).documentElement,cn=an.body,en.pageX=rn.clientX+(sn&&sn.scrollLeft||cn&&cn.scrollLeft||0)-(sn&&sn.clientLeft||cn&&cn.clientLeft||0),en.pageY=rn.clientY+(sn&&sn.scrollTop||cn&&cn.scrollTop||0)-(sn&&sn.clientTop||cn&&cn.clientTop||0)),!en.relatedTarget&&dn&&(en.relatedTarget=dn===en.target?rn.toElement:dn),!en.which&&un!==tn&&(en.which=1&un?1:2&un?3:4&un?2:0),en}},fix:function fix(en){if(en[sn.expando])return en;var rn,an,cn=en,un=sn.event.fixHooks[en.type]||{},dn=un.props?this.props.concat(un.props):this.props;for(en=sn.Event(cn),rn=dn.length;rn;)en[an=dn[--rn]]=cn[an];return en.target||(en.target=cn.srcElement||nn),3===en.target.nodeType&&(en.target=en.target.parentNode),en.metaKey===tn&&(en.metaKey=en.ctrlKey),un.filter?un.filter(en,cn):en},special:{ready:{setup:sn.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function setup(en,tn,nn){sn.isWindow(this)&&(this.onbeforeunload=nn)},teardown:function teardown(en,tn){this.onbeforeunload===tn&&(this.onbeforeunload=null)}}},simulate:function simulate(en,tn,nn,rn){var an=sn.extend(new sn.Event,nn,{type:en,isSimulated:!0,originalEvent:{}});rn?sn.event.trigger(an,null,tn):sn.event.dispatch.call(tn,an),an.isDefaultPrevented()&&nn.preventDefault()}},sn.event.handle=sn.event.dispatch,sn.removeEvent=nn.removeEventListener?function(en,tn,nn){en.removeEventListener&&en.removeEventListener(tn,nn,!1)}:function(en,tn,nn){en.detachEvent&&en.detachEvent("on"+tn,nn)},sn.Event=function(en,tn){if(!(this instanceof sn.Event))return new sn.Event(en,tn);en&&en.type?(this.originalEvent=en,this.type=en.type,this.isDefaultPrevented=en.defaultPrevented||!1===en.returnValue||en.getPreventDefault&&en.getPreventDefault()?K:J):this.type=en,tn&&sn.extend(this,tn),this.timeStamp=en&&en.timeStamp||sn.now(),this[sn.expando]=!0},sn.Event.prototype={preventDefault:function preventDefault(){this.isDefaultPrevented=K;var en=this.originalEvent;!en||(en.preventDefault?en.preventDefault():en.returnValue=!1)},stopPropagation:function stopPropagation(){this.isPropagationStopped=K;var en=this.originalEvent;!en||(en.stopPropagation&&en.stopPropagation(),en.cancelBubble=!0)},stopImmediatePropagation:function stopImmediatePropagation(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},sn.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(en,tn){sn.event.special[en]={delegateType:tn,bindType:tn,handle:function handle(en){var nn,rn=this,an=en.relatedTarget,cn=en.handleObj;return cn.selector,an&&(an===rn||sn.contains(rn,an))||(en.type=cn.origType,nn=cn.handler.apply(this,arguments),en.type=tn),nn}}})),sn.support.submitBubbles||(sn.event.special.submit={setup:function setup(){if(sn.nodeName(this,"form"))return!1;sn.event.add(this,"click._submit keypress._submit",(function(en){var nn=en.target,rn=sn.nodeName(nn,"input")||sn.nodeName(nn,"button")?nn.form:tn;rn&&!rn._submit_attached&&(sn.event.add(rn,"submit._submit",(function(en){this.parentNode&&!en.isTrigger&&sn.event.simulate("submit",this.parentNode,en,!0)})),rn._submit_attached=!0)}))},teardown:function teardown(){if(sn.nodeName(this,"form"))return!1;sn.event.remove(this,"._submit")}}),sn.support.changeBubbles||(sn.event.special.change={setup:function setup(){if(kn.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(sn.event.add(this,"propertychange._change",(function(en){"checked"===en.originalEvent.propertyName&&(this._just_changed=!0)})),sn.event.add(this,"click._change",(function(en){this._just_changed&&!en.isTrigger&&(this._just_changed=!1,sn.event.simulate("change",this,en,!0))}))),!1;sn.event.add(this,"beforeactivate._change",(function(en){var tn=en.target;kn.test(tn.nodeName)&&!tn._change_attached&&(sn.event.add(tn,"change._change",(function(en){this.parentNode&&!en.isSimulated&&!en.isTrigger&&sn.event.simulate("change",this.parentNode,en,!0)})),tn._change_attached=!0)}))},handle:function handle(en){var tn=en.target;if(this!==tn||en.isSimulated||en.isTrigger||"radio"!==tn.type&&"checkbox"!==tn.type)return en.handleObj.handler.apply(this,arguments)},teardown:function teardown(){return sn.event.remove(this,"._change"),kn.test(this.nodeName)}}),sn.support.focusinBubbles||sn.each({focus:"focusin",blur:"focusout"},(function(en,tn){var rn=0,an=function e(en){sn.event.simulate(tn,en.target,sn.event.fix(en),!0)};sn.event.special[tn]={setup:function setup(){0==rn++&&nn.addEventListener(en,an,!0)},teardown:function teardown(){0==--rn&&nn.removeEventListener(en,an,!0)}}})),sn.fn.extend({on:function on(en,nn,rn,an,cn){var un,dn;if("object"==_typeof(en)){for(dn in"string"!=typeof nn&&(rn=nn,nn=tn),en)this.on(dn,nn,rn,en[dn],cn);return this}if(null==rn&&null==an?(an=nn,rn=nn=tn):null==an&&("string"==typeof nn?(an=rn,rn=tn):(an=rn,rn=nn,nn=tn)),!1===an)an=J;else if(!an)return this;return 1===cn&&(un=an,(an=function e(en){return sn().off(en),un.apply(this,arguments)}).guid=un.guid||(un.guid=sn.guid++)),this.each((function(){sn.event.add(this,en,an,rn,nn)}))},one:function one(en,tn,nn,rn){return this.on.call(this,en,tn,nn,rn,1)},off:function off(en,nn,rn){if(en&&en.preventDefault&&en.handleObj){var an=en.handleObj;return sn(en.delegateTarget).off(an.namespace?an.type+"."+an.namespace:an.type,an.selector,an.handler),this}if("object"==_typeof(en)){for(var cn in en)this.off(cn,nn,en[cn]);return this}return!1!==nn&&"function"!=typeof nn||(rn=nn,nn=tn),!1===rn&&(rn=J),this.each((function(){sn.event.remove(this,en,rn,nn)}))},bind:function bind(en,tn,nn){return this.on(en,null,tn,nn)},unbind:function unbind(en,tn){return this.off(en,null,tn)},live:function live(en,tn,nn){return sn(this.context).on(en,this.selector,tn,nn),this},die:function die(en,tn){return sn(this.context).off(en,this.selector||"**",tn),this},delegate:function delegate(en,tn,nn,rn){return this.on(tn,en,nn,rn)},undelegate:function undelegate(en,tn,nn){return 1==arguments.length?this.off(en,"**"):this.off(tn,en,nn)},trigger:function trigger(en,tn){return this.each((function(){sn.event.trigger(en,tn,this)}))},triggerHandler:function triggerHandler(en,tn){if(this[0])return sn.event.trigger(en,tn,this[0],!0)},toggle:function toggle(en){var tn=arguments,nn=en.guid||sn.guid++,rn=0,an=function e(nn){var e=(sn._data(this,"lastToggle"+en.guid)||0)%rn;return sn._data(this,"lastToggle"+en.guid,e+1),nn.preventDefault(),tn[e].apply(this,arguments)||!1};for(an.guid=nn;rn<tn.length;)tn[rn++].guid=nn;return this.click(an)},hover:function hover(en,tn){return this.mouseenter(en).mouseleave(tn||en)}}),sn.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(en,tn){sn.fn[tn]=function(en,nn){return null==nn&&(nn=en,en=null),arguments.length>0?this.on(tn,null,en,nn):this.trigger(tn)},sn.attrFn&&(sn.attrFn[tn]=!0),Pn.test(tn)&&(sn.event.fixHooks[tn]=sn.event.keyHooks),Ln.test(tn)&&(sn.event.fixHooks[tn]=sn.event.mouseHooks)})),function(){function x(en,tn,nn,an,sn,cn){for(var un=0,dn=an.length;un<dn;un++){var pn=an[un];if(pn){var hn=!1;for(pn=pn[en];pn;){if(pn[rn]===nn){hn=an[pn.sizset];break}if(1===pn.nodeType)if(cn||(pn[rn]=nn,pn.sizset=un),"string"!=typeof tn){if(pn===tn){hn=!0;break}}else if(An.filter(tn,[pn]).length>0){hn=pn;break}pn=pn[en]}an[un]=hn}}}function w(en,tn,nn,an,sn,cn){for(var un=0,dn=an.length;un<dn;un++){var pn=an[un];if(pn){var hn=!1;for(pn=pn[en];pn;){if(pn[rn]===nn){hn=an[pn.sizset];break}if(1===pn.nodeType&&!cn&&(pn[rn]=nn,pn.sizset=un),pn.nodeName.toLowerCase()===tn){hn=pn;break}pn=pn[en]}an[un]=hn}}}var en=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,rn="sizcache"+(Math.random()+"").replace(".",""),an=0,cn=Object.prototype.toString,un=!1,dn=!0,pn=/\\/g,hn=/\r\n/g,gn=/\W/;[0,0].sort((function(){return dn=!1,0}));var An=function m(tn,rn,an,sn){an=an||[];var un=rn=rn||nn;if(1!==rn.nodeType&&9!==rn.nodeType)return[];if(!tn||"string"!=typeof tn)return an;var dn,pn,hn,gn,mn,_n,wn,xn,Sn=!0,Bn=An.isXML(rn),En=[],Pn=tn;do{if(en.exec(""),(dn=en.exec(Pn))&&(Pn=dn[3],En.push(dn[1]),dn[2])){gn=dn[3];break}}while(dn);if(En.length>1&&yn.exec(tn))if(2===En.length&&vn.relative[En[0]])pn=kn(En[0]+En[1],rn,sn);else for(pn=vn.relative[En[0]]?[rn]:An(En.shift(),rn);En.length;)tn=En.shift(),vn.relative[tn]&&(tn+=En.shift()),pn=kn(tn,pn,sn);else if(!sn&&En.length>1&&9===rn.nodeType&&!Bn&&vn.match.ID.test(En[0])&&!vn.match.ID.test(En[En.length-1])&&(rn=(mn=An.find(En.shift(),rn,Bn)).expr?An.filter(mn.expr,mn.set)[0]:mn.set[0]),rn)for(pn=(mn=sn?{expr:En.pop(),set:Cn(sn)}:An.find(En.pop(),1!==En.length||"~"!==En[0]&&"+"!==En[0]||!rn.parentNode?rn:rn.parentNode,Bn)).expr?An.filter(mn.expr,mn.set):mn.set,En.length>0?hn=Cn(pn):Sn=!1;En.length;)wn=_n=En.pop(),vn.relative[_n]?wn=En.pop():_n="",null==wn&&(wn=rn),vn.relative[_n](hn,wn,Bn);else hn=En=[];if(hn||(hn=pn),hn||An.error(_n||tn),"[object Array]"===cn.call(hn))if(Sn)if(rn&&1===rn.nodeType)for(xn=0;null!=hn[xn];xn++)hn[xn]&&(!0===hn[xn]||1===hn[xn].nodeType&&An.contains(rn,hn[xn]))&&an.push(pn[xn]);else for(xn=0;null!=hn[xn];xn++)hn[xn]&&1===hn[xn].nodeType&&an.push(pn[xn]);else an.push.apply(an,hn);else Cn(hn,an);return gn&&(An(gn,un,an,sn),An.uniqueSort(an)),an};An.uniqueSort=function(en){if(xn&&(un=dn,en.sort(xn),un))for(var tn=1;tn<en.length;tn++)en[tn]===en[tn-1]&&en.splice(tn--,1);return en},An.matches=function(en,tn){return An(en,null,null,tn)},An.matchesSelector=function(en,tn){return An(tn,null,null,[en]).length>0},An.find=function(en,tn,nn){var rn,an,sn,cn,un,dn;if(!en)return[];for(an=0,sn=vn.order.length;an<sn;an++)if(un=vn.order[an],(cn=vn.leftMatch[un].exec(en))&&(dn=cn[1],cn.splice(1,1),"\\"!==dn.substr(dn.length-1)&&(cn[1]=(cn[1]||"").replace(pn,""),null!=(rn=vn.find[un](cn,tn,nn))))){en=en.replace(vn.match[un],"");break}return rn||(rn=void 0!==tn.getElementsByTagName?tn.getElementsByTagName("*"):[]),{set:rn,expr:en}},An.filter=function(en,nn,rn,an){for(var sn,cn,un,dn,pn,hn,gn,mn,yn,_n=en,wn=[],xn=nn,Sn=nn&&nn[0]&&An.isXML(nn[0]);en&&nn.length;){for(un in vn.filter)if(null!=(sn=vn.leftMatch[un].exec(en))&&sn[2]){if(hn=vn.filter[un],gn=sn[1],cn=!1,sn.splice(1,1),"\\"===gn.substr(gn.length-1))continue;if(xn===wn&&(wn=[]),vn.preFilter[un])if(sn=vn.preFilter[un](sn,xn,rn,wn,an,Sn)){if(!0===sn)continue}else cn=dn=!0;if(sn)for(mn=0;null!=(pn=xn[mn]);mn++)pn&&(yn=an^(dn=hn(pn,sn,mn,xn)),rn&&null!=dn?yn?cn=!0:xn[mn]=!1:yn&&(wn.push(pn),cn=!0));if(dn!==tn){if(rn||(xn=wn),en=en.replace(vn.match[un],""),!cn)return[];break}}if(en===_n){if(null!=cn)break;An.error(en)}_n=en}return xn},An.error=function(en){throw new Error("Syntax error, unrecognized expression: "+en)};var mn=An.getText=function(en){var tn,nn,rn=en.nodeType,an="";if(rn){if(1===rn||9===rn){if("string"==typeof en.textContent)return en.textContent;if("string"==typeof en.innerText)return en.innerText.replace(hn,"");for(en=en.firstChild;en;en=en.nextSibling)an+=mn(en)}else if(3===rn||4===rn)return en.nodeValue}else for(tn=0;nn=en[tn];tn++)8!==nn.nodeType&&(an+=mn(nn));return an},vn=An.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function href(en){return en.getAttribute("href")},type:function type(en){return en.getAttribute("type")}},relative:{"+":function _(en,tn){var nn="string"==typeof tn,rn=nn&&!gn.test(tn),an=nn&&!rn;rn&&(tn=tn.toLowerCase());for(var sn,cn=0,un=en.length;cn<un;cn++)if(sn=en[cn]){for(;(sn=sn.previousSibling)&&1!==sn.nodeType;);en[cn]=an||sn&&sn.nodeName.toLowerCase()===tn?sn||!1:sn===tn}an&&An.filter(tn,en,!0)},">":function _(en,tn){var nn,rn="string"==typeof tn,an=0,sn=en.length;if(rn&&!gn.test(tn)){for(tn=tn.toLowerCase();an<sn;an++)if(nn=en[an]){var cn=nn.parentNode;en[an]=cn.nodeName.toLowerCase()===tn&&cn}}else{for(;an<sn;an++)(nn=en[an])&&(en[an]=rn?nn.parentNode:nn.parentNode===tn);rn&&An.filter(tn,en,!0)}},"":function _(en,tn,nn){var rn,sn=an++,cn=x;"string"==typeof tn&&!gn.test(tn)&&(rn=tn=tn.toLowerCase(),cn=w),cn("parentNode",tn,sn,en,rn,nn)},"~":function _(en,tn,nn){var rn,sn=an++,cn=x;"string"==typeof tn&&!gn.test(tn)&&(rn=tn=tn.toLowerCase(),cn=w),cn("previousSibling",tn,sn,en,rn,nn)}},find:{ID:function ID(en,tn,nn){if(void 0!==tn.getElementById&&!nn){var rn=tn.getElementById(en[1]);return rn&&rn.parentNode?[rn]:[]}},NAME:function NAME(en,tn){if(void 0!==tn.getElementsByName){for(var nn=[],rn=tn.getElementsByName(en[1]),an=0,sn=rn.length;an<sn;an++)rn[an].getAttribute("name")===en[1]&&nn.push(rn[an]);return 0===nn.length?null:nn}},TAG:function TAG(en,tn){if(void 0!==tn.getElementsByTagName)return tn.getElementsByTagName(en[1])}},preFilter:{CLASS:function CLASS(en,tn,nn,rn,an,sn){if(en=" "+en[1].replace(pn,"")+" ",sn)return en;for(var cn,un=0;null!=(cn=tn[un]);un++)cn&&(an^(cn.className&&(" "+cn.className+" ").replace(/[\t\n\r]/g," ").indexOf(en)>=0)?nn||rn.push(cn):nn&&(tn[un]=!1));return!1},ID:function ID(en){return en[1].replace(pn,"")},TAG:function TAG(en,tn){return en[1].replace(pn,"").toLowerCase()},CHILD:function CHILD(en){if("nth"===en[1]){en[2]||An.error(en[0]),en[2]=en[2].replace(/^\+|\s*/g,"");var tn=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===en[2]?"2n":"odd"===en[2]&&"2n+1")||!/\D/.test(en[2])&&"0n+"+en[2]||en[2]);en[2]=tn[1]+(tn[2]||1)-0,en[3]=tn[3]-0}else en[2]&&An.error(en[0]);return en[0]=an++,en},ATTR:function ATTR(en,tn,nn,rn,an,sn){var cn=en[1]=en[1].replace(pn,"");return!sn&&vn.attrMap[cn]&&(en[1]=vn.attrMap[cn]),en[4]=(en[4]||en[5]||"").replace(pn,""),"~="===en[2]&&(en[4]=" "+en[4]+" "),en},PSEUDO:function PSEUDO(tn,nn,rn,an,sn){if("not"===tn[1]){if(!((en.exec(tn[3])||"").length>1||/^\w/.test(tn[3]))){var cn=An.filter(tn[3],nn,rn,!0^sn);return rn||an.push.apply(an,cn),!1}tn[3]=An(tn[3],null,null,nn)}else if(vn.match.POS.test(tn[0])||vn.match.CHILD.test(tn[0]))return!0;return tn},POS:function POS(en){return en.unshift(!0),en}},filters:{enabled:function enabled(en){return!1===en.disabled&&"hidden"!==en.type},disabled:function disabled(en){return!0===en.disabled},checked:function checked(en){return!0===en.checked},selected:function selected(en){return en.parentNode&&en.parentNode.selectedIndex,!0===en.selected},parent:function parent(en){return!!en.firstChild},empty:function empty(en){return!en.firstChild},has:function has(en,tn,nn){return!!An(nn[3],en).length},header:function header(en){return/h\d/i.test(en.nodeName)},text:function text(en){var tn=en.getAttribute("type"),nn=en.type;return"input"===en.nodeName.toLowerCase()&&"text"===nn&&(tn===nn||null===tn)},radio:function radio(en){return"input"===en.nodeName.toLowerCase()&&"radio"===en.type},checkbox:function checkbox(en){return"input"===en.nodeName.toLowerCase()&&"checkbox"===en.type},file:function file(en){return"input"===en.nodeName.toLowerCase()&&"file"===en.type},password:function password(en){return"input"===en.nodeName.toLowerCase()&&"password"===en.type},submit:function submit(en){var tn=en.nodeName.toLowerCase();return("input"===tn||"button"===tn)&&"submit"===en.type},image:function image(en){return"input"===en.nodeName.toLowerCase()&&"image"===en.type},reset:function reset(en){var tn=en.nodeName.toLowerCase();return("input"===tn||"button"===tn)&&"reset"===en.type},button:function button(en){var tn=en.nodeName.toLowerCase();return"input"===tn&&"button"===en.type||"button"===tn},input:function input(en){return/input|select|textarea|button/i.test(en.nodeName)},focus:function focus(en){return en===en.ownerDocument.activeElement}},setFilters:{first:function first(en,tn){return 0===tn},last:function last(en,tn,nn,rn){return tn===rn.length-1},even:function even(en,tn){return tn%2==0},odd:function odd(en,tn){return tn%2==1},lt:function lt(en,tn,nn){return tn<nn[3]-0},gt:function gt(en,tn,nn){return tn>nn[3]-0},nth:function nth(en,tn,nn){return nn[3]-0===tn},eq:function eq(en,tn,nn){return nn[3]-0===tn}},filter:{PSEUDO:function PSEUDO(en,tn,nn,rn){var an=tn[1],sn=vn.filters[an];if(sn)return sn(en,nn,tn,rn);if("contains"===an)return(en.textContent||en.innerText||mn([en])||"").indexOf(tn[3])>=0;if("not"===an){for(var cn=tn[3],un=0,dn=cn.length;un<dn;un++)if(cn[un]===en)return!1;return!0}An.error(an)},CHILD:function CHILD(en,tn){var nn,an,sn,cn,un,dn,pn=tn[1],hn=en;switch(pn){case"only":case"first":for(;hn=hn.previousSibling;)if(1===hn.nodeType)return!1;if("first"===pn)return!0;hn=en;case"last":for(;hn=hn.nextSibling;)if(1===hn.nodeType)return!1;return!0;case"nth":if(nn=tn[2],an=tn[3],1===nn&&0===an)return!0;if(sn=tn[0],(cn=en.parentNode)&&(cn[rn]!==sn||!en.nodeIndex)){for(un=0,hn=cn.firstChild;hn;hn=hn.nextSibling)1===hn.nodeType&&(hn.nodeIndex=++un);cn[rn]=sn}return dn=en.nodeIndex-an,0===nn?0===dn:dn%nn==0&&dn/nn>=0}},ID:function ID(en,tn){return 1===en.nodeType&&en.getAttribute("id")===tn},TAG:function TAG(en,tn){return"*"===tn&&1===en.nodeType||!!en.nodeName&&en.nodeName.toLowerCase()===tn},CLASS:function CLASS(en,tn){return(" "+(en.className||en.getAttribute("class"))+" ").indexOf(tn)>-1},ATTR:function ATTR(en,tn){var nn=tn[1],rn=An.attr?An.attr(en,nn):vn.attrHandle[nn]?vn.attrHandle[nn](en):null!=en[nn]?en[nn]:en.getAttribute(nn),an=rn+"",sn=tn[2],cn=tn[4];return null==rn?"!="===sn:!sn&&An.attr?null!=rn:"="===sn?an===cn:"*="===sn?an.indexOf(cn)>=0:"~="===sn?(" "+an+" ").indexOf(cn)>=0:cn?"!="===sn?an!==cn:"^="===sn?0===an.indexOf(cn):"$="===sn?an.substr(an.length-cn.length)===cn:"|="===sn&&(an===cn||an.substr(0,cn.length+1)===cn+"-"):an&&!1!==rn},POS:function POS(en,tn,nn,rn){var an=tn[2],sn=vn.setFilters[an];if(sn)return sn(en,nn,tn,rn)}}},yn=vn.match.POS,_n=function q(en,tn){return"\\"+(tn-0+1)};for(var wn in vn.match)vn.match[wn]=new RegExp(vn.match[wn].source+/(?![^\[]*\])(?![^\(]*\))/.source),vn.leftMatch[wn]=new RegExp(/(^(?:.|\r|\n)*?)/.source+vn.match[wn].source.replace(/\\(\d+)/g,_n));var xn,Sn,Cn=function s(en,tn){return en=Array.prototype.slice.call(en,0),tn?(tn.push.apply(tn,en),tn):en};try{Array.prototype.slice.call(nn.documentElement.childNodes,0)[0].nodeType}catch(en){Cn=function s(en,tn){var nn=0,rn=tn||[];if("[object Array]"===cn.call(en))Array.prototype.push.apply(rn,en);else if("number"==typeof en.length)for(var an=en.length;nn<an;nn++)rn.push(en[nn]);else for(;en[nn];nn++)rn.push(en[nn]);return rn}}nn.documentElement.compareDocumentPosition?xn=function u(en,tn){return en===tn?(un=!0,0):en.compareDocumentPosition&&tn.compareDocumentPosition?4&en.compareDocumentPosition(tn)?-1:1:en.compareDocumentPosition?-1:1}:(xn=function u(en,tn){if(en===tn)return un=!0,0;if(en.sourceIndex&&tn.sourceIndex)return en.sourceIndex-tn.sourceIndex;var nn,rn,an=[],sn=[],cn=en.parentNode,dn=tn.parentNode,pn=cn;if(cn===dn)return Sn(en,tn);if(!cn)return-1;if(!dn)return 1;for(;pn;)an.unshift(pn),pn=pn.parentNode;for(pn=dn;pn;)sn.unshift(pn),pn=pn.parentNode;nn=an.length,rn=sn.length;for(var hn=0;hn<nn&&hn<rn;hn++)if(an[hn]!==sn[hn])return Sn(an[hn],sn[hn]);return hn===nn?Sn(en,sn[hn],-1):Sn(an[hn],tn,1)},Sn=function v(en,tn,nn){if(en===tn)return nn;for(var rn=en.nextSibling;rn;){if(rn===tn)return-1;rn=rn.nextSibling}return 1}),function(){var en=nn.createElement("div"),rn="script"+(new Date).getTime(),an=nn.documentElement;en.innerHTML="<a name='"+rn+"'/>",an.insertBefore(en,an.firstChild),nn.getElementById(rn)&&(vn.find.ID=function(en,nn,rn){if(void 0!==nn.getElementById&&!rn){var an=nn.getElementById(en[1]);return an?an.id===en[1]||void 0!==an.getAttributeNode&&an.getAttributeNode("id").nodeValue===en[1]?[an]:tn:[]}},vn.filter.ID=function(en,tn){var nn=void 0!==en.getAttributeNode&&en.getAttributeNode("id");return 1===en.nodeType&&nn&&nn.nodeValue===tn}),an.removeChild(en),an=en=null}(),function(){var en=nn.createElement("div");en.appendChild(nn.createComment("")),en.getElementsByTagName("*").length>0&&(vn.find.TAG=function(en,tn){var nn=tn.getElementsByTagName(en[1]);if("*"===en[1]){for(var rn=[],an=0;nn[an];an++)1===nn[an].nodeType&&rn.push(nn[an]);nn=rn}return nn}),en.innerHTML="<a href='#'></a>",en.firstChild&&void 0!==en.firstChild.getAttribute&&"#"!==en.firstChild.getAttribute("href")&&(vn.attrHandle.href=function(en){return en.getAttribute("href",2)}),en=null}(),nn.querySelectorAll&&function(){var en=An,tn=nn.createElement("div");if(tn.innerHTML="<p class='TEST'></p>",!tn.querySelectorAll||0!==tn.querySelectorAll(".TEST").length){for(var rn in An=function _m(tn,rn,an,sn){if(rn=rn||nn,!sn&&!An.isXML(rn)){var cn=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(tn);if(cn&&(1===rn.nodeType||9===rn.nodeType)){if(cn[1])return Cn(rn.getElementsByTagName(tn),an);if(cn[2]&&vn.find.CLASS&&rn.getElementsByClassName)return Cn(rn.getElementsByClassName(cn[2]),an)}if(9===rn.nodeType){if("body"===tn&&rn.body)return Cn([rn.body],an);if(cn&&cn[3]){var un=rn.getElementById(cn[3]);if(!un||!un.parentNode)return Cn([],an);if(un.id===cn[3])return Cn([un],an)}try{return Cn(rn.querySelectorAll(tn),an)}catch(en){}}else if(1===rn.nodeType&&"object"!==rn.nodeName.toLowerCase()){var dn=rn,pn=rn.getAttribute("id"),hn=pn||"__sizzle__",gn=rn.parentNode,mn=/^\s*[+~]/.test(tn);pn?hn=hn.replace(/'/g,"\\$&"):rn.setAttribute("id",hn),mn&&gn&&(rn=rn.parentNode);try{if(!mn||gn)return Cn(rn.querySelectorAll("[id='"+hn+"'] "+tn),an)}catch(en){}finally{pn||dn.removeAttribute("id")}}}return en(tn,rn,an,sn)},en)An[rn]=en[rn];tn=null}}(),function(){var en=nn.documentElement,tn=en.matchesSelector||en.mozMatchesSelector||en.webkitMatchesSelector||en.msMatchesSelector;if(tn){var rn=!tn.call(nn.createElement("div"),"div"),an=!1;try{tn.call(nn.documentElement,"[test!='']:sizzle")}catch(en){an=!0}An.matchesSelector=function(en,nn){if(nn=nn.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!An.isXML(en))try{if(an||!vn.match.PSEUDO.test(nn)&&!/!=/.test(nn)){var sn=tn.call(en,nn);if(sn||!rn||en.document&&11!==en.document.nodeType)return sn}}catch(en){}return An(nn,null,null,[en]).length>0}}}(),function(){var en=nn.createElement("div");if(en.innerHTML="<div class='test e'></div><div class='test'></div>",en.getElementsByClassName&&0!==en.getElementsByClassName("e").length){if(en.lastChild.className="e",1===en.getElementsByClassName("e").length)return;vn.order.splice(1,0,"CLASS"),vn.find.CLASS=function(en,tn,nn){if(void 0!==tn.getElementsByClassName&&!nn)return tn.getElementsByClassName(en[1])},en=null}}(),nn.documentElement.contains?An.contains=function(en,tn){return en!==tn&&(!en.contains||en.contains(tn))}:nn.documentElement.compareDocumentPosition?An.contains=function(en,tn){return!!(16&en.compareDocumentPosition(tn))}:An.contains=function(){return!1},An.isXML=function(en){var tn=(en?en.ownerDocument||en:0).documentElement;return!!tn&&"HTML"!==tn.nodeName};var kn=function y(en,tn,nn){for(var rn,an=[],sn="",cn=tn.nodeType?[tn]:tn;rn=vn.match.PSEUDO.exec(en);)sn+=rn[0],en=en.replace(vn.match.PSEUDO,"");en=vn.relative[en]?en+"*":en;for(var un=0,dn=cn.length;un<dn;un++)An(en,cn[un],an,nn);return An.filter(sn,an)};An.attr=sn.attr,An.selectors.attrMap={},sn.find=An,sn.expr=An.selectors,sn.expr[":"]=sn.expr.filters,sn.unique=An.uniqueSort,sn.text=An.getText,sn.isXMLDoc=An.isXML,sn.contains=An.contains}();var Un=/Until$/,Mn=/^(?:parents|prevUntil|prevAll)/,Rn=/,/,Dn=/^.[^:#\[\.,]*$/,jn=Array.prototype.slice,Qn=sn.expr.match.POS,Hn={children:!0,contents:!0,next:!0,prev:!0};sn.fn.extend({find:function find(en){var tn,nn,rn=this;if("string"!=typeof en)return sn(en).filter((function(){for(tn=0,nn=rn.length;tn<nn;tn++)if(sn.contains(rn[tn],this))return!0}));var an,cn,un,dn=this.pushStack("","find",en);for(tn=0,nn=this.length;tn<nn;tn++)if(an=dn.length,sn.find(en,this[tn],dn),tn>0)for(cn=an;cn<dn.length;cn++)for(un=0;un<an;un++)if(dn[un]===dn[cn]){dn.splice(cn--,1);break}return dn},has:function has(en){var tn=sn(en);return this.filter((function(){for(var en=0,nn=tn.length;en<nn;en++)if(sn.contains(this,tn[en]))return!0}))},not:function not(en){return this.pushStack(T(this,en,!1),"not",en)},filter:function filter(en){return this.pushStack(T(this,en,!0),"filter",en)},is:function is(en){return!!en&&("string"==typeof en?Qn.test(en)?sn(en,this.context).index(this[0])>=0:sn.filter(en,this).length>0:this.filter(en).length>0)},closest:function closest(en,tn){var nn,rn,an=[],cn=this[0];if(sn.isArray(en)){for(var un=1;cn&&cn.ownerDocument&&cn!==tn;){for(nn=0;nn<en.length;nn++)sn(cn).is(en[nn])&&an.push({selector:en[nn],elem:cn,level:un});cn=cn.parentNode,un++}return an}var dn=Qn.test(en)||"string"!=typeof en?sn(en,tn||this.context):0;for(nn=0,rn=this.length;nn<rn;nn++)for(cn=this[nn];cn;){if(dn?dn.index(cn)>-1:sn.find.matchesSelector(cn,en)){an.push(cn);break}if(!(cn=cn.parentNode)||!cn.ownerDocument||cn===tn||11===cn.nodeType)break}return an=an.length>1?sn.unique(an):an,this.pushStack(an,"closest",en)},index:function index(en){return en?"string"==typeof en?sn.inArray(this[0],sn(en)):sn.inArray(en.jquery?en[0]:en,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function add(en,tn){var nn="string"==typeof en?sn(en,tn):sn.makeArray(en&&en.nodeType?[en]:en),rn=sn.merge(this.get(),nn);return this.pushStack(S(nn[0])||S(rn[0])?rn:sn.unique(rn))},andSelf:function andSelf(){return this.add(this.prevObject)}}),sn.each({parent:function parent(en){var tn=en.parentNode;return tn&&11!==tn.nodeType?tn:null},parents:function parents(en){return sn.dir(en,"parentNode")},parentsUntil:function parentsUntil(en,tn,nn){return sn.dir(en,"parentNode",nn)},next:function next(en){return sn.nth(en,2,"nextSibling")},prev:function prev(en){return sn.nth(en,2,"previousSibling")},nextAll:function nextAll(en){return sn.dir(en,"nextSibling")},prevAll:function prevAll(en){return sn.dir(en,"previousSibling")},nextUntil:function nextUntil(en,tn,nn){return sn.dir(en,"nextSibling",nn)},prevUntil:function prevUntil(en,tn,nn){return sn.dir(en,"previousSibling",nn)},siblings:function siblings(en){return sn.sibling(en.parentNode.firstChild,en)},children:function children(en){return sn.sibling(en.firstChild)},contents:function contents(en){return sn.nodeName(en,"iframe")?en.contentDocument||en.contentWindow.document:sn.makeArray(en.childNodes)}},(function(en,tn){sn.fn[en]=function(nn,rn){var an=sn.map(this,tn,nn);return Un.test(en)||(rn=nn),rn&&"string"==typeof rn&&(an=sn.filter(rn,an)),an=this.length>1&&!Hn[en]?sn.unique(an):an,(this.length>1||Rn.test(rn))&&Mn.test(en)&&(an=an.reverse()),this.pushStack(an,en,jn.call(arguments).join(","))}})),sn.extend({filter:function filter(en,tn,nn){return nn&&(en=":not("+en+")"),1===tn.length?sn.find.matchesSelector(tn[0],en)?[tn[0]]:[]:sn.find.matches(en,tn)},dir:function dir(en,nn,rn){for(var an=[],cn=en[nn];cn&&9!==cn.nodeType&&(rn===tn||1!==cn.nodeType||!sn(cn).is(rn));)1===cn.nodeType&&an.push(cn),cn=cn[nn];return an},nth:function nth(en,tn,nn,rn){tn=tn||1;for(var an=0;en&&(1!==en.nodeType||++an!==tn);en=en[nn]);return en},sibling:function sibling(en,tn){for(var nn=[];en;en=en.nextSibling)1===en.nodeType&&en!==tn&&nn.push(en);return nn}});var Gn="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Vn=/ jQuery\d+="(?:\d+|null)"/g,zn=/^\s+/,Kn=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,qn=/<([\w:]+)/,$n=/<tbody/i,Wn=/<|&#?\w+;/,Xn=/<(?:script|style)/i,Yn=/<(?:script|object|embed|option|style)/i,Jn=new RegExp("<(?:"+Gn+")","i"),Zn=/checked\s*(?:[^=]|=\s*.checked.)/i,Tr=/\/(java|ecma)script/i,Ur=/^\s*<!(?:\[CDATA\[|\-\-)/,Rr={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Dr=U(nn);Rr.optgroup=Rr.option,Rr.tbody=Rr.tfoot=Rr.colgroup=Rr.caption=Rr.thead,Rr.th=Rr.td,sn.support.htmlSerialize||(Rr._default=[1,"div<div>","</div>"]),sn.fn.extend({text:function text(en){return sn.isFunction(en)?this.each((function(tn){var nn=sn(this);nn.text(en.call(this,tn,nn.text()))})):"object"!=_typeof(en)&&en!==tn?this.empty().append((this[0]&&this[0].ownerDocument||nn).createTextNode(en)):sn.text(this)},wrapAll:function wrapAll(en){if(sn.isFunction(en))return this.each((function(tn){sn(this).wrapAll(en.call(this,tn))}));if(this[0]){var tn=sn(en,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&tn.insertBefore(this[0]),tn.map((function(){for(var en=this;en.firstChild&&1===en.firstChild.nodeType;)en=en.firstChild;return en})).append(this)}return this},wrapInner:function wrapInner(en){return sn.isFunction(en)?this.each((function(tn){sn(this).wrapInner(en.call(this,tn))})):this.each((function(){var tn=sn(this),nn=tn.contents();nn.length?nn.wrapAll(en):tn.append(en)}))},wrap:function wrap(en){var tn=sn.isFunction(en);return this.each((function(nn){sn(this).wrapAll(tn?en.call(this,nn):en)}))},unwrap:function unwrap(){return this.parent().each((function(){sn.nodeName(this,"body")||sn(this).replaceWith(this.childNodes)})).end()},append:function append(){return this.domManip(arguments,!0,(function(en){1===this.nodeType&&this.appendChild(en)}))},prepend:function prepend(){return this.domManip(arguments,!0,(function(en){1===this.nodeType&&this.insertBefore(en,this.firstChild)}))},before:function before(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(en){this.parentNode.insertBefore(en,this)}));if(arguments.length){var en=sn.clean(arguments);return en.push.apply(en,this.toArray()),this.pushStack(en,"before",arguments)}},after:function after(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(en){this.parentNode.insertBefore(en,this.nextSibling)}));if(arguments.length){var en=this.pushStack(this,"after",arguments);return en.push.apply(en,sn.clean(arguments)),en}},remove:function remove(en,tn){for(var nn,rn=0;null!=(nn=this[rn]);rn++)en&&!sn.filter(en,[nn]).length||(!tn&&1===nn.nodeType&&(sn.cleanData(nn.getElementsByTagName("*")),sn.cleanData([nn])),nn.parentNode&&nn.parentNode.removeChild(nn));return this},empty:function empty(){for(var en,tn=0;null!=(en=this[tn]);tn++)for(1===en.nodeType&&sn.cleanData(en.getElementsByTagName("*"));en.firstChild;)en.removeChild(en.firstChild);return this},clone:function clone(en,tn){return en=null!=en&&en,tn=null==tn?en:tn,this.map((function(){return sn.clone(this,en,tn)}))},html:function html(en){if(en===tn)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(Vn,""):null;if("string"!=typeof en||Xn.test(en)||!sn.support.leadingWhitespace&&zn.test(en)||Rr[(qn.exec(en)||["",""])[1].toLowerCase()])sn.isFunction(en)?this.each((function(tn){var nn=sn(this);nn.html(en.call(this,tn,nn.html()))})):this.empty().append(en);else{en=en.replace(Kn,"<$1></$2>");try{for(var nn=0,rn=this.length;nn<rn;nn++)1===this[nn].nodeType&&(sn.cleanData(this[nn].getElementsByTagName("*")),this[nn].innerHTML=en)}catch(tn){this.empty().append(en)}}return this},replaceWith:function replaceWith(en){return this[0]&&this[0].parentNode?sn.isFunction(en)?this.each((function(tn){var nn=sn(this),rn=nn.html();nn.replaceWith(en.call(this,tn,rn))})):("string"!=typeof en&&(en=sn(en).detach()),this.each((function(){var tn=this.nextSibling,nn=this.parentNode;sn(this).remove(),tn?sn(tn).before(en):sn(nn).append(en)}))):this.length?this.pushStack(sn(sn.isFunction(en)?en():en),"replaceWith",en):this},detach:function detach(en){return this.remove(en,!0)},domManip:function domManip(en,nn,rn){var an,cn,un,dn,pn=en[0],hn=[];if(!sn.support.checkClone&&3===arguments.length&&"string"==typeof pn&&Zn.test(pn))return this.each((function(){sn(this).domManip(en,nn,rn,!0)}));if(sn.isFunction(pn))return this.each((function(an){var cn=sn(this);en[0]=pn.call(this,an,nn?cn.html():tn),cn.domManip(en,nn,rn)}));if(this[0]){if(dn=pn&&pn.parentNode,cn=1===(un=(an=sn.support.parentNode&&dn&&11===dn.nodeType&&dn.childNodes.length===this.length?{fragment:dn}:sn.buildFragment(en,this,hn)).fragment).childNodes.length?un=un.firstChild:un.firstChild){nn=nn&&sn.nodeName(cn,"tr");for(var gn=0,An=this.length,mn=An-1;gn<An;gn++)rn.call(nn?bi(this[gn]):this[gn],an.cacheable||An>1&&gn<mn?sn.clone(un,!0,!0):un)}hn.length&&sn.each(hn,bp)}return this}}),sn.buildFragment=function(en,tn,rn){var an,cn,un,dn,pn=en[0];return tn&&tn[0]&&(dn=tn[0].ownerDocument||tn[0]),dn.createDocumentFragment||(dn=nn),1===en.length&&"string"==typeof pn&&pn.length<512&&dn===nn&&"<"===pn.charAt(0)&&!Yn.test(pn)&&(sn.support.checkClone||!Zn.test(pn))&&(sn.support.html5Clone||!Jn.test(pn))&&(cn=!0,(un=sn.fragments[pn])&&1!==un&&(an=un)),an||(an=dn.createDocumentFragment(),sn.clean(en,dn,an,rn)),cn&&(sn.fragments[pn]=un?an:1),{fragment:an,cacheable:cn}},sn.fragments={},sn.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(en,tn){sn.fn[en]=function(nn){var rn=[],an=sn(nn),cn=1===this.length&&this[0].parentNode;if(cn&&11===cn.nodeType&&1===cn.childNodes.length&&1===an.length)return an[tn](this[0]),this;for(var un=0,dn=an.length;un<dn;un++){var pn=(un>0?this.clone(!0):this).get();sn(an[un])[tn](pn),rn=rn.concat(pn)}return this.pushStack(rn,en,an.selector)}})),sn.extend({clone:function clone(en,tn,nn){var rn,an,cn,un=sn.support.html5Clone||!Jn.test("<"+en.nodeName)?en.cloneNode(!0):bo(en);if(!(sn.support.noCloneEvent&&sn.support.noCloneChecked||1!==en.nodeType&&11!==en.nodeType||sn.isXMLDoc(en)))for(bk(en,un),rn=bl(en),an=bl(un),cn=0;rn[cn];++cn)an[cn]&&bk(rn[cn],an[cn]);if(tn&&(bj(en,un),nn))for(rn=bl(en),an=bl(un),cn=0;rn[cn];++cn)bj(rn[cn],an[cn]);return rn=an=null,un},clean:function clean(en,tn,rn,an){var cn;void 0===(tn=tn||nn).createElement&&(tn=tn.ownerDocument||tn[0]&&tn[0].ownerDocument||nn);for(var un,dn,pn=[],hn=0;null!=(dn=en[hn]);hn++)if("number"==typeof dn&&(dn+=""),dn){if("string"==typeof dn)if(Wn.test(dn)){dn=dn.replace(Kn,"<$1></$2>");var gn=(qn.exec(dn)||["",""])[1].toLowerCase(),An=Rr[gn]||Rr._default,mn=An[0],vn=tn.createElement("div");for(tn===nn?Dr.appendChild(vn):U(tn).appendChild(vn),vn.innerHTML=An[1]+dn+An[2];mn--;)vn=vn.lastChild;if(!sn.support.tbody){var yn=$n.test(dn),_n="table"!==gn||yn?"<table>"!==An[1]||yn?[]:vn.childNodes:vn.firstChild&&vn.firstChild.childNodes;for(un=_n.length-1;un>=0;--un)sn.nodeName(_n[un],"tbody")&&!_n[un].childNodes.length&&_n[un].parentNode.removeChild(_n[un])}!sn.support.leadingWhitespace&&zn.test(dn)&&vn.insertBefore(tn.createTextNode(zn.exec(dn)[0]),vn.firstChild),dn=vn.childNodes}else dn=tn.createTextNode(dn);var wn;if(!sn.support.appendChecked)if(dn[0]&&"number"==typeof(wn=dn.length))for(un=0;un<wn;un++)bn(dn[un]);else bn(dn);dn.nodeType?pn.push(dn):pn=sn.merge(pn,dn)}if(rn)for(cn=function g(en){return!en.type||Tr.test(en.type)},hn=0;pn[hn];hn++)if(!an||!sn.nodeName(pn[hn],"script")||pn[hn].type&&"text/javascript"!==pn[hn].type.toLowerCase()){if(1===pn[hn].nodeType){var xn=sn.grep(pn[hn].getElementsByTagName("script"),cn);pn.splice.apply(pn,[hn+1,0].concat(xn))}rn.appendChild(pn[hn])}else an.push(pn[hn].parentNode?pn[hn].parentNode.removeChild(pn[hn]):pn[hn]);return pn},cleanData:function cleanData(en){for(var tn,nn,rn,an=sn.cache,cn=sn.event.special,un=sn.support.deleteExpando,dn=0;null!=(rn=en[dn]);dn++)if((!rn.nodeName||!sn.noData[rn.nodeName.toLowerCase()])&&(nn=rn[sn.expando])){if((tn=an[nn])&&tn.events){for(var pn in tn.events)cn[pn]?sn.event.remove(rn,pn):sn.removeEvent(rn,pn,tn.handle);tn.handle&&(tn.handle.elem=null)}un?delete rn[sn.expando]:rn.removeAttribute&&rn.removeAttribute(sn.expando),delete an[nn]}}});var Qr,Hr,Gr,Vr=/alpha\([^)]*\)/i,zr=/opacity=([^)]*)/,Kr=/([A-Z]|^ms)/g,$r=/^-?\d+(?:px)?$/i,Wr=/^-?\d/,Xr=/^([\-+])=([\-+.\de]+)/,Yr={position:"absolute",visibility:"hidden",display:"block"},Jr=["Left","Right"],Zr=["Top","Bottom"];sn.fn.css=function(en,nn){return 2===arguments.length&&nn===tn?this:sn.access(this,en,nn,!0,(function(en,nn,rn){return rn!==tn?sn.style(en,nn,rn):sn.css(en,nn)}))},sn.extend({cssHooks:{opacity:{get:function get(en,tn){if(tn){var nn=Qr(en,"opacity","opacity");return""===nn?"1":nn}return en.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:sn.support.cssFloat?"cssFloat":"styleFloat"},style:function style(en,nn,rn,an){if(en&&3!==en.nodeType&&8!==en.nodeType&&en.style){var cn,un,dn=sn.camelCase(nn),pn=en.style,hn=sn.cssHooks[dn];if(nn=sn.cssProps[dn]||dn,rn===tn)return hn&&"get"in hn&&(cn=hn.get(en,!1,an))!==tn?cn:pn[nn];if("string"===(un=_typeof(rn))&&(cn=Xr.exec(rn))&&(rn=+(cn[1]+1)*+cn[2]+parseFloat(sn.css(en,nn)),un="number"),null==rn||"number"===un&&isNaN(rn))return;if("number"===un&&!sn.cssNumber[dn]&&(rn+="px"),!hn||!("set"in hn)||(rn=hn.set(en,rn))!==tn)try{pn[nn]=rn}catch(en){}}},css:function css(en,nn,rn){var an,cn;return nn=sn.camelCase(nn),cn=sn.cssHooks[nn],"cssFloat"===(nn=sn.cssProps[nn]||nn)&&(nn="float"),cn&&"get"in cn&&(an=cn.get(en,!0,rn))!==tn?an:Qr?Qr(en,nn):void 0},swap:function swap(en,tn,nn){var rn={};for(var an in tn)rn[an]=en.style[an],en.style[an]=tn[an];for(an in nn.call(en),tn)en.style[an]=rn[an]}}),sn.curCSS=sn.css,sn.each(["height","width"],(function(en,tn){sn.cssHooks[tn]={get:function get(en,nn,rn){var an;if(nn)return 0!==en.offsetWidth?bC(en,tn,rn):(sn.swap(en,Yr,(function(){an=bC(en,tn,rn)})),an)},set:function set(en,tn){return $r.test(tn)?(tn=parseFloat(tn))>=0?tn+"px":void 0:tn}}})),sn.support.opacity||(sn.cssHooks.opacity={get:function get(en,tn){return zr.test((tn&&en.currentStyle?en.currentStyle.filter:en.style.filter)||"")?parseFloat(RegExp.$1)/100+"":tn?"1":""},set:function set(en,tn){var nn=en.style,rn=en.currentStyle,an=sn.isNumeric(tn)?"alpha(opacity="+100*tn+")":"",cn=rn&&rn.filter||nn.filter||"";nn.zoom=1,tn>=1&&""===sn.trim(cn.replace(Vr,""))&&(nn.removeAttribute("filter"),rn&&!rn.filter)||(nn.filter=Vr.test(cn)?cn.replace(Vr,an):cn+" "+an)}}),sn((function(){sn.support.reliableMarginRight||(sn.cssHooks.marginRight={get:function get(en,tn){var nn;return sn.swap(en,{display:"inline-block"},(function(){nn=tn?Qr(en,"margin-right","marginRight"):en.style.marginRight})),nn}})})),nn.defaultView&&nn.defaultView.getComputedStyle&&(Hr=function bA(en,tn){var nn,rn,an;return tn=tn.replace(Kr,"-$1").toLowerCase(),(rn=en.ownerDocument.defaultView)&&(an=rn.getComputedStyle(en,null))&&(""===(nn=an.getPropertyValue(tn))&&!sn.contains(en.ownerDocument.documentElement,en)&&(nn=sn.style(en,tn))),nn}),nn.documentElement.currentStyle&&(Gr=function bB(en,tn){var nn,rn,an,sn=en.currentStyle&&en.currentStyle[tn],cn=en.style;return null===sn&&cn&&(an=cn[tn])&&(sn=an),!$r.test(sn)&&Wr.test(sn)&&(nn=cn.left,(rn=en.runtimeStyle&&en.runtimeStyle.left)&&(en.runtimeStyle.left=en.currentStyle.left),cn.left="fontSize"===tn?"1em":sn||0,sn=cn.pixelLeft+"px",cn.left=nn,rn&&(en.runtimeStyle.left=rn)),""===sn?"auto":sn}),Qr=Hr||Gr,sn.expr&&sn.expr.filters&&(sn.expr.filters.hidden=function(en){var tn=en.offsetWidth,nn=en.offsetHeight;return 0===tn&&0===nn||!sn.support.reliableHiddenOffsets&&"none"===(en.style&&en.style.display||sn.css(en,"display"))},sn.expr.filters.visible=function(en){return!sn.expr.filters.hidden(en)});var ei,ti,ni=/%20/g,ri=/\[\]$/,ii=/\r?\n/g,oi=/#.*$/,ai=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,si=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,li=/^(?:GET|HEAD)$/,ui=/^\/\//,di=/\?/,pi=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,hi=/^(?:select|textarea)/i,gi=/\s+/,fi=/([?&])_=[^&]*/,Ai=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,mi=sn.fn.load,vi={},yi={},_i=["*/"]+["*"];try{ei=an.href}catch(en){(ei=nn.createElement("a")).href="",ei=ei.href}ti=Ai.exec(ei.toLowerCase())||[],sn.fn.extend({load:function load(en,nn,rn){if("string"!=typeof en&&mi)return mi.apply(this,arguments);if(!this.length)return this;var an=en.indexOf(" ");if(an>=0){var cn=en.slice(an,en.length);en=en.slice(0,an)}var un="GET";nn&&(sn.isFunction(nn)?(rn=nn,nn=tn):"object"==_typeof(nn)&&(nn=sn.param(nn,sn.ajaxSettings.traditional),un="POST"));var dn=this;return sn.ajax({url:en,type:un,dataType:"html",data:nn,complete:function complete(en,tn,nn){nn=en.responseText,en.isResolved()&&(en.done((function(en){nn=en})),dn.html(cn?sn("<div>").append(nn.replace(pi,"")).find(cn):nn)),rn&&dn.each(rn,[nn,tn,en])}}),this},serialize:function serialize(){return sn.param(this.serializeArray())},serializeArray:function serializeArray(){return this.map((function(){return this.elements?sn.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||hi.test(this.nodeName)||si.test(this.type))})).map((function(en,tn){var nn=sn(this).val();return null==nn?null:sn.isArray(nn)?sn.map(nn,(function(en,nn){return{name:tn.name,value:en.replace(ii,"\r\n")}})):{name:tn.name,value:nn.replace(ii,"\r\n")}})).get()}}),sn.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(en,tn){sn.fn[tn]=function(en){return this.on(tn,en)}})),sn.each(["get","post"],(function(en,nn){sn[nn]=function(en,rn,an,cn){return sn.isFunction(rn)&&(cn=cn||an,an=rn,rn=tn),sn.ajax({type:nn,url:en,data:rn,success:an,dataType:cn})}})),sn.extend({getScript:function getScript(en,nn){return sn.get(en,tn,nn,"script")},getJSON:function getJSON(en,tn,nn){return sn.get(en,tn,nn,"json")},ajaxSetup:function ajaxSetup(en,tn){return tn?b_(en,sn.ajaxSettings):(tn=en,en=sn.ajaxSettings),b_(en,tn),en},ajaxSettings:{url:ei,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(ti[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":_i},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":en.String,"text html":!0,"text json":sn.parseJSON,"text xml":sn.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(vi),ajaxTransport:bZ(yi),ajax:function ajax(en,nn){function w(en,nn,cn,pn){if(2!==Cn){Cn=2,dn&&clearTimeout(dn),un=tn,an=pn||"",kn.readyState=en>0?4:0;var gn,xn,Sn,Bn,En,Pn=nn,Ln=cn?function cb(en,nn,rn){var an,sn,cn,un,dn=en.contents,pn=en.dataTypes,hn=en.responseFields;for(sn in hn)sn in rn&&(nn[hn[sn]]=rn[sn]);for(;"*"===pn[0];)pn.shift(),an===tn&&(an=en.mimeType||nn.getResponseHeader("content-type"));if(an)for(sn in dn)if(dn[sn]&&dn[sn].test(an)){pn.unshift(sn);break}if(pn[0]in rn)cn=pn[0];else{for(sn in rn){if(!pn[0]||en.converters[sn+" "+pn[0]]){cn=sn;break}un||(un=sn)}cn=cn||un}if(cn)return cn!==pn[0]&&pn.unshift(cn),rn[cn]}(An,kn,cn):tn;if(en>=200&&en<300||304===en)if(An.ifModified&&((Bn=kn.getResponseHeader("Last-Modified"))&&(sn.lastModified[rn]=Bn),(En=kn.getResponseHeader("Etag"))&&(sn.etag[rn]=En)),304===en)Pn="notmodified",gn=!0;else try{xn=function cc(en,nn){en.dataFilter&&(nn=en.dataFilter(nn,en.dataType));var rn,an,cn,un,dn,pn,hn,gn,An=en.dataTypes,mn={},vn=An.length,yn=An[0];for(rn=1;rn<vn;rn++){if(1===rn)for(an in en.converters)"string"==typeof an&&(mn[an.toLowerCase()]=en.converters[an]);if(un=yn,"*"===(yn=An[rn]))yn=un;else if("*"!==un&&un!==yn){if(!(pn=mn[dn=un+" "+yn]||mn["* "+yn]))for(hn in gn=tn,mn)if(((cn=hn.split(" "))[0]===un||"*"===cn[0])&&(gn=mn[cn[1]+" "+yn])){!0===(hn=mn[hn])?pn=gn:!0===gn&&(pn=hn);break}!pn&&!gn&&sn.error("No conversion from "+dn.replace(" "," to ")),!0!==pn&&(nn=pn?pn(nn):gn(hn(nn)))}}return nn}(An,Ln),Pn="success",gn=!0}catch(en){Pn="parsererror",Sn=en}else Sn=Pn,Pn&&!en||(Pn="error",en<0&&(en=0));kn.status=en,kn.statusText=""+(nn||Pn),gn?yn.resolveWith(mn,[xn,Pn,kn]):yn.rejectWith(mn,[kn,Pn,Sn]),kn.statusCode(wn),wn=tn,hn&&vn.trigger("ajax"+(gn?"Success":"Error"),[kn,An,gn?xn:Sn]),_n.fireWith(mn,[kn,Pn]),hn&&(vn.trigger("ajaxComplete",[kn,An]),--sn.active||sn.event.trigger("ajaxStop"))}}"object"==_typeof(en)&&(nn=en,en=tn),nn=nn||{};var rn,an,cn,un,dn,pn,hn,gn,An=sn.ajaxSetup({},nn),mn=An.context||An,vn=mn!==An&&(mn.nodeType||mn instanceof sn)?sn(mn):sn.event,yn=sn.Deferred(),_n=sn.Callbacks("once memory"),wn=An.statusCode||{},xn={},Sn={},Cn=0,kn={readyState:0,setRequestHeader:function setRequestHeader(en,tn){if(!Cn){var nn=en.toLowerCase();en=Sn[nn]=Sn[nn]||en,xn[en]=tn}return this},getAllResponseHeaders:function getAllResponseHeaders(){return 2===Cn?an:null},getResponseHeader:function getResponseHeader(en){var nn;if(2===Cn){if(!cn)for(cn={};nn=ai.exec(an);)cn[nn[1].toLowerCase()]=nn[2];nn=cn[en.toLowerCase()]}return nn===tn?null:nn},overrideMimeType:function overrideMimeType(en){return Cn||(An.mimeType=en),this},abort:function abort(en){return en=en||"abort",un&&un.abort(en),w(0,en),this}};if(yn.promise(kn),kn.success=kn.done,kn.error=kn.fail,kn.complete=_n.add,kn.statusCode=function(en){var tn;if(en)if(Cn<2)for(tn in en)wn[tn]=[wn[tn],en[tn]];else tn=en[kn.status],kn.then(tn,tn);return this},An.url=((en||An.url)+"").replace(oi,"").replace(ui,ti[1]+"//"),An.dataTypes=sn.trim(An.dataType||"*").toLowerCase().split(gi),null==An.crossDomain&&(pn=Ai.exec(An.url.toLowerCase()),An.crossDomain=!(!pn||pn[1]==ti[1]&&pn[2]==ti[2]&&(pn[3]||("http:"===pn[1]?80:443))==(ti[3]||("http:"===ti[1]?80:443)))),An.data&&An.processData&&"string"!=typeof An.data&&(An.data=sn.param(An.data,An.traditional)),b$(vi,An,nn,kn),2===Cn)return!1;if(hn=An.global,An.type=An.type.toUpperCase(),An.hasContent=!li.test(An.type),hn&&0==sn.active++&&sn.event.trigger("ajaxStart"),!An.hasContent&&(An.data&&(An.url+=(di.test(An.url)?"&":"?")+An.data,delete An.data),rn=An.url,!1===An.cache)){var Bn=sn.now(),En=An.url.replace(fi,"$1_="+Bn);An.url=En+(En===An.url?(di.test(An.url)?"&":"?")+"_="+Bn:"")}for(gn in(An.data&&An.hasContent&&!1!==An.contentType||nn.contentType)&&kn.setRequestHeader("Content-Type",An.contentType),An.ifModified&&(rn=rn||An.url,sn.lastModified[rn]&&kn.setRequestHeader("If-Modified-Since",sn.lastModified[rn]),sn.etag[rn]&&kn.setRequestHeader("If-None-Match",sn.etag[rn])),kn.setRequestHeader("Accept",An.dataTypes[0]&&An.accepts[An.dataTypes[0]]?An.accepts[An.dataTypes[0]]+("*"!==An.dataTypes[0]?", "+_i+"; q=0.01":""):An.accepts["*"]),An.headers)kn.setRequestHeader(gn,An.headers[gn]);if(An.beforeSend&&(!1===An.beforeSend.call(mn,kn,An)||2===Cn))return kn.abort(),!1;for(gn in{success:1,error:1,complete:1})kn[gn](An[gn]);if(un=b$(yi,An,nn,kn)){kn.readyState=1,hn&&vn.trigger("ajaxSend",[kn,An]),An.async&&An.timeout>0&&(dn=setTimeout((function(){kn.abort("timeout")}),An.timeout));try{Cn=1,un.send(xn,w)}catch(en){if(!(Cn<2))throw en;w(-1,en)}}else w(-1,"No Transport");return kn},param:function param(en,nn){var rn=[],an=function e(en,tn){tn=sn.isFunction(tn)?tn():tn,rn[rn.length]=encodeURIComponent(en)+"="+encodeURIComponent(tn)};if(nn===tn&&(nn=sn.ajaxSettings.traditional),sn.isArray(en)||en.jquery&&!sn.isPlainObject(en))sn.each(en,(function(){an(this.name,this.value)}));else for(var cn in en)ca(cn,en[cn],nn,an);return rn.join("&").replace(ni,"+")}}),sn.extend({active:0,lastModified:{},etag:{}});var wi=sn.now(),xi=/(\=)\?(&|$)|\?\?/i;sn.ajaxSetup({jsonp:"callback",jsonpCallback:function jsonpCallback(){return sn.expando+"_"+wi++}}),sn.ajaxPrefilter("json jsonp",(function(tn,nn,rn){var an="application/x-www-form-urlencoded"===tn.contentType&&"string"==typeof tn.data;if("jsonp"===tn.dataTypes[0]||!1!==tn.jsonp&&(xi.test(tn.url)||an&&xi.test(tn.data))){var cn,un=tn.jsonpCallback=sn.isFunction(tn.jsonpCallback)?tn.jsonpCallback():tn.jsonpCallback,dn=en[un],pn=tn.url,hn=tn.data,gn="$1"+un+"$2";return!1!==tn.jsonp&&(pn=pn.replace(xi,gn),tn.url===pn&&(an&&(hn=hn.replace(xi,gn)),tn.data===hn&&(pn+=(/\?/.test(pn)?"&":"?")+tn.jsonp+"="+un))),tn.url=pn,tn.data=hn,en[un]=function(en){cn=[en]},rn.always((function(){en[un]=dn,cn&&sn.isFunction(dn)&&en[un](cn[0])})),tn.converters["script json"]=function(){return cn||sn.error(un+" was not called"),cn[0]},tn.dataTypes[0]="json","script"}})),sn.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function textScript(en){return sn.globalEval(en),en}}}),sn.ajaxPrefilter("script",(function(en){en.cache===tn&&(en.cache=!1),en.crossDomain&&(en.type="GET",en.global=!1)})),sn.ajaxTransport("script",(function(en){if(en.crossDomain){var rn,an=nn.head||nn.getElementsByTagName("head")[0]||nn.documentElement;return{send:function send(sn,cn){(rn=nn.createElement("script")).async="async",en.scriptCharset&&(rn.charset=en.scriptCharset),rn.src=en.url,rn.onload=rn.onreadystatechange=function(en,nn){(nn||!rn.readyState||/loaded|complete/.test(rn.readyState))&&(rn.onload=rn.onreadystatechange=null,an&&rn.parentNode&&an.removeChild(rn),rn=tn,nn||cn(200,"success"))},an.insertBefore(rn,an.firstChild)},abort:function abort(){rn&&rn.onload(0,1)}}}}));var Si,Ci=!!en.ActiveXObject&&function(){for(var en in Si)Si[en](0,1)},ki=0;sn.ajaxSettings.xhr=en.ActiveXObject?function(){return!this.isLocal&&ci()||function cj(){try{return new en.ActiveXObject("Microsoft.XMLHTTP")}catch(en){}}()}:ci,function(en){sn.extend(sn.support,{ajax:!!en,cors:!!en&&"withCredentials"in en})}(sn.ajaxSettings.xhr()),sn.support.ajax&&sn.ajaxTransport((function(nn){var rn;if(!nn.crossDomain||sn.support.cors)return{send:function send(an,cn){var un,dn,pn=nn.xhr();if(nn.username?pn.open(nn.type,nn.url,nn.async,nn.username,nn.password):pn.open(nn.type,nn.url,nn.async),nn.xhrFields)for(dn in nn.xhrFields)pn[dn]=nn.xhrFields[dn];nn.mimeType&&pn.overrideMimeType&&pn.overrideMimeType(nn.mimeType),!nn.crossDomain&&!an["X-Requested-With"]&&(an["X-Requested-With"]="XMLHttpRequest");try{for(dn in an)pn.setRequestHeader(dn,an[dn])}catch(en){}pn.send(nn.hasContent&&nn.data||null),rn=function d(en,an){var dn,hn,gn,An,mn;try{if(rn&&(an||4===pn.readyState))if(rn=tn,un&&(pn.onreadystatechange=sn.noop,Ci&&delete Si[un]),an)4!==pn.readyState&&pn.abort();else{dn=pn.status,gn=pn.getAllResponseHeaders(),An={},(mn=pn.responseXML)&&mn.documentElement&&(An.xml=mn),An.text=pn.responseText;try{hn=pn.statusText}catch(en){hn=""}dn||!nn.isLocal||nn.crossDomain?1223===dn&&(dn=204):dn=An.text?200:404}}catch(en){an||cn(-1,en)}An&&cn(dn,hn,An,gn)},nn.async&&4!==pn.readyState?(un=++ki,Ci&&(Si||(Si={},sn(en).unload(Ci)),Si[un]=rn),pn.onreadystatechange=rn):rn()},abort:function abort(){rn&&rn(0,1)}}}));var Bi,Ei,Pi,Li,Ti={},Ni=/^(?:toggle|show|hide)$/,Ii=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Oi=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];sn.fn.extend({show:function show(en,tn,nn){var rn,an;if(en||0===en)return this.animate(cu("show",3),en,tn,nn);for(var cn=0,un=this.length;cn<un;cn++)(rn=this[cn]).style&&(an=rn.style.display,!sn._data(rn,"olddisplay")&&"none"===an&&(an=rn.style.display=""),""===an&&"none"===sn.css(rn,"display")&&sn._data(rn,"olddisplay",cv(rn.nodeName)));for(cn=0;cn<un;cn++)(rn=this[cn]).style&&(""!==(an=rn.style.display)&&"none"!==an||(rn.style.display=sn._data(rn,"olddisplay")||""));return this},hide:function hide(en,tn,nn){if(en||0===en)return this.animate(cu("hide",3),en,tn,nn);for(var rn,an,cn=0,un=this.length;cn<un;cn++)(rn=this[cn]).style&&("none"!==(an=sn.css(rn,"display"))&&!sn._data(rn,"olddisplay")&&sn._data(rn,"olddisplay",an));for(cn=0;cn<un;cn++)this[cn].style&&(this[cn].style.display="none");return this},_toggle:sn.fn.toggle,toggle:function toggle(en,tn,nn){var rn="boolean"==typeof en;return sn.isFunction(en)&&sn.isFunction(tn)?this._toggle.apply(this,arguments):null==en||rn?this.each((function(){var tn=rn?en:sn(this).is(":hidden");sn(this)[tn?"show":"hide"]()})):this.animate(cu("toggle",3),en,tn,nn),this},fadeTo:function fadeTo(en,tn,nn,rn){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:tn},en,nn,rn)},animate:function animate(en,tn,nn,rn){function g(){!1===an.queue&&sn._mark(this);var tn,nn,rn,cn,un,dn,pn,hn,gn,An=sn.extend({},an),mn=1===this.nodeType,vn=mn&&sn(this).is(":hidden");for(rn in An.animatedProperties={},en){if(rn!==(tn=sn.camelCase(rn))&&(en[tn]=en[rn],delete en[rn]),nn=en[tn],sn.isArray(nn)?(An.animatedProperties[tn]=nn[1],nn=en[tn]=nn[0]):An.animatedProperties[tn]=An.specialEasing&&An.specialEasing[tn]||An.easing||"swing","hide"===nn&&vn||"show"===nn&&!vn)return An.complete.call(this);mn&&("height"===tn||"width"===tn)&&(An.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===sn.css(this,"display")&&"none"===sn.css(this,"float")&&(sn.support.inlineBlockNeedsLayout&&"inline"!==cv(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}for(rn in null!=An.overflow&&(this.style.overflow="hidden"),en)cn=new sn.fx(this,An,rn),nn=en[rn],Ni.test(nn)?(gn=sn._data(this,"toggle"+rn)||("toggle"===nn?vn?"show":"hide":0))?(sn._data(this,"toggle"+rn,"show"===gn?"hide":"show"),cn[gn]()):cn[nn]():(un=Ii.exec(nn),dn=cn.cur(),un?(pn=parseFloat(un[2]),"px"!==(hn=un[3]||(sn.cssNumber[rn]?"":"px"))&&(sn.style(this,rn,(pn||1)+hn),dn=(pn||1)/cn.cur()*dn,sn.style(this,rn,dn+hn)),un[1]&&(pn=("-="===un[1]?-1:1)*pn+dn),cn.custom(dn,pn,hn)):cn.custom(dn,nn,""));return!0}var an=sn.speed(tn,nn,rn);return sn.isEmptyObject(en)?this.each(an.complete,[!1]):(en=sn.extend({},en),!1===an.queue?this.each(g):this.queue(an.queue,g))},stop:function stop(en,nn,rn){return"string"!=typeof en&&(rn=nn,nn=en,en=tn),nn&&!1!==en&&this.queue(en||"fx",[]),this.each((function(){function h(en,tn,nn){var an=tn[nn];sn.removeData(en,nn,!0),an.stop(rn)}var tn,nn=!1,an=sn.timers,cn=sn._data(this);if(rn||sn._unmark(!0,this),null==en)for(tn in cn)cn[tn]&&cn[tn].stop&&tn.indexOf(".run")===tn.length-4&&h(this,cn,tn);else cn[tn=en+".run"]&&cn[tn].stop&&h(this,cn,tn);for(tn=an.length;tn--;)an[tn].elem===this&&(null==en||an[tn].queue===en)&&(rn?an[tn](!0):an[tn].saveState(),nn=!0,an.splice(tn,1));(!rn||!nn)&&sn.dequeue(this,en)}))}}),sn.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(en,tn){sn.fn[en]=function(en,nn,rn){return this.animate(tn,en,nn,rn)}})),sn.extend({speed:function speed(en,tn,nn){var rn=en&&"object"==_typeof(en)?sn.extend({},en):{complete:nn||!nn&&tn||sn.isFunction(en)&&en,duration:en,easing:nn&&tn||tn&&!sn.isFunction(tn)&&tn};return rn.duration=sn.fx.off?0:"number"==typeof rn.duration?rn.duration:rn.duration in sn.fx.speeds?sn.fx.speeds[rn.duration]:sn.fx.speeds._default,null!=rn.queue&&!0!==rn.queue||(rn.queue="fx"),rn.old=rn.complete,rn.complete=function(en){sn.isFunction(rn.old)&&rn.old.call(this),rn.queue?sn.dequeue(this,rn.queue):!1!==en&&sn._unmark(this)},rn},easing:{linear:function linear(en,tn,nn,rn){return nn+rn*en},swing:function swing(en,tn,nn,rn){return(-Math.cos(en*Math.PI)/2+.5)*rn+nn}},timers:[],fx:function fx(en,tn,nn){this.options=tn,this.elem=en,this.prop=nn,tn.orig=tn.orig||{}}}),sn.fx.prototype={update:function update(){this.options.step&&this.options.step.call(this.elem,this.now,this),(sn.fx.step[this.prop]||sn.fx.step._default)(this)},cur:function cur(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var en,tn=sn.css(this.elem,this.prop);return isNaN(en=parseFloat(tn))?tn&&"auto"!==tn?tn:0:en},custom:function custom(en,nn,rn){function h(en){return an.step(en)}var an=this,cn=sn.fx;this.startTime=Li||cs(),this.end=nn,this.now=this.start=en,this.pos=this.state=0,this.unit=rn||this.unit||(sn.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){an.options.hide&&sn._data(an.elem,"fxshow"+an.prop)===tn&&sn._data(an.elem,"fxshow"+an.prop,an.start)},h()&&sn.timers.push(h)&&!Pi&&(Pi=setInterval(cn.tick,cn.interval))},show:function show(){var en=sn._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=en||sn.style(this.elem,this.prop),this.options.show=!0,en!==tn?this.custom(this.cur(),en):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),sn(this.elem).show()},hide:function hide(){this.options.orig[this.prop]=sn._data(this.elem,"fxshow"+this.prop)||sn.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function step(en){var tn,nn,rn,an=Li||cs(),cn=!0,un=this.elem,dn=this.options;if(en||an>=dn.duration+this.startTime){for(tn in this.now=this.end,this.pos=this.state=1,this.update(),dn.animatedProperties[this.prop]=!0,dn.animatedProperties)!0!==dn.animatedProperties[tn]&&(cn=!1);if(cn){if(null!=dn.overflow&&!sn.support.shrinkWrapBlocks&&sn.each(["","X","Y"],(function(en,tn){un.style["overflow"+tn]=dn.overflow[en]})),dn.hide&&sn(un).hide(),dn.hide||dn.show)for(tn in dn.animatedProperties)sn.style(un,tn,dn.orig[tn]),sn.removeData(un,"fxshow"+tn,!0),sn.removeData(un,"toggle"+tn,!0);(rn=dn.complete)&&(dn.complete=!1,rn.call(un))}return!1}return dn.duration==1/0?this.now=an:(nn=an-this.startTime,this.state=nn/dn.duration,this.pos=sn.easing[dn.animatedProperties[this.prop]](this.state,nn,0,1,dn.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},sn.extend(sn.fx,{tick:function tick(){for(var en,tn=sn.timers,nn=0;nn<tn.length;nn++)!(en=tn[nn])()&&tn[nn]===en&&tn.splice(nn--,1);tn.length||sn.fx.stop()},interval:13,stop:function stop(){clearInterval(Pi),Pi=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function opacity(en){sn.style(en.elem,"opacity",en.now)},_default:function _default(en){en.elem.style&&null!=en.elem.style[en.prop]?en.elem.style[en.prop]=en.now+en.unit:en.elem[en.prop]=en.now}}}),sn.each(["width","height"],(function(en,tn){sn.fx.step[tn]=function(en){sn.style(en.elem,tn,Math.max(0,en.now)+en.unit)}})),sn.expr&&sn.expr.filters&&(sn.expr.filters.animated=function(en){return sn.grep(sn.timers,(function(tn){return en===tn.elem})).length});var Fi=/^t(?:able|d|h)$/i,Ui=/^(?:body|html)$/i;"getBoundingClientRect"in nn.documentElement?sn.fn.offset=function(en){var tn,nn=this[0];if(en)return this.each((function(tn){sn.offset.setOffset(this,en,tn)}));if(!nn||!nn.ownerDocument)return null;if(nn===nn.ownerDocument.body)return sn.offset.bodyOffset(nn);try{tn=nn.getBoundingClientRect()}catch(en){}var rn=nn.ownerDocument,an=rn.documentElement;if(!tn||!sn.contains(an,nn))return tn?{top:tn.top,left:tn.left}:{top:0,left:0};var cn=rn.body,un=cy(rn),dn=an.clientTop||cn.clientTop||0,pn=an.clientLeft||cn.clientLeft||0,hn=un.pageYOffset||sn.support.boxModel&&an.scrollTop||cn.scrollTop,gn=un.pageXOffset||sn.support.boxModel&&an.scrollLeft||cn.scrollLeft;return{top:tn.top+hn-dn,left:tn.left+gn-pn}}:sn.fn.offset=function(en){var tn=this[0];if(en)return this.each((function(tn){sn.offset.setOffset(this,en,tn)}));if(!tn||!tn.ownerDocument)return null;if(tn===tn.ownerDocument.body)return sn.offset.bodyOffset(tn);for(var nn,rn=tn.offsetParent,an=tn.ownerDocument,cn=an.documentElement,un=an.body,dn=an.defaultView,pn=dn?dn.getComputedStyle(tn,null):tn.currentStyle,hn=tn.offsetTop,gn=tn.offsetLeft;(tn=tn.parentNode)&&tn!==un&&tn!==cn&&(!sn.support.fixedPosition||"fixed"!==pn.position);)nn=dn?dn.getComputedStyle(tn,null):tn.currentStyle,hn-=tn.scrollTop,gn-=tn.scrollLeft,tn===rn&&(hn+=tn.offsetTop,gn+=tn.offsetLeft,sn.support.doesNotAddBorder&&(!sn.support.doesAddBorderForTableAndCells||!Fi.test(tn.nodeName))&&(hn+=parseFloat(nn.borderTopWidth)||0,gn+=parseFloat(nn.borderLeftWidth)||0),rn=tn.offsetParent),sn.support.subtractsBorderForOverflowNotVisible&&"visible"!==nn.overflow&&(hn+=parseFloat(nn.borderTopWidth)||0,gn+=parseFloat(nn.borderLeftWidth)||0),pn=nn;return"relative"!==pn.position&&"static"!==pn.position||(hn+=un.offsetTop,gn+=un.offsetLeft),sn.support.fixedPosition&&"fixed"===pn.position&&(hn+=Math.max(cn.scrollTop,un.scrollTop),gn+=Math.max(cn.scrollLeft,un.scrollLeft)),{top:hn,left:gn}},sn.offset={bodyOffset:function bodyOffset(en){var tn=en.offsetTop,nn=en.offsetLeft;return sn.support.doesNotIncludeMarginInBodyOffset&&(tn+=parseFloat(sn.css(en,"marginTop"))||0,nn+=parseFloat(sn.css(en,"marginLeft"))||0),{top:tn,left:nn}},setOffset:function setOffset(en,tn,nn){var rn=sn.css(en,"position");"static"===rn&&(en.style.position="relative");var an,cn,un=sn(en),dn=un.offset(),pn=sn.css(en,"top"),hn=sn.css(en,"left"),gn={},An={};("absolute"===rn||"fixed"===rn)&&sn.inArray("auto",[pn,hn])>-1?(an=(An=un.position()).top,cn=An.left):(an=parseFloat(pn)||0,cn=parseFloat(hn)||0),sn.isFunction(tn)&&(tn=tn.call(en,nn,dn)),null!=tn.top&&(gn.top=tn.top-dn.top+an),null!=tn.left&&(gn.left=tn.left-dn.left+cn),"using"in tn?tn.using.call(en,gn):un.css(gn)}},sn.fn.extend({position:function position(){if(!this[0])return null;var en=this[0],tn=this.offsetParent(),nn=this.offset(),rn=Ui.test(tn[0].nodeName)?{top:0,left:0}:tn.offset();return nn.top-=parseFloat(sn.css(en,"marginTop"))||0,nn.left-=parseFloat(sn.css(en,"marginLeft"))||0,rn.top+=parseFloat(sn.css(tn[0],"borderTopWidth"))||0,rn.left+=parseFloat(sn.css(tn[0],"borderLeftWidth"))||0,{top:nn.top-rn.top,left:nn.left-rn.left}},offsetParent:function offsetParent(){return this.map((function(){for(var en=this.offsetParent||nn.body;en&&!Ui.test(en.nodeName)&&"static"===sn.css(en,"position");)en=en.offsetParent;return en}))}}),sn.each(["Left","Top"],(function(en,nn){var rn="scroll"+nn;sn.fn[rn]=function(nn){var an,cn;return nn===tn?(an=this[0])?(cn=cy(an))?"pageXOffset"in cn?cn[en?"pageYOffset":"pageXOffset"]:sn.support.boxModel&&cn.document.documentElement[rn]||cn.document.body[rn]:an[rn]:null:this.each((function(){(cn=cy(this))?cn.scrollTo(en?sn(cn).scrollLeft():nn,en?nn:sn(cn).scrollTop()):this[rn]=nn}))}})),sn.each(["Height","Width"],(function(en,nn){var rn=nn.toLowerCase();sn.fn["inner"+nn]=function(){var en=this[0];return en?en.style?parseFloat(sn.css(en,rn,"padding")):this[rn]():null},sn.fn["outer"+nn]=function(en){var tn=this[0];return tn?tn.style?parseFloat(sn.css(tn,rn,en?"margin":"border")):this[rn]():null},sn.fn[rn]=function(en){var an=this[0];if(!an)return null==en?null:this;if(sn.isFunction(en))return this.each((function(tn){var nn=sn(this);nn[rn](en.call(this,tn,nn[rn]()))}));if(sn.isWindow(an)){var cn=an.document.documentElement["client"+nn],un=an.document.body;return"CSS1Compat"===an.document.compatMode&&cn||un&&un["client"+nn]||cn}if(9===an.nodeType)return Math.max(an.documentElement["client"+nn],an.body["scroll"+nn],an.documentElement["scroll"+nn],an.body["offset"+nn],an.documentElement["offset"+nn]);if(en===tn){var dn=sn.css(an,rn),pn=parseFloat(dn);return sn.isNumeric(pn)?pn:dn}return this.css(rn,"string"==typeof en?en:en+"px")}})),en.jQuery=en.$=sn,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],(function(){return sn}))}(window);var Fa,Ua,Ma,Ra={},Da=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),ja=sharedKey("IE_PROTO"),Qa=Object.prototype,Ha=Da?Object.getPrototypeOf:function(en){return en=toObject(en),has(en,ja)?en[ja]:"function"==typeof en.constructor&&en instanceof en.constructor?en.constructor.prototype:en instanceof Object?Qa:null},Ga=wellKnownSymbol("iterator"),Va=!1;[].keys&&("next"in(Ma=[].keys())?(Ua=Ha(Ha(Ma)))!==Object.prototype&&(Fa=Ua):Va=!0),(null==Fa||fails((function(){var en={};return Fa[Ga].call(en)!==en})))&&(Fa={}),has(Fa,Ga)||xn(Fa,Ga,(function(){return this}));var za={IteratorPrototype:Fa,BUGGY_SAFARI_ITERATORS:Va},Ka=wn.f,qa=wellKnownSymbol("toStringTag"),setToStringTag=function(en,tn,nn){en&&!has(en=nn?en:en.prototype,qa)&&Ka(en,qa,{configurable:!0,value:tn})},$a=za.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(en,tn,nn){var rn=tn+" Iterator";return en.prototype=Li($a,{next:createPropertyDescriptor(1,nn)}),setToStringTag(en,rn,!1),Ra[rn]=returnThis$1,en},Wa=za.IteratorPrototype,Xa=za.BUGGY_SAFARI_ITERATORS,Ya=wellKnownSymbol("iterator"),Ja="keys",Za="values",es="entries",returnThis$2=function(){return this},defineIterator=function(en,tn,nn,rn,an,sn,cn){createIteratorConstructor(nn,tn,rn);var un,dn,pn,getIterationMethod=function(en){if(en===an&&vn)return vn;if(!Xa&&en in An)return An[en];switch(en){case Ja:return function keys(){return new nn(this,en)};case Za:return function values(){return new nn(this,en)};case es:return function entries(){return new nn(this,en)}}return function(){return new nn(this)}},hn=tn+" Iterator",gn=!1,An=en.prototype,mn=An[Ya]||An["@@iterator"]||an&&An[an],vn=!Xa&&mn||getIterationMethod(an),yn="Array"==tn&&An.entries||mn;if(yn&&(un=Ha(yn.call(new en)),Wa!==Object.prototype&&un.next&&(Ha(un)!==Wa&&(Ro?Ro(un,Wa):"function"!=typeof un[Ya]&&xn(un,Ya,returnThis$2)),setToStringTag(un,hn,!0))),an==Za&&mn&&mn.name!==Za&&(gn=!0,vn=function values(){return mn.call(this)}),An[Ya]!==vn&&xn(An,Ya,vn),Ra[tn]=vn,an)if(dn={values:getIterationMethod(Za),keys:sn?vn:getIterationMethod(Ja),entries:getIterationMethod(es)},cn)for(pn in dn)(Xa||gn||!(pn in An))&&qn(An,pn,dn[pn]);else _export({target:tn,proto:!0,forced:Xa||gn},dn);return dn},ts="Array Iterator",ns=Kn.set,rs=Kn.getterFor(ts),os=defineIterator(Array,"Array",(function(en,tn){ns(this,{type:ts,target:toIndexedObject(en),index:0,kind:tn})}),(function(){var en=rs(this),tn=en.target,nn=en.kind,rn=en.index++;return!tn||rn>=tn.length?(en.target=void 0,{value:void 0,done:!0}):"keys"==nn?{value:rn,done:!1}:"values"==nn?{value:tn[rn],done:!1}:{value:[rn,tn[rn]],done:!1}}),"values");Ra.Arguments=Ra.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var as="".repeat||function repeat(en){var tn=String(requireObjectCoercible(this)),nn="",rn=toInteger(en);if(rn<0||rn==1/0)throw RangeError("Wrong number of repetitions");for(;rn>0;(rn>>>=1)&&(tn+=tn))1&rn&&(nn+=tn);return nn},ss=1..toFixed,ls=Math.floor,pow=function(en,tn,nn){return 0===tn?nn:tn%2==1?pow(en,tn-1,nn*en):pow(en*en,tn/2,nn)},us=ss&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!fails((function(){ss.call({})}));_export({target:"Number",proto:!0,forced:us},{toFixed:function toFixed(en){var tn,nn,rn,an,sn=function(en){if("number"!=typeof en&&"Number"!=classofRaw(en))throw TypeError("Incorrect invocation");return+en}(this),cn=toInteger(en),un=[0,0,0,0,0,0],dn="",pn="0",multiply=function(en,tn){for(var nn=-1,rn=tn;++nn<6;)rn+=en*un[nn],un[nn]=rn%1e7,rn=ls(rn/1e7)},divide=function(en){for(var tn=6,nn=0;--tn>=0;)nn+=un[tn],un[tn]=ls(nn/en),nn=nn%en*1e7},dataToString=function(){for(var en=6,tn="";--en>=0;)if(""!==tn||0===en||0!==un[en]){var nn=String(un[en]);tn=""===tn?nn:tn+as.call("0",7-nn.length)+nn}return tn};if(cn<0||cn>20)throw RangeError("Incorrect fraction digits");if(sn!=sn)return"NaN";if(sn<=-1e21||sn>=1e21)return String(sn);if(sn<0&&(dn="-",sn=-sn),sn>1e-21)if(nn=(tn=function(en){for(var tn=0,nn=en;nn>=4096;)tn+=12,nn/=4096;for(;nn>=2;)tn+=1,nn/=2;return tn}(sn*pow(2,69,1))-69)<0?sn*pow(2,-tn,1):sn/pow(2,tn,1),nn*=4503599627370496,(tn=52-tn)>0){for(multiply(0,nn),rn=cn;rn>=7;)multiply(1e7,0),rn-=7;for(multiply(pow(10,rn,1),0),rn=tn-1;rn>=23;)divide(1<<23),rn-=23;divide(1<<rn),multiply(1,1),divide(2),pn=dataToString()}else multiply(0,nn),multiply(1<<-tn,0),pn=dataToString()+as.call("0",cn);return pn=cn>0?dn+((an=pn.length)<=cn?"0."+as.call("0",cn-an)+pn:pn.slice(0,an-cn)+"."+pn.slice(an-cn)):dn+pn}});var ds={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ps=wellKnownSymbol("iterator"),hs=wellKnownSymbol("toStringTag"),gs=os.values;for(var fs in ds){var As=nn[fs],ms=As&&As.prototype;if(ms){if(ms[ps]!==gs)try{xn(ms,ps,gs)}catch(en){ms[ps]=gs}if(ms[hs]||xn(ms,hs,fs),ds[fs])for(var vs in os)if(ms[vs]!==os[vs])try{xn(ms,vs,os[vs])}catch(en){ms[vs]=os[vs]}}}
|
||
/*!
|
||
* jQuery UI 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI
|
||
*/!function(en,tn){function d(tn){return!en(tn).parents().andSelf().filter((function(){return"hidden"===en.curCSS(this,"visibility")||en.expr.filters.hidden(this)})).length}function c(tn,nn){var rn=tn.nodeName.toLowerCase();if("area"===rn){var an,sn=tn.parentNode,cn=sn.name;return!(!tn.href||!cn||"map"!==sn.nodeName.toLowerCase())&&(!!(an=en("img[usemap=#"+cn+"]")[0])&&d(an))}return(/input|select|textarea|button|object/.test(rn)?!tn.disabled:"a"==rn&&tn.href||nn)&&d(tn)}en.ui=en.ui||{},en.ui.version||(en.extend(en.ui,{version:"1.8.17",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),en.fn.extend({propAttr:en.fn.prop||en.fn.attr,_focus:en.fn.focus,focus:function focus(tn,nn){return"number"==typeof tn?this.each((function(){var rn=this;setTimeout((function(){en(rn).focus(),nn&&nn.call(rn)}),tn)})):this._focus.apply(this,arguments)},scrollParent:function scrollParent(){var tn;return tn=en.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(en.curCSS(this,"position",1))&&/(auto|scroll)/.test(en.curCSS(this,"overflow",1)+en.curCSS(this,"overflow-y",1)+en.curCSS(this,"overflow-x",1))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(en.curCSS(this,"overflow",1)+en.curCSS(this,"overflow-y",1)+en.curCSS(this,"overflow-x",1))})).eq(0),/fixed/.test(this.css("position"))||!tn.length?en(document):tn},zIndex:function zIndex(nn){if(nn!==tn)return this.css("zIndex",nn);if(this.length)for(var rn,an,sn=en(this[0]);sn.length&&sn[0]!==document;){if(("absolute"===(rn=sn.css("position"))||"relative"===rn||"fixed"===rn)&&(an=parseInt(sn.css("zIndex"),10),!isNaN(an)&&0!==an))return an;sn=sn.parent()}return 0},disableSelection:function disableSelection(){return this.bind((en.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(en){en.preventDefault()}))},enableSelection:function enableSelection(){return this.unbind(".ui-disableSelection")}}),en.each(["Width","Height"],(function(nn,rn){function h(tn,nn,rn,sn){return en.each(an,(function(){nn-=parseFloat(en.curCSS(tn,"padding"+this,!0))||0,rn&&(nn-=parseFloat(en.curCSS(tn,"border"+this+"Width",!0))||0),sn&&(nn-=parseFloat(en.curCSS(tn,"margin"+this,!0))||0)})),nn}var an="Width"===rn?["Left","Right"]:["Top","Bottom"],sn=rn.toLowerCase(),cn={innerWidth:en.fn.innerWidth,innerHeight:en.fn.innerHeight,outerWidth:en.fn.outerWidth,outerHeight:en.fn.outerHeight};en.fn["inner"+rn]=function(nn){return nn===tn?cn["inner"+rn].call(this):this.each((function(){en(this).css(sn,h(this,nn)+"px")}))},en.fn["outer"+rn]=function(tn,nn){return"number"!=typeof tn?cn["outer"+rn].call(this,tn):this.each((function(){en(this).css(sn,h(this,tn,!0,nn)+"px")}))}})),en.extend(en.expr[":"],{data:function data(tn,nn,rn){return!!en.data(tn,rn[3])},focusable:function focusable(tn){return c(tn,!isNaN(en.attr(tn,"tabindex")))},tabbable:function tabbable(tn){var nn=en.attr(tn,"tabindex"),rn=isNaN(nn);return(rn||nn>=0)&&c(tn,!rn)}}),en((function(){var tn=document.body,nn=tn.appendChild(nn=document.createElement("div"));en.extend(nn.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),en.support.minHeight=100===nn.offsetHeight,en.support.selectstart="onselectstart"in nn,tn.removeChild(nn).style.display="none"})),en.extend(en.ui,{plugin:{add:function add(tn,nn,rn){var an=en.ui[tn].prototype;for(var sn in rn)an.plugins[sn]=an.plugins[sn]||[],an.plugins[sn].push([nn,rn[sn]])},call:function call(en,tn,nn){var rn=en.plugins[tn];if(rn&&en.element[0].parentNode)for(var an=0;an<rn.length;an++)en.options[rn[an][0]]&&rn[an][1].apply(en.element,nn)}},contains:function contains(en,tn){return document.compareDocumentPosition?16&en.compareDocumentPosition(tn):en!==tn&&en.contains(tn)},hasScroll:function hasScroll(tn,nn){if("hidden"===en(tn).css("overflow"))return!1;var rn,an=nn&&"left"===nn?"scrollLeft":"scrollTop";return tn[an]>0||(tn[an]=1,rn=tn[an]>0,tn[an]=0,rn)},isOverAxis:function isOverAxis(en,tn,nn){return en>tn&&en<tn+nn},isOver:function isOver(tn,nn,rn,an,sn,cn){return en.ui.isOverAxis(tn,rn,sn)&&en.ui.isOverAxis(nn,an,cn)}}))}(jQuery),
|
||
/*!
|
||
* jQuery UI Widget 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI/Widget
|
||
*/
|
||
function(en,tn){if(en.cleanData){var nn=en.cleanData;en.cleanData=function(tn){for(var rn,an=0;null!=(rn=tn[an]);an++)try{en(rn).triggerHandler("remove")}catch(en){}nn(tn)}}else{var rn=en.fn.remove;en.fn.remove=function(tn,nn){return this.each((function(){return nn||(!tn||en.filter(tn,[this]).length)&&en("*",this).add([this]).each((function(){try{en(this).triggerHandler("remove")}catch(en){}})),rn.call(en(this),tn,nn)}))}}en.widget=function(tn,nn,rn){var an,sn=tn.split(".")[0];an=sn+"-"+(tn=tn.split(".")[1]),rn||(rn=nn,nn=en.Widget),en.expr[":"][an]=function(nn){return!!en.data(nn,tn)},en[sn]=en[sn]||{},en[sn][tn]=function(en,tn){arguments.length&&this._createWidget(en,tn)};var cn=new nn;cn.options=en.extend(!0,{},cn.options),en[sn][tn].prototype=en.extend(!0,cn,{namespace:sn,widgetName:tn,widgetEventPrefix:en[sn][tn].prototype.widgetEventPrefix||tn,widgetBaseClass:an},rn),en.widget.bridge(tn,en[sn][tn])},en.widget.bridge=function(nn,rn){en.fn[nn]=function(an){var sn="string"==typeof an,cn=Array.prototype.slice.call(arguments,1),un=this;return an=!sn&&cn.length?en.extend.apply(null,[!0,an].concat(cn)):an,sn&&"_"===an.charAt(0)||(sn?this.each((function(){var rn=en.data(this,nn),sn=rn&&en.isFunction(rn[an])?rn[an].apply(rn,cn):rn;if(sn!==rn&&sn!==tn)return un=sn,!1})):this.each((function(){var tn=en.data(this,nn);tn?tn.option(an||{})._init():en.data(this,nn,new rn(an,this))}))),un}},en.Widget=function(en,tn){arguments.length&&this._createWidget(en,tn)},en.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function _createWidget(tn,nn){en.data(nn,this.widgetName,this),this.element=en(nn),this.options=en.extend(!0,{},this.options,this._getCreateOptions(),tn);var rn=this;this.element.bind("remove."+this.widgetName,(function(){rn.destroy()})),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function _getCreateOptions(){return en.metadata&&en.metadata.get(this.element[0])[this.widgetName]},_create:function _create(){},_init:function _init(){},destroy:function destroy(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function widget(){return this.element},option:function option(nn,rn){var an=nn;if(0===arguments.length)return en.extend({},this.options);if("string"==typeof nn){if(rn===tn)return this.options[nn];(an={})[nn]=rn}return this._setOptions(an),this},_setOptions:function _setOptions(tn){var nn=this;return en.each(tn,(function(en,tn){nn._setOption(en,tn)})),this},_setOption:function _setOption(en,tn){return this.options[en]=tn,"disabled"===en&&this.widget()[tn?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",tn),this},enable:function enable(){return this._setOption("disabled",!1)},disable:function disable(){return this._setOption("disabled",!0)},_trigger:function _trigger(tn,nn,rn){var an,sn,cn=this.options[tn];if(rn=rn||{},(nn=en.Event(nn)).type=(tn===this.widgetEventPrefix?tn:this.widgetEventPrefix+tn).toLowerCase(),nn.target=this.element[0],sn=nn.originalEvent)for(an in sn)an in nn||(nn[an]=sn[an]);return this.element.trigger(nn,rn),!(en.isFunction(cn)&&!1===cn.call(this.element[0],nn,rn)||nn.isDefaultPrevented())}}}(jQuery),
|
||
/*!
|
||
* jQuery UI Mouse 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI/Mouse
|
||
*
|
||
* Depends:
|
||
* jquery.ui.widget.js
|
||
*/
|
||
function(en,tn){var nn=!1;en(document).mouseup((function(en){nn=!1})),en.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function _mouseInit(){var tn=this;this.element.bind("mousedown."+this.widgetName,(function(en){return tn._mouseDown(en)})).bind("click."+this.widgetName,(function(nn){if(!0===en.data(nn.target,tn.widgetName+".preventClickEvent"))return en.removeData(nn.target,tn.widgetName+".preventClickEvent"),nn.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function _mouseDestroy(){this.element.unbind("."+this.widgetName)},_mouseDown:function _mouseDown(tn){if(!nn){this._mouseStarted&&this._mouseUp(tn),this._mouseDownEvent=tn;var rn=this,an=1==tn.which,sn=!("string"!=typeof this.options.cancel||!tn.target.nodeName)&&en(tn.target).closest(this.options.cancel).length;return!(an&&!sn&&this._mouseCapture(tn))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){rn.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(tn)&&this._mouseDelayMet(tn)&&(this._mouseStarted=!1!==this._mouseStart(tn),!this._mouseStarted)?(tn.preventDefault(),!0):(!0===en.data(tn.target,this.widgetName+".preventClickEvent")&&en.removeData(tn.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(en){return rn._mouseMove(en)},this._mouseUpDelegate=function(en){return rn._mouseUp(en)},en(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),tn.preventDefault(),nn=!0,!0))}},_mouseMove:function _mouseMove(tn){return!en.browser.msie||document.documentMode>=9||tn.button?this._mouseStarted?(this._mouseDrag(tn),tn.preventDefault()):(this._mouseDistanceMet(tn)&&this._mouseDelayMet(tn)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,tn),this._mouseStarted?this._mouseDrag(tn):this._mouseUp(tn)),!this._mouseStarted):this._mouseUp(tn)},_mouseUp:function _mouseUp(tn){return en(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,tn.target==this._mouseDownEvent.target&&en.data(tn.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(tn)),!1},_mouseDistanceMet:function _mouseDistanceMet(en){return Math.max(Math.abs(this._mouseDownEvent.pageX-en.pageX),Math.abs(this._mouseDownEvent.pageY-en.pageY))>=this.options.distance},_mouseDelayMet:function _mouseDelayMet(en){return this.mouseDelayMet},_mouseStart:function _mouseStart(en){},_mouseDrag:function _mouseDrag(en){},_mouseStop:function _mouseStop(en){},_mouseCapture:function _mouseCapture(en){return!0}})}(jQuery),function(en,tn){en.widget("ui.draggable",en.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function _create(){"original"==this.options.helper&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function destroy(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(tn){var nn=this.options;return!(this.helper||nn.disabled||en(tn.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(tn),!!this.handle&&(nn.iframeFix&&en(!0===nn.iframeFix?"iframe":nn.iframeFix).each((function(){en('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(en(this).offset()).appendTo("body")})),!0))},_mouseStart:function _mouseStart(tn){var nn=this.options;return this.helper=this._createHelper(tn),this._cacheHelperProportions(),en.ui.ddmanager&&(en.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},en.extend(this.offset,{click:{left:tn.pageX-this.offset.left,top:tn.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(tn),this.originalPageX=tn.pageX,this.originalPageY=tn.pageY,nn.cursorAt&&this._adjustOffsetFromHelper(nn.cursorAt),nn.containment&&this._setContainment(),!1===this._trigger("start",tn)?(this._clear(),!1):(this._cacheHelperProportions(),en.ui.ddmanager&&!nn.dropBehaviour&&en.ui.ddmanager.prepareOffsets(this,tn),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(tn,!0),en.ui.ddmanager&&en.ui.ddmanager.dragStart(this,tn),!0)},_mouseDrag:function _mouseDrag(tn,nn){if(this.position=this._generatePosition(tn),this.positionAbs=this._convertPositionTo("absolute"),!nn){var rn=this._uiHash();if(!1===this._trigger("drag",tn,rn))return this._mouseUp({}),!1;this.position=rn.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),en.ui.ddmanager&&en.ui.ddmanager.drag(this,tn),!1},_mouseStop:function _mouseStop(tn){var nn=!1;if(en.ui.ddmanager&&!this.options.dropBehaviour&&(nn=en.ui.ddmanager.drop(this,tn)),this.dropped&&(nn=this.dropped,this.dropped=!1),!(this.element[0]&&this.element[0].parentNode||"original"!=this.options.helper))return!1;if("invalid"==this.options.revert&&!nn||"valid"==this.options.revert&&nn||!0===this.options.revert||en.isFunction(this.options.revert)&&this.options.revert.call(this.element,nn)){var rn=this;en(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==rn._trigger("stop",tn)&&rn._clear()}))}else!1!==this._trigger("stop",tn)&&this._clear();return!1},_mouseUp:function _mouseUp(tn){return!0===this.options.iframeFix&&en("div.ui-draggable-iframeFix").each((function(){this.parentNode.removeChild(this)})),en.ui.ddmanager&&en.ui.ddmanager.dragStop(this,tn),en.ui.mouse.prototype._mouseUp.call(this,tn)},cancel:function cancel(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function _getHandle(tn){var nn=!this.options.handle||!en(this.options.handle,this.element).length;return en(this.options.handle,this.element).find("*").andSelf().each((function(){this==tn.target&&(nn=!0)})),nn},_createHelper:function _createHelper(tn){var nn=this.options,rn=en.isFunction(nn.helper)?en(nn.helper.apply(this.element[0],[tn])):"clone"==nn.helper?this.element.clone().removeAttr("id"):this.element;return rn.parents("body").length||rn.appendTo("parent"==nn.appendTo?this.element[0].parentNode:nn.appendTo),rn[0]!=this.element[0]&&!/(fixed|absolute)/.test(rn.css("position"))&&rn.css("position","absolute"),rn},_adjustOffsetFromHelper:function _adjustOffsetFromHelper(tn){"string"==typeof tn&&(tn=tn.split(" ")),en.isArray(tn)&&(tn={left:+tn[0],top:+tn[1]||0}),"left"in tn&&(this.offset.click.left=tn.left+this.margins.left),"right"in tn&&(this.offset.click.left=this.helperProportions.width-tn.right+this.margins.left),"top"in tn&&(this.offset.click.top=tn.top+this.margins.top),"bottom"in tn&&(this.offset.click.top=this.helperProportions.height-tn.bottom+this.margins.top)},_getParentOffset:function _getParentOffset(){this.offsetParent=this.helper.offsetParent();var tn=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&en.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(tn.left+=this.scrollParent.scrollLeft(),tn.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&en.browser.msie)&&(tn={top:0,left:0}),{top:tn.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:tn.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function _getRelativeOffset(){if("relative"==this.cssPosition){var en=this.element.position();return{top:en.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:en.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function _cacheMargins(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function _cacheHelperProportions(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function _setContainment(){var tn=this.options;if("parent"==tn.containment&&(tn.containment=this.helper[0].parentNode),"document"!=tn.containment&&"window"!=tn.containment||(this.containment=["document"==tn.containment?0:en(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==tn.containment?0:en(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==tn.containment?0:en(window).scrollLeft())+en("document"==tn.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==tn.containment?0:en(window).scrollTop())+(en("document"==tn.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(tn.containment)||tn.containment.constructor==Array)tn.containment.constructor==Array&&(this.containment=tn.containment);else{var nn=en(tn.containment),rn=nn[0];if(!rn)return;nn.offset();var an="hidden"!=en(rn).css("overflow");this.containment=[(parseInt(en(rn).css("borderLeftWidth"),10)||0)+(parseInt(en(rn).css("paddingLeft"),10)||0),(parseInt(en(rn).css("borderTopWidth"),10)||0)+(parseInt(en(rn).css("paddingTop"),10)||0),(an?Math.max(rn.scrollWidth,rn.offsetWidth):rn.offsetWidth)-(parseInt(en(rn).css("borderLeftWidth"),10)||0)-(parseInt(en(rn).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(an?Math.max(rn.scrollHeight,rn.offsetHeight):rn.offsetHeight)-(parseInt(en(rn).css("borderTopWidth"),10)||0)-(parseInt(en(rn).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=nn}},_convertPositionTo:function _convertPositionTo(tn,nn){nn||(nn=this.position);var rn="absolute"==tn?1:-1;this.options;var an="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&en.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,sn=/(html|body)/i.test(an[0].tagName);return{top:nn.top+this.offset.relative.top*rn+this.offset.parent.top*rn-(en.browser.safari&&en.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():sn?0:an.scrollTop())*rn),left:nn.left+this.offset.relative.left*rn+this.offset.parent.left*rn-(en.browser.safari&&en.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():sn?0:an.scrollLeft())*rn)}},_generatePosition:function _generatePosition(tn){var nn=this.options,rn="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&en.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,an=/(html|body)/i.test(rn[0].tagName),sn=tn.pageX,cn=tn.pageY;if(this.originalPosition){var un;if(this.containment){if(this.relative_container){var dn=this.relative_container.offset();un=[this.containment[0]+dn.left,this.containment[1]+dn.top,this.containment[2]+dn.left,this.containment[3]+dn.top]}else un=this.containment;tn.pageX-this.offset.click.left<un[0]&&(sn=un[0]+this.offset.click.left),tn.pageY-this.offset.click.top<un[1]&&(cn=un[1]+this.offset.click.top),tn.pageX-this.offset.click.left>un[2]&&(sn=un[2]+this.offset.click.left),tn.pageY-this.offset.click.top>un[3]&&(cn=un[3]+this.offset.click.top)}if(nn.grid){var pn=nn.grid[1]?this.originalPageY+Math.round((cn-this.originalPageY)/nn.grid[1])*nn.grid[1]:this.originalPageY;cn=un&&(pn-this.offset.click.top<un[1]||pn-this.offset.click.top>un[3])?pn-this.offset.click.top<un[1]?pn+nn.grid[1]:pn-nn.grid[1]:pn;var hn=nn.grid[0]?this.originalPageX+Math.round((sn-this.originalPageX)/nn.grid[0])*nn.grid[0]:this.originalPageX;sn=un&&(hn-this.offset.click.left<un[0]||hn-this.offset.click.left>un[2])?hn-this.offset.click.left<un[0]?hn+nn.grid[0]:hn-nn.grid[0]:hn}}return{top:cn-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(en.browser.safari&&en.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():an?0:rn.scrollTop()),left:sn-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(en.browser.safari&&en.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():an?0:rn.scrollLeft())}},_clear:function _clear(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function _trigger(tn,nn,rn){return rn=rn||this._uiHash(),en.ui.plugin.call(this,tn,[nn,rn]),"drag"==tn&&(this.positionAbs=this._convertPositionTo("absolute")),en.Widget.prototype._trigger.call(this,tn,nn,rn)},plugins:{},_uiHash:function _uiHash(en){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),en.extend(en.ui.draggable,{version:"1.8.17"}),en.ui.plugin.add("draggable","connectToSortable",{start:function start(tn,nn){var rn=en(this).data("draggable"),an=rn.options,sn=en.extend({},nn,{item:rn.element});rn.sortables=[],en(an.connectToSortable).each((function(){var nn=en.data(this,"sortable");nn&&!nn.options.disabled&&(rn.sortables.push({instance:nn,shouldRevert:nn.options.revert}),nn.refreshPositions(),nn._trigger("activate",tn,sn))}))},stop:function stop(tn,nn){var rn=en(this).data("draggable"),an=en.extend({},nn,{item:rn.element});en.each(rn.sortables,(function(){this.instance.isOver?(this.instance.isOver=0,rn.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(tn),this.instance.options.helper=this.instance.options._helper,"original"==rn.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",tn,an))}))},drag:function drag(tn,nn){var rn=en(this).data("draggable"),an=this;en.each(rn.sortables,(function(sn){this.instance.positionAbs=rn.positionAbs,this.instance.helperProportions=rn.helperProportions,this.instance.offset.click=rn.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=en(an).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return nn.helper[0]},tn.target=this.instance.currentItem[0],this.instance._mouseCapture(tn,!0),this.instance._mouseStart(tn,!0,!0),this.instance.offset.click.top=rn.offset.click.top,this.instance.offset.click.left=rn.offset.click.left,this.instance.offset.parent.left-=rn.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=rn.offset.parent.top-this.instance.offset.parent.top,rn._trigger("toSortable",tn),rn.dropped=this.instance.element,rn.currentItem=rn.element,this.instance.fromOutside=rn),this.instance.currentItem&&this.instance._mouseDrag(tn)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",tn,this.instance._uiHash(this.instance)),this.instance._mouseStop(tn,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),rn._trigger("fromSortable",tn),rn.dropped=!1)}))}}),en.ui.plugin.add("draggable","cursor",{start:function start(tn,nn){var rn=en("body"),an=en(this).data("draggable").options;rn.css("cursor")&&(an._cursor=rn.css("cursor")),rn.css("cursor",an.cursor)},stop:function stop(tn,nn){var rn=en(this).data("draggable").options;rn._cursor&&en("body").css("cursor",rn._cursor)}}),en.ui.plugin.add("draggable","opacity",{start:function start(tn,nn){var rn=en(nn.helper),an=en(this).data("draggable").options;rn.css("opacity")&&(an._opacity=rn.css("opacity")),rn.css("opacity",an.opacity)},stop:function stop(tn,nn){var rn=en(this).data("draggable").options;rn._opacity&&en(nn.helper).css("opacity",rn._opacity)}}),en.ui.plugin.add("draggable","scroll",{start:function start(tn,nn){var rn=en(this).data("draggable");rn.scrollParent[0]!=document&&"HTML"!=rn.scrollParent[0].tagName&&(rn.overflowOffset=rn.scrollParent.offset())},drag:function drag(tn,nn){var rn=en(this).data("draggable"),an=rn.options,sn=!1;rn.scrollParent[0]!=document&&"HTML"!=rn.scrollParent[0].tagName?(an.axis&&"x"==an.axis||(rn.overflowOffset.top+rn.scrollParent[0].offsetHeight-tn.pageY<an.scrollSensitivity?rn.scrollParent[0].scrollTop=sn=rn.scrollParent[0].scrollTop+an.scrollSpeed:tn.pageY-rn.overflowOffset.top<an.scrollSensitivity&&(rn.scrollParent[0].scrollTop=sn=rn.scrollParent[0].scrollTop-an.scrollSpeed)),an.axis&&"y"==an.axis||(rn.overflowOffset.left+rn.scrollParent[0].offsetWidth-tn.pageX<an.scrollSensitivity?rn.scrollParent[0].scrollLeft=sn=rn.scrollParent[0].scrollLeft+an.scrollSpeed:tn.pageX-rn.overflowOffset.left<an.scrollSensitivity&&(rn.scrollParent[0].scrollLeft=sn=rn.scrollParent[0].scrollLeft-an.scrollSpeed))):(an.axis&&"x"==an.axis||(tn.pageY-en(document).scrollTop()<an.scrollSensitivity?sn=en(document).scrollTop(en(document).scrollTop()-an.scrollSpeed):en(window).height()-(tn.pageY-en(document).scrollTop())<an.scrollSensitivity&&(sn=en(document).scrollTop(en(document).scrollTop()+an.scrollSpeed))),an.axis&&"y"==an.axis||(tn.pageX-en(document).scrollLeft()<an.scrollSensitivity?sn=en(document).scrollLeft(en(document).scrollLeft()-an.scrollSpeed):en(window).width()-(tn.pageX-en(document).scrollLeft())<an.scrollSensitivity&&(sn=en(document).scrollLeft(en(document).scrollLeft()+an.scrollSpeed)))),!1!==sn&&en.ui.ddmanager&&!an.dropBehaviour&&en.ui.ddmanager.prepareOffsets(rn,tn)}}),en.ui.plugin.add("draggable","snap",{start:function start(tn,nn){var rn=en(this).data("draggable"),an=rn.options;rn.snapElements=[],en(an.snap.constructor!=String?an.snap.items||":data(draggable)":an.snap).each((function(){var tn=en(this),nn=tn.offset();this!=rn.element[0]&&rn.snapElements.push({item:this,width:tn.outerWidth(),height:tn.outerHeight(),top:nn.top,left:nn.left})}))},drag:function drag(tn,nn){for(var rn=en(this).data("draggable"),an=rn.options,sn=an.snapTolerance,cn=nn.offset.left,un=cn+rn.helperProportions.width,dn=nn.offset.top,pn=dn+rn.helperProportions.height,hn=rn.snapElements.length-1;hn>=0;hn--){var gn=rn.snapElements[hn].left,An=gn+rn.snapElements[hn].width,mn=rn.snapElements[hn].top,vn=mn+rn.snapElements[hn].height;if(gn-sn<cn&&cn<An+sn&&mn-sn<dn&&dn<vn+sn||gn-sn<cn&&cn<An+sn&&mn-sn<pn&&pn<vn+sn||gn-sn<un&&un<An+sn&&mn-sn<dn&&dn<vn+sn||gn-sn<un&&un<An+sn&&mn-sn<pn&&pn<vn+sn){if("inner"!=an.snapMode){var yn=Math.abs(mn-pn)<=sn,_n=Math.abs(vn-dn)<=sn,wn=Math.abs(gn-un)<=sn,xn=Math.abs(An-cn)<=sn;yn&&(nn.position.top=rn._convertPositionTo("relative",{top:mn-rn.helperProportions.height,left:0}).top-rn.margins.top),_n&&(nn.position.top=rn._convertPositionTo("relative",{top:vn,left:0}).top-rn.margins.top),wn&&(nn.position.left=rn._convertPositionTo("relative",{top:0,left:gn-rn.helperProportions.width}).left-rn.margins.left),xn&&(nn.position.left=rn._convertPositionTo("relative",{top:0,left:An}).left-rn.margins.left)}var Sn=yn||_n||wn||xn;if("outer"!=an.snapMode){yn=Math.abs(mn-dn)<=sn,_n=Math.abs(vn-pn)<=sn,wn=Math.abs(gn-cn)<=sn,xn=Math.abs(An-un)<=sn;yn&&(nn.position.top=rn._convertPositionTo("relative",{top:mn,left:0}).top-rn.margins.top),_n&&(nn.position.top=rn._convertPositionTo("relative",{top:vn-rn.helperProportions.height,left:0}).top-rn.margins.top),wn&&(nn.position.left=rn._convertPositionTo("relative",{top:0,left:gn}).left-rn.margins.left),xn&&(nn.position.left=rn._convertPositionTo("relative",{top:0,left:An-rn.helperProportions.width}).left-rn.margins.left)}!rn.snapElements[hn].snapping&&(yn||_n||wn||xn||Sn)&&rn.options.snap.snap&&rn.options.snap.snap.call(rn.element,tn,en.extend(rn._uiHash(),{snapItem:rn.snapElements[hn].item})),rn.snapElements[hn].snapping=yn||_n||wn||xn||Sn}else rn.snapElements[hn].snapping&&rn.options.snap.release&&rn.options.snap.release.call(rn.element,tn,en.extend(rn._uiHash(),{snapItem:rn.snapElements[hn].item})),rn.snapElements[hn].snapping=!1}}}),en.ui.plugin.add("draggable","stack",{start:function start(tn,nn){var rn=en(this).data("draggable").options,an=en.makeArray(en(rn.stack)).sort((function(tn,nn){return(parseInt(en(tn).css("zIndex"),10)||0)-(parseInt(en(nn).css("zIndex"),10)||0)}));if(an.length){var sn=parseInt(an[0].style.zIndex)||0;en(an).each((function(en){this.style.zIndex=sn+en})),this[0].style.zIndex=sn+an.length}}}),en.ui.plugin.add("draggable","zIndex",{start:function start(tn,nn){var rn=en(nn.helper),an=en(this).data("draggable").options;rn.css("zIndex")&&(an._zIndex=rn.css("zIndex")),rn.css("zIndex",an.zIndex)},stop:function stop(tn,nn){var rn=en(this).data("draggable").options;rn._zIndex&&en(nn.helper).css("zIndex",rn._zIndex)}})}(jQuery),function(en,tn){en.widget("ui.slider",en.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function _create(){var tn=this,nn=this.options,rn=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),an=nn.values&&nn.values.length||1,sn=[];this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(nn.disabled?" ui-slider-disabled ui-disabled":"")),this.range=en([]),nn.range&&(!0===nn.range&&(nn.values||(nn.values=[this._valueMin(),this._valueMin()]),nn.values.length&&2!==nn.values.length&&(nn.values=[nn.values[0],nn.values[0]])),this.range=en("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===nn.range||"max"===nn.range?" ui-slider-range-"+nn.range:"")));for(var cn=rn.length;cn<an;cn+=1)sn.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");this.handles=rn.add(en(sn.join("")).appendTo(tn.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click((function(en){en.preventDefault()})).hover((function(){nn.disabled||en(this).addClass("ui-state-hover")}),(function(){en(this).removeClass("ui-state-hover")})).focus((function(){nn.disabled?en(this).blur():(en(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),en(this).addClass("ui-state-focus"))})).blur((function(){en(this).removeClass("ui-state-focus")})),this.handles.each((function(tn){en(this).data("index.ui-slider-handle",tn)})),this.handles.keydown((function(nn){var rn,an,sn,cn=!0,un=en(this).data("index.ui-slider-handle");if(!tn.options.disabled){switch(nn.keyCode){case en.ui.keyCode.HOME:case en.ui.keyCode.END:case en.ui.keyCode.PAGE_UP:case en.ui.keyCode.PAGE_DOWN:case en.ui.keyCode.UP:case en.ui.keyCode.RIGHT:case en.ui.keyCode.DOWN:case en.ui.keyCode.LEFT:if(cn=!1,!tn._keySliding&&(tn._keySliding=!0,en(this).addClass("ui-state-active"),!1===tn._start(nn,un)))return}switch(sn=tn.options.step,rn=an=tn.options.values&&tn.options.values.length?tn.values(un):tn.value(),nn.keyCode){case en.ui.keyCode.HOME:an=tn._valueMin();break;case en.ui.keyCode.END:an=tn._valueMax();break;case en.ui.keyCode.PAGE_UP:an=tn._trimAlignValue(rn+(tn._valueMax()-tn._valueMin())/5);break;case en.ui.keyCode.PAGE_DOWN:an=tn._trimAlignValue(rn-(tn._valueMax()-tn._valueMin())/5);break;case en.ui.keyCode.UP:case en.ui.keyCode.RIGHT:if(rn===tn._valueMax())return;an=tn._trimAlignValue(rn+sn);break;case en.ui.keyCode.DOWN:case en.ui.keyCode.LEFT:if(rn===tn._valueMin())return;an=tn._trimAlignValue(rn-sn)}return tn._slide(nn,un,an),cn}})).keyup((function(nn){var rn=en(this).data("index.ui-slider-handle");tn._keySliding&&(tn._keySliding=!1,tn._stop(nn,rn),tn._change(nn,rn),en(this).removeClass("ui-state-active"))})),this._refreshValue(),this._animateOff=!1},destroy:function destroy(){return this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(tn){var nn,rn,an,sn,cn,un,dn,pn,hn=this.options;return!hn.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),nn={x:tn.pageX,y:tn.pageY},rn=this._normValueFromMouse(nn),an=this._valueMax()-this._valueMin()+1,cn=this,this.handles.each((function(tn){var nn=Math.abs(rn-cn.values(tn));an>nn&&(an=nn,sn=en(this),un=tn)})),!0===hn.range&&this.values(1)===hn.min&&(un+=1,sn=en(this.handles[un])),!1!==this._start(tn,un)&&(this._mouseSliding=!0,cn._handleIndex=un,sn.addClass("ui-state-active").focus(),dn=sn.offset(),pn=!en(tn.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=pn?{left:0,top:0}:{left:tn.pageX-dn.left-sn.width()/2,top:tn.pageY-dn.top-sn.height()/2-(parseInt(sn.css("borderTopWidth"),10)||0)-(parseInt(sn.css("borderBottomWidth"),10)||0)+(parseInt(sn.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(tn,un,rn),this._animateOff=!0,!0))},_mouseStart:function _mouseStart(en){return!0},_mouseDrag:function _mouseDrag(en){var tn={x:en.pageX,y:en.pageY},nn=this._normValueFromMouse(tn);return this._slide(en,this._handleIndex,nn),!1},_mouseStop:function _mouseStop(en){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(en,this._handleIndex),this._change(en,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function _detectOrientation(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function _normValueFromMouse(en){var tn,nn,rn,an,sn;return"horizontal"===this.orientation?(tn=this.elementSize.width,nn=en.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(tn=this.elementSize.height,nn=en.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(rn=nn/tn)>1&&(rn=1),rn<0&&(rn=0),"vertical"===this.orientation&&(rn=1-rn),an=this._valueMax()-this._valueMin(),sn=this._valueMin()+rn*an,this._trimAlignValue(sn)},_start:function _start(en,tn){var nn={handle:this.handles[tn],value:this.value()};return this.options.values&&this.options.values.length&&(nn.value=this.values(tn),nn.values=this.values()),this._trigger("start",en,nn)},_slide:function _slide(en,tn,nn){var rn,an,sn;this.options.values&&this.options.values.length?(rn=this.values(tn?0:1),2===this.options.values.length&&!0===this.options.range&&(0===tn&&nn>rn||1===tn&&nn<rn)&&(nn=rn),nn!==this.values(tn)&&((an=this.values())[tn]=nn,sn=this._trigger("slide",en,{handle:this.handles[tn],value:nn,values:an}),rn=this.values(tn?0:1),!1!==sn&&this.values(tn,nn,!0))):nn!==this.value()&&(!1!==(sn=this._trigger("slide",en,{handle:this.handles[tn],value:nn}))&&this.value(nn))},_stop:function _stop(en,tn){var nn={handle:this.handles[tn],value:this.value()};this.options.values&&this.options.values.length&&(nn.value=this.values(tn),nn.values=this.values()),this._trigger("stop",en,nn)},_change:function _change(en,tn){if(!this._keySliding&&!this._mouseSliding){var nn={handle:this.handles[tn],value:this.value()};this.options.values&&this.options.values.length&&(nn.value=this.values(tn),nn.values=this.values()),this._trigger("change",en,nn)}},value:function value(en){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(en),this._refreshValue(),this._change(null,0)},values:function values(tn,nn){var rn,an,sn;if(arguments.length>1)this.options.values[tn]=this._trimAlignValue(nn),this._refreshValue(),this._change(null,tn);else{if(!arguments.length)return this._values();if(!en.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(tn):this.value();for(rn=this.options.values,an=arguments[0],sn=0;sn<rn.length;sn+=1)rn[sn]=this._trimAlignValue(an[sn]),this._change(null,sn);this._refreshValue()}},_setOption:function _setOption(tn,nn){var rn,an=0;switch(en.isArray(this.options.values)&&(an=this.options.values.length),en.Widget.prototype._setOption.apply(this,arguments),tn){case"disabled":nn?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),rn=0;rn<an;rn+=1)this._change(null,rn);this._animateOff=!1}},_value:function _value(){var en=this.options.value;return en=this._trimAlignValue(en)},_values:function _values(en){var tn,nn,rn;if(arguments.length)return tn=this.options.values[en],tn=this._trimAlignValue(tn);for(nn=this.options.values.slice(),rn=0;rn<nn.length;rn+=1)nn[rn]=this._trimAlignValue(nn[rn]);return nn},_trimAlignValue:function _trimAlignValue(en){if(en<=this._valueMin())return this._valueMin();if(en>=this._valueMax())return this._valueMax();var tn=this.options.step>0?this.options.step:1,nn=(en-this._valueMin())%tn,rn=en-nn;return 2*Math.abs(nn)>=tn&&(rn+=nn>0?tn:-tn),parseFloat(rn.toFixed(5))},_valueMin:function _valueMin(){return this.options.min},_valueMax:function _valueMax(){return this.options.max},_refreshValue:function _refreshValue(){var tn,nn,rn,an,sn,cn=this.options.range,un=this.options,dn=this,pn=!this._animateOff&&un.animate,hn={};this.options.values&&this.options.values.length?this.handles.each((function(rn,an){tn=(dn.values(rn)-dn._valueMin())/(dn._valueMax()-dn._valueMin())*100,hn["horizontal"===dn.orientation?"left":"bottom"]=tn+"%",en(this).stop(1,1)[pn?"animate":"css"](hn,un.animate),!0===dn.options.range&&("horizontal"===dn.orientation?(0===rn&&dn.range.stop(1,1)[pn?"animate":"css"]({left:tn+"%"},un.animate),1===rn&&dn.range[pn?"animate":"css"]({width:tn-nn+"%"},{queue:!1,duration:un.animate})):(0===rn&&dn.range.stop(1,1)[pn?"animate":"css"]({bottom:tn+"%"},un.animate),1===rn&&dn.range[pn?"animate":"css"]({height:tn-nn+"%"},{queue:!1,duration:un.animate}))),nn=tn})):(rn=this.value(),an=this._valueMin(),sn=this._valueMax(),tn=sn!==an?(rn-an)/(sn-an)*100:0,hn["horizontal"===dn.orientation?"left":"bottom"]=tn+"%",this.handle.stop(1,1)[pn?"animate":"css"](hn,un.animate),"min"===cn&&"horizontal"===this.orientation&&this.range.stop(1,1)[pn?"animate":"css"]({width:tn+"%"},un.animate),"max"===cn&&"horizontal"===this.orientation&&this.range[pn?"animate":"css"]({width:100-tn+"%"},{queue:!1,duration:un.animate}),"min"===cn&&"vertical"===this.orientation&&this.range.stop(1,1)[pn?"animate":"css"]({height:tn+"%"},un.animate),"max"===cn&&"vertical"===this.orientation&&this.range[pn?"animate":"css"]({height:100-tn+"%"},{queue:!1,duration:un.animate}))}}),en.extend(en.ui.slider,{version:"1.8.17"})}(jQuery);var ys=document.createElement("template");ys.innerHTML='\n <style>\n :host(:hover) :not(.disabled)\n {\n background-color: var(--icon-bg-color-hover);\n }\n div\n {\n height: 24px;\n width: 24px;\n margin: 2px 2px 4px;\n padding: 3px;\n background-color: var(--icon-bg-color);\n cursor: pointer;\n border-radius: 3px;\n }\n .small {\n width: 14px;\n height: 14px;\n padding: 1px;\n border-radius: 1px;\n }\n img {\n border: none;\n width: 100%;\n height: 100%;\n }\n .pressed {\n background-color: var(--icon-bg-color-hover);\n }\n .disabled {\n opacity: 0.3;\n cursor: default;\n }\n </style>\n <div title="title">\n <img src="./images/logo.svg" alt="icon">\n </div>\n';var _s=function(en){_inherits(ToolButton,en);var tn=_createSuper(ToolButton);function ToolButton(){var en;return _classCallCheck(this,ToolButton),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(ys.content.cloneNode(!0)),en.$div=en._shadowRoot.querySelector("div"),en.$img=en._shadowRoot.querySelector("img"),en}return _createClass(ToolButton,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"title":var rn=this.getAttribute("shortcut");this.$div.setAttribute("title","".concat(nn," ").concat(rn?"[".concat(rn,"]"):""));break;case"style":this.$div.style=nn;break;case"src":this.$img.setAttribute("src",nn);break;case"pressed":nn?this.$div.classList.add("pressed"):this.$div.classList.remove("pressed");break;case"size":"small"===nn?this.$div.classList.add("small"):this.$div.classList.remove("small");break;case"disabled":nn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(en))}}},{key:"connectedCallback",value:function connectedCallback(){var en=this,tn=this.getAttribute("shortcut");tn&&document.addEventListener("keydown",(function(nn){if("BODY"===nn.target.nodeName){var rn="".concat(nn.metaKey?"meta+":"").concat(nn.ctrlKey?"ctrl+":"").concat(nn.key.toUpperCase());tn===rn&&(en.click(),nn.preventDefault())}}))}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(en){this.setAttribute("title",en)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(en){en?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(en){en?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(en){this.setAttribute("src",en)}},{key:"size",get:function get(){return this.getAttribute("size")},set:function set(en){this.setAttribute("size",en)}}],[{key:"observedAttributes",get:function get(){return["title","src","pressed","disabled","size","style"]}}]),ToolButton}(_wrapNativeSuper(HTMLElement));customElements.define("se-button",_s);var bs=document.createElement("template");bs.innerHTML='\n <style>\n :host {\n position:relative;\n }\n .overall:hover *\n {\n background-color: var(--icon-bg-color-hover);\n }\n img {\n border: none;\n width: 24px;\n height: 24px;\n }\n .overall.pressed .button-icon,\n .overall.pressed .handle {\n background-color: var(--icon-bg-color-hover) !important;\n }\n .overall.pressed .menu-button {\n background-color: var(--icon-bg-color-hover) !important;\n }\n .disabled {\n opacity: 0.3;\n cursor: default;\n }\n .menu-button {\n height: 24px;\n width: 24px;\n margin: 2px 2px 4px;\n padding: 3px;\n background-color: var(--icon-bg-color);\n cursor: pointer;\n position: relative;\n border-radius: 3px;\n overflow: hidden;\n }\n .handle {\n height: 8px;\n width: 8px;\n background-image: url(./images/handle.svg);\n position:absolute;\n bottom: 0px;\n right: 0px;\n }\n .button-icon {\n }\n .menu {\n position: absolute;\n top:-2px;\n left:32px;\n background: none !important;\n display:none;\n }\n .open {\n display: flex;\n }\n .menu-item {\n align-content: flex-start;\n height: 24px;\n width: 24px;\n top:0px;\n left:0px;\n }\n .overall {\n background: none !important;\n }\n </style>\n\n <div class="overall">\n <div class="menu-button">\n <img class="button-icon" src="./images/logo.svg" alt="icon">\n <div class="handle"></div>\n </div>\n <div class="menu">\n <slot></slot>\n </div>\n </div>\n\n';var ws=function(en){_inherits(FlyingButton,en);var tn=_createSuper(FlyingButton);function FlyingButton(){var en;return _classCallCheck(this,FlyingButton),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(bs.content.cloneNode(!0)),en.$button=en._shadowRoot.querySelector(".menu-button"),en.$handle=en._shadowRoot.querySelector(".handle"),en.$overall=en._shadowRoot.querySelector(".overall"),en.$img=en._shadowRoot.querySelector("img"),en.$menu=en._shadowRoot.querySelector(".menu"),en.$elements=en.$menu.lastElementChild.assignedElements(),en}return _createClass(FlyingButton,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"title":var rn=this.getAttribute("shortcut");this.$button.setAttribute("title","".concat(nn," [").concat(rn,"]"));break;case"pressed":nn?this.$overall.classList.add("pressed"):this.$overall.classList.remove("pressed");break;case"opened":nn?this.$menu.classList.add("open"):this.$menu.classList.remove("open");break;case"disabled":nn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(en))}}},{key:"connectedCallback",value:function connectedCallback(){var en=this;this.activeSlot=this.shadowRoot.querySelector("slot").assignedElements()[0],this.$img.setAttribute("src",this.activeSlot.getAttribute("src"));var tn=function onClickHandler(tn){switch(tn.stopPropagation(),tn.target.nodeName){case"SE-FLYINGBUTTON":en.pressed?en.setAttribute("opened","opened"):(en.activeSlot.click(),en.setAttribute("pressed","pressed"));break;case"SE-BUTTON":en.$img.setAttribute("src",tn.target.getAttribute("src")),en.activeSlot=tn.target,en.setAttribute("pressed","pressed"),en.$menu.classList.remove("open");break;case"DIV":en.opened?en.removeAttribute("opened"):en.setAttribute("opened","opened");break;default:console.error("unkonw nodeName for:",tn.target,tn.target.className)}};this.addEventListener("click",tn),this.$handle.addEventListener("click",tn)}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(en){this.setAttribute("title",en)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(en){en?this.setAttribute("pressed","true"):(this.removeAttribute("pressed",""),this.removeAttribute("opened"))}},{key:"opened",get:function get(){return this.hasAttribute("opened")},set:function set(en){en?this.setAttribute("opened","opened"):this.removeAttribute("opened")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(en){en?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}}],[{key:"observedAttributes",get:function get(){return["title","pressed","disabled","opened"]}}]),FlyingButton}(_wrapNativeSuper(HTMLElement));customElements.define("se-flyingbutton",ws);var xs=function fill(en){for(var tn=toObject(this),nn=toLength(tn.length),rn=arguments.length,an=toAbsoluteIndex(rn>1?arguments[1]:void 0,nn),sn=rn>2?arguments[2]:void 0,cn=void 0===sn?nn:toAbsoluteIndex(sn,nn);cn>an;)tn[an++]=en;return tn};_export({target:"Array",proto:!0},{fill:xs}),addToUnscopables("fill");var Ss=vi.forEach,Cs=arrayMethodIsStrict("forEach"),ks=arrayMethodUsesToLength("forEach"),Bs=Cs&&ks?[].forEach:function forEach(en){return Ss(this,en,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Bs},{forEach:Bs});var Es=cn.f,createMethod$4=function(en){return function(tn){for(var nn,an=toIndexedObject(tn),sn=ki(an),cn=sn.length,un=0,dn=[];cn>un;)nn=sn[un++],rn&&!Es.call(an,nn)||dn.push(en?[nn,an[nn]]:an[nn]);return dn}},Ps={entries:createMethod$4(!0),values:createMethod$4(!1)},Ls=Ps.entries;_export({target:"Object",stat:!0},{entries:function entries(en){return Ls(en)}});var Ts=nn.Promise,redefineAll=function(en,tn,nn){for(var rn in tn)qn(en,rn,tn[rn],nn);return en},anInstance=function(en,tn,nn){if(!(en instanceof tn))throw TypeError("Incorrect "+(nn?nn+" ":"")+"invocation");return en},Ns=wellKnownSymbol("iterator"),Is=Array.prototype,isArrayIteratorMethod=function(en){return void 0!==en&&(Ra.Array===en||Is[Ns]===en)},Os=wellKnownSymbol("iterator"),getIteratorMethod=function(en){if(null!=en)return en[Os]||en["@@iterator"]||Ra[So(en)]},iteratorClose=function(en){var tn=en.return;if(void 0!==tn)return anObject(tn.call(en)).value},Result=function(en,tn){this.stopped=en,this.result=tn},iterate=function(en,tn,nn){var rn,an,sn,cn,un,dn,pn,hn=nn&&nn.that,gn=!(!nn||!nn.AS_ENTRIES),An=!(!nn||!nn.IS_ITERATOR),mn=!(!nn||!nn.INTERRUPTED),vn=functionBindContext(tn,hn,1+gn+mn),stop=function(en){return rn&&iteratorClose(rn),new Result(!0,en)},callFn=function(en){return gn?(anObject(en),mn?vn(en[0],en[1],stop):vn(en[0],en[1])):mn?vn(en,stop):vn(en)};if(An)rn=en;else{if("function"!=typeof(an=getIteratorMethod(en)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(an)){for(sn=0,cn=toLength(en.length);cn>sn;sn++)if((un=callFn(en[sn]))&&un instanceof Result)return un;return new Result(!1)}rn=an.call(en)}for(dn=rn.next;!(pn=dn.call(rn)).done;){try{un=callFn(pn.value)}catch(en){throw iteratorClose(rn),en}if("object"==typeof un&&un&&un instanceof Result)return un}return new Result(!1)},Fs=wellKnownSymbol("iterator"),Us=!1;try{var Ms=0,Rs={next:function(){return{done:!!Ms++}},return:function(){Us=!0}};Rs[Fs]=function(){return this},Array.from(Rs,(function(){throw 2}))}catch(en){}var Ds,js,Qs,checkCorrectnessOfIteration=function(en,tn){if(!tn&&!Us)return!1;var nn=!1;try{var rn={};rn[Fs]=function(){return{next:function(){return{done:nn=!0}}}},en(rn)}catch(en){}return nn},Hs=/(iphone|ipod|ipad).*applewebkit/i.test(oi),Gs="process"==classofRaw(nn.process),Vs=nn.location,zs=nn.setImmediate,Ks=nn.clearImmediate,qs=nn.process,$s=nn.MessageChannel,Ws=nn.Dispatch,Xs=0,Ys={},Js="onreadystatechange",run=function(en){if(Ys.hasOwnProperty(en)){var tn=Ys[en];delete Ys[en],tn()}},runner=function(en){return function(){run(en)}},listener=function(en){run(en.data)},post=function(en){nn.postMessage(en+"",Vs.protocol+"//"+Vs.host)};zs&&Ks||(zs=function setImmediate(en){for(var tn=[],nn=1;arguments.length>nn;)tn.push(arguments[nn++]);return Ys[++Xs]=function(){("function"==typeof en?en:Function(en)).apply(void 0,tn)},Ds(Xs),Xs},Ks=function clearImmediate(en){delete Ys[en]},Gs?Ds=function(en){qs.nextTick(runner(en))}:Ws&&Ws.now?Ds=function(en){Ws.now(runner(en))}:$s&&!Hs?(Qs=(js=new $s).port2,js.port1.onmessage=listener,Ds=functionBindContext(Qs.postMessage,Qs,1)):nn.addEventListener&&"function"==typeof postMessage&&!nn.importScripts&&Vs&&"file:"!==Vs.protocol&&!fails(post)?(Ds=post,nn.addEventListener("message",listener,!1)):Ds=Js in documentCreateElement("script")?function(en){Ei.appendChild(documentCreateElement("script")).onreadystatechange=function(){Ei.removeChild(this),run(en)}}:function(en){setTimeout(runner(en),0)});var Zs,el,tl,nl,rl,il,ol,al,sl={set:zs,clear:Ks},ll=/web0s(?!.*chrome)/i.test(oi),cl=yn.f,ul=sl.set,dl=nn.MutationObserver||nn.WebKitMutationObserver,pl=nn.document,hl=nn.process,gl=nn.Promise,fl=cl(nn,"queueMicrotask"),Al=fl&&fl.value;Al||(Zs=function(){var en,tn;for(Gs&&(en=hl.domain)&&en.exit();el;){tn=el.fn,el=el.next;try{tn()}catch(en){throw el?nl():tl=void 0,en}}tl=void 0,en&&en.enter()},Hs||Gs||ll||!dl||!pl?gl&&gl.resolve?(ol=gl.resolve(void 0),al=ol.then,nl=function(){al.call(ol,Zs)}):nl=Gs?function(){hl.nextTick(Zs)}:function(){ul.call(nn,Zs)}:(rl=!0,il=pl.createTextNode(""),new dl(Zs).observe(il,{characterData:!0}),nl=function(){il.data=rl=!rl}));var ml,vl,yl,_l,wl=Al||function(en){var tn={fn:en,next:void 0};tl&&(tl.next=tn),el||(el=tn,nl()),tl=tn},PromiseCapability=function(en){var tn,nn;this.promise=new en((function(en,rn){if(void 0!==tn||void 0!==nn)throw TypeError("Bad Promise constructor");tn=en,nn=rn})),this.resolve=aFunction$1(tn),this.reject=aFunction$1(nn)},xl={f:function(en){return new PromiseCapability(en)}},promiseResolve=function(en,tn){if(anObject(en),isObject(tn)&&tn.constructor===en)return tn;var nn=xl.f(en);return(0,nn.resolve)(tn),nn.promise},perform=function(en){try{return{error:!1,value:en()}}catch(en){return{error:!0,value:en}}},Sl=sl.set,Cl=wellKnownSymbol("species"),kl="Promise",Bl=Kn.get,El=Kn.set,Pl=Kn.getterFor(kl),Ll=Ts,Tl=nn.TypeError,Nl=nn.document,Il=nn.process,Ol=getBuiltIn("fetch"),Fl=xl.f,Ul=Fl,Ml=!!(Nl&&Nl.createEvent&&nn.dispatchEvent),Rl="function"==typeof PromiseRejectionEvent,Dl="unhandledrejection",jl=Xr(kl,(function(){if(!(Ln(Ll)!==String(Ll))){if(66===ui)return!0;if(!Gs&&!Rl)return!0}if(ui>=51&&/native code/.test(Ll))return!1;var en=Ll.resolve(1),FakePromise=function(en){en((function(){}),(function(){}))};return(en.constructor={})[Cl]=FakePromise,!(en.then((function(){}))instanceof FakePromise)})),Ql=jl||!checkCorrectnessOfIteration((function(en){Ll.all(en).catch((function(){}))})),isThenable=function(en){var tn;return!(!isObject(en)||"function"!=typeof(tn=en.then))&&tn},notify$1=function(en,tn){if(!en.notified){en.notified=!0;var nn=en.reactions;wl((function(){for(var rn=en.value,an=1==en.state,sn=0;nn.length>sn;){var cn,un,dn,pn=nn[sn++],hn=an?pn.ok:pn.fail,gn=pn.resolve,An=pn.reject,mn=pn.domain;try{hn?(an||(2===en.rejection&&onHandleUnhandled(en),en.rejection=1),!0===hn?cn=rn:(mn&&mn.enter(),cn=hn(rn),mn&&(mn.exit(),dn=!0)),cn===pn.promise?An(Tl("Promise-chain cycle")):(un=isThenable(cn))?un.call(cn,gn,An):gn(cn)):An(rn)}catch(en){mn&&!dn&&mn.exit(),An(en)}}en.reactions=[],en.notified=!1,tn&&!en.rejection&&onUnhandled(en)}))}},dispatchEvent=function(en,tn,rn){var an,sn;Ml?((an=Nl.createEvent("Event")).promise=tn,an.reason=rn,an.initEvent(en,!1,!0),nn.dispatchEvent(an)):an={promise:tn,reason:rn},!Rl&&(sn=nn["on"+en])?sn(an):en===Dl&&function(en,tn){var rn=nn.console;rn&&rn.error&&(1===arguments.length?rn.error(en):rn.error(en,tn))}("Unhandled promise rejection",rn)},onUnhandled=function(en){Sl.call(nn,(function(){var tn,nn=en.facade,rn=en.value;if(isUnhandled(en)&&(tn=perform((function(){Gs?Il.emit("unhandledRejection",rn,nn):dispatchEvent(Dl,nn,rn)})),en.rejection=Gs||isUnhandled(en)?2:1,tn.error))throw tn.value}))},isUnhandled=function(en){return 1!==en.rejection&&!en.parent},onHandleUnhandled=function(en){Sl.call(nn,(function(){var tn=en.facade;Gs?Il.emit("rejectionHandled",tn):dispatchEvent("rejectionhandled",tn,en.value)}))},bind=function(en,tn,nn){return function(rn){en(tn,rn,nn)}},internalReject=function(en,tn,nn){en.done||(en.done=!0,nn&&(en=nn),en.value=tn,en.state=2,notify$1(en,!0))},internalResolve=function(en,tn,nn){if(!en.done){en.done=!0,nn&&(en=nn);try{if(en.facade===tn)throw Tl("Promise can't be resolved itself");var rn=isThenable(tn);rn?wl((function(){var nn={done:!1};try{rn.call(tn,bind(internalResolve,nn,en),bind(internalReject,nn,en))}catch(tn){internalReject(nn,tn,en)}})):(en.value=tn,en.state=1,notify$1(en,!1))}catch(tn){internalReject({done:!1},tn,en)}}};for(var Hl in jl&&(Ll=function Promise(en){anInstance(this,Ll,kl),aFunction$1(en),ml.call(this);var tn=Bl(this);try{en(bind(internalResolve,tn),bind(internalReject,tn))}catch(en){internalReject(tn,en)}},(ml=function Promise(en){El(this,{type:kl,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(Ll.prototype,{then:function then(en,tn){var nn=Pl(this),rn=Fl(speciesConstructor(this,Ll));return rn.ok="function"!=typeof en||en,rn.fail="function"==typeof tn&&tn,rn.domain=Gs?Il.domain:void 0,nn.parent=!0,nn.reactions.push(rn),0!=nn.state&¬ify$1(nn,!1),rn.promise},catch:function(en){return this.then(void 0,en)}}),vl=function(){var en=new ml,tn=Bl(en);this.promise=en,this.resolve=bind(internalResolve,tn),this.reject=bind(internalReject,tn)},xl.f=Fl=function(en){return en===Ll||en===yl?new vl(en):Ul(en)},"function"==typeof Ts&&(_l=Ts.prototype.then,qn(Ts.prototype,"then",(function then(en,tn){var nn=this;return new Ll((function(en,tn){_l.call(nn,en,tn)})).then(en,tn)}),{unsafe:!0}),"function"==typeof Ol&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(en){return promiseResolve(Ll,Ol.apply(nn,arguments))}}))),_export({global:!0,wrap:!0,forced:jl},{Promise:Ll}),setToStringTag(Ll,kl,!1),setSpecies(kl),yl=getBuiltIn(kl),_export({target:kl,stat:!0,forced:jl},{reject:function reject(en){var tn=Fl(this);return tn.reject.call(void 0,en),tn.promise}}),_export({target:kl,stat:!0,forced:jl},{resolve:function resolve(en){return promiseResolve(this,en)}}),_export({target:kl,stat:!0,forced:Ql},{all:function all(en){var tn=this,nn=Fl(tn),rn=nn.resolve,an=nn.reject,sn=perform((function(){var nn=aFunction$1(tn.resolve),sn=[],cn=0,un=1;iterate(en,(function(en){var dn=cn++,pn=!1;sn.push(void 0),un++,nn.call(tn,en).then((function(en){pn||(pn=!0,sn[dn]=en,--un||rn(sn))}),an)})),--un||rn(sn)}));return sn.error&&an(sn.value),nn.promise},race:function race(en){var tn=this,nn=Fl(tn),rn=nn.reject,an=perform((function(){var an=aFunction$1(tn.resolve);iterate(en,(function(en){an.call(tn,en).then(nn.resolve,rn)}))}));return an.error&&rn(an.value),nn.promise}}),ds){var Gl=nn[Hl],Vl=Gl&&Gl.prototype;if(Vl&&Vl.forEach!==Bs)try{xn(Vl,"forEach",Bs)}catch(en){Vl.forEach=Bs}}var zl=Qr.f,Kl={}.toString,ql="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$l={f:function getOwnPropertyNames(en){return ql&&"[object Window]"==Kl.call(en)?function(en){try{return zl(en)}catch(en){return ql.slice()}}(en):zl(toIndexedObject(en))}},Wl={f:wellKnownSymbol},Xl=wn.f,defineWellKnownSymbol=function(en){var tn=$n.Symbol||($n.Symbol={});has(tn,en)||Xl(tn,en,{value:Wl.f(en)})},Yl=vi.forEach,Jl=sharedKey("hidden"),Zl="Symbol",ec=wellKnownSymbol("toPrimitive"),tc=Kn.set,nc=Kn.getterFor(Zl),rc=Object.prototype,ic=nn.Symbol,oc=getBuiltIn("JSON","stringify"),ac=yn.f,sc=wn.f,uc=$l.f,dc=cn.f,pc=In("symbols"),hc=In("op-symbols"),gc=In("string-to-symbol-registry"),fc=In("symbol-to-string-registry"),Ac=In("wks"),mc=nn.QObject,vc=!mc||!mc.prototype||!mc.prototype.findChild,yc=rn&&fails((function(){return 7!=Li(sc({},"a",{get:function(){return sc(this,"a",{value:7}).a}})).a}))?function(en,tn,nn){var rn=ac(rc,tn);rn&&delete rc[tn],sc(en,tn,nn),rn&&en!==rc&&sc(rc,tn,rn)}:sc,wrap=function(en,tn){var nn=pc[en]=Li(ic.prototype);return tc(nn,{type:Zl,tag:en,description:tn}),rn||(nn.description=tn),nn},_c=ei?function(en){return"symbol"==typeof en}:function(en){return Object(en)instanceof ic},bc=function defineProperty(en,tn,nn){en===rc&&bc(hc,tn,nn),anObject(en);var rn=toPrimitive(tn,!0);return anObject(nn),has(pc,rn)?(nn.enumerable?(has(en,Jl)&&en[Jl][rn]&&(en[Jl][rn]=!1),nn=Li(nn,{enumerable:createPropertyDescriptor(0,!1)})):(has(en,Jl)||sc(en,Jl,createPropertyDescriptor(1,{})),en[Jl][rn]=!0),yc(en,rn,nn)):sc(en,rn,nn)},wc=function defineProperties(en,tn){anObject(en);var nn=toIndexedObject(tn),an=ki(nn).concat(kc(nn));return Yl(an,(function(tn){rn&&!xc.call(nn,tn)||bc(en,tn,nn[tn])})),en},xc=function propertyIsEnumerable(en){var tn=toPrimitive(en,!0),nn=dc.call(this,tn);return!(this===rc&&has(pc,tn)&&!has(hc,tn))&&(!(nn||!has(this,tn)||!has(pc,tn)||has(this,Jl)&&this[Jl][tn])||nn)},Sc=function getOwnPropertyDescriptor(en,tn){var nn=toIndexedObject(en),rn=toPrimitive(tn,!0);if(nn!==rc||!has(pc,rn)||has(hc,rn)){var an=ac(nn,rn);return!an||!has(pc,rn)||has(nn,Jl)&&nn[Jl][rn]||(an.enumerable=!0),an}},Cc=function getOwnPropertyNames(en){var tn=uc(toIndexedObject(en)),nn=[];return Yl(tn,(function(en){has(pc,en)||has(Mn,en)||nn.push(en)})),nn},kc=function getOwnPropertySymbols(en){var tn=en===rc,nn=uc(tn?hc:toIndexedObject(en)),rn=[];return Yl(nn,(function(en){!has(pc,en)||tn&&!has(rc,en)||rn.push(pc[en])})),rn};if(Zr||(qn((ic=function Symbol(){if(this instanceof ic)throw TypeError("Symbol is not a constructor");var en=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,tn=uid(en),setter=function(en){this===rc&&setter.call(hc,en),has(this,Jl)&&has(this[Jl],tn)&&(this[Jl][tn]=!1),yc(this,tn,createPropertyDescriptor(1,en))};return rn&&vc&&yc(rc,tn,{configurable:!0,set:setter}),wrap(tn,en)}).prototype,"toString",(function toString(){return nc(this).tag})),qn(ic,"withoutSetter",(function(en){return wrap(uid(en),en)})),cn.f=xc,wn.f=bc,yn.f=Sc,Qr.f=$l.f=Cc,Hr.f=kc,Wl.f=function(en){return wrap(wellKnownSymbol(en),en)},rn&&(sc(ic.prototype,"description",{configurable:!0,get:function description(){return nc(this).description}}),qn(rc,"propertyIsEnumerable",xc,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!Zr,sham:!Zr},{Symbol:ic}),Yl(ki(Ac),(function(en){defineWellKnownSymbol(en)})),_export({target:Zl,stat:!0,forced:!Zr},{for:function(en){var tn=String(en);if(has(gc,tn))return gc[tn];var nn=ic(tn);return gc[tn]=nn,fc[nn]=tn,nn},keyFor:function keyFor(en){if(!_c(en))throw TypeError(en+" is not a symbol");if(has(fc,en))return fc[en]},useSetter:function(){vc=!0},useSimple:function(){vc=!1}}),_export({target:"Object",stat:!0,forced:!Zr,sham:!rn},{create:function create(en,tn){return void 0===tn?Li(en):wc(Li(en),tn)},defineProperty:bc,defineProperties:wc,getOwnPropertyDescriptor:Sc}),_export({target:"Object",stat:!0,forced:!Zr},{getOwnPropertyNames:Cc,getOwnPropertySymbols:kc}),_export({target:"Object",stat:!0,forced:fails((function(){Hr.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(en){return Hr.f(toObject(en))}}),oc){var Bc=!Zr||fails((function(){var en=ic();return"[null]"!=oc([en])||"{}"!=oc({a:en})||"{}"!=oc(Object(en))}));_export({target:"JSON",stat:!0,forced:Bc},{stringify:function stringify(en,tn,nn){for(var rn,an=[en],sn=1;arguments.length>sn;)an.push(arguments[sn++]);if(rn=tn,(isObject(tn)||void 0!==en)&&!_c(en))return Jr(tn)||(tn=function(en,tn){if("function"==typeof rn&&(tn=rn.call(this,en,tn)),!_c(tn))return tn}),an[1]=tn,oc.apply(null,an)}})}ic.prototype[ec]||xn(ic.prototype,ec,ic.prototype.valueOf),setToStringTag(ic,Zl),Mn[Jl]=!0;var Ec=wn.f,Pc=nn.Symbol;if(rn&&"function"==typeof Pc&&(!("description"in Pc.prototype)||void 0!==Pc().description)){var Lc={},Tc=function Symbol(){var en=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),tn=this instanceof Tc?new Pc(en):void 0===en?Pc():Pc(en);return""===en&&(Lc[tn]=!0),tn};copyConstructorProperties(Tc,Pc);var Nc=Tc.prototype=Pc.prototype;Nc.constructor=Tc;var Ic=Nc.toString,Oc="Symbol(test)"==String(Pc("test")),Fc=/^Symbol\((.*)\)[^)]+$/;Ec(Nc,"description",{configurable:!0,get:function description(){var en=isObject(this)?this.valueOf():this,tn=Ic.call(en);if(has(Lc,en))return"";var nn=Oc?tn.slice(7,-1):tn.replace(Fc,"$1");return""===nn?void 0:nn}}),_export({global:!0,forced:!0},{Symbol:Tc})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag"),setToStringTag(nn.JSON,"JSON",!0),setToStringTag(Math,"Math",!0);var Uc=fails((function(){Ha(1)}));_export({target:"Object",stat:!0,forced:Uc,sham:!Da},{getPrototypeOf:function getPrototypeOf(en){return Ha(toObject(en))}}),_export({target:"Object",stat:!0},{setPrototypeOf:Ro});var Mc=_a.charAt,Rc="String Iterator",Dc=Kn.set,jc=Kn.getterFor(Rc);defineIterator(String,"String",(function(en){Dc(this,{type:Rc,string:String(en),index:0})}),(function next(){var en,tn=jc(this),nn=tn.string,rn=tn.index;return rn>=nn.length?{value:void 0,done:!0}:(en=Mc(nn,rn),tn.index+=en.length,{value:en,done:!1})}));var Qc=createCommonjsModule((function(en){var tn=function(en){var tn,nn=Object.prototype,rn=nn.hasOwnProperty,an="function"==typeof Symbol?Symbol:{},sn=an.iterator||"@@iterator",cn=an.asyncIterator||"@@asyncIterator",un=an.toStringTag||"@@toStringTag";function define(en,tn,nn){return Object.defineProperty(en,tn,{value:nn,enumerable:!0,configurable:!0,writable:!0}),en[tn]}try{define({},"")}catch(en){define=function define(en,tn,nn){return en[tn]=nn}}function wrap(en,tn,nn,rn){var an=tn&&tn.prototype instanceof Generator?tn:Generator,sn=Object.create(an.prototype),cn=new Context(rn||[]);return sn._invoke=function makeInvokeMethod(en,tn,nn){var rn=dn;return function invoke(an,sn){if(rn===hn)throw new Error("Generator is already running");if(rn===gn){if("throw"===an)throw sn;return doneResult()}for(nn.method=an,nn.arg=sn;;){var cn=nn.delegate;if(cn){var un=maybeInvokeDelegate(cn,nn);if(un){if(un===An)continue;return un}}if("next"===nn.method)nn.sent=nn._sent=nn.arg;else if("throw"===nn.method){if(rn===dn)throw rn=gn,nn.arg;nn.dispatchException(nn.arg)}else"return"===nn.method&&nn.abrupt("return",nn.arg);rn=hn;var mn=tryCatch(en,tn,nn);if("normal"===mn.type){if(rn=nn.done?gn:pn,mn.arg===An)continue;return{value:mn.arg,done:nn.done}}"throw"===mn.type&&(rn=gn,nn.method="throw",nn.arg=mn.arg)}}}(en,nn,cn),sn}function tryCatch(en,tn,nn){try{return{type:"normal",arg:en.call(tn,nn)}}catch(en){return{type:"throw",arg:en}}}en.wrap=wrap;var dn="suspendedStart",pn="suspendedYield",hn="executing",gn="completed",An={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var mn={};mn[sn]=function(){return this};var vn=Object.getPrototypeOf,yn=vn&&vn(vn(values([])));yn&&yn!==nn&&rn.call(yn,sn)&&(mn=yn);var _n=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(mn);function defineIteratorMethods(en){["next","throw","return"].forEach((function(tn){define(en,tn,(function(en){return this._invoke(tn,en)}))}))}function AsyncIterator(en,tn){var nn;this._invoke=function enqueue(an,sn){function callInvokeWithMethodAndArg(){return new tn((function(nn,cn){!function invoke(nn,an,sn,cn){var un=tryCatch(en[nn],en,an);if("throw"!==un.type){var dn=un.arg,pn=dn.value;return pn&&"object"===_typeof(pn)&&rn.call(pn,"__await")?tn.resolve(pn.__await).then((function(en){invoke("next",en,sn,cn)}),(function(en){invoke("throw",en,sn,cn)})):tn.resolve(pn).then((function(en){dn.value=en,sn(dn)}),(function(en){return invoke("throw",en,sn,cn)}))}cn(un.arg)}(an,sn,nn,cn)}))}return nn=nn?nn.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(en,nn){var rn=en.iterator[nn.method];if(rn===tn){if(nn.delegate=null,"throw"===nn.method){if(en.iterator.return&&(nn.method="return",nn.arg=tn,maybeInvokeDelegate(en,nn),"throw"===nn.method))return An;nn.method="throw",nn.arg=new TypeError("The iterator does not provide a 'throw' method")}return An}var an=tryCatch(rn,en.iterator,nn.arg);if("throw"===an.type)return nn.method="throw",nn.arg=an.arg,nn.delegate=null,An;var sn=an.arg;return sn?sn.done?(nn[en.resultName]=sn.value,nn.next=en.nextLoc,"return"!==nn.method&&(nn.method="next",nn.arg=tn),nn.delegate=null,An):sn:(nn.method="throw",nn.arg=new TypeError("iterator result is not an object"),nn.delegate=null,An)}function pushTryEntry(en){var tn={tryLoc:en[0]};1 in en&&(tn.catchLoc=en[1]),2 in en&&(tn.finallyLoc=en[2],tn.afterLoc=en[3]),this.tryEntries.push(tn)}function resetTryEntry(en){var tn=en.completion||{};tn.type="normal",delete tn.arg,en.completion=tn}function Context(en){this.tryEntries=[{tryLoc:"root"}],en.forEach(pushTryEntry,this),this.reset(!0)}function values(en){if(en){var nn=en[sn];if(nn)return nn.call(en);if("function"==typeof en.next)return en;if(!isNaN(en.length)){var an=-1,cn=function next(){for(;++an<en.length;)if(rn.call(en,an))return next.value=en[an],next.done=!1,next;return next.value=tn,next.done=!0,next};return cn.next=cn}}return{next:doneResult}}function doneResult(){return{value:tn,done:!0}}return GeneratorFunction.prototype=_n.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,un,"GeneratorFunction"),en.isGeneratorFunction=function(en){var tn="function"==typeof en&&en.constructor;return!!tn&&(tn===GeneratorFunction||"GeneratorFunction"===(tn.displayName||tn.name))},en.mark=function(en){return Object.setPrototypeOf?Object.setPrototypeOf(en,GeneratorFunctionPrototype):(en.__proto__=GeneratorFunctionPrototype,define(en,un,"GeneratorFunction")),en.prototype=Object.create(_n),en},en.awrap=function(en){return{__await:en}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[cn]=function(){return this},en.AsyncIterator=AsyncIterator,en.async=function(tn,nn,rn,an,sn){void 0===sn&&(sn=Promise);var cn=new AsyncIterator(wrap(tn,nn,rn,an),sn);return en.isGeneratorFunction(nn)?cn:cn.next().then((function(en){return en.done?en.value:cn.next()}))},defineIteratorMethods(_n),define(_n,un,"Generator"),_n[sn]=function(){return this},_n.toString=function(){return"[object Generator]"},en.keys=function(en){var tn=[];for(var nn in en)tn.push(nn);return tn.reverse(),function next(){for(;tn.length;){var nn=tn.pop();if(nn in en)return next.value=nn,next.done=!1,next}return next.done=!0,next}},en.values=values,Context.prototype={constructor:Context,reset:function reset(en){if(this.prev=0,this.next=0,this.sent=this._sent=tn,this.done=!1,this.delegate=null,this.method="next",this.arg=tn,this.tryEntries.forEach(resetTryEntry),!en)for(var nn in this)"t"===nn.charAt(0)&&rn.call(this,nn)&&!isNaN(+nn.slice(1))&&(this[nn]=tn)},stop:function stop(){this.done=!0;var en=this.tryEntries[0].completion;if("throw"===en.type)throw en.arg;return this.rval},dispatchException:function dispatchException(en){if(this.done)throw en;var nn=this;function handle(rn,an){return cn.type="throw",cn.arg=en,nn.next=rn,an&&(nn.method="next",nn.arg=tn),!!an}for(var an=this.tryEntries.length-1;an>=0;--an){var sn=this.tryEntries[an],cn=sn.completion;if("root"===sn.tryLoc)return handle("end");if(sn.tryLoc<=this.prev){var un=rn.call(sn,"catchLoc"),dn=rn.call(sn,"finallyLoc");if(un&&dn){if(this.prev<sn.catchLoc)return handle(sn.catchLoc,!0);if(this.prev<sn.finallyLoc)return handle(sn.finallyLoc)}else if(un){if(this.prev<sn.catchLoc)return handle(sn.catchLoc,!0)}else{if(!dn)throw new Error("try statement without catch or finally");if(this.prev<sn.finallyLoc)return handle(sn.finallyLoc)}}}},abrupt:function abrupt(en,tn){for(var nn=this.tryEntries.length-1;nn>=0;--nn){var an=this.tryEntries[nn];if(an.tryLoc<=this.prev&&rn.call(an,"finallyLoc")&&this.prev<an.finallyLoc){var sn=an;break}}sn&&("break"===en||"continue"===en)&&sn.tryLoc<=tn&&tn<=sn.finallyLoc&&(sn=null);var cn=sn?sn.completion:{};return cn.type=en,cn.arg=tn,sn?(this.method="next",this.next=sn.finallyLoc,An):this.complete(cn)},complete:function complete(en,tn){if("throw"===en.type)throw en.arg;return"break"===en.type||"continue"===en.type?this.next=en.arg:"return"===en.type?(this.rval=this.arg=en.arg,this.method="return",this.next="end"):"normal"===en.type&&tn&&(this.next=tn),An},finish:function finish(en){for(var tn=this.tryEntries.length-1;tn>=0;--tn){var nn=this.tryEntries[tn];if(nn.finallyLoc===en)return this.complete(nn.completion,nn.afterLoc),resetTryEntry(nn),An}},catch:function _catch(en){for(var tn=this.tryEntries.length-1;tn>=0;--tn){var nn=this.tryEntries[tn];if(nn.tryLoc===en){var rn=nn.completion;if("throw"===rn.type){var an=rn.arg;resetTryEntry(nn)}return an}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(en,nn,rn){return this.delegate={iterator:values(en),resultName:nn,nextLoc:rn},"next"===this.method&&(this.arg=tn),An}},en}(en.exports);try{regeneratorRuntime=tn}catch(en){Function("r","regeneratorRuntime = r")(tn)}})),Hc=document.createElement("template");Hc.innerHTML='\n <style>\n :host {\n position:relative;\n }\n .menu-button:hover, se-button:hover, .menu-item:hover\n {\n background-color: var(--icon-bg-color-hover);\n }\n img {\n border: none;\n width: 24px;\n height: 24px;\n }\n .overall.pressed .button-icon,\n .overall.pressed,\n .menu-item.pressed {\n background-color: var(--icon-bg-color-hover) !important;\n }\n .overall.pressed .menu-button {\n background-color: var(--icon-bg-color-hover) !important;\n }\n .disabled {\n opacity: 0.3;\n cursor: default;\n }\n .menu-button {\n height: 24px;\n width: 24px;\n margin: 2px 2px 4px;\n padding: 3px;\n background-color: var(--icon-bg-color);\n cursor: pointer;\n position: relative;\n border-radius: 3px;\n overflow: hidden;\n }\n .handle {\n height: 8px;\n width: 8px;\n background-image: url(./images/handle.svg);\n position:absolute;\n bottom: 0px;\n right: 0px;\n }\n .button-icon {\n }\n .menu {\n position: absolute;\n top:0px;\n left:204px;\n background: none !important;\n display:none;\n }\n .image-lib {\n position: absolute;\n top: 0px;\n left:34px;\n background: #E8E8E8;\n display: none;\n flex-wrap: wrap;\n flex-direction: row;\n width: 170px;\n }\n .menu-item {\n line-height: 1em;\n padding: 0.5em;\n border: 1px solid #B0B0B0;\n background: #E8E8E8;\n margin-bottom: -1px;\n white-space: nowrap;\n }\n .open-lib {\n display: inline-flex;\n }\n .open {\n display: block;\n }\n .overall {\n background: none !important;\n }\n </style>\n\n <div class="overall">\n <div class="menu-button">\n <img class="button-icon" src="./images/logo.svg" alt="icon">\n <div class="handle"></div>\n </div>\n <div class="image-lib"">\n <se-button></se-button>\n </div>\n <div class="menu">\n <div class="menu-item">menu</div>\n </div>\n </div>\n\n';var Gc=function(en){_inherits(ExplorerButton,en);var tn,nn,rn=_createSuper(ExplorerButton);function ExplorerButton(){var en;return _classCallCheck(this,ExplorerButton),(en=rn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(Hc.content.cloneNode(!0)),en.$button=en._shadowRoot.querySelector(".menu-button"),en.$overall=en._shadowRoot.querySelector(".overall"),en.$img=en._shadowRoot.querySelector(".menu-button img"),en.$menu=en._shadowRoot.querySelector(".menu"),en.$handle=en._shadowRoot.querySelector(".handle"),en.$lib=en._shadowRoot.querySelector(".image-lib"),en.files=[],en.request=new XMLHttpRequest,en}return _createClass(ExplorerButton,[{key:"attributeChangedCallback",value:(nn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en,tn,nn){var rn,an,sn,cn;return regeneratorRuntime.wrap((function _callee$(un){for(;;)switch(un.prev=un.next){case 0:if(tn!==nn){un.next=2;break}return un.abrupt("return");case 2:un.t0=en,un.next="title"===un.t0?5:"pressed"===un.t0?8:"disabled"===un.t0?10:"lib"===un.t0?12:"src"===un.t0?29:31;break;case 5:return rn=this.getAttribute("shortcut"),this.$button.setAttribute("title","".concat(nn," [").concat(rn,"]")),un.abrupt("break",33);case 8:return nn?this.$overall.classList.add("pressed"):this.$overall.classList.remove("pressed"),un.abrupt("break",33);case 10:return nn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled"),un.abrupt("break",33);case 12:return un.prev=12,un.next=15,fetch("".concat(nn,"index.json"));case 15:return an=un.sent,un.next=18,an.json();case 18:return sn=un.sent,cn=sn.lib,this.$menu.innerHTML=cn.map((function(en,tn){return'<div data-menu="'.concat(en,'" class="menu-item ').concat(0===tn?"pressed":"",' ">').concat(en,"</div>")})).join(""),un.next=23,this.updateLib(cn[0]);case 23:un.next=28;break;case 25:un.prev=25,un.t1=un.catch(12),console.error(un.t1);case 28:return un.abrupt("break",33);case 29:return this.$img.setAttribute("src",nn),un.abrupt("break",33);case 31:return console.error("unknown attribute: ".concat(en)),un.abrupt("break",33);case 33:case"end":return un.stop()}}),_callee,this,[[12,25]])}))),function attributeChangedCallback(en,tn,rn){return nn.apply(this,arguments)})},{key:"connectedCallback",value:function connectedCallback(){var en=this,tn=function onClickHandler(tn){switch(tn.stopPropagation(),tn.target.nodeName){case"SE-EXPLORERBUTTON":en.$menu.classList.add("open"),en.$lib.classList.add("open-lib");break;case"SE-BUTTON":en.currentAction=tn.target,en.$img.setAttribute("src",en.currentAction.getAttribute("src")),en.dataset.draw=en.data[en.currentAction.dataset.shape],en._shadowRoot.querySelectorAll(".image-lib [pressed]").forEach((function(en){en.pressed=!1})),en.currentAction.setAttribute("pressed","pressed"),en.$menu.classList.remove("open"),en.$lib.classList.remove("open-lib");break;case"DIV":"handle"===tn.target.classList[0]?(en.$menu.classList.toggle("open"),en.$lib.classList.toggle("open-lib")):(en._shadowRoot.querySelectorAll(".menu > .pressed").forEach((function(en){en.classList.remove("pressed")})),tn.target.classList.add("pressed"),en.updateLib(tn.target.dataset.menu));break;default:console.error("unknown nodeName for:",tn.target,tn.target.className)}};this.addEventListener("click",tn),this.$menu.addEventListener("click",tn),this.$lib.addEventListener("click",tn),this.$handle.addEventListener("click",tn)}},{key:"updateLib",value:(tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(en){var tn,nn,rn,an,sn,cn,un,dn,pn;return regeneratorRuntime.wrap((function _callee2$(hn){for(;;)switch(hn.prev=hn.next){case 0:return tn=this.getAttribute("lib"),hn.prev=1,hn.next=4,fetch("".concat(tn).concat(en,".json"));case 4:return rn=hn.sent,hn.next=7,rn.json();case 7:an=hn.sent,this.data=an.data,sn=null!==(nn=an.size)&&void 0!==nn?nn:300,cn=an.fill?"#333":"none",dn=[-(un=.05*sn),-un,sn+2*un,sn+2*un].join(" "),pn=an.fill?0:sn/30,this.$lib.innerHTML=Object.entries(this.data).map((function(en){var tn=_slicedToArray(en,2),nn=tn[0],rn=tn[1],an=btoa('\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n <svg viewBox="'.concat(dn,'"><path fill="').concat(cn,'" stroke="#000" stroke-width="').concat(pn,'" d="').concat(rn,'"></path></svg>\n </svg>'));return'<se-button data-shape="'.concat(nn,'"src="data:image/svg+xml;base64,').concat(an,'"></se-button>')})).join(""),hn.next=20;break;case 17:hn.prev=17,hn.t0=hn.catch(1),console.error("could not read file:".concat(tn).concat(en,".json"),hn.t0);case 20:case"end":return hn.stop()}}),_callee2,this,[[1,17]])}))),function updateLib(en){return tn.apply(this,arguments)})},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(en){this.setAttribute("title",en)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(en){en?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(en){en?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}}],[{key:"observedAttributes",get:function get(){return["title","pressed","disabled","lib","src"]}}]),ExplorerButton}(_wrapNativeSuper(HTMLElement));customElements.define("se-explorerbutton",Gc);var Vc=Object.assign,zc=Object.defineProperty,Kc=!Vc||fails((function(){if(rn&&1!==Vc({b:1},Vc(zc({},"a",{enumerable:!0,get:function(){zc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var en={},tn={},nn=Symbol(),an="abcdefghijklmnopqrst";return en[nn]=7,an.split("").forEach((function(en){tn[en]=en})),7!=Vc({},en)[nn]||ki(Vc({},tn)).join("")!=an}))?function assign(en,tn){for(var nn=toObject(en),an=arguments.length,sn=1,un=Hr.f,dn=cn.f;an>sn;)for(var hn,gn=pn(arguments[sn++]),An=un?ki(gn).concat(un(gn)):ki(gn),mn=An.length,vn=0;mn>vn;)hn=An[vn++],rn&&!dn.call(gn,hn)||(nn[hn]=gn[hn]);return nn}:Vc;_export({target:"Object",stat:!0,forced:Object.assign!==Kc},{assign:Kc});var qc=Object.is||function is(en,tn){return en===tn?0!==en||1/en==1/tn:en!=en&&tn!=tn};fixRegexpWellKnownSymbolLogic("search",1,(function(en,tn,nn){return[function search(tn){var nn=requireObjectCoercible(this),rn=null==tn?void 0:tn[en];return void 0!==rn?rn.call(tn,nn):new RegExp(tn)[en](String(nn))},function(en){var rn=nn(tn,en,this);if(rn.done)return rn.value;var an=anObject(en),sn=String(this),cn=an.lastIndex;qc(cn,0)||(an.lastIndex=0);var un=regexpExecAbstract(an,sn);return qc(an.lastIndex,cn)||(an.lastIndex=cn),null===un?-1:un.index}]}));var $c=wellKnownSymbol("iterator"),Wc=!fails((function(){var en=new URL("b?a=1&b=2&c=3","http://a"),tn=en.searchParams,nn="";return en.pathname="c%20d",tn.forEach((function(en,rn){tn.delete("b"),nn+=rn+en})),!tn.sort||"http://a/c%20d?a=1&c=3"!==en.href||"3"!==tn.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!tn[$c]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==nn||"x"!==new URL("http://x",void 0).host})),callWithSafeIterationClosing=function(en,tn,nn,rn){try{return rn?tn(anObject(nn)[0],nn[1]):tn(nn)}catch(tn){throw iteratorClose(en),tn}},Xc=function from(en){var tn,nn,rn,an,sn,cn,un=toObject(en),dn="function"==typeof this?this:Array,pn=arguments.length,hn=pn>1?arguments[1]:void 0,gn=void 0!==hn,An=getIteratorMethod(un),mn=0;if(gn&&(hn=functionBindContext(hn,pn>2?arguments[2]:void 0,2)),null==An||dn==Array&&isArrayIteratorMethod(An))for(nn=new dn(tn=toLength(un.length));tn>mn;mn++)cn=gn?hn(un[mn],mn):un[mn],createProperty(nn,mn,cn);else for(sn=(an=An.call(un)).next,nn=new dn;!(rn=sn.call(an)).done;mn++)cn=gn?callWithSafeIterationClosing(an,hn,[rn.value,mn],!0):rn.value,createProperty(nn,mn,cn);return nn.length=mn,nn},Yc=2147483647,Jc=/[^\0-\u007E]/,Zc=/[.\u3002\uFF0E\uFF61]/g,eu="Overflow: input needs wider integers to process",tu=Math.floor,nu=String.fromCharCode,digitToBasic=function(en){return en+22+75*(en<26)},adapt=function(en,tn,nn){var rn=0;for(en=nn?tu(en/700):en>>1,en+=tu(en/tn);en>455;rn+=36)en=tu(en/35);return tu(rn+36*en/(en+38))},encode=function(en){var tn,nn,rn=[],an=(en=function(en){for(var tn=[],nn=0,rn=en.length;nn<rn;){var an=en.charCodeAt(nn++);if(an>=55296&&an<=56319&&nn<rn){var sn=en.charCodeAt(nn++);56320==(64512&sn)?tn.push(((1023&an)<<10)+(1023&sn)+65536):(tn.push(an),nn--)}else tn.push(an)}return tn}(en)).length,sn=128,cn=0,un=72;for(tn=0;tn<en.length;tn++)(nn=en[tn])<128&&rn.push(nu(nn));var dn=rn.length,pn=dn;for(dn&&rn.push("-");pn<an;){var hn=Yc;for(tn=0;tn<en.length;tn++)(nn=en[tn])>=sn&&nn<hn&&(hn=nn);var gn=pn+1;if(hn-sn>tu((Yc-cn)/gn))throw RangeError(eu);for(cn+=(hn-sn)*gn,sn=hn,tn=0;tn<en.length;tn++){if((nn=en[tn])<sn&&++cn>Yc)throw RangeError(eu);if(nn==sn){for(var An=cn,mn=36;;mn+=36){var vn=mn<=un?1:mn>=un+26?26:mn-un;if(An<vn)break;var yn=An-vn,_n=36-vn;rn.push(nu(digitToBasic(vn+yn%_n))),An=tu(yn/_n)}rn.push(nu(digitToBasic(An))),un=adapt(cn,gn,pn==dn),cn=0,++pn}}++cn,++sn}return rn.join("")},getIterator=function(en){var tn=getIteratorMethod(en);if("function"!=typeof tn)throw TypeError(String(en)+" is not iterable");return anObject(tn.call(en))},ru=getBuiltIn("fetch"),iu=getBuiltIn("Headers"),ou=wellKnownSymbol("iterator"),au="URLSearchParams",su="URLSearchParamsIterator",lu=Kn.set,uu=Kn.getterFor(au),du=Kn.getterFor(su),pu=/\+/g,hu=Array(4),percentSequence=function(en){return hu[en-1]||(hu[en-1]=RegExp("((?:%[\\da-f]{2}){"+en+"})","gi"))},percentDecode=function(en){try{return decodeURIComponent(en)}catch(tn){return en}},deserialize=function(en){var tn=en.replace(pu," "),nn=4;try{return decodeURIComponent(tn)}catch(en){for(;nn;)tn=tn.replace(percentSequence(nn--),percentDecode);return tn}},gu=/[!'()~]|%20/g,fu={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(en){return fu[en]},serialize=function(en){return encodeURIComponent(en).replace(gu,replacer)},parseSearchParams=function(en,tn){if(tn)for(var nn,rn,an=tn.split("&"),sn=0;sn<an.length;)(nn=an[sn++]).length&&(rn=nn.split("="),en.push({key:deserialize(rn.shift()),value:deserialize(rn.join("="))}))},updateSearchParams=function(en){this.entries.length=0,parseSearchParams(this.entries,en)},validateArgumentsLength=function(en,tn){if(en<tn)throw TypeError("Not enough arguments")},Au=createIteratorConstructor((function Iterator(en,tn){lu(this,{type:su,iterator:getIterator(uu(en).entries),kind:tn})}),"Iterator",(function next(){var en=du(this),tn=en.kind,nn=en.iterator.next(),rn=nn.value;return nn.done||(nn.value="keys"===tn?rn.key:"values"===tn?rn.value:[rn.key,rn.value]),nn})),mu=function URLSearchParams(){anInstance(this,mu,au);var en,tn,nn,rn,an,sn,cn,un,dn,pn=arguments.length>0?arguments[0]:void 0,hn=this,gn=[];if(lu(hn,{type:au,entries:gn,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==pn)if(isObject(pn))if("function"==typeof(en=getIteratorMethod(pn)))for(nn=(tn=en.call(pn)).next;!(rn=nn.call(tn)).done;){if((cn=(sn=(an=getIterator(anObject(rn.value))).next).call(an)).done||(un=sn.call(an)).done||!sn.call(an).done)throw TypeError("Expected sequence with length 2");gn.push({key:cn.value+"",value:un.value+""})}else for(dn in pn)has(pn,dn)&&gn.push({key:dn,value:pn[dn]+""});else parseSearchParams(gn,"string"==typeof pn?"?"===pn.charAt(0)?pn.slice(1):pn:pn+"")},vu=mu.prototype;redefineAll(vu,{append:function append(en,tn){validateArgumentsLength(arguments.length,2);var nn=uu(this);nn.entries.push({key:en+"",value:tn+""}),nn.updateURL()},delete:function(en){validateArgumentsLength(arguments.length,1);for(var tn=uu(this),nn=tn.entries,rn=en+"",an=0;an<nn.length;)nn[an].key===rn?nn.splice(an,1):an++;tn.updateURL()},get:function get(en){validateArgumentsLength(arguments.length,1);for(var tn=uu(this).entries,nn=en+"",rn=0;rn<tn.length;rn++)if(tn[rn].key===nn)return tn[rn].value;return null},getAll:function getAll(en){validateArgumentsLength(arguments.length,1);for(var tn=uu(this).entries,nn=en+"",rn=[],an=0;an<tn.length;an++)tn[an].key===nn&&rn.push(tn[an].value);return rn},has:function has(en){validateArgumentsLength(arguments.length,1);for(var tn=uu(this).entries,nn=en+"",rn=0;rn<tn.length;)if(tn[rn++].key===nn)return!0;return!1},set:function set(en,tn){validateArgumentsLength(arguments.length,1);for(var nn,rn=uu(this),an=rn.entries,sn=!1,cn=en+"",un=tn+"",dn=0;dn<an.length;dn++)(nn=an[dn]).key===cn&&(sn?an.splice(dn--,1):(sn=!0,nn.value=un));sn||an.push({key:cn,value:un}),rn.updateURL()},sort:function sort(){var en,tn,nn,rn=uu(this),an=rn.entries,sn=an.slice();for(an.length=0,nn=0;nn<sn.length;nn++){for(en=sn[nn],tn=0;tn<nn;tn++)if(an[tn].key>en.key){an.splice(tn,0,en);break}tn===nn&&an.push(en)}rn.updateURL()},forEach:function forEach(en){for(var tn,nn=uu(this).entries,rn=functionBindContext(en,arguments.length>1?arguments[1]:void 0,3),an=0;an<nn.length;)rn((tn=nn[an++]).value,tn.key,this)},keys:function keys(){return new Au(this,"keys")},values:function values(){return new Au(this,"values")},entries:function entries(){return new Au(this,"entries")}},{enumerable:!0}),qn(vu,ou,vu.entries),qn(vu,"toString",(function toString(){for(var en,tn=uu(this).entries,nn=[],rn=0;rn<tn.length;)en=tn[rn++],nn.push(serialize(en.key)+"="+serialize(en.value));return nn.join("&")}),{enumerable:!0}),setToStringTag(mu,au),_export({global:!0,forced:!Wc},{URLSearchParams:mu}),Wc||"function"!=typeof ru||"function"!=typeof iu||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(en){var tn,nn,rn,an=[en];return arguments.length>1&&(isObject(tn=arguments[1])&&(nn=tn.body,So(nn)===au&&((rn=tn.headers?new iu(tn.headers):new iu).has("content-type")||rn.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),tn=Li(tn,{body:createPropertyDescriptor(0,String(nn)),headers:createPropertyDescriptor(0,rn)}))),an.push(tn)),ru.apply(this,an)}});var yu,_u={URLSearchParams:mu,getState:uu},bu=_a.codeAt,wu=nn.URL,xu=_u.URLSearchParams,Su=_u.getState,Cu=Kn.set,ku=Kn.getterFor("URL"),Bu=Math.floor,Eu=Math.pow,Pu="Invalid scheme",Lu="Invalid host",Tu="Invalid port",Nu=/[A-Za-z]/,Iu=/[\d+-.A-Za-z]/,Ou=/\d/,Fu=/^(0x|0X)/,Uu=/^[0-7]+$/,Mu=/^\d+$/,Ru=/^[\dA-Fa-f]+$/,Du=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,ju=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Qu=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Hu=/[\u0009\u000A\u000D]/g,parseHost=function(en,tn){var nn,rn,an;if("["==tn.charAt(0)){if("]"!=tn.charAt(tn.length-1))return Lu;if(!(nn=parseIPv6(tn.slice(1,-1))))return Lu;en.host=nn}else if(isSpecial(en)){if(tn=function(en){var tn,nn,rn=[],an=en.toLowerCase().replace(Zc,".").split(".");for(tn=0;tn<an.length;tn++)nn=an[tn],rn.push(Jc.test(nn)?"xn--"+encode(nn):nn);return rn.join(".")}(tn),Du.test(tn))return Lu;if(null===(nn=parseIPv4(tn)))return Lu;en.host=nn}else{if(ju.test(tn))return Lu;for(nn="",rn=Xc(tn),an=0;an<rn.length;an++)nn+=percentEncode(rn[an],Gu);en.host=nn}},parseIPv4=function(en){var tn,nn,rn,an,sn,cn,un,dn=en.split(".");if(dn.length&&""==dn[dn.length-1]&&dn.pop(),(tn=dn.length)>4)return en;for(nn=[],rn=0;rn<tn;rn++){if(""==(an=dn[rn]))return en;if(sn=10,an.length>1&&"0"==an.charAt(0)&&(sn=Fu.test(an)?16:8,an=an.slice(8==sn?1:2)),""===an)cn=0;else{if(!(10==sn?Mu:8==sn?Uu:Ru).test(an))return en;cn=parseInt(an,sn)}nn.push(cn)}for(rn=0;rn<tn;rn++)if(cn=nn[rn],rn==tn-1){if(cn>=Eu(256,5-tn))return null}else if(cn>255)return null;for(un=nn.pop(),rn=0;rn<nn.length;rn++)un+=nn[rn]*Eu(256,3-rn);return un},parseIPv6=function(en){var tn,nn,rn,an,sn,cn,un,dn=[0,0,0,0,0,0,0,0],pn=0,hn=null,gn=0,char=function(){return en.charAt(gn)};if(":"==char()){if(":"!=en.charAt(1))return;gn+=2,hn=++pn}for(;char();){if(8==pn)return;if(":"!=char()){for(tn=nn=0;nn<4&&Ru.test(char());)tn=16*tn+parseInt(char(),16),gn++,nn++;if("."==char()){if(0==nn)return;if(gn-=nn,pn>6)return;for(rn=0;char();){if(an=null,rn>0){if(!("."==char()&&rn<4))return;gn++}if(!Ou.test(char()))return;for(;Ou.test(char());){if(sn=parseInt(char(),10),null===an)an=sn;else{if(0==an)return;an=10*an+sn}if(an>255)return;gn++}dn[pn]=256*dn[pn]+an,2!=++rn&&4!=rn||pn++}if(4!=rn)return;break}if(":"==char()){if(gn++,!char())return}else if(char())return;dn[pn++]=tn}else{if(null!==hn)return;gn++,hn=++pn}}if(null!==hn)for(cn=pn-hn,pn=7;0!=pn&&cn>0;)un=dn[pn],dn[pn--]=dn[hn+cn-1],dn[hn+--cn]=un;else if(8!=pn)return;return dn},serializeHost=function(en){var tn,nn,rn,an;if("number"==typeof en){for(tn=[],nn=0;nn<4;nn++)tn.unshift(en%256),en=Bu(en/256);return tn.join(".")}if("object"==typeof en){for(tn="",rn=function(en){for(var tn=null,nn=1,rn=null,an=0,sn=0;sn<8;sn++)0!==en[sn]?(an>nn&&(tn=rn,nn=an),rn=null,an=0):(null===rn&&(rn=sn),++an);return an>nn&&(tn=rn,nn=an),tn}(en),nn=0;nn<8;nn++)an&&0===en[nn]||(an&&(an=!1),rn===nn?(tn+=nn?":":"::",an=!0):(tn+=en[nn].toString(16),nn<7&&(tn+=":")));return"["+tn+"]"}return en},Gu={},Vu=Kc({},Gu,{" ":1,'"':1,"<":1,">":1,"`":1}),zu=Kc({},Vu,{"#":1,"?":1,"{":1,"}":1}),Ku=Kc({},zu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(en,tn){var nn=bu(en,0);return nn>32&&nn<127&&!has(tn,en)?en:encodeURIComponent(en)},qu={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(en){return has(qu,en.scheme)},includesCredentials=function(en){return""!=en.username||""!=en.password},cannotHaveUsernamePasswordPort=function(en){return!en.host||en.cannotBeABaseURL||"file"==en.scheme},isWindowsDriveLetter=function(en,tn){var nn;return 2==en.length&&Nu.test(en.charAt(0))&&(":"==(nn=en.charAt(1))||!tn&&"|"==nn)},startsWithWindowsDriveLetter=function(en){var tn;return en.length>1&&isWindowsDriveLetter(en.slice(0,2))&&(2==en.length||"/"===(tn=en.charAt(2))||"\\"===tn||"?"===tn||"#"===tn)},shortenURLsPath=function(en){var tn=en.path,nn=tn.length;!nn||"file"==en.scheme&&1==nn&&isWindowsDriveLetter(tn[0],!0)||tn.pop()},isSingleDot=function(en){return"."===en||"%2e"===en.toLowerCase()},$u={},Wu={},Xu={},Yu={},Ju={},Zu={},ed={},td={},nd={},rd={},id={},od={},ad={},sd={},ld={},cd={},ud={},dd={},pd={},hd={},gd={},parseURL=function(en,tn,nn,rn){var an,sn,cn,un,dn,pn=nn||$u,hn=0,gn="",An=!1,mn=!1,vn=!1;for(nn||(en.scheme="",en.username="",en.password="",en.host=null,en.port=null,en.path=[],en.query=null,en.fragment=null,en.cannotBeABaseURL=!1,tn=tn.replace(Qu,"")),tn=tn.replace(Hu,""),an=Xc(tn);hn<=an.length;){switch(sn=an[hn],pn){case $u:if(!sn||!Nu.test(sn)){if(nn)return Pu;pn=Xu;continue}gn+=sn.toLowerCase(),pn=Wu;break;case Wu:if(sn&&(Iu.test(sn)||"+"==sn||"-"==sn||"."==sn))gn+=sn.toLowerCase();else{if(":"!=sn){if(nn)return Pu;gn="",pn=Xu,hn=0;continue}if(nn&&(isSpecial(en)!=has(qu,gn)||"file"==gn&&(includesCredentials(en)||null!==en.port)||"file"==en.scheme&&!en.host))return;if(en.scheme=gn,nn)return void(isSpecial(en)&&qu[en.scheme]==en.port&&(en.port=null));gn="","file"==en.scheme?pn=sd:isSpecial(en)&&rn&&rn.scheme==en.scheme?pn=Yu:isSpecial(en)?pn=td:"/"==an[hn+1]?(pn=Ju,hn++):(en.cannotBeABaseURL=!0,en.path.push(""),pn=pd)}break;case Xu:if(!rn||rn.cannotBeABaseURL&&"#"!=sn)return Pu;if(rn.cannotBeABaseURL&&"#"==sn){en.scheme=rn.scheme,en.path=rn.path.slice(),en.query=rn.query,en.fragment="",en.cannotBeABaseURL=!0,pn=gd;break}pn="file"==rn.scheme?sd:Zu;continue;case Yu:if("/"!=sn||"/"!=an[hn+1]){pn=Zu;continue}pn=nd,hn++;break;case Ju:if("/"==sn){pn=rd;break}pn=dd;continue;case Zu:if(en.scheme=rn.scheme,sn==yu)en.username=rn.username,en.password=rn.password,en.host=rn.host,en.port=rn.port,en.path=rn.path.slice(),en.query=rn.query;else if("/"==sn||"\\"==sn&&isSpecial(en))pn=ed;else if("?"==sn)en.username=rn.username,en.password=rn.password,en.host=rn.host,en.port=rn.port,en.path=rn.path.slice(),en.query="",pn=hd;else{if("#"!=sn){en.username=rn.username,en.password=rn.password,en.host=rn.host,en.port=rn.port,en.path=rn.path.slice(),en.path.pop(),pn=dd;continue}en.username=rn.username,en.password=rn.password,en.host=rn.host,en.port=rn.port,en.path=rn.path.slice(),en.query=rn.query,en.fragment="",pn=gd}break;case ed:if(!isSpecial(en)||"/"!=sn&&"\\"!=sn){if("/"!=sn){en.username=rn.username,en.password=rn.password,en.host=rn.host,en.port=rn.port,pn=dd;continue}pn=rd}else pn=nd;break;case td:if(pn=nd,"/"!=sn||"/"!=gn.charAt(hn+1))continue;hn++;break;case nd:if("/"!=sn&&"\\"!=sn){pn=rd;continue}break;case rd:if("@"==sn){An&&(gn="%40"+gn),An=!0,cn=Xc(gn);for(var yn=0;yn<cn.length;yn++){var _n=cn[yn];if(":"!=_n||vn){var wn=percentEncode(_n,Ku);vn?en.password+=wn:en.username+=wn}else vn=!0}gn=""}else if(sn==yu||"/"==sn||"?"==sn||"#"==sn||"\\"==sn&&isSpecial(en)){if(An&&""==gn)return"Invalid authority";hn-=Xc(gn).length+1,gn="",pn=id}else gn+=sn;break;case id:case od:if(nn&&"file"==en.scheme){pn=cd;continue}if(":"!=sn||mn){if(sn==yu||"/"==sn||"?"==sn||"#"==sn||"\\"==sn&&isSpecial(en)){if(isSpecial(en)&&""==gn)return Lu;if(nn&&""==gn&&(includesCredentials(en)||null!==en.port))return;if(un=parseHost(en,gn))return un;if(gn="",pn=ud,nn)return;continue}"["==sn?mn=!0:"]"==sn&&(mn=!1),gn+=sn}else{if(""==gn)return Lu;if(un=parseHost(en,gn))return un;if(gn="",pn=ad,nn==od)return}break;case ad:if(!Ou.test(sn)){if(sn==yu||"/"==sn||"?"==sn||"#"==sn||"\\"==sn&&isSpecial(en)||nn){if(""!=gn){var xn=parseInt(gn,10);if(xn>65535)return Tu;en.port=isSpecial(en)&&xn===qu[en.scheme]?null:xn,gn=""}if(nn)return;pn=ud;continue}return Tu}gn+=sn;break;case sd:if(en.scheme="file","/"==sn||"\\"==sn)pn=ld;else{if(!rn||"file"!=rn.scheme){pn=dd;continue}if(sn==yu)en.host=rn.host,en.path=rn.path.slice(),en.query=rn.query;else if("?"==sn)en.host=rn.host,en.path=rn.path.slice(),en.query="",pn=hd;else{if("#"!=sn){startsWithWindowsDriveLetter(an.slice(hn).join(""))||(en.host=rn.host,en.path=rn.path.slice(),shortenURLsPath(en)),pn=dd;continue}en.host=rn.host,en.path=rn.path.slice(),en.query=rn.query,en.fragment="",pn=gd}}break;case ld:if("/"==sn||"\\"==sn){pn=cd;break}rn&&"file"==rn.scheme&&!startsWithWindowsDriveLetter(an.slice(hn).join(""))&&(isWindowsDriveLetter(rn.path[0],!0)?en.path.push(rn.path[0]):en.host=rn.host),pn=dd;continue;case cd:if(sn==yu||"/"==sn||"\\"==sn||"?"==sn||"#"==sn){if(!nn&&isWindowsDriveLetter(gn))pn=dd;else if(""==gn){if(en.host="",nn)return;pn=ud}else{if(un=parseHost(en,gn))return un;if("localhost"==en.host&&(en.host=""),nn)return;gn="",pn=ud}continue}gn+=sn;break;case ud:if(isSpecial(en)){if(pn=dd,"/"!=sn&&"\\"!=sn)continue}else if(nn||"?"!=sn)if(nn||"#"!=sn){if(sn!=yu&&(pn=dd,"/"!=sn))continue}else en.fragment="",pn=gd;else en.query="",pn=hd;break;case dd:if(sn==yu||"/"==sn||"\\"==sn&&isSpecial(en)||!nn&&("?"==sn||"#"==sn)){if(".."===(dn=(dn=gn).toLowerCase())||"%2e."===dn||".%2e"===dn||"%2e%2e"===dn?(shortenURLsPath(en),"/"==sn||"\\"==sn&&isSpecial(en)||en.path.push("")):isSingleDot(gn)?"/"==sn||"\\"==sn&&isSpecial(en)||en.path.push(""):("file"==en.scheme&&!en.path.length&&isWindowsDriveLetter(gn)&&(en.host&&(en.host=""),gn=gn.charAt(0)+":"),en.path.push(gn)),gn="","file"==en.scheme&&(sn==yu||"?"==sn||"#"==sn))for(;en.path.length>1&&""===en.path[0];)en.path.shift();"?"==sn?(en.query="",pn=hd):"#"==sn&&(en.fragment="",pn=gd)}else gn+=percentEncode(sn,zu);break;case pd:"?"==sn?(en.query="",pn=hd):"#"==sn?(en.fragment="",pn=gd):sn!=yu&&(en.path[0]+=percentEncode(sn,Gu));break;case hd:nn||"#"!=sn?sn!=yu&&("'"==sn&&isSpecial(en)?en.query+="%27":en.query+="#"==sn?"%23":percentEncode(sn,Gu)):(en.fragment="",pn=gd);break;case gd:sn!=yu&&(en.fragment+=percentEncode(sn,Vu))}hn++}},fd=function URL(en){var tn,nn,an=anInstance(this,fd,"URL"),sn=arguments.length>1?arguments[1]:void 0,cn=String(en),un=Cu(an,{type:"URL"});if(void 0!==sn)if(sn instanceof fd)tn=ku(sn);else if(nn=parseURL(tn={},String(sn)))throw TypeError(nn);if(nn=parseURL(un,cn,null,tn))throw TypeError(nn);var dn=un.searchParams=new xu,pn=Su(dn);pn.updateSearchParams(un.query),pn.updateURL=function(){un.query=String(dn)||null},rn||(an.href=serializeURL.call(an),an.origin=getOrigin.call(an),an.protocol=getProtocol.call(an),an.username=getUsername.call(an),an.password=getPassword.call(an),an.host=getHost.call(an),an.hostname=getHostname.call(an),an.port=getPort.call(an),an.pathname=getPathname.call(an),an.search=getSearch.call(an),an.searchParams=getSearchParams.call(an),an.hash=getHash.call(an))},Ad=fd.prototype,serializeURL=function(){var en=ku(this),tn=en.scheme,nn=en.username,rn=en.password,an=en.host,sn=en.port,cn=en.path,un=en.query,dn=en.fragment,pn=tn+":";return null!==an?(pn+="//",includesCredentials(en)&&(pn+=nn+(rn?":"+rn:"")+"@"),pn+=serializeHost(an),null!==sn&&(pn+=":"+sn)):"file"==tn&&(pn+="//"),pn+=en.cannotBeABaseURL?cn[0]:cn.length?"/"+cn.join("/"):"",null!==un&&(pn+="?"+un),null!==dn&&(pn+="#"+dn),pn},getOrigin=function(){var en=ku(this),tn=en.scheme,nn=en.port;if("blob"==tn)try{return new URL(tn.path[0]).origin}catch(en){return"null"}return"file"!=tn&&isSpecial(en)?tn+"://"+serializeHost(en.host)+(null!==nn?":"+nn:""):"null"},getProtocol=function(){return ku(this).scheme+":"},getUsername=function(){return ku(this).username},getPassword=function(){return ku(this).password},getHost=function(){var en=ku(this),tn=en.host,nn=en.port;return null===tn?"":null===nn?serializeHost(tn):serializeHost(tn)+":"+nn},getHostname=function(){var en=ku(this).host;return null===en?"":serializeHost(en)},getPort=function(){var en=ku(this).port;return null===en?"":String(en)},getPathname=function(){var en=ku(this),tn=en.path;return en.cannotBeABaseURL?tn[0]:tn.length?"/"+tn.join("/"):""},getSearch=function(){var en=ku(this).query;return en?"?"+en:""},getSearchParams=function(){return ku(this).searchParams},getHash=function(){var en=ku(this).fragment;return en?"#"+en:""},accessorDescriptor=function(en,tn){return{get:en,set:tn,configurable:!0,enumerable:!0}};if(rn&&Bi(Ad,{href:accessorDescriptor(serializeURL,(function(en){var tn=ku(this),nn=String(en),rn=parseURL(tn,nn);if(rn)throw TypeError(rn);Su(tn.searchParams).updateSearchParams(tn.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(en){var tn=ku(this);parseURL(tn,String(en)+":",$u)})),username:accessorDescriptor(getUsername,(function(en){var tn=ku(this),nn=Xc(String(en));if(!cannotHaveUsernamePasswordPort(tn)){tn.username="";for(var rn=0;rn<nn.length;rn++)tn.username+=percentEncode(nn[rn],Ku)}})),password:accessorDescriptor(getPassword,(function(en){var tn=ku(this),nn=Xc(String(en));if(!cannotHaveUsernamePasswordPort(tn)){tn.password="";for(var rn=0;rn<nn.length;rn++)tn.password+=percentEncode(nn[rn],Ku)}})),host:accessorDescriptor(getHost,(function(en){var tn=ku(this);tn.cannotBeABaseURL||parseURL(tn,String(en),id)})),hostname:accessorDescriptor(getHostname,(function(en){var tn=ku(this);tn.cannotBeABaseURL||parseURL(tn,String(en),od)})),port:accessorDescriptor(getPort,(function(en){var tn=ku(this);cannotHaveUsernamePasswordPort(tn)||(""==(en=String(en))?tn.port=null:parseURL(tn,en,ad))})),pathname:accessorDescriptor(getPathname,(function(en){var tn=ku(this);tn.cannotBeABaseURL||(tn.path=[],parseURL(tn,en+"",ud))})),search:accessorDescriptor(getSearch,(function(en){var tn=ku(this);""==(en=String(en))?tn.query=null:("?"==en.charAt(0)&&(en=en.slice(1)),tn.query="",parseURL(tn,en,hd)),Su(tn.searchParams).updateSearchParams(tn.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(en){var tn=ku(this);""!=(en=String(en))?("#"==en.charAt(0)&&(en=en.slice(1)),tn.fragment="",parseURL(tn,en,gd)):tn.fragment=null}))}),qn(Ad,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),qn(Ad,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),wu){var md=wu.createObjectURL,vd=wu.revokeObjectURL;md&&qn(fd,"createObjectURL",(function createObjectURL(en){return md.apply(wu,arguments)})),vd&&qn(fd,"revokeObjectURL",(function revokeObjectURL(en){return vd.apply(wu,arguments)}))}setToStringTag(fd,"URL"),_export({global:!0,forced:!Wc,sham:!rn},{URL:fd});var yd=Symbol("defaultState"),_d=Symbol("delegatesFocus"),bd=Symbol("firstRender"),wd=Symbol("focusTarget"),xd=Symbol("hasDynamicTemplate"),Sd=Symbol("ids"),Cd=Symbol("nativeInternals"),kd=Symbol("raiseChangeEvents"),Bd=Symbol("render"),Ed=Symbol("renderChanges"),Pd=Symbol("rendered"),Ld=Symbol("rendering"),Td=Symbol("setState"),Nd=Symbol("shadowRoot"),Id=Symbol("shadowRootMode"),Od=Symbol("state"),Fd=Symbol("stateEffects"),Ud=Symbol("template"),Md=Symbol("applyElementData"),Rd=Symbol("checkSize"),Dd=Symbol("closestAvailableItemIndex"),jd=Symbol("contentSlot"),Qd=yd,Hd=Symbol("defaultTabIndex"),Gd=_d,Vd=Symbol("effectEndTarget"),zd=bd,Kd=wd,qd=Symbol("getItemText"),$d=Symbol("goDown"),Wd=Symbol("goEnd"),Xd=Symbol("goFirst"),Yd=Symbol("goLast"),Jd=Symbol("goLeft"),Zd=Symbol("goNext"),ep=Symbol("goPrevious"),tp=Symbol("goRight"),np=Symbol("goStart"),rp=Symbol("goToItemWithPrefix"),ip=Symbol("goUp"),op=xd,ap=Sd,sp=Symbol("inputDelegate"),lp=Symbol("itemsDelegate"),cp=Symbol("keydown"),up=Symbol("mouseenter"),dp=Symbol("mouseleave"),pp=Cd,hp=kd,gp=Bd,fp=Ed,Ap=Symbol("renderDataToElement"),mp=Pd,vp=Ld,yp=Symbol("scrollTarget"),_p=Td,wp=Nd,xp=Id,Sp=Symbol("startEffect"),Cp=Od,kp=Fd,Bp=Symbol("swipeDown"),Ep=Symbol("swipeDownComplete"),Pp=Symbol("swipeLeft"),Lp=Symbol("swipeLeftTransitionEnd"),Tp=Symbol("swipeRight"),Np=Symbol("swipeRightTransitionEnd"),Ip=Symbol("swipeUp"),Op=Symbol("swipeUpComplete"),Fp=Symbol("swipeStart"),Up=Symbol("swipeTarget"),Mp=Symbol("tap"),Rp=Ud,Dp=Symbol("toggleSelectedFlag");"true"===new URLSearchParams(location.search).get("elixdebug")&&(window.elix={internal:{checkSize:Rd,closestAvailableItemIndex:Dd,contentSlot:jd,defaultState:Qd,defaultTabIndex:Hd,delegatesFocus:Gd,effectEndTarget:Vd,firstRender:zd,focusTarget:Kd,getItemText:qd,goDown:$d,goEnd:Wd,goFirst:Xd,goLast:Yd,goLeft:Jd,goNext:Zd,goPrevious:ep,goRight:tp,goStart:np,goToItemWithPrefix:rp,goUp:ip,hasDynamicTemplate:op,ids:ap,inputDelegate:sp,itemsDelegate:lp,keydown:cp,mouseenter:up,mouseleave:dp,nativeInternals:pp,event:event,raiseChangeEvents:hp,render:gp,renderChanges:fp,renderDataToElement:Ap,rendered:mp,rendering:vp,scrollTarget:yp,setState:_p,shadowRoot:wp,shadowRootMode:xp,startEffect:Sp,state:Cp,stateEffects:kp,swipeDown:Bp,swipeDownComplete:Ep,swipeLeft:Pp,swipeLeftTransitionEnd:Lp,swipeRight:Tp,swipeRightTransitionEnd:Np,swipeUp:Ip,swipeUpComplete:Op,swipeStart:Fp,swipeTarget:Up,tap:Mp,template:Rp,toggleSelectedFlag:Dp}});var jp=vi.findIndex,Qp="findIndex",Hp=!0,Gp=arrayMethodUsesToLength(Qp);Qp in[]&&Array(1).findIndex((function(){Hp=!1})),_export({target:"Array",proto:!0,forced:Hp||!Gp},{findIndex:function findIndex(en){return jp(this,en,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables(Qp);var Vp=regeneratorRuntime.mark(composedAncestors),zp=regeneratorRuntime.mark(selfAndComposedAncestors),Kp=regeneratorRuntime.mark(walkComposedTree),qp=Symbol("mousedownListener");function booleanAttributeValue(en,tn){return"boolean"==typeof tn?tn:"string"==typeof tn&&(""===tn||en.toLowerCase()===tn.toLowerCase())}function closestFocusableNode(en){var tn,nn=_createForOfIteratorHelper(selfAndComposedAncestors(en));try{for(nn.s();!(tn=nn.n()).done;){var rn=tn.value,an=rn[wd]||rn,sn=an;if(an instanceof HTMLElement&&an.tabIndex>=0&&!sn.disabled&&!(an instanceof HTMLSlotElement))return an}}catch(en){nn.e(en)}finally{nn.f()}return null}function composedAncestors(en){var tn;return regeneratorRuntime.wrap((function composedAncestors$(nn){for(;;)switch(nn.prev=nn.next){case 0:tn=en;case 1:if(!(tn=tn instanceof HTMLElement&&tn.assignedSlot?tn.assignedSlot:tn instanceof ShadowRoot?tn.host:tn.parentNode)){nn.next=8;break}return nn.next=6,tn;case 6:nn.next=9;break;case 8:return nn.abrupt("break",11);case 9:nn.next=1;break;case 11:case"end":return nn.stop()}}),Vp)}function deepContains(en,tn){for(var nn=tn;nn;){var rn=nn.assignedSlot||nn.parentNode||nn.host;if(rn===en)return!0;nn=rn}return!1}function firstFocusableElement(en){var tn=walkComposedTree(en,(function(en){return en instanceof HTMLElement&&en.matches('a[href],area[href],button:not([disabled]),details,iframe,input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[contentEditable="true"],[tabindex]')&&en.tabIndex>=0})).next().value;return tn instanceof HTMLElement?tn:null}function forwardFocus(en,tn){en[qp]&&en.removeEventListener("mousedown",en[qp]),tn&&(en[qp]=function(en){if(0===en.button){var nn=closestFocusableNode(tn[wd]||tn);nn&&(nn.focus(),en.preventDefault())}},en.addEventListener("mousedown",en[qp]))}function indexOfItemContainingTarget(en,tn){return Array.prototype.findIndex.call(en,(function(en){return en===tn||deepContains(en,tn)}))}function ownEvent(en,tn){var nn=tn.composedPath()[0];return en===nn||deepContains(en,nn)}function selfAndComposedAncestors(en){return regeneratorRuntime.wrap((function selfAndComposedAncestors$(tn){for(;;)switch(tn.prev=tn.next){case 0:if(!en){tn.next=4;break}return tn.next=3,en;case 3:return tn.delegateYield(composedAncestors(en),"t0",4);case 4:case"end":return tn.stop()}}),zp)}function setInternalState$7(en,tn,nn){en.toggleAttribute(tn,nn),en[Cd]&&en[Cd].states&&en[Cd].states.toggle(tn,nn)}var $p={checked:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,multiple:!0,noresize:!0,readonly:!0,selected:!0};function updateChildNodes(en,tn){for(var nn=_toConsumableArray(tn),rn=en.childNodes.length,an=nn.length,sn=Math.max(rn,an),cn=0;cn<sn;cn++){var un=en.childNodes[cn],dn=nn[cn];cn>=rn?en.append(dn):cn>=an?en.removeChild(en.childNodes[an]):un!==dn&&(nn.indexOf(un,cn)>=cn?en.insertBefore(dn,un):en.replaceChild(dn,un))}}function walkComposedTree(en,tn){var nn,rn,an;return regeneratorRuntime.wrap((function walkComposedTree$(sn){for(;;)switch(sn.prev=sn.next){case 0:if(!tn(en)){sn.next=3;break}return sn.next=3,en;case 3:if(en instanceof HTMLElement&&en.shadowRoot?nn=en.shadowRoot.children:(rn=en instanceof HTMLSlotElement?en.assignedNodes({flatten:!0}):[],nn=rn.length>0?rn:en.childNodes),!nn){sn.next=11;break}an=0;case 6:if(!(an<nn.length)){sn.next=11;break}return sn.delegateYield(walkComposedTree(nn[an],tn),"t0",8);case 8:an++,sn.next=6;break;case 11:case"end":return sn.stop()}}),Kp)}_export({target:"String",stat:!0},{raw:function raw(en){for(var tn=toIndexedObject(en.raw),nn=toLength(tn.length),rn=arguments.length,an=[],sn=0;nn>sn;)an.push(String(tn[sn++])),sn<rn&&an.push(String(arguments[sn]));return an.join("")}});var Wp=function html(en){for(var tn=arguments.length,nn=new Array(tn>1?tn-1:0),rn=1;rn<tn;rn++)nn[rn-1]=arguments[rn];return Xp.html.apply(Xp,[en].concat(nn)).content},Xp={html:function html(en){for(var tn=document.createElement("template"),nn=arguments.length,rn=new Array(nn>1?nn-1:0),an=1;an<nn;an++)rn[an-1]=arguments[an];return tn.innerHTML=String.raw.apply(String,[en].concat(rn)),tn}},Yp=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),Jp=createCommonjsModule((function(en){var tn=wn.f,nn=uid("meta"),rn=0,an=Object.isExtensible||function(){return!0},setMetadata=function(en){tn(en,nn,{value:{objectID:"O"+ ++rn,weakData:{}}})},sn=en.exports={REQUIRED:!1,fastKey:function(en,tn){if(!isObject(en))return"symbol"==typeof en?en:("string"==typeof en?"S":"P")+en;if(!has(en,nn)){if(!an(en))return"F";if(!tn)return"E";setMetadata(en)}return en[nn].objectID},getWeakData:function(en,tn){if(!has(en,nn)){if(!an(en))return!0;if(!tn)return!1;setMetadata(en)}return en[nn].weakData},onFreeze:function(en){return Yp&&sn.REQUIRED&&an(en)&&!has(en,nn)&&setMetadata(en),en}};Mn[nn]=!0})),collection=function(en,tn,rn){var an=-1!==en.indexOf("Map"),sn=-1!==en.indexOf("Weak"),cn=an?"set":"add",un=nn[en],dn=un&&un.prototype,pn=un,hn={},fixMethod=function(en){var tn=dn[en];qn(dn,en,"add"==en?function add(en){return tn.call(this,0===en?0:en),this}:"delete"==en?function(en){return!(sn&&!isObject(en))&&tn.call(this,0===en?0:en)}:"get"==en?function get(en){return sn&&!isObject(en)?void 0:tn.call(this,0===en?0:en)}:"has"==en?function has(en){return!(sn&&!isObject(en))&&tn.call(this,0===en?0:en)}:function set(en,nn){return tn.call(this,0===en?0:en,nn),this})};if(Xr(en,"function"!=typeof un||!(sn||dn.forEach&&!fails((function(){(new un).entries().next()})))))pn=rn.getConstructor(tn,en,an,cn),Jp.REQUIRED=!0;else if(Xr(en,!0)){var gn=new pn,An=gn[cn](sn?{}:-0,1)!=gn,mn=fails((function(){gn.has(1)})),vn=checkCorrectnessOfIteration((function(en){new un(en)})),yn=!sn&&fails((function(){for(var en=new un,tn=5;tn--;)en[cn](tn,tn);return!en.has(-0)}));vn||((pn=tn((function(tn,nn){anInstance(tn,pn,en);var rn=inheritIfRequired(new un,tn,pn);return null!=nn&&iterate(nn,rn[cn],{that:rn,AS_ENTRIES:an}),rn}))).prototype=dn,dn.constructor=pn),(mn||yn)&&(fixMethod("delete"),fixMethod("has"),an&&fixMethod("get")),(yn||An)&&fixMethod(cn),sn&&dn.clear&&delete dn.clear}return hn[en]=pn,_export({global:!0,forced:pn!=un},hn),setToStringTag(pn,en),sn||rn.setStrong(pn,en,an),pn},Zp=wn.f,eh=Jp.fastKey,th=Kn.set,nh=Kn.getterFor;collection("Map",(function(en){return function Map(){return en(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(en,tn,nn,an){var sn=en((function(en,cn){anInstance(en,sn,tn),th(en,{type:tn,index:Li(null),first:void 0,last:void 0,size:0}),rn||(en.size=0),null!=cn&&iterate(cn,en[an],{that:en,AS_ENTRIES:nn})})),cn=nh(tn),define=function(en,tn,nn){var an,sn,un=cn(en),dn=getEntry(en,tn);return dn?dn.value=nn:(un.last=dn={index:sn=eh(tn,!0),key:tn,value:nn,previous:an=un.last,next:void 0,removed:!1},un.first||(un.first=dn),an&&(an.next=dn),rn?un.size++:en.size++,"F"!==sn&&(un.index[sn]=dn)),en},getEntry=function(en,tn){var nn,rn=cn(en),an=eh(tn);if("F"!==an)return rn.index[an];for(nn=rn.first;nn;nn=nn.next)if(nn.key==tn)return nn};return redefineAll(sn.prototype,{clear:function clear(){for(var en=cn(this),tn=en.index,nn=en.first;nn;)nn.removed=!0,nn.previous&&(nn.previous=nn.previous.next=void 0),delete tn[nn.index],nn=nn.next;en.first=en.last=void 0,rn?en.size=0:this.size=0},delete:function(en){var tn=this,nn=cn(tn),an=getEntry(tn,en);if(an){var sn=an.next,un=an.previous;delete nn.index[an.index],an.removed=!0,un&&(un.next=sn),sn&&(sn.previous=un),nn.first==an&&(nn.first=sn),nn.last==an&&(nn.last=un),rn?nn.size--:tn.size--}return!!an},forEach:function forEach(en){for(var tn,nn=cn(this),rn=functionBindContext(en,arguments.length>1?arguments[1]:void 0,3);tn=tn?tn.next:nn.first;)for(rn(tn.value,tn.key,this);tn&&tn.removed;)tn=tn.previous},has:function has(en){return!!getEntry(this,en)}}),redefineAll(sn.prototype,nn?{get:function get(en){var tn=getEntry(this,en);return tn&&tn.value},set:function set(en,tn){return define(this,0===en?0:en,tn)}}:{add:function add(en){return define(this,en=0===en?0:en,en)}}),rn&&Zp(sn.prototype,"size",{get:function(){return cn(this).size}}),sn},setStrong:function(en,tn,nn){var rn=tn+" Iterator",an=nh(tn),sn=nh(rn);defineIterator(en,tn,(function(en,tn){th(this,{type:rn,target:en,state:an(en),kind:tn,last:void 0})}),(function(){for(var en=sn(this),tn=en.kind,nn=en.last;nn&&nn.removed;)nn=nn.previous;return en.target&&(en.last=nn=nn?nn.next:en.state.first)?"keys"==tn?{value:nn.key,done:!1}:"values"==tn?{value:nn.value,done:!1}:{value:[nn.key,nn.value],done:!1}:(en.target=void 0,{value:void 0,done:!0})}),nn?"entries":"values",!nn,!0),setSpecies(tn)}});var rh=new Map;function createElement(en){if("function"==typeof en){var tn;try{tn=new en}catch(nn){if("TypeError"!==nn.name)throw nn;!function registerCustomElement(en){var tn,nn=/^[A-Za-z][A-Za-z0-9_$]*$/,rn=en.name&&en.name.match(nn);if(rn){var an=/([A-Z])/g;tn=rn[0].replace(an,(function(en,tn,nn){return nn>0?"-".concat(tn):tn})).toLowerCase()}else tn="custom-element";for(var sn,cn=rh.get(tn)||0;sn="".concat(tn,"-").concat(cn),customElements.get(sn);cn++);customElements.define(sn,en),rh.set(tn,cn+1)}(en),tn=new en}return tn}return document.createElement(en)}function replace$2(en,tn){var nn=en.parentNode;if(!nn)throw"An element must have a parent before it can be substituted.";return(en instanceof HTMLElement||en instanceof SVGElement)&&(tn instanceof HTMLElement||tn instanceof SVGElement)&&(Array.prototype.forEach.call(en.attributes,(function(en){tn.getAttribute(en.name)||"class"===en.name||"style"===en.name||tn.setAttribute(en.name,en.value)})),Array.prototype.forEach.call(en.classList,(function(en){tn.classList.add(en)})),Array.prototype.forEach.call(en.style,(function(nn){tn.style[nn]||(tn.style[nn]=en.style[nn])}))),tn.append.apply(tn,_toConsumableArray(en.childNodes)),nn.replaceChild(tn,en),tn}function transmute(en,tn){if("function"==typeof tn&&en.constructor===tn||"string"==typeof tn&&en instanceof Element&&en.localName===tn)return en;var nn=createElement(tn);return replace$2(en,nn),nn}var ih=yn.f,oh=fails((function(){ih(1)}));_export({target:"Object",stat:!0,forced:!rn||oh,sham:!rn},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(en,tn){return ih(toIndexedObject(en),tn)}});var ah=$l.f,sh=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:sh},{getOwnPropertyNames:ah});var lh={tabindex:"tabIndex"},ch={tabIndex:"tabindex"};var uh=Jp.onFreeze,dh=Object.freeze,ph=fails((function(){dh(1)}));_export({target:"Object",stat:!0,forced:ph,sham:!Yp},{freeze:function freeze(en){return dh&&isObject(en)?dh(uh(en)):en}});var hh=fails((function(){ki(1)}));_export({target:"Object",stat:!0,forced:hh},{keys:function keys(en){return ki(toObject(en))}});var gh=Symbol("state"),fh=Symbol("raiseChangeEventsInNextRender"),Ah=Symbol("changedSinceLastRender");function copyStateWithChanges(en,tn){for(var nn=Object.assign({},en[gh]),rn={},an=tn;;){var sn=fieldsChanged(nn,an);if(0===Object.keys(sn).length)break;Object.assign(nn,an),Object.assign(rn,sn),an=en[Fd](nn,sn)}return{state:nn,changed:rn}}function fieldsChanged(en,tn){var nn,rn,an={};for(var sn in tn)nn=tn[sn],rn=en[sn],(nn instanceof Date&&rn instanceof Date?nn.getTime()===rn.getTime():nn===rn)||(an[sn]=!0);return an}var mh=new Map,vh=Symbol("shadowIdProxy"),yh=Symbol("proxyElement"),_h={get:function get(en,tn){var nn=en[yh][Nd];return nn&&"string"==typeof tn?nn.getElementById(tn):null}};var bh=function AttributeMarshallingMixin(en){return function(en){_inherits(AttributeMarshalling,en);var tn=_createSuper(AttributeMarshalling);function AttributeMarshalling(){return _classCallCheck(this,AttributeMarshalling),tn.apply(this,arguments)}return _createClass(AttributeMarshalling,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(_get(_getPrototypeOf(AttributeMarshalling.prototype),"attributeChangedCallback",this)&&_get(_getPrototypeOf(AttributeMarshalling.prototype),"attributeChangedCallback",this).call(this,en,tn,nn),nn!==tn&&!this[Ld]){var rn=function attributeToPropertyName(en){var tn=lh[en];if(!tn){var nn=/-([a-z])/g;tn=en.replace(nn,(function(en){return en[1].toUpperCase()})),lh[en]=tn}return tn}(en);if(rn in this){var an=$p[en]?booleanAttributeValue(en,nn):nn;this[rn]=an}}}}],[{key:"observedAttributes",get:function get(){return function attributesForClass(en){if(en===HTMLElement)return[];var tn=Object.getPrototypeOf(en.prototype).constructor,nn=tn.observedAttributes;nn||(nn=attributesForClass(tn));var rn=Object.getOwnPropertyNames(en.prototype).filter((function(tn){var nn=Object.getOwnPropertyDescriptor(en.prototype,tn);return nn&&"function"==typeof nn.set})).map((function(en){return function propertyNameToAttribute(en){var tn=ch[en];if(!tn){var nn=/([A-Z])/g;tn=en.replace(nn,"-$1").toLowerCase(),ch[en]=tn}return tn}(en)})).filter((function(en){return nn.indexOf(en)<0}));return nn.concat(rn)}(this)}}]),AttributeMarshalling}(en)}(function ReactiveMixin(en){var tn=function(en){_inherits(Reactive,en);var tn,nn=_createSuper(Reactive);function Reactive(){var en;return _classCallCheck(this,Reactive),(en=nn.call(this))[bd]=void 0,en[kd]=!1,en[Ah]=null,en[Td](en[yd]),en}return _createClass(Reactive,[{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(Reactive.prototype),"connectedCallback",this)&&_get(_getPrototypeOf(Reactive.prototype),"connectedCallback",this).call(this),this[Ed]()}},{key:Bd,value:function value(en){_get(_getPrototypeOf(Reactive.prototype),Bd,this)&&_get(_getPrototypeOf(Reactive.prototype),Bd,this).call(this,en)}},{key:Ed,value:function value(){void 0===this[bd]&&(this[bd]=!0);var en=this[Ah];if(this[bd]||en){var tn=this[kd];this[kd]=this[fh],this[Ld]=!0,this[Bd](en),this[Ld]=!1,this[Ah]=null,this[Pd](en),this[bd]=!1,this[kd]=tn,this[fh]=tn}}},{key:Pd,value:function value(en){_get(_getPrototypeOf(Reactive.prototype),Pd,this)&&_get(_getPrototypeOf(Reactive.prototype),Pd,this).call(this,en)}},{key:Td,value:(tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en){var tn,nn,rn,an;return regeneratorRuntime.wrap((function _callee$(sn){for(;;)switch(sn.prev=sn.next){case 0:if(this[Ld]&&console.warn("".concat(this.constructor.name," called [setState] during rendering, which you should avoid.\nSee https://elix.org/documentation/ReactiveMixin.")),tn=copyStateWithChanges(this,en),nn=tn.state,rn=tn.changed,!this[gh]||0!==Object.keys(rn).length){sn.next=4;break}return sn.abrupt("return");case 4:if(Object.freeze(nn),this[gh]=nn,this[kd]&&(this[fh]=!0),an=void 0===this[bd]||null!==this[Ah],this[Ah]=Object.assign(this[Ah]||{},rn),!this.isConnected||an){sn.next=14;break}return sn.next=13,Promise.resolve();case 13:this[Ed]();case 14:case"end":return sn.stop()}}),_callee,this)}))),function value(en){return tn.apply(this,arguments)})},{key:Fd,value:function value(en,tn){return _get(_getPrototypeOf(Reactive.prototype),Fd,this)?_get(_getPrototypeOf(Reactive.prototype),Fd,this).call(this,en,tn):{}}},{key:yd,get:function get(){return _get(_getPrototypeOf(Reactive.prototype),yd,this)||{}}},{key:Od,get:function get(){return this[gh]}}]),Reactive}(en);return"true"===new URLSearchParams(location.search).get("elixdebug")&&Object.defineProperty(tn.prototype,"state",{get:function get(){return this[Od]}}),tn}(function ShadowTemplateMixin(en){return function(en){_inherits(ShadowTemplate,en);var tn=_createSuper(ShadowTemplate);function ShadowTemplate(){return _classCallCheck(this,ShadowTemplate),tn.apply(this,arguments)}return _createClass(ShadowTemplate,[{key:Bd,value:function value(en){if(_get(_getPrototypeOf(ShadowTemplate.prototype),Bd,this)&&_get(_getPrototypeOf(ShadowTemplate.prototype),Bd,this).call(this,en),!this[Nd]){var tn=function getTemplate(en){var tn=en[xd]?void 0:mh.get(en.constructor);if(void 0===tn){if((tn=en[Ud])&&!(tn instanceof HTMLTemplateElement))throw"Warning: the [template] property for ".concat(en.constructor.name," must return an HTMLTemplateElement.");en[xd]||mh.set(en.constructor,tn||null)}return tn}(this);if(tn){var nn=this.attachShadow({delegatesFocus:this[_d],mode:this[Id]}),rn=document.importNode(tn.content,!0);nn.append(rn),this[Nd]=nn}else this[Nd]=null}}},{key:Sd,get:function get(){if(!this[vh]){var en=_defineProperty({},yh,this);this[vh]=new Proxy(en,_h)}return this[vh]}},{key:Id,get:function get(){return"open"}}]),ShadowTemplate}(en)}(HTMLElement)));function DelegateFocusMixin(en){return function(en){_inherits(DelegateFocus,en);var tn=_createSuper(DelegateFocus);function DelegateFocus(){return _classCallCheck(this,DelegateFocus),tn.apply(this,arguments)}return _createClass(DelegateFocus,[{key:"focus",value:function focus(en){var tn=this[Kd];tn&&tn.focus(en)}},{key:Gd,get:function get(){return!0}},{key:Kd,get:function get(){return firstFocusableElement(this[wp])}}]),DelegateFocus}(en)}function DelegateInputLabelMixin(en){return function(en){_inherits(DelegateInputLabel,en);var tn=_createSuper(DelegateInputLabel);function DelegateInputLabel(){return _classCallCheck(this,DelegateInputLabel),tn.apply(this,arguments)}return _createClass(DelegateInputLabel,[{key:gp,value:function value(en){var tn=this;if(_get(_getPrototypeOf(DelegateInputLabel.prototype),gp,this)&&_get(_getPrototypeOf(DelegateInputLabel.prototype),gp,this).call(this,en),this[zd]&&this.addEventListener("focus",(function(){tn[hp]=!0;var en=refreshInputLabel(tn,tn[Cp]);tn[_p]({inputLabel:en}),tn[hp]=!1})),en.inputLabel){var nn=this[Cp].inputLabel;nn?this[sp].setAttribute("aria-label",nn):this[sp].removeAttribute("aria-label")}}},{key:mp,value:function value(en){var tn=this;(_get(_getPrototypeOf(DelegateInputLabel.prototype),mp,this)&&_get(_getPrototypeOf(DelegateInputLabel.prototype),mp,this).call(this,en),this[zd])&&(window.requestIdleCallback||setTimeout)((function(){var en=refreshInputLabel(tn,tn[Cp]);tn[_p]({inputLabel:en})}));var nn=this[Cp],rn=nn.ariaLabel,an=nn.ariaLabelledby;en.ariaLabel&&!this[Cp].removingAriaAttribute&&this.getAttribute("aria-label")&&(this.setAttribute("delegated-label",rn),this[_p]({removingAriaAttribute:!0}),this.removeAttribute("aria-label")),en.ariaLabelledby&&!this[Cp].removingAriaAttribute&&this.getAttribute("aria-labelledby")&&(this.setAttribute("delegated-labelledby",an),this[_p]({removingAriaAttribute:!0}),this.removeAttribute("aria-labelledby")),en.removingAriaAttribute&&this[Cp].removingAriaAttribute&&this[_p]({removingAriaAttribute:!1})}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(DelegateInputLabel.prototype),kp,this)?_get(_getPrototypeOf(DelegateInputLabel.prototype),kp,this).call(this,en,tn):{};if(tn.ariaLabel&&en.ariaLabel||tn.selectedText&&en.ariaLabelledby&&this.matches(":focus-within")){var rn=refreshInputLabel(this,en);Object.assign(nn,{inputLabel:rn})}return nn}},{key:"ariaLabel",get:function get(){return this[Cp].ariaLabel},set:function set(en){this[Cp].removingAriaAttribute||this[_p]({ariaLabel:String(en)})}},{key:"ariaLabelledby",get:function get(){return this[Cp].ariaLabelledby},set:function set(en){this[Cp].removingAriaAttribute||this[_p]({ariaLabelledby:String(en)})}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(DelegateInputLabel.prototype),Qd,this)||{},{ariaLabel:null,ariaLabelledby:null,inputLabel:null,removingAriaAttribute:!1})}}]),DelegateInputLabel}(en)}function getLabelFromElement(en){if("selectedText"in en)return en.selectedText;if("value"in en&&"options"in en){var tn=en.value,nn=en.options.find((function(en){return en.value===tn}));return nn?nn.innerText:""}return"value"in en?en.value:en.innerText}function refreshInputLabel(en,tn){var nn=tn.ariaLabel,rn=tn.ariaLabelledby,an=en.isConnected?en.getRootNode():null,sn=null;if(rn&&an)sn=rn.split(" ").map((function(nn){var rn=an.getElementById(nn);return rn?rn===en&&null!==tn.value?tn.selectedText:getLabelFromElement(rn):""})).join(" ");else if(nn)sn=nn;else if(an){var cn=en.id;if(cn){var un=an.querySelector('[for="'.concat(cn,'"]'));un instanceof HTMLElement&&(sn=getLabelFromElement(un))}if(null===sn){var dn=en.closest("label");dn&&(sn=getLabelFromElement(dn))}}return sn&&(sn=sn.trim()),sn}function DelegateInputSelectionMixin(en){return function(en){_inherits(DelegateInputSelection,en);var tn=_createSuper(DelegateInputSelection);function DelegateInputSelection(){return _classCallCheck(this,DelegateInputSelection),tn.apply(this,arguments)}return _createClass(DelegateInputSelection,[{key:"select",value:function select(){this[sp].select()}},{key:"setRangeText",value:function setRangeText(){var en;(en=this[sp]).setRangeText.apply(en,arguments)}},{key:"setSelectionRange",value:function setSelectionRange(){var en;(en=this[sp]).setSelectionRange.apply(en,arguments);var tn=document.createElement("input");tn.select}},{key:"selectionEnd",get:function get(){return this[sp].selectionEnd},set:function set(en){this[sp].selectionEnd=en}},{key:"selectionStart",get:function get(){return this[sp].selectionStart},set:function set(en){this[sp].selectionStart=en}}]),DelegateInputSelection}(en)}function _templateObject2(){var en=_taggedTemplateLiteral(["\n <style>\n :host {\n outline: none;\n }\n\n :host([focus-visible]:focus-within) {\n outline-color: Highlight; /* Firefox */\n outline-color: -webkit-focus-ring-color; /* All other browsers */\n outline-style: auto;\n }\n </style>\n "]);return _templateObject2=function _templateObject2(){return en},en}function _templateObject(){var en=_taggedTemplateLiteral([""]);return _templateObject=function _templateObject(){return en},en}var wh=!1,xh=Symbol("focusVisibleChangedListener");function FocusVisibleMixin(en){return function(en){_inherits(FocusVisible,en);var tn=_createSuper(FocusVisible);function FocusVisible(){var en;return _classCallCheck(this,FocusVisible),(en=tn.call(this)).addEventListener("focusout",(function(tn){Promise.resolve().then((function(){var nn=tn.relatedTarget||document.activeElement,rn=_assertThisInitialized(en)===nn,an=deepContains(_assertThisInitialized(en),nn);!rn&&!an&&(en[_p]({focusVisible:!1}),document.removeEventListener("focusvisiblechange",en[xh]),en[xh]=null)}))})),en.addEventListener("focusin",(function(){Promise.resolve().then((function(){en[Cp].focusVisible!==wh&&en[_p]({focusVisible:wh}),en[xh]||(en[xh]=function(){return function refreshFocus(en){en[_p]({focusVisible:wh})}(_assertThisInitialized(en))},document.addEventListener("focusvisiblechange",en[xh]))}))})),en}return _createClass(FocusVisible,[{key:gp,value:function value(en){if(_get(_getPrototypeOf(FocusVisible.prototype),gp,this)&&_get(_getPrototypeOf(FocusVisible.prototype),gp,this).call(this,en),en.focusVisible){var tn=this[Cp].focusVisible;this.toggleAttribute("focus-visible",tn)}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(FocusVisible.prototype),Qd,this)||{},{focusVisible:!1})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(FocusVisible.prototype),Rp,this)||Xp.html(_templateObject());return en.content.append(Wp(_templateObject2())),en}}]),FocusVisible}(en)}function updateKeyboardActive(en){if(wh!==en){wh=en;var tn=new CustomEvent("focus-visible-changed",{detail:{focusVisible:wh}});document.dispatchEvent(tn);var nn=new CustomEvent("focusvisiblechange",{detail:{focusVisible:wh}});document.dispatchEvent(nn)}}function FormElementMixin(en){return function(tn){_inherits(FormElement,tn);var nn=_createSuper(FormElement);function FormElement(){var en;_classCallCheck(this,FormElement);var tn=_assertThisInitialized(en=nn.call(this));return!en[pp]&&tn.attachInternals&&(en[pp]=tn.attachInternals()),en}return _createClass(FormElement,[{key:"checkValidity",value:function checkValidity(){return this[pp].checkValidity()}},{key:gp,value:function value(en){if(_get(_getPrototypeOf(FormElement.prototype),gp,this)&&_get(_getPrototypeOf(FormElement.prototype),gp,this).call(this,en),en.name){var tn=this[Cp].name;tn?this.setAttribute("name",tn):this.removeAttribute("name")}if(this[pp]&&this[pp].setValidity&&(en.valid||en.validationMessage)){var nn=this[Cp],rn=nn.valid,an=nn.validationMessage;rn?this[pp].setValidity({}):this[pp].setValidity({customError:!0},an)}}},{key:mp,value:function value(en){_get(_getPrototypeOf(FormElement.prototype),mp,this)&&_get(_getPrototypeOf(FormElement.prototype),mp,this).call(this,en),en.value&&this[pp]&&this[pp].setFormValue(this[Cp].value,this[Cp])}},{key:"reportValidity",value:function reportValidity(){return this[pp].reportValidity()}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(FormElement.prototype),Qd,this)||{},{name:"",validationMessage:"",valid:!0})}},{key:"internals",get:function get(){return this[pp]}},{key:"form",get:function get(){return this[pp].form}},{key:"name",get:function get(){return this[Cp]?this[Cp].name:""},set:function set(tn){var nn=String(tn);"name"in en.prototype&&_set(_getPrototypeOf(FormElement.prototype),"name",nn,this,!0),this[_p]({name:nn})}},{key:"type",get:function get(){return _get(_getPrototypeOf(FormElement.prototype),"type",this)||this.localName}},{key:"validationMessage",get:function get(){return this[Cp].validationMessage}},{key:"validity",get:function get(){return this[pp].validity}},{key:"willValidate",get:function get(){return this[pp].willValidate}}],[{key:"formAssociated",get:function get(){return!0}}]),FormElement}(en)}window.addEventListener("keydown",(function(){updateKeyboardActive(!0)}),{capture:!0}),window.addEventListener("mousedown",(function(){updateKeyboardActive(!1)}),{capture:!0});var Sh=function(en){_inherits(Hidden,en);var tn=_createSuper(Hidden);function Hidden(){return _classCallCheck(this,Hidden),tn.apply(this,arguments)}return _createClass(Hidden,[{key:gp,value:function value(en){_get(_getPrototypeOf(Hidden.prototype),gp,this).call(this,en),this[zd]&&this.setAttribute("hidden","")}}]),Hidden}(bh),Ch=Qr.f,kh=yn.f,Bh=wn.f,Eh=Lo.trim,Ph="Number",Lh=nn.Number,Th=Lh.prototype,Nh=classofRaw(Li(Th))==Ph,toNumber=function(en){var tn,nn,rn,an,sn,cn,un,dn,pn=toPrimitive(en,!1);if("string"==typeof pn&&pn.length>2)if(43===(tn=(pn=Eh(pn)).charCodeAt(0))||45===tn){if(88===(nn=pn.charCodeAt(2))||120===nn)return NaN}else if(48===tn){switch(pn.charCodeAt(1)){case 66:case 98:rn=2,an=49;break;case 79:case 111:rn=8,an=55;break;default:return+pn}for(cn=(sn=pn.slice(2)).length,un=0;un<cn;un++)if((dn=sn.charCodeAt(un))<48||dn>an)return NaN;return parseInt(sn,rn)}return+pn};if(Xr(Ph,!Lh(" 0o1")||!Lh("0b1")||Lh("+0x1"))){for(var Ih,Oh=function Number(en){var tn=arguments.length<1?0:en,nn=this;return nn instanceof Oh&&(Nh?fails((function(){Th.valueOf.call(nn)})):classofRaw(nn)!=Ph)?inheritIfRequired(new Lh(toNumber(tn)),nn,Oh):toNumber(tn)},Fh=rn?Ch(Lh):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Uh=0;Fh.length>Uh;Uh++)has(Lh,Ih=Fh[Uh])&&!has(Oh,Ih)&&Bh(Oh,Ih,kh(Lh,Ih));Oh.prototype=Th,Th.constructor=Oh,qn(nn,Ph,Oh)}function KeyboardMixin(en){return function(en){_inherits(Keyboard,en);var tn=_createSuper(Keyboard);function Keyboard(){var en;return _classCallCheck(this,Keyboard),(en=tn.call(this)).addEventListener("keydown",function(){var tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(tn){return regeneratorRuntime.wrap((function _callee$(nn){for(;;)switch(nn.prev=nn.next){case 0:return en[hp]=!0,en[Cp].focusVisible||en[_p]({focusVisible:!0}),en[cp](tn)&&(tn.preventDefault(),tn.stopImmediatePropagation()),nn.next=6,Promise.resolve();case 6:en[hp]=!1;case 7:case"end":return nn.stop()}}),_callee)})));return function(en){return tn.apply(this,arguments)}}()),en}return _createClass(Keyboard,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){var rn;"tabindex"===en?(null===nn?rn=-1:(rn=Number(nn),isNaN(rn)&&(rn=this[Hd]?this[Hd]:0)),this.tabIndex=rn):_get(_getPrototypeOf(Keyboard.prototype),"attributeChangedCallback",this).call(this,en,tn,nn)}},{key:cp,value:function value(en){return!!_get(_getPrototypeOf(Keyboard.prototype),cp,this)&&_get(_getPrototypeOf(Keyboard.prototype),cp,this).call(this,en)}},{key:gp,value:function value(en){_get(_getPrototypeOf(Keyboard.prototype),gp,this)&&_get(_getPrototypeOf(Keyboard.prototype),gp,this).call(this,en),en.tabIndex&&(this.tabIndex=this[Cp].tabIndex)}},{key:Qd,get:function get(){var en=this[Gd]?-1:0;return Object.assign(_get(_getPrototypeOf(Keyboard.prototype),Qd,this)||{},{tabIndex:en})}},{key:"tabIndex",get:function get(){return _get(_getPrototypeOf(Keyboard.prototype),"tabIndex",this)},set:function set(en){_get(_getPrototypeOf(Keyboard.prototype),"tabIndex",this)!==en&&_set(_getPrototypeOf(Keyboard.prototype),"tabIndex",en,this,!0),this[vp]||this[_p]({tabIndex:en})}}]),Keyboard}(en)}var Mh=Symbol("documentMouseupListener");function PopupDragSelectMixin(en){return function(en){_inherits(PopupDragSelect,en);var tn=_createSuper(PopupDragSelect);function PopupDragSelect(){return _classCallCheck(this,PopupDragSelect),tn.apply(this,arguments)}return _createClass(PopupDragSelect,[{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(PopupDragSelect.prototype),"connectedCallback",this).call(this),listenIfOpenAndConnected(this)}},{key:"disconnectedCallback",value:function disconnectedCallback(){_get(_getPrototypeOf(PopupDragSelect.prototype),"disconnectedCallback",this)&&_get(_getPrototypeOf(PopupDragSelect.prototype),"disconnectedCallback",this).call(this),listenIfOpenAndConnected(this)}},{key:mp,value:function value(en){_get(_getPrototypeOf(PopupDragSelect.prototype),mp,this).call(this,en),en.opened&&listenIfOpenAndConnected(this)}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(PopupDragSelect.prototype),kp,this).call(this,en,tn);return tn.opened&&en.opened&&Object.assign(nn,{dragSelect:!0}),nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupDragSelect.prototype),Qd,this)||{},{dragSelect:!0})}}]),PopupDragSelect}(en)}function handleMouseup(en){return _handleMouseup.apply(this,arguments)}function _handleMouseup(){return(_handleMouseup=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en){var tn,nn,rn,an,sn,cn;return regeneratorRuntime.wrap((function _callee$(un){for(;;)switch(un.prev=un.next){case 0:if(nn=(tn=this)[wp].elementsFromPoint(en.clientX,en.clientY),!tn.opened){un.next=16;break}if(rn=nn.indexOf(tn[ap].source)>=0,an=tn[ap].popup,sn=nn.indexOf(an)>=0,cn=an.frame&&nn.indexOf(an.frame)>=0,!rn){un.next=11;break}tn[Cp].dragSelect&&(tn[hp]=!0,tn[_p]({dragSelect:!1}),tn[hp]=!1),un.next=16;break;case 11:if(sn||cn){un.next=16;break}return tn[hp]=!0,un.next=15,tn.close();case 15:tn[hp]=!1;case 16:case"end":return un.stop()}}),_callee,this)})))).apply(this,arguments)}function listenIfOpenAndConnected(en){en[Cp].opened&&en.isConnected?en[Mh]||(en[Mh]=handleMouseup.bind(en),document.addEventListener("mouseup",en[Mh])):en[Mh]&&(document.removeEventListener("mouseup",en[Mh]),en[Mh]=null)}function DisabledMixin(en){return function(en){_inherits(Disabled,en);var tn=_createSuper(Disabled);function Disabled(){return _classCallCheck(this,Disabled),tn.apply(this,arguments)}return _createClass(Disabled,[{key:mp,value:function value(en){if(_get(_getPrototypeOf(Disabled.prototype),mp,this)&&_get(_getPrototypeOf(Disabled.prototype),mp,this).call(this,en),en.disabled&&(this.toggleAttribute("disabled",this.disabled),this[hp])){var tn=new CustomEvent("disabled-changed",{bubbles:!0});this.dispatchEvent(tn);var nn=new CustomEvent("disabledchange",{bubbles:!0});this.dispatchEvent(nn)}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Disabled.prototype),Qd,this)||{},{disabled:!1})}},{key:"disabled",get:function get(){return this[Cp].disabled},set:function set(en){this[_p]({disabled:en})}}]),Disabled}(en)}function LanguageDirectionMixin(en){return function(en){_inherits(LanguageDirection,en);var tn=_createSuper(LanguageDirection);function LanguageDirection(){return _classCallCheck(this,LanguageDirection),tn.apply(this,arguments)}return _createClass(LanguageDirection,[{key:"connectedCallback",value:function connectedCallback(){var en="rtl"===getComputedStyle(this).direction;this[_p]({rightToLeft:en}),_get(_getPrototypeOf(LanguageDirection.prototype),"connectedCallback",this).call(this)}}]),LanguageDirection}(en)}function availableSpace(en,tn,nn,rn){var an=getSourceOrigin(en,nn,rn),sn=0,cn=0,un="above"===nn||"below"===nn;switch(nn){case"above":sn=an.y-tn.top;break;case"below":sn=tn.bottom-an.y;break;case"left":cn=an.x-tn.left;break;case"right":cn=tn.right-an.x}switch(rn){case"bottom":sn=an.y-tn.top;break;case"center":un?cn=tn.width:sn=tn.height;break;case"stretch":un?cn=en.width:sn=en.height;break;case"left":cn=tn.right-an.x;break;case"right":cn=an.x-tn.left;break;case"top":sn=tn.bottom-an.y}return{height:sn=Math.max(0,sn),width:cn=Math.max(0,cn)}}function getSourceOrigin(en,tn,nn){var rn=0,an=0,sn="above"===tn||"below"===tn;switch(tn){case"above":an=en.top;break;case"below":an=en.bottom;break;case"left":case"right":rn=en[tn]}switch(nn){case"bottom":case"top":an=en[nn];break;case"left":case"right":rn=en[nn];break;case"center":sn?rn=en.left+en.width/2:an=en.top+en.height/2;break;case"stretch":sn?rn=en.left:an=en.top}return{x:rn,y:an}}function layoutPopup(en,tn,nn,rn){var an=function normalizeOptions(en){var tn=en.align,nn=en.direction,rn=en.rightToLeft,an="below",sn={above:"above",below:"below",column:"below","column-reverse":"above",left:"left",right:"right",row:rn?"left":"right","row-reverse":rn?"right":"left"}[nn]||an,cn={above:"horizontal",below:"horizontal",left:"vertical",right:"vertical"}[sn],un={horizontal:"left",vertical:"top"}[cn];return{align:{horizontal:{center:"center",end:rn?"left":"right",left:"left",right:"right",start:rn?"right":"left",stretch:"stretch"},vertical:{bottom:"bottom",center:"center",end:"bottom",start:"top",stretch:"stretch",top:"top"}}[cn][tn]||un,direction:sn,rightToLeft:rn}}(rn),sn=function prioritizedLayouts(en,tn){var nn={above:"below",below:"above",left:"right",right:"left"},rn={top:"bottom",bottom:"top",left:"right",right:"left"},an=[{align:tn,direction:en}];"center"===tn||"stretch"===tn?an.push({align:tn,direction:nn[en]}):(an.push({align:rn[tn],direction:en}),an.push({align:tn,direction:nn[en]}),an.push({align:rn[tn],direction:nn[en]}));return an}(an.direction,an.align);sn.sort((function(rn,an){return function compareLayouts(en,tn,nn,rn,an){var sn=availableSpace(nn,an,en.direction,en.align),cn=availableSpace(nn,an,tn.direction,tn.align),un=rn.width<=sn.width,dn=rn.height<=sn.height,pn=un||dn,hn=un&&dn,gn=rn.width<=cn.width,An=rn.height<=cn.height,mn=gn||An,vn=gn&&An,yn=sn.width*sn.height,_n=cn.width*cn.height;return hn&&vn?0:hn?-1:vn?1:pn&&!mn?-1:mn&&!pn?1:pn&&yn>_n?-1:mn&&_n>yn?1:yn>_n?-1:_n>yn?1:0}(rn,an,en,tn,nn)}));var cn=sn[0];return cn.rect=function getPositionedRect(en,tn,nn,rn,an){var sn=getSourceOrigin(en,rn,an),cn=nn.x,un=nn.y,dn=nn.bottom,pn=nn.right,hn=0,gn=0,An=tn.height,mn=tn.width,vn="above"===rn||"below"===rn;switch(rn){case"above":gn=sn.y-tn.height,dn=sn.y;break;case"below":gn=sn.y,un=sn.y;break;case"left":hn=sn.x-tn.width,pn=sn.x;break;case"right":hn=sn.x,cn=sn.x}switch(an){case"bottom":gn=sn.y-tn.height,dn=sn.y;break;case"left":hn=sn.x,cn=sn.x;break;case"center":vn?hn=sn.x-tn.width/2:gn=sn.y-tn.height/2;break;case"right":hn=sn.x-tn.width,pn=sn.x;break;case"stretch":vn?(hn=sn.x,mn=en.width):(gn=sn.y,An=en.height);break;case"top":gn=sn.y,un=sn.y}return hn=Math.max(hn,cn),gn=Math.max(gn,un),mn=Math.min(mn,pn-hn),An=Math.min(An,dn-gn),new DOMRect(hn,gn,mn,An)}(en,tn,nn,cn.direction,cn.align),cn}var Rh=Symbol("closePromise"),Dh=Symbol("closeResolve");function OpenCloseMixin(en){return function(en){_inherits(OpenClose,en);var tn,nn,rn,an=_createSuper(OpenClose);function OpenClose(){return _classCallCheck(this,OpenClose),an.apply(this,arguments)}return _createClass(OpenClose,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if("opened"===en){var rn=booleanAttributeValue(en,nn);this.opened!==rn&&(this.opened=rn)}else _get(_getPrototypeOf(OpenClose.prototype),"attributeChangedCallback",this).call(this,en,tn,nn)}},{key:"close",value:(rn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en){return regeneratorRuntime.wrap((function _callee$(tn){for(;;)switch(tn.prev=tn.next){case 0:if(!_get(_getPrototypeOf(OpenClose.prototype),"close",this)){tn.next=3;break}return tn.next=3,_get(_getPrototypeOf(OpenClose.prototype),"close",this).call(this);case 3:return this[_p]({closeResult:en}),tn.next=6,this.toggle(!1);case 6:case"end":return tn.stop()}}),_callee,this)}))),function close(en){return rn.apply(this,arguments)})},{key:"open",value:(nn=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){return regeneratorRuntime.wrap((function _callee2$(en){for(;;)switch(en.prev=en.next){case 0:if(!_get(_getPrototypeOf(OpenClose.prototype),"open",this)){en.next=3;break}return en.next=3,_get(_getPrototypeOf(OpenClose.prototype),"open",this).call(this);case 3:return this[_p]({closeResult:void 0}),en.next=6,this.toggle(!0);case 6:case"end":return en.stop()}}),_callee2,this)}))),function open(){return nn.apply(this,arguments)})},{key:gp,value:function value(en){(_get(_getPrototypeOf(OpenClose.prototype),gp,this).call(this,en),en.opened)&&setInternalState$7(this,"opened",this[Cp].opened);en.closeFinished&&setInternalState$7(this,"closed",this[Cp].closeFinished)}},{key:mp,value:function value(en){if(_get(_getPrototypeOf(OpenClose.prototype),mp,this)&&_get(_getPrototypeOf(OpenClose.prototype),mp,this).call(this,en),en.opened&&this[hp]){var tn=new CustomEvent("opened-changed",{bubbles:!0,detail:{closeResult:this[Cp].closeResult,opened:this[Cp].opened}});this.dispatchEvent(tn);var nn=new CustomEvent("openedchange",{bubbles:!0,detail:{closeResult:this[Cp].closeResult,opened:this[Cp].opened}});if(this.dispatchEvent(nn),this[Cp].opened){var rn=new CustomEvent("opened",{bubbles:!0});this.dispatchEvent(rn);var an=new CustomEvent("open",{bubbles:!0});this.dispatchEvent(an)}else{var sn=new CustomEvent("closed",{bubbles:!0,detail:{closeResult:this[Cp].closeResult}});this.dispatchEvent(sn);var cn=new CustomEvent("close",{bubbles:!0,detail:{closeResult:this[Cp].closeResult}});this.dispatchEvent(cn)}}var un=this[Dh];this.closeFinished&&un&&(this[Dh]=null,this[Rh]=null,un(this[Cp].closeResult))}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(OpenClose.prototype),kp,this)?_get(_getPrototypeOf(OpenClose.prototype),kp,this).call(this,en,tn):{};if(tn.openCloseEffects||tn.effect||tn.effectPhase||tn.opened){var rn=en.effect,an=en.effectPhase,sn=en.openCloseEffects,cn=en.opened,un=sn?"close"===rn&&"after"===an:!cn;Object.assign(nn,{closeFinished:un})}return nn}},{key:"toggle",value:(tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var en,tn,nn=arguments;return regeneratorRuntime.wrap((function _callee3$(rn){for(;;)switch(rn.prev=rn.next){case 0:if(en=nn.length>0&&void 0!==nn[0]?nn[0]:!this.opened,!_get(_getPrototypeOf(OpenClose.prototype),"toggle",this)){rn.next=4;break}return rn.next=4,_get(_getPrototypeOf(OpenClose.prototype),"toggle",this).call(this,en);case 4:if(en===this[Cp].opened){rn.next=10;break}return tn={opened:en},this[Cp].openCloseEffects&&(tn.effect=en?"open":"close","after"===this[Cp].effectPhase&&(tn.effectPhase="before")),rn.next=10,this[_p](tn);case 10:case"end":return rn.stop()}}),_callee3,this)}))),function toggle(){return tn.apply(this,arguments)})},{key:"whenClosed",value:function whenClosed(){var en=this;return this[Rh]||(this[Rh]=new Promise((function(tn){en[Dh]=tn}))),this[Rh]}},{key:"closed",get:function get(){return this[Cp]&&!this[Cp].opened}},{key:"closeFinished",get:function get(){return this[Cp].closeFinished}},{key:"closeResult",get:function get(){return this[Cp].closeResult}},{key:Qd,get:function get(){var en={closeResult:null,opened:!1};return this[Sp]&&Object.assign(en,{closeFinished:!0,effect:"close",effectPhase:"after",openCloseEffects:!0}),Object.assign(_get(_getPrototypeOf(OpenClose.prototype),Qd,this)||{},en)}},{key:"opened",get:function get(){return this[Cp]&&this[Cp].opened},set:function set(en){this[_p]({closeResult:void 0}),this.toggle(en)}}]),OpenClose}(en)}function AriaRoleMixin(en){return function(en){_inherits(AriaRole,en);var tn=_createSuper(AriaRole);function AriaRole(){return _classCallCheck(this,AriaRole),tn.apply(this,arguments)}return _createClass(AriaRole,[{key:gp,value:function value(en){if(_get(_getPrototypeOf(AriaRole.prototype),gp,this)&&_get(_getPrototypeOf(AriaRole.prototype),gp,this).call(this,en),en.role){var tn=this[Cp].role;tn?this.setAttribute("role",tn):this.removeAttribute("role")}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(AriaRole.prototype),Qd,this)||{},{role:null})}},{key:"role",get:function get(){return _get(_getPrototypeOf(AriaRole.prototype),"role",this)},set:function set(en){var tn=String(en);_set(_getPrototypeOf(AriaRole.prototype),"role",tn,this,!0),this[vp]||this[_p]({s:tn})}}]),AriaRole}(en)}function _templateObject$1(){var en=_taggedTemplateLiteral(["\n <style>\n :host {\n display: inline-block;\n height: 100%;\n left: 0;\n position: fixed;\n top: 0;\n touch-action: manipulation;\n width: 100%;\n }\n </style>\n <slot></slot>\n "]);return _templateObject$1=function _templateObject(){return en},en}var jh=function(en){_inherits(Backdrop,en);var tn=_createSuper(Backdrop);function Backdrop(){return _classCallCheck(this,Backdrop),tn.apply(this,arguments)}return _createClass(Backdrop,[{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Backdrop.prototype),Qd,this),{role:"none"})}},{key:Rp,get:function get(){return Xp.html(_templateObject$1())}}]),Backdrop}(AriaRoleMixin(bh));function _templateObject$2(){var en=_taggedTemplateLiteral(["\n <style>\n :host {\n display: inline-block;\n position: relative;\n }\n </style>\n <slot></slot>\n "]);return _templateObject$2=function _templateObject(){return en},en}var Qh=function(en){_inherits(OverlayFrame,en);var tn=_createSuper(OverlayFrame);function OverlayFrame(){return _classCallCheck(this,OverlayFrame),tn.apply(this,arguments)}return _createClass(OverlayFrame,[{key:Rp,get:function get(){return Xp.html(_templateObject$2())}}]),OverlayFrame}(bh),Hh=!checkCorrectnessOfIteration((function(en){Array.from(en)}));function _templateObject2$1(){var en=_taggedTemplateLiteral(["\n <style>\n :host([closed]) {\n display: none;\n }\n </style>\n "]);return _templateObject2$1=function _templateObject2(){return en},en}function _templateObject$3(){var en=_taggedTemplateLiteral([""]);return _templateObject$3=function _templateObject(){return en},en}_export({target:"Array",stat:!0,forced:Hh},{from:Xc});var Gh=Symbol("appendedToDocument"),Vh=Symbol("assignedZIndex"),zh=Symbol("restoreFocusToElement");function bringToFront(en){var tn=function maxZIndexInUse(){var en=document.body.querySelectorAll("*"),tn=Array.from(en,(function(en){var tn=getComputedStyle(en),nn=0;if("static"!==tn.position&&"auto"!==tn.zIndex){var rn=tn.zIndex?parseInt(tn.zIndex):0;nn=isNaN(rn)?0:rn}return nn}));return Math.max.apply(Math,_toConsumableArray(tn))}()+1;en[Vh]=tn,en.style.zIndex=tn.toString()}function hasZIndex(en){var tn=getComputedStyle(en).zIndex,nn=en.style.zIndex,rn=!isNaN(parseInt(nn));if("auto"===tn)return rn;if("0"===tn&&!rn){var an=en.assignedSlot||(en instanceof ShadowRoot?en.host:en.parentNode);if(!(an instanceof HTMLElement))return!0;if(!hasZIndex(an))return!1}return!0}function SlotContentMixin(en){return function(en){_inherits(SlotContent,en);var tn=_createSuper(SlotContent);function SlotContent(){return _classCallCheck(this,SlotContent),tn.apply(this,arguments)}return _createClass(SlotContent,[{key:mp,value:function value(en){var tn=this;if(_get(_getPrototypeOf(SlotContent.prototype),mp,this)&&_get(_getPrototypeOf(SlotContent.prototype),mp,this).call(this,en),this[zd]){var nn=this[jd];nn&&nn.addEventListener("slotchange",_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var en;return regeneratorRuntime.wrap((function _callee$(rn){for(;;)switch(rn.prev=rn.next){case 0:return tn[hp]=!0,en=nn.assignedNodes({flatten:!0}),Object.freeze(en),tn[_p]({content:en}),rn.next=6,Promise.resolve();case 6:tn[hp]=!1;case 7:case"end":return rn.stop()}}),_callee)}))))}}},{key:jd,get:function get(){var en=this[wp]&&this[wp].querySelector("slot:not([name])");return this[wp]&&en||console.warn("SlotContentMixin expects ".concat(this.constructor.name," to define a shadow tree that includes a default (unnamed) slot.\nSee https://elix.org/documentation/SlotContentMixin.")),en}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(SlotContent.prototype),Qd,this)||{},{content:null})}}]),SlotContent}(en)}function _templateObject$4(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n display: inline-grid;\n /* Constrain content if overlay\'s height is constrained. */\n grid-template: minmax(0, 1fr) / minmax(0, 1fr);\n max-height: 100vh;\n max-width: 100vw;\n outline: none;\n position: fixed;\n -webkit-tap-highlight-color: transparent;\n }\n\n [part~="frame"] {\n box-sizing: border-box;\n display: grid;\n overscroll-behavior: contain;\n pointer-events: initial;\n position: relative;\n }\n\n #frameContent {\n display: grid;\n grid-template: minmax(0, 1fr) / minmax(0, 1fr);\n overflow: hidden;\n }\n </style>\n <div id="backdrop" part="backdrop" tabindex="-1"></div>\n <div id="frame" part="frame" role="none">\n <div id="frameContent">\n <slot></slot>\n </div>\n </div>\n ']);return _templateObject$4=function _templateObject(){return en},en}var Kh=function(en){_inherits(Overlay,en);var tn=_createSuper(Overlay);function Overlay(){return _classCallCheck(this,Overlay),tn.apply(this,arguments)}return _createClass(Overlay,[{key:gp,value:function value(en){_get(_getPrototypeOf(Overlay.prototype),gp,this).call(this,en),renderParts(this[wp],this[Cp],en)}},{key:mp,value:function value(en){_get(_getPrototypeOf(Overlay.prototype),mp,this).call(this,en),en.opened&&this[Cp].content&&this[Cp].content.forEach((function(en){en[Rd]&&en[Rd]()}))}},{key:"backdrop",get:function get(){return this[ap]&&this[ap].backdrop}},{key:"backdropPartType",get:function get(){return this[Cp].backdropPartType},set:function set(en){this[_p]({backdropPartType:en})}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Overlay.prototype),Qd,this),{backdropPartType:jh,framePartType:Qh})}},{key:"frame",get:function get(){return this[ap].frame}},{key:"framePartType",get:function get(){return this[Cp].framePartType},set:function set(en){this[_p]({framePartType:en})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(Overlay.prototype),Rp,this);return en.content.append(Wp(_templateObject$4())),renderParts(en.content,this[Cp]),en}}]),Overlay}(OpenCloseMixin(function OverlayMixin(en){return function(en){_inherits(Overlay,en);var tn,nn=_createSuper(Overlay);function Overlay(){return _classCallCheck(this,Overlay),nn.apply(this,arguments)}return _createClass(Overlay,[{key:"open",value:(tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(en){for(;;)switch(en.prev=en.next){case 0:if(this[Cp].persistent||this.isConnected||(this[Gh]=!0,document.body.append(this)),!_get(_getPrototypeOf(Overlay.prototype),"open",this)){en.next=4;break}return en.next=4,_get(_getPrototypeOf(Overlay.prototype),"open",this).call(this);case 4:case"end":return en.stop()}}),_callee,this)}))),function open(){return tn.apply(this,arguments)})},{key:gp,value:function value(en){var tn=this;(_get(_getPrototypeOf(Overlay.prototype),gp,this)&&_get(_getPrototypeOf(Overlay.prototype),gp,this).call(this,en),this[zd]&&this.addEventListener("blur",(function(en){var nn=en.relatedTarget||document.activeElement;nn instanceof HTMLElement&&(deepContains(tn,nn)||(tn.opened?tn[zh]=nn:(nn.focus(),tn[zh]=null)))})),en.effectPhase||en.opened||en.persistent)&&(this[Cp].persistent||((void 0===this.closeFinished?this.closed:this.closeFinished)?this[Vh]&&(this.style.zIndex="",this[Vh]=null):this[Vh]?this.style.zIndex=this[Vh]:hasZIndex(this)||bringToFront(this)))}},{key:mp,value:function value(en){if(_get(_getPrototypeOf(Overlay.prototype),mp,this)&&_get(_getPrototypeOf(Overlay.prototype),mp,this).call(this,en),this[zd]&&this[Cp].persistent&&!hasZIndex(this)&&bringToFront(this),en.opened&&this[Cp].autoFocus)if(this[Cp].opened){this[zh]||document.activeElement===document.body||(this[zh]=document.activeElement);var tn=firstFocusableElement(this);tn&&tn.focus()}else this[zh]&&(this[zh].focus(),this[zh]=null);!this[zd]&&!this[Cp].persistent&&this.closeFinished&&this[Gh]&&(this[Gh]=!1,this.parentNode&&this.parentNode.removeChild(this))}},{key:"autoFocus",get:function get(){return this[Cp].autoFocus},set:function set(en){this[_p]({autoFocus:en})}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Overlay.prototype),Qd,this)||{},{autoFocus:!0,persistent:!1})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(Overlay.prototype),Rp,this)||Xp.html(_templateObject$3());return en.content.append(Wp(_templateObject2$1())),en}}]),Overlay}(en)}(SlotContentMixin(bh))));function renderParts(en,tn,nn){if(!nn||nn.backdropPartType){var rn=tn.backdropPartType,an=en.getElementById("backdrop");an&&transmute(an,rn)}if(!nn||nn.framePartType){var sn=tn.framePartType,cn=en.getElementById("frame");cn&&transmute(cn,sn)}}var qh=Symbol("implicitCloseListener");function blurHandler(en){return _blurHandler.apply(this,arguments)}function _blurHandler(){return(_blurHandler=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en){var tn,nn;return regeneratorRuntime.wrap((function _callee$(rn){for(;;)switch(rn.prev=rn.next){case 0:if(tn=this,!((nn=en.relatedTarget||document.activeElement)instanceof Element)||deepContains(tn,nn)){rn.next=7;break}return tn[hp]=!0,rn.next=6,tn.close({canceled:"window blur"});case 6:tn[hp]=!1;case 7:case"end":return rn.stop()}}),_callee,this)})))).apply(this,arguments)}function closeHandler(en){return _closeHandler.apply(this,arguments)}function _closeHandler(){return(_closeHandler=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(en){var tn,nn;return regeneratorRuntime.wrap((function _callee2$(rn){for(;;)switch(rn.prev=rn.next){case 0:if(tn=this,nn="resize"!==en.type||tn[Cp].closeOnWindowResize,ownEvent(tn,en)||!nn){rn.next=7;break}return tn[hp]=!0,rn.next=6,tn.close({canceled:"window ".concat(en.type)});case 6:tn[hp]=!1;case 7:case"end":return rn.stop()}}),_callee2,this)})))).apply(this,arguments)}var $h=function(en){_inherits(Popup,en);var tn=_createSuper(Popup);function Popup(){return _classCallCheck(this,Popup),tn.apply(this,arguments)}return _createClass(Popup,[{key:gp,value:function value(en){_get(_getPrototypeOf(Popup.prototype),gp,this).call(this,en),en.backdropPartType&&(this[ap].backdrop.addEventListener("mousedown",mousedownHandler.bind(this)),"PointerEvent"in window||this[ap].backdrop.addEventListener("touchend",mousedownHandler))}}]),Popup}(KeyboardMixin(function PopupModalityMixin(en){return function(en){_inherits(PopupModality,en);var tn=_createSuper(PopupModality);function PopupModality(){return _classCallCheck(this,PopupModality),tn.apply(this,arguments)}return _createClass(PopupModality,[{key:cp,value:function value(en){var tn=!1;switch(en.key){case"Escape":this.close({canceled:"Escape"}),tn=!0}return tn||_get(_getPrototypeOf(PopupModality.prototype),"keydown",this)&&_get(_getPrototypeOf(PopupModality.prototype),"keydown",this).call(this,en)||!1}},{key:gp,value:function value(en){if(_get(_getPrototypeOf(PopupModality.prototype),gp,this)&&_get(_getPrototypeOf(PopupModality.prototype),gp,this).call(this,en),this[zd]&&this.addEventListener("blur",blurHandler.bind(this)),en.role){var tn=this[Cp].role;this.setAttribute("role",tn)}}},{key:mp,value:function value(en){var tn=this;(_get(_getPrototypeOf(PopupModality.prototype),mp,this)&&_get(_getPrototypeOf(PopupModality.prototype),mp,this).call(this,en),en.opened)&&(this.opened?("requestIdleCallback"in window?window.requestIdleCallback:setTimeout)((function(){tn.opened&&function addEventListeners(en){en[qh]=closeHandler.bind(en),window.addEventListener("blur",en[qh]),window.addEventListener("resize",en[qh]),window.addEventListener("scroll",en[qh])}(tn)})):function removeEventListeners(en){en[qh]&&(window.removeEventListener("blur",en[qh]),window.removeEventListener("resize",en[qh]),window.removeEventListener("scroll",en[qh]),en[qh]=null)}(this))}},{key:"closeOnWindowResize",get:function get(){return this[Cp].closeOnWindowResize},set:function set(en){this[_p]({closeOnWindowResize:en})}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupModality.prototype),Qd,this)||{},{closeOnWindowResize:!0,role:"alert"})}},{key:"role",get:function get(){return _get(_getPrototypeOf(PopupModality.prototype),"role",this)},set:function set(en){_set(_getPrototypeOf(PopupModality.prototype),"role",en,this,!0),this[vp]||this[_p]({role:en})}}]),PopupModality}(en)}(Kh)));function mousedownHandler(en){return _mousedownHandler.apply(this,arguments)}function _mousedownHandler(){return(_mousedownHandler=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en){var tn;return regeneratorRuntime.wrap((function _callee$(nn){for(;;)switch(nn.prev=nn.next){case 0:return(tn=this)[hp]=!0,nn.next=4,tn.close({canceled:"mousedown outside"});case 4:tn[hp]=!1,en.preventDefault(),en.stopPropagation();case 7:case"end":return nn.stop()}}),_callee,this)})))).apply(this,arguments)}function _templateObject$5(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n display: inline-block;\n position: relative;\n }\n\n [part~="source"] {\n height: 100%;\n -webkit-tap-highlight-color: transparent;\n touch-action: manipulation;\n width: 100%;\n }\n\n [part~="popup"] {\n max-height: 100%;\n max-width: 100%;\n outline: none;\n position: fixed;\n }\n </style>\n <div id="source" part="source">\n <slot name="source"></slot>\n </div>\n <div id="popup" part="popup" exportparts="backdrop, frame" role="none">\n <slot></slot>\n </div>\n ']);return _templateObject$5=function _templateObject(){return en},en}var Wh=Symbol("resizeListener"),Xh=function(en){_inherits(PopupSource,en);var tn=_createSuper(PopupSource);function PopupSource(){return _classCallCheck(this,PopupSource),tn.apply(this,arguments)}return _createClass(PopupSource,[{key:gp,value:function value(en){var tn=this;(_get(_getPrototypeOf(PopupSource.prototype),gp,this).call(this,en),renderParts$1(this[wp],this[Cp],en),this[zd]||en.ariaHasPopup)&&(null===this[Cp].ariaHasPopup?this[sp].removeAttribute("aria-haspopup"):this[sp].setAttribute("aria-haspopup",this[Cp].ariaHasPopup));if(en.popupPartType&&(this[ap].popup.addEventListener("open",(function(){tn.opened||(tn[hp]=!0,tn.open(),tn[hp]=!1)})),this[ap].popup.addEventListener("close",(function(en){if(!tn.closed){tn[hp]=!0;var nn=en.detail.closeResult;tn.close(nn),tn[hp]=!1}}))),en.opened||en.popupLayout){var nn=this[Cp],rn=nn.opened,an=nn.popupLayout;if(rn)if(an){var sn=this[ap].popup,cn=function getPositiongStylingForLayout(en){var tn=en.align,nn=en.direction,rn=en.rect,an=viewportBounds(),sn={},cn="above"===nn||"below"===nn;switch(nn){case"above":sn.bottom="".concat(an.bottom-rn.bottom,"px");break;case"below":sn.top="".concat(rn.top,"px");break;case"left":sn.right="".concat(an.right-rn.right,"px");break;case"right":sn.left="".concat(rn.left,"px")}switch(tn){case"bottom":sn.bottom="".concat(an.bottom-rn.bottom,"px");break;case"center":case"stretch":cn?(sn.left="".concat(rn.left,"px"),sn.right="".concat(an.right-rn.right,"px")):(sn.bottom="".concat(an.bottom-rn.bottom,"px"),sn.top="".concat(rn.top,"px"));break;case"left":sn.left="".concat(rn.left,"px");break;case"right":sn.right="".concat(an.right-rn.right,"px");break;case"top":sn.top="".concat(rn.top,"px")}return sn}(an);Object.assign(sn.style,cn,{opacity:""})}else Object.assign(this[ap].popup.style,{bottom:"",left:"",opacity:0,right:"",top:""});else Object.assign(this[ap].popup.style,{bottom:"",left:"",opacity:"",right:"",top:""})}if(en.opened){var un=this[Cp].opened;this[ap].popup.opened=un}if(en.disabled&&"disabled"in this[ap].source){var dn=this[Cp].disabled;this[ap].source.disabled=dn}if(en.popupLayout){var pn=this[Cp].popupLayout;if(pn){var hn=pn.align,gn=pn.direction,An=this[ap].popup;"position"in An&&(An.position=gn),"align"in An&&(An.align=hn)}}}},{key:mp,value:function value(en){_get(_getPrototypeOf(PopupSource.prototype),mp,this).call(this,en);var tn=this[Cp].opened;en.opened?tn?function waitThenRenderOpened(en){setTimeout((function(){en[Cp].opened&&(choosePopupLayout(en),function addEventListeners$1(en){var tn=en;tn[Wh]=function(){choosePopupLayout(en)},(window.visualViewport||window).addEventListener("resize",tn[Wh])}(en))}))}(this):function removeEventListeners$1(en){var tn=en;if(tn[Wh]){(window.visualViewport||window).removeEventListener("resize",tn[Wh]),tn[Wh]=null}}(this):en.popupLayout&&this[Cp].opened&&!this[Cp].popupLayout&&choosePopupLayout(this)}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(PopupSource.prototype),kp,this).call(this,en,tn);return(tn.opened&&!en.opened||en.opened&&(tn.popupAlign||tn.popupDirection||tn.rightToLeft))&&Object.assign(nn,{popupLayout:null}),nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupSource.prototype),Qd,this),{ariaHasPopup:"true",popupAlign:"start",popupDirection:"column",popupLayout:null,popupPartType:$h,sourcePartType:"div"})}},{key:sp,get:function get(){return this[ap].source}},{key:"frame",get:function get(){return this[ap].popup.frame}},{key:"horizontalAlign",get:function get(){return this[Cp].popupAlign},set:function set(en){console.warn('The "horizontalAlign" property has been renamed to "popupAlign"; the "horizontal-align" attribute is now "popup-align".'),this[_p]({popupAlign:en})}},{key:"popupAlign",get:function get(){return this[Cp].popupAlign},set:function set(en){this[_p]({popupAlign:en})}},{key:"popupDirection",get:function get(){return this[Cp].popupDirection},set:function set(en){this[_p]({popupDirection:en})}},{key:"popupPosition",get:function get(){return this[Cp].popupPosition},set:function set(en){console.warn('The "popupPosition" property has been renamed to "popupDirection"; the "popup-position" attribute is now "popup-direction".'),this[_p]({popupPosition:en})}},{key:"popupPartType",get:function get(){return this[Cp].popupPartType},set:function set(en){this[_p]({popupPartType:en})}},{key:"sourcePartType",get:function get(){return this[Cp].sourcePartType},set:function set(en){this[_p]({sourcePartType:en})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PopupSource.prototype),Rp,this);return en.content.append(Wp(_templateObject$5())),renderParts$1(en.content,this[Cp]),en}}]),PopupSource}(DisabledMixin(FocusVisibleMixin(LanguageDirectionMixin(OpenCloseMixin(bh)))));function choosePopupLayout(en){var tn=en[Cp],nn=tn.popupAlign,rn=tn.popupDirection,an=tn.rightToLeft,sn=layoutPopup(en[ap].source.getBoundingClientRect(),en[ap].popup.getBoundingClientRect(),viewportBounds(),{align:nn,direction:rn,rightToLeft:an});en[_p]({popupLayout:sn})}function renderParts$1(en,tn,nn){if(!nn||nn.popupPartType){var rn=tn.popupPartType,an=en.getElementById("popup");an&&transmute(an,rn)}if(!nn||nn.sourcePartType){var sn=tn.sourcePartType,cn=en.getElementById("source");cn&&transmute(cn,sn)}}function viewportBounds(){var en=window.visualViewport;return en?new DOMRect(en.offsetLeft,en.offsetTop,en.width,en.height):new DOMRect(0,0,window.innerWidth,window.innerHeight)}function _templateObject$6(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n display: inline-block;\n }\n </style>\n <div id="downIcon" part="toggle-icon down-icon">\n <slot name="down-icon"></slot>\n </div>\n <div id="upIcon" part="toggle-icon up-icon">\n <slot name="up-icon"></slot>\n </div>\n ']);return _templateObject$6=function _templateObject(){return en},en}var Yh=function(en){_inherits(UpDownToggle,en);var tn=_createSuper(UpDownToggle);function UpDownToggle(){return _classCallCheck(this,UpDownToggle),tn.apply(this,arguments)}return _createClass(UpDownToggle,[{key:gp,value:function value(en){if(_get(_getPrototypeOf(UpDownToggle.prototype),gp,this).call(this,en),en.direction){var tn=this[Cp].direction;this[ap].downIcon.style.display="down"===tn?"block":"none",this[ap].upIcon.style.display="up"===tn?"block":"none"}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(UpDownToggle.prototype),Qd,this),{direction:"down"})}},{key:"direction",get:function get(){return this[Cp].direction},set:function set(en){this[_p]({direction:en})}},{key:Rp,get:function get(){return Xp.html(_templateObject$6())}}]),UpDownToggle}(DisabledMixin(bh));function _templateObject2$2(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="popup-toggle"] {\n outline: none;\n }\n\n [part~="source"] {\n align-items: center;\n display: flex;\n }\n </style>\n ']);return _templateObject2$2=function _templateObject2(){return en},en}function _templateObject$7(){var en=_taggedTemplateLiteral(['\n <div\n id="popupToggle"\n part="popup-toggle"\n exportparts="toggle-icon, down-icon, up-icon"\n tabindex="-1"\n ></div>\n ']);return _templateObject$7=function _templateObject(){return en},en}function PopupToggleMixin(en){return function(en){_inherits(PopupToggle,en);var tn=_createSuper(PopupToggle);function PopupToggle(){return _classCallCheck(this,PopupToggle),tn.apply(this,arguments)}return _createClass(PopupToggle,[{key:gp,value:function value(en){if(_get(_getPrototypeOf(PopupToggle.prototype),gp,this).call(this,en),renderParts$2(this[wp],this[Cp],en),en.popupDirection||en.popupTogglePartType){var tn=this[Cp].popupDirection,nn="above"===tn||"column-reverse"===tn?"up":"down",rn=this[ap].popupToggle;"direction"in rn&&(rn.direction=nn)}if(en.disabled){var an=this[Cp].disabled;this[ap].popupToggle.disabled=an}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupToggle.prototype),Qd,this)||{},{popupTogglePartType:Yh})}},{key:"popupTogglePartType",get:function get(){return this[Cp].popupTogglePartType},set:function set(en){this[_p]({popupTogglePartType:en})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PopupToggle.prototype),Rp,this),tn=en.content.querySelector('[part~="source"]');return tn&&tn.append(Wp(_templateObject$7())),renderParts$2(en.content,this[Cp]),en.content.append(Wp(_templateObject2$2())),en}}]),PopupToggle}(en)}function renderParts$2(en,tn,nn){if(!nn||nn.popupTogglePartType){var rn=tn.popupTogglePartType,an=en.getElementById("popupToggle");an&&transmute(an,rn)}}function _templateObject2$3(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="source"] {\n background-color: inherit;\n display: inline-grid;\n grid-template-columns: 1fr auto;\n position: relative;\n }\n\n [part~="input"] {\n outline: none;\n }\n </style>\n ']);return _templateObject2$3=function _templateObject2(){return en},en}function _templateObject$8(){var en=_taggedTemplateLiteral(['\n <input id="input" part="input"></input>\n ']);return _templateObject$8=function _templateObject(){return en},en}var Jh=function(en){_inherits(ComboBox,en);var tn=_createSuper(ComboBox);function ComboBox(){return _classCallCheck(this,ComboBox),tn.apply(this,arguments)}return _createClass(ComboBox,[{key:cp,value:function value(en){var tn;switch(en.key){case"ArrowDown":case"ArrowUp":case"PageDown":case"PageUp":this.closed&&(this.open(),tn=!0);break;case"Enter":this.opened||(this.open(),tn=!0);break;case"Escape":this.close({canceled:"Escape"}),tn=!0;break;case"F4":this.opened?this.close({canceled:"F4"}):this.open(),tn=!0}return tn||_get(_getPrototypeOf(ComboBox.prototype),cp,this)&&_get(_getPrototypeOf(ComboBox.prototype),cp,this).call(this,en)}},{key:gp,value:function value(en){var tn=this;if(_get(_getPrototypeOf(ComboBox.prototype),gp,this).call(this,en),renderParts$3(this[wp],this[Cp],en),en.inputPartType&&(this[ap].input.addEventListener("blur",(function(){tn[_p]({focused:!1}),tn.opened&&(tn[hp]=!0,tn.close(),tn[hp]=!1)})),this[ap].input.addEventListener("focus",(function(){tn[hp]=!0,tn[_p]({focused:!0}),tn[hp]=!1})),this[ap].input.addEventListener("input",(function(){tn[hp]=!0;var en=tn[ap].input.value,nn={value:en,selectText:!1};tn.closed&&en>""&&(nn.opened=!0),tn[_p](nn),tn[hp]=!1})),this[ap].input.addEventListener("keydown",(function(){tn[hp]=!0,tn[_p]({selectText:!1}),tn[hp]=!1})),this[ap].input.addEventListener("mousedown",(function(en){0===en.button&&(tn[hp]=!0,tn[_p]({selectText:!1}),tn.closed&&!tn.disabled&&tn.open(),tn[hp]=!1)}))),en.opened||en.inputPartType){var nn=this[ap].input;if("opened"in nn){var rn=this[Cp].opened;nn.opened=rn}}if(en.popupTogglePartType){var an=this[ap].popupToggle,sn=this[ap].input;an.addEventListener("mousedown",(function(en){0===en.button&&(tn[Cp].disabled?en.preventDefault():(tn[hp]=!0,tn.toggle(),tn[hp]=!1))})),an instanceof HTMLElement&&sn instanceof HTMLElement&&forwardFocus(an,sn)}if(en.popupPartType){var cn=this[ap].popup,un=cn;cn.removeAttribute("tabindex"),"backdropPartType"in cn&&(un.backdropPartType=Sh),"autoFocus"in cn&&(un.autoFocus=!1);var dn=un.frame;dn&&Object.assign(dn.style,{display:"flex",flexDirection:"column"}),"closeOnWindowResize"in cn&&(un.closeOnWindowResize=!1)}if(en.disabled){var pn=this[Cp].disabled;this[ap].input.disabled=pn,this[ap].popupToggle.disabled=pn}if(en.placeholder){var hn=this[Cp].placeholder;this[ap].input.placeholder=hn}if(en.value){var value=this[Cp].value;this[ap].input.value=value}}},{key:mp,value:function value(en){var tn=this;_get(_getPrototypeOf(ComboBox.prototype),mp,this).call(this,en),this[Cp].selectText&&setTimeout((function(){if(tn[Cp].selectText){var en=tn[ap].input;en.value>""&&(en.selectionStart=0,en.selectionEnd=en.value.length)}}))}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(ComboBox.prototype),kp,this).call(this,en,tn);if(tn.opened||tn.value){var rn=en.closeResult;if(!en.opened)rn&&rn.canceled?Object.assign(nn,{value:en.confirmedValue}):Object.assign(nn,{confirmedValue:en.value})}if(tn.opened&&!en.opened){var an=!matchMedia("(pointer: coarse)").matches;Object.assign(nn,{selectText:an})}return nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(ComboBox.prototype),Qd,this),{ariaHasPopup:null,confirmedValue:"",focused:!1,inputPartType:"input",orientation:"vertical",placeholder:"",selectText:!1,value:""})}},{key:sp,get:function get(){return this[ap].input}},{key:"input",get:function get(){return this[wp]?this[ap].input:null}},{key:"inputPartType",get:function get(){return this[Cp].inputPartType},set:function set(en){this[_p]({inputPartType:en})}},{key:"placeholder",get:function get(){return this[Cp].placeholder},set:function set(en){this[_p]({placeholder:String(en)})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(ComboBox.prototype),Rp,this),tn=en.content.querySelector('slot[name="source"]');return tn&&tn.replaceWith(Wp(_templateObject$8())),renderParts$3(en.content,this[Cp]),en.content.append(Wp(_templateObject2$3())),en}},{key:"value",get:function get(){return this[Cp].value},set:function set(en){this[_p]({value:en})}}]),ComboBox}(DelegateFocusMixin(DelegateInputLabelMixin(DelegateInputSelectionMixin(FocusVisibleMixin(FormElementMixin(KeyboardMixin(PopupDragSelectMixin(PopupToggleMixin(Xh)))))))));function renderParts$3(en,tn,nn){if(!nn||nn.inputPartType){var rn=tn.inputPartType,an=en.getElementById("input");an&&transmute(an,rn)}}var Zh=["applet","basefont","embed","font","frame","frameset","isindex","keygen","link","multicol","nextid","noscript","object","param","script","style","template","noembed"];function getDefaultText(en){return en.getAttribute("aria-label")||en.getAttribute("alt")||en.innerText||en.textContent||""}function CursorAPIMixin(en){return function(en){_inherits(CursorAPI,en);var tn=_createSuper(CursorAPI);function CursorAPI(){return _classCallCheck(this,CursorAPI),tn.apply(this,arguments)}return _createClass(CursorAPI,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if("current-index"===en)this.currentIndex=Number(nn);else if("current-item-required"===en){var rn=booleanAttributeValue(en,nn);this.currentItemRequired!==rn&&(this.currentItemRequired=rn)}else if("cursor-operations-wrap"===en){var an=booleanAttributeValue(en,nn);this.cursorOperationsWrap!==an&&(this.cursorOperationsWrap=an)}else _get(_getPrototypeOf(CursorAPI.prototype),"attributeChangedCallback",this).call(this,en,tn,nn)}},{key:"goFirst",value:function goFirst$1(){return _get(_getPrototypeOf(CursorAPI.prototype),"goFirst",this)&&_get(_getPrototypeOf(CursorAPI.prototype),"goFirst",this).call(this),this[Xd]()}},{key:"goLast",value:function goLast$1(){return _get(_getPrototypeOf(CursorAPI.prototype),"goLast",this)&&_get(_getPrototypeOf(CursorAPI.prototype),"goLast",this).call(this),this[Yd]()}},{key:"goNext",value:function goNext$1(){return _get(_getPrototypeOf(CursorAPI.prototype),"goNext",this)&&_get(_getPrototypeOf(CursorAPI.prototype),"goNext",this).call(this),this[Zd]()}},{key:"goPrevious",value:function goPrevious$1(){return _get(_getPrototypeOf(CursorAPI.prototype),"goPrevious",this)&&_get(_getPrototypeOf(CursorAPI.prototype),"goPrevious",this).call(this),this[ep]()}},{key:mp,value:function value(en){if(_get(_getPrototypeOf(CursorAPI.prototype),mp,this)&&_get(_getPrototypeOf(CursorAPI.prototype),mp,this).call(this,en),en.currentIndex&&this[hp]){var tn=this[Cp].currentIndex,nn=new CustomEvent("current-index-changed",{bubbles:!0,detail:{currentIndex:tn}});this.dispatchEvent(nn);var rn=new CustomEvent("currentindexchange",{bubbles:!0,detail:{currentIndex:tn}});this.dispatchEvent(rn)}}},{key:"currentIndex",get:function get(){var en=this[Cp],tn=en.items,nn=en.currentIndex;return tn&&tn.length>0?nn:-1},set:function set(en){isNaN(en)||this[_p]({currentIndex:en})}},{key:"currentItem",get:function get(){var en=this[Cp],tn=en.items,nn=en.currentIndex;return tn&&tn[nn]},set:function set(en){var tn=this[Cp].items;if(tn){var nn=tn.indexOf(en);this[_p]({currentIndex:nn})}}},{key:"currentItemRequired",get:function get(){return this[Cp].currentItemRequired},set:function set(en){this[_p]({currentItemRequired:en})}},{key:"cursorOperationsWrap",get:function get(){return this[Cp].cursorOperationsWrap},set:function set(en){this[_p]({cursorOperationsWrap:en})}}]),CursorAPI}(en)}function delegateCursorOperation(en,tn){var nn=en[lp];if(!nn[tn])return!1;var rn=nn[tn]();if(rn){var an=nn.currentIndex;en[_p]({currentIndex:an})}return rn}var eg=Symbol("itemsChangedListener"),tg=Symbol("previousItemsDelegate"),ng=Symbol("currentIndexChangedListener");var rg=Symbol("generatedId"),ig=0,og={a:"link",article:"region",button:"button",h1:"sectionhead",h2:"sectionhead",h3:"sectionhead",h4:"sectionhead",h5:"sectionhead",h6:"sectionhead",hr:"sectionhead",iframe:"region",link:"link",menu:"menu",ol:"list",option:"option",output:"liveregion",progress:"progressbar",select:"select",table:"table",td:"td",textarea:"textbox",th:"th",ul:"list"};function ensureId(en){var tn=en.id||en[rg];return tn||(tn="_id".concat(ig++),en[rg]=tn),tn}var ag=document.createElement("div");ag.attachShadow({mode:"open",delegatesFocus:!0});var sg=ag.shadowRoot.delegatesFocus;function ComposedFocusMixin(en){return function(en){_inherits(ComposedFocus,en);var tn=_createSuper(ComposedFocus);function ComposedFocus(){return _classCallCheck(this,ComposedFocus),tn.apply(this,arguments)}return _createClass(ComposedFocus,[{key:gp,value:function value(en){var tn=this;_get(_getPrototypeOf(ComposedFocus.prototype),gp,this)&&_get(_getPrototypeOf(ComposedFocus.prototype),gp,this).call(this,en),this[zd]&&this.addEventListener("mousedown",(function(en){if(tn[Cp].composeFocus&&0===en.button&&en.target instanceof Element){var nn=closestFocusableNode(en.target);nn&&(nn.focus(),en.preventDefault())}}))}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(ComposedFocus.prototype),Qd,this)||{},{composeFocus:!sg})}}]),ComposedFocus}(en)}function defaultScrollTarget(en){var tn=en[wp],nn=tn&&tn.querySelector("slot:not([name])");return nn&&nn.parentNode instanceof Element&&function getScrollableElement(en){var tn,nn=_createForOfIteratorHelper(selfAndComposedAncestors(en));try{for(nn.s();!(tn=nn.n()).done;){var rn=tn.value;if(rn instanceof HTMLElement&&isElementScrollable(rn))return rn}}catch(en){nn.e(en)}finally{nn.f()}return null}(nn.parentNode)||en}function isElementScrollable(en){var tn=getComputedStyle(en),nn=tn.overflowX,rn=tn.overflowY;return"scroll"===nn||"auto"===nn||"scroll"===rn||"auto"===rn}function CursorInViewMixin(en){return function(en){_inherits(CursorInView,en);var tn=_createSuper(CursorInView);function CursorInView(){return _classCallCheck(this,CursorInView),tn.apply(this,arguments)}return _createClass(CursorInView,[{key:mp,value:function value(en){_get(_getPrototypeOf(CursorInView.prototype),mp,this)&&_get(_getPrototypeOf(CursorInView.prototype),mp,this).call(this,en),en.currentItem&&this.scrollCurrentItemIntoView()}},{key:"scrollCurrentItemIntoView",value:function scrollCurrentItemIntoView(){_get(_getPrototypeOf(CursorInView.prototype),"scrollCurrentItemIntoView",this)&&_get(_getPrototypeOf(CursorInView.prototype),"scrollCurrentItemIntoView",this).call(this);var en=this[Cp],tn=en.currentItem,nn=en.items;if(tn&&nn){var rn=this[yp].getBoundingClientRect(),an=tn.getBoundingClientRect(),sn=an.bottom-rn.bottom,cn=an.left-rn.left,un=an.right-rn.right,dn=an.top-rn.top,pn=this[Cp].orientation||"both";"horizontal"!==pn&&"both"!==pn||(un>0?this[yp].scrollLeft+=un:cn<0&&(this[yp].scrollLeft+=Math.ceil(cn))),"vertical"!==pn&&"both"!==pn||(sn>0?this[yp].scrollTop+=sn:dn<0&&(this[yp].scrollTop+=Math.ceil(dn)))}}},{key:yp,get:function get(){return _get(_getPrototypeOf(CursorInView.prototype),yp,this)||defaultScrollTarget(this)}}]),CursorInView}(en)}function CursorSelectMixin(en){return function(en){_inherits(CursorSelect,en);var tn=_createSuper(CursorSelect);function CursorSelect(){return _classCallCheck(this,CursorSelect),tn.apply(this,arguments)}return _createClass(CursorSelect,[{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(CursorSelect.prototype),kp,this)?_get(_getPrototypeOf(CursorSelect.prototype),kp,this).call(this,en,tn):{};return tn.currentIndex?Object.assign(nn,{selectedIndex:en.currentIndex}):tn.selectedIndex&&Object.assign(nn,{currentIndex:en.selectedIndex}),tn.currentItem?Object.assign(nn,{selectedItem:en.currentItem}):tn.selectedItem&&Object.assign(nn,{currentItem:en.selectedItem}),nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(CursorSelect.prototype),Qd,this)||{},{selectedIndex:-1,selectedItem:null})}}]),CursorSelect}(en)}function DirectionCursorMixin(en){return function(en){_inherits(DirectionCursor,en);var tn=_createSuper(DirectionCursor);function DirectionCursor(){return _classCallCheck(this,DirectionCursor),tn.apply(this,arguments)}return _createClass(DirectionCursor,[{key:$d,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),$d,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),$d,this).call(this),this[Zd]()}},{key:Wd,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),Wd,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),Wd,this).call(this),this[Yd]()}},{key:Jd,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),Jd,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),Jd,this).call(this),this[Cp]&&this[Cp].rightToLeft?this[Zd]():this[ep]()}},{key:tp,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),tp,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),tp,this).call(this),this[Cp]&&this[Cp].rightToLeft?this[ep]():this[Zd]()}},{key:np,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),np,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),np,this).call(this),this[Xd]()}},{key:ip,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),ip,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),ip,this).call(this),this[ep]()}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(DirectionCursor.prototype),kp,this)?_get(_getPrototypeOf(DirectionCursor.prototype),kp,this).call(this,en,tn):{};if(tn.canGoNext||tn.canGoPrevious||tn.languageDirection||tn.orientation||tn.rightToLeft){var rn=en.canGoNext,an=en.canGoPrevious,sn=en.orientation,cn=en.rightToLeft,un="horizontal"===sn||"both"===sn,dn="vertical"===sn||"both"===sn,pn=dn&&rn,hn=!!un&&(cn?rn:an),gn=!!un&&(cn?an:rn),An=dn&&an;Object.assign(nn,{canGoDown:pn,canGoLeft:hn,canGoRight:gn,canGoUp:An})}return nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(DirectionCursor.prototype),Qd,this)||{},{canGoDown:null,canGoLeft:null,canGoRight:null,canGoUp:null})}}]),DirectionCursor}(en)}function ItemsAPIMixin(en){return function(en){_inherits(ItemsAPI,en);var tn=_createSuper(ItemsAPI);function ItemsAPI(){return _classCallCheck(this,ItemsAPI),tn.apply(this,arguments)}return _createClass(ItemsAPI,[{key:mp,value:function value(en){if(_get(_getPrototypeOf(ItemsAPI.prototype),mp,this)&&_get(_getPrototypeOf(ItemsAPI.prototype),mp,this).call(this,en),!this[zd]&&en.items&&this[hp]){var tn=new CustomEvent("items-changed",{bubbles:!0});this.dispatchEvent(tn);var nn=new CustomEvent("itemschange",{bubbles:!0});this.dispatchEvent(nn)}}},{key:"items",get:function get(){return this[Cp]?this[Cp].items:null}}]),ItemsAPI}(en)}function ItemsCursorMixin(en){return function(en){_inherits(ItemsCursor,en);var tn=_createSuper(ItemsCursor);function ItemsCursor(){return _classCallCheck(this,ItemsCursor),tn.apply(this,arguments)}return _createClass(ItemsCursor,[{key:Dd,value:function value(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nn=void 0!==tn.direction?tn.direction:1,rn=void 0!==tn.index?tn.index:en.currentIndex,an=void 0!==tn.wrap?tn.wrap:en.cursorOperationsWrap,sn=en.items,cn=sn?sn.length:0;if(0===cn)return-1;if(an)for(var un=(rn%cn+cn)%cn,dn=((un-nn)%cn+cn)%cn;un!==dn;){var pn=!en.availableItemFlags||en.availableItemFlags[un];if(pn)return un;un=((un+nn)%cn+cn)%cn}else for(var hn=rn;hn>=0&&hn<cn;hn+=nn){var gn=!en.availableItemFlags||en.availableItemFlags[hn];if(gn)return hn}return-1}},{key:Xd,value:function value(){return _get(_getPrototypeOf(ItemsCursor.prototype),Xd,this)&&_get(_getPrototypeOf(ItemsCursor.prototype),Xd,this).call(this),moveToIndex(this,0,1)}},{key:Yd,value:function value(){return _get(_getPrototypeOf(ItemsCursor.prototype),Yd,this)&&_get(_getPrototypeOf(ItemsCursor.prototype),Yd,this).call(this),moveToIndex(this,this[Cp].items.length-1,-1)}},{key:Zd,value:function value(){_get(_getPrototypeOf(ItemsCursor.prototype),Zd,this)&&_get(_getPrototypeOf(ItemsCursor.prototype),Zd,this).call(this);var en=this[Cp],tn=en.currentIndex,nn=en.items;return moveToIndex(this,tn<0&&nn?0:tn+1,1)}},{key:ep,value:function value(){_get(_getPrototypeOf(ItemsCursor.prototype),ep,this)&&_get(_getPrototypeOf(ItemsCursor.prototype),ep,this).call(this);var en=this[Cp],tn=en.currentIndex,nn=en.items;return moveToIndex(this,tn<0&&nn?nn.length-1:tn-1,-1)}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(ItemsCursor.prototype),kp,this)?_get(_getPrototypeOf(ItemsCursor.prototype),kp,this).call(this,en,tn):{};if(tn.availableItemFlags||tn.items||tn.currentIndex||tn.currentItemRequired){var rn,an=en.currentIndex,sn=en.desiredCurrentIndex,cn=en.currentItem,un=en.currentItemRequired,dn=en.items,pn=dn?dn.length:0,hn=sn;if(tn.items&&!tn.currentIndex&&cn&&pn>0&&dn[an]!==cn){var gn=dn.indexOf(cn);gn>=0&&(hn=gn)}else tn.currentIndex&&(an<0&&null!==cn||an>=0&&(0===pn||dn[an]!==cn)||null===sn)&&(hn=an);un&&hn<0&&(hn=0),hn<0?(hn=-1,rn=-1):0===pn?rn=-1:(rn=Math.max(Math.min(pn-1,hn),0),(rn=this[Dd](en,{direction:1,index:rn,wrap:!1}))<0&&(rn=this[Dd](en,{direction:-1,index:rn-1,wrap:!1})));var An=dn&&dn[rn]||null;Object.assign(nn,{currentIndex:rn,desiredCurrentIndex:hn,currentItem:An})}return nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(ItemsCursor.prototype),Qd,this)||{},{currentIndex:-1,desiredCurrentIndex:null,currentItem:null,currentItemRequired:!1,cursorOperationsWrap:!1})}}]),ItemsCursor}(en)}function moveToIndex(en,tn,nn){var rn=en[Dd](en[Cp],{direction:nn,index:tn});if(rn<0)return!1;var an=en[Cp].currentIndex!==rn;return an&&en[_p]({currentIndex:rn}),an}function ItemsTextMixin(en){return function(en){_inherits(ItemsText,en);var tn=_createSuper(ItemsText);function ItemsText(){return _classCallCheck(this,ItemsText),tn.apply(this,arguments)}return _createClass(ItemsText,[{key:qd,value:function value(en){return _get(_getPrototypeOf(ItemsText.prototype),qd,this)?_get(_getPrototypeOf(ItemsText.prototype),qd,this).call(this,en):getDefaultText(en)}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(ItemsText.prototype),kp,this)?_get(_getPrototypeOf(ItemsText.prototype),kp,this).call(this,en,tn):{};if(tn.items){var rn=function getTextsFromItems(en,tn){return en?Array.from(en,(function(en){return tn(en)})):null}(en.items,this[qd]);rn&&(Object.freeze(rn),Object.assign(nn,{texts:rn}))}return nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(ItemsText.prototype),Qd,this)||{},{texts:null})}}]),ItemsText}(en)}function KeyboardDirectionMixin(en){return function(en){_inherits(KeyboardDirection,en);var tn=_createSuper(KeyboardDirection);function KeyboardDirection(){return _classCallCheck(this,KeyboardDirection),tn.apply(this,arguments)}return _createClass(KeyboardDirection,[{key:$d,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),$d,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),$d,this).call(this)}},{key:Wd,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),Wd,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),Wd,this).call(this)}},{key:Jd,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),Jd,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),Jd,this).call(this)}},{key:tp,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),tp,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),tp,this).call(this)}},{key:np,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),np,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),np,this).call(this)}},{key:ip,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),ip,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),ip,this).call(this)}},{key:cp,value:function value(en){var tn=!1;if(en.target===this){var nn=this[Cp].orientation||"both",rn="horizontal"===nn||"both"===nn,an="vertical"===nn||"both"===nn;switch(en.key){case"ArrowDown":an&&(tn=en.altKey?this[Wd]():this[$d]());break;case"ArrowLeft":!rn||en.metaKey||en.altKey||(tn=this[Jd]());break;case"ArrowRight":!rn||en.metaKey||en.altKey||(tn=this[tp]());break;case"ArrowUp":an&&(tn=en.altKey?this[np]():this[ip]());break;case"End":tn=this[Wd]();break;case"Home":tn=this[np]()}}return tn||_get(_getPrototypeOf(KeyboardDirection.prototype),cp,this)&&_get(_getPrototypeOf(KeyboardDirection.prototype),cp,this).call(this,en)||!1}}]),KeyboardDirection}(en)}function KeyboardPagedCursorMixin(en){return function(en){_inherits(KeyboardPagedCursor,en);var tn=_createSuper(KeyboardPagedCursor);function KeyboardPagedCursor(){return _classCallCheck(this,KeyboardPagedCursor),tn.apply(this,arguments)}return _createClass(KeyboardPagedCursor,[{key:cp,value:function value(en){var tn=!1;if("horizontal"!==this.orientation)switch(en.key){case"PageDown":tn=this.pageDown();break;case"PageUp":tn=this.pageUp()}return tn||_get(_getPrototypeOf(KeyboardPagedCursor.prototype),cp,this)&&_get(_getPrototypeOf(KeyboardPagedCursor.prototype),cp,this).call(this,en)}},{key:"pageDown",value:function pageDown(){return _get(_getPrototypeOf(KeyboardPagedCursor.prototype),"pageDown",this)&&_get(_getPrototypeOf(KeyboardPagedCursor.prototype),"pageDown",this).call(this),scrollOnePage(this,!0)}},{key:"pageUp",value:function pageUp(){return _get(_getPrototypeOf(KeyboardPagedCursor.prototype),"pageUp",this)&&_get(_getPrototypeOf(KeyboardPagedCursor.prototype),"pageUp",this).call(this),scrollOnePage(this,!1)}},{key:"orientation",get:function get(){return _get(_getPrototypeOf(KeyboardPagedCursor.prototype),"orientation",this)||this[Cp]&&this[Cp].orientation||"both"}},{key:yp,get:function get(){return _get(_getPrototypeOf(KeyboardPagedCursor.prototype),yp,this)||defaultScrollTarget(this)}}]),KeyboardPagedCursor}(en)}function getIndexOfItemAtY(en,tn,nn){var rn,an,sn=en[Cp].items,cn=nn?0:sn.length-1,un=nn?sn.length:0,dn=nn?1:-1,pn=null,hn=en[Cp].availableItemFlags;for(rn=cn;rn!==un;rn+=dn){if((!hn||hn[rn])&&(an=sn[rn].getBoundingClientRect()).top<=tn&&tn<=an.bottom){pn=sn[rn];break}}if(!pn||!an)return null;var gn=getComputedStyle(pn),An=gn.paddingTop?parseFloat(gn.paddingTop):0,mn=gn.paddingBottom?parseFloat(gn.paddingBottom):0,vn=an.top+An,yn=vn+pn.clientHeight-An-mn;return nn&&vn<=tn||!nn&&yn>=tn?rn:rn-dn}function scrollOnePage(en,tn){var nn,rn=en[Cp].items,an=en[Cp].currentIndex,sn=en[yp].getBoundingClientRect(),cn=getIndexOfItemAtY(en,tn?sn.bottom:sn.top,tn);if(cn&&an===cn){var un=rn[an].getBoundingClientRect(),dn=en[yp].clientHeight;nn=getIndexOfItemAtY(en,tn?un.bottom+dn:un.top-dn,tn)}else nn=cn;if(!nn){var pn=tn?rn.length-1:0;nn=en[Dd]?en[Dd](en[Cp],{direction:tn?-1:1,index:pn}):pn}var hn=nn!==an;if(hn){var gn=en[hp];en[hp]=!0,en[_p]({currentIndex:nn}),en[hp]=gn}return hn}var lg=Symbol("typedPrefix"),cg=Symbol("prefixTimeout");function KeyboardPrefixCursorMixin(en){return function(en){_inherits(KeyboardPrefixCursor,en);var tn=_createSuper(KeyboardPrefixCursor);function KeyboardPrefixCursor(){var en;return _classCallCheck(this,KeyboardPrefixCursor),resetTypedPrefix(_assertThisInitialized(en=tn.call(this))),en}return _createClass(KeyboardPrefixCursor,[{key:rp,value:function value(en){if(_get(_getPrototypeOf(KeyboardPrefixCursor.prototype),rp,this)&&_get(_getPrototypeOf(KeyboardPrefixCursor.prototype),rp,this).call(this,en),null==en||0===en.length)return!1;var tn=en.toLowerCase(),nn=this[Cp].texts.findIndex((function(nn){return nn.substr(0,en.length).toLowerCase()===tn}));if(nn>=0){var rn=this[Cp].currentIndex;return this[_p]({currentIndex:nn}),this[Cp].currentIndex!==rn}return!1}},{key:cp,value:function value(en){var tn;switch(en.key){case"Backspace":!function handleBackspace(en){var tn=en,nn=tn[lg]?tn[lg].length:0;nn>0&&(tn[lg]=tn[lg].substr(0,nn-1));en[rp](tn[lg]),setPrefixTimeout(en)}(this),tn=!0;break;case"Escape":resetTypedPrefix(this);break;default:en.ctrlKey||en.metaKey||en.altKey||1!==en.key.length||function handlePlainCharacter(en,tn){var nn=en,rn=nn[lg]||"";nn[lg]=rn+tn,en[rp](nn[lg]),setPrefixTimeout(en)}(this,en.key)}return tn||_get(_getPrototypeOf(KeyboardPrefixCursor.prototype),cp,this)&&_get(_getPrototypeOf(KeyboardPrefixCursor.prototype),cp,this).call(this,en)}}]),KeyboardPrefixCursor}(en)}function resetPrefixTimeout(en){var tn=en;tn[cg]&&(clearTimeout(tn[cg]),tn[cg]=!1)}function resetTypedPrefix(en){en[lg]="",resetPrefixTimeout(en)}function setPrefixTimeout(en){resetPrefixTimeout(en),en[cg]=setTimeout((function(){resetTypedPrefix(en)}),1e3)}function SelectedTextAPIMixin(en){return function(en){_inherits(SelectedTextAPI,en);var tn=_createSuper(SelectedTextAPI);function SelectedTextAPI(){return _classCallCheck(this,SelectedTextAPI),tn.apply(this,arguments)}return _createClass(SelectedTextAPI,[{key:qd,value:function value(en){return _get(_getPrototypeOf(SelectedTextAPI.prototype),qd,this)?_get(_getPrototypeOf(SelectedTextAPI.prototype),qd,this).call(this,en):getDefaultText(en)}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(SelectedTextAPI.prototype),kp,this)?_get(_getPrototypeOf(SelectedTextAPI.prototype),kp,this).call(this,en,tn):{};if(tn.items||tn.selectedIndex){var rn=en.items,an=en.selectedIndex,sn=rn?rn[an]:null,cn=sn?this[qd](sn):"";Object.assign(nn,{selectedText:cn})}return nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(SelectedTextAPI.prototype),Qd,this)||{},{selectedText:""})}},{key:"selectedText",get:function get(){return this[Cp].selectedText},set:function set(en){var tn=this[Cp].items,nn=tn?function indexOfItemWithText(en,tn,nn){return en.findIndex((function(en){return tn(en)===nn}))}(tn,this[qd],String(en)):-1;this[_p]({selectedIndex:nn})}}]),SelectedTextAPI}(en)}function SelectedValueAPIMixin(en){return function(en){_inherits(SelectedValueAPI,en);var tn=_createSuper(SelectedValueAPI);function SelectedValueAPI(){return _classCallCheck(this,SelectedValueAPI),tn.apply(this,arguments)}return _createClass(SelectedValueAPI,[{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(SelectedValueAPI.prototype),kp,this)?_get(_getPrototypeOf(SelectedValueAPI.prototype),kp,this).call(this,en,tn):{};if(tn.items||tn.selectedIndex){var rn=en.items,an=en.selectedIndex,sn=rn?rn[an]:null,value=sn?sn.getAttribute("value"):"";Object.assign(nn,{value:value})}return nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(SelectedValueAPI.prototype),Qd,this)||{},{value:""})}},{key:"value",get:function get(){return this[Cp].value},set:function set(en){var tn=this[Cp].items,nn=tn?function indexOfItemWithValue(en,tn){return en.findIndex((function(en){return en.getAttribute("value")===tn}))}(tn,String(en)):-1;this[_p]({selectedIndex:nn})}}]),SelectedValueAPI}(en)}function SingleSelectAPIMixin(en){return function(en){_inherits(SingleSelectAPI,en);var tn=_createSuper(SingleSelectAPI);function SingleSelectAPI(){return _classCallCheck(this,SingleSelectAPI),tn.apply(this,arguments)}return _createClass(SingleSelectAPI,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){"selected-index"===en?this.selectedIndex=Number(nn):_get(_getPrototypeOf(SingleSelectAPI.prototype),"attributeChangedCallback",this).call(this,en,tn,nn)}},{key:mp,value:function value(en){if(_get(_getPrototypeOf(SingleSelectAPI.prototype),mp,this)&&_get(_getPrototypeOf(SingleSelectAPI.prototype),mp,this).call(this,en),en.selectedIndex&&this[hp]){var tn=this[Cp].selectedIndex,nn=new CustomEvent("selected-index-changed",{bubbles:!0,detail:{selectedIndex:tn}});this.dispatchEvent(nn);var rn=new CustomEvent("selectedindexchange",{bubbles:!0,detail:{selectedIndex:tn}});this.dispatchEvent(rn)}}},{key:"selectedIndex",get:function get(){var en=this[Cp],tn=en.items,nn=en.selectedIndex;return tn&&tn.length>0?nn:-1},set:function set(en){isNaN(en)||this[_p]({selectedIndex:en})}},{key:"selectedItem",get:function get(){var en=this[Cp],tn=en.items,nn=en.selectedIndex;return tn&&tn[nn]},set:function set(en){var tn=this[Cp].items;if(tn){var nn=tn.indexOf(en);nn>=0&&this[_p]({selectedIndex:nn})}}}]),SingleSelectAPI}(en)}function ContentItemsMixin(en){return function(en){_inherits(ContentItems,en);var tn=_createSuper(ContentItems);function ContentItems(){return _classCallCheck(this,ContentItems),tn.apply(this,arguments)}return _createClass(ContentItems,[{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(ContentItems.prototype),kp,this)?_get(_getPrototypeOf(ContentItems.prototype),kp,this).call(this,en,tn):{};if(tn.content){var rn=en.content,an=rn?Array.prototype.filter.call(rn,(function(en){return function isSubstantiveElement(en){return en instanceof Element&&(!en.localName||Zh.indexOf(en.localName)<0)}(en)})):null;an&&Object.freeze(an),Object.assign(nn,{items:an})}return nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(ContentItems.prototype),Qd,this)||{},{items:null})}}]),ContentItems}(en)}function SlotItemsMixin(en){return ContentItemsMixin(SlotContentMixin(en))}function TapCursorMixin(en){return function(en){_inherits(TapCursor,en);var tn=_createSuper(TapCursor);function TapCursor(){var en;return _classCallCheck(this,TapCursor),(en=tn.call(this)).addEventListener("mousedown",(function(tn){0===tn.button&&(en[hp]=!0,en[Mp](tn),en[hp]=!1)})),en}return _createClass(TapCursor,[{key:gp,value:function value(en){_get(_getPrototypeOf(TapCursor.prototype),gp,this)&&_get(_getPrototypeOf(TapCursor.prototype),gp,this).call(this,en),this[zd]&&Object.assign(this.style,{touchAction:"manipulation",mozUserSelect:"none",msUserSelect:"none",webkitUserSelect:"none",userSelect:"none"})}},{key:Mp,value:function value(en){var tn=en.composedPath?en.composedPath()[0]:en.target,nn=this[Cp],rn=nn.items,an=nn.currentItemRequired;if(rn&&tn instanceof Node){var sn=indexOfItemContainingTarget(rn,tn),cn=sn>=0?rn[sn]:null;(cn&&!cn.disabled||!cn&&!an)&&(this[_p]({currentIndex:sn}),en.stopPropagation())}}}]),TapCursor}(en)}function _templateObject$9(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n box-sizing: border-box;\n cursor: default;\n display: flex;\n overflow: hidden; /* Container element is responsible for scrolling */\n -webkit-tap-highlight-color: transparent;\n }\n\n #container {\n display: flex;\n flex: 1;\n -webkit-overflow-scrolling: touch; /* for momentum scrolling */\n }\n </style>\n <div id="container" role="none">\n <slot id="slot"></slot>\n </div>\n ']);return _templateObject$9=function _templateObject(){return en},en}var ug=function(en){_inherits(ListBox,en);var tn=_createSuper(ListBox);function ListBox(){return _classCallCheck(this,ListBox),tn.apply(this,arguments)}return _createClass(ListBox,[{key:gp,value:function value(en){if(_get(_getPrototypeOf(ListBox.prototype),gp,this).call(this,en),en.items||en.currentIndex){var tn=this[Cp],nn=tn.currentIndex,rn=tn.items;rn&&rn.forEach((function(en,tn){en.toggleAttribute("selected",tn===nn)}))}if(en.orientation){var an="vertical"===this[Cp].orientation?{display:"block",flexDirection:"",overflowX:"hidden",overflowY:"auto"}:{display:"flex",flexDirection:"row",overflowX:"auto",overflowY:"hidden"};Object.assign(this[ap].container.style,an)}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(ListBox.prototype),Qd,this),{orientation:"vertical"})}},{key:"orientation",get:function get(){return this[Cp].orientation},set:function set(en){this[_p]({orientation:en})}},{key:yp,get:function get(){return this[ap].container}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(ListBox.prototype),Rp,this);return en.content.append(Wp(_templateObject$9())),en}}]),ListBox}(function AriaListMixin(en){return function(en){_inherits(AriaList,en);var tn=_createSuper(AriaList);function AriaList(){return _classCallCheck(this,AriaList),tn.apply(this,arguments)}return _createClass(AriaList,[{key:gp,value:function value(en){_get(_getPrototypeOf(AriaList.prototype),gp,this)&&_get(_getPrototypeOf(AriaList.prototype),gp,this).call(this,en);var tn=this[Cp].itemRole,nn=this[Cp].items;if(en.items&&nn&&nn.forEach((function(en){en.id||(en.id=ensureId(en))})),(en.items||en.itemRole)&&nn&&nn.forEach((function(en){tn===og[en.localName]?en.removeAttribute("role"):en.setAttribute("role",tn)})),en.items||en.selectedIndex||en.selectedItemFlags){var rn=this[Cp],an=rn.selectedItemFlags,sn=rn.selectedIndex;nn&&nn.forEach((function(en,tn){var nn=an?an[tn]:tn===sn;en.setAttribute("aria-selected",nn.toString())}))}if(en.items||en.selectedIndex){var cn=this[Cp].selectedIndex,un=cn>=0&&nn?nn[cn]:null;un?(un.id||(un.id=ensureId(un)),this.setAttribute("aria-activedescendant",un.id)):this.removeAttribute("aria-activedescendant")}if(en.selectedItemFlags&&(this[Cp].selectedItemFlags?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")),en.orientation){var dn=this[Cp].orientation;this.setAttribute("aria-orientation",dn)}if(en.role){var pn=this[Cp].role;this.setAttribute("role",pn)}}},{key:Qd,get:function get(){var en=_get(_getPrototypeOf(AriaList.prototype),Qd,this);return Object.assign(en,{itemRole:en.itemRole||"option",role:en.role||"listbox"})}},{key:"itemRole",get:function get(){return this[Cp].itemRole},set:function set(en){this[_p]({itemRole:en})}},{key:"role",get:function get(){return _get(_getPrototypeOf(AriaList.prototype),"role",this)},set:function set(en){_set(_getPrototypeOf(AriaList.prototype),"role",en,this,!0),this[vp]||this[_p]({role:en})}}]),AriaList}(en)}(ComposedFocusMixin(CursorAPIMixin(CursorInViewMixin(CursorSelectMixin(DirectionCursorMixin(FocusVisibleMixin(FormElementMixin(ItemsAPIMixin(ItemsCursorMixin(ItemsTextMixin(KeyboardDirectionMixin(KeyboardMixin(KeyboardPagedCursorMixin(KeyboardPrefixCursorMixin(LanguageDirectionMixin(SingleSelectAPIMixin(SelectedTextAPIMixin(SelectedValueAPIMixin(SlotItemsMixin(TapCursorMixin(bh)))))))))))))))))))))),dg=Symbol("documentMousemoveListener");function PopupListMixin(en){return function(en){_inherits(PopupList,en);var tn=_createSuper(PopupList);function PopupList(){return _classCallCheck(this,PopupList),tn.apply(this,arguments)}return _createClass(PopupList,[{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(PopupList.prototype),"connectedCallback",this).call(this),listenIfOpenAndConnected$1(this)}},{key:"disconnectedCallback",value:function disconnectedCallback(){_get(_getPrototypeOf(PopupList.prototype),"disconnectedCallback",this)&&_get(_getPrototypeOf(PopupList.prototype),"disconnectedCallback",this).call(this),listenIfOpenAndConnected$1(this)}},{key:cp,value:function value(en){var tn=!1;switch(en.key){case"Enter":this.opened&&(selectCurrentItemAndClose(this),tn=!0)}return tn||_get(_getPrototypeOf(PopupList.prototype),cp,this)&&_get(_getPrototypeOf(PopupList.prototype),cp,this).call(this,en)||!1}},{key:gp,value:function value(en){var tn=this;if(_get(_getPrototypeOf(PopupList.prototype),gp,this)&&_get(_getPrototypeOf(PopupList.prototype),gp,this).call(this,en),en.popupList){var nn=this[Cp].popupList;nn&&(nn.addEventListener("mouseup",function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en){var nn;return regeneratorRuntime.wrap((function _callee$(rn){for(;;)switch(rn.prev=rn.next){case 0:if(nn=tn[Cp].currentIndex,!(tn[Cp].dragSelect||nn>=0)){rn.next=9;break}return en.stopPropagation(),tn[hp]=!0,rn.next=6,selectCurrentItemAndClose(tn);case 6:tn[hp]=!1,rn.next=10;break;case 9:en.stopPropagation();case 10:case"end":return rn.stop()}}),_callee)})));return function(tn){return en.apply(this,arguments)}}()),nn.addEventListener("currentindexchange",(function(en){tn[hp]=!0;var nn=en;tn[_p]({currentIndex:nn.detail.currentIndex}),tn[hp]=!1})))}if(en.currentIndex||en.popupList){var rn=this[Cp],an=rn.currentIndex,sn=rn.popupList;sn&&"currentIndex"in sn&&(sn.currentIndex=an)}}},{key:mp,value:function value(en){if(_get(_getPrototypeOf(PopupList.prototype),mp,this)&&_get(_getPrototypeOf(PopupList.prototype),mp,this).call(this,en),en.opened){if(this[Cp].opened){var tn=this[Cp].popupList;tn.scrollCurrentItemIntoView&&setTimeout((function(){tn.scrollCurrentItemIntoView()}))}listenIfOpenAndConnected$1(this)}}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(PopupList.prototype),kp,this)?_get(_getPrototypeOf(PopupList.prototype),kp,this).call(this,en,tn):{};return tn.opened&&en.opened&&Object.assign(nn,{hasHoveredOverItemSinceOpened:!1}),nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupList.prototype),Qd,this)||{},{currentIndex:-1,hasHoveredOverItemSinceOpened:!1,popupList:null})}}]),PopupList}(en)}function handleMousemove(en){var tn=this,nn=tn[Cp],rn=nn.hasHoveredOverItemSinceOpened;if(nn.opened){var an=en.composedPath?en.composedPath()[0]:en.target,sn=tn.items;if(an&&an instanceof Node&&sn){var cn=indexOfItemContainingTarget(sn,an),un=sn[cn],dn=un&&!un.disabled?cn:-1;(rn||dn>=0)&&dn!==tn[Cp].currentIndex&&(tn[hp]=!0,tn[_p]({currentIndex:dn}),dn>=0&&!rn&&tn[_p]({hasHoveredOverItemSinceOpened:!0}),tn[hp]=!1)}}}function listenIfOpenAndConnected$1(en){en[Cp].opened&&en.isConnected?en[dg]||(en[dg]=handleMousemove.bind(en),document.addEventListener("mousemove",en[dg])):en[dg]&&(document.removeEventListener("mousemove",en[dg]),en[dg]=null)}function selectCurrentItemAndClose(en){return _selectCurrentItemAndClose.apply(this,arguments)}function _selectCurrentItemAndClose(){return(_selectCurrentItemAndClose=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(en){var tn,nn,rn,an,sn,cn;return regeneratorRuntime.wrap((function _callee2$(un){for(;;)switch(un.prev=un.next){case 0:if(tn=en[hp],nn=en[Cp].currentIndex>=0,!(rn=en.items)){un.next=14;break}if(an=nn?rn[en[Cp].currentIndex]:void 0,sn=en[Cp].popupList,!nn||!("flashCurrentItem"in sn)){un.next=9;break}return un.next=9,sn.flashCurrentItem();case 9:return cn=en[hp],en[hp]=tn,un.next=13,en.close(an);case 13:en[hp]=cn;case 14:case"end":return un.stop()}}),_callee2)})))).apply(this,arguments)}function _templateObject2$4(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="list"] {\n border: none;\n flex: 1;\n height: 100%;\n max-height: 100%;\n overscroll-behavior: contain;\n width: 100%;\n }\n </style>\n ']);return _templateObject2$4=function _templateObject2(){return en},en}function _templateObject$a(){var en=_taggedTemplateLiteral(['\n <div id="list" part="list" tabindex="-1">\n <slot></slot>\n </div>\n ']);return _templateObject$a=function _templateObject(){return en},en}var pg=function(en){_inherits(ListComboBox,en);var tn=_createSuper(ListComboBox);function ListComboBox(){return _classCallCheck(this,ListComboBox),tn.apply(this,arguments)}return _createClass(ListComboBox,[{key:qd,value:function value(en){return getDefaultText(en)}},{key:cp,value:function value(en){var tn,nn=this[ap].list;switch(en.key){case"ArrowDown":this.opened&&(tn=en.altKey?this[Yd]():this[Zd]());break;case"ArrowUp":this.opened&&(tn=en.altKey?this[Xd]():this[ep]());break;case"PageDown":this.opened&&(tn=nn.pageDown&&nn.pageDown());break;case"PageUp":this.opened&&(tn=nn.pageUp&&nn.pageUp())}tn&&(this[Cp].selectedIndex!==nn.currentIndex&&this[_p]({selectedIndex:nn.currentIndex}));return tn||_get(_getPrototypeOf(ListComboBox.prototype),cp,this)&&_get(_getPrototypeOf(ListComboBox.prototype),cp,this).call(this,en)}},{key:gp,value:function value(en){en.listPartType&&this[ap].list&&forwardFocus(this[ap].list,null);if(_get(_getPrototypeOf(ListComboBox.prototype),gp,this).call(this,en),renderParts$4(this[wp],this[Cp],en),en.listPartType){var tn=this[ap].list;tn instanceof HTMLElement&&forwardFocus(tn,this)}}},{key:mp,value:function value(en){_get(_getPrototypeOf(ListComboBox.prototype),mp,this).call(this,en),en.listPartType&&this[_p]({popupList:this[ap].list})}},{key:kp,value:function value(en,tn){var nn=this,rn=_get(_getPrototypeOf(ListComboBox.prototype),kp,this).call(this,en,tn);if(tn.selectedIndex&&Object.assign(rn,{currentIndex:en.selectedIndex}),tn.selectedItem&&Object.assign(rn,{currentItem:en.selectedItem}),tn.items||tn.value){var value=en.value,an=en.items;if(an&&null!=value){var sn=value.toLowerCase(),cn=an.findIndex((function(en){return nn[qd](en).toLowerCase()===sn}));Object.assign(rn,{currentIndex:cn})}}if(tn.selectedIndex){var un=en.items,dn=en.selectedIndex,pn=en.value,hn=un?un[dn]:null,gn=hn?this[qd](hn):"",An=!matchMedia("(pointer: coarse)").matches;pn!==gn&&Object.assign(rn,{selectText:An,value:gn})}if(tn.opened){var mn=en.closeResult,vn=en.currentIndex,yn=en.opened,_n=tn.opened&&!yn,wn=mn&&mn.canceled;_n&&!wn&&vn>=0&&Object.assign(rn,{selectedIndex:vn})}return tn.items&&Object.assign(rn,{popupMeasured:!1}),rn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(ListComboBox.prototype),Qd,this),{currentIndex:-1,listPartType:ug,popupAlign:"stretch",selectedIndex:-1,selectedItem:null})}},{key:"listPartType",get:function get(){return this[Cp].listPartType},set:function set(en){this[_p]({listPartType:en})}},{key:lp,get:function get(){return this[ap].list}},{key:"selectedItemValue",get:function get(){var en=this[Cp],tn=en.items,nn=en.selectedIndex,rn=tn?tn[nn]:null;return rn?rn.getAttribute("value"):""},set:function set(en){var tn=this[Cp].items,nn=String(en),rn=tn.findIndex((function(en){return en.getAttribute("value")===nn}));this[_p]({selectedIndex:rn})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(ListComboBox.prototype),Rp,this),tn=en.content.querySelector("slot:not([name])");return tn&&tn.replaceWith(Wp(_templateObject$a())),en.content.append(Wp(_templateObject2$4())),renderParts$4(en.content,this[Cp]),en}}]),ListComboBox}(CursorAPIMixin(function DelegateCursorMixin(en){return function(en){_inherits(DelegateCursor,en);var tn=_createSuper(DelegateCursor);function DelegateCursor(){return _classCallCheck(this,DelegateCursor),tn.apply(this,arguments)}return _createClass(DelegateCursor,[{key:Xd,value:function value(){return delegateCursorOperation(this,Xd)}},{key:Yd,value:function value(){return delegateCursorOperation(this,Yd)}},{key:Zd,value:function value(){return delegateCursorOperation(this,Zd)}},{key:ep,value:function value(){return delegateCursorOperation(this,ep)}}]),DelegateCursor}(en)}(function DelegateItemsMixin(en){return function(en){_inherits(DelegateItems,en);var tn=_createSuper(DelegateItems);function DelegateItems(){var en;return _classCallCheck(this,DelegateItems),(en=tn.call(this))[eg]=function(tn){var nn=tn.target.items;en[Cp].items!==nn&&en[_p]({items:nn})},en[ng]=function(tn){var nn=tn.detail.currentIndex;en[Cp].currentIndex!==nn&&en[_p]({currentIndex:nn})},en}return _createClass(DelegateItems,[{key:gp,value:function value(en){if(_get(_getPrototypeOf(DelegateItems.prototype),gp,this)&&_get(_getPrototypeOf(DelegateItems.prototype),gp,this).call(this,en),en.currentIndex){if(void 0===this[lp])throw"To use DelegateItemsMixin, ".concat(this.constructor.name," must define a getter for [itemsDelegate].");"currentIndex"in this[lp]&&(this[lp].currentIndex=this[Cp].currentIndex)}}},{key:mp,value:function value(en){_get(_getPrototypeOf(DelegateItems.prototype),mp,this)&&_get(_getPrototypeOf(DelegateItems.prototype),mp,this).call(this,en);var tn=this[tg];this[lp]!==tn&&(tn&&(tn.removeEventListener(this[eg]),tn.removeEventListener(this[ng])),this[lp].addEventListener("itemschange",this[eg]),this[lp].addEventListener("currentindexchange",this[ng]),this[tg]=this[lp])}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(DelegateItems.prototype),Qd,this)||{},{items:null})}},{key:"items",get:function get(){return this[Cp]?this[Cp].items:null}}]),DelegateItems}(en)}(PopupListMixin(SingleSelectAPIMixin(Jh))))));function renderParts$4(en,tn,nn){if(!nn||nn.listPartType){var rn=tn.listPartType,an=en.getElementById("list");an&&transmute(an,rn)}}function _templateObject3(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n align-items: center;\n display: inline-flex;\n padding: 2px;\n }\n\n :host(:not([disabled])):hover {\n background: #eee;\n }\n\n [part~="toggle-icon"] {\n fill: currentColor;\n height: 10px;\n margin: 0.25em;\n width: 10px;\n }\n </style>\n ']);return _templateObject3=function _templateObject3(){return en},en}function _templateObject2$5(){var en=_taggedTemplateLiteral(['\n <svg\n id="upIcon"\n part="toggle-icon up-icon"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 10 5"\n >\n <path d="M 0 5 l5 -5 5 5 z" />\n </svg>\n ']);return _templateObject2$5=function _templateObject2(){return en},en}function _templateObject$b(){var en=_taggedTemplateLiteral(['\n <svg\n id="downIcon"\n part="toggle-icon down-icon"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 10 5"\n >\n <path d="M 0 0 l5 5 5 -5 z" />\n </svg>\n ']);return _templateObject$b=function _templateObject(){return en},en}var hg=function(en){_inherits(PlainOpenCloseToggle,en);var tn=_createSuper(PlainOpenCloseToggle);function PlainOpenCloseToggle(){return _classCallCheck(this,PlainOpenCloseToggle),tn.apply(this,arguments)}return _createClass(PlainOpenCloseToggle,[{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainOpenCloseToggle.prototype),Rp,this),tn=en.content.getElementById("downIcon"),nn=Wp(_templateObject$b()).firstElementChild;tn&&nn&&replace$2(tn,nn);var rn=en.content.getElementById("upIcon"),an=Wp(_templateObject2$5()).firstElementChild;return rn&&an&&replace$2(rn,an),en.content.append(Wp(_templateObject3())),en}}]),PlainOpenCloseToggle}(Yh),gg=function(en){_inherits(PlainBackdrop,en);var tn=_createSuper(PlainBackdrop);function PlainBackdrop(){return _classCallCheck(this,PlainBackdrop),tn.apply(this,arguments)}return PlainBackdrop}(jh);function _templateObject$c(){var en=_taggedTemplateLiteral(["\n <style>\n :host {\n background: white;\n border: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);\n box-sizing: border-box;\n }\n </style>\n "]);return _templateObject$c=function _templateObject(){return en},en}var fg=function(en){_inherits(PlainOverlayFrame,en);var tn=_createSuper(PlainOverlayFrame);function PlainOverlayFrame(){return _classCallCheck(this,PlainOverlayFrame),tn.apply(this,arguments)}return _createClass(PlainOverlayFrame,[{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainOverlayFrame.prototype),Rp,this);return en.content.append(Wp(_templateObject$c())),en}}]),PlainOverlayFrame}(Qh),Ag=function(en){_inherits(PlainPopup,en);var tn=_createSuper(PlainPopup);function PlainPopup(){return _classCallCheck(this,PlainPopup),tn.apply(this,arguments)}return _createClass(PlainPopup,[{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainPopup.prototype),Qd,this),{backdropPartType:gg,framePartType:fg})}}]),PlainPopup}($h),mg=function(en){_inherits(ElixListComboBox,en);var tn=_createSuper(ElixListComboBox);function ElixListComboBox(){return _classCallCheck(this,ElixListComboBox),tn.apply(this,arguments)}return ElixListComboBox}(function(en){_inherits(PlainListComboBox,en);var tn=_createSuper(PlainListComboBox);function PlainListComboBox(){return _classCallCheck(this,PlainListComboBox),tn.apply(this,arguments)}return _createClass(PlainListComboBox,[{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainListComboBox.prototype),Qd,this),{popupPartType:Ag,popupTogglePartType:hg})}}]),PlainListComboBox}(pg));customElements.define("elix-list-combo-box",mg);var vg=Tr.includes,yg=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});function _templateObject$d(){var en=_taggedTemplateLiteral(["\n <style>\n :host {\n display: ",'\n }\n \n [part~="inner"] {\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n }\n </style>\n <',' id="inner" part="inner ','">\n <slot></slot>\n </',">\n "]);return _templateObject$d=function _templateObject(){return en},en}_export({target:"Array",proto:!0,forced:!yg},{includes:function includes(en){return vg(this,en,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var _g=Symbol("extends"),bg=Symbol("delegatedPropertySetters"),wg={a:!0,area:!0,button:!0,details:!0,iframe:!0,input:!0,select:!0,textarea:!0},xg={address:["scroll"],blockquote:["scroll"],caption:["scroll"],center:["scroll"],dd:["scroll"],dir:["scroll"],div:["scroll"],dl:["scroll"],dt:["scroll"],fieldset:["scroll"],form:["reset","scroll"],frame:["load"],h1:["scroll"],h2:["scroll"],h3:["scroll"],h4:["scroll"],h5:["scroll"],h6:["scroll"],iframe:["load"],img:["abort","error","load"],input:["abort","change","error","select","load"],li:["scroll"],link:["load"],menu:["scroll"],object:["error","scroll"],ol:["scroll"],p:["scroll"],script:["error","load"],select:["change","scroll"],tbody:["scroll"],tfoot:["scroll"],thead:["scroll"],textarea:["change","select","scroll"]},Sg=["click","dblclick","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","wheel"],Cg={abort:!0,change:!0,reset:!0},kg=["address","article","aside","blockquote","canvas","dd","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tfoot","ul","video"],Bg=["accept-charset","autoplay","buffered","challenge","codebase","colspan","contenteditable","controls","crossorigin","datetime","dirname","for","formaction","http-equiv","icon","ismap","itemprop","keytype","language","loop","manifest","maxlength","minlength","muted","novalidate","preload","radiogroup","readonly","referrerpolicy","rowspan","scoped","usemap"],Eg=function(en){_inherits(WrappedStandardElement,en);var tn=_createSuper(WrappedStandardElement);function WrappedStandardElement(){var en;_classCallCheck(this,WrappedStandardElement);var nn=_assertThisInitialized(en=tn.call(this));return!en[pp]&&nn.attachInternals&&(en[pp]=nn.attachInternals()),en}return _createClass(WrappedStandardElement,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(Bg.indexOf(en)>=0){var rn=Object.assign({},this[Cp].innerAttributes,_defineProperty({},en,nn));this[_p]({innerAttributes:rn})}else _get(_getPrototypeOf(WrappedStandardElement.prototype),"attributeChangedCallback",this).call(this,en,tn,nn)}},{key:"blur",value:function blur(){this.inner.blur()}},{key:gp,value:function value(en){var tn=this;_get(_getPrototypeOf(WrappedStandardElement.prototype),gp,this).call(this,en);var nn=this.inner;this[zd]&&((xg[this.extends]||[]).forEach((function(en){nn.addEventListener(en,(function(){var nn=new Event(en,{bubbles:Cg[en]||!1});tn.dispatchEvent(nn)}))})),"disabled"in nn&&Sg.forEach((function(en){tn.addEventListener(en,(function(en){nn.disabled&&en.stopImmediatePropagation()}))})));if(en.tabIndex&&(nn.tabIndex=this[Cp].tabIndex),en.innerAttributes){var rn=this[Cp].innerAttributes;for(var an in rn)applyAttribute(nn,an,rn[an])}this.constructor[bg].forEach((function(rn){if(en[rn]){var an=tn[Cp][rn];("selectionEnd"===rn||"selectionStart"===rn)&&null===an||(nn[rn]=an)}}))}},{key:mp,value:function value(en){if(_get(_getPrototypeOf(WrappedStandardElement.prototype),mp,this).call(this,en),en.disabled){var tn=this[Cp].disabled;void 0!==tn&&setInternalState$7(this,"disabled",tn)}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(WrappedStandardElement.prototype),Qd,this),{innerAttributes:{}})}},{key:Hd,get:function get(){return wg[this.extends]?0:-1}},{key:"extends",get:function get(){return this.constructor[_g]}},{key:"inner",get:function get(){var en=this[ap]&&this[ap].inner;return en||console.warn("Attempted to get an inner standard element before it was instantiated."),en}},{key:Rp,get:function get(){var en=kg.includes(this.extends)?"block":"inline-block",tn=this.extends;return Xp.html(_templateObject$d(),en,tn,tn,tn)}}],[{key:"wrap",value:function wrap(en){var tn=function(en){_inherits(Wrapped,en);var tn=_createSuper(Wrapped);function Wrapped(){return _classCallCheck(this,Wrapped),tn.apply(this,arguments)}return Wrapped}(WrappedStandardElement);tn[_g]=en;var nn=document.createElement(en);return function defineDelegates(en,tn){var nn=Object.getOwnPropertyNames(tn);en[bg]=[],nn.forEach((function(nn){var rn=Object.getOwnPropertyDescriptor(tn,nn);if(rn){var an=function createDelegate(en,tn){if("function"==typeof tn.value){if("constructor"!==en)return function createMethodDelegate(en,tn){var nn=function value(){var tn;(tn=this.inner)[en].apply(tn,arguments)};return{configurable:tn.configurable,enumerable:tn.enumerable,value:nn,writable:tn.writable}}(en,tn)}else if("function"==typeof tn.get||"function"==typeof tn.set)return function createPropertyDelegate(en,tn){var nn={configurable:tn.configurable,enumerable:tn.enumerable};tn.get&&(nn.get=function(){return function getInnerProperty(en,tn){return en[Cp][tn]||en[wp]&&en.inner[tn]}(this,en)});tn.set&&(nn.set=function(tn){!function setInnerProperty(en,tn,nn){en[Cp][tn]!==nn&&en[_p](_defineProperty({},tn,nn))}(this,en,tn)});tn.writable&&(nn.writable=tn.writable);return nn}(en,tn);return null}(nn,rn);an&&(Object.defineProperty(en.prototype,nn,an),an.set&&en[bg].push(nn))}}))}(tn,Object.getPrototypeOf(nn)),tn}},{key:"observedAttributes",get:function get(){return[].concat(_toConsumableArray(_get(_getPrototypeOf(WrappedStandardElement),"observedAttributes",this)),Bg)}}]),WrappedStandardElement}(DelegateFocusMixin(bh));function applyAttribute(en,tn,nn){$p[tn]?"string"==typeof nn?en.setAttribute(tn,""):null===nn&&en.removeAttribute(tn):null!=nn?en.setAttribute(tn,nn.toString()):en.removeAttribute(tn)}function _templateObject$e(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="input"] {\n font: inherit;\n outline: none;\n text-align: inherit;\n }\n </style>\n ']);return _templateObject$e=function _templateObject(){return en},en}function _templateObject$f(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n background: white;\n border: 1px solid gray;\n box-sizing: border-box;\n }\n\n [part~="input"] {\n background: transparent;\n border-color: transparent;\n }\n </style>\n ']);return _templateObject$f=function _templateObject(){return en},en}var Pg=function(en){_inherits(PlainInput,en);var tn=_createSuper(PlainInput);function PlainInput(){return _classCallCheck(this,PlainInput),tn.apply(this,arguments)}return PlainInput}(function PlainInputMixin(en){return function(en){_inherits(PlainInput,en);var tn=_createSuper(PlainInput);function PlainInput(){return _classCallCheck(this,PlainInput),tn.apply(this,arguments)}return _createClass(PlainInput,[{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainInput.prototype),Rp,this);return en.content.append(Wp(_templateObject$f())),en}}]),PlainInput}(en)}(function(en){_inherits(Input,en);var tn=_createSuper(Input);function Input(){return _classCallCheck(this,Input),tn.apply(this,arguments)}return _createClass(Input,[{key:gp,value:function value(en){var tn=this;_get(_getPrototypeOf(Input.prototype),gp,this).call(this,en),this[zd]&&this[ap].inner.addEventListener("input",(function(){tn[hp]=!0;var en=tn[ap].inner;tn.value=en.value,tn[_p]({selectionEnd:en.selectionEnd,selectionStart:en.selectionStart}),tn[hp]=!1}))}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Input.prototype),Qd,this),{valueCopy:""})}},{key:sp,get:function get(){return this.inner}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(Input.prototype),Rp,this);return en.content.append(Wp(_templateObject$e())),en}},{key:"value",get:function get(){return _get(_getPrototypeOf(Input.prototype),"value",this)},set:function set(en){var tn=String(en);_set(_getPrototypeOf(Input.prototype),"value",tn,this,!0),this[_p]({valueCopy:tn})}}]),Input}(DelegateInputLabelMixin(FocusVisibleMixin(FormElementMixin(function TrackTextSelectionMixin(en){return function(en){_inherits(TrackTextSelection,en);var tn=_createSuper(TrackTextSelection);function TrackTextSelection(){return _classCallCheck(this,TrackTextSelection),tn.apply(this,arguments)}return _createClass(TrackTextSelection,[{key:gp,value:function value(en){var tn=this;if(_get(_getPrototypeOf(TrackTextSelection.prototype),gp,this)&&_get(_getPrototypeOf(TrackTextSelection.prototype),gp,this).call(this,en),this[zd]){var nn=function(){setTimeout((function(){tn[hp]=!0,function refreshSelectionState(en){var tn=en.inner,nn=tn.selectionEnd,rn=tn.selectionStart;en[_p]({selectionEnd:nn,selectionStart:rn})}(tn),tn[hp]=!1}),10)}.bind(this);this.addEventListener("keydown",nn),this.addEventListener("mousedown",nn),this.addEventListener("touchend",nn)}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(TrackTextSelection.prototype),Qd,this)||{},{selectionEnd:0,selectionStart:0})}}]),TrackTextSelection}(en)}(Eg.wrap("input"))))))));function _templateObject$g(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n display: inline-flex;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n touch-action: manipulation;\n }\n\n [part~="button"] {\n align-items: center;\n background: none;\n border: none;\n color: inherit;\n flex: 1;\n font: inherit;\n outline: none;\n padding: 0;\n }\n </style>\n ']);return _templateObject$g=function _templateObject(){return en},en}var Lg=function(en){_inherits(Button,en);var tn=_createSuper(Button);function Button(){return _classCallCheck(this,Button),tn.apply(this,arguments)}return _createClass(Button,[{key:Mp,value:function value(){var en=new MouseEvent("click",{bubbles:!0,cancelable:!0});this.dispatchEvent(en)}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Button.prototype),Qd,this),{role:"button"})}},{key:sp,get:function get(){return this[ap].inner}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(Button.prototype),Rp,this);return en.content.append(Wp(_templateObject$g())),en}}]),Button}(ComposedFocusMixin(DelegateInputLabelMixin(FocusVisibleMixin(Eg.wrap("button"))))),Tg=function(en){_inherits(SyntheticMouseEvent,en);var tn=_createSuper(SyntheticMouseEvent);function SyntheticMouseEvent(){return _classCallCheck(this,SyntheticMouseEvent),tn.apply(this,arguments)}return SyntheticMouseEvent}(_wrapNativeSuper(MouseEvent));function clearRepeat(en){en[Cp].repeatTimeout&&clearTimeout(en[Cp].repeatTimeout),en[Cp].repeatInterval&&clearInterval(en[Cp].repeatInterval)}function repeatStart(en){var tn=en[Cp],nn=tn.repeatIntervalDuration,rn=tn.repeatDelayDuration,an=setTimeout((function(){var tn=setInterval((function(){!function raiseMousedown(en){var tn=new Tg("mousedown",{bubbles:!0,button:0,cancelable:!0,clientX:0,clientY:0});en.dispatchEvent(tn)}(en)}),nn);en[_p]({repeatInterval:tn})}),rn-nn);en[_p]({repeatTimeout:an})}function repeatStop(en){clearRepeat(en),en[_p]({repeatTimeout:null,repeatInterval:null})}function _templateObject$h(){var en=_taggedTemplateLiteral(['\n <style>\n :host([disabled]) ::slotted(*) {\n opacity: 0.5;\n }\n\n [part~="button"] {\n display: inline-flex;\n justify-content: center;\n margin: 0;\n position: relative;\n }\n </style>\n ']);return _templateObject$h=function _templateObject(){return en},en}function PlainButtonMixin(en){return function(en){_inherits(PlainButton,en);var tn=_createSuper(PlainButton);function PlainButton(){return _classCallCheck(this,PlainButton),tn.apply(this,arguments)}return _createClass(PlainButton,[{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainButton.prototype),Rp,this);return en.content.append(Wp(_templateObject$h())),en}}]),PlainButton}(en)}var Ng=function(en){_inherits(PlainRepeatButton,en);var tn=_createSuper(PlainRepeatButton);function PlainRepeatButton(){return _classCallCheck(this,PlainRepeatButton),tn.apply(this,arguments)}return PlainRepeatButton}(PlainButtonMixin(function(en){_inherits(RepeatButton,en);var tn=_createSuper(RepeatButton);function RepeatButton(){return _classCallCheck(this,RepeatButton),tn.apply(this,arguments)}return RepeatButton}(function RepeatMousedownMixin(en){return function(en){_inherits(RepeatMousedown,en);var tn=_createSuper(RepeatMousedown);function RepeatMousedown(){return _classCallCheck(this,RepeatMousedown),tn.apply(this,arguments)}return _createClass(RepeatMousedown,[{key:gp,value:function value(en){var tn=this;_get(_getPrototypeOf(RepeatMousedown.prototype),gp,this)&&_get(_getPrototypeOf(RepeatMousedown.prototype),gp,this).call(this,en),this[zd]&&(this.addEventListener("mousedown",(function(en){en instanceof Tg||0!==en.button||(tn[hp]=!0,repeatStart(tn),tn[hp]=!1)})),this.addEventListener("mouseup",(function(en){0===en.button&&(tn[hp]=!0,repeatStop(tn),tn[hp]=!1)})),this.addEventListener("mouseleave",(function(en){0===en.button&&(tn[hp]=!0,repeatStop(tn),tn[hp]=!1)})),this.addEventListener("touchstart",(function(){tn[hp]=!0,repeatStart(tn),tn[hp]=!1})),this.addEventListener("touchend",(function(){tn[hp]=!0,repeatStop(tn),tn[hp]=!1})))}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(RepeatMousedown.prototype),kp,this)?_get(_getPrototypeOf(RepeatMousedown.prototype),kp,this).call(this,en,tn):{};return tn.disabled&&en.disabled&&(clearRepeat(this),Object.assign(nn,{repeatInterval:null,repeatTimeout:null})),nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(RepeatMousedown.prototype),Qd,this)||{},{repeatDelayDuration:500,repeatInterval:null,repeatIntervalDuration:50,repeatTimeout:null})}}]),RepeatMousedown}(en)}(Lg))));function _templateObject$i(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n background: white;\n border: 1px solid gray;\n box-sizing: border-box;\n }\n\n [part~="input"] {\n background: transparent;\n border: none;\n width: 4em;\n }\n\n [part~="spin-button"] {\n background: transparent;\n border: 1px solid gray;\n box-sizing: border-box;\n font-size: 0.6em;\n padding: 2px;\n }\n\n [part~="up-button"] {\n border-right: none;\n border-top: none;\n }\n\n [part~="down-button"] {\n border-bottom: none;\n border-right: none;\n border-top: none;\n }\n </style>\n ']);return _templateObject$i=function _templateObject(){return en},en}function _templateObject$j(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n display: inline-grid;\n }\n\n [part~="input"] {\n grid-row-end: 3;\n grid-row-start: 1;\n outline: none;\n text-align: right;\n }\n\n [part~="spin-button"] {\n grid-column: 2;\n user-select: none;\n }\n </style>\n <div id="input" part="input"></div>\n <div id="upButton" part="spin-button up-button" tabindex="-1"></div>\n <div id="downButton" part="spin-button down-button" tabindex="-1"></div>\n ']);return _templateObject$j=function _templateObject(){return en},en}var Ig=function(en){_inherits(ElixNumberSpinBox,en);var tn=_createSuper(ElixNumberSpinBox);function ElixNumberSpinBox(){return _classCallCheck(this,ElixNumberSpinBox),tn.apply(this,arguments)}return ElixNumberSpinBox}(function(en){_inherits(PlainNumberSpinBox,en);var tn=_createSuper(PlainNumberSpinBox);function PlainNumberSpinBox(){return _classCallCheck(this,PlainNumberSpinBox),tn.apply(this,arguments)}return PlainNumberSpinBox}(function PlainSpinBoxMixin(en){return function(en){_inherits(PlainSpinBox,en);var tn=_createSuper(PlainSpinBox);function PlainSpinBox(){return _classCallCheck(this,PlainSpinBox),tn.apply(this,arguments)}return _createClass(PlainSpinBox,[{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainSpinBox.prototype),Qd,this)||{},{buttonPartType:Ng,inputPartType:Pg})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainSpinBox.prototype),Rp,this);return en.content.getElementById("upButton").textContent="▲",en.content.getElementById("downButton").textContent="▼",en.content.append(Wp(_templateObject$i())),en}}]),PlainSpinBox}(en)}(function(en){_inherits(NumberSpinBox,en);var tn=_createSuper(NumberSpinBox);function NumberSpinBox(){return _classCallCheck(this,NumberSpinBox),tn.apply(this,arguments)}return _createClass(NumberSpinBox,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){"max"===en?this.max=parseFloat(nn):"min"===en?this.min=parseFloat(nn):"step"===en?this.step=parseFloat(nn):_get(_getPrototypeOf(NumberSpinBox.prototype),"attributeChangedCallback",this).call(this,en,tn,nn)}},{key:"formatValue",value:function formatValue(en,tn){return Number(en).toFixed(tn)}},{key:"parseValue",value:function parseValue(en,tn){var nn=0===tn?parseInt(en):parseFloat(en);return isNaN(nn)?0:nn}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(NumberSpinBox.prototype),kp,this);if(tn.step){var rn=en.step,an=/\.(\d)+$/.exec(String(rn)),sn=an&&an[1]?an[1].length:0;Object.assign(nn,{precision:sn})}if(tn.max||tn.min||tn.value){var cn=en.max,un=en.min,dn=en.precision,value=en.value,pn=parseInt(value,dn);""!==value&&isNaN(pn)?Object.assign(nn,{valid:!1,validationMessage:"Value must be a number"}):null===cn||pn<=cn?null===un||pn>=un?Object.assign(nn,{valid:!0,validationMessage:""}):Object.assign(nn,{valid:!1,validationMessage:"Value must be greater than or equal to ".concat(un,".")}):Object.assign(nn,{valid:!1,validationMessage:"Value must be less than or equal to ".concat(cn,".")}),Object.assign(nn,{canGoUp:isNaN(pn)||null===en.max||pn<=en.max}),Object.assign(nn,{canGoDown:isNaN(pn)||null===en.min||pn>=en.min})}return nn}},{key:"stepDown",value:function stepDown(){_get(_getPrototypeOf(NumberSpinBox.prototype),"stepDown",this).call(this);var en=this[Cp],tn=en.max,nn=en.precision,rn=en.value,an=this.parseValue(rn,nn)-this.step;null!==tn&&(an=Math.min(an,tn));var sn=this[Cp].min;(null===sn||an>=sn)&&(this.value=this.formatValue(an,nn))}},{key:"stepUp",value:function stepUp(){_get(_getPrototypeOf(NumberSpinBox.prototype),"stepUp",this).call(this);var en=this[Cp],tn=en.min,nn=en.precision,rn=en.value,an=this.parseValue(rn,nn)+this.step;null!==tn&&(an=Math.max(an,tn));var sn=this[Cp].max;(null===sn||an<=sn)&&(this.value=this.formatValue(an,nn))}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(NumberSpinBox.prototype),Qd,this),{max:null,min:null,step:1})}},{key:"max",get:function get(){return this[Cp].max},set:function set(en){this[_p]({max:en})}},{key:"min",get:function get(){return this[Cp].min},set:function set(en){this[_p]({min:en})}},{key:"step",get:function get(){return this[Cp].step},set:function set(en){isNaN(en)||this[_p]({step:en})}}]),NumberSpinBox}(function(en){_inherits(SpinBox,en);var tn=_createSuper(SpinBox);function SpinBox(){return _classCallCheck(this,SpinBox),tn.apply(this,arguments)}return _createClass(SpinBox,[{key:$d,value:function value(){return _get(_getPrototypeOf(SpinBox.prototype),$d,this)&&_get(_getPrototypeOf(SpinBox.prototype),$d,this).call(this),this.stepDown(),!0}},{key:ip,value:function value(){return _get(_getPrototypeOf(SpinBox.prototype),ip,this)&&_get(_getPrototypeOf(SpinBox.prototype),ip,this).call(this),this.stepUp(),!0}},{key:gp,value:function value(en){var tn=this;if(_get(_getPrototypeOf(SpinBox.prototype),gp,this).call(this,en),function renderParts$5(en,tn,nn){if(!nn||nn.inputPartType){var rn=tn.buttonPartType;en.querySelectorAll('[part~="spin-button"]').forEach((function(en){transmute(en,rn)}))}if(!nn||nn.inputPartType){var an=tn.inputPartType,sn=en.getElementById("input");sn&&transmute(sn,an)}}(this[wp],this[Cp],en),en.buttonPartType&&(this[ap].downButton.addEventListener("mousedown",(function(){tn[hp]=!0,tn.stepDown(),tn[hp]=!1})),this[ap].upButton.addEventListener("mousedown",(function(){tn[hp]=!0,tn.stepUp(),tn[hp]=!1}))),en.inputPartType&&this[ap].input.addEventListener("input",(function(){tn.value=tn[ap].input.value})),en.buttonPartType||en.inputPartType){var nn=this[ap].input,rn=this[ap].downButton;rn instanceof HTMLElement&&nn instanceof HTMLElement&&forwardFocus(rn,nn);var an=this[ap].upButton;an instanceof HTMLElement&&nn instanceof HTMLElement&&forwardFocus(an,nn)}var sn=this[Cp],cn=sn.disabled,value=sn.value;if(en.canGoUp||en.canGoDown||en.disabled){var un=this[Cp],dn=un.canGoUp,pn=un.canGoDown;if("disabled"in this[ap].input&&(this[ap].input.disabled=cn),"disabled"in this[ap].downButton){var hn=cn||!dn;this[ap].upButton.disabled=hn}if("disabled"in this[ap].upButton){var gn=cn||!pn;this[ap].downButton.disabled=gn}}en.value&&(this[ap].input.value=value)}},{key:mp,value:function value(en){_get(_getPrototypeOf(SpinBox.prototype),mp,this).call(this,en);var tn=this[Cp],nn=tn.stepSelect,value=tn.value;if(en.value&&nn){var rn=this[ap].input,an=value.length;rn.selectionStart=an,rn.selectionEnd=an,this[_p]({stepSelect:!1})}}},{key:"stepDown",value:function stepDown(){this[_p]({stepSelect:!0})}},{key:"stepUp",value:function stepUp(){this[_p]({stepSelect:!0})}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(SpinBox.prototype),Qd,this),{buttonPartType:"button",canGoDown:!0,canGoUp:!0,inputPartType:"input",orientation:"vertical",step:1,stepSelect:!1,value:""})}},{key:sp,get:function get(){return this[ap].input}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(SpinBox.prototype),Rp,this);return en.content.append(Wp(_templateObject$j())),en}},{key:"value",get:function get(){return this[Cp].value},set:function set(en){this[_p]({value:String(en)})}}]),SpinBox}(DelegateFocusMixin(DelegateInputLabelMixin(DelegateInputSelectionMixin(DisabledMixin(FocusVisibleMixin(FormElementMixin(KeyboardDirectionMixin(KeyboardMixin(bh)))))))))))));function _templateObject2$6(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="source"] {\n grid-template-columns: 20px 1fr auto;\n }\n ::slotted(*) {\n padding: 4px;\n width: 100%;\n background-color: var(--icon-bg-color);\n color: #fff;\n }\n }\n [part~="popup"] {\n width: 150%;\n }\n elix-number-spin-box {\n background-color: var(--input-color);\n border-radius: 3px;\n height: 20px !important;\n margin-top: 1px;\n }\n elix-number-spin-box::part(spin-button) {\n padding: 0px;\n }\n\n </style>\n ']);return _templateObject2$6=function _templateObject2(){return en},en}function _templateObject$k(){var en=_taggedTemplateLiteral(['\n <img src="./images/logo.svg" alt="icon" width="18" height="18"></img>\n ']);return _templateObject$k=function _templateObject(){return en},en}customElements.define("elix-number-spin-box",Ig);var Og=function(en){_inherits(Zoom,en);var tn=_createSuper(Zoom);function Zoom(){return _classCallCheck(this,Zoom),tn.apply(this,arguments)}return _createClass(Zoom,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"title":break;case"src":this.src=nn;break;case"inputsize":this.inputsize=nn;break;default:_get(_getPrototypeOf(Zoom.prototype),"attributeChangedCallback",this).call(this,en,tn,nn)}}},{key:gp,value:function value(en){var tn=this;_get(_getPrototypeOf(Zoom.prototype),gp,this).call(this,en),this[zd]&&(this.$img=this.shadowRoot.querySelector("img"),this.$input=this.shadowRoot.getElementById("input")),en.src&&this.$img.setAttribute("src",this[Cp].src),en.inputsize&&(this.$input.shadowRoot.querySelector('[part~="input"]').style.width=this[Cp].inputsize),en.inputPartType&&this.addEventListener("close",(function(en){var nn,rn;en.preventDefault();var an=null===(nn=en.detail)||void 0===nn||null===(rn=nn.closeResult)||void 0===rn?void 0:rn.getAttribute("value");if(an){var sn=new CustomEvent("change",{detail:{value:an}});tn.dispatchEvent(sn)}}))}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Zoom.prototype),Qd,this),{inputPartType:Ig,src:"./images/logo.svg",inputsize:"100%"})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(Zoom.prototype),Rp,this);return en.content.getElementById("source").prepend(Wp(_templateObject$k()).cloneNode(!0)),en.content.append(Xp.html(_templateObject2$6()).content),en}},{key:"src",get:function get(){return this[Cp].src},set:function set(en){this[_p]({src:en})}},{key:"inputsize",get:function get(){return this[Cp].inputsize},set:function set(en){this[_p]({inputsize:en})}},{key:"value",get:function get(){return this[Cp].value},set:function set(en){this[_p]({value:en})}}],[{key:"observedAttributes",get:function get(){return["title","src","inputsize","value"]}}]),Zoom}(mg);customElements.define("se-zoom",Og);var Fg=function(en){_inherits(ElixInput,en);var tn=_createSuper(ElixInput);function ElixInput(){return _classCallCheck(this,ElixInput),tn.apply(this,arguments)}return ElixInput}(Pg);customElements.define("elix-input",Fg);var Ug=document.createElement("template");Ug.innerHTML='\n <style>\n img {\n top: 2px;\n left: 4px;\n position: relative;\n }\n span {\n bottom: 1px;\n right: -4px;\n position: relative;\n margin-right: 4px;\n color: #fff;\n }\n elix-input {\n background-color: var(--input-color);\n border-radius: 3px;\n }\n </style>\n <img src="./images/logo.svg" alt="icon" width="12" height="12" />\n <span id="label">label</span>\n <elix-input></elix-input>\n';var Mg=function(en){_inherits(SEInput,en);var tn=_createSuper(SEInput);function SEInput(){var en;return _classCallCheck(this,SEInput),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(Ug.content.cloneNode(!0)),en.$img=en._shadowRoot.querySelector("img"),en.$label=en.shadowRoot.getElementById("label"),en.$event=new CustomEvent("change"),en.$input=en._shadowRoot.querySelector("elix-input"),en}return _createClass(SEInput,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"src":this.$img.setAttribute("src",nn),this.$label.remove();break;case"size":this.$input.setAttribute("size",nn);break;case"label":this.$label.textContent=nn,this.$img.remove();break;case"value":this.$input.value=nn;break;default:console.error("unknown attribute: ".concat(en))}}},{key:"connectedCallback",value:function connectedCallback(){var en=this;this.addEventListener("change",(function(tn){tn.preventDefault(),en.value=tn.target.value})),this.dispatchEvent(this.$event)}},{key:"label",get:function get(){return this.getAttribute("label")},set:function set(en){this.setAttribute("label",en)}},{key:"value",get:function get(){return this.$input.value},set:function set(en){this.$input.value=en}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(en){this.setAttribute("src",en)}},{key:"size",get:function get(){return this.getAttribute("size")},set:function set(en){this.setAttribute("size",en)}}],[{key:"observedAttributes",get:function get(){return["value","label","src","size"]}}]),SEInput}(_wrapNativeSuper(HTMLElement));customElements.define("se-input",Mg);var Rg=document.createElement("template");Rg.innerHTML='\n <style>\n img {\n position: relative;\n right: -4px;\n }\n span {\n bottom: -3px;\n right: -4px;\n position: relative;\n margin-left: 4px;\n margin-right: 4px;\n color: #fff;\n vertical-align: ;\n }\n elix-number-spin-box {\n background-color: var(--input-color);\n border-radius: 3px;\n height: 20px !important;\n margin-top: 1px;\n vertical-align: top;\n }\n elix-number-spin-box::part(spin-button) {\n padding: 0px;\n }\n elix-number-spin-box::part(input) {\n width: 3em;\n }\n elix-number-spin-box{\n width: 54px;\n height: 24px;\n }\n </style>\n <img src="./images/logo.svg" alt="icon" width="24" height="24" aria-labelledby="label" />\n <span id="label">label</span>\n <elix-number-spin-box min="1" step="1"></elix-number-spin-box>\n';var Dg,jg=function(en){_inherits(SESpinInput,en);var tn=_createSuper(SESpinInput);function SESpinInput(){var en;return _classCallCheck(this,SESpinInput),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(Rg.content.cloneNode(!0)),en.$img=en._shadowRoot.querySelector("img"),en.$label=en.shadowRoot.getElementById("label"),en.$event=new CustomEvent("change"),en.$input=en._shadowRoot.querySelector("elix-number-spin-box"),en}return _createClass(SESpinInput,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"src":this.$img.setAttribute("src",nn),this.$label.remove();break;case"size":this.$input.shadowRoot.getElementById("input").size=nn,this.$input.shadowRoot.getElementById("input").style.width="unset";break;case"step":this.$input.setAttribute("step",nn);break;case"min":this.$input.setAttribute("min",nn);break;case"max":this.$input.setAttribute("max",nn);break;case"label":this.$label.textContent=nn,this.$img.remove();break;case"value":this.$input.value=nn;break;default:console.error("unknown attribute: ".concat(en))}}},{key:"connectedCallback",value:function connectedCallback(){var en=this;this.$input.addEventListener("change",(function(tn){tn.preventDefault(),en.value=tn.target.value,en.dispatchEvent(en.$event)})),this.$input.addEventListener("click",(function(tn){tn.preventDefault(),en.value=tn.target.value,en.dispatchEvent(en.$event)}))}},{key:"label",get:function get(){return this.getAttribute("label")},set:function set(en){this.setAttribute("label",en)}},{key:"value",get:function get(){return this.$input.value},set:function set(en){this.$input.value=en}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(en){this.setAttribute("src",en)}},{key:"size",get:function get(){return this.getAttribute("size")},set:function set(en){this.setAttribute("size",en)}}],[{key:"observedAttributes",get:function get(){return["value","label","src","size","min","max","step"]}}]),SESpinInput}(_wrapNativeSuper(HTMLElement));customElements.define("se-spin-input",jg);var Qg=window.ResizeObserver;function _templateObject$l(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n cursor: default;\n display: inline-flex;\n -webkit-tap-highlight-color: transparent;\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n\n #stripContainer {\n display: flex;\n flex: 1;\n overflow: hidden;\n position: relative;\n }\n\n #strip {\n display: inline-flex;\n position: relative;\n transition: transform 0.25s;\n }\n </style>\n <div id="stripContainer" role="none">\n <div id="strip" role="none">\n <slot></slot>\n </div>\n </div>\n ']);return _templateObject$l=function _templateObject(){return en},en}void 0!==Qg&&(Dg=new Qg((function(en){en.forEach((function(en){var tn=en.target,nn=tn.clientHeight,rn=tn.clientWidth;tn[_p]({clientHeight:nn,clientWidth:rn})}))})));var Hg=function(en){_inherits(ElixCenteredStrip,en);var tn=_createSuper(ElixCenteredStrip);function ElixCenteredStrip(){return _classCallCheck(this,ElixCenteredStrip),tn.apply(this,arguments)}return ElixCenteredStrip}(function(en){_inherits(PlainCenteredStrip,en);var tn=_createSuper(PlainCenteredStrip);function PlainCenteredStrip(){return _classCallCheck(this,PlainCenteredStrip),tn.apply(this,arguments)}return PlainCenteredStrip}(function(en){_inherits(CenteredStrip,en);var tn=_createSuper(CenteredStrip);function CenteredStrip(){return _classCallCheck(this,CenteredStrip),tn.apply(this,arguments)}return _createClass(CenteredStrip,[{key:gp,value:function value(en){if(_get(_getPrototypeOf(CenteredStrip.prototype),gp,this).call(this,en),en.clientWidth||en.enableEffects||en.rightToLeft||en.currentIndex||en.swipeFraction){var tn=this[Cp],nn=tn.orientation,rn=tn.rightToLeft,an=tn.currentIndex,sn=rn?1:-1,cn=null!=this[Cp].swipeFraction,un=an+sn*(this[Cp].swipeFraction||0),dn="vertical"===nn,pn=dn?"offsetTop":"offsetLeft",hn=dn?"offsetHeight":"offsetWidth",gn=this[ap].stripContainer[hn],An=this[ap].strip[hn];if(An>0){var mn=0,vn="";if(An<=gn)vn="center";else{var yn=Math.floor(un),_n=this.items&&this.items[yn],wn=_n instanceof HTMLElement?_n[pn]+_n[hn]/2:0,xn=yn+1,Sn=this.items&&this.items[xn],Cn=Sn instanceof HTMLElement?Sn[pn]+Sn[hn]/2:0,kn=0;if(_n&&!Sn)kn=wn;else if(!_n&&Sn)kn=Cn;else if(_n&&Sn){kn=wn+(un-yn)*(Cn-wn)}!dn&&rn&&(kn=An-kn),mn=kn-gn/2,mn=Math.max(mn,0),mn=Math.min(mn,An-gn),mn*=sn}var Bn="translate".concat(dn?"Y":"X","(").concat(mn,"px)"),En=this[Cp].enableEffects&&!cn;Object.assign(this[ap].strip.style,{transform:Bn,transition:En?"transform 0.25s":"none"}),this[ap].stripContainer.style.justifyContent=vn}}if(en.items||en.currentIndex){var Pn=this[Cp],Ln=Pn.currentIndex,Tn=Pn.items;Tn&&Tn.forEach((function(en,tn){en.toggleAttribute("selected",tn===Ln)}))}if(en.orientation){var Nn="horizontal"===this[Cp].orientation?"":"column";this[ap].stripContainer.style.flexDirection=Nn,this[ap].strip.style.flexDirection=Nn}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(CenteredStrip.prototype),Qd,this),{currentItemRequired:!0,orientation:"horizontal"})}},{key:"orientation",get:function get(){return this[Cp].orientation},set:function set(en){this[_p]({orientation:en})}},{key:"swipeFraction",get:function get(){return this[Cp].swipeFraction},set:function set(en){this[_p]({swipeFraction:en})}},{key:Rp,get:function get(){return Xp.html(_templateObject$l())}}]),CenteredStrip}(CursorAPIMixin(CursorSelectMixin(function EffectMixin(en){return function(en){_inherits(Transition,en);var tn=_createSuper(Transition);function Transition(){return _classCallCheck(this,Transition),tn.apply(this,arguments)}return _createClass(Transition,[{key:mp,value:function value(en){var tn=this;_get(_getPrototypeOf(Transition.prototype),mp,this)&&_get(_getPrototypeOf(Transition.prototype),mp,this).call(this,en),this[zd]&&setTimeout((function(){tn[_p]({enableEffects:!0})}))}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Transition.prototype),Qd,this)||{},{enableEffects:!1})}}]),Transition}(en)}(ItemsAPIMixin(ItemsCursorMixin(LanguageDirectionMixin(function ResizeMixin(en){return function(en){_inherits(Resize,en);var tn=_createSuper(Resize);function Resize(){return _classCallCheck(this,Resize),tn.apply(this,arguments)}return _createClass(Resize,[{key:Rd,value:function value(){_get(_getPrototypeOf(Resize.prototype),Rd,this)&&_get(_getPrototypeOf(Resize.prototype),Rd,this).call(this);var en=this.clientHeight,tn=this.clientWidth;(en!==this[Cp].clientHeight||tn!==this[Cp].clientWidth)&&this[_p]({clientHeight:en,clientWidth:tn})}},{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(Resize.prototype),"connectedCallback",this).call(this),Dg&&Dg.observe(this)}},{key:"disconnectedCallback",value:function disconnectedCallback(){_get(_getPrototypeOf(Resize.prototype),"disconnectedCallback",this)&&_get(_getPrototypeOf(Resize.prototype),"disconnectedCallback",this).call(this),Dg&&Dg.unobserve(this)}},{key:mp,value:function value(en){_get(_getPrototypeOf(Resize.prototype),mp,this)&&_get(_getPrototypeOf(Resize.prototype),mp,this).call(this,en),this[Rd]()}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Resize.prototype),Qd,this)||{},{clientHeight:this.clientHeight,clientWidth:this.clientWidth})}}]),Resize}(en)}(SingleSelectAPIMixin(SlotItemsMixin(TapCursorMixin(bh)))))))))))));customElements.define("elix-centered-strip",Hg);var Gg=["#000000","#3f3f3f","#7f7f7f","#bfbfbf","#ffffff","#ff0000","#ff7f00","#ffff00","#7fff00","#00ff00","#00ff7f","#00ffff","#007fff","#0000ff","#7f00ff","#ff00ff","#ff007f","#7f0000","#7f3f00","#7f7f00","#3f7f00","#007f00","#007f3f","#007f7f","#003f7f","#00007f","#3f007f","#7f007f","#7f003f","#ffaaaa","#ffd4aa","#ffffaa","#d4ffaa","#aaffaa","#aaffd4","#aaffff","#aad4ff","#aaaaff","#d4aaff","#ffaaff","#ffaad4"],Vg=document.createElement("template");Vg.innerHTML='\n <style>\n .square {\n height: 15px;\n width: 15px;\n }\n </style>\n <div title="Click to change fill color, shift-click to change stroke color">\n <elix-centered-strip style="width:300px;padding:5px;background: #fff; border-radius: 5px;">\n </elix-centered-strip>\n </div>\n';var zg=function(en){_inherits(SEPalette,en);var tn=_createSuper(SEPalette);function SEPalette(){var en;return _classCallCheck(this,SEPalette),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(Vg.content.cloneNode(!0)),en.$strip=en._shadowRoot.querySelector("elix-centered-strip"),Gg.forEach((function(tn){var nn=document.createElement("div");nn.classList.add("square"),nn.style.backgroundColor=tn,nn.dataset.rgb=tn,en.$strip.append(nn)})),en}return _createClass(SEPalette,[{key:"connectedCallback",value:function connectedCallback(){var en=this;this.$strip.addEventListener("click",(function(tn){tn.preventDefault();var nn=tn.shiftKey||2===tn.button?"stroke":"fill",rn=en.$strip.currentItem.dataset.rgb;"none"!==rn&&"transparent"!==rn&&"initial"!==rn||(rn="none");var an=new CustomEvent("change",{detail:{picker:nn,color:rn},bubbles:!1});en.dispatchEvent(an)}))}}]),SEPalette}(_wrapNativeSuper(HTMLElement));function CurrentMixin(en){return function(en){_inherits(Current,en);var tn=_createSuper(Current);function Current(){var en;_classCallCheck(this,Current);var nn=_assertThisInitialized(en=tn.call(this));return!en[pp]&&nn.attachInternals&&(en[pp]=nn.attachInternals()),en}return _createClass(Current,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if("current"===en){var rn=booleanAttributeValue(en,nn);this.current!==rn&&(this.current=rn)}else _get(_getPrototypeOf(Current.prototype),"attributeChangedCallback",this).call(this,en,tn,nn)}},{key:gp,value:function value(en){(_get(_getPrototypeOf(Current.prototype),gp,this).call(this,en),en.current)&&setInternalState$7(this,"current",this[Cp].current)}},{key:mp,value:function value(en){if(_get(_getPrototypeOf(Current.prototype),mp,this)&&_get(_getPrototypeOf(Current.prototype),mp,this).call(this,en),en.current){var tn=this[Cp].current,nn=new CustomEvent("current-changed",{bubbles:!0,detail:{current:tn}});this.dispatchEvent(nn);var rn=new CustomEvent("currentchange",{bubbles:!0,detail:{current:tn}});this.dispatchEvent(rn)}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Current.prototype),Qd,this)||{},{current:!1})}},{key:"current",get:function get(){return this[Cp].current},set:function set(en){this[_p]({current:en})}}]),Current}(en)}function SelectableMixin(en){return function(en){_inherits(Selectable,en);var tn=_createSuper(Selectable);function Selectable(){var en;_classCallCheck(this,Selectable);var nn=_assertThisInitialized(en=tn.call(this));return!en[pp]&&nn.attachInternals&&(en[pp]=nn.attachInternals()),en}return _createClass(Selectable,[{key:gp,value:function value(en){(_get(_getPrototypeOf(Selectable.prototype),gp,this).call(this,en),en.selected)&&setInternalState$7(this,"selected",this[Cp].selected)}},{key:mp,value:function value(en){if(_get(_getPrototypeOf(Selectable.prototype),mp,this)&&_get(_getPrototypeOf(Selectable.prototype),mp,this).call(this,en),en.selected){var tn=this[Cp].selected,nn=new CustomEvent("selected-changed",{bubbles:!0,detail:{selected:tn}});this.dispatchEvent(nn);var rn=new CustomEvent("selectedchange",{bubbles:!0,detail:{selected:tn}});this.dispatchEvent(rn)}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Selectable.prototype),Qd,this)||{},{selected:!1})}},{key:"selected",get:function get(){return this[Cp].selected},set:function set(en){this[_p]({selected:en})}}]),Selectable}(en)}function _templateObject$m(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n font-family: -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, Oxygen, Ubuntu, Cantarell, \'Open Sans\', \'Helvetica Neue\', sans-serif;\n font-size: 10pt;\n white-space: nowrap;\n }\n\n :host([disabled]) {\n opacity: 0.5;\n }\n\n #checkmark {\n height: 1em;\n visibility: hidden;\n width: 1em;\n }\n\n :host([selected]) #checkmark {\n visibility: visible;\n }\n </style>\n <svg id="checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="4 6 18 12">\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/>\n </svg>\n <slot></slot>\n ']);return _templateObject$m=function _templateObject(){return en},en}customElements.define("se-palette",zg);var Kg=function(en){_inherits(ElixMenuItem,en);var tn=_createSuper(ElixMenuItem);function ElixMenuItem(){return _classCallCheck(this,ElixMenuItem),tn.apply(this,arguments)}return ElixMenuItem}(function(en){_inherits(PlainMenuItem,en);var tn=_createSuper(PlainMenuItem);function PlainMenuItem(){return _classCallCheck(this,PlainMenuItem),tn.apply(this,arguments)}return _createClass(PlainMenuItem,[{key:Rp,get:function get(){return Xp.html(_templateObject$m())}}]),PlainMenuItem}(function(en){_inherits(MenuItem,en);var tn=_createSuper(MenuItem);function MenuItem(){return _classCallCheck(this,MenuItem),tn.apply(this,arguments)}return MenuItem}(CurrentMixin(DisabledMixin(SelectableMixin(bh))))));function _templateObject$n(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n box-sizing: border-box;\n cursor: default;\n display: inline-flex;\n -webkit-tap-highlight-color: transparent;\n touch-action: manipulation;\n }\n\n #content {\n display: flex;\n flex: 1;\n flex-direction: column;\n max-height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch; /* for momentum scrolling */\n }\n \n ::slotted(*) {\n flex-shrink: 0;\n outline: none;\n touch-action: manipulation;\n }\n\n ::slotted(option) {\n font: inherit;\n min-height: inherit;\n }\n </style>\n <div id="content" role="none">\n <slot></slot>\n </div>\n ']);return _templateObject$n=function _templateObject(){return en},en}customElements.define("elix-menu-item",Kg);var qg=function(en){_inherits(Menu,en);var tn,nn=_createSuper(Menu);function Menu(){return _classCallCheck(this,Menu),nn.apply(this,arguments)}return _createClass(Menu,[{key:"flashCurrentItem",value:(tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var en,tn,nn;return regeneratorRuntime.wrap((function _callee$(rn){for(;;)switch(rn.prev=rn.next){case 0:if(en=this[Cp].focusVisible,tn=matchMedia("(pointer: fine)").matches,!en&&!tn){rn.next=10;break}return nn=75,this[_p]({highlightCurrentItem:!1}),rn.next=7,new Promise((function(en){return setTimeout(en,nn)}));case 7:return this[_p]({highlightCurrentItem:!0}),rn.next=10,new Promise((function(en){return setTimeout(en,nn)}));case 10:case"end":return rn.stop()}}),_callee,this)}))),function flashCurrentItem(){return tn.apply(this,arguments)})},{key:gp,value:function value(en){var tn=this;_get(_getPrototypeOf(Menu.prototype),gp,this).call(this,en),this[zd]&&(this.addEventListener("disabledchange",(function(en){tn[hp]=!0;var nn=en.target,rn=tn[Cp].items,an=null===rn?-1:rn.indexOf(nn);if(an>=0){var sn=tn[Cp].availableItemFlags.slice();sn[an]=!nn.disabled,tn[_p]({availableItemFlags:sn})}tn[hp]=!1})),"PointerEvent"in window?this.addEventListener("pointerdown",(function(en){return tn[Mp](en)})):this.addEventListener("touchstart",(function(en){return tn[Mp](en)})),this.removeAttribute("tabindex"));var nn=this[Cp],rn=nn.currentIndex,an=nn.items;if((en.items||en.currentIndex||en.highlightCurrentItem)&&an){var sn=this[Cp].highlightCurrentItem;an.forEach((function(en,tn){en.toggleAttribute("current",sn&&tn===rn)}))}(en.items||en.currentIndex||en.currentItemFocused||en.focusVisible)&&an&&an.forEach((function(en,nn){var an=nn===rn,sn=rn<0&&0===nn;tn[Cp].currentItemFocused?an||sn||en.removeAttribute("tabindex"):(an||sn)&&(en.tabIndex=0)}))}},{key:mp,value:function value(en){if(_get(_getPrototypeOf(Menu.prototype),mp,this).call(this,en),!this[zd]&&en.currentIndex&&!this[Cp].currentItemFocused){var tn=this[Cp].currentItem;(tn instanceof HTMLElement?tn:this).focus(),this[_p]({currentItemFocused:!0})}}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(Menu.prototype),kp,this).call(this,en,tn);if(tn.currentIndex&&Object.assign(nn,{currentItemFocused:!1}),tn.items){var rn=en.items,an=null===rn?null:rn.map((function(en){return!en.disabled}));Object.assign(nn,{availableItemFlags:an})}return nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Menu.prototype),Qd,this),{availableItemFlags:null,highlightCurrentItem:!0,orientation:"vertical",currentItemFocused:!1})}},{key:yp,get:function get(){return this[ap].content}},{key:Rp,get:function get(){return Xp.html(_templateObject$n())}}]),Menu}(function AriaMenuMixin(en){return function(en){_inherits(AriaMenu,en);var tn=_createSuper(AriaMenu);function AriaMenu(){return _classCallCheck(this,AriaMenu),tn.apply(this,arguments)}return _createClass(AriaMenu,[{key:gp,value:function value(en){_get(_getPrototypeOf(AriaMenu.prototype),gp,this)&&_get(_getPrototypeOf(AriaMenu.prototype),gp,this).call(this,en);var tn=this[Cp].items;if((en.items||en.itemRole)&&tn){var nn=this[Cp].itemRole;tn.forEach((function(en){nn===og[en.localName]?en.removeAttribute("role"):en.setAttribute("role",nn)}))}if(en.role){var rn=this[Cp].role;this.setAttribute("role",rn)}}},{key:Qd,get:function get(){var en=_get(_getPrototypeOf(AriaMenu.prototype),Qd,this);return Object.assign(en,{itemRole:en.itemRole||"menuitem",role:en.role||"menu"})}},{key:"itemRole",get:function get(){return this[Cp].itemRole},set:function set(en){this[_p]({itemRole:en})}},{key:"role",get:function get(){return _get(_getPrototypeOf(AriaMenu.prototype),"role",this)},set:function set(en){_set(_getPrototypeOf(AriaMenu.prototype),"role",en,this,!0),this[vp]||this[_p]({role:en})}}]),AriaMenu}(en)}(CursorAPIMixin(CursorInViewMixin(DelegateFocusMixin(DirectionCursorMixin(ItemsAPIMixin(ItemsCursorMixin(ItemsTextMixin(KeyboardDirectionMixin(KeyboardMixin(KeyboardPagedCursorMixin(KeyboardPrefixCursorMixin(LanguageDirectionMixin(SlotItemsMixin(TapCursorMixin(bh))))))))))))))));function _templateObject$o(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="source"] {\n cursor: default;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n touch-action: manipulation;\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n\n :host([opened][focus-visible]) {\n outline: none;\n }\n </style>\n ']);return _templateObject$o=function _templateObject(){return en},en}var $g=function(en){_inherits(PopupButton,en);var tn=_createSuper(PopupButton);function PopupButton(){return _classCallCheck(this,PopupButton),tn.apply(this,arguments)}return _createClass(PopupButton,[{key:cp,value:function value(en){var tn;switch(en.key){case" ":case"ArrowDown":case"ArrowUp":this.closed&&(this.open(),tn=!0);break;case"Enter":this.opened||(this.open(),tn=!0);break;case"Escape":this.opened&&(this.close({canceled:"Escape"}),tn=!0)}if(!(tn=_get(_getPrototypeOf(PopupButton.prototype),cp,this)&&_get(_getPrototypeOf(PopupButton.prototype),cp,this).call(this,en))&&this.opened&&!en.metaKey&&!en.altKey)switch(en.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":case"PageDown":case"PageUp":case" ":tn=!0}return tn}},{key:gp,value:function value(en){var tn=this;if(_get(_getPrototypeOf(PopupButton.prototype),gp,this).call(this,en),this[zd]&&(this.addEventListener("blur",blurHandler$1.bind(this)),this[ap].source.addEventListener("focus",function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en){var nn,rn;return regeneratorRuntime.wrap((function _callee$(an){for(;;)switch(an.prev=an.next){case 0:if(nn=ownEvent(tn[ap].popup,en),rn=null!==tn[Cp].popupHeight,nn||!tn.opened||!rn){an.next=7;break}return tn[hp]=!0,an.next=6,tn.close();case 6:tn[hp]=!1;case 7:case"end":return an.stop()}}),_callee)})));return function(tn){return en.apply(this,arguments)}}())),en.opened){var nn=this[Cp].opened;this.toggleAttribute("opened",nn)}en.sourcePartType&&this[ap].source.addEventListener("mousedown",(function(en){if(tn.disabled)en.preventDefault();else{var nn=en;nn.button&&0!==nn.button||(setTimeout((function(){tn.opened||(tn[hp]=!0,tn.open(),tn[hp]=!1)})),en.stopPropagation())}}));en.popupPartType&&this[ap].popup.removeAttribute("tabindex")}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupButton.prototype),Qd,this),{sourcePartType:"button"})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PopupButton.prototype),Rp,this);return en.content.append(Wp(_templateObject$o())),en}}]),PopupButton}(DelegateFocusMixin(KeyboardMixin(PopupDragSelectMixin(Xh))));function blurHandler$1(en){return _blurHandler$1.apply(this,arguments)}function _blurHandler$1(){return(_blurHandler$1=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(en){var tn,nn;return regeneratorRuntime.wrap((function _callee2$(rn){for(;;)switch(rn.prev=rn.next){case 0:if(tn=this,!((nn=en.relatedTarget||document.activeElement)instanceof Element)||deepContains(tn,nn)){rn.next=7;break}return tn[hp]=!0,rn.next=6,tn.close({canceled:"blur"});case 6:tn[hp]=!1;case 7:case"end":return rn.stop()}}),_callee2,this)})))).apply(this,arguments)}function _templateObject2$7(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="menu"] {\n max-height: 100%;\n }\n </style>\n ']);return _templateObject2$7=function _templateObject2(){return en},en}function _templateObject$p(){var en=_taggedTemplateLiteral(['\n <div id="menu" part="menu">\n <slot></slot>\n </div>\n ']);return _templateObject$p=function _templateObject(){return en},en}var Wg=function(en){_inherits(MenuButton,en);var tn=_createSuper(MenuButton);function MenuButton(){return _classCallCheck(this,MenuButton),tn.apply(this,arguments)}return _createClass(MenuButton,[{key:gp,value:function value(en){var tn=this;if(_get(_getPrototypeOf(MenuButton.prototype),gp,this).call(this,en),renderParts$6(this[wp],this[Cp],en),en.menuPartType&&(this[ap].menu.addEventListener("blur",function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en){var nn;return regeneratorRuntime.wrap((function _callee$(rn){for(;;)switch(rn.prev=rn.next){case 0:if(nn=en.relatedTarget||document.activeElement,!tn.opened||deepContains(tn[ap].menu,nn)){rn.next=7;break}return tn[hp]=!0,rn.next=6,tn.close();case 6:tn[hp]=!1;case 7:case"end":return rn.stop()}}),_callee)})));return function(tn){return en.apply(this,arguments)}}()),this[ap].menu.addEventListener("mousedown",(function(en){0===en.button&&tn.opened&&(en.stopPropagation(),en.preventDefault())}))),en.opened){var nn=this[Cp].opened;this[ap].source.setAttribute("aria-expanded",nn.toString())}}},{key:mp,value:function value(en){_get(_getPrototypeOf(MenuButton.prototype),mp,this).call(this,en),en.menuPartType&&this[_p]({popupList:this[ap].menu})}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(MenuButton.prototype),kp,this).call(this,en,tn);return tn.opened&&!en.opened&&Object.assign(nn,{currentIndex:-1}),nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(MenuButton.prototype),Qd,this),{menuPartType:qg})}},{key:"items",get:function get(){var en=this[ap]&&this[ap].menu;return en?en.items:null}},{key:"menuPartType",get:function get(){return this[Cp].menuPartType},set:function set(en){this[_p]({menuPartType:en})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(MenuButton.prototype),Rp,this),tn=en.content.querySelector("slot:not([name])");return tn&&tn.replaceWith(Wp(_templateObject$p())),renderParts$6(en.content,this[Cp]),en.content.append(Wp(_templateObject2$7())),en}}]),MenuButton}(PopupListMixin($g));function renderParts$6(en,tn,nn){if(!nn||nn.menuPartType){var rn=tn.menuPartType,an=en.getElementById("menu");an&&transmute(an,rn)}}var Xg=function(en){_inherits(PlainButton,en);var tn=_createSuper(PlainButton);function PlainButton(){return _classCallCheck(this,PlainButton),tn.apply(this,arguments)}return PlainButton}(PlainButtonMixin(Lg));function _templateObject$q(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="button"] {\n background: #eee;\n border: 1px solid #ccc;\n padding: 0.25em 0.5em;\n }\n </style>\n ']);return _templateObject$q=function _templateObject(){return en},en}var Yg=function(en){_inherits(PlainBorderButton,en);var tn=_createSuper(PlainBorderButton);function PlainBorderButton(){return _classCallCheck(this,PlainBorderButton),tn.apply(this,arguments)}return _createClass(PlainBorderButton,[{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainBorderButton.prototype),Rp,this);return en.content.append(Wp(_templateObject$q())),en}}]),PlainBorderButton}(Xg);function _templateObject$r(){var en=_taggedTemplateLiteral(["\n <style>\n :host ::slotted(*) {\n padding: 0.25em 1em;\n }\n \n :host ::slotted([current]) {\n background: highlight;\n color: highlighttext;\n }\n\n @media (pointer: coarse) {\n ::slotted(*) {\n padding: 1em;\n }\n }\n </style>\n "]);return _templateObject$r=function _templateObject(){return en},en}var Jg=function(en){_inherits(PlainMenu,en);var tn=_createSuper(PlainMenu);function PlainMenu(){return _classCallCheck(this,PlainMenu),tn.apply(this,arguments)}return _createClass(PlainMenu,[{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainMenu.prototype),Rp,this);return en.content.append(Wp(_templateObject$r())),en}}]),PlainMenu}(qg);function _templateObject$s(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="menu"] {\n background: window;\n border: none;\n padding: 0.5em 0;\n }\n </style>\n ']);return _templateObject$s=function _templateObject(){return en},en}var Zg=function(en){_inherits(PlainMenuButton,en);var tn=_createSuper(PlainMenuButton);function PlainMenuButton(){return _classCallCheck(this,PlainMenuButton),tn.apply(this,arguments)}return _createClass(PlainMenuButton,[{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainMenuButton.prototype),Qd,this),{menuPartType:Jg,popupPartType:Ag,popupTogglePartType:hg,sourcePartType:Yg})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainMenuButton.prototype),Rp,this);return en.content.append(Wp(_templateObject$s())),en}}]),PlainMenuButton}(PopupToggleMixin(Wg));function _templateObject$t(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="button"] {\n background: #72797A;\n border: 1px solid #ccc;\n }\n </style>\n ']);return _templateObject$t=function _templateObject(){return en},en}var ef=function(en){_inherits(SePlainBorderButton,en);var tn=_createSuper(SePlainBorderButton);function SePlainBorderButton(){return _classCallCheck(this,SePlainBorderButton),tn.apply(this,arguments)}return _createClass(SePlainBorderButton,[{key:Rp,get:function get(){var en=_get(_getPrototypeOf(SePlainBorderButton.prototype),Rp,this);return en.content.append(Wp(_templateObject$t())),en}}]),SePlainBorderButton}(Xg),tf=function(en){_inherits(ElixMenuButton,en);var tn=_createSuper(ElixMenuButton);function ElixMenuButton(){return _classCallCheck(this,ElixMenuButton),tn.apply(this,arguments)}return _createClass(ElixMenuButton,[{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(ElixMenuButton.prototype),Qd,this),{sourcePartType:ef})}}]),ElixMenuButton}(Zg);customElements.define("elix-menu-button",tf);var nf=document.createElement("template");nf.innerHTML='\n <style>\n :host {\n padding: 0px;\n }\n elix-menu-button::part(menu) {\n background-color: var(--icon-bg-color) !important;\n color: #fff;\n }\n elix-menu-button::part(popup-toggle) {\n padding: 0.25em 0.60em !important\n }\n :host ::slotted([current]){\n background-color: var(--icon-bg-color-hover) !important;\n color: #fff;\n }\n :host ::slotted(*){\n padding: 0.25em 1.25em 0.25em 0.25em !important;\n margin: 2px;\n }\n </style>\n\n <elix-menu-button id="MenuButton" aria-label="Main Menu">\n <slot></slot>\n </elix-menu-button>\n\n';var rf=function(en){_inherits(SeMenu,en);var tn=_createSuper(SeMenu);function SeMenu(){var en;return _classCallCheck(this,SeMenu),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(nf.content.cloneNode(!0)),en.$menu=en._shadowRoot.querySelector("elix-menu-button"),en.$label=en.$menu.shadowRoot.querySelector("#popupToggle").shadowRoot,en}return _createClass(SeMenu,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){var rn=new Image;if(tn!==nn)switch(en){case"src":rn.src=nn,rn.width=24,rn.height=24,this.$label.prepend(rn);break;case"label":this.$label.prepend(nn);break;default:console.error("unknown attribute: ".concat(en))}}},{key:"label",get:function get(){return this.getAttribute("label")},set:function set(en){this.setAttribute("label",en)}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(en){this.setAttribute("src",en)}}],[{key:"observedAttributes",get:function get(){return["label","src"]}}]),SeMenu}(_wrapNativeSuper(HTMLElement));customElements.define("se-menu",rf);var of=function(en){_inherits(ElixMenu,en);var tn=_createSuper(ElixMenu);function ElixMenu(){return _classCallCheck(this,ElixMenu),tn.apply(this,arguments)}return ElixMenu}(Jg);customElements.define("elix-menu",of);var af=document.createElement("template");af.innerHTML='\n <style>\n </style>\n <elix-menu-item>\n <div style="display:flex; align-items: center;">\n <img src="./images/logo.svg" alt="icon" style="display:none;" width="24"/>\n <span style="margin-left: 7px;"></span>\n </div>\n </elix-menu-item>\n';var sf=function(en){_inherits(SeMenuItem,en);var tn=_createSuper(SeMenuItem);function SeMenuItem(){var en;return _classCallCheck(this,SeMenuItem),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(af.content.cloneNode(!0)),en.$img=en._shadowRoot.querySelector("img"),en.$label=en._shadowRoot.querySelector("span"),en.$menuitem=en._shadowRoot.querySelector("elix-menu-item"),en.$svg=en.$menuitem.shadowRoot.querySelector("#checkmark"),en.$svg.setAttribute("style","display: none;"),en}return _createClass(SeMenuItem,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){var rn="";if(tn!==nn)switch(en){case"src":this.$img.setAttribute("src",nn),this.$img.style.display="inline-block";break;case"label":rn=this.getAttribute("shortcut"),this.$label.textContent="".concat(nn," ").concat(rn?"(".concat(rn,")"):"");break;default:console.error("unknown attribute: ".concat(en))}}},{key:"connectedCallback",value:function connectedCallback(){var en=this,tn=this.getAttribute("shortcut");tn&&document.addEventListener("keydown",(function(nn){if("BODY"===nn.target.nodeName){var rn="".concat(nn.metaKey?"meta+":"").concat(nn.ctrlKey?"ctrl+":"").concat(nn.key.toUpperCase());tn===rn&&(en.id&&document.getElementById(en.id).click(),nn.preventDefault())}}))}},{key:"label",get:function get(){return this.getAttribute("label")},set:function set(en){this.setAttribute("label",en)}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(en){this.setAttribute("src",en)}}],[{key:"observedAttributes",get:function get(){return["label","src"]}}]),SeMenuItem}(_wrapNativeSuper(HTMLElement));function _templateObject3$1(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="list"] {\n max-height: 100%;\n }\n </style>\n ']);return _templateObject3$1=function _templateObject3(){return en},en}function _templateObject2$8(){var en=_taggedTemplateLiteral(['\n <div id="list" part="list">\n <slot></slot>\n </div>\n ']);return _templateObject2$8=function _templateObject2(){return en},en}function _templateObject$u(){var en=_taggedTemplateLiteral([' <div id="value" part="value"></div> ']);return _templateObject$u=function _templateObject(){return en},en}customElements.define("se-menu-item",sf);var lf=function(en){_inherits(DropdownList,en);var tn=_createSuper(DropdownList);function DropdownList(){return _classCallCheck(this,DropdownList),tn.apply(this,arguments)}return _createClass(DropdownList,[{key:Md,value:function value(en,tn){updateChildNodes(tn,(en?_toConsumableArray(en.childNodes):[]).map((function(en){return en.cloneNode(!0)})))}},{key:gp,value:function value(en){if(_get(_getPrototypeOf(DropdownList.prototype),gp,this).call(this,en),renderParts$7(this[wp],this[Cp],en),en.items||en.selectedIndex){var tn=this[Cp],nn=tn.items,rn=tn.selectedIndex,an=nn?nn[rn]:null;this[Md](an,this[ap].value),nn&&nn.forEach((function(en){"selected"in en&&(en.selected=en===an)}))}if(en.opened){var sn=this[Cp].opened;this[ap].source.setAttribute("aria-expanded",sn.toString())}if(en.sourcePartType){var cn=this[ap].source;cn.inner&&cn.inner.setAttribute("role","none")}}},{key:mp,value:function value(en){_get(_getPrototypeOf(DropdownList.prototype),mp,this).call(this,en),en.listPartType&&this[_p]({popupList:this[ap].list})}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(DropdownList.prototype),kp,this).call(this,en,tn);if(tn.opened&&en.opened&&Object.assign(nn,{currentIndex:en.selectedIndex}),tn.opened){var rn=en.closeResult,an=en.currentIndex,sn=en.opened,cn=tn.opened&&!sn,un=rn&&rn.canceled;cn&&!un&&an>=0&&Object.assign(nn,{selectedIndex:an})}if(tn.items||tn.selectedIndex){var dn=en.items,pn=en.opened,hn=en.selectedIndex;!pn&&hn<0&&dn&&dn.length>0&&Object.assign(nn,{selectedIndex:0})}return nn}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(DropdownList.prototype),Qd,this),{ariaHasPopup:"listbox",listPartType:qg,selectedIndex:-1,selectedItem:null,valuePartType:"div"})}},{key:"items",get:function get(){var en=this[ap]&&this[ap].list;return en?en.items:null}},{key:"listPartType",get:function get(){return this[Cp].listPartType},set:function set(en){this[_p]({listPartType:en})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(DropdownList.prototype),Rp,this),tn=en.content.querySelector('slot[name="source"]');tn&&replace$2(tn,Wp(_templateObject$u()));var nn=en.content.querySelector("slot:not([name])");nn&&nn.replaceWith(Wp(_templateObject2$8()));var rn=en.content.querySelector('[part~="source"]');return rn&&(rn.setAttribute("aria-activedescendant","value"),rn.setAttribute("aria-autocomplete","none"),rn.setAttribute("aria-controls","list"),rn.setAttribute("role","combobox")),renderParts$7(en.content,this[Cp]),en.content.append(Wp(_templateObject3$1())),en}},{key:"valuePartType",get:function get(){return this[Cp].valuePartType},set:function set(en){this[_p]({valuePartType:en})}}]),DropdownList}(CursorAPIMixin(DelegateInputLabelMixin(FormElementMixin(ItemsAPIMixin(ItemsCursorMixin(PopupListMixin(SelectedTextAPIMixin(SelectedValueAPIMixin(SingleSelectAPIMixin(SlotItemsMixin($g)))))))))));function renderParts$7(en,tn,nn){if(!nn||nn.listPartType){var rn=tn.listPartType,an=en.getElementById("list");an&&transmute(an,rn)}if(!nn||nn.valuePartType){var sn=tn.valuePartType,cn=en.getElementById("value");cn&&transmute(cn,sn)}}function _templateObject$v(){var en=_taggedTemplateLiteral(['\n <style>\n :host {\n box-sizing: border-box;\n cursor: default;\n display: flex;\n overflow: hidden; /* Container element is responsible for scrolling */\n -webkit-tap-highlight-color: transparent;\n }\n\n #container {\n display: "block";\n flex: 1;\n -webkit-overflow-scrolling: touch; /* for momentum scrolling */\n overflow-x: "hidden";\n overflow-y: "auto";\n }\n </style>\n <div id="container" role="none">\n <slot id="slot"></slot>\n </div>\n ']);return _templateObject$v=function _templateObject(){return en},en}function _templateObject$w(){var en=_taggedTemplateLiteral(["\n <style>\n ::slotted(*),\n #slot > * {\n padding: 0.25em;\n }\n\n ::slotted([current]),\n #slot > [current] {\n background: highlight;\n color: highlighttext;\n }\n\n @media (pointer: coarse) {\n ::slotted(*),\n #slot > * {\n padding: 1em;\n }\n }\n </style>\n "]);return _templateObject$w=function _templateObject(){return en},en}var cf=function(en){_inherits(PlainOptionList,en);var tn=_createSuper(PlainOptionList);function PlainOptionList(){return _classCallCheck(this,PlainOptionList),tn.apply(this,arguments)}return _createClass(PlainOptionList,[{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainOptionList.prototype),Rp,this);return en.content.append(Wp(_templateObject$w())),en}}]),PlainOptionList}(function(en){_inherits(OptionList,en);var tn,nn=_createSuper(OptionList);function OptionList(){return _classCallCheck(this,OptionList),nn.apply(this,arguments)}return _createClass(OptionList,[{key:"flashCurrentItem",value:(tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var en,tn,nn;return regeneratorRuntime.wrap((function _callee$(rn){for(;;)switch(rn.prev=rn.next){case 0:if(en=this[Cp].focusVisible,tn=matchMedia("(pointer: fine)").matches,!en&&!tn){rn.next=10;break}return nn=75,this[_p]({highlightCurrentItem:!1}),rn.next=7,new Promise((function(en){return setTimeout(en,nn)}));case 7:return this[_p]({highlightCurrentItem:!0}),rn.next=10,new Promise((function(en){return setTimeout(en,nn)}));case 10:case"end":return rn.stop()}}),_callee,this)}))),function flashCurrentItem(){return tn.apply(this,arguments)})},{key:gp,value:function value(en){if(_get(_getPrototypeOf(OptionList.prototype),gp,this).call(this,en),en.items||en.currentIndex||en.highlightCurrentItem){var tn=this[Cp],nn=tn.currentIndex,rn=tn.items,an=tn.highlightCurrentItem;rn&&rn.forEach((function(en,tn){var rn=tn===nn;en.toggleAttribute("current",an&&rn),en.setAttribute("aria-selected",String(rn))}))}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(OptionList.prototype),Qd,this),{highlightCurrentItem:!0,orientation:"vertical",role:"listbox"})}},{key:yp,get:function get(){return this[ap].container}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(OptionList.prototype),Rp,this);return en.content.append(Wp(_templateObject$v())),en}}]),OptionList}(AriaRoleMixin(ComposedFocusMixin(CursorAPIMixin(CursorInViewMixin(DirectionCursorMixin(FocusVisibleMixin(FormElementMixin(ItemsAPIMixin(ItemsCursorMixin(ItemsTextMixin(KeyboardDirectionMixin(KeyboardMixin(KeyboardPagedCursorMixin(KeyboardPrefixCursorMixin(LanguageDirectionMixin(SingleSelectAPIMixin(SelectedTextAPIMixin(SelectedValueAPIMixin(SlotItemsMixin(TapCursorMixin(bh)))))))))))))))))))))),uf=function(en){_inherits(ElixDropdownList,en);var tn=_createSuper(ElixDropdownList);function ElixDropdownList(){return _classCallCheck(this,ElixDropdownList),tn.apply(this,arguments)}return ElixDropdownList}(function(en){_inherits(PlainDropdownList,en);var tn=_createSuper(PlainDropdownList);function PlainDropdownList(){return _classCallCheck(this,PlainDropdownList),tn.apply(this,arguments)}return _createClass(PlainDropdownList,[{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainDropdownList.prototype),Qd,this),{listPartType:cf,popupPartType:Ag,sourcePartType:Yg,popupTogglePartType:hg})}}]),PlainDropdownList}(PopupToggleMixin(lf)));customElements.define("elix-dropdown-list",uf);var df=document.createElement("template");df.innerHTML="\n<style>\nelix-dropdown-list {\n margin: 1px;\n}\n\nelix-dropdown-list:hover {\n background-color: var(--icon-bg-color-hover);\n}\n\n::part(popup-toggle) {\n display: none;\n}\n::slotted(*) {\n padding:0;\n width:100%;\n}\n</style>\n <label>Label</label>\n <elix-dropdown-list>\n <slot></slot>\n </elix-dropdown-list>\n\n";var pf=function(en){_inherits(SeList,en);var tn=_createSuper(SeList);function SeList(){var en;return _classCallCheck(this,SeList),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(df.content.cloneNode(!0)),en.$dropdown=en._shadowRoot.querySelector("elix-dropdown-list"),en.$label=en._shadowRoot.querySelector("label"),en}return _createClass(SeList,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"label":this.$label.textContent=nn;break;case"height":this.$dropdown.style.height=nn;break;case"width":this.$dropdown.style.width=nn;break;default:console.error("unknown attribute: ".concat(en))}}},{key:"connectedCallback",value:function connectedCallback(){var en=this,tn=this;this.$dropdown.addEventListener("selectedindexchange",(function(nn){var rn;if(nn.preventDefault(),void 0!==(null==nn||null===(rn=nn.detail)||void 0===rn?void 0:rn.selectedIndex)){var an=en.$dropdown.selectedItem.getAttribute("value"),sn=new CustomEvent("change",{detail:{value:an}});tn.dispatchEvent(sn)}}))}},{key:"label",get:function get(){return this.getAttribute("label")},set:function set(en){this.setAttribute("label",en)}},{key:"width",get:function get(){return this.getAttribute("width")},set:function set(en){this.setAttribute("width",en)}},{key:"height",get:function get(){return this.getAttribute("height")},set:function set(en){this.setAttribute("height",en)}}],[{key:"observedAttributes",get:function get(){return["label","width","height"]}}]),SeList}(_wrapNativeSuper(HTMLElement));function _templateObject$x(){var en=_taggedTemplateLiteral(["\n <style>\n :host {\n display: block;\n }\n </style>\n <slot></slot>\n "]);return _templateObject$x=function _templateObject(){return en},en}function _templateObject2$9(){var en=_taggedTemplateLiteral(["\n <style>\n :host {\n white-space: nowrap;\n }\n\n #checkmark {\n height: 1em;\n visibility: hidden;\n width: 1em;\n }\n\n :host([selected]) #checkmark {\n visibility: visible;\n }\n </style>\n\n "]);return _templateObject2$9=function _templateObject2(){return en},en}function _templateObject$y(){var en=_taggedTemplateLiteral(['\n <svg id="checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="4 6 18 12">\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/>\n </svg>\n <slot></slot>\n ']);return _templateObject$y=function _templateObject(){return en},en}customElements.define("se-list",pf);var hf=function(en){_inherits(ElixOption,en);var tn=_createSuper(ElixOption);function ElixOption(){return _classCallCheck(this,ElixOption),tn.apply(this,arguments)}return ElixOption}(function(en){_inherits(PlainChoice,en);var tn=_createSuper(PlainChoice);function PlainChoice(){return _classCallCheck(this,PlainChoice),tn.apply(this,arguments)}return _createClass(PlainChoice,[{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainChoice.prototype),Rp,this),tn=en.content.querySelector("slot:not([name])");return tn&&tn.replaceWith(Wp(_templateObject$y())),en.content.append(Wp(_templateObject2$9())),en}}]),PlainChoice}(function(en){_inherits(Option,en);var tn=_createSuper(Option);function Option(){return _classCallCheck(this,Option),tn.apply(this,arguments)}return _createClass(Option,[{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Option.prototype),Qd,this),{role:"option"})}},{key:Rp,get:function get(){return Xp.html(_templateObject$x())}}]),Option}(AriaRoleMixin(CurrentMixin(DisabledMixin(SelectableMixin(bh)))))));customElements.define("elix-option",hf);var gf=document.createElement("template");gf.innerHTML='\n <style>\n elix-option{\n padding:0.25rem 0.125rem !important;\n background-color: var(--icon-bg-color);\n }\n elix-option:hover{\n background-color: var(--icon-bg-color-hover);\n }\n </style>\n <elix-option aria-label="option">\n <slot></slot>\n </elix-option>\n';var ff=function(en){_inherits(SeListItem,en);var tn=_createSuper(SeListItem);function SeListItem(){var en;return _classCallCheck(this,SeListItem),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(gf.content.cloneNode(!0)),en.$menuitem=en._shadowRoot.querySelector("elix-option"),en.$svg=en.$menuitem.shadowRoot.querySelector("#checkmark"),en.$svg.setAttribute("style","display: none;"),en}return _createClass(SeListItem,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"option":this.$menuitem.setAttribute("option",nn);break;default:console.error("unknown attribute: ".concat(en))}}},{key:"option",get:function get(){return this.getAttribute("option")},set:function set(en){this.setAttribute("option",en)}}],[{key:"observedAttributes",get:function get(){return["option"]}}]),SeListItem}(_wrapNativeSuper(HTMLElement));customElements.define("se-list-item",ff);var createMethod$5=function(en){return function(tn,nn,rn,an){aFunction$1(nn);var sn=toObject(tn),cn=pn(sn),un=toLength(sn.length),dn=en?un-1:0,hn=en?-1:1;if(rn<2)for(;;){if(dn in cn){an=cn[dn],dn+=hn;break}if(dn+=hn,en?dn<0:un<=dn)throw TypeError("Reduce of empty array with no initial value")}for(;en?dn>=0:un>dn;dn+=hn)dn in cn&&(an=nn(an,cn[dn],dn,sn));return an}},Af={left:createMethod$5(!1),right:createMethod$5(!0)},mf=Af.left,vf=arrayMethodIsStrict("reduce"),yf=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!vf||!yf||!Gs&&ui>79&&ui<83},{reduce:function reduce(en){return mf(this,en,arguments.length,arguments.length>1?arguments[1]:void 0)}}),_export({target:"Number",stat:!0,forced:Number.parseFloat!=Io},{parseFloat:Io}),_export({target:"Number",stat:!0,forced:Number.parseInt!=Mo},{parseInt:Mo});var notARegexp=function(en){if(isRegexp(en))throw TypeError("The method doesn't accept regular expressions");return en},_f=wellKnownSymbol("match"),correctIsRegexpLogic=function(en){var tn=/./;try{"/./"[en](tn)}catch(nn){try{return tn[_f]=!1,"/./"[en](tn)}catch(en){}}return!1};_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function includes(en){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(en),arguments.length>1?arguments[1]:void 0)}});
|
||
/**
|
||
* @file jGraduate 0.4
|
||
*
|
||
* jQuery Plugin for a gradient picker
|
||
*
|
||
* @module jGraduate
|
||
* @copyright 2010 Jeff Schiller {@link http://blog.codedread.com/}, 2010 Alexis Deveria {@link http://a.deveria.com/}
|
||
*
|
||
* @license Apache-2.0
|
||
* @example
|
||
* // The Paint object is described below.
|
||
* $.jGraduate.Paint(); // constructs a 'none' color
|
||
* @example $.jGraduate.Paint({copy: o}); // creates a copy of the paint o
|
||
* @example $.jGraduate.Paint({hex: '#rrggbb'}); // creates a solid color paint with hex = "#rrggbb"
|
||
* @example $.jGraduate.Paint({linearGradient: o, a: 50}); // creates a linear gradient paint with opacity=0.5
|
||
* @example $.jGraduate.Paint({radialGradient: o, a: 7}); // creates a radial gradient paint with opacity=0.07
|
||
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
|
||
*/
|
||
var bf="http://www.w3.org/2000/svg",wf="http://www.w3.org/1999/xlink";
|
||
/**
|
||
* @file jPicker (Adapted from version 1.1.6)
|
||
*
|
||
* jQuery Plugin for Photoshop style color picker
|
||
*
|
||
* @module jPicker
|
||
* @copyright (c) 2010 Christopher T. Tillman
|
||
* Digital Magic Productions, Inc. ({@link http://www.digitalmagicpro.com/})
|
||
* FREE to use, alter, copy, sell, and especially ENHANCE
|
||
* @license MIT
|
||
*
|
||
* Painstakingly ported from John Dyers' excellent work on his own color picker based on the Prototype framework.
|
||
*
|
||
* John Dyers' website: {@link http://johndyer.name}
|
||
* Color Picker page: {@link http://johndyer.name/photoshop-like-javascript-color-picker/}
|
||
*/
|
||
function toFixedNumeric(en,tn){return void 0===tn&&(tn=0),Math.round(en*Math.pow(10,tn))/Math.pow(10,tn)}window.console||(window.console={log:function log(en){},dir:function dir(en){}});var xf=function isNullish(en){return null==en};_export({target:"Number",stat:!0},{isNaN:function isNaN(en){return en!=en}});var Sf,Cf=yn.f,kf="".startsWith,Bf=Math.min,Ef=correctIsRegexpLogic("startsWith"),Pf=!(Ef||(Sf=Cf(String.prototype,"startsWith"),!Sf||Sf.writable));_export({target:"String",proto:!0,forced:!Pf&&!Ef},{startsWith:function startsWith(en){var tn=String(requireObjectCoercible(this));notARegexp(en);var nn=toLength(Bf(arguments.length>1?arguments[1]:void 0,tn.length)),rn=String(en);return kf?kf.call(tn,rn,nn):tn.slice(nn,nn+rn.length)===rn}});var Lf=function(){function PaintBox(en,tn){_classCallCheck(this,PaintBox);var nn=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14">\n <rect\n fill="#000000" opacity="1" width="14" height="14"/>\n <defs><linearGradient id="gradbox_'.concat(PaintBox.ctr++,'"/></defs>\n </svg>'),"text/xml").documentElement;nn=document.importNode(nn,!0),en.append(nn),this.rect=nn.firstElementChild,this.defs=nn.getElementsByTagName("defs")[0],this.grad=this.defs.firstElementChild,this.type=tn}return _createClass(PaintBox,[{key:"setPaint",value:function setPaint(en){this.paint=en;var tn=en.type,nn=en.alpha/100,rn="none";switch(tn){case"solidColor":rn="none"!==en[tn]?"#"+en[tn]:en[tn];break;case"linearGradient":case"radialGradient":this.grad.remove(),this.grad=en[tn],this.defs.append(this.grad),rn="url(#"+(this.grad.id="gradbox_"+this.type)+")"}this.rect.setAttribute("fill",rn),this.rect.setAttribute("opacity",nn)}},{key:"update",value:function update(en,tn){if(!tn)return null;var nn=this.type;switch(tn.tagName){case"use":case"image":case"foreignObject":return null;case"g":case"a":for(var rn=tn.getElementsByTagName("*"),an=null,sn=0,cn=rn.length;sn<cn;sn++){var un=rn[sn].getAttribute(nn);if(0===sn)an=un;else if(an!==un){an=null;break}}if(null===an)return this._paintColor=null,null;this._paintColor=an,this._paintOpacity=1;break;default:this._paintOpacity=Number.parseFloat(tn.getAttribute(nn+"-opacity")),Number.isNaN(this._paintOpacity)&&(this._paintOpacity=1);var dn="fill"===nn?"black":"none";this._paintColor=tn.getAttribute(nn)||dn}this._paintOpacity*=100;var pn=PaintBox.getPaint(en,this._paintColor,this._paintOpacity,nn);return this.setPaint(pn),pn}}],[{key:"getPaint",value:function getPaint(en,tn,nn,rn){var an={alpha:nn};if(tn.startsWith("url(#")){var sn=en.getRefElem(tn);an[(sn=sn?sn.cloneNode(!0):$("#"+rn+"_color defs *")[0]).tagName]=sn}else tn.startsWith("#")?an.solidColor=tn.substr(1):an.solidColor="none";return new $.jGraduate.Paint(an)}}]),PaintBox}();Lf.ctr=0;var Tf=[function jQueryPluginJGraduate(en){en.jGraduate={Paint:function Paint(en){_classCallCheck(this,Paint);var tn=en||{};if(this.alpha=isNaN(tn.alpha)?100:tn.alpha,tn.copy)switch(this.type=tn.copy.type,this.alpha=tn.copy.alpha,this.solidColor=null,this.linearGradient=null,this.radialGradient=null,this.type){case"none":break;case"solidColor":this.solidColor=tn.copy.solidColor;break;case"linearGradient":this.linearGradient=tn.copy.linearGradient.cloneNode(!0);break;case"radialGradient":this.radialGradient=tn.copy.radialGradient.cloneNode(!0)}else tn.linearGradient?(this.type="linearGradient",this.solidColor=null,this.radialGradient=null,this.linearGradient=tn.linearGradient.cloneNode(!0)):tn.radialGradient?(this.type="radialGradient",this.solidColor=null,this.linearGradient=null,this.radialGradient=tn.radialGradient.cloneNode(!0)):tn.solidColor?(this.type="solidColor",this.solidColor=tn.solidColor):(this.type="none",this.solidColor=null,this.linearGradient=null,this.radialGradient=null)}},en.fn.jGraduateDefaults={paint:new en.jGraduate.Paint,window:{pickerTitle:"Drag markers to pick a paint"},images:{clientPath:"images/"},newstop:"inverse"};var tn=navigator.userAgent.includes("Gecko/");function mkElem(en,nn,rn){var an=document.createElementNS(bf,en);return function setAttrs(en,nn){tn?Object.entries(nn).forEach((function(tn){var nn=_slicedToArray(tn,2),rn=nn[0],an=nn[1];en.setAttribute(rn,an)})):Object.entries(nn).forEach((function(tn){var nn=_slicedToArray(tn,2),rn=nn[0],an=nn[1],sn=en[rn];sn&&"SVGLength"===sn.constructor?sn.baseVal.value=an:en.setAttribute(rn,an)}))}(an,nn),rn&&rn.append(an),an}return en.fn.jGraduate=function(tn,nn,rn){return this.each((function(){var an=en(this),sn=en.extend(!0,{},en.fn.jGraduateDefaults,tn||{}),cn=an.attr("id"),un="#"+an.attr("id")+" ",dn=this.parentNode,pn=function $wc(tn){return en(dn.querySelectorAll(tn))};if(un){var hn=function okClicked(){switch(an.paint.type){case"radialGradient":an.paint.linearGradient=null;break;case"linearGradient":an.paint.radialGradient=null;break;case"solidColor":an.paint.radialGradient=an.paint.linearGradient=null}"function"==typeof an.okCallback&&an.okCallback(an.paint),an.hide()},gn=function cancelClicked(){"function"==typeof an.cancelCallback&&an.cancelCallback(),an.hide()};en.extend(!0,an,{paint:new en.jGraduate.Paint({copy:sn.paint}),okCallback:"function"==typeof nn?nn:null,cancelCallback:"function"==typeof rn?rn:null});var An=null,mn=en(window);"none"===an.paint.type&&(an.paint=new en.jGraduate.Paint({solidColor:"ffffff"})),an.addClass("jGraduate_Picker"),an.html('<ul class="jGraduate_tabs"><li class="jGraduate_tab_color jGraduate_tab_current" data-type="col">Solid Color</li><li class="jGraduate_tab_lingrad" data-type="lg">Linear Gradient</li><li class="jGraduate_tab_radgrad" data-type="rg">Radial Gradient</li></ul><div class="jGraduate_colPick"></div><div class="jGraduate_gradPick"></div><div class="jGraduate_LightBox"></div><div id="'+cn+'_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>');var vn=pn(un+"> .jGraduate_colPick"),yn=pn(un+"> .jGraduate_gradPick");yn.html('<div id="'+cn+'_jGraduate_Swatch" class="jGraduate_Swatch"><h2 class="jGraduate_Title">'+sn.window.pickerTitle+'</h2><div id="'+cn+'_jGraduate_GradContainer" class="jGraduate_GradContainer"></div><div id="'+cn+'_jGraduate_StopSlider" class="jGraduate_StopSlider"></div></div><div class="jGraduate_Form jGraduate_Points jGraduate_lg_field"><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Begin Point</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="'+cn+'_jGraduate_x1" size="3" title="Enter starting x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+cn+'_jGraduate_y1" size="3" title="Enter starting y value between 0.0 and 1.0"/></div></div><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">End Point</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="'+cn+'_jGraduate_x2" size="3" title="Enter ending x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+cn+'_jGraduate_y2" size="3" title="Enter ending y value between 0.0 and 1.0"/></div></div></div><div class="jGraduate_Form jGraduate_Points jGraduate_rg_field"><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Center Point</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="'+cn+'_jGraduate_cx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+cn+'_jGraduate_cy" size="3" title="Enter y value between 0.0 and 1.0"/></div></div><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Focal Point</label><div class="jGraduate_Form_Section"><label>Match center: <input type="checkbox" checked="checked" id="'+cn+'_jGraduate_match_ctr"/></label><br/><label>x:</label><input type="text" id="'+cn+'_jGraduate_fx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+cn+'_jGraduate_fy" size="3" title="Enter y value between 0.0 and 1.0"/></div></div></div><div class="jGraduate_StopSection jGraduate_SpreadMethod"><label class="jGraduate_Form_Heading">Spread method</label><div class="jGraduate_Form_Section"><select class="jGraduate_spreadMethod"><option value=pad selected>Pad</option><option value=reflect>Reflect</option><option value=repeat>Repeat</option></select></div></div><div class="jGraduate_Form"><div class="jGraduate_Slider jGraduate_RadiusField jGraduate_rg_field"><label class="prelabel">Radius:</label><div id="'+cn+'_jGraduate_Radius" class="jGraduate_SliderBar jGraduate_Radius" title="Click to set radius"><img id="'+cn+'_jGraduate_RadiusArrows" class="jGraduate_RadiusArrows" src="'+sn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+cn+'_jGraduate_RadiusInput" size="3" value="100"/>%</label></div><div class="jGraduate_Slider jGraduate_EllipField jGraduate_rg_field"><label class="prelabel">Ellip:</label><div id="'+cn+'_jGraduate_Ellip" class="jGraduate_SliderBar jGraduate_Ellip" title="Click to set Ellip"><img id="'+cn+'_jGraduate_EllipArrows" class="jGraduate_EllipArrows" src="'+sn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+cn+'_jGraduate_EllipInput" size="3" value="0"/>%</label></div><div class="jGraduate_Slider jGraduate_AngleField jGraduate_rg_field"><label class="prelabel">Angle:</label><div id="'+cn+'_jGraduate_Angle" class="jGraduate_SliderBar jGraduate_Angle" title="Click to set Angle"><img id="'+cn+'_jGraduate_AngleArrows" class="jGraduate_AngleArrows" src="'+sn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+cn+'_jGraduate_AngleInput" size="3" value="0"/>deg</label></div><div class="jGraduate_Slider jGraduate_OpacField"><label class="prelabel">Opac:</label><div id="'+cn+'_jGraduate_Opac" class="jGraduate_SliderBar jGraduate_Opac" title="Click to set Opac"><img id="'+cn+'_jGraduate_OpacArrows" class="jGraduate_OpacArrows" src="'+sn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+cn+'_jGraduate_OpacInput" size="3" value="100"/>%</label></div></div><div class="jGraduate_OkCancel"><input type="button" id="'+cn+'_jGraduate_Ok" class="jGraduate_Ok" value="OK"/><input type="button" id="'+cn+'_jGraduate_Cancel" class="jGraduate_Cancel" value="Cancel"/></div>');var _n=256,wn={},xn=145;pn(".jGraduate_SliderBar").width(xn);var Sn,Cn=pn("#"+cn+"_jGraduate_GradContainer")[0],kn=mkElem("svg",{id:cn+"_jgraduate_svg",width:_n,height:_n,xmlns:bf},Cn),Bn=an.paint.type,En=an.paint[Bn],Pn=En,Ln=an.paint.alpha,Tn="solidColor"===Bn;switch(Bn){case"solidColor":case"linearGradient":if(Tn||(Pn.id=cn+"_lg_jgraduate_grad",En=Pn=kn.appendChild(Pn)),mkElem("radialGradient",{id:cn+"_rg_jgraduate_grad"},kn),"linearGradient"===Bn)break;case"radialGradient":Tn||(Pn.id=cn+"_rg_jgraduate_grad",En=Pn=kn.appendChild(Pn)),mkElem("linearGradient",{id:cn+"_lg_jgraduate_grad"},kn)}if(Tn){En=Pn=pn("#"+cn+"_lg_jgraduate_grad")[0],mkStop(0,"#"+(An=an.paint[Bn]),1);var Nn=_typeof(sn.newstop);if("string"===Nn)switch(sn.newstop){case"same":mkStop(1,"#"+An,1);break;case"inverse":for(var In="",On=0;On<6;On+=2){var Fn=(255-Number.parseInt(An.substr(On,2),16)).toString(16);Fn.length<2&&(Fn=0+Fn),In+=Fn}mkStop(1,"#"+In,1);break;case"white":mkStop(1,"#ffffff",1);break;case"black":mkStop(1,"#000000",1)}else if("object"===Nn){var Un="opac"in sn.newstop?sn.newstop.opac:1;mkStop(1,sn.newstop.color||"#"+An,Un)}}var Mn,Rn=Number.parseFloat(En.getAttribute("x1")||0),Dn=Number.parseFloat(En.getAttribute("y1")||0),jn=Number.parseFloat(En.getAttribute("x2")||1),Qn=Number.parseFloat(En.getAttribute("y2")||0),Hn=Number.parseFloat(En.getAttribute("cx")||.5),Gn=Number.parseFloat(En.getAttribute("cy")||.5),Vn=Number.parseFloat(En.getAttribute("fx")||Hn),zn=Number.parseFloat(En.getAttribute("fy")||Gn),Kn=mkElem("rect",{id:cn+"_jgraduate_rect",x:0,y:0,width:256,height:256,fill:"url(#"+cn+"_jgraduate_grad)","fill-opacity":Ln/100},kn),qn=en("<div/>").attr({class:"grad_coord jGraduate_lg_field",title:"Begin Stop"}).text(1).css({top:Dn*_n,left:Rn*_n}).data("coord","start").appendTo(Cn),$n=qn.clone().text(2).css({top:Qn*_n,left:jn*_n}).attr("title","End stop").data("coord","end").appendTo(Cn),Wn=en("<div/>").attr({class:"grad_coord jGraduate_rg_field",title:"Center stop"}).text("C").css({top:Gn*_n,left:Hn*_n}).data("coord","center").appendTo(Cn),Xn=Wn.clone().text("F").css({top:zn*_n,left:Vn*_n,display:"none"}).attr("title","Focus point").data("coord","focus").appendTo(Cn);Xn[0].id=cn+"_jGraduate_focusCoord",en.each(["x1","y1","x2","y2","cx","cy","fx","fy"],(function(en,tn){var nn=isNaN(tn[1]),rn=Pn.getAttribute(tn);rn||(rn=nn?"0.5":"x2"===tn?"1.0":"0.0"),wn[tn]=pn("#"+cn+"_jGraduate_"+tn).val(rn).change((function(){isNaN(Number.parseFloat(this.value))||this.value<0?this.value=0:this.value>1&&(this.value=1),("f"!==tn[0]||Mn)&&(nn&&"radialGradient"===Bn||!nn&&"linearGradient"===Bn)&&Pn.setAttribute(tn,this.value);var en=nn?"c"===tn[0]?Wn:Xn:"1"===tn[1]?qn:$n,rn=tn.includes("x")?"left":"top";en.css(rn,this.value*_n)})).change()}));var Yn,Jn,Zn,Tr,Ur=pn("#"+cn+"_jGraduate_StopSlider"),Rr=mkElem("path",{d:"m9.75,-6l-19.5,19.5m0,-19.5l19.5,19.5",fill:"none",stroke:"#D00","stroke-width":5,display:"none"},void 0),Dr=1,Qr=1,Hr=0,Gr=Hn,Vr=Gn,zr=mkElem("svg",{width:"100%",height:45},Ur[0]),Kr=mkElem("pattern",{width:16,height:16,patternUnits:"userSpaceOnUse",id:"jGraduate_trans"},zr),$r=mkElem("image",{width:16,height:16},Kr),Wr=sn.images.clientPath+"map-opacity.png";$r.setAttributeNS(wf,"xlink:href",Wr),en(zr).click((function(en){if(Tr=Ur.offset(),"path"!==en.target.tagName){var tn=en.pageX-Tr.left-8;mkStop((tn=tn<10?10:tn>266?266:tn)/_n,0,0,!0),en.stopPropagation()}})),en(zr).mouseover((function(){zr.append(Rr)})),Sn=mkElem("g",{},zr),mkElem("line",{x1:10,y1:15,x2:266,y2:15,"stroke-width":2,stroke:"#000"},zr);var Xr,Yr,Jr,Zr,ei=yn.find(".jGraduate_spreadMethod").change((function(){Pn.setAttribute("spreadMethod",en(this).val())})),ti=null,ni=function onCoordDrag(en){var tn=en.pageX-Xr.left,nn=en.pageY-Xr.top;tn=tn<0?0:tn>_n?_n:tn,nn=nn<0?0:nn>_n?_n:nn,ti.css("left",tn).css("top",nn);var rn=tn/256,an=nn/256,sn=ti.data("coord"),cn=Pn;switch(sn){case"start":wn.x1.val(rn),wn.y1.val(an),cn.setAttribute("x1",rn),cn.setAttribute("y1",an);break;case"end":wn.x2.val(rn),wn.y2.val(an),cn.setAttribute("x2",rn),cn.setAttribute("y2",an);break;case"center":wn.cx.val(rn),wn.cy.val(an),cn.setAttribute("cx",rn),cn.setAttribute("cy",an),Gr=rn,Vr=an,xform();break;case"focus":wn.fx.val(rn),wn.fy.val(an),cn.setAttribute("fx",rn),cn.setAttribute("fy",an),xform()}en.preventDefault()},ri=function onCoordUp(){ti=null,mn.unbind("mousemove",ni).unbind("mouseup",onCoordUp)},ii=(Yn=Pn.getElementsByTagNameNS(bf,"stop")).length;if(ii<2){for(;ii<2;)Pn.append(document.createElementNS(bf,"stop")),++ii;Yn=Pn.getElementsByTagNameNS(bf,"stop")}for(var oi=0;oi<ii;oi++)mkStop(0,0,0,0,Yn[oi]);if(ei.val(Pn.getAttribute("spreadMethod")||"pad"),Mn=!1,Kn.setAttribute("fill-opacity",Ln/100),pn("#"+cn+" div.grad_coord").mousedown((function(tn){tn.preventDefault(),ti=en(this),Xr=ti.parent().offset(),mn.mousemove(ni).mouseup(ri)})),pn("#"+cn+"_jGraduate_Ok").bind("click",(function(){an.paint.type=Bn,an.paint[Bn]=Pn.cloneNode(!0),an.paint.solidColor=null,hn()})),pn("#"+cn+"_jGraduate_Cancel").bind("click",(function(en){gn()})),"radialGradient"===Bn&&(Mn?Xn.show():(Xn.hide(),wn.fx.val(""),wn.fy.val(""))),pn("#"+cn+"_jGraduate_match_ctr")[0].checked=!Mn,pn("#"+cn+"_jGraduate_match_ctr").change((function(){Mn=!this.checked,Xn.toggle(Mn),wn.fx.val(""),wn.fy.val("");var en=Pn;if(Mn){var tn=Yr||.5,nn=Jr||.5;en.setAttribute("fx",tn),en.setAttribute("fy",nn),wn.fx.val(tn),wn.fy.val(nn)}else Yr=en.getAttribute("fx"),Jr=en.getAttribute("fy"),en.removeAttribute("fx"),en.removeAttribute("fy")})),(ii=(Yn=Pn.getElementsByTagNameNS(bf,"stop")).length)<2){for(;ii<2;)Pn.append(document.createElementNS(bf,"stop")),++ii;Yn=Pn.getElementsByTagNameNS(bf,"stop")}var ai=0,si=0;if("radialGradient"===Bn){var li=Pn.gradientTransform.baseVal;if(2===li.numberOfItems){var ui=li.getItem(0),di=li.getItem(1);if(2===ui.type&&3===di.type){var pi=di.matrix;1!==pi.a?ai=Math.round(100*-(1-pi.a)):1!==pi.d&&(ai=Math.round(100*(1-pi.d)))}}else if(3===li.numberOfItems){var hi=li.getItem(0),gi=li.getItem(1),fi=li.getItem(2);if(4===hi.type&&2===gi.type&&3===fi.type){si=Math.round(hi.angle);var Ai=fi.matrix;1!==Ai.a?ai=Math.round(100*-(1-Ai.a)):1!==Ai.d&&(ai=Math.round(100*(1-Ai.d)))}}}var mi={radius:{handle:"#"+cn+"_jGraduate_RadiusArrows",input:"#"+cn+"_jGraduate_RadiusInput",val:100*(Pn.getAttribute("r")||.5)},opacity:{handle:"#"+cn+"_jGraduate_OpacArrows",input:"#"+cn+"_jGraduate_OpacInput",val:an.paint.alpha||100},ellip:{handle:"#"+cn+"_jGraduate_EllipArrows",input:"#"+cn+"_jGraduate_EllipInput",val:ai},angle:{handle:"#"+cn+"_jGraduate_AngleArrows",input:"#"+cn+"_jGraduate_AngleInput",val:si}};en.each(mi,(function(tn,nn){var rn=en(nn.handle);rn.mousedown((function(an){var sn=rn.parent();Zr={type:tn,elem:rn,input:en(nn.input),parent:sn,offset:sn.offset()},mn.mousemove(vi).mouseup(yi),an.preventDefault()})),en(nn.input).val(nn.val).change((function(){var en="radialGradient"===Bn,nn=Number(this.value),sn=0;switch(tn){case"radius":en&&Pn.setAttribute("r",nn/100),sn=Math.pow(nn/100,.4)/2*xn;break;case"opacity":an.paint.alpha=nn,Kn.setAttribute("fill-opacity",nn/100),sn=1.45*nn;break;case"ellip":if(Dr=Qr=1,0===nn){sn=72.5;break}nn>99.5&&(nn=99.5),nn>0?Qr=1-nn/100:Dr=-nn/100-1,sn=xn*((nn+100)/2)/100,en&&xform();break;case"angle":sn=(Hr=nn)/180,sn+=.5,sn*=xn,en&&xform()}sn>xn?sn=xn:sn<0&&(sn=0),rn.css({"margin-left":sn-5})})).change()}));for(var vi=function dragSlider(en){!function setSlider(en){var tn=Zr.offset.left,nn=Zr.parent,rn=en.pageX-tn-Number.parseInt(nn.css("border-left-width"));rn>xn&&(rn=xn),rn<=0&&(rn=0);var sn=rn-5;switch(rn/=xn,Zr.type){case"radius":(rn=Math.pow(2*rn,2.5))>.98&&rn<1.02&&(rn=1),rn<=.01&&(rn=.01),Pn.setAttribute("r",rn);break;case"opacity":an.paint.alpha=Number.parseInt(100*rn),Kn.setAttribute("fill-opacity",rn);break;case"ellip":Dr=1,Qr=1,rn<.5?Dr=(rn/=.5)<=0?.01:rn:rn>.5&&(Qr=(rn=2-(rn/=.5))<=0?.01:rn),xform(),Qr===1+(rn-=1)&&(rn=Math.abs(rn));break;case"angle":rn-=.5,Hr=rn*=180,xform(),rn/=100}Zr.elem.css({"margin-left":sn}),rn=Math.round(100*rn),Zr.input.val(rn)}(en),en.preventDefault()},yi=function stopSlider(en){mn.unbind("mousemove",vi).unbind("mouseup",stopSlider),Zr=null},_i=(255*an.paint.alpha/100).toString(16);_i.length<2;)_i="0"+_i;_i=_i.split(".")[0],An="none"===an.paint.solidColor?"":an.paint.solidColor+_i,Tn||(An=Yn[0].getAttribute("stop-color")),en.extend(en.fn.jPicker.defaults.window,{alphaSupport:!0,effects:{type:"show",speed:0}}),vn.jPicker({window:{title:sn.window.pickerTitle},images:{clientPath:sn.images.clientPath},color:{active:An,alphaSupport:!0}},(function(en){an.paint.type="solidColor",an.paint.alpha=en.val("ahex")?Math.round(en.val("a")/255*100):100,an.paint.solidColor=en.val("hex")?en.val("hex"):"none",an.paint.radialGradient=null,hn()}),null,(function(){gn()}));var wi,xi=pn(".jGraduate_tabs li");switch(xi.click((function(){xi.removeClass("jGraduate_tab_current"),en(this).addClass("jGraduate_tab_current"),pn(un+" > div").hide();var tn=en(this).attr("data-type");if(pn(un+" .jGraduate_gradPick").show(),"rg"===tn||"lg"===tn){pn(".jGraduate_"+tn+"_field").show(),pn(".jGraduate_"+("lg"===tn?"rg":"lg")+"_field").hide(),pn("#"+cn+"_jgraduate_rect")[0].setAttribute("fill","url(#"+cn+"_"+tn+"_jgraduate_grad)"),Bn="lg"===tn?"linearGradient":"radialGradient",pn("#"+cn+"_jGraduate_OpacInput").val(an.paint.alpha).change();var nn=pn("#"+cn+"_"+tn+"_jgraduate_grad")[0];if(Pn!==nn){var rn=en(Pn).find("stop");en(nn).empty().append(rn),Pn=nn;var sn=ei.val();Pn.setAttribute("spreadMethod",sn)}Mn="rg"===tn&&null!==Pn.getAttribute("fx")&&!(Hn===Vn&&Gn===zn),pn("#"+cn+"_jGraduate_focusCoord").toggle(Mn),Mn&&(pn("#"+cn+"_jGraduate_match_ctr")[0].checked=!1)}else pn(un+" .jGraduate_gradPick").hide(),pn(un+" .jGraduate_colPick").show()})),pn(un+" > div").hide(),xi.removeClass("jGraduate_tab_current"),an.paint.type){case"linearGradient":wi=pn(un+" .jGraduate_tab_lingrad");break;case"radialGradient":wi=pn(un+" .jGraduate_tab_radgrad");break;default:wi=pn(un+" .jGraduate_tab_color")}an.show(),setTimeout((function(){wi.addClass("jGraduate_tab_current").click()}),10)}else alert("Container element must have an id attribute to maintain unique id strings for sub-elements.");function mkStop(tn,nn,rn,an,un){var dn=un||mkElem("stop",{"stop-color":nn,"stop-opacity":rn,offset:tn},Pn);un?(nn=un.getAttribute("stop-color"),rn=un.getAttribute("stop-opacity"),tn=un.getAttribute("offset")):Pn.append(dn),null===rn&&(rn=1);var hn="M-6.2,0.9c3.6-4,6.7-4.3,6.7-12.4c-0.2,7.9,3.1,8.8,6.5,12.4c3.5,3.8,2.9,9.6,0,12.3c-3.1,2.8-10.4,2.7-13.2,0C-9.6,9.9-9.4,4.4-6.2,0.9z",gn=mkElem("path",{d:hn,fill:"url(#jGraduate_trans)",transform:"translate("+(10+tn*_n)+", 26)"},Sn),An=mkElem("path",{d:hn,fill:nn,"fill-opacity":rn,transform:"translate("+(10+tn*_n)+", 26)",stroke:"#000","stroke-width":1.5},Sn);return en(An).mousedown((function(en){return selectStop(this),Zn=Jn,mn.mousemove(dragColor).mouseup(remDrags),Tr=Ur.offset(),en.preventDefault(),!1})).data("stop",dn).data("bg",gn).dblclick((function(){pn("div.jGraduate_LightBox").show();for(var en=this,tn=Number(dn.getAttribute("stop-opacity"))||1,rn=dn.getAttribute("stop-color")||1,an=(255*Number.parseFloat(tn)).toString(16);an.length<2;)an="0"+an;nn=rn.substr(1)+an,pn("#"+cn+"_jGraduate_stopPicker").css({left:100,bottom:15}).jPicker({window:{title:"Pick the start color and opacity for the gradient"},images:{clientPath:sn.images.clientPath},color:{active:nn,alphaSupport:!0}},(function(nn,an){rn=nn.val("hex")?"#"+nn.val("hex"):"none",tn=null!==nn.val("a")?nn.val("a")/256:1,en.setAttribute("fill",rn),en.setAttribute("fill-opacity",tn),dn.setAttribute("stop-color",rn),dn.setAttribute("stop-opacity",tn),pn("div.jGraduate_LightBox").hide(),pn("#"+cn+"_jGraduate_stopPicker").hide()}),null,(function(){pn("div.jGraduate_LightBox").hide(),pn("#"+cn+"_jGraduate_stopPicker").hide()}))})),en(Pn).find("stop").each((function(){var rn=en(this);if(Number(this.getAttribute("offset"))>tn){if(!nn){var an=this.getAttribute("stop-color"),sn=this.getAttribute("stop-opacity");dn.setAttribute("stop-color",an),An.setAttribute("fill",an),dn.setAttribute("stop-opacity",null===sn?1:sn),An.setAttribute("fill-opacity",null===sn?1:sn)}return rn.before(dn),!1}return!0})),an&&selectStop(An),dn}function selectStop(en){Jn&&Jn.setAttribute("stroke","#000"),en.setAttribute("stroke","blue"),Jn=en}function remDrags(){mn.unbind("mousemove",dragColor),"none"!==Rr.getAttribute("display")&&function remStop(){Rr.setAttribute("display","none");var tn=pn(Jn),nn=tn.data("stop"),rn=tn.data("bg");en([Jn,nn,rn]).remove()}(),Zn=null}function xform(){var en=Hr?"rotate("+Hr+","+Gr+","+Vr+") ":"";if(1===Dr&&1===Qr)Pn.removeAttribute("gradientTransform");else{var tn=-Gr*(Dr-1),nn=-Vr*(Qr-1);Pn.setAttribute("gradientTransform",en+"translate("+tn+","+nn+") scale("+Dr+","+Qr+")")}}function dragColor(tn){var nn=tn.pageX-Tr.left,rn=tn.pageY-Tr.top,an="translate("+(nn=nn<10?10:nn>266?266:nn)+", 26)";rn<-60||rn>130?(Rr.setAttribute("display","block"),Rr.setAttribute("transform",an)):Rr.setAttribute("display","none"),Zn.setAttribute("transform",an),en.data(Zn,"bg").setAttribute("transform",an);var sn=en.data(Zn,"stop"),cn=(nn-10)/_n;sn.setAttribute("offset",cn);var un=0;en(Pn).find("stop").each((function(tn){var nn=this.getAttribute("offset"),rn=en(this);nn<un&&(rn.prev().before(rn),Yn=en(Pn).find("stop")),un=nn}))}}))},en},function jPicker(en){var tn=function Slider(tn,nn){_classCallCheck(this,Slider);var rn=this;function fireChangeEvents(en){yn.forEach((function(tn){tn.call(rn,rn,en)}))}function mouseDown(nn){var cn=tn.offset();an={l:0|cn.left,t:0|cn.top},clearTimeout(sn),sn=setTimeout((function(){setValuesFromMousePosition.call(rn,nn)}),0),en(document).bind("mousemove",mouseMove).bind("mouseup",mouseUp),nn.preventDefault()}function mouseMove(en){return clearTimeout(sn),sn=setTimeout((function(){setValuesFromMousePosition.call(rn,en)}),0),en.stopPropagation(),en.preventDefault(),!1}function mouseUp(tn){return en(document).unbind("mouseup",mouseUp).unbind("mousemove",mouseMove),tn.stopPropagation(),tn.preventDefault(),!1}function setValuesFromMousePosition(en){var nn=tn.w,sn=tn.h,cn=en.pageX-an.l,un=en.pageY-an.t;cn<0?cn=0:cn>nn&&(cn=nn),un<0?un=0:un>sn&&(un=sn),val.call(rn,"xy",{x:cn/nn*hn+dn,y:un/sn*mn+gn})}function val(en,tn,nn){if(!(void 0!==tn))switch(xf(en)&&(en="xy"),en.toLowerCase()){case"x":return cn;case"y":return un;case"xy":default:return{x:cn,y:un}}if(xf(nn)||nn!==rn){var an,sn,hn=!1;switch(xf(en)&&(en="xy"),en.toLowerCase()){case"x":an=tn&&(tn.x&&0|tn.x||0|tn)||0;break;case"y":sn=tn&&(tn.y&&0|tn.y||0|tn)||0;break;case"xy":default:an=tn&&tn.x&&0|tn.x||0,sn=tn&&tn.y&&0|tn.y||0}xf(an)||(an<dn?an=dn:an>pn&&(an=pn),cn!==an&&(cn=an,hn=!0)),xf(sn)||(sn<gn?sn=gn:sn>An&&(sn=An),un!==sn&&(un=sn,hn=!0)),hn&&fireChangeEvents.call(rn,nn||rn)}}function bind(en){"function"==typeof en&&yn.push(en)}var an,sn,cn=0,un=0,dn=0,pn=100,hn=100,gn=0,An=100,mn=100,vn=tn.find("img:first"),yn=[];en.extend(!0,rn,{val:val,range:function range(en,tn){var nn,rn,an,sn;if(!(void 0!==tn))switch(xf(en)&&(en="all"),en.toLowerCase()){case"minx":return dn;case"maxx":return pn;case"rangex":return{minX:dn,maxX:pn,rangeX:hn};case"miny":return gn;case"maxy":return An;case"rangey":return{minY:gn,maxY:An,rangeY:mn};case"all":default:return{minX:dn,maxX:pn,rangeX:hn,minY:gn,maxY:An,rangeY:mn}}switch(xf(en)&&(en="all"),en.toLowerCase()){case"minx":nn=tn&&(tn.minX&&0|tn.minX||0|tn)||0;break;case"maxx":rn=tn&&(tn.maxX&&0|tn.maxX||0|tn)||0;break;case"rangex":nn=tn&&tn.minX&&0|tn.minX||0,rn=tn&&tn.maxX&&0|tn.maxX||0;break;case"miny":an=tn&&(tn.minY&&0|tn.minY||0|tn)||0;break;case"maxy":sn=tn&&(tn.maxY&&0|tn.maxY||0|tn)||0;break;case"rangey":an=tn&&tn.minY&&0|tn.minY||0,sn=tn&&tn.maxY&&0|tn.maxY||0;break;case"all":default:nn=tn&&tn.minX&&0|tn.minX||0,rn=tn&&tn.maxX&&0|tn.maxX||0,an=tn&&tn.minY&&0|tn.minY||0,sn=tn&&tn.maxY&&0|tn.maxY||0}xf(nn)||dn===nn||(hn=pn-(dn=nn)),xf(rn)||pn===rn||(hn=(pn=rn)-dn),xf(an)||gn===an||(mn=An-(gn=an)),xf(sn)||An===sn||(mn=(An=sn)-gn)},bind:bind,unbind:function unbind(en){if("function"==typeof en)for(var tn;tn=yn.includes(en);)yn.splice(tn,1)},destroy:function destroy(){en(document).unbind("mouseup",mouseUp).unbind("mousemove",mouseMove),tn.unbind("mousedown",mouseDown),tn=null,vn=null,yn=null}}),vn.src=nn.arrow&&nn.arrow.image,vn.w=nn.arrow&&nn.arrow.width||vn.width(),vn.h=nn.arrow&&nn.arrow.height||vn.height(),tn.w=nn.map&&nn.map.width||tn.width(),tn.h=nn.map&&nn.map.height||tn.height(),tn.bind("mousedown",mouseDown),bind.call(rn,(function draw(){var en=tn.w,nn=tn.h,rn=vn.w,an=vn.h,sn=0,dn=0;setTimeout((function(){hn>0&&(sn=cn===pn?en:cn/hn*en|0),mn>0&&(dn=un===An?nn:un/mn*nn|0),rn>=en?sn=(en>>1)-(rn>>1):sn-=rn>>1,an>=nn?dn=(nn>>1)-(an>>1):dn-=an>>1,vn.css({left:sn+"px",top:dn+"px"})}))}))},nn=function ColorValuePicker(tn,nn,rn,an){_classCallCheck(this,ColorValuePicker);var sn=this,cn=tn.find("td.Text input");function keyDown(en){if(""!==en.target.value||en.target===vn.get(0)||(xf(rn)||en.target===rn.get(0))&&!xf(rn)){if(!validateKey(en))return en;switch(en.target){case un.get(0):switch(en.keyCode){case 38:return un.val(setValueInRange.call(sn,1+(un.val()<<0),0,255)),nn.val("r",un.val(),en.target),!1;case 40:return un.val(setValueInRange.call(sn,(un.val()<<0)-1,0,255)),nn.val("r",un.val(),en.target),!1}break;case dn.get(0):switch(en.keyCode){case 38:return dn.val(setValueInRange.call(sn,1+(dn.val()<<0),0,255)),nn.val("g",dn.val(),en.target),!1;case 40:return dn.val(setValueInRange.call(sn,(dn.val()<<0)-1,0,255)),nn.val("g",dn.val(),en.target),!1}break;case pn.get(0):switch(en.keyCode){case 38:return pn.val(setValueInRange.call(sn,1+(pn.val()<<0),0,255)),nn.val("b",pn.val(),en.target),!1;case 40:return pn.val(setValueInRange.call(sn,(pn.val()<<0)-1,0,255)),nn.val("b",pn.val(),en.target),!1}break;case hn&&hn.get(0):switch(en.keyCode){case 38:return hn.val(setValueInRange.call(sn,Number.parseFloat(hn.val())+1,0,100)),nn.val("a",toFixedNumeric(255*hn.val()/100,an),en.target),!1;case 40:return hn.val(setValueInRange.call(sn,Number.parseFloat(hn.val())-1,0,100)),nn.val("a",toFixedNumeric(255*hn.val()/100,an),en.target),!1}break;case gn.get(0):switch(en.keyCode){case 38:return gn.val(setValueInRange.call(sn,1+(gn.val()<<0),0,360)),nn.val("h",gn.val(),en.target),!1;case 40:return gn.val(setValueInRange.call(sn,(gn.val()<<0)-1,0,360)),nn.val("h",gn.val(),en.target),!1}break;case An.get(0):switch(en.keyCode){case 38:return An.val(setValueInRange.call(sn,1+(An.val()<<0),0,100)),nn.val("s",An.val(),en.target),!1;case 40:return An.val(setValueInRange.call(sn,(An.val()<<0)-1,0,100)),nn.val("s",An.val(),en.target),!1}break;case mn.get(0):switch(en.keyCode){case 38:return mn.val(setValueInRange.call(sn,1+(mn.val()<<0),0,100)),nn.val("v",mn.val(),en.target),!1;case 40:return mn.val(setValueInRange.call(sn,(mn.val()<<0)-1,0,100)),nn.val("v",mn.val(),en.target),!1}}}}function keyUp(en){if(""!==en.target.value||en.target===vn.get(0)||(xf(rn)||en.target===rn.get(0))&&!xf(rn)){if(!validateKey(en))return en;switch(en.target){case un.get(0):un.val(setValueInRange.call(sn,un.val(),0,255)),nn.val("r",un.val(),en.target);break;case dn.get(0):dn.val(setValueInRange.call(sn,dn.val(),0,255)),nn.val("g",dn.val(),en.target);break;case pn.get(0):pn.val(setValueInRange.call(sn,pn.val(),0,255)),nn.val("b",pn.val(),en.target);break;case hn&&hn.get(0):hn.val(setValueInRange.call(sn,hn.val(),0,100)),nn.val("a",toFixedNumeric(255*hn.val()/100,an),en.target);break;case gn.get(0):gn.val(setValueInRange.call(sn,gn.val(),0,360)),nn.val("h",gn.val(),en.target);break;case An.get(0):An.val(setValueInRange.call(sn,An.val(),0,100)),nn.val("s",An.val(),en.target);break;case mn.get(0):mn.val(setValueInRange.call(sn,mn.val(),0,100)),nn.val("v",mn.val(),en.target);break;case vn.get(0):vn.val(vn.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6)),rn&&rn.val(vn.val()),nn.val("hex",""!==vn.val()?vn.val():null,en.target);break;case rn&&rn.get(0):rn.val(rn.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6)),vn.val(rn.val()),nn.val("hex",""!==rn.val()?rn.val():null,en.target);break;case yn&&yn.get(0):yn.val(yn.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,2)),nn.val("a",xf(yn.val())?null:Number.parseInt(yn.val(),16),en.target)}}}function blur(en){if(!xf(nn.val()))switch(en.target){case un.get(0):un.val(nn.val("r"));break;case dn.get(0):dn.val(nn.val("g"));break;case pn.get(0):pn.val(nn.val("b"));break;case hn&&hn.get(0):hn.val(toFixedNumeric(100*nn.val("a")/255,an));break;case gn.get(0):gn.val(nn.val("h"));break;case An.get(0):An.val(nn.val("s"));break;case mn.get(0):mn.val(nn.val("v"));break;case vn.get(0):case rn&&rn.get(0):vn.val(nn.val("hex")),rn&&rn.val(nn.val("hex"));break;case yn&&yn.get(0):yn.val(nn.val("ahex").substring(6))}}function validateKey(en){switch(en.keyCode){case 9:case 16:case 29:case 37:case 39:return!1;case"c".charCodeAt():case"v".charCodeAt():if(en.ctrlKey)return!1}return!0}function setValueInRange(en,tn,nn){return""===en||isNaN(en)?tn:en>nn?nn:en<tn?tn:en}function colorChanged(en,tn){var nn=en.val("all");tn!==un.get(0)&&un.val(xf(nn)?"":nn.r),tn!==dn.get(0)&&dn.val(xf(nn)?"":nn.g),tn!==pn.get(0)&&pn.val(xf(nn)?"":nn.b),hn&&tn!==hn.get(0)&&hn.val(xf(nn)?"":toFixedNumeric(100*nn.a/255,an)),tn!==gn.get(0)&&gn.val(xf(nn)?"":nn.h),tn!==An.get(0)&&An.val(xf(nn)?"":nn.s),tn!==mn.get(0)&&mn.val(xf(nn)?"":nn.v),tn!==vn.get(0)&&(rn&&tn!==rn.get(0)||!rn)&&vn.val(xf(nn)?"":nn.hex),rn&&tn!==rn.get(0)&&tn!==vn.get(0)&&rn.val(xf(nn)?"":nn.hex),yn&&tn!==yn.get(0)&&yn.val(xf(nn)?"":nn.ahex.substring(6))}var un=cn.eq(3),dn=cn.eq(4),pn=cn.eq(5),hn=cn.length>7?cn.eq(6):null,gn=cn.eq(0),An=cn.eq(1),mn=cn.eq(2),vn=cn.eq(cn.length>7?7:6),yn=cn.length>7?cn.eq(8):null;en.extend(!0,sn,{destroy:function destroy(){un.add(dn).add(pn).add(hn).add(gn).add(An).add(mn).add(vn).add(rn).add(yn).unbind("keyup",keyUp).unbind("blur",blur),un.add(dn).add(pn).add(hn).add(gn).add(An).add(mn).unbind("keydown",keyDown),nn.unbind(colorChanged),un=null,dn=null,pn=null,hn=null,gn=null,An=null,mn=null,vn=null,yn=null}}),un.add(dn).add(pn).add(hn).add(gn).add(An).add(mn).add(vn).add(rn).add(yn).bind("keyup",keyUp).bind("blur",blur),un.add(dn).add(pn).add(hn).add(gn).add(An).add(mn).bind("keydown",keyDown),nn.bind(colorChanged)};en.jPicker={List:[],Color:function Color(tn){var nn=this;function fireChangeEvents(en){for(var tn=0;tn<gn.length;tn++)gn[tn].call(nn,nn,en)}function val(en,tn,gn){var An=Boolean(tn);if(An&&""===tn.ahex&&(tn.ahex="00000000"),!An){var mn;if((xf(en)||""===en)&&(en="all"),xf(rn))return null;switch(en.toLowerCase()){case"ahex":return cn.rgbaToHex({r:rn,g:an,b:sn,a:un});case"hex":return val("ahex").substring(0,6);case"all":return{r:rn,g:an,b:sn,a:un,h:dn,s:pn,v:hn,hex:val.call(nn,"hex"),ahex:val.call(nn,"ahex")};default:mn={};var vn=en.length;_toConsumableArray(en).forEach((function(en){switch(en){case"r":1===vn?mn=rn:mn.r=rn;break;case"g":1===vn?mn=an:mn.g=an;break;case"b":1===vn?mn=sn:mn.b=sn;break;case"a":1===vn?mn=un:mn.a=un;break;case"h":1===vn?mn=dn:mn.h=dn;break;case"s":1===vn?mn=pn:mn.s=pn;break;case"v":1===vn?mn=hn:mn.v=hn}}))}return"object"!==_typeof(mn)||Object.keys(mn).length?mn:val.call(nn,"all")}if(xf(gn)||gn!==nn){xf(en)&&(en="");var yn=!1;if(xf(tn))return xf(rn)||(rn=null,yn=!0),xf(an)||(an=null,yn=!0),xf(sn)||(sn=null,yn=!0),xf(un)||(un=null,yn=!0),xf(dn)||(dn=null,yn=!0),xf(pn)||(pn=null,yn=!0),xf(hn)||(hn=null,yn=!0),void(yn&&fireChangeEvents.call(nn,gn||nn));switch(en.toLowerCase()){case"ahex":case"hex":var _n=cn.hexToRgba(tn&&(tn.ahex||tn.hex)||tn||"none");val.call(nn,"rgba",{r:_n.r,g:_n.g,b:_n.b,a:"ahex"===en?_n.a:xf(un)?255:un},gn);break;default:if(tn&&(!xf(tn.ahex)||!xf(tn.hex)))return void val.call(nn,"ahex",tn.ahex||tn.hex||"00000000",gn);var wn={},xn=!1,Sn=!1;if(void 0===tn.r||en.includes("r")||(en+="r"),void 0===tn.g||en.includes("g")||(en+="g"),void 0===tn.b||en.includes("b")||(en+="b"),void 0===tn.a||en.includes("a")||(en+="a"),void 0===tn.h||en.includes("h")||(en+="h"),void 0===tn.s||en.includes("s")||(en+="s"),void 0===tn.v||en.includes("v")||(en+="v"),_toConsumableArray(en).forEach((function(en){switch(en){case"r":if(Sn)return;xn=!0,wn.r=tn.r&&0|tn.r||0|tn||0,wn.r<0?wn.r=0:wn.r>255&&(wn.r=255),rn!==wn.r&&(rn=wn.r,yn=!0);break;case"g":if(Sn)return;xn=!0,wn.g=tn&&tn.g&&0|tn.g||tn&&0|tn||0,wn.g<0?wn.g=0:wn.g>255&&(wn.g=255),an!==wn.g&&(an=wn.g,yn=!0);break;case"b":if(Sn)return;xn=!0,wn.b=tn&&tn.b&&0|tn.b||tn&&0|tn||0,wn.b<0?wn.b=0:wn.b>255&&(wn.b=255),sn!==wn.b&&(sn=wn.b,yn=!0);break;case"a":wn.a=tn&&!xf(tn.a)?0|tn.a:0|tn,wn.a<0?wn.a=0:wn.a>255&&(wn.a=255),un!==wn.a&&(un=wn.a,yn=!0);break;case"h":if(xn)return;Sn=!0,wn.h=tn&&tn.h&&0|tn.h||tn&&0|tn||0,wn.h<0?wn.h=0:wn.h>360&&(wn.h=360),dn!==wn.h&&(dn=wn.h,yn=!0);break;case"s":if(xn)return;Sn=!0,wn.s=xf(tn.s)?0|tn:0|tn.s,wn.s<0?wn.s=0:wn.s>100&&(wn.s=100),pn!==wn.s&&(pn=wn.s,yn=!0);break;case"v":if(xn)return;Sn=!0,wn.v=xf(tn.v)?0|tn:0|tn.v,wn.v<0?wn.v=0:wn.v>100&&(wn.v=100),hn!==wn.v&&(hn=wn.v,yn=!0)}})),yn){if(xn){rn=rn||0,an=an||0,sn=sn||0;var Cn=cn.rgbToHsv({r:rn,g:an,b:sn});dn=Cn.h,pn=Cn.s,hn=Cn.v}else if(Sn){dn=dn||0,pn=xf(pn)?100:pn,hn=xf(hn)?100:hn;var kn=cn.hsvToRgb({h:dn,s:pn,v:hn});rn=kn.r,an=kn.g,sn=kn.b}un=xf(un)?255:un,fireChangeEvents.call(nn,gn||nn)}}}}var rn,an,sn,un,dn,pn,hn,gn=[];en.extend(!0,nn,{val:val,bind:function bind(en){"function"==typeof en&&gn.push(en)},unbind:function unbind(en){if("function"==typeof en)for(var tn;tn=gn.includes(en);)gn.splice(tn,1)},destroy:function destroy(){gn=null}}),tn&&(xf(tn.ahex)?xf(tn.hex)?xf(tn.r)||xf(tn.g)||xf(tn.b)?xf(tn.h)||xf(tn.s)||xf(tn.v)||val("hsv"+(xf(tn.a)?"":"a"),tn):val("rgb"+(xf(tn.a)?"":"a"),tn):val((xf(tn.a)?"":"a")+"hex",xf(tn.a)?tn:{ahex:tn.hex+cn.intToHex(tn.a)}):val("ahex",tn))},ColorMethods:{hexToRgba:function hexToRgba(en){if(""===en||"none"===en)return{r:null,g:null,b:null,a:null};var tn="00",nn="00",rn="00",an="255";return 6===(en=this.validateHex(en)).length&&(en+="ff"),en.length>6?(tn=en.substring(0,2),nn=en.substring(2,4),rn=en.substring(4,6),an=en.substring(6,en.length)):(en.length>4&&(tn=en.substring(4,en.length),en=en.substring(0,4)),en.length>2&&(nn=en.substring(2,en.length),en=en.substring(0,2)),en.length>0&&(rn=en.substring(0,en.length))),{r:this.hexToInt(tn),g:this.hexToInt(nn),b:this.hexToInt(rn),a:this.hexToInt(an)}},validateHex:function validateHex(en){return(en=en.toLowerCase().replace(/[^a-f\d]/g,"")).length>8&&(en=en.substring(0,8)),en},rgbaToHex:function rgbaToHex(en){return this.intToHex(en.r)+this.intToHex(en.g)+this.intToHex(en.b)+this.intToHex(en.a)},intToHex:function intToHex(en){var tn=(0|en).toString(16);return 1===tn.length&&(tn="0"+tn),tn.toLowerCase()},hexToInt:function hexToInt(en){return Number.parseInt(en,16)},rgbToHsv:function rgbToHsv(en){var tn,nn=en.r/255,rn=en.g/255,an=en.b/255,sn={h:0,s:0,v:0},cn=0,un=0;return nn>=rn&&nn>=an?(un=nn,cn=rn>an?an:rn):rn>=an&&rn>=nn?(un=rn,cn=nn>an?an:nn):(un=an,cn=rn>nn?nn:rn),sn.v=un,sn.s=un?(un-cn)/un:0,sn.s?(tn=un-cn,sn.h=nn===un?(rn-an)/tn:rn===un?2+(an-nn)/tn:4+(nn-rn)/tn,sn.h=Number.parseInt(60*sn.h),sn.h<0&&(sn.h+=360)):sn.h=0,sn.s=100*sn.s|0,sn.v=100*sn.v|0,sn},hsvToRgb:function hsvToRgb(en){var tn={r:0,g:0,b:0,a:100},nn=en.h,rn=en.s,an=en.v;if(0===rn)tn.r=tn.g=tn.b=0===an?0:255*an/100|0;else{360===nn&&(nn=0);var sn=0|(nn/=60),cn=nn-sn,un=(an/=100)*(1-(rn/=100)),dn=an*(1-rn*cn),pn=an*(1-rn*(1-cn));switch(sn){case 0:tn.r=an,tn.g=pn,tn.b=un;break;case 1:tn.r=dn,tn.g=an,tn.b=un;break;case 2:tn.r=un,tn.g=an,tn.b=pn;break;case 3:tn.r=un,tn.g=dn,tn.b=an;break;case 4:tn.r=pn,tn.g=un,tn.b=an;break;case 5:tn.r=an,tn.g=un,tn.b=dn}tn.r=255*tn.r|0,tn.g=255*tn.g|0,tn.b=255*tn.b|0}return tn}}};var rn=en.jPicker,an=rn.Color,sn=rn.List,cn=rn.ColorMethods;return en.fn.jPicker=function(rn,un,dn,pn){return this.each((function(){var hn=this,gn=en.extend(!0,{},en.fn.jPicker.defaults,rn);"input"===en(hn).get(0).nodeName.toLowerCase()&&(en.extend(!0,gn,{window:{bindToInput:!0,expandable:!0,input:en(hn)}}),""===en(hn).val()?(gn.color.active=new an({hex:null}),gn.color.current=new an({hex:null})):cn.validateHex(en(hn).val())&&(gn.color.active=new an({hex:en(hn).val(),a:gn.color.active.val("a")}),gn.color.current=new an({hex:en(hn).val(),a:gn.color.active.val("a")}))),gn.window.expandable?en(hn).after('<span class="jPicker"><span class="Icon"><span class="Color"> </span><span class="Alpha"> </span><span class="Image" title="Click To Open Color Picker"> </span><span class="Container"> </span></span></span>'):gn.window.liveUpdate=!1;var An=Number.parseFloat(navigator.appVersion.split("MSIE")[1])<7&&document.body.filters;function setColorMode(en){var tn,nn,rn=yn.active,an=rn.val("hex");switch(gn.color.mode=en,en){case"h":if(setTimeout((function(){setBG.call(hn,kn,"transparent"),setImgLoc.call(hn,En,0),setAlpha.call(hn,En,100),setImgLoc.call(hn,Pn,260),setAlpha.call(hn,Pn,100),setBG.call(hn,Bn,"transparent"),setImgLoc.call(hn,Tn,0),setAlpha.call(hn,Tn,100),setImgLoc.call(hn,Nn,260),setAlpha.call(hn,Nn,100),setImgLoc.call(hn,In,260),setAlpha.call(hn,In,100),setImgLoc.call(hn,On,260),setAlpha.call(hn,On,100),setImgLoc.call(hn,Un,260),setAlpha.call(hn,Un,100)}),0),Mn.range("all",{minX:0,maxX:100,minY:0,maxY:100}),Rn.range("rangeY",{minY:0,maxY:360}),xf(rn.val("ahex")))break;Mn.val("xy",{x:rn.val("s"),y:100-rn.val("v")},Mn),Rn.val("y",360-rn.val("h"),Rn);break;case"s":if(setTimeout((function(){setBG.call(hn,kn,"transparent"),setImgLoc.call(hn,En,-260),setImgLoc.call(hn,Pn,-520),setImgLoc.call(hn,Tn,-260),setImgLoc.call(hn,Nn,-520),setImgLoc.call(hn,Un,260),setAlpha.call(hn,Un,100)}),0),Mn.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Rn.range("rangeY",{minY:0,maxY:100}),xf(rn.val("ahex")))break;Mn.val("xy",{x:rn.val("h"),y:100-rn.val("v")},Mn),Rn.val("y",100-rn.val("s"),Rn);break;case"v":if(setTimeout((function(){setBG.call(hn,kn,"000000"),setImgLoc.call(hn,En,-780),setImgLoc.call(hn,Pn,260),setBG.call(hn,Bn,an),setImgLoc.call(hn,Tn,-520),setImgLoc.call(hn,Nn,260),setAlpha.call(hn,Nn,100),setImgLoc.call(hn,Un,260),setAlpha.call(hn,Un,100)}),0),Mn.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Rn.range("rangeY",{minY:0,maxY:100}),xf(rn.val("ahex")))break;Mn.val("xy",{x:rn.val("h"),y:100-rn.val("s")},Mn),Rn.val("y",100-rn.val("v"),Rn);break;case"r":if(tn=-1040,nn=-780,Mn.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Rn.range("rangeY",{minY:0,maxY:255}),xf(rn.val("ahex")))break;Mn.val("xy",{x:rn.val("b"),y:255-rn.val("g")},Mn),Rn.val("y",255-rn.val("r"),Rn);break;case"g":if(tn=-1560,nn=-1820,Mn.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Rn.range("rangeY",{minY:0,maxY:255}),xf(rn.val("ahex")))break;Mn.val("xy",{x:rn.val("b"),y:255-rn.val("r")},Mn),Rn.val("y",255-rn.val("g"),Rn);break;case"b":if(tn=-2080,nn=-2860,Mn.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Rn.range("rangeY",{minY:0,maxY:255}),xf(rn.val("ahex")))break;Mn.val("xy",{x:rn.val("r"),y:255-rn.val("g")},Mn),Rn.val("y",255-rn.val("b"),Rn);break;case"a":if(setTimeout((function(){setBG.call(hn,kn,"transparent"),setImgLoc.call(hn,En,-260),setImgLoc.call(hn,Pn,-520),setImgLoc.call(hn,Tn,260),setImgLoc.call(hn,Nn,260),setAlpha.call(hn,Nn,100),setImgLoc.call(hn,Un,0),setAlpha.call(hn,Un,100)}),0),Mn.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Rn.range("rangeY",{minY:0,maxY:255}),xf(rn.val("ahex")))break;Mn.val("xy",{x:rn.val("h"),y:100-rn.val("v")},Mn),Rn.val("y",255-rn.val("a"),Rn);break;default:throw new Error("Invalid Mode")}switch(en){case"h":break;case"s":case"v":case"a":setTimeout((function(){setAlpha.call(hn,En,100),setAlpha.call(hn,Tn,100),setImgLoc.call(hn,In,260),setAlpha.call(hn,In,100),setImgLoc.call(hn,On,260),setAlpha.call(hn,On,100)}),0);break;case"r":case"g":case"b":setTimeout((function(){setBG.call(hn,kn,"transparent"),setBG.call(hn,Bn,"transparent"),setAlpha.call(hn,Tn,100),setAlpha.call(hn,En,100),setImgLoc.call(hn,En,tn),setImgLoc.call(hn,Pn,tn-260),setImgLoc.call(hn,Tn,nn-780),setImgLoc.call(hn,Nn,nn-520),setImgLoc.call(hn,In,nn),setImgLoc.call(hn,On,nn-260),setImgLoc.call(hn,Un,260),setAlpha.call(hn,Un,100)}),0)}xf(rn.val("ahex"))||activeColorChanged.call(hn,rn)}function activeColorChanged(en,tn){(xf(tn)||tn!==Rn&&tn!==Mn)&&positionMapAndBarArrows.call(hn,en,tn),setTimeout((function(){updatePreview.call(hn,en),updateMapVisuals.call(hn,en),updateBarVisuals.call(hn,en)}),0)}function mapValueChanged(en,tn){var nn=yn.active;if(tn===Mn||!xf(nn.val())){var rn=en.val("all");switch(gn.color.mode){case"h":nn.val("sv",{s:rn.x,v:100-rn.y},tn);break;case"s":case"a":nn.val("hv",{h:rn.x,v:100-rn.y},tn);break;case"v":nn.val("hs",{h:rn.x,s:100-rn.y},tn);break;case"r":nn.val("gb",{g:255-rn.y,b:rn.x},tn);break;case"g":nn.val("rb",{r:255-rn.y,b:rn.x},tn);break;case"b":nn.val("rg",{r:rn.x,g:255-rn.y},tn)}}}function colorBarValueChanged(en,tn){var nn=yn.active;if(tn===Rn||!xf(nn.val()))switch(gn.color.mode){case"h":nn.val("h",{h:360-en.val("y")},tn);break;case"s":nn.val("s",{s:100-en.val("y")},tn);break;case"v":nn.val("v",{v:100-en.val("y")},tn);break;case"r":nn.val("r",{r:255-en.val("y")},tn);break;case"g":nn.val("g",{g:255-en.val("y")},tn);break;case"b":nn.val("b",{b:255-en.val("y")},tn);break;case"a":nn.val("a",255-en.val("y"),tn)}}function positionMapAndBarArrows(en,tn){if(tn!==Mn)switch(gn.color.mode){case"h":var nn=en.val("sv");Mn.val("xy",{x:xf(nn)?100:nn.s,y:100-(xf(nn)?100:nn.v)},tn);break;case"s":case"a":var rn=en.val("hv");Mn.val("xy",{x:rn&&rn.h||0,y:100-(xf(rn)?100:rn.v)},tn);break;case"v":var an=en.val("hs");Mn.val("xy",{x:an&&an.h||0,y:100-(xf(an)?100:an.s)},tn);break;case"r":var sn=en.val("bg");Mn.val("xy",{x:sn&&sn.b||0,y:255-(sn&&sn.g||0)},tn);break;case"g":var cn=en.val("br");Mn.val("xy",{x:cn&&cn.b||0,y:255-(cn&&cn.r||0)},tn);break;case"b":var un=en.val("rg");Mn.val("xy",{x:un&&un.r||0,y:255-(un&&un.g||0)},tn)}if(tn!==Rn)switch(gn.color.mode){case"h":Rn.val("y",360-(en.val("h")||0),tn);break;case"s":var dn=en.val("s");Rn.val("y",100-(xf(dn)?100:dn),tn);break;case"v":var pn=en.val("v");Rn.val("y",100-(xf(pn)?100:pn),tn);break;case"r":Rn.val("y",255-(en.val("r")||0),tn);break;case"g":Rn.val("y",255-(en.val("g")||0),tn);break;case"b":Rn.val("y",255-(en.val("b")||0),tn);break;case"a":var hn=en.val("a");Rn.val("y",255-(xf(hn)?255:hn),tn)}}function updatePreview(en){try{var tn=en.val("all");jn.css({backgroundColor:tn&&"#"+tn.hex||"transparent"}),setAlpha.call(hn,jn,tn&&toFixedNumeric(100*tn.a/255,4)||0)}catch(en){}}function updateMapVisuals(en){switch(gn.color.mode){case"h":setBG.call(hn,kn,new an({h:en.val("h")||0,s:100,v:100}).val("hex"));break;case"s":case"a":var tn=en.val("s");setAlpha.call(hn,Pn,100-(xf(tn)?100:tn));break;case"v":var nn=en.val("v");setAlpha.call(hn,En,xf(nn)?100:nn);break;case"r":setAlpha.call(hn,Pn,toFixedNumeric((en.val("r")||0)/255*100,4));break;case"g":setAlpha.call(hn,Pn,toFixedNumeric((en.val("g")||0)/255*100,4));break;case"b":setAlpha.call(hn,Pn,toFixedNumeric((en.val("b")||0)/255*100))}var rn=en.val("a");setAlpha.call(hn,Ln,toFixedNumeric(100*(255-(rn||0))/255,4))}function updateBarVisuals(en){switch(gn.color.mode){case"h":var tn=en.val("a");setAlpha.call(hn,Fn,toFixedNumeric(100*(255-(tn||0))/255,4));break;case"s":var nn=en.val("hva"),rn=new an({h:nn&&nn.h||0,s:100,v:xf(nn)?100:nn.v});setBG.call(hn,Bn,rn.val("hex")),setAlpha.call(hn,Nn,100-(xf(nn)?100:nn.v)),setAlpha.call(hn,Fn,toFixedNumeric(100*(255-(nn&&nn.a||0))/255,4));break;case"v":var sn=en.val("hsa"),cn=new an({h:sn&&sn.h||0,s:xf(sn)?100:sn.s,v:100});setBG.call(hn,Bn,cn.val("hex")),setAlpha.call(hn,Fn,toFixedNumeric(100*(255-(sn&&sn.a||0))/255,4));break;case"r":case"g":case"b":var un=en.val("rgba"),dn=0,pn=0;"r"===gn.color.mode?(dn=un&&un.b||0,pn=un&&un.g||0):"g"===gn.color.mode?(dn=un&&un.b||0,pn=un&&un.r||0):"b"===gn.color.mode&&(dn=un&&un.r||0,pn=un&&un.g||0);var An=pn>dn?dn:pn;setAlpha.call(hn,Nn,dn>pn?toFixedNumeric((dn-pn)/(255-pn)*100,4):0),setAlpha.call(hn,In,pn>dn?toFixedNumeric((pn-dn)/(255-dn)*100,4):0),setAlpha.call(hn,On,toFixedNumeric(An/255*100,4)),setAlpha.call(hn,Fn,toFixedNumeric(100*(255-(un&&un.a||0))/255,4));break;case"a":var mn=en.val("a");setBG.call(hn,Bn,en.val("hex")||"000000"),setAlpha.call(hn,Fn,xf(mn)?100:0),setAlpha.call(hn,Un,xf(mn)?0:100)}}function setBG(en,tn){en.css({backgroundColor:tn&&6===tn.length&&"#"+tn||"transparent"})}function setImg(en,tn){An&&(tn.includes("AlphaBar.png")||tn.includes("Bars.png")||tn.includes("Maps.png"))?(en.attr("pngSrc",tn),en.css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+tn+"', sizingMethod='scale')"})):en.css({backgroundImage:"url('"+tn+"')"})}function setImgLoc(en,tn){en.css({top:tn+"px"})}function setAlpha(en,tn){if(en.css({visibility:tn>0?"visible":"hidden"}),tn>0&&tn<100)if(An){var nn=en.attr("pngSrc");!xf(nn)&&(nn.includes("AlphaBar.png")||nn.includes("Bars.png")||nn.includes("Maps.png"))?en.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+nn+"', sizingMethod='scale') progid:DXImageTransform.Microsoft.Alpha(opacity="+tn+")"}):en.css({opacity:toFixedNumeric(tn/100,4)})}else en.css({opacity:toFixedNumeric(tn/100,4)});else if(0===tn||100===tn)if(An){var rn=en.attr("pngSrc");!xf(rn)&&(rn.includes("AlphaBar.png")||rn.includes("Bars.png")||rn.includes("Maps.png"))?en.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+rn+"', sizingMethod='scale')"}):en.css({opacity:""})}else en.css({opacity:""})}function revertColor(){yn.active.val("ahex",yn.current.val("ahex"))}function commitColor(){yn.current.val("ahex",yn.active.val("ahex"))}function radioClicked(tn){en(this).parents("tbody:first").find('input:radio[value!="'+tn.target.value+'"]').removeAttr("checked"),setColorMode.call(hn,tn.target.value)}function currentClicked(){revertColor.call(hn)}function cancelClicked(){revertColor.call(hn),gn.window.expandable&&hide.call(hn),"function"==typeof pn&&pn.call(hn,yn.active,Gn)}function okClicked(){commitColor.call(hn),gn.window.expandable&&hide.call(hn),"function"==typeof un&&un.call(hn,yn.active,Hn)}function iconImageClicked(){show.call(hn)}function currentColorChanged(en){var tn=en.val("hex");Qn.css({backgroundColor:tn&&"#"+tn||"transparent"}),setAlpha.call(hn,Qn,toFixedNumeric(100*(en.val("a")||0)/255,4))}function expandableColorChanged(en){var tn=en.val("hex"),nn=en.val("va");zn.css({backgroundColor:tn&&"#"+tn||"transparent"}),setAlpha.call(hn,Kn,toFixedNumeric(100*(255-(nn&&nn.a||0))/255,4)),gn.window.bindToInput&&gn.window.updateInputColor&&gn.window.input.css({backgroundColor:tn&&"#"+tn||"transparent",color:xf(nn)||nn.v>75?"#000000":"#ffffff"})}function moveBarMouseDown(tn){_n=Number.parseInt(Cn.css("left")),wn=Number.parseInt(Cn.css("top")),xn=tn.pageX,Sn=tn.pageY,en(document).bind("mousemove",documentMouseMove).bind("mouseup",documentMouseUp),tn.preventDefault()}function documentMouseMove(tn){return Cn.css({left:_n-(xn-tn.pageX)+"px",top:wn-(Sn-tn.pageY)+"px"}),gn.window.expandable&&!en.support.boxModel&&Cn.prev().css({left:Cn.css("left"),top:Cn.css("top")}),tn.stopPropagation(),tn.preventDefault(),!1}function documentMouseUp(tn){return en(document).unbind("mousemove",documentMouseMove).unbind("mouseup",documentMouseUp),tn.stopPropagation(),tn.preventDefault(),!1}function quickPickClicked(tn){return tn.preventDefault(),tn.stopPropagation(),yn.active.val("ahex",en(this).attr("title")||null,tn.target),!1}function show(){function attachIFrame(){if(gn.window.expandable&&!en.support.boxModel){var tn=Cn.find("table:first");Cn.before("<iframe/>"),Cn.prev().css({width:tn.width(),height:Cn.height(),opacity:0,position:"absolute",left:Cn.css("left"),top:Cn.css("top")})}}switch(yn.current.val("ahex",yn.active.val("ahex")),gn.window.expandable&&(en(document.body).children("div.jPicker.Container").css({zIndex:10}),Cn.css({zIndex:20})),gn.window.effects.type){case"fade":Cn.fadeIn(gn.window.effects.speed.show,attachIFrame);break;case"slide":Cn.slideDown(gn.window.effects.speed.show,attachIFrame);break;case"show":default:Cn.show(gn.window.effects.speed.show,attachIFrame)}}function hide(){function removeIFrame(){gn.window.expandable&&Cn.css({zIndex:10}),gn.window.expandable&&!en.support.boxModel&&Cn.prev().remove()}switch(gn.window.effects.type){case"fade":Cn.fadeOut(gn.window.effects.speed.hide,removeIFrame);break;case"slide":Cn.slideUp(gn.window.effects.speed.hide,removeIFrame);break;case"show":default:Cn.hide(gn.window.effects.speed.hide,removeIFrame)}}function initialize(){var rn=gn.window,sn=rn.expandable?en(hn).next().find(".Container:first"):null;(Cn=rn.expandable?en("<div/>"):en(hn)).addClass("jPicker Container"),rn.expandable&&Cn.hide(),Cn.get(0).onselectstart=function(en){return"input"===en.target.nodeName.toLowerCase()};var cn=yn.active.val("all");rn.alphaPrecision<0?rn.alphaPrecision=0:rn.alphaPrecision>2&&(rn.alphaPrecision=2);var un='<table class="jPicker" cellpadding="0" cellspacing="0">\n <tbody>\n '.concat(rn.expandable?'<tr><td class="Move" colspan="5"> </td></tr>':"",'\n <tr>\n <td rowspan="9"><h2 class="Title">').concat(rn.title||vn.text.title,'</h2><div class="Map"><span class="Map1"> </span><span class="Map2"> </span><span class="Map3"> </span><img src="').concat(mn.clientPath+mn.colorMap.arrow.file,'" class="Arrow"/></div></td>\n <td rowspan="9"><div class="Bar"><span class="Map1"> </span><span class="Map2"> </span><span class="Map3"> </span><span class="Map4"> </span><span class="Map5"> </span><span class="Map6"> </span><img src="').concat(mn.clientPath+mn.colorBar.arrow.file,'" class="Arrow"/></div></td>\n <td colspan="2" class="Preview">').concat(vn.text.newColor,'<div><span class="Active" title="').concat(vn.tooltips.colors.newColor,'"> </span><span class="Current" title="').concat(vn.tooltips.colors.currentColor,'"> </span></div>').concat(vn.text.currentColor,'</td>\n <td rowspan="9" class="Button"><input type="button" class="Ok" value="').concat(vn.text.ok,'" title="').concat(vn.tooltips.buttons.ok,'"/><input type="button" class="Cancel" value="').concat(vn.text.cancel,'" title="').concat(vn.tooltips.buttons.cancel,'"/><hr/><div class="Grid"> </div></td>\n </tr>\n <tr class="Hue">\n <td class="Radio"><label title="').concat(vn.tooltips.hue.radio,'"><input type="radio" value="h"').concat("h"===gn.color.mode?' checked="checked"':"",'/>H:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(xf(cn)?"":cn.h,'" title="').concat(vn.tooltips.hue.textbox,'"/> °</td>\n </tr>\n <tr class="Saturation">\n <td class="Radio"><label title="').concat(vn.tooltips.saturation.radio,'"><input type="radio" value="s"').concat("s"===gn.color.mode?' checked="checked"':"",'/>S:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(xf(cn)?"":cn.s,'" title="').concat(vn.tooltips.saturation.textbox,'"/> %</td>\n </tr>\n <tr class="Value">\n <td class="Radio"><label title="').concat(vn.tooltips.value.radio,'"><input type="radio" value="v"').concat("v"===gn.color.mode?' checked="checked"':"",'/>V:</label><br/><br/></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(xf(cn)?"":cn.v,'" title="').concat(vn.tooltips.value.textbox,'"/> %<br/><br/></td>\n </tr>\n <tr class="Red">\n <td class="Radio"><label title="').concat(vn.tooltips.red.radio,'"><input type="radio" value="r"').concat("r"===gn.color.mode?' checked="checked"':"",'/>R:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(xf(cn)?"":cn.r,'" title="').concat(vn.tooltips.red.textbox,'"/></td>\n </tr>\n <tr class="Green">\n <td class="Radio"><label title="').concat(vn.tooltips.green.radio,'"><input type="radio" value="g"').concat("g"===gn.color.mode?' checked="checked"':"",'/>G:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(xf(cn)?"":cn.g,'" title="').concat(vn.tooltips.green.textbox,'"/></td>\n </tr>\n <tr class="Blue">\n <td class="Radio"><label title="').concat(vn.tooltips.blue.radio,'"><input type="radio" value="b"').concat("b"===gn.color.mode?' checked="checked"':"",'/>B:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(xf(cn)?"":cn.b,'" title="').concat(vn.tooltips.blue.textbox,'"/></td>\n </tr>\n <tr class="Alpha">\n <td class="Radio">').concat(rn.alphaSupport?'<label title="'.concat(vn.tooltips.alpha.radio,'"><input type="radio" value="a"').concat("a"===gn.color.mode?' checked="checked"':"","/>A:</label>"):" ",'</td>\n <td class="Text">').concat(rn.alphaSupport?'<input type="text" maxlength="'.concat(3+rn.alphaPrecision,'" value="').concat(xf(cn)?"":toFixedNumeric(100*cn.a/255,rn.alphaPrecision),'" title="').concat(vn.tooltips.alpha.textbox,'"/> %'):" ",'</td>\n </tr>\n <tr class="Hex">\n <td colspan="2" class="Text"><label title="').concat(vn.tooltips.hex.textbox,'">#:<input type="text" maxlength="6" class="Hex" value="').concat(xf(cn)?"":cn.hex,'"/></label>').concat(rn.alphaSupport?'<input type="text" maxlength="2" class="AHex" value="'.concat(xf(cn)?"":cn.ahex.substring(6),'" title="').concat(vn.tooltips.hex.alpha,'"/></td>'):" ","\n </tr>\n </tbody></table>");rn.expandable?(Cn.html(un),en(document.body).children("div.jPicker.Container").length?en(document.body).children("div.jPicker.Container:last").after(Cn):en(document.body).prepend(Cn),Cn.mousedown((function(){en(document.body).children("div.jPicker.Container").css({zIndex:10}),Cn.css({zIndex:20})})),Cn.css({left:"left"===rn.position.x?sn.offset().left-530-("center"===rn.position.y?25:0)+"px":"center"===rn.position.x?sn.offset().left-260+"px":"right"===rn.position.x?sn.offset().left-10+("center"===rn.position.y?25:0)+"px":"screenCenter"===rn.position.x?(en(document).width()>>1)-260+"px":sn.offset().left+Number.parseInt(rn.position.x)+"px",position:"absolute",top:"top"===rn.position.y?sn.offset().top-312+"px":"center"===rn.position.y?sn.offset().top-156+"px":"bottom"===rn.position.y?sn.offset().top+25+"px":sn.offset().top+Number.parseInt(rn.position.y)+"px"})):(Cn=en(hn)).html(un);var pn=Cn.find("tbody:first");kn=pn.find("div.Map:first"),Bn=pn.find("div.Bar:first");var An=kn.find("span"),_n=Bn.find("span");En=An.filter(".Map1:first"),Pn=An.filter(".Map2:first"),Ln=An.filter(".Map3:first"),Tn=_n.filter(".Map1:first"),Nn=_n.filter(".Map2:first"),In=_n.filter(".Map3:first"),On=_n.filter(".Map4:first"),Fn=_n.filter(".Map5:first"),Un=_n.filter(".Map6:first"),(Mn=new tn(kn,{map:{width:mn.colorMap.width,height:mn.colorMap.height},arrow:{image:mn.clientPath+mn.colorMap.arrow.file,width:mn.colorMap.arrow.width,height:mn.colorMap.arrow.height}})).bind(mapValueChanged),(Rn=new tn(Bn,{map:{width:mn.colorBar.width,height:mn.colorBar.height},arrow:{image:mn.clientPath+mn.colorBar.arrow.file,width:mn.colorBar.arrow.width,height:mn.colorBar.arrow.height}})).bind(colorBarValueChanged),Dn=new nn(pn,yn.active,rn.expandable&&rn.bindToInput?rn.input:null,rn.alphaPrecision);var wn=xf(cn)?null:cn.hex,xn=pn.find(".Preview"),Sn=pn.find(".Button");if(jn=xn.find(".Active:first").css({backgroundColor:wn&&"#"+wn||"transparent"}),Qn=xn.find(".Current:first").css({backgroundColor:wn&&"#"+wn||"transparent"}).bind("click",currentClicked),setAlpha.call(hn,Qn,toFixedNumeric(100*yn.current.val("a")/255,4)),Hn=Sn.find(".Ok:first").bind("click",okClicked),Gn=Sn.find(".Cancel:first").bind("click",cancelClicked),Vn=Sn.find(".Grid:first"),setTimeout((function(){setImg.call(hn,En,mn.clientPath+"Maps.png"),setImg.call(hn,Pn,mn.clientPath+"Maps.png"),setImg.call(hn,Ln,mn.clientPath+"map-opacity.png"),setImg.call(hn,Tn,mn.clientPath+"Bars.png"),setImg.call(hn,Nn,mn.clientPath+"Bars.png"),setImg.call(hn,In,mn.clientPath+"Bars.png"),setImg.call(hn,On,mn.clientPath+"Bars.png"),setImg.call(hn,Fn,mn.clientPath+"bar-opacity.png"),setImg.call(hn,Un,mn.clientPath+"AlphaBar.png"),setImg.call(hn,xn.find("div:first"),mn.clientPath+"preview-opacity.png")}),0),pn.find("td.Radio input").bind("click",radioClicked),yn.quickList&&yn.quickList.length>0){for(var Wn="",Xn=0;Xn<yn.quickList.length;Xn++){"string"===_typeof(yn.quickList[Xn]).toString().toLowerCase()&&(yn.quickList[Xn]=new an({hex:yn.quickList[Xn]}));var Yn=yn.quickList[Xn].val("a"),Jn=yn.quickList[Xn].val("ahex");!rn.alphaSupport&&Jn&&(Jn=Jn.substring(0,6)+"ff");var Zn=yn.quickList[Xn].val("hex");Jn||(Jn="00000000"),Wn+='<span class="QuickColor" title="#'+Jn+'" style="background-color:'+(Zn&&"#"+Zn||"")+";"+(Zn?"":"background-image:url("+mn.clientPath+"NoColor.png)")+(rn.alphaSupport&&Yn&&Yn<255?";opacity:"+toFixedNumeric(Yn/255,4)+";filter:Alpha(opacity="+toFixedNumeric(Yn/2.55,4)+")":"")+'"> </span>'}setImg.call(hn,Vn,mn.clientPath+"bar-opacity.png"),Vn.html(Wn),Vn.find(".QuickColor").click(quickPickClicked)}setColorMode.call(hn,gn.color.mode),yn.active.bind(activeColorChanged),"function"==typeof dn&&yn.active.bind(dn),yn.current.bind(currentColorChanged),rn.expandable?(hn.icon=sn.parents(".Icon:first"),zn=hn.icon.find(".Color:first").css({backgroundColor:wn&&"#"+wn||"transparent"}),Kn=hn.icon.find(".Alpha:first"),setImg.call(hn,Kn,mn.clientPath+"bar-opacity.png"),setAlpha.call(hn,Kn,toFixedNumeric(100*(255-(xf(cn)?0:cn.a))/255,4)),qn=hn.icon.find(".Image:first").css({backgroundImage:"url('"+mn.clientPath+mn.picker.file+"')"}).bind("click",iconImageClicked),rn.bindToInput&&rn.updateInputColor&&rn.input.css({backgroundColor:wn&&"#"+wn||"transparent",color:xf(cn)||cn.v>75?"#000000":"#ffffff"}),$n=pn.find(".Move:first").bind("mousedown",moveBarMouseDown),yn.active.bind(expandableColorChanged)):show.call(hn)}var mn=gn.images,vn=gn.localization,yn={active:"string"===_typeof(gn.color.active).toString().toLowerCase()?new an({ahex:!gn.window.alphaSupport&&gn.color.active?gn.color.active.substring(0,6)+"ff":gn.color.active}):new an({ahex:!gn.window.alphaSupport&&gn.color.active.val("ahex")?gn.color.active.val("ahex").substring(0,6)+"ff":gn.color.active.val("ahex")}),current:"string"===_typeof(gn.color.active).toString().toLowerCase()?new an({ahex:!gn.window.alphaSupport&&gn.color.active?gn.color.active.substring(0,6)+"ff":gn.color.active}):new an({ahex:!gn.window.alphaSupport&&gn.color.active.val("ahex")?gn.color.active.val("ahex").substring(0,6)+"ff":gn.color.active.val("ahex")}),quickList:gn.color.quickList};"function"!=typeof un&&(un=null),"function"!=typeof dn&&(dn=null),"function"!=typeof pn&&(pn=null);var _n=null,wn=null,xn=null,Sn=null,Cn=null,kn=null,Bn=null,En=null,Pn=null,Ln=null,Tn=null,Nn=null,In=null,On=null,Fn=null,Un=null,Mn=null,Rn=null,Dn=null,jn=null,Qn=null,Hn=null,Gn=null,Vn=null,zn=null,Kn=null,qn=null,$n=null;en.extend(!0,hn,{commitCallback:un,liveCallback:dn,cancelCallback:pn,color:yn,show:show,hide:hide,destroy:function destroy(){Cn.find("td.Radio input").unbind("click",radioClicked),Qn.unbind("click",currentClicked),Gn.unbind("click",cancelClicked),Hn.unbind("click",okClicked),gn.window.expandable&&(qn.unbind("click",iconImageClicked),$n.unbind("mousedown",moveBarMouseDown),hn.icon=null),Cn.find(".QuickColor").unbind("click",quickPickClicked),kn=null,Bn=null,En=null,Pn=null,Ln=null,Tn=null,Nn=null,In=null,On=null,Fn=null,Un=null,Mn.destroy(),Mn=null,Rn.destroy(),Rn=null,Dn.destroy(),Dn=null,jn=null,Qn=null,Hn=null,Gn=null,Vn=null,un=null,pn=null,dn=null,Cn.html("");for(var en=0;en<sn.length;en++)sn[en]===hn&&(sn.splice(en,1),en--)}}),sn.push(hn),setTimeout((function(){initialize.call(hn)}),0)}))},en.fn.jPicker.defaults={window:{title:null,effects:{type:"slide",speed:{show:"slow",hide:"fast"}},position:{x:"screenCenter",y:"top"},expandable:!1,liveUpdate:!0,alphaSupport:!1,alphaPrecision:0,updateInputColor:!0},color:{mode:"h",active:new an({ahex:"#ffcc00ff"}),quickList:[new an({h:360,s:33,v:100}),new an({h:360,s:66,v:100}),new an({h:360,s:100,v:100}),new an({h:360,s:100,v:75}),new an({h:360,s:100,v:50}),new an({h:180,s:0,v:100}),new an({h:30,s:33,v:100}),new an({h:30,s:66,v:100}),new an({h:30,s:100,v:100}),new an({h:30,s:100,v:75}),new an({h:30,s:100,v:50}),new an({h:180,s:0,v:90}),new an({h:60,s:33,v:100}),new an({h:60,s:66,v:100}),new an({h:60,s:100,v:100}),new an({h:60,s:100,v:75}),new an({h:60,s:100,v:50}),new an({h:180,s:0,v:80}),new an({h:90,s:33,v:100}),new an({h:90,s:66,v:100}),new an({h:90,s:100,v:100}),new an({h:90,s:100,v:75}),new an({h:90,s:100,v:50}),new an({h:180,s:0,v:70}),new an({h:120,s:33,v:100}),new an({h:120,s:66,v:100}),new an({h:120,s:100,v:100}),new an({h:120,s:100,v:75}),new an({h:120,s:100,v:50}),new an({h:180,s:0,v:60}),new an({h:150,s:33,v:100}),new an({h:150,s:66,v:100}),new an({h:150,s:100,v:100}),new an({h:150,s:100,v:75}),new an({h:150,s:100,v:50}),new an({h:180,s:0,v:50}),new an({h:180,s:33,v:100}),new an({h:180,s:66,v:100}),new an({h:180,s:100,v:100}),new an({h:180,s:100,v:75}),new an({h:180,s:100,v:50}),new an({h:180,s:0,v:40}),new an({h:210,s:33,v:100}),new an({h:210,s:66,v:100}),new an({h:210,s:100,v:100}),new an({h:210,s:100,v:75}),new an({h:210,s:100,v:50}),new an({h:180,s:0,v:30}),new an({h:240,s:33,v:100}),new an({h:240,s:66,v:100}),new an({h:240,s:100,v:100}),new an({h:240,s:100,v:75}),new an({h:240,s:100,v:50}),new an({h:180,s:0,v:20}),new an({h:270,s:33,v:100}),new an({h:270,s:66,v:100}),new an({h:270,s:100,v:100}),new an({h:270,s:100,v:75}),new an({h:270,s:100,v:50}),new an({h:180,s:0,v:10}),new an({h:300,s:33,v:100}),new an({h:300,s:66,v:100}),new an({h:300,s:100,v:100}),new an({h:300,s:100,v:75}),new an({h:300,s:100,v:50}),new an({h:180,s:0,v:0}),new an({h:330,s:33,v:100}),new an({h:330,s:66,v:100}),new an({h:330,s:100,v:100}),new an({h:330,s:100,v:75}),new an({h:330,s:100,v:50}),new an]},images:{clientPath:"/jPicker/images/",colorMap:{width:256,height:256,arrow:{file:"mappoint.gif",width:15,height:15}},colorBar:{width:20,height:256,arrow:{file:"rangearrows.gif",width:20,height:7}},picker:{file:"picker.gif",width:25,height:24}},localization:{text:{title:"Drag Markers To Pick A Color",newColor:"new",currentColor:"current",ok:"OK",cancel:"Cancel"},tooltips:{colors:{newColor:"New Color - Press “OK” To Commit",currentColor:"Click To Revert To Original Color"},buttons:{ok:"Commit To This Color Selection",cancel:"Cancel And Revert To Original Color"},hue:{radio:"Set To “Hue” Color Mode",textbox:"Enter A “Hue” Value (0-360°)"},saturation:{radio:"Set To “Saturation” Color Mode",textbox:"Enter A “Saturation” Value (0-100%)"},value:{radio:"Set To “Value” Color Mode",textbox:"Enter A “Value” Value (0-100%)"},red:{radio:"Set To “Red” Color Mode",textbox:"Enter A “Red” Value (0-255)"},green:{radio:"Set To “Green” Color Mode",textbox:"Enter A “Green” Value (0-255)"},blue:{radio:"Set To “Blue” Color Mode",textbox:"Enter A “Blue” Value (0-255)"},alpha:{radio:"Set To “Alpha” Color Mode",textbox:"Enter A “Alpha” Value (0-100)"},hex:{textbox:"Enter A “Hex” Color Value (#000000-#ffffff)",alpha:"Enter A “Alpha” Value (#00-#ff)"}}}},en}].reduce((function(en,tn){return tn(en)}),jQuery),Nf=document.createElement("template");Nf.innerHTML='\n <style>\n @import "./components/jgraduate/css/jGraduate.css";\n @import "./components/jgraduate/css/jPicker.css";\n #logo {\n height: 18px;\n width: 18px;\n }\n #block {\n height: 13px;\n width: 14px;\n float: right;\n background-color: darkgrey;\n }\n #picker {\n background: var(--input-color);\n height: 19px;\n line-height: 19px;\n border-radius: 3px;\n width: 52px;\n display: flex;\n align-items: center;\n margin-right: 4px;\n margin-top: 1px;\n justify-content: space-evenly;\n }\n #color_picker {\n z-index: 1000;\n top: -350px;\n }\n </style>\n <div id="picker">\n <img src="./images/logo.svg" alt="icon" id="logo">\n <label for="color" title="Change xxx color" id="label"></label>\n <div id="block">\n </div>\n </div>\n \x3c!-- hidden div --\x3e\n <div id="color_picker"></div>\n';var If=function(en){_inherits(SeColorPicker,en);var tn=_createSuper(SeColorPicker);function SeColorPicker(){var en;return _classCallCheck(this,SeColorPicker),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(Nf.content.cloneNode(!0)),en.$logo=en._shadowRoot.getElementById("logo"),en.$label=en._shadowRoot.getElementById("label"),en.$block=en._shadowRoot.getElementById("block"),en.paintBox=null,en.$picker=en._shadowRoot.getElementById("picker"),en.$color_picker=en._shadowRoot.getElementById("color_picker"),en}return _createClass(SeColorPicker,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"src":this.$logo.setAttribute("src",nn);break;case"label":this.setAttribute("title",nn);break;case"type":this.$label.setAttribute("title","Pick a ".concat(nn," Paint and Opacity"));break;default:console.error("unknown attribute: ".concat(en))}}},{key:"update",value:function update(en,tn,nn){var rn=this.paintBox.update(en,tn);if(rn&&nn){var an=new CustomEvent("change",{detail:{paint:rn}});this.dispatchEvent(an)}}},{key:"setPaint",value:function setPaint(en){this.paintBox.setPaint(en)}},{key:"connectedCallback",value:function connectedCallback(){var en=this;this.paintBox=new Lf(this.$block,this.type);var tn=this.paintBox.paint;Tf(this.$picker).click((function(){Tf(en.$color_picker).draggable({cancel:".jGraduate_tabs, .jGraduate_colPick, .jGraduate_gradPick, .jPicker",containment:"window"}).jGraduate({images:{clientPath:"./components/jgraduate/images/"},paint:tn,window:{pickerTitle:en.label},newstop:"inverse"},(function(nn){tn=new Tf.jGraduate.Paint(nn),en.setPaint(tn);var rn=new CustomEvent("change",{detail:{paint:tn}});en.dispatchEvent(rn),Tf("#color_picker").hide()}),(function(){Tf("#color_picker").hide()}))}))}},{key:"label",get:function get(){return this.$label.getAttribute("title")},set:function set(en){this.setAttribute("label",en)}},{key:"type",get:function get(){return this.getAttribute("type")},set:function set(en){this.setAttribute("type",en)}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(en){this.setAttribute("src",en)}}],[{key:"observedAttributes",get:function get(){return["label","src","type"]}}]),SeColorPicker}(_wrapNativeSuper(HTMLElement));customElements.define("se-colorpicker",If);var Of=Symbol("previousBodyStyleOverflow"),Ff=Symbol("previousDocumentMarginRight");function _templateObject$z(){var en=_taggedTemplateLiteral(['\n <style>\n #focusCapture {\n display: flex;\n height: 100%;\n overflow: hidden;\n width: 100%;\n }\n\n #focusCaptureContainer {\n align-items: center;\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n position: relative;\n }\n </style>\n <div id="focusCapture">\n <div id="focusCaptureContainer"></div>\n <div id="focusCatcher" tabindex="0"></div>\n </div>\n ']);return _templateObject$z=function _templateObject(){return en},en}var Uf=Symbol("wrap"),Mf=Symbol("wrappingFocus");function FocusCaptureMixin(en){return function(en){_inherits(FocusCapture,en);var tn=_createSuper(FocusCapture);function FocusCapture(){return _classCallCheck(this,FocusCapture),tn.apply(this,arguments)}return _createClass(FocusCapture,[{key:cp,value:function value(en){var tn=firstFocusableElement(this[wp]);if(tn){var nn=document.activeElement&&(document.activeElement===tn||document.activeElement.contains(tn)),rn=this[wp].activeElement,an=rn&&(rn===tn||deepContains(rn,tn));(nn||an)&&"Tab"===en.key&&en.shiftKey&&(this[Mf]=!0,this[ap].focusCatcher.focus(),this[Mf]=!1)}return _get(_getPrototypeOf(FocusCapture.prototype),cp,this)&&_get(_getPrototypeOf(FocusCapture.prototype),cp,this).call(this,en)||!1}},{key:gp,value:function value(en){var tn=this;_get(_getPrototypeOf(FocusCapture.prototype),gp,this)&&_get(_getPrototypeOf(FocusCapture.prototype),gp,this).call(this,en),this[zd]&&this[ap].focusCatcher.addEventListener("focus",(function(){if(!tn[Mf]){var en=firstFocusableElement(tn[wp]);en&&en.focus()}}))}},{key:Uf,value:function value(en){var tn=Wp(_templateObject$z()),nn=tn.getElementById("focusCaptureContainer");nn&&(en.replaceWith(tn),nn.append(en))}}]),FocusCapture}(en)}FocusCaptureMixin.wrap=Uf;var Rf=function(en){_inherits(ModalBackdrop,en);var tn=_createSuper(ModalBackdrop);function ModalBackdrop(){var en;return _classCallCheck(this,ModalBackdrop),en=tn.call(this),"PointerEvent"in window||en.addEventListener("touchmove",(function(en){1===en.touches.length&&en.preventDefault()})),en}return ModalBackdrop}(jh);function _templateObject$A(){var en=_taggedTemplateLiteral(["\n <style>\n :host {\n height: 100%;\n left: 0;\n pointer-events: initial;\n top: 0;\n width: 100%;\n }\n </style>\n "]);return _templateObject$A=function _templateObject(){return en},en}var Df=function(en){_inherits(Dialog,en);var tn=_createSuper(Dialog);function Dialog(){return _classCallCheck(this,Dialog),tn.apply(this,arguments)}return _createClass(Dialog,[{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(Dialog.prototype),Qd,this),{backdropPartType:Rf,tabIndex:-1})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(Dialog.prototype),Rp,this),tn=en.content.querySelector("#frame");return this[FocusCaptureMixin.wrap](tn),en.content.append(Wp(_templateObject$A())),en}}]),Dialog}(function DialogModalityMixin(en){return function(en){_inherits(DialogModality,en);var tn=_createSuper(DialogModality);function DialogModality(){return _classCallCheck(this,DialogModality),tn.apply(this,arguments)}return _createClass(DialogModality,[{key:cp,value:function value(en){var tn=!1;switch(en.key){case"Escape":this.close({canceled:"Escape"}),tn=!0}return tn||_get(_getPrototypeOf(DialogModality.prototype),cp,this)&&_get(_getPrototypeOf(DialogModality.prototype),cp,this).call(this,en)||!1}},{key:gp,value:function value(en){if(_get(_getPrototypeOf(DialogModality.prototype),gp,this)&&_get(_getPrototypeOf(DialogModality.prototype),gp,this).call(this,en),en.opened)if(this[Cp].opened&&document.documentElement){var tn=document.documentElement.clientWidth,nn=window.innerWidth-tn;this[Of]=document.body.style.overflow,this[Ff]=nn>0?document.documentElement.style.marginRight:null,document.body.style.overflow="hidden",nn>0&&(document.documentElement.style.marginRight="".concat(nn,"px"))}else null!=this[Of]&&(document.body.style.overflow=this[Of],this[Of]=null),null!=this[Ff]&&(document.documentElement.style.marginRight=this[Ff],this[Ff]=null);if(en.role){var rn=this[Cp].role;this.setAttribute("role",rn)}}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(DialogModality.prototype),Qd,this)||{},{role:"dialog"})}},{key:"role",get:function get(){return _get(_getPrototypeOf(DialogModality.prototype),"role",this)},set:function set(en){_set(_getPrototypeOf(DialogModality.prototype),"role",en,this,!0),this[vp]||this[_p]({role:en})}}]),DialogModality}(en)}(FocusCaptureMixin(KeyboardMixin(Kh))));function _templateObject$B(){var en=_taggedTemplateLiteral(["\n <style>\n :host {\n background: rgba(0, 0, 0, 0.2);\n }\n </style>\n "]);return _templateObject$B=function _templateObject(){return en},en}var jf=function(en){_inherits(PlainModalBackdrop,en);var tn=_createSuper(PlainModalBackdrop);function PlainModalBackdrop(){return _classCallCheck(this,PlainModalBackdrop),tn.apply(this,arguments)}return _createClass(PlainModalBackdrop,[{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainModalBackdrop.prototype),Rp,this);return en.content.append(Wp(_templateObject$B())),en}}]),PlainModalBackdrop}(Rf);function PlainModalOverlayMixin(en){return function(en){_inherits(PlainModalOverlay,en);var tn=_createSuper(PlainModalOverlay);function PlainModalOverlay(){return _classCallCheck(this,PlainModalOverlay),tn.apply(this,arguments)}return _createClass(PlainModalOverlay,[{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainModalOverlay.prototype),Qd,this)||{},{backdropPartType:jf,framePartType:fg})}}]),PlainModalOverlay}(en)}var Qf=function(en){_inherits(ElixDialog,en);var tn=_createSuper(ElixDialog);function ElixDialog(){return _classCallCheck(this,ElixDialog),tn.apply(this,arguments)}return ElixDialog}(function(en){_inherits(PlainDialog,en);var tn=_createSuper(PlainDialog);function PlainDialog(){return _classCallCheck(this,PlainDialog),tn.apply(this,arguments)}return PlainDialog}(PlainModalOverlayMixin(Df)));customElements.define("elix-dialog",Qf);var Hf=vi.some,Gf=arrayMethodIsStrict("some"),Vf=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!Gf||!Vf},{some:function some(en){return Hf(this,en,arguments.length>1?arguments[1]:void 0)}});
|
||
/**
|
||
* Namespaces or tools therefor.
|
||
* @module namespaces
|
||
* @license MIT
|
||
*/
|
||
var zf,Kf={HTML:"http://www.w3.org/1999/xhtml",MATH:"http://www.w3.org/1998/Math/MathML",SE:"http://svg-edit.googlecode.com",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"},qf=function getReverseNS(){var en={};return Object.entries(Kf).forEach((function(tn){var nn=_slicedToArray(tn,2),rn=nn[0],an=nn[1];en[an]=rn.toLowerCase()})),en},$f=["x","x1","cx","rx","width"],Wf=["y","y1","cy","ry","height"],Xf=["r","radius"].concat($f,Wf),Yf={},Jf=function getTypeMap(){return Yf},Zf=function shortFloat(en){var tn=zf.getRoundDigits();return isNaN(en)?Array.isArray(en)?shortFloat(en[0])+","+shortFloat(en[1]):Number.parseFloat(en).toFixed(tn)-0:Number(Number(en).toFixed(tn))},eA=function convertUnit(en,tn){return tn=tn||zf.getBaseUnit(),Zf(en/Yf[tn])},tA=function setUnitAttr(en,tn,nn){en.setAttribute(tn,nn)},nA=function convertToNum(en,tn){if(!isNaN(tn))return tn-0;if("%"===tn.substr(-1)){var nn=tn.substr(0,tn.length-1)/100,rn=zf.getWidth(),an=zf.getHeight();return $f.includes(en)?nn*rn:Wf.includes(en)?nn*an:nn*Math.sqrt(rn*rn+an*an)/Math.sqrt(2)}var sn=tn.substr(-2);return tn.substr(0,tn.length-2)*Yf[sn]},rA=function isValidUnit(en,tn,nn){if(Xf.includes(en))return!isNaN(tn)||(tn=tn.toLowerCase(),Object.keys(Yf).some((function(en){return new RegExp("^-?[\\d\\.]+"+en+"$").test(tn)})));if("id"===en){var rn=!1;try{var an=zf.getElement(tn);rn=!an||an===nn}catch(en){}return rn}return!0},iA=document.createElement("template");iA.innerHTML='\n <style>\n :not(:defined) {\n display: none;\n }\n\n /* Force the scroll bar to appear so we see it hide when overlay opens. */\n body::-webkit-scrollbar {\n background: lightgray;\n }\n body::-webkit-scrollbar-thumb {\n background: darkgray;\n }\n #svg_docprops #svg_docprops_container {\n padding: 10px;\n background-color: #B0B0B0;\n border: 1px outset #777;\n opacity: 1.0;\n font-family: Verdana, Helvetica, sans-serif;\n font-size: .8em;\n z-index: 20001;\n }\n \n #svg_docprops .error {\n border: 1px solid red;\n padding: 3px;\n }\n \n #svg_docprops #resolution {\n max-width: 14em;\n }\n \n #tool_docprops_back {\n margin-left: 1em;\n overflow: auto;\n }\n \n #svg_docprops_container #svg_docprops_docprops {\n float: left;\n width: 221px;\n margin: 5px .7em;\n overflow: hidden;\n }\n \n #svg_docprops legend {\n max-width: 195px;\n }\n \n #svg_docprops_docprops > legend {\n font-weight: bold;\n font-size: 1.1em;\n }\n \n #svg_docprops_container fieldset {\n padding: 5px;\n margin: 5px;\n border: 1px solid #DDD;\n }\n \n #svg_docprops_container label {\n display: block;\n margin: .5em;\n }\n </style>\n <elix-dialog id="svg_docprops" aria-label="Sample dialog" closed>\n <div id="svg_docprops_container">\n <div id="tool_docprops_back" class="toolbar_button">\n <button id="tool_docprops_save">OK</button>\n <button id="tool_docprops_cancel">Cancel</button>\n </div>\n <fieldset id="svg_docprops_docprops">\n <legend id="svginfo_image_props">Image Properties</legend>\n <label>\n <span id="svginfo_title">Title:</span>\n <input type="text" id="canvas_title" />\n </label>\n <fieldset id="change_resolution">\n <legend id="svginfo_dim">Canvas Dimensions</legend>\n <label>\n <span id="svginfo_width">width:</span>\n <input type="text" id="canvas_width" size="6" />\n </label>\n <label>\n <span id="svginfo_height">height:</span>\n <input type="text" id="canvas_height" size="6" />\n </label>\n <label>\n <select id="resolution">\n <option id="selectedPredefined" selected="selected">Select predefined:</option>\n <option>640x480</option>\n <option>800x600</option>\n <option>1024x768</option>\n <option>1280x960</option>\n <option>1600x1200</option>\n <option id="fitToContent" value="content">Fit to Content</option>\n </select>\n </label>\n </fieldset>\n <fieldset id="image_save_opts">\n <legend id="includedImages">Included Images</legend>\n <label>\n <input type="radio" id="image_embed" name="image_opt" value="embed" checked="checked" />\n <span id="image_opt_embed">Embed data (local files)</span>\n </label>\n <label>\n <input type="radio" id="image_ref" name="image_opt" value="ref" />\n <span id="image_opt_ref">Use file reference</span>\n </label>\n </fieldset>\n </fieldset>\n </div>\n </elix-dialog>\n \n';var oA=function(en){_inherits(SeImgPropDialog,en);var tn=_createSuper(SeImgPropDialog);function SeImgPropDialog(){var en;return _classCallCheck(this,SeImgPropDialog),(en=tn.call(this)).eventlisten=!1,en._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(iA.content.cloneNode(!0)),en.$saveBtn=en._shadowRoot.querySelector("#tool_docprops_save"),en.$cancelBtn=en._shadowRoot.querySelector("#tool_docprops_cancel"),en.$resolution=en._shadowRoot.querySelector("#resolution"),en.$canvasTitle=en._shadowRoot.querySelector("#canvas_title"),en.$canvasWidth=en._shadowRoot.querySelector("#canvas_width"),en.$canvasHeight=en._shadowRoot.querySelector("#canvas_height"),en.$imageOptEmbed=en._shadowRoot.querySelector("#image_embed"),en.$imageOptRef=en._shadowRoot.querySelector("#image_ref"),en.$dialog=en._shadowRoot.querySelector("#svg_docprops"),en}return _createClass(SeImgPropDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"title":this.$canvasTitle.value=nn;break;case"width":"fit"===nn?(this.$canvasWidth.removeAttribute("disabled"),this.$canvasWidth.value=100,this.$canvasHeight.removeAttribute("disabled"),this.$canvasHeight.value=100):this.$canvasWidth.value=nn;break;case"height":"fit"===nn?(this.$canvasWidth.removeAttribute("disabled"),this.$canvasWidth.value=100,this.$canvasHeight.removeAttribute("disabled"),this.$canvasHeight.value=100):this.$canvasHeight.value=nn;break;case"dialog":this.eventlisten&&("open"===nn?this.$dialog.open():this.$dialog.close());break;case"save":"ref"===nn?(this.$imageOptEmbed.setAttribute("checked",!1),this.$imageOptRef.setAttribute("checked",!0)):(this.$imageOptEmbed.setAttribute("checked",!0),this.$imageOptRef.setAttribute("checked",!1));break;case"embed":if(nn.includes("one")){var rn=nn.split("|");rn.length>1&&(this._shadowRoot.querySelector("#image_opt_embed").setAttribute("title",rn[1]),this._shadowRoot.querySelector("#image_opt_embed").setAttribute("disabled","disabled"),this._shadowRoot.querySelector("#image_opt_embed").style.color="#666")}break;default:_get(_getPrototypeOf(SeImgPropDialog.prototype),"attributeChangedCallback",this).call(this,en,tn,nn)}}},{key:"connectedCallback",value:function connectedCallback(){var en=this,tn=function onCancelHandler(tn){var nn=new CustomEvent("change",{detail:{dialog:"closed"}});en.$canvasWidth.removeAttribute("disabled"),en.$canvasHeight.removeAttribute("disabled"),en.$resolution.selectedIndex=0,en.dispatchEvent(nn)};this.$resolution.addEventListener("change",(function onChangeHandler(tn){if(tn.target.selectedIndex)if("content"===tn.target.value)en.$canvasWidth.setAttribute("disabled","disabled"),en.$canvasWidth.value="fit",en.$canvasHeight.setAttribute("disabled","disabled"),en.$canvasHeight.value="fit";else{var nn=tn.target.value.split("x");en.$canvasWidth.value=nn[0],en.$canvasWidth.removeAttribute("disabled"),en.$canvasHeight.value=nn[1],en.$canvasHeight.removeAttribute("disabled")}else"fit"===en.$canvasWidth.getAttribute("value")&&(en.$canvasWidth.removeAttribute("disabled"),en.$canvasWidth.value=100,en.$canvasHeight.removeAttribute("disabled"),en.$canvasHeight.value=100)})),this.$saveBtn.addEventListener("click",(function onSaveHandler(tn){var nn="",rn=en.$canvasWidth.value,an=en.$canvasHeight.value;"fit"===rn||rA("width",rn)?en.$canvasWidth.parentElement.classList.remove("error"):en.$canvasWidth.parentElement.classList.add("error"),"fit"===an||rA("height",rn)?en.$canvasHeight.parentElement.classList.remove("error"):en.$canvasHeight.parentElement.classList.add("error"),"true"===en.$imageOptEmbed.getAttribute("checked")&&(nn="embed"),"true"===en.$imageOptRef.getAttribute("checked")&&(nn="ref");var sn=new CustomEvent("change",{detail:{title:en.$canvasTitle.value,w:en.$canvasWidth.value,h:en.$canvasHeight.value,save:nn,dialog:"close"}});en.$canvasWidth.removeAttribute("disabled"),en.$canvasHeight.removeAttribute("disabled"),en.$resolution.selectedIndex=0,en.dispatchEvent(sn)})),this.$cancelBtn.addEventListener("click",tn),this.$dialog.addEventListener("close",tn),this.eventlisten=!0}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(en){this.setAttribute("title",en)}},{key:"width",get:function get(){return this.getAttribute("width")},set:function set(en){this.setAttribute("width",en)}},{key:"height",get:function get(){return this.getAttribute("height")},set:function set(en){this.setAttribute("height",en)}},{key:"save",get:function get(){return this.getAttribute("save")},set:function set(en){this.setAttribute("save",en)}},{key:"dialog",get:function get(){return this.getAttribute("dialog")},set:function set(en){this.setAttribute("dialog",en)}},{key:"embed",get:function get(){return this.getAttribute("embed")},set:function set(en){this.setAttribute("embed",en)}}],[{key:"observedAttributes",get:function get(){return["title","width","height","save","dialog","embed"]}}]),SeImgPropDialog}(_wrapNativeSuper(HTMLElement));customElements.define("se-img-prop-dialog",oA);var aA=document.createElement("template");aA.innerHTML='\n <style>\n :not(:defined) {\n display: none;\n }\n\n /* Force the scroll bar to appear so we see it hide when overlay opens. */\n body::-webkit-scrollbar {\n background: lightgray;\n }\n body::-webkit-scrollbar-thumb {\n background: darkgray;\n }\n .toolbar_button button {\n border:1px solid #dedede;\n line-height:130%;\n float: left;\n background: #E8E8E8 none;\n padding:5px 10px 5px 7px; /* Firefox */\n line-height:17px; /* Safari */\n margin: 5px 20px 0 0;\n border: 1px #808080 solid;\n border-top-color: #FFF;\n border-left-color: #FFF;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n cursor: pointer;\n }\n \n .toolbar_button button:hover {\n border: 1px #e0a874 solid;\n border-top-color: #fcd9ba;\n border-left-color: #fcd9ba;\n background-color: #FFC;\n }\n .toolbar_button button:active {\n background-color: #F4E284;\n border-left: 1px solid #663300;\n border-top: 1px solid #663300;\n }\n \n .toolbar_button button .svg_icon {\n margin: 0 3px -3px 0 !important;\n padding: 0;\n border: none;\n width: 16px;\n height: 16px;\n }\n .color_block {\n top: 0;\n left: 0;\n } \n .color_block svg {\n display: block;\n }\n #bg_blocks {\n overflow: auto;\n margin-left: 30px;\n } \n #bg_blocks .color_block {\n position: static;\n }\n #svginfo_bg_note {\n font-size: .9em;\n font-style: italic;\n color: #444;\n }\n #svg_prefs #svg_prefs_container {\n padding: 10px;\n background-color: #B0B0B0;\n border: 1px outset #777;\n opacity: 1.0;\n font-family: Verdana, Helvetica, sans-serif;\n font-size: .8em;\n z-index: 20001;\n }\n \n #tool_prefs_back {\n margin-left: 1em;\n overflow: auto;\n }\n \n #svg_prefs #svg_docprops_prefs {\n float: left;\n width: 221px;\n margin: 5px .7em;\n overflow: hidden;\n }\n \n #svg_prefs_container fieldset + fieldset {\n float: right;\n }\n \n #svg_prefs legend {\n max-width: 195px;\n }\n \n #svg_prefs_container > fieldset > legend {\n font-weight: bold;\n font-size: 1.1em;\n }\n \n #svg_prefs fieldset {\n padding: 5px;\n margin: 5px;\n border: 1px solid #DDD;\n }\n \n #svg_prefs_container label {\n display: block;\n margin: .5em;\n }\n #svg_prefs_container div.color_block {\n float: left;\n margin: 2px;\n padding: 20px;\n border: 1px solid #6f6f6f;\n }\n \n #change_background div.cur_background {\n border: 2px solid blue;\n padding: 19px;\n }\n #canvas_bg_url {\n display: block;\n width: 96%;\n }\n #svg_prefs button {\n margin-top: 0;\n margin-bottom: 5px;\n }\n </style>\n <elix-dialog id="svg_prefs" aria-label="Editor Preferences" closed>\n <div id="svg_prefs_container">\n <div id="tool_prefs_back" class="toolbar_button">\n <button id="tool_prefs_save">\n <img class="svg_icon" src="./images/ok.svg" alt="icon" width="16" height="16" />\n OK\n </button>\n <button id="tool_prefs_cancel">\n <img class="svg_icon" src="./images/cancel.svg" alt="icon" width="16" height="16" />\n Cancel\n </button>\n </div>\n <fieldset>\n <legend id="svginfo_editor_prefs">Editor Preferences</legend>\n <label>\n <span id="svginfo_lang">Language:</span>\n \x3c!-- Source: https://en.wikipedia.org/wiki/Language_names --\x3e\n <select id="lang_select">\n <option id="lang_ar" value="ar">العربية</option>\n <option id="lang_cs" value="cs">Čeština</option>\n <option id="lang_de" value="de">Deutsch</option>\n <option id="lang_en" value="en" selected="selected">English</option>\n <option id="lang_es" value="es">Español</option>\n <option id="lang_fa" value="fa">فارسی</option>\n <option id="lang_fr" value="fr">Français</option>\n <option id="lang_fy" value="fy">Frysk</option>\n <option id="lang_hi" value="hi">हिन्दी, हिंदी</option>\n <option id="lang_it" value="it">Italiano</option>\n <option id="lang_ja" value="ja">日本語</option>\n <option id="lang_nl" value="nl">Nederlands</option>\n <option id="lang_pl" value="pl">Polski</option>\n <option id="lang_pt-BR" value="pt-BR">Português (BR)</option>\n <option id="lang_ro" value="ro">Română</option>\n <option id="lang_ru" value="ru">Русский</option>\n <option id="lang_sk" value="sk">Slovenčina</option>\n <option id="lang_sl" value="sl">Slovenščina</option>\n <option id="lang_zh-CN" value="zh-CN">简体中文</option>\n <option id="lang_zh-TW" value="zh-TW">繁體中文</option>\n </select>\n </label>\n <label>\n <span id="svginfo_icons">Icon size:</span>\n <select id="iconsize">\n <option id="icon_small" value="s">Small</option>\n <option id="icon_medium" value="m" selected="selected">Medium</option>\n <option id="icon_large" value="l">Large</option>\n <option id="icon_xlarge" value="xl">Extra Large</option>\n </select>\n </label>\n <fieldset id="change_background">\n <legend id="svginfo_change_background">Editor Background</legend>\n <div id="bg_blocks"></div>\n <label>\n <span id="svginfo_bg_url">URL:</span>\n <input type="text" id="canvas_bg_url" />\n </label>\n <p id="svginfo_bg_note">Note: Background will not be saved with image.</p>\n </fieldset>\n <fieldset id="change_grid">\n <legend id="svginfo_grid_settings">Grid</legend>\n <label for="svginfo_snap_onoff">\n <span id="svginfo_snap_onoff">Snapping on/off</span>\n <input type="checkbox" value="snapping_on" id="grid_snapping_on" />\n </label>\n <label for="grid_snapping_step">\n <span id="svginfo_snap_step">Snapping Step-Size:</span>\n <input type="text" id="grid_snapping_step" size="3" value="10" />\n </label>\n <label>\n <span id="svginfo_grid_color">Grid color:</span>\n <input type="text" id="grid_color" size="3" value="#000" />\n </label>\n </fieldset>\n <fieldset id="units_rulers">\n <legend id="svginfo_units_rulers">Units & Rulers</legend>\n <label>\n <span id="svginfo_rulers_onoff">Show rulers</span>\n <input id="show_rulers" type="checkbox" value="show_rulers" checked="checked" />\n </label>\n <label>\n <span id="svginfo_unit">Base Unit:</span>\n <select id="base_unit">\n <option value="px">Pixels</option>\n <option value="cm">Centimeters</option>\n <option value="mm">Millimeters</option>\n <option value="in">Inches</option>\n <option value="pt">Points</option>\n <option value="pc">Picas</option>\n <option value="em">Ems</option>\n <option value="ex">Exs</option>\n </select>\n </label>\n </fieldset>\n </fieldset>\n </div>\n </elix-dialog> \n';var sA=function(en){_inherits(SeEditPrefsDialog,en);var tn=_createSuper(SeEditPrefsDialog);function SeEditPrefsDialog(){var en;return _classCallCheck(this,SeEditPrefsDialog),(en=tn.call(this)).colorBlocks=["#FFF","#888","#000","chessboard"],en._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(aA.content.cloneNode(!0)),en.$dialog=en._shadowRoot.querySelector("#svg_prefs"),en.$saveBtn=en._shadowRoot.querySelector("#tool_prefs_save"),en.$cancelBtn=en._shadowRoot.querySelector("#tool_prefs_cancel"),en.$langSelect=en._shadowRoot.querySelector("#lang_select"),en.$iconSize=en._shadowRoot.querySelector("#iconsize"),en.$bgBlocks=en._shadowRoot.querySelector("#bg_blocks"),en.$bgURL=en._shadowRoot.querySelector("#canvas_bg_url"),en.$gridSnappingOn=en._shadowRoot.querySelector("#grid_snapping_on"),en.$gridSnappingStep=en._shadowRoot.querySelector("#grid_snapping_step"),en.$gridColor=en._shadowRoot.querySelector("#grid_color"),en.$showRulers=en._shadowRoot.querySelector("#show_rulers"),en.$baseUnit=en._shadowRoot.querySelector("#base_unit"),en}return _createClass(SeEditPrefsDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn){var rn=this.$bgBlocks.querySelectorAll("div"),an="cur_background";switch(en){case"dialog":"open"===nn?this.$dialog.open():this.$dialog.close();break;case"lang":this.$langSelect.value=nn;break;case"iconsize":this.$iconSize.value=nn;break;case"canvasbg":nn?rn.forEach((function(en){en.dataset.bgColor===nn?en.classList.add(an):en.classList.remove(an)})):rn.length>0&&rn[0].classList.add(an);break;case"bgurl":this.$bgURL.value=nn;break;case"gridsnappingon":"true"===nn?this.$gridSnappingOn.checked=!0:"false"===nn&&(this.$gridSnappingOn.checked=!1);break;case"gridsnappingstep":this.$gridSnappingStep.value=nn;break;case"gridcolor":this.$gridColor.value=nn;break;case"showrulers":"true"===nn?this.$showRulers.checked=!0:"false"===nn&&(this.$showRulers.checked=!1);break;case"baseunit":this.$baseUnit.value=nn;break;default:_get(_getPrototypeOf(SeEditPrefsDialog.prototype),"attributeChangedCallback",this).call(this,en,tn,nn)}}}},{key:"connectedCallback",value:function connectedCallback(){var en=this,tn=function onCancelHandler(tn){var nn=new CustomEvent("change",{detail:{dialog:"closed"}});en.dispatchEvent(nn)},nn=this;this.colorBlocks.forEach((function(en,tn){var rn=document.createElement("div");"chessboard"===en?(rn.dataset.bgColor=en,rn.style.backgroundImage="url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7)",rn.classList.add("color_block")):(rn.dataset.bgColor=en,rn.style.backgroundColor=en,rn.classList.add("color_block")),nn.$bgBlocks.append(rn)}));var rn=this.$bgBlocks.querySelectorAll("div"),an="cur_background";rn.forEach((function(en){en.addEventListener("click",(function(){rn.forEach((function(en){return en.classList.remove(an)})),en.classList.add(an)}))})),this.$saveBtn.addEventListener("click",(function onSaveHandler(tn){var nn=en.$bgBlocks.querySelector(".cur_background").dataset.bgColor||"#FFF",rn=new CustomEvent("change",{detail:{lang:en.$langSelect.value,dialog:"close",iconsize:en.$iconSize.value,bgcolor:nn,bgurl:en.$bgURL.value,gridsnappingon:en.$gridSnappingOn.checked,gridsnappingstep:en.$gridSnappingStep.value,showrulers:en.$showRulers.checked,baseunit:en.$baseUnit.value}});en.dispatchEvent(rn)})),this.$cancelBtn.addEventListener("click",tn),this.$dialog.addEventListener("close",tn)}},{key:"lang",get:function get(){return this.getAttribute("lang")},set:function set(en){this.setAttribute("lang",en)}},{key:"iconsize",get:function get(){return this.getAttribute("iconsize")},set:function set(en){this.setAttribute("iconsize",en)}},{key:"canvasbg",get:function get(){return this.getAttribute("canvasbg")},set:function set(en){this.setAttribute("canvasbg",en)}},{key:"bgurl",get:function get(){return this.getAttribute("bgurl")},set:function set(en){this.setAttribute("bgurl",en)}},{key:"dialog",get:function get(){return this.getAttribute("dialog")},set:function set(en){this.setAttribute("dialog",en)}},{key:"gridsnappingon",get:function get(){return this.getAttribute("gridsnappingon")},set:function set(en){this.setAttribute("gridsnappingon",en)}},{key:"gridsnappingstep",get:function get(){return this.getAttribute("gridsnappingstep")},set:function set(en){this.setAttribute("gridsnappingstep",en)}},{key:"gridcolor",get:function get(){return this.getAttribute("gridcolor")},set:function set(en){this.setAttribute("gridcolor",en)}},{key:"showrulers",get:function get(){return this.getAttribute("showrulers")},set:function set(en){this.setAttribute("showrulers",en)}},{key:"baseunit",get:function get(){return this.getAttribute("baseunit")},set:function set(en){this.setAttribute("baseunit",en)}}],[{key:"observedAttributes",get:function get(){return["dialog","lang","iconsize","canvasbg","bgurl","gridsnappingon","gridsnappingstep","gridcolor","showrulers","baseunit"]}}]),SeEditPrefsDialog}(_wrapNativeSuper(HTMLElement));customElements.define("se-edit-prefs-dialog",sA);var lA=document.createElement("template");lA.innerHTML='\n <style>\n :not(:defined) {\n display: none;\n }\n\n /* Force the scroll bar to appear so we see it hide when overlay opens. */\n body::-webkit-scrollbar {\n background: lightgray;\n }\n body::-webkit-scrollbar-thumb {\n background: darkgray;\n }\n \n #svg_source_editor #svg_source_container {\n background-color: #B0B0B0;\n opacity: 1.0;\n text-align: center;\n border: 1px outset #777;\n z-index: 6;\n }\n \n #save_output_btns {\n display: none;\n text-align: left;\n } \n #save_output_btns p {\n margin: .5em 1.5em;\n display: inline-block;\n }\n #svg_source_editor form {\n width: 100%;\n } \n #svg_source_editor #svg_source_textarea {\n padding: 5px;\n font-size: 12px;\n min-height: 200px;\n width: 95%;\n height: 95%;\n }\n \n #svg_source_editor #tool_source_back {\n text-align: left;\n margin: 5px 10px;\n } \n </style>\n <elix-dialog id="svg_source_editor" aria-label="SVG Source Editor" closed>\n <div id="svg_source_container">\n <div id="tool_source_back" class="toolbar_button">\n <button id="tool_source_save">\n <img class="svg_icon" src="./images/ok.svg" alt="icon" width="16" height="16" />\n Apply Changes\n </button>\n <button id="tool_source_cancel">\n <img class="svg_icon" src="./images/cancel.svg" alt="icon" width="16" height="16" />\n Cancel\n </button>\n </div>\n <div id="save_output_btns">\n <p id="copy_save_note">\n Copy the contents of this box into a text editor,\n then save the file with a .svg extension.</p>\n <button id="copy_save_done">Done</button>\n </div>\n <form>\n <textarea id="svg_source_textarea" spellcheck="false" rows="5" cols="80"></textarea>\n </form>\n </div> \n </elix-dialog> \n';var cA=function(en){_inherits(SeSvgSourceEditorDialog,en);var tn=_createSuper(SeSvgSourceEditorDialog);function SeSvgSourceEditorDialog(){var en;return _classCallCheck(this,SeSvgSourceEditorDialog),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(lA.content.cloneNode(!0)),en.$dialog=en._shadowRoot.querySelector("#svg_source_editor"),en.$copyBtn=en._shadowRoot.querySelector("#copy_save_done"),en.$saveBtn=en._shadowRoot.querySelector("#tool_source_save"),en.$cancelBtn=en._shadowRoot.querySelector("#tool_source_cancel"),en.$sourceTxt=en._shadowRoot.querySelector("#svg_source_textarea"),en.$copySec=en._shadowRoot.querySelector("#save_output_btns"),en.$applySec=en._shadowRoot.querySelector("#tool_source_back"),en}return _createClass(SeSvgSourceEditorDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"dialog":"open"===nn?(this.$sourceTxt.focus(),this.$dialog.open()):(this.$dialog.close(),this.$sourceTxt.blur());break;case"applysec":this.$applySec.style.display="false"===nn?"none":"block";break;case"copysec":this.$copySec.style.display="false"===nn?"none":"block";break;case"value":this.$sourceTxt.value=nn;break;default:_get(_getPrototypeOf(SeSvgSourceEditorDialog.prototype),"attributeChangedCallback",this).call(this,en,tn,nn)}}},{key:"connectedCallback",value:function connectedCallback(){var en=this,tn=function onCancelHandler(tn){var nn=new CustomEvent("change",{detail:{dialog:"closed"}});en.dispatchEvent(nn)};this.$copyBtn.addEventListener("click",(function onCopyHandler(tn){var nn=new CustomEvent("change",{detail:{copy:"click",value:en.$sourceTxt.value}});en.dispatchEvent(nn)})),this.$saveBtn.addEventListener("click",(function onSaveHandler(tn){var nn=new CustomEvent("change",{detail:{value:en.$sourceTxt.value,dialog:"close"}});en.dispatchEvent(nn)})),this.$cancelBtn.addEventListener("click",tn),this.$dialog.addEventListener("close",tn)}},{key:"dialog",get:function get(){return this.getAttribute("dialog")},set:function set(en){this.setAttribute("dialog",en)}},{key:"value",get:function get(){return this.getAttribute("value")},set:function set(en){this.setAttribute("value",en)}},{key:"applysec",get:function get(){return this.getAttribute("applysec")},set:function set(en){this.setAttribute("applysec",en)}},{key:"copysec",get:function get(){return this.getAttribute("copysec")},set:function set(en){this.setAttribute("copysec",en)}}],[{key:"observedAttributes",get:function get(){return["dialog","value","applysec","copysec"]}}]),SeSvgSourceEditorDialog}(_wrapNativeSuper(HTMLElement));customElements.define("se-svg-source-editor-dialog",cA);var uA=document.createElement("template");uA.innerHTML='\n <style>\n .contextMenu {\n position: absolute;\n z-index: 99999;\n border: solid 1px rgba(0,0,0,.33);\n background: rgba(255,255,255,.95);\n padding: 5px 0;\n margin: 0px;\n display: none;\n font: 12px/15px Lucida Sans, Helvetica, Verdana, sans-serif;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -moz-box-shadow: 2px 5px 10px rgba(0,0,0,.3);\n -webkit-box-shadow: 2px 5px 10px rgba(0,0,0,.3);\n box-shadow: 2px 5px 10px rgba(0,0,0,.3);\n }\n \n .contextMenu li {\n list-style: none;\n padding: 0px;\n margin: 0px;\n }\n \n .contextMenu .shortcut {\n width: 115px;\n text-align:right;\n float:right;\n }\n \n .contextMenu a {\n -moz-user-select: none;\n -webkit-user-select: none;\n color: #222;\n text-decoration: none;\n display: block;\n line-height: 20px;\n height: 20px;\n background-position: 6px center;\n background-repeat: no-repeat;\n outline: none;\n padding: 0px 15px 1px 20px;\n }\n \n .contextMenu li.hover a {\n background-color: #2e5dea;\n color: white;\n cursor: default;\n }\n \n .contextMenu li.disabled a {\n color: #999;\n }\n \n .contextMenu li.hover.disabled a {\n background-color: transparent;\n }\n \n .contextMenu li.separator {\n border-top: solid 1px #E3E3E3;\n padding-top: 5px;\n margin-top: 5px;\n } \n </style>\n <ul id="cmenu_canvas" class="contextMenu">\n <li>\n <a href="#cut" id="se-cut">\n Cut<span class="shortcut">META+X</span>\n </a>\n </li>\n <li>\n <a href="#copy" id="se-copy">\n Copy<span class="shortcut">META+C</span>\n </a>\n </li>\n <li>\n <a href="#paste" id="se-paste">Paste</a>\n </li>\n <li>\n <a href="#paste_in_place" id="se-paste-in-place">Paste in Place</a>\n </li>\n <li class="separator">\n <a href="#delete" id="se-delete">\n Delete<span class="shortcut">BACKSPACE</span>\n </a>\n </li>\n <li class="separator">\n <a href="#group" id="se-group">\n Group<span class="shortcut">G</span>\n </a>\n </li>\n <li>\n <a href="#ungroup" id="se-ungroup">\n Ungroup<span class="shortcut">G</span>\n </a>\n </li>\n <li class="separator">\n <a href="#move_front" id="se-move-front">\n Bring to Front<span class="shortcut">CTRL+SHFT+]</span>\n </a>\n </li>\n <li>\n <a href="#move_up" id="se-move-up">\n Bring Forward<span class="shortcut">CTRL+]</span>\n </a>\n </li>\n <li>\n <a href="#move_down" id="se-move-down">\n Send Backward<span class="shortcut">CTRL+[</span>\n </a>\n </li>\n <li>\n <a href="#move_back" id="se-move-back">\n Send to Back<span class="shortcut">CTRL+SHFT+[</span>\n </a>\n </li> \n </ul>\n';var dA=function(en){_inherits(SeCMenuDialog,en);var tn=_createSuper(SeCMenuDialog);function SeCMenuDialog(){var en;return _classCallCheck(this,SeCMenuDialog),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(uA.content.cloneNode(!0)),en._workarea=document.getElementById("workarea"),en.$dialog=en._shadowRoot.querySelector("#cmenu_canvas"),en.$copyLink=en._shadowRoot.querySelector("#se-copy"),en.$cutLink=en._shadowRoot.querySelector("#se-cut"),en.$pasteLink=en._shadowRoot.querySelector("#se-paste"),en.$pasteInPlaceLink=en._shadowRoot.querySelector("#se-paste-in-place"),en.$deleteLink=en._shadowRoot.querySelector("#se-delete"),en.$groupLink=en._shadowRoot.querySelector("#se-group"),en.$ungroupLink=en._shadowRoot.querySelector("#se-ungroup"),en.$moveFrontLink=en._shadowRoot.querySelector("#se-move-front"),en.$moveUpLink=en._shadowRoot.querySelector("#se-move-up"),en.$moveDownLink=en._shadowRoot.querySelector("#se-move-down"),en.$moveBackLink=en._shadowRoot.querySelector("#se-move-back"),en}return _createClass(SeCMenuDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){var rn=this._shadowRoot;switch(en){case"disableallmenu":if("true"===nn)rn.querySelectorAll("li").forEach((function(en){en.classList.add("disabled")}));break;case"enablemenuitems":nn.split(",").forEach((function(en){rn.querySelector('a[href*="'+en+'"]').parentElement.classList.remove("disabled")}));break;case"disablemenuitems":nn.split(",").forEach((function(en){rn.querySelector('a[href*="'+en+'"]').parentElement.classList.add("disabled")}))}}},{key:"connectedCallback",value:function connectedCallback(){var en=this,tn=this,nn=function onMenuClickHandler(tn,nn){var rn=new CustomEvent("change",{detail:{trigger:nn}});en.dispatchEvent(rn)};this._workarea.addEventListener("contextmenu",(function onMenuOpenHandler(en){en.preventDefault(),tn.$dialog.style.top=en.pageY+"px",tn.$dialog.style.left=en.pageX+"px",tn.$dialog.style.display="block"})),this._workarea.addEventListener("mousedown",(function onMenuCloseHandler(en){2!==en.button&&(tn.$dialog.style.display="none")})),this.$cutLink.addEventListener("click",(function(en){return nn(0,"cut")})),this.$copyLink.addEventListener("click",(function(en){return nn(0,"copy")})),this.$pasteLink.addEventListener("click",(function(en){return nn(0,"paste")})),this.$pasteInPlaceLink.addEventListener("click",(function(en){return nn(0,"paste_in_place")})),this.$deleteLink.addEventListener("click",(function(en){return nn(0,"delete")})),this.$groupLink.addEventListener("click",(function(en){return nn(0,"group")})),this.$ungroupLink.addEventListener("click",(function(en){return nn(0,"ungroup")})),this.$moveFrontLink.addEventListener("click",(function(en){return nn(0,"move_front")})),this.$moveUpLink.addEventListener("click",(function(en){return nn(0,"move_up")})),this.$moveDownLink.addEventListener("click",(function(en){return nn(0,"move_down")})),this.$moveBackLink.addEventListener("click",(function(en){return nn(0,"move_back")}))}},{key:"disableallmenu",get:function get(){return this.getAttribute("disableallmenu")},set:function set(en){this.setAttribute("disableallmenu",en)}},{key:"enablemenuitems",get:function get(){return this.getAttribute("enablemenuitems")},set:function set(en){this.setAttribute("enablemenuitems",en)}},{key:"disablemenuitems",get:function get(){return this.getAttribute("disablemenuitems")},set:function set(en){this.setAttribute("disablemenuitems",en)}}],[{key:"observedAttributes",get:function get(){return["disableallmenu","enablemenuitems","disablemenuitems"]}}]),SeCMenuDialog}(_wrapNativeSuper(HTMLElement));customElements.define("se-cmenu_canvas-dialog",dA);var pA=document.createElement("template");pA.innerHTML='\n <style>\n .contextMenu {\n position: absolute;\n z-index: 99999;\n border: solid 1px rgba(0,0,0,.33);\n background: rgba(255,255,255,.95);\n padding: 5px 0;\n margin: 0px;\n display: none;\n font: 12px/15px Lucida Sans, Helvetica, Verdana, sans-serif;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -moz-box-shadow: 2px 5px 10px rgba(0,0,0,.3);\n -webkit-box-shadow: 2px 5px 10px rgba(0,0,0,.3);\n box-shadow: 2px 5px 10px rgba(0,0,0,.3);\n }\n \n .contextMenu li {\n list-style: none;\n padding: 0px;\n margin: 0px;\n }\n \n .contextMenu .shortcut {\n width: 115px;\n text-align:right;\n float:right;\n }\n \n .contextMenu a {\n -moz-user-select: none;\n -webkit-user-select: none;\n color: #222;\n text-decoration: none;\n display: block;\n line-height: 20px;\n height: 20px;\n background-position: 6px center;\n background-repeat: no-repeat;\n outline: none;\n padding: 0px 15px 1px 20px;\n }\n \n .contextMenu li.hover a {\n background-color: #2e5dea;\n color: white;\n cursor: default;\n }\n \n .contextMenu li.disabled a {\n color: #999;\n }\n \n .contextMenu li.hover.disabled a {\n background-color: transparent;\n }\n \n .contextMenu li.separator {\n border-top: solid 1px #E3E3E3;\n padding-top: 5px;\n margin-top: 5px;\n } \n </style>\n <ul id="cmenu_layers" class="contextMenu">\n <li><a href="#dupe" id="se-dupe">Duplicate Layer...</a></li>\n <li><a href="#delete" id="se-layer-delete">Delete Layer</a></li>\n <li><a href="#merge_down" id="se-merge-down">Merge Down</a></li>\n <li><a href="#merge_all" id="se-merge-all">Merge All</a></li>\n </ul>\n';var hA=function(en){_inherits(SeCMenuLayerDialog,en);var tn=_createSuper(SeCMenuLayerDialog);function SeCMenuLayerDialog(){var en;return _classCallCheck(this,SeCMenuLayerDialog),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(pA.content.cloneNode(!0)),en.source="",en._workarea=void 0,en.$sidePanels=document.getElementById("sidepanels"),en.$dialog=en._shadowRoot.querySelector("#cmenu_layers"),en.$duplicateLink=en._shadowRoot.querySelector("#se-dupe"),en.$deleteLink=en._shadowRoot.querySelector("#se-layer-delete"),en.$mergeDownLink=en._shadowRoot.querySelector("#se-merge-down"),en.$mergeAllLink=en._shadowRoot.querySelector("#se-merge-all"),en}return _createClass(SeCMenuLayerDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){if(tn!==nn)switch(en){case"value":this.source=nn,""!==nn&&void 0!==nn&&(this._workarea=document.getElementById(this.source))}}},{key:"connectedCallback",value:function connectedCallback(){var en=this,tn=this,nn=function onMenuOpenHandler(en){en.preventDefault(),tn.$dialog.style.top=en.pageY+"px",tn.$dialog.style.left=en.pageX+"px",tn.$dialog.style.display="block"},rn=function onMenuCloseHandler(en){2!==en.button&&(tn.$dialog.style.display="none")},an=function onMenuClickHandler(nn,rn,an){var sn=new CustomEvent("change",{detail:{trigger:rn,source:an}});en.dispatchEvent(sn),tn.$dialog.style.display="none"};void 0!==this._workarea&&(this._workarea.addEventListener("contextmenu",nn),"true"===this.getAttribute("leftclick")&&this._workarea.addEventListener("click",nn),this._workarea.addEventListener("mousedown",rn),this.$sidePanels.addEventListener("mousedown",rn)),this.$duplicateLink.addEventListener("click",(function(tn){return an(0,"dupe",en.source)})),this.$deleteLink.addEventListener("click",(function(tn){return an(0,"delete",en.source)})),this.$mergeDownLink.addEventListener("click",(function(tn){return an(0,"merge_down",en.source)})),this.$mergeAllLink.addEventListener("click",(function(tn){return an(0,"merge_all",en.source)}))}},{key:"value",get:function get(){return this.getAttribute("value")},set:function set(en){this.setAttribute("value",en)}},{key:"leftclick",get:function get(){return this.getAttribute("leftclick")},set:function set(en){this.setAttribute("leftclick",en)}}],[{key:"observedAttributes",get:function get(){return["value","leftclick"]}}]),SeCMenuLayerDialog}(_wrapNativeSuper(HTMLElement));function _templateObject$C(){var en=_taggedTemplateLiteral(['\n <div id="alertDialogContent">\n <slot></slot>\n <div id="choiceButtonContainer" part="choice-button-container"></div>\n </div>\n ']);return _templateObject$C=function _templateObject(){return en},en}function _templateObject$D(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="frame"] {\n padding: 1em;\n }\n\n [part~="choice-button-container"] {\n margin-top: 1em;\n }\n\n [part~="choice-button"]:not(:first-child) {\n margin-left: 0.5em;\n }\n </style>\n ']);return _templateObject$D=function _templateObject(){return en},en}function _templateObject2$a(){var en=_taggedTemplateLiteral(['\n <style>\n [part~="frame"] {\n padding: 1em;\n background: #CCC;\n width: 300px;\n border: 1px outset #777;\n font-size: 0.8em;\n font-family: Verdana,Helvetica,sans-serif;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n }\n\n [part~="choice-button-container"] {\n margin-top: 1em;\n text-align: center;\n }\n\n [part~="choice-button"]:not(:first-child) {\n margin-left: 0.5em;\n }\n #se-content-alert{\n height: 95px;\n background: #DDD;\n overflow: auto;\n text-align: left;\n border: 1px solid #B0B0B0;\n padding: 1em;\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n }\n </style>\n ']);return _templateObject2$a=function _templateObject2(){return en},en}function _templateObject$E(){var en=_taggedTemplateLiteral(['\n <div id="alertDialogContent">\n <div id="se-content-alert">\n <slot></slot>\n </div>\n <div id="choiceButtonContainer" part="choice-button-container"></div>\n </div>\n ']);return _templateObject$E=function _templateObject(){return en},en}customElements.define("se-cmenu-layers",hA);var gA=function(en){_inherits(SePlainAlertDialog,en);var tn=_createSuper(SePlainAlertDialog);function SePlainAlertDialog(){return _classCallCheck(this,SePlainAlertDialog),tn.apply(this,arguments)}return _createClass(SePlainAlertDialog,[{key:Rp,get:function get(){var en=_get(_getPrototypeOf(SePlainAlertDialog.prototype),Rp,this),tn=en.content.querySelector("#frameContent");return tn&&tn.replaceWith(Wp(_templateObject$E())),en.content.append(Wp(_templateObject2$a())),en}}]),SePlainAlertDialog}(function(en){_inherits(PlainAlertDialog,en);var tn=_createSuper(PlainAlertDialog);function PlainAlertDialog(){return _classCallCheck(this,PlainAlertDialog),tn.apply(this,arguments)}return _createClass(PlainAlertDialog,[{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainAlertDialog.prototype),Qd,this),{choiceButtonPartType:Yg})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(PlainAlertDialog.prototype),Rp,this);return en.content.append(Wp(_templateObject$D())),en}}]),PlainAlertDialog}(PlainModalOverlayMixin(function(en){_inherits(AlertDialog,en);var tn=_createSuper(AlertDialog);function AlertDialog(){return _classCallCheck(this,AlertDialog),tn.apply(this,arguments)}return _createClass(AlertDialog,[{key:cp,value:function value(en){var tn=!1,nn=1===en.key.length&&en.key.toLowerCase();if(nn){var rn=this.choices.find((function(en){return en[0].toLowerCase()===nn}));rn&&(this.close({choice:rn}),tn=!0)}return tn||_get(_getPrototypeOf(AlertDialog.prototype),cp,this)&&_get(_getPrototypeOf(AlertDialog.prototype),cp,this).call(this,en)||!1}},{key:gp,value:function value(en){var tn=this;_get(_getPrototypeOf(AlertDialog.prototype),gp,this).call(this,en),this[zd]&&this[ap].choiceButtonContainer.addEventListener("click",function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en){var nn,rn;return regeneratorRuntime.wrap((function _callee$(an){for(;;)switch(an.prev=an.next){case 0:if(!((nn=en.target)instanceof HTMLElement)){an.next=7;break}return rn=nn.textContent,tn[hp]=!0,an.next=6,tn.close({choice:rn});case 6:tn[hp]=!1;case 7:case"end":return an.stop()}}),_callee)})));return function(tn){return en.apply(this,arguments)}}()),en.choiceButtons&&updateChildNodes(this[ap].choiceButtonContainer,this[Cp].choiceButtons)}},{key:kp,value:function value(en,tn){var nn=_get(_getPrototypeOf(AlertDialog.prototype),kp,this).call(this,en,tn);if(tn.choiceButtonPartType||tn.choices){var rn=en.choices.map((function(tn){var nn=createElement(en.choiceButtonPartType);return"part"in nn&&(nn.part="choice-button"),nn.textContent=tn,nn}));Object.freeze(rn),Object.assign(nn,{choiceButtons:rn})}return nn}},{key:"choiceButtons",get:function get(){return this[Cp].choiceButtons}},{key:"choiceButtonPartType",get:function get(){return this[Cp].choiceButtonPartType},set:function set(en){this[_p]({choiceButtonPartType:en})}},{key:"choices",get:function get(){return this[Cp].choices},set:function set(en){this[_p]({choices:en})}},{key:Qd,get:function get(){return Object.assign(_get(_getPrototypeOf(AlertDialog.prototype),Qd,this),{choiceButtonPartType:"button",choiceButtons:[],choices:["OK"]})}},{key:Rp,get:function get(){var en=_get(_getPrototypeOf(AlertDialog.prototype),Rp,this),tn=en.content.querySelector("slot:not([name])");return tn&&tn.replaceWith(Wp(_templateObject$C())),en}}]),AlertDialog}(Df))));customElements.define("se-elix-alert-dialog",gA);var fA=function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en,tn){var nn,rn;return regeneratorRuntime.wrap((function _callee$(an){for(;;)switch(an.prev=an.next){case 0:return(nn=new gA).textContent=en,nn.choices=tn,nn.open(),an.next=6,nn.whenClosed();case 6:return rn=an.sent,an.abrupt("return",rn.choice);case 8:case"end":return an.stop()}}),_callee)})));return function seSelect(tn,nn){return en.apply(this,arguments)}}();window.seSelect=fA;var AA=function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en,tn){var nn,rn;return regeneratorRuntime.wrap((function _callee$(an){for(;;)switch(an.prev=an.next){case 0:return(nn=new gA).textContent=en,nn.choices=void 0===tn?["Ok","Cancel"]:tn,nn.open(),an.next=6,nn.whenClosed();case 6:return rn=an.sent,an.abrupt("return",rn.choice);case 8:case"end":return an.stop()}}),_callee)})));return function seConfirm(tn,nn){return en.apply(this,arguments)}}();window.seConfirm=AA;var mA=function(en){_inherits(SePromptDialog,en);var tn=_createSuper(SePromptDialog);function SePromptDialog(){var en;return _classCallCheck(this,SePromptDialog),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en.dialog=new gA,en}return _createClass(SePromptDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){switch(en){case"title":this.dialog.opened&&this.dialog.close(),this.dialog.textContent=nn,this.dialog.choices=["Cancel"],this.dialog.open();break;case"close":this.dialog.opened&&this.dialog.close();break;default:console.error("unknown attr for:",en,"newValue =",nn)}}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(en){this.setAttribute("title",en)}},{key:"close",get:function get(){return this.getAttribute("close")},set:function set(en){this.setAttribute("close",en)}}],[{key:"observedAttributes",get:function get(){return["title","close"]}}]),SePromptDialog}(_wrapNativeSuper(HTMLElement));customElements.define("se-prompt-dialog",mA);window.seAlert=function seAlert(en){var tn=new gA;tn.textContent=en,tn.choices=["Ok"],tn.open()};var vA=document.createElement("template");vA.innerHTML='\n <style>\n \n #dialog_content {\n margin: 10px 10px 5px 10px;\n background: #DDD;\n overflow: auto;\n text-align: left;\n border: 1px solid #B0B0B0;\n }\n\n #dialog_content p, #dialog_content select, #dialog_content label {\n margin: 10px;\n line-height: 0.3em;\n }\n \n #dialog_container {\n font-family: Verdana;\n text-align: center;\n left: 50%;\n top: 50%;\n max-width: 400px;\n z-index: 50001;\n background: #CCC;\n border: 1px outset #777;\n font-family:Verdana,Helvetica,sans-serif;\n font-size:0.8em;\n }\n \n #dialog_container, #dialog_content {\n border-radius: 5px;\n -moz-border-radius: 5px;\n -webkit-border-radius: 5px;\n }\n \n #dialog_buttons input[type=text] {\n width: 90%;\n display: block;\n margin: 0 0 5px 11px;\n }\n \n #dialog_buttons input[type=button] {\n margin: 0 1em;\n }\n .se-select{\n text-align: center;\n }\n elix-number-spin-box{\n margin-left: 15px;\n }\n </style>\n <elix-dialog id="export_box" aria-label="export svg" closed>\n <div class="overlay"></div>\n <div id="dialog_container">\n <div id="dialog_content">\n <p class="se-select"> \n Select an image type for export:\n </p>\n <p class="se-select">\n <select id="se-storage-pref">\n <option value="PNG">PNG</option>\n <option value="JPEG">JPEG</option>\n <option value="BMP">BMP</option>\n <option value="WEBP">WEBP</option>\n <option value="PDF">PDF</option>\n </select> \n </p>\n <p id="se-quality">Quality:<elix-number-spin-box min="-1" max="101" step="5" value="100"></elix-number-spin-box></p>\n </div>\n <div id="dialog_buttons">\n <button id="export_ok">\n <img class="svg_icon" src="./images/ok.svg" alt="icon" width="16" height="16" />\n Ok\n </button>\n <button id="export_cancel">\n <img class="svg_icon" src="./images/cancel.svg" alt="icon" width="16" height="16" />\n Cancel\n </button>\n </div>\n </div>\n </elix-dialog>\n';var yA=function(en){_inherits(SeExportDialog,en);var tn=_createSuper(SeExportDialog);function SeExportDialog(){var en;return _classCallCheck(this,SeExportDialog),(en=tn.call(this))._shadowRoot=en.attachShadow({mode:"open"}),en._shadowRoot.append(vA.content.cloneNode(!0)),en.$dialog=en._shadowRoot.querySelector("#export_box"),en.$okBtn=en._shadowRoot.querySelector("#export_ok"),en.$cancelBtn=en._shadowRoot.querySelector("#export_cancel"),en.$exportOption=en._shadowRoot.querySelector("#se-storage-pref"),en.$qualityCont=en._shadowRoot.querySelector("#se-quality"),en.$input=en._shadowRoot.querySelector("elix-number-spin-box"),en.value=1,en}return _createClass(SeExportDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(en,tn,nn){switch(en){case"dialog":"open"===nn?this.$dialog.open():this.$dialog.close()}}},{key:"connectedCallback",value:function connectedCallback(){var en=this;this.$input.addEventListener("change",(function(tn){tn.preventDefault(),en.value=tn.target.value})),this.$input.addEventListener("click",(function(tn){tn.preventDefault(),en.value=tn.target.value}));var tn=function onSubmitHandler(tn,nn){if("cancel"===nn)document.getElementById("se-export-dialog").setAttribute("dialog","close");else{var rn=new CustomEvent("change",{detail:{trigger:nn,imgType:en.$exportOption.value,quality:en.value}});en.dispatchEvent(rn)}};this.$okBtn.addEventListener("click",(function(en){return tn(0,"ok")})),this.$cancelBtn.addEventListener("click",(function(en){return tn(0,"cancel")})),this.$exportOption.addEventListener("change",(function(tn){return function onChangeHandler(tn){"PDF"===tn.target.value?en.$qualityCont.style.display="none":en.$qualityCont.style.display="block"}(tn)}))}},{key:"dialog",get:function get(){return this.getAttribute("dialog")},set:function set(en){this.setAttribute("dialog",en)}}],[{key:"observedAttributes",get:function get(){return["dialog"]}}]),SeExportDialog}(_wrapNativeSuper(HTMLElement));customElements.define("se-export-dialog",yA);var _A=Ps.values;function touchHandler(en){var tn=en.changedTouches,nn=tn[0],rn="";switch(en.type){case"touchstart":rn="mousedown";break;case"touchmove":rn="mousemove";break;case"touchend":rn="mouseup";break;default:return}var an=nn.screenX,sn=nn.screenY,cn=nn.clientX,un=nn.clientY,dn=new MouseEvent(rn,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:an,screenY:sn,clientX:cn,clientY:un,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});tn.length<2&&(nn.target.dispatchEvent(dn),en.preventDefault())}_export({target:"Object",stat:!0},{values:function values(en){return _A(en)}}),document.addEventListener("touchstart",touchHandler,!0),document.addEventListener("touchmove",touchHandler,!0),document.addEventListener("touchend",touchHandler,!0),document.addEventListener("touchcancel",touchHandler,!0),"SVGPathSeg"in window||(window.SVGPathSeg=function(en,tn,nn){this.pathSegType=en,this.pathSegTypeAsLetter=tn,this._owningPathSegList=nn},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(en){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",en)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",en),this._x=tn,this._y=nn},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",en),this._x=tn,this._y=nn},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",en),this._x=tn,this._y=nn},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",en),this._x=tn,this._y=nn},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(en,tn,nn,rn,an,sn,cn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",en),this._x=tn,this._y=nn,this._x1=rn,this._y1=an,this._x2=sn,this._y2=cn},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function get(){return this._x1},set:function set(en){this._x1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function get(){return this._y1},set:function set(en){this._y1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function get(){return this._x2},set:function set(en){this._x2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function get(){return this._y2},set:function set(en){this._y2=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(en,tn,nn,rn,an,sn,cn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",en),this._x=tn,this._y=nn,this._x1=rn,this._y1=an,this._x2=sn,this._y2=cn},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function get(){return this._x1},set:function set(en){this._x1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function get(){return this._y1},set:function set(en){this._y1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function get(){return this._x2},set:function set(en){this._x2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function get(){return this._y2},set:function set(en){this._y2=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(en,tn,nn,rn,an){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",en),this._x=tn,this._y=nn,this._x1=rn,this._y1=an},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function get(){return this._x1},set:function set(en){this._x1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function get(){return this._y1},set:function set(en){this._y1=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(en,tn,nn,rn,an){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",en),this._x=tn,this._y=nn,this._x1=rn,this._y1=an},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function get(){return this._x1},set:function set(en){this._x1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function get(){return this._y1},set:function set(en){this._y1=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(en,tn,nn,rn,an,sn,cn,un){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",en),this._x=tn,this._y=nn,this._r1=rn,this._r2=an,this._angle=sn,this._largeArcFlag=cn,this._sweepFlag=un},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function get(){return this._r1},set:function set(en){this._r1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function get(){return this._r2},set:function set(en){this._r2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function get(){return this._angle},set:function set(en){this._angle=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function get(){return this._largeArcFlag},set:function set(en){this._largeArcFlag=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function get(){return this._sweepFlag},set:function set(en){this._sweepFlag=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(en,tn,nn,rn,an,sn,cn,un){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",en),this._x=tn,this._y=nn,this._r1=rn,this._r2=an,this._angle=sn,this._largeArcFlag=cn,this._sweepFlag=un},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function get(){return this._r1},set:function set(en){this._r1=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function get(){return this._r2},set:function set(en){this._r2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function get(){return this._angle},set:function set(en){this._angle=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function get(){return this._largeArcFlag},set:function set(en){this._largeArcFlag=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function get(){return this._sweepFlag},set:function set(en){this._sweepFlag=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(en,tn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",en),this._x=tn},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(en,tn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",en),this._x=tn},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(en,tn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",en),this._y=tn},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(en,tn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",en),this._y=tn},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(en,tn,nn,rn,an){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",en),this._x=tn,this._y=nn,this._x2=rn,this._y2=an},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function get(){return this._x2},set:function set(en){this._x2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function get(){return this._y2},set:function set(en){this._y2=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(en,tn,nn,rn,an){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",en),this._x=tn,this._y=nn,this._x2=rn,this._y2=an},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function get(){return this._x2},set:function set(en){this._x2=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function get(){return this._y2},set:function set(en){this._y2=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",en),this._x=tn,this._y=nn},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(en,tn,nn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",en),this._x=tn,this._y=nn},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function get(){return this._x},set:function set(en){this._x=en,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function get(){return this._y},set:function set(en){this._y=en,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(en,tn){return new window.SVGPathSegMovetoAbs(void 0,en,tn)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(en,tn){return new window.SVGPathSegMovetoRel(void 0,en,tn)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(en,tn){return new window.SVGPathSegLinetoAbs(void 0,en,tn)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(en,tn){return new window.SVGPathSegLinetoRel(void 0,en,tn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(en,tn,nn,rn,an,sn){return new window.SVGPathSegCurvetoCubicAbs(void 0,en,tn,nn,rn,an,sn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(en,tn,nn,rn,an,sn){return new window.SVGPathSegCurvetoCubicRel(void 0,en,tn,nn,rn,an,sn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(en,tn,nn,rn){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,en,tn,nn,rn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(en,tn,nn,rn){return new window.SVGPathSegCurvetoQuadraticRel(void 0,en,tn,nn,rn)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(en,tn,nn,rn,an,sn,cn){return new window.SVGPathSegArcAbs(void 0,en,tn,nn,rn,an,sn,cn)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(en,tn,nn,rn,an,sn,cn){return new window.SVGPathSegArcRel(void 0,en,tn,nn,rn,an,sn,cn)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(en){return new window.SVGPathSegLinetoHorizontalAbs(void 0,en)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(en){return new window.SVGPathSegLinetoHorizontalRel(void 0,en)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(en){return new window.SVGPathSegLinetoVerticalAbs(void 0,en)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(en){return new window.SVGPathSegLinetoVerticalRel(void 0,en)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(en,tn,nn,rn){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,en,tn,nn,rn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(en,tn,nn,rn){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,en,tn,nn,rn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(en,tn){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,en,tn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(en,tn){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,en,tn)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(en){if(void 0===en||!isFinite(en))throw"Invalid arguments.";var tn=document.createElementNS("http://www.w3.org/2000/svg","path");tn.setAttribute("d",this.getAttribute("d"));var nn=tn.pathSegList.numberOfItems-1;if(nn<=0)return 0;do{if(tn.pathSegList.removeItem(nn),en>tn.getTotalLength())break;nn--}while(nn>0);return nn})),"SVGPathSegList"in window&&"appendItem"in window.SVGPathSegList.prototype||(window.SVGPathSegList=function(en){this._pathElement=en,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function get(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function get(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(en){if(this._pathElement){var tn=!1;en.forEach((function(en){"d"==en.attributeName&&(tn=!0)})),tn&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(en){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach((function(en){en._owningPathSegList=null})),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(en){return this._checkPathSynchronizedToList(),this._list=[en],en._owningPathSegList=this,this._writeListToPath(),en},window.SVGPathSegList.prototype._checkValidIndex=function(en){if(isNaN(en)||en<0||en>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(en){return this._checkPathSynchronizedToList(),this._checkValidIndex(en),this._list[en]},window.SVGPathSegList.prototype.insertItemBefore=function(en,tn){return this._checkPathSynchronizedToList(),tn>this.numberOfItems&&(tn=this.numberOfItems),en._owningPathSegList&&(en=en.clone()),this._list.splice(tn,0,en),en._owningPathSegList=this,this._writeListToPath(),en},window.SVGPathSegList.prototype.replaceItem=function(en,tn){return this._checkPathSynchronizedToList(),en._owningPathSegList&&(en=en.clone()),this._checkValidIndex(tn),this._list[tn]=en,en._owningPathSegList=this,this._writeListToPath(),en},window.SVGPathSegList.prototype.removeItem=function(en){this._checkPathSynchronizedToList(),this._checkValidIndex(en);var tn=this._list[en];return this._list.splice(en,1),this._writeListToPath(),tn},window.SVGPathSegList.prototype.appendItem=function(en){return this._checkPathSynchronizedToList(),en._owningPathSegList&&(en=en.clone()),this._list.push(en),en._owningPathSegList=this,this._writeListToPath(),en},window.SVGPathSegList._pathSegArrayAsString=function(en){var tn="",nn=!0;return en.forEach((function(en){nn?(nn=!1,tn+=en._asPathString()):tn+=" "+en._asPathString()})),tn},window.SVGPathSegList.prototype._parsePath=function(en){if(!en||0==en.length)return[];var tn=this,nn=function Builder(){this.pathSegList=[]};nn.prototype.appendSegment=function(en){this.pathSegList.push(en)};var rn=function Source(en){this._string=en,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};rn.prototype._isCurrentSpace=function(){var en=this._string[this._currentIndex];return en<=" "&&(" "==en||"\n"==en||"\t"==en||"\r"==en||"\f"==en)},rn.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},rn.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},rn.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},rn.prototype.peekSegmentType=function(){var en=this._string[this._currentIndex];return this._pathSegTypeFromChar(en)},rn.prototype._pathSegTypeFromChar=function(en){switch(en){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},rn.prototype._nextCommandHelper=function(en,tn){return("+"==en||"-"==en||"."==en||en>="0"&&en<="9")&&tn!=window.SVGPathSeg.PATHSEG_CLOSEPATH?tn==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:tn==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:tn:window.SVGPathSeg.PATHSEG_UNKNOWN},rn.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var en=this.peekSegmentType();return en==window.SVGPathSeg.PATHSEG_MOVETO_ABS||en==window.SVGPathSeg.PATHSEG_MOVETO_REL},rn.prototype._parseNumber=function(){var en=0,tn=0,nn=1,rn=0,an=1,sn=1,cn=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,an=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))){for(var un=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=un)for(var dn=this._currentIndex-1,pn=1;dn>=un;)tn+=pn*(this._string.charAt(dn--)-"0"),pn*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)nn*=10,rn+=(this._string.charAt(this._currentIndex)-"0")/nn,this._currentIndex+=1}if(this._currentIndex!=cn&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,sn=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)en*=10,en+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var hn=tn+rn;if(hn*=an,en&&(hn*=Math.pow(10,sn*en)),cn!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),hn}},rn.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var en=!1,tn=this._string.charAt(this._currentIndex++);if("0"==tn)en=!1;else{if("1"!=tn)return;en=!0}return this._skipOptionalSpacesOrDelimiter(),en}},rn.prototype.parseSegment=function(){var en=this._string[this._currentIndex],nn=this._pathSegTypeFromChar(en);if(nn==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((nn=this._nextCommandHelper(en,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=nn,nn){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(tn,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(tn,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(tn,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(tn,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(tn);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var rn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(tn,rn.x,rn.y,rn.x1,rn.y1,rn.x2,rn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return rn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(tn,rn.x,rn.y,rn.x1,rn.y1,rn.x2,rn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return rn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(tn,rn.x,rn.y,rn.x2,rn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return rn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(tn,rn.x,rn.y,rn.x2,rn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return rn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(tn,rn.x,rn.y,rn.x1,rn.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return rn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(tn,rn.x,rn.y,rn.x1,rn.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(tn,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return rn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(tn,rn.x,rn.y,rn.x1,rn.y1,rn.arcAngle,rn.arcLarge,rn.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return rn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(tn,rn.x,rn.y,rn.x1,rn.y1,rn.arcAngle,rn.arcLarge,rn.arcSweep);default:throw"Unknown path seg type."}};var an=new nn,sn=new rn(en);if(!sn.initialCommandIsMoveTo())return[];for(;sn.hasMoreData();){var cn=sn.parseSegment();if(!cn)return[];an.appendSegment(cn)}return an.pathSegList}),Boolean(document.createElementNS&&document.createElementNS(Kf.SVG,"svg").createSVGRect);var wA=navigator.userAgent,xA=document.createElementNS(Kf.SVG,"svg"),SA=Boolean(window.opera),CA=wA.includes("AppleWebKit"),kA=wA.includes("Gecko/"),BA=wA.includes("Chrome/");wA.includes("Windows");var EA,PA=wA.includes("Macintosh"),LA="ontouchstart"in window,TA=Boolean(xA.querySelector),NA=Boolean(document.evaluate),IA=function(){var en=document.createElementNS(Kf.SVG,"path");en.setAttribute("d","M0,0 10,10");var tn=en.pathSegList,nn=en.createSVGPathSegLinetoAbs(5,5);try{return tn.replaceItem(nn,1),!0}catch(en){}return!1}(),OA=function(){var en=document.createElementNS(Kf.SVG,"path");en.setAttribute("d","M0,0 10,10");var tn=en.pathSegList,nn=en.createSVGPathSegLinetoAbs(5,5);try{return tn.insertItemBefore(nn,1),!0}catch(en){}return!1}(),FA=function(){var en=document.createElementNS(Kf.SVG,"svg"),tn=document.createElementNS(Kf.SVG,"svg");document.documentElement.append(en),tn.setAttribute("x",5),en.append(tn);var nn=document.createElementNS(Kf.SVG,"text");nn.textContent="a",tn.append(nn);try{return 0===nn.getStartPositionOfChar(0).x}catch(en){return!1}finally{en.remove()}}(),UA=function(){var en=document.createElementNS(Kf.SVG,"svg");document.documentElement.append(en);var tn=document.createElementNS(Kf.SVG,"path");tn.setAttribute("d","M0,0 C0,0 10,10 10,0"),en.append(tn);var nn=tn.getBBox();return en.remove(),nn.height>4&&nn.height<5}(),MA=function(){var en=document.createElementNS(Kf.SVG,"svg");document.documentElement.append(en);var tn=document.createElementNS(Kf.SVG,"path");tn.setAttribute("d","M0,0 10,0");var nn=document.createElementNS(Kf.SVG,"path");nn.setAttribute("d","M5,0 15,0");var rn=document.createElementNS(Kf.SVG,"g");rn.append(tn,nn),en.append(rn);var an=rn.getBBox();return en.remove(),15===an.width}(),RA=((EA=document.createElementNS(Kf.SVG,"rect")).setAttribute("style","vector-effect:non-scaling-stroke"),"non-scaling-stroke"===EA.style.vectorEffect),DA=function(){var en=document.createElementNS(Kf.SVG,"rect").transform.baseVal,tn=xA.createSVGTransform();en.appendItem(tn);var nn=en.getItem(0),rn=function isSVGTransform(en){return en&&"object"===_typeof(en)&&"function"==typeof en.setMatrix&&"angle"in en};return rn(nn)&&rn(tn)&&nn.type===tn.type&&nn.angle===tn.angle&&nn.matrix.a===tn.matrix.a&&nn.matrix.b===tn.matrix.b&&nn.matrix.c===tn.matrix.c&&nn.matrix.d===tn.matrix.d&&nn.matrix.e===tn.matrix.e&&nn.matrix.f===tn.matrix.f}(),jA=function isWebkit(){return CA},QA=function isGecko(){return kA},HA=function isChrome(){return BA},GA=function isTouch(){return LA},VA=function supportsGoodTextCharPos(){return FA},zA=function supportsNonScalingStroke(){return RA},KA=void 0!==KA?KA:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var qA=defaultSetTimout,$A=defaultClearTimeout;function runTimeout(en){if(qA===setTimeout)return setTimeout(en,0);if((qA===defaultSetTimout||!qA)&&setTimeout)return qA=setTimeout,setTimeout(en,0);try{return qA(en,0)}catch(tn){try{return qA.call(null,en,0)}catch(tn){return qA.call(this,en,0)}}}"function"==typeof KA.setTimeout&&(qA=setTimeout),"function"==typeof KA.clearTimeout&&($A=clearTimeout);var WA,XA=[],YA=!1,JA=-1;function cleanUpNextTick(){YA&&WA&&(YA=!1,WA.length?XA=WA.concat(XA):JA=-1,XA.length&&drainQueue())}function drainQueue(){if(!YA){var en=runTimeout(cleanUpNextTick);YA=!0;for(var tn=XA.length;tn;){for(WA=XA,XA=[];++JA<tn;)WA&&WA[JA].run();JA=-1,tn=XA.length}WA=null,YA=!1,function runClearTimeout(en){if($A===clearTimeout)return clearTimeout(en);if(($A===defaultClearTimeout||!$A)&&clearTimeout)return $A=clearTimeout,clearTimeout(en);try{return $A(en)}catch(tn){try{return $A.call(null,en)}catch(tn){return $A.call(this,en)}}}(en)}}function Item(en,tn){this.fun=en,this.array=tn}Item.prototype.run=function(){this.fun.apply(null,this.array)};function noop(){}var ZA=noop,em=noop,tm=noop,nm=noop,rm=noop,im=noop,om=noop;var am=KA.performance||{},sm=am.now||am.mozNow||am.msNow||am.oNow||am.webkitNow||function(){return(new Date).getTime()};var lm=new Date;var cm={nextTick:function nextTick(en){var tn=new Array(arguments.length-1);if(arguments.length>1)for(var nn=1;nn<arguments.length;nn++)tn[nn-1]=arguments[nn];XA.push(new Item(en,tn)),1!==XA.length||YA||runTimeout(drainQueue)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:ZA,addListener:em,once:tm,off:nm,removeListener:rm,removeAllListeners:im,emit:om,binding:function binding(en){throw new Error("process.binding is not supported")},cwd:function cwd(){return"/"},chdir:function chdir(en){throw new Error("process.chdir is not supported")},umask:function umask(){return 0},hrtime:function hrtime(en){var tn=.001*sm.call(am),nn=Math.floor(tn),rn=Math.floor(tn%1*1e9);return en&&(nn-=en[0],(rn-=en[1])<0&&(nn--,rn+=1e9)),[nn,rn]},platform:"browser",release:{},config:{},uptime:function uptime(){return(new Date-lm)/1e3}};_export({global:!0},{globalThis:nn});var um=function check(en){return en&&en.Math==Math&&en},dm=um("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis))&&globalThis)||um("object"==("undefined"==typeof window?"undefined":_typeof(window))&&window)||um("object"==("undefined"==typeof self?"undefined":_typeof(self))&&self)||um("object"==_typeof(en)&&en)||function(){return this}()||Function("return this")(),pm=function fails(en){try{return!!en()}catch(en){return!0}},hm=!pm((function(){return 7!=Object.defineProperty({},1,{get:function get(){return 7}})[1]})),gm={}.propertyIsEnumerable,fm=Object.getOwnPropertyDescriptor,Am={f:fm&&!gm.call({1:2},1)?function propertyIsEnumerable(en){var tn=fm(this,en);return!!tn&&tn.enumerable}:gm},mm=function createPropertyDescriptor(en,tn){return{enumerable:!(1&en),configurable:!(2&en),writable:!(4&en),value:tn}},vm={}.toString,ym=function classofRaw(en){return vm.call(en).slice(8,-1)},wm="".split,xm=pm((function(){return!Object("z").propertyIsEnumerable(0)}))?function(en){return"String"==ym(en)?wm.call(en,""):Object(en)}:Object,Sm=function requireObjectCoercible(en){if(null==en)throw TypeError("Can't call method on "+en);return en},Cm=function toIndexedObject(en){return xm(Sm(en))},km=function isObject(en){return"object"===_typeof(en)?null!==en:"function"==typeof en},Bm=function toPrimitive(en,tn){if(!km(en))return en;var nn,rn;if(tn&&"function"==typeof(nn=en.toString)&&!km(rn=nn.call(en)))return rn;if("function"==typeof(nn=en.valueOf)&&!km(rn=nn.call(en)))return rn;if(!tn&&"function"==typeof(nn=en.toString)&&!km(rn=nn.call(en)))return rn;throw TypeError("Can't convert object to primitive value")},Em={}.hasOwnProperty,Pm=function has(en,tn){return Em.call(en,tn)},Lm=dm.document,Tm=km(Lm)&&km(Lm.createElement),Nm=function documentCreateElement(en){return Tm?Lm.createElement(en):{}},Im=!hm&&!pm((function(){return 7!=Object.defineProperty(Nm("div"),"a",{get:function get(){return 7}}).a})),Om=Object.getOwnPropertyDescriptor,Fm={f:hm?Om:function getOwnPropertyDescriptor(en,tn){if(en=Cm(en),tn=Bm(tn,!0),Im)try{return Om(en,tn)}catch(en){}if(Pm(en,tn))return mm(!Am.f.call(en,tn),en[tn])}},Um=/#|\.prototype\./,Mm=function isForced(en,tn){var nn=Dm[Rm(en)];return nn==Qm||nn!=jm&&("function"==typeof tn?pm(tn):!!tn)},Rm=Mm.normalize=function(en){return String(en).replace(Um,".").toLowerCase()},Dm=Mm.data={},jm=Mm.NATIVE="N",Qm=Mm.POLYFILL="P",Hm=Mm,Gm={},Vm=function aFunction(en){if("function"!=typeof en)throw TypeError(String(en)+" is not a function");return en},zm=function functionBindContext(en,tn,nn){if(Vm(en),void 0===tn)return en;switch(nn){case 0:return function(){return en.call(tn)};case 1:return function(nn){return en.call(tn,nn)};case 2:return function(nn,rn){return en.call(tn,nn,rn)};case 3:return function(nn,rn,an){return en.call(tn,nn,rn,an)}}return function(){return en.apply(tn,arguments)}},Km=function anObject(en){if(!km(en))throw TypeError(String(en)+" is not an object");return en},qm=Object.defineProperty,$m={f:hm?qm:function defineProperty(en,tn,nn){if(Km(en),tn=Bm(tn,!0),Km(nn),Im)try{return qm(en,tn,nn)}catch(en){}if("get"in nn||"set"in nn)throw TypeError("Accessors not supported");return"value"in nn&&(en[tn]=nn.value),en}},Wm=hm?function(en,tn,nn){return $m.f(en,tn,mm(1,nn))}:function(en,tn,nn){return en[tn]=nn,en},Xm=Fm.f,Ym=function wrapConstructor(en){var tn=function Wrapper(tn,nn,rn){if(this instanceof en){switch(arguments.length){case 0:return new en;case 1:return new en(tn);case 2:return new en(tn,nn)}return new en(tn,nn,rn)}return en.apply(this,arguments)};return tn.prototype=en.prototype,tn},Jm=function _export(en,tn){var nn,rn,an,sn,cn,un,dn,pn,hn=en.target,gn=en.global,An=en.stat,mn=en.proto,vn=gn?dm:An?dm[hn]:(dm[hn]||{}).prototype,yn=gn?Gm:Gm[hn]||(Gm[hn]={}),_n=yn.prototype;for(an in tn)nn=!Hm(gn?an:hn+(An?".":"#")+an,en.forced)&&vn&&Pm(vn,an),cn=yn[an],nn&&(un=en.noTargetGet?(pn=Xm(vn,an))&&pn.value:vn[an]),sn=nn&&un?un:tn[an],nn&&_typeof(cn)===_typeof(sn)||(dn=en.bind&&nn?zm(sn,dm):en.wrap&&nn?Ym(sn):mn&&"function"==typeof sn?zm(Function.call,sn):sn,(en.sham||sn&&sn.sham||cn&&cn.sham)&&Wm(dn,"sham",!0),yn[an]=dn,mn&&(Pm(Gm,rn=hn+"Prototype")||Wm(Gm,rn,{}),Gm[rn][an]=sn,en.real&&_n&&!_n[an]&&Wm(_n,an,sn)))},Zm=Math.ceil,ev=Math.floor,tv=function toInteger(en){return isNaN(en=+en)?0:(en>0?ev:Zm)(en)},nv=Math.min,rv=function toLength(en){return en>0?nv(tv(en),9007199254740991):0},iv="__core-js_shared__",ov=dm[iv]||function setGlobal(en,tn){try{Wm(dm,en,tn)}catch(nn){dm[en]=tn}return tn}(iv,{}),av=createCommonjsModule((function(en){(en.exports=function(en,tn){return ov[en]||(ov[en]=void 0!==tn?tn:{})})("versions",[]).push({version:"3.7.0",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),sv=0,lv=Math.random(),uv=function uid(en){return"Symbol("+String(void 0===en?"":en)+")_"+(++sv+lv).toString(36)},dv=!!Object.getOwnPropertySymbols&&!pm((function(){return!String(Symbol())})),pv=dv&&!Symbol.sham&&"symbol"==_typeof(Symbol.iterator),hv=av("wks"),gv=dm.Symbol,fv=pv?gv:gv&&gv.withoutSetter||uv,Av=function wellKnownSymbol(en){return Pm(hv,en)||(dv&&Pm(gv,en)?hv[en]=gv[en]:hv[en]=fv("Symbol."+en)),hv[en]},mv=Av("match"),vv=function notARegexp(en){if(function isRegexp(en){var tn;return km(en)&&(void 0!==(tn=en[mv])?!!tn:"RegExp"==ym(en))}(en))throw TypeError("The method doesn't accept regular expressions");return en},yv=Av("match"),_v=function correctIsRegexpLogic(en){var tn=/./;try{"/./"[en](tn)}catch(nn){try{return tn[yv]=!1,"/./"[en](tn)}catch(en){}}return!1},bv="".startsWith,wv=Math.min,xv=_v("startsWith");Jm({target:"String",proto:!0,forced:!xv},{startsWith:function startsWith(en){var tn=String(Sm(this));vv(en);var nn=rv(wv(arguments.length>1?arguments[1]:void 0,tn.length)),rn=String(en);return bv?bv.call(tn,rn,nn):tn.slice(nn,nn+rn.length)===rn}});var Sv=function entryVirtual(en){return Gm[en+"Prototype"]},Cv=Sv("String").startsWith,kv=String.prototype,Bv=function startsWith_1(en){var tn=en.startsWith;return"string"==typeof en||en===kv||en instanceof String&&tn===kv.startsWith?Cv:tn},Ev="\t\n\v\f\r \u2028\u2029\ufeff",Pv="["+Ev+"]",Lv=RegExp("^"+Pv+Pv+"*"),Tv=RegExp(Pv+Pv+"*$"),Nv=function createMethod(en){return function(tn){var nn=String(Sm(tn));return 1&en&&(nn=nn.replace(Lv,"")),2&en&&(nn=nn.replace(Tv,"")),nn}},Iv={start:Nv(1),end:Nv(2),trim:Nv(3)},Ov=Iv.trim,Fv=dm.parseFloat,Uv=1/Fv(Ev+"-0")!=-1/0?function parseFloat(en){var tn=Ov(String(en)),nn=Fv(tn);return 0===nn&&"-"==tn.charAt(0)?-0:nn}:Fv;Jm({global:!0,forced:parseFloat!=Uv},{parseFloat:Uv});var Mv,Rv,Dv=Gm.parseFloat,jv=function toObject(en){return Object(Sm(en))},Qv=Array.isArray||function isArray(en){return"Array"==ym(en)},Hv=Av("species"),Gv=function arraySpeciesCreate(en,tn){var nn;return Qv(en)&&("function"!=typeof(nn=en.constructor)||nn!==Array&&!Qv(nn.prototype)?km(nn)&&null===(nn=nn[Hv])&&(nn=void 0):nn=void 0),new(void 0===nn?Array:nn)(0===tn?0:tn)},Vv=[].push,zv=function createMethod(en){var tn=1==en,nn=2==en,rn=3==en,an=4==en,sn=6==en,cn=5==en||sn;return function(un,dn,pn,hn){for(var gn,An,mn=jv(un),vn=xm(mn),yn=zm(dn,pn,3),_n=rv(vn.length),wn=0,xn=hn||Gv,Sn=tn?xn(un,_n):nn?xn(un,0):void 0;_n>wn;wn++)if((cn||wn in vn)&&(An=yn(gn=vn[wn],wn,mn),en))if(tn)Sn[wn]=An;else if(An)switch(en){case 3:return!0;case 5:return gn;case 6:return wn;case 2:Vv.call(Sn,gn)}else if(an)return!1;return sn?-1:rn||an?an:Sn}},Kv={forEach:zv(0),map:zv(1),filter:zv(2),some:zv(3),every:zv(4),find:zv(5),findIndex:zv(6)},qv=function aFunction(en){return"function"==typeof en?en:void 0},$v=function getBuiltIn(en,tn){return arguments.length<2?qv(Gm[en])||qv(dm[en]):Gm[en]&&Gm[en][tn]||dm[en]&&dm[en][tn]},Wv=$v("navigator","userAgent")||"",Xv=dm.process,Yv=Xv&&Xv.versions,Jv=Yv&&Yv.v8;Jv?Rv=(Mv=Jv.split("."))[0]+Mv[1]:Wv&&(!(Mv=Wv.match(/Edge\/(\d+)/))||Mv[1]>=74)&&(Mv=Wv.match(/Chrome\/(\d+)/))&&(Rv=Mv[1]);var Zv=Rv&&+Rv,ey=Av("species"),ty=function arrayMethodHasSpeciesSupport(en){return Zv>=51||!pm((function(){var tn=[];return(tn.constructor={})[ey]=function(){return{foo:1}},1!==tn[en](Boolean).foo}))},ny=Object.defineProperty,ry={},iy=function thrower(en){throw en},oy=function arrayMethodUsesToLength(en,tn){if(Pm(ry,en))return ry[en];tn||(tn={});var nn=[][en],rn=!!Pm(tn,"ACCESSORS")&&tn.ACCESSORS,an=Pm(tn,0)?tn[0]:iy,sn=Pm(tn,1)?tn[1]:void 0;return ry[en]=!!nn&&!pm((function(){if(rn&&!hm)return!0;var en={length:-1};rn?ny(en,1,{enumerable:!0,get:iy}):en[1]=1,nn.call(en,an,sn)}))},ay=Kv.map,sy=ty("map"),ly=oy("map");Jm({target:"Array",proto:!0,forced:!sy||!ly},{map:function map(en){return ay(this,en,arguments.length>1?arguments[1]:void 0)}});var uy=Sv("Array").map,dy=Array.prototype,py=function map_1(en){var tn=en.map;return en===dy||en instanceof Array&&tn===dy.map?uy:tn};Jm({target:"Array",stat:!0},{isArray:Qv});var hy=Gm.Array.isArray,gy=hy;var fy=function _arrayWithHoles$1(en){if(gy(en))return en},Ay={},my=Jp.getWeakData,vy=Kn.set,yy=Kn.getterFor,_y=vi.find,by=vi.findIndex,wy=0,uncaughtFrozenStore=function(en){return en.frozen||(en.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(en,tn){return _y(en.entries,(function(en){return en[0]===tn}))};UncaughtFrozenStore.prototype={get:function(en){var tn=findUncaughtFrozen(this,en);if(tn)return tn[1]},has:function(en){return!!findUncaughtFrozen(this,en)},set:function(en,tn){var nn=findUncaughtFrozen(this,en);nn?nn[1]=tn:this.entries.push([en,tn])},delete:function(en){var tn=by(this.entries,(function(tn){return tn[0]===en}));return~tn&&this.entries.splice(tn,1),!!~tn}};var xy={getConstructor:function(en,tn,nn,rn){var an=en((function(en,sn){anInstance(en,an,tn),vy(en,{type:tn,id:wy++,frozen:void 0}),null!=sn&&iterate(sn,en[rn],{that:en,AS_ENTRIES:nn})})),sn=yy(tn),define=function(en,tn,nn){var rn=sn(en),an=my(anObject(tn),!0);return!0===an?uncaughtFrozenStore(rn).set(tn,nn):an[rn.id]=nn,en};return redefineAll(an.prototype,{delete:function(en){var tn=sn(this);if(!isObject(en))return!1;var nn=my(en);return!0===nn?uncaughtFrozenStore(tn).delete(en):nn&&has(nn,tn.id)&&delete nn[tn.id]},has:function has$1(en){var tn=sn(this);if(!isObject(en))return!1;var nn=my(en);return!0===nn?uncaughtFrozenStore(tn).has(en):nn&&has(nn,tn.id)}}),redefineAll(an.prototype,nn?{get:function get(en){var tn=sn(this);if(isObject(en)){var nn=my(en);return!0===nn?uncaughtFrozenStore(tn).get(en):nn?nn[tn.id]:void 0}},set:function set(en,tn){return define(this,en,tn)}}:{add:function add(en){return define(this,en,!0)}}),an}};createCommonjsModule((function(en){var tn,rn=Kn.enforce,an=!nn.ActiveXObject&&"ActiveXObject"in nn,sn=Object.isExtensible,wrapper=function(en){return function WeakMap(){return en(this,arguments.length?arguments[0]:void 0)}},cn=en.exports=collection("WeakMap",wrapper,xy);if(Nn&&an){tn=xy.getConstructor(wrapper,"WeakMap",!0),Jp.REQUIRED=!0;var un=cn.prototype,dn=un.delete,pn=un.has,hn=un.get,gn=un.set;redefineAll(un,{delete:function(en){if(isObject(en)&&!sn(en)){var nn=rn(this);return nn.frozen||(nn.frozen=new tn),dn.call(this,en)||nn.frozen.delete(en)}return dn.call(this,en)},has:function has(en){if(isObject(en)&&!sn(en)){var nn=rn(this);return nn.frozen||(nn.frozen=new tn),pn.call(this,en)||nn.frozen.has(en)}return pn.call(this,en)},get:function get(en){if(isObject(en)&&!sn(en)){var nn=rn(this);return nn.frozen||(nn.frozen=new tn),pn.call(this,en)?hn.call(this,en):nn.frozen.get(en)}return hn.call(this,en)},set:function set(en,nn){if(isObject(en)&&!sn(en)){var an=rn(this);an.frozen||(an.frozen=new tn),pn.call(this,en)?gn.call(this,en,nn):an.frozen.set(en,nn)}else gn.call(this,en,nn);return this}})}}));var Sy=Function.toString;"function"!=typeof ov.inspectSource&&(ov.inspectSource=function(en){return Sy.call(en)});var Cy,ky,By,Ey=ov.inspectSource,Py=dm.WeakMap,Ly="function"==typeof Py&&/native code/.test(Ey(Py)),Ty=av("keys"),Ny=function sharedKey(en){return Ty[en]||(Ty[en]=uv(en))},Iy={},Oy=dm.WeakMap;if(Ly){var Fy=ov.state||(ov.state=new Oy),Uy=Fy.get,My=Fy.has,Ry=Fy.set;Cy=function set(en,tn){return tn.facade=en,Ry.call(Fy,en,tn),tn},ky=function get(en){return Uy.call(Fy,en)||{}},By=function has(en){return My.call(Fy,en)}}else{var Dy=Ny("state");Iy[Dy]=!0,Cy=function set(en,tn){return tn.facade=en,Wm(en,Dy,tn),tn},ky=function get(en){return Pm(en,Dy)?en[Dy]:{}},By=function has(en){return Pm(en,Dy)}}var jy={set:Cy,get:ky,has:By,enforce:function enforce(en){return By(en)?ky(en):Cy(en,{})},getterFor:function getterFor(en){return function(tn){var nn;if(!km(tn)||(nn=ky(tn)).type!==en)throw TypeError("Incompatible receiver, "+en+" required");return nn}}},Qy=!pm((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Hy=Ny("IE_PROTO"),Gy=Object.prototype,Vy=Qy?Object.getPrototypeOf:function(en){return en=jv(en),Pm(en,Hy)?en[Hy]:"function"==typeof en.constructor&&en instanceof en.constructor?en.constructor.prototype:en instanceof Object?Gy:null};Av("iterator");var zy,Ky,qy,$y=!1;[].keys&&("next"in(qy=[].keys())?(Ky=Vy(Vy(qy)))!==Object.prototype&&(zy=Ky):$y=!0),null==zy&&(zy={});var Wy,Xy={IteratorPrototype:zy,BUGGY_SAFARI_ITERATORS:$y},Yy=Math.max,Jy=Math.min,Zy=function toAbsoluteIndex(en,tn){var nn=tv(en);return nn<0?Yy(nn+tn,0):Jy(nn,tn)},e_=function createMethod(en){return function(tn,nn,rn){var an,sn=Cm(tn),cn=rv(sn.length),un=Zy(rn,cn);if(en&&nn!=nn){for(;cn>un;)if((an=sn[un++])!=an)return!0}else for(;cn>un;un++)if((en||un in sn)&&sn[un]===nn)return en||un||0;return!en&&-1}},t_={includes:e_(!0),indexOf:e_(!1)},n_=t_.indexOf,r_=function objectKeysInternal(en,tn){var nn,rn=Cm(en),an=0,sn=[];for(nn in rn)!Pm(Iy,nn)&&Pm(rn,nn)&&sn.push(nn);for(;tn.length>an;)Pm(rn,nn=tn[an++])&&(~n_(sn,nn)||sn.push(nn));return sn},i_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],o_=Object.keys||function keys(en){return r_(en,i_)},a_=hm?Object.defineProperties:function defineProperties(en,tn){Km(en);for(var nn,rn=o_(tn),an=rn.length,sn=0;an>sn;)$m.f(en,nn=rn[sn++],tn[nn]);return en},s_=$v("document","documentElement"),l_=Ny("IE_PROTO"),c_=function EmptyConstructor(){},u_=function scriptTag(en){return"<script>"+en+"</"+"script>"},d_=function NullProtoObject(){try{Wy=document.domain&&new ActiveXObject("htmlfile")}catch(en){}d_=Wy?function NullProtoObjectViaActiveX(en){en.write(u_("")),en.close();var tn=en.parentWindow.Object;return en=null,tn}(Wy):function NullProtoObjectViaIFrame(){var en,tn=Nm("iframe");return tn.style.display="none",s_.appendChild(tn),tn.src=String("javascript:"),(en=tn.contentWindow.document).open(),en.write(u_("document.F=Object")),en.close(),en.F}();for(var en=i_.length;en--;)delete d_.prototype[i_[en]];return d_()};Iy[l_]=!0;var p_=Object.create||function create(en,tn){var nn;return null!==en?(c_.prototype=Km(en),nn=new c_,c_.prototype=null,nn[l_]=en):nn=d_(),void 0===tn?nn:a_(nn,tn)},h_={};h_[Av("toStringTag")]="z";var g_="[object z]"===String(h_),f_=Av("toStringTag"),A_="Arguments"==ym(function(){return arguments}()),m_=g_?ym:function(en){var tn,nn,rn;return void 0===en?"Undefined":null===en?"Null":"string"==typeof(nn=function tryGet(en,tn){try{return en[tn]}catch(en){}}(tn=Object(en),f_))?nn:A_?ym(tn):"Object"==(rn=ym(tn))&&"function"==typeof tn.callee?"Arguments":rn},v_=g_?{}.toString:function toString(){return"[object "+m_(this)+"]"},y_=$m.f,w_=Av("toStringTag"),x_=function setToStringTag(en,tn,nn,rn){if(en){var an=nn?en:en.prototype;Pm(an,w_)||y_(an,w_,{configurable:!0,value:tn}),rn&&!g_&&Wm(an,"toString",v_)}},S_=Xy.IteratorPrototype,C_=function returnThis(){return this},k_=Object.setPrototypeOf||("__proto__"in{}?function(){var en,tn=!1,nn={};try{(en=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(nn,[]),tn=nn instanceof Array}catch(en){}return function setPrototypeOf(nn,rn){return Km(nn),function aPossiblePrototype(en){if(!km(en)&&null!==en)throw TypeError("Can't set "+String(en)+" as a prototype")}(rn),tn?en.call(nn,rn):nn.__proto__=rn,nn}}():void 0),B_=function redefine(en,tn,nn,rn){rn&&rn.enumerable?en[tn]=nn:Wm(en,tn,nn)},E_=Xy.IteratorPrototype,P_=Xy.BUGGY_SAFARI_ITERATORS,L_=Av("iterator"),T_="keys",N_="values",I_="entries",O_=function returnThis(){return this},F_=function defineIterator(en,tn,nn,rn,an,sn,cn){!function createIteratorConstructor(en,tn,nn){var rn=tn+" Iterator";en.prototype=p_(S_,{next:mm(1,nn)}),x_(en,rn,!1,!0),Ay[rn]=C_}(nn,tn,rn);var un,dn,pn,hn=function getIterationMethod(en){if(en===an&&yn)return yn;if(!P_&&en in mn)return mn[en];switch(en){case T_:return function keys(){return new nn(this,en)};case N_:return function values(){return new nn(this,en)};case I_:return function entries(){return new nn(this,en)}}return function(){return new nn(this)}},gn=tn+" Iterator",An=!1,mn=en.prototype,vn=mn[L_]||mn["@@iterator"]||an&&mn[an],yn=!P_&&vn||hn(an),_n="Array"==tn&&mn.entries||vn;if(_n&&(un=Vy(_n.call(new en)),E_!==Object.prototype&&un.next&&(x_(un,gn,!0,!0),Ay[gn]=O_)),an==N_&&vn&&vn.name!==N_&&(An=!0,yn=function values(){return vn.call(this)}),cn&&mn[L_]!==yn&&Wm(mn,L_,yn),Ay[tn]=yn,an)if(dn={values:hn(N_),keys:sn?yn:hn(T_),entries:hn(I_)},cn)for(pn in dn)(P_||An||!(pn in mn))&&B_(mn,pn,dn[pn]);else Jm({target:tn,proto:!0,forced:P_||An},dn);return dn},U_="Array Iterator",M_=jy.set,R_=jy.getterFor(U_);F_(Array,"Array",(function(en,tn){M_(this,{type:U_,target:Cm(en),index:0,kind:tn})}),(function(){var en=R_(this),tn=en.target,nn=en.kind,rn=en.index++;return!tn||rn>=tn.length?(en.target=void 0,{value:void 0,done:!0}):"keys"==nn?{value:rn,done:!1}:"values"==nn?{value:tn[rn],done:!1}:{value:[rn,tn[rn]],done:!1}}),"values"),Ay.Arguments=Ay.Array;var D_=Av("toStringTag");for(var j_ in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Q_=dm[j_],H_=Q_&&Q_.prototype;H_&&m_(H_)!==D_&&Wm(H_,D_,j_),Ay[j_]=Ay.Array}var G_=function createMethod(en){return function(tn,nn){var rn,an,sn=String(Sm(tn)),cn=tv(nn),un=sn.length;return cn<0||cn>=un?en?"":void 0:(rn=sn.charCodeAt(cn))<55296||rn>56319||cn+1===un||(an=sn.charCodeAt(cn+1))<56320||an>57343?en?sn.charAt(cn):rn:en?sn.slice(cn,cn+2):an-56320+(rn-55296<<10)+65536}},V_={codeAt:G_(!1),charAt:G_(!0)}.charAt,z_="String Iterator",K_=jy.set,q_=jy.getterFor(z_);F_(String,"String",(function(en){K_(this,{type:z_,string:String(en),index:0})}),(function next(){var en,tn=q_(this),nn=tn.string,rn=tn.index;return rn>=nn.length?{value:void 0,done:!0}:(en=V_(nn,rn),tn.index+=en.length,{value:en,done:!1})}));var $_=Av("iterator"),W_=function getIteratorMethod(en){if(null!=en)return en[$_]||en["@@iterator"]||Ay[m_(en)]},X_=function getIterator(en){var tn=W_(en);if("function"!=typeof tn)throw TypeError(String(en)+" is not iterable");return Km(tn.call(en))},Y_=Av("iterator"),J_=function isIterable(en){var tn=Object(en);return void 0!==tn[Y_]||"@@iterator"in tn||Ay.hasOwnProperty(m_(tn))},Z_=function createProperty(en,tn,nn){var rn=Bm(tn);rn in en?$m.f(en,rn,mm(0,nn)):en[rn]=nn},eb=Av("isConcatSpreadable"),tb=9007199254740991,nb="Maximum allowed index exceeded",rb=Zv>=51||!pm((function(){var en=[];return en[eb]=!1,en.concat()[0]!==en})),ib=ty("concat"),ob=function isConcatSpreadable(en){if(!km(en))return!1;var tn=en[eb];return void 0!==tn?!!tn:Qv(en)};Jm({target:"Array",proto:!0,forced:!rb||!ib},{concat:function concat(en){var tn,nn,rn,an,sn,cn=jv(this),un=Gv(cn,0),dn=0;for(tn=-1,rn=arguments.length;tn<rn;tn++)if(ob(sn=-1===tn?cn:arguments[tn])){if(dn+(an=rv(sn.length))>tb)throw TypeError(nb);for(nn=0;nn<an;nn++,dn++)nn in sn&&Z_(un,dn,sn[nn])}else{if(dn>=tb)throw TypeError(nb);Z_(un,dn++,sn)}return un.length=dn,un}});var ab=i_.concat("length","prototype"),sb={f:Object.getOwnPropertyNames||function getOwnPropertyNames(en){return r_(en,ab)}},lb=sb.f,ub={}.toString,db="object"==("undefined"==typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pb={f:function getOwnPropertyNames(en){return db&&"[object Window]"==ub.call(en)?function getWindowNames(en){try{return lb(en)}catch(en){return db.slice()}}(en):lb(Cm(en))}},hb={f:Object.getOwnPropertySymbols},gb={f:Av},fb=$m.f,Ab=function defineWellKnownSymbol(en){var tn=Gm.Symbol||(Gm.Symbol={});Pm(tn,en)||fb(tn,en,{value:gb.f(en)})},mb=Kv.forEach,vb=Ny("hidden"),yb="Symbol",_b=Av("toPrimitive"),bb=jy.set,wb=jy.getterFor(yb),xb=Object.prototype,Sb=dm.Symbol,Cb=$v("JSON","stringify"),kb=Fm.f,Bb=$m.f,Eb=pb.f,Pb=Am.f,Lb=av("symbols"),Tb=av("op-symbols"),Nb=av("string-to-symbol-registry"),Ib=av("symbol-to-string-registry"),Ob=av("wks"),Fb=dm.QObject,Ub=!Fb||!Fb.prototype||!Fb.prototype.findChild,Mb=hm&&pm((function(){return 7!=p_(Bb({},"a",{get:function get(){return Bb(this,"a",{value:7}).a}})).a}))?function(en,tn,nn){var rn=kb(xb,tn);rn&&delete xb[tn],Bb(en,tn,nn),rn&&en!==xb&&Bb(xb,tn,rn)}:Bb,Rb=function wrap(en,tn){var nn=Lb[en]=p_(Sb.prototype);return bb(nn,{type:yb,tag:en,description:tn}),hm||(nn.description=tn),nn},Db=pv?function(en){return"symbol"==_typeof(en)}:function(en){return Object(en)instanceof Sb},jb=function defineProperty(en,tn,nn){en===xb&&jb(Tb,tn,nn),Km(en);var rn=Bm(tn,!0);return Km(nn),Pm(Lb,rn)?(nn.enumerable?(Pm(en,vb)&&en[vb][rn]&&(en[vb][rn]=!1),nn=p_(nn,{enumerable:mm(0,!1)})):(Pm(en,vb)||Bb(en,vb,mm(1,{})),en[vb][rn]=!0),Mb(en,rn,nn)):Bb(en,rn,nn)},Qb=function defineProperties(en,tn){Km(en);var nn=Cm(tn),rn=o_(nn).concat(zb(nn));return mb(rn,(function(tn){hm&&!Hb.call(nn,tn)||jb(en,tn,nn[tn])})),en},Hb=function propertyIsEnumerable(en){var tn=Bm(en,!0),nn=Pb.call(this,tn);return!(this===xb&&Pm(Lb,tn)&&!Pm(Tb,tn))&&(!(nn||!Pm(this,tn)||!Pm(Lb,tn)||Pm(this,vb)&&this[vb][tn])||nn)},Gb=function getOwnPropertyDescriptor(en,tn){var nn=Cm(en),rn=Bm(tn,!0);if(nn!==xb||!Pm(Lb,rn)||Pm(Tb,rn)){var an=kb(nn,rn);return!an||!Pm(Lb,rn)||Pm(nn,vb)&&nn[vb][rn]||(an.enumerable=!0),an}},Vb=function getOwnPropertyNames(en){var tn=Eb(Cm(en)),nn=[];return mb(tn,(function(en){Pm(Lb,en)||Pm(Iy,en)||nn.push(en)})),nn},zb=function getOwnPropertySymbols(en){var tn=en===xb,nn=Eb(tn?Tb:Cm(en)),rn=[];return mb(nn,(function(en){!Pm(Lb,en)||tn&&!Pm(xb,en)||rn.push(Lb[en])})),rn};if(dv||(B_((Sb=function _Symbol(){if(this instanceof Sb)throw TypeError("Symbol is not a constructor");var en=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,tn=uv(en),nn=function setter(en){this===xb&&setter.call(Tb,en),Pm(this,vb)&&Pm(this[vb],tn)&&(this[vb][tn]=!1),Mb(this,tn,mm(1,en))};return hm&&Ub&&Mb(xb,tn,{configurable:!0,set:nn}),Rb(tn,en)}).prototype,"toString",(function toString(){return wb(this).tag})),B_(Sb,"withoutSetter",(function(en){return Rb(uv(en),en)})),Am.f=Hb,$m.f=jb,Fm.f=Gb,sb.f=pb.f=Vb,hb.f=zb,gb.f=function(en){return Rb(Av(en),en)},hm&&Bb(Sb.prototype,"description",{configurable:!0,get:function description(){return wb(this).description}})),Jm({global:!0,wrap:!0,forced:!dv,sham:!dv},{Symbol:Sb}),mb(o_(Ob),(function(en){Ab(en)})),Jm({target:yb,stat:!0,forced:!dv},{for:function _for(en){var tn=String(en);if(Pm(Nb,tn))return Nb[tn];var nn=Sb(tn);return Nb[tn]=nn,Ib[nn]=tn,nn},keyFor:function keyFor(en){if(!Db(en))throw TypeError(en+" is not a symbol");if(Pm(Ib,en))return Ib[en]},useSetter:function useSetter(){Ub=!0},useSimple:function useSimple(){Ub=!1}}),Jm({target:"Object",stat:!0,forced:!dv,sham:!hm},{create:function create(en,tn){return void 0===tn?p_(en):Qb(p_(en),tn)},defineProperty:jb,defineProperties:Qb,getOwnPropertyDescriptor:Gb}),Jm({target:"Object",stat:!0,forced:!dv},{getOwnPropertyNames:Vb,getOwnPropertySymbols:zb}),Jm({target:"Object",stat:!0,forced:pm((function(){hb.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(en){return hb.f(jv(en))}}),Cb){var Kb=!dv||pm((function(){var en=Sb();return"[null]"!=Cb([en])||"{}"!=Cb({a:en})||"{}"!=Cb(Object(en))}));Jm({target:"JSON",stat:!0,forced:Kb},{stringify:function stringify(en,tn,nn){for(var rn,an=[en],sn=1;arguments.length>sn;)an.push(arguments[sn++]);if(rn=tn,(km(tn)||void 0!==en)&&!Db(en))return Qv(tn)||(tn=function replacer(en,tn){if("function"==typeof rn&&(tn=rn.call(this,en,tn)),!Db(tn))return tn}),an[1]=tn,Cb.apply(null,an)}})}Sb.prototype[_b]||Wm(Sb.prototype,_b,Sb.prototype.valueOf),x_(Sb,yb),Iy[vb]=!0,Ab("asyncIterator"),Ab("hasInstance"),Ab("isConcatSpreadable"),Ab("iterator"),Ab("match"),Ab("matchAll"),Ab("replace"),Ab("search"),Ab("species"),Ab("split"),Ab("toPrimitive"),Ab("toStringTag"),Ab("unscopables"),x_(dm.JSON,"JSON",!0);var qb=Gm.Symbol;Ab("asyncDispose"),Ab("dispose"),Ab("observable"),Ab("patternMatch"),Ab("replaceAll");var $b=qb;var Wb=function _iterableToArrayLimit$1(en,tn){if(void 0!==$b&&J_(Object(en))){var nn=[],rn=!0,an=!1,sn=void 0;try{for(var cn,un=X_(en);!(rn=(cn=un.next()).done)&&(nn.push(cn.value),!tn||nn.length!==tn);rn=!0);}catch(en){an=!0,sn=en}finally{try{rn||null==un.return||un.return()}finally{if(an)throw sn}}return nn}},Xb=function iteratorClose(en){var tn=en.return;if(void 0!==tn)return Km(tn.call(en)).value},Yb=function callWithSafeIterationClosing(en,tn,nn,rn){try{return rn?tn(Km(nn)[0],nn[1]):tn(nn)}catch(tn){throw Xb(en),tn}},Jb=Av("iterator"),Zb=Array.prototype,ew=function isArrayIteratorMethod(en){return void 0!==en&&(Ay.Array===en||Zb[Jb]===en)},tw=Av("iterator"),nw=!1;try{var rw=0,iw={next:function next(){return{done:!!rw++}},return:function _return(){nw=!0}};iw[tw]=function(){return this},Array.from(iw,(function(){throw 2}))}catch(en){}var ow=function checkCorrectnessOfIteration(en,tn){if(!tn&&!nw)return!1;var nn=!1;try{var rn={};rn[tw]=function(){return{next:function next(){return{done:nn=!0}}}},en(rn)}catch(en){}return nn},aw=!ow((function(en){Array.from(en)}));Jm({target:"Array",stat:!0,forced:aw},{from:function from(en){var tn,nn,rn,an,sn,cn,un=jv(en),dn="function"==typeof this?this:Array,pn=arguments.length,hn=pn>1?arguments[1]:void 0,gn=void 0!==hn,An=W_(un),mn=0;if(gn&&(hn=zm(hn,pn>2?arguments[2]:void 0,2)),null==An||dn==Array&&ew(An))for(nn=new dn(tn=rv(un.length));tn>mn;mn++)cn=gn?hn(un[mn],mn):un[mn],Z_(nn,mn,cn);else for(sn=(an=An.call(un)).next,nn=new dn;!(rn=sn.call(an)).done;mn++)cn=gn?Yb(an,hn,[rn.value,mn],!0):rn.value,Z_(nn,mn,cn);return nn.length=mn,nn}});var sw=Gm.Array.from,lw=sw,cw=ty("slice"),uw=oy("slice",{ACCESSORS:!0,0:0,1:2}),dw=Av("species"),pw=[].slice,hw=Math.max;Jm({target:"Array",proto:!0,forced:!cw||!uw},{slice:function slice(en,tn){var nn,rn,an,sn=Cm(this),cn=rv(sn.length),un=Zy(en,cn),dn=Zy(void 0===tn?cn:tn,cn);if(Qv(sn)&&("function"!=typeof(nn=sn.constructor)||nn!==Array&&!Qv(nn.prototype)?km(nn)&&null===(nn=nn[dw])&&(nn=void 0):nn=void 0,nn===Array||void 0===nn))return pw.call(sn,un,dn);for(rn=new(void 0===nn?Array:nn)(hw(dn-un,0)),an=0;un<dn;un++,an++)un in sn&&Z_(rn,an,sn[un]);return rn.length=an,rn}});var gw=Sv("Array").slice,fw=Array.prototype,Aw=function slice_1(en){var tn=en.slice;return en===fw||en instanceof Array&&tn===fw.slice?gw:tn},mw=Aw;var vw=function _arrayLikeToArray$1(en,tn){(null==tn||tn>en.length)&&(tn=en.length);for(var nn=0,rn=new Array(tn);nn<tn;nn++)rn[nn]=en[nn];return rn};var yw=function _unsupportedIterableToArray$1(en,tn){var nn;if(en){if("string"==typeof en)return vw(en,tn);var rn=mw(nn=Object.prototype.toString.call(en)).call(nn,8,-1);return"Object"===rn&&en.constructor&&(rn=en.constructor.name),"Map"===rn||"Set"===rn?lw(en):"Arguments"===rn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rn)?vw(en,tn):void 0}};var _w=function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var bw=function _slicedToArray$1(en,tn){return fy(en)||Wb(en,tn)||yw(en,tn)||_w()};Jm({target:"Object",stat:!0,forced:!hm,sham:!hm},{defineProperty:$m.f});var ww=createCommonjsModule((function(en){var tn=Gm.Object,nn=en.exports=function defineProperty(en,nn,rn){return tn.defineProperty(en,nn,rn)};tn.defineProperty.sham&&(nn.sham=!0)})),xw=ww;Jm({target:"Object",stat:!0,forced:!hm,sham:!hm},{defineProperties:a_});var Sw=createCommonjsModule((function(en){var tn=Gm.Object,nn=en.exports=function defineProperties(en,nn){return tn.defineProperties(en,nn)};tn.defineProperties.sham&&(nn.sham=!0)})),Cw=$v("Reflect","ownKeys")||function ownKeys(en){var tn=sb.f(Km(en)),nn=hb.f;return nn?tn.concat(nn(en)):tn};Jm({target:"Object",stat:!0,sham:!hm},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(en){for(var tn,nn,rn=Cm(en),an=Fm.f,sn=Cw(rn),cn={},un=0;sn.length>un;)void 0!==(nn=an(rn,tn=sn[un++]))&&Z_(cn,tn,nn);return cn}});var kw=Gm.Object.getOwnPropertyDescriptors,Bw=function arrayMethodIsStrict(en,tn){var nn=[][en];return!!nn&&pm((function(){nn.call(null,tn||function(){throw 1},1)}))},Ew=Kv.forEach,Pw=Bw("forEach"),Lw=oy("forEach"),Tw=Pw&&Lw?[].forEach:function forEach(en){return Ew(this,en,arguments.length>1?arguments[1]:void 0)};Jm({target:"Array",proto:!0,forced:[].forEach!=Tw},{forEach:Tw});var Nw=Sv("Array").forEach,Iw=Array.prototype,Ow={DOMTokenList:!0,NodeList:!0},Fw=function forEach_1(en){var tn=en.forEach;return en===Iw||en instanceof Array&&tn===Iw.forEach||Ow.hasOwnProperty(m_(en))?Nw:tn},Uw=Fm.f,Mw=pm((function(){Uw(1)}));Jm({target:"Object",stat:!0,forced:!hm||Mw,sham:!hm},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(en,tn){return Uw(Cm(en),tn)}});var Rw=createCommonjsModule((function(en){var tn=Gm.Object,nn=en.exports=function getOwnPropertyDescriptor(en,nn){return tn.getOwnPropertyDescriptor(en,nn)};tn.getOwnPropertyDescriptor.sham&&(nn.sham=!0)})),Dw=Rw,jw=Kv.filter,Qw=ty("filter"),Hw=oy("filter");Jm({target:"Array",proto:!0,forced:!Qw||!Hw},{filter:function filter(en){return jw(this,en,arguments.length>1?arguments[1]:void 0)}});var Gw=Sv("Array").filter,Vw=Array.prototype,zw=function filter_1(en){var tn=en.filter;return en===Vw||en instanceof Array&&tn===Vw.filter?Gw:tn},Kw=Gm.Object.getOwnPropertySymbols,qw=pm((function(){o_(1)}));Jm({target:"Object",stat:!0,forced:qw},{keys:function keys(en){return o_(jv(en))}});var $w=Gm.Object.keys,Ww=Qc,Xw=function Result(en,tn){this.stopped=en,this.result=tn},Yw=function iterate(en,tn,nn){var rn,an,sn,cn,un,dn,pn,hn=nn&&nn.that,gn=!(!nn||!nn.AS_ENTRIES),An=!(!nn||!nn.IS_ITERATOR),mn=!(!nn||!nn.INTERRUPTED),vn=zm(tn,hn,1+gn+mn),yn=function stop(en){return rn&&Xb(rn),new Xw(!0,en)},_n=function callFn(en){return gn?(Km(en),mn?vn(en[0],en[1],yn):vn(en[0],en[1])):mn?vn(en,yn):vn(en)};if(An)rn=en;else{if("function"!=typeof(an=W_(en)))throw TypeError("Target is not iterable");if(ew(an)){for(sn=0,cn=rv(en.length);cn>sn;sn++)if((un=_n(en[sn]))&&un instanceof Xw)return un;return new Xw(!1)}rn=an.call(en)}for(dn=rn.next;!(pn=dn.call(rn)).done;){try{un=_n(pn.value)}catch(en){throw Xb(rn),en}if("object"==_typeof(un)&&un&&un instanceof Xw)return un}return new Xw(!1)},Jw=function AggregateError(en,tn){var nn=this;if(!(nn instanceof Jw))return new Jw(en,tn);k_&&(nn=k_(new Error(void 0),Vy(nn))),void 0!==tn&&Wm(nn,"message",String(tn));var rn=[];return Yw(en,rn.push,{that:rn}),Wm(nn,"errors",rn),nn};Jw.prototype=p_(Error.prototype,{constructor:mm(5,Jw),message:mm(5,""),name:mm(5,"AggregateError")}),Jm({global:!0},{AggregateError:Jw});var Zw=!!Ts&&fails((function(){Ts.prototype.finally.call({then:function(){}},(function(){}))}));_export({target:"Promise",proto:!0,real:!0,forced:Zw},{finally:function(en){var tn=speciesConstructor(this,getBuiltIn("Promise")),nn="function"==typeof en;return this.then(nn?function(nn){return promiseResolve(tn,en()).then((function(){return nn}))}:en,nn?function(nn){return promiseResolve(tn,en()).then((function(){throw nn}))}:en)}}),"function"!=typeof Ts||Ts.prototype.finally||qn(Ts.prototype,"finally",getBuiltIn("Promise").prototype.finally);var ex=dm.Promise,tx=function redefineAll(en,tn,nn){for(var rn in tn)nn&&nn.unsafe&&en[rn]?en[rn]=tn[rn]:B_(en,rn,tn[rn],nn);return en},nx=Av("species"),rx=function setSpecies(en){var tn=$v(en),nn=$m.f;hm&&tn&&!tn[nx]&&nn(tn,nx,{configurable:!0,get:function get(){return this}})},ix=function anInstance(en,tn,nn){if(!(en instanceof tn))throw TypeError("Incorrect "+(nn?nn+" ":"")+"invocation");return en},ox=Av("species"),ax=function speciesConstructor(en,tn){var nn,rn=Km(en).constructor;return void 0===rn||null==(nn=Km(rn)[ox])?tn:Vm(nn)},sx=!nn.setImmediate||!nn.clearImmediate;_export({global:!0,bind:!0,enumerable:!0,forced:sx},{setImmediate:sl.set,clearImmediate:sl.clear});var lx,cx,ux,dx=/(iphone|ipod|ipad).*applewebkit/i.test(Wv),px="process"==ym(dm.process),hx=dm.location,gx=dm.setImmediate,Ax=dm.clearImmediate,mx=dm.process,vx=dm.MessageChannel,yx=dm.Dispatch,_x=0,bx={},wx="onreadystatechange",xx=function run(en){if(bx.hasOwnProperty(en)){var tn=bx[en];delete bx[en],tn()}},Sx=function runner(en){return function(){xx(en)}},Cx=function listener(en){xx(en.data)},kx=function post(en){dm.postMessage(en+"",hx.protocol+"//"+hx.host)};gx&&Ax||(gx=function setImmediate(en){for(var tn=[],nn=1;arguments.length>nn;)tn.push(arguments[nn++]);return bx[++_x]=function(){("function"==typeof en?en:Function(en)).apply(void 0,tn)},lx(_x),_x},Ax=function clearImmediate(en){delete bx[en]},px?lx=function defer(en){mx.nextTick(Sx(en))}:yx&&yx.now?lx=function defer(en){yx.now(Sx(en))}:vx&&!dx?(ux=(cx=new vx).port2,cx.port1.onmessage=Cx,lx=zm(ux.postMessage,ux,1)):dm.addEventListener&&"function"==typeof postMessage&&!dm.importScripts&&hx&&"file:"!==hx.protocol&&!pm(kx)?(lx=kx,dm.addEventListener("message",Cx,!1)):lx=wx in Nm("script")?function defer(en){s_.appendChild(Nm("script")).onreadystatechange=function(){s_.removeChild(this),xx(en)}}:function defer(en){setTimeout(Sx(en),0)});var Bx,Ex,Px,Lx,Tx,Nx,Ix,Ox,Fx={set:gx,clear:Ax},Ux=Fm.f,Mx=Fx.set,Rx=dm.MutationObserver||dm.WebKitMutationObserver,Dx=dm.document,jx=dm.process,Qx=dm.Promise,Hx=Ux(dm,"queueMicrotask"),Gx=Hx&&Hx.value;Gx||(Bx=function flush(){var en,tn;for(px&&(en=jx.domain)&&en.exit();Ex;){tn=Ex.fn,Ex=Ex.next;try{tn()}catch(en){throw Ex?Lx():Px=void 0,en}}Px=void 0,en&&en.enter()},!dx&&!px&&Rx&&Dx?(Tx=!0,Nx=Dx.createTextNode(""),new Rx(Bx).observe(Nx,{characterData:!0}),Lx=function notify(){Nx.data=Tx=!Tx}):Qx&&Qx.resolve?(Ix=Qx.resolve(void 0),Ox=Ix.then,Lx=function notify(){Ox.call(Ix,Bx)}):Lx=px?function notify(){jx.nextTick(Bx)}:function notify(){Mx.call(dm,Bx)});var Vx=Gx||function(en){var tn={fn:en,next:void 0};Px&&(Px.next=tn),Ex||(Ex=tn,Lx()),Px=tn},zx=function PromiseCapability(en){var tn,nn;this.promise=new en((function(en,rn){if(void 0!==tn||void 0!==nn)throw TypeError("Bad Promise constructor");tn=en,nn=rn})),this.resolve=Vm(tn),this.reject=Vm(nn)},Kx={f:function f(en){return new zx(en)}},qx=function promiseResolve(en,tn){if(Km(en),km(tn)&&tn.constructor===en)return tn;var nn=Kx.f(en);return(0,nn.resolve)(tn),nn.promise},$x=function perform(en){try{return{error:!1,value:en()}}catch(en){return{error:!0,value:en}}},Wx=Fx.set,Xx=Av("species"),Yx="Promise",Jx=jy.get,Zx=jy.set,eS=jy.getterFor(Yx),tS=ex,nS=dm.TypeError,rS=dm.document,iS=dm.process;$v("fetch");var oS,aS,sS,lS=Kx.f,cS=lS,uS=!!(rS&&rS.createEvent&&dm.dispatchEvent),dS="function"==typeof PromiseRejectionEvent,pS="unhandledrejection",hS=Hm(Yx,(function(){if(!(Ey(tS)!==String(tS))){if(66===Zv)return!0;if(!px&&!dS)return!0}if(!tS.prototype.finally)return!0;if(Zv>=51&&/native code/.test(tS))return!1;var en=tS.resolve(1),tn=function FakePromise(en){en((function(){}),(function(){}))};return(en.constructor={})[Xx]=tn,!(en.then((function(){}))instanceof tn)})),gS=hS||!ow((function(en){tS.all(en).catch((function(){}))})),fS=function isThenable(en){var tn;return!(!km(en)||"function"!=typeof(tn=en.then))&&tn},AS=function notify(en,tn){if(!en.notified){en.notified=!0;var nn=en.reactions;Vx((function(){for(var rn=en.value,an=1==en.state,sn=0;nn.length>sn;){var cn,un,dn,pn=nn[sn++],hn=an?pn.ok:pn.fail,gn=pn.resolve,An=pn.reject,mn=pn.domain;try{hn?(an||(2===en.rejection&&_S(en),en.rejection=1),!0===hn?cn=rn:(mn&&mn.enter(),cn=hn(rn),mn&&(mn.exit(),dn=!0)),cn===pn.promise?An(nS("Promise-chain cycle")):(un=fS(cn))?un.call(cn,gn,An):gn(cn)):An(rn)}catch(en){mn&&!dn&&mn.exit(),An(en)}}en.reactions=[],en.notified=!1,tn&&!en.rejection&&vS(en)}))}},mS=function dispatchEvent(en,tn,nn){var rn,an;uS?((rn=rS.createEvent("Event")).promise=tn,rn.reason=nn,rn.initEvent(en,!1,!0),dm.dispatchEvent(rn)):rn={promise:tn,reason:nn},!dS&&(an=dm["on"+en])?an(rn):en===pS&&function hostReportErrors(en,tn){var nn=dm.console;nn&&nn.error&&(1===arguments.length?nn.error(en):nn.error(en,tn))}("Unhandled promise rejection",nn)},vS=function onUnhandled(en){Wx.call(dm,(function(){var tn,nn=en.facade,rn=en.value;if(yS(en)&&(tn=$x((function(){px?iS.emit("unhandledRejection",rn,nn):mS(pS,nn,rn)})),en.rejection=px||yS(en)?2:1,tn.error))throw tn.value}))},yS=function isUnhandled(en){return 1!==en.rejection&&!en.parent},_S=function onHandleUnhandled(en){Wx.call(dm,(function(){var tn=en.facade;px?iS.emit("rejectionHandled",tn):mS("rejectionhandled",tn,en.value)}))},bS=function bind(en,tn,nn){return function(rn){en(tn,rn,nn)}},wS=function internalReject(en,tn,nn){en.done||(en.done=!0,nn&&(en=nn),en.value=tn,en.state=2,AS(en,!0))},xS=function internalResolve(en,tn,nn){if(!en.done){en.done=!0,nn&&(en=nn);try{if(en.facade===tn)throw nS("Promise can't be resolved itself");var rn=fS(tn);rn?Vx((function(){var nn={done:!1};try{rn.call(tn,bS(internalResolve,nn,en),bS(wS,nn,en))}catch(tn){wS(nn,tn,en)}})):(en.value=tn,en.state=1,AS(en,!1))}catch(tn){wS({done:!1},tn,en)}}};hS&&(tS=function Promise(en){ix(this,tS,Yx),Vm(en),oS.call(this);var tn=Jx(this);try{en(bS(xS,tn),bS(wS,tn))}catch(en){wS(tn,en)}},(oS=function Promise(en){Zx(this,{type:Yx,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=tx(tS.prototype,{then:function then(en,tn){var nn=eS(this),rn=lS(ax(this,tS));return rn.ok="function"!=typeof en||en,rn.fail="function"==typeof tn&&tn,rn.domain=px?iS.domain:void 0,nn.parent=!0,nn.reactions.push(rn),0!=nn.state&&AS(nn,!1),rn.promise},catch:function _catch(en){return this.then(void 0,en)}}),aS=function OwnPromiseCapability(){var en=new oS,tn=Jx(en);this.promise=en,this.resolve=bS(xS,tn),this.reject=bS(wS,tn)},Kx.f=lS=function newPromiseCapability(en){return en===tS||en===sS?new aS(en):cS(en)}),Jm({global:!0,wrap:!0,forced:hS},{Promise:tS}),x_(tS,Yx,!1,!0),rx(Yx),sS=$v(Yx),Jm({target:Yx,stat:!0,forced:hS},{reject:function reject(en){var tn=lS(this);return tn.reject.call(void 0,en),tn.promise}}),Jm({target:Yx,stat:!0,forced:!0},{resolve:function resolve(en){return qx(this===sS?tS:this,en)}}),Jm({target:Yx,stat:!0,forced:gS},{all:function all(en){var tn=this,nn=lS(tn),rn=nn.resolve,an=nn.reject,sn=$x((function(){var nn=Vm(tn.resolve),sn=[],cn=0,un=1;Yw(en,(function(en){var dn=cn++,pn=!1;sn.push(void 0),un++,nn.call(tn,en).then((function(en){pn||(pn=!0,sn[dn]=en,--un||rn(sn))}),an)})),--un||rn(sn)}));return sn.error&&an(sn.value),nn.promise},race:function race(en){var tn=this,nn=lS(tn),rn=nn.reject,an=$x((function(){var an=Vm(tn.resolve);Yw(en,(function(en){an.call(tn,en).then(nn.resolve,rn)}))}));return an.error&&rn(an.value),nn.promise}}),Jm({target:"Promise",stat:!0},{allSettled:function allSettled(en){var tn=this,nn=Kx.f(tn),rn=nn.resolve,an=nn.reject,sn=$x((function(){var nn=Vm(tn.resolve),an=[],sn=0,cn=1;Yw(en,(function(en){var un=sn++,dn=!1;an.push(void 0),cn++,nn.call(tn,en).then((function(en){dn||(dn=!0,an[un]={status:"fulfilled",value:en},--cn||rn(an))}),(function(en){dn||(dn=!0,an[un]={status:"rejected",reason:en},--cn||rn(an))}))})),--cn||rn(an)}));return sn.error&&an(sn.value),nn.promise}});var SS="No one promise resolved";Jm({target:"Promise",stat:!0},{any:function any(en){var tn=this,nn=Kx.f(tn),rn=nn.resolve,an=nn.reject,sn=$x((function(){var nn=Vm(tn.resolve),sn=[],cn=0,un=1,dn=!1;Yw(en,(function(en){var pn=cn++,hn=!1;sn.push(void 0),un++,nn.call(tn,en).then((function(en){hn||dn||(dn=!0,rn(en))}),(function(en){hn||dn||(hn=!0,sn[pn]=en,--un||an(new($v("AggregateError"))(sn,SS)))}))})),--un||an(new($v("AggregateError"))(sn,SS))}));return sn.error&&an(sn.value),nn.promise}});var CS=!!ex&&pm((function(){ex.prototype.finally.call({then:function then(){}},(function(){}))}));Jm({target:"Promise",proto:!0,real:!0,forced:CS},{finally:function _finally(en){var tn=ax(this,$v("Promise")),nn="function"==typeof en;return this.then(nn?function(nn){return qx(tn,en()).then((function(){return nn}))}:en,nn?function(nn){return qx(tn,en()).then((function(){throw nn}))}:en)}});var kS=Gm.Promise;Jm({target:"Promise",stat:!0},{try:function _try(en){var tn=Kx.f(this),nn=$x(en);return(nn.error?tn.reject:tn.resolve)(nn.value),tn.promise}});var BS=kS;function asyncGeneratorStep$1(en,tn,nn,rn,an,sn,cn){try{var un=en[sn](cn),dn=un.value}catch(en){return void nn(en)}un.done?tn(dn):BS.resolve(dn).then(rn,an)}var ES=function _asyncToGenerator$1(en){return function(){var tn=this,nn=arguments;return new BS((function(rn,an){var sn=en.apply(tn,nn);function _next(en){asyncGeneratorStep$1(sn,rn,an,_next,_throw,"next",en)}function _throw(en){asyncGeneratorStep$1(sn,rn,an,_next,_throw,"throw",en)}_next(void 0)}))}},PS=ww;var LS=function _defineProperty$1(en,tn,nn){return tn in en?PS(en,tn,{value:nn,enumerable:!0,configurable:!0,writable:!0}):en[tn]=nn,en};var TS=function _classCallCheck$1(en,tn){if(!(en instanceof tn))throw new TypeError("Cannot call a class as a function")};function _defineProperties$1(en,tn){for(var nn=0;nn<tn.length;nn++){var rn=tn[nn];rn.enumerable=rn.enumerable||!1,rn.configurable=!0,"value"in rn&&(rn.writable=!0),PS(en,rn.key,rn)}}var NS=function _createClass$1(en,tn,nn){return tn&&_defineProperties$1(en.prototype,tn),nn&&_defineProperties$1(en,nn),en},IS=Sv("Array").concat,OS=Array.prototype,FS=function concat_1(en){var tn=en.concat;return en===OS||en instanceof Array&&tn===OS.concat?IS:tn},US=function createMethod(en){return function(tn,nn,rn,an){Vm(nn);var sn=jv(tn),cn=xm(sn),un=rv(sn.length),dn=en?un-1:0,pn=en?-1:1;if(rn<2)for(;;){if(dn in cn){an=cn[dn],dn+=pn;break}if(dn+=pn,en?dn<0:un<=dn)throw TypeError("Reduce of empty array with no initial value")}for(;en?dn>=0:un>dn;dn+=pn)dn in cn&&(an=nn(an,cn[dn],dn,sn));return an}},MS={left:US(!1),right:US(!0)}.left,RS=Bw("reduce"),DS=oy("reduce",{1:0});Jm({target:"Array",proto:!0,forced:!RS||!DS||!px&&Zv>79&&Zv<83},{reduce:function reduce(en){return MS(this,en,arguments.length,arguments.length>1?arguments[1]:void 0)}});var jS=Sv("Array").reduce,QS=Array.prototype,HS=function reduce_1(en){var tn=en.reduce;return en===QS||en instanceof Array&&tn===QS.reduce?jS:tn};Jm({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var GS=Gm.Date.now,VS=vi.every,zS=arrayMethodIsStrict("every"),KS=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!zS||!KS},{every:function every(en){return VS(this,en,arguments.length>1?arguments[1]:void 0)}});var qS=Kv.every,$S=Bw("every"),WS=oy("every");Jm({target:"Array",proto:!0,forced:!$S||!WS},{every:function every(en){return qS(this,en,arguments.length>1?arguments[1]:void 0)}});var XS=Sv("Array").every,YS=Array.prototype,JS=function every_1(en){var tn=en.every;return en===YS||en instanceof Array&&tn===YS.every?XS:tn},ZS=kS,eC=[].slice,tC={},nC=function construct(en,tn,nn){if(!(tn in tC)){for(var rn=[],an=0;an<tn;an++)rn[an]="a["+an+"]";tC[tn]=Function("C,a","return new C("+rn.join(",")+")")}return tC[tn](en,nn)},rC=Function.bind||function bind(en){var tn=Vm(this),nn=eC.call(arguments,1),rn=function bound(){var an=nn.concat(eC.call(arguments));return this instanceof rn?nC(tn,an.length,an):tn.apply(en,an)};return km(tn.prototype)&&(rn.prototype=tn.prototype),rn};Jm({target:"Function",proto:!0},{bind:rC});for(var iC=Sv("Function").bind,oC=Function.prototype,aC=function bind_1(en){var tn=en.bind;return en===oC||en instanceof Function&&tn===oC.bind?iC:tn},sC=createCommonjsModule((function(tn){(function(){var en,nn,rn,an,sn,cn;"undefined"!=typeof performance&&null!==performance&&performance.now?tn.exports=function(){return performance.now()}:null!=cm&&cm.hrtime?(tn.exports=function(){return(en()-sn)/1e6},nn=cm.hrtime,an=(en=function getNanoSeconds(){var en;return 1e9*(en=nn())[0]+en[1]})(),cn=1e9*cm.uptime(),sn=an-cn):Date.now?(tn.exports=function(){return Date.now()-rn},rn=Date.now()):(tn.exports=function(){return(new Date).getTime()-rn},rn=(new Date).getTime())}).call(en)})),lC="undefined"==typeof window?en:window,cC=["moz","webkit"],uC="AnimationFrame",dC=lC["request"+uC],pC=lC["cancel"+uC]||lC["cancelRequest"+uC],hC=0;!dC&&hC<cC.length;hC++)dC=lC[cC[hC]+"Request"+uC],pC=lC[cC[hC]+"Cancel"+uC]||lC[cC[hC]+"CancelRequest"+uC];if(!dC||!pC){var gC=0,fC=0,AC=[];dC=function raf(en){if(0===AC.length){var tn=sC(),nn=Math.max(0,16.666666666666668-(tn-gC));gC=nn+tn,setTimeout((function(){var en=AC.slice(0);AC.length=0;for(var tn=0;tn<en.length;tn++)if(!en[tn].cancelled)try{en[tn].callback(gC)}catch(en){setTimeout((function(){throw en}),0)}}),Math.round(nn))}return AC.push({handle:++fC,callback:en,cancelled:!1}),fC},pC=function caf(en){for(var tn=0;tn<AC.length;tn++)AC[tn].handle===en&&(AC[tn].cancelled=!0)}}var mC=function raf_1(en){return dC.call(lC,en)};mC.cancel=function cancel(){pC.apply(lC,arguments)},mC.polyfill=function polyfill(en){en||(en=lC),en.requestAnimationFrame=dC,en.cancelAnimationFrame=pC};var vC=Iv.trim;Jm({target:"String",proto:!0,forced:function stringTrimForced(en){return pm((function(){return!!Ev[en]()||"
"!="
"[en]()||Ev[en].name!==en}))}("trim")},{trim:function trim(){return vC(this)}});var yC=Sv("String").trim,_C=String.prototype,wC=function trim_1(en){var tn=en.trim;return"string"==typeof en||en===_C||en instanceof String&&tn===_C.trim?yC:tn},xC=function rgbcolor(en){this.ok=!1,this.alpha=1,"#"==en.charAt(0)&&(en=en.substr(1,6)),en=(en=en.replace(/ /g,"")).toLowerCase();var tn={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};en=tn[en]||en;for(var nn=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function process(en){return[parseInt(en[1]),parseInt(en[2]),parseInt(en[3]),parseFloat(en[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(en){return[parseInt(en[1]),parseInt(en[2]),parseInt(en[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function process(en){return[parseInt(en[1],16),parseInt(en[2],16),parseInt(en[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function process(en){return[parseInt(en[1]+en[1],16),parseInt(en[2]+en[2],16),parseInt(en[3]+en[3],16)]}}],rn=0;rn<nn.length;rn++){var an=nn[rn].re,sn=nn[rn].process,cn=an.exec(en);if(cn){var un=sn(cn);this.r=un[0],this.g=un[1],this.b=un[2],un.length>3&&(this.alpha=un[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var en=this.r.toString(16),tn=this.g.toString(16),nn=this.b.toString(16);return 1==en.length&&(en="0"+en),1==tn.length&&(tn="0"+tn),1==nn.length&&(nn="0"+nn),"#"+en+tn+nn},this.getHelpXML=function(){for(var en=new Array,rn=0;rn<nn.length;rn++)for(var an=nn[rn].example,sn=0;sn<an.length;sn++)en[en.length]=an[sn];for(var cn in tn)en[en.length]=cn;var un=document.createElement("ul");un.setAttribute("id","rgbcolor-examples");for(rn=0;rn<en.length;rn++)try{var dn=document.createElement("li"),pn=new RGBColor(en[rn]),hn=document.createElement("div");hn.style.cssText="margin: 3px; border: 1px solid black; background:"+pn.toHex()+"; color:"+pn.toHex(),hn.appendChild(document.createTextNode("test"));var gn=document.createTextNode(" "+en[rn]+" -> "+pn.toRGB()+" -> "+pn.toHex());dn.appendChild(hn),dn.appendChild(gn),un.appendChild(dn)}catch(en){}return un}},SC=$v("Reflect","construct"),CC=pm((function(){function F(){}return!(SC((function(){}),[],F)instanceof F)})),kC=!pm((function(){SC((function(){}))})),BC=CC||kC;Jm({target:"Reflect",stat:!0,forced:BC,sham:BC},{construct:function construct(en,tn){Vm(en),Km(tn);var nn=arguments.length<3?en:Vm(arguments[2]);if(kC&&!CC)return SC(en,tn,nn);if(en==nn){switch(tn.length){case 0:return new en;case 1:return new en(tn[0]);case 2:return new en(tn[0],tn[1]);case 3:return new en(tn[0],tn[1],tn[2]);case 4:return new en(tn[0],tn[1],tn[2],tn[3])}var rn=[null];return rn.push.apply(rn,tn),new(rC.apply(en,rn))}var an=nn.prototype,sn=p_(km(an)?an:Object.prototype),cn=Function.apply.call(en,sn,tn);return km(cn)?cn:sn}});var EC=Gm.Reflect.construct;Jm({target:"Object",stat:!0,sham:!hm},{create:p_});var PC=Gm.Object,LC=function create(en,tn){return PC.create(en,tn)};Jm({target:"Object",stat:!0},{setPrototypeOf:k_});var TC=Gm.Object.setPrototypeOf,NC=createCommonjsModule((function(en){function _setPrototypeOf(tn,nn){return en.exports=_setPrototypeOf=TC||function _setPrototypeOf(en,tn){return en.__proto__=tn,en},_setPrototypeOf(tn,nn)}en.exports=_setPrototypeOf}));var IC=function _inherits$1(en,tn){if("function"!=typeof tn&&null!==tn)throw new TypeError("Super expression must either be null or a function");en.prototype=LC(tn&&tn.prototype,{constructor:{value:en,writable:!0,configurable:!0}}),tn&&NC(en,tn)},OC=gb.f("iterator"),FC=createCommonjsModule((function(en){function _typeof(tn){return en.exports=_typeof="function"==typeof $b&&"symbol"==typeof OC?function _typeof(en){return typeof en}:function _typeof(en){return en&&"function"==typeof $b&&en.constructor===$b&&en!==$b.prototype?"symbol":typeof en},_typeof(tn)}en.exports=_typeof}));var UC=function _assertThisInitialized$1(en){if(void 0===en)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return en};var MC=function _possibleConstructorReturn$1(en,tn){return!tn||"object"!==FC(tn)&&"function"!=typeof tn?UC(en):tn},RC=pm((function(){Vy(1)}));Jm({target:"Object",stat:!0,forced:RC,sham:!Qy},{getPrototypeOf:function getPrototypeOf(en){return Vy(jv(en))}});var DC=Gm.Object.getPrototypeOf,jC=createCommonjsModule((function(en){function _getPrototypeOf(tn){return en.exports=_getPrototypeOf=TC?DC:function _getPrototypeOf(en){return en.__proto__||DC(en)},_getPrototypeOf(tn)}en.exports=_getPrototypeOf}));var QC=function _arrayWithoutHoles$1(en){if(gy(en))return vw(en)};var HC=function _iterableToArray$1(en){if(void 0!==$b&&J_(Object(en)))return lw(en)};var GC=function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var VC=function _toConsumableArray$1(en){return QC(en)||HC(en)||yw(en)||GC()},zC=Kv.some,KC=Bw("some"),qC=oy("some");Jm({target:"Array",proto:!0,forced:!KC||!qC},{some:function some(en){return zC(this,en,arguments.length>1?arguments[1]:void 0)}});var $C=Sv("Array").some,WC=Array.prototype,XC=function some_1(en){var tn=en.some;return en===WC||en instanceof Array&&tn===WC.some?$C:tn},YC=t_.includes,JC=oy("indexOf",{ACCESSORS:!0,1:0});Jm({target:"Array",proto:!0,forced:!JC},{includes:function includes(en){return YC(this,en,arguments.length>1?arguments[1]:void 0)}});var ZC=Sv("Array").includes;Jm({target:"String",proto:!0,forced:!_v("includes")},{includes:function includes(en){return!!~String(Sm(this)).indexOf(vv(en),arguments.length>1?arguments[1]:void 0)}});var ek=Sv("String").includes,tk=Array.prototype,nk=String.prototype,rk=function includes$2(en){var tn=en.includes;return en===tk||en instanceof Array&&tn===tk.includes?ZC:"string"==typeof en||en===nk||en instanceof String&&tn===nk.includes?ek:tn},ik=sw,ok=[].reverse,ak=[1,2];Jm({target:"Array",proto:!0,forced:String(ak)===String(ak.reverse())},{reverse:function reverse(){return Qv(this)&&(this.length=this.length),ok.call(this)}});var sk=Sv("Array").reverse,lk=Array.prototype,ck=function reverse_1(en){var tn=en.reverse;return en===lk||en instanceof Array&&tn===lk.reverse?sk:tn},uk=t_.indexOf,dk=[].indexOf,pk=!!dk&&1/[1].indexOf(1,-0)<0,hk=Bw("indexOf"),gk=oy("indexOf",{ACCESSORS:!0,1:0});Jm({target:"Array",proto:!0,forced:pk||!hk||!gk},{indexOf:function indexOf(en){return pk?dk.apply(this,arguments)||0:uk(this,en,arguments.length>1?arguments[1]:void 0)}});var fk=Sv("Array").indexOf,Ak=Array.prototype,mk=function indexOf_1(en){var tn=en.indexOf;return en===Ak||en instanceof Array&&tn===Ak.indexOf?fk:tn},vk=Rw;Jm({target:"Reflect",stat:!0},{get:function get$2(en,tn){var nn,rn,an=arguments.length<3?en:arguments[2];return Km(en)===an?en[tn]:(nn=Fm.f(en,tn))?Pm(nn,"value")?nn.value:void 0===nn.get?void 0:nn.get.call(an):km(rn=Vy(en))?get$2(rn,tn,an):void 0}});var yk=Gm.Reflect.get;var _k=function _superPropBase$1(en,tn){for(;!Object.prototype.hasOwnProperty.call(en,tn)&&null!==(en=jC(en)););return en},wk=createCommonjsModule((function(en){function _get(tn,nn,rn){return"undefined"!=typeof Reflect&&yk?en.exports=_get=yk:en.exports=_get=function _get(en,tn,nn){var rn=_k(en,tn);if(rn){var an=vk(rn,tn);return an.get?an.get.call(nn):an.value}},_get(tn,nn,rn||tn)}en.exports=_get}));Jm({target:"Array",proto:!0},{fill:function fill(en){for(var tn=jv(this),nn=rv(tn.length),rn=arguments.length,an=Zy(rn>1?arguments[1]:void 0,nn),sn=rn>2?arguments[2]:void 0,cn=void 0===sn?nn:Zy(sn,nn);cn>an;)tn[an++]=en;return tn}});var xk=Sv("Array").fill,Sk=Array.prototype,Ck=function fill_1(en){var tn=en.fill;return en===Sk||en instanceof Array&&tn===Sk.fill?xk:tn},kk=function t(en,tn){return(kk=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(en,tn){en.__proto__=tn}||function(en,tn){for(var nn in tn)tn.hasOwnProperty(nn)&&(en[nn]=tn[nn])})(en,tn)};function r(en,tn){function i(){this.constructor=en}kk(en,tn),en.prototype=null===tn?Object.create(tn):(i.prototype=tn.prototype,new i)}function i$1(en,tn){var nn=en[0],rn=en[1];return[nn*Math.cos(tn)-rn*Math.sin(tn),nn*Math.sin(tn)+rn*Math.cos(tn)]}function a(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];for(var nn=0;nn<en.length;nn++)if("number"!=typeof en[nn])throw new Error("assertNumbers arguments["+nn+"] is not a number. "+_typeof(en[nn])+" == typeof "+en[nn]);return!0}var Bk=Math.PI;function o(en,tn,nn){en.lArcFlag=0===en.lArcFlag?0:1,en.sweepFlag=0===en.sweepFlag?0:1;var rn=en.rX,an=en.rY,sn=en.x,cn=en.y;rn=Math.abs(en.rX),an=Math.abs(en.rY);var un=i$1([(tn-sn)/2,(nn-cn)/2],-en.xRot/180*Bk),dn=un[0],pn=un[1],hn=Math.pow(dn,2)/Math.pow(rn,2)+Math.pow(pn,2)/Math.pow(an,2);1<hn&&(rn*=Math.sqrt(hn),an*=Math.sqrt(hn)),en.rX=rn,en.rY=an;var gn=Math.pow(rn,2)*Math.pow(pn,2)+Math.pow(an,2)*Math.pow(dn,2),An=(en.lArcFlag!==en.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(rn,2)*Math.pow(an,2)-gn)/gn)),mn=rn*pn/an*An,vn=-an*dn/rn*An,yn=i$1([mn,vn],en.xRot/180*Bk);en.cX=yn[0]+(tn+sn)/2,en.cY=yn[1]+(nn+cn)/2,en.phi1=Math.atan2((pn-vn)/an,(dn-mn)/rn),en.phi2=Math.atan2((-pn-vn)/an,(-dn-mn)/rn),0===en.sweepFlag&&en.phi2>en.phi1&&(en.phi2-=2*Bk),1===en.sweepFlag&&en.phi2<en.phi1&&(en.phi2+=2*Bk),en.phi1*=180/Bk,en.phi2*=180/Bk}function s(en,tn,nn){a(en,tn,nn);var rn=en*en+tn*tn-nn*nn;if(0>rn)return[];if(0===rn)return[[en*nn/(en*en+tn*tn),tn*nn/(en*en+tn*tn)]];var an=Math.sqrt(rn);return[[(en*nn+tn*an)/(en*en+tn*tn),(tn*nn-en*an)/(en*en+tn*tn)],[(en*nn-tn*an)/(en*en+tn*tn),(tn*nn+en*an)/(en*en+tn*tn)]]}var Ek,Pk=Math.PI/180;function c(en,tn,nn){return(1-nn)*en+nn*tn}function y(en,tn,nn,rn){return en+Math.cos(rn/180*Bk)*tn+Math.sin(rn/180*Bk)*nn}function p(en,tn,nn,rn){var an=tn-en,sn=nn-tn,cn=3*an+3*(rn-nn)-6*sn,un=6*(sn-an),dn=3*an;return Math.abs(cn)<1e-6?[-dn/un]:function(en,tn,nn){void 0===nn&&(nn=1e-6);var rn=en*en/4-tn;if(rn<-nn)return[];if(rn<=nn)return[-en/2];var an=Math.sqrt(rn);return[-en/2-an,-en/2+an]}(un/cn,dn/cn,1e-6)}function m(en,tn,nn,rn,an){var sn=1-an;return en*(sn*sn*sn)+tn*(3*sn*sn*an)+nn*(3*sn*an*an)+rn*(an*an*an)}!function(en){function r(){return u((function(en,tn,nn){return en.relative&&(void 0!==en.x1&&(en.x1+=tn),void 0!==en.y1&&(en.y1+=nn),void 0!==en.x2&&(en.x2+=tn),void 0!==en.y2&&(en.y2+=nn),void 0!==en.x&&(en.x+=tn),void 0!==en.y&&(en.y+=nn),en.relative=!1),en}))}function e(){var en=NaN,tn=NaN,nn=NaN,rn=NaN;return u((function(an,sn,cn){return an.type&Fk.SMOOTH_CURVE_TO&&(an.type=Fk.CURVE_TO,en=isNaN(en)?sn:en,tn=isNaN(tn)?cn:tn,an.x1=an.relative?sn-en:2*sn-en,an.y1=an.relative?cn-tn:2*cn-tn),an.type&Fk.CURVE_TO?(en=an.relative?sn+an.x2:an.x2,tn=an.relative?cn+an.y2:an.y2):(en=NaN,tn=NaN),an.type&Fk.SMOOTH_QUAD_TO&&(an.type=Fk.QUAD_TO,nn=isNaN(nn)?sn:nn,rn=isNaN(rn)?cn:rn,an.x1=an.relative?sn-nn:2*sn-nn,an.y1=an.relative?cn-rn:2*cn-rn),an.type&Fk.QUAD_TO?(nn=an.relative?sn+an.x1:an.x1,rn=an.relative?cn+an.y1:an.y1):(nn=NaN,rn=NaN),an}))}function n(){var en=NaN,tn=NaN;return u((function(nn,rn,an){if(nn.type&Fk.SMOOTH_QUAD_TO&&(nn.type=Fk.QUAD_TO,en=isNaN(en)?rn:en,tn=isNaN(tn)?an:tn,nn.x1=nn.relative?rn-en:2*rn-en,nn.y1=nn.relative?an-tn:2*an-tn),nn.type&Fk.QUAD_TO){en=nn.relative?rn+nn.x1:nn.x1,tn=nn.relative?an+nn.y1:nn.y1;var sn=nn.x1,cn=nn.y1;nn.type=Fk.CURVE_TO,nn.x1=((nn.relative?0:rn)+2*sn)/3,nn.y1=((nn.relative?0:an)+2*cn)/3,nn.x2=(nn.x+2*sn)/3,nn.y2=(nn.y+2*cn)/3}else en=NaN,tn=NaN;return nn}))}function u(en){var tn=0,nn=0,rn=NaN,an=NaN;return function(sn){if(isNaN(rn)&&!(sn.type&Fk.MOVE_TO))throw new Error("path must start with moveto");var cn=en(sn,tn,nn,rn,an);return sn.type&Fk.CLOSE_PATH&&(tn=rn,nn=an),void 0!==sn.x&&(tn=sn.relative?tn+sn.x:sn.x),void 0!==sn.y&&(nn=sn.relative?nn+sn.y:sn.y),sn.type&Fk.MOVE_TO&&(rn=tn,an=nn),cn}}function O(en,tn,nn,rn,an,sn){return a(en,tn,nn,rn,an,sn),u((function(cn,un,dn,pn){var hn=cn.x1,gn=cn.x2,An=cn.relative&&!isNaN(pn),mn=void 0!==cn.x?cn.x:An?0:un,vn=void 0!==cn.y?cn.y:An?0:dn;function T(en){return en*en}cn.type&Fk.HORIZ_LINE_TO&&0!==tn&&(cn.type=Fk.LINE_TO,cn.y=cn.relative?0:dn),cn.type&Fk.VERT_LINE_TO&&0!==nn&&(cn.type=Fk.LINE_TO,cn.x=cn.relative?0:un),void 0!==cn.x&&(cn.x=cn.x*en+vn*nn+(An?0:an)),void 0!==cn.y&&(cn.y=mn*tn+cn.y*rn+(An?0:sn)),void 0!==cn.x1&&(cn.x1=cn.x1*en+cn.y1*nn+(An?0:an)),void 0!==cn.y1&&(cn.y1=hn*tn+cn.y1*rn+(An?0:sn)),void 0!==cn.x2&&(cn.x2=cn.x2*en+cn.y2*nn+(An?0:an)),void 0!==cn.y2&&(cn.y2=gn*tn+cn.y2*rn+(An?0:sn));var yn=en*rn-tn*nn;if(void 0!==cn.xRot&&(1!==en||0!==tn||0!==nn||1!==rn))if(0===yn)delete cn.rX,delete cn.rY,delete cn.xRot,delete cn.lArcFlag,delete cn.sweepFlag,cn.type=Fk.LINE_TO;else{var _n=cn.xRot*Math.PI/180,wn=Math.sin(_n),xn=Math.cos(_n),Sn=1/T(cn.rX),Cn=1/T(cn.rY),kn=T(xn)*Sn+T(wn)*Cn,Bn=2*wn*xn*(Sn-Cn),En=T(wn)*Sn+T(xn)*Cn,Pn=kn*rn*rn-Bn*tn*rn+En*tn*tn,Ln=Bn*(en*rn+tn*nn)-2*(kn*nn*rn+En*en*tn),Tn=kn*nn*nn-Bn*en*nn+En*en*en,Nn=(Math.atan2(Ln,Pn-Tn)+Math.PI)%Math.PI/2,In=Math.sin(Nn),On=Math.cos(Nn);cn.rX=Math.abs(yn)/Math.sqrt(Pn*T(On)+Ln*In*On+Tn*T(In)),cn.rY=Math.abs(yn)/Math.sqrt(Pn*T(In)-Ln*In*On+Tn*T(On)),cn.xRot=180*Nn/Math.PI}return void 0!==cn.sweepFlag&&0>yn&&(cn.sweepFlag=+!cn.sweepFlag),cn}))}en.ROUND=function(en){function r(tn){return Math.round(tn*en)/en}return void 0===en&&(en=1e13),a(en),function(en){return void 0!==en.x1&&(en.x1=r(en.x1)),void 0!==en.y1&&(en.y1=r(en.y1)),void 0!==en.x2&&(en.x2=r(en.x2)),void 0!==en.y2&&(en.y2=r(en.y2)),void 0!==en.x&&(en.x=r(en.x)),void 0!==en.y&&(en.y=r(en.y)),void 0!==en.rX&&(en.rX=r(en.rX)),void 0!==en.rY&&(en.rY=r(en.rY)),en}},en.TO_ABS=r,en.TO_REL=function(){return u((function(en,tn,nn){return en.relative||(void 0!==en.x1&&(en.x1-=tn),void 0!==en.y1&&(en.y1-=nn),void 0!==en.x2&&(en.x2-=tn),void 0!==en.y2&&(en.y2-=nn),void 0!==en.x&&(en.x-=tn),void 0!==en.y&&(en.y-=nn),en.relative=!0),en}))},en.NORMALIZE_HVZ=function(en,tn,nn){return void 0===en&&(en=!0),void 0===tn&&(tn=!0),void 0===nn&&(nn=!0),u((function(rn,an,sn,cn,un){if(isNaN(cn)&&!(rn.type&Fk.MOVE_TO))throw new Error("path must start with moveto");return tn&&rn.type&Fk.HORIZ_LINE_TO&&(rn.type=Fk.LINE_TO,rn.y=rn.relative?0:sn),nn&&rn.type&Fk.VERT_LINE_TO&&(rn.type=Fk.LINE_TO,rn.x=rn.relative?0:an),en&&rn.type&Fk.CLOSE_PATH&&(rn.type=Fk.LINE_TO,rn.x=rn.relative?cn-an:cn,rn.y=rn.relative?un-sn:un),rn.type&Fk.ARC&&(0===rn.rX||0===rn.rY)&&(rn.type=Fk.LINE_TO,delete rn.rX,delete rn.rY,delete rn.xRot,delete rn.lArcFlag,delete rn.sweepFlag),rn}))},en.NORMALIZE_ST=e,en.QT_TO_C=n,en.INFO=u,en.SANITIZE=function(en){void 0===en&&(en=0),a(en);var tn=NaN,nn=NaN,rn=NaN,an=NaN;return u((function(sn,cn,un,dn,pn){var hn=Math.abs,gn=!1,An=0,mn=0;if(sn.type&Fk.SMOOTH_CURVE_TO&&(An=isNaN(tn)?0:cn-tn,mn=isNaN(nn)?0:un-nn),sn.type&(Fk.CURVE_TO|Fk.SMOOTH_CURVE_TO)?(tn=sn.relative?cn+sn.x2:sn.x2,nn=sn.relative?un+sn.y2:sn.y2):(tn=NaN,nn=NaN),sn.type&Fk.SMOOTH_QUAD_TO?(rn=isNaN(rn)?cn:2*cn-rn,an=isNaN(an)?un:2*un-an):sn.type&Fk.QUAD_TO?(rn=sn.relative?cn+sn.x1:sn.x1,an=sn.relative?un+sn.y1:sn.y2):(rn=NaN,an=NaN),sn.type&Fk.LINE_COMMANDS||sn.type&Fk.ARC&&(0===sn.rX||0===sn.rY||!sn.lArcFlag)||sn.type&Fk.CURVE_TO||sn.type&Fk.SMOOTH_CURVE_TO||sn.type&Fk.QUAD_TO||sn.type&Fk.SMOOTH_QUAD_TO){var vn=void 0===sn.x?0:sn.relative?sn.x:sn.x-cn,yn=void 0===sn.y?0:sn.relative?sn.y:sn.y-un;An=isNaN(rn)?void 0===sn.x1?An:sn.relative?sn.x:sn.x1-cn:rn-cn,mn=isNaN(an)?void 0===sn.y1?mn:sn.relative?sn.y:sn.y1-un:an-un;var _n=void 0===sn.x2?0:sn.relative?sn.x:sn.x2-cn,wn=void 0===sn.y2?0:sn.relative?sn.y:sn.y2-un;hn(vn)<=en&&hn(yn)<=en&&hn(An)<=en&&hn(mn)<=en&&hn(_n)<=en&&hn(wn)<=en&&(gn=!0)}return sn.type&Fk.CLOSE_PATH&&hn(cn-dn)<=en&&hn(un-pn)<=en&&(gn=!0),gn?[]:sn}))},en.MATRIX=O,en.ROTATE=function(en,tn,nn){void 0===tn&&(tn=0),void 0===nn&&(nn=0),a(en,tn,nn);var rn=Math.sin(en),an=Math.cos(en);return O(an,rn,-rn,an,tn-tn*an+nn*rn,nn-tn*rn-nn*an)},en.TRANSLATE=function(en,tn){return void 0===tn&&(tn=0),a(en,tn),O(1,0,0,1,en,tn)},en.SCALE=function(en,tn){return void 0===tn&&(tn=en),a(en,tn),O(en,0,0,tn,0,0)},en.SKEW_X=function(en){return a(en),O(1,0,Math.atan(en),1,0,0)},en.SKEW_Y=function(en){return a(en),O(1,Math.atan(en),0,1,0,0)},en.X_AXIS_SYMMETRY=function(en){return void 0===en&&(en=0),a(en),O(-1,0,0,1,en,0)},en.Y_AXIS_SYMMETRY=function(en){return void 0===en&&(en=0),a(en),O(1,0,0,-1,0,en)},en.A_TO_C=function(){return u((function(en,tn,nn){return Fk.ARC===en.type?function(en,tn,nn){var rn,an,sn,cn;en.cX||o(en,tn,nn);for(var un=Math.min(en.phi1,en.phi2),dn=Math.max(en.phi1,en.phi2)-un,pn=Math.ceil(dn/90),hn=new Array(pn),gn=tn,An=nn,mn=0;mn<pn;mn++){var vn=c(en.phi1,en.phi2,mn/pn),yn=c(en.phi1,en.phi2,(mn+1)/pn),_n=yn-vn,wn=4/3*Math.tan(_n*Pk/4),xn=[Math.cos(vn*Pk)-wn*Math.sin(vn*Pk),Math.sin(vn*Pk)+wn*Math.cos(vn*Pk)],Sn=xn[0],Cn=xn[1],kn=[Math.cos(yn*Pk),Math.sin(yn*Pk)],Bn=kn[0],En=kn[1],Pn=[Bn+wn*Math.sin(yn*Pk),En-wn*Math.cos(yn*Pk)],Ln=Pn[0],Tn=Pn[1];hn[mn]={relative:en.relative,type:Fk.CURVE_TO};var Nn=function H(tn,nn){var rn=i$1([tn*en.rX,nn*en.rY],en.xRot),an=rn[0],sn=rn[1];return[en.cX+an,en.cY+sn]};rn=Nn(Sn,Cn),hn[mn].x1=rn[0],hn[mn].y1=rn[1],an=Nn(Ln,Tn),hn[mn].x2=an[0],hn[mn].y2=an[1],sn=Nn(Bn,En),hn[mn].x=sn[0],hn[mn].y=sn[1],en.relative&&(hn[mn].x1-=gn,hn[mn].y1-=An,hn[mn].x2-=gn,hn[mn].y2-=An,hn[mn].x-=gn,hn[mn].y-=An),gn=(cn=[hn[mn].x,hn[mn].y])[0],An=cn[1]}return hn}(en,en.relative?0:tn,en.relative?0:nn):en}))},en.ANNOTATE_ARCS=function(){return u((function(en,tn,nn){return en.relative&&(tn=0,nn=0),Fk.ARC===en.type&&o(en,tn,nn),en}))},en.CLONE=function T(){return function(en){var tn={};for(var nn in en)tn[nn]=en[nn];return tn}},en.CALCULATE_BOUNDS=function(){var en=r(),tn=n(),nn=e(),rn=u((function(an,sn,cn){var un=nn(tn(en(function t(en){var tn={};for(var nn in en)tn[nn]=en[nn];return tn}(an))));function O(en){en>rn.maxX&&(rn.maxX=en),en<rn.minX&&(rn.minX=en)}function T(en){en>rn.maxY&&(rn.maxY=en),en<rn.minY&&(rn.minY=en)}if(un.type&Fk.DRAWING_COMMANDS&&(O(sn),T(cn)),un.type&Fk.HORIZ_LINE_TO&&O(un.x),un.type&Fk.VERT_LINE_TO&&T(un.y),un.type&Fk.LINE_TO&&(O(un.x),T(un.y)),un.type&Fk.CURVE_TO){O(un.x),T(un.y);for(var dn=0,pn=p(sn,un.x1,un.x2,un.x);dn<pn.length;dn++)0<(Ln=pn[dn])&&1>Ln&&O(m(sn,un.x1,un.x2,un.x,Ln));for(var hn=0,gn=p(cn,un.y1,un.y2,un.y);hn<gn.length;hn++)0<(Ln=gn[hn])&&1>Ln&&T(m(cn,un.y1,un.y2,un.y,Ln))}if(un.type&Fk.ARC){O(un.x),T(un.y),o(un,sn,cn);for(var An=un.xRot/180*Math.PI,mn=Math.cos(An)*un.rX,vn=Math.sin(An)*un.rX,yn=-Math.sin(An)*un.rY,_n=Math.cos(An)*un.rY,wn=un.phi1<un.phi2?[un.phi1,un.phi2]:-180>un.phi2?[un.phi2+360,un.phi1+360]:[un.phi2,un.phi1],xn=wn[0],Sn=wn[1],Cn=function I(en){var tn=en[0],nn=en[1],rn=180*Math.atan2(nn,tn)/Math.PI;return rn<xn?rn+360:rn},kn=0,Bn=s(yn,-mn,0).map(Cn);kn<Bn.length;kn++)(Ln=Bn[kn])>xn&&Ln<Sn&&O(y(un.cX,mn,yn,Ln));for(var En=0,Pn=s(_n,-vn,0).map(Cn);En<Pn.length;En++){var Ln;(Ln=Pn[En])>xn&&Ln<Sn&&T(y(un.cY,vn,_n,Ln))}}return an}));return rn.minX=1/0,rn.maxX=-1/0,rn.minY=1/0,rn.maxY=-1/0,rn}}(Ek||(Ek={}));var Lk,Tk=function(){function t(){}return t.prototype.round=function(en){return this.transform(Ek.ROUND(en))},t.prototype.toAbs=function(){return this.transform(Ek.TO_ABS())},t.prototype.toRel=function(){return this.transform(Ek.TO_REL())},t.prototype.normalizeHVZ=function(en,tn,nn){return this.transform(Ek.NORMALIZE_HVZ(en,tn,nn))},t.prototype.normalizeST=function(){return this.transform(Ek.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Ek.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Ek.A_TO_C())},t.prototype.sanitize=function(en){return this.transform(Ek.SANITIZE(en))},t.prototype.translate=function(en,tn){return this.transform(Ek.TRANSLATE(en,tn))},t.prototype.scale=function(en,tn){return this.transform(Ek.SCALE(en,tn))},t.prototype.rotate=function(en,tn,nn){return this.transform(Ek.ROTATE(en,tn,nn))},t.prototype.matrix=function(en,tn,nn,rn,an,sn){return this.transform(Ek.MATRIX(en,tn,nn,rn,an,sn))},t.prototype.skewX=function(en){return this.transform(Ek.SKEW_X(en))},t.prototype.skewY=function(en){return this.transform(Ek.SKEW_Y(en))},t.prototype.xSymmetry=function(en){return this.transform(Ek.X_AXIS_SYMMETRY(en))},t.prototype.ySymmetry=function(en){return this.transform(Ek.Y_AXIS_SYMMETRY(en))},t.prototype.annotateArcs=function(){return this.transform(Ek.ANNOTATE_ARCS())},t}(),Nk=function v(en){return" "===en||"\t"===en||"\r"===en||"\n"===en},Ik=function l(en){return"0".charCodeAt(0)<=en.charCodeAt(0)&&en.charCodeAt(0)<="9".charCodeAt(0)},Ok=function(en){function e(){var tn=en.call(this)||this;return tn.curNumber="",tn.curCommandType=-1,tn.curCommandRelative=!1,tn.canParseCommandOrComma=!0,tn.curNumberHasExp=!1,tn.curNumberHasExpDigits=!1,tn.curNumberHasDecimal=!1,tn.curArgs=[],tn}return r(e,en),e.prototype.finish=function(en){if(void 0===en&&(en=[]),this.parse(" ",en),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return en},e.prototype.parse=function(en,tn){var nn=this;void 0===tn&&(tn=[]);for(var rn=function i(en){tn.push(en),nn.curArgs.length=0,nn.canParseCommandOrComma=!0},an=0;an<en.length;an++){var sn=en[an],cn=!(this.curCommandType!==Fk.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),un=Ik(sn)&&("0"===this.curNumber&&"0"===sn||cn);if(!Ik(sn)||un)if("e"!==sn&&"E"!==sn)if("-"!==sn&&"+"!==sn||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==sn||this.curNumberHasExp||this.curNumberHasDecimal||cn){if(this.curNumber&&-1!==this.curCommandType){var dn=Number(this.curNumber);if(isNaN(dn))throw new SyntaxError("Invalid number ending at "+an);if(this.curCommandType===Fk.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>dn)throw new SyntaxError('Expected positive number, got "'+dn+'" at index "'+an+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+an+'"');this.curArgs.push(dn),this.curArgs.length===Uk[this.curCommandType]&&(Fk.HORIZ_LINE_TO===this.curCommandType?rn({type:Fk.HORIZ_LINE_TO,relative:this.curCommandRelative,x:dn}):Fk.VERT_LINE_TO===this.curCommandType?rn({type:Fk.VERT_LINE_TO,relative:this.curCommandRelative,y:dn}):this.curCommandType===Fk.MOVE_TO||this.curCommandType===Fk.LINE_TO||this.curCommandType===Fk.SMOOTH_QUAD_TO?(rn({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Fk.MOVE_TO===this.curCommandType&&(this.curCommandType=Fk.LINE_TO)):this.curCommandType===Fk.CURVE_TO?rn({type:Fk.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Fk.SMOOTH_CURVE_TO?rn({type:Fk.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Fk.QUAD_TO?rn({type:Fk.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Fk.ARC&&rn({type:Fk.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Nk(sn))if(","===sn&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==sn&&"-"!==sn&&"."!==sn)if(un)this.curNumber=sn,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+an+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+sn+'" at index '+an+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==sn&&"Z"!==sn)if("h"===sn||"H"===sn)this.curCommandType=Fk.HORIZ_LINE_TO,this.curCommandRelative="h"===sn;else if("v"===sn||"V"===sn)this.curCommandType=Fk.VERT_LINE_TO,this.curCommandRelative="v"===sn;else if("m"===sn||"M"===sn)this.curCommandType=Fk.MOVE_TO,this.curCommandRelative="m"===sn;else if("l"===sn||"L"===sn)this.curCommandType=Fk.LINE_TO,this.curCommandRelative="l"===sn;else if("c"===sn||"C"===sn)this.curCommandType=Fk.CURVE_TO,this.curCommandRelative="c"===sn;else if("s"===sn||"S"===sn)this.curCommandType=Fk.SMOOTH_CURVE_TO,this.curCommandRelative="s"===sn;else if("q"===sn||"Q"===sn)this.curCommandType=Fk.QUAD_TO,this.curCommandRelative="q"===sn;else if("t"===sn||"T"===sn)this.curCommandType=Fk.SMOOTH_QUAD_TO,this.curCommandRelative="t"===sn;else{if("a"!==sn&&"A"!==sn)throw new SyntaxError('Unexpected character "'+sn+'" at index '+an+".");this.curCommandType=Fk.ARC,this.curCommandRelative="a"===sn}else tn.push({type:Fk.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=sn,this.curNumberHasDecimal="."===sn}else this.curNumber+=sn,this.curNumberHasDecimal=!0;else this.curNumber+=sn;else this.curNumber+=sn,this.curNumberHasExp=!0;else this.curNumber+=sn,this.curNumberHasExpDigits=this.curNumberHasExp}return tn},e.prototype.transform=function(en){return Object.create(this,{parse:{value:function value(tn,nn){void 0===nn&&(nn=[]);for(var rn=0,an=Object.getPrototypeOf(this).parse.call(this,tn);rn<an.length;rn++){var sn=an[rn],cn=en(sn);Array.isArray(cn)?nn.push.apply(nn,cn):nn.push(cn)}return nn}}})},e}(Tk),Fk=function(en){function i(tn){var nn=en.call(this)||this;return nn.commands="string"==typeof tn?i.parse(tn):tn,nn}return r(i,en),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var en=Ek.CALCULATE_BOUNDS();return this.transform(en),en},i.prototype.transform=function(en){for(var tn=[],nn=0,rn=this.commands;nn<rn.length;nn++){var an=en(rn[nn]);Array.isArray(an)?tn.push.apply(tn,an):tn.push(an)}return this.commands=tn,this},i.encode=function(en){return function e(en){var tn="";Array.isArray(en)||(en=[en]);for(var nn=0;nn<en.length;nn++){var rn=en[nn];if(rn.type===Fk.CLOSE_PATH)tn+="z";else if(rn.type===Fk.HORIZ_LINE_TO)tn+=(rn.relative?"h":"H")+rn.x;else if(rn.type===Fk.VERT_LINE_TO)tn+=(rn.relative?"v":"V")+rn.y;else if(rn.type===Fk.MOVE_TO)tn+=(rn.relative?"m":"M")+rn.x+" "+rn.y;else if(rn.type===Fk.LINE_TO)tn+=(rn.relative?"l":"L")+rn.x+" "+rn.y;else if(rn.type===Fk.CURVE_TO)tn+=(rn.relative?"c":"C")+rn.x1+" "+rn.y1+" "+rn.x2+" "+rn.y2+" "+rn.x+" "+rn.y;else if(rn.type===Fk.SMOOTH_CURVE_TO)tn+=(rn.relative?"s":"S")+rn.x2+" "+rn.y2+" "+rn.x+" "+rn.y;else if(rn.type===Fk.QUAD_TO)tn+=(rn.relative?"q":"Q")+rn.x1+" "+rn.y1+" "+rn.x+" "+rn.y;else if(rn.type===Fk.SMOOTH_QUAD_TO)tn+=(rn.relative?"t":"T")+rn.x+" "+rn.y;else{if(rn.type!==Fk.ARC)throw new Error('Unexpected command type "'+rn.type+'" at index '+nn+".");tn+=(rn.relative?"a":"A")+rn.rX+" "+rn.rY+" "+rn.xRot+" "+ +rn.lArcFlag+" "+ +rn.sweepFlag+" "+rn.x+" "+rn.y}}return tn}(en)},i.parse=function(en){var tn=new Ok,nn=[];return tn.parse(en,nn),tn.finish(nn),nn},i.CLOSE_PATH=1,i.MOVE_TO=2,i.HORIZ_LINE_TO=4,i.VERT_LINE_TO=8,i.LINE_TO=16,i.CURVE_TO=32,i.SMOOTH_CURVE_TO=64,i.QUAD_TO=128,i.SMOOTH_QUAD_TO=256,i.ARC=512,i.LINE_COMMANDS=i.LINE_TO|i.HORIZ_LINE_TO|i.VERT_LINE_TO,i.DRAWING_COMMANDS=i.HORIZ_LINE_TO|i.VERT_LINE_TO|i.LINE_TO|i.CURVE_TO|i.SMOOTH_CURVE_TO|i.QUAD_TO|i.SMOOTH_QUAD_TO|i.ARC,i}(Tk),Uk=((Lk={})[Fk.MOVE_TO]=2,Lk[Fk.LINE_TO]=2,Lk[Fk.HORIZ_LINE_TO]=1,Lk[Fk.VERT_LINE_TO]=1,Lk[Fk.CLOSE_PATH]=0,Lk[Fk.QUAD_TO]=4,Lk[Fk.SMOOTH_QUAD_TO]=2,Lk[Fk.CURVE_TO]=6,Lk[Fk.SMOOTH_CURVE_TO]=4,Lk[Fk.ARC]=7,Lk),Mk=Fm.f;Jm({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(en,tn){var nn=Mk(Km(en),tn);return!(nn&&!nn.configurable)&&delete en[tn]}});var Rk=Gm.Reflect.deleteProperty,Dk=Sv("Array").values,jk=Array.prototype,Qk={DOMTokenList:!0,NodeList:!0},Hk=function values_1(en){var tn=en.values;return en===jk||en instanceof Array&&tn===jk.values||Qk.hasOwnProperty(m_(en))?Dk:tn},Gk=Iv.trim,Vk=dm.parseInt,zk=/^[+-]?0[Xx]/,Kk=8!==Vk(Ev+"08")||22!==Vk(Ev+"0x16")?function parseInt(en,tn){var nn=Gk(String(en));return Vk(nn,tn>>>0||(zk.test(nn)?16:10))}:Vk;Jm({global:!0,forced:parseInt!=Kk},{parseInt:Kk});var qk=Gm.parseInt,$k=hy,Wk=W_,Xk=qb,Yk=Aw,Jk=Object.isExtensible,Zk=fails((function(){Jk(1)}));_export({target:"Object",stat:!0,forced:Zk},{isExtensible:function isExtensible(en){return!!isObject(en)&&(!Jk||Jk(en))}});var eB=Jp.onFreeze,tB=Object.preventExtensions,nB=fails((function(){tB(1)}));_export({target:"Object",stat:!0,forced:nB,sham:!Yp},{preventExtensions:function preventExtensions(en){return tB&&isObject(en)?tB(eB(en)):en}});var rB=!pm((function(){return Object.isExtensible(Object.preventExtensions({}))})),iB=createCommonjsModule((function(en){var tn=$m.f,nn=uv("meta"),rn=0,an=Object.isExtensible||function(){return!0},sn=function setMetadata(en){tn(en,nn,{value:{objectID:"O"+ ++rn,weakData:{}}})},cn=en.exports={REQUIRED:!1,fastKey:function fastKey(en,tn){if(!km(en))return"symbol"==_typeof(en)?en:("string"==typeof en?"S":"P")+en;if(!Pm(en,nn)){if(!an(en))return"F";if(!tn)return"E";sn(en)}return en[nn].objectID},getWeakData:function getWeakData(en,tn){if(!Pm(en,nn)){if(!an(en))return!0;if(!tn)return!1;sn(en)}return en[nn].weakData},onFreeze:function onFreeze(en){return rB&&cn.REQUIRED&&an(en)&&!Pm(en,nn)&&sn(en),en}};Iy[nn]=!0})),oB=$m.f,aB=Kv.forEach,sB=jy.set,lB=jy.getterFor,cB=$m.f,uB=iB.fastKey,dB=jy.set,pB=jy.getterFor;!function collection(en,tn,nn){var rn,an=-1!==en.indexOf("Map"),sn=-1!==en.indexOf("Weak"),cn=an?"set":"add",un=dm[en],dn=un&&un.prototype,pn={};if(hm&&"function"==typeof un&&(sn||dn.forEach&&!pm((function(){(new un).entries().next()})))){rn=tn((function(tn,nn){sB(ix(tn,rn,en),{type:en,collection:new un}),null!=nn&&Yw(nn,tn[cn],{that:tn,AS_ENTRIES:an})}));var hn=lB(en);aB(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(en){var tn="add"==en||"set"==en;!(en in dn)||sn&&"clear"==en||Wm(rn.prototype,en,(function(nn,rn){var an=hn(this).collection;if(!tn&&sn&&!km(nn))return"get"==en&&void 0;var cn=an[en](0===nn?0:nn,rn);return tn?this:cn}))})),sn||oB(rn.prototype,"size",{configurable:!0,get:function get(){return hn(this).collection.size}})}else rn=nn.getConstructor(tn,en,an,cn),iB.REQUIRED=!0;x_(rn,en,!1,!0),pn[en]=rn,Jm({global:!0,forced:!0},pn),sn||nn.setStrong(rn,en,an)}("Map",(function(en){return function Map(){return en(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function getConstructor(en,tn,nn,rn){var an=en((function(en,sn){ix(en,an,tn),dB(en,{type:tn,index:p_(null),first:void 0,last:void 0,size:0}),hm||(en.size=0),null!=sn&&Yw(sn,en[rn],{that:en,AS_ENTRIES:nn})})),sn=pB(tn),cn=function define(en,tn,nn){var rn,an,cn=sn(en),dn=un(en,tn);return dn?dn.value=nn:(cn.last=dn={index:an=uB(tn,!0),key:tn,value:nn,previous:rn=cn.last,next:void 0,removed:!1},cn.first||(cn.first=dn),rn&&(rn.next=dn),hm?cn.size++:en.size++,"F"!==an&&(cn.index[an]=dn)),en},un=function getEntry(en,tn){var nn,rn=sn(en),an=uB(tn);if("F"!==an)return rn.index[an];for(nn=rn.first;nn;nn=nn.next)if(nn.key==tn)return nn};return tx(an.prototype,{clear:function clear(){for(var en=sn(this),tn=en.index,nn=en.first;nn;)nn.removed=!0,nn.previous&&(nn.previous=nn.previous.next=void 0),delete tn[nn.index],nn=nn.next;en.first=en.last=void 0,hm?en.size=0:this.size=0},delete:function _delete(en){var tn=this,nn=sn(tn),rn=un(tn,en);if(rn){var an=rn.next,cn=rn.previous;delete nn.index[rn.index],rn.removed=!0,cn&&(cn.next=an),an&&(an.previous=cn),nn.first==rn&&(nn.first=an),nn.last==rn&&(nn.last=cn),hm?nn.size--:tn.size--}return!!rn},forEach:function forEach(en){for(var tn,nn=sn(this),rn=zm(en,arguments.length>1?arguments[1]:void 0,3);tn=tn?tn.next:nn.first;)for(rn(tn.value,tn.key,this);tn&&tn.removed;)tn=tn.previous},has:function has(en){return!!un(this,en)}}),tx(an.prototype,nn?{get:function get(en){var tn=un(this,en);return tn&&tn.value},set:function set(en,tn){return cn(this,0===en?0:en,tn)}}:{add:function add(en){return cn(this,en=0===en?0:en,en)}}),hm&&cB(an.prototype,"size",{get:function get(){return sn(this).size}}),an},setStrong:function setStrong(en,tn,nn){var rn=tn+" Iterator",an=pB(tn),sn=pB(rn);F_(en,tn,(function(en,tn){dB(this,{type:rn,target:en,state:an(en),kind:tn,last:void 0})}),(function(){for(var en=sn(this),tn=en.kind,nn=en.last;nn&&nn.removed;)nn=nn.previous;return en.target&&(en.last=nn=nn?nn.next:en.state.first)?"keys"==tn?{value:nn.key,done:!1}:"values"==tn?{value:nn.value,done:!1}:{value:[nn.key,nn.value],done:!1}:(en.target=void 0,{value:void 0,done:!0})}),nn?"entries":"values",!nn,!0),rx(tn)}});var hB=Gm.Map,gB=$v("Reflect","apply"),fB=Function.apply,AB=!pm((function(){gB((function(){}))}));Jm({target:"Reflect",stat:!0,forced:AB},{apply:function apply(en,tn,nn){return Vm(en),Km(nn),gB?gB(en,tn,nn):fB.call(en,tn,nn)}});var mB=Gm.Reflect.apply;Jm({target:"Reflect",stat:!0,sham:!Qy},{getPrototypeOf:function getPrototypeOf(en){return Vy(Km(en))}});var vB=Gm.Reflect.getPrototypeOf;function _typeof$1(en){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(en){return typeof en}:function _typeof(en){return en&&"function"==typeof Symbol&&en.constructor===Symbol&&en!==Symbol.prototype?"symbol":typeof en})(en)}var yB=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],wB=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function processCanvasRGBA(en,tn,nn,rn,an,sn){if(!(isNaN(sn)||sn<1)){sn|=0;var cn=function getImageDataFromCanvas(en,tn,nn,rn,an){if("string"==typeof en&&(en=document.getElementById(en)),!en||"object"!==_typeof$1(en)||!("getContext"in en))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var sn=en.getContext("2d");try{return sn.getImageData(tn,nn,rn,an)}catch(en){throw new Error("unable to access image data: "+en)}}(en,tn,nn,rn,an);cn=function processImageDataRGBA(en,tn,nn,rn,an,sn){for(var cn,un=en.data,dn=2*sn+1,pn=rn-1,hn=an-1,gn=sn+1,An=gn*(gn+1)/2,mn=new xB,vn=mn,yn=1;yn<dn;yn++)vn=vn.next=new xB,yn===gn&&(cn=vn);vn.next=mn;for(var _n=null,wn=null,xn=0,Sn=0,Cn=yB[sn],kn=wB[sn],Bn=0;Bn<an;Bn++){vn=mn;for(var En=un[Sn],Pn=un[Sn+1],Ln=un[Sn+2],Tn=un[Sn+3],Nn=0;Nn<gn;Nn++)vn.r=En,vn.g=Pn,vn.b=Ln,vn.a=Tn,vn=vn.next;for(var In=0,On=0,Fn=0,Un=0,Mn=gn*En,Rn=gn*Pn,Dn=gn*Ln,jn=gn*Tn,Qn=An*En,Hn=An*Pn,Gn=An*Ln,Vn=An*Tn,zn=1;zn<gn;zn++){var Kn=Sn+((pn<zn?pn:zn)<<2),qn=un[Kn],$n=un[Kn+1],Wn=un[Kn+2],Xn=un[Kn+3],Yn=gn-zn;Qn+=(vn.r=qn)*Yn,Hn+=(vn.g=$n)*Yn,Gn+=(vn.b=Wn)*Yn,Vn+=(vn.a=Xn)*Yn,In+=qn,On+=$n,Fn+=Wn,Un+=Xn,vn=vn.next}_n=mn,wn=cn;for(var Jn=0;Jn<rn;Jn++){var Zn=Vn*Cn>>kn;if(un[Sn+3]=Zn,0!==Zn){var Tr=255/Zn;un[Sn]=(Qn*Cn>>kn)*Tr,un[Sn+1]=(Hn*Cn>>kn)*Tr,un[Sn+2]=(Gn*Cn>>kn)*Tr}else un[Sn]=un[Sn+1]=un[Sn+2]=0;Qn-=Mn,Hn-=Rn,Gn-=Dn,Vn-=jn,Mn-=_n.r,Rn-=_n.g,Dn-=_n.b,jn-=_n.a;var Ur=Jn+sn+1;Ur=xn+(Ur<pn?Ur:pn)<<2,Qn+=In+=_n.r=un[Ur],Hn+=On+=_n.g=un[Ur+1],Gn+=Fn+=_n.b=un[Ur+2],Vn+=Un+=_n.a=un[Ur+3],_n=_n.next;var Rr=wn,Dr=Rr.r,Qr=Rr.g,Hr=Rr.b,Gr=Rr.a;Mn+=Dr,Rn+=Qr,Dn+=Hr,jn+=Gr,In-=Dr,On-=Qr,Fn-=Hr,Un-=Gr,wn=wn.next,Sn+=4}xn+=rn}for(var Vr=0;Vr<rn;Vr++){var zr=un[Sn=Vr<<2],Kr=un[Sn+1],$r=un[Sn+2],Wr=un[Sn+3],Xr=gn*zr,Yr=gn*Kr,Jr=gn*$r,Zr=gn*Wr,ei=An*zr,ti=An*Kr,ni=An*$r,ri=An*Wr;vn=mn;for(var ii=0;ii<gn;ii++)vn.r=zr,vn.g=Kr,vn.b=$r,vn.a=Wr,vn=vn.next;for(var oi=rn,ai=0,si=0,li=0,ui=0,di=1;di<=sn;di++){Sn=oi+Vr<<2;var pi=gn-di;ei+=(vn.r=zr=un[Sn])*pi,ti+=(vn.g=Kr=un[Sn+1])*pi,ni+=(vn.b=$r=un[Sn+2])*pi,ri+=(vn.a=Wr=un[Sn+3])*pi,ui+=zr,ai+=Kr,si+=$r,li+=Wr,vn=vn.next,di<hn&&(oi+=rn)}Sn=Vr,_n=mn,wn=cn;for(var hi=0;hi<an;hi++){var gi=Sn<<2;un[gi+3]=Wr=ri*Cn>>kn,Wr>0?(Wr=255/Wr,un[gi]=(ei*Cn>>kn)*Wr,un[gi+1]=(ti*Cn>>kn)*Wr,un[gi+2]=(ni*Cn>>kn)*Wr):un[gi]=un[gi+1]=un[gi+2]=0,ei-=Xr,ti-=Yr,ni-=Jr,ri-=Zr,Xr-=_n.r,Yr-=_n.g,Jr-=_n.b,Zr-=_n.a,gi=Vr+((gi=hi+gn)<hn?gi:hn)*rn<<2,ei+=ui+=_n.r=un[gi],ti+=ai+=_n.g=un[gi+1],ni+=si+=_n.b=un[gi+2],ri+=li+=_n.a=un[gi+3],_n=_n.next,Xr+=zr=wn.r,Yr+=Kr=wn.g,Jr+=$r=wn.b,Zr+=Wr=wn.a,ui-=zr,ai-=Kr,si-=$r,li-=Wr,wn=wn.next,Sn+=rn}}return en}(cn,0,0,rn,an,sn),en.getContext("2d").putImageData(cn,tn,nn)}}var xB=function BlurStack(){!function _classCallCheck$2(en,tn){if(!(en instanceof tn))throw new TypeError("Cannot call a class as a function")}(this,BlurStack),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function compressSpaces(en){return en.replace(/(?!\u3000)\s+/gm," ")}function trimLeft(en){return en.replace(/^[\n \t]+/,"")}function trimRight(en){return en.replace(/[\n \t]+$/,"")}function toNumbers(en){var tn=(en||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return py(tn).call(tn,Dv)}var SB=/^[A-Z-]+$/;function normalizeAttributeName(en){return SB.test(en)?en.toLowerCase():en}function parseExternalUrl(en){var tn=en.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return tn[2]||tn[3]||tn[4]}function normalizeColor(en){if(!Bv(en).call(en,"rgb"))return en;var tn=3;return en.replace(/\d+(\.\d+)?/g,(function(en,nn){return tn--&&nn?String(Math.round(Dv(en))):en}))}var CB=/(\[[^\]]+\])/g,kB=/(#[^\s\+>~\.\[:]+)/g,BB=/(\.[^\s\+>~\.\[:]+)/g,EB=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,PB=/(:[\w-]+\([^\)]*\))/gi,LB=/(:[^\s\+>~\.\[:]+)/g,TB=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(en,tn){var nn=en.match(tn);return nn?[en.replace(tn," "),nn.length]:[en,0]}function getSelectorSpecificity(en){var tn=[0,0,0],nn=en.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),rn=0,an=findSelectorMatch(nn,CB),sn=bw(an,2);nn=sn[0],rn=sn[1],tn[1]+=rn;var cn=findSelectorMatch(nn,kB),un=bw(cn,2);nn=un[0],rn=un[1],tn[0]+=rn;var dn=findSelectorMatch(nn,BB),pn=bw(dn,2);nn=pn[0],rn=pn[1],tn[1]+=rn;var hn=findSelectorMatch(nn,EB),gn=bw(hn,2);nn=gn[0],rn=gn[1],tn[2]+=rn;var An=findSelectorMatch(nn,PB),mn=bw(An,2);nn=mn[0],rn=mn[1],tn[1]+=rn;var vn=findSelectorMatch(nn,LB),yn=bw(vn,2);nn=yn[0],rn=yn[1],tn[1]+=rn;var _n=findSelectorMatch(nn=nn.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),TB),wn=bw(_n,2);return nn=wn[0],rn=wn[1],tn[2]+=rn,tn.join("")}var NB=1e-8;function vectorMagnitude(en){return Math.sqrt(Math.pow(en[0],2)+Math.pow(en[1],2))}function vectorsRatio(en,tn){return(en[0]*tn[0]+en[1]*tn[1])/(vectorMagnitude(en)*vectorMagnitude(tn))}function vectorsAngle(en,tn){return(en[0]*tn[1]<en[1]*tn[0]?-1:1)*Math.acos(vectorsRatio(en,tn))}function CB1(en){return en*en*en}function CB2(en){return 3*en*en*(1-en)}function CB3(en){return 3*en*(1-en)*(1-en)}function CB4(en){return(1-en)*(1-en)*(1-en)}function QB1(en){return en*en}function QB2(en){return 2*en*(1-en)}function QB3(en){return(1-en)*(1-en)}var IB=function(){function Property(en,tn,nn){TS(this,Property),this.document=en,this.name=tn,this.value=nn,this.isNormalizedColor=!1}return NS(Property,[{key:"split",value:function split(){var en,tn,nn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",rn=this.document,an=this.name;return py(en=wC(tn=compressSpaces(this.getString())).call(tn).split(nn)).call(en,(function(en){return new Property(rn,an,en)}))}},{key:"hasValue",value:function hasValue(en){var tn=this.value;return null!==tn&&""!==tn&&(en||0!==tn)&&void 0!==tn}},{key:"isString",value:function isString(en){var tn=this.value,nn="string"==typeof tn;return nn&&en?en.test(tn):nn}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.isString(/^url\(/)}},{key:"isPixels",value:function isPixels(){if(!this.hasValue())return!1;var en=this.getString();switch(!0){case/px$/.test(en):case/^[0-9]+$/.test(en):return!0;default:return!1}}},{key:"setValue",value:function setValue(en){return this.value=en,this}},{key:"getValue",value:function getValue(en){return void 0===en||this.hasValue()?this.value:en}},{key:"getNumber",value:function getNumber(en){if(!this.hasValue())return void 0===en?0:Dv(en);var tn=this.value,nn=Dv(tn);return this.isString(/%$/)&&(nn/=100),nn}},{key:"getString",value:function getString(en){return void 0===en||this.hasValue()?void 0===this.value?"":String(this.value):String(en)}},{key:"getColor",value:function getColor(en){var tn=this.getString(en);return this.isNormalizedColor||(this.isNormalizedColor=!0,tn=normalizeColor(tn),this.value=tn),tn}},{key:"getDpi",value:function getDpi(){return 96}},{key:"getRem",value:function getRem(){return this.document.rootEmSize}},{key:"getEm",value:function getEm(){return this.document.emSize}},{key:"getUnits",value:function getUnits(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function getPixels(en){var tn=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var nn="boolean"==typeof en?[void 0,en]:[en],rn=bw(nn,2),an=rn[0],sn=rn[1],cn=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(cn.computeSize("x"),cn.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(cn.computeSize("x"),cn.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*cn.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*cn.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&sn:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*cn.computeSize(an);default:var un=this.getNumber();return tn&&un<1?un*cn.computeSize(an):un}}},{key:"getMilliseconds",value:function getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function getDefinition(){var en=this.getString(),tn=en.match(/#([^\)'"]+)/);return tn&&(tn=tn[1]),tn||(tn=en),this.document.definitions[tn]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(en,tn){var nn=this.getDefinition();if(!nn)return null;if("function"==typeof nn.createGradient)return nn.createGradient(this.document.ctx,en,tn);if("function"==typeof nn.createPattern){if(nn.getHrefAttribute().hasValue()){var rn=nn.getAttribute("patternTransform");nn=nn.getHrefAttribute().getDefinition(),rn.hasValue()&&nn.getAttribute("patternTransform",!0).setValue(rn.value)}return nn.createPattern(this.document.ctx,en,tn)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(en){for(var tn=this.getColor(),nn=tn.length,rn=0,an=0;an<nn&&(","===tn[an]&&rn++,3!==rn);an++);if(en.hasValue()&&this.isString()&&3!==rn){var sn=new xC(tn);sn.ok&&(sn.alpha=en.getNumber(),tn=sn.toRGBA())}return new Property(this.document,this.name,tn)}}],[{key:"empty",value:function empty(en){return new Property(en,"EMPTY","")}}]),Property}();IB.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var OB=function(){function ViewPort(){TS(this,ViewPort),this.viewPorts=[]}return NS(ViewPort,[{key:"clear",value:function clear(){this.viewPorts=[]}},{key:"setCurrent",value:function setCurrent(en,tn){this.viewPorts.push({width:en,height:tn})}},{key:"removeCurrent",value:function removeCurrent(){this.viewPorts.pop()}},{key:"getCurrent",value:function getCurrent(){var en=this.viewPorts;return en[en.length-1]}},{key:"computeSize",value:function computeSize(en){return"number"==typeof en?en:"x"===en?this.width:"y"===en?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function get(){return this.getCurrent().width}},{key:"height",get:function get(){return this.getCurrent().height}}]),ViewPort}(),FB=function(){function Point(en,tn){TS(this,Point),this.x=en,this.y=tn}return NS(Point,[{key:"angleTo",value:function angleTo(en){return Math.atan2(en.y-this.y,en.x-this.x)}},{key:"applyTransform",value:function applyTransform(en){var tn=this.x,nn=this.y,rn=tn*en[0]+nn*en[2]+en[4],an=tn*en[1]+nn*en[3]+en[5];this.x=rn,this.y=an}}],[{key:"parse",value:function parse(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,nn=toNumbers(en),rn=bw(nn,2),an=rn[0],sn=void 0===an?tn:an,cn=rn[1],un=void 0===cn?tn:cn;return new Point(sn,un)}},{key:"parseScale",value:function parseScale(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,nn=toNumbers(en),rn=bw(nn,2),an=rn[0],sn=void 0===an?tn:an,cn=rn[1],un=void 0===cn?sn:cn;return new Point(sn,un)}},{key:"parsePath",value:function parsePath(en){for(var tn=toNumbers(en),nn=tn.length,rn=[],an=0;an<nn;an+=2)rn.push(new Point(tn[an],tn[an+1]));return rn}}]),Point}(),UB=function(){function Mouse(en){var tn,nn;TS(this,Mouse),this.screen=en,this.working=!1,this.events=[],this.eventElements=[],this.onClick=aC(tn=this.onClick).call(tn,this),this.onMouseMove=aC(nn=this.onMouseMove).call(nn,this)}return NS(Mouse,[{key:"isWorking",value:function isWorking(){return this.working}},{key:"start",value:function start(){if(!this.working){var en=this.screen,tn=this.onClick,nn=this.onMouseMove,rn=en.ctx.canvas;rn.onclick=tn,rn.onmousemove=nn,this.working=!0}}},{key:"stop",value:function stop(){if(this.working){var en=this.screen.ctx.canvas;this.working=!1,en.onclick=null,en.onmousemove=null}}},{key:"hasEvents",value:function hasEvents(){return this.working&&this.events.length>0}},{key:"runEvents",value:function runEvents(){if(this.working){var en=this.screen,tn=this.events,nn=this.eventElements,rn=en.ctx.canvas.style;rn&&(rn.cursor=""),Fw(tn).call(tn,(function(en,tn){for(var rn=en.run,an=nn[tn];an;)rn(an),an=an.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(en,tn){if(this.working&&tn){var nn=this.events,rn=this.eventElements;Fw(nn).call(nn,(function(nn,an){var sn=nn.x,cn=nn.y;!rn[an]&&tn.isPointInPath&&tn.isPointInPath(sn,cn)&&(rn[an]=en)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(en,tn){if(this.working&&tn){var nn=this.events,rn=this.eventElements;Fw(nn).call(nn,(function(nn,an){var sn=nn.x,cn=nn.y;!rn[an]&&tn.isPointInBox(sn,cn)&&(rn[an]=en)}))}}},{key:"mapXY",value:function mapXY(en,tn){for(var nn=this.screen,rn=nn.window,an=nn.ctx,sn=new FB(en,tn),cn=an.canvas;cn;)sn.x-=cn.offsetLeft,sn.y-=cn.offsetTop,cn=cn.offsetParent;return rn.scrollX&&(sn.x+=rn.scrollX),rn.scrollY&&(sn.y+=rn.scrollY),sn}},{key:"onClick",value:function onClick(en){var tn=this.mapXY((en||event).clientX,(en||event).clientY),nn=tn.x,rn=tn.y;this.events.push({type:"onclick",x:nn,y:rn,run:function run(en){en.onClick&&en.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(en){var tn=this.mapXY((en||event).clientX,(en||event).clientY),nn=tn.x,rn=tn.y;this.events.push({type:"onmousemove",x:nn,y:rn,run:function run(en){en.onMouseMove&&en.onMouseMove()}})}}]),Mouse}(),MB="undefined"!=typeof window?window:null,RB="undefined"!=typeof fetch?aC(fetch).call(fetch,void 0):null,DB=function(){function Screen(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nn=tn.fetch,rn=void 0===nn?RB:nn,an=tn.window,sn=void 0===an?MB:an;TS(this,Screen),this.ctx=en,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new OB,this.mouse=new UB(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=sn,this.fetch=rn}return NS(Screen,[{key:"wait",value:function wait(en){this.waits.push(en)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:ZS.resolve()}},{key:"isReady",value:function isReady(){var en;if(this.isReadyLock)return!0;var tn=JS(en=this.waits).call(en,(function(en){return en()}));return tn&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=tn,tn}},{key:"setDefaults",value:function setDefaults(en){en.strokeStyle="rgba(0,0,0,0)",en.lineCap="butt",en.lineJoin="miter",en.miterLimit=4}},{key:"setViewBox",value:function setViewBox(en){var tn=en.document,nn=en.ctx,rn=en.aspectRatio,an=en.width,sn=en.desiredWidth,cn=en.height,un=en.desiredHeight,dn=en.minX,pn=void 0===dn?0:dn,hn=en.minY,gn=void 0===hn?0:hn,An=en.refX,mn=en.refY,vn=en.clip,yn=void 0!==vn&&vn,_n=en.clipX,wn=void 0===_n?0:_n,xn=en.clipY,Sn=void 0===xn?0:xn,Cn=compressSpaces(rn).replace(/^defer\s/,"").split(" "),kn=bw(Cn,2),Bn=kn[0]||"xMidYMid",En=kn[1]||"meet",Pn=an/sn,Ln=cn/un,Tn=Math.min(Pn,Ln),Nn=Math.max(Pn,Ln),In=sn,On=un;"meet"===En&&(In*=Tn,On*=Tn),"slice"===En&&(In*=Nn,On*=Nn);var Fn=new IB(tn,"refX",An),Un=new IB(tn,"refY",mn),Mn=Fn.hasValue()&&Un.hasValue();if(Mn&&nn.translate(-Tn*Fn.getPixels("x"),-Tn*Un.getPixels("y")),yn){var Rn=Tn*wn,Dn=Tn*Sn;nn.beginPath(),nn.moveTo(Rn,Dn),nn.lineTo(an,Dn),nn.lineTo(an,cn),nn.lineTo(Rn,cn),nn.closePath(),nn.clip()}if(!Mn){var jn="meet"===En&&Tn===Ln,Qn="slice"===En&&Nn===Ln,Hn="meet"===En&&Tn===Pn,Gn="slice"===En&&Nn===Pn;/^xMid/.test(Bn)&&(jn||Qn)&&nn.translate(an/2-In/2,0),/YMid$/.test(Bn)&&(Hn||Gn)&&nn.translate(0,cn/2-On/2),/^xMax/.test(Bn)&&(jn||Qn)&&nn.translate(an-In,0),/YMax$/.test(Bn)&&(Hn||Gn)&&nn.translate(0,cn-On)}switch(!0){case"none"===Bn:nn.scale(Pn,Ln);break;case"meet"===En:nn.scale(Tn,Tn);break;case"slice"===En:nn.scale(Nn,Nn)}nn.translate(-pn,-gn)}},{key:"start",value:function start(en){var tn=this,nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rn=nn.enableRedraw,an=void 0!==rn&&rn,sn=nn.ignoreMouse,cn=void 0!==sn&&sn,un=nn.ignoreAnimation,dn=void 0!==un&&un,pn=nn.ignoreDimensions,hn=void 0!==pn&&pn,gn=nn.ignoreClear,An=void 0!==gn&&gn,mn=nn.forceRedraw,vn=nn.scaleWidth,yn=nn.scaleHeight,_n=nn.offsetX,wn=nn.offsetY,xn=this.FRAMERATE,Sn=this.mouse,Cn=1e3/xn;if(this.frameDuration=Cn,this.readyPromise=new ZS((function(en){tn.resolveReady=en})),this.isReady()&&this.render(en,hn,An,vn,yn,_n,wn),an){var kn=GS(),Bn=kn,En=0,Pn=function tick(){kn=GS(),(En=kn-Bn)>=Cn&&(Bn=kn-En%Cn,tn.shouldUpdate(dn,mn)&&(tn.render(en,hn,An,vn,yn,_n,wn),Sn.runEvents())),tn.intervalId=mC(tick)};cn||Sn.start(),this.intervalId=mC(Pn)}}},{key:"stop",value:function stop(){this.intervalId&&(mC.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(en,tn){if(!en){var nn,rn=this.frameDuration,shouldUpdate=HS(nn=this.animations).call(nn,(function(en,tn){return tn.update(rn)||en}),!1);if(shouldUpdate)return!0}return!("function"!=typeof tn||!tn())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(en,tn,nn,rn,an,sn,cn){var un=this.CLIENT_WIDTH,dn=this.CLIENT_HEIGHT,pn=this.viewPort,hn=this.ctx,gn=this.isFirstRender,An=hn.canvas;pn.clear(),An.width&&An.height?pn.setCurrent(An.width,An.height):pn.setCurrent(un,dn);var mn=en.getStyle("width"),vn=en.getStyle("height");!tn&&(gn||"number"!=typeof rn&&"number"!=typeof an)&&(mn.hasValue()&&(An.width=mn.getPixels("x"),An.style&&(An.style.width="".concat(An.width,"px"))),vn.hasValue()&&(An.height=vn.getPixels("y"),An.style&&(An.style.height="".concat(An.height,"px"))));var yn=An.clientWidth||An.width,_n=An.clientHeight||An.height;if(tn&&mn.hasValue()&&vn.hasValue()&&(yn=mn.getPixels("x"),_n=vn.getPixels("y")),pn.setCurrent(yn,_n),"number"==typeof sn&&en.getAttribute("x",!0).setValue(sn),"number"==typeof cn&&en.getAttribute("y",!0).setValue(cn),"number"==typeof rn||"number"==typeof an){var wn,xn,Sn=toNumbers(en.getAttribute("viewBox").getString()),Cn=0,kn=0;if("number"==typeof rn){var Bn=en.getStyle("width");Bn.hasValue()?Cn=Bn.getPixels("x")/rn:isNaN(Sn[2])||(Cn=Sn[2]/rn)}if("number"==typeof an){var En=en.getStyle("height");En.hasValue()?kn=En.getPixels("y")/an:isNaN(Sn[3])||(kn=Sn[3]/an)}Cn||(Cn=kn),kn||(kn=Cn),en.getAttribute("width",!0).setValue(rn),en.getAttribute("height",!0).setValue(an);var Pn=en.getStyle("transform",!0,!0);Pn.setValue(FS(wn=FS(xn="".concat(Pn.getString()," scale(")).call(xn,1/Cn,", ")).call(wn,1/kn,")"))}nn||hn.clearRect(0,0,yn,_n),en.render(hn),gn&&(this.isFirstRender=!1)}}]),Screen}();DB.defaultWindow=MB,DB.defaultFetch=RB;var jB=DB.defaultFetch,QB="undefined"!=typeof DOMParser?DOMParser:null,HB=function(){function Parser(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tn=en.fetch,nn=void 0===tn?jB:tn,rn=en.DOMParser,an=void 0===rn?QB:rn;TS(this,Parser),this.fetch=nn,this.DOMParser=an}var en,tn;return NS(Parser,[{key:"parse",value:(tn=ES(Ww.mark((function _callee(en){return Ww.wrap((function _callee$(tn){for(;;)switch(tn.prev=tn.next){case 0:if(!/^</.test(en)){tn.next=2;break}return tn.abrupt("return",this.parseFromString(en));case 2:return tn.abrupt("return",this.load(en));case 3:case"end":return tn.stop()}}),_callee,this)}))),function parse(en){return tn.apply(this,arguments)})},{key:"parseFromString",value:function parseFromString(en){var tn=new this.DOMParser;try{return this.checkDocument(tn.parseFromString(en,"image/svg+xml"))}catch(nn){return this.checkDocument(tn.parseFromString(en,"text/xml"))}}},{key:"checkDocument",value:function checkDocument(en){var tn=en.getElementsByTagName("parsererror")[0];if(tn)throw new Error(tn.textContent);return en}},{key:"load",value:(en=ES(Ww.mark((function _callee2(en){var tn,nn;return Ww.wrap((function _callee2$(rn){for(;;)switch(rn.prev=rn.next){case 0:return rn.next=2,this.fetch(en);case 2:return tn=rn.sent,rn.next=5,tn.text();case 5:return nn=rn.sent,rn.abrupt("return",this.parseFromString(nn));case 7:case"end":return rn.stop()}}),_callee2,this)}))),function load(tn){return en.apply(this,arguments)})}]),Parser}(),GB=function(){function Translate(en,tn){TS(this,Translate),this.type="translate",this.point=null,this.point=FB.parse(tn)}return NS(Translate,[{key:"apply",value:function apply(en){var tn=this.point,nn=tn.x,rn=tn.y;en.translate(nn||0,rn||0)}},{key:"unapply",value:function unapply(en){var tn=this.point,nn=tn.x,rn=tn.y;en.translate(-1*nn||0,-1*rn||0)}},{key:"applyToPoint",value:function applyToPoint(en){var tn=this.point,nn=tn.x,rn=tn.y;en.applyTransform([1,0,0,1,nn||0,rn||0])}}]),Translate}(),VB=function(){function Rotate(en,tn,nn){TS(this,Rotate),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var rn=toNumbers(tn);this.angle=new IB(en,"angle",rn[0]),this.originX=nn[0],this.originY=nn[1],this.cx=rn[1]||0,this.cy=rn[2]||0}return NS(Rotate,[{key:"apply",value:function apply(en){var tn=this.cx,nn=this.cy,rn=this.originX,an=this.originY,sn=this.angle,cn=tn+rn.getPixels("x"),un=nn+an.getPixels("y");en.translate(cn,un),en.rotate(sn.getRadians()),en.translate(-cn,-un)}},{key:"unapply",value:function unapply(en){var tn=this.cx,nn=this.cy,rn=this.angle;en.translate(tn,nn),en.rotate(-1*rn.getRadians()),en.translate(-tn,-nn)}},{key:"applyToPoint",value:function applyToPoint(en){var tn=this.cx,nn=this.cy,rn=this.angle.getRadians();en.applyTransform([1,0,0,1,tn||0,nn||0]),en.applyTransform([Math.cos(rn),Math.sin(rn),-Math.sin(rn),Math.cos(rn),0,0]),en.applyTransform([1,0,0,1,-tn||0,-nn||0])}}]),Rotate}(),zB=function(){function Scale(en,tn){TS(this,Scale),this.type="scale",this.scale=null;var nn=FB.parseScale(tn);0!==nn.x&&0!==nn.y||(nn.x=NB,nn.y=NB),this.scale=nn}return NS(Scale,[{key:"apply",value:function apply(en){var tn=this.scale,nn=tn.x,rn=tn.y;en.scale(nn,rn||nn)}},{key:"unapply",value:function unapply(en){var tn=this.scale,nn=tn.x,rn=tn.y;en.scale(1/nn,1/rn||nn)}},{key:"applyToPoint",value:function applyToPoint(en){var tn=this.scale,nn=tn.x,rn=tn.y;en.applyTransform([nn||0,0,0,rn||0,0,0])}}]),Scale}(),KB=function(){function Matrix(en,tn){TS(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(tn)}return NS(Matrix,[{key:"apply",value:function apply(en){var tn=this.matrix;en.transform(tn[0],tn[1],tn[2],tn[3],tn[4],tn[5])}},{key:"unapply",value:function unapply(en){var tn=this.matrix,nn=tn[0],rn=tn[2],an=tn[4],sn=tn[1],cn=tn[3],un=tn[5],dn=1/(nn*(1*cn-0*un)-rn*(1*sn-0*un)+an*(0*sn-0*cn));en.transform(dn*(1*cn-0*un),dn*(0*un-1*sn),dn*(0*an-1*rn),dn*(1*nn-0*an),dn*(rn*un-an*cn),dn*(an*sn-nn*un))}},{key:"applyToPoint",value:function applyToPoint(en){en.applyTransform(this.matrix)}}]),Matrix}();function _createSuper$1(en){var tn=function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var qB=function(en){IC(Skew,en);var tn=_createSuper$1(Skew);function Skew(en,nn){var rn;return TS(this,Skew),(rn=tn.call(this,en,nn)).type="skew",rn.angle=null,rn.angle=new IB(en,"angle",nn),rn}return Skew}(KB);function _createSuper$1$1(en){var tn=function _isNativeReflectConstruct$1$1(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var $B=function(en){IC(SkewX,en);var tn=_createSuper$1$1(SkewX);function SkewX(en,nn){var rn;return TS(this,SkewX),(rn=tn.call(this,en,nn)).type="skewX",rn.matrix=[1,0,Math.tan(rn.angle.getRadians()),1,0,0],rn}return SkewX}(qB);function _createSuper$2(en){var tn=function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var WB=function(en){IC(SkewY,en);var tn=_createSuper$2(SkewY);function SkewY(en,nn){var rn;return TS(this,SkewY),(rn=tn.call(this,en,nn)).type="skewY",rn.matrix=[1,Math.tan(rn.angle.getRadians()),0,1,0,0],rn}return SkewY}(qB);var XB=function(){function Transform(en,tn,nn){var rn=this;TS(this,Transform),this.document=en,this.transforms=[];var an=function parseTransforms(en){var tn;return wC(tn=compressSpaces(en)).call(tn).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(tn);Fw(an).call(an,(function(en){if("none"!==en){var tn=function parseTransform(en){var tn=en.split("("),nn=bw(tn,2),rn=nn[0],an=nn[1];return[wC(rn).call(rn),wC(an).call(an).replace(")","")]}(en),an=bw(tn,2),sn=an[0],cn=an[1],un=Transform.transformTypes[sn];void 0!==un&&rn.transforms.push(new un(rn.document,cn,nn))}}))}return NS(Transform,[{key:"apply",value:function apply(en){for(var tn=this.transforms,nn=tn.length,rn=0;rn<nn;rn++)tn[rn].apply(en)}},{key:"unapply",value:function unapply(en){for(var tn=this.transforms,nn=tn.length-1;nn>=0;nn--)tn[nn].unapply(en)}},{key:"applyToPoint",value:function applyToPoint(en){for(var tn=this.transforms,nn=tn.length,rn=0;rn<nn;rn++)tn[rn].applyToPoint(en)}}],[{key:"fromElement",value:function fromElement(en,tn){var nn=tn.getStyle("transform",!1,!0),rn=tn.getStyle("transform-origin",!1,!0).split(),an=bw(rn,2),sn=an[0],cn=an[1],un=[sn,void 0===cn?sn:cn];return nn.hasValue()?new Transform(en,nn.getString(),un):null}}]),Transform}();XB.transformTypes={translate:GB,rotate:VB,scale:zB,matrix:KB,skewX:$B,skewY:WB};var YB=function(){function Element(en,tn){var nn,rn,an=this,sn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(TS(this,Element),this.document=en,this.node=tn,this.captureTextNodes=sn,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],tn&&1===tn.nodeType){if(Fw(nn=ik(tn.attributes)).call(nn,(function(tn){var nn=normalizeAttributeName(tn.nodeName);an.attributes[nn]=new IB(en,nn,tn.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var cn,un=py(cn=this.getAttribute("style").getString().split(";")).call(cn,(function(en){return wC(en).call(en)}));Fw(un).call(un,(function(tn){var nn;if(tn){var rn=py(nn=tn.split(":")).call(nn,(function(en){return wC(en).call(en)})),sn=bw(rn,2),cn=sn[0],un=sn[1];an.styles[cn]=new IB(en,cn,un)}}))}var dn=en.definitions,pn=this.getAttribute("id");pn.hasValue()&&(dn[pn.getValue()]||(dn[pn.getValue()]=this)),Fw(rn=ik(tn.childNodes)).call(rn,(function(tn){if(1===tn.nodeType)an.addChild(tn);else if(sn&&(3===tn.nodeType||4===tn.nodeType)){var nn=en.createTextNode(tn);nn.getText().length>0&&an.addChild(nn)}}))}}return NS(Element,[{key:"getAttribute",value:function getAttribute(en){var tn=arguments.length>1&&void 0!==arguments[1]&&arguments[1],nn=this.attributes[en];if(!nn&&tn){var rn=new IB(this.document,en,"");return this.attributes[en]=rn,rn}return nn||IB.empty(this.document)}},{key:"getHrefAttribute",value:function getHrefAttribute(){for(var en in this.attributes)if("href"===en||/:href$/.test(en))return this.attributes[en];return IB.empty(this.document)}},{key:"getStyle",value:function getStyle(en){var tn=arguments.length>1&&void 0!==arguments[1]&&arguments[1],nn=arguments.length>2&&void 0!==arguments[2]&&arguments[2],rn=this.styles[en];if(rn)return rn;var an=this.getAttribute(en);if(an&&an.hasValue())return this.styles[en]=an,an;if(!nn){var sn=this.parent;if(sn){var cn=sn.getStyle(en);if(cn&&cn.hasValue())return cn}}if(tn){var un=new IB(this.document,en,"");return this.styles[en]=un,un}return rn||IB.empty(this.document)}},{key:"render",value:function render(en){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(en.save(),this.getStyle("mask").hasValue()){var tn=this.getStyle("mask").getDefinition();tn&&(this.applyEffects(en),tn.apply(en,this))}else if("none"!==this.getStyle("filter").getValue("none")){var nn=this.getStyle("filter").getDefinition();nn&&(this.applyEffects(en),nn.apply(en,this))}else this.setContext(en),this.renderChildren(en),this.clearContext(en);en.restore()}}},{key:"setContext",value:function setContext(en){}},{key:"applyEffects",value:function applyEffects(en){var tn=XB.fromElement(this.document,this);tn&&tn.apply(en);var nn=this.getStyle("clip-path",!1,!0);if(nn.hasValue()){var rn=nn.getDefinition();rn&&rn.apply(en)}}},{key:"clearContext",value:function clearContext(en){}},{key:"renderChildren",value:function renderChildren(en){var tn;Fw(tn=this.children).call(tn,(function(tn){tn.render(en)}))}},{key:"addChild",value:function addChild(en){var tn,nn=en instanceof Element?en:this.document.createElement(en);nn.parent=this,rk(tn=Element.ignoreChildTypes).call(tn,nn.type)||this.children.push(nn)}},{key:"matchesSelector",value:function matchesSelector(en){var tn,nn=this.node;if("function"==typeof nn.matches)return nn.matches(en);var rn=nn.getAttribute("class");return!(!rn||""===rn)&&XC(tn=rn.split(" ")).call(tn,(function(tn){if(".".concat(tn)===en)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var en=this.document,tn=en.styles,nn=en.stylesSpecificity;for(var rn in tn)if("@"!==rn[0]&&this.matchesSelector(rn)){var an=tn[rn],sn=nn[rn];if(an)for(var cn in an){var un=this.stylesSpecificity[cn];void 0===un&&(un="000"),sn>=un&&(this.styles[cn]=an[cn],this.stylesSpecificity[cn]=sn)}}}},{key:"removeStyles",value:function removeStyles(en,tn){return HS(tn).call(tn,(function(tn,nn){var rn,an=en.getStyle(nn);if(!an.hasValue())return tn;var sn=an.getString();return an.setValue(""),FS(rn=[]).call(rn,VC(tn),[[nn,sn]])}),[])}},{key:"restoreStyles",value:function restoreStyles(en,tn){Fw(tn).call(tn,(function(tn){var nn=bw(tn,2),rn=nn[0],an=nn[1];en.getStyle(rn,!0).setValue(an)}))}}]),Element}();function _createSuper$3(en){var tn=function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}YB.ignoreChildTypes=["title"];var JB=function(en){IC(UnknownElement,en);var tn=_createSuper$3(UnknownElement);function UnknownElement(en,nn,rn){return TS(this,UnknownElement),tn.call(this,en,nn,rn)}return UnknownElement}(YB);function wrapFontFamily(en){var tn=wC(en).call(en);return/^('|")/.test(tn)?tn:'"'.concat(tn,'"')}function prepareFontStyle(en){if(!en)return"";var tn=wC(en).call(en).toLowerCase();switch(tn){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return tn;default:return/^oblique\s+(-|)\d+deg$/.test(tn)?tn:""}}function prepareFontWeight(en){if(!en)return"";var tn=wC(en).call(en).toLowerCase();switch(tn){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return tn;default:return/^[\d.]+$/.test(tn)?tn:""}}var ZB=function(){function Font(en,tn,nn,rn,an,sn){TS(this,Font);var cn=sn?"string"==typeof sn?Font.parse(sn):sn:{};this.fontFamily=an||cn.fontFamily,this.fontSize=rn||cn.fontSize,this.fontStyle=en||cn.fontStyle,this.fontWeight=nn||cn.fontWeight,this.fontVariant=tn||cn.fontVariant}return NS(Font,[{key:"toString",value:function toString(){var en,tn,nn;return wC(en=[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(tn=this.fontFamily,void 0===cm?tn:py(nn=wC(tn).call(tn).split(",")).call(nn,wrapFontFamily).join(","))].join(" ")).call(en)}}],[{key:"parse",value:function parse(){var en,tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",nn=arguments.length>1?arguments[1]:void 0,rn="",an="",sn="",cn="",un="",dn=wC(en=compressSpaces(tn)).call(en).split(" "),pn={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return Fw(dn).call(dn,(function(en){var tn,nn,dn;switch(!0){case!pn.fontStyle&&rk(tn=Font.styles).call(tn,en):"inherit"!==en&&(rn=en),pn.fontStyle=!0;break;case!pn.fontVariant&&rk(nn=Font.variants).call(nn,en):"inherit"!==en&&(an=en),pn.fontStyle=!0,pn.fontVariant=!0;break;case!pn.fontWeight&&rk(dn=Font.weights).call(dn,en):"inherit"!==en&&(sn=en),pn.fontStyle=!0,pn.fontVariant=!0,pn.fontWeight=!0;break;case!pn.fontSize:if("inherit"!==en){var hn=en.split("/"),gn=bw(hn,1);cn=gn[0]}pn.fontStyle=!0,pn.fontVariant=!0,pn.fontWeight=!0,pn.fontSize=!0;break;default:"inherit"!==en&&(un+=en)}})),new Font(rn,an,sn,cn,un,nn)}}]),Font}();ZB.styles="normal|italic|oblique|inherit",ZB.variants="normal|small-caps|inherit",ZB.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var eE=function(){function BoundingBox(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,rn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;TS(this,BoundingBox),this.x1=en,this.y1=tn,this.x2=nn,this.y2=rn,this.addPoint(en,tn),this.addPoint(nn,rn)}return NS(BoundingBox,[{key:"addPoint",value:function addPoint(en,tn){void 0!==en&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=en,this.x2=en),en<this.x1&&(this.x1=en),en>this.x2&&(this.x2=en)),void 0!==tn&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=tn,this.y2=tn),tn<this.y1&&(this.y1=tn),tn>this.y2&&(this.y2=tn))}},{key:"addX",value:function addX(en){this.addPoint(en,null)}},{key:"addY",value:function addY(en){this.addPoint(null,en)}},{key:"addBoundingBox",value:function addBoundingBox(en){if(en){var tn=en.x1,nn=en.y1,rn=en.x2,an=en.y2;this.addPoint(tn,nn),this.addPoint(rn,an)}}},{key:"sumCubic",value:function sumCubic(en,tn,nn,rn,an){return Math.pow(1-en,3)*tn+3*Math.pow(1-en,2)*en*nn+3*(1-en)*Math.pow(en,2)*rn+Math.pow(en,3)*an}},{key:"bezierCurveAdd",value:function bezierCurveAdd(en,tn,nn,rn,an){var sn=6*tn-12*nn+6*rn,cn=-3*tn+9*nn-9*rn+3*an,un=3*nn-3*tn;if(0!==cn){var dn=Math.pow(sn,2)-4*un*cn;if(!(dn<0)){var pn=(-sn+Math.sqrt(dn))/(2*cn);0<pn&&pn<1&&(en?this.addX(this.sumCubic(pn,tn,nn,rn,an)):this.addY(this.sumCubic(pn,tn,nn,rn,an)));var hn=(-sn-Math.sqrt(dn))/(2*cn);0<hn&&hn<1&&(en?this.addX(this.sumCubic(hn,tn,nn,rn,an)):this.addY(this.sumCubic(hn,tn,nn,rn,an)))}}else{if(0===sn)return;var gn=-un/sn;0<gn&&gn<1&&(en?this.addX(this.sumCubic(gn,tn,nn,rn,an)):this.addY(this.sumCubic(gn,tn,nn,rn,an)))}}},{key:"addBezierCurve",value:function addBezierCurve(en,tn,nn,rn,an,sn,cn,un){this.addPoint(en,tn),this.addPoint(cn,un),this.bezierCurveAdd(!0,en,nn,an,cn),this.bezierCurveAdd(!1,tn,rn,sn,un)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(en,tn,nn,rn,an,sn){var cn=en+2/3*(nn-en),un=tn+2/3*(rn-tn),dn=cn+1/3*(an-en),pn=un+1/3*(sn-tn);this.addBezierCurve(en,tn,cn,dn,un,pn,an,sn)}},{key:"isPointInBox",value:function isPointInBox(en,tn){var nn=this.x1,rn=this.y1,an=this.x2,sn=this.y2;return nn<=en&&en<=an&&rn<=tn&&tn<=sn}},{key:"x",get:function get(){return this.x1}},{key:"y",get:function get(){return this.y1}},{key:"width",get:function get(){return this.x2-this.x1}},{key:"height",get:function get(){return this.y2-this.y1}}]),BoundingBox}();function _createSuper$4(en){var tn=function _isNativeReflectConstruct$4(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var tE=function(en){IC(RenderedElement,en);var tn=_createSuper$4(RenderedElement);function RenderedElement(){var en;return TS(this,RenderedElement),(en=tn.apply(this,arguments)).modifiedEmSizeStack=!1,en}return NS(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var en=1,tn=this;tn;){var nn=tn.getStyle("opacity",!1,!0);nn.hasValue(!0)&&(en*=nn.getNumber()),tn=tn.parent}return en}},{key:"setContext",value:function setContext(en){var tn=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!tn){var nn=this.getStyle("fill"),rn=this.getStyle("fill-opacity"),an=this.getStyle("stroke"),sn=this.getStyle("stroke-opacity");if(nn.isUrlDefinition()){var cn=nn.getFillStyleDefinition(this,rn);cn&&(en.fillStyle=cn)}else if(nn.hasValue()){"currentColor"===nn.getString()&&nn.setValue(this.getStyle("color").getColor());var un=nn.getColor();"inherit"!==un&&(en.fillStyle="none"===un?"rgba(0,0,0,0)":un)}if(rn.hasValue()){var dn=new IB(this.document,"fill",en.fillStyle).addOpacity(rn).getColor();en.fillStyle=dn}if(an.isUrlDefinition()){var pn=an.getFillStyleDefinition(this,sn);pn&&(en.strokeStyle=pn)}else if(an.hasValue()){"currentColor"===an.getString()&&an.setValue(this.getStyle("color").getColor());var hn=an.getString();"inherit"!==hn&&(en.strokeStyle="none"===hn?"rgba(0,0,0,0)":hn)}if(sn.hasValue()){var gn=new IB(this.document,"stroke",en.strokeStyle).addOpacity(sn).getString();en.strokeStyle=gn}var An=this.getStyle("stroke-width");if(An.hasValue()){var mn=An.getPixels();en.lineWidth=mn||NB}var vn=this.getStyle("stroke-linecap"),yn=this.getStyle("stroke-linejoin"),_n=this.getStyle("stroke-miterlimit"),wn=this.getStyle("paint-order"),xn=this.getStyle("stroke-dasharray"),Sn=this.getStyle("stroke-dashoffset");if(vn.hasValue()&&(en.lineCap=vn.getString()),yn.hasValue()&&(en.lineJoin=yn.getString()),_n.hasValue()&&(en.miterLimit=_n.getNumber()),wn.hasValue()&&(en.paintOrder=wn.getValue()),xn.hasValue()&&"none"!==xn.getString()){var Cn=toNumbers(xn.getString());void 0!==en.setLineDash?en.setLineDash(Cn):void 0!==en.webkitLineDash?en.webkitLineDash=Cn:void 0===en.mozDash||1===Cn.length&&0===Cn[0]||(en.mozDash=Cn);var kn=Sn.getPixels();void 0!==en.lineDashOffset?en.lineDashOffset=kn:void 0!==en.webkitLineDashOffset?en.webkitLineDashOffset=kn:void 0!==en.mozDashOffset&&(en.mozDashOffset=kn)}}if(this.modifiedEmSizeStack=!1,void 0!==en.font){var Bn=this.getStyle("font"),En=this.getStyle("font-style"),Pn=this.getStyle("font-variant"),Ln=this.getStyle("font-weight"),Tn=this.getStyle("font-size"),Nn=this.getStyle("font-family"),In=new ZB(En.getString(),Pn.getString(),Ln.getString(),Tn.hasValue()?"".concat(Tn.getPixels(!0),"px"):"",Nn.getString(),ZB.parse(Bn.getString(),en.font));En.setValue(In.fontStyle),Pn.setValue(In.fontVariant),Ln.setValue(In.fontWeight),Tn.setValue(In.fontSize),Nn.setValue(In.fontFamily),en.font=In.toString(),Tn.isPixels()&&(this.document.emSize=Tn.getPixels(),this.modifiedEmSizeStack=!0)}tn||(this.applyEffects(en),en.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(en){wk(jC(RenderedElement.prototype),"clearContext",this).call(this,en),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}(YB);function _createSuper$5(en){var tn=function _isNativeReflectConstruct$5(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var nE=function(en){IC(TextElement,en);var tn=_createSuper$5(TextElement);function TextElement(en,nn,rn){var an;return TS(this,TextElement),(an=tn.call(this,en,nn,(this instanceof TextElement?this.constructor:void 0)===TextElement||rn)).type="text",an.x=0,an.y=0,an.measureCache=-1,an}return NS(TextElement,[{key:"setContext",value:function setContext(en){var tn=arguments.length>1&&void 0!==arguments[1]&&arguments[1];wk(jC(TextElement.prototype),"setContext",this).call(this,en,tn);var nn=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();nn&&(en.textBaseline=nn)}},{key:"initializeCoordinates",value:function initializeCoordinates(en){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var tn=this.getAttribute("dx"),nn=this.getAttribute("dy");tn.hasValue()&&(this.x+=tn.getPixels("x")),nn.hasValue()&&(this.y+=nn.getPixels("y")),this.x+=this.getAnchorDelta(en,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(en){var tn,nn=this;if("text"!==this.type)return this.getTElementBoundingBox(en);this.initializeCoordinates(en);var rn=null;return Fw(tn=this.children).call(tn,(function(tn,an){var sn=nn.getChildBoundingBox(en,nn,nn,an);rn?rn.addBoundingBox(sn):rn=sn})),rn}},{key:"getFontSize",value:function getFontSize(){var en=this.document,tn=this.parent,nn=ZB.parse(en.ctx.font).fontSize;return tn.getStyle("font-size").getNumber(nn)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(en){var tn=this.getFontSize();return new eE(this.x,this.y-tn,this.x+this.measureText(en),this.y)}},{key:"getGlyph",value:function getGlyph(en,tn,nn){var rn=tn[nn],an=null;if(en.isArabic){var sn=tn.length,cn=tn[nn-1],un=tn[nn+1],dn="isolated";(0===nn||" "===cn)&&nn<sn-2&&" "!==un&&(dn="terminal"),nn>0&&" "!==cn&&nn<sn-2&&" "!==un&&(dn="medial"),nn>0&&" "!==cn&&(nn===sn-1||" "===un)&&(dn="initial"),void 0!==en.glyphs[rn]&&((an=en.glyphs[rn][dn])||"glyph"!==en.glyphs[rn].type||(an=en.glyphs[rn]))}else an=en.glyphs[rn];return an||(an=en.missingGlyph),an}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(en){var tn=en||this.node,nn=ik(tn.parentNode.childNodes),rn=mk(nn).call(nn,tn),an=nn.length-1,sn=compressSpaces(tn.value||tn.text||tn.textContent||"");return 0===rn&&(sn=trimLeft(sn)),rn===an&&(sn=trimRight(sn)),sn}},{key:"renderChildren",value:function renderChildren(en){var tn,nn=this;if("text"===this.type){this.initializeCoordinates(en),Fw(tn=this.children).call(tn,(function(tn,rn){nn.renderChild(en,nn,nn,rn)}));var rn=this.document.screen.mouse;rn.isWorking()&&rn.checkBoundingBox(this,this.getBoundingBox(en))}else this.renderTElementChildren(en)}},{key:"renderTElementChildren",value:function renderTElementChildren(en){var tn=this.document,nn=this.parent,rn=this.getText(),an=nn.getStyle("font-family").getDefinition();if(an)for(var sn,cn=an.fontFace.unitsPerEm,un=ZB.parse(tn.ctx.font),dn=nn.getStyle("font-size").getNumber(un.fontSize),pn=nn.getStyle("font-style").getString(un.fontStyle),hn=dn/cn,gn=an.isRTL?ck(sn=rn.split("")).call(sn).join(""):rn,An=toNumbers(nn.getAttribute("dx").getString()),mn=gn.length,vn=0;vn<mn;vn++){var yn=this.getGlyph(an,gn,vn);en.translate(this.x,this.y),en.scale(hn,-hn);var _n=en.lineWidth;en.lineWidth=en.lineWidth*cn/dn,"italic"===pn&&en.transform(1,0,.4,1,0,0),yn.render(en),"italic"===pn&&en.transform(1,0,-.4,1,0,0),en.lineWidth=_n,en.scale(1/hn,-1/hn),en.translate(-this.x,-this.y),this.x+=dn*(yn.horizAdvX||an.horizAdvX)/cn,void 0===An[vn]||isNaN(An[vn])||(this.x+=An[vn])}else{var wn=this.x,xn=this.y;"stroke"===en.paintOrder?(en.strokeStyle&&en.strokeText(rn,wn,xn),en.fillStyle&&en.fillText(rn,wn,xn)):(en.fillStyle&&en.fillText(rn,wn,xn),en.strokeStyle&&en.strokeText(rn,wn,xn))}}},{key:"getAnchorDelta",value:function getAnchorDelta(en,tn,nn){var rn=this.getStyle("text-anchor").getString("start");if("start"!==rn){for(var an=tn.children,sn=an.length,cn=null,un=0,dn=nn;dn<sn&&(cn=an[dn],!(dn>nn&&cn.getAttribute("x").hasValue()||cn.getAttribute("text-anchor").hasValue()));dn++)un+=cn.measureTextRecursive(en);return-1*("end"===rn?un:un/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(en,tn,nn,rn){var an=nn.children[rn];if("function"!=typeof an.measureText)return an;en.save(),an.setContext(en,!0);var sn=an.getAttribute("x"),cn=an.getAttribute("y"),un=an.getAttribute("dx"),dn=an.getAttribute("dy"),pn=an.getAttribute("text-anchor").getString("start");if(0===rn&&"textNode"!==an.type&&(sn.hasValue()||sn.setValue(tn.getAttribute("x").getValue("0")),cn.hasValue()||cn.setValue(tn.getAttribute("y").getValue("0")),un.hasValue()||un.setValue(tn.getAttribute("dx").getValue("0")),dn.hasValue()||dn.setValue(tn.getAttribute("dy").getValue("0"))),sn.hasValue()){if(an.x=sn.getPixels("x")+tn.getAnchorDelta(en,nn,rn),"start"!==pn){var hn=an.measureTextRecursive(en);an.x+=-1*("end"===pn?hn:hn/2)}un.hasValue()&&(an.x+=un.getPixels("x"))}else{if("start"!==pn){var gn=an.measureTextRecursive(en);tn.x+=-1*("end"===pn?gn:gn/2)}un.hasValue()&&(tn.x+=un.getPixels("x")),an.x=tn.x}return tn.x=an.x+an.measureText(en),cn.hasValue()?(an.y=cn.getPixels("y"),dn.hasValue()&&(an.y+=dn.getPixels("y"))):(dn.hasValue()&&(tn.y+=dn.getPixels("y")),an.y=tn.y),tn.y=an.y,an.clearContext(en),en.restore(),an}},{key:"getChildBoundingBox",value:function getChildBoundingBox(en,tn,nn,rn){var an,sn=this.adjustChildCoordinates(en,tn,nn,rn);if("function"!=typeof sn.getBoundingBox)return null;var cn=sn.getBoundingBox(en);return cn?(Fw(an=sn.children).call(an,(function(nn,rn){var an=tn.getChildBoundingBox(en,tn,sn,rn);cn.addBoundingBox(an)})),cn):null}},{key:"renderChild",value:function renderChild(en,tn,nn,rn){var an,sn=this.adjustChildCoordinates(en,tn,nn,rn);sn.render(en),Fw(an=sn.children).call(an,(function(nn,rn){tn.renderChild(en,tn,sn,rn)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(en){var tn;return HS(tn=this.children).call(tn,(function(tn,nn){return tn+nn.measureTextRecursive(en)}),this.measureText(en))}},{key:"measureText",value:function measureText(en){var tn=this.measureCache;if(~tn)return tn;var nn=this.getText(),rn=this.measureTargetText(en,nn);return this.measureCache=rn,rn}},{key:"measureTargetText",value:function measureTargetText(en,tn){if(!tn.length)return 0;var nn=this.parent,rn=nn.getStyle("font-family").getDefinition();if(rn){for(var an,sn=this.getFontSize(),cn=rn.isRTL?ck(an=tn.split("")).call(an).join(""):tn,un=toNumbers(nn.getAttribute("dx").getString()),dn=cn.length,pn=0,hn=0;hn<dn;hn++){pn+=(this.getGlyph(rn,cn,hn).horizAdvX||rn.horizAdvX)*sn/rn.fontFace.unitsPerEm,void 0===un[hn]||isNaN(un[hn])||(pn+=un[hn])}return pn}if(!en.measureText)return 10*tn.length;en.save(),this.setContext(en,!0);var gn=en.measureText(tn).width;return this.clearContext(en),en.restore(),gn}}]),TextElement}(tE);function _createSuper$6(en){var tn=function _isNativeReflectConstruct$6(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var rE=function(en){IC(TSpanElement,en);var tn=_createSuper$6(TSpanElement);function TSpanElement(en,nn,rn){var an;return TS(this,TSpanElement),(an=tn.call(this,en,nn,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||rn)).type="tspan",an.text=an.children.length>0?"":an.getTextFromNode(),an}return NS(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}(nE);function _createSuper$7(en){var tn=function _isNativeReflectConstruct$7(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var iE=function(en){IC(TextNode,en);var tn=_createSuper$7(TextNode);function TextNode(){var en;return TS(this,TextNode),(en=tn.apply(this,arguments)).type="textNode",en}return TextNode}(rE);function _createSuper$8(en){var tn=function _isNativeReflectConstruct$8(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var oE=function(en){IC(PathParser,en);var tn=_createSuper$8(PathParser);function PathParser(en){var nn;return TS(this,PathParser),(nn=tn.call(this,en.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,nn.start=null,nn.current=null,nn.command=null,nn.commands=nn.commands,nn.i=-1,nn.previousCommand=null,nn.points=[],nn.angles=[],nn}return NS(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new FB(0,0),this.control=new FB(0,0),this.current=new FB(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function isEnd(){return this.i>=this.commands.length-1}},{key:"next",value:function next(){var en=this.commands[++this.i];return this.previousCommand=this.command,this.command=en,en}},{key:"getPoint",value:function getPoint(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",nn=new FB(this.command[en],this.command[tn]);return this.makeAbsolute(nn)}},{key:"getAsControlPoint",value:function getAsControlPoint(en,tn){var nn=this.getPoint(en,tn);return this.control=nn,nn}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(en,tn){var nn=this.getPoint(en,tn);return this.current=nn,nn}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var en=this.previousCommand.type;if(en!==Fk.CURVE_TO&&en!==Fk.SMOOTH_CURVE_TO&&en!==Fk.QUAD_TO&&en!==Fk.SMOOTH_QUAD_TO)return this.current;var tn=this.current,nn=tn.x,rn=tn.y,an=this.control,sn=an.x,cn=an.y;return new FB(2*nn-sn,2*rn-cn)}},{key:"makeAbsolute",value:function makeAbsolute(en){if(this.command.relative){var tn=this.current,nn=tn.x,rn=tn.y;en.x+=nn,en.y+=rn}return en}},{key:"addMarker",value:function addMarker(en,tn,nn){var rn=this.points,an=this.angles;nn&&an.length>0&&!an[an.length-1]&&(an[an.length-1]=rn[rn.length-1].angleTo(nn)),this.addMarkerAngle(en,tn?tn.angleTo(en):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(en,tn){this.points.push(en),this.angles.push(tn)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var en=this.angles,tn=en.length,nn=0;nn<tn;nn++)if(!en[nn])for(var rn=nn+1;rn<tn;rn++)if(en[rn]){en[nn]=en[rn];break}return en}}]),PathParser}(Fk);function _createSuper$9(en){var tn=function _isNativeReflectConstruct$9(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var aE=function(en){IC(PathElement,en);var tn=_createSuper$9(PathElement);function PathElement(en,nn,rn){var an;return TS(this,PathElement),(an=tn.call(this,en,nn,rn)).type="path",an.pathParser=null,an.pathParser=new oE(an.getAttribute("d").getString()),an}return NS(PathElement,[{key:"path",value:function path(en){var tn=this.pathParser,nn=new eE;for(tn.reset(),en&&en.beginPath();!tn.isEnd();)switch(tn.next().type){case oE.MOVE_TO:this.pathM(en,nn);break;case oE.LINE_TO:this.pathL(en,nn);break;case oE.HORIZ_LINE_TO:this.pathH(en,nn);break;case oE.VERT_LINE_TO:this.pathV(en,nn);break;case oE.CURVE_TO:this.pathC(en,nn);break;case oE.SMOOTH_CURVE_TO:this.pathS(en,nn);break;case oE.QUAD_TO:this.pathQ(en,nn);break;case oE.SMOOTH_QUAD_TO:this.pathT(en,nn);break;case oE.ARC:this.pathA(en,nn);break;case oE.CLOSE_PATH:this.pathZ(en,nn)}return nn}},{key:"getBoundingBox",value:function getBoundingBox(en){return this.path()}},{key:"getMarkers",value:function getMarkers(){var en=this.pathParser,tn=en.getMarkerPoints(),nn=en.getMarkerAngles();return py(tn).call(tn,(function(en,tn){return[en,nn[tn]]}))}},{key:"renderChildren",value:function renderChildren(en){this.path(en),this.document.screen.mouse.checkPath(this,en);var tn=this.getStyle("fill-rule");""!==en.fillStyle&&("inherit"!==tn.getString("inherit")?Ck(en).call(en,tn.getString()):Ck(en).call(en)),""!==en.strokeStyle&&en.stroke();var nn=this.getMarkers();if(nn){var rn=nn.length-1,an=this.getStyle("marker-start"),sn=this.getStyle("marker-mid"),cn=this.getStyle("marker-end");if(an.isUrlDefinition()){var un=an.getDefinition(),dn=bw(nn[0],2),pn=dn[0],hn=dn[1];un.render(en,pn,hn)}if(sn.isUrlDefinition())for(var gn=sn.getDefinition(),An=1;An<rn;An++){var mn=bw(nn[An],2),vn=mn[0],yn=mn[1];gn.render(en,vn,yn)}if(cn.isUrlDefinition()){var _n=cn.getDefinition(),wn=bw(nn[rn],2),xn=wn[0],Sn=wn[1];_n.render(en,xn,Sn)}}}},{key:"pathM",value:function pathM(en,tn){var nn=this.pathParser,rn=PathElement.pathM(nn).point,an=rn.x,sn=rn.y;nn.addMarker(rn),tn.addPoint(an,sn),en&&en.moveTo(an,sn)}},{key:"pathL",value:function pathL(en,tn){var nn=this.pathParser,rn=PathElement.pathL(nn),an=rn.current,sn=rn.point,cn=sn.x,un=sn.y;nn.addMarker(sn,an),tn.addPoint(cn,un),en&&en.lineTo(cn,un)}},{key:"pathH",value:function pathH(en,tn){var nn=this.pathParser,rn=PathElement.pathH(nn),an=rn.current,sn=rn.point,cn=sn.x,un=sn.y;nn.addMarker(sn,an),tn.addPoint(cn,un),en&&en.lineTo(cn,un)}},{key:"pathV",value:function pathV(en,tn){var nn=this.pathParser,rn=PathElement.pathV(nn),an=rn.current,sn=rn.point,cn=sn.x,un=sn.y;nn.addMarker(sn,an),tn.addPoint(cn,un),en&&en.lineTo(cn,un)}},{key:"pathC",value:function pathC(en,tn){var nn=this.pathParser,rn=PathElement.pathC(nn),an=rn.current,sn=rn.point,cn=rn.controlPoint,un=rn.currentPoint;nn.addMarker(un,cn,sn),tn.addBezierCurve(an.x,an.y,sn.x,sn.y,cn.x,cn.y,un.x,un.y),en&&en.bezierCurveTo(sn.x,sn.y,cn.x,cn.y,un.x,un.y)}},{key:"pathS",value:function pathS(en,tn){var nn=this.pathParser,rn=PathElement.pathS(nn),an=rn.current,sn=rn.point,cn=rn.controlPoint,un=rn.currentPoint;nn.addMarker(un,cn,sn),tn.addBezierCurve(an.x,an.y,sn.x,sn.y,cn.x,cn.y,un.x,un.y),en&&en.bezierCurveTo(sn.x,sn.y,cn.x,cn.y,un.x,un.y)}},{key:"pathQ",value:function pathQ(en,tn){var nn=this.pathParser,rn=PathElement.pathQ(nn),an=rn.current,sn=rn.controlPoint,cn=rn.currentPoint;nn.addMarker(cn,sn,sn),tn.addQuadraticCurve(an.x,an.y,sn.x,sn.y,cn.x,cn.y),en&&en.quadraticCurveTo(sn.x,sn.y,cn.x,cn.y)}},{key:"pathT",value:function pathT(en,tn){var nn=this.pathParser,rn=PathElement.pathT(nn),an=rn.current,sn=rn.controlPoint,cn=rn.currentPoint;nn.addMarker(cn,sn,sn),tn.addQuadraticCurve(an.x,an.y,sn.x,sn.y,cn.x,cn.y),en&&en.quadraticCurveTo(sn.x,sn.y,cn.x,cn.y)}},{key:"pathA",value:function pathA(en,tn){var nn=this.pathParser,rn=PathElement.pathA(nn),an=rn.currentPoint,sn=rn.rX,cn=rn.rY,un=rn.sweepFlag,dn=rn.xAxisRotation,pn=rn.centp,hn=rn.a1,gn=rn.ad,An=1-un?1:-1,mn=hn+An*(gn/2),vn=new FB(pn.x+sn*Math.cos(mn),pn.y+cn*Math.sin(mn));if(nn.addMarkerAngle(vn,mn-An*Math.PI/2),nn.addMarkerAngle(an,mn-An*Math.PI),tn.addPoint(an.x,an.y),en&&!isNaN(hn)&&!isNaN(gn)){var yn=sn>cn?sn:cn,_n=sn>cn?1:sn/cn,wn=sn>cn?cn/sn:1;en.translate(pn.x,pn.y),en.rotate(dn),en.scale(_n,wn),en.arc(0,0,yn,hn,hn+gn,Boolean(1-un)),en.scale(1/_n,1/wn),en.rotate(-dn),en.translate(-pn.x,-pn.y)}}},{key:"pathZ",value:function pathZ(en,tn){PathElement.pathZ(this.pathParser),en&&tn.x1!==tn.x2&&tn.y1!==tn.y2&&en.closePath()}}],[{key:"pathM",value:function pathM(en){var tn=en.getAsCurrentPoint();return en.start=en.current,{point:tn}}},{key:"pathL",value:function pathL(en){return{current:en.current,point:en.getAsCurrentPoint()}}},{key:"pathH",value:function pathH(en){var tn=en.current,nn=en.command,rn=new FB((nn.relative?tn.x:0)+nn.x,tn.y);return en.current=rn,{current:tn,point:rn}}},{key:"pathV",value:function pathV(en){var tn=en.current,nn=en.command,rn=new FB(tn.x,(nn.relative?tn.y:0)+nn.y);return en.current=rn,{current:tn,point:rn}}},{key:"pathC",value:function pathC(en){return{current:en.current,point:en.getPoint("x1","y1"),controlPoint:en.getAsControlPoint("x2","y2"),currentPoint:en.getAsCurrentPoint()}}},{key:"pathS",value:function pathS(en){return{current:en.current,point:en.getReflectedControlPoint(),controlPoint:en.getAsControlPoint("x2","y2"),currentPoint:en.getAsCurrentPoint()}}},{key:"pathQ",value:function pathQ(en){return{current:en.current,controlPoint:en.getAsControlPoint("x1","y1"),currentPoint:en.getAsCurrentPoint()}}},{key:"pathT",value:function pathT(en){var tn=en.current,nn=en.getReflectedControlPoint();return en.control=nn,{current:tn,controlPoint:nn,currentPoint:en.getAsCurrentPoint()}}},{key:"pathA",value:function pathA(en){var tn=en.current,nn=en.command,rn=nn.rX,an=nn.rY,sn=nn.xRot,cn=nn.lArcFlag,un=nn.sweepFlag,dn=sn*(Math.PI/180),pn=en.getAsCurrentPoint(),hn=new FB(Math.cos(dn)*(tn.x-pn.x)/2+Math.sin(dn)*(tn.y-pn.y)/2,-Math.sin(dn)*(tn.x-pn.x)/2+Math.cos(dn)*(tn.y-pn.y)/2),gn=Math.pow(hn.x,2)/Math.pow(rn,2)+Math.pow(hn.y,2)/Math.pow(an,2);gn>1&&(rn*=Math.sqrt(gn),an*=Math.sqrt(gn));var An=(cn===un?-1:1)*Math.sqrt((Math.pow(rn,2)*Math.pow(an,2)-Math.pow(rn,2)*Math.pow(hn.y,2)-Math.pow(an,2)*Math.pow(hn.x,2))/(Math.pow(rn,2)*Math.pow(hn.y,2)+Math.pow(an,2)*Math.pow(hn.x,2)));isNaN(An)&&(An=0);var mn=new FB(An*rn*hn.y/an,An*-an*hn.x/rn),vn=new FB((tn.x+pn.x)/2+Math.cos(dn)*mn.x-Math.sin(dn)*mn.y,(tn.y+pn.y)/2+Math.sin(dn)*mn.x+Math.cos(dn)*mn.y),yn=vectorsAngle([1,0],[(hn.x-mn.x)/rn,(hn.y-mn.y)/an]),_n=[(hn.x-mn.x)/rn,(hn.y-mn.y)/an],wn=[(-hn.x-mn.x)/rn,(-hn.y-mn.y)/an],xn=vectorsAngle(_n,wn);return vectorsRatio(_n,wn)<=-1&&(xn=Math.PI),vectorsRatio(_n,wn)>=1&&(xn=0),{currentPoint:pn,rX:rn,rY:an,sweepFlag:un,xAxisRotation:dn,centp:vn,a1:yn,ad:xn}}},{key:"pathZ",value:function pathZ(en){en.current=en.start}}]),PathElement}(tE);function _createSuper$a(en){var tn=function _isNativeReflectConstruct$a(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var sE=function(en){IC(SVGElement,en);var tn=_createSuper$a(SVGElement);function SVGElement(){var en;return TS(this,SVGElement),(en=tn.apply(this,arguments)).type="svg",en.root=!1,en}return NS(SVGElement,[{key:"setContext",value:function setContext(en){var tn=this.document,nn=tn.screen,rn=tn.window,an=en.canvas;if(nn.setDefaults(en),an.style&&void 0!==en.font&&rn&&void 0!==rn.getComputedStyle){en.font=rn.getComputedStyle(an).getPropertyValue("font");var sn=new IB(tn,"fontSize",ZB.parse(en.font).fontSize);sn.hasValue()&&(tn.rootEmSize=sn.getPixels("y"),tn.emSize=tn.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var cn=nn.viewPort,un=cn.width,dn=cn.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var pn=this.getAttribute("refX"),hn=this.getAttribute("refY"),gn=this.getAttribute("viewBox"),An=gn.hasValue()?toNumbers(gn.getString()):null,mn=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),vn=0,yn=0,_n=0,wn=0;An&&(vn=An[0],yn=An[1]),this.root||(un=this.getStyle("width").getPixels("x"),dn=this.getStyle("height").getPixels("y"),"marker"===this.type&&(_n=vn,wn=yn,vn=0,yn=0)),nn.viewPort.setCurrent(un,dn),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),wk(jC(SVGElement.prototype),"setContext",this).call(this,en),en.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),An&&(un=An[2],dn=An[3]),tn.setViewBox({ctx:en,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:nn.viewPort.width,desiredWidth:un,height:nn.viewPort.height,desiredHeight:dn,minX:vn,minY:yn,refX:pn.getValue(),refY:hn.getValue(),clip:mn,clipX:_n,clipY:wn}),An&&(nn.viewPort.removeCurrent(),nn.viewPort.setCurrent(un,dn))}},{key:"clearContext",value:function clearContext(en){wk(jC(SVGElement.prototype),"clearContext",this).call(this,en),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function resize(en){var tn,nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en,rn=arguments.length>2&&void 0!==arguments[2]&&arguments[2],an=this.getAttribute("width",!0),sn=this.getAttribute("height",!0),cn=this.getAttribute("viewBox"),un=this.getAttribute("style"),dn=an.getNumber(0),pn=sn.getNumber(0);if(rn)if("string"==typeof rn)this.getAttribute("preserveAspectRatio",!0).setValue(rn);else{var hn=this.getAttribute("preserveAspectRatio");hn.hasValue()&&hn.setValue(hn.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}(an.setValue(en),sn.setValue(nn),cn.hasValue())||cn.setValue(FS(tn="0 0 ".concat(dn||en," ")).call(tn,pn||nn));if(un.hasValue()){var gn=this.getStyle("width"),An=this.getStyle("height");gn.hasValue()&&gn.setValue("".concat(en,"px")),An.hasValue()&&An.setValue("".concat(nn,"px"))}}}]),SVGElement}(tE);function _createSuper$b(en){var tn=function _isNativeReflectConstruct$b(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var lE=function(en){IC(RectElement,en);var tn=_createSuper$b(RectElement);function RectElement(){var en;return TS(this,RectElement),(en=tn.apply(this,arguments)).type="rect",en}return NS(RectElement,[{key:"path",value:function path(en){var tn=this.getAttribute("x").getPixels("x"),nn=this.getAttribute("y").getPixels("y"),rn=this.getStyle("width",!1,!0).getPixels("x"),an=this.getStyle("height",!1,!0).getPixels("y"),sn=this.getAttribute("rx"),cn=this.getAttribute("ry"),un=sn.getPixels("x"),dn=cn.getPixels("y");if(sn.hasValue()&&!cn.hasValue()&&(dn=un),cn.hasValue()&&!sn.hasValue()&&(un=dn),un=Math.min(un,rn/2),dn=Math.min(dn,an/2),en){var pn=(Math.sqrt(2)-1)/3*4;en.beginPath(),an>0&&rn>0&&(en.moveTo(tn+un,nn),en.lineTo(tn+rn-un,nn),en.bezierCurveTo(tn+rn-un+pn*un,nn,tn+rn,nn+dn-pn*dn,tn+rn,nn+dn),en.lineTo(tn+rn,nn+an-dn),en.bezierCurveTo(tn+rn,nn+an-dn+pn*dn,tn+rn-un+pn*un,nn+an,tn+rn-un,nn+an),en.lineTo(tn+un,nn+an),en.bezierCurveTo(tn+un-pn*un,nn+an,tn,nn+an-dn+pn*dn,tn,nn+an-dn),en.lineTo(tn,nn+dn),en.bezierCurveTo(tn,nn+dn-pn*dn,tn+un-pn*un,nn,tn+un,nn),en.closePath())}return new eE(tn,nn,tn+rn,nn+an)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}(aE);function _createSuper$c(en){var tn=function _isNativeReflectConstruct$c(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var cE=function(en){IC(CircleElement,en);var tn=_createSuper$c(CircleElement);function CircleElement(){var en;return TS(this,CircleElement),(en=tn.apply(this,arguments)).type="circle",en}return NS(CircleElement,[{key:"path",value:function path(en){var tn=this.getAttribute("cx").getPixels("x"),nn=this.getAttribute("cy").getPixels("y"),rn=this.getAttribute("r").getPixels();return en&&rn>0&&(en.beginPath(),en.arc(tn,nn,rn,0,2*Math.PI,!1),en.closePath()),new eE(tn-rn,nn-rn,tn+rn,nn+rn)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}(aE);function _createSuper$d(en){var tn=function _isNativeReflectConstruct$d(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var uE=function(en){IC(EllipseElement,en);var tn=_createSuper$d(EllipseElement);function EllipseElement(){var en;return TS(this,EllipseElement),(en=tn.apply(this,arguments)).type="ellipse",en}return NS(EllipseElement,[{key:"path",value:function path(en){var tn=(Math.sqrt(2)-1)/3*4,nn=this.getAttribute("rx").getPixels("x"),rn=this.getAttribute("ry").getPixels("y"),an=this.getAttribute("cx").getPixels("x"),sn=this.getAttribute("cy").getPixels("y");return en&&nn>0&&rn>0&&(en.beginPath(),en.moveTo(an+nn,sn),en.bezierCurveTo(an+nn,sn+tn*rn,an+tn*nn,sn+rn,an,sn+rn),en.bezierCurveTo(an-tn*nn,sn+rn,an-nn,sn+tn*rn,an-nn,sn),en.bezierCurveTo(an-nn,sn-tn*rn,an-tn*nn,sn-rn,an,sn-rn),en.bezierCurveTo(an+tn*nn,sn-rn,an+nn,sn-tn*rn,an+nn,sn),en.closePath()),new eE(an-nn,sn-rn,an+nn,sn+rn)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}(aE);function _createSuper$e(en){var tn=function _isNativeReflectConstruct$e(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var dE=function(en){IC(LineElement,en);var tn=_createSuper$e(LineElement);function LineElement(){var en;return TS(this,LineElement),(en=tn.apply(this,arguments)).type="line",en}return NS(LineElement,[{key:"getPoints",value:function getPoints(){return[new FB(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new FB(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(en){var tn=this.getPoints(),nn=bw(tn,2),rn=nn[0],an=rn.x,sn=rn.y,cn=nn[1],un=cn.x,dn=cn.y;return en&&(en.beginPath(),en.moveTo(an,sn),en.lineTo(un,dn)),new eE(an,sn,un,dn)}},{key:"getMarkers",value:function getMarkers(){var en=this.getPoints(),tn=bw(en,2),nn=tn[0],rn=tn[1],an=nn.angleTo(rn);return[[nn,an],[rn,an]]}}]),LineElement}(aE);function _createSuper$f(en){var tn=function _isNativeReflectConstruct$f(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var pE=function(en){IC(PolylineElement,en);var tn=_createSuper$f(PolylineElement);function PolylineElement(en,nn,rn){var an;return TS(this,PolylineElement),(an=tn.call(this,en,nn,rn)).type="polyline",an.points=[],an.points=FB.parsePath(an.getAttribute("points").getString()),an}return NS(PolylineElement,[{key:"path",value:function path(en){var tn=this.points,nn=bw(tn,1)[0],rn=nn.x,an=nn.y,sn=new eE(rn,an);return en&&(en.beginPath(),en.moveTo(rn,an)),Fw(tn).call(tn,(function(tn){var nn=tn.x,rn=tn.y;sn.addPoint(nn,rn),en&&en.lineTo(nn,rn)})),sn}},{key:"getMarkers",value:function getMarkers(){var en=this.points,tn=en.length-1,nn=[];return Fw(en).call(en,(function(rn,an){an!==tn&&nn.push([rn,rn.angleTo(en[an+1])])})),nn.length>0&&nn.push([en[en.length-1],nn[nn.length-1][1]]),nn}}]),PolylineElement}(aE);function _createSuper$g(en){var tn=function _isNativeReflectConstruct$g(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var hE=function(en){IC(PolygonElement,en);var tn=_createSuper$g(PolygonElement);function PolygonElement(){var en;return TS(this,PolygonElement),(en=tn.apply(this,arguments)).type="polygon",en}return NS(PolygonElement,[{key:"path",value:function path(en){var tn=wk(jC(PolygonElement.prototype),"path",this).call(this,en),nn=bw(this.points,1)[0],rn=nn.x,an=nn.y;return en&&(en.lineTo(rn,an),en.closePath()),tn}}]),PolygonElement}(pE);function _createSuper$h(en){var tn=function _isNativeReflectConstruct$h(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var gE=function(en){IC(PatternElement,en);var tn=_createSuper$h(PatternElement);function PatternElement(){var en;return TS(this,PatternElement),(en=tn.apply(this,arguments)).type="pattern",en}return NS(PatternElement,[{key:"createPattern",value:function createPattern(en,tn,nn){var rn=this.getStyle("width").getPixels("x",!0),an=this.getStyle("height").getPixels("y",!0),sn=new sE(this.document,null);sn.attributes.viewBox=new IB(this.document,"viewBox",this.getAttribute("viewBox").getValue()),sn.attributes.width=new IB(this.document,"width","".concat(rn,"px")),sn.attributes.height=new IB(this.document,"height","".concat(an,"px")),sn.attributes.transform=new IB(this.document,"transform",this.getAttribute("patternTransform").getValue()),sn.children=this.children;var cn=this.document.createCanvas(rn,an),un=cn.getContext("2d"),dn=this.getAttribute("x"),pn=this.getAttribute("y");dn.hasValue()&&pn.hasValue()&&un.translate(dn.getPixels("x",!0),pn.getPixels("y",!0)),nn.hasValue()?this.styles["fill-opacity"]=nn:Rk(this.styles,"fill-opacity");for(var hn=-1;hn<=1;hn++)for(var gn=-1;gn<=1;gn++)un.save(),sn.attributes.x=new IB(this.document,"x",hn*cn.width),sn.attributes.y=new IB(this.document,"y",gn*cn.height),sn.render(un),un.restore();return en.createPattern(cn,"repeat")}}]),PatternElement}(YB);function _createSuper$i(en){var tn=function _isNativeReflectConstruct$i(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var fE=function(en){IC(MarkerElement,en);var tn=_createSuper$i(MarkerElement);function MarkerElement(){var en;return TS(this,MarkerElement),(en=tn.apply(this,arguments)).type="marker",en}return NS(MarkerElement,[{key:"render",value:function render(en,tn,nn){if(tn){var rn=tn.x,an=tn.y,sn=this.getAttribute("orient").getValue("auto"),cn=this.getAttribute("markerUnits").getValue("strokeWidth");en.translate(rn,an),"auto"===sn&&en.rotate(nn),"strokeWidth"===cn&&en.scale(en.lineWidth,en.lineWidth),en.save();var un=new sE(this.document,null);un.type=this.type,un.attributes.viewBox=new IB(this.document,"viewBox",this.getAttribute("viewBox").getValue()),un.attributes.refX=new IB(this.document,"refX",this.getAttribute("refX").getValue()),un.attributes.refY=new IB(this.document,"refY",this.getAttribute("refY").getValue()),un.attributes.width=new IB(this.document,"width",this.getAttribute("markerWidth").getValue()),un.attributes.height=new IB(this.document,"height",this.getAttribute("markerHeight").getValue()),un.attributes.overflow=new IB(this.document,"overflow",this.getAttribute("overflow").getValue()),un.attributes.fill=new IB(this.document,"fill",this.getAttribute("fill").getColor("black")),un.attributes.stroke=new IB(this.document,"stroke",this.getAttribute("stroke").getValue("none")),un.children=this.children,un.render(en),en.restore(),"strokeWidth"===cn&&en.scale(1/en.lineWidth,1/en.lineWidth),"auto"===sn&&en.rotate(-nn),en.translate(-rn,-an)}}}]),MarkerElement}(YB);function _createSuper$j(en){var tn=function _isNativeReflectConstruct$j(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var AE=function(en){IC(DefsElement,en);var tn=_createSuper$j(DefsElement);function DefsElement(){var en;return TS(this,DefsElement),(en=tn.apply(this,arguments)).type="defs",en}return NS(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}(YB);function _createSuper$k(en){var tn=function _isNativeReflectConstruct$k(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var mE=function(en){IC(GElement,en);var tn=_createSuper$k(GElement);function GElement(){var en;return TS(this,GElement),(en=tn.apply(this,arguments)).type="g",en}return NS(GElement,[{key:"getBoundingBox",value:function getBoundingBox(en){var tn,nn=new eE;return Fw(tn=this.children).call(tn,(function(tn){nn.addBoundingBox(tn.getBoundingBox(en))})),nn}}]),GElement}(tE);function _createSuper$l(en){var tn=function _isNativeReflectConstruct$l(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var vE=function(en){IC(GradientElement,en);var tn=_createSuper$l(GradientElement);function GradientElement(en,nn,rn){var an;TS(this,GradientElement),(an=tn.call(this,en,nn,rn)).attributesToInherit=["gradientUnits"],an.stops=[];var sn=UC(an),cn=sn.stops,un=sn.children;return Fw(un).call(un,(function(en){"stop"===en.type&&cn.push(en)})),an}return NS(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(en,tn,nn){var rn=this,an=this;this.getHrefAttribute().hasValue()&&(an=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(an));var sn=an.stops,cn=this.getGradient(en,tn);if(!cn)return this.addParentOpacity(nn,sn[sn.length-1].color);if(Fw(sn).call(sn,(function(en){cn.addColorStop(en.offset,rn.addParentOpacity(nn,en.color))})),this.getAttribute("gradientTransform").hasValue()){var un=this.document,dn=un.screen,pn=dn.MAX_VIRTUAL_PIXELS,hn=dn.viewPort,gn=bw(hn.viewPorts,1)[0],An=new lE(un,null);An.attributes.x=new IB(un,"x",-pn/3),An.attributes.y=new IB(un,"y",-pn/3),An.attributes.width=new IB(un,"width",pn),An.attributes.height=new IB(un,"height",pn);var mn=new mE(un,null);mn.attributes.transform=new IB(un,"transform",this.getAttribute("gradientTransform").getValue()),mn.children=[An];var vn=new sE(un,null);vn.attributes.x=new IB(un,"x",0),vn.attributes.y=new IB(un,"y",0),vn.attributes.width=new IB(un,"width",gn.width),vn.attributes.height=new IB(un,"height",gn.height),vn.children=[mn];var yn=un.createCanvas(gn.width,gn.height),_n=yn.getContext("2d");return _n.fillStyle=cn,vn.render(_n),_n.createPattern(yn,"no-repeat")}return cn}},{key:"inheritStopContainer",value:function inheritStopContainer(en){var tn,nn=this;Fw(tn=this.attributesToInherit).call(tn,(function(tn){!nn.getAttribute(tn).hasValue()&&en.getAttribute(tn).hasValue()&&nn.getAttribute(tn,!0).setValue(en.getAttribute(tn).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(en,tn){return en.hasValue()?new IB(this.document,"color",tn).addOpacity(en).getColor():tn}}]),GradientElement}(YB);function _createSuper$m(en){var tn=function _isNativeReflectConstruct$m(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var yE=function(en){IC(LinearGradientElement,en);var tn=_createSuper$m(LinearGradientElement);function LinearGradientElement(en,nn,rn){var an;return TS(this,LinearGradientElement),(an=tn.call(this,en,nn,rn)).type="linearGradient",an.attributesToInherit.push("x1","y1","x2","y2"),an}return NS(LinearGradientElement,[{key:"getGradient",value:function getGradient(en,tn){var nn="objectBoundingBox"===this.getGradientUnits(),rn=nn?tn.getBoundingBox(en):null;if(nn&&!rn)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var an=nn?rn.x+rn.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),sn=nn?rn.y+rn.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),cn=nn?rn.x+rn.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),un=nn?rn.y+rn.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return an===cn&&sn===un?null:en.createLinearGradient(an,sn,cn,un)}}]),LinearGradientElement}(vE);function _createSuper$n(en){var tn=function _isNativeReflectConstruct$n(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var _E=function(en){IC(RadialGradientElement,en);var tn=_createSuper$n(RadialGradientElement);function RadialGradientElement(en,nn,rn){var an;return TS(this,RadialGradientElement),(an=tn.call(this,en,nn,rn)).type="radialGradient",an.attributesToInherit.push("cx","cy","r","fx","fy","fr"),an}return NS(RadialGradientElement,[{key:"getGradient",value:function getGradient(en,tn){var nn="objectBoundingBox"===this.getGradientUnits(),rn=tn.getBoundingBox(en);if(nn&&!rn)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var an=nn?rn.x+rn.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),sn=nn?rn.y+rn.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),cn=an,un=sn;this.getAttribute("fx").hasValue()&&(cn=nn?rn.x+rn.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(un=nn?rn.y+rn.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var dn=nn?(rn.width+rn.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),pn=this.getAttribute("fr").getPixels();return en.createRadialGradient(cn,un,pn,an,sn,dn)}}]),RadialGradientElement}(vE);function _createSuper$o(en){var tn=function _isNativeReflectConstruct$o(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var bE=function(en){IC(StopElement,en);var tn=_createSuper$o(StopElement);function StopElement(en,nn,rn){var an;TS(this,StopElement),(an=tn.call(this,en,nn,rn)).type="stop";var sn=Math.max(0,Math.min(1,an.getAttribute("offset").getNumber())),cn=an.getStyle("stop-opacity"),un=an.getStyle("stop-color",!0);return""===un.getString()&&un.setValue("#000"),cn.hasValue()&&(un=un.addOpacity(cn)),an.offset=sn,an.color=un.getColor(),an}return StopElement}(YB);function _createSuper$p(en){var tn=function _isNativeReflectConstruct$p(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var wE=function(en){IC(AnimateElement,en);var tn=_createSuper$p(AnimateElement);function AnimateElement(en,nn,rn){var an;return TS(this,AnimateElement),(an=tn.call(this,en,nn,rn)).type="animate",an.duration=0,an.initialValue=null,an.initialUnits="",an.removed=!1,an.frozen=!1,en.screen.animations.push(UC(an)),an.begin=an.getAttribute("begin").getMilliseconds(),an.maxDuration=an.begin+an.getAttribute("dur").getMilliseconds(),an.from=an.getAttribute("from"),an.to=an.getAttribute("to"),an.values=an.getAttribute("values"),Hk(an).hasValue()&&Hk(an).setValue(Hk(an).getString().split(";")),an}return NS(AnimateElement,[{key:"getProperty",value:function getProperty(){var en=this.getAttribute("attributeType").getString(),tn=this.getAttribute("attributeName").getString();return"CSS"===en?this.parent.getStyle(tn,!0):this.parent.getAttribute(tn,!0)}},{key:"calcValue",value:function calcValue(){var en,tn=this.initialUnits,nn=this.getProgress(),rn=nn.progress,an=nn.from,sn=nn.to,cn=an.getNumber()+(sn.getNumber()-an.getNumber())*rn;return"%"===tn&&(cn*=100),FS(en="".concat(cn)).call(en,tn)}},{key:"update",value:function update(en){var tn=this.parent,nn=this.getProperty();if(this.initialValue||(this.initialValue=nn.getString(),this.initialUnits=nn.getUnits()),this.duration>this.maxDuration){var rn=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==rn||this.frozen){if("remove"===rn&&!this.removed)return this.removed=!0,nn.setValue(tn.animationFrozen?tn.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,tn.animationFrozen=!0,tn.animationFrozenValue=nn.getString();return!1}this.duration+=en;var an=!1;if(this.begin<this.duration){var sn=this.calcValue(),cn=this.getAttribute("type");if(cn.hasValue()){var un,dn=cn.getString();sn=FS(un="".concat(dn,"(")).call(un,sn,")")}nn.setValue(sn),an=!0}return an}},{key:"getProgress",value:function getProgress(){var en=this.document,tn=Hk(this),nn={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(tn.hasValue()){var rn=nn.progress*(tn.getValue().length-1),an=Math.floor(rn),sn=Math.ceil(rn);nn.from=new IB(en,"from",Dv(tn.getValue()[an])),nn.to=new IB(en,"to",Dv(tn.getValue()[sn])),nn.progress=(rn-an)/(sn-an)}else nn.from=this.from,nn.to=this.to;return nn}}]),AnimateElement}(YB);function _createSuper$q(en){var tn=function _isNativeReflectConstruct$q(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var xE=function(en){IC(AnimateColorElement,en);var tn=_createSuper$q(AnimateColorElement);function AnimateColorElement(){var en;return TS(this,AnimateColorElement),(en=tn.apply(this,arguments)).type="animateColor",en}return NS(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var en=this.getProgress(),tn=en.progress,nn=en.from,rn=en.to,an=new xC(nn.getColor()),sn=new xC(rn.getColor());if(an.ok&&sn.ok){var cn,un,dn=an.r+(sn.r-an.r)*tn,pn=an.g+(sn.g-an.g)*tn,hn=an.b+(sn.b-an.b)*tn;return FS(cn=FS(un="rgb(".concat(qk(dn,10),", ")).call(un,qk(pn,10),", ")).call(cn,qk(hn,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}(wE);function _createSuper$r(en){var tn=function _isNativeReflectConstruct$r(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var SE=function(en){IC(AnimateTransformElement,en);var tn=_createSuper$r(AnimateTransformElement);function AnimateTransformElement(){var en;return TS(this,AnimateTransformElement),(en=tn.apply(this,arguments)).type="animateTransform",en}return NS(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var en=this.getProgress(),tn=en.progress,nn=en.from,rn=en.to,an=toNumbers(nn.getString()),sn=toNumbers(rn.getString());return py(an).call(an,(function(en,nn){return en+(sn[nn]-en)*tn})).join(" ")}}]),AnimateTransformElement}(wE);function _createForOfIteratorHelper$1(en,tn){var nn;if(void 0===Xk||null==Wk(en)){if($k(en)||(nn=function _unsupportedIterableToArray$2(en,tn){var nn;if(!en)return;if("string"==typeof en)return _arrayLikeToArray$2(en,tn);var rn=Yk(nn=Object.prototype.toString.call(en)).call(nn,8,-1);"Object"===rn&&en.constructor&&(rn=en.constructor.name);if("Map"===rn||"Set"===rn)return ik(en);if("Arguments"===rn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rn))return _arrayLikeToArray$2(en,tn)}(en))||tn&&en&&"number"==typeof en.length){nn&&(en=nn);var rn=0,an=function F(){};return{s:an,n:function n(){return rn>=en.length?{done:!0}:{done:!1,value:en[rn++]}},e:function e(en){throw en},f:an}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var sn,cn=!0,un=!1;return{s:function s(){nn=X_(en)},n:function n(){var en=nn.next();return cn=en.done,en},e:function e(en){un=!0,sn=en},f:function f(){try{cn||null==nn.return||nn.return()}finally{if(un)throw sn}}}}function _arrayLikeToArray$2(en,tn){(null==tn||tn>en.length)&&(tn=en.length);for(var nn=0,rn=new Array(tn);nn<tn;nn++)rn[nn]=en[nn];return rn}function _createSuper$s(en){var tn=function _isNativeReflectConstruct$s(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var CE=function(en){IC(FontElement,en);var tn=_createSuper$s(FontElement);function FontElement(en,nn,rn){var an;TS(this,FontElement),(an=tn.call(this,en,nn,rn)).type="font",an.glyphs={},an.horizAdvX=an.getAttribute("horiz-adv-x").getNumber();var sn,cn=en.definitions,un=_createForOfIteratorHelper$1(UC(an).children);try{for(un.s();!(sn=un.n()).done;){var dn=sn.value;switch(dn.type){case"font-face":an.fontFace=dn;var pn=dn.getStyle("font-family");pn.hasValue()&&(cn[pn.getString()]=UC(an));break;case"missing-glyph":an.missingGlyph=dn;break;case"glyph":var hn=dn;hn.arabicForm?(an.isRTL=!0,an.isArabic=!0,void 0===an.glyphs[hn.unicode]&&(an.glyphs[hn.unicode]={}),an.glyphs[hn.unicode][hn.arabicForm]=hn):an.glyphs[hn.unicode]=hn}}}catch(en){un.e(en)}finally{un.f()}return an}return NS(FontElement,[{key:"render",value:function render(){}}]),FontElement}(YB);function _createSuper$t(en){var tn=function _isNativeReflectConstruct$t(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var kE=function(en){IC(FontFaceElement,en);var tn=_createSuper$t(FontFaceElement);function FontFaceElement(en,nn,rn){var an;return TS(this,FontFaceElement),(an=tn.call(this,en,nn,rn)).type="font-face",an.ascent=an.getAttribute("ascent").getNumber(),an.descent=an.getAttribute("descent").getNumber(),an.unitsPerEm=an.getAttribute("units-per-em").getNumber(),an}return FontFaceElement}(YB);function _createSuper$u(en){var tn=function _isNativeReflectConstruct$u(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var BE=function(en){IC(MissingGlyphElement,en);var tn=_createSuper$u(MissingGlyphElement);function MissingGlyphElement(){var en;return TS(this,MissingGlyphElement),(en=tn.apply(this,arguments)).type="missing-glyph",en.horizAdvX=0,en}return MissingGlyphElement}(aE);function _createSuper$v(en){var tn=function _isNativeReflectConstruct$v(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var EE=function(en){IC(GlyphElement,en);var tn=_createSuper$v(GlyphElement);function GlyphElement(en,nn,rn){var an;return TS(this,GlyphElement),(an=tn.call(this,en,nn,rn)).type="glyph",an.horizAdvX=an.getAttribute("horiz-adv-x").getNumber(),an.unicode=an.getAttribute("unicode").getString(),an.arabicForm=an.getAttribute("arabic-form").getString(),an}return GlyphElement}(aE);function _createSuper$w(en){var tn=function _isNativeReflectConstruct$w(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var PE=function(en){IC(TRefElement,en);var tn=_createSuper$w(TRefElement);function TRefElement(){var en;return TS(this,TRefElement),(en=tn.apply(this,arguments)).type="tref",en}return NS(TRefElement,[{key:"getText",value:function getText(){var en=this.getHrefAttribute().getDefinition();if(en){var tn=en.children[0];if(tn)return tn.getText()}return""}}]),TRefElement}(nE);function _createSuper$x(en){var tn=function _isNativeReflectConstruct$x(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var LE=function(en){IC(AElement,en);var tn=_createSuper$x(AElement);function AElement(en,nn,rn){var an,sn;TS(this,AElement),(sn=tn.call(this,en,nn,rn)).type="a";var cn=nn.childNodes,un=cn[0],dn=cn.length>0&&JS(an=ik(cn)).call(an,(function(en){return 3===en.nodeType}));return sn.hasText=dn,sn.text=dn?sn.getTextFromNode(un):"",sn}return NS(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(en){if(this.hasText){wk(jC(AElement.prototype),"renderChildren",this).call(this,en);var tn=this.document,nn=this.x,rn=this.y,an=tn.screen.mouse,sn=new IB(tn,"fontSize",ZB.parse(tn.ctx.font).fontSize);an.isWorking()&&an.checkBoundingBox(this,new eE(nn,rn-sn.getPixels("y"),nn+this.measureText(en),rn))}else if(this.children.length>0){var cn=new mE(this.document,null);cn.children=this.children,cn.parent=this,cn.render(en)}}},{key:"onClick",value:function onClick(){var en=this.document.window;en&&en.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}]),AElement}(nE);function _createForOfIteratorHelper$1$1(en,tn){var nn;if(void 0===Xk||null==Wk(en)){if($k(en)||(nn=function _unsupportedIterableToArray$1$1(en,tn){var nn;if(!en)return;if("string"==typeof en)return _arrayLikeToArray$1$1(en,tn);var rn=Yk(nn=Object.prototype.toString.call(en)).call(nn,8,-1);"Object"===rn&&en.constructor&&(rn=en.constructor.name);if("Map"===rn||"Set"===rn)return ik(en);if("Arguments"===rn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rn))return _arrayLikeToArray$1$1(en,tn)}(en))||tn&&en&&"number"==typeof en.length){nn&&(en=nn);var rn=0,an=function F(){};return{s:an,n:function n(){return rn>=en.length?{done:!0}:{done:!1,value:en[rn++]}},e:function e(en){throw en},f:an}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var sn,cn=!0,un=!1;return{s:function s(){nn=X_(en)},n:function n(){var en=nn.next();return cn=en.done,en},e:function e(en){un=!0,sn=en},f:function f(){try{cn||null==nn.return||nn.return()}finally{if(un)throw sn}}}}function _arrayLikeToArray$1$1(en,tn){(null==tn||tn>en.length)&&(tn=en.length);for(var nn=0,rn=new Array(tn);nn<tn;nn++)rn[nn]=en[nn];return rn}function ownKeys$3(en,tn){var nn=$w(en);if(Kw){var rn=Kw(en);tn&&(rn=zw(rn).call(rn,(function(tn){return Dw(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread(en){for(var tn=1;tn<arguments.length;tn++){var nn,rn=null!=arguments[tn]?arguments[tn]:{};if(tn%2)Fw(nn=ownKeys$3(Object(rn),!0)).call(nn,(function(tn){LS(en,tn,rn[tn])}));else if(kw)Sw(en,kw(rn));else{var an;Fw(an=ownKeys$3(Object(rn))).call(an,(function(tn){xw(en,tn,Dw(rn,tn))}))}}return en}function _createSuper$y(en){var tn=function _isNativeReflectConstruct$y(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var TE=function(en){IC(TextPathElement,en);var tn=_createSuper$y(TextPathElement);function TextPathElement(en,nn,rn){var an;TS(this,TextPathElement),(an=tn.call(this,en,nn,rn)).type="textPath",an.textWidth=0,an.textHeight=0,an.pathLength=-1,an.glyphInfo=null,an.letterSpacingCache=[],an.measuresCache=new hB([["",0]]);var sn=an.getHrefAttribute().getDefinition();return an.text=an.getTextFromNode(),an.dataArray=an.parsePathData(sn),an}return NS(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(en){var tn=this.dataArray;en&&en.beginPath(),Fw(tn).call(tn,(function(tn){var nn=tn.type,rn=tn.points;switch(nn){case oE.LINE_TO:en&&en.lineTo(rn[0],rn[1]);break;case oE.MOVE_TO:en&&en.moveTo(rn[0],rn[1]);break;case oE.CURVE_TO:en&&en.bezierCurveTo(rn[0],rn[1],rn[2],rn[3],rn[4],rn[5]);break;case oE.QUAD_TO:en&&en.quadraticCurveTo(rn[0],rn[1],rn[2],rn[3]);break;case oE.ARC:var an=bw(rn,8),sn=an[0],cn=an[1],un=an[2],dn=an[3],pn=an[4],hn=an[5],gn=an[6],An=an[7],mn=un>dn?un:dn,vn=un>dn?1:un/dn,yn=un>dn?dn/un:1;en&&(en.translate(sn,cn),en.rotate(gn),en.scale(vn,yn),en.arc(0,0,mn,pn,pn+hn,Boolean(1-An)),en.scale(1/vn,1/yn),en.rotate(-gn),en.translate(-sn,-cn));break;case oE.CLOSE_PATH:en&&en.closePath()}}))}},{key:"renderChildren",value:function renderChildren(en){this.setTextData(en),en.save();var tn=this.parent.getStyle("text-decoration").getString(),nn=this.getFontSize(),rn=this.glyphInfo,an=en.fillStyle;"underline"===tn&&en.beginPath(),Fw(rn).call(rn,(function(rn,an){var sn=rn.p0,cn=rn.p1,un=rn.rotation,dn=rn.text;en.save(),en.translate(sn.x,sn.y),en.rotate(un),en.fillStyle&&en.fillText(dn,0,0),en.strokeStyle&&en.strokeText(dn,0,0),en.restore(),"underline"===tn&&(0===an&&en.moveTo(sn.x,sn.y+nn/8),en.lineTo(cn.x,cn.y+nn/5))})),"underline"===tn&&(en.lineWidth=nn/20,en.strokeStyle=an,en.stroke(),en.closePath()),en.restore()}},{key:"getLetterSpacingAt",value:function getLetterSpacingAt(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[en]||0}},{key:"findSegmentToFitChar",value:function findSegmentToFitChar(en,tn,nn,rn,an,sn,cn,un,dn){var pn=sn,hn=this.measureText(en,un);" "===un&&"justify"===tn&&nn<rn&&(hn+=(rn-nn)/an),dn>-1&&(pn+=this.getLetterSpacingAt(dn));var gn=this.textHeight/20,An=this.getEquidistantPointOnPath(pn,gn,0),mn=this.getEquidistantPointOnPath(pn+hn,gn,0),vn={p0:An,p1:mn},yn=An&&mn?Math.atan2(mn.y-An.y,mn.x-An.x):0;if(cn){var _n=Math.cos(Math.PI/2+yn)*cn,wn=Math.cos(-yn)*cn;vn.p0=_objectSpread(_objectSpread({},An),{},{x:An.x+_n,y:An.y+wn}),vn.p1=_objectSpread(_objectSpread({},mn),{},{x:mn.x+_n,y:mn.y+wn})}return{offset:pn+=hn,segment:vn,rotation:yn}}},{key:"measureText",value:function measureText(en,tn){var nn=this.measuresCache,rn=tn||this.getText();if(nn.has(rn))return nn.get(rn);var an=this.measureTargetText(en,rn);return nn.set(rn,an),an}},{key:"setTextData",value:function setTextData(en){var tn,nn=this;if(!this.glyphInfo){var rn=this.getText(),an=rn.split(""),sn=rn.split(" ").length-1,cn=py(tn=this.parent.getAttribute("dx").split()).call(tn,(function(en){return en.getPixels("x")})),un=this.parent.getAttribute("dy").getPixels("y"),dn=this.parent.getStyle("text-anchor").getString("start"),pn=this.getStyle("letter-spacing"),hn=this.parent.getStyle("letter-spacing"),gn=0;pn.hasValue()&&"inherit"!==pn.getValue()?pn.hasValue()&&"initial"!==pn.getValue()&&"unset"!==pn.getValue()&&(gn=pn.getPixels()):gn=hn.getPixels();var An=[],mn=rn.length;this.letterSpacingCache=An;for(var vn=0;vn<mn;vn++)An.push(void 0!==cn[vn]?cn[vn]:gn);var yn=HS(An).call(An,(function(en,tn,nn){return 0===nn?0:en+tn||0}),0),_n=this.measureText(en),wn=Math.max(_n+yn,0);this.textWidth=_n,this.textHeight=this.getFontSize(),this.glyphInfo=[];var xn=this.getPathLength(),Sn=this.getStyle("startOffset").getNumber(0)*xn,Cn=0;"middle"!==dn&&"center"!==dn||(Cn=-wn/2),"end"!==dn&&"right"!==dn||(Cn=-wn),Cn+=Sn,Fw(an).call(an,(function(tn,rn){var cn=nn.findSegmentToFitChar(en,dn,wn,xn,sn,Cn,un,tn,rn),pn=cn.offset,hn=cn.segment,gn=cn.rotation;Cn=pn,hn.p0&&hn.p1&&nn.glyphInfo.push({text:an[rn],p0:hn.p0,p1:hn.p1,rotation:gn})}))}}},{key:"parsePathData",value:function parsePathData(en){if(this.pathLength=-1,!en)return[];var tn=[],nn=en.pathParser;for(nn.reset();!nn.isEnd();){var rn=nn.current,an=rn?rn.x:0,sn=rn?rn.y:0,cn=nn.next(),un=cn.type,dn=[];switch(cn.type){case oE.MOVE_TO:this.pathM(nn,dn);break;case oE.LINE_TO:un=this.pathL(nn,dn);break;case oE.HORIZ_LINE_TO:un=this.pathH(nn,dn);break;case oE.VERT_LINE_TO:un=this.pathV(nn,dn);break;case oE.CURVE_TO:this.pathC(nn,dn);break;case oE.SMOOTH_CURVE_TO:un=this.pathS(nn,dn);break;case oE.QUAD_TO:this.pathQ(nn,dn);break;case oE.SMOOTH_QUAD_TO:un=this.pathT(nn,dn);break;case oE.ARC:dn=this.pathA(nn);break;case oE.CLOSE_PATH:aE.pathZ(nn)}cn.type!==oE.CLOSE_PATH?tn.push({type:un,points:dn,start:{x:an,y:sn},pathLength:this.calcLength(an,sn,un,dn)}):tn.push({type:oE.CLOSE_PATH,points:[],pathLength:0})}return tn}},{key:"pathM",value:function pathM(en,tn){var nn=aE.pathM(en).point,rn=nn.x,an=nn.y;tn.push(rn,an)}},{key:"pathL",value:function pathL(en,tn){var nn=aE.pathL(en).point,rn=nn.x,an=nn.y;return tn.push(rn,an),oE.LINE_TO}},{key:"pathH",value:function pathH(en,tn){var nn=aE.pathH(en).point,rn=nn.x,an=nn.y;return tn.push(rn,an),oE.LINE_TO}},{key:"pathV",value:function pathV(en,tn){var nn=aE.pathV(en).point,rn=nn.x,an=nn.y;return tn.push(rn,an),oE.LINE_TO}},{key:"pathC",value:function pathC(en,tn){var nn=aE.pathC(en),rn=nn.point,an=nn.controlPoint,sn=nn.currentPoint;tn.push(rn.x,rn.y,an.x,an.y,sn.x,sn.y)}},{key:"pathS",value:function pathS(en,tn){var nn=aE.pathS(en),rn=nn.point,an=nn.controlPoint,sn=nn.currentPoint;return tn.push(rn.x,rn.y,an.x,an.y,sn.x,sn.y),oE.CURVE_TO}},{key:"pathQ",value:function pathQ(en,tn){var nn=aE.pathQ(en),rn=nn.controlPoint,an=nn.currentPoint;tn.push(rn.x,rn.y,an.x,an.y)}},{key:"pathT",value:function pathT(en,tn){var nn=aE.pathT(en),rn=nn.controlPoint,an=nn.currentPoint;return tn.push(rn.x,rn.y,an.x,an.y),oE.QUAD_TO}},{key:"pathA",value:function pathA(en){var tn=aE.pathA(en),nn=tn.rX,rn=tn.rY,an=tn.sweepFlag,sn=tn.xAxisRotation,cn=tn.centp,un=tn.a1,dn=tn.ad;return 0===an&&dn>0&&(dn-=2*Math.PI),1===an&&dn<0&&(dn+=2*Math.PI),[cn.x,cn.y,nn,rn,un,dn,sn,an]}},{key:"calcLength",value:function calcLength(en,tn,nn,rn){var an=0,sn=null,cn=null,un=0;switch(nn){case oE.LINE_TO:return this.getLineLength(en,tn,rn[0],rn[1]);case oE.CURVE_TO:for(an=0,sn=this.getPointOnCubicBezier(0,en,tn,rn[0],rn[1],rn[2],rn[3],rn[4],rn[5]),un=.01;un<=1;un+=.01)cn=this.getPointOnCubicBezier(un,en,tn,rn[0],rn[1],rn[2],rn[3],rn[4],rn[5]),an+=this.getLineLength(sn.x,sn.y,cn.x,cn.y),sn=cn;return an;case oE.QUAD_TO:for(an=0,sn=this.getPointOnQuadraticBezier(0,en,tn,rn[0],rn[1],rn[2],rn[3]),un=.01;un<=1;un+=.01)cn=this.getPointOnQuadraticBezier(un,en,tn,rn[0],rn[1],rn[2],rn[3]),an+=this.getLineLength(sn.x,sn.y,cn.x,cn.y),sn=cn;return an;case oE.ARC:an=0;var dn=rn[4],pn=rn[5],hn=rn[4]+pn,gn=Math.PI/180;if(Math.abs(dn-hn)<gn&&(gn=Math.abs(dn-hn)),sn=this.getPointOnEllipticalArc(rn[0],rn[1],rn[2],rn[3],dn,0),pn<0)for(un=dn-gn;un>hn;un-=gn)cn=this.getPointOnEllipticalArc(rn[0],rn[1],rn[2],rn[3],un,0),an+=this.getLineLength(sn.x,sn.y,cn.x,cn.y),sn=cn;else for(un=dn+gn;un<hn;un+=gn)cn=this.getPointOnEllipticalArc(rn[0],rn[1],rn[2],rn[3],un,0),an+=this.getLineLength(sn.x,sn.y,cn.x,cn.y),sn=cn;return cn=this.getPointOnEllipticalArc(rn[0],rn[1],rn[2],rn[3],hn,0),an+=this.getLineLength(sn.x,sn.y,cn.x,cn.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(en,tn,nn,rn,an){var sn=arguments.length>5&&void 0!==arguments[5]?arguments[5]:tn,cn=arguments.length>6&&void 0!==arguments[6]?arguments[6]:nn,un=(an-nn)/(rn-tn+NB),dn=Math.sqrt(en*en/(1+un*un));rn<tn&&(dn*=-1);var pn=un*dn,hn=null;if(rn===tn)hn={x:sn,y:cn+pn};else if((cn-nn)/(sn-tn+NB)===un)hn={x:sn+dn,y:cn+pn};else{var gn=0,An=0,mn=this.getLineLength(tn,nn,rn,an);if(mn<NB)return null;var vn=(sn-tn)*(rn-tn)+(cn-nn)*(an-nn);gn=tn+(vn/=mn*mn)*(rn-tn),An=nn+vn*(an-nn);var yn=this.getLineLength(sn,cn,gn,An),_n=Math.sqrt(en*en-yn*yn);dn=Math.sqrt(_n*_n/(1+un*un)),rn<tn&&(dn*=-1),hn={x:gn+dn,y:An+(pn=un*dn)}}return hn}},{key:"getPointOnPath",value:function getPointOnPath(en){var tn=this.getPathLength(),nn=0,rn=null;if(en<-5e-5||en-5e-5>tn)return null;var an,sn=_createForOfIteratorHelper$1$1(this.dataArray);try{for(sn.s();!(an=sn.n()).done;){var cn=an.value;if(!cn||!(cn.pathLength<5e-5||nn+cn.pathLength+5e-5<en)){var un=en-nn,dn=0;switch(cn.type){case oE.LINE_TO:rn=this.getPointOnLine(un,cn.start.x,cn.start.y,cn.points[0],cn.points[1],cn.start.x,cn.start.y);break;case oE.ARC:var pn=cn.points[4],hn=cn.points[5],gn=cn.points[4]+hn;if(dn=pn+un/cn.pathLength*hn,hn<0&&dn<gn||hn>=0&&dn>gn)break;rn=this.getPointOnEllipticalArc(cn.points[0],cn.points[1],cn.points[2],cn.points[3],dn,cn.points[6]);break;case oE.CURVE_TO:(dn=un/cn.pathLength)>1&&(dn=1),rn=this.getPointOnCubicBezier(dn,cn.start.x,cn.start.y,cn.points[0],cn.points[1],cn.points[2],cn.points[3],cn.points[4],cn.points[5]);break;case oE.QUAD_TO:(dn=un/cn.pathLength)>1&&(dn=1),rn=this.getPointOnQuadraticBezier(dn,cn.start.x,cn.start.y,cn.points[0],cn.points[1],cn.points[2],cn.points[3])}if(rn)return rn;break}nn+=cn.pathLength}}catch(en){sn.e(en)}finally{sn.f()}return null}},{key:"getLineLength",value:function getLineLength(en,tn,nn,rn){return Math.sqrt((nn-en)*(nn-en)+(rn-tn)*(rn-tn))}},{key:"getPathLength",value:function getPathLength(){var en;-1===this.pathLength&&(this.pathLength=HS(en=this.dataArray).call(en,(function(en,tn){return tn.pathLength>0?en+tn.pathLength:en}),0));return this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(en,tn,nn,rn,an,sn,cn,un,dn){return{x:un*CB1(en)+sn*CB2(en)+rn*CB3(en)+tn*CB4(en),y:dn*CB1(en)+cn*CB2(en)+an*CB3(en)+nn*CB4(en)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(en,tn,nn,rn,an,sn,cn){return{x:sn*QB1(en)+rn*QB2(en)+tn*QB3(en),y:cn*QB1(en)+an*QB2(en)+nn*QB3(en)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(en,tn,nn,rn,an,sn){var cn=Math.cos(sn),un=Math.sin(sn),dn=nn*Math.cos(an),pn=rn*Math.sin(an);return{x:en+(dn*cn-pn*un),y:tn+(dn*un+pn*cn)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(en,tn){var nn=this.getPathLength(),rn=tn||.25,an=en||nn/100;if(!this.equidistantCache||this.equidistantCache.step!==an||this.equidistantCache.precision!==rn){this.equidistantCache={step:an,precision:rn,points:[]};for(var sn=0,cn=0;cn<=nn;cn+=rn){var un=this.getPointOnPath(cn),dn=this.getPointOnPath(cn+rn);un&&dn&&((sn+=this.getLineLength(un.x,un.y,dn.x,dn.y))>=an&&(this.equidistantCache.points.push({x:un.x,y:un.y,distance:cn}),sn-=an))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(en,tn,nn){if(this.buildEquidistantCache(tn,nn),en<0||en-this.getPathLength()>5e-5)return null;var rn=Math.round(en/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[rn]||null}}]),TextPathElement}(nE);function _createSuper$z(en){var tn=function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var NE=function(en){IC(ImageElement,en);var tn,nn,rn=_createSuper$z(ImageElement);function ImageElement(en,tn,nn){var an;TS(this,ImageElement),(an=rn.call(this,en,tn,nn)).type="image",an.loaded=!1;var sn=an.getHrefAttribute().getString();if(!sn)return MC(an);var cn=/\.svg$/.test(sn);return en.images.push(UC(an)),cn?an.loadSvg(sn):an.loadImage(sn),an.isSvg=cn,an}return NS(ImageElement,[{key:"loadImage",value:(nn=ES(Ww.mark((function _callee(en){var tn;return Ww.wrap((function _callee$(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.prev=0,nn.next=3,this.document.createImage(en);case 3:tn=nn.sent,this.image=tn,nn.next=10;break;case 7:nn.prev=7,nn.t0=nn.catch(0),console.error('Error while loading image "'.concat(en,'":'),nn.t0);case 10:this.loaded=!0;case 11:case"end":return nn.stop()}}),_callee,this,[[0,7]])}))),function loadImage(en){return nn.apply(this,arguments)})},{key:"loadSvg",value:(tn=ES(Ww.mark((function _callee2(en){var tn,nn;return Ww.wrap((function _callee2$(rn){for(;;)switch(rn.prev=rn.next){case 0:return rn.prev=0,rn.next=3,this.document.fetch(en);case 3:return tn=rn.sent,rn.next=6,tn.text();case 6:nn=rn.sent,this.image=nn,rn.next=13;break;case 10:rn.prev=10,rn.t0=rn.catch(0),console.error('Error while loading image "'.concat(en,'":'),rn.t0);case 13:this.loaded=!0;case 14:case"end":return rn.stop()}}),_callee2,this,[[0,10]])}))),function loadSvg(en){return tn.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(en){var tn=this.document,nn=this.image,rn=this.loaded,an=this.getAttribute("x").getPixels("x"),sn=this.getAttribute("y").getPixels("y"),cn=this.getStyle("width").getPixels("x"),un=this.getStyle("height").getPixels("y");if(rn&&nn&&cn&&un){if(en.save(),this.isSvg)tn.canvg.forkString(en,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:an,offsetY:sn,scaleWidth:cn,scaleHeight:un}).render();else{var dn=this.image;en.translate(an,sn),tn.setViewBox({ctx:en,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:cn,desiredWidth:dn.width,height:un,desiredHeight:dn.height}),this.loaded&&(void 0===dn.complete||dn.complete)&&en.drawImage(dn,0,0)}en.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var en=this.getAttribute("x").getPixels("x"),tn=this.getAttribute("y").getPixels("y"),nn=this.getStyle("width").getPixels("x"),rn=this.getStyle("height").getPixels("y");return new eE(en,tn,en+nn,tn+rn)}}]),ImageElement}(tE);function _createSuper$A(en){var tn=function _isNativeReflectConstruct$A(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var IE=function(en){IC(SymbolElement,en);var tn=_createSuper$A(SymbolElement);function SymbolElement(){var en;return TS(this,SymbolElement),(en=tn.apply(this,arguments)).type="symbol",en}return NS(SymbolElement,[{key:"render",value:function render(en){}}]),SymbolElement}(tE),OE=function(){function SVGFontLoader(en){TS(this,SVGFontLoader),this.document=en,this.loaded=!1,en.fonts.push(this)}var en;return NS(SVGFontLoader,[{key:"load",value:(en=ES(Ww.mark((function _callee(en,tn){var nn,rn,an,sn;return Ww.wrap((function _callee$(cn){for(;;)switch(cn.prev=cn.next){case 0:return cn.prev=0,rn=this.document,cn.next=4,rn.canvg.parser.load(tn);case 4:an=cn.sent,sn=an.getElementsByTagName("font"),Fw(nn=ik(sn)).call(nn,(function(tn){var nn=rn.createElement(tn);rn.definitions[en]=nn})),cn.next=12;break;case 9:cn.prev=9,cn.t0=cn.catch(0),console.error('Error while loading font "'.concat(tn,'":'),cn.t0);case 12:this.loaded=!0;case 13:case"end":return cn.stop()}}),_callee,this,[[0,9]])}))),function load(tn,nn){return en.apply(this,arguments)})}]),SVGFontLoader}();function _createSuper$B(en){var tn=function _isNativeReflectConstruct$B(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var FE=function(en){IC(StyleElement,en);var tn=_createSuper$B(StyleElement);function StyleElement(en,nn,rn){var an,sn;TS(this,StyleElement),(sn=tn.call(this,en,nn,rn)).type="style";var cn=compressSpaces(py(an=ik(nn.childNodes)).call(an,(function(en){return en.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return Fw(cn).call(cn,(function(tn){var nn=wC(tn).call(tn);if(nn){var rn=nn.split("{"),an=rn[0].split(","),sn=rn[1].split(";");Fw(an).call(an,(function(tn){var nn=wC(tn).call(tn);if(nn){var rn=en.styles[nn]||{};if(Fw(sn).call(sn,(function(tn){var nn,an,sn=mk(tn).call(tn,":"),cn=wC(nn=tn.substr(0,sn)).call(nn),un=wC(an=tn.substr(sn+1,tn.length-sn)).call(an);cn&&un&&(rn[cn]=new IB(en,cn,un))})),en.styles[nn]=rn,en.stylesSpecificity[nn]=getSelectorSpecificity(nn),"@font-face"===nn){var an=rn["font-family"].getString().replace(/"|'/g,""),cn=rn.src.getString().split(",");Fw(cn).call(cn,(function(tn){if(mk(tn).call(tn,'format("svg")')>0){var nn=parseExternalUrl(tn);nn&&new OE(en).load(an,nn)}}))}}}))}})),sn}return StyleElement}(YB);function _createSuper$C(en){var tn=function _isNativeReflectConstruct$C(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}FE.parseExternalUrl=parseExternalUrl;var UE=function(en){IC(UseElement,en);var tn=_createSuper$C(UseElement);function UseElement(){var en;return TS(this,UseElement),(en=tn.apply(this,arguments)).type="use",en}return NS(UseElement,[{key:"setContext",value:function setContext(en){wk(jC(UseElement.prototype),"setContext",this).call(this,en);var tn=this.getAttribute("x"),nn=this.getAttribute("y");tn.hasValue()&&en.translate(tn.getPixels("x"),0),nn.hasValue()&&en.translate(0,nn.getPixels("y"))}},{key:"path",value:function path(en){var tn=this.element;tn&&tn.path(en)}},{key:"renderChildren",value:function renderChildren(en){var tn=this.document,nn=this.element;if(nn){var rn=nn;if("symbol"===nn.type&&((rn=new sE(tn,null)).attributes.viewBox=new IB(tn,"viewBox",nn.getAttribute("viewBox").getString()),rn.attributes.preserveAspectRatio=new IB(tn,"preserveAspectRatio",nn.getAttribute("preserveAspectRatio").getString()),rn.attributes.overflow=new IB(tn,"overflow",nn.getAttribute("overflow").getString()),rn.children=nn.children,nn.styles.opacity=new IB(tn,"opacity",this.calculateOpacity())),"svg"===rn.type){var an=this.getStyle("width",!1,!0),sn=this.getStyle("height",!1,!0);an.hasValue()&&(rn.attributes.width=new IB(tn,"width",an.getString())),sn.hasValue()&&(rn.attributes.height=new IB(tn,"height",sn.getString()))}var cn=rn.parent;rn.parent=this,rn.render(en),rn.parent=cn}}},{key:"getBoundingBox",value:function getBoundingBox(en){var tn=this.element;return tn?tn.getBoundingBox(en):null}},{key:"elementTransform",value:function elementTransform(){var en=this.document,tn=this.element;return XB.fromElement(en,tn)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}(tE);function _createSuper$D(en){var tn=function _isNativeReflectConstruct$D(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}function imGet(en,tn,nn,rn,an,sn){return en[nn*rn*4+4*tn+sn]}function imSet(en,tn,nn,rn,an,sn,cn){en[nn*rn*4+4*tn+sn]=cn}function m$1(en,tn,nn){return en[tn]*nn}function c$1(en,tn,nn,rn){return tn+Math.cos(en)*nn+Math.sin(en)*rn}var ME=function(en){IC(FeColorMatrixElement,en);var tn=_createSuper$D(FeColorMatrixElement);function FeColorMatrixElement(en,nn,rn){var an;TS(this,FeColorMatrixElement),(an=tn.call(this,en,nn,rn)).type="feColorMatrix";var sn=toNumbers(an.getAttribute("values").getString());switch(an.getAttribute("type").getString("matrix")){case"saturate":var cn=sn[0];sn=[.213+.787*cn,.715-.715*cn,.072-.072*cn,0,0,.213-.213*cn,.715+.285*cn,.072-.072*cn,0,0,.213-.213*cn,.715-.715*cn,.072+.928*cn,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var un=sn[0]*Math.PI/180;sn=[c$1(un,.213,.787,-.213),c$1(un,.715,-.715,-.715),c$1(un,.072,-.072,.928),0,0,c$1(un,.213,-.213,.143),c$1(un,.715,.285,.14),c$1(un,.072,-.072,-.283),0,0,c$1(un,.213,-.213,-.787),c$1(un,.715,-.715,.715),c$1(un,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":sn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return an.matrix=sn,an.includeOpacity=an.getAttribute("includeOpacity").hasValue(),an}return NS(FeColorMatrixElement,[{key:"apply",value:function apply(en,tn,nn,rn,an){for(var sn=this.includeOpacity,cn=this.matrix,un=en.getImageData(0,0,rn,an),dn=0;dn<an;dn++)for(var pn=0;pn<rn;pn++){var hn=imGet(un.data,pn,dn,rn,0,0),gn=imGet(un.data,pn,dn,rn,0,1),An=imGet(un.data,pn,dn,rn,0,2),mn=imGet(un.data,pn,dn,rn,0,3),vn=m$1(cn,0,hn)+m$1(cn,1,gn)+m$1(cn,2,An)+m$1(cn,3,mn)+m$1(cn,4,1),yn=m$1(cn,5,hn)+m$1(cn,6,gn)+m$1(cn,7,An)+m$1(cn,8,mn)+m$1(cn,9,1),_n=m$1(cn,10,hn)+m$1(cn,11,gn)+m$1(cn,12,An)+m$1(cn,13,mn)+m$1(cn,14,1),wn=m$1(cn,15,hn)+m$1(cn,16,gn)+m$1(cn,17,An)+m$1(cn,18,mn)+m$1(cn,19,1);sn&&(vn=yn=_n=0,wn*=mn/255),imSet(un.data,pn,dn,rn,0,0,vn),imSet(un.data,pn,dn,rn,0,1,yn),imSet(un.data,pn,dn,rn,0,2,_n),imSet(un.data,pn,dn,rn,0,3,wn)}en.clearRect(0,0,rn,an),en.putImageData(un,0,0)}}]),FeColorMatrixElement}(YB);function _createSuper$E(en){var tn=function _isNativeReflectConstruct$E(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var DE=function(en){IC(MaskElement,en);var tn=_createSuper$E(MaskElement);function MaskElement(){var en;return TS(this,MaskElement),(en=tn.apply(this,arguments)).type="mask",en}return NS(MaskElement,[{key:"apply",value:function apply(en,tn){var nn=this.document,rn=this.getAttribute("x").getPixels("x"),an=this.getAttribute("y").getPixels("y"),sn=this.getStyle("width").getPixels("x"),cn=this.getStyle("height").getPixels("y");if(!sn&&!cn){var un,dn=new eE;Fw(un=this.children).call(un,(function(tn){dn.addBoundingBox(tn.getBoundingBox(en))})),rn=Math.floor(dn.x1),an=Math.floor(dn.y1),sn=Math.floor(dn.width),cn=Math.floor(dn.height)}var pn=this.removeStyles(tn,MaskElement.ignoreStyles),hn=nn.createCanvas(rn+sn,an+cn),gn=hn.getContext("2d");nn.screen.setDefaults(gn),this.renderChildren(gn),new ME(nn,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(gn,0,0,rn+sn,an+cn);var An=nn.createCanvas(rn+sn,an+cn),mn=An.getContext("2d");nn.screen.setDefaults(mn),tn.render(mn),mn.globalCompositeOperation="destination-in",mn.fillStyle=gn.createPattern(hn,"no-repeat"),mn.fillRect(0,0,rn+sn,an+cn),en.fillStyle=mn.createPattern(An,"no-repeat"),en.fillRect(0,0,rn+sn,an+cn),this.restoreStyles(tn,pn)}},{key:"render",value:function render(en){}}]),MaskElement}(YB);function _createSuper$F(en){var tn=function _isNativeReflectConstruct$F(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}DE.ignoreStyles=["mask","transform","clip-path"];var jE=function noop(){},QE=function(en){IC(ClipPathElement,en);var tn=_createSuper$F(ClipPathElement);function ClipPathElement(){var en;return TS(this,ClipPathElement),(en=tn.apply(this,arguments)).type="clipPath",en}return NS(ClipPathElement,[{key:"apply",value:function apply(en){var tn,nn=this.document,rn=vB(en),an=en.beginPath,sn=en.closePath;rn&&(rn.beginPath=jE,rn.closePath=jE),mB(an,en,[]),Fw(tn=this.children).call(tn,(function(tn){if(void 0!==tn.path){var an=void 0!==tn.elementTransform?tn.elementTransform():null;an||(an=XB.fromElement(nn,tn)),an&&an.apply(en),tn.path(en),rn&&(rn.closePath=sn),an&&an.unapply(en)}})),mB(sn,en,[]),en.clip(),rn&&(rn.beginPath=an,rn.closePath=sn)}},{key:"render",value:function render(en){}}]),ClipPathElement}(YB);function _createSuper$G(en){var tn=function _isNativeReflectConstruct$G(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var HE=function(en){IC(FilterElement,en);var tn=_createSuper$G(FilterElement);function FilterElement(){var en;return TS(this,FilterElement),(en=tn.apply(this,arguments)).type="filter",en}return NS(FilterElement,[{key:"apply",value:function apply(en,tn){var nn=this.document,rn=this.children,an=tn.getBoundingBox(en);if(an){var sn=0,cn=0;Fw(rn).call(rn,(function(en){var tn=en.extraFilterDistance||0;sn=Math.max(sn,tn),cn=Math.max(cn,tn)}));var un=Math.floor(an.width),dn=Math.floor(an.height),pn=un+2*sn,hn=dn+2*cn;if(!(pn<1||hn<1)){var gn=Math.floor(an.x),An=Math.floor(an.y),mn=this.removeStyles(tn,FilterElement.ignoreStyles),vn=nn.createCanvas(pn,hn),yn=vn.getContext("2d");nn.screen.setDefaults(yn),yn.translate(-gn+sn,-An+cn),tn.render(yn),Fw(rn).call(rn,(function(en){"function"==typeof en.apply&&en.apply(yn,0,0,pn,hn)})),en.drawImage(vn,0,0,pn,hn,gn-sn,An-cn,pn,hn),this.restoreStyles(tn,mn)}}}},{key:"render",value:function render(en){}}]),FilterElement}(YB);function _createSuper$H(en){var tn=function _isNativeReflectConstruct$H(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}HE.ignoreStyles=["filter","transform","clip-path"];var GE=function(en){IC(FeDropShadowElement,en);var tn=_createSuper$H(FeDropShadowElement);function FeDropShadowElement(en,nn,rn){var an;return TS(this,FeDropShadowElement),(an=tn.call(this,en,nn,rn)).type="feDropShadow",an.addStylesFromStyleDefinition(),an}return NS(FeDropShadowElement,[{key:"apply",value:function apply(en,tn,nn,rn,an){}}]),FeDropShadowElement}(YB);function _createSuper$I(en){var tn=function _isNativeReflectConstruct$I(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var VE=function(en){IC(FeMorphologyElement,en);var tn=_createSuper$I(FeMorphologyElement);function FeMorphologyElement(){var en;return TS(this,FeMorphologyElement),(en=tn.apply(this,arguments)).type="feMorphology",en}return NS(FeMorphologyElement,[{key:"apply",value:function apply(en,tn,nn,rn,an){}}]),FeMorphologyElement}(YB);function _createSuper$J(en){var tn=function _isNativeReflectConstruct$J(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var zE=function(en){IC(FeCompositeElement,en);var tn=_createSuper$J(FeCompositeElement);function FeCompositeElement(){var en;return TS(this,FeCompositeElement),(en=tn.apply(this,arguments)).type="feComposite",en}return NS(FeCompositeElement,[{key:"apply",value:function apply(en,tn,nn,rn,an){}}]),FeCompositeElement}(YB);function _createSuper$K(en){var tn=function _isNativeReflectConstruct$K(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var KE=function(en){IC(FeGaussianBlurElement,en);var tn=_createSuper$K(FeGaussianBlurElement);function FeGaussianBlurElement(en,nn,rn){var an;return TS(this,FeGaussianBlurElement),(an=tn.call(this,en,nn,rn)).type="feGaussianBlur",an.blurRadius=Math.floor(an.getAttribute("stdDeviation").getNumber()),an.extraFilterDistance=an.blurRadius,an}return NS(FeGaussianBlurElement,[{key:"apply",value:function apply(en,tn,nn,rn,an){var sn=this.document,cn=this.blurRadius,un=sn.window?sn.window.document.body:null,dn=en.canvas;dn.id=sn.getUniqueId(),un&&(dn.style.display="none",un.appendChild(dn)),processCanvasRGBA(dn,tn,nn,rn,an,cn),un&&un.removeChild(dn)}}]),FeGaussianBlurElement}(YB);function _createSuper$L(en){var tn=function _isNativeReflectConstruct$L(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var qE=function(en){IC(TitleElement,en);var tn=_createSuper$L(TitleElement);function TitleElement(){var en;return TS(this,TitleElement),(en=tn.apply(this,arguments)).type="title",en}return TitleElement}(YB);function _createSuper$M(en){var tn=function _isNativeReflectConstruct$M(){if("undefined"==typeof Reflect||!EC)return!1;if(EC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(EC(Date,[],(function(){}))),!0}catch(en){return!1}}();return function _createSuperInternal(){var nn,rn=jC(en);if(tn){var an=jC(this).constructor;nn=EC(rn,arguments,an)}else nn=rn.apply(this,arguments);return MC(this,nn)}}var $E=function(en){IC(DescElement,en);var tn=_createSuper$M(DescElement);function DescElement(){var en;return TS(this,DescElement),(en=tn.apply(this,arguments)).type="desc",en}return DescElement}(YB),WE={svg:sE,rect:lE,circle:cE,ellipse:uE,line:dE,polyline:pE,polygon:hE,path:aE,pattern:gE,marker:fE,defs:AE,linearGradient:yE,radialGradient:_E,stop:bE,animate:wE,animateColor:xE,animateTransform:SE,font:CE,"font-face":kE,"missing-glyph":BE,glyph:EE,text:nE,tspan:rE,tref:PE,a:LE,textPath:TE,image:NE,g:mE,symbol:IE,style:FE,use:UE,mask:DE,clipPath:QE,filter:HE,feDropShadow:GE,feMorphology:VE,feComposite:zE,feColorMatrix:ME,feGaussianBlur:KE,title:qE,desc:$E};function ownKeys$1$1(en,tn){var nn=$w(en);if(Kw){var rn=Kw(en);tn&&(rn=zw(rn).call(rn,(function(tn){return Dw(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _createImage(){return(_createImage=ES(Ww.mark((function _callee(en){var tn,nn,rn=arguments;return Ww.wrap((function _callee$(an){for(;;)switch(an.prev=an.next){case 0:return tn=rn.length>1&&void 0!==rn[1]&&rn[1],nn=document.createElement("img"),tn&&(nn.crossOrigin="Anonymous"),an.abrupt("return",new ZS((function(tn,rn){nn.onload=function(){tn(nn)},nn.onerror=function(){rn()},nn.src=en})));case 4:case"end":return an.stop()}}),_callee)})))).apply(this,arguments)}var XE=function(){function Document(en){var tn,nn,rn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},an=rn.rootEmSize,sn=void 0===an?12:an,cn=rn.emSize,un=void 0===cn?12:cn,dn=rn.createCanvas,pn=void 0===dn?Document.createCanvas:dn,hn=rn.createImage,gn=void 0===hn?Document.createImage:hn,An=rn.anonymousCrossOrigin;TS(this,Document),this.canvg=en,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=en.screen,this.rootEmSize=sn,this.emSize=un,this.createCanvas=pn,this.createImage=this.bindCreateImage(gn,An),this.screen.wait(aC(tn=this.isImagesLoaded).call(tn,this)),this.screen.wait(aC(nn=this.isFontsLoaded).call(nn,this))}return NS(Document,[{key:"bindCreateImage",value:function bindCreateImage(en,tn){return"boolean"==typeof tn?function(nn,rn){return en(nn,"boolean"==typeof rn?rn:tn)}:en}},{key:"popEmSize",value:function popEmSize(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function getUniqueId(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function isImagesLoaded(){var en;return JS(en=this.images).call(en,(function(en){return en.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){var en;return JS(en=this.fonts).call(en,(function(en){return en.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(en){var tn=this.createElement(en.documentElement);return tn.root=!0,tn.addStylesFromStyleDefinition(),this.documentElement=tn,tn}},{key:"createElement",value:function createElement(en){var tn=en.nodeName.replace(/^[^:]+:/,""),nn=Document.elementTypes[tn];return void 0!==nn?new nn(this,en):new JB(this,en)}},{key:"createTextNode",value:function createTextNode(en){return new iE(this,en)}},{key:"setViewBox",value:function setViewBox(en){this.screen.setViewBox(function _objectSpread$1(en){for(var tn=1;tn<arguments.length;tn++){var nn,rn=null!=arguments[tn]?arguments[tn]:{};if(tn%2)Fw(nn=ownKeys$1$1(Object(rn),!0)).call(nn,(function(tn){LS(en,tn,rn[tn])}));else if(kw)Sw(en,kw(rn));else{var an;Fw(an=ownKeys$1$1(Object(rn))).call(an,(function(tn){xw(en,tn,Dw(rn,tn))}))}}return en}({document:this},en))}},{key:"window",get:function get(){return this.screen.window}},{key:"fetch",get:function get(){return this.screen.fetch}},{key:"ctx",get:function get(){return this.screen.ctx}},{key:"emSize",get:function get(){var en=this.emSizeStack;return en[en.length-1]},set:function set(en){this.emSizeStack.push(en)}}]),Document}();function ownKeys$2$1(en,tn){var nn=$w(en);if(Kw){var rn=Kw(en);tn&&(rn=zw(rn).call(rn,(function(tn){return Dw(en,tn).enumerable}))),nn.push.apply(nn,rn)}return nn}function _objectSpread$2(en){for(var tn=1;tn<arguments.length;tn++){var nn,rn=null!=arguments[tn]?arguments[tn]:{};if(tn%2)Fw(nn=ownKeys$2$1(Object(rn),!0)).call(nn,(function(tn){LS(en,tn,rn[tn])}));else if(kw)Sw(en,kw(rn));else{var an;Fw(an=ownKeys$2$1(Object(rn))).call(an,(function(tn){xw(en,tn,Dw(rn,tn))}))}}return en}XE.createCanvas=function createCanvas(en,tn){var nn=document.createElement("canvas");return nn.width=en,nn.height=tn,nn},XE.createImage=function createImage(en){return _createImage.apply(this,arguments)},XE.elementTypes=WE;var YE=function(){function Canvg(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};TS(this,Canvg),this.parser=new HB(nn),this.screen=new DB(en,nn),this.options=nn;var rn=new XE(this,nn),an=rn.createDocumentElement(tn);this.document=rn,this.documentElement=an}var en,tn;return NS(Canvg,[{key:"fork",value:function fork(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(en,tn,_objectSpread$2(_objectSpread$2({},this.options),nn))}},{key:"forkString",value:function forkString(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(en,tn,_objectSpread$2(_objectSpread$2({},this.options),nn))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(tn=ES(Ww.mark((function _callee(){var en,tn=arguments;return Ww.wrap((function _callee$(nn){for(;;)switch(nn.prev=nn.next){case 0:return en=tn.length>0&&void 0!==tn[0]?tn[0]:{},this.start(_objectSpread$2({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},en)),nn.next=4,this.ready();case 4:this.stop();case 5:case"end":return nn.stop()}}),_callee,this)}))),function render(){return tn.apply(this,arguments)})},{key:"start",value:function start(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tn=this.documentElement,nn=this.screen,rn=this.options;nn.start(tn,_objectSpread$2(_objectSpread$2({enableRedraw:!0},rn),en))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en,nn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(en,tn,nn)}}],[{key:"from",value:(en=ES(Ww.mark((function _callee2(en,tn){var nn,rn,an,sn=arguments;return Ww.wrap((function _callee2$(cn){for(;;)switch(cn.prev=cn.next){case 0:return nn=sn.length>2&&void 0!==sn[2]?sn[2]:{},rn=new HB(nn),cn.next=4,rn.parse(tn);case 4:return an=cn.sent,cn.abrupt("return",new Canvg(en,an,nn));case 6:case"end":return cn.stop()}}),_callee2)}))),function from(tn,nn){return en.apply(this,arguments)})},{key:"fromString",value:function fromString(en,tn){var nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},rn=new HB(nn),an=rn.parseFromString(tn);return new Canvg(en,an,nn)}}]),Canvg}();var JE=Object.freeze({__proto__:null,offscreen:function offscreen(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tn=en.DOMParser,nn={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:tn,createCanvas:function createCanvas(en,tn){return new OffscreenCanvas(en,tn)},createImage:function createImage(en){return ES(Ww.mark((function _callee(){var tn,nn,rn;return Ww.wrap((function _callee$(an){for(;;)switch(an.prev=an.next){case 0:return an.next=2,fetch(en);case 2:return tn=an.sent,an.next=5,tn.blob();case 5:return nn=an.sent,an.next=8,createImageBitmap(nn);case 8:return rn=an.sent,an.abrupt("return",rn);case 10:case"end":return an.stop()}}),_callee)})))()}};return"undefined"==typeof DOMParser&&void 0!==tn||Rk(nn,"DOMParser"),nn},node:function node$2(en){var tn=en.DOMParser,nn=en.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:tn,fetch:en.fetch,createCanvas:nn.createCanvas,createImage:nn.loadImage}}}),ZE=Object.freeze({__proto__:null,default:YE,AElement:LE,AnimateColorElement:xE,AnimateElement:wE,AnimateTransformElement:SE,BoundingBox:eE,CB1:CB1,CB2:CB2,CB3:CB3,CB4:CB4,Canvg:YE,CircleElement:cE,ClipPathElement:QE,DefsElement:AE,DescElement:$E,Document:XE,Element:YB,EllipseElement:uE,FeColorMatrixElement:ME,FeCompositeElement:zE,FeDropShadowElement:GE,FeGaussianBlurElement:KE,FeMorphologyElement:VE,FilterElement:HE,Font:ZB,FontElement:CE,FontFaceElement:kE,GElement:mE,GlyphElement:EE,GradientElement:vE,ImageElement:NE,LineElement:dE,LinearGradientElement:yE,MarkerElement:fE,MaskElement:DE,Matrix:KB,MissingGlyphElement:BE,Mouse:UB,PSEUDO_ZERO:NB,Parser:HB,PathElement:aE,PathParser:oE,PatternElement:gE,Point:FB,PolygonElement:hE,PolylineElement:pE,Property:IB,QB1:QB1,QB2:QB2,QB3:QB3,RadialGradientElement:_E,RectElement:lE,RenderedElement:tE,Rotate:VB,SVGElement:sE,SVGFontLoader:OE,Scale:zB,Screen:DB,Skew:qB,SkewX:$B,SkewY:WB,StopElement:bE,StyleElement:FE,SymbolElement:IE,TRefElement:PE,TSpanElement:rE,TextElement:nE,TextPathElement:TE,TitleElement:qE,Transform:XB,Translate:GB,UnknownElement:JB,UseElement:UE,ViewPort:OB,compressSpaces:compressSpaces,getSelectorSpecificity:getSelectorSpecificity,normalizeAttributeName:normalizeAttributeName,normalizeColor:normalizeColor,parseExternalUrl:parseExternalUrl,presets:JE,toNumbers:toNumbers,trimLeft:trimLeft,trimRight:trimRight,vectorMagnitude:vectorMagnitude,vectorsAngle:vectorsAngle,vectorsRatio:vectorsRatio});
|
||
/**
|
||
* A jQuery module to work with SVG attributes.
|
||
* @module jQueryAttr
|
||
* @license MIT
|
||
*/
|
||
function jQueryPluginSVG(en){var tn=en.fn.attr;return en.fn.attr=function(en,nn){var rn=this.length;if(!rn)return tn.call(this,en,nn);for(var an=0;an<rn;++an){var sn=this[an];if("http://www.w3.org/2000/svg"!==sn.namespaceURI)return tn.call(this,en,nn);if(void 0!==nn)sn.setAttribute(en,nn);else if(Array.isArray(en)){for(var cn={},un=en.length;un--;){var dn=en[un],pn=sn.getAttribute(dn);(pn||"0"===pn)&&(pn=isNaN(pn)?pn:pn-0),cn[dn]=pn}return cn}if("object"!==_typeof(en)){var hn=sn.getAttribute(en);return(hn||"0"===hn)&&(hn=isNaN(hn)?hn:hn-0),hn}for(var gn=0,An=Object.entries(en);gn<An.length;gn++){var mn=_slicedToArray(An[gn],2),vn=mn[0],yn=mn[1];sn.setAttribute(vn,yn)}}return this},en}var eP=document.createElementNS(Kf.SVG,"svg");function transformToString(en){var tn=en.matrix,nn="";switch(en.type){case 1:nn="matrix("+[tn.a,tn.b,tn.c,tn.d,tn.e,tn.f].join(",")+")";break;case 2:nn="translate("+tn.e+","+tn.f+")";break;case 3:nn=tn.a===tn.d?"scale(".concat(tn.a,")"):"scale(".concat(tn.a,",").concat(tn.d,")");break;case 4:var rn=0,an=0;if(0!==en.angle){var sn=1-tn.a;an=(sn*tn.f+tn.b*tn.e)/(sn*sn+tn.b*tn.b),rn=(tn.e-tn.b*an)/sn}nn="rotate("+en.angle+" "+rn+","+an+")"}return nn}var tP={},nP=function(){function SVGTransformList(en){_classCallCheck(this,SVGTransformList),this._elem=en||null,this._xforms=[],this._update=function(){for(var en="",tn=0;tn<this.numberOfItems;++tn){en+=transformToString(this._list.getItem(tn))+" "}this._elem.setAttribute("transform",en)},this._list=this,this._init=function(){var en=this,tn=this._elem.getAttribute("transform");if(tn)for(var nn=/\s*((scale|matrix|rotate|translate)\s*\(.*?\))\s*,?\s*/,rn=!0;rn;)rn=tn.match(nn),tn=tn.replace(nn,""),rn&&rn[1]&&function(){var tn=rn[1].split(/\s*\(/),nn=tn[0],an=tn[1].match(/\s*(.*?)\s*\)/);an[1]=an[1].replace(/(\d)-/g,"$1 -");var sn=an[1].split(/[, ]+/),cn="abcdef".split(""),un=eP.createSVGMatrix();Object.values(sn).forEach((function(en,tn){sn[tn]=Number.parseFloat(en),"matrix"===nn&&(un[cn[tn]]=sn[tn])}));var dn=eP.createSVGTransform(),pn="set"+nn.charAt(0).toUpperCase()+nn.slice(1),hn="matrix"===nn?[un]:sn;"scale"===nn&&1===hn.length?hn.push(hn[0]):"translate"===nn&&1===hn.length?hn.push(0):"rotate"===nn&&1===hn.length&&hn.push(0,0),dn[pn].apply(dn,_toConsumableArray(hn)),en._list.appendItem(dn)}()},this._removeFromOtherLists=function(en){en&&Object.values(tP).some((function(tn){for(var nn=0,rn=tn._xforms.length;nn<rn;++nn)if(tn._xforms[nn]===en)return tn.removeItem(nn),!0;return!1}))},this.numberOfItems=0}return _createClass(SVGTransformList,[{key:"clear",value:function clear(){this.numberOfItems=0,this._xforms=[]}},{key:"initialize",value:function initialize(en){this.numberOfItems=1,this._removeFromOtherLists(en),this._xforms=[en]}},{key:"getItem",value:function getItem(en){if(en<this.numberOfItems&&en>=0)return this._xforms[en];var tn=new Error("DOMException with code=INDEX_SIZE_ERR");throw tn.code=1,tn}},{key:"insertItemBefore",value:function insertItemBefore(en,tn){var nn=null;if(tn>=0)if(tn<this.numberOfItems){this._removeFromOtherLists(en);var rn,an=new Array(this.numberOfItems+1);for(rn=0;rn<tn;++rn)an[rn]=this._xforms[rn];an[rn]=en;for(var sn=rn+1;rn<this.numberOfItems;++sn,++rn)an[sn]=this._xforms[rn];this.numberOfItems++,this._xforms=an,nn=en,this._list._update()}else nn=this._list.appendItem(en);return nn}},{key:"replaceItem",value:function replaceItem(en,tn){var nn=null;return tn<this.numberOfItems&&tn>=0&&(this._removeFromOtherLists(en),this._xforms[tn]=en,nn=en,this._list._update()),nn}},{key:"removeItem",value:function removeItem(en){if(en<this.numberOfItems&&en>=0){var tn,nn=this._xforms[en],rn=new Array(this.numberOfItems-1);for(tn=0;tn<en;++tn)rn[tn]=this._xforms[tn];for(var an=tn;an<this.numberOfItems-1;++an,++tn)rn[an]=this._xforms[tn+1];return this.numberOfItems--,this._xforms=rn,this._list._update(),nn}var sn=new Error("DOMException with code=INDEX_SIZE_ERR");throw sn.code=1,sn}},{key:"appendItem",value:function appendItem(en){return this._removeFromOtherLists(en),this._xforms.push(en),this.numberOfItems++,this._list._update(),en}}]),SVGTransformList}(),rP=function removeElementFromListMap(en){en.id&&tP[en.id]&&delete tP[en.id]},iP=function getTransformList(en){if(!function supportsNativeTransformLists(){return DA}()){var tn=en.id||"temp",nn=tP[tn];return nn&&"temp"!==tn||(tP[tn]=new nP(en),tP[tn]._init(),nn=tP[tn]),nn}return en.transform?en.transform.baseVal:en.gradientTransform?en.gradientTransform.baseVal:en.patternTransform?en.patternTransform.baseVal:null},oP=Af.right,aP=arrayMethodIsStrict("reduceRight"),sP=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!aP||!sP||!Gs&&ui>79&&ui<83},{reduceRight:function reduceRight(en){return oP(this,en,arguments.length,arguments.length>1?arguments[1]:void 0)}});var lP=1e-14,cP=document.createElementNS(Kf.SVG,"svg"),uP=function transformPoint(en,tn,nn){return{x:nn.a*en+nn.c*tn+nn.e,y:nn.b*en+nn.d*tn+nn.f}},dP=function isIdentity(en){return 1===en.a&&0===en.b&&0===en.c&&1===en.d&&0===en.e&&0===en.f},pP=function matrixMultiply(){for(var en=arguments.length,tn=new Array(en),nn=0;nn<en;nn++)tn[nn]=arguments[nn];var rn=tn.reduceRight((function(en,tn){return tn.multiply(en)}));return Math.abs(rn.a)<lP&&(rn.a=0),Math.abs(rn.b)<lP&&(rn.b=0),Math.abs(rn.c)<lP&&(rn.c=0),Math.abs(rn.d)<lP&&(rn.d=0),Math.abs(rn.e)<lP&&(rn.e=0),Math.abs(rn.f)<lP&&(rn.f=0),rn},hP=function hasMatrixTransform(en){if(!en)return!1;for(var tn=en.numberOfItems;tn--;){var nn=en.getItem(tn);if(1===nn.type&&!dP(nn.matrix))return!0}return!1},gP=function transformBox(en,tn,nn,rn,an){var sn=uP(en,tn,an),cn=uP(en+nn,tn,an),un=uP(en,tn+rn,an),dn=uP(en+nn,tn+rn,an),pn=Math.min(sn.x,cn.x,un.x,dn.x),hn=Math.max(sn.x,cn.x,un.x,dn.x),gn=Math.min(sn.y,cn.y,un.y,dn.y);return{tl:sn,tr:cn,bl:un,br:dn,aabox:{x:pn,y:gn,width:hn-pn,height:Math.max(sn.y,cn.y,un.y,dn.y)-gn}}},fP=function transformListToTransform(en,tn,nn){if(!en)return cP.createSVGTransformFromMatrix(cP.createSVGMatrix());if(tn=tn||0,nn=nn||en.numberOfItems-1,(tn=Number.parseInt(tn))>(nn=Number.parseInt(nn))){var rn=nn;nn=tn,tn=rn}for(var an=cP.createSVGMatrix(),sn=tn;sn<=nn;++sn){var cn=sn>=0&&sn<en.numberOfItems?en.getItem(sn).matrix:cP.createSVGMatrix();an=pP(an,cn)}return cP.createSVGTransformFromMatrix(an)},AP=function getMatrix(en){var tn=iP(en);return fP(tn).matrix},mP=function snapToAngle(en,tn,nn,rn){var an=Math.PI/4,sn=nn-en,cn=rn-tn,un=Math.atan2(cn,sn),dn=Math.sqrt(sn*sn+cn*cn),pn=Math.round(un/an)*an;return{x:en+dn*Math.cos(pn),y:tn+dn*Math.sin(pn),a:pn}},vP=function rectsIntersect(en,tn){return tn.x<en.x+en.width&&tn.x+tn.width>en.x&&tn.y<en.y+en.height&&tn.y+tn.height>en.y},yP="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,toIndex=function(en){if(void 0===en)return 0;var tn=toInteger(en),nn=toLength(tn);if(tn!==nn)throw RangeError("Wrong length or index");return nn},_P=1/0,bP=Math.abs,wP=Math.pow,xP=Math.floor,SP=Math.log,CP=Math.LN2,ieee754_pack=function(en,tn,nn){var rn,an,sn,cn=new Array(nn),un=8*nn-tn-1,dn=(1<<un)-1,pn=dn>>1,hn=23===tn?wP(2,-24)-wP(2,-77):0,gn=en<0||0===en&&1/en<0?1:0,An=0;for((en=bP(en))!=en||en===_P?(an=en!=en?1:0,rn=dn):(rn=xP(SP(en)/CP),en*(sn=wP(2,-rn))<1&&(rn--,sn*=2),(en+=rn+pn>=1?hn/sn:hn*wP(2,1-pn))*sn>=2&&(rn++,sn/=2),rn+pn>=dn?(an=0,rn=dn):rn+pn>=1?(an=(en*sn-1)*wP(2,tn),rn+=pn):(an=en*wP(2,pn-1)*wP(2,tn),rn=0));tn>=8;cn[An++]=255&an,an/=256,tn-=8);for(rn=rn<<tn|an,un+=tn;un>0;cn[An++]=255&rn,rn/=256,un-=8);return cn[--An]|=128*gn,cn},ieee754_unpack=function(en,tn){var nn,rn=en.length,an=8*rn-tn-1,sn=(1<<an)-1,cn=sn>>1,un=an-7,dn=rn-1,pn=en[dn--],hn=127&pn;for(pn>>=7;un>0;hn=256*hn+en[dn],dn--,un-=8);for(nn=hn&(1<<-un)-1,hn>>=-un,un+=tn;un>0;nn=256*nn+en[dn],dn--,un-=8);if(0===hn)hn=1-cn;else{if(hn===sn)return nn?NaN:pn?-1/0:_P;nn+=wP(2,tn),hn-=cn}return(pn?-1:1)*nn*wP(2,hn-tn)},kP=Qr.f,BP=wn.f,EP=Kn.get,PP=Kn.set,LP="ArrayBuffer",TP="DataView",NP="Wrong index",IP=nn.ArrayBuffer,OP=IP,FP=nn.DataView,UP=FP&&FP.prototype,MP=Object.prototype,RP=nn.RangeError,DP=ieee754_pack,jP=ieee754_unpack,packInt8=function(en){return[255&en]},packInt16=function(en){return[255&en,en>>8&255]},packInt32=function(en){return[255&en,en>>8&255,en>>16&255,en>>24&255]},unpackInt32=function(en){return en[3]<<24|en[2]<<16|en[1]<<8|en[0]},packFloat32=function(en){return DP(en,23,4)},packFloat64=function(en){return DP(en,52,8)},addGetter=function(en,tn){BP(en.prototype,tn,{get:function(){return EP(this)[tn]}})},get$7=function(en,tn,nn,rn){var an=toIndex(nn),sn=EP(en);if(an+tn>sn.byteLength)throw RP(NP);var cn=EP(sn.buffer).bytes,un=an+sn.byteOffset,dn=cn.slice(un,un+tn);return rn?dn:dn.reverse()},set$5=function(en,tn,nn,rn,an,sn){var cn=toIndex(nn),un=EP(en);if(cn+tn>un.byteLength)throw RP(NP);for(var dn=EP(un.buffer).bytes,pn=cn+un.byteOffset,hn=rn(+an),gn=0;gn<tn;gn++)dn[pn+gn]=hn[sn?gn:tn-gn-1]};if(yP){if(!fails((function(){IP(1)}))||!fails((function(){new IP(-1)}))||fails((function(){return new IP,new IP(1.5),new IP(NaN),IP.name!=LP}))){for(var QP,HP=(OP=function ArrayBuffer(en){return anInstance(this,OP),new IP(toIndex(en))}).prototype=IP.prototype,GP=kP(IP),VP=0;GP.length>VP;)(QP=GP[VP++])in OP||xn(OP,QP,IP[QP]);HP.constructor=OP}Ro&&Ha(UP)!==MP&&Ro(UP,MP);var zP=new FP(new OP(2)),KP=UP.setInt8;zP.setInt8(0,2147483648),zP.setInt8(1,2147483649),!zP.getInt8(0)&&zP.getInt8(1)||redefineAll(UP,{setInt8:function setInt8(en,tn){KP.call(this,en,tn<<24>>24)},setUint8:function setUint8(en,tn){KP.call(this,en,tn<<24>>24)}},{unsafe:!0})}else OP=function ArrayBuffer(en){anInstance(this,OP,LP);var tn=toIndex(en);PP(this,{bytes:xs.call(new Array(tn),0),byteLength:tn}),rn||(this.byteLength=tn)},FP=function DataView(en,tn,nn){anInstance(this,FP,TP),anInstance(en,OP,TP);var an=EP(en).byteLength,sn=toInteger(tn);if(sn<0||sn>an)throw RP("Wrong offset");if(sn+(nn=void 0===nn?an-sn:toLength(nn))>an)throw RP("Wrong length");PP(this,{buffer:en,byteLength:nn,byteOffset:sn}),rn||(this.buffer=en,this.byteLength=nn,this.byteOffset=sn)},rn&&(addGetter(OP,"byteLength"),addGetter(FP,"buffer"),addGetter(FP,"byteLength"),addGetter(FP,"byteOffset")),redefineAll(FP.prototype,{getInt8:function getInt8(en){return get$7(this,1,en)[0]<<24>>24},getUint8:function getUint8(en){return get$7(this,1,en)[0]},getInt16:function getInt16(en){var tn=get$7(this,2,en,arguments.length>1?arguments[1]:void 0);return(tn[1]<<8|tn[0])<<16>>16},getUint16:function getUint16(en){var tn=get$7(this,2,en,arguments.length>1?arguments[1]:void 0);return tn[1]<<8|tn[0]},getInt32:function getInt32(en){return unpackInt32(get$7(this,4,en,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(en){return unpackInt32(get$7(this,4,en,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(en){return jP(get$7(this,4,en,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(en){return jP(get$7(this,8,en,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(en,tn){set$5(this,1,en,packInt8,tn)},setUint8:function setUint8(en,tn){set$5(this,1,en,packInt8,tn)},setInt16:function setInt16(en,tn){set$5(this,2,en,packInt16,tn,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(en,tn){set$5(this,2,en,packInt16,tn,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(en,tn){set$5(this,4,en,packInt32,tn,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(en,tn){set$5(this,4,en,packInt32,tn,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(en,tn){set$5(this,4,en,packFloat32,tn,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(en,tn){set$5(this,8,en,packFloat64,tn,arguments.length>2?arguments[2]:void 0)}});setToStringTag(OP,LP),setToStringTag(FP,TP);var qP={ArrayBuffer:OP,DataView:FP},$P=qP.ArrayBuffer,WP=qP.DataView,XP=$P.prototype.slice,YP=fails((function(){return!new $P(2).slice(1,void 0).byteLength}));_export({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:YP},{slice:function slice(en,tn){if(void 0!==XP&&void 0===tn)return XP.call(anObject(this),en);for(var nn=anObject(this).byteLength,rn=toAbsoluteIndex(en,nn),an=toAbsoluteIndex(void 0===tn?nn:tn,nn),sn=new(speciesConstructor(this,$P))(toLength(an-rn)),cn=new WP(this),un=new WP(sn),dn=0;rn<an;)un.setUint8(dn++,cn.getUint8(rn++));return sn}});var JP,ZP=wn.f,eL=nn.Int8Array,tL=eL&&eL.prototype,nL=nn.Uint8ClampedArray,rL=nL&&nL.prototype,iL=eL&&Ha(eL),oL=tL&&Ha(tL),aL=Object.prototype,sL=aL.isPrototypeOf,lL=wellKnownSymbol("toStringTag"),cL=uid("TYPED_ARRAY_TAG"),uL=yP&&!!Ro&&"Opera"!==So(nn.opera),dL=!1,pL={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},hL={BigInt64Array:8,BigUint64Array:8},isTypedArray=function(en){if(!isObject(en))return!1;var tn=So(en);return has(pL,tn)||has(hL,tn)};for(JP in pL)nn[JP]||(uL=!1);if((!uL||"function"!=typeof iL||iL===Function.prototype)&&(iL=function TypedArray(){throw TypeError("Incorrect invocation")},uL))for(JP in pL)nn[JP]&&Ro(nn[JP],iL);if((!uL||!oL||oL===aL)&&(oL=iL.prototype,uL))for(JP in pL)nn[JP]&&Ro(nn[JP].prototype,oL);if(uL&&Ha(rL)!==oL&&Ro(rL,oL),rn&&!has(oL,lL))for(JP in dL=!0,ZP(oL,lL,{get:function(){return isObject(this)?this[cL]:void 0}}),pL)nn[JP]&&xn(nn[JP],cL,JP);var gL={NATIVE_ARRAY_BUFFER_VIEWS:uL,TYPED_ARRAY_TAG:dL&&cL,aTypedArray:function(en){if(isTypedArray(en))return en;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(en){if(Ro){if(sL.call(iL,en))return en}else for(var tn in pL)if(has(pL,JP)){var rn=nn[tn];if(rn&&(en===rn||sL.call(rn,en)))return en}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(en,tn,an){if(rn){if(an)for(var sn in pL){var cn=nn[sn];cn&&has(cn.prototype,en)&&delete cn.prototype[en]}oL[en]&&!an||qn(oL,en,an?tn:uL&&tL[en]||tn)}},exportTypedArrayStaticMethod:function(en,tn,an){var sn,cn;if(rn){if(Ro){if(an)for(sn in pL)(cn=nn[sn])&&has(cn,en)&&delete cn[en];if(iL[en]&&!an)return;try{return qn(iL,en,an?tn:uL&&eL[en]||tn)}catch(en){}}for(sn in pL)!(cn=nn[sn])||cn[en]&&!an||qn(cn,en,tn)}},isView:function isView(en){if(!isObject(en))return!1;var tn=So(en);return"DataView"===tn||has(pL,tn)||has(hL,tn)},isTypedArray:isTypedArray,TypedArray:iL,TypedArrayPrototype:oL},fL=gL.NATIVE_ARRAY_BUFFER_VIEWS,AL=nn.ArrayBuffer,mL=nn.Int8Array,vL=!fL||!fails((function(){mL(1)}))||!fails((function(){new mL(-1)}))||!checkCorrectnessOfIteration((function(en){new mL,new mL(null),new mL(1.5),new mL(en)}),!0)||fails((function(){return 1!==new mL(new AL(2),1,void 0).length})),toOffset=function(en,tn){var nn=function(en){var tn=toInteger(en);if(tn<0)throw RangeError("The argument can't be less than 0");return tn}(en);if(nn%tn)throw RangeError("Wrong offset");return nn},yL=gL.aTypedArrayConstructor,_L=function from(en){var tn,nn,rn,an,sn,cn,un=toObject(en),dn=arguments.length,pn=dn>1?arguments[1]:void 0,hn=void 0!==pn,gn=getIteratorMethod(un);if(null!=gn&&!isArrayIteratorMethod(gn))for(cn=(sn=gn.call(un)).next,un=[];!(an=cn.call(sn)).done;)un.push(an.value);for(hn&&dn>2&&(pn=functionBindContext(pn,arguments[2],2)),nn=toLength(un.length),rn=new(yL(this))(nn),tn=0;nn>tn;tn++)rn[tn]=hn?pn(un[tn],tn):un[tn];return rn},bL=createCommonjsModule((function(en){var tn=Qr.f,an=vi.forEach,sn=Kn.get,cn=Kn.set,un=wn.f,dn=yn.f,pn=Math.round,hn=nn.RangeError,gn=qP.ArrayBuffer,An=qP.DataView,mn=gL.NATIVE_ARRAY_BUFFER_VIEWS,vn=gL.TYPED_ARRAY_TAG,_n=gL.TypedArray,Sn=gL.TypedArrayPrototype,Cn=gL.aTypedArrayConstructor,kn=gL.isTypedArray,Bn="BYTES_PER_ELEMENT",En="Wrong length",fromList=function(en,tn){for(var nn=0,rn=tn.length,an=new(Cn(en))(rn);rn>nn;)an[nn]=tn[nn++];return an},addGetter=function(en,tn){un(en,tn,{get:function(){return sn(this)[tn]}})},isArrayBuffer=function(en){var tn;return en instanceof gn||"ArrayBuffer"==(tn=So(en))||"SharedArrayBuffer"==tn},isTypedArrayIndex=function(en,tn){return kn(en)&&"symbol"!=typeof tn&&tn in en&&String(+tn)==String(tn)},Pn=function getOwnPropertyDescriptor(en,tn){return isTypedArrayIndex(en,tn=toPrimitive(tn,!0))?createPropertyDescriptor(2,en[tn]):dn(en,tn)},Ln=function defineProperty(en,tn,nn){return!(isTypedArrayIndex(en,tn=toPrimitive(tn,!0))&&isObject(nn)&&has(nn,"value"))||has(nn,"get")||has(nn,"set")||nn.configurable||has(nn,"writable")&&!nn.writable||has(nn,"enumerable")&&!nn.enumerable?un(en,tn,nn):(en[tn]=nn.value,en)};rn?(mn||(yn.f=Pn,wn.f=Ln,addGetter(Sn,"buffer"),addGetter(Sn,"byteOffset"),addGetter(Sn,"byteLength"),addGetter(Sn,"length")),_export({target:"Object",stat:!0,forced:!mn},{getOwnPropertyDescriptor:Pn,defineProperty:Ln}),en.exports=function(en,rn,dn){var yn=en.match(/\d+$/)[0]/8,wn=en+(dn?"Clamped":"")+"Array",Cn="get"+en,Pn="set"+en,Ln=nn[wn],Tn=Ln,Nn=Tn&&Tn.prototype,In={},addElement=function(en,tn){un(en,tn,{get:function(){return function(en,tn){var nn=sn(en);return nn.view[Cn](tn*yn+nn.byteOffset,!0)}(this,tn)},set:function(en){return function(en,tn,nn){var rn=sn(en);dn&&(nn=(nn=pn(nn))<0?0:nn>255?255:255&nn),rn.view[Pn](tn*yn+rn.byteOffset,nn,!0)}(this,tn,en)},enumerable:!0})};mn?vL&&(Tn=rn((function(en,tn,nn,rn){return anInstance(en,Tn,wn),inheritIfRequired(isObject(tn)?isArrayBuffer(tn)?void 0!==rn?new Ln(tn,toOffset(nn,yn),rn):void 0!==nn?new Ln(tn,toOffset(nn,yn)):new Ln(tn):kn(tn)?fromList(Tn,tn):_L.call(Tn,tn):new Ln(toIndex(tn)),en,Tn)})),Ro&&Ro(Tn,_n),an(tn(Ln),(function(en){en in Tn||xn(Tn,en,Ln[en])})),Tn.prototype=Nn):(Tn=rn((function(en,tn,nn,rn){anInstance(en,Tn,wn);var an,sn,un,dn=0,pn=0;if(isObject(tn)){if(!isArrayBuffer(tn))return kn(tn)?fromList(Tn,tn):_L.call(Tn,tn);an=tn,pn=toOffset(nn,yn);var mn=tn.byteLength;if(void 0===rn){if(mn%yn)throw hn(En);if((sn=mn-pn)<0)throw hn(En)}else if((sn=toLength(rn)*yn)+pn>mn)throw hn(En);un=sn/yn}else un=toIndex(tn),an=new gn(sn=un*yn);for(cn(en,{buffer:an,byteOffset:pn,byteLength:sn,length:un,view:new An(an)});dn<un;)addElement(en,dn++)})),Ro&&Ro(Tn,_n),Nn=Tn.prototype=Li(Sn)),Nn.constructor!==Tn&&xn(Nn,"constructor",Tn),vn&&xn(Nn,vn,wn),In[wn]=Tn,_export({global:!0,forced:Tn!=Ln,sham:!mn},In),Bn in Tn||xn(Tn,Bn,yn),Bn in Nn||xn(Nn,Bn,yn),setSpecies(wn)}):en.exports=function(){}}));bL("Uint8",(function(en){return function Uint8Array(tn,nn,rn){return en(this,tn,nn,rn)}}));var wL=Math.min,xL=[].copyWithin||function copyWithin(en,tn){var nn=toObject(this),rn=toLength(nn.length),an=toAbsoluteIndex(en,rn),sn=toAbsoluteIndex(tn,rn),cn=arguments.length>2?arguments[2]:void 0,un=wL((void 0===cn?rn:toAbsoluteIndex(cn,rn))-sn,rn-an),dn=1;for(sn<an&&an<sn+un&&(dn=-1,sn+=un-1,an+=un-1);un-- >0;)sn in nn?nn[an]=nn[sn]:delete nn[an],an+=dn,sn+=dn;return nn},SL=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("copyWithin",(function copyWithin(en,tn){return xL.call(SL(this),en,tn,arguments.length>2?arguments[2]:void 0)}));var CL=vi.every,kL=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("every",(function every(en){return CL(kL(this),en,arguments.length>1?arguments[1]:void 0)}));var BL=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("fill",(function fill(en){return xs.apply(BL(this),arguments)}));var EL=vi.filter,PL=gL.aTypedArray,LL=gL.aTypedArrayConstructor;(0,gL.exportTypedArrayMethod)("filter",(function filter(en){for(var tn=EL(PL(this),en,arguments.length>1?arguments[1]:void 0),nn=speciesConstructor(this,this.constructor),rn=0,an=tn.length,sn=new(LL(nn))(an);an>rn;)sn[rn]=tn[rn++];return sn}));var TL=vi.find,NL=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("find",(function find(en){return TL(NL(this),en,arguments.length>1?arguments[1]:void 0)}));var IL=vi.findIndex,OL=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("findIndex",(function findIndex(en){return IL(OL(this),en,arguments.length>1?arguments[1]:void 0)}));var FL=vi.forEach,UL=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("forEach",(function forEach(en){FL(UL(this),en,arguments.length>1?arguments[1]:void 0)}));var ML=Tr.includes,RL=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("includes",(function includes(en){return ML(RL(this),en,arguments.length>1?arguments[1]:void 0)}));var DL=Tr.indexOf,jL=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("indexOf",(function indexOf(en){return DL(jL(this),en,arguments.length>1?arguments[1]:void 0)}));var QL=wellKnownSymbol("iterator"),HL=nn.Uint8Array,GL=os.values,VL=os.keys,zL=os.entries,KL=gL.aTypedArray,qL=gL.exportTypedArrayMethod,$L=HL&&HL.prototype[QL],WL=!!$L&&("values"==$L.name||null==$L.name),XL=function values(){return GL.call(KL(this))};qL("entries",(function entries(){return zL.call(KL(this))})),qL("keys",(function keys(){return VL.call(KL(this))})),qL("values",XL,!WL),qL(QL,XL,!WL);var YL=gL.aTypedArray,JL=[].join;(0,gL.exportTypedArrayMethod)("join",(function join(en){return JL.apply(YL(this),arguments)}));var ZL=Math.min,eT=[].lastIndexOf,tT=!!eT&&1/[1].lastIndexOf(1,-0)<0,nT=arrayMethodIsStrict("lastIndexOf"),rT=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0}),iT=tT||!nT||!rT?function lastIndexOf(en){if(tT)return eT.apply(this,arguments)||0;var tn=toIndexedObject(this),nn=toLength(tn.length),rn=nn-1;for(arguments.length>1&&(rn=ZL(rn,toInteger(arguments[1]))),rn<0&&(rn=nn+rn);rn>=0;rn--)if(rn in tn&&tn[rn]===en)return rn||0;return-1}:eT,oT=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(en){return iT.apply(oT(this),arguments)}));var aT=vi.map,sT=gL.aTypedArray,lT=gL.aTypedArrayConstructor;(0,gL.exportTypedArrayMethod)("map",(function map(en){return aT(sT(this),en,arguments.length>1?arguments[1]:void 0,(function(en,tn){return new(lT(speciesConstructor(en,en.constructor)))(tn)}))}));var cT=Af.left,uT=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("reduce",(function reduce(en){return cT(uT(this),en,arguments.length,arguments.length>1?arguments[1]:void 0)}));var dT=Af.right,pT=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("reduceRight",(function reduceRight(en){return dT(pT(this),en,arguments.length,arguments.length>1?arguments[1]:void 0)}));var hT=gL.aTypedArray,gT=gL.exportTypedArrayMethod,fT=Math.floor;gT("reverse",(function reverse(){for(var en,tn=this,nn=hT(tn).length,rn=fT(nn/2),an=0;an<rn;)en=tn[an],tn[an++]=tn[--nn],tn[nn]=en;return tn}));var AT=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("set",(function set(en){AT(this);var tn=toOffset(arguments.length>1?arguments[1]:void 0,1),nn=this.length,rn=toObject(en),an=toLength(rn.length),sn=0;if(an+tn>nn)throw RangeError("Wrong length");for(;sn<an;)this[tn+sn]=rn[sn++]}),fails((function(){new Int8Array(1).set({})})));var mT=gL.aTypedArray,vT=gL.aTypedArrayConstructor,yT=[].slice;(0,gL.exportTypedArrayMethod)("slice",(function slice(en,tn){for(var nn=yT.call(mT(this),en,tn),rn=speciesConstructor(this,this.constructor),an=0,sn=nn.length,cn=new(vT(rn))(sn);sn>an;)cn[an]=nn[an++];return cn}),fails((function(){new Int8Array(1).slice()})));var _T=vi.some,bT=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("some",(function some(en){return _T(bT(this),en,arguments.length>1?arguments[1]:void 0)}));var wT=gL.aTypedArray,xT=[].sort;(0,gL.exportTypedArrayMethod)("sort",(function sort(en){return xT.call(wT(this),en)}));var ST=gL.aTypedArray;(0,gL.exportTypedArrayMethod)("subarray",(function subarray(en,tn){var nn=ST(this),rn=nn.length,an=toAbsoluteIndex(en,rn);return new(speciesConstructor(nn,nn.constructor))(nn.buffer,nn.byteOffset+an*nn.BYTES_PER_ELEMENT,toLength((void 0===tn?rn:toAbsoluteIndex(tn,rn))-an))}));var CT=nn.Int8Array,kT=gL.aTypedArray,BT=gL.exportTypedArrayMethod,ET=[].toLocaleString,PT=[].slice,LT=!!CT&&fails((function(){ET.call(new CT(1))}));BT("toLocaleString",(function toLocaleString(){return ET.apply(LT?PT.call(kT(this)):kT(this),arguments)}),fails((function(){return[1,2].toLocaleString()!=new CT([1,2]).toLocaleString()}))||!fails((function(){CT.prototype.toLocaleString.call([1,2])})));var TT=gL.exportTypedArrayMethod,NT=nn.Uint8Array,IT=NT&&NT.prototype||{},OT=[].toString,FT=[].join;fails((function(){OT.call({})}))&&(OT=function toString(){return FT.call(this)});var UT=IT.toString!=OT;TT("toString",OT,UT);var MT=jQueryPluginSVG(jQuery),RT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",DT="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use,clipPath".split(","),jT=null,QT=null,HT=null,GT=null,VT=function dropXMLInternalSubset(en){return en.replace(/(<!DOCTYPE\s+\w*\s*\[).*(\?]>)/,"$1$2")},zT=function toXml(en){return en.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};function encode64(en){if(en=KT(en),window.btoa)return window.btoa(en);var tn=new Array(4*Math.floor((en.length+2)/3)),nn=0,rn=0;do{var an=en.charCodeAt(nn++),sn=en.charCodeAt(nn++),cn=en.charCodeAt(nn++),un=an>>2,dn=(3&an)<<4|sn>>4,pn=(15&sn)<<2|cn>>6,hn=63&cn;Number.isNaN(sn)?(pn=64,hn=64):Number.isNaN(cn)&&(hn=64),tn[rn++]=RT.charAt(un),tn[rn++]=RT.charAt(dn),tn[rn++]=RT.charAt(pn),tn[rn++]=RT.charAt(hn)}while(nn<en.length);return tn.join("")}function decode64(en){if(window.atob)return decodeUTF8(window.atob(en));en=en.replace(/[^A-Za-z\d+/=]/g,"");var tn="",nn=0;do{var rn=RT.indexOf(en.charAt(nn++)),an=RT.indexOf(en.charAt(nn++)),sn=RT.indexOf(en.charAt(nn++)),cn=RT.indexOf(en.charAt(nn++)),un=rn<<2|an>>4,dn=(15&an)<<4|sn>>2,pn=(3&sn)<<6|cn;tn+=String.fromCharCode(un),64!==sn&&(tn+=String.fromCharCode(dn)),64!==cn&&(tn+=String.fromCharCode(pn))}while(nn<en.length);return decodeUTF8(tn)}function decodeUTF8(en){return decodeURIComponent(escape(en))}var KT=function encodeUTF8(en){return unescape(encodeURIComponent(en))},qT=function dataURLToObjectURL(en){if("undefined"==typeof Uint8Array||"undefined"==typeof Blob||"undefined"==typeof URL||!URL.createObjectURL)return"";for(var tn=en.split(","),nn=tn[0].match(/:(.*?);/)[1],rn=atob(tn[1]),an=rn.length,sn=new Uint8Array(an);an--;)sn[an]=rn.charCodeAt(an);var cn=new Blob([sn],{type:nn});return URL.createObjectURL(cn)},$T=function createObjectURL(en){return en&&"undefined"!=typeof URL&&URL.createObjectURL?URL.createObjectURL(en):""},WT=function(){if("undefined"==typeof Blob)return"";var en=new Blob(["<html><head><title>SVG-edit</title></head><body> </body></html>"],{type:"text/html"});return $T(en)}(),XT=function text2xml(en){var tn,nn;en.includes("<svg:svg")&&(en=en.replace(/<(\/?)svg:/g,"<$1").replace("xmlns:svg","xmlns"));try{(nn=window.DOMParser?new DOMParser:new window.ActiveXObject("Microsoft.XMLDOM")).async=!1}catch(en){throw new Error("XML Parser could not be instantiated")}try{tn=nn.loadXML?!!nn.loadXML(en)&&nn:nn.parseFromString(en,"text/xml")}catch(en){throw new Error("Error parsing XML string")}return tn},YT=function walkTree(en,tn){if(en&&1===en.nodeType){tn(en);for(var nn=en.childNodes.length;nn--;)walkTree(en.childNodes.item(nn),tn)}},JT=function getUrlFromAttr(en){if(en){if(en.startsWith('url("'))return en.substring(5,en.indexOf('"',6));if(en.startsWith("url('"))return en.substring(5,en.indexOf("'",6));if(en.startsWith("url("))return en.substring(4,en.indexOf(")"))}return null},ZT=function getHref(en){return en.getAttributeNS(Kf.XLINK,"href")},eN=function setHref(en,tn){en.setAttributeNS(Kf.XLINK,"xlink:href",tn)},tN=function findDefs(){var en=jT.getSVGContent(),tn=en.getElementsByTagNameNS(Kf.SVG,"defs");return tn.length>0?tn=tn[0]:(tn=en.ownerDocument.createElementNS(Kf.SVG,"defs"),en.firstChild?en.insertBefore(tn,en.firstChild.nextSibling):en.append(tn)),tn},nN=function getPathBBox(en){for(var tn=en.pathSegList,nn=tn.numberOfItems,rn=[[],[]],an=tn.getItem(0),sn=[an.x,an.y],cn=function getCalc(en,tn,nn,rn){return function(an){return 1-Math.pow(an,3)*sn[en]+3-Math.pow(an,2)*an*tn[en]+3*(1-an)*Math.pow(an,2)*nn[en]+Math.pow(an,3)*rn[en]}},un=0;un<nn;un++){var dn=tn.getItem(un);if(void 0!==dn.x)if(rn[0].push(sn[0]),rn[1].push(sn[1]),dn.x1){for(var pn=[dn.x1,dn.y1],hn=[dn.x2,dn.y2],gn=[dn.x,dn.y],An=0;An<2;An++){var mn=cn(An,pn,hn,gn),vn=6*sn[An]-12*pn[An]+6*hn[An],yn=-3*sn[An]+9*pn[An]-9*hn[An]+3*gn[An],_n=3*pn[An]-3*sn[An];if(0!==yn){var wn=Math.pow(vn,2)-4*_n*yn;if(!(wn<0)){var xn=(-vn+Math.sqrt(wn))/(2*yn);xn>0&&xn<1&&rn[An].push(mn(xn));var Sn=(-vn-Math.sqrt(wn))/(2*yn);Sn>0&&Sn<1&&rn[An].push(mn(Sn))}}else{if(0===vn)continue;var Cn=-_n/vn;Cn>0&&Cn<1&&rn[An].push(mn(Cn))}}sn=gn}else rn[0].push(dn.x),rn[1].push(dn.y)}var kn=Math.min.apply(null,rn[0]),Bn=Math.max.apply(null,rn[0])-kn,En=Math.min.apply(null,rn[1]);return{x:kn,y:En,width:Bn,height:Math.max.apply(null,rn[1])-En}};function groupBBFix(en){if(function supportsHVLineContainerBBox(){return MA}())try{return en.getBBox()}catch(en){}var tn,nn,rn=MT.data(en,"ref"),an=null;rn?(nn=MT(rn).children().clone().attr("visibility","hidden"),MT(GT).append(nn),an=nn.filter("line, path")):an=MT(en).find("line, path");var sn=!1;if(an.length)if(an.each((function(){var en=this.getBBox();en.width&&en.height||(sn=!0)})),sn){var cn=rn?nn:MT(en).children();tn=cN(cn)}else tn=en.getBBox();else tn=en.getBBox();return rn&&nn.remove(),tn}var rN=function getBBox(en){var tn=en||jT.geSelectedElements()[0];if(1!==en.nodeType)return null;var nn=tn.nodeName,rn=null;switch(nn){case"text":""===tn.textContent?(tn.textContent="a",rn=tn.getBBox(),tn.textContent=""):tn.getBBox&&(rn=tn.getBBox());break;case"path":!function supportsPathBBox(){return UA}()?rn=nN(tn):tn.getBBox&&(rn=tn.getBBox());break;case"g":case"a":rn=groupBBFix(tn);break;default:if("use"===nn&&(rn=groupBBFix(tn)),"use"===nn||"foreignObject"===nn&&jA()){if(rn||(rn=tn.getBBox()),!jA()){var an=rn,sn=an.x,cn=an.y;rn={width:an.width,height:an.height,x:sn+Number.parseFloat(tn.getAttribute("x")||0),y:cn+Number.parseFloat(tn.getAttribute("y")||0)}}}else if(DT.includes(nn))if(tn)try{rn=tn.getBBox()}catch(en){var un=tn.getExtentOfChar(0),dn=tn.getComputedTextLength();rn={x:un.x,y:un.y,width:dn,height:un.height}}else{var pn=MT(tn).closest("foreignObject");pn.length&&pn[0].getBBox&&(rn=pn[0].getBBox())}}return rn&&(rn=function bboxToObj(en){return{x:en.x,y:en.y,width:en.width,height:en.height}}(rn)),rn},iN=function getPathDFromSegments(en){var tn="";return MT.each(en,(function(en,nn){var rn=_slicedToArray(nn,2),an=rn[0],sn=rn[1];tn+=an;for(var cn=0;cn<sn.length;cn+=2)tn+=sn[cn]+","+sn[cn+1]+" "})),tn},oN=function getPathDFromElement(en){var tn,nn,rn,an,sn=1.81;switch(en.tagName){case"ellipse":case"circle":var cn=nn=MT(en).attr(["rx","ry","cx","cy"]),un=cn.cx,dn=cn.cy,pn=nn;rn=pn.rx,an=pn.ry,"circle"===en.tagName&&(rn=an=MT(en).attr("r")),tn=iN([["M",[un-rn,dn]],["C",[un-rn,dn-an/sn,un-rn/sn,dn-an,un,dn-an]],["C",[un+rn/sn,dn-an,un+rn,dn-an/sn,un+rn,dn]],["C",[un+rn,dn+an/sn,un+rn/sn,dn+an,un,dn+an]],["C",[un-rn/sn,dn+an,un-rn,dn+an/sn,un-rn,dn]],["Z",[]]]);break;case"path":tn=en.getAttribute("d");break;case"line":tn="M"+(nn=MT(en).attr(["x1","y1","x2","y2"])).x1+","+nn.y1+"L"+nn.x2+","+nn.y2;break;case"polyline":tn="M"+en.getAttribute("points");break;case"polygon":tn="M"+en.getAttribute("points")+" Z";break;case"rect":var hn=MT(en).attr(["rx","ry"]);rn=hn.rx,an=hn.ry;var gn=en.getBBox(),An=gn.x,mn=gn.y,vn=gn.width,yn=gn.height;sn=4-sn,tn=iN(rn||an?[["M",[An,mn+an]],["C",[An,mn+an/sn,An+rn/sn,mn,An+rn,mn]],["L",[An+vn-rn,mn]],["C",[An+vn-rn/sn,mn,An+vn,mn+an/sn,An+vn,mn+an]],["L",[An+vn,mn+yn-an]],["C",[An+vn,mn+yn-an/sn,An+vn-rn/sn,mn+yn,An+vn-rn,mn+yn]],["L",[An+rn,mn+yn]],["C",[An+rn/sn,mn+yn,An,mn+yn-an/sn,An,mn+yn-an]],["L",[An,mn+an]],["Z",[]]]:[["M",[An,mn]],["L",[An+vn,mn]],["L",[An+vn,mn+yn]],["L",[An,mn+yn]],["L",[An,mn]],["Z",[]]])}return tn},aN=function getExtraAttributesForConvertToPath(en){var tn={};return MT.each(["marker-start","marker-end","marker-mid","filter","clip-path"],(function(){var nn=en.getAttribute(this);nn&&(tn[this]=nn)})),tn},sN=function getBBoxOfElementAsPath(en,tn,nn){var rn=tn({element:"path",attr:aN(en)}),an=en.getAttribute("transform");an&&rn.setAttribute("transform",an);var sn=en.parentNode;en.nextSibling?en.before(rn):sn.append(rn);var cn=oN(en);cn?rn.setAttribute("d",cn):rn.remove(),nn.resetOrientation(rn);var un=!1;try{un=rn.getBBox()}catch(en){}return rn.remove(),un};var lN=function getBBoxWithTransform(en,tn,nn){var rn=rN(en);if(!rn)return null;var an=iP(en),sn=pN(an),cn=hP(an);if(sn||cn){var un=!1;if(function bBoxCanBeOptimizedOverNativeGetBBox(en,tn){var nn=en%90;return tn||!(nn>-.001&&nn<.001||nn<-89.99||nn>89.99)}(sn,cn)){if(["ellipse","path","line","polyline","polygon"].includes(en.tagName))rn=un=sN(en,tn,nn);else if("rect"===en.tagName){var dn=en.getAttribute("rx"),pn=en.getAttribute("ry");(dn||pn)&&(rn=un=sN(en,tn,nn))}}if(!un){var hn=fP(an).matrix;rn=gP(rn.x,rn.y,rn.width,rn.height,hn).aabox}}return rn};function getStrokeOffsetForBBox(en){var tn=en.getAttribute("stroke-width");return isNaN(tn)||"none"===en.getAttribute("stroke")?0:tn/2}var cN=function getStrokedBBox(en,tn,nn){if(!en||!en.length)return!1;var rn;if(MT.each(en,(function(){rn||this.parentNode&&(rn=lN(this,tn,nn))})),void 0===rn)return null;var an=rn.x+rn.width,sn=rn.y+rn.height,cn=rn.x,un=rn.y;if(1===en.length){var dn=getStrokeOffsetForBBox(en[0]);cn-=dn,un-=dn,an+=dn,sn+=dn}else MT.each(en,(function(en,rn){var dn=lN(rn,tn,nn);if(dn){var pn=getStrokeOffsetForBBox(rn);cn=Math.min(cn,dn.x-pn),un=Math.min(un,dn.y-pn),1===rn.nodeType&&(an=Math.max(an,dn.x+dn.width+pn),sn=Math.max(sn,dn.y+dn.height+pn))}}));return rn.x=cn,rn.y=un,rn.width=an-cn,rn.height=sn-un,rn},uN=function getVisibleElements(en){en||(en=MT(jT.getSVGContent()).children());var tn=[];return MT(en).children().each((function(en,nn){nn.getBBox&&tn.push(nn)})),tn.reverse()},dN=function getStrokedBBoxDefaultVisible(en){return en||(en=uN()),cN(en,jT.addSVGElementFromJson,jT.pathActions)},pN=function getRotationAngleFromTransformList(en,tn){if(!en)return 0;for(var nn=en.numberOfItems,rn=0;rn<nn;++rn){var an=en.getItem(rn);if(4===an.type)return tn?an.angle*Math.PI/180:an.angle}return 0},hN=function getRotationAngle(en,tn){var nn=en||jT.getSelectedElements()[0],rn=iP(nn);return pN(rn,tn)},gN=function getRefElem(en){return fN(JT(en).substr(1))},fN=function supportsSelectors(){return TA}()?function(en){return GT.querySelector("#"+en)}:function supportsXpath(){return NA}()?function(en){return QT.evaluate('svg:svg[@id="svgroot"]//svg:*[@id="'+en+'"]',HT,(function(){return Kf.SVG}),9,null).singleNodeValue}:function(en){return MT(GT).find("[id=".concat(en,"]"))[0]},AN=function assignAttributes(en,tn,nn,rn){for(var an=0,sn=Object.entries(tn);an<sn.length;an++){var cn=_slicedToArray(sn[an],2),un=cn[0],dn=cn[1],pn="xml:"===un.substr(0,4)?Kf.XML:"xlink:"===un.substr(0,6)?Kf.XLINK:null;_N(dn)?pn?en.removeAttributeNS(pn,un):en.removeAttribute(un):pn?en.setAttributeNS(pn,un,dn):rn?tA(en,un,dn):en.setAttribute(un,dn)}},mN=function cleanupElement(en){var tn={"fill-opacity":1,"stop-opacity":1,opacity:1,stroke:"none","stroke-dasharray":"none","stroke-linejoin":"miter","stroke-linecap":"butt","stroke-opacity":1,"stroke-width":1,rx:0,ry:0};"ellipse"===en.nodeName&&(delete tn.rx,delete tn.ry),Object.entries(tn).forEach((function(tn){var nn=_slicedToArray(tn,2),rn=nn[0],an=nn[1];en.getAttribute(rn)===String(an)&&en.removeAttribute(rn)}))},vN=function snapToGrid(en){var tn=jT.getBaseUnit(),nn=jT.getSnappingStep();return"px"!==tn&&(nn*=Jf()[tn]),en=Math.round(en/nn)*nn},yN=function preventClickDefault(en){MT(en).click((function(en){en.preventDefault()}))},_N=function isNullish(en){return null==en},bN={BEFORE_APPLY:"before_apply",AFTER_APPLY:"after_apply",BEFORE_UNAPPLY:"before_unapply",AFTER_UNAPPLY:"after_unapply"},wN=function(){function Command(){_classCallCheck(this,Command)}return _createClass(Command,[{key:"getText",value:function getText(){return this.text}},{key:"apply",value:function apply(en,tn){en&&en.handleHistoryEvent(bN.BEFORE_APPLY,this),tn(en),en&&en.handleHistoryEvent(bN.AFTER_APPLY,this)}},{key:"unapply",value:function unapply(en,tn){en&&en.handleHistoryEvent(bN.BEFORE_UNAPPLY,this),tn(),en&&en.handleHistoryEvent(bN.AFTER_UNAPPLY,this)}},{key:"elements",value:function elements(){return[this.elem]}},{key:"type",value:function type(){return this.constructor.name}}]),Command}(),xN=function(en){_inherits(MoveElementCommand,en);var tn=_createSuper(MoveElementCommand);function MoveElementCommand(en,nn,rn,an){var sn;return _classCallCheck(this,MoveElementCommand),(sn=tn.call(this)).elem=en,sn.text=an?"Move "+en.tagName+" to "+an:"Move "+en.tagName,sn.oldNextSibling=nn,sn.oldParent=rn,sn.newNextSibling=en.nextSibling,sn.newParent=en.parentNode,sn}return _createClass(MoveElementCommand,[{key:"apply",value:function apply(en){var tn=this;_get(_getPrototypeOf(MoveElementCommand.prototype),"apply",this).call(this,en,(function(){tn.elem=tn.newParent.insertBefore(tn.elem,tn.newNextSibling)}))}},{key:"unapply",value:function unapply(en){var tn=this;_get(_getPrototypeOf(MoveElementCommand.prototype),"unapply",this).call(this,en,(function(){tn.elem=tn.oldParent.insertBefore(tn.elem,tn.oldNextSibling)}))}}]),MoveElementCommand}(wN),SN=function(en){_inherits(InsertElementCommand,en);var tn=_createSuper(InsertElementCommand);function InsertElementCommand(en,nn){var rn;return _classCallCheck(this,InsertElementCommand),(rn=tn.call(this)).elem=en,rn.text=nn||"Create "+en.tagName,rn.parent=en.parentNode,rn.nextSibling=rn.elem.nextSibling,rn}return _createClass(InsertElementCommand,[{key:"apply",value:function apply(en){var tn=this;_get(_getPrototypeOf(InsertElementCommand.prototype),"apply",this).call(this,en,(function(){tn.elem=tn.parent.insertBefore(tn.elem,tn.nextSibling)}))}},{key:"unapply",value:function unapply(en){var tn=this;_get(_getPrototypeOf(InsertElementCommand.prototype),"unapply",this).call(this,en,(function(){tn.parent=tn.elem.parentNode,tn.elem.remove()}))}}]),InsertElementCommand}(wN),CN=function(en){_inherits(RemoveElementCommand,en);var tn=_createSuper(RemoveElementCommand);function RemoveElementCommand(en,nn,rn,an){var sn;return _classCallCheck(this,RemoveElementCommand),(sn=tn.call(this)).elem=en,sn.text=an||"Delete "+en.tagName,sn.nextSibling=nn,sn.parent=rn,rP(en),sn}return _createClass(RemoveElementCommand,[{key:"apply",value:function apply(en){var tn=this;_get(_getPrototypeOf(RemoveElementCommand.prototype),"apply",this).call(this,en,(function(){rP(tn.elem),tn.parent=tn.elem.parentNode,tn.elem.remove()}))}},{key:"unapply",value:function unapply(en){var tn=this;_get(_getPrototypeOf(RemoveElementCommand.prototype),"unapply",this).call(this,en,(function(){rP(tn.elem),_N(tn.nextSibling)&&window.console&&console.error("Reference element was lost"),tn.parent.insertBefore(tn.elem,tn.nextSibling)}))}}]),RemoveElementCommand}(wN),kN=function(en){_inherits(ChangeElementCommand,en);var tn=_createSuper(ChangeElementCommand);function ChangeElementCommand(en,nn,rn){var an;for(var sn in _classCallCheck(this,ChangeElementCommand),(an=tn.call(this)).elem=en,an.text=rn?"Change "+en.tagName+" "+rn:"Change "+en.tagName,an.newValues={},an.oldValues=nn,nn)an.newValues[sn]="#text"===sn?en.textContent:"#href"===sn?ZT(en):en.getAttribute(sn);return an}return _createClass(ChangeElementCommand,[{key:"apply",value:function apply(en){var tn=this;_get(_getPrototypeOf(ChangeElementCommand.prototype),"apply",this).call(this,en,(function(){var en=!1;if(Object.entries(tn.newValues).forEach((function(nn){var rn=_slicedToArray(nn,2),an=rn[0],sn=rn[1];sn?"#text"===an?tn.elem.textContent=sn:"#href"===an?eN(tn.elem,sn):tn.elem.setAttribute(an,sn):"#text"===an?tn.elem.textContent="":(tn.elem.setAttribute(an,""),tn.elem.removeAttribute(an)),"transform"===an&&(en=!0)})),!en){var nn=hN(tn.elem);if(nn){var rn=tn.elem.getBBox(),an=["rotate(",nn," ",rn.x+rn.width/2,",",rn.y+rn.height/2,")"].join("");an!==tn.elem.getAttribute("transform")&&tn.elem.setAttribute("transform",an)}}}))}},{key:"unapply",value:function unapply(en){var tn=this;_get(_getPrototypeOf(ChangeElementCommand.prototype),"unapply",this).call(this,en,(function(){var en=!1;if(Object.entries(tn.oldValues).forEach((function(nn){var rn=_slicedToArray(nn,2),an=rn[0],sn=rn[1];sn?"#text"===an?tn.elem.textContent=sn:"#href"===an?eN(tn.elem,sn):tn.elem.setAttribute(an,sn):"#text"===an?tn.elem.textContent="":tn.elem.removeAttribute(an),"transform"===an&&(en=!0)})),!en){var nn=hN(tn.elem);if(nn){var rn=tn.elem.getBBox(),an=["rotate(",nn," ",rn.x+rn.width/2,",",rn.y+rn.height/2,")"].join("");an!==tn.elem.getAttribute("transform")&&tn.elem.setAttribute("transform",an)}}rP(tn.elem)}))}}]),ChangeElementCommand}(wN),BN=function(en){_inherits(BatchCommand,en);var tn=_createSuper(BatchCommand);function BatchCommand(en){var nn;return _classCallCheck(this,BatchCommand),(nn=tn.call(this)).text=en||"Batch Command",nn.stack=[],nn}return _createClass(BatchCommand,[{key:"apply",value:function apply(en){var tn=this;_get(_getPrototypeOf(BatchCommand.prototype),"apply",this).call(this,en,(function(){tn.stack.forEach((function(tn){console.assert(tn,"stack item should not be null"),tn&&tn.apply(en)}))}))}},{key:"unapply",value:function unapply(en){var tn=this;_get(_getPrototypeOf(BatchCommand.prototype),"unapply",this).call(this,en,(function(){tn.stack.reverse().forEach((function(tn){console.assert(tn,"stack item should not be null"),tn&&tn.unapply(en)}))}))}},{key:"elements",value:function elements(){for(var en=[],tn=this.stack.length;tn--;)if(this.stack[tn])for(var nn=this.stack[tn].elements(),rn=nn.length;rn--;)en.includes(nn[rn])||en.push(nn[rn]);return en}},{key:"addSubCommand",value:function addSubCommand(en){console.assert(null!==en,"cmd should not be null"),this.stack.push(en)}},{key:"isEmpty",value:function isEmpty(){return!this.stack.length}}]),BatchCommand}(wN),EN=function(){function UndoManager(en){_classCallCheck(this,UndoManager),this.handler_=en||null,this.undoStackPointer=0,this.undoStack=[],this.undoChangeStackPointer=-1,this.undoableChangeStack=[]}return _createClass(UndoManager,[{key:"resetUndoStack",value:function resetUndoStack(){this.undoStack=[],this.undoStackPointer=0}},{key:"getUndoStackSize",value:function getUndoStackSize(){return this.undoStackPointer}},{key:"getRedoStackSize",value:function getRedoStackSize(){return this.undoStack.length-this.undoStackPointer}},{key:"getNextUndoCommandText",value:function getNextUndoCommandText(){return this.undoStackPointer>0?this.undoStack[this.undoStackPointer-1].getText():""}},{key:"getNextRedoCommandText",value:function getNextRedoCommandText(){return this.undoStackPointer<this.undoStack.length?this.undoStack[this.undoStackPointer].getText():""}},{key:"undo",value:function undo(){this.undoStackPointer>0&&this.undoStack[--this.undoStackPointer].unapply(this.handler_)}},{key:"redo",value:function redo(){this.undoStackPointer<this.undoStack.length&&this.undoStack.length>0&&this.undoStack[this.undoStackPointer++].apply(this.handler_)}},{key:"addCommandToHistory",value:function addCommandToHistory(en){this.undoStackPointer<this.undoStack.length&&this.undoStack.length>0&&(this.undoStack=this.undoStack.splice(0,this.undoStackPointer)),this.undoStack.push(en),this.undoStackPointer=this.undoStack.length}},{key:"beginUndoableChange",value:function beginUndoableChange(en,tn){for(var nn=++this.undoChangeStackPointer,rn=tn.length,an=new Array(rn),sn=new Array(rn);rn--;){var cn=tn[rn];_N(cn)||(sn[rn]=cn,an[rn]=cn.getAttribute(en))}this.undoableChangeStack[nn]={attrName:en,oldValues:an,elements:sn}}},{key:"finishUndoableChange",value:function finishUndoableChange(){for(var en=this.undoChangeStackPointer--,tn=this.undoableChangeStack[en],nn=tn.attrName,rn=new BN("Change "+nn),an=tn.elements.length;an--;){var sn=tn.elements[an];if(!_N(sn)){var cn={};cn[nn]=tn.oldValues[an],cn[nn]!==sn.getAttribute(nn)&&rn.addSubCommand(new kN(sn,cn,nn))}}return this.undoableChangeStack[en]=null,rn}}]),UndoManager}(),PN=Object.freeze({__proto__:null,HistoryEventTypes:bN,Command:wN,MoveElementCommand:xN,InsertElementCommand:SN,RemoveElementCommand:CN,ChangeElementCommand:kN,BatchCommand:BN,UndoManager:EN}),LN=jQuery,TN=null,NN=null,IN=function insertItemBeforeMethod(en,tn,nn){var rn=en.pathSegList;if(function supportsPathInsertItemBefore(){return OA}())rn.insertItemBefore(tn,nn);else{for(var an=rn.numberOfItems,sn=[],cn=0;cn<an;cn++){var un=rn.getItem(cn);sn.push(un)}rn.clear();for(var dn=0;dn<an;dn++)dn===nn&&rn.appendItem(tn),rn.appendItem(sn[dn])}},ON=function ptObjToArrMethod(en,tn){return TN.getSegData()[en].map((function(en){return tn[en]}))},FN=function getGripPtMethod(en,tn){var nn=en.path,rn={x:tn?tn.x:en.item.x,y:tn?tn.y:en.item.y};nn.matrix&&(rn=uP(rn.x,rn.y,nn.matrix));var an=(NN=TN.getEditorContext()).getCurrentZoom();return rn.x*=an,rn.y*=an,rn},UN=function getGripContainerMethod(){var en=fN("pathpointgrip_container");if(!en){var tn=fN("selectorParentGroup");en=document.createElementNS(Kf.SVG,"g"),tn.append(en),en.id="pathpointgrip_container"}return en},MN=function addPointGripMethod(en,tn,nn){var rn=UN(),an=fN("pathpointgrip_"+en);if(!an){an=document.createElementNS(Kf.SVG,"circle");var sn={id:"pathpointgrip_"+en,display:"none",r:4,fill:"#0FF",stroke:"#00F","stroke-width":2,cursor:"move",style:"pointer-events:all"},cn=TN.getUIStrings();"pathNodeTooltip"in cn&&(sn["xlink:title"]=cn.pathNodeTooltip),AN(an,sn),rn.append(an),LN("#pathpointgrip_"+en).dblclick((function(){var en=TN.getPathObj();en&&en.setSegType()}))}return tn&&nn&&AN(an,{cx:tn,cy:nn,display:"inline"}),an},RN=function addCtrlGripMethod(en){var tn=fN("ctrlpointgrip_"+en);if(tn)return tn;tn=document.createElementNS(Kf.SVG,"circle");var nn={id:"ctrlpointgrip_"+en,display:"none",r:4,fill:"#0FF",stroke:"#55F","stroke-width":1,cursor:"move",style:"pointer-events:all"},rn=TN.getUIStrings();return"pathCtrlPtTooltip"in rn&&(nn["xlink:title"]=rn.pathCtrlPtTooltip),AN(tn,nn),UN().append(tn),tn},DN=function getCtrlLineMethod(en){var tn=fN("ctrlLine_"+en);return tn||(tn=document.createElementNS(Kf.SVG,"line"),AN(tn,{id:"ctrlLine_"+en,stroke:"#555","stroke-width":1,style:"pointer-events:none"}),UN().append(tn),tn)},jN=function getControlPointsMethod(en){var tn=en.item,nn=en.index;if(!("x1"in tn)||!("x2"in tn))return null;var rn={};UN();for(var an=[TN.getPathObj().segs[nn-1].item,tn],sn=1;sn<3;sn++){var cn=nn+"c"+sn,un=rn["c"+sn+"_line"]=DN(cn),dn=FN(en,{x:tn["x"+sn],y:tn["y"+sn]}),pn=FN(en,{x:an[sn-1].x,y:an[sn-1].y});AN(un,{x1:dn.x,y1:dn.y,x2:pn.x,y2:pn.y,display:"inline"}),rn["c"+sn+"_line"]=un;var hn=rn["c"+sn]=RN(cn);AN(hn,{cx:dn.x,cy:dn.y,display:"inline"}),rn["c"+sn]=hn}return rn},QN=function replacePathSegMethod(en,tn,nn,rn){var an=TN.getPathObj(),sn=rn||an.elem,cn=sn["createSVGPathSeg"+TN.getPathFuncs()[en]].apply(sn,_toConsumableArray(nn));if(function supportsPathReplaceItem(){return IA}())sn.pathSegList.replaceItem(cn,tn);else{for(var un=sn.pathSegList,dn=un.numberOfItems,pn=[],hn=0;hn<dn;hn++){var gn=un.getItem(hn);pn.push(gn)}un.clear();for(var An=0;An<dn;An++)An===tn?un.appendItem(cn):un.appendItem(pn[An])}},HN=function getSegSelectorMethod(en,tn){var nn=en.index,rn=fN("segline_"+nn);if(!rn){var an=UN();rn=document.createElementNS(Kf.SVG,"path"),AN(rn,{id:"segline_"+nn,display:"none",fill:"none",stroke:"#0FF","stroke-width":2,style:"pointer-events:none",d:"M0,0 0,0"}),an.append(rn)}if(tn){var sn=en.prev;if(!sn)return rn.setAttribute("display","none"),rn;var cn=FN(sn);QN(2,0,[cn.x,cn.y],rn);for(var un=ON(en.type,en.item),dn=0;dn<un.length;dn+=2){var pn=FN(en,{x:un[dn],y:un[dn+1]});un[dn]=pn.x,un[dn+1]=pn.y}QN(en.type,1,un,rn)}return rn},GN=function(){function Segment(en,tn){_classCallCheck(this,Segment),this.selected=!1,this.index=en,this.item=tn,this.type=tn.pathSegType,this.ctrlpts=[],this.ptgrip=null,this.segsel=null}return _createClass(Segment,[{key:"showCtrlPts",value:function showCtrlPts(en){for(var tn in this.ctrlpts)({}).hasOwnProperty.call(this.ctrlpts,tn)&&this.ctrlpts[tn].setAttribute("display",en?"inline":"none")}},{key:"selectCtrls",value:function selectCtrls(en){LN("#ctrlpointgrip_"+this.index+"c1, #ctrlpointgrip_"+this.index+"c2").attr("fill",en?"#0FF":"#EEE")}},{key:"show",value:function show(en){this.ptgrip&&(this.ptgrip.setAttribute("display",en?"inline":"none"),this.segsel.setAttribute("display",en?"inline":"none"),this.showCtrlPts(en))}},{key:"select",value:function select(en){this.ptgrip&&(this.ptgrip.setAttribute("stroke",en?"#0FF":"#00F"),this.segsel.setAttribute("display",en?"inline":"none"),this.ctrlpts&&this.selectCtrls(en),this.selected=en)}},{key:"addGrip",value:function addGrip(){this.ptgrip=function getPointGripMethod(en,tn){var nn=en.index,rn=MN(nn);if(tn){var an=FN(en);AN(rn,{cx:an.x,cy:an.y,display:"inline"})}return rn}(this,!0),this.ctrlpts=jN(this),this.segsel=HN(this,!0)}},{key:"update",value:function update(en){if(this.ptgrip){var tn=FN(this);if(AN(this.ptgrip,{cx:tn.x,cy:tn.y}),HN(this,!0),this.ctrlpts){if(en){var nn=TN.getPathObj();this.item=nn.elem.pathSegList.getItem(this.index),this.type=this.item.pathSegType}jN(this)}}}},{key:"move",value:function move(en,tn){var nn=this.item,rn=this.ctrlpts?[nn.x+=en,nn.y+=tn,nn.x1,nn.y1,nn.x2+=en,nn.y2+=tn]:[nn.x+=en,nn.y+=tn];if(QN(this.type,this.index,10===this.type?ON(this.type,nn):rn),this.next&&this.next.ctrlpts){var an=this.next.item,sn=[an.x,an.y,an.x1+=en,an.y1+=tn,an.x2,an.y2];QN(this.next.type,this.next.index,sn)}if(this.mate){var cn=this.mate.item,un=[cn.x+=en,cn.y+=tn];QN(this.mate.type,this.mate.index,un)}this.update(!0),this.next&&this.next.update(!0)}},{key:"setLinked",value:function setLinked(en){var tn,nn,rn;if(2===en){if(nn=1,!(tn=this.next))return;rn=this.item}else{if(nn=2,!(tn=this.prev))return;rn=tn.item}var an=tn.item;an["x"+nn]=rn.x+(rn.x-this.item["x"+en]),an["y"+nn]=rn.y+(rn.y-this.item["y"+en]);var sn=[an.x,an.y,an.x1,an.y1,an.x2,an.y2];QN(tn.type,tn.index,sn),tn.update(!0)}},{key:"moveCtrl",value:function moveCtrl(en,tn,nn){var rn=this.item;rn["x"+en]+=tn,rn["y"+en]+=nn;var an=[rn.x,rn.y,rn.x1,rn.y1,rn.x2,rn.y2];QN(this.type,this.index,an),this.update(!0)}},{key:"setType",value:function setType(en,tn){QN(en,this.index,tn),this.type=en;var nn=TN.getPathObj();this.item=nn.elem.pathSegList.getItem(this.index),this.showCtrlPts(6===en),this.ctrlpts=jN(this),this.update(!0)}}]),Segment}(),VN=function(){function Path(en){if(_classCallCheck(this,Path),!en||"path"!==en.tagName)throw new Error("svgedit.path.Path constructed without a <path> element");this.elem=en,this.segs=[],this.selected_pts=[],TN.setPathObj(this),this.init()}return _createClass(Path,[{key:"init",value:function init(){LN(UN()).find("*").each((function(){LN(this).attr("display","none")}));var en=this.elem.pathSegList,tn=en.numberOfItems;this.segs=[],this.selected_pts=[],this.first_seg=null;for(var nn=0;nn<tn;nn++){var rn=en.getItem(nn),an=new GN(nn,rn);an.path=this,this.segs.push(an)}for(var sn=this.segs,cn=null,un=0;un<tn;un++){var dn=sn[un],pn=un+1>=tn?null:sn[un+1],hn=un-1<0?null:sn[un-1];if(2===dn.type){if(hn&&1!==hn.type){var gn=sn[cn];gn.next=sn[cn+1],gn.next.prev=gn,gn.addGrip()}cn=un}else if(pn&&1===pn.type)dn.next=sn[cn+1],dn.next.prev=dn,dn.mate=sn[cn],dn.addGrip(),_N(this.first_seg)&&(this.first_seg=dn);else if(pn)1!==dn.type&&(dn.addGrip(),pn&&2!==pn.type&&(dn.next=pn,dn.next.prev=dn));else if(1!==dn.type){var An=sn[cn];An.next=sn[cn+1],An.next.prev=An,An.addGrip(),dn.addGrip(),this.first_seg||(this.first_seg=sn[cn])}}return this}},{key:"eachSeg",value:function eachSeg(en){for(var tn=this.segs.length,nn=0;nn<tn;nn++){if(!1===en.call(this.segs[nn],nn))break}}},{key:"addSeg",value:function addSeg(en){var tn=this.segs[en];if(tn.prev){var nn,rn,an,sn=tn.prev;switch(tn.item.pathSegType){case 4:rn=(tn.item.x+sn.item.x)/2,an=(tn.item.y+sn.item.y)/2,nn=this.elem.createSVGPathSegLinetoAbs(rn,an);break;case 6:var cn=(sn.item.x+tn.item.x1)/2,un=(tn.item.x1+tn.item.x2)/2,dn=(tn.item.x2+tn.item.x)/2,pn=(cn+un)/2,hn=(un+dn)/2;rn=(pn+hn)/2;var gn=(sn.item.y+tn.item.y1)/2,An=(tn.item.y1+tn.item.y2)/2,mn=(tn.item.y2+tn.item.y)/2,vn=(gn+An)/2,yn=(An+mn)/2;an=(vn+yn)/2,nn=this.elem.createSVGPathSegCurvetoCubicAbs(rn,an,cn,gn,pn,vn);var _n=[tn.item.x,tn.item.y,hn,yn,dn,mn];QN(tn.type,en,_n)}IN(this.elem,nn,en)}}},{key:"deleteSeg",value:function deleteSeg(en){var tn=this.segs[en],nn=this.elem.pathSegList;tn.show(!1);var rn=tn.next;if(tn.mate){var an=[rn.item.x,rn.item.y];QN(2,rn.index,an),QN(4,tn.index,an),nn.removeItem(tn.mate.index)}else if(tn.prev)nn.removeItem(en);else{var sn=[rn.item.x,rn.item.y];QN(2,tn.next.index,sn),nn.removeItem(en)}}},{key:"removePtFromSelection",value:function removePtFromSelection(en){var tn=this.selected_pts.indexOf(en);-1!==tn&&(this.segs[en].select(!1),this.selected_pts.splice(tn,1))}},{key:"clearSelection",value:function clearSelection(){this.eachSeg((function(){this.select(!1)})),this.selected_pts=[]}},{key:"storeD",value:function storeD(){this.last_d=this.elem.getAttribute("d")}},{key:"show",value:function show(en){return this.eachSeg((function(){this.show(en)})),en&&this.selectPt(this.first_seg.index),this}},{key:"movePts",value:function movePts(en,tn){for(var nn=this.selected_pts.length;nn--;){this.segs[this.selected_pts[nn]].move(en,tn)}}},{key:"moveCtrl",value:function moveCtrl(en,tn){var nn=this.segs[this.selected_pts[0]];nn.moveCtrl(this.dragctrl,en,tn),TN.getLinkControlPts()&&nn.setLinked(this.dragctrl)}},{key:"setSegType",value:function setSegType(en){this.storeD();for(var tn,nn=this.selected_pts.length;nn--;){var rn=this.selected_pts[nn],an=this.segs[rn],sn=an.prev;if(sn){if(!en)tn="Toggle Path Segment Type",en=6===an.type?4:6;en=Number(en);var cn=an.item.x,un=an.item.y,dn=sn.item.x,pn=sn.item.y,hn=void 0;switch(en){case 6:if(an.olditem){var gn=an.olditem;hn=[cn,un,gn.x1,gn.y1,gn.x2,gn.y2]}else{var An=cn-dn,mn=un-pn;hn=[cn,un,dn+An/3,pn+mn/3,cn-An/3,un-mn/3]}break;case 4:hn=[cn,un],an.olditem=an.item}an.setType(en,hn)}}TN.getPathObj().endChanges(tn)}},{key:"selectPt",value:function selectPt(en,tn){this.clearSelection(),_N(en)&&this.eachSeg((function(tn){this.prev&&(en=tn)})),this.addPtsToSelection(en),tn&&(this.dragctrl=tn,TN.getLinkControlPts()&&this.segs[en].setLinked(tn))}},{key:"update",value:function update(){var en=this.elem;return hN(en)?(this.matrix=AP(en),this.imatrix=this.matrix.inverse()):(this.matrix=null,this.imatrix=null),this.eachSeg((function(tn){this.item=en.pathSegList.getItem(tn),this.update()})),this}},{key:"endChanges",value:function endChanges(en){jA()&&NN.resetD(this.elem);var tn=new kN(this.elem,{d:this.last_d},en);NN.endChanges({cmd:tn,elem:this.elem})}},{key:"addPtsToSelection",value:function addPtsToSelection(en){var tn=this;Array.isArray(en)||(en=[en]),en.forEach((function(en){tn.segs[en].ptgrip&&!tn.selected_pts.includes(en)&&en>=0&&tn.selected_pts.push(en)})),this.selected_pts.sort();var nn=this.selected_pts.length,rn=[];for(rn.length=nn;nn--;){var an=this.selected_pts[nn],sn=this.segs[an];sn.select(!0),rn[nn]=sn.ptgrip}var cn=Path.subpathIsClosed(this.selected_pts[0]);NN.addPtsToSelection({grips:rn,closedSubpath:cn})}}],[{key:"subpathIsClosed",value:function subpathIsClosed(en){var tn=!1;return TN.getPathObj().eachSeg((function(nn){return nn<=en||2!==this.type&&(1!==this.type||(tn=!0,!1))})),tn}}]),Path}(),zN=jQuery,KN=null,qN=null,$N=null,WN=function init(en){KN=en};function pathDSegment(en,tn,nn,rn){zN.each(tn,(function(en,nn){tn[en]=Zf(nn)}));var an=en+tn.join(" ");return nn&&(an+=" "+nn.join(" ")),rn&&(an+=" "+Zf(rn)),an}var XN,YN,JN,ZN,eI,tI=(JN=!1,ZN=null,eI=!1,{mouseDown:function mouseDown(en,tn,nn,rn){var an;if("path"!==(qN=KN.getEditorContext()).getCurrentMode()){if($N){var sn;if($N.storeD(),"pathpointgrip_"===(an=en.target.id).substr(0,14)){sn=$N.cur_pt=Number.parseInt(an.substr(14)),$N.dragging=[nn,rn];var cn=$N.segs[sn];en.shiftKey?cn.selected?$N.removePtFromSelection(sn):$N.addPtsToSelection(sn):(($N.selected_pts.length<=1||!cn.selected)&&$N.clearSelection(),$N.addPtsToSelection(sn))}else if(an.startsWith("ctrlpointgrip_")){$N.dragging=[nn,rn];var un=an.split("_")[1].split("c");sn=Number(un[0]);var dn=Number(un[1]);$N.selectPt(sn,dn)}if(!$N.dragging){var pn=qN.getRubberBox();_N(pn)&&(pn=qN.setRubberBox(qN.selectorManager.getRubberBandBox())),hn=qN.getCurrentZoom(),AN(pn,{x:nn*hn,y:rn*hn,width:0,height:0,display:"inline"})}}}else{var hn,gn=nn,An=rn,mn=gn/(hn=qN.getCurrentZoom()),vn=An/hn,yn=fN("path_stretch_line");XN=[mn,vn],qN.getGridSnapping()&&(mn=vN(mn),vn=vN(vn),gn=vN(gn),An=vN(An)),yn||(yn=document.createElementNS(Kf.SVG,"path"),AN(yn,{id:"path_stretch_line",stroke:"#22C","stroke-width":"0.5",fill:"none"}),fN("selectorParentGroup").append(yn)),yn.setAttribute("display","inline");var _n,wn=qN.getDrawnPath();if(wn){for(var xn=wn.pathSegList,Sn=xn.numberOfItems,Cn=6/hn,kn=!1;Sn;){Sn--;var Bn=xn.getItem(Sn),En=Bn.x,Pn=Bn.y;if(mn>=En-Cn&&mn<=En+Cn&&vn>=Pn-Cn&&vn<=Pn+Cn){kn=!0;break}}an=qN.getId(),KN.removePath_(an);var Ln,Tn,Nn=fN(an),In=xn.numberOfItems;if(kn){if(Sn<=1&&In>=2){var On=xn.getItem(0).x,Fn=xn.getItem(0).y;Ln=4===(Tn=yn.pathSegList.getItem(1)).pathSegType?wn.createSVGPathSegLinetoAbs(On,Fn):wn.createSVGPathSegCurvetoCubicAbs(On,Fn,Tn.x1/hn,Tn.y1/hn,On,Fn);var Un=wn.createSVGPathSegClosePath();xn.appendItem(Ln),xn.appendItem(Un)}else if(In<3)return!1;if(zN(yn).remove(),qN.setDrawnPath(null),qN.setStarted(!1),JN){$N.matrix&&qN.remapElement(Nn,{},$N.matrix.inverse());var Mn=Nn.getAttribute("d"),Rn=zN($N.elem).attr("d");return zN($N.elem).attr("d",Rn+Mn),zN(Nn).remove(),$N.matrix&&KN.recalcRotatedPath(),WN(),tI.toEditMode($N.elem),$N.selectPt(),!1}}else{if(!zN.contains(qN.getContainer(),qN.getMouseTarget(en)))return!1;var Dn=wn.pathSegList.numberOfItems,jn=wn.pathSegList.getItem(Dn-1),Qn=jn.x,Hn=jn.y;if(en.shiftKey){var Gn=mP(Qn,Hn,mn,vn);mn=Gn.x,vn=Gn.y}Ln=4===(Tn=yn.pathSegList.getItem(1)).pathSegType?wn.createSVGPathSegLinetoAbs(qN.round(mn),qN.round(vn)):wn.createSVGPathSegCurvetoCubicAbs(qN.round(mn),qN.round(vn),Tn.x1/hn,Tn.y1/hn,Tn.x2/hn,Tn.y2/hn),wn.pathSegList.appendItem(Ln),mn*=hn,vn*=hn,yn.setAttribute("d",["M",mn,vn,mn,vn].join(" ")),_n=Dn,JN&&(_n+=$N.segs.length),KN.addPointGrip(_n,mn,vn)}}else{var Vn="M"+mn+","+vn+" ";qN.setDrawnPath(qN.addSVGElementFromJson({element:"path",curStyles:!0,attr:{d:Vn,id:qN.getNextId(),opacity:qN.getOpacity()/2}})),yn.setAttribute("d",["M",gn,An,gn,An].join(" ")),_n=JN?$N.segs.length:0,KN.addPointGrip(_n,gn,An)}}},mouseMove:function mouseMove(en,tn){var nn=(qN=KN.getEditorContext()).getCurrentZoom();eI=!0;var rn=qN.getDrawnPath();if("path"!==qN.getCurrentMode())if($N.dragging){var an=KN.getPointFromGrip({x:$N.dragging[0],y:$N.dragging[1]},$N),sn=KN.getPointFromGrip({x:en,y:tn},$N),cn=sn.x-an.x,un=sn.y-an.y;$N.dragging=[en,tn],$N.dragctrl?$N.moveCtrl(cn,un):$N.movePts(cn,un)}else $N.selected_pts=[],$N.eachSeg((function(en){var tn=this;if(tn.next||tn.prev){var nn=qN.getRubberBox().getBBox(),rn=KN.getGripPt(tn),an={x:rn.x,y:rn.y,width:0,height:0},sn=vP(nn,an);this.select(sn),sn&&$N.selected_pts.push(tn.index)}}));else{if(!rn)return;var dn=rn.pathSegList,pn=dn.numberOfItems-1;if(XN){var hn=KN.addCtrlGrip("1c1"),gn=KN.addCtrlGrip("0c2");hn.setAttribute("cx",en),hn.setAttribute("cy",tn),hn.setAttribute("display","inline");var An=XN[0],mn=XN[1],vn=An+(An-en/nn),yn=mn+(mn-tn/nn);gn.setAttribute("cx",vn*nn),gn.setAttribute("cy",yn*nn),gn.setAttribute("display","inline");var _n=KN.getCtrlLine(1);if(AN(_n,{x1:en,y1:tn,x2:vn*nn,y2:yn*nn,display:"inline"}),0===pn)YN=[en,tn];else{var wn=dn.getItem(pn-1),xn=wn.x,Sn=wn.y;6===wn.pathSegType?(xn+=xn-wn.x2,Sn+=Sn-wn.y2):YN&&(xn=YN[0]/nn,Sn=YN[1]/nn),KN.replacePathSeg(6,pn,[An,mn,xn,Sn,vn,yn],rn)}}else{var Cn=fN("path_stretch_line");if(Cn){var kn=dn.getItem(pn);if(6===kn.pathSegType){var Bn=kn.x+(kn.x-kn.x2),En=kn.y+(kn.y-kn.y2);KN.replacePathSeg(6,1,[en,tn,Bn*nn,En*nn,en,tn],Cn)}else YN?KN.replacePathSeg(6,1,[en,tn,YN[0],YN[1],en,tn],Cn):KN.replacePathSeg(4,1,[en,tn],Cn)}}}},mouseUp:function mouseUp(en,tn,nn,rn){var an=(qN=KN.getEditorContext()).getDrawnPath();if("path"===qN.getCurrentMode())return XN=null,an||(tn=fN(qN.getId()),qN.setStarted(!1),YN=null),{keep:!0,element:tn};var sn=qN.getRubberBox();if($N.dragging){var cn=$N.cur_pt;$N.dragging=!1,$N.dragctrl=!1,$N.update(),eI&&$N.endChanges("Move path point(s)"),en.shiftKey||eI||$N.selectPt(cn)}else sn&&"none"!==sn.getAttribute("display")?(sn.setAttribute("display","none"),sn.getAttribute("width")<=2&&sn.getAttribute("height")<=2&&tI.toSelectMode(en.target)):tI.toSelectMode(en.target);eI=!1},toEditMode:function toEditMode(en){qN=KN.getEditorContext(),$N=KN.getPath_(en),qN.setCurrentMode("pathedit"),qN.clearSelection(),$N.show(!0).update(),$N.oldbbox=rN($N.elem),JN=!1},toSelectMode:function toSelectMode(en){qN=KN.getEditorContext();var tn=en===$N.elem;qN.setCurrentMode("select"),$N.show(!1),ZN=!1,qN.clearSelection(),$N.matrix&&KN.recalcRotatedPath(),tn&&(qN.call("selected",[en]),qN.addToSelection([en],!0))},addSubPath:function addSubPath(en){qN=KN.getEditorContext(),en?(qN.setCurrentMode("path"),JN=!0):(tI.clear(!0),tI.toEditMode($N.elem))},select:function select(en){qN=KN.getEditorContext(),ZN===en?(tI.toEditMode(en),qN.setCurrentMode("pathedit")):ZN=en},reorient:function reorient(){var en=(qN=KN.getEditorContext()).getSelectedElements()[0];if(en&&0!==hN(en)){var tn=new BN("Reorient path"),nn={d:en.getAttribute("d"),transform:en.getAttribute("transform")};tn.addSubCommand(new kN(en,nn)),qN.clearSelection(),this.resetOrientation(en),qN.addCommandToHistory(tn),KN.getPath_(en).show(!1).matrix=null,this.clear(),qN.addToSelection([en],!0),qN.call("changed",qN.getSelectedElements())}},clear:function clear(en){var tn=(qN=KN.getEditorContext()).getDrawnPath();if(ZN=null,tn){var nn=fN(qN.getId());zN(fN("path_stretch_line")).remove(),zN(nn).remove(),zN(fN("pathpointgrip_container")).find("*").attr("display","none"),YN=null,qN.setDrawnPath(null),qN.setStarted(!1)}else"pathedit"===qN.getCurrentMode()&&this.toSelectMode();$N&&$N.init().show(!1)},resetOrientation:function resetOrientation(en){if(_N(en)||"path"!==en.nodeName)return!1;var tn=iP(en),nn=fP(tn).matrix;tn.clear(),en.removeAttribute("transform");for(var rn=en.pathSegList,an=rn.numberOfItems,sn=function _loop(tn){var an=rn.getItem(tn),sn=an.pathSegType;if(1===sn)return"continue";var cn=[];zN.each(["",1,2],(function(en,tn){var rn=an["x"+tn],sn=an["y"+tn];if(void 0!==rn&&void 0!==sn){var un=uP(rn,sn,nn);cn.splice(cn.length,0,un.x,un.y)}})),KN.replacePathSeg(sn,tn,cn,en)},cn=0;cn<an;++cn)sn(cn);KN.reorientGrads(en,nn)},zoomChange:function zoomChange(){"pathedit"===(qN=KN.getEditorContext()).getCurrentMode()&&$N.update()},getNodePoint:function getNodePoint(){var en=$N.selected_pts.length?$N.selected_pts[0]:1,tn=$N.segs[en];return{x:tn.item.x,y:tn.item.y,type:tn.type}},linkControlPoints:function linkControlPoints(en){KN.setLinkControlPoints(en)},clonePathNode:function clonePathNode(){$N.storeD();for(var en=$N.selected_pts,tn=en.length,nn=[];tn--;){var rn=en[tn];$N.addSeg(rn),nn.push(rn+tn),nn.push(rn+tn+1)}$N.init().addPtsToSelection(nn),$N.endChanges("Clone path node(s)")},opencloseSubPath:function opencloseSubPath(){var en=$N.selected_pts;if(1===en.length){var tn,nn,rn=$N.elem,an=rn.pathSegList,sn=en[0],cn=null,un=null;if($N.eachSeg((function(en){return 2===this.type&&en<=sn&&(un=this.item),en<=sn||(2===this.type?(cn=en,!1):1!==this.type||(cn=!1,!1))})),_N(cn)&&(cn=$N.segs.length-1),!1!==cn){var dn=rn.createSVGPathSegLinetoAbs(un.x,un.y),pn=rn.createSVGPathSegClosePath();return cn===$N.segs.length-1?(an.appendItem(dn),an.appendItem(pn)):(KN.insertItemBefore(rn,pn,cn),KN.insertItemBefore(rn,dn,cn)),void $N.init().selectPt(cn+1)}if($N.segs[sn].mate)return an.removeItem(sn),an.removeItem(sn),void $N.init().selectPt(sn-1);for(var hn=0;hn<an.numberOfItems;hn++){var gn=an.getItem(hn);if(2===gn.pathSegType)tn=hn;else if(hn===sn)an.removeItem(tn);else if(1===gn.pathSegType&&sn<hn){nn=hn-1,an.removeItem(hn);break}}for(var An=sn-tn-1;An--;)KN.insertItemBefore(rn,an.getItem(tn),nn);var mn=an.getItem(tn);KN.replacePathSeg(2,tn,[mn.x,mn.y]),$N.init().selectPt(0)}},deletePathNode:function deletePathNode(){if(tI.canDeleteNodes){$N.storeD();for(var en=$N.selected_pts,tn=en.length;tn--;){var nn=en[tn];$N.deleteSeg(nn)}if(function cleanup(){var en=$N.elem.pathSegList,tn=en.numberOfItems,nn=function remItems(tn,nn){for(;nn--;)en.removeItem(tn)};if(tn<=1)return!0;for(;tn--;){var rn=en.getItem(tn);if(1===rn.pathSegType){var an=en.getItem(tn-1),sn=en.getItem(tn-2);if(2===an.pathSegType){nn(tn-1,2),cleanup();break}if(2===sn.pathSegType){nn(tn-2,3),cleanup();break}}else if(2===rn.pathSegType&&tn>0){var cn=en.getItem(tn-1).pathSegType;if(2===cn){nn(tn-1,1),cleanup();break}if(1===cn&&en.numberOfItems-1===tn){nn(tn,1),cleanup();break}}}return!1}(),$N.elem.pathSegList.numberOfItems<=1)return tI.toSelectMode($N.elem),void(qN=KN.getEditorContext()).canvas.deleteSelectedElements();if($N.init(),$N.clearSelection(),window.opera){var rn=zN($N.elem);rn.attr("d",rn.attr("d"))}$N.endChanges("Delete path node(s)")}},smoothPolylineIntoPath:function smoothPolylineIntoPath(en){var tn,nn=en.points,rn=nn.numberOfItems;if(rn>=4){var an=nn.getItem(0),sn=null,cn=[];for(cn.push(["M",an.x,",",an.y," C"].join("")),tn=1;tn<=rn-4;tn+=3){var un=nn.getItem(tn),dn=nn.getItem(tn+1),pn=nn.getItem(tn+2);if(sn){var hn=KN.smoothControlPoints(sn,un,an);if(hn&&2===hn.length){var gn=cn[cn.length-1].split(",");gn[2]=hn[0].x,gn[3]=hn[0].y,cn[cn.length-1]=gn.join(","),un=hn[1]}}cn.push([un.x,un.y,dn.x,dn.y,pn.x,pn.y].join(",")),an=pn,sn=dn}for(cn.push("L");tn<rn;){var An=nn.getItem(tn);cn.push([An.x,An.y].join(",")),tn++}cn=cn.join(" "),en=(qN=KN.getEditorContext()).addSVGElementFromJson({element:"path",curStyles:!0,attr:{id:qN.getId(),d:cn,fill:"none"}})}return en},setSegType:function setSegType(en){$N.setSegType(en)},moveNode:function moveNode(en,tn){var nn=$N.selected_pts;if(nn.length){$N.storeD();var rn=$N.segs[nn[0]],an={x:0,y:0};an[en]=tn-rn.item[en],rn.move(an.x,an.y),$N.endChanges("Move path point")}},fixEnd:function fixEnd(en){for(var tn,nn=en.pathSegList,rn=nn.numberOfItems,an=0;an<rn;++an){var sn=nn.getItem(an);if(2===sn.pathSegType&&(tn=sn),1===sn.pathSegType){var cn=nn.getItem(an-1);if(cn.x!==tn.x||cn.y!==tn.y){var un=en.createSVGPathSegLinetoAbs(tn.x,tn.y);KN.insertItemBefore(en,un,an),tI.fixEnd(en);break}}}qN=KN.getEditorContext(),jA()&&qN.resetD(en)},convertPath:function convertPath(en,tn){for(var nn=en.pathSegList,rn=nn.numberOfItems,an=0,sn=0,cn="",un=null,dn=0;dn<rn;++dn){var pn=nn.getItem(dn),hn=pn.x||0,gn=pn.y||0,An=pn.x1||0,mn=pn.y1||0,vn=pn.x2||0,yn=pn.y2||0,_n=pn.pathSegType,wn=KN.getPathMap()[_n][tn?"toLowerCase":"toUpperCase"]();switch(_n){case 1:cn+="z",un&&!tn&&(an=un[0],sn=un[1]);break;case 12:hn-=an;case 13:tn?(gn=0,an+=hn,wn="l"):(gn=sn,an=hn+=an,wn="L"),cn+=pathDSegment(wn,[[hn,gn]]);break;case 14:gn-=sn;case 15:tn?(hn=0,sn+=gn,wn="l"):(hn=an,sn=gn+=sn,wn="L"),cn+=pathDSegment(wn,[[hn,gn]]);break;case 2:case 4:case 18:hn-=an,gn-=sn;case 5:case 3:case 19:tn?(an+=hn,sn+=gn):(an=hn+=an,sn=gn+=sn),2!==_n&&3!==_n||(un=[an,sn]),cn+=pathDSegment(wn,[[hn,gn]]);break;case 6:hn-=an,An-=an,vn-=an,gn-=sn,mn-=sn,yn-=sn;case 7:tn?(an+=hn,sn+=gn):(An+=an,vn+=an,mn+=sn,yn+=sn,an=hn+=an,sn=gn+=sn),cn+=pathDSegment(wn,[[An,mn],[vn,yn],[hn,gn]]);break;case 8:hn-=an,An-=an,gn-=sn,mn-=sn;case 9:tn?(an+=hn,sn+=gn):(An+=an,mn+=sn,an=hn+=an,sn=gn+=sn),cn+=pathDSegment(wn,[[An,mn],[hn,gn]]);break;case 10:hn-=an,gn-=sn;case 11:tn?(an+=hn,sn+=gn):(an=hn+=an,sn=gn+=sn),cn+=pathDSegment(wn,[[pn.r1,pn.r2]],[pn.angle,pn.largeArcFlag?1:0,pn.sweepFlag?1:0],[hn,gn]);break;case 16:hn-=an,vn-=an,gn-=sn,yn-=sn;case 17:tn?(an+=hn,sn+=gn):(vn+=an,yn+=sn,an=hn+=an,sn=gn+=sn),cn+=pathDSegment(wn,[[vn,yn],[hn,gn]])}}return cn}}),nI=jQuery,rI={2:["x","y"],4:["x","y"],6:["x","y","x1","y1","x2","y2"],8:["x","y","x1","y1"],10:["x","y","r1","r2","angle","largeArcFlag","sweepFlag"],12:["x"],14:["y"],16:["x","y","x2","y2"],18:["x","y"]},iI={},oI=function setUiStrings(en){Object.assign(iI,en.ui)},aI=[],sI=!0,lI={},cI=null,uI=null;!function init(en){TN=en}({getEditorContext:function getEditorContext(){return uI},getSegData:function getSegData(){return rI},getUIStrings:function getUIStrings(){return iI},getPathObj:function getPathObj(){return cI},setPathObj:function setPathObj(en){cI=en},getPathFuncs:function getPathFuncs(){return aI},getLinkControlPts:function getLinkControlPts(){return sI}});var dI,pI,hI,gI,fI,AI=QN,mI=function removePath_(en){en in lI&&delete lI[en]},vI=function getRotVals(en,tn){var nn=en-hI,rn=tn-gI,an=Math.sqrt(nn*nn+rn*rn),sn=Math.atan2(rn,nn)+fI;return nn=an*Math.cos(sn)+hI,rn=an*Math.sin(sn)+gI,nn-=dI,rn-=pI,an=Math.sqrt(nn*nn+rn*rn),sn=Math.atan2(rn,nn)-fI,{x:an*Math.cos(sn)+dI,y:an*Math.sin(sn)+pI}},yI=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"];function pathDSegment$1(en,tn,nn,rn){nI.each(tn,(function(en,nn){tn[en]=Zf(nn)}));var an=en+tn.join(" ");return nn&&(an+=" "+nn.join(" ")),rn&&(an+=" "+Zf(rn)),an}WN({getEditorContext:function getEditorContext(){return uI},getPathMap:function getPathMap(){return yI},smoothControlPoints:function smoothControlPoints(en,tn,nn){var rn=en.x-nn.x,an=en.y-nn.y,sn=tn.x-nn.x,cn=tn.y-nn.y;if(!(0===rn&&0===an||0===sn&&0===cn)){var un=Math.sqrt(rn*rn+an*an),dn=Math.sqrt(sn*sn+cn*cn),pn=uI.getSVGRoot().createSVGPoint(),hn=uI.getSVGRoot().createSVGPoint(),gn=Math.atan2(an,rn),An=Math.atan2(cn,sn);gn<0&&(gn+=2*Math.PI),An<0&&(An+=2*Math.PI);var mn,vn,yn=Math.abs(gn-An),_n=Math.abs(Math.PI-yn)/2;return gn-An>0?(mn=yn<Math.PI?gn+_n:gn-_n,vn=yn<Math.PI?An-_n:An+_n):(mn=yn<Math.PI?gn-_n:gn+_n,vn=yn<Math.PI?An+_n:An-_n),pn.x=un*Math.cos(mn)+nn.x,pn.y=un*Math.sin(mn)+nn.y,hn.x=dn*Math.cos(vn)+nn.x,hn.y=dn*Math.sin(vn)+nn.y,[pn,hn]}},addPointGrip:MN,recalcRotatedPath:function recalcRotatedPath(){var en=cI.elem;if(fI=hN(en,!0)){var tn=cI.oldbbox;hI=tn.x+tn.width/2,gI=tn.y+tn.height/2;var nn=rN(en);dI=nn.x+nn.width/2,pI=nn.y+nn.height/2;var rn=dI-hI,an=pI-gI,sn=Math.sqrt(rn*rn+an*an),cn=Math.atan2(an,rn)+fI;dI=sn*Math.cos(cn)+hI,pI=sn*Math.sin(cn)+gI;for(var un=en.pathSegList,dn=un.numberOfItems;dn;){dn-=1;var pn=un.getItem(dn),hn=pn.pathSegType;if(1!==hn){var gn=vI(pn.x,pn.y),An=[gn.x,gn.y];if(!_N(pn.x1)&&!_N(pn.x2)){var mn=vI(pn.x1,pn.y1),vn=vI(pn.x2,pn.y2);An.splice(An.length,0,mn.x,mn.y,vn.x,vn.y)}AI(hn,dn,An)}}rN(en);var yn=uI.getSVGRoot().createSVGTransform(),_n=iP(en);yn.setRotate(180*fI/Math.PI,dI,pI),_n.replaceItem(yn,0)}},removePath_:mI,addCtrlGrip:RN,getCtrlLine:DN,replacePathSeg:AI,insertItemBefore:IN,getPointFromGrip:function getPointFromGripMethod(en,tn){var nn={x:en.x,y:en.y};tn.matrix&&(en=uP(nn.x,nn.y,tn.imatrix),nn.x=en.x,nn.y=en.y);var rn=(NN=TN.getEditorContext()).getCurrentZoom();return nn.x/=rn,nn.y/=rn,nn},getGripPt:FN,getPath_:function getPath_(en){var tn=lI[en.id];return tn||(tn=lI[en.id]=new VN(en)),tn},reorientGrads:function reorientGrads(en,tn){for(var nn=rN(en),rn=0;rn<2;rn++){var an=0===rn?"fill":"stroke",sn=en.getAttribute(an);if(sn&&sn.startsWith("url(")){var cn=gN(sn);if("linearGradient"===cn.tagName){var un=cn.getAttribute("x1")||0,dn=cn.getAttribute("y1")||0,pn=cn.getAttribute("x2")||1,hn=cn.getAttribute("y2")||0;un=nn.width*un+nn.x,dn=nn.height*dn+nn.y,pn=nn.width*pn+nn.x,hn=nn.height*hn+nn.y;var gn=uP(un,dn,tn),An=uP(pn,hn,tn),mn={x1:(gn.x-nn.x)/nn.width,y1:(gn.y-nn.y)/nn.height,x2:(An.x-nn.x)/nn.width,y2:(An.y-nn.y)/nn.height},vn=cn.cloneNode(!0);nI(vn).attr(mn),vn.id=uI.getNextId(),tN().append(vn),en.setAttribute(an,"url(#"+vn.id+")")}}}},setLinkControlPoints:function setLinkControlPoints(en){sI=en}});var _I=tI,bI=jQuery,wI=function(){function Layer(en,tn,nn){if(_classCallCheck(this,Layer),this.name_=en,this.group_=nn?null:tn,nn){var rn=nn.ownerDocument;this.group_=rn.createElementNS(Kf.SVG,"g");var an=rn.createElementNS(Kf.SVG,"title");an.textContent=en,this.group_.append(an),tn?bI(tn).after(this.group_):nn.append(this.group_)}addLayerClass(this.group_),YT(this.group_,(function(en){en.setAttribute("style","pointer-events:inherit")})),this.group_.setAttribute("style",nn?"pointer-events:all":"pointer-events:none")}return _createClass(Layer,[{key:"getName",value:function getName(){return this.name_}},{key:"getGroup",value:function getGroup(){return this.group_}},{key:"activate",value:function activate(){this.group_.setAttribute("style","pointer-events:all")}},{key:"deactivate",value:function deactivate(){this.group_.setAttribute("style","pointer-events:none")}},{key:"setVisible",value:function setVisible(en){var tn=void 0===en||en?"inline":"none";this.group_.getAttribute("display")!==tn&&this.group_.setAttribute("display",tn)}},{key:"isVisible",value:function isVisible(){return"none"!==this.group_.getAttribute("display")}},{key:"getOpacity",value:function getOpacity(){var en=this.group_.getAttribute("opacity");return _N(en)?1:Number.parseFloat(en)}},{key:"setOpacity",value:function setOpacity(en){"number"==typeof en&&en>=0&&en<=1&&this.group_.setAttribute("opacity",en)}},{key:"appendChildren",value:function appendChildren(en){var tn,nn=_createForOfIteratorHelper(en);try{for(nn.s();!(tn=nn.n()).done;){var rn=tn.value;this.group_.append(rn)}}catch(en){nn.e(en)}finally{nn.f()}}},{key:"getTitleElement",value:function getTitleElement(){for(var en=this.group_.childNodes.length,tn=0;tn<en;++tn){var nn=this.group_.childNodes.item(tn);if(nn&&"title"===nn.tagName)return nn}return null}},{key:"setName",value:function setName(en,tn){var nn=this.name_;en=zT(en);var rn=this.getTitleElement();return rn?(bI(rn).empty(),rn.textContent=en,this.name_=en,tn&&tn.changeElement(rn,{"#text":nn}),this.name_):null}},{key:"removeGroup",value:function removeGroup(){var en=this.group_;return this.group_.remove(),this.group_=void 0,en}}],[{key:"isLayer",value:function isLayer(en){return en&&"g"===en.tagName&&Layer.CLASS_REGEX.test(en.getAttribute("class"))}}]),Layer}();function addLayerClass(en){var tn=en.getAttribute("class");_N(tn)||!tn.length?en.setAttribute("class",wI.CLASS_NAME):wI.CLASS_REGEX.test(tn)||en.setAttribute("class",tn+" "+wI.CLASS_NAME)}wI.CLASS_NAME="layer",wI.CLASS_REGEX=new RegExp("(\\s|^)"+wI.CLASS_NAME+"(\\s|$)");var xI=function(){function HistoryRecordingService(en){_classCallCheck(this,HistoryRecordingService),this.undoManager_=en,this.currentBatchCommand_=null,this.batchCommandStack_=[]}return _createClass(HistoryRecordingService,[{key:"startBatchCommand",value:function startBatchCommand(en){return this.undoManager_?(this.currentBatchCommand_=new BN(en),this.batchCommandStack_.push(this.currentBatchCommand_),this):this}},{key:"endBatchCommand",value:function endBatchCommand(){if(!this.undoManager_)return this;if(this.currentBatchCommand_){var en=this.currentBatchCommand_;this.batchCommandStack_.pop();var tn=this.batchCommandStack_.length;this.currentBatchCommand_=tn?this.batchCommandStack_[tn-1]:null,this.addCommand_(en)}return this}},{key:"moveElement",value:function moveElement(en,tn,nn,rn){return this.undoManager_?(this.addCommand_(new xN(en,tn,nn,rn)),this):this}},{key:"insertElement",value:function insertElement(en,tn){return this.undoManager_?(this.addCommand_(new SN(en,tn)),this):this}},{key:"removeElement",value:function removeElement(en,tn,nn,rn){return this.undoManager_?(this.addCommand_(new CN(en,tn,nn,rn)),this):this}},{key:"changeElement",value:function changeElement(en,tn,nn){return this.undoManager_?(this.addCommand_(new kN(en,tn,nn)),this):this}},{key:"addCommand_",value:function addCommand_(en){if(!this.undoManager_)return this;this.currentBatchCommand_?this.currentBatchCommand_.addSubCommand(en):this.undoManager_.addCommandToHistory(en)}}]),HistoryRecordingService}();xI.NO_HISTORY=new xI;var SI=jQueryPluginSVG(jQuery),CI=function copyElem(en,tn){var nn=document.createElementNS(en.namespaceURI,en.nodeName);if(SI.each(en.attributes,(function(en,tn){"-moz-math-font-style"!==tn.localName&&nn.setAttributeNS(tn.namespaceURI,tn.nodeName,tn.value)})),nn.removeAttribute("id"),nn.id=tn(),jA()&&"path"===en.nodeName){var rn=function convertPath(en,tn){for(var nn=en.pathSegList,rn=nn.numberOfItems,an=0,sn=0,cn="",un=null,dn=0;dn<rn;++dn){var pn=nn.getItem(dn),hn=pn.x||0,gn=pn.y||0,An=pn.x1||0,mn=pn.y1||0,vn=pn.x2||0,yn=pn.y2||0,_n=pn.pathSegType,wn=yI[_n][tn?"toLowerCase":"toUpperCase"]();switch(_n){case 1:cn+="z",un&&!tn&&(an=un[0],sn=un[1]);break;case 12:hn-=an;case 13:tn?(gn=0,an+=hn,wn="l"):(gn=sn,an=hn+=an,wn="L"),cn+=pathDSegment$1(wn,[[hn,gn]]);break;case 14:gn-=sn;case 15:tn?(hn=0,sn+=gn,wn="l"):(hn=an,sn=gn+=sn,wn="L"),cn+=pathDSegment$1(wn,[[hn,gn]]);break;case 2:case 4:case 18:hn-=an,gn-=sn;case 5:case 3:case 19:tn?(an+=hn,sn+=gn):(an=hn+=an,sn=gn+=sn),2!==_n&&3!==_n||(un=[an,sn]),cn+=pathDSegment$1(wn,[[hn,gn]]);break;case 6:hn-=an,An-=an,vn-=an,gn-=sn,mn-=sn,yn-=sn;case 7:tn?(an+=hn,sn+=gn):(An+=an,vn+=an,mn+=sn,yn+=sn,an=hn+=an,sn=gn+=sn),cn+=pathDSegment$1(wn,[[An,mn],[vn,yn],[hn,gn]]);break;case 8:hn-=an,An-=an,gn-=sn,mn-=sn;case 9:tn?(an+=hn,sn+=gn):(An+=an,mn+=sn,an=hn+=an,sn=gn+=sn),cn+=pathDSegment$1(wn,[[An,mn],[hn,gn]]);break;case 10:hn-=an,gn-=sn;case 11:tn?(an+=hn,sn+=gn):(an=hn+=an,sn=gn+=sn),cn+=pathDSegment$1(wn,[[pn.r1,pn.r2]],[pn.angle,pn.largeArcFlag?1:0,pn.sweepFlag?1:0],[hn,gn]);break;case 16:hn-=an,vn-=an,gn-=sn,yn-=sn;case 17:tn?(an+=hn,sn+=gn):(vn+=an,yn+=sn,an=hn+=an,sn=gn+=sn),cn+=pathDSegment$1(wn,[[vn,yn],[hn,gn]])}}return cn}(en);nn.setAttribute("d",rn)}if(SI.each(en.childNodes,(function(en,rn){switch(rn.nodeType){case 1:nn.append(copyElem(rn,tn));break;case 3:nn.textContent=rn.nodeValue}})),SI(en).data("gsvg"))SI(nn).data("gsvg",nn.firstChild);else if(SI(en).data("symbol")){var an=SI(en).data("symbol");SI(nn).data("ref",an).data("symbol",an)}else"image"===nn.tagName&&yN(nn);return nn},kI=jQuery,BI="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use".split(","),EI=1,PI=2,LI=0,TI=[];function historyRecordingService(en){return en||new xI(NI.undoMgr)}function findLayerNameInGroup(en){return kI("title",en).text()||(function isOpera(){return SA}()&&en.querySelectorAll?kI(en.querySelectorAll("title")).text():"")}function getNewLayerName(en){for(var tn=1;en.includes("Layer "+tn);)tn++;return"Layer "+tn}var NI,II,OI=function(){function Drawing(en,tn){if(_classCallCheck(this,Drawing),!en||!en.tagName||!en.namespaceURI||"svg"!==en.tagName||en.namespaceURI!==Kf.SVG)throw new Error("Error: svgedit.draw.Drawing instance initialized without a <svg> element");this.svgElem_=en,this.obj_num=0,this.idPrefix=tn||"svg_",this.releasedNums=[],this.all_layers=[],this.layer_map={},this.current_layer=null,this.nonce_="";var nn=this.svgElem_.getAttributeNS(Kf.SE,"nonce");nn&&LI!==PI?this.nonce_=nn:LI===EI&&this.setNonce(Math.floor(100001*Math.random()))}return _createClass(Drawing,[{key:"getElem_",value:function getElem_(en){return this.svgElem_.querySelector?this.svgElem_.querySelector("#"+en):kI(this.svgElem_).find("[id="+en+"]")[0]}},{key:"getSvgElem",value:function getSvgElem(){return this.svgElem_}},{key:"getNonce",value:function getNonce(){return this.nonce_}},{key:"setNonce",value:function setNonce(en){this.svgElem_.setAttributeNS(Kf.XMLNS,"xmlns:se",Kf.SE),this.svgElem_.setAttributeNS(Kf.SE,"se:nonce",en),this.nonce_=en}},{key:"clearNonce",value:function clearNonce(){this.nonce_=""}},{key:"getId",value:function getId(){return this.nonce_?this.idPrefix+this.nonce_+"_"+this.obj_num:this.idPrefix+this.obj_num}},{key:"getNextId",value:function getNextId(){var en=this.obj_num,tn=!1;this.releasedNums.length>0?(this.obj_num=this.releasedNums.pop(),tn=!0):this.obj_num++;for(var nn=this.getId();this.getElem_(nn);)tn&&(this.obj_num=en,tn=!1),this.obj_num++,nn=this.getId();return tn&&(this.obj_num=en),nn}},{key:"releaseId",value:function releaseId(en){var tn=this.idPrefix+(this.nonce_?this.nonce_+"_":"");if("string"!=typeof en||!en.startsWith(tn))return!1;var nn=Number.parseInt(en.substr(tn.length));return!("number"!=typeof nn||nn<=0||this.releasedNums.includes(nn))&&(this.releasedNums.push(nn),!0)}},{key:"getNumLayers",value:function getNumLayers(){return this.all_layers.length}},{key:"hasLayer",value:function hasLayer(en){return void 0!==this.layer_map[en]}},{key:"getLayerName",value:function getLayerName(en){return en>=0&&en<this.getNumLayers()?this.all_layers[en].getName():""}},{key:"getCurrentLayer",value:function getCurrentLayer(){return this.current_layer?this.current_layer.getGroup():null}},{key:"getLayerByName",value:function getLayerByName(en){var tn=this.layer_map[en];return tn?tn.getGroup():null}},{key:"getCurrentLayerName",value:function getCurrentLayerName(){return this.current_layer?this.current_layer.getName():""}},{key:"setCurrentLayerName",value:function setCurrentLayerName(en,tn){var nn=null;if(this.current_layer){var rn=this.current_layer.getName();(nn=this.current_layer.setName(en,tn))&&(delete this.layer_map[rn],this.layer_map[nn]=this.current_layer)}return nn}},{key:"setCurrentLayerPosition",value:function setCurrentLayerPosition(en){var tn,nn=this.getNumLayers();if(!this.current_layer||en<0||en>=nn)return null;for(tn=0;tn<nn&&this.all_layers[tn]!==this.current_layer;++tn);if(tn===nn)return null;if(tn!==en){var rn=this.current_layer.getGroup(),an=rn.nextSibling,sn=null;return en>tn?en<nn-1&&(sn=this.all_layers[en+1].getGroup()):sn=this.all_layers[en].getGroup(),this.svgElem_.insertBefore(rn,sn),this.identifyLayers(),this.setCurrentLayer(this.getLayerName(en)),{currentGroup:rn,oldNextSibling:an}}return null}},{key:"mergeLayer",value:function mergeLayer(en){var tn=this.current_layer.getGroup(),nn=kI(tn).prev()[0];if(nn){en.startBatchCommand("Merge Layer");var rn=tn.nextSibling;for(en.removeElement(tn,rn,this.svgElem_);tn.firstChild;){var an=tn.firstChild;if("title"!==an.localName){var sn=an.nextSibling;nn.append(an),en.moveElement(an,sn,tn)}else en.removeElement(an,an.nextSibling,tn),an.remove()}this.current_layer.removeGroup();var cn=this.all_layers.indexOf(this.current_layer);if(cn>0){var un=this.current_layer.getName();this.current_layer=this.all_layers[cn-1],this.all_layers.splice(cn,1),delete this.layer_map[un]}en.endBatchCommand()}}},{key:"mergeAllLayers",value:function mergeAllLayers(en){for(this.current_layer=this.all_layers[this.all_layers.length-1],en.startBatchCommand("Merge all Layers");this.all_layers.length>1;)this.mergeLayer(en);en.endBatchCommand()}},{key:"setCurrentLayer",value:function setCurrentLayer(en){var tn=this.layer_map[en];return!!tn&&(this.current_layer&&this.current_layer.deactivate(),this.current_layer=tn,this.current_layer.activate(),!0)}},{key:"deleteCurrentLayer",value:function deleteCurrentLayer(){if(this.current_layer&&this.getNumLayers()>1){var en=this.current_layer.removeGroup();return this.identifyLayers(),en}return null}},{key:"identifyLayers",value:function identifyLayers(){this.all_layers=[],this.layer_map={};for(var en=this.svgElem_.childNodes.length,tn=[],nn=[],rn=null,an=!1,sn=0;sn<en;++sn){var cn=this.svgElem_.childNodes.item(sn);if(cn&&1===cn.nodeType)if("g"===cn.tagName){an=!0;var un=findLayerNameInGroup(cn);un?(nn.push(un),rn=new wI(un,cn),this.all_layers.push(rn),this.layer_map[un]=rn):tn.push(cn)}else BI.includes(cn.nodeName)&&tn.push(cn)}tn.length>0||!an?((rn=new wI(getNewLayerName(nn),null,this.svgElem_)).appendChildren(tn),this.all_layers.push(rn),this.layer_map[name]=rn):rn.activate(),this.current_layer=rn}},{key:"createLayer",value:function createLayer(en,tn){this.current_layer&&this.current_layer.deactivate(),(null==en||""===en||this.layer_map[en])&&(en=getNewLayerName(Object.keys(this.layer_map)));var nn=new wI(en,null,this.svgElem_);return tn&&(tn.startBatchCommand("Create Layer"),tn.insertElement(nn.getGroup()),tn.endBatchCommand()),this.all_layers.push(nn),this.layer_map[en]=nn,this.current_layer=nn,nn.getGroup()}},{key:"cloneLayer",value:function cloneLayer(en,tn){var nn=this;if(!this.current_layer)return null;this.current_layer.deactivate(),(null==en||""===en||this.layer_map[en])&&(en=getNewLayerName(Object.keys(this.layer_map)));var rn=this.current_layer.getGroup(),an=new wI(en,rn,this.svgElem_),sn=an.getGroup();_toConsumableArray(rn.childNodes).forEach((function(en){"title"!==en.localName&&sn.append(nn.copyElem(en))})),tn&&(tn.startBatchCommand("Duplicate Layer"),tn.insertElement(sn),tn.endBatchCommand());var cn=this.all_layers.indexOf(this.current_layer);return cn>=0?this.all_layers.splice(cn+1,0,an):this.all_layers.push(an),this.layer_map[en]=an,this.current_layer=an,sn}},{key:"getLayerVisibility",value:function getLayerVisibility(en){var tn=this.layer_map[en];return!!tn&&tn.isVisible()}},{key:"setLayerVisibility",value:function setLayerVisibility(en,tn){if("boolean"!=typeof tn)return null;var nn=this.layer_map[en];return nn?(nn.setVisible(tn),nn.getGroup()):null}},{key:"getLayerOpacity",value:function getLayerOpacity(en){var tn=this.layer_map[en];return tn?tn.getOpacity():null}},{key:"setLayerOpacity",value:function setLayerOpacity(en,tn){if(!("number"!=typeof tn||tn<0||tn>1)){var nn=this.layer_map[en];nn&&nn.setOpacity(tn)}}},{key:"copyElem",value:function copyElem$1(en){var tn=this;return CI(en,(function getNextIdClosure(){return tn.getNextId()}))}}]),Drawing}(),FI=function randomizeIds(en,tn){(LI=!1===en?PI:EI)!==EI||tn.getNonce()?LI===PI&&tn.getNonce()&&tn.clearNonce():tn.setNonce(Math.floor(100001*Math.random()))},UI=function identifyLayers(){qI(),NI.getCurrentDrawing().identifyLayers()},MI=function createLayer(en,tn){var nn=NI.getCurrentDrawing().createLayer(en,historyRecordingService(tn));NI.clearSelection(),NI.call("changed",[nn])},RI=function cloneLayer(en,tn){var nn=NI.getCurrentDrawing().cloneLayer(en,historyRecordingService(tn));NI.clearSelection(),qI(),NI.call("changed",[nn])},DI=function deleteCurrentLayer(){var en=NI.getCurrentDrawing().getCurrentLayer(),tn=en.nextSibling,nn=en.parentNode;if(en=NI.getCurrentDrawing().deleteCurrentLayer()){var rn=new BN("Delete Layer");return rn.addSubCommand(new CN(en,tn,nn)),NI.addCommandToHistory(rn),NI.clearSelection(),NI.call("changed",[nn]),!0}return!1},jI=function setCurrentLayer(en){var tn=NI.getCurrentDrawing().setCurrentLayer(zT(en));return tn&&NI.clearSelection(),tn},QI=function renameCurrentLayer(en){var tn=NI.getCurrentDrawing(),nn=tn.getCurrentLayer();if(nn&&tn.setCurrentLayerName(en,historyRecordingService()))return NI.call("changed",[nn]),!0;return!1},HI=function setCurrentLayerPosition(en){var tn=NI.getCurrentDrawing().setCurrentLayerPosition(en);return!!tn&&(NI.addCommandToHistory(new xN(tn.currentGroup,tn.oldNextSibling,NI.getSVGContent())),!0)},GI=function setLayerVisibility(en,tn){var nn=NI.getCurrentDrawing(),rn=nn.getLayerVisibility(en),an=nn.setLayerVisibility(en,tn);if(!an)return!1;var sn=rn?"inline":"none";return NI.addCommandToHistory(new kN(an,{display:sn},"Layer Visibility")),an===nn.getCurrentLayer()&&(NI.clearSelection(),NI.pathActions.clear()),!0},VI=function moveSelectedToLayer(en){var tn=NI.getCurrentDrawing().getLayerByName(en);if(!tn)return!1;for(var nn=new BN("Move Elements to Layer"),rn=NI.getSelectedElements(),an=rn.length;an--;){var sn=rn[an];if(sn){var cn=sn.nextSibling,un=sn.parentNode;tn.append(sn),nn.addSubCommand(new xN(sn,cn,un))}}return NI.addCommandToHistory(nn),!0},zI=function mergeLayer(en){NI.getCurrentDrawing().mergeLayer(historyRecordingService(en)),NI.clearSelection(),qI(),NI.changeSVGContent()},KI=function mergeAllLayers(en){NI.getCurrentDrawing().mergeAllLayers(historyRecordingService(en)),NI.clearSelection(),qI(),NI.changeSVGContent()},qI=function leaveContext(){var en=TI.length;if(en){for(var tn=0;tn<en;tn++){var nn=TI[tn],rn=NI.elData(nn,"orig_opac");1!==rn?nn.setAttribute("opacity",rn):nn.removeAttribute("opacity"),nn.setAttribute("style","pointer-events: inherit")}TI=[],NI.clearSelection(!0),NI.call("contextset",null)}NI.setCurrentGroup(null)},$I=function setContext(en){qI(),"string"==typeof en&&(en=fN(en)),NI.setCurrentGroup(en),kI(en).parentsUntil("#svgcontent").andSelf().siblings().each((function(){var en=this.getAttribute("opacity")||1;NI.elData(this,"orig_opac",en),this.setAttribute("opacity",.33*en),this.setAttribute("style","pointer-events: none"),TI.push(this)})),NI.clearSelection(),NI.call("contextset",NI.getCurrentGroup())},WI=jQueryPluginSVG(jQuery),XI=SN,YI=BN,JI=null,ZI=function pasteElementsMethod(en,tn,nn){var rn=JSON.parse(sessionStorage.getItem(JI.getClipBoardID()));if(rn){var an=rn.length;if(an){var sn=[],cn=new YI("Paste elements"),un={};for(rn.forEach((function(en){return function checkIDs(en){en.attr&&en.attr.id&&(un[en.attr.id]=JI.getCanvas().getNextId(),en.attr.id=un[en.attr.id]),en.children&&en.children.forEach((function(en){return checkIDs(en)}))}(en)})),JI.getCanvas().runExtensions("IDsUpdated",{elems:rn,changes:un},!0).forEach((function(en){en&&"remove"in en&&en.remove.forEach((function(en){rn=rn.filter((function(tn){return tn.attr.id!==en}))}))}));an--;){var dn=rn[an];if(dn){var pn=JI.getCanvas().addSVGElementFromJson(dn);sn.push(pn),cn.addSubCommand(new XI(pn)),JI.restoreRefElems(pn)}}if(JI.getCanvas().selectOnly(sn),"in_place"!==en){var hn,gn;en?"point"===en&&(hn=tn,gn=nn):(hn=JI.getLastClickPoint("x"),gn=JI.getLastClickPoint("y"));var An=dN(sn),mn=hn-(An.x+An.width/2),vn=gn-(An.y+An.height/2),yn=[],_n=[];WI.each(sn,(function(en,tn){yn.push(mn),_n.push(vn)}));var wn=JI.getCanvas().moveSelectedElements(yn,_n,!1);wn&&cn.addSubCommand(wn)}JI.addCommandToHistory(cn),JI.getCanvas().call("changed",sn)}}},eO=EN,tO=bN,nO=null,rO=function ffClone(en){if(!QA())return en;var tn=en.cloneNode(!0);return en.before(tn),en.remove(),nO.getCanvas().selectorManager.releaseSelector(en),nO.getCanvas().setSelectedElements(0,tn),nO.getCanvas().selectorManager.requestSelector(tn).showGrips(!0),tn},iO=function changeSelectedAttributeNoUndoMethod(en,tn,nn){var rn=nO.getSelectedElements(),an=nO.getCurrentZoom();"pathedit"===nO.getCurrentMode()&&nO.getCanvas().pathActions.moveNode(en,tn);for(var sn=(nn=nn||rn).length,cn=["g","polyline","path"],un=function _loop(){var un=nn[sn];if(_N(un))return"continue";if(("x"===en||"y"===en)&&cn.includes(un.tagName)){var dn=dN([un]),pn="x"===en?tn-dn.x:0,hn="y"===en?tn-dn.y:0;return nO.getCanvas().moveSelectedElements(pn*an,hn*an,!0),"continue"}var gn="#text"===en?un.textContent:un.getAttribute(en);if(_N(gn)&&(gn=""),gn!==String(tn)){"#text"===en?(un.textContent=tn,/rotate/.test(un.getAttribute("transform"))&&(un=rO(un))):"#href"===en?eN(un,tn):tn||"number"==typeof tn?un.setAttribute(en,tn):un.removeAttribute(en),"textedit"===nO.getCurrentMode()&&"#text"!==en&&un.textContent.length&&nO.getCanvas().textActions.toSelectMode(un),QA()&&"text"===un.nodeName&&/rotate/.test(un.getAttribute("transform"))&&(String(tn).startsWith("url")||["font-size","font-family","x","y"].includes(en)&&un.textContent)&&(un=rO(un)),rn.includes(un)&&setTimeout((function(){un.parentNode&&nO.getCanvas().selectorManager.requestSelector(un).resize()}),0);var An=hN(un);if(0!==An&&"transform"!==en)for(var mn=iP(un),vn=mn.numberOfItems;vn--;){if(4===mn.getItem(vn).type){mn.removeItem(vn);var yn=rN(un),_n=uP(yn.x+yn.width/2,yn.y+yn.height/2,fP(mn).matrix),wn=_n.x,xn=_n.y,Sn=nO.getSVGRoot().createSVGTransform();Sn.setRotate(An,wn,xn),mn.insertItemBefore(Sn,vn);break}}}};sn--;)un()},oO=function changeSelectedAttributeMethod(en,tn,nn){var rn=nO.getSelectedElements();nn=nn||rn,nO.getCanvas().undoMgr.beginUndoableChange(en,nn),iO(en,tn,nn);var an=nO.getCanvas().undoMgr.finishUndoableChange();an.isEmpty()||nO.getCanvas().undoMgr.addCommandToHistory(an)},aO=BN,sO=jQueryPluginSVG(jQuery),lO=null,cO=function clearSelectionMethod(en){lO.getSelectedElements().forEach((function(en){_N(en)||lO.getCanvas().selectorManager.releaseSelector(en)})),lO.getCanvas().setEmptySelectedElements(),en||lO.getCanvas().call("selected",lO.getSelectedElements())},uO=function addToSelectionMethod(en,tn){var nn=lO.getSelectedElements();if(en.length){for(var rn=0;rn<nn.length&&!_N(nn[rn]);)++rn;for(var an=en.length;an--;){var sn=en[an];if(sn){var cn=rN(sn);if(cn&&("a"===sn.tagName&&1===sn.childNodes.length&&(sn=sn.firstChild),!nn.includes(sn))){nn[rn]=sn,rn++;var un=lO.getCanvas().selectorManager.requestSelector(sn,cn);nn.length>1&&un.showGrips(!1)}}}if(nn.length)for(lO.getCanvas().call("selected",nn),1===nn.length&&lO.getCanvas().selectorManager.requestSelector(nn[0]).showGrips(tn),nn.sort((function(en,tn){return en&&tn&&en.compareDocumentPosition?3-(6&tn.compareDocumentPosition(en)):_N(en)?1:0}));_N(nn[0]);)nn.shift(0)}},dO=function getMouseTargetMethod(en){if(_N(en))return null;var tn=en.target;if(tn.correspondingUseElement&&(tn=tn.correspondingUseElement),[Kf.MATH,Kf.HTML].includes(tn.namespaceURI)&&"svgcanvas"!==tn.id)for(;"foreignObject"!==tn.nodeName;)if(!(tn=tn.parentNode))return lO.getSVGRoot();var nn=lO.getCanvas().getCurrentDrawing().getCurrentLayer();if([lO.getSVGRoot(),lO.getDOMContainer(),lO.getSVGContent(),nn].includes(tn))return lO.getSVGRoot();if(sO(tn).closest("#selectorParentGroup").length)return lO.getCanvas().selectorManager.selectorParentGroup;for(;tn.parentNode!==(lO.getCurrentGroup()||nn);)tn=tn.parentNode;return tn},pO=function runExtensionsMethod(en,tn,nn,rn){var an=!!nn&&[];return sO.each(lO.getExtensions(),(function(sn,cn){rn&&!rn(sn)||cn&&en in cn&&("function"==typeof tn&&(tn=tn(sn)),nn?an.push(cn[en](tn)):an=cn[en](tn))})),an},hO=function getIntersectionListMethod(en){var tn=lO.getCurrentZoom();if(_N(lO.getRubberBox()))return null;var nn,rn=lO.getCurrentGroup()||lO.getCanvas().getCurrentDrawing().getCurrentLayer();if(en)(nn=lO.getSVGContent().createSVGRect()).x=en.x,nn.y=en.y,nn.width=en.width,nn.height=en.height;else{nn=lO.getRubberBox().getBBox();var an=lO.getSVGContent().createSVGRect();["x","y","width","height","top","right","bottom","left"].forEach((function(en){an[en]=nn[en]/tn})),nn=an}var sn=null;if(_N(sn)||"function"!=typeof sn.item){sn=[],lO.getCurBBoxes().length||lO.setCurBBoxes(function getVisibleElementsAndBBoxes(en){en||(en=sO(lO.getSVGContent()).children());var tn=[];return sO(en).children().each((function(en,nn){nn.getBBox&&tn.push({elem:nn,bbox:dN([nn])})})),tn.reverse()}(rn));for(var cn=lO.getCurBBoxes().length;cn--;){var un=lO.getCurBBoxes();nn.width&&(vP(nn,un[cn].bbox)&&sn.push(un[cn].elem))}}return sn},gO=function groupSvgElem(en){var tn=document.createElementNS(Kf.SVG,"g");en.replaceWith(tn),sO(tn).append(en).data("gsvg",en)[0].id=lO.getCanvas().getNextId()},fO=function prepareSvg(en){lO.getCanvas().sanitizeSvg(en.documentElement),_toConsumableArray(en.getElementsByTagNameNS(Kf.SVG,"path")).forEach((function(en){en.setAttribute("d",lO.getCanvas().pathActions.convertPath(en)),lO.getCanvas().pathActions.fixEnd(en)}))},AO=function setRotationAngle(en,tn){var nn=lO.getSelectedElements();en=Number.parseFloat(en);var rn=nn[0],an=rn.getAttribute("transform"),sn=rN(rn),cn=sn.x+sn.width/2,un=sn.y+sn.height/2,dn=iP(rn);dn.numberOfItems>0&&(4===dn.getItem(0).type&&dn.removeItem(0));if(0!==en){var pn=uP(cn,un,fP(dn).matrix),hn=lO.getSVGRoot().createSVGTransform();hn.setRotate(en,pn.x,pn.y),dn.numberOfItems?dn.insertItemBefore(hn,0):dn.appendItem(hn)}else 0===dn.numberOfItems&&rn.removeAttribute("transform");if(!tn){var gn=rn.getAttribute("transform");an?rn.setAttribute("transform",an):rn.removeAttribute("transform"),lO.getCanvas().changeSelectedAttribute("transform",gn,nn),lO.getCanvas().call("changed",nn)}lO.getCanvas().selectorManager.requestSelector(nn[0]).resize(),lO.getSelector().updateGripCursors(en)},mO=function recalculateAllSelectedDimensions(){for(var en=lO.getSelectedElements(),tn="none"===lO.getCurrentResizeMode()?"position":"size",nn=new aO(tn),rn=en.length;rn--;){var an=en[rn],sn=lO.getCanvas().recalculateDimensions(an);sn&&nn.addSubCommand(sn)}nn.isEmpty()||(lO.addCommandToHistory(nn),lO.getCanvas().call("changed",en))},vO=jQueryPluginSVG(jQuery),yO=null,_O=function(){var en,tn,nn,rn,an,sn,cn,un,dn,pn,hn=[];function setCursor(en){var cn=""===tn.value;if(vO(tn).focus(),!arguments.length)if(cn)en=0;else{if(tn.selectionEnd!==tn.selectionStart)return;en=tn.selectionEnd}var un=hn[en];cn||tn.setSelectionRange(en,en),(nn=fN("text_cursor"))||(nn=document.createElementNS(Kf.SVG,"line"),AN(nn,{id:"text_cursor",stroke:"#333","stroke-width":1}),fN("selectorParentGroup").append(nn)),an||(an=setInterval((function(){var en="none"===nn.getAttribute("display");nn.setAttribute("display",en?"inline":"none")}),600));var dn=ptToScreen(un.x,sn.y),pn=ptToScreen(un.x,sn.y+sn.height);AN(nn,{x1:dn.x,y1:dn.y,x2:pn.x,y2:pn.y,visibility:"visible",display:"inline"}),rn&&rn.setAttribute("d","")}function setSelection(en,an,cn){if(en!==an){cn||tn.setSelectionRange(en,an),(rn=fN("text_selectblock"))||(rn=document.createElementNS(Kf.SVG,"path"),AN(rn,{id:"text_selectblock",fill:"green",opacity:.5,style:"pointer-events:none"}),fN("selectorParentGroup").append(rn));var un=hn[en],dn=hn[an];nn.setAttribute("visibility","hidden");var pn=ptToScreen(un.x,sn.y),gn=ptToScreen(un.x+(dn.x-un.x),sn.y),An=ptToScreen(un.x,sn.y+sn.height),mn=ptToScreen(un.x+(dn.x-un.x),sn.y+sn.height),vn="M"+pn.x+","+pn.y+" L"+gn.x+","+gn.y+" "+mn.x+","+mn.y+" "+An.x+","+An.y+"z";AN(rn,{d:vn,display:"inline"})}else setCursor(an)}function getIndexFromPoint(tn,nn){var rn=yO.getSVGRoot().createSVGPoint();if(rn.x=tn,rn.y=nn,1===hn.length)return 0;var an=en.getCharNumAtPosition(rn);an<0?(an=hn.length-2,tn<=hn[0].x&&(an=0)):an>=hn.length-2&&(an=hn.length-2);var sn=hn[an];return tn>sn.x+sn.width/2&&an++,an}function setCursorFromPoint(en,tn){setCursor(getIndexFromPoint(en,tn))}function setEndSelectionFromPoint(en,nn,rn){var an=tn.selectionStart,sn=getIndexFromPoint(en,nn);setSelection(Math.min(an,sn),Math.max(an,sn),!rn)}function screenToPt(en,tn){var nn={x:en,y:tn},rn=yO.getCurrentZoom();if(nn.x/=rn,nn.y/=rn,cn){var an=uP(nn.x,nn.y,cn.inverse());nn.x=an.x,nn.y=an.y}return nn}function ptToScreen(en,tn){var nn={x:en,y:tn};if(cn){var rn=uP(nn.x,nn.y,cn);nn.x=rn.x,nn.y=rn.y}var an=yO.getCurrentZoom();return nn.x*=an,nn.y*=an,nn}function selectAll(tn){setSelection(0,en.textContent.length),vO(this).unbind(tn)}function selectWord(tn){if(pn&&en){var nn=yO.getCurrentZoom(),rn=uP(tn.pageX,tn.pageY,yO.getrootSctm()),an=screenToPt(rn.x*nn,rn.y*nn),sn=getIndexFromPoint(an.x,an.y),cn=en.textContent,un=cn.substr(0,sn).replace(/[a-z\d]+$/i,"").length,dn=cn.substr(sn).match(/^[a-z\d]+/i);setSelection(un,(dn?dn[0].length:0)+sn),vO(tn.target).click(selectAll),setTimeout((function(){vO(tn.target).unbind("click",selectAll)}),300)}}return{select:function select(tn,nn,rn){en=tn,yO.getCanvas().textActions.toEditMode(nn,rn)},start:function start(tn){en=tn,yO.getCanvas().textActions.toEditMode()},mouseDown:function mouseDown(en,nn,rn,an){var sn=screenToPt(rn,an);tn.focus(),setCursorFromPoint(sn.x,sn.y),un=rn,dn=an},mouseMove:function mouseMove(en,tn){var nn=screenToPt(en,tn);setEndSelectionFromPoint(nn.x,nn.y)},mouseUp:function mouseUp(tn,nn,rn){var an=screenToPt(nn,rn);setEndSelectionFromPoint(an.x,an.y,!0),tn.target!==en&&nn<un+2&&nn>un-2&&rn<dn+2&&rn>dn-2&&yO.getCanvas().textActions.toSelectMode(!0)},setCursor:setCursor,toEditMode:function toEditMode(tn,nn){if(pn=!1,yO.setCurrentMode("textedit"),yO.getCanvas().selectorManager.requestSelector(en).showGrips(!1),yO.getCanvas().selectorManager.requestSelector(en),yO.getCanvas().textActions.init(),vO(en).css("cursor","text"),arguments.length){var rn=screenToPt(tn,nn);setCursorFromPoint(rn.x,rn.y)}else setCursor();setTimeout((function(){pn=!0}),300)},toSelectMode:function toSelectMode(sn){yO.setCurrentMode("select"),clearInterval(an),an=null,rn&&vO(rn).attr("display","none"),nn&&vO(nn).attr("visibility","hidden"),vO(en).css("cursor","move"),sn&&(yO.getCanvas().clearSelection(),vO(en).css("cursor","move"),yO.call("selected",[en]),yO.getCanvas().addToSelection([en],!0)),en&&!en.textContent.length&&yO.getCanvas().deleteSelectedElements(),vO(tn).blur(),en=!1},setInputElem:function setInputElem(en){tn=en},clear:function clear(){"textedit"===yO.getCurrentMode()&&yO.getCanvas().textActions.toSelectMode()},init:function init(nn){if(en){var rn,an;if(!en.parentNode){var un=yO.getSelectedElements();en=un[0],yO.getCanvas().selectorManager.requestSelector(en).showGrips(!1)}var dn=en.textContent.length,pn=en.getAttribute("transform");for(sn=rN(en),cn=pn?AP(en):null,(hn=[]).length=dn,tn.focus(),vO(en).unbind("dblclick",selectWord).dblclick(selectWord),dn||(an={x:sn.x+sn.width/2,width:0}),rn=0;rn<dn;rn++){var gn=en.getStartPositionOfChar(rn);if(an=en.getEndPositionOfChar(rn),!VA()){var An=yO.getCurrentZoom(),mn=yO.getCanvas().contentW*An;gn.x-=mn,an.x-=mn,gn.x/=An,an.x/=An}hn[rn]={x:gn.x,y:sn.y,width:an.x-gn.x,height:sn.height}}hn.push({x:an.x,width:0}),setSelection(tn.selectionStart,tn.selectionEnd,!0)}}}}(),bO=SN,wO=jQueryPluginSVG(jQuery),xO=null,SO=function getBsplinePoint(en){var tn={x:0,y:0},nn=xO.getControllPoint2("x"),rn=xO.getControllPoint2("y"),an=xO.getControllPoint1("x"),sn=xO.getControllPoint1("y"),cn=xO.getStart("x"),un=xO.getStart("y"),dn=xO.getEnd("x"),pn=xO.getEnd("y"),hn=1/6,gn=en*en,An=gn*en,mn=[[-1,3,-3,1],[3,-6,3,0],[-3,0,3,0],[1,4,1,0]];return tn.x=hn*((nn*mn[0][0]+an*mn[0][1]+cn*mn[0][2]+dn*mn[0][3])*An+(nn*mn[1][0]+an*mn[1][1]+cn*mn[1][2]+dn*mn[1][3])*gn+(nn*mn[2][0]+an*mn[2][1]+cn*mn[2][2]+dn*mn[2][3])*en+(nn*mn[3][0]+an*mn[3][1]+cn*mn[3][2]+dn*mn[3][3])),tn.y=hn*((rn*mn[0][0]+sn*mn[0][1]+un*mn[0][2]+pn*mn[0][3])*An+(rn*mn[1][0]+sn*mn[1][1]+un*mn[1][2]+pn*mn[1][3])*gn+(rn*mn[2][0]+sn*mn[2][1]+un*mn[2][2]+pn*mn[2][3])*en+(rn*mn[3][0]+sn*mn[3][1]+un*mn[3][2]+pn*mn[3][3])),{x:tn.x,y:tn.y}},CO=function mouseMoveEvent(en){var tn=xO.getSelectedElements(),nn=xO.getCurrentZoom();if(xO.getStarted()&&1!==en.button&&!xO.getCanvas().spaceKey){var rn,an,sn,cn,un,dn,pn,hn,gn,An,mn=tn[0],vn=uP(en.pageX,en.pageY,xO.getrootSctm()),yn=vn.x*nn,_n=vn.y*nn,wn=fN(xO.getId()),xn=yn/nn,Sn=xn,Cn=_n/nn,kn=Cn;switch(xO.getCurConfig().gridSnapping&&(Sn=vN(Sn),kn=vN(kn)),en.preventDefault(),xO.getCurrentMode()){case"select":if(null!==tn[0]&&(un=Sn-xO.getStartX(),dn=kn-xO.getStartY(),xO.getCurConfig().gridSnapping&&(un=vN(un),dn=vN(dn)),0!==un||0!==dn)){for(pn=tn.length,rn=0;rn<pn&&(mn=tn[rn],!_N(mn));++rn){var Bn=xO.getSVGRoot().createSVGTransform();An=iP(mn),Bn.setTranslate(un,dn),An.numberOfItems?An.replaceItem(Bn,0):An.appendItem(Bn),xO.getCanvas().selectorManager.requestSelector(mn).resize()}xO.getCanvas().call("transition",tn)}break;case"multiselect":xn*=nn,Cn*=nn,AN(xO.getRubberBox(),{x:Math.min(xO.getRStartX(),xn),y:Math.min(xO.getRStartY(),Cn),width:Math.abs(xn-xO.getRStartX()),height:Math.abs(Cn-xO.getRStartY())});var En=tn.slice(),Pn=[],Ln=xO.getIntersectionList();for(pn=Ln.length,rn=0;rn<pn;++rn){var Tn=Ln[rn];tn.includes(Tn)||Pn.push(Tn);var Nn=En.indexOf(Tn);-1!==Nn&&En.splice(Nn,1)}En.length>0&&xO.getCanvas().removeFromSelection(En),Pn.length>0&&xO.getCanvas().addToSelection(Pn);break;case"resize":An=iP(mn);var In=hP(An),On=(gn=In?xO.getInitBbox():rN(mn)).x,Fn=gn.y,Un=gn,Mn=Un.width,Rn=Un.height;if(un=Sn-xO.getStartX(),dn=kn-xO.getStartY(),xO.getCurConfig().gridSnapping&&(un=vN(un),dn=vN(dn),Rn=vN(Rn),Mn=vN(Mn)),hn=hN(mn)){var Dn=Math.sqrt(un*un+dn*dn),jn=Math.atan2(dn,un)-hn*Math.PI/180;un=Dn*Math.cos(jn),dn=Dn*Math.sin(jn)}xO.getCurrentResizeMode().includes("n")||xO.getCurrentResizeMode().includes("s")||(dn=0),xO.getCurrentResizeMode().includes("e")||xO.getCurrentResizeMode().includes("w")||(un=0);var Qn=0,Hn=0,Gn=Rn?(Rn+dn)/Rn:1,Vn=Mn?(Mn+un)/Mn:1;xO.getCurrentResizeMode().includes("n")&&(Gn=Rn?(Rn-dn)/Rn:1,Hn=Rn),xO.getCurrentResizeMode().includes("w")&&(Vn=Mn?(Mn-un)/Mn:1,Qn=Mn);var zn=xO.getSVGRoot().createSVGTransform(),Kn=xO.getSVGRoot().createSVGTransform(),qn=xO.getSVGRoot().createSVGTransform();if(xO.getCurConfig().gridSnapping&&(On=vN(On),Qn=vN(Qn),Fn=vN(Fn),Hn=vN(Hn)),zn.setTranslate(-(On+Qn),-(Fn+Hn)),en.shiftKey&&(1===Vn?Vn=Gn:Gn=Vn),Kn.setScale(Vn,Gn),qn.setTranslate(On+Qn,Fn+Hn),In){var $n=hn?1:0;An.replaceItem(zn,2+$n),An.replaceItem(Kn,1+$n),An.replaceItem(qn,Number($n))}else{var Wn=An.numberOfItems;An.replaceItem(qn,Wn-3),An.replaceItem(Kn,Wn-2),An.replaceItem(zn,Wn-1)}xO.getCanvas().selectorManager.requestSelector(mn).resize(),xO.getCanvas().call("transition",tn);break;case"zoom":xn*=nn,Cn*=nn,AN(xO.getRubberBox(),{x:Math.min(xO.getRStartX()*nn,xn),y:Math.min(xO.getRStartY()*nn,Cn),width:Math.abs(xn-xO.getRStartX()*nn),height:Math.abs(Cn-xO.getRStartY()*nn)});break;case"text":AN(wn,{x:Sn,y:kn});break;case"line":xO.getCurConfig().gridSnapping&&(Sn=vN(Sn),kn=vN(kn));var Xn=Sn,Yn=kn;en.shiftKey&&(Xn=(an=mP(xO.getStartX(),xO.getStartY(),Xn,Yn)).x,Yn=an.y),wn.setAttribute("x2",Xn),wn.setAttribute("y2",Yn);break;case"foreignObject":case"square":case"rect":case"image":var Jn,Zn,Tr="square"===xO.getCurrentMode()||en.shiftKey,Ur=Math.abs(Sn-xO.getStartX()),Rr=Math.abs(kn-xO.getStartY());Tr?(Ur=Rr=Math.max(Ur,Rr),Jn=xO.getStartX()<Sn?xO.getStartX():xO.getStartX()-Ur,Zn=xO.getStartY()<kn?xO.getStartY():xO.getStartY()-Rr):(Jn=Math.min(xO.getStartX(),Sn),Zn=Math.min(xO.getStartY(),kn)),xO.getCurConfig().gridSnapping&&(Ur=vN(Ur),Rr=vN(Rr),Jn=vN(Jn),Zn=vN(Zn)),AN(wn,{width:Ur,height:Rr,x:Jn,y:Zn});break;case"circle":var Dr=wO(wn).attr(["cx","cy"]);sn=Dr.cx,cn=Dr.cy;var Qr=Math.sqrt((Sn-sn)*(Sn-sn)+(kn-cn)*(kn-cn));xO.getCurConfig().gridSnapping&&(Qr=vN(Qr)),wn.setAttribute("r",Qr);break;case"ellipse":var Hr=wO(wn).attr(["cx","cy"]);sn=Hr.cx,cn=Hr.cy,xO.getCurConfig().gridSnapping&&(Sn=vN(Sn),sn=vN(sn),kn=vN(kn),cn=vN(cn)),wn.setAttribute("rx",Math.abs(Sn-sn));var Gr=Math.abs(en.shiftKey?Sn-sn:kn-cn);wn.setAttribute("ry",Gr);break;case"fhellipse":case"fhrect":xO.setFreehand("minx",Math.min(xn,xO.getFreehand("minx"))),xO.setFreehand("maxx",Math.max(xn,xO.getFreehand("maxx"))),xO.setFreehand("miny",Math.min(Cn,xO.getFreehand("miny"))),xO.setFreehand("maxy",Math.max(Cn,xO.getFreehand("maxy")));case"fhpath":if(xO.setEnd("x",xn),xO.setEnd("y",Cn),xO.getControllPoint2("x")&&xO.getControllPoint2("y"))for(rn=0;rn<xO.getStepCount()-1;rn++)if(xO.setParameter(rn/xO.getStepCount()),xO.setNextParameter((rn+1)/xO.getStepCount()),xO.setbSpline(SO(xO.getNextParameter())),xO.setNextPos({x:xO.getbSpline("x"),y:xO.getbSpline("y")}),xO.setbSpline(SO(xO.getParameter())),xO.setSumDistance(xO.getSumDistance()+Math.sqrt((xO.getNextPos("x")-xO.getbSpline("x"))*(xO.getNextPos("x")-xO.getbSpline("x"))+(xO.getNextPos("y")-xO.getbSpline("y"))*(xO.getNextPos("y")-xO.getbSpline("y")))),xO.getSumDistance()>xO.getThreSholdDist()){xO.setSumDistance(xO.getSumDistance()-xO.getThreSholdDist());var Vr=xO.getSVGContent().createSVGPoint();Vr.x=xO.getbSpline("x"),Vr.y=xO.getbSpline("y"),wn.points.appendItem(Vr)}xO.setControllPoint2("x",xO.getControllPoint1("x")),xO.setControllPoint2("y",xO.getControllPoint1("y")),xO.setControllPoint1("x",xO.getStart("x")),xO.setControllPoint1("y",xO.getStart("y")),xO.setStart({x:xO.getEnd("x"),y:xO.getEnd("y")});break;case"path":case"pathedit":if(Sn*=nn,kn*=nn,xO.getCurConfig().gridSnapping&&(Sn=vN(Sn),kn=vN(kn),xO.setStartX(vN(xO.getStartX())),xO.setStartY(vN(xO.getStartY()))),en.shiftKey){var zr,Kr,$r=cI;$r?(zr=$r.dragging?$r.dragging[0]:xO.getStartX(),Kr=$r.dragging?$r.dragging[1]:xO.getStartY()):(zr=xO.getStartX(),Kr=xO.getStartY());var Wr=an=mP(zr,Kr,Sn,kn);Sn=Wr.x,kn=Wr.y}xO.getRubberBox()&&"none"!==xO.getRubberBox().getAttribute("display")&&(xn*=nn,Cn*=nn,AN(xO.getRubberBox(),{x:Math.min(xO.getRStartX()*nn,xn),y:Math.min(xO.getRStartY()*nn,Cn),width:Math.abs(xn-xO.getRStartX()*nn),height:Math.abs(Cn-xO.getRStartY()*nn)})),xO.getCanvas().pathActions.mouseMove(Sn,kn);break;case"textedit":Sn*=nn,kn*=nn,xO.getCanvas().textActions.mouseMove(yn,_n);break;case"rotate":sn=(gn=rN(mn)).x+gn.width/2,cn=gn.y+gn.height/2;var Xr=AP(mn),Yr=uP(sn,cn,Xr);if(sn=Yr.x,cn=Yr.y,hn=(Math.atan2(cn-kn,sn-Sn)*(180/Math.PI)-90)%360,xO.getCurConfig().gridSnapping&&(hn=vN(hn)),en.shiftKey){hn=45*Math.round(hn/45)}xO.getCanvas().setRotationAngle(hn<-180?360+hn:hn,!0),xO.getCanvas().call("transition",tn)}xO.getCanvas().runExtensions("mouseMove",{event:en,mouse_x:yn,mouse_y:_n,selected:mn})}},kO=function mouseUpEvent(en){var tn=xO.getSelectedElements(),nn=xO.getCurrentZoom();if(2!==en.button){var rn=xO.getJustSelected();if(xO.setJustSelected(null),xO.getStarted()){var an,sn,cn=uP(en.pageX,en.pageY,xO.getrootSctm()),un=cn.x*nn,dn=cn.y*nn,pn=un/nn,hn=dn/nn,gn=fN(xO.getId()),An=!1,mn=pn,vn=hn;switch(xO.setStarted(!1),xO.getCurrentMode()){case"resize":case"multiselect":_N(xO.getRubberBox())||(xO.getRubberBox().setAttribute("display","none"),xO.setCurBBoxes([])),xO.setCurrentMode("select");case"select":if(!_N(tn[0])){if(_N(tn[1])){var yn=tn[0];switch(yn.tagName){case"g":case"use":case"image":case"foreignObject":break;default:xO.setCurProperties("fill",yn.getAttribute("fill")),xO.setCurProperties("fill_opacity",yn.getAttribute("fill-opacity")),xO.setCurProperties("stroke",yn.getAttribute("stroke")),xO.setCurProperties("stroke_opacity",yn.getAttribute("stroke-opacity")),xO.setCurProperties("stroke_width",yn.getAttribute("stroke-width")),xO.setCurProperties("stroke_dasharray",yn.getAttribute("stroke-dasharray")),xO.setCurProperties("stroke_linejoin",yn.getAttribute("stroke-linejoin")),xO.setCurProperties("stroke_linecap",yn.getAttribute("stroke-linecap"))}"text"===yn.tagName&&(xO.setCurText("font_size",yn.getAttribute("font-size")),xO.setCurText("font_family",yn.getAttribute("font-family"))),xO.getCanvas().selectorManager.requestSelector(yn).showGrips(!0)}if(xO.getCanvas().recalculateAllSelectedDimensions(),mn!==xO.getRStartX()||vn!==xO.getRStartY())for(var _n=tn.length,wn=0;wn<_n&&!_N(tn[wn]);++wn)tn[wn].firstChild||xO.getCanvas().selectorManager.requestSelector(tn[wn]).resize();else sn=en.target,"path"===tn[0].nodeName&&_N(tn[1])?xO.getCanvas().pathActions.select(tn[0]):en.shiftKey&&rn!==sn&&xO.getCanvas().removeFromSelection([sn]);if(zA()){var xn=tn[0];xn&&(xn.removeAttribute("style"),YT(xn,(function(en){en.removeAttribute("style")})))}}return;case"zoom":_N(xO.getRubberBox())||xO.getRubberBox().setAttribute("display","none");var Sn=en.shiftKey?.5:2;return void xO.getCanvas().call("zoomed",{x:Math.min(xO.getRStartX(),mn),y:Math.min(xO.getRStartY(),vn),width:Math.abs(mn-xO.getRStartX()),height:Math.abs(vn-xO.getRStartY()),factor:Sn});case"fhpath":xO.setSumDistance(0),xO.setControllPoint2("x",0),xO.setControllPoint2("y",0),xO.setControllPoint1("x",0),xO.setControllPoint1("y",0),xO.setStart({x:0,y:0}),xO.setEnd("x",0),xO.setEnd("y",0);var Cn=gn.getAttribute("points"),kn=Cn.indexOf(",");(An=kn>=0?Cn.includes(",",kn+1):Cn.includes(" ",Cn.indexOf(" ")+1))&&(gn=xO.getCanvas().pathActions.smoothPolylineIntoPath(gn));break;case"line":an=wO(gn).attr(["x1","x2","y1","y2"]),An=an.x1!==an.x2||an.y1!==an.y2;break;case"foreignObject":case"square":case"rect":case"image":an=wO(gn).attr(["width","height"]),An=an.width||an.height||"image"===xO.getCurrentMode();break;case"circle":An="0"!==gn.getAttribute("r");break;case"ellipse":an=wO(gn).attr(["rx","ry"]),An=an.rx||an.ry;break;case"fhellipse":xO.getFreehand("maxx")-xO.getFreehand("minx")>0&&xO.getFreehand("maxy")-xO.getFreehand("miny")>0&&(gn=xO.getCanvas().addSVGElementFromJson({element:"ellipse",curStyles:!0,attr:{cx:(xO.getFreehand("minx")+xO.getFreehand("maxx"))/2,cy:(xO.getFreehand("miny")+xO.getFreehand("maxy"))/2,rx:(xO.getFreehand("maxx")-xO.getFreehand("minx"))/2,ry:(xO.getFreehand("maxy")-xO.getFreehand("miny"))/2,id:xO.getId()}}),xO.getCanvas().call("changed",[gn]),An=!0);break;case"fhrect":xO.getFreehand("maxx")-xO.getFreehand("minx")>0&&xO.getFreehand("maxy")-xO.getFreehand("miny")>0&&(gn=xO.getCanvas().addSVGElementFromJson({element:"rect",curStyles:!0,attr:{x:xO.getFreehand("minx"),y:xO.getFreehand("miny"),width:xO.getFreehand("maxx")-xO.getFreehand("minx"),height:xO.getFreehand("maxy")-xO.getFreehand("miny"),id:xO.getId()}}),xO.getCanvas().call("changed",[gn]),An=!0);break;case"text":An=!0,xO.getCanvas().selectOnly([gn]),xO.getCanvas().textActions.start(gn);break;case"path":gn=null,xO.setStarted(!0);var Bn=xO.getCanvas().pathActions.mouseUp(en,gn,un,dn);gn=Bn.element,An=Bn.keep;break;case"pathedit":An=!0,gn=null,xO.getCanvas().pathActions.mouseUp(en);break;case"textedit":An=!1,gn=null,xO.getCanvas().textActions.mouseUp(en,un,dn);break;case"rotate":An=!0,gn=null,xO.setCurrentMode("select");var En=xO.getCanvas().undoMgr.finishUndoableChange();En.isEmpty()||xO.addCommandToHistory(En),xO.getCanvas().recalculateAllSelectedDimensions(),xO.getCanvas().call("changed",tn)}var Pn=xO.getCanvas().runExtensions("mouseUp",{event:en,mouse_x:un,mouse_y:dn},!0);if(wO.each(Pn,(function(en,tn){tn&&(An=tn.keep||An,gn=tn.element,xO.setStarted(tn.started||xO.getStarted()))})),An||_N(gn)){if(!_N(gn)){xO.getCanvas().addedNew=!0;var Ln,Tn=.2,Nn=xO.getCanvas().getStyle(),In=xO.getOpacAni();if(In.beginElement&&Number.parseFloat(gn.getAttribute("opacity"))!==Nn.opacity){Ln=wO(In).clone().attr({to:Nn.opacity,dur:Tn}).appendTo(gn);try{Ln[0].beginElement()}catch(en){}}else Tn=0;setTimeout((function(){Ln&&Ln.remove(),gn.setAttribute("opacity",Nn.opacity),gn.setAttribute("style","pointer-events:inherit"),mN(gn),"path"===xO.getCurrentMode()?xO.getCanvas().pathActions.toEditMode(gn):xO.getCurConfig().selectNew&&xO.getCanvas().selectOnly([gn],!0),xO.addCommandToHistory(new bO(gn)),xO.getCanvas().call("changed",[gn])}),1e3*Tn)}}else{for(xO.getCanvas().getCurrentDrawing().releaseId(xO.getId()),gn.remove(),gn=null,sn=en.target;sn&&sn.parentNode&&sn.parentNode.parentNode&&"g"===sn.parentNode.parentNode.tagName;)sn=sn.parentNode;"path"===xO.getCurrentMode()&&xO.getDrawnPath()||!sn||!sn.parentNode||"selectorParentGroup"===sn.parentNode.id||"svgcanvas"===sn.id||"svgroot"===sn.id||(xO.getCanvas().setMode("select"),xO.getCanvas().selectOnly([sn],!0))}xO.setStartTransform(null)}}},BO=function dblClickEvent(en){var tn=xO.getSelectedElements(),nn=en.target.parentNode,rn=xO.getCanvas().getMouseTarget(en),an=rn.tagName;if("text"===an&&"textedit"!==xO.getCurrentMode()){var sn=uP(en.pageX,en.pageY,xO.getrootSctm());xO.getCanvas().textActions.select(rn,sn.x,sn.y)}nn!==xO.getCurrentGroup()&&("g"!==an&&"a"!==an||!hN(rn)||(xO.getCanvas().pushGroupProperties(rn),rn=tn[0],xO.getCanvas().clearSelection(!0)),xO.getCurrentGroup()&&qI(),"g"!==nn.tagName&&"a"!==nn.tagName||nn===xO.getCanvas().getCurrentDrawing().getCurrentLayer()||rn===xO.getCanvas().selectorManager.selectorParentGroup||$I(rn))},EO=function mouseDownEvent(en){var tn=xO.getSelectedElements(),nn=xO.getCurrentZoom(),rn=xO.getCanvas().getStyle();if(!xO.getCanvas().spaceKey&&1!==en.button){var an=2===en.button;en.altKey&&xO.getCanvas().cloneSelectedElements(0,0),xO.setRootSctm(wO("#svgcontent g")[0].getScreenCTM().inverse());var sn=uP(en.pageX,en.pageY,xO.getrootSctm()),cn=sn.x*nn,un=sn.y*nn;en.preventDefault(),an&&(xO.setCurrentMode("select"),xO.setLastClickPoint(sn));var dn=cn/nn,pn=un/nn,hn=xO.getCanvas().getMouseTarget(en);"a"===hn.tagName&&1===hn.childNodes.length&&(hn=hn.firstChild);var gn=dn;xO.setStartX(dn),xO.setRStartX(dn);var An=pn;if(xO.setStartY(pn),xO.setRStartY(pn),xO.getCurConfig().gridSnapping&&(dn=vN(dn),pn=vN(pn),xO.setStartX(vN(xO.getStartX())),xO.setStartY(vN(xO.getStartY()))),hn===xO.getCanvas().selectorManager.selectorParentGroup&&!_N(tn[0])){var mn=en.target,vn=xO.elData(mn,"type");"rotate"===vn?xO.setCurrentMode("rotate"):"resize"===vn&&(xO.setCurrentMode("resize"),xO.setCurrentResizeMode(xO.elData(mn,"dir"))),hn=tn[0]}xO.setStartTransform(hn.getAttribute("transform"));var yn=iP(hn);switch(xO.getCurrentMode()){case"select":if(xO.setStarted(!0),xO.setCurrentResizeMode("none"),an&&xO.setStarted(!1),hn!==xO.getSVGRoot()){if(tn.includes(hn)||(en.shiftKey||xO.getCanvas().clearSelection(!0),xO.getCanvas().addToSelection([hn]),xO.setJustSelected(hn),xO.getCanvas().pathActions.clear()),!an){var _n,wn=_createForOfIteratorHelper(tn);try{for(wn.s();!(_n=wn.n()).done;){var xn=_n.value;if(!_N(xn)){var Sn=iP(xn);Sn.numberOfItems?Sn.insertItemBefore(xO.getSVGRoot().createSVGTransform(),0):Sn.appendItem(xO.getSVGRoot().createSVGTransform())}}}catch(en){wn.e(en)}finally{wn.f()}}}else an||(xO.getCanvas().clearSelection(),xO.setCurrentMode("multiselect"),_N(xO.getRubberBox())&&xO.setRubberBox(xO.getCanvas().selectorManager.getRubberBandBox()),xO.setRStartX(xO.getRStartX()*nn),xO.setRStartY(xO.getRStartY()*nn),AN(xO.getRubberBox(),{x:xO.getRStartX(),y:xO.getRStartY(),width:0,height:0,display:"inline"}));break;case"zoom":xO.setStarted(!0),_N(xO.getRubberBox())&&xO.setRubberBox(xO.getCanvas().selectorManager.getRubberBandBox()),AN(xO.getRubberBox(),{x:gn*nn,y:gn*nn,width:0,height:0,display:"inline"});break;case"resize":xO.setStarted(!0),xO.setStartX(dn),xO.setStartY(pn),xO.setInitBbox(rN(wO("#selectedBox0")[0]));var Cn={};wO.each(xO.getInitBbox(),(function(en,tn){Cn[en]=tn/nn})),xO.setInitBbox(Cn);var kn=hN(hn)?1:0;if(hP(yn))yn.insertItemBefore(xO.getSVGRoot().createSVGTransform(),kn),yn.insertItemBefore(xO.getSVGRoot().createSVGTransform(),kn),yn.insertItemBefore(xO.getSVGRoot().createSVGTransform(),kn);else if(yn.appendItem(xO.getSVGRoot().createSVGTransform()),yn.appendItem(xO.getSVGRoot().createSVGTransform()),yn.appendItem(xO.getSVGRoot().createSVGTransform()),zA()){var Bn,En=jA();En&&(Bn=function delayedStroke(en){var tn=en.getAttribute("stroke");en.removeAttribute("stroke"),null!==tn&&setTimeout((function(){en.setAttribute("stroke",tn)}),0)}),hn.style.vectorEffect="non-scaling-stroke",En&&Bn(hn);for(var Pn=hn.getElementsByTagName("*"),Ln=Pn.length,Tn=0;Tn<Ln;Tn++)Pn[Tn].style&&(Pn[Tn].style.vectorEffect="non-scaling-stroke",En&&Bn(Pn[Tn]))}break;case"fhellipse":case"fhrect":case"fhpath":xO.setStart({x:gn,y:An}),xO.setControllPoint1("x",0),xO.setControllPoint1("y",0),xO.setControllPoint2("x",0),xO.setControllPoint2("y",0),xO.setStarted(!0),xO.setDAttr(gn+","+An+" "),xO.getCanvas().addSVGElementFromJson({element:"polyline",curStyles:!0,attr:{points:xO.getDAttr(),id:xO.getCanvas().getNextId(),fill:"none",opacity:rn.opacity/2,"stroke-linecap":"round",style:"pointer-events:none"}}),xO.setFreehand("minx",gn),xO.setFreehand("maxx",gn),xO.setFreehand("miny",An),xO.setFreehand("maxy",An);break;case"image":xO.setStarted(!0);var Nn=xO.getCanvas().addSVGElementFromJson({element:"image",attr:{x:dn,y:pn,width:0,height:0,id:xO.getCanvas().getNextId(),opacity:rn.opacity/2,style:"pointer-events:inherit"}});eN(Nn,xO.getLastGoodImgUrl()),yN(Nn);break;case"square":case"rect":xO.setStarted(!0),xO.setStartX(dn),xO.setStartY(pn),xO.getCanvas().addSVGElementFromJson({element:"rect",curStyles:!0,attr:{x:dn,y:pn,width:0,height:0,id:xO.getCanvas().getNextId(),opacity:rn.opacity/2}});break;case"line":xO.setStarted(!0);var In=0===Number(rn.stroke_width)?1:rn.stroke_width;xO.getCanvas().addSVGElementFromJson({element:"line",curStyles:!0,attr:{x1:dn,y1:pn,x2:dn,y2:pn,id:xO.getCanvas().getNextId(),stroke:rn.stroke,"stroke-width":In,"stroke-dasharray":rn.stroke_dasharray,"stroke-linejoin":rn.stroke_linejoin,"stroke-linecap":rn.stroke_linecap,"stroke-opacity":rn.stroke_opacity,fill:"none",opacity:rn.opacity/2,style:"pointer-events:none"}});break;case"circle":xO.setStarted(!0),xO.getCanvas().addSVGElementFromJson({element:"circle",curStyles:!0,attr:{cx:dn,cy:pn,r:0,id:xO.getCanvas().getNextId(),opacity:rn.opacity/2}});break;case"ellipse":xO.setStarted(!0),xO.getCanvas().addSVGElementFromJson({element:"ellipse",curStyles:!0,attr:{cx:dn,cy:pn,rx:0,ry:0,id:xO.getCanvas().getNextId(),opacity:rn.opacity/2}});break;case"text":xO.setStarted(!0),xO.getCanvas().addSVGElementFromJson({element:"text",curStyles:!0,attr:{x:dn,y:pn,id:xO.getCanvas().getNextId(),fill:xO.getCurText("fill"),"stroke-width":xO.getCurText("stroke_width"),"font-size":xO.getCurText("font_size"),"font-family":xO.getCurText("font_family"),"text-anchor":"middle","xml:space":"preserve",opacity:rn.opacity}});break;case"path":case"pathedit":xO.setStartX(xO.getStartX()*nn),xO.setStartY(xO.getStartY()*nn),xO.getCanvas().pathActions.mouseDown(en,hn,xO.getStartX(),xO.getStartY()),xO.setStarted(!0);break;case"textedit":xO.setStartX(xO.getStartX()*nn),xO.setStartY(xO.getStartY()*nn),xO.getCanvas().textActions.mouseDown(en,hn,xO.getStartX(),xO.getStartY()),xO.setStarted(!0);break;case"rotate":xO.setStarted(!0),xO.getCanvas().undoMgr.beginUndoableChange("transform",tn)}var On=xO.getCanvas().runExtensions("mouseDown",{event:en,start_x:xO.getStartX(),start_y:xO.getStartY(),selectedElements:tn},!0);wO.each(On,(function(en,tn){tn&&tn.started&&xO.setStarted(!0)}))}},PO=function DOMMouseScrollEvent(en){var tn=xO.getCurrentZoom();if(en.shiftKey){en.preventDefault();var nn=en.originalEvent;xO.setRootSctm(wO("#svgcontent g")[0].getScreenCTM().inverse());var rn=wO("#workarea"),an=xO.getCurConfig().showRulers?16:0,sn=uP(nn.pageX,nn.pageY,xO.getrootSctm()),cn=rn.width(),un=rn.height(),dn=cn-15-an,pn=un-15-an,hn=dn*xO.getrootSctm().a,gn=pn*xO.getrootSctm().d,An=rn.offset(),mn=An.left+an,vn=An.top+an,yn=nn.wheelDelta?nn.wheelDelta:nn.detail?-nn.detail:0;if(yn){var _n,wn,xn=Math.max(3/4,Math.min(4/3,yn));xn>1?(_n=Math.ceil(dn/hn*xn*100)/100,wn=Math.ceil(pn/gn*xn*100)/100):(_n=Math.floor(dn/hn*xn*100)/100,wn=Math.floor(pn/gn*xn*100)/100);var Sn=Math.min(_n,wn);if((Sn=Math.min(10,Math.max(.01,Sn)))!==tn){xn=Sn/tn;var Cn=uP(mn,vn,xO.getrootSctm()),kn={x:(sn.x-(sn.x-Cn.x)/xn)*Sn-an+cn/2,y:(sn.y-(sn.y-Cn.y)/xn)*Sn-an+un/2};xO.getCanvas().setZoom(Sn),document.getElementById("zoom").value=(100*Sn).toFixed(1),xO.getCanvas().call("updateCanvas",{center:!1,newCtr:kn}),xO.getCanvas().call("zoomDone")}}}},LO=null,TO=null,NO=function getJsonFromSvgElements(en){if(3===en.nodeType)return en.nodeValue;for(var tn,nn={element:en.tagName,attr:{},children:[]},rn=0;tn=en.attributes[rn];rn++)nn.attr[tn.name]=tn.value;for(var an,sn=0;an=en.childNodes[sn];sn++)nn.children[sn]=getJsonFromSvgElements(an);return nn},IO=function addSVGElementsFromJson(en){if("string"==typeof en)return TO.createTextNode(en);var tn=fN(en.attr.id),nn=LO.getDrawing().getCurrentLayer();if(tn&&en.element!==tn.tagName&&(tn.remove(),tn=null),!tn){var rn=en.namespace||Kf.SVG;tn=TO.createElementNS(rn,en.element),nn&&(LO.getCurrentGroup()||nn).append(tn)}var an=LO.getCurShape();return en.curStyles&&AN(tn,{fill:an.fill,stroke:an.stroke,"stroke-width":an.stroke_width,"stroke-dasharray":an.stroke_dasharray,"stroke-linejoin":an.stroke_linejoin,"stroke-linecap":an.stroke_linecap,"stroke-opacity":an.stroke_opacity,"fill-opacity":an.fill_opacity,opacity:an.opacity/2,style:"pointer-events:inherit"}),AN(tn,en.attr),mN(tn),en.children&&en.children.forEach((function(en){tn.append(addSVGElementsFromJson(en))})),tn},OO=jQueryPluginSVG(jQuery),FO=SN,UO=CN,MO=kN,RO=BN,DO=null,jO=function getResolutionMethod(){var en=DO.getCurrentZoom();return{w:DO.getSVGContent().getAttribute("width")/en,h:DO.getSVGContent().getAttribute("height")/en,zoom:en}},QO=function getTitleMethod(en){var tn=DO.getSelectedElements();if(en=en||tn[0]){var nn,rn=_createForOfIteratorHelper((en=OO(en).data("gsvg")||OO(en).data("symbol")||en).childNodes);try{for(rn.s();!(nn=rn.n()).done;){var an=nn.value;if("title"===an.nodeName)return an.textContent}}catch(en){rn.e(en)}finally{rn.f()}return""}},HO=function setGroupTitleMethod(en){var tn=DO.getSelectedElements()[0];tn=OO(tn).data("gsvg")||tn;var nn,rn=OO(tn).children("title"),an=new RO("Set Label");if(en.length)rn.length?(nn=rn[0],an.addSubCommand(new MO(nn,{"#text":nn.textContent})),nn.textContent=en):((nn=DO.getDOMDocument().createElementNS(Kf.SVG,"title")).textContent=en,OO(tn).prepend(nn),an.addSubCommand(new FO(nn)));else{var sn=rn.nextSibling;an.addSubCommand(new UO(rn[0],sn,tn)),rn.remove()}DO.addCommandToHistory(an)},GO=function setDocumentTitleMethod(en){var tn,nn=DO.getSVGContent().childNodes,rn=!1,an="",sn=new RO("Change Image Title"),cn=_createForOfIteratorHelper(nn);try{for(cn.s();!(tn=cn.n()).done;){var un=tn.value;if("title"===un.nodeName){an=(rn=un).textContent;break}}}catch(en){cn.e(en)}finally{cn.f()}rn||(rn=DO.getDOMDocument().createElementNS(Kf.SVG,"title"),DO.getSVGContent().insertBefore(rn,DO.getSVGContent().firstChild)),en.length?rn.textContent=en:rn.remove(),sn.addSubCommand(new MO(rn,{"#text":an})),DO.addCommandToHistory(sn)},VO=function setResolutionMethod(en,tn){var nn,rn=DO.getCurrentZoom(),an=DO.getCanvas().getResolution(),sn=an.w,cn=an.h;if("fit"===en){var un=dN();if(!un)return!1;nn=new RO("Fit Canvas to Content");var dn=uN();DO.getCanvas().addToSelection(dn);var pn=[],hn=[];OO.each(dn,(function(en,tn){pn.push(-1*un.x),hn.push(-1*un.y)}));var gn=DO.getCanvas().moveSelectedElements(pn,hn,!0);nn.addSubCommand(gn),DO.getCanvas().clearSelection(),en=Math.round(un.width),tn=Math.round(un.height)}return en===sn&&tn===cn||(nn||(nn=new RO("Change Image Dimensions")),en=nA("width",en),tn=nA("height",tn),DO.getSVGContent().setAttribute("width",en),DO.getSVGContent().setAttribute("height",tn),this.contentW=en,this.contentH=tn,nn.addSubCommand(new MO(DO.getSVGContent(),{width:sn,height:cn})),DO.getSVGContent().setAttribute("viewBox",[0,0,en/rn,tn/rn].join(" ")),nn.addSubCommand(new MO(DO.getSVGContent(),{viewBox:["0 0",sn,cn].join(" ")})),DO.addCommandToHistory(nn),DO.call("changed",[DO.getSVGContent()])),!0},zO=function getEditorNSMethod(en){return en&&DO.getSVGContent().setAttribute("xmlns:se",Kf.SE),Kf.SE},KO=function setBBoxZoomMethod(en,tn,nn){var rn,an=DO.getCurrentZoom(),sn=DO.getSelectedElements(),cn=.85,un=function calcZoom(en){if(!en)return!1;var rn=Math.round(tn/en.width*100*cn)/100,an=Math.round(nn/en.height*100*cn)/100,sn=Math.min(rn,an);return DO.getCanvas().setZoom(sn),{zoom:sn,bbox:en}};if("object"===_typeof(en)){if(0===(rn=en).width||0===rn.height){var dn=rn.zoom?rn.zoom:an*rn.factor;return DO.getCanvas().setZoom(dn),{zoom:an,bbox:rn}}return un(rn)}switch(en){case"selection":if(!sn[0])return;var pn=OO.map(sn,(function(en){if(en)return en}));rn=dN(pn);break;case"canvas":var hn=DO.getCanvas().getResolution();cn=.95,rn={width:hn.w,height:hn.h,x:0,y:0};break;case"content":rn=dN();break;case"layer":rn=dN(uN(DO.getCanvas().getCurrentDrawing().getCurrentLayer()));break;default:return}return un(rn)},qO=function setZoomMethod(en){var tn=DO.getSelectedElements(),nn=DO.getCanvas().getResolution();DO.getSVGContent().setAttribute("viewBox","0 0 "+nn.w/en+" "+nn.h/en),DO.setCurrentZoom(en),OO.each(tn,(function(en,tn){tn&&DO.getCanvas().selectorManager.requestSelector(tn).resize()})),DO.getCanvas().pathActions.zoomChange(),DO.getCanvas().runExtensions("zoomChanged",en)},$O=function setColorMethod(en,tn,nn){var rn=DO.getSelectedElements();DO.setCurShape(en,tn),DO.setCurProperties(en+"_paint",{type:"solidColor"});var an=[];function addNonG(en){"g"!==en.nodeName&&an.push(en)}for(var sn=rn.length;sn--;){var cn=rn[sn];cn&&("g"===cn.tagName?YT(cn,addNonG):"fill"===en?"polyline"!==cn.tagName&&"line"!==cn.tagName&&an.push(cn):an.push(cn))}an.length>0&&(nn?DO.changeSelectedAttributeNoUndoMethod(en,tn,an):(DO.getCanvas().changeSelectedAttribute(en,tn,an),DO.call("changed",an)))},WO=function setGradientMethod(en){if(DO.getCurProperties(en+"_paint")&&"solidColor"!==DO.getCurProperties(en+"_paint").type){var tn=DO.getCanvas()[en+"Grad"],nn=XO(tn),rn=tN();nn?tn=nn:(tn=DO.getDOMDocument().importNode(tn,!0),rn.append(tn),tn.id=DO.getCanvas().getNextId()),DO.getCanvas().setColor(en,"url(#"+tn.id+")")}},XO=function findDuplicateGradient(en){for(var tn=tN(),nn=OO(tn).find("linearGradient, radialGradient"),rn=nn.length,an=["r","cx","cy","fx","fy"];rn--;){var sn=nn[rn];if("linearGradient"===en.tagName){if(en.getAttribute("x1")!==sn.getAttribute("x1")||en.getAttribute("y1")!==sn.getAttribute("y1")||en.getAttribute("x2")!==sn.getAttribute("x2")||en.getAttribute("y2")!==sn.getAttribute("y2"))continue}else if("continue"===function(){var tn=OO(en).attr(an),nn=OO(sn).attr(an),rn=!1;if(OO.each(an,(function(en,an){tn[an]!==nn[an]&&(rn=!0)})),rn)return"continue"}())continue;var cn=en.getElementsByTagNameNS(Kf.SVG,"stop"),un=sn.getElementsByTagNameNS(Kf.SVG,"stop");if(cn.length===un.length){for(var dn=cn.length;dn--;){var pn=cn[dn],hn=un[dn];if(pn.getAttribute("offset")!==hn.getAttribute("offset")||pn.getAttribute("stop-opacity")!==hn.getAttribute("stop-opacity")||pn.getAttribute("stop-color")!==hn.getAttribute("stop-color"))break}if(-1===dn)return sn}}return null},YO=function setPaintMethod(en,tn){var nn=new OO.jGraduate.Paint(tn);switch(this.setPaintOpacity(en,nn.alpha/100,!0),DO.setCurProperties(en+"_paint",nn),nn.type){case"solidColor":this.setColor(en,"none"!==nn.solidColor?"#"+nn.solidColor:"none");break;case"linearGradient":case"radialGradient":DO.setCanvas(en+"Grad",nn[nn.type]),DO.getCanvas().setGradient(en)}},JO=function setStrokeWidthMethod(en){var tn=DO.getSelectedElements();if(0===en&&["line","path"].includes(DO.getCanvas().getMode()))DO.getCanvas().setStrokeWidth(1);else{DO.setCurProperties("stroke_width",en);for(var nn=[],rn=tn.length;rn--;){var an=tn[rn];an&&("g"===an.tagName?YT(an,addNonG):nn.push(an))}nn.length>0&&(DO.getCanvas().changeSelectedAttribute("stroke-width",en,nn),DO.call("changed",tn))}function addNonG(en){"g"!==en.nodeName&&nn.push(en)}},ZO=function setStrokeAttrMethod(en,tn){var nn=DO.getSelectedElements();DO.setCurShape(en.replace("-","_"),tn);for(var rn=[],an=nn.length;an--;){var sn=nn[an];sn&&("g"===sn.tagName?YT(sn,(function(en){"g"!==en.nodeName&&rn.push(en)})):rn.push(sn))}rn.length>0&&(DO.getCanvas().changeSelectedAttribute(en,tn,rn),DO.call("changed",nn))},eF=function getBoldMethod(){var en=DO.getSelectedElements(),tn=en[0];return!(_N(tn)||"text"!==tn.tagName||!_N(en[1]))&&"bold"===tn.getAttribute("font-weight")},tF=function setBoldMethod(en){var tn=DO.getSelectedElements(),nn=tn[0];!_N(nn)&&"text"===nn.tagName&&_N(tn[1])&&DO.getCanvas().changeSelectedAttribute("font-weight",en?"bold":"normal"),tn[0].textContent||DO.getCanvas().textActions.setCursor()},nF=function getItalicMethod(){var en=DO.getSelectedElements(),tn=en[0];return!(_N(tn)||"text"!==tn.tagName||!_N(en[1]))&&"italic"===tn.getAttribute("font-style")},rF=function setItalicMethod(en){var tn=DO.getSelectedElements(),nn=tn[0];!_N(nn)&&"text"===nn.tagName&&_N(tn[1])&&DO.getCanvas().changeSelectedAttribute("font-style",en?"italic":"normal"),tn[0].textContent||DO.getCanvas().textActions.setCursor()},iF=function setTextAnchorMethod(en){var tn=DO.getSelectedElements(),nn=tn[0];!_N(nn)&&"text"===nn.tagName&&_N(tn[1])&&DO.getCanvas().changeSelectedAttribute("text-anchor",en),tn[0].textContent||DO.getCanvas().textActions.setCursor()},oF=function getFontFamilyMethod(){return DO.getCurText("font_family")},aF=function setFontFamilyMethod(en){var tn=DO.getSelectedElements();DO.setCurText("font_family",en),DO.getCanvas().changeSelectedAttribute("font-family",en),tn[0]&&!tn[0].textContent&&DO.getCanvas().textActions.setCursor()},sF=function setFontColorMethod(en){DO.setCurText("fill",en),DO.getCanvas().changeSelectedAttribute("fill",en)},lF=function getFontColorMethod(){return DO.getCurText("fill")},cF=function getFontSizeMethod(){return DO.getCurText("font_size")},uF=function setFontSizeMethod(en){var tn=DO.getSelectedElements();DO.setCurText("font_size",en),DO.getCanvas().changeSelectedAttribute("font-size",en),tn[0].textContent||DO.getCanvas().textActions.setCursor()},dF=function getTextMethod(){var en=DO.getSelectedElements()[0];return _N(en)?"":en.textContent},pF=function setTextContentMethod(en){DO.getCanvas().changeSelectedAttribute("#text",en),DO.getCanvas().textActions.init(en),DO.getCanvas().textActions.setCursor()},hF=function setImageURLMethod(en){var tn=DO.getSelectedElements()[0];if(tn){var nn=OO(tn).attr(["width","height"]),rn=!nn.width||!nn.height,an=ZT(tn);if(an!==en||rn){var sn=new RO("Change Image URL");eN(tn,en),sn.addSubCommand(new MO(tn,{"#href":an})),OO(new Image).load((function(){var en=OO(tn).attr(["width","height"]);OO(tn).attr({width:this.width,height:this.height}),DO.getCanvas().selectorManager.requestSelector(tn).resize(),sn.addSubCommand(new MO(tn,en)),DO.addCommandToHistory(sn),DO.call("changed",[tn])})).attr("src",en)}}},gF=function setLinkURLMethod(en){var tn=DO.getSelectedElements()[0];if(tn){if("a"!==tn.tagName){var nn=OO(tn).parents("a");if(!nn.length)return;tn=nn[0]}var rn=ZT(tn);if(rn!==en){var an=new RO("Change Link URL");eN(tn,en),an.addSubCommand(new MO(tn,{"#href":rn})),DO.addCommandToHistory(an)}}},fF=function setRectRadiusMethod(en){var tn=DO.getSelectedElements()[0];if(!_N(tn)&&"rect"===tn.tagName){var nn=tn.getAttribute("rx");nn!==String(en)&&(tn.setAttribute("rx",en),tn.setAttribute("ry",en),DO.addCommandToHistory(new MO(tn,{rx:nn,ry:nn},"Radius")),DO.call("changed",[tn]))}},AF=function makeHyperlinkMethod(en){DO.getCanvas().groupSelectedElements("a",en)},mF=function removeHyperlinkMethod(){DO.getCanvas().ungroupSelectedElement()},vF=function setSegTypeMethod(en){DO.getCanvas().pathActions.setSegType(en)},yF=function setBackgroundMethod(en,tn){var nn=fN("canvasBackground"),rn=OO(nn).find("rect")[0],an=fN("background_image"),sn=fN("background_pattern");if(rn.setAttribute("fill","chessboard"===en?"#fff":en),"chessboard"===en){if(!sn){sn=DO.getDOMDocument().createElementNS(Kf.SVG,"foreignObject"),DO.getCanvas().assignAttributes(sn,{id:"background_pattern",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"});var cn=document.createElement("div");DO.getCanvas().assignAttributes(cn,{style:"pointer-events:none;width:100%;height:100%;background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"}),sn.append(cn),nn.append(sn)}}else sn&&sn.remove();tn?(an||(an=DO.getDOMDocument().createElementNS(Kf.SVG,"image"),DO.getCanvas().assignAttributes(an,{id:"background_image",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"})),eN(an,tn),nn.append(an)):an&&an.remove()},_F=jQuery,bF=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"],wF=null,xF=function remapElement(en,tn,nn){for(var rn=function remap(en,tn){return uP(en,tn,nn)},an=function scalew(en){return nn.a*en},sn=function scaleh(en){return nn.d*en},cn=wF.getGridSnapping()&&"svg"===en.parentNode.parentNode.localName,un=function finishUp(){cn&&Object.entries(tn).forEach((function(en){var nn=_slicedToArray(en,2),rn=nn[0],an=nn[1];tn[rn]=vN(an)})),AN(en,tn,0,!0)},dn=rN(en),pn=0;pn<2;pn++){var hn=0===pn?"fill":"stroke",gn=en.getAttribute(hn);if(gn&&gn.startsWith("url(")&&(nn.a<0||nn.d<0)){var An=gN(gn).cloneNode(!0);if(nn.a<0){var mn=An.getAttribute("x1"),vn=An.getAttribute("x2");An.setAttribute("x1",-(mn-1)),An.setAttribute("x2",-(vn-1))}if(nn.d<0){var yn=An.getAttribute("y1"),_n=An.getAttribute("y2");An.setAttribute("y1",-(yn-1)),An.setAttribute("y2",-(_n-1))}An.id=wF.getDrawing().getNextId(),tN().append(An),en.setAttribute(hn,"url(#"+An.id+")")}}var wn=en.tagName;if("g"===wn||"text"===wn||"tspan"===wn||"use"===wn)if(1!==nn.a||0!==nn.b||0!==nn.c||1!==nn.d||0===nn.e&&0===nn.f){var xn=iP(en),Sn=wF.getSVGRoot().createSVGTransform();Sn.setMatrix(pP(fP(xn).matrix,nn)),xn.clear(),xn.appendItem(Sn)}else{var Cn=fP(en).matrix,kn=pP(Cn.inverse(),nn,Cn);tn.x=Number.parseFloat(tn.x)+kn.e,tn.y=Number.parseFloat(tn.y)+kn.f}switch(wn){case"foreignObject":case"rect":case"image":if("image"===wn&&(nn.a<0||nn.d<0)){var Bn=iP(en),En=wF.getSVGRoot().createSVGTransform();En.setMatrix(pP(fP(Bn).matrix,nn)),Bn.clear(),Bn.appendItem(En)}else{var Pn=rn(tn.x,tn.y);tn.width=an(tn.width),tn.height=sn(tn.height),tn.x=Pn.x+Math.min(0,tn.width),tn.y=Pn.y+Math.min(0,tn.height),tn.width=Math.abs(tn.width),tn.height=Math.abs(tn.height)}un();break;case"ellipse":var Ln=rn(tn.cx,tn.cy);tn.cx=Ln.x,tn.cy=Ln.y,tn.rx=an(tn.rx),tn.ry=sn(tn.ry),tn.rx=Math.abs(tn.rx),tn.ry=Math.abs(tn.ry),un();break;case"circle":var Tn=rn(tn.cx,tn.cy);tn.cx=Tn.x,tn.cy=Tn.y;var Nn=gP(dn.x,dn.y,dn.width,dn.height,nn),In=Nn.tr.x-Nn.tl.x,On=Nn.bl.y-Nn.tl.y;tn.r=Math.min(In/2,On/2),tn.r&&(tn.r=Math.abs(tn.r)),un();break;case"line":var Fn=rn(tn.x1,tn.y1),Un=rn(tn.x2,tn.y2);tn.x1=Fn.x,tn.y1=Fn.y,tn.x2=Un.x,tn.y2=Un.y;case"text":case"tspan":case"use":un();break;case"g":var Mn=_F(en).data("gsvg");Mn&&AN(Mn,tn,0,!0);break;case"polyline":case"polygon":for(var Rn=tn.points.length,Dn=0;Dn<Rn;++Dn){var jn=tn.points[Dn],Qn=rn(jn.x,jn.y),Hn=Qn.x,Gn=Qn.y;tn.points[Dn].x=Hn,tn.points[Dn].y=Gn}for(var Vn="",zn=0;zn<Rn;++zn){var Kn=tn.points[zn];Vn+=Kn.x+","+Kn.y+" "}en.setAttribute("points",Vn);break;case"path":var qn=en.pathSegList,$n=qn.numberOfItems;tn.d=[];for(var Wn=0;Wn<$n;++Wn){var Xn=qn.getItem(Wn);tn.d[Wn]={type:Xn.pathSegType,x:Xn.x,y:Xn.y,x1:Xn.x1,y1:Xn.y1,x2:Xn.x2,y2:Xn.y2,r1:Xn.r1,r2:Xn.r2,angle:Xn.angle,largeArcFlag:Xn.largeArcFlag,sweepFlag:Xn.sweepFlag}}$n=tn.d.length;var Yn=tn.d[0],Jn=rn(Yn.x,Yn.y);tn.d[0].x=Jn.x,tn.d[0].y=Jn.y;for(var Zn=1;Zn<$n;++Zn){var Tr=tn.d[Zn];if(Tr.type%2==0){var Ur=rn(void 0!==Tr.x?Tr.x:Jn.x,void 0!==Tr.y?Tr.y:Jn.y),Rr=rn(Tr.x1,Tr.y1),Dr=rn(Tr.x2,Tr.y2);Tr.x=Ur.x,Tr.y=Ur.y,Tr.x1=Rr.x,Tr.y1=Rr.y,Tr.x2=Dr.x,Tr.y2=Dr.y,Tr.r1=an(Tr.r1),Tr.r2=sn(Tr.r2)}else Tr.x=an(Tr.x),Tr.y=sn(Tr.y),Tr.x1=an(Tr.x1),Tr.y1=sn(Tr.y1),Tr.x2=an(Tr.x2),Tr.y2=sn(Tr.y2),Tr.r1=an(Tr.r1),Tr.r2=sn(Tr.r2)}var Qr="";$n=tn.d.length;for(var Hr=0;Hr<$n;++Hr){var Gr=tn.d[Hr],Vr=Gr.type;switch(Qr+=bF[Vr],Vr){case 13:case 12:Qr+=Gr.x+" ";break;case 15:case 14:Qr+=Gr.y+" ";break;case 3:case 5:case 19:case 2:case 4:case 18:Qr+=Gr.x+","+Gr.y+" ";break;case 7:case 6:Qr+=Gr.x1+","+Gr.y1+" "+Gr.x2+","+Gr.y2+" "+Gr.x+","+Gr.y+" ";break;case 9:case 8:Qr+=Gr.x1+","+Gr.y1+" "+Gr.x+","+Gr.y+" ";break;case 11:case 10:Qr+=Gr.r1+","+Gr.r2+" "+Gr.angle+" "+Number(Gr.largeArcFlag)+" "+Number(Gr.sweepFlag)+" "+Gr.x+","+Gr.y+" ";break;case 17:case 16:Qr+=Gr.x2+","+Gr.y2+" "+Gr.x+","+Gr.y+" "}}en.setAttribute("d",Qr)}},SF=jQueryPluginSVG(jQuery),CF=function updateClipPath(en,tn,nn){var rn=gN(en).firstChild,an=iP(rn),sn=II.getSVGRoot().createSVGTransform();sn.setTranslate(tn,nn),an.appendItem(sn),kF(rn)},kF=function recalculateDimensions(en){if(_N(en))return null;if("svg"===en.nodeName&&navigator.userAgent.includes("Firefox/20"))return null;var tn=II.getSVGRoot(),nn=iP(en);if(nn&&nn.numberOfItems>0){for(var rn=nn.numberOfItems,an=rn;rn--;){var sn=nn.getItem(rn);if(0===sn.type)nn.removeItem(rn);else if(1===sn.type){if(dP(sn.matrix)){if(1===an)return en.removeAttribute("transform"),null;nn.removeItem(rn)}}else 4===sn.type&&0===sn.angle&&nn.removeItem(rn)}if(1===nn.numberOfItems&&hN(en))return null}if(!nn||0===nn.numberOfItems)return en.setAttribute("transform",""),en.removeAttribute("transform"),null;if(nn){for(var cn=[],un=nn.numberOfItems;un--;){var dn=nn.getItem(un);1===dn.type?cn.push([dn.matrix,un]):cn.length&&(cn=[])}if(2===cn.length){var pn=tn.createSVGTransformFromMatrix(pP(cn[1][0],cn[0][0]));nn.removeItem(cn[0][1]),nn.removeItem(cn[1][1]),nn.insertItemBefore(pn,cn[1][1])}if((un=nn.numberOfItems)>=2&&1===nn.getItem(un-2).type&&2===nn.getItem(un-1).type){var hn=tn.createSVGTransform(),gn=pP(nn.getItem(un-2).matrix,nn.getItem(un-1).matrix);hn.setMatrix(gn),nn.removeItem(un-2),nn.removeItem(un-2),nn.appendItem(hn)}}switch(en.tagName){case"line":case"polyline":case"polygon":case"path":break;default:if(1===nn.numberOfItems&&1===nn.getItem(0).type||2===nn.numberOfItems&&1===nn.getItem(0).type&&4===nn.getItem(0).type)return null}var An,mn,vn=SF(en).data("gsvg"),yn=new BN("Transform"),_n={},wn=null,xn=[];switch(en.tagName){case"line":xn=["x1","y1","x2","y2"];break;case"circle":xn=["cx","cy","r"];break;case"ellipse":xn=["cx","cy","rx","ry"];break;case"foreignObject":case"rect":case"image":xn=["width","height","x","y"];break;case"use":case"text":case"tspan":xn=["x","y"];break;case"polygon":case"polyline":(wn={}).points=en.getAttribute("points");var Sn=en.points,Cn=Sn.numberOfItems;_n.points=new Array(Cn);for(var kn=0;kn<Cn;++kn){var Bn=Sn.getItem(kn);_n.points[kn]={x:Bn.x,y:Bn.y}}break;case"path":(wn={}).d=en.getAttribute("d"),_n.d=en.getAttribute("d")}if(xn.length?(_n=SF(en).attr(xn),SF.each(_n,(function(en,tn){_n[en]=nA(en,tn)}))):vn&&(_n={x:SF(vn).attr("x")||0,y:SF(vn).attr("y")||0}),_N(wn)&&(wn=SF.extend(!0,{},_n),SF.each(wn,(function(en,tn){wn[en]=nA(en,tn)}))),wn.transform=II.getStartTransform()||"","g"===en.tagName&&!vn||"a"===en.tagName){var En=rN(en);An={x:En.x+En.width/2,y:En.y+En.height/2},mn=uP(En.x+En.width/2,En.y+En.height/2,fP(nn).matrix);var Pn=hN(en);if(Pn)for(var Ln=Pn*Math.PI/180,Tn=Math.abs(Ln)>1e-10?Math.sin(Ln)/(1-Math.cos(Ln)):2/Ln,Nn=0;Nn<nn.numberOfItems;++Nn){var In=nn.getItem(Nn);if(4===In.type){var On=In.matrix;An.y=(Tn*On.e+On.f)/2,An.x=(On.e-Tn*On.f)/2,nn.removeItem(Nn);break}}var Fn,Un,Mn=nn.numberOfItems,Rn=0,Dn=0,jn=0;if(Mn&&(Fn=nn.getItem(0).matrix),Mn>=3&&3===nn.getItem(Mn-2).type&&2===nn.getItem(Mn-3).type&&2===nn.getItem(Mn-1).type){jn=3;for(var Qn=nn.getItem(Mn-3).matrix,Hn=nn.getItem(Mn-2).matrix,Gn=nn.getItem(Mn-1).matrix,Vn=en.childNodes,zn=Vn.length;zn--;){var Kn=Vn.item(zn);if(Rn=0,Dn=0,1===Kn.nodeType){var qn=iP(Kn);if(!qn)continue;var $n=fP(qn).matrix,Wn=hN(Kn);if(Un=II.getStartTransform(),II.setStartTransform(Kn.getAttribute("transform")),Wn||hP(qn)){var Xn=tn.createSVGTransform();Xn.setMatrix(pP(Qn,Hn,Gn,$n)),qn.clear(),qn.appendItem(Xn)}else{var Yn=pP($n.inverse(),Gn,$n),Jn=tn.createSVGMatrix();Jn.e=-Yn.e,Jn.f=-Yn.f;var Zn=pP(Jn.inverse(),$n.inverse(),Qn,Hn,Gn,$n,Yn.inverse()),Tr=tn.createSVGTransform(),Ur=tn.createSVGTransform(),Rr=tn.createSVGTransform();Tr.setTranslate(Yn.e,Yn.f),Ur.setScale(Zn.a,Zn.d),Rr.setTranslate(Jn.e,Jn.f),qn.appendItem(Rr),qn.appendItem(Ur),qn.appendItem(Tr)}yn.addSubCommand(recalculateDimensions(Kn)),II.setStartTransform(Un)}}nn.removeItem(Mn-1),nn.removeItem(Mn-2),nn.removeItem(Mn-3)}else if(Mn>=3&&1===nn.getItem(Mn-1).type){jn=3;var Dr=fP(nn).matrix,Qr=tn.createSVGTransform();Qr.setMatrix(Dr),nn.clear(),nn.appendItem(Qr)}else if((1===Mn||Mn>1&&3!==nn.getItem(1).type)&&2===nn.getItem(0).type){jn=2;var Hr=fP(nn).matrix;nn.removeItem(0);var Gr=fP(nn).matrix.inverse(),Vr=pP(Gr,Hr);if(Rn=Vr.e,Dn=Vr.f,0!==Rn||0!==Dn){for(var zr=en.childNodes,Kr=zr.length,$r=[];Kr--;){var Wr=zr.item(Kr);if(1===Wr.nodeType){if(Wr.getAttribute("clip-path")){var Xr=Wr.getAttribute("clip-path");$r.includes(Xr)||(CF(Xr,Rn,Dn),$r.push(Xr))}Un=II.getStartTransform(),II.setStartTransform(Wr.getAttribute("transform"));var Yr=iP(Wr);if(Yr){var Jr=tn.createSVGTransform();Jr.setTranslate(Rn,Dn),Yr.numberOfItems?Yr.insertItemBefore(Jr,0):Yr.appendItem(Jr),yn.addSubCommand(recalculateDimensions(Wr));for(var Zr=en.getElementsByTagNameNS(Kf.SVG,"use"),ei="#"+Wr.id,ti=Zr.length;ti--;){var ni=Zr.item(ti);if(ei===ZT(ni)){var ri=tn.createSVGTransform();ri.setTranslate(-Rn,-Dn),iP(ni).insertItemBefore(ri,0),yn.addSubCommand(recalculateDimensions(ni))}}II.setStartTransform(Un)}}}II.setStartTransform(Un)}}else{if(1!==Mn||1!==nn.getItem(0).type||Pn){if(Pn){var ii=tn.createSVGTransform();ii.setRotate(Pn,mn.x,mn.y),nn.numberOfItems?nn.insertItemBefore(ii,0):nn.appendItem(ii)}return 0===nn.numberOfItems&&en.removeAttribute("transform"),null}jn=1;for(var oi=nn.getItem(0).matrix,ai=en.childNodes,si=ai.length;si--;){var li=ai.item(si);if(1===li.nodeType){Un=II.getStartTransform(),II.setStartTransform(li.getAttribute("transform"));var ui=iP(li);if(!ui)continue;var di=pP(oi,fP(ui).matrix),pi=tn.createSVGTransform();pi.setMatrix(di),ui.clear(),ui.appendItem(pi,0),yn.addSubCommand(recalculateDimensions(li)),II.setStartTransform(Un);var hi=li.getAttribute("stroke-width");if("none"!==li.getAttribute("stroke")&&!isNaN(hi)){var gi=(Math.abs(di.a)+Math.abs(di.d))/2;li.setAttribute("stroke-width",hi*gi)}}}nn.clear()}if(2===jn){if(Pn){mn={x:An.x+Fn.e,y:An.y+Fn.f};var fi=tn.createSVGTransform();fi.setRotate(Pn,mn.x,mn.y),nn.numberOfItems?nn.insertItemBefore(fi,0):nn.appendItem(fi)}}else if(3===jn){var Ai=fP(nn).matrix,mi=tn.createSVGTransform();mi.setRotate(Pn,An.x,An.y);var vi=mi.matrix,yi=tn.createSVGTransform();yi.setRotate(Pn,mn.x,mn.y);var _i=yi.matrix.inverse(),wi=Ai.inverse(),xi=pP(wi,_i,vi,Ai);if(Rn=xi.e,Dn=xi.f,0!==Rn||0!==Dn)for(var Si=en.childNodes,Ci=Si.length;Ci--;){var ki=Si.item(Ci);if(1===ki.nodeType){Un=II.getStartTransform(),II.setStartTransform(ki.getAttribute("transform"));var Bi=iP(ki),Ei=tn.createSVGTransform();Ei.setTranslate(Rn,Dn),Bi.numberOfItems?Bi.insertItemBefore(Ei,0):Bi.appendItem(Ei),yn.addSubCommand(recalculateDimensions(ki)),II.setStartTransform(Un)}}Pn&&(nn.numberOfItems?nn.insertItemBefore(yi,0):nn.appendItem(yi))}}else{var Pi,Li=rN(en);if(!Li&&"path"!==en.tagName)return null;var Ti=hN(en);if(Ti){An={x:Li.x+Li.width/2,y:Li.y+Li.height/2},mn=uP(Li.x+Li.width/2,Li.y+Li.height/2,fP(nn).matrix);for(var Ni=Ti*Math.PI/180,Ii=Math.abs(Ni)>1e-10?Math.sin(Ni)/(1-Math.cos(Ni)):2/Ni,Oi=0;Oi<nn.numberOfItems;++Oi){var Fi=nn.getItem(Oi);if(4===Fi.type){var Ui=Fi.matrix;An.y=(Ii*Ui.e+Ui.f)/2,An.x=(Ui.e-Ii*Ui.f)/2,nn.removeItem(Oi);break}}}var Mi=0,Ri=nn.numberOfItems;if(!jA()){var Di=en.getAttribute("fill");if(Di&&Di.startsWith("url(")){var ji=gN(Di),Qi="pattern";if(ji.tagName!==Qi&&(Qi="gradient"),"userSpaceOnUse"===ji.getAttribute(Qi+"Units")){Pi=fP(nn).matrix;var Hi=iP(ji),Gi=fP(Hi).matrix,Vi="matrix("+[(Pi=pP(Pi,Gi)).a,Pi.b,Pi.c,Pi.d,Pi.e,Pi.f].join(",")+")";ji.setAttribute(Qi+"Transform",Vi)}}}if(Ri>=3&&3===nn.getItem(Ri-2).type&&2===nn.getItem(Ri-3).type&&2===nn.getItem(Ri-1).type)Mi=3,Pi=fP(nn,Ri-3,Ri-1).matrix,nn.removeItem(Ri-1),nn.removeItem(Ri-2),nn.removeItem(Ri-3);else if(4===Ri&&1===nn.getItem(Ri-1).type){Mi=3,Pi=fP(nn).matrix;var zi=tn.createSVGTransform();zi.setMatrix(Pi),nn.clear(),nn.appendItem(zi),Pi=tn.createSVGMatrix()}else if((1===Ri||Ri>1&&3!==nn.getItem(1).type)&&2===nn.getItem(0).type){Mi=2;var Ki=nn.getItem(0).matrix,qi=fP(nn,1).matrix,$i=qi.inverse();Pi=pP($i,Ki,qi),nn.removeItem(0)}else{if(1!==Ri||1!==nn.getItem(0).type||Ti){if(Ti){var Wi=tn.createSVGTransform();Wi.setRotate(Ti,mn.x,mn.y),nn.numberOfItems?nn.insertItemBefore(Wi,0):nn.appendItem(Wi)}return 0===nn.numberOfItems&&en.removeAttribute("transform"),null}switch(Pi=fP(nn).matrix,en.tagName){case"line":_n=SF(en).attr(["x1","y1","x2","y2"]);case"polyline":case"polygon":if(_n.points=en.getAttribute("points"),_n.points){var Xi=en.points,Yi=Xi.numberOfItems;_n.points=new Array(Yi);for(var Ji=0;Ji<Yi;++Ji){var Zi=Xi.getItem(Ji);_n.points[Ji]={x:Zi.x,y:Zi.y}}}case"path":_n.d=en.getAttribute("d"),Mi=1,nn.clear()}}if(1!==Mi&&2!==Mi&&3!==Mi||xF(en,_n,Pi),2===Mi){if(Ti){hP(nn)||(mn={x:An.x+Pi.e,y:An.y+Pi.f});var eo=tn.createSVGTransform();eo.setRotate(Ti,mn.x,mn.y),nn.numberOfItems?nn.insertItemBefore(eo,0):nn.appendItem(eo)}if("text"===en.tagName)for(var to=en.childNodes,no=to.length;no--;){var ro=to.item(no);if("tspan"===ro.tagName){var io={x:SF(ro).attr("x")||0,y:SF(ro).attr("y")||0};xF(ro,io,Pi)}}}else if(3===Mi&&Ti){var oo=fP(nn).matrix,ao=tn.createSVGTransform();ao.setRotate(Ti,An.x,An.y);var so=ao.matrix,lo=tn.createSVGTransform();lo.setRotate(Ti,mn.x,mn.y);var co=lo.matrix.inverse(),uo=oo.inverse(),po=pP(uo,co,so,oo);xF(en,_n,po),Ti&&(nn.numberOfItems?nn.insertItemBefore(lo,0):nn.appendItem(lo))}}return 0===nn.numberOfItems&&en.removeAttribute("transform"),yn.addSubCommand(new kN(en,wn)),yn},BF=xN,EF=BN,PF=SN,LF=CN,TF=kN,NF=jQueryPluginSVG(jQuery),IF=null,OF=function moveToTopSelectedElem(){var en=_slicedToArray(IF.getSelectedElements(),1)[0];if(!_N(en)){var tn=en,nn=tn.parentNode,rn=tn.nextSibling;tn.parentNode.append(tn),rn!==tn.nextSibling&&(IF.addCommandToHistory(new BF(tn,rn,nn,"top")),IF.call("changed",[tn]))}},FF=function moveToBottomSelectedElem(){var en=_slicedToArray(IF.getSelectedElements(),1)[0];if(!_N(en)){var tn=en,nn=tn.parentNode,rn=tn.nextSibling,an=tn.parentNode.firstChild;"title"===an.tagName&&(an=an.nextSibling),"defs"===an.tagName&&(an=an.nextSibling),rn!==(tn=tn.parentNode.insertBefore(tn,an)).nextSibling&&(IF.addCommandToHistory(new BF(tn,rn,nn,"bottom")),IF.call("changed",[tn]))}},UF=function moveUpDownSelected(en){var tn=IF.getSelectedElements()[0];if(tn){var nn,rn;IF.setCurBBoxes([]);var an=NF(IF.getIntersectionList(dN([tn]))).toArray();if("Down"===en&&an.reverse(),NF.each(an,(function(){return rn?(nn=this,!1):(this===tn&&(rn=!0),!0)})),nn){var sn=tn,cn=sn.parentNode,un=sn.nextSibling;NF(nn)["Down"===en?"before":"after"](sn),un!==sn.nextSibling&&(IF.addCommandToHistory(new BF(sn,un,cn,"Move "+en)),IF.call("changed",[sn]))}}},MF=function moveSelectedElements(en,tn,nn){var rn=IF.getSelectedElements(),an=IF.getCurrentZoom();en.constructor!==Array&&(en/=an,tn/=an),nn=nn||!0;for(var sn=new EF("position"),cn=rn.length;cn--;){var un=rn[cn];if(!_N(un)){var dn=IF.getSVGRoot().createSVGTransform(),pn=iP(un);en.constructor===Array?dn.setTranslate(en[cn],tn[cn]):dn.setTranslate(en,tn),pn.numberOfItems?pn.insertItemBefore(dn,0):pn.appendItem(dn);var hn=kF(un);hn&&sn.addSubCommand(hn),IF.gettingSelectorManager().requestSelector(un).resize()}}if(!sn.isEmpty())return nn&&IF.addCommandToHistory(sn),IF.call("changed",rn),sn},RF=function cloneSelectedElements(en,tn){var nn,rn,an=IF.getSelectedElements(),sn=IF.getCurrentGroup(),cn=new EF("Clone Elements"),un=an.length;for(an.sort((function sortfunction(en,tn){return NF(tn).index()-NF(en).index()})),nn=0;nn<un&&(rn=an[nn],!_N(rn));++nn);var dn=an.slice(0,nn);this.clearSelection(!0);var pn=IF.getDrawing();for(nn=dn.length;nn--;)rn=dn[nn]=pn.copyElem(dn[nn]),(sn||pn.getCurrentLayer()).append(rn),cn.addSubCommand(new PF(rn));cn.isEmpty()||(IF.addToSelection(dn.reverse()),MF(en,tn,!1),IF.addCommandToHistory(cn))},DF=function alignSelectedElements(en,tn){var nn=IF.getSelectedElements(),rn=[],an=nn.length;if(an){for(var sn=Number.MAX_VALUE,cn=Number.MIN_VALUE,un=Number.MAX_VALUE,dn=Number.MIN_VALUE,pn=Number.MIN_VALUE,hn=Number.MIN_VALUE,gn=0;gn<an&&!_N(nn[gn]);++gn){var An=nn[gn];switch(rn[gn]=dN([An]),tn){case"smallest":(("l"===en||"c"===en||"r"===en)&&(pn===Number.MIN_VALUE||pn>rn[gn].width)||("t"===en||"m"===en||"b"===en)&&(hn===Number.MIN_VALUE||hn>rn[gn].height))&&(sn=rn[gn].x,un=rn[gn].y,cn=rn[gn].x+rn[gn].width,dn=rn[gn].y+rn[gn].height,pn=rn[gn].width,hn=rn[gn].height);break;case"largest":(("l"===en||"c"===en||"r"===en)&&(pn===Number.MIN_VALUE||pn<rn[gn].width)||("t"===en||"m"===en||"b"===en)&&(hn===Number.MIN_VALUE||hn<rn[gn].height))&&(sn=rn[gn].x,un=rn[gn].y,cn=rn[gn].x+rn[gn].width,dn=rn[gn].y+rn[gn].height,pn=rn[gn].width,hn=rn[gn].height);break;default:rn[gn].x<sn&&(sn=rn[gn].x),rn[gn].y<un&&(un=rn[gn].y),rn[gn].x+rn[gn].width>cn&&(cn=rn[gn].x+rn[gn].width),rn[gn].y+rn[gn].height>dn&&(dn=rn[gn].y+rn[gn].height)}}"page"===tn&&(sn=0,un=0,cn=IF.getContentW(),dn=IF.getContentH());for(var mn=new Array(an),vn=new Array(an),yn=0;yn<an&&!_N(nn[yn]);++yn){var _n=rn[yn];switch(mn[yn]=0,vn[yn]=0,en){case"l":mn[yn]=sn-_n.x;break;case"c":mn[yn]=(sn+cn)/2-(_n.x+_n.width/2);break;case"r":mn[yn]=cn-(_n.x+_n.width);break;case"t":vn[yn]=un-_n.y;break;case"m":vn[yn]=(un+dn)/2-(_n.y+_n.height/2);break;case"b":vn[yn]=dn-(_n.y+_n.height)}}MF(mn,vn)}},jF=function deleteSelectedElements(){for(var en=IF.getSelectedElements(),tn=new EF("Delete Elements"),nn=en.length,rn=[],an=0;an<nn;++an){var sn=en[an];if(_N(sn))break;var cn=sn.parentNode,un=sn;IF.gettingSelectorManager().releaseSelector(un),mI(un.id),"a"===cn.tagName&&1===cn.childNodes.length&&(un=cn,cn=cn.parentNode);var dn=un.nextSibling;un.remove();var pn=un;rn.push(sn),tn.addSubCommand(new LF(pn,dn,cn))}IF.getCanvas().setEmptySelectedElements(),tn.isEmpty()||IF.addCommandToHistory(tn),IF.call("changed",rn),IF.clearSelection()},QF=function copySelectedElements(){var en=IF.getSelectedElements(),tn=JSON.stringify(en.map((function(en){return IF.getJsonFromSvgElement(en)})));sessionStorage.setItem(IF.getClipboardID(),tn),IF.flashStorage(),document.getElementById("se-cmenu_canvas").setAttribute("enablemenuitems","#paste,#paste_in_place")},HF=function groupSelectedElements(en,tn){var nn=IF.getSelectedElements();en||(en="g");var rn,an="";switch(en){case"a":an="Make hyperlink",rn=tn||"";break;default:en="g",an="Group Elements"}var sn=new EF(an),cn=IF.addSVGElementFromJson({element:en,attr:{id:IF.getNextId()}});"a"===en&&eN(cn,rn),sn.addSubCommand(new PF(cn));for(var un=nn.length;un--;){var dn=nn[un];if(!_N(dn)){"a"===dn.parentNode.tagName&&1===dn.parentNode.childNodes.length&&(dn=dn.parentNode);var pn=dn.nextSibling,hn=dn.parentNode;cn.append(dn),sn.addSubCommand(new BF(dn,pn,hn))}}sn.isEmpty()||IF.addCommandToHistory(sn),IF.selectOnly([cn],!0)},GF=function pushGroupProperty(en,tn){for(var nn,rn,an,sn=en.childNodes,cn=sn.length,un=en.getAttribute("transform"),dn=iP(en),pn=fP(dn).matrix,hn=new EF("Push group properties"),gn=hN(en),An=NF(en).attr(["filter","opacity"]),mn=IF.getDrawing(),vn=0;vn<cn;vn++){var yn=sn[vn];if(1===yn.nodeType){if(null!==An.opacity&&1!==An.opacity){var _n=Math.round((yn.getAttribute("opacity")||1)*An.opacity*100)/100;IF.changeSelectedAttribute("opacity",_n,[yn])}if(An.filter){var wn=this.getBlur(yn),xn=wn;rn||(rn=this.getBlur(en)),wn?wn=Number(rn)+Number(wn):0===wn&&(wn=rn),xn?nn=gN(yn.getAttribute("filter")):nn?(nn=mn.copyElem(nn),tN().append(nn)):nn=gN(An.filter);var Sn="feGaussianBlur"===nn.firstChild.tagName?"blur":"filter";nn.id=yn.id+"_"+Sn,IF.changeSelectedAttribute("filter","url(#"+nn.id+")",[yn]),wn&&(IF.changeSelectedAttribute("stdDeviation",wn,[nn.firstChild]),IF.getCanvas().setBlurOffsets(nn,wn))}var Cn=iP(yn);if(yn.tagName.includes("Gradient")&&(Cn=null),Cn&&"defs"!==yn.tagName&&dn.numberOfItems){if(gn&&1===dn.numberOfItems){var kn=dn.getItem(0).matrix,Bn=IF.getSVGRoot().createSVGMatrix(),En=hN(yn);En&&(Bn=Cn.getItem(0).matrix);var Pn=rN(yn),Ln=fP(Cn).matrix,Tn=uP(Pn.x+Pn.width/2,Pn.y+Pn.height/2,Ln),Nn=gn+En,In=IF.getSVGRoot().createSVGTransform();In.setRotate(Nn,Tn.x,Tn.y);var On=pP(kn,Bn,In.matrix.inverse());if(En&&Cn.removeItem(0),Nn&&(Cn.numberOfItems?Cn.insertItemBefore(In,0):Cn.appendItem(In)),On.e||On.f){var Fn=IF.getSVGRoot().createSVGTransform();Fn.setTranslate(On.e,On.f),Cn.numberOfItems?Cn.insertItemBefore(Fn,0):Cn.appendItem(Fn)}}else{var Un=yn.getAttribute("transform");(an={}).transform=Un||"";var Mn=IF.getSVGRoot().createSVGTransform(),Rn=fP(Cn).matrix,Dn=Rn.inverse(),jn=pP(Dn,pn,Rn);Mn.setMatrix(jn),Cn.appendItem(Mn)}var Qn=kF(yn);Qn&&hn.addSubCommand(Qn)}}}if(un&&((an={}).transform=un,en.setAttribute("transform",""),en.removeAttribute("transform"),hn.addSubCommand(new TF(en,an))),tn&&!hn.isEmpty())return hn},VF=function convertToGroup(en){var tn=IF.getSelectedElements();en||(en=tn[0]);var nn,rn=NF(en),an=new EF;if(rn.data("gsvg")){var sn=en.firstChild,cn=NF(sn).attr(["x","y"]);NF(en.firstChild.firstChild).unwrap(),NF(en).removeData("gsvg");var un=iP(en),dn=IF.getSVGRoot().createSVGTransform();dn.setTranslate(cn.x,cn.y),un.appendItem(dn),kF(en),IF.call("selected",[en])}else if(rn.data("symbol")){en=rn.data("symbol"),nn=rn.attr("transform");var pn=rn.attr(["x","y"]),hn=en.getAttribute("viewBox");if(hn){var gn=hn.split(" ");pn.x-=Number(gn[0]),pn.y-=Number(gn[1])}nn+=" translate("+(pn.x||0)+","+(pn.y||0)+")";var An=rn.prev();an.addSubCommand(new LF(rn[0],rn[0].nextSibling,rn[0].parentNode)),rn.remove();var mn,vn=IF.getSVGContent(),yn=NF(vn).find("use:data(symbol)").length,_n=IF.getDOMDocument().createElementNS(Kf.SVG,"g"),wn=en.childNodes;for(mn=0;mn<wn.length;mn++)_n.append(wn[mn].cloneNode(!0));if(QA()){var xn=NF(tN()).children("linearGradient,radialGradient,pattern").clone();NF(_n).append(xn)}nn&&_n.setAttribute("transform",nn);var Sn=en.parentNode;if(IF.uniquifyElems(_n),QA()&&NF(tN()).append(NF(_n).find("linearGradient,radialGradient,pattern")),_n.id=IF.getNextId(),An.after(_n),Sn){if(!yn){var Cn=en.nextSibling;en.remove(),an.addSubCommand(new LF(en,Cn,Sn))}an.addSubCommand(new PF(_n))}IF.setUseData(_n),QA()?IF.convertGradients(tN()):IF.convertGradients(_n),function walkTreePost(en,tn){if(en&&1===en.nodeType){for(var nn=en.childNodes.length;nn--;)YT(en.childNodes.item(nn),tn);tn(en)}}(_n,(function(en){try{kF(en)}catch(en){console.log(en)}})),NF(_n).find(IF.getVisElems()).each((function(){this.id||(this.id=IF.getNextId())})),IF.selectOnly([_n]);var kn=GF(_n,!0);kn&&an.addSubCommand(kn),IF.addCommandToHistory(an)}else console.log("Unexpected element to ungroup:",en)},zF=function ungroupSelectedElement(){var en=IF.getSelectedElements()[0];if(en)if(NF(en).data("gsvg")||NF(en).data("symbol"))VF(en);else{if("use"===en.tagName){var tn=fN(ZT(en).substr(1));return NF(en).data("symbol",tn).data("ref",tn),void VF(en)}var nn=NF(en).parents("a");if(nn.length&&(en=nn[0]),"g"===en.tagName||"a"===en.tagName){var rn=new EF("Ungroup Elements"),an=GF(en,!0);an&&rn.addSubCommand(an);for(var sn=en.parentNode,cn=en.nextSibling,un=new Array(en.childNodes.length),dn=0;en.firstChild;){var pn=en.firstChild,hn=pn.nextSibling,gn=pn.parentNode;if("title"!==pn.tagName)cn?cn.before(pn):en.after(pn),un[dn++]=pn,rn.addSubCommand(new BF(pn,hn,gn));else{var An=pn.nextSibling;rn.addSubCommand(new LF(pn,An,gn)),pn.remove()}}IF.clearSelection();var mn=en.nextSibling;en.remove(),rn.addSubCommand(new LF(en,mn,sn)),rn.isEmpty()||IF.addCommandToHistory(rn),IF.addToSelection(un)}}},KF=function updateCanvas(en,tn){IF.getSVGRoot().setAttribute("width",en),IF.getSVGRoot().setAttribute("height",tn);var nn=IF.getCurrentZoom(),rn=NF("#canvasBackground")[0],an=IF.getSVGContent().getAttribute("x"),sn=IF.getSVGContent().getAttribute("y"),cn=(en-this.contentW*nn)/2,un=(tn-this.contentH*nn)/2;AN(IF.getSVGContent(),{width:this.contentW*nn,height:this.contentH*nn,x:cn,y:un,viewBox:"0 0 "+this.contentW+" "+this.contentH}),AN(rn,{width:IF.getSVGContent().getAttribute("width"),height:IF.getSVGContent().getAttribute("height"),x:cn,y:un});var dn=fN("background_image");return dn&&AN(dn,{width:"100%",height:"100%"}),IF.getCanvas().selectorManager.selectorParentGroup.setAttribute("transform","translate("+cn+","+un+")"),IF.getCanvas().runExtensions("canvasUpdated",{new_x:cn,new_y:un,old_x:an,old_y:sn,d_x:cn-an,d_y:un-sn}),{x:cn,y:un,old_x:an,old_y:sn,d_x:cn-an,d_y:un-sn}},qF=function cycleElement(en){var tn,nn=IF.getSelectedElements(),rn=IF.getCurrentGroup(),an=nn[0],sn=!1,cn=uN(rn||IF.getCanvas().getCurrentDrawing().getCurrentLayer());if(cn.length){if(_N(an))sn=cn[tn=en?cn.length-1:0];else for(var un=cn.length;un--;)if(cn[un]===an){(tn=en?un-1:un+1)>=cn.length?tn=0:tn<0&&(tn=cn.length-1),sn=cn[tn];break}IF.getCanvas().selectOnly([sn],!0),IF.call("selected",nn)}},$F=SN,WF=kN,XF=BN,YF=null,JF=function setBlurNoUndo(en){var tn=YF.getSelectedElements();if(YF.getFilter())if(0===en)YF.changeSelectedAttributeNoUndoMethod("filter",""),YF.setFilterHidden(!0);else{var nn=tn[0];YF.getFilterHidden()&&YF.changeSelectedAttributeNoUndoMethod("filter","url(#"+nn.id+"_blur)"),YF.isWebkit()&&(nn.removeAttribute("filter"),nn.setAttribute("filter","url(#"+nn.id+"_blur)"));var rn=YF.getFilter();YF.changeSelectedAttributeNoUndoMethod("stdDeviation",en,[rn.firstChild]),YF.getCanvas().setBlurOffsets(rn,en)}else YF.getCanvas().setBlur(en)};function finishChange(){var en=YF.getCanvas().undoMgr.finishUndoableChange();YF.getCurCommand().addSubCommand(en),YF.addCommandToHistory(YF.getCurCommand()),YF.setCurCommand(null),YF.setFilter(null)}var ZF=function setBlurOffsets(en,tn){tn>3?YF.getCanvas().assignAttributes(en,{x:"-50%",y:"-50%",width:"200%",height:"200%"},100):YF.isWebkit()||(en.removeAttribute("x"),en.removeAttribute("y"),en.removeAttribute("width"),en.removeAttribute("height"))},eU=function setBlur(en,tn){var nn=YF.getSelectedElements();if(YF.getCurCommand())finishChange();else{var rn=nn[0],an=rn.id;YF.setFilter(YF.getCanvas().getElem(an+"_blur")),en-=0;var sn=new XF;if(YF.getFilter())0===en&&YF.setFilter(null);else{var cn=YF.getCanvas().addSVGElementFromJson({element:"feGaussianBlur",attr:{in:"SourceGraphic",stdDeviation:en}});YF.setFilter(YF.getCanvas().addSVGElementFromJson({element:"filter",attr:{id:an+"_blur"}})),YF.getFilter().append(cn),YF.getCanvas().findDefs().append(YF.getFilter()),sn.addSubCommand(new $F(YF.getFilter()))}var un={filter:rn.getAttribute("filter")};if(0===en)return rn.removeAttribute("filter"),void sn.addSubCommand(new WF(rn,un));YF.changeSelectedAttributeMethod("filter","url(#"+an+"_blur)"),sn.addSubCommand(new WF(rn,un)),YF.getCanvas().setBlurOffsets(YF.getFilter(),en);var dn=YF.getFilter();YF.setCurCommand(sn),YF.getCanvas().undoMgr.beginUndoableChange("stdDeviation",[dn?dn.firstChild:null]),tn&&(YF.getCanvas().setBlurNoUndo(en),finishChange())}},tU=qf(),nU={a:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","id","mask","opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","xlink:href","xlink:title"],circle:["class","clip-path","clip-rule","cx","cy","fill","fill-opacity","fill-rule","filter","id","mask","opacity","r","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],clipPath:["class","clipPathUnits","id"],defs:[],style:["type"],desc:[],ellipse:["class","clip-path","clip-rule","cx","cy","fill","fill-opacity","fill-rule","filter","id","mask","opacity","requiredFeatures","rx","ry","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],feGaussianBlur:["class","color-interpolation-filters","id","requiredFeatures","stdDeviation"],feMorphology:["class","in","operator","radius"],filter:["class","color-interpolation-filters","filterRes","filterUnits","height","id","primitiveUnits","requiredFeatures","width","x","xlink:href","y"],foreignObject:["class","font-size","height","id","opacity","requiredFeatures","style","transform","width","x","y"],g:["class","clip-path","clip-rule","id","display","fill","fill-opacity","fill-rule","filter","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","font-family","font-size","font-style","font-weight","text-anchor"],image:["class","clip-path","clip-rule","filter","height","id","mask","opacity","requiredFeatures","style","systemLanguage","transform","width","x","xlink:href","xlink:title","y"],line:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","id","marker-end","marker-mid","marker-start","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","x1","x2","y1","y2"],linearGradient:["class","id","gradientTransform","gradientUnits","requiredFeatures","spreadMethod","systemLanguage","x1","x2","xlink:href","y1","y2"],marker:["id","class","markerHeight","markerUnits","markerWidth","orient","preserveAspectRatio","refX","refY","systemLanguage","viewBox"],mask:["class","height","id","maskContentUnits","maskUnits","width","x","y"],metadata:["class","id"],path:["class","clip-path","clip-rule","d","fill","fill-opacity","fill-rule","filter","id","marker-end","marker-mid","marker-start","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],pattern:["class","height","id","patternContentUnits","patternTransform","patternUnits","requiredFeatures","style","systemLanguage","viewBox","width","x","xlink:href","y"],polygon:["class","clip-path","clip-rule","id","fill","fill-opacity","fill-rule","filter","id","class","marker-end","marker-mid","marker-start","mask","opacity","points","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],polyline:["class","clip-path","clip-rule","id","fill","fill-opacity","fill-rule","filter","marker-end","marker-mid","marker-start","mask","opacity","points","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],radialGradient:["class","cx","cy","fx","fy","gradientTransform","gradientUnits","id","r","requiredFeatures","spreadMethod","systemLanguage","xlink:href"],rect:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","height","id","mask","opacity","requiredFeatures","rx","ry","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","width","x","y"],stop:["class","id","offset","requiredFeatures","stop-color","stop-opacity","style","systemLanguage"],svg:["class","clip-path","clip-rule","filter","id","height","mask","preserveAspectRatio","requiredFeatures","style","systemLanguage","viewBox","width","x","xmlns","xmlns:se","xmlns:xlink","y"],switch:["class","id","requiredFeatures","systemLanguage"],symbol:["class","fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","id","opacity","preserveAspectRatio","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","viewBox"],text:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","id","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","text-anchor","transform","x","xml:space","y"],textPath:["class","id","method","requiredFeatures","spacing","startOffset","style","systemLanguage","transform","xlink:href"],title:[],tspan:["class","clip-path","clip-rule","dx","dy","fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","id","mask","opacity","requiredFeatures","rotate","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","text-anchor","textLength","transform","x","xml:space","y"],use:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","height","id","mask","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","transform","width","x","xlink:href","y"],annotation:["encoding"],"annotation-xml":["encoding"],maction:["actiontype","other","selection"],math:["class","id","display","xmlns"],menclose:["notation"],merror:[],mfrac:["linethickness"],mi:["mathvariant"],mmultiscripts:[],mn:[],mo:["fence","lspace","maxsize","minsize","rspace","stretchy"],mover:[],mpadded:["lspace","width","height","depth","voffset"],mphantom:[],mprescripts:[],mroot:[],mrow:["xlink:href","xlink:type","xmlns:xlink"],mspace:["depth","height","width"],msqrt:[],mstyle:["displaystyle","mathbackground","mathcolor","mathvariant","scriptlevel"],msub:[],msubsup:[],msup:[],mtable:["align","columnalign","columnlines","columnspacing","displaystyle","equalcolumns","equalrows","frame","rowalign","rowlines","rowspacing","width"],mtd:["columnalign","columnspan","rowalign","rowspan"],mtext:[],mtr:["columnalign","rowalign"],munder:[],munderover:[],none:[],semantics:[]},rU={};Object.entries(nU).forEach((function(en){var tn=_slicedToArray(en,2),nn=tn[0],rn=tn[1],an={};Object.entries(rn).forEach((function(en){var tn=_slicedToArray(en,2);tn[0];var nn=tn[1];if(nn.includes(":")){var rn=nn.split(":");an[rn[1]]=Kf[rn[0].toUpperCase()]}else an[nn]="xmlns"===nn?Kf.XMLNS:null})),rU[nn]=an}));var iU=function sanitizeSvg(en){if(3===en.nodeType&&(en.nodeValue=en.nodeValue.replace(/^\s+|\s+$/g,""),en.nodeValue.length||en.remove()),1===en.nodeType){var tn=en.ownerDocument,nn=en.parentNode;if(tn&&nn){var rn=nU[en.nodeName],an=rU[en.nodeName];if(void 0!==rn){for(var sn=[],cn=en.attributes.length;cn--;){var un=en.attributes.item(cn),dn=un.nodeName,pn=un.localName,hn=un.namespaceURI;if({}.hasOwnProperty.call(an,pn)&&hn===an[pn]&&hn!==Kf.XMLNS||hn===Kf.XMLNS&&tU[un.value]||((dn.startsWith("se:")||dn.startsWith("data-"))&&sn.push([dn,un.value]),en.removeAttributeNS(hn,pn)),QA())switch(dn){case"transform":case"gradientTransform":case"patternTransform":var gn=un.value.replace(/(\d)-/g,"$1 -");en.setAttribute(dn,gn)}if("style"===dn){for(var An=un.value.split(";"),mn=An.length;mn--;){var vn=_slicedToArray(An[mn].split(":"),2),yn=vn[0],_n=vn[1],wn=(yn||"").trim(),xn=(_n||"").trim();rn.includes(wn)&&en.setAttribute(wn,xn)}en.removeAttribute("style")}}Object.values(sn).forEach((function(tn){var nn=_slicedToArray(tn,2),rn=nn[0],an=nn[1];en.setAttributeNS(Kf.SE,rn,an)}));var Sn=ZT(en);if(Sn&&["filter","linearGradient","pattern","radialGradient","textPath","use"].includes(en.nodeName)&&"#"!==Sn[0]&&(eN(en,""),en.removeAttributeNS(Kf.XLINK,"href")),"use"===en.nodeName&&!ZT(en))return void en.remove();for(Object.values(["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"],(function(tn){var nn=en.getAttribute(tn);nn&&(nn=JT(nn))&&"#"!==nn[0]&&(en.setAttribute(tn,""),en.removeAttribute(tn))})),cn=en.childNodes.length;cn--;)sanitizeSvg(en.childNodes.item(cn))}else{for(var Cn=[];en.hasChildNodes();)Cn.push(nn.insertBefore(en.firstChild,en));en.remove();for(var kn=Cn.length;kn--;)sanitizeSvg(Cn[kn])}}}},oU="ArrayBuffer",aU=qP.ArrayBuffer,sU=nn.ArrayBuffer;_export({global:!0,forced:sU!==aU},{ArrayBuffer:aU}),setSpecies(oU),_export({global:!0,forced:!yP},{DataView:qP.DataView});var lU=Math.floor;_export({target:"Number",stat:!0},{isInteger:function isInteger(en){return!isObject(en)&&isFinite(en)&&lU(en)===en}}),_export({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),rn&&("g"!=/./g.flags||jo.UNSUPPORTED_Y)&&wn.f(RegExp.prototype,"flags",{configurable:!0,get:regexpFlags});var cU=Lo.start,uU=stringTrimForced("trimStart"),dU=uU?function trimStart(){return cU(this)}:"".trimStart;_export({target:"String",proto:!0,forced:uU},{trimStart:dU,trimLeft:dU}),_export({target:"String",proto:!0,forced:stringHtmlForced("link")},{link:function link(en){return createHtml(this,"a","href",en)}}),bL("Float32",(function(en){return function Float32Array(tn,nn,rn){return en(this,tn,nn,rn)}})),bL("Float64",(function(en){return function Float64Array(tn,nn,rn){return en(this,tn,nn,rn)}})),bL("Int8",(function(en){return function Int8Array(tn,nn,rn){return en(this,tn,nn,rn)}})),bL("Int16",(function(en){return function Int16Array(tn,nn,rn){return en(this,tn,nn,rn)}})),bL("Int32",(function(en){return function Int32Array(tn,nn,rn){return en(this,tn,nn,rn)}})),bL("Uint8",(function(en){return function Uint8ClampedArray(tn,nn,rn){return en(this,tn,nn,rn)}}),!0),bL("Uint16",(function(en){return function Uint16Array(tn,nn,rn){return en(this,tn,nn,rn)}})),bL("Uint32",(function(en){return function Uint32Array(tn,nn,rn){return en(this,tn,nn,rn)}})),_export({target:"Array",proto:!0,forced:iT!==[].lastIndexOf},{lastIndexOf:iT});var pU=Uint8Array,hU=Uint16Array,gU=Uint32Array,fU=new pU([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),AU=new pU([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),mU=new pU([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),vU=function freb(en,tn){for(var nn=new hU(31),rn=0;rn<31;++rn)nn[rn]=tn+=1<<en[rn-1];var an=new gU(nn[30]);for(rn=1;rn<30;++rn)for(var sn=nn[rn];sn<nn[rn+1];++sn)an[sn]=sn-nn[rn]<<5|rn;return[nn,an]},yU=vU(fU,2),_U=yU[0],bU=yU[1];_U[28]=258,bU[258]=28;for(var wU=vU(AU,0),xU=wU[0],SU=wU[1],CU=new hU(32768),kU=0;kU<32768;++kU){var BU=(43690&kU)>>>1|(21845&kU)<<1;BU=(61680&(BU=(52428&BU)>>>2|(13107&BU)<<2))>>>4|(3855&BU)<<4,CU[kU]=((65280&BU)>>>8|(255&BU)<<8)>>>1}var EU=function hMap(en,tn,nn){for(var rn=en.length,an=0,sn=new hU(tn);an<rn;++an)++sn[en[an]-1];var cn,un=new hU(tn);for(an=0;an<tn;++an)un[an]=un[an-1]+sn[an-1]<<1;if(nn){cn=new hU(1<<tn);var dn=15-tn;for(an=0;an<rn;++an)if(en[an])for(var pn=an<<4|en[an],hn=tn-en[an],gn=un[en[an]-1]++<<hn,An=gn|(1<<hn)-1;gn<=An;++gn)cn[CU[gn]>>>dn]=pn}else for(cn=new hU(rn),an=0;an<rn;++an)cn[an]=CU[un[en[an]-1]++]>>>15-en[an];return cn},PU=new pU(288);for(kU=0;kU<144;++kU)PU[kU]=8;for(kU=144;kU<256;++kU)PU[kU]=9;for(kU=256;kU<280;++kU)PU[kU]=7;for(kU=280;kU<288;++kU)PU[kU]=8;var LU=new pU(32);for(kU=0;kU<32;++kU)LU[kU]=5;var TU=EU(PU,9,0),NU=EU(PU,9,1),IU=EU(LU,5,0),OU=EU(LU,5,1),FU=function max(en){for(var tn=en[0],nn=1;nn<en.length;++nn)en[nn]>tn&&(tn=en[nn]);return tn},UU=function bits(en,tn,nn){var rn=tn/8>>0;return(en[rn]|en[rn+1]<<8)>>>(7&tn)&nn},MU=function bits16(en,tn){var nn=tn/8>>0;return(en[nn]|en[nn+1]<<8|en[nn+2]<<16)>>>(7&tn)},RU=function shft(en){return(en/8>>0)+(7&en&&1)},DU=function slc(en,tn,nn){(null==tn||tn<0)&&(tn=0),(null==nn||nn>en.length)&&(nn=en.length);var rn=new(en instanceof hU?hU:en instanceof gU?gU:pU)(nn-tn);return rn.set(en.subarray(tn,nn)),rn},jU=function inflt(en,tn,nn){var rn=en.length,an=!tn||nn,sn=!nn||nn.i;nn||(nn={}),tn||(tn=new pU(3*rn));var cn=function cbuf(en){var nn=tn.length;if(en>nn){var rn=new pU(Math.max(2*nn,en));rn.set(tn),tn=rn}},un=nn.f||0,dn=nn.p||0,pn=nn.b||0,hn=nn.l,gn=nn.d,An=nn.m,mn=nn.n,vn=8*rn;do{if(!hn){nn.f=un=UU(en,dn,1);var yn=UU(en,dn+1,3);if(dn+=3,!yn){var _n=en[(Nn=RU(dn)+4)-4]|en[Nn-3]<<8,wn=Nn+_n;if(wn>rn){if(sn)throw"unexpected EOF";break}an&&cn(pn+_n),tn.set(en.subarray(Nn,wn),pn),nn.b=pn+=_n,nn.p=dn=8*wn;continue}if(1==yn)hn=NU,gn=OU,An=9,mn=5;else{if(2!=yn)throw"invalid block type";var xn=UU(en,dn,31)+257,Sn=UU(en,dn+10,15)+4,Cn=xn+UU(en,dn+5,31)+1;dn+=14;for(var kn=new pU(Cn),Bn=new pU(19),En=0;En<Sn;++En)Bn[mU[En]]=UU(en,dn+3*En,7);dn+=3*Sn;var Pn=FU(Bn),Ln=(1<<Pn)-1;if(!sn&&dn+Cn*(Pn+7)>vn)break;var Tn=EU(Bn,Pn,1);for(En=0;En<Cn;){var Nn,In=Tn[UU(en,dn,Ln)];if(dn+=15&In,(Nn=In>>>4)<16)kn[En++]=Nn;else{var On=0,Fn=0;for(16==Nn?(Fn=3+UU(en,dn,3),dn+=2,On=kn[En-1]):17==Nn?(Fn=3+UU(en,dn,7),dn+=3):18==Nn&&(Fn=11+UU(en,dn,127),dn+=7);Fn--;)kn[En++]=On}}var Un=kn.subarray(0,xn),Mn=kn.subarray(xn);An=FU(Un),mn=FU(Mn),hn=EU(Un,An,1),gn=EU(Mn,mn,1)}if(dn>vn)throw"unexpected EOF"}an&&cn(pn+131072);for(var Rn=(1<<An)-1,Dn=(1<<mn)-1,jn=An+mn+18;sn||dn+jn<vn;){var Qn=(On=hn[MU(en,dn)&Rn])>>>4;if((dn+=15&On)>vn)throw"unexpected EOF";if(!On)throw"invalid length/literal";if(Qn<256)tn[pn++]=Qn;else{if(256==Qn){hn=null;break}var Hn=Qn-254;if(Qn>264){var Gn=fU[En=Qn-257];Hn=UU(en,dn,(1<<Gn)-1)+_U[En],dn+=Gn}var Vn=gn[MU(en,dn)&Dn],zn=Vn>>>4;if(!Vn)throw"invalid distance";dn+=15&Vn;Mn=xU[zn];if(zn>3){Gn=AU[zn];Mn+=MU(en,dn)&(1<<Gn)-1,dn+=Gn}if(dn>vn)throw"unexpected EOF";an&&cn(pn+131072);for(var Kn=pn+Hn;pn<Kn;pn+=4)tn[pn]=tn[pn-Mn],tn[pn+1]=tn[pn+1-Mn],tn[pn+2]=tn[pn+2-Mn],tn[pn+3]=tn[pn+3-Mn];pn=Kn}}nn.l=hn,nn.p=dn,nn.b=pn,hn&&(un=1,nn.m=An,nn.d=gn,nn.n=mn)}while(!un);return pn==tn.length?tn:DU(tn,0,pn)},QU=function wbits(en,tn,nn){nn<<=7&tn;var rn=tn/8>>0;en[rn]|=nn,en[rn+1]|=nn>>>8},HU=function wbits16(en,tn,nn){nn<<=7&tn;var rn=tn/8>>0;en[rn]|=nn,en[rn+1]|=nn>>>8,en[rn+2]|=nn>>>16},GU=function hTree(en,tn){for(var nn=[],rn=0;rn<en.length;++rn)en[rn]&&nn.push({s:rn,f:en[rn]});var an=nn.length,sn=nn.slice();if(!an)return[new pU(0),0];if(1==an){var cn=new pU(nn[0].s+1);return cn[nn[0].s]=1,[cn,1]}nn.sort((function(en,tn){return en.f-tn.f})),nn.push({s:-1,f:25001});var un=nn[0],dn=nn[1],pn=0,hn=1,gn=2;for(nn[0]={s:-1,f:un.f+dn.f,l:un,r:dn};hn!=an-1;)un=nn[nn[pn].f<nn[gn].f?pn++:gn++],dn=nn[pn!=hn&&nn[pn].f<nn[gn].f?pn++:gn++],nn[hn++]={s:-1,f:un.f+dn.f,l:un,r:dn};var An=sn[0].s;for(rn=1;rn<an;++rn)sn[rn].s>An&&(An=sn[rn].s);var mn=new hU(An+1),vn=VU(nn[hn-1],mn,0);if(vn>tn){rn=0;var yn=0,_n=vn-tn,wn=1<<_n;for(sn.sort((function(en,tn){return mn[tn.s]-mn[en.s]||en.f-tn.f}));rn<an;++rn){var xn=sn[rn].s;if(!(mn[xn]>tn))break;yn+=wn-(1<<vn-mn[xn]),mn[xn]=tn}for(yn>>>=_n;yn>0;){var Sn=sn[rn].s;mn[Sn]<tn?yn-=1<<tn-mn[Sn]++-1:++rn}for(;rn>=0&&yn;--rn){var Cn=sn[rn].s;mn[Cn]==tn&&(--mn[Cn],++yn)}vn=tn}return[new pU(mn),vn]},VU=function ln(en,tn,nn){return-1==en.s?Math.max(ln(en.l,tn,nn+1),ln(en.r,tn,nn+1)):tn[en.s]=nn},zU=function lc(en){for(var tn=en.length;tn&&!en[--tn];);for(var nn=new hU(++tn),rn=0,an=en[0],sn=1,cn=function w(en){nn[rn++]=en},un=1;un<=tn;++un)if(en[un]==an&&un!=tn)++sn;else{if(!an&&sn>2){for(;sn>138;sn-=138)cn(32754);sn>2&&(cn(sn>10?sn-11<<5|28690:sn-3<<5|12305),sn=0)}else if(sn>3){for(cn(an),--sn;sn>6;sn-=6)cn(8304);sn>2&&(cn(sn-3<<5|8208),sn=0)}for(;sn--;)cn(an);sn=1,an=en[un]}return[nn.subarray(0,rn),tn]},KU=function clen(en,tn){for(var nn=0,rn=0;rn<tn.length;++rn)nn+=en[rn]*tn[rn];return nn},qU=function wfblk(en,tn,nn){var rn=nn.length,an=RU(tn+2);en[an]=255&rn,en[an+1]=rn>>>8,en[an+2]=255^en[an],en[an+3]=255^en[an+1];for(var sn=0;sn<rn;++sn)en[an+sn+4]=nn[sn];return 8*(an+4+rn)},$U=function wblk(en,tn,nn,rn,an,sn,cn,un,dn,pn,hn){QU(tn,hn++,nn),++an[256];for(var gn=GU(an,15),An=gn[0],mn=gn[1],vn=GU(sn,15),yn=vn[0],_n=vn[1],wn=zU(An),xn=wn[0],Sn=wn[1],Cn=zU(yn),kn=Cn[0],Bn=Cn[1],En=new hU(19),Pn=0;Pn<xn.length;++Pn)En[31&xn[Pn]]++;for(Pn=0;Pn<kn.length;++Pn)En[31&kn[Pn]]++;for(var Ln=GU(En,7),Tn=Ln[0],Nn=Ln[1],In=19;In>4&&!Tn[mU[In-1]];--In);var On,Fn,Un,Mn,Rn=pn+5<<3,Dn=KU(an,PU)+KU(sn,LU)+cn,jn=KU(an,An)+KU(sn,yn)+cn+14+3*In+KU(En,Tn)+(2*En[16]+3*En[17]+7*En[18]);if(Rn<=Dn&&Rn<=jn)return qU(tn,hn,en.subarray(dn,dn+pn));if(QU(tn,hn,1+(jn<Dn)),hn+=2,jn<Dn){On=EU(An,mn,0),Fn=An,Un=EU(yn,_n,0),Mn=yn;var Qn=EU(Tn,Nn,0);QU(tn,hn,Sn-257),QU(tn,hn+5,Bn-1),QU(tn,hn+10,In-4),hn+=14;for(Pn=0;Pn<In;++Pn)QU(tn,hn+3*Pn,Tn[mU[Pn]]);hn+=3*In;for(var Hn=[xn,kn],Gn=0;Gn<2;++Gn){var Vn=Hn[Gn];for(Pn=0;Pn<Vn.length;++Pn){var zn=31&Vn[Pn];QU(tn,hn,Qn[zn]),hn+=Tn[zn],zn>15&&(QU(tn,hn,Vn[Pn]>>>5&127),hn+=Vn[Pn]>>>12)}}}else On=TU,Fn=PU,Un=IU,Mn=LU;for(Pn=0;Pn<un;++Pn)if(rn[Pn]>255){zn=rn[Pn]>>>18&31;HU(tn,hn,On[zn+257]),hn+=Fn[zn+257],zn>7&&(QU(tn,hn,rn[Pn]>>>23&31),hn+=fU[zn]);var Kn=31&rn[Pn];HU(tn,hn,Un[Kn]),hn+=Mn[Kn],Kn>3&&(HU(tn,hn,rn[Pn]>>>5&8191),hn+=AU[Kn])}else HU(tn,hn,On[rn[Pn]]),hn+=Fn[rn[Pn]];return HU(tn,hn,On[256]),hn+Fn[256]},WU=new gU([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),XU=new pU(0),YU=function adler(){var en=1,tn=0;return{p:function p(nn){for(var rn=en,an=tn,sn=nn.length,cn=0;cn!=sn;){for(var un=Math.min(cn+5552,sn);cn<un;++cn)an+=rn+=nn[cn];rn%=65521,an%=65521}en=rn,tn=an},d:function d(){return(en>>>8<<16|(255&tn)<<8|tn>>>8)+2*((255&en)<<23)}}},JU=function dopt(en,tn,nn,rn,an){return function dflt(en,tn,nn,rn,an,sn){var cn=en.length,un=new pU(rn+cn+5*(1+Math.floor(cn/7e3))+an),dn=un.subarray(rn,un.length-an),pn=0;if(!tn||cn<8)for(var hn=0;hn<=cn;hn+=65535){var gn=hn+65535;gn<cn?pn=qU(dn,pn,en.subarray(hn,gn)):(dn[hn]=sn,pn=qU(dn,pn,en.subarray(hn,cn)))}else{for(var An=WU[tn-1],mn=An>>>13,vn=8191&An,yn=(1<<nn)-1,_n=new hU(32768),wn=new hU(yn+1),xn=Math.ceil(nn/3),Sn=2*xn,Cn=function hsh(tn){return(en[tn]^en[tn+1]<<xn^en[tn+2]<<Sn)&yn},kn=new gU(25e3),Bn=new hU(288),En=new hU(32),Pn=0,Ln=0,Tn=(hn=0,0),Nn=0,In=0;hn<cn;++hn){var On=Cn(hn),Fn=32767&hn,Un=wn[On];if(_n[Fn]=Un,wn[On]=Fn,Nn<=hn){var Mn=cn-hn;if((Pn>7e3||Tn>24576)&&Mn>423){pn=$U(en,dn,0,kn,Bn,En,Ln,Tn,In,hn-In,pn),Tn=Pn=Ln=0,In=hn;for(var Rn=0;Rn<286;++Rn)Bn[Rn]=0;for(Rn=0;Rn<30;++Rn)En[Rn]=0}var Dn=2,jn=0,Qn=vn,Hn=Fn-Un&32767;if(Mn>2&&On==Cn(hn-Hn))for(var Gn=Math.min(mn,Mn)-1,Vn=Math.min(32767,hn),zn=Math.min(258,Mn);Hn<=Vn&&--Qn&&Fn!=Un;){if(en[hn+Dn]==en[hn+Dn-Hn]){for(var Kn=0;Kn<zn&&en[hn+Kn]==en[hn+Kn-Hn];++Kn);if(Kn>Dn){if(Dn=Kn,jn=Hn,Kn>Gn)break;var qn=Math.min(Hn,Kn-2),$n=0;for(Rn=0;Rn<qn;++Rn){var Wn=hn-Hn+Rn+32768&32767,Xn=Wn-_n[Wn]+32768&32767;Xn>$n&&($n=Xn,Un=Wn)}}}Hn+=(Fn=Un)-(Un=_n[Fn])+32768&32767}if(jn){kn[Tn++]=268435456|bU[Dn]<<18|SU[jn];var Yn=31&bU[Dn],Jn=31&SU[jn];Ln+=fU[Yn]+AU[Jn],++Bn[257+Yn],++En[Jn],Nn=hn+Dn,++Pn}else kn[Tn++]=en[hn],++Bn[en[hn]]}}pn=$U(en,dn,sn,kn,Bn,En,Ln,Tn,In,hn-In,pn),sn||(pn=qU(dn,pn,XU))}return DU(un,0,rn+RU(pn)+an)}(en,null==tn.level?6:tn.level,null==tn.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(en.length)))):12+tn.mem,nn,rn,!an)},ZU=function wbytes(en,tn,nn){for(;nn;++tn)en[tn]=nn,nn>>>=8},eM=function zlh(en,tn){var nn=tn.level,rn=0==nn?0:nn<6?1:9==nn?3:2;en[0]=120,en[1]=rn<<6|(rn?32-2*rn:1)};function zlibSync(en,tn){void 0===tn&&(tn={});var nn=YU();nn.p(en);var rn=JU(en,tn,2,4);return eM(rn,tn),ZU(rn,rn.length-4,nn.d()),rn}var tM=function(){return"undefined"!=typeof window?window:void 0!==KA?KA:"undefined"!=typeof self?self:this}();function n$1(){tM.console&&"function"==typeof tM.console.log&&tM.console.log.apply(tM.console,arguments)}var nM={log:n$1,warn:function warn(en){tM.console&&("function"==typeof tM.console.warn?tM.console.warn.apply(tM.console,arguments):n$1.call(null,arguments))},error:function error(en){tM.console&&("function"==typeof tM.console.error?tM.console.error.apply(tM.console,arguments):n$1(en))}};
|
||
/**
|
||
* @license
|
||
* FileSaver.js
|
||
* A saveAs() FileSaver implementation.
|
||
*
|
||
* By Eli Grey, http://eligrey.com
|
||
*
|
||
* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
|
||
* source : http://purl.eligrey.com/github/FileSaver.js
|
||
*/function a$1(en,tn,nn){var rn=new XMLHttpRequest;rn.open("GET",en),rn.responseType="blob",rn.onload=function(){oM(rn.response,tn,nn)},rn.onerror=function(){nM.error("could not download file")},rn.send()}function o$1(en){var tn=new XMLHttpRequest;tn.open("HEAD",en,!1);try{tn.send()}catch(en){}return tn.status>=200&&tn.status<=299}function s$1(en){try{en.dispatchEvent(new MouseEvent("click"))}catch(nn){var tn=document.createEvent("MouseEvents");tn.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),en.dispatchEvent(tn)}}var rM,iM,oM=tM.saveAs||("object"!=("undefined"==typeof window?"undefined":_typeof(window))||window!==tM?function(){}:"download"in HTMLAnchorElement.prototype?function(en,tn,nn){var rn=tM.URL||tM.webkitURL,an=document.createElement("a");tn=tn||en.name||"download",an.download=tn,an.rel="noopener","string"==typeof en?(an.href=en,an.origin!==location.origin?o$1(an.href)?a$1(en,tn,nn):s$1(an,an.target="_blank"):s$1(an)):(an.href=rn.createObjectURL(en),setTimeout((function(){rn.revokeObjectURL(an.href)}),4e4),setTimeout((function(){s$1(an)}),0))}:"msSaveOrOpenBlob"in navigator?function(en,tn,nn){if(tn=tn||en.name||"download","string"==typeof en)if(o$1(en))a$1(en,tn,nn);else{var rn=document.createElement("a");rn.href=en,rn.target="_blank",setTimeout((function(){s$1(rn)}))}else navigator.msSaveOrOpenBlob(function(en,tn){return void 0===tn?tn={autoBom:!1}:"object"!=_typeof(tn)&&(nM.warn("Deprecated: Expected third argument to be a object"),tn={autoBom:!tn}),tn.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(en.type)?new Blob([String.fromCharCode(65279),en],{type:en.type}):en}(en,nn),tn)}:function(en,tn,nn,rn){if((rn=rn||open("","_blank"))&&(rn.document.title=rn.document.body.innerText="downloading..."),"string"==typeof en)return a$1(en,tn,nn);var an="application/octet-stream"===en.type,sn=/constructor/i.test(tM.HTMLElement)||tM.safari,cn=/CriOS\/[\d]+/.test(navigator.userAgent);if((cn||an&&sn)&&"object"==("undefined"==typeof FileReader?"undefined":_typeof(FileReader))){var un=new FileReader;un.onloadend=function(){var en=un.result;en=cn?en:en.replace(/^data:[^;]*;/,"data:attachment/file;"),rn?rn.location.href=en:location=en,rn=null},un.readAsDataURL(en)}else{var dn=tM.URL||tM.webkitURL,pn=dn.createObjectURL(en);rn?rn.location=pn:location.href=pn,rn=null,setTimeout((function(){dn.revokeObjectURL(pn)}),4e4)}});
|
||
/**
|
||
* A class to parse color values
|
||
* @author Stoyan Stefanov <sstoo@gmail.com>
|
||
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
||
* @license Use it if you like it
|
||
*/function h$1(en){var tn;en=en||"",this.ok=!1,"#"==en.charAt(0)&&(en=en.substr(1,6)),en={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[en=(en=en.replace(/ /g,"")).toLowerCase()]||en;for(var nn=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(en){return[parseInt(en[1]),parseInt(en[2]),parseInt(en[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(en){return[parseInt(en[1],16),parseInt(en[2],16),parseInt(en[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(en){return[parseInt(en[1]+en[1],16),parseInt(en[2]+en[2],16),parseInt(en[3]+en[3],16)]}}],rn=0;rn<nn.length;rn++){var an=nn[rn].re,sn=nn[rn].process,cn=an.exec(en);cn&&(tn=sn(cn),this.r=tn[0],this.g=tn[1],this.b=tn[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var en=this.r.toString(16),tn=this.g.toString(16),nn=this.b.toString(16);return 1==en.length&&(en="0"+en),1==tn.length&&(tn="0"+tn),1==nn.length&&(nn="0"+nn),"#"+en+tn+nn}}
|
||
/**
|
||
* @license
|
||
* Joseph Myers does not specify a particular license for his work.
|
||
*
|
||
* Author: Joseph Myers
|
||
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
||
*
|
||
* Modified by: Owen Leong
|
||
*/function f$h(en,tn){var nn=en[0],rn=en[1],an=en[2],sn=en[3];nn=p$1(nn,rn,an,sn,tn[0],7,-680876936),sn=p$1(sn,nn,rn,an,tn[1],12,-389564586),an=p$1(an,sn,nn,rn,tn[2],17,606105819),rn=p$1(rn,an,sn,nn,tn[3],22,-1044525330),nn=p$1(nn,rn,an,sn,tn[4],7,-176418897),sn=p$1(sn,nn,rn,an,tn[5],12,1200080426),an=p$1(an,sn,nn,rn,tn[6],17,-1473231341),rn=p$1(rn,an,sn,nn,tn[7],22,-45705983),nn=p$1(nn,rn,an,sn,tn[8],7,1770035416),sn=p$1(sn,nn,rn,an,tn[9],12,-1958414417),an=p$1(an,sn,nn,rn,tn[10],17,-42063),rn=p$1(rn,an,sn,nn,tn[11],22,-1990404162),nn=p$1(nn,rn,an,sn,tn[12],7,1804603682),sn=p$1(sn,nn,rn,an,tn[13],12,-40341101),an=p$1(an,sn,nn,rn,tn[14],17,-1502002290),nn=g(nn,rn=p$1(rn,an,sn,nn,tn[15],22,1236535329),an,sn,tn[1],5,-165796510),sn=g(sn,nn,rn,an,tn[6],9,-1069501632),an=g(an,sn,nn,rn,tn[11],14,643717713),rn=g(rn,an,sn,nn,tn[0],20,-373897302),nn=g(nn,rn,an,sn,tn[5],5,-701558691),sn=g(sn,nn,rn,an,tn[10],9,38016083),an=g(an,sn,nn,rn,tn[15],14,-660478335),rn=g(rn,an,sn,nn,tn[4],20,-405537848),nn=g(nn,rn,an,sn,tn[9],5,568446438),sn=g(sn,nn,rn,an,tn[14],9,-1019803690),an=g(an,sn,nn,rn,tn[3],14,-187363961),rn=g(rn,an,sn,nn,tn[8],20,1163531501),nn=g(nn,rn,an,sn,tn[13],5,-1444681467),sn=g(sn,nn,rn,an,tn[2],9,-51403784),an=g(an,sn,nn,rn,tn[7],14,1735328473),nn=m$2(nn,rn=g(rn,an,sn,nn,tn[12],20,-1926607734),an,sn,tn[5],4,-378558),sn=m$2(sn,nn,rn,an,tn[8],11,-2022574463),an=m$2(an,sn,nn,rn,tn[11],16,1839030562),rn=m$2(rn,an,sn,nn,tn[14],23,-35309556),nn=m$2(nn,rn,an,sn,tn[1],4,-1530992060),sn=m$2(sn,nn,rn,an,tn[4],11,1272893353),an=m$2(an,sn,nn,rn,tn[7],16,-155497632),rn=m$2(rn,an,sn,nn,tn[10],23,-1094730640),nn=m$2(nn,rn,an,sn,tn[13],4,681279174),sn=m$2(sn,nn,rn,an,tn[0],11,-358537222),an=m$2(an,sn,nn,rn,tn[3],16,-722521979),rn=m$2(rn,an,sn,nn,tn[6],23,76029189),nn=m$2(nn,rn,an,sn,tn[9],4,-640364487),sn=m$2(sn,nn,rn,an,tn[12],11,-421815835),an=m$2(an,sn,nn,rn,tn[15],16,530742520),nn=v$1(nn,rn=m$2(rn,an,sn,nn,tn[2],23,-995338651),an,sn,tn[0],6,-198630844),sn=v$1(sn,nn,rn,an,tn[7],10,1126891415),an=v$1(an,sn,nn,rn,tn[14],15,-1416354905),rn=v$1(rn,an,sn,nn,tn[5],21,-57434055),nn=v$1(nn,rn,an,sn,tn[12],6,1700485571),sn=v$1(sn,nn,rn,an,tn[3],10,-1894986606),an=v$1(an,sn,nn,rn,tn[10],15,-1051523),rn=v$1(rn,an,sn,nn,tn[1],21,-2054922799),nn=v$1(nn,rn,an,sn,tn[8],6,1873313359),sn=v$1(sn,nn,rn,an,tn[15],10,-30611744),an=v$1(an,sn,nn,rn,tn[6],15,-1560198380),rn=v$1(rn,an,sn,nn,tn[13],21,1309151649),nn=v$1(nn,rn,an,sn,tn[4],6,-145523070),sn=v$1(sn,nn,rn,an,tn[11],10,-1120210379),an=v$1(an,sn,nn,rn,tn[2],15,718787259),rn=v$1(rn,an,sn,nn,tn[9],21,-343485551),en[0]=x$1(nn,en[0]),en[1]=x$1(rn,en[1]),en[2]=x$1(an,en[2]),en[3]=x$1(sn,en[3])}function d(en,tn,nn,rn,an,sn){return tn=x$1(x$1(tn,en),x$1(rn,sn)),x$1(tn<<an|tn>>>32-an,nn)}function p$1(en,tn,nn,rn,an,sn,cn){return d(tn&nn|~tn&rn,en,tn,an,sn,cn)}function g(en,tn,nn,rn,an,sn,cn){return d(tn&rn|nn&~rn,en,tn,an,sn,cn)}function m$2(en,tn,nn,rn,an,sn,cn){return d(tn^nn^rn,en,tn,an,sn,cn)}function v$1(en,tn,nn,rn,an,sn,cn){return d(nn^(tn|~rn),en,tn,an,sn,cn)}function b(en){var tn,nn=en.length,rn=[1732584193,-271733879,-1732584194,271733878];for(tn=64;tn<=en.length;tn+=64)f$h(rn,y$1(en.substring(tn-64,tn)));en=en.substring(tn-64);var an=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(tn=0;tn<en.length;tn++)an[tn>>2]|=en.charCodeAt(tn)<<(tn%4<<3);if(an[tn>>2]|=128<<(tn%4<<3),tn>55)for(f$h(rn,an),tn=0;tn<16;tn++)an[tn]=0;return an[14]=8*nn,f$h(rn,an),rn}function y$1(en){var tn,nn=[];for(tn=0;tn<64;tn+=4)nn[tn>>2]=en.charCodeAt(tn)+(en.charCodeAt(tn+1)<<8)+(en.charCodeAt(tn+2)<<16)+(en.charCodeAt(tn+3)<<24);return nn}rM=tM.atob.bind(tM),iM=tM.btoa.bind(tM);var aM="0123456789abcdef".split("");function N$1(en){for(var tn="",nn=0;nn<4;nn++)tn+=aM[en>>8*nn+4&15]+aM[en>>8*nn&15];return tn}function L(en){return String.fromCharCode((255&en)>>0,(65280&en)>>8,(16711680&en)>>16,(4278190080&en)>>24)}function A(en){return b(en).map(L).join("")}function x$1(en,tn){return en+tn&4294967295}
|
||
/**
|
||
* @license
|
||
* FPDF is released under a permissive license: there is no usage restriction.
|
||
* You may embed it freely in your application (commercial or not), with or
|
||
* without modifications.
|
||
*
|
||
* Reference: http://www.fpdf.org/en/script/script37.php
|
||
*/
|
||
function S(en,tn){var nn,rn,an,sn;if(en!==nn){for(var cn=(an=en,sn=1+(256/en.length>>0),new Array(sn+1).join(an)),un=[],dn=0;dn<256;dn++)un[dn]=dn;var pn=0;for(dn=0;dn<256;dn++){var hn=un[dn];pn=(pn+hn+cn.charCodeAt(dn))%256,un[dn]=un[pn],un[pn]=hn}nn=en,rn=un}else un=rn;var gn=tn.length,An=0,mn=0,vn="";for(dn=0;dn<gn;dn++)mn=(mn+(hn=un[An=(An+1)%256]))%256,un[An]=un[mn],un[mn]=hn,cn=un[(un[An]+un[mn])%256],vn+=String.fromCharCode(tn.charCodeAt(dn)^cn);return vn}
|
||
/**
|
||
* @license
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
* Author: Owen Leong (@owenl131)
|
||
* Date: 15 Oct 2020
|
||
* References:
|
||
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
||
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
||
* http://www.fpdf.org/en/script/script37.php
|
||
*/!function(en){for(var tn=0;tn<en.length;tn++)en[tn]=N$1(en[tn]);en.join("")}(b("hello"));var sM={print:4,modify:8,copy:16,"annot-forms":32};function P(en,tn,nn,rn){this.v=1,this.r=2;var an=192;en.forEach((function(en){if(void 0!==sM.perm)throw new Error("Invalid permission: "+en);an+=sM[en]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var sn=(tn+this.padding).substr(0,32),cn=(nn+this.padding).substr(0,32);this.O=this.processOwnerPassword(sn,cn),this.P=-(1+(255^an)),this.encryptionKey=A(sn+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(rn)).substr(0,5),this.U=S(this.encryptionKey,this.padding)}function k(en){if("object"!=_typeof(en))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var tn={};this.subscribe=function(en,nn,rn){if(rn=rn||!1,"string"!=typeof en||"function"!=typeof nn||"boolean"!=typeof rn)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");tn.hasOwnProperty(en)||(tn[en]={});var an=Math.random().toString(35);return tn[en][an]=[nn,!!rn],an},this.unsubscribe=function(en){for(var nn in tn)if(tn[nn][en])return delete tn[nn][en],0===Object.keys(tn[nn]).length&&delete tn[nn],!0;return!1},this.publish=function(nn){if(tn.hasOwnProperty(nn)){var rn=Array.prototype.slice.call(arguments,1),an=[];for(var sn in tn[nn]){var cn=tn[nn][sn];try{cn[0].apply(en,rn)}catch(en){tM.console&&nM.error("jsPDF PubSub Error",en.message,en)}cn[1]&&an.push(sn)}an.length&&an.forEach(this.unsubscribe)}},this.getTopics=function(){return tn}}function I(en){if(!(this instanceof I))return new I(en);var tn="opacity,stroke-opacity".split(",");for(var nn in en)en.hasOwnProperty(nn)&&tn.indexOf(nn)>=0&&(this[nn]=en[nn]);this.id="",this.objectNumber=-1}function F(en,tn){this.gState=en,this.matrix=tn,this.id="",this.objectNumber=-1}function C(en,tn,nn,rn,an){if(!(this instanceof C))return new C(en,tn,nn,rn,an);this.type="axial"===en?2:3,this.coords=tn,this.colors=nn,F.call(this,rn,an)}function j$2(en,tn,nn,rn,an){if(!(this instanceof j$2))return new j$2(en,tn,nn,rn,an);this.boundingBox=en,this.xStep=tn,this.yStep=nn,this.stream="",this.cloneIndex=0,F.call(this,rn,an)}function O$1(en){var tn,nn="string"==typeof arguments[0]?arguments[0]:"p",rn=arguments[1],an=arguments[2],sn=arguments[3],cn=[],un=1,dn=16,pn="S",hn=null;"object"==_typeof(en=en||{})&&(nn=en.orientation,rn=en.unit||rn,an=en.format||an,sn=en.compress||en.compressPdf||sn,null!==(hn=en.encryption||null)&&(hn.userPassword=hn.userPassword||"",hn.ownerPassword=hn.ownerPassword||"",hn.userPermissions=hn.userPermissions||[]),un="number"==typeof en.userUnit?Math.abs(en.userUnit):1,void 0!==en.precision&&(tn=en.precision),void 0!==en.floatPrecision&&(dn=en.floatPrecision),pn=en.defaultPathOperation||"S"),cn=en.filters||(!0===sn?["FlateEncode"]:cn),rn=rn||"mm",nn=(""+(nn||"P")).toLowerCase();var gn=en.putOnlyUsedFonts||!1,An={},mn={internal:{},__private__:{}};mn.__private__.PubSub=k;var vn="1.3",yn=mn.__private__.getPdfVersion=function(){return vn};mn.__private__.setPdfVersion=function(en){vn=en};var _n={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};mn.__private__.getPageFormats=function(){return _n};var wn=mn.__private__.getPageFormat=function(en){return _n[en]};an=an||"a4";var xn={COMPAT:"compat",ADVANCED:"advanced"},Sn=xn.COMPAT;function S(){this.saveGraphicsState(),Ur(new _i(ei,0,0,-ei,0,Aa()*ei).toString()+" cm"),this.setFontSize(this.getFontSize()/ei),pn="n",Sn=xn.ADVANCED}function _(){this.restoreGraphicsState(),pn="S",Sn=xn.COMPAT}var Cn=function F(en,tn){if("bold"==en&&"normal"==tn||"bold"==en&&400==tn||"normal"==en&&"italic"==tn||"bold"==en&&"italic"==tn)throw new Error("Invalid Combination of fontweight and fontstyle");return tn&&en!==tn&&(en=400==tn?"italic"==en?"italic":"normal":700==tn&&"italic"!==en?"bold":en+""+tn),en};mn.advancedAPI=function(en){var tn=Sn===xn.COMPAT;return tn&&S.call(this),"function"!=typeof en||(en(this),tn&&_.call(this)),this},mn.compatAPI=function(en){var tn=Sn===xn.ADVANCED;return tn&&_.call(this),"function"!=typeof en||(en(this),tn&&S.call(this)),this},mn.isAdvancedAPI=function(){return Sn===xn.ADVANCED};var kn,Bn=function M(en){if(Sn!==xn.ADVANCED)throw new Error(en+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},En=mn.roundToPrecision=mn.__private__.roundToPrecision=function(en,nn){var rn=tn||nn;if(isNaN(en)||isNaN(rn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return en.toFixed(rn).replace(/0+$/,"")};kn=mn.hpf=mn.__private__.hpf="number"==typeof dn?function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.hpf");return En(en,dn)}:"smart"===dn?function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.hpf");return En(en,en>-1&&en<1?16:5)}:function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.hpf");return En(en,16)};var Pn=mn.f2=mn.__private__.f2=function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.f2");return En(en,2)},Ln=mn.__private__.f3=function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.f3");return En(en,3)},Tn=mn.scale=mn.__private__.scale=function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.scale");return Sn===xn.COMPAT?en*ei:Sn===xn.ADVANCED?en:void 0},Nn=function T(en){return Sn===xn.COMPAT?Aa()-en:Sn===xn.ADVANCED?en:void 0},In=function U(en){return Tn(Nn(en))};mn.__private__.setPrecision=mn.setPrecision=function(en){"number"==typeof parseInt(en,10)&&(tn=parseInt(en,10))};var On,Fn="00000000000000000000000000000000",Un=mn.__private__.getFileId=function(){return Fn},Mn=mn.__private__.setFileId=function(en){return Fn=void 0!==en&&/^[a-fA-F0-9]{32}$/.test(en)?en.toUpperCase():Fn.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==hn&&(Co=new P(hn.userPermissions,hn.userPassword,hn.ownerPassword,Fn)),Fn};mn.setFileId=function(en){return Mn(en),this},mn.getFileId=function(){return Un()};var Rn=mn.__private__.convertDateToPDFDate=function(en){var tn=en.getTimezoneOffset(),nn=tn<0?"+":"-",rn=Math.floor(Math.abs(tn/60)),an=Math.abs(tn%60),sn=[nn,Gn(rn),"'",Gn(an),"'"].join("");return["D:",en.getFullYear(),Gn(en.getMonth()+1),Gn(en.getDate()),Gn(en.getHours()),Gn(en.getMinutes()),Gn(en.getSeconds()),sn].join("")},Dn=mn.__private__.convertPDFDateToDate=function(en){var tn=parseInt(en.substr(2,4),10),nn=parseInt(en.substr(6,2),10)-1,rn=parseInt(en.substr(8,2),10),an=parseInt(en.substr(10,2),10),sn=parseInt(en.substr(12,2),10),cn=parseInt(en.substr(14,2),10);return new Date(tn,nn,rn,an,sn,cn,0)},jn=mn.__private__.setCreationDate=function(en){var tn;if(void 0===en&&(en=new Date),en instanceof Date)tn=Rn(en);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(en))throw new Error("Invalid argument passed to jsPDF.setCreationDate");tn=en}return On=tn},Qn=mn.__private__.getCreationDate=function(en){var tn=On;return"jsDate"===en&&(tn=Dn(On)),tn};mn.setCreationDate=function(en){return jn(en),this},mn.getCreationDate=function(en){return Qn(en)};var Hn,Gn=mn.__private__.padd2=function(en){return("0"+parseInt(en)).slice(-2)},Vn=mn.__private__.padd2Hex=function(en){return("00"+(en=en.toString())).substr(en.length)},zn=0,Kn=[],qn=[],$n=0,Wn=[],Xn=[],Yn=!1,Jn=qn,Zn=function st(){zn=0,$n=0,qn=[],Kn=[],Wn=[],Pi=ki(),Li=ki()};mn.__private__.setCustomOutputDestination=function(en){Yn=!0,Jn=en};var Tr=function ut(en){Yn||(Jn=en)};mn.__private__.resetCustomOutputDestination=function(){Yn=!1,Jn=qn};var Ur=mn.__private__.out=function(en){return en=en.toString(),$n+=en.length+1,Jn.push(en),Jn},Rr=mn.__private__.write=function(en){return Ur(1===arguments.length?en.toString():Array.prototype.join.call(arguments," "))},Dr=mn.__private__.getArrayBuffer=function(en){for(var tn=en.length,nn=new ArrayBuffer(tn),rn=new Uint8Array(nn);tn--;)rn[tn]=en.charCodeAt(tn);return nn},Qr=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];mn.__private__.getStandardFonts=function(){return Qr};var Hr=en.fontSize||16;mn.__private__.setFontSize=mn.setFontSize=function(en){return Hr=Sn===xn.ADVANCED?en/ei:en,this};var Gr,Vr=mn.__private__.getFontSize=mn.getFontSize=function(){return Sn===xn.COMPAT?Hr:Hr*ei},zr=en.R2L||!1;mn.__private__.setR2L=mn.setR2L=function(en){return zr=en,this},mn.__private__.getR2L=mn.getR2L=function(){return zr};var Kr,$r=mn.__private__.setZoomMode=function(en){if(/^\d*\.?\d*%$/.test(en))Gr=en;else if(isNaN(en)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(en))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+en+'" is not recognized.');Gr=en}else Gr=parseInt(en,10)};mn.__private__.getZoomMode=function(){return Gr};var Wr,Xr=mn.__private__.setPageMode=function(en){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(en))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+en+'" is not recognized.');Kr=en};mn.__private__.getPageMode=function(){return Kr};var Yr=mn.__private__.setLayoutMode=function(en){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(en))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+en+'" is not recognized.');Wr=en};mn.__private__.getLayoutMode=function(){return Wr},mn.__private__.setDisplayMode=mn.setDisplayMode=function(en,tn,nn){return $r(en),Yr(tn),Xr(nn),this};var Jr={title:"",subject:"",author:"",keywords:"",creator:""};mn.__private__.getDocumentProperty=function(en){if(-1===Object.keys(Jr).indexOf(en))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Jr[en]},mn.__private__.getDocumentProperties=function(){return Jr},mn.__private__.setDocumentProperties=mn.setProperties=mn.setDocumentProperties=function(en){for(var tn in Jr)Jr.hasOwnProperty(tn)&&en[tn]&&(Jr[tn]=en[tn]);return this},mn.__private__.setDocumentProperty=function(en,tn){if(-1===Object.keys(Jr).indexOf(en))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Jr[en]=tn};var Zr,ei,ti,ni,ri,ii={},oi={},ai=[],si={},li={},ui={},di={},pi=null,hi=0,gi=[],fi=new k(mn),Ai=en.hotfixes||[],mi={},vi={},yi=[],_i=function Ht(en,tn,nn,rn,an,sn){if(!(this instanceof Ht))return new Ht(en,tn,nn,rn,an,sn);isNaN(en)&&(en=1),isNaN(tn)&&(tn=0),isNaN(nn)&&(nn=0),isNaN(rn)&&(rn=1),isNaN(an)&&(an=0),isNaN(sn)&&(sn=0),this._matrix=[en,tn,nn,rn,an,sn]};Object.defineProperty(_i.prototype,"sx",{get:function get(){return this._matrix[0]},set:function set(en){this._matrix[0]=en}}),Object.defineProperty(_i.prototype,"shy",{get:function get(){return this._matrix[1]},set:function set(en){this._matrix[1]=en}}),Object.defineProperty(_i.prototype,"shx",{get:function get(){return this._matrix[2]},set:function set(en){this._matrix[2]=en}}),Object.defineProperty(_i.prototype,"sy",{get:function get(){return this._matrix[3]},set:function set(en){this._matrix[3]=en}}),Object.defineProperty(_i.prototype,"tx",{get:function get(){return this._matrix[4]},set:function set(en){this._matrix[4]=en}}),Object.defineProperty(_i.prototype,"ty",{get:function get(){return this._matrix[5]},set:function set(en){this._matrix[5]=en}}),Object.defineProperty(_i.prototype,"a",{get:function get(){return this._matrix[0]},set:function set(en){this._matrix[0]=en}}),Object.defineProperty(_i.prototype,"b",{get:function get(){return this._matrix[1]},set:function set(en){this._matrix[1]=en}}),Object.defineProperty(_i.prototype,"c",{get:function get(){return this._matrix[2]},set:function set(en){this._matrix[2]=en}}),Object.defineProperty(_i.prototype,"d",{get:function get(){return this._matrix[3]},set:function set(en){this._matrix[3]=en}}),Object.defineProperty(_i.prototype,"e",{get:function get(){return this._matrix[4]},set:function set(en){this._matrix[4]=en}}),Object.defineProperty(_i.prototype,"f",{get:function get(){return this._matrix[5]},set:function set(en){this._matrix[5]=en}}),Object.defineProperty(_i.prototype,"rotation",{get:function get(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(_i.prototype,"scaleX",{get:function get(){return this.decompose().scale.sx}}),Object.defineProperty(_i.prototype,"scaleY",{get:function get(){return this.decompose().scale.sy}}),Object.defineProperty(_i.prototype,"isIdentity",{get:function get(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),_i.prototype.join=function(en){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(kn).join(en)},_i.prototype.multiply=function(en){var tn=en.sx*this.sx+en.shy*this.shx,nn=en.sx*this.shy+en.shy*this.sy,rn=en.shx*this.sx+en.sy*this.shx,an=en.shx*this.shy+en.sy*this.sy,sn=en.tx*this.sx+en.ty*this.shx+this.tx,cn=en.tx*this.shy+en.ty*this.sy+this.ty;return new _i(tn,nn,rn,an,sn,cn)},_i.prototype.decompose=function(){var en=this.sx,tn=this.shy,nn=this.shx,rn=this.sy,an=this.tx,sn=this.ty,cn=Math.sqrt(en*en+tn*tn),un=(en/=cn)*nn+(tn/=cn)*rn;nn-=en*un,rn-=tn*un;var dn=Math.sqrt(nn*nn+rn*rn);return un/=dn,en*(rn/=dn)<tn*(nn/=dn)&&(en=-en,tn=-tn,un=-un,cn=-cn),{scale:new _i(cn,0,0,dn,0,0),translate:new _i(1,0,0,1,an,sn),rotate:new _i(en,tn,-tn,en,0,0),skew:new _i(1,0,un,1,0,0)}},_i.prototype.toString=function(en){return this.join(" ")},_i.prototype.inversed=function(){var en=this.sx,tn=this.shy,nn=this.shx,rn=this.sy,an=this.tx,sn=this.ty,cn=1/(en*rn-tn*nn),un=rn*cn,dn=-tn*cn,pn=-nn*cn,hn=en*cn;return new _i(un,dn,pn,hn,-un*an-pn*sn,-dn*an-hn*sn)},_i.prototype.applyToPoint=function(en){var tn=en.x*this.sx+en.y*this.shx+this.tx,nn=en.x*this.shy+en.y*this.sy+this.ty;return new sa(tn,nn)},_i.prototype.applyToRectangle=function(en){var tn=this.applyToPoint(en),nn=this.applyToPoint(new sa(en.x+en.w,en.y+en.h));return new la(tn.x,tn.y,nn.x-tn.x,nn.y-tn.y)},_i.prototype.clone=function(){var en=this.sx,tn=this.shy,nn=this.shx,rn=this.sy,an=this.tx,sn=this.ty;return new _i(en,tn,nn,rn,an,sn)},mn.Matrix=_i;var wi=mn.matrixMult=function(en,tn){return tn.multiply(en)},xi=new _i(1,0,0,1,0,0);mn.unitMatrix=mn.identityMatrix=xi;var Si=function Gt(en,tn){if(!li[en]){var nn=(tn instanceof C?"Sh":"P")+(Object.keys(si).length+1).toString(10);tn.id=nn,li[en]=nn,si[nn]=tn,fi.publish("addPattern",tn)}};mn.ShadingPattern=C,mn.TilingPattern=j$2,mn.addShadingPattern=function(en,tn){return Bn("addShadingPattern()"),Si(en,tn),this},mn.beginTilingPattern=function(en){Bn("beginTilingPattern()"),da(en.boundingBox[0],en.boundingBox[1],en.boundingBox[2]-en.boundingBox[0],en.boundingBox[3]-en.boundingBox[1],en.matrix)},mn.endTilingPattern=function(en,tn){Bn("endTilingPattern()"),tn.stream=Xn[Hn].join("\n"),Si(en,tn),fi.publish("endTilingPattern",tn),yi.pop().restore()};var Ci=mn.__private__.newObject=function(){var en=ki();return Bi(en,!0),en},ki=mn.__private__.newObjectDeferred=function(){return zn++,Kn[zn]=function(){return $n},zn},Bi=function Xt(en,tn){return tn="boolean"==typeof tn&&tn,Kn[en]=$n,tn&&Ur(en+" 0 obj"),en},Ei=mn.__private__.newAdditionalObject=function(){var en={objId:ki(),content:""};return Wn.push(en),en},Pi=ki(),Li=ki(),Ti=mn.__private__.decodeColorString=function(en){var tn=en.split(" ");if(2!==tn.length||"g"!==tn[1]&&"G"!==tn[1])5!==tn.length||"k"!==tn[4]&&"K"!==tn[4]||(tn=[(1-tn[0])*(1-tn[3]),(1-tn[1])*(1-tn[3]),(1-tn[2])*(1-tn[3]),"r"]);else{var nn=parseFloat(tn[0]);tn=[nn,nn,nn,"r"]}for(var rn="#",an=0;an<3;an++)rn+=("0"+Math.floor(255*parseFloat(tn[an])).toString(16)).slice(-2);return rn},Ni=mn.__private__.encodeColorString=function(en){var tn;"string"==typeof en&&(en={ch1:en});var nn=en.ch1,rn=en.ch2,an=en.ch3,sn=en.ch4,cn="draw"===en.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof nn&&"#"!==nn.charAt(0)){var un=new h$1(nn);if(un.ok)nn=un.toHex();else if(!/^\d*\.?\d*$/.test(nn))throw new Error('Invalid color "'+nn+'" passed to jsPDF.encodeColorString.')}if("string"==typeof nn&&/^#[0-9A-Fa-f]{3}$/.test(nn)&&(nn="#"+nn[1]+nn[1]+nn[2]+nn[2]+nn[3]+nn[3]),"string"==typeof nn&&/^#[0-9A-Fa-f]{6}$/.test(nn)){var dn=parseInt(nn.substr(1),16);nn=dn>>16&255,rn=dn>>8&255,an=255&dn}if(void 0===rn||void 0===sn&&nn===rn&&rn===an)if("string"==typeof nn)tn=nn+" "+cn[0];else switch(en.precision){case 2:tn=Pn(nn/255)+" "+cn[0];break;case 3:default:tn=Ln(nn/255)+" "+cn[0]}else if(void 0===sn||"object"==_typeof(sn)){if(sn&&!isNaN(sn.a)&&0===sn.a)return["1.","1.","1.",cn[1]].join(" ");if("string"==typeof nn)tn=[nn,rn,an,cn[1]].join(" ");else switch(en.precision){case 2:tn=[Pn(nn/255),Pn(rn/255),Pn(an/255),cn[1]].join(" ");break;default:case 3:tn=[Ln(nn/255),Ln(rn/255),Ln(an/255),cn[1]].join(" ")}}else if("string"==typeof nn)tn=[nn,rn,an,sn,cn[2]].join(" ");else switch(en.precision){case 2:tn=[Pn(nn),Pn(rn),Pn(an),Pn(sn),cn[2]].join(" ");break;case 3:default:tn=[Ln(nn),Ln(rn),Ln(an),Ln(sn),cn[2]].join(" ")}return tn},Ii=mn.__private__.getFilters=function(){return cn},Oi=mn.__private__.putStream=function(en){var tn=(en=en||{}).data||"",nn=en.filters||Ii(),rn=en.alreadyAppliedFilters||[],an=en.addLength1||!1,sn=tn.length,cn=en.objectId,un=function s(en){return en};if(null!==hn&&void 0===cn)throw new Error("ObjectId must be passed to putStream for file encryption");null!==hn&&(un=Co.encryptor(cn,0));var dn={};!0===nn&&(nn=["FlateEncode"]);var pn=en.additionalKeyValues||[],gn=(dn=void 0!==O$1.API.processDataByFilters?O$1.API.processDataByFilters(tn,nn):{data:tn,reverseChain:[]}).reverseChain+(Array.isArray(rn)?rn.join(" "):rn.toString());if(0!==dn.data.length&&(pn.push({key:"Length",value:dn.data.length}),!0===an&&pn.push({key:"Length1",value:sn})),0!=gn.length)if(gn.split("/").length-1==1)pn.push({key:"Filter",value:gn});else{pn.push({key:"Filter",value:"["+gn+"]"});for(var An=0;An<pn.length;An+=1)if("DecodeParms"===pn[An].key){for(var mn=[],vn=0;vn<dn.reverseChain.split("/").length-1;vn+=1)mn.push("null");mn.push(pn[An].value),pn[An].value="["+mn.join(" ")+"]"}}Ur("<<");for(var yn=0;yn<pn.length;yn++)Ur("/"+pn[yn].key+" "+pn[yn].value);Ur(">>"),0!==dn.data.length&&(Ur("stream"),Ur(un(dn.data)),Ur("endstream"))},Fi=mn.__private__.putPage=function(en){var tn=en.number,nn=en.data,rn=en.objId,an=en.contentsObjId;Bi(rn,!0),Ur("<</Type /Page"),Ur("/Parent "+en.rootDictionaryObjId+" 0 R"),Ur("/Resources "+en.resourceDictionaryObjId+" 0 R"),Ur("/MediaBox ["+parseFloat(kn(en.mediaBox.bottomLeftX))+" "+parseFloat(kn(en.mediaBox.bottomLeftY))+" "+kn(en.mediaBox.topRightX)+" "+kn(en.mediaBox.topRightY)+"]"),null!==en.cropBox&&Ur("/CropBox ["+kn(en.cropBox.bottomLeftX)+" "+kn(en.cropBox.bottomLeftY)+" "+kn(en.cropBox.topRightX)+" "+kn(en.cropBox.topRightY)+"]"),null!==en.bleedBox&&Ur("/BleedBox ["+kn(en.bleedBox.bottomLeftX)+" "+kn(en.bleedBox.bottomLeftY)+" "+kn(en.bleedBox.topRightX)+" "+kn(en.bleedBox.topRightY)+"]"),null!==en.trimBox&&Ur("/TrimBox ["+kn(en.trimBox.bottomLeftX)+" "+kn(en.trimBox.bottomLeftY)+" "+kn(en.trimBox.topRightX)+" "+kn(en.trimBox.topRightY)+"]"),null!==en.artBox&&Ur("/ArtBox ["+kn(en.artBox.bottomLeftX)+" "+kn(en.artBox.bottomLeftY)+" "+kn(en.artBox.topRightX)+" "+kn(en.artBox.topRightY)+"]"),"number"==typeof en.userUnit&&1!==en.userUnit&&Ur("/UserUnit "+en.userUnit),fi.publish("putPage",{objId:rn,pageContext:gi[tn],pageNumber:tn,page:nn}),Ur("/Contents "+an+" 0 R"),Ur(">>"),Ur("endobj");var sn=nn.join("\n");return Sn===xn.ADVANCED&&(sn+="\nQ"),Bi(an,!0),Oi({data:sn,filters:Ii(),objectId:an}),Ur("endobj"),rn},Ui=mn.__private__.putPages=function(){var en,tn,nn=[];for(en=1;en<=hi;en++)gi[en].objId=ki(),gi[en].contentsObjId=ki();for(en=1;en<=hi;en++)nn.push(Fi({number:en,data:Xn[en],objId:gi[en].objId,contentsObjId:gi[en].contentsObjId,mediaBox:gi[en].mediaBox,cropBox:gi[en].cropBox,bleedBox:gi[en].bleedBox,trimBox:gi[en].trimBox,artBox:gi[en].artBox,userUnit:gi[en].userUnit,rootDictionaryObjId:Pi,resourceDictionaryObjId:Li}));Bi(Pi,!0),Ur("<</Type /Pages");var rn="/Kids [";for(tn=0;tn<hi;tn++)rn+=nn[tn]+" 0 R ";Ur(rn+"]"),Ur("/Count "+hi),Ur(">>"),Ur("endobj"),fi.publish("postPutPages")},Mi=function ae(en){var tn=function e(en,tn){return-1!==en.indexOf(" ")?"("+so(en,tn)+")":so(en,tn)};fi.publish("putFont",{font:en,out:Ur,newObject:Ci,putStream:Oi,pdfEscapeWithNeededParanthesis:tn}),!0!==en.isAlreadyPutted&&(en.objectNumber=Ci(),Ur("<<"),Ur("/Type /Font"),Ur("/BaseFont /"+tn(en.postScriptName)),Ur("/Subtype /Type1"),"string"==typeof en.encoding&&Ur("/Encoding /"+en.encoding),Ur("/FirstChar 32"),Ur("/LastChar 255"),Ur(">>"),Ur("endobj"))},Ri=function oe(){for(var en in ii)ii.hasOwnProperty(en)&&(!1===gn||!0===gn&&An.hasOwnProperty(en))&&Mi(ii[en])},Di=function se(en){en.objectNumber=Ci();var tn=[];tn.push({key:"Type",value:"/XObject"}),tn.push({key:"Subtype",value:"/Form"}),tn.push({key:"BBox",value:"["+[kn(en.x),kn(en.y),kn(en.x+en.width),kn(en.y+en.height)].join(" ")+"]"}),tn.push({key:"Matrix",value:"["+en.matrix.toString()+"]"});var nn=en.pages[1].join("\n");Oi({data:nn,additionalKeyValues:tn,objectId:en.objectNumber}),Ur("endobj")},ji=function ue(){for(var en in mi)mi.hasOwnProperty(en)&&Di(mi[en])},Qi=function ce(en,tn){var nn,rn=[],an=1/(tn-1);for(nn=0;nn<1;nn+=an)rn.push(nn);if(rn.push(1),0!=en[0].offset){var sn={offset:0,color:en[0].color};en.unshift(sn)}if(1!=en[en.length-1].offset){var cn={offset:1,color:en[en.length-1].color};en.push(cn)}for(var un="",dn=0,pn=0;pn<rn.length;pn++){for(nn=rn[pn];nn>en[dn+1].offset;)dn++;var hn=en[dn].offset,gn=(nn-hn)/(en[dn+1].offset-hn),An=en[dn].color,mn=en[dn+1].color;un+=Vn(Math.round((1-gn)*An[0]+gn*mn[0]).toString(16))+Vn(Math.round((1-gn)*An[1]+gn*mn[1]).toString(16))+Vn(Math.round((1-gn)*An[2]+gn*mn[2]).toString(16))}return un.trim()},Hi=function le(en,tn){tn||(tn=21);var nn=Ci(),rn=Qi(en.colors,tn),an=[];an.push({key:"FunctionType",value:"0"}),an.push({key:"Domain",value:"[0.0 1.0]"}),an.push({key:"Size",value:"["+tn+"]"}),an.push({key:"BitsPerSample",value:"8"}),an.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),an.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Oi({data:rn,additionalKeyValues:an,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:nn}),Ur("endobj"),en.objectNumber=Ci(),Ur("<< /ShadingType "+en.type),Ur("/ColorSpace /DeviceRGB");var sn="/Coords ["+kn(parseFloat(en.coords[0]))+" "+kn(parseFloat(en.coords[1]))+" ";2===en.type?sn+=kn(parseFloat(en.coords[2]))+" "+kn(parseFloat(en.coords[3])):sn+=kn(parseFloat(en.coords[2]))+" "+kn(parseFloat(en.coords[3]))+" "+kn(parseFloat(en.coords[4]))+" "+kn(parseFloat(en.coords[5])),Ur(sn+="]"),en.matrix&&Ur("/Matrix ["+en.matrix.toString()+"]"),Ur("/Function "+nn+" 0 R"),Ur("/Extend [true true]"),Ur(">>"),Ur("endobj")},Gi=function he(en,tn){var nn=ki(),rn=Ci();tn.push({resourcesOid:nn,objectOid:rn}),en.objectNumber=rn;var an=[];an.push({key:"Type",value:"/Pattern"}),an.push({key:"PatternType",value:"1"}),an.push({key:"PaintType",value:"1"}),an.push({key:"TilingType",value:"1"}),an.push({key:"BBox",value:"["+en.boundingBox.map(kn).join(" ")+"]"}),an.push({key:"XStep",value:kn(en.xStep)}),an.push({key:"YStep",value:kn(en.yStep)}),an.push({key:"Resources",value:nn+" 0 R"}),en.matrix&&an.push({key:"Matrix",value:"["+en.matrix.toString()+"]"}),Oi({data:en.stream,additionalKeyValues:an,objectId:en.objectNumber}),Ur("endobj")},Vi=function fe(en){var tn;for(tn in si)si.hasOwnProperty(tn)&&(si[tn]instanceof C?Hi(si[tn]):si[tn]instanceof j$2&&Gi(si[tn],en))},zi=function de(en){for(var tn in en.objectNumber=Ci(),Ur("<<"),en)switch(tn){case"opacity":Ur("/ca "+Pn(en[tn]));break;case"stroke-opacity":Ur("/CA "+Pn(en[tn]))}Ur(">>"),Ur("endobj")},Ki=function pe(){var en;for(en in ui)ui.hasOwnProperty(en)&&zi(ui[en])},qi=function ge(){for(var en in Ur("/XObject <<"),mi)mi.hasOwnProperty(en)&&mi[en].objectNumber>=0&&Ur("/"+en+" "+mi[en].objectNumber+" 0 R");fi.publish("putXobjectDict"),Ur(">>")},$i=function me(){Co.oid=Ci(),Ur("<<"),Ur("/Filter /Standard"),Ur("/V "+Co.v),Ur("/R "+Co.r),Ur("/U <"+Co.toHexString(Co.U)+">"),Ur("/O <"+Co.toHexString(Co.O)+">"),Ur("/P "+Co.P),Ur(">>"),Ur("endobj")},Wi=function ve(){for(var en in Ur("/Font <<"),ii)ii.hasOwnProperty(en)&&(!1===gn||!0===gn&&An.hasOwnProperty(en))&&Ur("/"+en+" "+ii[en].objectNumber+" 0 R");Ur(">>")},Xi=function be(){if(Object.keys(si).length>0){for(var en in Ur("/Shading <<"),si)si.hasOwnProperty(en)&&si[en]instanceof C&&si[en].objectNumber>=0&&Ur("/"+en+" "+si[en].objectNumber+" 0 R");fi.publish("putShadingPatternDict"),Ur(">>")}},Yi=function ye(en){if(Object.keys(si).length>0){for(var tn in Ur("/Pattern <<"),si)si.hasOwnProperty(tn)&&si[tn]instanceof mn.TilingPattern&&si[tn].objectNumber>=0&&si[tn].objectNumber<en&&Ur("/"+tn+" "+si[tn].objectNumber+" 0 R");fi.publish("putTilingPatternDict"),Ur(">>")}},Ji=function we(){if(Object.keys(ui).length>0){var en;for(en in Ur("/ExtGState <<"),ui)ui.hasOwnProperty(en)&&ui[en].objectNumber>=0&&Ur("/"+en+" "+ui[en].objectNumber+" 0 R");fi.publish("putGStateDict"),Ur(">>")}},Zi=function Ne(en){Bi(en.resourcesOid,!0),Ur("<<"),Ur("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Wi(),Xi(),Yi(en.objectOid),Ji(),qi(),Ur(">>"),Ur("endobj")},eo=function Le(){var en=[];Ri(),Ki(),ji(),Vi(en),fi.publish("putResources"),en.forEach(Zi),Zi({resourcesOid:Li,objectOid:Number.MAX_SAFE_INTEGER}),fi.publish("postPutResources")},to=function Ae(){fi.publish("putAdditionalObjects");for(var en=0;en<Wn.length;en++){var tn=Wn[en];Bi(tn.objId,!0),Ur(tn.content),Ur("endobj")}fi.publish("postPutAdditionalObjects")},no=function xe(en){oi[en.fontName]=oi[en.fontName]||{},oi[en.fontName][en.fontStyle]=en.id},ro=function Se(en,tn,nn,rn,an){var sn={id:"F"+(Object.keys(ii).length+1).toString(10),postScriptName:en,fontName:tn,fontStyle:nn,encoding:rn,isStandardFont:an||!1,metadata:{}};return fi.publish("addFont",{font:sn,instance:this}),ii[sn.id]=sn,no(sn),sn.id},io=function _e(en){for(var tn=0,nn=Qr.length;tn<nn;tn++){var rn=ro.call(this,en[tn][0],en[tn][1],en[tn][2],Qr[tn][3],!0);!1===gn&&(An[rn]=!0);var an=en[tn][0].split("-");no({id:rn,fontName:an[0],fontStyle:an[1]||""})}fi.publish("addFonts",{fonts:ii,dictionary:oi})},oo=function Pe(en){return en.foo=function(){try{return en.apply(this,arguments)}catch(en){var tn=en.stack||"";~tn.indexOf(" at ")&&(tn=tn.split(" at ")[1]);var nn="Error in function "+tn.split("\n")[0].split("<")[0]+": "+en.message;if(!tM.console)throw new Error(nn);tM.console.error(nn,en),tM.alert&&alert(nn)}},en.foo.bar=en,en.foo},ao=function ke(en,tn){var nn,rn,an,sn,cn,un,dn,pn,hn;if(an=(tn=tn||{}).sourceEncoding||"Unicode",cn=tn.outputEncoding,(tn.autoencode||cn)&&ii[Zr].metadata&&ii[Zr].metadata[an]&&ii[Zr].metadata[an].encoding&&(sn=ii[Zr].metadata[an].encoding,!cn&&ii[Zr].encoding&&(cn=ii[Zr].encoding),!cn&&sn.codePages&&(cn=sn.codePages[0]),"string"==typeof cn&&(cn=sn[cn]),cn)){for(dn=!1,un=[],nn=0,rn=en.length;nn<rn;nn++)(pn=cn[en.charCodeAt(nn)])?un.push(String.fromCharCode(pn)):un.push(en[nn]),un[nn].charCodeAt(0)>>8&&(dn=!0);en=un.join("")}for(nn=en.length;void 0===dn&&0!==nn;)en.charCodeAt(nn-1)>>8&&(dn=!0),nn--;if(!dn)return en;for(un=tn.noBOM?[]:[254,255],nn=0,rn=en.length;nn<rn;nn++){if((hn=(pn=en.charCodeAt(nn))>>8)>>8)throw new Error("Character at position "+nn+" of string '"+en+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");un.push(hn),un.push(pn-(hn<<8))}return String.fromCharCode.apply(void 0,un)},so=mn.__private__.pdfEscape=mn.pdfEscape=function(en,tn){return ao(en,tn).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},lo=mn.__private__.beginPage=function(en){Xn[++hi]=[],gi[hi]={objId:0,contentsObjId:0,userUnit:Number(un),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(en[0]),topRightY:Number(en[1])}},po(hi),Tr(Xn[Hn])},co=function Ce(en,tn){var rn,sn,cn;switch(nn=tn||nn,"string"==typeof en&&(rn=wn(en.toLowerCase()),Array.isArray(rn)&&(sn=rn[0],cn=rn[1])),Array.isArray(en)&&(sn=en[0]*ei,cn=en[1]*ei),isNaN(sn)&&(sn=an[0],cn=an[1]),(sn>14400||cn>14400)&&(nM.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),sn=Math.min(14400,sn),cn=Math.min(14400,cn)),an=[sn,cn],nn.substr(0,1)){case"l":cn>sn&&(an=[cn,sn]);break;case"p":sn>cn&&(an=[cn,sn])}lo(an),Vo(Go),Ur(Jo),0!==ia&&Ur(ia+" J"),0!==oa&&Ur(oa+" j"),fi.publish("addPage",{pageNumber:hi})},uo=function je(en){en>0&&en<=hi&&(Xn.splice(en,1),gi.splice(en,1),hi--,Hn>hi&&(Hn=hi),this.setPage(Hn))},po=function Oe(en){en>0&&en<=hi&&(Hn=en)},ho=mn.__private__.getNumberOfPages=mn.getNumberOfPages=function(){return Xn.length-1},go=function Me(en,tn,nn){var rn,an=void 0;return nn=nn||{},en=void 0!==en?en:ii[Zr].fontName,tn=void 0!==tn?tn:ii[Zr].fontStyle,rn=en.toLowerCase(),void 0!==oi[rn]&&void 0!==oi[rn][tn]?an=oi[rn][tn]:void 0!==oi[en]&&void 0!==oi[en][tn]?an=oi[en][tn]:!1===nn.disableWarning&&nM.warn("Unable to look up font label for font '"+en+"', '"+tn+"'. Refer to getFontList() for available fonts."),an||nn.noFallback||null==(an=oi.times[tn])&&(an=oi.times.normal),an},fo=mn.__private__.putInfo=function(){var en=Ci(),tn=function e(en){return en};for(var nn in null!==hn&&(tn=Co.encryptor(en,0)),Ur("<<"),Ur("/Producer ("+so(tn("jsPDF "+O$1.version))+")"),Jr)Jr.hasOwnProperty(nn)&&Jr[nn]&&Ur("/"+nn.substr(0,1).toUpperCase()+nn.substr(1)+" ("+so(tn(Jr[nn]))+")");Ur("/CreationDate ("+so(tn(On))+")"),Ur(">>"),Ur("endobj")},Ao=mn.__private__.putCatalog=function(en){var tn=(en=en||{}).rootDictionaryObjId||Pi;switch(Ci(),Ur("<<"),Ur("/Type /Catalog"),Ur("/Pages "+tn+" 0 R"),Gr||(Gr="fullwidth"),Gr){case"fullwidth":Ur("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Ur("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Ur("/OpenAction [3 0 R /Fit]");break;case"original":Ur("/OpenAction [3 0 R /XYZ null null 1]");break;default:var nn=""+Gr;"%"===nn.substr(nn.length-1)&&(Gr=parseInt(Gr)/100),"number"==typeof Gr&&Ur("/OpenAction [3 0 R /XYZ null null "+Pn(Gr)+"]")}switch(Wr||(Wr="continuous"),Wr){case"continuous":Ur("/PageLayout /OneColumn");break;case"single":Ur("/PageLayout /SinglePage");break;case"two":case"twoleft":Ur("/PageLayout /TwoColumnLeft");break;case"tworight":Ur("/PageLayout /TwoColumnRight")}Kr&&Ur("/PageMode /"+Kr),fi.publish("putCatalog"),Ur(">>"),Ur("endobj")},mo=mn.__private__.putTrailer=function(){Ur("trailer"),Ur("<<"),Ur("/Size "+(zn+1)),Ur("/Root "+zn+" 0 R"),Ur("/Info "+(zn-1)+" 0 R"),null!==hn&&Ur("/Encrypt "+Co.oid+" 0 R"),Ur("/ID [ <"+Fn+"> <"+Fn+"> ]"),Ur(">>")},vo=mn.__private__.putHeader=function(){Ur("%PDF-"+vn),Ur("%ºß¬à")},yo=mn.__private__.putXRef=function(){var en="0000000000";Ur("xref"),Ur("0 "+(zn+1)),Ur("0000000000 65535 f ");for(var tn=1;tn<=zn;tn++)"function"==typeof Kn[tn]?Ur((en+Kn[tn]()).slice(-10)+" 00000 n "):void 0!==Kn[tn]?Ur((en+Kn[tn]).slice(-10)+" 00000 n "):Ur("0000000000 00000 n ")},_o=mn.__private__.buildDocument=function(){Zn(),Tr(qn),fi.publish("buildDocument"),vo(),Ui(),to(),eo(),null!==hn&&$i(),fo(),Ao();var en=$n;return yo(),mo(),Ur("startxref"),Ur(""+en),Ur("%%EOF"),Tr(Xn[Hn]),qn.join("\n")},wo=mn.__private__.getBlob=function(en){return new Blob([Dr(en)],{type:"application/pdf"})},xo=mn.output=mn.__private__.output=oo((function(en,tn){switch("string"==typeof(tn=tn||{})?tn={filename:tn}:tn.filename=tn.filename||"generated.pdf",en){case void 0:return _o();case"save":mn.save(tn.filename);break;case"arraybuffer":return Dr(_o());case"blob":return wo(_o());case"bloburi":case"bloburl":if(void 0!==tM.URL&&"function"==typeof tM.URL.createObjectURL)return tM.URL&&tM.URL.createObjectURL(wo(_o()))||void 0;nM.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var nn="",rn=_o();try{nn=iM(rn)}catch(en){nn=iM(unescape(encodeURIComponent(rn)))}return"data:application/pdf;filename="+tn.filename+";base64,"+nn;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(tM)){var an='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(tn.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(tn)+");<\/script></body></html>",sn=tM.open();return null!==sn&&sn.document.write(an),sn}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(tM)){var cn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(tn.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+tn.filename+'" width="500px" height="400px" /></body></html>',un=tM.open();if(null!==un){un.document.write(cn);var dn=this;un.document.documentElement.querySelector("#pdfViewer").onload=function(){un.document.title=tn.filename,un.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(dn.output("bloburl"))}}return un}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(tM))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var pn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",tn)+'"></iframe></body></html>',hn=tM.open();if(null!==hn&&(hn.document.write(pn),hn.document.title=tn.filename),hn||"undefined"==typeof safari)return hn;break;case"datauri":case"dataurl":return tM.document.location.href=this.output("datauristring",tn);default:return null}})),So=function Ve(en){return!0===Array.isArray(Ai)&&Ai.indexOf(en)>-1};switch(rn){case"pt":ei=1;break;case"mm":ei=72/25.4;break;case"cm":ei=72/2.54;break;case"in":ei=72;break;case"px":ei=1==So("px_scaling")?.75:96/72;break;case"pc":case"em":ei=12;break;case"ex":ei=6;break;default:throw new Error("Invalid unit: "+rn)}var Co=null;jn(),Mn();var ko=function Ge(en){return null!==hn?Co.encryptor(en,0):function(en){return en}},Bo=mn.__private__.getPageInfo=mn.getPageInfo=function(en){if(isNaN(en)||en%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:gi[en].objId,pageNumber:en,pageContext:gi[en]}},Eo=mn.__private__.getPageInfoByObjId=function(en){if(isNaN(en)||en%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var tn in gi)if(gi[tn].objId===en)break;return Bo(tn)},Po=mn.__private__.getCurrentPageInfo=mn.getCurrentPageInfo=function(){return{objId:gi[Hn].objId,pageNumber:Hn,pageContext:gi[Hn]}};mn.addPage=function(){return co.apply(this,arguments),this},mn.setPage=function(){return po.apply(this,arguments),Tr.call(this,Xn[Hn]),this},mn.insertPage=function(en){return this.addPage(),this.movePage(Hn,en),this},mn.movePage=function(en,tn){var nn,rn;if(en>tn){nn=Xn[en],rn=gi[en];for(var an=en;an>tn;an--)Xn[an]=Xn[an-1],gi[an]=gi[an-1];Xn[tn]=nn,gi[tn]=rn,this.setPage(tn)}else if(en<tn){nn=Xn[en],rn=gi[en];for(var sn=en;sn<tn;sn++)Xn[sn]=Xn[sn+1],gi[sn]=gi[sn+1];Xn[tn]=nn,gi[tn]=rn,this.setPage(tn)}return this},mn.deletePage=function(){return uo.apply(this,arguments),this},mn.__private__.text=mn.text=function(en,tn,nn,rn,an){var sn,cn,un,dn,pn,hn,gn,mn,vn=(rn=rn||{}).scope||this;if("number"==typeof en&&"number"==typeof tn&&("string"==typeof nn||Array.isArray(nn))){var yn=nn;nn=tn,tn=en,en=yn}if(arguments[3]instanceof _i==0?(un=arguments[4],dn=arguments[5],"object"==_typeof(gn=arguments[3])&&null!==gn||("string"==typeof un&&(dn=un,un=null),"string"==typeof gn&&(dn=gn,gn=null),"number"==typeof gn&&(un=gn,gn=null),rn={flags:gn,angle:un,align:dn})):(Bn("The transform parameter of text() with a Matrix value"),mn=an),isNaN(tn)||isNaN(nn)||null==en)throw new Error("Invalid arguments passed to jsPDF.text");if(0===en.length)return vn;var _n="",wn=!1,Cn="number"==typeof rn.lineHeightFactor?rn.lineHeightFactor:Ho,En=vn.internal.scaleFactor;function w(en){return en=en.split("\t").join(Array(rn.TabLen||9).join(" ")),so(en,gn)}function N(en){for(var tn,nn=en.concat(),rn=[],an=nn.length;an--;)"string"==typeof(tn=nn.shift())?rn.push(tn):Array.isArray(en)&&(1===tn.length||void 0===tn[1]&&void 0===tn[2])?rn.push(tn[0]):rn.push([tn[0],tn[1],tn[2]]);return rn}function L(en,tn){var nn;if("string"==typeof en)nn=tn(en)[0];else if(Array.isArray(en)){for(var rn,an,sn=en.concat(),cn=[],un=sn.length;un--;)"string"==typeof(rn=sn.shift())?cn.push(tn(rn)[0]):Array.isArray(rn)&&"string"==typeof rn[0]&&(an=tn(rn[0],rn[1],rn[2]),cn.push([an[0],an[1],an[2]]));nn=cn}return nn}var Pn=!1,Ln=!0;if("string"==typeof en)Pn=!0;else if(Array.isArray(en)){var Nn=en.concat();cn=[];for(var In,On=Nn.length;On--;)("string"!=typeof(In=Nn.shift())||Array.isArray(In)&&"string"!=typeof In[0])&&(Ln=!1);Pn=Ln}if(!1===Pn)throw new Error('Type of text must be string or Array. "'+en+'" is not recognized.');"string"==typeof en&&(en=en.match(/[\r?\n]/)?en.split(/\r\n|\r|\n/g):[en]);var Fn=Hr/vn.internal.scaleFactor,Un=Fn*(Ho-1);switch(rn.baseline){case"bottom":nn-=Un;break;case"top":nn+=Fn-Un;break;case"hanging":nn+=Fn-2*Un;break;case"middle":nn+=Fn/2-Un}if((hn=rn.maxWidth||0)>0&&("string"==typeof en?en=vn.splitTextToSize(en,hn):"[object Array]"===Object.prototype.toString.call(en)&&(en=en.reduce((function(en,tn){return en.concat(vn.splitTextToSize(tn,hn))}),[]))),sn={text:en,x:tn,y:nn,options:rn,mutex:{pdfEscape:so,activeFontKey:Zr,fonts:ii,activeFontSize:Hr}},fi.publish("preProcessText",sn),en=sn.text,un=(rn=sn.options).angle,mn instanceof _i==0&&un&&"number"==typeof un){un*=Math.PI/180,0===rn.rotationDirection&&(un=-un),Sn===xn.ADVANCED&&(un=-un);var Mn=Math.cos(un),Rn=Math.sin(un);mn=new _i(Mn,Rn,-Rn,Mn,0,0)}else un&&un instanceof _i&&(mn=un);Sn!==xn.ADVANCED||mn||(mn=xi),void 0!==(pn=rn.charSpace||na)&&(_n+=kn(Tn(pn))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),rn.lang;var Dn=-1,jn=void 0!==rn.renderingMode?rn.renderingMode:rn.stroke,Qn=vn.internal.getCurrentPageInfo().pageContext;switch(jn){case 0:case!1:case"fill":Dn=0;break;case 1:case!0:case"stroke":Dn=1;break;case 2:case"fillThenStroke":Dn=2;break;case 3:case"invisible":Dn=3;break;case 4:case"fillAndAddForClipping":Dn=4;break;case 5:case"strokeAndAddPathForClipping":Dn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Dn=6;break;case 7:case"addToPathForClipping":Dn=7}var Hn=void 0!==Qn.usedRenderingMode?Qn.usedRenderingMode:-1;-1!==Dn?_n+=Dn+" Tr\n":-1!==Hn&&(_n+="0 Tr\n"),-1!==Dn&&(Qn.usedRenderingMode=Dn),dn=rn.align||"left";var Gn,Vn=Hr*Cn,zn=vn.internal.pageSize.getWidth(),Kn=ii[Zr];pn=rn.charSpace||na,hn=rn.maxWidth||0,gn=Object.assign({autoencode:!0,noBOM:!0},rn.flags);var qn=[];if("[object Array]"===Object.prototype.toString.call(en)){var $n;cn=N(en),"left"!==dn&&(Gn=cn.map((function(en){return vn.getStringUnitWidth(en,{font:Kn,charSpace:pn,fontSize:Hr,doKerning:!1})*Hr/En})));var Wn,Xn=0;if("right"===dn){tn-=Gn[0],en=[],On=cn.length;for(var Yn=0;Yn<On;Yn++)0===Yn?(Wn=$o(tn),$n=Wo(nn)):(Wn=Tn(Xn-Gn[Yn]),$n=-Vn),en.push([cn[Yn],Wn,$n]),Xn=Gn[Yn]}else if("center"===dn){tn-=Gn[0]/2,en=[],On=cn.length;for(var Jn=0;Jn<On;Jn++)0===Jn?(Wn=$o(tn),$n=Wo(nn)):(Wn=Tn((Xn-Gn[Jn])/2),$n=-Vn),en.push([cn[Jn],Wn,$n]),Xn=Gn[Jn]}else if("left"===dn){en=[],On=cn.length;for(var Zn=0;Zn<On;Zn++)en.push(cn[Zn])}else{if("justify"!==dn)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');en=[],On=cn.length,hn=0!==hn?hn:zn;for(var Tr=0;Tr<On;Tr++)$n=0===Tr?Wo(nn):-Vn,Wn=0===Tr?$o(tn):0,Tr<On-1&&qn.push(kn(Tn((hn-Gn[Tr])/(cn[Tr].split(" ").length-1)))),en.push([cn[Tr],Wn,$n])}}var Rr="boolean"==typeof rn.R2L?rn.R2L:zr;!0===Rr&&(en=L(en,(function(en,tn,nn){return[en.split("").reverse().join(""),tn,nn]}))),sn={text:en,x:tn,y:nn,options:rn,mutex:{pdfEscape:so,activeFontKey:Zr,fonts:ii,activeFontSize:Hr}},fi.publish("postProcessText",sn),en=sn.text,wn=sn.mutex.isHex||!1;var Dr=ii[Zr].encoding;"WinAnsiEncoding"!==Dr&&"StandardEncoding"!==Dr||(en=L(en,(function(en,tn,nn){return[w(en),tn,nn]}))),cn=N(en),en=[];for(var Qr,Gr,Vr,Kr=0,$r=1,Wr=Array.isArray(cn[0])?$r:Kr,Xr="",Yr=function ut(en,tn,nn){var an="";return nn instanceof _i?(nn="number"==typeof rn.angle?wi(nn,new _i(1,0,0,1,en,tn)):wi(new _i(1,0,0,1,en,tn),nn),Sn===xn.ADVANCED&&(nn=wi(new _i(1,0,0,-1,0,0),nn)),an=nn.join(" ")+" Tm\n"):an=kn(en)+" "+kn(tn)+" Td\n",an},Jr=0;Jr<cn.length;Jr++){switch(Xr="",Wr){case $r:Vr=(wn?"<":"(")+cn[Jr][0]+(wn?">":")"),Qr=parseFloat(cn[Jr][1]),Gr=parseFloat(cn[Jr][2]);break;case Kr:Vr=(wn?"<":"(")+cn[Jr]+(wn?">":")"),Qr=$o(tn),Gr=Wo(nn)}void 0!==qn&&void 0!==qn[Jr]&&(Xr=qn[Jr]+" Tw\n"),0===Jr?en.push(Xr+Yr(Qr,Gr,mn)+Vr):Wr===Kr?en.push(Xr+Vr):Wr===$r&&en.push(Xr+Yr(Qr,Gr,mn)+Vr)}en=Wr===Kr?en.join(" Tj\nT* "):en.join(" Tj\n"),en+=" Tj\n";var ei="BT\n/";return ei+=Zr+" "+Hr+" Tf\n",ei+=kn(Hr*Cn)+" TL\n",ei+=ea+"\n",ei+=_n,ei+=en,Ur(ei+="ET"),An[Zr]=!0,vn};var Lo=mn.__private__.clip=mn.clip=function(en){return Ur("evenodd"===en?"W*":"W"),this};mn.clipEvenOdd=function(){return Lo("evenodd")},mn.__private__.discardPath=mn.discardPath=function(){return Ur("n"),this};var To=mn.__private__.isValidStyle=function(en){var tn=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(en)&&(tn=!0),tn};mn.__private__.setDefaultPathOperation=mn.setDefaultPathOperation=function(en){return To(en)&&(pn=en),this};var No=mn.__private__.getStyle=mn.getStyle=function(en){var tn=pn;switch(en){case"D":case"S":tn="S";break;case"F":tn="f";break;case"FD":case"DF":tn="B";break;case"f":case"f*":case"B":case"B*":tn=en}return tn},Io=mn.close=function(){return Ur("h"),this};mn.stroke=function(){return Ur("S"),this},mn.fill=function(en){return Oo("f",en),this},mn.fillEvenOdd=function(en){return Oo("f*",en),this},mn.fillStroke=function(en){return Oo("B",en),this},mn.fillStrokeEvenOdd=function(en){return Oo("B*",en),this};var Oo=function tr(en,tn){"object"==_typeof(tn)?Uo(tn,en):Ur(en)},Fo=function er(en){null===en||Sn===xn.ADVANCED&&void 0===en||(en=No(en),Ur(en))};function rr(en,tn,nn,rn,an){var sn=new j$2(tn||this.boundingBox,nn||this.xStep,rn||this.yStep,this.gState,an||this.matrix);sn.stream=this.stream;var cn=en+"$$"+this.cloneIndex+++"$$";return Si(cn,sn),sn}var Uo=function nr(en,tn){var nn=li[en.key],rn=si[nn];if(rn instanceof C)Ur("q"),Ur(Mo(tn)),rn.gState&&mn.setGState(rn.gState),Ur(en.matrix.toString()+" cm"),Ur("/"+nn+" sh"),Ur("Q");else if(rn instanceof j$2){var an=new _i(1,0,0,-1,0,Aa());en.matrix&&(an=an.multiply(en.matrix||xi),nn=rr.call(rn,en.key,en.boundingBox,en.xStep,en.yStep,an).id),Ur("q"),Ur("/Pattern cs"),Ur("/"+nn+" scn"),rn.gState&&mn.setGState(rn.gState),Ur(tn),Ur("Q")}},Mo=function ir(en){switch(en){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Ro=mn.moveTo=function(en,tn){return Ur(kn(Tn(en))+" "+kn(In(tn))+" m"),this},Do=mn.lineTo=function(en,tn){return Ur(kn(Tn(en))+" "+kn(In(tn))+" l"),this},jo=mn.curveTo=function(en,tn,nn,rn,an,sn){return Ur([kn(Tn(en)),kn(In(tn)),kn(Tn(nn)),kn(In(rn)),kn(Tn(an)),kn(In(sn)),"c"].join(" ")),this};mn.__private__.line=mn.line=function(en,tn,nn,rn,an){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||!To(an))throw new Error("Invalid arguments passed to jsPDF.line");return Sn===xn.COMPAT?this.lines([[nn-en,rn-tn]],en,tn,[1,1],an||"S"):this.lines([[nn-en,rn-tn]],en,tn,[1,1]).stroke()},mn.__private__.lines=mn.lines=function(en,tn,nn,rn,an,sn){var cn,un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn;if("number"==typeof en&&(wn=nn,nn=tn,tn=en,en=wn),rn=rn||[1,1],sn=sn||!1,isNaN(tn)||isNaN(nn)||!Array.isArray(en)||!Array.isArray(rn)||!To(an)||"boolean"!=typeof sn)throw new Error("Invalid arguments passed to jsPDF.lines");for(Ro(tn,nn),cn=rn[0],un=rn[1],pn=en.length,yn=tn,_n=nn,dn=0;dn<pn;dn++)2===(hn=en[dn]).length?(yn=hn[0]*cn+yn,_n=hn[1]*un+_n,Do(yn,_n)):(gn=hn[0]*cn+yn,An=hn[1]*un+_n,mn=hn[2]*cn+yn,vn=hn[3]*un+_n,yn=hn[4]*cn+yn,_n=hn[5]*un+_n,jo(gn,An,mn,vn,yn,_n));return sn&&Io(),Fo(an),this},mn.path=function(en){for(var tn=0;tn<en.length;tn++){var nn=en[tn],rn=nn.c;switch(nn.op){case"m":Ro(rn[0],rn[1]);break;case"l":Do(rn[0],rn[1]);break;case"c":jo.apply(this,rn);break;case"h":Io()}}return this},mn.__private__.rect=mn.rect=function(en,tn,nn,rn,an){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||!To(an))throw new Error("Invalid arguments passed to jsPDF.rect");return Sn===xn.COMPAT&&(rn=-rn),Ur([kn(Tn(en)),kn(In(tn)),kn(Tn(nn)),kn(Tn(rn)),"re"].join(" ")),Fo(an),this},mn.__private__.triangle=mn.triangle=function(en,tn,nn,rn,an,sn,cn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||isNaN(an)||isNaN(sn)||!To(cn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[nn-en,rn-tn],[an-nn,sn-rn],[en-an,tn-sn]],en,tn,[1,1],cn,!0),this},mn.__private__.roundedRect=mn.roundedRect=function(en,tn,nn,rn,an,sn,cn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||isNaN(an)||isNaN(sn)||!To(cn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var un=4/3*(Math.SQRT2-1);return an=Math.min(an,.5*nn),sn=Math.min(sn,.5*rn),this.lines([[nn-2*an,0],[an*un,0,an,sn-sn*un,an,sn],[0,rn-2*sn],[0,sn*un,-an*un,sn,-an,sn],[2*an-nn,0],[-an*un,0,-an,-sn*un,-an,-sn],[0,2*sn-rn],[0,-sn*un,an*un,-sn,an,-sn]],en+an,tn,[1,1],cn,!0),this},mn.__private__.ellipse=mn.ellipse=function(en,tn,nn,rn,an){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||!To(an))throw new Error("Invalid arguments passed to jsPDF.ellipse");var sn=4/3*(Math.SQRT2-1)*nn,cn=4/3*(Math.SQRT2-1)*rn;return Ro(en+nn,tn),jo(en+nn,tn-cn,en+sn,tn-rn,en,tn-rn),jo(en-sn,tn-rn,en-nn,tn-cn,en-nn,tn),jo(en-nn,tn+cn,en-sn,tn+rn,en,tn+rn),jo(en+sn,tn+rn,en+nn,tn+cn,en+nn,tn),Fo(an),this},mn.__private__.circle=mn.circle=function(en,tn,nn,rn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||!To(rn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(en,tn,nn,nn,rn)},mn.setFont=function(en,tn,nn){return nn&&(tn=Cn(tn,nn)),Zr=go(en,tn,{disableWarning:!1}),this};var Qo=mn.__private__.getFont=mn.getFont=function(){return ii[go.apply(mn,arguments)]};mn.__private__.getFontList=mn.getFontList=function(){var en,tn,nn={};for(en in oi)if(oi.hasOwnProperty(en))for(tn in nn[en]=[],oi[en])oi[en].hasOwnProperty(tn)&&nn[en].push(tn);return nn},mn.addFont=function(en,tn,nn,rn,an){var sn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==sn.indexOf(arguments[3])?an=arguments[3]:arguments[3]&&-1==sn.indexOf(arguments[3])&&(nn=Cn(nn,rn)),an=an||"Identity-H",ro.call(this,en,tn,nn,an)};var Ho,Go=en.lineWidth||.200025,Vo=mn.__private__.setLineWidth=mn.setLineWidth=function(en){return Ur(kn(Tn(en))+" w"),this};mn.__private__.setLineDash=O$1.API.setLineDash=O$1.API.setLineDashPattern=function(en,tn){if(en=en||[],tn=tn||0,isNaN(tn)||!Array.isArray(en))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return en=en.map((function(en){return kn(Tn(en))})).join(" "),tn=kn(Tn(tn)),Ur("["+en+"] "+tn+" d"),this};var zo=mn.__private__.getLineHeight=mn.getLineHeight=function(){return Hr*Ho};mn.__private__.getLineHeight=mn.getLineHeight=function(){return Hr*Ho};var Ko=mn.__private__.setLineHeightFactor=mn.setLineHeightFactor=function(en){return"number"==typeof(en=en||1.15)&&(Ho=en),this},qo=mn.__private__.getLineHeightFactor=mn.getLineHeightFactor=function(){return Ho};Ko(en.lineHeight);var $o=mn.__private__.getHorizontalCoordinate=function(en){return Tn(en)},Wo=mn.__private__.getVerticalCoordinate=function(en){return Sn===xn.ADVANCED?en:gi[Hn].mediaBox.topRightY-gi[Hn].mediaBox.bottomLeftY-Tn(en)},Xo=mn.__private__.getHorizontalCoordinateString=mn.getHorizontalCoordinateString=function(en){return kn($o(en))},Yo=mn.__private__.getVerticalCoordinateString=mn.getVerticalCoordinateString=function(en){return kn(Wo(en))},Jo=en.strokeColor||"0 G";mn.__private__.getStrokeColor=mn.getDrawColor=function(){return Ti(Jo)},mn.__private__.setStrokeColor=mn.setDrawColor=function(en,tn,nn,rn){return Jo=Ni({ch1:en,ch2:tn,ch3:nn,ch4:rn,pdfColorType:"draw",precision:2}),Ur(Jo),this};var Zo=en.fillColor||"0 g";mn.__private__.getFillColor=mn.getFillColor=function(){return Ti(Zo)},mn.__private__.setFillColor=mn.setFillColor=function(en,tn,nn,rn){return Zo=Ni({ch1:en,ch2:tn,ch3:nn,ch4:rn,pdfColorType:"fill",precision:2}),Ur(Zo),this};var ea=en.textColor||"0 g",ta=mn.__private__.getTextColor=mn.getTextColor=function(){return Ti(ea)};mn.__private__.setTextColor=mn.setTextColor=function(en,tn,nn,rn){return ea=Ni({ch1:en,ch2:tn,ch3:nn,ch4:rn,pdfColorType:"text",precision:3}),this};var na=en.charSpace,ra=mn.__private__.getCharSpace=mn.getCharSpace=function(){return parseFloat(na||0)};mn.__private__.setCharSpace=mn.setCharSpace=function(en){if(isNaN(en))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return na=en,this};var ia=0;mn.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},mn.__private__.setLineCap=mn.setLineCap=function(en){var tn=mn.CapJoinStyles[en];if(void 0===tn)throw new Error("Line cap style of '"+en+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ia=tn,Ur(tn+" J"),this};var oa=0;mn.__private__.setLineJoin=mn.setLineJoin=function(en){var tn=mn.CapJoinStyles[en];if(void 0===tn)throw new Error("Line join style of '"+en+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return oa=tn,Ur(tn+" j"),this},mn.__private__.setLineMiterLimit=mn.__private__.setMiterLimit=mn.setLineMiterLimit=mn.setMiterLimit=function(en){if(en=en||0,isNaN(en))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Ur(kn(Tn(en))+" M"),this},mn.GState=I,mn.setGState=function(en){(en="string"==typeof en?ui[di[en]]:aa(null,en)).equals(pi)||(Ur("/"+en.id+" gs"),pi=en)};var aa=function Pr(en,tn){if(!en||!di[en]){var nn=!1;for(var rn in ui)if(ui.hasOwnProperty(rn)&&ui[rn].equals(tn)){nn=!0;break}if(nn)tn=ui[rn];else{var an="GS"+(Object.keys(ui).length+1).toString(10);ui[an]=tn,tn.id=an}return en&&(di[en]=tn.id),fi.publish("addGState",tn),tn}};mn.addGState=function(en,tn){return aa(en,tn),this},mn.saveGraphicsState=function(){return Ur("q"),ai.push({key:Zr,size:Hr,color:ea}),this},mn.restoreGraphicsState=function(){Ur("Q");var en=ai.pop();return Zr=en.key,Hr=en.size,ea=en.color,pi=null,this},mn.setCurrentTransformationMatrix=function(en){return Ur(en.toString()+" cm"),this},mn.comment=function(en){return Ur("#"+en),this};var sa=function kr(en,tn){var nn=en||0;Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return nn},set:function set(en){isNaN(en)||(nn=parseFloat(en))}});var rn=tn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return rn},set:function set(en){isNaN(en)||(rn=parseFloat(en))}});var an="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function get(){return an},set:function set(en){an=en.toString()}}),this},la=function Ir(en,tn,nn,rn){sa.call(this,en,tn),this.type="rect";var an=nn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function get(){return an},set:function set(en){isNaN(en)||(an=parseFloat(en))}});var sn=rn||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function get(){return sn},set:function set(en){isNaN(en)||(sn=parseFloat(en))}}),this},ua=function Fr(){this.page=hi,this.currentPage=Hn,this.pages=Xn.slice(0),this.pagesContext=gi.slice(0),this.x=ti,this.y=ni,this.matrix=ri,this.width=ga(Hn),this.height=Aa(Hn),this.outputDestination=Jn,this.id="",this.objectNumber=-1};ua.prototype.restore=function(){hi=this.page,Hn=this.currentPage,gi=this.pagesContext,Xn=this.pages,ti=this.x,ni=this.y,ri=this.matrix,fa(Hn,this.width),ma(Hn,this.height),Jn=this.outputDestination};var da=function Cr(en,tn,nn,rn,an){yi.push(new ua),hi=Hn=0,Xn=[],ti=en,ni=tn,ri=an,lo([nn,rn])},pa=function jr(en){if(!vi[en]){var tn=new ua,nn="Xo"+(Object.keys(mi).length+1).toString(10);tn.id=nn,vi[en]=nn,mi[nn]=tn,fi.publish("addFormObject",tn),yi.pop().restore()}};for(var ha in mn.beginFormObject=function(en,tn,nn,rn,an){return da(en,tn,nn,rn,an),this},mn.endFormObject=function(en){return pa(en),this},mn.doFormObject=function(en,tn){var nn=mi[vi[en]];return Ur("q"),Ur(tn.toString()+" cm"),Ur("/"+nn.id+" Do"),Ur("Q"),this},mn.getFormObject=function(en){var tn=mi[vi[en]];return{x:tn.x,y:tn.y,width:tn.width,height:tn.height,matrix:tn.matrix}},mn.save=function(en,tn){return en=en||"generated.pdf",(tn=tn||{}).returnPromise=tn.returnPromise||!1,!1===tn.returnPromise?(oM(wo(_o()),en),"function"==typeof oM.unload&&tM.setTimeout&&setTimeout(oM.unload,911),this):new Promise((function(tn,nn){try{var rn=oM(wo(_o()),en);"function"==typeof oM.unload&&tM.setTimeout&&setTimeout(oM.unload,911),tn(rn)}catch(en){nn(en.message)}}))},O$1.API)O$1.API.hasOwnProperty(ha)&&("events"===ha&&O$1.API.events.length?function(en,tn){var nn,rn,an;for(an=tn.length-1;-1!==an;an--)nn=tn[an][0],rn=tn[an][1],en.subscribe.apply(en,[nn].concat("function"==typeof rn?[rn]:rn))}(fi,O$1.API.events):mn[ha]=O$1.API[ha]);var ga=mn.getPageWidth=function(en){return(gi[en=en||Hn].mediaBox.topRightX-gi[en].mediaBox.bottomLeftX)/ei},fa=mn.setPageWidth=function(en,tn){gi[en].mediaBox.topRightX=tn*ei+gi[en].mediaBox.bottomLeftX},Aa=mn.getPageHeight=function(en){return(gi[en=en||Hn].mediaBox.topRightY-gi[en].mediaBox.bottomLeftY)/ei},ma=mn.setPageHeight=function(en,tn){gi[en].mediaBox.topRightY=tn*ei+gi[en].mediaBox.bottomLeftY};return mn.internal={pdfEscape:so,getStyle:No,getFont:Qo,getFontSize:Vr,getCharSpace:ra,getTextColor:ta,getLineHeight:zo,getLineHeightFactor:qo,write:Rr,getHorizontalCoordinate:$o,getVerticalCoordinate:Wo,getCoordinateString:Xo,getVerticalCoordinateString:Yo,collections:{},newObject:Ci,newAdditionalObject:Ei,newObjectDeferred:ki,newObjectDeferredBegin:Bi,getFilters:Ii,putStream:Oi,events:fi,scaleFactor:ei,pageSize:{getWidth:function getWidth(){return ga(Hn)},setWidth:function setWidth(en){fa(Hn,en)},getHeight:function getHeight(){return Aa(Hn)},setHeight:function setHeight(en){ma(Hn,en)}},encryptionOptions:hn,encryption:Co,getEncryptor:ko,output:xo,getNumberOfPages:ho,pages:Xn,out:Ur,f2:Pn,f3:Ln,getPageInfo:Bo,getPageInfoByObjId:Eo,getCurrentPageInfo:Po,getPDFVersion:yn,Point:sa,Rectangle:la,Matrix:_i,hasHotfix:So},Object.defineProperty(mn.internal.pageSize,"width",{get:function get(){return ga(Hn)},set:function set(en){fa(Hn,en)},enumerable:!0,configurable:!0}),Object.defineProperty(mn.internal.pageSize,"height",{get:function get(){return Aa(Hn)},set:function set(en){ma(Hn,en)},enumerable:!0,configurable:!0}),io.call(mn,Qr),Zr="F1",co(an,nn),fi.publish("initialized"),mn}P.prototype.lsbFirstWord=function(en){return String.fromCharCode(en>>0&255,en>>8&255,en>>16&255,en>>24&255)},P.prototype.toHexString=function(en){return en.split("").map((function(en){return("0"+(255&en.charCodeAt(0)).toString(16)).slice(-2)})).join("")},P.prototype.hexToBytes=function(en){for(var tn=[],nn=0;nn<en.length;nn+=2)tn.push(String.fromCharCode(parseInt(en.substr(nn,2),16)));return tn.join("")},P.prototype.processOwnerPassword=function(en,tn){return S(A(tn).substr(0,5),en)},P.prototype.encryptor=function(en,tn){var nn=A(this.encryptionKey+String.fromCharCode(255&en,en>>8&255,en>>16&255,255&tn,tn>>8&255)).substr(0,10);return function(en){return S(nn,en)}},I.prototype.equals=function(en){var tn,nn="id,objectNumber,equals";if(!en||_typeof(en)!=_typeof(this))return!1;var rn=0;for(tn in this)if(!(nn.indexOf(tn)>=0)){if(this.hasOwnProperty(tn)&&!en.hasOwnProperty(tn))return!1;if(this[tn]!==en[tn])return!1;rn++}for(tn in en)en.hasOwnProperty(tn)&&nn.indexOf(tn)<0&&rn--;return 0===rn},O$1.API={events:[]},O$1.version="2.3.0";var lM=O$1.API,cM=1,uM=function E(en){return en.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},dM=function q(en){return en.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},pM=function R(en){return en.toFixed(2)},hM=function D(en){return en.toFixed(5)};lM.__acroform__={};var gM=function T(en,tn){en.prototype=Object.create(tn.prototype),en.prototype.constructor=en},fM=function U(en){return en*cM},AM=function z(en){var tn=new IM,nn=qM.internal.getHeight(en)||0,rn=qM.internal.getWidth(en)||0;return tn.BBox=[0,0,Number(pM(rn)),Number(pM(nn))],tn},mM=lM.__acroform__.setBit=function(en,tn){if(en=en||0,tn=tn||0,isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return en|1<<tn},vM=lM.__acroform__.clearBit=function(en,tn){if(en=en||0,tn=tn||0,isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return en&~(1<<tn)},yM=lM.__acroform__.getBit=function(en,tn){if(isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(en&1<<tn)?0:1},_M=lM.__acroform__.getBitForPdf=function(en,tn){if(isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return yM(en,tn-1)},bM=lM.__acroform__.setBitForPdf=function(en,tn){if(isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return mM(en,tn-1)},wM=lM.__acroform__.clearBitForPdf=function(en,tn){if(isNaN(en)||isNaN(tn))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return vM(en,tn-1)},xM=lM.__acroform__.calculateCoordinates=function(en,tn){var nn=tn.internal.getHorizontalCoordinate,rn=tn.internal.getVerticalCoordinate,an=en[0],sn=en[1],cn=en[2],un=en[3],dn={};return dn.lowerLeft_X=nn(an)||0,dn.lowerLeft_Y=rn(sn+un)||0,dn.upperRight_X=nn(an+cn)||0,dn.upperRight_Y=rn(sn)||0,[Number(pM(dn.lowerLeft_X)),Number(pM(dn.lowerLeft_Y)),Number(pM(dn.upperRight_X)),Number(pM(dn.upperRight_Y))]},SM=function K(en){if(en.appearanceStreamContent)return en.appearanceStreamContent;if(en.V||en.DV){var tn=[],nn=en._V||en.DV,rn=CM(en,nn),an=en.scope.internal.getFont(en.fontName,en.fontStyle).id;tn.push("/Tx BMC"),tn.push("q"),tn.push("BT"),tn.push(en.scope.__private__.encodeColorString(en.color)),tn.push("/"+an+" "+pM(rn.fontSize)+" Tf"),tn.push("1 0 0 1 0 0 Tm"),tn.push(rn.text),tn.push("ET"),tn.push("Q"),tn.push("EMC");var sn=AM(en);return sn.scope=en.scope,sn.stream=tn.join("\n"),sn}},CM=function Z(en,tn){var nn=0===en.fontSize?en.maxFontSize:en.fontSize,rn={text:"",fontSize:""},an=(tn=")"==(tn="("==tn.substr(0,1)?tn.substr(1):tn).substr(tn.length-1)?tn.substr(0,tn.length-1):tn).split(" "),sn=nn,cn=qM.internal.getHeight(en)||0;cn=cn<0?-cn:cn;var un=qM.internal.getWidth(en)||0;un=un<0?-un:un;var dn=function u(tn,nn,rn){if(tn+1<an.length){var sn=nn+" "+an[tn+1];return kM(sn,en,rn).width<=un-4}return!1};sn++;e:for(;sn>0;){tn="",sn--;var pn,hn,gn=kM("3",en,sn).height,An=en.multiline?cn-sn:(cn-gn)/2,mn=An+=2,vn=0,yn=0;if(sn<=0){tn="(...) Tj\n",tn+="% Width of Text: "+kM(tn,en,sn=12).width+", FieldWidth:"+un+"\n";break}var _n="",wn=0;for(var xn in an)if(an.hasOwnProperty(xn)){_n=" "==(_n+=an[xn]+" ").substr(_n.length-1)?_n.substr(0,_n.length-1):_n;var Sn=parseInt(xn),Cn=dn(Sn,_n,sn),kn=xn>=an.length-1;if(Cn&&!kn){_n+=" ";continue}if(Cn||kn){if(kn)yn=Sn;else if(en.multiline&&(gn+2)*(wn+2)+2>cn)continue e}else{if(!en.multiline)continue e;if((gn+2)*(wn+2)+2>cn)continue e;yn=Sn}for(var Bn="",En=vn;En<=yn;En++)Bn+=an[En]+" ";switch(Bn=" "==Bn.substr(Bn.length-1)?Bn.substr(0,Bn.length-1):Bn,hn=kM(Bn,en,sn).width,en.textAlign){case"right":pn=un-hn-2;break;case"center":pn=(un-hn)/2;break;case"left":default:pn=2}tn+=pM(pn)+" "+pM(mn)+" Td\n",tn+="("+uM(Bn)+") Tj\n",tn+=-pM(pn)+" 0 Td\n",mn=-(sn+2),hn=0,vn=yn+1,wn++,_n=""}break}return rn.text=tn,rn.fontSize=sn,rn},kM=function $(en,tn,nn){var rn=tn.scope.internal.getFont(tn.fontName,tn.fontStyle),an=tn.scope.getStringUnitWidth(en,{font:rn,fontSize:parseFloat(nn),charSpace:0})*parseFloat(nn);return{height:tn.scope.getStringUnitWidth("3",{font:rn,fontSize:parseFloat(nn),charSpace:0})*parseFloat(nn)*1.5,width:an}},BM={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},EM=function tt(en,tn){var nn={type:"reference",object:en};void 0===tn.internal.getPageInfo(en.page).pageContext.annotations.find((function(en){return en.type===nn.type&&en.object===nn.object}))&&tn.internal.getPageInfo(en.page).pageContext.annotations.push(nn)},PM=function rt(en,tn){if(tn.scope=en,void 0!==en.internal&&(void 0===en.internal.acroformPlugin||!1===en.internal.acroformPlugin.isInitialized)){if(FM.FieldNum=0,en.internal.acroformPlugin=JSON.parse(JSON.stringify(BM)),en.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");cM=en.internal.scaleFactor,en.internal.acroformPlugin.acroFormDictionaryRoot=new OM,en.internal.acroformPlugin.acroFormDictionaryRoot.scope=en,en.internal.acroformPlugin.acroFormDictionaryRoot._eventID=en.internal.events.subscribe("postPutResources",(function(){!function(en){en.internal.events.unsubscribe(en.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete en.internal.acroformPlugin.acroFormDictionaryRoot._eventID,en.internal.acroformPlugin.printedOut=!0}(en)})),en.internal.events.subscribe("buildDocument",(function(){!function(en){en.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var tn=en.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var nn in tn)if(tn.hasOwnProperty(nn)){var rn=tn[nn];rn.objId=void 0,rn.hasAnnotation&&EM(rn,en)}}(en)})),en.internal.events.subscribe("putCatalog",(function(){!function(en){if(void 0===en.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");en.internal.write("/AcroForm "+en.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(en)})),en.internal.events.subscribe("postPutPages",(function(tn){!function(en,tn){var nn=!en;for(var rn in en||(tn.internal.newObjectDeferredBegin(tn.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),tn.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),en=en||tn.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(en.hasOwnProperty(rn)){var an=en[rn],sn=[],cn=an.Rect;if(an.Rect&&(an.Rect=xM(an.Rect,tn)),tn.internal.newObjectDeferredBegin(an.objId,!0),an.DA=qM.createDefaultAppearanceStream(an),"object"==_typeof(an)&&"function"==typeof an.getKeyValueListForStream&&(sn=an.getKeyValueListForStream()),an.Rect=cn,an.hasAppearanceStream&&!an.appearanceStreamContent){var un=SM(an);sn.push({key:"AP",value:"<</N "+un+">>"}),tn.internal.acroformPlugin.xForms.push(un)}if(an.appearanceStreamContent){var dn="";for(var pn in an.appearanceStreamContent)if(an.appearanceStreamContent.hasOwnProperty(pn)){var hn=an.appearanceStreamContent[pn];if(dn+="/"+pn+" ",dn+="<<",Object.keys(hn).length>=1||Array.isArray(hn)){for(var rn in hn)if(hn.hasOwnProperty(rn)){var gn=hn[rn];"function"==typeof gn&&(gn=gn.call(tn,an)),dn+="/"+rn+" "+gn+" ",tn.internal.acroformPlugin.xForms.indexOf(gn)>=0||tn.internal.acroformPlugin.xForms.push(gn)}}else"function"==typeof(gn=hn)&&(gn=gn.call(tn,an)),dn+="/"+rn+" "+gn,tn.internal.acroformPlugin.xForms.indexOf(gn)>=0||tn.internal.acroformPlugin.xForms.push(gn);dn+=">>"}sn.push({key:"AP",value:"<<\n"+dn+">>"})}tn.internal.putStream({additionalKeyValues:sn,objectId:an.objId}),tn.internal.out("endobj")}nn&&function et(en,tn){for(var nn in en)if(en.hasOwnProperty(nn)){var rn=nn,an=en[nn];tn.internal.newObjectDeferredBegin(an.objId,!0),"object"==_typeof(an)&&"function"==typeof an.putStream&&an.putStream(),delete en[rn]}}(tn.internal.acroformPlugin.xForms,tn)}(tn,en)})),en.internal.acroformPlugin.isInitialized=!0}},LM=lM.__acroform__.arrayToPdfArray=function(en,tn,nn){var rn=function n(en){return en};if(Array.isArray(en)){for(var an="[",sn=0;sn<en.length;sn++)switch(0!==sn&&(an+=" "),_typeof(en[sn])){case"boolean":case"number":case"object":an+=en[sn].toString();break;case"string":"/"!==en[sn].substr(0,1)?(void 0!==tn&&nn&&(rn=nn.internal.getEncryptor(tn)),an+="("+uM(rn(en[sn].toString()))+")"):an+=en[sn].toString()}return an+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},TM=function it(en,tn,nn){var rn=function n(en){return en};return void 0!==tn&&nn&&(rn=nn.internal.getEncryptor(tn)),(en=en||"").toString(),"("+uM(rn(en))+")"},NM=function at(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function get(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function set(en){this._objId=en}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};NM.prototype.toString=function(){return this.objId+" 0 R"},NM.prototype.putStream=function(){var en=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:en,objectId:this.objId}),this.scope.internal.out("endobj")},NM.prototype.getKeyValueListForStream=function(){var en=[],tn=Object.getOwnPropertyNames(this).filter((function(en){return"content"!=en&&"appearanceStreamContent"!=en&&"scope"!=en&&"objId"!=en&&"_"!=en.substring(0,1)}));for(var nn in tn)if(!1===Object.getOwnPropertyDescriptor(this,tn[nn]).configurable){var rn=tn[nn],an=this[rn];an&&(Array.isArray(an)?en.push({key:rn,value:LM(an,this.objId,this.scope)}):an instanceof NM?(an.scope=this.scope,en.push({key:rn,value:an.objId+" 0 R"})):"function"!=typeof an&&en.push({key:rn,value:an}))}return en};var IM=function ot(){NM.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var en,tn=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function get(){return tn},set:function set(en){tn=en}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function set(tn){en=tn.trim()},get:function get(){return en||null}})};gM(IM,NM);var OM=function st(){NM.call(this);var en,tn=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function get(){return tn.length>0?tn:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function get(){return tn}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function get(){if(en){var tn=function e(en){return en};return this.scope&&(tn=this.scope.internal.getEncryptor(this.objId)),"("+uM(tn(en))+")"}},set:function set(tn){en=tn}})};gM(OM,NM);var FM=function ut(){NM.call(this);var en=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function get(){return en},set:function set(tn){if(isNaN(tn))throw new Error('Invalid value "'+tn+'" for attribute F supplied.');en=tn}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(en,3))},set:function set(tn){!0===Boolean(tn)?this.F=bM(en,3):this.F=wM(en,3)}});var tn=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function get(){return tn},set:function set(en){if(isNaN(en))throw new Error('Invalid value "'+en+'" for attribute Ff supplied.');tn=en}});var nn=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function get(){if(0!==nn.length)return nn},set:function set(en){nn=void 0!==en?en:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function get(){return!nn||isNaN(nn[0])?0:nn[0]},set:function set(en){nn[0]=en}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function get(){return!nn||isNaN(nn[1])?0:nn[1]},set:function set(en){nn[1]=en}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function get(){return!nn||isNaN(nn[2])?0:nn[2]},set:function set(en){nn[2]=en}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function get(){return!nn||isNaN(nn[3])?0:nn[3]},set:function set(en){nn[3]=en}});var rn="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function get(){return rn},set:function set(en){switch(en){case"/Btn":case"/Tx":case"/Ch":case"/Sig":rn=en;break;default:throw new Error('Invalid value "'+en+'" for attribute FT supplied.')}}});var an=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function get(){if(!an||an.length<1){if(this instanceof GM)return;an="FieldObject"+ut.FieldNum++}var en=function t(en){return en};return this.scope&&(en=this.scope.internal.getEncryptor(this.objId)),"("+uM(en(an))+")"},set:function set(en){an=en.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function get(){return an},set:function set(en){an=en}});var sn="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function get(){return sn},set:function set(en){sn=en}});var cn="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function get(){return cn},set:function set(en){cn=en}});var un=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function get(){return un},set:function set(en){un=en}});var dn=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function get(){return void 0===dn?50/cM:dn},set:function set(en){dn=en}});var pn="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function get(){return pn},set:function set(en){pn=en}});var hn="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function get(){if(!(!hn||this instanceof GM||this instanceof zM))return TM(hn,this.objId,this.scope)},set:function set(en){en=en.toString(),hn=en}});var gn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function get(){if(gn)return this instanceof jM==0?TM(gn,this.objId,this.scope):gn},set:function set(en){en=en.toString(),gn=this instanceof jM==0?"("===en.substr(0,1)?dM(en.substr(1,en.length-2)):dM(en):en}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function get(){return this instanceof jM==1?dM(gn.substr(1,gn.length-1)):gn},set:function set(en){en=en.toString(),gn=this instanceof jM==1?"/"+en:en}});var An=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function get(){if(An)return An},set:function set(en){this.V=en}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function get(){if(An)return this instanceof jM==0?TM(An,this.objId,this.scope):An},set:function set(en){en=en.toString(),An=this instanceof jM==0?"("===en.substr(0,1)?dM(en.substr(1,en.length-2)):dM(en):en}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function get(){return this instanceof jM==1?dM(An.substr(1,An.length-1)):An},set:function set(en){en=en.toString(),An=this instanceof jM==1?"/"+en:en}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function get(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function get(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function get(){return this.hasAnnotation?"/Widget":null}});var mn,vn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function get(){return vn},set:function set(en){en=Boolean(en),vn=en}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function get(){if(mn)return mn},set:function set(en){mn=en}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,1))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,1):this.Ff=wM(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,2))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,2):this.Ff=wM(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,3))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,3):this.Ff=wM(this.Ff,3)}});var yn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function get(){if(null!==yn)return yn},set:function set(en){if(-1===[0,1,2].indexOf(en))throw new Error('Invalid value "'+en+'" for attribute Q supplied.');yn=en}}),Object.defineProperty(this,"textAlign",{get:function get(){var en;switch(yn){case 0:default:en="left";break;case 1:en="center";break;case 2:en="right"}return en},configurable:!0,enumerable:!0,set:function set(en){switch(en){case"right":case 2:yn=2;break;case"center":case 1:yn=1;break;case"left":case 0:default:yn=0}}})};gM(FM,NM);var UM=function ct(){FM.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var en=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function get(){return en},set:function set(tn){en=tn}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function get(){return en},set:function set(tn){en=tn}});var tn=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function get(){return LM(tn,this.objId,this.scope)},set:function set(en){var nn,rn;rn=[],"string"==typeof(nn=en)&&(rn=function(en,tn,nn){nn||(nn=1);for(var rn,an=[];rn=tn.exec(en);)an.push(rn[nn]);return an}(nn,/\((.*?)\)/g)),tn=rn}}),this.getOptions=function(){return tn},this.setOptions=function(en){tn=en,this.sort&&tn.sort()},this.addOption=function(en){en=(en=en||"").toString(),tn.push(en),this.sort&&tn.sort()},this.removeOption=function(en,nn){for(nn=nn||!1,en=(en=en||"").toString();-1!==tn.indexOf(en)&&(tn.splice(tn.indexOf(en),1),!1!==nn););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,18))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,18):this.Ff=wM(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,19))},set:function set(en){!0===this.combo&&(!0===Boolean(en)?this.Ff=bM(this.Ff,19):this.Ff=wM(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,20))},set:function set(en){!0===Boolean(en)?(this.Ff=bM(this.Ff,20),tn.sort()):this.Ff=wM(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,22))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,22):this.Ff=wM(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,23))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,23):this.Ff=wM(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,27))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,27):this.Ff=wM(this.Ff,27)}}),this.hasAppearanceStream=!1};gM(UM,FM);var MM=function lt(){UM.call(this),this.fontName="helvetica",this.combo=!1};gM(MM,UM);var RM=function ht(){MM.call(this),this.combo=!0};gM(RM,MM);var DM=function ft(){RM.call(this),this.edit=!0};gM(DM,RM);var jM=function dt(){FM.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,15))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,15):this.Ff=wM(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,16))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,16):this.Ff=wM(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,17))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,17):this.Ff=wM(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,26))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,26):this.Ff=wM(this.Ff,26)}});var en,tn={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function get(){var en=function t(en){return en};if(this.scope&&(en=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(tn).length){var nn,rn=[];for(nn in rn.push("<<"),tn)rn.push("/"+nn+" ("+uM(en(tn[nn]))+")");return rn.push(">>"),rn.join("\n")}},set:function set(en){"object"==_typeof(en)&&(tn=en)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function get(){return tn.CA||""},set:function set(en){"string"==typeof en&&(tn.CA=en)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function get(){return en},set:function set(tn){en=tn}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function get(){return en.substr(1,en.length-1)},set:function set(tn){en="/"+tn}})};gM(jM,FM);var QM=function pt(){jM.call(this),this.pushButton=!0};gM(QM,jM);var HM=function gt(){jM.call(this),this.radio=!0,this.pushButton=!1;var en=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function get(){return en},set:function set(tn){en=void 0!==tn?tn:[]}})};gM(HM,jM);var GM=function mt(){var en,tn;FM.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function get(){return en},set:function set(tn){en=tn}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function get(){return tn},set:function set(en){tn=en}});var nn,rn={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function get(){var en=function t(en){return en};this.scope&&(en=this.scope.internal.getEncryptor(this.objId));var tn,nn=[];for(tn in nn.push("<<"),rn)nn.push("/"+tn+" ("+uM(en(rn[tn]))+")");return nn.push(">>"),nn.join("\n")},set:function set(en){"object"==_typeof(en)&&(rn=en)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function get(){return rn.CA||""},set:function set(en){"string"==typeof en&&(rn.CA=en)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function get(){return nn},set:function set(en){nn=en}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function get(){return nn.substr(1,nn.length-1)},set:function set(en){nn="/"+en}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=qM.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};gM(GM,FM),HM.prototype.setAppearance=function(en){if(!("createAppearanceStream"in en)||!("getCA"in en))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var tn in this.Kids)if(this.Kids.hasOwnProperty(tn)){var nn=this.Kids[tn];nn.appearanceStreamContent=en.createAppearanceStream(nn.optionName),nn.caption=en.getCA()}},HM.prototype.createOption=function(en){var tn=new GM;return tn.Parent=this,tn.optionName=en,this.Kids.push(tn),$M.call(this.scope,tn),tn};var VM=function vt(){jM.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=qM.CheckBox.createAppearanceStream()};gM(VM,jM);var zM=function bt(){FM.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,13))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,13):this.Ff=wM(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,21))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,21):this.Ff=wM(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,23))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,23):this.Ff=wM(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,24))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,24):this.Ff=wM(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,25))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,25):this.Ff=wM(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,26))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,26):this.Ff=wM(this.Ff,26)}});var en=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function get(){return en},set:function set(tn){en=tn}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function get(){return en},set:function set(tn){Number.isInteger(tn)&&(en=tn)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function get(){return this.V||this.DV}})};gM(zM,FM);var KM=function yt(){zM.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function get(){return Boolean(_M(this.Ff,14))},set:function set(en){!0===Boolean(en)?this.Ff=bM(this.Ff,14):this.Ff=wM(this.Ff,14)}}),this.password=!0};gM(KM,zM);var qM={CheckBox:{createAppearanceStream:function createAppearanceStream(){return{N:{On:qM.CheckBox.YesNormal},D:{On:qM.CheckBox.YesPushDown,Off:qM.CheckBox.OffPushDown}}},YesPushDown:function YesPushDown(en){var tn=AM(en);tn.scope=en.scope;var nn=[],rn=en.scope.internal.getFont(en.fontName,en.fontStyle).id,an=en.scope.__private__.encodeColorString(en.color),sn=CM(en,en.caption);return nn.push("0.749023 g"),nn.push("0 0 "+pM(qM.internal.getWidth(en))+" "+pM(qM.internal.getHeight(en))+" re"),nn.push("f"),nn.push("BMC"),nn.push("q"),nn.push("0 0 1 rg"),nn.push("/"+rn+" "+pM(sn.fontSize)+" Tf "+an),nn.push("BT"),nn.push(sn.text),nn.push("ET"),nn.push("Q"),nn.push("EMC"),tn.stream=nn.join("\n"),tn},YesNormal:function YesNormal(en){var tn=AM(en);tn.scope=en.scope;var nn=en.scope.internal.getFont(en.fontName,en.fontStyle).id,rn=en.scope.__private__.encodeColorString(en.color),an=[],sn=qM.internal.getHeight(en),cn=qM.internal.getWidth(en),un=CM(en,en.caption);return an.push("1 g"),an.push("0 0 "+pM(cn)+" "+pM(sn)+" re"),an.push("f"),an.push("q"),an.push("0 0 1 rg"),an.push("0 0 "+pM(cn-1)+" "+pM(sn-1)+" re"),an.push("W"),an.push("n"),an.push("0 g"),an.push("BT"),an.push("/"+nn+" "+pM(un.fontSize)+" Tf "+rn),an.push(un.text),an.push("ET"),an.push("Q"),tn.stream=an.join("\n"),tn},OffPushDown:function OffPushDown(en){var tn=AM(en);tn.scope=en.scope;var nn=[];return nn.push("0.749023 g"),nn.push("0 0 "+pM(qM.internal.getWidth(en))+" "+pM(qM.internal.getHeight(en))+" re"),nn.push("f"),tn.stream=nn.join("\n"),tn}},RadioButton:{Circle:{createAppearanceStream:function createAppearanceStream(en){var tn={D:{Off:qM.RadioButton.Circle.OffPushDown},N:{}};return tn.N[en]=qM.RadioButton.Circle.YesNormal,tn.D[en]=qM.RadioButton.Circle.YesPushDown,tn},getCA:function getCA(){return"l"},YesNormal:function YesNormal(en){var tn=AM(en);tn.scope=en.scope;var nn=[],rn=qM.internal.getWidth(en)<=qM.internal.getHeight(en)?qM.internal.getWidth(en)/4:qM.internal.getHeight(en)/4;rn=Number((.9*rn).toFixed(5));var an=qM.internal.Bezier_C,sn=Number((rn*an).toFixed(5));return nn.push("q"),nn.push("1 0 0 1 "+hM(qM.internal.getWidth(en)/2)+" "+hM(qM.internal.getHeight(en)/2)+" cm"),nn.push(rn+" 0 m"),nn.push(rn+" "+sn+" "+sn+" "+rn+" 0 "+rn+" c"),nn.push("-"+sn+" "+rn+" -"+rn+" "+sn+" -"+rn+" 0 c"),nn.push("-"+rn+" -"+sn+" -"+sn+" -"+rn+" 0 -"+rn+" c"),nn.push(sn+" -"+rn+" "+rn+" -"+sn+" "+rn+" 0 c"),nn.push("f"),nn.push("Q"),tn.stream=nn.join("\n"),tn},YesPushDown:function YesPushDown(en){var tn=AM(en);tn.scope=en.scope;var nn=[],rn=qM.internal.getWidth(en)<=qM.internal.getHeight(en)?qM.internal.getWidth(en)/4:qM.internal.getHeight(en)/4;rn=Number((.9*rn).toFixed(5));var an=Number((2*rn).toFixed(5)),sn=Number((an*qM.internal.Bezier_C).toFixed(5)),cn=Number((rn*qM.internal.Bezier_C).toFixed(5));return nn.push("0.749023 g"),nn.push("q"),nn.push("1 0 0 1 "+hM(qM.internal.getWidth(en)/2)+" "+hM(qM.internal.getHeight(en)/2)+" cm"),nn.push(an+" 0 m"),nn.push(an+" "+sn+" "+sn+" "+an+" 0 "+an+" c"),nn.push("-"+sn+" "+an+" -"+an+" "+sn+" -"+an+" 0 c"),nn.push("-"+an+" -"+sn+" -"+sn+" -"+an+" 0 -"+an+" c"),nn.push(sn+" -"+an+" "+an+" -"+sn+" "+an+" 0 c"),nn.push("f"),nn.push("Q"),nn.push("0 g"),nn.push("q"),nn.push("1 0 0 1 "+hM(qM.internal.getWidth(en)/2)+" "+hM(qM.internal.getHeight(en)/2)+" cm"),nn.push(rn+" 0 m"),nn.push(rn+" "+cn+" "+cn+" "+rn+" 0 "+rn+" c"),nn.push("-"+cn+" "+rn+" -"+rn+" "+cn+" -"+rn+" 0 c"),nn.push("-"+rn+" -"+cn+" -"+cn+" -"+rn+" 0 -"+rn+" c"),nn.push(cn+" -"+rn+" "+rn+" -"+cn+" "+rn+" 0 c"),nn.push("f"),nn.push("Q"),tn.stream=nn.join("\n"),tn},OffPushDown:function OffPushDown(en){var tn=AM(en);tn.scope=en.scope;var nn=[],rn=qM.internal.getWidth(en)<=qM.internal.getHeight(en)?qM.internal.getWidth(en)/4:qM.internal.getHeight(en)/4;rn=Number((.9*rn).toFixed(5));var an=Number((2*rn).toFixed(5)),sn=Number((an*qM.internal.Bezier_C).toFixed(5));return nn.push("0.749023 g"),nn.push("q"),nn.push("1 0 0 1 "+hM(qM.internal.getWidth(en)/2)+" "+hM(qM.internal.getHeight(en)/2)+" cm"),nn.push(an+" 0 m"),nn.push(an+" "+sn+" "+sn+" "+an+" 0 "+an+" c"),nn.push("-"+sn+" "+an+" -"+an+" "+sn+" -"+an+" 0 c"),nn.push("-"+an+" -"+sn+" -"+sn+" -"+an+" 0 -"+an+" c"),nn.push(sn+" -"+an+" "+an+" -"+sn+" "+an+" 0 c"),nn.push("f"),nn.push("Q"),tn.stream=nn.join("\n"),tn}},Cross:{createAppearanceStream:function createAppearanceStream(en){var tn={D:{Off:qM.RadioButton.Cross.OffPushDown},N:{}};return tn.N[en]=qM.RadioButton.Cross.YesNormal,tn.D[en]=qM.RadioButton.Cross.YesPushDown,tn},getCA:function getCA(){return"8"},YesNormal:function YesNormal(en){var tn=AM(en);tn.scope=en.scope;var nn=[],rn=qM.internal.calculateCross(en);return nn.push("q"),nn.push("1 1 "+pM(qM.internal.getWidth(en)-2)+" "+pM(qM.internal.getHeight(en)-2)+" re"),nn.push("W"),nn.push("n"),nn.push(pM(rn.x1.x)+" "+pM(rn.x1.y)+" m"),nn.push(pM(rn.x2.x)+" "+pM(rn.x2.y)+" l"),nn.push(pM(rn.x4.x)+" "+pM(rn.x4.y)+" m"),nn.push(pM(rn.x3.x)+" "+pM(rn.x3.y)+" l"),nn.push("s"),nn.push("Q"),tn.stream=nn.join("\n"),tn},YesPushDown:function YesPushDown(en){var tn=AM(en);tn.scope=en.scope;var nn=qM.internal.calculateCross(en),rn=[];return rn.push("0.749023 g"),rn.push("0 0 "+pM(qM.internal.getWidth(en))+" "+pM(qM.internal.getHeight(en))+" re"),rn.push("f"),rn.push("q"),rn.push("1 1 "+pM(qM.internal.getWidth(en)-2)+" "+pM(qM.internal.getHeight(en)-2)+" re"),rn.push("W"),rn.push("n"),rn.push(pM(nn.x1.x)+" "+pM(nn.x1.y)+" m"),rn.push(pM(nn.x2.x)+" "+pM(nn.x2.y)+" l"),rn.push(pM(nn.x4.x)+" "+pM(nn.x4.y)+" m"),rn.push(pM(nn.x3.x)+" "+pM(nn.x3.y)+" l"),rn.push("s"),rn.push("Q"),tn.stream=rn.join("\n"),tn},OffPushDown:function OffPushDown(en){var tn=AM(en);tn.scope=en.scope;var nn=[];return nn.push("0.749023 g"),nn.push("0 0 "+pM(qM.internal.getWidth(en))+" "+pM(qM.internal.getHeight(en))+" re"),nn.push("f"),tn.stream=nn.join("\n"),tn}}},createDefaultAppearanceStream:function createDefaultAppearanceStream(en){var tn=en.scope.internal.getFont(en.fontName,en.fontStyle).id,nn=en.scope.__private__.encodeColorString(en.color);return"/"+tn+" "+en.fontSize+" Tf "+nn}};qM.internal={Bezier_C:.551915024494,calculateCross:function calculateCross(en){var tn=qM.internal.getWidth(en),nn=qM.internal.getHeight(en),rn=Math.min(tn,nn);return{x1:{x:(tn-rn)/2,y:(nn-rn)/2+rn},x2:{x:(tn-rn)/2+rn,y:(nn-rn)/2},x3:{x:(tn-rn)/2,y:(nn-rn)/2},x4:{x:(tn-rn)/2+rn,y:(nn-rn)/2+rn}}}},qM.internal.getWidth=function(en){var tn=0;return"object"==_typeof(en)&&(tn=fM(en.Rect[2])),tn},qM.internal.getHeight=function(en){var tn=0;return"object"==_typeof(en)&&(tn=fM(en.Rect[3])),tn};var $M=lM.addField=function(en){if(PM(this,en),!(en instanceof FM))throw new Error("Invalid argument passed to jsPDF.addField.");var tn;return(tn=en).scope.internal.acroformPlugin.printedOut&&(tn.scope.internal.acroformPlugin.printedOut=!1,tn.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),tn.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(tn),en.page=en.scope.internal.getCurrentPageInfo().pageNumber,this};
|
||
/** @license
|
||
* jsPDF addImage plugin
|
||
* Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/
|
||
* 2013 Chris Dowling, https://github.com/gingerchris
|
||
* 2013 Trinh Ho, https://github.com/ineedfat
|
||
* 2013 Edwin Alejandro Perez, https://github.com/eaparango
|
||
* 2013 Norah Smith, https://github.com/burnburnrocket
|
||
* 2014 Diego Casorran, https://github.com/diegocr
|
||
* 2014 James Robb, https://github.com/jamesbrobb
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
*/
|
||
function At(en){return en.reduce((function(en,tn,nn){return en[tn]=nn,en}),{})}lM.AcroFormChoiceField=UM,lM.AcroFormListBox=MM,lM.AcroFormComboBox=RM,lM.AcroFormEditBox=DM,lM.AcroFormButton=jM,lM.AcroFormPushButton=QM,lM.AcroFormRadioButton=HM,lM.AcroFormCheckBox=VM,lM.AcroFormTextField=zM,lM.AcroFormPasswordField=KM,lM.AcroFormAppearance=qM,lM.AcroForm={ChoiceField:UM,ListBox:MM,ComboBox:RM,EditBox:DM,Button:jM,PushButton:QM,RadioButton:HM,CheckBox:VM,TextField:zM,PasswordField:KM,Appearance:qM},O$1.AcroForm={ChoiceField:UM,ListBox:MM,ComboBox:RM,EditBox:DM,Button:jM,PushButton:QM,RadioButton:HM,CheckBox:VM,TextField:zM,PasswordField:KM,Appearance:qM},function(en){en.__addimage__={};var tn="UNKNOWN",nn={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},rn=en.__addimage__.getImageFileTypeByImageData=function(en,rn){var an,sn;rn=rn||tn;var cn,un,dn,pn=tn;if(Bn(en))for(dn in nn)for(cn=nn[dn],an=0;an<cn.length;an+=1){for(un=!0,sn=0;sn<cn[an].length;sn+=1)if(void 0!==cn[an][sn]&&cn[an][sn]!==en[sn]){un=!1;break}if(!0===un){pn=dn;break}}else for(dn in nn)for(cn=nn[dn],an=0;an<cn.length;an+=1){for(un=!0,sn=0;sn<cn[an].length;sn+=1)if(void 0!==cn[an][sn]&&cn[an][sn]!==en.charCodeAt(sn)){un=!1;break}if(!0===un){pn=dn;break}}return pn===tn&&rn!==tn&&(pn=rn),pn},an=function i(en){for(var tn=this.internal.write,nn=this.internal.putStream,rn=(0,this.internal.getFilters)();-1!==rn.indexOf("FlateEncode");)rn.splice(rn.indexOf("FlateEncode"),1);en.objectId=this.internal.newObject();var an=[];if(an.push({key:"Type",value:"/XObject"}),an.push({key:"Subtype",value:"/Image"}),an.push({key:"Width",value:en.width}),an.push({key:"Height",value:en.height}),en.colorSpace===_n.INDEXED?an.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(en.palette.length/3-1)+" "+("sMask"in en&&void 0!==en.sMask?en.objectId+2:en.objectId+1)+" 0 R]"}):(an.push({key:"ColorSpace",value:"/"+en.colorSpace}),en.colorSpace===_n.DEVICE_CMYK&&an.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),an.push({key:"BitsPerComponent",value:en.bitsPerComponent}),"decodeParameters"in en&&void 0!==en.decodeParameters&&an.push({key:"DecodeParms",value:"<<"+en.decodeParameters+">>"}),"transparency"in en&&Array.isArray(en.transparency)){for(var sn="",cn=0,un=en.transparency.length;cn<un;cn++)sn+=en.transparency[cn]+" "+en.transparency[cn]+" ";an.push({key:"Mask",value:"["+sn+"]"})}void 0!==en.sMask&&an.push({key:"SMask",value:en.objectId+1+" 0 R"});var dn=void 0!==en.filter?["/"+en.filter]:void 0;if(nn({data:en.data,additionalKeyValues:an,alreadyAppliedFilters:dn,objectId:en.objectId}),tn("endobj"),"sMask"in en&&void 0!==en.sMask){var pn="/Predictor "+en.predictor+" /Colors 1 /BitsPerComponent "+en.bitsPerComponent+" /Columns "+en.width,hn={width:en.width,height:en.height,colorSpace:"DeviceGray",bitsPerComponent:en.bitsPerComponent,decodeParameters:pn,data:en.sMask};"filter"in en&&(hn.filter=en.filter),i.call(this,hn)}if(en.colorSpace===_n.INDEXED){var gn=this.internal.newObject();nn({data:Pn(new Uint8Array(en.palette)),objectId:gn}),tn("endobj")}},sn=function a(){var en=this.internal.collections.addImage_images;for(var tn in en)an.call(this,en[tn])},cn=function o(){var en,tn=this.internal.collections.addImage_images,nn=this.internal.write;for(var rn in tn)nn("/I"+(en=tn[rn]).index,en.objectId,"0","R")},un=function s(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",sn),this.internal.events.subscribe("putXobjectDict",cn))},dn=function l(){var en=this.internal.collections.addImage_images;return un.call(this),en},pn=function h(){return Object.keys(this.internal.collections.addImage_images).length},hn=function f(tn){return"function"==typeof en["process"+tn.toUpperCase()]},gn=function d(en){return"object"==_typeof(en)&&1===en.nodeType},An=function p(tn,nn){if("IMG"===tn.nodeName&&tn.hasAttribute("src")){var rn=""+tn.getAttribute("src");if(0===rn.indexOf("data:image/"))return rM(unescape(rn).split("base64,").pop());var an=en.loadFile(rn,!0);if(void 0!==an)return an}if("CANVAS"===tn.nodeName){var sn;switch(nn){case"PNG":sn="image/png";break;case"WEBP":sn="image/webp";break;case"JPEG":case"JPG":default:sn="image/jpeg"}return rM(tn.toDataURL(sn,1).split("base64,").pop())}},mn=function g(en){var tn=this.internal.collections.addImage_images;if(tn)for(var nn in tn)if(en===tn[nn].alias)return tn[nn]},vn=function m(en,tn,nn){return en||tn||(en=-96,tn=-96),en<0&&(en=-1*nn.width*72/en/this.internal.scaleFactor),tn<0&&(tn=-1*nn.height*72/tn/this.internal.scaleFactor),0===en&&(en=tn*nn.width/nn.height),0===tn&&(tn=en*nn.height/nn.width),[en,tn]},yn=function v(en,tn,nn,rn,an,sn){var cn=vn.call(this,nn,rn,an),un=this.internal.getCoordinateString,pn=this.internal.getVerticalCoordinateString,hn=dn.call(this);if(nn=cn[0],rn=cn[1],hn[an.index]=an,sn){sn*=Math.PI/180;var gn=Math.cos(sn),An=Math.sin(sn),mn=function d(en){return en.toFixed(4)},yn=[mn(gn),mn(An),mn(-1*An),mn(gn),0,0,"cm"]}this.internal.write("q"),sn?(this.internal.write([1,"0","0",1,un(en),pn(tn+rn),"cm"].join(" ")),this.internal.write(yn.join(" ")),this.internal.write([un(nn),"0","0",un(rn),"0","0","cm"].join(" "))):this.internal.write([un(nn),"0","0",un(rn),un(en),pn(tn+rn),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+an.index+" Do"),this.internal.write("Q")},_n=en.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};en.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var wn=en.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},xn=en.__addimage__.sHashCode=function(en){var tn,nn,rn=0;if("string"==typeof en)for(nn=en.length,tn=0;tn<nn;tn++)rn=(rn<<5)-rn+en.charCodeAt(tn),rn|=0;else if(Bn(en))for(nn=en.byteLength/2,tn=0;tn<nn;tn++)rn=(rn<<5)-rn+en[tn],rn|=0;return rn},Sn=en.__addimage__.validateStringAsBase64=function(en){(en=en||"").toString().trim();var tn=!0;return 0===en.length&&(tn=!1),en.length%4!=0&&(tn=!1),!1===/^[A-Za-z0-9+/]+$/.test(en.substr(0,en.length-2))&&(tn=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(en.substr(-2))&&(tn=!1),tn},Cn=en.__addimage__.extractImageFromDataUrl=function(en){var tn=(en=en||"").split("base64,"),nn=null;if(2===tn.length){var rn=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(tn[0]);Array.isArray(rn)&&(nn={mimeType:rn[1],charset:rn[2],data:tn[1]})}return nn},kn=en.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};en.__addimage__.isArrayBuffer=function(en){return kn()&&en instanceof ArrayBuffer};var Bn=en.__addimage__.isArrayBufferView=function(en){return kn()&&"undefined"!=typeof Uint32Array&&(en instanceof Int8Array||en instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&en instanceof Uint8ClampedArray||en instanceof Int16Array||en instanceof Uint16Array||en instanceof Int32Array||en instanceof Uint32Array||en instanceof Float32Array||en instanceof Float64Array)},En=en.__addimage__.binaryStringToUint8Array=function(en){for(var tn=en.length,nn=new Uint8Array(tn),rn=0;rn<tn;rn++)nn[rn]=en.charCodeAt(rn);return nn},Pn=en.__addimage__.arrayBufferToBinaryString=function(en){try{return rM(iM(String.fromCharCode.apply(null,en)))}catch(tn){if("undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.reduce)return new Uint8Array(en).reduce((function(en,tn){return en.push(String.fromCharCode(tn)),en}),[]).join("")}};en.addImage=function(){var en,nn,rn,an,sn,cn,dn,pn,hn;if("number"==typeof arguments[1]?(nn=tn,rn=arguments[1],an=arguments[2],sn=arguments[3],cn=arguments[4],dn=arguments[5],pn=arguments[6],hn=arguments[7]):(nn=arguments[1],rn=arguments[2],an=arguments[3],sn=arguments[4],cn=arguments[5],dn=arguments[6],pn=arguments[7],hn=arguments[8]),"object"==_typeof(en=arguments[0])&&!gn(en)&&"imageData"in en){var An=en;en=An.imageData,nn=An.format||nn||tn,rn=An.x||rn||0,an=An.y||an||0,sn=An.w||An.width||sn,cn=An.h||An.height||cn,dn=An.alias||dn,pn=An.compression||pn,hn=An.rotation||An.angle||hn}var mn=this.internal.getFilters();if(void 0===pn&&-1!==mn.indexOf("FlateEncode")&&(pn="SLOW"),isNaN(rn)||isNaN(an))throw new Error("Invalid coordinates passed to jsPDF.addImage");un.call(this);var vn=Ln.call(this,en,nn,dn,pn);return yn.call(this,rn,an,sn,cn,vn,hn),this};var Ln=function P(nn,an,sn,cn){var un,dn,vn;if("string"==typeof nn&&rn(nn)===tn){nn=unescape(nn);var yn=Tn(nn,!1);(""!==yn||void 0!==(yn=en.loadFile(nn,!0)))&&(nn=yn)}if(gn(nn)&&(nn=An(nn,an)),an=rn(nn,an),!hn(an))throw new Error("addImage does not support files of type '"+an+"', please ensure that a plugin for '"+an+"' support is added.");if((null==(vn=sn)||0===vn.length)&&(sn=function(en){return"string"==typeof en||Bn(en)?xn(en):null}(nn)),(un=mn.call(this,sn))||(kn()&&(nn instanceof Uint8Array||(dn=nn,nn=En(nn))),un=this["process"+an.toUpperCase()](nn,pn.call(this),sn,function(tn){return tn&&"string"==typeof tn&&(tn=tn.toUpperCase()),tn in en.image_compression?tn:wn.NONE}(cn),dn)),!un)throw new Error("An unknown error occurred whilst processing the image.");return un},Tn=en.__addimage__.convertBase64ToBinaryString=function(en,tn){var nn;tn="boolean"!=typeof tn||tn;var rn,an="";if("string"==typeof en){rn=null!==(nn=Cn(en))?nn.data:en;try{an=rM(rn)}catch(en){if(tn)throw Sn(rn)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+en.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return an};en.getImageProperties=function(nn){var an,sn,cn="";if(gn(nn)&&(nn=An(nn)),"string"==typeof nn&&rn(nn)===tn&&(""===(cn=Tn(nn,!1))&&(cn=en.loadFile(nn)||""),nn=cn),sn=rn(nn),!hn(sn))throw new Error("addImage does not support files of type '"+sn+"', please ensure that a plugin for '"+sn+"' support is added.");if(!kn()||nn instanceof Uint8Array||(nn=En(nn)),!(an=this["process"+sn.toUpperCase()](nn)))throw new Error("An unknown error occurred whilst processing the image");return an.fileType=sn,an}}(O$1.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(en){var tn=function e(en){if(void 0!==en&&""!=en)return!0};O$1.API.events.push(["addPage",function(en){this.internal.getPageInfo(en.pageNumber).pageContext.annotations=[]}]),en.events.push(["putPage",function(en){for(var nn,rn,an,sn=this.internal.getCoordinateString,cn=this.internal.getVerticalCoordinateString,un=this.internal.getPageInfoByObjId(en.objId),dn=en.pageContext.annotations,pn=!1,hn=0;hn<dn.length&&!pn;hn++)switch((nn=dn[hn]).type){case"link":(tn(nn.options.url)||tn(nn.options.pageNumber))&&(pn=!0);break;case"reference":case"text":case"freetext":pn=!0}if(0!=pn){this.internal.write("/Annots [");for(var gn=0;gn<dn.length;gn++){nn=dn[gn];var An=this.internal.pdfEscape,mn=this.internal.getEncryptor(en.objId);switch(nn.type){case"reference":this.internal.write(" "+nn.object.objId+" 0 R ");break;case"text":var vn=this.internal.newAdditionalObject(),yn=this.internal.newAdditionalObject(),_n=this.internal.getEncryptor(vn.objId),wn=nn.title||"Note";an="<</Type /Annot /Subtype /Text "+(rn="/Rect ["+sn(nn.bounds.x)+" "+cn(nn.bounds.y+nn.bounds.h)+" "+sn(nn.bounds.x+nn.bounds.w)+" "+cn(nn.bounds.y)+"] ")+"/Contents ("+An(_n(nn.contents))+")",an+=" /Popup "+yn.objId+" 0 R",an+=" /P "+un.objId+" 0 R",an+=" /T ("+An(_n(wn))+") >>",vn.content=an;var xn=vn.objId+" 0 R";an="<</Type /Annot /Subtype /Popup "+(rn="/Rect ["+sn(nn.bounds.x+30)+" "+cn(nn.bounds.y+nn.bounds.h)+" "+sn(nn.bounds.x+nn.bounds.w+30)+" "+cn(nn.bounds.y)+"] ")+" /Parent "+xn,nn.open&&(an+=" /Open true"),an+=" >>",yn.content=an,this.internal.write(vn.objId,"0 R",yn.objId,"0 R");break;case"freetext":rn="/Rect ["+sn(nn.bounds.x)+" "+cn(nn.bounds.y)+" "+sn(nn.bounds.x+nn.bounds.w)+" "+cn(nn.bounds.y+nn.bounds.h)+"] ";var Sn=nn.color||"#000000";an="<</Type /Annot /Subtype /FreeText "+rn+"/Contents ("+An(mn(nn.contents))+")",an+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Sn+")",an+=" /Border [0 0 0]",an+=" >>",this.internal.write(an);break;case"link":if(nn.options.name){var Cn=this.annotations._nameMap[nn.options.name];nn.options.pageNumber=Cn.page,nn.options.top=Cn.y}else nn.options.top||(nn.options.top=0);if(rn="/Rect ["+nn.finalBounds.x+" "+nn.finalBounds.y+" "+nn.finalBounds.w+" "+nn.finalBounds.h+"] ",an="",nn.options.url)an="<</Type /Annot /Subtype /Link "+rn+"/Border [0 0 0] /A <</S /URI /URI ("+An(mn(nn.options.url))+") >>";else if(nn.options.pageNumber)switch(an="<</Type /Annot /Subtype /Link "+rn+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(nn.options.pageNumber).objId+" 0 R",nn.options.magFactor=nn.options.magFactor||"XYZ",nn.options.magFactor){case"Fit":an+=" /Fit]";break;case"FitH":an+=" /FitH "+nn.options.top+"]";break;case"FitV":nn.options.left=nn.options.left||0,an+=" /FitV "+nn.options.left+"]";break;case"XYZ":default:var kn=cn(nn.options.top);nn.options.left=nn.options.left||0,void 0===nn.options.zoom&&(nn.options.zoom=0),an+=" /XYZ "+nn.options.left+" "+kn+" "+nn.options.zoom+"]"}""!=an&&(an+=" >>",this.internal.write(an))}}this.internal.write("]")}}]),en.createAnnotation=function(en){var tn=this.internal.getCurrentPageInfo();switch(en.type){case"link":this.link(en.bounds.x,en.bounds.y,en.bounds.w,en.bounds.h,en);break;case"text":case"freetext":tn.pageContext.annotations.push(en)}},en.link=function(en,tn,nn,rn,an){var sn=this.internal.getCurrentPageInfo(),cn=this.internal.getCoordinateString,un=this.internal.getVerticalCoordinateString;sn.pageContext.annotations.push({finalBounds:{x:cn(en),y:un(tn),w:cn(en+nn),h:un(tn+rn)},options:an,type:"link"})},en.textWithLink=function(en,tn,nn,rn){var an=this.getTextWidth(en),sn=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(en,tn,nn,rn),nn+=.2*sn,"center"===rn.align&&(tn-=an/2),"right"===rn.align&&(tn-=an),this.link(tn,nn-sn,an,sn,rn),an},en.getTextWidth=function(en){var tn=this.internal.getFontSize();return this.getStringUnitWidth(en)*tn/this.internal.scaleFactor}}(O$1.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(en){var tn={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},nn={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},rn={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},an=[1570,1571,1573,1575];en.__arabicParser__={};var sn=en.__arabicParser__.isInArabicSubstitutionA=function(en){return void 0!==tn[en.charCodeAt(0)]},cn=en.__arabicParser__.isArabicLetter=function(en){return"string"==typeof en&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(en)},un=en.__arabicParser__.isArabicEndLetter=function(en){return cn(en)&&sn(en)&&tn[en.charCodeAt(0)].length<=2},dn=en.__arabicParser__.isArabicAlfLetter=function(en){return cn(en)&&an.indexOf(en.charCodeAt(0))>=0};en.__arabicParser__.arabicLetterHasIsolatedForm=function(en){return cn(en)&&sn(en)&&tn[en.charCodeAt(0)].length>=1};var pn=en.__arabicParser__.arabicLetterHasFinalForm=function(en){return cn(en)&&sn(en)&&tn[en.charCodeAt(0)].length>=2};en.__arabicParser__.arabicLetterHasInitialForm=function(en){return cn(en)&&sn(en)&&tn[en.charCodeAt(0)].length>=3};var hn=en.__arabicParser__.arabicLetterHasMedialForm=function(en){return cn(en)&&sn(en)&&4==tn[en.charCodeAt(0)].length},gn=en.__arabicParser__.resolveLigatures=function(en){var tn=0,rn=nn,an="",sn=0;for(tn=0;tn<en.length;tn+=1)void 0!==rn[en.charCodeAt(tn)]?(sn++,"number"==typeof(rn=rn[en.charCodeAt(tn)])&&(an+=String.fromCharCode(rn),rn=nn,sn=0),tn===en.length-1&&(rn=nn,an+=en.charAt(tn-(sn-1)),tn-=sn-1,sn=0)):(rn=nn,an+=en.charAt(tn-sn),tn-=sn,sn=0);return an};en.__arabicParser__.isArabicDiacritic=function(en){return void 0!==en&&void 0!==rn[en.charCodeAt(0)]};var An=en.__arabicParser__.getCorrectForm=function(en,tn,nn){return cn(en)?!1===sn(en)?-1:!pn(en)||!cn(tn)&&!cn(nn)||!cn(nn)&&un(tn)||un(en)&&!cn(tn)||un(en)&&dn(tn)||un(en)&&un(tn)?0:hn(en)&&cn(tn)&&!un(tn)&&cn(nn)&&pn(nn)?3:un(en)||!cn(nn)?1:2:-1},mn=function d(en){var nn=0,rn=0,an=0,sn="",un="",dn="",pn=(en=en||"").split("\\s+"),hn=[];for(nn=0;nn<pn.length;nn+=1){for(hn.push(""),rn=0;rn<pn[nn].length;rn+=1)sn=pn[nn][rn],un=pn[nn][rn-1],dn=pn[nn][rn+1],cn(sn)?(an=An(sn,un,dn),hn[nn]+=-1!==an?String.fromCharCode(tn[sn.charCodeAt(0)][an]):sn):hn[nn]+=sn;hn[nn]=gn(hn[nn])}return hn.join(" ")},vn=en.__arabicParser__.processArabic=en.processArabic=function(){var en,tn="string"==typeof arguments[0]?arguments[0]:arguments[0].text,nn=[];if(Array.isArray(tn)){var rn=0;for(nn=[],rn=0;rn<tn.length;rn+=1)Array.isArray(tn[rn])?nn.push([mn(tn[rn][0]),tn[rn][1],tn[rn][2]]):nn.push([mn(tn[rn])]);en=nn}else en=mn(tn);return"string"==typeof arguments[0]?en:(arguments[0].text=en,arguments[0])};en.events.push(["preProcessText",vn])}(O$1.API),O$1.API.autoPrint=function(en){var tn;switch((en=en||{}).variant=en.variant||"non-conform",en.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){tn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+tn+" 0 R")}))}return this},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(en){var tn=function e(){var en=void 0;Object.defineProperty(this,"pdf",{get:function get(){return en},set:function set(tn){en=tn}});var e=150;Object.defineProperty(this,"width",{get:function get(){return e},set:function set(en){e=isNaN(en)||!1===Number.isInteger(en)||en<0?150:en,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var tn=300;Object.defineProperty(this,"height",{get:function get(){return tn},set:function set(en){tn=isNaN(en)||!1===Number.isInteger(en)||en<0?300:en,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=tn+1)}});var nn=[];Object.defineProperty(this,"childNodes",{get:function get(){return nn},set:function set(en){nn=en}});var rn={};Object.defineProperty(this,"style",{get:function get(){return rn},set:function set(en){rn=en}}),Object.defineProperty(this,"parentNode",{})};tn.prototype.getContext=function(en,tn){var nn;if("2d"!==(en=en||"2d"))return null;for(nn in tn)this.pdf.context2d.hasOwnProperty(nn)&&(this.pdf.context2d[nn]=tn[nn]);return this.pdf.context2d._canvas=this,this.pdf.context2d},tn.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},en.events.push(["initialized",function(){this.canvas=new tn,this.canvas.pdf=this}])}(O$1.API),
|
||
/**
|
||
* @license
|
||
* ====================================================================
|
||
* Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com
|
||
* 2013 Eduardo Menezes de Morais, eduardo.morais@usp.br
|
||
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
||
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
||
* 2014 James Hall, james@parall.ax
|
||
* 2014 Diego Casorran, https://github.com/diegocr
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
function(en){var tn={left:0,top:0,bottom:0,right:0},nn=!1,rn=function n(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},tn),this.internal.__cell__.margins.width=this.getPageWidth(),an.call(this))},an=function i(){this.internal.__cell__.lastCell=new sn,this.internal.__cell__.pages=1},sn=function a(){var en=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return en},set:function set(tn){en=tn}});var tn=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return tn},set:function set(en){tn=en}});var nn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function get(){return nn},set:function set(en){nn=en}});var rn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function get(){return rn},set:function set(en){rn=en}});var an=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function get(){return an},set:function set(en){an=en}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function get(){return a},set:function set(en){a=en}});var sn=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function get(){return sn},set:function set(en){sn=en}}),this};sn.prototype.clone=function(){return new sn(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},sn.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},en.setHeaderFunction=function(en){return rn.call(this),this.internal.__cell__.headerFunction="function"==typeof en?en:void 0,this},en.getTextDimensions=function(en,tn){rn.call(this);var nn=(tn=tn||{}).fontSize||this.getFontSize(),an=tn.font||this.getFont(),sn=tn.scaleFactor||this.internal.scaleFactor,cn=0,un=0,dn=0;if(!Array.isArray(en)&&"string"!=typeof en){if("number"!=typeof en)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");en=String(en)}var pn=tn.maxWidth;pn>0?"string"==typeof en?en=this.splitTextToSize(en,pn):"[object Array]"===Object.prototype.toString.call(en)&&(en=en.reduce((function(en,tn){return en.concat(scope.splitTextToSize(tn,pn))}),[])):en=Array.isArray(en)?en:[en];for(var hn=0;hn<en.length;hn++)cn<(dn=this.getStringUnitWidth(en[hn],{font:an})*nn)&&(cn=dn);return 0!==cn&&(un=en.length),{w:cn/=sn,h:Math.max((un*nn*this.getLineHeightFactor()-nn*(this.getLineHeightFactor()-1))/sn,0)}},en.cellAddPage=function(){rn.call(this),this.addPage();var en=this.internal.__cell__.margins||tn;return this.internal.__cell__.lastCell=new sn(en.left,en.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var cn=en.cell=function(){var en;en=arguments[0]instanceof sn?arguments[0]:new sn(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),rn.call(this);var an=this.internal.__cell__.lastCell,cn=this.internal.__cell__.padding,un=this.internal.__cell__.margins||tn,dn=this.internal.__cell__.tableHeaderRow,pn=this.internal.__cell__.printHeaders;return void 0!==an.lineNumber&&(an.lineNumber===en.lineNumber?(en.x=(an.x||0)+(an.width||0),en.y=an.y||0):an.y+an.height+en.height+un.bottom>this.getPageHeight()?(this.cellAddPage(),en.y=un.top,pn&&dn&&(this.printHeaderRow(en.lineNumber,!0),en.y+=dn[0].height)):en.y=an.y+an.height||en.y),void 0!==en.text[0]&&(this.rect(en.x,en.y,en.width,en.height,!0===nn?"FD":void 0),"right"===en.align?this.text(en.text,en.x+en.width-cn,en.y+cn,{align:"right",baseline:"top"}):"center"===en.align?this.text(en.text,en.x+en.width/2,en.y+cn,{align:"center",baseline:"top",maxWidth:en.width-cn-cn}):this.text(en.text,en.x+cn,en.y+cn,{align:"left",baseline:"top",maxWidth:en.width-cn-cn})),this.internal.__cell__.lastCell=en,this};en.table=function(en,nn,dn,pn,hn){if(rn.call(this),!dn)throw new Error("No data for PDF table.");var gn,An,mn,vn,yn=[],_n=[],wn=[],xn={},Sn={},Cn=[],kn=[],Bn=(hn=hn||{}).autoSize||!1,En=!1!==hn.printHeaders,Pn=hn.css&&void 0!==hn.css["font-size"]?16*hn.css["font-size"]:hn.fontSize||12,Ln=hn.margins||Object.assign({width:this.getPageWidth()},tn),Tn="number"==typeof hn.padding?hn.padding:3,Nn=hn.headerBackgroundColor||"#c8c8c8";if(an.call(this),this.internal.__cell__.printHeaders=En,this.internal.__cell__.margins=Ln,this.internal.__cell__.table_font_size=Pn,this.internal.__cell__.padding=Tn,this.internal.__cell__.headerBackgroundColor=Nn,this.setFontSize(Pn),null==pn)_n=yn=Object.keys(dn[0]),wn=yn.map((function(){return"left"}));else if(Array.isArray(pn)&&"object"==_typeof(pn[0]))for(yn=pn.map((function(en){return en.name})),_n=pn.map((function(en){return en.prompt||en.name||""})),wn=pn.map((function(en){return en.align||"left"})),gn=0;gn<pn.length;gn+=1)Sn[pn[gn].name]=pn[gn].width*(19.049976/25.4);else Array.isArray(pn)&&"string"==typeof pn[0]&&(_n=yn=pn,wn=yn.map((function(){return"left"})));if(Bn)for(gn=0;gn<yn.length;gn+=1){for(xn[vn=yn[gn]]=dn.map((function(en){return en[vn]})),this.setFont(void 0,"bold"),Cn.push(this.getTextDimensions(_n[gn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),An=xn[vn],this.setFont(void 0,"normal"),mn=0;mn<An.length;mn+=1)Cn.push(this.getTextDimensions(An[mn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Sn[vn]=Math.max.apply(null,Cn)+Tn+Tn,Cn=[]}if(En){var In={};for(gn=0;gn<yn.length;gn+=1)In[yn[gn]]={},In[yn[gn]].text=_n[gn],In[yn[gn]].align=wn[gn];var On=un.call(this,In,Sn);kn=yn.map((function(tn){return new sn(en,nn,Sn[tn],On,In[tn].text,void 0,In[tn].align)})),this.setTableHeaderRow(kn),this.printHeaderRow(1,!1)}var Fn=pn.reduce((function(en,tn){return en[tn.name]=tn.align,en}),{});for(gn=0;gn<dn.length;gn+=1){var Un=un.call(this,dn[gn],Sn);for(mn=0;mn<yn.length;mn+=1)cn.call(this,new sn(en,nn,Sn[yn[mn]],Un,dn[gn][yn[mn]],gn+2,Fn[yn[mn]]))}return this.internal.__cell__.table_x=en,this.internal.__cell__.table_y=nn,this};var un=function s(en,tn){var nn=this.internal.__cell__.padding,rn=this.internal.__cell__.table_font_size,an=this.internal.scaleFactor;return Object.keys(en).map((function(rn){var an=en[rn];return this.splitTextToSize(an.hasOwnProperty("text")?an.text:an,tn[rn]-nn-nn)}),this).map((function(en){return this.getLineHeightFactor()*en.length*rn/an+nn+nn}),this).reduce((function(en,tn){return Math.max(en,tn)}),0)};en.setTableHeaderRow=function(en){rn.call(this),this.internal.__cell__.tableHeaderRow=en},en.printHeaderRow=function(en,tn){if(rn.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var an;if(nn=!0,"function"==typeof this.internal.__cell__.headerFunction){var un=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new sn(un[0],un[1],un[2],un[3],void 0,-1)}this.setFont(void 0,"bold");for(var dn=[],pn=0;pn<this.internal.__cell__.tableHeaderRow.length;pn+=1)an=this.internal.__cell__.tableHeaderRow[pn].clone(),tn&&(an.y=this.internal.__cell__.margins.top||0,dn.push(an)),an.lineNumber=en,this.setFillColor(this.internal.__cell__.headerBackgroundColor),cn.call(this,an);dn.length>0&&this.setTableHeaderRow(dn),this.setFont(void 0,"normal"),nn=!1}}(O$1.API);var WM={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},XM=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],YM=At(XM),JM=[100,200,300,400,500,600,700,800,900],ZM=At(JM);function It(en){var tn=en.family.replace(/"|'/g,"").toLowerCase(),nn=function(en){return WM[en=en||"normal"]?en:"normal"}(en.style),rn=function(en){if(!en)return 400;if("number"==typeof en)return en>=100&&en<=900&&en%100==0?en:400;if(/^\d00$/.test(en))return parseInt(en);switch(en){case"bold":return 700;case"normal":default:return 400}}(en.weight),an=function(en){return"number"==typeof YM[en=en||"normal"]?en:"normal"}(en.stretch);return{family:tn,style:nn,weight:rn,stretch:an,src:en.src||[],ref:en.ref||{name:tn,style:[an,nn,rn].join(" ")}}}function Ft(en,tn,nn,rn){var an;for(an=nn;an>=0&&an<tn.length;an+=rn)if(en[tn[an]])return en[tn[an]];for(an=nn;an>=0&&an<tn.length;an-=rn)if(en[tn[an]])return en[tn[an]]}var eR={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},tR={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ot(en){return[en.stretch,en.style,en.weight,en.family].join(" ")}function Mt(en){return en.trimLeft()}function Et(en,tn){for(var nn=0;nn<en.length;){if(en.charAt(nn)===tn)return[en.substring(0,nn),en.substring(nn+1)];nn+=1}return null}function qt(en){var tn=en.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===tn?null:[tn[0],en.substring(tn[0].length)]}var nR,rR,iR,oR,aR=["times"];!function(en){var tn,nn,rn,an,sn,cn,un,dn,pn,hn=function f(en){return en=en||{},this.isStrokeTransparent=en.isStrokeTransparent||!1,this.strokeOpacity=en.strokeOpacity||1,this.strokeStyle=en.strokeStyle||"#000000",this.fillStyle=en.fillStyle||"#000000",this.isFillTransparent=en.isFillTransparent||!1,this.fillOpacity=en.fillOpacity||1,this.font=en.font||"10px sans-serif",this.textBaseline=en.textBaseline||"alphabetic",this.textAlign=en.textAlign||"left",this.lineWidth=en.lineWidth||1,this.lineJoin=en.lineJoin||"miter",this.lineCap=en.lineCap||"butt",this.path=en.path||[],this.transform=void 0!==en.transform?en.transform.clone():new dn,this.globalCompositeOperation=en.globalCompositeOperation||"normal",this.globalAlpha=en.globalAlpha||1,this.clip_path=en.clip_path||[],this.currentPoint=en.currentPoint||new cn,this.miterLimit=en.miterLimit||10,this.lastPoint=en.lastPoint||new cn,this.ignoreClearRect="boolean"!=typeof en.ignoreClearRect||en.ignoreClearRect,this};en.events.push(["initialized",function(){this.context2d=new gn(this),tn=this.internal.f2,nn=this.internal.getCoordinateString,rn=this.internal.getVerticalCoordinateString,an=this.internal.getHorizontalCoordinate,sn=this.internal.getVerticalCoordinate,cn=this.internal.Point,un=this.internal.Rectangle,dn=this.internal.Matrix,pn=new hn}]);var gn=function d(en){Object.defineProperty(this,"canvas",{get:function get(){return{parentNode:!1,style:!1}}});var tn=en;Object.defineProperty(this,"pdf",{get:function get(){return tn}});var nn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function get(){return nn},set:function set(en){nn=Boolean(en)}});var rn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function get(){return rn},set:function set(en){rn=Boolean(en)}});var an=0;Object.defineProperty(this,"posX",{get:function get(){return an},set:function set(en){isNaN(en)||(an=en)}});var sn=0;Object.defineProperty(this,"posY",{get:function get(){return sn},set:function set(en){isNaN(en)||(sn=en)}});var cn=!1;Object.defineProperty(this,"autoPaging",{get:function get(){return cn},set:function set(en){cn=Boolean(en)}});var un=0;Object.defineProperty(this,"lastBreak",{get:function get(){return un},set:function set(en){un=en}});var dn=[];Object.defineProperty(this,"pageBreaks",{get:function get(){return dn},set:function set(en){dn=en}}),Object.defineProperty(this,"ctx",{get:function get(){return pn},set:function set(en){en instanceof hn&&(pn=en)}}),Object.defineProperty(this,"path",{get:function get(){return pn.path},set:function set(en){pn.path=en}});var gn=[];Object.defineProperty(this,"ctxStack",{get:function get(){return gn},set:function set(en){gn=en}}),Object.defineProperty(this,"fillStyle",{get:function get(){return this.ctx.fillStyle},set:function set(en){var tn;tn=An(en),this.ctx.fillStyle=tn.style,this.ctx.isFillTransparent=0===tn.a,this.ctx.fillOpacity=tn.a,this.pdf.setFillColor(tn.r,tn.g,tn.b,{a:tn.a}),this.pdf.setTextColor(tn.r,tn.g,tn.b,{a:tn.a})}}),Object.defineProperty(this,"strokeStyle",{get:function get(){return this.ctx.strokeStyle},set:function set(en){var tn=An(en);this.ctx.strokeStyle=tn.style,this.ctx.isStrokeTransparent=0===tn.a,this.ctx.strokeOpacity=tn.a,0===tn.a?this.pdf.setDrawColor(255,255,255):(tn.a,this.pdf.setDrawColor(tn.r,tn.g,tn.b))}}),Object.defineProperty(this,"lineCap",{get:function get(){return this.ctx.lineCap},set:function set(en){-1!==["butt","round","square"].indexOf(en)&&(this.ctx.lineCap=en,this.pdf.setLineCap(en))}}),Object.defineProperty(this,"lineWidth",{get:function get(){return this.ctx.lineWidth},set:function set(en){isNaN(en)||(this.ctx.lineWidth=en,this.pdf.setLineWidth(en))}}),Object.defineProperty(this,"lineJoin",{get:function get(){return this.ctx.lineJoin},set:function set(en){-1!==["bevel","round","miter"].indexOf(en)&&(this.ctx.lineJoin=en,this.pdf.setLineJoin(en))}}),Object.defineProperty(this,"miterLimit",{get:function get(){return this.ctx.miterLimit},set:function set(en){isNaN(en)||(this.ctx.miterLimit=en,this.pdf.setMiterLimit(en))}}),Object.defineProperty(this,"textBaseline",{get:function get(){return this.ctx.textBaseline},set:function set(en){this.ctx.textBaseline=en}}),Object.defineProperty(this,"textAlign",{get:function get(){return this.ctx.textAlign},set:function set(en){-1!==["right","end","center","left","start"].indexOf(en)&&(this.ctx.textAlign=en)}});var mn=null;function d(en,tn){if(null===mn){var nn=function(en){var tn=[];return Object.keys(en).forEach((function(nn){en[nn].forEach((function(en){var rn=null;switch(en){case"bold":rn={family:nn,weight:"bold"};break;case"italic":rn={family:nn,style:"italic"};break;case"bolditalic":rn={family:nn,weight:"bold",style:"italic"};break;case"":case"normal":rn={family:nn}}null!==rn&&(rn.ref={name:nn,style:en},tn.push(rn))}))})),tn}(en.getFontList());mn=function(en){for(var tn={},nn=0;nn<en.length;++nn){var rn=It(en[nn]),an=rn.family,sn=rn.stretch,cn=rn.style,un=rn.weight;tn[an]=tn[an]||{},tn[an][sn]=tn[an][sn]||{},tn[an][sn][cn]=tn[an][sn][cn]||{},tn[an][sn][cn][un]=rn}return tn}(nn.concat(tn))}return mn}var vn=null;Object.defineProperty(this,"fontFaces",{get:function get(){return vn},set:function set(en){mn=null,vn=en}}),Object.defineProperty(this,"font",{get:function get(){return this.ctx.font},set:function set(en){var tn;if(this.ctx.font=en,null!==(tn=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(en))){var nn=tn[1],rn=(tn[2],tn[3]),an=tn[4],sn=(tn[5],tn[6]),cn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(an)[2];an="px"===cn?Math.floor(parseFloat(an)*this.pdf.internal.scaleFactor):"em"===cn?Math.floor(parseFloat(an)*this.pdf.getFontSize()):Math.floor(parseFloat(an)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(an);var un=function(en){var tn,nn,rn=[],an=en.trim();if(""===an)return aR;if(an in tR)return[tR[an]];for(;""!==an;){switch(nn=null,tn=(an=Mt(an)).charAt(0)){case'"':case"'":nn=Et(an.substring(1),tn);break;default:nn=qt(an)}if(null===nn)return aR;if(rn.push(nn[0]),""!==(an=Mt(nn[1]))&&","!==an.charAt(0))return aR;an=an.replace(/^,/,"")}return rn}(sn);if(this.fontFaces){var dn=function Bt(en,tn,nn){for(var rn=(nn=nn||{}).defaultFontFamily||"times",an=Object.assign({},eR,nn.genericFontFamilies||{}),sn=null,cn=null,un=0;un<tn.length;++un)if(an[(sn=It(tn[un])).family]&&(sn.family=an[sn.family]),en.hasOwnProperty(sn.family)){cn=en[sn.family];break}if(!(cn=cn||en[rn]))throw new Error("Could not find a font-family for the rule '"+Ot(sn)+"' and default family '"+rn+"'.");if(cn=function(en,tn){if(tn[en])return tn[en];var nn=YM[en],rn=nn<=YM.normal?-1:1,an=Ft(tn,XM,nn,rn);if(!an)throw new Error("Could not find a matching font-stretch value for "+en);return an}(sn.stretch,cn),cn=function(en,tn){if(tn[en])return tn[en];for(var nn=WM[en],rn=0;rn<nn.length;++rn)if(tn[nn[rn]])return tn[nn[rn]];throw new Error("Could not find a matching font-style for "+en)}(sn.style,cn),!(cn=function(en,tn){if(tn[en])return tn[en];if(400===en&&tn[500])return tn[500];if(500===en&&tn[400])return tn[400];var nn=ZM[en],rn=Ft(tn,JM,nn,en<400?-1:1);if(!rn)throw new Error("Could not find a matching font-weight for value "+en);return rn}(sn.weight,cn)))throw new Error("Failed to resolve a font for the rule '"+Ot(sn)+"'.");return cn}(d(this.pdf,this.fontFaces),un.map((function(en){return{family:en,stretch:"normal",weight:rn,style:nn}})));this.pdf.setFont(dn.ref.name,dn.ref.style)}else{var pn="";("bold"===rn||parseInt(rn,10)>=700||"bold"===nn)&&(pn="bold"),"italic"===nn&&(pn+="italic"),0===pn.length&&(pn="normal");for(var hn="",gn={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},An=0;An<un.length;An++){if(void 0!==this.pdf.internal.getFont(un[An],pn,{noFallback:!0,disableWarning:!0})){hn=un[An];break}if("bolditalic"===pn&&void 0!==this.pdf.internal.getFont(un[An],"bold",{noFallback:!0,disableWarning:!0}))hn=un[An],pn="bold";else if(void 0!==this.pdf.internal.getFont(un[An],"normal",{noFallback:!0,disableWarning:!0})){hn=un[An],pn="normal";break}}if(""===hn)for(var mn=0;mn<un.length;mn++)if(gn[un[mn]]){hn=gn[un[mn]];break}hn=""===hn?"Times":hn,this.pdf.setFont(hn,pn)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function get(){return this.ctx.globalCompositeOperation},set:function set(en){this.ctx.globalCompositeOperation=en}}),Object.defineProperty(this,"globalAlpha",{get:function get(){return this.ctx.globalAlpha},set:function set(en){this.ctx.globalAlpha=en}}),Object.defineProperty(this,"ignoreClearRect",{get:function get(){return this.ctx.ignoreClearRect},set:function set(en){this.ctx.ignoreClearRect=Boolean(en)}})};gn.prototype.fill=function(){Sn.call(this,"fill",!1)},gn.prototype.stroke=function(){Sn.call(this,"stroke",!1)},gn.prototype.beginPath=function(){this.path=[{type:"begin"}]},gn.prototype.moveTo=function(en,tn){if(isNaN(en)||isNaN(tn))throw nM.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var nn=this.ctx.transform.applyToPoint(new cn(en,tn));this.path.push({type:"mt",x:nn.x,y:nn.y}),this.ctx.lastPoint=new cn(en,tn)},gn.prototype.closePath=function(){var en=new cn(0,0),tn=0;for(tn=this.path.length-1;-1!==tn;tn--)if("begin"===this.path[tn].type&&"object"==_typeof(this.path[tn+1])&&"number"==typeof this.path[tn+1].x){en=new cn(this.path[tn+1].x,this.path[tn+1].y),this.path.push({type:"lt",x:en.x,y:en.y});break}"object"==_typeof(this.path[tn+2])&&"number"==typeof this.path[tn+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[tn+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new cn(en.x,en.y)},gn.prototype.lineTo=function(en,tn){if(isNaN(en)||isNaN(tn))throw nM.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var nn=this.ctx.transform.applyToPoint(new cn(en,tn));this.path.push({type:"lt",x:nn.x,y:nn.y}),this.ctx.lastPoint=new cn(nn.x,nn.y)},gn.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Sn.call(this,null,!0)},gn.prototype.quadraticCurveTo=function(en,tn,nn,rn){if(isNaN(nn)||isNaN(rn)||isNaN(en)||isNaN(tn))throw nM.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var an=this.ctx.transform.applyToPoint(new cn(nn,rn)),sn=this.ctx.transform.applyToPoint(new cn(en,tn));this.path.push({type:"qct",x1:sn.x,y1:sn.y,x:an.x,y:an.y}),this.ctx.lastPoint=new cn(an.x,an.y)},gn.prototype.bezierCurveTo=function(en,tn,nn,rn,an,sn){if(isNaN(an)||isNaN(sn)||isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn))throw nM.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var un=this.ctx.transform.applyToPoint(new cn(an,sn)),dn=this.ctx.transform.applyToPoint(new cn(en,tn)),pn=this.ctx.transform.applyToPoint(new cn(nn,rn));this.path.push({type:"bct",x1:dn.x,y1:dn.y,x2:pn.x,y2:pn.y,x:un.x,y:un.y}),this.ctx.lastPoint=new cn(un.x,un.y)},gn.prototype.arc=function(en,tn,nn,rn,an,sn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||isNaN(an))throw nM.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(sn=Boolean(sn),!this.ctx.transform.isIdentity){var un=this.ctx.transform.applyToPoint(new cn(en,tn));en=un.x,tn=un.y;var dn=this.ctx.transform.applyToPoint(new cn(0,nn)),pn=this.ctx.transform.applyToPoint(new cn(0,0));nn=Math.sqrt(Math.pow(dn.x-pn.x,2)+Math.pow(dn.y-pn.y,2))}Math.abs(an-rn)>=2*Math.PI&&(rn=0,an=2*Math.PI),this.path.push({type:"arc",x:en,y:tn,radius:nn,startAngle:rn,endAngle:an,counterclockwise:sn})},gn.prototype.arcTo=function(en,tn,nn,rn,an){throw new Error("arcTo not implemented.")},gn.prototype.rect=function(en,tn,nn,rn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn))throw nM.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(en,tn),this.lineTo(en+nn,tn),this.lineTo(en+nn,tn+rn),this.lineTo(en,tn+rn),this.lineTo(en,tn),this.lineTo(en+nn,tn),this.lineTo(en,tn)},gn.prototype.fillRect=function(en,tn,nn,rn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn))throw nM.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!mn.call(this)){var an={};"butt"!==this.lineCap&&(an.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(an.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(en,tn,nn,rn),this.fill(),an.hasOwnProperty("lineCap")&&(this.lineCap=an.lineCap),an.hasOwnProperty("lineJoin")&&(this.lineJoin=an.lineJoin)}},gn.prototype.strokeRect=function(en,tn,nn,rn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn))throw nM.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");vn.call(this)||(this.beginPath(),this.rect(en,tn,nn,rn),this.stroke())},gn.prototype.clearRect=function(en,tn,nn,rn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn))throw nM.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(en,tn,nn,rn))},gn.prototype.save=function(en){en="boolean"!=typeof en||en;for(var tn=this.pdf.internal.getCurrentPageInfo().pageNumber,nn=0;nn<this.pdf.internal.getNumberOfPages();nn++)this.pdf.setPage(nn+1),this.pdf.internal.out("q");if(this.pdf.setPage(tn),en){this.ctx.fontSize=this.pdf.internal.getFontSize();var rn=new hn(this.ctx);this.ctxStack.push(this.ctx),this.ctx=rn}},gn.prototype.restore=function(en){en="boolean"!=typeof en||en;for(var tn=this.pdf.internal.getCurrentPageInfo().pageNumber,nn=0;nn<this.pdf.internal.getNumberOfPages();nn++)this.pdf.setPage(nn+1),this.pdf.internal.out("Q");this.pdf.setPage(tn),en&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},gn.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var An=function p(en){var tn,nn,rn,an;if(!0===en.isCanvasGradient&&(en=en.getColor()),!en)return{r:0,g:0,b:0,a:0,style:en};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(en))tn=0,nn=0,rn=0,an=0;else{var sn=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(en);if(null!==sn)tn=parseInt(sn[1]),nn=parseInt(sn[2]),rn=parseInt(sn[3]),an=1;else if(null!==(sn=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(en)))tn=parseInt(sn[1]),nn=parseInt(sn[2]),rn=parseInt(sn[3]),an=parseFloat(sn[4]);else{if(an=1,"string"==typeof en&&"#"!==en.charAt(0)){var cn=new h$1(en);en=cn.ok?cn.toHex():"#000000"}4===en.length?(tn=en.substring(1,2),tn+=tn,nn=en.substring(2,3),nn+=nn,rn=en.substring(3,4),rn+=rn):(tn=en.substring(1,3),nn=en.substring(3,5),rn=en.substring(5,7)),tn=parseInt(tn,16),nn=parseInt(nn,16),rn=parseInt(rn,16)}}return{r:tn,g:nn,b:rn,a:an,style:en}},mn=function g(){return this.ctx.isFillTransparent||0==this.globalAlpha},vn=function m(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};gn.prototype.fillText=function(en,tn,nn,rn){if(isNaN(tn)||isNaN(nn)||"string"!=typeof en)throw nM.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(rn=isNaN(rn)?void 0:rn,!mn.call(this)){nn=kn.call(this,nn);var an=Mn(this.ctx.transform.rotation),sn=this.ctx.transform.scaleX;Tn.call(this,{text:en,x:tn,y:nn,scale:sn,angle:an,align:this.textAlign,maxWidth:rn})}},gn.prototype.strokeText=function(en,tn,nn,rn){if(isNaN(tn)||isNaN(nn)||"string"!=typeof en)throw nM.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!vn.call(this)){rn=isNaN(rn)?void 0:rn,nn=kn.call(this,nn);var an=Mn(this.ctx.transform.rotation),sn=this.ctx.transform.scaleX;Tn.call(this,{text:en,x:tn,y:nn,scale:sn,renderingMode:"stroke",angle:an,align:this.textAlign,maxWidth:rn})}},gn.prototype.measureText=function(en){if("string"!=typeof en)throw nM.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var tn=this.pdf,nn=this.pdf.internal.scaleFactor,rn=tn.internal.getFontSize(),an=tn.getStringUnitWidth(en)*rn/tn.internal.scaleFactor,sn=function o(en){var tn=(en=en||{}).width||0;return Object.defineProperty(this,"width",{get:function get(){return tn}}),this};return new sn({width:an*=Math.round(96*nn/72*1e4)/1e4})},gn.prototype.scale=function(en,tn){if(isNaN(en)||isNaN(tn))throw nM.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var nn=new dn(en,0,0,tn,0,0);this.ctx.transform=this.ctx.transform.multiply(nn)},gn.prototype.rotate=function(en){if(isNaN(en))throw nM.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var tn=new dn(Math.cos(en),Math.sin(en),-Math.sin(en),Math.cos(en),0,0);this.ctx.transform=this.ctx.transform.multiply(tn)},gn.prototype.translate=function(en,tn){if(isNaN(en)||isNaN(tn))throw nM.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var nn=new dn(1,0,0,1,en,tn);this.ctx.transform=this.ctx.transform.multiply(nn)},gn.prototype.transform=function(en,tn,nn,rn,an,sn){if(isNaN(en)||isNaN(tn)||isNaN(nn)||isNaN(rn)||isNaN(an)||isNaN(sn))throw nM.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var cn=new dn(en,tn,nn,rn,an,sn);this.ctx.transform=this.ctx.transform.multiply(cn)},gn.prototype.setTransform=function(en,tn,nn,rn,an,sn){en=isNaN(en)?1:en,tn=isNaN(tn)?0:tn,nn=isNaN(nn)?0:nn,rn=isNaN(rn)?1:rn,an=isNaN(an)?0:an,sn=isNaN(sn)?0:sn,this.ctx.transform=new dn(en,tn,nn,rn,an,sn)},gn.prototype.drawImage=function(en,tn,nn,rn,an,sn,cn,pn,hn){var gn=this.pdf.getImageProperties(en),An=1,mn=1,vn=1,_n=1;void 0!==rn&&void 0!==pn&&(vn=pn/rn,_n=hn/an,An=gn.width/rn*pn/rn,mn=gn.height/an*hn/an),void 0===sn&&(sn=tn,cn=nn,tn=0,nn=0),void 0!==rn&&void 0===pn&&(pn=rn,hn=an),void 0===rn&&void 0===pn&&(pn=gn.width,hn=gn.height);for(var Sn,kn=this.ctx.transform.decompose(),Bn=Mn(kn.rotate.shx),En=new dn,Pn=(En=(En=(En=En.multiply(kn.translate)).multiply(kn.skew)).multiply(kn.scale)).applyToRectangle(new un(sn-tn*vn,cn-nn*_n,rn*An,an*mn)),Ln=yn.call(this,Pn),Tn=[],Nn=0;Nn<Ln.length;Nn+=1)-1===Tn.indexOf(Ln[Nn])&&Tn.push(Ln[Nn]);if(xn(Tn),this.autoPaging)for(var In=Tn[0],On=Tn[Tn.length-1],Fn=In;Fn<On+1;Fn++){if(this.pdf.setPage(Fn),0!==this.ctx.clip_path.length){var Un=this.path;Sn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=wn(Sn,this.posX,-1*this.pdf.internal.pageSize.height*(Fn-1)+this.posY),Cn.call(this,"fill",!0),this.path=Un}var Rn=JSON.parse(JSON.stringify(Pn));Rn=wn([Rn],this.posX,-1*this.pdf.internal.pageSize.height*(Fn-1)+this.posY)[0],this.pdf.addImage(en,"JPEG",Rn.x,Rn.y,Rn.w,Rn.h,null,null,Bn)}else this.pdf.addImage(en,"JPEG",Pn.x,Pn.y,Pn.w,Pn.h,null,null,Bn)};var yn=function v(en,tn,nn){var rn=[];switch(tn=tn||this.pdf.internal.pageSize.width,nn=nn||this.pdf.internal.pageSize.height,en.type){default:case"mt":case"lt":rn.push(Math.floor((en.y+this.posY)/nn)+1);break;case"arc":rn.push(Math.floor((en.y+this.posY-en.radius)/nn)+1),rn.push(Math.floor((en.y+this.posY+en.radius)/nn)+1);break;case"qct":var an=Rn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,en.x1,en.y1,en.x,en.y);rn.push(Math.floor(an.y/nn)+1),rn.push(Math.floor((an.y+an.h)/nn)+1);break;case"bct":var sn=Dn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,en.x1,en.y1,en.x2,en.y2,en.x,en.y);rn.push(Math.floor(sn.y/nn)+1),rn.push(Math.floor((sn.y+sn.h)/nn)+1);break;case"rect":rn.push(Math.floor((en.y+this.posY)/nn)+1),rn.push(Math.floor((en.y+en.h+this.posY)/nn)+1)}for(var cn=0;cn<rn.length;cn+=1)for(;this.pdf.internal.getNumberOfPages()<rn[cn];)_n.call(this);return rn},_n=function b(){var en=this.fillStyle,tn=this.strokeStyle,nn=this.font,rn=this.lineCap,an=this.lineWidth,sn=this.lineJoin;this.pdf.addPage(),this.fillStyle=en,this.strokeStyle=tn,this.font=nn,this.lineCap=rn,this.lineWidth=an,this.lineJoin=sn},wn=function y(en,tn,nn){for(var rn=0;rn<en.length;rn++)switch(en[rn].type){case"bct":en[rn].x2+=tn,en[rn].y2+=nn;case"qct":en[rn].x1+=tn,en[rn].y1+=nn;case"mt":case"lt":case"arc":default:en[rn].x+=tn,en[rn].y+=nn}return en},xn=function w(en){return en.sort((function(en,tn){return en-tn}))},Sn=function N(en,tn){for(var nn,rn,an=this.fillStyle,sn=this.strokeStyle,cn=this.lineCap,un=this.lineWidth,dn=un*this.ctx.transform.scaleX,pn=this.lineJoin,hn=JSON.parse(JSON.stringify(this.path)),gn=JSON.parse(JSON.stringify(this.path)),An=[],mn=0;mn<gn.length;mn++)if(void 0!==gn[mn].x)for(var vn=yn.call(this,gn[mn]),Sn=0;Sn<vn.length;Sn+=1)-1===An.indexOf(vn[Sn])&&An.push(vn[Sn]);for(var kn=0;kn<An.length;kn++)for(;this.pdf.internal.getNumberOfPages()<An[kn];)_n.call(this);if(xn(An),this.autoPaging)for(var N=An[0],Bn=An[An.length-1],En=N;En<Bn+1;En++){if(this.pdf.setPage(En),this.fillStyle=an,this.strokeStyle=sn,this.lineCap=cn,this.lineWidth=dn,this.lineJoin=pn,0!==this.ctx.clip_path.length){var Pn=this.path;nn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=wn(nn,this.posX,-1*this.pdf.internal.pageSize.height*(En-1)+this.posY),Cn.call(this,en,!0),this.path=Pn}rn=JSON.parse(JSON.stringify(hn)),this.path=wn(rn,this.posX,-1*this.pdf.internal.pageSize.height*(En-1)+this.posY),!1!==tn&&0!==En||Cn.call(this,en,tn),this.lineWidth=un}else this.lineWidth=dn,Cn.call(this,en,tn),this.lineWidth=un;this.path=hn},Cn=function L(en,tn){if(("stroke"!==en||tn||!vn.call(this))&&("stroke"===en||tn||!mn.call(this))){for(var nn,rn,an=[],sn=this.path,cn=0;cn<sn.length;cn++){var un=sn[cn];switch(un.type){case"begin":an.push({begin:!0});break;case"close":an.push({close:!0});break;case"mt":an.push({start:un,deltas:[],abs:[]});break;case"lt":var dn=an.length;if(!isNaN(sn[cn-1].x)&&(nn=[un.x-sn[cn-1].x,un.y-sn[cn-1].y],dn>0))for(;dn>=0;dn--)if(!0!==an[dn-1].close&&!0!==an[dn-1].begin){an[dn-1].deltas.push(nn),an[dn-1].abs.push(un);break}break;case"bct":nn=[un.x1-sn[cn-1].x,un.y1-sn[cn-1].y,un.x2-sn[cn-1].x,un.y2-sn[cn-1].y,un.x-sn[cn-1].x,un.y-sn[cn-1].y],an[an.length-1].deltas.push(nn);break;case"qct":var pn=sn[cn-1].x+2/3*(un.x1-sn[cn-1].x),hn=sn[cn-1].y+2/3*(un.y1-sn[cn-1].y),gn=un.x+2/3*(un.x1-un.x),An=un.y+2/3*(un.y1-un.y),yn=un.x,_n=un.y;nn=[pn-sn[cn-1].x,hn-sn[cn-1].y,gn-sn[cn-1].x,An-sn[cn-1].y,yn-sn[cn-1].x,_n-sn[cn-1].y],an[an.length-1].deltas.push(nn);break;case"arc":an.push({deltas:[],abs:[],arc:!0}),Array.isArray(an[an.length-1].abs)&&an[an.length-1].abs.push(un)}}rn=tn?null:"stroke"===en?"stroke":"fill";for(var wn=0;wn<an.length;wn++){if(an[wn].arc){for(var xn=an[wn].abs,Sn=0;Sn<xn.length;Sn++){var Cn=xn[Sn];"arc"===Cn.type?Bn.call(this,Cn.x,Cn.y,Cn.radius,Cn.startAngle,Cn.endAngle,Cn.counterclockwise,void 0,tn):Nn.call(this,Cn.x,Cn.y)}En.call(this,rn),this.pdf.internal.out("h")}if(!an[wn].arc&&!0!==an[wn].close&&!0!==an[wn].begin){var kn=an[wn].start.x,L=an[wn].start.y;In.call(this,an[wn].deltas,kn,L)}}rn&&En.call(this,rn),tn&&Pn.call(this)}},kn=function A(en){var tn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,nn=tn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return en-nn;case"top":return en+tn-nn;case"hanging":return en+tn-2*nn;case"middle":return en+tn/2-nn;case"ideographic":return en;case"alphabetic":default:return en}};gn.prototype.createLinearGradient=function(){var en=function t(){};return en.colorStops=[],en.addColorStop=function(en,tn){this.colorStops.push([en,tn])},en.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},en.isCanvasGradient=!0,en},gn.prototype.createPattern=function(){return this.createLinearGradient()},gn.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Bn=function x(en,tn,nn,rn,an,sn,cn,un){for(var dn=Fn.call(this,nn,rn,an,sn),pn=0;pn<dn.length;pn++){var hn=dn[pn];0===pn&&Ln.call(this,hn.x1+en,hn.y1+tn),On.call(this,en,tn,hn.x2,hn.y2,hn.x3,hn.y3,hn.x4,hn.y4)}un?Pn.call(this):En.call(this,cn)},En=function S(en){switch(en){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Pn=function _(){this.pdf.clip(),this.pdf.discardPath()},Ln=function P(en,tn){this.pdf.internal.out(nn(en)+" "+rn(tn)+" m")},Tn=function k(en){var tn;switch(en.align){case"right":case"end":tn="right";break;case"center":tn="center";break;case"left":case"start":default:tn="left"}var nn=this.ctx.transform.applyToPoint(new cn(en.x,en.y)),rn=this.ctx.transform.decompose(),an=new dn;an=(an=(an=an.multiply(rn.translate)).multiply(rn.skew)).multiply(rn.scale);for(var sn,pn,hn,gn=this.pdf.getTextDimensions(en.text),An=this.ctx.transform.applyToRectangle(new un(en.x,en.y,gn.w,gn.h)),mn=an.applyToRectangle(new un(en.x,en.y-gn.h,gn.w,gn.h)),vn=yn.call(this,mn),_n=[],Sn=0;Sn<vn.length;Sn+=1)-1===_n.indexOf(vn[Sn])&&_n.push(vn[Sn]);if(xn(_n),!0===this.autoPaging)for(var kn=_n[0],Bn=_n[_n.length-1],En=kn;En<Bn+1;En++){if(this.pdf.setPage(En),0!==this.ctx.clip_path.length){var Pn=this.path;sn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=wn(sn,this.posX,-1*this.pdf.internal.pageSize.height*(En-1)+this.posY),Cn.call(this,"fill",!0),this.path=Pn}var Ln=JSON.parse(JSON.stringify(An));Ln=wn([Ln],this.posX,-1*this.pdf.internal.pageSize.height*(En-1)+this.posY)[0],en.scale>=.01&&(pn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(pn*en.scale),hn=this.lineWidth,this.lineWidth=hn*en.scale),this.pdf.text(en.text,Ln.x,Ln.y,{angle:en.angle,align:tn,renderingMode:en.renderingMode,maxWidth:en.maxWidth}),en.scale>=.01&&(this.pdf.setFontSize(pn),this.lineWidth=hn)}else en.scale>=.01&&(pn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(pn*en.scale),hn=this.lineWidth,this.lineWidth=hn*en.scale),this.pdf.text(en.text,nn.x+this.posX,nn.y+this.posY,{angle:en.angle,align:tn,renderingMode:en.renderingMode,maxWidth:en.maxWidth}),en.scale>=.01&&(this.pdf.setFontSize(pn),this.lineWidth=hn)},Nn=function I(en,tn,an,sn){an=an||0,sn=sn||0,this.pdf.internal.out(nn(en+an)+" "+rn(tn+sn)+" l")},In=function F(en,tn,nn){return this.pdf.lines(en,tn,nn,null,null)},On=function C(en,nn,rn,cn,un,dn,pn,hn){this.pdf.internal.out([tn(an(rn+en)),tn(sn(cn+nn)),tn(an(un+en)),tn(sn(dn+nn)),tn(an(pn+en)),tn(sn(hn+nn)),"c"].join(" "))},Fn=function j(en,tn,nn,rn){for(var an=2*Math.PI,sn=Math.PI/2;tn>nn;)tn-=an;var cn=Math.abs(nn-tn);cn<an&&rn&&(cn=an-cn);for(var un=[],dn=rn?-1:1,pn=tn;cn>1e-5;){var hn=pn+dn*Math.min(cn,sn);un.push(Un.call(this,en,pn,hn)),cn-=Math.abs(hn-pn),pn=hn}return un},Un=function O(en,tn,nn){var rn=(nn-tn)/2,an=en*Math.cos(rn),sn=en*Math.sin(rn),cn=an,un=-sn,dn=cn*cn+un*un,pn=dn+cn*an+un*sn,hn=4/3*(Math.sqrt(2*dn*pn)-pn)/(cn*sn-un*an),gn=cn-hn*un,An=un+hn*cn,mn=gn,vn=-An,yn=rn+tn,_n=Math.cos(yn),wn=Math.sin(yn);return{x1:en*Math.cos(tn),y1:en*Math.sin(tn),x2:gn*_n-An*wn,y2:gn*wn+An*_n,x3:mn*_n-vn*wn,y3:mn*wn+vn*_n,x4:en*Math.cos(nn),y4:en*Math.sin(nn)}},Mn=function B(en){return 180*en/Math.PI},Rn=function M(en,tn,nn,rn,an,sn){var cn=en+.5*(nn-en),dn=tn+.5*(rn-tn),pn=an+.5*(nn-an),hn=sn+.5*(rn-sn),gn=Math.min(en,an,cn,pn),An=Math.max(en,an,cn,pn),mn=Math.min(tn,sn,dn,hn),vn=Math.max(tn,sn,dn,hn);return new un(gn,mn,An-gn,vn-mn)},Dn=function E(en,tn,nn,rn,an,sn,cn,dn){var pn,hn,gn,An,mn,vn,yn,_n,wn,xn,Sn,Cn,kn,Bn,En=nn-en,Pn=rn-tn,Ln=an-nn,Tn=sn-rn,Nn=cn-an,In=dn-sn;for(hn=0;hn<41;hn++)wn=(yn=(gn=en+(pn=hn/40)*En)+pn*((mn=nn+pn*Ln)-gn))+pn*(mn+pn*(an+pn*Nn-mn)-yn),xn=(_n=(An=tn+pn*Pn)+pn*((vn=rn+pn*Tn)-An))+pn*(vn+pn*(sn+pn*In-vn)-_n),0==hn?(Sn=wn,Cn=xn,kn=wn,Bn=xn):(Sn=Math.min(Sn,wn),Cn=Math.min(Cn,xn),kn=Math.max(kn,wn),Bn=Math.max(Bn,xn));return new un(Math.round(Sn),Math.round(Cn),Math.round(kn-Sn),Math.round(Bn-Cn))}}(O$1.API),
|
||
/**
|
||
* @license
|
||
* jsPDF filters PlugIn
|
||
* Copyright (c) 2014 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(en){var tn=function r(en){var tn,r,nn,rn,an,sn,cn,un,dn,pn;for(/[^\x00-\xFF]/.test(en),r=[],nn=0,rn=(en+=tn="\0\0\0\0".slice(en.length%4||4)).length;rn>nn;nn+=4)0!==(an=(en.charCodeAt(nn)<<24)+(en.charCodeAt(nn+1)<<16)+(en.charCodeAt(nn+2)<<8)+en.charCodeAt(nn+3))?(sn=(an=((an=((an=((an=(an-(pn=an%85))/85)-(dn=an%85))/85)-(un=an%85))/85)-(cn=an%85))/85)%85,r.push(sn+33,cn+33,un+33,dn+33,pn+33)):r.push(122);return function(en,tn){for(var nn=tn;nn>0;nn--)en.pop()}(r,tn.length),String.fromCharCode.apply(String,r)+"~>"},nn=function n(en){var tn,nn,n,rn,an,sn=String,cn="length",un=255,dn="charCodeAt",pn="slice",hn="replace";for(en[pn](-2),en=en[pn](0,-2)[hn](/\s/g,"")[hn]("z","!!!!!"),n=[],rn=0,an=(en+=tn="uuuuu"[pn](en[cn]%5||5))[cn];an>rn;rn+=5)nn=52200625*(en[dn](rn)-33)+614125*(en[dn](rn+1)-33)+7225*(en[dn](rn+2)-33)+85*(en[dn](rn+3)-33)+(en[dn](rn+4)-33),n.push(un&nn>>24,un&nn>>16,un&nn>>8,un&nn);return function(en,tn){for(var nn=tn;nn>0;nn--)en.pop()}(n,tn[cn]),sn.fromCharCode.apply(sn,n)},rn=function i(en){var tn=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(en=en.replace(/\s/g,"")).indexOf(">")&&(en=en.substr(0,en.indexOf(">"))),en.length%2&&(en+="0"),!1===tn.test(en))return"";for(var nn="",rn=0;rn<en.length;rn+=2)nn+=String.fromCharCode("0x"+(en[rn]+en[rn+1]));return nn},an=function a(en){for(var tn=new Uint8Array(en.length),nn=en.length;nn--;)tn[nn]=en.charCodeAt(nn);return(tn=zlibSync(tn)).reduce((function(en,tn){return en+String.fromCharCode(tn)}),"")};en.processDataByFilters=function(en,sn){var cn=0,un=en||"",dn=[];for("string"==typeof(sn=sn||[])&&(sn=[sn]),cn=0;cn<sn.length;cn+=1)switch(sn[cn]){case"ASCII85Decode":case"/ASCII85Decode":un=nn(un),dn.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":un=tn(un),dn.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":un=rn(un),dn.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":un=un.split("").map((function(en){return("0"+en.charCodeAt().toString(16)).slice(-2)})).join("")+">",dn.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":un=an(un),dn.push("/FlateDecode");break;default:throw new Error('The filter: "'+sn[cn]+'" is not implemented')}return{data:un,reverseChain:dn.reverse().join(" ")}}}(O$1.API),(
|
||
/**
|
||
* @license
|
||
* jsPDF fileloading PlugIn
|
||
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
oR=O$1.API).loadFile=function(en,tn,nn){return function(en,tn,nn){tn=!1!==tn,nn="function"==typeof nn?nn:function(){};var rn=void 0;try{rn=function(en,tn,nn){var rn=new XMLHttpRequest,an=0,sn=function a(en){var tn=en.length,nn=[],rn=String.fromCharCode;for(an=0;an<tn;an+=1)nn.push(rn(255&en.charCodeAt(an)));return nn.join("")};if(rn.open("GET",en,!tn),rn.overrideMimeType("text/plain; charset=x-user-defined"),!1===tn&&(rn.onload=function(){200===rn.status?nn(sn(this.responseText)):nn(void 0)}),rn.send(null),tn&&200===rn.status)return sn(rn.responseText)}(en,tn,nn)}catch(en){}return rn}(en,tn,nn)},oR.loadImageFile=oR.loadFile,
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 Erik Koopmans
|
||
* Released under the MIT License.
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(en){function e(){return(tM.html2canvas?Promise.resolve(tM.html2canvas):Promise.resolve().then((function(){return kQ}))).catch((function(en){return Promise.reject(new Error("Could not load html2canvas: "+en))})).then((function(en){return en.default?en.default:en}))}function n(){return(tM.DOMPurify?Promise.resolve(tM.DOMPurify):Promise.resolve().then((function(){return GQ}))).catch((function(en){return Promise.reject(new Error("Could not load dompurify: "+en))})).then((function(en){return en.default?en.default:en}))}var tn=function i(en){var tn=_typeof(en);return"undefined"===tn?"undefined":"string"===tn||en instanceof String?"string":"number"===tn||en instanceof Number?"number":"function"===tn||en instanceof Function?"function":en&&en.constructor===Array?"array":en&&1===en.nodeType?"element":"object"===tn?"object":"unknown"},nn=function a(en,tn){var nn=document.createElement(en);for(var rn in tn.className&&(nn.className=tn.className),tn.innerHTML&&tn.dompurify&&(nn.innerHTML=tn.dompurify.sanitize(tn.innerHTML)),tn.style)nn.style[rn]=tn.style[rn];return nn},rn=function t(en){var tn=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),nn=t.convert(Promise.resolve(),tn);return(nn=nn.setProgress(1,t,1,[t])).set(en)};(rn.prototype=Object.create(Promise.prototype)).constructor=rn,rn.convert=function(en,tn){return en.__proto__=tn||rn.prototype,en},rn.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function callback(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},rn.prototype.from=function(en,rn){return this.then((function(){switch(rn=rn||function(en){switch(tn(en)){case"string":return"string";case"element":return"canvas"===en.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(en)){case"string":return this.then(n).then((function(tn){return this.set({src:nn("div",{innerHTML:en,dompurify:tn})})}));case"element":return this.set({src:en});case"canvas":return this.set({canvas:en});case"img":return this.set({img:en});default:return this.error("Unknown source type.")}}))},rn.prototype.to=function(en){switch(en){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},rn.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var en={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},tn=function o(en,tn){for(var nn=3===en.nodeType?document.createTextNode(en.nodeValue):en.cloneNode(!1),rn=en.firstChild;rn;rn=rn.nextSibling)!0!==tn&&1===rn.nodeType&&"SCRIPT"===rn.nodeName||nn.appendChild(o(rn,tn));return 1===en.nodeType&&("CANVAS"===en.nodeName?(nn.width=en.width,nn.height=en.height,nn.getContext("2d").drawImage(en,0,0)):"TEXTAREA"!==en.nodeName&&"SELECT"!==en.nodeName||(nn.value=en.value),nn.addEventListener("load",(function(){nn.scrollTop=en.scrollTop,nn.scrollLeft=en.scrollLeft}),!0)),nn}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===tn.tagName&&(en.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=nn("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=nn("div",{className:"html2pdf__container",style:en}),this.prop.container.appendChild(tn),this.prop.container.firstChild.appendChild(nn("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},rn.prototype.toCanvas=function(){var en=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(en).then(e).then((function(en){var tn=Object.assign({},this.opt.html2canvas);return delete tn.onrendered,en(this.prop.container,tn)})).then((function(en){(this.opt.html2canvas.onrendered||function(){})(en),this.prop.canvas=en,document.body.removeChild(this.prop.overlay)}))},rn.prototype.toContext2d=function(){var en=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(en).then(e).then((function(en){var tn=this.opt.jsPDF,nn=this.opt.fontFaces,rn=Object.assign({async:!0,allowTaint:!0,scale:1,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete rn.onrendered,tn.context2d.autoPaging=!0,tn.context2d.posX=this.opt.x,tn.context2d.posY=this.opt.y,tn.context2d.fontFaces=nn,nn)for(var an=0;an<nn.length;++an){var sn=nn[an],cn=sn.src.find((function(en){return"truetype"===en.format}));cn&&tn.addFont(cn.url,sn.ref.name,sn.ref.style)}return rn.windowHeight=rn.windowHeight||0,rn.windowHeight=0==rn.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):rn.windowHeight,en(this.prop.container,rn)})).then((function(en){(this.opt.html2canvas.onrendered||function(){})(en),this.prop.canvas=en,document.body.removeChild(this.prop.overlay)}))},rn.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var en=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=en}))},rn.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},rn.prototype.output=function(en,tn,nn){return"img"===(nn=nn||"pdf").toLowerCase()||"image"===nn.toLowerCase()?this.outputImg(en,tn):this.outputPdf(en,tn)},rn.prototype.outputPdf=function(en,tn){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(en,tn)}))},rn.prototype.outputImg=function(en){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(en){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+en+'" is not supported.'}}))},rn.prototype.save=function(en){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(en?{filename:en}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},rn.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},rn.prototype.set=function(en){if("object"!==tn(en))return this;var nn=Object.keys(en||{}).map((function(tn){if(tn in rn.template.prop)return function(){this.prop[tn]=en[tn]};switch(tn){case"margin":return this.setMargin.bind(this,en.margin);case"jsPDF":return function(){return this.opt.jsPDF=en.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,en.pageSize);default:return function(){this.opt[tn]=en[tn]}}}),this);return this.then((function(){return this.thenList(nn)}))},rn.prototype.get=function(en,tn){return this.then((function(){var nn=en in rn.template.prop?this.prop[en]:this.opt[en];return tn?tn(nn):nn}))},rn.prototype.setMargin=function(en){return this.then((function(){switch(tn(en)){case"number":en=[en,en,en,en];case"array":if(2===en.length&&(en=[en[0],en[1],en[0],en[1]]),4===en.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=en})).then(this.setPageSize)},rn.prototype.setPageSize=function(en){function e(en,tn){return Math.floor(en*tn/72*96)}return this.then((function(){(en=en||O$1.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(en.inner={width:en.width-this.opt.margin[1]-this.opt.margin[3],height:en.height-this.opt.margin[0]-this.opt.margin[2]},en.inner.px={width:e(en.inner.width,en.k),height:e(en.inner.height,en.k)},en.inner.ratio=en.inner.height/en.inner.width),this.prop.pageSize=en}))},rn.prototype.setProgress=function(en,tn,nn,rn){return null!=en&&(this.progress.val=en),null!=tn&&(this.progress.state=tn),null!=nn&&(this.progress.n=nn),null!=rn&&(this.progress.stack=rn),this.progress.ratio=this.progress.val/this.progress.state,this},rn.prototype.updateProgress=function(en,tn,nn,rn){return this.setProgress(en?this.progress.val+en:null,tn||null,nn?this.progress.n+nn:null,rn?this.progress.stack.concat(rn):null)},rn.prototype.then=function(en,tn){var nn=this;return this.thenCore(en,tn,(function(en,tn){return nn.updateProgress(null,null,1,[en]),Promise.prototype.then.call(this,(function(tn){return nn.updateProgress(null,en),tn})).then(en,tn).then((function(en){return nn.updateProgress(1),en}))}))},rn.prototype.thenCore=function(en,tn,nn){nn=nn||Promise.prototype.then,en&&(en=en.bind(this)),tn&&(tn=tn.bind(this));var an=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:rn.convert(Object.assign({},this),Promise.prototype),sn=nn.call(an,en,tn);return rn.convert(sn,this.__proto__)},rn.prototype.thenExternal=function(en,tn){return Promise.prototype.then.call(this,en,tn)},rn.prototype.thenList=function(en){var tn=this;return en.forEach((function(en){tn=tn.thenCore(en)})),tn},rn.prototype.catch=function(en){en&&(en=en.bind(this));var tn=Promise.prototype.catch.call(this,en);return rn.convert(tn,this)},rn.prototype.catchExternal=function(en){return Promise.prototype.catch.call(this,en)},rn.prototype.error=function(en){return this.then((function(){throw new Error(en)}))},rn.prototype.using=rn.prototype.set,rn.prototype.saveAs=rn.prototype.save,rn.prototype.export=rn.prototype.output,rn.prototype.run=rn.prototype.then,O$1.getPageSize=function(en,tn,nn){if("object"==_typeof(en)){var rn=en;en=rn.orientation,tn=rn.unit||tn,nn=rn.format||nn}tn=tn||"mm",nn=nn||"a4",en=(""+(en||"P")).toLowerCase();var an,sn=(""+nn).toLowerCase(),cn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(tn){case"pt":an=1;break;case"mm":an=72/25.4;break;case"cm":an=72/2.54;break;case"in":an=72;break;case"px":an=.75;break;case"pc":case"em":an=12;break;case"ex":an=6;break;default:throw"Invalid unit: "+tn}var un,dn=0,pn=0;if(cn.hasOwnProperty(sn))dn=cn[sn][1]/an,pn=cn[sn][0]/an;else try{dn=nn[1],pn=nn[0]}catch(en){throw new Error("Invalid format: "+nn)}if("p"===en||"portrait"===en)en="p",pn>dn&&(un=pn,pn=dn,dn=un);else{if("l"!==en&&"landscape"!==en)throw"Invalid orientation: "+en;en="l",dn>pn&&(un=pn,pn=dn,dn=un)}return{width:pn,height:dn,unit:tn,k:an,orientation:en}},en.html=function(en,tn){(tn=tn||{}).callback=tn.callback||function(){},tn.html2canvas=tn.html2canvas||{},tn.html2canvas.canvas=tn.html2canvas.canvas||this.canvas,tn.jsPDF=tn.jsPDF||this,tn.fontFaces=tn.fontFaces?tn.fontFaces.map(It):null;var nn=new rn(tn);return tn.worker?nn:nn.from(en).doCallback()}}(O$1.API),O$1.API.addJS=function(en){return iR=en,this.internal.events.subscribe("postPutResources",(function(){nR=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(nR+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),rR=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+iR+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==nR&&void 0!==rR&&this.internal.out("/Names <</JavaScript "+nR+" 0 R>>")})),this},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(en){var tn;en.events.push(["postPutResources",function(){var en=this,nn=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var rn=en.outline.render().split(/\r\n/),an=0;an<rn.length;an++){var sn=rn[an],cn=nn.exec(sn);if(null!=cn){var un=cn[1];en.internal.newObjectDeferredBegin(un,!1)}en.internal.write(sn)}if(this.outline.createNamedDestinations){var dn=this.internal.pages.length,pn=[];for(an=0;an<dn;an++){var hn=en.internal.newObject();pn.push(hn);var gn=en.internal.getPageInfo(an+1);en.internal.write("<< /D["+gn.objId+" 0 R /XYZ null null null]>> endobj")}var An=en.internal.newObject();for(en.internal.write("<< /Names [ "),an=0;an<pn.length;an++)en.internal.write("(page_"+(an+1)+")"+pn[an]+" 0 R");en.internal.write(" ] >>","endobj"),tn=en.internal.newObject(),en.internal.write("<< /Dests "+An+" 0 R"),en.internal.write(">>","endobj")}}]),en.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+tn+" 0 R"))}]),en.events.push(["initialized",function(){var en=this;en.outline={createNamedDestinations:!1,root:{children:[]}},en.outline.add=function(en,tn,nn){var rn={title:tn,options:nn,children:[]};return null==en&&(en=this.root),en.children.push(rn),rn},en.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=en,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},en.outline.genIds_r=function(tn){tn.id=en.internal.newObjectDeferred();for(var nn=0;nn<tn.children.length;nn++)this.genIds_r(tn.children[nn])},en.outline.renderRoot=function(en){this.objStart(en),this.line("/Type /Outlines"),en.children.length>0&&(this.line("/First "+this.makeRef(en.children[0])),this.line("/Last "+this.makeRef(en.children[en.children.length-1]))),this.line("/Count "+this.count_r({count:0},en)),this.objEnd()},en.outline.renderItems=function(tn){for(var nn=this.ctx.pdf.internal.getVerticalCoordinateString,rn=0;rn<tn.children.length;rn++){var an=tn.children[rn];this.objStart(an),this.line("/Title "+this.makeString(an.title)),this.line("/Parent "+this.makeRef(tn)),rn>0&&this.line("/Prev "+this.makeRef(tn.children[rn-1])),rn<tn.children.length-1&&this.line("/Next "+this.makeRef(tn.children[rn+1])),an.children.length>0&&(this.line("/First "+this.makeRef(an.children[0])),this.line("/Last "+this.makeRef(an.children[an.children.length-1])));var sn=this.count=this.count_r({count:0},an);if(sn>0&&this.line("/Count "+sn),an.options&&an.options.pageNumber){var cn=en.internal.getPageInfo(an.options.pageNumber);this.line("/Dest ["+cn.objId+" 0 R /XYZ 0 "+nn(0)+" 0]")}this.objEnd()}for(var un=0;un<tn.children.length;un++)this.renderItems(tn.children[un])},en.outline.line=function(en){this.ctx.val+=en+"\r\n"},en.outline.makeRef=function(en){return en.id+" 0 R"},en.outline.makeString=function(tn){return"("+en.internal.pdfEscape(tn)+")"},en.outline.objStart=function(en){this.ctx.val+="\r\n"+en.id+" 0 obj\r\n<<\r\n"},en.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},en.outline.count_r=function(en,tn){for(var nn=0;nn<tn.children.length;nn++)en.count++,this.count_r(en,tn.children[nn]);return en.count}}])}(O$1.API),
|
||
/**
|
||
* @license
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(en){var tn=[192,193,194,195,196,197,198,199];en.processJPEG=function(en,nn,rn,an,sn,cn){var un,dn=this.decode.DCT_DECODE,pn=null;if("string"==typeof en||this.__addimage__.isArrayBuffer(en)||this.__addimage__.isArrayBufferView(en)){switch(en=sn||en,en=this.__addimage__.isArrayBuffer(en)?new Uint8Array(en):en,(un=function(en){for(var nn,rn=256*en.charCodeAt(4)+en.charCodeAt(5),an=en.length,sn={width:0,height:0,numcomponents:1},cn=4;cn<an;cn+=2){if(cn+=rn,-1!==tn.indexOf(en.charCodeAt(cn+1))){nn=256*en.charCodeAt(cn+5)+en.charCodeAt(cn+6),sn={width:256*en.charCodeAt(cn+7)+en.charCodeAt(cn+8),height:nn,numcomponents:en.charCodeAt(cn+9)};break}rn=256*en.charCodeAt(cn+2)+en.charCodeAt(cn+3)}return sn}(en=this.__addimage__.isArrayBufferView(en)?this.__addimage__.arrayBufferToBinaryString(en):en)).numcomponents){case 1:cn=this.color_spaces.DEVICE_GRAY;break;case 4:cn=this.color_spaces.DEVICE_CMYK;break;case 3:cn=this.color_spaces.DEVICE_RGB}pn={data:en,width:un.width,height:un.height,colorSpace:cn,bitsPerComponent:8,filter:dn,index:nn,alias:rn}}return pn}}(O$1.API);var sR,lR,cR,uR,dR,pR=function(){var en,tn,nn;function a(en){var tn,nn,rn,an,sn,cn,un,dn,pn,hn,gn,An,mn,vn;for(this.data=en,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},cn=null;;){switch(tn=this.readUInt32(),pn=function(){var en,tn;for(tn=[],en=0;en<4;++en)tn.push(String.fromCharCode(this.data[this.pos++]));return tn}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(tn);break;case"fcTL":cn&&this.animation.frames.push(cn),this.pos+=4,cn={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},sn=this.readUInt16(),an=this.readUInt16()||100,cn.delay=1e3*sn/an,cn.disposeOp=this.data[this.pos++],cn.blendOp=this.data[this.pos++],cn.data=[];break;case"IDAT":case"fdAT":for("fdAT"===pn&&(this.pos+=4,tn-=4),en=(null!=cn?cn.data:void 0)||this.imgData,An=0;0<=tn?An<tn:An>tn;0<=tn?++An:--An)en.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(rn=this.palette.length/3,this.transparency.indexed=this.read(tn),this.transparency.indexed.length>rn)throw new Error("More transparent colors than palette size");if((hn=rn-this.transparency.indexed.length)>0)for(mn=0;0<=hn?mn<hn:mn>hn;0<=hn?++mn:--mn)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(tn)[0];break;case 2:this.transparency.rgb=this.read(tn)}break;case"tEXt":un=(gn=this.read(tn)).indexOf(0),dn=String.fromCharCode.apply(String,gn.slice(0,un)),this.text[dn]=String.fromCharCode.apply(String,gn.slice(un+1));break;case"IEND":return cn&&this.animation.frames.push(cn),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(vn=this.colorType)||6===vn,nn=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*nn,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=tn}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}a.prototype.read=function(en){var tn,nn;for(nn=[],tn=0;0<=en?tn<en:tn>en;0<=en?++tn:--tn)nn.push(this.data[this.pos++]);return nn},a.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.decodePixels=function(en){var tn=this.pixelBitlength/8,nn=new Uint8Array(this.width*this.height*tn),rn=0,an=this;if(null==en&&(en=this.imgData),0===en.length)return new Uint8Array(0);function o(sn,cn,un,dn){var pn,hn,gn,An,mn,vn,yn,_n,wn,xn,Sn,Cn,kn,Bn,En,Pn,Ln,Tn,Nn,In,On,Fn=Math.ceil((an.width-sn)/un),Un=Math.ceil((an.height-cn)/dn),Mn=an.width==Fn&&an.height==Un;for(Bn=tn*Fn,Cn=Mn?nn:new Uint8Array(Bn*Un),vn=en.length,kn=0,hn=0;kn<Un&&rn<vn;){switch(en[rn++]){case 0:for(An=Ln=0;Ln<Bn;An=Ln+=1)Cn[hn++]=en[rn++];break;case 1:for(An=Tn=0;Tn<Bn;An=Tn+=1)pn=en[rn++],mn=An<tn?0:Cn[hn-tn],Cn[hn++]=(pn+mn)%256;break;case 2:for(An=Nn=0;Nn<Bn;An=Nn+=1)pn=en[rn++],gn=(An-An%tn)/tn,En=kn&&Cn[(kn-1)*Bn+gn*tn+An%tn],Cn[hn++]=(En+pn)%256;break;case 3:for(An=In=0;In<Bn;An=In+=1)pn=en[rn++],gn=(An-An%tn)/tn,mn=An<tn?0:Cn[hn-tn],En=kn&&Cn[(kn-1)*Bn+gn*tn+An%tn],Cn[hn++]=(pn+Math.floor((mn+En)/2))%256;break;case 4:for(An=On=0;On<Bn;An=On+=1)pn=en[rn++],gn=(An-An%tn)/tn,mn=An<tn?0:Cn[hn-tn],0===kn?En=Pn=0:(En=Cn[(kn-1)*Bn+gn*tn+An%tn],Pn=gn&&Cn[(kn-1)*Bn+(gn-1)*tn+An%tn]),yn=mn+En-Pn,_n=Math.abs(yn-mn),xn=Math.abs(yn-En),Sn=Math.abs(yn-Pn),wn=_n<=xn&&_n<=Sn?mn:xn<=Sn?En:Pn,Cn[hn++]=(pn+wn)%256;break;default:throw new Error("Invalid filter algorithm: "+en[rn-1])}if(!Mn){var Rn=((cn+kn*dn)*an.width+sn)*tn,Dn=kn*Bn;for(An=0;An<Fn;An+=1){for(var jn=0;jn<tn;jn+=1)nn[Rn++]=Cn[Dn++];Rn+=(un-1)*tn}}kn++}}return en=function unzlibSync(en,tn){return jU((function zlv(en){if(8!=(15&en[0])||en[0]>>>4>7||(en[0]<<8|en[1])%31)throw"invalid zlib data";if(32&en[1])throw"invalid zlib data: preset dictionaries not supported"}(en),en.subarray(2,-4)),tn)}(en),1==an.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),nn},a.prototype.decodePalette=function(){var en,tn,nn,rn,an,sn,cn,un,dn;for(nn=this.palette,sn=this.transparency.indexed||[],an=new Uint8Array((sn.length||0)+nn.length),rn=0,en=0,tn=cn=0,un=nn.length;cn<un;tn=cn+=3)an[rn++]=nn[tn],an[rn++]=nn[tn+1],an[rn++]=nn[tn+2],an[rn++]=null!=(dn=sn[en++])?dn:255;return an},a.prototype.copyToImageData=function(en,tn){var nn,rn,an,sn,cn,un,dn,pn,hn,gn,An;if(rn=this.colors,hn=null,nn=this.hasAlphaChannel,this.palette.length&&(hn=null!=(An=this._decodedPalette)?An:this._decodedPalette=this.decodePalette(),rn=4,nn=!0),pn=(an=en.data||en).length,cn=hn||tn,sn=un=0,1===rn)for(;sn<pn;)dn=hn?4*tn[sn/4]:un,gn=cn[dn++],an[sn++]=gn,an[sn++]=gn,an[sn++]=gn,an[sn++]=nn?cn[dn++]:255,un=dn;else for(;sn<pn;)dn=hn?4*tn[sn/4]:un,an[sn++]=cn[dn++],an[sn++]=cn[dn++],an[sn++]=cn[dn++],an[sn++]=nn?cn[dn++]:255,un=dn},a.prototype.decode=function(){var en;return en=new Uint8Array(this.width*this.height*4),this.copyToImageData(en,this.decodePixels()),en};var rn=function o(){if("[object Window]"===Object.prototype.toString.call(tM)){try{tn=tM.document.createElement("canvas"),nn=tn.getContext("2d")}catch(en){return!1}return!0}return!1};return rn(),en=function t(en){var an;if(!0===rn())return nn.width=en.width,nn.height=en.height,nn.clearRect(0,0,en.width,en.height),nn.putImageData(en,0,0),(an=new Image).src=tn.toDataURL(),an;throw new Error("This method requires a Browser with Canvas-capability.")},a.prototype.decodeFrames=function(tn){var nn,rn,an,sn,cn,un,dn,pn;if(this.animation){for(pn=[],rn=cn=0,un=(dn=this.animation.frames).length;cn<un;rn=++cn)nn=dn[rn],an=tn.createImageData(nn.width,nn.height),sn=this.decodePixels(new Uint8Array(nn.data)),this.copyToImageData(an,sn),nn.imageData=an,pn.push(nn.image=en(an));return pn}},a.prototype.renderFrame=function(en,tn){var nn,rn,an;return nn=(rn=this.animation.frames)[tn],an=rn[tn-1],0===tn&&en.clearRect(0,0,this.width,this.height),1===(null!=an?an.disposeOp:void 0)?en.clearRect(an.xOffset,an.yOffset,an.width,an.height):2===(null!=an?an.disposeOp:void 0)&&en.putImageData(an.imageData,an.xOffset,an.yOffset),0===nn.blendOp&&en.clearRect(nn.xOffset,nn.yOffset,nn.width,nn.height),en.drawImage(nn.image,nn.xOffset,nn.yOffset)},a.prototype.animate=function(en){var tn,nn,rn,an,sn,cn,un=this;return nn=0,cn=this.animation,an=cn.numFrames,rn=cn.frames,sn=cn.numPlays,(tn=function e(){var cn,dn;if(cn=nn++%an,dn=rn[cn],un.renderFrame(en,cn),an>1&&nn/an<sn)return un.animation._timeout=setTimeout(tn,dn.delay)})()},a.prototype.stopAnimation=function(){var en;return clearTimeout(null!=(en=this.animation)?en._timeout:void 0)},a.prototype.render=function(en){var tn,nn;return en._png&&en._png.stopAnimation(),en._png=this,en.width=this.width,en.height=this.height,tn=en.getContext("2d"),this.animation?(this.decodeFrames(tn),this.animate(tn)):(nn=tn.createImageData(this.width,this.height),this.copyToImageData(nn,this.decodePixels()),tn.putImageData(nn,0,0))},a}();
|
||
/**
|
||
* @license
|
||
*
|
||
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
/**
|
||
* @license
|
||
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
||
*
|
||
* https://github.com/deanm/omggif
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
* of this software and associated documentation files (the "Software"), to
|
||
* deal in the Software without restriction, including without limitation the
|
||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||
* sell copies of the Software, and to permit persons to whom the Software is
|
||
* furnished to do so, subject to the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be included in
|
||
* all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||
* IN THE SOFTWARE.
|
||
*
|
||
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
||
* including animation and compression. It does not rely on any specific
|
||
* underlying system, so should run in the browser, Node, or Plask.
|
||
*/function Jt(en){var tn=0;if(71!==en[tn++]||73!==en[tn++]||70!==en[tn++]||56!==en[tn++]||56!=(en[tn++]+1&253)||97!==en[tn++])throw new Error("Invalid GIF 87a/89a header.");var nn=en[tn++]|en[tn++]<<8,rn=en[tn++]|en[tn++]<<8,an=en[tn++],sn=an>>7,cn=1<<1+(7&an);en[tn++],en[tn++];var un=null,dn=null;sn&&(un=tn,dn=cn,tn+=3*cn);var pn=!0,hn=[],gn=0,An=null,mn=0,vn=null;for(this.width=nn,this.height=rn;pn&&tn<en.length;)switch(en[tn++]){case 33:switch(en[tn++]){case 255:if(11!==en[tn]||78==en[tn+1]&&69==en[tn+2]&&84==en[tn+3]&&83==en[tn+4]&&67==en[tn+5]&&65==en[tn+6]&&80==en[tn+7]&&69==en[tn+8]&&50==en[tn+9]&&46==en[tn+10]&&48==en[tn+11]&&3==en[tn+12]&&1==en[tn+13]&&0==en[tn+16])tn+=14,vn=en[tn++]|en[tn++]<<8,tn++;else for(tn+=12;;){if(!((Nn=en[tn++])>=0))throw Error("Invalid block size");if(0===Nn)break;tn+=Nn}break;case 249:if(4!==en[tn++]||0!==en[tn+4])throw new Error("Invalid graphics extension block.");var yn=en[tn++];gn=en[tn++]|en[tn++]<<8,An=en[tn++],0==(1&yn)&&(An=null),mn=yn>>2&7,tn++;break;case 254:for(;;){if(!((Nn=en[tn++])>=0))throw Error("Invalid block size");if(0===Nn)break;tn+=Nn}break;default:throw new Error("Unknown graphic control label: 0x"+en[tn-1].toString(16))}break;case 44:var _n=en[tn++]|en[tn++]<<8,wn=en[tn++]|en[tn++]<<8,xn=en[tn++]|en[tn++]<<8,Sn=en[tn++]|en[tn++]<<8,Cn=en[tn++],kn=Cn>>6&1,Bn=1<<1+(7&Cn),En=un,Pn=dn,Ln=!1;Cn>>7&&(Ln=!0,En=tn,Pn=Bn,tn+=3*Bn);var Tn=tn;for(tn++;;){var Nn;if(!((Nn=en[tn++])>=0))throw Error("Invalid block size");if(0===Nn)break;tn+=Nn}hn.push({x:_n,y:wn,width:xn,height:Sn,has_local_palette:Ln,palette_offset:En,palette_size:Pn,data_offset:Tn,data_length:tn-Tn,transparent_index:An,interlaced:!!kn,delay:gn,disposal:mn});break;case 59:pn=!1;break;default:throw new Error("Unknown gif block: 0x"+en[tn-1].toString(16))}this.numFrames=function(){return hn.length},this.loopCount=function(){return vn},this.frameInfo=function(en){if(en<0||en>=hn.length)throw new Error("Frame index out of range.");return hn[en]},this.decodeAndBlitFrameBGRA=function(tn,rn){var an=this.frameInfo(tn),sn=an.width*an.height,cn=new Uint8Array(sn);Xt(en,an.data_offset,cn,sn);var un=an.palette_offset,dn=an.transparent_index;null===dn&&(dn=256);var pn=an.width,hn=nn-pn,gn=pn,An=4*(an.y*nn+an.x),mn=4*((an.y+an.height)*nn+an.x),vn=An,yn=4*hn;!0===an.interlaced&&(yn+=4*nn*7);for(var _n=8,wn=0,xn=cn.length;wn<xn;++wn){var Sn=cn[wn];if(0===gn&&(gn=pn,(vn+=yn)>=mn&&(yn=4*hn+4*nn*(_n-1),vn=An+(pn+hn)*(_n<<1),_n>>=1)),Sn===dn)vn+=4;else{var Cn=en[un+3*Sn],kn=en[un+3*Sn+1],Bn=en[un+3*Sn+2];rn[vn++]=Bn,rn[vn++]=kn,rn[vn++]=Cn,rn[vn++]=255}--gn}},this.decodeAndBlitFrameRGBA=function(tn,rn){var an=this.frameInfo(tn),sn=an.width*an.height,cn=new Uint8Array(sn);Xt(en,an.data_offset,cn,sn);var un=an.palette_offset,dn=an.transparent_index;null===dn&&(dn=256);var pn=an.width,hn=nn-pn,gn=pn,An=4*(an.y*nn+an.x),mn=4*((an.y+an.height)*nn+an.x),vn=An,yn=4*hn;!0===an.interlaced&&(yn+=4*nn*7);for(var _n=8,wn=0,xn=cn.length;wn<xn;++wn){var Sn=cn[wn];if(0===gn&&(gn=pn,(vn+=yn)>=mn&&(yn=4*hn+4*nn*(_n-1),vn=An+(pn+hn)*(_n<<1),_n>>=1)),Sn===dn)vn+=4;else{var Cn=en[un+3*Sn],kn=en[un+3*Sn+1],Bn=en[un+3*Sn+2];rn[vn++]=Cn,rn[vn++]=kn,rn[vn++]=Bn,rn[vn++]=255}--gn}}}function Xt(en,tn,nn,rn){for(var an=en[tn++],sn=1<<an,cn=sn+1,un=cn+1,dn=an+1,pn=(1<<dn)-1,hn=0,gn=0,An=0,mn=en[tn++],vn=new Int32Array(4096),yn=null;;){for(;hn<16&&0!==mn;)gn|=en[tn++]<<hn,hn+=8,1===mn?mn=en[tn++]:--mn;if(hn<dn)break;var _n=gn&pn;if(gn>>=dn,hn-=dn,_n!==sn){if(_n===cn)break;for(var wn=_n<un?_n:yn,xn=0,Sn=wn;Sn>sn;)Sn=vn[Sn]>>8,++xn;var Cn=Sn;if(An+xn+(wn!==_n?1:0)>rn)return void nM.log("Warning, gif stream longer than expected.");nn[An++]=Cn;var kn=An+=xn;for(wn!==_n&&(nn[An++]=Cn),Sn=wn;xn--;)Sn=vn[Sn],nn[--kn]=255&Sn,Sn>>=8;null!==yn&&un<4096&&(vn[un++]=yn<<8|Cn,un>=pn+1&&dn<12&&(++dn,pn=pn<<1|1)),yn=_n}else un=cn+1,pn=(1<<(dn=an+1))-1,yn=null}return An!==rn&&nM.log("Warning, gif stream shorter than expected."),nn
|
||
/**
|
||
* @license
|
||
Copyright (c) 2008, Adobe Systems Incorporated
|
||
All rights reserved.
|
||
|
||
Redistribution and use in source and binary forms, with or without
|
||
modification, are permitted provided that the following conditions are
|
||
met:
|
||
|
||
* Redistributions of source code must retain the above copyright notice,
|
||
this list of conditions and the following disclaimer.
|
||
|
||
* Redistributions in binary form must reproduce the above copyright
|
||
notice, this list of conditions and the following disclaimer in the
|
||
documentation and/or other materials provided with the distribution.
|
||
|
||
* Neither the name of Adobe Systems Incorporated nor the names of its
|
||
contributors may be used to endorse or promote products derived from
|
||
this software without specific prior written permission.
|
||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
*/}function Kt(en){var tn,nn,rn,an,sn,cn=Math.floor,un=new Array(64),dn=new Array(64),pn=new Array(64),hn=new Array(64),gn=new Array(65535),An=new Array(65535),mn=new Array(64),vn=new Array(64),yn=[],_n=0,wn=7,xn=new Array(64),Sn=new Array(64),Cn=new Array(64),kn=new Array(256),Bn=new Array(2048),En=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Pn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Ln=[0,1,2,3,4,5,6,7,8,9,10,11],Tn=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Nn=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],In=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],On=[0,1,2,3,4,5,6,7,8,9,10,11],Fn=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Un=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function j(en,tn){for(var nn=0,rn=0,an=new Array,sn=1;sn<=16;sn++){for(var cn=1;cn<=en[sn];cn++)an[tn[rn]]=[],an[tn[rn]][0]=nn,an[tn[rn]][1]=sn,rn++,nn++;nn*=2}return an}function O(en){for(var tn=en[0],nn=en[1]-1;nn>=0;)tn&1<<nn&&(_n|=1<<wn),nn--,--wn<0&&(255==_n?(B(255),B(0)):B(_n),wn=7,_n=0)}function B(en){yn.push(en)}function M(en){B(en>>8&255),B(255&en)}function E(en,tn,nn,rn,an){for(var sn,cn=an[0],un=an[240],dn=function(en,tn){var nn,rn,an,sn,cn,un,dn,pn,hn,gn,An=0;for(hn=0;hn<8;++hn){nn=en[An],rn=en[An+1],an=en[An+2],sn=en[An+3],cn=en[An+4],un=en[An+5],dn=en[An+6];var vn=nn+(pn=en[An+7]),yn=nn-pn,_n=rn+dn,wn=rn-dn,xn=an+un,Sn=an-un,Cn=sn+cn,kn=sn-cn,Bn=vn+Cn,En=vn-Cn,Pn=_n+xn,Ln=_n-xn;en[An]=Bn+Pn,en[An+4]=Bn-Pn;var Tn=.707106781*(Ln+En);en[An+2]=En+Tn,en[An+6]=En-Tn;var Nn=.382683433*((Bn=kn+Sn)-(Ln=wn+yn)),In=.5411961*Bn+Nn,On=1.306562965*Ln+Nn,Fn=.707106781*(Pn=Sn+wn),Un=yn+Fn,Mn=yn-Fn;en[An+5]=Mn+In,en[An+3]=Mn-In,en[An+1]=Un+On,en[An+7]=Un-On,An+=8}for(An=0,hn=0;hn<8;++hn){nn=en[An],rn=en[An+8],an=en[An+16],sn=en[An+24],cn=en[An+32],un=en[An+40],dn=en[An+48];var Rn=nn+(pn=en[An+56]),Dn=nn-pn,jn=rn+dn,Qn=rn-dn,Hn=an+un,Gn=an-un,Vn=sn+cn,zn=sn-cn,Kn=Rn+Vn,qn=Rn-Vn,$n=jn+Hn,Wn=jn-Hn;en[An]=Kn+$n,en[An+32]=Kn-$n;var Xn=.707106781*(Wn+qn);en[An+16]=qn+Xn,en[An+48]=qn-Xn;var Yn=.382683433*((Kn=zn+Gn)-(Wn=Qn+Dn)),Jn=.5411961*Kn+Yn,Zn=1.306562965*Wn+Yn,Tr=.707106781*($n=Gn+Qn),Ur=Dn+Tr,Rr=Dn-Tr;en[An+40]=Rr+Jn,en[An+24]=Rr-Jn,en[An+8]=Ur+Zn,en[An+56]=Ur-Zn,An++}for(hn=0;hn<64;++hn)gn=en[hn]*tn[hn],mn[hn]=gn>0?gn+.5|0:gn-.5|0;return mn}(en,tn),pn=0;pn<64;++pn)vn[En[pn]]=dn[pn];var hn=vn[0]-nn;nn=vn[0],0==hn?O(rn[0]):(O(rn[An[sn=32767+hn]]),O(gn[sn]));for(var yn=63;yn>0&&0==vn[yn];)yn--;if(0==yn)return O(cn),nn;for(var _n,wn=1;wn<=yn;){for(var xn=wn;0==vn[wn]&&wn<=yn;)++wn;var Sn=wn-xn;if(Sn>=16){_n=Sn>>4;for(var Cn=1;Cn<=_n;++Cn)O(un);Sn&=15}sn=32767+vn[wn],O(an[(Sn<<4)+An[sn]]),O(gn[sn]),wn++}return 63!=yn&&O(cn),nn}function q(en){en=Math.min(Math.max(en,1),100),sn!=en&&(function(en){for(var tn=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],nn=0;nn<64;nn++){var rn=cn((tn[nn]*en+50)/100);rn=Math.min(Math.max(rn,1),255),un[En[nn]]=rn}for(var an=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],sn=0;sn<64;sn++){var gn=cn((an[sn]*en+50)/100);gn=Math.min(Math.max(gn,1),255),dn[En[sn]]=gn}for(var An=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],mn=0,vn=0;vn<8;vn++)for(var yn=0;yn<8;yn++)pn[mn]=1/(un[En[mn]]*An[vn]*An[yn]*8),hn[mn]=1/(dn[En[mn]]*An[vn]*An[yn]*8),mn++}(en<50?Math.floor(5e3/en):Math.floor(200-2*en)),sn=en)}this.encode=function(en,sn){sn&&q(sn),yn=new Array,_n=0,wn=7,M(65496),M(65504),M(16),B(74),B(70),B(73),B(70),B(0),B(1),B(1),B(0),M(1),M(1),B(0),B(0),function(){M(65499),M(132),B(0);for(var en=0;en<64;en++)B(un[en]);B(1);for(var tn=0;tn<64;tn++)B(dn[tn])}(),function(en,tn){M(65472),M(17),B(8),M(tn),M(en),B(3),B(1),B(17),B(0),B(2),B(17),B(1),B(3),B(17),B(1)}(en.width,en.height),function(){M(65476),M(418),B(0);for(var en=0;en<16;en++)B(Pn[en+1]);for(var tn=0;tn<=11;tn++)B(Ln[tn]);B(16);for(var nn=0;nn<16;nn++)B(Tn[nn+1]);for(var rn=0;rn<=161;rn++)B(Nn[rn]);B(1);for(var an=0;an<16;an++)B(In[an+1]);for(var sn=0;sn<=11;sn++)B(On[sn]);B(17);for(var cn=0;cn<16;cn++)B(Fn[cn+1]);for(var un=0;un<=161;un++)B(Un[un])}(),M(65498),M(12),B(3),B(1),B(0),B(2),B(17),B(3),B(17),B(0),B(63),B(0);var cn=0,gn=0,An=0;_n=0,wn=7,this.encode.displayName="_encode_";for(var mn,vn,kn,En,Mn,Rn,Dn,jn,Qn,Hn=en.data,Gn=en.width,Vn=en.height,zn=4*Gn,Kn=0;Kn<Vn;){for(mn=0;mn<zn;){for(Mn=zn*Kn+mn,Dn=-1,jn=0,Qn=0;Qn<64;Qn++)Rn=Mn+(jn=Qn>>3)*zn+(Dn=4*(7&Qn)),Kn+jn>=Vn&&(Rn-=zn*(Kn+1+jn-Vn)),mn+Dn>=zn&&(Rn-=mn+Dn-zn+4),vn=Hn[Rn++],kn=Hn[Rn++],En=Hn[Rn++],xn[Qn]=(Bn[vn]+Bn[kn+256>>0]+Bn[En+512>>0]>>16)-128,Sn[Qn]=(Bn[vn+768>>0]+Bn[kn+1024>>0]+Bn[En+1280>>0]>>16)-128,Cn[Qn]=(Bn[vn+1280>>0]+Bn[kn+1536>>0]+Bn[En+1792>>0]>>16)-128;cn=E(xn,pn,cn,tn,rn),gn=E(Sn,hn,gn,nn,an),An=E(Cn,hn,An,nn,an),mn+=32}Kn+=8}if(wn>=0){var qn=[];qn[1]=wn+1,qn[0]=(1<<wn+1)-1,O(qn)}return M(65497),new Uint8Array(yn)},en=en||50,function(){for(var en=String.fromCharCode,tn=0;tn<256;tn++)kn[tn]=en(tn)}(),tn=j(Pn,Ln),nn=j(In,On),rn=j(Tn,Nn),an=j(Fn,Un),function(){for(var en=1,tn=2,nn=1;nn<=15;nn++){for(var rn=en;rn<tn;rn++)An[32767+rn]=nn,gn[32767+rn]=[],gn[32767+rn][1]=nn,gn[32767+rn][0]=rn;for(var an=-(tn-1);an<=-en;an++)An[32767+an]=nn,gn[32767+an]=[],gn[32767+an][1]=nn,gn[32767+an][0]=tn-1+an;en<<=1,tn<<=1}}(),function(){for(var en=0;en<256;en++)Bn[en]=19595*en,Bn[en+256>>0]=38470*en,Bn[en+512>>0]=7471*en+32768,Bn[en+768>>0]=-11059*en,Bn[en+1024>>0]=-21709*en,Bn[en+1280>>0]=32768*en+8421375,Bn[en+1536>>0]=-27439*en,Bn[en+1792>>0]=-5329*en}(),q(en)}
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/function Zt(en,tn){if(this.pos=0,this.buffer=en,this.datav=new DataView(en.buffer),this.is_with_alpha=!!tn,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function $t(en){function e(en){if(!en)throw Error("assert :P")}function r(en,tn,nn){for(var rn=0;4>rn;rn++)if(en[tn+rn]!=nn.charCodeAt(rn))return!0;return!1}function n(en,tn,nn,rn,an){for(var sn=0;sn<an;sn++)en[tn+sn]=nn[rn+sn]}function i(en,tn,nn,rn){for(var an=0;an<rn;an++)en[tn+an]=nn}function a(en){return new Int32Array(en)}function o(en,tn){for(var nn=[],rn=0;rn<en;rn++)nn.push(new tn);return nn}function s(en,tn){var nn=[];return function t(en,nn,rn){for(var an=rn[nn],sn=0;sn<an&&(en.push(rn.length>nn+1?[]:new tn),!(rn.length<nn+1));sn++)t(en[sn],nn+1,rn)}(nn,0,en),nn}function u(en,tn){for(var nn="",rn=0;rn<4;rn++)nn+=String.fromCharCode(en[tn++]);return nn}function c(en,tn){return(en[tn+0]<<0|en[tn+1]<<8|en[tn+2]<<16)>>>0}function l(en,tn){return(en[tn+0]<<0|en[tn+1]<<8|en[tn+2]<<16|en[tn+3]<<24)>>>0}new($t=function $t(){var en=this;function u(en,tn){for(var nn=1<<tn-1>>>0;en&nn;)nn>>>=1;return nn?(en&nn-1)+nn:en}function c(en,tn,nn,rn,an){e(!(rn%nn));do{en[tn+(rn-=nn)]=an}while(0<rn)}function l(en,tn,nn,rn,an){if(e(2328>=an),512>=an)var sn=a(512);else if(null==(sn=a(an)))return 0;return function(en,tn,nn,rn,an,sn){var cn,un,dn=tn,pn=1<<nn,hn=a(16),gn=a(16);for(e(0!=an),e(null!=rn),e(null!=en),e(0<nn),un=0;un<an;++un){if(15<rn[un])return 0;++hn[rn[un]]}if(hn[0]==an)return 0;for(gn[1]=0,cn=1;15>cn;++cn){if(hn[cn]>1<<cn)return 0;gn[cn+1]=gn[cn]+hn[cn]}for(un=0;un<an;++un)cn=rn[un],0<rn[un]&&(sn[gn[cn]++]=un);if(1==gn[15])return(rn=new h).g=0,rn.value=sn[0],c(en,dn,1,pn,rn),pn;var An,mn=-1,vn=pn-1,yn=0,_n=1,wn=1,xn=1<<nn;for(un=0,cn=1,an=2;cn<=nn;++cn,an<<=1){if(_n+=wn<<=1,0>(wn-=hn[cn]))return 0;for(;0<hn[cn];--hn[cn])(rn=new h).g=cn,rn.value=sn[un++],c(en,dn+yn,an,xn,rn),yn=u(yn,cn)}for(cn=nn+1,an=2;15>=cn;++cn,an<<=1){if(_n+=wn<<=1,0>(wn-=hn[cn]))return 0;for(;0<hn[cn];--hn[cn]){if(rn=new h,(yn&vn)!=mn){for(dn+=xn,An=1<<(mn=cn)-nn;15>mn&&!(0>=(An-=hn[mn]));)++mn,An<<=1;pn+=xn=1<<(An=mn-nn),en[tn+(mn=yn&vn)].g=An+nn,en[tn+mn].value=dn-tn-mn}rn.g=cn-nn,rn.value=sn[un++],c(en,dn+(yn>>nn),an,xn,rn),yn=u(yn,cn)}}return _n!=2*gn[15]-1?0:pn}(en,tn,nn,rn,an,sn)}function h(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,h),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(tn,f)}function p(en,tn,nn,rn){e(null!=en),e(null!=tn),e(2147483648>rn),en.Ca=254,en.I=0,en.b=-8,en.Ka=0,en.oa=tn,en.pa=nn,en.Jd=tn,en.Yc=nn+rn,en.Zc=4<=rn?nn+rn-4+1:nn,_(en)}function g(en,tn){for(var nn=0;0<tn--;)nn|=k(en,128)<<tn;return nn}function m(en,tn){var nn=g(en,tn);return P(en)?-nn:nn}function v(en,tn,nn,rn){var an,sn=0;for(e(null!=en),e(null!=tn),e(4294967288>rn),en.Sb=rn,en.Ra=0,en.u=0,en.h=0,4<rn&&(rn=4),an=0;an<rn;++an)sn+=tn[nn+an]<<8*an;en.Ra=sn,en.bb=rn,en.oa=tn,en.pa=nn}function b(en){for(;8<=en.u&&en.bb<en.Sb;)en.Ra>>>=8,en.Ra+=en.oa[en.pa+en.bb]<<an-8>>>0,++en.bb,en.u-=8;A(en)&&(en.h=1,en.u=0)}function y(en,tn){if(e(0<=tn),!en.h&&tn<=rn){var an=L(en)&nn[tn];return en.u+=tn,b(en),an}return en.h=1,en.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function L(en){return en.Ra>>>(en.u&an-1)>>>0}function A(en){return e(en.bb<=en.Sb),en.h||en.bb==en.Sb&&en.u>an}function x(en,tn){en.u=tn,en.h=A(en)}function S(en){en.u>=sn&&(e(en.u>=sn),b(en))}function _(en){e(null!=en&&null!=en.oa),en.pa<en.Zc?(en.I=(en.oa[en.pa++]|en.I<<8)>>>0,en.b+=8):(e(null!=en&&null!=en.oa),en.pa<en.Yc?(en.b+=8,en.I=en.oa[en.pa++]|en.I<<8):en.Ka?en.b=0:(en.I<<=8,en.b+=8,en.Ka=1))}function P(en){return g(en,1)}function k(en,tn){var nn=en.Ca;0>en.b&&_(en);var rn=en.b,an=nn*tn>>>8,sn=(en.I>>>rn>an)+0;for(sn?(nn-=an,en.I-=an+1<<rn>>>0):nn=an+1,rn=nn,an=0;256<=rn;)an+=8,rn>>=8;return rn=7^an+cn[rn],en.b-=rn,en.Ca=(nn<<rn)-1,sn}function I(en,tn,nn){en[tn+0]=nn>>24&255,en[tn+1]=nn>>16&255,en[tn+2]=nn>>8&255,en[tn+3]=nn>>0&255}function F(en,tn){return en[tn+0]<<0|en[tn+1]<<8}function C(en,tn){return F(en,tn)|en[tn+2]<<16}function j(en,tn){return F(en,tn)|F(en,tn+2)<<16}function O(en,tn){var nn=1<<tn;return e(null!=en),e(0<tn),en.X=a(nn),null==en.X?0:(en.Mb=32-tn,en.Xa=tn,1)}function B(en,tn){e(null!=en),e(null!=tn),e(en.Xa==tn.Xa),n(tn.X,0,en.X,0,1<<tn.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function E(en,tn,nn,rn){e(null!=nn),e(null!=rn);var an=nn[0],sn=rn[0];return 0==an&&(an=(en*sn+tn/2)/tn),0==sn&&(sn=(tn*an+en/2)/en),0>=an||0>=sn?0:(nn[0]=an,rn[0]=sn,1)}function q(en,tn){return en+(1<<tn)-1>>>tn}function R(en,tn){return((4278255360&en)+(4278255360&tn)>>>0&4278255360)+((16711935&en)+(16711935&tn)>>>0&16711935)>>>0}function D(tn,nn){en[nn]=function(nn,rn,an,sn,cn,un,dn){var pn;for(pn=0;pn<cn;++pn){var hn=en[tn](un[dn+pn-1],an,sn+pn);un[dn+pn]=R(nn[rn+pn],hn)}}}function T(){this.ud=this.hd=this.jd=0}function U(en,tn){return((4278124286&(en^tn))>>>1)+(en&tn)>>>0}function z(en){return 0<=en&&256>en?en:0>en?0:255<en?255:void 0}function H(en,tn){return z(en+(en-tn+.5>>1))}function V(en,tn,nn){return Math.abs(tn-nn)-Math.abs(en-nn)}function W(en,tn,nn,rn,an,sn,cn){for(rn=sn[cn-1],nn=0;nn<an;++nn)sn[cn+nn]=rn=R(en[tn+nn],rn)}function G(en,tn,nn,rn,an){var sn;for(sn=0;sn<nn;++sn){var cn=en[tn+sn],un=cn>>8&255,dn=16711935&(dn=(dn=16711935&cn)+((un<<16)+un));rn[an+sn]=(4278255360&cn)+dn>>>0}}function Y(en,tn){tn.jd=en>>0&255,tn.hd=en>>8&255,tn.ud=en>>16&255}function J(en,tn,nn,rn,an,sn){var cn;for(cn=0;cn<rn;++cn){var un=tn[nn+cn],dn=un>>>8,pn=un,hn=255&(hn=(hn=un>>>16)+((en.jd<<24>>24)*(dn<<24>>24)>>>5));pn=255&(pn=(pn+=(en.hd<<24>>24)*(dn<<24>>24)>>>5)+((en.ud<<24>>24)*(hn<<24>>24)>>>5)),an[sn+cn]=(4278255360&un)+(hn<<16)+pn}}function X(tn,nn,rn,an,sn){en[nn]=function(en,tn,nn,rn,cn,un,dn,pn,hn){for(rn=dn;rn<pn;++rn)for(dn=0;dn<hn;++dn)cn[un++]=sn(nn[an(en[tn++])])},en[tn]=function(tn,nn,cn,un,dn,pn,hn){var gn=8>>tn.b,An=tn.Ea,mn=tn.K[0],vn=tn.w;if(8>gn)for(tn=(1<<tn.b)-1,vn=(1<<gn)-1;nn<cn;++nn){var yn,_n=0;for(yn=0;yn<An;++yn)yn&tn||(_n=an(un[dn++])),pn[hn++]=sn(mn[_n&vn]),_n>>=gn}else en["VP8LMapColor"+rn](un,dn,mn,vn,pn,hn,nn,cn,An)}}function K(en,tn,nn,rn,an){for(nn=tn+nn;tn<nn;){var sn=en[tn++];rn[an++]=sn>>16&255,rn[an++]=sn>>8&255,rn[an++]=sn>>0&255}}function Z(en,tn,nn,rn,an){for(nn=tn+nn;tn<nn;){var sn=en[tn++];rn[an++]=sn>>16&255,rn[an++]=sn>>8&255,rn[an++]=sn>>0&255,rn[an++]=sn>>24&255}}function $(en,tn,nn,rn,an){for(nn=tn+nn;tn<nn;){var sn=(cn=en[tn++])>>16&240|cn>>12&15,cn=cn>>0&240|cn>>28&15;rn[an++]=sn,rn[an++]=cn}}function Q(en,tn,nn,rn,an){for(nn=tn+nn;tn<nn;){var sn=(cn=en[tn++])>>16&248|cn>>13&7,cn=cn>>5&224|cn>>3&31;rn[an++]=sn,rn[an++]=cn}}function tt(en,tn,nn,rn,an){for(nn=tn+nn;tn<nn;){var sn=en[tn++];rn[an++]=sn>>0&255,rn[an++]=sn>>8&255,rn[an++]=sn>>16&255}}function et(en,tn,nn,rn,an,sn){if(0==sn)for(nn=tn+nn;tn<nn;)I(rn,((sn=en[tn++])[0]>>24|sn[1]>>8&65280|sn[2]<<8&16711680|sn[3]<<24)>>>0),an+=32;else n(rn,an,en,tn,nn)}function rt(tn,nn){en[nn][0]=en[tn+"0"],en[nn][1]=en[tn+"1"],en[nn][2]=en[tn+"2"],en[nn][3]=en[tn+"3"],en[nn][4]=en[tn+"4"],en[nn][5]=en[tn+"5"],en[nn][6]=en[tn+"6"],en[nn][7]=en[tn+"7"],en[nn][8]=en[tn+"8"],en[nn][9]=en[tn+"9"],en[nn][10]=en[tn+"10"],en[nn][11]=en[tn+"11"],en[nn][12]=en[tn+"12"],en[nn][13]=en[tn+"13"],en[nn][14]=en[tn+"0"],en[nn][15]=en[tn+"0"]}function nt(en){return en==$r||en==Wr||en==Xr||en==Yr}function it(){this.eb=[],this.size=this.A=this.fb=0}function at(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new at,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ut(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ct(en){return alert("todo:WebPSamplerProcessPlane"),en.T}function lt(en,tn){var nn=en.T,rn=tn.ba.f.RGBA,an=rn.eb,sn=rn.fb+en.ka*rn.A,cn=Si[tn.ba.S],un=en.y,dn=en.O,pn=en.f,hn=en.N,gn=en.ea,An=en.W,mn=tn.cc,vn=tn.dc,yn=tn.Mc,_n=tn.Nc,wn=en.ka,xn=en.ka+en.T,Sn=en.U,Cn=Sn+1>>1;for(0==wn?cn(un,dn,null,null,pn,hn,gn,An,pn,hn,gn,An,an,sn,null,null,Sn):(cn(tn.ec,tn.fc,un,dn,mn,vn,yn,_n,pn,hn,gn,An,an,sn-rn.A,an,sn,Sn),++nn);wn+2<xn;wn+=2)mn=pn,vn=hn,yn=gn,_n=An,hn+=en.Rc,An+=en.Rc,sn+=2*rn.A,cn(un,(dn+=2*en.fa)-en.fa,un,dn,mn,vn,yn,_n,pn,hn,gn,An,an,sn-rn.A,an,sn,Sn);return dn+=en.fa,en.j+xn<en.o?(n(tn.ec,tn.fc,un,dn,Sn),n(tn.cc,tn.dc,pn,hn,Cn),n(tn.Mc,tn.Nc,gn,An,Cn),nn--):1&xn||cn(un,dn,null,null,pn,hn,gn,An,pn,hn,gn,An,an,sn+rn.A,null,null,Sn),nn}function ht(en,tn,nn){var rn=en.F,an=[en.J];if(null!=rn){var sn=en.U,cn=tn.ba.S,un=cn==Vr||cn==Xr;tn=tn.ba.f.RGBA;var dn=[0],pn=en.ka;dn[0]=en.T,en.Kb&&(0==pn?--dn[0]:(--pn,an[0]-=en.width),en.j+en.ka+en.T==en.o&&(dn[0]=en.o-en.j-pn));var hn=tn.eb;pn=tn.fb+pn*tn.A,en=Kn(rn,an[0],en.width,sn,dn,hn,pn+(un?0:3),tn.A),e(nn==dn),en&&nt(cn)&&Vn(hn,pn,un,sn,dn,tn.A)}return 0}function ft(en){var tn=en.ma,nn=tn.ba.S,rn=11>nn,an=nn==Qr||nn==Gr||nn==Vr||nn==zr||12==nn||nt(nn);if(tn.memory=null,tn.Ib=null,tn.Jb=null,tn.Nd=null,!Mr(tn.Oa,en,an?11:12))return 0;if(an&&nt(nn)&&br(),en.da)alert("todo:use_scaling");else{if(rn){if(tn.Ib=ct,en.Kb){if(nn=en.U+1>>1,tn.memory=a(en.U+2*nn),null==tn.memory)return 0;tn.ec=tn.memory,tn.fc=0,tn.cc=tn.ec,tn.dc=tn.fc+en.U,tn.Mc=tn.cc,tn.Nc=tn.dc+nn,tn.Ib=lt,br()}}else alert("todo:EmitYUV");an&&(tn.Jb=ht,rn&&mr())}if(rn&&!Ri){for(en=0;256>en;++en)Di[en]=89858*(en-128)+Ii>>Ni,Hi[en]=-22014*(en-128)+Ii,Qi[en]=-45773*(en-128),ji[en]=113618*(en-128)+Ii>>Ni;for(en=Oi;en<Fi;++en)tn=76283*(en-16)+Ii>>Ni,Gi[en-Oi]=Wt(tn,255),Vi[en-Oi]=Wt(tn+8>>4,15);Ri=1}return 1}function dt(en){var tn=en.ma,nn=en.U,rn=en.T;return e(!(1&en.ka)),0>=nn||0>=rn?0:(nn=tn.Ib(en,tn),null!=tn.Jb&&tn.Jb(en,tn,nn),tn.Dc+=nn,1)}function pt(en){en.ma.memory=null}function gt(en,tn,nn,rn){return 47!=y(en,8)?0:(tn[0]=y(en,14)+1,nn[0]=y(en,14)+1,rn[0]=y(en,1),0!=y(en,3)?0:!en.h)}function mt(en,tn){if(4>en)return en+1;var nn=en-2>>1;return(2+(1&en)<<nn)+y(tn,nn)+1}function vt(en,tn){return 120<tn?tn-120:1<=(nn=((nn=ri[tn-1])>>4)*en+(8-(15&nn)))?nn:1;var nn}function bt(en,tn,nn){var rn=L(nn),an=en[tn+=255&rn].g-8;return 0<an&&(x(nn,nn.u+8),rn=L(nn),tn+=en[tn].value,tn+=rn&(1<<an)-1),x(nn,nn.u+en[tn].g),en[tn].value}function yt(en,tn,nn){return nn.g+=en.g,nn.value+=en.value<<tn>>>0,e(8>=nn.g),en.g}function wt(en,tn,nn){var rn=en.xc;return e((tn=0==rn?0:en.vc[en.md*(nn>>rn)+(tn>>rn)])<en.Wb),en.Ya[tn]}function Nt(en,tn,nn,rn){var an=en.ab,sn=en.c*tn,cn=en.C;tn=cn+tn;var gn=nn,An=rn;for(rn=en.Ta,nn=en.Ua;0<an--;){var mn=en.gc[an],_n=cn,wn=tn,xn=gn,Sn=An,Cn=(An=rn,gn=nn,mn.Ea);switch(e(_n<wn),e(wn<=mn.nc),mn.hc){case 2:pn(xn,Sn,(wn-_n)*Cn,An,gn);break;case 0:var kn=_n,Bn=wn,En=An,Pn=gn,Ln=(Fn=mn).Ea;0==kn&&(un(xn,Sn,null,null,1,En,Pn),W(xn,Sn+1,0,0,Ln-1,En,Pn+1),Sn+=Ln,Pn+=Ln,++kn);for(var Tn=1<<Fn.b,Nn=Tn-1,In=q(Ln,Fn.b),On=Fn.K,Fn=Fn.w+(kn>>Fn.b)*In;kn<Bn;){var Un=On,Mn=Fn,Rn=1;for(dn(xn,Sn,En,Pn-Ln,1,En,Pn);Rn<Ln;){var Dn=(Rn&~Nn)+Tn;Dn>Ln&&(Dn=Ln),(0,vn[Un[Mn++]>>8&15])(xn,Sn+ +Rn,En,Pn+Rn-Ln,Dn-Rn,En,Pn+Rn),Rn=Dn}Sn+=Ln,Pn+=Ln,++kn&Nn||(Fn+=In)}wn!=mn.nc&&n(An,gn-Cn,An,gn+(wn-_n-1)*Cn,Cn);break;case 1:for(Cn=xn,Bn=Sn,Ln=(xn=mn.Ea)-(Pn=xn&~(En=(Sn=1<<mn.b)-1)),kn=q(xn,mn.b),Tn=mn.K,mn=mn.w+(_n>>mn.b)*kn;_n<wn;){for(Nn=Tn,In=mn,On=new T,Fn=Bn+Pn,Un=Bn+xn;Bn<Fn;)Y(Nn[In++],On),yn(On,Cn,Bn,Sn,An,gn),Bn+=Sn,gn+=Sn;Bn<Un&&(Y(Nn[In++],On),yn(On,Cn,Bn,Ln,An,gn),Bn+=Ln,gn+=Ln),++_n&En||(mn+=kn)}break;case 3:if(xn==An&&Sn==gn&&0<mn.b){for(Bn=An,xn=Cn=gn+(wn-_n)*Cn-(Pn=(wn-_n)*q(mn.Ea,mn.b)),Sn=An,En=gn,kn=[],Pn=(Ln=Pn)-1;0<=Pn;--Pn)kn[Pn]=Sn[En+Pn];for(Pn=Ln-1;0<=Pn;--Pn)Bn[xn+Pn]=kn[Pn];hn(mn,_n,wn,An,Cn,An,gn)}else hn(mn,_n,wn,xn,Sn,An,gn)}gn=rn,An=nn}An!=nn&&n(rn,nn,gn,An,sn)}function Lt(en,tn){var nn=en.V,rn=en.Ba+en.c*en.C,an=tn-en.C;if(e(tn<=en.l.o),e(16>=an),0<an){var sn=en.l,cn=en.Ta,un=en.Ua,dn=sn.width;if(Nt(en,an,nn,rn),an=un=[un],e((nn=en.C)<(rn=tn)),e(sn.v<sn.va),rn>sn.o&&(rn=sn.o),nn<sn.j){var pn=sn.j-nn;nn=sn.j,an[0]+=pn*dn}if(nn>=rn?nn=0:(an[0]+=4*sn.v,sn.ka=nn-sn.j,sn.U=sn.va-sn.v,sn.T=rn-nn,nn=1),nn){if(un=un[0],11>(nn=en.ca).S){var hn=nn.f.RGBA,gn=(rn=nn.S,an=sn.U,sn=sn.T,pn=hn.eb,hn.A),An=sn;for(hn=hn.fb+en.Ma*hn.A;0<An--;){var mn=cn,vn=un,yn=an,kn=pn,Bn=hn;switch(rn){case Dr:_n(mn,vn,yn,kn,Bn);break;case Qr:wn(mn,vn,yn,kn,Bn);break;case $r:wn(mn,vn,yn,kn,Bn),Vn(kn,Bn,0,yn,1,0);break;case Hr:Cn(mn,vn,yn,kn,Bn);break;case Gr:et(mn,vn,yn,kn,Bn,1);break;case Wr:et(mn,vn,yn,kn,Bn,1),Vn(kn,Bn,0,yn,1,0);break;case Vr:et(mn,vn,yn,kn,Bn,0);break;case Xr:et(mn,vn,yn,kn,Bn,0),Vn(kn,Bn,1,yn,1,0);break;case zr:xn(mn,vn,yn,kn,Bn);break;case Yr:xn(mn,vn,yn,kn,Bn),zn(kn,Bn,yn,1,0);break;case Kr:Sn(mn,vn,yn,kn,Bn);break;default:e(0)}un+=dn,hn+=gn}en.Ma+=sn}else alert("todo:EmitRescaledRowsYUVA");e(en.Ma<=nn.height)}}en.C=tn,e(en.C<=en.i)}function At(en){var tn;if(0<en.ua)return 0;for(tn=0;tn<en.Wb;++tn){var nn=en.Ya[tn].G,rn=en.Ya[tn].H;if(0<nn[1][rn[1]+0].g||0<nn[2][rn[2]+0].g||0<nn[3][rn[3]+0].g)return 0}return 1}function xt(en,tn,nn,rn,an,sn){if(0!=en.Z){var cn=en.qd,un=en.rd;for(e(null!=xi[en.Z]);tn<nn;++tn)xi[en.Z](cn,un,rn,an,rn,an,sn),cn=rn,un=an,an+=sn;en.qd=cn,en.rd=un}}function St(en,tn){var nn=en.l.ma,rn=0==nn.Z||1==nn.Z?en.l.j:en.C;if(rn=en.C<rn?rn:en.C,e(tn<=en.l.o),tn>rn){var an=en.l.width,sn=nn.ca,cn=nn.tb+an*rn,un=en.V,dn=en.Ba+en.c*rn,pn=en.gc;e(1==en.ab),e(3==pn[0].hc),An(pn[0],rn,tn,un,dn,sn,cn),xt(nn,rn,tn,sn,cn,an)}en.C=en.Ma=tn}function _t(en,nn,rn,an,sn,cn,un){var dn=en.$/an,pn=en.$%an,hn=en.m,gn=en.s,An=rn+en.$,mn=An;sn=rn+an*sn;var vn=rn+an*cn,yn=280+gn.ua,_n=en.Pb?dn:16777216,wn=0<gn.ua?gn.Wa:null,xn=gn.wc,Sn=An<vn?wt(gn,pn,dn):null;e(en.C<cn),e(vn<=sn);var Cn=!1;e:for(;;){for(;Cn||An<vn;){var kn=0;if(dn>=_n){var Bn=An-rn;e((_n=en).Pb),_n.wd=_n.m,_n.xd=Bn,0<_n.s.ua&&B(_n.s.Wa,_n.s.vb),_n=dn+oi}if(pn&xn||(Sn=wt(gn,pn,dn)),e(null!=Sn),Sn.Qb&&(nn[An]=Sn.qb,Cn=!0),!Cn)if(S(hn),Sn.jc){kn=hn,Bn=nn;var En=An,Pn=Sn.pd[L(kn)&tn-1];e(Sn.jc),256>Pn.g?(x(kn,kn.u+Pn.g),Bn[En]=Pn.value,kn=0):(x(kn,kn.u+Pn.g-256),e(256<=Pn.value),kn=Pn.value),0==kn&&(Cn=!0)}else kn=bt(Sn.G[0],Sn.H[0],hn);if(hn.h)break;if(Cn||256>kn){if(!Cn)if(Sn.nd)nn[An]=(Sn.qb|kn<<8)>>>0;else{if(S(hn),Cn=bt(Sn.G[1],Sn.H[1],hn),S(hn),Bn=bt(Sn.G[2],Sn.H[2],hn),En=bt(Sn.G[3],Sn.H[3],hn),hn.h)break;nn[An]=(En<<24|Cn<<16|kn<<8|Bn)>>>0}if(Cn=!1,++An,++pn>=an&&(pn=0,++dn,null!=un&&dn<=cn&&!(dn%16)&&un(en,dn),null!=wn))for(;mn<An;)kn=nn[mn++],wn.X[(506832829*kn&4294967295)>>>wn.Mb]=kn}else if(280>kn){if(kn=mt(kn-256,hn),Bn=bt(Sn.G[4],Sn.H[4],hn),S(hn),Bn=vt(an,Bn=mt(Bn,hn)),hn.h)break;if(An-rn<Bn||sn-An<kn)break e;for(En=0;En<kn;++En)nn[An+En]=nn[An+En-Bn];for(An+=kn,pn+=kn;pn>=an;)pn-=an,++dn,null!=un&&dn<=cn&&!(dn%16)&&un(en,dn);if(e(An<=sn),pn&xn&&(Sn=wt(gn,pn,dn)),null!=wn)for(;mn<An;)kn=nn[mn++],wn.X[(506832829*kn&4294967295)>>>wn.Mb]=kn}else{if(!(kn<yn))break e;for(Cn=kn-280,e(null!=wn);mn<An;)kn=nn[mn++],wn.X[(506832829*kn&4294967295)>>>wn.Mb]=kn;kn=An,e(!(Cn>>>(Bn=wn).Xa)),nn[kn]=Bn.X[Cn],Cn=!0}Cn||e(hn.h==A(hn))}if(en.Pb&&hn.h&&An<sn)e(en.m.h),en.a=5,en.m=en.wd,en.$=en.xd,0<en.s.ua&&B(en.s.vb,en.s.Wa);else{if(hn.h)break e;null!=un&&un(en,dn>cn?cn:dn),en.a=0,en.$=An-rn}return 1}return en.a=3,0}function Pt(en){e(null!=en),en.vc=null,en.yc=null,en.Ya=null;var tn=en.Wa;null!=tn&&(tn.X=null),en.vb=null,e(null!=en)}function kt(){var tn=new or;return null==tn?null:(tn.a=0,tn.xb=wi,rt("Predictor","VP8LPredictors"),rt("Predictor","VP8LPredictors_C"),rt("PredictorAdd","VP8LPredictorsAdd"),rt("PredictorAdd","VP8LPredictorsAdd_C"),pn=G,yn=J,_n=K,wn=Z,xn=$,Sn=Q,Cn=tt,en.VP8LMapColor32b=gn,en.VP8LMapColor8b=mn,tn)}function It(en,nn,rn,an,sn){var cn=1,un=[en],dn=[nn],pn=an.m,hn=an.s,gn=null,An=0;e:for(;;){if(rn)for(;cn&&y(pn,1);){var mn=un,vn=dn,yn=an,_n=1,wn=yn.m,xn=yn.gc[yn.ab],Sn=y(wn,2);if(yn.Oc&1<<Sn)cn=0;else{switch(yn.Oc|=1<<Sn,xn.hc=Sn,xn.Ea=mn[0],xn.nc=vn[0],xn.K=[null],++yn.ab,e(4>=yn.ab),Sn){case 0:case 1:xn.b=y(wn,3)+2,_n=It(q(xn.Ea,xn.b),q(xn.nc,xn.b),0,yn,xn.K),xn.K=xn.K[0];break;case 3:var Cn,kn=y(wn,8)+1,Bn=16<kn?0:4<kn?1:2<kn?2:3;if(mn[0]=q(xn.Ea,Bn),xn.b=Bn,Cn=_n=It(kn,1,0,yn,xn.K)){var En,Pn=kn,Ln=xn,Tn=1<<(8>>Ln.b),Nn=a(Tn);if(null==Nn)Cn=0;else{var In=Ln.K[0],On=Ln.w;for(Nn[0]=Ln.K[0][0],En=1;En<1*Pn;++En)Nn[En]=R(In[On+En],Nn[En-1]);for(;En<4*Tn;++En)Nn[En]=0;Ln.K[0]=null,Ln.K[0]=Nn,Cn=1}}_n=Cn;break;case 2:break;default:e(0)}cn=_n}}if(un=un[0],dn=dn[0],cn&&y(pn,1)&&!(cn=1<=(An=y(pn,4))&&11>=An)){an.a=3;break e}var Fn;if(Fn=cn)t:{var Un,Mn,Rn,Dn=an,jn=un,Qn=dn,Hn=An,Gn=rn,Vn=Dn.m,zn=Dn.s,Kn=[null],qn=1,$n=0,Wn=ii[Hn];n:for(;;){if(Gn&&y(Vn,1)){var Xn=y(Vn,3)+2,Yn=q(jn,Xn),Jn=q(Qn,Xn),Zn=Yn*Jn;if(!It(Yn,Jn,0,Dn,Kn))break n;for(Kn=Kn[0],zn.xc=Xn,Un=0;Un<Zn;++Un){var Tr=Kn[Un]>>8&65535;Kn[Un]=Tr,Tr>=qn&&(qn=Tr+1)}}if(Vn.h)break n;for(Mn=0;5>Mn;++Mn){var Ur=ei[Mn];!Mn&&0<Hn&&(Ur+=1<<Hn),$n<Ur&&($n=Ur)}var Rr=o(qn*Wn,h),Dr=qn,Qr=o(Dr,d);if(null==Qr)var Hr=null;else e(65536>=Dr),Hr=Qr;var Gr=a($n);if(null==Hr||null==Gr||null==Rr){Dn.a=1;break n}var Vr=Rr;for(Un=Rn=0;Un<qn;++Un){var zr=Hr[Un],Kr=zr.G,$r=zr.H,Wr=0,Xr=1,Yr=0;for(Mn=0;5>Mn;++Mn){Ur=ei[Mn],Kr[Mn]=Vr,$r[Mn]=Rn,!Mn&&0<Hn&&(Ur+=1<<Hn);r:{var ri,oi=Ur,ai=Dn,si=Gr,li=Vr,ui=Rn,di=0,pi=ai.m,hi=y(pi,1);if(i(si,0,0,oi),hi){var gi=y(pi,1)+1,fi=y(pi,1),Ai=y(pi,0==fi?1:8);si[Ai]=1,2==gi&&(si[Ai=y(pi,8)]=1);var mi=1}else{var vi=a(19),yi=y(pi,4)+4;if(19<yi){ai.a=3;var wi=0;break r}for(ri=0;ri<yi;++ri)vi[ni[ri]]=y(pi,3);var xi=void 0,Si=void 0,Ci=ai,ki=vi,Bi=oi,Ei=si,Pi=0,Li=Ci.m,Ti=8,Ni=o(128,h);i:for(;l(Ni,0,7,ki,19);){if(y(Li,1)){var Ii=2+2*y(Li,3);if((xi=2+y(Li,Ii))>Bi)break i}else xi=Bi;for(Si=0;Si<Bi&&xi--;){S(Li);var Oi=Ni[0+(127&L(Li))];x(Li,Li.u+Oi.g);var Fi=Oi.value;if(16>Fi)Ei[Si++]=Fi,0!=Fi&&(Ti=Fi);else{var Ui=16==Fi,Mi=Fi-16,Ri=Zr[Mi],Di=y(Li,Jr[Mi])+Ri;if(Si+Di>Bi)break i;for(var ji=Ui?Ti:0;0<Di--;)Ei[Si++]=ji}}Pi=1;break i}Pi||(Ci.a=3),mi=Pi}(mi=mi&&!pi.h)&&(di=l(li,ui,8,si,oi)),mi&&0!=di?wi=di:(ai.a=3,wi=0)}if(0==wi)break n;if(Xr&&1==ti[Mn]&&(Xr=0==Vr[Rn].g),Wr+=Vr[Rn].g,Rn+=wi,3>=Mn){var Qi,Hi=Gr[0];for(Qi=1;Qi<Ur;++Qi)Gr[Qi]>Hi&&(Hi=Gr[Qi]);Yr+=Hi}}if(zr.nd=Xr,zr.Qb=0,Xr&&(zr.qb=(Kr[3][$r[3]+0].value<<24|Kr[1][$r[1]+0].value<<16|Kr[2][$r[2]+0].value)>>>0,0==Wr&&256>Kr[0][$r[0]+0].value&&(zr.Qb=1,zr.qb+=Kr[0][$r[0]+0].value<<8)),zr.jc=!zr.Qb&&6>Yr,zr.jc){var Gi,Vi=zr;for(Gi=0;Gi<tn;++Gi){var zi=Gi,Ki=Vi.pd[zi],qi=Vi.G[0][Vi.H[0]+zi];256<=qi.value?(Ki.g=qi.g+256,Ki.value=qi.value):(Ki.g=0,Ki.value=0,zi>>=yt(qi,8,Ki),zi>>=yt(Vi.G[1][Vi.H[1]+zi],16,Ki),zi>>=yt(Vi.G[2][Vi.H[2]+zi],0,Ki),yt(Vi.G[3][Vi.H[3]+zi],24,Ki))}}}zn.vc=Kn,zn.Wb=qn,zn.Ya=Hr,zn.yc=Rr,Fn=1;break t}Fn=0}if(!(cn=Fn)){an.a=3;break e}if(0<An){if(hn.ua=1<<An,!O(hn.Wa,An)){an.a=1,cn=0;break e}}else hn.ua=0;var $i=an,Wi=un,Xi=dn,Yi=$i.s,Ji=Yi.xc;if($i.c=Wi,$i.i=Xi,Yi.md=q(Wi,Ji),Yi.wc=0==Ji?-1:(1<<Ji)-1,rn){an.xb=_i;break e}if(null==(gn=a(un*dn))){an.a=1,cn=0;break e}cn=(cn=_t(an,gn,0,un,dn,dn,null))&&!pn.h;break e}return cn?(null!=sn?sn[0]=gn:(e(null==gn),e(rn)),an.$=0,rn||Pt(hn)):Pt(hn),cn}function Ft(en,tn){var nn=en.c*en.i,rn=nn+tn+16*tn;return e(en.c<=tn),en.V=a(rn),null==en.V?(en.Ta=null,en.Ua=0,en.a=1,0):(en.Ta=en.V,en.Ua=en.Ba+nn+tn,1)}function Ct(en,tn){var nn=en.C,rn=tn-nn,an=en.V,sn=en.Ba+en.c*nn;for(e(tn<=en.l.o);0<rn;){var cn=16<rn?16:rn,un=en.l.ma,dn=en.l.width,pn=dn*cn,hn=un.ca,gn=un.tb+dn*nn,An=en.Ta,mn=en.Ua;Nt(en,cn,an,sn),qn(An,mn,hn,gn,pn),xt(un,nn,nn+cn,hn,gn,dn),rn-=cn,an+=cn*en.c,nn+=cn}e(nn==tn),en.C=en.Ma=tn}function jt(){this.ub=this.yd=this.td=this.Rb=0}function Ot(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Bt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Mt(){this.Yb=function(){var en=[];return function t(en,tn,nn){for(var rn=nn[tn],an=0;an<rn&&(en.push(nn.length>tn+1?[]:0),!(nn.length<tn+1));an++)t(en[an],tn+1,nn)}(en,0,[3,11]),en}()}function Et(){this.jb=a(3),this.Wc=s([4,8],Mt),this.Xc=s([4,17],Mt)}function qt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Rt(){this.ld=this.La=this.dd=this.tc=0}function Dt(){this.Na=this.la=0}function Tt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ut(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function zt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Rt),this.Y=0,this.ya=Array(new Ut),this.aa=0,this.l=new Gt}function Ht(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Vt(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new jt,this.Kc=new Ot,this.ed=new qt,this.Qa=new Bt,this.Ic=this.$c=this.Aa=0,this.D=new zt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,w),this.ia=0,this.pb=o(4,Tt),this.Pa=new Et,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ht),this.Hd=0,this.rb=Array(new Dt),this.sb=0,this.wa=Array(new Rt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ut),this.L=this.aa=0,this.gd=s([4,2],Rt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Wt(en,tn){return 0>en?0:en>tn?tn:en}function Gt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Yt(){var en=new Vt;return null!=en&&(en.a=0,en.sc="OK",en.cb=0,en.Xb=0,li||(li=Zt)),en}function Jt(en,tn,nn){return 0==en.a&&(en.a=tn,en.sc=nn,en.cb=0),0}function Xt(en,tn,nn){return 3<=nn&&157==en[tn+0]&&1==en[tn+1]&&42==en[tn+2]}function Kt(en,tn){if(null==en)return 0;if(en.a=0,en.sc="OK",null==tn)return Jt(en,2,"null VP8Io passed to VP8GetHeaders()");var nn=tn.data,rn=tn.w,an=tn.ha;if(4>an)return Jt(en,7,"Truncated header.");var sn=nn[rn+0]|nn[rn+1]<<8|nn[rn+2]<<16,cn=en.Od;if(cn.Rb=!(1&sn),cn.td=sn>>1&7,cn.yd=sn>>4&1,cn.ub=sn>>5,3<cn.td)return Jt(en,3,"Incorrect keyframe parameters.");if(!cn.yd)return Jt(en,4,"Frame not displayable.");rn+=3,an-=3;var un=en.Kc;if(cn.Rb){if(7>an)return Jt(en,7,"cannot parse picture header");if(!Xt(nn,rn,an))return Jt(en,3,"Bad code word");un.c=16383&(nn[rn+4]<<8|nn[rn+3]),un.Td=nn[rn+4]>>6,un.i=16383&(nn[rn+6]<<8|nn[rn+5]),un.Ud=nn[rn+6]>>6,rn+=7,an-=7,en.za=un.c+15>>4,en.Ub=un.i+15>>4,tn.width=un.c,tn.height=un.i,tn.Da=0,tn.j=0,tn.v=0,tn.va=tn.width,tn.o=tn.height,tn.da=0,tn.ib=tn.width,tn.hb=tn.height,tn.U=tn.width,tn.T=tn.height,i((sn=en.Pa).jb,0,255,sn.jb.length),e(null!=(sn=en.Qa)),sn.Cb=0,sn.Bb=0,sn.Fb=1,i(sn.Zb,0,0,sn.Zb.length),i(sn.Lb,0,0,sn.Lb)}if(cn.ub>an)return Jt(en,7,"bad partition length");p(sn=en.m,nn,rn,cn.ub),rn+=cn.ub,an-=cn.ub,cn.Rb&&(un.Ld=P(sn),un.Kd=P(sn)),un=en.Qa;var dn,pn=en.Pa;if(e(null!=sn),e(null!=un),un.Cb=P(sn),un.Cb){if(un.Bb=P(sn),P(sn)){for(un.Fb=P(sn),dn=0;4>dn;++dn)un.Zb[dn]=P(sn)?m(sn,7):0;for(dn=0;4>dn;++dn)un.Lb[dn]=P(sn)?m(sn,6):0}if(un.Bb)for(dn=0;3>dn;++dn)pn.jb[dn]=P(sn)?g(sn,8):255}else un.Bb=0;if(sn.Ka)return Jt(en,3,"cannot parse segment header");if((un=en.ed).zd=P(sn),un.Tb=g(sn,6),un.wb=g(sn,3),un.Pc=P(sn),un.Pc&&P(sn)){for(pn=0;4>pn;++pn)P(sn)&&(un.vd[pn]=m(sn,6));for(pn=0;4>pn;++pn)P(sn)&&(un.od[pn]=m(sn,6))}if(en.L=0==un.Tb?0:un.zd?1:2,sn.Ka)return Jt(en,3,"cannot parse filter header");var hn=an;if(an=dn=rn,rn=dn+hn,un=hn,en.Xb=(1<<g(en.m,2))-1,hn<3*(pn=en.Xb))nn=7;else{for(dn+=3*pn,un-=3*pn,hn=0;hn<pn;++hn){var gn=nn[an+0]|nn[an+1]<<8|nn[an+2]<<16;gn>un&&(gn=un),p(en.Jc[+hn],nn,dn,gn),dn+=gn,un-=gn,an+=3}p(en.Jc[+pn],nn,dn,un),nn=dn<rn?0:5}if(0!=nn)return Jt(en,nn,"cannot parse partitions");for(nn=g(dn=en.m,7),an=P(dn)?m(dn,4):0,rn=P(dn)?m(dn,4):0,un=P(dn)?m(dn,4):0,pn=P(dn)?m(dn,4):0,dn=P(dn)?m(dn,4):0,hn=en.Qa,gn=0;4>gn;++gn){if(hn.Cb){var An=hn.Zb[gn];hn.Fb||(An+=nn)}else{if(0<gn){en.pb[gn]=en.pb[0];continue}An=nn}var mn=en.pb[gn];mn.Sc[0]=ai[Wt(An+an,127)],mn.Sc[1]=si[Wt(An+0,127)],mn.Eb[0]=2*ai[Wt(An+rn,127)],mn.Eb[1]=101581*si[Wt(An+un,127)]>>16,8>mn.Eb[1]&&(mn.Eb[1]=8),mn.Qc[0]=ai[Wt(An+pn,117)],mn.Qc[1]=si[Wt(An+dn,127)],mn.lc=An+dn}if(!cn.Rb)return Jt(en,4,"Not a key frame.");for(P(sn),cn=en.Pa,nn=0;4>nn;++nn){for(an=0;8>an;++an)for(rn=0;3>rn;++rn)for(un=0;11>un;++un)pn=k(sn,fi[nn][an][rn][un])?g(sn,8):hi[nn][an][rn][un],cn.Wc[nn][an].Yb[rn][un]=pn;for(an=0;17>an;++an)cn.Xc[nn][an]=cn.Wc[nn][Ai[an]]}return en.kc=P(sn),en.kc&&(en.Bd=g(sn,8)),en.cb=1}function Zt(en,tn,nn,rn,an,sn,cn){var un=tn[an].Yb[nn];for(nn=0;16>an;++an){if(!k(en,un[nn+0]))return an;for(;!k(en,un[nn+1]);)if(un=tn[++an].Yb[0],nn=0,16==an)return 16;var dn=tn[an+1].Yb;if(k(en,un[nn+2])){var pn=en,hn=0;if(k(pn,(An=un)[(gn=nn)+3]))if(k(pn,An[gn+6])){for(un=0,gn=2*(hn=k(pn,An[gn+8]))+(An=k(pn,An[gn+9+hn])),hn=0,An=ui[gn];An[un];++un)hn+=hn+k(pn,An[un]);hn+=3+(8<<gn)}else k(pn,An[gn+7])?(hn=7+2*k(pn,165),hn+=k(pn,145)):hn=5+k(pn,159);else hn=k(pn,An[gn+4])?3+k(pn,An[gn+5]):2;un=dn[2]}else hn=1,un=dn[1];dn=cn+di[an],0>(pn=en).b&&_(pn);var gn,An=pn.b,mn=(gn=pn.Ca>>1)-(pn.I>>An)>>31;--pn.b,pn.Ca+=mn,pn.Ca|=1,pn.I-=(gn+1&mn)<<An,sn[dn]=((hn^mn)-mn)*rn[(0<an)+0]}return 16}function $t(en){var tn=en.rb[en.sb-1];tn.la=0,tn.Na=0,i(en.zc,0,0,en.zc.length),en.ja=0}function Qt(en,tn){if(null==en)return 0;if(null==tn)return Jt(en,2,"NULL VP8Io parameter in VP8Decode().");if(!en.cb&&!Kt(en,tn))return 0;if(e(en.cb),null==tn.ac||tn.ac(tn)){tn.ob&&(en.L=0);var nn=Ki[en.L];if(2==en.L?(en.yb=0,en.zb=0):(en.yb=tn.v-nn>>4,en.zb=tn.j-nn>>4,0>en.yb&&(en.yb=0),0>en.zb&&(en.zb=0)),en.Va=tn.o+15+nn>>4,en.Hb=tn.va+15+nn>>4,en.Hb>en.za&&(en.Hb=en.za),en.Va>en.Ub&&(en.Va=en.Ub),0<en.L){var rn=en.ed;for(nn=0;4>nn;++nn){var an;if(en.Qa.Cb){var sn=en.Qa.Lb[nn];en.Qa.Fb||(sn+=rn.Tb)}else sn=rn.Tb;for(an=0;1>=an;++an){var cn=en.gd[nn][an],un=sn;if(rn.Pc&&(un+=rn.vd[0],an&&(un+=rn.od[0])),0<(un=0>un?0:63<un?63:un)){var dn=un;0<rn.wb&&(dn=4<rn.wb?dn>>2:dn>>1)>9-rn.wb&&(dn=9-rn.wb),1>dn&&(dn=1),cn.dd=dn,cn.tc=2*un+dn,cn.ld=40<=un?2:15<=un?1:0}else cn.tc=0;cn.La=an}}}nn=0}else Jt(en,6,"Frame setup failed"),nn=en.a;if(nn=0==nn){if(nn){en.$c=0,0<en.Aa||(en.Ic=$i);e:{nn=en.Ic,rn=4*(dn=en.za);var pn=32*dn,hn=dn+1,gn=0<en.L?dn*(0<en.Aa?2:1):0,An=(2==en.Aa?2:1)*dn;if((cn=rn+832+(an=3*(16*nn+Ki[en.L])/2*pn)+(sn=null!=en.Fa&&0<en.Fa.length?en.Kc.c*en.Kc.i:0))!=cn)nn=0;else{if(cn>en.Vb){if(en.Vb=0,en.Ec=a(cn),en.Fc=0,null==en.Ec){nn=Jt(en,1,"no memory during frame initialization.");break e}en.Vb=cn}cn=en.Ec,un=en.Fc,en.Ac=cn,en.Bc=un,un+=rn,en.Gd=o(pn,Ht),en.Hd=0,en.rb=o(hn+1,Dt),en.sb=1,en.wa=gn?o(gn,Rt):null,en.Y=0,en.D.Nb=0,en.D.wa=en.wa,en.D.Y=en.Y,0<en.Aa&&(en.D.Y+=dn),e(!0),en.oc=cn,en.pc=un,un+=832,en.ya=o(An,Ut),en.aa=0,en.D.ya=en.ya,en.D.aa=en.aa,2==en.Aa&&(en.D.aa+=dn),en.R=16*dn,en.B=8*dn,dn=(pn=Ki[en.L])*en.R,pn=pn/2*en.B,en.sa=cn,en.ta=un+dn,en.qa=en.sa,en.ra=en.ta+16*nn*en.R+pn,en.Ha=en.qa,en.Ia=en.ra+8*nn*en.B+pn,en.$c=0,un+=an,en.mb=sn?cn:null,en.nb=sn?un:null,e(un+sn<=en.Fc+en.Vb),$t(en),i(en.Ac,en.Bc,0,rn),nn=1}}if(nn){if(tn.ka=0,tn.y=en.sa,tn.O=en.ta,tn.f=en.qa,tn.N=en.ra,tn.ea=en.Ha,tn.Vd=en.Ia,tn.fa=en.R,tn.Rc=en.B,tn.F=null,tn.J=0,!Jn){for(nn=-255;255>=nn;++nn)$n[255+nn]=0>nn?-nn:nn;for(nn=-1020;1020>=nn;++nn)Wn[1020+nn]=-128>nn?-128:127<nn?127:nn;for(nn=-112;112>=nn;++nn)Xn[112+nn]=-16>nn?-16:15<nn?15:nn;for(nn=-255;510>=nn;++nn)Yn[255+nn]=0>nn?0:255<nn?255:nn;Jn=1}kn=ce,Bn=ae,Pn=oe,Ln=se,Tn=ue,En=ie,Nn=Je,In=Xe,On=$e,Fn=Qe,Un=Ke,Mn=Ze,Rn=tr,Dn=er,jn=ze,Qn=He,Hn=Ve,Gn=We,vi[0]=xe,vi[1]=he,vi[2]=Le,vi[3]=Ae,vi[4]=Se,vi[5]=Pe,vi[6]=_e,vi[7]=ke,vi[8]=Fe,vi[9]=Ie,mi[0]=ve,mi[1]=de,mi[2]=pe,mi[3]=ge,mi[4]=be,mi[5]=ye,mi[6]=we,yi[0]=Be,yi[1]=fe,yi[2]=Ce,yi[3]=je,yi[4]=Ee,yi[5]=Me,yi[6]=qe,nn=1}else nn=0}nn&&(nn=function(en,tn){for(en.M=0;en.M<en.Va;++en.M){var nn,rn=en.Jc[en.M&en.Xb],an=en.m,sn=en;for(nn=0;nn<sn.za;++nn){var cn=an,un=sn,dn=un.Ac,pn=un.Bc+4*nn,hn=un.zc,gn=un.ya[un.aa+nn];if(un.Qa.Bb?gn.$b=k(cn,un.Pa.jb[0])?2+k(cn,un.Pa.jb[2]):k(cn,un.Pa.jb[1]):gn.$b=0,un.kc&&(gn.Ad=k(cn,un.Bd)),gn.Za=!k(cn,145)+0,gn.Za){var An=gn.Ob,mn=0;for(un=0;4>un;++un){var vn,yn=hn[0+un];for(vn=0;4>vn;++vn){yn=gi[dn[pn+vn]][yn];for(var _n=pi[k(cn,yn[0])];0<_n;)_n=pi[2*_n+k(cn,yn[_n])];yn=-_n,dn[pn+vn]=yn}n(An,mn,dn,pn,4),mn+=4,hn[0+un]=yn}}else yn=k(cn,156)?k(cn,128)?1:3:k(cn,163)?2:0,gn.Ob[0]=yn,i(dn,pn,yn,4),i(hn,0,yn,4);gn.Dd=k(cn,142)?k(cn,114)?k(cn,183)?1:3:2:0}if(sn.m.Ka)return Jt(en,7,"Premature end-of-partition0 encountered.");for(;en.ja<en.za;++en.ja){if(sn=rn,cn=(an=en).rb[an.sb-1],dn=an.rb[an.sb+an.ja],nn=an.ya[an.aa+an.ja],pn=an.kc?nn.Ad:0)cn.la=dn.la=0,nn.Za||(cn.Na=dn.Na=0),nn.Hc=0,nn.Gc=0,nn.ia=0;else{var wn,xn;if(cn=dn,dn=sn,pn=an.Pa.Xc,hn=an.ya[an.aa+an.ja],gn=an.pb[hn.$b],un=hn.ad,An=0,mn=an.rb[an.sb-1],yn=vn=0,i(un,An,0,384),hn.Za)var Sn=0,Cn=pn[3];else{_n=a(16);var Bn=cn.Na+mn.Na;if(Bn=li(dn,pn[1],Bn,gn.Eb,0,_n,0),cn.Na=mn.Na=(0<Bn)+0,1<Bn)kn(_n,0,un,An);else{var En=_n[0]+3>>3;for(_n=0;256>_n;_n+=16)un[An+_n]=En}Sn=1,Cn=pn[0]}var Pn=15&cn.la,Ln=15&mn.la;for(_n=0;4>_n;++_n){var Tn=1&Ln;for(En=xn=0;4>En;++En)Pn=Pn>>1|(Tn=(Bn=li(dn,Cn,Bn=Tn+(1&Pn),gn.Sc,Sn,un,An))>Sn)<<7,xn=xn<<2|(3<Bn?3:1<Bn?2:0!=un[An+0]),An+=16;Pn>>=4,Ln=Ln>>1|Tn<<7,vn=(vn<<8|xn)>>>0}for(Cn=Pn,Sn=Ln>>4,wn=0;4>wn;wn+=2){for(xn=0,Pn=cn.la>>4+wn,Ln=mn.la>>4+wn,_n=0;2>_n;++_n){for(Tn=1&Ln,En=0;2>En;++En)Bn=Tn+(1&Pn),Pn=Pn>>1|(Tn=0<(Bn=li(dn,pn[2],Bn,gn.Qc,0,un,An)))<<3,xn=xn<<2|(3<Bn?3:1<Bn?2:0!=un[An+0]),An+=16;Pn>>=2,Ln=Ln>>1|Tn<<5}yn|=xn<<4*wn,Cn|=Pn<<4<<wn,Sn|=(240&Ln)<<wn}cn.la=Cn,mn.la=Sn,hn.Hc=vn,hn.Gc=yn,hn.ia=43690&yn?0:gn.ia,pn=!(vn|yn)}if(0<an.L&&(an.wa[an.Y+an.ja]=an.gd[nn.$b][nn.Za],an.wa[an.Y+an.ja].La|=!pn),sn.Ka)return Jt(en,7,"Premature end-of-file encountered.")}if($t(en),an=tn,sn=1,nn=(rn=en).D,cn=0<rn.L&&rn.M>=rn.zb&&rn.M<=rn.Va,0==rn.Aa)e:{if(nn.M=rn.M,nn.uc=cn,Or(rn,nn),sn=1,nn=(xn=rn.D).Nb,cn=(yn=Ki[rn.L])*rn.R,dn=yn/2*rn.B,_n=16*nn*rn.R,En=8*nn*rn.B,pn=rn.sa,hn=rn.ta-cn+_n,gn=rn.qa,un=rn.ra-dn+En,An=rn.Ha,mn=rn.Ia-dn+En,Ln=0==(Pn=xn.M),vn=Pn>=rn.Va-1,2==rn.Aa&&Or(rn,xn),xn.uc)for(Tn=(Bn=rn).D.M,e(Bn.D.uc),xn=Bn.yb;xn<Bn.Hb;++xn){Sn=xn,Cn=Tn;var Vn=(zn=(Tr=Bn).D).Nb;wn=Tr.R;var zn=zn.wa[zn.Y+Sn],Kn=Tr.sa,qn=Tr.ta+16*Vn*wn+16*Sn,$n=zn.dd,Wn=zn.tc;if(0!=Wn)if(e(3<=Wn),1==Tr.L)0<Sn&&Qn(Kn,qn,wn,Wn+4),zn.La&&Gn(Kn,qn,wn,Wn),0<Cn&&jn(Kn,qn,wn,Wn+4),zn.La&&Hn(Kn,qn,wn,Wn);else{var Xn=Tr.B,Yn=Tr.qa,Jn=Tr.ra+8*Vn*Xn+8*Sn,Zn=Tr.Ha,Tr=Tr.Ia+8*Vn*Xn+8*Sn;Vn=zn.ld,0<Sn&&(In(Kn,qn,wn,Wn+4,$n,Vn),Fn(Yn,Jn,Zn,Tr,Xn,Wn+4,$n,Vn)),zn.La&&(Mn(Kn,qn,wn,Wn,$n,Vn),Dn(Yn,Jn,Zn,Tr,Xn,Wn,$n,Vn)),0<Cn&&(Nn(Kn,qn,wn,Wn+4,$n,Vn),On(Yn,Jn,Zn,Tr,Xn,Wn+4,$n,Vn)),zn.La&&(Un(Kn,qn,wn,Wn,$n,Vn),Rn(Yn,Jn,Zn,Tr,Xn,Wn,$n,Vn))}}if(rn.ia&&alert("todo:DitherRow"),null!=an.put){if(xn=16*Pn,Pn=16*(Pn+1),Ln?(an.y=rn.sa,an.O=rn.ta+_n,an.f=rn.qa,an.N=rn.ra+En,an.ea=rn.Ha,an.W=rn.Ia+En):(xn-=yn,an.y=pn,an.O=hn,an.f=gn,an.N=un,an.ea=An,an.W=mn),vn||(Pn-=yn),Pn>an.o&&(Pn=an.o),an.F=null,an.J=null,null!=rn.Fa&&0<rn.Fa.length&&xn<Pn&&(an.J=hr(rn,an,xn,Pn-xn),an.F=rn.mb,null==an.F&&0==an.F.length)){sn=Jt(rn,3,"Could not decode alpha data.");break e}xn<an.j&&(yn=an.j-xn,xn=an.j,e(!(1&yn)),an.O+=rn.R*yn,an.N+=rn.B*(yn>>1),an.W+=rn.B*(yn>>1),null!=an.F&&(an.J+=an.width*yn)),xn<Pn&&(an.O+=an.v,an.N+=an.v>>1,an.W+=an.v>>1,null!=an.F&&(an.J+=an.v),an.ka=xn-an.j,an.U=an.va-an.v,an.T=Pn-xn,sn=an.put(an))}nn+1!=rn.Ic||vn||(n(rn.sa,rn.ta-cn,pn,hn+16*rn.R,cn),n(rn.qa,rn.ra-dn,gn,un+8*rn.B,dn),n(rn.Ha,rn.Ia-dn,An,mn+8*rn.B,dn))}if(!sn)return Jt(en,6,"Output aborted.")}return 1}(en,tn)),null!=tn.bc&&tn.bc(tn),nn&=1}return nn?(en.cb=0,nn):0}function te(en,tn,nn,rn,an){an=en[tn+nn+32*rn]+(an>>3),en[tn+nn+32*rn]=-256&an?0>an?0:255:an}function ee(en,tn,nn,rn,an,sn){te(en,tn,0,nn,rn+an),te(en,tn,1,nn,rn+sn),te(en,tn,2,nn,rn-sn),te(en,tn,3,nn,rn-an)}function re(en){return(20091*en>>16)+en}function ne(en,tn,nn,rn){var an,sn=0,cn=a(16);for(an=0;4>an;++an){var un=en[tn+0]+en[tn+8],dn=en[tn+0]-en[tn+8],pn=(35468*en[tn+4]>>16)-re(en[tn+12]),hn=re(en[tn+4])+(35468*en[tn+12]>>16);cn[sn+0]=un+hn,cn[sn+1]=dn+pn,cn[sn+2]=dn-pn,cn[sn+3]=un-hn,sn+=4,tn++}for(an=sn=0;4>an;++an)un=(en=cn[sn+0]+4)+cn[sn+8],dn=en-cn[sn+8],pn=(35468*cn[sn+4]>>16)-re(cn[sn+12]),te(nn,rn,0,0,un+(hn=re(cn[sn+4])+(35468*cn[sn+12]>>16))),te(nn,rn,1,0,dn+pn),te(nn,rn,2,0,dn-pn),te(nn,rn,3,0,un-hn),sn++,rn+=32}function ie(en,tn,nn,rn){var an=en[tn+0]+4,sn=35468*en[tn+4]>>16,cn=re(en[tn+4]),un=35468*en[tn+1]>>16;ee(nn,rn,0,an+cn,en=re(en[tn+1]),un),ee(nn,rn,1,an+sn,en,un),ee(nn,rn,2,an-sn,en,un),ee(nn,rn,3,an-cn,en,un)}function ae(en,tn,nn,rn,an){ne(en,tn,nn,rn),an&&ne(en,tn+16,nn,rn+4)}function oe(en,tn,nn,rn){Bn(en,tn+0,nn,rn,1),Bn(en,tn+32,nn,rn+128,1)}function se(en,tn,nn,rn){var an;for(en=en[tn+0]+4,an=0;4>an;++an)for(tn=0;4>tn;++tn)te(nn,rn,tn,an,en)}function ue(en,tn,nn,rn){en[tn+0]&&Ln(en,tn+0,nn,rn),en[tn+16]&&Ln(en,tn+16,nn,rn+4),en[tn+32]&&Ln(en,tn+32,nn,rn+128),en[tn+48]&&Ln(en,tn+48,nn,rn+128+4)}function ce(en,tn,nn,rn){var an,sn=a(16);for(an=0;4>an;++an){var cn=en[tn+0+an]+en[tn+12+an],un=en[tn+4+an]+en[tn+8+an],dn=en[tn+4+an]-en[tn+8+an],pn=en[tn+0+an]-en[tn+12+an];sn[0+an]=cn+un,sn[8+an]=cn-un,sn[4+an]=pn+dn,sn[12+an]=pn-dn}for(an=0;4>an;++an)cn=(en=sn[0+4*an]+3)+sn[3+4*an],un=sn[1+4*an]+sn[2+4*an],dn=sn[1+4*an]-sn[2+4*an],pn=en-sn[3+4*an],nn[rn+0]=cn+un>>3,nn[rn+16]=pn+dn>>3,nn[rn+32]=cn-un>>3,nn[rn+48]=pn-dn>>3,rn+=64}function le(en,tn,nn){var rn,an=tn-32,sn=Ur,cn=255-en[an-1];for(rn=0;rn<nn;++rn){var un,dn=sn,pn=cn+en[tn-1];for(un=0;un<nn;++un)en[tn+un]=dn[pn+en[an+un]];tn+=32}}function he(en,tn){le(en,tn,4)}function fe(en,tn){le(en,tn,8)}function de(en,tn){le(en,tn,16)}function pe(en,tn){var nn;for(nn=0;16>nn;++nn)n(en,tn+32*nn,en,tn-32,16)}function ge(en,tn){var nn;for(nn=16;0<nn;--nn)i(en,tn,en[tn-1],16),tn+=32}function me(en,tn,nn){var rn;for(rn=0;16>rn;++rn)i(tn,nn+32*rn,en,16)}function ve(en,tn){var nn,rn=16;for(nn=0;16>nn;++nn)rn+=en[tn-1+32*nn]+en[tn+nn-32];me(rn>>5,en,tn)}function be(en,tn){var nn,rn=8;for(nn=0;16>nn;++nn)rn+=en[tn-1+32*nn];me(rn>>4,en,tn)}function ye(en,tn){var nn,rn=8;for(nn=0;16>nn;++nn)rn+=en[tn+nn-32];me(rn>>4,en,tn)}function we(en,tn){me(128,en,tn)}function Ne(en,tn,nn){return en+2*tn+nn+2>>2}function Le(en,tn){var nn,rn=tn-32;for(rn=new Uint8Array([Ne(en[rn-1],en[rn+0],en[rn+1]),Ne(en[rn+0],en[rn+1],en[rn+2]),Ne(en[rn+1],en[rn+2],en[rn+3]),Ne(en[rn+2],en[rn+3],en[rn+4])]),nn=0;4>nn;++nn)n(en,tn+32*nn,rn,0,rn.length)}function Ae(en,tn){var nn=en[tn-1],rn=en[tn-1+32],an=en[tn-1+64],sn=en[tn-1+96];I(en,tn+0,16843009*Ne(en[tn-1-32],nn,rn)),I(en,tn+32,16843009*Ne(nn,rn,an)),I(en,tn+64,16843009*Ne(rn,an,sn)),I(en,tn+96,16843009*Ne(an,sn,sn))}function xe(en,tn){var nn,rn=4;for(nn=0;4>nn;++nn)rn+=en[tn+nn-32]+en[tn-1+32*nn];for(rn>>=3,nn=0;4>nn;++nn)i(en,tn+32*nn,rn,4)}function Se(en,tn){var nn=en[tn-1+0],rn=en[tn-1+32],an=en[tn-1+64],sn=en[tn-1-32],cn=en[tn+0-32],un=en[tn+1-32],dn=en[tn+2-32],pn=en[tn+3-32];en[tn+0+96]=Ne(rn,an,en[tn-1+96]),en[tn+1+96]=en[tn+0+64]=Ne(nn,rn,an),en[tn+2+96]=en[tn+1+64]=en[tn+0+32]=Ne(sn,nn,rn),en[tn+3+96]=en[tn+2+64]=en[tn+1+32]=en[tn+0+0]=Ne(cn,sn,nn),en[tn+3+64]=en[tn+2+32]=en[tn+1+0]=Ne(un,cn,sn),en[tn+3+32]=en[tn+2+0]=Ne(dn,un,cn),en[tn+3+0]=Ne(pn,dn,un)}function _e(en,tn){var nn=en[tn+1-32],rn=en[tn+2-32],an=en[tn+3-32],sn=en[tn+4-32],cn=en[tn+5-32],un=en[tn+6-32],dn=en[tn+7-32];en[tn+0+0]=Ne(en[tn+0-32],nn,rn),en[tn+1+0]=en[tn+0+32]=Ne(nn,rn,an),en[tn+2+0]=en[tn+1+32]=en[tn+0+64]=Ne(rn,an,sn),en[tn+3+0]=en[tn+2+32]=en[tn+1+64]=en[tn+0+96]=Ne(an,sn,cn),en[tn+3+32]=en[tn+2+64]=en[tn+1+96]=Ne(sn,cn,un),en[tn+3+64]=en[tn+2+96]=Ne(cn,un,dn),en[tn+3+96]=Ne(un,dn,dn)}function Pe(en,tn){var nn=en[tn-1+0],rn=en[tn-1+32],an=en[tn-1+64],sn=en[tn-1-32],cn=en[tn+0-32],un=en[tn+1-32],dn=en[tn+2-32],pn=en[tn+3-32];en[tn+0+0]=en[tn+1+64]=sn+cn+1>>1,en[tn+1+0]=en[tn+2+64]=cn+un+1>>1,en[tn+2+0]=en[tn+3+64]=un+dn+1>>1,en[tn+3+0]=dn+pn+1>>1,en[tn+0+96]=Ne(an,rn,nn),en[tn+0+64]=Ne(rn,nn,sn),en[tn+0+32]=en[tn+1+96]=Ne(nn,sn,cn),en[tn+1+32]=en[tn+2+96]=Ne(sn,cn,un),en[tn+2+32]=en[tn+3+96]=Ne(cn,un,dn),en[tn+3+32]=Ne(un,dn,pn)}function ke(en,tn){var nn=en[tn+0-32],rn=en[tn+1-32],an=en[tn+2-32],sn=en[tn+3-32],cn=en[tn+4-32],un=en[tn+5-32],dn=en[tn+6-32],pn=en[tn+7-32];en[tn+0+0]=nn+rn+1>>1,en[tn+1+0]=en[tn+0+64]=rn+an+1>>1,en[tn+2+0]=en[tn+1+64]=an+sn+1>>1,en[tn+3+0]=en[tn+2+64]=sn+cn+1>>1,en[tn+0+32]=Ne(nn,rn,an),en[tn+1+32]=en[tn+0+96]=Ne(rn,an,sn),en[tn+2+32]=en[tn+1+96]=Ne(an,sn,cn),en[tn+3+32]=en[tn+2+96]=Ne(sn,cn,un),en[tn+3+64]=Ne(cn,un,dn),en[tn+3+96]=Ne(un,dn,pn)}function Ie(en,tn){var nn=en[tn-1+0],rn=en[tn-1+32],an=en[tn-1+64],sn=en[tn-1+96];en[tn+0+0]=nn+rn+1>>1,en[tn+2+0]=en[tn+0+32]=rn+an+1>>1,en[tn+2+32]=en[tn+0+64]=an+sn+1>>1,en[tn+1+0]=Ne(nn,rn,an),en[tn+3+0]=en[tn+1+32]=Ne(rn,an,sn),en[tn+3+32]=en[tn+1+64]=Ne(an,sn,sn),en[tn+3+64]=en[tn+2+64]=en[tn+0+96]=en[tn+1+96]=en[tn+2+96]=en[tn+3+96]=sn}function Fe(en,tn){var nn=en[tn-1+0],rn=en[tn-1+32],an=en[tn-1+64],sn=en[tn-1+96],cn=en[tn-1-32],un=en[tn+0-32],dn=en[tn+1-32],pn=en[tn+2-32];en[tn+0+0]=en[tn+2+32]=nn+cn+1>>1,en[tn+0+32]=en[tn+2+64]=rn+nn+1>>1,en[tn+0+64]=en[tn+2+96]=an+rn+1>>1,en[tn+0+96]=sn+an+1>>1,en[tn+3+0]=Ne(un,dn,pn),en[tn+2+0]=Ne(cn,un,dn),en[tn+1+0]=en[tn+3+32]=Ne(nn,cn,un),en[tn+1+32]=en[tn+3+64]=Ne(rn,nn,cn),en[tn+1+64]=en[tn+3+96]=Ne(an,rn,nn),en[tn+1+96]=Ne(sn,an,rn)}function Ce(en,tn){var nn;for(nn=0;8>nn;++nn)n(en,tn+32*nn,en,tn-32,8)}function je(en,tn){var nn;for(nn=0;8>nn;++nn)i(en,tn,en[tn-1],8),tn+=32}function Oe(en,tn,nn){var rn;for(rn=0;8>rn;++rn)i(tn,nn+32*rn,en,8)}function Be(en,tn){var nn,rn=8;for(nn=0;8>nn;++nn)rn+=en[tn+nn-32]+en[tn-1+32*nn];Oe(rn>>4,en,tn)}function Me(en,tn){var nn,rn=4;for(nn=0;8>nn;++nn)rn+=en[tn+nn-32];Oe(rn>>3,en,tn)}function Ee(en,tn){var nn,rn=4;for(nn=0;8>nn;++nn)rn+=en[tn-1+32*nn];Oe(rn>>3,en,tn)}function qe(en,tn){Oe(128,en,tn)}function Re(en,tn,nn){var rn=en[tn-nn],an=en[tn+0],sn=3*(an-rn)+Zn[1020+en[tn-2*nn]-en[tn+nn]],cn=Tr[112+(sn+4>>3)];en[tn-nn]=Ur[255+rn+Tr[112+(sn+3>>3)]],en[tn+0]=Ur[255+an-cn]}function De(en,tn,nn,rn){var an=en[tn+0],sn=en[tn+nn];return Rr[255+en[tn-2*nn]-en[tn-nn]]>rn||Rr[255+sn-an]>rn}function Te(en,tn,nn,rn){return 4*Rr[255+en[tn-nn]-en[tn+0]]+Rr[255+en[tn-2*nn]-en[tn+nn]]<=rn}function Ue(en,tn,nn,rn,an){var sn=en[tn-3*nn],cn=en[tn-2*nn],un=en[tn-nn],dn=en[tn+0],pn=en[tn+nn],hn=en[tn+2*nn],gn=en[tn+3*nn];return 4*Rr[255+un-dn]+Rr[255+cn-pn]>rn?0:Rr[255+en[tn-4*nn]-sn]<=an&&Rr[255+sn-cn]<=an&&Rr[255+cn-un]<=an&&Rr[255+gn-hn]<=an&&Rr[255+hn-pn]<=an&&Rr[255+pn-dn]<=an}function ze(en,tn,nn,rn){var an=2*rn+1;for(rn=0;16>rn;++rn)Te(en,tn+rn,nn,an)&&Re(en,tn+rn,nn)}function He(en,tn,nn,rn){var an=2*rn+1;for(rn=0;16>rn;++rn)Te(en,tn+rn*nn,1,an)&&Re(en,tn+rn*nn,1)}function Ve(en,tn,nn,rn){var an;for(an=3;0<an;--an)ze(en,tn+=4*nn,nn,rn)}function We(en,tn,nn,rn){var an;for(an=3;0<an;--an)He(en,tn+=4,nn,rn)}function Ge(en,tn,nn,rn,an,sn,cn,un){for(sn=2*sn+1;0<an--;){if(Ue(en,tn,nn,sn,cn))if(De(en,tn,nn,un))Re(en,tn,nn);else{var dn=en,pn=tn,hn=nn,gn=dn[pn-2*hn],An=dn[pn-hn],mn=dn[pn+0],vn=dn[pn+hn],yn=dn[pn+2*hn],_n=27*(xn=Zn[1020+3*(mn-An)+Zn[1020+gn-vn]])+63>>7,wn=18*xn+63>>7,xn=9*xn+63>>7;dn[pn-3*hn]=Ur[255+dn[pn-3*hn]+xn],dn[pn-2*hn]=Ur[255+gn+wn],dn[pn-hn]=Ur[255+An+_n],dn[pn+0]=Ur[255+mn-_n],dn[pn+hn]=Ur[255+vn-wn],dn[pn+2*hn]=Ur[255+yn-xn]}tn+=rn}}function Ye(en,tn,nn,rn,an,sn,cn,un){for(sn=2*sn+1;0<an--;){if(Ue(en,tn,nn,sn,cn))if(De(en,tn,nn,un))Re(en,tn,nn);else{var dn=en,pn=tn,hn=nn,gn=dn[pn-hn],An=dn[pn+0],mn=dn[pn+hn],vn=Tr[112+(4+(yn=3*(An-gn))>>3)],yn=Tr[112+(yn+3>>3)],_n=vn+1>>1;dn[pn-2*hn]=Ur[255+dn[pn-2*hn]+_n],dn[pn-hn]=Ur[255+gn+yn],dn[pn+0]=Ur[255+An-vn],dn[pn+hn]=Ur[255+mn-_n]}tn+=rn}}function Je(en,tn,nn,rn,an,sn){Ge(en,tn,nn,1,16,rn,an,sn)}function Xe(en,tn,nn,rn,an,sn){Ge(en,tn,1,nn,16,rn,an,sn)}function Ke(en,tn,nn,rn,an,sn){var cn;for(cn=3;0<cn;--cn)Ye(en,tn+=4*nn,nn,1,16,rn,an,sn)}function Ze(en,tn,nn,rn,an,sn){var cn;for(cn=3;0<cn;--cn)Ye(en,tn+=4,1,nn,16,rn,an,sn)}function $e(en,tn,nn,rn,an,sn,cn,un){Ge(en,tn,an,1,8,sn,cn,un),Ge(nn,rn,an,1,8,sn,cn,un)}function Qe(en,tn,nn,rn,an,sn,cn,un){Ge(en,tn,1,an,8,sn,cn,un),Ge(nn,rn,1,an,8,sn,cn,un)}function tr(en,tn,nn,rn,an,sn,cn,un){Ye(en,tn+4*an,an,1,8,sn,cn,un),Ye(nn,rn+4*an,an,1,8,sn,cn,un)}function er(en,tn,nn,rn,an,sn,cn,un){Ye(en,tn+4,1,an,8,sn,cn,un),Ye(nn,rn+4,1,an,8,sn,cn,un)}function rr(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ut,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nr(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ir(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ar(){this.ua=0,this.Wa=new M,this.vb=new M,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new h}function or(){this.xb=this.a=0,this.l=new Gt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ar,this.ab=0,this.gc=o(4,ir),this.Oc=0}function sr(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ur(en,tn,nn,rn,an,sn,cn){for(en=null==en?0:en[tn+0],tn=0;tn<cn;++tn)an[sn+tn]=en+nn[rn+tn]&255,en=an[sn+tn]}function cr(en,tn,nn,rn,an,sn,cn){var un;if(null==en)ur(null,null,nn,rn,an,sn,cn);else for(un=0;un<cn;++un)an[sn+un]=en[tn+un]+nn[rn+un]&255}function lr(en,tn,nn,rn,an,sn,cn){if(null==en)ur(null,null,nn,rn,an,sn,cn);else{var un,dn=en[tn+0],pn=dn,hn=dn;for(un=0;un<cn;++un)pn=hn+(dn=en[tn+un])-pn,hn=nn[rn+un]+(-256&pn?0>pn?0:255:pn)&255,pn=dn,an[sn+un]=hn}}function hr(en,tn,nn,rn){var an=tn.width,sn=tn.o;if(e(null!=en&&null!=tn),0>nn||0>=rn||nn+rn>sn)return null;if(!en.Cc){if(null==en.ga){var cn;if(en.ga=new sr,(cn=null==en.ga)||(cn=tn.width*tn.o,e(0==en.Gb.length),en.Gb=a(cn),en.Uc=0,null==en.Gb?cn=0:(en.mb=en.Gb,en.nb=en.Uc,en.rc=null,cn=1),cn=!cn),!cn){cn=en.ga;var un=en.Fa,dn=en.P,pn=en.qc,hn=en.mb,gn=en.nb,An=dn+1,mn=pn-1,vn=cn.l;if(e(null!=un&&null!=hn&&null!=tn),xi[0]=null,xi[1]=ur,xi[2]=cr,xi[3]=lr,cn.ca=hn,cn.tb=gn,cn.c=tn.width,cn.i=tn.height,e(0<cn.c&&0<cn.i),1>=pn)tn=0;else if(cn.$a=un[dn+0]>>0&3,cn.Z=un[dn+0]>>2&3,cn.Lc=un[dn+0]>>4&3,dn=un[dn+0]>>6&3,0>cn.$a||1<cn.$a||4<=cn.Z||1<cn.Lc||dn)tn=0;else if(vn.put=dt,vn.ac=ft,vn.bc=pt,vn.ma=cn,vn.width=tn.width,vn.height=tn.height,vn.Da=tn.Da,vn.v=tn.v,vn.va=tn.va,vn.j=tn.j,vn.o=tn.o,cn.$a)e:{e(1==cn.$a),tn=kt();t:for(;;){if(null==tn){tn=0;break e}if(e(null!=cn),cn.mc=tn,tn.c=cn.c,tn.i=cn.i,tn.l=cn.l,tn.l.ma=cn,tn.l.width=cn.c,tn.l.height=cn.i,tn.a=0,v(tn.m,un,An,mn),!It(cn.c,cn.i,1,tn,null))break t;if(1==tn.ab&&3==tn.gc[0].hc&&At(tn.s)?(cn.ic=1,un=tn.c*tn.i,tn.Ta=null,tn.Ua=0,tn.V=a(un),tn.Ba=0,null==tn.V?(tn.a=1,tn=0):tn=1):(cn.ic=0,tn=Ft(tn,cn.c)),!tn)break t;tn=1;break e}cn.mc=null,tn=0}else tn=mn>=cn.c*cn.i;cn=!tn}if(cn)return null;1!=en.ga.Lc?en.Ga=0:rn=sn-nn}e(null!=en.ga),e(nn+rn<=sn);e:{if(tn=(un=en.ga).c,sn=un.l.o,0==un.$a){if(An=en.rc,mn=en.Vc,vn=en.Fa,dn=en.P+1+nn*tn,pn=en.mb,hn=en.nb+nn*tn,e(dn<=en.P+en.qc),0!=un.Z)for(e(null!=xi[un.Z]),cn=0;cn<rn;++cn)xi[un.Z](An,mn,vn,dn,pn,hn,tn),An=pn,mn=hn,hn+=tn,dn+=tn;else for(cn=0;cn<rn;++cn)n(pn,hn,vn,dn,tn),An=pn,mn=hn,hn+=tn,dn+=tn;en.rc=An,en.Vc=mn}else{if(e(null!=un.mc),tn=nn+rn,e(null!=(cn=un.mc)),e(tn<=cn.i),cn.C>=tn)tn=1;else if(un.ic||mr(),un.ic){un=cn.V,An=cn.Ba,mn=cn.c;var yn=cn.i,_n=(vn=1,dn=cn.$/mn,pn=cn.$%mn,hn=cn.m,gn=cn.s,cn.$),wn=mn*yn,xn=mn*tn,Sn=gn.wc,Cn=_n<xn?wt(gn,pn,dn):null;e(_n<=wn),e(tn<=yn),e(At(gn));t:for(;;){for(;!hn.h&&_n<xn;){if(pn&Sn||(Cn=wt(gn,pn,dn)),e(null!=Cn),S(hn),256>(yn=bt(Cn.G[0],Cn.H[0],hn)))un[An+_n]=yn,++_n,++pn>=mn&&(pn=0,++dn<=tn&&!(dn%16)&&St(cn,dn));else{if(!(280>yn)){vn=0;break t}yn=mt(yn-256,hn);var kn,Bn=bt(Cn.G[4],Cn.H[4],hn);if(S(hn),!(_n>=(Bn=vt(mn,Bn=mt(Bn,hn)))&&wn-_n>=yn)){vn=0;break t}for(kn=0;kn<yn;++kn)un[An+_n+kn]=un[An+_n+kn-Bn];for(_n+=yn,pn+=yn;pn>=mn;)pn-=mn,++dn<=tn&&!(dn%16)&&St(cn,dn);_n<xn&&pn&Sn&&(Cn=wt(gn,pn,dn))}e(hn.h==A(hn))}St(cn,dn>tn?tn:dn);break t}!vn||hn.h&&_n<wn?(vn=0,cn.a=hn.h?5:3):cn.$=_n,tn=vn}else tn=_t(cn,cn.V,cn.Ba,cn.c,cn.i,tn,Ct);if(!tn){rn=0;break e}}nn+rn>=sn&&(en.Cc=1),rn=1}if(!rn)return null;if(en.Cc&&(null!=(rn=en.ga)&&(rn.mc=null),en.ga=null,0<en.Ga))return alert("todo:WebPDequantizeLevels"),null}return en.nb+nn*an}function fr(en,tn,nn,rn,an,sn){for(;0<an--;){var cn,un=en,dn=tn+(nn?1:0),pn=en,hn=tn+(nn?0:3);for(cn=0;cn<rn;++cn){var gn=pn[hn+4*cn];255!=gn&&(gn*=32897,un[dn+4*cn+0]=un[dn+4*cn+0]*gn>>23,un[dn+4*cn+1]=un[dn+4*cn+1]*gn>>23,un[dn+4*cn+2]=un[dn+4*cn+2]*gn>>23)}tn+=sn}}function dr(en,tn,nn,rn,an){for(;0<rn--;){var sn;for(sn=0;sn<nn;++sn){var cn=en[tn+2*sn+0],un=15&(pn=en[tn+2*sn+1]),dn=4369*un,pn=(240&pn|pn>>4)*dn>>16;en[tn+2*sn+0]=(240&cn|cn>>4)*dn>>16&240|(15&cn|cn<<4)*dn>>16>>4&15,en[tn+2*sn+1]=240&pn|un}tn+=an}}function pr(en,tn,nn,rn,an,sn,cn,un){var dn,pn,hn=255;for(pn=0;pn<an;++pn){for(dn=0;dn<rn;++dn){var gn=en[tn+dn];sn[cn+4*dn]=gn,hn&=gn}tn+=nn,cn+=un}return 255!=hn}function gr(en,tn,nn,rn,an){var sn;for(sn=0;sn<an;++sn)nn[rn+sn]=en[tn+sn]>>8}function mr(){Vn=fr,zn=dr,Kn=pr,qn=gr}function vr(tn,nn,rn){en[tn]=function(en,tn,an,sn,cn,un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn,xn){var Sn,Cn=xn-1>>1,kn=cn[un+0]|dn[pn+0]<<16,Bn=hn[gn+0]|An[mn+0]<<16;e(null!=en);var En=3*kn+Bn+131074>>2;for(nn(en[tn+0],255&En,En>>16,vn,yn),null!=an&&(En=3*Bn+kn+131074>>2,nn(an[sn+0],255&En,En>>16,_n,wn)),Sn=1;Sn<=Cn;++Sn){var Pn=cn[un+Sn]|dn[pn+Sn]<<16,Ln=hn[gn+Sn]|An[mn+Sn]<<16,Tn=kn+Pn+Bn+Ln+524296,Nn=Tn+2*(Pn+Bn)>>3;En=Nn+kn>>1,kn=(Tn=Tn+2*(kn+Ln)>>3)+Pn>>1,nn(en[tn+2*Sn-1],255&En,En>>16,vn,yn+(2*Sn-1)*rn),nn(en[tn+2*Sn-0],255&kn,kn>>16,vn,yn+(2*Sn-0)*rn),null!=an&&(En=Tn+Bn>>1,kn=Nn+Ln>>1,nn(an[sn+2*Sn-1],255&En,En>>16,_n,wn+(2*Sn-1)*rn),nn(an[sn+2*Sn+0],255&kn,kn>>16,_n,wn+(2*Sn+0)*rn)),kn=Pn,Bn=Ln}1&xn||(En=3*kn+Bn+131074>>2,nn(en[tn+xn-1],255&En,En>>16,vn,yn+(xn-1)*rn),null!=an&&(En=3*Bn+kn+131074>>2,nn(an[sn+xn-1],255&En,En>>16,_n,wn+(xn-1)*rn)))}}function br(){Si[Dr]=Ci,Si[Qr]=Bi,Si[Hr]=ki,Si[Gr]=Ei,Si[Vr]=Pi,Si[zr]=Li,Si[Kr]=Ti,Si[$r]=Bi,Si[Wr]=Ei,Si[Xr]=Pi,Si[Yr]=Li}function yr(en){return en&~Mi?0>en?0:255:en>>Ui}function wr(en,tn){return yr((19077*en>>8)+(26149*tn>>8)-14234)}function Nr(en,tn,nn){return yr((19077*en>>8)-(6419*tn>>8)-(13320*nn>>8)+8708)}function Lr(en,tn){return yr((19077*en>>8)+(33050*tn>>8)-17685)}function Ar(en,tn,nn,rn,an){rn[an+0]=wr(en,nn),rn[an+1]=Nr(en,tn,nn),rn[an+2]=Lr(en,tn)}function xr(en,tn,nn,rn,an){rn[an+0]=Lr(en,tn),rn[an+1]=Nr(en,tn,nn),rn[an+2]=wr(en,nn)}function Sr(en,tn,nn,rn,an){var sn=Nr(en,tn,nn);tn=sn<<3&224|Lr(en,tn)>>3,rn[an+0]=248&wr(en,nn)|sn>>5,rn[an+1]=tn}function _r(en,tn,nn,rn,an){var sn=240&Lr(en,tn)|15;rn[an+0]=240&wr(en,nn)|Nr(en,tn,nn)>>4,rn[an+1]=sn}function Pr(en,tn,nn,rn,an){rn[an+0]=255,Ar(en,tn,nn,rn,an+1)}function kr(en,tn,nn,rn,an){xr(en,tn,nn,rn,an),rn[an+3]=255}function Ir(en,tn,nn,rn,an){Ar(en,tn,nn,rn,an),rn[an+3]=255}function Wt(en,tn){return 0>en?0:en>tn?tn:en}function Fr(tn,nn,rn){en[tn]=function(en,tn,an,sn,cn,un,dn,pn,hn){for(var gn=pn+(-2&hn)*rn;pn!=gn;)nn(en[tn+0],an[sn+0],cn[un+0],dn,pn),nn(en[tn+1],an[sn+0],cn[un+0],dn,pn+rn),tn+=2,++sn,++un,pn+=2*rn;1&hn&&nn(en[tn+0],an[sn+0],cn[un+0],dn,pn)}}function Cr(en,tn,nn){return 0==nn?0==en?0==tn?6:5:0==tn?4:0:nn}function jr(en,tn,nn,rn,an){switch(en>>>30){case 3:Bn(tn,nn,rn,an,0);break;case 2:En(tn,nn,rn,an);break;case 1:Ln(tn,nn,rn,an)}}function Or(en,tn){var nn,rn,an=tn.M,sn=tn.Nb,cn=en.oc,un=en.pc+40,dn=en.oc,pn=en.pc+584,hn=en.oc,gn=en.pc+600;for(nn=0;16>nn;++nn)cn[un+32*nn-1]=129;for(nn=0;8>nn;++nn)dn[pn+32*nn-1]=129,hn[gn+32*nn-1]=129;for(0<an?cn[un-1-32]=dn[pn-1-32]=hn[gn-1-32]=129:(i(cn,un-32-1,127,21),i(dn,pn-32-1,127,9),i(hn,gn-32-1,127,9)),rn=0;rn<en.za;++rn){var An=tn.ya[tn.aa+rn];if(0<rn){for(nn=-1;16>nn;++nn)n(cn,un+32*nn-4,cn,un+32*nn+12,4);for(nn=-1;8>nn;++nn)n(dn,pn+32*nn-4,dn,pn+32*nn+4,4),n(hn,gn+32*nn-4,hn,gn+32*nn+4,4)}var mn=en.Gd,vn=en.Hd+rn,yn=An.ad,_n=An.Hc;if(0<an&&(n(cn,un-32,mn[vn].y,0,16),n(dn,pn-32,mn[vn].f,0,8),n(hn,gn-32,mn[vn].ea,0,8)),An.Za){var wn=cn,xn=un-32+16;for(0<an&&(rn>=en.za-1?i(wn,xn,mn[vn].y[15],4):n(wn,xn,mn[vn+1].y,0,4)),nn=0;4>nn;nn++)wn[xn+128+nn]=wn[xn+256+nn]=wn[xn+384+nn]=wn[xn+0+nn];for(nn=0;16>nn;++nn,_n<<=2)wn=cn,xn=un+zi[nn],vi[An.Ob[nn]](wn,xn),jr(_n,yn,16*+nn,wn,xn)}else if(wn=Cr(rn,an,An.Ob[0]),mi[wn](cn,un),0!=_n)for(nn=0;16>nn;++nn,_n<<=2)jr(_n,yn,16*+nn,cn,un+zi[nn]);for(nn=An.Gc,wn=Cr(rn,an,An.Dd),yi[wn](dn,pn),yi[wn](hn,gn),_n=yn,wn=dn,xn=pn,255&(An=nn>>0)&&(170&An?Pn(_n,256,wn,xn):Tn(_n,256,wn,xn)),An=hn,_n=gn,255&(nn>>=8)&&(170&nn?Pn(yn,320,An,_n):Tn(yn,320,An,_n)),an<en.Ub-1&&(n(mn[vn].y,0,cn,un+480,16),n(mn[vn].f,0,dn,pn+224,8),n(mn[vn].ea,0,hn,gn+224,8)),nn=8*sn*en.B,mn=en.sa,vn=en.ta+16*rn+16*sn*en.R,yn=en.qa,An=en.ra+8*rn+nn,_n=en.Ha,wn=en.Ia+8*rn+nn,nn=0;16>nn;++nn)n(mn,vn+nn*en.R,cn,un+32*nn,16);for(nn=0;8>nn;++nn)n(yn,An+nn*en.B,dn,pn+32*nn,8),n(_n,wn+nn*en.B,hn,gn+32*nn,8)}}function Br(en,tn,nn,rn,an,sn,cn,un,dn){var pn=[0],hn=[0],gn=0,An=null!=dn?dn.kd:0,mn=null!=dn?dn:new nr;if(null==en||12>nn)return 7;mn.data=en,mn.w=tn,mn.ha=nn,tn=[tn],nn=[nn],mn.gb=[mn.gb];e:{var vn=tn,yn=nn,_n=mn.gb;if(e(null!=en),e(null!=yn),e(null!=_n),_n[0]=0,12<=yn[0]&&!r(en,vn[0],"RIFF")){if(r(en,vn[0]+8,"WEBP")){_n=3;break e}var wn=j(en,vn[0]+4);if(12>wn||4294967286<wn){_n=3;break e}if(An&&wn>yn[0]-8){_n=7;break e}_n[0]=wn,vn[0]+=12,yn[0]-=12}_n=0}if(0!=_n)return _n;for(wn=0<mn.gb[0],nn=nn[0];;){e:{var xn=en;yn=tn,_n=nn;var Sn=pn,Cn=hn,kn=vn=[0];if((Pn=gn=[gn])[0]=0,8>_n[0])_n=7;else{if(!r(xn,yn[0],"VP8X")){if(10!=j(xn,yn[0]+4)){_n=3;break e}if(18>_n[0]){_n=7;break e}var Bn=j(xn,yn[0]+8),En=1+C(xn,yn[0]+12);if(2147483648<=En*(xn=1+C(xn,yn[0]+15))){_n=3;break e}null!=kn&&(kn[0]=Bn),null!=Sn&&(Sn[0]=En),null!=Cn&&(Cn[0]=xn),yn[0]+=18,_n[0]-=18,Pn[0]=1}_n=0}}if(gn=gn[0],vn=vn[0],0!=_n)return _n;if(yn=!!(2&vn),!wn&&gn)return 3;if(null!=sn&&(sn[0]=!!(16&vn)),null!=cn&&(cn[0]=yn),null!=un&&(un[0]=0),cn=pn[0],vn=hn[0],gn&&yn&&null==dn){_n=0;break}if(4>nn){_n=7;break}if(wn&&gn||!wn&&!gn&&!r(en,tn[0],"ALPH")){nn=[nn],mn.na=[mn.na],mn.P=[mn.P],mn.Sa=[mn.Sa];e:{Bn=en,_n=tn,wn=nn;var Pn=mn.gb;Sn=mn.na,Cn=mn.P,kn=mn.Sa,En=22,e(null!=Bn),e(null!=wn),xn=_n[0];var Ln=wn[0];for(e(null!=Sn),e(null!=kn),Sn[0]=null,Cn[0]=null,kn[0]=0;;){if(_n[0]=xn,wn[0]=Ln,8>Ln){_n=7;break e}var Tn=j(Bn,xn+4);if(4294967286<Tn){_n=3;break e}var Nn=8+Tn+1&-2;if(En+=Nn,0<Pn&&En>Pn){_n=3;break e}if(!r(Bn,xn,"VP8 ")||!r(Bn,xn,"VP8L")){_n=0;break e}if(Ln[0]<Nn){_n=7;break e}r(Bn,xn,"ALPH")||(Sn[0]=Bn,Cn[0]=xn+8,kn[0]=Tn),xn+=Nn,Ln-=Nn}}if(nn=nn[0],mn.na=mn.na[0],mn.P=mn.P[0],mn.Sa=mn.Sa[0],0!=_n)break}nn=[nn],mn.Ja=[mn.Ja],mn.xa=[mn.xa];e:if(Pn=en,_n=tn,wn=nn,Sn=mn.gb[0],Cn=mn.Ja,kn=mn.xa,Bn=_n[0],xn=!r(Pn,Bn,"VP8 "),En=!r(Pn,Bn,"VP8L"),e(null!=Pn),e(null!=wn),e(null!=Cn),e(null!=kn),8>wn[0])_n=7;else{if(xn||En){if(Pn=j(Pn,Bn+4),12<=Sn&&Pn>Sn-12){_n=3;break e}if(An&&Pn>wn[0]-8){_n=7;break e}Cn[0]=Pn,_n[0]+=8,wn[0]-=8,kn[0]=En}else kn[0]=5<=wn[0]&&47==Pn[Bn+0]&&!(Pn[Bn+4]>>5),Cn[0]=wn[0];_n=0}if(nn=nn[0],mn.Ja=mn.Ja[0],mn.xa=mn.xa[0],tn=tn[0],0!=_n)break;if(4294967286<mn.Ja)return 3;if(null==un||yn||(un[0]=mn.xa?2:1),cn=[cn],vn=[vn],mn.xa){if(5>nn){_n=7;break}un=cn,An=vn,yn=sn,null==en||5>nn?en=0:5<=nn&&47==en[tn+0]&&!(en[tn+4]>>5)?(wn=[0],Pn=[0],Sn=[0],v(Cn=new N,en,tn,nn),gt(Cn,wn,Pn,Sn)?(null!=un&&(un[0]=wn[0]),null!=An&&(An[0]=Pn[0]),null!=yn&&(yn[0]=Sn[0]),en=1):en=0):en=0}else{if(10>nn){_n=7;break}un=vn,null==en||10>nn||!Xt(en,tn+3,nn-3)?en=0:(An=en[tn+0]|en[tn+1]<<8|en[tn+2]<<16,yn=16383&(en[tn+7]<<8|en[tn+6]),en=16383&(en[tn+9]<<8|en[tn+8]),1&An||3<(An>>1&7)||!(An>>4&1)||An>>5>=mn.Ja||!yn||!en?en=0:(cn&&(cn[0]=yn),un&&(un[0]=en),en=1))}if(!en)return 3;if(cn=cn[0],vn=vn[0],gn&&(pn[0]!=cn||hn[0]!=vn))return 3;null!=dn&&(dn[0]=mn,dn.offset=tn-dn.w,e(4294967286>tn-dn.w),e(dn.offset==dn.ha-nn));break}return 0==_n||7==_n&&gn&&null==dn?(null!=sn&&(sn[0]|=null!=mn.na&&0<mn.na.length),null!=rn&&(rn[0]=cn),null!=an&&(an[0]=vn),0):_n}function Mr(en,tn,nn){var rn=tn.width,an=tn.height,sn=0,cn=0,un=rn,dn=an;if(tn.Da=null!=en&&0<en.Da,tn.Da&&(un=en.cd,dn=en.bd,sn=en.v,cn=en.j,11>nn||(sn&=-2,cn&=-2),0>sn||0>cn||0>=un||0>=dn||sn+un>rn||cn+dn>an))return 0;if(tn.v=sn,tn.j=cn,tn.va=sn+un,tn.o=cn+dn,tn.U=un,tn.T=dn,tn.da=null!=en&&0<en.da,tn.da){if(!E(un,dn,nn=[en.ib],sn=[en.hb]))return 0;tn.ib=nn[0],tn.hb=sn[0]}return tn.ob=null!=en&&en.ob,tn.Kb=null==en||!en.Sd,tn.da&&(tn.ob=tn.ib<3*rn/4&&tn.hb<3*an/4,tn.Kb=0),1}function Er(en){if(null==en)return 2;if(11>en.S){var tn=en.f.RGBA;tn.fb+=(en.height-1)*tn.A,tn.A=-tn.A}else tn=en.f.kb,en=en.height,tn.O+=(en-1)*tn.fa,tn.fa=-tn.fa,tn.N+=(en-1>>1)*tn.Ab,tn.Ab=-tn.Ab,tn.W+=(en-1>>1)*tn.Db,tn.Db=-tn.Db,null!=tn.F&&(tn.J+=(en-1)*tn.lb,tn.lb=-tn.lb);return 0}function qr(en,tn,nn,rn){if(null==rn||0>=en||0>=tn)return 2;if(null!=nn){if(nn.Da){var an=nn.cd,sn=nn.bd,cn=-2&nn.v,un=-2&nn.j;if(0>cn||0>un||0>=an||0>=sn||cn+an>en||un+sn>tn)return 2;en=an,tn=sn}if(nn.da){if(!E(en,tn,an=[nn.ib],sn=[nn.hb]))return 2;en=an[0],tn=sn[0]}}rn.width=en,rn.height=tn;e:{var dn=rn.width,pn=rn.height;if(en=rn.S,0>=dn||0>=pn||!(en>=Dr&&13>en))en=2;else{if(0>=rn.Rd&&null==rn.sd){cn=sn=an=tn=0;var hn=(un=dn*Wi[en])*pn;if(11>en||(sn=(pn+1)/2*(tn=(dn+1)/2),12==en&&(cn=(an=dn)*pn)),null==(pn=a(hn+2*sn+cn))){en=1;break e}rn.sd=pn,11>en?((dn=rn.f.RGBA).eb=pn,dn.fb=0,dn.A=un,dn.size=hn):((dn=rn.f.kb).y=pn,dn.O=0,dn.fa=un,dn.Fd=hn,dn.f=pn,dn.N=0+hn,dn.Ab=tn,dn.Cd=sn,dn.ea=pn,dn.W=0+hn+sn,dn.Db=tn,dn.Ed=sn,12==en&&(dn.F=pn,dn.J=0+hn+2*sn),dn.Tc=cn,dn.lb=an)}if(tn=1,an=rn.S,sn=rn.width,cn=rn.height,an>=Dr&&13>an)if(11>an)en=rn.f.RGBA,tn&=(un=Math.abs(en.A))*(cn-1)+sn<=en.size,tn&=un>=sn*Wi[an],tn&=null!=en.eb;else{en=rn.f.kb,un=(sn+1)/2,hn=(cn+1)/2,dn=Math.abs(en.fa),pn=Math.abs(en.Ab);var gn=Math.abs(en.Db),An=Math.abs(en.lb),mn=An*(cn-1)+sn;tn&=dn*(cn-1)+sn<=en.Fd,tn&=pn*(hn-1)+un<=en.Cd,tn=(tn&=gn*(hn-1)+un<=en.Ed)&dn>=sn&pn>=un&gn>=un,tn&=null!=en.y,tn&=null!=en.f,tn&=null!=en.ea,12==an&&(tn&=An>=sn,tn&=mn<=en.Tc,tn&=null!=en.F)}else tn=0;en=tn?0:2}}return 0!=en||null!=nn&&nn.fd&&(en=Er(rn)),en}var tn=64,nn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],rn=24,an=32,sn=8,cn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];D("Predictor0","PredictorAdd0"),en.Predictor0=function(){return 4278190080},en.Predictor1=function(en){return en},en.Predictor2=function(en,tn,nn){return tn[nn+0]},en.Predictor3=function(en,tn,nn){return tn[nn+1]},en.Predictor4=function(en,tn,nn){return tn[nn-1]},en.Predictor5=function(en,tn,nn){return U(U(en,tn[nn+1]),tn[nn+0])},en.Predictor6=function(en,tn,nn){return U(en,tn[nn-1])},en.Predictor7=function(en,tn,nn){return U(en,tn[nn+0])},en.Predictor8=function(en,tn,nn){return U(tn[nn-1],tn[nn+0])},en.Predictor9=function(en,tn,nn){return U(tn[nn+0],tn[nn+1])},en.Predictor10=function(en,tn,nn){return U(U(en,tn[nn-1]),U(tn[nn+0],tn[nn+1]))},en.Predictor11=function(en,tn,nn){var rn=tn[nn+0];return 0>=V(rn>>24&255,en>>24&255,(tn=tn[nn-1])>>24&255)+V(rn>>16&255,en>>16&255,tn>>16&255)+V(rn>>8&255,en>>8&255,tn>>8&255)+V(255&rn,255&en,255&tn)?rn:en},en.Predictor12=function(en,tn,nn){var rn=tn[nn+0];return(z((en>>24&255)+(rn>>24&255)-((tn=tn[nn-1])>>24&255))<<24|z((en>>16&255)+(rn>>16&255)-(tn>>16&255))<<16|z((en>>8&255)+(rn>>8&255)-(tn>>8&255))<<8|z((255&en)+(255&rn)-(255&tn)))>>>0},en.Predictor13=function(en,tn,nn){var rn=tn[nn-1];return(H((en=U(en,tn[nn+0]))>>24&255,rn>>24&255)<<24|H(en>>16&255,rn>>16&255)<<16|H(en>>8&255,rn>>8&255)<<8|H(en>>0&255,rn>>0&255))>>>0};var un=en.PredictorAdd0;en.PredictorAdd1=W,D("Predictor2","PredictorAdd2"),D("Predictor3","PredictorAdd3"),D("Predictor4","PredictorAdd4"),D("Predictor5","PredictorAdd5"),D("Predictor6","PredictorAdd6"),D("Predictor7","PredictorAdd7"),D("Predictor8","PredictorAdd8"),D("Predictor9","PredictorAdd9"),D("Predictor10","PredictorAdd10"),D("Predictor11","PredictorAdd11"),D("Predictor12","PredictorAdd12"),D("Predictor13","PredictorAdd13");var dn=en.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",(function(en){return en>>8&255}),(function(en){return en})),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(en){return en}),(function(en){return en>>8&255}));var pn,hn=en.ColorIndexInverseTransform,gn=en.MapARGB,An=en.VP8LColorIndexInverseTransformAlpha,mn=en.MapAlpha,vn=en.VP8LPredictorsAdd=[];vn.length=16,(en.VP8LPredictors=[]).length=16,(en.VP8LPredictorsAdd_C=[]).length=16,(en.VP8LPredictors_C=[]).length=16;var yn,_n,wn,xn,Sn,Cn,kn,Bn,En,Pn,Ln,Tn,Nn,In,On,Fn,Un,Mn,Rn,Dn,jn,Qn,Hn,Gn,Vn,zn,Kn,qn,$n=a(511),Wn=a(2041),Xn=a(225),Yn=a(767),Jn=0,Zn=Wn,Tr=Xn,Ur=Yn,Rr=$n,Dr=0,Qr=1,Hr=2,Gr=3,Vr=4,zr=5,Kr=6,$r=7,Wr=8,Xr=9,Yr=10,Jr=[2,3,7],Zr=[3,3,11],ei=[280,256,256,256,40],ti=[0,1,1,1,0],ni=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],ri=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],ii=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],oi=8,ai=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],si=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],li=null,ui=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],di=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],pi=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],hi=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],gi=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],fi=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Ai=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],mi=[],vi=[],yi=[],_i=1,wi=2,xi=[],Si=[];vr("UpsampleRgbLinePair",Ar,3),vr("UpsampleBgrLinePair",xr,3),vr("UpsampleRgbaLinePair",Ir,4),vr("UpsampleBgraLinePair",kr,4),vr("UpsampleArgbLinePair",Pr,4),vr("UpsampleRgba4444LinePair",_r,2),vr("UpsampleRgb565LinePair",Sr,2);var Ci=en.UpsampleRgbLinePair,ki=en.UpsampleBgrLinePair,Bi=en.UpsampleRgbaLinePair,Ei=en.UpsampleBgraLinePair,Pi=en.UpsampleArgbLinePair,Li=en.UpsampleRgba4444LinePair,Ti=en.UpsampleRgb565LinePair,Ni=16,Ii=1<<Ni-1,Oi=-227,Fi=482,Ui=6,Mi=(256<<Ui)-1,Ri=0,Di=a(256),ji=a(256),Qi=a(256),Hi=a(256),Gi=a(Fi-Oi),Vi=a(Fi-Oi);Fr("YuvToRgbRow",Ar,3),Fr("YuvToBgrRow",xr,3),Fr("YuvToRgbaRow",Ir,4),Fr("YuvToBgraRow",kr,4),Fr("YuvToArgbRow",Pr,4),Fr("YuvToRgba4444Row",_r,2),Fr("YuvToRgb565Row",Sr,2);var zi=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ki=[0,2,8],qi=[8,7,6,4,4,2,2,2,1,1,1,1],$i=1;this.WebPDecodeRGBA=function(en,tn,nn,rn,an){var sn=Qr,cn=new rr,un=new ot;cn.ba=un,un.S=sn,un.width=[un.width],un.height=[un.height];var dn=un.width,pn=un.height,hn=new st;if(null==hn||null==en)var gn=2;else e(null!=hn),gn=Br(en,tn,nn,hn.width,hn.height,hn.Pd,hn.Qd,hn.format,null);if(0!=gn?dn=0:(null!=dn&&(dn[0]=hn.width[0]),null!=pn&&(pn[0]=hn.height[0]),dn=1),dn){un.width=un.width[0],un.height=un.height[0],null!=rn&&(rn[0]=un.width),null!=an&&(an[0]=un.height);e:{if(rn=new Gt,(an=new nr).data=en,an.w=tn,an.ha=nn,an.kd=1,tn=[0],e(null!=an),(0==(en=Br(an.data,an.w,an.ha,null,null,null,tn,null,an))||7==en)&&tn[0]&&(en=4),0==(tn=en)){if(e(null!=cn),rn.data=an.data,rn.w=an.w+an.offset,rn.ha=an.ha-an.offset,rn.put=dt,rn.ac=ft,rn.bc=pt,rn.ma=cn,an.xa){if(null==(en=kt())){cn=1;break e}if(function(en,tn){var nn=[0],rn=[0],an=[0];t:for(;;){if(null==en)return 0;if(null==tn)return en.a=2,0;if(en.l=tn,en.a=0,v(en.m,tn.data,tn.w,tn.ha),!gt(en.m,nn,rn,an)){en.a=3;break t}if(en.xb=wi,tn.width=nn[0],tn.height=rn[0],!It(nn[0],rn[0],1,en,null))break t;return 1}return e(0!=en.a),0}(en,rn)){if(rn=0==(tn=qr(rn.width,rn.height,cn.Oa,cn.ba))){t:{rn=en;n:for(;;){if(null==rn){rn=0;break t}if(e(null!=rn.s.yc),e(null!=rn.s.Ya),e(0<rn.s.Wb),e(null!=(nn=rn.l)),e(null!=(an=nn.ma)),0!=rn.xb){if(rn.ca=an.ba,rn.tb=an.tb,e(null!=rn.ca),!Mr(an.Oa,nn,Gr)){rn.a=2;break n}if(!Ft(rn,nn.width))break n;if(nn.da)break n;if((nn.da||nt(rn.ca.S))&&mr(),11>rn.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=rn.ca.f.kb.F&&mr()),rn.Pb&&0<rn.s.ua&&null==rn.s.vb.X&&!O(rn.s.vb,rn.s.Wa.Xa)){rn.a=1;break n}rn.xb=0}if(!_t(rn,rn.V,rn.Ba,rn.c,rn.i,nn.o,Lt))break n;an.Dc=rn.Ma,rn=1;break t}e(0!=rn.a),rn=0}rn=!rn}rn&&(tn=en.a)}else tn=en.a}else{if(null==(en=new Yt)){cn=1;break e}if(en.Fa=an.na,en.P=an.P,en.qc=an.Sa,Kt(en,rn)){if(0==(tn=qr(rn.width,rn.height,cn.Oa,cn.ba))){if(en.Aa=0,nn=cn.Oa,e(null!=(an=en)),null!=nn){if(0<(dn=0>(dn=nn.Md)?0:100<dn?255:255*dn/100)){for(pn=hn=0;4>pn;++pn)12>(gn=an.pb[pn]).lc&&(gn.ia=dn*qi[0>gn.lc?0:gn.lc]>>3),hn|=gn.ia;hn&&(alert("todo:VP8InitRandom"),an.ia=1)}an.Ga=nn.Id,100<an.Ga?an.Ga=100:0>an.Ga&&(an.Ga=0)}Qt(en,rn)||(tn=en.a)}}else tn=en.a}0==tn&&null!=cn.Oa&&cn.Oa.fd&&(tn=Er(cn.ba))}cn=tn}sn=0!=cn?null:11>sn?un.f.RGBA.eb:un.f.kb.y}else sn=null;return sn};var Wi=[3,4,3,4,4,2,2,4,4,4,2,1,1]});var tn=[0],nn=[0],rn=[],an=new $t,sn=en,cn=function(en,tn){var nn={},rn=0,an=!1,sn=0,cn=0;if(nn.frames=[],!
|
||
/** @license
|
||
* Copyright (c) 2017 Dominik Homberger
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
|
||
https://webpjs.appspot.com
|
||
WebPRiffParser dominikhlbg@gmail.com
|
||
*/
|
||
function(en,tn,nn,rn){for(var an=0;an<4;an++)if(en[tn+an]!="RIFF".charCodeAt(an))return!0;return!1}(en,tn)){var un,dn;for(l(en,tn+=4),tn+=8;tn<en.length;){var pn=u(en,tn),hn=l(en,tn+=4);tn+=4;var gn=hn+(1&hn);switch(pn){case"VP8 ":case"VP8L":void 0===nn.frames[rn]&&(nn.frames[rn]={}),(vn=nn.frames[rn]).src_off=an?cn:tn-8,vn.src_size=sn+hn+8,rn++,an&&(an=!1,sn=0,cn=0);break;case"VP8X":(vn=nn.header={}).feature_flags=en[tn];var An=tn+4;vn.canvas_width=1+c(en,An),An+=3,vn.canvas_height=1+c(en,An),An+=3;break;case"ALPH":an=!0,sn=gn+8,cn=tn-8;break;case"ANIM":(vn=nn.header).bgcolor=l(en,tn),An=tn+4,vn.loop_count=(un=en)[(dn=An)+0]<<0|un[dn+1]<<8,An+=2;break;case"ANMF":var mn,vn;(vn=nn.frames[rn]={}).offset_x=2*c(en,tn),tn+=3,vn.offset_y=2*c(en,tn),tn+=3,vn.width=1+c(en,tn),tn+=3,vn.height=1+c(en,tn),tn+=3,vn.duration=c(en,tn),tn+=3,mn=en[tn++],vn.dispose=1&mn,vn.blend=mn>>1&1}"ANMF"!=pn&&(tn+=gn)}return nn}}(sn,0);cn.response=sn,cn.rgbaoutput=!0,cn.dataurl=!1;var un=cn.header?cn.header:null,dn=cn.frames?cn.frames:null;if(un){un.loop_counter=un.loop_count,tn=[un.canvas_height],nn=[un.canvas_width];for(var pn=0;pn<dn.length&&0!=dn[pn].blend;pn++);}var hn=dn[0],gn=an.WebPDecodeRGBA(sn,hn.src_off,hn.src_size,nn,tn);hn.rgba=gn,hn.imgwidth=nn[0],hn.imgheight=tn[0];for(var An=0;An<nn[0]*tn[0]*4;An++)rn[An]=gn[An];return this.width=nn,this.height=tn,this.data=rn,this}!function(en){var tn=function n(tn,rn,dn,pn){var hn=4,gn=sn;switch(pn){case en.image_compression.FAST:hn=1,gn=an;break;case en.image_compression.MEDIUM:hn=6,gn=cn;break;case en.image_compression.SLOW:hn=9,gn=un}var An=zlibSync(tn=nn(tn,rn,dn,gn),{level:hn});return en.__addimage__.arrayBufferToBinaryString(An)},nn=function i(en,tn,nn,rn){for(var i,an,sn,cn=en.length/tn,un=new Uint8Array(en.length+cn),dn=pn(),gn=0;gn<cn;gn+=1){if(sn=gn*tn,i=en.subarray(sn,sn+tn),rn)un.set(rn(i,nn,an),sn+gn);else{for(var An,mn=dn.length,vn=[];An<mn;An+=1)vn[An]=dn[An](i,nn,an);var yn=hn(vn.concat());un.set(vn[yn],sn+gn)}an=i}return un},rn=function a(en){var tn=Array.apply([],en);return tn.unshift(0),tn},an=function o(en,tn){var nn,rn=[],an=en.length;rn[0]=1;for(var sn=0;sn<an;sn+=1)nn=en[sn-tn]||0,rn[sn+1]=en[sn]-nn+256&255;return rn},sn=function s(en,tn,nn){var rn,an=[],sn=en.length;an[0]=2;for(var cn=0;cn<sn;cn+=1)rn=nn&&nn[cn]||0,an[cn+1]=en[cn]-rn+256&255;return an},cn=function u(en,tn,nn){var rn,an,sn=[],cn=en.length;sn[0]=3;for(var un=0;un<cn;un+=1)rn=en[un-tn]||0,an=nn&&nn[un]||0,sn[un+1]=en[un]+256-(rn+an>>>1)&255;return sn},un=function c(en,tn,nn){var rn,an,sn,cn,un=[],pn=en.length;un[0]=4;for(var c=0;c<pn;c+=1)rn=en[c-tn]||0,an=nn&&nn[c]||0,sn=nn&&nn[c-tn]||0,cn=dn(rn,an,sn),un[c+1]=en[c]-cn+256&255;return un},dn=function l(en,tn,nn){if(en===tn&&tn===nn)return en;var rn=Math.abs(tn-nn),an=Math.abs(en-nn),sn=Math.abs(en+tn-nn-nn);return rn<=an&&rn<=sn?en:an<=sn?tn:nn},pn=function h(){return[rn,an,sn,cn,un]},hn=function f(en){var tn=en.map((function(en){return en.reduce((function(en,tn){return en+Math.abs(tn)}),0)}));return tn.indexOf(Math.min.apply(null,tn))};en.processPNG=function(nn,rn,an,sn){var cn,un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn,xn,Sn,Cn,kn=this.decode.FLATE_DECODE,Bn="";if(this.__addimage__.isArrayBuffer(nn)&&(nn=new Uint8Array(nn)),this.__addimage__.isArrayBufferView(nn)){if(nn=(dn=new pR(nn)).imgData,un=dn.bits,cn=dn.colorSpace,hn=dn.colors,-1!==[4,6].indexOf(dn.colorType)){if(8===dn.bits){vn=(mn=32==dn.pixelBitlength?new Uint32Array(dn.decodePixels().buffer):16==dn.pixelBitlength?new Uint16Array(dn.decodePixels().buffer):new Uint8Array(dn.decodePixels().buffer)).length,_n=new Uint8Array(vn*dn.colors),yn=new Uint8Array(vn);var En,Pn=dn.pixelBitlength-dn.bits;for(Sn=0,Cn=0;Sn<vn;Sn++){for(xn=mn[Sn],En=0;En<Pn;)_n[Cn++]=xn>>>En&255,En+=dn.bits;yn[Sn]=xn>>>En&255}}if(16===dn.bits){vn=(mn=new Uint32Array(dn.decodePixels().buffer)).length,_n=new Uint8Array(vn*(32/dn.pixelBitlength)*dn.colors),yn=new Uint8Array(vn*(32/dn.pixelBitlength)),wn=dn.colors>1,Sn=0,Cn=0;for(var Ln=0;Sn<vn;)xn=mn[Sn++],_n[Cn++]=xn>>>0&255,wn&&(_n[Cn++]=xn>>>16&255,xn=mn[Sn++],_n[Cn++]=xn>>>0&255),yn[Ln++]=xn>>>16&255;un=8}sn!==en.image_compression.NONE?(nn=tn(_n,dn.width*dn.colors,dn.colors,sn),An=tn(yn,dn.width,1,sn)):(nn=_n,An=yn,kn=void 0)}if(3===dn.colorType&&(cn=this.color_spaces.INDEXED,gn=dn.palette,dn.transparency.indexed)){var Tn=dn.transparency.indexed,Nn=0;for(Sn=0,vn=Tn.length;Sn<vn;++Sn)Nn+=Tn[Sn];if((Nn/=255)==vn-1&&-1!==Tn.indexOf(0))pn=[Tn.indexOf(0)];else if(Nn!==vn){for(mn=dn.decodePixels(),yn=new Uint8Array(mn.length),Sn=0,vn=mn.length;Sn<vn;Sn++)yn[Sn]=Tn[mn[Sn]];An=tn(yn,dn.width,1)}}var In=function(tn){var nn;switch(tn){case en.image_compression.FAST:nn=11;break;case en.image_compression.MEDIUM:nn=13;break;case en.image_compression.SLOW:nn=14;break;default:nn=12}return nn}(sn);return kn===this.decode.FLATE_DECODE&&(Bn="/Predictor "+In+" "),Bn+="/Colors "+hn+" /BitsPerComponent "+un+" /Columns "+dn.width,(this.__addimage__.isArrayBuffer(nn)||this.__addimage__.isArrayBufferView(nn))&&(nn=this.__addimage__.arrayBufferToBinaryString(nn)),(An&&this.__addimage__.isArrayBuffer(An)||this.__addimage__.isArrayBufferView(An))&&(An=this.__addimage__.arrayBufferToBinaryString(An)),{alias:an,data:nn,index:rn,filter:kn,decodeParameters:Bn,transparency:pn,palette:gn,sMask:An,predictor:In,width:dn.width,height:dn.height,bitsPerComponent:un,colorSpace:cn}}}}(O$1.API),function(en){en.processGIF89A=function(tn,nn,rn,an){var sn=new Jt(tn),cn=sn.width,un=sn.height,dn=[];sn.decodeAndBlitFrameRGBA(0,dn);var pn={data:dn,width:cn,height:un},hn=new Kt(100).encode(pn,100);return en.processJPEG.call(this,hn,nn,rn,an)},en.processGIF87A=en.processGIF89A}(O$1.API),Zt.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var en=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(en);for(var tn=0;tn<en;tn++){var nn=this.datav.getUint8(this.pos++,!0),rn=this.datav.getUint8(this.pos++,!0),an=this.datav.getUint8(this.pos++,!0),sn=this.datav.getUint8(this.pos++,!0);this.palette[tn]={red:an,green:rn,blue:nn,quad:sn}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Zt.prototype.parseBGR=function(){this.pos=this.offset;try{var en="bit"+this.bitPP,tn=this.width*this.height*4;this.data=new Uint8Array(tn),this[en]()}catch(en){nM.log("bit decode error:"+en)}},Zt.prototype.bit1=function(){var en,tn=Math.ceil(this.width/8),nn=tn%4;for(en=this.height-1;en>=0;en--){for(var rn=this.bottom_up?en:this.height-1-en,an=0;an<tn;an++)for(var sn=this.datav.getUint8(this.pos++,!0),cn=rn*this.width*4+8*an*4,un=0;un<8&&8*an+un<this.width;un++){var dn=this.palette[sn>>7-un&1];this.data[cn+4*un]=dn.blue,this.data[cn+4*un+1]=dn.green,this.data[cn+4*un+2]=dn.red,this.data[cn+4*un+3]=255}0!==nn&&(this.pos+=4-nn)}},Zt.prototype.bit4=function(){for(var en=Math.ceil(this.width/2),tn=en%4,nn=this.height-1;nn>=0;nn--){for(var rn=this.bottom_up?nn:this.height-1-nn,an=0;an<en;an++){var sn=this.datav.getUint8(this.pos++,!0),cn=rn*this.width*4+2*an*4,un=sn>>4,dn=15&sn,pn=this.palette[un];if(this.data[cn]=pn.blue,this.data[cn+1]=pn.green,this.data[cn+2]=pn.red,this.data[cn+3]=255,2*an+1>=this.width)break;pn=this.palette[dn],this.data[cn+4]=pn.blue,this.data[cn+4+1]=pn.green,this.data[cn+4+2]=pn.red,this.data[cn+4+3]=255}0!==tn&&(this.pos+=4-tn)}},Zt.prototype.bit8=function(){for(var en=this.width%4,tn=this.height-1;tn>=0;tn--){for(var nn=this.bottom_up?tn:this.height-1-tn,rn=0;rn<this.width;rn++){var an=this.datav.getUint8(this.pos++,!0),sn=nn*this.width*4+4*rn;if(an<this.palette.length){var cn=this.palette[an];this.data[sn]=cn.red,this.data[sn+1]=cn.green,this.data[sn+2]=cn.blue,this.data[sn+3]=255}else this.data[sn]=255,this.data[sn+1]=255,this.data[sn+2]=255,this.data[sn+3]=255}0!==en&&(this.pos+=4-en)}},Zt.prototype.bit15=function(){for(var en=this.width%3,tn=parseInt("11111",2),nn=this.height-1;nn>=0;nn--){for(var rn=this.bottom_up?nn:this.height-1-nn,an=0;an<this.width;an++){var sn=this.datav.getUint16(this.pos,!0);this.pos+=2;var cn=(sn&tn)/tn*255|0,un=(sn>>5&tn)/tn*255|0,dn=(sn>>10&tn)/tn*255|0,pn=sn>>15?255:0,hn=rn*this.width*4+4*an;this.data[hn]=dn,this.data[hn+1]=un,this.data[hn+2]=cn,this.data[hn+3]=pn}this.pos+=en}},Zt.prototype.bit16=function(){for(var en=this.width%3,tn=parseInt("11111",2),nn=parseInt("111111",2),rn=this.height-1;rn>=0;rn--){for(var an=this.bottom_up?rn:this.height-1-rn,sn=0;sn<this.width;sn++){var cn=this.datav.getUint16(this.pos,!0);this.pos+=2;var un=(cn&tn)/tn*255|0,dn=(cn>>5&nn)/nn*255|0,pn=(cn>>11)/tn*255|0,hn=an*this.width*4+4*sn;this.data[hn]=pn,this.data[hn+1]=dn,this.data[hn+2]=un,this.data[hn+3]=255}this.pos+=en}},Zt.prototype.bit24=function(){for(var en=this.height-1;en>=0;en--){for(var tn=this.bottom_up?en:this.height-1-en,nn=0;nn<this.width;nn++){var rn=this.datav.getUint8(this.pos++,!0),an=this.datav.getUint8(this.pos++,!0),sn=this.datav.getUint8(this.pos++,!0),cn=tn*this.width*4+4*nn;this.data[cn]=sn,this.data[cn+1]=an,this.data[cn+2]=rn,this.data[cn+3]=255}this.pos+=this.width%4}},Zt.prototype.bit32=function(){for(var en=this.height-1;en>=0;en--)for(var tn=this.bottom_up?en:this.height-1-en,nn=0;nn<this.width;nn++){var rn=this.datav.getUint8(this.pos++,!0),an=this.datav.getUint8(this.pos++,!0),sn=this.datav.getUint8(this.pos++,!0),cn=this.datav.getUint8(this.pos++,!0),un=tn*this.width*4+4*nn;this.data[un]=sn,this.data[un+1]=an,this.data[un+2]=rn,this.data[un+3]=cn}},Zt.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(en){en.processBMP=function(tn,nn,rn,an){var sn=new Zt(tn,!1),cn=sn.width,un=sn.height,dn={data:sn.getData(),width:cn,height:un},pn=new Kt(100).encode(dn,100);return en.processJPEG.call(this,pn,nn,rn,an)}}(O$1.API),$t.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2019 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(en){en.processWEBP=function(tn,nn,rn,an){var sn=new $t(tn,!1),cn=sn.width,un=sn.height,dn={data:sn.getData(),width:cn,height:un},pn=new Kt(100).encode(dn,100);return en.processJPEG.call(this,pn,nn,rn,an)}}(O$1.API),O$1.API.setLanguage=function(en){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[en]&&(this.internal.languageSettings.languageCode=en,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},
|
||
/** @license
|
||
* MIT license.
|
||
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
|
||
* 2014 Diego Casorran, https://github.com/diegocr
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
sR=O$1.API,lR=sR.getCharWidthsArray=function(en,tn){var nn,rn,an=(tn=tn||{}).font||this.internal.getFont(),sn=tn.fontSize||this.internal.getFontSize(),cn=tn.charSpace||this.internal.getCharSpace(),un=tn.widths?tn.widths:an.metadata.Unicode.widths,dn=un.fof?un.fof:1,pn=tn.kerning?tn.kerning:an.metadata.Unicode.kerning,hn=pn.fof?pn.fof:1,gn=!1!==tn.doKerning,An=0,mn=en.length,vn=0,yn=un[0]||dn,_n=[];for(nn=0;nn<mn;nn++)rn=en.charCodeAt(nn),"function"==typeof an.metadata.widthOfString?_n.push((an.metadata.widthOfGlyph(an.metadata.characterToGlyph(rn))+cn*(1e3/sn)||0)/1e3):(An=gn&&"object"==_typeof(pn[rn])&&!isNaN(parseInt(pn[rn][vn],10))?pn[rn][vn]/hn:0,_n.push((un[rn]||yn)/dn+An)),vn=rn;return _n},cR=sR.getStringUnitWidth=function(en,tn){var nn=(tn=tn||{}).fontSize||this.internal.getFontSize(),rn=tn.font||this.internal.getFont(),an=tn.charSpace||this.internal.getCharSpace();return sR.processArabic&&(en=sR.processArabic(en)),"function"==typeof rn.metadata.widthOfString?rn.metadata.widthOfString(en,nn,an)/nn:lR.apply(this,arguments).reduce((function(en,tn){return en+tn}),0)},uR=function Wt(en,tn,nn,rn){for(var an=[],sn=0,cn=en.length,un=0;sn!==cn&&un+tn[sn]<nn;)un+=tn[sn],sn++;an.push(en.slice(0,sn));var dn=sn;for(un=0;sn!==cn;)un+tn[sn]>rn&&(an.push(en.slice(dn,sn)),un=0,dn=sn),un+=tn[sn],sn++;return dn!==sn&&an.push(en.slice(dn,sn)),an},dR=function Gt(en,tn,nn){nn||(nn={});var rn,an,sn,cn,un,dn,pn,hn=[],gn=[hn],An=nn.textIndent||0,mn=0,vn=0,yn=en.split(" "),_n=lR.apply(this,[" ",nn])[0];if(dn=-1===nn.lineIndent?yn[0].length+2:nn.lineIndent||0){var wn=Array(dn).join(" "),xn=[];yn.map((function(en){(en=en.split(/\s*\n/)).length>1?xn=xn.concat(en.map((function(en,tn){return(tn&&en.length?"\n":"")+en}))):xn.push(en[0])})),yn=xn,dn=cR.apply(this,[wn,nn])}for(sn=0,cn=yn.length;sn<cn;sn++){var Sn=0;if(rn=yn[sn],dn&&"\n"==rn[0]&&(rn=rn.substr(1),Sn=1),An+mn+(vn=(an=lR.apply(this,[rn,nn])).reduce((function(en,tn){return en+tn}),0))>tn||Sn){if(vn>tn){for(un=uR.apply(this,[rn,an,tn-(An+mn),tn]),hn.push(un.shift()),hn=[un.pop()];un.length;)gn.push([un.shift()]);vn=an.slice(rn.length-(hn[0]?hn[0].length:0)).reduce((function(en,tn){return en+tn}),0)}else hn=[rn];gn.push(hn),An=vn+dn,mn=_n}else hn.push(rn),An+=mn+vn,mn=_n}return pn=dn?function(en,tn){return(tn?wn:"")+en.join(" ")}:function(en){return en.join(" ")},gn.map(pn)},sR.splitTextToSize=function(en,tn,nn){var rn,an=(nn=nn||{}).fontSize||this.internal.getFontSize(),sn=function(en){if(en.widths&&en.kerning)return{widths:en.widths,kerning:en.kerning};var tn=this.internal.getFont(en.fontName,en.fontStyle);return tn.metadata.Unicode?{widths:tn.metadata.Unicode.widths||{0:1},kerning:tn.metadata.Unicode.kerning||{}}:{font:tn.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,nn);rn=Array.isArray(en)?en:String(en).split(/\r?\n/);var cn=1*this.internal.scaleFactor*tn/an;sn.textIndent=nn.textIndent?1*nn.textIndent*this.internal.scaleFactor/an:0,sn.lineIndent=nn.lineIndent;var un,dn,pn=[];for(un=0,dn=rn.length;un<dn;un++)pn=pn.concat(dR.apply(this,[rn[un],cn,sn]));return pn},
|
||
/** @license
|
||
jsPDF standard_fonts_metrics plugin
|
||
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
|
||
* MIT license.
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
function(en){en.__fontmetrics__=en.__fontmetrics__||{};for(var tn="klmnopqrstuvwxyz",nn={},rn={},an=0;an<tn.length;an++)nn[tn[an]]="0123456789abcdef"[an],rn["0123456789abcdef"[an]]=tn[an];var sn=function a(en){return"0x"+parseInt(en,10).toString(16)},cn=en.__fontmetrics__.compress=function(en){var tn,nn,an,un,dn=["{"];for(var pn in en){if(tn=en[pn],isNaN(parseInt(pn,10))?nn="'"+pn+"'":(pn=parseInt(pn,10),nn=(nn=sn(pn).slice(2)).slice(0,-1)+rn[nn.slice(-1)]),"number"==typeof tn)tn<0?(an=sn(tn).slice(3),un="-"):(an=sn(tn).slice(2),un=""),an=un+an.slice(0,-1)+rn[an.slice(-1)];else{if("object"!=_typeof(tn))throw new Error("Don't know what to do with value type "+_typeof(tn)+".");an=cn(tn)}dn.push(nn+an)}return dn.push("}"),dn.join("")},un=en.__fontmetrics__.uncompress=function(en){if("string"!=typeof en)throw new Error("Invalid argument passed to uncompress.");for(var tn,rn,an,sn,cn={},un=1,dn=cn,pn=[],hn="",gn="",An=en.length-1,mn=1;mn<An;mn+=1)"'"==(sn=en[mn])?tn?(an=tn.join(""),tn=void 0):tn=[]:tn?tn.push(sn):"{"==sn?(pn.push([dn,an]),dn={},an=void 0):"}"==sn?((rn=pn.pop())[0][rn[1]]=dn,an=void 0,dn=rn[0]):"-"==sn?un=-1:void 0===an?nn.hasOwnProperty(sn)?(hn+=nn[sn],an=parseInt(hn,16)*un,un=1,hn=""):hn+=sn:nn.hasOwnProperty(sn)?(gn+=nn[sn],dn[an]=parseInt(gn,16)*un,un=1,an=void 0,gn=""):gn+=sn;return cn},dn={codePages:["WinAnsiEncoding"],WinAnsiEncoding:un("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},pn={Unicode:{Courier:dn,"Courier-Bold":dn,"Courier-BoldOblique":dn,"Courier-Oblique":dn,Helvetica:dn,"Helvetica-Bold":dn,"Helvetica-BoldOblique":dn,"Helvetica-Oblique":dn,"Times-Roman":dn,"Times-Bold":dn,"Times-BoldItalic":dn,"Times-Italic":dn}},hn={Unicode:{"Courier-Oblique":un("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":un("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":un("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:un("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":un("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":un("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:un("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:un("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":un("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:un("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":un("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":un("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":un("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":un("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};en.events.push(["addFont",function(en){var tn=en.font,nn=hn.Unicode[tn.postScriptName];nn&&(tn.metadata.Unicode={},tn.metadata.Unicode.widths=nn.widths,tn.metadata.Unicode.kerning=nn.kerning);var rn=pn.Unicode[tn.postScriptName];rn&&(tn.metadata.Unicode.encoding=rn,tn.encoding=rn.codePages[0])}])}(O$1.API),
|
||
/**
|
||
* @license
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(en){var tn=function e(en){for(var e=en.length,tn=new Uint8Array(e),nn=0;nn<e;nn++)tn[nn]=en.charCodeAt(nn);return tn};en.API.events.push(["addFont",function(nn){var rn=void 0,an=nn.font,sn=nn.instance;if(!an.isStandardFont){if(void 0===sn)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+an.postScriptName+"').");if("string"!=typeof(rn=!1===sn.existsFileInVFS(an.postScriptName)?sn.loadFile(an.postScriptName):sn.getFileFromVFS(an.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+an.postScriptName+"').");!function(nn,rn){rn=/^\x00\x01\x00\x00/.test(rn)?tn(rn):tn(rM(rn)),nn.metadata=en.API.TTFFont.open(rn),nn.metadata.Unicode=nn.metadata.Unicode||{encoding:{},kerning:{},widths:[]},nn.metadata.glyIdsUsed=[0]}(an,rn)}}])}(O$1),
|
||
/** @license
|
||
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
function(en){function e(){return(tM.canvg?Promise.resolve(tM.canvg):Promise.resolve().then((function(){return ZE}))).catch((function(en){return Promise.reject(new Error("Could not load canvg: "+en))})).then((function(en){return en.default?en.default:en}))}O$1.API.addSvgAsImage=function(en,tn,nn,rn,an,sn,cn,un){if(isNaN(tn)||isNaN(nn))throw nM.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(rn)||isNaN(an))throw nM.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var dn=document.createElement("canvas");dn.width=rn,dn.height=an;var pn=dn.getContext("2d");pn.fillStyle="#fff",pn.fillRect(0,0,dn.width,dn.height);var hn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},gn=this;return e().then((function(tn){return tn.fromString(pn,en,hn)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(en){return en.render(hn)})).then((function(){gn.addImage(dn.toDataURL("image/jpeg",1),tn,nn,rn,an,cn,un)}))}}(),O$1.API.putTotalPages=function(en){var tn,nn=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(tn=new RegExp(en,"g"),nn=this.internal.getNumberOfPages()):(tn=new RegExp(this.pdfEscape16(en,this.internal.getFont()),"g"),nn=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var rn=1;rn<=this.internal.getNumberOfPages();rn++)for(var an=0;an<this.internal.pages[rn].length;an++)this.internal.pages[rn][an]=this.internal.pages[rn][an].replace(tn,nn);return this},O$1.API.viewerPreferences=function(en,tn){var nn;en=en||{},tn=tn||!1;var rn,an,sn,cn={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},un=Object.keys(cn),dn=[],pn=0,hn=0,gn=0;function f(en,tn){var nn,rn=!1;for(nn=0;nn<en.length;nn+=1)en[nn]===tn&&(rn=!0);return rn}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(cn)),this.internal.viewerpreferences.isSubscribed=!1),nn=this.internal.viewerpreferences.configuration,"reset"===en||!0===tn){var An=un.length;for(gn=0;gn<An;gn+=1)nn[un[gn]].value=nn[un[gn]].defaultValue,nn[un[gn]].explicitSet=!1}if("object"==_typeof(en))for(an in en)if(sn=en[an],f(un,an)&&void 0!==sn){if("boolean"===nn[an].type&&"boolean"==typeof sn)nn[an].value=sn;else if("name"===nn[an].type&&f(nn[an].valueSet,sn))nn[an].value=sn;else if("integer"===nn[an].type&&Number.isInteger(sn))nn[an].value=sn;else if("array"===nn[an].type){for(pn=0;pn<sn.length;pn+=1)if(rn=!0,1===sn[pn].length&&"number"==typeof sn[pn][0])dn.push(String(sn[pn]-1));else if(sn[pn].length>1){for(hn=0;hn<sn[pn].length;hn+=1)"number"!=typeof sn[pn][hn]&&(rn=!1);!0===rn&&dn.push([sn[pn][0]-1,sn[pn][1]-1].join(" "))}nn[an].value="["+dn.join(" ")+"]"}else nn[an].value=nn[an].defaultValue;nn[an].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var en,tn=[];for(en in nn)!0===nn[en].explicitSet&&("name"===nn[en].type?tn.push("/"+en+" /"+nn[en].value):tn.push("/"+en+" "+nn[en].value));0!==tn.length&&this.internal.write("/ViewerPreferences\n<<\n"+tn.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=nn,this},
|
||
/** ====================================================================
|
||
* @license
|
||
* jsPDF XMP metadata plugin
|
||
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
function(en){var tn=function e(){var en='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),tn=unescape(encodeURIComponent(en)),nn=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),rn=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),an=unescape(encodeURIComponent("</x:xmpmeta>")),sn=tn.length+nn.length+rn.length+e.length+an.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+sn+" >>"),this.internal.write("stream"),this.internal.write(e+tn+nn+rn+an),this.internal.write("endstream"),this.internal.write("endobj")},nn=function r(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};en.addMetadata=function(en,rn){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:en,namespaceuri:rn||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",nn),this.internal.events.subscribe("postPutResources",tn)),this}}(O$1.API),function(en){var tn=en.API,nn=tn.pdfEscape16=function(en,tn){for(var nn,rn=tn.metadata.Unicode.widths,an=["","0","00","000","0000"],sn=[""],cn=0,un=en.length;cn<un;++cn){if(nn=tn.metadata.characterToGlyph(en.charCodeAt(cn)),tn.metadata.glyIdsUsed.push(nn),tn.metadata.toUnicode[nn]=en.charCodeAt(cn),-1==rn.indexOf(nn)&&(rn.push(nn),rn.push([parseInt(tn.metadata.widthOfGlyph(nn),10)])),"0"==nn)return sn.join("");nn=nn.toString(16),sn.push(an[4-nn.length],nn)}return sn.join("")},rn=function n(en){var tn,nn,n,rn,an,sn,cn;for(an="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",n=[],sn=0,cn=(nn=Object.keys(en).sort((function(en,tn){return en-tn}))).length;sn<cn;sn++)tn=nn[sn],n.length>=100&&(an+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==en[tn]&&null!==en[tn]&&"function"==typeof en[tn].toString&&(rn=("0000"+en[tn].toString(16)).slice(-4),tn=("0000"+(+tn).toString(16)).slice(-4),n.push("<"+tn+"><"+rn+">"));return n.length&&(an+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),an+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};tn.events.push(["putFont",function(tn){!function(tn){var nn=tn.font,an=tn.out,sn=tn.newObject,cn=tn.putStream,un=tn.pdfEscapeWithNeededParanthesis;if(nn.metadata instanceof en.API.TTFFont&&"Identity-H"===nn.encoding){for(var dn=nn.metadata.Unicode.widths,pn=nn.metadata.subset.encode(nn.metadata.glyIdsUsed,1),hn="",gn=0;gn<pn.length;gn++)hn+=String.fromCharCode(pn[gn]);var An=sn();cn({data:hn,addLength1:!0,objectId:An}),an("endobj");var mn=sn();cn({data:rn(nn.metadata.toUnicode),addLength1:!0,objectId:mn}),an("endobj");var vn=sn();an("<<"),an("/Type /FontDescriptor"),an("/FontName /"+un(nn.fontName)),an("/FontFile2 "+An+" 0 R"),an("/FontBBox "+en.API.PDFObject.convert(nn.metadata.bbox)),an("/Flags "+nn.metadata.flags),an("/StemV "+nn.metadata.stemV),an("/ItalicAngle "+nn.metadata.italicAngle),an("/Ascent "+nn.metadata.ascender),an("/Descent "+nn.metadata.decender),an("/CapHeight "+nn.metadata.capHeight),an(">>"),an("endobj");var yn=sn();an("<<"),an("/Type /Font"),an("/BaseFont /"+un(nn.fontName)),an("/FontDescriptor "+vn+" 0 R"),an("/W "+en.API.PDFObject.convert(dn)),an("/CIDToGIDMap /Identity"),an("/DW 1000"),an("/Subtype /CIDFontType2"),an("/CIDSystemInfo"),an("<<"),an("/Supplement 0"),an("/Registry (Adobe)"),an("/Ordering ("+nn.encoding+")"),an(">>"),an(">>"),an("endobj"),nn.objectNumber=sn(),an("<<"),an("/Type /Font"),an("/Subtype /Type0"),an("/ToUnicode "+mn+" 0 R"),an("/BaseFont /"+un(nn.fontName)),an("/Encoding /"+nn.encoding),an("/DescendantFonts ["+yn+" 0 R]"),an(">>"),an("endobj"),nn.isAlreadyPutted=!0}}(tn)}]),tn.events.push(["putFont",function(tn){!function(tn){var nn=tn.font,an=tn.out,sn=tn.newObject,cn=tn.putStream,un=tn.pdfEscapeWithNeededParanthesis;if(nn.metadata instanceof en.API.TTFFont&&"WinAnsiEncoding"===nn.encoding){for(var dn=nn.metadata.rawData,pn="",hn=0;hn<dn.length;hn++)pn+=String.fromCharCode(dn[hn]);var gn=sn();cn({data:pn,addLength1:!0,objectId:gn}),an("endobj");var An=sn();cn({data:rn(nn.metadata.toUnicode),addLength1:!0,objectId:An}),an("endobj");var mn=sn();an("<<"),an("/Descent "+nn.metadata.decender),an("/CapHeight "+nn.metadata.capHeight),an("/StemV "+nn.metadata.stemV),an("/Type /FontDescriptor"),an("/FontFile2 "+gn+" 0 R"),an("/Flags 96"),an("/FontBBox "+en.API.PDFObject.convert(nn.metadata.bbox)),an("/FontName /"+un(nn.fontName)),an("/ItalicAngle "+nn.metadata.italicAngle),an("/Ascent "+nn.metadata.ascender),an(">>"),an("endobj"),nn.objectNumber=sn();for(var vn=0;vn<nn.metadata.hmtx.widths.length;vn++)nn.metadata.hmtx.widths[vn]=parseInt(nn.metadata.hmtx.widths[vn]*(1e3/nn.metadata.head.unitsPerEm));an("<</Subtype/TrueType/Type/Font/ToUnicode "+An+" 0 R/BaseFont/"+un(nn.fontName)+"/FontDescriptor "+mn+" 0 R/Encoding/"+nn.encoding+" /FirstChar 29 /LastChar 255 /Widths "+en.API.PDFObject.convert(nn.metadata.hmtx.widths)+">>"),an("endobj"),nn.isAlreadyPutted=!0}}(tn)}]);var an=function i(en){var tn,rn=en.text||"",i=en.x,an=en.y,sn=en.options||{},cn=en.mutex||{},un=cn.pdfEscape,dn=cn.activeFontKey,pn=cn.fonts,hn=dn,gn="",An=0,mn="",vn=pn[hn].encoding;if("Identity-H"!==pn[hn].encoding)return{text:rn,x:i,y:an,options:sn,mutex:cn};for(mn=rn,hn=dn,Array.isArray(rn)&&(mn=rn[0]),An=0;An<mn.length;An+=1)pn[hn].metadata.hasOwnProperty("cmap")&&(tn=pn[hn].metadata.cmap.unicode.codeMap[mn[An].charCodeAt(0)]),tn||mn[An].charCodeAt(0)<256&&pn[hn].metadata.hasOwnProperty("Unicode")?gn+=mn[An]:gn+="";var yn="";return parseInt(hn.slice(1))<14||"WinAnsiEncoding"===vn?yn=un(gn,hn).split("").map((function(en){return en.charCodeAt(0).toString(16)})).join(""):"Identity-H"===vn&&(yn=nn(gn,pn[hn])),cn.isHex=!0,{text:yn,x:i,y:an,options:sn,mutex:cn}};tn.events.push(["postProcessText",function(en){var tn=en.text||"",nn=[],rn={text:tn,x:en.x,y:en.y,options:en.options,mutex:en.mutex};if(Array.isArray(tn)){var sn=0;for(sn=0;sn<tn.length;sn+=1)Array.isArray(tn[sn])&&3===tn[sn].length?nn.push([an(Object.assign({},rn,{text:tn[sn][0]})).text,tn[sn][1],tn[sn][2]]):nn.push(an(Object.assign({},rn,{text:tn[sn]})).text);en.text=nn}else en.text=an(Object.assign({},rn,{text:tn})).text}])}(O$1),
|
||
/**
|
||
* @license
|
||
* jsPDF virtual FileSystem functionality
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(en){var tn=function e(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};en.existsFileInVFS=function(en){return tn.call(this),void 0!==this.internal.vFS[en]},en.addFileToVFS=function(en,nn){return tn.call(this),this.internal.vFS[en]=nn,this},en.getFileFromVFS=function(en){return tn.call(this),void 0!==this.internal.vFS[en]?this.internal.vFS[en]:null}}(O$1.API),
|
||
/**
|
||
* @license
|
||
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
||
* MIT License
|
||
*/
|
||
function(en){en.__bidiEngine__=en.prototype.__bidiEngine__=function(en){var nn,rn,an,sn,cn,un,dn,pn=tn,hn=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],gn=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],An={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},mn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},vn=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],yn=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),_n=!1,wn=0;this.__bidiEngine__={};var xn=function b(en){var tn=en.charCodeAt(),nn=tn>>8,rn=mn[nn];return void 0!==rn?pn[256*rn+(255&tn)]:252===nn||253===nn?"AL":yn.test(nn)?"L":8===nn?"R":"N"},Sn=function y(en){for(var tn,nn=0;nn<en.length;nn++){if("L"===(tn=xn(en.charAt(nn))))return!1;if("R"===tn)return!0}return!1},Cn=function w(en,tn,cn,un){var dn,pn,hn,gn,An=tn[un];switch(An){case"L":case"R":_n=!1;break;case"N":case"AN":break;case"EN":_n&&(An="AN");break;case"AL":_n=!0,An="R";break;case"WS":An="N";break;case"CS":un<1||un+1>=tn.length||"EN"!==(dn=cn[un-1])&&"AN"!==dn||"EN"!==(pn=tn[un+1])&&"AN"!==pn?An="N":_n&&(pn="AN"),An=pn===dn?pn:"N";break;case"ES":An="EN"===(dn=un>0?cn[un-1]:"B")&&un+1<tn.length&&"EN"===tn[un+1]?"EN":"N";break;case"ET":if(un>0&&"EN"===cn[un-1]){An="EN";break}if(_n){An="N";break}for(hn=un+1,gn=tn.length;hn<gn&&"ET"===tn[hn];)hn++;An=hn<gn&&"EN"===tn[hn]?"EN":"N";break;case"NSM":if(an&&!sn){for(gn=tn.length,hn=un+1;hn<gn&&"NSM"===tn[hn];)hn++;if(hn<gn){var mn=en[un],vn=mn>=1425&&mn<=2303||64286===mn;if(dn=tn[hn],vn&&("R"===dn||"AL"===dn)){An="R";break}}}An=un<1||"B"===(dn=tn[un-1])?"N":cn[un-1];break;case"B":_n=!1,nn=!0,An=wn;break;case"S":rn=!0,An="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":_n=!1;break;case"BN":An="N"}return An},kn=function N(en,tn,nn){var rn=en.split("");return nn&&Bn(rn,nn,{hiLevel:wn}),rn.reverse(),tn&&tn.reverse(),rn.join("")},Bn=function L(en,tn,an){var sn,cn,un,dn,pn,mn=-1,vn=en.length,yn=0,Sn=[],kn=wn?gn:hn,L=[];for(_n=!1,nn=!1,rn=!1,cn=0;cn<vn;cn++)L[cn]=xn(en[cn]);for(un=0;un<vn;un++){if(pn=yn,Sn[un]=Cn(en,L,Sn,un),sn=240&(yn=kn[pn][An[Sn[un]]]),yn&=15,tn[un]=dn=kn[yn][5],sn>0)if(16===sn){for(cn=mn;cn<un;cn++)tn[cn]=1;mn=-1}else mn=-1;if(kn[yn][6])-1===mn&&(mn=un);else if(mn>-1){for(cn=mn;cn<un;cn++)tn[cn]=dn;mn=-1}"B"===L[un]&&(tn[un]=0),an.hiLevel|=dn}rn&&function(en,tn,nn){for(var rn=0;rn<nn;rn++)if("S"===en[rn]){tn[rn]=wn;for(var an=rn-1;an>=0&&"WS"===en[an];an--)tn[an]=wn}}(L,tn,vn)},En=function A(en,tn,rn,an,sn){if(!(sn.hiLevel<en)){if(1===en&&1===wn&&!nn)return tn.reverse(),void(rn&&rn.reverse());for(var cn,un,dn,pn,hn=tn.length,gn=0;gn<hn;){if(an[gn]>=en){for(dn=gn+1;dn<hn&&an[dn]>=en;)dn++;for(pn=gn,un=dn-1;pn<un;pn++,un--)cn=tn[pn],tn[pn]=tn[un],tn[un]=cn,rn&&(cn=rn[pn],rn[pn]=rn[un],rn[un]=cn);gn=dn}gn++}}},Pn=function x(en,tn,nn){var rn=en.split(""),an={hiLevel:wn};return nn||(nn=[]),Bn(rn,nn,an),function(en,tn,nn){if(0!==nn.hiLevel&&dn)for(var rn,an=0;an<en.length;an++)1===tn[an]&&(rn=vn.indexOf(en[an]))>=0&&(en[an]=vn[rn+1])}(rn,nn,an),En(2,rn,tn,nn,an),En(1,rn,tn,nn,an),rn.join("")};return this.__bidiEngine__.doBidiReorder=function(en,tn,nn){if(function(en,tn){if(tn)for(var nn=0;nn<en.length;nn++)tn[nn]=nn;void 0===sn&&(sn=Sn(en)),void 0===un&&(un=Sn(en))}(en,tn),an||!cn||un)if(an&&cn&&sn^un)wn=sn?1:0,en=kn(en,tn,nn);else if(!an&&cn&&un)wn=sn?1:0,en=Pn(en,tn,nn),en=kn(en,tn);else if(!an||sn||cn||un){if(an&&!cn&&sn^un)en=kn(en,tn),sn?(wn=0,en=Pn(en,tn,nn)):(wn=1,en=Pn(en,tn,nn),en=kn(en,tn));else if(an&&sn&&!cn&&un)wn=1,en=Pn(en,tn,nn),en=kn(en,tn);else if(!an&&!cn&&sn^un){var rn=dn;sn?(wn=1,en=Pn(en,tn,nn),wn=0,dn=!1,en=Pn(en,tn,nn),dn=rn):(wn=0,en=Pn(en,tn,nn),en=kn(en,tn),wn=1,dn=!1,en=Pn(en,tn,nn),dn=rn,en=kn(en,tn))}}else wn=0,en=Pn(en,tn,nn);else wn=sn?1:0,en=Pn(en,tn,nn);return en},this.__bidiEngine__.setOptions=function(en){en&&(an=en.isInputVisual,cn=en.isOutputVisual,sn=en.isInputRtl,un=en.isOutputRtl,dn=en.isSymmetricSwapping)},this.__bidiEngine__.setOptions(en),this.__bidiEngine__};var tn=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],nn=new en.__bidiEngine__({isInputVisual:!0});en.API.events.push(["postProcessText",function(en){var tn=en.text,rn=(en.x,en.y,en.options||{}),an=(en.mutex,rn.lang,[]);if(rn.isInputVisual="boolean"!=typeof rn.isInputVisual||rn.isInputVisual,nn.setOptions(rn),"[object Array]"===Object.prototype.toString.call(tn)){var sn=0;for(an=[],sn=0;sn<tn.length;sn+=1)"[object Array]"===Object.prototype.toString.call(tn[sn])?an.push([nn.doBidiReorder(tn[sn][0]),tn[sn][1],tn[sn][2]]):an.push([nn.doBidiReorder(tn[sn])]);en.text=an}else en.text=nn.doBidiReorder(tn);nn.setOptions({isInputVisual:!0})}])}(O$1),O$1.API.TTFFont=function(){function t(en){var tn;if(this.rawData=en,tn=this.contents=new gR(en),this.contents.pos=4,"ttcf"===tn.readString(4))throw new Error("TTCF not supported.");tn.pos=0,this.parse(),this.subset=new IR(this),this.registerTTF()}return t.open=function(en){return new t(en)},t.prototype.parse=function(){return this.directory=new fR(this.contents),this.head=new vR(this),this.name=new CR(this),this.cmap=new _R(this),this.toUnicode={},this.hhea=new bR(this),this.maxp=new kR(this),this.hmtx=new BR(this),this.post=new xR(this),this.os2=new wR(this),this.loca=new NR(this),this.glyf=new PR(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var en,tn,nn,rn,an;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var tn,nn,rn,an;for(an=[],tn=0,nn=(rn=this.bbox).length;tn<nn;tn++)en=rn[tn],an.push(Math.round(en*this.scaleFactor));return an}.call(this),this.stemV=0,this.post.exists?(nn=255&(rn=this.post.italic_angle),0!=(32768&(tn=rn>>16))&&(tn=-(1+(65535^tn))),this.italicAngle=+(tn+"."+nn)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(an=this.familyClass)||2===an||3===an||4===an||5===an||7===an,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(en){var tn;return(null!=(tn=this.cmap.unicode)?tn.codeMap[en]:void 0)||0},t.prototype.widthOfGlyph=function(en){var tn;return tn=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(en).advance*tn},t.prototype.widthOfString=function(en,tn,nn){var rn,an,sn,cn;for(sn=0,an=0,cn=(en=""+en).length;0<=cn?an<cn:an>cn;an=0<=cn?++an:--an)rn=en.charCodeAt(an),sn+=this.widthOfGlyph(this.characterToGlyph(rn))+nn*(1e3/tn)||0;return sn*(tn/1e3)},t.prototype.lineHeight=function(en,tn){var nn;return null==tn&&(tn=!1),nn=tn?this.lineGap:0,(this.ascender+nn-this.decender)/1e3*en},t}();var hR,gR=function(){function t(en){this.data=null!=en?en:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(en){return this.data[this.pos++]=en},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(en){return this.writeByte(en>>>24&255),this.writeByte(en>>16&255),this.writeByte(en>>8&255),this.writeByte(255&en)},t.prototype.readInt32=function(){var en;return(en=this.readUInt32())>=2147483648?en-4294967296:en},t.prototype.writeInt32=function(en){return en<0&&(en+=4294967296),this.writeUInt32(en)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(en){return this.writeByte(en>>8&255),this.writeByte(255&en)},t.prototype.readInt16=function(){var en;return(en=this.readUInt16())>=32768?en-65536:en},t.prototype.writeInt16=function(en){return en<0&&(en+=65536),this.writeUInt16(en)},t.prototype.readString=function(en){var tn,nn;for(nn=[],tn=0;0<=en?tn<en:tn>en;tn=0<=en?++tn:--tn)nn[tn]=String.fromCharCode(this.readByte());return nn.join("")},t.prototype.writeString=function(en){var tn,nn,rn;for(rn=[],tn=0,nn=en.length;0<=nn?tn<nn:tn>nn;tn=0<=nn?++tn:--tn)rn.push(this.writeByte(en.charCodeAt(tn)));return rn},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(en){return this.writeInt16(en)},t.prototype.readLongLong=function(){var en,tn,nn,rn,an,sn,cn,un;return en=this.readByte(),tn=this.readByte(),nn=this.readByte(),rn=this.readByte(),an=this.readByte(),sn=this.readByte(),cn=this.readByte(),un=this.readByte(),128&en?-1*(72057594037927940*(255^en)+281474976710656*(255^tn)+1099511627776*(255^nn)+4294967296*(255^rn)+16777216*(255^an)+65536*(255^sn)+256*(255^cn)+(255^un)+1):72057594037927940*en+281474976710656*tn+1099511627776*nn+4294967296*rn+16777216*an+65536*sn+256*cn+un},t.prototype.writeLongLong=function(en){var tn,nn;return tn=Math.floor(en/4294967296),nn=4294967295&en,this.writeByte(tn>>24&255),this.writeByte(tn>>16&255),this.writeByte(tn>>8&255),this.writeByte(255&tn),this.writeByte(nn>>24&255),this.writeByte(nn>>16&255),this.writeByte(nn>>8&255),this.writeByte(255&nn)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(en){return this.writeInt32(en)},t.prototype.read=function(en){var tn,nn;for(tn=[],nn=0;0<=en?nn<en:nn>en;nn=0<=en?++nn:--nn)tn.push(this.readByte());return tn},t.prototype.write=function(en){var tn,nn,rn,an;for(an=[],nn=0,rn=en.length;nn<rn;nn++)tn=en[nn],an.push(this.writeByte(tn));return an},t}(),fR=function(){var en;function e(en){var tn,nn,rn;for(this.scalarType=en.readInt(),this.tableCount=en.readShort(),this.searchRange=en.readShort(),this.entrySelector=en.readShort(),this.rangeShift=en.readShort(),this.tables={},nn=0,rn=this.tableCount;0<=rn?nn<rn:nn>rn;nn=0<=rn?++nn:--nn)tn={tag:en.readString(4),checksum:en.readInt(),offset:en.readInt(),length:en.readInt()},this.tables[tn.tag]=tn}return e.prototype.encode=function(tn){var nn,rn,an,sn,cn,un,dn,pn,hn,gn,An,mn,vn;for(vn in An=Object.keys(tn).length,un=Math.log(2),hn=16*Math.floor(Math.log(An)/un),sn=Math.floor(hn/un),pn=16*An-hn,(rn=new gR).writeInt(this.scalarType),rn.writeShort(An),rn.writeShort(hn),rn.writeShort(sn),rn.writeShort(pn),an=16*An,dn=rn.pos+an,cn=null,mn=[],tn)for(gn=tn[vn],rn.writeString(vn),rn.writeInt(en(gn)),rn.writeInt(dn),rn.writeInt(gn.length),mn=mn.concat(gn),"head"===vn&&(cn=dn),dn+=gn.length;dn%4;)mn.push(0),dn++;return rn.write(mn),nn=2981146554-en(rn.data),rn.pos=cn+8,rn.writeUInt32(nn),rn.data},en=function t(en){var tn,nn,rn,an;for(en=ER.call(en);en.length%4;)en.push(0);for(rn=new gR(en),nn=0,tn=0,an=en.length;tn<an;tn=tn+=4)nn+=rn.readUInt32();return 4294967295&nn},e}(),AR={}.hasOwnProperty,mR=function ne(en,tn){for(var nn in tn)AR.call(tn,nn)&&(en[nn]=tn[nn]);function n(){this.constructor=en}return n.prototype=tn.prototype,en.prototype=new n,en.__super__=tn.prototype,en};hR=function(){function t(en){var tn;this.file=en,tn=this.file.directory.tables[this.tag],this.exists=!!tn,tn&&(this.offset=tn.offset,this.length=tn.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var vR=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return mR(e,hR),e.prototype.tag="head",e.prototype.parse=function(en){return en.pos=this.offset,this.version=en.readInt(),this.revision=en.readInt(),this.checkSumAdjustment=en.readInt(),this.magicNumber=en.readInt(),this.flags=en.readShort(),this.unitsPerEm=en.readShort(),this.created=en.readLongLong(),this.modified=en.readLongLong(),this.xMin=en.readShort(),this.yMin=en.readShort(),this.xMax=en.readShort(),this.yMax=en.readShort(),this.macStyle=en.readShort(),this.lowestRecPPEM=en.readShort(),this.fontDirectionHint=en.readShort(),this.indexToLocFormat=en.readShort(),this.glyphDataFormat=en.readShort()},e.prototype.encode=function(en){var tn;return(tn=new gR).writeInt(this.version),tn.writeInt(this.revision),tn.writeInt(this.checkSumAdjustment),tn.writeInt(this.magicNumber),tn.writeShort(this.flags),tn.writeShort(this.unitsPerEm),tn.writeLongLong(this.created),tn.writeLongLong(this.modified),tn.writeShort(this.xMin),tn.writeShort(this.yMin),tn.writeShort(this.xMax),tn.writeShort(this.yMax),tn.writeShort(this.macStyle),tn.writeShort(this.lowestRecPPEM),tn.writeShort(this.fontDirectionHint),tn.writeShort(en),tn.writeShort(this.glyphDataFormat),tn.data},e}(),yR=function(){function t(en,tn){var nn,rn,an,sn,cn,un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn,xn;switch(this.platformID=en.readUInt16(),this.encodingID=en.readShort(),this.offset=tn+en.readInt(),hn=en.pos,en.pos=this.offset,this.format=en.readUInt16(),this.length=en.readUInt16(),this.language=en.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(un=0;un<256;++un)this.codeMap[un]=en.readByte();break;case 4:for(An=en.readUInt16(),gn=An/2,en.pos+=6,an=function(){var tn,nn;for(nn=[],un=tn=0;0<=gn?tn<gn:tn>gn;un=0<=gn?++tn:--tn)nn.push(en.readUInt16());return nn}(),en.pos+=2,vn=function(){var tn,nn;for(nn=[],un=tn=0;0<=gn?tn<gn:tn>gn;un=0<=gn?++tn:--tn)nn.push(en.readUInt16());return nn}(),dn=function(){var tn,nn;for(nn=[],un=tn=0;0<=gn?tn<gn:tn>gn;un=0<=gn?++tn:--tn)nn.push(en.readUInt16());return nn}(),pn=function(){var tn,nn;for(nn=[],un=tn=0;0<=gn?tn<gn:tn>gn;un=0<=gn?++tn:--tn)nn.push(en.readUInt16());return nn}(),rn=(this.length-en.pos+this.offset)/2,cn=function(){var tn,nn;for(nn=[],un=tn=0;0<=rn?tn<rn:tn>rn;un=0<=rn?++tn:--tn)nn.push(en.readUInt16());return nn}(),un=_n=0,xn=an.length;_n<xn;un=++_n)for(yn=an[un],nn=wn=mn=vn[un];mn<=yn?wn<=yn:wn>=yn;nn=mn<=yn?++wn:--wn)0===pn[un]?sn=nn+dn[un]:0!==(sn=cn[pn[un]/2+(nn-mn)-(gn-un)]||0)&&(sn+=dn[un]),this.codeMap[nn]=65535&sn}en.pos=hn}return t.encode=function(en,tn){var nn,rn,an,sn,cn,un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn,xn,Sn,Cn,kn,Bn,En,Pn,Ln,Tn,Nn,In,On,Fn,Un,Mn,Rn,Dn,jn,Qn,Hn,Gn,Vn,zn,Kn,qn,$n,Wn,Xn,Yn,Jn;switch(On=new gR,sn=Object.keys(en).sort((function(en,tn){return en-tn})),tn){case"macroman":for(vn=0,yn=function(){var en=[];for(mn=0;mn<256;++mn)en.push(0);return en}(),wn={0:0},an={},Fn=0,Dn=sn.length;Fn<Dn;Fn++)null==wn[Wn=en[rn=sn[Fn]]]&&(wn[Wn]=++vn),an[rn]={old:en[rn],new:wn[en[rn]]},yn[rn]=wn[en[rn]];return On.writeUInt16(1),On.writeUInt16(0),On.writeUInt32(12),On.writeUInt16(0),On.writeUInt16(262),On.writeUInt16(0),On.write(yn),{charMap:an,subtable:On.data,maxGlyphID:vn+1};case"unicode":for(Nn=[],hn=[],xn=0,wn={},nn={},_n=dn=null,Un=0,jn=sn.length;Un<jn;Un++)null==wn[Cn=en[rn=sn[Un]]]&&(wn[Cn]=++xn),nn[rn]={old:Cn,new:wn[Cn]},cn=wn[Cn]-rn,null!=_n&&cn===dn||(_n&&hn.push(_n),Nn.push(rn),dn=cn),_n=rn;for(_n&&hn.push(_n),hn.push(65535),Nn.push(65535),Ln=2*(Pn=Nn.length),En=2*Math.pow(Math.log(Pn)/Math.LN2,2),gn=Math.log(En/2)/Math.LN2,Bn=2*Pn-En,un=[],kn=[],An=[],mn=Mn=0,Qn=Nn.length;Mn<Qn;mn=++Mn){if(Tn=Nn[mn],pn=hn[mn],65535===Tn){un.push(0),kn.push(0);break}if(Tn-(In=nn[Tn].new)>=32768)for(un.push(0),kn.push(2*(An.length+Pn-mn)),rn=Rn=Tn;Tn<=pn?Rn<=pn:Rn>=pn;rn=Tn<=pn?++Rn:--Rn)An.push(nn[rn].new);else un.push(In-Tn),kn.push(0)}for(On.writeUInt16(3),On.writeUInt16(1),On.writeUInt32(12),On.writeUInt16(4),On.writeUInt16(16+8*Pn+2*An.length),On.writeUInt16(0),On.writeUInt16(Ln),On.writeUInt16(En),On.writeUInt16(gn),On.writeUInt16(Bn),qn=0,Hn=hn.length;qn<Hn;qn++)rn=hn[qn],On.writeUInt16(rn);for(On.writeUInt16(0),$n=0,Gn=Nn.length;$n<Gn;$n++)rn=Nn[$n],On.writeUInt16(rn);for(Xn=0,Vn=un.length;Xn<Vn;Xn++)cn=un[Xn],On.writeUInt16(cn);for(Yn=0,zn=kn.length;Yn<zn;Yn++)Sn=kn[Yn],On.writeUInt16(Sn);for(Jn=0,Kn=An.length;Jn<Kn;Jn++)vn=An[Jn],On.writeUInt16(vn);return{charMap:nn,subtable:On.data,maxGlyphID:xn+1}}},t}(),_R=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return mR(e,hR),e.prototype.tag="cmap",e.prototype.parse=function(en){var tn,nn,rn;for(en.pos=this.offset,this.version=en.readUInt16(),rn=en.readUInt16(),this.tables=[],this.unicode=null,nn=0;0<=rn?nn<rn:nn>rn;nn=0<=rn?++nn:--nn)tn=new yR(en,this.offset),this.tables.push(tn),tn.isUnicode&&null==this.unicode&&(this.unicode=tn);return!0},e.encode=function(en,tn){var nn,rn;return null==tn&&(tn="macroman"),nn=yR.encode(en,tn),(rn=new gR).writeUInt16(0),rn.writeUInt16(1),nn.table=rn.data.concat(nn.subtable),nn},e}(),bR=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return mR(e,hR),e.prototype.tag="hhea",e.prototype.parse=function(en){return en.pos=this.offset,this.version=en.readInt(),this.ascender=en.readShort(),this.decender=en.readShort(),this.lineGap=en.readShort(),this.advanceWidthMax=en.readShort(),this.minLeftSideBearing=en.readShort(),this.minRightSideBearing=en.readShort(),this.xMaxExtent=en.readShort(),this.caretSlopeRise=en.readShort(),this.caretSlopeRun=en.readShort(),this.caretOffset=en.readShort(),en.pos+=8,this.metricDataFormat=en.readShort(),this.numberOfMetrics=en.readUInt16()},e}(),wR=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return mR(e,hR),e.prototype.tag="OS/2",e.prototype.parse=function(en){if(en.pos=this.offset,this.version=en.readUInt16(),this.averageCharWidth=en.readShort(),this.weightClass=en.readUInt16(),this.widthClass=en.readUInt16(),this.type=en.readShort(),this.ySubscriptXSize=en.readShort(),this.ySubscriptYSize=en.readShort(),this.ySubscriptXOffset=en.readShort(),this.ySubscriptYOffset=en.readShort(),this.ySuperscriptXSize=en.readShort(),this.ySuperscriptYSize=en.readShort(),this.ySuperscriptXOffset=en.readShort(),this.ySuperscriptYOffset=en.readShort(),this.yStrikeoutSize=en.readShort(),this.yStrikeoutPosition=en.readShort(),this.familyClass=en.readShort(),this.panose=function(){var tn,nn;for(nn=[],tn=0;tn<10;++tn)nn.push(en.readByte());return nn}(),this.charRange=function(){var tn,nn;for(nn=[],tn=0;tn<4;++tn)nn.push(en.readInt());return nn}(),this.vendorID=en.readString(4),this.selection=en.readShort(),this.firstCharIndex=en.readShort(),this.lastCharIndex=en.readShort(),this.version>0&&(this.ascent=en.readShort(),this.descent=en.readShort(),this.lineGap=en.readShort(),this.winAscent=en.readShort(),this.winDescent=en.readShort(),this.codePageRange=function(){var tn,nn;for(nn=[],tn=0;tn<2;tn=++tn)nn.push(en.readInt());return nn}(),this.version>1))return this.xHeight=en.readShort(),this.capHeight=en.readShort(),this.defaultChar=en.readShort(),this.breakChar=en.readShort(),this.maxContext=en.readShort()},e}(),xR=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return mR(e,hR),e.prototype.tag="post",e.prototype.parse=function(en){var tn,nn,rn;switch(en.pos=this.offset,this.format=en.readInt(),this.italicAngle=en.readInt(),this.underlinePosition=en.readShort(),this.underlineThickness=en.readShort(),this.isFixedPitch=en.readInt(),this.minMemType42=en.readInt(),this.maxMemType42=en.readInt(),this.minMemType1=en.readInt(),this.maxMemType1=en.readInt(),this.format){case 65536:break;case 131072:var an;for(nn=en.readUInt16(),this.glyphNameIndex=[],an=0;0<=nn?an<nn:an>nn;an=0<=nn?++an:--an)this.glyphNameIndex.push(en.readUInt16());for(this.names=[],rn=[];en.pos<this.offset+this.length;)tn=en.readByte(),rn.push(this.names.push(en.readString(tn)));return rn;case 151552:return nn=en.readUInt16(),this.offsets=en.read(nn);case 196608:break;case 262144:return this.map=function(){var tn,nn,rn;for(rn=[],an=tn=0,nn=this.file.maxp.numGlyphs;0<=nn?tn<nn:tn>nn;an=0<=nn?++tn:--tn)rn.push(en.readUInt32());return rn}.call(this)}},e}(),SR=function le(en,tn){this.raw=en,this.length=en.length,this.platformID=tn.platformID,this.encodingID=tn.encodingID,this.languageID=tn.languageID},CR=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return mR(e,hR),e.prototype.tag="name",e.prototype.parse=function(en){var tn,nn,rn,an,sn,cn,un,dn,pn,hn,gn;for(en.pos=this.offset,en.readShort(),tn=en.readShort(),cn=en.readShort(),nn=[],an=0;0<=tn?an<tn:an>tn;an=0<=tn?++an:--an)nn.push({platformID:en.readShort(),encodingID:en.readShort(),languageID:en.readShort(),nameID:en.readShort(),length:en.readShort(),offset:this.offset+cn+en.readShort()});for(un={},an=pn=0,hn=nn.length;pn<hn;an=++pn)rn=nn[an],en.pos=rn.offset,dn=en.readString(rn.length),sn=new SR(dn,rn),null==un[gn=rn.nameID]&&(un[gn]=[]),un[rn.nameID].push(sn);this.strings=un,this.copyright=un[0],this.fontFamily=un[1],this.fontSubfamily=un[2],this.uniqueSubfamily=un[3],this.fontName=un[4],this.version=un[5];try{this.postscriptName=un[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(en){this.postscriptName=un[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=un[7],this.manufacturer=un[8],this.designer=un[9],this.description=un[10],this.vendorUrl=un[11],this.designerUrl=un[12],this.license=un[13],this.licenseUrl=un[14],this.preferredFamily=un[15],this.preferredSubfamily=un[17],this.compatibleFull=un[18],this.sampleText=un[19]},e}(),kR=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return mR(e,hR),e.prototype.tag="maxp",e.prototype.parse=function(en){return en.pos=this.offset,this.version=en.readInt(),this.numGlyphs=en.readUInt16(),this.maxPoints=en.readUInt16(),this.maxContours=en.readUInt16(),this.maxCompositePoints=en.readUInt16(),this.maxComponentContours=en.readUInt16(),this.maxZones=en.readUInt16(),this.maxTwilightPoints=en.readUInt16(),this.maxStorage=en.readUInt16(),this.maxFunctionDefs=en.readUInt16(),this.maxInstructionDefs=en.readUInt16(),this.maxStackElements=en.readUInt16(),this.maxSizeOfInstructions=en.readUInt16(),this.maxComponentElements=en.readUInt16(),this.maxComponentDepth=en.readUInt16()},e}(),BR=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return mR(e,hR),e.prototype.tag="hmtx",e.prototype.parse=function(en){var tn,nn,rn,an,sn,cn,un;for(en.pos=this.offset,this.metrics=[],tn=0,cn=this.file.hhea.numberOfMetrics;0<=cn?tn<cn:tn>cn;tn=0<=cn?++tn:--tn)this.metrics.push({advance:en.readUInt16(),lsb:en.readInt16()});for(rn=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var nn,an;for(an=[],tn=nn=0;0<=rn?nn<rn:nn>rn;tn=0<=rn?++nn:--nn)an.push(en.readInt16());return an}(),this.widths=function(){var en,tn,nn,rn;for(rn=[],en=0,tn=(nn=this.metrics).length;en<tn;en++)an=nn[en],rn.push(an.advance);return rn}.call(this),nn=this.widths[this.widths.length-1],un=[],tn=sn=0;0<=rn?sn<rn:sn>rn;tn=0<=rn?++sn:--sn)un.push(this.widths.push(nn));return un},e.prototype.forGlyph=function(en){return en in this.metrics?this.metrics[en]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[en-this.metrics.length]}},e}(),ER=[].slice,PR=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return mR(e,hR),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(en){var tn,nn,rn,an,sn,cn,un,dn,pn,hn;return en in this.cache?this.cache[en]:(an=this.file.loca,tn=this.file.contents,nn=an.indexOf(en),0===(rn=an.lengthOf(en))?this.cache[en]=null:(tn.pos=this.offset+nn,sn=(cn=new gR(tn.read(rn))).readShort(),dn=cn.readShort(),hn=cn.readShort(),un=cn.readShort(),pn=cn.readShort(),this.cache[en]=-1===sn?new TR(cn,dn,hn,un,pn):new LR(cn,sn,dn,hn,un,pn),this.cache[en]))},e.prototype.encode=function(en,tn,nn){var rn,an,sn,cn,un;for(sn=[],an=[],cn=0,un=tn.length;cn<un;cn++)rn=en[tn[cn]],an.push(sn.length),rn&&(sn=sn.concat(rn.encode(nn)));return an.push(sn.length),{table:sn,offsets:an}},e}(),LR=function(){function t(en,tn,nn,rn,an,sn){this.raw=en,this.numberOfContours=tn,this.xMin=nn,this.yMin=rn,this.xMax=an,this.yMax=sn,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),TR=function(){function t(en,tn,nn,rn,an){var sn,cn;for(this.raw=en,this.xMin=tn,this.yMin=nn,this.xMax=rn,this.yMax=an,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],sn=this.raw;cn=sn.readShort(),this.glyphOffsets.push(sn.pos),this.glyphIDs.push(sn.readUInt16()),32&cn;)sn.pos+=1&cn?4:2,128&cn?sn.pos+=8:64&cn?sn.pos+=4:8&cn&&(sn.pos+=2)}return t.prototype.encode=function(){var en,tn,nn;for(tn=new gR(ER.call(this.raw.data)),en=0,nn=this.glyphIDs.length;en<nn;++en)tn.pos=this.glyphOffsets[en];return tn.data},t}(),NR=function(en){function e(){return e.__super__.constructor.apply(this,arguments)}return mR(e,hR),e.prototype.tag="loca",e.prototype.parse=function(en){var tn,nn;return en.pos=this.offset,tn=this.file.head.indexToLocFormat,this.offsets=0===tn?function(){var tn,rn;for(rn=[],nn=0,tn=this.length;nn<tn;nn+=2)rn.push(2*en.readUInt16());return rn}.call(this):function(){var tn,rn;for(rn=[],nn=0,tn=this.length;nn<tn;nn+=4)rn.push(en.readUInt32());return rn}.call(this)},e.prototype.indexOf=function(en){return this.offsets[en]},e.prototype.lengthOf=function(en){return this.offsets[en+1]-this.offsets[en]},e.prototype.encode=function(en,tn){for(var nn=new Uint32Array(this.offsets.length),rn=0,an=0,sn=0;sn<nn.length;++sn)if(nn[sn]=rn,an<tn.length&&tn[an]==sn){++an,nn[sn]=rn;var cn=this.offsets[sn],un=this.offsets[sn+1]-cn;un>0&&(rn+=un)}for(var dn=new Array(4*nn.length),pn=0;pn<nn.length;++pn)dn[4*pn+3]=255&nn[pn],dn[4*pn+2]=(65280&nn[pn])>>8,dn[4*pn+1]=(16711680&nn[pn])>>16,dn[4*pn]=(4278190080&nn[pn])>>24;return dn},e}(),IR=function(){function t(en){this.font=en,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var en,tn,nn,rn,an;for(tn in rn=this.font.cmap.tables[0].codeMap,en={},an=this.subset)nn=an[tn],en[tn]=rn[nn];return en},t.prototype.glyphsFor=function(en){var tn,nn,rn,an,sn,cn,un;for(rn={},sn=0,cn=en.length;sn<cn;sn++)rn[an=en[sn]]=this.font.glyf.glyphFor(an);for(an in tn=[],rn)(null!=(nn=rn[an])?nn.compound:void 0)&&tn.push.apply(tn,nn.glyphIDs);if(tn.length>0)for(an in un=this.glyphsFor(tn))nn=un[an],rn[an]=nn;return rn},t.prototype.encode=function(en,tn){var nn,rn,an,sn,cn,un,dn,pn,hn,gn,An,mn,vn,yn,_n;for(rn in nn=_R.encode(this.generateCmap(),"unicode"),sn=this.glyphsFor(en),An={0:0},_n=nn.charMap)An[(un=_n[rn]).old]=un.new;for(mn in gn=nn.maxGlyphID,sn)mn in An||(An[mn]=gn++);return pn=function(en){var tn,nn;for(tn in nn={},en)nn[en[tn]]=tn;return nn}(An),hn=Object.keys(pn).sort((function(en,tn){return en-tn})),vn=function(){var en,tn,nn;for(nn=[],en=0,tn=hn.length;en<tn;en++)cn=hn[en],nn.push(pn[cn]);return nn}(),an=this.font.glyf.encode(sn,vn,An),dn=this.font.loca.encode(an.offsets,vn),yn={cmap:this.font.cmap.raw(),glyf:an.table,loca:dn,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(tn)},this.font.os2.exists&&(yn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(yn)},t}();O$1.API.PDFObject=function(){var en;function e(){}return en=function t(en,tn){return(Array(tn+1).join("0")+en).slice(-tn)},e.convert=function(tn){var nn,rn,an,sn;if(Array.isArray(tn))return"["+function(){var en,rn,an;for(an=[],en=0,rn=tn.length;en<rn;en++)nn=tn[en],an.push(e.convert(nn));return an}().join(" ")+"]";if("string"==typeof tn)return"/"+tn;if(null!=tn?tn.isString:void 0)return"("+tn+")";if(tn instanceof Date)return"(D:"+en(tn.getUTCFullYear(),4)+en(tn.getUTCMonth(),2)+en(tn.getUTCDate(),2)+en(tn.getUTCHours(),2)+en(tn.getUTCMinutes(),2)+en(tn.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(tn)){for(rn in an=["<<"],tn)sn=tn[rn],an.push("/"+rn+" "+e.convert(sn));return an.push(">>"),an.join("\n")}return""+tn},e}(),_export({target:"String",proto:!0,forced:stringHtmlForced("anchor")},{anchor:function anchor(en){return createHtml(this,"a","name",en)}});
|
||
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
||
var OR={}.hasOwnProperty,FR=/[ -,\.\/:-@\[-\^`\{-~]/,UR=/[ -,\.\/:-@\[\]\^`\{-~]/,MR=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,RR=function cssesc(en,tn){"single"!=(tn=function merge(en,tn){if(!en)return tn;var nn={};for(var rn in tn)nn[rn]=OR.call(en,rn)?en[rn]:tn[rn];return nn}(tn,cssesc.options)).quotes&&"double"!=tn.quotes&&(tn.quotes="single");for(var nn="double"==tn.quotes?'"':"'",rn=tn.isIdentifier,an=en.charAt(0),sn="",cn=0,un=en.length;cn<un;){var dn=en.charAt(cn++),pn=dn.charCodeAt(),hn=void 0;if(pn<32||pn>126){if(pn>=55296&&pn<=56319&&cn<un){var gn=en.charCodeAt(cn++);56320==(64512&gn)?pn=((1023&pn)<<10)+(1023&gn)+65536:cn--}hn="\\"+pn.toString(16).toUpperCase()+" "}else hn=tn.escapeEverything?FR.test(dn)?"\\"+dn:"\\"+pn.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(dn)?"\\"+pn.toString(16).toUpperCase()+" ":"\\"==dn||!rn&&('"'==dn&&nn==dn||"'"==dn&&nn==dn)||rn&&UR.test(dn)?"\\"+dn:dn;sn+=hn}return rn&&(/^-[-\d]/.test(sn)?sn="\\-"+sn.slice(1):/\d/.test(an)&&(sn="\\3"+an+" "+sn.slice(1))),sn=sn.replace(MR,(function(en,tn,nn){return tn&&tn.length%2?en:(tn||"")+nn})),!rn&&tn.wrap?nn+sn+nn:sn};RR.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},RR.version="3.0.0";var DR=RR,jR=/[a-z0-9_-]/i,QR=/[\s\t]/,HR=function parse(en){for(var tn,nn,rn=!0,an=0,sn="",cn=0,un=[];;){if(nn=en[cn],0===an){if(!nn&&rn)break;if(!nn&&!rn)throw new Error("Parse error");if('"'===nn||"'"===nn)tn=nn,an=1,rn=!1;else if(QR.test(nn));else{if(!jR.test(nn))throw new Error("Parse error");an=3,rn=!1,cn--}}else if(1===an){if(!nn)throw new Error("Parse Error");"\\"===nn?an=2:nn===tn?(un.push(sn),sn="",an=4):sn+=nn}else if(2===an){if(nn!==tn&&"\\"!==nn)throw new Error("Parse error");sn+=nn,an=1}else if(3===an){if(!nn){un.push(sn);break}jR.test(nn)?sn+=nn:","===nn?(un.push(sn),sn="",an=0):QR.test(nn)?an=5:"\\"===nn&&(an=6)}else if(6===an){if(/[0-9a-f]/i.test(nn))throw new Error("Parse error");sn+=nn,an=3}else if(5===an){if(!nn){un.push(sn);break}if(jR.test(nn))sn+=" "+nn,an=3;else if(","===nn)un.push(sn),sn="",an=0;else if(!QR.test(nn))throw new Error("Parse error")}else if(4===an){if(!nn)break;if(","===nn)an=0;else if(!QR.test(nn))throw new Error("Parse error")}cn++}return un},GR={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},VR=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isDigit(en){return en>=48&&en<=57}function State(en){this.index=0,this.path=en,this.max=en.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(en){for(;en.index<en.max&&(10===(tn=en.path.charCodeAt(en.index))||13===tn||8232===tn||8233===tn||32===tn||9===tn||11===tn||12===tn||160===tn||tn>=5760&&VR.indexOf(tn)>=0);)en.index++;var tn}function scanFlag(en){var tn=en.path.charCodeAt(en.index);return 48===tn?(en.param=0,void en.index++):49===tn?(en.param=1,void en.index++):void(en.err="SvgPath: arc flag can be 0 or 1 only (at pos "+en.index+")")}function scanParam(en){var tn,nn=en.index,rn=nn,an=en.max,sn=!1,cn=!1,un=!1,dn=!1;if(rn>=an)en.err="SvgPath: missed param (at pos "+rn+")";else if(43!==(tn=en.path.charCodeAt(rn))&&45!==tn||(tn=++rn<an?en.path.charCodeAt(rn):0),isDigit(tn)||46===tn){if(46!==tn){if(sn=48===tn,tn=++rn<an?en.path.charCodeAt(rn):0,sn&&rn<an&&tn&&isDigit(tn))return void(en.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+nn+")");for(;rn<an&&isDigit(en.path.charCodeAt(rn));)rn++,cn=!0;tn=rn<an?en.path.charCodeAt(rn):0}if(46===tn){for(dn=!0,rn++;isDigit(en.path.charCodeAt(rn));)rn++,un=!0;tn=rn<an?en.path.charCodeAt(rn):0}if(101===tn||69===tn){if(dn&&!cn&&!un)return void(en.err="SvgPath: invalid float exponent (at pos "+rn+")");if(43!==(tn=++rn<an?en.path.charCodeAt(rn):0)&&45!==tn||rn++,!(rn<an&&isDigit(en.path.charCodeAt(rn))))return void(en.err="SvgPath: invalid float exponent (at pos "+rn+")");for(;rn<an&&isDigit(en.path.charCodeAt(rn));)rn++}en.index=rn,en.param=parseFloat(en.path.slice(nn,rn))+0}else en.err="SvgPath: param should start with 0..9 or `.` (at pos "+rn+")"}function finalizeSegment(en){var tn,nn;nn=(tn=en.path[en.segmentStart]).toLowerCase();var rn=en.data;if("m"===nn&&rn.length>2&&(en.result.push([tn,rn[0],rn[1]]),rn=rn.slice(2),nn="l",tn="m"===tn?"l":"L"),"r"===nn)en.result.push([tn].concat(rn));else for(;rn.length>=GR[nn]&&(en.result.push([tn].concat(rn.splice(0,GR[nn]))),GR[nn]););}function scanSegment(en){var tn,nn,rn,an,sn,cn=en.max;if(en.segmentStart=en.index,nn=function isArc(en){return 97==(32|en)}(tn=en.path.charCodeAt(en.index)),function isCommand(en){switch(32|en){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}(tn))if(an=GR[en.path[en.index].toLowerCase()],en.index++,skipSpaces(en),en.data=[],an){for(rn=!1;;){for(sn=an;sn>0;sn--){if(!nn||3!==sn&&4!==sn?scanParam(en):scanFlag(en),en.err.length)return;en.data.push(en.param),skipSpaces(en),rn=!1,en.index<cn&&44===en.path.charCodeAt(en.index)&&(en.index++,skipSpaces(en),rn=!0)}if(!rn){if(en.index>=en.max)break;if(!((un=en.path.charCodeAt(en.index))>=48&&un<=57||43===un||45===un||46===un))break}}var un;finalizeSegment(en)}else finalizeSegment(en);else en.err="SvgPath: bad command "+en.path[en.index]+" (at pos "+en.index+")"}function Matrix$1(){if(!(this instanceof Matrix$1))return new Matrix$1;this.queue=[],this.cache=null}Matrix$1.prototype.matrix=function(en){return 1===en[0]&&0===en[1]&&0===en[2]&&1===en[3]&&0===en[4]&&0===en[5]||(this.cache=null,this.queue.push(en)),this},Matrix$1.prototype.translate=function(en,tn){return 0===en&&0===tn||(this.cache=null,this.queue.push([1,0,0,1,en,tn])),this},Matrix$1.prototype.scale=function(en,tn){return 1===en&&1===tn||(this.cache=null,this.queue.push([en,0,0,tn,0,0])),this},Matrix$1.prototype.rotate=function(en,tn,nn){var rn,an,sn;return 0!==en&&(this.translate(tn,nn),rn=en*Math.PI/180,an=Math.cos(rn),sn=Math.sin(rn),this.queue.push([an,sn,-sn,an,0,0]),this.cache=null,this.translate(-tn,-nn)),this},Matrix$1.prototype.skewX=function(en){return 0!==en&&(this.cache=null,this.queue.push([1,0,Math.tan(en*Math.PI/180),1,0,0])),this},Matrix$1.prototype.skewY=function(en){return 0!==en&&(this.cache=null,this.queue.push([1,Math.tan(en*Math.PI/180),0,1,0,0])),this},Matrix$1.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],1===this.queue.length)return this.cache;for(var en=1;en<this.queue.length;en++)this.cache=(tn=this.cache,nn=this.queue[en],[tn[0]*nn[0]+tn[2]*nn[1],tn[1]*nn[0]+tn[3]*nn[1],tn[0]*nn[2]+tn[2]*nn[3],tn[1]*nn[2]+tn[3]*nn[3],tn[0]*nn[4]+tn[2]*nn[5]+tn[4],tn[1]*nn[4]+tn[3]*nn[5]+tn[5]]);var tn,nn;return this.cache},Matrix$1.prototype.calc=function(en,tn,nn){var rn;return this.queue.length?(this.cache||(this.cache=this.toArray()),[en*(rn=this.cache)[0]+tn*rn[2]+(nn?0:rn[4]),en*rn[1]+tn*rn[3]+(nn?0:rn[5])]):[en,tn]};var zR=Matrix$1,KR={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},qR=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,$R=/[\s,]+/,WR=2*Math.PI;function unit_vector_angle(en,tn,nn,rn){var an=en*nn+tn*rn;return an>1&&(an=1),an<-1&&(an=-1),(en*rn-tn*nn<0?-1:1)*Math.acos(an)}function approximate_unit_arc(en,tn){var nn=4/3*Math.tan(tn/4),rn=Math.cos(en),an=Math.sin(en),sn=Math.cos(en+tn),cn=Math.sin(en+tn);return[rn,an,rn-an*nn,an+rn*nn,sn+cn*nn,cn-sn*nn,sn,cn]}var XR=function a2c(en,tn,nn,rn,an,sn,cn,un,dn){var pn=Math.sin(dn*WR/360),hn=Math.cos(dn*WR/360),gn=hn*(en-nn)/2+pn*(tn-rn)/2,An=-pn*(en-nn)/2+hn*(tn-rn)/2;if(0===gn&&0===An)return[];if(0===cn||0===un)return[];cn=Math.abs(cn),un=Math.abs(un);var mn=gn*gn/(cn*cn)+An*An/(un*un);mn>1&&(cn*=Math.sqrt(mn),un*=Math.sqrt(mn));var vn=function get_arc_center(en,tn,nn,rn,an,sn,cn,un,dn,pn){var hn=pn*(en-nn)/2+dn*(tn-rn)/2,gn=-dn*(en-nn)/2+pn*(tn-rn)/2,An=cn*cn,mn=un*un,vn=hn*hn,yn=gn*gn,_n=An*mn-An*yn-mn*vn;_n<0&&(_n=0),_n/=An*yn+mn*vn;var wn=(_n=Math.sqrt(_n)*(an===sn?-1:1))*cn/un*gn,xn=_n*-un/cn*hn,Sn=pn*wn-dn*xn+(en+nn)/2,Cn=dn*wn+pn*xn+(tn+rn)/2,kn=(hn-wn)/cn,Bn=(gn-xn)/un,En=(-hn-wn)/cn,Pn=(-gn-xn)/un,Ln=unit_vector_angle(1,0,kn,Bn),Tn=unit_vector_angle(kn,Bn,En,Pn);return 0===sn&&Tn>0&&(Tn-=WR),1===sn&&Tn<0&&(Tn+=WR),[Sn,Cn,Ln,Tn]}(en,tn,nn,rn,an,sn,cn,un,pn,hn),yn=[],_n=vn[2],wn=vn[3],xn=Math.max(Math.ceil(Math.abs(wn)/(WR/4)),1);wn/=xn;for(var Sn=0;Sn<xn;Sn++)yn.push(approximate_unit_arc(_n,wn)),_n+=wn;return yn.map((function(en){for(var tn=0;tn<en.length;tn+=2){var nn=en[tn+0],rn=en[tn+1],an=hn*(nn*=cn)-pn*(rn*=un),sn=pn*nn+hn*rn;en[tn+0]=an+vn[0],en[tn+1]=sn+vn[1]}return en}))},YR=1e-10,JR=Math.PI/180;function Ellipse(en,tn,nn){if(!(this instanceof Ellipse))return new Ellipse(en,tn,nn);this.rx=en,this.ry=tn,this.ax=nn}Ellipse.prototype.transform=function(en){var tn=Math.cos(this.ax*JR),nn=Math.sin(this.ax*JR),rn=[this.rx*(en[0]*tn+en[2]*nn),this.rx*(en[1]*tn+en[3]*nn),this.ry*(-en[0]*nn+en[2]*tn),this.ry*(-en[1]*nn+en[3]*tn)],an=rn[0]*rn[0]+rn[2]*rn[2],sn=rn[1]*rn[1]+rn[3]*rn[3],cn=((rn[0]-rn[3])*(rn[0]-rn[3])+(rn[2]+rn[1])*(rn[2]+rn[1]))*((rn[0]+rn[3])*(rn[0]+rn[3])+(rn[2]-rn[1])*(rn[2]-rn[1])),un=(an+sn)/2;if(cn<YR*un)return this.rx=this.ry=Math.sqrt(un),this.ax=0,this;var dn=rn[0]*rn[1]+rn[2]*rn[3],pn=un+(cn=Math.sqrt(cn))/2,hn=un-cn/2;return this.ax=Math.abs(dn)<YR&&Math.abs(pn-sn)<YR?90:180*Math.atan(Math.abs(dn)>Math.abs(pn-sn)?(pn-an)/dn:dn/(pn-sn))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(pn),this.ry=Math.sqrt(hn)):(this.ax+=90,this.rx=Math.sqrt(hn),this.ry=Math.sqrt(pn)),this},Ellipse.prototype.isDegenerate=function(){return this.rx<YR*this.ry||this.ry<YR*this.rx};var ZR=Ellipse;function SvgPath(en){if(!(this instanceof SvgPath))return new SvgPath(en);var tn=function pathParse(en){var tn=new State(en),nn=tn.max;for(skipSpaces(tn);tn.index<nn&&!tn.err.length;)scanSegment(tn);return tn.err.length?tn.result=[]:tn.result.length&&("mM".indexOf(tn.result[0][0])<0?(tn.err="SvgPath: string should start with `M` or `m`",tn.result=[]):tn.result[0][0]="M"),{err:tn.err,segments:tn.result}}(en);this.segments=tn.segments,this.err=tn.err,this.__stack=[]}SvgPath.from=function(en){if("string"==typeof en)return new SvgPath(en);if(en instanceof SvgPath){var tn=new SvgPath("");return tn.err=en.err,tn.segments=en.segments.map((function(en){return en.slice()})),tn.__stack=en.__stack.map((function(en){return zR().matrix(en.toArray())})),tn}throw new Error("SvgPath.from: invalid param type "+en)},SvgPath.prototype.__matrix=function(en){var tn,nn=this;en.queue.length&&this.iterate((function(rn,an,sn,cn){var un,dn,pn,hn;switch(rn[0]){case"v":dn=0===(un=en.calc(0,rn[1],!0))[0]?["v",un[1]]:["l",un[0],un[1]];break;case"V":dn=(un=en.calc(sn,rn[1],!1))[0]===en.calc(sn,cn,!1)[0]?["V",un[1]]:["L",un[0],un[1]];break;case"h":dn=0===(un=en.calc(rn[1],0,!0))[1]?["h",un[0]]:["l",un[0],un[1]];break;case"H":dn=(un=en.calc(rn[1],cn,!1))[1]===en.calc(sn,cn,!1)[1]?["H",un[0]]:["L",un[0],un[1]];break;case"a":case"A":var gn=en.toArray(),An=ZR(rn[1],rn[2],rn[3]).transform(gn);if(gn[0]*gn[3]-gn[1]*gn[2]<0&&(rn[5]=rn[5]?"0":"1"),un=en.calc(rn[6],rn[7],"a"===rn[0]),"A"===rn[0]&&rn[6]===sn&&rn[7]===cn||"a"===rn[0]&&0===rn[6]&&0===rn[7]){dn=["a"===rn[0]?"l":"L",un[0],un[1]];break}dn=An.isDegenerate()?["a"===rn[0]?"l":"L",un[0],un[1]]:[rn[0],An.rx,An.ry,An.ax,rn[4],rn[5],un[0],un[1]];break;case"m":hn=an>0,dn=["m",(un=en.calc(rn[1],rn[2],hn))[0],un[1]];break;default:for(dn=[pn=rn[0]],hn=pn.toLowerCase()===pn,tn=1;tn<rn.length;tn+=2)un=en.calc(rn[tn],rn[tn+1],hn),dn.push(un[0],un[1])}nn.segments[an]=dn}),!0)},SvgPath.prototype.__evaluateStack=function(){var en,tn;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(en=zR(),tn=this.__stack.length;--tn>=0;)en.matrix(this.__stack[tn].toArray());this.__matrix(en),this.__stack=[]}},SvgPath.prototype.toString=function(){var en,tn,nn=[];this.__evaluateStack();for(var rn=0;rn<this.segments.length;rn++)tn=this.segments[rn][0],en=rn>0&&"m"!==tn&&"M"!==tn&&tn===this.segments[rn-1][0],nn=nn.concat(en?this.segments[rn].slice(1):this.segments[rn]);return nn.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},SvgPath.prototype.translate=function(en,tn){return this.__stack.push(zR().translate(en,tn||0)),this},SvgPath.prototype.scale=function(en,tn){return this.__stack.push(zR().scale(en,tn||0===tn?tn:en)),this},SvgPath.prototype.rotate=function(en,tn,nn){return this.__stack.push(zR().rotate(en,tn||0,nn||0)),this},SvgPath.prototype.skewX=function(en){return this.__stack.push(zR().skewX(en)),this},SvgPath.prototype.skewY=function(en){return this.__stack.push(zR().skewY(en)),this},SvgPath.prototype.matrix=function(en){return this.__stack.push(zR().matrix(en)),this},SvgPath.prototype.transform=function(en){return en.trim()?(this.__stack.push(function transformParse(en){var tn,nn,rn=new zR;return en.split(qR).forEach((function(en){if(en.length)if(void 0===KR[en])switch(nn=en.split($R).map((function(en){return+en||0})),tn){case"matrix":return void(6===nn.length&&rn.matrix(nn));case"scale":return void(1===nn.length?rn.scale(nn[0],nn[0]):2===nn.length&&rn.scale(nn[0],nn[1]));case"rotate":return void(1===nn.length?rn.rotate(nn[0],0,0):3===nn.length&&rn.rotate(nn[0],nn[1],nn[2]));case"translate":return void(1===nn.length?rn.translate(nn[0],0):2===nn.length&&rn.translate(nn[0],nn[1]));case"skewX":return void(1===nn.length&&rn.skewX(nn[0]));case"skewY":return void(1===nn.length&&rn.skewY(nn[0]))}else tn=en})),rn}(en)),this):this},SvgPath.prototype.round=function(en){var tn,nn=0,rn=0,an=0,sn=0;return en=en||0,this.__evaluateStack(),this.segments.forEach((function(cn){var un=cn[0].toLowerCase()===cn[0];switch(cn[0]){case"H":case"h":return un&&(cn[1]+=an),an=cn[1]-cn[1].toFixed(en),void(cn[1]=+cn[1].toFixed(en));case"V":case"v":return un&&(cn[1]+=sn),sn=cn[1]-cn[1].toFixed(en),void(cn[1]=+cn[1].toFixed(en));case"Z":case"z":return an=nn,void(sn=rn);case"M":case"m":return un&&(cn[1]+=an,cn[2]+=sn),an=cn[1]-cn[1].toFixed(en),sn=cn[2]-cn[2].toFixed(en),nn=an,rn=sn,cn[1]=+cn[1].toFixed(en),void(cn[2]=+cn[2].toFixed(en));case"A":case"a":return un&&(cn[6]+=an,cn[7]+=sn),an=cn[6]-cn[6].toFixed(en),sn=cn[7]-cn[7].toFixed(en),cn[1]=+cn[1].toFixed(en),cn[2]=+cn[2].toFixed(en),cn[3]=+cn[3].toFixed(en+2),cn[6]=+cn[6].toFixed(en),void(cn[7]=+cn[7].toFixed(en));default:return tn=cn.length,un&&(cn[tn-2]+=an,cn[tn-1]+=sn),an=cn[tn-2]-cn[tn-2].toFixed(en),sn=cn[tn-1]-cn[tn-1].toFixed(en),void cn.forEach((function(tn,nn){nn&&(cn[nn]=+cn[nn].toFixed(en))}))}})),this},SvgPath.prototype.iterate=function(en,tn){var nn,rn,an,sn=this.segments,cn={},un=!1,dn=0,pn=0,hn=0,gn=0;if(tn||this.__evaluateStack(),sn.forEach((function(tn,nn){var rn=en(tn,nn,dn,pn);Array.isArray(rn)&&(cn[nn]=rn,un=!0);var an=tn[0]===tn[0].toLowerCase();switch(tn[0]){case"m":case"M":return dn=tn[1]+(an?dn:0),pn=tn[2]+(an?pn:0),hn=dn,void(gn=pn);case"h":case"H":return void(dn=tn[1]+(an?dn:0));case"v":case"V":return void(pn=tn[1]+(an?pn:0));case"z":case"Z":return dn=hn,void(pn=gn);default:dn=tn[tn.length-2]+(an?dn:0),pn=tn[tn.length-1]+(an?pn:0)}})),!un)return this;for(an=[],nn=0;nn<sn.length;nn++)if(void 0!==cn[nn])for(rn=0;rn<cn[nn].length;rn++)an.push(cn[nn][rn]);else an.push(sn[nn]);return this.segments=an,this},SvgPath.prototype.abs=function(){return this.iterate((function(en,tn,nn,rn){var an,sn=en[0],cn=sn.toUpperCase();if(sn!==cn)switch(en[0]=cn,sn){case"v":return void(en[1]+=rn);case"a":return en[6]+=nn,void(en[7]+=rn);default:for(an=1;an<en.length;an++)en[an]+=an%2?nn:rn}}),!0),this},SvgPath.prototype.rel=function(){return this.iterate((function(en,tn,nn,rn){var an,sn=en[0],cn=sn.toLowerCase();if(sn!==cn&&(0!==tn||"M"!==sn))switch(en[0]=cn,sn){case"V":return void(en[1]-=rn);case"A":return en[6]-=nn,void(en[7]-=rn);default:for(an=1;an<en.length;an++)en[an]-=an%2?nn:rn}}),!0),this},SvgPath.prototype.unarc=function(){return this.iterate((function(en,tn,nn,rn){var an,sn,cn,un=[],dn=en[0];return"A"!==dn&&"a"!==dn?null:("a"===dn?(sn=nn+en[6],cn=rn+en[7]):(sn=en[6],cn=en[7]),0===(an=XR(nn,rn,sn,cn,en[4],en[5],en[1],en[2],en[3])).length?[["a"===en[0]?"l":"L",en[6],en[7]]]:(an.forEach((function(en){un.push(["C",en[2],en[3],en[4],en[5],en[6],en[7]])})),un))})),this},SvgPath.prototype.unshort=function(){var en,tn,nn,rn,an,sn=this.segments;return this.iterate((function(cn,un,dn,pn){var hn,gn=cn[0],An=gn.toUpperCase();un&&("T"===An?(hn="t"===gn,"Q"===(nn=sn[un-1])[0]?(en=nn[1]-dn,tn=nn[2]-pn):"q"===nn[0]?(en=nn[1]-nn[3],tn=nn[2]-nn[4]):(en=0,tn=0),rn=-en,an=-tn,hn||(rn+=dn,an+=pn),sn[un]=[hn?"q":"Q",rn,an,cn[1],cn[2]]):"S"===An&&(hn="s"===gn,"C"===(nn=sn[un-1])[0]?(en=nn[3]-dn,tn=nn[4]-pn):"c"===nn[0]?(en=nn[3]-nn[5],tn=nn[4]-nn[6]):(en=0,tn=0),rn=-en,an=-tn,hn||(rn+=dn,an+=pn),sn[un]=[hn?"c":"C",rn,an,cn[1],cn[2],cn[3],cn[4]]))})),this};var eD=SvgPath,tD=function calculateSingle(en){var tn,nn,rn=en,an={a:0,b:0,c:0},sn=[];return tn=function findMatch(tn,nn){var cn,un,dn,pn,hn,gn;if(tn.test(rn))for(un=0,dn=(cn=rn.match(tn)).length;un<dn;un+=1)an[nn]+=1,pn=cn[un],hn=rn.indexOf(pn),gn=pn.length,sn.push({selector:en.substr(hn,gn),type:nn,index:hn,length:gn}),rn=rn.replace(pn,Array(gn+1).join(" "))},(nn=function replaceWithPlainText(en){var tn,nn,an,sn;if(en.test(rn))for(nn=0,an=(tn=rn.match(en)).length;nn<an;nn+=1)sn=tn[nn],rn=rn.replace(sn,Array(sn.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),nn(/\\[0-9A-Fa-f]{1,5}\s/g),nn(/\\./g),function(){var en,tn,nn,an,sn=/{[^]*/gm;if(sn.test(rn))for(tn=0,nn=(en=rn.match(sn)).length;tn<nn;tn+=1)an=en[tn],rn=rn.replace(an,Array(an.length+1).join(" "))}(),tn(/(\[[^\]]+\])/g,"b"),tn(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),tn(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),tn(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),tn(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),tn(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),rn=(rn=(rn=(rn=(rn=(rn=rn.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),tn(/([^\s\+>~\.\[:]+)/g,"c"),sn.sort((function(en,tn){return en.index-tn.index})),{selector:en,specificity:"0,"+an.a.toString()+","+an.b.toString()+","+an.c.toString(),specificityArray:[0,an.a,an.b,an.c],parts:sn}},nD=function extendStatics(en,tn){return(nD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(en,tn){en.__proto__=tn}||function(en,tn){for(var nn in tn)tn.hasOwnProperty(nn)&&(en[nn]=tn[nn])})(en,tn)};function __extends(en,tn){function __(){this.constructor=en}nD(en,tn),en.prototype=null===tn?Object.create(tn):(__.prototype=tn.prototype,new __)}var rD=function __assign(){return(rD=Object.assign||function __assign(en){for(var tn,nn=1,rn=arguments.length;nn<rn;nn++)for(var an in tn=arguments[nn])Object.prototype.hasOwnProperty.call(tn,an)&&(en[an]=tn[an]);return en}).apply(this,arguments)};function __awaiter(en,tn,nn,rn){return new(nn||(nn=Promise))((function(an,sn){function fulfilled(en){try{step(rn.next(en))}catch(en){sn(en)}}function rejected(en){try{step(rn.throw(en))}catch(en){sn(en)}}function step(en){en.done?an(en.value):function adopt(en){return en instanceof nn?en:new nn((function(tn){tn(en)}))}(en.value).then(fulfilled,rejected)}step((rn=rn.apply(en,tn||[])).next())}))}function __generator(en,tn){var nn,rn,an,sn,cn={label:0,sent:function sent(){if(1&an[0])throw an[1];return an[1]},trys:[],ops:[]};return sn={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(sn[Symbol.iterator]=function(){return this}),sn;function verb(sn){return function(un){return function step(sn){if(nn)throw new TypeError("Generator is already executing.");for(;cn;)try{if(nn=1,rn&&(an=2&sn[0]?rn.return:sn[0]?rn.throw||((an=rn.return)&&an.call(rn),0):rn.next)&&!(an=an.call(rn,sn[1])).done)return an;switch(rn=0,an&&(sn=[2&sn[0],an.value]),sn[0]){case 0:case 1:an=sn;break;case 4:return cn.label++,{value:sn[1],done:!1};case 5:cn.label++,rn=sn[1],sn=[0];continue;case 7:sn=cn.ops.pop(),cn.trys.pop();continue;default:if(!(an=cn.trys,(an=an.length>0&&an[an.length-1])||6!==sn[0]&&2!==sn[0])){cn=0;continue}if(3===sn[0]&&(!an||sn[1]>an[0]&&sn[1]<an[3])){cn.label=sn[1];break}if(6===sn[0]&&cn.label<an[1]){cn.label=an[1],an=sn;break}if(an&&cn.label<an[2]){cn.label=an[2],cn.ops.push(sn);break}an[2]&&cn.ops.pop(),cn.trys.pop();continue}sn=tn.call(en,cn)}catch(en){sn=[6,en],rn=0}finally{nn=an=0}if(5&sn[0])throw sn[1];return{value:sn[0]?sn[1]:void 0,done:!0}}([sn,un])}}}var iD=function(){function RGBColor(en){if(this.a=void 0,this.r=0,this.g=0,this.b=0,this.simpleColors={},this.colorDefs=[],this.ok=!1,en){for(var tn in"#"==en.charAt(0)&&(en=en.substr(1,6)),en=(en=en.replace(/ /g,"")).toLowerCase(),this.simpleColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},this.simpleColors)en==tn&&(en=this.simpleColors[tn]);this.colorDefs=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(en){return[parseInt(en[1]),parseInt(en[2]),parseInt(en[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(en){return[parseInt(en[1],16),parseInt(en[2],16),parseInt(en[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(en){return[parseInt(en[1]+en[1],16),parseInt(en[2]+en[2],16),parseInt(en[3]+en[3],16)]}}];for(var nn=0;nn<this.colorDefs.length;nn++){var rn=this.colorDefs[nn].re,an=this.colorDefs[nn].process,sn=rn.exec(en);if(sn){var cn=an(sn);this.r=cn[0],this.g=cn[1],this.b=cn[2],this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b}}return RGBColor.prototype.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},RGBColor.prototype.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+(this.a||"1")+")"},RGBColor.prototype.toHex=function(){var en=this.r.toString(16),tn=this.g.toString(16),nn=this.b.toString(16);return 1==en.length&&(en="0"+en),1==tn.length&&(tn="0"+tn),1==nn.length&&(nn="0"+nn),"#"+en+tn+nn},RGBColor.prototype.getHelpXML=function(){for(var en=[],tn=0;tn<this.colorDefs.length;tn++)for(var nn=this.colorDefs[tn].example,rn=0;rn<nn.length;rn++)en[en.length]=nn[rn];for(var an in this.simpleColors)en[en.length]=an;var sn=document.createElement("ul");sn.setAttribute("id","rgbcolor-examples");for(tn=0;tn<en.length;tn++)try{var cn=document.createElement("li"),un=new RGBColor(en[tn]),dn=document.createElement("div");dn.style.cssText="margin: 3px; border: 1px solid black; background:"+un.toHex()+"; color:"+un.toHex(),dn.appendChild(document.createTextNode("test"));var pn=document.createTextNode(" "+en[tn]+" -> "+un.toRGB()+" -> "+un.toHex());cn.appendChild(dn),cn.appendChild(pn),sn.appendChild(cn)}catch(en){}return sn},RGBColor}(),oD=function(){function ColorFill(en){this.color=en}return ColorFill.prototype.getFillData=function(en,tn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(en){return[2,void 0]}))}))},ColorFill}(),aD=function(){function AttributeState(){this.xmlSpace="",this.fill=null,this.fillOpacity=1,this.fontFamily="",this.fontSize=16,this.fontStyle="",this.fontWeight="",this.opacity=1,this.stroke=null,this.strokeDasharray=null,this.strokeDashoffset=0,this.strokeLinecap="",this.strokeLinejoin="",this.strokeMiterlimit=4,this.strokeOpacity=1,this.strokeWidth=1,this.alignmentBaseline="",this.textAnchor="",this.visibility="",this.color=null}return AttributeState.prototype.clone=function(){var en=new AttributeState;return en.xmlSpace=this.xmlSpace,en.fill=this.fill,en.fillOpacity=this.fillOpacity,en.fontFamily=this.fontFamily,en.fontSize=this.fontSize,en.fontStyle=this.fontStyle,en.fontWeight=this.fontWeight,en.opacity=this.opacity,en.stroke=this.stroke,en.strokeDasharray=this.strokeDasharray,en.strokeDashoffset=this.strokeDashoffset,en.strokeLinecap=this.strokeLinecap,en.strokeLinejoin=this.strokeLinejoin,en.strokeMiterlimit=this.strokeMiterlimit,en.strokeOpacity=this.strokeOpacity,en.strokeWidth=this.strokeWidth,en.textAnchor=this.textAnchor,en.alignmentBaseline=this.alignmentBaseline,en.visibility=this.visibility,en.color=this.color,en},AttributeState.default=function(){var en=new AttributeState;return en.xmlSpace="default",en.fill=new oD(new iD("rgb(0, 0, 0)")),en.fillOpacity=1,en.fontFamily="times",en.fontSize=16,en.fontStyle="normal",en.fontWeight="normal",en.opacity=1,en.stroke=null,en.strokeDasharray=null,en.strokeDashoffset=0,en.strokeLinecap="butt",en.strokeLinejoin="miter",en.strokeMiterlimit=4,en.strokeOpacity=1,en.strokeWidth=1,en.alignmentBaseline="baseline",en.textAnchor="start",en.visibility="visible",en.color=new iD("rgb(0, 0, 0)"),en},AttributeState}(),sD=/url\(["']?#([^"']+)["']?\)/,lD={bottom:"bottom","text-bottom":"bottom",top:"top","text-top":"top",hanging:"hanging",middle:"middle",central:"middle",center:"middle",mathematical:"middle",ideographic:"ideographic",alphabetic:"alphabetic",baseline:"alphabetic"},cD="http://www.w3.org/2000/svg",uD=function(){function TextMeasure(){this.measureMethods={}}return TextMeasure.prototype.getTextOffset=function(en,tn){var nn=tn.textAnchor;if("start"===nn)return 0;var rn=this.measureTextWidth(en,tn),an=0;switch(nn){case"end":an=rn;break;case"middle":an=rn/2}return an},TextMeasure.prototype.measureTextWidth=function(en,tn){if(0===en.length)return 0;var nn=tn.fontFamily;return this.getMeasureFunction(nn).call(this,en,tn.fontFamily,tn.fontSize+"px",tn.fontStyle,tn.fontWeight)},TextMeasure.prototype.getMeasurementTextNode=function(){if(!this.textMeasuringTextElement){this.textMeasuringTextElement=document.createElementNS(cD,"text");var en=document.createElementNS(cD,"svg");en.appendChild(this.textMeasuringTextElement),en.style.setProperty("position","absolute"),en.style.setProperty("visibility","hidden"),document.body.appendChild(en)}return this.textMeasuringTextElement},TextMeasure.prototype.canvasTextMeasure=function(en,tn,nn,rn,an){var sn=document.createElement("canvas").getContext("2d");return null!=sn?(sn.font=[rn,an,nn,tn].join(" "),sn.measureText(en).width):0},TextMeasure.prototype.svgTextMeasure=function(en,tn,nn,rn,an,sn){void 0===sn&&(sn=this.getMeasurementTextNode());var cn=sn;return cn.setAttribute("font-family",tn),cn.setAttribute("font-size",nn),cn.setAttribute("font-style",rn),cn.setAttribute("font-weight",an),cn.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),cn.textContent=en,cn.getBBox().width},TextMeasure.prototype.getMeasureFunction=function(en){var tn=this.measureMethods[en];if(!tn){var nn="16px",rn="normal",an="normal",sn=this.canvasTextMeasure(TextMeasure.testString,en,nn,rn,an),cn=this.svgTextMeasure(TextMeasure.testString,en,nn,rn,an);tn=Math.abs(sn-cn)<TextMeasure.epsilon?this.canvasTextMeasure:this.svgTextMeasure,this.measureMethods[en]=tn}return tn},TextMeasure.prototype.cleanupTextMeasuring=function(){if(this.textMeasuringTextElement){var en=this.textMeasuringTextElement.parentNode;en&&document.body.removeChild(en),this.textMeasuringTextElement=void 0}},TextMeasure.testString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789!\"$%&/()=?'\\+*-_.:,;^}][{#~|<>",TextMeasure.epsilon=.1,TextMeasure}(),dD=function(){function Context(en,tn){var nn,rn,an,sn,cn,un;this.pdf=en,this.svg2pdfParameters=tn.svg2pdfParameters,this.attributeState=tn.attributeState?tn.attributeState.clone():aD.default(),this.viewport=tn.viewport,this.refsHandler=null!==(nn=tn.refsHandler)&&void 0!==nn?nn:null,this.styleSheets=null!==(rn=tn.styleSheets)&&void 0!==rn?rn:null,this.textMeasure=null!==(an=tn.textMeasure)&&void 0!==an?an:new uD,this.transform=null!==(sn=tn.transform)&&void 0!==sn?sn:this.pdf.unitMatrix,this.withinClipPath=null!==(cn=tn.withinClipPath)&&void 0!==cn&&cn,this.withinUse=null!==(un=tn.withinUse)&&void 0!==un&&un}return Context.prototype.clone=function(en){var tn,nn,rn,an,sn,cn,un,dn;return void 0===en&&(en={}),new Context(this.pdf,{svg2pdfParameters:null!==(tn=en.svg2pdfParameters)&&void 0!==tn?tn:this.svg2pdfParameters,attributeState:en.attributeState?en.attributeState.clone():this.attributeState.clone(),viewport:null!==(nn=en.viewport)&&void 0!==nn?nn:this.viewport,refsHandler:null!==(rn=en.refsHandler)&&void 0!==rn?rn:this.refsHandler,styleSheets:null!==(an=en.styleSheets)&&void 0!==an?an:this.styleSheets,textMeasure:null!==(sn=en.textMeasure)&&void 0!==sn?sn:this.textMeasure,transform:null!==(cn=en.transform)&&void 0!==cn?cn:this.transform,withinClipPath:null!==(un=en.withinClipPath)&&void 0!==un?un:this.withinClipPath,withinUse:null!==(dn=en.withinUse)&&void 0!==dn?dn:this.withinUse})},Context}(),pD=function(){function ReferencesHandler(en){this.renderedElements={},this.idMap=en}return ReferencesHandler.prototype.getRendered=function(en,tn,nn){return __awaiter(this,void 0,void 0,(function(){var rn,an;return __generator(this,(function(sn){switch(sn.label){case 0:return rn=ReferencesHandler.generateKey(en,tn),this.renderedElements.hasOwnProperty(rn)?[2,this.renderedElements[en]]:(an=this.get(en),this.renderedElements[rn]=an,[4,nn(an)]);case 1:return sn.sent(),[2,an]}}))}))},ReferencesHandler.prototype.get=function(en){return this.idMap[DR(en,{isIdentifier:!0})]},ReferencesHandler.generateKey=function(en,tn){return en+"|"+(tn||new iD("rgb(0,0,0)")).toRGBA()},ReferencesHandler}();function getAngle(en,tn){return Math.atan2(tn[1]-en[1],tn[0]-en[0])}var hD=2/3;function toCubic(en,tn){return[hD*(tn[0]-en[0])+en[0],hD*(tn[1]-en[1])+en[1]]}function normalize$2(en){var tn=Math.sqrt(en[0]*en[0]+en[1]*en[1]);return[en[0]/tn,en[1]/tn]}function getDirectionVector(en,tn){return normalize$2([tn[0]-en[0],tn[1]-en[1]])}function addVectors(en,tn){return[en[0]+tn[0],en[1]+tn[1]]}function multVecMatrix(en,tn){var nn=en[0],rn=en[1];return[tn.a*nn+tn.c*rn+tn.e,tn.b*nn+tn.d*rn+tn.f]}var gD=function(){function Path(){this.segments=[]}return Path.prototype.moveTo=function(en,tn){return this.segments.push(new fD(en,tn)),this},Path.prototype.lineTo=function(en,tn){return this.segments.push(new AD(en,tn)),this},Path.prototype.curveTo=function(en,tn,nn,rn,an,sn){return this.segments.push(new mD(en,tn,nn,rn,an,sn)),this},Path.prototype.close=function(){return this.segments.push(new vD),this},Path.prototype.transform=function(en){this.segments.forEach((function(tn){if(tn instanceof fD||tn instanceof AD||tn instanceof mD){var nn=multVecMatrix([tn.x,tn.y],en);tn.x=nn[0],tn.y=nn[1]}if(tn instanceof mD){var rn=multVecMatrix([tn.x1,tn.y1],en),an=multVecMatrix([tn.x2,tn.y2],en);tn.x1=rn[0],tn.y1=rn[1],tn.x2=an[0],tn.y2=an[1]}}))},Path.prototype.draw=function(en){var tn=en.pdf;this.segments.forEach((function(en){en instanceof fD?tn.moveTo(en.x,en.y):en instanceof AD?tn.lineTo(en.x,en.y):en instanceof mD?tn.curveTo(en.x1,en.y1,en.x2,en.y2,en.x,en.y):tn.close()}))},Path}(),fD=function fD(en,tn){this.x=en,this.y=tn},AD=function AD(en,tn){this.x=en,this.y=tn},mD=function mD(en,tn,nn,rn,an,sn){this.x1=en,this.y1=tn,this.x2=nn,this.y2=rn,this.x=an,this.y=sn},vD=function vD(){};function nodeIs(en,tn){return tn.split(",").indexOf((en.nodeName||en.tagName).toLowerCase())>=0}function getAttribute(en,tn,nn,rn){void 0===rn&&(rn=nn);var an=en.style.getPropertyValue(rn);if(an)return an;var sn=tn.getPropertyValue(en,rn);return sn||(en.hasAttribute(nn)&&en.getAttribute(nn)||void 0)}function svgNodeIsVisible(en,tn,nn){if("none"===getAttribute(en.element,nn.styleSheets,"display"))return!1;var rn=tn,an=getAttribute(en.element,nn.styleSheets,"visibility");return an&&(rn="hidden"!==an),rn}function svgNodeAndChildrenVisible(en,tn,nn){var rn=svgNodeIsVisible(en,tn,nn);return 0!==en.element.childNodes.length&&(en.children.forEach((function(en){en.isVisible(rn,nn)&&(rn=!0)})),rn)}var yD=function(){function MarkerList(){this.markers=[]}return MarkerList.prototype.addMarker=function(en){this.markers.push(en)},MarkerList.prototype.draw=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,un;return __generator(this,(function(dn){switch(dn.label){case 0:tn=0,dn.label=1;case 1:return tn<this.markers.length?(nn=this.markers[tn],rn=void 0,an=nn.angle,sn=nn.anchor,cn=Math.cos(an),un=Math.sin(an),rn=en.pdf.Matrix(cn,un,-un,cn,sn[0],sn[1]),rn=en.pdf.matrixMult(en.pdf.Matrix(en.attributeState.strokeWidth,0,0,en.attributeState.strokeWidth,0,0),rn),rn=en.pdf.matrixMult(rn,en.transform),en.pdf.saveGraphicsState(),en.pdf.setLineWidth(1),[4,en.refsHandler.getRendered(nn.id,null,(function(tn){return tn.apply(en)}))]):[3,4];case 2:dn.sent(),en.pdf.doFormObject(nn.id,rn),en.pdf.restoreGraphicsState(),dn.label=3;case 3:return tn++,[3,1];case 4:return[2]}}))}))},MarkerList}(),_D=function _D(en,tn,nn){this.id=en,this.anchor=tn,this.angle=nn};function toPixels(en,tn){var nn;return(nn=en&&en.toString().match(/^([\-0-9.]+)em$/))?parseFloat(nn[1])*tn:(nn=en&&en.toString().match(/^([\-0-9.]+)(px|)$/))?parseFloat(nn[1]):0}function mapAlignmentBaseline(en){return lD[en]||"alphabetic"}function parseFloats(en){for(var tn,nn=[],rn=/[+-]?(?:(?:\d+\.?\d*)|(?:\d*\.?\d+))(?:[eE][+-]?\d+)?/g;tn=rn.exec(en);)nn.push(parseFloat(tn[0]));return nn}function parseColor(en,tn){if("transparent"===en){var nn=new iD("rgb(0,0,0)");return nn.a=0,nn}if("currentcolor"===en.toLowerCase())return tn||new iD("rgb(0,0,0)");var rn=/\s*rgba\(((?:[^,\)]*,){3}[^,\)]*)\)\s*/.exec(en);if(rn){var an=parseFloats(rn[1]),sn=new iD("rgb("+an.slice(0,3).join(",")+")");return sn.a=an[3],sn}return new iD(en)}var bD={"sans-serif":"helvetica",verdana:"helvetica",arial:"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",serif:"times",cursive:"times",fantasy:"times"};function getBoundingBoxByChildren(en,tn){if("none"===getAttribute(tn.element,en.styleSheets,"display"))return[0,0,0,0];var nn=[0,0,0,0];return tn.children.forEach((function(tn){var rn=tn.getBoundingBox(en);nn=[Math.min(nn[0],rn[0]),Math.min(nn[1],rn[1]),Math.max(nn[0]+nn[2],rn[0]+rn[2])-Math.min(nn[0],rn[0]),Math.max(nn[1]+nn[3],rn[1]+rn[3])-Math.min(nn[1],rn[1])]})),nn}function defaultBoundingBox(en,tn){var nn=parseFloat,rn=nn(en.getAttribute("x1"))||nn(getAttribute(en,tn.styleSheets,"x"))||nn(getAttribute(en,tn.styleSheets,"cx"))-nn(getAttribute(en,tn.styleSheets,"r"))||0,an=nn(en.getAttribute("x2"))||rn+nn(getAttribute(en,tn.styleSheets,"width"))||nn(getAttribute(en,tn.styleSheets,"cx"))+nn(getAttribute(en,tn.styleSheets,"r"))||0,sn=nn(en.getAttribute("y1"))||nn(getAttribute(en,tn.styleSheets,"y"))||nn(getAttribute(en,tn.styleSheets,"cy"))-nn(getAttribute(en,tn.styleSheets,"r"))||0,cn=nn(en.getAttribute("y2"))||sn+nn(getAttribute(en,tn.styleSheets,"height"))||nn(getAttribute(en,tn.styleSheets,"cy"))+nn(getAttribute(en,tn.styleSheets,"r"))||0;return[Math.min(rn,an),Math.min(sn,cn),Math.max(rn,an)-Math.min(rn,an),Math.max(sn,cn)-Math.min(sn,cn)]}function computeViewBoxTransform(en,tn,nn,rn,an,sn,cn,un){void 0===un&&(un=!1);var dn,pn,hn=tn[0],gn=tn[1],An=tn[2],mn=tn[3],vn=an/An,yn=sn/mn,_n=en.getAttribute("preserveAspectRatio");if(_n){var wn=_n.split(" ");"defer"===wn[0]&&(wn=wn.slice(1)),dn=wn[0],pn=wn[1]||"meet"}else dn="xMidYMid",pn="meet";if("none"!==dn&&("meet"===pn?vn=yn=Math.min(vn,yn):"slice"===pn&&(vn=yn=Math.max(vn,yn))),un)return cn.pdf.Matrix(vn,0,0,yn,0,0);var xn=nn-hn*vn,Sn=rn-gn*yn;dn.indexOf("xMid")>=0?xn+=(an-An*vn)/2:dn.indexOf("xMax")>=0&&(xn+=an-An*vn),dn.indexOf("YMid")>=0?Sn+=(sn-mn*yn)/2:dn.indexOf("YMax")>=0&&(Sn+=sn-mn*yn);var Cn=cn.pdf.Matrix(1,0,0,1,xn,Sn),kn=cn.pdf.Matrix(vn,0,0,yn,0,0);return cn.pdf.matrixMult(kn,Cn)}function parseTransform$1(en,tn){if(!en||"none"===en)return tn.pdf.unitMatrix;for(var nn,rn,an=/^[\s,]*matrix\(([^)]+)\)\s*/,sn=/^[\s,]*translate\(([^)]+)\)\s*/,cn=/^[\s,]*rotate\(([^)]+)\)\s*/,un=/^[\s,]*scale\(([^)]+)\)\s*/,dn=/^[\s,]*skewX\(([^)]+)\)\s*/,pn=/^[\s,]*skewY\(([^)]+)\)\s*/,hn=tn.pdf.unitMatrix;en.length>0&&en.length!==rn;){rn=en.length;var gn=an.exec(en);if(gn&&(nn=parseFloats(gn[1]),hn=tn.pdf.matrixMult(tn.pdf.Matrix(nn[0],nn[1],nn[2],nn[3],nn[4],nn[5]),hn),en=en.substr(gn[0].length)),gn=cn.exec(en)){nn=parseFloats(gn[1]);var An=Math.PI*nn[0]/180;if(hn=tn.pdf.matrixMult(tn.pdf.Matrix(Math.cos(An),Math.sin(An),-Math.sin(An),Math.cos(An),0,0),hn),nn[1]||nn[2]){var mn=tn.pdf.Matrix(1,0,0,1,nn[1],nn[2]),vn=tn.pdf.Matrix(1,0,0,1,-nn[1],-nn[2]);hn=tn.pdf.matrixMult(vn,tn.pdf.matrixMult(hn,mn))}en=en.substr(gn[0].length)}(gn=sn.exec(en))&&(nn=parseFloats(gn[1]),hn=tn.pdf.matrixMult(tn.pdf.Matrix(1,0,0,1,nn[0],nn[1]||0),hn),en=en.substr(gn[0].length)),(gn=un.exec(en))&&((nn=parseFloats(gn[1]))[1]||(nn[1]=nn[0]),hn=tn.pdf.matrixMult(tn.pdf.Matrix(nn[0],0,0,nn[1],0,0),hn),en=en.substr(gn[0].length)),(gn=dn.exec(en))&&(nn=parseFloat(gn[1]),nn*=Math.PI/180,hn=tn.pdf.matrixMult(tn.pdf.Matrix(1,0,Math.tan(nn),1,0,0),hn),en=en.substr(gn[0].length)),(gn=pn.exec(en))&&(nn=parseFloat(gn[1]),nn*=Math.PI/180,hn=tn.pdf.matrixMult(tn.pdf.Matrix(1,Math.tan(nn),0,1,0,0),hn),en=en.substr(gn[0].length))}return hn}var wD=function(){function SvgNode(en,tn){this.element=en,this.children=tn,this.parent=null}return SvgNode.prototype.setParent=function(en){this.parent=en},SvgNode.prototype.getParent=function(){return this.parent},SvgNode.prototype.getBoundingBox=function(en){return"none"===getAttribute(this.element,en.styleSheets,"display")?[0,0,0,0]:this.getBoundingBoxCore(en)},SvgNode.prototype.computeNodeTransform=function(en){var tn=this.computeNodeTransformCore(en),nn=getAttribute(this.element,en.styleSheets,"transform");return nn?en.pdf.matrixMult(tn,parseTransform$1(nn,en)):tn},SvgNode}(),xD=function(en){function NonRenderedNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(NonRenderedNode,en),NonRenderedNode.prototype.render=function(en){return Promise.resolve()},NonRenderedNode.prototype.getBoundingBoxCore=function(en){return[]},NonRenderedNode.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},NonRenderedNode}(wD),SD=function(en){function Gradient(tn,nn,rn){var an=en.call(this,nn,rn)||this;return an.pdfGradientType=tn,an.contextColor=void 0,an}return __extends(Gradient,en),Gradient.prototype.apply=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,un,dn,pn=this;return __generator(this,(function(hn){if(!(tn=this.element.getAttribute("id")))return[2];if(void 0===this.contextColor)for(this.contextColor=null,nn=this;nn;){if(rn=getAttribute(nn.element,en.styleSheets,"color")){this.contextColor=parseColor(rn,null);break}nn=nn.getParent()}return an=[],sn=0,cn=!1,this.children.forEach((function(tn){if("stop"===tn.element.tagName.toLowerCase()){var nn=getAttribute(tn.element,en.styleSheets,"color"),rn=parseColor(getAttribute(tn.element,en.styleSheets,"stop-color")||"",nn?parseColor(nn,null):pn.contextColor);an.push({offset:Gradient.parseGradientOffset(tn.element.getAttribute("offset")||"0"),color:[rn.r,rn.g,rn.b]});var un=getAttribute(tn.element,en.styleSheets,"stop-opacity");un&&"1"!==un&&(sn+=parseFloat(un),cn=!0)}})),cn&&(un=new I({opacity:sn/an.length})),dn=new C(this.pdfGradientType,this.getCoordinates(),an,un),en.pdf.addShadingPattern(tn,dn),[2]}))}))},Gradient.prototype.getBoundingBoxCore=function(en){return defaultBoundingBox(this.element,en)},Gradient.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Gradient.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},Gradient.parseGradientOffset=function(en){var tn=parseFloat(en);return!isNaN(tn)&&en.indexOf("%")>=0?tn/100:tn},Gradient}(xD),CD=function(en){function LinearGradient(tn,nn){return en.call(this,"axial",tn,nn)||this}return __extends(LinearGradient,en),LinearGradient.prototype.getCoordinates=function(){return[parseFloat(this.element.getAttribute("x1")||"0"),parseFloat(this.element.getAttribute("y1")||"0"),parseFloat(this.element.getAttribute("x2")||"1"),parseFloat(this.element.getAttribute("y2")||"0")]},LinearGradient}(SD),kD=function(en){function RadialGradient(tn,nn){return en.call(this,"radial",tn,nn)||this}return __extends(RadialGradient,en),RadialGradient.prototype.getCoordinates=function(){var en=this.element.getAttribute("cx"),tn=this.element.getAttribute("cy"),nn=this.element.getAttribute("fx"),rn=this.element.getAttribute("fy");return[parseFloat(nn||en||"0.5"),parseFloat(rn||tn||"0.5"),0,parseFloat(en||"0.5"),parseFloat(tn||"0.5"),parseFloat(this.element.getAttribute("r")||"0.5")]},RadialGradient}(SD),BD=function(){function GradientFill(en,tn){this.key=en,this.gradient=tn}return GradientFill.prototype.getFillData=function(en,tn){return __awaiter(this,void 0,void 0,(function(){var nn,rn,an;return __generator(this,(function(sn){switch(sn.label){case 0:return[4,tn.refsHandler.getRendered(this.key,null,(function(en){return en.apply(new dD(tn.pdf,{refsHandler:tn.refsHandler,textMeasure:tn.textMeasure,styleSheets:tn.styleSheets,viewport:tn.viewport,svg2pdfParameters:tn.svg2pdfParameters}))}))];case 1:return sn.sent(),this.gradient.element.hasAttribute("gradientUnits")&&"objectboundingbox"!==this.gradient.element.getAttribute("gradientUnits").toLowerCase()?nn=tn.pdf.unitMatrix:(rn=en.getBoundingBox(tn),nn=tn.pdf.Matrix(rn[2],0,0,rn[3],rn[0],rn[1])),an=parseTransform$1(getAttribute(this.gradient.element,tn.styleSheets,"gradientTransform","transform"),tn),[2,{key:this.key,matrix:tn.pdf.matrixMult(an,nn)}]}}))}))},GradientFill}(),ED=function(en){function Pattern(){return null!==en&&en.apply(this,arguments)||this}return __extends(Pattern,en),Pattern.prototype.apply=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn;return __generator(this,(function(cn){switch(cn.label){case 0:if(!(tn=this.element.getAttribute("id")))return[2];nn=this.getBoundingBox(en),rn=new j$2([nn[0],nn[1],nn[0]+nn[2],nn[1]+nn[3]],nn[2],nn[3]),en.pdf.beginTilingPattern(rn),an=0,sn=this.children,cn.label=1;case 1:return an<sn.length?[4,sn[an].render(new dD(en.pdf,{attributeState:en.attributeState,refsHandler:en.refsHandler,styleSheets:en.styleSheets,viewport:en.viewport,svg2pdfParameters:en.svg2pdfParameters}))]:[3,4];case 2:cn.sent(),cn.label=3;case 3:return an++,[3,1];case 4:return en.pdf.endTilingPattern(tn,rn),[2]}}))}))},Pattern.prototype.getBoundingBoxCore=function(en){return defaultBoundingBox(this.element,en)},Pattern.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Pattern.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},Pattern}(xD),PD=function(){function PatternFill(en,tn){this.key=en,this.pattern=tn}return PatternFill.prototype.getFillData=function(en,tn){return __awaiter(this,void 0,void 0,(function(){var nn,rn,an,sn,cn,un,dn,pn,hn,gn,An,mn;return __generator(this,(function(vn){switch(vn.label){case 0:return[4,tn.refsHandler.getRendered(this.key,null,(function(en){return en.apply(new dD(tn.pdf,{refsHandler:tn.refsHandler,textMeasure:tn.textMeasure,styleSheets:tn.styleSheets,viewport:tn.viewport,svg2pdfParameters:tn.svg2pdfParameters}))}))];case 1:return vn.sent(),nn={key:this.key,boundingBox:void 0,xStep:0,yStep:0,matrix:void 0},an=tn.pdf.unitMatrix,this.pattern.element.hasAttribute("patternUnits")&&"objectboundingbox"!==this.pattern.element.getAttribute("patternUnits").toLowerCase()||(rn=en.getBoundingBox(tn),an=tn.pdf.Matrix(1,0,0,1,rn[0],rn[1]),cn=this.pattern.getBoundingBox(tn),un=cn[0]*rn[0]||0,dn=cn[1]*rn[1]||0,pn=cn[2]*rn[2]||0,hn=cn[3]*rn[3]||0,nn.boundingBox=[un,dn,un+pn,dn+hn],nn.xStep=pn,nn.yStep=hn),sn=tn.pdf.unitMatrix,this.pattern.element.hasAttribute("patternContentUnits")&&"objectboundingbox"===this.pattern.element.getAttribute("patternContentUnits").toLowerCase()&&(rn||(rn=en.getBoundingBox(tn)),sn=tn.pdf.Matrix(rn[2],0,0,rn[3],0,0),cn=nn.boundingBox||this.pattern.getBoundingBox(tn),un=cn[0]/rn[0]||0,dn=cn[1]/rn[1]||0,pn=cn[2]/rn[2]||0,hn=cn[3]/rn[3]||0,nn.boundingBox=[un,dn,un+pn,dn+hn],nn.xStep=pn,nn.yStep=hn),gn=tn.pdf.unitMatrix,(An=getAttribute(this.pattern.element,tn.styleSheets,"patternTransform","transform"))&&(gn=parseTransform$1(An,tn)),mn=sn,mn=tn.pdf.matrixMult(mn,an),mn=tn.pdf.matrixMult(mn,gn),mn=tn.pdf.matrixMult(mn,tn.transform),nn.matrix=mn,[2,nn]}}))}))},PatternFill}();function parseAttributes(en,tn,nn){var rn=nn||tn.element,an=getAttribute(rn,en.styleSheets,"color");if(an){var sn=parseColor(an,en.attributeState.color);sn.ok?en.attributeState.color=sn:en.attributeState.color=new iD("rgb(0,0,0)")}var cn=getAttribute(rn,en.styleSheets,"visibility");cn&&(en.attributeState.visibility=cn);var un=getAttribute(rn,en.styleSheets,"fill");un&&(en.attributeState.fill=function parseFill(en,tn){var nn=sD.exec(en);if(nn){var rn=nn[1],an=tn.refsHandler.get(rn);return an&&(an instanceof CD||an instanceof kD)?new BD(rn,an):an&&an instanceof ED?new PD(rn,an):new oD(new iD("rgb(0, 0, 0)"))}var sn=parseColor(en,tn.attributeState.color);return sn.ok?new oD(sn):null}(un,en));var dn=getAttribute(rn,en.styleSheets,"fill-opacity");dn&&(en.attributeState.fillOpacity=parseFloat(dn));var pn=getAttribute(rn,en.styleSheets,"stroke-opacity");pn&&(en.attributeState.strokeOpacity=parseFloat(pn));var hn=getAttribute(rn,en.styleSheets,"opacity");hn&&(en.attributeState.opacity=parseFloat(hn));var gn=getAttribute(rn,en.styleSheets,"stroke-width");void 0!==gn&&""!==gn&&(en.attributeState.strokeWidth=Math.abs(parseFloat(gn)));var An=getAttribute(rn,en.styleSheets,"stroke");if(An)if("none"===An)en.attributeState.stroke=null;else{var mn=parseColor(An,en.attributeState.color);mn.ok&&(en.attributeState.stroke=new oD(mn))}var vn=getAttribute(rn,en.styleSheets,"stroke-linecap");vn&&(en.attributeState.strokeLinecap=vn);var yn=getAttribute(rn,en.styleSheets,"stroke-linejoin");yn&&(en.attributeState.strokeLinejoin=yn);var _n=getAttribute(rn,en.styleSheets,"stroke-dasharray");if(_n){var wn=parseInt(getAttribute(rn,en.styleSheets,"stroke-dashoffset")||"0");en.attributeState.strokeDasharray=parseFloats(_n),en.attributeState.strokeDashoffset=wn}var xn=getAttribute(rn,en.styleSheets,"stroke-miterlimit");void 0!==xn&&""!==xn&&(en.attributeState.strokeMiterlimit=parseFloat(xn));var Sn=rn.getAttribute("xml:space");Sn&&(en.attributeState.xmlSpace=Sn);var Cn=getAttribute(rn,en.styleSheets,"font-weight");Cn&&(en.attributeState.fontWeight=Cn);var kn=getAttribute(rn,en.styleSheets,"font-style");kn&&(en.attributeState.fontStyle=kn);var Bn=getAttribute(rn,en.styleSheets,"font-family");if(Bn){var En=HR(Bn);en.attributeState.fontFamily=function findFirstAvailableFontFamily(en,tn,nn){var rn="";"bold"===en.fontWeight&&(rn="bold"),"italic"===en.fontStyle&&(rn+="italic"),""===rn&&(rn="normal");var an=nn.pdf.getFontList(),sn="";return tn.some((function(en){var tn=an[en];return tn&&tn.indexOf(rn)>=0?(sn=en,!0):(en=en.toLowerCase(),!!bD.hasOwnProperty(en)&&(sn=en,!0))}))||(sn="times"),sn}(en.attributeState,En,en)}var Pn=getAttribute(rn,en.styleSheets,"font-size");if(Pn){var Ln=en.pdf.getFontSize();en.attributeState.fontSize=toPixels(Pn,Ln)}var Tn=getAttribute(rn,en.styleSheets,"vertical-align")||getAttribute(rn,en.styleSheets,"alignment-baseline");if(Tn){var Nn=Tn.match(/(baseline|text-bottom|alphabetic|ideographic|middle|central|mathematical|text-top|bottom|center|top|hanging)/);Nn&&(en.attributeState.alignmentBaseline=Nn[0])}var In=getAttribute(rn,en.styleSheets,"text-anchor");In&&(en.attributeState.textAnchor=In)}function applyAttributes(en,tn,nn){var rn=1,an=1;rn*=en.attributeState.fillOpacity,rn*=en.attributeState.opacity,en.attributeState.fill instanceof oD&&void 0!==en.attributeState.fill.color.a&&(rn*=en.attributeState.fill.color.a),an*=en.attributeState.strokeOpacity,an*=en.attributeState.opacity,en.attributeState.stroke instanceof oD&&void 0!==en.attributeState.stroke.color.a&&(an*=en.attributeState.stroke.color.a);var sn,cn,un=rn<1,dn=an<1;if(nodeIs(nn,"use")?(un=!0,dn=!0,rn*=en.attributeState.fill?1:0,an*=en.attributeState.stroke?1:0):en.withinUse&&(en.attributeState.fill!==tn.attributeState.fill?(un=!0,rn*=en.attributeState.fill?1:0):un&&!en.attributeState.fill&&(rn=0),en.attributeState.stroke!==tn.attributeState.stroke?(dn=!0,an*=en.attributeState.stroke?1:0):dn&&!en.attributeState.stroke&&(an=0)),un||dn){var pn={};un&&(pn.opacity=rn),dn&&(pn["stroke-opacity"]=an),en.pdf.setGState(new I(pn))}if(en.attributeState.fill&&en.attributeState.fill!==tn.attributeState.fill&&en.attributeState.fill instanceof oD&&en.attributeState.fill.color.ok&&!nodeIs(nn,"text")&&en.pdf.setFillColor(en.attributeState.fill.color.r,en.attributeState.fill.color.g,en.attributeState.fill.color.b),en.attributeState.strokeWidth!==tn.attributeState.strokeWidth&&en.pdf.setLineWidth(en.attributeState.strokeWidth),en.attributeState.stroke!==tn.attributeState.stroke&&en.attributeState.stroke instanceof oD&&en.pdf.setDrawColor(en.attributeState.stroke.color.r,en.attributeState.stroke.color.g,en.attributeState.stroke.color.b),en.attributeState.strokeLinecap!==tn.attributeState.strokeLinecap&&en.pdf.setLineCap(en.attributeState.strokeLinecap),en.attributeState.strokeLinejoin!==tn.attributeState.strokeLinejoin&&en.pdf.setLineJoin(en.attributeState.strokeLinejoin),en.attributeState.strokeDasharray===tn.attributeState.strokeDasharray&&en.attributeState.strokeDashoffset===tn.attributeState.strokeDashoffset||!en.attributeState.strokeDasharray||en.pdf.setLineDashPattern(en.attributeState.strokeDasharray,en.attributeState.strokeDashoffset),en.attributeState.strokeMiterlimit!==tn.attributeState.strokeMiterlimit&&en.pdf.setLineMiterLimit(en.attributeState.strokeMiterlimit),en.attributeState.fontFamily!==tn.attributeState.fontFamily&&(sn=bD.hasOwnProperty(en.attributeState.fontFamily)?bD[en.attributeState.fontFamily]:en.attributeState.fontFamily),en.attributeState.fill&&en.attributeState.fill!==tn.attributeState.fill&&en.attributeState.fill instanceof oD&&en.attributeState.fill.color.ok){var hn=en.attributeState.fill.color;en.pdf.setTextColor(hn.r,hn.g,hn.b)}en.attributeState.fontWeight===tn.attributeState.fontWeight&&en.attributeState.fontStyle===tn.attributeState.fontStyle||(cn="","bold"===en.attributeState.fontWeight&&(cn="bold"),"italic"===en.attributeState.fontStyle&&(cn+="italic"),""===cn&&(cn="normal")),void 0===sn&&void 0===cn||(void 0===sn&&(sn=bD.hasOwnProperty(en.attributeState.fontFamily)?bD[en.attributeState.fontFamily]:en.attributeState.fontFamily),en.pdf.setFont(sn,cn)),en.attributeState.fontSize!==tn.attributeState.fontSize&&en.pdf.setFontSize(en.attributeState.fontSize*en.pdf.internal.scaleFactor)}function getClipPathNode(en,tn){var nn=getAttribute(en.element,tn.styleSheets,"clip-path");if(nn){var rn=sD.exec(nn);if(rn){var an=rn[1];return tn.refsHandler.get(an)||void 0}}}function applyClipPath(en,tn,nn){return __awaiter(this,void 0,void 0,(function(){var rn,an;return __generator(this,(function(sn){switch(sn.label){case 0:return rn=nn.clone(),tn.element.hasAttribute("clipPathUnits")&&"objectboundingbox"===tn.element.getAttribute("clipPathUnits").toLowerCase()&&(an=en.getBoundingBox(nn),rn.transform=nn.pdf.matrixMult(nn.pdf.Matrix(an[2],0,0,an[3],an[0],an[1]),nn.transform)),[4,tn.apply(rn)];case 1:return sn.sent(),[2]}}))}))}var LD=function(en){function RenderedNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(RenderedNode,en),RenderedNode.prototype.render=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn;return __generator(this,(function(an){switch(an.label){case 0:return this.isVisible("hidden"!==en.attributeState.visibility,en)?((tn=en.clone()).transform=tn.pdf.matrixMult(this.computeNodeTransform(tn),en.transform),parseAttributes(tn,this),(nn=this.element.hasAttribute("clip-path")&&"none"!==getAttribute(this.element,tn.styleSheets,"clip-path"))?(rn=getClipPathNode(this,tn))&&rn.isVisible(!0,tn)?(tn.pdf.saveGraphicsState(),[4,applyClipPath(this,rn,tn)]):[3,2]:[3,3]):[2];case 1:return an.sent(),[3,3];case 2:return[2];case 3:return tn.withinClipPath||tn.pdf.saveGraphicsState(),applyAttributes(tn,en,this.element),[4,this.renderCore(tn)];case 4:return an.sent(),tn.withinClipPath||tn.pdf.restoreGraphicsState(),nn&&tn.pdf.restoreGraphicsState(),[2]}}))}))},RenderedNode}(wD),TD=function(en){function GraphicsNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(GraphicsNode,en),GraphicsNode}(LD),ND=function(en){function GeometryNode(tn,nn,rn){var an=en.call(this,nn,rn)||this;return an.cachedPath=null,an.hasMarkers=tn,an}return __extends(GeometryNode,en),GeometryNode.prototype.renderCore=function(en){return __awaiter(this,void 0,void 0,(function(){var tn;return __generator(this,(function(nn){switch(nn.label){case 0:return null===(tn=this.getCachedPath(en))||0===tn.segments.length?[2]:(en.withinClipPath?tn.transform(en.transform):en.pdf.setCurrentTransformationMatrix(en.transform),tn.draw(en),[4,this.fillOrStroke(en)]);case 1:return nn.sent(),this.hasMarkers?[4,this.drawMarkers(en,tn)]:[3,3];case 2:nn.sent(),nn.label=3;case 3:return[2]}}))}))},GeometryNode.prototype.getCachedPath=function(en){return this.cachedPath||(this.cachedPath=this.getPath(en))},GeometryNode.prototype.drawMarkers=function(en,tn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(nn){switch(nn.label){case 0:return[4,this.getMarkers(tn,en).draw(en.clone({transform:en.pdf.unitMatrix}))];case 1:return nn.sent(),[2]}}))}))},GeometryNode.prototype.fillOrStroke=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn;return __generator(this,(function(cn){switch(cn.label){case 0:return en.withinClipPath?[2]:(tn=en.attributeState.fill,nn=en.attributeState.stroke&&0!==en.attributeState.strokeWidth,tn?[4,tn.getFillData(this,en)]:[3,2]);case 1:return an=cn.sent(),[3,3];case 2:an=void 0,cn.label=3;case 3:return rn=an,sn="evenodd"===getAttribute(this.element,en.styleSheets,"fill-rule"),tn&&nn||en.withinUse?sn?en.pdf.fillStrokeEvenOdd(rn):en.pdf.fillStroke(rn):tn?sn?en.pdf.fillEvenOdd(rn):en.pdf.fill(rn):nn?en.pdf.stroke():en.pdf.discardPath(),[2]}}))}))},GeometryNode.prototype.getBoundingBoxCore=function(en){var tn=this.getCachedPath(en);if(!tn)return[0,0,0,0];for(var nn=Number.POSITIVE_INFINITY,rn=Number.POSITIVE_INFINITY,an=Number.NEGATIVE_INFINITY,sn=Number.NEGATIVE_INFINITY,cn=0,un=0,dn=0;dn<tn.segments.length;dn++){var pn=tn.segments[dn];(pn instanceof fD||pn instanceof AD||pn instanceof mD)&&(cn=pn.x,un=pn.y),pn instanceof mD?(nn=Math.min(nn,cn,pn.x1,pn.x2,pn.x),an=Math.max(an,cn,pn.x1,pn.x2,pn.x),rn=Math.min(rn,un,pn.y1,pn.y2,pn.y),sn=Math.max(sn,un,pn.y1,pn.y2,pn.y)):(nn=Math.min(nn,cn),an=Math.max(an,cn),rn=Math.min(rn,un),sn=Math.max(sn,un))}return[nn,rn,an-nn,sn-rn]},GeometryNode.prototype.getMarkers=function(en,tn){var nn=getAttribute(this.element,tn.styleSheets,"marker-start"),rn=getAttribute(this.element,tn.styleSheets,"marker-mid"),an=getAttribute(this.element,tn.styleSheets,"marker-end"),sn=new yD;if(nn||rn||an){an&&(an=iri(an)),nn&&(nn=iri(nn)),rn&&(rn=iri(rn));for(var cn=en.segments,un=[1,0],dn=void 0,pn=!1,hn=[1,0],gn=!1,An=function _loop_1(en){var tn=cn[en],An=nn&&(1===en||!(cn[en]instanceof fD)&&cn[en-1]instanceof fD);An&&cn.forEach((function(tn,nn){if(!gn&&tn instanceof vD&&nn>en){var rn=cn[nn-1];gn=(rn instanceof fD||rn instanceof AD||rn instanceof mD)&&rn}}));var mn=an&&(en===cn.length-1||!(cn[en]instanceof fD)&&cn[en+1]instanceof fD),vn=rn&&en>0&&!(1===en&&cn[en-1]instanceof fD),yn=cn[en-1]||null;if(yn instanceof fD||yn instanceof AD||yn instanceof mD){if(tn instanceof mD)An&&sn.addMarker(new _D(nn,[yn.x,yn.y],getAngle(gn?[gn.x,gn.y]:[yn.x,yn.y],[tn.x1,tn.y1]))),mn&&sn.addMarker(new _D(an,[tn.x,tn.y],getAngle([tn.x2,tn.y2],[tn.x,tn.y]))),vn&&(dn=getDirectionVector([yn.x,yn.y],[tn.x1,tn.y1]),dn=yn instanceof fD?dn:normalize$2(addVectors(un,dn)),sn.addMarker(new _D(rn,[yn.x,yn.y],Math.atan2(dn[1],dn[0])))),un=getDirectionVector([tn.x2,tn.y2],[tn.x,tn.y]);else if(tn instanceof fD||tn instanceof AD){if(dn=getDirectionVector([yn.x,yn.y],[tn.x,tn.y]),An){var _n=gn?getDirectionVector([gn.x,gn.y],[tn.x,tn.y]):dn;sn.addMarker(new _D(nn,[yn.x,yn.y],Math.atan2(_n[1],_n[0])))}if(mn&&sn.addMarker(new _D(an,[tn.x,tn.y],Math.atan2(dn[1],dn[0]))),vn){_n=tn instanceof fD?un:yn instanceof fD?dn:normalize$2(addVectors(un,dn));sn.addMarker(new _D(rn,[yn.x,yn.y],Math.atan2(_n[1],_n[0])))}un=dn}else if(tn instanceof vD){if(dn=getDirectionVector([yn.x,yn.y],[pn.x,pn.y]),vn){_n=yn instanceof fD?dn:normalize$2(addVectors(un,dn));sn.addMarker(new _D(rn,[yn.x,yn.y],Math.atan2(_n[1],_n[0])))}if(mn){_n=normalize$2(addVectors(dn,hn));sn.addMarker(new _D(an,[pn.x,pn.y],Math.atan2(_n[1],_n[0])))}un=dn}}else{pn=tn instanceof fD&&tn;var wn=cn[en+1];(wn instanceof fD||wn instanceof AD||wn instanceof mD)&&(hn=getDirectionVector([pn.x,pn.y],[wn.x,wn.y]))}},mn=0;mn<cn.length;mn++)An(mn)}return sn},GeometryNode}(TD);function iri(en){var tn=sD.exec(en);return tn&&tn[1]||void 0}var OD=function(en){function Line(tn,nn){return en.call(this,!0,tn,nn)||this}return __extends(Line,en),Line.prototype.getPath=function(en){if(en.withinClipPath||null===en.attributeState.stroke)return null;var tn=parseFloat(this.element.getAttribute("x1")||"0"),nn=parseFloat(this.element.getAttribute("y1")||"0"),rn=parseFloat(this.element.getAttribute("x2")||"0"),an=parseFloat(this.element.getAttribute("y2")||"0");return tn||rn||nn||an?(new gD).moveTo(tn,nn).lineTo(rn,an):null},Line.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Line.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},Line.prototype.fillOrStroke=function(tn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(nn){switch(nn.label){case 0:return tn.attributeState.fill=null,[4,en.prototype.fillOrStroke.call(this,tn)];case 1:return nn.sent(),[2]}}))}))},Line}(ND),FD=function(en){function _Symbol(){return null!==en&&en.apply(this,arguments)||this}return __extends(_Symbol,en),_Symbol.prototype.apply=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an;return __generator(this,(function(sn){switch(sn.label){case 0:return this.isVisible("hidden"!==en.attributeState.visibility,en)?((tn=en.clone()).transform=tn.pdf.unitMatrix,parseAttributes(tn,this),this.element.hasAttribute("clip-path")&&"none"!==getAttribute(this.element,tn.styleSheets,"clip-path")?(nn=getClipPathNode(this,tn))&&nn.isVisible(!0,tn)?[4,applyClipPath(this,nn,tn)]:[3,2]:[3,3]):[2];case 1:return sn.sent(),[3,3];case 2:return[2];case 3:applyAttributes(tn,en,this.element),rn=0,an=this.children,sn.label=4;case 4:return rn<an.length?[4,an[rn].render(tn)]:[3,7];case 5:sn.sent(),sn.label=6;case 6:return rn++,[3,4];case 7:return[2]}}))}))},_Symbol.prototype.getBoundingBoxCore=function(en){return getBoundingBoxByChildren(en,this)},_Symbol.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},_Symbol.prototype.computeNodeTransformCore=function(en){var tn=parseFloat(getAttribute(this.element,en.styleSheets,"x")||"0"),nn=parseFloat(getAttribute(this.element,en.styleSheets,"y")||"0"),rn=this.element.getAttribute("viewBox");if(rn){var an=parseFloats(rn),sn=parseFloat(getAttribute(this.element,en.styleSheets,"width")||getAttribute(this.element.ownerSVGElement,en.styleSheets,"width")||rn[2]),cn=parseFloat(getAttribute(this.element,en.styleSheets,"height")||getAttribute(this.element.ownerSVGElement,en.styleSheets,"height")||rn[3]);return computeViewBoxTransform(this.element,an,tn,nn,sn,cn,en)}return en.pdf.Matrix(1,0,0,1,tn,nn)},_Symbol}(xD),UD=function UD(en,tn){this.width=en,this.height=tn},MD=function(en){function Use(){return null!==en&&en.apply(this,arguments)||this}return __extends(Use,en),Use.prototype.renderCore=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,un,dn,pn,hn,gn,An,mn;return __generator(this,(function(vn){switch(vn.label){case 0:return tn=parseFloat,(nn=this.element.getAttribute("href")||this.element.getAttribute("xlink:href"))?(rn=nn.substring(1),an=en.refsHandler.get(rn),sn=nodeIs(an.element,"symbol,svg")&&an.element.hasAttribute("viewBox"),cn=tn(getAttribute(this.element,en.styleSheets,"x")||"0"),un=tn(getAttribute(this.element,en.styleSheets,"y")||"0"),dn=void 0,pn=void 0,sn?(dn=tn(getAttribute(this.element,en.styleSheets,"width")||getAttribute(an.element,en.styleSheets,"width")||"0"),pn=tn(getAttribute(this.element,en.styleSheets,"height")||getAttribute(an.element,en.styleSheets,"height")||"0"),cn+=tn(getAttribute(an.element,en.styleSheets,"x")||"0"),un+=tn(getAttribute(an.element,en.styleSheets,"y")||"0"),gn=parseFloats(an.element.getAttribute("viewBox")),hn=computeViewBoxTransform(an.element,gn,cn,un,dn,pn,en)):hn=en.pdf.Matrix(1,0,0,1,cn,un),An=new dD(en.pdf,{refsHandler:en.refsHandler,styleSheets:en.styleSheets,withinUse:!0,viewport:sn?new UD(dn,pn):en.viewport,svg2pdfParameters:en.svg2pdfParameters}),mn=en.attributeState.color,[4,en.refsHandler.getRendered(rn,mn,(function(en){return Use.renderReferencedNode(en,rn,mn,An)}))]):[2];case 1:return vn.sent(),en.pdf.saveGraphicsState(),en.pdf.setCurrentTransformationMatrix(en.transform),sn&&"visible"!==getAttribute(an.element,en.styleSheets,"overflow")&&(en.pdf.rect(cn,un,dn,pn),en.pdf.clip().discardPath()),en.pdf.doFormObject(pD.generateKey(rn,mn),hn),en.pdf.restoreGraphicsState(),[2]}}))}))},Use.renderReferencedNode=function(en,tn,nn,rn){return __awaiter(this,void 0,void 0,(function(){var an;return __generator(this,(function(sn){switch(sn.label){case 0:return an=[(an=en.getBoundingBox(rn))[0]-.5*an[2],an[1]-.5*an[3],2*an[2],2*an[3]],rn.attributeState.color=nn,rn.pdf.beginFormObject(an[0],an[1],an[2],an[3],rn.pdf.unitMatrix),en instanceof FD?[4,en.apply(rn)]:[3,2];case 1:return sn.sent(),[3,4];case 2:return[4,en.render(rn)];case 3:sn.sent(),sn.label=4;case 4:return rn.pdf.endFormObject(pD.generateKey(tn,nn)),[2]}}))}))},Use.prototype.getBoundingBoxCore=function(en){return defaultBoundingBox(this.element,en)},Use.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},Use.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Use}(TD),RD=function(en){function Rect(tn,nn){return en.call(this,!1,tn,nn)||this}return __extends(Rect,en),Rect.prototype.getPath=function(en){var tn=parseFloat(getAttribute(this.element,en.styleSheets,"width")||"0"),nn=parseFloat(getAttribute(this.element,en.styleSheets,"height")||"0");if(!isFinite(tn)||tn<=0||!isFinite(nn)||nn<=0)return null;var rn=getAttribute(this.element,en.styleSheets,"rx"),an=getAttribute(this.element,en.styleSheets,"ry"),sn=Math.min(parseFloat(rn||an||"0"),.5*tn),cn=Math.min(parseFloat(an||rn||"0"),.5*nn),un=parseFloat(getAttribute(this.element,en.styleSheets,"x")||"0"),dn=parseFloat(getAttribute(this.element,en.styleSheets,"y")||"0"),pn=4/3*(Math.SQRT2-1);return 0===sn&&0===cn?(new gD).moveTo(un,dn).lineTo(un+tn,dn).lineTo(un+tn,dn+nn).lineTo(un,dn+nn).close():(new gD).moveTo(un+=sn,dn).lineTo(un+=tn-2*sn,dn).curveTo(un+sn*pn,dn,un+sn,dn+(cn-cn*pn),un+=sn,dn+=cn).lineTo(un,dn+=nn-2*cn).curveTo(un,dn+cn*pn,un-sn*pn,dn+cn,un-=sn,dn+=cn).lineTo(un+=2*sn-tn,dn).curveTo(un-sn*pn,dn,un-sn,dn-cn*pn,un-=sn,dn-=cn).lineTo(un,dn+=2*cn-nn).curveTo(un,dn-cn*pn,un+sn*pn,dn-cn,un+=sn,dn-=cn).close()},Rect.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Rect.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},Rect}(ND),DD=function(en){function EllipseBase(tn,nn){return en.call(this,!1,tn,nn)||this}return __extends(EllipseBase,en),EllipseBase.prototype.getPath=function(en){var tn=this.getRx(en),nn=this.getRy(en);if(!isFinite(tn)||nn<=0||!isFinite(nn)||nn<=0)return null;var rn=parseFloat(getAttribute(this.element,en.styleSheets,"cx")||"0"),an=parseFloat(getAttribute(this.element,en.styleSheets,"cy")||"0"),sn=4/3*(Math.SQRT2-1)*tn,cn=4/3*(Math.SQRT2-1)*nn;return(new gD).moveTo(rn+tn,an).curveTo(rn+tn,an-cn,rn+sn,an-nn,rn,an-nn).curveTo(rn-sn,an-nn,rn-tn,an-cn,rn-tn,an).curveTo(rn-tn,an+cn,rn-sn,an+nn,rn,an+nn).curveTo(rn+sn,an+nn,rn+tn,an+cn,rn+tn,an)},EllipseBase.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},EllipseBase.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},EllipseBase}(ND),jD=function(en){function Ellipse(tn,nn){return en.call(this,tn,nn)||this}return __extends(Ellipse,en),Ellipse.prototype.getRx=function(en){return parseFloat(getAttribute(this.element,en.styleSheets,"rx")||"0")},Ellipse.prototype.getRy=function(en){return parseFloat(getAttribute(this.element,en.styleSheets,"ry")||"0")},Ellipse}(DD);function getTextRenderingMode(en){var tn="invisible";return en.fill&&en.stroke?tn="fillThenStroke":en.fill?tn="fill":en.stroke&&(tn="stroke"),tn}function removeNewlines(en){return en.replace(/[\n\r]/g,"")}function replaceTabsBySpace(en){return en.replace(/[\t]/g," ")}function consolidateSpaces(en){return en.replace(/ +/g," ")}function transformText(en,tn,nn){switch(getAttribute(en,nn.styleSheets,"text-transform")){case"uppercase":return tn.toUpperCase();case"lowercase":return tn.toLowerCase();default:return tn}}var QD=function(){function TextChunk(en,tn,nn,rn){this.textNode=en,this.texts=[],this.textNodes=[],this.contexts=[],this.textAnchor=tn,this.originX=nn,this.originY=rn,this.textMeasures=[]}return TextChunk.prototype.setX=function(en){this.originX=en},TextChunk.prototype.setY=function(en){this.originY=en},TextChunk.prototype.add=function(en,tn,nn){this.texts.push(tn),this.textNodes.push(en),this.contexts.push(nn)},TextChunk.prototype.rightTrimText=function(){for(var en=this.texts.length-1;en>=0;en--)if("default"===this.contexts[en].attributeState.xmlSpace&&(this.texts[en]=this.texts[en].replace(/\s+$/,"")),this.texts[en].match(/[^\s]/))return!1;return!0},TextChunk.prototype.measureText=function(en){for(var tn=0;tn<this.texts.length;tn++)this.textMeasures.push({width:en.textMeasure.measureTextWidth(this.texts[tn],this.contexts[tn].attributeState),length:this.texts[tn].length})},TextChunk.prototype.put=function(en,tn){var nn,rn,an,sn,cn=[],un=[],dn=[],pn=this.originX,hn=this.originY,gn=pn,An=pn;for(nn=0;nn<this.textNodes.length;nn++){rn=this.textNodes[nn],an=this.contexts[nn],sn=this.textMeasures[nn]||{width:en.textMeasure.measureTextWidth(this.texts[nn],this.contexts[nn].attributeState),length:this.texts[nn].length};var mn=pn,vn=hn;if("#text"!==rn.nodeName&&!cn.includes(rn)){cn.push(rn);var yn=rn.getAttribute("dx");null!==yn&&(mn+=toPixels(yn,an.attributeState.fontSize));var _n=rn.getAttribute("dy");null!==_n&&(vn+=toPixels(_n,an.attributeState.fontSize))}un[nn]=mn,dn[nn]=vn,pn=mn+sn.width+sn.length*tn,hn=vn,gn=Math.min(gn,mn),An=Math.max(An,pn)}var wn=0;switch(this.textAnchor){case"start":wn=0;break;case"middle":wn=(An-gn)/2;break;case"end":wn=An-gn}for(nn=0;nn<this.textNodes.length;nn++)if(rn=this.textNodes[nn],an=this.contexts[nn],"#text"===rn.nodeName||"hidden"!==an.attributeState.visibility){en.pdf.saveGraphicsState(),applyAttributes(an,en,rn);var xn=an.attributeState.alignmentBaseline,Sn=getTextRenderingMode(an.attributeState);en.pdf.text(this.texts[nn],un[nn]-wn,dn[nn],{baseline:mapAlignmentBaseline(xn),angle:en.transform,renderingMode:"fill"===Sn?void 0:Sn,charSpace:0===tn?void 0:tn}),en.pdf.restoreGraphicsState()}return[pn,hn]},TextChunk}(),HD=function(en){function TextNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(TextNode,en),TextNode.prototype.processTSpans=function(en,tn,nn,rn,an,sn){for(var cn=nn.pdf.getFontSize(),un=nn.attributeState.xmlSpace,dn=!0,pn=!1,hn=0;hn<tn.childNodes.length;hn++){var gn=tn.childNodes[hn];if(gn.textContent){var An=gn.textContent;if("#text"===gn.nodeName){var mn=removeNewlines(An);mn=replaceTabsBySpace(mn),"default"===un&&(mn=consolidateSpaces(mn),dn&&mn.match(/^\s/)&&(pn=!0),mn.match(/[^\s]/)&&(dn=!1),sn.prevText.match(/\s$/)&&(mn=mn.replace(/^\s+/,"")));var vn=transformText(tn,mn,nn);an.add(tn,vn,nn),sn.prevText=An,sn.prevContext=nn}else if(nodeIs(gn,"title"));else if(nodeIs(gn,"tspan")){var yn=gn,_n=yn.getAttribute("x");if(null!==_n){var wn=toPixels(_n,cn);an=new QD(this,getAttribute(yn,nn.styleSheets,"text-anchor")||nn.attributeState.textAnchor,wn,0),rn.push({type:"y",chunk:an})}var xn=yn.getAttribute("y");if(null!==xn){var Sn=toPixels(xn,cn);an=new QD(this,getAttribute(yn,nn.styleSheets,"text-anchor")||nn.attributeState.textAnchor,0,Sn),rn.push({type:"x",chunk:an})}var Cn=nn.clone();parseAttributes(Cn,en,yn),this.processTSpans(en,yn,Cn,rn,an,sn)}}}return pn},TextNode.prototype.renderCore=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn,xn,Sn,Cn,kn,Bn,En;return __generator(this,(function(Pn){if(en.pdf.saveGraphicsState(),tn=0,nn=0,rn=1,an=en.pdf.getFontSize(),sn=toPixels(this.element.getAttribute("x"),an),cn=toPixels(this.element.getAttribute("y"),an),un=toPixels(this.element.getAttribute("dx"),an),dn=toPixels(this.element.getAttribute("dy"),an),pn=parseFloat(this.element.getAttribute("textLength")||"0"),hn=en.attributeState.visibility,0===this.element.childElementCount)gn=this.element.textContent||"",An=function transformXmlSpace(en,tn){return en=replaceTabsBySpace(en=removeNewlines(en)),"default"===tn.xmlSpace&&(en=consolidateSpaces(en=en.trim())),en}(gn,en.attributeState),mn=transformText(this.element,An,en),tn=en.textMeasure.getTextOffset(mn,en.attributeState),pn>0&&(vn=en.textMeasure.measureTextWidth(mn,en.attributeState),"default"===en.attributeState.xmlSpace&&gn.match(/^\s/)&&(rn=0),nn=(pn-vn)/(mn.length-rn)||0),"visible"===hn&&(yn=en.attributeState.alignmentBaseline,_n=getTextRenderingMode(en.attributeState),en.pdf.text(mn,sn+un-tn,cn+dn,{baseline:mapAlignmentBaseline(yn),angle:en.transform,renderingMode:"fill"===_n?void 0:_n,charSpace:0===nn?void 0:nn}));else{for(wn=[],xn=new QD(this,en.attributeState.textAnchor,sn+un,cn+dn),wn.push({type:"",chunk:xn}),Sn=this.processTSpans(this,this.element,en,wn,xn,{prevText:" ",prevContext:en}),rn=Sn?0:1,Cn=!0,kn=wn.length-1;kn>=0;kn--)Cn&&(Cn=wn[kn].chunk.rightTrimText());pn>0&&(Bn=0,En=0,wn.forEach((function(tn){var nn=tn.chunk;nn.measureText(en),nn.textMeasures.forEach((function(en){var tn=en.width,nn=en.length;Bn+=tn,En+=nn}))})),nn=(pn-Bn)/(En-rn)),wn.reduce((function(tn,rn){var an=rn.type,sn=rn.chunk;return"x"===an?sn.setX(tn[0]):"y"===an&&sn.setY(tn[1]),sn.put(en,nn)}),[0,0])}return en.pdf.restoreGraphicsState(),[2]}))}))},TextNode.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},TextNode.prototype.getBoundingBoxCore=function(en){return defaultBoundingBox(this.element,en)},TextNode.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},TextNode}(TD),GD=function(en){function PathNode(tn,nn){return en.call(this,!0,tn,nn)||this}return __extends(PathNode,en),PathNode.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},PathNode.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},PathNode.prototype.getPath=function(en){var tn,nn,rn=new eD(getAttribute(this.element,en.styleSheets,"d")||"").unshort().unarc().abs(),an=new gD;return rn.iterate((function(en){var rn=en[0];switch(rn){case"M":an.moveTo(en[1],en[2]);break;case"L":an.lineTo(en[1],en[2]);break;case"H":an.lineTo(en[1],nn);break;case"V":an.lineTo(tn,en[1]);break;case"C":an.curveTo(en[1],en[2],en[3],en[4],en[5],en[6]);break;case"Q":var sn=toCubic([tn,nn],[en[1],en[2]]),cn=toCubic([en[3],en[4]],[en[1],en[2]]);an.curveTo(sn[0],sn[1],cn[0],cn[1],en[3],en[4]);break;case"Z":an.close()}switch(rn){case"M":case"L":tn=en[1],nn=en[2];break;case"H":tn=en[1];break;case"V":nn=en[1];break;case"C":tn=en[5],nn=en[6];break;case"Q":tn=en[3],nn=en[4]}})),an},PathNode}(ND),VD=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*\s*)$/i,zD=function(en){function ImageNode(tn,nn){var rn=en.call(this,tn,nn)||this;return rn.imageLoadingPromise=null,rn.imageUrl=rn.element.getAttribute("xlink:href")||rn.element.getAttribute("href"),rn.imageUrl&&(rn.imageLoadingPromise=ImageNode.fetchImageData(rn.imageUrl)),rn}return __extends(ImageNode,en),ImageNode.prototype.renderCore=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,un,dn,pn,hn,gn,An;return __generator(this,(function(mn){switch(mn.label){case 0:return this.imageLoadingPromise?(en.pdf.setCurrentTransformationMatrix(en.transform),tn=parseFloat(getAttribute(this.element,en.styleSheets,"width")||"0"),nn=parseFloat(getAttribute(this.element,en.styleSheets,"height")||"0"),rn=parseFloat(getAttribute(this.element,en.styleSheets,"x")||"0"),an=parseFloat(getAttribute(this.element,en.styleSheets,"y")||"0"),!isFinite(tn)||tn<=0||!isFinite(nn)||nn<=0?[2]:[4,this.imageLoadingPromise]):[2];case 1:return sn=mn.sent(),cn=sn.data,0!==(un=sn.format).indexOf("svg")?[3,3]:(dn=new DOMParser,pn=dn.parseFromString(cn,"image/svg+xml").firstElementChild,(!(hn=this.element.getAttribute("preserveAspectRatio"))||hn.indexOf("defer")<0||!pn.getAttribute("preserveAspectRatio"))&&pn.setAttribute("preserveAspectRatio",hn||""),pn.setAttribute("x",String(rn)),pn.setAttribute("y",String(an)),pn.setAttribute("width",String(tn)),pn.setAttribute("height",String(nn)),[4,parse$1(pn,gn={}).render(new dD(en.pdf,{refsHandler:new pD(gn),styleSheets:en.styleSheets,viewport:new UD(tn,nn),svg2pdfParameters:en.svg2pdfParameters}))]);case 2:return mn.sent(),[2];case 3:An="data:image/"+un+";base64,"+btoa(cn);try{en.pdf.addImage(An,"",rn,an,tn,nn)}catch(en){"object"===("undefined"==typeof console?"undefined":_typeof(console))&&console.warn&&console.warn("Could not load image "+this.imageUrl+".\n"+en)}mn.label=4;case 4:return[2]}}))}))},ImageNode.prototype.getBoundingBoxCore=function(en){return defaultBoundingBox(this.element,en)},ImageNode.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},ImageNode.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},ImageNode.fetchImageData=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn;return __generator(this,(function(cn){switch(cn.label){case 0:if(!(rn=en.match(VD)))return[3,1];if(an=rn[2],"image"!==(sn=an.split("/"))[0])throw new Error("Unsupported image URL: "+en);return nn=sn[1],tn=rn[5],tn="base64"===rn[4]?atob(tn):decodeURIComponent(tn),[3,3];case 1:return[4,ImageNode.fetchImage(en)];case 2:tn=cn.sent(),nn=en.substring(en.lastIndexOf(".")+1),cn.label=3;case 3:return[2,{data:tn,format:nn}]}}))}))},ImageNode.fetchImage=function(en){return new Promise((function(tn,nn){var rn=new XMLHttpRequest;rn.open("GET",en,!0),rn.responseType="arraybuffer",rn.onload=function(){if(200!==rn.status)throw new Error("Error "+rn.status+": Failed to load image '"+en+"'");for(var nn=new Uint8Array(rn.response),an="",sn=0;sn<nn.length;sn++)an+=String.fromCharCode(nn[sn]);tn(an)},rn.onerror=nn,rn.onabort=nn,rn.send(null)}))},ImageNode.getMimeType=function(en){switch(en=en.toLowerCase()){case"jpg":case"jpeg":return"image/jpeg";default:return"image/"+en}},ImageNode}(TD),KD=function(en){function Traverse(tn,nn,rn){var an=en.call(this,!0,nn,rn)||this;return an.closed=tn,an}return __extends(Traverse,en),Traverse.prototype.getPath=function(en){if(!this.element.hasAttribute("points")||""===this.element.getAttribute("points"))return null;var tn=Traverse.parsePointsString(this.element.getAttribute("points")),nn=new gD;if(tn.length<1)return nn;nn.moveTo(tn[0][0],tn[0][1]);for(var rn=1;rn<tn.length;rn++)nn.lineTo(tn[rn][0],tn[rn][1]);return this.closed&&nn.close(),nn},Traverse.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},Traverse.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Traverse.parsePointsString=function(en){for(var tn=parseFloats(en),nn=[],rn=0;rn<tn.length-1;rn+=2){var an=tn[rn],sn=tn[rn+1];nn.push([an,sn])}return nn},Traverse}(ND),qD=function(en){function Polygon(tn,nn){return en.call(this,!0,tn,nn)||this}return __extends(Polygon,en),Polygon}(KD),$D=function(en){function VoidNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(VoidNode,en),VoidNode.prototype.render=function(en){return Promise.resolve()},VoidNode.prototype.getBoundingBoxCore=function(en){return[0,0,0,0]},VoidNode.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},VoidNode.prototype.isVisible=function(en,tn){return svgNodeIsVisible(this,en,tn)},VoidNode}(wD),WD=function(en){function MarkerNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(MarkerNode,en),MarkerNode.prototype.apply=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an;return __generator(this,(function(sn){switch(sn.label){case 0:tn=this.computeNodeTransform(en),nn=this.getBoundingBox(en),en.pdf.beginFormObject(nn[0],nn[1],nn[2],nn[3],tn),rn=0,an=this.children,sn.label=1;case 1:return rn<an.length?[4,an[rn].render(new dD(en.pdf,{refsHandler:en.refsHandler,styleSheets:en.styleSheets,viewport:en.viewport,svg2pdfParameters:en.svg2pdfParameters}))]:[3,4];case 2:sn.sent(),sn.label=3;case 3:return rn++,[3,1];case 4:return en.pdf.endFormObject(this.element.getAttribute("id")),[2]}}))}))},MarkerNode.prototype.getBoundingBoxCore=function(en){var tn,nn=this.element.getAttribute("viewBox");return nn&&(tn=parseFloats(nn)),[tn&&tn[0]||0,tn&&tn[1]||0,tn&&tn[2]||parseFloat(this.element.getAttribute("marker-width")||"0"),tn&&tn[3]||parseFloat(this.element.getAttribute("marker-height")||"0")]},MarkerNode.prototype.computeNodeTransformCore=function(en){var tn,nn=parseFloat(this.element.getAttribute("refX")||"0"),rn=parseFloat(this.element.getAttribute("refY")||"0"),an=this.element.getAttribute("viewBox");if(an){var sn=parseFloats(an);tn=computeViewBoxTransform(this.element,sn,0,0,parseFloat(this.element.getAttribute("markerWidth")||"3"),parseFloat(this.element.getAttribute("markerHeight")||"3"),en,!0),tn=en.pdf.matrixMult(en.pdf.Matrix(1,0,0,1,-nn,-rn),tn)}else tn=en.pdf.Matrix(1,0,0,1,-nn,-rn);return tn},MarkerNode.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},MarkerNode}(xD),XD=function(en){function Circle(tn,nn){return en.call(this,tn,nn)||this}return __extends(Circle,en),Circle.prototype.getR=function(en){var tn;return null!==(tn=this.r)&&void 0!==tn?tn:this.r=parseFloat(getAttribute(this.element,en.styleSheets,"r")||"0")},Circle.prototype.getRx=function(en){return this.getR(en)},Circle.prototype.getRy=function(en){return this.getR(en)},Circle}(DD),YD=function(en){function Polyline(tn,nn){return en.call(this,!1,tn,nn)||this}return __extends(Polyline,en),Polyline}(KD),JD=function(en){function ContainerNode(){return null!==en&&en.apply(this,arguments)||this}return __extends(ContainerNode,en),ContainerNode.prototype.renderCore=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn;return __generator(this,(function(rn){switch(rn.label){case 0:tn=0,nn=this.children,rn.label=1;case 1:return tn<nn.length?[4,nn[tn].render(en)]:[3,4];case 2:rn.sent(),rn.label=3;case 3:return tn++,[3,1];case 4:return[2]}}))}))},ContainerNode.prototype.getBoundingBoxCore=function(en){return getBoundingBoxByChildren(en,this)},ContainerNode}(LD),ZD=function(en){function Svg(){return null!==en&&en.apply(this,arguments)||this}return __extends(Svg,en),Svg.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},Svg.prototype.render=function(tn){return __awaiter(this,void 0,void 0,(function(){var nn,rn,an,sn,cn;return __generator(this,(function(un){switch(un.label){case 0:return this.isVisible("hidden"!==tn.attributeState.visibility,tn)?(nn=this.getX(tn),rn=this.getY(tn),an=this.getWidth(tn),sn=this.getHeight(tn),tn.pdf.saveGraphicsState(),cn=tn.transform,this.element.hasAttribute("transform")&&(cn=tn.pdf.matrixMult(parseTransform$1(this.element.getAttribute("transform"),tn),cn)),tn.pdf.setCurrentTransformationMatrix(cn),tn.withinUse||"visible"===getAttribute(this.element,tn.styleSheets,"overflow")||tn.pdf.rect(nn,rn,an,sn).clip().discardPath(),[4,en.prototype.render.call(this,tn.clone({transform:tn.pdf.unitMatrix,viewport:tn.withinUse?tn.viewport:new UD(an,sn)}))]):[2];case 1:return un.sent(),tn.pdf.restoreGraphicsState(),[2]}}))}))},Svg.prototype.computeNodeTransform=function(en){return this.computeNodeTransformCore(en)},Svg.prototype.computeNodeTransformCore=function(en){if(en.withinUse)return en.pdf.unitMatrix;var tn,nn=this.getX(en),rn=this.getY(en),an=this.getViewBox();if(an){var sn=this.getWidth(en),cn=this.getHeight(en);tn=computeViewBoxTransform(this.element,an,nn,rn,sn,cn,en)}else tn=en.pdf.Matrix(1,0,0,1,nn,rn);return tn},Svg.prototype.getWidth=function(en){if(void 0!==this.width)return this.width;var tn,nn,rn=en.svg2pdfParameters;if(this.isOutermostSvg(en))if(null!=rn.width)tn=rn.width;else if(nn=getAttribute(this.element,en.styleSheets,"width"))tn=parseFloat(nn);else{var an=this.getViewBox();if(an&&(null!=rn.height||getAttribute(this.element,en.styleSheets,"height"))){var sn=an[2]/an[3];tn=this.getHeight(en)*sn}else tn=Math.min(300,en.viewport.width,2*en.viewport.height)}else tn=(nn=getAttribute(this.element,en.styleSheets,"width"))?parseFloat(nn):en.viewport.width;return this.width=tn},Svg.prototype.getHeight=function(en){if(void 0!==this.height)return this.height;var tn,nn,rn=en.svg2pdfParameters;if(this.isOutermostSvg(en))if(null!=rn.height)tn=rn.height;else if(nn=getAttribute(this.element,en.styleSheets,"height"))tn=parseFloat(nn);else{var an=this.getViewBox();if(an){var sn=an[2]/an[3];tn=this.getWidth(en)/sn}else tn=Math.min(150,en.viewport.width/2,en.viewport.height)}else tn=(nn=getAttribute(this.element,en.styleSheets,"height"))?parseFloat(nn):en.viewport.height;return this.height=tn},Svg.prototype.getX=function(en){if(void 0!==this.x)return this.x;if(this.isOutermostSvg(en))return this.x=0;var tn=getAttribute(this.element,en.styleSheets,"x");return this.x=tn?parseFloat(tn):0},Svg.prototype.getY=function(en){if(void 0!==this.y)return this.y;if(this.isOutermostSvg(en))return this.y=0;var tn=getAttribute(this.element,en.styleSheets,"y");return this.y=tn?parseFloat(tn):0},Svg.prototype.getViewBox=function(){if(void 0!==this.viewBox)return this.viewBox;var en=this.element.getAttribute("viewBox");return this.viewBox=en?parseFloats(en):void 0},Svg.prototype.isOutermostSvg=function(en){return en.svg2pdfParameters.element===this.element},Svg}(JD),ej=function(en){function Group(){return null!==en&&en.apply(this,arguments)||this}return __extends(Group,en),Group.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},Group.prototype.computeNodeTransformCore=function(en){return en.pdf.unitMatrix},Group}(JD),tj=function(en){function ClipPath(){return null!==en&&en.apply(this,arguments)||this}return __extends(ClipPath,en),ClipPath.prototype.apply=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn;return __generator(this,(function(an){switch(an.label){case 0:if(!this.isVisible(!0,en))return[2];tn=en.pdf.matrixMult(this.computeNodeTransform(en),en.transform),en.pdf.setCurrentTransformationMatrix(tn),nn=0,rn=this.children,an.label=1;case 1:return nn<rn.length?[4,rn[nn].render(new dD(en.pdf,{refsHandler:en.refsHandler,styleSheets:en.styleSheets,viewport:en.viewport,withinClipPath:!0,svg2pdfParameters:en.svg2pdfParameters}))]:[3,4];case 2:an.sent(),an.label=3;case 3:return nn++,[3,1];case 4:return en.pdf.clip().discardPath(),en.pdf.setCurrentTransformationMatrix(tn.inversed()),[2]}}))}))},ClipPath.prototype.getBoundingBoxCore=function(en){return getBoundingBoxByChildren(en,this)},ClipPath.prototype.isVisible=function(en,tn){return svgNodeAndChildrenVisible(this,en,tn)},ClipPath}(xD);function parse$1(en,tn){var nn,rn=[];switch(function forEachChild(en,tn){for(var nn=[],rn=0;rn<en.childNodes.length;rn++){var an=en.childNodes[rn];"#"!==an.nodeName.charAt(0)&&nn.push(an)}for(rn=0;rn<nn.length;rn++)tn(rn,nn[rn])}(en,(function(en,nn){return rn.push(parse$1(nn,tn))})),en.tagName.toLowerCase()){case"a":case"g":nn=new ej(en,rn);break;case"circle":nn=new XD(en,rn);break;case"clippath":nn=new tj(en,rn);break;case"ellipse":nn=new jD(en,rn);break;case"lineargradient":nn=new CD(en,rn);break;case"image":nn=new zD(en,rn);break;case"line":nn=new OD(en,rn);break;case"marker":nn=new WD(en,rn);break;case"path":nn=new GD(en,rn);break;case"pattern":nn=new ED(en,rn);break;case"polygon":nn=new qD(en,rn);break;case"polyline":nn=new YD(en,rn);break;case"radialgradient":nn=new kD(en,rn);break;case"rect":nn=new RD(en,rn);break;case"svg":nn=new ZD(en,rn);break;case"symbol":nn=new FD(en,rn);break;case"text":nn=new HD(en,rn);break;case"use":nn=new MD(en,rn);break;default:nn=new $D(en,rn)}if(null!=tn&&nn.element.hasAttribute("id")){var an=DR(nn.element.id,{isIdentifier:!0});tn[an]=tn[an]||nn}return nn.children.forEach((function(en){return en.setParent(nn)})),nn}var nj=function(){function StyleSheets(en,tn){this.rootSvg=en,this.loadExternalSheets=tn,this.styleSheets=[]}return StyleSheets.prototype.load=function(){return __awaiter(this,void 0,void 0,(function(){var en;return __generator(this,(function(tn){switch(tn.label){case 0:return[4,this.collectStyleSheetTexts()];case 1:return en=tn.sent(),this.parseCssSheets(en),[2]}}))}))},StyleSheets.prototype.collectStyleSheetTexts=function(){return __awaiter(this,void 0,void 0,(function(){var en,tn,nn,rn,an;return __generator(this,(function(sn){switch(sn.label){case 0:if(en=[],this.loadExternalSheets&&this.rootSvg.ownerDocument)for(rn=0;rn<this.rootSvg.ownerDocument.childNodes.length;rn++)"xml-stylesheet"===(tn=this.rootSvg.ownerDocument.childNodes[rn]).nodeName&&"string"==typeof tn.data&&en.push(StyleSheets.loadSheet(tn.data.match(/href=["'].*?["']/)[0].split("=")[1].slice(1,-1)));for(nn=this.rootSvg.querySelectorAll("style,link"),rn=0;rn<nn.length;rn++)nodeIs(an=nn[rn],"style")?en.push(an.textContent):this.loadExternalSheets&&nodeIs(an,"link")&&"stylesheet"===an.getAttribute("rel")&&an.hasAttribute("href")&&en.push(StyleSheets.loadSheet(an.getAttribute("href")));return[4,Promise.all(en)];case 1:return[2,sn.sent().filter((function(en){return null!==en}))]}}))}))},StyleSheets.prototype.parseCssSheets=function(en){for(var tn=document.implementation.createHTMLDocument(""),nn=0,rn=en;nn<rn.length;nn++){var an=rn[nn],sn=tn.createElement("style");sn.textContent=an,tn.body.appendChild(sn);var cn=sn.sheet;if(cn instanceof CSSStyleSheet){for(var un=cn.cssRules.length-1;un>=0;un--){var dn=cn.cssRules[un];dn instanceof CSSStyleRule||cn.deleteRule(un);var pn=dn;if(pn.selectorText.indexOf(",")>=0){cn.deleteRule(un);for(var hn=pn.cssText.substring(pn.selectorText.length),gn=StyleSheets.splitSelectorAtCommas(pn.selectorText),An=0;An<gn.length;An++)cn.insertRule(gn[An]+hn,un+An)}}this.styleSheets.push(cn)}}},StyleSheets.splitSelectorAtCommas=function(en){for(var tn,nn=/,|["']/g,rn=/[^\\]["]/g,an=/[^\\][']/g,sn=[],cn="initial",un=-1,dn=rn,pn=0;pn<en.length;)switch(cn){case"initial":nn.lastIndex=pn,(tn=nn.exec(en))?(","===tn[0]?(sn.push(en.substring(un+1,nn.lastIndex-1).trim()),un=nn.lastIndex-1):(cn="withinQuotes",dn='"'===tn[0]?rn:an),pn=nn.lastIndex):(sn.push(en.substring(un+1).trim()),pn=en.length);break;case"withinQuotes":dn.lastIndex=pn,(tn=dn.exec(en))&&(pn=dn.lastIndex,cn="initial")}return sn},StyleSheets.loadSheet=function(en){return new Promise((function(tn,nn){var rn=new XMLHttpRequest;rn.open("GET",en,!0),rn.responseType="text",rn.onload=function(){200!==rn.status&&nn(new Error("Error "+rn.status+": Failed to load '"+en+"'")),tn(rn.responseText)},rn.onerror=nn,rn.onabort=nn,rn.send(null)})).catch((function(){return null}))},StyleSheets.prototype.getPropertyValue=function(en,tn){for(var nn=[],rn=0,an=this.styleSheets;rn<an.length;rn++)for(var sn=an[rn],cn=0;cn<sn.cssRules.length;cn++){var un=sn.cssRules[cn];un.style.getPropertyValue(tn)&&en.matches(un.selectorText)&&nn.push(un)}if(0!==nn.length){var dn=function compare$1(en,nn){var rn=en.style.getPropertyPriority(tn);return rn!==nn.style.getPropertyPriority(tn)?"important"===rn?1:-1:function compare(en,tn){var nn,rn,an;if("string"==typeof en){if(-1!==en.indexOf(","))throw"Invalid CSS selector";nn=tD(en).specificityArray}else{if(!Array.isArray(en))throw"Invalid CSS selector or specificity array";if(4!==en.filter((function(en){return"number"==typeof en})).length)throw"Invalid specificity array";nn=en}if("string"==typeof tn){if(-1!==tn.indexOf(","))throw"Invalid CSS selector";rn=tD(tn).specificityArray}else{if(!Array.isArray(tn))throw"Invalid CSS selector or specificity array";if(4!==tn.filter((function(en){return"number"==typeof en})).length)throw"Invalid specificity array";rn=tn}for(an=0;an<4;an+=1){if(nn[an]<rn[an])return-1;if(nn[an]>rn[an])return 1}return 0}(en.selectorText,nn.selectorText)};return nn.reduce((function(en,tn){return 1===dn(en,tn)?en:tn})).style.getPropertyValue(tn)||void 0}},StyleSheets}();O$1.API.svg=function(en,tn){return void 0===tn&&(tn={}),function svg2pdf(en,tn,nn){var rn,an,sn;return void 0===nn&&(nn={}),__awaiter(this,void 0,void 0,(function(){var cn,un,dn,pn,hn,gn,An,mn,vn,yn;return __generator(this,(function(_n){switch(_n.label){case 0:return cn=null!==(rn=nn.x)&&void 0!==rn?rn:0,un=null!==(an=nn.y)&&void 0!==an?an:0,dn=null!==(sn=nn.loadExternalStyleSheets)&&void 0!==sn&&sn,hn=new pD(pn={}),[4,(gn=new nj(en,dn)).load()];case 1:return _n.sent(),An=new UD(tn.internal.pageSize.getWidth(),tn.internal.pageSize.getHeight()),mn=rD(rD({},nn),{element:en}),vn=new dD(tn,{refsHandler:hn,styleSheets:gn,viewport:An,svg2pdfParameters:mn}),tn.advancedAPI(),tn.saveGraphicsState(),tn.setCurrentTransformationMatrix(tn.Matrix(1,0,0,1,cn,un)),tn.setLineWidth(vn.attributeState.strokeWidth),yn=vn.attributeState.fill.color,tn.setFillColor(yn.r,yn.g,yn.b),tn.setFont(vn.attributeState.fontFamily),tn.setFontSize(vn.attributeState.fontSize*tn.internal.scaleFactor),[4,parse$1(en,pn).render(vn)];case 2:return _n.sent(),tn.restoreGraphicsState(),tn.compatAPI(),vn.textMeasure.cleanupTextMeasuring(),[2,tn]}}))}))}(en,this,tn)};var rj=SN,ij=CN,oj=kN,aj=BN,sj=jQueryPluginSVG(jQuery),lj=null,uj=function svgCanvasToString(){for(;lj.getCanvas().removeUnusedDefElems()>0;);lj.getCanvas().pathActions.clear(!0),sj.each(lj.getSVGContent().childNodes,(function(en,tn){en&&8===tn.nodeType&&tn.data.includes("Created with")&&lj.getSVGContent().firstChild.before(tn)})),lj.getCurrentGroup()&&(qI(),lj.getCanvas().selectOnly([lj.getCurrentGroup()]));var en=[];sj(lj.getSVGContent()).find("g:data(gsvg)").each((function(){for(var tn=this.attributes,nn=tn.length,rn=0;rn<nn;rn++)"id"!==tn[rn].nodeName&&"style"!==tn[rn].nodeName||nn--;if(nn<=0){var an=this.firstChild;en.push(an),sj(this).replaceWith(an)}}));var tn=this.svgToString(lj.getSVGContent(),0);return en.length&&sj(en).each((function(){lj.getCanvas().groupSvgElem(this)})),tn},dj=function svgToString(en,tn){var nn=lj.getCurConfig(),rn=lj.getNsMap(),an=[],sn=nn.baseUnit,cn=new RegExp("^-?[\\d\\.]+"+sn+"$");if(en){mN(en);var un=_toConsumableArray(en.attributes),dn=en.childNodes;un.sort((function(en,tn){return en.name>tn.name?-1:1}));for(var pn=0;pn<tn;pn++)an.push(" ");if(an.push("<"),an.push(en.nodeName),"svgcontent"===en.id){var hn=lj.getCanvas().getResolution();"px"!==sn&&(hn.w=eA(hn.w,sn)+sn,hn.h=eA(hn.h,sn)+sn),an.push(' width="'+hn.w+'" height="'+hn.h+'" xmlns="'+Kf.SVG+'"');var gn={};sj(en).find("*").andSelf().each((function(){var en=this.namespaceURI;en&&!gn[en]&&rn[en]&&"xmlns"!==rn[en]&&"xml"!==rn[en]&&(gn[en]=!0,an.push(" xmlns:"+rn[en]+'="'+en+'"')),sj.each(this.attributes,(function(en,tn){var nn=tn.namespaceURI;nn&&!gn[nn]&&"xmlns"!==rn[nn]&&"xml"!==rn[nn]&&(gn[nn]=!0,an.push(" xmlns:"+rn[nn]+'="'+nn+'"'))}))}));for(var An=un.length,mn=["width","height","xmlns","x","y","viewBox","id","overflow"];An--;){var vn=un[An],yn=zT(vn.value);vn.nodeName.startsWith("xmlns:")||(""===yn||mn.includes(vn.localName)||vn.namespaceURI&&!rn[vn.namespaceURI]||(an.push(" "),an.push(vn.nodeName),an.push('="'),an.push(yn),an.push('"')))}}else{if("defs"===en.nodeName&&!en.firstChild)return"";for(var _n=["-moz-math-font-style","_moz-math-font-style"],wn=un.length-1;wn>=0;wn--){var xn=un[wn],Sn=zT(xn.value);if(!_n.includes(xn.localName)){if("null"===Sn){var Cn=xn.localName.replace(/-[a-z]/g,(function(en){return en[1].toUpperCase()}));if(Object.prototype.hasOwnProperty.call(en.style,Cn))continue}if(""!==Sn){if(Sn.startsWith("pointer-events"))continue;if("class"===xn.localName&&Sn.startsWith("se_"))continue;if(an.push(" "),"d"===xn.localName&&(Sn=lj.getCanvas().pathActions.convertPath(en,!0)),isNaN(Sn)?cn.test(Sn)&&(Sn=Zf(Sn)+sn):Sn=Zf(Sn),lj.getSvgOptionApply()&&"image"===en.nodeName&&"href"===xn.localName&&lj.getSvgOptionImages()&&"embed"===lj.getSvgOptionImages()){var kn=lj.getEncodableImages(Sn);kn&&(Sn=kn)}xn.namespaceURI&&xn.namespaceURI!==Kf.SVG&&!rn[xn.namespaceURI]||(an.push(xn.nodeName),an.push('="'),an.push(Sn),an.push('"'))}}}}if(en.hasChildNodes()){an.push(">"),tn++;for(var Bn=!1,En=0;En<dn.length;En++){var Pn=dn.item(En);switch(Pn.nodeType){case 1:an.push("\n"),an.push(this.svgToString(Pn,tn));break;case 3:var Ln=Pn.nodeValue.replace(/^\s+|\s+$/g,"");""!==Ln&&(Bn=!0,an.push(String(zT(Ln))));break;case 4:an.push("\n"),an.push(new Array(tn+1).join(" ")),an.push("<![CDATA["),an.push(Pn.nodeValue),an.push("]]>");break;case 8:an.push("\n"),an.push(new Array(tn+1).join(" ")),an.push("\x3c!--"),an.push(Pn.data),an.push("--\x3e")}}if(tn--,!Bn){an.push("\n");for(var Tn=0;Tn<tn;Tn++)an.push(" ")}an.push("</"),an.push(en.nodeName),an.push(">")}else an.push("/>")}return an.join("")},pj=function setSvgString(en,tn){var nn=lj.getCurConfig();try{var rn=XT(en);if(rn.firstElementChild&&rn.firstElementChild.namespaceURI!==Kf.SVG)return!1;this.prepareSvg(rn);var an=new aj("Change Source"),sn=lj.getSVGContent().nextSibling;lj.getSVGContent().remove();var cn=lj.getSVGContent();an.addSubCommand(new ij(cn,sn,lj.getSVGRoot())),lj.getDOMDocument().adoptNode?lj.setSVGContent(lj.getDOMDocument().adoptNode(rn.documentElement)):lj.setSVGContent(lj.getDOMDocument().importNode(rn.documentElement,!0)),lj.getSVGRoot().append(lj.getSVGContent());var un=sj(lj.getSVGContent());lj.getCanvas().current_drawing_=new OI(lj.getSVGContent(),lj.getIdPrefix());var dn=lj.getCanvas().getCurrentDrawing().getNonce();dn?lj.call("setnonce",dn):lj.call("unsetnonce"),un.find("image").each((function(){var en=this;yN(en);var tn=lj.getCanvas().getHref(this);if(tn){if(tn.startsWith("data:")){var nn=tn.match(/svgedit_url=(.*?);/);if(nn){var rn=decodeURIComponent(nn[1]);sj(new Image).load((function(){en.setAttributeNS(Kf.XLINK,"xlink:href",rn)})).attr("src",rn)}}lj.getCanvas().embedImage(tn)}})),un.find("svg").each((function(){if(!sj(this).closest("defs").length){lj.getCanvas().uniquifyElems(this);var en=this.parentNode;1===en.childNodes.length&&"g"===en.nodeName?(sj(en).data("gsvg",this),en.id=en.id||lj.getCanvas().getNextId()):lj.getCanvas().groupSvgElem(this)}})),QA()&&un.find("linearGradient, radialGradient, pattern").appendTo(tN()),lj.getCanvas().setUseData(un),lj.getCanvas().convertGradients(un[0]);var pn={id:"svgcontent",overflow:nn.show_outside_canvas?"visible":"hidden"},hn=!1;if(un.attr("viewBox")){var gn=un.attr("viewBox").split(" ");pn.width=gn[2],pn.height=gn[3]}else sj.each(["width","height"],(function(en,tn){var nn=un.attr(tn)||"100%";"%"===String(nn).substr(-1)?hn=!0:pn[tn]=nA(tn,nn)}));if(UI(),un.children().find(lj.getVisElems()).each((function(){this.id||(this.id=lj.getCanvas().getNextId())})),hn){var An=dN();pn.width=An.width+An.x,pn.height=An.height+An.y}pn.width<=0&&(pn.width=100),pn.height<=0&&(pn.height=100),un.attr(pn),this.contentW=pn.width,this.contentH=pn.height,an.addSubCommand(new rj(lj.getSVGContent()));var mn=un.attr(["width","height"]);an.addSubCommand(new oj(lj.getSVGRoot(),mn)),lj.setCurrentZoom(1),function resetListMap(){tP={}}(),lj.getCanvas().clearSelection(),function clearData(){lI={}}(),lj.getSVGRoot().append(lj.getCanvas().selectorManager.selectorParentGroup),tn||lj.addCommandToHistory(an),lj.call("changed",[lj.getSVGContent()])}catch(en){return console.log(en),!1}return!0},hj=function importSvgString(en){var tn,nn,rn;try{var an=encode64(en.length+en).substr(0,32),sn=!1;lj.getImportIds(an)&&sj(lj.getImportIds(an).symbol).parents("#svgroot").length&&(sn=!0);var cn,un=new aj("Import Image");if(sn){cn=lj.getImportIds().symbol,nn=lj.getImportIds(an).xform}else{var dn=XT(en);this.prepareSvg(dn);var pn=lj.getDOMDocument().adoptNode?lj.getDOMDocument().adoptNode(dn.documentElement):lj.getDOMDocument().importNode(dn.documentElement,!0);lj.getCanvas().uniquifyElems(pn);var hn=nA("width",pn.getAttribute("width")),gn=nA("height",pn.getAttribute("height")),An=pn.getAttribute("viewBox"),mn=An?An.split(" "):[0,0,hn,gn];for(tn=0;tn<4;++tn)mn[tn]=Number(mn[tn]);var vn=Number(lj.getSVGContent().getAttribute("height"));nn="translate(0) "+(nn=gn>hn?"scale("+vn/3/mn[3]+")":"scale("+vn/3/mn[2]+")")+" translate(0)",cn=lj.getDOMDocument().createElementNS(Kf.SVG,"symbol");var yn=tN();for(QA()&&sj(pn).find("linearGradient, radialGradient, pattern").appendTo(yn);pn.firstChild;){var _n=pn.firstChild;cn.append(_n)}var wn,xn=_createForOfIteratorHelper(pn.attributes);try{for(xn.s();!(wn=xn.n()).done;){var Sn=wn.value;cn.setAttribute(Sn.nodeName,Sn.value)}}catch(en){xn.e(en)}finally{xn.f()}cn.id=lj.getCanvas().getNextId(),lj.setImportIds(an,{symbol:cn,xform:nn}),tN().append(cn),un.addSubCommand(new rj(cn))}(rn=lj.getDOMDocument().createElementNS(Kf.SVG,"use")).id=lj.getCanvas().getNextId(),lj.getCanvas().setHref(rn,"#"+cn.id),(lj.getCurrentGroup()||lj.getCanvas().getCurrentDrawing().getCurrentLayer()).append(rn),un.addSubCommand(new rj(rn)),lj.getCanvas().clearSelection(),rn.setAttribute("transform",nn),kF(rn),sj(rn).data("symbol",cn).data("ref",cn),lj.getCanvas().addToSelection([rn]),lj.addCommandToHistory(un),lj.call("changed",[lj.getSVGContent()])}catch(en){return console.log(en),null}return rn},gj=function embedImage(en){return new Promise((function(tn,nn){sj(new Image).load((function(rn,an,sn){if("error"!==an){var cn=document.createElement("canvas");cn.width=this.width,cn.height=this.height,cn.getContext("2d").drawImage(this,0,0);try{var un=";svgedit_url="+encodeURIComponent(en);un=cn.toDataURL().replace(";base64",un+";base64"),lj.setEncodableImages(en,un)}catch(tn){lj.setEncodableImages(en,!1)}lj.getCanvas().setGoodImage(en),tn(lj.getEncodableImages(en))}else nn(new Error("Error loading image: "+sn.status+" "+sn.statusText))})).attr("src",en)}))},fj=function save(en){lj.getCanvas().clearSelection(),en&&sj.extend(lj.getSvgOption(),en),lj.setSvgOption("apply",!0);var tn=lj.getCanvas().svgCanvasToString();lj.call("saved",tn)};function getIssues(){var en=lj.getUIStrings();lj.getCanvas().clearSelection();var tn=[],nn=[],rn={feGaussianBlur:en.exportNoBlur,foreignObject:en.exportNoforeignObject,"[stroke-dasharray]":en.exportNoDashArray},an=sj(lj.getSVGContent());return"font"in sj("<canvas>")[0].getContext("2d")||(rn.text=en.exportNoText),sj.each(rn,(function(en,rn){an.find(en).length&&(nn.push(en),tn.push(rn))})),{issues:tn,issueCodes:nn}}var Aj,mj,vj,yj=function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en,tn,nn){var rn,an,sn,cn,un,dn,pn,hn,gn,An,mn,vn=arguments;return regeneratorRuntime.wrap((function _callee$(yn){for(;;)switch(yn.prev=yn.next){case 0:return rn=vn.length>3&&void 0!==vn[3]?vn[3]:{},sn="image/"+(an="ICO"===en?"BMP":en||"PNG").toLowerCase(),cn=getIssues(),un=cn.issues,dn=cn.issueCodes,pn=this.svgCanvasToString(),sj("#export_canvas").length||sj("<canvas>",{id:"export_canvas"}).hide().appendTo("body"),(hn=sj("#export_canvas")[0]).width=lj.getCanvas().contentW,hn.height=lj.getCanvas().contentH,gn=lj.getcanvg(),An=hn.getContext("2d"),mn=gn.fromString(An,pn),yn.next=14,mn.render();case 14:return yn.abrupt("return",new Promise((function(cn,gn){var An,mn=an.toLowerCase(),vn=tn?hn.toDataURL("image/"+mn,tn):hn.toDataURL("image/"+mn);function done(){var an={datauri:vn,bloburl:An,svg:pn,issues:un,issueCodes:dn,type:en,mimeType:sn,quality:tn,exportWindowName:nn};rn.avoidEvent||lj.call("exported",an),cn(an)}hn.toBlob?hn.toBlob((function(en){An=$T(en),done()}),sn,tn):(An=qT(vn),done())})));case 15:case"end":return yn.stop()}}),_callee,this)})));return function rasterExport(tn,nn,rn){return en.apply(this,arguments)}}(),_j=function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(en){var tn,nn,rn,an,sn,cn,un,dn,pn,hn=arguments;return regeneratorRuntime.wrap((function _callee2$(gn){for(;;)switch(gn.prev=gn.next){case 0:return tn=hn.length>1&&void 0!==hn[1]?hn[1]:HA()?"save":void 0,nn=lj.getCanvas().getResolution(),rn=nn.w>nn.h?"landscape":"portrait",an=O$1({orientation:rn,unit:"pt",format:[nn.w,nn.h]}),sn=lj.getCanvas().getDocumentTitle(),an.setProperties({title:sn}),cn=getIssues(),un=cn.issues,dn=cn.issueCodes,gn.next=10,an.svg(lj.getSVGContent(),{x:0,y:0,width:nn.w,height:nn.h});case 10:return(pn={issues:un,issueCodes:dn,exportWindowName:en,outputType:tn=tn||"dataurlstring"}).output=an.output(tn,"save"===tn?en||"svg.pdf":void 0),lj.call("exportedPDF",pn),gn.abrupt("return",pn);case 15:case"end":return gn.stop()}}),_callee2)})));return function exportPDF(tn){return en.apply(this,arguments)}}(),wj=function uniquifyElemsMethod(en){var tn={},nn=["filter","linearGradient","pattern","radialGradient","symbol","textPath","use"];for(var rn in YT(en,(function(en){if(1===en.nodeType){en.id&&(en.id in tn||(tn[en.id]={elem:null,attrs:[],hrefs:[]}),tn[en.id].elem=en),sj.each(lj.getrefAttrs(),(function(nn,rn){var an=en.getAttributeNode(rn);if(an){var sn=lj.getCanvas().getUrlFromAttr(an.value),cn=sn?sn.substr(1):null;cn&&(cn in tn||(tn[cn]={elem:null,attrs:[],hrefs:[]}),tn[cn].attrs.push(an))}}));var rn=lj.getCanvas().getHref(en);if(rn&&nn.includes(en.nodeName)){var an=rn.substr(1);an&&(an in tn||(tn[an]={elem:null,attrs:[],hrefs:[]}),tn[an].hrefs.push(en))}}})),tn)if(rn){var an=tn[rn].elem;if(an){var sn=lj.getCanvas().getNextId();an.id=sn;for(var cn=tn[rn].attrs,un=cn.length;un--;){var dn=cn[un];dn.ownerElement.setAttribute(dn.name,"url(#"+sn+")")}for(var pn=tn[rn].hrefs,hn=pn.length;hn--;){var gn=pn[hn];lj.getCanvas().setHref(gn,"#"+sn)}}}},xj=function setUseDataMethod(en){var tn=sj(en);"use"!==en.tagName&&(tn=tn.find("use")),tn.each((function(){var en=lj.getCanvas().getHref(this).substr(1),tn=lj.getCanvas().getElem(en);tn&&(sj(this).data("ref",tn),"symbol"!==tn.tagName&&"svg"!==tn.tagName||sj(this).data("symbol",tn).data("ref",tn))}))},Sj=function removeUnusedDefElemsMethod(){var en=lj.getSVGContent().getElementsByTagNameNS(Kf.SVG,"defs");if(!en||!en.length)return 0;var tn,nn,rn=[],an=0,sn=["fill","stroke","filter","marker-start","marker-mid","marker-end"],cn=sn.length,un=lj.getSVGContent().getElementsByTagNameNS(Kf.SVG,"*"),dn=un.length;for(tn=0;tn<dn;tn++){var pn=un[tn];for(nn=0;nn<cn;nn++){var hn=lj.getCanvas().getUrlFromAttr(pn.getAttribute(sn[nn]));hn&&rn.push(hn.substr(1))}var gn=ZT(pn);gn&&gn.startsWith("#")&&rn.push(gn.substr(1))}var An=sj(en).find("linearGradient, radialGradient, filter, marker, svg, symbol");for(tn=An.length;tn--;){var mn=An[tn],vn=mn.id;rn.includes(vn)||(lj.setRemovedElements(vn,mn),mn.remove(),an++)}return an},Cj=function convertGradientsMethod(en){var tn=sj(en).find("linearGradient, radialGradient");!tn.length&&jA()&&(tn=sj(en).find("*").filter((function(){return this.tagName.includes("Gradient")}))),tn.each((function(){var en=this;if("userSpaceOnUse"===sj(en).attr("gradientUnits")){var tn=lj.getSVGContent(),nn=sj(tn).find('[fill="url(#'+en.id+')"],[stroke="url(#'+en.id+')"]');if(!nn.length)return;var rn=rN(nn[0]);if(!rn)return;if("linearGradient"===en.tagName){var an=sj(en).attr(["x1","y1","x2","y2"]),sn=en.gradientTransform.baseVal;if(sn&&sn.numberOfItems>0){var cn=fP(sn).matrix,un=uP(an.x1,an.y1,cn),dn=uP(an.x2,an.y2,cn);an.x1=un.x,an.y1=un.y,an.x2=dn.x,an.y2=dn.y,en.removeAttribute("gradientTransform")}sj(en).attr({x1:(an.x1-rn.x)/rn.width,y1:(an.y1-rn.y)/rn.height,x2:(an.x2-rn.x)/rn.width,y2:(an.y2-rn.y)/rn.height}),en.removeAttribute("gradientUnits")}}}))},kj=jQuery,Bj=GA()?10:4,Ej=function(){function Selector(en,tn,nn){_classCallCheck(this,Selector),this.id=en,this.selectedElement=tn,this.locked=!0,this.selectorGroup=Aj.createSVGElement({element:"g",attr:{id:"selectorGroup"+this.id}}),this.selectorRect=Aj.createSVGElement({element:"path",attr:{id:"selectedBox"+this.id,fill:"none",stroke:"#22C","stroke-width":"1","stroke-dasharray":"5,5",style:"pointer-events:none"}}),this.selectorGroup.append(this.selectorRect),this.gripCoords={nw:null,n:null,ne:null,e:null,se:null,s:null,sw:null,w:null},this.reset(this.selectedElement,nn)}return _createClass(Selector,[{key:"reset",value:function reset(en,tn){this.locked=!0,this.selectedElement=en,this.resize(tn),this.selectorGroup.setAttribute("display","inline")}},{key:"showGrips",value:function showGrips(en){var tn=en?"inline":"none";vj.selectorGripsGroup.setAttribute("display",tn);var nn=this.selectedElement;this.hasGrips=en,nn&&en&&(this.selectorGroup.append(vj.selectorGripsGroup),Selector.updateGripCursors(hN(nn)))}},{key:"resize",value:function resize(en){var tn=this.selectorRect,nn=vj,rn=nn.selectorGrips,an=this.selectedElement,sn=an.getAttribute("stroke-width"),cn=Aj.getCurrentZoom(),un=1/cn;"none"===an.getAttribute("stroke")||isNaN(sn)||(un+=sn/2);var dn=an.tagName;"text"===dn&&(un+=2/cn);var pn=iP(an),hn=fP(pn).matrix;if(hn.e*=cn,hn.f*=cn,en||(en=rN(an)),"g"===dn&&!kj.data(an,"gsvg")){var gn=cN([an.childNodes]);gn&&(en=gn)}var An=en.x,mn=en.y,vn=en.width,yn=en.height;un*=cn;var _n=gP(An*cn,mn*cn,vn*cn,yn*cn,hn),wn=_n.aabox,xn=wn.x-un,Sn=wn.y-un,Cn=wn.width+2*un,kn=wn.height+2*un,Bn=xn+Cn/2,En=Sn+kn/2,Pn=hN(an);if(Pn){var Ln=Aj.svgRoot().createSVGTransform();Ln.setRotate(-Pn,Bn,En);var Tn=Ln.matrix;_n.tl=uP(_n.tl.x,_n.tl.y,Tn),_n.tr=uP(_n.tr.x,_n.tr.y,Tn),_n.bl=uP(_n.bl.x,_n.bl.y,Tn),_n.br=uP(_n.br.x,_n.br.y,Tn);var Nn=_n.tl,In=Nn.x,On=Nn.y,Fn=Nn.x,Un=Nn.y,Mn=Math.min,Rn=Math.max;xn=In=Mn(In,Mn(_n.tr.x,Mn(_n.bl.x,_n.br.x)))-un,Sn=On=Mn(On,Mn(_n.tr.y,Mn(_n.bl.y,_n.br.y)))-un,Cn=(Fn=Rn(Fn,Rn(_n.tr.x,Rn(_n.bl.x,_n.br.x)))+un)-In,kn=(Un=Rn(Un,Rn(_n.tr.y,Rn(_n.bl.y,_n.br.y)))+un)-On}var Dn="M"+xn+","+Sn+" L"+(xn+Cn)+","+Sn+" "+(xn+Cn)+","+(Sn+kn)+" "+xn+","+(Sn+kn)+"z";tn.setAttribute("d",Dn);var jn=Pn?"rotate("+[Pn,Bn,En].join(",")+")":"";this.selectorGroup.setAttribute("transform",jn),this.gripCoords={nw:[xn,Sn],ne:[xn+Cn,Sn],sw:[xn,Sn+kn],se:[xn+Cn,Sn+kn],n:[xn+Cn/2,Sn],w:[xn,Sn+kn/2],e:[xn+Cn,Sn+kn/2],s:[xn+Cn/2,Sn+kn]},Object.entries(this.gripCoords).forEach((function(en){var tn=_slicedToArray(en,2),nn=tn[0],an=tn[1];rn[nn].setAttribute("cx",an[0]),rn[nn].setAttribute("cy",an[1])})),nn.rotateGripConnector.setAttribute("x1",xn+Cn/2),nn.rotateGripConnector.setAttribute("y1",Sn),nn.rotateGripConnector.setAttribute("x2",xn+Cn/2),nn.rotateGripConnector.setAttribute("y2",Sn-5*Bj),nn.rotateGrip.setAttribute("cx",xn+Cn/2),nn.rotateGrip.setAttribute("cy",Sn-5*Bj)}}],[{key:"updateGripCursors",value:function updateGripCursors(en){var tn=Object.keys(vj.selectorGrips),nn=Math.round(en/45);for(nn<0&&(nn+=8);nn>0;)tn.push(tn.shift()),nn--;Object.values(vj.selectorGrips).forEach((function(en,nn){en.setAttribute("style","cursor:"+tn[nn]+"-resize")}))}}]),Selector}(),Pj=function(){function SelectorManager(){_classCallCheck(this,SelectorManager),this.selectorParentGroup=null,this.rubberBandBox=null,this.selectors=[],this.selectorMap={},this.selectorGrips={nw:null,n:null,ne:null,e:null,se:null,s:null,sw:null,w:null},this.selectorGripsGroup=null,this.rotateGripConnector=null,this.rotateGrip=null,this.initGroup()}return _createClass(SelectorManager,[{key:"initGroup",value:function initGroup(){var en=this;if(this.selectorParentGroup&&this.selectorParentGroup.parentNode&&this.selectorParentGroup.remove(),this.selectorParentGroup=Aj.createSVGElement({element:"g",attr:{id:"selectorParentGroup"}}),this.selectorGripsGroup=Aj.createSVGElement({element:"g",attr:{display:"none"}}),this.selectorParentGroup.append(this.selectorGripsGroup),Aj.svgRoot().append(this.selectorParentGroup),this.selectorMap={},this.selectors=[],this.rubberBandBox=null,Object.keys(this.selectorGrips).forEach((function(tn){var nn=Aj.createSVGElement({element:"circle",attr:{id:"selectorGrip_resize_"+tn,fill:"#22C",r:Bj,style:"cursor:"+tn+"-resize","stroke-width":2,"pointer-events":"all"}});kj.data(nn,"dir",tn),kj.data(nn,"type","resize"),en.selectorGrips[tn]=nn,en.selectorGripsGroup.append(nn)})),this.rotateGripConnector=Aj.createSVGElement({element:"line",attr:{id:"selectorGrip_rotateconnector",stroke:"#22C","stroke-width":"1"}}),this.selectorGripsGroup.append(this.rotateGripConnector),this.rotateGrip=Aj.createSVGElement({element:"circle",attr:{id:"selectorGrip_rotate",fill:"lime",r:Bj,stroke:"#22C","stroke-width":2,style:"cursor:url("+mj.imgPath+"rotate.svg) 12 12, auto;"}}),this.selectorGripsGroup.append(this.rotateGrip),kj.data(this.rotateGrip,"type","rotate"),!kj("#canvasBackground").length){var tn=_slicedToArray(mj.dimensions,2),nn=tn[0],rn=tn[1],an=Aj.createSVGElement({element:"svg",attr:{id:"canvasBackground",width:nn,height:rn,x:0,y:0,overflow:jA()?"none":"visible",style:"pointer-events:none"}}),sn=Aj.createSVGElement({element:"rect",attr:{width:"100%",height:"100%",x:0,y:0,"stroke-width":1,stroke:"#000",fill:"#FFF",style:"pointer-events:none"}});an.append(sn),Aj.svgRoot().insertBefore(an,Aj.svgContent())}}},{key:"requestSelector",value:function requestSelector(en,tn){if(_N(en))return null;var nn=this.selectors.length;if("object"===_typeof(this.selectorMap[en.id]))return this.selectorMap[en.id].locked=!0,this.selectorMap[en.id];for(var rn=0;rn<nn;++rn)if(this.selectors[rn]&&!this.selectors[rn].locked)return this.selectors[rn].locked=!0,this.selectors[rn].reset(en,tn),this.selectorMap[en.id]=this.selectors[rn],this.selectors[rn];return this.selectors[nn]=new Ej(nn,en,tn),this.selectorParentGroup.append(this.selectors[nn].selectorGroup),this.selectorMap[en.id]=this.selectors[nn],this.selectors[nn]}},{key:"releaseSelector",value:function releaseSelector(en){if(!_N(en)){var tn=this.selectors.length,nn=this.selectorMap[en.id];nn&&!nn.locked&&console.log("WARNING! selector was released but was already unlocked");for(var rn=0;rn<tn;++rn)if(this.selectors[rn]&&this.selectors[rn]===nn){delete this.selectorMap[en.id],nn.locked=!1,nn.selectedElement=null,nn.showGrips(!1);try{nn.selectorGroup.setAttribute("display","none")}catch(en){}break}}}},{key:"getRubberBandBox",value:function getRubberBandBox(){return this.rubberBandBox||(this.rubberBandBox=Aj.createSVGElement({element:"rect",attr:{id:"selectorRubberBand",fill:"#22C","fill-opacity":.15,stroke:"#22C","stroke-width":.5,display:"none",style:"pointer-events:none"}}),this.selectorParentGroup.append(this.rubberBandBox)),this.rubberBandBox}}]),SelectorManager}(),Lj=jQueryPluginSVG(jQuery),Tj=null,Nj=function clearSvgContentElementInit(){var en=Tj.getCurConfig(),tn=en.dimensions;Lj(Tj.getSVGContent()).empty(),Lj(Tj.getSVGContent()).attr({id:"svgcontent",width:tn[0],height:tn[1],x:tn[0],y:tn[1],overflow:en.show_outside_canvas?"visible":"hidden",xmlns:Kf.SVG,"xmlns:se":Kf.SE,"xmlns:xlink":Kf.XLINK}).appendTo(Tj.getSVGRoot());var nn=Tj.getDOMDocument().createComment(" Created with SVG-edit - https://github.com/SVG-Edit/svgedit");Tj.getSVGContent().append(nn)},Ij=jQueryPluginSVG(jQuery),Oj=xN,Fj=SN,Uj=CN,Mj=kN,Rj=BN,Dj="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use",jj=["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"];window.console||(window.console={},window.console.log=function(en){},window.console.dir=function(en){}),window.opera&&(window.console.log=function(en){window.opera.postError(en)},window.console.dir=function(en){});var Qj=function SvgCanvas(en,tn){_classCallCheck(this,SvgCanvas);var nn={show_outside_canvas:!0,selectNew:!0,dimensions:[640,480]};tn&&Ij.extend(nn,tn);var rn=nn.dimensions,an=this;this.isLayer=wI.isLayer;var sn=window.document,cn=function svgRootElement(en,tn){return en.importNode(XT('<svg id="svgroot" xmlns="'.concat(Kf.SVG,'" xlinkns="').concat(Kf.XLINK,'" width="').concat(tn[0],'" \n height="').concat(tn[1],'" x="').concat(tn[0],'" y="').concat(tn[1],'" overflow="visible">\n <defs>\n <filter id="canvashadow" filterUnits="objectBoundingBox">\n <feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"/>\n <feOffset in="blur" dx="5" dy="5" result="offsetBlur"/>\n <feMerge>\n <feMergeNode in="offsetBlur"/>\n <feMergeNode in="SourceGraphic"/>\n </feMerge>\n </filter>\n </defs>\n </svg>')).documentElement,!0)}(sn,rn),un=function getSVGRoot(){return cn};en.append(cn);var dn=sn.createElementNS(Kf.SVG,"svg"),pn=function getSVGContent(){return dn};!function init(en){Tj=en}({getSVGContent:pn,getDOMDocument:function getDOMDocument(){return sn},getDOMContainer:function getDOMContainer(){return en},getSVGRoot:un,getCurConfig:function getCurConfig(){return nn}}),(an.clearSvgContentElement=Nj)();var hn="svg_";an.setIdPrefix=function(en){hn=en},an.current_drawing_=new OI(dn,hn);var gn=an.getCurrentDrawing=function(){return an.current_drawing_},An=1,mn=null,vn={shape:{fill:("none"===nn.initFill.color?"":"#")+nn.initFill.color,fill_paint:null,fill_opacity:nn.initFill.opacity,stroke:"#"+nn.initStroke.color,stroke_paint:null,stroke_opacity:nn.initStroke.opacity,stroke_width:nn.initStroke.width,stroke_dasharray:"none",stroke_linejoin:"miter",stroke_linecap:"butt",opacity:nn.initOpacity}};vn.text=Ij.extend(!0,{},vn.shape),Ij.extend(vn.text,{fill:"#000000",stroke_width:nn.text&&nn.text.stroke_width,font_size:nn.text&&nn.text.font_size,font_family:nn.text&&nn.text.font_family});var yn=vn.shape,_n=[];!function init(en){LO=en,TO=en.getDOMDocument()}({getDOMDocument:function getDOMDocument(){return sn},getDrawing:function getDrawing(){return gn()},getCurShape:function getCurShape(){return yn},getCurrentGroup:function getCurrentGroup(){return mn}});var wn=this.getJsonFromSvgElement=NO,xn=this.addSVGElementFromJson=IO;an.getTransformList=iP,an.matrixMultiply=pP,an.hasMatrixTransform=hP,an.transformListToTransform=fP;var Sn=function getBaseUnit(){return nn.baseUnit};!function init(en){zf=en;var tn=document.createElementNS(Kf.SVG,"svg");document.body.append(tn);var nn=document.createElementNS(Kf.SVG,"rect");nn.setAttribute("width","1em"),nn.setAttribute("height","1ex"),nn.setAttribute("x","1in"),tn.append(nn);var rn=nn.getBBox();tn.remove();var an=rn.x;Yf={em:rn.width,ex:rn.height,in:an,cm:an/2.54,mm:an/25.4,pt:an/72,pc:an/6,px:1,"%":0}}({getBaseUnit:Sn,getElement:fN,getHeight:function getHeight(){return dn.getAttribute("height")/An},getWidth:function getWidth(){return dn.getAttribute("width")/An},getRoundDigits:function getRoundDigits(){return Kn.round_digits}}),an.convertToNum=nA;var Cn=this.getSelectedElems=function(){return _n};this.setSelectedElements=function(en,tn){_n[en]=tn},this.setEmptySelectedElements=function(){_n=[]};var kn=_I;!function init(en){jT=en,QT=en.getDOMDocument(),HT=en.getDOMContainer(),GT=en.getSVGRoot()}({pathActions:kn,getSVGContent:pn,addSVGElementFromJson:xn,getSelectedElements:Cn,getDOMDocument:function getDOMDocument(){return sn},getDOMContainer:function getDOMContainer(){return en},getSVGRoot:un,getBaseUnit:Sn,getSnappingStep:function getSnappingStep(){return nn.snappingStep}}),an.findDefs=tN,an.getUrlFromAttr=JT,an.getHref=ZT,an.setHref=eN,an.getBBox=rN,an.getRotationAngle=hN,an.getElem=fN,an.getRefElem=gN,an.assignAttributes=AN,this.cleanupElement=mN;var Bn=function getGridSnapping(){return nn.gridSnapping};!function init(en){wF=en}({getDrawing:function getDrawing(){return gn()},getSVGRoot:un,getGridSnapping:Bn}),this.remapElement=xF,function init(en){II=en}({getSVGRoot:un,getStartTransform:function getStartTransform(){return Zn},setStartTransform:function setStartTransform(en){Zn=en}}),this.recalculateDimensions=kF;var En=qf();an.sanitizeSvg=iU;var Pn=this.getZoom=function(){return An},Ln=this.round=function(en){return Number.parseInt(en*An)/An};!function init(en,tn){mj=en,Aj=tn,vj=new Pj}(nn,{createSVGElement:function createSVGElement(en){return an.addSVGElementFromJson(en)},svgRoot:function svgRoot(){return cn},svgContent:function svgContent(){return dn},getCurrentZoom:Pn});var Tn=this.selectorManager=function getSelectorManager(){return vj}(),Nn=an.getNextId=function(){return gn().getNextId()},In=an.getId=function(){return gn().getId()},On=function call(en,tn){if(zr[en])return zr[en](window,tn)},Fn=function restoreRefElems(en){var tn=Ij(en).attr(jj);Object.values(tn).forEach((function(en){if(en&&en.startsWith("url(")){var tn=JT(en).substr(1);fN(tn)||(tN().append(Xn[tn]),delete Xn[tn])}}));var nn=en.getElementsByTagName("*");if(nn.length)for(var rn=0,an=nn.length;rn<an;rn++)restoreRefElems(nn[rn])};!function init(en){nO=en}({call:On,restoreRefElems:Fn,getSVGContent:pn,getCanvas:function getCanvas(){return an},getCurrentMode:function getCurrentMode(){return Tr},getCurrentZoom:Pn,getSVGRoot:un,getSelectedElements:Cn});var Un=an.undoMgr=function getUndoManager(){return new eO({handleHistoryEvent:function handleHistoryEvent(en,tn){var nn=tO;if(en===nn.BEFORE_UNAPPLY||en===nn.BEFORE_APPLY)nO.getCanvas().clearSelection();else if(en===nn.AFTER_APPLY||en===nn.AFTER_UNAPPLY){var rn=tn.elements();nO.getCanvas().pathActions.clear(),nO.call("changed",rn);var an=tn.type(),sn=en===nn.AFTER_APPLY;if("MoveElementCommand"===an)(sn?tn.newParent:tn.oldParent)===nO.getSVGContent()&&UI();else if("InsertElementCommand"===an||"RemoveElementCommand"===an)tn.parent===nO.getSVGContent()&&UI(),"InsertElementCommand"===an?sn&&nO.restoreRefElems(tn.elem):sn||nO.restoreRefElems(tn.elem),tn.elem&&"use"===tn.elem.tagName&&nO.getCanvas().setUseData(tn.elem);else if("ChangeElementCommand"===an){"title"===tn.elem.tagName&&tn.elem.parentNode.parentNode===nO.getSVGContent()&&UI();var cn=sn?tn.newValues:tn.oldValues;cn.stdDeviation&&nO.getCanvas().setBlurOffsets(tn.elem.parentNode,cn.stdDeviation)}}}})}(),Mn=function addCommandToHistory(en){an.undoMgr.addCommandToHistory(en)};!function init(en){lO=en}({getCanvas:function getCanvas(){return an},getCurrentGroup:function getCurrentGroup(){return mn},getSelectedElements:Cn,getSVGRoot:un,getSVGContent:pn,getDOMContainer:function getDOMContainer(){return en},getExtensions:function getExtensions(){return Wn},setExtensions:function setExtensions(en,tn){Wn[en]=tn},getCurrentZoom:Pn,getRubberBox:function getRubberBox(){return Qr},setCurBBoxes:function setCurBBoxes(en){Hr=en},getCurBBoxes:function getCurBBoxes(en){return Hr},getCurrentResizeMode:function getCurrentResizeMode(){return Ur},addCommandToHistory:Mn,getSelector:function getSelector(){return Ej}});var Rn=this.clearSelection=cO,Dn=this.addToSelection=uO,jn=function getOpacity(){return yn.opacity},Qn=this.getMouseTarget=dO;an.pathActions=kn,function init(en){uI=en,aI=[0,"ClosePath"],nI.each(["Moveto","Lineto","CurvetoCubic","CurvetoQuadratic","Arc","LinetoHorizontal","LinetoVertical","CurvetoCubicSmooth","CurvetoQuadraticSmooth"],(function(en,tn){aI.push(tn+"Abs"),aI.push(tn+"Rel")}))}({selectorManager:Tn,canvas:an,call:On,resetD:function resetD(en){"function"==typeof kn.convertPath?en.setAttribute("d",kn.convertPath(en)):"function"==typeof kn.convertPaths&&en.setAttribute("d",kn.convertPaths(en))},round:Ln,clearSelection:Rn,addToSelection:Dn,addCommandToHistory:Mn,remapElement:xF,addSVGElementFromJson:xn,getGridSnapping:Bn,getOpacity:jn,getSelectedElements:Cn,getContainer:function getContainer(){return en},setStarted:function setStarted(en){Jn=en},getRubberBox:function getRubberBox(){return Qr},setRubberBox:function setRubberBox(en){return Qr=en},addPtsToSelection:function addPtsToSelection(en){var tn=en.closedSubpath,nn=en.grips;kn.canDeleteNodes=!0,kn.closed_subpath=tn,On("pointsAdded",{closedSubpath:tn,grips:nn}),On("selected",nn)},endChanges:function endChanges(en){var tn=en.cmd,nn=en.elem;Mn(tn),On("changed",[nn])},getCurrentZoom:Pn,getId:In,getNextId:Nn,getMouseTarget:Qn,getCurrentMode:function getCurrentMode(){return Tr},setCurrentMode:function setCurrentMode(en){return Tr=en},getDrawnPath:function getDrawnPath(){return Xr},setDrawnPath:function setDrawnPath(en){return Xr=en},getSVGRoot:un});var Hn={},Gn=Ij.data,Vn=document.createElementNS(Kf.SVG,"animate");Ij(Vn).attr({attributeName:"opacity",begin:"indefinite",dur:1,fill:"freeze"}).appendTo(cn);var zn={},Kn={round_digits:5},qn={},$n=vn.text,Wn={},Xn={},Yn=nn.imgPath+"logo.svg",Jn=!1,Zn=null,Tr="select",Ur="none",Rr=yn,Dr=null,Qr=null,Hr=[],Gr=null;this.runExtension=function(en,tn,nn){return this.runExtensions(tn,nn,!1,(function(tn){return tn===en}))},this.runExtensions=pO,this.addExtension=function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en,tn,nn){var rn,sn,un,pn;return regeneratorRuntime.wrap((function _callee$(hn){for(;;)switch(hn.prev=hn.next){case 0:if(rn=nn.$,sn=nn.importLocale,"function"==typeof tn){hn.next=3;break}throw new TypeError("Function argument expected for `svgcanvas.addExtension`");case 3:if(!(en in Wn)){hn.next=5;break}throw new Error('Cannot add extension "'+en+'", an extension by that name already exists.');case 5:return un=Ij.extend(an.getPrivateMethods(),{$:rn,importLocale:sn,svgroot:cn,svgcontent:dn,nonce:gn().getNonce(),selectorManager:Tn}),hn.next=8,tn(un);case 8:return(pn=hn.sent)&&(pn.name=en),Wn[en]=pn,hn.abrupt("return",On("extension_added",pn));case 12:case"end":return hn.stop()}}),_callee)})));return function(tn,nn,rn){return en.apply(this,arguments)}}();var Vr=this.getIntersectionList=hO;this.getStrokedBBox=dN,this.getVisibleElements=uN,this.groupSvgElem=gO;var zr={};an.call=On,an.bind=function(en,tn){var nn=zr[en];return zr[en]=tn,nn},this.prepareSvg=fO,this.setRotationAngle=AO,this.recalculateAllSelectedDimensions=mO;var Kr=function logMatrix(en){console.log([en.a,en.b,en.c,en.d,en.e,en.f])},$r=null,Wr=this.selectOnly=function(en,tn){Rn(!0),Dn(en,tn)};this.removeFromSelection=function(en){if(!_N(_n[0])&&en.length){for(var tn=[],nn=_n.length,rn=0;rn<nn;++rn){var an=_n[rn];an&&(en.includes(an)?Tn.releaseSelector(an):tn.push(an))}_n=tn}},this.selectAllInCurrentLayer=function(){var en=gn().getCurrentLayer();en&&(Tr="select",Wr(Ij(mn||en).children()))};var Xr=null;!function(){var tn,rn,sn={minx:null,miny:null,maxx:null,maxy:null},cn=null,dn=null,hn=null,An=null,vn=null,_n={},wn=0,xn={x:0,y:0},Sn={x:0,y:0},kn={x:0,y:0},Bn={x:0,y:0},En={x:0,y:0},Ln={x:0,y:0};!function init(en){xO=en}({getStarted:function getStarted(){return Jn},getCanvas:function getCanvas(){return an},getCurConfig:function getCurConfig(){return nn},getCurrentMode:function getCurrentMode(){return Tr},getrootSctm:function getrootSctm(){return $r},getStartX:function getStartX(){return dn},setStartX:function setStartX(en){dn=en},getStartY:function getStartY(){return hn},setStartY:function setStartY(en){hn=en},getRStartX:function getRStartX(){return An},getRStartY:function getRStartY(){return vn},getRubberBox:function getRubberBox(){return Qr},getInitBbox:function getInitBbox(){return _n},getCurrentResizeMode:function getCurrentResizeMode(){return Ur},getCurrentGroup:function getCurrentGroup(){return mn},getDrawnPath:function getDrawnPath(){return Xr},getJustSelected:function getJustSelected(){return Dr},getOpacAni:function getOpacAni(){return Vn},getParameter:function getParameter(){return tn},getNextParameter:function getNextParameter(){return rn},getStepCount:function getStepCount(){return 10},getThreSholdDist:function getThreSholdDist(){return.8},getSumDistance:function getSumDistance(){return wn},getStart:function getStart(en){return kn[en]},getEnd:function getEnd(en){return Bn[en]},getbSpline:function getbSpline(en){return En[en]},getNextPos:function getNextPos(en){return Ln[en]},getControllPoint1:function getControllPoint1(en){return Sn[en]},getControllPoint2:function getControllPoint2(en){return xn[en]},getFreehand:function getFreehand(en){return sn[en]},getDrawing:function getDrawing(){return gn()},getCurShape:function getCurShape(){return yn},getDAttr:function getDAttr(){return cn},getLastGoodImgUrl:function getLastGoodImgUrl(){return Yn},getCurText:function getCurText(en){return $n[en]},setDAttr:function setDAttr(en){cn=en},setEnd:function setEnd(en,tn){Bn[en]=tn},setControllPoint1:function setControllPoint1(en,tn){Sn[en]=tn},setControllPoint2:function setControllPoint2(en,tn){xn[en]=tn},setJustSelected:function setJustSelected(en){Dr=en},setParameter:function setParameter(en){tn=en},setStart:function setStart(en){kn=en},setRStartX:function setRStartX(en){An=en},setRStartY:function setRStartY(en){vn=en},setSumDistance:function setSumDistance(en){wn=en},setbSpline:function setbSpline(en){En=en},setNextPos:function setNextPos(en){Ln=en},setNextParameter:function setNextParameter(en){rn=en},setCurProperties:function setCurProperties(en,tn){Rr[en]=tn},setCurText:function setCurText(en,tn){$n[en]=tn},setStarted:function setStarted(en){Jn=en},setStartTransform:function setStartTransform(en){Zn=en},setCurrentMode:function setCurrentMode(en){return Tr=en},setFreehand:function setFreehand(en,tn){sn[en]=tn},setCurBBoxes:function setCurBBoxes(en){Hr=en},setRubberBox:function setRubberBox(en){Qr=en},setInitBbox:function setInitBbox(en){_n=en},setRootSctm:function setRootSctm(en){$r=en},setCurrentResizeMode:function setCurrentResizeMode(en){Ur=en},setLastClickPoint:function setLastClickPoint(en){Gr=en},getSelectedElements:Cn,getCurrentZoom:Pn,getId:In,addCommandToHistory:Mn,getSVGRoot:un,getSVGContent:pn,call:On,elData:Gn,getIntersectionList:Vr});var Tn=EO,Nn=CO,Fn=kO,Un=BO;Ij(en).mousedown(Tn).mousemove(Nn).click((function handleLinkInCanvas(en){return en.preventDefault(),!1})).dblclick(Un).mouseup(Fn),Ij(en).bind("mousewheel DOMMouseScroll",PO)}(),function init(en){yO=en}({getCanvas:function getCanvas(){return an},getrootSctm:function getrootSctm(){return $r},getSelectedElements:Cn,getCurrentZoom:Pn,getCurrentMode:function getCurrentMode(){return Tr},setCurrentMode:function setCurrentMode(en){return Tr=en},getSVGRoot:un,call:On});var Yr=an.textActions=_O;!function init(en){lj=en}({getCanvas:function getCanvas(){return an},getSVGContent:pn,getSVGRoot:un,getUIStrings:function getUIStrings(){return Hn},getCurrentGroup:function getCurrentGroup(){return mn},getCurConfig:function getCurConfig(){return nn},getNsMap:function getNsMap(){return En},getSvgOption:function getSvgOption(){return Kn},setSvgOption:function setSvgOption(en,tn){Kn[en]=tn},getSvgOptionApply:function getSvgOptionApply(){return Kn.apply},getSvgOptionImages:function getSvgOptionImages(){return Kn.images},getEncodableImages:function getEncodableImages(en){return zn[en]},setEncodableImages:function setEncodableImages(en,tn){zn[en]=tn},call:On,getDOMDocument:function getDOMDocument(){return sn},getVisElems:function getVisElems(){return Dj},getIdPrefix:function getIdPrefix(){return hn},setCurrentZoom:function setCurrentZoom(en){An=en},getImportIds:function getImportIds(en){return qn[en]},setImportIds:function setImportIds(en,tn){qn[en]=tn},setRemovedElements:function setRemovedElements(en,tn){Xn[en]=tn},setSVGContent:function setSVGContent(en){dn=en},getrefAttrs:function getrefAttrs(){return jj},getcanvg:function getcanvg(){return YE},addCommandToHistory:Mn}),this.removeUnusedDefElems=Sj,this.svgCanvasToString=uj,this.svgToString=dj,this.embedImage=gj,this.setGoodImage=function(en){Yn=en},this.open=function(){},this.save=fj,this.rasterExport=yj,this.exportPDF=_j,this.getSvgString=function(){return Kn.apply=!1,this.svgCanvasToString()},this.randomizeIds=function(en){FI(!(arguments.length>0&&!1===en),gn())};var Jr=this.uniquifyElems=wj,Zr=this.setUseData=xj,ei=this.convertGradients=Cj;this.setSvgString=pj,this.importSvgString=hj;var ti={identifyLayers:UI,createLayer:MI,cloneLayer:RI,deleteCurrentLayer:DI,setCurrentLayer:jI,renameCurrentLayer:QI,setCurrentLayerPosition:HI,setLayerVisibility:GI,moveSelectedToLayer:VI,mergeLayer:zI,mergeAllLayers:KI,leaveContext:qI,setContext:$I};Object.entries(ti).forEach((function(en){var tn=_slicedToArray(en,2),nn=tn[0],rn=tn[1];an[nn]=rn})),function init(en){NI=en}({pathActions:kn,getCurrentGroup:function getCurrentGroup(){return mn},setCurrentGroup:function setCurrentGroup(en){mn=en},getSelectedElements:Cn,getSVGContent:pn,undoMgr:Un,elData:Gn,getCurrentDrawing:gn,clearSelection:Rn,call:On,addCommandToHistory:Mn,changeSVGContent:function changeSVGContent(){On("changed",[dn])}}),this.clear=function(){kn.clear(),Rn(),an.clearSvgContentElement(),an.current_drawing_=new OI(dn),an.createLayer("Layer 1"),an.undoMgr.resetUndoStack(),Tn.initGroup(),Qr=Tn.getRubberBandBox(),On("cleared")},this.linkControlPoints=kn.linkControlPoints,this.getContentElem=function(){return dn},this.getRootElem=function(){return cn},function init(en){DO=en}({addCommandToHistory:Mn,getCurrentZoom:Pn,getSVGContent:pn,getSelectedElements:Cn,call:On,changeSelectedAttributeNoUndoMethod:iO,getDOMDocument:function getDOMDocument(){return sn},getCanvas:function getCanvas(){return an},setCanvas:function setCanvas(en,tn){an[en]=tn},setCurrentZoom:function setCurrentZoom(en){An=en},setCurProperties:function setCurProperties(en,tn){Rr[en]=tn},getCurProperties:function getCurProperties(en){return Rr[en]},setCurShape:function setCurShape(en,tn){yn[en]=tn},getCurText:function getCurText(en){return $n[en]},setCurText:function setCurText(en,tn){$n[en]=tn}});var ni=this.getResolution=jO;this.getSnapToGrid=function(){return nn.gridSnapping},this.getVersion=function(){return"svgcanvas.js ($Rev$)"},this.setUiStrings=function(en){Object.assign(Hn,en.notification),oI(en)},this.setConfig=function(en){Object.assign(nn,en)},this.getTitle=QO,this.setGroupTitle=HO,this.getDocumentTitle=function(){return an.getTitle(dn)},this.setDocumentTitle=GO,this.getEditorNS=zO,this.setResolution=VO,this.getOffset=function(){return Ij(dn).attr(["x","y"])},this.setBBoxZoom=KO,this.setZoom=qO,this.getMode=function(){return Tr},this.setMode=function(en){kn.clear(!0),Yr.clear(),Rr=_n[0]&&"text"===_n[0].nodeName?$n:yn,Tr=en},this.getColor=function(en){return Rr[en]},this.setColor=$O,this.setGradient=WO,this.setPaint=YO,this.setStrokePaint=function(en){this.setPaint("stroke",en)},this.setFillPaint=function(en){this.setPaint("fill",en)},this.getStrokeWidth=function(){return Rr.stroke_width},this.setStrokeWidth=JO,this.setStrokeAttr=ZO,this.getStyle=function(){return yn},this.getOpacity=jn,this.setOpacity=function(en){yn.opacity=en,ii("opacity",en)},this.getFillOpacity=function(){return yn.fill_opacity},this.getStrokeOpacity=function(){return yn.stroke_opacity},this.setPaintOpacity=function(en,tn,nn){yn[en+"_opacity"]=tn,nn?ri(en+"-opacity",tn):ii(en+"-opacity",tn)},this.getPaintOpacity=function(en){return"fill"===en?this.getFillOpacity():this.getStrokeOpacity()},this.getBlur=function(en){var tn=0;if(en&&en.getAttribute("filter")){var nn=fN(en.id+"_blur");nn&&(tn=nn.firstChild.getAttribute("stdDeviation"))}return tn},function(){var en=null,tn=null,nn=!1;!function init(en){YF=en}({getCanvas:function getCanvas(){return an},getCurCommand:function getCurCommand(){return en},setCurCommand:function setCurCommand(tn){en=tn},getFilter:function getFilter(){return tn},setFilter:function setFilter(en){tn=en},getFilterHidden:function getFilterHidden(){return nn},setFilterHidden:function setFilterHidden(en){nn=en},changeSelectedAttributeNoUndoMethod:iO,changeSelectedAttributeMethod:oO,isWebkit:jA,addCommandToHistory:Mn,getSelectedElements:Cn}),an.setBlurNoUndo=JF,an.setBlurOffsets=ZF,an.setBlur=eU}(),this.getBold=eF,this.setBold=tF,this.getItalic=nF,this.setItalic=rF,this.setTextAnchor=iF,this.getFontFamily=oF,this.setFontFamily=aF,this.setFontColor=sF,this.getFontColor=lF,this.getFontSize=cF,this.setFontSize=uF,this.getText=dF,this.setTextContent=pF,this.setImageURL=hF,this.setLinkURL=gF,this.setRectRadius=fF,this.makeHyperlink=AF,this.removeHyperlink=mF,this.setSegType=vF,this.convertToPath=function(en,tn){if(!_N(en))return tn?sN(en,xn,kn):function convertToPath(en,tn,nn,rn,an,sn,cn,un){var dn=new cn.BatchCommand("Convert element to Path"),pn=nn({element:"path",attr:tn=MT.extend({},tn,aN(en))}),hn=en.getAttribute("transform");hn&&pn.setAttribute("transform",hn);var gn=en.id,An=en.parentNode;en.nextSibling?en.before(pn):An.append(pn);var mn=oN(en);if(mn){if(pn.setAttribute("d",mn),hn){var vn=iP(pn);hP(vn)&&rn.resetOrientation(pn)}var yn=en.nextSibling;return dn.addSubCommand(new cn.RemoveElementCommand(en,yn,parent)),dn.addSubCommand(new cn.InsertElementCommand(pn)),an(),en.remove(),pn.setAttribute("id",gn),pn.removeAttribute("visibility"),sn([pn],!0),un(dn),pn}return pn.remove(),null}(en,{fill:yn.fill,"fill-opacity":yn.fill_opacity,stroke:yn.stroke,"stroke-width":yn.stroke_width,"stroke-dasharray":yn.stroke_dasharray,"stroke-linejoin":yn.stroke_linejoin,"stroke-linecap":yn.stroke_linecap,"stroke-opacity":yn.stroke_opacity,opacity:yn.opacity,visibility:"hidden"},xn,kn,Rn,Dn,PN,Mn);var nn=_n;Ij.each(nn,(function(en,tn){tn&&an.convertToPath(tn)}))};var ri=iO,ii=this.changeSelectedAttribute=oO;!function init(en){IF=en}({getSelectedElements:Cn,addCommandToHistory:Mn,getJsonFromSvgElement:wn,addSVGElementFromJson:xn,changeSelectedAttribute:ii,flashStorage:flashStorage,call:On,getIntersectionList:Vr,setCurBBoxes:function setCurBBoxes(en){Hr=en},getSVGRoot:un,gettingSelectorManager:function gettingSelectorManager(){return Tn},getCurrentZoom:Pn,getDrawing:function getDrawing(){return gn()},getCurrentGroup:function getCurrentGroup(){return mn},addToSelection:Dn,getContentW:function getContentW(){return an.contentW},getContentH:function getContentH(){return an.contentH},getClipboardID:function getClipboardID(){return oi},getDOMDocument:function getDOMDocument(){return sn},clearSelection:Rn,getNextId:Nn,selectOnly:Wr,uniquifyElems:Jr,setUseData:Zr,convertGradients:ei,getSVGContent:pn,getCanvas:function getCanvas(){return an},getVisElems:function getVisElems(){return Dj}}),this.deleteSelectedElements=jF,this.cutSelectedElements=function(){an.copySelectedElements(),an.deleteSelectedElements()};var oi="svgedit_clipboard";function flashStorage(){var en=sessionStorage.getItem(oi);localStorage.setItem(oi,en),setTimeout((function(){localStorage.removeItem(oi)}),1)}window.addEventListener("storage",(function storageChange(en){en.newValue&&(en.key===oi+"_startup"?(localStorage.removeItem(oi+"_startup"),flashStorage()):en.key===oi&&sessionStorage.setItem(oi,en.newValue))}),!1),localStorage.setItem(oi+"_startup",Math.random()),this.copySelectedElements=QF,function init(en){JI=en}({getCanvas:function getCanvas(){return an},getClipBoardID:function getClipBoardID(){return oi},getLastClickPoint:function getLastClickPoint(en){return Gr[en]},addCommandToHistory:Mn,restoreRefElems:Fn}),this.pasteElements=ZI,this.groupSelectedElements=HF,this.pushGroupProperties=GF,this.ungroupSelectedElement=zF,this.moveToTopSelectedElement=OF,this.moveToBottomSelectedElement=FF,this.moveUpDownSelected=UF,this.moveSelectedElements=MF,this.cloneSelectedElements=RF,this.alignSelectedElements=DF,this.contentW=ni().w,this.contentH=ni().h,this.updateCanvas=KF,this.setBackground=yF,this.cycleElement=qF,this.clear(),this.getPrivateMethods=function(){return{addCommandToHistory:Mn,BatchCommand:Rj,ChangeElementCommand:Mj,decode64:decode64,dropXMLInternalSubset:VT,encode64:encode64,ffClone:rO,findDefs:tN,findDuplicateGradient:XO,getElem:fN,getPathBBox:nN,getTypeMap:Jf,getUrlFromAttr:JT,identifyLayers:UI,InsertElementCommand:Fj,isChrome:HA,isIdentity:dP,logMatrix:Kr,MoveElementCommand:Oj,NS:Kf,preventClickDefault:yN,RemoveElementCommand:Uj,SVGEditTransformList:nP,text2xml:XT,transformBox:gP,transformPoint:uP,walkTree:YT}}};Qj.isNullish=_N,Qj.encode64=encode64,Qj.decode64=decode64,Qj.$id=function $id(en){return document.getElementById(en)},Qj.$qq=function $qq(en){return document.querySelector(en)},Qj.$qa=function $qa(en){return _toConsumableArray(document.querySelectorAll(en))},Qj.blankPageObjectURL=WT;var Hj,Gj=createCommonjsModule((function(en,tn){en.exports=function(){var en={true:!0,false:!1,null:null};function deparam(tn,nn){var rn={};return tn.replace(/\+/g," ").split("&").forEach((function(tn){var an=tn.split("="),sn=decodeURIComponent(an[0]),cn=sn.split("]["),un=cn.length-1;if(/\[/.test(cn[0])&&/\]$/.test(cn[un])?(cn[un]=cn[un].replace(/\]$/,""),un=(cn=cn.shift().split("[").concat(cn)).length-1):un=0,an.length>=2){var dn=decodeURIComponent(an.slice(1).join("="));if(nn&&(dn=dn&&!isNaN(dn)?+dn:"undefined"===dn?void 0:void 0!==en[dn]?en[dn]:dn),un)for(var pn=rn,hn=0;hn<=un;hn++)pn=pn[sn=""===cn[hn]?pn.length:cn[hn]]=hn<un?pn[sn]||(cn[hn+1]&&isNaN(cn[hn+1])?{}:[]):dn;else Array.isArray(rn[sn])?rn[sn].push(dn):void 0!==rn[sn]?rn[sn]=[rn[sn],dn]:rn[sn]=dn}else sn&&(rn[sn]=nn?void 0:"")})),rn}return deparam}()})),Vj=function(){function ConfigObj(en){_classCallCheck(this,ConfigObj),this.defaultPrefs={lang:"",iconsize:"",bkgd_color:"#FFF",bkgd_url:"",img_save:"embed",save_notice_done:!1,export_notice_done:!1},this.defaultConfig={canvasName:"default",canvas_expansion:3,initFill:{color:"FF0000",opacity:1},initStroke:{width:5,color:"000000",opacity:1},text:{stroke_width:0,font_size:24,font_family:"serif"},initOpacity:1,initTool:"select",exportWindowType:"new",wireframe:!1,showlayers:!1,no_save_warning:!1,imgPath:"./images/",dimensions:[640,480],gridSnapping:!1,gridColor:"#000",baseUnit:"px",snappingStep:10,showRulers:!0,preventAllURLConfig:!1,preventURLContentLoading:!1,lockExtensions:!1,noDefaultExtensions:!1,showGrid:!1,noStorageOnLoad:!1,forceStorage:!1,emptyStorageOnDecline:!1,avoidClientSide:!1,avoidClientSideDownload:!1,avoidClientSideOpen:!1},this.curPrefs={},this.urldata={},this.defaultExtensions=["ext-connector","ext-eyedropper","ext-grid","ext-imagelib","ext-markers","ext-overview_window","ext-panning","ext-polygon","ext-shapes","ext-star","ext-storage","ext-opensave"],this.curConfig={extensions:[],userExtensions:[],allowedOrigins:[]},this.editor=en}return _createClass(ConfigObj,[{key:"setupCurPrefs",value:function setupCurPrefs(){var en=_objectSpread2(_objectSpread2({},this.defaultPrefs),this.curPrefs);this.curPrefs=en}},{key:"setupCurConfig",value:function setupCurConfig(){var en=_objectSpread2(_objectSpread2({},this.defaultConfig),this.curConfig);en.noDefaultExtensions||(en.extensions=_toConsumableArray(this.defaultExtensions)),this.curConfig=en}},{key:"loadFromURL",value:function loadFromURL(){var en=this,tn=new URL(location),nn=tn.search,rn=tn.searchParams;if(nn){if(this.urldata=Gj(rn.toString(),!0),["initStroke","initFill"].forEach((function(tn){rn.has("".concat(tn,"[color]"))&&(en.urldata[tn].color=rn.get("".concat(tn,"[color]")))})),rn.has("bkgd_color")&&(this.urldata.bkgd_color="#"+rn.get("bkgd_color")),this.urldata.dimensions&&(this.urldata.dimensions=this.urldata.dimensions.split(",")),this.urldata.extensions&&(this.urldata.extensions=/[:/\\]/.test(this.urldata.extensions)?"":this.urldata.extensions.split(",")),["userExtensions","imgPath"].forEach((function(en){this.urldata[en]&&delete this.urldata[en]})),this.setConfig(this.urldata,{overwrite:!1}),this.setupCurConfig(),!this.curConfig.preventURLContentLoading){var an=this.urldata.source;if(!an){var sn=rn.get("source");sn&&sn.startsWith("data:")&&(an=sn)}if(an)return void(an.startsWith("data:")?this.editor.loadFromDataURI(an):this.editor.loadFromString(an));if(this.urldata.url)return void this.editor.loadFromURL(this.urldata.url)}this.urldata.noStorageOnLoad&&!this.curConfig.forceStorage||this.loadContentAndPrefs()}else this.setupCurConfig(),this.loadContentAndPrefs()}},{key:"loadContentAndPrefs",value:function loadContentAndPrefs(){var en=this;if(this.curConfig.forceStorage||!this.curConfig.noStorageOnLoad&&/(?:^|;\s*)svgeditstore=(?:prefsAndContent|prefsOnly)/.test(document.cookie)){if(this.editor.storage&&(this.curConfig.forceStorage||!this.curConfig.noStorageOnLoad&&/(?:^|;\s*)svgeditstore=prefsAndContent/.test(document.cookie))){var tn="svgedit-"+this.curConfig.canvasName,nn=this.editor.storage.getItem(tn);nn&&this.editor.loadFromString(nn)}Object.keys(this.defaultPrefs).forEach((function(tn){var nn="svg-edit-"+tn;if(en.editor.storage){var rn=en.editor.storage.getItem(nn);rn&&(en.defaultPrefs[tn]=String(rn))}else if(window.widget)en.defaultPrefs[tn]=window.widget.preferenceForKey(nn);else{var an=document.cookie.match(new RegExp("(?:^|;\\s*)"+function regexEscape(en){return String(en).replace(/[.\\+*?[^\]$(){}=!<>|:-]/g,"\\$&")}(encodeURIComponent(nn))+"=([^;]+)"));en.defaultPrefs[tn]=an?decodeURIComponent(an[1]):""}}))}}},{key:"setConfig",value:function setConfig(en){var tn=this,nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rn=function extendOrAdd(en,tn,nn){en[tn]&&"object"===_typeof(en[tn])?$.extend(!0,en[tn],nn):en[tn]=nn};Object.entries(en).forEach((function(en){var an=_slicedToArray(en,2),sn=an[0],cn=an[1];if(tn.defaultPrefs[sn]){if(!1===nn.overwrite&&(tn.curConfig.preventAllURLConfig||tn.curPrefs[sn]))return;!0===nn.allowInitialUserOverride?tn.defaultPrefs[sn]=cn:tn.pref(sn,cn)}else if(["extensions","userExtensions","allowedOrigins"].includes(sn)){if(!1===nn.overwrite&&(tn.curConfig.preventAllURLConfig||["allowedOrigins"].includes(sn)||"extensions"===sn&&tn.curConfig.lockExtensions))return;tn.curConfig[sn]=tn.curConfig[sn].concat(cn)}else if({}.hasOwnProperty.call(tn.defaultConfig,sn)){if(!1===nn.overwrite&&(tn.curConfig.preventAllURLConfig||{}.hasOwnProperty.call(tn.curConfig,sn)))return;if({}.hasOwnProperty.call(tn.curConfig,sn)){if(!1===nn.overwrite)return;rn(tn.curConfig,sn,cn)}else!0===nn.allowInitialUserOverride?rn(tn.defaultConfig,sn,cn):tn.defaultConfig[sn]&&"object"===_typeof(tn.defaultConfig[sn])?(tn.curConfig[sn]=Array.isArray(tn.defaultConfig[sn])?[]:{},$.extend(!0,tn.curConfig[sn],cn)):tn.curConfig[sn]=cn}}))}},{key:"pref",value:function pref(en,tn,nn){if(!nn&&!tn)return en in this.curPrefs?this.curPrefs[en]:this.defaultPrefs[en];this.curPrefs[en]=tn}},{key:"load",value:function load(){this.loadFromURL(this.editor),this.setupCurPrefs(this.editor)}}]),ConfigObj}();function __variableDynamicImportRuntime0__(en){switch(en){case"./locale/lang.af.js":return Promise.resolve().then((function(){return VQ}));case"./locale/lang.ar.js":return Promise.resolve().then((function(){return zQ}));case"./locale/lang.az.js":return Promise.resolve().then((function(){return KQ}));case"./locale/lang.be.js":return Promise.resolve().then((function(){return qQ}));case"./locale/lang.bg.js":return Promise.resolve().then((function(){return $Q}));case"./locale/lang.ca.js":return Promise.resolve().then((function(){return WQ}));case"./locale/lang.cs.js":return Promise.resolve().then((function(){return XQ}));case"./locale/lang.cy.js":return Promise.resolve().then((function(){return YQ}));case"./locale/lang.da.js":return Promise.resolve().then((function(){return JQ}));case"./locale/lang.de.js":return Promise.resolve().then((function(){return ZQ}));case"./locale/lang.el.js":return Promise.resolve().then((function(){return eH}));case"./locale/lang.en.js":return Promise.resolve().then((function(){return tH}));case"./locale/lang.es.js":return Promise.resolve().then((function(){return nH}));case"./locale/lang.et.js":return Promise.resolve().then((function(){return rH}));case"./locale/lang.fa.js":return Promise.resolve().then((function(){return iH}));case"./locale/lang.fi.js":return Promise.resolve().then((function(){return oH}));case"./locale/lang.fr.js":return Promise.resolve().then((function(){return aH}));case"./locale/lang.fy.js":return Promise.resolve().then((function(){return sH}));case"./locale/lang.ga.js":return Promise.resolve().then((function(){return lH}));case"./locale/lang.gl.js":return Promise.resolve().then((function(){return cH}));case"./locale/lang.he.js":return Promise.resolve().then((function(){return uH}));case"./locale/lang.hi.js":return Promise.resolve().then((function(){return dH}));case"./locale/lang.hr.js":return Promise.resolve().then((function(){return pH}));case"./locale/lang.hu.js":return Promise.resolve().then((function(){return hH}));case"./locale/lang.hy.js":return Promise.resolve().then((function(){return gH}));case"./locale/lang.id.js":return Promise.resolve().then((function(){return fH}));case"./locale/lang.is.js":return Promise.resolve().then((function(){return AH}));case"./locale/lang.it.js":return Promise.resolve().then((function(){return mH}));case"./locale/lang.ja.js":return Promise.resolve().then((function(){return vH}));case"./locale/lang.ko.js":return Promise.resolve().then((function(){return yH}));case"./locale/lang.lt.js":return Promise.resolve().then((function(){return _H}));case"./locale/lang.lv.js":return Promise.resolve().then((function(){return bH}));case"./locale/lang.mk.js":return Promise.resolve().then((function(){return wH}));case"./locale/lang.ms.js":return Promise.resolve().then((function(){return xH}));case"./locale/lang.mt.js":return Promise.resolve().then((function(){return SH}));case"./locale/lang.nl.js":return Promise.resolve().then((function(){return CH}));case"./locale/lang.no.js":return Promise.resolve().then((function(){return kH}));case"./locale/lang.pl.js":return Promise.resolve().then((function(){return BH}));case"./locale/lang.pt-BR.js":return Promise.resolve().then((function(){return EH}));case"./locale/lang.pt-PT.js":return Promise.resolve().then((function(){return PH}));case"./locale/lang.ro.js":return Promise.resolve().then((function(){return LH}));case"./locale/lang.ru.js":return Promise.resolve().then((function(){return TH}));case"./locale/lang.sk.js":return Promise.resolve().then((function(){return NH}));case"./locale/lang.sl.js":return Promise.resolve().then((function(){return IH}));case"./locale/lang.sq.js":return Promise.resolve().then((function(){return OH}));case"./locale/lang.sr.js":return Promise.resolve().then((function(){return FH}));case"./locale/lang.sv.js":return Promise.resolve().then((function(){return UH}));case"./locale/lang.sw.js":return Promise.resolve().then((function(){return MH}));case"./locale/lang.test.js":return Promise.resolve().then((function(){return RH}));case"./locale/lang.th.js":return Promise.resolve().then((function(){return DH}));case"./locale/lang.tl.js":return Promise.resolve().then((function(){return jH}));case"./locale/lang.tr.js":return Promise.resolve().then((function(){return QH}));case"./locale/lang.uk.js":return Promise.resolve().then((function(){return HH}));case"./locale/lang.vi.js":return Promise.resolve().then((function(){return GH}));case"./locale/lang.yi.js":return Promise.resolve().then((function(){return VH}));case"./locale/lang.zh-CN.js":return Promise.resolve().then((function(){return zH}));case"./locale/lang.zh-HK.js":return Promise.resolve().then((function(){return KH}));case"./locale/lang.zh-TW.js":return Promise.resolve().then((function(){return qH}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+en))}}
|
||
/**
|
||
* Localizing script for SVG-edit UI.
|
||
* @module locale
|
||
* @license MIT
|
||
*
|
||
* @copyright 2010 Narendra Sisodya
|
||
* @copyright 2010 Alexis Deveria
|
||
*
|
||
*/_export({target:"String",proto:!0,forced:stringHtmlForced("bold")},{bold:function bold(){return createHtml(this,"b","","")}});var zj=function setStrings(en,tn,nn){var rn=document.getElementById("svg_editor").parentNode;Object.entries(tn).forEach((function(tn){var an=_slicedToArray(tn,2),sn=an[0],cn=an[1];if(cn){nn&&(sn="#"+sn);var un=rn.querySelectorAll(sn);if(un.length){var dn=un[0];switch(en){case"aria-label":dn.setAttribute("aria-label",cn);break;case"content":_toConsumableArray(un).some((function(en){return!(3!==en.nodeType||!en.textContent.trim())&&(en.textContent=cn,!0)}));break;case"title":dn.setAttribute("title",cn)}}else console.log("Missing element for localization: "+sn)}else console.log(sn)}))},Kj=function readLang(en){var tn=en.tools,nn=en.properties,rn=en.config,an=en.layers,sn=en.common,cn=en.ui;zj("content",{curve_segments:nn.curve_segments,fitToContent:tn.fitToContent,fit_to_all:tn.fit_to_all,fit_to_canvas:tn.fit_to_canvas,fit_to_layer_content:tn.fit_to_layer_content,fit_to_sel:tn.fit_to_sel,icon_large:rn.icon_large,icon_medium:rn.icon_medium,icon_small:rn.icon_small,icon_xlarge:rn.icon_xlarge,image_opt_embed:rn.image_opt_embed,image_opt_ref:rn.image_opt_ref,includedImages:rn.included_images,largest_object:tn.largest_object,layersLabel:an.layers,page:tn.page,relativeToLabel:tn.relativeTo,selLayerLabel:an.move_elems_to,selectedPredefined:rn.select_predefined,selected_objects:tn.selected_objects,smallest_object:tn.smallest_object,straight_segments:nn.straight_segments,svginfo_bg_url:rn.editor_img_url+":",svginfo_bg_note:rn.editor_bg_note,svginfo_change_background:rn.background,svginfo_dim:rn.doc_dims,svginfo_editor_prefs:rn.editor_prefs,svginfo_height:sn.height,svginfo_icons:rn.icon_size,svginfo_image_props:rn.image_props,svginfo_lang:rn.language,svginfo_title:rn.doc_title,svginfo_width:sn.width,tool_docprops_cancel:sn.cancel,tool_docprops_save:sn.ok,tool_source_cancel:sn.cancel,tool_source_save:sn.ok,tool_prefs_cancel:sn.cancel,tool_prefs_save:sn.ok,sidepanel_handle:an.layers.split("").join(" "),tool_clear:tn.new_doc,tool_docprops:tn.docprops,tool_export:tn.export_img,tool_import:tn.import_doc,tool_open:tn.open_doc,tool_save:tn.save_doc,tool_editor_prefs:rn.editor_prefs,tool_editor_homepage:tn.editor_homepage,svginfo_units_rulers:rn.units_and_rulers,svginfo_rulers_onoff:rn.show_rulers,svginfo_unit:rn.base_unit,svginfo_grid_settings:rn.grid,svginfo_snap_onoff:rn.snapping_onoff,svginfo_snap_step:rn.snapping_stepsize,svginfo_grid_color:rn.grid_color},!0);var un={};["cut","copy","paste","paste_in_place","delete","group","ungroup","move_front","move_up","move_down","move_back"].forEach((function(en){un['#cmenu_canvas a[href="#'+en+'"]']=tn[en]})),["dupe","merge_down","merge_all"].forEach((function(en){un['#cmenu_layers a[href="#'+en+'"]']=an[en]})),un['#cmenu_layers a[href="#delete"]']=an.del,zj("content",un);var dn={};return Object.entries({tool_blur:nn.blur,tool_position:tn.align_to_page,tool_font_family:nn.font_family,zoom_panel:cn.zoom_level,stroke_linejoin:nn.linejoin_miter,stroke_linecap:nn.linecap_butt,tool_opacity:nn.opacity}).forEach((function(en){var tn=_slicedToArray(en,2),nn=tn[0],rn=tn[1];dn["#"+nn+" button"]=rn})),Object.entries({group_opacity:nn.opacity,zoom:cn.zoom_level}).forEach((function(en){var tn=_slicedToArray(en,2),nn=tn[0],rn=tn[1];dn["#"+nn]=rn})),zj("aria-label",dn),zj("title",{align_relative_to:tn.align_relative_to,circle_cx:nn.circle_cx,circle_cy:nn.circle_cy,circle_r:nn.circle_r,cornerRadiusLabel:nn.corner_radius,ellipse_cx:nn.ellipse_cx,ellipse_cy:nn.ellipse_cy,ellipse_rx:nn.ellipse_rx,ellipse_ry:nn.ellipse_ry,fill_color:nn.fill_color,font_family:nn.font_family,idLabel:nn.id,image_height:nn.image_height,image_url:nn.image_url,image_width:nn.image_width,layer_delete:an.del,layer_down:an.move_down,layer_new:an.new,layer_rename:an.rename,layer_moreopts:sn.more_opts,layer_up:an.move_up,line_x1:nn.line_x1,line_x2:nn.line_x2,line_y1:nn.line_y1,line_y2:nn.line_y2,linecap_butt:nn.linecap_butt,linecap_round:nn.linecap_round,linecap_square:nn.linecap_square,linejoin_bevel:nn.linejoin_bevel,linejoin_miter:nn.linejoin_miter,linejoin_round:nn.linejoin_round,main_icon:tn.main_menu,palette:cn.palette_info,zoom_panel:cn.zoom_level,path_node_x:nn.node_x,path_node_y:nn.node_y,rect_height_tool:nn.rect_height,rect_width_tool:nn.rect_width,seg_type:nn.seg_type,selLayerNames:an.move_selected,selected_x:nn.pos_x,selected_y:nn.pos_y,stroke_color:nn.stroke_color,stroke_style:nn.stroke_style,stroke_width:nn.stroke_width,svginfo_title:rn.doc_title,text:nn.text_contents,toggle_stroke_tools:cn.toggle_stroke_tools,tool_add_subpath:tn.add_subpath,tool_align_bottom:tn.align_bottom,tool_align_center:tn.align_center,tool_align_left:tn.align_left,tool_align_middle:tn.align_middle,tool_align_right:tn.align_right,tool_align_top:tn.align_top,tool_angle:nn.angle,tool_blur:nn.blur,tool_bold:nn.bold,tool_text_anchor_start:nn.text_anchor_start,tool_text_anchor_middle:nn.text_anchor_middle,tool_text_anchor_end:nn.text_anchor_end,tool_circle:tn.mode_circle,tool_clone:tn.clone,tool_clone_multi:tn.clone,tool_delete:tn.del,tool_delete_multi:tn.del,tool_ellipse:tn.mode_ellipse,tool_fhellipse:tn.mode_fhellipse,tool_fhpath:tn.mode_fhpath,tool_fhrect:tn.mode_fhrect,tool_font_size:nn.font_size,tool_group_elements:tn.group_elements,tool_make_link:tn.make_link,tool_link_url:tn.set_link_url,tool_image:tn.mode_image,tool_italic:nn.italic,tool_line:tn.mode_line,tool_move_bottom:tn.move_bottom,tool_move_top:tn.move_top,tool_node_clone:tn.node_clone,tool_node_delete:tn.node_delete,tool_node_link:tn.node_link,tool_opacity:nn.opacity,tool_openclose_path:tn.openclose_path,tool_path:tn.mode_path,tool_position:tn.align_to_page,tool_rect:tn.mode_rect,tool_redo:tn.redo,tool_reorient:tn.reorient_path,tool_select:tn.mode_select,tool_source:tn.source_save,tool_square:tn.mode_square,tool_text:tn.mode_text,tool_topath:tn.to_path,tool_undo:tn.undo,tool_ungroup:tn.ungroup,tool_wireframe:tn.wireframe_mode,tool_zoom:tn.mode_zoom,url_notice:tn.no_embed},!0),{langParam:Hj,langData:en}},qj=function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en,tn){var nn;return regeneratorRuntime.wrap((function _callee$(rn){for(;;)switch(rn.prev=rn.next){case 0:return en?Hj=en:navigator.userLanguage?Hj=navigator.userLanguage:navigator.language&&(Hj=navigator.language),console.log("Lang: "+Hj),tn.includes(Hj)||"test"===Hj||(Hj="en"),rn.next=5,__variableDynamicImportRuntime0__("./locale/lang.".concat(encodeURIComponent(Hj),".js"));case 5:return nn=rn.sent,rn.abrupt("return",Kj(nn.default));case 7:case"end":return rn.stop()}}),_callee)})));return function putLocale(tn,nn){return en.apply(this,arguments)}}(),$j={},Wj=function hasCustomHandler(en){return Boolean($j[en])},Xj=function getCustomHandler(en){return $j[en].action},Yj=function injectExtendedContextMenuItemsIntoDom(){Object.values($j).forEach((function(en){!function injectExtendedContextMenuItemIntoDom(en){Object.keys($j).length||document.getElementById("cmenu_canvas").appendChild("<li class='separator'>");var tn=en.shortcut||"";document.getElementById("cmenu_canvas").appendChild("\n <li class='disabled'><a href='#".concat(en.id,"'>").concat(en.label,"<span class='shortcut'>").concat(tn,"</span></a></li>"))}(en)}))},Jj=document.createElement("template");Jj.innerHTML='\n <style>\n #svgroot {\n -moz-user-select: none;\n -webkit-user-select: none;\n position: absolute;\n top: 0;\n left: 0;\n }\n #workarea {\n display: inline-table-cell;\n position:absolute;\n top: 40px;\n left: 40px;\n bottom: 40px;\n right: 14px;\n background-color: #A0A0A0;\n border: 1px solid var(--border-color);\n overflow: auto;\n text-align: center;\n }\n \n #svgcanvas {\n line-height: normal;\n display: inline-block;\n background: var(--canvas-bg-color);\n text-align: center;\n vertical-align: middle;\n width: 640px;\n height: 480px;\n /* for widget regions that shouldn\'t react to dragging */\n -apple-dashboard-region:dashboard-region(control rectangle 0px 0px 0px 0px);\n position: relative;\n }\n \n </style>\n</div>\n<div id="workarea">\n <div id="svgcanvas" style="position: relative;">\n </div>\n</div>\n';var Zj=Qj.$id,eQ=function(){function LayersPanel(en){_classCallCheck(this,LayersPanel),this.svgCanvas=en.svgCanvas,this.uiStrings=en.uiStrings,this.updateContextPanel=en.topPanelHandlers.updateContextPanel,this.sidedrag=-1,this.sidedragging=!1,this.allowmove=!1,this.editor=en}return _createClass(LayersPanel,[{key:"changeSidePanelWidth",value:function changeSidePanelWidth(en){var tn=$("#ruler_x");$("#sidepanels").width("+="+en),$("#layerpanel").width("+="+en),tn.css("right",Number.parseInt(tn.css("right"))+en),this.editor.workarea.css("right",Number.parseInt(this.editor.workarea.css("right"))+en),this.svgCanvas.runExtensions("workareaResized")}},{key:"resizeSidePanel",value:function resizeSidePanel(en){if(this.allowmove&&-1!==this.sidedrag){this.sidedragging=!0;var tn=this.sidedrag-en.pageX,nn=$("#sidepanels").width();nn+tn>300?tn=300-nn:nn+tn<2&&(tn=2-nn),0!==tn&&(this.sidedrag-=tn,this.changeSidePanelWidth(tn))}}},{key:"toggleSidePanel",value:function toggleSidePanel(en){var tn=window.devicePixelRatio||1,nn=$("#sidepanels").width(),rn=((tn<1?nn:nn/tn)>2||en?0:150*(tn<1?1:tn))-nn;this.changeSidePanelWidth(rn)}},{key:"lmenuFunc",value:function lmenuFunc(en){var tn;switch(null==en||null===(tn=en.detail)||void 0===tn?void 0:tn.trigger){case"dupe":this.cloneLayer();break;case"delete":this.deleteLayer();break;case"merge_down":this.mergeLayer();break;case"merge_all":this.svgCanvas.mergeAllLayers(),this.updateContextPanel(),this.populateLayers()}}},{key:"init",value:function init(){var en=this,tn=document.createElement("se-cmenu-layers");tn.setAttribute("id","se-cmenu-layers-more"),tn.value="layer_moreopts",tn.setAttribute("leftclick",!0),document.body.append(tn);var nn=document.createElement("se-cmenu-layers");nn.setAttribute("id","se-cmenu-layers-list"),nn.value="layerlist",nn.setAttribute("leftclick",!1),document.body.append(nn),document.getElementById("layer_new").addEventListener("click",this.newLayer.bind(this)),document.getElementById("layer_delete").addEventListener("click",this.deleteLayer.bind(this)),document.getElementById("layer_up").addEventListener("click",(function(){return en.moveLayer.bind(en)(-1)})),document.getElementById("layer_down").addEventListener("click",(function(){return en.moveLayer.bind(en)(1)})),document.getElementById("layer_rename").addEventListener("click",this.layerRename.bind(this)),Zj("se-cmenu-layers-more").addEventListener("change",this.lmenuFunc.bind(this)),Zj("se-cmenu-layers-list").addEventListener("change",(function(tn){var nn,rn;en.lmenuFunc.bind(en)(null==tn||null===(nn=tn.detail)||void 0===nn?void 0:nn.trigger,null==tn||null===(rn=tn.detail)||void 0===rn?void 0:rn.source)})),Zj("sidepanel_handle").addEventListener("click",this.toggleSidePanel.bind(this)),this.editor.configObj.curConfig.showlayers&&this.toggleSidePanel(),Zj("sidepanel_handle").addEventListener("mousedown",(function(tn){en.sidedrag=tn.pageX,window.addEventListener("mousemove",en.resizeSidePanel.bind(en)),en.allowmove=!1,setTimeout((function(){en.allowmove=!0}),20)})),Zj("sidepanel_handle").addEventListener("mouseup",(function(tn){en.sidedragging||en.toggleSidePanel(),en.sidedrag=-1,en.sidedragging=!1})),window.addEventListener("mouseup",(function(tn){en.sidedrag=-1,en.sidedragging=!1,Zj("svg_editor").removeEventListener("mousemove",en.resizeSidePanel.bind(en))}))}},{key:"newLayer",value:function newLayer(){var en,tn=this.svgCanvas.getCurrentDrawing().getNumLayers();do{en=this.uiStrings.layers.layer+" "+ ++tn}while(this.svgCanvas.getCurrentDrawing().hasLayer(en));var nn=prompt(this.uiStrings.notification.enterUniqueLayerName,en);nn&&(this.svgCanvas.getCurrentDrawing().hasLayer(nn)?alert(this.uiStrings.notification.dupeLayerName):(this.svgCanvas.createLayer(nn),this.updateContextPanel(),this.populateLayers()))}},{key:"deleteLayer",value:function deleteLayer(){this.svgCanvas.deleteCurrentLayer()&&(this.updateContextPanel(),this.populateLayers(),$("#layerlist tr.layer").removeClass("layersel"),$("#layerlist tr.layer:first").addClass("layersel"))}},{key:"cloneLayer",value:function cloneLayer(){var en=this.svgCanvas.getCurrentDrawing().getCurrentLayerName()+" copy",tn=prompt(this.uiStrings.notification.enterUniqueLayerName,en);tn&&(this.svgCanvas.getCurrentDrawing().hasLayer(tn)?alert(this.uiStrings.notification.dupeLayerName):(this.svgCanvas.cloneLayer(tn),this.updateContextPanel(),this.populateLayers()))}},{key:"mergeLayer",value:function mergeLayer(){$("#layerlist tr.layersel").index()!==this.svgCanvas.getCurrentDrawing().getNumLayers()-1&&(this.svgCanvas.mergeLayer(),this.updateContextPanel(),this.populateLayers())}},{key:"moveLayer",value:function moveLayer(en){var tn=this.svgCanvas.getCurrentDrawing().getNumLayers(),nn=$("#layerlist tr.layersel").index();(nn>0||nn<tn-1)&&(nn+=en,this.svgCanvas.setCurrentLayerPosition(tn-nn-1),this.populateLayers())}},{key:"layerRename",value:function layerRename(){var en=$("#layerlist tr.layersel td.layername").text(),tn=prompt(this.uiStrings.notification.enterNewLayerName,"");tn&&(en===tn||this.svgCanvas.getCurrentDrawing().hasLayer(tn)?alert(this.uiStrings.notification.layerHasThatName):(this.svgCanvas.renameCurrentLayer(tn),this.populateLayers()))}},{key:"toggleHighlightLayer",value:function toggleHighlightLayer(en){var tn,nn=this,rn=[],an=this.svgCanvas.getCurrentDrawing().getNumLayers();for(tn=0;tn<an;tn++)rn[tn]=this.svgCanvas.getCurrentDrawing().getLayerName(tn);en?rn.forEach((function(tn){tn!==en&&nn.svgCanvas.getCurrentDrawing().setLayerOpacity(tn,.5)})):rn.forEach((function(en){nn.svgCanvas.getCurrentDrawing().setLayerOpacity(en,1)}))}},{key:"populateLayers",value:function populateLayers(){var en=this;this.svgCanvas.clearSelection();for(var tn=$("#layerlist tbody").empty(),nn=$("#selLayerNames").empty(),rn=this.svgCanvas.getCurrentDrawing(),an=rn.getCurrentLayerName(),sn=this.svgCanvas.getCurrentDrawing().getNumLayers();sn--;){var cn=rn.getLayerName(sn),un=$('<tr class="layer">').toggleClass("layersel",cn===an),dn=$('<td class="layervis">').toggleClass("layerinvis",!rn.getLayerVisibility(cn)),pn=$('<td class="layername">'+cn+"</td>");tn.append(un.append(dn,pn)),nn.append('<option value="'+cn+'">'+cn+"</option>")}$("#layerlist td.layername").mouseup((function(tn){$("#layerlist tr.layer").removeClass("layersel"),$(tn.currentTarget.parentNode).addClass("layersel"),en.svgCanvas.setCurrentLayer(tn.currentTarget.textContent),tn.preventDefault()})).mouseover((function(tn){en.toggleHighlightLayer(en.svgCanvas,tn.currentTarget.textContent)})).mouseout((function(){en.toggleHighlightLayer(en.svgCanvas)})),$("#layerlist td.layervis").click((function(tn){var nn=$(tn.currentTarget.parentNode).prevAll().length,rn=$("#layerlist tr.layer:eq("+nn+") td.layername").text(),an=$(tn.currentTarget).hasClass("layerinvis");en.svgCanvas.setLayerVisibility(rn,an),$(tn.currentTarget).toggleClass("layerinvis")}));for(var hn=5-$("#layerlist tr.layer").size();hn-- >0;)tn.append('<tr><td style="color:white">_</td><td/></tr>')}}]),LayersPanel}(),tQ=Qj.$id,nQ=Qj.$qa,rQ=function(){function LeftPanelHandlers(en){_classCallCheck(this,LeftPanelHandlers),this.editor=en,this.svgCanvas=en.svgCanvas}return _createClass(LeftPanelHandlers,[{key:"updateLeftPanel",value:function updateLeftPanel(en){return!en.disabled&&(nQ("#tools_left *[pressed]").forEach((function(en){en.pressed=!1})),tQ(en).pressed=!0,!0)}},{key:"clickSelect",value:function clickSelect(){this.updateLeftPanel("tool_select")&&(this.editor.workarea.css("cursor","auto"),this.svgCanvas.setMode("select"))}},{key:"clickFHPath",value:function clickFHPath(){this.updateLeftPanel("tool_fhpath")&&this.svgCanvas.setMode("fhpath")}},{key:"clickLine",value:function clickLine(){this.updateLeftPanel("tool_line")&&this.svgCanvas.setMode("line")}},{key:"clickSquare",value:function clickSquare(){this.updateLeftPanel("tool_square")&&this.svgCanvas.setMode("square")}},{key:"clickRect",value:function clickRect(){this.updateLeftPanel("tool_rect")&&this.svgCanvas.setMode("rect")}},{key:"clickFHRect",value:function clickFHRect(){this.updateLeftPanel("tool_fhrect")&&this.svgCanvas.setMode("fhrect")}},{key:"clickCircle",value:function clickCircle(){this.updateLeftPanel("tool_circle")&&this.svgCanvas.setMode("circle")}},{key:"clickEllipse",value:function clickEllipse(){this.updateLeftPanel("tool_ellipse")&&this.svgCanvas.setMode("ellipse")}},{key:"clickFHEllipse",value:function clickFHEllipse(){this.updateLeftPanel("tool_fhellipse")&&this.svgCanvas.setMode("fhellipse")}},{key:"clickImage",value:function clickImage(){this.updateLeftPanel("tool_image")&&this.svgCanvas.setMode("image")}},{key:"clickZoom",value:function clickZoom(){this.updateLeftPanel("tool_zoom")&&(this.svgCanvas.setMode("zoom"),this.editor.workarea.css("cursor",this.editor.zoomInIcon))}},{key:"dblclickZoom",value:function dblclickZoom(){this.updateLeftPanel("tool_zoom")&&(this.editor.zoomImage(),this.clickSelect())}},{key:"clickText",value:function clickText(){this.updateLeftPanel("tool_text")&&this.svgCanvas.setMode("text")}},{key:"clickPath",value:function clickPath(){this.updateLeftPanel("tool_path")&&this.svgCanvas.setMode("path")}},{key:"add",value:function add(en,tn){var nn=this;tQ(en).addEventListener("click",(function(){nn.updateLeftPanel(en)&&tn()}))}},{key:"init",value:function init(){tQ("tool_select").addEventListener("click",this.clickSelect.bind(this)),tQ("tool_fhpath").addEventListener("click",this.clickFHPath.bind(this)),tQ("tool_text").addEventListener("click",this.clickText.bind(this)),tQ("tool_image").addEventListener("click",this.clickImage.bind(this)),tQ("tool_zoom").addEventListener("click",this.clickZoom.bind(this)),tQ("tool_zoom").addEventListener("dblclick",this.dblclickZoom.bind(this)),tQ("tool_path").addEventListener("click",this.clickPath.bind(this)),tQ("tool_line").addEventListener("click",this.clickLine.bind(this)),tQ("tool_rect").addEventListener("click",this.clickRect.bind(this)),tQ("tool_square").addEventListener("click",this.clickSquare.bind(this)),tQ("tool_fhrect").addEventListener("click",this.clickFHRect.bind(this)),tQ("tool_ellipse").addEventListener("click",this.clickEllipse.bind(this)),tQ("tool_circle").addEventListener("click",this.clickCircle.bind(this)),tQ("tool_fhellipse").addEventListener("click",this.clickFHEllipse.bind(this))}}]),LeftPanelHandlers}(),iQ=Qj.$id,oQ=function(){function BottomPanelHandlers(en){_classCallCheck(this,BottomPanelHandlers),this.editor=en,this.svgCanvas=en.svgCanvas}return _createClass(BottomPanelHandlers,[{key:"changeStrokeWidth",value:function changeStrokeWidth(en){var tn=en.target.value;0===tn&&this.selectedElement&&["line","polyline"].includes(this.selectedElement.nodeName)&&(tn=1),this.svgCanvas.setStrokeWidth(tn)}},{key:"changeZoom",value:function changeZoom(en){switch(en){case"canvas":case"selection":case"layer":case"content":this.editor.zoomChanged(window,en);break;default:var tn=Number(en)/100;if(tn<.001)return void(en=.1);var nn=this.svgCanvas.getZoom(),rn=this.editor.workarea;this.editor.zoomChanged(window,{width:0,height:0,x:(rn[0].scrollLeft+rn.width()/2)/nn,y:(rn[0].scrollTop+rn.height()/2)/nn,zoom:tn},!0)}}},{key:"updateToolButtonState",value:function updateToolButtonState(){var en=this,tn="none"===this.svgCanvas.getColor("fill"),nn="none"===this.svgCanvas.getColor("stroke"),rn=["tool_fhpath","tool_line"],an=["tools_rect","tools_ellipse","tool_text","tool_path"];nn?rn.forEach((function(tn){iQ(tn).pressed&&en.editor.leftPanelHandlers.clickSelect(),$(tn).disabled=!0})):rn.forEach((function(en){iQ(en).disabled=!1})),nn&&tn?an.forEach((function(tn){iQ(tn).pressed&&en.editor.leftPanelHandlers.clickSelect(),$(tn).disabled=!0})):an.forEach((function(en){iQ(en).disabled=!1})),this.svgCanvas.runExtensions("toolButtonStateUpdate",{nofill:tn,nostroke:nn})}},{key:"updateColorpickers",value:function updateColorpickers(en){iQ("fill_color").update(this.svgCanvas,this.selectedElement,en),iQ("stroke_color").update(this.svgCanvas,this.selectedElement,en)}},{key:"handleColorPicker",value:function handleColorPicker(en,tn){var nn=tn.detail.paint;this.svgCanvas.setPaint(en,nn),this.updateToolButtonState()}},{key:"handleStrokeAttr",value:function handleStrokeAttr(en,tn){this.svgCanvas.setStrokeAttr(en,tn.detail.value)}},{key:"handleOpacity",value:function handleOpacity(en){var tn=Number.parseInt(en.currentTarget.value.split("%")[0]);this.svgCanvas.setOpacity(tn/100)}},{key:"handlePalette",value:function handlePalette(en){en.preventDefault();var tn=en.detail,nn=tn.picker,rn=tn.color,an="none"===rn?new $.jGraduate.Paint:new $.jGraduate.Paint({alpha:100,solidColor:rn.substr(1)});"fill"===nn?iQ("fill_color").setPaint(an):iQ("stroke_color").setPaint(an),this.svgCanvas.setColor(nn,rn),"none"!==rn&&1!==this.svgCanvas.getPaintOpacity(nn)&&this.svgCanvas.setPaintOpacity(nn,1),this.updateToolButtonState()}},{key:"init",value:function init(){var en=this;iQ("zoom").addEventListener("change",(function(tn){return en.changeZoom.bind(en)(tn.detail.value)})),iQ("stroke_color").addEventListener("change",(function(tn){return en.handleColorPicker.bind(en)("stroke",tn)})),iQ("fill_color").addEventListener("change",(function(tn){return en.handleColorPicker.bind(en)("fill",tn)})),iQ("stroke_width").addEventListener("change",this.changeStrokeWidth.bind(this)),iQ("stroke_style").addEventListener("change",(function(tn){return en.handleStrokeAttr.bind(en)("stroke-dasharray",tn)})),iQ("stroke_linejoin").addEventListener("change",(function(tn){return en.handleStrokeAttr.bind(en)("stroke-linejoin",tn)})),iQ("stroke_linecap").addEventListener("change",(function(tn){return en.handleStrokeAttr.bind(en)("stroke-linecap",tn)})),iQ("opacity").addEventListener("change",this.handleOpacity.bind(this)),iQ("palette").addEventListener("change",this.handlePalette.bind(this));var tn=this.editor.configObj.curConfig;iQ("fill_color").setPaint(new $.jGraduate.Paint({alpha:100,solidColor:tn.initFill.color})),iQ("stroke_color").setPaint(new $.jGraduate.Paint({alpha:100,solidColor:tn.initStroke.color}))}},{key:"selectedElement",get:function get(){return this.editor.selectedElement}},{key:"multiselected",get:function get(){return this.editor.multiselected}}]),BottomPanelHandlers}(),aQ=Qj.$id,sQ=Qj.isNullish,lQ=function(){function TopPanelHandlers(en){_classCallCheck(this,TopPanelHandlers),this.editor=en,this.svgCanvas=en.svgCanvas,this.uiStrings=en.uiStrings}return _createClass(TopPanelHandlers,[{key:"promptImgURL",value:function promptImgURL(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tn=en.cancelDeletes,nn=void 0!==tn&&tn,rn=this.svgCanvas.getHref(this.selectedElement);rn=rn.startsWith("data:")?"":rn;var an=prompt(this.editor.uiStrings.notification.enterNewImgURL,rn);an?this.editor.setImageURL(an):nn&&this.svgCanvas.deleteSelectedElements()}},{key:"updateContextPanel",value:function updateContextPanel(){var en=this,tn=this.selectedElement;sQ(tn)||tn.parentNode||(tn=null);var nn=this.svgCanvas.getCurrentDrawing().getCurrentLayerName(),rn=this.svgCanvas.getMode(),an="px"!==this.editor.configObj.curConfig.baseUnit?this.editor.configObj.curConfig.baseUnit:null,sn="pathedit"===rn,cn=document.getElementById("se-cmenu_canvas");if($("#selected_panel, #multiselected_panel, #g_panel, #rect_panel, #circle_panel,#ellipse_panel, #line_panel, #text_panel, #image_panel, #container_panel, #use_panel, #a_panel").hide(),sQ(tn))this.multiselected?($("#multiselected_panel").show(),cn.setAttribute("enablemenuitems","#group"),cn.setAttribute("disablemenuitems","#ungroup")):cn.setAttribute("disablemenuitems","#delete,#cut,#copy,#group,#ungroup,#move_front,#move_up,#move_down,#move_back");else{var un=tn.nodeName,dn=this.svgCanvas.getRotationAngle(tn);$("#angle").val(dn);var pn=10*this.svgCanvas.getBlur(tn);if(aQ("blur").value=pn,this.svgCanvas.addedNew&&"image"===un&&"image"===this.svgCanvas.getMode()&&!this.svgCanvas.getHref(tn).startsWith("data:")&&this.promptImgURL({cancelDeletes:!0}),sn||"pathedit"===rn){var hn=this.path.getNodePoint();if($("#tool_add_subpath").pressed=!1,$("#tool_node_delete").toggleClass("disabled",!this.path.canDeleteNodes),hn){var gn=$("#seg_type");an&&(hn.x=eA(hn.x),hn.y=eA(hn.y)),$("#path_node_x").val(hn.x),$("#path_node_y").val(hn.y),hn.type?gn.val(hn.type).removeAttr("disabled"):gn.val(4).attr("disabled","disabled")}return}if($("#selected_panel").show(),["line","circle","ellipse"].includes(un))$("#xy_panel").hide();else{var An,mn;if(["g","polyline","path"].includes(un)){var vn=this.svgCanvas.getStrokedBBox([tn]);vn&&(An=vn.x,mn=vn.y)}else An=tn.getAttribute("x"),mn=tn.getAttribute("y");an&&(An=eA(An),mn=eA(mn)),$("#selected_x").val(An||0),$("#selected_y").val(mn||0),$("#xy_panel").show()}aQ("tool_topath").style.display=["image","text","path","g","use"].includes(un)?"none":"block",aQ("tool_reorient").style.display="path"===un?"block":"none",aQ("tool_reorient").disabled=0===dn;var yn={g:[],a:[],rect:["rx","width","height"],image:["width","height"],circle:["cx","cy","r"],ellipse:["cx","cy","rx","ry"],line:["x1","y1","x2","y2"],text:[],use:[]},_n=tn.tagName,wn=null;if("a"===_n&&(wn=this.svgCanvas.getHref(tn),$("#g_panel").show()),"a"!==tn.parentNode.tagName||$(tn).siblings().length||($("#a_panel").show(),wn=this.svgCanvas.getHref(tn.parentNode)),$("#tool_make_link, #tool_make_link_multi").toggle(!wn),wn&&$("#link_url").val(wn),yn[_n]){var xn=yn[_n];if($("#"+_n+"_panel").show(),xn.forEach((function(nn){var rn=tn.getAttribute(nn);if("px"!==en.editor.configObj.curConfig.baseUnit&&tn[nn]){var an=tn[nn].baseVal.value;rn=eA(an)}aQ("".concat(_n,"_").concat(nn)).value=rn||0})),"text"===_n){$("#text_panel").css("display","inline"),$("#tool_font_size").css("display","inline"),aQ("tool_italic").pressed=this.svgCanvas.getItalic(),aQ("tool_bold").pressed=this.svgCanvas.getBold(),$("#tool_font_family").val(tn.getAttribute("font-family")),$("#font_size").val(tn.getAttribute("font-size")),$("#text").val(tn.textContent);var Sn=aQ("tool_text_anchor_start"),Cn=aQ("tool_text_anchor_middle"),kn=aQ("tool_text_anchor_end");switch(tn.getAttribute("text-anchor")){case"start":Sn.pressed=!0,Cn.pressed=!1,kn.pressed=!1;break;case"middle":Sn.pressed=!1,Cn.pressed=!0,kn.pressed=!1;break;case"end":Sn.pressed=!1,Cn.pressed=!1,kn.pressed=!0}this.svgCanvas.addedNew&&setTimeout((function(){$("#text").focus().select()}),100)}else if("image"===_n&&"image"===this.svgCanvas.getMode())this.svgCanvas.setImageURL(this.svgCanvas.getHref(tn));else if("g"===_n||"use"===_n){$("#container_panel").show();var Bn=this.svgCanvas.getTitle(),En=$("#g_title")[0];En.value=Bn,function setInputWidth(en){var tn=Math.min(Math.max(12+6*en.value.length,50),300);$(en).width(tn)}(En),$("#g_title").prop("disabled","use"===_n)}}cn.setAttribute(("g"===_n?"en":"dis")+"ablemenuitems","#ungroup"),cn.setAttribute(("g"!==_n&&this.multiselected?"en":"dis")+"ablemenuitems","#group")}(aQ("tool_undo").disabled=0===this.svgCanvas.undoMgr.getUndoStackSize(),aQ("tool_redo").disabled=0===this.svgCanvas.undoMgr.getRedoStackSize(),this.svgCanvas.addedNew=!1,tn&&!sn||this.multiselected)?($("#selLayerNames").removeAttr("disabled").val(nn),document.getElementById("se-cmenu_canvas").setAttribute("enablemenuitems","#delete,#cut,#copy,#move_front,#move_up,#move_down,#move_back")):$("#selLayerNames").attr("disabled","disabled")}},{key:"showSourceEditor",value:function showSourceEditor(en,tn){var nn=document.getElementById("se-svg-editor-dialog");if("open"!==nn.getAttribute("dialog")){var rn=this.svgCanvas.getSvgString();nn.setAttribute("dialog","open"),nn.setAttribute("value",rn),nn.setAttribute("copysec",Boolean(tn)),nn.setAttribute("applysec",!tn)}}},{key:"clickWireframe",value:function clickWireframe(){aQ("tool_wireframe").pressed=!aQ("tool_wireframe").pressed,this.editor.workarea.toggleClass("wireframe");var en=$("#wireframe_rules");en.length?en.empty():$('<style id="wireframe_rules"></style>').appendTo("head"),this.editor.updateWireFrame()}},{key:"clickUndo",value:function clickUndo(){var en=this.editor.svgCanvas.undoMgr;en.getUndoStackSize()>0&&(en.undo(),this.editor.layersPanel.populateLayers())}},{key:"clickRedo",value:function clickRedo(){var en=this.editor.svgCanvas.undoMgr;en.getRedoStackSize()>0&&(en.redo(),this.editor.layersPanel.populateLayers())}},{key:"changeRectRadius",value:function changeRectRadius(en){this.svgCanvas.setRectRadius(en.target.value)}},{key:"changeFontSize",value:function changeFontSize(en){this.svgCanvas.setFontSize(en.target.value)}},{key:"changeRotationAngle",value:function changeRotationAngle(en){this.svgCanvas.setRotationAngle(en.target.value),$("#tool_reorient").toggleClass("disabled",0===Number.parseInt(en.target.value))}},{key:"changeBlur",value:function changeBlur(en){this.svgCanvas.setBlur(en.target.value/10,!0)}},{key:"clickGroup",value:function clickGroup(){this.editor.multiselected?this.svgCanvas.groupSelectedElements():this.editor.selectedElement&&this.svgCanvas.ungroupSelectedElement()}},{key:"clickClone",value:function clickClone(){this.svgCanvas.cloneSelectedElements(20,20)}},{key:"clickAlignEle",value:function clickAlignEle(en){this.svgCanvas.alignSelectedElements(en.detail.value,"page")}},{key:"clickAlign",value:function clickAlign(en){this.svgCanvas.alignSelectedElements(en,$("#align_relative_to").val())}},{key:"attrChanger",value:function attrChanger(en){var tn=en.target.getAttribute("data-attr"),nn=en.target.value;if(!rA(tn,nn,this.selectedElement))return en.target.value=this.selectedElement().getAttribute(tn),alert(this.uiStrings.notification.invalidAttrValGiven),!1;if("id"!==tn&&"class"!==tn)if(isNaN(nn))nn=this.svgCanvas.convertToNum(tn,nn);else if("px"!==this.editor.configObj.curConfig.baseUnit){var rn=Jf();(this.selectedElement[tn]||"pathedit"===this.svgCanvas.getMode()||"x"===tn||"y"===tn)&&(nn*=rn[this.editor.configObj.curConfig.baseUnit])}if("id"===tn){var an=this.selectedElement;this.svgCanvas.clearSelection(),an.id=nn,this.svgCanvas.addToSelection([an],!0)}else this.svgCanvas.changeSelectedAttribute(tn,nn);return!0}},{key:"convertToPath",value:function convertToPath(){sQ(this.selectedElement)||this.svgCanvas.convertToPath()}},{key:"reorientPath",value:function reorientPath(){sQ(this.selectedElement)||this.path.reorient()}},{key:"makeHyperlink",value:function makeHyperlink(){if(!sQ(this.selectedElement)||this.multiselected){var en=prompt(this.uiStrings.notification.enterNewLinkURL,"http://");en&&this.svgCanvas.makeHyperlink(en)}}},{key:"linkControlPoints",value:function linkControlPoints(){var en=aQ("tool_node_link").pressed;aQ("tool_node_link").pressed=!en,this.path.linkControlPoints(en)}},{key:"clonePathNode",value:function clonePathNode(){this.path.getNodePoint()&&this.path.clonePathNode()}},{key:"deletePathNode",value:function deletePathNode(){this.path.getNodePoint()&&this.path.deletePathNode()}},{key:"addSubPath",value:function addSubPath(){var en=$("#tool_add_subpath"),tn=!en.hasClass("pressed");en.pressed=tn,this.path.addSubPath(tn)}},{key:"opencloseSubPath",value:function opencloseSubPath(){this.path.opencloseSubPath()}},{key:"deleteSelected",value:function deleteSelected(){sQ(this.selectedElement)&&!this.multiselected||this.svgCanvas.deleteSelectedElements()}},{key:"moveToTopSelected",value:function moveToTopSelected(){sQ(this.selectedElement)||this.svgCanvas.moveToTopSelectedElement()}},{key:"moveToBottomSelected",value:function moveToBottomSelected(){sQ(this.selectedElement)||this.svgCanvas.moveToBottomSelectedElement()}},{key:"clickBold",value:function clickBold(){return this.svgCanvas.setBold(!this.svgCanvas.getBold()),this.updateContextPanel(),!1}},{key:"clickItalic",value:function clickItalic(){return this.svgCanvas.setItalic(!this.svgCanvas.getItalic()),this.updateContextPanel(),!1}},{key:"clickTextAnchor",value:function clickTextAnchor(en){return this.svgCanvas.setTextAnchor(en),this.updateContextPanel(),!1}},{key:"init",value:function init(){var en=this,tn=document.createElement("se-svg-source-editor-dialog");tn.setAttribute("id","se-svg-editor-dialog"),document.body.append(tn),aQ("tool_source").addEventListener("click",this.showSourceEditor.bind(this)),aQ("tool_wireframe").addEventListener("click",this.clickWireframe.bind(this)),aQ("tool_undo").addEventListener("click",this.clickUndo.bind(this)),aQ("tool_redo").addEventListener("click",this.clickRedo.bind(this)),aQ("tool_clone").addEventListener("click",this.clickClone.bind(this)),aQ("tool_clone_multi").addEventListener("click",this.clickClone.bind(this)),aQ("tool_delete").addEventListener("click",this.deleteSelected.bind(this)),aQ("tool_delete_multi").addEventListener("click",this.deleteSelected.bind(this)),aQ("tool_move_top").addEventListener("click",this.moveToTopSelected.bind(this)),aQ("tool_move_bottom").addEventListener("click",this.moveToBottomSelected.bind(this)),aQ("tool_topath").addEventListener("click",this.convertToPath.bind(this)),aQ("tool_make_link").addEventListener("click",this.makeHyperlink.bind(this)),aQ("tool_make_link_multi").addEventListener("click",this.makeHyperlink.bind(this)),aQ("tool_reorient").addEventListener("click",this.reorientPath.bind(this)),aQ("tool_group_elements").addEventListener("click",this.clickGroup.bind(this)),aQ("tool_position").addEventListener("change",(function(tn){return en.clickAlignEle.bind(en)(tn)})),aQ("tool_align_left").addEventListener("click",(function(){return en.clickAlign.bind(en)("left")})),aQ("tool_align_right").addEventListener("click",(function(){return en.clickAlign.bind(en)("right")})),aQ("tool_align_center").addEventListener("click",(function(){return en.clickAlign.bind(en)("center")})),aQ("tool_align_top").addEventListener("click",(function(){return en.clickAlign.bind(en)("top")})),aQ("tool_align_bottom").addEventListener("click",(function(){return en.clickAlign.bind(en)("bottom")})),aQ("tool_align_middle").addEventListener("click",(function(){return en.clickAlign.bind(en)("middle")})),aQ("tool_node_clone").addEventListener("click",this.clonePathNode.bind(this)),aQ("tool_node_delete").addEventListener("click",this.deletePathNode.bind(this)),aQ("tool_openclose_path").addEventListener("click",this.opencloseSubPath.bind(this)),aQ("tool_add_subpath").addEventListener("click",this.addSubPath.bind(this)),aQ("tool_node_link").addEventListener("click",this.linkControlPoints.bind(this)),aQ("angle").addEventListener("change",this.changeRotationAngle.bind(this)),aQ("blur").addEventListener("change",this.changeBlur.bind(this)),aQ("rect_rx").addEventListener("change",this.changeRectRadius.bind(this)),aQ("font_size").addEventListener("change",this.changeFontSize.bind(this)),aQ("tool_ungroup").addEventListener("click",this.clickGroup.bind(this)),aQ("tool_bold").addEventListener("click",this.clickBold.bind(this)),aQ("tool_italic").addEventListener("click",this.clickItalic.bind(this)),aQ("tool_text_anchor_start").addEventListener("click",(function(){return en.clickTextAnchor.bind(en)("start")})),aQ("tool_text_anchor_middle").addEventListener("click",(function(){return en.clickTextAnchor.bind(en)("middle")})),aQ("tool_text_anchor_end").addEventListener("click",(function(){return en.clickTextAnchor.bind(en)("end")})),aQ("tool_unlink_use").addEventListener("click",this.clickGroup.bind(this)),aQ("change_image_url").addEventListener("click",this.promptImgURL.bind(this)),["elem_id","elem_class","circle_cx","circle_cy","circle_r","ellipse_cx","ellipse_cy","ellipse_rx","ellipse_ry","selected_x","selected_y","rect_width","rect_height","line_x1","line_x2","line_y2","image_width","image_height","path_node_x","path_node_y"].forEach((function(tn){return aQ(tn).addEventListener("change",en.attrChanger.bind(en))}))}},{key:"selectedElement",get:function get(){return this.editor.selectedElement}},{key:"multiselected",get:function get(){return this.editor.multiselected}},{key:"path",get:function get(){return this.svgCanvas.pathActions}}]),TopPanelHandlers}(),cQ=document.createElement("template");cQ.innerHTML='\n <style>\n \n /* Rulers\n——————————————————————————————————————*/\n\n#rulers > div {\n position: absolute;\n background: var(--ruler-color);\n z-index: 1;\n overflow: hidden;\n}\n\n#ruler_corner {\n top: 41px;\n left: 41px;\n width: 15px;\n height: 15px;\n}\n\n#ruler_x {\n height: 15px;\n top: 41px;\n left: 56px;\n right: 30px;\n border-bottom: 1px solid;\n border-left: 1px solid #777;\n}\n\n#ruler_y {\n width: 15px;\n top: 55px;\n left: 41px;\n bottom: 41px;\n border-right: 1px solid;\n border-top: 1px solid #777;\n}\n\n#ruler_x canvas:first-child {\n margin-left: -16px;\n}\n\n#ruler_x canvas {\n float: left;\n}\n\n#ruler_y canvas {\n margin-top: -16px;\n}\n\n#ruler_x > div,\n#ruler_y > div {\n overflow: hidden;\n}\n/*\n@media screen and (max-width: 1250px) {\n #rulers #ruler_corner,\n #rulers #ruler_x {\n top: 71px;\n }\n \n #rulers #ruler_y {\n top: 57px;\n }\n}\n*/\n </style>\n <div id="rulers">\n <div id="ruler_corner"></div>\n <div id="ruler_x">\n <div>\n <canvas height="15"></canvas>\n </div>\n </div>\n <div id="ruler_y">\n <div>\n <canvas width="15"></canvas>\n </div>\n </div>\n</div>\n';var uQ=function(){function Rulers(en){_classCallCheck(this,Rulers),this.rulerIntervals=[];for(var tn=.1;tn<1e5;tn*=10)this.rulerIntervals.push(tn),this.rulerIntervals.push(2*tn),this.rulerIntervals.push(5*tn);this.svgCanvas=en.svgCanvas,this.editor=en,document.body.append(cQ.content.cloneNode(!0))}return _createClass(Rulers,[{key:"manageScroll",value:function manageScroll(){var en=document.getElementById("ruler_x"),tn=document.getElementById("ruler_y");en&&(en.scrollLeft=this.editor.workarea[0].scrollLeft),tn&&(tn.scrollTop=this.editor.workarea[0].scrollTop)}},{key:"updateRulers",value:function updateRulers(en,tn){var nn,rn;tn||(tn=this.svgCanvas.getZoom()),en||(en=$("#svgcanvas"));var an=3e4,sn=this.svgCanvas.getContentElem(),cn=Jf()[this.editor.configObj.curConfig.baseUnit];for(nn=0;nn<2;nn++){var un=0===nn,dn=un?"x":"y",pn=un?"width":"height",hn=Number(sn.getAttribute(dn)),gn=$("#ruler_"+dn+" canvas:first"),An=gn.clone();gn.replaceWith(An);var mn=An[0],vn=en[pn](),yn=vn;mn.parentNode.style[pn]=yn+"px";var _n=mn.getContext("2d"),wn=void 0,xn=void 0,Sn=void 0;if(_n.fillStyle="rgb(200,0,0)",_n.fillRect(0,0,mn.width,mn.height),An.siblings().remove(),vn>=an){Sn=Number.parseInt(vn/an)+1,(wn=[])[0]=_n;var Cn=void 0;for(rn=1;rn<Sn;rn++)mn[pn]=an,Cn=mn.cloneNode(!0),mn.parentNode.append(Cn),wn[rn]=Cn.getContext("2d");Cn[pn]=vn%an,vn=an}mn[pn]=vn;var kn=cn*tn,Bn=50/kn,En=1;for(rn=0;rn<this.rulerIntervals.length&&(En=xn=this.rulerIntervals[rn],!(Bn<=xn));rn++);var Pn=En*kn;_n.font="9px sans-serif";for(var Ln=hn/kn%En*kn,Tn=Ln-Pn,Nn=0;Ln<yn;){Tn+=Pn;var In=Math.round(Ln)+.5;un?(_n.moveTo(In,15),_n.lineTo(In,0)):(_n.moveTo(15,In),_n.lineTo(0,In)),xn=(Tn-hn)/kn;var On=void 0;if(En>=1)On=Math.round(xn);else{var Fn=String(En).split(".")[1].length;On=xn.toFixed(Fn)}if(0!==On&&1e3!==On&&On%1e3==0&&(On=On/1e3+"K"),un)_n.fillText(On,Ln+2,8);else{var Un=String(On).split("");for(rn=0;rn<Un.length;rn++)_n.fillText(Un[rn],1,Ln+9+9*rn)}var Mn=Pn/10;for(rn=1;rn<10;rn++){var Rn=Math.round(Ln+Mn*rn)+.5;if(wn&&Rn>vn){if(Nn++,_n.stroke(),Nn>=Sn){rn=10,Ln=yn;continue}_n=wn[Nn],Ln-=an,Rn=Math.round(Ln+Mn*rn)+.5}var Dn=rn%2?12:10;un?(_n.moveTo(Rn,15),_n.lineTo(Rn,Dn)):(_n.moveTo(15,Rn),_n.lineTo(Dn,Rn))}Ln+=Pn}_n.strokeStyle="#000",_n.stroke()}}}]),Rulers}(),dQ=function readySignal(){var en=window.opener||window.parent;if(en)try{var tn=new en.CustomEvent("svgEditorReady",{bubbles:!0,cancelable:!0});en.document.documentElement.dispatchEvent(tn)}catch(en){}},pQ=Qj.$id,hQ=function(){function EditorStartup(){_classCallCheck(this,EditorStartup),this.extensionsAdded=!1,this.messageQueue=[]}var en,nn;return _createClass(EditorStartup,[{key:"init",value:(nn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var en,tn,nn,rn,an,sn,cn,un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn,xn,Sn,Cn,kn,Bn,En,Pn,Ln,Tn,Nn,In,On=this;return regeneratorRuntime.wrap((function _callee$(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:pQ("svg_editor").style.visibility="hidden";try{document.body.append(Jj.content.cloneNode(!0)),(en=document.createElement("se-img-prop-dialog")).setAttribute("id","se-img-prop"),document.body.append(en),(tn=document.createElement("se-edit-prefs-dialog")).setAttribute("id","se-edit-prefs"),document.body.append(tn),(nn=document.createElement("se-cmenu_canvas-dialog")).setAttribute("id","se-cmenu_canvas"),document.body.append(nn),(rn=document.createElement("se-alert-dialog")).setAttribute("id","se-alert-dialog"),document.body.append(rn),(an=document.createElement("se-prompt-dialog")).setAttribute("id","se-prompt-dialog"),document.body.append(an),(sn=document.createElement("se-export-dialog")).setAttribute("id","se-export-dialog"),document.body.append(sn)}catch(en){console.error(en)}return"localStorage"in window&&(this.storage=window.localStorage),this.configObj.load(),this.svgCanvas=new Qj(pQ("svgcanvas"),this.configObj.curConfig),this.leftPanelHandlers=new rQ(this),this.bottomPanelHandlers=new oQ(this),this.topPanelHandlers=new lQ(this),this.layersPanel=new eQ(this),cn=this.svgCanvas.undoMgr,this.workarea=$("#workarea"),this.canvMenu=document.getElementById("se-cmenu_canvas"),this.exportWindow=null,this.defaultImageURL=this.configObj.curConfig.imgPath+"logo.svg",this.uiContext="toolbars",dQ(),this.rulers=new uQ(this),this.layersPanel.populateLayers(),this.selectedElement=null,this.multiselected=!1,$("#cur_context_panel").delegate("a","click",(function(en){var tn=$(en.currentTarget);return tn.attr("data-root")?On.svgCanvas.leaveContext():On.svgCanvas.setContext(tn.text()),On.svgCanvas.clearSelection(),!1})),this.svgCanvas.bind("selected",this.selectedChanged.bind(this)),this.svgCanvas.bind("transition",this.elementTransition.bind(this)),this.svgCanvas.bind("changed",this.elementChanged.bind(this)),this.svgCanvas.bind("exported",this.exportHandler.bind(this)),this.svgCanvas.bind("exportedPDF",function(en,tn){tn.output&&(tn.exportWindowName&&(this.exportWindow=window.open("",this.exportWindowName)),this.exportWindow&&!this.exportWindow.closed?this.exportWindow.location.href=tn.output:seAlert(this.uiStrings.notification.popupWindowBlocked))}.bind(this)),this.svgCanvas.bind("zoomed",this.zoomChanged.bind(this)),this.svgCanvas.bind("zoomDone",this.zoomDone.bind(this)),this.svgCanvas.bind("updateCanvas",function(en,tn){var nn=tn.center,rn=tn.newCtr;this.updateCanvas(nn,rn)}.bind(this)),this.svgCanvas.bind("contextset",this.contextChanged.bind(this)),this.svgCanvas.bind("extension_added",this.extAdded.bind(this)),this.svgCanvas.textActions.setInputElem($("#text")[0]),this.setBackground(this.configObj.pref("bkgd_color"),this.configObj.pref("bkgd_url")),un=this.svgCanvas.getResolution(),"px"!==this.configObj.curConfig.baseUnit&&(un.w=eA(un.w)+this.configObj.curConfig.baseUnit,un.h=eA(un.h)+this.configObj.curConfig.baseUnit),$("#se-img-prop").attr("dialog","close"),$("#se-img-prop").attr("title",this.svgCanvas.getDocumentTitle()),$("#se-img-prop").attr("width",un.w),$("#se-img-prop").attr("height",un.h),$("#se-img-prop").attr("save",this.configObj.pref("img_save")),$("select").change((function(en){$(en.currentTarget).blur()})),dn=!1,$("#selLayerNames").change((function(en){var tn=en.currentTarget.options[en.currentTarget.selectedIndex].value,nn=On.uiStrings.notification.Qmovethis.elemsToLayer.replace("%s",tn),rn=function moveToLayer(en){en&&(dn=!0,On.svgCanvas.moveSelectedToLayer(tn),On.svgCanvas.clearSelection(),On.layersPanel.populateLayers())};if(tn)if(dn)rn(!0);else{if(!seConfirm(nn))return;rn(!0)}})),$("#tool_font_family").change((function(en){On.svgCanvas.setFontFamily(en.originalEvent.detail.value)})),$("#seg_type").change((function(en){On.svgCanvas.setSegType($(en.currentTarget).val())})),$("#text").bind("keyup input",(function(en){On.svgCanvas.setTextContent(en.currentTarget.value)})),$("#image_url").change((function(en){On.setImageURL(en.currentTarget.value)})),$("#link_url").change((function(en){en.currentTarget.value.length?On.svgCanvas.setLinkURL(en.currentTarget.value):On.svgCanvas.removeHyperlink()})),$("#g_title").change((function(en){On.svgCanvas.setGroupTitle(en.currentTarget.value)})),pn=this.workarea[0],hn=null,gn=null,An=!1,mn=!1,$("#svgcanvas").bind("mousemove mouseup",(function(en){return!1===An||(pn.scrollLeft-=en.clientX-hn,pn.scrollTop-=en.clientY-gn,hn=en.clientX,gn=en.clientY,"mouseup"===en.type&&(An=!1),!1)})).mousedown((function(en){return 1!==en.button&&!0!==mn||(An=!0,hn=en.clientX,gn=en.clientY,!1)})),$(window).mouseup((function(){An=!1})),$(document).bind("keydown","space",function(en){this.svgCanvas.spaceKey=mn=!0,en.preventDefault()}.bind(this)).bind("keyup","space",function(en){en.preventDefault(),this.svgCanvas.spaceKey=mn=!1}.bind(this)).bind("keydown","shift",function(en){"zoom"===this.svgCanvas.getMode()&&this.workarea.css("cursor","crosshair")}.bind(this)).bind("keyup","shift",function(en){"zoom"===this.svgCanvas.getMode()&&this.workarea.css("cursor","crosshair")}.bind(this)),this.setPanning=function(en){On.svgCanvas.spaceKey=mn=en},vn=$("#main_icon"),yn=$("#main_icon span"),_n=$("#main_menu"),wn=!1,xn=0,Sn=!0,Cn=!1,$(window).mouseup((function(en){wn||(vn.removeClass("buttondown"),"INPUT"!==en.target.tagName?_n.fadeOut(200):Cn||(Cn=!0,$(en.target).click((function(){_n.css("margin-left","-9999px").show()})))),wn=!1})).mousedown((function(en){$(en.target).closest(".contextMenu").length||$(".contextMenu").fadeOut(250)})),yn.bind("mousedown",(function(){vn.hasClass("buttondown")?_n.fadeOut(200):(_n.css("margin-left",0).show(),xn||(xn=_n.height()),_n.css("height",0).animate({height:xn},200),wn=!0),vn.toggleClass("buttondown buttonup")})).hover((function(){wn=!0})).mouseout((function(){wn=!1})),(kn=$("#main_menu li")).mouseover((function(){var en=this;Sn="rgba(0, 0, 0, 0)"===$(this).css("background-color"),kn.unbind("mouseover"),Sn&&kn.mouseover((function(){en.style.backgroundColor="#FFC"})).mouseout((function(en){return en.currentTarget.style.backgroundColor="transparent",!0}))})),En=function unfocus(){$(Bn).blur()},$("#svg_editor").find("button, select, input:not(#text)").focus((function(){Bn=On,On.uiContext="toolbars",On.workarea.mousedown(En)})).blur((function(){On.uiContext="canvas",On.workarea.unbind("mousedown",En),"textedit"===On.svgCanvas.getMode()&&$("#text").focus()})),Pn={width:$(window).width(),height:$(window).height()},window.addEventListener("resize",(function(en){Object.entries(Pn).forEach((function(en){var tn=_slicedToArray(en,2),nn=tn[0],rn=tn[1],an=$(window)[nn]();On.workarea[0]["scroll"+("width"===nn?"Left":"Top")]-=(an-rn)/2,Pn[nn]=an}))})),this.workarea.scroll((function(){On.rulers.manageScroll()})),$("#url_notice").click((function(){seAlert(On.title)})),pQ("stroke_width").value=this.configObj.curConfig.initStroke.width,pQ("opacity").value=100*this.configObj.curConfig.initOpacity,$(".push_button").mousedown((function(){$(On).hasClass("disabled")||$(On).addClass("push_button_pressed").removeClass("push_button")})).mouseout((function(){$(On).removeClass("push_button_pressed").addClass("push_button")})).mouseup((function(){$(On).removeClass("push_button_pressed").addClass("push_button")})),this.layersPanel.populateLayers(),Ln=function centerCanvas(){On.workarea.css("line-height",On.workarea.height()+"px")},$(window).bind("load resize",Ln),$("input,select").attr("autocomplete","off"),this.leftPanelHandlers.init(),this.bottomPanelHandlers.init(),this.topPanelHandlers.init(),this.layersPanel.init(),pQ("tool_clear").addEventListener("click",this.clickClear.bind(this)),pQ("tool_open").addEventListener("click",(function(en){en.preventDefault(),On.clickOpen(),window.dispatchEvent(new CustomEvent("openImage"))})),pQ("tool_import").addEventListener("click",(function(en){On.clickImport(),window.dispatchEvent(new CustomEvent("importImages"))})),pQ("tool_save").addEventListener("click",function(en){"open"===document.getElementById("se-svg-editor-dialog").getAttribute("dialog")?this.saveSourceEditor():this.clickSave()}.bind(this)),pQ("tool_export").addEventListener("click",(function(en){document.getElementById("se-export-dialog").setAttribute("dialog","open")})),pQ("se-export-dialog").addEventListener("change",this.clickExport.bind(this)),pQ("tool_docprops").addEventListener("click",this.showDocProperties.bind(this)),pQ("tool_editor_prefs").addEventListener("click",this.showPreferences.bind(this)),pQ("tool_editor_homepage").addEventListener("click",this.openHomePage.bind(this)),pQ("se-img-prop").addEventListener("change",function(en){"closed"===en.detail.dialog?this.hideDocProperties():this.saveDocProperties(en)}.bind(this)),pQ("se-edit-prefs").addEventListener("change",function(en){"closed"===en.detail.dialog?this.hidePreferences():this.savePreferences(en)}.bind(this)),pQ("se-svg-editor-dialog").addEventListener("change",function(en){var tn,nn;"click"===(null==en||null===(tn=en.detail)||void 0===tn?void 0:tn.copy)?this.cancelOverlays(en):"closed"===(null==en||null===(nn=en.detail)||void 0===nn?void 0:nn.dialog)?this.hideSourceEditor():this.saveSourceEditor(en)}.bind(this)),pQ("se-cmenu_canvas").addEventListener("change",function(en){var tn,nn=null==en||null===(tn=en.detail)||void 0===tn?void 0:tn.trigger;switch(nn){case"delete":this.svgCanvas.deleteSelectedElements();break;case"cut":this.cutSelected();break;case"copy":this.copySelected();break;case"paste":this.svgCanvas.pasteElements();break;case"paste_in_place":this.svgCanvas.pasteElements("in_place");break;case"group":case"group_elements":this.svgCanvas.groupSelectedElements();break;case"ungroup":this.svgCanvas.ungroupSelectedElement();break;case"move_front":this.svgCanvas.moveToTopSelectedElement();break;case"move_up":this.moveUpDownSelected("Up");break;case"move_down":this.moveUpDownSelected("Down");break;case"move_back":this.svgCanvas.moveToBottomSelected();break;default:Wj(nn)&&Xj(nn).call()}}.bind(this)),this.ready(function(){var en=pQ("tool_".concat(this.configObj.curConfig.initTool)),tn=pQ(this.configObj.curConfig.initTool),nn=pQ("tool_select"),rn=pQ("se-edit-prefs");en?en.click():tn?tn.click():nn.click(),this.configObj.curConfig.wireframe&&pQ("tool_wireframe").click(),$("#rulers").toggle(Boolean(this.configObj.curConfig.showRulers)),this.configObj.curConfig.showRulers&&rn.setAttribute("showrulers",!0),this.configObj.curConfig.baseUnit&&rn.setAttribute("baseunit",this.configObj.curConfig.baseUnit),this.configObj.curConfig.gridSnapping&&rn.setAttribute("gridsnappingon",!0),this.configObj.curConfig.snappingStep&&rn.setAttribute("gridsnappingstep",this.configObj.curConfig.snappingStep),this.configObj.curConfig.gridColor&&rn.setAttribute("gridcolor",this.configObj.curConfig.gridColor)}.bind(this)),pQ("zoom").value=(100*this.svgCanvas.getZoom()).toFixed(1),this.canvMenu.setAttribute("disableallmenu",!0),this.canvMenu.setAttribute("enablemenuitems","#delete,#cut,#copy"),this.enableOrDisableClipboard(),window.addEventListener("storage",function(en){"svgedit_clipboard"===en.key&&this.enableOrDisableClipboard()}.bind(this)),window.addEventListener("beforeunload",function(en){return 0===cn.getUndoStackSize()&&(this.showSaveWarning=!1),!(!this.configObj.curConfig.no_save_warning&&this.showSaveWarning)||(en.returnValue=this.uiStrings.notification.unsavedChanges,this.uiStrings.notification.unsavedChanges)}.bind(this)),window.FileReader&&(Tn=this,Nn=function importImage(en){document.getElementById("se-prompt-dialog").title=Tn.uiStrings.notification.loadingImage,en.stopPropagation(),en.preventDefault(),$("#main_menu").hide();var tn,nn="drop"===en.type?en.dataTransfer.files[0]:this.files[0];nn?nn.type.includes("image")&&(nn.type.includes("svg")?((tn=new FileReader).onloadend=function(en){var tn=Tn.svgCanvas.importSvgString(en.target.result,!0);Tn.svgCanvas.ungroupSelectedElement(),Tn.svgCanvas.ungroupSelectedElement(),Tn.svgCanvas.groupSelectedElements(),Tn.svgCanvas.alignSelectedElements("m","page"),Tn.svgCanvas.alignSelectedElements("c","page"),Tn.svgCanvas.selectOnly([tn]),document.getElementById("se-prompt-dialog").setAttribute("close",!0)},tn.readAsText(nn)):((tn=new FileReader).onloadend=function(en){var tn=en.target.result,nn=100,rn=100,an=new Image;an.style.opacity=0,an.addEventListener("load",(function(){nn=an.offsetWidth||an.naturalWidth||an.width,rn=an.offsetHeight||an.naturalHeight||an.height,function insertNewImage(en,nn){var rn=Tn.svgCanvas.addSVGElementFromJson({element:"image",attr:{x:0,y:0,width:en,height:nn,id:Tn.svgCanvas.getNextId(),style:"pointer-events:inherit"}});Tn.svgCanvas.setHref(rn,tn),Tn.svgCanvas.selectOnly([rn]),Tn.svgCanvas.alignSelectedElements("m","page"),Tn.svgCanvas.alignSelectedElements("c","page"),Tn.topPanelHandlers.updateContextPanel(),document.getElementById("se-prompt-dialog").setAttribute("close",!0)}(nn,rn)})),an.src=tn},tn.readAsDataURL(nn))):document.getElementById("se-prompt-dialog").setAttribute("close",!0)},this.workarea[0].addEventListener("dragenter",this.onDragEnter),this.workarea[0].addEventListener("dragover",this.onDragOver),this.workarea[0].addEventListener("dragleave",this.onDragLeave),this.workarea[0].addEventListener("drop",Nn),In=$('<input type="file">').change(Nn),$(window).on("importImages",(function(){return In.click()}))),this.updateCanvas(!0),this.extAndLocaleFunc(),this.ready((function(){Yj()})),Fn.next=111,this.runCallbacks();case 111:window.addEventListener("message",this.messageListener.bind(this));case 112:case"end":return Fn.stop()}}),_callee,this)}))),function init(){return nn.apply(this,arguments)})},{key:"extAndLocaleFunc",value:(en=_asyncToGenerator(regeneratorRuntime.mark((function _callee4(){var en,nn,rn,an=this;return regeneratorRuntime.wrap((function _callee4$(sn){for(;;)switch(sn.prev=sn.next){case 0:return sn.next=2,this.putLocale(this.configObj.pref("lang"),this.goodLangs);case 2:return en=sn.sent,nn=en.langParam,rn=en.langData,sn.next=7,this.setLang(nn,rn);case 7:return pQ("svg_editor").style.visibility="visible",sn.prev=8,sn.next=11,Promise.all(this.configObj.curConfig.extensions.map(function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(en){var rn,sn,cn,un,dn;return regeneratorRuntime.wrap((function _callee2$(pn){for(;;)switch(pn.prev=pn.next){case 0:return pn.prev=0,pn.next=3,tn.import("./extensions/".concat(encodeURIComponent(en),"/").concat(encodeURIComponent(en),".js"));case 3:return rn=pn.sent,sn=rn.default,cn=sn.name,un=void 0===cn?en:cn,dn=sn.init,pn.abrupt("return",an.addExtension(un,dn&&dn.bind(an),{$:$,langParam:nn}));case 8:return pn.prev=8,pn.t0=pn.catch(0),console.error("Extension failed to load: "+en+"; ",pn.t0),pn.abrupt("return",void 0);case 12:case"end":return pn.stop()}}),_callee2,null,[[0,8]])})));return function(tn){return en.apply(this,arguments)}}()));case 11:return sn.next=13,Promise.all(this.configObj.curConfig.userExtensions.map(function(){var en=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(en){var rn,sn,cn,un;return regeneratorRuntime.wrap((function _callee3$(dn){for(;;)switch(dn.prev=dn.next){case 0:return dn.prev=0,dn.next=3,tn.import(encodeURI(en));case 3:return rn=dn.sent,sn=rn.default,cn=sn.name,un=sn.init,dn.abrupt("return",an.addExtension(cn,un&&un.bind(an),{$:$,langParam:nn}));case 8:return dn.prev=8,dn.t0=dn.catch(0),console.error("Extension failed to load: "+en+"; ",dn.t0),dn.abrupt("return",void 0);case 12:case"end":return dn.stop()}}),_callee3,null,[[0,8]])})));return function(tn){return en.apply(this,arguments)}}()));case 13:this.svgCanvas.bind("extensions_added",(function(en,tn){an.extensionsAdded=!0,an.setAll(),"ignore"===an.storagePromptState&&an.updateCanvas(!0),an.messageQueue.forEach((function(en){an.svgCanvas.call("message",en)}))})),this.svgCanvas.call("extensions_added"),sn.next=20;break;case 17:sn.prev=17,sn.t0=sn.catch(8),console.log(sn.t0);case 20:case"end":return sn.stop()}}),_callee4,this,[[8,17]])}))),function extAndLocaleFunc(){return en.apply(this,arguments)})},{key:"messageListener",value:function messageListener(en){var tn={data:en.data,origin:en.origin};this.extensionsAdded?this.svgCanvas.call("message",tn):this.messageQueue.push(tn)}}]),EditorStartup}(),gQ=Qj.$id,fQ=Qj.$qa,AQ=Qj.isNullish,mQ=Qj.encode64,vQ=Qj.decode64,yQ=Qj.blankPageObjectURL,_Q=[function jQueryPluginJSHotkeys(en){function a(tn){if("string"==typeof tn.data){var nn=tn.handler,rn=tn.data.toLowerCase().split(" ");tn.handler=function(tn){if(this===tn.target||27===tn.which||!/textarea|select/i.test(tn.target.nodeName)&&"text"!==tn.target.type){var an="keypress"!==tn.type&&en.hotkeys.specialKeys[tn.which],sn=String.fromCharCode(tn.which).toLowerCase(),cn="",un={};tn.altKey&&"alt"!==an&&(cn+="alt+"),tn.ctrlKey&&"ctrl"!==an&&(cn+="ctrl+"),tn.metaKey&&!tn.ctrlKey&&"meta"!==an&&(cn+="meta+"),tn.shiftKey&&"shift"!==an&&(cn+="shift+"),an?un[cn+an]=!0:(un[cn+sn]=!0,un[cn+en.hotkeys.shiftNums[sn]]=!0,"shift+"===cn&&(un[en.hotkeys.shiftNums[sn]]=!0));for(var dn=0,pn=rn.length;dn<pn;dn++)if(un[rn[dn]])return nn.apply(this,arguments)}}}}return en.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta",219:"[",221:"]"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}},en.each(["keydown","keyup","keypress"],(function(){en.event.special[this]={add:a}})),en}].reduce((function(en,tn){return tn(en)}),jQuery),bQ=new(function(en){_inherits(Editor,en);var tn,nn,rn,an,sn,cn,un,dn=_createSuper(Editor);function Editor(){var en;_classCallCheck(this,Editor),(en=dn.call(this)).tool_scale=1,en.exportWindowCt=0,en.langChanged=!1,en.showSaveWarning=!1,en.storagePromptState="ignore",en.putLocale=qj,en.readLang=Kj,en.setStrings=zj,en.flyoutFuncs={},en.uiStrings={},en.svgCanvas=null,en.isReady=!1,en.customExportImage=!1,en.customExportPDF=!1,en.configObj=new Vj(_assertThisInitialized(en)),en.configObj.pref=en.configObj.pref.bind(en.configObj),en.setConfig=en.configObj.setConfig.bind(en.configObj),en.callbacks=[],en.curContext=null,en.exportWindowName=null,en.docprops=!1,en.configObj.preferences=!1,en.canvMenu=null,en.goodLangs=["ar","cs","de","en","es","fa","fr","fy","hi","it","ja","nl","pl","pt-BR","ro","ru","sk","sl","zh-CN","zh-TW"];var tn=function isMac(){return PA}()?"meta+":"ctrl+";return en.toolButtons=[{key:"ctrl+left",fn:function fn(){this.rotateSelected(0,1)}},{key:"ctrl+right",fn:function fn(){this.rotateSelected(1,1)}},{key:"ctrl+shift+left",fn:function fn(){this.rotateSelected(0,5)}},{key:"ctrl+shift+right",fn:function fn(){this.rotateSelected(1,5)}},{key:"shift+O",fn:en.selectPrev},{key:"shift+P",fn:en.selectNext},{key:[tn+"up",!0],fn:function fn(){this.zoomImage(2)}},{key:[tn+"down",!0],fn:function fn(){this.zoomImage(.5)}},{key:[tn+"]",!0],fn:function fn(){this.moveUpDownSelected("Up")}},{key:[tn+"[",!0],fn:function fn(){this.moveUpDownSelected("Down")}},{key:["up",!0],fn:function fn(){this.moveSelected(0,-1)}},{key:["down",!0],fn:function fn(){this.moveSelected(0,1)}},{key:["left",!0],fn:function fn(){this.moveSelected(-1,0)}},{key:["right",!0],fn:function fn(){this.moveSelected(1,0)}},{key:"shift+up",fn:function fn(){this.moveSelected(0,-10)}},{key:"shift+down",fn:function fn(){this.moveSelected(0,10)}},{key:"shift+left",fn:function fn(){this.moveSelected(-10,0)}},{key:"shift+right",fn:function fn(){this.moveSelected(10,0)}},{key:["alt+up",!0],fn:function fn(){this.svgCanvas.cloneSelectedElements(0,-1)}},{key:["alt+down",!0],fn:function fn(){this.svgCanvas.cloneSelectedElements(0,1)}},{key:["alt+left",!0],fn:function fn(){this.svgCanvas.cloneSelectedElements(-1,0)}},{key:["alt+right",!0],fn:function fn(){this.svgCanvas.cloneSelectedElements(1,0)}},{key:["alt+shift+up",!0],fn:function fn(){this.svgCanvas.cloneSelectedElements(0,-10)}},{key:["alt+shift+down",!0],fn:function fn(){this.svgCanvas.cloneSelectedElements(0,10)}},{key:["alt+shift+left",!0],fn:function fn(){this.svgCanvas.cloneSelectedElements(-10,0)}},{key:["alt+shift+right",!0],fn:function fn(){this.svgCanvas.cloneSelectedElements(10,0)}},{key:"a",fn:function fn(){this.svgCanvas.selectAllInCurrentLayer()}},{key:tn+"a",fn:function fn(){this.svgCanvas.selectAllInCurrentLayer()}},{key:tn+"x",fn:en.cutSelected},{key:tn+"c",fn:en.copySelected},{key:tn+"v",fn:en.pasteInCenter}],en}return _createClass(Editor,[{key:"loadSvgString",value:function loadSvgString(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nn=tn.noAlert,rn=!1!==this.svgCanvas.setSvgString(en);if(!rn)throw nn||seAlert(this.uiStrings.notification.errorLoadingSVG),new Error("Error loading SVG")}},{key:"setCustomHandlers",value:function setCustomHandlers(en){var tn=this;return this.ready((function(){en.open&&(tn.svgCanvas.open=en.open.bind(tn)),en.save&&(tn.showSaveWarning=!1,tn.svgCanvas.bind("saved",en.save.bind(tn))),en.exportImage&&(tn.customExportImage=en.exportImage.bind(tn),tn.svgCanvas.bind("exported",tn.customExportImage)),en.exportPDF&&(tn.customExportPDF=en.exportPDF.bind(tn),tn.svgCanvas.bind("exportedPDF",tn.customExportPDF))}))}},{key:"randomizeIds",value:function randomizeIds(en){this.svgCanvas.randomizeIds(en)}},{key:"setAll",value:function setAll(){var en={};this.toolButtons.forEach((function(tn){if(tn.key){var nn=tn.key,rn=!1;Array.isArray(tn.key)&&(nn=tn.key[0],tn.key.length>1&&(rn=tn.key[1])),nn=String(nn);var an=tn.fn;nn.split("/").forEach((function(tn){en[tn]={fn:an,pd:rn}}))}return!0})),document.addEventListener("keydown",(function(tn){if("BODY"===tn.target.nodeName){var nn="".concat(tn.metaKey?"meta+":"").concat(tn.ctrlKey?"ctrl+":"").concat(tn.key.toLowerCase());en[nn]&&(en[nn].fn(),en[nn].pd&&tn.preventDefault())}})),_Q(".attr_changer, #image_url").bind("keydown","return",(function(en){_Q(this).change(),en.preventDefault()})),_Q(window).bind("keydown","tab",function(en){"canvas"===this.uiContext&&(en.preventDefault(),this.selectNext())}.bind(this)).bind("keydown","shift+tab",function(en){"canvas"===this.uiContext&&(en.preventDefault(),this.selectPrev())}.bind(this))}},{key:"setTitles",value:function setTitles(){var en=this;Object.entries({"4/Shift+4":"#tools_rect","5/Shift+5":"#tools_ellipse"}).forEach((function(tn){var nn=_slicedToArray(tn,2),rn=nn[0],an=nn[1],sn=_Q(an).parents("#main_menu").length;fQ(an).forEach((function(tn){var nn=sn?_Q(tn).text().split(" [")[0]:tn.title.split(" [")[0],an="";rn.split("/").forEach((function(tn,nn){var rn=tn.split("+"),sn="";rn.length>1&&(sn=rn[0]+"+",tn=rn[1]),an+=(nn?"/":"")+sn+(en.uiStrings["key_"+tn]||tn)})),sn?en.lastChild.textContent=nn+" ["+an+"]":en.title=nn+" ["+an+"]"}))}))}},{key:"getButtonData",value:function getButtonData(en){return Object.values(this.toolButtons).find((function(tn){return tn.sel===en}))}},{key:"getUIStrings",value:function getUIStrings(){return this.uiStrings}},{key:"togglePathEditMode",value:function togglePathEditMode(en,tn){_Q("#path_node_panel").toggle(en),en?(_Q(".tool_button_current").removeClass("tool_button_current").addClass("tool_button"),_Q("#tool_select").addClass("tool_button_current").removeClass("tool_button"),this.multiselected=!1,tn.length&&(this.selectedElement=this.elems[0])):setTimeout((function(){}),1e3)}},{key:"exportHandler",value:function exportHandler(en,tn){var nn=tn.issues,rn=tn.exportWindowName;if(this.exportWindow=window.open(yQ||"",rn),this.exportWindow&&!this.exportWindow.closed){if(this.exportWindow.location.href=tn.bloburl||tn.datauri,"all"!==this.configObj.pref("export_notice_done")){var an=this.uiStrings.notification.saveFromBrowser.replace("%s",tn.type);if(nn.length){var sn="\n • ";an+="\n\n"+this.uiStrings.notification.noteTheseIssues+sn+nn.join(sn)}this.configObj.pref("export_notice_done","all"),seAlert(an)}}else seAlert(this.uiStrings.notification.popupWindowBlocked)}},{key:"setStrokeOpt",value:function setStrokeOpt(en,tn){var nn=_slicedToArray(en.id.split("_"),2),rn=nn[0],an=nn[1];tn&&this.svgCanvas.setStrokeAttr("stroke-"+rn,an),_Q(en).addClass("current").siblings().removeClass("current")}},{key:"setImageURL",value:function setImageURL(en){en||(en=this.defaultImageURL),this.svgCanvas.setImageURL(en),_Q("#image_url").val(en),en.startsWith("data:")?(_Q("#image_url").hide(),_Q("#change_image_url").show()):(this.svgCanvas.embedImage(en,(function(tn){_Q("#url_notice").toggle(!tn),this.defaultImageURL=en})),_Q("#image_url").show(),_Q("#change_image_url").hide())}},{key:"setBackground",value:function setBackground(en,tn){this.configObj.pref("bkgd_color",en),this.configObj.pref("bkgd_url",tn,!0),this.svgCanvas.setBackground(en,tn)}},{key:"updateCanvas",value:function updateCanvas(en,tn){var nn=this.svgCanvas.getZoom(),rn=this.workarea,an=_Q("#svgcanvas"),sn=this.workarea.width(),cn=this.workarea.height(),un=sn,dn=cn,pn=rn[0].scrollLeft+un/2,hn=rn[0].scrollTop+dn/2,gn=this.configObj.curConfig.canvas_expansion;sn=Math.max(un,this.svgCanvas.contentW*nn*gn),cn=Math.max(dn,this.svgCanvas.contentH*nn*gn),sn===un&&cn===dn?this.workarea.css("overflow","hidden"):this.workarea.css("overflow","scroll");var An=an.height()/2,mn=an.width()/2;an.width(sn).height(cn);var vn=cn/2,yn=sn/2,_n=this.svgCanvas.updateCanvas(sn,cn),wn=yn/mn,xn=sn/2-un/2,Sn=cn/2-dn/2;tn?(tn.x+=_n.x,tn.y+=_n.y):tn={x:yn+(pn-mn)*wn,y:vn+(hn-An)*wn};en?this.svgCanvas.contentW>rn.width()?(this.workarea[0].scrollLeft=_n.x-10,this.workarea[0].scrollTop=_n.y-10):(rn[0].scrollLeft=xn,rn[0].scrollTop=Sn):(rn[0].scrollLeft=tn.x-un/2,rn[0].scrollTop=tn.y-dn/2),this.configObj.curConfig.showRulers&&(this.rulers.updateRulers(an,nn),this.workarea.scroll()),!0!==this.configObj.urldata.storagePrompt&&"ignore"===this.storagePromptState&&_Q("#dialog_box").hide()}},{key:"updateToolbar",value:function updateToolbar(){var en,tn;if(!AQ(this.selectedElement))switch(this.selectedElement.tagName){case"use":case"image":case"foreignObject":break;case"g":case"a":var nn=this.selectedElement.getElementsByTagName("*"),rn=null;for(en=0,tn=nn.length;en<tn;en++){var an=nn[en].getAttribute("stroke-width");0===en?rn=an:rn!==an&&(rn=null)}_Q("#stroke_width").val(null===rn?"":rn),this.bottomPanelHandlers.updateColorpickers(!0);break;default:this.bottomPanelHandlers.updateColorpickers(!0),_Q("#stroke_width").val(this.selectedElement.getAttribute("stroke-width")||1),_Q("#stroke_style").val(this.selectedElement.getAttribute("stroke-dasharray")||"none");var sn=this.selectedElement.getAttribute("stroke-linejoin")||"miter";_Q("#linejoin_"+sn).length&&this.setStrokeOpt(_Q("#linejoin_"+sn)[0]),sn=this.selectedElement.getAttribute("stroke-linecap")||"butt",_Q("#linecap_"+sn).length&&this.setStrokeOpt(_Q("#linecap_"+sn)[0])}if(!AQ(this.selectedElement)){var cn=100*(this.selectedElement.getAttribute("opacity")||1);gQ("opacity").value=cn,gQ("elem_id").value=this.selectedElement.id,gQ("elem_class").value=null!==this.selectedElement.getAttribute("class")?this.selectedElement.getAttribute("class"):""}this.bottomPanelHandlers.updateToolButtonState()}},{key:"updateWireFrame",value:function updateWireFrame(){var en="\n #workarea.wireframe #svgcontent * {\n stroke-width: ".concat(1/this.svgCanvas.getZoom(),"px;\n }\n ");_Q("#wireframe_rules").text(this.workarea.hasClass("wireframe")?en:"")}},{key:"updateTitle",value:function updateTitle(en){en=en||this.svgCanvas.getDocumentTitle();var tn=document.querySelector("title").text+(en?": "+en:"");_Q("title:first").text(tn)}},{key:"selectedChanged",value:function selectedChanged(en,tn){var nn=this.svgCanvas.getMode();"select"===nn&&this.leftPanelHandlers.clickSelect();var rn="pathedit"===nn;this.selectedElement=1===tn.length||AQ(tn[1])?tn[0]:null,this.multiselected=tn.length>=2&&!AQ(tn[1]),AQ(this.selectedElement)||rn||this.updateToolbar(),this.togglePathEditMode(rn,tn),this.topPanelHandlers.updateContextPanel(),this.svgCanvas.runExtensions("selectedChanged",{elems:tn,selectedElement:this.selectedElement,multiselected:this.multiselected})}},{key:"elementTransition",value:function elementTransition(en,tn){var nn=this.svgCanvas.getMode(),rn=tn[0];if(rn){if(this.multiselected=tn.length>=2&&!AQ(tn[1]),!this.multiselected)switch(nn){case"rotate":var an=this.svgCanvas.getRotationAngle(rn);_Q("#angle").val(an),_Q("#tool_reorient").toggleClass("disabled",0===an)}this.svgCanvas.runExtensions("elementTransition",{elems:tn})}}},{key:"elementChanged",value:function elementChanged(en,tn){var nn=this,rn=this.svgCanvas.getMode();"select"===rn&&this.leftPanelHandlers.clickSelect(),tn.forEach((function(en){var tn=en&&"svg"===en.tagName;tn||nn.svgCanvas.isLayer(en)?(nn.layersPanel.populateLayers(),tn&&nn.updateCanvas()):en&&nn.selectedElement&&AQ(nn.selectedElement.parentNode)&&(nn.selectedElement=en)})),this.showSaveWarning=!0,this.topPanelHandlers.updateContextPanel(),this.selectedElement&&"select"===rn&&this.bottomPanelHandlers.updateColorpickers(),this.svgCanvas.runExtensions("elementChanged",{elems:tn})}},{key:"zoomDone",value:function zoomDone(){this.updateWireFrame()}},{key:"zoomChanged",value:function zoomChanged(en,tn,nn){var rn=this.workarea,an=this.svgCanvas.setBBoxZoom(tn,rn.width()-15,rn.height()-15);if(an){var sn=an.zoom,cn=an.bbox;sn<.001?this.changeZoom(.1):(gQ("zoom").value=(100*this.svgCanvas.getZoom()).toFixed(1),nn?this.updateCanvas():this.updateCanvas(!1,{x:cn.x*sn+cn.width*sn/2,y:cn.y*sn+cn.height*sn/2}),"zoom"===this.svgCanvas.getMode()&&cn.width&&this.leftPanelHandlers.clickSelect(),this.zoomDone())}}},{key:"contextChanged",value:function contextChanged(en,tn){var nn=this,rn="";if(tn){var an="";rn='<a href="#" data-root="y">'+this.svgCanvas.getCurrentDrawing().getCurrentLayerName()+"</a>",_Q(tn).parentsUntil("#svgcontent > g").andSelf().each((function(){nn.id&&(an+=" > "+nn.id,rn+=nn!==tn?' > <a href="#">'.concat(nn.id,"</a>"):" > ".concat(nn.id))})),this.curContext=an}else this.curContext=null;_Q("#cur_context_panel").toggle(Boolean(tn)).html(rn),this.updateTitle()}},{key:"setFlyoutPositions",value:function setFlyoutPositions(){_Q(".tools_flyout").each((function(){var en=_Q("#"+this.id+"_show"),tn=en.offset(),nn=tn.left,rn=tn.top,an=en.outerWidth();this.css({left:(nn+an)*bQ.tool_scale,top:rn})}))}},{key:"setFlyoutTitles",value:function setFlyoutTitles(){_Q(".tools_flyout").each((function(){var en=_Q("#"+this.id+"_show");if(!en.data("isLibrary")){var tn=this.children().map((function(){return this.title})).get();en[0].title=tn.join(" / ")}}))}},{key:"setupFlyouts",value:function setupFlyouts(en){var tn={};_Q.each(en,(function(nn,rn){var an;tn[nn]||(tn[nn]=[]),(an=tn[nn]).push.apply(an,_toConsumableArray(rn));var sn,cn=_Q(nn).children().not(".tool_button_evt_handled"),un=nn+"_show",dn=_Q(un),pn=!1;cn.addClass("tool_button tool_button_evt_handled").unbind("click mousedown mouseup").each((function(){var nn="#"+this.getAttribute("id"),an=Object.entries(rn).find((function(en){var tn=_slicedToArray(en,2);return tn[0],tn[1].sel===nn})),sn=_slicedToArray(an,2),cn=sn[0],un=sn[1];this.flyoutFuncs[un.sel]=un.fn,un.isDefault&&(pn=cn);var hn=function flyoutAction(nn){var rn=un;if("keydown"===nn.type){var an=_Q(rn.parent+"_show").hasClass("tool_button_current"),sn=_Q(rn.parent+"_show").attr("data-curopt");Object.entries(en[un.parent]).some((function(cn){var dn=_slicedToArray(cn,2),pn=dn[0],hn=dn[1];return hn.sel===sn&&(nn.shiftKey&&an?(pn=Number.parseInt(pn),rn=tn[un.parent][pn+1]||en[un.parent][0]):rn=hn,!0)}))}if(_Q(this).hasClass("disabled"))return!1;var cn=rn.icon?_Q.getSvgIcon(rn.icon,!0):_Q(rn.sel).children().eq(0).clone();return cn[0].setAttribute("width",dn.width()),cn[0].setAttribute("height",dn.height()),dn.children(":not(.flyout_arrow_horiz)").remove(),dn.append(cn).attr("data-curopt",rn.sel),!0};return _Q(this).mouseup(hn),un.key&&_Q(document).bind("keydown",un.key[0]+" shift+"+un.key[0],hn),!0})),pn?dn.attr("data-curopt",rn[pn].sel):dn.attr("data-curopt")||dn.attr("data-curopt",rn[0].sel),dn.mousedown((function(en){if(dn.hasClass("disabled"))return!1;var tn=_Q(nn),rn=_Q(un).position().left+34,an=-1*tn.width(),cn=tn.data("shown_popop")?200:0;return sn=setTimeout((function(){dn.data("isLibrary")?tn.css("left",rn).show():tn.css("left",an).show().animate({left:rn},150),tn.data("shown_popop",!0)}),cn),en.preventDefault(),!0})).mouseup((function(en){clearTimeout(sn)}))})),this.setFlyoutTitles()}},{key:"makeFlyoutHolder",value:function makeFlyoutHolder(en,tn){return _Q("<div>",{class:"tools_flyout",id:en}).appendTo("#svg_editor").append(tn)}},{key:"setIcon",value:function setIcon(en,tn){var nn="string"==typeof tn?_Q('<img src="'+this.configObj.curConfig.imgPath+tn+'">'):tn.clone();nn?_Q(en).empty().append(nn):console.log("NOTE: Icon image missing: "+tn)}},{key:"addAltDropDown",value:function addAltDropDown(en,tn,nn,rn){var an=this,sn=_Q(en),cn=rn.dropUp,un=_Q(tn);cn&&_Q(en).addClass("dropup"),un.find("li").bind("mouseup",(function(){rn.seticon&&(an.setIcon("#cur_"+sn[0].id,_Q(this).children()),_Q(this).addClass("current").siblings().removeClass("current"));for(var en=arguments.length,tn=new Array(en),cn=0;cn<en;cn++)tn[cn]=arguments[cn];nn.apply.apply(nn,[this].concat(tn))}));var dn=!1;_Q(window).mouseup((function(en){dn||(sn.removeClass("down"),un.hide(),un.css({top:0,left:0})),dn=!1})),sn.bind("mousedown",(function(){var en=sn.offset();cn?(en.top-=un.height(),en.left+=8):en.top+=sn.height(),un.offset(en),sn.hasClass("down")?(un.hide(),un.css({top:0,left:0})):(un.show(),dn=!0),sn.toggleClass("down")})).hover((function(){dn=!0})).mouseout((function(){dn=!1})),rn.multiclick&&un.mousedown((function(){dn=!0}))}},{key:"extAdded",value:(un=_asyncToGenerator(regeneratorRuntime.mark((function _callee(en,tn){var nn,rn,an,sn,cn,un,dn,pn,hn,gn;return regeneratorRuntime.wrap((function _callee$(en){for(;;)switch(en.prev=en.next){case 0:if(nn=this,rn=[],tn){en.next=4;break}return en.abrupt("return",void 0);case 4:if(an=!1,!tn.langReady||!this.langChanged){en.next=9;break}return sn=this.configObj.pref("lang"),en.next=9,tn.langReady({lang:sn});case 9:return cn=function runCallback(){tn.callback&&!an&&(an=!0,tn.callback.call(bQ))},tn.context_tools&&_Q.each(tn.context_tools,(function(en,tn){var nn,an=tn.container_id?' id="'+tn.container_id+'"':"",sn=_Q("#"+tn.panel);switch(sn.length||(sn=_Q("<div>",{id:tn.panel}).appendTo("#tools_top")),tn.type){case"tool_button":nn='<div class="tool_button">'+tn.id+"</div>";var cn=_Q(nn).appendTo(sn);tn.events&&_Q.each(tn.events,(function(en,tn){_Q(cn).bind(en,tn)}));break;case"select":nn="<label"+an+'><select id="'+tn.id+'">',_Q.each(tn.options,(function(en,rn){var an=en===tn.defval?" selected":"";nn+='<option value="'+en+'"'+an+">"+rn+"</option>"}));var un=_Q(nn+="</select></label>").appendTo(sn).find("select");_Q.each(tn.events,(function(en,tn){_Q(un).bind(en,tn)}));break;case"button-select":nn='<div id="'+tn.id+'" class="dropdown toolset" title="'+tn.title+'"><div id="cur_'+tn.id+'" class="icon_label"></div><button><img class="svg_icon" src="./images/arrow_down.svg" alt="icon" width="7" height="7"></button></div>';var dn=_Q('<ul id="'+tn.id+'_opts"></ul>').appendTo("#option_lists");tn.colnum&&dn.addClass("optcols"+tn.colnum),_Q(nn).appendTo(sn).children(),rn.push({elem:"#"+tn.id,list:"#"+tn.id+"_opts",title:tn.title,callback:tn.events.change,cur:"#cur_"+tn.id});break;case"input":nn="<label"+an+'><span id="'+tn.id+'_label">'+tn.label+':</span><input id="'+tn.id+'" title="'+tn.title+'" size="'+(tn.size||"4")+'" value="'+(tn.defval||"")+'" type="text"/></label>';var pn=_Q(nn).appendTo(sn).find("input");tn.events&&_Q.each(tn.events,(function(en,tn){pn.bind(en,tn)}))}})),un=tn.svgicons,tn.buttons&&(dn={},pn={},hn={},gn={},_Q.each(tn.buttons,(function(en,tn){for(var rn,an,sn,cn,An,mn,vn=tn.id,yn=en;_Q("#"+vn).length;)vn=tn.id+"_"+ ++yn;if(un){dn[vn]=tn.icon,pn[vn]=tn.title;var _n=tn.svgicon||tn.id;"app_menu"===tn.type?hn["#"+vn+" > div"]=_n:hn["#"+vn]=_n}else rn=_Q('<img src="'+nn.configObj.curConfig.imgPath+tn.icon+(tn.title?'" alt="'+tn.title:"")+'">');switch(tn.type){case"mode_flyout":case"mode":an="tool_button",sn="#tools_left";break;case"context":an="tool_button",sn="#"+tn.panel,_Q(sn).length||_Q("<div>",{id:tn.panel}).appendTo("#tools_top");break;case"app_menu":an="",sn="#main_menu ul"}var wn,xn=_Q(tn.list||"app_menu"===tn.type?"<li/>":"<div/>").attr("id",vn).attr("title",tn.title).addClass(an);if(tn.includeWith||tn.list){if(tn.list){if(xn.addClass("push_button"),_Q("#"+tn.list+"_opts").append(xn),tn.isDefault){_Q("#cur_"+tn.list).append(xn.children().clone());var Sn=tn.svgicon||tn.id;hn["#cur_"+tn.list]=Sn}}else if(tn.includeWith){var Cn,kn=tn.includeWith;cn=(mn=_Q(kn.button)).parent(),mn.parent().hasClass("tools_flyout")||(Cn=mn[0].id.replace("tool_","tools_"),An=mn.clone().attr("id",Cn+"_show").append(_Q("<div>",{class:"flyout_arrow_horiz"})),mn.before(An),cn=nn.makeFlyoutHolder(Cn,mn)),kn.isDefault&&(hn["#"+Cn+"_show"]=tn.id),gn["#"+cn[0].id]=[{sel:"#"+vn,fn:tn.events.click,icon:tn.id,key:tn.key,isDefault:Boolean(tn.includeWith&&tn.includeWith.isDefault)}];var Bn="position"in kn?kn.position:"last",En=cn.children().length;!isNaN(Bn)&&Bn>=0&&Bn<En?cn.children().eq(Bn).before(xn):cn.append(xn)}}else"position"in tn?_Q(sn).children().eq(tn.position).length?_Q(sn).children().eq(tn.position).before(xn):_Q(sn).children().last().after(xn):xn.appendTo(sn),"mode_flyout"===tn.type?(cn=(mn=_Q(xn)).parent(),mn.parent().hasClass("tools_flyout")||(wn=mn[0].id.replace("tool_","tools_"),An=mn.clone().attr("id",wn+"_show").append(_Q("<div>",{class:"flyout_arrow_horiz"})),mn.before(An),(cn=nn.makeFlyoutHolder(wn,mn)).data("isLibrary",!0),An.data("isLibrary",!0)),hn["#"+wn+"_show"]=tn.id,gn["#"+cn[0].id]=[{sel:"#"+vn,fn:tn.events.click,icon:tn.id,isDefault:!0}]):"app_menu"===tn.type&&xn.append("<div>").append(tn.title);un||xn.append(rn),tn.list||_Q.each(tn.events,(function(en,nn){"click"===en&&"mode"===tn.type?(GA()&&"click"===en&&(en="mousedown"),tn.includeWith?xn.bind(en,nn):xn.bind(en,(function(){})),tn.key&&(_Q(document).bind("keydown",tn.key,nn),tn.title&&xn.attr("title",tn.title+" ["+tn.key+"]"))):xn.bind(en,nn)})),nn.setupFlyouts(gn)})),_Q.each(rn,(function(){nn.addAltDropDown(this.elem,this.list,this.callback,{seticon:!0})}))),tn.events&&this.leftPanelHandlers.add(tn.events.id,tn.events.click),en.abrupt("return",cn());case 15:case"end":return en.stop()}}),_callee,this)}))),function extAdded(en,tn){return un.apply(this,arguments)})},{key:"zoomImage",value:function zoomImage(en){var tn=this.svgCanvas.getResolution();en=en?tn.zoom*en:1,gQ("zoom").value=(100*en).toFixed(1),this.svgCanvas.setZoom(en),this.zoomDone(),this.updateCanvas(!0)}},{key:"cutSelected",value:function cutSelected(){AQ(this.selectedElement)&&!this.multiselected||this.svgCanvas.cutSelectedElements()}},{key:"copySelected",value:function copySelected(){AQ(this.selectedElement)&&!this.multiselected||this.svgCanvas.copySelectedElements()}},{key:"pasteInCenter",value:function pasteInCenter(){var en=this.svgCanvas.getZoom(),tn=(this.workarea[0].scrollLeft+this.workarea.width()/2)/en-this.svgCanvas.contentW,nn=(this.workarea[0].scrollTop+this.workarea.height()/2)/en-this.svgCanvas.contentH;this.svgCanvas.pasteElements("point",tn,nn)}},{key:"moveUpDownSelected",value:function moveUpDownSelected(en){AQ(this.selectedElement)||this.svgCanvas.moveUpDownSelected(en)}},{key:"moveSelected",value:function moveSelected(en,tn){if(!AQ(this.selectedElement)||this.multiselected){if(this.configObj.curConfig.gridSnapping){var nn=this.svgCanvas.getZoom()*this.configObj.curConfig.snappingStep;en*=nn,tn*=nn}this.svgCanvas.moveSelectedElements(en,tn)}}},{key:"selectNext",value:function selectNext(){this.svgCanvas.cycleElement(1)}},{key:"selectPrev",value:function selectPrev(){this.svgCanvas.cycleElement(0)}},{key:"rotateSelected",value:function rotateSelected(en,tn){if(!AQ(this.selectedElement)&&!this.multiselected){en||(tn*=-1);var nn=Number.parseFloat(_Q("#angle").val())+tn;this.svgCanvas.setRotationAngle(nn),this.topPanelHandlers.updateContextPanel()}}},{key:"clickClear",value:(cn=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var en,tn,nn;return regeneratorRuntime.wrap((function _callee2$(rn){for(;;)switch(rn.prev=rn.next){case 0:return en=_slicedToArray(this.configObj.curConfig.dimensions,2),tn=en[0],nn=en[1],rn.next=3,seConfirm(this.uiStrings.notification.QwantToClear);case 3:if("Cancel"!==rn.sent){rn.next=6;break}return rn.abrupt("return");case 6:this.leftPanelHandlers.clickSelect(),this.svgCanvas.clear(),this.svgCanvas.setResolution(tn,nn),this.updateCanvas(!0),this.zoomImage(),this.layersPanel.populateLayers(),this.topPanelHandlers.updateContextPanel(),this.svgCanvas.runExtensions("onNewDocument");case 14:case"end":return rn.stop()}}),_callee2,this)}))),function clickClear(){return cn.apply(this,arguments)})},{key:"clickSave",value:function clickSave(){var en={images:this.configObj.pref("img_save"),round_digits:6};this.svgCanvas.save(en)}},{key:"clickExport",value:(sn=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(en){var tn,nn,rn,an,sn,cn,un,dn,pn,hn=this;return regeneratorRuntime.wrap((function _callee3$(gn){for(;;)switch(gn.prev=gn.next){case 0:if("ok"===(null==en||null===(tn=en.detail)||void 0===tn?void 0:tn.trigger)&&void 0!==(null==en||null===(nn=en.detail)||void 0===nn?void 0:nn.imgType)){gn.next=2;break}return gn.abrupt("return");case 2:if(cn=null==en||null===(rn=en.detail)||void 0===rn?void 0:rn.imgType,un=null!=en&&null!==(an=en.detail)&&void 0!==an&&an.quality?(null==en||null===(sn=en.detail)||void 0===sn?void 0:sn.quality)/100:1,dn=function openExportWindow(){var en,tn,nn=hn.uiStrings.notification.loadingImage;if("new"===hn.configObj.curConfig.exportWindowType&&hn.exportWindowCt++,hn.exportWindowName=hn.configObj.curConfig.canvasName+hn.exportWindowCt,hn.loadingURL)tn=hn.loadingURL;else{if(en='<!DOCTYPE html><html>\n <head>\n <meta charset="utf-8">\n <title>'.concat(nn,"</title>\n </head>\n <body><h1>").concat(nn,"</h1></body>\n <html>"),"undefined"!=typeof URL&&URL.createObjectURL){var rn=new Blob([en],{type:"text/html"});tn=URL.createObjectURL(rn)}else tn="data:text/html;base64;charset=utf-8,"+mQ(en);hn.loadingURL=tn}hn.exportWindow=window.open(tn,hn.exportWindowName)},pn=HA(),"PDF"!==cn){gn.next=11;break}this.customExportPDF||pn||dn(),this.svgCanvas.exportPDF(void 0),gn.next=14;break;case 11:return this.customExportImage||dn(),gn.next=14,this.svgCanvas.rasterExport(cn,un,this.exportWindowName);case 14:case"end":return gn.stop()}}),_callee3,this)}))),function clickExport(en){return sn.apply(this,arguments)})},{key:"clickOpen",value:function clickOpen(){this.svgCanvas.open()}},{key:"clickImport",value:function clickImport(){}},{key:"showDocProperties",value:function showDocProperties(){if(!this.docprops){this.docprops=!0;var en=document.getElementById("se-img-prop"),tn=this.svgCanvas.getResolution();"px"!==this.configObj.curConfig.baseUnit&&(tn.w=eA(tn.w)+this.configObj.curConfig.baseUnit,tn.h=eA(tn.h)+this.configObj.curConfig.baseUnit),en.setAttribute("save",this.configObj.pref("img_save")),en.setAttribute("width",tn.w),en.setAttribute("height",tn.h),en.setAttribute("title",this.svgCanvas.getDocumentTitle()),en.setAttribute("dialog","open")}}},{key:"showPreferences",value:function showPreferences(){if(!this.configObj.preferences){this.configObj.preferences=!0;var en=document.getElementById("se-edit-prefs");_Q("#main_menu").hide();var tn=this.configObj.curPrefs.bkgd_color,nn=this.configObj.pref("bkgd_url");nn&&en.setAttribute("bgurl",nn),en.setAttribute("gridsnappingon",this.configObj.curConfig.gridSnapping),en.setAttribute("gridsnappingstep",this.configObj.curConfig.snappingStep),en.setAttribute("gridcolor",this.configObj.curConfig.gridColor),en.setAttribute("canvasbg",tn),en.setAttribute("dialog","open")}}},{key:"openHomePage",value:function openHomePage(){window.open("https://github.com/SVG-Edit/svgedit","_blank")}},{key:"hideSourceEditor",value:function hideSourceEditor(){document.getElementById("se-svg-editor-dialog").setAttribute("dialog","closed")}},{key:"saveSourceEditor",value:(an=_asyncToGenerator(regeneratorRuntime.mark((function _callee4(en){var tn,nn,rn=this;return regeneratorRuntime.wrap((function _callee4$(an){for(;;)switch(an.prev=an.next){case 0:if("open"===document.getElementById("se-svg-editor-dialog").getAttribute("dialog")){an.next=3;break}return an.abrupt("return");case 3:if(tn=function saveChanges(){rn.svgCanvas.clearSelection(),rn.hideSourceEditor(),rn.zoomImage(),rn.layersPanel.populateLayers(),rn.updateTitle()},this.svgCanvas.setSvgString(en.detail.value)){an.next=12;break}return an.next=7,seConfirm(this.uiStrings.notification.QerrorsRevertToSource);case 7:if(!1!==(nn=an.sent)&&"Cancel"!==nn){an.next=10;break}return an.abrupt("return");case 10:return tn(),an.abrupt("return");case 12:tn(),this.leftPanelHandlers.clickSelect();case 14:case"end":return an.stop()}}),_callee4,this)}))),function saveSourceEditor(en){return an.apply(this,arguments)})},{key:"hideDocProperties",value:function hideDocProperties(){var en=document.getElementById("se-img-prop");en.setAttribute("dialog","close"),en.setAttribute("save",this.configObj.pref("img_save")),this.docprops=!1}},{key:"hidePreferences",value:function hidePreferences(){document.getElementById("se-edit-prefs").setAttribute("dialog","close"),this.configObj.preferences=!1}},{key:"saveDocProperties",value:function saveDocProperties(en){var tn=en.detail,nn=tn.title,rn=tn.w,an=tn.h,sn=tn.save;return this.svgCanvas.setDocumentTitle(nn),("fit"===rn||rA("width",rn))&&("fit"===an||rA("height",an))?this.svgCanvas.setResolution(rn,an)?(this.configObj.pref("img_save",sn),this.updateCanvas(),this.hideDocProperties(),!0):(seAlert(this.uiStrings.notification.noContentToFitTo),!1):(seAlert(this.uiStrings.notification.invalidAttrValGiven),!1)}},{key:"savePreferences",value:(rn=_asyncToGenerator(regeneratorRuntime.mark((function _callee5(en){var tn,nn,rn,an,sn,cn,un,dn,pn,hn,gn,An;return regeneratorRuntime.wrap((function _callee5$(mn){for(;;)switch(mn.prev=mn.next){case 0:if(tn=en.detail,nn=tn.lang,rn=tn.bgcolor,an=tn.bgurl,sn=tn.gridsnappingon,cn=tn.gridsnappingstep,un=tn.gridcolor,dn=tn.showrulers,pn=tn.baseunit,this.setBackground(rn,an),!nn||nn===this.configObj.pref("lang")){mn.next=10;break}return mn.next=5,this.putLocale(nn,this.goodLangs);case 5:return hn=mn.sent,gn=hn.langParam,An=hn.langData,mn.next=10,this.setLang(gn,An);case 10:this.configObj.curConfig.gridSnapping=sn,this.configObj.curConfig.snappingStep=cn,this.configObj.curConfig.gridColor=un,this.configObj.curConfig.showRulers=dn,_Q("#rulers").toggle(this.configObj.curConfig.showRulers),this.configObj.curConfig.showRulers&&this.rulers.updateRulers(),this.configObj.curConfig.baseUnit=pn,this.svgCanvas.setConfig(this.configObj.curConfig),this.updateCanvas(),this.hidePreferences();case 20:case"end":return mn.stop()}}),_callee5,this)}))),function savePreferences(en){return rn.apply(this,arguments)})},{key:"cancelOverlays",value:function cancelOverlays(en){_Q("#dialog_box").hide();var tn="open"===document.getElementById("se-svg-editor-dialog").getAttribute("dialog");tn||this.docprops||this.configObj.preferences?tn&&(this.svgCanvas.getSvgString()!==en.detail.value?seConfirm(this.uiStrings.notification.QignoreSourceChanges)&&this.hideSourceEditor():this.hideSourceEditor()):this.curContext&&this.svgCanvas.leaveContext()}},{key:"enableOrDisableClipboard",value:function enableOrDisableClipboard(){var en;try{en=this.localStorage.getItem("svgedit_clipboard")}catch(en){}this.canvMenu.setAttribute((en?"en":"dis")+"ablemenuitems","#paste,#paste_in_place")}},{key:"openPrep",value:(nn=_asyncToGenerator(regeneratorRuntime.mark((function _callee6(){return regeneratorRuntime.wrap((function _callee6$(en){for(;;)switch(en.prev=en.next){case 0:if(_Q("#main_menu").hide(),0!==this.svgCanvas.undoMgr.getUndoStackSize()){en.next=3;break}return en.abrupt("return",!0);case 3:return en.next=5,seConfirm(this.uiStrings.notification.QwantToOpen);case 5:return en.abrupt("return",en.sent);case 6:case"end":return en.stop()}}),_callee6,this)}))),function openPrep(){return nn.apply(this,arguments)})},{key:"onDragEnter",value:function onDragEnter(en){en.stopPropagation(),en.preventDefault()}},{key:"onDragOver",value:function onDragOver(en){en.stopPropagation(),en.preventDefault()}},{key:"onDragLeave",value:function onDragLeave(en){en.stopPropagation(),en.preventDefault()}},{key:"setLang",value:function setLang(en,tn){var nn=this;if(this.langChanged=!0,this.configObj.pref("lang",en),document.getElementById("se-edit-prefs").setAttribute("lang",en),tn){document.documentElement.lang=tn.lang,_Q.extend(this.uiStrings,tn);var rn=_Q("#layerlist tr.layersel td.layername").text()===this.uiStrings.common.layer+" 1";this.svgCanvas.setUiStrings(tn),this.setTitles(),rn&&(this.svgCanvas.renameCurrentLayer(this.uiStrings.common.layer+" 1"),this.layersPanel.populateLayers()),this.svgCanvas.runExtensions("langChanged",en),this.elems={"#stroke_color":"#tool_stroke .color_block","#fill_color":"#tool_fill label, #tool_fill .color_block","#linejoin_miter":"#cur_linejoin","#linecap_butt":"#cur_linecap"},_Q.each(this.elems,(function(en,tn){_Q(tn).attr("title",_Q(en)[0].title)})),_Q("#multiselected_panel div[id^=tool_align]").each((function(){_Q("#tool_pos"+nn.id.substr(10))[0].title=nn.title}))}}},{key:"ready",value:function ready(en){var tn=this;return new Promise((function(nn,rn){tn.isReady?nn(en()):tn.callbacks.push([en,nn,rn])}))}},{key:"runCallbacks",value:(tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee7(){return regeneratorRuntime.wrap((function _callee7$(en){for(;;)switch(en.prev=en.next){case 0:return en.prev=0,en.next=3,Promise.all(this.callbacks.map((function(en){return(0,_slicedToArray(en,1)[0])()})));case 3:en.next=9;break;case 5:throw en.prev=5,en.t0=en.catch(0),this.callbacks.forEach((function(en){(0,_slicedToArray(en,3)[2])()})),en.t0;case 9:this.callbacks.forEach((function(en){(0,_slicedToArray(en,2)[1])()})),this.isReady=!0;case 11:case"end":return en.stop()}}),_callee7,this,[[0,5]])}))),function runCallbacks(){return tn.apply(this,arguments)})},{key:"loadFromString",value:function loadFromString(en){var tn=this,nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rn=nn.noAlert;return this.ready(_asyncToGenerator(regeneratorRuntime.mark((function _callee8(){return regeneratorRuntime.wrap((function _callee8$(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.prev=0,nn.next=3,tn.loadSvgString(en,{noAlert:rn});case 3:nn.next=9;break;case 5:if(nn.prev=5,nn.t0=nn.catch(0),!rn){nn.next=9;break}throw nn.t0;case 9:case"end":return nn.stop()}}),_callee8,null,[[0,5]])}))))}},{key:"loadFromURL",value:function loadFromURL(en){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nn=tn.cache,rn=tn.noAlert;return this.ready((function(){return new Promise((function(tn,an){_Q.ajax({url:en,dataType:"text",cache:Boolean(nn),beforeSend:function beforeSend(){_Q.process_cancel(this.uiStrings.notification.loadingImage)},success:function success(en){this.loadSvgString(en,{noAlert:rn})},error:function error(en,nn,sn){404!==en.status&&en.responseText?this.loadSvgString(en.responseText,{noAlert:rn}):rn?an(new Error("URLLoadFail")):(seAlert(this.uiStrings.notification.URLLoadFail+": \n"+sn),tn())},complete:function complete(){_Q("#dialog_box").hide()}})}))}))}},{key:"loadFromDataURI",value:function loadFromDataURI(en){var tn=this,nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rn=nn.noAlert;return this.ready((function(){var nn=!1,an=en.match(/^data:image\/svg\+xml;base64,/);an?nn=!0:an=en.match(/^data:image\/svg\+xml(?:;|;utf8)?,/),an&&(an=an[0]);var sn=en.slice(an.length);return tn.loadSvgString(nn?vQ(sn):decodeURIComponent(sn),{noAlert:rn})}))}},{key:"addExtension",value:function addExtension(en,tn,nn){if(!this.svgCanvas)throw new Error("Extension added too early");return this.svgCanvas.addExtension.call(this,en,tn,nn)}}]),Editor}(hQ));bQ.init(),bQ.setConfig({}),bQ.setConfig({},{allowInitialUserOverride:!0}),bQ.setConfig({extensions:[],noDefaultExtensions:!1,userExtensions:[]}),bQ.setConfig({}),bQ.setConfig({});try{XDOMAIN&&(bQ.setConfig({canvasName:"xdomain",allowedOrigins:["*"]}),console.info("xdomain config activated"))}catch(en){}var wQ=String.fromCharCode,xQ=String.fromCodePoint,SQ=!!xQ&&1!=xQ.length;_export({target:"String",stat:!0,forced:SQ},{fromCodePoint:function fromCodePoint(en){for(var tn,nn=[],rn=arguments.length,an=0;rn>an;){if(tn=+arguments[an++],toAbsoluteIndex(tn,1114111)!==tn)throw RangeError(tn+" is not a valid code point");nn.push(tn<65536?wQ(tn):wQ(55296+((tn-=65536)>>10),tn%1024+56320))}return nn.join("")}});var CQ=createCommonjsModule((function(en,tn){en.exports=function(){
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
this file except in compliance with the License. You may obtain a copy of the
|
||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
See the Apache Version 2.0 License for specific language governing permissions
|
||
and limitations under the License.
|
||
***************************************************************************** */
|
||
var en=function extendStatics(tn,nn){return(en=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(en,tn){en.__proto__=tn}||function(en,tn){for(var nn in tn)tn.hasOwnProperty(nn)&&(en[nn]=tn[nn])})(tn,nn)};function __extends(tn,nn){function __(){this.constructor=tn}en(tn,nn),tn.prototype=null===nn?Object.create(nn):(__.prototype=nn.prototype,new __)}var tn=function __assign(){return(tn=Object.assign||function __assign(en){for(var tn,nn=1,rn=arguments.length;nn<rn;nn++)for(var an in tn=arguments[nn])Object.prototype.hasOwnProperty.call(tn,an)&&(en[an]=tn[an]);return en}).apply(this,arguments)};function __awaiter(en,tn,nn,rn){return new(nn||(nn=Promise))((function(an,sn){function fulfilled(en){try{step(rn.next(en))}catch(en){sn(en)}}function rejected(en){try{step(rn.throw(en))}catch(en){sn(en)}}function step(en){en.done?an(en.value):new nn((function(tn){tn(en.value)})).then(fulfilled,rejected)}step((rn=rn.apply(en,tn||[])).next())}))}function __generator(en,tn){var nn,rn,an,sn,cn={label:0,sent:function sent(){if(1&an[0])throw an[1];return an[1]},trys:[],ops:[]};return sn={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(sn[Symbol.iterator]=function(){return this}),sn;function verb(en){return function(tn){return step([en,tn])}}function step(sn){if(nn)throw new TypeError("Generator is already executing.");for(;cn;)try{if(nn=1,rn&&(an=2&sn[0]?rn.return:sn[0]?rn.throw||((an=rn.return)&&an.call(rn),0):rn.next)&&!(an=an.call(rn,sn[1])).done)return an;switch(rn=0,an&&(sn=[2&sn[0],an.value]),sn[0]){case 0:case 1:an=sn;break;case 4:return cn.label++,{value:sn[1],done:!1};case 5:cn.label++,rn=sn[1],sn=[0];continue;case 7:sn=cn.ops.pop(),cn.trys.pop();continue;default:if(!((an=(an=cn.trys).length>0&&an[an.length-1])||6!==sn[0]&&2!==sn[0])){cn=0;continue}if(3===sn[0]&&(!an||sn[1]>an[0]&&sn[1]<an[3])){cn.label=sn[1];break}if(6===sn[0]&&cn.label<an[1]){cn.label=an[1],an=sn;break}if(an&&cn.label<an[2]){cn.label=an[2],cn.ops.push(sn);break}an[2]&&cn.ops.pop(),cn.trys.pop();continue}sn=tn.call(en,cn)}catch(en){sn=[6,en],rn=0}finally{nn=an=0}if(5&sn[0])throw sn[1];return{value:sn[0]?sn[1]:void 0,done:!0}}}for(var nn=function(){function Bounds(en,tn,nn,rn){this.left=en,this.top=tn,this.width=nn,this.height=rn}return Bounds.prototype.add=function(en,tn,nn,rn){return new Bounds(this.left+en,this.top+tn,this.width+nn,this.height+rn)},Bounds.fromClientRect=function(en){return new Bounds(en.left,en.top,en.width,en.height)},Bounds}(),rn=function parseBounds(en){return nn.fromClientRect(en.getBoundingClientRect())},an=function parseDocumentSize(en){var tn=en.body,rn=en.documentElement;if(!tn||!rn)throw new Error("Unable to get document size");var an=Math.max(Math.max(tn.scrollWidth,rn.scrollWidth),Math.max(tn.offsetWidth,rn.offsetWidth),Math.max(tn.clientWidth,rn.clientWidth)),sn=Math.max(Math.max(tn.scrollHeight,rn.scrollHeight),Math.max(tn.offsetHeight,rn.offsetHeight),Math.max(tn.clientHeight,rn.clientHeight));return new nn(0,0,an,sn)},sn=function toCodePoints(en){for(var tn=[],nn=0,rn=en.length;nn<rn;){var an=en.charCodeAt(nn++);if(an>=55296&&an<=56319&&nn<rn){var sn=en.charCodeAt(nn++);56320==(64512&sn)?tn.push(((1023&an)<<10)+(1023&sn)+65536):(tn.push(an),nn--)}else tn.push(an)}return tn},cn=function fromCodePoint(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];if(String.fromCodePoint)return String.fromCodePoint.apply(String,en);var nn=en.length;if(!nn)return"";for(var rn=[],an=-1,sn="";++an<nn;){var cn=en[an];cn<=65535?rn.push(cn):(cn-=65536,rn.push(55296+(cn>>10),cn%1024+56320)),(an+1===nn||rn.length>16384)&&(sn+=String.fromCharCode.apply(String,rn),rn.length=0)}return sn},un="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),pn=0;pn<un.length;pn++)dn[un.charCodeAt(pn)]=pn;var hn,gn=function decode(en){var tn,nn,rn,an,sn,cn=.75*en.length,un=en.length,pn=0;"="===en[en.length-1]&&(cn--,"="===en[en.length-2]&&cn--);var hn="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(cn):new Array(cn),gn=Array.isArray(hn)?hn:new Uint8Array(hn);for(tn=0;tn<un;tn+=4)nn=dn[en.charCodeAt(tn)],rn=dn[en.charCodeAt(tn+1)],an=dn[en.charCodeAt(tn+2)],sn=dn[en.charCodeAt(tn+3)],gn[pn++]=nn<<2|rn>>4,gn[pn++]=(15&rn)<<4|an>>2,gn[pn++]=(3&an)<<6|63&sn;return hn},An=function polyUint16Array(en){for(var tn=en.length,nn=[],rn=0;rn<tn;rn+=2)nn.push(en[rn+1]<<8|en[rn]);return nn},mn=function polyUint32Array(en){for(var tn=en.length,nn=[],rn=0;rn<tn;rn+=4)nn.push(en[rn+3]<<24|en[rn+2]<<16|en[rn+1]<<8|en[rn]);return nn},vn=5,yn=11,_n=2,wn=65536>>vn,xn=(1<<vn)-1,Sn=wn+(1024>>vn)+32,Cn=65536>>yn,kn=(1<<yn-vn)-1,Bn=function slice16(en,tn,nn){return en.slice?en.slice(tn,nn):new Uint16Array(Array.prototype.slice.call(en,tn,nn))},En=function slice32(en,tn,nn){return en.slice?en.slice(tn,nn):new Uint32Array(Array.prototype.slice.call(en,tn,nn))},Pn=function createTrieFromBase64(en){var tn=gn(en),nn=Array.isArray(tn)?mn(tn):new Uint32Array(tn),rn=Array.isArray(tn)?An(tn):new Uint16Array(tn),an=24,sn=Bn(rn,an/2,nn[4]/2),cn=2===nn[5]?Bn(rn,(an+nn[4])/2):En(nn,Math.ceil((an+nn[4])/4));return new Ln(nn[0],nn[1],nn[2],nn[3],sn,cn)},Ln=function(){function Trie(en,tn,nn,rn,an,sn){this.initialValue=en,this.errorValue=tn,this.highStart=nn,this.highValueIndex=rn,this.index=an,this.data=sn}return Trie.prototype.get=function(en){var tn;if(en>=0){if(en<55296||en>56319&&en<=65535)return tn=((tn=this.index[en>>vn])<<_n)+(en&xn),this.data[tn];if(en<=65535)return tn=((tn=this.index[wn+(en-55296>>vn)])<<_n)+(en&xn),this.data[tn];if(en<this.highStart)return tn=Sn-Cn+(en>>yn),tn=this.index[tn],tn+=en>>vn&kn,tn=((tn=this.index[tn])<<_n)+(en&xn),this.data[tn];if(en<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Trie}(),Tn=50,Nn=1,In=2,On=3,Fn=4,Un=5,Mn=7,Rn=8,Dn=9,jn=10,Qn=11,Hn=12,Gn=13,Vn=14,zn=15,Kn=16,qn=17,$n=18,Wn=19,Xn=20,Yn=21,Jn=22,Zn=23,Tr=24,Ur=25,Rr=26,Dr=27,Qr=28,Hr=29,Gr=30,Vr=31,zr=32,Kr=33,$r=34,Wr=35,Xr=36,Yr=37,Jr=38,Zr=39,ei=40,ti=41,ni=42,ri=43,ii="!",oi="×",ai="÷",si=Pn("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),li=[Gr,Xr],ui=[Nn,In,On,Un],di=[jn,Rn],pi=[Dr,Rr],hi=ui.concat(di),gi=[Jr,Zr,ei,$r,Wr],fi=[zn,Gn],Ai=function codePointsToCharacterClasses(en,tn){void 0===tn&&(tn="strict");var nn=[],rn=[],an=[];return en.forEach((function(en,sn){var cn=si.get(en);if(cn>Tn?(an.push(!0),cn-=Tn):an.push(!1),-1!==["normal","auto","loose"].indexOf(tn)&&-1!==[8208,8211,12316,12448].indexOf(en))return rn.push(sn),nn.push(Kn);if(cn===Fn||cn===Qn){if(0===sn)return rn.push(sn),nn.push(Gr);var un=nn[sn-1];return-1===hi.indexOf(un)?(rn.push(rn[sn-1]),nn.push(un)):(rn.push(sn),nn.push(Gr))}return rn.push(sn),cn===Vr?nn.push("strict"===tn?Yn:Yr):cn===ni||cn===Hr?nn.push(Gr):cn===ri?en>=131072&&en<=196605||en>=196608&&en<=262141?nn.push(Yr):nn.push(Gr):void nn.push(cn)})),[rn,nn,an]},mi=function isAdjacentWithSpaceIgnored(en,tn,nn,rn){var an=rn[nn];if(Array.isArray(en)?-1!==en.indexOf(an):en===an)for(var sn=nn;sn<=rn.length;){if((dn=rn[++sn])===tn)return!0;if(dn!==jn)break}if(an===jn)for(sn=nn;sn>0;){var cn=rn[--sn];if(Array.isArray(en)?-1!==en.indexOf(cn):en===cn)for(var un=nn;un<=rn.length;){var dn;if((dn=rn[++un])===tn)return!0;if(dn!==jn)break}if(cn!==jn)break}return!1},vi=function previousNonSpaceClassType(en,tn){for(var nn=en;nn>=0;){var rn=tn[nn];if(rn!==jn)return rn;nn--}return 0},yi=function _lineBreakAtIndex(en,tn,nn,rn,an){if(0===nn[rn])return oi;var sn=rn-1;if(Array.isArray(an)&&!0===an[sn])return oi;var cn=sn-1,un=sn+1,dn=tn[sn],pn=cn>=0?tn[cn]:0,hn=tn[un];if(dn===In&&hn===On)return oi;if(-1!==ui.indexOf(dn))return ii;if(-1!==ui.indexOf(hn))return oi;if(-1!==di.indexOf(hn))return oi;if(vi(sn,tn)===Rn)return ai;if(si.get(en[sn])===Qn&&(hn===Yr||hn===zr||hn===Kr))return oi;if(dn===Mn||hn===Mn)return oi;if(dn===Dn)return oi;if(-1===[jn,Gn,zn].indexOf(dn)&&hn===Dn)return oi;if(-1!==[qn,$n,Wn,Tr,Qr].indexOf(hn))return oi;if(vi(sn,tn)===Jn)return oi;if(mi(Zn,Jn,sn,tn))return oi;if(mi([qn,$n],Yn,sn,tn))return oi;if(mi(Hn,Hn,sn,tn))return oi;if(dn===jn)return ai;if(dn===Zn||hn===Zn)return oi;if(hn===Kn||dn===Kn)return ai;if(-1!==[Gn,zn,Yn].indexOf(hn)||dn===Vn)return oi;if(pn===Xr&&-1!==fi.indexOf(dn))return oi;if(dn===Qr&&hn===Xr)return oi;if(hn===Xn&&-1!==li.concat(Xn,Wn,Ur,Yr,zr,Kr).indexOf(dn))return oi;if(-1!==li.indexOf(hn)&&dn===Ur||-1!==li.indexOf(dn)&&hn===Ur)return oi;if(dn===Dr&&-1!==[Yr,zr,Kr].indexOf(hn)||-1!==[Yr,zr,Kr].indexOf(dn)&&hn===Rr)return oi;if(-1!==li.indexOf(dn)&&-1!==pi.indexOf(hn)||-1!==pi.indexOf(dn)&&-1!==li.indexOf(hn))return oi;if(-1!==[Dr,Rr].indexOf(dn)&&(hn===Ur||-1!==[Jn,zn].indexOf(hn)&&tn[un+1]===Ur)||-1!==[Jn,zn].indexOf(dn)&&hn===Ur||dn===Ur&&-1!==[Ur,Qr,Tr].indexOf(hn))return oi;if(-1!==[Ur,Qr,Tr,qn,$n].indexOf(hn))for(var gn=sn;gn>=0;){if((An=tn[gn])===Ur)return oi;if(-1===[Qr,Tr].indexOf(An))break;gn--}if(-1!==[Dr,Rr].indexOf(hn))for(gn=-1!==[qn,$n].indexOf(dn)?cn:sn;gn>=0;){var An;if((An=tn[gn])===Ur)return oi;if(-1===[Qr,Tr].indexOf(An))break;gn--}if(Jr===dn&&-1!==[Jr,Zr,$r,Wr].indexOf(hn)||-1!==[Zr,$r].indexOf(dn)&&-1!==[Zr,ei].indexOf(hn)||-1!==[ei,Wr].indexOf(dn)&&hn===ei)return oi;if(-1!==gi.indexOf(dn)&&-1!==[Xn,Rr].indexOf(hn)||-1!==gi.indexOf(hn)&&dn===Dr)return oi;if(-1!==li.indexOf(dn)&&-1!==li.indexOf(hn))return oi;if(dn===Tr&&-1!==li.indexOf(hn))return oi;if(-1!==li.concat(Ur).indexOf(dn)&&hn===Jn||-1!==li.concat(Ur).indexOf(hn)&&dn===$n)return oi;if(dn===ti&&hn===ti){for(var mn=nn[sn],vn=1;mn>0&&tn[--mn]===ti;)vn++;if(vn%2!=0)return oi}return dn===zr&&hn===Kr?oi:ai},_i=function cssFormattedClasses(en,tn){tn||(tn={lineBreak:"normal",wordBreak:"normal"});var nn=Ai(en,tn.lineBreak),rn=nn[0],an=nn[1],sn=nn[2];return"break-all"!==tn.wordBreak&&"break-word"!==tn.wordBreak||(an=an.map((function(en){return-1!==[Ur,Gr,ni].indexOf(en)?Yr:en}))),[rn,an,"keep-all"===tn.wordBreak?sn.map((function(tn,nn){return tn&&en[nn]>=19968&&en[nn]<=40959})):void 0]},wi=function(){function Break(en,tn,nn,rn){this.codePoints=en,this.required=tn===ii,this.start=nn,this.end=rn}return Break.prototype.slice=function(){return cn.apply(void 0,this.codePoints.slice(this.start,this.end))},Break}(),xi=function LineBreaker(en,tn){var nn=sn(en),rn=_i(nn,tn),an=rn[0],cn=rn[1],un=rn[2],dn=nn.length,pn=0,hn=0;return{next:function next(){if(hn>=dn)return{done:!0,value:null};for(var en=oi;hn<dn&&(en=yi(nn,cn,an,++hn,un))===oi;);if(en!==oi||hn===dn){var tn=new wi(nn,en,pn,hn);return pn=hn,{value:tn,done:!1}}return{done:!0,value:null}}}};!function(en){en[en.STRING_TOKEN=0]="STRING_TOKEN",en[en.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",en[en.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",en[en.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",en[en.COMMA_TOKEN=4]="COMMA_TOKEN",en[en.HASH_TOKEN=5]="HASH_TOKEN",en[en.DELIM_TOKEN=6]="DELIM_TOKEN",en[en.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",en[en.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",en[en.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",en[en.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",en[en.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",en[en.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",en[en.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",en[en.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",en[en.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",en[en.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",en[en.NUMBER_TOKEN=17]="NUMBER_TOKEN",en[en.FUNCTION=18]="FUNCTION",en[en.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",en[en.IDENT_TOKEN=20]="IDENT_TOKEN",en[en.COLUMN_TOKEN=21]="COLUMN_TOKEN",en[en.URL_TOKEN=22]="URL_TOKEN",en[en.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",en[en.CDC_TOKEN=24]="CDC_TOKEN",en[en.CDO_TOKEN=25]="CDO_TOKEN",en[en.COLON_TOKEN=26]="COLON_TOKEN",en[en.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",en[en.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",en[en.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",en[en.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",en[en.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",en[en.EOF_TOKEN=32]="EOF_TOKEN"}(hn||(hn={}));var Si=1,Ci=2,ki=4,Bi=8,Ei=10,Pi=47,Li=92,Ti=9,Ni=32,Ii=34,Oi=61,Fi=35,Ui=36,Mi=37,Ri=39,Di=40,ji=41,Qi=95,Hi=45,Gi=33,Vi=60,zi=62,Ki=64,qi=91,$i=93,Wi=61,Xi=123,Yi=63,Ji=125,Zi=124,eo=126,to=128,no=65533,ro=42,io=43,oo=44,ao=58,so=59,lo=46,co=0,uo=8,po=11,ho=14,go=31,fo=127,Ao=-1,mo=48,vo=97,yo=101,_o=102,wo=117,xo=122,So=65,Co=69,ko=70,Bo=85,Eo=90,Po=function isDigit(en){return en>=mo&&en<=57},Lo=function isSurrogateCodePoint(en){return en>=55296&&en<=57343},To=function isHex(en){return Po(en)||en>=So&&en<=ko||en>=vo&&en<=_o},No=function isLowerCaseLetter(en){return en>=vo&&en<=xo},Io=function isUpperCaseLetter(en){return en>=So&&en<=Eo},Oo=function isLetter(en){return No(en)||Io(en)},Fo=function isNonASCIICodePoint(en){return en>=to},Uo=function isWhiteSpace(en){return en===Ei||en===Ti||en===Ni},Mo=function isNameStartCodePoint(en){return Oo(en)||Fo(en)||en===Qi},Ro=function isNameCodePoint(en){return Mo(en)||Po(en)||en===Hi},Do=function isNonPrintableCodePoint(en){return en>=co&&en<=uo||en===po||en>=ho&&en<=go||en===fo},jo=function isValidEscape(en,tn){return en===Li&&tn!==Ei},Qo=function isIdentifierStart(en,tn,nn){return en===Hi?Mo(tn)||jo(tn,nn):!!Mo(en)||!(en!==Li||!jo(en,tn))},Ho=function isNumberStart(en,tn,nn){return en===io||en===Hi?!!Po(tn)||tn===lo&&Po(nn):Po(en===lo?tn:en)},Go=function stringToNumber(en){var tn=0,nn=1;en[tn]!==io&&en[tn]!==Hi||(en[tn]===Hi&&(nn=-1),tn++);for(var rn=[];Po(en[tn]);)rn.push(en[tn++]);var an=rn.length?parseInt(cn.apply(void 0,rn),10):0;en[tn]===lo&&tn++;for(var sn=[];Po(en[tn]);)sn.push(en[tn++]);var un=sn.length,dn=un?parseInt(cn.apply(void 0,sn),10):0;en[tn]!==Co&&en[tn]!==yo||tn++;var pn=1;en[tn]!==io&&en[tn]!==Hi||(en[tn]===Hi&&(pn=-1),tn++);for(var hn=[];Po(en[tn]);)hn.push(en[tn++]);var gn=hn.length?parseInt(cn.apply(void 0,hn),10):0;return nn*(an+dn*Math.pow(10,-un))*Math.pow(10,pn*gn)},Vo={type:hn.LEFT_PARENTHESIS_TOKEN},zo={type:hn.RIGHT_PARENTHESIS_TOKEN},Ko={type:hn.COMMA_TOKEN},qo={type:hn.SUFFIX_MATCH_TOKEN},$o={type:hn.PREFIX_MATCH_TOKEN},Wo={type:hn.COLUMN_TOKEN},Xo={type:hn.DASH_MATCH_TOKEN},Yo={type:hn.INCLUDE_MATCH_TOKEN},Jo={type:hn.LEFT_CURLY_BRACKET_TOKEN},Zo={type:hn.RIGHT_CURLY_BRACKET_TOKEN},ea={type:hn.SUBSTRING_MATCH_TOKEN},ta={type:hn.BAD_URL_TOKEN},na={type:hn.BAD_STRING_TOKEN},ra={type:hn.CDO_TOKEN},ia={type:hn.CDC_TOKEN},oa={type:hn.COLON_TOKEN},aa={type:hn.SEMICOLON_TOKEN},sa={type:hn.LEFT_SQUARE_BRACKET_TOKEN},la={type:hn.RIGHT_SQUARE_BRACKET_TOKEN},ua={type:hn.WHITESPACE_TOKEN},da={type:hn.EOF_TOKEN},pa=function(){function Tokenizer(){this._value=[]}return Tokenizer.prototype.write=function(en){this._value=this._value.concat(sn(en))},Tokenizer.prototype.read=function(){for(var en=[],tn=this.consumeToken();tn!==da;)en.push(tn),tn=this.consumeToken();return en},Tokenizer.prototype.consumeToken=function(){var en=this.consumeCodePoint();switch(en){case Ii:return this.consumeStringToken(Ii);case Fi:var tn=this.peekCodePoint(0),nn=this.peekCodePoint(1),rn=this.peekCodePoint(2);if(Ro(tn)||jo(nn,rn)){var an=Qo(tn,nn,rn)?Ci:Si,sn=this.consumeName();return{type:hn.HASH_TOKEN,value:sn,flags:an}}break;case Ui:if(this.peekCodePoint(0)===Oi)return this.consumeCodePoint(),qo;break;case Ri:return this.consumeStringToken(Ri);case Di:return Vo;case ji:return zo;case ro:if(this.peekCodePoint(0)===Oi)return this.consumeCodePoint(),ea;break;case io:if(Ho(en,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(en),this.consumeNumericToken();break;case oo:return Ko;case Hi:var un=en,dn=this.peekCodePoint(0),pn=this.peekCodePoint(1);if(Ho(un,dn,pn))return this.reconsumeCodePoint(en),this.consumeNumericToken();if(Qo(un,dn,pn))return this.reconsumeCodePoint(en),this.consumeIdentLikeToken();if(dn===Hi&&pn===zi)return this.consumeCodePoint(),this.consumeCodePoint(),ia;break;case lo:if(Ho(en,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(en),this.consumeNumericToken();break;case Pi:if(this.peekCodePoint(0)===ro)for(this.consumeCodePoint();;){var gn=this.consumeCodePoint();if(gn===ro&&(gn=this.consumeCodePoint())===Pi)return this.consumeToken();if(gn===Ao)return this.consumeToken()}break;case ao:return oa;case so:return aa;case Vi:if(this.peekCodePoint(0)===Gi&&this.peekCodePoint(1)===Hi&&this.peekCodePoint(2)===Hi)return this.consumeCodePoint(),this.consumeCodePoint(),ra;break;case Ki:var An=this.peekCodePoint(0),mn=this.peekCodePoint(1),vn=this.peekCodePoint(2);if(Qo(An,mn,vn))return sn=this.consumeName(),{type:hn.AT_KEYWORD_TOKEN,value:sn};break;case qi:return sa;case Li:if(jo(en,this.peekCodePoint(0)))return this.reconsumeCodePoint(en),this.consumeIdentLikeToken();break;case $i:return la;case Wi:if(this.peekCodePoint(0)===Oi)return this.consumeCodePoint(),$o;break;case Xi:return Jo;case Ji:return Zo;case wo:case Bo:var yn=this.peekCodePoint(0),_n=this.peekCodePoint(1);return yn!==io||!To(_n)&&_n!==Yi||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(en),this.consumeIdentLikeToken();case Zi:if(this.peekCodePoint(0)===Oi)return this.consumeCodePoint(),Xo;if(this.peekCodePoint(0)===Zi)return this.consumeCodePoint(),Wo;break;case eo:if(this.peekCodePoint(0)===Oi)return this.consumeCodePoint(),Yo;break;case Ao:return da}return Uo(en)?(this.consumeWhiteSpace(),ua):Po(en)?(this.reconsumeCodePoint(en),this.consumeNumericToken()):Mo(en)?(this.reconsumeCodePoint(en),this.consumeIdentLikeToken()):{type:hn.DELIM_TOKEN,value:cn(en)}},Tokenizer.prototype.consumeCodePoint=function(){var en=this._value.shift();return void 0===en?-1:en},Tokenizer.prototype.reconsumeCodePoint=function(en){this._value.unshift(en)},Tokenizer.prototype.peekCodePoint=function(en){return en>=this._value.length?-1:this._value[en]},Tokenizer.prototype.consumeUnicodeRangeToken=function(){for(var en=[],tn=this.consumeCodePoint();To(tn)&&en.length<6;)en.push(tn),tn=this.consumeCodePoint();for(var nn=!1;tn===Yi&&en.length<6;)en.push(tn),tn=this.consumeCodePoint(),nn=!0;if(nn){var rn=parseInt(cn.apply(void 0,en.map((function(en){return en===Yi?mo:en}))),16),an=parseInt(cn.apply(void 0,en.map((function(en){return en===Yi?ko:en}))),16);return{type:hn.UNICODE_RANGE_TOKEN,start:rn,end:an}}var sn=parseInt(cn.apply(void 0,en),16);if(this.peekCodePoint(0)===Hi&&To(this.peekCodePoint(1))){this.consumeCodePoint(),tn=this.consumeCodePoint();for(var un=[];To(tn)&&un.length<6;)un.push(tn),tn=this.consumeCodePoint();return an=parseInt(cn.apply(void 0,un),16),{type:hn.UNICODE_RANGE_TOKEN,start:sn,end:an}}return{type:hn.UNICODE_RANGE_TOKEN,start:sn,end:sn}},Tokenizer.prototype.consumeIdentLikeToken=function(){var en=this.consumeName();return"url"===en.toLowerCase()&&this.peekCodePoint(0)===Di?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Di?(this.consumeCodePoint(),{type:hn.FUNCTION_TOKEN,value:en}):{type:hn.IDENT_TOKEN,value:en}},Tokenizer.prototype.consumeUrlToken=function(){var en=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ao)return{type:hn.URL_TOKEN,value:""};var tn=this.peekCodePoint(0);if(tn===Ri||tn===Ii){var nn=this.consumeStringToken(this.consumeCodePoint());return nn.type===hn.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ao||this.peekCodePoint(0)===ji)?(this.consumeCodePoint(),{type:hn.URL_TOKEN,value:nn.value}):(this.consumeBadUrlRemnants(),ta)}for(;;){var rn=this.consumeCodePoint();if(rn===Ao||rn===ji)return{type:hn.URL_TOKEN,value:cn.apply(void 0,en)};if(Uo(rn))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ao||this.peekCodePoint(0)===ji?(this.consumeCodePoint(),{type:hn.URL_TOKEN,value:cn.apply(void 0,en)}):(this.consumeBadUrlRemnants(),ta);if(rn===Ii||rn===Ri||rn===Di||Do(rn))return this.consumeBadUrlRemnants(),ta;if(rn===Li){if(!jo(rn,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),ta;en.push(this.consumeEscapedCodePoint())}else en.push(rn)}},Tokenizer.prototype.consumeWhiteSpace=function(){for(;Uo(this.peekCodePoint(0));)this.consumeCodePoint()},Tokenizer.prototype.consumeBadUrlRemnants=function(){for(;;){var en=this.consumeCodePoint();if(en===ji||en===Ao)return;jo(en,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Tokenizer.prototype.consumeStringSlice=function(en){for(var tn=6e4,nn="";en>0;){var rn=Math.min(tn,en);nn+=cn.apply(void 0,this._value.splice(0,rn)),en-=rn}return this._value.shift(),nn},Tokenizer.prototype.consumeStringToken=function(en){for(var tn="",nn=0;;){var rn=this._value[nn];if(rn===Ao||void 0===rn||rn===en)return tn+=this.consumeStringSlice(nn),{type:hn.STRING_TOKEN,value:tn};if(rn===Ei)return this._value.splice(0,nn),na;if(rn===Li){var an=this._value[nn+1];an!==Ao&&void 0!==an&&(an===Ei?(tn+=this.consumeStringSlice(nn),nn=-1,this._value.shift()):jo(rn,an)&&(tn+=this.consumeStringSlice(nn),tn+=cn(this.consumeEscapedCodePoint()),nn=-1))}nn++}},Tokenizer.prototype.consumeNumber=function(){var en=[],tn=ki,nn=this.peekCodePoint(0);for(nn!==io&&nn!==Hi||en.push(this.consumeCodePoint());Po(this.peekCodePoint(0));)en.push(this.consumeCodePoint());nn=this.peekCodePoint(0);var rn=this.peekCodePoint(1);if(nn===lo&&Po(rn))for(en.push(this.consumeCodePoint(),this.consumeCodePoint()),tn=Bi;Po(this.peekCodePoint(0));)en.push(this.consumeCodePoint());nn=this.peekCodePoint(0),rn=this.peekCodePoint(1);var an=this.peekCodePoint(2);if((nn===Co||nn===yo)&&((rn===io||rn===Hi)&&Po(an)||Po(rn)))for(en.push(this.consumeCodePoint(),this.consumeCodePoint()),tn=Bi;Po(this.peekCodePoint(0));)en.push(this.consumeCodePoint());return[Go(en),tn]},Tokenizer.prototype.consumeNumericToken=function(){var en=this.consumeNumber(),tn=en[0],nn=en[1],rn=this.peekCodePoint(0),an=this.peekCodePoint(1),sn=this.peekCodePoint(2);if(Qo(rn,an,sn)){var cn=this.consumeName();return{type:hn.DIMENSION_TOKEN,number:tn,flags:nn,unit:cn}}return rn===Mi?(this.consumeCodePoint(),{type:hn.PERCENTAGE_TOKEN,number:tn,flags:nn}):{type:hn.NUMBER_TOKEN,number:tn,flags:nn}},Tokenizer.prototype.consumeEscapedCodePoint=function(){var en=this.consumeCodePoint();if(To(en)){for(var tn=cn(en);To(this.peekCodePoint(0))&&tn.length<6;)tn+=cn(this.consumeCodePoint());Uo(this.peekCodePoint(0))&&this.consumeCodePoint();var nn=parseInt(tn,16);return 0===nn||Lo(nn)||nn>1114111?no:nn}return en===Ao?no:en},Tokenizer.prototype.consumeName=function(){for(var en="";;){var tn=this.consumeCodePoint();if(Ro(tn))en+=cn(tn);else{if(!jo(tn,this.peekCodePoint(0)))return this.reconsumeCodePoint(tn),en;en+=cn(this.consumeEscapedCodePoint())}}},Tokenizer}(),ha=function(){function Parser(en){this._tokens=en}return Parser.create=function(en){var tn=new pa;return tn.write(en),new Parser(tn.read())},Parser.parseValue=function(en){return Parser.create(en).parseComponentValue()},Parser.parseValues=function(en){return Parser.create(en).parseComponentValues()},Parser.prototype.parseComponentValue=function(){for(var en=this.consumeToken();en.type===hn.WHITESPACE_TOKEN;)en=this.consumeToken();if(en.type===hn.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(en);var tn=this.consumeComponentValue();do{en=this.consumeToken()}while(en.type===hn.WHITESPACE_TOKEN);if(en.type===hn.EOF_TOKEN)return tn;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Parser.prototype.parseComponentValues=function(){for(var en=[];;){var tn=this.consumeComponentValue();if(tn.type===hn.EOF_TOKEN)return en;en.push(tn),en.push()}},Parser.prototype.consumeComponentValue=function(){var en=this.consumeToken();switch(en.type){case hn.LEFT_CURLY_BRACKET_TOKEN:case hn.LEFT_SQUARE_BRACKET_TOKEN:case hn.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(en.type);case hn.FUNCTION_TOKEN:return this.consumeFunction(en)}return en},Parser.prototype.consumeSimpleBlock=function(en){for(var tn={type:en,values:[]},nn=this.consumeToken();;){if(nn.type===hn.EOF_TOKEN||wa(nn,en))return tn;this.reconsumeToken(nn),tn.values.push(this.consumeComponentValue()),nn=this.consumeToken()}},Parser.prototype.consumeFunction=function(en){for(var tn={name:en.value,values:[],type:hn.FUNCTION};;){var nn=this.consumeToken();if(nn.type===hn.EOF_TOKEN||nn.type===hn.RIGHT_PARENTHESIS_TOKEN)return tn;this.reconsumeToken(nn),tn.values.push(this.consumeComponentValue())}},Parser.prototype.consumeToken=function(){var en=this._tokens.shift();return void 0===en?da:en},Parser.prototype.reconsumeToken=function(en){this._tokens.unshift(en)},Parser}(),ga=function isDimensionToken(en){return en.type===hn.DIMENSION_TOKEN},fa=function isNumberToken(en){return en.type===hn.NUMBER_TOKEN},Aa=function isIdentToken(en){return en.type===hn.IDENT_TOKEN},ma=function isStringToken(en){return en.type===hn.STRING_TOKEN},va=function isIdentWithValue(en,tn){return Aa(en)&&en.value===tn},ya=function nonWhiteSpace(en){return en.type!==hn.WHITESPACE_TOKEN},_a=function nonFunctionArgSeparator(en){return en.type!==hn.WHITESPACE_TOKEN&&en.type!==hn.COMMA_TOKEN},ba=function parseFunctionArgs(en){var tn=[],nn=[];return en.forEach((function(en){if(en.type===hn.COMMA_TOKEN){if(0===nn.length)throw new Error("Error parsing function args, zero tokens for arg");return tn.push(nn),void(nn=[])}en.type!==hn.WHITESPACE_TOKEN&&nn.push(en)})),nn.length&&tn.push(nn),tn},wa=function isEndingTokenFor(en,tn){return tn===hn.LEFT_CURLY_BRACKET_TOKEN&&en.type===hn.RIGHT_CURLY_BRACKET_TOKEN||tn===hn.LEFT_SQUARE_BRACKET_TOKEN&&en.type===hn.RIGHT_SQUARE_BRACKET_TOKEN||tn===hn.LEFT_PARENTHESIS_TOKEN&&en.type===hn.RIGHT_PARENTHESIS_TOKEN},xa=function isLength(en){return en.type===hn.NUMBER_TOKEN||en.type===hn.DIMENSION_TOKEN},Sa=function isLengthPercentage(en){return en.type===hn.PERCENTAGE_TOKEN||xa(en)},Ca=function parseLengthPercentageTuple(en){return en.length>1?[en[0],en[1]]:[en[0]]},ka={type:hn.NUMBER_TOKEN,number:0,flags:ki},Ba={type:hn.PERCENTAGE_TOKEN,number:50,flags:ki},Ea={type:hn.PERCENTAGE_TOKEN,number:100,flags:ki},Pa=function getAbsoluteValueForTuple(en,tn,nn){var rn=en[0],an=en[1];return[La(rn,tn),La(void 0!==an?an:rn,nn)]},La=function getAbsoluteValue(en,tn){if(en.type===hn.PERCENTAGE_TOKEN)return en.number/100*tn;if(ga(en))switch(en.unit){case"rem":case"em":return 16*en.number;case"px":default:return en.number}return en.number},Ta="deg",Na="grad",Ia="rad",Oa="turn",Fa={name:"angle",parse:function parse(en){if(en.type===hn.DIMENSION_TOKEN)switch(en.unit){case Ta:return Math.PI*en.number/180;case Na:return Math.PI/200*en.number;case Ia:return en.number;case Oa:return 2*Math.PI*en.number}throw new Error("Unsupported angle type")}},Ua=function isAngle(en){return en.type===hn.DIMENSION_TOKEN&&(en.unit===Ta||en.unit===Na||en.unit===Ia||en.unit===Oa)},Ma=function parseNamedSide(en){switch(en.filter(Aa).map((function(en){return en.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ka,ka];case"to top":case"bottom":return Ra(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ka,Ea];case"to right":case"left":return Ra(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ea,Ea];case"to bottom":case"top":return Ra(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ea,ka];case"to left":case"right":return Ra(270)}return 0},Ra=function deg(en){return Math.PI*en/180},Da={name:"color",parse:function parse(en){if(en.type===hn.FUNCTION){var tn=$a[en.name];if(void 0===tn)throw new Error('Attempting to parse an unsupported color function "'+en.name+'"');return tn(en.values)}if(en.type===hn.HASH_TOKEN){if(3===en.value.length){var nn=en.value.substring(0,1),rn=en.value.substring(1,2),an=en.value.substring(2,3);return Ha(parseInt(nn+nn,16),parseInt(rn+rn,16),parseInt(an+an,16),1)}if(4===en.value.length){nn=en.value.substring(0,1),rn=en.value.substring(1,2),an=en.value.substring(2,3);var sn=en.value.substring(3,4);return Ha(parseInt(nn+nn,16),parseInt(rn+rn,16),parseInt(an+an,16),parseInt(sn+sn,16)/255)}if(6===en.value.length)return nn=en.value.substring(0,2),rn=en.value.substring(2,4),an=en.value.substring(4,6),Ha(parseInt(nn,16),parseInt(rn,16),parseInt(an,16),1);if(8===en.value.length)return nn=en.value.substring(0,2),rn=en.value.substring(2,4),an=en.value.substring(4,6),sn=en.value.substring(6,8),Ha(parseInt(nn,16),parseInt(rn,16),parseInt(an,16),parseInt(sn,16)/255)}if(en.type===hn.IDENT_TOKEN){var cn=Wa[en.value.toUpperCase()];if(void 0!==cn)return cn}return Wa.TRANSPARENT}},ja=function isTransparent(en){return 0==(255&en)},Qa=function asString(en){var tn=255&en,nn=255&en>>8,rn=255&en>>16,an=255&en>>24;return tn<255?"rgba("+an+","+rn+","+nn+","+tn/255+")":"rgb("+an+","+rn+","+nn+")"},Ha=function pack(en,tn,nn,rn){return(en<<24|tn<<16|nn<<8|Math.round(255*rn)<<0)>>>0},Ga=function getTokenColorValue(en,tn){if(en.type===hn.NUMBER_TOKEN)return en.number;if(en.type===hn.PERCENTAGE_TOKEN){var nn=3===tn?1:255;return 3===tn?en.number/100*nn:Math.round(en.number/100*nn)}return 0},Va=function rgb(en){var tn=en.filter(_a);if(3===tn.length){var nn=tn.map(Ga),rn=nn[0],an=nn[1],sn=nn[2];return Ha(rn,an,sn,1)}if(4===tn.length){var cn=tn.map(Ga),un=(rn=cn[0],an=cn[1],sn=cn[2],cn[3]);return Ha(rn,an,sn,un)}return 0};function hue2rgb(en,tn,nn){return nn<0&&(nn+=1),nn>=1&&(nn-=1),nn<1/6?(tn-en)*nn*6+en:nn<.5?tn:nn<2/3?6*(tn-en)*(2/3-nn)+en:en}var za,Ka,qa=function hsl(en){var tn=en.filter(_a),nn=tn[0],rn=tn[1],an=tn[2],sn=tn[3],cn=(nn.type===hn.NUMBER_TOKEN?Ra(nn.number):Fa.parse(nn))/(2*Math.PI),un=Sa(rn)?rn.number/100:0,dn=Sa(an)?an.number/100:0,pn=void 0!==sn&&Sa(sn)?La(sn,1):1;if(0===un)return Ha(255*dn,255*dn,255*dn,1);var gn=dn<=.5?dn*(un+1):dn+un-dn*un,An=2*dn-gn,mn=hue2rgb(An,gn,cn+1/3),vn=hue2rgb(An,gn,cn),yn=hue2rgb(An,gn,cn-1/3);return Ha(255*mn,255*vn,255*yn,pn)},$a={hsl:qa,hsla:qa,rgb:Va,rgba:Va},Wa={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(en){en[en.VALUE=0]="VALUE",en[en.LIST=1]="LIST",en[en.IDENT_VALUE=2]="IDENT_VALUE",en[en.TYPE_VALUE=3]="TYPE_VALUE",en[en.TOKEN_VALUE=4]="TOKEN_VALUE"})(za||(za={})),function(en){en[en.BORDER_BOX=0]="BORDER_BOX",en[en.PADDING_BOX=1]="PADDING_BOX",en[en.CONTENT_BOX=2]="CONTENT_BOX"}(Ka||(Ka={}));var Xa,Ya={name:"background-clip",initialValue:"border-box",prefix:!1,type:za.LIST,parse:function parse(en){return en.map((function(en){if(Aa(en))switch(en.value){case"padding-box":return Ka.PADDING_BOX;case"content-box":return Ka.CONTENT_BOX}return Ka.BORDER_BOX}))}},Ja={name:"background-color",initialValue:"transparent",prefix:!1,type:za.TYPE_VALUE,format:"color"},Za=function parseColorStop(en){var tn=Da.parse(en[0]),nn=en[1];return nn&&Sa(nn)?{color:tn,stop:nn}:{color:tn,stop:null}},es=function processColorStops(en,tn){var nn=en[0],rn=en[en.length-1];null===nn.stop&&(nn.stop=ka),null===rn.stop&&(rn.stop=Ea);for(var an=[],sn=0,cn=0;cn<en.length;cn++){var un=en[cn].stop;if(null!==un){var dn=La(un,tn);dn>sn?an.push(dn):an.push(sn),sn=dn}else an.push(null)}var pn=null;for(cn=0;cn<an.length;cn++){var hn=an[cn];if(null===hn)null===pn&&(pn=cn);else if(null!==pn){for(var gn=cn-pn,An=(hn-an[pn-1])/(gn+1),mn=1;mn<=gn;mn++)an[pn+mn-1]=An*mn;pn=null}}return en.map((function(en,nn){return{color:en.color,stop:Math.max(Math.min(1,an[nn]/tn),0)}}))},ts=function getAngleFromCorner(en,tn,nn){var rn=tn/2,an=nn/2,sn=La(en[0],tn)-rn,cn=an-La(en[1],nn);return(Math.atan2(cn,sn)+2*Math.PI)%(2*Math.PI)},ns=function calculateGradientDirection(en,tn,nn){var rn="number"==typeof en?en:ts(en,tn,nn),an=Math.abs(tn*Math.sin(rn))+Math.abs(nn*Math.cos(rn)),sn=tn/2,cn=nn/2,un=an/2,dn=Math.sin(rn-Math.PI/2)*un,pn=Math.cos(rn-Math.PI/2)*un;return[an,sn-pn,sn+pn,cn-dn,cn+dn]},rs=function distance(en,tn){return Math.sqrt(en*en+tn*tn)},os=function findCorner(en,tn,nn,rn,an){return[[0,0],[0,tn],[en,0],[en,tn]].reduce((function(en,tn){var sn=tn[0],cn=tn[1],un=rs(nn-sn,rn-cn);return(an?un<en.optimumDistance:un>en.optimumDistance)?{optimumCorner:tn,optimumDistance:un}:en}),{optimumDistance:an?1/0:-1/0,optimumCorner:null}).optimumCorner},as=function calculateRadius(en,tn,nn,rn,an){var sn=0,cn=0;switch(en.size){case Hs.CLOSEST_SIDE:en.shape===Qs.CIRCLE?sn=cn=Math.min(Math.abs(tn),Math.abs(tn-rn),Math.abs(nn),Math.abs(nn-an)):en.shape===Qs.ELLIPSE&&(sn=Math.min(Math.abs(tn),Math.abs(tn-rn)),cn=Math.min(Math.abs(nn),Math.abs(nn-an)));break;case Hs.CLOSEST_CORNER:if(en.shape===Qs.CIRCLE)sn=cn=Math.min(rs(tn,nn),rs(tn,nn-an),rs(tn-rn,nn),rs(tn-rn,nn-an));else if(en.shape===Qs.ELLIPSE){var un=Math.min(Math.abs(nn),Math.abs(nn-an))/Math.min(Math.abs(tn),Math.abs(tn-rn)),dn=os(rn,an,tn,nn,!0),pn=dn[0],hn=dn[1];cn=un*(sn=rs(pn-tn,(hn-nn)/un))}break;case Hs.FARTHEST_SIDE:en.shape===Qs.CIRCLE?sn=cn=Math.max(Math.abs(tn),Math.abs(tn-rn),Math.abs(nn),Math.abs(nn-an)):en.shape===Qs.ELLIPSE&&(sn=Math.max(Math.abs(tn),Math.abs(tn-rn)),cn=Math.max(Math.abs(nn),Math.abs(nn-an)));break;case Hs.FARTHEST_CORNER:if(en.shape===Qs.CIRCLE)sn=cn=Math.max(rs(tn,nn),rs(tn,nn-an),rs(tn-rn,nn),rs(tn-rn,nn-an));else if(en.shape===Qs.ELLIPSE){un=Math.max(Math.abs(nn),Math.abs(nn-an))/Math.max(Math.abs(tn),Math.abs(tn-rn));var gn=os(rn,an,tn,nn,!1);pn=gn[0],hn=gn[1],cn=un*(sn=rs(pn-tn,(hn-nn)/un))}}return Array.isArray(en.size)&&(sn=La(en.size[0],rn),cn=2===en.size.length?La(en.size[1],an):sn),[sn,cn]},ss=function linearGradient(en){var tn=Ra(180),nn=[];return ba(en).forEach((function(en,rn){if(0===rn){var an=en[0];if(an.type===hn.IDENT_TOKEN&&"to"===an.value)return void(tn=Ma(en));if(Ua(an))return void(tn=Fa.parse(an))}var sn=Za(en);nn.push(sn)})),{angle:tn,stops:nn,type:Xa.LINEAR_GRADIENT}},ls=function prefixLinearGradient(en){var tn=Ra(180),nn=[];return ba(en).forEach((function(en,rn){if(0===rn){var an=en[0];if(an.type===hn.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(an.value))return void(tn=Ma(en));if(Ua(an))return void(tn=(Fa.parse(an)+Ra(270))%Ra(360))}var sn=Za(en);nn.push(sn)})),{angle:tn,stops:nn,type:Xa.LINEAR_GRADIENT}},us=function testRangeBounds(en){var tn=123;if(en.createRange){var nn=en.createRange();if(nn.getBoundingClientRect){var rn=en.createElement("boundtest");rn.style.height=tn+"px",rn.style.display="block",en.body.appendChild(rn),nn.selectNode(rn);var an=nn.getBoundingClientRect(),sn=Math.round(an.height);if(en.body.removeChild(rn),sn===tn)return!0}}return!1},ds=function testCORS(){return void 0!==(new Image).crossOrigin},ps=function testResponseType(){return"string"==typeof(new XMLHttpRequest).responseType},hs=function testSVG(en){var tn=new Image,nn=en.createElement("canvas"),rn=nn.getContext("2d");if(!rn)return!1;tn.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{rn.drawImage(tn,0,0),nn.toDataURL()}catch(en){return!1}return!0},gs=function isGreenPixel(en){return 0===en[0]&&255===en[1]&&0===en[2]&&255===en[3]},fs=function testForeignObject(en){var tn=en.createElement("canvas"),nn=100;tn.width=nn,tn.height=nn;var rn=tn.getContext("2d");if(!rn)return Promise.reject(!1);rn.fillStyle="rgb(0, 255, 0)",rn.fillRect(0,0,nn,nn);var an=new Image,sn=tn.toDataURL();an.src=sn;var cn=As(nn,nn,0,0,an);return rn.fillStyle="red",rn.fillRect(0,0,nn,nn),ms(cn).then((function(tn){rn.drawImage(tn,0,0);var an=rn.getImageData(0,0,nn,nn).data;rn.fillStyle="red",rn.fillRect(0,0,nn,nn);var cn=en.createElement("div");return cn.style.backgroundImage="url("+sn+")",cn.style.height=nn+"px",gs(an)?ms(As(nn,nn,0,0,cn)):Promise.reject(!1)})).then((function(en){return rn.drawImage(en,0,0),gs(rn.getImageData(0,0,nn,nn).data)})).catch((function(){return!1}))},As=function createForeignObjectSVG(en,tn,nn,rn,an){var sn="http://www.w3.org/2000/svg",cn=document.createElementNS(sn,"svg"),un=document.createElementNS(sn,"foreignObject");return cn.setAttributeNS(null,"width",en.toString()),cn.setAttributeNS(null,"height",tn.toString()),un.setAttributeNS(null,"width","100%"),un.setAttributeNS(null,"height","100%"),un.setAttributeNS(null,"x",nn.toString()),un.setAttributeNS(null,"y",rn.toString()),un.setAttributeNS(null,"externalResourcesRequired","true"),cn.appendChild(un),un.appendChild(an),cn},ms=function loadSerializedSVG(en){return new Promise((function(tn,nn){var rn=new Image;rn.onload=function(){return tn(rn)},rn.onerror=nn,rn.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(en))}))},vs={get SUPPORT_RANGE_BOUNDS(){var en=us(document);return Object.defineProperty(vs,"SUPPORT_RANGE_BOUNDS",{value:en}),en},get SUPPORT_SVG_DRAWING(){var en=hs(document);return Object.defineProperty(vs,"SUPPORT_SVG_DRAWING",{value:en}),en},get SUPPORT_FOREIGNOBJECT_DRAWING(){var en="function"==typeof Array.from&&"function"==typeof window.fetch?fs(document):Promise.resolve(!1);return Object.defineProperty(vs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:en}),en},get SUPPORT_CORS_IMAGES(){var en=ds();return Object.defineProperty(vs,"SUPPORT_CORS_IMAGES",{value:en}),en},get SUPPORT_RESPONSE_TYPE(){var en=ps();return Object.defineProperty(vs,"SUPPORT_RESPONSE_TYPE",{value:en}),en},get SUPPORT_CORS_XHR(){var en="withCredentials"in new XMLHttpRequest;return Object.defineProperty(vs,"SUPPORT_CORS_XHR",{value:en}),en}},ys=function(){function Logger(en){var tn=en.id,nn=en.enabled;this.id=tn,this.enabled=nn,this.start=Date.now()}return Logger.prototype.debug=function(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(en)):this.info.apply(this,en))},Logger.prototype.getTime=function(){return Date.now()-this.start},Logger.create=function(en){Logger.instances[en.id]=new Logger(en)},Logger.destroy=function(en){delete Logger.instances[en]},Logger.getInstance=function(en){var tn=Logger.instances[en];if(void 0===tn)throw new Error("No logger instance found with id "+en);return tn},Logger.prototype.info=function(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(en))},Logger.prototype.error=function(){for(var en=[],tn=0;tn<arguments.length;tn++)en[tn]=arguments[tn];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(en)):this.info.apply(this,en))},Logger.instances={},Logger}(),_s=function(){function CacheStorage(){}return CacheStorage.create=function(en,tn){return CacheStorage._caches[en]=new bs(en,tn)},CacheStorage.destroy=function(en){delete CacheStorage._caches[en]},CacheStorage.open=function(en){var tn=CacheStorage._caches[en];if(void 0!==tn)return tn;throw new Error('Cache with key "'+en+'" not found')},CacheStorage.getOrigin=function(en){var tn=CacheStorage._link;return tn?(tn.href=en,tn.href=tn.href,tn.protocol+tn.hostname+tn.port):"about:blank"},CacheStorage.isSameOrigin=function(en){return CacheStorage.getOrigin(en)===CacheStorage._origin},CacheStorage.setContext=function(en){CacheStorage._link=en.document.createElement("a"),CacheStorage._origin=CacheStorage.getOrigin(en.location.href)},CacheStorage.getInstance=function(){var en=CacheStorage._current;if(null===en)throw new Error("No cache instance attached");return en},CacheStorage.attachInstance=function(en){CacheStorage._current=en},CacheStorage.detachInstance=function(){CacheStorage._current=null},CacheStorage._caches={},CacheStorage._origin="about:blank",CacheStorage._current=null,CacheStorage}(),bs=function(){function Cache(en,tn){this.id=en,this._options=tn,this._cache={}}return Cache.prototype.addImage=function(en){var tn=Promise.resolve();return this.has(en)?tn:Es(en)||Cs(en)?(this._cache[en]=this.loadImage(en),tn):tn},Cache.prototype.match=function(en){return this._cache[en]},Cache.prototype.loadImage=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn=this;return __generator(this,(function(cn){switch(cn.label){case 0:return tn=_s.isSameOrigin(en),nn=!ks(en)&&!0===this._options.useCORS&&vs.SUPPORT_CORS_IMAGES&&!tn,rn=!ks(en)&&!tn&&"string"==typeof this._options.proxy&&vs.SUPPORT_CORS_XHR&&!nn,tn||!1!==this._options.allowTaint||ks(en)||rn||nn?(an=en,rn?[4,this.proxy(an)]:[3,2]):[2];case 1:an=cn.sent(),cn.label=2;case 2:return ys.getInstance(this.id).debug("Added image "+en.substring(0,256)),[4,new Promise((function(en,tn){var rn=new Image;rn.onload=function(){return en(rn)},rn.onerror=tn,(Bs(an)||nn)&&(rn.crossOrigin="anonymous"),rn.src=an,!0===rn.complete&&setTimeout((function(){return en(rn)}),500),sn._options.imageTimeout>0&&setTimeout((function(){return tn("Timed out ("+sn._options.imageTimeout+"ms) loading image")}),sn._options.imageTimeout)}))];case 3:return[2,cn.sent()]}}))}))},Cache.prototype.has=function(en){return void 0!==this._cache[en]},Cache.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Cache.prototype.proxy=function(en){var tn=this,nn=this._options.proxy;if(!nn)throw new Error("No proxy defined");var rn=en.substring(0,256);return new Promise((function(an,sn){var cn=vs.SUPPORT_RESPONSE_TYPE?"blob":"text",un=new XMLHttpRequest;if(un.onload=function(){if(200===un.status)if("text"===cn)an(un.response);else{var en=new FileReader;en.addEventListener("load",(function(){return an(en.result)}),!1),en.addEventListener("error",(function(en){return sn(en)}),!1),en.readAsDataURL(un.response)}else sn("Failed to proxy resource "+rn+" with status code "+un.status)},un.onerror=sn,un.open("GET",nn+"?url="+encodeURIComponent(en)+"&responseType="+cn),"text"!==cn&&un instanceof XMLHttpRequest&&(un.responseType=cn),tn._options.imageTimeout){var dn=tn._options.imageTimeout;un.timeout=dn,un.ontimeout=function(){return sn("Timed out ("+dn+"ms) proxying "+rn)}}un.send()}))},Cache}(),ws=/^data:image\/svg\+xml/i,xs=/^data:image\/.*;base64,/i,Ss=/^data:image\/.*/i,Cs=function isRenderable(en){return vs.SUPPORT_SVG_DRAWING||!Ps(en)},ks=function isInlineImage(en){return Ss.test(en)},Bs=function isInlineBase64Image(en){return xs.test(en)},Es=function isBlobImage(en){return"blob"===en.substr(0,4)},Ps=function isSVG(en){return"svg"===en.substr(-3).toLowerCase()||ws.test(en)},Ls=function webkitGradient(en){var tn=Ra(180),nn=[],rn=Xa.LINEAR_GRADIENT,an=Qs.CIRCLE,sn=Hs.FARTHEST_CORNER,cn=[];return ba(en).forEach((function(en,tn){var an=en[0];if(0===tn){if(Aa(an)&&"linear"===an.value)return void(rn=Xa.LINEAR_GRADIENT);if(Aa(an)&&"radial"===an.value)return void(rn=Xa.RADIAL_GRADIENT)}if(an.type===hn.FUNCTION)if("from"===an.name){var sn=Da.parse(an.values[0]);nn.push({stop:ka,color:sn})}else if("to"===an.name)sn=Da.parse(an.values[0]),nn.push({stop:Ea,color:sn});else if("color-stop"===an.name){var cn=an.values.filter(_a);if(2===cn.length){sn=Da.parse(cn[1]);var un=cn[0];fa(un)&&nn.push({stop:{type:hn.PERCENTAGE_TOKEN,number:100*un.number,flags:un.flags},color:sn})}}})),rn===Xa.LINEAR_GRADIENT?{angle:(tn+Ra(180))%Ra(360),stops:nn,type:rn}:{size:sn,shape:an,stops:nn,position:cn,type:rn}},Ts="closest-side",Ns="farthest-side",Is="closest-corner",Os="farthest-corner",Fs="circle",Us="ellipse",Ms="cover",Rs="contain",Ds=function radialGradient(en){var tn=Qs.CIRCLE,nn=Hs.FARTHEST_CORNER,rn=[],an=[];return ba(en).forEach((function(en,sn){var cn=!0;if(0===sn){var un=!1;cn=en.reduce((function(en,rn){if(un)if(Aa(rn))switch(rn.value){case"center":return an.push(Ba),en;case"top":case"left":return an.push(ka),en;case"right":case"bottom":return an.push(Ea),en}else(Sa(rn)||xa(rn))&&an.push(rn);else if(Aa(rn))switch(rn.value){case Fs:return tn=Qs.CIRCLE,!1;case Us:return tn=Qs.ELLIPSE,!1;case"at":return un=!0,!1;case Ts:return nn=Hs.CLOSEST_SIDE,!1;case Ms:case Ns:return nn=Hs.FARTHEST_SIDE,!1;case Rs:case Is:return nn=Hs.CLOSEST_CORNER,!1;case Os:return nn=Hs.FARTHEST_CORNER,!1}else if(xa(rn)||Sa(rn))return Array.isArray(nn)||(nn=[]),nn.push(rn),!1;return en}),cn)}if(cn){var dn=Za(en);rn.push(dn)}})),{size:nn,shape:tn,stops:rn,position:an,type:Xa.RADIAL_GRADIENT}},js=function prefixRadialGradient(en){var tn=Qs.CIRCLE,nn=Hs.FARTHEST_CORNER,rn=[],an=[];return ba(en).forEach((function(en,sn){var cn=!0;if(0===sn?cn=en.reduce((function(en,tn){if(Aa(tn))switch(tn.value){case"center":return an.push(Ba),!1;case"top":case"left":return an.push(ka),!1;case"right":case"bottom":return an.push(Ea),!1}else if(Sa(tn)||xa(tn))return an.push(tn),!1;return en}),cn):1===sn&&(cn=en.reduce((function(en,rn){if(Aa(rn))switch(rn.value){case Fs:return tn=Qs.CIRCLE,!1;case Us:return tn=Qs.ELLIPSE,!1;case Rs:case Ts:return nn=Hs.CLOSEST_SIDE,!1;case Ns:return nn=Hs.FARTHEST_SIDE,!1;case Is:return nn=Hs.CLOSEST_CORNER,!1;case Ms:case Os:return nn=Hs.FARTHEST_CORNER,!1}else if(xa(rn)||Sa(rn))return Array.isArray(nn)||(nn=[]),nn.push(rn),!1;return en}),cn)),cn){var un=Za(en);rn.push(un)}})),{size:nn,shape:tn,stops:rn,position:an,type:Xa.RADIAL_GRADIENT}};!function(en){en[en.URL=0]="URL",en[en.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",en[en.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(Xa||(Xa={}));var Qs,Hs,Gs=function isLinearGradient(en){return en.type===Xa.LINEAR_GRADIENT},Vs=function isRadialGradient(en){return en.type===Xa.RADIAL_GRADIENT};(function(en){en[en.CIRCLE=0]="CIRCLE",en[en.ELLIPSE=1]="ELLIPSE"})(Qs||(Qs={})),function(en){en[en.CLOSEST_SIDE=0]="CLOSEST_SIDE",en[en.FARTHEST_SIDE=1]="FARTHEST_SIDE",en[en.CLOSEST_CORNER=2]="CLOSEST_CORNER",en[en.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(Hs||(Hs={}));var zs={name:"image",parse:function parse(en){if(en.type===hn.URL_TOKEN){var tn={url:en.value,type:Xa.URL};return _s.getInstance().addImage(en.value),tn}if(en.type===hn.FUNCTION){var nn=qs[en.name];if(void 0===nn)throw new Error('Attempting to parse an unsupported image function "'+en.name+'"');return nn(en.values)}throw new Error("Unsupported image type")}};function isSupportedImage(en){return en.type!==hn.FUNCTION||qs[en.name]}var Ks,qs={"linear-gradient":ss,"-moz-linear-gradient":ls,"-ms-linear-gradient":ls,"-o-linear-gradient":ls,"-webkit-linear-gradient":ls,"radial-gradient":Ds,"-moz-radial-gradient":js,"-ms-radial-gradient":js,"-o-radial-gradient":js,"-webkit-radial-gradient":js,"-webkit-gradient":Ls},$s={name:"background-image",initialValue:"none",type:za.LIST,prefix:!1,parse:function parse(en){if(0===en.length)return[];var tn=en[0];return tn.type===hn.IDENT_TOKEN&&"none"===tn.value?[]:en.filter((function(en){return _a(en)&&isSupportedImage(en)})).map(zs.parse)}},Ws={name:"background-origin",initialValue:"border-box",prefix:!1,type:za.LIST,parse:function parse(en){return en.map((function(en){if(Aa(en))switch(en.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Xs={name:"background-position",initialValue:"0% 0%",type:za.LIST,prefix:!1,parse:function parse(en){return ba(en).map((function(en){return en.filter(Sa)})).map(Ca)}};!function(en){en[en.REPEAT=0]="REPEAT",en[en.NO_REPEAT=1]="NO_REPEAT",en[en.REPEAT_X=2]="REPEAT_X",en[en.REPEAT_Y=3]="REPEAT_Y"}(Ks||(Ks={}));var Ys,Js={name:"background-repeat",initialValue:"repeat",prefix:!1,type:za.LIST,parse:function parse(en){return ba(en).map((function(en){return en.filter(Aa).map((function(en){return en.value})).join(" ")})).map(Zs)}},Zs=function parseBackgroundRepeat(en){switch(en){case"no-repeat":return Ks.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Ks.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Ks.REPEAT_Y;case"repeat":default:return Ks.REPEAT}};!function(en){en.AUTO="auto",en.CONTAIN="contain",en.COVER="cover"}(Ys||(Ys={}));var el,tl={name:"background-size",initialValue:"0",prefix:!1,type:za.LIST,parse:function parse(en){return ba(en).map((function(en){return en.filter(nl)}))}},nl=function isBackgroundSizeInfoToken(en){return Aa(en)||Sa(en)},rl=function borderColorForSide(en){return{name:"border-"+en+"-color",initialValue:"transparent",prefix:!1,type:za.TYPE_VALUE,format:"color"}},il=rl("top"),ol=rl("right"),al=rl("bottom"),sl=rl("left"),ll=function borderRadiusForSide(en){return{name:"border-radius-"+en,initialValue:"0 0",prefix:!1,type:za.LIST,parse:function parse(en){return Ca(en.filter(Sa))}}},cl=ll("top-left"),ul=ll("top-right"),dl=ll("bottom-right"),pl=ll("bottom-left");!function(en){en[en.NONE=0]="NONE",en[en.SOLID=1]="SOLID"}(el||(el={}));var hl,gl=function borderStyleForSide(en){return{name:"border-"+en+"-style",initialValue:"solid",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"none":return el.NONE}return el.SOLID}}},fl=gl("top"),Al=gl("right"),ml=gl("bottom"),vl=gl("left"),yl=function borderWidthForSide(en){return{name:"border-"+en+"-width",initialValue:"0",type:za.VALUE,prefix:!1,parse:function parse(en){return ga(en)?en.number:0}}},_l=yl("top"),wl=yl("right"),xl=yl("bottom"),Sl=yl("left"),Cl={name:"color",initialValue:"transparent",prefix:!1,type:za.TYPE_VALUE,format:"color"},kl={name:"display",initialValue:"inline-block",prefix:!1,type:za.LIST,parse:function parse(en){return en.filter(Aa).reduce((function(en,tn){return en|Bl(tn.value)}),0)}},Bl=function parseDisplayValue(en){switch(en){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(en){en[en.NONE=0]="NONE",en[en.LEFT=1]="LEFT",en[en.RIGHT=2]="RIGHT",en[en.INLINE_START=3]="INLINE_START",en[en.INLINE_END=4]="INLINE_END"}(hl||(hl={}));var El,Pl={name:"float",initialValue:"none",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"left":return hl.LEFT;case"right":return hl.RIGHT;case"inline-start":return hl.INLINE_START;case"inline-end":return hl.INLINE_END}return hl.NONE}},Ll={name:"letter-spacing",initialValue:"0",prefix:!1,type:za.VALUE,parse:function parse(en){return en.type===hn.IDENT_TOKEN&&"normal"===en.value?0:en.type===hn.NUMBER_TOKEN||en.type===hn.DIMENSION_TOKEN?en.number:0}};!function(en){en.NORMAL="normal",en.STRICT="strict"}(El||(El={}));var Tl,Nl={name:"line-break",initialValue:"normal",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"strict":return El.STRICT;case"normal":default:return El.NORMAL}}},Il={name:"line-height",initialValue:"normal",prefix:!1,type:za.TOKEN_VALUE},Ol=function computeLineHeight(en,tn){return Aa(en)&&"normal"===en.value?1.2*tn:en.type===hn.NUMBER_TOKEN?tn*en.number:Sa(en)?La(en,tn):tn},Fl={name:"list-style-image",initialValue:"none",type:za.VALUE,prefix:!1,parse:function parse(en){return en.type===hn.IDENT_TOKEN&&"none"===en.value?null:zs.parse(en)}};!function(en){en[en.INSIDE=0]="INSIDE",en[en.OUTSIDE=1]="OUTSIDE"}(Tl||(Tl={}));var Ul,Ml={name:"list-style-position",initialValue:"outside",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"inside":return Tl.INSIDE;case"outside":default:return Tl.OUTSIDE}}};!function(en){en[en.NONE=-1]="NONE",en[en.DISC=0]="DISC",en[en.CIRCLE=1]="CIRCLE",en[en.SQUARE=2]="SQUARE",en[en.DECIMAL=3]="DECIMAL",en[en.CJK_DECIMAL=4]="CJK_DECIMAL",en[en.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",en[en.LOWER_ROMAN=6]="LOWER_ROMAN",en[en.UPPER_ROMAN=7]="UPPER_ROMAN",en[en.LOWER_GREEK=8]="LOWER_GREEK",en[en.LOWER_ALPHA=9]="LOWER_ALPHA",en[en.UPPER_ALPHA=10]="UPPER_ALPHA",en[en.ARABIC_INDIC=11]="ARABIC_INDIC",en[en.ARMENIAN=12]="ARMENIAN",en[en.BENGALI=13]="BENGALI",en[en.CAMBODIAN=14]="CAMBODIAN",en[en.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",en[en.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",en[en.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",en[en.DEVANAGARI=18]="DEVANAGARI",en[en.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",en[en.GEORGIAN=20]="GEORGIAN",en[en.GUJARATI=21]="GUJARATI",en[en.GURMUKHI=22]="GURMUKHI",en[en.HEBREW=22]="HEBREW",en[en.HIRAGANA=23]="HIRAGANA",en[en.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",en[en.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",en[en.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",en[en.KANNADA=27]="KANNADA",en[en.KATAKANA=28]="KATAKANA",en[en.KATAKANA_IROHA=29]="KATAKANA_IROHA",en[en.KHMER=30]="KHMER",en[en.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",en[en.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",en[en.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",en[en.LAO=34]="LAO",en[en.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",en[en.MALAYALAM=36]="MALAYALAM",en[en.MONGOLIAN=37]="MONGOLIAN",en[en.MYANMAR=38]="MYANMAR",en[en.ORIYA=39]="ORIYA",en[en.PERSIAN=40]="PERSIAN",en[en.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",en[en.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",en[en.TAMIL=43]="TAMIL",en[en.TELUGU=44]="TELUGU",en[en.THAI=45]="THAI",en[en.TIBETAN=46]="TIBETAN",en[en.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",en[en.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",en[en.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",en[en.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",en[en.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Ul||(Ul={}));var Rl,Dl={name:"list-style-type",initialValue:"none",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"disc":return Ul.DISC;case"circle":return Ul.CIRCLE;case"square":return Ul.SQUARE;case"decimal":return Ul.DECIMAL;case"cjk-decimal":return Ul.CJK_DECIMAL;case"decimal-leading-zero":return Ul.DECIMAL_LEADING_ZERO;case"lower-roman":return Ul.LOWER_ROMAN;case"upper-roman":return Ul.UPPER_ROMAN;case"lower-greek":return Ul.LOWER_GREEK;case"lower-alpha":return Ul.LOWER_ALPHA;case"upper-alpha":return Ul.UPPER_ALPHA;case"arabic-indic":return Ul.ARABIC_INDIC;case"armenian":return Ul.ARMENIAN;case"bengali":return Ul.BENGALI;case"cambodian":return Ul.CAMBODIAN;case"cjk-earthly-branch":return Ul.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Ul.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Ul.CJK_IDEOGRAPHIC;case"devanagari":return Ul.DEVANAGARI;case"ethiopic-numeric":return Ul.ETHIOPIC_NUMERIC;case"georgian":return Ul.GEORGIAN;case"gujarati":return Ul.GUJARATI;case"gurmukhi":return Ul.GURMUKHI;case"hebrew":return Ul.HEBREW;case"hiragana":return Ul.HIRAGANA;case"hiragana-iroha":return Ul.HIRAGANA_IROHA;case"japanese-formal":return Ul.JAPANESE_FORMAL;case"japanese-informal":return Ul.JAPANESE_INFORMAL;case"kannada":return Ul.KANNADA;case"katakana":return Ul.KATAKANA;case"katakana-iroha":return Ul.KATAKANA_IROHA;case"khmer":return Ul.KHMER;case"korean-hangul-formal":return Ul.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Ul.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Ul.KOREAN_HANJA_INFORMAL;case"lao":return Ul.LAO;case"lower-armenian":return Ul.LOWER_ARMENIAN;case"malayalam":return Ul.MALAYALAM;case"mongolian":return Ul.MONGOLIAN;case"myanmar":return Ul.MYANMAR;case"oriya":return Ul.ORIYA;case"persian":return Ul.PERSIAN;case"simp-chinese-formal":return Ul.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Ul.SIMP_CHINESE_INFORMAL;case"tamil":return Ul.TAMIL;case"telugu":return Ul.TELUGU;case"thai":return Ul.THAI;case"tibetan":return Ul.TIBETAN;case"trad-chinese-formal":return Ul.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Ul.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Ul.UPPER_ARMENIAN;case"disclosure-open":return Ul.DISCLOSURE_OPEN;case"disclosure-closed":return Ul.DISCLOSURE_CLOSED;case"none":default:return Ul.NONE}}},jl=function marginForSide(en){return{name:"margin-"+en,initialValue:"0",prefix:!1,type:za.TOKEN_VALUE}},Ql=jl("top"),Hl=jl("right"),Gl=jl("bottom"),Vl=jl("left");!function(en){en[en.VISIBLE=0]="VISIBLE",en[en.HIDDEN=1]="HIDDEN",en[en.SCROLL=2]="SCROLL",en[en.AUTO=3]="AUTO"}(Rl||(Rl={}));var zl,Kl={name:"overflow",initialValue:"visible",prefix:!1,type:za.LIST,parse:function parse(en){return en.filter(Aa).map((function(en){switch(en.value){case"hidden":return Rl.HIDDEN;case"scroll":return Rl.SCROLL;case"auto":return Rl.AUTO;case"visible":default:return Rl.VISIBLE}}))}};!function(en){en.NORMAL="normal",en.BREAK_WORD="break-word"}(zl||(zl={}));var ql,$l={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"break-word":return zl.BREAK_WORD;case"normal":default:return zl.NORMAL}}},Wl=function paddingForSide(en){return{name:"padding-"+en,initialValue:"0",prefix:!1,type:za.TYPE_VALUE,format:"length-percentage"}},Xl=Wl("top"),Yl=Wl("right"),Jl=Wl("bottom"),Zl=Wl("left");!function(en){en[en.LEFT=0]="LEFT",en[en.CENTER=1]="CENTER",en[en.RIGHT=2]="RIGHT"}(ql||(ql={}));var ec,tc={name:"text-align",initialValue:"left",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"right":return ql.RIGHT;case"center":case"justify":return ql.CENTER;case"left":default:return ql.LEFT}}};!function(en){en[en.STATIC=0]="STATIC",en[en.RELATIVE=1]="RELATIVE",en[en.ABSOLUTE=2]="ABSOLUTE",en[en.FIXED=3]="FIXED",en[en.STICKY=4]="STICKY"}(ec||(ec={}));var nc,rc={name:"position",initialValue:"static",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"relative":return ec.RELATIVE;case"absolute":return ec.ABSOLUTE;case"fixed":return ec.FIXED;case"sticky":return ec.STICKY}return ec.STATIC}},ic={name:"text-shadow",initialValue:"none",type:za.LIST,prefix:!1,parse:function parse(en){return 1===en.length&&va(en[0],"none")?[]:ba(en).map((function(en){for(var tn={color:Wa.TRANSPARENT,offsetX:ka,offsetY:ka,blur:ka},nn=0,rn=0;rn<en.length;rn++){var an=en[rn];xa(an)?(0===nn?tn.offsetX=an:1===nn?tn.offsetY=an:tn.blur=an,nn++):tn.color=Da.parse(an)}return tn}))}};!function(en){en[en.NONE=0]="NONE",en[en.LOWERCASE=1]="LOWERCASE",en[en.UPPERCASE=2]="UPPERCASE",en[en.CAPITALIZE=3]="CAPITALIZE"}(nc||(nc={}));var oc,ac={name:"text-transform",initialValue:"none",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"uppercase":return nc.UPPERCASE;case"lowercase":return nc.LOWERCASE;case"capitalize":return nc.CAPITALIZE}return nc.NONE}},sc={name:"transform",initialValue:"none",prefix:!0,type:za.VALUE,parse:function parse(en){if(en.type===hn.IDENT_TOKEN&&"none"===en.value)return null;if(en.type===hn.FUNCTION){var tn=uc[en.name];if(void 0===tn)throw new Error('Attempting to parse an unsupported transform function "'+en.name+'"');return tn(en.values)}return null}},uc={matrix:function matrix(en){var tn=en.filter((function(en){return en.type===hn.NUMBER_TOKEN})).map((function(en){return en.number}));return 6===tn.length?tn:null},matrix3d:function matrix3d(en){var tn=en.filter((function(en){return en.type===hn.NUMBER_TOKEN})).map((function(en){return en.number})),nn=tn[0],rn=tn[1];tn[2],tn[3];var an=tn[4],sn=tn[5];tn[6],tn[7],tn[8],tn[9],tn[10],tn[11];var cn=tn[12],un=tn[13];return tn[14],tn[15],16===tn.length?[nn,rn,an,sn,cn,un]:null}},dc={type:hn.PERCENTAGE_TOKEN,number:50,flags:ki},pc=[dc,dc],hc={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:za.LIST,parse:function parse(en){var tn=en.filter(Sa);return 2!==tn.length?pc:[tn[0],tn[1]]}};!function(en){en[en.VISIBLE=0]="VISIBLE",en[en.HIDDEN=1]="HIDDEN",en[en.COLLAPSE=2]="COLLAPSE"}(oc||(oc={}));var gc,fc={name:"visible",initialValue:"none",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"hidden":return oc.HIDDEN;case"collapse":return oc.COLLAPSE;case"visible":default:return oc.VISIBLE}}};!function(en){en.NORMAL="normal",en.BREAK_ALL="break-all",en.KEEP_ALL="keep-all"}(gc||(gc={}));var Ac,mc={name:"word-break",initialValue:"normal",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"break-all":return gc.BREAK_ALL;case"keep-all":return gc.KEEP_ALL;case"normal":default:return gc.NORMAL}}},vc={name:"z-index",initialValue:"auto",prefix:!1,type:za.VALUE,parse:function parse(en){if(en.type===hn.IDENT_TOKEN)return{auto:!0,order:0};if(fa(en))return{auto:!1,order:en.number};throw new Error("Invalid z-index number parsed")}},yc={name:"opacity",initialValue:"1",type:za.VALUE,prefix:!1,parse:function parse(en){return fa(en)?en.number:1}},_c={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:za.TYPE_VALUE,format:"color"},bc={name:"text-decoration-line",initialValue:"none",prefix:!1,type:za.LIST,parse:function parse(en){return en.filter(Aa).map((function(en){switch(en.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(en){return 0!==en}))}},wc={name:"font-family",initialValue:"",prefix:!1,type:za.LIST,parse:function parse(en){var tn=[],nn=[];return en.forEach((function(en){switch(en.type){case hn.IDENT_TOKEN:case hn.STRING_TOKEN:tn.push(en.value);break;case hn.NUMBER_TOKEN:tn.push(en.number.toString());break;case hn.COMMA_TOKEN:nn.push(tn.join(" ")),tn.length=0}})),tn.length&&nn.push(tn.join(" ")),nn.map((function(en){return-1===en.indexOf(" ")?en:"'"+en+"'"}))}},xc={name:"font-size",initialValue:"0",prefix:!1,type:za.TYPE_VALUE,format:"length"},Sc={name:"font-weight",initialValue:"normal",type:za.VALUE,prefix:!1,parse:function parse(en){if(fa(en))return en.number;if(Aa(en))switch(en.value){case"bold":return 700;case"normal":default:return 400}return 400}},Cc={name:"font-variant",initialValue:"none",type:za.LIST,prefix:!1,parse:function parse(en){return en.filter(Aa).map((function(en){return en.value}))}};!function(en){en.NORMAL="normal",en.ITALIC="italic",en.OBLIQUE="oblique"}(Ac||(Ac={}));var kc,Bc={name:"font-style",initialValue:"normal",prefix:!1,type:za.IDENT_VALUE,parse:function parse(en){switch(en){case"oblique":return Ac.OBLIQUE;case"italic":return Ac.ITALIC;case"normal":default:return Ac.NORMAL}}},Ec=function contains(en,tn){return 0!=(en&tn)},Pc={name:"content",initialValue:"none",type:za.LIST,prefix:!1,parse:function parse(en){if(0===en.length)return[];var tn=en[0];return tn.type===hn.IDENT_TOKEN&&"none"===tn.value?[]:en}},Lc={name:"counter-increment",initialValue:"none",prefix:!0,type:za.LIST,parse:function parse(en){if(0===en.length)return null;var tn=en[0];if(tn.type===hn.IDENT_TOKEN&&"none"===tn.value)return null;for(var nn=[],rn=en.filter(ya),an=0;an<rn.length;an++){var sn=rn[an],cn=rn[an+1];if(sn.type===hn.IDENT_TOKEN){var un=cn&&fa(cn)?cn.number:1;nn.push({counter:sn.value,increment:un})}}return nn}},Tc={name:"counter-reset",initialValue:"none",prefix:!0,type:za.LIST,parse:function parse(en){if(0===en.length)return[];for(var tn=[],nn=en.filter(ya),rn=0;rn<nn.length;rn++){var an=nn[rn],sn=nn[rn+1];if(Aa(an)&&"none"!==an.value){var cn=sn&&fa(sn)?sn.number:0;tn.push({counter:an.value,reset:cn})}}return tn}},Nc={name:"quotes",initialValue:"none",prefix:!0,type:za.LIST,parse:function parse(en){if(0===en.length)return null;var tn=en[0];if(tn.type===hn.IDENT_TOKEN&&"none"===tn.value)return null;var nn=[],rn=en.filter(ma);if(rn.length%2!=0)return null;for(var an=0;an<rn.length;an+=2){var sn=rn[an].value,cn=rn[an+1].value;nn.push({open:sn,close:cn})}return nn}},Ic=function getQuote(en,tn,nn){if(!en)return"";var rn=en[Math.min(tn,en.length-1)];return rn?nn?rn.open:rn.close:""},Oc={name:"box-shadow",initialValue:"none",type:za.LIST,prefix:!1,parse:function parse(en){return 1===en.length&&va(en[0],"none")?[]:ba(en).map((function(en){for(var tn={color:255,offsetX:ka,offsetY:ka,blur:ka,spread:ka,inset:!1},nn=0,rn=0;rn<en.length;rn++){var an=en[rn];va(an,"inset")?tn.inset=!0:xa(an)?(0===nn?tn.offsetX=an:1===nn?tn.offsetY=an:2===nn?tn.blur=an:tn.spread=an,nn++):tn.color=Da.parse(an)}return tn}))}},Fc=function(){function CSSParsedDeclaration(en){this.backgroundClip=Rc(Ya,en.backgroundClip),this.backgroundColor=Rc(Ja,en.backgroundColor),this.backgroundImage=Rc($s,en.backgroundImage),this.backgroundOrigin=Rc(Ws,en.backgroundOrigin),this.backgroundPosition=Rc(Xs,en.backgroundPosition),this.backgroundRepeat=Rc(Js,en.backgroundRepeat),this.backgroundSize=Rc(tl,en.backgroundSize),this.borderTopColor=Rc(il,en.borderTopColor),this.borderRightColor=Rc(ol,en.borderRightColor),this.borderBottomColor=Rc(al,en.borderBottomColor),this.borderLeftColor=Rc(sl,en.borderLeftColor),this.borderTopLeftRadius=Rc(cl,en.borderTopLeftRadius),this.borderTopRightRadius=Rc(ul,en.borderTopRightRadius),this.borderBottomRightRadius=Rc(dl,en.borderBottomRightRadius),this.borderBottomLeftRadius=Rc(pl,en.borderBottomLeftRadius),this.borderTopStyle=Rc(fl,en.borderTopStyle),this.borderRightStyle=Rc(Al,en.borderRightStyle),this.borderBottomStyle=Rc(ml,en.borderBottomStyle),this.borderLeftStyle=Rc(vl,en.borderLeftStyle),this.borderTopWidth=Rc(_l,en.borderTopWidth),this.borderRightWidth=Rc(wl,en.borderRightWidth),this.borderBottomWidth=Rc(xl,en.borderBottomWidth),this.borderLeftWidth=Rc(Sl,en.borderLeftWidth),this.boxShadow=Rc(Oc,en.boxShadow),this.color=Rc(Cl,en.color),this.display=Rc(kl,en.display),this.float=Rc(Pl,en.cssFloat),this.fontFamily=Rc(wc,en.fontFamily),this.fontSize=Rc(xc,en.fontSize),this.fontStyle=Rc(Bc,en.fontStyle),this.fontVariant=Rc(Cc,en.fontVariant),this.fontWeight=Rc(Sc,en.fontWeight),this.letterSpacing=Rc(Ll,en.letterSpacing),this.lineBreak=Rc(Nl,en.lineBreak),this.lineHeight=Rc(Il,en.lineHeight),this.listStyleImage=Rc(Fl,en.listStyleImage),this.listStylePosition=Rc(Ml,en.listStylePosition),this.listStyleType=Rc(Dl,en.listStyleType),this.marginTop=Rc(Ql,en.marginTop),this.marginRight=Rc(Hl,en.marginRight),this.marginBottom=Rc(Gl,en.marginBottom),this.marginLeft=Rc(Vl,en.marginLeft),this.opacity=Rc(yc,en.opacity);var tn=Rc(Kl,en.overflow);this.overflowX=tn[0],this.overflowY=tn[tn.length>1?1:0],this.overflowWrap=Rc($l,en.overflowWrap),this.paddingTop=Rc(Xl,en.paddingTop),this.paddingRight=Rc(Yl,en.paddingRight),this.paddingBottom=Rc(Jl,en.paddingBottom),this.paddingLeft=Rc(Zl,en.paddingLeft),this.position=Rc(rc,en.position),this.textAlign=Rc(tc,en.textAlign),this.textDecorationColor=Rc(_c,en.textDecorationColor||en.color),this.textDecorationLine=Rc(bc,en.textDecorationLine),this.textShadow=Rc(ic,en.textShadow),this.textTransform=Rc(ac,en.textTransform),this.transform=Rc(sc,en.transform),this.transformOrigin=Rc(hc,en.transformOrigin),this.visibility=Rc(fc,en.visibility),this.wordBreak=Rc(mc,en.wordBreak),this.zIndex=Rc(vc,en.zIndex)}return CSSParsedDeclaration.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===oc.VISIBLE},CSSParsedDeclaration.prototype.isTransparent=function(){return ja(this.backgroundColor)},CSSParsedDeclaration.prototype.isTransformed=function(){return null!==this.transform},CSSParsedDeclaration.prototype.isPositioned=function(){return this.position!==ec.STATIC},CSSParsedDeclaration.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},CSSParsedDeclaration.prototype.isFloating=function(){return this.float!==hl.NONE},CSSParsedDeclaration.prototype.isInlineLevel=function(){return Ec(this.display,4)||Ec(this.display,33554432)||Ec(this.display,268435456)||Ec(this.display,536870912)||Ec(this.display,67108864)||Ec(this.display,134217728)},CSSParsedDeclaration}(),Uc=function(){function CSSParsedPseudoDeclaration(en){this.content=Rc(Pc,en.content),this.quotes=Rc(Nc,en.quotes)}return CSSParsedPseudoDeclaration}(),Mc=function(){function CSSParsedCounterDeclaration(en){this.counterIncrement=Rc(Lc,en.counterIncrement),this.counterReset=Rc(Tc,en.counterReset)}return CSSParsedCounterDeclaration}(),Rc=function parse(en,tn){var nn=new pa,rn=null!=tn?tn.toString():en.initialValue;nn.write(rn);var an=new ha(nn.read());switch(en.type){case za.IDENT_VALUE:var sn=an.parseComponentValue();return en.parse(Aa(sn)?sn.value:en.initialValue);case za.VALUE:return en.parse(an.parseComponentValue());case za.LIST:return en.parse(an.parseComponentValues());case za.TOKEN_VALUE:return an.parseComponentValue();case za.TYPE_VALUE:switch(en.format){case"angle":return Fa.parse(an.parseComponentValue());case"color":return Da.parse(an.parseComponentValue());case"image":return zs.parse(an.parseComponentValue());case"length":var cn=an.parseComponentValue();return xa(cn)?cn:ka;case"length-percentage":var un=an.parseComponentValue();return Sa(un)?un:ka}}throw new Error("Attempting to parse unsupported css format type "+en.format)},Dc=function(){function ElementContainer(en){this.styles=new Fc(window.getComputedStyle(en,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&xu(en)&&(en.style.transform="none"),this.bounds=rn(en),this.flags=0}return ElementContainer}(),jc=function(){function TextBounds(en,tn){this.text=en,this.bounds=tn}return TextBounds}(),Qc=function parseTextBounds(en,tn,nn){var rn=Vc(en,tn),an=[],sn=0;return rn.forEach((function(en){if(tn.textDecorationLine.length||en.trim().length>0)if(vs.SUPPORT_RANGE_BOUNDS)an.push(new jc(en,Gc(nn,sn,en.length)));else{var rn=nn.splitText(en.length);an.push(new jc(en,Hc(nn))),nn=rn}else vs.SUPPORT_RANGE_BOUNDS||(nn=nn.splitText(en.length));sn+=en.length})),an},Hc=function getWrapperBounds(en){var tn=en.ownerDocument;if(tn){var an=tn.createElement("html2canvaswrapper");an.appendChild(en.cloneNode(!0));var sn=en.parentNode;if(sn){sn.replaceChild(an,en);var cn=rn(an);return an.firstChild&&sn.replaceChild(an.firstChild,an),cn}}return new nn(0,0,0,0)},Gc=function getRangeBounds(en,tn,rn){var an=en.ownerDocument;if(!an)throw new Error("Node has no owner document");var sn=an.createRange();return sn.setStart(en,tn),sn.setEnd(en,tn+rn),nn.fromClientRect(sn.getBoundingClientRect())},Vc=function breakText(en,tn){return 0!==tn.letterSpacing?sn(en).map((function(en){return cn(en)})):zc(en,tn)},zc=function breakWords(en,tn){for(var nn,rn=xi(en,{lineBreak:tn.lineBreak,wordBreak:tn.overflowWrap===zl.BREAK_WORD?"break-word":tn.wordBreak}),an=[];!(nn=rn.next()).done;)nn.value&&an.push(nn.value.slice());return an},Kc=function(){function TextContainer(en,tn){this.text=qc(en.data,tn.textTransform),this.textBounds=Qc(this.text,tn,en)}return TextContainer}(),qc=function transform$1(en,tn){switch(tn){case nc.LOWERCASE:return en.toLowerCase();case nc.CAPITALIZE:return en.replace($c,Wc);case nc.UPPERCASE:return en.toUpperCase();default:return en}},$c=/(^|\s|:|-|\(|\))([a-z])/g,Wc=function capitalize(en,tn,nn){return en.length>0?tn+nn.toUpperCase():en},Xc=function(en){function ImageElementContainer(tn){var nn=en.call(this,tn)||this;return nn.src=tn.currentSrc||tn.src,nn.intrinsicWidth=tn.naturalWidth,nn.intrinsicHeight=tn.naturalHeight,_s.getInstance().addImage(nn.src),nn}return __extends(ImageElementContainer,en),ImageElementContainer}(Dc),Yc=function(en){function CanvasElementContainer(tn){var nn=en.call(this,tn)||this;return nn.canvas=tn,nn.intrinsicWidth=tn.width,nn.intrinsicHeight=tn.height,nn}return __extends(CanvasElementContainer,en),CanvasElementContainer}(Dc),Jc=function(en){function SVGElementContainer(tn){var nn=en.call(this,tn)||this,rn=new XMLSerializer;return nn.svg="data:image/svg+xml,"+encodeURIComponent(rn.serializeToString(tn)),nn.intrinsicWidth=tn.width.baseVal.value,nn.intrinsicHeight=tn.height.baseVal.value,_s.getInstance().addImage(nn.svg),nn}return __extends(SVGElementContainer,en),SVGElementContainer}(Dc),Zc=function(en){function LIElementContainer(tn){var nn=en.call(this,tn)||this;return nn.value=tn.value,nn}return __extends(LIElementContainer,en),LIElementContainer}(Dc),eu=function(en){function OLElementContainer(tn){var nn=en.call(this,tn)||this;return nn.start=tn.start,nn.reversed="boolean"==typeof tn.reversed&&!0===tn.reversed,nn}return __extends(OLElementContainer,en),OLElementContainer}(Dc),tu=[{type:hn.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],nu=[{type:hn.PERCENTAGE_TOKEN,flags:0,number:50}],ru=function reformatInputBounds(en){return en.width>en.height?new nn(en.left+(en.width-en.height)/2,en.top,en.height,en.height):en.width<en.height?new nn(en.left,en.top+(en.height-en.width)/2,en.width,en.width):en},iu=function getInputValue(en){var tn=en.type===su?new Array(en.value.length+1).join("•"):en.value;return 0===tn.length?en.placeholder||"":tn},ou="checkbox",au="radio",su="password",lu=707406591,uu=function(en){function InputElementContainer(tn){var nn=en.call(this,tn)||this;switch(nn.type=tn.type.toLowerCase(),nn.checked=tn.checked,nn.value=iu(tn),nn.type!==ou&&nn.type!==au||(nn.styles.backgroundColor=3739148031,nn.styles.borderTopColor=nn.styles.borderRightColor=nn.styles.borderBottomColor=nn.styles.borderLeftColor=2779096575,nn.styles.borderTopWidth=nn.styles.borderRightWidth=nn.styles.borderBottomWidth=nn.styles.borderLeftWidth=1,nn.styles.borderTopStyle=nn.styles.borderRightStyle=nn.styles.borderBottomStyle=nn.styles.borderLeftStyle=el.SOLID,nn.styles.backgroundClip=[Ka.BORDER_BOX],nn.styles.backgroundOrigin=[0],nn.bounds=ru(nn.bounds)),nn.type){case ou:nn.styles.borderTopRightRadius=nn.styles.borderTopLeftRadius=nn.styles.borderBottomRightRadius=nn.styles.borderBottomLeftRadius=tu;break;case au:nn.styles.borderTopRightRadius=nn.styles.borderTopLeftRadius=nn.styles.borderBottomRightRadius=nn.styles.borderBottomLeftRadius=nu}return nn}return __extends(InputElementContainer,en),InputElementContainer}(Dc),du=function(en){function SelectElementContainer(tn){var nn=en.call(this,tn)||this,rn=tn.options[tn.selectedIndex||0];return nn.value=rn&&rn.text||"",nn}return __extends(SelectElementContainer,en),SelectElementContainer}(Dc),pu=function(en){function TextareaElementContainer(tn){var nn=en.call(this,tn)||this;return nn.value=tn.value,nn}return __extends(TextareaElementContainer,en),TextareaElementContainer}(Dc),hu=function parseColor(en){return Da.parse(ha.create(en).parseComponentValue())},gu=function(en){function IFrameElementContainer(tn){var nn=en.call(this,tn)||this;nn.src=tn.src,nn.width=parseInt(tn.width,10)||0,nn.height=parseInt(tn.height,10)||0,nn.backgroundColor=nn.styles.backgroundColor;try{if(tn.contentWindow&&tn.contentWindow.document&&tn.contentWindow.document.documentElement){nn.tree=vu(tn.contentWindow.document.documentElement);var rn=tn.contentWindow.document.documentElement?hu(getComputedStyle(tn.contentWindow.document.documentElement).backgroundColor):Wa.TRANSPARENT,an=tn.contentWindow.document.body?hu(getComputedStyle(tn.contentWindow.document.body).backgroundColor):Wa.TRANSPARENT;nn.backgroundColor=ja(rn)?ja(an)?nn.styles.backgroundColor:an:rn}}catch(en){}return nn}return __extends(IFrameElementContainer,en),IFrameElementContainer}(Dc),fu=["OL","UL","MENU"],Au=function parseNodeTree(en,tn,nn){for(var rn=en.firstChild,an=void 0;rn;rn=an)if(an=rn.nextSibling,bu(rn)&&rn.data.trim().length>0)tn.textNodes.push(new Kc(rn,tn.styles));else if(wu(rn)){var sn=mu(rn);sn.styles.isVisible()&&(yu(rn,sn,nn)?sn.flags|=4:_u(sn.styles)&&(sn.flags|=2),-1!==fu.indexOf(rn.tagName)&&(sn.flags|=8),tn.elements.push(sn),Uu(rn)||Pu(rn)||Mu(rn)||parseNodeTree(rn,sn,nn))}},mu=function createContainer(en){return Nu(en)?new Xc(en):Tu(en)?new Yc(en):Pu(en)?new Jc(en):Cu(en)?new Zc(en):ku(en)?new eu(en):Bu(en)?new uu(en):Mu(en)?new du(en):Uu(en)?new pu(en):Iu(en)?new gu(en):new Dc(en)},vu=function parseTree(en){var tn=mu(en);return tn.flags|=4,Au(en,tn,tn),tn},yu=function createsRealStackingContext(en,tn,nn){return tn.styles.isPositionedWithZIndex()||tn.styles.opacity<1||tn.styles.isTransformed()||Lu(en)&&nn.styles.isTransparent()},_u=function createsStackingContext(en){return en.isPositioned()||en.isFloating()},bu=function isTextNode(en){return en.nodeType===Node.TEXT_NODE},wu=function isElementNode(en){return en.nodeType===Node.ELEMENT_NODE},xu=function isHTMLElementNode(en){return wu(en)&&void 0!==en.style&&!Su(en)},Su=function isSVGElementNode(en){return"object"===_typeof(en.className)},Cu=function isLIElement(en){return"LI"===en.tagName},ku=function isOLElement(en){return"OL"===en.tagName},Bu=function isInputElement(en){return"INPUT"===en.tagName},Eu=function isHTMLElement(en){return"HTML"===en.tagName},Pu=function isSVGElement(en){return"svg"===en.tagName},Lu=function isBodyElement(en){return"BODY"===en.tagName},Tu=function isCanvasElement(en){return"CANVAS"===en.tagName},Nu=function isImageElement(en){return"IMG"===en.tagName},Iu=function isIFrameElement(en){return"IFRAME"===en.tagName},Ou=function isStyleElement(en){return"STYLE"===en.tagName},Fu=function isScriptElement(en){return"SCRIPT"===en.tagName},Uu=function isTextareaElement(en){return"TEXTAREA"===en.tagName},Mu=function isSelectElement(en){return"SELECT"===en.tagName},Ru=function(){function CounterState(){this.counters={}}return CounterState.prototype.getCounterValue=function(en){var tn=this.counters[en];return tn&&tn.length?tn[tn.length-1]:1},CounterState.prototype.getCounterValues=function(en){var tn=this.counters[en];return tn||[]},CounterState.prototype.pop=function(en){var tn=this;en.forEach((function(en){return tn.counters[en].pop()}))},CounterState.prototype.parse=function(en){var tn=this,nn=en.counterIncrement,rn=en.counterReset,an=!0;null!==nn&&nn.forEach((function(en){var nn=tn.counters[en.counter];nn&&0!==en.increment&&(an=!1,nn[Math.max(0,nn.length-1)]+=en.increment)}));var sn=[];return an&&rn.forEach((function(en){var nn=tn.counters[en.counter];sn.push(en.counter),nn||(nn=tn.counters[en.counter]=[]),nn.push(en.reset)})),sn},CounterState}(),Du={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ju={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Qu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Hu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Gu=function createAdditiveCounter(en,tn,nn,rn,an,sn){return en<tn||en>nn?nd(en,an,sn.length>0):rn.integers.reduce((function(tn,nn,an){for(;en>=nn;)en-=nn,tn+=rn.values[an];return tn}),"")+sn},Vu=function createCounterStyleWithSymbolResolver(en,tn,nn,rn){var an="";do{nn||en--,an=rn(en)+an,en/=tn}while(en*tn>=tn);return an},zu=function createCounterStyleFromRange(en,tn,nn,rn,an){var sn=nn-tn+1;return(en<0?"-":"")+(Vu(Math.abs(en),sn,rn,(function(en){return cn(Math.floor(en%sn)+tn)}))+an)},Ku=function createCounterStyleFromSymbols(en,tn,nn){void 0===nn&&(nn=". ");var rn=tn.length;return Vu(Math.abs(en),rn,!1,(function(en){return tn[Math.floor(en%rn)]}))+nn},qu=1,$u=2,Wu=4,Xu=8,Yu=function createCJKCounter(en,tn,nn,rn,an,sn){if(en<-9999||en>9999)return nd(en,Ul.CJK_DECIMAL,an.length>0);var cn=Math.abs(en),un=an;if(0===cn)return tn[0]+un;for(var dn=0;cn>0&&dn<=4;dn++){var pn=cn%10;0===pn&&Ec(sn,qu)&&""!==un?un=tn[pn]+un:pn>1||1===pn&&0===dn||1===pn&&1===dn&&Ec(sn,$u)||1===pn&&1===dn&&Ec(sn,Wu)&&en>100||1===pn&&dn>1&&Ec(sn,Xu)?un=tn[pn]+(dn>0?nn[dn-1]:"")+un:1===pn&&dn>0&&(un=nn[dn-1]+un),cn=Math.floor(cn/10)}return(en<0?rn:"")+un},Ju="十百千萬",Zu="拾佰仟萬",ed="マイナス",td="마이너스",nd=function createCounterText(en,tn,nn){var rn=nn?". ":"",an=nn?"、":"",sn=nn?", ":"",cn=nn?" ":"";switch(tn){case Ul.DISC:return"•"+cn;case Ul.CIRCLE:return"◦"+cn;case Ul.SQUARE:return"◾"+cn;case Ul.DECIMAL_LEADING_ZERO:var un=zu(en,48,57,!0,rn);return un.length<4?"0"+un:un;case Ul.CJK_DECIMAL:return Ku(en,"〇一二三四五六七八九",an);case Ul.LOWER_ROMAN:return Gu(en,1,3999,Du,Ul.DECIMAL,rn).toLowerCase();case Ul.UPPER_ROMAN:return Gu(en,1,3999,Du,Ul.DECIMAL,rn);case Ul.LOWER_GREEK:return zu(en,945,969,!1,rn);case Ul.LOWER_ALPHA:return zu(en,97,122,!1,rn);case Ul.UPPER_ALPHA:return zu(en,65,90,!1,rn);case Ul.ARABIC_INDIC:return zu(en,1632,1641,!0,rn);case Ul.ARMENIAN:case Ul.UPPER_ARMENIAN:return Gu(en,1,9999,ju,Ul.DECIMAL,rn);case Ul.LOWER_ARMENIAN:return Gu(en,1,9999,ju,Ul.DECIMAL,rn).toLowerCase();case Ul.BENGALI:return zu(en,2534,2543,!0,rn);case Ul.CAMBODIAN:case Ul.KHMER:return zu(en,6112,6121,!0,rn);case Ul.CJK_EARTHLY_BRANCH:return Ku(en,"子丑寅卯辰巳午未申酉戌亥",an);case Ul.CJK_HEAVENLY_STEM:return Ku(en,"甲乙丙丁戊己庚辛壬癸",an);case Ul.CJK_IDEOGRAPHIC:case Ul.TRAD_CHINESE_INFORMAL:return Yu(en,"零一二三四五六七八九",Ju,"負",an,$u|Wu|Xu);case Ul.TRAD_CHINESE_FORMAL:return Yu(en,"零壹貳參肆伍陸柒捌玖",Zu,"負",an,qu|$u|Wu|Xu);case Ul.SIMP_CHINESE_INFORMAL:return Yu(en,"零一二三四五六七八九",Ju,"负",an,$u|Wu|Xu);case Ul.SIMP_CHINESE_FORMAL:return Yu(en,"零壹贰叁肆伍陆柒捌玖",Zu,"负",an,qu|$u|Wu|Xu);case Ul.JAPANESE_INFORMAL:return Yu(en,"〇一二三四五六七八九","十百千万",ed,an,0);case Ul.JAPANESE_FORMAL:return Yu(en,"零壱弐参四伍六七八九","拾百千万",ed,an,qu|$u|Wu);case Ul.KOREAN_HANGUL_FORMAL:return Yu(en,"영일이삼사오육칠팔구","십백천만",td,sn,qu|$u|Wu);case Ul.KOREAN_HANJA_INFORMAL:return Yu(en,"零一二三四五六七八九","十百千萬",td,sn,0);case Ul.KOREAN_HANJA_FORMAL:return Yu(en,"零壹貳參四五六七八九","拾百千",td,sn,qu|$u|Wu);case Ul.DEVANAGARI:return zu(en,2406,2415,!0,rn);case Ul.GEORGIAN:return Gu(en,1,19999,Hu,Ul.DECIMAL,rn);case Ul.GUJARATI:return zu(en,2790,2799,!0,rn);case Ul.GURMUKHI:return zu(en,2662,2671,!0,rn);case Ul.HEBREW:return Gu(en,1,10999,Qu,Ul.DECIMAL,rn);case Ul.HIRAGANA:return Ku(en,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Ul.HIRAGANA_IROHA:return Ku(en,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Ul.KANNADA:return zu(en,3302,3311,!0,rn);case Ul.KATAKANA:return Ku(en,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",an);case Ul.KATAKANA_IROHA:return Ku(en,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",an);case Ul.LAO:return zu(en,3792,3801,!0,rn);case Ul.MONGOLIAN:return zu(en,6160,6169,!0,rn);case Ul.MYANMAR:return zu(en,4160,4169,!0,rn);case Ul.ORIYA:return zu(en,2918,2927,!0,rn);case Ul.PERSIAN:return zu(en,1776,1785,!0,rn);case Ul.TAMIL:return zu(en,3046,3055,!0,rn);case Ul.TELUGU:return zu(en,3174,3183,!0,rn);case Ul.THAI:return zu(en,3664,3673,!0,rn);case Ul.TIBETAN:return zu(en,3872,3881,!0,rn);case Ul.DECIMAL:default:return zu(en,48,57,!0,rn)}},rd="data-html2canvas-ignore",id=function(){function DocumentCloner(en,tn){if(this.options=tn,this.scrolledElements=[],this.referenceElement=en,this.counters=new Ru,this.quoteDepth=0,!en.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(en.ownerDocument.documentElement)}return DocumentCloner.prototype.toIFrame=function(en,tn){var nn=this,rn=ad(en,tn);if(!rn.contentWindow)return Promise.reject("Unable to find iframe window");var an=en.defaultView.pageXOffset,sn=en.defaultView.pageYOffset,cn=rn.contentWindow,un=cn.document,dn=sd(rn).then((function(){return __awaiter(nn,void 0,void 0,(function(){var en;return __generator(this,(function(nn){switch(nn.label){case 0:return this.scrolledElements.forEach(dd),cn&&(cn.scrollTo(tn.left,tn.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||cn.scrollY===tn.top&&cn.scrollX===tn.left||(un.documentElement.style.top=-tn.top+"px",un.documentElement.style.left=-tn.left+"px",un.documentElement.style.position="absolute")),en=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:un.fonts&&un.fonts.ready?[4,un.fonts.ready]:[3,2];case 1:nn.sent(),nn.label=2;case 2:return"function"==typeof en?[2,Promise.resolve().then((function(){return en(un)})).then((function(){return rn}))]:[2,rn]}}))}))}));return un.open(),un.write(cd(document.doctype)+"<html></html>"),ud(this.referenceElement.ownerDocument,an,sn),un.replaceChild(un.adoptNode(this.documentElement),un.documentElement),un.close(),dn},DocumentCloner.prototype.createElementClone=function(en){if(Tu(en))return this.createCanvasClone(en);if(Ou(en))return this.createStyleClone(en);var tn=en.cloneNode(!1);return Nu(tn)&&"lazy"===tn.loading&&(tn.loading="eager"),tn},DocumentCloner.prototype.createStyleClone=function(en){try{var tn=en.sheet;if(tn&&tn.cssRules){var nn=[].slice.call(tn.cssRules,0).reduce((function(en,tn){return tn&&"string"==typeof tn.cssText?en+tn.cssText:en}),""),rn=en.cloneNode(!1);return rn.textContent=nn,rn}}catch(en){if(ys.getInstance(this.options.id).error("Unable to access cssRules property",en),"SecurityError"!==en.name)throw en}return en.cloneNode(!1)},DocumentCloner.prototype.createCanvasClone=function(en){if(this.options.inlineImages&&en.ownerDocument){var tn=en.ownerDocument.createElement("img");try{return tn.src=en.toDataURL(),tn}catch(en){ys.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var nn=en.cloneNode(!1);try{nn.width=en.width,nn.height=en.height;var rn=en.getContext("2d"),an=nn.getContext("2d");return an&&(rn?an.putImageData(rn.getImageData(0,0,en.width,en.height),0,0):an.drawImage(en,0,0)),nn}catch(en){}return nn},DocumentCloner.prototype.cloneNode=function(en){if(bu(en))return document.createTextNode(en.data);if(!en.ownerDocument)return en.cloneNode(!1);var tn=en.ownerDocument.defaultView;if(tn&&wu(en)&&(xu(en)||Su(en))){var nn=this.createElementClone(en),rn=tn.getComputedStyle(en),an=tn.getComputedStyle(en,":before"),sn=tn.getComputedStyle(en,":after");this.referenceElement===en&&xu(nn)&&(this.clonedReferenceElement=nn),Lu(nn)&&md(nn);for(var cn=this.counters.parse(new Mc(rn)),un=this.resolvePseudoContent(en,nn,an,kc.BEFORE),dn=en.firstChild;dn;dn=dn.nextSibling)wu(dn)&&(Fu(dn)||dn.hasAttribute(rd)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(dn))||this.options.copyStyles&&wu(dn)&&Ou(dn)||nn.appendChild(this.cloneNode(dn));un&&nn.insertBefore(un,nn.firstChild);var pn=this.resolvePseudoContent(en,nn,sn,kc.AFTER);return pn&&nn.appendChild(pn),this.counters.pop(cn),rn&&(this.options.copyStyles||Su(en))&&!Iu(en)&&ld(rn,nn),0===en.scrollTop&&0===en.scrollLeft||this.scrolledElements.push([nn,en.scrollLeft,en.scrollTop]),(Uu(en)||Mu(en))&&(Uu(nn)||Mu(nn))&&(nn.value=en.value),nn}return en.cloneNode(!1)},DocumentCloner.prototype.resolvePseudoContent=function(en,tn,nn,rn){var an=this;if(nn){var sn=nn.content,cn=tn.ownerDocument;if(cn&&sn&&"none"!==sn&&"-moz-alt-content"!==sn&&"none"!==nn.display){this.counters.parse(new Mc(nn));var un=new Uc(nn),dn=cn.createElement("html2canvaspseudoelement");ld(nn,dn),un.content.forEach((function(tn){if(tn.type===hn.STRING_TOKEN)dn.appendChild(cn.createTextNode(tn.value));else if(tn.type===hn.URL_TOKEN){var nn=cn.createElement("img");nn.src=tn.value,nn.style.opacity="1",dn.appendChild(nn)}else if(tn.type===hn.FUNCTION){if("attr"===tn.name){var rn=tn.values.filter(Aa);rn.length&&dn.appendChild(cn.createTextNode(en.getAttribute(rn[0].value)||""))}else if("counter"===tn.name){var sn=tn.values.filter(_a),pn=sn[0],gn=sn[1];if(pn&&Aa(pn)){var An=an.counters.getCounterValue(pn.value),mn=gn&&Aa(gn)?Dl.parse(gn.value):Ul.DECIMAL;dn.appendChild(cn.createTextNode(nd(An,mn,!1)))}}else if("counters"===tn.name){var vn=tn.values.filter(_a),yn=(pn=vn[0],vn[1]);if(gn=vn[2],pn&&Aa(pn)){var _n=an.counters.getCounterValues(pn.value),wn=gn&&Aa(gn)?Dl.parse(gn.value):Ul.DECIMAL,xn=yn&&yn.type===hn.STRING_TOKEN?yn.value:"",Sn=_n.map((function(en){return nd(en,wn,!1)})).join(xn);dn.appendChild(cn.createTextNode(Sn))}}}else if(tn.type===hn.IDENT_TOKEN)switch(tn.value){case"open-quote":dn.appendChild(cn.createTextNode(Ic(un.quotes,an.quoteDepth++,!0)));break;case"close-quote":dn.appendChild(cn.createTextNode(Ic(un.quotes,--an.quoteDepth,!1)));break;default:dn.appendChild(cn.createTextNode(tn.value))}})),dn.className=gd+" "+fd;var pn=rn===kc.BEFORE?" "+gd:" "+fd;return Su(tn)?tn.className.baseValue+=pn:tn.className+=pn,dn}}},DocumentCloner.destroy=function(en){return!!en.parentNode&&(en.parentNode.removeChild(en),!0)},DocumentCloner}();!function(en){en[en.BEFORE=0]="BEFORE",en[en.AFTER=1]="AFTER"}(kc||(kc={}));var od,ad=function createIFrameContainer(en,tn){var nn=en.createElement("iframe");return nn.className="html2canvas-container",nn.style.visibility="hidden",nn.style.position="fixed",nn.style.left="-10000px",nn.style.top="0px",nn.style.border="0",nn.width=tn.width.toString(),nn.height=tn.height.toString(),nn.scrolling="no",nn.setAttribute(rd,"true"),en.body.appendChild(nn),nn},sd=function iframeLoader(en){return new Promise((function(tn,nn){var rn=en.contentWindow;if(!rn)return nn("No window assigned for iframe");var an=rn.document;rn.onload=en.onload=an.onreadystatechange=function(){rn.onload=en.onload=an.onreadystatechange=null;var nn=setInterval((function(){an.body.childNodes.length>0&&"complete"===an.readyState&&(clearInterval(nn),tn(en))}),50)}}))},ld=function copyCSSStyles(en,tn){for(var nn=en.length-1;nn>=0;nn--){var rn=en.item(nn);"content"!==rn&&tn.style.setProperty(rn,en.getPropertyValue(rn))}return tn},cd=function serializeDoctype(en){var tn="";return en&&(tn+="<!DOCTYPE ",en.name&&(tn+=en.name),en.internalSubset&&(tn+=en.internalSubset),en.publicId&&(tn+='"'+en.publicId+'"'),en.systemId&&(tn+='"'+en.systemId+'"'),tn+=">"),tn},ud=function restoreOwnerScroll(en,tn,nn){en&&en.defaultView&&(tn!==en.defaultView.pageXOffset||nn!==en.defaultView.pageYOffset)&&en.defaultView.scrollTo(tn,nn)},dd=function restoreNodeScroll(en){var tn=en[0],nn=en[1],rn=en[2];tn.scrollLeft=nn,tn.scrollTop=rn},pd=":before",hd=":after",gd="___html2canvas___pseudoelement_before",fd="___html2canvas___pseudoelement_after",Ad='{\n content: "" !important;\n display: none !important;\n}',md=function createPseudoHideStyles(en){vd(en,"."+gd+pd+Ad+"\n ."+fd+hd+Ad)},vd=function createStyles(en,tn){var nn=en.ownerDocument;if(nn){var rn=nn.createElement("style");rn.textContent=tn,en.appendChild(rn)}};!function(en){en[en.VECTOR=0]="VECTOR",en[en.BEZIER_CURVE=1]="BEZIER_CURVE"}(od||(od={}));var yd,_d=function equalPath(en,tn){return en.length===tn.length&&en.some((function(en,nn){return en===tn[nn]}))},bd=function transformPath(en,tn,nn,rn,an){return en.map((function(en,sn){switch(sn){case 0:return en.add(tn,nn);case 1:return en.add(tn+rn,nn);case 2:return en.add(tn+rn,nn+an);case 3:return en.add(tn,nn+an)}return en}))},wd=function(){function Vector(en,tn){this.type=od.VECTOR,this.x=en,this.y=tn}return Vector.prototype.add=function(en,tn){return new Vector(this.x+en,this.y+tn)},Vector}(),xd=function lerp(en,tn,nn){return new wd(en.x+(tn.x-en.x)*nn,en.y+(tn.y-en.y)*nn)},Sd=function(){function BezierCurve(en,tn,nn,rn){this.type=od.BEZIER_CURVE,this.start=en,this.startControl=tn,this.endControl=nn,this.end=rn}return BezierCurve.prototype.subdivide=function(en,tn){var nn=xd(this.start,this.startControl,en),rn=xd(this.startControl,this.endControl,en),an=xd(this.endControl,this.end,en),sn=xd(nn,rn,en),cn=xd(rn,an,en),un=xd(sn,cn,en);return tn?new BezierCurve(this.start,nn,sn,un):new BezierCurve(un,cn,an,this.end)},BezierCurve.prototype.add=function(en,tn){return new BezierCurve(this.start.add(en,tn),this.startControl.add(en,tn),this.endControl.add(en,tn),this.end.add(en,tn))},BezierCurve.prototype.reverse=function(){return new BezierCurve(this.end,this.endControl,this.startControl,this.start)},BezierCurve}(),Cd=function isBezierCurve(en){return en.type===od.BEZIER_CURVE},kd=function(){function BoundCurves(en){var tn=en.styles,nn=en.bounds,rn=Pa(tn.borderTopLeftRadius,nn.width,nn.height),an=rn[0],sn=rn[1],cn=Pa(tn.borderTopRightRadius,nn.width,nn.height),un=cn[0],dn=cn[1],pn=Pa(tn.borderBottomRightRadius,nn.width,nn.height),hn=pn[0],gn=pn[1],An=Pa(tn.borderBottomLeftRadius,nn.width,nn.height),mn=An[0],vn=An[1],yn=[];yn.push((an+un)/nn.width),yn.push((mn+hn)/nn.width),yn.push((sn+vn)/nn.height),yn.push((dn+gn)/nn.height);var _n=Math.max.apply(Math,yn);_n>1&&(an/=_n,sn/=_n,un/=_n,dn/=_n,hn/=_n,gn/=_n,mn/=_n,vn/=_n);var wn=nn.width-un,xn=nn.height-gn,Sn=nn.width-hn,Cn=nn.height-vn,kn=tn.borderTopWidth,Bn=tn.borderRightWidth,En=tn.borderBottomWidth,Pn=tn.borderLeftWidth,Ln=La(tn.paddingTop,en.bounds.width),Tn=La(tn.paddingRight,en.bounds.width),Nn=La(tn.paddingBottom,en.bounds.width),In=La(tn.paddingLeft,en.bounds.width);this.topLeftBorderBox=an>0||sn>0?Bd(nn.left,nn.top,an,sn,yd.TOP_LEFT):new wd(nn.left,nn.top),this.topRightBorderBox=un>0||dn>0?Bd(nn.left+wn,nn.top,un,dn,yd.TOP_RIGHT):new wd(nn.left+nn.width,nn.top),this.bottomRightBorderBox=hn>0||gn>0?Bd(nn.left+Sn,nn.top+xn,hn,gn,yd.BOTTOM_RIGHT):new wd(nn.left+nn.width,nn.top+nn.height),this.bottomLeftBorderBox=mn>0||vn>0?Bd(nn.left,nn.top+Cn,mn,vn,yd.BOTTOM_LEFT):new wd(nn.left,nn.top+nn.height),this.topLeftPaddingBox=an>0||sn>0?Bd(nn.left+Pn,nn.top+kn,Math.max(0,an-Pn),Math.max(0,sn-kn),yd.TOP_LEFT):new wd(nn.left+Pn,nn.top+kn),this.topRightPaddingBox=un>0||dn>0?Bd(nn.left+Math.min(wn,nn.width+Pn),nn.top+kn,wn>nn.width+Pn?0:un-Pn,dn-kn,yd.TOP_RIGHT):new wd(nn.left+nn.width-Bn,nn.top+kn),this.bottomRightPaddingBox=hn>0||gn>0?Bd(nn.left+Math.min(Sn,nn.width-Pn),nn.top+Math.min(xn,nn.height+kn),Math.max(0,hn-Bn),gn-En,yd.BOTTOM_RIGHT):new wd(nn.left+nn.width-Bn,nn.top+nn.height-En),this.bottomLeftPaddingBox=mn>0||vn>0?Bd(nn.left+Pn,nn.top+Cn,Math.max(0,mn-Pn),vn-En,yd.BOTTOM_LEFT):new wd(nn.left+Pn,nn.top+nn.height-En),this.topLeftContentBox=an>0||sn>0?Bd(nn.left+Pn+In,nn.top+kn+Ln,Math.max(0,an-(Pn+In)),Math.max(0,sn-(kn+Ln)),yd.TOP_LEFT):new wd(nn.left+Pn+In,nn.top+kn+Ln),this.topRightContentBox=un>0||dn>0?Bd(nn.left+Math.min(wn,nn.width+Pn+In),nn.top+kn+Ln,wn>nn.width+Pn+In?0:un-Pn+In,dn-(kn+Ln),yd.TOP_RIGHT):new wd(nn.left+nn.width-(Bn+Tn),nn.top+kn+Ln),this.bottomRightContentBox=hn>0||gn>0?Bd(nn.left+Math.min(Sn,nn.width-(Pn+In)),nn.top+Math.min(xn,nn.height+kn+Ln),Math.max(0,hn-(Bn+Tn)),gn-(En+Nn),yd.BOTTOM_RIGHT):new wd(nn.left+nn.width-(Bn+Tn),nn.top+nn.height-(En+Nn)),this.bottomLeftContentBox=mn>0||vn>0?Bd(nn.left+Pn+In,nn.top+Cn,Math.max(0,mn-(Pn+In)),vn-(En+Nn),yd.BOTTOM_LEFT):new wd(nn.left+Pn+In,nn.top+nn.height-(En+Nn))}return BoundCurves}();!function(en){en[en.TOP_LEFT=0]="TOP_LEFT",en[en.TOP_RIGHT=1]="TOP_RIGHT",en[en.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",en[en.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(yd||(yd={}));var Bd=function getCurvePoints(en,tn,nn,rn,an){var sn=(Math.sqrt(2)-1)/3*4,cn=nn*sn,un=rn*sn,dn=en+nn,pn=tn+rn;switch(an){case yd.TOP_LEFT:return new Sd(new wd(en,pn),new wd(en,pn-un),new wd(dn-cn,tn),new wd(dn,tn));case yd.TOP_RIGHT:return new Sd(new wd(en,tn),new wd(en+cn,tn),new wd(dn,pn-un),new wd(dn,pn));case yd.BOTTOM_RIGHT:return new Sd(new wd(dn,tn),new wd(dn,tn+un),new wd(en+cn,pn),new wd(en,pn));case yd.BOTTOM_LEFT:default:return new Sd(new wd(dn,pn),new wd(dn-cn,pn),new wd(en,tn+un),new wd(en,tn))}},Ed=function calculateBorderBoxPath(en){return[en.topLeftBorderBox,en.topRightBorderBox,en.bottomRightBorderBox,en.bottomLeftBorderBox]},Pd=function calculateContentBoxPath(en){return[en.topLeftContentBox,en.topRightContentBox,en.bottomRightContentBox,en.bottomLeftContentBox]},Ld=function calculatePaddingBoxPath(en){return[en.topLeftPaddingBox,en.topRightPaddingBox,en.bottomRightPaddingBox,en.bottomLeftPaddingBox]},Td=function(){function TransformEffect(en,tn,nn){this.type=0,this.offsetX=en,this.offsetY=tn,this.matrix=nn,this.target=6}return TransformEffect}(),Nd=function(){function ClipEffect(en,tn){this.type=1,this.target=tn,this.path=en}return ClipEffect}(),Id=function isTransformEffect(en){return 0===en.type},Od=function isClipEffect(en){return 1===en.type},Fd=function(){function StackingContext(en){this.element=en,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return StackingContext}(),Ud=function(){function ElementPaint(en,tn){if(this.container=en,this.effects=tn.slice(0),this.curves=new kd(en),null!==en.styles.transform){var nn=en.bounds.left+en.styles.transformOrigin[0].number,rn=en.bounds.top+en.styles.transformOrigin[1].number,an=en.styles.transform;this.effects.push(new Td(nn,rn,an))}if(en.styles.overflowX!==Rl.VISIBLE){var sn=Ed(this.curves),cn=Ld(this.curves);_d(sn,cn)?this.effects.push(new Nd(sn,6)):(this.effects.push(new Nd(sn,2)),this.effects.push(new Nd(cn,4)))}}return ElementPaint.prototype.getParentEffects=function(){var en=this.effects.slice(0);if(this.container.styles.overflowX!==Rl.VISIBLE){var tn=Ed(this.curves),nn=Ld(this.curves);_d(tn,nn)||en.push(new Nd(nn,6))}return en},ElementPaint}(),Md=function parseStackTree(en,tn,nn,rn){en.container.elements.forEach((function(an){var sn=Ec(an.flags,4),cn=Ec(an.flags,2),un=new Ud(an,en.getParentEffects());Ec(an.styles.display,2048)&&rn.push(un);var dn=Ec(an.flags,8)?[]:rn;if(sn||cn){var pn=sn||an.styles.isPositioned()?nn:tn,hn=new Fd(un);if(an.styles.isPositioned()||an.styles.opacity<1||an.styles.isTransformed()){var gn=an.styles.zIndex.order;if(gn<0){var An=0;pn.negativeZIndex.some((function(en,tn){return gn>en.element.container.styles.zIndex.order?(An=tn,!1):An>0})),pn.negativeZIndex.splice(An,0,hn)}else if(gn>0){var mn=0;pn.positiveZIndex.some((function(en,tn){return gn>=en.element.container.styles.zIndex.order?(mn=tn+1,!1):mn>0})),pn.positiveZIndex.splice(mn,0,hn)}else pn.zeroOrAutoZIndexOrTransformedOrOpacity.push(hn)}else an.styles.isFloating()?pn.nonPositionedFloats.push(hn):pn.nonPositionedInlineLevel.push(hn);parseStackTree(un,hn,sn?hn:nn,dn)}else an.styles.isInlineLevel()?tn.inlineLevel.push(un):tn.nonInlineLevel.push(un),parseStackTree(un,tn,nn,dn);Ec(an.flags,8)&&Rd(an,dn)}))},Rd=function processListItems(en,tn){for(var nn=en instanceof eu?en.start:1,rn=en instanceof eu&&en.reversed,an=0;an<tn.length;an++){var sn=tn[an];sn.container instanceof Zc&&"number"==typeof sn.container.value&&0!==sn.container.value&&(nn=sn.container.value),sn.listValue=nd(nn,sn.container.styles.listStyleType,!0),nn+=rn?-1:1}},Dd=function parseStackingContexts(en){var tn=new Ud(en,[]),nn=new Fd(tn),rn=[];return Md(tn,nn,nn,rn),Rd(tn.container,rn),nn},jd=function parsePathForBorder(en,tn){switch(tn){case 0:return Qd(en.topLeftBorderBox,en.topLeftPaddingBox,en.topRightBorderBox,en.topRightPaddingBox);case 1:return Qd(en.topRightBorderBox,en.topRightPaddingBox,en.bottomRightBorderBox,en.bottomRightPaddingBox);case 2:return Qd(en.bottomRightBorderBox,en.bottomRightPaddingBox,en.bottomLeftBorderBox,en.bottomLeftPaddingBox);case 3:default:return Qd(en.bottomLeftBorderBox,en.bottomLeftPaddingBox,en.topLeftBorderBox,en.topLeftPaddingBox)}},Qd=function createPathFromCurves(en,tn,nn,rn){var an=[];return Cd(en)?an.push(en.subdivide(.5,!1)):an.push(en),Cd(nn)?an.push(nn.subdivide(.5,!0)):an.push(nn),Cd(rn)?an.push(rn.subdivide(.5,!0).reverse()):an.push(rn),Cd(tn)?an.push(tn.subdivide(.5,!1).reverse()):an.push(tn),an},Hd=function paddingBox(en){var tn=en.bounds,nn=en.styles;return tn.add(nn.borderLeftWidth,nn.borderTopWidth,-(nn.borderRightWidth+nn.borderLeftWidth),-(nn.borderTopWidth+nn.borderBottomWidth))},Gd=function contentBox(en){var tn=en.styles,nn=en.bounds,rn=La(tn.paddingLeft,nn.width),an=La(tn.paddingRight,nn.width),sn=La(tn.paddingTop,nn.width),cn=La(tn.paddingBottom,nn.width);return nn.add(rn+tn.borderLeftWidth,sn+tn.borderTopWidth,-(tn.borderRightWidth+tn.borderLeftWidth+rn+an),-(tn.borderTopWidth+tn.borderBottomWidth+sn+cn))},Vd=function calculateBackgroundPositioningArea(en,tn){return 0===en?tn.bounds:2===en?Gd(tn):Hd(tn)},zd=function calculateBackgroundPaintingArea(en,tn){return en===Ka.BORDER_BOX?tn.bounds:en===Ka.CONTENT_BOX?Gd(tn):Hd(tn)},Kd=function calculateBackgroundRendering(en,tn,nn){var rn=Vd(Xd(en.styles.backgroundOrigin,tn),en),an=zd(Xd(en.styles.backgroundClip,tn),en),sn=Wd(Xd(en.styles.backgroundSize,tn),nn,rn),cn=sn[0],un=sn[1],dn=Pa(Xd(en.styles.backgroundPosition,tn),rn.width-cn,rn.height-un);return[Yd(Xd(en.styles.backgroundRepeat,tn),dn,sn,rn,an),Math.round(rn.left+dn[0]),Math.round(rn.top+dn[1]),cn,un]},qd=function isAuto(en){return Aa(en)&&en.value===Ys.AUTO},$d=function hasIntrinsicValue(en){return"number"==typeof en},Wd=function calculateBackgroundSize(en,tn,nn){var rn=tn[0],an=tn[1],sn=tn[2],cn=en[0],un=en[1];if(Sa(cn)&&un&&Sa(un))return[La(cn,nn.width),La(un,nn.height)];var dn=$d(sn);if(Aa(cn)&&(cn.value===Ys.CONTAIN||cn.value===Ys.COVER))return $d(sn)?nn.width/nn.height<sn!=(cn.value===Ys.COVER)?[nn.width,nn.width/sn]:[nn.height*sn,nn.height]:[nn.width,nn.height];var pn=$d(rn),hn=$d(an),gn=pn||hn;if(qd(cn)&&(!un||qd(un)))return pn&&hn?[rn,an]:dn||gn?gn&&dn?[pn?rn:an*sn,hn?an:rn/sn]:[pn?rn:nn.width,hn?an:nn.height]:[nn.width,nn.height];if(dn){var An=0,mn=0;return Sa(cn)?An=La(cn,nn.width):Sa(un)&&(mn=La(un,nn.height)),qd(cn)?An=mn*sn:un&&!qd(un)||(mn=An/sn),[An,mn]}var vn=null,yn=null;if(Sa(cn)?vn=La(cn,nn.width):un&&Sa(un)&&(yn=La(un,nn.height)),null===vn||un&&!qd(un)||(yn=pn&&hn?vn/rn*an:nn.height),null!==yn&&qd(cn)&&(vn=pn&&hn?yn/an*rn:nn.width),null!==vn&&null!==yn)return[vn,yn];throw new Error("Unable to calculate background-size for element")},Xd=function getBackgroundValueForIndex(en,tn){var nn=en[tn];return void 0===nn?en[0]:nn},Yd=function calculateBackgroundRepeatPath(en,tn,nn,rn,an){var sn=tn[0],cn=tn[1],un=nn[0],dn=nn[1];switch(en){case Ks.REPEAT_X:return[new wd(Math.round(rn.left),Math.round(rn.top+cn)),new wd(Math.round(rn.left+rn.width),Math.round(rn.top+cn)),new wd(Math.round(rn.left+rn.width),Math.round(dn+rn.top+cn)),new wd(Math.round(rn.left),Math.round(dn+rn.top+cn))];case Ks.REPEAT_Y:return[new wd(Math.round(rn.left+sn),Math.round(rn.top)),new wd(Math.round(rn.left+sn+un),Math.round(rn.top)),new wd(Math.round(rn.left+sn+un),Math.round(rn.height+rn.top)),new wd(Math.round(rn.left+sn),Math.round(rn.height+rn.top))];case Ks.NO_REPEAT:return[new wd(Math.round(rn.left+sn),Math.round(rn.top+cn)),new wd(Math.round(rn.left+sn+un),Math.round(rn.top+cn)),new wd(Math.round(rn.left+sn+un),Math.round(rn.top+cn+dn)),new wd(Math.round(rn.left+sn),Math.round(rn.top+cn+dn))];default:return[new wd(Math.round(an.left),Math.round(an.top)),new wd(Math.round(an.left+an.width),Math.round(an.top)),new wd(Math.round(an.left+an.width),Math.round(an.height+an.top)),new wd(Math.round(an.left),Math.round(an.height+an.top))]}},Jd="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Zd="Hidden Text",ep=function(){function FontMetrics(en){this._data={},this._document=en}return FontMetrics.prototype.parseMetrics=function(en,tn){var nn=this._document.createElement("div"),rn=this._document.createElement("img"),an=this._document.createElement("span"),sn=this._document.body;nn.style.visibility="hidden",nn.style.fontFamily=en,nn.style.fontSize=tn,nn.style.margin="0",nn.style.padding="0",sn.appendChild(nn),rn.src=Jd,rn.width=1,rn.height=1,rn.style.margin="0",rn.style.padding="0",rn.style.verticalAlign="baseline",an.style.fontFamily=en,an.style.fontSize=tn,an.style.margin="0",an.style.padding="0",an.appendChild(this._document.createTextNode(Zd)),nn.appendChild(an),nn.appendChild(rn);var cn=rn.offsetTop-an.offsetTop+2;nn.removeChild(an),nn.appendChild(this._document.createTextNode(Zd)),nn.style.lineHeight="normal",rn.style.verticalAlign="super";var un=rn.offsetTop-nn.offsetTop+2;return sn.removeChild(nn),{baseline:cn,middle:un}},FontMetrics.prototype.getMetrics=function(en,tn){var nn=en+" "+tn;return void 0===this._data[nn]&&(this._data[nn]=this.parseMetrics(en,tn)),this._data[nn]},FontMetrics}(),tp=1e4,np=function(){function CanvasRenderer(en){this._activeEffects=[],this.canvas=en.canvas?en.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=en,en.canvas||(this.canvas.width=Math.floor(en.width*en.scale),this.canvas.height=Math.floor(en.height*en.scale),this.canvas.style.width=en.width+"px",this.canvas.style.height=en.height+"px"),this.fontMetrics=new ep(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-en.x+en.scrollX,-en.y+en.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],ys.getInstance(en.id).debug("Canvas renderer initialized ("+en.width+"x"+en.height+" at "+en.x+","+en.y+") with scale "+en.scale)}return CanvasRenderer.prototype.applyEffects=function(en,tn){for(var nn=this;this._activeEffects.length;)this.popEffect();en.filter((function(en){return Ec(en.target,tn)})).forEach((function(en){return nn.applyEffect(en)}))},CanvasRenderer.prototype.applyEffect=function(en){this.ctx.save(),Id(en)&&(this.ctx.translate(en.offsetX,en.offsetY),this.ctx.transform(en.matrix[0],en.matrix[1],en.matrix[2],en.matrix[3],en.matrix[4],en.matrix[5]),this.ctx.translate(-en.offsetX,-en.offsetY)),Od(en)&&(this.path(en.path),this.ctx.clip()),this._activeEffects.push(en)},CanvasRenderer.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},CanvasRenderer.prototype.renderStack=function(en){return __awaiter(this,void 0,void 0,(function(){var tn;return __generator(this,(function(nn){switch(nn.label){case 0:return(tn=en.element.container.styles).isVisible()?(this.ctx.globalAlpha=tn.opacity,[4,this.renderStackContent(en)]):[3,2];case 1:nn.sent(),nn.label=2;case 2:return[2]}}))}))},CanvasRenderer.prototype.renderNode=function(en){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(tn){switch(tn.label){case 0:return en.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(en)]:[3,3];case 1:return tn.sent(),[4,this.renderNodeContent(en)];case 2:tn.sent(),tn.label=3;case 3:return[2]}}))}))},CanvasRenderer.prototype.renderTextWithLetterSpacing=function(en,tn){var nn=this;0===tn?this.ctx.fillText(en.text,en.bounds.left,en.bounds.top+en.bounds.height):sn(en.text).map((function(en){return cn(en)})).reduce((function(tn,rn){return nn.ctx.fillText(rn,tn,en.bounds.top+en.bounds.height),tn+nn.ctx.measureText(rn).width}),en.bounds.left)},CanvasRenderer.prototype.createFontStyle=function(en){var tn=en.fontVariant.filter((function(en){return"normal"===en||"small-caps"===en})).join(""),nn=en.fontFamily.join(", "),rn=ga(en.fontSize)?""+en.fontSize.number+en.fontSize.unit:en.fontSize.number+"px";return[[en.fontStyle,tn,en.fontWeight,rn,nn].join(" "),nn,rn]},CanvasRenderer.prototype.renderTextNode=function(en,tn){return __awaiter(this,void 0,void 0,(function(){var nn,rn,an,sn,cn=this;return __generator(this,(function(un){return nn=this.createFontStyle(tn),rn=nn[0],an=nn[1],sn=nn[2],this.ctx.font=rn,en.textBounds.forEach((function(en){cn.ctx.fillStyle=Qa(tn.color),cn.renderTextWithLetterSpacing(en,tn.letterSpacing);var nn=tn.textShadow;nn.length&&en.text.trim().length&&(nn.slice(0).reverse().forEach((function(tn){cn.ctx.shadowColor=Qa(tn.color),cn.ctx.shadowOffsetX=tn.offsetX.number*cn.options.scale,cn.ctx.shadowOffsetY=tn.offsetY.number*cn.options.scale,cn.ctx.shadowBlur=tn.blur.number,cn.ctx.fillText(en.text,en.bounds.left,en.bounds.top+en.bounds.height)})),cn.ctx.shadowColor="",cn.ctx.shadowOffsetX=0,cn.ctx.shadowOffsetY=0,cn.ctx.shadowBlur=0),tn.textDecorationLine.length&&(cn.ctx.fillStyle=Qa(tn.textDecorationColor||tn.color),tn.textDecorationLine.forEach((function(tn){switch(tn){case 1:var nn=cn.fontMetrics.getMetrics(an,sn).baseline;cn.ctx.fillRect(en.bounds.left,Math.round(en.bounds.top+nn),en.bounds.width,1);break;case 2:cn.ctx.fillRect(en.bounds.left,Math.round(en.bounds.top),en.bounds.width,1);break;case 3:var rn=cn.fontMetrics.getMetrics(an,sn).middle;cn.ctx.fillRect(en.bounds.left,Math.ceil(en.bounds.top+rn),en.bounds.width,1)}})))})),[2]}))}))},CanvasRenderer.prototype.renderReplacedElement=function(en,tn,nn){if(nn&&en.intrinsicWidth>0&&en.intrinsicHeight>0){var rn=Gd(en),an=Ld(tn);this.path(an),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(nn,0,0,en.intrinsicWidth,en.intrinsicHeight,rn.left,rn.top,rn.width,rn.height),this.ctx.restore()}},CanvasRenderer.prototype.renderNodeContent=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,rn,an,sn,cn,un,dn,pn,hn,gn,An,mn,vn,yn;return __generator(this,(function(_n){switch(_n.label){case 0:this.applyEffects(en.effects,4),tn=en.container,rn=en.curves,an=tn.styles,sn=0,cn=tn.textNodes,_n.label=1;case 1:return sn<cn.length?(un=cn[sn],[4,this.renderTextNode(un,an)]):[3,4];case 2:_n.sent(),_n.label=3;case 3:return sn++,[3,1];case 4:if(!(tn instanceof Xc))return[3,8];_n.label=5;case 5:return _n.trys.push([5,7,,8]),[4,this.options.cache.match(tn.src)];case 6:return mn=_n.sent(),this.renderReplacedElement(tn,rn,mn),[3,8];case 7:return _n.sent(),ys.getInstance(this.options.id).error("Error loading image "+tn.src),[3,8];case 8:if(tn instanceof Yc&&this.renderReplacedElement(tn,rn,tn.canvas),!(tn instanceof Jc))return[3,12];_n.label=9;case 9:return _n.trys.push([9,11,,12]),[4,this.options.cache.match(tn.svg)];case 10:return mn=_n.sent(),this.renderReplacedElement(tn,rn,mn),[3,12];case 11:return _n.sent(),ys.getInstance(this.options.id).error("Error loading svg "+tn.svg.substring(0,255)),[3,12];case 12:return tn instanceof gu&&tn.tree?[4,new CanvasRenderer({id:this.options.id,scale:this.options.scale,backgroundColor:tn.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:tn.width,height:tn.height,cache:this.options.cache,windowWidth:tn.width,windowHeight:tn.height}).render(tn.tree)]:[3,14];case 13:dn=_n.sent(),tn.width&&tn.height&&this.ctx.drawImage(dn,0,0,tn.width,tn.height,tn.bounds.left,tn.bounds.top,tn.bounds.width,tn.bounds.height),_n.label=14;case 14:if(tn instanceof uu&&(pn=Math.min(tn.bounds.width,tn.bounds.height),tn.type===ou?tn.checked&&(this.ctx.save(),this.path([new wd(tn.bounds.left+.39363*pn,tn.bounds.top+.79*pn),new wd(tn.bounds.left+.16*pn,tn.bounds.top+.5549*pn),new wd(tn.bounds.left+.27347*pn,tn.bounds.top+.44071*pn),new wd(tn.bounds.left+.39694*pn,tn.bounds.top+.5649*pn),new wd(tn.bounds.left+.72983*pn,tn.bounds.top+.23*pn),new wd(tn.bounds.left+.84*pn,tn.bounds.top+.34085*pn),new wd(tn.bounds.left+.39363*pn,tn.bounds.top+.79*pn)]),this.ctx.fillStyle=Qa(lu),this.ctx.fill(),this.ctx.restore()):tn.type===au&&tn.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(tn.bounds.left+pn/2,tn.bounds.top+pn/2,pn/4,0,2*Math.PI,!0),this.ctx.fillStyle=Qa(lu),this.ctx.fill(),this.ctx.restore())),rp(tn)&&tn.value.length){switch(this.ctx.font=this.createFontStyle(an)[0],this.ctx.fillStyle=Qa(an.color),this.ctx.textBaseline="middle",this.ctx.textAlign=op(tn.styles.textAlign),yn=Gd(tn),hn=0,tn.styles.textAlign){case ql.CENTER:hn+=yn.width/2;break;case ql.RIGHT:hn+=yn.width}gn=yn.add(hn,0,0,-yn.height/2+1),this.ctx.save(),this.path([new wd(yn.left,yn.top),new wd(yn.left+yn.width,yn.top),new wd(yn.left+yn.width,yn.top+yn.height),new wd(yn.left,yn.top+yn.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new jc(tn.value,gn),an.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!Ec(tn.styles.display,2048))return[3,20];if(null===tn.styles.listStyleImage)return[3,19];if((An=tn.styles.listStyleImage).type!==Xa.URL)return[3,18];mn=void 0,vn=An.url,_n.label=15;case 15:return _n.trys.push([15,17,,18]),[4,this.options.cache.match(vn)];case 16:return mn=_n.sent(),this.ctx.drawImage(mn,tn.bounds.left-(mn.width+10),tn.bounds.top),[3,18];case 17:return _n.sent(),ys.getInstance(this.options.id).error("Error loading list-style-image "+vn),[3,18];case 18:return[3,20];case 19:en.listValue&&tn.styles.listStyleType!==Ul.NONE&&(this.ctx.font=this.createFontStyle(an)[0],this.ctx.fillStyle=Qa(an.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",yn=new nn(tn.bounds.left,tn.bounds.top+La(tn.styles.paddingTop,tn.bounds.width),tn.bounds.width,Ol(an.lineHeight,an.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new jc(en.listValue,yn),an.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),_n.label=20;case 20:return[2]}}))}))},CanvasRenderer.prototype.renderStackContent=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,un,dn,pn,hn,gn,An,mn,vn,yn;return __generator(this,(function(_n){switch(_n.label){case 0:return[4,this.renderNodeBackgroundAndBorders(en.element)];case 1:_n.sent(),tn=0,nn=en.negativeZIndex,_n.label=2;case 2:return tn<nn.length?(yn=nn[tn],[4,this.renderStack(yn)]):[3,5];case 3:_n.sent(),_n.label=4;case 4:return tn++,[3,2];case 5:return[4,this.renderNodeContent(en.element)];case 6:_n.sent(),rn=0,an=en.nonInlineLevel,_n.label=7;case 7:return rn<an.length?(yn=an[rn],[4,this.renderNode(yn)]):[3,10];case 8:_n.sent(),_n.label=9;case 9:return rn++,[3,7];case 10:sn=0,cn=en.nonPositionedFloats,_n.label=11;case 11:return sn<cn.length?(yn=cn[sn],[4,this.renderStack(yn)]):[3,14];case 12:_n.sent(),_n.label=13;case 13:return sn++,[3,11];case 14:un=0,dn=en.nonPositionedInlineLevel,_n.label=15;case 15:return un<dn.length?(yn=dn[un],[4,this.renderStack(yn)]):[3,18];case 16:_n.sent(),_n.label=17;case 17:return un++,[3,15];case 18:pn=0,hn=en.inlineLevel,_n.label=19;case 19:return pn<hn.length?(yn=hn[pn],[4,this.renderNode(yn)]):[3,22];case 20:_n.sent(),_n.label=21;case 21:return pn++,[3,19];case 22:gn=0,An=en.zeroOrAutoZIndexOrTransformedOrOpacity,_n.label=23;case 23:return gn<An.length?(yn=An[gn],[4,this.renderStack(yn)]):[3,26];case 24:_n.sent(),_n.label=25;case 25:return gn++,[3,23];case 26:mn=0,vn=en.positiveZIndex,_n.label=27;case 27:return mn<vn.length?(yn=vn[mn],[4,this.renderStack(yn)]):[3,30];case 28:_n.sent(),_n.label=29;case 29:return mn++,[3,27];case 30:return[2]}}))}))},CanvasRenderer.prototype.mask=function(en){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(en.slice(0).reverse()),this.ctx.closePath()},CanvasRenderer.prototype.path=function(en){this.ctx.beginPath(),this.formatPath(en),this.ctx.closePath()},CanvasRenderer.prototype.formatPath=function(en){var tn=this;en.forEach((function(en,nn){var rn=Cd(en)?en.start:en;0===nn?tn.ctx.moveTo(rn.x,rn.y):tn.ctx.lineTo(rn.x,rn.y),Cd(en)&&tn.ctx.bezierCurveTo(en.startControl.x,en.startControl.y,en.endControl.x,en.endControl.y,en.end.x,en.end.y)}))},CanvasRenderer.prototype.renderRepeat=function(en,tn,nn,rn){this.path(en),this.ctx.fillStyle=tn,this.ctx.translate(nn,rn),this.ctx.fill(),this.ctx.translate(-nn,-rn)},CanvasRenderer.prototype.resizeImage=function(en,tn,nn){if(en.width===tn&&en.height===nn)return en;var rn=this.canvas.ownerDocument.createElement("canvas");return rn.width=tn,rn.height=nn,rn.getContext("2d").drawImage(en,0,0,en.width,en.height,0,0,tn,nn),rn},CanvasRenderer.prototype.renderBackgroundImage=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn;return __generator(this,(function(un){switch(un.label){case 0:tn=en.styles.backgroundImage.length-1,nn=function _loop_1(nn){var an,sn,cn,un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn,xn,Sn,Cn,kn,Bn,En,Pn,Ln,Tn,Nn,In,On,Fn,Un,Mn,Rn,Dn;return __generator(this,(function(jn){switch(jn.label){case 0:if(nn.type!==Xa.URL)return[3,5];an=void 0,sn=nn.url,jn.label=1;case 1:return jn.trys.push([1,3,,4]),[4,rn.options.cache.match(sn)];case 2:return an=jn.sent(),[3,4];case 3:return jn.sent(),ys.getInstance(rn.options.id).error("Error loading background-image "+sn),[3,4];case 4:return an&&(cn=Kd(en,tn,[an.width,an.height,an.width/an.height]),Sn=cn[0],Ln=cn[1],Tn=cn[2],Bn=cn[3],En=cn[4],wn=rn.ctx.createPattern(rn.resizeImage(an,Bn,En),"repeat"),rn.renderRepeat(Sn,wn,Ln,Tn)),[3,6];case 5:Gs(nn)?(un=Kd(en,tn,[null,null,null]),Sn=un[0],Ln=un[1],Tn=un[2],Bn=un[3],En=un[4],dn=ns(nn.angle,Bn,En),pn=dn[0],hn=dn[1],gn=dn[2],An=dn[3],mn=dn[4],(vn=document.createElement("canvas")).width=Bn,vn.height=En,yn=vn.getContext("2d"),_n=yn.createLinearGradient(hn,An,gn,mn),es(nn.stops,pn).forEach((function(en){return _n.addColorStop(en.stop,Qa(en.color))})),yn.fillStyle=_n,yn.fillRect(0,0,Bn,En),Bn>0&&En>0&&(wn=rn.ctx.createPattern(vn,"repeat"),rn.renderRepeat(Sn,wn,Ln,Tn))):Vs(nn)&&(xn=Kd(en,tn,[null,null,null]),Sn=xn[0],Cn=xn[1],kn=xn[2],Bn=xn[3],En=xn[4],Pn=0===nn.position.length?[Ba]:nn.position,Ln=La(Pn[0],Bn),Tn=La(Pn[Pn.length-1],En),Nn=as(nn,Ln,Tn,Bn,En),In=Nn[0],On=Nn[1],In>0&&In>0&&(Fn=rn.ctx.createRadialGradient(Cn+Ln,kn+Tn,0,Cn+Ln,kn+Tn,In),es(nn.stops,2*In).forEach((function(en){return Fn.addColorStop(en.stop,Qa(en.color))})),rn.path(Sn),rn.ctx.fillStyle=Fn,In!==On?(Un=en.bounds.left+.5*en.bounds.width,Mn=en.bounds.top+.5*en.bounds.height,Dn=1/(Rn=On/In),rn.ctx.save(),rn.ctx.translate(Un,Mn),rn.ctx.transform(1,0,0,Rn,0,0),rn.ctx.translate(-Un,-Mn),rn.ctx.fillRect(Cn,Dn*(kn-Mn)+Mn,Bn,En*Dn),rn.ctx.restore()):rn.ctx.fill())),jn.label=6;case 6:return tn--,[2]}}))},rn=this,an=0,sn=en.styles.backgroundImage.slice(0).reverse(),un.label=1;case 1:return an<sn.length?(cn=sn[an],[5,nn(cn)]):[3,4];case 2:un.sent(),un.label=3;case 3:return an++,[3,1];case 4:return[2]}}))}))},CanvasRenderer.prototype.renderBorder=function(en,tn,nn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(rn){return this.path(jd(nn,tn)),this.ctx.fillStyle=Qa(en),this.ctx.fill(),[2]}))}))},CanvasRenderer.prototype.renderNodeBackgroundAndBorders=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn,rn,an,sn,cn,un,dn,pn=this;return __generator(this,(function(hn){switch(hn.label){case 0:return this.applyEffects(en.effects,2),tn=en.container.styles,nn=!ja(tn.backgroundColor)||tn.backgroundImage.length,rn=[{style:tn.borderTopStyle,color:tn.borderTopColor},{style:tn.borderRightStyle,color:tn.borderRightColor},{style:tn.borderBottomStyle,color:tn.borderBottomColor},{style:tn.borderLeftStyle,color:tn.borderLeftColor}],an=ip(Xd(tn.backgroundClip,0),en.curves),nn||tn.boxShadow.length?(this.ctx.save(),this.path(an),this.ctx.clip(),ja(tn.backgroundColor)||(this.ctx.fillStyle=Qa(tn.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(en.container)]):[3,2];case 1:hn.sent(),this.ctx.restore(),tn.boxShadow.slice(0).reverse().forEach((function(tn){pn.ctx.save();var nn=Ed(en.curves),rn=tn.inset?0:tp,an=bd(nn,-rn+(tn.inset?1:-1)*tn.spread.number,(tn.inset?1:-1)*tn.spread.number,tn.spread.number*(tn.inset?-2:2),tn.spread.number*(tn.inset?-2:2));tn.inset?(pn.path(nn),pn.ctx.clip(),pn.mask(an)):(pn.mask(nn),pn.ctx.clip(),pn.path(an)),pn.ctx.shadowOffsetX=tn.offsetX.number+rn,pn.ctx.shadowOffsetY=tn.offsetY.number,pn.ctx.shadowColor=Qa(tn.color),pn.ctx.shadowBlur=tn.blur.number,pn.ctx.fillStyle=tn.inset?Qa(tn.color):"rgba(0,0,0,1)",pn.ctx.fill(),pn.ctx.restore()})),hn.label=2;case 2:sn=0,cn=0,un=rn,hn.label=3;case 3:return cn<un.length?(dn=un[cn]).style===el.NONE||ja(dn.color)?[3,5]:[4,this.renderBorder(dn.color,sn,en.curves)]:[3,7];case 4:hn.sent(),hn.label=5;case 5:sn++,hn.label=6;case 6:return cn++,[3,3];case 7:return[2]}}))}))},CanvasRenderer.prototype.render=function(en){return __awaiter(this,void 0,void 0,(function(){var tn;return __generator(this,(function(nn){switch(nn.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Qa(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),tn=Dd(en),[4,this.renderStack(tn)];case 1:return nn.sent(),this.applyEffects([],2),[2,this.canvas]}}))}))},CanvasRenderer}(),rp=function isTextInputElement(en){return en instanceof pu||en instanceof du||en instanceof uu&&en.type!==au&&en.type!==ou},ip=function calculateBackgroundCurvedPaintingArea(en,tn){switch(en){case Ka.BORDER_BOX:return Ed(tn);case Ka.CONTENT_BOX:return Pd(tn);case Ka.PADDING_BOX:default:return Ld(tn)}},op=function canvasTextAlign(en){switch(en){case ql.CENTER:return"center";case ql.RIGHT:return"right";case ql.LEFT:default:return"left"}},ap=function(){function ForeignObjectRenderer(en){this.canvas=en.canvas?en.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=en,this.canvas.width=Math.floor(en.width*en.scale),this.canvas.height=Math.floor(en.height*en.scale),this.canvas.style.width=en.width+"px",this.canvas.style.height=en.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-en.x+en.scrollX,-en.y+en.scrollY),ys.getInstance(en.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+en.width+"x"+en.height+" at "+en.x+","+en.y+") with scale "+en.scale)}return ForeignObjectRenderer.prototype.render=function(en){return __awaiter(this,void 0,void 0,(function(){var tn,nn;return __generator(this,(function(rn){switch(rn.label){case 0:return tn=As(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,en),[4,sp(tn)];case 1:return nn=rn.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Qa(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(nn,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},ForeignObjectRenderer}(),sp=function loadSerializedSVG$1(en){return new Promise((function(tn,nn){var rn=new Image;rn.onload=function(){tn(rn)},rn.onerror=nn,rn.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(en))}))},lp=void 0,cp=function parseColor$1(en){return Da.parse(ha.create(en).parseComponentValue())},up=function html2canvas(en,tn){return void 0===tn&&(tn={}),dp(en,tn)};"undefined"!=typeof window&&_s.setContext(window);var dp=function renderElement(en,sn){return __awaiter(lp,void 0,void 0,(function(){var cn,un,dn,pn,hn,gn,An,mn,vn,yn,_n,wn,xn,Sn,Cn,kn,Bn,En,Pn,Ln,Tn,Nn,In;return __generator(this,(function(On){switch(On.label){case 0:if(!(cn=en.ownerDocument))throw new Error("Element is not attached to a Document");if(!(un=cn.defaultView))throw new Error("Document is not attached to a Window");return dn=(Math.round(1e3*Math.random())+Date.now()).toString(16),pn=Lu(en)||Eu(en)?an(cn):rn(en),hn=pn.width,gn=pn.height,An=pn.left,mn=pn.top,vn=tn({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},sn),yn={backgroundColor:"#ffffff",cache:sn.cache?sn.cache:_s.create(dn,vn),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:un.devicePixelRatio||1,windowWidth:un.innerWidth,windowHeight:un.innerHeight,scrollX:un.pageXOffset,scrollY:un.pageYOffset,x:An,y:mn,width:Math.ceil(hn),height:Math.ceil(gn),id:dn},_n=tn({},yn,vn,sn),wn=new nn(_n.scrollX,_n.scrollY,_n.windowWidth,_n.windowHeight),ys.create({id:dn,enabled:_n.logging}),ys.getInstance(dn).debug("Starting document clone"),xn=new id(en,{id:dn,onclone:_n.onclone,ignoreElements:_n.ignoreElements,inlineImages:_n.foreignObjectRendering,copyStyles:_n.foreignObjectRendering}),(Sn=xn.clonedReferenceElement)?[4,xn.toIFrame(cn,wn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Cn=On.sent(),kn=cn.documentElement?cp(getComputedStyle(cn.documentElement).backgroundColor):Wa.TRANSPARENT,Bn=cn.body?cp(getComputedStyle(cn.body).backgroundColor):Wa.TRANSPARENT,En=sn.backgroundColor,Pn="string"==typeof En?cp(En):null===En?Wa.TRANSPARENT:4294967295,Ln=en===cn.documentElement?ja(kn)?ja(Bn)?Pn:Bn:kn:Pn,Tn={id:dn,cache:_n.cache,canvas:_n.canvas,backgroundColor:Ln,scale:_n.scale,x:_n.x,y:_n.y,scrollX:_n.scrollX,scrollY:_n.scrollY,width:_n.width,height:_n.height,windowWidth:_n.windowWidth,windowHeight:_n.windowHeight},_n.foreignObjectRendering?(ys.getInstance(dn).debug("Document cloned, using foreign object rendering"),[4,new ap(Tn).render(Sn)]):[3,3];case 2:return Nn=On.sent(),[3,5];case 3:return ys.getInstance(dn).debug("Document cloned, using computed rendering"),_s.attachInstance(_n.cache),ys.getInstance(dn).debug("Starting DOM parsing"),In=vu(Sn),_s.detachInstance(),Ln===In.styles.backgroundColor&&(In.styles.backgroundColor=Wa.TRANSPARENT),ys.getInstance(dn).debug("Starting renderer"),[4,new np(Tn).render(In)];case 4:Nn=On.sent(),On.label=5;case 5:return!0===_n.removeContainer&&(id.destroy(Cn)||ys.getInstance(dn).error("Cannot detach cloned iframe as it is not in the DOM anymore")),ys.getInstance(dn).debug("Finished rendering"),ys.destroy(dn),_s.destroy(dn),[2,Nn]}}))}))};return up}()})),kQ=Object.freeze(Object.assign(Object.create(null),CQ,{default:CQ})),BQ=Object.isFrozen,EQ=fails((function(){BQ(1)}));_export({target:"Object",stat:!0,forced:EQ},{isFrozen:function isFrozen(en){return!isObject(en)||!!BQ&&BQ(en)}});var PQ=Jp.onFreeze,LQ=Object.seal,TQ=fails((function(){LQ(1)}));_export({target:"Object",stat:!0,forced:TQ,sham:!Yp},{seal:function seal(en){return LQ&&isObject(en)?LQ(PQ(en)):en}});var NQ=getBuiltIn("Reflect","apply"),IQ=Function.apply,OQ=!fails((function(){NQ((function(){}))}));_export({target:"Reflect",stat:!0,forced:OQ},{apply:function apply(en,tn,nn){return aFunction$1(en),anObject(nn),NQ?NQ(en,tn,nn):IQ.call(en,tn,nn)}});var FQ=[].slice,UQ={},construct$4=function(en,tn,nn){if(!(tn in UQ)){for(var rn=[],an=0;an<tn;an++)rn[an]="a["+an+"]";UQ[tn]=Function("C,a","return new C("+rn.join(",")+")")}return UQ[tn](en,nn)},MQ=Function.bind||function bind(en){var tn=aFunction$1(this),nn=FQ.call(arguments,1),rn=function bound(){var an=nn.concat(FQ.call(arguments));return this instanceof rn?construct$4(tn,an.length,an):tn.apply(en,an)};return isObject(tn.prototype)&&(rn.prototype=tn.prototype),rn},RQ=getBuiltIn("Reflect","construct"),DQ=fails((function(){function F(){}return!(RQ((function(){}),[],F)instanceof F)})),jQ=!fails((function(){RQ((function(){}))})),QQ=DQ||jQ;_export({target:"Reflect",stat:!0,forced:QQ,sham:QQ},{construct:function construct(en,tn){aFunction$1(en),anObject(tn);var nn=arguments.length<3?en:aFunction$1(arguments[2]);if(jQ&&!DQ)return RQ(en,tn,nn);if(en==nn){switch(tn.length){case 0:return new en;case 1:return new en(tn[0]);case 2:return new en(tn[0],tn[1]);case 3:return new en(tn[0],tn[1],tn[2]);case 4:return new en(tn[0],tn[1],tn[2],tn[3])}var rn=[null];return rn.push.apply(rn,tn),new(MQ.apply(en,rn))}var an=nn.prototype,sn=Li(isObject(an)?an:Object.prototype),cn=Function.apply.call(en,sn,tn);return isObject(cn)?cn:sn}});var HQ=createCommonjsModule((function(en,tn){en.exports=function(){function _toConsumableArray(en){if(Array.isArray(en)){for(var tn=0,nn=Array(en.length);tn<en.length;tn++)nn[tn]=en[tn];return nn}return Array.from(en)}var en=Object.hasOwnProperty,tn=Object.setPrototypeOf,nn=Object.isFrozen,rn=Object.getPrototypeOf,an=Object.getOwnPropertyDescriptor,sn=Object.freeze,cn=Object.seal,un=Object.create,dn="undefined"!=typeof Reflect&&Reflect,pn=dn.apply,hn=dn.construct;pn||(pn=function apply(en,tn,nn){return en.apply(tn,nn)}),sn||(sn=function freeze(en){return en}),cn||(cn=function seal(en){return en}),hn||(hn=function construct(en,tn){return new(Function.prototype.bind.apply(en,[null].concat(_toConsumableArray(tn))))});var gn=unapply(Array.prototype.forEach),An=unapply(Array.prototype.pop),mn=unapply(Array.prototype.push),vn=unapply(String.prototype.toLowerCase),yn=unapply(String.prototype.match),_n=unapply(String.prototype.replace),wn=unapply(String.prototype.indexOf),xn=unapply(String.prototype.trim),Sn=unapply(RegExp.prototype.test),Cn=unconstruct(TypeError);function unapply(en){return function(tn){for(var nn=arguments.length,rn=Array(nn>1?nn-1:0),an=1;an<nn;an++)rn[an-1]=arguments[an];return pn(en,tn,rn)}}function unconstruct(en){return function(){for(var tn=arguments.length,nn=Array(tn),rn=0;rn<tn;rn++)nn[rn]=arguments[rn];return hn(en,nn)}}function addToSet(en,rn){tn&&tn(en,null);for(var an=rn.length;an--;){var sn=rn[an];if("string"==typeof sn){var cn=vn(sn);cn!==sn&&(nn(rn)||(rn[an]=cn),sn=cn)}en[sn]=!0}return en}function clone(tn){var nn=un(null),rn=void 0;for(rn in tn)pn(en,tn,[rn])&&(nn[rn]=tn[rn]);return nn}function lookupGetter(en,tn){for(;null!==en;){var nn=an(en,tn);if(nn){if(nn.get)return unapply(nn.get);if("function"==typeof nn.value)return unapply(nn.value)}en=rn(en)}return null}var kn=sn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Bn=sn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),En=sn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Pn=sn(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ln=sn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Tn=sn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Nn=sn(["#text"]),In=sn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),On=sn(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Fn=sn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Un=sn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mn=cn(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Rn=cn(/<%[\s\S]*|[\s\S]*%>/gm),Dn=cn(/^data-[\-\w.\u00B7-\uFFFF]/),jn=cn(/^aria-[\-\w]+$/),Qn=cn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hn=cn(/^(?:\w+script|data):/i),Gn=cn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vn="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?function(en){return _typeof(en)}:function(en){return en&&"function"==typeof Symbol&&en.constructor===Symbol&&en!==Symbol.prototype?"symbol":_typeof(en)};function _toConsumableArray$1(en){if(Array.isArray(en)){for(var tn=0,nn=Array(en.length);tn<en.length;tn++)nn[tn]=en[tn];return nn}return Array.from(en)}var zn=function getGlobal(){return"undefined"==typeof window?null:window},Kn=function _createTrustedTypesPolicy(en,tn){if("object"!==(void 0===en?"undefined":Vn(en))||"function"!=typeof en.createPolicy)return null;var nn=null,rn="data-tt-policy-suffix";tn.currentScript&&tn.currentScript.hasAttribute(rn)&&(nn=tn.currentScript.getAttribute(rn));var an="dompurify"+(nn?"#"+nn:"");try{return en.createPolicy(an,{createHTML:function createHTML(en){return en}})}catch(en){return console.warn("TrustedTypes policy "+an+" could not be created."),null}};function createDOMPurify(){var en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zn(),tn=function DOMPurify(en){return createDOMPurify(en)};if(tn.version="2.2.6",tn.removed=[],!en||!en.document||9!==en.document.nodeType)return tn.isSupported=!1,tn;var nn=en.document,rn=en.document,an=en.DocumentFragment,cn=en.HTMLTemplateElement,un=en.Node,dn=en.Element,pn=en.NodeFilter,hn=en.NamedNodeMap,qn=void 0===hn?en.NamedNodeMap||en.MozNamedAttrMap:hn,$n=en.Text,Wn=en.Comment,Xn=en.DOMParser,Yn=en.trustedTypes,Jn=dn.prototype,Zn=lookupGetter(Jn,"cloneNode"),Tr=lookupGetter(Jn,"nextSibling"),Ur=lookupGetter(Jn,"childNodes"),Rr=lookupGetter(Jn,"parentNode");if("function"==typeof cn){var Dr=rn.createElement("template");Dr.content&&Dr.content.ownerDocument&&(rn=Dr.content.ownerDocument)}var Qr=Kn(Yn,nn),Hr=Qr&&xi?Qr.createHTML(""):"",Gr=rn,Vr=Gr.implementation,zr=Gr.createNodeIterator,Kr=Gr.getElementsByTagName,$r=Gr.createDocumentFragment,Wr=nn.importNode,Xr={};try{Xr=clone(rn).documentMode?rn.documentMode:{}}catch(en){}var Yr={};tn.isSupported=Vr&&void 0!==Vr.createHTMLDocument&&9!==Xr;var Jr=Mn,Zr=Rn,ei=Dn,ti=jn,ni=Hn,ri=Gn,ii=Qn,oi=null,ai=addToSet({},[].concat(_toConsumableArray$1(kn),_toConsumableArray$1(Bn),_toConsumableArray$1(En),_toConsumableArray$1(Ln),_toConsumableArray$1(Nn))),si=null,li=addToSet({},[].concat(_toConsumableArray$1(In),_toConsumableArray$1(On),_toConsumableArray$1(Fn),_toConsumableArray$1(Un))),ui=null,di=null,pi=!0,hi=!0,gi=!1,fi=!1,Ai=!1,mi=!1,vi=!1,yi=!1,_i=!1,wi=!0,xi=!1,Si=!0,Ci=!0,ki=!1,Bi={},Ei=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Pi=null,Li=addToSet({},["audio","video","img","source","image","track"]),Ti=null,Ni=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ii=null,Oi=rn.createElement("form"),Fi=function _parseConfig(en){Ii&&Ii===en||(en&&"object"===(void 0===en?"undefined":Vn(en))||(en={}),en=clone(en),oi="ALLOWED_TAGS"in en?addToSet({},en.ALLOWED_TAGS):ai,si="ALLOWED_ATTR"in en?addToSet({},en.ALLOWED_ATTR):li,Ti="ADD_URI_SAFE_ATTR"in en?addToSet(clone(Ni),en.ADD_URI_SAFE_ATTR):Ni,Pi="ADD_DATA_URI_TAGS"in en?addToSet(clone(Li),en.ADD_DATA_URI_TAGS):Li,ui="FORBID_TAGS"in en?addToSet({},en.FORBID_TAGS):{},di="FORBID_ATTR"in en?addToSet({},en.FORBID_ATTR):{},Bi="USE_PROFILES"in en&&en.USE_PROFILES,pi=!1!==en.ALLOW_ARIA_ATTR,hi=!1!==en.ALLOW_DATA_ATTR,gi=en.ALLOW_UNKNOWN_PROTOCOLS||!1,fi=en.SAFE_FOR_TEMPLATES||!1,Ai=en.WHOLE_DOCUMENT||!1,yi=en.RETURN_DOM||!1,_i=en.RETURN_DOM_FRAGMENT||!1,wi=!1!==en.RETURN_DOM_IMPORT,xi=en.RETURN_TRUSTED_TYPE||!1,vi=en.FORCE_BODY||!1,Si=!1!==en.SANITIZE_DOM,Ci=!1!==en.KEEP_CONTENT,ki=en.IN_PLACE||!1,ii=en.ALLOWED_URI_REGEXP||ii,fi&&(hi=!1),_i&&(yi=!0),Bi&&(oi=addToSet({},[].concat(_toConsumableArray$1(Nn))),si=[],!0===Bi.html&&(addToSet(oi,kn),addToSet(si,In)),!0===Bi.svg&&(addToSet(oi,Bn),addToSet(si,On),addToSet(si,Un)),!0===Bi.svgFilters&&(addToSet(oi,En),addToSet(si,On),addToSet(si,Un)),!0===Bi.mathMl&&(addToSet(oi,Ln),addToSet(si,Fn),addToSet(si,Un))),en.ADD_TAGS&&(oi===ai&&(oi=clone(oi)),addToSet(oi,en.ADD_TAGS)),en.ADD_ATTR&&(si===li&&(si=clone(si)),addToSet(si,en.ADD_ATTR)),en.ADD_URI_SAFE_ATTR&&addToSet(Ti,en.ADD_URI_SAFE_ATTR),Ci&&(oi["#text"]=!0),Ai&&addToSet(oi,["html","head","body"]),oi.table&&(addToSet(oi,["tbody"]),delete ui.tbody),sn&&sn(en),Ii=en)},Ui=addToSet({},["mi","mo","mn","ms","mtext"]),Mi=addToSet({},["foreignobject","desc","title","annotation-xml"]),Ri=addToSet({},Bn);addToSet(Ri,En),addToSet(Ri,Pn);var Di=addToSet({},Ln);addToSet(Di,Tn);var ji="http://www.w3.org/1998/Math/MathML",Qi="http://www.w3.org/2000/svg",Hi="http://www.w3.org/1999/xhtml",Gi=function _checkValidNamespace(en){var tn=Rr(en);tn&&tn.tagName||(tn={namespaceURI:Hi,tagName:"template"});var nn=vn(en.tagName),rn=vn(tn.tagName);if(en.namespaceURI===Qi)return tn.namespaceURI===Hi?"svg"===nn:tn.namespaceURI===ji?"svg"===nn&&("annotation-xml"===rn||Ui[rn]):Boolean(Ri[nn]);if(en.namespaceURI===ji)return tn.namespaceURI===Hi?"math"===nn:tn.namespaceURI===Qi?"math"===nn&&Mi[rn]:Boolean(Di[nn]);if(en.namespaceURI===Hi){if(tn.namespaceURI===Qi&&!Mi[rn])return!1;if(tn.namespaceURI===ji&&!Ui[rn])return!1;var an=addToSet({},["title","style","font","a","script"]);return!Di[nn]&&(an[nn]||!Ri[nn])}return!1},Vi=function _forceRemove(en){mn(tn.removed,{element:en});try{en.parentNode.removeChild(en)}catch(tn){try{en.outerHTML=Hr}catch(tn){en.remove()}}},zi=function _removeAttribute(en,nn){try{mn(tn.removed,{attribute:nn.getAttributeNode(en),from:nn})}catch(en){mn(tn.removed,{attribute:null,from:nn})}nn.removeAttribute(en)},Ki=function _initDocument(en){var tn=void 0,nn=void 0;if(vi)en="<remove></remove>"+en;else{var an=yn(en,/^[\r\n\t ]+/);nn=an&&an[0]}var sn=Qr?Qr.createHTML(en):en;try{tn=(new Xn).parseFromString(sn,"text/html")}catch(en){}if(!tn||!tn.documentElement){var cn=(tn=Vr.createHTMLDocument("")).body;cn.parentNode.removeChild(cn.parentNode.firstElementChild),cn.outerHTML=sn}return en&&nn&&tn.body.insertBefore(rn.createTextNode(nn),tn.body.childNodes[0]||null),Kr.call(tn,Ai?"html":"body")[0]},qi=function _createIterator(en){return zr.call(en.ownerDocument||en,en,pn.SHOW_ELEMENT|pn.SHOW_COMMENT|pn.SHOW_TEXT,(function(){return pn.FILTER_ACCEPT}),!1)},$i=function _isClobbered(en){return!(en instanceof $n||en instanceof Wn||"string"==typeof en.nodeName&&"string"==typeof en.textContent&&"function"==typeof en.removeChild&&en.attributes instanceof qn&&"function"==typeof en.removeAttribute&&"function"==typeof en.setAttribute&&"string"==typeof en.namespaceURI&&"function"==typeof en.insertBefore)},Wi=function _isNode(en){return"object"===(void 0===un?"undefined":Vn(un))?en instanceof un:en&&"object"===(void 0===en?"undefined":Vn(en))&&"number"==typeof en.nodeType&&"string"==typeof en.nodeName},Xi=function _executeHook(en,nn,rn){Yr[en]&&gn(Yr[en],(function(en){en.call(tn,nn,rn,Ii)}))},Yi=function _sanitizeElements(en){var nn=void 0;if(Xi("beforeSanitizeElements",en,null),$i(en))return Vi(en),!0;if(yn(en.nodeName,/[\u0080-\uFFFF]/))return Vi(en),!0;var rn=vn(en.nodeName);if(Xi("uponSanitizeElement",en,{tagName:rn,allowedTags:oi}),!Wi(en.firstElementChild)&&(!Wi(en.content)||!Wi(en.content.firstElementChild))&&Sn(/<[/\w]/g,en.innerHTML)&&Sn(/<[/\w]/g,en.textContent))return Vi(en),!0;if(!oi[rn]||ui[rn]){if(Ci&&!Ei[rn])for(var an=Rr(en),sn=Ur(en),cn=sn.length-1;cn>=0;--cn)an.insertBefore(Zn(sn[cn],!0),Tr(en));return Vi(en),!0}return en instanceof dn&&!Gi(en)?(Vi(en),!0):"noscript"!==rn&&"noembed"!==rn||!Sn(/<\/no(script|embed)/i,en.innerHTML)?(fi&&3===en.nodeType&&(nn=en.textContent,nn=_n(nn,Jr," "),nn=_n(nn,Zr," "),en.textContent!==nn&&(mn(tn.removed,{element:en.cloneNode()}),en.textContent=nn)),Xi("afterSanitizeElements",en,null),!1):(Vi(en),!0)},Ji=function _isValidAttribute(en,tn,nn){if(Si&&("id"===tn||"name"===tn)&&(nn in rn||nn in Oi))return!1;if(hi&&Sn(ei,tn));else if(pi&&Sn(ti,tn));else{if(!si[tn]||di[tn])return!1;if(Ti[tn]);else if(Sn(ii,_n(nn,ri,"")));else if("src"!==tn&&"xlink:href"!==tn&&"href"!==tn||"script"===en||0!==wn(nn,"data:")||!Pi[en])if(gi&&!Sn(ni,_n(nn,ri,"")));else if(nn)return!1}return!0},Zi=function _sanitizeAttributes(en){var nn=void 0,rn=void 0,an=void 0,sn=void 0;Xi("beforeSanitizeAttributes",en,null);var cn=en.attributes;if(cn){var un={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:si};for(sn=cn.length;sn--;){var dn=nn=cn[sn],pn=dn.name,hn=dn.namespaceURI;if(rn=xn(nn.value),an=vn(pn),un.attrName=an,un.attrValue=rn,un.keepAttr=!0,un.forceKeepAttr=void 0,Xi("uponSanitizeAttribute",en,un),rn=un.attrValue,!un.forceKeepAttr&&(zi(pn,en),un.keepAttr))if(Sn(/\/>/i,rn))zi(pn,en);else{fi&&(rn=_n(rn,Jr," "),rn=_n(rn,Zr," "));var gn=en.nodeName.toLowerCase();if(Ji(gn,an,rn))try{hn?en.setAttributeNS(hn,pn,rn):en.setAttribute(pn,rn),An(tn.removed)}catch(en){}}}Xi("afterSanitizeAttributes",en,null)}},eo=function _sanitizeShadowDOM(en){var tn=void 0,nn=qi(en);for(Xi("beforeSanitizeShadowDOM",en,null);tn=nn.nextNode();)Xi("uponSanitizeShadowNode",tn,null),Yi(tn)||(tn.content instanceof an&&_sanitizeShadowDOM(tn.content),Zi(tn));Xi("afterSanitizeShadowDOM",en,null)};return tn.sanitize=function(rn,sn){var cn=void 0,dn=void 0,pn=void 0,hn=void 0,gn=void 0;if(rn||(rn="\x3c!--\x3e"),"string"!=typeof rn&&!Wi(rn)){if("function"!=typeof rn.toString)throw Cn("toString is not a function");if("string"!=typeof(rn=rn.toString()))throw Cn("dirty is not a string, aborting")}if(!tn.isSupported){if("object"===Vn(en.toStaticHTML)||"function"==typeof en.toStaticHTML){if("string"==typeof rn)return en.toStaticHTML(rn);if(Wi(rn))return en.toStaticHTML(rn.outerHTML)}return rn}if(mi||Fi(sn),tn.removed=[],"string"==typeof rn&&(ki=!1),ki);else if(rn instanceof un)1===(dn=(cn=Ki("\x3c!----\x3e")).ownerDocument.importNode(rn,!0)).nodeType&&"BODY"===dn.nodeName||"HTML"===dn.nodeName?cn=dn:cn.appendChild(dn);else{if(!yi&&!fi&&!Ai&&-1===rn.indexOf("<"))return Qr&&xi?Qr.createHTML(rn):rn;if(!(cn=Ki(rn)))return yi?null:Hr}cn&&vi&&Vi(cn.firstChild);for(var An=qi(ki?rn:cn);pn=An.nextNode();)3===pn.nodeType&&pn===hn||Yi(pn)||(pn.content instanceof an&&eo(pn.content),Zi(pn),hn=pn);if(hn=null,ki)return rn;if(yi){if(_i)for(gn=$r.call(cn.ownerDocument);cn.firstChild;)gn.appendChild(cn.firstChild);else gn=cn;return wi&&(gn=Wr.call(nn,gn,!0)),gn}var mn=Ai?cn.outerHTML:cn.innerHTML;return fi&&(mn=_n(mn,Jr," "),mn=_n(mn,Zr," ")),Qr&&xi?Qr.createHTML(mn):mn},tn.setConfig=function(en){Fi(en),mi=!0},tn.clearConfig=function(){Ii=null,mi=!1},tn.isValidAttribute=function(en,tn,nn){Ii||Fi({});var rn=vn(en),an=vn(tn);return Ji(rn,an,nn)},tn.addHook=function(en,tn){"function"==typeof tn&&(Yr[en]=Yr[en]||[],mn(Yr[en],tn))},tn.removeHook=function(en){Yr[en]&&An(Yr[en])},tn.removeHooks=function(en){Yr[en]&&(Yr[en]=[])},tn.removeAllHooks=function(){Yr={}},tn}return createDOMPurify()}()})),GQ=Object.freeze(Object.assign(Object.create(null),HQ,{default:HQ})),VQ=Object.freeze({__proto__:null,default:{lang:"af",dir:"ltr",common:{ok:"Spaar",cancel:"Annuleer",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik om te verander vul kleur, verskuiwing klik om 'n beroerte kleur verander",zoom_level:"Change zoom vlak",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Verandering vul kleur",stroke_color:"Verandering beroerte kleur",stroke_style:"Verandering beroerte dash styl",stroke_width:"Verandering beroerte breedte",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Verandering rotasie-hoek",blur:"Change gaussian blur value",opacity:"Verander geselekteerde item opaciteit",circle_cx:"Verandering sirkel se cx koördineer",circle_cy:"Verandering sirkel se cy koördineer",circle_r:"Verandering sirkel se radius",ellipse_cx:"Verandering ellips se cx koördineer",ellipse_cy:"Verander ellips se cy koördineer",ellipse_rx:"Verandering ellips se x radius",ellipse_ry:"Verander ellips se j radius",line_x1:"Verandering lyn se vertrek x koördinaat",line_x2:"Verandering lyn se eindig x koördinaat",line_y1:"Verandering lyn se vertrek y koördinaat",line_y2:"Verandering lyn se eindig y koördinaat",rect_height:"Verandering reghoek hoogte",rect_width:"Verandering reghoek breedte",corner_radius:"Verandering Rechthoek Corner Radius",image_width:"Verander prent breedte",image_height:"Verandering prent hoogte",image_url:"URL verander",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Verander teks inhoud",font_family:"Lettertipe verander Familie",font_size:"Verandering Lettertipe Grootte",bold:"Vetgedrukte teks",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Verander agtergrondkleur / opaciteit",connector_no_arrow:"No arrow",fitToContent:"Pas na inhoud",fit_to_all:"Passing tot al inhoud",fit_to_canvas:"Passing tot doek",fit_to_layer_content:"Passing tot laag inhoud",fit_to_sel:"Passing tot seleksie",align_relative_to:"Align in verhouding tot ...",relativeTo:"relatief tot:",page:"bladsy",largest_object:"grootste voorwerp",selected_objects:"verkose voorwerpe",smallest_object:"kleinste voorwerp",new_doc:"Nuwe Beeld",open_doc:"Open Beeld",export_img:"Export",save_doc:"Slaan Beeld",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Rig Middel",align_left:"Links Regterkant",align_middle:"Align Midde",align_right:"Lijn regs uit",align_top:"Align Top",mode_select:"Select Gereedschap",mode_fhpath:"Potlood tool",mode_line:"Lyn Gereedskap",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-hand Rectangle",mode_ellipse:"Ellips",mode_circle:"Sirkel",mode_fhellipse:"Gratis-Hand Ellips",mode_path:"Poli Gereedskap",mode_text:"Text Gereedskap",mode_image:"Image Gereedskap",mode_zoom:"Klik op die Gereedskap",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Boontoe",redo:"Oordoen",tool_source:"Wysig Bron",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Groep Elemente",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elemente",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Skuif na Bottom",move_top:"Skuif na bo",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Spaar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Verwyder Laag",move_down:"Beweeg afbreek Down",new:"Nuwe Layer",rename:"Rename Layer",move_up:"Beweeg afbreek Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Doek Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Kies gedefinieerde:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),zQ=Object.freeze({__proto__:null,default:{lang:"ar",dir:"rtl",common:{ok:"حفظ",cancel:"إلغاء",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"انقر لتغيير لون التعبئة ، تحولا مزدوجا فوق لتغيير لون السكتة الدماغية",zoom_level:"تغيير مستوى التكبير",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"تغير لون التعبئة",stroke_color:"تغير لون السكتة الدماغية",stroke_style:"تغيير نمط السكتة الدماغية اندفاعة",stroke_width:"تغيير عرض السكتة الدماغية",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"تغيير زاوية الدوران",blur:"Change gaussian blur value",opacity:"تغيير مختارة غموض البند",circle_cx:"دائرة التغيير لتنسيق cx",circle_cy:"Change circle's cy coordinate",circle_r:"التغيير في دائرة نصف قطرها",ellipse_cx:"تغيير شكل البيضاوي cx تنسيق",ellipse_cy:"تغيير شكل البيضاوي قبرصي تنسيق",ellipse_rx:"تغيير شكل البيضاوي خ نصف قطرها",ellipse_ry:"تغيير القطع الناقص في دائرة نصف قطرها ذ",line_x1:"تغيير الخط لبدء تنسيق خ",line_x2:"تغيير الخط لانهاء خ تنسيق",line_y1:"تغيير الخط لبدء تنسيق ذ",line_y2:"تغيير الخط لإنهاء تنسيق ذ",rect_height:"تغيير المستطيل الارتفاع",rect_width:"تغيير عرض المستطيل",corner_radius:"تغيير مستطيل ركن الشعاع",image_width:"تغيير صورة العرض",image_height:"تغيير ارتفاع الصورة",image_url:"تغيير العنوان",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"تغيير محتويات النص",font_family:"تغيير الخط الأسرة",font_size:"تغيير حجم الخط",bold:"نص جريء",italic:"مائل نص",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"تغير لون الخلفية / غموض",connector_no_arrow:"No arrow",fitToContent:"لائقا للمحتوى",fit_to_all:"يصلح لجميع المحتويات",fit_to_canvas:"يصلح لوحة زيتية على قماش",fit_to_layer_content:"يصلح لطبقة المحتوى",fit_to_sel:"يصلح لاختيار",align_relative_to:"محاذاة النسبي ل ...",relativeTo:"بالنسبة إلى:",page:"الصفحة",largest_object:"أكبر كائن",selected_objects:"انتخب الأجسام",smallest_object:"أصغر كائن",new_doc:"صورة جديدة",open_doc:"فتح الصورة",export_img:"Export",save_doc:"حفظ صورة",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"محاذاة القاع",align_center:"مركز محاذاة",align_left:"محاذاة إلى اليسار",align_middle:"محاذاة الأوسط",align_right:"محاذاة إلى اليمين",align_top:"محاذاة الأعلى",mode_select:"اختر أداة",mode_fhpath:"أداة قلم رصاص",mode_line:"خط أداة",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"القطع الناقص",mode_circle:"دائرة",mode_fhellipse:"اليد الحرة البيضوي",mode_path:"بولي أداة",mode_text:"النص أداة",mode_image:"الصورة أداة",mode_zoom:"أداة تكبير",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"التراجع",redo:"إعادته",tool_source:"عدل المصدر",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"مجموعة عناصر",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"فك تجميع عناصر",docprops:"خصائص المستند",editor_homepage:"SVG-Edit Home Page",move_bottom:"الانتقال إلى أسفل",move_top:"الانتقال إلى أعلى",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"حفظ",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"حذف طبقة",move_down:"تحرك لأسفل طبقة",new:"طبقة جديدة",rename:"تسمية الطبقة",move_up:"تحرك لأعلى طبقة",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"حدد سلفا:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),KQ=Object.freeze({__proto__:null,default:{lang:"az",dir:"ltr",common:{ok:"OK",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"selected objects",smallest_object:"smallest object",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Apply Changes",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),qQ=Object.freeze({__proto__:null,default:{lang:"be",dir:"ltr",common:{ok:"Захаваць",cancel:"Адмена",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Націсніце для змены колеру залівання, Shift-Click змяніць обводка",zoom_level:"Змяненне маштабу",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Змяненне колеру залівання",stroke_color:"Змяненне колеру інсульт",stroke_style:"Змяненне стылю інсульт працяжнік",stroke_width:"Змены шырыня штрых",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Змены вугла павароту",blur:"Change gaussian blur value",opacity:"Старонка абранага пункта непразрыстасці",circle_cx:"CX змене круга каардынаты",circle_cy:"Змены гуртка CY каардынаты",circle_r:"Старонка круга's радыус",ellipse_cx:"Змены эліпса CX каардынаты",ellipse_cy:"Змены эліпса CY каардынаты",ellipse_rx:"Х змяненні эліпса радыюсам",ellipse_ry:"Змены у эліпса радыюсам",line_x1:"Змены лінія пачынае каардынаты х",line_x2:"Змяненне за перыяд, скончыўся лінія каардынаты х",line_y1:"Змены лінія пачынае Y каардынаты",line_y2:"Змяненне за перыяд, скончыўся лінія Y каардынаты",rect_height:"Змены прастакутнік вышынёй",rect_width:"Змяненне шырыні прамавугольніка",corner_radius:"Змены прастакутнік Corner Radius",image_width:"Змены шырыня выявы",image_height:"Змена вышыні выявы",image_url:"Змяніць URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Змяненне зместу тэксту",font_family:"Змены Сямейства шрыфтоў",font_size:"Змяніць памер шрыфта",bold:"Тоўсты тэкст",italic:"Нахілены тэкст",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Змяненне колеру фону / непразрыстасць",connector_no_arrow:"No arrow",fitToContent:"Па памеры ўтрымання",fit_to_all:"Па памеру ўсе змесціва",fit_to_canvas:"Памер палатна",fit_to_layer_content:"По размеру слой ўтрымання",fit_to_sel:"Выбар памеру",align_relative_to:"Выраўнаваць па дачыненні да ...",relativeTo:"па параўнанні з:",page:"старонка",largest_object:"найбуйнейшы аб'ект",selected_objects:"выбранымі аб'ектамі",smallest_object:"маленькі аб'ект",new_doc:"Новае выява",open_doc:"Адкрыць выява",export_img:"Export",save_doc:"Захаваць малюнак",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Лінаваць па ніжнім краю",align_center:"Лінаваць па цэнтру",align_left:"Па левым краю",align_middle:"Выраўнаваць Блізкага",align_right:"Па правым краю",align_top:"Лінаваць па верхнім краю",mode_select:"Выберыце інструмент",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Свабоднай рукі Прастакутнік",mode_ellipse:"Эліпс",mode_circle:"Круг",mode_fhellipse:"Свабоднай рукі Эліпс",mode_path:"Poly Tool",mode_text:"Тэкст Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Адмяніць",redo:"Паўтор",tool_source:"Змяніць зыходны",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група элементаў",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Элементы Разгруппировать",docprops:"Уласцівасці дакумента",editor_homepage:"SVG-Edit Home Page",move_bottom:"Перамясціць уніз",move_top:"Перамясціць угару",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Захаваць",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Выдаліць слой",move_down:"Перамясціць слой на",new:"Новы слой",rename:"Перайменаваць Слой",move_up:"Перамяшчэнне слоя да",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Выберыце прадвызначэньні:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),$Q=Object.freeze({__proto__:null,default:{lang:"bg",dir:"ltr",common:{ok:"Спасявам",cancel:"Отказ",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Кликнете, за да промени попълнете цвят, на смени, кликнете да променят цвета си удар",zoom_level:"Промяна на ниво на мащабиране",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Промяна попълнете цвят",stroke_color:"Промяна на инсулт цвят",stroke_style:"Промяна на стила удар тире",stroke_width:"Промяна на ширината инсулт",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Промяна ъгъл на завъртане",blur:"Change gaussian blur value",opacity:"Промяна на избрания елемент непрозрачност",circle_cx:"CX Промяна кръг на координатната",circle_cy:"Промяна кръг's CY координира",circle_r:"Промяна кръг радиус",ellipse_cx:"Промяна на елипса's CX координира",ellipse_cy:"Промяна на елипса's CY координира",ellipse_rx:"Промяна на елипса's X радиус",ellipse_ry:"Промяна на елипса's Y радиус",line_x1:"Промяна на линия, започваща х координира",line_x2:"Промяна на линията приключва х координира",line_y1:"Промяна линия, започваща Y координира",line_y2:"Промяна на линията приключва Y координира",rect_height:"Промяна на правоъгълник височина",rect_width:"Промяна на правоъгълник ширина",corner_radius:"Промяна на правоъгълник Corner Radius",image_width:"Промяна на изображението ширина",image_height:"Промяна на изображението височина",image_url:"Промяна на URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Промяна на текст съдържание",font_family:"Промяна на шрифта Семейство",font_size:"Промени размера на буквите",bold:"Получер текст",italic:"Курсив текст",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Промяна на цвета на фона / непрозрачност",connector_no_arrow:"No arrow",fitToContent:"Fit към съдържание",fit_to_all:"Побери цялото съдържание",fit_to_canvas:"Fit на платно",fit_to_layer_content:"Fit да слой съдържание",fit_to_sel:"Fit за подбор",align_relative_to:"Привеждане в сравнение с ...",relativeTo:"в сравнение с:",page:"страница",largest_object:"най-големият обект",selected_objects:"избраните обекти",smallest_object:"най-малката обект",new_doc:"Ню Имидж",open_doc:"Отворете изображението",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Привеждане Отдолу",align_center:"Подравняване в средата",align_left:"Подравняване вляво",align_middle:"Привеждане в Близкия",align_right:"Подравняване надясно",align_top:"Привеждане Топ",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Свободен Употребявани правоъгълник",mode_ellipse:"Елипса",mode_circle:"Кръгът",mode_fhellipse:"Свободен Употребявани Елипса",mode_path:"Поли Tool",mode_text:"Текст Оръдие",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Отмени",redo:"Възстановяване",tool_source:"Редактиране Източник",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група Елементи",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Разгрупирай Елементи",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Премести надолу",move_top:"Премести в началото",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Спасявам",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Изтриване на слой",move_down:"Move слой надолу",new:"Нов слой",rename:"Преименуване Layer",move_up:"Move Up Layer",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Изберете предварително:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),WQ=Object.freeze({__proto__:null,default:{lang:"ca",dir:"ltr",common:{ok:"Salvar",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Feu clic per canviar el color de farciment, shift-clic per canviar el color del traç",zoom_level:"Canviar el nivell de zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Canviar el color de farciment",stroke_color:"Canviar el color del traç",stroke_style:"Canviar estil de traç guió",stroke_width:"Canviar l'amplada del traç",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Canviar l'angle de rotació",blur:"Change gaussian blur value",opacity:"Canviar la opacitat tema seleccionat",circle_cx:"CX cercle Canvi de coordenades",circle_cy:"Cercle Canvi CY coordinar",circle_r:"Ràdio de cercle Canvi",ellipse_cx:"Canviar lipse CX coordinar",ellipse_cy:"Lipse Canvi CY coordinar",ellipse_rx:"Ràdio x lipse Canvi",ellipse_ry:"Ràdio i lipse Canvi",line_x1:"Canviar la línia de partida de la coordenada x",line_x2:"Canviar la línia d'hores de coordenada x",line_y1:"Canviar la línia de partida i de coordinar",line_y2:"Canviar la línia d'hores de coordenada",rect_height:"Rectangle d'alçada Canvi",rect_width:"Ample rectangle Canvi",corner_radius:"Canviar Rectangle Corner Radius",image_width:"Amplada de la imatge Canvi",image_height:"Canviar l'altura de la imatge",image_url:"Canviar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Contingut del text",font_family:"Canviar la font Família",font_size:"Change Font Size",bold:"Text en negreta",italic:"Text en cursiva",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Color de fons / opacitat",connector_no_arrow:"No arrow",fitToContent:"Ajustar al contingut",fit_to_all:"Ajustar a tot el contingut",fit_to_canvas:"Ajustar a la lona",fit_to_layer_content:"Ajustar al contingut de la capa d'",fit_to_sel:"Ajustar a la selecció",align_relative_to:"Alinear pel que fa a ...",relativeTo:"en relació amb:",page:"Pàgina",largest_object:"objecte més gran",selected_objects:"objectes escollits",smallest_object:"objecte més petit",new_doc:"Nova imatge",open_doc:"Obrir imatge",export_img:"Export",save_doc:"Guardar imatge",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Alinear baix",align_center:"Alinear al centre",align_left:"Alinear a l'esquerra",align_middle:"Alinear Medi",align_right:"Alinear a la dreta",align_top:"Alinear a dalt",mode_select:"Eina de selecció",mode_fhpath:"Eina Llapis",mode_line:"L'eina",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Lipse",mode_circle:"Cercle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Eina de text",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Desfés",redo:"Refer",tool_source:"Font Edita",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elements de Grup de",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Desagrupar elements",docprops:"Propietats del document",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mou al final",move_top:"Mou al principi",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Salvar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Eliminar capa",move_down:"Mou la capa de Down",new:"Nova capa",rename:"Canvieu el nom de la capa",move_up:"Mou la capa Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Seleccioneu predefinides:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),XQ=Object.freeze({__proto__:null,default:{lang:"cs",dir:"ltr",common:{ok:"Uložit",cancel:"Storno",key_backspace:"backspace",key_del:"delete",key_down:"šipka dolů",key_up:"šipka nahoru",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Běží na"},ui:{toggle_stroke_tools:"Zobrazit/schovat více možností",palette_info:"Kliknutím změníte barvu výplně, kliknutím současně s klávesou shift změníte barvu čáry",zoom_level:"Změna přiblížení",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Změnit ID elementu",fill_color:"Změnit barvu výplně",stroke_color:"Změnit barvu čáry",stroke_style:"Změnit styl čáry",stroke_width:"Změnit šířku čáry",pos_x:"Změnit souřadnici X",pos_y:"Změnit souřadnici Y",linecap_butt:"Konec úsečky: přesný",linecap_round:"Konec úsečky: zaoblený",linecap_square:"Konec úsečky: s čtvercovým přesahem",linejoin_bevel:"Styl napojení úseček: zkosené",linejoin_miter:"Styl napojení úseček: ostré",linejoin_round:"Styl napojení úseček: oblé",angle:"Změnit úhel natočení",blur:"Změnit rozostření",opacity:"Změnit průhlednost objektů",circle_cx:"Změnit souřadnici X středu kružnice",circle_cy:"Změnit souřadnici Y středu kružnice",circle_r:"Změnit poloměr kružnice",ellipse_cx:"Změnit souřadnici X středu elipsy",ellipse_cy:"Změnit souřadnici Y středu elipsy",ellipse_rx:"Změnit poloměr X elipsy",ellipse_ry:"Změnit poloměr Y elipsy",line_x1:"Změnit počáteční souřadnici X úsečky",line_x2:"Změnit koncovou souřadnici X úsečky",line_y1:"Změnit počáteční souřadnici Y úsečky",line_y2:"Změnit koncovou souřadnici X úsečky",rect_height:"Změnit výšku obdélníku",rect_width:"Změnit šířku obdélníku",corner_radius:"Změnit zaoblení obdélníku",image_width:"Změnit šířku dokumentu",image_height:"Změnit výšku dokumentu",image_url:"Změnit adresu URL",node_x:"Změnit souřadnici X uzlu",node_y:"Změnit souřadnici Y uzlu",seg_type:"Změnit typ segmentu",straight_segments:"úsečka",curve_segments:"křivka",text_contents:"Změnit text",font_family:"Změnit font",font_size:"Změnit velikost písma",bold:"Tučně",italic:"Kurzíva",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Hlavní menu",bkgnd_color_opac:"Změnit barvu a průhlednost pozadí",connector_no_arrow:"Bez šipky",fitToContent:"přizpůsobit obsahu",fit_to_all:"Přizpůsobit veškerému obsahu",fit_to_canvas:"Přizpůsobit stránce",fit_to_layer_content:"Přizpůsobit obsahu vrstvy",fit_to_sel:"Přizpůsobit výběru",align_relative_to:"Zarovnat relativně",relativeTo:"relatativně k:",page:"stránce",largest_object:"největšímu objektu",selected_objects:"zvoleným objektům",smallest_object:"nejmenšímu objektu",new_doc:"Nový dokument",open_doc:"Otevřít dokument",export_img:"Export",save_doc:"Uložit dokument",import_doc:"Importovat SVG",align_to_page:"Zarovnat element na stránku",align_bottom:"Zarovnat dolů",align_center:"Zarovnat nastřed",align_left:"Zarovnat doleva",align_middle:"Zarovnat nastřed",align_right:"Zarovnat doprava",align_top:"Zarovnat nahoru",mode_select:"Výběr a transformace objektů",mode_fhpath:"Kresba od ruky",mode_line:"Úsečka",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Obdélník volnou rukou",mode_ellipse:"Elipsa",mode_circle:"Kružnice",mode_fhellipse:"Elipsa volnou rukou",mode_path:"Křivka",mode_text:"Text",mode_image:"Obrázek",mode_zoom:"Přiblížení",no_embed:"POZOR: Obrázek nelze uložit s dokumentem. Bude zobrazován z adresáře, kde se nyní nachází.",undo:"Zpět",redo:"Znovu",tool_source:"Upravovat SVG kód",wireframe_mode:"Zobrazit jen kostru",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Seskupit objekty",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Objekt na křivku",reorient_path:"Změna orientace křivky",ungroup:"Zrušit seskupení",docprops:"Vlastnosti dokumentu",editor_homepage:"SVG-Edit Home Page",move_bottom:"Vrstvu úplně dospodu",move_top:"Vrstvu úplně nahoru",node_clone:"Vložit nový uzel",node_delete:"Ostranit uzel",node_link:"Provázat ovládací body uzlu",add_subpath:"Přidat další součást křivky",openclose_path:"Otevřít/zavřít součást křivky",source_save:"Uložit",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Vrstva",layers:"Layers",del:"Odstranit vrstvu",move_down:"Přesunout vrstvu níž",new:"Přidat vrstvu",rename:"Přejmenovat vrstvu",move_up:"Přesunout vrstvu výš",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Přesunout objekty do:",move_selected:"Přesunout objekty do jiné vrstvy"},config:{image_props:"Vlastnosti dokumentu",doc_title:"Název",doc_dims:"Vlastní velikost",included_images:"Vložené obrázky",image_opt_embed:"Vkládat do dokumentu",image_opt_ref:"Jen odkazem",editor_prefs:"Nastavení editoru",icon_size:"Velikost ikon",language:"Jazyk",background:"Obrázek v pozadí editoru",editor_img_url:"Image URL",editor_bg_note:"Pozor: obrázek v pozadí nebude uložen jako součást dokumentu.",icon_large:"velké",icon_medium:"střední",icon_small:"malé",icon_xlarge:"největší",select_predefined:"vybrat předdefinovaný:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Nevhodná hodnota",noContentToFitTo:"Vyberte oblast pro přizpůsobení",dupeLayerName:"Taková vrstva už bohužel existuje",enterUniqueLayerName:"Zadejte prosím jedinečné jméno pro vrstvu",enterNewLayerName:"Zadejte prosím jméno pro novou vrstvu",layerHasThatName:"Vrstva už se tak jmenuje",QmoveElemsToLayer:"Opravdu chcete přesunout vybrané objekty do vrstvy '%s'?",QwantToClear:"Opravdu chcete smazat současný dokument?\nHistorie změn bude také smazána.",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Chyba v parsování zdrojového kódu SVG.\nChcete se vrátit k původnímu?",QignoreSourceChanges:"Opravdu chcete stornovat změny provedené v SVG kódu?",featNotSupported:"Tato vlastnost ještě není k dispozici",enterNewImgURL:"Vložte adresu URL, na které se nachází vkládaný obrázek",defsFailOnSave:"POZOR: Kvůli nedokonalosti Vašeho prohlížeče se mohou některé části dokumentu špatně vykreslovat (mohou chybět barevné přechody nebo některé objekty). Po uložení dokumentu by se ale vše mělo zobrazovat správně.",loadingImage:"Nahrávám obrázek ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Mohou se vyskytnout následující problémy: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),YQ=Object.freeze({__proto__:null,default:{lang:"cy",dir:"ltr",common:{ok:"Cadw",cancel:"Canslo",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Cliciwch yma i lenwi newid lliw, sifft-cliciwch i newid lliw strôc",zoom_level:"Newid lefel chwyddo",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Newid lliw llenwi",stroke_color:"Newid lliw strôc",stroke_style:"Newid arddull strôc diferyn",stroke_width:"Lled strôc Newid",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Ongl cylchdro Newid",blur:"Change gaussian blur value",opacity:"Newid dewis Didreiddiad eitem",circle_cx:"CX Newid cylch yn cydlynu",circle_cy:"Newid cylch's cy gydgysylltu",circle_r:"Newid radiws cylch yn",ellipse_cx:"Newid Ellipse yn CX gydgysylltu",ellipse_cy:"Newid Ellipse yn cydlynu cy",ellipse_rx:"Radiws Newid Ellipse's x",ellipse_ry:"Radiws Newid Ellipse yn y",line_x1:"Newid llinell yn cychwyn x gydgysylltu",line_x2:"Newid llinell yn diweddu x gydgysylltu",line_y1:"Newid llinell ar y cychwyn yn cydlynu",line_y2:"Newid llinell yn dod i ben y gydgysylltu",rect_height:"Uchder petryal Newid",rect_width:"Lled petryal Newid",corner_radius:"Newid Hirsgwâr Corner Radiws",image_width:"Lled delwedd Newid",image_height:"Uchder delwedd Newid",image_url:"Newid URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Cynnwys testun Newid",font_family:"Newid Font Teulu",font_size:"Newid Maint Ffont",bold:"Testun Bras",italic:"Italig Testun",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Newid lliw cefndir / Didreiddiad",connector_no_arrow:"No arrow",fitToContent:"Ffit i Cynnwys",fit_to_all:"Yn addas i bawb content",fit_to_canvas:"Ffit i ofyn",fit_to_layer_content:"Ffit cynnwys haen i",fit_to_sel:"Yn addas at ddewis",align_relative_to:"Alinio perthynas i ...",relativeTo:"cymharol i:",page:"tudalen",largest_object:"gwrthrych mwyaf",selected_objects:"gwrthrychau etholedig",smallest_object:"lleiaf gwrthrych",new_doc:"Newydd Delwedd",open_doc:"Delwedd Agored",export_img:"Export",save_doc:"Cadw Delwedd",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Alinio Gwaelod",align_center:"Alinio Center",align_left:"Alinio Chwith",align_middle:"Alinio Canol",align_right:"Alinio Hawl",align_top:"Alinio Top",mode_select:"Dewiswch Offer",mode_fhpath:"Teclyn pensil",mode_line:"Llinell Offer",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Hand rhad ac am ddim Hirsgwâr",mode_ellipse:"Ellipse",mode_circle:"Cylch",mode_fhellipse:"Rhad ac am ddim Hand Ellipse",mode_path:"Offer poly",mode_text:"Testun Offer",mode_image:"Offer Delwedd",mode_zoom:"Offer Chwyddo",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Dadwneud",redo:"Ail-wneud",tool_source:"Golygu Ffynhonnell",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elfennau Grŵp",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elfennau Ungroup",docprops:"Document Eiddo",editor_homepage:"SVG-Edit Home Page",move_bottom:"Symud i'r Gwaelod",move_top:"Symud i'r Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Cadw",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Dileu Haen",move_down:"Symud Haen i Lawr",new:"Haen Newydd",rename:"Ail-enwi Haen",move_up:"Symud Haen Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Rhagosodol Dewis:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),JQ=Object.freeze({__proto__:null,default:{lang:"da",dir:"ltr",common:{ok:"Gemme",cancel:"Annuller",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik for at ændre fyldfarve, shift-klik for at ændre stregfarve",zoom_level:"Skift zoomniveau",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Skift fyldfarve",stroke_color:"Skift stregfarve",stroke_style:"Skift slagtilfælde Dash stil",stroke_width:"Skift slagtilfælde bredde",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Skift rotationsvinkel",blur:"Change gaussian blur value",opacity:"Skift valgte element opacitet",circle_cx:"Skift cirklens cx koordinere",circle_cy:"Skift cirklens cy koordinere",circle_r:"Skift cirklens radius",ellipse_cx:"Skift ellipse's cx koordinere",ellipse_cy:"Skift ellipse's cy koordinere",ellipse_rx:"Skift ellipse's x radius",ellipse_ry:"Skift ellipse's y radius",line_x1:"Skift linie's start x-koordinat",line_x2:"Skift Line's slutter x-koordinat",line_y1:"Skift linjens start y-koordinat",line_y2:"Skift Line's slutter y-koordinat",rect_height:"Skift rektangel højde",rect_width:"Skift rektanglets bredde",corner_radius:"Skift Rektangel Corner Radius",image_width:"Skift billede bredde",image_height:"Skift billede højde",image_url:"Skift webadresse",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Skift tekst indhold",font_family:"Skift Font Family",font_size:"Skift skriftstørrelse",bold:"Fed tekst",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Skift baggrundsfarve / uigennemsigtighed",connector_no_arrow:"No arrow",fitToContent:"Tilpas til indhold",fit_to_all:"Passer til alt indhold",fit_to_canvas:"Tilpas til lærred",fit_to_layer_content:"Tilpas til lag indhold",fit_to_sel:"Tilpas til udvælgelse",align_relative_to:"Juster i forhold til ...",relativeTo:"i forhold til:",page:"side",largest_object:"største objekt",selected_objects:"valgte objekter",smallest_object:"mindste objekt",new_doc:"Nyt billede",open_doc:"Open SVG",export_img:"Export",save_doc:"Gem billede",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Juster Bottom",align_center:"Centrer",align_left:"Venstrejusteret",align_middle:"Juster Mellemøsten",align_right:"Højrejusteret",align_top:"Juster Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rektangel",mode_ellipse:"Ellipse",mode_circle:"Cirkel",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Tekstværktøj",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Fortryd",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Gruppe Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Opdel Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Flyt til bund",move_top:"Flyt til toppen",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Gemme",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Slet Layer",move_down:"Flyt lag ned",new:"New Layer",rename:"Omdøb Layer",move_up:"Flyt Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Vælg foruddefinerede:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),ZQ=Object.freeze({__proto__:null,default:{lang:"de",dir:"ltr",common:{ok:"OK",cancel:"Abbrechen",key_backspace:"Rücktaste",key_del:"Löschen",key_down:"nach unten",key_up:"nach oben",more_opts:"Mehr Optionen",url:"URL",width:"Breite",height:"Höhe"},misc:{powered_by:"powered by"},ui:{toggle_stroke_tools:"Zeige/Verberge weitere Linien-Werkzeuge",palette_info:"Klick zum Ändern der Füllfarbe, Shift-Klick zum Ändern der Linienfarbe",zoom_level:"vergrößern",panel_drag:"Nach links/rechts ziehen, um die Größe vom Seitenpanel zu ändern",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Element identifizieren",fill_color:"Füllfarbe ändern",stroke_color:"Linienfarbe ändern",stroke_style:"Linienstil ändern",stroke_width:"Linienbreite ändern",pos_x:"Ändere die X-Koordinate",pos_y:"Ändere die Y-Koordinate",linecap_butt:"Form der Linienendung: Stumpf",linecap_round:"Form der Linienendung: Rund",linecap_square:"Form der Linienendung: Rechteckig",linejoin_bevel:"Zusammentreffen von zwei Linien: abgeschrägte Kante",linejoin_miter:"Zusammentreffen von zwei Linien: Gehrung",linejoin_round:"Zusammentreffen von zwei Linien: Rund",angle:"Drehwinkel ändern",blur:"Ändere Wert des Gaußschen Weichzeichners",opacity:"Opazität des ausgewählten Objekts ändern",circle_cx:"Kreiszentrum (cx) ändern",circle_cy:"Kreiszentrum (cy) ändern",circle_r:"Kreisradius (r) ändern",ellipse_cx:"Ellipsenzentrum (cx) ändern",ellipse_cy:"Ellipsenzentrum (cy) ändern",ellipse_rx:"Ellipsenradius (x) ändern",ellipse_ry:"Ellipsenradius (y) ändern",line_x1:"X-Koordinate des Linienanfangs ändern",line_x2:"X-Koordinate des Linienendes ändern",line_y1:"Y-Koordinate des Linienanfangs ändern",line_y2:"Y-Koordinate des Linienendes ändern",rect_height:"Höhe des Rechtecks ändern",rect_width:"Breite des Rechtecks ändern",corner_radius:"Eckenradius des Rechtecks ändern",image_width:"Bildbreite ändern",image_height:"Bildhöhe ändern",image_url:"URL ändern",node_x:"Ändere die X-Koordinate des Knoten",node_y:"Ändere die Y-Koordinate des Knoten",seg_type:"Ändere den Typ des Segments",straight_segments:"Gerade",curve_segments:"Kurve",text_contents:"Textinhalt erstellen und bearbeiten",font_family:"Schriftart wählen",font_size:"Schriftgröße einstellen",bold:"Fetter Text",italic:"Kursiver Text",text_anchor_start:"Den Text linksbündig ausrichten",text_anchor_middle:"Den Text zentriert ausrichten",text_anchor_end:"Den Text rechtsbündig ausrichten"},tools:{main_menu:"Hauptmenü",bkgnd_color_opac:"Hintergrundfarbe ändern / Opazität",connector_no_arrow:"Kein Pfeil",fitToContent:"An den Inhalt anpassen",fit_to_all:"An gesamten Inhalt anpassen",fit_to_canvas:"An die Zeichenfläche anpassen",fit_to_layer_content:"An Inhalt der Ebene anpassen",fit_to_sel:"An die Auswahl anpassen",align_relative_to:"Relativ zu einem anderem Objekt ausrichten …",relativeTo:"im Vergleich zu:",page:"Seite",largest_object:"größtes Objekt",selected_objects:"gewählte Objekte",smallest_object:"kleinstes Objekt",new_doc:"Neues Bild",open_doc:"Bild öffnen",export_img:"Export",save_doc:"Bild speichern",import_doc:"Importiere SVG",align_to_page:"Element an Seite ausrichten",align_bottom:"Unten ausrichten",align_center:"Zentriert ausrichten",align_left:"Linksbündig ausrichten",align_middle:"In der Mitte ausrichten",align_right:"Rechtsbündig ausrichten",align_top:"Oben ausrichten",mode_select:"Objekte auswählen und verändern",mode_fhpath:"Freihandlinien zeichnen",mode_line:"Linien zeichnen",mode_rect:"Rechteck-Werkzeug",mode_square:"Quadrat-Werkzeug",mode_fhrect:"Freihand-Rechteck",mode_ellipse:"Ellipse",mode_circle:"Kreis",mode_fhellipse:"Freihand-Ellipse",mode_path:"Pfad zeichnen",mode_text:"Text erstellen und bearbeiten",mode_image:"Bild einfügen",mode_zoom:"Zoomfaktor vergrößern oder verringern",no_embed:"Hinweis: Dieses Bild kann nicht eingebettet werden. Eine Anzeige hängt von diesem Pfad ab.",undo:"Rückgängig",redo:"Wiederherstellen",tool_source:"Quellcode bearbeiten",wireframe_mode:"Drahtmodell-Modus",clone:"Element(e) klonen",del:"Element(e) löschen",group_elements:"Element(e) gruppieren",make_link:"Link erstellen",set_link_url:"Link setzen (leer lassen zum Entfernen)",to_path:"Gewähltes Objekt in einen Pfad konvertieren",reorient_path:"Neuausrichtung des Pfades",ungroup:"Gruppierung aufheben",docprops:"Dokument-Eigenschaften",editor_homepage:"SVG-Edit Home Page",move_bottom:"Die gewählten Objekte nach ganz unten verschieben",move_top:"Die gewählten Objekte nach ganz oben verschieben",node_clone:"Klone den Knoten",node_delete:"Lösche den Knoten",node_link:"Gekoppelte oder separate Kontrollpunkte für die Bearbeitung des Pfades",add_subpath:"Teilpfad hinzufügen",openclose_path:"Öffne/Verbinde Unterpfad",source_save:"Änderungen akzeptieren",cut:"Ausschneiden",copy:"Kopieren",paste:"Einfügen",paste_in_place:"Bei Originalposition einfügen",delete:"Löschen",group:"Gruppieren",move_front:"Nach ganz oben verschieben",move_up:"Hochschieben",move_down:"Herunterschieben",move_back:"Nach ganz unten verschieben"},layers:{layer:"Ebene",layers:"Ebenen",del:"Ebene löschen",move_down:"Ebene nach unten verschieben",new:"Neue Ebene",rename:"Ebene umbenennen",move_up:"Ebene nach oben verschieben",dupe:"Ebene duplizieren",merge_down:"Nach unten zusammenführen",merge_all:"Alle zusammenführen",move_elems_to:"Verschiebe ausgewählte Objekte:",move_selected:"Verschiebe ausgewählte Objekte auf eine andere Ebene"},config:{image_props:"Bildeigenschaften",doc_title:"Titel",doc_dims:"Dimension der Zeichenfläche",included_images:"Eingefügte Bilder",image_opt_embed:"Daten einbetten (lokale Dateien)",image_opt_ref:"Benutze die Dateireferenz",editor_prefs:"Editor-Einstellungen",icon_size:"Symbol-Abmessungen",language:"Sprache",background:"Editor-Hintergrund",editor_img_url:"Bild-URL",editor_bg_note:"Anmerkung: Der Hintergrund wird mit dem Bild nicht gespeichert.",icon_large:"Groß",icon_medium:"Mittel",icon_small:"Klein",icon_xlarge:"Sehr Groß",select_predefined:"Auswahl einer vordefinierten:",units_and_rulers:"Einheiten und Lineale",show_rulers:"Zeige Lineale",base_unit:"Basiseinheit:",grid:"Gitternetz",snapping_onoff:"Einrasten an/aus",snapping_stepsize:"Einrastabstand:",grid_color:"Gitterfarbe"},notification:{invalidAttrValGiven:"Fehlerhafter Wert",noContentToFitTo:"Kein Inhalt anzupassen",dupeLayerName:"Eine Ebene hat bereits diesen Namen",enterUniqueLayerName:"Verwenden Sie einen eindeutigen Namen für die Ebene",enterNewLayerName:"Geben Sie bitte einen neuen Namen für die Ebene ein",layerHasThatName:"Eine Ebene hat bereits diesen Namen",QmoveElemsToLayer:"Verschiebe ausgewählte Objekte in die Ebene '%s'?",QwantToClear:"Möchten Sie die Zeichnung löschen?\nDadurch wird auch die Rückgängig-Funktion zurückgesetzt!",QwantToOpen:"Möchten Sie eine neue Datei öffnen?\nDadurch wird auch die Rückgängig-Funktion zurückgesetzt!",QerrorsRevertToSource:"Es gibt Parser-Fehler in der SVG-Quelle.\nDie Original-SVG wiederherstellen?",QignoreSourceChanges:"Sollen die Änderungen an der SVG-Quelle ignoriert werden?",featNotSupported:"Diese Eigenschaft wird nicht unterstützt",enterNewImgURL:"Geben Sie die URL für das neue Bild an",defsFailOnSave:"Hinweis: Aufgrund eines Fehlers in Ihrem Browser kann dieses Bild falsch angezeigt werden (fehlende Gradienten oder Elemente). Es wird jedoch richtig angezeigt, sobald es gespeichert wird.",loadingImage:"Bild wird geladen, bitte warten ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Beachten Sie außerdem die folgenden Probleme: ",unsavedChanges:"Es sind nicht-gespeicherte Änderungen vorhanden.",enterNewLinkURL:"Geben Sie die neue URL ein",errorLoadingSVG:"Fehler: Kann SVG-Daten nicht laden",URLLoadFail:"Kann von dieser URL nicht laden",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),eH=Object.freeze({__proto__:null,default:{lang:"el",dir:"ltr",common:{ok:"Αποθηκεύω",cancel:"Άκυρο",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Κάντε κλικ για να συμπληρώσετε την αλλαγή χρώματος, στροφή κλικ για να αλλάξετε το χρώμα εγκεφαλικό",zoom_level:"Αλλαγή επίπεδο μεγέθυνσης",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Αλλαγή συμπληρώστε χρώμα",stroke_color:"Αλλαγή χρώματος εγκεφαλικό",stroke_style:"Αλλαγή στυλ παύλα εγκεφαλικό",stroke_width:"Αλλαγή πλάτος γραμμής",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Αλλαγή γωνία περιστροφής",blur:"Change gaussian blur value",opacity:"Αλλαγή αδιαφάνεια επιλεγμένο σημείο",circle_cx:"Cx Αλλαγή κύκλου συντονίζουν",circle_cy:"Αλλαγή κύκλου cy συντονίζουν",circle_r:"Αλλαγή ακτίνα κύκλου",ellipse_cx:"Αλλαγή ellipse του CX συντονίζουν",ellipse_cy:"Αλλαγή ellipse του cy συντονίζουν",ellipse_rx:"X ακτίνα Αλλαγή ellipse του",ellipse_ry:"Y ακτίνα Αλλαγή ellipse του",line_x1:"Αλλαγή γραμμής εκκίνησης x συντονίζουν",line_x2:"Αλλαγή γραμμής λήγει x συντονίζουν",line_y1:"Αλλαγή γραμμής εκκίνησης y συντονίζουν",line_y2:"Αλλαγή γραμμής λήγει y συντονίζουν",rect_height:"Αλλαγή ύψος ορθογωνίου",rect_width:"Αλλαγή πλάτους ορθογώνιο",corner_radius:"Αλλαγή ορθογώνιο Corner Radius",image_width:"Αλλαγή πλάτος εικόνας",image_height:"Αλλαγή ύψος εικόνας",image_url:"Αλλαγή URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Αλλαγή περιεχόμενο κειμένου",font_family:"Αλλαγή γραμματοσειράς Οικογένεια",font_size:"Αλλαγή μεγέθους γραμματοσειράς",bold:"Bold Text",italic:"Πλάγιους",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Αλλαγή χρώματος φόντου / αδιαφάνεια",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Ταιριάζει σε όλο το περιεχόμενο",fit_to_canvas:"Προσαρμογή στο μουσαμά",fit_to_layer_content:"Προσαρμογή στο περιεχόμενο στρώμα",fit_to_sel:"Fit to επιλογή",align_relative_to:"Στοίχιση σε σχέση με ...",relativeTo:"σε σχέση με:",page:"σελίδα",largest_object:"μεγαλύτερο αντικείμενο",selected_objects:"εκλέγεται αντικείμενα",smallest_object:"μικρότερο αντικείμενο",new_doc:"Νέα εικόνα",open_doc:"Άνοιγμα εικόνας",export_img:"Export",save_doc:"Αποθήκευση εικόνας",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Στοίχισηκάτω",align_center:"Στοίχισηστοκέντρο",align_left:"Στοίχισηαριστερά",align_middle:"Ευθυγράμμιση Μέση",align_right:"Στοίχισηδεξιά",align_top:"Στοίχισηπάνω",mode_select:"Select Tool",mode_fhpath:"Εργαλείομολυβιού",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Δωρεάν-Hand ορθογώνιο",mode_ellipse:"Ellipse",mode_circle:"Κύκλος",mode_fhellipse:"Δωρεάν-Hand Ellipse",mode_path:"Path Tool",mode_text:"Κείμενο Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Αναίρεση",redo:"Redo",tool_source:"Επεξεργασία Πηγή",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Ομάδα Στοιχεία",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Κατάργηση ομαδοποίησης Στοιχεία",docprops:"Ιδιότητες εγγράφου",editor_homepage:"SVG-Edit Home Page",move_bottom:"Μετακίνηση προς τα κάτω",move_top:"Μετακίνηση στην αρχή",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Αποθηκεύω",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Διαγραφήστρώματος",move_down:"Μετακίνηση Layer Down",new:"Νέο Layer",rename:"Μετονομασία Layer",move_up:"Μετακίνηση Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Επιλογή προκαθορισμένων:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),tH=Object.freeze({__proto__:null,default:{lang:"en",dir:"ltr",common:{ok:"OK",cancel:"Cancel",key_backspace:"Backspace",key_del:"Del",key_down:"Down",key_up:"Up",more_opts:"More options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width by 1, shift-click to change by 0.1",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text [B]",italic:"Italic Text [I]",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"selected objects",smallest_object:"smallest object",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool [Ctrl+Up/Down]",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo [Z]",redo:"Redo [Y]",tool_source:"Edit Source [U]",wireframe_mode:"Wireframe Mode",clone:"Duplicate Element(s) [D]",del:"Delete Element(s) [Delete/Backspace]",group_elements:"Group Elements [G]",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties [D]",editor_homepage:"SVG-Edit Home Page",move_bottom:"Send to Back",move_top:"Bring to Front",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Apply Changes",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer...",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title:",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size:",language:"Language:",background:"Editor Background",editor_img_url:"Image URL:",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color:"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),nH=Object.freeze({__proto__:null,default:{lang:"es",dir:"ltr",common:{ok:"OK",cancel:"Cancelar",key_backspace:"retroceso",key_del:"suprimir",key_down:"abajo",key_up:"arriba",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Mostrar/ocultar herramientas de trazo adicionales",palette_info:"Haga clic para cambiar el color de relleno. Pulse Mayús y haga clic para cambiar el color del contorno.",zoom_level:"Cambiar el nivel de zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Cambiar el color de relleno",stroke_color:"Cambiar el color del contorno",stroke_style:"Cambiar el estilo del trazo del contorno",stroke_width:"Cambiar el grosor del contorno",pos_x:"Cambiar la posición horizontal X",pos_y:"Cambiar la posición vertical Y",linecap_butt:"Final de la línea: en el nodo",linecap_round:"Final de la línea: redondeada",linecap_square:"Final de la línea: cuadrada",linejoin_bevel:"Unión: biselada",linejoin_miter:"Unión: recta",linejoin_round:"Unión: redondeada",angle:"Cambiar ángulo de rotación",blur:"Ajustar desenfoque gausiano",opacity:"Cambiar la opacidad del objeto seleccionado",circle_cx:"Cambiar la posición horizonral CX del círculo",circle_cy:"Cambiar la posición vertical CY del círculo",circle_r:"Cambiar el radio del círculo",ellipse_cx:"Cambiar la posición horizontal CX de la elipse",ellipse_cy:"Cambiar la posición vertical CY de la elipse",ellipse_rx:"Cambiar el radio horizontal X de la elipse",ellipse_ry:"Cambiar el radio vertical Y de la elipse",line_x1:"Cambiar la posición horizontal X del comienzo de la línea",line_x2:"Cambiar la posición horizontal X del final de la línea",line_y1:"Cambiar la posición vertical Y del comienzo de la línea",line_y2:"Cambiar la posición vertical Y del final de la línea",rect_height:"Cambiar la altura del rectángulo",rect_width:"Cambiar el ancho rectángulo",corner_radius:"Cambiar el radio de las esquinas del rectángulo",image_width:"Cambiar el ancho de la imagen",image_height:"Cambiar la altura de la imagen",image_url:"Modificar URL",node_x:"Cambiar la posición horizontal X del nodo",node_y:"Cambiar la posición vertical Y del nodo",seg_type:"Cambiar el tipo de segmento",straight_segments:"Recta",curve_segments:"Curva",text_contents:"Modificar el texto",font_family:"Tipo de fuente",font_size:"Tamaño de la fuente",bold:"Texto en negrita",italic:"Texto en cursiva",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Menú principal",bkgnd_color_opac:"Cambiar color de fondo / opacidad",connector_no_arrow:"Sin flecha",fitToContent:"Ajustar al contenido",fit_to_all:"Ajustar a todo el contenido",fit_to_canvas:"Ajustar al lienzo",fit_to_layer_content:"Ajustar al contenido de la capa",fit_to_sel:"Ajustar a la selección",align_relative_to:"Alinear con respecto a ...",relativeTo:"en relación con:",page:"Página",largest_object:"El objeto más grande",selected_objects:"Objetos seleccionados",smallest_object:"El objeto más pequeño",new_doc:"Nueva imagen",open_doc:"Abrir imagen",export_img:"Export",save_doc:"Guardar imagen",import_doc:"Importar un archivo SVG",align_to_page:"Align Element to Page",align_bottom:"Alinear parte inferior",align_center:"Centrar verticalmente",align_left:"Alinear lado izquierdo",align_middle:"Centrar horizontalmente",align_right:"Alinear lado derecho",align_top:"Alinear parte superior",mode_select:"Herramienta de selección",mode_fhpath:"Herramienta de lápiz",mode_line:"Trazado de líneas",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Rectángulo a mano alzada",mode_ellipse:"Elipse",mode_circle:"Círculo",mode_fhellipse:"Elipse a mano alzada",mode_path:"Herramienta de trazado",mode_text:"Insertar texto",mode_image:"Insertar imagen",mode_zoom:"Zoom",no_embed:"NOTA: La imagen no puede ser integrada. El contenido mostrado dependerá de la imagen ubicada en esta ruta. ",undo:"Deshacer",redo:"Rehacer",tool_source:"Editar código fuente",wireframe_mode:"Modo marco de alambre",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Agrupar objetos",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convertir a trazado",reorient_path:"Reorientar el trazado",ungroup:"Desagrupar objetos",docprops:"Propiedades del documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mover abajo",move_top:"Mover arriba",node_clone:"Clonar nodo",node_delete:"Suprimir nodo",node_link:"Enlazar puntos de control",add_subpath:"Añadir subtrazado",openclose_path:"Open/close sub-path",source_save:"Aplicar cambios",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Capa",layers:"Layers",del:"Suprimir capa",move_down:"Mover la capa hacia abajo",new:"Nueva capa",rename:"Renombrar capa",move_up:"Mover la capa hacia arriba",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Desplazar objetos a:",move_selected:"Mover los objetos seleccionados a otra capa"},config:{image_props:"Propiedades de la Imagen",doc_title:"Título",doc_dims:"Tamaño del lienzo",included_images:"Imágenes integradas",image_opt_embed:"Integrar imágenes en forma de datos (archivos locales)",image_opt_ref:"Usar la referencia del archivo",editor_prefs:"Preferencias del Editor",icon_size:"Tamaño de los iconos",language:"Idioma",background:"Fondo del editor",editor_img_url:"Image URL",editor_bg_note:"Nota: El fondo no se guardará junto con la imagen.",icon_large:"Grande",icon_medium:"Mediano",icon_small:"Pequeño",icon_xlarge:"Muy grande",select_predefined:"Seleccionar predefinido:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Valor no válido",noContentToFitTo:"No existe un contenido al que ajustarse.",dupeLayerName:"¡Ya existe una capa con este nombre!",enterUniqueLayerName:"Introduzca otro nombre distinto para la capa.",enterNewLayerName:"Introduzca el nuevo nombre de la capa.",layerHasThatName:"El nombre introducido es el nombre actual de la capa.",QmoveElemsToLayer:"¿Desplazar los elementos seleccionados a la capa '%s'?",QwantToClear:"¿Desea borrar el dibujo?\n¡El historial de acciones también se borrará!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Existen errores sintácticos en su código fuente SVG.\n¿Desea volver al código fuente SVG original?",QignoreSourceChanges:"¿Desea ignorar los cambios realizados sobre el código fuente SVG?",featNotSupported:"Función no compatible.",enterNewImgURL:"Introduzca la nueva URL de la imagen.",defsFailOnSave:"NOTA: Debido a un fallo de su navegador, es posible que la imagen aparezca de forma incorrecta (ciertas gradaciones o elementos podría perderse). La imagen aparecerá en su forma correcta una vez guardada.",loadingImage:"Cargando imagen. Espere, por favor.",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Existen además los problemas siguientes:",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),rH=Object.freeze({__proto__:null,default:{lang:"et",dir:"ltr",common:{ok:"Salvestama",cancel:"Tühista",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click muuta täitke värvi, Shift-nuppu, et muuta insult värvi",zoom_level:"Muuda suumi taset",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Muuda täitke värvi",stroke_color:"Muuda insult värvi",stroke_style:"Muuda insult kriips stiil",stroke_width:"Muuda insult laius",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Muuda Pöördenurk",blur:"Change gaussian blur value",opacity:"Muuda valitud elemendi läbipaistmatus",circle_cx:"Muuda ringi's cx kooskõlastada",circle_cy:"Muuda ringi's cy kooskõlastada",circle_r:"Muuda ring on raadiusega",ellipse_cx:"Muuda ellips's cx kooskõlastada",ellipse_cy:"Muuda ellips's cy kooskõlastada",ellipse_rx:"Muuda ellips's x raadius",ellipse_ry:"Muuda ellips's y raadius",line_x1:"Muuda rööbastee algab x-koordinaadi",line_x2:"Muuda Line lõpeb x-koordinaadi",line_y1:"Muuda rööbastee algab y-koordinaadi",line_y2:"Muuda Line lõppenud y-koordinaadi",rect_height:"Muuda ristküliku kõrgus",rect_width:"Muuda ristküliku laius",corner_radius:"Muuda ristkülik Nurgakabe Raadius",image_width:"Muuda pilt laius",image_height:"Muuda pilt kõrgus",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Muuda teksti sisu",font_family:"Muutke Kirjasinperhe",font_size:"Change font size",bold:"Rasvane kiri",italic:"Kursiiv",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Muuda tausta värvi / läbipaistmatus",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Sobita kogu sisu",fit_to_canvas:"Sobita lõuend",fit_to_layer_content:"Sobita kiht sisu",fit_to_sel:"Fit valiku",align_relative_to:"Viia võrreldes ...",relativeTo:"võrreldes:",page:"lehekülg",largest_object:"suurim objekt",selected_objects:"valitud objektide",smallest_object:"väikseim objekt",new_doc:"Uus pilt",open_doc:"Pildi avamine",export_img:"Export",save_doc:"Salvesta pilt",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Viia Bottom",align_center:"Keskele joondamine",align_left:"Vasakjoondus",align_middle:"Viia Lähis -",align_right:"Paremjoondus",align_top:"Viia Üles",mode_select:"Vali Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Online-Hand Ristkülik",mode_ellipse:"Ellips",mode_circle:"Circle",mode_fhellipse:"Online-Hand Ellips",mode_path:"Path Tool",mode_text:"Tekst Tool",mode_image:"Pilt Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Muuda Allikas",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Rühma elemendid",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Lõhu Elements",docprops:"Dokumendi omadused",editor_homepage:"SVG-Edit Home Page",move_bottom:"Liiguta alla",move_top:"Liiguta üles",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Salvestama",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Kustuta Kiht",move_down:"Liiguta kiht alla",new:"Uus kiht",rename:"Nimeta kiht",move_up:"Liiguta kiht üles",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Valige eelmääratletud:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),iH=Object.freeze({__proto__:null,default:{lang:"fa",dir:"rtl",common:{ok:"تأیید",cancel:"لغو",key_backspace:"پس بر ",key_del:"حذف ",key_down:"پایین ",key_up:"بالا ",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"برای تغییر رنگ، کلیک کنید. برای تغییر رنگ لبه، کلید تبدیل (shift) را فشرده و کلیک کنید",zoom_level:"تغییر بزرگ نمایی",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"تغییر رنگ",stroke_color:"تغییر رنگ لبه",stroke_style:"تغییر نقطه چین لبه",stroke_width:"تغییر عرض لبه",pos_x:"تغییر مختصات X",pos_y:"تغییر مختصات Y",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"تغییر زاویه چرخش",blur:"Change gaussian blur value",opacity:"تغییر تاری عنصر انتخاب شده",circle_cx:"تغییر مختصات cx دایره",circle_cy:"تغییر مختصات cy دایره",circle_r:"تغییر شعاع دایره",ellipse_cx:"تغییر مختصات cx بیضی",ellipse_cy:"تغییر مختصات cy بیضی",ellipse_rx:"تغییر شعاع rx بیضی",ellipse_ry:"تغییر شعاع ry بیضی",line_x1:"تغییر مختصات x آغاز خط",line_x2:"تغییر مختصات x پایان خط",line_y1:"تغییر مختصات y آغاز خط",line_y2:"تغییر مختصات y پایان خط",rect_height:"تغییر ارتفاع مستطیل",rect_width:"تغییر عرض مستطیل",corner_radius:"شعاع گوشه:",image_width:"تغییر عرض تصویر",image_height:"تغییر ارتفاع تصویر",image_url:"تغییر نشانی وب (url)",node_x:"تغییر مختصات x نقطه",node_y:"تغییر مختصات y نقطه",seg_type:"تغییر نوع قطعه (segment)",straight_segments:"مستقیم",curve_segments:"منحنی",text_contents:"تغییر محتویات متن",font_family:"تغییر خانواده قلم",font_size:"تغییر اندازه قلم",bold:"متن توپر ",italic:"متن کج ",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"تغییر رنگ پس زمینه / تاری",connector_no_arrow:"No arrow",fitToContent:"هم اندازه شدن با محتوا",fit_to_all:"هم اندازه شدن با همه محتویات",fit_to_canvas:"هم اندازه شدن با صفحه مجازی (بوم)",fit_to_layer_content:"هم اندازه شدن با محتوای لایه",fit_to_sel:"هم اندازه شدن با اشیاء انتخاب شده",align_relative_to:"تراز نسبت به ...",relativeTo:"نسبت به:",page:"صفحه",largest_object:"بزرگترین شئ",selected_objects:"اشیاء انتخاب شده",smallest_object:"کوچکترین شئ",new_doc:"تصویر جدید ",open_doc:"باز کردن تصویر ",export_img:"Export",save_doc:"ذخیره تصویر ",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"تراز پایین",align_center:"وسط چین",align_left:"چپ چین",align_middle:"تراز میانه",align_right:"راست چین",align_top:"تراز بالا",mode_select:"ابزار انتخاب ",mode_fhpath:"ابزار مداد ",mode_line:"ابزار خط ",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"مستطیل با قابلیت تغییر پویا",mode_ellipse:"بیضی",mode_circle:"دایره",mode_fhellipse:"بیضی با قابلیت تغییر پویا",mode_path:"ابزار مسیر ",mode_text:"ابزار متن ",mode_image:"ابزار تصویر ",mode_zoom:"ابزار بزرگ نمایی ",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"واگرد ",redo:"ازنو ",tool_source:"ویرایش منبع ",wireframe_mode:"حالت نمایش لبه ها ",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"قرار دادن عناصر در گروه ",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"تبدیل به مسیر",reorient_path:"جهت دهی مجدد مسیر",ungroup:"خارج کردن عناصر از گروه ",docprops:"مشخصات سند ",editor_homepage:"SVG-Edit Home Page",move_bottom:"انتقال به پایین ترین ",move_top:"انتقال به بالاترین ",node_clone:"ایجاد کپی از نقطه",node_delete:"حذف نقطه",node_link:"پیوند دادن نقاط کنترل",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"اعمال تغییرات",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"حذف",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"لایه",layers:"Layers",del:"حذف لایه",move_down:"انتقال لایه به پایین",new:"لایه جدید",rename:"تغییر نام لایه",move_up:"انتقال لایه به بالا",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"انتقال عناصر به:",move_selected:"انتقال عناصر انتخاب شده به یک لایه متفاوت"},config:{image_props:"مشخصات تصویر",doc_title:"عنوان",doc_dims:"ابعاد صفحه مجازی (بوم)",included_images:"تصاویر گنجانده شده",image_opt_embed:"داده های جای داده شده (پرونده های محلی)",image_opt_ref:"استفاده از ارجاع به پرونده",editor_prefs:"تنظیمات ویراستار",icon_size:"اندازه شمایل",language:"زبان",background:"پس زمینه ویراستار",editor_img_url:"Image URL",editor_bg_note:"توجه: پس زمینه همراه تصویر ذخیره نخواهد شد.",icon_large:"بزرگ",icon_medium:"متوسط",icon_small:"کوچک",icon_xlarge:"خیلی بزرگ",select_predefined:"از پیش تعریف شده را انتخاب کنید:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"مقدار داده شده نامعتبر است",noContentToFitTo:"محتوایی برای هم اندازه شدن وجود ندارد",dupeLayerName:"لایه ای با آن نام وجود دارد!",enterUniqueLayerName:"لطفا یک نام لایه یکتا انتخاب کنید",enterNewLayerName:"لطفا نام لایه جدید را وارد کنید",layerHasThatName:"لایه از قبل آن نام را دارد",QmoveElemsToLayer:"عناصر انتخاب شده به لایه '%s' منتقل شوند؟",QwantToClear:"آیا مطمئن هستید که می خواهید نقاشی را پاک کنید؟\nاین عمل باعث حذف تاریخچه واگرد شما خواهد شد!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"در منبع SVG شما خطاهای تجزیه (parse) وجود داشت.\nبه منبع SVG اصلی بازگردانده شود؟",QignoreSourceChanges:"تغییرات اعمال شده در منبع SVG نادیده گرفته شوند؟",featNotSupported:"این ویژگی پشتیبانی نشده است",enterNewImgURL:"نشانی وب (url) تصویر جدید را وارد کنید",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),oH=Object.freeze({__proto__:null,default:{lang:"fi",dir:"ltr",common:{ok:"Tallentaa",cancel:"Peruuta",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klikkaa muuttaa täyttöväri, Shift-click vaihtaa aivohalvauksen väriä",zoom_level:"Muuta suurennustaso",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Muuta täyttöväri",stroke_color:"Muuta aivohalvaus väri",stroke_style:"Muuta aivohalvaus Dash tyyli",stroke_width:"Muuta aivohalvaus leveys",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Muuta kiertokulma",blur:"Change gaussian blur value",opacity:"Muuta valitun kohteen läpinäkyvyys",circle_cx:"Muuta Circlen CX koordinoida",circle_cy:"Muuta Circlen CY koordinoida",circle_r:"Muuta ympyrän säde",ellipse_cx:"Muuta ellipsi's CX koordinoida",ellipse_cy:"Muuta ellipsi's CY koordinoida",ellipse_rx:"Muuta ellipsi's x säde",ellipse_ry:"Muuta ellipsi n y säde",line_x1:"Muuta Linen alkaa x-koordinaatti",line_x2:"Muuta Linen päättyy x koordinoida",line_y1:"Muuta Linen alkaa y-koordinaatti",line_y2:"Muuta Linen päättyy y koordinoida",rect_height:"Muuta suorakaiteen korkeus",rect_width:"Muuta suorakaiteen leveys",corner_radius:"Muuta suorakaide Corner Säde",image_width:"Muuta kuvan leveys",image_height:"Muuta kuvan korkeus",image_url:"Muuta URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Muuta tekstin sisältö",font_family:"Muuta Font Family",font_size:"Muuta fontin kokoa",bold:"Lihavoitu teksti",italic:"Kursivoitu",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Vaihda taustaväri / sameuden",connector_no_arrow:"No arrow",fitToContent:"Sovita Content",fit_to_all:"Sovita kaikki content",fit_to_canvas:"Sovita kangas",fit_to_layer_content:"Sovita kerros sisältöön",fit_to_sel:"Sovita valinta",align_relative_to:"Kohdista suhteessa ...",relativeTo:"suhteessa:",page:"sivulta",largest_object:"Suurin kohde",selected_objects:"valittujen objektien",smallest_object:"pienin kohde",new_doc:"Uusi kuva",open_doc:"Avaa kuva",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Keskitä",align_left:"Tasaa vasemmalle",align_middle:"Kohdista Lähi",align_right:"Tasaa oikealle",align_top:"Kohdista Top",mode_select:"Valitse työkalu",mode_fhpath:"Kynätyökalu",mode_line:"Viivatyökalulla",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand suorakaide",mode_ellipse:"Soikion",mode_circle:"Ympyrään",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Työkalua",mode_image:"Image Tool",mode_zoom:"Suurennustyökalu",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Kumoa",redo:"Tulppaamalla ilmakanavan",tool_source:"Muokkaa lähdekoodipaketti",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Tuoteryhmään Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Asiakirjan ominaisuudet",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Tallentaa",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Poista Layer",move_down:"Siirrä Layer alas",new:"New Layer",rename:"Nimeä Layer",move_up:"Siirrä Layer",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Valitse ennalta:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),aH=Object.freeze({__proto__:null,default:{lang:"fr",dir:"ltr",common:{ok:"OK",cancel:"Annuler",key_backspace:"Retour Arr.",key_del:"Suppr.",key_down:"Bas",key_up:"Haut",more_opts:"Plus d'options",url:"URL",width:"Largeur",height:"Hauteur"},misc:{powered_by:"Propulsé par"},ui:{toggle_stroke_tools:"Montrer/cacher plus d'outils de contour",palette_info:"Cliquer pour changer la couleur de remplissage, Maj+clic pour changer la couleur de contour",zoom_level:"Changer le niveau de zoom",panel_drag:"Tirer vers la gauche/droite pour redimensionner le panneau",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identifier l'élément",fill_color:"Changer la couleur de remplissage",stroke_color:"Changer la couleur du contour",stroke_style:"Changer le style du contour",stroke_width:"Changer la largeur du contour de 1, Maj+clic pour changer la largeur de 0,1",pos_x:"Changer l'abscisse (coordonnée X)",pos_y:"Changer l'ordonnée (coordonnée Y)",linecap_butt:"Terminaison : Sur le nœud",linecap_round:"Terminaison : Arrondie",linecap_square:"Terminaison : Carrée",linejoin_bevel:"Raccord : Biseauté",linejoin_miter:"Raccord : Droit",linejoin_round:"Raccord : Arrondi",angle:"Changer l'angle de rotation",blur:"Changer la valeur du flou gaussien",opacity:"Changer l'opacité de l'élément sélectionné",circle_cx:"Changer la position horizontale cx du cercle",circle_cy:"Changer la position verticale cy du cercle",circle_r:"Changer le rayon du cercle",ellipse_cx:"Changer la position horizontale cx de l'ellipse",ellipse_cy:"Changer la position verticale cy de l'ellipse",ellipse_rx:"Changer le rayon horizontal x de l'ellipse",ellipse_ry:"Changer le rayon vertical y de l'ellipse",line_x1:"Changer la position horizontale x de début de la ligne",line_x2:"Changer la position horizontale x de fin de la ligne",line_y1:"Changer la position verticale y de début de la ligne",line_y2:"Changer la position verticale y de fin de la ligne",rect_height:"Changer la hauteur du rectangle",rect_width:"Changer la largeur du rectangle",corner_radius:"Changer le rayon des coins du rectangle",image_width:"Changer la largeur de l'image",image_height:"Changer la hauteur de l'image",image_url:"Modifier l'URL",node_x:"Changer la positon horizontale x du nœud",node_y:"Changer la position verticale y du nœud",seg_type:"Changer le type du segment",straight_segments:"Droit",curve_segments:"Courbe",text_contents:"Changer le contenu du texte",font_family:"Changer la famille de police",font_size:"Changer la taille de la police",bold:"Texte en gras",italic:"Texte en italique",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Menu principal",bkgnd_color_opac:"Changer la couleur d'arrière-plan/l'opacité",connector_no_arrow:"Sans flèches",fitToContent:"Ajuster au contenu",fit_to_all:"Ajuster à l'ensemble du contenu",fit_to_canvas:"Ajuster au canevas",fit_to_layer_content:"Ajuster au contenu du calque",fit_to_sel:"Ajuster à la sélection",align_relative_to:"Aligner par rapport à…",relativeTo:"par rapport à :",page:"page",largest_object:"objet le plus gros",selected_objects:"objets sélectionnés",smallest_object:"objet le plus petit",new_doc:"Nouvelle image",open_doc:"Ouvrir une image SVG",export_img:"Exporter",save_doc:"Enregistrer l'image",import_doc:"Importer une image",align_to_page:"Aligner l'élément à la page",align_bottom:"Aligner en bas",align_center:"Centrer verticalement",align_left:"Aligner à gauche",align_middle:"Centrer horizontalement",align_right:"Aligner à droite",align_top:"Aligner en haut",mode_select:"Outil de sélection",mode_fhpath:"Crayon à main levée",mode_line:"Tracer des lignes",mode_rect:"Outil rectangle",mode_square:"Outil carré",mode_fhrect:"Rectangle à main levée",mode_ellipse:"Ellipse",mode_circle:"Cercle",mode_fhellipse:"Ellipse à main levée",mode_path:"Outil chemin",mode_text:"Outil texte",mode_image:"Outil image",mode_zoom:"Zoom",no_embed:"NOTE : Cette image ne peut pas être incorporée. Elle sera chargée à cette adresse",undo:"Annuler",redo:"Restaurer",tool_source:"Modifier la source",wireframe_mode:"Mode Fil de fer",clone:"Cloner élément(s)",del:"Supprimer élément(s)",group_elements:"Grouper les éléments",make_link:"Créer un hyperlien",set_link_url:"Définir l'URL du lien (laisser vide pour supprimer)",to_path:"Convertir en chemin",reorient_path:"Réorienter le chemin",ungroup:"Dégrouper les éléments",docprops:"Propriétés du document",editor_homepage:"SVG-Edit Home Page",move_bottom:"Déplacer vers le bas",move_top:"Déplacer vers le haut",node_clone:"Cloner le nœud",node_delete:"Supprimer le nœud",node_link:"Rendre les points de contrôle solidaires",add_subpath:"Ajouter un tracé secondaire",openclose_path:"Ouvrir/fermer le sous-chemin",source_save:"Appliquer les modifications",cut:"Couper",copy:"Copier",paste:"Coller",paste_in_place:"Coller sur place",delete:"Supprimer",group:"Grouper",move_front:"Placer au premier plan",move_up:"Avancer d'un plan",move_down:"Reculer d'un plan",move_back:"Placer au fond"},layers:{layer:"Calque",layers:"Calques",del:"Supprimer le calque",move_down:"Descendre le calque",new:"Nouveau calque",rename:"Renommer le calque",move_up:"Monter le calque",dupe:"Dupliquer le calque",merge_down:"Fusionner vers le bas",merge_all:"Tout fusionner",move_elems_to:"Déplacer les éléments vers :",move_selected:"Déplacer les éléments sélectionnés vers un autre calque"},config:{image_props:"Propriétés de l'image",doc_title:"Titre",doc_dims:"Dimensions du canevas",included_images:"Images insérées",image_opt_embed:"Incorporer les données des images (fichiers locaux)",image_opt_ref:"Utiliser l'adresse des fichiers",editor_prefs:"Préférences de l'éditeur",icon_size:"Taille des icônes",language:"Langue",background:"Toile de fond de l'éditeur",editor_img_url:"Image URL",editor_bg_note:"Note : La toile de fond ne sera pas sauvegardée avec l'image.",icon_large:"Grande",icon_medium:"Moyenne",icon_small:"Petite",icon_xlarge:"Super grande",select_predefined:"Sélectionner prédéfinis :",units_and_rulers:"Unités et règles",show_rulers:"Afficher les règles",base_unit:"Unité de mesure :",grid:"Grille",snapping_onoff:"Ancrer oui/non",snapping_stepsize:"Pas d'ancrage :",grid_color:"Couleur de la grille"},notification:{invalidAttrValGiven:"Valeur fournie invalide",noContentToFitTo:"Il n'y a pas de contenu auquel ajuster",dupeLayerName:"Un autre calque porte déjà ce nom !",enterUniqueLayerName:"Veuillez entrer un nom (unique) pour le calque",enterNewLayerName:"Veuillez entrer le nouveau nom du calque",layerHasThatName:"Le calque porte déjà ce nom",QmoveElemsToLayer:"Déplacer les éléments sélectionnés vers le calque « %s » ?",QwantToClear:"Voulez-vous effacer le dessin ?\nL'historique de vos actions sera également effacé !",QwantToOpen:"Voulez-vous ouvrir un nouveau document ?\nVous perdrez l'historique de vos modifications !",QerrorsRevertToSource:"Il y a des erreurs de syntaxe dans votre code source SVG.\nRestaurer le code source SVG antérieur aux modifications ?",QignoreSourceChanges:"Ignorer les modifications faites à la source SVG ?",featNotSupported:"Fonction non supportée",enterNewImgURL:"Entrer la nouvelle URL de l'image",defsFailOnSave:"NOTE : En raison d'un bogue dans votre navigateur, il se peut que cette image ne soit pas correctement affichée (dégradés ou éléments manquants). Le souci sera néanmoins réglé à la sauvegarde.",loadingImage:"Chargement de l'image, veuillez patienter…",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Notez également les problèmes suivants : ",unsavedChanges:"Il y a des changements non sauvegardés.",enterNewLinkURL:"Entrez la nouvelle URL de l'hyperlien",errorLoadingSVG:"Erreur : Impossible de charger les données SVG",URLLoadFail:"Impossible de charger l'URL",retrieving:"Récupération de « %s »…",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),sH=Object.freeze({__proto__:null,default:{lang:"fy",dir:"ltr",common:{ok:"Ok",cancel:"Ôfbrekke",key_backspace:"backspace",key_del:"delete",key_down:"omleech",key_up:"omheech",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik om de folkleur te feroarjen, shift-klik om de linekleur te feroarjen.",zoom_level:"Yn-/útzoome",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Folkleur oanpasse",stroke_color:"Linekleur oanpasse",stroke_style:"Linestijl oanpasse",stroke_width:"Linebreedte oanpasse",pos_x:"X-koördinaat oanpasse",pos_y:"Y-koördinaat oanpasse",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Draaie",blur:"Change gaussian blur value",opacity:"Trochsichtigens oanpasse",circle_cx:"Feroarje it X-koördinaat fan it middelpunt fan'e sirkel.",circle_cy:"Feroarje it Y-koördinaat fan it middelpunt fan'e sirkel.",circle_r:"Feroarje sirkelradius",ellipse_cx:"Feroarje it X-koördinaat fan it middelpunt fan'e ellips.",ellipse_cy:"Feroarje it Y-koördinaat fan it middelpunt fan'e ellips.",ellipse_rx:"Feroarje ellips X radius",ellipse_ry:"Feroarje ellips Y radius",line_x1:"Feroarje start X koördinaat fan'e line",line_x2:"Feroarje ein X koördinaat fan'e line",line_y1:"Feroarje start Y koördinaat fan'e line",line_y2:"Feroarje ein Y koördinaat fan'e line",rect_height:"Hichte rjochthoeke oanpasse",rect_width:"Breedte rjochthoeke oanpasse",corner_radius:"Hoekeradius oanpasse",image_width:"Breedte ôfbielding oanpasse",image_height:"Hichte ôfbielding oanpasse",image_url:"URL oanpasse",node_x:"X-koördinaat knooppunt oanpasse",node_y:"Y-koördinaat knooppunt oanpasse",seg_type:"Segmenttype oanpasse",straight_segments:"Rjocht",curve_segments:"Bûcht",text_contents:"Tekst oanpasse",font_family:"Lettertype oanpasse",font_size:"Lettergrutte oanpasse",bold:"Fet",italic:"Skean",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Eftergrûnkleur/trochsichtigens oanpasse",connector_no_arrow:"No arrow",fitToContent:"Passe op ynhâld",fit_to_all:"Op alle ynhâld passe",fit_to_canvas:"Op kanvas passe",fit_to_layer_content:"Op laachynhâld passe",fit_to_sel:"Op seleksje passe",align_relative_to:"Útlijne relatyf oan...",relativeTo:"Relatief tsjinoer:",page:"Side",largest_object:"Grutste ûnderdiel",selected_objects:"Selektearre ûnderdielen",smallest_object:"Lytste ûnderdiel",new_doc:"Nije ôfbielding",open_doc:"Ôfbielding iepenje",export_img:"Export",save_doc:"Ôfbielding bewarje",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Ûnder útlijne",align_center:"Midden útlijne",align_left:"Lofts útlijne",align_middle:"Midden útlijne",align_right:"Rjochts útlijne",align_top:"Boppe útlijne",mode_select:"Selektearje",mode_fhpath:"Potlead",mode_line:"Line",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Frije rjochthoeke",mode_ellipse:"Ellips",mode_circle:"Sirkel",mode_fhellipse:"Frije ellips",mode_path:"Paad",mode_text:"Tekst",mode_image:"Ôfbielding",mode_zoom:"Zoom",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Ungedien meitjse",redo:"Op 'e nij",tool_source:"Boarne oanpasse",wireframe_mode:"Triemodel",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Ûnderdielen groepearje",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Omsette nei paad",reorient_path:"Paad opnij orientearje",ungroup:"Groepering opheffe",docprops:"Dokuminteigenskippen",editor_homepage:"SVG-Edit Home Page",move_bottom:"Nei eftergrûn",move_top:"Nei foargrûn",node_clone:"Knooppunt duplisearje",node_delete:"Knooppunt fuortsmite",node_link:"Knooppunten keppelje",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Feroarings tapasse",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Laach",layers:"Layers",del:"Laach fuortsmite",move_down:"Laach omleech bringe",new:"Nije laach",rename:"Laach omneame",move_up:"Laach omheech bringe",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Ûnderdielen ferplaate nei:",move_selected:"Selektearre ûnderdielen ferplaatse nei in oare laach"},config:{image_props:"Ôfbieldingseigenskippen",doc_title:"Titel",doc_dims:"Kanvasgrutte",included_images:"Ynslúten ôfbieldingen",image_opt_embed:"Ynformaasje tafoege (lokale triemen)",image_opt_ref:"Triemreferensje brûke",editor_prefs:"Eigenskippen bewurker",icon_size:"Ikoangrutte",language:"Taal",background:"Eftergrûn bewurker",editor_img_url:"Image URL",editor_bg_note:"Let op: de eftergrûn wurd net mei de ôfbielding bewarre.",icon_large:"Grut",icon_medium:"Middel",icon_small:"Lyts",icon_xlarge:"Ekstra grut",select_predefined:"Selektearje:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Ferkearde waarde jûn",noContentToFitTo:"Gjin ynhâld om te passen",dupeLayerName:"Der is al in laach mei dy namme!",enterUniqueLayerName:"Type in unyke laachnamme",enterNewLayerName:"Type in nije laachnamme",layerHasThatName:"Laach hat dy namme al",QmoveElemsToLayer:"Selektearre ûnderdielen ferplaatse nei '%s'?",QwantToClear:"Ôfbielding leechmeitsje? Dit sil ek de skiednis fuortsmite!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Der wiene flaters yn de SVG-boarne.\nWeromgean nei foarige SVG-boarne?",QignoreSourceChanges:"Feroarings yn SVG-boarne negeare?",featNotSupported:"Funksje wurdt net ûndersteund",enterNewImgURL:"Jou de nije URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s'...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),lH=Object.freeze({__proto__:null,default:{lang:"ga",dir:"ltr",common:{ok:"Sábháil",cancel:"Cealaigh",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Cliceáil chun athrú a líonadh dath, aistriú-cliceáil chun dath a athrú stróc",zoom_level:"Athraigh súmáil leibhéal",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Athraigh an dath a líonadh",stroke_color:"Dath stróc Athrú",stroke_style:"Athraigh an stíl Fleasc stróc",stroke_width:"Leithead stróc Athrú",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Uillinn rothlaithe Athrú",blur:"Change gaussian blur value",opacity:"Athraigh roghnaithe teimhneacht mír",circle_cx:"Athraigh an ciorcal a chomhordú CX",circle_cy:"Athraigh an ciorcal a chomhordú ga",circle_r:"Athraigh an ciorcal's ga",ellipse_cx:"Athraigh Éilips's CX a chomhordú",ellipse_cy:"Athraigh an Éilips a chomhordú ga",ellipse_rx:"Éilips Athraigh an gha x",ellipse_ry:"Éilips Athraigh an gha y",line_x1:"Athraigh an líne tosaigh a chomhordú x",line_x2:"Athraigh an líne deireadh x chomhordú",line_y1:"Athraigh an líne tosaigh a chomhordú y",line_y2:"Athrú ar líne deireadh y chomhordú",rect_height:"Airde dronuilleog Athrú",rect_width:"Leithead dronuilleog Athrú",corner_radius:"Athraigh Dronuilleog Cúinne na Ga",image_width:"Leithead íomhá Athrú",image_height:"Airde íomhá Athrú",image_url:"Athraigh an URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Inneachar Athraigh téacs",font_family:"Athraigh an Cló Teaghlaigh",font_size:"Athraigh Clómhéid",bold:"Trom Téacs",italic:"Iodálach Téacs",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Dath cúlra Athraigh / teimhneacht",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Laghdaigh do gach ábhar",fit_to_canvas:"Laghdaigh ar chanbhás",fit_to_layer_content:"Laghdaigh shraith ábhar a",fit_to_sel:"Laghdaigh a roghnú",align_relative_to:"Ailínigh i gcomparáid leis ...",relativeTo:"i gcomparáid leis:",page:"leathanach",largest_object:"réad is mó",selected_objects:"réada tofa",smallest_object:"lú réad",new_doc:"Íomhá Nua",open_doc:"Íomhá Oscailte",export_img:"Export",save_doc:"Sábháil Íomhá",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Cineál Bun",align_center:"Ailínigh sa Lár",align_left:"Ailínigh ar Chlé",align_middle:"Cineál Middle",align_right:"Ailínigh ar Dheis",align_top:"Cineál Barr",mode_select:"Roghnaigh Uirlis",mode_fhpath:"Phionsail Uirlis",mode_line:"Uirlis Líne",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Saor Hand Dronuilleog",mode_ellipse:"Éilips",mode_circle:"Ciorcal",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Téacs Uirlis",mode_image:"Íomhá Uirlis",mode_zoom:"Zúmáil Uirlis",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Cealaigh",redo:"Athdhéan",tool_source:"Cuir Foinse",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Eilimintí Grúpa",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Eilimintí Díghrúpáil",docprops:"Doiciméad Airíonna",editor_homepage:"SVG-Edit Home Page",move_bottom:"Téigh go Bun",move_top:"Téigh go Barr",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Sábháil",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Scrios Sraith",move_down:"Bog Sraith Síos",new:"Sraith Nua",rename:"Athainmnigh Sraith",move_up:"Bog Sraith Suas",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Roghnaigh réamhshainithe:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),cH=Object.freeze({__proto__:null,default:{lang:"gl",dir:"ltr",common:{ok:"Gardar",cancel:"Cancelar",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Preme aquí para cambiar a cor de recheo, Shift-clic para cambiar a cor do curso",zoom_level:"Cambiar o nivel de zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Cambia-la cor de recheo",stroke_color:"Cambiar a cor do curso",stroke_style:"Modifica o estilo do trazo do curso",stroke_width:"Cambiar o ancho do curso",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Cambiar o ángulo de xiro",blur:"Change gaussian blur value",opacity:"Cambia a opacidade elemento seleccionado",circle_cx:"Cx Cambiar círculo de coordenadas",circle_cy:"Círculo Cambio cy coordinar",circle_r:"Cambiar círculo de raio",ellipse_cx:"Cambiar elipse cx coordinar",ellipse_cy:"Elipse Cambio cy coordinar",ellipse_rx:"Raios X Change elipse",ellipse_ry:"Radio y Change elipse",line_x1:"Cambie a liña de partida coordenada x",line_x2:"Cambie a liña acaba coordenada x",line_y1:"Cambio na liña do recurso coordinada y",line_y2:"Salto de liña acaba coordinada y",rect_height:"Cambiar altura do rectángulo",rect_width:"Cambiar a largo rectángulo",corner_radius:"Cambiar Corner Rectangle Radius",image_width:"Cambiar o ancho da imaxe",image_height:"Cambiar altura da imaxe",image_url:"Cambiar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Cambiar o contido de texto",font_family:"Cambiar fonte Familia",font_size:"Mudar tamaño de letra",bold:"Bold Text",italic:"Texto en cursiva",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mudar a cor de fondo / Opacidade",connector_no_arrow:"No arrow",fitToContent:"Axustar ó contido",fit_to_all:"Axustar a todo o contido",fit_to_canvas:"Axustar a pantalla",fit_to_layer_content:"Axustar o contido da capa de",fit_to_sel:"Axustar a selección",align_relative_to:"Aliñar en relación a ...",relativeTo:"en relación ao:",page:"Portada",largest_object:"maior obxecto",selected_objects:"obxectos elixidos",smallest_object:"menor obxecto",new_doc:"Nova Imaxe",open_doc:"Abrir Imaxe",export_img:"Export",save_doc:"Gardar Imaxe",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align bottom",align_center:"Centrar",align_left:"Aliñar á Esquerda",align_middle:"Aliñar Medio",align_right:"Aliñar á Dereita",align_top:"Align Top",mode_select:"Seleccionar a ferramenta",mode_fhpath:"Ferramenta Lapis",mode_line:"Ferramenta Liña",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Ferramenta de Texto",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Desfacer",redo:"Volver",tool_source:"Fonte Editar",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementos do grupo",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elementos Desagrupadas",docprops:"Propriedades do Documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move a Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Gardar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move capa inferior",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Seleccione por defecto:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),uH=Object.freeze({__proto__:null,default:{lang:"he",dir:"rtl",common:{ok:"לשמור",cancel:"ביטול",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"לחץ כדי לשנות צבע מילוי, לחץ על Shift-לשנות צבע שבץ",zoom_level:"שינוי גודל תצוגה",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"שינוי צבע מילוי",stroke_color:"שינוי צבע שבץ",stroke_style:"דש שבץ שינוי סגנון",stroke_width:"שינוי רוחב שבץ",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"שינוי זווית הסיבוב",blur:"Change gaussian blur value",opacity:"שינוי הפריט הנבחר אטימות",circle_cx:"CX מעגל של שנה לתאם",circle_cy:"מעגל שנה של cy לתאם",circle_r:"מעגל שנה של רדיוס",ellipse_cx:"שינוי של אליפסה CX לתאם",ellipse_cy:"אליפסה שינוי של cy לתאם",ellipse_rx:"אליפסה שינוי של רדיוס x",ellipse_ry:"אליפסה שינוי של Y רדיוס",line_x1:"שינוי קו ההתחלה של x לתאם",line_x2:"שינוי קו הסיום של x לתאם",line_y1:"שינוי קו ההתחלה של Y לתאם",line_y2:"שינוי קו הסיום של Y לתאם",rect_height:"שינוי גובה המלבן",rect_width:"שינוי רוחב המלבן",corner_radius:"לשנות מלבן פינת רדיוס",image_width:"שינוי רוחב התמונה",image_height:"שינוי גובה התמונה",image_url:"שינוי כתובת",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"שינוי תוכן טקסט",font_family:"שינוי גופן משפחה",font_size:"שנה גודל גופן",bold:"טקסט מודגש",italic:"טקסט נטוי",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"שנה את צבע הרקע / אטימות",connector_no_arrow:"No arrow",fitToContent:"התאם תוכן",fit_to_all:"התאם התכנים",fit_to_canvas:"התאם בד",fit_to_layer_content:"מתאים לתוכן שכבת",fit_to_sel:"התאם הבחירה",align_relative_to:"יישור ביחס ...",relativeTo:"יחסית:",page:"דף",largest_object:"האובייקט הגדול",selected_objects:"elected objects",smallest_object:"הקטן אובייקט",new_doc:"תמונה חדשה",open_doc:"פתח תמונה",export_img:"Export",save_doc:"שמור תמונה",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"יישור תחתון",align_center:"ישור לאמצע",align_left:"יישור לשמאל",align_middle:"יישור התיכון",align_right:"יישור לימין",align_top:"יישור למעלה",mode_select:"Select Tool",mode_fhpath:"כלי העיפרון",mode_line:"כלי הקו",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand מלבן",mode_ellipse:"אליפסה",mode_circle:"Circle",mode_fhellipse:"Free-Hand אליפסה",mode_path:"Path Tool",mode_text:"כלי טקסט",mode_image:"כלי תמונה",mode_zoom:"זום כלי",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"בטל",redo:"בצע שוב",tool_source:"מקור ערוך",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"אלמנטים הקבוצה",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"אלמנטים פרק קבוצה",docprops:"מאפייני מסמך",editor_homepage:"SVG-Edit Home Page",move_bottom:"הזז למטה",move_top:"עבור לראש הדף",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"לשמור",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"מחיקת שכבה",move_down:"הזז למטה שכבה",new:"שכבהחדשה",rename:"שינוי שם שכבה",move_up:"העבר שכבה Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"בחר מוגדרים מראש:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),dH=Object.freeze({__proto__:null,default:{lang:"hi",dir:"ltr",common:{ok:"बचाना",cancel:"रद्द करें",key_backspace:"बैकस्पेस",key_del:"हटायें",key_down:"नीचे",key_up:"ऊपर",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"रंग बदलने पर क्लिक करें, बदलाव भरने के क्लिक करने के लिए स्ट्रोक का रंग बदलने के लिए",zoom_level:"बदलें स्तर ज़ूम",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"बदलें का रंग भरना",stroke_color:"बदलें स्ट्रोक रंग",stroke_style:"बदलें स्ट्रोक डेश शैली",stroke_width:"बदलें स्ट्रोक चौड़ाई",pos_x:"X समकक्ष बदलें ",pos_y:"Y समकक्ष बदलें",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"बदलें रोटेशन कोण",blur:"Change gaussian blur value",opacity:"पारदर्शिता बदलें",circle_cx:"बदल रहा है चक्र cx समन्वय",circle_cy:"परिवर्तन चक्र cy समन्वय है",circle_r:"बदल रहा है चक्र त्रिज्या",ellipse_cx:"बदलें दीर्घवृत्त है cx समन्वय",ellipse_cy:"बदलें दीर्घवृत्त cy समन्वय है",ellipse_rx:"बदल रहा है दीर्घवृत्त x त्रिज्या",ellipse_ry:"बदल रहा है दीर्घवृत्त y त्रिज्या",line_x1:"बदल रहा है लाइन x समन्वय शुरू",line_x2:"बदल रहा है लाइन x समन्वय समाप्त",line_y1:"बदलें रेखा y शुरू हो रहा है समन्वय",line_y2:"बदलें रेखा y अंत है समन्वय",rect_height:"बदलें आयत ऊंचाई",rect_width:"बदलें आयत चौड़ाई",corner_radius:"बदलें आयत कॉर्नर त्रिज्या",image_width:"बदलें छवि चौड़ाई",image_height:"बदलें छवि ऊँचाई",image_url:"बदलें यूआरएल",node_x:"नोड का x समकक्ष बदलें",node_y:"नोड का y समकक्ष बदलें",seg_type:"वर्ग प्रकार बदलें",straight_segments:"सीधे वर्ग",curve_segments:"घुमाव",text_contents:"बदलें पाठ सामग्री",font_family:"बदलें फ़ॉन्ट परिवार",font_size:"फ़ॉन्ट का आकार बदलें",bold:"मोटा पाठ",italic:"इटैलिक पाठ",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"पृष्ठभूमि का रंग बदल / अस्पष्टता",connector_no_arrow:"No arrow",fitToContent:"सामग्री के लिए फिट",fit_to_all:"सभी सामग्री के लिए फिट",fit_to_canvas:"फिट कैनवास को",fit_to_layer_content:"फिट परत सामग्री के लिए",fit_to_sel:"चयन के लिए फिट",align_relative_to:"संरेखित करें रिश्तेदार को ...",relativeTo:"रिश्तेदार को:",page:"पृष्ठ",largest_object:"सबसे बड़ी वस्तु",selected_objects:"निर्वाचित वस्तुओं",smallest_object:"छोटी से छोटी वस्तु",new_doc:"नई छवि",open_doc:"छवि खोलें",export_img:"Export",save_doc:"सहेजें छवि",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"तलमेंपंक्तिबद्धकरें",align_center:"मध्य में समंजित करें",align_left:" पंक्तिबद्ध करें",align_middle:"मध्य संरेखित करें",align_right:"दायाँपंक्तिबद्धकरें",align_top:"शीर्षमेंपंक्तिबद्धकरें",mode_select:"उपकरण चुनें",mode_fhpath:"पेंसिल उपकरण",mode_line:"लाइन उपकरण",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"नि: शुल्क हाथ आयत",mode_ellipse:"दीर्घवृत्त",mode_circle:"वृत्त",mode_fhellipse:"नि: शुल्क हाथ दीर्घवृत्त",mode_path:"Path Tool",mode_text:"पाठ उपकरण",mode_image:"छवि उपकरण",mode_zoom:"ज़ूम उपकरण",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"पूर्ववत करें",redo:"फिर से करें",tool_source:"स्रोत में बदलाव करें",wireframe_mode:"रूपरेखा मोड",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"समूह तत्वों",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"पथ में बदलें",reorient_path:"पथ को नई दिशा दें",ungroup:"अंश को समूह से अलग करें",docprops:"दस्तावेज़ गुण",editor_homepage:"SVG-Edit Home Page",move_bottom:"नीचे ले जाएँ",move_top:"ऊपर ले जाएँ",node_clone:"नोड क्लोन",node_delete:"नोड हटायें",node_link:"कड़ी नियंत्रण बिंदु",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"बचाना",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"परत",layers:"Layers",del:"परत हटाएँ",move_down:"परत नीचे ले जाएँ",new:"नई परत",rename:"परत का नाम बदलें",move_up:"परत ऊपर ले जाएँ",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"अंश को ले जाएँ:",move_selected:"चयनित अंश को दूसरी परत पर ले जाएँ"},config:{image_props:"छवि के गुण",doc_title:"शीर्षक",doc_dims:"कैनवास आयाम",included_images:"शामिल छवियाँ",image_opt_embed:"एम्बेड डेटा (स्थानीय फ़ाइलें)",image_opt_ref:"फाइल के संदर्भ का प्रयोग",editor_prefs:"संपादक वरीयताएँ",icon_size:"चिह्न का आकार",language:"भाषा",background:"संपादक पृष्ठभूमि",editor_img_url:"Image URL",editor_bg_note:"नोट: पृष्ठभूमि छवि के साथ नहीं बचायी जाएगी",icon_large:"बड़ा",icon_medium:"मध्यम",icon_small:"छोटा",icon_xlarge:"बहुत बड़ा",select_predefined:"चुनें पूर्वनिर्धारित:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"अमान्य मूल्य",noContentToFitTo:"कोई सामग्री फिट करने के लिए उपलब्ध नहीं",dupeLayerName:"इस नाम कि परत पहले से मौजूद है !",enterUniqueLayerName:"कृपया परत का एक अद्वितीय नाम डालें",enterNewLayerName:"कृपया परत का एक नया नाम डालें",layerHasThatName:"परत का पहले से ही यही नाम है",QmoveElemsToLayer:"चयनित अंश को परत '%s' पर ले जाएँ ?",QwantToClear:"क्या आप छवि साफ़ करना चाहते हैं?\nयह आपके उन्डू इतिहास को भी मिटा देगा!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"आपके एस.वी.जी. स्रोत में त्रुटियों थी.\nक्या आप मूल एस.वी.जी स्रोत पर वापिस जाना चाहते हैं?",QignoreSourceChanges:"एसवीजी स्रोत से लाये बदलावों को ध्यान न दें?",featNotSupported:"सुविधा असमर्थित है",enterNewImgURL:"नई छवि URL दर्ज करें",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),pH=Object.freeze({__proto__:null,default:{lang:"hr",dir:"ltr",common:{ok:"Spremiti",cancel:"Odustani",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Kliknite promijeniti boju ispune, shift-click to promijeniti boju moždanog udara",zoom_level:"Promjena razine zumiranja",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Promjena boje ispune",stroke_color:"Promjena boje moždani udar",stroke_style:"Promijeni stroke crtica stil",stroke_width:"Promjena širine moždani udar",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Promijeni rotation angle",blur:"Change gaussian blur value",opacity:"Promjena odabrane stavke neprozirnost",circle_cx:"Promjena krug's CX koordinirati",circle_cy:"Cy Promijeni krug je koordinirati",circle_r:"Promjena krug je radijusa",ellipse_cx:"Promjena elipsa's CX koordinirati",ellipse_cy:"Cy Promijeni elipsa je koordinirati",ellipse_rx:"Promijeniti elipsa's x polumjer",ellipse_ry:"Promjena elipsa's y polumjer",line_x1:"Promijeni linija je početak x koordinatu",line_x2:"Promjena linije završetak x koordinatu",line_y1:"Promijeni linija je početak y koordinatu",line_y2:"Promjena linije završetak y koordinatu",rect_height:"Promijeni pravokutnik visine",rect_width:"Promijeni pravokutnik širine",corner_radius:"Promijeni Pravokutnik Corner Radius",image_width:"Promijeni sliku širine",image_height:"Promijeni sliku visina",image_url:"Promijeni URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Promjena sadržaja teksta",font_family:"Promjena fontova",font_size:"Change font size",bold:"Podebljani tekst",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Promijeni boju pozadine / neprozirnost",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Prilagodi na sve sadržaje",fit_to_canvas:"Prilagodi na platnu",fit_to_layer_content:"Prilagodi sloj sadržaj",fit_to_sel:"Prilagodi odabir",align_relative_to:"Poravnaj u odnosu na ...",relativeTo:"u odnosu na:",page:"stranica",largest_object:"najveći objekt",selected_objects:"izabrani objekti",smallest_object:"najmanji objekt",new_doc:"Nove slike",open_doc:"Otvori sliku",export_img:"Export",save_doc:"Spremanje slike",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Poravnaj dolje",align_center:"Centriraj",align_left:"Poravnaj lijevo",align_middle:"Poravnaj Srednji",align_right:"Poravnaj desno",align_top:"Poravnaj Top",mode_select:"Odaberite alat",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Pravokutnik",mode_ellipse:"Elipsa",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Tekst Alat",mode_image:"Image Tool",mode_zoom:"Alat za zumiranje",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Poništi",redo:"Redo",tool_source:"Uredi Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grupa Elementi",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Razgrupiranje Elementi",docprops:"Svojstva dokumenta",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Pomakni na vrh",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Spremiti",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Brisanje sloja",move_down:"Move Layer Down",new:"New Layer",rename:"Preimenuj Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefinirane:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),hH=Object.freeze({__proto__:null,default:{lang:"hu",dir:"ltr",common:{ok:"Ment",cancel:"Szakítani",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Kattints ide a változások töltse szín, shift-click változtatni stroke color",zoom_level:"Change nagyítási",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change töltse color",stroke_color:"Change stroke color",stroke_style:"Change stroke kötőjel style",stroke_width:"Change stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Váltás forgás szög",blur:"Change gaussian blur value",opacity:"A kijelölt elem opacity",circle_cx:"Change kör CX koordináta",circle_cy:"Change kör cy koordináta",circle_r:"Change kör sugara",ellipse_cx:"Change ellipszis's CX koordináta",ellipse_cy:"Change ellipszis's cy koordináta",ellipse_rx:"Change ellipszis's x sugarú",ellipse_ry:"Change ellipszis's y sugara",line_x1:"A sor kezd x koordináta",line_x2:"A sor vége az x koordináta",line_y1:"A sor kezd y koordináta",line_y2:"A sor vége az y koordináta",rect_height:"Change téglalap magassága",rect_width:"Change téglalap szélessége",corner_radius:"Change téglalap sarok sugara",image_width:"Change kép szélessége",image_height:"Kép módosítása height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"A szöveg tartalma",font_family:"Change Betűcsalád",font_size:"Change font size",bold:"Félkövér szöveg",italic:"Dőlt szöveg",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color / homályosság",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Illeszkednek az összes tartalom",fit_to_canvas:"Igazítás a vászonra",fit_to_layer_content:"Igazítás a réteg tartalma",fit_to_sel:"Igazítás a kiválasztási",align_relative_to:"Képest Igazítás ...",relativeTo:"relatív hogy:",page:"Page",largest_object:"legnagyobb objektum",selected_objects:"választott tárgyak",smallest_object:"legkisebb objektum",new_doc:"Új kép",open_doc:"Kép megnyitása",export_img:"Export",save_doc:"Kép mentése más",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Alulra igazítás",align_center:"Középre igazítás",align_left:"Balra igazítás",align_middle:"Közép-align",align_right:"Jobbra igazítás",align_top:"Align Top",mode_select:"Válassza ki az eszközt",mode_fhpath:"Ceruza eszköz",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand téglalap",mode_ellipse:"Ellipszisszelet",mode_circle:"Körbe",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Szöveg eszköz",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Visszavon",redo:"Megismétléséhez",tool_source:"Szerkesztés Forrás",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Csoport elemei",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Szétbont elemei",docprops:"Dokumentum tulajdonságai",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mozgatás lefelé",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Ment",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Réteg törlése",move_down:"Mozgatása lefelé",new:"Új réteg",rename:"Réteg átnevezése",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Válassza ki előre definiált:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),gH=Object.freeze({__proto__:null,default:{lang:"hy",dir:"ltr",common:{ok:"Save",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"elected objects",smallest_object:"smallest object",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),fH=Object.freeze({__proto__:null,default:{lang:"id",dir:"ltr",common:{ok:"Simpan",cancel:"Batal",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik untuk mengubah warna mengisi, shift-klik untuk mengubah warna stroke",zoom_level:"Mengubah tingkat pembesaran",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Ubah warna mengisi",stroke_color:"Ubah warna stroke",stroke_style:"Ubah gaya dash stroke",stroke_width:"Ubah stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Ubah sudut rotasi",blur:"Change gaussian blur value",opacity:"Mengubah item yang dipilih keburaman",circle_cx:"Mengubah koordinat lingkaran cx",circle_cy:"Mengubah koordinat cy lingkaran",circle_r:"Ubah jari-jari lingkaran",ellipse_cx:"Ubah elips's cx koordinat",ellipse_cy:"Ubah elips's cy koordinat",ellipse_rx:"Ubah elips's x jari-jari",ellipse_ry:"Ubah elips's y jari-jari",line_x1:"Ubah baris mulai x koordinat",line_x2:"Ubah baris's Berakhir x koordinat",line_y1:"Ubah baris mulai y koordinat",line_y2:"Ubah baris di tiap akhir y koordinat",rect_height:"Perubahan tinggi persegi panjang",rect_width:"Ubah persegi panjang lebar",corner_radius:"Ubah Corner Rectangle Radius",image_width:"Ubah Lebar gambar",image_height:"Tinggi gambar Perubahan",image_url:"Ubah URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Ubah isi teks",font_family:"Ubah Font Keluarga",font_size:"Ubah Ukuran Font",bold:"Bold Teks",italic:"Italic Teks",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mengubah warna latar belakang / keburaman",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Cocok untuk semua konten",fit_to_canvas:"Muat kanvas",fit_to_layer_content:"Muat konten lapisan",fit_to_sel:"Fit seleksi",align_relative_to:"Rata relatif ...",relativeTo:"relatif:",page:"Halaman",largest_object:"objek terbesar",selected_objects:"objek terpilih",smallest_object:"objek terkecil",new_doc:"Gambar Baru",open_doc:"Membuka Image",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Rata Bottom",align_center:"Rata Tengah",align_left:"Rata Kiri",align_middle:"Rata Tengah",align_right:"Rata Kanan",align_top:"Rata Top",mode_select:"Pilih Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Persegi Panjang",mode_ellipse:"Ellipse",mode_circle:"Lingkaran",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Teks Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Kelompok Elemen",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elemen",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Pindah ke Bawah",move_top:"Pindahkan ke Atas",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Simpan",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Hapus Layer",move_down:"Pindahkan Layer Bawah",new:"New Layer",rename:"Rename Layer",move_up:"Pindahkan Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Pilih standar:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),AH=Object.freeze({__proto__:null,default:{lang:"is",dir:"ltr",common:{ok:"Vista",cancel:"Hætta",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Smelltu hér til að breyta fylla lit, Shift-smelltu til að breyta högg lit",zoom_level:"Breyta Stækkunarstig",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Breyta fylla color",stroke_color:"Breyta heilablķđfall color",stroke_style:"Breyta heilablķđfall þjóta stíl",stroke_width:"Breyta heilablķđfall width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Breyting snúningur horn",blur:"Change gaussian blur value",opacity:"Breyta valin atriði opacity",circle_cx:"Cx Breyta hring er að samræma",circle_cy:"Breyta hring's cy samræma",circle_r:"Radíus Breyta hringsins er",ellipse_cx:"Breyta sporbaug's cx samræma",ellipse_cy:"Breyta sporbaug's cy samræma",ellipse_rx:"X radíus Breyta sporbaug's",ellipse_ry:"Y radíus Breyta sporbaug's",line_x1:"Breyta lína í byrjun x samræma",line_x2:"Breyta lína's Ending x samræma",line_y1:"Breyta lína í byrjun y samræma",line_y2:"Breyta lína er endir y samræma",rect_height:"Breyta rétthyrningur hæð",rect_width:"Skipta rétthyrningur width",corner_radius:"Breyta rétthyrningur Corner Radíus",image_width:"Breyta mynd width",image_height:"Breyta mynd hæð",image_url:"Breyta URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Breyta texta innihald",font_family:"Change Leturfjölskylda",font_size:"Breyta leturstærð",bold:"Bold Text",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Breyta bakgrunnslit / opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Laga til efni",fit_to_canvas:"Fit á striga",fit_to_layer_content:"Laga til lag efni",fit_to_sel:"Fit til val",align_relative_to:"Jafna miðað við ...",relativeTo:"hlutfallslegt til:",page:"síðu",largest_object:"stærsti hlutinn",selected_objects:"kjörinn hlutir",smallest_object:"lítill hluti",new_doc:"New Image",open_doc:"Opna mynd",export_img:"Export",save_doc:"Spara Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Jafna Bottom",align_center:"Jafna Center",align_left:"Vinstri jöfnun",align_middle:"Jafna Mið",align_right:"Hægri jöfnun",align_top:"Jöfnun Top",mode_select:"Veldu Tól",mode_fhpath:"Blýantur Tól",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand rétthyrningur",mode_ellipse:"Sporbaugur",mode_circle:"Circle",mode_fhellipse:"Free-Hand Sporbaugur",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Mynd Tól",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Hætta",redo:"Endurtaka",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Færa Bottom",move_top:"Fara efst á síðu",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Vista",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Eyða Lag",move_down:"Færa Layer Down",new:"Lag",rename:"Endurnefna Lag",move_up:"Færa Lag Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Veldu predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),mH=Object.freeze({__proto__:null,default:{lang:"it",dir:"ltr",common:{ok:"Salva",cancel:"Annulla",key_backspace:"backspace",key_del:"Canc",key_down:"giù",key_up:"su",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Mostra/nascondi strumenti per il tratto",palette_info:"Fare clic per cambiare il colore di riempimento, shift-click per cambiare colore del tratto",zoom_level:"Cambia il livello di zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identifica l'elemento",fill_color:"Cambia il colore di riempimento",stroke_color:"Cambia il colore del tratto",stroke_style:"Cambia lo stile del tratto",stroke_width:"Cambia la larghezza del tratto",pos_x:"Modifica la coordinata x",pos_y:"Modifica la coordinata y",linecap_butt:"Inizio linea: Punto",linecap_round:"Inizio linea: Tondo",linecap_square:"Inizio linea: Quadrato",linejoin_bevel:"Giunzione: smussata",linejoin_miter:"Giunzione: spezzata",linejoin_round:"Giunzione: arrotondata",angle:"Cambia l'angolo di rotazione",blur:"Cambia l'intensità della sfocatura",opacity:"Cambia l'opacità dell'oggetto selezionato",circle_cx:"Cambia la coordinata Cx del cerchio",circle_cy:"Cambia la coordinata Cy del cerchio",circle_r:"Cambia il raggio del cerchio",ellipse_cx:"Cambia la coordinata Cx dell'ellisse",ellipse_cy:"Cambia la coordinata Cy dell'ellisse",ellipse_rx:"Cambia l'asse x dell'ellisse",ellipse_ry:"Cambia l'asse y dell'ellisse",line_x1:"Modifica la coordinata iniziale x della linea",line_x2:"Modifica la coordinata finale x della linea",line_y1:"Modifica la coordinata iniziale y della linea",line_y2:"Modifica la coordinata finale y della linea",rect_height:"Cambia l'altezza rettangolo",rect_width:"Cambia la larghezza rettangolo",corner_radius:"Cambia il raggio dell'angolo",image_width:"Cambia la larghezza dell'immagine",image_height:"Cambia l'altezza dell'immagine",image_url:"Cambia URL",node_x:"Modifica la coordinata x del nodo",node_y:"Modifica la coordinata y del nodo",seg_type:"Cambia il tipo di segmento",straight_segments:"Linea retta",curve_segments:"Curva",text_contents:"Cambia il contenuto del testo",font_family:"Cambia il tipo di Font",font_size:"Modifica dimensione carattere",bold:"Grassetto",italic:"Corsivo",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Menù principale",bkgnd_color_opac:"Cambia colore/opacità dello sfondo",connector_no_arrow:"No freccia",fitToContent:"Adatta al contenuto",fit_to_all:"Adatta a tutti i contenuti",fit_to_canvas:"Adatta all'area di disegno",fit_to_layer_content:"Adatta al contenuto del livello",fit_to_sel:"Adatta alla selezione",align_relative_to:"Allineati a ...",relativeTo:"Rispetto a:",page:"Pagina",largest_object:"Oggetto più grande",selected_objects:"Oggetti selezionati",smallest_object:"Oggetto più piccolo",new_doc:"Nuova immagine",open_doc:"Apri immagine",export_img:"Export",save_doc:"Salva",import_doc:"Importa SVG",align_to_page:"Allinea elementi alla pagina",align_bottom:"Allinea in basso",align_center:"Allinea al centro",align_left:"Allinea a sinistra",align_middle:"Allinea al centro",align_right:"Allinea a destra",align_top:"Allinea in alto",mode_select:"Seleziona",mode_fhpath:"Matita",mode_line:"Linea",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Rettangolo a mano libera",mode_ellipse:"Ellisse",mode_circle:"Cerchio",mode_fhellipse:"Ellisse a mano libera",mode_path:"Spezzata",mode_text:"Testo",mode_image:"Immagine",mode_zoom:"Zoom",no_embed:"NOTA: L'immagine non può essere incorporata: dipenderà dal percorso assoluto per essere vista",undo:"Annulla",redo:"Rifai",tool_source:"Modifica sorgente",wireframe_mode:"Contorno",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Raggruppa elementi",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Converti in tracciato",reorient_path:"Riallinea",ungroup:"Separa gli elementi",docprops:"Proprietà del documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Sposta in fondo",move_top:"Sposta in cima",node_clone:"Clona nodo",node_delete:"Elimina nodo",node_link:"Collegamento tra punti di controllo",add_subpath:"Aggiungi sotto-percorso",openclose_path:"Apri/chiudi spezzata",source_save:"Salva",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Livello",layers:"Layers",del:"Elimina il livello",move_down:"Sposta indietro il livello",new:"Nuovo livello",rename:"Rinomina il livello",move_up:"Sposta avanti il livello",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Sposta verso:",move_selected:"Sposta gli elementi in un diverso livello"},config:{image_props:"Proprietà Immagine",doc_title:"Titolo",doc_dims:"Dimensioni dell'area di disegno",included_images:"Immagini incluse",image_opt_embed:"Incorpora dati (file locali)",image_opt_ref:"Usa l'identificativo di riferimento",editor_prefs:"Preferenze",icon_size:"Dimensione Icona",language:"Lingua",background:"Sfondo dell'editor",editor_img_url:"Image URL",editor_bg_note:"Nota: Lo sfondo non verrà salvato con l'immagine.",icon_large:"Grande",icon_medium:"Medio",icon_small:"Piccolo",icon_xlarge:"Molto grande",select_predefined:"Selezioni predefinite:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Valore assegnato non valido",noContentToFitTo:"Non c'è contenuto cui adeguarsi",dupeLayerName:"C'è già un livello con questo nome!",enterUniqueLayerName:"Assegna un diverso nome a ciascun livello, grazie!",enterNewLayerName:"Assegna un nome al livello",layerHasThatName:"Un livello ha già questo nome",QmoveElemsToLayer:"Sposta gli elementi selezionali al livello '%s'?",QwantToClear:"Vuoi cancellare il disegno?\nVerrà eliminato anche lo storico delle modifiche!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Ci sono errori nel codice sorgente SVG.\nRitorno al codice originale?",QignoreSourceChanges:"Ignoro i cambiamenti nel sorgente SVG?",featNotSupported:"Caratteristica non supportata",enterNewImgURL:"Scrivi un nuovo URL per l'immagine",defsFailOnSave:"NOTA: A causa dlle caratteristiche del tuo browser, l'immagine potrà apparire errata (senza elementi o gradazioni) finché non sarà salvata.",loadingImage:"Sto caricando l'immagine. attendere prego...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Nota le seguenti particolarità: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),vH=Object.freeze({__proto__:null,default:{lang:"ja",dir:"ltr",common:{ok:"OK",cancel:"キャンセル",key_backspace:"backspace",key_del:"削除",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"クリックで塗りの色を選択、Shift+クリックで線の色を選択",zoom_level:"ズーム倍率の変更",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"塗りの色を変更",stroke_color:"線の色を変更",stroke_style:"線種の変更",stroke_width:"線幅の変更",pos_x:"X座標を変更",pos_y:"Y座標を変更",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"回転角の変更",blur:"Change gaussian blur value",opacity:"不透明度",circle_cx:"円の中心を変更(X座標)",circle_cy:"円の中心を変更(Y座標)",circle_r:"変更円の半径",ellipse_cx:"楕円の中心を変更(X座標)",ellipse_cy:"楕円の中心を変更(Y座標)",ellipse_rx:"楕円の半径を変更(X座標)",ellipse_ry:"楕円の半径を変更(Y座標)",line_x1:"開始X座標",line_x2:"終了X座標",line_y1:"開始Y座標",line_y2:"終了Y座標",rect_height:"長方形の高さを変更",rect_width:"長方形の幅を変更",corner_radius:"長方形の角の半径を変更",image_width:"画像の幅を変更",image_height:"画像の高さを変更",image_url:"URLを変更",node_x:"ノードのX座標を変更",node_y:"ノードのY座標を変更",seg_type:"線分の種類を変更",straight_segments:"直線",curve_segments:"カーブ",text_contents:"テキストの内容の変更",font_family:"フォントファミリーの変更",font_size:"文字サイズの変更",bold:"太字",italic:"イタリック体",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"背景色/不透明度の変更",connector_no_arrow:"No arrow",fitToContent:"コンテンツに合わせる",fit_to_all:"すべてのコンテンツに合わせる",fit_to_canvas:"キャンバスに合わせる",fit_to_layer_content:"レイヤー上のコンテンツに合わせる",fit_to_sel:"選択対象に合わせる",align_relative_to:"揃える",relativeTo:"相対:",page:"ページ",largest_object:"最大のオブジェクト",selected_objects:"選択オブジェクト",smallest_object:"最小のオブジェクト",new_doc:"新規イメージ",open_doc:"イメージを開く",export_img:"Export",save_doc:"画像を保存",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"下揃え",align_center:"中央揃え",align_left:"左揃え",align_middle:"中央揃え",align_right:"右揃え",align_top:"上揃え",mode_select:"選択ツール",mode_fhpath:"鉛筆ツール",mode_line:"直線ツール",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"フリーハンド長方形",mode_ellipse:"楕円",mode_circle:"円",mode_fhellipse:"フリーハンド楕円",mode_path:"パスツール",mode_text:"テキストツール",mode_image:"イメージツール",mode_zoom:"ズームツール",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"元に戻す",redo:"やり直し",tool_source:"ソースの編集",wireframe_mode:"ワイヤーフレームで表示 [F]",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"グループ化",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"パスに変換",reorient_path:"現在の角度を0度とする",ungroup:"グループ化を解除",docprops:"文書のプロパティ",editor_homepage:"SVG-Edit Home Page",move_bottom:"奥に移動",move_top:"手前に移動",node_clone:"ノードを複製",node_delete:"ノードを削除",node_link:"制御点の接続",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"適用",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"レイヤ",layers:"Layers",del:"レイヤの削除",move_down:"レイヤを下へ移動",new:"新規レイヤ",rename:"レイヤの名前を変更",move_up:"レイヤを上へ移動",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"移動先レイヤ:",move_selected:"選択対象を別のレイヤに移動"},config:{image_props:"イメージの設定",doc_title:"タイトル",doc_dims:"キャンバスの大きさ",included_images:"挿入された画像の扱い",image_opt_embed:"SVGファイルに埋め込む",image_opt_ref:"画像を参照する",editor_prefs:"エディタの設定",icon_size:"アイコンの大きさ",language:"言語",background:"エディタの背景色",editor_img_url:"Image URL",editor_bg_note:"※背景色はファイルに保存されません。",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"デフォルト",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"無効な値が指定されています。",noContentToFitTo:"合わせる対象のコンテンツがありません。",dupeLayerName:"同名のレイヤーが既に存在します。",enterUniqueLayerName:"新規レイヤの一意な名前を入力してください。",enterNewLayerName:"レイヤの新しい名前を入力してください。",layerHasThatName:"既に同名が付いています。",QmoveElemsToLayer:"選択した要素をレイヤー '%s' に移動しますか?",QwantToClear:"キャンバスをクリアしますか?\nアンドゥ履歴も消去されます。",QwantToOpen:"新しいファイルを開きますか?\nアンドゥ履歴も消去されます。",QerrorsRevertToSource:"ソースにエラーがあります。\n元のソースに戻しますか?",QignoreSourceChanges:"ソースの変更を無視しますか?",featNotSupported:"機能はサポートされていません。",enterNewImgURL:"画像のURLを入力してください。",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),yH=Object.freeze({__proto__:null,default:{lang:"ko",dir:"ltr",common:{ok:"저장",cancel:"취소",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"색상을 클릭, 근무 시간 채우기 스트로크 색상을 변경하려면 변경하려면",zoom_level:"변경 수준으로 확대",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"채우기 색상 변경",stroke_color:"뇌졸중으로 색상 변경",stroke_style:"뇌졸중 변경 대시 스타일",stroke_width:"뇌졸중 너비 변경",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"회전 각도를 변경",blur:"Change gaussian blur value",opacity:"변경 항목을 선택 불투명도",circle_cx:"변경 동그라미 CX는 좌표",circle_cy:"동그라미 싸이 변경 조정할 수있어",circle_r:"변경 원의 반지름",ellipse_cx:"CX는 타원의 좌표 변경",ellipse_cy:"싸이 타원 변경 조정할 수있어",ellipse_rx:"변경 타원의 x 반지름",ellipse_ry:"변경 타원의 y를 반경",line_x1:"변경 라인의 X 좌표 시작",line_x2:"변경 라인의 X 좌표 결말",line_y1:"라인 변경 y를 시작 좌표",line_y2:"라인 변경 y를 결말의 좌표",rect_height:"사각형의 높이를 변경",rect_width:"사각형의 너비 변경",corner_radius:"변경 직사각형 코너 반경",image_width:"이미지 변경 폭",image_height:"이미지 높이 변경",image_url:"URL 변경",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"텍스트 변경 내용",font_family:"글꼴 변경 패밀리",font_size:"글꼴 크기 변경",bold:"굵은 텍스트",italic:"기울임꼴 텍스트",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"배경 색상 변경 / 투명도",connector_no_arrow:"No arrow",fitToContent:"맞춤 콘텐츠",fit_to_all:"맞춤 모든 콘텐츠에",fit_to_canvas:"맞춤 캔버스",fit_to_layer_content:"레이어에 맞게 콘텐츠",fit_to_sel:"맞춤 선택",align_relative_to:"정렬 상대적으로 ...",relativeTo:"상대:",page:"페이지",largest_object:"큰 개체",selected_objects:"당선 개체",smallest_object:"작은 개체",new_doc:"새 이미지",open_doc:"오픈 이미지",export_img:"Export",save_doc:"이미지 저장",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"히프 정렬",align_center:"정렬 센터",align_left:"왼쪽 정렬",align_middle:"중간 정렬",align_right:"오른쪽 맞춤",align_top:"정렬 탑",mode_select:"선택 도구",mode_fhpath:"연필 도구",mode_line:"선 도구",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"자유 핸드 직사각형",mode_ellipse:"타원",mode_circle:"동그라미",mode_fhellipse:"자유 핸드 타원",mode_path:"Path Tool",mode_text:"텍스트 도구",mode_image:"이미지 도구",mode_zoom:"줌 도구",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"취소",redo:"재실행",tool_source:"수정 소스",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"그룹 요소",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"그룹 해제 요소",docprops:"문서 속성",editor_homepage:"SVG-Edit Home Page",move_bottom:"아래로 이동",move_top:"상단으로 이동",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"저장",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"레이어 삭제",move_down:"레이어 아래로 이동",new:"새 레이어",rename:"레이어 이름 바꾸기",move_up:"레이어 위로 이동",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"미리 정의된 선택:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),_H=Object.freeze({__proto__:null,default:{lang:"lt",dir:"ltr",common:{ok:"Saugoti",cancel:"Atšaukti",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Spustelėkite norėdami keisti užpildo spalvą, perėjimo spustelėkite pakeisti insultas spalva",zoom_level:"Keisti mastelį",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Keisti užpildyti spalvos",stroke_color:"Keisti insultas spalva",stroke_style:"Keisti insultas brūkšnys stilius",stroke_width:"Keisti insultas plotis",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Keisti sukimosi kampas",blur:"Change gaussian blur value",opacity:"Pakeisti pasirinkto elemento neskaidrumo",circle_cx:"Keisti ratas's CX koordinuoti",circle_cy:"Keisti ratas's CY koordinuoti",circle_r:"Keisti savo apskritimo spindulys",ellipse_cx:"Keisti elipse's CX koordinuoti",ellipse_cy:"Keisti elipse's CY koordinuoti",ellipse_rx:"Keisti elipsė "X spindulys",ellipse_ry:"Keisti elipse Y spindulys",line_x1:"Keisti linijos nuo koordinačių x",line_x2:"Keisti linijos baigėsi x koordinuoti",line_y1:"Keisti linijos pradžios y koordinačių",line_y2:"Keisti linijos baigėsi y koordinačių",rect_height:"Keisti stačiakampio aukščio",rect_width:"Pakeisti stačiakampio plotis",corner_radius:"Keisti stačiakampis skyrelį Spindulys",image_width:"Keisti paveikslėlio plotis",image_height:"Keisti vaizdo aukštis",image_url:"Pakeisti URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Keisti teksto turinys",font_family:"Pakeistišriftą Šeima",font_size:"Change font size",bold:"Pusjuodis",italic:"Kursyvas",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Pakeisti fono spalvą / drumstumas",connector_no_arrow:"No arrow",fitToContent:"Talpinti turinys",fit_to_all:"Talpinti All content",fit_to_canvas:"Talpinti drobė",fit_to_layer_content:"Talpinti sluoksnis turinio",fit_to_sel:"Talpinti atrankos",align_relative_to:"Derinti palyginti ...",relativeTo:"palyginti:",page:"puslapis",largest_object:"didžiausias objektas",selected_objects:"išrinktas objektai",smallest_object:"mažiausias objektą",new_doc:"New Image",open_doc:"Atidaryti atvaizdą",export_img:"Export",save_doc:"Išsaugoti nuotrauką",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Lygiuoti apačioje",align_center:"Lygiuoti",align_left:"Lygiuoti kairėje",align_middle:"Suderinti Vidurio",align_right:"Lygiuoti dešinėje",align_top:"Lygiuoti viršų",mode_select:"Įrankis",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free Hand stačiakampis",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free Hand Elipsė",mode_path:"Path Tool",mode_text:"Tekstas Tool",mode_image:"Image Tool",mode_zoom:"Zoom Įrankį",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Atšaukti",redo:"Atstatyti",tool_source:"Taisyti Šaltinis",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementų grupės",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Išgrupuoti elementai",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Perkelti į apačią",move_top:"Perkelti į viršų",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Saugoti",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Ištrinti Layer",move_down:"Perkelti sluoksnį Žemyn",new:"New Layer",rename:"Pervadinti sluoksnį",move_up:"Perkelti sluoksnį Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Pasirinkite iš anksto:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),bH=Object.freeze({__proto__:null,default:{lang:"lv",dir:"ltr",common:{ok:"Glābt",cancel:"Atcelt",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Noklikšķiniet, lai mainītu aizpildījuma krāsu, shift-click to mainīt stroke krāsa",zoom_level:"Pārmaiņu mērogu",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change aizpildījuma krāsu",stroke_color:"Change stroke krāsa",stroke_style:"Maina stroke domuzīme stils",stroke_width:"Change stroke platums",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Mainīt griešanās leņķis",blur:"Change gaussian blur value",opacity:"Mainīt izvēlēto objektu necaurredzamība",circle_cx:"Maina aplis's CX koordinēt",circle_cy:"Pārmaiņu loks ir cy koordinēt",circle_r:"Pārmaiņu loks ir rādiuss",ellipse_cx:"Mainīt elipses's CX koordinēt",ellipse_cy:"Mainīt elipses's cy koordinēt",ellipse_rx:"Mainīt elipses's x rādiuss",ellipse_ry:"Mainīt elipses's y rādiuss",line_x1:"Mainīt līnijas sākas x koordinēt",line_x2:"Mainīt līnijas beigu x koordinēt",line_y1:"Mainīt līnijas sākas y koordinātu",line_y2:"Mainīt līnijas beigu y koordinātu",rect_height:"Change Taisnstūra augstums",rect_width:"Change taisnstūra platums",corner_radius:"Maina Taisnstūris Corner Rādiuss",image_width:"Mainīt attēla platumu",image_height:"Mainīt attēla augstums",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Mainītu teksta saturs",font_family:"Mainīt fonta Family",font_size:"Mainīt fonta izmēru",bold:"Bold Text",italic:"Kursīvs",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color / necaurredzamība",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit uz visu saturu",fit_to_canvas:"Ievietot audekls",fit_to_layer_content:"Ievietot slānis saturs",fit_to_sel:"Fit atlases",align_relative_to:"Līdzināt, salīdzinot ar ...",relativeTo:"salīdzinājumā ar:",page:"lapa",largest_object:"lielākais objekts",selected_objects:"ievēlēts objekti",smallest_object:"mazākais objekts",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Līdzināt Bottom",align_center:"Līdzināt uz centru",align_left:"Līdzināt pa kreisi",align_middle:"Līdzināt Middle",align_right:"Līdzināt pa labi",align_top:"Līdzināt Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Taisnstūris",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Atpogāt",redo:"Redo",tool_source:"Rediģēt Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grupa Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Atgrupēt Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Pārvietot uz leju",move_top:"Pārvietot uz augšu",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Glābt",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Dzēst Layer",move_down:"Pārvietot slāni uz leju",new:"New Layer",rename:"Pārdēvēt Layer",move_up:"Pārvietot slāni uz augšu",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Izvēlieties iepriekš:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),wH=Object.freeze({__proto__:null,default:{lang:"mk",dir:"ltr",common:{ok:"Зачувува",cancel:"Откажи",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Кликни за да внесете промени бојата, промена клик да се промени бојата удар",zoom_level:"Промена зум ниво",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Измени пополнете боја",stroke_color:"Промена боја на мозочен удар",stroke_style:"Промена удар цртичка стил",stroke_width:"Промена удар Ширина",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change ротација агол",blur:"Change gaussian blur value",opacity:"Промена избрани ставка непроѕирноста",circle_cx:"Промена круг на cx координира",circle_cy:"Промена круг's cy координираат",circle_r:"Промена на круг со радиус",ellipse_cx:"Промена елипса's cx координираат",ellipse_cy:"Промена на елипса cy координира",ellipse_rx:"Промена на елипса x радиус",ellipse_ry:"Промена на елипса у радиус",line_x1:"Промена линија почетна x координира",line_x2:"Промена линија завршува x координира",line_y1:"Промена линија координираат почетна y",line_y2:"Промена линија завршува y координира",rect_height:"Промена правоаголник височина",rect_width:"Промена правоаголник Ширина",corner_radius:"Промена правоаголник Corner Radius",image_width:"Промена Ширина на сликата",image_height:"Промена на слика височина",image_url:"Промена URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Промена текст содржина",font_family:"Смени фонт Фамилија",font_size:"Изменифонт Големина",bold:"Задебелен текст",italic:"Italic текст",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Смени позадина / непроѕирноста",connector_no_arrow:"No arrow",fitToContent:"Способен да Содржина",fit_to_all:"Способен да сите содржина",fit_to_canvas:"Побиране да платно",fit_to_layer_content:"Способен да слој содржина",fit_to_sel:"Способен да селекција",align_relative_to:"Порамни во поглед на ...",relativeTo:"во поглед на:",page:"страница",largest_object:"најголемиот објект",selected_objects:"избран објекти",smallest_object:"најмалата објект",new_doc:"Нови слики",open_doc:"Отвори слика",export_img:"Export",save_doc:"Зачувај слика",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Центрирано",align_left:"Порамни лево Порамни",align_middle:"Израмни Среден",align_right:"Порамни десно",align_top:"Израмни почетокот",mode_select:"Изберете ја алатката",mode_fhpath:"Алатка за молив",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Правоаголник слободна рака",mode_ellipse:"Елипса",mode_circle:"Круг",mode_fhellipse:"Free-Hand Елипса",mode_path:"Path Tool",mode_text:"Алатка за текст",mode_image:"Алатка за сликата",mode_zoom:"Алатка за зумирање",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Врати",redo:"Повтори",tool_source:"Уреди Извор",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група на елементи",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Елементи",docprops:"Својства на документот",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to bottom",move_top:"Поместување на почетокот",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Зачувува",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Избриши Слој",move_down:"Премести слој долу",new:"Нов слој",rename:"Преименувај слој",move_up:"Премести слој горе",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Изберете предефинирани:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),xH=Object.freeze({__proto__:null,default:{lang:"ms",dir:"ltr",common:{ok:"Simpan",cancel:"Batal",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik untuk menukar warna mengisi, shift-klik untuk menukar warna stroke",zoom_level:"Mengubah peringkat pembesaran",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Tukar Warna mengisi",stroke_color:"Tukar Warna stroke",stroke_style:"Tukar gaya dash stroke",stroke_width:"Tukar stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Namakan sudut putaran",blur:"Change gaussian blur value",opacity:"Mengubah item yang dipilih keburaman",circle_cx:"Mengubah koordinat bulatan cx",circle_cy:"Mengubah koordinat cy bulatan",circle_r:"Tukar jari-jari lingkaran",ellipse_cx:"Tukar elips's cx koordinat",ellipse_cy:"Tukar elips's cy koordinat",ellipse_rx:"Tukar elips's x jari-jari",ellipse_ry:"Tukar elips's y jari-jari",line_x1:"Ubah baris mulai x koordinat",line_x2:"Ubah baris's Berakhir x koordinat",line_y1:"Ubah baris mulai y koordinat",line_y2:"Ubah baris di tiap akhir y koordinat",rect_height:"Perubahan quality persegi panjang",rect_width:"Tukar persegi panjang lebar",corner_radius:"Tukar Corner Rectangle Radius",image_width:"Tukar Lebar imej",image_height:"Tinggi gambar Kaca",image_url:"Tukar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Tukar isi teks",font_family:"Tukar Font Keluarga",font_size:"Ubah Saiz Font",bold:"Bold Teks",italic:"Italic Teks",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mengubah warna latar belakang / keburaman",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Cocok untuk semua kandungan",fit_to_canvas:"Muat kanvas",fit_to_layer_content:"Muat kandungan lapisan",fit_to_sel:"Fit seleksi",align_relative_to:"Rata relatif ...",relativeTo:"relatif:",page:"Laman",largest_object:"objek terbesar",selected_objects:"objek terpilih",smallest_object:"objek terkecil",new_doc:"Imej Baru",open_doc:"Membuka Image",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Rata Bottom",align_center:"Rata Tengah",align_left:"Rata Kiri",align_middle:"Rata Tengah",align_right:"Rata Kanan",align_top:"Rata Popular",mode_select:"Pilih Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Persegi Panjang",mode_ellipse:"Ellipse",mode_circle:"Lingkaran",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Teks Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Kelompok Elemen",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elemen",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Pindah ke Bawah",move_top:"Pindah ke Atas",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Simpan",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Padam Layer",move_down:"Pindah Layer Bawah",new:"New Layer",rename:"Rename Layer",move_up:"Pindah Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Pilih standard:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),SH=Object.freeze({__proto__:null,default:{lang:"mt",dir:"ltr",common:{ok:"Save",cancel:"Ikkanċella",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Ikklikkja biex timla l-bidla fil-kulur, ikklikkja-bidla għall-bidla color stroke",zoom_level:"Bidla zoom livell",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Bidla imla color",stroke_color:"Color stroke Bidla",stroke_style:"Bidla stroke dash stil",stroke_width:"Wisa 'puplesija Bidla",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Angolu ta 'rotazzjoni Bidla",blur:"Change gaussian blur value",opacity:"Bidla magħżula opaċità partita",circle_cx:"CX ċirku Tibdil jikkoordinaw",circle_cy:"Ċirku Tibdil cy jikkoordinaw",circle_r:"Raġġ ta 'ċirku tal-Bidla",ellipse_cx:"Bidla ellissi's CX jikkoordinaw",ellipse_cy:"Ellissi Tibdil cy jikkoordinaw",ellipse_rx:"Raġġ x ellissi Tibdil",ellipse_ry:"Raġġ y ellissi Tibdil",line_x1:"Bidla fil-linja tal-bidu tikkoordina x",line_x2:"Linja tal-Bidla li jispiċċa x jikkoordinaw",line_y1:"Bidla fil-linja tal-bidu y jikkoordinaw",line_y2:"Linja Tibdil jispiċċa y jikkoordinaw",rect_height:"Għoli rettangolu Bidla",rect_width:"Wisa 'rettangolu Bidla",corner_radius:"Bidla Rectangle Corner Radius",image_width:"Wisa image Bidla",image_height:"Għoli image Bidla",image_url:"Bidla URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Test kontenut Bidla",font_family:"Bidla Font Familja",font_size:"Change font size",bold:"Bold Test",italic:"Test korsiv",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Bidla fil-kulur fl-isfond / opaċità",connector_no_arrow:"No arrow",fitToContent:"Fit għall-kontenut",fit_to_all:"Tajbin għall-kontenut",fit_to_canvas:"Xieraq li kanvas",fit_to_layer_content:"Fit-kontenut ta 'saff għal",fit_to_sel:"Fit-għażla",align_relative_to:"Jallinjaw relattiv għall - ...",relativeTo:"relattiv għall -:",page:"paġna",largest_object:"akbar oġġett",selected_objects:"oġġetti elett",smallest_object:"iżgħar oġġett",new_doc:"Image New",open_doc:"Open SVG",export_img:"Export",save_doc:"Image Save",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Tallinja Bottom",align_center:"Tallinja Center",align_left:"Tallinja Left",align_middle:"Tallinja Nofsani",align_right:"Tallinja Dritt",align_top:"Tallinja Top",mode_select:"Select Tool",mode_fhpath:"Lapes Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free Hand-Rectangle",mode_ellipse:"Ellissi",mode_circle:"Circle",mode_fhellipse:"Free Hand-ellissi",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Jneħħu",redo:"Jerġa 'jagħmel",tool_source:"Source Edit",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grupp Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Dokument Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Ħassar Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Semmi mill-ġdid Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefiniti:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),CH=Object.freeze({__proto__:null,default:{lang:"nl",dir:"ltr",common:{ok:"Ok",cancel:"Annuleren",key_backspace:"backspace",key_del:"delete",key_down:"omlaag",key_up:"omhoog",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Mogelijk gemaakt door"},ui:{toggle_stroke_tools:"Toon/verberg meer lijn gereedschap",palette_info:"Klik om de vul kleur te veranderen, shift-klik om de lijn kleur te veranderen",zoom_level:"In-/uitzoomen",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identificeer het element",fill_color:"Verander vul kleur",stroke_color:"Verander lijn kleur",stroke_style:"Verander lijn stijl",stroke_width:"Verander lijn breedte",pos_x:"Verander X coordinaat",pos_y:"Verander Y coordinaat",linecap_butt:"Lijneinde: Geen",linecap_round:"Lijneinde: Rond",linecap_square:"Lijneinde: Vierkant",linejoin_bevel:"Lijnverbinding: Afgestompt",linejoin_miter:"Lijnverbinding: Hoek",linejoin_round:"Lijnverbinding: Rond",angle:"Draai",blur:"Verander Gaussische vervaging waarde",opacity:"Verander opaciteit geselecteerde item",circle_cx:"Verander het X coordinaat van het cirkel middelpunt",circle_cy:"Verander het Y coordinaat van het cirkel middelpunt",circle_r:"Verander de cirkel radius",ellipse_cx:"Verander het X coordinaat van het ellips middelpunt",ellipse_cy:"Verander het Y coordinaat van het ellips middelpunt",ellipse_rx:"Verander ellips X radius",ellipse_ry:"Verander ellips Y radius",line_x1:"Verander start X coordinaat van de lijn",line_x2:"Verander eind X coordinaat van de lijn",line_y1:"Verander start Y coordinaat van de lijn",line_y2:"Verander eind Y coordinaat van de lijn",rect_height:"Verander hoogte rechthoek",rect_width:"Verander breedte rechthoek",corner_radius:"Verander hoekradius rechthoek",image_width:"Verander breedte afbeelding",image_height:"Verander hoogte afbeelding",image_url:"Verander URL",node_x:"Verander X coordinaat knooppunt",node_y:"Verander Y coordinaat knooppunt",seg_type:"Verander segment type",straight_segments:"Recht",curve_segments:"Gebogen",text_contents:"Wijzig tekst",font_family:"Verander lettertype",font_size:"Verander lettertype grootte",bold:"Vet",italic:"Cursief",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Hoofdmenu",bkgnd_color_opac:"Verander achtergrond kleur/doorzichtigheid",connector_no_arrow:"Geen pijl",fitToContent:"Pas om inhoud",fit_to_all:"Pas om alle inhoud",fit_to_canvas:"Pas om canvas",fit_to_layer_content:"Pas om laag inhoud",fit_to_sel:"Pas om selectie",align_relative_to:"Uitlijnen relatief ten opzichte van ...",relativeTo:"Relatief ten opzichte van:",page:"Pagina",largest_object:"Grootste object",selected_objects:"Geselecteerde objecten",smallest_object:"Kleinste object",new_doc:"Nieuwe afbeelding",open_doc:"Open afbeelding",export_img:"Export",save_doc:"Afbeelding opslaan",import_doc:"Importeer SVG",align_to_page:"Lijn element uit relatief ten opzichte van de pagina",align_bottom:"Onder uitlijnen",align_center:"Centreren",align_left:"Links uitlijnen",align_middle:"Midden uitlijnen",align_right:"Rechts uitlijnen",align_top:"Boven uitlijnen",mode_select:"Selecteer",mode_fhpath:"Potlood",mode_line:"Lijn",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Vrije stijl rechthoek",mode_ellipse:"Ellips",mode_circle:"Cirkel",mode_fhellipse:"Vrije stijl ellips",mode_path:"Pad",mode_text:"Tekst",mode_image:"Afbeelding",mode_zoom:"Zoom",no_embed:"Let op: Dit plaatje kan niet worden geintegreerd (embeded). Het hangt af van dit pad om te worden afgebeeld.",undo:"Ongedaan maken",redo:"Opnieuw doen",tool_source:"Bewerk bron",wireframe_mode:"Draadmodel",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Groepeer elementen",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Zet om naar pad",reorient_path:"Herorienteer pad",ungroup:"Groepering opheffen",docprops:"Documenteigenschappen",editor_homepage:"SVG-Edit Home Page",move_bottom:"Naar achtergrond",move_top:"Naar voorgrond",node_clone:"Kloon knooppunt",node_delete:"Delete knooppunt",node_link:"Koppel controle punten",add_subpath:"Subpad toevoegen",openclose_path:"Open/sluit subpad",source_save:"Veranderingen toepassen",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Laag",layers:"Layers",del:"Delete laag",move_down:"Beweeg laag omlaag",new:"Nieuwe laag",rename:"Hernoem laag",move_up:"Beweeg laag omhoog",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Verplaats elementen naar:",move_selected:"Verplaats geselecteerde elementen naar andere laag"},config:{image_props:"Afbeeldingeigenschappen",doc_title:"Titel",doc_dims:"Canvas afmetingen",included_images:"Ingesloten afbeeldingen",image_opt_embed:"Toevoegen data (lokale bestanden)",image_opt_ref:"Gebruik bestand referentie",editor_prefs:"Editor eigenschappen",icon_size:"Icoon grootte",language:"Taal",background:"Editor achtergrond",editor_img_url:"Image URL",editor_bg_note:"Let op: De achtergrond wordt niet opgeslagen met de afbeelding.",icon_large:"Groot",icon_medium:"Gemiddeld",icon_small:"Klein",icon_xlarge:"Extra groot",select_predefined:"Kies voorgedefinieerd:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Verkeerde waarde gegeven",noContentToFitTo:"Geen inhoud om omheen te passen",dupeLayerName:"Er is al een laag met die naam!",enterUniqueLayerName:"Geef een unieke laag naam",enterNewLayerName:"Geef een nieuwe laag naam",layerHasThatName:"Laag heeft al die naam",QmoveElemsToLayer:"Verplaats geselecteerde elementen naar laag '%s'?",QwantToClear:"Wil je de afbeelding leeg maken?\nDit zal ook de ongedaan maak geschiedenis wissen!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Er waren analyse fouten in je SVG bron.\nTeruggaan naar de originele SVG bron?",QignoreSourceChanges:"Veranderingen in de SVG bron negeren?",featNotSupported:"Functie wordt niet ondersteund",enterNewImgURL:"Geef de nieuwe afbeelding URL",defsFailOnSave:"Let op: Vanwege een fout in je browser, kan dit plaatje verkeerd verschijnen (missende hoeken en/of elementen). Het zal goed verschijnen zodra het plaatje echt wordt opgeslagen.",loadingImage:"Laden van het plaatje, even geduld aub...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Let op de volgende problemen: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),kH=Object.freeze({__proto__:null,default:{lang:"no",dir:"ltr",common:{ok:"Lagre",cancel:"Avbryt",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click å endre fyllfarge, shift-klikke for å endre slag farge",zoom_level:"Endre zoomnivå",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Endre fyllfarge",stroke_color:"Endre stroke color",stroke_style:"Endre stroke dash stil",stroke_width:"Endre stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Endre rotasjonsvinkelen",blur:"Change gaussian blur value",opacity:"Endre valgte elementet opasitet",circle_cx:"Endre sirkelens CX koordinatsystem",circle_cy:"Endre sirkelens koordinere cy",circle_r:"Endre sirkelens radius",ellipse_cx:"Endre ellipse's CX koordinatsystem",ellipse_cy:"Endre ellipse's koordinere cy",ellipse_rx:"Endre ellipse's x radius",ellipse_ry:"Endre ellipse's y radius",line_x1:"Endre linje begynner x koordinat",line_x2:"Endre linje's ending x koordinat",line_y1:"Endre linje begynner y koordinat",line_y2:"Endre linje's ending y koordinat",rect_height:"Endre rektangel høyde",rect_width:"Endre rektangel bredde",corner_radius:"Endre rektangel Corner Radius",image_width:"Endre bilde bredde",image_height:"Endre bilde høyde",image_url:"Endre URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Endre tekst innholdet",font_family:"Change Font Family",font_size:"Endre skriftstørrelse",bold:"Fet tekst",italic:"Kursiv tekst",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Endre bakgrunnsfarge / opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Passer til alt innhold",fit_to_canvas:"Tilpass til lerret",fit_to_layer_content:"Fit to lag innhold",fit_to_sel:"Tilpass til valg",align_relative_to:"Juster i forhold til ...",relativeTo:"i forhold til:",page:"side",largest_object:"største objekt",selected_objects:"velges objekter",smallest_object:"minste objekt",new_doc:"New Image",open_doc:"Åpne Image",export_img:"Export",save_doc:"Lagre bilde",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Midtstill",align_left:"Venstrejuster",align_middle:"Rett Middle",align_right:"Høyrejuster",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Linjeverktøy",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand rektangel",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Angre",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Gruppe Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Dele opp Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Flytt til toppen",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Lagre",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Slett laget",move_down:"Flytt laget ned",new:"Nytt lag",rename:"Rename Layer",move_up:"Flytt Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Velg forhåndsdefinerte:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),BH=Object.freeze({__proto__:null,default:{lang:"pl",dir:"ltr",author:"Aleksander Lurie",common:{ok:"OK",cancel:"Anuluj",key_backspace:"usuń",key_del:"usuń",key_down:"w dół",key_up:"w górę",more_opts:"więcej opcji",url:"adres url",width:"Szerokość",height:"Wysokość"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Pokaż/ukryj więcej opcji obramowania",palette_info:"Kliknij aby zmienić kolor wypełnienia, przytrzymaj shift aby zmienić kolor obramowania",zoom_level:"Zmiana powiększenia",panel_drag:"Przeciągnij w lewo/prawo aby zmienić szerokość panelu",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identyfikator elementu",fill_color:"Zmień kolor wypełnienia",stroke_color:"Zmień kolor obramowania",stroke_style:"Zmień styl obramowania",stroke_width:"Zmień szerokość obramowania o 1, przytrzymaj shift aby zmienić szerokość o 0.1",pos_x:"Zmień współrzędną X",pos_y:"Zmień współrzędną Y",linecap_butt:"Zakończenie linii: grzbiet",linecap_round:"Zakończenie linii: zaokrąglone",linecap_square:"Zakończenie linii: kwadrat",linejoin_bevel:"Łączenie linii: ścięte",linejoin_miter:"Łączenie linii: ostre",linejoin_round:"Łączenie linii: zaokrąglone",angle:"Zmień kąt obrotu",blur:"Zmień wartość rozmycia gaussa",opacity:"Zmień przezroczystość zaznaczonego elementu",circle_cx:"Zmień współrzędną cx okręgu",circle_cy:"Zmień współrzędną cy okręgu",circle_r:"zmień promień okręgu",ellipse_cx:"Zmień współrzędną cx elipsy",ellipse_cy:"Zmień współrzędną cy elipsy",ellipse_rx:"Zmień promień x elipsy",ellipse_ry:"Zmień promień y elipsy",line_x1:"Zmień współrzędna x początku linii",line_x2:"Zmień współrzędną x końca linii",line_y1:"Zmień współrzędną y początku linii",line_y2:"Zmień współrzędną y końca linii",rect_height:"Zmień wysokość prostokąta",rect_width:"Zmień szerokość prostokąta",corner_radius:"Zmień promień zaokrąglenia narożników prostokąta",image_width:"Zmień wysokość obrazu",image_height:"Zmień szerokość obrazu",image_url:"Zmień adres URL",node_x:"Zmień współrzędną x węzła",node_y:"Zmień współrzędną y węzła",seg_type:"Zmień typ segmentu",straight_segments:"Prosty",curve_segments:"Zaokrąglony",text_contents:"Zmień text",font_family:"Zmień krój czcionki",font_size:"Zmień rozmiar czcionki",bold:"Pogrubienie textu",italic:"Kursywa",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Menu główne",bkgnd_color_opac:"Zmiana koloru/przezroczystości tła",connector_no_arrow:"Brak strzałek",fitToContent:"Dopasuj do zawartości",fit_to_all:"Dopasuj do całej zawartości",fit_to_canvas:"Dopasuj do widoku",fit_to_layer_content:"Dopasuj do zawartości warstwy",fit_to_sel:"Dopasuj do zaznaczenia",align_relative_to:"Wyrównaj relatywnie do ...",relativeTo:"relatywnie do:",page:"strona",largest_object:"największy obiekt",selected_objects:"zaznaczone obiekty",smallest_object:"najmniejszy obiekt",new_doc:"Nowy obraz",open_doc:"Otwórz obraz",export_img:"Eksportuj",save_doc:"Zapisz obraz",import_doc:"Importuj SVG",align_to_page:"Wyrównaj element do strony",align_bottom:"Wyrównaj do dołu",align_center:"Wyśrodkuj w poziomie",align_left:"Wyrównaj do lewej",align_middle:"Wyśrodkuj w pionie",align_right:"Wyrównaj do prawej",align_top:"Wyrównaj do góry",mode_select:"Zaznaczenie",mode_fhpath:"Ołówek",mode_line:"Linia",mode_rect:"Prostokąt",mode_square:"Kwadrat",mode_fhrect:"Dowolny prostokąt",mode_ellipse:"Elipsa",mode_circle:"Okrąg",mode_fhellipse:"Dowolna elipsa",mode_path:"Ścieżka",mode_text:"Tekst",mode_image:"Obraz",mode_zoom:"Powiększenie",no_embed:"Uwaga: Ten obraz nie może być osadzony. Być może podany adres na to nie pozwala",undo:"Wstecz",redo:"Dalej",tool_source:"Edytuj źródło",wireframe_mode:"Tryb szkieletowy",clone:"Klonuj element(y)",del:"Usuń warstwę",group_elements:"Grupuj elementy",make_link:"Utwórz łącze",set_link_url:"Ustal adres URL (pozostaw puste aby usunąć)",to_path:"Konwertuj do ścieżki",reorient_path:"Zresetuj obwiednię",ungroup:"Rozgrupuj elementy",docprops:"Właściwości dokumentu",editor_homepage:"SVG-Edit Home Page",move_bottom:"Przenieś pod spód",move_top:"Przenieś na wierzch",node_clone:"Klonuj węzeł",node_delete:"Usuń węzeł",node_link:"Podłącz punkty kontrolne",add_subpath:"Dodaj ścieżkę podrzędną",openclose_path:"Otwórz/zamknij ścieżkę podrzędną",source_save:"Zachowaj zmiany",cut:"Wytnij",copy:"Kopiuj",paste:"Wklej",paste_in_place:"Wklej w miejscu",delete:"Usuń",group:"Grupuj",move_front:"Przenieś do przodu",move_up:"Przenieś warstwę w górę",move_down:"Przenieś warstwę w dół",move_back:"Przenieś do tyłu"},layers:{layer:"Warstwa",layers:"Warstwy",del:"Usuń warstwę",move_down:"Przenieś warstwę w dół",new:"Nowa warstwa",rename:"Zmień nazwę warstwy",move_up:"Przenieś warstwę w górę",dupe:"Duplikuj warstwę",merge_down:"Scal w dół",merge_all:"Scal wszystko",move_elems_to:"Przenieś elementy do:",move_selected:"Przenieś zaznaczone elementy do innej warstwy"},config:{image_props:"Własciwości obrazu",doc_title:"Tytuł",doc_dims:"Wymiary pola roboczego",included_images:"Dołączone obrazy",image_opt_embed:"Dane osadzone (pliki lokalne)",image_opt_ref:"Użyj referencji do pliku",editor_prefs:"Ustawienia edytora",icon_size:"Rozmiar ikon",language:"Język",background:"Tło edytora",editor_img_url:"Adres URL obrazu",editor_bg_note:"Uwaga: Tło nie zostało zapisane z obrazem.",icon_large:"Duże",icon_medium:"Średnie",icon_small:"Małe",icon_xlarge:"Bardzo duże",select_predefined:"Wybierz predefiniowany:",units_and_rulers:"Jednostki/Linijki",show_rulers:"Pokaż linijki",base_unit:"Podstawowa jednostka:",grid:"Siatka",snapping_onoff:"Włącz/wyłącz przyciąganie",snapping_stepsize:"Przyciągaj co:",grid_color:"Kolor siatki"},notification:{invalidAttrValGiven:"Podano nieprawidłową wartość",noContentToFitTo:"Brak zawartości do dopasowania",dupeLayerName:"Istnieje już warstwa o takiej nazwie!",enterUniqueLayerName:"Podaj unikalną nazwę warstwy",enterNewLayerName:"Podaj nazwe nowej warstwy",layerHasThatName:"Warstwa już tak się nazywa",QmoveElemsToLayer:"Przenies zaznaczone elementy do warstwy '%s'?",QwantToClear:"Jesteś pewien, że chcesz wyczyścić pole robocze?\nHistoria projektu również zostanie skasowana",QwantToOpen:"Jesteś pewien, że chcesz otworzyć nowy plik?\nHistoria projektu również zostanie skasowana",QerrorsRevertToSource:"Błąd parsowania źródła Twojego pliku SVG.\nPrzywrócić orginalne źródło pliku SVG?",QignoreSourceChanges:"Zignorowac zmiany w źródle pliku SVG?",featNotSupported:"Funkcjonalność niedostępna",enterNewImgURL:"Podaj adres URL nowego obrazu",defsFailOnSave:"Uwaga: Ze względu na błąd w przeglądarce, ten obraz może się źle wyswietlać (brak gradientów lub elementów). Będzie jednak wyświetlał się poprawnie skoro został zapisany.",loadingImage:"Ładowanie obrazu, proszę czekać...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Zwróć uwagę na nastepujące kwestie: ",unsavedChanges:"Wykryto niezapisane zmiany.",enterNewLinkURL:"Wpisz nowy adres URL hiperłącza",errorLoadingSVG:"Błąd: Nie można załadować danych SVG",URLLoadFail:"Nie można załadować z adresu URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),EH=Object.freeze({__proto__:null,default:{lang:"pt-BR",dir:"ltr",common:{ok:"OK",cancel:"Cancelar",key_backspace:"Tecla backspace",key_del:"Tecla delete",key_down:"Seta para baixo",key_up:"Seta para cima",more_opts:"Mais opções",url:"URL",width:"Largura",height:"Altura"},misc:{powered_by:"Tecnologia"},ui:{toggle_stroke_tools:"Mais opções de traço",palette_info:"Click para mudar a cor de preenchimento, shift-click para mudar a cor do traço",zoom_level:"Mudar zoom",panel_drag:"Arraste para redimensionar o painel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identifica o elemento",fill_color:"Mudar a cor de preenchimento",stroke_color:"Mudar a cor do traço",stroke_style:"Mudar o estilo do traço",stroke_width:"Mudar a espessura do traço em 1, shift-click para mudar 0.1",pos_x:"Mudar a coordenada X",pos_y:"Mudar a coordenada Y",linecap_butt:"Estilo do fim do traço: Topo",linecap_round:"Estilo do fim do traço: Redondo",linecap_square:"Estilo do fim do traço: Quadrado",linejoin_bevel:"Estilo da Aresta: Chanfro",linejoin_miter:"Estilo da Aresta: Reto",linejoin_round:"Estilo da Aresta: Redondo",angle:"Mudar ângulo de rotação",blur:"Mudar valor de desfoque",opacity:"Mudar opacidade do item selecionado",circle_cx:"Mudar a coordenada cx do círculo",circle_cy:"Mudar a coordenada cy do círculo",circle_r:"Mudar o raio do círculo",ellipse_cx:"Mudar a coordenada cx da elípse",ellipse_cy:"Mudar a coordenada cy da elípse",ellipse_rx:"Mudar o raio x da elípse",ellipse_ry:"Mudar o raio y da elípse",line_x1:"Mudar a coordenada x do início da linha",line_x2:"Mudar a coordenada x do fim da linha",line_y1:"Mudar a coordenada y do início da linha",line_y2:"Mudar a coordenada y do fim da linha",rect_height:"Mudar a altura do retângulo",rect_width:"Mudar a largura do retângulo",corner_radius:"Mudar o raio da aresta do retângulo",image_width:"Mudar a largura da imagem",image_height:"Mudar a altura da imagem",image_url:"Mudar URL",node_x:"Mudar a coordenada x da aresta",node_y:"Mudar a coordenada y da aresta",seg_type:"Mudar o tipo de segmento",straight_segments:"Reto",curve_segments:"Curvo",text_contents:"Mudar conteúdo do texto",font_family:"Mudar o estilo da fonte",font_size:"Mudar o tamanho da fonte",bold:"Negrito",italic:"Italico",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Menu Principal",bkgnd_color_opac:"Mudar cor/opacidade do fundo",connector_no_arrow:"Sem flecha",fitToContent:"Ajustar ao conteúdo",fit_to_all:"Ajustar a todo conteúdo",fit_to_canvas:"Ajustar à tela",fit_to_layer_content:"Ajustar ao conteúdo da camada",fit_to_sel:"Ajustar à seleção",align_relative_to:"Alinhar em relação à ...",relativeTo:"Referência:",page:"página",largest_object:"maior objeto",selected_objects:"objetos selecionados",smallest_object:"menor objeto",new_doc:"Nova imagem",open_doc:"Abrir imagem",export_img:"Export",save_doc:"Salvar imagem",import_doc:"Importar SVG",align_to_page:"Alinhar elemento na página",align_bottom:"Alinhar no fundo",align_center:"Alinhar no centro",align_left:"Alinhar na esquerda",align_middle:"Alinhar no meio",align_right:"Alinhar na direita",align_top:"Alinhar no topo",mode_select:"Selecão",mode_fhpath:"Lápis",mode_line:"Linha",mode_rect:"Retângulo",mode_square:"Quadrado",mode_fhrect:"Retângulo a mão-livre",mode_ellipse:"Elípse",mode_circle:"Círculo",mode_fhellipse:"Elípse a mão-livre",mode_path:"Contorno",mode_text:"Texto",mode_image:"Imagem",mode_zoom:"Zoom",no_embed:"Atenção: Esta imagem não pode ser incorporada e dependerá de seu caminho para ser exibida",undo:"Desfazer",redo:"Refazer",tool_source:"Editar o código",wireframe_mode:"Modo linhas",clone:"Clonar Elemento(s)",del:"Deletar Elemento(s)",group_elements:"Agrupar Elementos",make_link:"Criar (hyper)link",set_link_url:"Alterar URL (em branco para remover)",to_path:"Converter para Contorno",reorient_path:"Reorientar contorno",ungroup:"Desagrupar Elementos",docprops:"Propriedades",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mover para o fundo",move_top:"Mover para o topo",node_clone:"Clonar Aresta",node_delete:"Deletar Aresta",node_link:"Alinhar pontos de controle",add_subpath:"Adicionar contorno",openclose_path:"Abrir/Fechar contorno",source_save:"Salvar",cut:"Recortar",copy:"Copiar",paste:"Colar",paste_in_place:"Colar no mesmo local",delete:"Deletar",group:"Agrupar",move_front:"Trazer para Frente",move_up:"Avançar",move_down:"Recuar",move_back:"Enviar para Trás"},layers:{layer:"Camada",layers:"Camadas",del:"Deletar Camada",move_down:"Enviar Camada para Trás",new:"Nova Camada",rename:"Renomear Camada",move_up:"Trazer Camada para Frente",dupe:"Duplicar Camada",merge_down:"Achatar para baixo",merge_all:"Achatar todas",move_elems_to:"Mover elementos para:",move_selected:"Mover elementos selecionados para outra camada"},config:{image_props:"Propriedades",doc_title:"Título",doc_dims:"Dimensões",included_images:"Imagens",image_opt_embed:"Incorporadas (arquivos locais)",image_opt_ref:"Usar referência",editor_prefs:"Preferências",icon_size:"Tamanho dos ícones",language:"Idioma",background:"Fundo da página",editor_img_url:"URL da Imagem",editor_bg_note:"Atenção: Fundo da página não será salvo.",icon_large:"Grande",icon_medium:"Médio",icon_small:"Pequeno",icon_xlarge:"Extra Grande",select_predefined:"Modelos:",units_and_rulers:"Unidade & Réguas",show_rulers:"Mostrar réguas",base_unit:"Unidade base:",grid:"Grade",snapping_onoff:"Snap on/off",snapping_stepsize:"Intensidade do Snap:"},notification:{invalidAttrValGiven:"Valor inválido",noContentToFitTo:"Não há conteúdo",dupeLayerName:"Nome duplicado",enterUniqueLayerName:"Insira um nome único",enterNewLayerName:"Insira um novo nome",layerHasThatName:"A camada já pussui este nome",QmoveElemsToLayer:"Mover elementos selecionados para a camada: '%s'?",QwantToClear:"Deseja criar um novo arquivo?\nO histórico também será apagado!",QwantToOpen:"Deseja abrir um novo arquivo?\nO histórico também será apagado!",QerrorsRevertToSource:"Foram encontrados erros ná análise do código SVG.\nReverter para o código SVG original?",QignoreSourceChanges:"Ignorar as mudanças no código SVG?",featNotSupported:"Recurso não suportado",enterNewImgURL:"Insira nova URL da imagem",defsFailOnSave:"Atenção: Devido a um bug em seu navegador, esta imagem pode apresentar erros, porém será salva corretamente.",loadingImage:"Carregando imagem, por favor aguarde...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Atenção para as seguintes questões: ",unsavedChanges:"Existem alterações não salvas.",enterNewLinkURL:"Insira novo URL do hyperlink",errorLoadingSVG:"Erro: Impossível carregar dados SVG",URLLoadFail:"Impossível carregar deste URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),PH=Object.freeze({__proto__:null,default:{lang:"pt-PT",dir:"ltr",common:{ok:"Salvar",cancel:"Cancelar",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Clique para mudar a cor de preenchimento, shift-clique para mudar a cor do curso",zoom_level:"Alterar o nível de zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Alterar a cor de preenchimento",stroke_color:"Mudar a cor do curso",stroke_style:"Alterar o estilo do traço do curso",stroke_width:"Alterar a largura do curso",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Alterar o ângulo de rotação",blur:"Change gaussian blur value",opacity:"Mude a opacidade item selecionado",circle_cx:"Cx Mudar círculo de coordenadas",circle_cy:"Círculo Mudança cy coordenar",circle_r:"Alterar círculo de raio",ellipse_cx:"Alterar elipse cx coordenar",ellipse_cy:"Elipse Mudança cy coordenar",ellipse_rx:"Raio X Change elipse",ellipse_ry:"Raio y Change elipse",line_x1:"Altere a linha de partida coordenada x",line_x2:"Altere a linha está terminando coordenada x",line_y1:"Mudança na linha de partida coordenada y",line_y2:"Mudança de linha está terminando coordenada y",rect_height:"Alterar altura do retângulo",rect_width:"Alterar a largura retângulo",corner_radius:"Alterar Corner Rectangle Radius",image_width:"Alterar a largura da imagem",image_height:"Alterar altura da imagem",image_url:"Alterar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Alterar o conteúdo de texto",font_family:"Alterar fonte Família",font_size:"Alterar tamanho de letra",bold:"Bold Text",italic:"Texto em itálico",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mudar a cor de fundo / opacidade",connector_no_arrow:"No arrow",fitToContent:"Ajustar ao conteúdo",fit_to_all:"Ajustar a todo o conteúdo",fit_to_canvas:"Ajustar à tela",fit_to_layer_content:"Ajustar o conteúdo da camada de",fit_to_sel:"Ajustar à selecção",align_relative_to:"Alinhar em relação a ...",relativeTo:"em relação ao:",page:"Página",largest_object:"maior objeto",selected_objects:"objetos eleitos",smallest_object:"menor objeto",new_doc:"Nova Imagem",open_doc:"Abrir Imagem",export_img:"Export",save_doc:"Salvar Imagem",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Alinhar ao centro",align_left:"Alinhar à Esquerda",align_middle:"Alinhar Médio",align_right:"Alinhar à Direita",align_top:"Align Top",mode_select:"Selecione a ferramenta",mode_fhpath:"Ferramenta Lápis",mode_line:"Ferramenta Linha",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Ferramenta de Texto",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Desfazer",redo:"Refazer",tool_source:"Fonte Editar",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementos do Grupo",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elementos Desagrupar",docprops:"Propriedades do Documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Salvar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move camada para baixo",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Selecione predefinidos:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),LH=Object.freeze({__proto__:null,default:{lang:"ro",dir:"ltr",common:{ok:"Ok",cancel:"Anulaţi",key_backspace:"backspace",key_del:"ştergere",key_down:"jos",key_up:"sus",more_opts:"Mai multe opţiuni",url:"URL",width:"Lăţime",height:"Înălţime"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Arătaţi/ascundeţi mai multe unelte de contur",palette_info:"Faceţi clic pentru a schimba culoarea de umplere, Shift-clic pentru a schimba culoarea de contur",zoom_level:"Schimbarea nivelului de zoom",panel_drag:"Trageţi la stanga/dreapta pentru redimensionare panou lateral",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identificare element",fill_color:"Schimbarea culorii de umplere",stroke_color:"Schimbarea culorii de contur",stroke_style:"Schimbarea stilului de contur",stroke_width:"Schimbarea lăţimii conturului",pos_x:"Schimbă coordonata X",pos_y:"Schimbă coordonata Y",linecap_butt:"Capăt de linie: Butuc",linecap_round:"Capăt de linie: Rotund",linecap_square:"Capăt de linie: Pătrat",linejoin_bevel:"Articulaţia liniei: Teşită",linejoin_miter:"Articulaţia liniei: Unghi ascuţit",linejoin_round:"Articulaţia liniei: Rotundă",angle:"Schimbarea unghiul de rotaţie",blur:"Schimbarea valorii estomparii gaussiene",opacity:"Schimbarea gradului de opacitate",circle_cx:"Schimbarea coordonatei CX a cercului",circle_cy:"Schimbarea coordonatei CY a cercului",circle_r:"Schimbarea razei cercului",ellipse_cx:"Schimbarea coordonatei CX a elipsei",ellipse_cy:"Schimbarea coordonatei CY a elipsei",ellipse_rx:"Schimbarea razei elipsei X",ellipse_ry:"Schimbarea razei elipsei Y",line_x1:"Schimbarea coordonatei x a punctului de start",line_x2:"Schimbarea coordonatei x a punctului final",line_y1:"Schimbarea coordonatei y a punctului de start",line_y2:"Schimbare coordonatei y a punctului final",rect_height:"Schimbarea înălţimii dreptunghiului",rect_width:"Schimbarea lăţimii dreptunghiului",corner_radius:"Schimbarea razei colţului dreptunghiului",image_width:"Schimbarea lăţimii imaginii",image_height:"Schimbarea înălţimii imaginii",image_url:"Schimbaţi URL-ul",node_x:"Schimbă coordonata x a punctului",node_y:"Schimbă coordonata x a punctului",seg_type:"Schimbă tipul de segment",straight_segments:"Drept",curve_segments:"Curb",text_contents:"Schimbarea conţinutului textului",font_family:"Modificare familie de fonturi",font_size:"Schimbă dimensiunea fontului",bold:"Text Îngroşat",italic:"Text Înclinat",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Menu Principal",bkgnd_color_opac:"Schimbare culoare de fundal / opacitate",connector_no_arrow:"Fără săgeată",fitToContent:"Dimensionare la conţinut",fit_to_all:"Potrivire la tot conţinutul",fit_to_canvas:"Potrivire la Şevalet",fit_to_layer_content:"Potrivire la conţinutul stratului",fit_to_sel:"Potrivire la selecţie",align_relative_to:"Aliniere în raport cu ...",relativeTo:"în raport cu:",page:"pagină",largest_object:"cel mai mare obiect",selected_objects:"obiectele alese",smallest_object:"cel mai mic obiect",new_doc:"Imagine nouă",open_doc:"Imagine deschisă",export_img:"Export",save_doc:"Salvare imagine",import_doc:"Importare SVG",align_to_page:"Aliniere la pagină",align_bottom:"Aliniere jos",align_center:"Aliniere la centru",align_left:"Aliniere la stânga",align_middle:"Aliniere la mijloc",align_right:"Aliniere la dreapta",align_top:"Aliniere sus",mode_select:"Unealtă de Selectare",mode_fhpath:"Unealtă de Traiectorie",mode_line:"Unealtă de Linie",mode_rect:"Unealtă de Dreptunghi",mode_square:"Unealtă de Pătrat",mode_fhrect:"Dreptunghi cu mana liberă",mode_ellipse:"Elipsă",mode_circle:"Cerc",mode_fhellipse:"Elipsă cu mana liberă",mode_path:"Unealtă de Traiectorie",mode_text:"Unealtă de Text",mode_image:"Unealtă de Imagine",mode_zoom:"Unealtă de Zoom",no_embed:"NOTE: Aceasta imagine nu poate fi inglobată. Va depinde de aceasta traiectorie pentru a fi prezentată.",undo:"Anulare",redo:"Refacere",tool_source:"Editare Cod Sursă",wireframe_mode:"Mod Schelet",clone:"Clonează Elementul/ele",del:"Şterge Elementul/ele",group_elements:"Grupare Elemente",make_link:"Crează (hyper)link",set_link_url:"Setează link URL (lăsaţi liber pentru eliminare)",to_path:"Converteşte in Traiectorie",reorient_path:"Reorientează Traiectoria",ungroup:"Anulare Grupare Elemente",docprops:"Proprietăţile Documentului",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mutare în jos",move_top:"Mutare în sus",node_clone:"Clonează Punct",node_delete:"Şterge Punct",node_link:"Uneşte Punctele de Control",add_subpath:"Adăugaţi sub-traiectorie",openclose_path:"Deschide/inchide sub-traiectorie",source_save:"Folosiţi Schimbările",cut:"Tăiere",copy:"Copiere",paste:"Reproducere",paste_in_place:"Reproducere pe loc",delete:"Ştergere",group:"Group",move_front:"Pune in faţa",move_up:"Pune in spate",move_down:"Trimite in faţa",move_back:"Trimite in spate"},layers:{layer:"Strat",layers:"Straturi",del:"Ştergeţi Strat",move_down:"Mutare Strat în Jos",new:"Strat Nou",rename:"Redenumiţi Stratul",move_up:"Mutare Strat în Sus",dupe:"Duplicaţi Stratul",merge_down:"Fuzionare in jos",merge_all:"Fuzionarea tuturor",move_elems_to:"Mută elemente la:",move_selected:"Mută elementele selectate pe un alt strat"},config:{image_props:"Proprietăţile Imaginii",doc_title:"Titlul",doc_dims:"Dimensiunile Şevaletului",included_images:"Imaginile Incluse",image_opt_embed:"Includeţi Datele (fişiere locale)",image_opt_ref:"Foloseşte referinţe la fişiere",editor_prefs:"Preferinţele Editorului",icon_size:"Dimensiunile Butoanelor",language:"Limba",background:"Fondul Editorului",editor_img_url:"URL-ul Imaginii",editor_bg_note:"Notă: Fondul nu va fi salvat cu imaginea.",icon_large:"Mari",icon_medium:"Medii",icon_small:"Mici",icon_xlarge:"Foarte Mari",select_predefined:"Selecţii predefinite:",units_and_rulers:"Unitati si Rigle",show_rulers:"Arată Riglele",base_unit:"Unitate de baza:",grid:"Caroiaj",snapping_onoff:"Fixare on/off",snapping_stepsize:"Dimensiunea pasului de fixare:"},notification:{invalidAttrValGiven:"Valoarea data nu este validă",noContentToFitTo:"Fara conţinut de referinţă",dupeLayerName:"Deja exista un strat numit asa!",enterUniqueLayerName:"Rog introduceţi un nume unic",enterNewLayerName:"Rog introduceţi un nume pentru strat",layerHasThatName:"Statul deja are acest nume",QmoveElemsToLayer:"Mutaţi elementele selectate pe stratul '%s'?",QwantToClear:"Doriti să ştergeţi desenul?\nAceasta va sterge si posibilitatea de anulare!",QwantToOpen:"Doriti sa deschideţi un nou fişier?\nAceasta va şterge istoricul!",QerrorsRevertToSource:"Sunt erori de parsing in sursa SVG.\nRevenire la sursa SVG orginală?",QignoreSourceChanges:"Ignoraţi schimbarile la sursa SVG?",featNotSupported:"Funcţie neimplementată",enterNewImgURL:"Introduceţi noul URL pentru Imagine",defsFailOnSave:"NOTE: Din cauza unei erori in browserul dv., aceasta imagine poate apare gresit (fara gradiente sau elemente). Însă va apare corect dupa salvare.",loadingImage:"Imaginea se incarcă, va rugam asteptaţi...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"De asemenea remarcati urmatoarele probleme: ",unsavedChanges:"Sunt schimbări nesalvate.",enterNewLinkURL:"IntroduAliniere în raport cu ...sceţi noul URL",errorLoadingSVG:"Eroare: Nu se pot încărca datele SVG",URLLoadFail:"Nu se poate încărca de la URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),TH=Object.freeze({__proto__:null,default:{lang:"ru",dir:"ltr",common:{ok:"Сохранить",cancel:"Отменить",key_backspace:"Backspace",key_del:"Delete",key_down:"Вниз",key_up:"Вверх",more_opts:"Доп. Настройки",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Показать/скрыть инструменты обводки",palette_info:"Нажмите для изменения цвета заливки, Shift-Click изменить цвета обводки",zoom_level:"Изменить масштаб",panel_drag:"Drag left/right to resize side panel",quality:"Качество:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Идентификатор элемента",fill_color:"Изменить цвет заливки",stroke_color:"Изменить цвет обводки",stroke_style:"Изменить стиль обводки",stroke_width:"Изменить толщину обводки",pos_x:"Изменить горизонтальный координат",pos_y:"Изменить вертикальный координат",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Изменить угол поворота",blur:"Изменяет значение размытия",opacity:"Изменить непрозрачность элемента",circle_cx:"Изменить горизонтальный координат (CX) окружности",circle_cy:"Изменить вертикальный координат (CY) окружности",circle_r:"Изменить радиус окружности",ellipse_cx:"Изменить горизонтальный координат (CX) эллипса",ellipse_cy:"Изменить вертикальный координат (CY) эллипса",ellipse_rx:"Изменить горизонтальный радиус эллипса",ellipse_ry:"Изменить вертикальный радиус эллипса",line_x1:"Изменить горизонтальный координат X начальной точки линии",line_x2:"Изменить горизонтальный координат X конечной точки линии",line_y1:"Изменить вертикальный координат Y начальной точки линии",line_y2:"Изменить вертикальный координат Y конечной точки линии",rect_height:"Изменениe высоту прямоугольника",rect_width:"Измененить ширину прямоугольника",corner_radius:"Радиус закругленности угла",image_width:"Изменить ширину изображения",image_height:"Изменить высоту изображения",image_url:"Изменить URL",node_x:"Изменить горизонтальную координату узла",node_y:"Изменить вертикальную координату узла",seg_type:"Изменить вид",straight_segments:"Отрезок",curve_segments:"Сплайн",text_contents:"Изменить содержание текста",font_family:"Изменить семейство шрифтов",font_size:"Изменить размер шрифта",bold:"Жирный",italic:"Курсив",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Главное меню",bkgnd_color_opac:"Изменить цвет фона или прозрачность",connector_no_arrow:"Нет стрелки",fitToContent:"Под размер содержимого",fit_to_all:"Под размер всех слоев",fit_to_canvas:"Под размер холста",fit_to_layer_content:"Под размер содержания слоя",fit_to_sel:"Под размер выделенного",align_relative_to:"Выровнять по отношению к ...",relativeTo:"По отношению к ",page:"страница",largest_object:"Наибольший объект",selected_objects:"Выделенные объекты",smallest_object:"Самый маленький объект",new_doc:"Создать изображение",open_doc:"Открыть изображение",export_img:"Экспорт",save_doc:"Сохранить изображение",import_doc:"Импорт изображения",align_to_page:"Align Element to Page",align_bottom:"Выровнять по нижнему краю",align_center:"Центрировать по вертикальной оси",align_left:"По левому краю",align_middle:"Центрировать по горизонтальной оси",align_right:"По правому краю",align_top:"Выровнять по верхнему краю",mode_select:"Выделить",mode_fhpath:"Карандаш",mode_line:"Линия",mode_rect:"Прямоугольник",mode_square:"Квадрат",mode_fhrect:"Прямоугольник от руки",mode_ellipse:"Эллипс",mode_circle:"Окружность",mode_fhellipse:"Эллипс от руки",mode_path:"Контуры",mode_text:"Текст",mode_image:"Изображение",mode_zoom:"Лупа",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Отменить",redo:"Вернуть",tool_source:"Редактировать исходный код",wireframe_mode:"Каркас",clone:"Клонировать элемент(ы)",del:"Удалить элемент(ы)",group_elements:"Создать группу элементов",make_link:"Сделать ссылкой",set_link_url:"Ссылка(оставьте пустым для удаления)",to_path:"В контур",reorient_path:"Изменить ориентацию контура",ungroup:"Разгруппировать элементы",docprops:"Свойства документа",editor_homepage:"SVG-Edit Home Page",move_bottom:"Опустить",move_top:"Поднять",node_clone:"Создать копию узла",node_delete:"Удалить узел",node_link:"Связать узлы",add_subpath:"Добавить линию",openclose_path:"Разомкнуть/Замкнуть линию",source_save:"Сохранить",cut:"Вырезать",copy:"Копировать",paste:"Вставить",paste_in_place:"Вставить сюда",Delete:"Удалить",group:"Группировка",move_front:"На передний план",move_up:"Передвинуть вперед",move_down:"Передвинуть назад",move_back:"На задний план"},layers:{layer:"Слой",layers:"Слои",del:"Удалить слой",move_down:"Опустить слой",new:"Создать слой",rename:"Переименовать Слой",move_up:"Поднять слой",dupe:"Копировать слой",merge_down:"Объединить с нижним",merge_all:"Объединить все",move_elems_to:"Переместить выделенные элементы:",move_selected:"Переместить выделенные элементы на другой слой"},config:{image_props:"Свойства изображения",doc_title:"Название",doc_dims:"Размеры холста",included_images:"Встроенные изображения",image_opt_embed:"Локальные файлы",image_opt_ref:"По ссылкам",editor_prefs:"Параметры",icon_size:"Размер значков",language:"Язык",background:"Фон",editor_img_url:"Изображение URL",editor_bg_note:"(Фон не сохранится вместе с изображением.)",icon_large:"Большие",icon_medium:"Средние",icon_small:"Малые",icon_xlarge:"Огромные",select_predefined:"Выбирать предопределенный размер",units_and_rulers:"Единицы & Линейки",show_rulers:"Показывать линейки",base_unit:"Единицы:",grid:"Сетка",snapping_onoff:"Привязка вкл/выкл",snapping_stepsize:"Шаг привязки:",grid_color:"Цвет сетки"},notification:{invalidAttrValGiven:"Некорректное значение аргумента",noContentToFitTo:"Нет содержания, по которому выровнять.",dupeLayerName:"Слой с этим именем уже существует.",enterUniqueLayerName:"Пожалуйста, введите имя для слоя.",enterNewLayerName:"Пожалуйста, введите новое имя.",layerHasThatName:"Слой уже называется этим именем.",QmoveElemsToLayer:"Переместить выделенные элементы на слой '%s'?",QwantToClear:"Вы хотите очистить?\nИстория действий будет забыта!",QwantToOpen:"Открыть новый файл?\nИстория действий будет забыта!",QerrorsRevertToSource:"Была проблема при парсинге вашего SVG исходного кода.\nЗаменить его предыдущим SVG кодом?",QignoreSourceChanges:"Забыть без сохранения?",featNotSupported:"Возможность не реализована",enterNewImgURL:"Введите новый URL изображения",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Загрузка изоражения, придется подождать...",saveFromBrowser:"Выберите 'Сохранить как...' в вашем браузере (возможно через меню файл или в контекстном меню) чтобы сохранить как файл %s.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"Есть несохраненные изменения.",enterNewLinkURL:"Введите новую ссылку URL",errorLoadingSVG:"Ошибка: Не удалось загрузить SVG данные",URLLoadFail:"Не удалось загрузить по ссылке URL",retrieving:"Получение '%s' ...",popupWindowBlocked:"Всплывающее окно могло заблокироваться браузером",exportNoBlur:"Размытые элементы отображены как неразмытые",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Текст может показываться не так как должен"}}}),NH=Object.freeze({__proto__:null,default:{lang:"sk",dir:"ltr",common:{ok:"Uložiť",cancel:"Zrušiť",key_backspace:"Backspace",key_del:"Delete",key_down:"šípka dole",key_up:"šípka hore",more_opts:"Viac možností",url:"URL",width:"Šírka",height:"Výška"},misc:{powered_by:"Beží na"},ui:{toggle_stroke_tools:"Skryť/ukázať viac nástrojov pre krivku",palette_info:"Kliknutím zmeníte farbu výplne, so Shiftom zmeníte farbu obrysu",zoom_level:"Zmena priblíženia",panel_drag:"Potiahnutie vľavo/vpravo na zmenu veľkosti bočného panela",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Zmeniť ID elementu",fill_color:"Zmeniť farbu výplne",stroke_color:"Zmeniť farbu obrysu",stroke_style:"Zmeniť štýl obrysu",stroke_width:"Zmeniť hrúbku obrysu",pos_x:"Zmeniť súradnicu X",pos_y:"Zmeniť súradnicu Y",linecap_butt:"Koniec čiary: presný",linecap_round:"Koniec čiary: zaoblený",linecap_square:"Koniec čiary: so štvorcovým presahom",linejoin_bevel:"Napojenie čiar: skosené",linejoin_miter:"Napojenie čiar: ostré",linejoin_round:"Napojenie čiar: oblé",angle:"Zmeniť uhol natočenia",blur:"Zmeniť intenzitu rozmazania",opacity:"Zmeniť prehľadnosť vybraných položiek",circle_cx:"Zmeniť súradnicu X stredu kružnice",circle_cy:"Zmeniť súradnicu Y stredu kružnice",circle_r:"Zmeniť polomer kružnice",ellipse_cx:"Zmeniť súradnicu X stredu elipsy",ellipse_cy:"Zmeniť súradnicu Y stredu elipsy",ellipse_rx:"Zmeniť polomer X elipsy",ellipse_ry:"Zmeniť polomer Y elipsy",line_x1:"Zmeniť počiatočnú súradnicu X čiary",line_x2:"Zmeniť koncovú súradnicu X čiary",line_y1:"Zmeniť počiatočnú súradnicu Y čiary",line_y2:"Zmeniť koncovú súradnicu Y čiary",rect_height:"Zmena výšku obdĺžnika",rect_width:"Zmeniť šírku obdĺžnika",corner_radius:"Zmeniť zaoblenie rohov obdĺžnika",image_width:"Zmeniť šírku obrázka",image_height:"Zmeniť výšku obrázka",image_url:"Zmeniť URL",node_x:"Zmeniť uzlu súradnicu X",node_y:"Zmeniť uzlu súradnicu Y",seg_type:"Zmeniť typ segmentu",straight_segments:"Rovný",curve_segments:"Krivka",text_contents:"Zmeniť text",font_family:"Zmeniť font",font_size:"Zmeniť veľkosť písma",bold:"Tučné",italic:"Kurzíva",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Hlavné menu",bkgnd_color_opac:"Zmeniť farbu a priehľadnosť pozadia",connector_no_arrow:"Spojnica bez šípok",fitToContent:"Prispôsobiť obsahu",fit_to_all:"Prisposobiť celému obsahu",fit_to_canvas:"Prispôsobiť stránke",fit_to_layer_content:"Prispôsobiť obsahu vrstvy",fit_to_sel:"Prispôsobiť výberu",align_relative_to:"Zarovnať relatívne k ...",relativeTo:"vzhľadom k:",page:"stránke",largest_object:"najväčšiemu objektu",selected_objects:"zvoleným objektom",smallest_object:"najmenšiemu objektu",new_doc:"Nový obrázok",open_doc:"Otvoriť obrázok",export_img:"Export",save_doc:"Uložiť obrázok",import_doc:"Import Image",align_to_page:"Zarovnať element na stránku",align_bottom:"Zarovnať dole",align_center:"Zarovnať na stred",align_left:"Zarovnať doľava",align_middle:"Zarovnať na stred",align_right:"Zarovnať doprava",align_top:"Zarovnať hore",mode_select:"Výber",mode_fhpath:"Ceruzka",mode_line:"Čiara",mode_rect:"Obdĺžnik",mode_square:"Štvorec",mode_fhrect:"Obdĺžnik voľnou rukou",mode_ellipse:"Elipsa",mode_circle:"Kružnica",mode_fhellipse:"Elipsa voľnou rukou",mode_path:"Krivka",mode_text:"Text",mode_image:"Obrázok",mode_zoom:"Priblíženie",no_embed:"POZNÁMKA: Tento obrázok nemôže byť vložený. Jeho zobrazenie bude závisieť na jeho ceste",undo:"Späť",redo:"Opakovať",tool_source:"Upraviť SVG kód",wireframe_mode:"Drôtový model",clone:"Klonuj element(y)",del:"Zmaž element(y)",group_elements:"Zoskupiť elementy",make_link:"Naviaž odkaz (hyper)link",set_link_url:"Nastav odkaz URL (ak prázdny, odstráni sa)",to_path:"Previesť na krivku",reorient_path:"Zmeniť orientáciu krivky",ungroup:"Zrušiť skupinu",docprops:"Vlastnosti dokumentu",editor_homepage:"SVG-Edit Home Page",move_bottom:"Presunúť spodok",move_top:"Presunúť na vrch",node_clone:"Klonovať uzol",node_delete:"Zmazať uzol",node_link:"Prepojiť kontrolné body",add_subpath:"Pridať ďalšiu súčasť krivky",openclose_path:"Otvoriť/uzatvoriť súčasť krivky",source_save:"Uložiť",cut:"Vystrihnutie",copy:"Kópia",paste:"Vloženie",paste_in_place:"Vloženie na pôvodnom mieste",delete:"Zmazanie",group:"Group",move_front:"Vysuň navrch",move_up:"Vysuň vpred",move_down:"Zasuň na spodok",move_back:"Zasuň dozadu"},layers:{layer:"Vrstva",layers:"Vrstvy",del:"Odstrániť vrstvu",move_down:"Presunúť vrstvu dole",new:"Nová vrstva",rename:"Premenovať vrstvu",move_up:"Presunúť vrstvu hore",dupe:"Zduplikovať vrstvu",merge_down:"Zlúčiť s vrstvou dole",merge_all:"Zlúčiť všetko",move_elems_to:"Presunúť elementy do:",move_selected:"Presunúť vybrané elementy do inej vrstvy"},config:{image_props:"Vlastnosti obrázka",doc_title:"Titulok",doc_dims:"Rozmery plátna",included_images:"Vložené obrázky",image_opt_embed:"Vložiť data (lokálne súbory)",image_opt_ref:"Použiť referenciu na súbor",editor_prefs:"Vlastnosti editora",icon_size:"Veľkosť ikon",language:"Jazyk",background:"Zmeniť pozadie",editor_img_url:"Image URL",editor_bg_note:"Poznámka: Pozadie nebude uložené spolu s obrázkom.",icon_large:"Veľká",icon_medium:"Stredná",icon_small:"Malá",icon_xlarge:"Extra veľká",select_predefined:"Vybrať preddefinovaný:",units_and_rulers:"Jednotky & Pravítka",show_rulers:"Ukáž pravítka",base_unit:"Základné jednotky:",grid:"Mriežka",snapping_onoff:"Priväzovanie (do mriežky) zap/vyp",snapping_stepsize:"Priväzovanie (do mriežky) veľkosť kroku:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Neplatná hodnota",noContentToFitTo:"Vyberte oblasť na prispôsobenie",dupeLayerName:"Vrstva s daným názvom už existuje!",enterUniqueLayerName:"Zadajte jedinečný názov vrstvy",enterNewLayerName:"Zadajte názov vrstvy",layerHasThatName:"Vrstva už má zadaný tento názov",QmoveElemsToLayer:"Presunúť elementy do vrstvy '%s'?",QwantToClear:"Naozaj chcete vymazať kresbu?\n(História bude taktiež vymazaná!)!",QwantToOpen:"Chcete otvoriť nový súbor?\nTo však tiež vymaže Vašu UNDO knižnicu!",QerrorsRevertToSource:"Chyba pri načítaní SVG dokumentu.\nVrátiť povodný SVG dokument?",QignoreSourceChanges:"Ignorovať zmeny v SVG dokumente?",featNotSupported:"Vlastnosť nie je podporovaná",enterNewImgURL:"Zadajte nové URL obrázka",defsFailOnSave:"POZNÁMKA: Kvôli chybe v prehliadači sa tento obrázok môže zobraziť nesprávne (napr. chýbajúce prechody či elementy). Po uložení sa zobrazí správne.",loadingImage:"Nahrávam obrázok, prosím čakajte ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Môžu sa vyskytnúť nasledujúce problémy: ",unsavedChanges:"Sú tu neuložené zmeny.",enterNewLinkURL:"Zadajte nové URL odkazu (hyperlink)",errorLoadingSVG:"Chyba: Nedajú sa načítať SVG data",URLLoadFail:"Nemožno čítať z URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),IH=Object.freeze({__proto__:null,default:{lang:"sl",dir:"ltr",common:{ok:"V redu",cancel:"Prekliči",key_backspace:"backspace",key_del:"delete",key_down:"dol",key_up:"gor",more_opts:"Več možnosti",url:"URL",width:"širina",height:"višina"},misc:{powered_by:"Izdelano z"},ui:{toggle_stroke_tools:"Pokaži/skrij več orodij za oris",palette_info:"Kliknite, če želite spremeniti barvo polnila, kliknite+Shift, če želite spremeniti barvo orisa",zoom_level:"Povečava",panel_drag:"Povlecite levo/desno za ogled stranske vrstice",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"ID elementa",fill_color:"Spremeni barvo polnila",stroke_color:"Spremeni barvo orisa",stroke_style:"Spremeni slog orisa",stroke_width:"Spreminjanje širino orisa",pos_x:"Spremeni X koordinato",pos_y:"Spremeni Y koordinato",linecap_butt:"Začetek črte: odsekan",linecap_round:"Začetek črte: zaobljen",linecap_square:"Začetek črte: kvadraten",linejoin_bevel:"Ovinek črte: Odsekan",linejoin_miter:"Linejoin: V kot",linejoin_round:"Linejoin: Zaobljen",angle:"Spremeni kot zasuka",blur:"Spremeni zameglitev roba",opacity:"Spremeni prosojnost",circle_cx:"Spremeni CX koordinato",circle_cy:"Spremeni CY koordinato",circle_r:"Spremeni polmer kroga",ellipse_cx:"Spremeni CX koordinato",ellipse_cy:"Spremeni CY koordinato",ellipse_rx:"Spremeni X polmer",ellipse_ry:"Spremeni Y polmer",line_x1:"Spremeni začetno X koordinato",line_x2:"Spremeni končno X koordinato",line_y1:"Spremeni začetno Y koordinato",line_y2:"Spremeni končno Y koordinato",rect_height:"Spremeni višino pravokotnika",rect_width:"Spremeni širino pravokotnika",corner_radius:"Spremeni Pravokotnik Corner Radius",image_width:"Spremeni širino slike",image_height:"Spremeni višino slike",image_url:"Spremeni URL",node_x:"Spremeni X koordinato oglišča",node_y:"Spremeni Y koordinato oglišča",seg_type:"Spremeni vrsto odseka",straight_segments:"Raven odsek",curve_segments:"Ukrivljen odsek",text_contents:"Spremeni besedilo",font_family:"Spremeni tip pisave",font_size:"Spremeni velikost pisave",bold:"Krepko",italic:"Poševno",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Glavni meni",bkgnd_color_opac:"Spremeni barvo / prosojnost",connector_no_arrow:"Brez puščice",fitToContent:"Prilagodi vsebini",fit_to_all:"Prilagodi vsemu",fit_to_canvas:"Prilagodi sliki",fit_to_layer_content:"Prilagodi sloju",fit_to_sel:"Prilagodi izboru",align_relative_to:"Poravnaj glede na ...",relativeTo:"glede na:",page:"page",largest_object:"največji objekt",selected_objects:"izbrani objekt",smallest_object:"najmanjši objekt",new_doc:"Nova slika",open_doc:"Odpri sliko",export_img:"Izvozi v PNG",save_doc:"Shrani sliko",import_doc:"Uvozi SVG",align_to_page:"Poravnaj na stran",align_bottom:"Poravnaj na dno",align_center:"Poravnaj na sredino",align_left:"Poravnaj levo",align_middle:"Poravnaj na sredino",align_right:"Poravnaj desno",align_top:"Poravnaj na vrh",mode_select:"Izberi",mode_fhpath:"Svinčnik",mode_line:"Crta",mode_rect:"Pravokotnik",mode_square:"Kvadrat",mode_fhrect:"Prostoročni pravokotnik",mode_ellipse:"Elipsa",mode_circle:"Krog",mode_fhellipse:"Prostoročna elipsa",mode_path:"Pot",mode_text:"Besedilo",mode_image:"Slika",mode_zoom:"Povečava",no_embed:"OPOMBA: Ta slika ne more biti vključena. It will depend on this path to be displayed",undo:"Razveljavi",redo:"Uveljavi",tool_source:"Uredi vir",wireframe_mode:"Wireframe način",clone:"Kloniraj element(e)",del:"Izbriši element(e)",group_elements:"Združi element(e)",make_link:"Vstavi (hiper)povezavo",set_link_url:"Set link URL (leave empty to remove)",to_path:"Pretvori v pot",reorient_path:"Reorient pot",ungroup:"Razdruži elemente",docprops:"Lastnosti dokumenta",editor_homepage:"SVG-Edit Home Page",move_bottom:"Premakni na dno",move_top:"Premakni na vrh",node_clone:"Kloniraj oglišče",node_delete:"Izbriši oglišče",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Shrani",cut:"Izreži",copy:"Kopiraj",paste:"Prilepi",paste_in_place:"Prilepi na mesto",delete:"Izbriši",group:"Združi",move_front:"Postavi v ospredje",move_up:"Pomakni naporej",move_down:"Pomakni nazaj",move_back:"Postavi v ozadje"},layers:{layer:"Sloj",layers:"Sloji",del:"Izbriši sloj",move_down:"Premakni navzdol",new:"Nov sloj",rename:"Preimenuj sloj",move_up:"Premakni navzgor",dupe:"Podvoji sloj",merge_down:"Združi s spodnjimi",merge_all:"Združi vse",move_elems_to:"Premakni elemente v:",move_selected:"Premakne elemente v drug sloj"},config:{image_props:"Lastnosti slike",doc_title:"Naslov",doc_dims:"Dimenzije slike",included_images:"Vključene slike",image_opt_embed:"Vključene (local files)",image_opt_ref:"Povezane (Use file reference)",editor_prefs:"Lastnosti urejevalnika",icon_size:"Velikost ikon",language:"Jezik",background:"Ozadje urejevalnika",editor_img_url:"URL slike",editor_bg_note:"OPOMBA: Ozdaje ne bo shranjeno s sliko.",icon_large:"velike",icon_medium:"srednje",icon_small:"majhne",icon_xlarge:"zelo velike",select_predefined:"Izberi prednastavljeno:",units_and_rulers:"Enote & ravnilo",show_rulers:"Pokaži ravnilo",base_unit:"Osnovne enote",grid:"Mreža",snapping_onoff:"Pripni na mrežo DA/NE",snapping_stepsize:"Snapping Step-Size:"},notification:{invalidAttrValGiven:"Napačna vrednost!",noContentToFitTo:"Ni vsebine za prilagajanje",dupeLayerName:"Sloj s tem imenom že obstajal!",enterUniqueLayerName:"Vnesite edinstveno ime sloja",enterNewLayerName:"Vnesite ime novega sloja",layerHasThatName:"Sloje že ima to ime",QmoveElemsToLayer:"Premaknem izbrane elemente v sloj '%s'?",QwantToClear:"Ali želite počistiti risbo?\nTo bo izbrisalo tudi zgodovino korakov (ni mogoče razveljaviti)!",QwantToOpen:"Ali želite odpreti novo datoteko?\nTo bo izbrisalo tudi zgodovino korakov (ni mogoče razveljaviti)!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignoriram spremembe, narejene v SVG kodi?",featNotSupported:"Ni podprto",enterNewImgURL:"Vnesite nov URL slike",defsFailOnSave:"OPOMBA: Zaradi napake vašega brskalnika obstaja možnost, da ta slika ni prikazan pravilno (manjkajo določeni elementi ali gradient). Vseeno bo prikaz pravilen, ko bo slika enkrat shranjena.",loadingImage:"Nalagam sliko, prosimo, počakajte ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"Obstajajo neshranjene spremembe.",enterNewLinkURL:"Vnesite novo URL povezavo",errorLoadingSVG:"Napaka: Ne morem naložiti SVG podatkov",URLLoadFail:"Ne morem naložiti z URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),OH=Object.freeze({__proto__:null,default:{lang:"sq",dir:"ltr",common:{ok:"Ruaj",cancel:"Anulo",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klikoni për të ndryshuar mbushur me ngjyra, shift-klikoni për të ndryshuar ngjyrën pash",zoom_level:"Ndryshimi zoom nivel",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Ndryshimi mbush color",stroke_color:"Change color pash",stroke_style:"Ndryshimi dash goditje stil",stroke_width:"Ndryshimi goditje width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Kënd Ndryshimi rrotullim",blur:"Change gaussian blur value",opacity:"Ndryshimi zgjedhur errësirë item",circle_cx:"Cx rrethi Ndryshimi i bashkërenduar",circle_cy:"Ndryshimi i rrethit cy koordinuar",circle_r:"Rreze rreth Ndryshimi i",ellipse_cx:"Ndryshimi elips e cx koordinuar",ellipse_cy:"Elips cy Ndryshimi i bashkërenduar",ellipse_rx:"Rreze x elips Ndryshimi i",ellipse_ry:"Radiusi y elips ndërroj",line_x1:"Shkarko Ndryshimi që fillon x koordinuar",line_x2:"Linjë Ndryshimi i fund x koordinuar",line_y1:"Shkarko Ndryshimi që fillon y koordinuar",line_y2:"Shkarko Ndryshimi i dhënë fund y koordinuar",rect_height:"Height Ndryshimi drejtkëndësh",rect_width:"Width Ndryshimi drejtkëndësh",corner_radius:"Ndryshimi Rectangle Corner Radius",image_width:"Ndryshimi image width",image_height:"Height të ndryshuar imazhin",image_url:"Ndrysho URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Text contents Ndryshimi",font_family:"Ndryshimi Font Family",font_size:"Ndryshimi Font Size",bold:"Bold Text",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change color background / patejdukshmëri",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit për të gjithë përmbajtjen",fit_to_canvas:"Fit në kanavacë",fit_to_layer_content:"Shtresë Fit to content",fit_to_sel:"Fit to Selection",align_relative_to:"Vendose në lidhje me ...",relativeTo:"lidhje me:",page:"faqe",largest_object:"madh objekt",selected_objects:"objektet e zgjedhur",smallest_object:"objektit më të vogël",new_doc:"New Image",open_doc:"Image Hapur",export_img:"Export",save_doc:"Image Ruaj",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Mesme",align_right:"Align Right",align_top:"Align Top",mode_select:"Zgjidhni Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Lëndë Hand Rectangle",mode_ellipse:"Elips",mode_circle:"Rrethi",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Burimi Edit",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementet e Grupit",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elemente Ungroup",docprops:"Dokumenti Prona",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Ruaj",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Down Layer",new:"Re Shtresa",rename:"Rename Layer",move_up:"Move Up Layer",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Zgjidhni paracaktuara:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),FH=Object.freeze({__proto__:null,default:{lang:"sr",dir:"ltr",common:{ok:"Сачувати",cancel:"Откажи",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Кликните да бисте променили боју попуне, Схифт-кликните да промените боју удар",zoom_level:"Промените ниво зумирања",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Промена боје попуне",stroke_color:"Промена боје удар",stroke_style:"Промена ход Дасх стил",stroke_width:"Промена удара ширина",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Промени ротације Угао",blur:"Change gaussian blur value",opacity:"Промена изабране ставке непрозирност",circle_cx:"Промена круг'с ЦКС координатни",circle_cy:"Промена круг'с ср координатни",circle_r:"Промена круга је полупречник",ellipse_cx:"Промена елипса ЦКС'с координатни",ellipse_cy:"Промена елипса'с ср координатни",ellipse_rx:"Промена елипса'с Кс радијуса",ellipse_ry:"Промена елипса је радијус Ы",line_x1:"Промена линија Стартни кс координата",line_x2:"Промена линија је завршетак кс координата",line_y1:"Промена линија у координатни почетак Ы",line_y2:"Промена линија је Ы координата се завршава",rect_height:"Промени правоугаоник висина",rect_width:"Промени правоугаоник ширине",corner_radius:"Промена правоугаоник Кутак радијуса",image_width:"Промени слику ширине",image_height:"Промени слику висине",image_url:"Промените УРЛ адресу",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Промена садржаја текстуалне",font_family:"Цханге фонт породицу",font_size:"Цханге фонт сизе",bold:"Подебљан текст",italic:"Италиц текст",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Промена боје позадине / непрозирност",connector_no_arrow:"No arrow",fitToContent:"Стане на садржај",fit_to_all:"Уклопи у сав садржај",fit_to_canvas:"Стане на платну",fit_to_layer_content:"Уклопи у слоју садржај",fit_to_sel:"Уклопи у избор",align_relative_to:"Алигн у односу на ...",relativeTo:"у односу на:",page:"страна",largest_object:"Највећи објекат",selected_objects:"изабраних објеката",smallest_object:"Најмањи објекат",new_doc:"Нова слика",open_doc:"Отвори слике",export_img:"Export",save_doc:"Сачувај слика",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Поравнај доле",align_center:"Поравнај по центру",align_left:"Поравнај лево",align_middle:"Алигн Средњи",align_right:"Поравнај десно",align_top:"Поравнајте врх",mode_select:"Изаберите алатку",mode_fhpath:"Алатка оловка",mode_line:"Линија Алат",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Фрее-Ручни правоугаоник",mode_ellipse:"Елипса",mode_circle:"Круг",mode_fhellipse:"Фрее-Ручни Елипса",mode_path:"Path Tool",mode_text:"Текст Алат",mode_image:"Алатка за слике",mode_zoom:"Алатка за зумирање",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Поништи",redo:"Редо",tool_source:"Уреди Извор",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група Елементи",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Разгрупирање Елементи",docprops:"Особине документа",editor_homepage:"SVG-Edit Home Page",move_bottom:"Премести на доле",move_top:"Премести на врх",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Сачувати",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Избриши слој",move_down:"Помери слој доле",new:"Нови слој",rename:"Преименуј слој",move_up:"Помери слој Горе",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Изаберите унапред дефинисани:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),UH=Object.freeze({__proto__:null,default:{lang:"sv",dir:"ltr",common:{ok:"Spara",cancel:"Avbryt",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klicka för att ändra fyllningsfärg, shift-klicka för att ändra färgar",zoom_level:"Ändra zoomnivå",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Ändra fyllningsfärg",stroke_color:"Ändra färgar",stroke_style:"Ändra stroke Dash stil",stroke_width:"Ändra stroke bredd",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Ändra rotationsvinkel",blur:"Change gaussian blur value",opacity:"Ändra markerat objekt opacitet",circle_cx:"Ändra cirkeln cx samordna",circle_cy:"Ändra cirkeln samordna cy",circle_r:"Ändra cirkelns radie",ellipse_cx:"Ändra ellips's cx samordna",ellipse_cy:"Ändra ellips's samordna cy",ellipse_rx:"Ändra ellips's x radie",ellipse_ry:"Ändra ellips's y radie",line_x1:"Ändra Lines startar x samordna",line_x2:"Ändra Lines slutar x samordna",line_y1:"Ändra Lines startar Y-koordinat",line_y2:"Ändra Lines slutar Y-koordinat",rect_height:"Ändra rektangel höjd",rect_width:"Ändra rektangel bredd",corner_radius:"Ändra rektangel hörnradie",image_width:"Ändra bild bredd",image_height:"Ändra bildhöjd",image_url:"Ändra URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Ändra textinnehållet",font_family:"Ändra Typsnitt",font_size:"Ändra textstorlek",bold:"Fet text",italic:"Kursiv text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Ändra bakgrundsfärg / opacitet",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Passar till allt innehåll",fit_to_canvas:"Anpassa till duk",fit_to_layer_content:"Anpassa till lager innehåll",fit_to_sel:"Anpassa till val",align_relative_to:"Justera förhållande till ...",relativeTo:"jämfört:",page:"sida",largest_object:"största objekt",selected_objects:"valda objekt",smallest_object:"minsta objektet",new_doc:"New Image",open_doc:"Öppna bild",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Centrera",align_left:"Vänsterjustera",align_middle:"Justera Middle",align_right:"Högerjustera",align_top:"Justera Top",mode_select:"Markeringsverktyget",mode_fhpath:"Pennverktyget",mode_line:"Linjeverktyg",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Fri hand rektangel",mode_ellipse:"Ellips",mode_circle:"Circle",mode_fhellipse:"Fri hand Ellipse",mode_path:"Path Tool",mode_text:"Textverktyg",mode_image:"Bildverktyg",mode_zoom:"Zoomverktyget",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Ångra",redo:"Redo",tool_source:"Redigera källa",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Dela Elements",docprops:"Dokumentegenskaper",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Flytta till början",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Spara",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Radera Layer",move_down:"Flytta Layer Down",new:"New Layer",rename:"Byt namn på Layer",move_up:"Flytta Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Välj fördefinierad:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),MH=Object.freeze({__proto__:null,default:{lang:"sw",dir:"ltr",common:{ok:"Okoa",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click kubadili kujaza color, skiftarbete-click kubadili kiharusi color",zoom_level:"Change zoom ngazi",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change kujaza Michezo",stroke_color:"Change kiharusi Michezo",stroke_style:"Change kiharusi dash style",stroke_width:"Change kiharusi width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change mzunguko vinkel",blur:"Change gaussian blur value",opacity:"Change selected opacity punkt",circle_cx:"Change mduara's CX kuratibu",circle_cy:"Change mduara's cy kuratibu",circle_r:"Change mduara's Radius",ellipse_cx:"Change ellipse s CX kuratibu",ellipse_cy:"Change ellipse s cy kuratibu",ellipse_rx:"Change ellipse s x Radius",ellipse_ry:"Change ellipse's y Radius",line_x1:"Change Mpya's mapya x kuratibu",line_x2:"Change Mpya's kuishia x kuratibu",line_y1:"Change Mpya's mapya y kuratibu",line_y2:"Change Mpya's kuishia y kuratibu",rect_height:"Change Mstatili height",rect_width:"Change Mstatili width",corner_radius:"Change Mstatili Corner Radius",image_width:"Change image width",image_height:"Change image urefu",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change Nakala contents",font_family:"Change font Family",font_size:"Change font Size",bold:"Bold Nakala",italic:"Italiki Nakala",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color / opacity",connector_no_arrow:"No arrow",fitToContent:"Waliopo Content",fit_to_all:"Waliopo all content",fit_to_canvas:"Wanaofaa Canvas",fit_to_layer_content:"Waliopo safu content",fit_to_sel:"Waliopo uteuzi",align_relative_to:"Align jamaa na ...",relativeTo:"relativa att:",page:"Page",largest_object:"ukubwa object",selected_objects:"waliochaguliwa vitu",smallest_object:"minsta object",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Kati align",align_right:"Align Right",align_top:"Align Juu",mode_select:"Select Tool",mode_fhpath:"Penseli Tool",mode_line:"Mpya Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Nakala Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Tengua",redo:"Redo",tool_source:"Edit Lugha",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Kikundi Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Kuhama Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"Mpya Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),RH=Object.freeze({__proto__:null,default:{lang:"test",dir:"ltr",common:{ok:"OK",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width by 1, shift-click to change by 0.1",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"selected objects",smallest_object:"smallest object",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Apply Changes",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Move Layer Up",move_down:"Move Layer Down",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),DH=Object.freeze({__proto__:null,default:{lang:"th",dir:"ltr",common:{ok:"บันทึก",cancel:"ยกเลิก",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"คลิกเพื่อเปลี่ยนใส่สีกะคลิกเปลี่ยนสีจังหวะ",zoom_level:"เปลี่ยนระดับการซูม",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"เปลี่ยนใส่สี",stroke_color:"สีจังหวะเปลี่ยน",stroke_style:"รีบเปลี่ยนสไตล์จังหวะ",stroke_width:"ความกว้างจังหวะเปลี่ยน",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"มุมหมุนเปลี่ยน",blur:"Change gaussian blur value",opacity:"เปลี่ยนความทึบเลือกรายการ",circle_cx:"Cx วงกลมเปลี่ยนของพิกัด",circle_cy:"วงกลมเปลี่ยนเป็น cy ประสานงาน",circle_r:"รัศมีวงกลมเปลี่ยนเป็น",ellipse_cx:"เปลี่ยน ellipse ของ cx ประสานงาน",ellipse_cy:"Ellipse เปลี่ยนของ cy ประสานงาน",ellipse_rx:"Ellipse เปลี่ยนของรัศมี x",ellipse_ry:"Ellipse เปลี่ยนของรัศมี y",line_x1:"สายเปลี่ยนเป็นเริ่มต้น x พิกัด",line_x2:"สายเปลี่ยนเป็นสิ้นสุด x พิกัด",line_y1:"สายเปลี่ยนเป็นเริ่มต้น y พิกัด",line_y2:"สายเปลี่ยนเป็นสิ้นสุด y พิกัด",rect_height:"ความสูงสี่เหลี่ยมผืนผ้าเปลี่ยน",rect_width:"ความกว้างสี่เหลี่ยมผืนผ้าเปลี่ยน",corner_radius:"รัศมีเปลี่ยนสี่เหลี่ยมผืนผ้า Corner",image_width:"ความกว้างเปลี่ยนรูปภาพ",image_height:"ความสูงเปลี่ยนรูปภาพ",image_url:"URL เปลี่ยน",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"เปลี่ยนเนื้อหาข้อความ",font_family:"ครอบครัว Change Font",font_size:"เปลี่ยนขนาดตัวอักษร",bold:"ข้อความตัวหนา",italic:"ข้อความตัวเอียง",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"สีพื้นหลังเปลี่ยน / ความทึบ",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"พอดีกับเนื้อหาทั้งหมด",fit_to_canvas:"เหมาะสมในการผ้าใบ",fit_to_layer_content:"พอดีเนื้อหาชั้นที่",fit_to_sel:"เหมาะสมในการเลือก",align_relative_to:"จัดชิดเทียบกับ ...",relativeTo:"เทียบกับ:",page:"หน้า",largest_object:"ที่ใหญ่ที่สุดในวัตถุ",selected_objects:"วัตถุเลือกตั้ง",smallest_object:"วัตถุที่เล็กที่สุด",new_doc:"รูปภาพใหม่",open_doc:"ภาพเปิด",export_img:"Export",save_doc:"บันทึกรูปภาพ",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"ด้านล่างชิด",align_center:"จัดแนวกึ่งกลาง",align_left:"จัดชิดซ้าย",align_middle:"กลางชิด",align_right:"จัดชิดขวา",align_top:"ด้านบนชิด",mode_select:"เครื่องมือเลือก",mode_fhpath:"เครื่องมือดินสอ",mode_line:"เครื่องมือ Line",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"สี่เหลี่ยมผืนผ้า Free-Hand",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Ellipse Free-Hand",mode_path:"Path Tool",mode_text:"เครื่องมือ Text",mode_image:"เครื่องมือ Image",mode_zoom:"เครื่องมือซูม",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"เลิก",redo:"ทำซ้ำ",tool_source:"แหล่งที่มาแก้ไข",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"องค์ประกอบของกลุ่ม",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"องค์ประกอบ Ungroup",docprops:"คุณสมบัติของเอกสาร",editor_homepage:"SVG-Edit Home Page",move_bottom:"ย้ายไปด้านล่าง",move_top:"ย้ายไปด้านบน",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"บันทึก",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"ย้าย Layer ลง",new:"Layer ใหม่",rename:"Layer เปลี่ยนชื่อ",move_up:"ย้าย Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"เลือกที่กำหนดไว้ล่วงหน้า:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),jH=Object.freeze({__proto__:null,default:{lang:"tl",dir:"ltr",common:{ok:"I-save",cancel:"I-cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"I-click upang baguhin ang punan ang kulay, paglilipat-click upang baguhin ang paghampas ng kulay",zoom_level:"Baguhin ang antas ng zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Baguhin ang punuin ng kulay",stroke_color:"Baguhin ang kulay ng paghampas",stroke_style:"Baguhin ang stroke pagsugod estilo",stroke_width:"Baguhin ang stroke lapad",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Baguhin ang pag-ikot anggulo",blur:"Change gaussian blur value",opacity:"Palitan ang mga napiling bagay kalabuan",circle_cx:"Cx Baguhin ang bilog's coordinate",circle_cy:"Baguhin ang bilog's cy coordinate",circle_r:"Baguhin ang radius ng bilog",ellipse_cx:"Baguhin ang tambilugan's cx-ugma",ellipse_cy:"Baguhin ang tambilugan's cy coordinate",ellipse_rx:"X radius Baguhin ang tambilugan's",ellipse_ry:"Y radius Baguhin ang tambilugan's",line_x1:"Baguhin ang linya ng simula x coordinate",line_x2:"Baguhin ang linya ay nagtatapos x coordinate",line_y1:"Baguhin ang linya ng simula y coordinate",line_y2:"Baguhin ang linya ay nagtatapos y coordinate",rect_height:"Baguhin ang rektanggulo taas",rect_width:"Baguhin ang rektanggulo lapad",corner_radius:"Baguhin ang Parihaba Corner Radius",image_width:"Baguhin ang lapad ng imahe",image_height:"Baguhin ang taas ng imahe",image_url:"Baguhin ang URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Baguhin ang mga nilalaman ng teksto",font_family:"Baguhin ang Pamilya ng Font",font_size:"Baguhin ang Laki ng Font",bold:"Bold Text",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Baguhin ang kulay ng background / kalabuan",connector_no_arrow:"No arrow",fitToContent:"Pagkasyahin sa Nilalaman",fit_to_all:"Pagkasyahin sa lahat ng mga nilalaman",fit_to_canvas:"Pagkasyahin sa tolda",fit_to_layer_content:"Pagkasyahin sa layer nilalaman",fit_to_sel:"Pagkasyahin sa pagpili",align_relative_to:"Pantayin sa kamag-anak sa ...",relativeTo:"kamag-anak sa:",page:"pahina",largest_object:"pinakamalaking bagay",selected_objects:"inihalal na mga bagay",smallest_object:"pinakamaliit na bagay",new_doc:"Bagong Imahe",open_doc:"Buksan ang Image",export_img:"Export",save_doc:"I-save ang Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Pantayin sa Ibaba",align_center:"Pantayin sa Gitna",align_left:"Pantayin ang Kaliwa",align_middle:"Pantayin sa Gitnang",align_right:"Pantayin sa Kanan",align_top:"Pantayin Top",mode_select:"Piliin ang Tool",mode_fhpath:"Kasangkapan ng lapis",mode_line:"Line Kasangkapan",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Libreng-kamay Parihaba",mode_ellipse:"Tambilugan",mode_circle:"Circle",mode_fhellipse:"Libreng-kamay tambilugan",mode_path:"Path Tool",mode_text:"Text Kasangkapan",mode_image:"Image Kasangkapan",mode_zoom:"Mag-zoom Kasangkapan",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Bawiin",redo:"Gawin muli",tool_source:"I-edit ang Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Sangkap",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Sangkap",docprops:"Document Katangian",editor_homepage:"SVG-Edit Home Page",move_bottom:"Ilipat sa Ibaba",move_top:"Ilipat sa Tuktok",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"I-save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Tanggalin Layer",move_down:"Ilipat Layer Down",new:"Bagong Layer",rename:"Palitan ang pangalan ng Layer",move_up:"Ilipat Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Piliin ang paunang-natukoy na:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),QH=Object.freeze({__proto__:null,default:{lang:"tr",dir:"ltr",common:{ok:"Kaydetmek",cancel:"Iptal",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Tıklatın renk, vardiya dolgu zamanlı rengini değiştirmek için tıklayın değiştirmek için",zoom_level:"Yakınlaştırma düzeyini değiştirebilirsiniz",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Renk değiştirmek doldurmak",stroke_color:"Değiştirmek inme renk",stroke_style:"Değiştirmek inme çizgi stili",stroke_width:"Değiştirmek vuruş genişliği",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Değiştirmek dönme açısı",blur:"Change gaussian blur value",opacity:"Değiştirmek öğe opacity seçilmiş",circle_cx:"Değiştirmek daire's cx koordine",circle_cy:"Değiştirmek daire cy koordine's",circle_r:"Değiştirmek daire yarıçapı",ellipse_cx:"'s Koordine cx elips Girişi",ellipse_cy:"Değiştirmek elips cy koordine's",ellipse_rx:"Değiştirmek elips's x yarıçapı",ellipse_ry:"Değiştirmek elips Y yarıçapı",line_x1:"Değiştirmek hattı's koordine x başlangıç",line_x2:"Değiştirmek hattı's koordine x biten",line_y1:"Değiştirmek hattı y başlangıç's koordine",line_y2:"Değiştirmek hattı y biten's koordine",rect_height:"Değiştirmek dikdörtgen yüksekliği",rect_width:"Değiştirmek dikdörtgen genişliği",corner_radius:"Değiştirmek Dikdörtgen Köşe Yarıçap",image_width:"Değiştirmek görüntü genişliği",image_height:"Değiştirmek görüntü yüksekliği",image_url:"Değiştirmek URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Değiştirmek metin içeriği",font_family:"Font değiştir Aile",font_size:"Change font size",bold:"Kalın Yazı",italic:"Italik yazı",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Arka plan rengini değiştirmek / opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit tüm içerik için",fit_to_canvas:"Fit tuvaline",fit_to_layer_content:"Sığacak şekilde katman içerik",fit_to_sel:"Fit seçimine",align_relative_to:"Align göre ...",relativeTo:"göreli:",page:"sayfa",largest_object:"en büyük nesne",selected_objects:"seçilen nesneleri",smallest_object:"küçük nesne",new_doc:"Yeni Resim",open_doc:"Aç Resim",export_img:"Export",save_doc:"Görüntüyü Kaydet",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Ortala",align_left:"Sola",align_middle:"Align Orta",align_right:"Sağa Hizala",align_top:"Align Top",mode_select:"Seçim aracı",mode_fhpath:"Kalem Aracı",mode_line:"Line Aracı",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-El Dikdörtgen",mode_ellipse:"Elips",mode_circle:"Daire",mode_fhellipse:"Free-El Elips",mode_path:"Path Tool",mode_text:"Metin Aracı",mode_image:"Resim Aracı",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Geri",redo:"Redo",tool_source:"Değiştir Kaynak",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grup Elemanları",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Çöz Elemanları",docprops:"Belge Özellikleri",editor_homepage:"SVG-Edit Home Page",move_bottom:"Altına gider",move_top:"Üste taşı",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Kaydetmek",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Katman Aşağı Taşı",new:"Yeni Katman",rename:"Rename Katman",move_up:"Up Katman Taşı",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Seçin önceden tanımlanmış:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),HH=Object.freeze({__proto__:null,default:{lang:"uk",dir:"ltr",common:{ok:"Зберегти",cancel:"Скасування",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Натисніть для зміни кольору заливки, Shift-Click змінити обвід",zoom_level:"Зміна масштабу",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Зміна кольору заливки",stroke_color:"Зміна кольору інсульт",stroke_style:"Зміна стилю інсульт тире",stroke_width:"Зміни ширина штриха",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Зміна кута повороту",blur:"Change gaussian blur value",opacity:"Зміна вибраного пункту непрозорості",circle_cx:"CX зміну кола координата",circle_cy:"Зміни гуртка CY координати",circle_r:"Зміна кола's радіус",ellipse_cx:"Зміни еліпса CX координати",ellipse_cy:"Зміни еліпса CY координати",ellipse_rx:"Х Зміни еліпса радіусом",ellipse_ry:"Зміни у еліпса радіусом",line_x1:"Зміни починає координати лінія х",line_x2:"Зміни за період, що закінчився лінія координати х",line_y1:"Зміни лінія починає Y координата",line_y2:"Зміна за період, що закінчився лінія Y координата",rect_height:"Зміни прямокутник висотою",rect_width:"Зміна ширини прямокутника",corner_radius:"Зміни прямокутник Corner Radius",image_width:"Зміни ширина зображення",image_height:"Зміна висоти зображення",image_url:"Змінити URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Зміна змісту тексту",font_family:"Зміни Сімейство шрифтів",font_size:"Змінити розмір шрифту",bold:"Товстий текст",italic:"Похилий текст",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Зміна кольору тла / непрозорість",connector_no_arrow:"No arrow",fitToContent:"За розміром змісту",fit_to_all:"За розміром весь вміст",fit_to_canvas:"Розмір полотна",fit_to_layer_content:"За розміром шар змісту",fit_to_sel:"Вибір розміру",align_relative_to:"Вирівняти по відношенню до ...",relativeTo:"в порівнянні з:",page:"сторінка",largest_object:"найбільший об'єкт",selected_objects:"обраними об'єктами",smallest_object:"маленький об'єкт",new_doc:"Нове зображення",open_doc:"Відкрити зображення",export_img:"Export",save_doc:"Зберегти малюнок",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Вирівняти по нижньому краю",align_center:"Вирівняти по центру",align_left:"По лівому краю",align_middle:"Вирівняти Близького",align_right:"По правому краю",align_top:"Вирівняти по верхньому краю",mode_select:"Виберіть інструмент",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Вільної руки Прямокутник",mode_ellipse:"Еліпс",mode_circle:"Коло",mode_fhellipse:"Вільної руки Еліпс",mode_path:"Path Tool",mode_text:"Текст Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Скасувати",redo:"Повтор",tool_source:"Змінити вихідний",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група елементів",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Елементи розгрупувати",docprops:"Властивості документа",editor_homepage:"SVG-Edit Home Page",move_bottom:"Перемістити вниз",move_top:"Перемістити догори",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Зберегти",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Видалити шар",move_down:"Перемістити шар на",new:"Новий шар",rename:"Перейменувати Шар",move_up:"Переміщення шару до",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Виберіть зумовлений:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),GH=Object.freeze({__proto__:null,default:{lang:"vi",dir:"ltr",common:{ok:"Lưu",cancel:"Hủy",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Nhấn vào đây để thay đổi đầy màu sắc, thay đổi nhấp chuột để thay đổi màu sắc đột quỵ",zoom_level:"Thay đổi mức độ phóng",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Thay đổi đầy màu sắc",stroke_color:"Thay đổi màu sắc đột quỵ",stroke_style:"Thay đổi phong cách đột quỵ dash",stroke_width:"Thay đổi chiều rộng đột quỵ",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Thay đổi góc xoay",blur:"Change gaussian blur value",opacity:"Thay đổi lựa chọn opacity mục",circle_cx:"Thay đổi hình tròn của cx phối hợp",circle_cy:"Thay đổi hình tròn của vi phối hợp",circle_r:"Thay đổi bán kính của hình tròn",ellipse_cx:"Thay đổi hình elip của cx phối hợp",ellipse_cy:"Thay đổi hình elip của vi phối hợp",ellipse_rx:"Thay đổi hình elip của x bán kính",ellipse_ry:"Y Thay đổi bán kính của hình ellipse",line_x1:"Thay đổi dòng của bắt đầu từ x phối hợp",line_x2:"Thay đổi dòng của x kết thúc sớm nhất phối hợp",line_y1:"Thay đổi dòng của bắt đầu từ y phối hợp",line_y2:"Thay đổi dòng của kết thúc y phối hợp",rect_height:"Thay đổi hình chữ nhật chiều cao",rect_width:"Thay đổi hình chữ nhật chiều rộng",corner_radius:"Thay đổi chữ nhật Corner Radius",image_width:"Thay đổi hình ảnh rộng",image_height:"Thay đổi hình ảnh chiều cao",image_url:"Thay đổi URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Thay đổi nội dung văn bản",font_family:"Thay đổi Font Gia đình",font_size:"Thay đổi cỡ chữ",bold:"Bold Text",italic:"Italic Text",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Thay đổi màu nền / opacity",connector_no_arrow:"No arrow",fitToContent:"Phù hợp với nội dung",fit_to_all:"Phù hợp với tất cả nội dung",fit_to_canvas:"Phù hợp với vải",fit_to_layer_content:"Vào lớp phù hợp với nội dung",fit_to_sel:"Phù hợp để lựa chọn",align_relative_to:"Căn liên quan đến ...",relativeTo:"liên quan đến:",page:"Page",largest_object:"lớn nhất đối tượng",selected_objects:"bầu các đối tượng",smallest_object:"nhỏ đối tượng",new_doc:"Hình mới",open_doc:"Mở Image",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Căn giữa",align_left:"Căn còn lại",align_middle:"Căn Trung",align_right:"Căn phải",align_top:"Căn Top",mode_select:"Chọn Công cụ",mode_fhpath:"Bút chì Công cụ",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Việt-Hand Hình chữ nhật",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Việt-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Hình Công cụ",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Hoàn tác",redo:"Làm lại",tool_source:"Sửa Nguồn",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Nhóm Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Chuyển đến đáy",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Lưu",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Xoá Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Đổi tên Layer",move_up:"Di chuyển Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Chọn định sẵn:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),VH=Object.freeze({__proto__:null,default:{lang:"yi",dir:"ltr",common:{ok:"היט",cancel:"באָטל מאַכן",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"גיט צו ענדערן אָנעסן קאָליר, יבעררוק-גיט צו טוישן מאַך קאָליר",zoom_level:"ענדערן פארגרעסער הייך",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"ענדערן אָנעסן קאָליר",stroke_color:"טוישן מאַך קאָליר",stroke_style:"טוישן מאַך לאָך מאָדע",stroke_width:"טוישן מאַך ברייט",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"ענדערן ראָוטיישאַן ווינקל",blur:"Change gaussian blur value",opacity:"ענדערן סעלעקטעד נומער אָופּאַסאַטי",circle_cx:"ענדערן קרייז ס קקס קאָואָרדאַנאַט",circle_cy:"ענדערן קרייז ס סי קאָואָרדאַנאַט",circle_r:"ענדערן קרייז ס ראַדיוס",ellipse_cx:"ענדערן יליפּס ס קקס קאָואָרדאַנאַט",ellipse_cy:"ענדערן יליפּס ס סי קאָואָרדאַנאַט",ellipse_rx:"ענדערן יליפּס ס 'קס ראַדיוס",ellipse_ry:"ענדערן יליפּס ס 'י ראַדיוס",line_x1:"טוישן ליניע ס 'סטאַרטינג קס קאָואָרדאַנאַט",line_x2:"טוישן ליניע ס 'סאָף קס קאָואָרדאַנאַט",line_y1:"טוישן ליניע ס 'סטאַרטינג י קאָואָרדאַנאַט",line_y2:"טוישן ליניע ס 'סאָף י קאָואָרדאַנאַט",rect_height:"ענדערן גראָדעק הייך",rect_width:"ענדערן גראָדעק ברייט",corner_radius:"ענדערן רעקטאַנגלע קאָרנער ראַדיוס",image_width:"טוישן בילד ברייט",image_height:"טוישן בילד הייך",image_url:"ענדערן URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"ענדערן טעקסט אינהאַלט",font_family:"ענדערן פאָנט פאַמילי",font_size:"בייטן פאָנט גרייס",bold:"דרייסט טעקסט",italic:"יטאַליק טעקסט",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"ענדערן הינטערגרונט פאַרב / אָופּאַסאַטי",connector_no_arrow:"No arrow",fitToContent:"פּאַסיק צו אינהאַלט",fit_to_all:"פּאַסיק צו אַלע אינהאַלט",fit_to_canvas:"פּאַסיק צו לייוונט",fit_to_layer_content:"פּאַסיק צו שיכטע אינהאַלט",fit_to_sel:"פּאַסיק צו אָפּקלייב",align_relative_to:"יינרייען קאָרעוו צו ...",relativeTo:"קאָרעוו צו:",page:"בלאַט",largest_object:"לאַרדזשאַסט קעגן",selected_objects:"עלעקטעד אַבדזשעקץ",smallest_object:"סמאָלאַסט קעגן",new_doc:"ניו בילד",open_doc:"Open בילד",export_img:"Export",save_doc:"היט בילד",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"יינרייען באָטטאָם",align_center:"יינרייען צענטער",align_left:"יינרייען לעפט",align_middle:"יינרייען מיטל",align_right:"יינרייען רעכט",align_top:"יינרייען Top",mode_select:"סעלעקטירן טול",mode_fhpath:"בלייער טול",mode_line:"שורה טול",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-הענט רעקטאַנגלע",mode_ellipse:"עלליפּסע",mode_circle:"קאַראַהאָד",mode_fhellipse:"Free-הענט עלליפּסע",mode_path:"Path Tool",mode_text:"טעקסט טול",mode_image:"בילד טול",mode_zoom:"פארגרעסער טול",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"ופמאַכן",redo:"רעדאָ",tool_source:"רעדאַקטירן סאָרס",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"גרופּע עלעמענץ",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"ונגראָופּ עלעמענץ",docprops:"דאָקומענט פּראָפּערטיעס",editor_homepage:"SVG-Edit Home Page",move_bottom:"מאַך צו באָטטאָם",move_top:"באַוועגן צו Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"היט",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"ויסמעקן לייַער",move_down:"קער לייַער דאָוון",new:"ניו לייַער",rename:"רענאַמע לייַער",move_up:"באַוועגן לייַער אַרויף",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"סעלעקטירן פּרעדעפינעד:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),zH=Object.freeze({__proto__:null,default:{lang:"zh-CN",dir:"ltr",common:{ok:"确定",cancel:"取消",key_backspace:"退格",key_del:"删除",key_down:"下",key_up:"上",more_opts:"更多选项",url:"URL",width:"宽度",height:"高度"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"显示/隐藏更式边线工具",palette_info:"点击更改填充颜色,按住Shift键单击更改线条颜色",zoom_level:"更改缩放级别",panel_drag:"左右拖拽调整面板大小",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"元素ID",fill_color:"更改填充颜色",stroke_color:"线条的颜色变化",stroke_style:"更改线条样式",stroke_width:"更改线条宽度",pos_x:"更改X坐标",pos_y:"更改Y坐标",linecap_butt:"顶端样式: 齐平",linecap_round:"顶端样式: 圆滑",linecap_square:"顶端样式: 方块",linejoin_bevel:"连接处: 削平",linejoin_miter:"连接处: 直角",linejoin_round:"连接处: 圆角",angle:"更改旋转角度",blur:"更改高斯模糊值",opacity:"更改所选条目的不透明度",circle_cx:"改变圆的中心X坐标",circle_cy:"改变圆的中心Y坐标",circle_r:"改变圆的半径",ellipse_cx:"改变椭圆的中心X坐标",ellipse_cy:"改变椭圆的中心Y坐标",ellipse_rx:"改变椭圆的x半径",ellipse_ry:"改变椭圆的y半径",line_x1:"更改直线起点的x坐标",line_x2:"更改直线终点的x坐标",line_y1:"更改直线起点的y坐标",line_y2:"更改直线终点的y坐标",rect_height:"更改矩形的高度",rect_width:"更改矩形的宽度",corner_radius:"角半径:",image_width:"更改图像的宽度",image_height:"更改图像的高度",image_url:"更改网址",node_x:"更改节点的X坐标",node_y:"更改节点的Y坐标",seg_type:"修改线段类型",straight_segments:"直线",curve_segments:"曲线",text_contents:"更改文本内容",font_family:"更改字体样式",font_size:"更改字体大小",bold:"粗体",italic:"斜体",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"主菜单",bkgnd_color_opac:"更改背景颜色/不透明",connector_no_arrow:"无箭头",fitToContent:"适应内容",fit_to_all:"适应于所有的内容",fit_to_canvas:"适应画布",fit_to_layer_content:"适应层内容",fit_to_sel:"适应选中内容",align_relative_to:"相对对齐 ...",relativeTo:"相对于:",page:"网页",largest_object:"最大对象",selected_objects:"选中的对象",smallest_object:"最小的对象",new_doc:"新文档",open_doc:"打开文档",export_img:"导出",save_doc:"保存图像",import_doc:"导入SVG",align_to_page:"对齐元素到页面",align_bottom:"底部对齐",align_center:"居中对齐",align_left:"左对齐",align_middle:"水平居中对齐",align_right:"右对齐",align_top:"顶端对齐",mode_select:"选择工具",mode_fhpath:"铅笔工具",mode_line:"线工具",mode_rect:"矩形",mode_square:"正方形",mode_fhrect:"自由矩形",mode_ellipse:"椭圆",mode_circle:"圆形",mode_fhellipse:"自由椭圆",mode_path:"路径",mode_text:"文字工具",mode_image:"图像工具",mode_zoom:"缩放工具",no_embed:"注意: 根据SVG图像的存储位置,内嵌的位图可能无法显示!",undo:"撤消",redo:"重做",tool_source:"编辑源",wireframe_mode:"线条模式",clone:"克隆元素",del:"删除元素",group_elements:"组合元素",make_link:"创建超链接",set_link_url:"设置链接URL (设置为空以删除)",to_path:"转换为路径",reorient_path:"调整路径",ungroup:"取消组合元素",docprops:"文档属性",editor_homepage:"SVG-Edit 主页",move_bottom:"移至底部",move_top:"移至顶部",node_clone:"复制节点",node_delete:"删除节点",node_link:"连接控制点",add_subpath:"添加子路径",openclose_path:"打开/关闭 子路径",source_save:"保存",cut:"剪切",copy:"复制",paste:"粘贴",paste_in_place:"粘贴到原位置",delete:"删除",group:"组合",move_front:"移至顶部",move_up:"向上移动",move_down:"向下移动",move_back:"移至底部"},layers:{layer:"图层",layers:"图层",del:"删除图层",move_down:"向下移动图层",new:"新建图层",rename:"重命名图层",move_up:"向上移动图层",dupe:"复制图层",merge_down:"向下合并",merge_all:"全部合并",move_elems_to:"移动元素至:",move_selected:"移动元素至另一个图层"},config:{image_props:"图像属性",doc_title:"标题",doc_dims:"画布大小",included_images:"包含图像",image_opt_embed:"嵌入数据 (本地文件)",image_opt_ref:"使用文件引用",editor_prefs:"编辑器首选项",icon_size:"图标大小",language:"语言",background:"编辑器背景",editor_img_url:"图像 URL",editor_bg_note:"注意: 背景不会保存在图像中.",icon_large:"大",icon_medium:"中",icon_small:"小",icon_xlarge:"特大",select_predefined:"选择预定义:",units_and_rulers:"单位 & 标尺",show_rulers:"显示标尺",base_unit:"基本单位:",grid:"网格",snapping_onoff:"吸附开/关",snapping_stepsize:"吸附步长:",grid_color:"网格颜色"},notification:{invalidAttrValGiven:"无效的参数",noContentToFitTo:"无可适应的内容",dupeLayerName:"已存在同名的图层!",enterUniqueLayerName:"请输入一个唯一的图层名称",enterNewLayerName:"请输入新的图层名称",layerHasThatName:"图层已经采用了该名称",QmoveElemsToLayer:"您确定移动所选元素到图层'%s'吗?",QwantToClear:"您希望清除当前绘制的所有图形吗?\n该操作将无法撤消!",QwantToOpen:"您希望打开一个新文档吗?\n该操作将无法撤消!",QerrorsRevertToSource:"SVG文件解析错误.\n是否还原到最初的SVG文件?",QignoreSourceChanges:"忽略对SVG文件所作的更改么?",featNotSupported:"不支持该功能",enterNewImgURL:"请输入新图像的URLL",defsFailOnSave:"注意: 由于您所使用的浏览器存在缺陷, 该图像无法正确显示 (不支持渐变或相关元素). 修复该缺陷后可正确显示.",loadingImage:"正在加载图像, 请稍候...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"同时注意以下几点: ",unsavedChanges:"存在未保存的修改.",enterNewLinkURL:"输入新建链接的URL地址",errorLoadingSVG:"错误: 无法加载SVG数据",URLLoadFail:"无法从URL中加载",retrieving:"检索 '%s'...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),KH=Object.freeze({__proto__:null,default:{lang:"zh-HK",dir:"ltr",common:{ok:"确定",cancel:"取消",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"点击更改填充颜色,按住Shift键单击更改颜色中风",zoom_level:"更改缩放级别",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"更改填充颜色",stroke_color:"中风的颜色变化",stroke_style:"更改行程冲刺风格",stroke_width:"笔划宽度的变化",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"旋转角度的变化",blur:"Change gaussian blur value",opacity:"更改所选项目不透明",circle_cx:"改变循环的CX坐标",circle_cy:"改变循环的赛扬坐标",circle_r:"改变圆的半径",ellipse_cx:"改变椭圆的CX坐标",ellipse_cy:"改变椭圆的赛扬坐标",ellipse_rx:"改变椭圆的x半径",ellipse_ry:"改变椭圆的y半径",line_x1:"更改行的起点的x坐标",line_x2:"更改行的结束x坐标",line_y1:"更改行的起点的y坐标",line_y2:"更改行的结束y坐标",rect_height:"更改矩形的高度",rect_width:"更改矩形的宽度",corner_radius:"角半径:",image_width:"更改图像的宽度",image_height:"更改图像高度",image_url:"更改网址",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"更改文字内容",font_family:"更改字体家族",font_size:"更改字体大小",bold:"粗体",italic:"斜体文本",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"更改背景颜色/不透明",connector_no_arrow:"No arrow",fitToContent:"适合内容",fit_to_all:"适合于所有的内容",fit_to_canvas:"适合画布",fit_to_layer_content:"适合层内容",fit_to_sel:"适合选择",align_relative_to:"相对对齐 ...",relativeTo:"相对于:",page:"网页",largest_object:"最大对象",selected_objects:"选对象",smallest_object:"最小的对象",new_doc:"新形象",open_doc:"打开图像",export_img:"Export",save_doc:"保存图像",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"底部对齐",align_center:"居中对齐",align_left:"左对齐",align_middle:"中间对齐",align_right:"右对齐",align_top:"顶端对齐",mode_select:"选择工具",mode_fhpath:"铅笔工具",mode_line:"线工具",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"免费手矩形",mode_ellipse:"椭圆",mode_circle:"圈",mode_fhellipse:"免费手椭圆",mode_path:"Path Tool",mode_text:"文字工具",mode_image:"图像工具",mode_zoom:"缩放工具",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"撤消",redo:"重做",tool_source:"编辑源",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"族元素",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"文档属性",editor_homepage:"SVG-Edit 主页",move_bottom:"移至底部",move_top:"移动到顶部",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"保存",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"删除层",move_down:"层向下移动",new:"新层",rename:"重命名层",move_up:"移动层最多",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"选择预定义:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),qH=Object.freeze({__proto__:null,default:{lang:"zh-TW",dir:"ltr",common:{ok:"确定",cancel:"取消",key_backspace:"空白",key_del:"刪除",key_down:"下",key_up:"上",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"點擊更改填充顏色,按住Shift鍵單擊更改線條顏色",zoom_level:"更改縮放級別",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"更改填充顏色",stroke_color:"線條顏色",stroke_style:"更改線條(虛線)風格",stroke_width:"線條寬度",pos_x:"調整 X 軸",pos_y:"調整 Y 軸",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"旋轉角度",blur:"Change gaussian blur value",opacity:"更改所選項目不透明度",circle_cx:"改變圓的CX坐標",circle_cy:"改變圓的CY坐標",circle_r:"改變圓的半徑",ellipse_cx:"改變橢圓的圓心x軸座標",ellipse_cy:"改變橢圓的圓心y軸座標",ellipse_rx:"改變橢圓的x軸長",ellipse_ry:"改變橢圓的y軸長",line_x1:"更改行的起點的x坐標",line_x2:"更改行的終點x坐標",line_y1:"更改行的起點的y坐標",line_y2:"更改行的終點y坐標",rect_height:"更改矩形的高度",rect_width:"更改矩形的寬度",corner_radius:"角半徑:",image_width:"更改圖像的寬度",image_height:"更改圖像高度",image_url:"更改網址",node_x:"改變節點的x軸座標",node_y:"改變節點的y軸座標",seg_type:"Change Segment type",straight_segments:"直線",curve_segments:"曲線",text_contents:"更改文字內容",font_family:"更改字體",font_size:"更改字體大小",bold:"粗體",italic:"斜體",text_anchor_start:"Align the text in start",text_anchor_middle:"Align the text in middle",text_anchor_end:"Align the text in end"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"更改背景顏色/不透明",connector_no_arrow:"No arrow",fitToContent:"適合內容",fit_to_all:"適合所有的內容",fit_to_canvas:"適合畫布",fit_to_layer_content:"適合圖層內容",fit_to_sel:"適合選取的物件",align_relative_to:"相對對齊 ...",relativeTo:"相對於:",page:"網頁",largest_object:"最大的物件",selected_objects:"選取物件",smallest_object:"最小的物件",new_doc:"清空圖像",open_doc:"打開圖像",export_img:"Export",save_doc:"保存圖像",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"底部對齊",align_center:"居中對齊",align_left:"向左對齊",align_middle:"中間對齊",align_right:"向右對齊",align_top:"頂端對齊",mode_select:"選擇工具",mode_fhpath:"鉛筆工具",mode_line:"線工具",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"徒手畫矩形",mode_ellipse:"橢圓",mode_circle:"圓",mode_fhellipse:"徒手畫橢圓",mode_path:"路徑工具",mode_text:"文字工具",mode_image:"圖像工具",mode_zoom:"縮放工具",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"取消復原",redo:"復原",tool_source:"編輯SVG原始碼",wireframe_mode:"框線模式(只瀏覽線條)",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"群組",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"轉換成路徑",reorient_path:"調整路徑",ungroup:"取消群組",docprops:"文件屬性",editor_homepage:"SVG-Edit 主頁",move_bottom:"移至底部",move_top:"移動到頂部",node_clone:"增加節點",node_delete:"刪除節點",node_link:"將控制點連起來",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"保存",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"圖層",layers:"Layers",del:"刪除圖層",move_down:"向下移動圖層",new:"新增圖層",rename:"重新命名圖層",move_up:"向上移動圖層",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"移動物件到:",move_selected:"移動被點選的物件其他圖層"},config:{image_props:"圖片屬性",doc_title:"標題",doc_dims:"畫布大小",included_images:"包含圖像",image_opt_embed:"內嵌資料 (本地端檔案)",image_opt_ref:"使用檔案參照",editor_prefs:"編輯器屬性",icon_size:"圖示大小",language:"語言",background:"編輯器背景",editor_img_url:"Image URL",editor_bg_note:"注意: 編輯器背景不會和圖像一起儲存",icon_large:"大",icon_medium:"中",icon_small:"小",icon_xlarge:"特大",select_predefined:"使用預設值:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"數值給定錯誤",noContentToFitTo:"找不到符合的內容",dupeLayerName:"喔不!已經有另一個同樣名稱的圖層了!",enterUniqueLayerName:"請輸入一個名稱不重複的",enterNewLayerName:"請輸入新圖層的名稱",layerHasThatName:"圖層本來就是這個名稱(抱怨)",QmoveElemsToLayer:"要搬移所選取的物件到'%s'層嗎?",QwantToClear:"要清空圖像嗎?\n這會順便清空你的回復紀錄!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"SVG原始碼解析錯誤\n要回復到原本的SVG原始碼嗎?",QignoreSourceChanges:"要忽略對SVG原始碼的更動嗎?",featNotSupported:"未提供此功能",enterNewImgURL:"輸入新的圖片網址",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}})}}}));
|