574 lines
2.2 MiB
574 lines
2.2 MiB
import Tn from"process";var Un="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(Tn){var Un={exports:{}};return Tn(Un,Un.exports),Un.exports}var check=function(Tn){return Tn&&Tn.Math==Math&&Tn},Dn=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof Un&&Un)||function(){return this}()||Function("return this")(),fails=function(Tn){try{return!!Tn()}catch(Tn){return!0}},Qn=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Hn={}.propertyIsEnumerable,Gn=Object.getOwnPropertyDescriptor,Vn={f:Gn&&!Hn.call({1:2},1)?function propertyIsEnumerable(Tn){var Un=Gn(this,Tn);return!!Un&&Un.enumerable}:Hn},createPropertyDescriptor=function(Tn,Un){return{enumerable:!(1&Tn),configurable:!(2&Tn),writable:!(4&Tn),value:Un}},zn={}.toString,classofRaw=function(Tn){return zn.call(Tn).slice(8,-1)},Kn="".split,$n=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(Tn){return"String"==classofRaw(Tn)?Kn.call(Tn,""):Object(Tn)}:Object,requireObjectCoercible=function(Tn){if(null==Tn)throw TypeError("Can't call method on "+Tn);return Tn},toIndexedObject=function(Tn){return $n(requireObjectCoercible(Tn))},isObject=function(Tn){return"object"==typeof Tn?null!==Tn:"function"==typeof Tn},toPrimitive=function(Tn,Un){if(!isObject(Tn))return Tn;var Dn,Qn;if(Un&&"function"==typeof(Dn=Tn.toString)&&!isObject(Qn=Dn.call(Tn)))return Qn;if("function"==typeof(Dn=Tn.valueOf)&&!isObject(Qn=Dn.call(Tn)))return Qn;if(!Un&&"function"==typeof(Dn=Tn.toString)&&!isObject(Qn=Dn.call(Tn)))return Qn;throw TypeError("Can't convert object to primitive value")},Wn={}.hasOwnProperty,has=function(Tn,Un){return Wn.call(Tn,Un)},Xn=Dn.document,Yn=isObject(Xn)&&isObject(Xn.createElement),documentCreateElement=function(Tn){return Yn?Xn.createElement(Tn):{}},Jn=!Qn&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),Zn=Object.getOwnPropertyDescriptor,er={f:Qn?Zn:function getOwnPropertyDescriptor(Tn,Un){if(Tn=toIndexedObject(Tn),Un=toPrimitive(Un,!0),Jn)try{return Zn(Tn,Un)}catch(Tn){}if(has(Tn,Un))return createPropertyDescriptor(!Vn.f.call(Tn,Un),Tn[Un])}},anObject=function(Tn){if(!isObject(Tn))throw TypeError(String(Tn)+" is not an object");return Tn},tr=Object.defineProperty,nr={f:Qn?tr:function defineProperty(Tn,Un,Dn){if(anObject(Tn),Un=toPrimitive(Un,!0),anObject(Dn),Jn)try{return tr(Tn,Un,Dn)}catch(Tn){}if("get"in Dn||"set"in Dn)throw TypeError("Accessors not supported");return"value"in Dn&&(Tn[Un]=Dn.value),Tn}},rr=Qn?function(Tn,Un,Dn){return nr.f(Tn,Un,createPropertyDescriptor(1,Dn))}:function(Tn,Un,Dn){return Tn[Un]=Dn,Tn},setGlobal=function(Tn,Un){try{rr(Dn,Tn,Un)}catch(Qn){Dn[Tn]=Un}return Un},ir=Dn["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),or=Function.toString;"function"!=typeof ir.inspectSource&&(ir.inspectSource=function(Tn){return or.call(Tn)});var ar,sr,lr,cr=ir.inspectSource,ur=Dn.WeakMap,dr="function"==typeof ur&&/native code/.test(cr(ur)),hr=createCommonjsModule((function(Tn){(Tn.exports=function(Tn,Un){return ir[Tn]||(ir[Tn]=void 0!==Un?Un:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),pr=0,gr=Math.random(),uid=function(Tn){return"Symbol("+String(void 0===Tn?"":Tn)+")_"+(++pr+gr).toString(36)},fr=hr("keys"),sharedKey=function(Tn){return fr[Tn]||(fr[Tn]=uid(Tn))},Ar={},mr=Dn.WeakMap;if(dr){var vr=ir.state||(ir.state=new mr),yr=vr.get,_r=vr.has,br=vr.set;ar=function(Tn,Un){return Un.facade=Tn,br.call(vr,Tn,Un),Un},sr=function(Tn){return yr.call(vr,Tn)||{}},lr=function(Tn){return _r.call(vr,Tn)}}else{var wr=sharedKey("state");Ar[wr]=!0,ar=function(Tn,Un){return Un.facade=Tn,rr(Tn,wr,Un),Un},sr=function(Tn){return has(Tn,wr)?Tn[wr]:{}},lr=function(Tn){return has(Tn,wr)}}var xr,Sr,Cr={set:ar,get:sr,has:lr,enforce:function(Tn){return lr(Tn)?sr(Tn):ar(Tn,{})},getterFor:function(Tn){return function(Un){var Dn;if(!isObject(Un)||(Dn=sr(Un)).type!==Tn)throw TypeError("Incompatible receiver, "+Tn+" required");return Dn}}},kr=createCommonjsModule((function(Tn){var Un=Cr.get,Qn=Cr.enforce,Hn=String(String).split("String");(Tn.exports=function(Tn,Un,Gn,Vn){var zn,Kn=!!Vn&&!!Vn.unsafe,$n=!!Vn&&!!Vn.enumerable,Wn=!!Vn&&!!Vn.noTargetGet;"function"==typeof Gn&&("string"!=typeof Un||has(Gn,"name")||rr(Gn,"name",Un),(zn=Qn(Gn)).source||(zn.source=Hn.join("string"==typeof Un?Un:""))),Tn!==Dn?(Kn?!Wn&&Tn[Un]&&($n=!0):delete Tn[Un],$n?Tn[Un]=Gn:rr(Tn,Un,Gn)):$n?Tn[Un]=Gn:setGlobal(Un,Gn)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&Un(this).source||cr(this)}))})),Br=Dn,aFunction=function(Tn){return"function"==typeof Tn?Tn:void 0},getBuiltIn=function(Tn,Un){return arguments.length<2?aFunction(Br[Tn])||aFunction(Dn[Tn]):Br[Tn]&&Br[Tn][Un]||Dn[Tn]&&Dn[Tn][Un]},Er=Math.ceil,Pr=Math.floor,toInteger=function(Tn){return isNaN(Tn=+Tn)?0:(Tn>0?Pr:Er)(Tn)},Lr=Math.min,toLength=function(Tn){return Tn>0?Lr(toInteger(Tn),9007199254740991):0},Tr=Math.max,Nr=Math.min,toAbsoluteIndex=function(Tn,Un){var Dn=toInteger(Tn);return Dn<0?Tr(Dn+Un,0):Nr(Dn,Un)},createMethod=function(Tn){return function(Un,Dn,Qn){var Hn,Gn=toIndexedObject(Un),Vn=toLength(Gn.length),zn=toAbsoluteIndex(Qn,Vn);if(Tn&&Dn!=Dn){for(;Vn>zn;)if((Hn=Gn[zn++])!=Hn)return!0}else for(;Vn>zn;zn++)if((Tn||zn in Gn)&&Gn[zn]===Dn)return Tn||zn||0;return!Tn&&-1}},Ir={includes:createMethod(!0),indexOf:createMethod(!1)},Or=Ir.indexOf,objectKeysInternal=function(Tn,Un){var Dn,Qn=toIndexedObject(Tn),Hn=0,Gn=[];for(Dn in Qn)!has(Ar,Dn)&&has(Qn,Dn)&&Gn.push(Dn);for(;Un.length>Hn;)has(Qn,Dn=Un[Hn++])&&(~Or(Gn,Dn)||Gn.push(Dn));return Gn},Fr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ur=Fr.concat("length","prototype"),Mr={f:Object.getOwnPropertyNames||function getOwnPropertyNames(Tn){return objectKeysInternal(Tn,Ur)}},Rr={f:Object.getOwnPropertySymbols},Dr=getBuiltIn("Reflect","ownKeys")||function ownKeys(Tn){var Un=Mr.f(anObject(Tn)),Dn=Rr.f;return Dn?Un.concat(Dn(Tn)):Un},copyConstructorProperties=function(Tn,Un){for(var Dn=Dr(Un),Qn=nr.f,Hn=er.f,Gn=0;Gn<Dn.length;Gn++){var Vn=Dn[Gn];has(Tn,Vn)||Qn(Tn,Vn,Hn(Un,Vn))}},jr=/#|\.prototype\./,isForced=function(Tn,Un){var Dn=Hr[Qr(Tn)];return Dn==Vr||Dn!=Gr&&("function"==typeof Un?fails(Un):!!Un)},Qr=isForced.normalize=function(Tn){return String(Tn).replace(jr,".").toLowerCase()},Hr=isForced.data={},Gr=isForced.NATIVE="N",Vr=isForced.POLYFILL="P",zr=isForced,Kr=er.f,_export=function(Tn,Un){var Qn,Hn,Gn,Vn,zn,Kn=Tn.target,$n=Tn.global,Wn=Tn.stat;if(Qn=$n?Dn:Wn?Dn[Kn]||setGlobal(Kn,{}):(Dn[Kn]||{}).prototype)for(Hn in Un){if(Vn=Un[Hn],Gn=Tn.noTargetGet?(zn=Kr(Qn,Hn))&&zn.value:Qn[Hn],!zr($n?Hn:Kn+(Wn?".":"#")+Hn,Tn.forced)&&void 0!==Gn){if(typeof Vn==typeof Gn)continue;copyConstructorProperties(Vn,Gn)}(Tn.sham||Gn&&Gn.sham)&&rr(Vn,"sham",!0),kr(Qn,Hn,Vn,Tn)}},qr=Array.isArray||function isArray(Tn){return"Array"==classofRaw(Tn)},toObject=function(Tn){return Object(requireObjectCoercible(Tn))},createProperty=function(Tn,Un,Dn){var Qn=toPrimitive(Un);Qn in Tn?nr.f(Tn,Qn,createPropertyDescriptor(0,Dn)):Tn[Qn]=Dn},$r=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),Wr=$r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xr=hr("wks"),Yr=Dn.Symbol,Jr=Wr?Yr:Yr&&Yr.withoutSetter||uid,wellKnownSymbol=function(Tn){return has(Xr,Tn)||($r&&has(Yr,Tn)?Xr[Tn]=Yr[Tn]:Xr[Tn]=Jr("Symbol."+Tn)),Xr[Tn]},Zr=wellKnownSymbol("species"),arraySpeciesCreate=function(Tn,Un){var Dn;return qr(Tn)&&("function"!=typeof(Dn=Tn.constructor)||Dn!==Array&&!qr(Dn.prototype)?isObject(Dn)&&null===(Dn=Dn[Zr])&&(Dn=void 0):Dn=void 0),new(void 0===Dn?Array:Dn)(0===Un?0:Un)},ei=getBuiltIn("navigator","userAgent")||"",ti=Dn.process,ni=ti&&ti.versions,ri=ni&&ni.v8;ri?Sr=(xr=ri.split("."))[0]+xr[1]:ei&&(!(xr=ei.match(/Edge\/(\d+)/))||xr[1]>=74)&&(xr=ei.match(/Chrome\/(\d+)/))&&(Sr=xr[1]);var ii=Sr&&+Sr,oi=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(Tn){return ii>=51||!fails((function(){var Un=[];return(Un.constructor={})[oi]=function(){return{foo:1}},1!==Un[Tn](Boolean).foo}))},ai=wellKnownSymbol("isConcatSpreadable"),si=ii>=51||!fails((function(){var Tn=[];return Tn[ai]=!1,Tn.concat()[0]!==Tn})),li=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(Tn){if(!isObject(Tn))return!1;var Un=Tn[ai];return void 0!==Un?!!Un:qr(Tn)};_export({target:"Array",proto:!0,forced:!si||!li},{concat:function concat(Tn){var Un,Dn,Qn,Hn,Gn,Vn=toObject(this),zn=arraySpeciesCreate(Vn,0),Kn=0;for(Un=-1,Qn=arguments.length;Un<Qn;Un++)if(isConcatSpreadable(Gn=-1===Un?Vn:arguments[Un])){if(Kn+(Hn=toLength(Gn.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(Dn=0;Dn<Hn;Dn++,Kn++)Dn in Gn&&createProperty(zn,Kn,Gn[Dn])}else{if(Kn>=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(zn,Kn++,Gn)}return zn.length=Kn,zn}});var aFunction$1=function(Tn){if("function"!=typeof Tn)throw TypeError(String(Tn)+" is not a function");return Tn},functionBindContext=function(Tn,Un,Dn){if(aFunction$1(Tn),void 0===Un)return Tn;switch(Dn){case 0:return function(){return Tn.call(Un)};case 1:return function(Dn){return Tn.call(Un,Dn)};case 2:return function(Dn,Qn){return Tn.call(Un,Dn,Qn)};case 3:return function(Dn,Qn,Hn){return Tn.call(Un,Dn,Qn,Hn)}}return function(){return Tn.apply(Un,arguments)}},ui=[].push,createMethod$1=function(Tn){var Un=1==Tn,Dn=2==Tn,Qn=3==Tn,Hn=4==Tn,Gn=6==Tn,Vn=5==Tn||Gn;return function(zn,Kn,Wn,Xn){for(var Yn,Jn,Zn=toObject(zn),er=$n(Zn),tr=functionBindContext(Kn,Wn,3),nr=toLength(er.length),rr=0,ir=Xn||arraySpeciesCreate,or=Un?ir(zn,nr):Dn?ir(zn,0):void 0;nr>rr;rr++)if((Vn||rr in er)&&(Jn=tr(Yn=er[rr],rr,Zn),Tn))if(Un)or[rr]=Jn;else if(Jn)switch(Tn){case 3:return!0;case 5:return Yn;case 6:return rr;case 2:ui.call(or,Yn)}else if(Hn)return!1;return Gn?-1:Qn||Hn?Hn:or}},di={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)},hi=Object.defineProperty,pi={},thrower=function(Tn){throw Tn},arrayMethodUsesToLength=function(Tn,Un){if(has(pi,Tn))return pi[Tn];Un||(Un={});var Dn=[][Tn],Hn=!!has(Un,"ACCESSORS")&&Un.ACCESSORS,Gn=has(Un,0)?Un[0]:thrower,Vn=has(Un,1)?Un[1]:void 0;return pi[Tn]=!!Dn&&!fails((function(){if(Hn&&!Qn)return!0;var Tn={length:-1};Hn?hi(Tn,1,{enumerable:!0,get:thrower}):Tn[1]=1,Dn.call(Tn,Gn,Vn)}))},gi=di.filter,fi=arrayMethodHasSpeciesSupport("filter"),Ai=arrayMethodUsesToLength("filter");_export({target:"Array",proto:!0,forced:!fi||!Ai},{filter:function filter(Tn){return gi(this,Tn,arguments.length>1?arguments[1]:void 0)}});var mi,vi=Object.keys||function keys(Tn){return objectKeysInternal(Tn,Fr)},yi=Qn?Object.defineProperties:function defineProperties(Tn,Un){anObject(Tn);for(var Dn,Qn=vi(Un),Hn=Qn.length,Gn=0;Hn>Gn;)nr.f(Tn,Dn=Qn[Gn++],Un[Dn]);return Tn},_i=getBuiltIn("document","documentElement"),wi=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(Tn){return"<script>"+Tn+"<\/script>"},NullProtoObject=function(){try{mi=document.domain&&new ActiveXObject("htmlfile")}catch(Tn){}var Tn,Un;NullProtoObject=mi?function(Tn){Tn.write(scriptTag("")),Tn.close();var Un=Tn.parentWindow.Object;return Tn=null,Un}(mi):((Un=documentCreateElement("iframe")).style.display="none",_i.appendChild(Un),Un.src=String("javascript:"),(Tn=Un.contentWindow.document).open(),Tn.write(scriptTag("document.F=Object")),Tn.close(),Tn.F);for(var Dn=Fr.length;Dn--;)delete NullProtoObject.prototype[Fr[Dn]];return NullProtoObject()};Ar[wi]=!0;var xi=Object.create||function create(Tn,Un){var Dn;return null!==Tn?(EmptyConstructor.prototype=anObject(Tn),Dn=new EmptyConstructor,EmptyConstructor.prototype=null,Dn[wi]=Tn):Dn=NullProtoObject(),void 0===Un?Dn:yi(Dn,Un)},Si=wellKnownSymbol("unscopables"),Ci=Array.prototype;null==Ci[Si]&&nr.f(Ci,Si,{configurable:!0,value:xi(null)});var addToUnscopables=function(Tn){Ci[Si][Tn]=!0},ki=di.find,Bi=!0,Ei=arrayMethodUsesToLength("find");"find"in[]&&Array(1).find((function(){Bi=!1})),_export({target:"Array",proto:!0,forced:Bi||!Ei},{find:function find(Tn){return ki(this,Tn,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("find");var arrayMethodIsStrict=function(Tn,Un){var Dn=[][Tn];return!!Dn&&fails((function(){Dn.call(null,Un||function(){throw 1},1)}))},Pi=Ir.indexOf,Li=[].indexOf,Ti=!!Li&&1/[1].indexOf(1,-0)<0,Ni=arrayMethodIsStrict("indexOf"),Ii=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:Ti||!Ni||!Ii},{indexOf:function indexOf(Tn){return Ti?Li.apply(this,arguments)||0:Pi(this,Tn,arguments.length>1?arguments[1]:void 0)}}),_export({target:"Array",stat:!0},{isArray:qr});var Oi=[].join,Fi=$n!=Object,Ui=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:Fi||!Ui},{join:function join(Tn){return Oi.call(toIndexedObject(this),void 0===Tn?",":Tn)}});var Mi=di.map,Ri=arrayMethodHasSpeciesSupport("map"),Di=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!Ri||!Di},{map:function map(Tn){return Mi(this,Tn,arguments.length>1?arguments[1]:void 0)}});var ji=[].reverse,Qi=[1,2];_export({target:"Array",proto:!0,forced:String(Qi)===String(Qi.reverse())},{reverse:function reverse(){return qr(this)&&(this.length=this.length),ji.call(this)}});var Hi=arrayMethodHasSpeciesSupport("slice"),Gi=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),Vi=wellKnownSymbol("species"),zi=[].slice,Ki=Math.max;_export({target:"Array",proto:!0,forced:!Hi||!Gi},{slice:function slice(Tn,Un){var Dn,Qn,Hn,Gn=toIndexedObject(this),Vn=toLength(Gn.length),zn=toAbsoluteIndex(Tn,Vn),Kn=toAbsoluteIndex(void 0===Un?Vn:Un,Vn);if(qr(Gn)&&("function"!=typeof(Dn=Gn.constructor)||Dn!==Array&&!qr(Dn.prototype)?isObject(Dn)&&null===(Dn=Dn[Vi])&&(Dn=void 0):Dn=void 0,Dn===Array||void 0===Dn))return zi.call(Gn,zn,Kn);for(Qn=new(void 0===Dn?Array:Dn)(Ki(Kn-zn,0)),Hn=0;zn<Kn;zn++,Hn++)zn in Gn&&createProperty(Qn,Hn,Gn[zn]);return Qn.length=Hn,Qn}});var qi=[],$i=qi.sort,Wi=fails((function(){qi.sort(void 0)})),Xi=fails((function(){qi.sort(null)})),Yi=arrayMethodIsStrict("sort");_export({target:"Array",proto:!0,forced:Wi||!Xi||!Yi},{sort:function sort(Tn){return void 0===Tn?$i.call(toObject(this)):$i.call(toObject(this),aFunction$1(Tn))}});var Ji=arrayMethodHasSpeciesSupport("splice"),Zi=arrayMethodUsesToLength("splice",{ACCESSORS:!0,0:0,1:2}),eo=Math.max,to=Math.min;_export({target:"Array",proto:!0,forced:!Ji||!Zi},{splice:function splice(Tn,Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn=toObject(this),$n=toLength(Kn.length),Wn=toAbsoluteIndex(Tn,$n),Xn=arguments.length;if(0===Xn?Dn=Qn=0:1===Xn?(Dn=0,Qn=$n-Wn):(Dn=Xn-2,Qn=to(eo(toInteger(Un),0),$n-Wn)),$n+Dn-Qn>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(Hn=arraySpeciesCreate(Kn,Qn),Gn=0;Gn<Qn;Gn++)(Vn=Wn+Gn)in Kn&&createProperty(Hn,Gn,Kn[Vn]);if(Hn.length=Qn,Dn<Qn){for(Gn=Wn;Gn<$n-Qn;Gn++)zn=Gn+Dn,(Vn=Gn+Qn)in Kn?Kn[zn]=Kn[Vn]:delete Kn[zn];for(Gn=$n;Gn>$n-Qn+Dn;Gn--)delete Kn[Gn-1]}else if(Dn>Qn)for(Gn=$n-Qn;Gn>Wn;Gn--)zn=Gn+Dn-1,(Vn=Gn+Qn-1)in Kn?Kn[zn]=Kn[Vn]:delete Kn[zn];for(Gn=0;Gn<Dn;Gn++)Kn[Gn+Wn]=arguments[Gn+2];return Kn.length=$n-Qn+Dn,Hn}});var no=fails((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));_export({target:"Date",proto:!0,forced:no},{toJSON:function toJSON(Tn){var Un=toObject(this),Dn=toPrimitive(Un);return"number"!=typeof Dn||isFinite(Dn)?Un.toISOString():null}});var ro=Date.prototype,io=ro.toString,oo=ro.getTime;new Date(NaN)+""!="Invalid Date"&&kr(ro,"toString",(function toString(){var Tn=oo.call(this);return Tn==Tn?io.call(this):"Invalid Date"}));var ao=nr.f,so=Function.prototype,lo=so.toString,co=/^\s*function ([^ (]*)/;Qn&&!("name"in so)&&ao(so,"name",{configurable:!0,get:function(){try{return lo.call(this).match(co)[1]}catch(Tn){return""}}});var uo={};uo[wellKnownSymbol("toStringTag")]="z";var ho="[object z]"===String(uo),po=wellKnownSymbol("toStringTag"),go="Arguments"==classofRaw(function(){return arguments}()),fo=ho?classofRaw:function(Tn){var Un,Dn,Qn;return void 0===Tn?"Undefined":null===Tn?"Null":"string"==typeof(Dn=function(Tn,Un){try{return Tn[Un]}catch(Tn){}}(Un=Object(Tn),po))?Dn:go?classofRaw(Un):"Object"==(Qn=classofRaw(Un))&&"function"==typeof Un.callee?"Arguments":Qn},Ao=ho?{}.toString:function toString(){return"[object "+fo(this)+"]"};ho||kr(Object.prototype,"toString",Ao,{unsafe:!0});var mo="\t\n\v\f\r \u2028\u2029\ufeff",vo="["+mo+"]",yo=RegExp("^"+vo+vo+"*"),_o=RegExp(vo+vo+"*$"),createMethod$2=function(Tn){return function(Un){var Dn=String(requireObjectCoercible(Un));return 1&Tn&&(Dn=Dn.replace(yo,"")),2&Tn&&(Dn=Dn.replace(_o,"")),Dn}},wo={start:createMethod$2(1),end:createMethod$2(2),trim:createMethod$2(3)},xo=wo.trim,So=Dn.parseFloat,Co=1/So(mo+"-0")!=-1/0?function parseFloat(Tn){var Un=xo(String(Tn)),Dn=So(Un);return 0===Dn&&"-"==Un.charAt(0)?-0:Dn}:So;_export({global:!0,forced:parseFloat!=Co},{parseFloat:Co});var ko=wo.trim,Bo=Dn.parseInt,Eo=/^[+-]?0[Xx]/,Po=8!==Bo(mo+"08")||22!==Bo(mo+"0x16")?function parseInt(Tn,Un){var Dn=ko(String(Tn));return Bo(Dn,Un>>>0||(Eo.test(Dn)?16:10))}:Bo;_export({global:!0,forced:parseInt!=Po},{parseInt:Po});var Lo=Object.setPrototypeOf||("__proto__"in{}?function(){var Tn,Un=!1,Dn={};try{(Tn=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(Dn,[]),Un=Dn instanceof Array}catch(Tn){}return function setPrototypeOf(Dn,Qn){return anObject(Dn),function(Tn){if(!isObject(Tn)&&null!==Tn)throw TypeError("Can't set "+String(Tn)+" as a prototype")}(Qn),Un?Tn.call(Dn,Qn):Dn.__proto__=Qn,Dn}}():void 0),inheritIfRequired=function(Tn,Un,Dn){var Qn,Hn;return Lo&&"function"==typeof(Qn=Un.constructor)&&Qn!==Dn&&isObject(Hn=Qn.prototype)&&Hn!==Dn.prototype&&Lo(Tn,Hn),Tn},To=wellKnownSymbol("match"),isRegexp=function(Tn){var Un;return isObject(Tn)&&(void 0!==(Un=Tn[To])?!!Un:"RegExp"==classofRaw(Tn))},regexpFlags=function(){var Tn=anObject(this),Un="";return Tn.global&&(Un+="g"),Tn.ignoreCase&&(Un+="i"),Tn.multiline&&(Un+="m"),Tn.dotAll&&(Un+="s"),Tn.unicode&&(Un+="u"),Tn.sticky&&(Un+="y"),Un};function RE(Tn,Un){return RegExp(Tn,Un)}var No={UNSUPPORTED_Y:fails((function(){var Tn=RE("a","y");return Tn.lastIndex=2,null!=Tn.exec("abcd")})),BROKEN_CARET:fails((function(){var Tn=RE("^r","gy");return Tn.lastIndex=2,null!=Tn.exec("str")}))},Io=wellKnownSymbol("species"),setSpecies=function(Tn){var Un=getBuiltIn(Tn),Dn=nr.f;Qn&&Un&&!Un[Io]&&Dn(Un,Io,{configurable:!0,get:function(){return this}})},Oo=nr.f,Fo=Mr.f,Uo=Cr.set,Mo=wellKnownSymbol("match"),Ro=Dn.RegExp,Do=Ro.prototype,jo=/a/g,Qo=/a/g,Ho=new Ro(jo)!==jo,Go=No.UNSUPPORTED_Y;if(Qn&&zr("RegExp",!Ho||Go||fails((function(){return Qo[Mo]=!1,Ro(jo)!=jo||Ro(Qo)==Qo||"/a/i"!=Ro(jo,"i")})))){for(var Vo=function RegExp(Tn,Un){var Dn,Qn=this instanceof Vo,Hn=isRegexp(Tn),Gn=void 0===Un;if(!Qn&&Hn&&Tn.constructor===Vo&&Gn)return Tn;Ho?Hn&&!Gn&&(Tn=Tn.source):Tn instanceof Vo&&(Gn&&(Un=regexpFlags.call(Tn)),Tn=Tn.source),Go&&(Dn=!!Un&&Un.indexOf("y")>-1)&&(Un=Un.replace(/y/g,""));var Vn=inheritIfRequired(Ho?new Ro(Tn,Un):Ro(Tn,Un),Qn?this:Do,Vo);return Go&&Dn&&Uo(Vn,{sticky:Dn}),Vn},proxy=function(Tn){Tn in Vo||Oo(Vo,Tn,{configurable:!0,get:function(){return Ro[Tn]},set:function(Un){Ro[Tn]=Un}})},zo=Fo(Ro),Ko=0;zo.length>Ko;)proxy(zo[Ko++]);Do.constructor=Vo,Vo.prototype=Do,kr(Dn,"RegExp",Vo)}setSpecies("RegExp");var qo=RegExp.prototype.exec,$o=String.prototype.replace,Wo=qo,Xo=function(){var Tn=/a/,Un=/b*/g;return qo.call(Tn,"a"),qo.call(Un,"a"),0!==Tn.lastIndex||0!==Un.lastIndex}(),Yo=No.UNSUPPORTED_Y||No.BROKEN_CARET,Jo=void 0!==/()??/.exec("")[1];(Xo||Jo||Yo)&&(Wo=function exec(Tn){var Un,Dn,Qn,Hn,Gn=this,Vn=Yo&&Gn.sticky,zn=regexpFlags.call(Gn),Kn=Gn.source,$n=0,Wn=Tn;return Vn&&(-1===(zn=zn.replace("y","")).indexOf("g")&&(zn+="g"),Wn=String(Tn).slice(Gn.lastIndex),Gn.lastIndex>0&&(!Gn.multiline||Gn.multiline&&"\n"!==Tn[Gn.lastIndex-1])&&(Kn="(?: "+Kn+")",Wn=" "+Wn,$n++),Dn=new RegExp("^(?:"+Kn+")",zn)),Jo&&(Dn=new RegExp("^"+Kn+"$(?!\\s)",zn)),Xo&&(Un=Gn.lastIndex),Qn=qo.call(Vn?Dn:Gn,Wn),Vn?Qn?(Qn.input=Qn.input.slice($n),Qn[0]=Qn[0].slice($n),Qn.index=Gn.lastIndex,Gn.lastIndex+=Qn[0].length):Gn.lastIndex=0:Xo&&Qn&&(Gn.lastIndex=Gn.global?Qn.index+Qn[0].length:Un),Jo&&Qn&&Qn.length>1&&$o.call(Qn[0],Dn,(function(){for(Hn=1;Hn<arguments.length-2;Hn++)void 0===arguments[Hn]&&(Qn[Hn]=void 0)})),Qn});var Zo=Wo;_export({target:"RegExp",proto:!0,forced:/./.exec!==Zo},{exec:Zo});var ea=RegExp.prototype,ta=ea.toString,na=fails((function(){return"/a/b"!=ta.call({source:"a",flags:"b"})})),ra="toString"!=ta.name;(na||ra)&&kr(RegExp.prototype,"toString",(function toString(){var Tn=anObject(this),Un=String(Tn.source),Dn=Tn.flags;return"/"+Un+"/"+String(void 0===Dn&&Tn instanceof RegExp&&!("flags"in ea)?regexpFlags.call(Tn):Dn)}),{unsafe:!0});var ia=wellKnownSymbol("species"),oa=!fails((function(){var Tn=/./;return Tn.exec=function(){var Tn=[];return Tn.groups={a:"7"},Tn},"7"!=="".replace(Tn,"$<a>")})),aa="$0"==="a".replace(/./,"$0"),sa=wellKnownSymbol("replace"),la=!!/./[sa]&&""===/./[sa]("a","$0"),ua=!fails((function(){var Tn=/(?:)/,Un=Tn.exec;Tn.exec=function(){return Un.apply(this,arguments)};var Dn="ab".split(Tn);return 2!==Dn.length||"a"!==Dn[0]||"b"!==Dn[1]})),fixRegexpWellKnownSymbolLogic=function(Tn,Un,Dn,Qn){var Hn=wellKnownSymbol(Tn),Gn=!fails((function(){var Un={};return Un[Hn]=function(){return 7},7!=""[Tn](Un)})),Vn=Gn&&!fails((function(){var Un=!1,Dn=/a/;return"split"===Tn&&((Dn={}).constructor={},Dn.constructor[ia]=function(){return Dn},Dn.flags="",Dn[Hn]=/./[Hn]),Dn.exec=function(){return Un=!0,null},Dn[Hn](""),!Un}));if(!Gn||!Vn||"replace"===Tn&&(!oa||!aa||la)||"split"===Tn&&!ua){var zn=/./[Hn],Kn=Dn(Hn,""[Tn],(function(Tn,Un,Dn,Qn,Hn){return Un.exec===Zo?Gn&&!Hn?{done:!0,value:zn.call(Un,Dn,Qn)}:{done:!0,value:Tn.call(Dn,Un,Qn)}:{done:!1}}),{REPLACE_KEEPS_$0:aa,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:la}),$n=Kn[0],Wn=Kn[1];kr(String.prototype,Tn,$n),kr(RegExp.prototype,Hn,2==Un?function(Tn,Un){return Wn.call(Tn,this,Un)}:function(Tn){return Wn.call(Tn,this)})}Qn&&rr(RegExp.prototype[Hn],"sham",!0)},createMethod$3=function(Tn){return function(Un,Dn){var Qn,Hn,Gn=String(requireObjectCoercible(Un)),Vn=toInteger(Dn),zn=Gn.length;return Vn<0||Vn>=zn?Tn?"":void 0:(Qn=Gn.charCodeAt(Vn))<55296||Qn>56319||Vn+1===zn||(Hn=Gn.charCodeAt(Vn+1))<56320||Hn>57343?Tn?Gn.charAt(Vn):Qn:Tn?Gn.slice(Vn,Vn+2):Hn-56320+(Qn-55296<<10)+65536}},da={codeAt:createMethod$3(!1),charAt:createMethod$3(!0)},ha=da.charAt,advanceStringIndex=function(Tn,Un,Dn){return Un+(Dn?ha(Tn,Un).length:1)},regexpExecAbstract=function(Tn,Un){var Dn=Tn.exec;if("function"==typeof Dn){var Qn=Dn.call(Tn,Un);if("object"!=typeof Qn)throw TypeError("RegExp exec method returned something other than an Object or null");return Qn}if("RegExp"!==classofRaw(Tn))throw TypeError("RegExp#exec called on incompatible receiver");return Zo.call(Tn,Un)};fixRegexpWellKnownSymbolLogic("match",1,(function(Tn,Un,Dn){return[function match(Un){var Dn=requireObjectCoercible(this),Qn=null==Un?void 0:Un[Tn];return void 0!==Qn?Qn.call(Un,Dn):new RegExp(Un)[Tn](String(Dn))},function(Tn){var Qn=Dn(Un,Tn,this);if(Qn.done)return Qn.value;var Hn=anObject(Tn),Gn=String(this);if(!Hn.global)return regexpExecAbstract(Hn,Gn);var Vn=Hn.unicode;Hn.lastIndex=0;for(var zn,Kn=[],$n=0;null!==(zn=regexpExecAbstract(Hn,Gn));){var Wn=String(zn[0]);Kn[$n]=Wn,""===Wn&&(Hn.lastIndex=advanceStringIndex(Gn,toLength(Hn.lastIndex),Vn)),$n++}return 0===$n?null:Kn}]}));var pa=Math.max,ga=Math.min,fa=Math.floor,Aa=/\$([$&'`]|\d\d?|<[^>]*>)/g,ma=/\$([$&'`]|\d\d?)/g,maybeToString=function(Tn){return void 0===Tn?Tn:String(Tn)};fixRegexpWellKnownSymbolLogic("replace",2,(function(Tn,Un,Dn,Qn){var Hn=Qn.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Gn=Qn.REPLACE_KEEPS_$0,Vn=Hn?"$":"$0";return[function replace(Dn,Qn){var Hn=requireObjectCoercible(this),Gn=null==Dn?void 0:Dn[Tn];return void 0!==Gn?Gn.call(Dn,Hn,Qn):Un.call(String(Hn),Dn,Qn)},function(Tn,Qn){if(!Hn&&Gn||"string"==typeof Qn&&-1===Qn.indexOf(Vn)){var zn=Dn(Un,Tn,this,Qn);if(zn.done)return zn.value}var Kn=anObject(Tn),$n=String(this),Wn="function"==typeof Qn;Wn||(Qn=String(Qn));var Xn=Kn.global;if(Xn){var Yn=Kn.unicode;Kn.lastIndex=0}for(var Jn=[];;){var Zn=regexpExecAbstract(Kn,$n);if(null===Zn)break;if(Jn.push(Zn),!Xn)break;""===String(Zn[0])&&(Kn.lastIndex=advanceStringIndex($n,toLength(Kn.lastIndex),Yn))}for(var er="",tr=0,nr=0;nr<Jn.length;nr++){Zn=Jn[nr];for(var rr=String(Zn[0]),ir=pa(ga(toInteger(Zn.index),$n.length),0),or=[],ar=1;ar<Zn.length;ar++)or.push(maybeToString(Zn[ar]));var sr=Zn.groups;if(Wn){var lr=[rr].concat(or,ir,$n);void 0!==sr&&lr.push(sr);var cr=String(Qn.apply(void 0,lr))}else cr=getSubstitution(rr,$n,ir,or,sr,Qn);ir>=tr&&(er+=$n.slice(tr,ir)+cr,tr=ir+rr.length)}return er+$n.slice(tr)}];function getSubstitution(Tn,Dn,Qn,Hn,Gn,Vn){var zn=Qn+Tn.length,Kn=Hn.length,$n=ma;return void 0!==Gn&&(Gn=toObject(Gn),$n=Aa),Un.call(Vn,$n,(function(Un,Vn){var $n;switch(Vn.charAt(0)){case"$":return"$";case"&":return Tn;case"`":return Dn.slice(0,Qn);case"'":return Dn.slice(zn);case"<":$n=Gn[Vn.slice(1,-1)];break;default:var Wn=+Vn;if(0===Wn)return Un;if(Wn>Kn){var Xn=fa(Wn/10);return 0===Xn?Un:Xn<=Kn?void 0===Hn[Xn-1]?Vn.charAt(1):Hn[Xn-1]+Vn.charAt(1):Un}$n=Hn[Wn-1]}return void 0===$n?"":$n}))}}));var va=wellKnownSymbol("species"),speciesConstructor=function(Tn,Un){var Dn,Qn=anObject(Tn).constructor;return void 0===Qn||null==(Dn=anObject(Qn)[va])?Un:aFunction$1(Dn)},ya=[].push,_a=Math.min,ba=!fails((function(){return!RegExp(4294967295,"y")}));fixRegexpWellKnownSymbolLogic("split",2,(function(Tn,Un,Dn){var Qn;return Qn="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(Tn,Dn){var Qn=String(requireObjectCoercible(this)),Hn=void 0===Dn?4294967295:Dn>>>0;if(0===Hn)return[];if(void 0===Tn)return[Qn];if(!isRegexp(Tn))return Un.call(Qn,Tn,Hn);for(var Gn,Vn,zn,Kn=[],$n=(Tn.ignoreCase?"i":"")+(Tn.multiline?"m":"")+(Tn.unicode?"u":"")+(Tn.sticky?"y":""),Wn=0,Xn=new RegExp(Tn.source,$n+"g");(Gn=Zo.call(Xn,Qn))&&!((Vn=Xn.lastIndex)>Wn&&(Kn.push(Qn.slice(Wn,Gn.index)),Gn.length>1&&Gn.index<Qn.length&&ya.apply(Kn,Gn.slice(1)),zn=Gn[0].length,Wn=Vn,Kn.length>=Hn));)Xn.lastIndex===Gn.index&&Xn.lastIndex++;return Wn===Qn.length?!zn&&Xn.test("")||Kn.push(""):Kn.push(Qn.slice(Wn)),Kn.length>Hn?Kn.slice(0,Hn):Kn}:"0".split(void 0,0).length?function(Tn,Dn){return void 0===Tn&&0===Dn?[]:Un.call(this,Tn,Dn)}:Un,[function split(Un,Dn){var Hn=requireObjectCoercible(this),Gn=null==Un?void 0:Un[Tn];return void 0!==Gn?Gn.call(Un,Hn,Dn):Qn.call(String(Hn),Un,Dn)},function(Tn,Hn){var Gn=Dn(Qn,Tn,this,Hn,Qn!==Un);if(Gn.done)return Gn.value;var Vn=anObject(Tn),zn=String(this),Kn=speciesConstructor(Vn,RegExp),$n=Vn.unicode,Wn=(Vn.ignoreCase?"i":"")+(Vn.multiline?"m":"")+(Vn.unicode?"u":"")+(ba?"y":"g"),Xn=new Kn(ba?Vn:"^(?:"+Vn.source+")",Wn),Yn=void 0===Hn?4294967295:Hn>>>0;if(0===Yn)return[];if(0===zn.length)return null===regexpExecAbstract(Xn,zn)?[zn]:[];for(var Jn=0,Zn=0,er=[];Zn<zn.length;){Xn.lastIndex=ba?Zn:0;var tr,nr=regexpExecAbstract(Xn,ba?zn:zn.slice(Zn));if(null===nr||(tr=_a(toLength(Xn.lastIndex+(ba?0:Zn)),zn.length))===Jn)Zn=advanceStringIndex(zn,Zn,$n);else{if(er.push(zn.slice(Jn,Zn)),er.length===Yn)return er;for(var rr=1;rr<=nr.length-1;rr++)if(er.push(nr[rr]),er.length===Yn)return er;Zn=Jn=tr}}return er.push(zn.slice(Jn)),er}]}),!ba);var wa=wo.trim;_export({target:"String",proto:!0,forced:function(Tn){return fails((function(){return!!mo[Tn]()||"
"!="
"[Tn]()||mo[Tn].name!==Tn}))}("trim")},{trim:function trim(){return wa(this)}});var xa=/"/g,createHtml=function(Tn,Un,Dn,Qn){var Hn=String(requireObjectCoercible(Tn)),Gn="<"+Un;return""!==Dn&&(Gn+=" "+Dn+'="'+String(Qn).replace(xa,""")+'"'),Gn+">"+Hn+"</"+Un+">"},stringHtmlForced=function(Tn){return fails((function(){var Un=""[Tn]('"');return Un!==Un.toLowerCase()||Un.split('"').length>3}))};function _typeof(Tn){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Tn){return typeof Tn}:function(Tn){return Tn&&"function"==typeof Symbol&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":typeof Tn})(Tn)}function asyncGeneratorStep(Tn,Un,Dn,Qn,Hn,Gn,Vn){try{var zn=Tn[Gn](Vn),Kn=zn.value}catch(Tn){return void Dn(Tn)}zn.done?Un(Kn):Promise.resolve(Kn).then(Qn,Hn)}function _asyncToGenerator(Tn){return function(){var Un=this,Dn=arguments;return new Promise((function(Qn,Hn){var Gn=Tn.apply(Un,Dn);function _next(Tn){asyncGeneratorStep(Gn,Qn,Hn,_next,_throw,"next",Tn)}function _throw(Tn){asyncGeneratorStep(Gn,Qn,Hn,_next,_throw,"throw",Tn)}_next(void 0)}))}}function _classCallCheck(Tn,Un){if(!(Tn instanceof Un))throw new TypeError("Cannot call a class as a function")}function _defineProperties(Tn,Un){for(var Dn=0;Dn<Un.length;Dn++){var Qn=Un[Dn];Qn.enumerable=Qn.enumerable||!1,Qn.configurable=!0,"value"in Qn&&(Qn.writable=!0),Object.defineProperty(Tn,Qn.key,Qn)}}function _createClass(Tn,Un,Dn){return Un&&_defineProperties(Tn.prototype,Un),Dn&&_defineProperties(Tn,Dn),Tn}function _defineProperty(Tn,Un,Dn){return Un in Tn?Object.defineProperty(Tn,Un,{value:Dn,enumerable:!0,configurable:!0,writable:!0}):Tn[Un]=Dn,Tn}function ownKeys$1(Tn,Un){var Dn=Object.keys(Tn);if(Object.getOwnPropertySymbols){var Qn=Object.getOwnPropertySymbols(Tn);Un&&(Qn=Qn.filter((function(Un){return Object.getOwnPropertyDescriptor(Tn,Un).enumerable}))),Dn.push.apply(Dn,Qn)}return Dn}function _objectSpread2(Tn){for(var Un=1;Un<arguments.length;Un++){var Dn=null!=arguments[Un]?arguments[Un]:{};Un%2?ownKeys$1(Object(Dn),!0).forEach((function(Un){_defineProperty(Tn,Un,Dn[Un])})):Object.getOwnPropertyDescriptors?Object.defineProperties(Tn,Object.getOwnPropertyDescriptors(Dn)):ownKeys$1(Object(Dn)).forEach((function(Un){Object.defineProperty(Tn,Un,Object.getOwnPropertyDescriptor(Dn,Un))}))}return Tn}function _inherits(Tn,Un){if("function"!=typeof Un&&null!==Un)throw new TypeError("Super expression must either be null or a function");Tn.prototype=Object.create(Un&&Un.prototype,{constructor:{value:Tn,writable:!0,configurable:!0}}),Un&&_setPrototypeOf(Tn,Un)}function _getPrototypeOf(Tn){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(Tn){return Tn.__proto__||Object.getPrototypeOf(Tn)})(Tn)}function _setPrototypeOf(Tn,Un){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(Tn,Un){return Tn.__proto__=Un,Tn})(Tn,Un)}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(Tn){return!1}}function _construct(Tn,Un,Dn){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(Tn,Un,Dn){var Qn=[null];Qn.push.apply(Qn,Un);var Hn=new(Function.bind.apply(Tn,Qn));return Dn&&_setPrototypeOf(Hn,Dn.prototype),Hn}).apply(null,arguments)}function _wrapNativeSuper(Tn){var Un="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(Tn){if(null===Tn||!function _isNativeFunction(Tn){return-1!==Function.toString.call(Tn).indexOf("[native code]")}(Tn))return Tn;if("function"!=typeof Tn)throw new TypeError("Super expression must either be null or a function");if(void 0!==Un){if(Un.has(Tn))return Un.get(Tn);Un.set(Tn,Wrapper)}function Wrapper(){return _construct(Tn,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Tn.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Tn)})(Tn)}function _assertThisInitialized(Tn){if(void 0===Tn)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Tn}function _possibleConstructorReturn(Tn,Un){return!Un||"object"!=typeof Un&&"function"!=typeof Un?_assertThisInitialized(Tn):Un}function _createSuper(Tn){var Un=_isNativeReflectConstruct();return function _createSuperInternal(){var Dn,Qn=_getPrototypeOf(Tn);if(Un){var Hn=_getPrototypeOf(this).constructor;Dn=Reflect.construct(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return _possibleConstructorReturn(this,Dn)}}function _superPropBase(Tn,Un){for(;!Object.prototype.hasOwnProperty.call(Tn,Un)&&null!==(Tn=_getPrototypeOf(Tn)););return Tn}function _get(Tn,Un,Dn){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(Tn,Un,Dn){var Qn=_superPropBase(Tn,Un);if(Qn){var Hn=Object.getOwnPropertyDescriptor(Qn,Un);return Hn.get?Hn.get.call(Dn):Hn.value}})(Tn,Un,Dn||Tn)}function set$1(Tn,Un,Dn,Qn){return(set$1="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function set(Tn,Un,Dn,Qn){var Hn,Gn=_superPropBase(Tn,Un);if(Gn){if((Hn=Object.getOwnPropertyDescriptor(Gn,Un)).set)return Hn.set.call(Qn,Dn),!0;if(!Hn.writable)return!1}if(Hn=Object.getOwnPropertyDescriptor(Qn,Un)){if(!Hn.writable)return!1;Hn.value=Dn,Object.defineProperty(Qn,Un,Hn)}else _defineProperty(Qn,Un,Dn);return!0})(Tn,Un,Dn,Qn)}function _set(Tn,Un,Dn,Qn,Hn){if(!set$1(Tn,Un,Dn,Qn||Tn)&&Hn)throw new Error("failed to set property");return Dn}function _taggedTemplateLiteral(Tn,Un){return Un||(Un=Tn.slice(0)),Object.freeze(Object.defineProperties(Tn,{raw:{value:Object.freeze(Un)}}))}function _slicedToArray(Tn,Un){return function _arrayWithHoles(Tn){if(Array.isArray(Tn))return Tn}(Tn)||function _iterableToArrayLimit(Tn,Un){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(Tn)))return;var Dn=[],Qn=!0,Hn=!1,Gn=void 0;try{for(var Vn,zn=Tn[Symbol.iterator]();!(Qn=(Vn=zn.next()).done)&&(Dn.push(Vn.value),!Un||Dn.length!==Un);Qn=!0);}catch(Tn){Hn=!0,Gn=Tn}finally{try{Qn||null==zn.return||zn.return()}finally{if(Hn)throw Gn}}return Dn}(Tn,Un)||_unsupportedIterableToArray(Tn,Un)||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(Tn){return function _arrayWithoutHoles(Tn){if(Array.isArray(Tn))return _arrayLikeToArray(Tn)}(Tn)||function _iterableToArray(Tn){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(Tn))return Array.from(Tn)}(Tn)||_unsupportedIterableToArray(Tn)||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(Tn,Un){if(Tn){if("string"==typeof Tn)return _arrayLikeToArray(Tn,Un);var Dn=Object.prototype.toString.call(Tn).slice(8,-1);return"Object"===Dn&&Tn.constructor&&(Dn=Tn.constructor.name),"Map"===Dn||"Set"===Dn?Array.from(Tn):"Arguments"===Dn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Dn)?_arrayLikeToArray(Tn,Un):void 0}}function _arrayLikeToArray(Tn,Un){(null==Un||Un>Tn.length)&&(Un=Tn.length);for(var Dn=0,Qn=new Array(Un);Dn<Un;Dn++)Qn[Dn]=Tn[Dn];return Qn}function _createForOfIteratorHelper(Tn,Un){var Dn;if("undefined"==typeof Symbol||null==Tn[Symbol.iterator]){if(Array.isArray(Tn)||(Dn=_unsupportedIterableToArray(Tn))||Un&&Tn&&"number"==typeof Tn.length){Dn&&(Tn=Dn);var Qn=0,F=function(){};return{s:F,n:function(){return Qn>=Tn.length?{done:!0}:{done:!1,value:Tn[Qn++]}},e:function(Tn){throw Tn},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 Hn,Gn=!0,Vn=!1;return{s:function(){Dn=Tn[Symbol.iterator]()},n:function(){var Tn=Dn.next();return Gn=Tn.done,Tn},e:function(Tn){Vn=!0,Hn=Tn},f:function(){try{Gn||null==Dn.return||Dn.return()}finally{if(Vn)throw Hn}}}}
|
||
/*! 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(Tn,Un){function cy(Tn){return Gn.isWindow(Tn)?Tn:9===Tn.nodeType&&(Tn.defaultView||Tn.parentWindow)}function cv(Tn){if(!Bi[Tn]){var Un=Dn.body,Qn=Gn("<"+Tn+">").appendTo(Un),Hn=Qn.css("display");Qn.remove(),"none"!==Hn&&""!==Hn||(xi||((xi=Dn.createElement("iframe")).frameBorder=xi.width=xi.height=0),Un.appendChild(xi),Si&&xi.createElement||((Si=(xi.contentWindow||xi.contentDocument).document).write(("CSS1Compat"===Dn.compatMode?"<!doctype html>":"")+"<html><body>"),Si.close()),Qn=Si.createElement(Tn),Si.body.appendChild(Qn),Hn=Gn.css(Qn,"display"),Un.removeChild(xi)),Bi[Tn]=Hn}return Bi[Tn]}function cu(Tn,Un){var Dn={};return Gn.each(Li.concat.apply([],Li.slice(0,Un)),(function(){Dn[this]=Tn})),Dn}function ct(){ki=Un}function cs(){return setTimeout(ct,0),ki=Gn.now()}function ci(){try{return new Tn.XMLHttpRequest}catch(Tn){}}function ca(Tn,Un,Dn,Qn){if(Gn.isArray(Un))Gn.each(Un,(function(Un,Hn){Dn||Zr.test(Tn)?Qn(Tn,Hn):ca(Tn+"["+("object"==_typeof(Hn)||Gn.isArray(Hn)?Un:"")+"]",Hn,Dn,Qn)}));else if(Dn||null==Un||"object"!=_typeof(Un))Qn(Tn,Un);else for(var Hn in Un)ca(Tn+"["+Hn+"]",Un[Hn],Dn,Qn)}function b_(Tn,Dn){var Qn,Hn,Vn=Gn.ajaxSettings.flatOptions||{};for(Qn in Dn)Dn[Qn]!==Un&&((Vn[Qn]?Tn:Hn||(Hn={}))[Qn]=Dn[Qn]);Hn&&Gn.extend(!0,Tn,Hn)}function b$(Tn,Dn,Qn,Hn,Gn,Vn){(Vn=Vn||{})[Gn=Gn||Dn.dataTypes[0]]=!0;for(var zn,Kn=Tn[Gn],$n=0,Wn=Kn?Kn.length:0,Xn=Tn===gi;$n<Wn&&(Xn||!zn);$n++)"string"==typeof(zn=Kn[$n](Dn,Qn,Hn))&&(!Xn||Vn[zn]?zn=Un:(Dn.dataTypes.unshift(zn),zn=b$(Tn,Dn,Qn,Hn,zn,Vn)));return(Xn||!zn)&&!Vn["*"]&&(zn=b$(Tn,Dn,Qn,Hn,"*",Vn)),zn}function bZ(Tn){return function(Un,Dn){if("string"!=typeof Un&&(Dn=Un,Un="*"),Gn.isFunction(Dn))for(var Qn,Hn,Vn=Un.toLowerCase().split(ui),zn=0,Kn=Vn.length;zn<Kn;zn++)Qn=Vn[zn],(Hn=/^\+/.test(Qn))&&(Qn=Qn.substr(1)||"*"),(Tn[Qn]=Tn[Qn]||[])[Hn?"unshift":"push"](Dn)}}function bC(Tn,Un,Dn){var Qn="width"===Un?Tn.offsetWidth:Tn.offsetHeight,Hn="width"===Un?$r:Wr,Vn=0,zn=Hn.length;if(Qn>0){if("border"!==Dn)for(;Vn<zn;Vn++)Dn||(Qn-=parseFloat(Gn.css(Tn,"padding"+Hn[Vn]))||0),"margin"===Dn?Qn+=parseFloat(Gn.css(Tn,Dn+Hn[Vn]))||0:Qn-=parseFloat(Gn.css(Tn,"border"+Hn[Vn]+"Width"))||0;return Qn+"px"}if(((Qn=Rr(Tn,Un,Un))<0||null==Qn)&&(Qn=Tn.style[Un]||0),Qn=parseFloat(Qn)||0,Dn)for(;Vn<zn;Vn++)Qn+=parseFloat(Gn.css(Tn,"padding"+Hn[Vn]))||0,"padding"!==Dn&&(Qn+=parseFloat(Gn.css(Tn,"border"+Hn[Vn]+"Width"))||0),"margin"===Dn&&(Qn+=parseFloat(Gn.css(Tn,Dn+Hn[Vn]))||0);return Qn+"px"}function bp(Tn,Un){Un.src?Gn.ajax({url:Un.src,async:!1,dataType:"script"}):Gn.globalEval((Un.text||Un.textContent||Un.innerHTML||"").replace(Fr,"/*$0*/")),Un.parentNode&&Un.parentNode.removeChild(Un)}function bo(Tn){var Un=Dn.createElement("div");return Mr.appendChild(Un),Un.innerHTML=Tn.outerHTML,Un.firstChild}function bn(Tn){var Un=(Tn.nodeName||"").toLowerCase();"input"===Un?bm(Tn):"script"!==Un&&void 0!==Tn.getElementsByTagName&&Gn.grep(Tn.getElementsByTagName("input"),bm)}function bm(Tn){"checkbox"!==Tn.type&&"radio"!==Tn.type||(Tn.defaultChecked=Tn.checked)}function bl(Tn){return void 0!==Tn.getElementsByTagName?Tn.getElementsByTagName("*"):void 0!==Tn.querySelectorAll?Tn.querySelectorAll("*"):[]}function bk(Tn,Un){var Dn;1===Un.nodeType&&(Un.clearAttributes&&Un.clearAttributes(),Un.mergeAttributes&&Un.mergeAttributes(Tn),"object"===(Dn=Un.nodeName.toLowerCase())?Un.outerHTML=Tn.outerHTML:"input"!==Dn||"checkbox"!==Tn.type&&"radio"!==Tn.type?"option"===Dn?Un.selected=Tn.defaultSelected:"input"!==Dn&&"textarea"!==Dn||(Un.defaultValue=Tn.defaultValue):(Tn.checked&&(Un.defaultChecked=Un.checked=Tn.checked),Un.value!==Tn.value&&(Un.value=Tn.value)),Un.removeAttribute(Gn.expando))}function bj(Tn,Un){if(1===Un.nodeType&&Gn.hasData(Tn)){var Dn,Qn,Hn,Vn=Gn._data(Tn),zn=Gn._data(Un,Vn),Kn=Vn.events;if(Kn)for(Dn in delete zn.handle,zn.events={},Kn)for(Qn=0,Hn=Kn[Dn].length;Qn<Hn;Qn++)Gn.event.add(Un,Dn+(Kn[Dn][Qn].namespace?".":"")+Kn[Dn][Qn].namespace,Kn[Dn][Qn],Kn[Dn][Qn].data);zn.data&&(zn.data=Gn.extend({},zn.data))}}function bi(Tn,Un){return Gn.nodeName(Tn,"table")?Tn.getElementsByTagName("tbody")[0]||Tn.appendChild(Tn.ownerDocument.createElement("tbody")):Tn}function U(Tn){var Un=xr.split("|"),Dn=Tn.createDocumentFragment();if(Dn.createElement)for(;Un.length;)Dn.createElement(Un.pop());return Dn}function T(Tn,Un,Dn){if(Un=Un||0,Gn.isFunction(Un))return Gn.grep(Tn,(function(Tn,Qn){return!!Un.call(Tn,Qn,Tn)===Dn}));if(Un.nodeType)return Gn.grep(Tn,(function(Tn,Qn){return Tn===Un===Dn}));if("string"==typeof Un){var Qn=Gn.grep(Tn,(function(Tn){return 1===Tn.nodeType}));if(yr.test(Un))return Gn.filter(Un,Qn,!Dn);Un=Gn.filter(Un,Qn)}return Gn.grep(Tn,(function(Tn,Qn){return Gn.inArray(Tn,Un)>=0===Dn}))}function S(Tn){return!Tn||!Tn.parentNode||11===Tn.parentNode.nodeType}function K(){return!0}function J(){return!1}function n(Tn,Un,Dn){var Qn=Un+"defer",Hn=Un+"queue",Vn=Un+"mark",zn=Gn._data(Tn,Qn);zn&&("queue"===Dn||!Gn._data(Tn,Hn))&&("mark"===Dn||!Gn._data(Tn,Vn))&&setTimeout((function(){!Gn._data(Tn,Hn)&&!Gn._data(Tn,Vn)&&(Gn.removeData(Tn,Qn,!0),zn.fire())}),0)}function m(Tn){for(var Un in Tn)if(("data"!==Un||!Gn.isEmptyObject(Tn[Un]))&&"toJSON"!==Un)return!1;return!0}function l(Tn,Dn,Qn){if(Qn===Un&&1===Tn.nodeType){var Hn="data-"+Dn.replace($n,"-$1").toLowerCase();if("string"==typeof(Qn=Tn.getAttribute(Hn))){try{Qn="true"===Qn||"false"!==Qn&&("null"===Qn?null:Gn.isNumeric(Qn)?parseFloat(Qn):Kn.test(Qn)?Gn.parseJSON(Qn):Qn)}catch(Tn){}Gn.data(Tn,Dn,Qn)}else Qn=Un}return Qn}var Dn=Tn.document,Qn=Tn.navigator,Hn=Tn.location,Gn=function(){function J(){if(!Kn.isReady){try{Dn.documentElement.doScroll("left")}catch(Tn){return void setTimeout(J,1)}Kn.ready()}}var Hn,Gn,Vn,zn,Kn=function e(Tn,Un){return new e.fn.init(Tn,Un,Hn)},$n=Tn.jQuery,Wn=Tn.$,Xn=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Yn=/\S/,Jn=/^\s+/,Zn=/\s+$/,er=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,tr=/^[\],:{}\s]*$/,nr=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rr=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ir=/(?:^|:|,)(?:\s*\[)+/g,or=/(webkit)[ \/]([\w.]+)/,ar=/(opera)(?:.*version)?[ \/]([\w.]+)/,sr=/(msie) ([\w.]+)/,lr=/(mozilla)(?:.*? rv:([\w.]+))?/,cr=/-([a-z]|[0-9])/gi,ur=/^-ms-/,dr=function x(Tn,Un){return(Un+"").toUpperCase()},hr=Qn.userAgent,pr=Object.prototype.toString,gr=Object.prototype.hasOwnProperty,fr=Array.prototype.push,Ar=Array.prototype.slice,mr=String.prototype.trim,vr=Array.prototype.indexOf,yr={};return Kn.fn=Kn.prototype={constructor:Kn,init:function init(Tn,Qn,Hn){var Gn,Vn,zn,$n;if(!Tn)return this;if(Tn.nodeType)return this.context=this[0]=Tn,this.length=1,this;if("body"===Tn&&!Qn&&Dn.body)return this.context=Dn,this[0]=Dn.body,this.selector=Tn,this.length=1,this;if("string"==typeof Tn){if((Gn="<"!==Tn.charAt(0)||">"!==Tn.charAt(Tn.length-1)||Tn.length<3?Xn.exec(Tn):[null,Tn,null])&&(Gn[1]||!Qn)){if(Gn[1])return $n=(Qn=Qn instanceof Kn?Qn[0]:Qn)?Qn.ownerDocument||Qn:Dn,(zn=er.exec(Tn))?Kn.isPlainObject(Qn)?(Tn=[Dn.createElement(zn[1])],Kn.fn.attr.call(Tn,Qn,!0)):Tn=[$n.createElement(zn[1])]:Tn=((zn=Kn.buildFragment([Gn[1]],[$n])).cacheable?Kn.clone(zn.fragment):zn.fragment).childNodes,Kn.merge(this,Tn);if((Vn=Dn.getElementById(Gn[2]))&&Vn.parentNode){if(Vn.id!==Gn[2])return Hn.find(Tn);this.length=1,this[0]=Vn}return this.context=Dn,this.selector=Tn,this}return!Qn||Qn.jquery?(Qn||Hn).find(Tn):this.constructor(Qn).find(Tn)}return Kn.isFunction(Tn)?Hn.ready(Tn):(Tn.selector!==Un&&(this.selector=Tn.selector,this.context=Tn.context),Kn.makeArray(Tn,this))},selector:"",jquery:"1.7.1",length:0,size:function size(){return this.length},toArray:function toArray(){return Ar.call(this,0)},get:function get(Tn){return null==Tn?this.toArray():Tn<0?this[this.length+Tn]:this[Tn]},pushStack:function pushStack(Tn,Un,Dn){var Qn=this.constructor();return Kn.isArray(Tn)?fr.apply(Qn,Tn):Kn.merge(Qn,Tn),Qn.prevObject=this,Qn.context=this.context,"find"===Un?Qn.selector=this.selector+(this.selector?" ":"")+Dn:Un&&(Qn.selector=this.selector+"."+Un+"("+Dn+")"),Qn},each:function each(Tn,Un){return Kn.each(this,Tn,Un)},ready:function ready(Tn){return Kn.bindReady(),Vn.add(Tn),this},eq:function eq(Tn){return-1===(Tn=+Tn)?this.slice(Tn):this.slice(Tn,Tn+1)},first:function first(){return this.eq(0)},last:function last(){return this.eq(-1)},slice:function slice(){return this.pushStack(Ar.apply(this,arguments),"slice",Ar.call(arguments).join(","))},map:function map(Tn){return this.pushStack(Kn.map(this,(function(Un,Dn){return Tn.call(Un,Dn,Un)})))},end:function end(){return this.prevObject||this.constructor(null)},push:fr,sort:[].sort,splice:[].splice},Kn.fn.init.prototype=Kn.fn,Kn.extend=Kn.fn.extend=function(){var Tn,Dn,Qn,Hn,Gn,Vn,zn=arguments[0]||{},$n=1,Wn=arguments.length,Xn=!1;for("boolean"==typeof zn&&(Xn=zn,zn=arguments[1]||{},$n=2),"object"!=_typeof(zn)&&!Kn.isFunction(zn)&&(zn={}),Wn===$n&&(zn=this,--$n);$n<Wn;$n++)if(null!=(Tn=arguments[$n]))for(Dn in Tn)Qn=zn[Dn],zn!==(Hn=Tn[Dn])&&(Xn&&Hn&&(Kn.isPlainObject(Hn)||(Gn=Kn.isArray(Hn)))?(Gn?(Gn=!1,Vn=Qn&&Kn.isArray(Qn)?Qn:[]):Vn=Qn&&Kn.isPlainObject(Qn)?Qn:{},zn[Dn]=Kn.extend(Xn,Vn,Hn)):Hn!==Un&&(zn[Dn]=Hn));return zn},Kn.extend({noConflict:function noConflict(Un){return Tn.$===Kn&&(Tn.$=Wn),Un&&Tn.jQuery===Kn&&(Tn.jQuery=$n),Kn},isReady:!1,readyWait:1,holdReady:function holdReady(Tn){Tn?Kn.readyWait++:Kn.ready(!0)},ready:function ready(Tn){if(!0===Tn&&!--Kn.readyWait||!0!==Tn&&!Kn.isReady){if(!Dn.body)return setTimeout(Kn.ready,1);if(Kn.isReady=!0,!0!==Tn&&--Kn.readyWait>0)return;Vn.fireWith(Dn,[Kn]),Kn.fn.trigger&&Kn(Dn).trigger("ready").off("ready")}},bindReady:function bindReady(){if(!Vn){if(Vn=Kn.Callbacks("once memory"),"complete"===Dn.readyState)return setTimeout(Kn.ready,1);if(Dn.addEventListener)Dn.addEventListener("DOMContentLoaded",zn,!1),Tn.addEventListener("load",Kn.ready,!1);else if(Dn.attachEvent){Dn.attachEvent("onreadystatechange",zn),Tn.attachEvent("onload",Kn.ready);var Un=!1;try{Un=null==Tn.frameElement}catch(Tn){}Dn.documentElement.doScroll&&Un&&J()}}},isFunction:function isFunction(Tn){return"function"===Kn.type(Tn)},isArray:Array.isArray||function(Tn){return"array"===Kn.type(Tn)},isWindow:function isWindow(Tn){return Tn&&"object"==_typeof(Tn)&&"setInterval"in Tn},isNumeric:function isNumeric(Tn){return!isNaN(parseFloat(Tn))&&isFinite(Tn)},type:function type(Tn){return null==Tn?String(Tn):yr[pr.call(Tn)]||"object"},isPlainObject:function isPlainObject(Tn){if(!Tn||"object"!==Kn.type(Tn)||Tn.nodeType||Kn.isWindow(Tn))return!1;try{if(Tn.constructor&&!gr.call(Tn,"constructor")&&!gr.call(Tn.constructor.prototype,"isPrototypeOf"))return!1}catch(Tn){return!1}var Dn;for(Dn in Tn);return Dn===Un||gr.call(Tn,Dn)},isEmptyObject:function isEmptyObject(Tn){for(var Un in Tn)return!1;return!0},error:function error(Tn){throw new Error(Tn)},parseJSON:function parseJSON(Un){return"string"==typeof Un&&Un?(Un=Kn.trim(Un),Tn.JSON&&Tn.JSON.parse?Tn.JSON.parse(Un):tr.test(Un.replace(nr,"@").replace(rr,"]").replace(ir,""))?new Function("return "+Un)():void Kn.error("Invalid JSON: "+Un)):null},parseXML:function parseXML(Dn){var Qn;try{Tn.DOMParser?Qn=(new DOMParser).parseFromString(Dn,"text/xml"):((Qn=new ActiveXObject("Microsoft.XMLDOM")).async="false",Qn.loadXML(Dn))}catch(Tn){Qn=Un}return(!Qn||!Qn.documentElement||Qn.getElementsByTagName("parsererror").length)&&Kn.error("Invalid XML: "+Dn),Qn},noop:function noop(){},globalEval:function globalEval(Un){Un&&Yn.test(Un)&&(Tn.execScript||function(Un){Tn.eval.call(Tn,Un)})(Un)},camelCase:function camelCase(Tn){return Tn.replace(ur,"ms-").replace(cr,dr)},nodeName:function nodeName(Tn,Un){return Tn.nodeName&&Tn.nodeName.toUpperCase()===Un.toUpperCase()},each:function each(Tn,Dn,Qn){var Hn,Gn=0,Vn=Tn.length,zn=Vn===Un||Kn.isFunction(Tn);if(Qn)if(zn){for(Hn in Tn)if(!1===Dn.apply(Tn[Hn],Qn))break}else for(;Gn<Vn&&!1!==Dn.apply(Tn[Gn++],Qn););else if(zn){for(Hn in Tn)if(!1===Dn.call(Tn[Hn],Hn,Tn[Hn]))break}else for(;Gn<Vn&&!1!==Dn.call(Tn[Gn],Gn,Tn[Gn++]););return Tn},trim:mr?function(Tn){return null==Tn?"":mr.call(Tn)}:function(Tn){return null==Tn?"":(Tn+"").replace(Jn,"").replace(Zn,"")},makeArray:function makeArray(Tn,Un){var Dn=Un||[];if(null!=Tn){var Qn=Kn.type(Tn);null==Tn.length||"string"===Qn||"function"===Qn||"regexp"===Qn||Kn.isWindow(Tn)?fr.call(Dn,Tn):Kn.merge(Dn,Tn)}return Dn},inArray:function inArray(Tn,Un,Dn){var Qn;if(Un){if(vr)return vr.call(Un,Tn,Dn);for(Qn=Un.length,Dn=Dn?Dn<0?Math.max(0,Qn+Dn):Dn:0;Dn<Qn;Dn++)if(Dn in Un&&Un[Dn]===Tn)return Dn}return-1},merge:function merge(Tn,Dn){var Qn=Tn.length,Hn=0;if("number"==typeof Dn.length)for(var Gn=Dn.length;Hn<Gn;Hn++)Tn[Qn++]=Dn[Hn];else for(;Dn[Hn]!==Un;)Tn[Qn++]=Dn[Hn++];return Tn.length=Qn,Tn},grep:function grep(Tn,Un,Dn){var Qn=[];Dn=!!Dn;for(var Hn=0,Gn=Tn.length;Hn<Gn;Hn++)Dn!==!!Un(Tn[Hn],Hn)&&Qn.push(Tn[Hn]);return Qn},map:function map(Tn,Dn,Qn){var Hn,Gn,Vn=[],zn=0,$n=Tn.length;if(Tn instanceof Kn||$n!==Un&&"number"==typeof $n&&($n>0&&Tn[0]&&Tn[$n-1]||0===$n||Kn.isArray(Tn)))for(;zn<$n;zn++)null!=(Hn=Dn(Tn[zn],zn,Qn))&&(Vn[Vn.length]=Hn);else for(Gn in Tn)null!=(Hn=Dn(Tn[Gn],Gn,Qn))&&(Vn[Vn.length]=Hn);return Vn.concat.apply([],Vn)},guid:1,proxy:function proxy(Tn,Dn){if("string"==typeof Dn){var Qn=Tn[Dn];Dn=Tn,Tn=Qn}if(!Kn.isFunction(Tn))return Un;var Hn=Ar.call(arguments,2),Gn=function g(){return Tn.apply(Dn,Hn.concat(Ar.call(arguments)))};return Gn.guid=Tn.guid=Tn.guid||Gn.guid||Kn.guid++,Gn},access:function access(Tn,Dn,Qn,Hn,Gn,Vn){var zn=Tn.length;if("object"==_typeof(Dn)){for(var $n in Dn)Kn.access(Tn,$n,Dn[$n],Hn,Gn,Qn);return Tn}if(Qn!==Un){Hn=!Vn&&Hn&&Kn.isFunction(Qn);for(var Wn=0;Wn<zn;Wn++)Gn(Tn[Wn],Dn,Hn?Qn.call(Tn[Wn],Wn,Gn(Tn[Wn],Dn)):Qn,Vn);return Tn}return zn?Gn(Tn[0],Dn):Un},now:function now(){return(new Date).getTime()},uaMatch:function uaMatch(Tn){Tn=Tn.toLowerCase();var Un=or.exec(Tn)||ar.exec(Tn)||sr.exec(Tn)||Tn.indexOf("compatible")<0&&lr.exec(Tn)||[];return{browser:Un[1]||"",version:Un[2]||"0"}},sub:function sub(){function a(Tn,Un){return new a.fn.init(Tn,Un)}Kn.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(Un,Dn){return Dn&&Dn instanceof Kn&&!(Dn instanceof a)&&(Dn=a(Dn)),Kn.fn.init.call(this,Un,Dn,Tn)},a.fn.init.prototype=a.fn;var Tn=a(Dn);return a},browser:{}}),Kn.each("Boolean Number String Function Array Date RegExp Object".split(" "),(function(Tn,Un){yr["[object "+Un+"]"]=Un.toLowerCase()})),(Gn=Kn.uaMatch(hr)).browser&&(Kn.browser[Gn.browser]=!0,Kn.browser.version=Gn.version),Kn.browser.webkit&&(Kn.browser.safari=!0),Yn.test(" ")&&(Jn=/^[\s\xA0]+/,Zn=/[\s\xA0]+$/),Hn=Kn(Dn),Dn.addEventListener?zn=function B(){Dn.removeEventListener("DOMContentLoaded",zn,!1),Kn.ready()}:Dn.attachEvent&&(zn=function _B(){"complete"===Dn.readyState&&(Dn.detachEvent("onreadystatechange",zn),Kn.ready())}),Kn}(),Vn={};Gn.Callbacks=function(Tn){Tn=Tn?Vn[Tn]||function h(Tn){var Un,Dn,Qn=Vn[Tn]={};for(Un=0,Dn=(Tn=Tn.split(/\s+/)).length;Un<Dn;Un++)Qn[Tn[Un]]=!0;return Qn}(Tn):{};var Dn,Qn,Hn,zn,Kn,$n=[],Wn=[],Xn=function m(Un){var Dn,Qn,Hn,Vn;for(Dn=0,Qn=Un.length;Dn<Qn;Dn++)Hn=Un[Dn],"array"===(Vn=Gn.type(Hn))?m(Hn):"function"===Vn&&(!Tn.unique||!Jn.has(Hn))&&$n.push(Hn)},Yn=function n(Un,Gn){for(Gn=Gn||[],Dn=!Tn.memory||[Un,Gn],Qn=!0,Kn=Hn||0,Hn=0,zn=$n.length;$n&&Kn<zn;Kn++)if(!1===$n[Kn].apply(Un,Gn)&&Tn.stopOnFalse){Dn=!0;break}Qn=!1,$n&&(Tn.once?!0===Dn?Jn.disable():$n=[]:Wn&&Wn.length&&(Dn=Wn.shift(),Jn.fireWith(Dn[0],Dn[1])))},Jn={add:function add(){if($n){var Tn=$n.length;Xn(arguments),Qn?zn=$n.length:Dn&&!0!==Dn&&(Hn=Tn,Yn(Dn[0],Dn[1]))}return this},remove:function remove(){if($n)for(var Un=arguments,Dn=0,Hn=Un.length;Dn<Hn;Dn++)for(var Gn=0;Gn<$n.length&&(Un[Dn]!==$n[Gn]||(Qn&&Gn<=zn&&(zn--,Gn<=Kn&&Kn--),$n.splice(Gn--,1),!Tn.unique));Gn++);return this},has:function has(Tn){if($n)for(var Un=0,Dn=$n.length;Un<Dn;Un++)if(Tn===$n[Un])return!0;return!1},empty:function empty(){return $n=[],this},disable:function disable(){return $n=Wn=Dn=Un,this},disabled:function disabled(){return!$n},lock:function lock(){return Wn=Un,(!Dn||!0===Dn)&&Jn.disable(),this},locked:function locked(){return!Wn},fireWith:function fireWith(Un,Hn){return Wn&&(Qn?Tn.once||Wn.push([Un,Hn]):(!Tn.once||!Dn)&&Yn(Un,Hn)),this},fire:function fire(){return Jn.fireWith(this,arguments),this},fired:function fired(){return!!Dn}};return Jn};var zn=[].slice;Gn.extend({Deferred:function Deferred(Tn){var Un,Dn=Gn.Callbacks("once memory"),Qn=Gn.Callbacks("once memory"),Hn=Gn.Callbacks("memory"),Vn="pending",zn={resolve:Dn,reject:Qn,notify:Hn},Kn={done:Dn.add,fail:Qn.add,progress:Hn.add,state:function state(){return Vn},isResolved:Dn.fired,isRejected:Qn.fired,then:function then(Tn,Un,Dn){return $n.done(Tn).fail(Un).progress(Dn),this},always:function always(){return $n.done.apply($n,arguments).fail.apply($n,arguments),this},pipe:function pipe(Tn,Un,Dn){return Gn.Deferred((function(Qn){Gn.each({done:[Tn,"resolve"],fail:[Un,"reject"],progress:[Dn,"notify"]},(function(Tn,Un){var Dn,Hn=Un[0],Vn=Un[1];Gn.isFunction(Hn)?$n[Tn]((function(){(Dn=Hn.apply(this,arguments))&&Gn.isFunction(Dn.promise)?Dn.promise().then(Qn.resolve,Qn.reject,Qn.notify):Qn[Vn+"With"](this===$n?Qn:this,[Dn])})):$n[Tn](Qn[Vn])}))})).promise()},promise:function promise(Tn){if(null==Tn)Tn=Kn;else for(var Un in Kn)Tn[Un]=Kn[Un];return Tn}},$n=Kn.promise({});for(Un in zn)$n[Un]=zn[Un].fire,$n[Un+"With"]=zn[Un].fireWith;return $n.done((function(){Vn="resolved"}),Qn.disable,Hn.lock).fail((function(){Vn="rejected"}),Dn.disable,Hn.lock),Tn&&Tn.call($n,$n),$n},when:function when(Tn){function m(Tn){return function(Un){Hn[Tn]=arguments.length>1?zn.call(arguments,0):Un,Kn.notifyWith($n,Hn)}}function l(Tn){return function(Dn){Un[Tn]=arguments.length>1?zn.call(arguments,0):Dn,--Vn||Kn.resolveWith(Kn,Un)}}var Un=zn.call(arguments,0),Dn=0,Qn=Un.length,Hn=Array(Qn),Vn=Qn,Kn=Qn<=1&&Tn&&Gn.isFunction(Tn.promise)?Tn:Gn.Deferred(),$n=Kn.promise();if(Qn>1){for(;Dn<Qn;Dn++)Un[Dn]&&Un[Dn].promise&&Gn.isFunction(Un[Dn].promise)?Un[Dn].promise().then(l(Dn),Kn.reject,m(Dn)):--Vn;Vn||Kn.resolveWith(Kn,Un)}else Kn!==Tn&&Kn.resolveWith(Kn,Qn?[Tn]:[]);return $n}}),Gn.support=function(){var Un,Qn,Hn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er=Dn.createElement("div");Dn.documentElement;if(er.setAttribute("className","t"),er.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",Qn=er.getElementsByTagName("*"),Hn=er.getElementsByTagName("a")[0],!Qn||!Qn.length||!Hn)return{};zn=(Vn=Dn.createElement("select")).appendChild(Dn.createElement("option")),Kn=er.getElementsByTagName("input")[0],Un={leadingWhitespace:3===er.firstChild.nodeType,tbody:!er.getElementsByTagName("tbody").length,htmlSerialize:!!er.getElementsByTagName("link").length,style:/top/.test(Hn.getAttribute("style")),hrefNormalized:"/a"===Hn.getAttribute("href"),opacity:/^0.55/.test(Hn.style.opacity),cssFloat:!!Hn.style.cssFloat,checkOn:"on"===Kn.value,optSelected:zn.selected,getSetAttribute:"t"!==er.className,enctype:!!Dn.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==Dn.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},Kn.checked=!0,Un.noCloneChecked=Kn.cloneNode(!0).checked,Vn.disabled=!0,Un.optDisabled=!zn.disabled;try{delete er.test}catch(Tn){Un.deleteExpando=!1}if(!er.addEventListener&&er.attachEvent&&er.fireEvent&&(er.attachEvent("onclick",(function(){Un.noCloneEvent=!1})),er.cloneNode(!0).fireEvent("onclick")),(Kn=Dn.createElement("input")).value="t",Kn.setAttribute("type","radio"),Un.radioValue="t"===Kn.value,Kn.setAttribute("checked","checked"),er.appendChild(Kn),(Wn=Dn.createDocumentFragment()).appendChild(er.lastChild),Un.checkClone=Wn.cloneNode(!0).cloneNode(!0).lastChild.checked,Un.appendChecked=Kn.checked,Wn.removeChild(Kn),Wn.appendChild(er),er.innerHTML="",Tn.getComputedStyle&&(($n=Dn.createElement("div")).style.width="0",$n.style.marginRight="0",er.style.width="2px",er.appendChild($n),Un.reliableMarginRight=0===(parseInt((Tn.getComputedStyle($n,null)||{marginRight:0}).marginRight,10)||0)),er.attachEvent)for(Jn in{submit:1,change:1,focusin:1})(Zn=(Yn="on"+Jn)in er)||(er.setAttribute(Yn,"return;"),Zn="function"==typeof er[Yn]),Un[Jn+"Bubbles"]=Zn;return Wn.removeChild(er),Wn=Vn=zn=$n=er=Kn=null,Gn((function(){var Tn,Qn,Hn,Vn,zn,Kn,$n,Wn,Yn=Dn.getElementsByTagName("body")[0];!Yn||(1,$n="visibility:hidden;border:0;","<div "+(Wn="style='"+(Kn="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;")+"border:5px solid #000;padding:0;'")+"><div></div></div><table "+Wn+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",(Tn=Dn.createElement("div")).style.cssText=$n+"width:0;height:0;position:static;top:0;margin-top:1px",Yn.insertBefore(Tn,Yn.firstChild),er=Dn.createElement("div"),Tn.appendChild(er),er.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",Xn=er.getElementsByTagName("td"),Zn=0===Xn[0].offsetHeight,Xn[0].style.display="",Xn[1].style.display="none",Un.reliableHiddenOffsets=Zn&&0===Xn[0].offsetHeight,er.innerHTML="",er.style.width=er.style.paddingLeft="1px",Gn.boxModel=Un.boxModel=2===er.offsetWidth,void 0!==er.style.zoom&&(er.style.display="inline",er.style.zoom=1,Un.inlineBlockNeedsLayout=2===er.offsetWidth,er.style.display="",er.innerHTML="<div style='width:4px;'></div>",Un.shrinkWrapBlocks=2!==er.offsetWidth),er.style.cssText=Kn+$n,er.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>",Hn=(Qn=er.firstChild).firstChild,Vn=Qn.nextSibling.firstChild.firstChild,zn={doesNotAddBorder:5!==Hn.offsetTop,doesAddBorderForTableAndCells:5===Vn.offsetTop},Hn.style.position="fixed",Hn.style.top="20px",zn.fixedPosition=20===Hn.offsetTop||15===Hn.offsetTop,Hn.style.position=Hn.style.top="",Qn.style.overflow="hidden",Qn.style.position="relative",zn.subtractsBorderForOverflowNotVisible=-5===Hn.offsetTop,zn.doesNotIncludeMarginInBodyOffset=1!==Yn.offsetTop,Yn.removeChild(Tn),er=Tn=null,Gn.extend(Un,zn))})),Un}();var Kn=/^(?:\{.*\}|\[.*\])$/,$n=/([A-Z])/g;Gn.extend({cache:{},uuid:0,expando:"jQuery"+(Gn.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function hasData(Tn){return!!(Tn=Tn.nodeType?Gn.cache[Tn[Gn.expando]]:Tn[Gn.expando])&&!m(Tn)},data:function data(Tn,Dn,Qn,Hn){if(Gn.acceptData(Tn)){var Vn,zn,Kn,$n=Gn.expando,Wn="string"==typeof Dn,Xn=Tn.nodeType,Yn=Xn?Gn.cache:Tn,Jn=Xn?Tn[$n]:Tn[$n]&&$n,Zn="events"===Dn;if((!Jn||!Yn[Jn]||!Zn&&!Hn&&!Yn[Jn].data)&&Wn&&Qn===Un)return;return Jn||(Xn?Tn[$n]=Jn=++Gn.uuid:Jn=$n),Yn[Jn]||(Yn[Jn]={},Xn||(Yn[Jn].toJSON=Gn.noop)),"object"!=_typeof(Dn)&&"function"!=typeof Dn||(Hn?Yn[Jn]=Gn.extend(Yn[Jn],Dn):Yn[Jn].data=Gn.extend(Yn[Jn].data,Dn)),Vn=zn=Yn[Jn],Hn||(zn.data||(zn.data={}),zn=zn.data),Qn!==Un&&(zn[Gn.camelCase(Dn)]=Qn),Zn&&!zn[Dn]?Vn.events:(Wn?null==(Kn=zn[Dn])&&(Kn=zn[Gn.camelCase(Dn)]):Kn=zn,Kn)}},removeData:function removeData(Tn,Un,Dn){if(Gn.acceptData(Tn)){var Qn,Hn,Vn,zn=Gn.expando,Kn=Tn.nodeType,$n=Kn?Gn.cache:Tn,Wn=Kn?Tn[zn]:zn;if(!$n[Wn])return;if(Un&&(Qn=Dn?$n[Wn]:$n[Wn].data)){Gn.isArray(Un)||(Un in Qn?Un=[Un]:Un=(Un=Gn.camelCase(Un))in Qn?[Un]:Un.split(" "));for(Hn=0,Vn=Un.length;Hn<Vn;Hn++)delete Qn[Un[Hn]];if(!(Dn?m:Gn.isEmptyObject)(Qn))return}if(!Dn&&(delete $n[Wn].data,!m($n[Wn])))return;Gn.support.deleteExpando||!$n.setInterval?delete $n[Wn]:$n[Wn]=null,Kn&&(Gn.support.deleteExpando?delete Tn[zn]:Tn.removeAttribute?Tn.removeAttribute(zn):Tn[zn]=null)}},_data:function _data(Tn,Un,Dn){return Gn.data(Tn,Un,Dn,!0)},acceptData:function acceptData(Tn){if(Tn.nodeName){var Un=Gn.noData[Tn.nodeName.toLowerCase()];if(Un)return!0!==Un&&Tn.getAttribute("classid")===Un}return!0}}),Gn.fn.extend({data:function data(Tn,Dn){var Qn,Hn,Vn,zn=null;if(void 0===Tn){if(this.length&&(zn=Gn.data(this[0]),1===this[0].nodeType&&!Gn._data(this[0],"parsedAttrs"))){for(var Kn=0,$n=(Hn=this[0].attributes).length;Kn<$n;Kn++)0===(Vn=Hn[Kn].name).indexOf("data-")&&(Vn=Gn.camelCase(Vn.substring(5)),l(this[0],Vn,zn[Vn]));Gn._data(this[0],"parsedAttrs",!0)}return zn}return"object"==_typeof(Tn)?this.each((function(){Gn.data(this,Tn)})):((Qn=Tn.split("."))[1]=Qn[1]?"."+Qn[1]:"",Dn===Un?((zn=this.triggerHandler("getData"+Qn[1]+"!",[Qn[0]]))===Un&&this.length&&(zn=Gn.data(this[0],Tn),zn=l(this[0],Tn,zn)),zn===Un&&Qn[1]?this.data(Qn[0]):zn):this.each((function(){var Un=Gn(this),Hn=[Qn[0],Dn];Un.triggerHandler("setData"+Qn[1]+"!",Hn),Gn.data(this,Tn,Dn),Un.triggerHandler("changeData"+Qn[1]+"!",Hn)})))},removeData:function removeData(Tn){return this.each((function(){Gn.removeData(this,Tn)}))}}),Gn.extend({_mark:function _mark(Tn,Un){Tn&&(Un=(Un||"fx")+"mark",Gn._data(Tn,Un,(Gn._data(Tn,Un)||0)+1))},_unmark:function _unmark(Tn,Un,Dn){if(!0!==Tn&&(Dn=Un,Un=Tn,Tn=!1),Un){var Qn=(Dn=Dn||"fx")+"mark",Hn=Tn?0:(Gn._data(Un,Qn)||1)-1;Hn?Gn._data(Un,Qn,Hn):(Gn.removeData(Un,Qn,!0),n(Un,Dn,"mark"))}},queue:function queue(Tn,Un,Dn){var Qn;if(Tn)return Un=(Un||"fx")+"queue",Qn=Gn._data(Tn,Un),Dn&&(!Qn||Gn.isArray(Dn)?Qn=Gn._data(Tn,Un,Gn.makeArray(Dn)):Qn.push(Dn)),Qn||[]},dequeue:function dequeue(Tn,Un){Un=Un||"fx";var Dn=Gn.queue(Tn,Un),Qn=Dn.shift(),Hn={};"inprogress"===Qn&&(Qn=Dn.shift()),Qn&&("fx"===Un&&Dn.unshift("inprogress"),Gn._data(Tn,Un+".run",Hn),Qn.call(Tn,(function(){Gn.dequeue(Tn,Un)}),Hn)),Dn.length||(Gn.removeData(Tn,Un+"queue "+Un+".run",!0),n(Tn,Un,"queue"))}}),Gn.fn.extend({queue:function queue(Tn,Dn){return"string"!=typeof Tn&&(Dn=Tn,Tn="fx"),Dn===Un?Gn.queue(this[0],Tn):this.each((function(){var Un=Gn.queue(this,Tn,Dn);"fx"===Tn&&"inprogress"!==Un[0]&&Gn.dequeue(this,Tn)}))},dequeue:function dequeue(Tn){return this.each((function(){Gn.dequeue(this,Tn)}))},delay:function delay(Tn,Un){return Tn=Gn.fx&&Gn.fx.speeds[Tn]||Tn,Un=Un||"fx",this.queue(Un,(function(Un,Dn){var Qn=setTimeout(Un,Tn);Dn.stop=function(){clearTimeout(Qn)}}))},clearQueue:function clearQueue(Tn){return this.queue(Tn||"fx",[])},promise:function promise(Tn,Dn){function m(){--Kn||Hn.resolveWith(Vn,[Vn])}"string"!=typeof Tn&&(Tn=Un),Tn=Tn||"fx";for(var Qn,Hn=Gn.Deferred(),Vn=this,zn=Vn.length,Kn=1,$n=Tn+"defer",Wn=Tn+"queue",Xn=Tn+"mark";zn--;)(Qn=Gn.data(Vn[zn],$n,Un,!0)||(Gn.data(Vn[zn],Wn,Un,!0)||Gn.data(Vn[zn],Xn,Un,!0))&&Gn.data(Vn[zn],$n,Gn.Callbacks("once memory"),!0))&&(Kn++,Qn.add(m));return m(),Hn.promise()}});var Wn,Xn,Yn,Jn=/[\n\t\r]/g,Zn=/\s+/,er=/\r/g,tr=/^(?:button|input)$/i,nr=/^(?:button|input|object|select|textarea)$/i,rr=/^a(?:rea)?$/i,ir=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,or=Gn.support.getSetAttribute;Gn.fn.extend({attr:function attr(Tn,Un){return Gn.access(this,Tn,Un,!0,Gn.attr)},removeAttr:function removeAttr(Tn){return this.each((function(){Gn.removeAttr(this,Tn)}))},prop:function prop(Tn,Un){return Gn.access(this,Tn,Un,!0,Gn.prop)},removeProp:function removeProp(Tn){return Tn=Gn.propFix[Tn]||Tn,this.each((function(){try{this[Tn]=Un,delete this[Tn]}catch(Tn){}}))},addClass:function addClass(Tn){var Un,Dn,Qn,Hn,Vn,zn,Kn;if(Gn.isFunction(Tn))return this.each((function(Un){Gn(this).addClass(Tn.call(this,Un,this.className))}));if(Tn&&"string"==typeof Tn)for(Un=Tn.split(Zn),Dn=0,Qn=this.length;Dn<Qn;Dn++)if(1===(Hn=this[Dn]).nodeType)if(Hn.className||1!==Un.length){for(Vn=" "+Hn.className+" ",zn=0,Kn=Un.length;zn<Kn;zn++)~Vn.indexOf(" "+Un[zn]+" ")||(Vn+=Un[zn]+" ");Hn.className=Gn.trim(Vn)}else Hn.className=Tn;return this},removeClass:function removeClass(Tn){var Dn,Qn,Hn,Vn,zn,Kn,$n;if(Gn.isFunction(Tn))return this.each((function(Un){Gn(this).removeClass(Tn.call(this,Un,this.className))}));if(Tn&&"string"==typeof Tn||Tn===Un)for(Dn=(Tn||"").split(Zn),Qn=0,Hn=this.length;Qn<Hn;Qn++)if(1===(Vn=this[Qn]).nodeType&&Vn.className)if(Tn){for(zn=(" "+Vn.className+" ").replace(Jn," "),Kn=0,$n=Dn.length;Kn<$n;Kn++)zn=zn.replace(" "+Dn[Kn]+" "," ");Vn.className=Gn.trim(zn)}else Vn.className="";return this},toggleClass:function toggleClass(Tn,Un){var Dn=_typeof(Tn),Qn="boolean"==typeof Un;return Gn.isFunction(Tn)?this.each((function(Dn){Gn(this).toggleClass(Tn.call(this,Dn,this.className,Un),Un)})):this.each((function(){if("string"===Dn)for(var Hn,Vn=0,zn=Gn(this),Kn=Un,$n=Tn.split(Zn);Hn=$n[Vn++];)Kn=Qn?Kn:!zn.hasClass(Hn),zn[Kn?"addClass":"removeClass"](Hn);else"undefined"!==Dn&&"boolean"!==Dn||(this.className&&Gn._data(this,"__className__",this.className),this.className=this.className||!1===Tn?"":Gn._data(this,"__className__")||"")}))},hasClass:function hasClass(Tn){for(var Un=" "+Tn+" ",Dn=0,Qn=this.length;Dn<Qn;Dn++)if(1===this[Dn].nodeType&&(" "+this[Dn].className+" ").replace(Jn," ").indexOf(Un)>-1)return!0;return!1},val:function val(Tn){var Dn,Qn,Hn,Vn=this[0];return arguments.length?(Hn=Gn.isFunction(Tn),this.each((function(Qn){var Vn,zn=Gn(this);1===this.nodeType&&(null==(Vn=Hn?Tn.call(this,Qn,zn.val()):Tn)?Vn="":"number"==typeof Vn?Vn+="":Gn.isArray(Vn)&&(Vn=Gn.map(Vn,(function(Tn){return null==Tn?"":Tn+""}))),(Dn=Gn.valHooks[this.nodeName.toLowerCase()]||Gn.valHooks[this.type])&&"set"in Dn&&Dn.set(this,Vn,"value")!==Un||(this.value=Vn))}))):Vn?(Dn=Gn.valHooks[Vn.nodeName.toLowerCase()]||Gn.valHooks[Vn.type])&&"get"in Dn&&(Qn=Dn.get(Vn,"value"))!==Un?Qn:"string"==typeof(Qn=Vn.value)?Qn.replace(er,""):null==Qn?"":Qn:void 0}}),Gn.extend({valHooks:{option:{get:function get(Tn){var Un=Tn.attributes.value;return!Un||Un.specified?Tn.value:Tn.text}},select:{get:function get(Tn){var Un,Dn,Qn,Hn,Vn=Tn.selectedIndex,zn=[],Kn=Tn.options,$n="select-one"===Tn.type;if(Vn<0)return null;for(Dn=$n?Vn:0,Qn=$n?Vn+1:Kn.length;Dn<Qn;Dn++)if((Hn=Kn[Dn]).selected&&(Gn.support.optDisabled?!Hn.disabled:null===Hn.getAttribute("disabled"))&&(!Hn.parentNode.disabled||!Gn.nodeName(Hn.parentNode,"optgroup"))){if(Un=Gn(Hn).val(),$n)return Un;zn.push(Un)}return $n&&!zn.length&&Kn.length?Gn(Kn[Vn]).val():zn},set:function set(Tn,Un){var Dn=Gn.makeArray(Un);return Gn(Tn).find("option").each((function(){this.selected=Gn.inArray(Gn(this).val(),Dn)>=0})),Dn.length||(Tn.selectedIndex=-1),Dn}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function attr(Tn,Dn,Qn,Hn){var Vn,zn,Kn,$n=Tn.nodeType;if(Tn&&3!==$n&&8!==$n&&2!==$n)return Hn&&Dn in Gn.attrFn?Gn(Tn)[Dn](Qn):void 0===Tn.getAttribute?Gn.prop(Tn,Dn,Qn):((Kn=1!==$n||!Gn.isXMLDoc(Tn))&&(Dn=Dn.toLowerCase(),zn=Gn.attrHooks[Dn]||(ir.test(Dn)?Xn:Wn)),Qn!==Un?null===Qn?void Gn.removeAttr(Tn,Dn):zn&&"set"in zn&&Kn&&(Vn=zn.set(Tn,Qn,Dn))!==Un?Vn:(Tn.setAttribute(Dn,""+Qn),Qn):zn&&"get"in zn&&Kn&&null!==(Vn=zn.get(Tn,Dn))?Vn:null===(Vn=Tn.getAttribute(Dn))?Un:Vn)},removeAttr:function removeAttr(Tn,Un){var Dn,Qn,Hn,Vn,zn=0;if(Un&&1===Tn.nodeType)for(Vn=(Qn=Un.toLowerCase().split(Zn)).length;zn<Vn;zn++)(Hn=Qn[zn])&&(Dn=Gn.propFix[Hn]||Hn,Gn.attr(Tn,Hn,""),Tn.removeAttribute(or?Hn:Dn),ir.test(Hn)&&Dn in Tn&&(Tn[Dn]=!1))},attrHooks:{type:{set:function set(Tn,Un){if(tr.test(Tn.nodeName)&&Tn.parentNode)Gn.error("type property can't be changed");else if(!Gn.support.radioValue&&"radio"===Un&&Gn.nodeName(Tn,"input")){var Dn=Tn.value;return Tn.setAttribute("type",Un),Dn&&(Tn.value=Dn),Un}}},value:{get:function get(Tn,Un){return Wn&&Gn.nodeName(Tn,"button")?Wn.get(Tn,Un):Un in Tn?Tn.value:null},set:function set(Tn,Un,Dn){if(Wn&&Gn.nodeName(Tn,"button"))return Wn.set(Tn,Un,Dn);Tn.value=Un}}},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(Tn,Dn,Qn){var Hn,Vn,zn=Tn.nodeType;if(Tn&&3!==zn&&8!==zn&&2!==zn)return(1!==zn||!Gn.isXMLDoc(Tn))&&(Dn=Gn.propFix[Dn]||Dn,Vn=Gn.propHooks[Dn]),Qn!==Un?Vn&&"set"in Vn&&(Hn=Vn.set(Tn,Qn,Dn))!==Un?Hn:Tn[Dn]=Qn:Vn&&"get"in Vn&&null!==(Hn=Vn.get(Tn,Dn))?Hn:Tn[Dn]},propHooks:{tabIndex:{get:function get(Tn){var Dn=Tn.getAttributeNode("tabindex");return Dn&&Dn.specified?parseInt(Dn.value,10):nr.test(Tn.nodeName)||rr.test(Tn.nodeName)&&Tn.href?0:Un}}}}),Gn.attrHooks.tabindex=Gn.propHooks.tabIndex,Xn={get:function get(Tn,Dn){var Qn,Hn=Gn.prop(Tn,Dn);return!0===Hn||"boolean"!=typeof Hn&&(Qn=Tn.getAttributeNode(Dn))&&!1!==Qn.nodeValue?Dn.toLowerCase():Un},set:function set(Tn,Un,Dn){var Qn;return!1===Un?Gn.removeAttr(Tn,Dn):((Qn=Gn.propFix[Dn]||Dn)in Tn&&(Tn[Qn]=!0),Tn.setAttribute(Dn,Dn.toLowerCase())),Dn}},or||(Yn={name:!0,id:!0},Wn=Gn.valHooks.button={get:function get(Tn,Dn){var Qn;return(Qn=Tn.getAttributeNode(Dn))&&(Yn[Dn]?""!==Qn.nodeValue:Qn.specified)?Qn.nodeValue:Un},set:function set(Tn,Un,Qn){var Hn=Tn.getAttributeNode(Qn);return Hn||(Hn=Dn.createAttribute(Qn),Tn.setAttributeNode(Hn)),Hn.nodeValue=Un+""}},Gn.attrHooks.tabindex.set=Wn.set,Gn.each(["width","height"],(function(Tn,Un){Gn.attrHooks[Un]=Gn.extend(Gn.attrHooks[Un],{set:function set(Tn,Dn){if(""===Dn)return Tn.setAttribute(Un,"auto"),Dn}})})),Gn.attrHooks.contenteditable={get:Wn.get,set:function set(Tn,Un,Dn){""===Un&&(Un="false"),Wn.set(Tn,Un,Dn)}}),Gn.support.hrefNormalized||Gn.each(["href","src","width","height"],(function(Tn,Dn){Gn.attrHooks[Dn]=Gn.extend(Gn.attrHooks[Dn],{get:function get(Tn){var Qn=Tn.getAttribute(Dn,2);return null===Qn?Un:Qn}})})),Gn.support.style||(Gn.attrHooks.style={get:function get(Tn){return Tn.style.cssText.toLowerCase()||Un},set:function set(Tn,Un){return Tn.style.cssText=""+Un}}),Gn.support.optSelected||(Gn.propHooks.selected=Gn.extend(Gn.propHooks.selected,{get:function get(Tn){var Un=Tn.parentNode;return Un&&(Un.selectedIndex,Un.parentNode&&Un.parentNode.selectedIndex),null}})),Gn.support.enctype||(Gn.propFix.enctype="encoding"),Gn.support.checkOn||Gn.each(["radio","checkbox"],(function(){Gn.valHooks[this]={get:function get(Tn){return null===Tn.getAttribute("value")?"on":Tn.value}}})),Gn.each(["radio","checkbox"],(function(){Gn.valHooks[this]=Gn.extend(Gn.valHooks[this],{set:function set(Tn,Un){if(Gn.isArray(Un))return Tn.checked=Gn.inArray(Gn(Tn).val(),Un)>=0}})}));var ar=/^(?:textarea|input|select)$/i,sr=/^([^\.]*)?(?:\.(.+))?$/,lr=/\bhover(\.\S+)?\b/,cr=/^key/,ur=/^(?:mouse|contextmenu)|click/,dr=/^(?:focusinfocus|focusoutblur)$/,hr=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,pr=function G(Tn){var Un=hr.exec(Tn);return Un&&(Un[1]=(Un[1]||"").toLowerCase(),Un[3]=Un[3]&&new RegExp("(?:^|\\s)"+Un[3]+"(?:\\s|$)")),Un},gr=function H(Tn,Un){var Dn=Tn.attributes||{};return(!Un[1]||Tn.nodeName.toLowerCase()===Un[1])&&(!Un[2]||(Dn.id||{}).value===Un[2])&&(!Un[3]||Un[3].test((Dn.class||{}).value))},fr=function I(Tn){return Gn.event.special.hover?Tn:Tn.replace(lr,"mouseenter$1 mouseleave$1")};Gn.event={add:function add(Tn,Dn,Qn,Hn,Vn){var zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr;if(3!==Tn.nodeType&&8!==Tn.nodeType&&Dn&&Qn&&(zn=Gn._data(Tn))){for(Qn.handler&&(Qn=(er=Qn).handler),Qn.guid||(Qn.guid=Gn.guid++),($n=zn.events)||(zn.events=$n={}),(Kn=zn.handle)||(zn.handle=Kn=function i(Tn){return void 0===Gn||Tn&&Gn.event.triggered===Tn.type?Un:Gn.event.dispatch.apply(Kn.elem,arguments)},Kn.elem=Tn),Dn=Gn.trim(fr(Dn)).split(" "),Wn=0;Wn<Dn.length;Wn++)Yn=(Xn=sr.exec(Dn[Wn])||[])[1],Jn=(Xn[2]||"").split(".").sort(),nr=Gn.event.special[Yn]||{},Yn=(Vn?nr.delegateType:nr.bindType)||Yn,nr=Gn.event.special[Yn]||{},Zn=Gn.extend({type:Yn,origType:Xn[1],data:Hn,handler:Qn,guid:Qn.guid,selector:Vn,quick:pr(Vn),namespace:Jn.join(".")},er),(tr=$n[Yn])||((tr=$n[Yn]=[]).delegateCount=0,nr.setup&&!1!==nr.setup.call(Tn,Hn,Jn,Kn)||(Tn.addEventListener?Tn.addEventListener(Yn,Kn,!1):Tn.attachEvent&&Tn.attachEvent("on"+Yn,Kn))),nr.add&&(nr.add.call(Tn,Zn),Zn.handler.guid||(Zn.handler.guid=Qn.guid)),Vn?tr.splice(tr.delegateCount++,0,Zn):tr.push(Zn),Gn.event.global[Yn]=!0;Tn=null}},global:{},remove:function remove(Tn,Un,Dn,Qn,Hn){var Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr=Gn.hasData(Tn)&&Gn._data(Tn);if(rr&&(Jn=rr.events)){for(Un=Gn.trim(fr(Un||"")).split(" "),Vn=0;Vn<Un.length;Vn++)if(Kn=$n=(zn=sr.exec(Un[Vn])||[])[1],Wn=zn[2],Kn){for(Zn=Gn.event.special[Kn]||{},Xn=(tr=Jn[Kn=(Qn?Zn.delegateType:Zn.bindType)||Kn]||[]).length,Wn=Wn?new RegExp("(^|\\.)"+Wn.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,Yn=0;Yn<tr.length;Yn++)nr=tr[Yn],(Hn||$n===nr.origType)&&(!Dn||Dn.guid===nr.guid)&&(!Wn||Wn.test(nr.namespace))&&(!Qn||Qn===nr.selector||"**"===Qn&&nr.selector)&&(tr.splice(Yn--,1),nr.selector&&tr.delegateCount--,Zn.remove&&Zn.remove.call(Tn,nr));0===tr.length&&Xn!==tr.length&&((!Zn.teardown||!1===Zn.teardown.call(Tn,Wn))&&Gn.removeEvent(Tn,Kn,rr.handle),delete Jn[Kn])}else for(Kn in Jn)Gn.event.remove(Tn,Kn+Un[Vn],Dn,Qn,!0);Gn.isEmptyObject(Jn)&&((er=rr.handle)&&(er.elem=null),Gn.removeData(Tn,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function trigger(Dn,Qn,Hn,Vn){if(!Hn||3!==Hn.nodeType&&8!==Hn.nodeType){var zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr=Dn.type||Dn,rr=[];if(dr.test(nr+Gn.event.triggered))return;if(nr.indexOf("!")>=0&&(nr=nr.slice(0,-1),Kn=!0),nr.indexOf(".")>=0&&(rr=nr.split("."),nr=rr.shift(),rr.sort()),(!Hn||Gn.event.customEvent[nr])&&!Gn.event.global[nr])return;if((Dn="object"==_typeof(Dn)?Dn[Gn.expando]?Dn:new Gn.Event(nr,Dn):new Gn.Event(nr)).type=nr,Dn.isTrigger=!0,Dn.exclusive=Kn,Dn.namespace=rr.join("."),Dn.namespace_re=Dn.namespace?new RegExp("(^|\\.)"+rr.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,Yn=nr.indexOf(":")<0?"on"+nr:"",!Hn){for($n in zn=Gn.cache)zn[$n].events&&zn[$n].events[nr]&&Gn.event.trigger(Dn,Qn,zn[$n].handle.elem,!0);return}if(Dn.result=Un,Dn.target||(Dn.target=Hn),(Qn=null!=Qn?Gn.makeArray(Qn):[]).unshift(Dn),(Jn=Gn.event.special[nr]||{}).trigger&&!1===Jn.trigger.apply(Hn,Qn))return;if(er=[[Hn,Jn.bindType||nr]],!Vn&&!Jn.noBubble&&!Gn.isWindow(Hn)){for(tr=Jn.delegateType||nr,Wn=dr.test(tr+nr)?Hn:Hn.parentNode,Xn=null;Wn;Wn=Wn.parentNode)er.push([Wn,tr]),Xn=Wn;Xn&&Xn===Hn.ownerDocument&&er.push([Xn.defaultView||Xn.parentWindow||Tn,tr])}for($n=0;$n<er.length&&!Dn.isPropagationStopped();$n++)Wn=er[$n][0],Dn.type=er[$n][1],(Zn=(Gn._data(Wn,"events")||{})[Dn.type]&&Gn._data(Wn,"handle"))&&Zn.apply(Wn,Qn),(Zn=Yn&&Wn[Yn])&&Gn.acceptData(Wn)&&!1===Zn.apply(Wn,Qn)&&Dn.preventDefault();return Dn.type=nr,!Vn&&!Dn.isDefaultPrevented()&&(!Jn._default||!1===Jn._default.apply(Hn.ownerDocument,Qn))&&("click"!==nr||!Gn.nodeName(Hn,"a"))&&Gn.acceptData(Hn)&&Yn&&Hn[nr]&&("focus"!==nr&&"blur"!==nr||0!==Dn.target.offsetWidth)&&!Gn.isWindow(Hn)&&((Xn=Hn[Yn])&&(Hn[Yn]=null),Gn.event.triggered=nr,Hn[nr](),Gn.event.triggered=Un,Xn&&(Hn[Yn]=Xn)),Dn.result}},dispatch:function dispatch(Dn){Dn=Gn.event.fix(Dn||Tn.event);var Qn,Hn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn=(Gn._data(this,"events")||{})[Dn.type]||[],er=Zn.delegateCount,tr=[].slice.call(arguments,0),nr=!Dn.exclusive&&!Dn.namespace,rr=[];if(tr[0]=Dn,Dn.delegateTarget=this,er&&!Dn.target.disabled&&(!Dn.button||"click"!==Dn.type))for((zn=Gn(this)).context=this.ownerDocument||this,Vn=Dn.target;Vn!=this;Vn=Vn.parentNode||this){for($n={},Xn=[],zn[0]=Vn,Qn=0;Qn<er;Qn++)$n[Jn=(Yn=Zn[Qn]).selector]===Un&&($n[Jn]=Yn.quick?gr(Vn,Yn.quick):zn.is(Jn)),$n[Jn]&&Xn.push(Yn);Xn.length&&rr.push({elem:Vn,matches:Xn})}for(Zn.length>er&&rr.push({elem:this,matches:Zn.slice(er)}),Qn=0;Qn<rr.length&&!Dn.isPropagationStopped();Qn++)for(Wn=rr[Qn],Dn.currentTarget=Wn.elem,Hn=0;Hn<Wn.matches.length&&!Dn.isImmediatePropagationStopped();Hn++)Yn=Wn.matches[Hn],(nr||!Dn.namespace&&!Yn.namespace||Dn.namespace_re&&Dn.namespace_re.test(Yn.namespace))&&(Dn.data=Yn.data,Dn.handleObj=Yn,(Kn=((Gn.event.special[Yn.origType]||{}).handle||Yn.handler).apply(Wn.elem,tr))!==Un&&(Dn.result=Kn,!1===Kn&&(Dn.preventDefault(),Dn.stopPropagation())));return Dn.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(Tn,Un){return null==Tn.which&&(Tn.which=null!=Un.charCode?Un.charCode:Un.keyCode),Tn}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function filter(Tn,Qn){var Hn,Gn,Vn,zn=Qn.button,Kn=Qn.fromElement;return null==Tn.pageX&&null!=Qn.clientX&&(Gn=(Hn=Tn.target.ownerDocument||Dn).documentElement,Vn=Hn.body,Tn.pageX=Qn.clientX+(Gn&&Gn.scrollLeft||Vn&&Vn.scrollLeft||0)-(Gn&&Gn.clientLeft||Vn&&Vn.clientLeft||0),Tn.pageY=Qn.clientY+(Gn&&Gn.scrollTop||Vn&&Vn.scrollTop||0)-(Gn&&Gn.clientTop||Vn&&Vn.clientTop||0)),!Tn.relatedTarget&&Kn&&(Tn.relatedTarget=Kn===Tn.target?Qn.toElement:Kn),!Tn.which&&zn!==Un&&(Tn.which=1&zn?1:2&zn?3:4&zn?2:0),Tn}},fix:function fix(Tn){if(Tn[Gn.expando])return Tn;var Qn,Hn,Vn=Tn,zn=Gn.event.fixHooks[Tn.type]||{},Kn=zn.props?this.props.concat(zn.props):this.props;for(Tn=Gn.Event(Vn),Qn=Kn.length;Qn;)Tn[Hn=Kn[--Qn]]=Vn[Hn];return Tn.target||(Tn.target=Vn.srcElement||Dn),3===Tn.target.nodeType&&(Tn.target=Tn.target.parentNode),Tn.metaKey===Un&&(Tn.metaKey=Tn.ctrlKey),zn.filter?zn.filter(Tn,Vn):Tn},special:{ready:{setup:Gn.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function setup(Tn,Un,Dn){Gn.isWindow(this)&&(this.onbeforeunload=Dn)},teardown:function teardown(Tn,Un){this.onbeforeunload===Un&&(this.onbeforeunload=null)}}},simulate:function simulate(Tn,Un,Dn,Qn){var Hn=Gn.extend(new Gn.Event,Dn,{type:Tn,isSimulated:!0,originalEvent:{}});Qn?Gn.event.trigger(Hn,null,Un):Gn.event.dispatch.call(Un,Hn),Hn.isDefaultPrevented()&&Dn.preventDefault()}},Gn.event.handle=Gn.event.dispatch,Gn.removeEvent=Dn.removeEventListener?function(Tn,Un,Dn){Tn.removeEventListener&&Tn.removeEventListener(Un,Dn,!1)}:function(Tn,Un,Dn){Tn.detachEvent&&Tn.detachEvent("on"+Un,Dn)},Gn.Event=function(Tn,Un){if(!(this instanceof Gn.Event))return new Gn.Event(Tn,Un);Tn&&Tn.type?(this.originalEvent=Tn,this.type=Tn.type,this.isDefaultPrevented=Tn.defaultPrevented||!1===Tn.returnValue||Tn.getPreventDefault&&Tn.getPreventDefault()?K:J):this.type=Tn,Un&&Gn.extend(this,Un),this.timeStamp=Tn&&Tn.timeStamp||Gn.now(),this[Gn.expando]=!0},Gn.Event.prototype={preventDefault:function preventDefault(){this.isDefaultPrevented=K;var Tn=this.originalEvent;!Tn||(Tn.preventDefault?Tn.preventDefault():Tn.returnValue=!1)},stopPropagation:function stopPropagation(){this.isPropagationStopped=K;var Tn=this.originalEvent;!Tn||(Tn.stopPropagation&&Tn.stopPropagation(),Tn.cancelBubble=!0)},stopImmediatePropagation:function stopImmediatePropagation(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},Gn.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(Tn,Un){Gn.event.special[Tn]={delegateType:Un,bindType:Un,handle:function handle(Tn){var Dn,Qn=this,Hn=Tn.relatedTarget,Vn=Tn.handleObj;Vn.selector;return Hn&&(Hn===Qn||Gn.contains(Qn,Hn))||(Tn.type=Vn.origType,Dn=Vn.handler.apply(this,arguments),Tn.type=Un),Dn}}})),Gn.support.submitBubbles||(Gn.event.special.submit={setup:function setup(){if(Gn.nodeName(this,"form"))return!1;Gn.event.add(this,"click._submit keypress._submit",(function(Tn){var Dn=Tn.target,Qn=Gn.nodeName(Dn,"input")||Gn.nodeName(Dn,"button")?Dn.form:Un;Qn&&!Qn._submit_attached&&(Gn.event.add(Qn,"submit._submit",(function(Tn){this.parentNode&&!Tn.isTrigger&&Gn.event.simulate("submit",this.parentNode,Tn,!0)})),Qn._submit_attached=!0)}))},teardown:function teardown(){if(Gn.nodeName(this,"form"))return!1;Gn.event.remove(this,"._submit")}}),Gn.support.changeBubbles||(Gn.event.special.change={setup:function setup(){if(ar.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(Gn.event.add(this,"propertychange._change",(function(Tn){"checked"===Tn.originalEvent.propertyName&&(this._just_changed=!0)})),Gn.event.add(this,"click._change",(function(Tn){this._just_changed&&!Tn.isTrigger&&(this._just_changed=!1,Gn.event.simulate("change",this,Tn,!0))}))),!1;Gn.event.add(this,"beforeactivate._change",(function(Tn){var Un=Tn.target;ar.test(Un.nodeName)&&!Un._change_attached&&(Gn.event.add(Un,"change._change",(function(Tn){this.parentNode&&!Tn.isSimulated&&!Tn.isTrigger&&Gn.event.simulate("change",this.parentNode,Tn,!0)})),Un._change_attached=!0)}))},handle:function handle(Tn){var Un=Tn.target;if(this!==Un||Tn.isSimulated||Tn.isTrigger||"radio"!==Un.type&&"checkbox"!==Un.type)return Tn.handleObj.handler.apply(this,arguments)},teardown:function teardown(){return Gn.event.remove(this,"._change"),ar.test(this.nodeName)}}),Gn.support.focusinBubbles||Gn.each({focus:"focusin",blur:"focusout"},(function(Tn,Un){var Qn=0,Hn=function e(Tn){Gn.event.simulate(Un,Tn.target,Gn.event.fix(Tn),!0)};Gn.event.special[Un]={setup:function setup(){0==Qn++&&Dn.addEventListener(Tn,Hn,!0)},teardown:function teardown(){0==--Qn&&Dn.removeEventListener(Tn,Hn,!0)}}})),Gn.fn.extend({on:function on(Tn,Dn,Qn,Hn,Vn){var zn,Kn;if("object"==_typeof(Tn)){for(Kn in"string"!=typeof Dn&&(Qn=Dn,Dn=Un),Tn)this.on(Kn,Dn,Qn,Tn[Kn],Vn);return this}if(null==Qn&&null==Hn?(Hn=Dn,Qn=Dn=Un):null==Hn&&("string"==typeof Dn?(Hn=Qn,Qn=Un):(Hn=Qn,Qn=Dn,Dn=Un)),!1===Hn)Hn=J;else if(!Hn)return this;return 1===Vn&&(zn=Hn,(Hn=function e(Tn){return Gn().off(Tn),zn.apply(this,arguments)}).guid=zn.guid||(zn.guid=Gn.guid++)),this.each((function(){Gn.event.add(this,Tn,Hn,Qn,Dn)}))},one:function one(Tn,Un,Dn,Qn){return this.on.call(this,Tn,Un,Dn,Qn,1)},off:function off(Tn,Dn,Qn){if(Tn&&Tn.preventDefault&&Tn.handleObj){var Hn=Tn.handleObj;return Gn(Tn.delegateTarget).off(Hn.namespace?Hn.type+"."+Hn.namespace:Hn.type,Hn.selector,Hn.handler),this}if("object"==_typeof(Tn)){for(var Vn in Tn)this.off(Vn,Dn,Tn[Vn]);return this}return!1!==Dn&&"function"!=typeof Dn||(Qn=Dn,Dn=Un),!1===Qn&&(Qn=J),this.each((function(){Gn.event.remove(this,Tn,Qn,Dn)}))},bind:function bind(Tn,Un,Dn){return this.on(Tn,null,Un,Dn)},unbind:function unbind(Tn,Un){return this.off(Tn,null,Un)},live:function live(Tn,Un,Dn){return Gn(this.context).on(Tn,this.selector,Un,Dn),this},die:function die(Tn,Un){return Gn(this.context).off(Tn,this.selector||"**",Un),this},delegate:function delegate(Tn,Un,Dn,Qn){return this.on(Un,Tn,Dn,Qn)},undelegate:function undelegate(Tn,Un,Dn){return 1==arguments.length?this.off(Tn,"**"):this.off(Un,Tn,Dn)},trigger:function trigger(Tn,Un){return this.each((function(){Gn.event.trigger(Tn,Un,this)}))},triggerHandler:function triggerHandler(Tn,Un){if(this[0])return Gn.event.trigger(Tn,Un,this[0],!0)},toggle:function toggle(Tn){var Un=arguments,Dn=Tn.guid||Gn.guid++,Qn=0,Hn=function e(Dn){var e=(Gn._data(this,"lastToggle"+Tn.guid)||0)%Qn;return Gn._data(this,"lastToggle"+Tn.guid,e+1),Dn.preventDefault(),Un[e].apply(this,arguments)||!1};for(Hn.guid=Dn;Qn<Un.length;)Un[Qn++].guid=Dn;return this.click(Hn)},hover:function hover(Tn,Un){return this.mouseenter(Tn).mouseleave(Un||Tn)}}),Gn.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(Tn,Un){Gn.fn[Un]=function(Tn,Dn){return null==Dn&&(Dn=Tn,Tn=null),arguments.length>0?this.on(Un,null,Tn,Dn):this.trigger(Un)},Gn.attrFn&&(Gn.attrFn[Un]=!0),cr.test(Un)&&(Gn.event.fixHooks[Un]=Gn.event.keyHooks),ur.test(Un)&&(Gn.event.fixHooks[Un]=Gn.event.mouseHooks)})),function(){function x(Tn,Un,Dn,Hn,Gn,Vn){for(var zn=0,Kn=Hn.length;zn<Kn;zn++){var $n=Hn[zn];if($n){var Wn=!1;for($n=$n[Tn];$n;){if($n[Qn]===Dn){Wn=Hn[$n.sizset];break}if(1===$n.nodeType)if(Vn||($n[Qn]=Dn,$n.sizset=zn),"string"!=typeof Un){if($n===Un){Wn=!0;break}}else if(Yn.filter(Un,[$n]).length>0){Wn=$n;break}$n=$n[Tn]}Hn[zn]=Wn}}}function w(Tn,Un,Dn,Hn,Gn,Vn){for(var zn=0,Kn=Hn.length;zn<Kn;zn++){var $n=Hn[zn];if($n){var Wn=!1;for($n=$n[Tn];$n;){if($n[Qn]===Dn){Wn=Hn[$n.sizset];break}if(1===$n.nodeType&&!Vn&&($n[Qn]=Dn,$n.sizset=zn),$n.nodeName.toLowerCase()===Un){Wn=$n;break}$n=$n[Tn]}Hn[zn]=Wn}}}var Tn=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Qn="sizcache"+(Math.random()+"").replace(".",""),Hn=0,Vn=Object.prototype.toString,zn=!1,Kn=!0,$n=/\\/g,Wn=/\r\n/g,Xn=/\W/;[0,0].sort((function(){return Kn=!1,0}));var Yn=function m(Un,Qn,Hn,Gn){Hn=Hn||[];var zn=Qn=Qn||Dn;if(1!==Qn.nodeType&&9!==Qn.nodeType)return[];if(!Un||"string"!=typeof Un)return Hn;var Kn,$n,Wn,Xn,Jn,tr,nr,rr,ir=!0,sr=Yn.isXML(Qn),lr=[],cr=Un;do{if(Tn.exec(""),(Kn=Tn.exec(cr))&&(cr=Kn[3],lr.push(Kn[1]),Kn[2])){Xn=Kn[3];break}}while(Kn);if(lr.length>1&&er.exec(Un))if(2===lr.length&&Zn.relative[lr[0]])$n=ar(lr[0]+lr[1],Qn,Gn);else for($n=Zn.relative[lr[0]]?[Qn]:Yn(lr.shift(),Qn);lr.length;)Un=lr.shift(),Zn.relative[Un]&&(Un+=lr.shift()),$n=ar(Un,$n,Gn);else if(!Gn&&lr.length>1&&9===Qn.nodeType&&!sr&&Zn.match.ID.test(lr[0])&&!Zn.match.ID.test(lr[lr.length-1])&&(Qn=(Jn=Yn.find(lr.shift(),Qn,sr)).expr?Yn.filter(Jn.expr,Jn.set)[0]:Jn.set[0]),Qn)for($n=(Jn=Gn?{expr:lr.pop(),set:or(Gn)}:Yn.find(lr.pop(),1!==lr.length||"~"!==lr[0]&&"+"!==lr[0]||!Qn.parentNode?Qn:Qn.parentNode,sr)).expr?Yn.filter(Jn.expr,Jn.set):Jn.set,lr.length>0?Wn=or($n):ir=!1;lr.length;)nr=tr=lr.pop(),Zn.relative[tr]?nr=lr.pop():tr="",null==nr&&(nr=Qn),Zn.relative[tr](Wn,nr,sr);else Wn=lr=[];if(Wn||(Wn=$n),Wn||Yn.error(tr||Un),"[object Array]"===Vn.call(Wn))if(ir)if(Qn&&1===Qn.nodeType)for(rr=0;null!=Wn[rr];rr++)Wn[rr]&&(!0===Wn[rr]||1===Wn[rr].nodeType&&Yn.contains(Qn,Wn[rr]))&&Hn.push($n[rr]);else for(rr=0;null!=Wn[rr];rr++)Wn[rr]&&1===Wn[rr].nodeType&&Hn.push($n[rr]);else Hn.push.apply(Hn,Wn);else or(Wn,Hn);return Xn&&(Yn(Xn,zn,Hn,Gn),Yn.uniqueSort(Hn)),Hn};Yn.uniqueSort=function(Tn){if(rr&&(zn=Kn,Tn.sort(rr),zn))for(var Un=1;Un<Tn.length;Un++)Tn[Un]===Tn[Un-1]&&Tn.splice(Un--,1);return Tn},Yn.matches=function(Tn,Un){return Yn(Tn,null,null,Un)},Yn.matchesSelector=function(Tn,Un){return Yn(Un,null,null,[Tn]).length>0},Yn.find=function(Tn,Un,Dn){var Qn,Hn,Gn,Vn,zn,Kn;if(!Tn)return[];for(Hn=0,Gn=Zn.order.length;Hn<Gn;Hn++)if(zn=Zn.order[Hn],(Vn=Zn.leftMatch[zn].exec(Tn))&&(Kn=Vn[1],Vn.splice(1,1),"\\"!==Kn.substr(Kn.length-1)&&(Vn[1]=(Vn[1]||"").replace($n,""),null!=(Qn=Zn.find[zn](Vn,Un,Dn))))){Tn=Tn.replace(Zn.match[zn],"");break}return Qn||(Qn=void 0!==Un.getElementsByTagName?Un.getElementsByTagName("*"):[]),{set:Qn,expr:Tn}},Yn.filter=function(Tn,Dn,Qn,Hn){for(var Gn,Vn,zn,Kn,$n,Wn,Xn,Jn,er,tr=Tn,nr=[],rr=Dn,ir=Dn&&Dn[0]&&Yn.isXML(Dn[0]);Tn&&Dn.length;){for(zn in Zn.filter)if(null!=(Gn=Zn.leftMatch[zn].exec(Tn))&&Gn[2]){if(Wn=Zn.filter[zn],Xn=Gn[1],Vn=!1,Gn.splice(1,1),"\\"===Xn.substr(Xn.length-1))continue;if(rr===nr&&(nr=[]),Zn.preFilter[zn])if(Gn=Zn.preFilter[zn](Gn,rr,Qn,nr,Hn,ir)){if(!0===Gn)continue}else Vn=Kn=!0;if(Gn)for(Jn=0;null!=($n=rr[Jn]);Jn++)$n&&(er=Hn^(Kn=Wn($n,Gn,Jn,rr)),Qn&&null!=Kn?er?Vn=!0:rr[Jn]=!1:er&&(nr.push($n),Vn=!0));if(Kn!==Un){if(Qn||(rr=nr),Tn=Tn.replace(Zn.match[zn],""),!Vn)return[];break}}if(Tn===tr){if(null!=Vn)break;Yn.error(Tn)}tr=Tn}return rr},Yn.error=function(Tn){throw new Error("Syntax error, unrecognized expression: "+Tn)};var Jn=Yn.getText=function(Tn){var Un,Dn,Qn=Tn.nodeType,Hn="";if(Qn){if(1===Qn||9===Qn){if("string"==typeof Tn.textContent)return Tn.textContent;if("string"==typeof Tn.innerText)return Tn.innerText.replace(Wn,"");for(Tn=Tn.firstChild;Tn;Tn=Tn.nextSibling)Hn+=Jn(Tn)}else if(3===Qn||4===Qn)return Tn.nodeValue}else for(Un=0;Dn=Tn[Un];Un++)8!==Dn.nodeType&&(Hn+=Jn(Dn));return Hn},Zn=Yn.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(Tn){return Tn.getAttribute("href")},type:function type(Tn){return Tn.getAttribute("type")}},relative:{"+":function _(Tn,Un){var Dn="string"==typeof Un,Qn=Dn&&!Xn.test(Un),Hn=Dn&&!Qn;Qn&&(Un=Un.toLowerCase());for(var Gn,Vn=0,zn=Tn.length;Vn<zn;Vn++)if(Gn=Tn[Vn]){for(;(Gn=Gn.previousSibling)&&1!==Gn.nodeType;);Tn[Vn]=Hn||Gn&&Gn.nodeName.toLowerCase()===Un?Gn||!1:Gn===Un}Hn&&Yn.filter(Un,Tn,!0)},">":function _(Tn,Un){var Dn,Qn="string"==typeof Un,Hn=0,Gn=Tn.length;if(Qn&&!Xn.test(Un)){for(Un=Un.toLowerCase();Hn<Gn;Hn++)if(Dn=Tn[Hn]){var Vn=Dn.parentNode;Tn[Hn]=Vn.nodeName.toLowerCase()===Un&&Vn}}else{for(;Hn<Gn;Hn++)(Dn=Tn[Hn])&&(Tn[Hn]=Qn?Dn.parentNode:Dn.parentNode===Un);Qn&&Yn.filter(Un,Tn,!0)}},"":function _(Tn,Un,Dn){var Qn,Gn=Hn++,Vn=x;"string"==typeof Un&&!Xn.test(Un)&&(Qn=Un=Un.toLowerCase(),Vn=w),Vn("parentNode",Un,Gn,Tn,Qn,Dn)},"~":function _(Tn,Un,Dn){var Qn,Gn=Hn++,Vn=x;"string"==typeof Un&&!Xn.test(Un)&&(Qn=Un=Un.toLowerCase(),Vn=w),Vn("previousSibling",Un,Gn,Tn,Qn,Dn)}},find:{ID:function ID(Tn,Un,Dn){if(void 0!==Un.getElementById&&!Dn){var Qn=Un.getElementById(Tn[1]);return Qn&&Qn.parentNode?[Qn]:[]}},NAME:function NAME(Tn,Un){if(void 0!==Un.getElementsByName){for(var Dn=[],Qn=Un.getElementsByName(Tn[1]),Hn=0,Gn=Qn.length;Hn<Gn;Hn++)Qn[Hn].getAttribute("name")===Tn[1]&&Dn.push(Qn[Hn]);return 0===Dn.length?null:Dn}},TAG:function TAG(Tn,Un){if(void 0!==Un.getElementsByTagName)return Un.getElementsByTagName(Tn[1])}},preFilter:{CLASS:function CLASS(Tn,Un,Dn,Qn,Hn,Gn){if(Tn=" "+Tn[1].replace($n,"")+" ",Gn)return Tn;for(var Vn,zn=0;null!=(Vn=Un[zn]);zn++)Vn&&(Hn^(Vn.className&&(" "+Vn.className+" ").replace(/[\t\n\r]/g," ").indexOf(Tn)>=0)?Dn||Qn.push(Vn):Dn&&(Un[zn]=!1));return!1},ID:function ID(Tn){return Tn[1].replace($n,"")},TAG:function TAG(Tn,Un){return Tn[1].replace($n,"").toLowerCase()},CHILD:function CHILD(Tn){if("nth"===Tn[1]){Tn[2]||Yn.error(Tn[0]),Tn[2]=Tn[2].replace(/^\+|\s*/g,"");var Un=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===Tn[2]?"2n":"odd"===Tn[2]&&"2n+1")||!/\D/.test(Tn[2])&&"0n+"+Tn[2]||Tn[2]);Tn[2]=Un[1]+(Un[2]||1)-0,Tn[3]=Un[3]-0}else Tn[2]&&Yn.error(Tn[0]);return Tn[0]=Hn++,Tn},ATTR:function ATTR(Tn,Un,Dn,Qn,Hn,Gn){var Vn=Tn[1]=Tn[1].replace($n,"");return!Gn&&Zn.attrMap[Vn]&&(Tn[1]=Zn.attrMap[Vn]),Tn[4]=(Tn[4]||Tn[5]||"").replace($n,""),"~="===Tn[2]&&(Tn[4]=" "+Tn[4]+" "),Tn},PSEUDO:function PSEUDO(Un,Dn,Qn,Hn,Gn){if("not"===Un[1]){if(!((Tn.exec(Un[3])||"").length>1||/^\w/.test(Un[3]))){var Vn=Yn.filter(Un[3],Dn,Qn,!0^Gn);return Qn||Hn.push.apply(Hn,Vn),!1}Un[3]=Yn(Un[3],null,null,Dn)}else if(Zn.match.POS.test(Un[0])||Zn.match.CHILD.test(Un[0]))return!0;return Un},POS:function POS(Tn){return Tn.unshift(!0),Tn}},filters:{enabled:function enabled(Tn){return!1===Tn.disabled&&"hidden"!==Tn.type},disabled:function disabled(Tn){return!0===Tn.disabled},checked:function checked(Tn){return!0===Tn.checked},selected:function selected(Tn){return Tn.parentNode&&Tn.parentNode.selectedIndex,!0===Tn.selected},parent:function parent(Tn){return!!Tn.firstChild},empty:function empty(Tn){return!Tn.firstChild},has:function has(Tn,Un,Dn){return!!Yn(Dn[3],Tn).length},header:function header(Tn){return/h\d/i.test(Tn.nodeName)},text:function text(Tn){var Un=Tn.getAttribute("type"),Dn=Tn.type;return"input"===Tn.nodeName.toLowerCase()&&"text"===Dn&&(Un===Dn||null===Un)},radio:function radio(Tn){return"input"===Tn.nodeName.toLowerCase()&&"radio"===Tn.type},checkbox:function checkbox(Tn){return"input"===Tn.nodeName.toLowerCase()&&"checkbox"===Tn.type},file:function file(Tn){return"input"===Tn.nodeName.toLowerCase()&&"file"===Tn.type},password:function password(Tn){return"input"===Tn.nodeName.toLowerCase()&&"password"===Tn.type},submit:function submit(Tn){var Un=Tn.nodeName.toLowerCase();return("input"===Un||"button"===Un)&&"submit"===Tn.type},image:function image(Tn){return"input"===Tn.nodeName.toLowerCase()&&"image"===Tn.type},reset:function reset(Tn){var Un=Tn.nodeName.toLowerCase();return("input"===Un||"button"===Un)&&"reset"===Tn.type},button:function button(Tn){var Un=Tn.nodeName.toLowerCase();return"input"===Un&&"button"===Tn.type||"button"===Un},input:function input(Tn){return/input|select|textarea|button/i.test(Tn.nodeName)},focus:function focus(Tn){return Tn===Tn.ownerDocument.activeElement}},setFilters:{first:function first(Tn,Un){return 0===Un},last:function last(Tn,Un,Dn,Qn){return Un===Qn.length-1},even:function even(Tn,Un){return Un%2==0},odd:function odd(Tn,Un){return Un%2==1},lt:function lt(Tn,Un,Dn){return Un<Dn[3]-0},gt:function gt(Tn,Un,Dn){return Un>Dn[3]-0},nth:function nth(Tn,Un,Dn){return Dn[3]-0===Un},eq:function eq(Tn,Un,Dn){return Dn[3]-0===Un}},filter:{PSEUDO:function PSEUDO(Tn,Un,Dn,Qn){var Hn=Un[1],Gn=Zn.filters[Hn];if(Gn)return Gn(Tn,Dn,Un,Qn);if("contains"===Hn)return(Tn.textContent||Tn.innerText||Jn([Tn])||"").indexOf(Un[3])>=0;if("not"===Hn){for(var Vn=Un[3],zn=0,Kn=Vn.length;zn<Kn;zn++)if(Vn[zn]===Tn)return!1;return!0}Yn.error(Hn)},CHILD:function CHILD(Tn,Un){var Dn,Hn,Gn,Vn,zn,Kn,$n=Un[1],Wn=Tn;switch($n){case"only":case"first":for(;Wn=Wn.previousSibling;)if(1===Wn.nodeType)return!1;if("first"===$n)return!0;Wn=Tn;case"last":for(;Wn=Wn.nextSibling;)if(1===Wn.nodeType)return!1;return!0;case"nth":if(Dn=Un[2],Hn=Un[3],1===Dn&&0===Hn)return!0;if(Gn=Un[0],(Vn=Tn.parentNode)&&(Vn[Qn]!==Gn||!Tn.nodeIndex)){for(zn=0,Wn=Vn.firstChild;Wn;Wn=Wn.nextSibling)1===Wn.nodeType&&(Wn.nodeIndex=++zn);Vn[Qn]=Gn}return Kn=Tn.nodeIndex-Hn,0===Dn?0===Kn:Kn%Dn==0&&Kn/Dn>=0}},ID:function ID(Tn,Un){return 1===Tn.nodeType&&Tn.getAttribute("id")===Un},TAG:function TAG(Tn,Un){return"*"===Un&&1===Tn.nodeType||!!Tn.nodeName&&Tn.nodeName.toLowerCase()===Un},CLASS:function CLASS(Tn,Un){return(" "+(Tn.className||Tn.getAttribute("class"))+" ").indexOf(Un)>-1},ATTR:function ATTR(Tn,Un){var Dn=Un[1],Qn=Yn.attr?Yn.attr(Tn,Dn):Zn.attrHandle[Dn]?Zn.attrHandle[Dn](Tn):null!=Tn[Dn]?Tn[Dn]:Tn.getAttribute(Dn),Hn=Qn+"",Gn=Un[2],Vn=Un[4];return null==Qn?"!="===Gn:!Gn&&Yn.attr?null!=Qn:"="===Gn?Hn===Vn:"*="===Gn?Hn.indexOf(Vn)>=0:"~="===Gn?(" "+Hn+" ").indexOf(Vn)>=0:Vn?"!="===Gn?Hn!==Vn:"^="===Gn?0===Hn.indexOf(Vn):"$="===Gn?Hn.substr(Hn.length-Vn.length)===Vn:"|="===Gn&&(Hn===Vn||Hn.substr(0,Vn.length+1)===Vn+"-"):Hn&&!1!==Qn},POS:function POS(Tn,Un,Dn,Qn){var Hn=Un[2],Gn=Zn.setFilters[Hn];if(Gn)return Gn(Tn,Dn,Un,Qn)}}},er=Zn.match.POS,tr=function q(Tn,Un){return"\\"+(Un-0+1)};for(var nr in Zn.match)Zn.match[nr]=new RegExp(Zn.match[nr].source+/(?![^\[]*\])(?![^\(]*\))/.source),Zn.leftMatch[nr]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Zn.match[nr].source.replace(/\\(\d+)/g,tr));var rr,ir,or=function s(Tn,Un){return Tn=Array.prototype.slice.call(Tn,0),Un?(Un.push.apply(Un,Tn),Un):Tn};try{Array.prototype.slice.call(Dn.documentElement.childNodes,0)[0].nodeType}catch(Tn){or=function s(Tn,Un){var Dn=0,Qn=Un||[];if("[object Array]"===Vn.call(Tn))Array.prototype.push.apply(Qn,Tn);else if("number"==typeof Tn.length)for(var Hn=Tn.length;Dn<Hn;Dn++)Qn.push(Tn[Dn]);else for(;Tn[Dn];Dn++)Qn.push(Tn[Dn]);return Qn}}Dn.documentElement.compareDocumentPosition?rr=function u(Tn,Un){return Tn===Un?(zn=!0,0):Tn.compareDocumentPosition&&Un.compareDocumentPosition?4&Tn.compareDocumentPosition(Un)?-1:1:Tn.compareDocumentPosition?-1:1}:(rr=function u(Tn,Un){if(Tn===Un)return zn=!0,0;if(Tn.sourceIndex&&Un.sourceIndex)return Tn.sourceIndex-Un.sourceIndex;var Dn,Qn,Hn=[],Gn=[],Vn=Tn.parentNode,Kn=Un.parentNode,$n=Vn;if(Vn===Kn)return ir(Tn,Un);if(!Vn)return-1;if(!Kn)return 1;for(;$n;)Hn.unshift($n),$n=$n.parentNode;for($n=Kn;$n;)Gn.unshift($n),$n=$n.parentNode;Dn=Hn.length,Qn=Gn.length;for(var Wn=0;Wn<Dn&&Wn<Qn;Wn++)if(Hn[Wn]!==Gn[Wn])return ir(Hn[Wn],Gn[Wn]);return Wn===Dn?ir(Tn,Gn[Wn],-1):ir(Hn[Wn],Un,1)},ir=function v(Tn,Un,Dn){if(Tn===Un)return Dn;for(var Qn=Tn.nextSibling;Qn;){if(Qn===Un)return-1;Qn=Qn.nextSibling}return 1}),function(){var Tn=Dn.createElement("div"),Qn="script"+(new Date).getTime(),Hn=Dn.documentElement;Tn.innerHTML="<a name='"+Qn+"'/>",Hn.insertBefore(Tn,Hn.firstChild),Dn.getElementById(Qn)&&(Zn.find.ID=function(Tn,Dn,Qn){if(void 0!==Dn.getElementById&&!Qn){var Hn=Dn.getElementById(Tn[1]);return Hn?Hn.id===Tn[1]||void 0!==Hn.getAttributeNode&&Hn.getAttributeNode("id").nodeValue===Tn[1]?[Hn]:Un:[]}},Zn.filter.ID=function(Tn,Un){var Dn=void 0!==Tn.getAttributeNode&&Tn.getAttributeNode("id");return 1===Tn.nodeType&&Dn&&Dn.nodeValue===Un}),Hn.removeChild(Tn),Hn=Tn=null}(),function(){var Tn=Dn.createElement("div");Tn.appendChild(Dn.createComment("")),Tn.getElementsByTagName("*").length>0&&(Zn.find.TAG=function(Tn,Un){var Dn=Un.getElementsByTagName(Tn[1]);if("*"===Tn[1]){for(var Qn=[],Hn=0;Dn[Hn];Hn++)1===Dn[Hn].nodeType&&Qn.push(Dn[Hn]);Dn=Qn}return Dn}),Tn.innerHTML="<a href='#'></a>",Tn.firstChild&&void 0!==Tn.firstChild.getAttribute&&"#"!==Tn.firstChild.getAttribute("href")&&(Zn.attrHandle.href=function(Tn){return Tn.getAttribute("href",2)}),Tn=null}(),Dn.querySelectorAll&&function(){var Tn=Yn,Un=Dn.createElement("div");if(Un.innerHTML="<p class='TEST'></p>",!Un.querySelectorAll||0!==Un.querySelectorAll(".TEST").length){for(var Qn in Yn=function _m(Un,Qn,Hn,Gn){if(Qn=Qn||Dn,!Gn&&!Yn.isXML(Qn)){var Vn=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(Un);if(Vn&&(1===Qn.nodeType||9===Qn.nodeType)){if(Vn[1])return or(Qn.getElementsByTagName(Un),Hn);if(Vn[2]&&Zn.find.CLASS&&Qn.getElementsByClassName)return or(Qn.getElementsByClassName(Vn[2]),Hn)}if(9===Qn.nodeType){if("body"===Un&&Qn.body)return or([Qn.body],Hn);if(Vn&&Vn[3]){var zn=Qn.getElementById(Vn[3]);if(!zn||!zn.parentNode)return or([],Hn);if(zn.id===Vn[3])return or([zn],Hn)}try{return or(Qn.querySelectorAll(Un),Hn)}catch(Tn){}}else if(1===Qn.nodeType&&"object"!==Qn.nodeName.toLowerCase()){var Kn=Qn,$n=Qn.getAttribute("id"),Wn=$n||"__sizzle__",Xn=Qn.parentNode,Jn=/^\s*[+~]/.test(Un);$n?Wn=Wn.replace(/'/g,"\\$&"):Qn.setAttribute("id",Wn),Jn&&Xn&&(Qn=Qn.parentNode);try{if(!Jn||Xn)return or(Qn.querySelectorAll("[id='"+Wn+"'] "+Un),Hn)}catch(Tn){}finally{$n||Kn.removeAttribute("id")}}}return Tn(Un,Qn,Hn,Gn)},Tn)Yn[Qn]=Tn[Qn];Un=null}}(),function(){var Tn=Dn.documentElement,Un=Tn.matchesSelector||Tn.mozMatchesSelector||Tn.webkitMatchesSelector||Tn.msMatchesSelector;if(Un){var Qn=!Un.call(Dn.createElement("div"),"div"),Hn=!1;try{Un.call(Dn.documentElement,"[test!='']:sizzle")}catch(Tn){Hn=!0}Yn.matchesSelector=function(Tn,Dn){if(Dn=Dn.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!Yn.isXML(Tn))try{if(Hn||!Zn.match.PSEUDO.test(Dn)&&!/!=/.test(Dn)){var Gn=Un.call(Tn,Dn);if(Gn||!Qn||Tn.document&&11!==Tn.document.nodeType)return Gn}}catch(Tn){}return Yn(Dn,null,null,[Tn]).length>0}}}(),function(){var Tn=Dn.createElement("div");if(Tn.innerHTML="<div class='test e'></div><div class='test'></div>",Tn.getElementsByClassName&&0!==Tn.getElementsByClassName("e").length){if(Tn.lastChild.className="e",1===Tn.getElementsByClassName("e").length)return;Zn.order.splice(1,0,"CLASS"),Zn.find.CLASS=function(Tn,Un,Dn){if(void 0!==Un.getElementsByClassName&&!Dn)return Un.getElementsByClassName(Tn[1])},Tn=null}}(),Dn.documentElement.contains?Yn.contains=function(Tn,Un){return Tn!==Un&&(!Tn.contains||Tn.contains(Un))}:Dn.documentElement.compareDocumentPosition?Yn.contains=function(Tn,Un){return!!(16&Tn.compareDocumentPosition(Un))}:Yn.contains=function(){return!1},Yn.isXML=function(Tn){var Un=(Tn?Tn.ownerDocument||Tn:0).documentElement;return!!Un&&"HTML"!==Un.nodeName};var ar=function y(Tn,Un,Dn){for(var Qn,Hn=[],Gn="",Vn=Un.nodeType?[Un]:Un;Qn=Zn.match.PSEUDO.exec(Tn);)Gn+=Qn[0],Tn=Tn.replace(Zn.match.PSEUDO,"");Tn=Zn.relative[Tn]?Tn+"*":Tn;for(var zn=0,Kn=Vn.length;zn<Kn;zn++)Yn(Tn,Vn[zn],Hn,Dn);return Yn.filter(Gn,Hn)};Yn.attr=Gn.attr,Yn.selectors.attrMap={},Gn.find=Yn,Gn.expr=Yn.selectors,Gn.expr[":"]=Gn.expr.filters,Gn.unique=Yn.uniqueSort,Gn.text=Yn.getText,Gn.isXMLDoc=Yn.isXML,Gn.contains=Yn.contains}();var Ar=/Until$/,mr=/^(?:parents|prevUntil|prevAll)/,vr=/,/,yr=/^.[^:#\[\.,]*$/,_r=Array.prototype.slice,br=Gn.expr.match.POS,wr={children:!0,contents:!0,next:!0,prev:!0};Gn.fn.extend({find:function find(Tn){var Un,Dn,Qn=this;if("string"!=typeof Tn)return Gn(Tn).filter((function(){for(Un=0,Dn=Qn.length;Un<Dn;Un++)if(Gn.contains(Qn[Un],this))return!0}));var Hn,Vn,zn,Kn=this.pushStack("","find",Tn);for(Un=0,Dn=this.length;Un<Dn;Un++)if(Hn=Kn.length,Gn.find(Tn,this[Un],Kn),Un>0)for(Vn=Hn;Vn<Kn.length;Vn++)for(zn=0;zn<Hn;zn++)if(Kn[zn]===Kn[Vn]){Kn.splice(Vn--,1);break}return Kn},has:function has(Tn){var Un=Gn(Tn);return this.filter((function(){for(var Tn=0,Dn=Un.length;Tn<Dn;Tn++)if(Gn.contains(this,Un[Tn]))return!0}))},not:function not(Tn){return this.pushStack(T(this,Tn,!1),"not",Tn)},filter:function filter(Tn){return this.pushStack(T(this,Tn,!0),"filter",Tn)},is:function is(Tn){return!!Tn&&("string"==typeof Tn?br.test(Tn)?Gn(Tn,this.context).index(this[0])>=0:Gn.filter(Tn,this).length>0:this.filter(Tn).length>0)},closest:function closest(Tn,Un){var Dn,Qn,Hn=[],Vn=this[0];if(Gn.isArray(Tn)){for(var zn=1;Vn&&Vn.ownerDocument&&Vn!==Un;){for(Dn=0;Dn<Tn.length;Dn++)Gn(Vn).is(Tn[Dn])&&Hn.push({selector:Tn[Dn],elem:Vn,level:zn});Vn=Vn.parentNode,zn++}return Hn}var Kn=br.test(Tn)||"string"!=typeof Tn?Gn(Tn,Un||this.context):0;for(Dn=0,Qn=this.length;Dn<Qn;Dn++)for(Vn=this[Dn];Vn;){if(Kn?Kn.index(Vn)>-1:Gn.find.matchesSelector(Vn,Tn)){Hn.push(Vn);break}if(!(Vn=Vn.parentNode)||!Vn.ownerDocument||Vn===Un||11===Vn.nodeType)break}return Hn=Hn.length>1?Gn.unique(Hn):Hn,this.pushStack(Hn,"closest",Tn)},index:function index(Tn){return Tn?"string"==typeof Tn?Gn.inArray(this[0],Gn(Tn)):Gn.inArray(Tn.jquery?Tn[0]:Tn,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function add(Tn,Un){var Dn="string"==typeof Tn?Gn(Tn,Un):Gn.makeArray(Tn&&Tn.nodeType?[Tn]:Tn),Qn=Gn.merge(this.get(),Dn);return this.pushStack(S(Dn[0])||S(Qn[0])?Qn:Gn.unique(Qn))},andSelf:function andSelf(){return this.add(this.prevObject)}}),Gn.each({parent:function parent(Tn){var Un=Tn.parentNode;return Un&&11!==Un.nodeType?Un:null},parents:function parents(Tn){return Gn.dir(Tn,"parentNode")},parentsUntil:function parentsUntil(Tn,Un,Dn){return Gn.dir(Tn,"parentNode",Dn)},next:function next(Tn){return Gn.nth(Tn,2,"nextSibling")},prev:function prev(Tn){return Gn.nth(Tn,2,"previousSibling")},nextAll:function nextAll(Tn){return Gn.dir(Tn,"nextSibling")},prevAll:function prevAll(Tn){return Gn.dir(Tn,"previousSibling")},nextUntil:function nextUntil(Tn,Un,Dn){return Gn.dir(Tn,"nextSibling",Dn)},prevUntil:function prevUntil(Tn,Un,Dn){return Gn.dir(Tn,"previousSibling",Dn)},siblings:function siblings(Tn){return Gn.sibling(Tn.parentNode.firstChild,Tn)},children:function children(Tn){return Gn.sibling(Tn.firstChild)},contents:function contents(Tn){return Gn.nodeName(Tn,"iframe")?Tn.contentDocument||Tn.contentWindow.document:Gn.makeArray(Tn.childNodes)}},(function(Tn,Un){Gn.fn[Tn]=function(Dn,Qn){var Hn=Gn.map(this,Un,Dn);return Ar.test(Tn)||(Qn=Dn),Qn&&"string"==typeof Qn&&(Hn=Gn.filter(Qn,Hn)),Hn=this.length>1&&!wr[Tn]?Gn.unique(Hn):Hn,(this.length>1||vr.test(Qn))&&mr.test(Tn)&&(Hn=Hn.reverse()),this.pushStack(Hn,Tn,_r.call(arguments).join(","))}})),Gn.extend({filter:function filter(Tn,Un,Dn){return Dn&&(Tn=":not("+Tn+")"),1===Un.length?Gn.find.matchesSelector(Un[0],Tn)?[Un[0]]:[]:Gn.find.matches(Tn,Un)},dir:function dir(Tn,Dn,Qn){for(var Hn=[],Vn=Tn[Dn];Vn&&9!==Vn.nodeType&&(Qn===Un||1!==Vn.nodeType||!Gn(Vn).is(Qn));)1===Vn.nodeType&&Hn.push(Vn),Vn=Vn[Dn];return Hn},nth:function nth(Tn,Un,Dn,Qn){Un=Un||1;for(var Hn=0;Tn&&(1!==Tn.nodeType||++Hn!==Un);Tn=Tn[Dn]);return Tn},sibling:function sibling(Tn,Un){for(var Dn=[];Tn;Tn=Tn.nextSibling)1===Tn.nodeType&&Tn!==Un&&Dn.push(Tn);return Dn}});var xr="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Sr=/ jQuery\d+="(?:\d+|null)"/g,Cr=/^\s+/,kr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Br=/<([\w:]+)/,Er=/<tbody/i,Pr=/<|&#?\w+;/,Lr=/<(?:script|style)/i,Tr=/<(?:script|object|embed|option|style)/i,Nr=new RegExp("<(?:"+xr+")","i"),Ir=/checked\s*(?:[^=]|=\s*.checked.)/i,Or=/\/(java|ecma)script/i,Fr=/^\s*<!(?:\[CDATA\[|\-\-)/,Ur={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,"",""]},Mr=U(Dn);Ur.optgroup=Ur.option,Ur.tbody=Ur.tfoot=Ur.colgroup=Ur.caption=Ur.thead,Ur.th=Ur.td,Gn.support.htmlSerialize||(Ur._default=[1,"div<div>","</div>"]),Gn.fn.extend({text:function text(Tn){return Gn.isFunction(Tn)?this.each((function(Un){var Dn=Gn(this);Dn.text(Tn.call(this,Un,Dn.text()))})):"object"!=_typeof(Tn)&&Tn!==Un?this.empty().append((this[0]&&this[0].ownerDocument||Dn).createTextNode(Tn)):Gn.text(this)},wrapAll:function wrapAll(Tn){if(Gn.isFunction(Tn))return this.each((function(Un){Gn(this).wrapAll(Tn.call(this,Un))}));if(this[0]){var Un=Gn(Tn,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&Un.insertBefore(this[0]),Un.map((function(){for(var Tn=this;Tn.firstChild&&1===Tn.firstChild.nodeType;)Tn=Tn.firstChild;return Tn})).append(this)}return this},wrapInner:function wrapInner(Tn){return Gn.isFunction(Tn)?this.each((function(Un){Gn(this).wrapInner(Tn.call(this,Un))})):this.each((function(){var Un=Gn(this),Dn=Un.contents();Dn.length?Dn.wrapAll(Tn):Un.append(Tn)}))},wrap:function wrap(Tn){var Un=Gn.isFunction(Tn);return this.each((function(Dn){Gn(this).wrapAll(Un?Tn.call(this,Dn):Tn)}))},unwrap:function unwrap(){return this.parent().each((function(){Gn.nodeName(this,"body")||Gn(this).replaceWith(this.childNodes)})).end()},append:function append(){return this.domManip(arguments,!0,(function(Tn){1===this.nodeType&&this.appendChild(Tn)}))},prepend:function prepend(){return this.domManip(arguments,!0,(function(Tn){1===this.nodeType&&this.insertBefore(Tn,this.firstChild)}))},before:function before(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(Tn){this.parentNode.insertBefore(Tn,this)}));if(arguments.length){var Tn=Gn.clean(arguments);return Tn.push.apply(Tn,this.toArray()),this.pushStack(Tn,"before",arguments)}},after:function after(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(Tn){this.parentNode.insertBefore(Tn,this.nextSibling)}));if(arguments.length){var Tn=this.pushStack(this,"after",arguments);return Tn.push.apply(Tn,Gn.clean(arguments)),Tn}},remove:function remove(Tn,Un){for(var Dn,Qn=0;null!=(Dn=this[Qn]);Qn++)Tn&&!Gn.filter(Tn,[Dn]).length||(!Un&&1===Dn.nodeType&&(Gn.cleanData(Dn.getElementsByTagName("*")),Gn.cleanData([Dn])),Dn.parentNode&&Dn.parentNode.removeChild(Dn));return this},empty:function empty(){for(var Tn,Un=0;null!=(Tn=this[Un]);Un++)for(1===Tn.nodeType&&Gn.cleanData(Tn.getElementsByTagName("*"));Tn.firstChild;)Tn.removeChild(Tn.firstChild);return this},clone:function clone(Tn,Un){return Tn=null!=Tn&&Tn,Un=null==Un?Tn:Un,this.map((function(){return Gn.clone(this,Tn,Un)}))},html:function html(Tn){if(Tn===Un)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(Sr,""):null;if("string"!=typeof Tn||Lr.test(Tn)||!Gn.support.leadingWhitespace&&Cr.test(Tn)||Ur[(Br.exec(Tn)||["",""])[1].toLowerCase()])Gn.isFunction(Tn)?this.each((function(Un){var Dn=Gn(this);Dn.html(Tn.call(this,Un,Dn.html()))})):this.empty().append(Tn);else{Tn=Tn.replace(kr,"<$1></$2>");try{for(var Dn=0,Qn=this.length;Dn<Qn;Dn++)1===this[Dn].nodeType&&(Gn.cleanData(this[Dn].getElementsByTagName("*")),this[Dn].innerHTML=Tn)}catch(Un){this.empty().append(Tn)}}return this},replaceWith:function replaceWith(Tn){return this[0]&&this[0].parentNode?Gn.isFunction(Tn)?this.each((function(Un){var Dn=Gn(this),Qn=Dn.html();Dn.replaceWith(Tn.call(this,Un,Qn))})):("string"!=typeof Tn&&(Tn=Gn(Tn).detach()),this.each((function(){var Un=this.nextSibling,Dn=this.parentNode;Gn(this).remove(),Un?Gn(Un).before(Tn):Gn(Dn).append(Tn)}))):this.length?this.pushStack(Gn(Gn.isFunction(Tn)?Tn():Tn),"replaceWith",Tn):this},detach:function detach(Tn){return this.remove(Tn,!0)},domManip:function domManip(Tn,Dn,Qn){var Hn,Vn,zn,Kn,$n=Tn[0],Wn=[];if(!Gn.support.checkClone&&3===arguments.length&&"string"==typeof $n&&Ir.test($n))return this.each((function(){Gn(this).domManip(Tn,Dn,Qn,!0)}));if(Gn.isFunction($n))return this.each((function(Hn){var Vn=Gn(this);Tn[0]=$n.call(this,Hn,Dn?Vn.html():Un),Vn.domManip(Tn,Dn,Qn)}));if(this[0]){if(Kn=$n&&$n.parentNode,Vn=1===(zn=(Hn=Gn.support.parentNode&&Kn&&11===Kn.nodeType&&Kn.childNodes.length===this.length?{fragment:Kn}:Gn.buildFragment(Tn,this,Wn)).fragment).childNodes.length?zn=zn.firstChild:zn.firstChild){Dn=Dn&&Gn.nodeName(Vn,"tr");for(var Xn=0,Yn=this.length,Jn=Yn-1;Xn<Yn;Xn++)Qn.call(Dn?bi(this[Xn]):this[Xn],Hn.cacheable||Yn>1&&Xn<Jn?Gn.clone(zn,!0,!0):zn)}Wn.length&&Gn.each(Wn,bp)}return this}}),Gn.buildFragment=function(Tn,Un,Qn){var Hn,Vn,zn,Kn,$n=Tn[0];return Un&&Un[0]&&(Kn=Un[0].ownerDocument||Un[0]),Kn.createDocumentFragment||(Kn=Dn),1===Tn.length&&"string"==typeof $n&&$n.length<512&&Kn===Dn&&"<"===$n.charAt(0)&&!Tr.test($n)&&(Gn.support.checkClone||!Ir.test($n))&&(Gn.support.html5Clone||!Nr.test($n))&&(Vn=!0,(zn=Gn.fragments[$n])&&1!==zn&&(Hn=zn)),Hn||(Hn=Kn.createDocumentFragment(),Gn.clean(Tn,Kn,Hn,Qn)),Vn&&(Gn.fragments[$n]=zn?Hn:1),{fragment:Hn,cacheable:Vn}},Gn.fragments={},Gn.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(Tn,Un){Gn.fn[Tn]=function(Dn){var Qn=[],Hn=Gn(Dn),Vn=1===this.length&&this[0].parentNode;if(Vn&&11===Vn.nodeType&&1===Vn.childNodes.length&&1===Hn.length)return Hn[Un](this[0]),this;for(var zn=0,Kn=Hn.length;zn<Kn;zn++){var $n=(zn>0?this.clone(!0):this).get();Gn(Hn[zn])[Un]($n),Qn=Qn.concat($n)}return this.pushStack(Qn,Tn,Hn.selector)}})),Gn.extend({clone:function clone(Tn,Un,Dn){var Qn,Hn,Vn,zn=Gn.support.html5Clone||!Nr.test("<"+Tn.nodeName)?Tn.cloneNode(!0):bo(Tn);if(!(Gn.support.noCloneEvent&&Gn.support.noCloneChecked||1!==Tn.nodeType&&11!==Tn.nodeType||Gn.isXMLDoc(Tn)))for(bk(Tn,zn),Qn=bl(Tn),Hn=bl(zn),Vn=0;Qn[Vn];++Vn)Hn[Vn]&&bk(Qn[Vn],Hn[Vn]);if(Un&&(bj(Tn,zn),Dn))for(Qn=bl(Tn),Hn=bl(zn),Vn=0;Qn[Vn];++Vn)bj(Qn[Vn],Hn[Vn]);return Qn=Hn=null,zn},clean:function clean(Tn,Un,Qn,Hn){var Vn;void 0===(Un=Un||Dn).createElement&&(Un=Un.ownerDocument||Un[0]&&Un[0].ownerDocument||Dn);for(var zn,Kn,$n=[],Wn=0;null!=(Kn=Tn[Wn]);Wn++)if("number"==typeof Kn&&(Kn+=""),Kn){if("string"==typeof Kn)if(Pr.test(Kn)){Kn=Kn.replace(kr,"<$1></$2>");var Xn=(Br.exec(Kn)||["",""])[1].toLowerCase(),Yn=Ur[Xn]||Ur._default,Jn=Yn[0],Zn=Un.createElement("div");for(Un===Dn?Mr.appendChild(Zn):U(Un).appendChild(Zn),Zn.innerHTML=Yn[1]+Kn+Yn[2];Jn--;)Zn=Zn.lastChild;if(!Gn.support.tbody){var er=Er.test(Kn),tr="table"!==Xn||er?"<table>"!==Yn[1]||er?[]:Zn.childNodes:Zn.firstChild&&Zn.firstChild.childNodes;for(zn=tr.length-1;zn>=0;--zn)Gn.nodeName(tr[zn],"tbody")&&!tr[zn].childNodes.length&&tr[zn].parentNode.removeChild(tr[zn])}!Gn.support.leadingWhitespace&&Cr.test(Kn)&&Zn.insertBefore(Un.createTextNode(Cr.exec(Kn)[0]),Zn.firstChild),Kn=Zn.childNodes}else Kn=Un.createTextNode(Kn);var nr;if(!Gn.support.appendChecked)if(Kn[0]&&"number"==typeof(nr=Kn.length))for(zn=0;zn<nr;zn++)bn(Kn[zn]);else bn(Kn);Kn.nodeType?$n.push(Kn):$n=Gn.merge($n,Kn)}if(Qn)for(Vn=function g(Tn){return!Tn.type||Or.test(Tn.type)},Wn=0;$n[Wn];Wn++)if(!Hn||!Gn.nodeName($n[Wn],"script")||$n[Wn].type&&"text/javascript"!==$n[Wn].type.toLowerCase()){if(1===$n[Wn].nodeType){var rr=Gn.grep($n[Wn].getElementsByTagName("script"),Vn);$n.splice.apply($n,[Wn+1,0].concat(rr))}Qn.appendChild($n[Wn])}else Hn.push($n[Wn].parentNode?$n[Wn].parentNode.removeChild($n[Wn]):$n[Wn]);return $n},cleanData:function cleanData(Tn){for(var Un,Dn,Qn,Hn=Gn.cache,Vn=Gn.event.special,zn=Gn.support.deleteExpando,Kn=0;null!=(Qn=Tn[Kn]);Kn++)if((!Qn.nodeName||!Gn.noData[Qn.nodeName.toLowerCase()])&&(Dn=Qn[Gn.expando])){if((Un=Hn[Dn])&&Un.events){for(var $n in Un.events)Vn[$n]?Gn.event.remove(Qn,$n):Gn.removeEvent(Qn,$n,Un.handle);Un.handle&&(Un.handle.elem=null)}zn?delete Qn[Gn.expando]:Qn.removeAttribute&&Qn.removeAttribute(Gn.expando),delete Hn[Dn]}}});var Rr,Dr,jr,Qr=/alpha\([^)]*\)/i,Hr=/opacity=([^)]*)/,Gr=/([A-Z]|^ms)/g,Vr=/^-?\d+(?:px)?$/i,zr=/^-?\d/,Kr=/^([\-+])=([\-+.\de]+)/,qr={position:"absolute",visibility:"hidden",display:"block"},$r=["Left","Right"],Wr=["Top","Bottom"];Gn.fn.css=function(Tn,Dn){return 2===arguments.length&&Dn===Un?this:Gn.access(this,Tn,Dn,!0,(function(Tn,Dn,Qn){return Qn!==Un?Gn.style(Tn,Dn,Qn):Gn.css(Tn,Dn)}))},Gn.extend({cssHooks:{opacity:{get:function get(Tn,Un){if(Un){var Dn=Rr(Tn,"opacity","opacity");return""===Dn?"1":Dn}return Tn.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:Gn.support.cssFloat?"cssFloat":"styleFloat"},style:function style(Tn,Dn,Qn,Hn){if(Tn&&3!==Tn.nodeType&&8!==Tn.nodeType&&Tn.style){var Vn,zn,Kn=Gn.camelCase(Dn),$n=Tn.style,Wn=Gn.cssHooks[Kn];if(Dn=Gn.cssProps[Kn]||Kn,Qn===Un)return Wn&&"get"in Wn&&(Vn=Wn.get(Tn,!1,Hn))!==Un?Vn:$n[Dn];if("string"===(zn=_typeof(Qn))&&(Vn=Kr.exec(Qn))&&(Qn=+(Vn[1]+1)*+Vn[2]+parseFloat(Gn.css(Tn,Dn)),zn="number"),null==Qn||"number"===zn&&isNaN(Qn))return;if("number"===zn&&!Gn.cssNumber[Kn]&&(Qn+="px"),!Wn||!("set"in Wn)||(Qn=Wn.set(Tn,Qn))!==Un)try{$n[Dn]=Qn}catch(Tn){}}},css:function css(Tn,Dn,Qn){var Hn,Vn;return Dn=Gn.camelCase(Dn),Vn=Gn.cssHooks[Dn],"cssFloat"===(Dn=Gn.cssProps[Dn]||Dn)&&(Dn="float"),Vn&&"get"in Vn&&(Hn=Vn.get(Tn,!0,Qn))!==Un?Hn:Rr?Rr(Tn,Dn):void 0},swap:function swap(Tn,Un,Dn){var Qn={};for(var Hn in Un)Qn[Hn]=Tn.style[Hn],Tn.style[Hn]=Un[Hn];for(Hn in Dn.call(Tn),Un)Tn.style[Hn]=Qn[Hn]}}),Gn.curCSS=Gn.css,Gn.each(["height","width"],(function(Tn,Un){Gn.cssHooks[Un]={get:function get(Tn,Dn,Qn){var Hn;if(Dn)return 0!==Tn.offsetWidth?bC(Tn,Un,Qn):(Gn.swap(Tn,qr,(function(){Hn=bC(Tn,Un,Qn)})),Hn)},set:function set(Tn,Un){return Vr.test(Un)?(Un=parseFloat(Un))>=0?Un+"px":void 0:Un}}})),Gn.support.opacity||(Gn.cssHooks.opacity={get:function get(Tn,Un){return Hr.test((Un&&Tn.currentStyle?Tn.currentStyle.filter:Tn.style.filter)||"")?parseFloat(RegExp.$1)/100+"":Un?"1":""},set:function set(Tn,Un){var Dn=Tn.style,Qn=Tn.currentStyle,Hn=Gn.isNumeric(Un)?"alpha(opacity="+100*Un+")":"",Vn=Qn&&Qn.filter||Dn.filter||"";Dn.zoom=1,Un>=1&&""===Gn.trim(Vn.replace(Qr,""))&&(Dn.removeAttribute("filter"),Qn&&!Qn.filter)||(Dn.filter=Qr.test(Vn)?Vn.replace(Qr,Hn):Vn+" "+Hn)}}),Gn((function(){Gn.support.reliableMarginRight||(Gn.cssHooks.marginRight={get:function get(Tn,Un){var Dn;return Gn.swap(Tn,{display:"inline-block"},(function(){Dn=Un?Rr(Tn,"margin-right","marginRight"):Tn.style.marginRight})),Dn}})})),Dn.defaultView&&Dn.defaultView.getComputedStyle&&(Dr=function bA(Tn,Un){var Dn,Qn,Hn;return Un=Un.replace(Gr,"-$1").toLowerCase(),(Qn=Tn.ownerDocument.defaultView)&&(Hn=Qn.getComputedStyle(Tn,null))&&(""===(Dn=Hn.getPropertyValue(Un))&&!Gn.contains(Tn.ownerDocument.documentElement,Tn)&&(Dn=Gn.style(Tn,Un))),Dn}),Dn.documentElement.currentStyle&&(jr=function bB(Tn,Un){var Dn,Qn,Hn,Gn=Tn.currentStyle&&Tn.currentStyle[Un],Vn=Tn.style;return null===Gn&&Vn&&(Hn=Vn[Un])&&(Gn=Hn),!Vr.test(Gn)&&zr.test(Gn)&&(Dn=Vn.left,(Qn=Tn.runtimeStyle&&Tn.runtimeStyle.left)&&(Tn.runtimeStyle.left=Tn.currentStyle.left),Vn.left="fontSize"===Un?"1em":Gn||0,Gn=Vn.pixelLeft+"px",Vn.left=Dn,Qn&&(Tn.runtimeStyle.left=Qn)),""===Gn?"auto":Gn}),Rr=Dr||jr,Gn.expr&&Gn.expr.filters&&(Gn.expr.filters.hidden=function(Tn){var Un=Tn.offsetWidth,Dn=Tn.offsetHeight;return 0===Un&&0===Dn||!Gn.support.reliableHiddenOffsets&&"none"===(Tn.style&&Tn.style.display||Gn.css(Tn,"display"))},Gn.expr.filters.visible=function(Tn){return!Gn.expr.filters.hidden(Tn)});var Xr,Yr,Jr=/%20/g,Zr=/\[\]$/,ei=/\r?\n/g,ti=/#.*$/,ni=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ri=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ii=/^(?:GET|HEAD)$/,oi=/^\/\//,ai=/\?/,si=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,li=/^(?:select|textarea)/i,ui=/\s+/,di=/([?&])_=[^&]*/,hi=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,pi=Gn.fn.load,gi={},fi={},Ai=["*/"]+["*"];try{Xr=Hn.href}catch(Tn){(Xr=Dn.createElement("a")).href="",Xr=Xr.href}Yr=hi.exec(Xr.toLowerCase())||[],Gn.fn.extend({load:function load(Tn,Dn,Qn){if("string"!=typeof Tn&&pi)return pi.apply(this,arguments);if(!this.length)return this;var Hn=Tn.indexOf(" ");if(Hn>=0){var Vn=Tn.slice(Hn,Tn.length);Tn=Tn.slice(0,Hn)}var zn="GET";Dn&&(Gn.isFunction(Dn)?(Qn=Dn,Dn=Un):"object"==_typeof(Dn)&&(Dn=Gn.param(Dn,Gn.ajaxSettings.traditional),zn="POST"));var Kn=this;return Gn.ajax({url:Tn,type:zn,dataType:"html",data:Dn,complete:function complete(Tn,Un,Dn){Dn=Tn.responseText,Tn.isResolved()&&(Tn.done((function(Tn){Dn=Tn})),Kn.html(Vn?Gn("<div>").append(Dn.replace(si,"")).find(Vn):Dn)),Qn&&Kn.each(Qn,[Dn,Un,Tn])}}),this},serialize:function serialize(){return Gn.param(this.serializeArray())},serializeArray:function serializeArray(){return this.map((function(){return this.elements?Gn.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||li.test(this.nodeName)||ri.test(this.type))})).map((function(Tn,Un){var Dn=Gn(this).val();return null==Dn?null:Gn.isArray(Dn)?Gn.map(Dn,(function(Tn,Dn){return{name:Un.name,value:Tn.replace(ei,"\r\n")}})):{name:Un.name,value:Dn.replace(ei,"\r\n")}})).get()}}),Gn.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(Tn,Un){Gn.fn[Un]=function(Tn){return this.on(Un,Tn)}})),Gn.each(["get","post"],(function(Tn,Dn){Gn[Dn]=function(Tn,Qn,Hn,Vn){return Gn.isFunction(Qn)&&(Vn=Vn||Hn,Hn=Qn,Qn=Un),Gn.ajax({type:Dn,url:Tn,data:Qn,success:Hn,dataType:Vn})}})),Gn.extend({getScript:function getScript(Tn,Dn){return Gn.get(Tn,Un,Dn,"script")},getJSON:function getJSON(Tn,Un,Dn){return Gn.get(Tn,Un,Dn,"json")},ajaxSetup:function ajaxSetup(Tn,Un){return Un?b_(Tn,Gn.ajaxSettings):(Un=Tn,Tn=Gn.ajaxSettings),b_(Tn,Un),Tn},ajaxSettings:{url:Xr,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Yr[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","*":Ai},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":Tn.String,"text html":!0,"text json":Gn.parseJSON,"text xml":Gn.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(gi),ajaxTransport:bZ(fi),ajax:function ajax(Tn,Dn){function w(Tn,Dn,Vn,$n){if(2!==or){or=2,Kn&&clearTimeout(Kn),zn=Un,Hn=$n||"",ar.readyState=Tn>0?4:0;var Xn,rr,ir,sr,lr,cr=Dn,ur=Vn?function cb(Tn,Dn,Qn){var Hn,Gn,Vn,zn,Kn=Tn.contents,$n=Tn.dataTypes,Wn=Tn.responseFields;for(Gn in Wn)Gn in Qn&&(Dn[Wn[Gn]]=Qn[Gn]);for(;"*"===$n[0];)$n.shift(),Hn===Un&&(Hn=Tn.mimeType||Dn.getResponseHeader("content-type"));if(Hn)for(Gn in Kn)if(Kn[Gn]&&Kn[Gn].test(Hn)){$n.unshift(Gn);break}if($n[0]in Qn)Vn=$n[0];else{for(Gn in Qn){if(!$n[0]||Tn.converters[Gn+" "+$n[0]]){Vn=Gn;break}zn||(zn=Gn)}Vn=Vn||zn}if(Vn)return Vn!==$n[0]&&$n.unshift(Vn),Qn[Vn]}(Yn,ar,Vn):Un;if(Tn>=200&&Tn<300||304===Tn)if(Yn.ifModified&&((sr=ar.getResponseHeader("Last-Modified"))&&(Gn.lastModified[Qn]=sr),(lr=ar.getResponseHeader("Etag"))&&(Gn.etag[Qn]=lr)),304===Tn)cr="notmodified",Xn=!0;else try{rr=function cc(Tn,Dn){Tn.dataFilter&&(Dn=Tn.dataFilter(Dn,Tn.dataType));var Qn,Hn,Vn,zn,Kn,$n,Wn,Xn,Yn=Tn.dataTypes,Jn={},Zn=Yn.length,er=Yn[0];for(Qn=1;Qn<Zn;Qn++){if(1===Qn)for(Hn in Tn.converters)"string"==typeof Hn&&(Jn[Hn.toLowerCase()]=Tn.converters[Hn]);if(zn=er,"*"===(er=Yn[Qn]))er=zn;else if("*"!==zn&&zn!==er){if(!($n=Jn[Kn=zn+" "+er]||Jn["* "+er]))for(Wn in Xn=Un,Jn)if(((Vn=Wn.split(" "))[0]===zn||"*"===Vn[0])&&(Xn=Jn[Vn[1]+" "+er])){!0===(Wn=Jn[Wn])?$n=Xn:!0===Xn&&($n=Wn);break}!$n&&!Xn&&Gn.error("No conversion from "+Kn.replace(" "," to ")),!0!==$n&&(Dn=$n?$n(Dn):Xn(Wn(Dn)))}}return Dn}(Yn,ur),cr="success",Xn=!0}catch(Tn){cr="parsererror",ir=Tn}else ir=cr,cr&&!Tn||(cr="error",Tn<0&&(Tn=0));ar.status=Tn,ar.statusText=""+(Dn||cr),Xn?er.resolveWith(Jn,[rr,cr,ar]):er.rejectWith(Jn,[ar,cr,ir]),ar.statusCode(nr),nr=Un,Wn&&Zn.trigger("ajax"+(Xn?"Success":"Error"),[ar,Yn,Xn?rr:ir]),tr.fireWith(Jn,[ar,cr]),Wn&&(Zn.trigger("ajaxComplete",[ar,Yn]),--Gn.active||Gn.event.trigger("ajaxStop"))}}"object"==_typeof(Tn)&&(Dn=Tn,Tn=Un),Dn=Dn||{};var Qn,Hn,Vn,zn,Kn,$n,Wn,Xn,Yn=Gn.ajaxSetup({},Dn),Jn=Yn.context||Yn,Zn=Jn!==Yn&&(Jn.nodeType||Jn instanceof Gn)?Gn(Jn):Gn.event,er=Gn.Deferred(),tr=Gn.Callbacks("once memory"),nr=Yn.statusCode||{},rr={},ir={},or=0,ar={readyState:0,setRequestHeader:function setRequestHeader(Tn,Un){if(!or){var Dn=Tn.toLowerCase();Tn=ir[Dn]=ir[Dn]||Tn,rr[Tn]=Un}return this},getAllResponseHeaders:function getAllResponseHeaders(){return 2===or?Hn:null},getResponseHeader:function getResponseHeader(Tn){var Dn;if(2===or){if(!Vn)for(Vn={};Dn=ni.exec(Hn);)Vn[Dn[1].toLowerCase()]=Dn[2];Dn=Vn[Tn.toLowerCase()]}return Dn===Un?null:Dn},overrideMimeType:function overrideMimeType(Tn){return or||(Yn.mimeType=Tn),this},abort:function abort(Tn){return Tn=Tn||"abort",zn&&zn.abort(Tn),w(0,Tn),this}};if(er.promise(ar),ar.success=ar.done,ar.error=ar.fail,ar.complete=tr.add,ar.statusCode=function(Tn){var Un;if(Tn)if(or<2)for(Un in Tn)nr[Un]=[nr[Un],Tn[Un]];else Un=Tn[ar.status],ar.then(Un,Un);return this},Yn.url=((Tn||Yn.url)+"").replace(ti,"").replace(oi,Yr[1]+"//"),Yn.dataTypes=Gn.trim(Yn.dataType||"*").toLowerCase().split(ui),null==Yn.crossDomain&&($n=hi.exec(Yn.url.toLowerCase()),Yn.crossDomain=!(!$n||$n[1]==Yr[1]&&$n[2]==Yr[2]&&($n[3]||("http:"===$n[1]?80:443))==(Yr[3]||("http:"===Yr[1]?80:443)))),Yn.data&&Yn.processData&&"string"!=typeof Yn.data&&(Yn.data=Gn.param(Yn.data,Yn.traditional)),b$(gi,Yn,Dn,ar),2===or)return!1;if(Wn=Yn.global,Yn.type=Yn.type.toUpperCase(),Yn.hasContent=!ii.test(Yn.type),Wn&&0==Gn.active++&&Gn.event.trigger("ajaxStart"),!Yn.hasContent&&(Yn.data&&(Yn.url+=(ai.test(Yn.url)?"&":"?")+Yn.data,delete Yn.data),Qn=Yn.url,!1===Yn.cache)){var sr=Gn.now(),lr=Yn.url.replace(di,"$1_="+sr);Yn.url=lr+(lr===Yn.url?(ai.test(Yn.url)?"&":"?")+"_="+sr:"")}for(Xn in(Yn.data&&Yn.hasContent&&!1!==Yn.contentType||Dn.contentType)&&ar.setRequestHeader("Content-Type",Yn.contentType),Yn.ifModified&&(Qn=Qn||Yn.url,Gn.lastModified[Qn]&&ar.setRequestHeader("If-Modified-Since",Gn.lastModified[Qn]),Gn.etag[Qn]&&ar.setRequestHeader("If-None-Match",Gn.etag[Qn])),ar.setRequestHeader("Accept",Yn.dataTypes[0]&&Yn.accepts[Yn.dataTypes[0]]?Yn.accepts[Yn.dataTypes[0]]+("*"!==Yn.dataTypes[0]?", "+Ai+"; q=0.01":""):Yn.accepts["*"]),Yn.headers)ar.setRequestHeader(Xn,Yn.headers[Xn]);if(Yn.beforeSend&&(!1===Yn.beforeSend.call(Jn,ar,Yn)||2===or))return ar.abort(),!1;for(Xn in{success:1,error:1,complete:1})ar[Xn](Yn[Xn]);if(zn=b$(fi,Yn,Dn,ar)){ar.readyState=1,Wn&&Zn.trigger("ajaxSend",[ar,Yn]),Yn.async&&Yn.timeout>0&&(Kn=setTimeout((function(){ar.abort("timeout")}),Yn.timeout));try{or=1,zn.send(rr,w)}catch(Tn){if(!(or<2))throw Tn;w(-1,Tn)}}else w(-1,"No Transport");return ar},param:function param(Tn,Dn){var Qn=[],Hn=function e(Tn,Un){Un=Gn.isFunction(Un)?Un():Un,Qn[Qn.length]=encodeURIComponent(Tn)+"="+encodeURIComponent(Un)};if(Dn===Un&&(Dn=Gn.ajaxSettings.traditional),Gn.isArray(Tn)||Tn.jquery&&!Gn.isPlainObject(Tn))Gn.each(Tn,(function(){Hn(this.name,this.value)}));else for(var Vn in Tn)ca(Vn,Tn[Vn],Dn,Hn);return Qn.join("&").replace(Jr,"+")}}),Gn.extend({active:0,lastModified:{},etag:{}});var mi=Gn.now(),vi=/(\=)\?(&|$)|\?\?/i;Gn.ajaxSetup({jsonp:"callback",jsonpCallback:function jsonpCallback(){return Gn.expando+"_"+mi++}}),Gn.ajaxPrefilter("json jsonp",(function(Un,Dn,Qn){var Hn="application/x-www-form-urlencoded"===Un.contentType&&"string"==typeof Un.data;if("jsonp"===Un.dataTypes[0]||!1!==Un.jsonp&&(vi.test(Un.url)||Hn&&vi.test(Un.data))){var Vn,zn=Un.jsonpCallback=Gn.isFunction(Un.jsonpCallback)?Un.jsonpCallback():Un.jsonpCallback,Kn=Tn[zn],$n=Un.url,Wn=Un.data,Xn="$1"+zn+"$2";return!1!==Un.jsonp&&($n=$n.replace(vi,Xn),Un.url===$n&&(Hn&&(Wn=Wn.replace(vi,Xn)),Un.data===Wn&&($n+=(/\?/.test($n)?"&":"?")+Un.jsonp+"="+zn))),Un.url=$n,Un.data=Wn,Tn[zn]=function(Tn){Vn=[Tn]},Qn.always((function(){Tn[zn]=Kn,Vn&&Gn.isFunction(Kn)&&Tn[zn](Vn[0])})),Un.converters["script json"]=function(){return Vn||Gn.error(zn+" was not called"),Vn[0]},Un.dataTypes[0]="json","script"}})),Gn.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function textScript(Tn){return Gn.globalEval(Tn),Tn}}}),Gn.ajaxPrefilter("script",(function(Tn){Tn.cache===Un&&(Tn.cache=!1),Tn.crossDomain&&(Tn.type="GET",Tn.global=!1)})),Gn.ajaxTransport("script",(function(Tn){if(Tn.crossDomain){var Qn,Hn=Dn.head||Dn.getElementsByTagName("head")[0]||Dn.documentElement;return{send:function send(Gn,Vn){(Qn=Dn.createElement("script")).async="async",Tn.scriptCharset&&(Qn.charset=Tn.scriptCharset),Qn.src=Tn.url,Qn.onload=Qn.onreadystatechange=function(Tn,Dn){(Dn||!Qn.readyState||/loaded|complete/.test(Qn.readyState))&&(Qn.onload=Qn.onreadystatechange=null,Hn&&Qn.parentNode&&Hn.removeChild(Qn),Qn=Un,Dn||Vn(200,"success"))},Hn.insertBefore(Qn,Hn.firstChild)},abort:function abort(){Qn&&Qn.onload(0,1)}}}}));var yi,_i=!!Tn.ActiveXObject&&function(){for(var Tn in yi)yi[Tn](0,1)},wi=0;Gn.ajaxSettings.xhr=Tn.ActiveXObject?function(){return!this.isLocal&&ci()||function cj(){try{return new Tn.ActiveXObject("Microsoft.XMLHTTP")}catch(Tn){}}()}:ci,function(Tn){Gn.extend(Gn.support,{ajax:!!Tn,cors:!!Tn&&"withCredentials"in Tn})}(Gn.ajaxSettings.xhr()),Gn.support.ajax&&Gn.ajaxTransport((function(Dn){var Qn;if(!Dn.crossDomain||Gn.support.cors)return{send:function send(Hn,Vn){var zn,Kn,$n=Dn.xhr();if(Dn.username?$n.open(Dn.type,Dn.url,Dn.async,Dn.username,Dn.password):$n.open(Dn.type,Dn.url,Dn.async),Dn.xhrFields)for(Kn in Dn.xhrFields)$n[Kn]=Dn.xhrFields[Kn];Dn.mimeType&&$n.overrideMimeType&&$n.overrideMimeType(Dn.mimeType),!Dn.crossDomain&&!Hn["X-Requested-With"]&&(Hn["X-Requested-With"]="XMLHttpRequest");try{for(Kn in Hn)$n.setRequestHeader(Kn,Hn[Kn])}catch(Tn){}$n.send(Dn.hasContent&&Dn.data||null),Qn=function d(Tn,Hn){var Kn,Wn,Xn,Yn,Jn;try{if(Qn&&(Hn||4===$n.readyState))if(Qn=Un,zn&&($n.onreadystatechange=Gn.noop,_i&&delete yi[zn]),Hn)4!==$n.readyState&&$n.abort();else{Kn=$n.status,Xn=$n.getAllResponseHeaders(),Yn={},(Jn=$n.responseXML)&&Jn.documentElement&&(Yn.xml=Jn),Yn.text=$n.responseText;try{Wn=$n.statusText}catch(Tn){Wn=""}Kn||!Dn.isLocal||Dn.crossDomain?1223===Kn&&(Kn=204):Kn=Yn.text?200:404}}catch(Tn){Hn||Vn(-1,Tn)}Yn&&Vn(Kn,Wn,Yn,Xn)},Dn.async&&4!==$n.readyState?(zn=++wi,_i&&(yi||(yi={},Gn(Tn).unload(_i)),yi[zn]=Qn),$n.onreadystatechange=Qn):Qn()},abort:function abort(){Qn&&Qn(0,1)}}}));var xi,Si,Ci,ki,Bi={},Ei=/^(?:toggle|show|hide)$/,Pi=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Li=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];Gn.fn.extend({show:function show(Tn,Un,Dn){var Qn,Hn;if(Tn||0===Tn)return this.animate(cu("show",3),Tn,Un,Dn);for(var Vn=0,zn=this.length;Vn<zn;Vn++)(Qn=this[Vn]).style&&(Hn=Qn.style.display,!Gn._data(Qn,"olddisplay")&&"none"===Hn&&(Hn=Qn.style.display=""),""===Hn&&"none"===Gn.css(Qn,"display")&&Gn._data(Qn,"olddisplay",cv(Qn.nodeName)));for(Vn=0;Vn<zn;Vn++)(Qn=this[Vn]).style&&(""!==(Hn=Qn.style.display)&&"none"!==Hn||(Qn.style.display=Gn._data(Qn,"olddisplay")||""));return this},hide:function hide(Tn,Un,Dn){if(Tn||0===Tn)return this.animate(cu("hide",3),Tn,Un,Dn);for(var Qn,Hn,Vn=0,zn=this.length;Vn<zn;Vn++)(Qn=this[Vn]).style&&("none"!==(Hn=Gn.css(Qn,"display"))&&!Gn._data(Qn,"olddisplay")&&Gn._data(Qn,"olddisplay",Hn));for(Vn=0;Vn<zn;Vn++)this[Vn].style&&(this[Vn].style.display="none");return this},_toggle:Gn.fn.toggle,toggle:function toggle(Tn,Un,Dn){var Qn="boolean"==typeof Tn;return Gn.isFunction(Tn)&&Gn.isFunction(Un)?this._toggle.apply(this,arguments):null==Tn||Qn?this.each((function(){var Un=Qn?Tn:Gn(this).is(":hidden");Gn(this)[Un?"show":"hide"]()})):this.animate(cu("toggle",3),Tn,Un,Dn),this},fadeTo:function fadeTo(Tn,Un,Dn,Qn){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:Un},Tn,Dn,Qn)},animate:function animate(Tn,Un,Dn,Qn){function g(){!1===Hn.queue&&Gn._mark(this);var Un,Dn,Qn,Vn,zn,Kn,$n,Wn,Xn,Yn=Gn.extend({},Hn),Jn=1===this.nodeType,Zn=Jn&&Gn(this).is(":hidden");for(Qn in Yn.animatedProperties={},Tn){if(Qn!==(Un=Gn.camelCase(Qn))&&(Tn[Un]=Tn[Qn],delete Tn[Qn]),Dn=Tn[Un],Gn.isArray(Dn)?(Yn.animatedProperties[Un]=Dn[1],Dn=Tn[Un]=Dn[0]):Yn.animatedProperties[Un]=Yn.specialEasing&&Yn.specialEasing[Un]||Yn.easing||"swing","hide"===Dn&&Zn||"show"===Dn&&!Zn)return Yn.complete.call(this);Jn&&("height"===Un||"width"===Un)&&(Yn.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===Gn.css(this,"display")&&"none"===Gn.css(this,"float")&&(Gn.support.inlineBlockNeedsLayout&&"inline"!==cv(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}for(Qn in null!=Yn.overflow&&(this.style.overflow="hidden"),Tn)Vn=new Gn.fx(this,Yn,Qn),Dn=Tn[Qn],Ei.test(Dn)?(Xn=Gn._data(this,"toggle"+Qn)||("toggle"===Dn?Zn?"show":"hide":0))?(Gn._data(this,"toggle"+Qn,"show"===Xn?"hide":"show"),Vn[Xn]()):Vn[Dn]():(zn=Pi.exec(Dn),Kn=Vn.cur(),zn?($n=parseFloat(zn[2]),"px"!==(Wn=zn[3]||(Gn.cssNumber[Qn]?"":"px"))&&(Gn.style(this,Qn,($n||1)+Wn),Kn=($n||1)/Vn.cur()*Kn,Gn.style(this,Qn,Kn+Wn)),zn[1]&&($n=("-="===zn[1]?-1:1)*$n+Kn),Vn.custom(Kn,$n,Wn)):Vn.custom(Kn,Dn,""));return!0}var Hn=Gn.speed(Un,Dn,Qn);return Gn.isEmptyObject(Tn)?this.each(Hn.complete,[!1]):(Tn=Gn.extend({},Tn),!1===Hn.queue?this.each(g):this.queue(Hn.queue,g))},stop:function stop(Tn,Dn,Qn){return"string"!=typeof Tn&&(Qn=Dn,Dn=Tn,Tn=Un),Dn&&!1!==Tn&&this.queue(Tn||"fx",[]),this.each((function(){function h(Tn,Un,Dn){var Hn=Un[Dn];Gn.removeData(Tn,Dn,!0),Hn.stop(Qn)}var Un,Dn=!1,Hn=Gn.timers,Vn=Gn._data(this);if(Qn||Gn._unmark(!0,this),null==Tn)for(Un in Vn)Vn[Un]&&Vn[Un].stop&&Un.indexOf(".run")===Un.length-4&&h(this,Vn,Un);else Vn[Un=Tn+".run"]&&Vn[Un].stop&&h(this,Vn,Un);for(Un=Hn.length;Un--;)Hn[Un].elem===this&&(null==Tn||Hn[Un].queue===Tn)&&(Qn?Hn[Un](!0):Hn[Un].saveState(),Dn=!0,Hn.splice(Un,1));(!Qn||!Dn)&&Gn.dequeue(this,Tn)}))}}),Gn.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(Tn,Un){Gn.fn[Tn]=function(Tn,Dn,Qn){return this.animate(Un,Tn,Dn,Qn)}})),Gn.extend({speed:function speed(Tn,Un,Dn){var Qn=Tn&&"object"==_typeof(Tn)?Gn.extend({},Tn):{complete:Dn||!Dn&&Un||Gn.isFunction(Tn)&&Tn,duration:Tn,easing:Dn&&Un||Un&&!Gn.isFunction(Un)&&Un};return Qn.duration=Gn.fx.off?0:"number"==typeof Qn.duration?Qn.duration:Qn.duration in Gn.fx.speeds?Gn.fx.speeds[Qn.duration]:Gn.fx.speeds._default,null!=Qn.queue&&!0!==Qn.queue||(Qn.queue="fx"),Qn.old=Qn.complete,Qn.complete=function(Tn){Gn.isFunction(Qn.old)&&Qn.old.call(this),Qn.queue?Gn.dequeue(this,Qn.queue):!1!==Tn&&Gn._unmark(this)},Qn},easing:{linear:function linear(Tn,Un,Dn,Qn){return Dn+Qn*Tn},swing:function swing(Tn,Un,Dn,Qn){return(-Math.cos(Tn*Math.PI)/2+.5)*Qn+Dn}},timers:[],fx:function fx(Tn,Un,Dn){this.options=Un,this.elem=Tn,this.prop=Dn,Un.orig=Un.orig||{}}}),Gn.fx.prototype={update:function update(){this.options.step&&this.options.step.call(this.elem,this.now,this),(Gn.fx.step[this.prop]||Gn.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 Tn,Un=Gn.css(this.elem,this.prop);return isNaN(Tn=parseFloat(Un))?Un&&"auto"!==Un?Un:0:Tn},custom:function custom(Tn,Dn,Qn){function h(Tn){return Hn.step(Tn)}var Hn=this,Vn=Gn.fx;this.startTime=ki||cs(),this.end=Dn,this.now=this.start=Tn,this.pos=this.state=0,this.unit=Qn||this.unit||(Gn.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){Hn.options.hide&&Gn._data(Hn.elem,"fxshow"+Hn.prop)===Un&&Gn._data(Hn.elem,"fxshow"+Hn.prop,Hn.start)},h()&&Gn.timers.push(h)&&!Ci&&(Ci=setInterval(Vn.tick,Vn.interval))},show:function show(){var Tn=Gn._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=Tn||Gn.style(this.elem,this.prop),this.options.show=!0,Tn!==Un?this.custom(this.cur(),Tn):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),Gn(this.elem).show()},hide:function hide(){this.options.orig[this.prop]=Gn._data(this.elem,"fxshow"+this.prop)||Gn.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function step(Tn){var Un,Dn,Qn,Hn=ki||cs(),Vn=!0,zn=this.elem,Kn=this.options;if(Tn||Hn>=Kn.duration+this.startTime){for(Un in this.now=this.end,this.pos=this.state=1,this.update(),Kn.animatedProperties[this.prop]=!0,Kn.animatedProperties)!0!==Kn.animatedProperties[Un]&&(Vn=!1);if(Vn){if(null!=Kn.overflow&&!Gn.support.shrinkWrapBlocks&&Gn.each(["","X","Y"],(function(Tn,Un){zn.style["overflow"+Un]=Kn.overflow[Tn]})),Kn.hide&&Gn(zn).hide(),Kn.hide||Kn.show)for(Un in Kn.animatedProperties)Gn.style(zn,Un,Kn.orig[Un]),Gn.removeData(zn,"fxshow"+Un,!0),Gn.removeData(zn,"toggle"+Un,!0);(Qn=Kn.complete)&&(Kn.complete=!1,Qn.call(zn))}return!1}return Kn.duration==1/0?this.now=Hn:(Dn=Hn-this.startTime,this.state=Dn/Kn.duration,this.pos=Gn.easing[Kn.animatedProperties[this.prop]](this.state,Dn,0,1,Kn.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},Gn.extend(Gn.fx,{tick:function tick(){for(var Tn,Un=Gn.timers,Dn=0;Dn<Un.length;Dn++)!(Tn=Un[Dn])()&&Un[Dn]===Tn&&Un.splice(Dn--,1);Un.length||Gn.fx.stop()},interval:13,stop:function stop(){clearInterval(Ci),Ci=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function opacity(Tn){Gn.style(Tn.elem,"opacity",Tn.now)},_default:function _default(Tn){Tn.elem.style&&null!=Tn.elem.style[Tn.prop]?Tn.elem.style[Tn.prop]=Tn.now+Tn.unit:Tn.elem[Tn.prop]=Tn.now}}}),Gn.each(["width","height"],(function(Tn,Un){Gn.fx.step[Un]=function(Tn){Gn.style(Tn.elem,Un,Math.max(0,Tn.now)+Tn.unit)}})),Gn.expr&&Gn.expr.filters&&(Gn.expr.filters.animated=function(Tn){return Gn.grep(Gn.timers,(function(Un){return Tn===Un.elem})).length});var Ti=/^t(?:able|d|h)$/i,Ni=/^(?:body|html)$/i;"getBoundingClientRect"in Dn.documentElement?Gn.fn.offset=function(Tn){var Un,Dn=this[0];if(Tn)return this.each((function(Un){Gn.offset.setOffset(this,Tn,Un)}));if(!Dn||!Dn.ownerDocument)return null;if(Dn===Dn.ownerDocument.body)return Gn.offset.bodyOffset(Dn);try{Un=Dn.getBoundingClientRect()}catch(Tn){}var Qn=Dn.ownerDocument,Hn=Qn.documentElement;if(!Un||!Gn.contains(Hn,Dn))return Un?{top:Un.top,left:Un.left}:{top:0,left:0};var Vn=Qn.body,zn=cy(Qn),Kn=Hn.clientTop||Vn.clientTop||0,$n=Hn.clientLeft||Vn.clientLeft||0,Wn=zn.pageYOffset||Gn.support.boxModel&&Hn.scrollTop||Vn.scrollTop,Xn=zn.pageXOffset||Gn.support.boxModel&&Hn.scrollLeft||Vn.scrollLeft;return{top:Un.top+Wn-Kn,left:Un.left+Xn-$n}}:Gn.fn.offset=function(Tn){var Un=this[0];if(Tn)return this.each((function(Un){Gn.offset.setOffset(this,Tn,Un)}));if(!Un||!Un.ownerDocument)return null;if(Un===Un.ownerDocument.body)return Gn.offset.bodyOffset(Un);for(var Dn,Qn=Un.offsetParent,Hn=Un.ownerDocument,Vn=Hn.documentElement,zn=Hn.body,Kn=Hn.defaultView,$n=Kn?Kn.getComputedStyle(Un,null):Un.currentStyle,Wn=Un.offsetTop,Xn=Un.offsetLeft;(Un=Un.parentNode)&&Un!==zn&&Un!==Vn&&(!Gn.support.fixedPosition||"fixed"!==$n.position);)Dn=Kn?Kn.getComputedStyle(Un,null):Un.currentStyle,Wn-=Un.scrollTop,Xn-=Un.scrollLeft,Un===Qn&&(Wn+=Un.offsetTop,Xn+=Un.offsetLeft,Gn.support.doesNotAddBorder&&(!Gn.support.doesAddBorderForTableAndCells||!Ti.test(Un.nodeName))&&(Wn+=parseFloat(Dn.borderTopWidth)||0,Xn+=parseFloat(Dn.borderLeftWidth)||0),Qn=Un.offsetParent),Gn.support.subtractsBorderForOverflowNotVisible&&"visible"!==Dn.overflow&&(Wn+=parseFloat(Dn.borderTopWidth)||0,Xn+=parseFloat(Dn.borderLeftWidth)||0),$n=Dn;return"relative"!==$n.position&&"static"!==$n.position||(Wn+=zn.offsetTop,Xn+=zn.offsetLeft),Gn.support.fixedPosition&&"fixed"===$n.position&&(Wn+=Math.max(Vn.scrollTop,zn.scrollTop),Xn+=Math.max(Vn.scrollLeft,zn.scrollLeft)),{top:Wn,left:Xn}},Gn.offset={bodyOffset:function bodyOffset(Tn){var Un=Tn.offsetTop,Dn=Tn.offsetLeft;return Gn.support.doesNotIncludeMarginInBodyOffset&&(Un+=parseFloat(Gn.css(Tn,"marginTop"))||0,Dn+=parseFloat(Gn.css(Tn,"marginLeft"))||0),{top:Un,left:Dn}},setOffset:function setOffset(Tn,Un,Dn){var Qn=Gn.css(Tn,"position");"static"===Qn&&(Tn.style.position="relative");var Hn,Vn,zn=Gn(Tn),Kn=zn.offset(),$n=Gn.css(Tn,"top"),Wn=Gn.css(Tn,"left"),Xn={},Yn={};("absolute"===Qn||"fixed"===Qn)&&Gn.inArray("auto",[$n,Wn])>-1?(Hn=(Yn=zn.position()).top,Vn=Yn.left):(Hn=parseFloat($n)||0,Vn=parseFloat(Wn)||0),Gn.isFunction(Un)&&(Un=Un.call(Tn,Dn,Kn)),null!=Un.top&&(Xn.top=Un.top-Kn.top+Hn),null!=Un.left&&(Xn.left=Un.left-Kn.left+Vn),"using"in Un?Un.using.call(Tn,Xn):zn.css(Xn)}},Gn.fn.extend({position:function position(){if(!this[0])return null;var Tn=this[0],Un=this.offsetParent(),Dn=this.offset(),Qn=Ni.test(Un[0].nodeName)?{top:0,left:0}:Un.offset();return Dn.top-=parseFloat(Gn.css(Tn,"marginTop"))||0,Dn.left-=parseFloat(Gn.css(Tn,"marginLeft"))||0,Qn.top+=parseFloat(Gn.css(Un[0],"borderTopWidth"))||0,Qn.left+=parseFloat(Gn.css(Un[0],"borderLeftWidth"))||0,{top:Dn.top-Qn.top,left:Dn.left-Qn.left}},offsetParent:function offsetParent(){return this.map((function(){for(var Tn=this.offsetParent||Dn.body;Tn&&!Ni.test(Tn.nodeName)&&"static"===Gn.css(Tn,"position");)Tn=Tn.offsetParent;return Tn}))}}),Gn.each(["Left","Top"],(function(Tn,Dn){var Qn="scroll"+Dn;Gn.fn[Qn]=function(Dn){var Hn,Vn;return Dn===Un?(Hn=this[0])?(Vn=cy(Hn))?"pageXOffset"in Vn?Vn[Tn?"pageYOffset":"pageXOffset"]:Gn.support.boxModel&&Vn.document.documentElement[Qn]||Vn.document.body[Qn]:Hn[Qn]:null:this.each((function(){(Vn=cy(this))?Vn.scrollTo(Tn?Gn(Vn).scrollLeft():Dn,Tn?Dn:Gn(Vn).scrollTop()):this[Qn]=Dn}))}})),Gn.each(["Height","Width"],(function(Tn,Dn){var Qn=Dn.toLowerCase();Gn.fn["inner"+Dn]=function(){var Tn=this[0];return Tn?Tn.style?parseFloat(Gn.css(Tn,Qn,"padding")):this[Qn]():null},Gn.fn["outer"+Dn]=function(Tn){var Un=this[0];return Un?Un.style?parseFloat(Gn.css(Un,Qn,Tn?"margin":"border")):this[Qn]():null},Gn.fn[Qn]=function(Tn){var Hn=this[0];if(!Hn)return null==Tn?null:this;if(Gn.isFunction(Tn))return this.each((function(Un){var Dn=Gn(this);Dn[Qn](Tn.call(this,Un,Dn[Qn]()))}));if(Gn.isWindow(Hn)){var Vn=Hn.document.documentElement["client"+Dn],zn=Hn.document.body;return"CSS1Compat"===Hn.document.compatMode&&Vn||zn&&zn["client"+Dn]||Vn}if(9===Hn.nodeType)return Math.max(Hn.documentElement["client"+Dn],Hn.body["scroll"+Dn],Hn.documentElement["scroll"+Dn],Hn.body["offset"+Dn],Hn.documentElement["offset"+Dn]);if(Tn===Un){var Kn=Gn.css(Hn,Qn),$n=parseFloat(Kn);return Gn.isNumeric($n)?$n:Kn}return this.css(Qn,"string"==typeof Tn?Tn:Tn+"px")}})),Tn.jQuery=Tn.$=Gn,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],(function(){return Gn}))}(window);var Sa,Ca,ka,Ba={},Ea=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Pa=sharedKey("IE_PROTO"),La=Object.prototype,Ta=Ea?Object.getPrototypeOf:function(Tn){return Tn=toObject(Tn),has(Tn,Pa)?Tn[Pa]:"function"==typeof Tn.constructor&&Tn instanceof Tn.constructor?Tn.constructor.prototype:Tn instanceof Object?La:null},Na=wellKnownSymbol("iterator"),Ia=!1;[].keys&&("next"in(ka=[].keys())?(Ca=Ta(Ta(ka)))!==Object.prototype&&(Sa=Ca):Ia=!0),null==Sa&&(Sa={}),has(Sa,Na)||rr(Sa,Na,(function(){return this}));var Oa={IteratorPrototype:Sa,BUGGY_SAFARI_ITERATORS:Ia},Fa=nr.f,Ua=wellKnownSymbol("toStringTag"),setToStringTag=function(Tn,Un,Dn){Tn&&!has(Tn=Dn?Tn:Tn.prototype,Ua)&&Fa(Tn,Ua,{configurable:!0,value:Un})},Ma=Oa.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(Tn,Un,Dn){var Qn=Un+" Iterator";return Tn.prototype=xi(Ma,{next:createPropertyDescriptor(1,Dn)}),setToStringTag(Tn,Qn,!1),Ba[Qn]=returnThis$1,Tn},Ra=Oa.IteratorPrototype,Da=Oa.BUGGY_SAFARI_ITERATORS,ja=wellKnownSymbol("iterator"),returnThis$2=function(){return this},defineIterator=function(Tn,Un,Dn,Qn,Hn,Gn,Vn){createIteratorConstructor(Dn,Un,Qn);var zn,Kn,$n,getIterationMethod=function(Tn){if(Tn===Hn&&Zn)return Zn;if(!Da&&Tn in Yn)return Yn[Tn];switch(Tn){case"keys":return function keys(){return new Dn(this,Tn)};case"values":return function values(){return new Dn(this,Tn)};case"entries":return function entries(){return new Dn(this,Tn)}}return function(){return new Dn(this)}},Wn=Un+" Iterator",Xn=!1,Yn=Tn.prototype,Jn=Yn[ja]||Yn["@@iterator"]||Hn&&Yn[Hn],Zn=!Da&&Jn||getIterationMethod(Hn),er="Array"==Un&&Yn.entries||Jn;if(er&&(zn=Ta(er.call(new Tn)),Ra!==Object.prototype&&zn.next&&(Ta(zn)!==Ra&&(Lo?Lo(zn,Ra):"function"!=typeof zn[ja]&&rr(zn,ja,returnThis$2)),setToStringTag(zn,Wn,!0))),"values"==Hn&&Jn&&"values"!==Jn.name&&(Xn=!0,Zn=function values(){return Jn.call(this)}),Yn[ja]!==Zn&&rr(Yn,ja,Zn),Ba[Un]=Zn,Hn)if(Kn={values:getIterationMethod("values"),keys:Gn?Zn:getIterationMethod("keys"),entries:getIterationMethod("entries")},Vn)for($n in Kn)(Da||Xn||!($n in Yn))&&kr(Yn,$n,Kn[$n]);else _export({target:Un,proto:!0,forced:Da||Xn},Kn);return Kn},Qa=Cr.set,Ha=Cr.getterFor("Array Iterator"),Ga=defineIterator(Array,"Array",(function(Tn,Un){Qa(this,{type:"Array Iterator",target:toIndexedObject(Tn),index:0,kind:Un})}),(function(){var Tn=Ha(this),Un=Tn.target,Dn=Tn.kind,Qn=Tn.index++;return!Un||Qn>=Un.length?(Tn.target=void 0,{value:void 0,done:!0}):"keys"==Dn?{value:Qn,done:!1}:"values"==Dn?{value:Un[Qn],done:!1}:{value:[Qn,Un[Qn]],done:!1}}),"values");Ba.Arguments=Ba.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var Va=[].slice,za={},construct=function(Tn,Un,Dn){if(!(Un in za)){for(var Qn=[],Hn=0;Hn<Un;Hn++)Qn[Hn]="a["+Hn+"]";za[Un]=Function("C,a","return new C("+Qn.join(",")+")")}return za[Un](Tn,Dn)},Ka=Function.bind||function bind(Tn){var Un=aFunction$1(this),Dn=Va.call(arguments,1),Qn=function bound(){var Hn=Dn.concat(Va.call(arguments));return this instanceof Qn?construct(Un,Hn.length,Hn):Un.apply(Tn,Hn)};return isObject(Un.prototype)&&(Qn.prototype=Un.prototype),Qn};_export({target:"Function",proto:!0},{bind:Ka});var qa="".repeat||function repeat(Tn){var Un=String(requireObjectCoercible(this)),Dn="",Qn=toInteger(Tn);if(Qn<0||Qn==1/0)throw RangeError("Wrong number of repetitions");for(;Qn>0;(Qn>>>=1)&&(Un+=Un))1&Qn&&(Dn+=Un);return Dn},$a=1..toFixed,Wa=Math.floor,pow=function(Tn,Un,Dn){return 0===Un?Dn:Un%2==1?pow(Tn,Un-1,Dn*Tn):pow(Tn*Tn,Un/2,Dn)},Xa=$a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!fails((function(){$a.call({})}));_export({target:"Number",proto:!0,forced:Xa},{toFixed:function toFixed(Tn){var Un,Dn,Qn,Hn,Gn=function(Tn){if("number"!=typeof Tn&&"Number"!=classofRaw(Tn))throw TypeError("Incorrect invocation");return+Tn}(this),Vn=toInteger(Tn),zn=[0,0,0,0,0,0],Kn="",$n="0",multiply=function(Tn,Un){for(var Dn=-1,Qn=Un;++Dn<6;)Qn+=Tn*zn[Dn],zn[Dn]=Qn%1e7,Qn=Wa(Qn/1e7)},divide=function(Tn){for(var Un=6,Dn=0;--Un>=0;)Dn+=zn[Un],zn[Un]=Wa(Dn/Tn),Dn=Dn%Tn*1e7},dataToString=function(){for(var Tn=6,Un="";--Tn>=0;)if(""!==Un||0===Tn||0!==zn[Tn]){var Dn=String(zn[Tn]);Un=""===Un?Dn:Un+qa.call("0",7-Dn.length)+Dn}return Un};if(Vn<0||Vn>20)throw RangeError("Incorrect fraction digits");if(Gn!=Gn)return"NaN";if(Gn<=-1e21||Gn>=1e21)return String(Gn);if(Gn<0&&(Kn="-",Gn=-Gn),Gn>1e-21)if(Dn=(Un=function(Tn){for(var Un=0,Dn=Tn;Dn>=4096;)Un+=12,Dn/=4096;for(;Dn>=2;)Un+=1,Dn/=2;return Un}(Gn*pow(2,69,1))-69)<0?Gn*pow(2,-Un,1):Gn/pow(2,Un,1),Dn*=4503599627370496,(Un=52-Un)>0){for(multiply(0,Dn),Qn=Vn;Qn>=7;)multiply(1e7,0),Qn-=7;for(multiply(pow(10,Qn,1),0),Qn=Un-1;Qn>=23;)divide(1<<23),Qn-=23;divide(1<<Qn),multiply(1,1),divide(2),$n=dataToString()}else multiply(0,Dn),multiply(1<<-Un,0),$n=dataToString()+qa.call("0",Vn);return $n=Vn>0?Kn+((Hn=$n.length)<=Vn?"0."+qa.call("0",Vn-Hn)+$n:$n.slice(0,Hn-Vn)+"."+$n.slice(Hn-Vn)):Kn+$n}});var Ya={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},Ja=wellKnownSymbol("iterator"),Za=wellKnownSymbol("toStringTag"),es=Ga.values;for(var ts in Ya){var ns=Dn[ts],rs=ns&&ns.prototype;if(rs){if(rs[Ja]!==es)try{rr(rs,Ja,es)}catch(Tn){rs[Ja]=es}if(rs[Za]||rr(rs,Za,ts),Ya[ts])for(var os in Ga)if(rs[os]!==Ga[os])try{rr(rs,os,Ga[os])}catch(Tn){rs[os]=Ga[os]}}}
|
||
/*!
|
||
* 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(Tn,Un){function d(Un){return!Tn(Un).parents().andSelf().filter((function(){return"hidden"===Tn.curCSS(this,"visibility")||Tn.expr.filters.hidden(this)})).length}function c(Un,Dn){var Qn=Un.nodeName.toLowerCase();if("area"===Qn){var Hn,Gn=Un.parentNode,Vn=Gn.name;return!(!Un.href||!Vn||"map"!==Gn.nodeName.toLowerCase())&&(!!(Hn=Tn("img[usemap=#"+Vn+"]")[0])&&d(Hn))}return(/input|select|textarea|button|object/.test(Qn)?!Un.disabled:"a"==Qn&&Un.href||Dn)&&d(Un)}Tn.ui=Tn.ui||{},Tn.ui.version||(Tn.extend(Tn.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}}),Tn.fn.extend({propAttr:Tn.fn.prop||Tn.fn.attr,_focus:Tn.fn.focus,focus:function focus(Un,Dn){return"number"==typeof Un?this.each((function(){var Qn=this;setTimeout((function(){Tn(Qn).focus(),Dn&&Dn.call(Qn)}),Un)})):this._focus.apply(this,arguments)},scrollParent:function scrollParent(){var Un;return Un=Tn.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(Tn.curCSS(this,"position",1))&&/(auto|scroll)/.test(Tn.curCSS(this,"overflow",1)+Tn.curCSS(this,"overflow-y",1)+Tn.curCSS(this,"overflow-x",1))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(Tn.curCSS(this,"overflow",1)+Tn.curCSS(this,"overflow-y",1)+Tn.curCSS(this,"overflow-x",1))})).eq(0),/fixed/.test(this.css("position"))||!Un.length?Tn(document):Un},zIndex:function zIndex(Dn){if(Dn!==Un)return this.css("zIndex",Dn);if(this.length)for(var Qn,Hn,Gn=Tn(this[0]);Gn.length&&Gn[0]!==document;){if(("absolute"===(Qn=Gn.css("position"))||"relative"===Qn||"fixed"===Qn)&&(Hn=parseInt(Gn.css("zIndex"),10),!isNaN(Hn)&&0!==Hn))return Hn;Gn=Gn.parent()}return 0},disableSelection:function disableSelection(){return this.bind((Tn.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(Tn){Tn.preventDefault()}))},enableSelection:function enableSelection(){return this.unbind(".ui-disableSelection")}}),Tn.each(["Width","Height"],(function(Dn,Qn){function h(Un,Dn,Qn,Gn){return Tn.each(Hn,(function(){Dn-=parseFloat(Tn.curCSS(Un,"padding"+this,!0))||0,Qn&&(Dn-=parseFloat(Tn.curCSS(Un,"border"+this+"Width",!0))||0),Gn&&(Dn-=parseFloat(Tn.curCSS(Un,"margin"+this,!0))||0)})),Dn}var Hn="Width"===Qn?["Left","Right"]:["Top","Bottom"],Gn=Qn.toLowerCase(),Vn={innerWidth:Tn.fn.innerWidth,innerHeight:Tn.fn.innerHeight,outerWidth:Tn.fn.outerWidth,outerHeight:Tn.fn.outerHeight};Tn.fn["inner"+Qn]=function(Dn){return Dn===Un?Vn["inner"+Qn].call(this):this.each((function(){Tn(this).css(Gn,h(this,Dn)+"px")}))},Tn.fn["outer"+Qn]=function(Un,Dn){return"number"!=typeof Un?Vn["outer"+Qn].call(this,Un):this.each((function(){Tn(this).css(Gn,h(this,Un,!0,Dn)+"px")}))}})),Tn.extend(Tn.expr[":"],{data:function data(Un,Dn,Qn){return!!Tn.data(Un,Qn[3])},focusable:function focusable(Un){return c(Un,!isNaN(Tn.attr(Un,"tabindex")))},tabbable:function tabbable(Un){var Dn=Tn.attr(Un,"tabindex"),Qn=isNaN(Dn);return(Qn||Dn>=0)&&c(Un,!Qn)}}),Tn((function(){var Un=document.body,Dn=Un.appendChild(Dn=document.createElement("div"));Tn.extend(Dn.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),Tn.support.minHeight=100===Dn.offsetHeight,Tn.support.selectstart="onselectstart"in Dn,Un.removeChild(Dn).style.display="none"})),Tn.extend(Tn.ui,{plugin:{add:function add(Un,Dn,Qn){var Hn=Tn.ui[Un].prototype;for(var Gn in Qn)Hn.plugins[Gn]=Hn.plugins[Gn]||[],Hn.plugins[Gn].push([Dn,Qn[Gn]])},call:function call(Tn,Un,Dn){var Qn=Tn.plugins[Un];if(Qn&&Tn.element[0].parentNode)for(var Hn=0;Hn<Qn.length;Hn++)Tn.options[Qn[Hn][0]]&&Qn[Hn][1].apply(Tn.element,Dn)}},contains:function contains(Tn,Un){return document.compareDocumentPosition?16&Tn.compareDocumentPosition(Un):Tn!==Un&&Tn.contains(Un)},hasScroll:function hasScroll(Un,Dn){if("hidden"===Tn(Un).css("overflow"))return!1;var Qn,Hn=Dn&&"left"===Dn?"scrollLeft":"scrollTop";return Un[Hn]>0||(Un[Hn]=1,Qn=Un[Hn]>0,Un[Hn]=0,Qn)},isOverAxis:function isOverAxis(Tn,Un,Dn){return Tn>Un&&Tn<Un+Dn},isOver:function isOver(Un,Dn,Qn,Hn,Gn,Vn){return Tn.ui.isOverAxis(Un,Qn,Gn)&&Tn.ui.isOverAxis(Dn,Hn,Vn)}}))}(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(Tn,Un){if(Tn.cleanData){var Dn=Tn.cleanData;Tn.cleanData=function(Un){for(var Qn,Hn=0;null!=(Qn=Un[Hn]);Hn++)try{Tn(Qn).triggerHandler("remove")}catch(Tn){}Dn(Un)}}else{var Qn=Tn.fn.remove;Tn.fn.remove=function(Un,Dn){return this.each((function(){return Dn||(!Un||Tn.filter(Un,[this]).length)&&Tn("*",this).add([this]).each((function(){try{Tn(this).triggerHandler("remove")}catch(Tn){}})),Qn.call(Tn(this),Un,Dn)}))}}Tn.widget=function(Un,Dn,Qn){var Hn,Gn=Un.split(".")[0];Hn=Gn+"-"+(Un=Un.split(".")[1]),Qn||(Qn=Dn,Dn=Tn.Widget),Tn.expr[":"][Hn]=function(Dn){return!!Tn.data(Dn,Un)},Tn[Gn]=Tn[Gn]||{},Tn[Gn][Un]=function(Tn,Un){arguments.length&&this._createWidget(Tn,Un)};var Vn=new Dn;Vn.options=Tn.extend(!0,{},Vn.options),Tn[Gn][Un].prototype=Tn.extend(!0,Vn,{namespace:Gn,widgetName:Un,widgetEventPrefix:Tn[Gn][Un].prototype.widgetEventPrefix||Un,widgetBaseClass:Hn},Qn),Tn.widget.bridge(Un,Tn[Gn][Un])},Tn.widget.bridge=function(Dn,Qn){Tn.fn[Dn]=function(Hn){var Gn="string"==typeof Hn,Vn=Array.prototype.slice.call(arguments,1),zn=this;return Hn=!Gn&&Vn.length?Tn.extend.apply(null,[!0,Hn].concat(Vn)):Hn,Gn&&"_"===Hn.charAt(0)||(Gn?this.each((function(){var Qn=Tn.data(this,Dn),Gn=Qn&&Tn.isFunction(Qn[Hn])?Qn[Hn].apply(Qn,Vn):Qn;if(Gn!==Qn&&Gn!==Un)return zn=Gn,!1})):this.each((function(){var Un=Tn.data(this,Dn);Un?Un.option(Hn||{})._init():Tn.data(this,Dn,new Qn(Hn,this))}))),zn}},Tn.Widget=function(Tn,Un){arguments.length&&this._createWidget(Tn,Un)},Tn.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function _createWidget(Un,Dn){Tn.data(Dn,this.widgetName,this),this.element=Tn(Dn),this.options=Tn.extend(!0,{},this.options,this._getCreateOptions(),Un);var Qn=this;this.element.bind("remove."+this.widgetName,(function(){Qn.destroy()})),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function _getCreateOptions(){return Tn.metadata&&Tn.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(Dn,Qn){var Hn=Dn;if(0===arguments.length)return Tn.extend({},this.options);if("string"==typeof Dn){if(Qn===Un)return this.options[Dn];(Hn={})[Dn]=Qn}return this._setOptions(Hn),this},_setOptions:function _setOptions(Un){var Dn=this;return Tn.each(Un,(function(Tn,Un){Dn._setOption(Tn,Un)})),this},_setOption:function _setOption(Tn,Un){return this.options[Tn]=Un,"disabled"===Tn&&this.widget()[Un?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",Un),this},enable:function enable(){return this._setOption("disabled",!1)},disable:function disable(){return this._setOption("disabled",!0)},_trigger:function _trigger(Un,Dn,Qn){var Hn,Gn,Vn=this.options[Un];if(Qn=Qn||{},(Dn=Tn.Event(Dn)).type=(Un===this.widgetEventPrefix?Un:this.widgetEventPrefix+Un).toLowerCase(),Dn.target=this.element[0],Gn=Dn.originalEvent)for(Hn in Gn)Hn in Dn||(Dn[Hn]=Gn[Hn]);return this.element.trigger(Dn,Qn),!(Tn.isFunction(Vn)&&!1===Vn.call(this.element[0],Dn,Qn)||Dn.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(Tn,Un){var Dn=!1;Tn(document).mouseup((function(Tn){Dn=!1})),Tn.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function _mouseInit(){var Un=this;this.element.bind("mousedown."+this.widgetName,(function(Tn){return Un._mouseDown(Tn)})).bind("click."+this.widgetName,(function(Dn){if(!0===Tn.data(Dn.target,Un.widgetName+".preventClickEvent"))return Tn.removeData(Dn.target,Un.widgetName+".preventClickEvent"),Dn.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function _mouseDestroy(){this.element.unbind("."+this.widgetName)},_mouseDown:function _mouseDown(Un){if(!Dn){this._mouseStarted&&this._mouseUp(Un),this._mouseDownEvent=Un;var Qn=this,Hn=1==Un.which,Gn=!("string"!=typeof this.options.cancel||!Un.target.nodeName)&&Tn(Un.target).closest(this.options.cancel).length;return!(Hn&&!Gn&&this._mouseCapture(Un))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){Qn.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(Un)&&this._mouseDelayMet(Un)&&(this._mouseStarted=!1!==this._mouseStart(Un),!this._mouseStarted)?(Un.preventDefault(),!0):(!0===Tn.data(Un.target,this.widgetName+".preventClickEvent")&&Tn.removeData(Un.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(Tn){return Qn._mouseMove(Tn)},this._mouseUpDelegate=function(Tn){return Qn._mouseUp(Tn)},Tn(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),Un.preventDefault(),Dn=!0,!0))}},_mouseMove:function _mouseMove(Un){return!Tn.browser.msie||document.documentMode>=9||Un.button?this._mouseStarted?(this._mouseDrag(Un),Un.preventDefault()):(this._mouseDistanceMet(Un)&&this._mouseDelayMet(Un)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,Un),this._mouseStarted?this._mouseDrag(Un):this._mouseUp(Un)),!this._mouseStarted):this._mouseUp(Un)},_mouseUp:function _mouseUp(Un){return Tn(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,Un.target==this._mouseDownEvent.target&&Tn.data(Un.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(Un)),!1},_mouseDistanceMet:function _mouseDistanceMet(Tn){return Math.max(Math.abs(this._mouseDownEvent.pageX-Tn.pageX),Math.abs(this._mouseDownEvent.pageY-Tn.pageY))>=this.options.distance},_mouseDelayMet:function _mouseDelayMet(Tn){return this.mouseDelayMet},_mouseStart:function _mouseStart(Tn){},_mouseDrag:function _mouseDrag(Tn){},_mouseStop:function _mouseStop(Tn){},_mouseCapture:function _mouseCapture(Tn){return!0}})}(jQuery),function(Tn,Un){Tn.widget("ui.draggable",Tn.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(Un){var Dn=this.options;return!(this.helper||Dn.disabled||Tn(Un.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(Un),!!this.handle&&(Dn.iframeFix&&Tn(!0===Dn.iframeFix?"iframe":Dn.iframeFix).each((function(){Tn('<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(Tn(this).offset()).appendTo("body")})),!0))},_mouseStart:function _mouseStart(Un){var Dn=this.options;return this.helper=this._createHelper(Un),this._cacheHelperProportions(),Tn.ui.ddmanager&&(Tn.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},Tn.extend(this.offset,{click:{left:Un.pageX-this.offset.left,top:Un.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(Un),this.originalPageX=Un.pageX,this.originalPageY=Un.pageY,Dn.cursorAt&&this._adjustOffsetFromHelper(Dn.cursorAt),Dn.containment&&this._setContainment(),!1===this._trigger("start",Un)?(this._clear(),!1):(this._cacheHelperProportions(),Tn.ui.ddmanager&&!Dn.dropBehaviour&&Tn.ui.ddmanager.prepareOffsets(this,Un),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(Un,!0),Tn.ui.ddmanager&&Tn.ui.ddmanager.dragStart(this,Un),!0)},_mouseDrag:function _mouseDrag(Un,Dn){if(this.position=this._generatePosition(Un),this.positionAbs=this._convertPositionTo("absolute"),!Dn){var Qn=this._uiHash();if(!1===this._trigger("drag",Un,Qn))return this._mouseUp({}),!1;this.position=Qn.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"),Tn.ui.ddmanager&&Tn.ui.ddmanager.drag(this,Un),!1},_mouseStop:function _mouseStop(Un){var Dn=!1;if(Tn.ui.ddmanager&&!this.options.dropBehaviour&&(Dn=Tn.ui.ddmanager.drop(this,Un)),this.dropped&&(Dn=this.dropped,this.dropped=!1),!(this.element[0]&&this.element[0].parentNode||"original"!=this.options.helper))return!1;if("invalid"==this.options.revert&&!Dn||"valid"==this.options.revert&&Dn||!0===this.options.revert||Tn.isFunction(this.options.revert)&&this.options.revert.call(this.element,Dn)){var Qn=this;Tn(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==Qn._trigger("stop",Un)&&Qn._clear()}))}else!1!==this._trigger("stop",Un)&&this._clear();return!1},_mouseUp:function _mouseUp(Un){return!0===this.options.iframeFix&&Tn("div.ui-draggable-iframeFix").each((function(){this.parentNode.removeChild(this)})),Tn.ui.ddmanager&&Tn.ui.ddmanager.dragStop(this,Un),Tn.ui.mouse.prototype._mouseUp.call(this,Un)},cancel:function cancel(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function _getHandle(Un){var Dn=!this.options.handle||!Tn(this.options.handle,this.element).length;return Tn(this.options.handle,this.element).find("*").andSelf().each((function(){this==Un.target&&(Dn=!0)})),Dn},_createHelper:function _createHelper(Un){var Dn=this.options,Qn=Tn.isFunction(Dn.helper)?Tn(Dn.helper.apply(this.element[0],[Un])):"clone"==Dn.helper?this.element.clone().removeAttr("id"):this.element;return Qn.parents("body").length||Qn.appendTo("parent"==Dn.appendTo?this.element[0].parentNode:Dn.appendTo),Qn[0]!=this.element[0]&&!/(fixed|absolute)/.test(Qn.css("position"))&&Qn.css("position","absolute"),Qn},_adjustOffsetFromHelper:function _adjustOffsetFromHelper(Un){"string"==typeof Un&&(Un=Un.split(" ")),Tn.isArray(Un)&&(Un={left:+Un[0],top:+Un[1]||0}),"left"in Un&&(this.offset.click.left=Un.left+this.margins.left),"right"in Un&&(this.offset.click.left=this.helperProportions.width-Un.right+this.margins.left),"top"in Un&&(this.offset.click.top=Un.top+this.margins.top),"bottom"in Un&&(this.offset.click.top=this.helperProportions.height-Un.bottom+this.margins.top)},_getParentOffset:function _getParentOffset(){this.offsetParent=this.helper.offsetParent();var Un=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&Tn.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(Un.left+=this.scrollParent.scrollLeft(),Un.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&Tn.browser.msie)&&(Un={top:0,left:0}),{top:Un.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:Un.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function _getRelativeOffset(){if("relative"==this.cssPosition){var Tn=this.element.position();return{top:Tn.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:Tn.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 Un=this.options;if("parent"==Un.containment&&(Un.containment=this.helper[0].parentNode),"document"!=Un.containment&&"window"!=Un.containment||(this.containment=["document"==Un.containment?0:Tn(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==Un.containment?0:Tn(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==Un.containment?0:Tn(window).scrollLeft())+Tn("document"==Un.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==Un.containment?0:Tn(window).scrollTop())+(Tn("document"==Un.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(Un.containment)||Un.containment.constructor==Array)Un.containment.constructor==Array&&(this.containment=Un.containment);else{var Dn=Tn(Un.containment),Qn=Dn[0];if(!Qn)return;Dn.offset();var Hn="hidden"!=Tn(Qn).css("overflow");this.containment=[(parseInt(Tn(Qn).css("borderLeftWidth"),10)||0)+(parseInt(Tn(Qn).css("paddingLeft"),10)||0),(parseInt(Tn(Qn).css("borderTopWidth"),10)||0)+(parseInt(Tn(Qn).css("paddingTop"),10)||0),(Hn?Math.max(Qn.scrollWidth,Qn.offsetWidth):Qn.offsetWidth)-(parseInt(Tn(Qn).css("borderLeftWidth"),10)||0)-(parseInt(Tn(Qn).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(Hn?Math.max(Qn.scrollHeight,Qn.offsetHeight):Qn.offsetHeight)-(parseInt(Tn(Qn).css("borderTopWidth"),10)||0)-(parseInt(Tn(Qn).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=Dn}},_convertPositionTo:function _convertPositionTo(Un,Dn){Dn||(Dn=this.position);var Qn="absolute"==Un?1:-1,Hn=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&Tn.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),Gn=/(html|body)/i.test(Hn[0].tagName);return{top:Dn.top+this.offset.relative.top*Qn+this.offset.parent.top*Qn-(Tn.browser.safari&&Tn.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():Gn?0:Hn.scrollTop())*Qn),left:Dn.left+this.offset.relative.left*Qn+this.offset.parent.left*Qn-(Tn.browser.safari&&Tn.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():Gn?0:Hn.scrollLeft())*Qn)}},_generatePosition:function _generatePosition(Un){var Dn=this.options,Qn="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&Tn.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,Hn=/(html|body)/i.test(Qn[0].tagName),Gn=Un.pageX,Vn=Un.pageY;if(this.originalPosition){var zn;if(this.containment){if(this.relative_container){var Kn=this.relative_container.offset();zn=[this.containment[0]+Kn.left,this.containment[1]+Kn.top,this.containment[2]+Kn.left,this.containment[3]+Kn.top]}else zn=this.containment;Un.pageX-this.offset.click.left<zn[0]&&(Gn=zn[0]+this.offset.click.left),Un.pageY-this.offset.click.top<zn[1]&&(Vn=zn[1]+this.offset.click.top),Un.pageX-this.offset.click.left>zn[2]&&(Gn=zn[2]+this.offset.click.left),Un.pageY-this.offset.click.top>zn[3]&&(Vn=zn[3]+this.offset.click.top)}if(Dn.grid){var $n=Dn.grid[1]?this.originalPageY+Math.round((Vn-this.originalPageY)/Dn.grid[1])*Dn.grid[1]:this.originalPageY;Vn=zn&&($n-this.offset.click.top<zn[1]||$n-this.offset.click.top>zn[3])?$n-this.offset.click.top<zn[1]?$n+Dn.grid[1]:$n-Dn.grid[1]:$n;var Wn=Dn.grid[0]?this.originalPageX+Math.round((Gn-this.originalPageX)/Dn.grid[0])*Dn.grid[0]:this.originalPageX;Gn=zn&&(Wn-this.offset.click.left<zn[0]||Wn-this.offset.click.left>zn[2])?Wn-this.offset.click.left<zn[0]?Wn+Dn.grid[0]:Wn-Dn.grid[0]:Wn}}return{top:Vn-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(Tn.browser.safari&&Tn.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():Hn?0:Qn.scrollTop()),left:Gn-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(Tn.browser.safari&&Tn.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():Hn?0:Qn.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(Un,Dn,Qn){return Qn=Qn||this._uiHash(),Tn.ui.plugin.call(this,Un,[Dn,Qn]),"drag"==Un&&(this.positionAbs=this._convertPositionTo("absolute")),Tn.Widget.prototype._trigger.call(this,Un,Dn,Qn)},plugins:{},_uiHash:function _uiHash(Tn){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),Tn.extend(Tn.ui.draggable,{version:"1.8.17"}),Tn.ui.plugin.add("draggable","connectToSortable",{start:function start(Un,Dn){var Qn=Tn(this).data("draggable"),Hn=Qn.options,Gn=Tn.extend({},Dn,{item:Qn.element});Qn.sortables=[],Tn(Hn.connectToSortable).each((function(){var Dn=Tn.data(this,"sortable");Dn&&!Dn.options.disabled&&(Qn.sortables.push({instance:Dn,shouldRevert:Dn.options.revert}),Dn.refreshPositions(),Dn._trigger("activate",Un,Gn))}))},stop:function stop(Un,Dn){var Qn=Tn(this).data("draggable"),Hn=Tn.extend({},Dn,{item:Qn.element});Tn.each(Qn.sortables,(function(){this.instance.isOver?(this.instance.isOver=0,Qn.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(Un),this.instance.options.helper=this.instance.options._helper,"original"==Qn.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",Un,Hn))}))},drag:function drag(Un,Dn){var Qn=Tn(this).data("draggable"),Hn=this;Tn.each(Qn.sortables,(function(Gn){this.instance.positionAbs=Qn.positionAbs,this.instance.helperProportions=Qn.helperProportions,this.instance.offset.click=Qn.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=Tn(Hn).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 Dn.helper[0]},Un.target=this.instance.currentItem[0],this.instance._mouseCapture(Un,!0),this.instance._mouseStart(Un,!0,!0),this.instance.offset.click.top=Qn.offset.click.top,this.instance.offset.click.left=Qn.offset.click.left,this.instance.offset.parent.left-=Qn.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=Qn.offset.parent.top-this.instance.offset.parent.top,Qn._trigger("toSortable",Un),Qn.dropped=this.instance.element,Qn.currentItem=Qn.element,this.instance.fromOutside=Qn),this.instance.currentItem&&this.instance._mouseDrag(Un)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",Un,this.instance._uiHash(this.instance)),this.instance._mouseStop(Un,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),Qn._trigger("fromSortable",Un),Qn.dropped=!1)}))}}),Tn.ui.plugin.add("draggable","cursor",{start:function start(Un,Dn){var Qn=Tn("body"),Hn=Tn(this).data("draggable").options;Qn.css("cursor")&&(Hn._cursor=Qn.css("cursor")),Qn.css("cursor",Hn.cursor)},stop:function stop(Un,Dn){var Qn=Tn(this).data("draggable").options;Qn._cursor&&Tn("body").css("cursor",Qn._cursor)}}),Tn.ui.plugin.add("draggable","opacity",{start:function start(Un,Dn){var Qn=Tn(Dn.helper),Hn=Tn(this).data("draggable").options;Qn.css("opacity")&&(Hn._opacity=Qn.css("opacity")),Qn.css("opacity",Hn.opacity)},stop:function stop(Un,Dn){var Qn=Tn(this).data("draggable").options;Qn._opacity&&Tn(Dn.helper).css("opacity",Qn._opacity)}}),Tn.ui.plugin.add("draggable","scroll",{start:function start(Un,Dn){var Qn=Tn(this).data("draggable");Qn.scrollParent[0]!=document&&"HTML"!=Qn.scrollParent[0].tagName&&(Qn.overflowOffset=Qn.scrollParent.offset())},drag:function drag(Un,Dn){var Qn=Tn(this).data("draggable"),Hn=Qn.options,Gn=!1;Qn.scrollParent[0]!=document&&"HTML"!=Qn.scrollParent[0].tagName?(Hn.axis&&"x"==Hn.axis||(Qn.overflowOffset.top+Qn.scrollParent[0].offsetHeight-Un.pageY<Hn.scrollSensitivity?Qn.scrollParent[0].scrollTop=Gn=Qn.scrollParent[0].scrollTop+Hn.scrollSpeed:Un.pageY-Qn.overflowOffset.top<Hn.scrollSensitivity&&(Qn.scrollParent[0].scrollTop=Gn=Qn.scrollParent[0].scrollTop-Hn.scrollSpeed)),Hn.axis&&"y"==Hn.axis||(Qn.overflowOffset.left+Qn.scrollParent[0].offsetWidth-Un.pageX<Hn.scrollSensitivity?Qn.scrollParent[0].scrollLeft=Gn=Qn.scrollParent[0].scrollLeft+Hn.scrollSpeed:Un.pageX-Qn.overflowOffset.left<Hn.scrollSensitivity&&(Qn.scrollParent[0].scrollLeft=Gn=Qn.scrollParent[0].scrollLeft-Hn.scrollSpeed))):(Hn.axis&&"x"==Hn.axis||(Un.pageY-Tn(document).scrollTop()<Hn.scrollSensitivity?Gn=Tn(document).scrollTop(Tn(document).scrollTop()-Hn.scrollSpeed):Tn(window).height()-(Un.pageY-Tn(document).scrollTop())<Hn.scrollSensitivity&&(Gn=Tn(document).scrollTop(Tn(document).scrollTop()+Hn.scrollSpeed))),Hn.axis&&"y"==Hn.axis||(Un.pageX-Tn(document).scrollLeft()<Hn.scrollSensitivity?Gn=Tn(document).scrollLeft(Tn(document).scrollLeft()-Hn.scrollSpeed):Tn(window).width()-(Un.pageX-Tn(document).scrollLeft())<Hn.scrollSensitivity&&(Gn=Tn(document).scrollLeft(Tn(document).scrollLeft()+Hn.scrollSpeed)))),!1!==Gn&&Tn.ui.ddmanager&&!Hn.dropBehaviour&&Tn.ui.ddmanager.prepareOffsets(Qn,Un)}}),Tn.ui.plugin.add("draggable","snap",{start:function start(Un,Dn){var Qn=Tn(this).data("draggable"),Hn=Qn.options;Qn.snapElements=[],Tn(Hn.snap.constructor!=String?Hn.snap.items||":data(draggable)":Hn.snap).each((function(){var Un=Tn(this),Dn=Un.offset();this!=Qn.element[0]&&Qn.snapElements.push({item:this,width:Un.outerWidth(),height:Un.outerHeight(),top:Dn.top,left:Dn.left})}))},drag:function drag(Un,Dn){for(var Qn=Tn(this).data("draggable"),Hn=Qn.options,Gn=Hn.snapTolerance,Vn=Dn.offset.left,zn=Vn+Qn.helperProportions.width,Kn=Dn.offset.top,$n=Kn+Qn.helperProportions.height,Wn=Qn.snapElements.length-1;Wn>=0;Wn--){var Xn=Qn.snapElements[Wn].left,Yn=Xn+Qn.snapElements[Wn].width,Jn=Qn.snapElements[Wn].top,Zn=Jn+Qn.snapElements[Wn].height;if(Xn-Gn<Vn&&Vn<Yn+Gn&&Jn-Gn<Kn&&Kn<Zn+Gn||Xn-Gn<Vn&&Vn<Yn+Gn&&Jn-Gn<$n&&$n<Zn+Gn||Xn-Gn<zn&&zn<Yn+Gn&&Jn-Gn<Kn&&Kn<Zn+Gn||Xn-Gn<zn&&zn<Yn+Gn&&Jn-Gn<$n&&$n<Zn+Gn){if("inner"!=Hn.snapMode){var er=Math.abs(Jn-$n)<=Gn,tr=Math.abs(Zn-Kn)<=Gn,nr=Math.abs(Xn-zn)<=Gn,rr=Math.abs(Yn-Vn)<=Gn;er&&(Dn.position.top=Qn._convertPositionTo("relative",{top:Jn-Qn.helperProportions.height,left:0}).top-Qn.margins.top),tr&&(Dn.position.top=Qn._convertPositionTo("relative",{top:Zn,left:0}).top-Qn.margins.top),nr&&(Dn.position.left=Qn._convertPositionTo("relative",{top:0,left:Xn-Qn.helperProportions.width}).left-Qn.margins.left),rr&&(Dn.position.left=Qn._convertPositionTo("relative",{top:0,left:Yn}).left-Qn.margins.left)}var ir=er||tr||nr||rr;if("outer"!=Hn.snapMode){er=Math.abs(Jn-Kn)<=Gn,tr=Math.abs(Zn-$n)<=Gn,nr=Math.abs(Xn-Vn)<=Gn,rr=Math.abs(Yn-zn)<=Gn;er&&(Dn.position.top=Qn._convertPositionTo("relative",{top:Jn,left:0}).top-Qn.margins.top),tr&&(Dn.position.top=Qn._convertPositionTo("relative",{top:Zn-Qn.helperProportions.height,left:0}).top-Qn.margins.top),nr&&(Dn.position.left=Qn._convertPositionTo("relative",{top:0,left:Xn}).left-Qn.margins.left),rr&&(Dn.position.left=Qn._convertPositionTo("relative",{top:0,left:Yn-Qn.helperProportions.width}).left-Qn.margins.left)}!Qn.snapElements[Wn].snapping&&(er||tr||nr||rr||ir)&&Qn.options.snap.snap&&Qn.options.snap.snap.call(Qn.element,Un,Tn.extend(Qn._uiHash(),{snapItem:Qn.snapElements[Wn].item})),Qn.snapElements[Wn].snapping=er||tr||nr||rr||ir}else Qn.snapElements[Wn].snapping&&Qn.options.snap.release&&Qn.options.snap.release.call(Qn.element,Un,Tn.extend(Qn._uiHash(),{snapItem:Qn.snapElements[Wn].item})),Qn.snapElements[Wn].snapping=!1}}}),Tn.ui.plugin.add("draggable","stack",{start:function start(Un,Dn){var Qn=Tn(this).data("draggable").options,Hn=Tn.makeArray(Tn(Qn.stack)).sort((function(Un,Dn){return(parseInt(Tn(Un).css("zIndex"),10)||0)-(parseInt(Tn(Dn).css("zIndex"),10)||0)}));if(Hn.length){var Gn=parseInt(Hn[0].style.zIndex)||0;Tn(Hn).each((function(Tn){this.style.zIndex=Gn+Tn})),this[0].style.zIndex=Gn+Hn.length}}}),Tn.ui.plugin.add("draggable","zIndex",{start:function start(Un,Dn){var Qn=Tn(Dn.helper),Hn=Tn(this).data("draggable").options;Qn.css("zIndex")&&(Hn._zIndex=Qn.css("zIndex")),Qn.css("zIndex",Hn.zIndex)},stop:function stop(Un,Dn){var Qn=Tn(this).data("draggable").options;Qn._zIndex&&Tn(Dn.helper).css("zIndex",Qn._zIndex)}})}(jQuery),function(Tn,Un){Tn.widget("ui.slider",Tn.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 Un=this,Dn=this.options,Qn=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),Hn=Dn.values&&Dn.values.length||1,Gn=[];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"+(Dn.disabled?" ui-slider-disabled ui-disabled":"")),this.range=Tn([]),Dn.range&&(!0===Dn.range&&(Dn.values||(Dn.values=[this._valueMin(),this._valueMin()]),Dn.values.length&&2!==Dn.values.length&&(Dn.values=[Dn.values[0],Dn.values[0]])),this.range=Tn("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===Dn.range||"max"===Dn.range?" ui-slider-range-"+Dn.range:"")));for(var Vn=Qn.length;Vn<Hn;Vn+=1)Gn.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");this.handles=Qn.add(Tn(Gn.join("")).appendTo(Un.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click((function(Tn){Tn.preventDefault()})).hover((function(){Dn.disabled||Tn(this).addClass("ui-state-hover")}),(function(){Tn(this).removeClass("ui-state-hover")})).focus((function(){Dn.disabled?Tn(this).blur():(Tn(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),Tn(this).addClass("ui-state-focus"))})).blur((function(){Tn(this).removeClass("ui-state-focus")})),this.handles.each((function(Un){Tn(this).data("index.ui-slider-handle",Un)})),this.handles.keydown((function(Dn){var Qn,Hn,Gn,Vn=!0,zn=Tn(this).data("index.ui-slider-handle");if(!Un.options.disabled){switch(Dn.keyCode){case Tn.ui.keyCode.HOME:case Tn.ui.keyCode.END:case Tn.ui.keyCode.PAGE_UP:case Tn.ui.keyCode.PAGE_DOWN:case Tn.ui.keyCode.UP:case Tn.ui.keyCode.RIGHT:case Tn.ui.keyCode.DOWN:case Tn.ui.keyCode.LEFT:if(Vn=!1,!Un._keySliding&&(Un._keySliding=!0,Tn(this).addClass("ui-state-active"),!1===Un._start(Dn,zn)))return}switch(Gn=Un.options.step,Qn=Hn=Un.options.values&&Un.options.values.length?Un.values(zn):Un.value(),Dn.keyCode){case Tn.ui.keyCode.HOME:Hn=Un._valueMin();break;case Tn.ui.keyCode.END:Hn=Un._valueMax();break;case Tn.ui.keyCode.PAGE_UP:Hn=Un._trimAlignValue(Qn+(Un._valueMax()-Un._valueMin())/5);break;case Tn.ui.keyCode.PAGE_DOWN:Hn=Un._trimAlignValue(Qn-(Un._valueMax()-Un._valueMin())/5);break;case Tn.ui.keyCode.UP:case Tn.ui.keyCode.RIGHT:if(Qn===Un._valueMax())return;Hn=Un._trimAlignValue(Qn+Gn);break;case Tn.ui.keyCode.DOWN:case Tn.ui.keyCode.LEFT:if(Qn===Un._valueMin())return;Hn=Un._trimAlignValue(Qn-Gn)}return Un._slide(Dn,zn,Hn),Vn}})).keyup((function(Dn){var Qn=Tn(this).data("index.ui-slider-handle");Un._keySliding&&(Un._keySliding=!1,Un._stop(Dn,Qn),Un._change(Dn,Qn),Tn(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(Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn=this.options;return!Wn.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),Dn={x:Un.pageX,y:Un.pageY},Qn=this._normValueFromMouse(Dn),Hn=this._valueMax()-this._valueMin()+1,Vn=this,this.handles.each((function(Un){var Dn=Math.abs(Qn-Vn.values(Un));Hn>Dn&&(Hn=Dn,Gn=Tn(this),zn=Un)})),!0===Wn.range&&this.values(1)===Wn.min&&(zn+=1,Gn=Tn(this.handles[zn])),!1!==this._start(Un,zn)&&(this._mouseSliding=!0,Vn._handleIndex=zn,Gn.addClass("ui-state-active").focus(),Kn=Gn.offset(),$n=!Tn(Un.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=$n?{left:0,top:0}:{left:Un.pageX-Kn.left-Gn.width()/2,top:Un.pageY-Kn.top-Gn.height()/2-(parseInt(Gn.css("borderTopWidth"),10)||0)-(parseInt(Gn.css("borderBottomWidth"),10)||0)+(parseInt(Gn.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(Un,zn,Qn),this._animateOff=!0,!0))},_mouseStart:function _mouseStart(Tn){return!0},_mouseDrag:function _mouseDrag(Tn){var Un={x:Tn.pageX,y:Tn.pageY},Dn=this._normValueFromMouse(Un);return this._slide(Tn,this._handleIndex,Dn),!1},_mouseStop:function _mouseStop(Tn){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(Tn,this._handleIndex),this._change(Tn,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(Tn){var Un,Dn,Qn,Hn,Gn;return"horizontal"===this.orientation?(Un=this.elementSize.width,Dn=Tn.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(Un=this.elementSize.height,Dn=Tn.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(Qn=Dn/Un)>1&&(Qn=1),Qn<0&&(Qn=0),"vertical"===this.orientation&&(Qn=1-Qn),Hn=this._valueMax()-this._valueMin(),Gn=this._valueMin()+Qn*Hn,this._trimAlignValue(Gn)},_start:function _start(Tn,Un){var Dn={handle:this.handles[Un],value:this.value()};return this.options.values&&this.options.values.length&&(Dn.value=this.values(Un),Dn.values=this.values()),this._trigger("start",Tn,Dn)},_slide:function _slide(Tn,Un,Dn){var Qn,Hn,Gn;this.options.values&&this.options.values.length?(Qn=this.values(Un?0:1),2===this.options.values.length&&!0===this.options.range&&(0===Un&&Dn>Qn||1===Un&&Dn<Qn)&&(Dn=Qn),Dn!==this.values(Un)&&((Hn=this.values())[Un]=Dn,Gn=this._trigger("slide",Tn,{handle:this.handles[Un],value:Dn,values:Hn}),Qn=this.values(Un?0:1),!1!==Gn&&this.values(Un,Dn,!0))):Dn!==this.value()&&(!1!==(Gn=this._trigger("slide",Tn,{handle:this.handles[Un],value:Dn}))&&this.value(Dn))},_stop:function _stop(Tn,Un){var Dn={handle:this.handles[Un],value:this.value()};this.options.values&&this.options.values.length&&(Dn.value=this.values(Un),Dn.values=this.values()),this._trigger("stop",Tn,Dn)},_change:function _change(Tn,Un){if(!this._keySliding&&!this._mouseSliding){var Dn={handle:this.handles[Un],value:this.value()};this.options.values&&this.options.values.length&&(Dn.value=this.values(Un),Dn.values=this.values()),this._trigger("change",Tn,Dn)}},value:function value(Tn){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(Tn),this._refreshValue(),this._change(null,0)},values:function values(Un,Dn){var Qn,Hn,Gn;if(arguments.length>1)this.options.values[Un]=this._trimAlignValue(Dn),this._refreshValue(),this._change(null,Un);else{if(!arguments.length)return this._values();if(!Tn.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(Un):this.value();for(Qn=this.options.values,Hn=arguments[0],Gn=0;Gn<Qn.length;Gn+=1)Qn[Gn]=this._trimAlignValue(Hn[Gn]),this._change(null,Gn);this._refreshValue()}},_setOption:function _setOption(Un,Dn){var Qn,Hn=0;switch(Tn.isArray(this.options.values)&&(Hn=this.options.values.length),Tn.Widget.prototype._setOption.apply(this,arguments),Un){case"disabled":Dn?(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(),Qn=0;Qn<Hn;Qn+=1)this._change(null,Qn);this._animateOff=!1}},_value:function _value(){var Tn=this.options.value;return Tn=this._trimAlignValue(Tn)},_values:function _values(Tn){var Un,Dn,Qn;if(arguments.length)return Un=this.options.values[Tn],Un=this._trimAlignValue(Un);for(Dn=this.options.values.slice(),Qn=0;Qn<Dn.length;Qn+=1)Dn[Qn]=this._trimAlignValue(Dn[Qn]);return Dn},_trimAlignValue:function _trimAlignValue(Tn){if(Tn<=this._valueMin())return this._valueMin();if(Tn>=this._valueMax())return this._valueMax();var Un=this.options.step>0?this.options.step:1,Dn=(Tn-this._valueMin())%Un,Qn=Tn-Dn;return 2*Math.abs(Dn)>=Un&&(Qn+=Dn>0?Un:-Un),parseFloat(Qn.toFixed(5))},_valueMin:function _valueMin(){return this.options.min},_valueMax:function _valueMax(){return this.options.max},_refreshValue:function _refreshValue(){var Un,Dn,Qn,Hn,Gn,Vn=this.options.range,zn=this.options,Kn=this,$n=!this._animateOff&&zn.animate,Wn={};this.options.values&&this.options.values.length?this.handles.each((function(Qn,Hn){Un=(Kn.values(Qn)-Kn._valueMin())/(Kn._valueMax()-Kn._valueMin())*100,Wn["horizontal"===Kn.orientation?"left":"bottom"]=Un+"%",Tn(this).stop(1,1)[$n?"animate":"css"](Wn,zn.animate),!0===Kn.options.range&&("horizontal"===Kn.orientation?(0===Qn&&Kn.range.stop(1,1)[$n?"animate":"css"]({left:Un+"%"},zn.animate),1===Qn&&Kn.range[$n?"animate":"css"]({width:Un-Dn+"%"},{queue:!1,duration:zn.animate})):(0===Qn&&Kn.range.stop(1,1)[$n?"animate":"css"]({bottom:Un+"%"},zn.animate),1===Qn&&Kn.range[$n?"animate":"css"]({height:Un-Dn+"%"},{queue:!1,duration:zn.animate}))),Dn=Un})):(Qn=this.value(),Hn=this._valueMin(),Gn=this._valueMax(),Un=Gn!==Hn?(Qn-Hn)/(Gn-Hn)*100:0,Wn["horizontal"===Kn.orientation?"left":"bottom"]=Un+"%",this.handle.stop(1,1)[$n?"animate":"css"](Wn,zn.animate),"min"===Vn&&"horizontal"===this.orientation&&this.range.stop(1,1)[$n?"animate":"css"]({width:Un+"%"},zn.animate),"max"===Vn&&"horizontal"===this.orientation&&this.range[$n?"animate":"css"]({width:100-Un+"%"},{queue:!1,duration:zn.animate}),"min"===Vn&&"vertical"===this.orientation&&this.range.stop(1,1)[$n?"animate":"css"]({height:Un+"%"},zn.animate),"max"===Vn&&"vertical"===this.orientation&&this.range[$n?"animate":"css"]({height:100-Un+"%"},{queue:!1,duration:zn.animate}))}}),Tn.extend(Tn.ui.slider,{version:"1.8.17"})}(jQuery);var as=document.createElement("template");as.innerHTML='\n <style>\n :host(:hover) :not(.disabled)\n {\n background-color: #ffc;\n }\n div\n {\n height: 24px;\n width: 24px;\n margin: 2px 2px 4px;\n padding: 3px;\n box-shadow: inset 1px 1px 2px white, 1px 1px 1px rgba(0,0,0,0.3);\n background-color: #E8E8E8;\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: #F4E284;\n box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4), 1px 1px 0 white !important;\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 ss=function(Tn){_inherits(ToolButton,_wrapNativeSuper(HTMLElement));var Un=_createSuper(ToolButton);function ToolButton(){var Tn;return _classCallCheck(this,ToolButton),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(as.content.cloneNode(!0)),Tn.$div=Tn._shadowRoot.querySelector("div"),Tn.$img=Tn._shadowRoot.querySelector("img"),Tn}return _createClass(ToolButton,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn)switch(Tn){case"title":var Qn=this.getAttribute("shortcut");this.$div.setAttribute("title","".concat(Dn," ").concat(Qn?"[".concat(Qn,"]"):""));break;case"style":this.$div.style=Dn;break;case"src":this.$img.setAttribute("src",Dn);break;case"pressed":Dn?this.$div.classList.add("pressed"):this.$div.classList.remove("pressed");break;case"size":"small"===Dn?this.$div.classList.add("small"):this.$div.classList.remove("small");break;case"disabled":Dn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=this.getAttribute("shortcut");Un&&document.addEventListener("keydown",(function(Dn){if("BODY"===Dn.target.nodeName){var Qn="".concat(Dn.metaKey?"meta+":"").concat(Dn.ctrlKey?"ctrl+":"").concat(Dn.key.toUpperCase());Un===Qn&&(Tn.click(),Dn.preventDefault())}}))}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(Tn){this.setAttribute("title",Tn)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(Tn){Tn?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(Tn){Tn?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(Tn){this.setAttribute("src",Tn)}},{key:"size",get:function get(){return this.getAttribute("size")},set:function set(Tn){this.setAttribute("size",Tn)}}],[{key:"observedAttributes",get:function get(){return["title","src","pressed","disabled","size","style"]}}]),ToolButton}();customElements.define("se-button",ss);var ls=document.createElement("template");ls.innerHTML='\n <style>\n :host {\n position:relative;\n }\n .overall:hover *\n {\n background-color: #ffc;\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: #F4E284 !important;\n }\n .overall.pressed .menu-button {\n box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4), 1px 1px 0 white !important;\n background-color: #F4E284 !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 box-shadow: inset 1px 1px 2px white, 1px 1px 1px rgba(0,0,0,0.3);\n background-color: #E8E8E8;\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 us=function(Tn){_inherits(FlyingButton,_wrapNativeSuper(HTMLElement));var Un=_createSuper(FlyingButton);function FlyingButton(){var Tn;return _classCallCheck(this,FlyingButton),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(ls.content.cloneNode(!0)),Tn.$button=Tn._shadowRoot.querySelector(".menu-button"),Tn.$handle=Tn._shadowRoot.querySelector(".handle"),Tn.$overall=Tn._shadowRoot.querySelector(".overall"),Tn.$img=Tn._shadowRoot.querySelector("img"),Tn.$menu=Tn._shadowRoot.querySelector(".menu"),Tn.$elements=Tn.$menu.lastElementChild.assignedElements(),Tn}return _createClass(FlyingButton,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn)switch(Tn){case"title":var Qn=this.getAttribute("shortcut");this.$button.setAttribute("title","".concat(Dn," [").concat(Qn,"]"));break;case"pressed":Dn?this.$overall.classList.add("pressed"):this.$overall.classList.remove("pressed");break;case"disabled":Dn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this;this.activeSlot=this.shadowRoot.querySelector("slot").assignedElements()[0],this.$img.setAttribute("src",this.activeSlot.getAttribute("src"));var Un=function onClickHandler(Un){switch(Un.stopPropagation(),Un.target.nodeName){case"SE-FLYINGBUTTON":Tn.pressed?Tn.$menu.classList.toggle("open"):(Tn.activeSlot.click(),Tn.setAttribute("pressed","pressed"));break;case"SE-BUTTON":Tn.$img.setAttribute("src",Un.target.getAttribute("src")),Tn.activeSlot=Un.target,Tn.setAttribute("pressed","pressed"),Tn.$menu.classList.remove("open");break;case"DIV":Tn.$menu.classList.toggle("open");break;default:console.error("unkonw nodeName for:",Un.target,Un.target.className)}};this.addEventListener("click",Un),this.$handle.addEventListener("click",Un)}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(Tn){this.setAttribute("title",Tn)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(Tn){Tn?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(Tn){Tn?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}}],[{key:"observedAttributes",get:function get(){return["title","pressed","disabled"]}}]),FlyingButton}();customElements.define("se-flyingbutton",us);var ds=function fill(Tn){for(var Un=toObject(this),Dn=toLength(Un.length),Qn=arguments.length,Hn=toAbsoluteIndex(Qn>1?arguments[1]:void 0,Dn),Gn=Qn>2?arguments[2]:void 0,Vn=void 0===Gn?Dn:toAbsoluteIndex(Gn,Dn);Vn>Hn;)Un[Hn++]=Tn;return Un};_export({target:"Array",proto:!0},{fill:ds}),addToUnscopables("fill");var hs=di.forEach,ps=arrayMethodIsStrict("forEach"),gs=arrayMethodUsesToLength("forEach"),fs=ps&&gs?[].forEach:function forEach(Tn){return hs(this,Tn,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=fs},{forEach:fs});var As=Vn.f,createMethod$4=function(Tn){return function(Un){for(var Dn,Hn=toIndexedObject(Un),Gn=vi(Hn),Vn=Gn.length,zn=0,Kn=[];Vn>zn;)Dn=Gn[zn++],Qn&&!As.call(Hn,Dn)||Kn.push(Tn?[Dn,Hn[Dn]]:Hn[Dn]);return Kn}},ms={entries:createMethod$4(!0),values:createMethod$4(!1)},vs=ms.entries;_export({target:"Object",stat:!0},{entries:function entries(Tn){return vs(Tn)}});var ys=Dn.Promise,redefineAll=function(Tn,Un,Dn){for(var Qn in Un)kr(Tn,Qn,Un[Qn],Dn);return Tn},anInstance=function(Tn,Un,Dn){if(!(Tn instanceof Un))throw TypeError("Incorrect "+(Dn?Dn+" ":"")+"invocation");return Tn},_s=wellKnownSymbol("iterator"),bs=Array.prototype,isArrayIteratorMethod=function(Tn){return void 0!==Tn&&(Ba.Array===Tn||bs[_s]===Tn)},ws=wellKnownSymbol("iterator"),getIteratorMethod=function(Tn){if(null!=Tn)return Tn[ws]||Tn["@@iterator"]||Ba[fo(Tn)]},iteratorClose=function(Tn){var Un=Tn.return;if(void 0!==Un)return anObject(Un.call(Tn)).value},Result=function(Tn,Un){this.stopped=Tn,this.result=Un},iterate=function(Tn,Un,Dn){var Qn,Hn,Gn,Vn,zn,Kn,$n,Wn=Dn&&Dn.that,Xn=!(!Dn||!Dn.AS_ENTRIES),Yn=!(!Dn||!Dn.IS_ITERATOR),Jn=!(!Dn||!Dn.INTERRUPTED),Zn=functionBindContext(Un,Wn,1+Xn+Jn),stop=function(Tn){return Qn&&iteratorClose(Qn),new Result(!0,Tn)},callFn=function(Tn){return Xn?(anObject(Tn),Jn?Zn(Tn[0],Tn[1],stop):Zn(Tn[0],Tn[1])):Jn?Zn(Tn,stop):Zn(Tn)};if(Yn)Qn=Tn;else{if("function"!=typeof(Hn=getIteratorMethod(Tn)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(Hn)){for(Gn=0,Vn=toLength(Tn.length);Vn>Gn;Gn++)if((zn=callFn(Tn[Gn]))&&zn instanceof Result)return zn;return new Result(!1)}Qn=Hn.call(Tn)}for(Kn=Qn.next;!($n=Kn.call(Qn)).done;){try{zn=callFn($n.value)}catch(Tn){throw iteratorClose(Qn),Tn}if("object"==typeof zn&&zn&&zn instanceof Result)return zn}return new Result(!1)},xs=wellKnownSymbol("iterator"),Ss=!1;try{var Cs=0,ks={next:function(){return{done:!!Cs++}},return:function(){Ss=!0}};ks[xs]=function(){return this},Array.from(ks,(function(){throw 2}))}catch(Tn){}var Bs,Es,Ps,checkCorrectnessOfIteration=function(Tn,Un){if(!Un&&!Ss)return!1;var Dn=!1;try{var Qn={};Qn[xs]=function(){return{next:function(){return{done:Dn=!0}}}},Tn(Qn)}catch(Tn){}return Dn},Ls=/(iphone|ipod|ipad).*applewebkit/i.test(ei),Ts="process"==classofRaw(Dn.process),Ns=Dn.location,Is=Dn.setImmediate,Os=Dn.clearImmediate,Fs=Dn.process,Us=Dn.MessageChannel,Ms=Dn.Dispatch,Rs=0,Ds={},run=function(Tn){if(Ds.hasOwnProperty(Tn)){var Un=Ds[Tn];delete Ds[Tn],Un()}},runner=function(Tn){return function(){run(Tn)}},listener=function(Tn){run(Tn.data)},post=function(Tn){Dn.postMessage(Tn+"",Ns.protocol+"//"+Ns.host)};Is&&Os||(Is=function setImmediate(Tn){for(var Un=[],Dn=1;arguments.length>Dn;)Un.push(arguments[Dn++]);return Ds[++Rs]=function(){("function"==typeof Tn?Tn:Function(Tn)).apply(void 0,Un)},Bs(Rs),Rs},Os=function clearImmediate(Tn){delete Ds[Tn]},Ts?Bs=function(Tn){Fs.nextTick(runner(Tn))}:Ms&&Ms.now?Bs=function(Tn){Ms.now(runner(Tn))}:Us&&!Ls?(Ps=(Es=new Us).port2,Es.port1.onmessage=listener,Bs=functionBindContext(Ps.postMessage,Ps,1)):Dn.addEventListener&&"function"==typeof postMessage&&!Dn.importScripts&&Ns&&"file:"!==Ns.protocol&&!fails(post)?(Bs=post,Dn.addEventListener("message",listener,!1)):Bs="onreadystatechange"in documentCreateElement("script")?function(Tn){_i.appendChild(documentCreateElement("script")).onreadystatechange=function(){_i.removeChild(this),run(Tn)}}:function(Tn){setTimeout(runner(Tn),0)});var js,Qs,Hs,Gs,Vs,zs,Ks,qs,$s={set:Is,clear:Os},Ws=er.f,Xs=$s.set,Ys=Dn.MutationObserver||Dn.WebKitMutationObserver,Js=Dn.document,Zs=Dn.process,el=Dn.Promise,tl=Ws(Dn,"queueMicrotask"),nl=tl&&tl.value;nl||(js=function(){var Tn,Un;for(Ts&&(Tn=Zs.domain)&&Tn.exit();Qs;){Un=Qs.fn,Qs=Qs.next;try{Un()}catch(Tn){throw Qs?Gs():Hs=void 0,Tn}}Hs=void 0,Tn&&Tn.enter()},!Ls&&!Ts&&Ys&&Js?(Vs=!0,zs=Js.createTextNode(""),new Ys(js).observe(zs,{characterData:!0}),Gs=function(){zs.data=Vs=!Vs}):el&&el.resolve?(Ks=el.resolve(void 0),qs=Ks.then,Gs=function(){qs.call(Ks,js)}):Gs=Ts?function(){Zs.nextTick(js)}:function(){Xs.call(Dn,js)});var rl,il,ol,al,sl=nl||function(Tn){var Un={fn:Tn,next:void 0};Hs&&(Hs.next=Un),Qs||(Qs=Un,Gs()),Hs=Un},PromiseCapability=function(Tn){var Un,Dn;this.promise=new Tn((function(Tn,Qn){if(void 0!==Un||void 0!==Dn)throw TypeError("Bad Promise constructor");Un=Tn,Dn=Qn})),this.resolve=aFunction$1(Un),this.reject=aFunction$1(Dn)},ll={f:function(Tn){return new PromiseCapability(Tn)}},promiseResolve=function(Tn,Un){if(anObject(Tn),isObject(Un)&&Un.constructor===Tn)return Un;var Dn=ll.f(Tn);return(0,Dn.resolve)(Un),Dn.promise},perform=function(Tn){try{return{error:!1,value:Tn()}}catch(Tn){return{error:!0,value:Tn}}},cl=$s.set,ul=wellKnownSymbol("species"),dl="Promise",hl=Cr.get,pl=Cr.set,gl=Cr.getterFor(dl),fl=ys,Al=Dn.TypeError,ml=Dn.document,vl=Dn.process,yl=getBuiltIn("fetch"),_l=ll.f,wl=_l,xl=!!(ml&&ml.createEvent&&Dn.dispatchEvent),Sl="function"==typeof PromiseRejectionEvent,Cl=zr(dl,(function(){if(!(cr(fl)!==String(fl))){if(66===ii)return!0;if(!Ts&&!Sl)return!0}if(ii>=51&&/native code/.test(fl))return!1;var Tn=fl.resolve(1),FakePromise=function(Tn){Tn((function(){}),(function(){}))};return(Tn.constructor={})[ul]=FakePromise,!(Tn.then((function(){}))instanceof FakePromise)})),kl=Cl||!checkCorrectnessOfIteration((function(Tn){fl.all(Tn).catch((function(){}))})),isThenable=function(Tn){var Un;return!(!isObject(Tn)||"function"!=typeof(Un=Tn.then))&&Un},notify$1=function(Tn,Un){if(!Tn.notified){Tn.notified=!0;var Dn=Tn.reactions;sl((function(){for(var Qn=Tn.value,Hn=1==Tn.state,Gn=0;Dn.length>Gn;){var Vn,zn,Kn,$n=Dn[Gn++],Wn=Hn?$n.ok:$n.fail,Xn=$n.resolve,Yn=$n.reject,Jn=$n.domain;try{Wn?(Hn||(2===Tn.rejection&&onHandleUnhandled(Tn),Tn.rejection=1),!0===Wn?Vn=Qn:(Jn&&Jn.enter(),Vn=Wn(Qn),Jn&&(Jn.exit(),Kn=!0)),Vn===$n.promise?Yn(Al("Promise-chain cycle")):(zn=isThenable(Vn))?zn.call(Vn,Xn,Yn):Xn(Vn)):Yn(Qn)}catch(Tn){Jn&&!Kn&&Jn.exit(),Yn(Tn)}}Tn.reactions=[],Tn.notified=!1,Un&&!Tn.rejection&&onUnhandled(Tn)}))}},dispatchEvent=function(Tn,Un,Qn){var Hn,Gn;xl?((Hn=ml.createEvent("Event")).promise=Un,Hn.reason=Qn,Hn.initEvent(Tn,!1,!0),Dn.dispatchEvent(Hn)):Hn={promise:Un,reason:Qn},!Sl&&(Gn=Dn["on"+Tn])?Gn(Hn):"unhandledrejection"===Tn&&function(Tn,Un){var Qn=Dn.console;Qn&&Qn.error&&(1===arguments.length?Qn.error(Tn):Qn.error(Tn,Un))}("Unhandled promise rejection",Qn)},onUnhandled=function(Tn){cl.call(Dn,(function(){var Un,Dn=Tn.facade,Qn=Tn.value;if(isUnhandled(Tn)&&(Un=perform((function(){Ts?vl.emit("unhandledRejection",Qn,Dn):dispatchEvent("unhandledrejection",Dn,Qn)})),Tn.rejection=Ts||isUnhandled(Tn)?2:1,Un.error))throw Un.value}))},isUnhandled=function(Tn){return 1!==Tn.rejection&&!Tn.parent},onHandleUnhandled=function(Tn){cl.call(Dn,(function(){var Un=Tn.facade;Ts?vl.emit("rejectionHandled",Un):dispatchEvent("rejectionhandled",Un,Tn.value)}))},bind=function(Tn,Un,Dn){return function(Qn){Tn(Un,Qn,Dn)}},internalReject=function(Tn,Un,Dn){Tn.done||(Tn.done=!0,Dn&&(Tn=Dn),Tn.value=Un,Tn.state=2,notify$1(Tn,!0))},internalResolve=function(Tn,Un,Dn){if(!Tn.done){Tn.done=!0,Dn&&(Tn=Dn);try{if(Tn.facade===Un)throw Al("Promise can't be resolved itself");var Qn=isThenable(Un);Qn?sl((function(){var Dn={done:!1};try{Qn.call(Un,bind(internalResolve,Dn,Tn),bind(internalReject,Dn,Tn))}catch(Un){internalReject(Dn,Un,Tn)}})):(Tn.value=Un,Tn.state=1,notify$1(Tn,!1))}catch(Un){internalReject({done:!1},Un,Tn)}}};for(var Bl in Cl&&(fl=function Promise(Tn){anInstance(this,fl,dl),aFunction$1(Tn),rl.call(this);var Un=hl(this);try{Tn(bind(internalResolve,Un),bind(internalReject,Un))}catch(Tn){internalReject(Un,Tn)}},(rl=function Promise(Tn){pl(this,{type:dl,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(fl.prototype,{then:function then(Tn,Un){var Dn=gl(this),Qn=_l(speciesConstructor(this,fl));return Qn.ok="function"!=typeof Tn||Tn,Qn.fail="function"==typeof Un&&Un,Qn.domain=Ts?vl.domain:void 0,Dn.parent=!0,Dn.reactions.push(Qn),0!=Dn.state&¬ify$1(Dn,!1),Qn.promise},catch:function(Tn){return this.then(void 0,Tn)}}),il=function(){var Tn=new rl,Un=hl(Tn);this.promise=Tn,this.resolve=bind(internalResolve,Un),this.reject=bind(internalReject,Un)},ll.f=_l=function(Tn){return Tn===fl||Tn===ol?new il(Tn):wl(Tn)},"function"==typeof ys&&(al=ys.prototype.then,kr(ys.prototype,"then",(function then(Tn,Un){var Dn=this;return new fl((function(Tn,Un){al.call(Dn,Tn,Un)})).then(Tn,Un)}),{unsafe:!0}),"function"==typeof yl&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(Tn){return promiseResolve(fl,yl.apply(Dn,arguments))}}))),_export({global:!0,wrap:!0,forced:Cl},{Promise:fl}),setToStringTag(fl,dl,!1),setSpecies(dl),ol=getBuiltIn(dl),_export({target:dl,stat:!0,forced:Cl},{reject:function reject(Tn){var Un=_l(this);return Un.reject.call(void 0,Tn),Un.promise}}),_export({target:dl,stat:!0,forced:Cl},{resolve:function resolve(Tn){return promiseResolve(this,Tn)}}),_export({target:dl,stat:!0,forced:kl},{all:function all(Tn){var Un=this,Dn=_l(Un),Qn=Dn.resolve,Hn=Dn.reject,Gn=perform((function(){var Dn=aFunction$1(Un.resolve),Gn=[],Vn=0,zn=1;iterate(Tn,(function(Tn){var Kn=Vn++,$n=!1;Gn.push(void 0),zn++,Dn.call(Un,Tn).then((function(Tn){$n||($n=!0,Gn[Kn]=Tn,--zn||Qn(Gn))}),Hn)})),--zn||Qn(Gn)}));return Gn.error&&Hn(Gn.value),Dn.promise},race:function race(Tn){var Un=this,Dn=_l(Un),Qn=Dn.reject,Hn=perform((function(){var Hn=aFunction$1(Un.resolve);iterate(Tn,(function(Tn){Hn.call(Un,Tn).then(Dn.resolve,Qn)}))}));return Hn.error&&Qn(Hn.value),Dn.promise}}),Ya){var El=Dn[Bl],Pl=El&&El.prototype;if(Pl&&Pl.forEach!==fs)try{rr(Pl,"forEach",fs)}catch(Tn){Pl.forEach=fs}}var Ll=Mr.f,Tl={}.toString,Nl="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Il={f:function getOwnPropertyNames(Tn){return Nl&&"[object Window]"==Tl.call(Tn)?function(Tn){try{return Ll(Tn)}catch(Tn){return Nl.slice()}}(Tn):Ll(toIndexedObject(Tn))}},Ol={f:wellKnownSymbol},Fl=nr.f,defineWellKnownSymbol=function(Tn){var Un=Br.Symbol||(Br.Symbol={});has(Un,Tn)||Fl(Un,Tn,{value:Ol.f(Tn)})},Ul=di.forEach,Ml=sharedKey("hidden"),Rl=wellKnownSymbol("toPrimitive"),Dl=Cr.set,jl=Cr.getterFor("Symbol"),Ql=Object.prototype,Hl=Dn.Symbol,Gl=getBuiltIn("JSON","stringify"),Vl=er.f,zl=nr.f,Kl=Il.f,ql=Vn.f,$l=hr("symbols"),Wl=hr("op-symbols"),Xl=hr("string-to-symbol-registry"),Yl=hr("symbol-to-string-registry"),Jl=hr("wks"),Zl=Dn.QObject,ec=!Zl||!Zl.prototype||!Zl.prototype.findChild,tc=Qn&&fails((function(){return 7!=xi(zl({},"a",{get:function(){return zl(this,"a",{value:7}).a}})).a}))?function(Tn,Un,Dn){var Qn=Vl(Ql,Un);Qn&&delete Ql[Un],zl(Tn,Un,Dn),Qn&&Tn!==Ql&&zl(Ql,Un,Qn)}:zl,wrap=function(Tn,Un){var Dn=$l[Tn]=xi(Hl.prototype);return Dl(Dn,{type:"Symbol",tag:Tn,description:Un}),Qn||(Dn.description=Un),Dn},nc=Wr?function(Tn){return"symbol"==typeof Tn}:function(Tn){return Object(Tn)instanceof Hl},rc=function defineProperty(Tn,Un,Dn){Tn===Ql&&rc(Wl,Un,Dn),anObject(Tn);var Qn=toPrimitive(Un,!0);return anObject(Dn),has($l,Qn)?(Dn.enumerable?(has(Tn,Ml)&&Tn[Ml][Qn]&&(Tn[Ml][Qn]=!1),Dn=xi(Dn,{enumerable:createPropertyDescriptor(0,!1)})):(has(Tn,Ml)||zl(Tn,Ml,createPropertyDescriptor(1,{})),Tn[Ml][Qn]=!0),tc(Tn,Qn,Dn)):zl(Tn,Qn,Dn)},ic=function defineProperties(Tn,Un){anObject(Tn);var Dn=toIndexedObject(Un),Hn=vi(Dn).concat(lc(Dn));return Ul(Hn,(function(Un){Qn&&!oc.call(Dn,Un)||rc(Tn,Un,Dn[Un])})),Tn},oc=function propertyIsEnumerable(Tn){var Un=toPrimitive(Tn,!0),Dn=ql.call(this,Un);return!(this===Ql&&has($l,Un)&&!has(Wl,Un))&&(!(Dn||!has(this,Un)||!has($l,Un)||has(this,Ml)&&this[Ml][Un])||Dn)},ac=function getOwnPropertyDescriptor(Tn,Un){var Dn=toIndexedObject(Tn),Qn=toPrimitive(Un,!0);if(Dn!==Ql||!has($l,Qn)||has(Wl,Qn)){var Hn=Vl(Dn,Qn);return!Hn||!has($l,Qn)||has(Dn,Ml)&&Dn[Ml][Qn]||(Hn.enumerable=!0),Hn}},sc=function getOwnPropertyNames(Tn){var Un=Kl(toIndexedObject(Tn)),Dn=[];return Ul(Un,(function(Tn){has($l,Tn)||has(Ar,Tn)||Dn.push(Tn)})),Dn},lc=function getOwnPropertySymbols(Tn){var Un=Tn===Ql,Dn=Kl(Un?Wl:toIndexedObject(Tn)),Qn=[];return Ul(Dn,(function(Tn){!has($l,Tn)||Un&&!has(Ql,Tn)||Qn.push($l[Tn])})),Qn};if($r||(kr((Hl=function Symbol(){if(this instanceof Hl)throw TypeError("Symbol is not a constructor");var Tn=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,Un=uid(Tn),setter=function(Tn){this===Ql&&setter.call(Wl,Tn),has(this,Ml)&&has(this[Ml],Un)&&(this[Ml][Un]=!1),tc(this,Un,createPropertyDescriptor(1,Tn))};return Qn&&ec&&tc(Ql,Un,{configurable:!0,set:setter}),wrap(Un,Tn)}).prototype,"toString",(function toString(){return jl(this).tag})),kr(Hl,"withoutSetter",(function(Tn){return wrap(uid(Tn),Tn)})),Vn.f=oc,nr.f=rc,er.f=ac,Mr.f=Il.f=sc,Rr.f=lc,Ol.f=function(Tn){return wrap(wellKnownSymbol(Tn),Tn)},Qn&&(zl(Hl.prototype,"description",{configurable:!0,get:function description(){return jl(this).description}}),kr(Ql,"propertyIsEnumerable",oc,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!$r,sham:!$r},{Symbol:Hl}),Ul(vi(Jl),(function(Tn){defineWellKnownSymbol(Tn)})),_export({target:"Symbol",stat:!0,forced:!$r},{for:function(Tn){var Un=String(Tn);if(has(Xl,Un))return Xl[Un];var Dn=Hl(Un);return Xl[Un]=Dn,Yl[Dn]=Un,Dn},keyFor:function keyFor(Tn){if(!nc(Tn))throw TypeError(Tn+" is not a symbol");if(has(Yl,Tn))return Yl[Tn]},useSetter:function(){ec=!0},useSimple:function(){ec=!1}}),_export({target:"Object",stat:!0,forced:!$r,sham:!Qn},{create:function create(Tn,Un){return void 0===Un?xi(Tn):ic(xi(Tn),Un)},defineProperty:rc,defineProperties:ic,getOwnPropertyDescriptor:ac}),_export({target:"Object",stat:!0,forced:!$r},{getOwnPropertyNames:sc,getOwnPropertySymbols:lc}),_export({target:"Object",stat:!0,forced:fails((function(){Rr.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(Tn){return Rr.f(toObject(Tn))}}),Gl){var uc=!$r||fails((function(){var Tn=Hl();return"[null]"!=Gl([Tn])||"{}"!=Gl({a:Tn})||"{}"!=Gl(Object(Tn))}));_export({target:"JSON",stat:!0,forced:uc},{stringify:function stringify(Tn,Un,Dn){for(var Qn,Hn=[Tn],Gn=1;arguments.length>Gn;)Hn.push(arguments[Gn++]);if(Qn=Un,(isObject(Un)||void 0!==Tn)&&!nc(Tn))return qr(Un)||(Un=function(Tn,Un){if("function"==typeof Qn&&(Un=Qn.call(this,Tn,Un)),!nc(Un))return Un}),Hn[1]=Un,Gl.apply(null,Hn)}})}Hl.prototype[Rl]||rr(Hl.prototype,Rl,Hl.prototype.valueOf),setToStringTag(Hl,"Symbol"),Ar[Ml]=!0;var dc=nr.f,hc=Dn.Symbol;if(Qn&&"function"==typeof hc&&(!("description"in hc.prototype)||void 0!==hc().description)){var pc={},gc=function Symbol(){var Tn=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),Un=this instanceof gc?new hc(Tn):void 0===Tn?hc():hc(Tn);return""===Tn&&(pc[Un]=!0),Un};copyConstructorProperties(gc,hc);var fc=gc.prototype=hc.prototype;fc.constructor=gc;var Ac=fc.toString,mc="Symbol(test)"==String(hc("test")),vc=/^Symbol\((.*)\)[^)]+$/;dc(fc,"description",{configurable:!0,get:function description(){var Tn=isObject(this)?this.valueOf():this,Un=Ac.call(Tn);if(has(pc,Tn))return"";var Dn=mc?Un.slice(7,-1):Un.replace(vc,"$1");return""===Dn?void 0:Dn}}),_export({global:!0,forced:!0},{Symbol:gc})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag"),setToStringTag(Dn.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!Qn},{create:xi}),_export({target:"Object",stat:!0,forced:!Qn,sham:!Qn},{defineProperty:nr.f});var yc=fails((function(){Ta(1)}));_export({target:"Object",stat:!0,forced:yc,sham:!Ea},{getPrototypeOf:function getPrototypeOf(Tn){return Ta(toObject(Tn))}}),_export({target:"Object",stat:!0},{setPrototypeOf:Lo});var _c=da.charAt,bc=Cr.set,wc=Cr.getterFor("String Iterator");defineIterator(String,"String",(function(Tn){bc(this,{type:"String Iterator",string:String(Tn),index:0})}),(function next(){var Tn,Un=wc(this),Dn=Un.string,Qn=Un.index;return Qn>=Dn.length?{value:void 0,done:!0}:(Tn=_c(Dn,Qn),Un.index+=Tn.length,{value:Tn,done:!1})}));var xc=createCommonjsModule((function(Tn){var Un=function(Tn){var Un,Dn=Object.prototype,Qn=Dn.hasOwnProperty,Hn="function"==typeof Symbol?Symbol:{},Gn=Hn.iterator||"@@iterator",Vn=Hn.asyncIterator||"@@asyncIterator",zn=Hn.toStringTag||"@@toStringTag";function define(Tn,Un,Dn){return Object.defineProperty(Tn,Un,{value:Dn,enumerable:!0,configurable:!0,writable:!0}),Tn[Un]}try{define({},"")}catch(Tn){define=function define(Tn,Un,Dn){return Tn[Un]=Dn}}function wrap(Tn,Un,Dn,Qn){var Hn=Un&&Un.prototype instanceof Generator?Un:Generator,Gn=Object.create(Hn.prototype),Vn=new Context(Qn||[]);return Gn._invoke=function makeInvokeMethod(Tn,Un,Dn){var Qn=Kn;return function invoke(Hn,Gn){if(Qn===Wn)throw new Error("Generator is already running");if(Qn===Xn){if("throw"===Hn)throw Gn;return doneResult()}for(Dn.method=Hn,Dn.arg=Gn;;){var Vn=Dn.delegate;if(Vn){var zn=maybeInvokeDelegate(Vn,Dn);if(zn){if(zn===Yn)continue;return zn}}if("next"===Dn.method)Dn.sent=Dn._sent=Dn.arg;else if("throw"===Dn.method){if(Qn===Kn)throw Qn=Xn,Dn.arg;Dn.dispatchException(Dn.arg)}else"return"===Dn.method&&Dn.abrupt("return",Dn.arg);Qn=Wn;var Jn=tryCatch(Tn,Un,Dn);if("normal"===Jn.type){if(Qn=Dn.done?Xn:$n,Jn.arg===Yn)continue;return{value:Jn.arg,done:Dn.done}}"throw"===Jn.type&&(Qn=Xn,Dn.method="throw",Dn.arg=Jn.arg)}}}(Tn,Dn,Vn),Gn}function tryCatch(Tn,Un,Dn){try{return{type:"normal",arg:Tn.call(Un,Dn)}}catch(Tn){return{type:"throw",arg:Tn}}}Tn.wrap=wrap;var Kn="suspendedStart",$n="suspendedYield",Wn="executing",Xn="completed",Yn={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var Jn={};Jn[Gn]=function(){return this};var Zn=Object.getPrototypeOf,er=Zn&&Zn(Zn(values([])));er&&er!==Dn&&Qn.call(er,Gn)&&(Jn=er);var tr=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(Jn);function defineIteratorMethods(Tn){["next","throw","return"].forEach((function(Un){define(Tn,Un,(function(Tn){return this._invoke(Un,Tn)}))}))}function AsyncIterator(Tn,Un){var Dn;this._invoke=function enqueue(Hn,Gn){function callInvokeWithMethodAndArg(){return new Un((function(Dn,Vn){!function invoke(Dn,Hn,Gn,Vn){var zn=tryCatch(Tn[Dn],Tn,Hn);if("throw"!==zn.type){var Kn=zn.arg,$n=Kn.value;return $n&&"object"===_typeof($n)&&Qn.call($n,"__await")?Un.resolve($n.__await).then((function(Tn){invoke("next",Tn,Gn,Vn)}),(function(Tn){invoke("throw",Tn,Gn,Vn)})):Un.resolve($n).then((function(Tn){Kn.value=Tn,Gn(Kn)}),(function(Tn){return invoke("throw",Tn,Gn,Vn)}))}Vn(zn.arg)}(Hn,Gn,Dn,Vn)}))}return Dn=Dn?Dn.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(Tn,Dn){var Qn=Tn.iterator[Dn.method];if(Qn===Un){if(Dn.delegate=null,"throw"===Dn.method){if(Tn.iterator.return&&(Dn.method="return",Dn.arg=Un,maybeInvokeDelegate(Tn,Dn),"throw"===Dn.method))return Yn;Dn.method="throw",Dn.arg=new TypeError("The iterator does not provide a 'throw' method")}return Yn}var Hn=tryCatch(Qn,Tn.iterator,Dn.arg);if("throw"===Hn.type)return Dn.method="throw",Dn.arg=Hn.arg,Dn.delegate=null,Yn;var Gn=Hn.arg;return Gn?Gn.done?(Dn[Tn.resultName]=Gn.value,Dn.next=Tn.nextLoc,"return"!==Dn.method&&(Dn.method="next",Dn.arg=Un),Dn.delegate=null,Yn):Gn:(Dn.method="throw",Dn.arg=new TypeError("iterator result is not an object"),Dn.delegate=null,Yn)}function pushTryEntry(Tn){var Un={tryLoc:Tn[0]};1 in Tn&&(Un.catchLoc=Tn[1]),2 in Tn&&(Un.finallyLoc=Tn[2],Un.afterLoc=Tn[3]),this.tryEntries.push(Un)}function resetTryEntry(Tn){var Un=Tn.completion||{};Un.type="normal",delete Un.arg,Tn.completion=Un}function Context(Tn){this.tryEntries=[{tryLoc:"root"}],Tn.forEach(pushTryEntry,this),this.reset(!0)}function values(Tn){if(Tn){var Dn=Tn[Gn];if(Dn)return Dn.call(Tn);if("function"==typeof Tn.next)return Tn;if(!isNaN(Tn.length)){var Hn=-1,Vn=function next(){for(;++Hn<Tn.length;)if(Qn.call(Tn,Hn))return next.value=Tn[Hn],next.done=!1,next;return next.value=Un,next.done=!0,next};return Vn.next=Vn}}return{next:doneResult}}function doneResult(){return{value:Un,done:!0}}return GeneratorFunction.prototype=tr.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,zn,"GeneratorFunction"),Tn.isGeneratorFunction=function(Tn){var Un="function"==typeof Tn&&Tn.constructor;return!!Un&&(Un===GeneratorFunction||"GeneratorFunction"===(Un.displayName||Un.name))},Tn.mark=function(Tn){return Object.setPrototypeOf?Object.setPrototypeOf(Tn,GeneratorFunctionPrototype):(Tn.__proto__=GeneratorFunctionPrototype,define(Tn,zn,"GeneratorFunction")),Tn.prototype=Object.create(tr),Tn},Tn.awrap=function(Tn){return{__await:Tn}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[Vn]=function(){return this},Tn.AsyncIterator=AsyncIterator,Tn.async=function(Un,Dn,Qn,Hn,Gn){void 0===Gn&&(Gn=Promise);var Vn=new AsyncIterator(wrap(Un,Dn,Qn,Hn),Gn);return Tn.isGeneratorFunction(Dn)?Vn:Vn.next().then((function(Tn){return Tn.done?Tn.value:Vn.next()}))},defineIteratorMethods(tr),define(tr,zn,"Generator"),tr[Gn]=function(){return this},tr.toString=function(){return"[object Generator]"},Tn.keys=function(Tn){var Un=[];for(var Dn in Tn)Un.push(Dn);return Un.reverse(),function next(){for(;Un.length;){var Dn=Un.pop();if(Dn in Tn)return next.value=Dn,next.done=!1,next}return next.done=!0,next}},Tn.values=values,Context.prototype={constructor:Context,reset:function reset(Tn){if(this.prev=0,this.next=0,this.sent=this._sent=Un,this.done=!1,this.delegate=null,this.method="next",this.arg=Un,this.tryEntries.forEach(resetTryEntry),!Tn)for(var Dn in this)"t"===Dn.charAt(0)&&Qn.call(this,Dn)&&!isNaN(+Dn.slice(1))&&(this[Dn]=Un)},stop:function stop(){this.done=!0;var Tn=this.tryEntries[0].completion;if("throw"===Tn.type)throw Tn.arg;return this.rval},dispatchException:function dispatchException(Tn){if(this.done)throw Tn;var Dn=this;function handle(Qn,Hn){return Vn.type="throw",Vn.arg=Tn,Dn.next=Qn,Hn&&(Dn.method="next",Dn.arg=Un),!!Hn}for(var Hn=this.tryEntries.length-1;Hn>=0;--Hn){var Gn=this.tryEntries[Hn],Vn=Gn.completion;if("root"===Gn.tryLoc)return handle("end");if(Gn.tryLoc<=this.prev){var zn=Qn.call(Gn,"catchLoc"),Kn=Qn.call(Gn,"finallyLoc");if(zn&&Kn){if(this.prev<Gn.catchLoc)return handle(Gn.catchLoc,!0);if(this.prev<Gn.finallyLoc)return handle(Gn.finallyLoc)}else if(zn){if(this.prev<Gn.catchLoc)return handle(Gn.catchLoc,!0)}else{if(!Kn)throw new Error("try statement without catch or finally");if(this.prev<Gn.finallyLoc)return handle(Gn.finallyLoc)}}}},abrupt:function abrupt(Tn,Un){for(var Dn=this.tryEntries.length-1;Dn>=0;--Dn){var Hn=this.tryEntries[Dn];if(Hn.tryLoc<=this.prev&&Qn.call(Hn,"finallyLoc")&&this.prev<Hn.finallyLoc){var Gn=Hn;break}}Gn&&("break"===Tn||"continue"===Tn)&&Gn.tryLoc<=Un&&Un<=Gn.finallyLoc&&(Gn=null);var Vn=Gn?Gn.completion:{};return Vn.type=Tn,Vn.arg=Un,Gn?(this.method="next",this.next=Gn.finallyLoc,Yn):this.complete(Vn)},complete:function complete(Tn,Un){if("throw"===Tn.type)throw Tn.arg;return"break"===Tn.type||"continue"===Tn.type?this.next=Tn.arg:"return"===Tn.type?(this.rval=this.arg=Tn.arg,this.method="return",this.next="end"):"normal"===Tn.type&&Un&&(this.next=Un),Yn},finish:function finish(Tn){for(var Un=this.tryEntries.length-1;Un>=0;--Un){var Dn=this.tryEntries[Un];if(Dn.finallyLoc===Tn)return this.complete(Dn.completion,Dn.afterLoc),resetTryEntry(Dn),Yn}},catch:function _catch(Tn){for(var Un=this.tryEntries.length-1;Un>=0;--Un){var Dn=this.tryEntries[Un];if(Dn.tryLoc===Tn){var Qn=Dn.completion;if("throw"===Qn.type){var Hn=Qn.arg;resetTryEntry(Dn)}return Hn}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(Tn,Dn,Qn){return this.delegate={iterator:values(Tn),resultName:Dn,nextLoc:Qn},"next"===this.method&&(this.arg=Un),Yn}},Tn}(Tn.exports);try{regeneratorRuntime=Un}catch(Tn){Function("r","regeneratorRuntime = r")(Un)}})),Sc=document.createElement("template");Sc.innerHTML='\n <style>\n :host {\n position:relative;\n }\n .menu-button:hover, se-button:hover, .menu-item:hover \n {\n background-color: #ffc;\n }\n img {\n border: none;\n width: 24px;\n height: 24px;\n }\n .overall.pressed .button-icon,\n .overall.pressed .handle,\n .menu-item.pressed {\n background-color: #F4E284 !important;\n }\n .overall.pressed .menu-button {\n box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4), 1px 1px 0 white !important;\n background-color: #F4E284 !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 box-shadow: inset 1px 1px 2px white, 1px 1px 1px rgba(0,0,0,0.3);\n background-color: #E8E8E8;\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 Cc=function(Tn){_inherits(ExplorerButton,_wrapNativeSuper(HTMLElement));var Un,Dn,Qn=_createSuper(ExplorerButton);function ExplorerButton(){var Tn;return _classCallCheck(this,ExplorerButton),(Tn=Qn.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(Sc.content.cloneNode(!0)),Tn.$button=Tn._shadowRoot.querySelector(".menu-button"),Tn.$overall=Tn._shadowRoot.querySelector(".overall"),Tn.$img=Tn._shadowRoot.querySelector(".menu-button img"),Tn.$menu=Tn._shadowRoot.querySelector(".menu"),Tn.$handle=Tn._shadowRoot.querySelector(".handle"),Tn.$lib=Tn._shadowRoot.querySelector(".image-lib"),Tn.files=[],Tn.request=new XMLHttpRequest,Tn}return _createClass(ExplorerButton,[{key:"attributeChangedCallback",value:(Dn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn,Un,Dn){var Qn,Hn,Gn,Vn;return regeneratorRuntime.wrap((function _callee$(zn){for(;;)switch(zn.prev=zn.next){case 0:if(Un!==Dn){zn.next=2;break}return zn.abrupt("return");case 2:zn.t0=Tn,zn.next="title"===zn.t0?5:"pressed"===zn.t0?8:"disabled"===zn.t0?10:"lib"===zn.t0?12:"src"===zn.t0?29:31;break;case 5:return Qn=this.getAttribute("shortcut"),this.$button.setAttribute("title","".concat(Dn," [").concat(Qn,"]")),zn.abrupt("break",33);case 8:return Dn?this.$overall.classList.add("pressed"):this.$overall.classList.remove("pressed"),zn.abrupt("break",33);case 10:return Dn?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled"),zn.abrupt("break",33);case 12:return zn.prev=12,zn.next=15,fetch("".concat(Dn,"index.json"));case 15:return Hn=zn.sent,zn.next=18,Hn.json();case 18:return Gn=zn.sent,Vn=Gn.lib,this.$menu.innerHTML=Vn.map((function(Tn,Un){return'<div data-menu="'.concat(Tn,'" class="menu-item ').concat(0===Un?"pressed":"",' ">').concat(Tn,"</div>")})).join(""),zn.next=23,this.updateLib(Vn[0]);case 23:zn.next=28;break;case 25:zn.prev=25,zn.t1=zn.catch(12),console.error(zn.t1);case 28:return zn.abrupt("break",33);case 29:return this.$img.setAttribute("src",Dn),zn.abrupt("break",33);case 31:return console.error("unknown attribute: ".concat(Tn)),zn.abrupt("break",33);case 33:case"end":return zn.stop()}}),_callee,this,[[12,25]])}))),function attributeChangedCallback(Tn,Un,Qn){return Dn.apply(this,arguments)})},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=function onClickHandler(Un){switch(Un.stopPropagation(),Un.target.nodeName){case"SE-EXPLORERBUTTON":Tn.$menu.classList.add("open"),Tn.$lib.classList.add("open-lib");break;case"SE-BUTTON":Tn.currentAction=Un.target,Tn.$img.setAttribute("src",Tn.currentAction.getAttribute("src")),Tn.dataset.draw=Tn.data[Tn.currentAction.dataset.shape],Tn._shadowRoot.querySelectorAll(".image-lib [pressed]").forEach((function(Tn){Tn.pressed=!1})),Tn.currentAction.setAttribute("pressed","pressed"),Tn.$menu.classList.remove("open"),Tn.$lib.classList.remove("open-lib");break;case"DIV":"handle"===Un.target.classList[0]?(Tn.$menu.classList.toggle("open"),Tn.$lib.classList.toggle("open-lib")):(Tn._shadowRoot.querySelectorAll(".menu > .pressed").forEach((function(Tn){Tn.classList.remove("pressed")})),Un.target.classList.add("pressed"),Tn.updateLib(Un.target.dataset.menu));break;default:console.error("unknown nodeName for:",Un.target,Un.target.className)}};this.addEventListener("click",Un),this.$menu.addEventListener("click",Un),this.$lib.addEventListener("click",Un),this.$handle.addEventListener("click",Un)}},{key:"updateLib",value:(Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n;return regeneratorRuntime.wrap((function _callee2$(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Un=this.getAttribute("lib"),Wn.prev=1,Wn.next=4,fetch("".concat(Un).concat(Tn,".json"));case 4:return Qn=Wn.sent,Wn.next=7,Qn.json();case 7:Hn=Wn.sent,this.data=Hn.data,Gn=null!==(Dn=Hn.size)&&void 0!==Dn?Dn:300,Vn=Hn.fill?"#333":"none",Kn=[-(zn=.05*Gn),-zn,Gn+2*zn,Gn+2*zn].join(" "),$n=Hn.fill?0:Gn/30,this.$lib.innerHTML=Object.entries(this.data).map((function(Tn){var Un=_slicedToArray(Tn,2),Dn=Un[0],Qn=Un[1],Hn=btoa('\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n <svg viewBox="'.concat(Kn,'"><path fill="').concat(Vn,'" stroke="#000" stroke-width="').concat($n,'" d="').concat(Qn,'"></path></svg>\n </svg>'));return'<se-button data-shape="'.concat(Dn,'"src="data:image/svg+xml;base64,').concat(Hn,'"></se-button>')})).join(""),Wn.next=20;break;case 17:Wn.prev=17,Wn.t0=Wn.catch(1),console.error("could not read file:".concat(Un).concat(Tn,".json"),Wn.t0);case 20:case"end":return Wn.stop()}}),_callee2,this,[[1,17]])}))),function updateLib(Tn){return Un.apply(this,arguments)})},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(Tn){this.setAttribute("title",Tn)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(Tn){Tn?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(Tn){Tn?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}}],[{key:"observedAttributes",get:function get(){return["title","pressed","disabled","lib","src"]}}]),ExplorerButton}();customElements.define("se-explorerbutton",Cc);var kc=Object.assign,Bc=Object.defineProperty,Ec=!kc||fails((function(){if(Qn&&1!==kc({b:1},kc(Bc({},"a",{enumerable:!0,get:function(){Bc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var Tn={},Un={},Dn=Symbol(),Hn="abcdefghijklmnopqrst";return Tn[Dn]=7,Hn.split("").forEach((function(Tn){Un[Tn]=Tn})),7!=kc({},Tn)[Dn]||vi(kc({},Un)).join("")!=Hn}))?function assign(Tn,Un){for(var Dn=toObject(Tn),Hn=arguments.length,Gn=1,zn=Rr.f,Kn=Vn.f;Hn>Gn;)for(var Wn,Xn=$n(arguments[Gn++]),Yn=zn?vi(Xn).concat(zn(Xn)):vi(Xn),Jn=Yn.length,Zn=0;Jn>Zn;)Wn=Yn[Zn++],Qn&&!Kn.call(Xn,Wn)||(Dn[Wn]=Xn[Wn]);return Dn}:kc;_export({target:"Object",stat:!0,forced:Object.assign!==Ec},{assign:Ec});var Pc=Object.is||function is(Tn,Un){return Tn===Un?0!==Tn||1/Tn==1/Un:Tn!=Tn&&Un!=Un};fixRegexpWellKnownSymbolLogic("search",1,(function(Tn,Un,Dn){return[function search(Un){var Dn=requireObjectCoercible(this),Qn=null==Un?void 0:Un[Tn];return void 0!==Qn?Qn.call(Un,Dn):new RegExp(Un)[Tn](String(Dn))},function(Tn){var Qn=Dn(Un,Tn,this);if(Qn.done)return Qn.value;var Hn=anObject(Tn),Gn=String(this),Vn=Hn.lastIndex;Pc(Vn,0)||(Hn.lastIndex=0);var zn=regexpExecAbstract(Hn,Gn);return Pc(Hn.lastIndex,Vn)||(Hn.lastIndex=Vn),null===zn?-1:zn.index}]}));var Lc=wellKnownSymbol("iterator"),Tc=!fails((function(){var Tn=new URL("b?a=1&b=2&c=3","http://a"),Un=Tn.searchParams,Dn="";return Tn.pathname="c%20d",Un.forEach((function(Tn,Qn){Un.delete("b"),Dn+=Qn+Tn})),!Un.sort||"http://a/c%20d?a=1&c=3"!==Tn.href||"3"!==Un.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!Un[Lc]||"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"!==Dn||"x"!==new URL("http://x",void 0).host})),callWithSafeIterationClosing=function(Tn,Un,Dn,Qn){try{return Qn?Un(anObject(Dn)[0],Dn[1]):Un(Dn)}catch(Un){throw iteratorClose(Tn),Un}},Nc=function from(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn=toObject(Tn),Kn="function"==typeof this?this:Array,$n=arguments.length,Wn=$n>1?arguments[1]:void 0,Xn=void 0!==Wn,Yn=getIteratorMethod(zn),Jn=0;if(Xn&&(Wn=functionBindContext(Wn,$n>2?arguments[2]:void 0,2)),null==Yn||Kn==Array&&isArrayIteratorMethod(Yn))for(Dn=new Kn(Un=toLength(zn.length));Un>Jn;Jn++)Vn=Xn?Wn(zn[Jn],Jn):zn[Jn],createProperty(Dn,Jn,Vn);else for(Gn=(Hn=Yn.call(zn)).next,Dn=new Kn;!(Qn=Gn.call(Hn)).done;Jn++)Vn=Xn?callWithSafeIterationClosing(Hn,Wn,[Qn.value,Jn],!0):Qn.value,createProperty(Dn,Jn,Vn);return Dn.length=Jn,Dn},Ic=/[^\0-\u007E]/,Oc=/[.\u3002\uFF0E\uFF61]/g,Fc="Overflow: input needs wider integers to process",Uc=Math.floor,Mc=String.fromCharCode,digitToBasic=function(Tn){return Tn+22+75*(Tn<26)},adapt=function(Tn,Un,Dn){var Qn=0;for(Tn=Dn?Uc(Tn/700):Tn>>1,Tn+=Uc(Tn/Un);Tn>455;Qn+=36)Tn=Uc(Tn/35);return Uc(Qn+36*Tn/(Tn+38))},encode=function(Tn){var Un,Dn,Qn=[],Hn=(Tn=function(Tn){for(var Un=[],Dn=0,Qn=Tn.length;Dn<Qn;){var Hn=Tn.charCodeAt(Dn++);if(Hn>=55296&&Hn<=56319&&Dn<Qn){var Gn=Tn.charCodeAt(Dn++);56320==(64512&Gn)?Un.push(((1023&Hn)<<10)+(1023&Gn)+65536):(Un.push(Hn),Dn--)}else Un.push(Hn)}return Un}(Tn)).length,Gn=128,Vn=0,zn=72;for(Un=0;Un<Tn.length;Un++)(Dn=Tn[Un])<128&&Qn.push(Mc(Dn));var Kn=Qn.length,$n=Kn;for(Kn&&Qn.push("-");$n<Hn;){var Wn=2147483647;for(Un=0;Un<Tn.length;Un++)(Dn=Tn[Un])>=Gn&&Dn<Wn&&(Wn=Dn);var Xn=$n+1;if(Wn-Gn>Uc((2147483647-Vn)/Xn))throw RangeError(Fc);for(Vn+=(Wn-Gn)*Xn,Gn=Wn,Un=0;Un<Tn.length;Un++){if((Dn=Tn[Un])<Gn&&++Vn>2147483647)throw RangeError(Fc);if(Dn==Gn){for(var Yn=Vn,Jn=36;;Jn+=36){var Zn=Jn<=zn?1:Jn>=zn+26?26:Jn-zn;if(Yn<Zn)break;var er=Yn-Zn,tr=36-Zn;Qn.push(Mc(digitToBasic(Zn+er%tr))),Yn=Uc(er/tr)}Qn.push(Mc(digitToBasic(Yn))),zn=adapt(Vn,Xn,$n==Kn),Vn=0,++$n}}++Vn,++Gn}return Qn.join("")},getIterator=function(Tn){var Un=getIteratorMethod(Tn);if("function"!=typeof Un)throw TypeError(String(Tn)+" is not iterable");return anObject(Un.call(Tn))},Rc=getBuiltIn("fetch"),Dc=getBuiltIn("Headers"),jc=wellKnownSymbol("iterator"),Qc=Cr.set,Hc=Cr.getterFor("URLSearchParams"),Gc=Cr.getterFor("URLSearchParamsIterator"),Vc=/\+/g,zc=Array(4),percentSequence=function(Tn){return zc[Tn-1]||(zc[Tn-1]=RegExp("((?:%[\\da-f]{2}){"+Tn+"})","gi"))},percentDecode=function(Tn){try{return decodeURIComponent(Tn)}catch(Un){return Tn}},deserialize=function(Tn){var Un=Tn.replace(Vc," "),Dn=4;try{return decodeURIComponent(Un)}catch(Tn){for(;Dn;)Un=Un.replace(percentSequence(Dn--),percentDecode);return Un}},Kc=/[!'()~]|%20/g,qc={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(Tn){return qc[Tn]},serialize=function(Tn){return encodeURIComponent(Tn).replace(Kc,replacer)},parseSearchParams=function(Tn,Un){if(Un)for(var Dn,Qn,Hn=Un.split("&"),Gn=0;Gn<Hn.length;)(Dn=Hn[Gn++]).length&&(Qn=Dn.split("="),Tn.push({key:deserialize(Qn.shift()),value:deserialize(Qn.join("="))}))},updateSearchParams=function(Tn){this.entries.length=0,parseSearchParams(this.entries,Tn)},validateArgumentsLength=function(Tn,Un){if(Tn<Un)throw TypeError("Not enough arguments")},$c=createIteratorConstructor((function Iterator(Tn,Un){Qc(this,{type:"URLSearchParamsIterator",iterator:getIterator(Hc(Tn).entries),kind:Un})}),"Iterator",(function next(){var Tn=Gc(this),Un=Tn.kind,Dn=Tn.iterator.next(),Qn=Dn.value;return Dn.done||(Dn.value="keys"===Un?Qn.key:"values"===Un?Qn.value:[Qn.key,Qn.value]),Dn})),Wc=function URLSearchParams(){anInstance(this,Wc,"URLSearchParams");var Tn,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n=arguments.length>0?arguments[0]:void 0,Wn=this,Xn=[];if(Qc(Wn,{type:"URLSearchParams",entries:Xn,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==$n)if(isObject($n))if("function"==typeof(Tn=getIteratorMethod($n)))for(Dn=(Un=Tn.call($n)).next;!(Qn=Dn.call(Un)).done;){if((Vn=(Gn=(Hn=getIterator(anObject(Qn.value))).next).call(Hn)).done||(zn=Gn.call(Hn)).done||!Gn.call(Hn).done)throw TypeError("Expected sequence with length 2");Xn.push({key:Vn.value+"",value:zn.value+""})}else for(Kn in $n)has($n,Kn)&&Xn.push({key:Kn,value:$n[Kn]+""});else parseSearchParams(Xn,"string"==typeof $n?"?"===$n.charAt(0)?$n.slice(1):$n:$n+"")},Xc=Wc.prototype;redefineAll(Xc,{append:function append(Tn,Un){validateArgumentsLength(arguments.length,2);var Dn=Hc(this);Dn.entries.push({key:Tn+"",value:Un+""}),Dn.updateURL()},delete:function(Tn){validateArgumentsLength(arguments.length,1);for(var Un=Hc(this),Dn=Un.entries,Qn=Tn+"",Hn=0;Hn<Dn.length;)Dn[Hn].key===Qn?Dn.splice(Hn,1):Hn++;Un.updateURL()},get:function get(Tn){validateArgumentsLength(arguments.length,1);for(var Un=Hc(this).entries,Dn=Tn+"",Qn=0;Qn<Un.length;Qn++)if(Un[Qn].key===Dn)return Un[Qn].value;return null},getAll:function getAll(Tn){validateArgumentsLength(arguments.length,1);for(var Un=Hc(this).entries,Dn=Tn+"",Qn=[],Hn=0;Hn<Un.length;Hn++)Un[Hn].key===Dn&&Qn.push(Un[Hn].value);return Qn},has:function has(Tn){validateArgumentsLength(arguments.length,1);for(var Un=Hc(this).entries,Dn=Tn+"",Qn=0;Qn<Un.length;)if(Un[Qn++].key===Dn)return!0;return!1},set:function set(Tn,Un){validateArgumentsLength(arguments.length,1);for(var Dn,Qn=Hc(this),Hn=Qn.entries,Gn=!1,Vn=Tn+"",zn=Un+"",Kn=0;Kn<Hn.length;Kn++)(Dn=Hn[Kn]).key===Vn&&(Gn?Hn.splice(Kn--,1):(Gn=!0,Dn.value=zn));Gn||Hn.push({key:Vn,value:zn}),Qn.updateURL()},sort:function sort(){var Tn,Un,Dn,Qn=Hc(this),Hn=Qn.entries,Gn=Hn.slice();for(Hn.length=0,Dn=0;Dn<Gn.length;Dn++){for(Tn=Gn[Dn],Un=0;Un<Dn;Un++)if(Hn[Un].key>Tn.key){Hn.splice(Un,0,Tn);break}Un===Dn&&Hn.push(Tn)}Qn.updateURL()},forEach:function forEach(Tn){for(var Un,Dn=Hc(this).entries,Qn=functionBindContext(Tn,arguments.length>1?arguments[1]:void 0,3),Hn=0;Hn<Dn.length;)Qn((Un=Dn[Hn++]).value,Un.key,this)},keys:function keys(){return new $c(this,"keys")},values:function values(){return new $c(this,"values")},entries:function entries(){return new $c(this,"entries")}},{enumerable:!0}),kr(Xc,jc,Xc.entries),kr(Xc,"toString",(function toString(){for(var Tn,Un=Hc(this).entries,Dn=[],Qn=0;Qn<Un.length;)Tn=Un[Qn++],Dn.push(serialize(Tn.key)+"="+serialize(Tn.value));return Dn.join("&")}),{enumerable:!0}),setToStringTag(Wc,"URLSearchParams"),_export({global:!0,forced:!Tc},{URLSearchParams:Wc}),Tc||"function"!=typeof Rc||"function"!=typeof Dc||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(Tn){var Un,Dn,Qn,Hn=[Tn];return arguments.length>1&&(isObject(Un=arguments[1])&&(Dn=Un.body,"URLSearchParams"===fo(Dn)&&((Qn=Un.headers?new Dc(Un.headers):new Dc).has("content-type")||Qn.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Un=xi(Un,{body:createPropertyDescriptor(0,String(Dn)),headers:createPropertyDescriptor(0,Qn)}))),Hn.push(Un)),Rc.apply(this,Hn)}});var Yc,Jc={URLSearchParams:Wc,getState:Hc},Zc=da.codeAt,eu=Dn.URL,tu=Jc.URLSearchParams,nu=Jc.getState,ru=Cr.set,iu=Cr.getterFor("URL"),ou=Math.floor,au=Math.pow,su=/[A-Za-z]/,lu=/[\d+-.A-Za-z]/,uu=/\d/,du=/^(0x|0X)/,hu=/^[0-7]+$/,pu=/^\d+$/,gu=/^[\dA-Fa-f]+$/,fu=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Au=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,mu=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,vu=/[\u0009\u000A\u000D]/g,parseHost=function(Tn,Un){var Dn,Qn,Hn;if("["==Un.charAt(0)){if("]"!=Un.charAt(Un.length-1))return"Invalid host";if(!(Dn=parseIPv6(Un.slice(1,-1))))return"Invalid host";Tn.host=Dn}else if(isSpecial(Tn)){if(Un=function(Tn){var Un,Dn,Qn=[],Hn=Tn.toLowerCase().replace(Oc,".").split(".");for(Un=0;Un<Hn.length;Un++)Dn=Hn[Un],Qn.push(Ic.test(Dn)?"xn--"+encode(Dn):Dn);return Qn.join(".")}(Un),fu.test(Un))return"Invalid host";if(null===(Dn=parseIPv4(Un)))return"Invalid host";Tn.host=Dn}else{if(Au.test(Un))return"Invalid host";for(Dn="",Qn=Nc(Un),Hn=0;Hn<Qn.length;Hn++)Dn+=percentEncode(Qn[Hn],yu);Tn.host=Dn}},parseIPv4=function(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn=Tn.split(".");if(Kn.length&&""==Kn[Kn.length-1]&&Kn.pop(),(Un=Kn.length)>4)return Tn;for(Dn=[],Qn=0;Qn<Un;Qn++){if(""==(Hn=Kn[Qn]))return Tn;if(Gn=10,Hn.length>1&&"0"==Hn.charAt(0)&&(Gn=du.test(Hn)?16:8,Hn=Hn.slice(8==Gn?1:2)),""===Hn)Vn=0;else{if(!(10==Gn?pu:8==Gn?hu:gu).test(Hn))return Tn;Vn=parseInt(Hn,Gn)}Dn.push(Vn)}for(Qn=0;Qn<Un;Qn++)if(Vn=Dn[Qn],Qn==Un-1){if(Vn>=au(256,5-Un))return null}else if(Vn>255)return null;for(zn=Dn.pop(),Qn=0;Qn<Dn.length;Qn++)zn+=Dn[Qn]*au(256,3-Qn);return zn},parseIPv6=function(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn=[0,0,0,0,0,0,0,0],$n=0,Wn=null,Xn=0,char=function(){return Tn.charAt(Xn)};if(":"==char()){if(":"!=Tn.charAt(1))return;Xn+=2,Wn=++$n}for(;char();){if(8==$n)return;if(":"!=char()){for(Un=Dn=0;Dn<4&&gu.test(char());)Un=16*Un+parseInt(char(),16),Xn++,Dn++;if("."==char()){if(0==Dn)return;if(Xn-=Dn,$n>6)return;for(Qn=0;char();){if(Hn=null,Qn>0){if(!("."==char()&&Qn<4))return;Xn++}if(!uu.test(char()))return;for(;uu.test(char());){if(Gn=parseInt(char(),10),null===Hn)Hn=Gn;else{if(0==Hn)return;Hn=10*Hn+Gn}if(Hn>255)return;Xn++}Kn[$n]=256*Kn[$n]+Hn,2!=++Qn&&4!=Qn||$n++}if(4!=Qn)return;break}if(":"==char()){if(Xn++,!char())return}else if(char())return;Kn[$n++]=Un}else{if(null!==Wn)return;Xn++,Wn=++$n}}if(null!==Wn)for(Vn=$n-Wn,$n=7;0!=$n&&Vn>0;)zn=Kn[$n],Kn[$n--]=Kn[Wn+Vn-1],Kn[Wn+--Vn]=zn;else if(8!=$n)return;return Kn},serializeHost=function(Tn){var Un,Dn,Qn,Hn;if("number"==typeof Tn){for(Un=[],Dn=0;Dn<4;Dn++)Un.unshift(Tn%256),Tn=ou(Tn/256);return Un.join(".")}if("object"==typeof Tn){for(Un="",Qn=function(Tn){for(var Un=null,Dn=1,Qn=null,Hn=0,Gn=0;Gn<8;Gn++)0!==Tn[Gn]?(Hn>Dn&&(Un=Qn,Dn=Hn),Qn=null,Hn=0):(null===Qn&&(Qn=Gn),++Hn);return Hn>Dn&&(Un=Qn,Dn=Hn),Un}(Tn),Dn=0;Dn<8;Dn++)Hn&&0===Tn[Dn]||(Hn&&(Hn=!1),Qn===Dn?(Un+=Dn?":":"::",Hn=!0):(Un+=Tn[Dn].toString(16),Dn<7&&(Un+=":")));return"["+Un+"]"}return Tn},yu={},_u=Ec({},yu,{" ":1,'"':1,"<":1,">":1,"`":1}),bu=Ec({},_u,{"#":1,"?":1,"{":1,"}":1}),wu=Ec({},bu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(Tn,Un){var Dn=Zc(Tn,0);return Dn>32&&Dn<127&&!has(Un,Tn)?Tn:encodeURIComponent(Tn)},xu={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(Tn){return has(xu,Tn.scheme)},includesCredentials=function(Tn){return""!=Tn.username||""!=Tn.password},cannotHaveUsernamePasswordPort=function(Tn){return!Tn.host||Tn.cannotBeABaseURL||"file"==Tn.scheme},isWindowsDriveLetter=function(Tn,Un){var Dn;return 2==Tn.length&&su.test(Tn.charAt(0))&&(":"==(Dn=Tn.charAt(1))||!Un&&"|"==Dn)},startsWithWindowsDriveLetter=function(Tn){var Un;return Tn.length>1&&isWindowsDriveLetter(Tn.slice(0,2))&&(2==Tn.length||"/"===(Un=Tn.charAt(2))||"\\"===Un||"?"===Un||"#"===Un)},shortenURLsPath=function(Tn){var Un=Tn.path,Dn=Un.length;!Dn||"file"==Tn.scheme&&1==Dn&&isWindowsDriveLetter(Un[0],!0)||Un.pop()},isSingleDot=function(Tn){return"."===Tn||"%2e"===Tn.toLowerCase()},Su={},Cu={},ku={},Bu={},Eu={},Pu={},Lu={},Tu={},Nu={},Iu={},Ou={},Fu={},Uu={},Mu={},Ru={},Du={},ju={},Qu={},Hu={},Gu={},Vu={},parseURL=function(Tn,Un,Dn,Qn){var Hn,Gn,Vn,zn,Kn,$n=Dn||Su,Wn=0,Xn="",Yn=!1,Jn=!1,Zn=!1;for(Dn||(Tn.scheme="",Tn.username="",Tn.password="",Tn.host=null,Tn.port=null,Tn.path=[],Tn.query=null,Tn.fragment=null,Tn.cannotBeABaseURL=!1,Un=Un.replace(mu,"")),Un=Un.replace(vu,""),Hn=Nc(Un);Wn<=Hn.length;){switch(Gn=Hn[Wn],$n){case Su:if(!Gn||!su.test(Gn)){if(Dn)return"Invalid scheme";$n=ku;continue}Xn+=Gn.toLowerCase(),$n=Cu;break;case Cu:if(Gn&&(lu.test(Gn)||"+"==Gn||"-"==Gn||"."==Gn))Xn+=Gn.toLowerCase();else{if(":"!=Gn){if(Dn)return"Invalid scheme";Xn="",$n=ku,Wn=0;continue}if(Dn&&(isSpecial(Tn)!=has(xu,Xn)||"file"==Xn&&(includesCredentials(Tn)||null!==Tn.port)||"file"==Tn.scheme&&!Tn.host))return;if(Tn.scheme=Xn,Dn)return void(isSpecial(Tn)&&xu[Tn.scheme]==Tn.port&&(Tn.port=null));Xn="","file"==Tn.scheme?$n=Mu:isSpecial(Tn)&&Qn&&Qn.scheme==Tn.scheme?$n=Bu:isSpecial(Tn)?$n=Tu:"/"==Hn[Wn+1]?($n=Eu,Wn++):(Tn.cannotBeABaseURL=!0,Tn.path.push(""),$n=Hu)}break;case ku:if(!Qn||Qn.cannotBeABaseURL&&"#"!=Gn)return"Invalid scheme";if(Qn.cannotBeABaseURL&&"#"==Gn){Tn.scheme=Qn.scheme,Tn.path=Qn.path.slice(),Tn.query=Qn.query,Tn.fragment="",Tn.cannotBeABaseURL=!0,$n=Vu;break}$n="file"==Qn.scheme?Mu:Pu;continue;case Bu:if("/"!=Gn||"/"!=Hn[Wn+1]){$n=Pu;continue}$n=Nu,Wn++;break;case Eu:if("/"==Gn){$n=Iu;break}$n=Qu;continue;case Pu:if(Tn.scheme=Qn.scheme,Gn==Yc)Tn.username=Qn.username,Tn.password=Qn.password,Tn.host=Qn.host,Tn.port=Qn.port,Tn.path=Qn.path.slice(),Tn.query=Qn.query;else if("/"==Gn||"\\"==Gn&&isSpecial(Tn))$n=Lu;else if("?"==Gn)Tn.username=Qn.username,Tn.password=Qn.password,Tn.host=Qn.host,Tn.port=Qn.port,Tn.path=Qn.path.slice(),Tn.query="",$n=Gu;else{if("#"!=Gn){Tn.username=Qn.username,Tn.password=Qn.password,Tn.host=Qn.host,Tn.port=Qn.port,Tn.path=Qn.path.slice(),Tn.path.pop(),$n=Qu;continue}Tn.username=Qn.username,Tn.password=Qn.password,Tn.host=Qn.host,Tn.port=Qn.port,Tn.path=Qn.path.slice(),Tn.query=Qn.query,Tn.fragment="",$n=Vu}break;case Lu:if(!isSpecial(Tn)||"/"!=Gn&&"\\"!=Gn){if("/"!=Gn){Tn.username=Qn.username,Tn.password=Qn.password,Tn.host=Qn.host,Tn.port=Qn.port,$n=Qu;continue}$n=Iu}else $n=Nu;break;case Tu:if($n=Nu,"/"!=Gn||"/"!=Xn.charAt(Wn+1))continue;Wn++;break;case Nu:if("/"!=Gn&&"\\"!=Gn){$n=Iu;continue}break;case Iu:if("@"==Gn){Yn&&(Xn="%40"+Xn),Yn=!0,Vn=Nc(Xn);for(var er=0;er<Vn.length;er++){var tr=Vn[er];if(":"!=tr||Zn){var nr=percentEncode(tr,wu);Zn?Tn.password+=nr:Tn.username+=nr}else Zn=!0}Xn=""}else if(Gn==Yc||"/"==Gn||"?"==Gn||"#"==Gn||"\\"==Gn&&isSpecial(Tn)){if(Yn&&""==Xn)return"Invalid authority";Wn-=Nc(Xn).length+1,Xn="",$n=Ou}else Xn+=Gn;break;case Ou:case Fu:if(Dn&&"file"==Tn.scheme){$n=Du;continue}if(":"!=Gn||Jn){if(Gn==Yc||"/"==Gn||"?"==Gn||"#"==Gn||"\\"==Gn&&isSpecial(Tn)){if(isSpecial(Tn)&&""==Xn)return"Invalid host";if(Dn&&""==Xn&&(includesCredentials(Tn)||null!==Tn.port))return;if(zn=parseHost(Tn,Xn))return zn;if(Xn="",$n=ju,Dn)return;continue}"["==Gn?Jn=!0:"]"==Gn&&(Jn=!1),Xn+=Gn}else{if(""==Xn)return"Invalid host";if(zn=parseHost(Tn,Xn))return zn;if(Xn="",$n=Uu,Dn==Fu)return}break;case Uu:if(!uu.test(Gn)){if(Gn==Yc||"/"==Gn||"?"==Gn||"#"==Gn||"\\"==Gn&&isSpecial(Tn)||Dn){if(""!=Xn){var rr=parseInt(Xn,10);if(rr>65535)return"Invalid port";Tn.port=isSpecial(Tn)&&rr===xu[Tn.scheme]?null:rr,Xn=""}if(Dn)return;$n=ju;continue}return"Invalid port"}Xn+=Gn;break;case Mu:if(Tn.scheme="file","/"==Gn||"\\"==Gn)$n=Ru;else{if(!Qn||"file"!=Qn.scheme){$n=Qu;continue}if(Gn==Yc)Tn.host=Qn.host,Tn.path=Qn.path.slice(),Tn.query=Qn.query;else if("?"==Gn)Tn.host=Qn.host,Tn.path=Qn.path.slice(),Tn.query="",$n=Gu;else{if("#"!=Gn){startsWithWindowsDriveLetter(Hn.slice(Wn).join(""))||(Tn.host=Qn.host,Tn.path=Qn.path.slice(),shortenURLsPath(Tn)),$n=Qu;continue}Tn.host=Qn.host,Tn.path=Qn.path.slice(),Tn.query=Qn.query,Tn.fragment="",$n=Vu}}break;case Ru:if("/"==Gn||"\\"==Gn){$n=Du;break}Qn&&"file"==Qn.scheme&&!startsWithWindowsDriveLetter(Hn.slice(Wn).join(""))&&(isWindowsDriveLetter(Qn.path[0],!0)?Tn.path.push(Qn.path[0]):Tn.host=Qn.host),$n=Qu;continue;case Du:if(Gn==Yc||"/"==Gn||"\\"==Gn||"?"==Gn||"#"==Gn){if(!Dn&&isWindowsDriveLetter(Xn))$n=Qu;else if(""==Xn){if(Tn.host="",Dn)return;$n=ju}else{if(zn=parseHost(Tn,Xn))return zn;if("localhost"==Tn.host&&(Tn.host=""),Dn)return;Xn="",$n=ju}continue}Xn+=Gn;break;case ju:if(isSpecial(Tn)){if($n=Qu,"/"!=Gn&&"\\"!=Gn)continue}else if(Dn||"?"!=Gn)if(Dn||"#"!=Gn){if(Gn!=Yc&&($n=Qu,"/"!=Gn))continue}else Tn.fragment="",$n=Vu;else Tn.query="",$n=Gu;break;case Qu:if(Gn==Yc||"/"==Gn||"\\"==Gn&&isSpecial(Tn)||!Dn&&("?"==Gn||"#"==Gn)){if(".."===(Kn=(Kn=Xn).toLowerCase())||"%2e."===Kn||".%2e"===Kn||"%2e%2e"===Kn?(shortenURLsPath(Tn),"/"==Gn||"\\"==Gn&&isSpecial(Tn)||Tn.path.push("")):isSingleDot(Xn)?"/"==Gn||"\\"==Gn&&isSpecial(Tn)||Tn.path.push(""):("file"==Tn.scheme&&!Tn.path.length&&isWindowsDriveLetter(Xn)&&(Tn.host&&(Tn.host=""),Xn=Xn.charAt(0)+":"),Tn.path.push(Xn)),Xn="","file"==Tn.scheme&&(Gn==Yc||"?"==Gn||"#"==Gn))for(;Tn.path.length>1&&""===Tn.path[0];)Tn.path.shift();"?"==Gn?(Tn.query="",$n=Gu):"#"==Gn&&(Tn.fragment="",$n=Vu)}else Xn+=percentEncode(Gn,bu);break;case Hu:"?"==Gn?(Tn.query="",$n=Gu):"#"==Gn?(Tn.fragment="",$n=Vu):Gn!=Yc&&(Tn.path[0]+=percentEncode(Gn,yu));break;case Gu:Dn||"#"!=Gn?Gn!=Yc&&("'"==Gn&&isSpecial(Tn)?Tn.query+="%27":Tn.query+="#"==Gn?"%23":percentEncode(Gn,yu)):(Tn.fragment="",$n=Vu);break;case Vu:Gn!=Yc&&(Tn.fragment+=percentEncode(Gn,_u))}Wn++}},zu=function URL(Tn){var Un,Dn,Hn=anInstance(this,zu,"URL"),Gn=arguments.length>1?arguments[1]:void 0,Vn=String(Tn),zn=ru(Hn,{type:"URL"});if(void 0!==Gn)if(Gn instanceof zu)Un=iu(Gn);else if(Dn=parseURL(Un={},String(Gn)))throw TypeError(Dn);if(Dn=parseURL(zn,Vn,null,Un))throw TypeError(Dn);var Kn=zn.searchParams=new tu,$n=nu(Kn);$n.updateSearchParams(zn.query),$n.updateURL=function(){zn.query=String(Kn)||null},Qn||(Hn.href=serializeURL.call(Hn),Hn.origin=getOrigin.call(Hn),Hn.protocol=getProtocol.call(Hn),Hn.username=getUsername.call(Hn),Hn.password=getPassword.call(Hn),Hn.host=getHost.call(Hn),Hn.hostname=getHostname.call(Hn),Hn.port=getPort.call(Hn),Hn.pathname=getPathname.call(Hn),Hn.search=getSearch.call(Hn),Hn.searchParams=getSearchParams.call(Hn),Hn.hash=getHash.call(Hn))},Ku=zu.prototype,serializeURL=function(){var Tn=iu(this),Un=Tn.scheme,Dn=Tn.username,Qn=Tn.password,Hn=Tn.host,Gn=Tn.port,Vn=Tn.path,zn=Tn.query,Kn=Tn.fragment,$n=Un+":";return null!==Hn?($n+="//",includesCredentials(Tn)&&($n+=Dn+(Qn?":"+Qn:"")+"@"),$n+=serializeHost(Hn),null!==Gn&&($n+=":"+Gn)):"file"==Un&&($n+="//"),$n+=Tn.cannotBeABaseURL?Vn[0]:Vn.length?"/"+Vn.join("/"):"",null!==zn&&($n+="?"+zn),null!==Kn&&($n+="#"+Kn),$n},getOrigin=function(){var Tn=iu(this),Un=Tn.scheme,Dn=Tn.port;if("blob"==Un)try{return new URL(Un.path[0]).origin}catch(Tn){return"null"}return"file"!=Un&&isSpecial(Tn)?Un+"://"+serializeHost(Tn.host)+(null!==Dn?":"+Dn:""):"null"},getProtocol=function(){return iu(this).scheme+":"},getUsername=function(){return iu(this).username},getPassword=function(){return iu(this).password},getHost=function(){var Tn=iu(this),Un=Tn.host,Dn=Tn.port;return null===Un?"":null===Dn?serializeHost(Un):serializeHost(Un)+":"+Dn},getHostname=function(){var Tn=iu(this).host;return null===Tn?"":serializeHost(Tn)},getPort=function(){var Tn=iu(this).port;return null===Tn?"":String(Tn)},getPathname=function(){var Tn=iu(this),Un=Tn.path;return Tn.cannotBeABaseURL?Un[0]:Un.length?"/"+Un.join("/"):""},getSearch=function(){var Tn=iu(this).query;return Tn?"?"+Tn:""},getSearchParams=function(){return iu(this).searchParams},getHash=function(){var Tn=iu(this).fragment;return Tn?"#"+Tn:""},accessorDescriptor=function(Tn,Un){return{get:Tn,set:Un,configurable:!0,enumerable:!0}};if(Qn&&yi(Ku,{href:accessorDescriptor(serializeURL,(function(Tn){var Un=iu(this),Dn=String(Tn),Qn=parseURL(Un,Dn);if(Qn)throw TypeError(Qn);nu(Un.searchParams).updateSearchParams(Un.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(Tn){var Un=iu(this);parseURL(Un,String(Tn)+":",Su)})),username:accessorDescriptor(getUsername,(function(Tn){var Un=iu(this),Dn=Nc(String(Tn));if(!cannotHaveUsernamePasswordPort(Un)){Un.username="";for(var Qn=0;Qn<Dn.length;Qn++)Un.username+=percentEncode(Dn[Qn],wu)}})),password:accessorDescriptor(getPassword,(function(Tn){var Un=iu(this),Dn=Nc(String(Tn));if(!cannotHaveUsernamePasswordPort(Un)){Un.password="";for(var Qn=0;Qn<Dn.length;Qn++)Un.password+=percentEncode(Dn[Qn],wu)}})),host:accessorDescriptor(getHost,(function(Tn){var Un=iu(this);Un.cannotBeABaseURL||parseURL(Un,String(Tn),Ou)})),hostname:accessorDescriptor(getHostname,(function(Tn){var Un=iu(this);Un.cannotBeABaseURL||parseURL(Un,String(Tn),Fu)})),port:accessorDescriptor(getPort,(function(Tn){var Un=iu(this);cannotHaveUsernamePasswordPort(Un)||(""==(Tn=String(Tn))?Un.port=null:parseURL(Un,Tn,Uu))})),pathname:accessorDescriptor(getPathname,(function(Tn){var Un=iu(this);Un.cannotBeABaseURL||(Un.path=[],parseURL(Un,Tn+"",ju))})),search:accessorDescriptor(getSearch,(function(Tn){var Un=iu(this);""==(Tn=String(Tn))?Un.query=null:("?"==Tn.charAt(0)&&(Tn=Tn.slice(1)),Un.query="",parseURL(Un,Tn,Gu)),nu(Un.searchParams).updateSearchParams(Un.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(Tn){var Un=iu(this);""!=(Tn=String(Tn))?("#"==Tn.charAt(0)&&(Tn=Tn.slice(1)),Un.fragment="",parseURL(Un,Tn,Vu)):Un.fragment=null}))}),kr(Ku,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),kr(Ku,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),eu){var qu=eu.createObjectURL,$u=eu.revokeObjectURL;qu&&kr(zu,"createObjectURL",(function createObjectURL(Tn){return qu.apply(eu,arguments)})),$u&&kr(zu,"revokeObjectURL",(function revokeObjectURL(Tn){return $u.apply(eu,arguments)}))}setToStringTag(zu,"URL"),_export({global:!0,forced:!Tc,sham:!Qn},{URL:zu});var Wu=Symbol("defaultState"),Xu=Symbol("delegatesFocus"),Yu=Symbol("firstRender"),Ju=Symbol("focusTarget"),Zu=Symbol("hasDynamicTemplate"),ed=Symbol("ids"),td=Symbol("nativeInternals"),nd=Symbol("raiseChangeEvents"),rd=Symbol("render"),id=Symbol("renderChanges"),od=Symbol("rendered"),ad=Symbol("rendering"),sd=Symbol("setState"),ld=Symbol("shadowRoot"),cd=Symbol("shadowRootMode"),ud=Symbol("state"),dd=Symbol("stateEffects"),hd=Symbol("template"),pd=Symbol("applyElementData"),gd=Symbol("checkSize"),fd=Symbol("closestAvailableItemIndex"),Ad=Symbol("contentSlot"),md=Wu,vd=Symbol("defaultTabIndex"),yd=Xu,_d=Symbol("effectEndTarget"),bd=Yu,wd=Ju,xd=Symbol("getItemText"),Sd=Symbol("goDown"),Cd=Symbol("goEnd"),kd=Symbol("goFirst"),Bd=Symbol("goLast"),Ed=Symbol("goLeft"),Pd=Symbol("goNext"),Ld=Symbol("goPrevious"),Td=Symbol("goRight"),Nd=Symbol("goStart"),Id=Symbol("goToItemWithPrefix"),Od=Symbol("goUp"),Fd=Zu,Ud=ed,Md=Symbol("inputDelegate"),Rd=Symbol("itemsDelegate"),Dd=Symbol("keydown"),jd=Symbol("mouseenter"),Qd=Symbol("mouseleave"),Hd=td,Gd=nd,Vd=rd,zd=id,Kd=Symbol("renderDataToElement"),qd=od,$d=ad,Wd=Symbol("scrollTarget"),Xd=sd,Yd=ld,Jd=cd,Zd=Symbol("startEffect"),eh=ud,th=dd,nh=Symbol("swipeDown"),rh=Symbol("swipeDownComplete"),ih=Symbol("swipeLeft"),oh=Symbol("swipeLeftTransitionEnd"),ah=Symbol("swipeRight"),sh=Symbol("swipeRightTransitionEnd"),lh=Symbol("swipeUp"),ch=Symbol("swipeUpComplete"),uh=Symbol("swipeStart"),dh=Symbol("swipeTarget"),hh=Symbol("tap"),ph=hd,gh=Symbol("toggleSelectedFlag");"true"===new URLSearchParams(location.search).get("elixdebug")&&(window.elix={internal:{checkSize:gd,closestAvailableItemIndex:fd,contentSlot:Ad,defaultState:md,defaultTabIndex:vd,delegatesFocus:yd,effectEndTarget:_d,firstRender:bd,focusTarget:wd,getItemText:xd,goDown:Sd,goEnd:Cd,goFirst:kd,goLast:Bd,goLeft:Ed,goNext:Pd,goPrevious:Ld,goRight:Td,goStart:Nd,goToItemWithPrefix:Id,goUp:Od,hasDynamicTemplate:Fd,ids:Ud,inputDelegate:Md,itemsDelegate:Rd,keydown:Dd,mouseenter:jd,mouseleave:Qd,nativeInternals:Hd,event:event,raiseChangeEvents:Gd,render:Vd,renderChanges:zd,renderDataToElement:Kd,rendered:qd,rendering:$d,scrollTarget:Wd,setState:Xd,shadowRoot:Yd,shadowRootMode:Jd,startEffect:Zd,state:eh,stateEffects:th,swipeDown:nh,swipeDownComplete:rh,swipeLeft:ih,swipeLeftTransitionEnd:oh,swipeRight:ah,swipeRightTransitionEnd:sh,swipeUp:lh,swipeUpComplete:ch,swipeStart:uh,swipeTarget:dh,tap:hh,template:ph,toggleSelectedFlag:gh}});var fh=di.findIndex,Ah=!0,mh=arrayMethodUsesToLength("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){Ah=!1})),_export({target:"Array",proto:!0,forced:Ah||!mh},{findIndex:function findIndex(Tn){return fh(this,Tn,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("findIndex");var vh=regeneratorRuntime.mark(composedAncestors),yh=regeneratorRuntime.mark(selfAndComposedAncestors),_h=regeneratorRuntime.mark(walkComposedTree),bh=Symbol("mousedownListener");function booleanAttributeValue(Tn,Un){return"boolean"==typeof Un?Un:"string"==typeof Un&&(""===Un||Tn.toLowerCase()===Un.toLowerCase())}function closestFocusableNode(Tn){var Un,Dn=_createForOfIteratorHelper(selfAndComposedAncestors(Tn));try{for(Dn.s();!(Un=Dn.n()).done;){var Qn=Un.value,Hn=Qn[Ju]||Qn,Gn=Hn;if(Hn instanceof HTMLElement&&Hn.tabIndex>=0&&!Gn.disabled&&!(Hn instanceof HTMLSlotElement))return Hn}}catch(Tn){Dn.e(Tn)}finally{Dn.f()}return null}function composedAncestors(Tn){var Un;return regeneratorRuntime.wrap((function composedAncestors$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:Un=Tn;case 1:if(!(Un=Un instanceof HTMLElement&&Un.assignedSlot?Un.assignedSlot:Un instanceof ShadowRoot?Un.host:Un.parentNode)){Dn.next=8;break}return Dn.next=6,Un;case 6:Dn.next=9;break;case 8:return Dn.abrupt("break",11);case 9:Dn.next=1;break;case 11:case"end":return Dn.stop()}}),vh)}function deepContains(Tn,Un){for(var Dn=Un;Dn;){var Qn=Dn.assignedSlot||Dn.parentNode||Dn.host;if(Qn===Tn)return!0;Dn=Qn}return!1}function firstFocusableElement(Tn){var Un=walkComposedTree(Tn,(function(Tn){return Tn instanceof HTMLElement&&Tn.matches('a[href],area[href],button:not([disabled]),details,iframe,input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[contentEditable="true"],[tabindex]')&&Tn.tabIndex>=0})).next().value;return Un instanceof HTMLElement?Un:null}function forwardFocus(Tn,Un){Tn[bh]&&Tn.removeEventListener("mousedown",Tn[bh]),Un&&(Tn[bh]=function(Tn){if(0===Tn.button){var Dn=closestFocusableNode(Un[Ju]||Un);Dn&&(Dn.focus(),Tn.preventDefault())}},Tn.addEventListener("mousedown",Tn[bh]))}function indexOfItemContainingTarget(Tn,Un){return Array.prototype.findIndex.call(Tn,(function(Tn){return Tn===Un||deepContains(Tn,Un)}))}function ownEvent(Tn,Un){var Dn=Un.composedPath()[0];return Tn===Dn||deepContains(Tn,Dn)}function selfAndComposedAncestors(Tn){return regeneratorRuntime.wrap((function selfAndComposedAncestors$(Un){for(;;)switch(Un.prev=Un.next){case 0:if(!Tn){Un.next=4;break}return Un.next=3,Tn;case 3:return Un.delegateYield(composedAncestors(Tn),"t0",4);case 4:case"end":return Un.stop()}}),yh)}function setInternalState$7(Tn,Un,Dn){Tn.toggleAttribute(Un,Dn),Tn[td]&&Tn[td].states&&Tn[td].states.toggle(Un,Dn)}var wh={checked:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,multiple:!0,noresize:!0,readonly:!0,selected:!0};function updateChildNodes(Tn,Un){for(var Dn=_toConsumableArray(Un),Qn=Tn.childNodes.length,Hn=Dn.length,Gn=Math.max(Qn,Hn),Vn=0;Vn<Gn;Vn++){var zn=Tn.childNodes[Vn],Kn=Dn[Vn];Vn>=Qn?Tn.append(Kn):Vn>=Hn?Tn.removeChild(Tn.childNodes[Hn]):zn!==Kn&&(Dn.indexOf(zn,Vn)>=Vn?Tn.insertBefore(Kn,zn):Tn.replaceChild(Kn,zn))}}function walkComposedTree(Tn,Un){var Dn,Qn,Hn;return regeneratorRuntime.wrap((function walkComposedTree$(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:if(!Un(Tn)){Gn.next=3;break}return Gn.next=3,Tn;case 3:if(Tn instanceof HTMLElement&&Tn.shadowRoot?Dn=Tn.shadowRoot.children:(Qn=Tn instanceof HTMLSlotElement?Tn.assignedNodes({flatten:!0}):[],Dn=Qn.length>0?Qn:Tn.childNodes),!Dn){Gn.next=11;break}Hn=0;case 6:if(!(Hn<Dn.length)){Gn.next=11;break}return Gn.delegateYield(walkComposedTree(Dn[Hn],Un),"t0",8);case 8:Hn++,Gn.next=6;break;case 11:case"end":return Gn.stop()}}),_h)}_export({target:"String",stat:!0},{raw:function raw(Tn){for(var Un=toIndexedObject(Tn.raw),Dn=toLength(Un.length),Qn=arguments.length,Hn=[],Gn=0;Dn>Gn;)Hn.push(String(Un[Gn++])),Gn<Qn&&Hn.push(String(arguments[Gn]));return Hn.join("")}});var xh=function html(Tn){for(var Un=arguments.length,Dn=new Array(Un>1?Un-1:0),Qn=1;Qn<Un;Qn++)Dn[Qn-1]=arguments[Qn];return Sh.html.apply(Sh,[Tn].concat(Dn)).content},Sh={html:function html(Tn){for(var Un=document.createElement("template"),Dn=arguments.length,Qn=new Array(Dn>1?Dn-1:0),Hn=1;Hn<Dn;Hn++)Qn[Hn-1]=arguments[Hn];return Un.innerHTML=String.raw.apply(String,[Tn].concat(Qn)),Un}},Ch=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),kh=createCommonjsModule((function(Tn){var Un=nr.f,Dn=uid("meta"),Qn=0,Hn=Object.isExtensible||function(){return!0},setMetadata=function(Tn){Un(Tn,Dn,{value:{objectID:"O"+ ++Qn,weakData:{}}})},Gn=Tn.exports={REQUIRED:!1,fastKey:function(Tn,Un){if(!isObject(Tn))return"symbol"==typeof Tn?Tn:("string"==typeof Tn?"S":"P")+Tn;if(!has(Tn,Dn)){if(!Hn(Tn))return"F";if(!Un)return"E";setMetadata(Tn)}return Tn[Dn].objectID},getWeakData:function(Tn,Un){if(!has(Tn,Dn)){if(!Hn(Tn))return!0;if(!Un)return!1;setMetadata(Tn)}return Tn[Dn].weakData},onFreeze:function(Tn){return Ch&&Gn.REQUIRED&&Hn(Tn)&&!has(Tn,Dn)&&setMetadata(Tn),Tn}};Ar[Dn]=!0})),collection=function(Tn,Un,Qn){var Hn=-1!==Tn.indexOf("Map"),Gn=-1!==Tn.indexOf("Weak"),Vn=Hn?"set":"add",zn=Dn[Tn],Kn=zn&&zn.prototype,$n=zn,Wn={},fixMethod=function(Tn){var Un=Kn[Tn];kr(Kn,Tn,"add"==Tn?function add(Tn){return Un.call(this,0===Tn?0:Tn),this}:"delete"==Tn?function(Tn){return!(Gn&&!isObject(Tn))&&Un.call(this,0===Tn?0:Tn)}:"get"==Tn?function get(Tn){return Gn&&!isObject(Tn)?void 0:Un.call(this,0===Tn?0:Tn)}:"has"==Tn?function has(Tn){return!(Gn&&!isObject(Tn))&&Un.call(this,0===Tn?0:Tn)}:function set(Tn,Dn){return Un.call(this,0===Tn?0:Tn,Dn),this})};if(zr(Tn,"function"!=typeof zn||!(Gn||Kn.forEach&&!fails((function(){(new zn).entries().next()})))))$n=Qn.getConstructor(Un,Tn,Hn,Vn),kh.REQUIRED=!0;else if(zr(Tn,!0)){var Xn=new $n,Yn=Xn[Vn](Gn?{}:-0,1)!=Xn,Jn=fails((function(){Xn.has(1)})),Zn=checkCorrectnessOfIteration((function(Tn){new zn(Tn)})),er=!Gn&&fails((function(){for(var Tn=new zn,Un=5;Un--;)Tn[Vn](Un,Un);return!Tn.has(-0)}));Zn||(($n=Un((function(Un,Dn){anInstance(Un,$n,Tn);var Qn=inheritIfRequired(new zn,Un,$n);return null!=Dn&&iterate(Dn,Qn[Vn],{that:Qn,AS_ENTRIES:Hn}),Qn}))).prototype=Kn,Kn.constructor=$n),(Jn||er)&&(fixMethod("delete"),fixMethod("has"),Hn&&fixMethod("get")),(er||Yn)&&fixMethod(Vn),Gn&&Kn.clear&&delete Kn.clear}return Wn[Tn]=$n,_export({global:!0,forced:$n!=zn},Wn),setToStringTag($n,Tn),Gn||Qn.setStrong($n,Tn,Hn),$n},Bh=nr.f,Eh=kh.fastKey,Ph=Cr.set,Lh=Cr.getterFor,Th=(collection("Map",(function(Tn){return function Map(){return Tn(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(Tn,Un,Dn,Hn){var Gn=Tn((function(Tn,Vn){anInstance(Tn,Gn,Un),Ph(Tn,{type:Un,index:xi(null),first:void 0,last:void 0,size:0}),Qn||(Tn.size=0),null!=Vn&&iterate(Vn,Tn[Hn],{that:Tn,AS_ENTRIES:Dn})})),Vn=Lh(Un),define=function(Tn,Un,Dn){var Hn,Gn,zn=Vn(Tn),Kn=getEntry(Tn,Un);return Kn?Kn.value=Dn:(zn.last=Kn={index:Gn=Eh(Un,!0),key:Un,value:Dn,previous:Hn=zn.last,next:void 0,removed:!1},zn.first||(zn.first=Kn),Hn&&(Hn.next=Kn),Qn?zn.size++:Tn.size++,"F"!==Gn&&(zn.index[Gn]=Kn)),Tn},getEntry=function(Tn,Un){var Dn,Qn=Vn(Tn),Hn=Eh(Un);if("F"!==Hn)return Qn.index[Hn];for(Dn=Qn.first;Dn;Dn=Dn.next)if(Dn.key==Un)return Dn};return redefineAll(Gn.prototype,{clear:function clear(){for(var Tn=Vn(this),Un=Tn.index,Dn=Tn.first;Dn;)Dn.removed=!0,Dn.previous&&(Dn.previous=Dn.previous.next=void 0),delete Un[Dn.index],Dn=Dn.next;Tn.first=Tn.last=void 0,Qn?Tn.size=0:this.size=0},delete:function(Tn){var Un=this,Dn=Vn(Un),Hn=getEntry(Un,Tn);if(Hn){var Gn=Hn.next,zn=Hn.previous;delete Dn.index[Hn.index],Hn.removed=!0,zn&&(zn.next=Gn),Gn&&(Gn.previous=zn),Dn.first==Hn&&(Dn.first=Gn),Dn.last==Hn&&(Dn.last=zn),Qn?Dn.size--:Un.size--}return!!Hn},forEach:function forEach(Tn){for(var Un,Dn=Vn(this),Qn=functionBindContext(Tn,arguments.length>1?arguments[1]:void 0,3);Un=Un?Un.next:Dn.first;)for(Qn(Un.value,Un.key,this);Un&&Un.removed;)Un=Un.previous},has:function has(Tn){return!!getEntry(this,Tn)}}),redefineAll(Gn.prototype,Dn?{get:function get(Tn){var Un=getEntry(this,Tn);return Un&&Un.value},set:function set(Tn,Un){return define(this,0===Tn?0:Tn,Un)}}:{add:function add(Tn){return define(this,Tn=0===Tn?0:Tn,Tn)}}),Qn&&Bh(Gn.prototype,"size",{get:function(){return Vn(this).size}}),Gn},setStrong:function(Tn,Un,Dn){var Qn=Un+" Iterator",Hn=Lh(Un),Gn=Lh(Qn);defineIterator(Tn,Un,(function(Tn,Un){Ph(this,{type:Qn,target:Tn,state:Hn(Tn),kind:Un,last:void 0})}),(function(){for(var Tn=Gn(this),Un=Tn.kind,Dn=Tn.last;Dn&&Dn.removed;)Dn=Dn.previous;return Tn.target&&(Tn.last=Dn=Dn?Dn.next:Tn.state.first)?"keys"==Un?{value:Dn.key,done:!1}:"values"==Un?{value:Dn.value,done:!1}:{value:[Dn.key,Dn.value],done:!1}:(Tn.target=void 0,{value:void 0,done:!0})}),Dn?"entries":"values",!Dn,!0),setSpecies(Un)}}),new Map);function createElement(Tn){if("function"==typeof Tn){var Un;try{Un=new Tn}catch(Dn){if("TypeError"!==Dn.name)throw Dn;!function registerCustomElement(Tn){var Un,Dn=/^[A-Za-z][A-Za-z0-9_$]*$/,Qn=Tn.name&&Tn.name.match(Dn);if(Qn){var Hn=/([A-Z])/g;Un=Qn[0].replace(Hn,(function(Tn,Un,Dn){return Dn>0?"-".concat(Un):Un})).toLowerCase()}else Un="custom-element";for(var Gn,Vn=Th.get(Un)||0;Gn="".concat(Un,"-").concat(Vn),customElements.get(Gn);Vn++);customElements.define(Gn,Tn),Th.set(Un,Vn+1)}(Tn),Un=new Tn}return Un}return document.createElement(Tn)}function replace$1(Tn,Un){var Dn=Tn.parentNode;if(!Dn)throw"An element must have a parent before it can be substituted.";return(Tn instanceof HTMLElement||Tn instanceof SVGElement)&&(Un instanceof HTMLElement||Un instanceof SVGElement)&&(Array.prototype.forEach.call(Tn.attributes,(function(Tn){Un.getAttribute(Tn.name)||"class"===Tn.name||"style"===Tn.name||Un.setAttribute(Tn.name,Tn.value)})),Array.prototype.forEach.call(Tn.classList,(function(Tn){Un.classList.add(Tn)})),Array.prototype.forEach.call(Tn.style,(function(Dn){Un.style[Dn]||(Un.style[Dn]=Tn.style[Dn])}))),Un.append.apply(Un,_toConsumableArray(Tn.childNodes)),Dn.replaceChild(Un,Tn),Un}function transmute(Tn,Un){if("function"==typeof Un&&Tn.constructor===Un||"string"==typeof Un&&Tn instanceof Element&&Tn.localName===Un)return Tn;var Dn=createElement(Un);return replace$1(Tn,Dn),Dn}var Nh=er.f,Ih=fails((function(){Nh(1)}));_export({target:"Object",stat:!0,forced:!Qn||Ih,sham:!Qn},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(Tn,Un){return Nh(toIndexedObject(Tn),Un)}});var Oh=Il.f,Fh=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:Fh},{getOwnPropertyNames:Oh});var Uh={tabindex:"tabIndex"},Mh={tabIndex:"tabindex"};var Rh=kh.onFreeze,Dh=Object.freeze,jh=fails((function(){Dh(1)}));_export({target:"Object",stat:!0,forced:jh,sham:!Ch},{freeze:function freeze(Tn){return Dh&&isObject(Tn)?Dh(Rh(Tn)):Tn}});var Qh=fails((function(){vi(1)}));_export({target:"Object",stat:!0,forced:Qh},{keys:function keys(Tn){return vi(toObject(Tn))}});var Hh=Symbol("state"),Gh=Symbol("raiseChangeEventsInNextRender"),Vh=Symbol("changedSinceLastRender");function copyStateWithChanges(Tn,Un){for(var Dn=Object.assign({},Tn[Hh]),Qn={},Hn=Un;;){var Gn=fieldsChanged(Dn,Hn);if(0===Object.keys(Gn).length)break;Object.assign(Dn,Hn),Object.assign(Qn,Gn),Hn=Tn[dd](Dn,Gn)}return{state:Dn,changed:Qn}}function fieldsChanged(Tn,Un){var Dn,Qn,Hn={};for(var Gn in Un)Dn=Un[Gn],Qn=Tn[Gn],(Dn instanceof Date&&Qn instanceof Date?Dn.getTime()===Qn.getTime():Dn===Qn)||(Hn[Gn]=!0);return Hn}var zh=new Map,Kh=Symbol("shadowIdProxy"),qh=Symbol("proxyElement"),$h={get:function get(Tn,Un){var Dn=Tn[qh][ld];return Dn&&"string"==typeof Un?Dn.getElementById(Un):null}};var Wh=function AttributeMarshallingMixin(Tn){return function(Tn){_inherits(AttributeMarshalling,Tn);var Un=_createSuper(AttributeMarshalling);function AttributeMarshalling(){return _classCallCheck(this,AttributeMarshalling),Un.apply(this,arguments)}return _createClass(AttributeMarshalling,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(_get(_getPrototypeOf(AttributeMarshalling.prototype),"attributeChangedCallback",this)&&_get(_getPrototypeOf(AttributeMarshalling.prototype),"attributeChangedCallback",this).call(this,Tn,Un,Dn),Dn!==Un&&!this[ad]){var Qn=function attributeToPropertyName(Tn){var Un=Uh[Tn];if(!Un){var Dn=/-([a-z])/g;Un=Tn.replace(Dn,(function(Tn){return Tn[1].toUpperCase()})),Uh[Tn]=Un}return Un}(Tn);if(Qn in this){var Hn=wh[Tn]?booleanAttributeValue(Tn,Dn):Dn;this[Qn]=Hn}}}}],[{key:"observedAttributes",get:function get(){return function attributesForClass(Tn){if(Tn===HTMLElement)return[];var Un=Object.getPrototypeOf(Tn.prototype).constructor,Dn=Un.observedAttributes;Dn||(Dn=attributesForClass(Un));var Qn=Object.getOwnPropertyNames(Tn.prototype).filter((function(Un){var Dn=Object.getOwnPropertyDescriptor(Tn.prototype,Un);return Dn&&"function"==typeof Dn.set})).map((function(Tn){return function propertyNameToAttribute(Tn){var Un=Mh[Tn];if(!Un){var Dn=/([A-Z])/g;Un=Tn.replace(Dn,"-$1").toLowerCase(),Mh[Tn]=Un}return Un}(Tn)})).filter((function(Tn){return Dn.indexOf(Tn)<0}));return Dn.concat(Qn)}(this)}}]),AttributeMarshalling}(Tn)}(function ReactiveMixin(Tn){var Un=function(Tn){_inherits(Reactive,Tn);var Un,Dn=_createSuper(Reactive);function Reactive(){var Tn;return _classCallCheck(this,Reactive),(Tn=Dn.call(this))[Yu]=void 0,Tn[nd]=!1,Tn[Vh]=null,Tn[sd](Tn[Wu]),Tn}return _createClass(Reactive,[{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(Reactive.prototype),"connectedCallback",this)&&_get(_getPrototypeOf(Reactive.prototype),"connectedCallback",this).call(this),this[id]()}},{key:rd,value:function value(Tn){_get(_getPrototypeOf(Reactive.prototype),rd,this)&&_get(_getPrototypeOf(Reactive.prototype),rd,this).call(this,Tn)}},{key:id,value:function value(){void 0===this[Yu]&&(this[Yu]=!0);var Tn=this[Vh];if(this[Yu]||Tn){var Un=this[nd];this[nd]=this[Gh],this[ad]=!0,this[rd](Tn),this[ad]=!1,this[Vh]=null,this[od](Tn),this[Yu]=!1,this[nd]=Un,this[Gh]=Un}}},{key:od,value:function value(Tn){_get(_getPrototypeOf(Reactive.prototype),od,this)&&_get(_getPrototypeOf(Reactive.prototype),od,this).call(this,Tn)}},{key:sd,value:(Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn){var Un,Dn,Qn,Hn;return regeneratorRuntime.wrap((function _callee$(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:if(this[ad]&&console.warn("".concat(this.constructor.name," called [setState] during rendering, which you should avoid.\nSee https://elix.org/documentation/ReactiveMixin.")),Un=copyStateWithChanges(this,Tn),Dn=Un.state,Qn=Un.changed,!this[Hh]||0!==Object.keys(Qn).length){Gn.next=4;break}return Gn.abrupt("return");case 4:if(Object.freeze(Dn),this[Hh]=Dn,this[nd]&&(this[Gh]=!0),Hn=void 0===this[Yu]||null!==this[Vh],this[Vh]=Object.assign(this[Vh]||{},Qn),!this.isConnected||Hn){Gn.next=14;break}return Gn.next=13,Promise.resolve();case 13:this[id]();case 14:case"end":return Gn.stop()}}),_callee,this)}))),function value(Tn){return Un.apply(this,arguments)})},{key:dd,value:function value(Tn,Un){return _get(_getPrototypeOf(Reactive.prototype),dd,this)?_get(_getPrototypeOf(Reactive.prototype),dd,this).call(this,Tn,Un):{}}},{key:Wu,get:function get(){return _get(_getPrototypeOf(Reactive.prototype),Wu,this)||{}}},{key:ud,get:function get(){return this[Hh]}}]),Reactive}(Tn);return"true"===new URLSearchParams(location.search).get("elixdebug")&&Object.defineProperty(Un.prototype,"state",{get:function get(){return this[ud]}}),Un}(function ShadowTemplateMixin(Tn){return function(Tn){_inherits(ShadowTemplate,Tn);var Un=_createSuper(ShadowTemplate);function ShadowTemplate(){return _classCallCheck(this,ShadowTemplate),Un.apply(this,arguments)}return _createClass(ShadowTemplate,[{key:rd,value:function value(Tn){if(_get(_getPrototypeOf(ShadowTemplate.prototype),rd,this)&&_get(_getPrototypeOf(ShadowTemplate.prototype),rd,this).call(this,Tn),!this[ld]){var Un=function getTemplate(Tn){var Un=Tn[Zu]?void 0:zh.get(Tn.constructor);if(void 0===Un){if((Un=Tn[hd])&&!(Un instanceof HTMLTemplateElement))throw"Warning: the [template] property for ".concat(Tn.constructor.name," must return an HTMLTemplateElement.");Tn[Zu]||zh.set(Tn.constructor,Un||null)}return Un}(this);if(Un){var Dn=this.attachShadow({delegatesFocus:this[Xu],mode:this[cd]}),Qn=document.importNode(Un.content,!0);Dn.append(Qn),this[ld]=Dn}else this[ld]=null}}},{key:ed,get:function get(){if(!this[Kh]){var Tn=_defineProperty({},qh,this);this[Kh]=new Proxy(Tn,$h)}return this[Kh]}},{key:cd,get:function get(){return"open"}}]),ShadowTemplate}(Tn)}(HTMLElement)));function DelegateFocusMixin(Tn){return function(Tn){_inherits(DelegateFocus,Tn);var Un=_createSuper(DelegateFocus);function DelegateFocus(){return _classCallCheck(this,DelegateFocus),Un.apply(this,arguments)}return _createClass(DelegateFocus,[{key:"focus",value:function focus(Tn){var Un=this[wd];Un&&Un.focus(Tn)}},{key:yd,get:function get(){return!0}},{key:wd,get:function get(){return firstFocusableElement(this[Yd])}}]),DelegateFocus}(Tn)}function DelegateInputLabelMixin(Tn){return function(Tn){_inherits(DelegateInputLabel,Tn);var Un=_createSuper(DelegateInputLabel);function DelegateInputLabel(){return _classCallCheck(this,DelegateInputLabel),Un.apply(this,arguments)}return _createClass(DelegateInputLabel,[{key:Vd,value:function value(Tn){var Un=this;if(_get(_getPrototypeOf(DelegateInputLabel.prototype),Vd,this)&&_get(_getPrototypeOf(DelegateInputLabel.prototype),Vd,this).call(this,Tn),this[bd]&&this.addEventListener("focus",(function(){Un[Gd]=!0;var Tn=refreshInputLabel(Un,Un[eh]);Un[Xd]({inputLabel:Tn}),Un[Gd]=!1})),Tn.inputLabel){var Dn=this[eh].inputLabel;Dn?this[Md].setAttribute("aria-label",Dn):this[Md].removeAttribute("aria-label")}}},{key:qd,value:function value(Tn){var Un=this;(_get(_getPrototypeOf(DelegateInputLabel.prototype),qd,this)&&_get(_getPrototypeOf(DelegateInputLabel.prototype),qd,this).call(this,Tn),this[bd])&&(window.requestIdleCallback||setTimeout)((function(){var Tn=refreshInputLabel(Un,Un[eh]);Un[Xd]({inputLabel:Tn})}));var Dn=this[eh],Qn=Dn.ariaLabel,Hn=Dn.ariaLabelledby;Tn.ariaLabel&&!this[eh].removingAriaAttribute&&this.getAttribute("aria-label")&&(this.setAttribute("delegated-label",Qn),this[Xd]({removingAriaAttribute:!0}),this.removeAttribute("aria-label")),Tn.ariaLabelledby&&!this[eh].removingAriaAttribute&&this.getAttribute("aria-labelledby")&&(this.setAttribute("delegated-labelledby",Hn),this[Xd]({removingAriaAttribute:!0}),this.removeAttribute("aria-labelledby")),Tn.removingAriaAttribute&&this[eh].removingAriaAttribute&&this[Xd]({removingAriaAttribute:!1})}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(DelegateInputLabel.prototype),th,this)?_get(_getPrototypeOf(DelegateInputLabel.prototype),th,this).call(this,Tn,Un):{};if(Un.ariaLabel&&Tn.ariaLabel||Un.selectedText&&Tn.ariaLabelledby&&this.matches(":focus-within")){var Qn=refreshInputLabel(this,Tn);Object.assign(Dn,{inputLabel:Qn})}return Dn}},{key:"ariaLabel",get:function get(){return this[eh].ariaLabel},set:function set(Tn){this[eh].removingAriaAttribute||this[Xd]({ariaLabel:String(Tn)})}},{key:"ariaLabelledby",get:function get(){return this[eh].ariaLabelledby},set:function set(Tn){this[eh].removingAriaAttribute||this[Xd]({ariaLabelledby:String(Tn)})}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(DelegateInputLabel.prototype),md,this)||{},{ariaLabel:null,ariaLabelledby:null,inputLabel:null,removingAriaAttribute:!1})}}]),DelegateInputLabel}(Tn)}function getLabelFromElement(Tn){if("selectedText"in Tn)return Tn.selectedText;if("value"in Tn&&"options"in Tn){var Un=Tn.value,Dn=Tn.options.find((function(Tn){return Tn.value===Un}));return Dn?Dn.innerText:""}return"value"in Tn?Tn.value:Tn.innerText}function refreshInputLabel(Tn,Un){var Dn=Un.ariaLabel,Qn=Un.ariaLabelledby,Hn=Tn.isConnected?Tn.getRootNode():null,Gn=null;if(Qn&&Hn)Gn=Qn.split(" ").map((function(Dn){var Qn=Hn.getElementById(Dn);return Qn?Qn===Tn&&null!==Un.value?Un.selectedText:getLabelFromElement(Qn):""})).join(" ");else if(Dn)Gn=Dn;else if(Hn){var Vn=Tn.id;if(Vn){var zn=Hn.querySelector('[for="'.concat(Vn,'"]'));zn instanceof HTMLElement&&(Gn=getLabelFromElement(zn))}if(null===Gn){var Kn=Tn.closest("label");Kn&&(Gn=getLabelFromElement(Kn))}}return Gn&&(Gn=Gn.trim()),Gn}function DelegateInputSelectionMixin(Tn){return function(Tn){_inherits(DelegateInputSelection,Tn);var Un=_createSuper(DelegateInputSelection);function DelegateInputSelection(){return _classCallCheck(this,DelegateInputSelection),Un.apply(this,arguments)}return _createClass(DelegateInputSelection,[{key:"select",value:function select(){this[Md].select()}},{key:"setRangeText",value:function setRangeText(){var Tn;(Tn=this[Md]).setRangeText.apply(Tn,arguments)}},{key:"setSelectionRange",value:function setSelectionRange(){var Tn;(Tn=this[Md]).setSelectionRange.apply(Tn,arguments);var Un=document.createElement("input");Un.select}},{key:"selectionEnd",get:function get(){return this[Md].selectionEnd},set:function set(Tn){this[Md].selectionEnd=Tn}},{key:"selectionStart",get:function get(){return this[Md].selectionStart},set:function set(Tn){this[Md].selectionStart=Tn}}]),DelegateInputSelection}(Tn)}function _templateObject2(){var Tn=_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 Tn},Tn}function _templateObject(){var Tn=_taggedTemplateLiteral([""]);return _templateObject=function _templateObject(){return Tn},Tn}var Xh=!1,Yh=Symbol("focusVisibleChangedListener");function FocusVisibleMixin(Tn){return function(Tn){_inherits(FocusVisible,Tn);var Un=_createSuper(FocusVisible);function FocusVisible(){var Tn;return _classCallCheck(this,FocusVisible),(Tn=Un.call(this)).addEventListener("focusout",(function(Un){Promise.resolve().then((function(){var Dn=Un.relatedTarget||document.activeElement,Qn=_assertThisInitialized(Tn)===Dn,Hn=deepContains(_assertThisInitialized(Tn),Dn);!Qn&&!Hn&&(Tn[Xd]({focusVisible:!1}),document.removeEventListener("focusvisiblechange",Tn[Yh]),Tn[Yh]=null)}))})),Tn.addEventListener("focusin",(function(){Promise.resolve().then((function(){Tn[eh].focusVisible!==Xh&&Tn[Xd]({focusVisible:Xh}),Tn[Yh]||(Tn[Yh]=function(){return function refreshFocus(Tn){Tn[Xd]({focusVisible:Xh})}(_assertThisInitialized(Tn))},document.addEventListener("focusvisiblechange",Tn[Yh]))}))})),Tn}return _createClass(FocusVisible,[{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(FocusVisible.prototype),Vd,this)&&_get(_getPrototypeOf(FocusVisible.prototype),Vd,this).call(this,Tn),Tn.focusVisible){var Un=this[eh].focusVisible;this.toggleAttribute("focus-visible",Un)}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(FocusVisible.prototype),md,this)||{},{focusVisible:!1})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(FocusVisible.prototype),ph,this)||Sh.html(_templateObject());return Tn.content.append(xh(_templateObject2())),Tn}}]),FocusVisible}(Tn)}function updateKeyboardActive(Tn){if(Xh!==Tn){Xh=Tn;var Un=new CustomEvent("focus-visible-changed",{detail:{focusVisible:Xh}});document.dispatchEvent(Un);var Dn=new CustomEvent("focusvisiblechange",{detail:{focusVisible:Xh}});document.dispatchEvent(Dn)}}function FormElementMixin(Tn){return function(Un){_inherits(FormElement,Un);var Dn=_createSuper(FormElement);function FormElement(){var Tn;_classCallCheck(this,FormElement);var Un=_assertThisInitialized(Tn=Dn.call(this));return!Tn[Hd]&&Un.attachInternals&&(Tn[Hd]=Un.attachInternals()),Tn}return _createClass(FormElement,[{key:"checkValidity",value:function checkValidity(){return this[Hd].checkValidity()}},{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(FormElement.prototype),Vd,this)&&_get(_getPrototypeOf(FormElement.prototype),Vd,this).call(this,Tn),Tn.name){var Un=this[eh].name;Un?this.setAttribute("name",Un):this.removeAttribute("name")}if(this[Hd]&&this[Hd].setValidity&&(Tn.valid||Tn.validationMessage)){var Dn=this[eh],Qn=Dn.valid,Hn=Dn.validationMessage;Qn?this[Hd].setValidity({}):this[Hd].setValidity({customError:!0},Hn)}}},{key:qd,value:function value(Tn){_get(_getPrototypeOf(FormElement.prototype),qd,this)&&_get(_getPrototypeOf(FormElement.prototype),qd,this).call(this,Tn),Tn.value&&this[Hd]&&this[Hd].setFormValue(this[eh].value,this[eh])}},{key:"reportValidity",value:function reportValidity(){return this[Hd].reportValidity()}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(FormElement.prototype),md,this)||{},{name:"",validationMessage:"",valid:!0})}},{key:"internals",get:function get(){return this[Hd]}},{key:"form",get:function get(){return this[Hd].form}},{key:"name",get:function get(){return this[eh]?this[eh].name:""},set:function set(Un){var Dn=String(Un);"name"in Tn.prototype&&_set(_getPrototypeOf(FormElement.prototype),"name",Dn,this,!0),this[Xd]({name:Dn})}},{key:"type",get:function get(){return _get(_getPrototypeOf(FormElement.prototype),"type",this)||this.localName}},{key:"validationMessage",get:function get(){return this[eh].validationMessage}},{key:"validity",get:function get(){return this[Hd].validity}},{key:"willValidate",get:function get(){return this[Hd].willValidate}}],[{key:"formAssociated",get:function get(){return!0}}]),FormElement}(Tn)}window.addEventListener("keydown",(function(){updateKeyboardActive(!0)}),{capture:!0}),window.addEventListener("mousedown",(function(){updateKeyboardActive(!1)}),{capture:!0});var Jh=function(Tn){_inherits(Hidden,Wh);var Un=_createSuper(Hidden);function Hidden(){return _classCallCheck(this,Hidden),Un.apply(this,arguments)}return _createClass(Hidden,[{key:Vd,value:function value(Tn){_get(_getPrototypeOf(Hidden.prototype),Vd,this).call(this,Tn),this[bd]&&this.setAttribute("hidden","")}}]),Hidden}(),Zh=Mr.f,ep=er.f,tp=nr.f,np=wo.trim,rp=Dn.Number,ip=rp.prototype,op="Number"==classofRaw(xi(ip)),toNumber=function(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n=toPrimitive(Tn,!1);if("string"==typeof $n&&$n.length>2)if(43===(Un=($n=np($n)).charCodeAt(0))||45===Un){if(88===(Dn=$n.charCodeAt(2))||120===Dn)return NaN}else if(48===Un){switch($n.charCodeAt(1)){case 66:case 98:Qn=2,Hn=49;break;case 79:case 111:Qn=8,Hn=55;break;default:return+$n}for(Vn=(Gn=$n.slice(2)).length,zn=0;zn<Vn;zn++)if((Kn=Gn.charCodeAt(zn))<48||Kn>Hn)return NaN;return parseInt(Gn,Qn)}return+$n};if(zr("Number",!rp(" 0o1")||!rp("0b1")||rp("+0x1"))){for(var ap,sp=function Number(Tn){var Un=arguments.length<1?0:Tn,Dn=this;return Dn instanceof sp&&(op?fails((function(){ip.valueOf.call(Dn)})):"Number"!=classofRaw(Dn))?inheritIfRequired(new rp(toNumber(Un)),Dn,sp):toNumber(Un)},lp=Qn?Zh(rp):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),cp=0;lp.length>cp;cp++)has(rp,ap=lp[cp])&&!has(sp,ap)&&tp(sp,ap,ep(rp,ap));sp.prototype=ip,ip.constructor=sp,kr(Dn,"Number",sp)}function KeyboardMixin(Tn){return function(Tn){_inherits(Keyboard,Tn);var Un=_createSuper(Keyboard);function Keyboard(){var Tn;return _classCallCheck(this,Keyboard),(Tn=Un.call(this)).addEventListener("keydown",function(){var Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Un){return regeneratorRuntime.wrap((function _callee$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Tn[Gd]=!0,Tn[eh].focusVisible||Tn[Xd]({focusVisible:!0}),Tn[Dd](Un)&&(Un.preventDefault(),Un.stopImmediatePropagation()),Dn.next=6,Promise.resolve();case 6:Tn[Gd]=!1;case 7:case"end":return Dn.stop()}}),_callee)})));return function(Tn){return Un.apply(this,arguments)}}()),Tn}return _createClass(Keyboard,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){var Qn;"tabindex"===Tn?(null===Dn?Qn=-1:(Qn=Number(Dn),isNaN(Qn)&&(Qn=this[vd]?this[vd]:0)),this.tabIndex=Qn):_get(_getPrototypeOf(Keyboard.prototype),"attributeChangedCallback",this).call(this,Tn,Un,Dn)}},{key:Dd,value:function value(Tn){return!!_get(_getPrototypeOf(Keyboard.prototype),Dd,this)&&_get(_getPrototypeOf(Keyboard.prototype),Dd,this).call(this,Tn)}},{key:Vd,value:function value(Tn){_get(_getPrototypeOf(Keyboard.prototype),Vd,this)&&_get(_getPrototypeOf(Keyboard.prototype),Vd,this).call(this,Tn),Tn.tabIndex&&(this.tabIndex=this[eh].tabIndex)}},{key:md,get:function get(){var Tn=this[yd]?-1:0;return Object.assign(_get(_getPrototypeOf(Keyboard.prototype),md,this)||{},{tabIndex:Tn})}},{key:"tabIndex",get:function get(){return _get(_getPrototypeOf(Keyboard.prototype),"tabIndex",this)},set:function set(Tn){_get(_getPrototypeOf(Keyboard.prototype),"tabIndex",this)!==Tn&&_set(_getPrototypeOf(Keyboard.prototype),"tabIndex",Tn,this,!0),this[$d]||this[Xd]({tabIndex:Tn})}}]),Keyboard}(Tn)}var up=Symbol("documentMouseupListener");function PopupDragSelectMixin(Tn){return function(Tn){_inherits(PopupDragSelect,Tn);var Un=_createSuper(PopupDragSelect);function PopupDragSelect(){return _classCallCheck(this,PopupDragSelect),Un.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:qd,value:function value(Tn){_get(_getPrototypeOf(PopupDragSelect.prototype),qd,this).call(this,Tn),Tn.opened&&listenIfOpenAndConnected(this)}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(PopupDragSelect.prototype),th,this).call(this,Tn,Un);return Un.opened&&Tn.opened&&Object.assign(Dn,{dragSelect:!0}),Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupDragSelect.prototype),md,this)||{},{dragSelect:!0})}}]),PopupDragSelect}(Tn)}function handleMouseup(Tn){return _handleMouseup.apply(this,arguments)}function _handleMouseup(){return(_handleMouseup=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn){var Un,Dn,Qn,Hn,Gn,Vn;return regeneratorRuntime.wrap((function _callee$(zn){for(;;)switch(zn.prev=zn.next){case 0:if(Dn=(Un=this)[Yd].elementsFromPoint(Tn.clientX,Tn.clientY),!Un.opened){zn.next=16;break}if(Qn=Dn.indexOf(Un[Ud].source)>=0,Hn=Un[Ud].popup,Gn=Dn.indexOf(Hn)>=0,Vn=Hn.frame&&Dn.indexOf(Hn.frame)>=0,!Qn){zn.next=11;break}Un[eh].dragSelect&&(Un[Gd]=!0,Un[Xd]({dragSelect:!1}),Un[Gd]=!1),zn.next=16;break;case 11:if(Gn||Vn){zn.next=16;break}return Un[Gd]=!0,zn.next=15,Un.close();case 15:Un[Gd]=!1;case 16:case"end":return zn.stop()}}),_callee,this)})))).apply(this,arguments)}function listenIfOpenAndConnected(Tn){Tn[eh].opened&&Tn.isConnected?Tn[up]||(Tn[up]=handleMouseup.bind(Tn),document.addEventListener("mouseup",Tn[up])):Tn[up]&&(document.removeEventListener("mouseup",Tn[up]),Tn[up]=null)}function DisabledMixin(Tn){return function(Tn){_inherits(Disabled,Tn);var Un=_createSuper(Disabled);function Disabled(){return _classCallCheck(this,Disabled),Un.apply(this,arguments)}return _createClass(Disabled,[{key:qd,value:function value(Tn){if(_get(_getPrototypeOf(Disabled.prototype),qd,this)&&_get(_getPrototypeOf(Disabled.prototype),qd,this).call(this,Tn),Tn.disabled&&(this.toggleAttribute("disabled",this.disabled),this[Gd])){var Un=new CustomEvent("disabled-changed",{bubbles:!0});this.dispatchEvent(Un);var Dn=new CustomEvent("disabledchange",{bubbles:!0});this.dispatchEvent(Dn)}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Disabled.prototype),md,this)||{},{disabled:!1})}},{key:"disabled",get:function get(){return this[eh].disabled},set:function set(Tn){this[Xd]({disabled:Tn})}}]),Disabled}(Tn)}function LanguageDirectionMixin(Tn){return function(Tn){_inherits(LanguageDirection,Tn);var Un=_createSuper(LanguageDirection);function LanguageDirection(){return _classCallCheck(this,LanguageDirection),Un.apply(this,arguments)}return _createClass(LanguageDirection,[{key:"connectedCallback",value:function connectedCallback(){var Tn="rtl"===getComputedStyle(this).direction;this[Xd]({rightToLeft:Tn}),_get(_getPrototypeOf(LanguageDirection.prototype),"connectedCallback",this).call(this)}}]),LanguageDirection}(Tn)}var dp=Symbol("closePromise"),hp=Symbol("closeResolve");function OpenCloseMixin(Tn){return function(Tn){_inherits(OpenClose,Tn);var Un,Dn,Qn,Hn=_createSuper(OpenClose);function OpenClose(){return _classCallCheck(this,OpenClose),Hn.apply(this,arguments)}return _createClass(OpenClose,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if("opened"===Tn){var Qn=booleanAttributeValue(Tn,Dn);this.opened!==Qn&&(this.opened=Qn)}else _get(_getPrototypeOf(OpenClose.prototype),"attributeChangedCallback",this).call(this,Tn,Un,Dn)}},{key:"close",value:(Qn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn){return regeneratorRuntime.wrap((function _callee$(Un){for(;;)switch(Un.prev=Un.next){case 0:if(!_get(_getPrototypeOf(OpenClose.prototype),"close",this)){Un.next=3;break}return Un.next=3,_get(_getPrototypeOf(OpenClose.prototype),"close",this).call(this);case 3:return this[Xd]({closeResult:Tn}),Un.next=6,this.toggle(!1);case 6:case"end":return Un.stop()}}),_callee,this)}))),function close(Tn){return Qn.apply(this,arguments)})},{key:"open",value:(Dn=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){return regeneratorRuntime.wrap((function _callee2$(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:if(!_get(_getPrototypeOf(OpenClose.prototype),"open",this)){Tn.next=3;break}return Tn.next=3,_get(_getPrototypeOf(OpenClose.prototype),"open",this).call(this);case 3:return this[Xd]({closeResult:void 0}),Tn.next=6,this.toggle(!0);case 6:case"end":return Tn.stop()}}),_callee2,this)}))),function open(){return Dn.apply(this,arguments)})},{key:Vd,value:function value(Tn){(_get(_getPrototypeOf(OpenClose.prototype),Vd,this).call(this,Tn),Tn.opened)&&setInternalState$7(this,"opened",this[eh].opened);Tn.closeFinished&&setInternalState$7(this,"closed",this[eh].closeFinished)}},{key:qd,value:function value(Tn){if(_get(_getPrototypeOf(OpenClose.prototype),qd,this)&&_get(_getPrototypeOf(OpenClose.prototype),qd,this).call(this,Tn),Tn.opened&&this[Gd]){var Un=new CustomEvent("opened-changed",{bubbles:!0,detail:{closeResult:this[eh].closeResult,opened:this[eh].opened}});this.dispatchEvent(Un);var Dn=new CustomEvent("openedchange",{bubbles:!0,detail:{closeResult:this[eh].closeResult,opened:this[eh].opened}});if(this.dispatchEvent(Dn),this[eh].opened){var Qn=new CustomEvent("opened",{bubbles:!0});this.dispatchEvent(Qn);var Hn=new CustomEvent("open",{bubbles:!0});this.dispatchEvent(Hn)}else{var Gn=new CustomEvent("closed",{bubbles:!0,detail:{closeResult:this[eh].closeResult}});this.dispatchEvent(Gn);var Vn=new CustomEvent("close",{bubbles:!0,detail:{closeResult:this[eh].closeResult}});this.dispatchEvent(Vn)}}var zn=this[hp];this.closeFinished&&zn&&(this[hp]=null,this[dp]=null,zn(this[eh].closeResult))}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(OpenClose.prototype),th,this)?_get(_getPrototypeOf(OpenClose.prototype),th,this).call(this,Tn,Un):{};if(Un.openCloseEffects||Un.effect||Un.effectPhase||Un.opened){var Qn=Tn.effect,Hn=Tn.effectPhase,Gn=Tn.openCloseEffects,Vn=Tn.opened,zn=Gn?"close"===Qn&&"after"===Hn:!Vn;Object.assign(Dn,{closeFinished:zn})}return Dn}},{key:"toggle",value:(Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var Tn,Un,Dn=arguments;return regeneratorRuntime.wrap((function _callee3$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:if(Tn=Dn.length>0&&void 0!==Dn[0]?Dn[0]:!this.opened,!_get(_getPrototypeOf(OpenClose.prototype),"toggle",this)){Qn.next=4;break}return Qn.next=4,_get(_getPrototypeOf(OpenClose.prototype),"toggle",this).call(this,Tn);case 4:if(Tn===this[eh].opened){Qn.next=10;break}return Un={opened:Tn},this[eh].openCloseEffects&&(Un.effect=Tn?"open":"close","after"===this[eh].effectPhase&&(Un.effectPhase="before")),Qn.next=10,this[Xd](Un);case 10:case"end":return Qn.stop()}}),_callee3,this)}))),function toggle(){return Un.apply(this,arguments)})},{key:"whenClosed",value:function whenClosed(){var Tn=this;return this[dp]||(this[dp]=new Promise((function(Un){Tn[hp]=Un}))),this[dp]}},{key:"closed",get:function get(){return this[eh]&&!this[eh].opened}},{key:"closeFinished",get:function get(){return this[eh].closeFinished}},{key:"closeResult",get:function get(){return this[eh].closeResult}},{key:md,get:function get(){var Tn={closeResult:null,opened:!1};return this[Zd]&&Object.assign(Tn,{closeFinished:!0,effect:"close",effectPhase:"after",openCloseEffects:!0}),Object.assign(_get(_getPrototypeOf(OpenClose.prototype),md,this)||{},Tn)}},{key:"opened",get:function get(){return this[eh]&&this[eh].opened},set:function set(Tn){this[Xd]({closeResult:void 0}),this.toggle(Tn)}}]),OpenClose}(Tn)}function AriaRoleMixin(Tn){return function(Tn){_inherits(AriaRole,Tn);var Un=_createSuper(AriaRole);function AriaRole(){return _classCallCheck(this,AriaRole),Un.apply(this,arguments)}return _createClass(AriaRole,[{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(AriaRole.prototype),Vd,this)&&_get(_getPrototypeOf(AriaRole.prototype),Vd,this).call(this,Tn),Tn.role){var Un=this[eh].role;Un?this.setAttribute("role",Un):this.removeAttribute("role")}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(AriaRole.prototype),md,this)||{},{role:null})}},{key:"role",get:function get(){return _get(_getPrototypeOf(AriaRole.prototype),"role",this)},set:function set(Tn){var Un=String(Tn);_set(_getPrototypeOf(AriaRole.prototype),"role",Un,this,!0),this[$d]||this[Xd]({s:Un})}}]),AriaRole}(Tn)}function _templateObject$1(){var Tn=_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 Tn},Tn}var pp=AriaRoleMixin(Wh),gp=function(Tn){_inherits(Backdrop,pp);var Un=_createSuper(Backdrop);function Backdrop(){return _classCallCheck(this,Backdrop),Un.apply(this,arguments)}return _createClass(Backdrop,[{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Backdrop.prototype),md,this),{role:"none"})}},{key:ph,get:function get(){return Sh.html(_templateObject$1())}}]),Backdrop}();function _templateObject$2(){var Tn=_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 Tn},Tn}var fp=function(Tn){_inherits(OverlayFrame,Wh);var Un=_createSuper(OverlayFrame);function OverlayFrame(){return _classCallCheck(this,OverlayFrame),Un.apply(this,arguments)}return _createClass(OverlayFrame,[{key:ph,get:function get(){return Sh.html(_templateObject$2())}}]),OverlayFrame}(),Ap=!checkCorrectnessOfIteration((function(Tn){Array.from(Tn)}));function _templateObject2$1(){var Tn=_taggedTemplateLiteral(["\n <style>\n :host([closed]) {\n display: none;\n }\n </style>\n "]);return _templateObject2$1=function _templateObject2(){return Tn},Tn}function _templateObject$3(){var Tn=_taggedTemplateLiteral([""]);return _templateObject$3=function _templateObject(){return Tn},Tn}_export({target:"Array",stat:!0,forced:Ap},{from:Nc});var mp=Symbol("appendedToDocument"),vp=Symbol("assignedZIndex"),yp=Symbol("restoreFocusToElement");function bringToFront(Tn){var Un=function maxZIndexInUse(){var Tn=document.body.querySelectorAll("*"),Un=Array.from(Tn,(function(Tn){var Un=getComputedStyle(Tn),Dn=0;if("static"!==Un.position&&"auto"!==Un.zIndex){var Qn=Un.zIndex?parseInt(Un.zIndex):0;Dn=isNaN(Qn)?0:Qn}return Dn}));return Math.max.apply(Math,_toConsumableArray(Un))}()+1;Tn[vp]=Un,Tn.style.zIndex=Un.toString()}function hasZIndex(Tn){var Un=getComputedStyle(Tn).zIndex,Dn=Tn.style.zIndex,Qn=!isNaN(parseInt(Dn));if("auto"===Un)return Qn;if("0"===Un&&!Qn){var Hn=Tn.assignedSlot||(Tn instanceof ShadowRoot?Tn.host:Tn.parentNode);if(!(Hn instanceof HTMLElement))return!0;if(!hasZIndex(Hn))return!1}return!0}function SlotContentMixin(Tn){return function(Tn){_inherits(SlotContent,Tn);var Un=_createSuper(SlotContent);function SlotContent(){return _classCallCheck(this,SlotContent),Un.apply(this,arguments)}return _createClass(SlotContent,[{key:qd,value:function value(Tn){var Un=this;if(_get(_getPrototypeOf(SlotContent.prototype),qd,this)&&_get(_getPrototypeOf(SlotContent.prototype),qd,this).call(this,Tn),this[bd]){var Dn=this[Ad];Dn&&Dn.addEventListener("slotchange",_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var Tn;return regeneratorRuntime.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Un[Gd]=!0,Tn=Dn.assignedNodes({flatten:!0}),Object.freeze(Tn),Un[Xd]({content:Tn}),Qn.next=6,Promise.resolve();case 6:Un[Gd]=!1;case 7:case"end":return Qn.stop()}}),_callee)}))))}}},{key:Ad,get:function get(){var Tn=this[Yd]&&this[Yd].querySelector("slot:not([name])");return this[Yd]&&Tn||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.")),Tn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(SlotContent.prototype),md,this)||{},{content:null})}}]),SlotContent}(Tn)}function _templateObject$4(){var Tn=_taggedTemplateLiteral(['\n <style>\n :host {\n align-items: center;\n display: inline-flex;\n flex-direction: column;\n justify-content: center;\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: flex;\n flex-direction: column;\n max-height: 100%;\n max-width: 100%;\n overscroll-behavior: contain;\n pointer-events: initial;\n position: relative;\n }\n\n #frameContent {\n display: flex;\n flex: 1;\n flex-direction: column;\n height: 100%;\n overflow: hidden;\n width: 100%;\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 Tn},Tn}var _p=OpenCloseMixin(function OverlayMixin(Tn){return function(Tn){_inherits(Overlay,Tn);var Un,Dn=_createSuper(Overlay);function Overlay(){return _classCallCheck(this,Overlay),Dn.apply(this,arguments)}return _createClass(Overlay,[{key:"open",value:(Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:if(this[eh].persistent||this.isConnected||(this[mp]=!0,document.body.append(this)),!_get(_getPrototypeOf(Overlay.prototype),"open",this)){Tn.next=4;break}return Tn.next=4,_get(_getPrototypeOf(Overlay.prototype),"open",this).call(this);case 4:case"end":return Tn.stop()}}),_callee,this)}))),function open(){return Un.apply(this,arguments)})},{key:Vd,value:function value(Tn){var Un=this;(_get(_getPrototypeOf(Overlay.prototype),Vd,this)&&_get(_getPrototypeOf(Overlay.prototype),Vd,this).call(this,Tn),this[bd]&&this.addEventListener("blur",(function(Tn){var Dn=Tn.relatedTarget||document.activeElement;Dn instanceof HTMLElement&&(deepContains(Un,Dn)||(Un.opened?Un[yp]=Dn:(Dn.focus(),Un[yp]=null)))})),Tn.effectPhase||Tn.opened||Tn.persistent)&&(this[eh].persistent||((void 0===this.closeFinished?this.closed:this.closeFinished)?this[vp]&&(this.style.zIndex="",this[vp]=null):this[vp]?this.style.zIndex=this[vp]:hasZIndex(this)||bringToFront(this)))}},{key:qd,value:function value(Tn){if(_get(_getPrototypeOf(Overlay.prototype),qd,this)&&_get(_getPrototypeOf(Overlay.prototype),qd,this).call(this,Tn),this[bd]&&this[eh].persistent&&!hasZIndex(this)&&bringToFront(this),Tn.opened&&this[eh].autoFocus)if(this[eh].opened){this[yp]||document.activeElement===document.body||(this[yp]=document.activeElement);var Un=firstFocusableElement(this);Un&&Un.focus()}else this[yp]&&(this[yp].focus(),this[yp]=null);!this[bd]&&!this[eh].persistent&&this.closeFinished&&this[mp]&&(this[mp]=!1,this.parentNode&&this.parentNode.removeChild(this))}},{key:"autoFocus",get:function get(){return this[eh].autoFocus},set:function set(Tn){this[Xd]({autoFocus:Tn})}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Overlay.prototype),md,this)||{},{autoFocus:!0,persistent:!1})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(Overlay.prototype),ph,this)||Sh.html(_templateObject$3());return Tn.content.append(xh(_templateObject2$1())),Tn}}]),Overlay}(Tn)}(SlotContentMixin(Wh))),wp=function(Tn){_inherits(Overlay,_p);var Un=_createSuper(Overlay);function Overlay(){return _classCallCheck(this,Overlay),Un.apply(this,arguments)}return _createClass(Overlay,[{key:Vd,value:function value(Tn){_get(_getPrototypeOf(Overlay.prototype),Vd,this).call(this,Tn),renderParts(this[Yd],this[eh],Tn)}},{key:qd,value:function value(Tn){_get(_getPrototypeOf(Overlay.prototype),qd,this).call(this,Tn),Tn.opened&&this[eh].content&&this[eh].content.forEach((function(Tn){Tn[gd]&&Tn[gd]()}))}},{key:"backdrop",get:function get(){return this[Ud]&&this[Ud].backdrop}},{key:"backdropPartType",get:function get(){return this[eh].backdropPartType},set:function set(Tn){this[Xd]({backdropPartType:Tn})}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Overlay.prototype),md,this),{backdropPartType:gp,framePartType:fp})}},{key:"frame",get:function get(){return this[Ud].frame}},{key:"framePartType",get:function get(){return this[eh].framePartType},set:function set(Tn){this[Xd]({framePartType:Tn})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(Overlay.prototype),ph,this);return Tn.content.append(xh(_templateObject$4())),renderParts(Tn.content,this[eh]),Tn}}]),Overlay}();function renderParts(Tn,Un,Dn){if(!Dn||Dn.backdropPartType){var Qn=Un.backdropPartType,Hn=Tn.getElementById("backdrop");Hn&&transmute(Hn,Qn)}if(!Dn||Dn.framePartType){var Gn=Un.framePartType,Vn=Tn.getElementById("frame");Vn&&transmute(Vn,Gn)}}var xp=Symbol("implicitCloseListener");function blurHandler(Tn){return _blurHandler.apply(this,arguments)}function _blurHandler(){return(_blurHandler=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn){var Un,Dn;return regeneratorRuntime.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:if(Un=this,!((Dn=Tn.relatedTarget||document.activeElement)instanceof Element)||deepContains(Un,Dn)){Qn.next=7;break}return Un[Gd]=!0,Qn.next=6,Un.close({canceled:"window blur"});case 6:Un[Gd]=!1;case 7:case"end":return Qn.stop()}}),_callee,this)})))).apply(this,arguments)}function closeHandler(Tn){return _closeHandler.apply(this,arguments)}function _closeHandler(){return(_closeHandler=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(Tn){var Un,Dn;return regeneratorRuntime.wrap((function _callee2$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:if(Un=this,Dn="resize"!==Tn.type||Un[eh].closeOnWindowResize,ownEvent(Un,Tn)||!Dn){Qn.next=7;break}return Un[Gd]=!0,Qn.next=6,Un.close({canceled:"window ".concat(Tn.type)});case 6:Un[Gd]=!1;case 7:case"end":return Qn.stop()}}),_callee2,this)})))).apply(this,arguments)}var Sp=KeyboardMixin(function PopupModalityMixin(Tn){return function(Tn){_inherits(PopupModality,Tn);var Un=_createSuper(PopupModality);function PopupModality(){var Tn;return _classCallCheck(this,PopupModality),(Tn=Un.call(this)).addEventListener("blur",blurHandler.bind(_assertThisInitialized(Tn))),Tn}return _createClass(PopupModality,[{key:Dd,value:function value(Tn){var Un=!1;switch(Tn.key){case"Escape":this.close({canceled:"Escape"}),Un=!0}return Un||_get(_getPrototypeOf(PopupModality.prototype),"keydown",this)&&_get(_getPrototypeOf(PopupModality.prototype),"keydown",this).call(this,Tn)||!1}},{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(PopupModality.prototype),Vd,this)&&_get(_getPrototypeOf(PopupModality.prototype),Vd,this).call(this,Tn),Tn.role){var Un=this[eh].role;this.setAttribute("role",Un)}}},{key:qd,value:function value(Tn){var Un=this;(_get(_getPrototypeOf(PopupModality.prototype),qd,this)&&_get(_getPrototypeOf(PopupModality.prototype),qd,this).call(this,Tn),Tn.opened)&&(this.opened?("requestIdleCallback"in window?window.requestIdleCallback:setTimeout)((function(){Un.opened&&function addEventListeners(Tn){Tn[xp]=closeHandler.bind(Tn),window.addEventListener("blur",Tn[xp]),window.addEventListener("resize",Tn[xp]),window.addEventListener("scroll",Tn[xp])}(Un)})):function removeEventListeners(Tn){Tn[xp]&&(window.removeEventListener("blur",Tn[xp]),window.removeEventListener("resize",Tn[xp]),window.removeEventListener("scroll",Tn[xp]),Tn[xp]=null)}(this))}},{key:"closeOnWindowResize",get:function get(){return this[eh].closeOnWindowResize},set:function set(Tn){this[Xd]({closeOnWindowResize:Tn})}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupModality.prototype),md,this)||{},{closeOnWindowResize:!0,role:"alert"})}},{key:"role",get:function get(){return _get(_getPrototypeOf(PopupModality.prototype),"role",this)},set:function set(Tn){_set(_getPrototypeOf(PopupModality.prototype),"role",Tn,this,!0),this[$d]||this[Xd]({role:Tn})}}]),PopupModality}(Tn)}(wp)),Cp=function(Tn){_inherits(Popup,Sp);var Un=_createSuper(Popup);function Popup(){return _classCallCheck(this,Popup),Un.apply(this,arguments)}return _createClass(Popup,[{key:Vd,value:function value(Tn){_get(_getPrototypeOf(Popup.prototype),Vd,this).call(this,Tn),Tn.backdropPartType&&(this[Ud].backdrop.addEventListener("mousedown",mousedownHandler.bind(this)),"PointerEvent"in window||this[Ud].backdrop.addEventListener("touchend",mousedownHandler))}}]),Popup}();function mousedownHandler(Tn){return _mousedownHandler.apply(this,arguments)}function _mousedownHandler(){return(_mousedownHandler=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn){var Un;return regeneratorRuntime.wrap((function _callee$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return(Un=this)[Gd]=!0,Dn.next=4,Un.close({canceled:"mousedown outside"});case 4:Un[Gd]=!1,Tn.preventDefault(),Tn.stopPropagation();case 7:case"end":return Dn.stop()}}),_callee,this)})))).apply(this,arguments)}function _templateObject$5(){var Tn=_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 #popupContainer {\n height: 0;\n outline: none;\n position: absolute;\n width: 100%;\n }\n\n [part~="popup"] {\n align-items: initial;\n height: initial;\n justify-content: initial;\n left: initial;\n outline: none;\n position: absolute;\n top: initial;\n width: initial;\n }\n </style>\n <div id="source" part="source">\n <slot name="source"></slot>\n </div>\n <div id="popupContainer" role="none">\n <div id="popup" part="popup" exportparts="backdrop, frame" role="none">\n <slot></slot>\n </div>\n </div>\n ']);return _templateObject$5=function _templateObject(){return Tn},Tn}var kp=Symbol("resizeListener"),Bp=DisabledMixin(FocusVisibleMixin(LanguageDirectionMixin(OpenCloseMixin(Wh)))),Ep=function(Tn){_inherits(PopupSource,Bp);var Un=_createSuper(PopupSource);function PopupSource(){return _classCallCheck(this,PopupSource),Un.apply(this,arguments)}return _createClass(PopupSource,[{key:Vd,value:function value(Tn){var Un=this;(_get(_getPrototypeOf(PopupSource.prototype),Vd,this).call(this,Tn),renderParts$1(this[Yd],this[eh],Tn),this[bd]||Tn.ariaHasPopup)&&(null===this[eh].ariaHasPopup?this[Md].removeAttribute("aria-haspopup"):this[Md].setAttribute("aria-haspopup",this[eh].ariaHasPopup));if(Tn.popupPartType&&(this[Ud].popup.addEventListener("open",(function(){Un.opened||(Un[Gd]=!0,Un.open(),Un[Gd]=!1)})),this[Ud].popup.addEventListener("close",(function(Tn){if(!Un.closed){Un[Gd]=!0;var Dn=Tn.detail.closeResult;Un.close(Dn),Un[Gd]=!1}}))),Tn.opened||Tn.popupMeasured){var Dn=this[eh],Qn=Dn.calculatedFrameMaxHeight,Hn=Dn.calculatedFrameMaxWidth,Gn=Dn.calculatedPopupLeft,Vn=Dn.calculatedPopupPosition,zn=Dn.calculatedPopupRight,Kn=Dn.opened,$n=Dn.popupMeasured;if(Kn)if($n){var Wn="below"===Vn,Xn=this[Ud].popup;Object.assign(Xn.style,{bottom:Wn?"":0,left:Gn,opacity:"",right:zn});var Yn=Xn.frame;Object.assign(Yn.style,{maxHeight:Qn?"".concat(Qn,"px"):"",maxWidth:Hn?"".concat(Hn,"px"):""}),Object.assign(this[Ud].popupContainer.style,{overflow:"",top:Wn?"":"0"})}else Object.assign(this[Ud].popupContainer.style,{overflow:"hidden"}),Object.assign(this[Ud].popup.style,{opacity:0});else Kn||(Object.assign(this[Ud].popupContainer.style,{overflow:""}),Object.assign(this[Ud].popup.style,{bottom:"",left:"",opacity:"",position:"",right:""}))}if(Tn.opened){var Jn=this[eh].opened;this[Ud].popup.opened=Jn}if(Tn.disabled&&"disabled"in this[Ud].source){var Zn=this[eh].disabled;this[Ud].source.disabled=Zn}if(Tn.calculatedPopupPosition){var er=this[eh].calculatedPopupPosition,tr=this[Ud].popup;"position"in tr&&(tr.position=er)}}},{key:qd,value:function value(Tn){_get(_getPrototypeOf(PopupSource.prototype),qd,this).call(this,Tn);var Un=this[eh].opened;Tn.opened?Un?function waitThenRenderOpened(Tn){setTimeout((function(){Tn[eh].opened&&(measurePopup(Tn),function addEventListeners$1(Tn){var Un=Tn;Un[kp]=function(){measurePopup(Tn)},window.addEventListener("resize",Un[kp])}(Tn))}))}(this):function removeEventListeners$1(Tn){var Un=Tn;Un[kp]&&(window.removeEventListener("resize",Un[kp]),Un[kp]=null)}(this):Un&&!this[eh].popupMeasured&&measurePopup(this)}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(PopupSource.prototype),th,this).call(this,Tn,Un);return(Un.opened&&!Tn.opened||Tn.opened&&(Un.horizontalAlign||Un.rightToLeft))&&Object.assign(Dn,{calculatedFrameMaxHeight:null,calculatedFrameMaxWidth:null,calculatedPopupLeft:null,calculatedPopupPosition:null,calculatedPopupRight:null,popupMeasured:!1}),Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupSource.prototype),md,this),{ariaHasPopup:"true",horizontalAlign:"start",popupHeight:null,popupMeasured:!1,popupPosition:"below",popupPartType:Cp,popupWidth:null,roomAbove:null,roomBelow:null,roomLeft:null,roomRight:null,sourcePartType:"div"})}},{key:Md,get:function get(){return this[Ud].source}},{key:"frame",get:function get(){return this[Ud].popup.frame}},{key:"horizontalAlign",get:function get(){return this[eh].horizontalAlign},set:function set(Tn){this[Xd]({horizontalAlign:Tn})}},{key:"popupPosition",get:function get(){return this[eh].popupPosition},set:function set(Tn){this[Xd]({popupPosition:Tn})}},{key:"popupPartType",get:function get(){return this[eh].popupPartType},set:function set(Tn){this[Xd]({popupPartType:Tn})}},{key:"sourcePartType",get:function get(){return this[eh].sourcePartType},set:function set(Tn){this[Xd]({sourcePartType:Tn})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PopupSource.prototype),ph,this);return Tn.content.append(xh(_templateObject$5())),renderParts$1(Tn.content,this[eh]),Tn}}]),PopupSource}();function measurePopup(Tn){var Un,Dn,Qn,Hn=window.innerHeight,Gn=window.innerWidth,Vn=Tn[Ud].popup.getBoundingClientRect(),zn=Tn.getBoundingClientRect(),Kn=Vn.height,$n=Vn.width,Wn=Tn[eh],Xn=Wn.horizontalAlign,Yn=Wn.popupPosition,Jn=Wn.rightToLeft,Zn=zn.top,er=Math.ceil(Hn-zn.bottom),tr=zn.right,nr=Math.ceil(Gn-zn.left),rr=Kn<=Zn,ir=Kn<=er,or="below"===Yn,ar=or&&(ir||er>=Zn)||!or&&!rr&&er>=Zn,sr=ar&&ir||!ar&&rr?null:ar?er:Zn,lr=ar?"below":"above";if("stretch"===Xn)Un=0,Dn=0,Qn=null;else{var cr="left"===Xn||(Jn?"end"===Xn:"start"===Xn),ur=cr&&($n<=nr||nr>=tr)||!cr&&!($n<=tr)&&nr>=tr;Un=ur?0:null,Dn=ur?null:0,Qn=ur&&nr||!ur&&tr?null:ur?nr:tr}Tn[Xd]({calculatedFrameMaxHeight:sr,calculatedFrameMaxWidth:Qn,calculatedPopupLeft:Un,calculatedPopupPosition:lr,calculatedPopupRight:Dn,popupMeasured:!0})}function renderParts$1(Tn,Un,Dn){if(!Dn||Dn.popupPartType){var Qn=Un.popupPartType,Hn=Tn.getElementById("popup");Hn&&transmute(Hn,Qn)}if(!Dn||Dn.sourcePartType){var Gn=Un.sourcePartType,Vn=Tn.getElementById("source");Vn&&transmute(Vn,Gn)}}function _templateObject$6(){var Tn=_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 Tn},Tn}var Pp=DisabledMixin(Wh),Lp=function(Tn){_inherits(UpDownToggle,Pp);var Un=_createSuper(UpDownToggle);function UpDownToggle(){return _classCallCheck(this,UpDownToggle),Un.apply(this,arguments)}return _createClass(UpDownToggle,[{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(UpDownToggle.prototype),Vd,this).call(this,Tn),Tn.direction){var Un=this[eh].direction;this[Ud].downIcon.style.display="down"===Un?"block":"none",this[Ud].upIcon.style.display="up"===Un?"block":"none"}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(UpDownToggle.prototype),md,this),{direction:"down"})}},{key:"direction",get:function get(){return this[eh].direction},set:function set(Tn){this[Xd]({direction:Tn})}},{key:ph,get:function get(){return Sh.html(_templateObject$6())}}]),UpDownToggle}();function _templateObject2$2(){var Tn=_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 Tn},Tn}function _templateObject$7(){var Tn=_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 Tn},Tn}function PopupToggleMixin(Tn){return function(Tn){_inherits(PopupToggle,Tn);var Un=_createSuper(PopupToggle);function PopupToggle(){return _classCallCheck(this,PopupToggle),Un.apply(this,arguments)}return _createClass(PopupToggle,[{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(PopupToggle.prototype),Vd,this).call(this,Tn),renderParts$2(this[Yd],this[eh],Tn),Tn.popupPosition||Tn.popupTogglePartType){var Un="below"===this[eh].popupPosition?"down":"up",Dn=this[Ud].popupToggle;"direction"in Dn&&(Dn.direction=Un)}if(Tn.disabled){var Qn=this[eh].disabled;this[Ud].popupToggle.disabled=Qn}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupToggle.prototype),md,this)||{},{popupTogglePartType:Lp})}},{key:"popupTogglePartType",get:function get(){return this[eh].popupTogglePartType},set:function set(Tn){this[Xd]({popupTogglePartType:Tn})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PopupToggle.prototype),ph,this),Un=Tn.content.querySelector('[part~="source"]');return Un&&Un.append(xh(_templateObject$7())),renderParts$2(Tn.content,this[eh]),Tn.content.append(xh(_templateObject2$2())),Tn}}]),PopupToggle}(Tn)}function renderParts$2(Tn,Un,Dn){if(!Dn||Dn.popupTogglePartType){var Qn=Un.popupTogglePartType,Hn=Tn.getElementById("popupToggle");Hn&&transmute(Hn,Qn)}}function _templateObject2$3(){var Tn=_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\n [part~="popup"] {\n flex-direction: column;\n max-height: 100vh;\n max-width: 100vh;\n }\n </style>\n ']);return _templateObject2$3=function _templateObject2(){return Tn},Tn}function _templateObject$8(){var Tn=_taggedTemplateLiteral(['\n <input id="input" part="input"></input>\n ']);return _templateObject$8=function _templateObject(){return Tn},Tn}var Tp=DelegateFocusMixin(DelegateInputLabelMixin(DelegateInputSelectionMixin(FocusVisibleMixin(FormElementMixin(KeyboardMixin(PopupDragSelectMixin(PopupToggleMixin(Ep)))))))),Np=function(Tn){_inherits(ComboBox,Tp);var Un=_createSuper(ComboBox);function ComboBox(){return _classCallCheck(this,ComboBox),Un.apply(this,arguments)}return _createClass(ComboBox,[{key:Dd,value:function value(Tn){var Un;switch(Tn.key){case"ArrowDown":case"ArrowUp":case"PageDown":case"PageUp":this.closed&&(this.open(),Un=!0);break;case"Enter":this.opened||(this.open(),Un=!0);break;case"Escape":this.close({canceled:"Escape"}),Un=!0;break;case"F4":this.opened?this.close({canceled:"F4"}):this.open(),Un=!0}return Un||_get(_getPrototypeOf(ComboBox.prototype),Dd,this)&&_get(_getPrototypeOf(ComboBox.prototype),Dd,this).call(this,Tn)}},{key:Vd,value:function value(Tn){var Un=this;if(_get(_getPrototypeOf(ComboBox.prototype),Vd,this).call(this,Tn),renderParts$3(this[Yd],this[eh],Tn),Tn.inputPartType&&(this[Ud].input.addEventListener("blur",(function(){Un[Xd]({focused:!1}),Un.opened&&(Un[Gd]=!0,Un.close(),Un[Gd]=!1)})),this[Ud].input.addEventListener("focus",(function(){Un[Gd]=!0,Un[Xd]({focused:!0}),Un[Gd]=!1})),this[Ud].input.addEventListener("input",(function(){Un[Gd]=!0;var Tn=Un[Ud].input.value,Dn={value:Tn,selectText:!1};Un.closed&&Tn>""&&(Dn.opened=!0),Un[Xd](Dn),Un[Gd]=!1})),this[Ud].input.addEventListener("keydown",(function(){Un[Gd]=!0,Un[Xd]({selectText:!1}),Un[Gd]=!1})),this[Ud].input.addEventListener("mousedown",(function(Tn){0===Tn.button&&(Un[Gd]=!0,Un[Xd]({selectText:!1}),Un.closed&&!Un.disabled&&Un.open(),Un[Gd]=!1)}))),Tn.opened||Tn.inputPartType){var Dn=this[Ud].input;if("opened"in Dn){var Qn=this[eh].opened;Dn.opened=Qn}}if(Tn.popupTogglePartType){var Hn=this[Ud].popupToggle,Gn=this[Ud].input;Hn.addEventListener("mousedown",(function(Tn){0===Tn.button&&(Un[eh].disabled?Tn.preventDefault():(Un[Gd]=!0,Un.toggle(),Un[Gd]=!1))})),Hn instanceof HTMLElement&&Gn instanceof HTMLElement&&forwardFocus(Hn,Gn)}if(Tn.popupPartType){var Vn=this[Ud].popup,zn=Vn;Vn.removeAttribute("tabindex"),"backdropPartType"in Vn&&(zn.backdropPartType=Jh),"autoFocus"in Vn&&(zn.autoFocus=!1);var Kn=zn.frame;Kn&&Object.assign(Kn.style,{display:"flex",flexDirection:"column"}),"closeOnWindowResize"in Vn&&(zn.closeOnWindowResize=!1)}if(Tn.disabled){var $n=this[eh].disabled;this[Ud].input.disabled=$n,this[Ud].popupToggle.disabled=$n}if(Tn.placeholder){var Wn=this[eh].placeholder;this[Ud].input.placeholder=Wn}if(Tn.popupPosition||Tn.popupTogglePartType){var Xn="below"===this[eh].popupPosition?"down":"up",Yn=this[Ud].popupToggle;"direction"in Yn&&(Yn.direction=Xn)}if(Tn.value){var value=this[eh].value;this[Ud].input.value=value}}},{key:qd,value:function value(Tn){var Un=this;_get(_getPrototypeOf(ComboBox.prototype),qd,this).call(this,Tn),this[eh].selectText&&setTimeout((function(){if(Un[eh].selectText){var Tn=Un[Ud].input;Tn.value>""&&(Tn.selectionStart=0,Tn.selectionEnd=Tn.value.length)}}))}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(ComboBox.prototype),th,this).call(this,Tn,Un);if(Un.opened||Un.value){var Qn=Tn.closeResult;if(!Tn.opened)Qn&&Qn.canceled?Object.assign(Dn,{value:Tn.confirmedValue}):Object.assign(Dn,{confirmedValue:Tn.value})}if(Un.opened&&!Tn.opened){var Hn=!matchMedia("(pointer: coarse)").matches;Object.assign(Dn,{selectText:Hn})}return Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(ComboBox.prototype),md,this),{ariaHasPopup:null,confirmedValue:"",focused:!1,inputPartType:"input",orientation:"vertical",placeholder:"",selectText:!1,value:""})}},{key:Md,get:function get(){return this[Ud].input}},{key:"input",get:function get(){return this[Yd]?this[Ud].input:null}},{key:"inputPartType",get:function get(){return this[eh].inputPartType},set:function set(Tn){this[Xd]({inputPartType:Tn})}},{key:"placeholder",get:function get(){return this[eh].placeholder},set:function set(Tn){this[Xd]({placeholder:String(Tn)})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(ComboBox.prototype),ph,this),Un=Tn.content.querySelector('slot[name="source"]');return Un&&Un.replaceWith(xh(_templateObject$8())),renderParts$3(Tn.content,this[eh]),Tn.content.append(xh(_templateObject2$3())),Tn}},{key:"value",get:function get(){return this[eh].value},set:function set(Tn){this[Xd]({value:Tn})}}]),ComboBox}();function renderParts$3(Tn,Un,Dn){if(!Dn||Dn.inputPartType){var Qn=Un.inputPartType,Hn=Tn.getElementById("input");Hn&&transmute(Hn,Qn)}}var Ip=["applet","basefont","embed","font","frame","frameset","isindex","keygen","link","multicol","nextid","noscript","object","param","script","style","template","noembed"];function getDefaultText(Tn){return Tn.getAttribute("aria-label")||Tn.getAttribute("alt")||Tn.innerText||Tn.textContent||""}function CursorAPIMixin(Tn){return function(Tn){_inherits(CursorAPI,Tn);var Un=_createSuper(CursorAPI);function CursorAPI(){return _classCallCheck(this,CursorAPI),Un.apply(this,arguments)}return _createClass(CursorAPI,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if("current-index"===Tn)this.currentIndex=Number(Dn);else if("current-item-required"===Tn){var Qn=booleanAttributeValue(Tn,Dn);this.currentItemRequired!==Qn&&(this.currentItemRequired=Qn)}else if("cursor-operations-wrap"===Tn){var Hn=booleanAttributeValue(Tn,Dn);this.cursorOperationsWrap!==Hn&&(this.cursorOperationsWrap=Hn)}else _get(_getPrototypeOf(CursorAPI.prototype),"attributeChangedCallback",this).call(this,Tn,Un,Dn)}},{key:"goFirst",value:function goFirst$1(){return _get(_getPrototypeOf(CursorAPI.prototype),"goFirst",this)&&_get(_getPrototypeOf(CursorAPI.prototype),"goFirst",this).call(this),this[kd]()}},{key:"goLast",value:function goLast$1(){return _get(_getPrototypeOf(CursorAPI.prototype),"goLast",this)&&_get(_getPrototypeOf(CursorAPI.prototype),"goLast",this).call(this),this[Bd]()}},{key:"goNext",value:function goNext$1(){return _get(_getPrototypeOf(CursorAPI.prototype),"goNext",this)&&_get(_getPrototypeOf(CursorAPI.prototype),"goNext",this).call(this),this[Pd]()}},{key:"goPrevious",value:function goPrevious$1(){return _get(_getPrototypeOf(CursorAPI.prototype),"goPrevious",this)&&_get(_getPrototypeOf(CursorAPI.prototype),"goPrevious",this).call(this),this[Ld]()}},{key:qd,value:function value(Tn){if(_get(_getPrototypeOf(CursorAPI.prototype),qd,this)&&_get(_getPrototypeOf(CursorAPI.prototype),qd,this).call(this,Tn),Tn.currentIndex&&this[Gd]){var Un=this[eh].currentIndex,Dn=new CustomEvent("current-index-changed",{bubbles:!0,detail:{currentIndex:Un}});this.dispatchEvent(Dn);var Qn=new CustomEvent("currentindexchange",{bubbles:!0,detail:{currentIndex:Un}});this.dispatchEvent(Qn)}}},{key:"currentIndex",get:function get(){var Tn=this[eh],Un=Tn.items,Dn=Tn.currentIndex;return Un&&Un.length>0?Dn:-1},set:function set(Tn){isNaN(Tn)||this[Xd]({currentIndex:Tn})}},{key:"currentItem",get:function get(){var Tn=this[eh],Un=Tn.items,Dn=Tn.currentIndex;return Un&&Un[Dn]},set:function set(Tn){var Un=this[eh].items;if(Un){var Dn=Un.indexOf(Tn);Dn>=0&&this[Xd]({currentIndex:Dn})}}},{key:"currentItemRequired",get:function get(){return this[eh].currentItemRequired},set:function set(Tn){this[Xd]({currentItemRequired:Tn})}},{key:"cursorOperationsWrap",get:function get(){return this[eh].cursorOperationsWrap},set:function set(Tn){this[Xd]({cursorOperationsWrap:Tn})}}]),CursorAPI}(Tn)}function delegateCursorOperation(Tn,Un){var Dn=Tn[Rd];if(!Dn[Un])return!1;var Qn=Dn[Un]();if(Qn){var Hn=Dn.currentIndex;Tn[Xd]({currentIndex:Hn})}return Qn}var Op=Symbol("itemsChangedListener"),Fp=Symbol("previousItemsDelegate"),Up=Symbol("currentIndexChangedListener");var Mp=Symbol("generatedId"),Rp=0,Dp={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(Tn){var Un=Tn.id||Tn[Mp];return Un||(Un="_id".concat(Rp++),Tn[Mp]=Un),Un}var jp=document.createElement("div");jp.attachShadow({mode:"open",delegatesFocus:!0});var Qp=jp.shadowRoot.delegatesFocus;function ComposedFocusMixin(Tn){return function(Tn){_inherits(ComposedFocus,Tn);var Un=_createSuper(ComposedFocus);function ComposedFocus(){return _classCallCheck(this,ComposedFocus),Un.apply(this,arguments)}return _createClass(ComposedFocus,[{key:Vd,value:function value(Tn){var Un=this;_get(_getPrototypeOf(ComposedFocus.prototype),Vd,this)&&_get(_getPrototypeOf(ComposedFocus.prototype),Vd,this).call(this,Tn),this[bd]&&this.addEventListener("mousedown",(function(Tn){if(Un[eh].composeFocus&&0===Tn.button&&Tn.target instanceof Element){var Dn=closestFocusableNode(Tn.target);Dn&&(Dn.focus(),Tn.preventDefault())}}))}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(ComposedFocus.prototype),md,this)||{},{composeFocus:!Qp})}}]),ComposedFocus}(Tn)}function defaultScrollTarget(Tn){var Un=Tn[Yd],Dn=Un&&Un.querySelector("slot:not([name])");return Dn&&Dn.parentNode instanceof Element&&function getScrollableElement(Tn){var Un,Dn=_createForOfIteratorHelper(selfAndComposedAncestors(Tn));try{for(Dn.s();!(Un=Dn.n()).done;){var Qn=Un.value;if(Qn instanceof HTMLElement&&isElementScrollable(Qn))return Qn}}catch(Tn){Dn.e(Tn)}finally{Dn.f()}return null}(Dn.parentNode)||Tn}function isElementScrollable(Tn){var Un=getComputedStyle(Tn),Dn=Un.overflowX,Qn=Un.overflowY;return"scroll"===Dn||"auto"===Dn||"scroll"===Qn||"auto"===Qn}function CursorInViewMixin(Tn){return function(Tn){_inherits(CursorInView,Tn);var Un=_createSuper(CursorInView);function CursorInView(){return _classCallCheck(this,CursorInView),Un.apply(this,arguments)}return _createClass(CursorInView,[{key:qd,value:function value(Tn){_get(_getPrototypeOf(CursorInView.prototype),qd,this)&&_get(_getPrototypeOf(CursorInView.prototype),qd,this).call(this,Tn),Tn.currentItem&&this.scrollCurrentItemIntoView()}},{key:"scrollCurrentItemIntoView",value:function scrollCurrentItemIntoView(){_get(_getPrototypeOf(CursorInView.prototype),"scrollCurrentItemIntoView",this)&&_get(_getPrototypeOf(CursorInView.prototype),"scrollCurrentItemIntoView",this).call(this);var Tn=this[eh],Un=Tn.currentItem,Dn=Tn.items;if(Un&&Dn){var Qn=this[Wd].getBoundingClientRect(),Hn=Un.getBoundingClientRect(),Gn=Hn.bottom-Qn.bottom,Vn=Hn.left-Qn.left,zn=Hn.right-Qn.right,Kn=Hn.top-Qn.top,$n=this[eh].orientation||"both";"horizontal"!==$n&&"both"!==$n||(zn>0?this[Wd].scrollLeft+=zn:Vn<0&&(this[Wd].scrollLeft+=Math.ceil(Vn))),"vertical"!==$n&&"both"!==$n||(Gn>0?this[Wd].scrollTop+=Gn:Kn<0&&(this[Wd].scrollTop+=Math.ceil(Kn)))}}},{key:Wd,get:function get(){return _get(_getPrototypeOf(CursorInView.prototype),Wd,this)||defaultScrollTarget(this)}}]),CursorInView}(Tn)}function CursorSelectMixin(Tn){return function(Tn){_inherits(CursorSelect,Tn);var Un=_createSuper(CursorSelect);function CursorSelect(){return _classCallCheck(this,CursorSelect),Un.apply(this,arguments)}return _createClass(CursorSelect,[{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(CursorSelect.prototype),th,this)?_get(_getPrototypeOf(CursorSelect.prototype),th,this).call(this,Tn,Un):{};return Un.currentIndex?Object.assign(Dn,{selectedIndex:Tn.currentIndex}):Un.selectedIndex&&Object.assign(Dn,{currentIndex:Tn.selectedIndex}),Un.currentItem?Object.assign(Dn,{selectedItem:Tn.currentItem}):Un.selectedItem&&Object.assign(Dn,{currentItem:Tn.selectedItem}),Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(CursorSelect.prototype),md,this)||{},{selectedIndex:-1,selectedItem:null})}}]),CursorSelect}(Tn)}function DirectionCursorMixin(Tn){return function(Tn){_inherits(DirectionCursor,Tn);var Un=_createSuper(DirectionCursor);function DirectionCursor(){return _classCallCheck(this,DirectionCursor),Un.apply(this,arguments)}return _createClass(DirectionCursor,[{key:Sd,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),Sd,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),Sd,this).call(this),this[Pd]()}},{key:Cd,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),Cd,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),Cd,this).call(this),this[Bd]()}},{key:Ed,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),Ed,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),Ed,this).call(this),this[eh]&&this[eh].rightToLeft?this[Pd]():this[Ld]()}},{key:Td,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),Td,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),Td,this).call(this),this[eh]&&this[eh].rightToLeft?this[Ld]():this[Pd]()}},{key:Nd,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),Nd,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),Nd,this).call(this),this[kd]()}},{key:Od,value:function value(){return _get(_getPrototypeOf(DirectionCursor.prototype),Od,this)&&_get(_getPrototypeOf(DirectionCursor.prototype),Od,this).call(this),this[Ld]()}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(DirectionCursor.prototype),th,this)?_get(_getPrototypeOf(DirectionCursor.prototype),th,this).call(this,Tn,Un):{};if(Un.canGoNext||Un.canGoPrevious||Un.languageDirection||Un.orientation||Un.rightToLeft){var Qn=Tn.canGoNext,Hn=Tn.canGoPrevious,Gn=Tn.orientation,Vn=Tn.rightToLeft,zn="horizontal"===Gn||"both"===Gn,Kn="vertical"===Gn||"both"===Gn,$n=Kn&&Qn,Wn=!!zn&&(Vn?Qn:Hn),Xn=!!zn&&(Vn?Hn:Qn),Yn=Kn&&Hn;Object.assign(Dn,{canGoDown:$n,canGoLeft:Wn,canGoRight:Xn,canGoUp:Yn})}return Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(DirectionCursor.prototype),md,this)||{},{canGoDown:null,canGoLeft:null,canGoRight:null,canGoUp:null})}}]),DirectionCursor}(Tn)}function ItemsAPIMixin(Tn){return function(Tn){_inherits(ItemsAPI,Tn);var Un=_createSuper(ItemsAPI);function ItemsAPI(){return _classCallCheck(this,ItemsAPI),Un.apply(this,arguments)}return _createClass(ItemsAPI,[{key:qd,value:function value(Tn){if(_get(_getPrototypeOf(ItemsAPI.prototype),qd,this)&&_get(_getPrototypeOf(ItemsAPI.prototype),qd,this).call(this,Tn),!this[bd]&&Tn.items&&this[Gd]){var Un=new CustomEvent("items-changed",{bubbles:!0});this.dispatchEvent(Un);var Dn=new CustomEvent("itemschange",{bubbles:!0});this.dispatchEvent(Dn)}}},{key:"items",get:function get(){return this[eh]?this[eh].items:null}}]),ItemsAPI}(Tn)}function ItemsCursorMixin(Tn){return function(Tn){_inherits(ItemsCursor,Tn);var Un=_createSuper(ItemsCursor);function ItemsCursor(){return _classCallCheck(this,ItemsCursor),Un.apply(this,arguments)}return _createClass(ItemsCursor,[{key:fd,value:function value(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Dn=void 0!==Un.direction?Un.direction:1,Qn=void 0!==Un.index?Un.index:Tn.currentIndex,Hn=void 0!==Un.wrap?Un.wrap:Tn.cursorOperationsWrap,Gn=Tn.items,Vn=Gn?Gn.length:0;if(0===Vn)return-1;if(Hn)for(var zn=(Qn%Vn+Vn)%Vn,Kn=((zn-Dn)%Vn+Vn)%Vn;zn!==Kn;){var $n=!Tn.availableItemFlags||Tn.availableItemFlags[zn];if($n)return zn;zn=((zn+Dn)%Vn+Vn)%Vn}else for(var Wn=Qn;Wn>=0&&Wn<Vn;Wn+=Dn){var Xn=!Tn.availableItemFlags||Tn.availableItemFlags[Wn];if(Xn)return Wn}return-1}},{key:kd,value:function value(){return _get(_getPrototypeOf(ItemsCursor.prototype),kd,this)&&_get(_getPrototypeOf(ItemsCursor.prototype),kd,this).call(this),moveToIndex(this,0,1)}},{key:Bd,value:function value(){return _get(_getPrototypeOf(ItemsCursor.prototype),Bd,this)&&_get(_getPrototypeOf(ItemsCursor.prototype),Bd,this).call(this),moveToIndex(this,this[eh].items.length-1,-1)}},{key:Pd,value:function value(){_get(_getPrototypeOf(ItemsCursor.prototype),Pd,this)&&_get(_getPrototypeOf(ItemsCursor.prototype),Pd,this).call(this);var Tn=this[eh],Un=Tn.currentIndex,Dn=Tn.items;return moveToIndex(this,Un<0&&Dn?0:Un+1,1)}},{key:Ld,value:function value(){_get(_getPrototypeOf(ItemsCursor.prototype),Ld,this)&&_get(_getPrototypeOf(ItemsCursor.prototype),Ld,this).call(this);var Tn=this[eh],Un=Tn.currentIndex,Dn=Tn.items;return moveToIndex(this,Un<0&&Dn?Dn.length-1:Un-1,-1)}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(ItemsCursor.prototype),th,this)?_get(_getPrototypeOf(ItemsCursor.prototype),th,this).call(this,Tn,Un):{};if(Un.availableItemFlags||Un.items||Un.currentIndex||Un.currentItemRequired){var Qn,Hn=Tn.currentIndex,Gn=Tn.desiredCurrentIndex,Vn=Tn.currentItem,zn=Tn.currentItemRequired,Kn=Tn.items,$n=Kn?Kn.length:0,Wn=Gn;if(Un.items&&!Un.currentIndex&&Vn&&$n>0&&Kn[Hn]!==Vn){var Xn=Kn.indexOf(Vn);Xn>=0&&(Wn=Xn)}else Un.currentIndex&&(Hn<0&&null!==Vn||Hn>=0&&(0===$n||Kn[Hn]!==Vn)||null===Gn)&&(Wn=Hn);zn&&Wn<0&&(Wn=0),Wn<0?(Wn=-1,Qn=-1):0===$n?Qn=-1:(Qn=Math.max(Math.min($n-1,Wn),0),(Qn=this[fd](Tn,{direction:1,index:Qn,wrap:!1}))<0&&(Qn=this[fd](Tn,{direction:-1,index:Qn-1,wrap:!1})));var Yn=Kn&&Kn[Qn]||null;Object.assign(Dn,{currentIndex:Qn,desiredCurrentIndex:Wn,currentItem:Yn})}return Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(ItemsCursor.prototype),md,this)||{},{currentIndex:-1,desiredCurrentIndex:null,currentItem:null,currentItemRequired:!1,cursorOperationsWrap:!1})}}]),ItemsCursor}(Tn)}function moveToIndex(Tn,Un,Dn){var Qn=Tn[fd](Tn[eh],{direction:Dn,index:Un});if(Qn<0)return!1;var Hn=Tn[eh].currentIndex!==Qn;return Hn&&Tn[Xd]({currentIndex:Qn}),Hn}function ItemsTextMixin(Tn){return function(Tn){_inherits(ItemsText,Tn);var Un=_createSuper(ItemsText);function ItemsText(){return _classCallCheck(this,ItemsText),Un.apply(this,arguments)}return _createClass(ItemsText,[{key:xd,value:function value(Tn){return _get(_getPrototypeOf(ItemsText.prototype),xd,this)?_get(_getPrototypeOf(ItemsText.prototype),xd,this).call(this,Tn):getDefaultText(Tn)}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(ItemsText.prototype),th,this)?_get(_getPrototypeOf(ItemsText.prototype),th,this).call(this,Tn,Un):{};if(Un.items){var Qn=function getTextsFromItems(Tn,Un){return Tn?Array.from(Tn,(function(Tn){return Un(Tn)})):null}(Tn.items,this[xd]);Qn&&(Object.freeze(Qn),Object.assign(Dn,{texts:Qn}))}return Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(ItemsText.prototype),md,this)||{},{texts:null})}}]),ItemsText}(Tn)}function KeyboardDirectionMixin(Tn){return function(Tn){_inherits(KeyboardDirection,Tn);var Un=_createSuper(KeyboardDirection);function KeyboardDirection(){return _classCallCheck(this,KeyboardDirection),Un.apply(this,arguments)}return _createClass(KeyboardDirection,[{key:Sd,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),Sd,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),Sd,this).call(this)}},{key:Cd,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),Cd,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),Cd,this).call(this)}},{key:Ed,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),Ed,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),Ed,this).call(this)}},{key:Td,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),Td,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),Td,this).call(this)}},{key:Nd,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),Nd,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),Nd,this).call(this)}},{key:Od,value:function value(){if(_get(_getPrototypeOf(KeyboardDirection.prototype),Od,this))return _get(_getPrototypeOf(KeyboardDirection.prototype),Od,this).call(this)}},{key:Dd,value:function value(Tn){var Un=!1,Dn=this[eh].orientation||"both",Qn="horizontal"===Dn||"both"===Dn,Hn="vertical"===Dn||"both"===Dn;switch(Tn.key){case"ArrowDown":Hn&&(Un=Tn.altKey?this[Cd]():this[Sd]());break;case"ArrowLeft":!Qn||Tn.metaKey||Tn.altKey||(Un=this[Ed]());break;case"ArrowRight":!Qn||Tn.metaKey||Tn.altKey||(Un=this[Td]());break;case"ArrowUp":Hn&&(Un=Tn.altKey?this[Nd]():this[Od]());break;case"End":Un=this[Cd]();break;case"Home":Un=this[Nd]()}return Un||_get(_getPrototypeOf(KeyboardDirection.prototype),Dd,this)&&_get(_getPrototypeOf(KeyboardDirection.prototype),Dd,this).call(this,Tn)||!1}}]),KeyboardDirection}(Tn)}function KeyboardPagedCursorMixin(Tn){return function(Tn){_inherits(KeyboardPagedCursor,Tn);var Un=_createSuper(KeyboardPagedCursor);function KeyboardPagedCursor(){return _classCallCheck(this,KeyboardPagedCursor),Un.apply(this,arguments)}return _createClass(KeyboardPagedCursor,[{key:Dd,value:function value(Tn){var Un=!1;if("horizontal"!==this.orientation)switch(Tn.key){case"PageDown":Un=this.pageDown();break;case"PageUp":Un=this.pageUp()}return Un||_get(_getPrototypeOf(KeyboardPagedCursor.prototype),Dd,this)&&_get(_getPrototypeOf(KeyboardPagedCursor.prototype),Dd,this).call(this,Tn)}},{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[eh]&&this[eh].orientation||"both"}},{key:Wd,get:function get(){return _get(_getPrototypeOf(KeyboardPagedCursor.prototype),Wd,this)||defaultScrollTarget(this)}}]),KeyboardPagedCursor}(Tn)}function getIndexOfItemAtY(Tn,Un,Dn){var Qn,Hn,Gn=Tn[eh].items,Vn=Dn?0:Gn.length-1,zn=Dn?Gn.length:0,Kn=Dn?1:-1,$n=null,Wn=Tn[eh].availableItemFlags;for(Qn=Vn;Qn!==zn;Qn+=Kn){if((!Wn||Wn[Qn])&&(Hn=Gn[Qn].getBoundingClientRect()).top<=Un&&Un<=Hn.bottom){$n=Gn[Qn];break}}if(!$n||!Hn)return null;var Xn=getComputedStyle($n),Yn=Xn.paddingTop?parseFloat(Xn.paddingTop):0,Jn=Xn.paddingBottom?parseFloat(Xn.paddingBottom):0,Zn=Hn.top+Yn,er=Zn+$n.clientHeight-Yn-Jn;return Dn&&Zn<=Un||!Dn&&er>=Un?Qn:Qn-Kn}function scrollOnePage(Tn,Un){var Dn,Qn=Tn[eh].items,Hn=Tn[eh].currentIndex,Gn=Tn[Wd].getBoundingClientRect(),Vn=getIndexOfItemAtY(Tn,Un?Gn.bottom:Gn.top,Un);if(Vn&&Hn===Vn){var zn=Qn[Hn].getBoundingClientRect(),Kn=Tn[Wd].clientHeight;Dn=getIndexOfItemAtY(Tn,Un?zn.bottom+Kn:zn.top-Kn,Un)}else Dn=Vn;if(!Dn){var $n=Un?Qn.length-1:0;Dn=Tn[fd]?Tn[fd](Tn[eh],{direction:Un?-1:1,index:$n}):$n}var Wn=Dn!==Hn;if(Wn){var Xn=Tn[Gd];Tn[Gd]=!0,Tn[Xd]({currentIndex:Dn}),Tn[Gd]=Xn}return Wn}var Hp=Symbol("typedPrefix"),Gp=Symbol("prefixTimeout");function KeyboardPrefixCursorMixin(Tn){return function(Tn){_inherits(KeyboardPrefixCursor,Tn);var Un=_createSuper(KeyboardPrefixCursor);function KeyboardPrefixCursor(){var Tn;return _classCallCheck(this,KeyboardPrefixCursor),resetTypedPrefix(_assertThisInitialized(Tn=Un.call(this))),Tn}return _createClass(KeyboardPrefixCursor,[{key:Id,value:function value(Tn){if(_get(_getPrototypeOf(KeyboardPrefixCursor.prototype),Id,this)&&_get(_getPrototypeOf(KeyboardPrefixCursor.prototype),Id,this).call(this,Tn),null==Tn||0===Tn.length)return!1;var Un=Tn.toLowerCase(),Dn=this[eh].texts.findIndex((function(Dn){return Dn.substr(0,Tn.length).toLowerCase()===Un}));if(Dn>=0){var Qn=this[eh].currentIndex;return this[Xd]({currentIndex:Dn}),this[eh].currentIndex!==Qn}return!1}},{key:Dd,value:function value(Tn){var Un;switch(Tn.key){case"Backspace":!function handleBackspace(Tn){var Un=Tn,Dn=Un[Hp]?Un[Hp].length:0;Dn>0&&(Un[Hp]=Un[Hp].substr(0,Dn-1));Tn[Id](Un[Hp]),setPrefixTimeout(Tn)}(this),Un=!0;break;case"Escape":resetTypedPrefix(this);break;default:Tn.ctrlKey||Tn.metaKey||Tn.altKey||1!==Tn.key.length||function handlePlainCharacter(Tn,Un){var Dn=Tn,Qn=Dn[Hp]||"";Dn[Hp]=Qn+Un,Tn[Id](Dn[Hp]),setPrefixTimeout(Tn)}(this,Tn.key)}return Un||_get(_getPrototypeOf(KeyboardPrefixCursor.prototype),Dd,this)&&_get(_getPrototypeOf(KeyboardPrefixCursor.prototype),Dd,this).call(this,Tn)}}]),KeyboardPrefixCursor}(Tn)}function resetPrefixTimeout(Tn){var Un=Tn;Un[Gp]&&(clearTimeout(Un[Gp]),Un[Gp]=!1)}function resetTypedPrefix(Tn){Tn[Hp]="",resetPrefixTimeout(Tn)}function setPrefixTimeout(Tn){resetPrefixTimeout(Tn),Tn[Gp]=setTimeout((function(){resetTypedPrefix(Tn)}),1e3)}function SelectedTextAPIMixin(Tn){return function(Tn){_inherits(SelectedTextAPI,Tn);var Un=_createSuper(SelectedTextAPI);function SelectedTextAPI(){return _classCallCheck(this,SelectedTextAPI),Un.apply(this,arguments)}return _createClass(SelectedTextAPI,[{key:xd,value:function value(Tn){return _get(_getPrototypeOf(SelectedTextAPI.prototype),xd,this)?_get(_getPrototypeOf(SelectedTextAPI.prototype),xd,this).call(this,Tn):getDefaultText(Tn)}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(SelectedTextAPI.prototype),th,this)?_get(_getPrototypeOf(SelectedTextAPI.prototype),th,this).call(this,Tn,Un):{};if(Un.items||Un.selectedIndex){var Qn=Tn.items,Hn=Tn.selectedIndex,Gn=Qn?Qn[Hn]:null,Vn=Gn?this[xd](Gn):"";Object.assign(Dn,{selectedText:Vn})}return Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(SelectedTextAPI.prototype),md,this)||{},{selectedText:""})}},{key:"selectedText",get:function get(){return this[eh].selectedText},set:function set(Tn){var Un=this[eh].items,Dn=Un?function indexOfItemWithText(Tn,Un,Dn){return Tn.findIndex((function(Tn){return Un(Tn)===Dn}))}(Un,this[xd],String(Tn)):-1;this[Xd]({selectedIndex:Dn})}}]),SelectedTextAPI}(Tn)}function SelectedValueAPIMixin(Tn){return function(Tn){_inherits(SelectedValueAPI,Tn);var Un=_createSuper(SelectedValueAPI);function SelectedValueAPI(){return _classCallCheck(this,SelectedValueAPI),Un.apply(this,arguments)}return _createClass(SelectedValueAPI,[{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(SelectedValueAPI.prototype),th,this)?_get(_getPrototypeOf(SelectedValueAPI.prototype),th,this).call(this,Tn,Un):{};if(Un.items||Un.selectedIndex){var Qn=Tn.items,Hn=Tn.selectedIndex,Gn=Qn?Qn[Hn]:null,value=Gn?Gn.getAttribute("value"):"";Object.assign(Dn,{value:value})}return Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(SelectedValueAPI.prototype),md,this)||{},{value:""})}},{key:"value",get:function get(){return this[eh].value},set:function set(Tn){var Un=this[eh].items,Dn=Un?function indexOfItemWithValue(Tn,Un){return Tn.findIndex((function(Tn){return Tn.getAttribute("value")===Un}))}(Un,String(Tn)):-1;this[Xd]({selectedIndex:Dn})}}]),SelectedValueAPI}(Tn)}function SingleSelectAPIMixin(Tn){return function(Tn){_inherits(SingleSelectAPI,Tn);var Un=_createSuper(SingleSelectAPI);function SingleSelectAPI(){return _classCallCheck(this,SingleSelectAPI),Un.apply(this,arguments)}return _createClass(SingleSelectAPI,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){"selected-index"===Tn?this.selectedIndex=Number(Dn):_get(_getPrototypeOf(SingleSelectAPI.prototype),"attributeChangedCallback",this).call(this,Tn,Un,Dn)}},{key:qd,value:function value(Tn){if(_get(_getPrototypeOf(SingleSelectAPI.prototype),qd,this)&&_get(_getPrototypeOf(SingleSelectAPI.prototype),qd,this).call(this,Tn),Tn.selectedIndex&&this[Gd]){var Un=this[eh].selectedIndex,Dn=new CustomEvent("selected-index-changed",{bubbles:!0,detail:{selectedIndex:Un}});this.dispatchEvent(Dn);var Qn=new CustomEvent("selectedindexchange",{bubbles:!0,detail:{selectedIndex:Un}});this.dispatchEvent(Qn)}}},{key:"selectedIndex",get:function get(){var Tn=this[eh],Un=Tn.items,Dn=Tn.selectedIndex;return Un&&Un.length>0?Dn:-1},set:function set(Tn){isNaN(Tn)||this[Xd]({selectedIndex:Tn})}},{key:"selectedItem",get:function get(){var Tn=this[eh],Un=Tn.items,Dn=Tn.selectedIndex;return Un&&Un[Dn]},set:function set(Tn){var Un=this[eh].items;if(Un){var Dn=Un.indexOf(Tn);Dn>=0&&this[Xd]({selectedIndex:Dn})}}}]),SingleSelectAPI}(Tn)}function ContentItemsMixin(Tn){return function(Tn){_inherits(ContentItems,Tn);var Un=_createSuper(ContentItems);function ContentItems(){return _classCallCheck(this,ContentItems),Un.apply(this,arguments)}return _createClass(ContentItems,[{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(ContentItems.prototype),th,this)?_get(_getPrototypeOf(ContentItems.prototype),th,this).call(this,Tn,Un):{};if(Un.content){var Qn=Tn.content,Hn=Qn?Array.prototype.filter.call(Qn,(function(Tn){return function isSubstantiveElement(Tn){return Tn instanceof Element&&(!Tn.localName||Ip.indexOf(Tn.localName)<0)}(Tn)})):null;Hn&&Object.freeze(Hn),Object.assign(Dn,{items:Hn})}return Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(ContentItems.prototype),md,this)||{},{items:null})}}]),ContentItems}(Tn)}function SlotItemsMixin(Tn){return ContentItemsMixin(SlotContentMixin(Tn))}function TapCursorMixin(Tn){return function(Tn){_inherits(TapCursor,Tn);var Un=_createSuper(TapCursor);function TapCursor(){var Tn;return _classCallCheck(this,TapCursor),(Tn=Un.call(this)).addEventListener("mousedown",(function(Un){0===Un.button&&(Tn[Gd]=!0,Tn[hh](Un),Tn[Gd]=!1)})),Tn}return _createClass(TapCursor,[{key:Vd,value:function value(Tn){_get(_getPrototypeOf(TapCursor.prototype),Vd,this)&&_get(_getPrototypeOf(TapCursor.prototype),Vd,this).call(this,Tn),this[bd]&&Object.assign(this.style,{touchAction:"manipulation",mozUserSelect:"none",msUserSelect:"none",webkitUserSelect:"none",userSelect:"none"})}},{key:hh,value:function value(Tn){var Un=Tn.composedPath?Tn.composedPath()[0]:Tn.target,Dn=this[eh],Qn=Dn.items,Hn=Dn.currentItemRequired;if(Qn&&Un instanceof Node){var Gn=indexOfItemContainingTarget(Qn,Un),Vn=Gn>=0?Qn[Gn]:null;(Vn&&!Vn.disabled||!Vn&&!Hn)&&(this[Xd]({currentIndex:Gn}),Tn.stopPropagation())}}}]),TapCursor}(Tn)}function _templateObject$9(){var Tn=_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 Tn},Tn}var Vp=function AriaListMixin(Tn){return function(Tn){_inherits(AriaList,Tn);var Un=_createSuper(AriaList);function AriaList(){return _classCallCheck(this,AriaList),Un.apply(this,arguments)}return _createClass(AriaList,[{key:Vd,value:function value(Tn){_get(_getPrototypeOf(AriaList.prototype),Vd,this)&&_get(_getPrototypeOf(AriaList.prototype),Vd,this).call(this,Tn);var Un=this[eh].itemRole,Dn=this[eh].items;if(Tn.items&&Dn&&Dn.forEach((function(Tn){Tn.id||(Tn.id=ensureId(Tn))})),(Tn.items||Tn.itemRole)&&Dn&&Dn.forEach((function(Tn){Un===Dp[Tn.localName]?Tn.removeAttribute("role"):Tn.setAttribute("role",Un)})),Tn.items||Tn.selectedIndex||Tn.selectedItemFlags){var Qn=this[eh],Hn=Qn.selectedItemFlags,Gn=Qn.selectedIndex;Dn&&Dn.forEach((function(Tn,Un){var Dn=Hn?Hn[Un]:Un===Gn;Tn.setAttribute("aria-selected",Dn.toString())}))}if(Tn.items||Tn.selectedIndex){var Vn=this[eh].selectedIndex,zn=Vn>=0&&Dn?Dn[Vn]:null;zn?(zn.id||(zn.id=ensureId(zn)),this.setAttribute("aria-activedescendant",zn.id)):this.removeAttribute("aria-activedescendant")}if(Tn.selectedItemFlags&&(this[eh].selectedItemFlags?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")),Tn.orientation){var Kn=this[eh].orientation;this.setAttribute("aria-orientation",Kn)}if(Tn.role){var $n=this[eh].role;this.setAttribute("role",$n)}}},{key:md,get:function get(){var Tn=_get(_getPrototypeOf(AriaList.prototype),md,this);return Object.assign(Tn,{itemRole:Tn.itemRole||"option",role:Tn.role||"listbox"})}},{key:"itemRole",get:function get(){return this[eh].itemRole},set:function set(Tn){this[Xd]({itemRole:Tn})}},{key:"role",get:function get(){return _get(_getPrototypeOf(AriaList.prototype),"role",this)},set:function set(Tn){_set(_getPrototypeOf(AriaList.prototype),"role",Tn,this,!0),this[$d]||this[Xd]({role:Tn})}}]),AriaList}(Tn)}(ComposedFocusMixin(CursorAPIMixin(CursorInViewMixin(CursorSelectMixin(DirectionCursorMixin(FocusVisibleMixin(FormElementMixin(ItemsAPIMixin(ItemsCursorMixin(ItemsTextMixin(KeyboardDirectionMixin(KeyboardMixin(KeyboardPagedCursorMixin(KeyboardPrefixCursorMixin(LanguageDirectionMixin(SingleSelectAPIMixin(SelectedTextAPIMixin(SelectedValueAPIMixin(SlotItemsMixin(TapCursorMixin(Wh))))))))))))))))))))),zp=function(Tn){_inherits(ListBox,Vp);var Un=_createSuper(ListBox);function ListBox(){return _classCallCheck(this,ListBox),Un.apply(this,arguments)}return _createClass(ListBox,[{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(ListBox.prototype),Vd,this).call(this,Tn),Tn.items||Tn.currentIndex){var Un=this[eh],Dn=Un.currentIndex,Qn=Un.items;Qn&&Qn.forEach((function(Tn,Un){Tn.toggleAttribute("selected",Un===Dn)}))}if(Tn.orientation){var Hn="vertical"===this[eh].orientation?{display:"block",flexDirection:"",overflowX:"hidden",overflowY:"auto"}:{display:"flex",flexDirection:"row",overflowX:"auto",overflowY:"hidden"};Object.assign(this[Ud].container.style,Hn)}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(ListBox.prototype),md,this),{orientation:"vertical"})}},{key:"orientation",get:function get(){return this[eh].orientation},set:function set(Tn){this[Xd]({orientation:Tn})}},{key:Wd,get:function get(){return this[Ud].container}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(ListBox.prototype),ph,this);return Tn.content.append(xh(_templateObject$9())),Tn}}]),ListBox}(),Kp=Symbol("documentMousemoveListener");function PopupListMixin(Tn){return function(Tn){_inherits(PopupList,Tn);var Un=_createSuper(PopupList);function PopupList(){return _classCallCheck(this,PopupList),Un.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:Dd,value:function value(Tn){var Un=!1;switch(Tn.key){case"Enter":this.opened&&(selectCurrentItemAndClose(this),Un=!0)}return Un||_get(_getPrototypeOf(PopupList.prototype),Dd,this)&&_get(_getPrototypeOf(PopupList.prototype),Dd,this).call(this,Tn)||!1}},{key:Vd,value:function value(Tn){var Un=this;if(_get(_getPrototypeOf(PopupList.prototype),Vd,this)&&_get(_getPrototypeOf(PopupList.prototype),Vd,this).call(this,Tn),Tn.popupList){var Dn=this[eh].popupList;Dn&&(Dn.addEventListener("mouseup",function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn){var Dn;return regeneratorRuntime.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:if(Dn=Un[eh].currentIndex,!(Un[eh].dragSelect||Dn>=0)){Qn.next=9;break}return Tn.stopPropagation(),Un[Gd]=!0,Qn.next=6,selectCurrentItemAndClose(Un);case 6:Un[Gd]=!1,Qn.next=10;break;case 9:Tn.stopPropagation();case 10:case"end":return Qn.stop()}}),_callee)})));return function(Un){return Tn.apply(this,arguments)}}()),Dn.addEventListener("currentindexchange",(function(Tn){Un[Gd]=!0;var Dn=Tn;Un[Xd]({currentIndex:Dn.detail.currentIndex}),Un[Gd]=!1})))}if(Tn.currentIndex||Tn.popupList){var Qn=this[eh],Hn=Qn.currentIndex,Gn=Qn.popupList;Gn&&"currentIndex"in Gn&&(Gn.currentIndex=Hn)}}},{key:qd,value:function value(Tn){if(_get(_getPrototypeOf(PopupList.prototype),qd,this)&&_get(_getPrototypeOf(PopupList.prototype),qd,this).call(this,Tn),Tn.opened){if(this[eh].opened){var Un=this[eh].popupList;Un.scrollCurrentItemIntoView&&setTimeout((function(){Un.scrollCurrentItemIntoView()}))}listenIfOpenAndConnected$1(this)}}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(PopupList.prototype),th,this)?_get(_getPrototypeOf(PopupList.prototype),th,this).call(this,Tn,Un):{};return Un.opened&&Tn.opened&&Object.assign(Dn,{hasHoveredOverItemSinceOpened:!1}),Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupList.prototype),md,this)||{},{currentIndex:-1,hasHoveredOverItemSinceOpened:!1,popupList:null})}}]),PopupList}(Tn)}function handleMousemove(Tn){var Un=this,Dn=Un[eh],Qn=Dn.hasHoveredOverItemSinceOpened;if(Dn.opened){var Hn=Tn.composedPath?Tn.composedPath()[0]:Tn.target,Gn=Un.items;if(Hn&&Hn instanceof Node&&Gn){var Vn=indexOfItemContainingTarget(Gn,Hn),zn=Gn[Vn],Kn=zn&&!zn.disabled?Vn:-1;(Qn||Kn>=0)&&Kn!==Un[eh].currentIndex&&(Un[Gd]=!0,Un[Xd]({currentIndex:Kn}),Kn>=0&&!Qn&&Un[Xd]({hasHoveredOverItemSinceOpened:!0}),Un[Gd]=!1)}}}function listenIfOpenAndConnected$1(Tn){Tn[eh].opened&&Tn.isConnected?Tn[Kp]||(Tn[Kp]=handleMousemove.bind(Tn),document.addEventListener("mousemove",Tn[Kp])):Tn[Kp]&&(document.removeEventListener("mousemove",Tn[Kp]),Tn[Kp]=null)}function selectCurrentItemAndClose(Tn){return _selectCurrentItemAndClose.apply(this,arguments)}function _selectCurrentItemAndClose(){return(_selectCurrentItemAndClose=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(Tn){var Un,Dn,Qn,Hn,Gn,Vn;return regeneratorRuntime.wrap((function _callee2$(zn){for(;;)switch(zn.prev=zn.next){case 0:if(Un=Tn[Gd],Dn=Tn[eh].currentIndex>=0,!(Qn=Tn.items)){zn.next=14;break}if(Hn=Dn?Qn[Tn[eh].currentIndex]:void 0,Gn=Tn[eh].popupList,!Dn||!("flashCurrentItem"in Gn)){zn.next=9;break}return zn.next=9,Gn.flashCurrentItem();case 9:return Vn=Tn[Gd],Tn[Gd]=Un,zn.next=13,Tn.close(Hn);case 13:Tn[Gd]=Vn;case 14:case"end":return zn.stop()}}),_callee2)})))).apply(this,arguments)}function _templateObject2$4(){var Tn=_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 Tn},Tn}function _templateObject$a(){var Tn=_taggedTemplateLiteral(['\n <div id="list" part="list" tabindex="-1">\n <slot></slot>\n </div>\n ']);return _templateObject$a=function _templateObject(){return Tn},Tn}var qp=CursorAPIMixin(function DelegateCursorMixin(Tn){return function(Tn){_inherits(DelegateCursor,Tn);var Un=_createSuper(DelegateCursor);function DelegateCursor(){return _classCallCheck(this,DelegateCursor),Un.apply(this,arguments)}return _createClass(DelegateCursor,[{key:kd,value:function value(){return delegateCursorOperation(this,kd)}},{key:Bd,value:function value(){return delegateCursorOperation(this,Bd)}},{key:Pd,value:function value(){return delegateCursorOperation(this,Pd)}},{key:Ld,value:function value(){return delegateCursorOperation(this,Ld)}}]),DelegateCursor}(Tn)}(function DelegateItemsMixin(Tn){return function(Tn){_inherits(DelegateItems,Tn);var Un=_createSuper(DelegateItems);function DelegateItems(){var Tn;return _classCallCheck(this,DelegateItems),(Tn=Un.call(this))[Op]=function(Un){var Dn=Un.target.items;Tn[eh].items!==Dn&&Tn[Xd]({items:Dn})},Tn[Up]=function(Un){var Dn=Un.detail.currentIndex;Tn[eh].currentIndex!==Dn&&Tn[Xd]({currentIndex:Dn})},Tn}return _createClass(DelegateItems,[{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(DelegateItems.prototype),Vd,this)&&_get(_getPrototypeOf(DelegateItems.prototype),Vd,this).call(this,Tn),Tn.currentIndex){if(void 0===this[Rd])throw"To use DelegateItemsMixin, ".concat(this.constructor.name," must define a getter for [itemsDelegate].");"currentIndex"in this[Rd]&&(this[Rd].currentIndex=this[eh].currentIndex)}}},{key:qd,value:function value(Tn){_get(_getPrototypeOf(DelegateItems.prototype),qd,this)&&_get(_getPrototypeOf(DelegateItems.prototype),qd,this).call(this,Tn);var Un=this[Fp];this[Rd]!==Un&&(Un&&(Un.removeEventListener(this[Op]),Un.removeEventListener(this[Up])),this[Rd].addEventListener("itemschange",this[Op]),this[Rd].addEventListener("currentindexchange",this[Up]))}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(DelegateItems.prototype),md,this)||{},{items:null})}},{key:"items",get:function get(){return this[eh]?this[eh].items:null}}]),DelegateItems}(Tn)}(PopupListMixin(SingleSelectAPIMixin(Np))))),$p=function(Tn){_inherits(ListComboBox,qp);var Un=_createSuper(ListComboBox);function ListComboBox(){return _classCallCheck(this,ListComboBox),Un.apply(this,arguments)}return _createClass(ListComboBox,[{key:xd,value:function value(Tn){return getDefaultText(Tn)}},{key:Dd,value:function value(Tn){var Un,Dn=this[Ud].list;switch(Tn.key){case"ArrowDown":this.opened&&(Un=Tn.altKey?this[Bd]():this[Pd]());break;case"ArrowUp":this.opened&&(Un=Tn.altKey?this[kd]():this[Ld]());break;case"PageDown":this.opened&&(Un=Dn.pageDown&&Dn.pageDown());break;case"PageUp":this.opened&&(Un=Dn.pageUp&&Dn.pageUp())}Un&&(this[eh].selectedIndex!==Dn.currentIndex&&this[Xd]({selectedIndex:Dn.currentIndex}));return Un||_get(_getPrototypeOf(ListComboBox.prototype),Dd,this)&&_get(_getPrototypeOf(ListComboBox.prototype),Dd,this).call(this,Tn)}},{key:Vd,value:function value(Tn){Tn.listPartType&&this[Ud].list&&forwardFocus(this[Ud].list,null);if(_get(_getPrototypeOf(ListComboBox.prototype),Vd,this).call(this,Tn),renderParts$4(this[Yd],this[eh],Tn),Tn.listPartType){var Un=this[Ud].list;Un instanceof HTMLElement&&forwardFocus(Un,this)}}},{key:qd,value:function value(Tn){_get(_getPrototypeOf(ListComboBox.prototype),qd,this).call(this,Tn),Tn.listPartType&&this[Xd]({popupList:this[Ud].list})}},{key:th,value:function value(Tn,Un){var Dn=this,Qn=_get(_getPrototypeOf(ListComboBox.prototype),th,this).call(this,Tn,Un);if(Un.selectedIndex&&Object.assign(Qn,{currentIndex:Tn.selectedIndex}),Un.selectedItem&&Object.assign(Qn,{currentItem:Tn.selectedItem}),Un.items||Un.value){var value=Tn.value,Hn=Tn.items;if(Hn&&null!=value){var Gn=value.toLowerCase(),Vn=Hn.findIndex((function(Tn){return Dn[xd](Tn).toLowerCase()===Gn}));Object.assign(Qn,{currentIndex:Vn})}}if(Un.selectedIndex){var zn=Tn.items,Kn=Tn.selectedIndex,$n=Tn.value,Wn=zn?zn[Kn]:null,Xn=Wn?this[xd](Wn):"",Yn=!matchMedia("(pointer: coarse)").matches;$n!==Xn&&Object.assign(Qn,{selectText:Yn,value:Xn})}if(Un.opened){var Jn=Tn.closeResult,Zn=Tn.currentIndex,er=Tn.opened,tr=Un.opened&&!er,nr=Jn&&Jn.canceled;tr&&!nr&&Zn>=0&&Object.assign(Qn,{selectedIndex:Zn})}return Un.items&&Object.assign(Qn,{popupMeasured:!1}),Qn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(ListComboBox.prototype),md,this),{currentIndex:-1,horizontalAlign:"stretch",listPartType:zp,selectedIndex:-1,selectedItem:null})}},{key:"listPartType",get:function get(){return this[eh].listPartType},set:function set(Tn){this[Xd]({listPartType:Tn})}},{key:Rd,get:function get(){return this[Ud].list}},{key:"selectedItemValue",get:function get(){var Tn=this[eh],Un=Tn.items,Dn=Tn.selectedIndex,Qn=Un?Un[Dn]:null;return Qn?Qn.getAttribute("value"):""},set:function set(Tn){var Un=this[eh].items,Dn=String(Tn),Qn=Un.findIndex((function(Tn){return Tn.getAttribute("value")===Dn}));this[Xd]({selectedIndex:Qn})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(ListComboBox.prototype),ph,this),Un=Tn.content.querySelector("slot:not([name])");return Un&&Un.replaceWith(xh(_templateObject$a())),Tn.content.append(xh(_templateObject2$4())),renderParts$4(Tn.content,this[eh]),Tn}}]),ListComboBox}();function renderParts$4(Tn,Un,Dn){if(!Dn||Dn.listPartType){var Qn=Un.listPartType,Hn=Tn.getElementById("list");Hn&&transmute(Hn,Qn)}}function _templateObject3(){var Tn=_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 Tn},Tn}function _templateObject2$5(){var Tn=_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 Tn},Tn}function _templateObject$b(){var Tn=_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 Tn},Tn}var Wp=function(Tn){_inherits(PlainOpenCloseToggle,Lp);var Un=_createSuper(PlainOpenCloseToggle);function PlainOpenCloseToggle(){return _classCallCheck(this,PlainOpenCloseToggle),Un.apply(this,arguments)}return _createClass(PlainOpenCloseToggle,[{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainOpenCloseToggle.prototype),ph,this),Un=Tn.content.getElementById("downIcon"),Dn=xh(_templateObject$b()).firstElementChild;Un&&Dn&&replace$1(Un,Dn);var Qn=Tn.content.getElementById("upIcon"),Hn=xh(_templateObject2$5()).firstElementChild;return Qn&&Hn&&replace$1(Qn,Hn),Tn.content.append(xh(_templateObject3())),Tn}}]),PlainOpenCloseToggle}(),Xp=function(Tn){_inherits(PlainBackdrop,gp);var Un=_createSuper(PlainBackdrop);function PlainBackdrop(){return _classCallCheck(this,PlainBackdrop),Un.apply(this,arguments)}return PlainBackdrop}();function _templateObject$c(){var Tn=_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 Tn},Tn}var Yp=function(Tn){_inherits(PlainOverlayFrame,fp);var Un=_createSuper(PlainOverlayFrame);function PlainOverlayFrame(){return _classCallCheck(this,PlainOverlayFrame),Un.apply(this,arguments)}return _createClass(PlainOverlayFrame,[{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainOverlayFrame.prototype),ph,this);return Tn.content.append(xh(_templateObject$c())),Tn}}]),PlainOverlayFrame}(),Jp=function(Tn){_inherits(PlainPopup,Cp);var Un=_createSuper(PlainPopup);function PlainPopup(){return _classCallCheck(this,PlainPopup),Un.apply(this,arguments)}return _createClass(PlainPopup,[{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainPopup.prototype),md,this),{backdropPartType:Xp,framePartType:Yp})}}]),PlainPopup}(),Zp=function(Tn){_inherits(PlainListComboBox,$p);var Un=_createSuper(PlainListComboBox);function PlainListComboBox(){return _classCallCheck(this,PlainListComboBox),Un.apply(this,arguments)}return _createClass(PlainListComboBox,[{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainListComboBox.prototype),md,this),{popupPartType:Jp,popupTogglePartType:Wp})}}]),PlainListComboBox}(),eg=function(Tn){_inherits(ElixListComboBox,Zp);var Un=_createSuper(ElixListComboBox);function ElixListComboBox(){return _classCallCheck(this,ElixListComboBox),Un.apply(this,arguments)}return ElixListComboBox}();function _templateObject$d(){var Tn=_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$d=function _templateObject(){return Tn},Tn}customElements.define("elix-list-combo-box",eg);var tg=DelegateFocusMixin(DelegateInputLabelMixin(DelegateInputSelectionMixin(DisabledMixin(FocusVisibleMixin(FormElementMixin(KeyboardDirectionMixin(KeyboardMixin(Wh)))))))),ng=function(Tn){_inherits(SpinBox,tg);var Un=_createSuper(SpinBox);function SpinBox(){return _classCallCheck(this,SpinBox),Un.apply(this,arguments)}return _createClass(SpinBox,[{key:Sd,value:function value(){return _get(_getPrototypeOf(SpinBox.prototype),Sd,this)&&_get(_getPrototypeOf(SpinBox.prototype),Sd,this).call(this),this.stepDown(),!0}},{key:Od,value:function value(){return _get(_getPrototypeOf(SpinBox.prototype),Od,this)&&_get(_getPrototypeOf(SpinBox.prototype),Od,this).call(this),this.stepUp(),!0}},{key:Vd,value:function value(Tn){var Un=this;if(_get(_getPrototypeOf(SpinBox.prototype),Vd,this).call(this,Tn),function renderParts$5(Tn,Un,Dn){if(!Dn||Dn.inputPartType){var Qn=Un.buttonPartType;Tn.querySelectorAll('[part~="spin-button"]').forEach((function(Tn){transmute(Tn,Qn)}))}if(!Dn||Dn.inputPartType){var Hn=Un.inputPartType,Gn=Tn.getElementById("input");Gn&&transmute(Gn,Hn)}}(this[Yd],this[eh],Tn),Tn.buttonPartType&&(this[Ud].downButton.addEventListener("mousedown",(function(){Un[Gd]=!0,Un.stepDown(),Un[Gd]=!1})),this[Ud].upButton.addEventListener("mousedown",(function(){Un[Gd]=!0,Un.stepUp(),Un[Gd]=!1}))),Tn.inputPartType&&this[Ud].input.addEventListener("input",(function(){Un.value=Un[Ud].input.value})),Tn.buttonPartType||Tn.inputPartType){var Dn=this[Ud].input,Qn=this[Ud].downButton;Qn instanceof HTMLElement&&Dn instanceof HTMLElement&&forwardFocus(Qn,Dn);var Hn=this[Ud].upButton;Hn instanceof HTMLElement&&Dn instanceof HTMLElement&&forwardFocus(Hn,Dn)}var Gn=this[eh],Vn=Gn.disabled,value=Gn.value;if(Tn.canGoUp||Tn.canGoDown||Tn.disabled){var zn=this[eh],Kn=zn.canGoUp,$n=zn.canGoDown;if("disabled"in this[Ud].input&&(this[Ud].input.disabled=Vn),"disabled"in this[Ud].downButton){var Wn=Vn||!Kn;this[Ud].upButton.disabled=Wn}if("disabled"in this[Ud].upButton){var Xn=Vn||!$n;this[Ud].downButton.disabled=Xn}}Tn.value&&(this[Ud].input.value=value)}},{key:qd,value:function value(Tn){_get(_getPrototypeOf(SpinBox.prototype),qd,this).call(this,Tn);var Un=this[eh],Dn=Un.stepSelect,value=Un.value;if(Tn.value&&Dn){var Qn=this[Ud].input,Hn=value.length;Qn.selectionStart=Hn,Qn.selectionEnd=Hn,this[Xd]({stepSelect:!1})}}},{key:"stepDown",value:function stepDown(){this[Xd]({stepSelect:!0})}},{key:"stepUp",value:function stepUp(){this[Xd]({stepSelect:!0})}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(SpinBox.prototype),md,this),{buttonPartType:"button",canGoDown:!0,canGoUp:!0,inputPartType:"input",orientation:"vertical",step:1,stepSelect:!1,value:""})}},{key:Md,get:function get(){return this[Ud].input}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(SpinBox.prototype),ph,this);return Tn.content.append(xh(_templateObject$d())),Tn}},{key:"value",get:function get(){return this[eh].value},set:function set(Tn){this[Xd]({value:String(Tn)})}}]),SpinBox}();var rg=function(Tn){_inherits(NumberSpinBox,ng);var Un=_createSuper(NumberSpinBox);function NumberSpinBox(){return _classCallCheck(this,NumberSpinBox),Un.apply(this,arguments)}return _createClass(NumberSpinBox,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){"max"===Tn?this.max=parseFloat(Dn):"min"===Tn?this.min=parseFloat(Dn):"step"===Tn?this.step=parseFloat(Dn):_get(_getPrototypeOf(NumberSpinBox.prototype),"attributeChangedCallback",this).call(this,Tn,Un,Dn)}},{key:"formatValue",value:function formatValue(Tn,Un){return Number(Tn).toFixed(Un)}},{key:"parseValue",value:function parseValue(Tn,Un){var Dn=0===Un?parseInt(Tn):parseFloat(Tn);return isNaN(Dn)?0:Dn}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(NumberSpinBox.prototype),th,this);if(Un.step){var Qn=Tn.step,Hn=/\.(\d)+$/.exec(String(Qn)),Gn=Hn&&Hn[1]?Hn[1].length:0;Object.assign(Dn,{precision:Gn})}if(Un.max||Un.min||Un.value){var Vn=Tn.max,zn=Tn.min,Kn=Tn.precision,value=Tn.value,$n=parseInt(value,Kn);""!==value&&isNaN($n)?Object.assign(Dn,{valid:!1,validationMessage:"Value must be a number"}):null===Vn||$n<=Vn?null===zn||$n>=zn?Object.assign(Dn,{valid:!0,validationMessage:""}):Object.assign(Dn,{valid:!1,validationMessage:"Value must be greater than or equal to ".concat(zn,".")}):Object.assign(Dn,{valid:!1,validationMessage:"Value must be less than or equal to ".concat(Vn,".")}),Object.assign(Dn,{canGoUp:isNaN($n)||null===Tn.max||$n<Tn.max}),Object.assign(Dn,{canGoDown:isNaN($n)||null===Tn.min||$n>Tn.min})}return Dn}},{key:"stepDown",value:function stepDown(){_get(_getPrototypeOf(NumberSpinBox.prototype),"stepDown",this).call(this);var Tn=this[eh],Un=Tn.max,Dn=Tn.precision,Qn=Tn.value,Hn=this.parseValue(Qn,Dn)-this.step;null!==Un&&(Hn=Math.min(Hn,Un));var Gn=this[eh].min;(null===Gn||Hn>=Gn)&&(this.value=this.formatValue(Hn,Dn))}},{key:"stepUp",value:function stepUp(){_get(_getPrototypeOf(NumberSpinBox.prototype),"stepUp",this).call(this);var Tn=this[eh],Un=Tn.min,Dn=Tn.precision,Qn=Tn.value,Hn=this.parseValue(Qn,Dn)+this.step;null!==Un&&(Hn=Math.max(Hn,Un));var Gn=this[eh].max;(null===Gn||Hn<=Gn)&&(this.value=this.formatValue(Hn,Dn))}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(NumberSpinBox.prototype),md,this),{max:null,min:null,step:1})}},{key:"max",get:function get(){return this[eh].max},set:function set(Tn){this[Xd]({max:Tn})}},{key:"min",get:function get(){return this[eh].min},set:function set(Tn){this[Xd]({min:Tn})}},{key:"step",get:function get(){return this[eh].step},set:function set(Tn){isNaN(Tn)||this[Xd]({step:Tn})}}]),NumberSpinBox}();var ig=Ir.includes,og=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});function _templateObject$e(){var Tn=_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$e=function _templateObject(){return Tn},Tn}_export({target:"Array",proto:!0,forced:!og},{includes:function includes(Tn){return ig(this,Tn,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var ag=Symbol("extends"),sg=Symbol("delegatedPropertySetters"),lg={a:!0,area:!0,button:!0,details:!0,iframe:!0,input:!0,select:!0,textarea:!0},cg={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"]},ug=["click","dblclick","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","wheel"],dg={abort:!0,change:!0,reset:!0},hg=["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"],pg=["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"],gg=DelegateFocusMixin(Wh),fg=function(Tn){_inherits(WrappedStandardElement,gg);var Un=_createSuper(WrappedStandardElement);function WrappedStandardElement(){var Tn;_classCallCheck(this,WrappedStandardElement);var Dn=_assertThisInitialized(Tn=Un.call(this));return!Tn[Hd]&&Dn.attachInternals&&(Tn[Hd]=Dn.attachInternals()),Tn}return _createClass(WrappedStandardElement,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(pg.indexOf(Tn)>=0){var Qn=Object.assign({},this[eh].innerAttributes,_defineProperty({},Tn,Dn));this[Xd]({innerAttributes:Qn})}else _get(_getPrototypeOf(WrappedStandardElement.prototype),"attributeChangedCallback",this).call(this,Tn,Un,Dn)}},{key:"blur",value:function blur(){this.inner.blur()}},{key:Vd,value:function value(Tn){var Un=this;_get(_getPrototypeOf(WrappedStandardElement.prototype),Vd,this).call(this,Tn);var Dn=this.inner;this[bd]&&((cg[this.extends]||[]).forEach((function(Tn){Dn.addEventListener(Tn,(function(){var Dn=new Event(Tn,{bubbles:dg[Tn]||!1});Un.dispatchEvent(Dn)}))})),"disabled"in Dn&&ug.forEach((function(Tn){Un.addEventListener(Tn,(function(Tn){Dn.disabled&&Tn.stopImmediatePropagation()}))})));if(Tn.tabIndex&&(Dn.tabIndex=this[eh].tabIndex),Tn.innerAttributes){var Qn=this[eh].innerAttributes;for(var Hn in Qn)applyAttribute(Dn,Hn,Qn[Hn])}this.constructor[sg].forEach((function(Qn){if(Tn[Qn]){var Hn=Un[eh][Qn];("selectionEnd"===Qn||"selectionStart"===Qn)&&null===Hn||(Dn[Qn]=Hn)}}))}},{key:qd,value:function value(Tn){if(_get(_getPrototypeOf(WrappedStandardElement.prototype),qd,this).call(this,Tn),Tn.disabled){var Un=this[eh].disabled;void 0!==Un&&setInternalState$7(this,"disabled",Un)}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(WrappedStandardElement.prototype),md,this),{innerAttributes:{}})}},{key:vd,get:function get(){return lg[this.extends]?0:-1}},{key:"extends",get:function get(){return this.constructor[ag]}},{key:"inner",get:function get(){var Tn=this[Ud]&&this[Ud].inner;return Tn||console.warn("Attempted to get an inner standard element before it was instantiated."),Tn}},{key:ph,get:function get(){var Tn=hg.includes(this.extends)?"block":"inline-block",Un=this.extends;return Sh.html(_templateObject$e(),Tn,Un,Un,Un)}}],[{key:"wrap",value:function wrap(Tn){var Un=function(Tn){_inherits(Wrapped,Tn);var Un=_createSuper(Wrapped);function Wrapped(){return _classCallCheck(this,Wrapped),Un.apply(this,arguments)}return Wrapped}(WrappedStandardElement);Un[ag]=Tn;var Dn=document.createElement(Tn);return function defineDelegates(Tn,Un){var Dn=Object.getOwnPropertyNames(Un);Tn[sg]=[],Dn.forEach((function(Dn){var Qn=Object.getOwnPropertyDescriptor(Un,Dn);if(Qn){var Hn=function createDelegate(Tn,Un){if("function"==typeof Un.value){if("constructor"!==Tn)return function createMethodDelegate(Tn,Un){var Dn=function value(){var Un;(Un=this.inner)[Tn].apply(Un,arguments)};return{configurable:Un.configurable,enumerable:Un.enumerable,value:Dn,writable:Un.writable}}(Tn,Un)}else if("function"==typeof Un.get||"function"==typeof Un.set)return function createPropertyDelegate(Tn,Un){var Dn={configurable:Un.configurable,enumerable:Un.enumerable};Un.get&&(Dn.get=function(){return function getInnerProperty(Tn,Un){return Tn[eh][Un]||Tn[Yd]&&Tn.inner[Un]}(this,Tn)});Un.set&&(Dn.set=function(Un){!function setInnerProperty(Tn,Un,Dn){Tn[eh][Un]!==Dn&&Tn[Xd](_defineProperty({},Un,Dn))}(this,Tn,Un)});Un.writable&&(Dn.writable=Un.writable);return Dn}(Tn,Un);return null}(Dn,Qn);Hn&&(Object.defineProperty(Tn.prototype,Dn,Hn),Hn.set&&Tn[sg].push(Dn))}}))}(Un,Object.getPrototypeOf(Dn)),Un}},{key:"observedAttributes",get:function get(){return[].concat(_toConsumableArray(_get(_getPrototypeOf(WrappedStandardElement),"observedAttributes",this)),pg)}}]),WrappedStandardElement}();function applyAttribute(Tn,Un,Dn){wh[Un]?"string"==typeof Dn?Tn.setAttribute(Un,""):null===Dn&&Tn.removeAttribute(Un):null!=Dn?Tn.setAttribute(Un,Dn.toString()):Tn.removeAttribute(Un)}function _templateObject$f(){var Tn=_taggedTemplateLiteral(['\n <style>\n [part~="input"] {\n font: inherit;\n outline: none;\n text-align: inherit;\n }\n </style>\n ']);return _templateObject$f=function _templateObject(){return Tn},Tn}var Ag=DelegateInputLabelMixin(FocusVisibleMixin(FormElementMixin(function TrackTextSelectionMixin(Tn){return function(Tn){_inherits(TrackTextSelection,Tn);var Un=_createSuper(TrackTextSelection);function TrackTextSelection(){return _classCallCheck(this,TrackTextSelection),Un.apply(this,arguments)}return _createClass(TrackTextSelection,[{key:Vd,value:function value(Tn){var Un=this;if(_get(_getPrototypeOf(TrackTextSelection.prototype),Vd,this)&&_get(_getPrototypeOf(TrackTextSelection.prototype),Vd,this).call(this,Tn),this[bd]){var Dn=function(){setTimeout((function(){Un[Gd]=!0,function refreshSelectionState(Tn){var Un=Tn.inner,Dn=Un.selectionEnd,Qn=Un.selectionStart;Tn[Xd]({selectionEnd:Dn,selectionStart:Qn})}(Un),Un[Gd]=!1}),10)}.bind(this);this.addEventListener("keydown",Dn),this.addEventListener("mousedown",Dn)}}},{key:qd,value:function value(Tn){_get(_getPrototypeOf(TrackTextSelection.prototype),qd,this)&&_get(_getPrototypeOf(TrackTextSelection.prototype),qd,this).call(this,Tn);var Un=this[eh],Dn=Un.selectionEnd,Qn=Un.selectionStart;null===Dn&&this[Xd]({selectionEnd:this.inner.selectionEnd}),null===Qn&&this[Xd]({selectionStart:this.inner.selectionStart})}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(TrackTextSelection.prototype),th,this)?_get(_getPrototypeOf(TrackTextSelection.prototype),th,this).call(this,Tn,Un):{};return Un.value&&Object.assign(Dn,{selectionStart:null,selectionEnd:null}),Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(TrackTextSelection.prototype),md,this)||{},{selectionEnd:null,selectionStart:null})}}]),TrackTextSelection}(Tn)}(fg.wrap("input"))))),mg=function(Tn){_inherits(Input,Ag);var Un=_createSuper(Input);function Input(){return _classCallCheck(this,Input),Un.apply(this,arguments)}return _createClass(Input,[{key:Vd,value:function value(Tn){var Un=this;_get(_getPrototypeOf(Input.prototype),Vd,this).call(this,Tn),this[bd]&&this[Ud].inner.addEventListener("input",(function(){Un[Gd]=!0,Un.value=Un.inner.value,Un[Gd]=!1}))}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Input.prototype),md,this),{valueCopy:""})}},{key:Md,get:function get(){return this.inner}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(Input.prototype),ph,this);return Tn.content.append(xh(_templateObject$f())),Tn}},{key:"value",get:function get(){return _get(_getPrototypeOf(Input.prototype),"value",this)},set:function set(Tn){var Un=String(Tn);_set(_getPrototypeOf(Input.prototype),"value",Un,this,!0),this[Xd]({valueCopy:Un})}}]),Input}();function _templateObject$g(){var Tn=_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$g=function _templateObject(){return Tn},Tn}function PlainInputMixin(Tn){return function(Tn){_inherits(PlainInput,Tn);var Un=_createSuper(PlainInput);function PlainInput(){return _classCallCheck(this,PlainInput),Un.apply(this,arguments)}return _createClass(PlainInput,[{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainInput.prototype),ph,this);return Tn.content.append(xh(_templateObject$g())),Tn}}]),PlainInput}(Tn)}var vg=function(Tn){_inherits(PlainInput,PlainInputMixin(mg));var Un=_createSuper(PlainInput);function PlainInput(){return _classCallCheck(this,PlainInput),Un.apply(this,arguments)}return PlainInput}();function _templateObject$h(){var Tn=_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$h=function _templateObject(){return Tn},Tn}var yg=ComposedFocusMixin(DelegateInputLabelMixin(FocusVisibleMixin(fg.wrap("button")))),_g=function(Tn){_inherits(Button,yg);var Un=_createSuper(Button);function Button(){return _classCallCheck(this,Button),Un.apply(this,arguments)}return _createClass(Button,[{key:hh,value:function value(){var Tn=new MouseEvent("click",{bubbles:!0,cancelable:!0});this.dispatchEvent(Tn)}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Button.prototype),md,this),{role:"button"})}},{key:Md,get:function get(){return this[Ud].inner}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(Button.prototype),ph,this);return Tn.content.append(xh(_templateObject$h())),Tn}}]),Button}(),bg=function(Tn){_inherits(SyntheticMouseEvent,_wrapNativeSuper(MouseEvent));var Un=_createSuper(SyntheticMouseEvent);function SyntheticMouseEvent(){return _classCallCheck(this,SyntheticMouseEvent),Un.apply(this,arguments)}return SyntheticMouseEvent}();function RepeatMousedownMixin(Tn){return function(Tn){_inherits(RepeatMousedown,Tn);var Un=_createSuper(RepeatMousedown);function RepeatMousedown(){return _classCallCheck(this,RepeatMousedown),Un.apply(this,arguments)}return _createClass(RepeatMousedown,[{key:Vd,value:function value(Tn){var Un=this;_get(_getPrototypeOf(RepeatMousedown.prototype),Vd,this)&&_get(_getPrototypeOf(RepeatMousedown.prototype),Vd,this).call(this,Tn),this[bd]&&(this.addEventListener("mousedown",(function(Tn){Tn instanceof bg||0!==Tn.button||(Un[Gd]=!0,repeatStart(Un),Un[Gd]=!1)})),this.addEventListener("mouseup",(function(Tn){0===Tn.button&&(Un[Gd]=!0,repeatStop(Un),Un[Gd]=!1)})),this.addEventListener("mouseleave",(function(Tn){0===Tn.button&&(Un[Gd]=!0,repeatStop(Un),Un[Gd]=!1)})),this.addEventListener("touchstart",(function(){Un[Gd]=!0,repeatStart(Un),Un[Gd]=!1})),this.addEventListener("touchend",(function(){Un[Gd]=!0,repeatStop(Un),Un[Gd]=!1})))}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(RepeatMousedown.prototype),th,this)?_get(_getPrototypeOf(RepeatMousedown.prototype),th,this).call(this,Tn,Un):{};return Un.disabled&&Tn.disabled&&(clearRepeat(this),Object.assign(Dn,{repeatInterval:null,repeatTimeout:null})),Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(RepeatMousedown.prototype),md,this)||{},{repeatDelayDuration:500,repeatInterval:null,repeatIntervalDuration:50,repeatTimeout:null})}}]),RepeatMousedown}(Tn)}function clearRepeat(Tn){Tn[eh].repeatTimeout&&clearTimeout(Tn[eh].repeatTimeout),Tn[eh].repeatInterval&&clearInterval(Tn[eh].repeatInterval)}function repeatStart(Tn){var Un=Tn[eh],Dn=Un.repeatIntervalDuration,Qn=Un.repeatDelayDuration,Hn=setTimeout((function(){var Un=setInterval((function(){!function raiseMousedown(Tn){var Un=new bg("mousedown",{bubbles:!0,button:0,cancelable:!0,clientX:0,clientY:0});Tn.dispatchEvent(Un)}(Tn)}),Dn);Tn[Xd]({repeatInterval:Un})}),Qn-Dn);Tn[Xd]({repeatTimeout:Hn})}function repeatStop(Tn){clearRepeat(Tn),Tn[Xd]({repeatTimeout:null,repeatInterval:null})}var wg=function(Tn){_inherits(RepeatButton,RepeatMousedownMixin(_g));var Un=_createSuper(RepeatButton);function RepeatButton(){return _classCallCheck(this,RepeatButton),Un.apply(this,arguments)}return RepeatButton}();function _templateObject$i(){var Tn=_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$i=function _templateObject(){return Tn},Tn}function PlainButtonMixin(Tn){return function(Tn){_inherits(PlainButton,Tn);var Un=_createSuper(PlainButton);function PlainButton(){return _classCallCheck(this,PlainButton),Un.apply(this,arguments)}return _createClass(PlainButton,[{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainButton.prototype),ph,this);return Tn.content.append(xh(_templateObject$i())),Tn}}]),PlainButton}(Tn)}var xg=function(Tn){_inherits(PlainRepeatButton,PlainButtonMixin(wg));var Un=_createSuper(PlainRepeatButton);function PlainRepeatButton(){return _classCallCheck(this,PlainRepeatButton),Un.apply(this,arguments)}return PlainRepeatButton}();function _templateObject$j(){var Tn=_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$j=function _templateObject(){return Tn},Tn}function PlainSpinBoxMixin(Tn){return function(Tn){_inherits(PlainSpinBox,Tn);var Un=_createSuper(PlainSpinBox);function PlainSpinBox(){return _classCallCheck(this,PlainSpinBox),Un.apply(this,arguments)}return _createClass(PlainSpinBox,[{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainSpinBox.prototype),md,this)||{},{buttonPartType:xg,inputPartType:vg})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainSpinBox.prototype),ph,this);return Tn.content.getElementById("upButton").textContent="▲",Tn.content.getElementById("downButton").textContent="▼",Tn.content.append(xh(_templateObject$j())),Tn}}]),PlainSpinBox}(Tn)}var Sg=function(Tn){_inherits(PlainNumberSpinBox,PlainSpinBoxMixin(rg));var Un=_createSuper(PlainNumberSpinBox);function PlainNumberSpinBox(){return _classCallCheck(this,PlainNumberSpinBox),Un.apply(this,arguments)}return PlainNumberSpinBox}(),Cg=function(Tn){_inherits(ElixNumberSpinBox,Sg);var Un=_createSuper(ElixNumberSpinBox);function ElixNumberSpinBox(){return _classCallCheck(this,ElixNumberSpinBox),Un.apply(this,arguments)}return ElixNumberSpinBox}();function _templateObject2$6(){var Tn=_taggedTemplateLiteral(['\n <style>\n [part~="source"] {\n grid-template-columns: 20px 1fr auto;\n }\n ::slotted(*) {\n padding: 4px;\n background: #E8E8E8;\n border: 1px solid #B0B0B0;\n width: 100%;\n }\n [part~="popup"] {\n width: 150%;\n }\n </style>\n ']);return _templateObject2$6=function _templateObject2(){return Tn},Tn}function _templateObject$k(){var Tn=_taggedTemplateLiteral(['\n <img src="./images/logo.svg" alt="icon" width="18" height="18"></img>\n ']);return _templateObject$k=function _templateObject(){return Tn},Tn}customElements.define("elix-number-spin-box",Cg);var kg=function(Tn){_inherits(Zoom,eg);var Un=_createSuper(Zoom);function Zoom(){return _classCallCheck(this,Zoom),Un.apply(this,arguments)}return _createClass(Zoom,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn)switch(Tn){case"title":break;case"src":this.src=Dn;break;case"inputsize":this.inputsize=Dn;break;default:_get(_getPrototypeOf(Zoom.prototype),"attributeChangedCallback",this).call(this,Tn,Un,Dn)}}},{key:Vd,value:function value(Tn){var Un=this;_get(_getPrototypeOf(Zoom.prototype),Vd,this).call(this,Tn),this[bd]&&(this.$img=this.shadowRoot.querySelector("img"),this.$input=this.shadowRoot.getElementById("input")),Tn.src&&this.$img.setAttribute("src",this[eh].src),Tn.inputsize&&(this.$input.shadowRoot.querySelector('[part~="input"]').style.width=this[eh].inputsize),Tn.inputPartType&&this.addEventListener("close",(function(Tn){var Dn,Qn;Tn.preventDefault();var Hn=null===(Dn=Tn.detail)||void 0===Dn||null===(Qn=Dn.closeResult)||void 0===Qn?void 0:Qn.getAttribute("value");if(Hn){var Gn=new CustomEvent("change",{detail:{value:Hn}});Un.dispatchEvent(Gn)}}))}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Zoom.prototype),md,this),{inputPartType:Cg,src:"./images/logo.svg",inputsize:"100%"})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(Zoom.prototype),ph,this);return Tn.content.getElementById("source").prepend(xh(_templateObject$k()).cloneNode(!0)),Tn.content.append(Sh.html(_templateObject2$6()).content),Tn}},{key:"src",get:function get(){return this[eh].src},set:function set(Tn){this[Xd]({src:Tn})}},{key:"inputsize",get:function get(){return this[eh].inputsize},set:function set(Tn){this[Xd]({inputsize:Tn})}},{key:"value",get:function get(){return this[eh].value},set:function set(Tn){this[Xd]({value:Tn})}}],[{key:"observedAttributes",get:function get(){return["title","src","inputsize","value"]}}]),Zoom}();customElements.define("se-zoom",kg);var Bg=function(Tn){_inherits(ElixInput,vg);var Un=_createSuper(ElixInput);function ElixInput(){return _classCallCheck(this,ElixInput),Un.apply(this,arguments)}return ElixInput}();customElements.define("elix-input",Bg);var Eg=document.createElement("template");Eg.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 }\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 Pg=function(Tn){_inherits(SEInput,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SEInput);function SEInput(){var Tn;return _classCallCheck(this,SEInput),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(Eg.content.cloneNode(!0)),Tn.$img=Tn._shadowRoot.querySelector("img"),Tn.$label=Tn.shadowRoot.getElementById("label"),Tn.$event=new CustomEvent("change"),Tn.$input=Tn._shadowRoot.querySelector("elix-input"),Tn}return _createClass(SEInput,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn)switch(Tn){case"src":this.$img.setAttribute("src",Dn),this.$label.remove();break;case"size":this.$input.setAttribute("size",Dn);break;case"label":this.$label.textContent=Dn,this.$img.remove();break;case"value":this.$input.value=Dn;break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this;this.addEventListener("change",(function(Un){Un.preventDefault(),Tn.value=Un.target.value})),this.dispatchEvent(this.$event)}},{key:"label",get:function get(){return this.getAttribute("label")},set:function set(Tn){this.setAttribute("label",Tn)}},{key:"value",get:function get(){return this.$input.value},set:function set(Tn){this.$input.value=Tn}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(Tn){this.setAttribute("src",Tn)}},{key:"size",get:function get(){return this.getAttribute("size")},set:function set(Tn){this.setAttribute("size",Tn)}}],[{key:"observedAttributes",get:function get(){return["value","label","src","size"]}}]),SEInput}();customElements.define("se-input",Pg);var Lg=document.createElement("template");Lg.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 }\n elix-number-spin-box::part(spin-button) {\n padding: 0px;\n }\n </style>\n <img src="./images/logo.svg" alt="icon" width="12" height="12" aria-labelledby="label" />\n <span id="label">label</span>\n <elix-number-spin-box min="1" step="1"></elix-number-spin-box>\n';var Tg,Ng=function(Tn){_inherits(SESpinInput,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SESpinInput);function SESpinInput(){var Tn;return _classCallCheck(this,SESpinInput),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(Lg.content.cloneNode(!0)),Tn.$img=Tn._shadowRoot.querySelector("img"),Tn.$label=Tn.shadowRoot.getElementById("label"),Tn.$event=new CustomEvent("change"),Tn.$input=Tn._shadowRoot.querySelector("elix-number-spin-box"),Tn}return _createClass(SESpinInput,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn)switch(Tn){case"src":this.$img.setAttribute("src",Dn),this.$label.remove();break;case"size":this.$input.shadowRoot.getElementById("input").size=Dn,this.$input.shadowRoot.getElementById("input").style.width="unset";break;case"step":this.$input.setAttribute("step",Dn);break;case"min":this.$input.setAttribute("min",Dn);break;case"max":this.$input.setAttribute("max",Dn);break;case"label":this.$label.textContent=Dn,this.$img.remove();break;case"value":this.$input.value=Dn;break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this;this.$input.addEventListener("change",(function(Un){Un.preventDefault(),Tn.value=Un.target.value,Tn.dispatchEvent(Tn.$event)})),this.$input.addEventListener("click",(function(Un){Un.preventDefault(),Tn.value=Un.target.value,Tn.dispatchEvent(Tn.$event)}))}},{key:"label",get:function get(){return this.getAttribute("label")},set:function set(Tn){this.setAttribute("label",Tn)}},{key:"value",get:function get(){return this.$input.value},set:function set(Tn){this.$input.value=Tn}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(Tn){this.setAttribute("src",Tn)}},{key:"size",get:function get(){return this.getAttribute("size")},set:function set(Tn){this.setAttribute("size",Tn)}}],[{key:"observedAttributes",get:function get(){return["value","label","src","size","min","max","step"]}}]),SESpinInput}();customElements.define("se-spin-input",Ng);var Ig=window.ResizeObserver;function _templateObject$l(){var Tn=_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 Tn},Tn}void 0!==Ig&&(Tg=new Ig((function(Tn){Tn.forEach((function(Tn){var Un=Tn.target,Dn=Un.clientHeight,Qn=Un.clientWidth;Un[Xd]({clientHeight:Dn,clientWidth:Qn})}))})));var Og=CursorAPIMixin(CursorSelectMixin(function EffectMixin(Tn){return function(Tn){_inherits(Transition,Tn);var Un=_createSuper(Transition);function Transition(){return _classCallCheck(this,Transition),Un.apply(this,arguments)}return _createClass(Transition,[{key:qd,value:function value(Tn){var Un=this;_get(_getPrototypeOf(Transition.prototype),qd,this)&&_get(_getPrototypeOf(Transition.prototype),qd,this).call(this,Tn),this[bd]&&setTimeout((function(){Un[Xd]({enableEffects:!0})}))}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Transition.prototype),md,this)||{},{enableEffects:!1})}}]),Transition}(Tn)}(ItemsAPIMixin(ItemsCursorMixin(LanguageDirectionMixin(function ResizeMixin(Tn){return function(Tn){_inherits(Resize,Tn);var Un=_createSuper(Resize);function Resize(){return _classCallCheck(this,Resize),Un.apply(this,arguments)}return _createClass(Resize,[{key:gd,value:function value(){_get(_getPrototypeOf(Resize.prototype),gd,this)&&_get(_getPrototypeOf(Resize.prototype),gd,this).call(this);var Tn=this.clientHeight,Un=this.clientWidth;(Tn!==this[eh].clientHeight||Un!==this[eh].clientWidth)&&this[Xd]({clientHeight:Tn,clientWidth:Un})}},{key:"connectedCallback",value:function connectedCallback(){_get(_getPrototypeOf(Resize.prototype),"connectedCallback",this).call(this),Tg&&Tg.observe(this)}},{key:"disconnectedCallback",value:function disconnectedCallback(){_get(_getPrototypeOf(Resize.prototype),"disconnectedCallback",this)&&_get(_getPrototypeOf(Resize.prototype),"disconnectedCallback",this).call(this),Tg&&Tg.unobserve(this)}},{key:qd,value:function value(Tn){_get(_getPrototypeOf(Resize.prototype),qd,this)&&_get(_getPrototypeOf(Resize.prototype),qd,this).call(this,Tn),this[gd]()}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Resize.prototype),md,this)||{},{clientHeight:this.clientHeight,clientWidth:this.clientWidth})}}]),Resize}(Tn)}(SingleSelectAPIMixin(SlotItemsMixin(TapCursorMixin(Wh)))))))))),Fg=function(Tn){_inherits(CenteredStrip,Og);var Un=_createSuper(CenteredStrip);function CenteredStrip(){return _classCallCheck(this,CenteredStrip),Un.apply(this,arguments)}return _createClass(CenteredStrip,[{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(CenteredStrip.prototype),Vd,this).call(this,Tn),Tn.clientWidth||Tn.enableEffects||Tn.rightToLeft||Tn.currentIndex||Tn.swipeFraction){var Un=this[eh],Dn=Un.orientation,Qn=Un.rightToLeft,Hn=Un.currentIndex,Gn=Qn?1:-1,Vn=null!=this[eh].swipeFraction,zn=Hn+Gn*(this[eh].swipeFraction||0),Kn="vertical"===Dn,$n=Kn?"offsetTop":"offsetLeft",Wn=Kn?"offsetHeight":"offsetWidth",Xn=this[Ud].stripContainer[Wn],Yn=this[Ud].strip[Wn];if(Yn>0){var Jn=0,Zn="";if(Yn<=Xn)Zn="center";else{var er=Math.floor(zn),tr=this.items&&this.items[er],nr=tr instanceof HTMLElement?tr[$n]+tr[Wn]/2:0,rr=er+1,ir=this.items&&this.items[rr],or=ir instanceof HTMLElement?ir[$n]+ir[Wn]/2:0,ar=0;if(tr&&!ir)ar=nr;else if(!tr&&ir)ar=or;else if(tr&&ir){ar=nr+(zn-er)*(or-nr)}!Kn&&Qn&&(ar=Yn-ar),Jn=ar-Xn/2,Jn=Math.max(Jn,0),Jn=Math.min(Jn,Yn-Xn),Jn*=Gn}var sr="translate".concat(Kn?"Y":"X","(").concat(Jn,"px)"),lr=this[eh].enableEffects&&!Vn;Object.assign(this[Ud].strip.style,{transform:sr,transition:lr?"transform 0.25s":"none"}),this[Ud].stripContainer.style.justifyContent=Zn}}if(Tn.items||Tn.currentIndex){var cr=this[eh],ur=cr.currentIndex,dr=cr.items;dr&&dr.forEach((function(Tn,Un){Tn.toggleAttribute("selected",Un===ur)}))}if(Tn.orientation){var hr="horizontal"===this[eh].orientation?"":"column";this[Ud].stripContainer.style.flexDirection=hr,this[Ud].strip.style.flexDirection=hr}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(CenteredStrip.prototype),md,this),{currentItemRequired:!0,orientation:"horizontal"})}},{key:"orientation",get:function get(){return this[eh].orientation},set:function set(Tn){this[Xd]({orientation:Tn})}},{key:"swipeFraction",get:function get(){return this[eh].swipeFraction},set:function set(Tn){this[Xd]({swipeFraction:Tn})}},{key:ph,get:function get(){return Sh.html(_templateObject$l())}}]),CenteredStrip}(),Ug=function(Tn){_inherits(PlainCenteredStrip,Fg);var Un=_createSuper(PlainCenteredStrip);function PlainCenteredStrip(){return _classCallCheck(this,PlainCenteredStrip),Un.apply(this,arguments)}return PlainCenteredStrip}(),Mg=function(Tn){_inherits(ElixCenteredStrip,Ug);var Un=_createSuper(ElixCenteredStrip);function ElixCenteredStrip(){return _classCallCheck(this,ElixCenteredStrip),Un.apply(this,arguments)}return ElixCenteredStrip}();customElements.define("elix-centered-strip",Mg);var Rg=["#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"],Dg=document.createElement("template");Dg.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">\n </elix-centered-strip>\n </div>\n';var jg=function(Tn){_inherits(SEPalette,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SEPalette);function SEPalette(){var Tn;return _classCallCheck(this,SEPalette),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(Dg.content.cloneNode(!0)),Tn.$strip=Tn._shadowRoot.querySelector("elix-centered-strip"),Rg.forEach((function(Un){var Dn=document.createElement("div");Dn.classList.add("square"),Dn.style.backgroundColor=Un,Dn.dataset.rgb=Un,Tn.$strip.appendChild(Dn)})),Tn}return _createClass(SEPalette,[{key:"connectedCallback",value:function connectedCallback(){var Tn=this;this.$strip.addEventListener("click",(function(Un){Un.preventDefault();var Dn=Un.shiftKey||2===Un.button?"stroke":"fill",Qn=Tn.$strip.currentItem.dataset.rgb;"none"!==Qn&&"transparent"!==Qn&&"initial"!==Qn||(Qn="none");var Hn=new CustomEvent("change",{detail:{picker:Dn,color:Qn},bubbles:!1});Tn.dispatchEvent(Hn)}))}}]),SEPalette}();function _templateObject$m(){var Tn=_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$m=function _templateObject(){return Tn},Tn}customElements.define("se-palette",jg);var Qg=function AriaMenuMixin(Tn){return function(Tn){_inherits(AriaMenu,Tn);var Un=_createSuper(AriaMenu);function AriaMenu(){return _classCallCheck(this,AriaMenu),Un.apply(this,arguments)}return _createClass(AriaMenu,[{key:Vd,value:function value(Tn){_get(_getPrototypeOf(AriaMenu.prototype),Vd,this)&&_get(_getPrototypeOf(AriaMenu.prototype),Vd,this).call(this,Tn);var Un=this[eh].items;if((Tn.items||Tn.itemRole)&&Un){var Dn=this[eh].itemRole;Un.forEach((function(Tn){Dn===Dp[Tn.localName]?Tn.removeAttribute("role"):Tn.setAttribute("role",Dn)}))}if(Tn.role){var Qn=this[eh].role;this.setAttribute("role",Qn)}}},{key:md,get:function get(){var Tn=_get(_getPrototypeOf(AriaMenu.prototype),md,this);return Object.assign(Tn,{itemRole:Tn.itemRole||"menuitem",role:Tn.role||"menu"})}},{key:"itemRole",get:function get(){return this[eh].itemRole},set:function set(Tn){this[Xd]({itemRole:Tn})}},{key:"role",get:function get(){return _get(_getPrototypeOf(AriaMenu.prototype),"role",this)},set:function set(Tn){_set(_getPrototypeOf(AriaMenu.prototype),"role",Tn,this,!0),this[$d]||this[Xd]({role:Tn})}}]),AriaMenu}(Tn)}(CursorAPIMixin(CursorInViewMixin(DelegateFocusMixin(DirectionCursorMixin(ItemsAPIMixin(ItemsCursorMixin(ItemsTextMixin(KeyboardDirectionMixin(KeyboardMixin(KeyboardPagedCursorMixin(KeyboardPrefixCursorMixin(LanguageDirectionMixin(SlotItemsMixin(TapCursorMixin(Wh))))))))))))))),Hg=function(Tn){_inherits(Menu,Qg);var Un,Dn=_createSuper(Menu);function Menu(){return _classCallCheck(this,Menu),Dn.apply(this,arguments)}return _createClass(Menu,[{key:"flashCurrentItem",value:(Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var Tn,Un,Dn;return regeneratorRuntime.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:if(Tn=this[eh].focusVisible,Un=matchMedia("(pointer: fine)").matches,!Tn&&!Un){Qn.next=10;break}return Dn=75,this[Xd]({highlightCurrentItem:!1}),Qn.next=7,new Promise((function(Tn){return setTimeout(Tn,Dn)}));case 7:return this[Xd]({highlightCurrentItem:!0}),Qn.next=10,new Promise((function(Tn){return setTimeout(Tn,Dn)}));case 10:case"end":return Qn.stop()}}),_callee,this)}))),function flashCurrentItem(){return Un.apply(this,arguments)})},{key:Vd,value:function value(Tn){var Un=this;_get(_getPrototypeOf(Menu.prototype),Vd,this).call(this,Tn),this[bd]&&(this.addEventListener("disabledchange",(function(Tn){Un[Gd]=!0;var Dn=Tn.target,Qn=Un[eh].items,Hn=null===Qn?-1:Qn.indexOf(Dn);if(Hn>=0){var Gn=Un[eh].availableItemFlags.slice();Gn[Hn]=!Dn.disabled,Un[Xd]({availableItemFlags:Gn})}Un[Gd]=!1})),"PointerEvent"in window?this.addEventListener("pointerdown",(function(Tn){return Un[hh](Tn)})):this.addEventListener("touchstart",(function(Tn){return Un[hh](Tn)})),this.removeAttribute("tabindex"));var Dn=this[eh],Qn=Dn.currentIndex,Hn=Dn.items;if((Tn.items||Tn.currentIndex||Tn.highlightCurrentItem)&&Hn){var Gn=this[eh].highlightCurrentItem;Hn.forEach((function(Tn,Un){Tn.toggleAttribute("current",Gn&&Un===Qn)}))}(Tn.items||Tn.currentIndex||Tn.currentItemFocused||Tn.focusVisible)&&Hn&&Hn.forEach((function(Tn,Dn){var Hn=Dn===Qn,Gn=Qn<0&&0===Dn;Un[eh].currentItemFocused?Hn||Gn||Tn.removeAttribute("tabindex"):(Hn||Gn)&&(Tn.tabIndex=0)}))}},{key:qd,value:function value(Tn){if(_get(_getPrototypeOf(Menu.prototype),qd,this).call(this,Tn),!this[bd]&&Tn.currentIndex&&!this[eh].currentItemFocused){var Un=this[eh].currentItem;(Un instanceof HTMLElement?Un:this).focus(),this[Xd]({currentItemFocused:!0})}}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(Menu.prototype),th,this).call(this,Tn,Un);if(Un.currentIndex&&Object.assign(Dn,{currentItemFocused:!1}),Un.items){var Qn=Tn.items,Hn=null===Qn?null:Qn.map((function(Tn){return!Tn.disabled}));Object.assign(Dn,{availableItemFlags:Hn})}return Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Menu.prototype),md,this),{availableItemFlags:null,highlightCurrentItem:!0,orientation:"vertical",currentItemFocused:!1})}},{key:Wd,get:function get(){return this[Ud].content}},{key:ph,get:function get(){return Sh.html(_templateObject$m())}}]),Menu}();function _templateObject$n(){var Tn=_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$n=function _templateObject(){return Tn},Tn}var Gg=DelegateFocusMixin(KeyboardMixin(PopupDragSelectMixin(Ep))),Vg=function(Tn){_inherits(PopupButton,Gg);var Un=_createSuper(PopupButton);function PopupButton(){return _classCallCheck(this,PopupButton),Un.apply(this,arguments)}return _createClass(PopupButton,[{key:Dd,value:function value(Tn){var Un;switch(Tn.key){case" ":case"ArrowDown":case"ArrowUp":this.closed&&(this.open(),Un=!0);break;case"Enter":this.opened||(this.open(),Un=!0);break;case"Escape":this.opened&&(this.close({canceled:"Escape"}),Un=!0)}if(!(Un=_get(_getPrototypeOf(PopupButton.prototype),Dd,this)&&_get(_getPrototypeOf(PopupButton.prototype),Dd,this).call(this,Tn))&&this.opened&&!Tn.metaKey&&!Tn.altKey)switch(Tn.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":case"PageDown":case"PageUp":case" ":Un=!0}return Un}},{key:Vd,value:function value(Tn){var Un=this;if(_get(_getPrototypeOf(PopupButton.prototype),Vd,this).call(this,Tn),this[bd]&&this[Ud].source.addEventListener("focus",function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn){var Dn,Qn;return regeneratorRuntime.wrap((function _callee$(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:if(Dn=ownEvent(Un[Ud].popup,Tn),Qn=null!==Un[eh].popupHeight,Dn||!Un.opened||!Qn){Hn.next=7;break}return Un[Gd]=!0,Hn.next=6,Un.close();case 6:Un[Gd]=!1;case 7:case"end":return Hn.stop()}}),_callee)})));return function(Un){return Tn.apply(this,arguments)}}()),Tn.opened){var Dn=this[eh].opened;this.toggleAttribute("opened",Dn)}Tn.sourcePartType&&this[Ud].source.addEventListener("mousedown",(function(Tn){if(Un.disabled)Tn.preventDefault();else{var Dn=Tn;Dn.button&&0!==Dn.button||(setTimeout((function(){Un.opened||(Un[Gd]=!0,Un.open(),Un[Gd]=!1)})),Tn.stopPropagation())}}));Tn.popupPartType&&this[Ud].popup.removeAttribute("tabindex")}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PopupButton.prototype),md,this),{sourcePartType:"button"})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PopupButton.prototype),ph,this);return Tn.content.append(xh(_templateObject$n())),Tn}}]),PopupButton}();function _templateObject2$7(){var Tn=_taggedTemplateLiteral(['\n <style>\n [part~="menu"] {\n max-height: 100%;\n }\n </style>\n ']);return _templateObject2$7=function _templateObject2(){return Tn},Tn}function _templateObject$o(){var Tn=_taggedTemplateLiteral(['\n <div id="menu" part="menu">\n <slot></slot>\n </div>\n ']);return _templateObject$o=function _templateObject(){return Tn},Tn}var zg=PopupListMixin(Vg),Kg=function(Tn){_inherits(MenuButton,zg);var Un=_createSuper(MenuButton);function MenuButton(){return _classCallCheck(this,MenuButton),Un.apply(this,arguments)}return _createClass(MenuButton,[{key:Vd,value:function value(Tn){var Un=this;if(_get(_getPrototypeOf(MenuButton.prototype),Vd,this).call(this,Tn),renderParts$6(this[Yd],this[eh],Tn),Tn.menuPartType&&(this[Ud].menu.addEventListener("blur",function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn){var Dn;return regeneratorRuntime.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:if(Dn=Tn.relatedTarget||document.activeElement,!Un.opened||deepContains(Un[Ud].menu,Dn)){Qn.next=7;break}return Un[Gd]=!0,Qn.next=6,Un.close();case 6:Un[Gd]=!1;case 7:case"end":return Qn.stop()}}),_callee)})));return function(Un){return Tn.apply(this,arguments)}}()),this[Ud].menu.addEventListener("mousedown",(function(Tn){0===Tn.button&&Un.opened&&(Tn.stopPropagation(),Tn.preventDefault())}))),Tn.opened){var Dn=this[eh].opened;this[Ud].source.setAttribute("aria-expanded",Dn.toString())}}},{key:qd,value:function value(Tn){_get(_getPrototypeOf(MenuButton.prototype),qd,this).call(this,Tn),Tn.menuPartType&&this[Xd]({popupList:this[Ud].menu})}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(MenuButton.prototype),th,this).call(this,Tn,Un);return Un.opened&&!Tn.opened&&Object.assign(Dn,{currentIndex:-1}),Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(MenuButton.prototype),md,this),{menuPartType:Hg})}},{key:"items",get:function get(){var Tn=this[Ud]&&this[Ud].menu;return Tn?Tn.items:null}},{key:"menuPartType",get:function get(){return this[eh].menuPartType},set:function set(Tn){this[Xd]({menuPartType:Tn})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(MenuButton.prototype),ph,this),Un=Tn.content.querySelector("slot:not([name])");return Un&&Un.replaceWith(xh(_templateObject$o())),renderParts$6(Tn.content,this[eh]),Tn.content.append(xh(_templateObject2$7())),Tn}}]),MenuButton}();function renderParts$6(Tn,Un,Dn){if(!Dn||Dn.menuPartType){var Qn=Un.menuPartType,Hn=Tn.getElementById("menu");Hn&&transmute(Hn,Qn)}}var qg=function(Tn){_inherits(PlainButton,PlainButtonMixin(_g));var Un=_createSuper(PlainButton);function PlainButton(){return _classCallCheck(this,PlainButton),Un.apply(this,arguments)}return PlainButton}();function _templateObject$p(){var Tn=_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$p=function _templateObject(){return Tn},Tn}var $g=function(Tn){_inherits(PlainBorderButton,qg);var Un=_createSuper(PlainBorderButton);function PlainBorderButton(){return _classCallCheck(this,PlainBorderButton),Un.apply(this,arguments)}return _createClass(PlainBorderButton,[{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainBorderButton.prototype),ph,this);return Tn.content.append(xh(_templateObject$p())),Tn}}]),PlainBorderButton}();function _templateObject$q(){var Tn=_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$q=function _templateObject(){return Tn},Tn}var Wg=function(Tn){_inherits(PlainMenu,Hg);var Un=_createSuper(PlainMenu);function PlainMenu(){return _classCallCheck(this,PlainMenu),Un.apply(this,arguments)}return _createClass(PlainMenu,[{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainMenu.prototype),ph,this);return Tn.content.append(xh(_templateObject$q())),Tn}}]),PlainMenu}();function _templateObject$r(){var Tn=_taggedTemplateLiteral(['\n <style>\n [part~="menu"] {\n background: window;\n border: none;\n padding: 0.5em 0;\n }\n </style>\n ']);return _templateObject$r=function _templateObject(){return Tn},Tn}var Xg=function(Tn){_inherits(PlainMenuButton,PopupToggleMixin(Kg));var Un=_createSuper(PlainMenuButton);function PlainMenuButton(){return _classCallCheck(this,PlainMenuButton),Un.apply(this,arguments)}return _createClass(PlainMenuButton,[{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainMenuButton.prototype),md,this),{menuPartType:Wg,popupPartType:Jp,popupTogglePartType:Wp,sourcePartType:$g})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainMenuButton.prototype),ph,this);return Tn.content.append(xh(_templateObject$r())),Tn}}]),PlainMenuButton}(),Yg=function(Tn){_inherits(ElixMenuButton,Xg);var Un=_createSuper(ElixMenuButton);function ElixMenuButton(){return _classCallCheck(this,ElixMenuButton),Un.apply(this,arguments)}return ElixMenuButton}();function CurrentMixin(Tn){return function(Tn){_inherits(Current,Tn);var Un=_createSuper(Current);function Current(){var Tn;_classCallCheck(this,Current);var Dn=_assertThisInitialized(Tn=Un.call(this));return!Tn[Hd]&&Dn.attachInternals&&(Tn[Hd]=Dn.attachInternals()),Tn}return _createClass(Current,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if("current"===Tn){var Qn=booleanAttributeValue(Tn,Dn);this.current!==Qn&&(this.current=Qn)}else _get(_getPrototypeOf(Current.prototype),"attributeChangedCallback",this).call(this,Tn,Un,Dn)}},{key:Vd,value:function value(Tn){(_get(_getPrototypeOf(Current.prototype),Vd,this).call(this,Tn),Tn.current)&&setInternalState$7(this,"current",this[eh].current)}},{key:qd,value:function value(Tn){if(_get(_getPrototypeOf(Current.prototype),qd,this)&&_get(_getPrototypeOf(Current.prototype),qd,this).call(this,Tn),Tn.current){var Un=this[eh].current,Dn=new CustomEvent("current-changed",{bubbles:!0,detail:{current:Un}});this.dispatchEvent(Dn);var Qn=new CustomEvent("currentchange",{bubbles:!0,detail:{current:Un}});this.dispatchEvent(Qn)}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Current.prototype),md,this)||{},{current:!1})}},{key:"current",get:function get(){return this[eh].current},set:function set(Tn){this[Xd]({current:Tn})}}]),Current}(Tn)}function SelectableMixin(Tn){return function(Tn){_inherits(Selectable,Tn);var Un=_createSuper(Selectable);function Selectable(){var Tn;_classCallCheck(this,Selectable);var Dn=_assertThisInitialized(Tn=Un.call(this));return!Tn[Hd]&&Dn.attachInternals&&(Tn[Hd]=Dn.attachInternals()),Tn}return _createClass(Selectable,[{key:Vd,value:function value(Tn){(_get(_getPrototypeOf(Selectable.prototype),Vd,this).call(this,Tn),Tn.selected)&&setInternalState$7(this,"selected",this[eh].selected)}},{key:qd,value:function value(Tn){if(_get(_getPrototypeOf(Selectable.prototype),qd,this)&&_get(_getPrototypeOf(Selectable.prototype),qd,this).call(this,Tn),Tn.selected){var Un=this[eh].selected,Dn=new CustomEvent("selected-changed",{bubbles:!0,detail:{selected:Un}});this.dispatchEvent(Dn);var Qn=new CustomEvent("selectedchange",{bubbles:!0,detail:{selected:Un}});this.dispatchEvent(Qn)}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Selectable.prototype),md,this)||{},{selected:!1})}},{key:"selected",get:function get(){return this[eh].selected},set:function set(Tn){this[Xd]({selected:Tn})}}]),Selectable}(Tn)}customElements.define("elix-menu-button",Yg);var Jg=function(Tn){_inherits(MenuItem,CurrentMixin(DisabledMixin(SelectableMixin(Wh))));var Un=_createSuper(MenuItem);function MenuItem(){return _classCallCheck(this,MenuItem),Un.apply(this,arguments)}return MenuItem}();function _templateObject$s(){var Tn=_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$s=function _templateObject(){return Tn},Tn}var Zg=function(Tn){_inherits(PlainMenuItem,Jg);var Un=_createSuper(PlainMenuItem);function PlainMenuItem(){return _classCallCheck(this,PlainMenuItem),Un.apply(this,arguments)}return _createClass(PlainMenuItem,[{key:ph,get:function get(){return Sh.html(_templateObject$s())}}]),PlainMenuItem}(),ef=function(Tn){_inherits(ElixMenuItem,Zg);var Un=_createSuper(ElixMenuItem);function ElixMenuItem(){return _classCallCheck(this,ElixMenuItem),Un.apply(this,arguments)}return ElixMenuItem}();customElements.define("elix-menu-item",ef);var tf=document.createElement("template");tf.innerHTML='\n <style>\n :host {\n padding: 0px;\n }\n elix-menu-button::part(menu) {\n background-color: #eee !important;\n }\n elix-menu-button::part(popup-toggle) {\n padding: 0.25em 0.60em !important\n }\n :host ::slotted([current]){\n background-color: #F4E284 !important;\n }\n </style>\n \n <elix-menu-button id="MenuButton" aria-label="Main Menu">\n <slot></slot>\n </elix-menu-button>\n \n';var nf=function(Tn){_inherits(SeMenu,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SeMenu);function SeMenu(){var Tn;return _classCallCheck(this,SeMenu),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(tf.content.cloneNode(!0)),Tn.$menu=Tn._shadowRoot.querySelector("elix-menu-button"),Tn.$label=Tn.$menu.shadowRoot.querySelector("#popupToggle").shadowRoot,Tn}return _createClass(SeMenu,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){var Qn=new Image;if(Un!==Dn)switch(Tn){case"src":Qn.src=Dn,Qn.width=18,Qn.height=18,this.$label.prepend(Qn);break;case"label":this.$label.prepend(Dn);break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"connectedCallback",value:function connectedCallback(){this.$menu.addEventListener("openedchange",(function(Tn){var Un;Tn.preventDefault();var Dn=null==Tn||null===(Un=Tn.detail)||void 0===Un?void 0:Un.closeResult;void 0!==Dn&&void 0!==(null==Dn?void 0:Dn.id)&&document.getElementById(Dn.id).click()}))}},{key:"label",get:function get(){return this.getAttribute("label")},set:function set(Tn){this.setAttribute("label",Tn)}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(Tn){this.setAttribute("src",Tn)}}],[{key:"observedAttributes",get:function get(){return["label","src"]}}]),SeMenu}();customElements.define("se-menu",nf);var rf=function(Tn){_inherits(ElixMenu,Wg);var Un=_createSuper(ElixMenu);function ElixMenu(){return _classCallCheck(this,ElixMenu),Un.apply(this,arguments)}return ElixMenu}();customElements.define("elix-menu",rf);var of=document.createElement("template");of.innerHTML='\n <style>\n </style> \n <elix-menu-item>\n <div style="display:inline-block;">\n <img src="./images/logo.svg" alt="icon" style="display:none;" /> \n <span></span>\n </div>\n </elix-menu-item> \n';var af=function(Tn){_inherits(SeMenuItem,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SeMenuItem);function SeMenuItem(){var Tn;return _classCallCheck(this,SeMenuItem),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(of.content.cloneNode(!0)),Tn.$img=Tn._shadowRoot.querySelector("img"),Tn.$label=Tn._shadowRoot.querySelector("span"),Tn.$menuitem=Tn._shadowRoot.querySelector("elix-menu-item"),Tn.$svg=Tn.$menuitem.shadowRoot.querySelector("#checkmark"),Tn.$svg.setAttribute("style","width:1px;height:1px;"),Tn}return _createClass(SeMenuItem,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){var Qn="";if(Un!==Dn)switch(Tn){case"src":this.$img.setAttribute("src",Dn),this.$img.style.display="inline-block";break;case"label":Qn=this.getAttribute("shortcut"),this.$label.textContent="".concat(Dn," ").concat(Qn?"(".concat(Qn,")"):"");break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=this.getAttribute("shortcut");Un&&document.addEventListener("keydown",(function(Dn){if("BODY"===Dn.target.nodeName){var Qn="".concat(Dn.metaKey?"meta+":"").concat(Dn.ctrlKey?"ctrl+":"").concat(Dn.key.toUpperCase());Un===Qn&&(Tn.id&&document.getElementById(Tn.id).click(),Dn.preventDefault())}}))}},{key:"label",get:function get(){return this.getAttribute("label")},set:function set(Tn){this.setAttribute("label",Tn)}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(Tn){this.setAttribute("src",Tn)}}],[{key:"observedAttributes",get:function get(){return["label","src"]}}]),SeMenuItem}();function _templateObject3$1(){var Tn=_taggedTemplateLiteral(['\n <style>\n [part~="list"] {\n max-height: 100%;\n }\n </style>\n ']);return _templateObject3$1=function _templateObject3(){return Tn},Tn}function _templateObject2$8(){var Tn=_taggedTemplateLiteral(['\n <div id="list" part="list">\n <slot></slot>\n </div>\n ']);return _templateObject2$8=function _templateObject2(){return Tn},Tn}function _templateObject$t(){var Tn=_taggedTemplateLiteral([' <div id="value" part="value"></div> ']);return _templateObject$t=function _templateObject(){return Tn},Tn}customElements.define("se-menu-item",af);var sf=CursorAPIMixin(DelegateInputLabelMixin(FormElementMixin(ItemsAPIMixin(ItemsCursorMixin(PopupListMixin(SelectedTextAPIMixin(SelectedValueAPIMixin(SingleSelectAPIMixin(SlotItemsMixin(Vg)))))))))),lf=function(Tn){_inherits(DropdownList,sf);var Un=_createSuper(DropdownList);function DropdownList(){return _classCallCheck(this,DropdownList),Un.apply(this,arguments)}return _createClass(DropdownList,[{key:pd,value:function value(Tn,Un){updateChildNodes(Un,(Tn?_toConsumableArray(Tn.childNodes):[]).map((function(Tn){return Tn.cloneNode(!0)})))}},{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(DropdownList.prototype),Vd,this).call(this,Tn),renderParts$7(this[Yd],this[eh],Tn),Tn.items||Tn.selectedIndex){var Un=this[eh],Dn=Un.items,Qn=Un.selectedIndex,Hn=Dn?Dn[Qn]:null;this[pd](Hn,this[Ud].value),Dn&&Dn.forEach((function(Tn){"selected"in Tn&&(Tn.selected=Tn===Hn)}))}if(Tn.opened){var Gn=this[eh].opened;this[Ud].source.setAttribute("aria-expanded",Gn.toString())}if(Tn.sourcePartType){var Vn=this[Ud].source;Vn.inner&&Vn.inner.setAttribute("role","none")}}},{key:qd,value:function value(Tn){_get(_getPrototypeOf(DropdownList.prototype),qd,this).call(this,Tn),Tn.listPartType&&this[Xd]({popupList:this[Ud].list})}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(DropdownList.prototype),th,this).call(this,Tn,Un);if(Un.opened&&Tn.opened&&Object.assign(Dn,{currentIndex:Tn.selectedIndex}),Un.opened){var Qn=Tn.closeResult,Hn=Tn.currentIndex,Gn=Tn.opened,Vn=Un.opened&&!Gn,zn=Qn&&Qn.canceled;Vn&&!zn&&Hn>=0&&Object.assign(Dn,{selectedIndex:Hn})}if(Un.items||Un.selectedIndex){var Kn=Tn.items,$n=Tn.opened,Wn=Tn.selectedIndex;!$n&&Wn<0&&Kn&&Kn.length>0&&Object.assign(Dn,{selectedIndex:0})}return Dn}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(DropdownList.prototype),md,this),{ariaHasPopup:"listbox",listPartType:Hg,selectedIndex:-1,selectedItem:null,valuePartType:"div"})}},{key:"items",get:function get(){var Tn=this[Ud]&&this[Ud].list;return Tn?Tn.items:null}},{key:"listPartType",get:function get(){return this[eh].listPartType},set:function set(Tn){this[Xd]({listPartType:Tn})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(DropdownList.prototype),ph,this),Un=Tn.content.querySelector('slot[name="source"]');Un&&replace$1(Un,xh(_templateObject$t()));var Dn=Tn.content.querySelector("slot:not([name])");Dn&&Dn.replaceWith(xh(_templateObject2$8()));var Qn=Tn.content.querySelector('[part~="source"]');return Qn&&(Qn.setAttribute("aria-activedescendant","value"),Qn.setAttribute("aria-autocomplete","none"),Qn.setAttribute("aria-controls","list"),Qn.setAttribute("role","combobox")),renderParts$7(Tn.content,this[eh]),Tn.content.append(xh(_templateObject3$1())),Tn}},{key:"valuePartType",get:function get(){return this[eh].valuePartType},set:function set(Tn){this[Xd]({valuePartType:Tn})}}]),DropdownList}();function renderParts$7(Tn,Un,Dn){if(!Dn||Dn.listPartType){var Qn=Un.listPartType,Hn=Tn.getElementById("list");Hn&&transmute(Hn,Qn)}if(!Dn||Dn.valuePartType){var Gn=Un.valuePartType,Vn=Tn.getElementById("value");Vn&&transmute(Vn,Gn)}}function _templateObject$u(){var Tn=_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$u=function _templateObject(){return Tn},Tn}var cf=AriaRoleMixin(ComposedFocusMixin(CursorAPIMixin(CursorInViewMixin(DirectionCursorMixin(FocusVisibleMixin(FormElementMixin(ItemsAPIMixin(ItemsCursorMixin(ItemsTextMixin(KeyboardDirectionMixin(KeyboardMixin(KeyboardPagedCursorMixin(KeyboardPrefixCursorMixin(LanguageDirectionMixin(SingleSelectAPIMixin(SelectedTextAPIMixin(SelectedValueAPIMixin(SlotItemsMixin(TapCursorMixin(Wh)))))))))))))))))))),uf=function(Tn){_inherits(OptionList,cf);var Un,Dn=_createSuper(OptionList);function OptionList(){return _classCallCheck(this,OptionList),Dn.apply(this,arguments)}return _createClass(OptionList,[{key:"flashCurrentItem",value:(Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var Tn,Un,Dn;return regeneratorRuntime.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:if(Tn=this[eh].focusVisible,Un=matchMedia("(pointer: fine)").matches,!Tn&&!Un){Qn.next=10;break}return Dn=75,this[Xd]({highlightCurrentItem:!1}),Qn.next=7,new Promise((function(Tn){return setTimeout(Tn,Dn)}));case 7:return this[Xd]({highlightCurrentItem:!0}),Qn.next=10,new Promise((function(Tn){return setTimeout(Tn,Dn)}));case 10:case"end":return Qn.stop()}}),_callee,this)}))),function flashCurrentItem(){return Un.apply(this,arguments)})},{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(OptionList.prototype),Vd,this).call(this,Tn),Tn.items||Tn.currentIndex||Tn.highlightCurrentItem){var Un=this[eh],Dn=Un.currentIndex,Qn=Un.items,Hn=Un.highlightCurrentItem;Qn&&Qn.forEach((function(Tn,Un){var Qn=Un===Dn;Tn.toggleAttribute("current",Hn&&Qn),Tn.setAttribute("aria-selected",String(Qn))}))}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(OptionList.prototype),md,this),{highlightCurrentItem:!0,orientation:"vertical",role:"listbox"})}},{key:Wd,get:function get(){return this[Ud].container}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(OptionList.prototype),ph,this);return Tn.content.append(xh(_templateObject$u())),Tn}}]),OptionList}();function _templateObject$v(){var Tn=_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$v=function _templateObject(){return Tn},Tn}var df=function(Tn){_inherits(PlainOptionList,uf);var Un=_createSuper(PlainOptionList);function PlainOptionList(){return _classCallCheck(this,PlainOptionList),Un.apply(this,arguments)}return _createClass(PlainOptionList,[{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainOptionList.prototype),ph,this);return Tn.content.append(xh(_templateObject$v())),Tn}}]),PlainOptionList}(),hf=function(Tn){_inherits(PlainDropdownList,PopupToggleMixin(lf));var Un=_createSuper(PlainDropdownList);function PlainDropdownList(){return _classCallCheck(this,PlainDropdownList),Un.apply(this,arguments)}return _createClass(PlainDropdownList,[{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainDropdownList.prototype),md,this),{listPartType:df,popupPartType:Jp,sourcePartType:$g,popupTogglePartType:Wp})}}]),PlainDropdownList}(),pf=function(Tn){_inherits(ElixDropdownList,hf);var Un=_createSuper(ElixDropdownList);function ElixDropdownList(){return _classCallCheck(this,ElixDropdownList),Un.apply(this,arguments)}return ElixDropdownList}();customElements.define("elix-dropdown-list",pf);var gf=document.createElement("template");gf.innerHTML='\n<style>\n[part~="source"] {\n grid-template-columns: 20px 1fr auto;\n}\n::slotted(*) {\n background: #E8E8E8;\n border: 1px solid #B0B0B0;\n}\n::part(popup-toggle) {\n display: none;\n}\n</style>\n <label>Label</label>\n <elix-dropdown-list>\n <slot></slot>\n </elix-dropdown-list>\n \n';var ff=function(Tn){_inherits(SeList,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SeList);function SeList(){var Tn;return _classCallCheck(this,SeList),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(gf.content.cloneNode(!0)),Tn.$dropdown=Tn._shadowRoot.querySelector("elix-dropdown-list"),Tn.$label=Tn._shadowRoot.querySelector("label"),Tn}return _createClass(SeList,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn)switch(Tn){case"label":this.$label.textContent=Dn;break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"connectedCallback",value:function connectedCallback(){this.$dropdown.addEventListener("change",(function(Tn){var Un;Tn.preventDefault();var Dn=null==Tn||null===(Un=Tn.detail)||void 0===Un?void 0:Un.closeResult;void 0!==Dn&&void 0!==(null==Dn?void 0:Dn.id)&&document.getElementById(Dn.id).click()}))}},{key:"label",get:function get(){return this.getAttribute("label")},set:function set(Tn){this.setAttribute("label",Tn)}}],[{key:"observedAttributes",get:function get(){return["label"]}}]),SeList}();function _templateObject$w(){var Tn=_taggedTemplateLiteral(["\n <style>\n :host {\n display: block;\n }\n </style>\n <slot></slot>\n "]);return _templateObject$w=function _templateObject(){return Tn},Tn}customElements.define("se-list",ff);var Af=function(Tn){_inherits(Option,AriaRoleMixin(CurrentMixin(DisabledMixin(SelectableMixin(Wh)))));var Un=_createSuper(Option);function Option(){return _classCallCheck(this,Option),Un.apply(this,arguments)}return _createClass(Option,[{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Option.prototype),md,this),{role:"option"})}},{key:ph,get:function get(){return Sh.html(_templateObject$w())}}]),Option}();function _templateObject2$9(){var Tn=_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 Tn},Tn}function _templateObject$x(){var Tn=_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$x=function _templateObject(){return Tn},Tn}var mf=function(Tn){_inherits(PlainChoice,Af);var Un=_createSuper(PlainChoice);function PlainChoice(){return _classCallCheck(this,PlainChoice),Un.apply(this,arguments)}return _createClass(PlainChoice,[{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainChoice.prototype),ph,this),Un=Tn.content.querySelector("slot:not([name])");return Un&&Un.replaceWith(xh(_templateObject$x())),Tn.content.append(xh(_templateObject2$9())),Tn}}]),PlainChoice}(),vf=function(Tn){_inherits(ElixOption,mf);var Un=_createSuper(ElixOption);function ElixOption(){return _classCallCheck(this,ElixOption),Un.apply(this,arguments)}return ElixOption}();customElements.define("elix-option",vf);var yf=document.createElement("template");yf.innerHTML='\n <style>\n </style> \n <elix-option aria-label="option">\n <slot></slot>\n </elix-option> \n';var _f=function(Tn){_inherits(SeListItem,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SeListItem);function SeListItem(){var Tn;return _classCallCheck(this,SeListItem),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(yf.content.cloneNode(!0)),Tn.$menuitem=Tn._shadowRoot.querySelector("elix-menu-item"),Tn}return _createClass(SeListItem,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn)switch(Tn){case"option":this.$menuitem.setAttribute("option",Dn);break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"option",get:function get(){return this.getAttribute("option")},set:function set(Tn){this.setAttribute("option",Tn)}}],[{key:"observedAttributes",get:function get(){return["option"]}}]),SeListItem}();customElements.define("se-list-item",_f);var createMethod$5=function(Tn){return function(Un,Dn,Qn,Hn){aFunction$1(Dn);var Gn=toObject(Un),Vn=$n(Gn),zn=toLength(Gn.length),Kn=Tn?zn-1:0,Wn=Tn?-1:1;if(Qn<2)for(;;){if(Kn in Vn){Hn=Vn[Kn],Kn+=Wn;break}if(Kn+=Wn,Tn?Kn<0:zn<=Kn)throw TypeError("Reduce of empty array with no initial value")}for(;Tn?Kn>=0:zn>Kn;Kn+=Wn)Kn in Vn&&(Hn=Dn(Hn,Vn[Kn],Kn,Gn));return Hn}},bf={left:createMethod$5(!1),right:createMethod$5(!0)},wf=bf.left,xf=arrayMethodIsStrict("reduce"),Sf=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!xf||!Sf||!Ts&&ii>79&&ii<83},{reduce:function reduce(Tn){return wf(this,Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}}),_export({target:"Number",stat:!0,forced:Number.parseFloat!=Co},{parseFloat:Co}),_export({target:"Number",stat:!0,forced:Number.parseInt!=Po},{parseInt:Po});var notARegexp=function(Tn){if(isRegexp(Tn))throw TypeError("The method doesn't accept regular expressions");return Tn},Cf=wellKnownSymbol("match"),correctIsRegexpLogic=function(Tn){var Un=/./;try{"/./"[Tn](Un)}catch(Dn){try{return Un[Cf]=!1,"/./"[Tn](Un)}catch(Tn){}}return!1};_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function includes(Tn){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(Tn),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 kf="http://www.w3.org/2000/svg",Bf="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(Tn,Un){return void 0===Un&&(Un=0),Math.round(Tn*Math.pow(10,Un))/Math.pow(10,Un)}window.console||(window.console={log:function log(Tn){},dir:function dir(Tn){}});var Ef=function isNullish(Tn){return null==Tn};_export({target:"Number",stat:!0},{isNaN:function isNaN(Tn){return Tn!=Tn}});var Pf,Lf=er.f,Tf="".startsWith,Nf=Math.min,If=correctIsRegexpLogic("startsWith"),Of=!(If||(Pf=Lf(String.prototype,"startsWith"),!Pf||Pf.writable));_export({target:"String",proto:!0,forced:!Of&&!If},{startsWith:function startsWith(Tn){var Un=String(requireObjectCoercible(this));notARegexp(Tn);var Dn=toLength(Nf(arguments.length>1?arguments[1]:void 0,Un.length)),Qn=String(Tn);return Tf?Tf.call(Un,Qn,Dn):Un.slice(Dn,Dn+Qn.length)===Qn}});var Ff=function(){function PaintBox(Tn,Un){_classCallCheck(this,PaintBox);var Dn=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n <rect\n fill="#000000" opacity="1" width="22" height="22"/>\n <defs><linearGradient id="gradbox_'.concat(PaintBox.ctr++,'"/></defs>\n </svg>'),"text/xml").documentElement;Dn=Tn.appendChild(document.importNode(Dn,!0)),this.rect=Dn.firstElementChild,this.defs=Dn.getElementsByTagName("defs")[0],this.grad=this.defs.firstElementChild,this.type=Un}return _createClass(PaintBox,[{key:"setPaint",value:function setPaint(Tn){this.paint=Tn;var Un=Tn.type,Dn=Tn.alpha/100,Qn="none";switch(Un){case"solidColor":Qn="none"!==Tn[Un]?"#"+Tn[Un]:Tn[Un];break;case"linearGradient":case"radialGradient":this.grad.remove(),this.grad=this.defs.appendChild(Tn[Un]),Qn="url(#"+(this.grad.id="gradbox_"+this.type)+")"}this.rect.setAttribute("fill",Qn),this.rect.setAttribute("opacity",Dn)}},{key:"update",value:function update(Tn,Un){if(!Un)return null;var Dn=this.type;switch(Un.tagName){case"use":case"image":case"foreignObject":return null;case"g":case"a":for(var Qn=Un.getElementsByTagName("*"),Hn=null,Gn=0,Vn=Qn.length;Gn<Vn;Gn++){var zn=Qn[Gn].getAttribute(Dn);if(0===Gn)Hn=zn;else if(Hn!==zn){Hn=null;break}}if(null===Hn)return this._paintColor=null,null;this._paintColor=Hn,this._paintOpacity=1;break;default:this._paintOpacity=Number.parseFloat(Un.getAttribute(Dn+"-opacity")),Number.isNaN(this._paintOpacity)&&(this._paintOpacity=1);var Kn="fill"===Dn?"black":"none";this._paintColor=Un.getAttribute(Dn)||Kn}this._paintOpacity*=100;var $n=PaintBox.getPaint(Tn,this._paintColor,this._paintOpacity,Dn);return this.setPaint($n),$n}}],[{key:"getPaint",value:function getPaint(Tn,Un,Dn,Qn){var Hn={alpha:Dn};if(Un.startsWith("url(#")){var Gn=Tn.getRefElem(Un);Hn[(Gn=Gn?Gn.cloneNode(!0):$("#"+Qn+"_color defs *")[0]).tagName]=Gn}else Un.startsWith("#")?Hn.solidColor=Un.substr(1):Hn.solidColor="none";return new $.jGraduate.Paint(Hn)}}]),PaintBox}();Ff.ctr=0;var Uf=[function jQueryPluginJGraduate(Tn){Tn.jGraduate={Paint:function Paint(Tn){_classCallCheck(this,Paint);var Un=Tn||{};if(this.alpha=isNaN(Un.alpha)?100:Un.alpha,Un.copy)switch(this.type=Un.copy.type,this.alpha=Un.copy.alpha,this.solidColor=null,this.linearGradient=null,this.radialGradient=null,this.type){case"none":break;case"solidColor":this.solidColor=Un.copy.solidColor;break;case"linearGradient":this.linearGradient=Un.copy.linearGradient.cloneNode(!0);break;case"radialGradient":this.radialGradient=Un.copy.radialGradient.cloneNode(!0)}else Un.linearGradient?(this.type="linearGradient",this.solidColor=null,this.radialGradient=null,this.linearGradient=Un.linearGradient.cloneNode(!0)):Un.radialGradient?(this.type="radialGradient",this.solidColor=null,this.linearGradient=null,this.radialGradient=Un.radialGradient.cloneNode(!0)):Un.solidColor?(this.type="solidColor",this.solidColor=Un.solidColor):(this.type="none",this.solidColor=null,this.linearGradient=null,this.radialGradient=null)}},Tn.fn.jGraduateDefaults={paint:new Tn.jGraduate.Paint,window:{pickerTitle:"Drag markers to pick a paint"},images:{clientPath:"images/"},newstop:"inverse"};var Un=navigator.userAgent.includes("Gecko/");function mkElem(Tn,Dn,Qn){var Hn=document.createElementNS(kf,Tn);return function setAttrs(Tn,Dn){Un?Object.entries(Dn).forEach((function(Un){var Dn=_slicedToArray(Un,2),Qn=Dn[0],Hn=Dn[1];Tn.setAttribute(Qn,Hn)})):Object.entries(Dn).forEach((function(Un){var Dn=_slicedToArray(Un,2),Qn=Dn[0],Hn=Dn[1],Gn=Tn[Qn];Gn&&"SVGLength"===Gn.constructor?Gn.baseVal.value=Hn:Tn.setAttribute(Qn,Hn)}))}(Hn,Dn),Qn&&Qn.append(Hn),Hn}return Tn.fn.jGraduate=function(Un,Dn,Qn){return this.each((function(){var Hn=Tn(this),Gn=Tn.extend(!0,{},Tn.fn.jGraduateDefaults,Un||{}),Vn=Hn.attr("id"),zn="#"+Hn.attr("id")+" ",Kn=this.parentNode,$n=function $wc(Un){return Tn(Kn.querySelectorAll(Un))};if(zn){var Wn=function okClicked(){switch(Hn.paint.type){case"radialGradient":Hn.paint.linearGradient=null;break;case"linearGradient":Hn.paint.radialGradient=null;break;case"solidColor":Hn.paint.radialGradient=Hn.paint.linearGradient=null}"function"==typeof Hn.okCallback&&Hn.okCallback(Hn.paint),Hn.hide()},Xn=function cancelClicked(){"function"==typeof Hn.cancelCallback&&Hn.cancelCallback(),Hn.hide()};Tn.extend(!0,Hn,{paint:new Tn.jGraduate.Paint({copy:Gn.paint}),okCallback:"function"==typeof Dn?Dn:null,cancelCallback:"function"==typeof Qn?Qn:null});var Yn=null,Jn=Tn(window);"none"===Hn.paint.type&&(Hn.paint=new Tn.jGraduate.Paint({solidColor:"ffffff"})),Hn.addClass("jGraduate_Picker"),Hn.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="'+Vn+'_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>');var Zn=$n(zn+"> .jGraduate_colPick"),er=$n(zn+"> .jGraduate_gradPick");er.html('<div id="'+Vn+'_jGraduate_Swatch" class="jGraduate_Swatch"><h2 class="jGraduate_Title">'+Gn.window.pickerTitle+'</h2><div id="'+Vn+'_jGraduate_GradContainer" class="jGraduate_GradContainer"></div><div id="'+Vn+'_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="'+Vn+'_jGraduate_x1" size="3" title="Enter starting x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+Vn+'_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="'+Vn+'_jGraduate_x2" size="3" title="Enter ending x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+Vn+'_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="'+Vn+'_jGraduate_cx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+Vn+'_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="'+Vn+'_jGraduate_match_ctr"/></label><br/><label>x:</label><input type="text" id="'+Vn+'_jGraduate_fx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+Vn+'_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="'+Vn+'_jGraduate_Radius" class="jGraduate_SliderBar jGraduate_Radius" title="Click to set radius"><img id="'+Vn+'_jGraduate_RadiusArrows" class="jGraduate_RadiusArrows" src="'+Gn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+Vn+'_jGraduate_RadiusInput" size="3" value="100"/>%</label></div><div class="jGraduate_Slider jGraduate_EllipField jGraduate_rg_field"><label class="prelabel">Ellip:</label><div id="'+Vn+'_jGraduate_Ellip" class="jGraduate_SliderBar jGraduate_Ellip" title="Click to set Ellip"><img id="'+Vn+'_jGraduate_EllipArrows" class="jGraduate_EllipArrows" src="'+Gn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+Vn+'_jGraduate_EllipInput" size="3" value="0"/>%</label></div><div class="jGraduate_Slider jGraduate_AngleField jGraduate_rg_field"><label class="prelabel">Angle:</label><div id="'+Vn+'_jGraduate_Angle" class="jGraduate_SliderBar jGraduate_Angle" title="Click to set Angle"><img id="'+Vn+'_jGraduate_AngleArrows" class="jGraduate_AngleArrows" src="'+Gn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+Vn+'_jGraduate_AngleInput" size="3" value="0"/>deg</label></div><div class="jGraduate_Slider jGraduate_OpacField"><label class="prelabel">Opac:</label><div id="'+Vn+'_jGraduate_Opac" class="jGraduate_SliderBar jGraduate_Opac" title="Click to set Opac"><img id="'+Vn+'_jGraduate_OpacArrows" class="jGraduate_OpacArrows" src="'+Gn.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+Vn+'_jGraduate_OpacInput" size="3" value="100"/>%</label></div></div><div class="jGraduate_OkCancel"><input type="button" id="'+Vn+'_jGraduate_Ok" class="jGraduate_Ok" value="OK"/><input type="button" id="'+Vn+'_jGraduate_Cancel" class="jGraduate_Cancel" value="Cancel"/></div>');var tr=256,nr={},rr=145;$n(".jGraduate_SliderBar").width(rr);var ir,or=$n("#"+Vn+"_jGraduate_GradContainer")[0],ar=mkElem("svg",{id:Vn+"_jgraduate_svg",width:tr,height:tr,xmlns:kf},or),sr=Hn.paint.type,lr=Hn.paint[sr],cr=lr,ur=Hn.paint.alpha,dr="solidColor"===sr;switch(sr){case"solidColor":case"linearGradient":if(dr||(cr.id=Vn+"_lg_jgraduate_grad",lr=cr=ar.appendChild(cr)),mkElem("radialGradient",{id:Vn+"_rg_jgraduate_grad"},ar),"linearGradient"===sr)break;case"radialGradient":dr||(cr.id=Vn+"_rg_jgraduate_grad",lr=cr=ar.appendChild(cr)),mkElem("linearGradient",{id:Vn+"_lg_jgraduate_grad"},ar)}if(dr){lr=cr=$n("#"+Vn+"_lg_jgraduate_grad")[0],mkStop(0,"#"+(Yn=Hn.paint[sr]),1);var hr=_typeof(Gn.newstop);if("string"===hr)switch(Gn.newstop){case"same":mkStop(1,"#"+Yn,1);break;case"inverse":for(var pr="",gr=0;gr<6;gr+=2){var fr=(255-Number.parseInt(Yn.substr(gr,2),16)).toString(16);fr.length<2&&(fr=0+fr),pr+=fr}mkStop(1,"#"+pr,1);break;case"white":mkStop(1,"#ffffff",1);break;case"black":mkStop(1,"#000000",1)}else if("object"===hr){var Ar="opac"in Gn.newstop?Gn.newstop.opac:1;mkStop(1,Gn.newstop.color||"#"+Yn,Ar)}}var mr,vr=Number.parseFloat(lr.getAttribute("x1")||0),yr=Number.parseFloat(lr.getAttribute("y1")||0),_r=Number.parseFloat(lr.getAttribute("x2")||1),br=Number.parseFloat(lr.getAttribute("y2")||0),wr=Number.parseFloat(lr.getAttribute("cx")||.5),xr=Number.parseFloat(lr.getAttribute("cy")||.5),Sr=Number.parseFloat(lr.getAttribute("fx")||wr),Cr=Number.parseFloat(lr.getAttribute("fy")||xr),kr=mkElem("rect",{id:Vn+"_jgraduate_rect",x:0,y:0,width:256,height:256,fill:"url(#"+Vn+"_jgraduate_grad)","fill-opacity":ur/100},ar),Br=Tn("<div/>").attr({class:"grad_coord jGraduate_lg_field",title:"Begin Stop"}).text(1).css({top:yr*tr,left:vr*tr}).data("coord","start").appendTo(or),Er=Br.clone().text(2).css({top:br*tr,left:_r*tr}).attr("title","End stop").data("coord","end").appendTo(or),Pr=Tn("<div/>").attr({class:"grad_coord jGraduate_rg_field",title:"Center stop"}).text("C").css({top:xr*tr,left:wr*tr}).data("coord","center").appendTo(or),Lr=Pr.clone().text("F").css({top:Cr*tr,left:Sr*tr,display:"none"}).attr("title","Focus point").data("coord","focus").appendTo(or);Lr[0].id=Vn+"_jGraduate_focusCoord",Tn.each(["x1","y1","x2","y2","cx","cy","fx","fy"],(function(Tn,Un){var Dn=isNaN(Un[1]),Qn=cr.getAttribute(Un);Qn||(Qn=Dn?"0.5":"x2"===Un?"1.0":"0.0"),nr[Un]=$n("#"+Vn+"_jGraduate_"+Un).val(Qn).change((function(){isNaN(Number.parseFloat(this.value))||this.value<0?this.value=0:this.value>1&&(this.value=1),("f"!==Un[0]||mr)&&(Dn&&"radialGradient"===sr||!Dn&&"linearGradient"===sr)&&cr.setAttribute(Un,this.value);var Tn=Dn?"c"===Un[0]?Pr:Lr:"1"===Un[1]?Br:Er,Qn=Un.includes("x")?"left":"top";Tn.css(Qn,this.value*tr)})).change()}));var Tr,Nr,Ir,Or,Fr=$n("#"+Vn+"_jGraduate_StopSlider"),Ur=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),Mr=1,Rr=1,Dr=0,jr=wr,Qr=xr,Hr=mkElem("svg",{width:"100%",height:45},Fr[0]),Gr=mkElem("pattern",{width:16,height:16,patternUnits:"userSpaceOnUse",id:"jGraduate_trans"},Hr),Vr=mkElem("image",{width:16,height:16},Gr),zr=Gn.images.clientPath+"map-opacity.png";Vr.setAttributeNS(Bf,"xlink:href",zr),Tn(Hr).click((function(Tn){if(Or=Fr.offset(),"path"!==Tn.target.tagName){var Un=Tn.pageX-Or.left-8;mkStop((Un=Un<10?10:Un>266?266:Un)/tr,0,0,!0),Tn.stopPropagation()}})),Tn(Hr).mouseover((function(){Hr.append(Ur)})),ir=mkElem("g",{},Hr),mkElem("line",{x1:10,y1:15,x2:266,y2:15,"stroke-width":2,stroke:"#000"},Hr);var Kr,qr,$r,Wr,Xr=er.find(".jGraduate_spreadMethod").change((function(){cr.setAttribute("spreadMethod",Tn(this).val())})),Yr=null,Jr=function onCoordDrag(Tn){var Un=Tn.pageX-Kr.left,Dn=Tn.pageY-Kr.top;Un=Un<0?0:Un>tr?tr:Un,Dn=Dn<0?0:Dn>tr?tr:Dn,Yr.css("left",Un).css("top",Dn);var Qn=Un/256,Hn=Dn/256,Gn=Yr.data("coord"),Vn=cr;switch(Gn){case"start":nr.x1.val(Qn),nr.y1.val(Hn),Vn.setAttribute("x1",Qn),Vn.setAttribute("y1",Hn);break;case"end":nr.x2.val(Qn),nr.y2.val(Hn),Vn.setAttribute("x2",Qn),Vn.setAttribute("y2",Hn);break;case"center":nr.cx.val(Qn),nr.cy.val(Hn),Vn.setAttribute("cx",Qn),Vn.setAttribute("cy",Hn),jr=Qn,Qr=Hn,xform();break;case"focus":nr.fx.val(Qn),nr.fy.val(Hn),Vn.setAttribute("fx",Qn),Vn.setAttribute("fy",Hn),xform()}Tn.preventDefault()},Zr=function onCoordUp(){Yr=null,Jn.unbind("mousemove",Jr).unbind("mouseup",onCoordUp)},ei=(Tr=cr.getElementsByTagNameNS(kf,"stop")).length;if(ei<2){for(;ei<2;)cr.append(document.createElementNS(kf,"stop")),++ei;Tr=cr.getElementsByTagNameNS(kf,"stop")}for(var ti=0;ti<ei;ti++)mkStop(0,0,0,0,Tr[ti]);if(Xr.val(cr.getAttribute("spreadMethod")||"pad"),mr=!1,kr.setAttribute("fill-opacity",ur/100),$n("#"+Vn+" div.grad_coord").mousedown((function(Un){Un.preventDefault(),Yr=Tn(this),Kr=Yr.parent().offset(),Jn.mousemove(Jr).mouseup(Zr)})),$n("#"+Vn+"_jGraduate_Ok").bind("click",(function(){Hn.paint.type=sr,Hn.paint[sr]=cr.cloneNode(!0),Hn.paint.solidColor=null,Wn()})),$n("#"+Vn+"_jGraduate_Cancel").bind("click",(function(Tn){Xn()})),"radialGradient"===sr&&(mr?Lr.show():(Lr.hide(),nr.fx.val(""),nr.fy.val(""))),$n("#"+Vn+"_jGraduate_match_ctr")[0].checked=!mr,$n("#"+Vn+"_jGraduate_match_ctr").change((function(){mr=!this.checked,Lr.toggle(mr),nr.fx.val(""),nr.fy.val("");var Tn=cr;if(mr){var Un=qr||.5,Dn=$r||.5;Tn.setAttribute("fx",Un),Tn.setAttribute("fy",Dn),nr.fx.val(Un),nr.fy.val(Dn)}else qr=Tn.getAttribute("fx"),$r=Tn.getAttribute("fy"),Tn.removeAttribute("fx"),Tn.removeAttribute("fy")})),(ei=(Tr=cr.getElementsByTagNameNS(kf,"stop")).length)<2){for(;ei<2;)cr.append(document.createElementNS(kf,"stop")),++ei;Tr=cr.getElementsByTagNameNS(kf,"stop")}var ni=0,ri=0;if("radialGradient"===sr){var ii=cr.gradientTransform.baseVal;if(2===ii.numberOfItems){var oi=ii.getItem(0),ai=ii.getItem(1);if(2===oi.type&&3===ai.type){var si=ai.matrix;1!==si.a?ni=Math.round(100*-(1-si.a)):1!==si.d&&(ni=Math.round(100*(1-si.d)))}}else if(3===ii.numberOfItems){var li=ii.getItem(0),ui=ii.getItem(1),di=ii.getItem(2);if(4===li.type&&2===ui.type&&3===di.type){ri=Math.round(li.angle);var hi=di.matrix;1!==hi.a?ni=Math.round(100*-(1-hi.a)):1!==hi.d&&(ni=Math.round(100*(1-hi.d)))}}}var pi={radius:{handle:"#"+Vn+"_jGraduate_RadiusArrows",input:"#"+Vn+"_jGraduate_RadiusInput",val:100*(cr.getAttribute("r")||.5)},opacity:{handle:"#"+Vn+"_jGraduate_OpacArrows",input:"#"+Vn+"_jGraduate_OpacInput",val:Hn.paint.alpha||100},ellip:{handle:"#"+Vn+"_jGraduate_EllipArrows",input:"#"+Vn+"_jGraduate_EllipInput",val:ni},angle:{handle:"#"+Vn+"_jGraduate_AngleArrows",input:"#"+Vn+"_jGraduate_AngleInput",val:ri}};Tn.each(pi,(function(Un,Dn){var Qn=Tn(Dn.handle);Qn.mousedown((function(Hn){var Gn=Qn.parent();Wr={type:Un,elem:Qn,input:Tn(Dn.input),parent:Gn,offset:Gn.offset()},Jn.mousemove(gi).mouseup(fi),Hn.preventDefault()})),Tn(Dn.input).val(Dn.val).change((function(){var Tn="radialGradient"===sr,Dn=Number(this.value),Gn=0;switch(Un){case"radius":Tn&&cr.setAttribute("r",Dn/100),Gn=Math.pow(Dn/100,.4)/2*rr;break;case"opacity":Hn.paint.alpha=Dn,kr.setAttribute("fill-opacity",Dn/100),Gn=1.45*Dn;break;case"ellip":if(Mr=Rr=1,0===Dn){Gn=72.5;break}Dn>99.5&&(Dn=99.5),Dn>0?Rr=1-Dn/100:Mr=-Dn/100-1,Gn=rr*((Dn+100)/2)/100,Tn&&xform();break;case"angle":Gn=(Dr=Dn)/180,Gn+=.5,Gn*=rr,Tn&&xform()}Gn>rr?Gn=rr:Gn<0&&(Gn=0),Qn.css({"margin-left":Gn-5})})).change()}));for(var gi=function dragSlider(Tn){!function setSlider(Tn){var Un=Wr.offset.left,Dn=Wr.parent,Qn=Tn.pageX-Un-Number.parseInt(Dn.css("border-left-width"));Qn>rr&&(Qn=rr),Qn<=0&&(Qn=0);var Gn=Qn-5;switch(Qn/=rr,Wr.type){case"radius":(Qn=Math.pow(2*Qn,2.5))>.98&&Qn<1.02&&(Qn=1),Qn<=.01&&(Qn=.01),cr.setAttribute("r",Qn);break;case"opacity":Hn.paint.alpha=Number.parseInt(100*Qn),kr.setAttribute("fill-opacity",Qn);break;case"ellip":Mr=1,Rr=1,Qn<.5?Mr=(Qn/=.5)<=0?.01:Qn:Qn>.5&&(Rr=(Qn=2-(Qn/=.5))<=0?.01:Qn),xform(),Rr===1+(Qn-=1)&&(Qn=Math.abs(Qn));break;case"angle":Qn-=.5,Dr=Qn*=180,xform(),Qn/=100}Wr.elem.css({"margin-left":Gn}),Qn=Math.round(100*Qn),Wr.input.val(Qn)}(Tn),Tn.preventDefault()},fi=function stopSlider(Tn){Jn.unbind("mousemove",gi).unbind("mouseup",stopSlider),Wr=null},Ai=(255*Hn.paint.alpha/100).toString(16);Ai.length<2;)Ai="0"+Ai;Ai=Ai.split(".")[0],Yn="none"===Hn.paint.solidColor?"":Hn.paint.solidColor+Ai,dr||(Yn=Tr[0].getAttribute("stop-color")),Tn.extend(Tn.fn.jPicker.defaults.window,{alphaSupport:!0,effects:{type:"show",speed:0}}),Zn.jPicker({window:{title:Gn.window.pickerTitle},images:{clientPath:Gn.images.clientPath},color:{active:Yn,alphaSupport:!0}},(function(Tn){Hn.paint.type="solidColor",Hn.paint.alpha=Tn.val("ahex")?Math.round(Tn.val("a")/255*100):100,Hn.paint.solidColor=Tn.val("hex")?Tn.val("hex"):"none",Hn.paint.radialGradient=null,Wn()}),null,(function(){Xn()}));var mi,vi=$n(".jGraduate_tabs li");switch(vi.click((function(){vi.removeClass("jGraduate_tab_current"),Tn(this).addClass("jGraduate_tab_current"),$n(zn+" > div").hide();var Un=Tn(this).attr("data-type");if($n(zn+" .jGraduate_gradPick").show(),"rg"===Un||"lg"===Un){$n(".jGraduate_"+Un+"_field").show(),$n(".jGraduate_"+("lg"===Un?"rg":"lg")+"_field").hide(),$n("#"+Vn+"_jgraduate_rect")[0].setAttribute("fill","url(#"+Vn+"_"+Un+"_jgraduate_grad)"),sr="lg"===Un?"linearGradient":"radialGradient",$n("#"+Vn+"_jGraduate_OpacInput").val(Hn.paint.alpha).change();var Dn=$n("#"+Vn+"_"+Un+"_jgraduate_grad")[0];if(cr!==Dn){var Qn=Tn(cr).find("stop");Tn(Dn).empty().append(Qn),cr=Dn;var Gn=Xr.val();cr.setAttribute("spreadMethod",Gn)}mr="rg"===Un&&null!==cr.getAttribute("fx")&&!(wr===Sr&&xr===Cr),$n("#"+Vn+"_jGraduate_focusCoord").toggle(mr),mr&&($n("#"+Vn+"_jGraduate_match_ctr")[0].checked=!1)}else $n(zn+" .jGraduate_gradPick").hide(),$n(zn+" .jGraduate_colPick").show()})),$n(zn+" > div").hide(),vi.removeClass("jGraduate_tab_current"),Hn.paint.type){case"linearGradient":mi=$n(zn+" .jGraduate_tab_lingrad");break;case"radialGradient":mi=$n(zn+" .jGraduate_tab_radgrad");break;default:mi=$n(zn+" .jGraduate_tab_color")}Hn.show(),setTimeout((function(){mi.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(Un,Dn,Qn,Hn,zn){var Kn=zn||mkElem("stop",{"stop-color":Dn,"stop-opacity":Qn,offset:Un},cr);zn?(Dn=zn.getAttribute("stop-color"),Qn=zn.getAttribute("stop-opacity"),Un=zn.getAttribute("offset")):cr.append(Kn),null===Qn&&(Qn=1);var Wn="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",Xn=mkElem("path",{d:Wn,fill:"url(#jGraduate_trans)",transform:"translate("+(10+Un*tr)+", 26)"},ir),Yn=mkElem("path",{d:Wn,fill:Dn,"fill-opacity":Qn,transform:"translate("+(10+Un*tr)+", 26)",stroke:"#000","stroke-width":1.5},ir);return Tn(Yn).mousedown((function(Tn){return selectStop(this),Ir=Nr,Jn.mousemove(dragColor).mouseup(remDrags),Or=Fr.offset(),Tn.preventDefault(),!1})).data("stop",Kn).data("bg",Xn).dblclick((function(){$n("div.jGraduate_LightBox").show();for(var Tn=this,Un=Number(Kn.getAttribute("stop-opacity"))||1,Qn=Kn.getAttribute("stop-color")||1,Hn=(255*Number.parseFloat(Un)).toString(16);Hn.length<2;)Hn="0"+Hn;Dn=Qn.substr(1)+Hn,$n("#"+Vn+"_jGraduate_stopPicker").css({left:100,bottom:15}).jPicker({window:{title:"Pick the start color and opacity for the gradient"},images:{clientPath:Gn.images.clientPath},color:{active:Dn,alphaSupport:!0}},(function(Dn,Hn){Qn=Dn.val("hex")?"#"+Dn.val("hex"):"none",Un=null!==Dn.val("a")?Dn.val("a")/256:1,Tn.setAttribute("fill",Qn),Tn.setAttribute("fill-opacity",Un),Kn.setAttribute("stop-color",Qn),Kn.setAttribute("stop-opacity",Un),$n("div.jGraduate_LightBox").hide(),$n("#"+Vn+"_jGraduate_stopPicker").hide()}),null,(function(){$n("div.jGraduate_LightBox").hide(),$n("#"+Vn+"_jGraduate_stopPicker").hide()}))})),Tn(cr).find("stop").each((function(){var Qn=Tn(this);if(Number(this.getAttribute("offset"))>Un){if(!Dn){var Hn=this.getAttribute("stop-color"),Gn=this.getAttribute("stop-opacity");Kn.setAttribute("stop-color",Hn),Yn.setAttribute("fill",Hn),Kn.setAttribute("stop-opacity",null===Gn?1:Gn),Yn.setAttribute("fill-opacity",null===Gn?1:Gn)}return Qn.before(Kn),!1}return!0})),Hn&&selectStop(Yn),Kn}function selectStop(Tn){Nr&&Nr.setAttribute("stroke","#000"),Tn.setAttribute("stroke","blue"),Nr=Tn}function remDrags(){Jn.unbind("mousemove",dragColor),"none"!==Ur.getAttribute("display")&&function remStop(){Ur.setAttribute("display","none");var Un=$n(Nr),Dn=Un.data("stop"),Qn=Un.data("bg");Tn([Nr,Dn,Qn]).remove()}(),Ir=null}function xform(){var Tn=Dr?"rotate("+Dr+","+jr+","+Qr+") ":"";if(1===Mr&&1===Rr)cr.removeAttribute("gradientTransform");else{var Un=-jr*(Mr-1),Dn=-Qr*(Rr-1);cr.setAttribute("gradientTransform",Tn+"translate("+Un+","+Dn+") scale("+Mr+","+Rr+")")}}function dragColor(Un){var Dn=Un.pageX-Or.left,Qn=Un.pageY-Or.top,Hn="translate("+(Dn=Dn<10?10:Dn>266?266:Dn)+", 26)";Qn<-60||Qn>130?(Ur.setAttribute("display","block"),Ur.setAttribute("transform",Hn)):Ur.setAttribute("display","none"),Ir.setAttribute("transform",Hn),Tn.data(Ir,"bg").setAttribute("transform",Hn);var Gn=Tn.data(Ir,"stop"),Vn=(Dn-10)/tr;Gn.setAttribute("offset",Vn);var zn=0;Tn(cr).find("stop").each((function(Un){var Dn=this.getAttribute("offset"),Qn=Tn(this);Dn<zn&&(Qn.prev().before(Qn),Tr=Tn(cr).find("stop")),zn=Dn}))}}))},Tn},function jPicker(Tn){var Un=function Slider(Un,Dn){_classCallCheck(this,Slider);var Qn=this;function fireChangeEvents(Tn){er.forEach((function(Un){Un.call(Qn,Qn,Tn)}))}function mouseDown(Dn){var Vn=Un.offset();Hn={l:0|Vn.left,t:0|Vn.top},clearTimeout(Gn),Gn=setTimeout((function(){setValuesFromMousePosition.call(Qn,Dn)}),0),Tn(document).bind("mousemove",mouseMove).bind("mouseup",mouseUp),Dn.preventDefault()}function mouseMove(Tn){return clearTimeout(Gn),Gn=setTimeout((function(){setValuesFromMousePosition.call(Qn,Tn)}),0),Tn.stopPropagation(),Tn.preventDefault(),!1}function mouseUp(Un){return Tn(document).unbind("mouseup",mouseUp).unbind("mousemove",mouseMove),Un.stopPropagation(),Un.preventDefault(),!1}function setValuesFromMousePosition(Tn){var Dn=Un.w,Gn=Un.h,Vn=Tn.pageX-Hn.l,zn=Tn.pageY-Hn.t;Vn<0?Vn=0:Vn>Dn&&(Vn=Dn),zn<0?zn=0:zn>Gn&&(zn=Gn),val.call(Qn,"xy",{x:Vn/Dn*Wn+Kn,y:zn/Gn*Jn+Xn})}function val(Tn,Un,Dn){if(!(void 0!==Un))switch(Ef(Tn)&&(Tn="xy"),Tn.toLowerCase()){case"x":return Vn;case"y":return zn;case"xy":default:return{x:Vn,y:zn}}if(Ef(Dn)||Dn!==Qn){var Hn,Gn,Wn=!1;switch(Ef(Tn)&&(Tn="xy"),Tn.toLowerCase()){case"x":Hn=Un&&(Un.x&&0|Un.x||0|Un)||0;break;case"y":Gn=Un&&(Un.y&&0|Un.y||0|Un)||0;break;case"xy":default:Hn=Un&&Un.x&&0|Un.x||0,Gn=Un&&Un.y&&0|Un.y||0}Ef(Hn)||(Hn<Kn?Hn=Kn:Hn>$n&&(Hn=$n),Vn!==Hn&&(Vn=Hn,Wn=!0)),Ef(Gn)||(Gn<Xn?Gn=Xn:Gn>Yn&&(Gn=Yn),zn!==Gn&&(zn=Gn,Wn=!0)),Wn&&fireChangeEvents.call(Qn,Dn||Qn)}}function bind(Tn){"function"==typeof Tn&&er.push(Tn)}var Hn,Gn,Vn=0,zn=0,Kn=0,$n=100,Wn=100,Xn=0,Yn=100,Jn=100,Zn=Un.find("img:first"),er=[];Tn.extend(!0,Qn,{val:val,range:function range(Tn,Un){var Dn,Qn,Hn,Gn;if(!(void 0!==Un))switch(Ef(Tn)&&(Tn="all"),Tn.toLowerCase()){case"minx":return Kn;case"maxx":return $n;case"rangex":return{minX:Kn,maxX:$n,rangeX:Wn};case"miny":return Xn;case"maxy":return Yn;case"rangey":return{minY:Xn,maxY:Yn,rangeY:Jn};case"all":default:return{minX:Kn,maxX:$n,rangeX:Wn,minY:Xn,maxY:Yn,rangeY:Jn}}switch(Ef(Tn)&&(Tn="all"),Tn.toLowerCase()){case"minx":Dn=Un&&(Un.minX&&0|Un.minX||0|Un)||0;break;case"maxx":Qn=Un&&(Un.maxX&&0|Un.maxX||0|Un)||0;break;case"rangex":Dn=Un&&Un.minX&&0|Un.minX||0,Qn=Un&&Un.maxX&&0|Un.maxX||0;break;case"miny":Hn=Un&&(Un.minY&&0|Un.minY||0|Un)||0;break;case"maxy":Gn=Un&&(Un.maxY&&0|Un.maxY||0|Un)||0;break;case"rangey":Hn=Un&&Un.minY&&0|Un.minY||0,Gn=Un&&Un.maxY&&0|Un.maxY||0;break;case"all":default:Dn=Un&&Un.minX&&0|Un.minX||0,Qn=Un&&Un.maxX&&0|Un.maxX||0,Hn=Un&&Un.minY&&0|Un.minY||0,Gn=Un&&Un.maxY&&0|Un.maxY||0}Ef(Dn)||Kn===Dn||(Wn=$n-(Kn=Dn)),Ef(Qn)||$n===Qn||(Wn=($n=Qn)-Kn),Ef(Hn)||Xn===Hn||(Jn=Yn-(Xn=Hn)),Ef(Gn)||Yn===Gn||(Jn=(Yn=Gn)-Xn)},bind:bind,unbind:function unbind(Tn){if("function"==typeof Tn)for(var Un;Un=er.includes(Tn);)er.splice(Un,1)},destroy:function destroy(){Tn(document).unbind("mouseup",mouseUp).unbind("mousemove",mouseMove),Un.unbind("mousedown",mouseDown),Un=null,Zn=null,er=null}}),Zn.src=Dn.arrow&&Dn.arrow.image,Zn.w=Dn.arrow&&Dn.arrow.width||Zn.width(),Zn.h=Dn.arrow&&Dn.arrow.height||Zn.height(),Un.w=Dn.map&&Dn.map.width||Un.width(),Un.h=Dn.map&&Dn.map.height||Un.height(),Un.bind("mousedown",mouseDown),bind.call(Qn,(function draw(){var Tn=Un.w,Dn=Un.h,Qn=Zn.w,Hn=Zn.h,Gn=0,Kn=0;setTimeout((function(){Wn>0&&(Gn=Vn===$n?Tn:Vn/Wn*Tn|0),Jn>0&&(Kn=zn===Yn?Dn:zn/Jn*Dn|0),Qn>=Tn?Gn=(Tn>>1)-(Qn>>1):Gn-=Qn>>1,Hn>=Dn?Kn=(Dn>>1)-(Hn>>1):Kn-=Hn>>1,Zn.css({left:Gn+"px",top:Kn+"px"})}))}))},Dn=function ColorValuePicker(Un,Dn,Qn,Hn){_classCallCheck(this,ColorValuePicker);var Gn=this,Vn=Un.find("td.Text input");function keyDown(Tn){if(""!==Tn.target.value||Tn.target===Zn.get(0)||(Ef(Qn)||Tn.target===Qn.get(0))&&!Ef(Qn)){if(!validateKey(Tn))return Tn;switch(Tn.target){case zn.get(0):switch(Tn.keyCode){case 38:return zn.val(setValueInRange.call(Gn,1+(zn.val()<<0),0,255)),Dn.val("r",zn.val(),Tn.target),!1;case 40:return zn.val(setValueInRange.call(Gn,(zn.val()<<0)-1,0,255)),Dn.val("r",zn.val(),Tn.target),!1}break;case Kn.get(0):switch(Tn.keyCode){case 38:return Kn.val(setValueInRange.call(Gn,1+(Kn.val()<<0),0,255)),Dn.val("g",Kn.val(),Tn.target),!1;case 40:return Kn.val(setValueInRange.call(Gn,(Kn.val()<<0)-1,0,255)),Dn.val("g",Kn.val(),Tn.target),!1}break;case $n.get(0):switch(Tn.keyCode){case 38:return $n.val(setValueInRange.call(Gn,1+($n.val()<<0),0,255)),Dn.val("b",$n.val(),Tn.target),!1;case 40:return $n.val(setValueInRange.call(Gn,($n.val()<<0)-1,0,255)),Dn.val("b",$n.val(),Tn.target),!1}break;case Wn&&Wn.get(0):switch(Tn.keyCode){case 38:return Wn.val(setValueInRange.call(Gn,Number.parseFloat(Wn.val())+1,0,100)),Dn.val("a",toFixedNumeric(255*Wn.val()/100,Hn),Tn.target),!1;case 40:return Wn.val(setValueInRange.call(Gn,Number.parseFloat(Wn.val())-1,0,100)),Dn.val("a",toFixedNumeric(255*Wn.val()/100,Hn),Tn.target),!1}break;case Xn.get(0):switch(Tn.keyCode){case 38:return Xn.val(setValueInRange.call(Gn,1+(Xn.val()<<0),0,360)),Dn.val("h",Xn.val(),Tn.target),!1;case 40:return Xn.val(setValueInRange.call(Gn,(Xn.val()<<0)-1,0,360)),Dn.val("h",Xn.val(),Tn.target),!1}break;case Yn.get(0):switch(Tn.keyCode){case 38:return Yn.val(setValueInRange.call(Gn,1+(Yn.val()<<0),0,100)),Dn.val("s",Yn.val(),Tn.target),!1;case 40:return Yn.val(setValueInRange.call(Gn,(Yn.val()<<0)-1,0,100)),Dn.val("s",Yn.val(),Tn.target),!1}break;case Jn.get(0):switch(Tn.keyCode){case 38:return Jn.val(setValueInRange.call(Gn,1+(Jn.val()<<0),0,100)),Dn.val("v",Jn.val(),Tn.target),!1;case 40:return Jn.val(setValueInRange.call(Gn,(Jn.val()<<0)-1,0,100)),Dn.val("v",Jn.val(),Tn.target),!1}}}}function keyUp(Tn){if(""!==Tn.target.value||Tn.target===Zn.get(0)||(Ef(Qn)||Tn.target===Qn.get(0))&&!Ef(Qn)){if(!validateKey(Tn))return Tn;switch(Tn.target){case zn.get(0):zn.val(setValueInRange.call(Gn,zn.val(),0,255)),Dn.val("r",zn.val(),Tn.target);break;case Kn.get(0):Kn.val(setValueInRange.call(Gn,Kn.val(),0,255)),Dn.val("g",Kn.val(),Tn.target);break;case $n.get(0):$n.val(setValueInRange.call(Gn,$n.val(),0,255)),Dn.val("b",$n.val(),Tn.target);break;case Wn&&Wn.get(0):Wn.val(setValueInRange.call(Gn,Wn.val(),0,100)),Dn.val("a",toFixedNumeric(255*Wn.val()/100,Hn),Tn.target);break;case Xn.get(0):Xn.val(setValueInRange.call(Gn,Xn.val(),0,360)),Dn.val("h",Xn.val(),Tn.target);break;case Yn.get(0):Yn.val(setValueInRange.call(Gn,Yn.val(),0,100)),Dn.val("s",Yn.val(),Tn.target);break;case Jn.get(0):Jn.val(setValueInRange.call(Gn,Jn.val(),0,100)),Dn.val("v",Jn.val(),Tn.target);break;case Zn.get(0):Zn.val(Zn.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6)),Qn&&Qn.val(Zn.val()),Dn.val("hex",""!==Zn.val()?Zn.val():null,Tn.target);break;case Qn&&Qn.get(0):Qn.val(Qn.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6)),Zn.val(Qn.val()),Dn.val("hex",""!==Qn.val()?Qn.val():null,Tn.target);break;case er&&er.get(0):er.val(er.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,2)),Dn.val("a",Ef(er.val())?null:Number.parseInt(er.val(),16),Tn.target)}}}function blur(Tn){if(!Ef(Dn.val()))switch(Tn.target){case zn.get(0):zn.val(Dn.val("r"));break;case Kn.get(0):Kn.val(Dn.val("g"));break;case $n.get(0):$n.val(Dn.val("b"));break;case Wn&&Wn.get(0):Wn.val(toFixedNumeric(100*Dn.val("a")/255,Hn));break;case Xn.get(0):Xn.val(Dn.val("h"));break;case Yn.get(0):Yn.val(Dn.val("s"));break;case Jn.get(0):Jn.val(Dn.val("v"));break;case Zn.get(0):case Qn&&Qn.get(0):Zn.val(Dn.val("hex")),Qn&&Qn.val(Dn.val("hex"));break;case er&&er.get(0):er.val(Dn.val("ahex").substring(6))}}function validateKey(Tn){switch(Tn.keyCode){case 9:case 16:case 29:case 37:case 39:return!1;case"c".charCodeAt():case"v".charCodeAt():if(Tn.ctrlKey)return!1}return!0}function setValueInRange(Tn,Un,Dn){return""===Tn||isNaN(Tn)?Un:Tn>Dn?Dn:Tn<Un?Un:Tn}function colorChanged(Tn,Un){var Dn=Tn.val("all");Un!==zn.get(0)&&zn.val(Ef(Dn)?"":Dn.r),Un!==Kn.get(0)&&Kn.val(Ef(Dn)?"":Dn.g),Un!==$n.get(0)&&$n.val(Ef(Dn)?"":Dn.b),Wn&&Un!==Wn.get(0)&&Wn.val(Ef(Dn)?"":toFixedNumeric(100*Dn.a/255,Hn)),Un!==Xn.get(0)&&Xn.val(Ef(Dn)?"":Dn.h),Un!==Yn.get(0)&&Yn.val(Ef(Dn)?"":Dn.s),Un!==Jn.get(0)&&Jn.val(Ef(Dn)?"":Dn.v),Un!==Zn.get(0)&&(Qn&&Un!==Qn.get(0)||!Qn)&&Zn.val(Ef(Dn)?"":Dn.hex),Qn&&Un!==Qn.get(0)&&Un!==Zn.get(0)&&Qn.val(Ef(Dn)?"":Dn.hex),er&&Un!==er.get(0)&&er.val(Ef(Dn)?"":Dn.ahex.substring(6))}var zn=Vn.eq(3),Kn=Vn.eq(4),$n=Vn.eq(5),Wn=Vn.length>7?Vn.eq(6):null,Xn=Vn.eq(0),Yn=Vn.eq(1),Jn=Vn.eq(2),Zn=Vn.eq(Vn.length>7?7:6),er=Vn.length>7?Vn.eq(8):null;Tn.extend(!0,Gn,{destroy:function destroy(){zn.add(Kn).add($n).add(Wn).add(Xn).add(Yn).add(Jn).add(Zn).add(Qn).add(er).unbind("keyup",keyUp).unbind("blur",blur),zn.add(Kn).add($n).add(Wn).add(Xn).add(Yn).add(Jn).unbind("keydown",keyDown),Dn.unbind(colorChanged),zn=null,Kn=null,$n=null,Wn=null,Xn=null,Yn=null,Jn=null,Zn=null,er=null}}),zn.add(Kn).add($n).add(Wn).add(Xn).add(Yn).add(Jn).add(Zn).add(Qn).add(er).bind("keyup",keyUp).bind("blur",blur),zn.add(Kn).add($n).add(Wn).add(Xn).add(Yn).add(Jn).bind("keydown",keyDown),Dn.bind(colorChanged)};Tn.jPicker={List:[],Color:function Color(Un){var Dn=this;function fireChangeEvents(Tn){for(var Un=0;Un<Xn.length;Un++)Xn[Un].call(Dn,Dn,Tn)}function val(Tn,Un,Xn){var Yn=Boolean(Un);if(Yn&&""===Un.ahex&&(Un.ahex="00000000"),!Yn){var Jn;if((Ef(Tn)||""===Tn)&&(Tn="all"),Ef(Qn))return null;switch(Tn.toLowerCase()){case"ahex":return Vn.rgbaToHex({r:Qn,g:Hn,b:Gn,a:zn});case"hex":return val("ahex").substring(0,6);case"all":return{r:Qn,g:Hn,b:Gn,a:zn,h:Kn,s:$n,v:Wn,hex:val.call(Dn,"hex"),ahex:val.call(Dn,"ahex")};default:Jn={};var Zn=Tn.length;_toConsumableArray(Tn).forEach((function(Tn){switch(Tn){case"r":1===Zn?Jn=Qn:Jn.r=Qn;break;case"g":1===Zn?Jn=Hn:Jn.g=Hn;break;case"b":1===Zn?Jn=Gn:Jn.b=Gn;break;case"a":1===Zn?Jn=zn:Jn.a=zn;break;case"h":1===Zn?Jn=Kn:Jn.h=Kn;break;case"s":1===Zn?Jn=$n:Jn.s=$n;break;case"v":1===Zn?Jn=Wn:Jn.v=Wn}}))}return"object"!==_typeof(Jn)||Object.keys(Jn).length?Jn:val.call(Dn,"all")}if(Ef(Xn)||Xn!==Dn){Ef(Tn)&&(Tn="");var er=!1;if(Ef(Un))return Ef(Qn)||(Qn=null,er=!0),Ef(Hn)||(Hn=null,er=!0),Ef(Gn)||(Gn=null,er=!0),Ef(zn)||(zn=null,er=!0),Ef(Kn)||(Kn=null,er=!0),Ef($n)||($n=null,er=!0),Ef(Wn)||(Wn=null,er=!0),void(er&&fireChangeEvents.call(Dn,Xn||Dn));switch(Tn.toLowerCase()){case"ahex":case"hex":var tr=Vn.hexToRgba(Un&&(Un.ahex||Un.hex)||Un||"none");val.call(Dn,"rgba",{r:tr.r,g:tr.g,b:tr.b,a:"ahex"===Tn?tr.a:Ef(zn)?255:zn},Xn);break;default:if(Un&&(!Ef(Un.ahex)||!Ef(Un.hex)))return void val.call(Dn,"ahex",Un.ahex||Un.hex||"00000000",Xn);var nr={},rr=!1,ir=!1;if(void 0===Un.r||Tn.includes("r")||(Tn+="r"),void 0===Un.g||Tn.includes("g")||(Tn+="g"),void 0===Un.b||Tn.includes("b")||(Tn+="b"),void 0===Un.a||Tn.includes("a")||(Tn+="a"),void 0===Un.h||Tn.includes("h")||(Tn+="h"),void 0===Un.s||Tn.includes("s")||(Tn+="s"),void 0===Un.v||Tn.includes("v")||(Tn+="v"),_toConsumableArray(Tn).forEach((function(Tn){switch(Tn){case"r":if(ir)return;rr=!0,nr.r=Un.r&&0|Un.r||0|Un||0,nr.r<0?nr.r=0:nr.r>255&&(nr.r=255),Qn!==nr.r&&(Qn=nr.r,er=!0);break;case"g":if(ir)return;rr=!0,nr.g=Un&&Un.g&&0|Un.g||Un&&0|Un||0,nr.g<0?nr.g=0:nr.g>255&&(nr.g=255),Hn!==nr.g&&(Hn=nr.g,er=!0);break;case"b":if(ir)return;rr=!0,nr.b=Un&&Un.b&&0|Un.b||Un&&0|Un||0,nr.b<0?nr.b=0:nr.b>255&&(nr.b=255),Gn!==nr.b&&(Gn=nr.b,er=!0);break;case"a":nr.a=Un&&!Ef(Un.a)?0|Un.a:0|Un,nr.a<0?nr.a=0:nr.a>255&&(nr.a=255),zn!==nr.a&&(zn=nr.a,er=!0);break;case"h":if(rr)return;ir=!0,nr.h=Un&&Un.h&&0|Un.h||Un&&0|Un||0,nr.h<0?nr.h=0:nr.h>360&&(nr.h=360),Kn!==nr.h&&(Kn=nr.h,er=!0);break;case"s":if(rr)return;ir=!0,nr.s=Ef(Un.s)?0|Un:0|Un.s,nr.s<0?nr.s=0:nr.s>100&&(nr.s=100),$n!==nr.s&&($n=nr.s,er=!0);break;case"v":if(rr)return;ir=!0,nr.v=Ef(Un.v)?0|Un:0|Un.v,nr.v<0?nr.v=0:nr.v>100&&(nr.v=100),Wn!==nr.v&&(Wn=nr.v,er=!0)}})),er){if(rr){Qn=Qn||0,Hn=Hn||0,Gn=Gn||0;var or=Vn.rgbToHsv({r:Qn,g:Hn,b:Gn});Kn=or.h,$n=or.s,Wn=or.v}else if(ir){Kn=Kn||0,$n=Ef($n)?100:$n,Wn=Ef(Wn)?100:Wn;var ar=Vn.hsvToRgb({h:Kn,s:$n,v:Wn});Qn=ar.r,Hn=ar.g,Gn=ar.b}zn=Ef(zn)?255:zn,fireChangeEvents.call(Dn,Xn||Dn)}}}}var Qn,Hn,Gn,zn,Kn,$n,Wn,Xn=[];Tn.extend(!0,Dn,{val:val,bind:function bind(Tn){"function"==typeof Tn&&Xn.push(Tn)},unbind:function unbind(Tn){if("function"==typeof Tn)for(var Un;Un=Xn.includes(Tn);)Xn.splice(Un,1)},destroy:function destroy(){Xn=null}}),Un&&(Ef(Un.ahex)?Ef(Un.hex)?Ef(Un.r)||Ef(Un.g)||Ef(Un.b)?Ef(Un.h)||Ef(Un.s)||Ef(Un.v)||val("hsv"+(Ef(Un.a)?"":"a"),Un):val("rgb"+(Ef(Un.a)?"":"a"),Un):val((Ef(Un.a)?"":"a")+"hex",Ef(Un.a)?Un:{ahex:Un.hex+Vn.intToHex(Un.a)}):val("ahex",Un))},ColorMethods:{hexToRgba:function hexToRgba(Tn){if(""===Tn||"none"===Tn)return{r:null,g:null,b:null,a:null};var Un="00",Dn="00",Qn="00",Hn="255";return 6===(Tn=this.validateHex(Tn)).length&&(Tn+="ff"),Tn.length>6?(Un=Tn.substring(0,2),Dn=Tn.substring(2,4),Qn=Tn.substring(4,6),Hn=Tn.substring(6,Tn.length)):(Tn.length>4&&(Un=Tn.substring(4,Tn.length),Tn=Tn.substring(0,4)),Tn.length>2&&(Dn=Tn.substring(2,Tn.length),Tn=Tn.substring(0,2)),Tn.length>0&&(Qn=Tn.substring(0,Tn.length))),{r:this.hexToInt(Un),g:this.hexToInt(Dn),b:this.hexToInt(Qn),a:this.hexToInt(Hn)}},validateHex:function validateHex(Tn){return(Tn=Tn.toLowerCase().replace(/[^a-f\d]/g,"")).length>8&&(Tn=Tn.substring(0,8)),Tn},rgbaToHex:function rgbaToHex(Tn){return this.intToHex(Tn.r)+this.intToHex(Tn.g)+this.intToHex(Tn.b)+this.intToHex(Tn.a)},intToHex:function intToHex(Tn){var Un=(0|Tn).toString(16);return 1===Un.length&&(Un="0"+Un),Un.toLowerCase()},hexToInt:function hexToInt(Tn){return Number.parseInt(Tn,16)},rgbToHsv:function rgbToHsv(Tn){var Un,Dn=Tn.r/255,Qn=Tn.g/255,Hn=Tn.b/255,Gn={h:0,s:0,v:0},Vn=0,zn=0;return Dn>=Qn&&Dn>=Hn?(zn=Dn,Vn=Qn>Hn?Hn:Qn):Qn>=Hn&&Qn>=Dn?(zn=Qn,Vn=Dn>Hn?Hn:Dn):(zn=Hn,Vn=Qn>Dn?Dn:Qn),Gn.v=zn,Gn.s=zn?(zn-Vn)/zn:0,Gn.s?(Un=zn-Vn,Gn.h=Dn===zn?(Qn-Hn)/Un:Qn===zn?2+(Hn-Dn)/Un:4+(Dn-Qn)/Un,Gn.h=Number.parseInt(60*Gn.h),Gn.h<0&&(Gn.h+=360)):Gn.h=0,Gn.s=100*Gn.s|0,Gn.v=100*Gn.v|0,Gn},hsvToRgb:function hsvToRgb(Tn){var Un={r:0,g:0,b:0,a:100},Dn=Tn.h,Qn=Tn.s,Hn=Tn.v;if(0===Qn)Un.r=Un.g=Un.b=0===Hn?0:255*Hn/100|0;else{360===Dn&&(Dn=0);var Gn=0|(Dn/=60),Vn=Dn-Gn,zn=(Hn/=100)*(1-(Qn/=100)),Kn=Hn*(1-Qn*Vn),$n=Hn*(1-Qn*(1-Vn));switch(Gn){case 0:Un.r=Hn,Un.g=$n,Un.b=zn;break;case 1:Un.r=Kn,Un.g=Hn,Un.b=zn;break;case 2:Un.r=zn,Un.g=Hn,Un.b=$n;break;case 3:Un.r=zn,Un.g=Kn,Un.b=Hn;break;case 4:Un.r=$n,Un.g=zn,Un.b=Hn;break;case 5:Un.r=Hn,Un.g=zn,Un.b=Kn}Un.r=255*Un.r|0,Un.g=255*Un.g|0,Un.b=255*Un.b|0}return Un}}};var Qn=Tn.jPicker,Hn=Qn.Color,Gn=Qn.List,Vn=Qn.ColorMethods;return Tn.fn.jPicker=function(Qn,zn,Kn,$n){return this.each((function(){var Wn=this,Xn=Tn.extend(!0,{},Tn.fn.jPicker.defaults,Qn);"input"===Tn(Wn).get(0).nodeName.toLowerCase()&&(Tn.extend(!0,Xn,{window:{bindToInput:!0,expandable:!0,input:Tn(Wn)}}),""===Tn(Wn).val()?(Xn.color.active=new Hn({hex:null}),Xn.color.current=new Hn({hex:null})):Vn.validateHex(Tn(Wn).val())&&(Xn.color.active=new Hn({hex:Tn(Wn).val(),a:Xn.color.active.val("a")}),Xn.color.current=new Hn({hex:Tn(Wn).val(),a:Xn.color.active.val("a")}))),Xn.window.expandable?Tn(Wn).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>'):Xn.window.liveUpdate=!1;var Yn=Number.parseFloat(navigator.appVersion.split("MSIE")[1])<7&&document.body.filters;function setColorMode(Tn){var Un,Dn,Qn=er.active,Hn=Qn.val("hex");switch(Xn.color.mode=Tn,Tn){case"h":if(setTimeout((function(){setBG.call(Wn,ar,"transparent"),setImgLoc.call(Wn,lr,0),setAlpha.call(Wn,lr,100),setImgLoc.call(Wn,cr,260),setAlpha.call(Wn,cr,100),setBG.call(Wn,sr,"transparent"),setImgLoc.call(Wn,dr,0),setAlpha.call(Wn,dr,100),setImgLoc.call(Wn,hr,260),setAlpha.call(Wn,hr,100),setImgLoc.call(Wn,pr,260),setAlpha.call(Wn,pr,100),setImgLoc.call(Wn,gr,260),setAlpha.call(Wn,gr,100),setImgLoc.call(Wn,Ar,260),setAlpha.call(Wn,Ar,100)}),0),mr.range("all",{minX:0,maxX:100,minY:0,maxY:100}),vr.range("rangeY",{minY:0,maxY:360}),Ef(Qn.val("ahex")))break;mr.val("xy",{x:Qn.val("s"),y:100-Qn.val("v")},mr),vr.val("y",360-Qn.val("h"),vr);break;case"s":if(setTimeout((function(){setBG.call(Wn,ar,"transparent"),setImgLoc.call(Wn,lr,-260),setImgLoc.call(Wn,cr,-520),setImgLoc.call(Wn,dr,-260),setImgLoc.call(Wn,hr,-520),setImgLoc.call(Wn,Ar,260),setAlpha.call(Wn,Ar,100)}),0),mr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),vr.range("rangeY",{minY:0,maxY:100}),Ef(Qn.val("ahex")))break;mr.val("xy",{x:Qn.val("h"),y:100-Qn.val("v")},mr),vr.val("y",100-Qn.val("s"),vr);break;case"v":if(setTimeout((function(){setBG.call(Wn,ar,"000000"),setImgLoc.call(Wn,lr,-780),setImgLoc.call(Wn,cr,260),setBG.call(Wn,sr,Hn),setImgLoc.call(Wn,dr,-520),setImgLoc.call(Wn,hr,260),setAlpha.call(Wn,hr,100),setImgLoc.call(Wn,Ar,260),setAlpha.call(Wn,Ar,100)}),0),mr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),vr.range("rangeY",{minY:0,maxY:100}),Ef(Qn.val("ahex")))break;mr.val("xy",{x:Qn.val("h"),y:100-Qn.val("s")},mr),vr.val("y",100-Qn.val("v"),vr);break;case"r":if(Un=-1040,Dn=-780,mr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),vr.range("rangeY",{minY:0,maxY:255}),Ef(Qn.val("ahex")))break;mr.val("xy",{x:Qn.val("b"),y:255-Qn.val("g")},mr),vr.val("y",255-Qn.val("r"),vr);break;case"g":if(Un=-1560,Dn=-1820,mr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),vr.range("rangeY",{minY:0,maxY:255}),Ef(Qn.val("ahex")))break;mr.val("xy",{x:Qn.val("b"),y:255-Qn.val("r")},mr),vr.val("y",255-Qn.val("g"),vr);break;case"b":if(Un=-2080,Dn=-2860,mr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),vr.range("rangeY",{minY:0,maxY:255}),Ef(Qn.val("ahex")))break;mr.val("xy",{x:Qn.val("r"),y:255-Qn.val("g")},mr),vr.val("y",255-Qn.val("b"),vr);break;case"a":if(setTimeout((function(){setBG.call(Wn,ar,"transparent"),setImgLoc.call(Wn,lr,-260),setImgLoc.call(Wn,cr,-520),setImgLoc.call(Wn,dr,260),setImgLoc.call(Wn,hr,260),setAlpha.call(Wn,hr,100),setImgLoc.call(Wn,Ar,0),setAlpha.call(Wn,Ar,100)}),0),mr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),vr.range("rangeY",{minY:0,maxY:255}),Ef(Qn.val("ahex")))break;mr.val("xy",{x:Qn.val("h"),y:100-Qn.val("v")},mr),vr.val("y",255-Qn.val("a"),vr);break;default:throw new Error("Invalid Mode")}switch(Tn){case"h":break;case"s":case"v":case"a":setTimeout((function(){setAlpha.call(Wn,lr,100),setAlpha.call(Wn,dr,100),setImgLoc.call(Wn,pr,260),setAlpha.call(Wn,pr,100),setImgLoc.call(Wn,gr,260),setAlpha.call(Wn,gr,100)}),0);break;case"r":case"g":case"b":setTimeout((function(){setBG.call(Wn,ar,"transparent"),setBG.call(Wn,sr,"transparent"),setAlpha.call(Wn,dr,100),setAlpha.call(Wn,lr,100),setImgLoc.call(Wn,lr,Un),setImgLoc.call(Wn,cr,Un-260),setImgLoc.call(Wn,dr,Dn-780),setImgLoc.call(Wn,hr,Dn-520),setImgLoc.call(Wn,pr,Dn),setImgLoc.call(Wn,gr,Dn-260),setImgLoc.call(Wn,Ar,260),setAlpha.call(Wn,Ar,100)}),0)}Ef(Qn.val("ahex"))||activeColorChanged.call(Wn,Qn)}function activeColorChanged(Tn,Un){(Ef(Un)||Un!==vr&&Un!==mr)&&positionMapAndBarArrows.call(Wn,Tn,Un),setTimeout((function(){updatePreview.call(Wn,Tn),updateMapVisuals.call(Wn,Tn),updateBarVisuals.call(Wn,Tn)}),0)}function mapValueChanged(Tn,Un){var Dn=er.active;if(Un===mr||!Ef(Dn.val())){var Qn=Tn.val("all");switch(Xn.color.mode){case"h":Dn.val("sv",{s:Qn.x,v:100-Qn.y},Un);break;case"s":case"a":Dn.val("hv",{h:Qn.x,v:100-Qn.y},Un);break;case"v":Dn.val("hs",{h:Qn.x,s:100-Qn.y},Un);break;case"r":Dn.val("gb",{g:255-Qn.y,b:Qn.x},Un);break;case"g":Dn.val("rb",{r:255-Qn.y,b:Qn.x},Un);break;case"b":Dn.val("rg",{r:Qn.x,g:255-Qn.y},Un)}}}function colorBarValueChanged(Tn,Un){var Dn=er.active;if(Un===vr||!Ef(Dn.val()))switch(Xn.color.mode){case"h":Dn.val("h",{h:360-Tn.val("y")},Un);break;case"s":Dn.val("s",{s:100-Tn.val("y")},Un);break;case"v":Dn.val("v",{v:100-Tn.val("y")},Un);break;case"r":Dn.val("r",{r:255-Tn.val("y")},Un);break;case"g":Dn.val("g",{g:255-Tn.val("y")},Un);break;case"b":Dn.val("b",{b:255-Tn.val("y")},Un);break;case"a":Dn.val("a",255-Tn.val("y"),Un)}}function positionMapAndBarArrows(Tn,Un){if(Un!==mr)switch(Xn.color.mode){case"h":var Dn=Tn.val("sv");mr.val("xy",{x:Ef(Dn)?100:Dn.s,y:100-(Ef(Dn)?100:Dn.v)},Un);break;case"s":case"a":var Qn=Tn.val("hv");mr.val("xy",{x:Qn&&Qn.h||0,y:100-(Ef(Qn)?100:Qn.v)},Un);break;case"v":var Hn=Tn.val("hs");mr.val("xy",{x:Hn&&Hn.h||0,y:100-(Ef(Hn)?100:Hn.s)},Un);break;case"r":var Gn=Tn.val("bg");mr.val("xy",{x:Gn&&Gn.b||0,y:255-(Gn&&Gn.g||0)},Un);break;case"g":var Vn=Tn.val("br");mr.val("xy",{x:Vn&&Vn.b||0,y:255-(Vn&&Vn.r||0)},Un);break;case"b":var zn=Tn.val("rg");mr.val("xy",{x:zn&&zn.r||0,y:255-(zn&&zn.g||0)},Un)}if(Un!==vr)switch(Xn.color.mode){case"h":vr.val("y",360-(Tn.val("h")||0),Un);break;case"s":var Kn=Tn.val("s");vr.val("y",100-(Ef(Kn)?100:Kn),Un);break;case"v":var $n=Tn.val("v");vr.val("y",100-(Ef($n)?100:$n),Un);break;case"r":vr.val("y",255-(Tn.val("r")||0),Un);break;case"g":vr.val("y",255-(Tn.val("g")||0),Un);break;case"b":vr.val("y",255-(Tn.val("b")||0),Un);break;case"a":var Wn=Tn.val("a");vr.val("y",255-(Ef(Wn)?255:Wn),Un)}}function updatePreview(Tn){try{var Un=Tn.val("all");_r.css({backgroundColor:Un&&"#"+Un.hex||"transparent"}),setAlpha.call(Wn,_r,Un&&toFixedNumeric(100*Un.a/255,4)||0)}catch(Tn){}}function updateMapVisuals(Tn){switch(Xn.color.mode){case"h":setBG.call(Wn,ar,new Hn({h:Tn.val("h")||0,s:100,v:100}).val("hex"));break;case"s":case"a":var Un=Tn.val("s");setAlpha.call(Wn,cr,100-(Ef(Un)?100:Un));break;case"v":var Dn=Tn.val("v");setAlpha.call(Wn,lr,Ef(Dn)?100:Dn);break;case"r":setAlpha.call(Wn,cr,toFixedNumeric((Tn.val("r")||0)/255*100,4));break;case"g":setAlpha.call(Wn,cr,toFixedNumeric((Tn.val("g")||0)/255*100,4));break;case"b":setAlpha.call(Wn,cr,toFixedNumeric((Tn.val("b")||0)/255*100))}var Qn=Tn.val("a");setAlpha.call(Wn,ur,toFixedNumeric(100*(255-(Qn||0))/255,4))}function updateBarVisuals(Tn){switch(Xn.color.mode){case"h":var Un=Tn.val("a");setAlpha.call(Wn,fr,toFixedNumeric(100*(255-(Un||0))/255,4));break;case"s":var Dn=Tn.val("hva"),Qn=new Hn({h:Dn&&Dn.h||0,s:100,v:Ef(Dn)?100:Dn.v});setBG.call(Wn,sr,Qn.val("hex")),setAlpha.call(Wn,hr,100-(Ef(Dn)?100:Dn.v)),setAlpha.call(Wn,fr,toFixedNumeric(100*(255-(Dn&&Dn.a||0))/255,4));break;case"v":var Gn=Tn.val("hsa"),Vn=new Hn({h:Gn&&Gn.h||0,s:Ef(Gn)?100:Gn.s,v:100});setBG.call(Wn,sr,Vn.val("hex")),setAlpha.call(Wn,fr,toFixedNumeric(100*(255-(Gn&&Gn.a||0))/255,4));break;case"r":case"g":case"b":var zn=Tn.val("rgba"),Kn=0,$n=0;"r"===Xn.color.mode?(Kn=zn&&zn.b||0,$n=zn&&zn.g||0):"g"===Xn.color.mode?(Kn=zn&&zn.b||0,$n=zn&&zn.r||0):"b"===Xn.color.mode&&(Kn=zn&&zn.r||0,$n=zn&&zn.g||0);var Yn=$n>Kn?Kn:$n;setAlpha.call(Wn,hr,Kn>$n?toFixedNumeric((Kn-$n)/(255-$n)*100,4):0),setAlpha.call(Wn,pr,$n>Kn?toFixedNumeric(($n-Kn)/(255-Kn)*100,4):0),setAlpha.call(Wn,gr,toFixedNumeric(Yn/255*100,4)),setAlpha.call(Wn,fr,toFixedNumeric(100*(255-(zn&&zn.a||0))/255,4));break;case"a":var Jn=Tn.val("a");setBG.call(Wn,sr,Tn.val("hex")||"000000"),setAlpha.call(Wn,fr,Ef(Jn)?100:0),setAlpha.call(Wn,Ar,Ef(Jn)?0:100)}}function setBG(Tn,Un){Tn.css({backgroundColor:Un&&6===Un.length&&"#"+Un||"transparent"})}function setImg(Tn,Un){Yn&&(Un.includes("AlphaBar.png")||Un.includes("Bars.png")||Un.includes("Maps.png"))?(Tn.attr("pngSrc",Un),Tn.css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+Un+"', sizingMethod='scale')"})):Tn.css({backgroundImage:"url('"+Un+"')"})}function setImgLoc(Tn,Un){Tn.css({top:Un+"px"})}function setAlpha(Tn,Un){if(Tn.css({visibility:Un>0?"visible":"hidden"}),Un>0&&Un<100)if(Yn){var Dn=Tn.attr("pngSrc");!Ef(Dn)&&(Dn.includes("AlphaBar.png")||Dn.includes("Bars.png")||Dn.includes("Maps.png"))?Tn.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+Dn+"', sizingMethod='scale') progid:DXImageTransform.Microsoft.Alpha(opacity="+Un+")"}):Tn.css({opacity:toFixedNumeric(Un/100,4)})}else Tn.css({opacity:toFixedNumeric(Un/100,4)});else if(0===Un||100===Un)if(Yn){var Qn=Tn.attr("pngSrc");!Ef(Qn)&&(Qn.includes("AlphaBar.png")||Qn.includes("Bars.png")||Qn.includes("Maps.png"))?Tn.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+Qn+"', sizingMethod='scale')"}):Tn.css({opacity:""})}else Tn.css({opacity:""})}function revertColor(){er.active.val("ahex",er.current.val("ahex"))}function commitColor(){er.current.val("ahex",er.active.val("ahex"))}function radioClicked(Un){Tn(this).parents("tbody:first").find('input:radio[value!="'+Un.target.value+'"]').removeAttr("checked"),setColorMode.call(Wn,Un.target.value)}function currentClicked(){revertColor.call(Wn)}function cancelClicked(){revertColor.call(Wn),Xn.window.expandable&&hide.call(Wn),"function"==typeof $n&&$n.call(Wn,er.active,xr)}function okClicked(){commitColor.call(Wn),Xn.window.expandable&&hide.call(Wn),"function"==typeof zn&&zn.call(Wn,er.active,wr)}function iconImageClicked(){show.call(Wn)}function currentColorChanged(Tn){var Un=Tn.val("hex");br.css({backgroundColor:Un&&"#"+Un||"transparent"}),setAlpha.call(Wn,br,toFixedNumeric(100*(Tn.val("a")||0)/255,4))}function expandableColorChanged(Tn){var Un=Tn.val("hex"),Dn=Tn.val("va");Cr.css({backgroundColor:Un&&"#"+Un||"transparent"}),setAlpha.call(Wn,kr,toFixedNumeric(100*(255-(Dn&&Dn.a||0))/255,4)),Xn.window.bindToInput&&Xn.window.updateInputColor&&Xn.window.input.css({backgroundColor:Un&&"#"+Un||"transparent",color:Ef(Dn)||Dn.v>75?"#000000":"#ffffff"})}function moveBarMouseDown(Un){tr=Number.parseInt(or.css("left")),nr=Number.parseInt(or.css("top")),rr=Un.pageX,ir=Un.pageY,Tn(document).bind("mousemove",documentMouseMove).bind("mouseup",documentMouseUp),Un.preventDefault()}function documentMouseMove(Un){return or.css({left:tr-(rr-Un.pageX)+"px",top:nr-(ir-Un.pageY)+"px"}),Xn.window.expandable&&!Tn.support.boxModel&&or.prev().css({left:or.css("left"),top:or.css("top")}),Un.stopPropagation(),Un.preventDefault(),!1}function documentMouseUp(Un){return Tn(document).unbind("mousemove",documentMouseMove).unbind("mouseup",documentMouseUp),Un.stopPropagation(),Un.preventDefault(),!1}function quickPickClicked(Un){return Un.preventDefault(),Un.stopPropagation(),er.active.val("ahex",Tn(this).attr("title")||null,Un.target),!1}function show(){function attachIFrame(){if(Xn.window.expandable&&!Tn.support.boxModel){var Un=or.find("table:first");or.before("<iframe/>"),or.prev().css({width:Un.width(),height:or.height(),opacity:0,position:"absolute",left:or.css("left"),top:or.css("top")})}}switch(er.current.val("ahex",er.active.val("ahex")),Xn.window.expandable&&(Tn(document.body).children("div.jPicker.Container").css({zIndex:10}),or.css({zIndex:20})),Xn.window.effects.type){case"fade":or.fadeIn(Xn.window.effects.speed.show,attachIFrame);break;case"slide":or.slideDown(Xn.window.effects.speed.show,attachIFrame);break;case"show":default:or.show(Xn.window.effects.speed.show,attachIFrame)}}function hide(){function removeIFrame(){Xn.window.expandable&&or.css({zIndex:10}),Xn.window.expandable&&!Tn.support.boxModel&&or.prev().remove()}switch(Xn.window.effects.type){case"fade":or.fadeOut(Xn.window.effects.speed.hide,removeIFrame);break;case"slide":or.slideUp(Xn.window.effects.speed.hide,removeIFrame);break;case"show":default:or.hide(Xn.window.effects.speed.hide,removeIFrame)}}function initialize(){var Qn=Xn.window,Gn=Qn.expandable?Tn(Wn).next().find(".Container:first"):null;(or=Qn.expandable?Tn("<div/>"):Tn(Wn)).addClass("jPicker Container"),Qn.expandable&&or.hide(),or.get(0).onselectstart=function(Tn){return"input"===Tn.target.nodeName.toLowerCase()};var Vn=er.active.val("all");Qn.alphaPrecision<0?Qn.alphaPrecision=0:Qn.alphaPrecision>2&&(Qn.alphaPrecision=2);var zn='<table class="jPicker" cellpadding="0" cellspacing="0">\n <tbody>\n '.concat(Qn.expandable?'<tr><td class="Move" colspan="5"> </td></tr>':"",'\n <tr>\n <td rowspan="9"><h2 class="Title">').concat(Qn.title||Zn.text.title,'</h2><div class="Map"><span class="Map1"> </span><span class="Map2"> </span><span class="Map3"> </span><img src="').concat(Jn.clientPath+Jn.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(Jn.clientPath+Jn.colorBar.arrow.file,'" class="Arrow"/></div></td>\n <td colspan="2" class="Preview">').concat(Zn.text.newColor,'<div><span class="Active" title="').concat(Zn.tooltips.colors.newColor,'"> </span><span class="Current" title="').concat(Zn.tooltips.colors.currentColor,'"> </span></div>').concat(Zn.text.currentColor,'</td>\n <td rowspan="9" class="Button"><input type="button" class="Ok" value="').concat(Zn.text.ok,'" title="').concat(Zn.tooltips.buttons.ok,'"/><input type="button" class="Cancel" value="').concat(Zn.text.cancel,'" title="').concat(Zn.tooltips.buttons.cancel,'"/><hr/><div class="Grid"> </div></td>\n </tr>\n <tr class="Hue">\n <td class="Radio"><label title="').concat(Zn.tooltips.hue.radio,'"><input type="radio" value="h"').concat("h"===Xn.color.mode?' checked="checked"':"",'/>H:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Ef(Vn)?"":Vn.h,'" title="').concat(Zn.tooltips.hue.textbox,'"/> °</td>\n </tr>\n <tr class="Saturation">\n <td class="Radio"><label title="').concat(Zn.tooltips.saturation.radio,'"><input type="radio" value="s"').concat("s"===Xn.color.mode?' checked="checked"':"",'/>S:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Ef(Vn)?"":Vn.s,'" title="').concat(Zn.tooltips.saturation.textbox,'"/> %</td>\n </tr>\n <tr class="Value">\n <td class="Radio"><label title="').concat(Zn.tooltips.value.radio,'"><input type="radio" value="v"').concat("v"===Xn.color.mode?' checked="checked"':"",'/>V:</label><br/><br/></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Ef(Vn)?"":Vn.v,'" title="').concat(Zn.tooltips.value.textbox,'"/> %<br/><br/></td>\n </tr>\n <tr class="Red">\n <td class="Radio"><label title="').concat(Zn.tooltips.red.radio,'"><input type="radio" value="r"').concat("r"===Xn.color.mode?' checked="checked"':"",'/>R:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Ef(Vn)?"":Vn.r,'" title="').concat(Zn.tooltips.red.textbox,'"/></td>\n </tr>\n <tr class="Green">\n <td class="Radio"><label title="').concat(Zn.tooltips.green.radio,'"><input type="radio" value="g"').concat("g"===Xn.color.mode?' checked="checked"':"",'/>G:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Ef(Vn)?"":Vn.g,'" title="').concat(Zn.tooltips.green.textbox,'"/></td>\n </tr>\n <tr class="Blue">\n <td class="Radio"><label title="').concat(Zn.tooltips.blue.radio,'"><input type="radio" value="b"').concat("b"===Xn.color.mode?' checked="checked"':"",'/>B:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(Ef(Vn)?"":Vn.b,'" title="').concat(Zn.tooltips.blue.textbox,'"/></td>\n </tr>\n <tr class="Alpha">\n <td class="Radio">').concat(Qn.alphaSupport?'<label title="'.concat(Zn.tooltips.alpha.radio,'"><input type="radio" value="a"').concat("a"===Xn.color.mode?' checked="checked"':"","/>A:</label>"):" ",'</td>\n <td class="Text">').concat(Qn.alphaSupport?'<input type="text" maxlength="'.concat(3+Qn.alphaPrecision,'" value="').concat(Ef(Vn)?"":toFixedNumeric(100*Vn.a/255,Qn.alphaPrecision),'" title="').concat(Zn.tooltips.alpha.textbox,'"/> %'):" ",'</td>\n </tr>\n <tr class="Hex">\n <td colspan="2" class="Text"><label title="').concat(Zn.tooltips.hex.textbox,'">#:<input type="text" maxlength="6" class="Hex" value="').concat(Ef(Vn)?"":Vn.hex,'"/></label>').concat(Qn.alphaSupport?'<input type="text" maxlength="2" class="AHex" value="'.concat(Ef(Vn)?"":Vn.ahex.substring(6),'" title="').concat(Zn.tooltips.hex.alpha,'"/></td>'):" ","\n </tr>\n </tbody></table>");Qn.expandable?(or.html(zn),Tn(document.body).children("div.jPicker.Container").length?Tn(document.body).children("div.jPicker.Container:last").after(or):Tn(document.body).prepend(or),or.mousedown((function(){Tn(document.body).children("div.jPicker.Container").css({zIndex:10}),or.css({zIndex:20})})),or.css({left:"left"===Qn.position.x?Gn.offset().left-530-("center"===Qn.position.y?25:0)+"px":"center"===Qn.position.x?Gn.offset().left-260+"px":"right"===Qn.position.x?Gn.offset().left-10+("center"===Qn.position.y?25:0)+"px":"screenCenter"===Qn.position.x?(Tn(document).width()>>1)-260+"px":Gn.offset().left+Number.parseInt(Qn.position.x)+"px",position:"absolute",top:"top"===Qn.position.y?Gn.offset().top-312+"px":"center"===Qn.position.y?Gn.offset().top-156+"px":"bottom"===Qn.position.y?Gn.offset().top+25+"px":Gn.offset().top+Number.parseInt(Qn.position.y)+"px"})):(or=Tn(Wn)).html(zn);var $n=or.find("tbody:first");ar=$n.find("div.Map:first"),sr=$n.find("div.Bar:first");var Yn=ar.find("span"),tr=sr.find("span");lr=Yn.filter(".Map1:first"),cr=Yn.filter(".Map2:first"),ur=Yn.filter(".Map3:first"),dr=tr.filter(".Map1:first"),hr=tr.filter(".Map2:first"),pr=tr.filter(".Map3:first"),gr=tr.filter(".Map4:first"),fr=tr.filter(".Map5:first"),Ar=tr.filter(".Map6:first"),(mr=new Un(ar,{map:{width:Jn.colorMap.width,height:Jn.colorMap.height},arrow:{image:Jn.clientPath+Jn.colorMap.arrow.file,width:Jn.colorMap.arrow.width,height:Jn.colorMap.arrow.height}})).bind(mapValueChanged),(vr=new Un(sr,{map:{width:Jn.colorBar.width,height:Jn.colorBar.height},arrow:{image:Jn.clientPath+Jn.colorBar.arrow.file,width:Jn.colorBar.arrow.width,height:Jn.colorBar.arrow.height}})).bind(colorBarValueChanged),yr=new Dn($n,er.active,Qn.expandable&&Qn.bindToInput?Qn.input:null,Qn.alphaPrecision);var nr=Ef(Vn)?null:Vn.hex,rr=$n.find(".Preview"),ir=$n.find(".Button");if(_r=rr.find(".Active:first").css({backgroundColor:nr&&"#"+nr||"transparent"}),br=rr.find(".Current:first").css({backgroundColor:nr&&"#"+nr||"transparent"}).bind("click",currentClicked),setAlpha.call(Wn,br,toFixedNumeric(100*er.current.val("a")/255,4)),wr=ir.find(".Ok:first").bind("click",okClicked),xr=ir.find(".Cancel:first").bind("click",cancelClicked),Sr=ir.find(".Grid:first"),setTimeout((function(){setImg.call(Wn,lr,Jn.clientPath+"Maps.png"),setImg.call(Wn,cr,Jn.clientPath+"Maps.png"),setImg.call(Wn,ur,Jn.clientPath+"map-opacity.png"),setImg.call(Wn,dr,Jn.clientPath+"Bars.png"),setImg.call(Wn,hr,Jn.clientPath+"Bars.png"),setImg.call(Wn,pr,Jn.clientPath+"Bars.png"),setImg.call(Wn,gr,Jn.clientPath+"Bars.png"),setImg.call(Wn,fr,Jn.clientPath+"bar-opacity.png"),setImg.call(Wn,Ar,Jn.clientPath+"AlphaBar.png"),setImg.call(Wn,rr.find("div:first"),Jn.clientPath+"preview-opacity.png")}),0),$n.find("td.Radio input").bind("click",radioClicked),er.quickList&&er.quickList.length>0){for(var Pr="",Lr=0;Lr<er.quickList.length;Lr++){"string"===_typeof(er.quickList[Lr]).toString().toLowerCase()&&(er.quickList[Lr]=new Hn({hex:er.quickList[Lr]}));var Tr=er.quickList[Lr].val("a"),Nr=er.quickList[Lr].val("ahex");!Qn.alphaSupport&&Nr&&(Nr=Nr.substring(0,6)+"ff");var Ir=er.quickList[Lr].val("hex");Nr||(Nr="00000000"),Pr+='<span class="QuickColor" title="#'+Nr+'" style="background-color:'+(Ir&&"#"+Ir||"")+";"+(Ir?"":"background-image:url("+Jn.clientPath+"NoColor.png)")+(Qn.alphaSupport&&Tr&&Tr<255?";opacity:"+toFixedNumeric(Tr/255,4)+";filter:Alpha(opacity="+toFixedNumeric(Tr/2.55,4)+")":"")+'"> </span>'}setImg.call(Wn,Sr,Jn.clientPath+"bar-opacity.png"),Sr.html(Pr),Sr.find(".QuickColor").click(quickPickClicked)}setColorMode.call(Wn,Xn.color.mode),er.active.bind(activeColorChanged),"function"==typeof Kn&&er.active.bind(Kn),er.current.bind(currentColorChanged),Qn.expandable?(Wn.icon=Gn.parents(".Icon:first"),Cr=Wn.icon.find(".Color:first").css({backgroundColor:nr&&"#"+nr||"transparent"}),kr=Wn.icon.find(".Alpha:first"),setImg.call(Wn,kr,Jn.clientPath+"bar-opacity.png"),setAlpha.call(Wn,kr,toFixedNumeric(100*(255-(Ef(Vn)?0:Vn.a))/255,4)),Br=Wn.icon.find(".Image:first").css({backgroundImage:"url('"+Jn.clientPath+Jn.picker.file+"')"}).bind("click",iconImageClicked),Qn.bindToInput&&Qn.updateInputColor&&Qn.input.css({backgroundColor:nr&&"#"+nr||"transparent",color:Ef(Vn)||Vn.v>75?"#000000":"#ffffff"}),Er=$n.find(".Move:first").bind("mousedown",moveBarMouseDown),er.active.bind(expandableColorChanged)):show.call(Wn)}var Jn=Xn.images,Zn=Xn.localization,er={active:"string"===_typeof(Xn.color.active).toString().toLowerCase()?new Hn({ahex:!Xn.window.alphaSupport&&Xn.color.active?Xn.color.active.substring(0,6)+"ff":Xn.color.active}):new Hn({ahex:!Xn.window.alphaSupport&&Xn.color.active.val("ahex")?Xn.color.active.val("ahex").substring(0,6)+"ff":Xn.color.active.val("ahex")}),current:"string"===_typeof(Xn.color.active).toString().toLowerCase()?new Hn({ahex:!Xn.window.alphaSupport&&Xn.color.active?Xn.color.active.substring(0,6)+"ff":Xn.color.active}):new Hn({ahex:!Xn.window.alphaSupport&&Xn.color.active.val("ahex")?Xn.color.active.val("ahex").substring(0,6)+"ff":Xn.color.active.val("ahex")}),quickList:Xn.color.quickList};"function"!=typeof zn&&(zn=null),"function"!=typeof Kn&&(Kn=null),"function"!=typeof $n&&($n=null);var tr=null,nr=null,rr=null,ir=null,or=null,ar=null,sr=null,lr=null,cr=null,ur=null,dr=null,hr=null,pr=null,gr=null,fr=null,Ar=null,mr=null,vr=null,yr=null,_r=null,br=null,wr=null,xr=null,Sr=null,Cr=null,kr=null,Br=null,Er=null;Tn.extend(!0,Wn,{commitCallback:zn,liveCallback:Kn,cancelCallback:$n,color:er,show:show,hide:hide,destroy:function destroy(){or.find("td.Radio input").unbind("click",radioClicked),br.unbind("click",currentClicked),xr.unbind("click",cancelClicked),wr.unbind("click",okClicked),Xn.window.expandable&&(Br.unbind("click",iconImageClicked),Er.unbind("mousedown",moveBarMouseDown),Wn.icon=null),or.find(".QuickColor").unbind("click",quickPickClicked),ar=null,sr=null,lr=null,cr=null,ur=null,dr=null,hr=null,pr=null,gr=null,fr=null,Ar=null,mr.destroy(),mr=null,vr.destroy(),vr=null,yr.destroy(),yr=null,_r=null,br=null,wr=null,xr=null,Sr=null,zn=null,$n=null,Kn=null,or.html("");for(var Tn=0;Tn<Gn.length;Tn++)Gn[Tn]===Wn&&(Gn.splice(Tn,1),Tn--)}}),Gn.push(Wn),setTimeout((function(){initialize.call(Wn)}),0)}))},Tn.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 Hn({ahex:"#ffcc00ff"}),quickList:[new Hn({h:360,s:33,v:100}),new Hn({h:360,s:66,v:100}),new Hn({h:360,s:100,v:100}),new Hn({h:360,s:100,v:75}),new Hn({h:360,s:100,v:50}),new Hn({h:180,s:0,v:100}),new Hn({h:30,s:33,v:100}),new Hn({h:30,s:66,v:100}),new Hn({h:30,s:100,v:100}),new Hn({h:30,s:100,v:75}),new Hn({h:30,s:100,v:50}),new Hn({h:180,s:0,v:90}),new Hn({h:60,s:33,v:100}),new Hn({h:60,s:66,v:100}),new Hn({h:60,s:100,v:100}),new Hn({h:60,s:100,v:75}),new Hn({h:60,s:100,v:50}),new Hn({h:180,s:0,v:80}),new Hn({h:90,s:33,v:100}),new Hn({h:90,s:66,v:100}),new Hn({h:90,s:100,v:100}),new Hn({h:90,s:100,v:75}),new Hn({h:90,s:100,v:50}),new Hn({h:180,s:0,v:70}),new Hn({h:120,s:33,v:100}),new Hn({h:120,s:66,v:100}),new Hn({h:120,s:100,v:100}),new Hn({h:120,s:100,v:75}),new Hn({h:120,s:100,v:50}),new Hn({h:180,s:0,v:60}),new Hn({h:150,s:33,v:100}),new Hn({h:150,s:66,v:100}),new Hn({h:150,s:100,v:100}),new Hn({h:150,s:100,v:75}),new Hn({h:150,s:100,v:50}),new Hn({h:180,s:0,v:50}),new Hn({h:180,s:33,v:100}),new Hn({h:180,s:66,v:100}),new Hn({h:180,s:100,v:100}),new Hn({h:180,s:100,v:75}),new Hn({h:180,s:100,v:50}),new Hn({h:180,s:0,v:40}),new Hn({h:210,s:33,v:100}),new Hn({h:210,s:66,v:100}),new Hn({h:210,s:100,v:100}),new Hn({h:210,s:100,v:75}),new Hn({h:210,s:100,v:50}),new Hn({h:180,s:0,v:30}),new Hn({h:240,s:33,v:100}),new Hn({h:240,s:66,v:100}),new Hn({h:240,s:100,v:100}),new Hn({h:240,s:100,v:75}),new Hn({h:240,s:100,v:50}),new Hn({h:180,s:0,v:20}),new Hn({h:270,s:33,v:100}),new Hn({h:270,s:66,v:100}),new Hn({h:270,s:100,v:100}),new Hn({h:270,s:100,v:75}),new Hn({h:270,s:100,v:50}),new Hn({h:180,s:0,v:10}),new Hn({h:300,s:33,v:100}),new Hn({h:300,s:66,v:100}),new Hn({h:300,s:100,v:100}),new Hn({h:300,s:100,v:75}),new Hn({h:300,s:100,v:50}),new Hn({h:180,s:0,v:0}),new Hn({h:330,s:33,v:100}),new Hn({h:330,s:66,v:100}),new Hn({h:330,s:100,v:100}),new Hn({h:330,s:100,v:75}),new Hn({h:330,s:100,v:50}),new Hn]},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)"}}}},Tn}].reduce((function(Tn,Un){return Un(Tn)}),jQuery),Mf=document.createElement("template");Mf.innerHTML='\n <style>\n @import "./components/jgraduate/css/jGraduate.css";\n @import "./components/jgraduate/css/jPicker.css";\n #logo {\n height: 22px;\n width: 22px;\n }\n #block {\n height: 22px;\n width: 22px;\n float: right;\n background-color: darkgrey;\n }\n #picker {\n background: #f0f0f0;\n height: 26px;\n line-height: 26px;\n border-radius: 3px;\n width: 52px;\n display: flex;\n align-items: center;\n margin-right: 4px;\n justify-content: space-evenly;\n }\n #color_picker {\n position: absolute;\n bottom: 40px;\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 Rf=function(Tn){_inherits(SeColorPicker,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SeColorPicker);function SeColorPicker(){var Tn;return _classCallCheck(this,SeColorPicker),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(Mf.content.cloneNode(!0)),Tn.$logo=Tn._shadowRoot.getElementById("logo"),Tn.$label=Tn._shadowRoot.getElementById("label"),Tn.$block=Tn._shadowRoot.getElementById("block"),Tn.paintBox=null,Tn.$picker=Tn._shadowRoot.getElementById("picker"),Tn.$color_picker=Tn._shadowRoot.getElementById("color_picker"),Tn}return _createClass(SeColorPicker,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn)switch(Tn){case"src":this.$logo.setAttribute("src",Dn);break;case"label":this.setAttribute("title",Dn);break;case"type":this.$label.setAttribute("title","Pick a ".concat(Dn," Paint and Opacity"));break;default:console.error("unknown attribute: ".concat(Tn))}}},{key:"update",value:function update(Tn,Un,Dn){var Qn=this.paintBox.update(Tn,Un);if(Qn&&Dn){var Hn=new CustomEvent("change",{detail:{paint:Qn}});this.dispatchEvent(Hn)}}},{key:"setPaint",value:function setPaint(Tn){this.paintBox.setPaint(Tn)}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this;this.paintBox=new Ff(this.$block,this.type);var Un=this.paintBox.paint;Uf(this.$picker).click((function(){Uf(Tn.$color_picker).draggable({cancel:".jGraduate_tabs, .jGraduate_colPick, .jGraduate_gradPick, .jPicker",containment:"window"}).jGraduate({images:{clientPath:"./components/jgraduate/images/"},paint:Un,window:{pickerTitle:Tn.label},newstop:"inverse"},(function(Dn){Un=new Uf.jGraduate.Paint(Dn),Tn.setPaint(Un);var Qn=new CustomEvent("change",{detail:{paint:Un}});Tn.dispatchEvent(Qn),Uf("#color_picker").hide()}),(function(){Uf("#color_picker").hide()}))}))}},{key:"label",get:function get(){return this.$label.getAttribute("title")},set:function set(Tn){this.setAttribute("label",Tn)}},{key:"type",get:function get(){return this.getAttribute("type")},set:function set(Tn){this.setAttribute("type",Tn)}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(Tn){this.setAttribute("src",Tn)}}],[{key:"observedAttributes",get:function get(){return["label","src","type"]}}]),SeColorPicker}();customElements.define("se-colorpicker",Rf);var Df=Symbol("previousBodyStyleOverflow"),jf=Symbol("previousDocumentMarginRight");function _templateObject$y(){var Tn=_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$y=function _templateObject(){return Tn},Tn}var Qf=Symbol("wrap"),Hf=Symbol("wrappingFocus");function FocusCaptureMixin(Tn){return function(Tn){_inherits(FocusCapture,Tn);var Un=_createSuper(FocusCapture);function FocusCapture(){return _classCallCheck(this,FocusCapture),Un.apply(this,arguments)}return _createClass(FocusCapture,[{key:Dd,value:function value(Tn){var Un=firstFocusableElement(this[Yd]);if(Un){var Dn=document.activeElement&&(document.activeElement===Un||document.activeElement.contains(Un)),Qn=this[Yd].activeElement,Hn=Qn&&(Qn===Un||deepContains(Qn,Un));(Dn||Hn)&&"Tab"===Tn.key&&Tn.shiftKey&&(this[Hf]=!0,this[Ud].focusCatcher.focus(),this[Hf]=!1)}return _get(_getPrototypeOf(FocusCapture.prototype),Dd,this)&&_get(_getPrototypeOf(FocusCapture.prototype),Dd,this).call(this,Tn)||!1}},{key:Vd,value:function value(Tn){var Un=this;_get(_getPrototypeOf(FocusCapture.prototype),Vd,this)&&_get(_getPrototypeOf(FocusCapture.prototype),Vd,this).call(this,Tn),this[bd]&&this[Ud].focusCatcher.addEventListener("focus",(function(){if(!Un[Hf]){var Tn=firstFocusableElement(Un[Yd]);Tn&&Tn.focus()}}))}},{key:Qf,value:function value(Tn){var Un=xh(_templateObject$y()),Dn=Un.getElementById("focusCaptureContainer");Dn&&(Tn.replaceWith(Un),Dn.append(Tn))}}]),FocusCapture}(Tn)}FocusCaptureMixin.wrap=Qf;var Gf=function(Tn){_inherits(ModalBackdrop,gp);var Un=_createSuper(ModalBackdrop);function ModalBackdrop(){var Tn;return _classCallCheck(this,ModalBackdrop),Tn=Un.call(this),"PointerEvent"in window||Tn.addEventListener("touchmove",(function(Tn){1===Tn.touches.length&&Tn.preventDefault()})),Tn}return ModalBackdrop}();function _templateObject$z(){var Tn=_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$z=function _templateObject(){return Tn},Tn}var Vf=function DialogModalityMixin(Tn){return function(Tn){_inherits(DialogModality,Tn);var Un=_createSuper(DialogModality);function DialogModality(){return _classCallCheck(this,DialogModality),Un.apply(this,arguments)}return _createClass(DialogModality,[{key:Dd,value:function value(Tn){var Un=!1;switch(Tn.key){case"Escape":this.close({canceled:"Escape"}),Un=!0}return Un||_get(_getPrototypeOf(DialogModality.prototype),Dd,this)&&_get(_getPrototypeOf(DialogModality.prototype),Dd,this).call(this,Tn)||!1}},{key:Vd,value:function value(Tn){if(_get(_getPrototypeOf(DialogModality.prototype),Vd,this)&&_get(_getPrototypeOf(DialogModality.prototype),Vd,this).call(this,Tn),Tn.opened)if(this[eh].opened&&document.documentElement){var Un=document.documentElement.clientWidth,Dn=window.innerWidth-Un;this[Df]=document.body.style.overflow,this[jf]=Dn>0?document.documentElement.style.marginRight:null,document.body.style.overflow="hidden",Dn>0&&(document.documentElement.style.marginRight="".concat(Dn,"px"))}else null!=this[Df]&&(document.body.style.overflow=this[Df],this[Df]=null),null!=this[jf]&&(document.documentElement.style.marginRight=this[jf],this[jf]=null);if(Tn.role){var Qn=this[eh].role;this.setAttribute("role",Qn)}}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(DialogModality.prototype),md,this)||{},{role:"dialog"})}},{key:"role",get:function get(){return _get(_getPrototypeOf(DialogModality.prototype),"role",this)},set:function set(Tn){_set(_getPrototypeOf(DialogModality.prototype),"role",Tn,this,!0),this[$d]||this[Xd]({role:Tn})}}]),DialogModality}(Tn)}(FocusCaptureMixin(KeyboardMixin(wp))),zf=function(Tn){_inherits(Dialog,Vf);var Un=_createSuper(Dialog);function Dialog(){return _classCallCheck(this,Dialog),Un.apply(this,arguments)}return _createClass(Dialog,[{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(Dialog.prototype),md,this),{backdropPartType:Gf,tabIndex:-1})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(Dialog.prototype),ph,this),Un=Tn.content.querySelector("#frame");return this[FocusCaptureMixin.wrap](Un),Tn.content.append(xh(_templateObject$z())),Tn}}]),Dialog}();function _templateObject$A(){var Tn=_taggedTemplateLiteral(["\n <style>\n :host {\n background: rgba(0, 0, 0, 0.2);\n }\n </style>\n "]);return _templateObject$A=function _templateObject(){return Tn},Tn}var Kf=function(Tn){_inherits(PlainModalBackdrop,Gf);var Un=_createSuper(PlainModalBackdrop);function PlainModalBackdrop(){return _classCallCheck(this,PlainModalBackdrop),Un.apply(this,arguments)}return _createClass(PlainModalBackdrop,[{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainModalBackdrop.prototype),ph,this);return Tn.content.append(xh(_templateObject$A())),Tn}}]),PlainModalBackdrop}();function PlainModalOverlayMixin(Tn){return function(Tn){_inherits(PlainModalOverlay,Tn);var Un=_createSuper(PlainModalOverlay);function PlainModalOverlay(){return _classCallCheck(this,PlainModalOverlay),Un.apply(this,arguments)}return _createClass(PlainModalOverlay,[{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainModalOverlay.prototype),md,this)||{},{backdropPartType:Kf,framePartType:Yp})}}]),PlainModalOverlay}(Tn)}var qf=function(Tn){_inherits(PlainDialog,PlainModalOverlayMixin(zf));var Un=_createSuper(PlainDialog);function PlainDialog(){return _classCallCheck(this,PlainDialog),Un.apply(this,arguments)}return PlainDialog}(),$f=function(Tn){_inherits(ElixDialog,qf);var Un=_createSuper(ElixDialog);function ElixDialog(){return _classCallCheck(this,ElixDialog),Un.apply(this,arguments)}return ElixDialog}();customElements.define("elix-dialog",$f);var Wf=di.some,Xf=arrayMethodIsStrict("some"),Yf=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!Xf||!Yf},{some:function some(Tn){return Wf(this,Tn,arguments.length>1?arguments[1]:void 0)}});
|
||
/**
|
||
* Namespaces or tools therefor.
|
||
* @module namespaces
|
||
* @license MIT
|
||
*/
|
||
var Jf,Zf={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/"},eA=function getReverseNS(){var Tn={};return Object.entries(Zf).forEach((function(Un){var Dn=_slicedToArray(Un,2),Qn=Dn[0],Hn=Dn[1];Tn[Hn]=Qn.toLowerCase()})),Tn},tA=["x","x1","cx","rx","width"],nA=["y","y1","cy","ry","height"],rA=["r","radius"].concat(tA,nA),iA={},oA=function getTypeMap(){return iA},aA=function shortFloat(Tn){var Un=Jf.getRoundDigits();return isNaN(Tn)?Array.isArray(Tn)?shortFloat(Tn[0])+","+shortFloat(Tn[1]):Number.parseFloat(Tn).toFixed(Un)-0:Number(Number(Tn).toFixed(Un))},sA=function convertUnit(Tn,Un){return Un=Un||Jf.getBaseUnit(),aA(Tn/iA[Un])},lA=function setUnitAttr(Tn,Un,Dn){Tn.setAttribute(Un,Dn)},cA=function convertToNum(Tn,Un){if(!isNaN(Un))return Un-0;if("%"===Un.substr(-1)){var Dn=Un.substr(0,Un.length-1)/100,Qn=Jf.getWidth(),Hn=Jf.getHeight();return tA.includes(Tn)?Dn*Qn:nA.includes(Tn)?Dn*Hn:Dn*Math.sqrt(Qn*Qn+Hn*Hn)/Math.sqrt(2)}var Gn=Un.substr(-2);return Un.substr(0,Un.length-2)*iA[Gn]},uA=function isValidUnit(Tn,Un,Dn){if(rA.includes(Tn))return!isNaN(Un)||(Un=Un.toLowerCase(),Object.keys(iA).some((function(Tn){return new RegExp("^-?[\\d\\.]+"+Tn+"$").test(Un)})));if("id"===Tn){var Qn=!1;try{var Hn=Jf.getElement(Un);Qn=!Hn||Hn===Dn}catch(Tn){}return Qn}return!0},dA=document.createElement("template");dA.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 hA=function(Tn){_inherits(SeImgPropDialog,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SeImgPropDialog);function SeImgPropDialog(){var Tn;return _classCallCheck(this,SeImgPropDialog),(Tn=Un.call(this)).eventlisten=!1,Tn._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(dA.content.cloneNode(!0)),Tn.$saveBtn=Tn._shadowRoot.querySelector("#tool_docprops_save"),Tn.$cancelBtn=Tn._shadowRoot.querySelector("#tool_docprops_cancel"),Tn.$resolution=Tn._shadowRoot.querySelector("#resolution"),Tn.$canvasTitle=Tn._shadowRoot.querySelector("#canvas_title"),Tn.$canvasWidth=Tn._shadowRoot.querySelector("#canvas_width"),Tn.$canvasHeight=Tn._shadowRoot.querySelector("#canvas_height"),Tn.$imageOptEmbed=Tn._shadowRoot.querySelector("#image_embed"),Tn.$imageOptRef=Tn._shadowRoot.querySelector("#image_ref"),Tn.$dialog=Tn._shadowRoot.querySelector("#svg_docprops"),Tn}return _createClass(SeImgPropDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn)switch(Tn){case"title":this.$canvasTitle.value=Dn;break;case"width":"fit"===Dn?(this.$canvasWidth.removeAttribute("disabled"),this.$canvasWidth.value=100,this.$canvasHeight.removeAttribute("disabled"),this.$canvasHeight.value=100):this.$canvasWidth.value=Dn;break;case"height":"fit"===Dn?(this.$canvasWidth.removeAttribute("disabled"),this.$canvasWidth.value=100,this.$canvasHeight.removeAttribute("disabled"),this.$canvasHeight.value=100):this.$canvasHeight.value=Dn;break;case"dialog":this.eventlisten&&("open"===Dn?this.$dialog.open():this.$dialog.close());break;case"save":"ref"===Dn?(this.$imageOptEmbed.setAttribute("checked",!1),this.$imageOptRef.setAttribute("checked",!0)):(this.$imageOptEmbed.setAttribute("checked",!0),this.$imageOptRef.setAttribute("checked",!1));break;case"embed":if(Dn.includes("one")){var Qn=Dn.split("|");Qn.length>1&&(this._shadowRoot.querySelector("#image_opt_embed").setAttribute("title",Qn[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,Tn,Un,Dn)}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=function onCancelHandler(Un){var Dn=new CustomEvent("change",{detail:{dialog:"closed"}});Tn.$canvasWidth.removeAttribute("disabled"),Tn.$canvasHeight.removeAttribute("disabled"),Tn.$resolution.selectedIndex=0,Tn.dispatchEvent(Dn)};this.$resolution.addEventListener("change",(function onChangeHandler(Un){if(Un.target.selectedIndex)if("content"===Un.target.value)Tn.$canvasWidth.setAttribute("disabled","disabled"),Tn.$canvasWidth.value="fit",Tn.$canvasHeight.setAttribute("disabled","disabled"),Tn.$canvasHeight.value="fit";else{var Dn=Un.target.value.split("x");Tn.$canvasWidth.value=Dn[0],Tn.$canvasWidth.removeAttribute("disabled"),Tn.$canvasHeight.value=Dn[1],Tn.$canvasHeight.removeAttribute("disabled")}else"fit"===Tn.$canvasWidth.getAttribute("value")&&(Tn.$canvasWidth.removeAttribute("disabled"),Tn.$canvasWidth.value=100,Tn.$canvasHeight.removeAttribute("disabled"),Tn.$canvasHeight.value=100)})),this.$saveBtn.addEventListener("click",(function onSaveHandler(Un){var Dn="",Qn=Tn.$canvasWidth.value,Hn=Tn.$canvasHeight.value;"fit"===Qn||uA("width",Qn)?Tn.$canvasWidth.parentElement.classList.remove("error"):Tn.$canvasWidth.parentElement.classList.add("error"),"fit"===Hn||uA("height",Qn)?Tn.$canvasHeight.parentElement.classList.remove("error"):Tn.$canvasHeight.parentElement.classList.add("error"),"true"===Tn.$imageOptEmbed.getAttribute("checked")&&(Dn="embed"),"true"===Tn.$imageOptRef.getAttribute("checked")&&(Dn="ref");var Gn=new CustomEvent("change",{detail:{title:Tn.$canvasTitle.value,w:Tn.$canvasWidth.value,h:Tn.$canvasHeight.value,save:Dn,dialog:"close"}});Tn.$canvasWidth.removeAttribute("disabled"),Tn.$canvasHeight.removeAttribute("disabled"),Tn.$resolution.selectedIndex=0,Tn.dispatchEvent(Gn)})),this.$cancelBtn.addEventListener("click",Un),this.$dialog.addEventListener("close",Un),this.eventlisten=!0}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(Tn){this.setAttribute("title",Tn)}},{key:"width",get:function get(){return this.getAttribute("width")},set:function set(Tn){this.setAttribute("width",Tn)}},{key:"height",get:function get(){return this.getAttribute("height")},set:function set(Tn){this.setAttribute("height",Tn)}},{key:"save",get:function get(){return this.getAttribute("save")},set:function set(Tn){this.setAttribute("save",Tn)}},{key:"dialog",get:function get(){return this.getAttribute("dialog")},set:function set(Tn){this.setAttribute("dialog",Tn)}},{key:"embed",get:function get(){return this.getAttribute("embed")},set:function set(Tn){this.setAttribute("embed",Tn)}}],[{key:"observedAttributes",get:function get(){return["title","width","height","save","dialog","embed"]}}]),SeImgPropDialog}();customElements.define("se-img-prop-dialog",hA);var pA=document.createElement("template");pA.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 }\n \n #change_background div.cur_background {\n border: 2px solid blue;\n padding: 18px;\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 gA=function(Tn){_inherits(SeEditPrefsDialog,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SeEditPrefsDialog);function SeEditPrefsDialog(){var Tn;return _classCallCheck(this,SeEditPrefsDialog),(Tn=Un.call(this)).colorBlocks=["#FFF","#888","#000","chessboard"],Tn._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(pA.content.cloneNode(!0)),Tn.$dialog=Tn._shadowRoot.querySelector("#svg_prefs"),Tn.$saveBtn=Tn._shadowRoot.querySelector("#tool_prefs_save"),Tn.$cancelBtn=Tn._shadowRoot.querySelector("#tool_prefs_cancel"),Tn.$langSelect=Tn._shadowRoot.querySelector("#lang_select"),Tn.$iconSize=Tn._shadowRoot.querySelector("#iconsize"),Tn.$bgBlocks=Tn._shadowRoot.querySelector("#bg_blocks"),Tn.$bgURL=Tn._shadowRoot.querySelector("#canvas_bg_url"),Tn.$gridSnappingOn=Tn._shadowRoot.querySelector("#grid_snapping_on"),Tn.$gridSnappingStep=Tn._shadowRoot.querySelector("#grid_snapping_step"),Tn.$gridColor=Tn._shadowRoot.querySelector("#grid_color"),Tn.$showRulers=Tn._shadowRoot.querySelector("#show_rulers"),Tn.$baseUnit=Tn._shadowRoot.querySelector("#base_unit"),Tn}return _createClass(SeEditPrefsDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn){var Qn=this.$bgBlocks.querySelectorAll("div"),Hn="cur_background";switch(Tn){case"dialog":"open"===Dn?this.$dialog.open():this.$dialog.close();break;case"lang":this.$langSelect.value=Dn;break;case"iconsize":this.$iconSize.value=Dn;break;case"canvasbg":Dn?Qn.forEach((function(Tn){Tn.dataset.bgColor===Dn?Tn.classList.add(Hn):Tn.classList.remove(Hn)})):Qn.length>0&&Qn[0].classList.add(Hn);break;case"bgurl":this.$bgURL.value=Dn;break;case"gridsnappingon":"true"===Dn?this.$gridSnappingOn.checked=!0:"false"===Dn&&(this.$gridSnappingOn.checked=!1);break;case"gridsnappingstep":this.$gridSnappingStep.value=Dn;break;case"gridcolor":this.$gridColor.value=Dn;break;case"showrulers":"true"===Dn?this.$showRulers.checked=!0:"false"===Dn&&(this.$showRulers.checked=!1);break;case"baseunit":this.$baseUnit.value=Dn;break;default:_get(_getPrototypeOf(SeEditPrefsDialog.prototype),"attributeChangedCallback",this).call(this,Tn,Un,Dn)}}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=function onCancelHandler(Un){var Dn=new CustomEvent("change",{detail:{dialog:"closed"}});Tn.dispatchEvent(Dn)},Dn=this;this.colorBlocks.forEach((function(Tn,Un){var Qn=document.createElement("div");"chessboard"===Tn?(Qn.dataset.bgColor=Tn,Qn.style.backgroundImage="url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjGgq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7)",Qn.classList.add("color_block")):(Qn.dataset.bgColor=Tn,Qn.style.backgroundColor=Tn,Qn.classList.add("color_block")),Dn.$bgBlocks.append(Qn)}));var Qn=this.$bgBlocks.querySelectorAll("div"),Hn="cur_background";Qn.forEach((function(Tn){Tn.addEventListener("click",(function(){Qn.forEach((function(Tn){return Tn.classList.remove(Hn)})),Tn.classList.add(Hn)}))})),this.$saveBtn.addEventListener("click",(function onSaveHandler(Un){var Dn=Tn.$bgBlocks.querySelector(".cur_background").dataset.bgColor||"#FFF",Qn=new CustomEvent("change",{detail:{lang:Tn.$langSelect.value,dialog:"close",iconsize:Tn.$iconSize.value,bgcolor:Dn,bgurl:Tn.$bgURL.value,gridsnappingon:Tn.$gridSnappingOn.checked,gridsnappingstep:Tn.$gridSnappingStep.value,showrulers:Tn.$showRulers.checked,baseunit:Tn.$baseUnit.value}});Tn.dispatchEvent(Qn)})),this.$cancelBtn.addEventListener("click",Un),this.$dialog.addEventListener("close",Un)}},{key:"lang",get:function get(){return this.getAttribute("lang")},set:function set(Tn){this.setAttribute("lang",Tn)}},{key:"iconsize",get:function get(){return this.getAttribute("iconsize")},set:function set(Tn){this.setAttribute("iconsize",Tn)}},{key:"canvasbg",get:function get(){return this.getAttribute("canvasbg")},set:function set(Tn){this.setAttribute("canvasbg",Tn)}},{key:"bgurl",get:function get(){return this.getAttribute("bgurl")},set:function set(Tn){this.setAttribute("bgurl",Tn)}},{key:"dialog",get:function get(){return this.getAttribute("dialog")},set:function set(Tn){this.setAttribute("dialog",Tn)}},{key:"gridsnappingon",get:function get(){return this.getAttribute("gridsnappingon")},set:function set(Tn){this.setAttribute("gridsnappingon",Tn)}},{key:"gridsnappingstep",get:function get(){return this.getAttribute("gridsnappingstep")},set:function set(Tn){this.setAttribute("gridsnappingstep",Tn)}},{key:"gridcolor",get:function get(){return this.getAttribute("gridcolor")},set:function set(Tn){this.setAttribute("gridcolor",Tn)}},{key:"showrulers",get:function get(){return this.getAttribute("showrulers")},set:function set(Tn){this.setAttribute("showrulers",Tn)}},{key:"baseunit",get:function get(){return this.getAttribute("baseunit")},set:function set(Tn){this.setAttribute("baseunit",Tn)}}],[{key:"observedAttributes",get:function get(){return["dialog","lang","iconsize","canvasbg","bgurl","gridsnappingon","gridsnappingstep","gridcolor","showrulers","baseunit"]}}]),SeEditPrefsDialog}();customElements.define("se-edit-prefs-dialog",gA);var fA=document.createElement("template");fA.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 AA=function(Tn){_inherits(SeSvgSourceEditorDialog,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SeSvgSourceEditorDialog);function SeSvgSourceEditorDialog(){var Tn;return _classCallCheck(this,SeSvgSourceEditorDialog),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(fA.content.cloneNode(!0)),Tn.$dialog=Tn._shadowRoot.querySelector("#svg_source_editor"),Tn.$copyBtn=Tn._shadowRoot.querySelector("#copy_save_done"),Tn.$saveBtn=Tn._shadowRoot.querySelector("#tool_source_save"),Tn.$cancelBtn=Tn._shadowRoot.querySelector("#tool_source_cancel"),Tn.$sourceTxt=Tn._shadowRoot.querySelector("#svg_source_textarea"),Tn.$copySec=Tn._shadowRoot.querySelector("#save_output_btns"),Tn.$applySec=Tn._shadowRoot.querySelector("#tool_source_back"),Tn}return _createClass(SeSvgSourceEditorDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn)switch(Tn){case"dialog":"open"===Dn?(this.$sourceTxt.focus(),this.$dialog.open()):(this.$dialog.close(),this.$sourceTxt.blur());break;case"applysec":this.$applySec.style.display="false"===Dn?"none":"block";break;case"copysec":this.$copySec.style.display="false"===Dn?"none":"block";break;case"value":this.$sourceTxt.value=Dn;break;default:_get(_getPrototypeOf(SeSvgSourceEditorDialog.prototype),"attributeChangedCallback",this).call(this,Tn,Un,Dn)}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=function onCancelHandler(Un){var Dn=new CustomEvent("change",{detail:{dialog:"closed"}});Tn.dispatchEvent(Dn)};this.$copyBtn.addEventListener("click",(function onCopyHandler(Un){var Dn=new CustomEvent("change",{detail:{copy:"click",value:Tn.$sourceTxt.value}});Tn.dispatchEvent(Dn)})),this.$saveBtn.addEventListener("click",(function onSaveHandler(Un){var Dn=new CustomEvent("change",{detail:{value:Tn.$sourceTxt.value,dialog:"close"}});Tn.dispatchEvent(Dn)})),this.$cancelBtn.addEventListener("click",Un),this.$dialog.addEventListener("close",Un)}},{key:"dialog",get:function get(){return this.getAttribute("dialog")},set:function set(Tn){this.setAttribute("dialog",Tn)}},{key:"value",get:function get(){return this.getAttribute("value")},set:function set(Tn){this.setAttribute("value",Tn)}},{key:"applysec",get:function get(){return this.getAttribute("applysec")},set:function set(Tn){this.setAttribute("applysec",Tn)}},{key:"copysec",get:function get(){return this.getAttribute("copysec")},set:function set(Tn){this.setAttribute("copysec",Tn)}}],[{key:"observedAttributes",get:function get(){return["dialog","value","applysec","copysec"]}}]),SeSvgSourceEditorDialog}();customElements.define("se-svg-source-editor-dialog",AA);var mA=document.createElement("template");mA.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 vA=function(Tn){_inherits(SeCMenuDialog,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SeCMenuDialog);function SeCMenuDialog(){var Tn;return _classCallCheck(this,SeCMenuDialog),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(mA.content.cloneNode(!0)),Tn._workarea=document.getElementById("workarea"),Tn.$dialog=Tn._shadowRoot.querySelector("#cmenu_canvas"),Tn.$copyLink=Tn._shadowRoot.querySelector("#se-copy"),Tn.$cutLink=Tn._shadowRoot.querySelector("#se-cut"),Tn.$pasteLink=Tn._shadowRoot.querySelector("#se-paste"),Tn.$pasteInPlaceLink=Tn._shadowRoot.querySelector("#se-paste-in-place"),Tn.$deleteLink=Tn._shadowRoot.querySelector("#se-delete"),Tn.$groupLink=Tn._shadowRoot.querySelector("#se-group"),Tn.$ungroupLink=Tn._shadowRoot.querySelector("#se-ungroup"),Tn.$moveFrontLink=Tn._shadowRoot.querySelector("#se-move-front"),Tn.$moveUpLink=Tn._shadowRoot.querySelector("#se-move-up"),Tn.$moveDownLink=Tn._shadowRoot.querySelector("#se-move-down"),Tn.$moveBackLink=Tn._shadowRoot.querySelector("#se-move-back"),Tn}return _createClass(SeCMenuDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){var Qn=this._shadowRoot;switch(Tn){case"disableallmenu":if("true"===Dn)Qn.querySelectorAll("li").forEach((function(Tn){Tn.classList.add("disabled")}));break;case"enablemenuitems":Dn.split(",").forEach((function(Tn){Qn.querySelector('a[href*="'+Tn+'"]').parentElement.classList.remove("disabled")}));break;case"disablemenuitems":Dn.split(",").forEach((function(Tn){Qn.querySelector('a[href*="'+Tn+'"]').parentElement.classList.add("disabled")}))}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=this,Dn=function onMenuClickHandler(Un,Dn){var Qn=new CustomEvent("change",{detail:{trigger:Dn}});Tn.dispatchEvent(Qn)};this._workarea.addEventListener("contextmenu",(function onMenuOpenHandler(Tn){Tn.preventDefault(),Un.$dialog.style.top=Tn.pageY+"px",Un.$dialog.style.left=Tn.pageX+"px",Un.$dialog.style.display="block"})),this._workarea.addEventListener("mousedown",(function onMenuCloseHandler(Tn){2!==Tn.button&&(Un.$dialog.style.display="none")})),this.$cutLink.addEventListener("click",(function(Tn){return Dn(0,"cut")})),this.$copyLink.addEventListener("click",(function(Tn){return Dn(0,"copy")})),this.$pasteLink.addEventListener("click",(function(Tn){return Dn(0,"paste")})),this.$pasteInPlaceLink.addEventListener("click",(function(Tn){return Dn(0,"paste_in_place")})),this.$deleteLink.addEventListener("click",(function(Tn){return Dn(0,"delete")})),this.$groupLink.addEventListener("click",(function(Tn){return Dn(0,"group")})),this.$ungroupLink.addEventListener("click",(function(Tn){return Dn(0,"ungroup")})),this.$moveFrontLink.addEventListener("click",(function(Tn){return Dn(0,"move_front")})),this.$moveUpLink.addEventListener("click",(function(Tn){return Dn(0,"move_up")})),this.$moveDownLink.addEventListener("click",(function(Tn){return Dn(0,"move_down")})),this.$moveBackLink.addEventListener("click",(function(Tn){return Dn(0,"move_back")}))}},{key:"disableallmenu",get:function get(){return this.getAttribute("disableallmenu")},set:function set(Tn){this.setAttribute("disableallmenu",Tn)}},{key:"enablemenuitems",get:function get(){return this.getAttribute("enablemenuitems")},set:function set(Tn){this.setAttribute("enablemenuitems",Tn)}},{key:"disablemenuitems",get:function get(){return this.getAttribute("disablemenuitems")},set:function set(Tn){this.setAttribute("disablemenuitems",Tn)}}],[{key:"observedAttributes",get:function get(){return["disableallmenu","enablemenuitems","disablemenuitems"]}}]),SeCMenuDialog}();customElements.define("se-cmenu_canvas-dialog",vA);var yA=document.createElement("template");yA.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 _A=function(Tn){_inherits(SeCMenuLayerDialog,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SeCMenuLayerDialog);function SeCMenuLayerDialog(){var Tn;return _classCallCheck(this,SeCMenuLayerDialog),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn._shadowRoot.appendChild(yA.content.cloneNode(!0)),Tn.source="",Tn._workarea=void 0,Tn.$sidePanels=document.getElementById("sidepanels"),Tn.$dialog=Tn._shadowRoot.querySelector("#cmenu_layers"),Tn.$duplicateLink=Tn._shadowRoot.querySelector("#se-dupe"),Tn.$deleteLink=Tn._shadowRoot.querySelector("#se-layer-delete"),Tn.$mergeDownLink=Tn._shadowRoot.querySelector("#se-merge-down"),Tn.$mergeAllLink=Tn._shadowRoot.querySelector("#se-merge-all"),Tn}return _createClass(SeCMenuLayerDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){if(Un!==Dn)switch(Tn){case"value":this.source=Dn,""!==Dn&&void 0!==Dn&&(this._workarea=document.getElementById(this.source))}}},{key:"connectedCallback",value:function connectedCallback(){var Tn=this,Un=this,Dn=function onMenuOpenHandler(Tn){Tn.preventDefault(),Un.$dialog.style.top=Tn.pageY+"px",Un.$dialog.style.left=Tn.pageX+"px",Un.$dialog.style.display="block"},Qn=function onMenuCloseHandler(Tn){2!==Tn.button&&(Un.$dialog.style.display="none")},Hn=function onMenuClickHandler(Dn,Qn,Hn){var Gn=new CustomEvent("change",{detail:{trigger:Qn,source:Hn}});Tn.dispatchEvent(Gn),Un.$dialog.style.display="none"};void 0!==this._workarea&&(this._workarea.addEventListener("contextmenu",Dn),"true"===this.getAttribute("leftclick")&&this._workarea.addEventListener("click",Dn),this._workarea.addEventListener("mousedown",Qn),this.$sidePanels.addEventListener("mousedown",Qn)),this.$duplicateLink.addEventListener("click",(function(Un){return Hn(0,"dupe",Tn.source)})),this.$deleteLink.addEventListener("click",(function(Un){return Hn(0,"delete",Tn.source)})),this.$mergeDownLink.addEventListener("click",(function(Un){return Hn(0,"merge_down",Tn.source)})),this.$mergeAllLink.addEventListener("click",(function(Un){return Hn(0,"merge_all",Tn.source)}))}},{key:"value",get:function get(){return this.getAttribute("value")},set:function set(Tn){this.setAttribute("value",Tn)}},{key:"leftclick",get:function get(){return this.getAttribute("leftclick")},set:function set(Tn){this.setAttribute("leftclick",Tn)}}],[{key:"observedAttributes",get:function get(){return["value","leftclick"]}}]),SeCMenuLayerDialog}();function _templateObject$B(){var Tn=_taggedTemplateLiteral(['\n <div id="alertDialogContent">\n <slot></slot>\n <div id="choiceButtonContainer" part="choice-button-container"></div>\n </div>\n ']);return _templateObject$B=function _templateObject(){return Tn},Tn}customElements.define("se-cmenu-layers",_A);var wA=function(Tn){_inherits(AlertDialog,zf);var Un=_createSuper(AlertDialog);function AlertDialog(){return _classCallCheck(this,AlertDialog),Un.apply(this,arguments)}return _createClass(AlertDialog,[{key:Dd,value:function value(Tn){var Un=!1,Dn=1===Tn.key.length&&Tn.key.toLowerCase();if(Dn){var Qn=this.choices.find((function(Tn){return Tn[0].toLowerCase()===Dn}));Qn&&(this.close({choice:Qn}),Un=!0)}return Un||_get(_getPrototypeOf(AlertDialog.prototype),Dd,this)&&_get(_getPrototypeOf(AlertDialog.prototype),Dd,this).call(this,Tn)||!1}},{key:Vd,value:function value(Tn){var Un=this;_get(_getPrototypeOf(AlertDialog.prototype),Vd,this).call(this,Tn),this[bd]&&this[Ud].choiceButtonContainer.addEventListener("click",function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn){var Dn,Qn;return regeneratorRuntime.wrap((function _callee$(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:if(!((Dn=Tn.target)instanceof HTMLElement)){Hn.next=7;break}return Qn=Dn.textContent,Un[Gd]=!0,Hn.next=6,Un.close({choice:Qn});case 6:Un[Gd]=!1;case 7:case"end":return Hn.stop()}}),_callee)})));return function(Un){return Tn.apply(this,arguments)}}()),Tn.choiceButtons&&updateChildNodes(this[Ud].choiceButtonContainer,this[eh].choiceButtons)}},{key:th,value:function value(Tn,Un){var Dn=_get(_getPrototypeOf(AlertDialog.prototype),th,this).call(this,Tn,Un);if(Un.choiceButtonPartType||Un.choices){var Qn=Tn.choices.map((function(Un){var Dn=createElement(Tn.choiceButtonPartType);return"part"in Dn&&(Dn.part="choice-button"),Dn.textContent=Un,Dn}));Object.freeze(Qn),Object.assign(Dn,{choiceButtons:Qn})}return Dn}},{key:"choiceButtons",get:function get(){return this[eh].choiceButtons}},{key:"choiceButtonPartType",get:function get(){return this[eh].choiceButtonPartType},set:function set(Tn){this[Xd]({choiceButtonPartType:Tn})}},{key:"choices",get:function get(){return this[eh].choices},set:function set(Tn){this[Xd]({choices:Tn})}},{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(AlertDialog.prototype),md,this),{choiceButtonPartType:"button",choiceButtons:[],choices:["OK"]})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(AlertDialog.prototype),ph,this),Un=Tn.content.querySelector("slot:not([name])");return Un&&Un.replaceWith(xh(_templateObject$B())),Tn}}]),AlertDialog}();function _templateObject$C(){var Tn=_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$C=function _templateObject(){return Tn},Tn}var xA=function(Tn){_inherits(PlainAlertDialog,PlainModalOverlayMixin(wA));var Un=_createSuper(PlainAlertDialog);function PlainAlertDialog(){return _classCallCheck(this,PlainAlertDialog),Un.apply(this,arguments)}return _createClass(PlainAlertDialog,[{key:md,get:function get(){return Object.assign(_get(_getPrototypeOf(PlainAlertDialog.prototype),md,this),{choiceButtonPartType:$g})}},{key:ph,get:function get(){var Tn=_get(_getPrototypeOf(PlainAlertDialog.prototype),ph,this);return Tn.content.append(xh(_templateObject$C())),Tn}}]),PlainAlertDialog}(),SA=function(Tn){_inherits(ElixAlertDialog,xA);var Un=_createSuper(ElixAlertDialog);function ElixAlertDialog(){return _classCallCheck(this,ElixAlertDialog),Un.apply(this,arguments)}return ElixAlertDialog}();customElements.define("elix-alert-dialog",SA);var CA=new SA,kA=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn,Un){var Dn;return regeneratorRuntime.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return CA.textContent=Tn,CA.choices=Un,CA.open(),Qn.next=5,CA.whenClosed();case 5:return Dn=Qn.sent,Qn.abrupt("return",Dn.choice);case 7:case"end":return Qn.stop()}}),_callee)})));return function seSelect(Un,Dn){return Tn.apply(this,arguments)}}();window.seSelect=kA;var BA=new SA,EA=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn,Un){var Dn;return regeneratorRuntime.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return BA.textContent=Tn,BA.choices=void 0===Un?["Ok","Cancel"]:Un,BA.open(),Qn.next=5,BA.whenClosed();case 5:return Dn=Qn.sent,Qn.abrupt("return",Dn.choice);case 7:case"end":return Qn.stop()}}),_callee)})));return function seConfirm(Un,Dn){return Tn.apply(this,arguments)}}();window.seConfirm=EA;var PA=function(Tn){_inherits(SePromptDialog,_wrapNativeSuper(HTMLElement));var Un=_createSuper(SePromptDialog);function SePromptDialog(){var Tn;return _classCallCheck(this,SePromptDialog),(Tn=Un.call(this))._shadowRoot=Tn.attachShadow({mode:"open"}),Tn.dialog=new SA,Tn}return _createClass(SePromptDialog,[{key:"attributeChangedCallback",value:function attributeChangedCallback(Tn,Un,Dn){switch(Tn){case"title":this.dialog.opened&&this.dialog.close(),this.dialog.textContent=Dn,this.dialog.choices=["Cancel"],this.dialog.open();break;case"close":this.dialog.opened&&this.dialog.close();break;default:console.error("unkonw attr for:",Tn,"newValue =",Dn)}}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(Tn){this.setAttribute("title",Tn)}},{key:"close",get:function get(){return this.getAttribute("close")},set:function set(Tn){this.setAttribute("close",Tn)}}],[{key:"observedAttributes",get:function get(){return["title","close"]}}]),SePromptDialog}();customElements.define("se-prompt-dialog",PA);var LA=new SA;window.seAlert=function seAlert(Tn){LA.textContent=Tn,LA.choices=["Ok"],LA.open()};var TA=ms.values;function touchHandler(Tn){var Un=Tn.changedTouches,Dn=Un[0],Qn="";switch(Tn.type){case"touchstart":Qn="mousedown";break;case"touchmove":Qn="mousemove";break;case"touchend":Qn="mouseup";break;default:return}var Hn=Dn.screenX,Gn=Dn.screenY,Vn=Dn.clientX,zn=Dn.clientY,Kn=new MouseEvent(Qn,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:Hn,screenY:Gn,clientX:Vn,clientY:zn,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});Un.length<2&&(Dn.target.dispatchEvent(Kn),Tn.preventDefault())}_export({target:"Object",stat:!0},{values:function values(Tn){return TA(Tn)}}),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(Tn,Un,Dn){this.pathSegType=Tn,this.pathSegTypeAsLetter=Un,this._owningPathSegList=Dn},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(Tn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",Tn)},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(Tn,Un,Dn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",Tn),this._x=Un,this._y=Dn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(Tn,Un,Dn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",Tn),this._x=Un,this._y=Dn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(Tn,Un,Dn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",Tn),this._x=Un,this._y=Dn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(Tn,Un,Dn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",Tn),this._x=Un,this._y=Dn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(Tn,Un,Dn,Qn,Hn,Gn,Vn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",Tn),this._x=Un,this._y=Dn,this._x1=Qn,this._y1=Hn,this._x2=Gn,this._y2=Vn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(Tn,Un,Dn,Qn,Hn,Gn,Vn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",Tn),this._x=Un,this._y=Dn,this._x1=Qn,this._y1=Hn,this._x2=Gn,this._y2=Vn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(Tn,Un,Dn,Qn,Hn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",Tn),this._x=Un,this._y=Dn,this._x1=Qn,this._y1=Hn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(Tn,Un,Dn,Qn,Hn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",Tn),this._x=Un,this._y=Dn,this._x1=Qn,this._y1=Hn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function get(){return this._x1},set:function set(Tn){this._x1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function get(){return this._y1},set:function set(Tn){this._y1=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",Tn),this._x=Un,this._y=Dn,this._r1=Qn,this._r2=Hn,this._angle=Gn,this._largeArcFlag=Vn,this._sweepFlag=zn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function get(){return this._r1},set:function set(Tn){this._r1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function get(){return this._r2},set:function set(Tn){this._r2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function get(){return this._angle},set:function set(Tn){this._angle=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function get(){return this._largeArcFlag},set:function set(Tn){this._largeArcFlag=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function get(){return this._sweepFlag},set:function set(Tn){this._sweepFlag=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",Tn),this._x=Un,this._y=Dn,this._r1=Qn,this._r2=Hn,this._angle=Gn,this._largeArcFlag=Vn,this._sweepFlag=zn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function get(){return this._r1},set:function set(Tn){this._r1=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function get(){return this._r2},set:function set(Tn){this._r2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function get(){return this._angle},set:function set(Tn){this._angle=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function get(){return this._largeArcFlag},set:function set(Tn){this._largeArcFlag=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function get(){return this._sweepFlag},set:function set(Tn){this._sweepFlag=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(Tn,Un){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",Tn),this._x=Un},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(Tn,Un){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",Tn),this._x=Un},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(Tn,Un){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",Tn),this._y=Un},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(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(Tn,Un){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",Tn),this._y=Un},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(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(Tn,Un,Dn,Qn,Hn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",Tn),this._x=Un,this._y=Dn,this._x2=Qn,this._y2=Hn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(Tn,Un,Dn,Qn,Hn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",Tn),this._x=Un,this._y=Dn,this._x2=Qn,this._y2=Hn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function get(){return this._x2},set:function set(Tn){this._x2=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function get(){return this._y2},set:function set(Tn){this._y2=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(Tn,Un,Dn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",Tn),this._x=Un,this._y=Dn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(Tn,Un,Dn){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",Tn),this._x=Un,this._y=Dn},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(Tn){this._x=Tn,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function get(){return this._y},set:function set(Tn){this._y=Tn,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(Tn,Un){return new window.SVGPathSegMovetoAbs(void 0,Tn,Un)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(Tn,Un){return new window.SVGPathSegMovetoRel(void 0,Tn,Un)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(Tn,Un){return new window.SVGPathSegLinetoAbs(void 0,Tn,Un)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(Tn,Un){return new window.SVGPathSegLinetoRel(void 0,Tn,Un)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(Tn,Un,Dn,Qn,Hn,Gn){return new window.SVGPathSegCurvetoCubicAbs(void 0,Tn,Un,Dn,Qn,Hn,Gn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(Tn,Un,Dn,Qn,Hn,Gn){return new window.SVGPathSegCurvetoCubicRel(void 0,Tn,Un,Dn,Qn,Hn,Gn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(Tn,Un,Dn,Qn){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,Tn,Un,Dn,Qn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(Tn,Un,Dn,Qn){return new window.SVGPathSegCurvetoQuadraticRel(void 0,Tn,Un,Dn,Qn)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(Tn,Un,Dn,Qn,Hn,Gn,Vn){return new window.SVGPathSegArcAbs(void 0,Tn,Un,Dn,Qn,Hn,Gn,Vn)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(Tn,Un,Dn,Qn,Hn,Gn,Vn){return new window.SVGPathSegArcRel(void 0,Tn,Un,Dn,Qn,Hn,Gn,Vn)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(Tn){return new window.SVGPathSegLinetoHorizontalAbs(void 0,Tn)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(Tn){return new window.SVGPathSegLinetoHorizontalRel(void 0,Tn)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(Tn){return new window.SVGPathSegLinetoVerticalAbs(void 0,Tn)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(Tn){return new window.SVGPathSegLinetoVerticalRel(void 0,Tn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(Tn,Un,Dn,Qn){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,Tn,Un,Dn,Qn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(Tn,Un,Dn,Qn){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,Tn,Un,Dn,Qn)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(Tn,Un){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,Tn,Un)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(Tn,Un){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,Tn,Un)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(Tn){if(void 0===Tn||!isFinite(Tn))throw"Invalid arguments.";var Un=document.createElementNS("http://www.w3.org/2000/svg","path");Un.setAttribute("d",this.getAttribute("d"));var Dn=Un.pathSegList.numberOfItems-1;if(Dn<=0)return 0;do{if(Un.pathSegList.removeItem(Dn),Tn>Un.getTotalLength())break;Dn--}while(Dn>0);return Dn})),"SVGPathSegList"in window&&"appendItem"in window.SVGPathSegList.prototype||(window.SVGPathSegList=function(Tn){this._pathElement=Tn,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(Tn){if(this._pathElement){var Un=!1;Tn.forEach((function(Tn){"d"==Tn.attributeName&&(Un=!0)})),Un&&(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(Tn){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach((function(Tn){Tn._owningPathSegList=null})),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(Tn){return this._checkPathSynchronizedToList(),this._list=[Tn],Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList.prototype._checkValidIndex=function(Tn){if(isNaN(Tn)||Tn<0||Tn>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(Tn){return this._checkPathSynchronizedToList(),this._checkValidIndex(Tn),this._list[Tn]},window.SVGPathSegList.prototype.insertItemBefore=function(Tn,Un){return this._checkPathSynchronizedToList(),Un>this.numberOfItems&&(Un=this.numberOfItems),Tn._owningPathSegList&&(Tn=Tn.clone()),this._list.splice(Un,0,Tn),Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList.prototype.replaceItem=function(Tn,Un){return this._checkPathSynchronizedToList(),Tn._owningPathSegList&&(Tn=Tn.clone()),this._checkValidIndex(Un),this._list[Un]=Tn,Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList.prototype.removeItem=function(Tn){this._checkPathSynchronizedToList(),this._checkValidIndex(Tn);var Un=this._list[Tn];return this._list.splice(Tn,1),this._writeListToPath(),Un},window.SVGPathSegList.prototype.appendItem=function(Tn){return this._checkPathSynchronizedToList(),Tn._owningPathSegList&&(Tn=Tn.clone()),this._list.push(Tn),Tn._owningPathSegList=this,this._writeListToPath(),Tn},window.SVGPathSegList._pathSegArrayAsString=function(Tn){var Un="",Dn=!0;return Tn.forEach((function(Tn){Dn?(Dn=!1,Un+=Tn._asPathString()):Un+=" "+Tn._asPathString()})),Un},window.SVGPathSegList.prototype._parsePath=function(Tn){if(!Tn||0==Tn.length)return[];var Un=this,Dn=function Builder(){this.pathSegList=[]};Dn.prototype.appendSegment=function(Tn){this.pathSegList.push(Tn)};var Qn=function Source(Tn){this._string=Tn,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};Qn.prototype._isCurrentSpace=function(){var Tn=this._string[this._currentIndex];return Tn<=" "&&(" "==Tn||"\n"==Tn||"\t"==Tn||"\r"==Tn||"\f"==Tn)},Qn.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},Qn.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)},Qn.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},Qn.prototype.peekSegmentType=function(){var Tn=this._string[this._currentIndex];return this._pathSegTypeFromChar(Tn)},Qn.prototype._pathSegTypeFromChar=function(Tn){switch(Tn){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}},Qn.prototype._nextCommandHelper=function(Tn,Un){return("+"==Tn||"-"==Tn||"."==Tn||Tn>="0"&&Tn<="9")&&Un!=window.SVGPathSeg.PATHSEG_CLOSEPATH?Un==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:Un==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:Un:window.SVGPathSeg.PATHSEG_UNKNOWN},Qn.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var Tn=this.peekSegmentType();return Tn==window.SVGPathSeg.PATHSEG_MOVETO_ABS||Tn==window.SVGPathSeg.PATHSEG_MOVETO_REL},Qn.prototype._parseNumber=function(){var Tn=0,Un=0,Dn=1,Qn=0,Hn=1,Gn=1,Vn=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++,Hn=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))){for(var zn=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=zn)for(var Kn=this._currentIndex-1,$n=1;Kn>=zn;)Un+=$n*(this._string.charAt(Kn--)-"0"),$n*=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";)Dn*=10,Qn+=(this._string.charAt(this._currentIndex)-"0")/Dn,this._currentIndex+=1}if(this._currentIndex!=Vn&&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++,Gn=-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";)Tn*=10,Tn+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var Wn=Un+Qn;if(Wn*=Hn,Tn&&(Wn*=Math.pow(10,Gn*Tn)),Vn!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),Wn}},Qn.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var Tn=!1,Un=this._string.charAt(this._currentIndex++);if("0"==Un)Tn=!1;else{if("1"!=Un)return;Tn=!0}return this._skipOptionalSpacesOrDelimiter(),Tn}},Qn.prototype.parseSegment=function(){var Tn=this._string[this._currentIndex],Dn=this._pathSegTypeFromChar(Tn);if(Dn==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((Dn=this._nextCommandHelper(Tn,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=Dn,Dn){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(Un,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(Un);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var Qn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(Un,Qn.x,Qn.y,Qn.x1,Qn.y1,Qn.x2,Qn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return Qn={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(Un,Qn.x,Qn.y,Qn.x1,Qn.y1,Qn.x2,Qn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return Qn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(Un,Qn.x,Qn.y,Qn.x2,Qn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return Qn={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(Un,Qn.x,Qn.y,Qn.x2,Qn.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return Qn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(Un,Qn.x,Qn.y,Qn.x1,Qn.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return Qn={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(Un,Qn.x,Qn.y,Qn.x1,Qn.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(Un,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return Qn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(Un,Qn.x,Qn.y,Qn.x1,Qn.y1,Qn.arcAngle,Qn.arcLarge,Qn.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return Qn={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(Un,Qn.x,Qn.y,Qn.x1,Qn.y1,Qn.arcAngle,Qn.arcLarge,Qn.arcSweep);default:throw"Unknown path seg type."}};var Hn=new Dn,Gn=new Qn(Tn);if(!Gn.initialCommandIsMoveTo())return[];for(;Gn.hasMoreData();){var Vn=Gn.parseSegment();if(!Vn)return[];Hn.appendSegment(Vn)}return Hn.pathSegList});Boolean(document.createElementNS&&document.createElementNS(Zf.SVG,"svg").createSVGRect);var NA,IA=navigator.userAgent,OA=document.createElementNS(Zf.SVG,"svg"),FA=Boolean(window.opera),UA=IA.includes("AppleWebKit"),MA=IA.includes("Gecko/"),RA=IA.includes("Chrome/"),DA=(IA.includes("Windows"),IA.includes("Macintosh")),jA="ontouchstart"in window,QA=Boolean(OA.querySelector),HA=Boolean(document.evaluate),GA=function(){var Tn=document.createElementNS(Zf.SVG,"path");Tn.setAttribute("d","M0,0 10,10");var Un=Tn.pathSegList,Dn=Tn.createSVGPathSegLinetoAbs(5,5);try{return Un.replaceItem(Dn,1),!0}catch(Tn){}return!1}(),VA=function(){var Tn=document.createElementNS(Zf.SVG,"path");Tn.setAttribute("d","M0,0 10,10");var Un=Tn.pathSegList,Dn=Tn.createSVGPathSegLinetoAbs(5,5);try{return Un.insertItemBefore(Dn,1),!0}catch(Tn){}return!1}(),zA=function(){var Tn=document.createElementNS(Zf.SVG,"svg"),Un=document.createElementNS(Zf.SVG,"svg");document.documentElement.append(Tn),Un.setAttribute("x",5),Tn.append(Un);var Dn=document.createElementNS(Zf.SVG,"text");Dn.textContent="a",Un.append(Dn);try{return 0===Dn.getStartPositionOfChar(0).x}catch(Tn){return!1}finally{Tn.remove()}}(),KA=function(){var Tn=document.createElementNS(Zf.SVG,"svg");document.documentElement.append(Tn);var Un=document.createElementNS(Zf.SVG,"path");Un.setAttribute("d","M0,0 C0,0 10,10 10,0"),Tn.append(Un);var Dn=Un.getBBox();return Tn.remove(),Dn.height>4&&Dn.height<5}(),qA=function(){var Tn=document.createElementNS(Zf.SVG,"svg");document.documentElement.append(Tn);var Un=document.createElementNS(Zf.SVG,"path");Un.setAttribute("d","M0,0 10,0");var Dn=document.createElementNS(Zf.SVG,"path");Dn.setAttribute("d","M5,0 15,0");var Qn=document.createElementNS(Zf.SVG,"g");Qn.append(Un,Dn),Tn.append(Qn);var Hn=Qn.getBBox();return Tn.remove(),15===Hn.width}(),$A=((NA=document.createElementNS(Zf.SVG,"rect")).setAttribute("style","vector-effect:non-scaling-stroke"),"non-scaling-stroke"===NA.style.vectorEffect),WA=function(){var Tn=document.createElementNS(Zf.SVG,"rect").transform.baseVal,Un=OA.createSVGTransform();Tn.appendItem(Un);var Dn=Tn.getItem(0),Qn=function isSVGTransform(Tn){return Tn&&"object"===_typeof(Tn)&&"function"==typeof Tn.setMatrix&&"angle"in Tn};return Qn(Dn)&&Qn(Un)&&Dn.type===Un.type&&Dn.angle===Un.angle&&Dn.matrix.a===Un.matrix.a&&Dn.matrix.b===Un.matrix.b&&Dn.matrix.c===Un.matrix.c&&Dn.matrix.d===Un.matrix.d&&Dn.matrix.e===Un.matrix.e&&Dn.matrix.f===Un.matrix.f}(),XA=function isWebkit(){return UA},YA=function isGecko(){return MA},JA=function isChrome(){return RA},ZA=function supportsGoodTextCharPos(){return zA},em=function supportsNonScalingStroke(){return $A};_export({global:!0},{globalThis:Dn});var tm=function check(Tn){return Tn&&Tn.Math==Math&&Tn},nm=tm("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis))&&globalThis)||tm("object"==("undefined"==typeof window?"undefined":_typeof(window))&&window)||tm("object"==("undefined"==typeof self?"undefined":_typeof(self))&&self)||tm("object"==_typeof(Un)&&Un)||function(){return this}()||Function("return this")(),rm=function fails(Tn){try{return!!Tn()}catch(Tn){return!0}},im=!rm((function(){return 7!=Object.defineProperty({},1,{get:function get(){return 7}})[1]})),om={}.propertyIsEnumerable,am=Object.getOwnPropertyDescriptor,sm={f:am&&!om.call({1:2},1)?function propertyIsEnumerable(Tn){var Un=am(this,Tn);return!!Un&&Un.enumerable}:om},lm=function createPropertyDescriptor(Tn,Un){return{enumerable:!(1&Tn),configurable:!(2&Tn),writable:!(4&Tn),value:Un}},cm={}.toString,um=function classofRaw(Tn){return cm.call(Tn).slice(8,-1)},dm="".split,hm=rm((function(){return!Object("z").propertyIsEnumerable(0)}))?function(Tn){return"String"==um(Tn)?dm.call(Tn,""):Object(Tn)}:Object,pm=function requireObjectCoercible(Tn){if(null==Tn)throw TypeError("Can't call method on "+Tn);return Tn},gm=function toIndexedObject(Tn){return hm(pm(Tn))},fm=function isObject(Tn){return"object"===_typeof(Tn)?null!==Tn:"function"==typeof Tn},Am=function toPrimitive(Tn,Un){if(!fm(Tn))return Tn;var Dn,Qn;if(Un&&"function"==typeof(Dn=Tn.toString)&&!fm(Qn=Dn.call(Tn)))return Qn;if("function"==typeof(Dn=Tn.valueOf)&&!fm(Qn=Dn.call(Tn)))return Qn;if(!Un&&"function"==typeof(Dn=Tn.toString)&&!fm(Qn=Dn.call(Tn)))return Qn;throw TypeError("Can't convert object to primitive value")},mm={}.hasOwnProperty,vm=function has(Tn,Un){return mm.call(Tn,Un)},ym=nm.document,wm=fm(ym)&&fm(ym.createElement),xm=function documentCreateElement(Tn){return wm?ym.createElement(Tn):{}},Sm=!im&&!rm((function(){return 7!=Object.defineProperty(xm("div"),"a",{get:function get(){return 7}}).a})),Cm=Object.getOwnPropertyDescriptor,km={f:im?Cm:function getOwnPropertyDescriptor(Tn,Un){if(Tn=gm(Tn),Un=Am(Un,!0),Sm)try{return Cm(Tn,Un)}catch(Tn){}if(vm(Tn,Un))return lm(!sm.f.call(Tn,Un),Tn[Un])}},Bm=/#|\.prototype\./,Em=function isForced(Tn,Un){var Dn=Lm[Pm(Tn)];return Dn==Nm||Dn!=Tm&&("function"==typeof Un?rm(Un):!!Un)},Pm=Em.normalize=function(Tn){return String(Tn).replace(Bm,".").toLowerCase()},Lm=Em.data={},Tm=Em.NATIVE="N",Nm=Em.POLYFILL="P",Im=Em,Om={},Fm=function aFunction(Tn){if("function"!=typeof Tn)throw TypeError(String(Tn)+" is not a function");return Tn},Um=function functionBindContext(Tn,Un,Dn){if(Fm(Tn),void 0===Un)return Tn;switch(Dn){case 0:return function(){return Tn.call(Un)};case 1:return function(Dn){return Tn.call(Un,Dn)};case 2:return function(Dn,Qn){return Tn.call(Un,Dn,Qn)};case 3:return function(Dn,Qn,Hn){return Tn.call(Un,Dn,Qn,Hn)}}return function(){return Tn.apply(Un,arguments)}},Mm=function anObject(Tn){if(!fm(Tn))throw TypeError(String(Tn)+" is not an object");return Tn},Rm=Object.defineProperty,Dm={f:im?Rm:function defineProperty(Tn,Un,Dn){if(Mm(Tn),Un=Am(Un,!0),Mm(Dn),Sm)try{return Rm(Tn,Un,Dn)}catch(Tn){}if("get"in Dn||"set"in Dn)throw TypeError("Accessors not supported");return"value"in Dn&&(Tn[Un]=Dn.value),Tn}},jm=im?function(Tn,Un,Dn){return Dm.f(Tn,Un,lm(1,Dn))}:function(Tn,Un,Dn){return Tn[Un]=Dn,Tn},Qm=km.f,Hm=function wrapConstructor(Tn){var Un=function Wrapper(Un,Dn,Qn){if(this instanceof Tn){switch(arguments.length){case 0:return new Tn;case 1:return new Tn(Un);case 2:return new Tn(Un,Dn)}return new Tn(Un,Dn,Qn)}return Tn.apply(this,arguments)};return Un.prototype=Tn.prototype,Un},Gm=function _export(Tn,Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn=Tn.target,Xn=Tn.global,Yn=Tn.stat,Jn=Tn.proto,Zn=Xn?nm:Yn?nm[Wn]:(nm[Wn]||{}).prototype,er=Xn?Om:Om[Wn]||(Om[Wn]={}),tr=er.prototype;for(Hn in Un)Dn=!Im(Xn?Hn:Wn+(Yn?".":"#")+Hn,Tn.forced)&&Zn&&vm(Zn,Hn),Vn=er[Hn],Dn&&(zn=Tn.noTargetGet?($n=Qm(Zn,Hn))&&$n.value:Zn[Hn]),Gn=Dn&&zn?zn:Un[Hn],Dn&&_typeof(Vn)===_typeof(Gn)||(Kn=Tn.bind&&Dn?Um(Gn,nm):Tn.wrap&&Dn?Hm(Gn):Jn&&"function"==typeof Gn?Um(Function.call,Gn):Gn,(Tn.sham||Gn&&Gn.sham||Vn&&Vn.sham)&&jm(Kn,"sham",!0),er[Hn]=Kn,Jn&&(vm(Om,Qn=Wn+"Prototype")||jm(Om,Qn,{}),Om[Qn][Hn]=Gn,Tn.real&&tr&&!tr[Hn]&&jm(tr,Hn,Gn)))},Vm=Math.ceil,zm=Math.floor,Km=function toInteger(Tn){return isNaN(Tn=+Tn)?0:(Tn>0?zm:Vm)(Tn)},qm=Math.min,$m=function toLength(Tn){return Tn>0?qm(Km(Tn),9007199254740991):0},Wm=nm["__core-js_shared__"]||function setGlobal(Tn,Un){try{jm(nm,Tn,Un)}catch(Dn){nm[Tn]=Un}return Un}("__core-js_shared__",{}),Xm=createCommonjsModule((function(Tn){(Tn.exports=function(Tn,Un){return Wm[Tn]||(Wm[Tn]=void 0!==Un?Un:{})})("versions",[]).push({version:"3.7.0",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Ym=0,Jm=Math.random(),Zm=function uid(Tn){return"Symbol("+String(void 0===Tn?"":Tn)+")_"+(++Ym+Jm).toString(36)},ev=!!Object.getOwnPropertySymbols&&!rm((function(){return!String(Symbol())})),tv=ev&&!Symbol.sham&&"symbol"==_typeof(Symbol.iterator),nv=Xm("wks"),rv=nm.Symbol,iv=tv?rv:rv&&rv.withoutSetter||Zm,ov=function wellKnownSymbol(Tn){return vm(nv,Tn)||(ev&&vm(rv,Tn)?nv[Tn]=rv[Tn]:nv[Tn]=iv("Symbol."+Tn)),nv[Tn]},av=ov("match"),sv=function notARegexp(Tn){if(function isRegexp(Tn){var Un;return fm(Tn)&&(void 0!==(Un=Tn[av])?!!Un:"RegExp"==um(Tn))}(Tn))throw TypeError("The method doesn't accept regular expressions");return Tn},lv=ov("match"),uv=function correctIsRegexpLogic(Tn){var Un=/./;try{"/./"[Tn](Un)}catch(Dn){try{return Un[lv]=!1,"/./"[Tn](Un)}catch(Tn){}}return!1},dv="".startsWith,hv=Math.min,pv=uv("startsWith");Gm({target:"String",proto:!0,forced:!pv},{startsWith:function startsWith(Tn){var Un=String(pm(this));sv(Tn);var Dn=$m(hv(arguments.length>1?arguments[1]:void 0,Un.length)),Qn=String(Tn);return dv?dv.call(Un,Qn,Dn):Un.slice(Dn,Dn+Qn.length)===Qn}});var gv=function entryVirtual(Tn){return Om[Tn+"Prototype"]},fv=gv("String").startsWith,Av=String.prototype,mv=function startsWith_1(Tn){var Un=Tn.startsWith;return"string"==typeof Tn||Tn===Av||Tn instanceof String&&Un===Av.startsWith?fv:Un},vv="\t\n\v\f\r \u2028\u2029\ufeff",yv="["+vv+"]",_v=RegExp("^"+yv+yv+"*"),bv=RegExp(yv+yv+"*$"),wv=function createMethod(Tn){return function(Un){var Dn=String(pm(Un));return 1&Tn&&(Dn=Dn.replace(_v,"")),2&Tn&&(Dn=Dn.replace(bv,"")),Dn}},xv={start:wv(1),end:wv(2),trim:wv(3)},Sv=xv.trim,Cv=nm.parseFloat,kv=1/Cv(vv+"-0")!=-1/0?function parseFloat(Tn){var Un=Sv(String(Tn)),Dn=Cv(Un);return 0===Dn&&"-"==Un.charAt(0)?-0:Dn}:Cv;Gm({global:!0,forced:parseFloat!=kv},{parseFloat:kv});var Bv,Ev,Pv=Om.parseFloat,Lv=function toObject(Tn){return Object(pm(Tn))},Tv=Array.isArray||function isArray(Tn){return"Array"==um(Tn)},Nv=ov("species"),Iv=function arraySpeciesCreate(Tn,Un){var Dn;return Tv(Tn)&&("function"!=typeof(Dn=Tn.constructor)||Dn!==Array&&!Tv(Dn.prototype)?fm(Dn)&&null===(Dn=Dn[Nv])&&(Dn=void 0):Dn=void 0),new(void 0===Dn?Array:Dn)(0===Un?0:Un)},Ov=[].push,Fv=function createMethod(Tn){var Un=1==Tn,Dn=2==Tn,Qn=3==Tn,Hn=4==Tn,Gn=6==Tn,Vn=5==Tn||Gn;return function(zn,Kn,$n,Wn){for(var Xn,Yn,Jn=Lv(zn),Zn=hm(Jn),er=Um(Kn,$n,3),tr=$m(Zn.length),nr=0,rr=Wn||Iv,ir=Un?rr(zn,tr):Dn?rr(zn,0):void 0;tr>nr;nr++)if((Vn||nr in Zn)&&(Yn=er(Xn=Zn[nr],nr,Jn),Tn))if(Un)ir[nr]=Yn;else if(Yn)switch(Tn){case 3:return!0;case 5:return Xn;case 6:return nr;case 2:Ov.call(ir,Xn)}else if(Hn)return!1;return Gn?-1:Qn||Hn?Hn:ir}},Uv={forEach:Fv(0),map:Fv(1),filter:Fv(2),some:Fv(3),every:Fv(4),find:Fv(5),findIndex:Fv(6)},Mv=function aFunction(Tn){return"function"==typeof Tn?Tn:void 0},Rv=function getBuiltIn(Tn,Un){return arguments.length<2?Mv(Om[Tn])||Mv(nm[Tn]):Om[Tn]&&Om[Tn][Un]||nm[Tn]&&nm[Tn][Un]},Dv=Rv("navigator","userAgent")||"",jv=nm.process,Qv=jv&&jv.versions,Hv=Qv&&Qv.v8;Hv?Ev=(Bv=Hv.split("."))[0]+Bv[1]:Dv&&(!(Bv=Dv.match(/Edge\/(\d+)/))||Bv[1]>=74)&&(Bv=Dv.match(/Chrome\/(\d+)/))&&(Ev=Bv[1]);var Gv=Ev&&+Ev,Vv=ov("species"),zv=function arrayMethodHasSpeciesSupport(Tn){return Gv>=51||!rm((function(){var Un=[];return(Un.constructor={})[Vv]=function(){return{foo:1}},1!==Un[Tn](Boolean).foo}))},Kv=Object.defineProperty,qv={},$v=function thrower(Tn){throw Tn},Wv=function arrayMethodUsesToLength(Tn,Un){if(vm(qv,Tn))return qv[Tn];Un||(Un={});var Dn=[][Tn],Qn=!!vm(Un,"ACCESSORS")&&Un.ACCESSORS,Hn=vm(Un,0)?Un[0]:$v,Gn=vm(Un,1)?Un[1]:void 0;return qv[Tn]=!!Dn&&!rm((function(){if(Qn&&!im)return!0;var Tn={length:-1};Qn?Kv(Tn,1,{enumerable:!0,get:$v}):Tn[1]=1,Dn.call(Tn,Hn,Gn)}))},Xv=Uv.map,Yv=zv("map"),Jv=Wv("map");Gm({target:"Array",proto:!0,forced:!Yv||!Jv},{map:function map(Tn){return Xv(this,Tn,arguments.length>1?arguments[1]:void 0)}});var Zv=gv("Array").map,ey=Array.prototype,ty=function map_1(Tn){var Un=Tn.map;return Tn===ey||Tn instanceof Array&&Un===ey.map?Zv:Un};Gm({target:"Array",stat:!0},{isArray:Tv});var ny=Om.Array.isArray,ry=ny;var iy=function _arrayWithHoles$1(Tn){if(ry(Tn))return Tn},oy={},ay=kh.getWeakData,sy=Cr.set,ly=Cr.getterFor,uy=di.find,dy=di.findIndex,hy=0,uncaughtFrozenStore=function(Tn){return Tn.frozen||(Tn.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(Tn,Un){return uy(Tn.entries,(function(Tn){return Tn[0]===Un}))};UncaughtFrozenStore.prototype={get:function(Tn){var Un=findUncaughtFrozen(this,Tn);if(Un)return Un[1]},has:function(Tn){return!!findUncaughtFrozen(this,Tn)},set:function(Tn,Un){var Dn=findUncaughtFrozen(this,Tn);Dn?Dn[1]=Un:this.entries.push([Tn,Un])},delete:function(Tn){var Un=dy(this.entries,(function(Un){return Un[0]===Tn}));return~Un&&this.entries.splice(Un,1),!!~Un}};var py={getConstructor:function(Tn,Un,Dn,Qn){var Hn=Tn((function(Tn,Gn){anInstance(Tn,Hn,Un),sy(Tn,{type:Un,id:hy++,frozen:void 0}),null!=Gn&&iterate(Gn,Tn[Qn],{that:Tn,AS_ENTRIES:Dn})})),Gn=ly(Un),define=function(Tn,Un,Dn){var Qn=Gn(Tn),Hn=ay(anObject(Un),!0);return!0===Hn?uncaughtFrozenStore(Qn).set(Un,Dn):Hn[Qn.id]=Dn,Tn};return redefineAll(Hn.prototype,{delete:function(Tn){var Un=Gn(this);if(!isObject(Tn))return!1;var Dn=ay(Tn);return!0===Dn?uncaughtFrozenStore(Un).delete(Tn):Dn&&has(Dn,Un.id)&&delete Dn[Un.id]},has:function has$1(Tn){var Un=Gn(this);if(!isObject(Tn))return!1;var Dn=ay(Tn);return!0===Dn?uncaughtFrozenStore(Un).has(Tn):Dn&&has(Dn,Un.id)}}),redefineAll(Hn.prototype,Dn?{get:function get(Tn){var Un=Gn(this);if(isObject(Tn)){var Dn=ay(Tn);return!0===Dn?uncaughtFrozenStore(Un).get(Tn):Dn?Dn[Un.id]:void 0}},set:function set(Tn,Un){return define(this,Tn,Un)}}:{add:function add(Tn){return define(this,Tn,!0)}}),Hn}},gy=(createCommonjsModule((function(Tn){var Un,Qn=Cr.enforce,Hn=!Dn.ActiveXObject&&"ActiveXObject"in Dn,Gn=Object.isExtensible,wrapper=function(Tn){return function WeakMap(){return Tn(this,arguments.length?arguments[0]:void 0)}},Vn=Tn.exports=collection("WeakMap",wrapper,py);if(dr&&Hn){Un=py.getConstructor(wrapper,"WeakMap",!0),kh.REQUIRED=!0;var zn=Vn.prototype,Kn=zn.delete,$n=zn.has,Wn=zn.get,Xn=zn.set;redefineAll(zn,{delete:function(Tn){if(isObject(Tn)&&!Gn(Tn)){var Dn=Qn(this);return Dn.frozen||(Dn.frozen=new Un),Kn.call(this,Tn)||Dn.frozen.delete(Tn)}return Kn.call(this,Tn)},has:function has(Tn){if(isObject(Tn)&&!Gn(Tn)){var Dn=Qn(this);return Dn.frozen||(Dn.frozen=new Un),$n.call(this,Tn)||Dn.frozen.has(Tn)}return $n.call(this,Tn)},get:function get(Tn){if(isObject(Tn)&&!Gn(Tn)){var Dn=Qn(this);return Dn.frozen||(Dn.frozen=new Un),$n.call(this,Tn)?Wn.call(this,Tn):Dn.frozen.get(Tn)}return Wn.call(this,Tn)},set:function set(Tn,Dn){if(isObject(Tn)&&!Gn(Tn)){var Hn=Qn(this);Hn.frozen||(Hn.frozen=new Un),$n.call(this,Tn)?Xn.call(this,Tn,Dn):Hn.frozen.set(Tn,Dn)}else Xn.call(this,Tn,Dn);return this}})}})),Function.toString);"function"!=typeof Wm.inspectSource&&(Wm.inspectSource=function(Tn){return gy.call(Tn)});var fy,Ay,my,vy=Wm.inspectSource,yy=nm.WeakMap,_y="function"==typeof yy&&/native code/.test(vy(yy)),by=Xm("keys"),wy=function sharedKey(Tn){return by[Tn]||(by[Tn]=Zm(Tn))},xy={},Sy=nm.WeakMap;if(_y){var Cy=Wm.state||(Wm.state=new Sy),ky=Cy.get,By=Cy.has,Ey=Cy.set;fy=function set(Tn,Un){return Un.facade=Tn,Ey.call(Cy,Tn,Un),Un},Ay=function get(Tn){return ky.call(Cy,Tn)||{}},my=function has(Tn){return By.call(Cy,Tn)}}else{var Py=wy("state");xy[Py]=!0,fy=function set(Tn,Un){return Un.facade=Tn,jm(Tn,Py,Un),Un},Ay=function get(Tn){return vm(Tn,Py)?Tn[Py]:{}},my=function has(Tn){return vm(Tn,Py)}}var Ly,Ty,Ny,Iy={set:fy,get:Ay,has:my,enforce:function enforce(Tn){return my(Tn)?Ay(Tn):fy(Tn,{})},getterFor:function getterFor(Tn){return function(Un){var Dn;if(!fm(Un)||(Dn=Ay(Un)).type!==Tn)throw TypeError("Incompatible receiver, "+Tn+" required");return Dn}}},Oy=!rm((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Fy=wy("IE_PROTO"),Uy=Object.prototype,My=Oy?Object.getPrototypeOf:function(Tn){return Tn=Lv(Tn),vm(Tn,Fy)?Tn[Fy]:"function"==typeof Tn.constructor&&Tn instanceof Tn.constructor?Tn.constructor.prototype:Tn instanceof Object?Uy:null},Ry=(ov("iterator"),!1);[].keys&&("next"in(Ny=[].keys())?(Ty=My(My(Ny)))!==Object.prototype&&(Ly=Ty):Ry=!0),null==Ly&&(Ly={});var Dy={IteratorPrototype:Ly,BUGGY_SAFARI_ITERATORS:Ry};_export({target:"Object",stat:!0,forced:!Qn,sham:!Qn},{defineProperties:yi});var jy,Qy=Math.max,Hy=Math.min,Gy=function toAbsoluteIndex(Tn,Un){var Dn=Km(Tn);return Dn<0?Qy(Dn+Un,0):Hy(Dn,Un)},Vy=function createMethod(Tn){return function(Un,Dn,Qn){var Hn,Gn=gm(Un),Vn=$m(Gn.length),zn=Gy(Qn,Vn);if(Tn&&Dn!=Dn){for(;Vn>zn;)if((Hn=Gn[zn++])!=Hn)return!0}else for(;Vn>zn;zn++)if((Tn||zn in Gn)&&Gn[zn]===Dn)return Tn||zn||0;return!Tn&&-1}},zy={includes:Vy(!0),indexOf:Vy(!1)},Ky=zy.indexOf,qy=function objectKeysInternal(Tn,Un){var Dn,Qn=gm(Tn),Hn=0,Gn=[];for(Dn in Qn)!vm(xy,Dn)&&vm(Qn,Dn)&&Gn.push(Dn);for(;Un.length>Hn;)vm(Qn,Dn=Un[Hn++])&&(~Ky(Gn,Dn)||Gn.push(Dn));return Gn},$y=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wy=Object.keys||function keys(Tn){return qy(Tn,$y)},Xy=im?Object.defineProperties:function defineProperties(Tn,Un){Mm(Tn);for(var Dn,Qn=Wy(Un),Hn=Qn.length,Gn=0;Hn>Gn;)Dm.f(Tn,Dn=Qn[Gn++],Un[Dn]);return Tn},Yy=Rv("document","documentElement"),Jy=wy("IE_PROTO"),Zy=function EmptyConstructor(){},e_=function scriptTag(Tn){return"<script>"+Tn+"<\/script>"},t_=function NullProtoObject(){try{jy=document.domain&&new ActiveXObject("htmlfile")}catch(Tn){}t_=jy?function NullProtoObjectViaActiveX(Tn){Tn.write(e_("")),Tn.close();var Un=Tn.parentWindow.Object;return Tn=null,Un}(jy):function NullProtoObjectViaIFrame(){var Tn,Un=xm("iframe");return Un.style.display="none",Yy.appendChild(Un),Un.src=String("javascript:"),(Tn=Un.contentWindow.document).open(),Tn.write(e_("document.F=Object")),Tn.close(),Tn.F}();for(var Tn=$y.length;Tn--;)delete t_.prototype[$y[Tn]];return t_()};xy[Jy]=!0;var n_=Object.create||function create(Tn,Un){var Dn;return null!==Tn?(Zy.prototype=Mm(Tn),Dn=new Zy,Zy.prototype=null,Dn[Jy]=Tn):Dn=t_(),void 0===Un?Dn:Xy(Dn,Un)},r_={};r_[ov("toStringTag")]="z";var i_="[object z]"===String(r_),o_=ov("toStringTag"),a_="Arguments"==um(function(){return arguments}()),s_=i_?um:function(Tn){var Un,Dn,Qn;return void 0===Tn?"Undefined":null===Tn?"Null":"string"==typeof(Dn=function tryGet(Tn,Un){try{return Tn[Un]}catch(Tn){}}(Un=Object(Tn),o_))?Dn:a_?um(Un):"Object"==(Qn=um(Un))&&"function"==typeof Un.callee?"Arguments":Qn},l_=i_?{}.toString:function toString(){return"[object "+s_(this)+"]"},c_=Dm.f,u_=ov("toStringTag"),d_=function setToStringTag(Tn,Un,Dn,Qn){if(Tn){var Hn=Dn?Tn:Tn.prototype;vm(Hn,u_)||c_(Hn,u_,{configurable:!0,value:Un}),Qn&&!i_&&jm(Hn,"toString",l_)}},h_=Dy.IteratorPrototype,p_=function returnThis(){return this},g_=Object.setPrototypeOf||("__proto__"in{}?function(){var Tn,Un=!1,Dn={};try{(Tn=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(Dn,[]),Un=Dn instanceof Array}catch(Tn){}return function setPrototypeOf(Dn,Qn){return Mm(Dn),function aPossiblePrototype(Tn){if(!fm(Tn)&&null!==Tn)throw TypeError("Can't set "+String(Tn)+" as a prototype")}(Qn),Un?Tn.call(Dn,Qn):Dn.__proto__=Qn,Dn}}():void 0),f_=function redefine(Tn,Un,Dn,Qn){Qn&&Qn.enumerable?Tn[Un]=Dn:jm(Tn,Un,Dn)},A_=Dy.IteratorPrototype,m_=Dy.BUGGY_SAFARI_ITERATORS,v_=ov("iterator"),y_=function returnThis(){return this},w_=function defineIterator(Tn,Un,Dn,Qn,Hn,Gn,Vn){!function createIteratorConstructor(Tn,Un,Dn){var Qn=Un+" Iterator";Tn.prototype=n_(h_,{next:lm(1,Dn)}),d_(Tn,Qn,!1,!0),oy[Qn]=p_}(Dn,Un,Qn);var zn,Kn,$n,Wn=function getIterationMethod(Tn){if(Tn===Hn&&er)return er;if(!m_&&Tn in Jn)return Jn[Tn];switch(Tn){case"keys":return function keys(){return new Dn(this,Tn)};case"values":return function values(){return new Dn(this,Tn)};case"entries":return function entries(){return new Dn(this,Tn)}}return function(){return new Dn(this)}},Xn=Un+" Iterator",Yn=!1,Jn=Tn.prototype,Zn=Jn[v_]||Jn["@@iterator"]||Hn&&Jn[Hn],er=!m_&&Zn||Wn(Hn),tr="Array"==Un&&Jn.entries||Zn;if(tr&&(zn=My(tr.call(new Tn)),A_!==Object.prototype&&zn.next&&(d_(zn,Xn,!0,!0),oy[Xn]=y_)),"values"==Hn&&Zn&&"values"!==Zn.name&&(Yn=!0,er=function values(){return Zn.call(this)}),Vn&&Jn[v_]!==er&&jm(Jn,v_,er),oy[Un]=er,Hn)if(Kn={values:Wn("values"),keys:Gn?er:Wn("keys"),entries:Wn("entries")},Vn)for($n in Kn)(m_||Yn||!($n in Jn))&&f_(Jn,$n,Kn[$n]);else Gm({target:Un,proto:!0,forced:m_||Yn},Kn);return Kn},x_=Iy.set,S_=Iy.getterFor("Array Iterator");w_(Array,"Array",(function(Tn,Un){x_(this,{type:"Array Iterator",target:gm(Tn),index:0,kind:Un})}),(function(){var Tn=S_(this),Un=Tn.target,Dn=Tn.kind,Qn=Tn.index++;return!Un||Qn>=Un.length?(Tn.target=void 0,{value:void 0,done:!0}):"keys"==Dn?{value:Qn,done:!1}:"values"==Dn?{value:Un[Qn],done:!1}:{value:[Qn,Un[Qn]],done:!1}}),"values");oy.Arguments=oy.Array;var C_=ov("toStringTag");for(var k_ 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 B_=nm[k_],E_=B_&&B_.prototype;E_&&s_(E_)!==C_&&jm(E_,C_,k_),oy[k_]=oy.Array}var P_=function createMethod(Tn){return function(Un,Dn){var Qn,Hn,Gn=String(pm(Un)),Vn=Km(Dn),zn=Gn.length;return Vn<0||Vn>=zn?Tn?"":void 0:(Qn=Gn.charCodeAt(Vn))<55296||Qn>56319||Vn+1===zn||(Hn=Gn.charCodeAt(Vn+1))<56320||Hn>57343?Tn?Gn.charAt(Vn):Qn:Tn?Gn.slice(Vn,Vn+2):Hn-56320+(Qn-55296<<10)+65536}},L_={codeAt:P_(!1),charAt:P_(!0)}.charAt,T_=Iy.set,N_=Iy.getterFor("String Iterator");w_(String,"String",(function(Tn){T_(this,{type:"String Iterator",string:String(Tn),index:0})}),(function next(){var Tn,Un=N_(this),Dn=Un.string,Qn=Un.index;return Qn>=Dn.length?{value:void 0,done:!0}:(Tn=L_(Dn,Qn),Un.index+=Tn.length,{value:Tn,done:!1})}));var I_=ov("iterator"),O_=function getIteratorMethod(Tn){if(null!=Tn)return Tn[I_]||Tn["@@iterator"]||oy[s_(Tn)]},F_=function getIterator(Tn){var Un=O_(Tn);if("function"!=typeof Un)throw TypeError(String(Tn)+" is not iterable");return Mm(Un.call(Tn))},U_=ov("iterator"),M_=function isIterable(Tn){var Un=Object(Tn);return void 0!==Un[U_]||"@@iterator"in Un||oy.hasOwnProperty(s_(Un))},R_=function createProperty(Tn,Un,Dn){var Qn=Am(Un);Qn in Tn?Dm.f(Tn,Qn,lm(0,Dn)):Tn[Qn]=Dn},D_=ov("isConcatSpreadable"),j_=Gv>=51||!rm((function(){var Tn=[];return Tn[D_]=!1,Tn.concat()[0]!==Tn})),Q_=zv("concat"),H_=function isConcatSpreadable(Tn){if(!fm(Tn))return!1;var Un=Tn[D_];return void 0!==Un?!!Un:Tv(Tn)};Gm({target:"Array",proto:!0,forced:!j_||!Q_},{concat:function concat(Tn){var Un,Dn,Qn,Hn,Gn,Vn=Lv(this),zn=Iv(Vn,0),Kn=0;for(Un=-1,Qn=arguments.length;Un<Qn;Un++)if(H_(Gn=-1===Un?Vn:arguments[Un])){if(Kn+(Hn=$m(Gn.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(Dn=0;Dn<Hn;Dn++,Kn++)Dn in Gn&&R_(zn,Kn,Gn[Dn])}else{if(Kn>=9007199254740991)throw TypeError("Maximum allowed index exceeded");R_(zn,Kn++,Gn)}return zn.length=Kn,zn}});var G_=$y.concat("length","prototype"),V_={f:Object.getOwnPropertyNames||function getOwnPropertyNames(Tn){return qy(Tn,G_)}},z_=V_.f,K_={}.toString,q_="object"==("undefined"==typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$_={f:function getOwnPropertyNames(Tn){return q_&&"[object Window]"==K_.call(Tn)?function getWindowNames(Tn){try{return z_(Tn)}catch(Tn){return q_.slice()}}(Tn):z_(gm(Tn))}},W_={f:Object.getOwnPropertySymbols},X_={f:ov},Y_=Dm.f,J_=function defineWellKnownSymbol(Tn){var Un=Om.Symbol||(Om.Symbol={});vm(Un,Tn)||Y_(Un,Tn,{value:X_.f(Tn)})},Z_=Uv.forEach,eb=wy("hidden"),tb=ov("toPrimitive"),nb=Iy.set,rb=Iy.getterFor("Symbol"),ib=Object.prototype,ob=nm.Symbol,ab=Rv("JSON","stringify"),sb=km.f,lb=Dm.f,ub=$_.f,db=sm.f,hb=Xm("symbols"),pb=Xm("op-symbols"),gb=Xm("string-to-symbol-registry"),fb=Xm("symbol-to-string-registry"),Ab=Xm("wks"),mb=nm.QObject,vb=!mb||!mb.prototype||!mb.prototype.findChild,yb=im&&rm((function(){return 7!=n_(lb({},"a",{get:function get(){return lb(this,"a",{value:7}).a}})).a}))?function(Tn,Un,Dn){var Qn=sb(ib,Un);Qn&&delete ib[Un],lb(Tn,Un,Dn),Qn&&Tn!==ib&&lb(ib,Un,Qn)}:lb,_b=function wrap(Tn,Un){var Dn=hb[Tn]=n_(ob.prototype);return nb(Dn,{type:"Symbol",tag:Tn,description:Un}),im||(Dn.description=Un),Dn},bb=tv?function(Tn){return"symbol"==_typeof(Tn)}:function(Tn){return Object(Tn)instanceof ob},wb=function defineProperty(Tn,Un,Dn){Tn===ib&&wb(pb,Un,Dn),Mm(Tn);var Qn=Am(Un,!0);return Mm(Dn),vm(hb,Qn)?(Dn.enumerable?(vm(Tn,eb)&&Tn[eb][Qn]&&(Tn[eb][Qn]=!1),Dn=n_(Dn,{enumerable:lm(0,!1)})):(vm(Tn,eb)||lb(Tn,eb,lm(1,{})),Tn[eb][Qn]=!0),yb(Tn,Qn,Dn)):lb(Tn,Qn,Dn)},xb=function defineProperties(Tn,Un){Mm(Tn);var Dn=gm(Un),Qn=Wy(Dn).concat(Bb(Dn));return Z_(Qn,(function(Un){im&&!Sb.call(Dn,Un)||wb(Tn,Un,Dn[Un])})),Tn},Sb=function propertyIsEnumerable(Tn){var Un=Am(Tn,!0),Dn=db.call(this,Un);return!(this===ib&&vm(hb,Un)&&!vm(pb,Un))&&(!(Dn||!vm(this,Un)||!vm(hb,Un)||vm(this,eb)&&this[eb][Un])||Dn)},Cb=function getOwnPropertyDescriptor(Tn,Un){var Dn=gm(Tn),Qn=Am(Un,!0);if(Dn!==ib||!vm(hb,Qn)||vm(pb,Qn)){var Hn=sb(Dn,Qn);return!Hn||!vm(hb,Qn)||vm(Dn,eb)&&Dn[eb][Qn]||(Hn.enumerable=!0),Hn}},kb=function getOwnPropertyNames(Tn){var Un=ub(gm(Tn)),Dn=[];return Z_(Un,(function(Tn){vm(hb,Tn)||vm(xy,Tn)||Dn.push(Tn)})),Dn},Bb=function getOwnPropertySymbols(Tn){var Un=Tn===ib,Dn=ub(Un?pb:gm(Tn)),Qn=[];return Z_(Dn,(function(Tn){!vm(hb,Tn)||Un&&!vm(ib,Tn)||Qn.push(hb[Tn])})),Qn};if(ev||(f_((ob=function _Symbol(){if(this instanceof ob)throw TypeError("Symbol is not a constructor");var Tn=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,Un=Zm(Tn),Dn=function setter(Tn){this===ib&&setter.call(pb,Tn),vm(this,eb)&&vm(this[eb],Un)&&(this[eb][Un]=!1),yb(this,Un,lm(1,Tn))};return im&&vb&&yb(ib,Un,{configurable:!0,set:Dn}),_b(Un,Tn)}).prototype,"toString",(function toString(){return rb(this).tag})),f_(ob,"withoutSetter",(function(Tn){return _b(Zm(Tn),Tn)})),sm.f=Sb,Dm.f=wb,km.f=Cb,V_.f=$_.f=kb,W_.f=Bb,X_.f=function(Tn){return _b(ov(Tn),Tn)},im&&lb(ob.prototype,"description",{configurable:!0,get:function description(){return rb(this).description}})),Gm({global:!0,wrap:!0,forced:!ev,sham:!ev},{Symbol:ob}),Z_(Wy(Ab),(function(Tn){J_(Tn)})),Gm({target:"Symbol",stat:!0,forced:!ev},{for:function _for(Tn){var Un=String(Tn);if(vm(gb,Un))return gb[Un];var Dn=ob(Un);return gb[Un]=Dn,fb[Dn]=Un,Dn},keyFor:function keyFor(Tn){if(!bb(Tn))throw TypeError(Tn+" is not a symbol");if(vm(fb,Tn))return fb[Tn]},useSetter:function useSetter(){vb=!0},useSimple:function useSimple(){vb=!1}}),Gm({target:"Object",stat:!0,forced:!ev,sham:!im},{create:function create(Tn,Un){return void 0===Un?n_(Tn):xb(n_(Tn),Un)},defineProperty:wb,defineProperties:xb,getOwnPropertyDescriptor:Cb}),Gm({target:"Object",stat:!0,forced:!ev},{getOwnPropertyNames:kb,getOwnPropertySymbols:Bb}),Gm({target:"Object",stat:!0,forced:rm((function(){W_.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(Tn){return W_.f(Lv(Tn))}}),ab){var Eb=!ev||rm((function(){var Tn=ob();return"[null]"!=ab([Tn])||"{}"!=ab({a:Tn})||"{}"!=ab(Object(Tn))}));Gm({target:"JSON",stat:!0,forced:Eb},{stringify:function stringify(Tn,Un,Dn){for(var Qn,Hn=[Tn],Gn=1;arguments.length>Gn;)Hn.push(arguments[Gn++]);if(Qn=Un,(fm(Un)||void 0!==Tn)&&!bb(Tn))return Tv(Un)||(Un=function replacer(Tn,Un){if("function"==typeof Qn&&(Un=Qn.call(this,Tn,Un)),!bb(Un))return Un}),Hn[1]=Un,ab.apply(null,Hn)}})}ob.prototype[tb]||jm(ob.prototype,tb,ob.prototype.valueOf),d_(ob,"Symbol"),xy[eb]=!0,J_("asyncIterator"),J_("hasInstance"),J_("isConcatSpreadable"),J_("iterator"),J_("match"),J_("matchAll"),J_("replace"),J_("search"),J_("species"),J_("split"),J_("toPrimitive"),J_("toStringTag"),J_("unscopables"),d_(nm.JSON,"JSON",!0);var Pb=Om.Symbol;J_("asyncDispose"),J_("dispose"),J_("observable"),J_("patternMatch"),J_("replaceAll");var Lb=Pb;var Tb=function _iterableToArrayLimit$1(Tn,Un){if(void 0!==Lb&&M_(Object(Tn))){var Dn=[],Qn=!0,Hn=!1,Gn=void 0;try{for(var Vn,zn=F_(Tn);!(Qn=(Vn=zn.next()).done)&&(Dn.push(Vn.value),!Un||Dn.length!==Un);Qn=!0);}catch(Tn){Hn=!0,Gn=Tn}finally{try{Qn||null==zn.return||zn.return()}finally{if(Hn)throw Gn}}return Dn}},Nb=function iteratorClose(Tn){var Un=Tn.return;if(void 0!==Un)return Mm(Un.call(Tn)).value},Ib=function callWithSafeIterationClosing(Tn,Un,Dn,Qn){try{return Qn?Un(Mm(Dn)[0],Dn[1]):Un(Dn)}catch(Un){throw Nb(Tn),Un}},Ob=ov("iterator"),Fb=Array.prototype,Ub=function isArrayIteratorMethod(Tn){return void 0!==Tn&&(oy.Array===Tn||Fb[Ob]===Tn)},Mb=ov("iterator"),Rb=!1;try{var Db=0,jb={next:function next(){return{done:!!Db++}},return:function _return(){Rb=!0}};jb[Mb]=function(){return this},Array.from(jb,(function(){throw 2}))}catch(Tn){}var Qb=function checkCorrectnessOfIteration(Tn,Un){if(!Un&&!Rb)return!1;var Dn=!1;try{var Qn={};Qn[Mb]=function(){return{next:function next(){return{done:Dn=!0}}}},Tn(Qn)}catch(Tn){}return Dn},Hb=!Qb((function(Tn){Array.from(Tn)}));Gm({target:"Array",stat:!0,forced:Hb},{from:function from(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn=Lv(Tn),Kn="function"==typeof this?this:Array,$n=arguments.length,Wn=$n>1?arguments[1]:void 0,Xn=void 0!==Wn,Yn=O_(zn),Jn=0;if(Xn&&(Wn=Um(Wn,$n>2?arguments[2]:void 0,2)),null==Yn||Kn==Array&&Ub(Yn))for(Dn=new Kn(Un=$m(zn.length));Un>Jn;Jn++)Vn=Xn?Wn(zn[Jn],Jn):zn[Jn],R_(Dn,Jn,Vn);else for(Gn=(Hn=Yn.call(zn)).next,Dn=new Kn;!(Qn=Gn.call(Hn)).done;Jn++)Vn=Xn?Ib(Hn,Wn,[Qn.value,Jn],!0):Qn.value,R_(Dn,Jn,Vn);return Dn.length=Jn,Dn}});var Gb=Om.Array.from,Vb=Gb,zb=zv("slice"),Kb=Wv("slice",{ACCESSORS:!0,0:0,1:2}),qb=ov("species"),$b=[].slice,Wb=Math.max;Gm({target:"Array",proto:!0,forced:!zb||!Kb},{slice:function slice(Tn,Un){var Dn,Qn,Hn,Gn=gm(this),Vn=$m(Gn.length),zn=Gy(Tn,Vn),Kn=Gy(void 0===Un?Vn:Un,Vn);if(Tv(Gn)&&("function"!=typeof(Dn=Gn.constructor)||Dn!==Array&&!Tv(Dn.prototype)?fm(Dn)&&null===(Dn=Dn[qb])&&(Dn=void 0):Dn=void 0,Dn===Array||void 0===Dn))return $b.call(Gn,zn,Kn);for(Qn=new(void 0===Dn?Array:Dn)(Wb(Kn-zn,0)),Hn=0;zn<Kn;zn++,Hn++)zn in Gn&&R_(Qn,Hn,Gn[zn]);return Qn.length=Hn,Qn}});var Xb=gv("Array").slice,Yb=Array.prototype,Jb=function slice_1(Tn){var Un=Tn.slice;return Tn===Yb||Tn instanceof Array&&Un===Yb.slice?Xb:Un},Zb=Jb;var ew=function _arrayLikeToArray$1(Tn,Un){(null==Un||Un>Tn.length)&&(Un=Tn.length);for(var Dn=0,Qn=new Array(Un);Dn<Un;Dn++)Qn[Dn]=Tn[Dn];return Qn};var tw=function _unsupportedIterableToArray$1(Tn,Un){var Dn;if(Tn){if("string"==typeof Tn)return ew(Tn,Un);var Qn=Zb(Dn=Object.prototype.toString.call(Tn)).call(Dn,8,-1);return"Object"===Qn&&Tn.constructor&&(Qn=Tn.constructor.name),"Map"===Qn||"Set"===Qn?Vb(Tn):"Arguments"===Qn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qn)?ew(Tn,Un):void 0}};var nw=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 rw=function _slicedToArray$1(Tn,Un){return iy(Tn)||Tb(Tn,Un)||tw(Tn,Un)||nw()};Gm({target:"Object",stat:!0,forced:!im,sham:!im},{defineProperty:Dm.f});var iw=createCommonjsModule((function(Tn){var Un=Om.Object,Dn=Tn.exports=function defineProperty(Tn,Dn,Qn){return Un.defineProperty(Tn,Dn,Qn)};Un.defineProperty.sham&&(Dn.sham=!0)})),ow=iw;Gm({target:"Object",stat:!0,forced:!im,sham:!im},{defineProperties:Xy});var aw=createCommonjsModule((function(Tn){var Un=Om.Object,Dn=Tn.exports=function defineProperties(Tn,Dn){return Un.defineProperties(Tn,Dn)};Un.defineProperties.sham&&(Dn.sham=!0)})),sw=Rv("Reflect","ownKeys")||function ownKeys(Tn){var Un=V_.f(Mm(Tn)),Dn=W_.f;return Dn?Un.concat(Dn(Tn)):Un};Gm({target:"Object",stat:!0,sham:!im},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(Tn){for(var Un,Dn,Qn=gm(Tn),Hn=km.f,Gn=sw(Qn),Vn={},zn=0;Gn.length>zn;)void 0!==(Dn=Hn(Qn,Un=Gn[zn++]))&&R_(Vn,Un,Dn);return Vn}});var lw=Om.Object.getOwnPropertyDescriptors,cw=function arrayMethodIsStrict(Tn,Un){var Dn=[][Tn];return!!Dn&&rm((function(){Dn.call(null,Un||function(){throw 1},1)}))},uw=Uv.forEach,dw=cw("forEach"),hw=Wv("forEach"),pw=dw&&hw?[].forEach:function forEach(Tn){return uw(this,Tn,arguments.length>1?arguments[1]:void 0)};Gm({target:"Array",proto:!0,forced:[].forEach!=pw},{forEach:pw});var gw=gv("Array").forEach,fw=Array.prototype,Aw={DOMTokenList:!0,NodeList:!0},mw=function forEach_1(Tn){var Un=Tn.forEach;return Tn===fw||Tn instanceof Array&&Un===fw.forEach||Aw.hasOwnProperty(s_(Tn))?gw:Un},vw=km.f,yw=rm((function(){vw(1)}));Gm({target:"Object",stat:!0,forced:!im||yw,sham:!im},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(Tn,Un){return vw(gm(Tn),Un)}});var _w=createCommonjsModule((function(Tn){var Un=Om.Object,Dn=Tn.exports=function getOwnPropertyDescriptor(Tn,Dn){return Un.getOwnPropertyDescriptor(Tn,Dn)};Un.getOwnPropertyDescriptor.sham&&(Dn.sham=!0)})),bw=_w,ww=Uv.filter,xw=zv("filter"),Sw=Wv("filter");Gm({target:"Array",proto:!0,forced:!xw||!Sw},{filter:function filter(Tn){return ww(this,Tn,arguments.length>1?arguments[1]:void 0)}});var Cw=gv("Array").filter,kw=Array.prototype,Bw=function filter_1(Tn){var Un=Tn.filter;return Tn===kw||Tn instanceof Array&&Un===kw.filter?Cw:Un},Ew=Om.Object.getOwnPropertySymbols,Pw=rm((function(){Wy(1)}));Gm({target:"Object",stat:!0,forced:Pw},{keys:function keys(Tn){return Wy(Lv(Tn))}});var Lw=Om.Object.keys,Tw=xc,Nw=function Result(Tn,Un){this.stopped=Tn,this.result=Un},Iw=function iterate(Tn,Un,Dn){var Qn,Hn,Gn,Vn,zn,Kn,$n,Wn=Dn&&Dn.that,Xn=!(!Dn||!Dn.AS_ENTRIES),Yn=!(!Dn||!Dn.IS_ITERATOR),Jn=!(!Dn||!Dn.INTERRUPTED),Zn=Um(Un,Wn,1+Xn+Jn),er=function stop(Tn){return Qn&&Nb(Qn),new Nw(!0,Tn)},tr=function callFn(Tn){return Xn?(Mm(Tn),Jn?Zn(Tn[0],Tn[1],er):Zn(Tn[0],Tn[1])):Jn?Zn(Tn,er):Zn(Tn)};if(Yn)Qn=Tn;else{if("function"!=typeof(Hn=O_(Tn)))throw TypeError("Target is not iterable");if(Ub(Hn)){for(Gn=0,Vn=$m(Tn.length);Vn>Gn;Gn++)if((zn=tr(Tn[Gn]))&&zn instanceof Nw)return zn;return new Nw(!1)}Qn=Hn.call(Tn)}for(Kn=Qn.next;!($n=Kn.call(Qn)).done;){try{zn=tr($n.value)}catch(Tn){throw Nb(Qn),Tn}if("object"==_typeof(zn)&&zn&&zn instanceof Nw)return zn}return new Nw(!1)},Ow=function AggregateError(Tn,Un){var Dn=this;if(!(Dn instanceof Ow))return new Ow(Tn,Un);g_&&(Dn=g_(new Error(void 0),My(Dn))),void 0!==Un&&jm(Dn,"message",String(Un));var Qn=[];return Iw(Tn,Qn.push,{that:Qn}),jm(Dn,"errors",Qn),Dn};Ow.prototype=n_(Error.prototype,{constructor:lm(5,Ow),message:lm(5,""),name:lm(5,"AggregateError")}),Gm({global:!0},{AggregateError:Ow});var Fw=!!ys&&fails((function(){ys.prototype.finally.call({then:function(){}},(function(){}))}));_export({target:"Promise",proto:!0,real:!0,forced:Fw},{finally:function(Tn){var Un=speciesConstructor(this,getBuiltIn("Promise")),Dn="function"==typeof Tn;return this.then(Dn?function(Dn){return promiseResolve(Un,Tn()).then((function(){return Dn}))}:Tn,Dn?function(Dn){return promiseResolve(Un,Tn()).then((function(){throw Dn}))}:Tn)}}),"function"!=typeof ys||ys.prototype.finally||kr(ys.prototype,"finally",getBuiltIn("Promise").prototype.finally);var Uw=nm.Promise,Mw=function redefineAll(Tn,Un,Dn){for(var Qn in Un)Dn&&Dn.unsafe&&Tn[Qn]?Tn[Qn]=Un[Qn]:f_(Tn,Qn,Un[Qn],Dn);return Tn},Rw=ov("species"),Dw=function setSpecies(Tn){var Un=Rv(Tn),Dn=Dm.f;im&&Un&&!Un[Rw]&&Dn(Un,Rw,{configurable:!0,get:function get(){return this}})},jw=function anInstance(Tn,Un,Dn){if(!(Tn instanceof Un))throw TypeError("Incorrect "+(Dn?Dn+" ":"")+"invocation");return Tn},Qw=ov("species"),Hw=function speciesConstructor(Tn,Un){var Dn,Qn=Mm(Tn).constructor;return void 0===Qn||null==(Dn=Mm(Qn)[Qw])?Un:Fm(Dn)},Gw=!Dn.setImmediate||!Dn.clearImmediate;_export({global:!0,bind:!0,enumerable:!0,forced:Gw},{setImmediate:$s.set,clearImmediate:$s.clear});var Vw,zw,Kw,qw=/(iphone|ipod|ipad).*applewebkit/i.test(Dv),$w="process"==um(nm.process),Ww=nm.location,Xw=nm.setImmediate,Yw=nm.clearImmediate,Jw=nm.process,Zw=nm.MessageChannel,ex=nm.Dispatch,tx=0,nx={},rx=function run(Tn){if(nx.hasOwnProperty(Tn)){var Un=nx[Tn];delete nx[Tn],Un()}},ix=function runner(Tn){return function(){rx(Tn)}},ox=function listener(Tn){rx(Tn.data)},ax=function post(Tn){nm.postMessage(Tn+"",Ww.protocol+"//"+Ww.host)};Xw&&Yw||(Xw=function setImmediate(Tn){for(var Un=[],Dn=1;arguments.length>Dn;)Un.push(arguments[Dn++]);return nx[++tx]=function(){("function"==typeof Tn?Tn:Function(Tn)).apply(void 0,Un)},Vw(tx),tx},Yw=function clearImmediate(Tn){delete nx[Tn]},$w?Vw=function defer(Tn){Jw.nextTick(ix(Tn))}:ex&&ex.now?Vw=function defer(Tn){ex.now(ix(Tn))}:Zw&&!qw?(Kw=(zw=new Zw).port2,zw.port1.onmessage=ox,Vw=Um(Kw.postMessage,Kw,1)):nm.addEventListener&&"function"==typeof postMessage&&!nm.importScripts&&Ww&&"file:"!==Ww.protocol&&!rm(ax)?(Vw=ax,nm.addEventListener("message",ox,!1)):Vw="onreadystatechange"in xm("script")?function defer(Tn){Yy.appendChild(xm("script")).onreadystatechange=function(){Yy.removeChild(this),rx(Tn)}}:function defer(Tn){setTimeout(ix(Tn),0)});var sx,lx,cx,ux,dx,hx,px,gx,Ax={set:Xw,clear:Yw},mx=km.f,vx=Ax.set,yx=nm.MutationObserver||nm.WebKitMutationObserver,_x=nm.document,bx=nm.process,wx=nm.Promise,xx=mx(nm,"queueMicrotask"),Sx=xx&&xx.value;Sx||(sx=function flush(){var Tn,Un;for($w&&(Tn=bx.domain)&&Tn.exit();lx;){Un=lx.fn,lx=lx.next;try{Un()}catch(Tn){throw lx?ux():cx=void 0,Tn}}cx=void 0,Tn&&Tn.enter()},!qw&&!$w&&yx&&_x?(dx=!0,hx=_x.createTextNode(""),new yx(sx).observe(hx,{characterData:!0}),ux=function notify(){hx.data=dx=!dx}):wx&&wx.resolve?(px=wx.resolve(void 0),gx=px.then,ux=function notify(){gx.call(px,sx)}):ux=$w?function notify(){bx.nextTick(sx)}:function notify(){vx.call(nm,sx)});var Cx,kx,Bx,Ex=Sx||function(Tn){var Un={fn:Tn,next:void 0};cx&&(cx.next=Un),lx||(lx=Un,ux()),cx=Un},Px=function PromiseCapability(Tn){var Un,Dn;this.promise=new Tn((function(Tn,Qn){if(void 0!==Un||void 0!==Dn)throw TypeError("Bad Promise constructor");Un=Tn,Dn=Qn})),this.resolve=Fm(Un),this.reject=Fm(Dn)},Lx={f:function f(Tn){return new Px(Tn)}},Tx=function promiseResolve(Tn,Un){if(Mm(Tn),fm(Un)&&Un.constructor===Tn)return Un;var Dn=Lx.f(Tn);return(0,Dn.resolve)(Un),Dn.promise},Nx=function perform(Tn){try{return{error:!1,value:Tn()}}catch(Tn){return{error:!0,value:Tn}}},Ix=Ax.set,Ox=ov("species"),Fx=Iy.get,Ux=Iy.set,Mx=Iy.getterFor("Promise"),Rx=Uw,Dx=nm.TypeError,jx=nm.document,Qx=nm.process,Hx=(Rv("fetch"),Lx.f),Gx=Hx,Vx=!!(jx&&jx.createEvent&&nm.dispatchEvent),zx="function"==typeof PromiseRejectionEvent,Kx=Im("Promise",(function(){if(!(vy(Rx)!==String(Rx))){if(66===Gv)return!0;if(!$w&&!zx)return!0}if(!Rx.prototype.finally)return!0;if(Gv>=51&&/native code/.test(Rx))return!1;var Tn=Rx.resolve(1),Un=function FakePromise(Tn){Tn((function(){}),(function(){}))};return(Tn.constructor={})[Ox]=Un,!(Tn.then((function(){}))instanceof Un)})),qx=Kx||!Qb((function(Tn){Rx.all(Tn).catch((function(){}))})),$x=function isThenable(Tn){var Un;return!(!fm(Tn)||"function"!=typeof(Un=Tn.then))&&Un},Wx=function notify(Tn,Un){if(!Tn.notified){Tn.notified=!0;var Dn=Tn.reactions;Ex((function(){for(var Qn=Tn.value,Hn=1==Tn.state,Gn=0;Dn.length>Gn;){var Vn,zn,Kn,$n=Dn[Gn++],Wn=Hn?$n.ok:$n.fail,Xn=$n.resolve,Yn=$n.reject,Jn=$n.domain;try{Wn?(Hn||(2===Tn.rejection&&Zx(Tn),Tn.rejection=1),!0===Wn?Vn=Qn:(Jn&&Jn.enter(),Vn=Wn(Qn),Jn&&(Jn.exit(),Kn=!0)),Vn===$n.promise?Yn(Dx("Promise-chain cycle")):(zn=$x(Vn))?zn.call(Vn,Xn,Yn):Xn(Vn)):Yn(Qn)}catch(Tn){Jn&&!Kn&&Jn.exit(),Yn(Tn)}}Tn.reactions=[],Tn.notified=!1,Un&&!Tn.rejection&&Yx(Tn)}))}},Xx=function dispatchEvent(Tn,Un,Dn){var Qn,Hn;Vx?((Qn=jx.createEvent("Event")).promise=Un,Qn.reason=Dn,Qn.initEvent(Tn,!1,!0),nm.dispatchEvent(Qn)):Qn={promise:Un,reason:Dn},!zx&&(Hn=nm["on"+Tn])?Hn(Qn):"unhandledrejection"===Tn&&function hostReportErrors(Tn,Un){var Dn=nm.console;Dn&&Dn.error&&(1===arguments.length?Dn.error(Tn):Dn.error(Tn,Un))}("Unhandled promise rejection",Dn)},Yx=function onUnhandled(Tn){Ix.call(nm,(function(){var Un,Dn=Tn.facade,Qn=Tn.value;if(Jx(Tn)&&(Un=Nx((function(){$w?Qx.emit("unhandledRejection",Qn,Dn):Xx("unhandledrejection",Dn,Qn)})),Tn.rejection=$w||Jx(Tn)?2:1,Un.error))throw Un.value}))},Jx=function isUnhandled(Tn){return 1!==Tn.rejection&&!Tn.parent},Zx=function onHandleUnhandled(Tn){Ix.call(nm,(function(){var Un=Tn.facade;$w?Qx.emit("rejectionHandled",Un):Xx("rejectionhandled",Un,Tn.value)}))},eS=function bind(Tn,Un,Dn){return function(Qn){Tn(Un,Qn,Dn)}},tS=function internalReject(Tn,Un,Dn){Tn.done||(Tn.done=!0,Dn&&(Tn=Dn),Tn.value=Un,Tn.state=2,Wx(Tn,!0))},nS=function internalResolve(Tn,Un,Dn){if(!Tn.done){Tn.done=!0,Dn&&(Tn=Dn);try{if(Tn.facade===Un)throw Dx("Promise can't be resolved itself");var Qn=$x(Un);Qn?Ex((function(){var Dn={done:!1};try{Qn.call(Un,eS(internalResolve,Dn,Tn),eS(tS,Dn,Tn))}catch(Un){tS(Dn,Un,Tn)}})):(Tn.value=Un,Tn.state=1,Wx(Tn,!1))}catch(Un){tS({done:!1},Un,Tn)}}};Kx&&(Rx=function Promise(Tn){jw(this,Rx,"Promise"),Fm(Tn),Cx.call(this);var Un=Fx(this);try{Tn(eS(nS,Un),eS(tS,Un))}catch(Tn){tS(Un,Tn)}},(Cx=function Promise(Tn){Ux(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Mw(Rx.prototype,{then:function then(Tn,Un){var Dn=Mx(this),Qn=Hx(Hw(this,Rx));return Qn.ok="function"!=typeof Tn||Tn,Qn.fail="function"==typeof Un&&Un,Qn.domain=$w?Qx.domain:void 0,Dn.parent=!0,Dn.reactions.push(Qn),0!=Dn.state&&Wx(Dn,!1),Qn.promise},catch:function _catch(Tn){return this.then(void 0,Tn)}}),kx=function OwnPromiseCapability(){var Tn=new Cx,Un=Fx(Tn);this.promise=Tn,this.resolve=eS(nS,Un),this.reject=eS(tS,Un)},Lx.f=Hx=function newPromiseCapability(Tn){return Tn===Rx||Tn===Bx?new kx(Tn):Gx(Tn)}),Gm({global:!0,wrap:!0,forced:Kx},{Promise:Rx}),d_(Rx,"Promise",!1,!0),Dw("Promise"),Bx=Rv("Promise"),Gm({target:"Promise",stat:!0,forced:Kx},{reject:function reject(Tn){var Un=Hx(this);return Un.reject.call(void 0,Tn),Un.promise}}),Gm({target:"Promise",stat:!0,forced:!0},{resolve:function resolve(Tn){return Tx(this===Bx?Rx:this,Tn)}}),Gm({target:"Promise",stat:!0,forced:qx},{all:function all(Tn){var Un=this,Dn=Hx(Un),Qn=Dn.resolve,Hn=Dn.reject,Gn=Nx((function(){var Dn=Fm(Un.resolve),Gn=[],Vn=0,zn=1;Iw(Tn,(function(Tn){var Kn=Vn++,$n=!1;Gn.push(void 0),zn++,Dn.call(Un,Tn).then((function(Tn){$n||($n=!0,Gn[Kn]=Tn,--zn||Qn(Gn))}),Hn)})),--zn||Qn(Gn)}));return Gn.error&&Hn(Gn.value),Dn.promise},race:function race(Tn){var Un=this,Dn=Hx(Un),Qn=Dn.reject,Hn=Nx((function(){var Hn=Fm(Un.resolve);Iw(Tn,(function(Tn){Hn.call(Un,Tn).then(Dn.resolve,Qn)}))}));return Hn.error&&Qn(Hn.value),Dn.promise}}),Gm({target:"Promise",stat:!0},{allSettled:function allSettled(Tn){var Un=this,Dn=Lx.f(Un),Qn=Dn.resolve,Hn=Dn.reject,Gn=Nx((function(){var Dn=Fm(Un.resolve),Hn=[],Gn=0,Vn=1;Iw(Tn,(function(Tn){var zn=Gn++,Kn=!1;Hn.push(void 0),Vn++,Dn.call(Un,Tn).then((function(Tn){Kn||(Kn=!0,Hn[zn]={status:"fulfilled",value:Tn},--Vn||Qn(Hn))}),(function(Tn){Kn||(Kn=!0,Hn[zn]={status:"rejected",reason:Tn},--Vn||Qn(Hn))}))})),--Vn||Qn(Hn)}));return Gn.error&&Hn(Gn.value),Dn.promise}});Gm({target:"Promise",stat:!0},{any:function any(Tn){var Un=this,Dn=Lx.f(Un),Qn=Dn.resolve,Hn=Dn.reject,Gn=Nx((function(){var Dn=Fm(Un.resolve),Gn=[],Vn=0,zn=1,Kn=!1;Iw(Tn,(function(Tn){var $n=Vn++,Wn=!1;Gn.push(void 0),zn++,Dn.call(Un,Tn).then((function(Tn){Wn||Kn||(Kn=!0,Qn(Tn))}),(function(Tn){Wn||Kn||(Wn=!0,Gn[$n]=Tn,--zn||Hn(new(Rv("AggregateError"))(Gn,"No one promise resolved")))}))})),--zn||Hn(new(Rv("AggregateError"))(Gn,"No one promise resolved"))}));return Gn.error&&Hn(Gn.value),Dn.promise}});var rS=!!Uw&&rm((function(){Uw.prototype.finally.call({then:function then(){}},(function(){}))}));Gm({target:"Promise",proto:!0,real:!0,forced:rS},{finally:function _finally(Tn){var Un=Hw(this,Rv("Promise")),Dn="function"==typeof Tn;return this.then(Dn?function(Dn){return Tx(Un,Tn()).then((function(){return Dn}))}:Tn,Dn?function(Dn){return Tx(Un,Tn()).then((function(){throw Dn}))}:Tn)}});var iS=Om.Promise;Gm({target:"Promise",stat:!0},{try:function _try(Tn){var Un=Lx.f(this),Dn=Nx(Tn);return(Dn.error?Un.reject:Un.resolve)(Dn.value),Un.promise}});var oS=iS;function asyncGeneratorStep$1(Tn,Un,Dn,Qn,Hn,Gn,Vn){try{var zn=Tn[Gn](Vn),Kn=zn.value}catch(Tn){return void Dn(Tn)}zn.done?Un(Kn):oS.resolve(Kn).then(Qn,Hn)}var aS=function _asyncToGenerator$1(Tn){return function(){var Un=this,Dn=arguments;return new oS((function(Qn,Hn){var Gn=Tn.apply(Un,Dn);function _next(Tn){asyncGeneratorStep$1(Gn,Qn,Hn,_next,_throw,"next",Tn)}function _throw(Tn){asyncGeneratorStep$1(Gn,Qn,Hn,_next,_throw,"throw",Tn)}_next(void 0)}))}},sS=iw;var lS=function _defineProperty$1(Tn,Un,Dn){return Un in Tn?sS(Tn,Un,{value:Dn,enumerable:!0,configurable:!0,writable:!0}):Tn[Un]=Dn,Tn};var cS=function _classCallCheck$1(Tn,Un){if(!(Tn instanceof Un))throw new TypeError("Cannot call a class as a function")};function _defineProperties$1(Tn,Un){for(var Dn=0;Dn<Un.length;Dn++){var Qn=Un[Dn];Qn.enumerable=Qn.enumerable||!1,Qn.configurable=!0,"value"in Qn&&(Qn.writable=!0),sS(Tn,Qn.key,Qn)}}var uS=function _createClass$1(Tn,Un,Dn){return Un&&_defineProperties$1(Tn.prototype,Un),Dn&&_defineProperties$1(Tn,Dn),Tn},dS=gv("Array").concat,hS=Array.prototype,pS=function concat_1(Tn){var Un=Tn.concat;return Tn===hS||Tn instanceof Array&&Un===hS.concat?dS:Un},gS=function createMethod(Tn){return function(Un,Dn,Qn,Hn){Fm(Dn);var Gn=Lv(Un),Vn=hm(Gn),zn=$m(Gn.length),Kn=Tn?zn-1:0,$n=Tn?-1:1;if(Qn<2)for(;;){if(Kn in Vn){Hn=Vn[Kn],Kn+=$n;break}if(Kn+=$n,Tn?Kn<0:zn<=Kn)throw TypeError("Reduce of empty array with no initial value")}for(;Tn?Kn>=0:zn>Kn;Kn+=$n)Kn in Vn&&(Hn=Dn(Hn,Vn[Kn],Kn,Gn));return Hn}},fS={left:gS(!1),right:gS(!0)}.left,AS=cw("reduce"),mS=Wv("reduce",{1:0});Gm({target:"Array",proto:!0,forced:!AS||!mS||!$w&&Gv>79&&Gv<83},{reduce:function reduce(Tn){return fS(this,Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}});var vS=gv("Array").reduce,yS=Array.prototype,_S=function reduce_1(Tn){var Un=Tn.reduce;return Tn===yS||Tn instanceof Array&&Un===yS.reduce?vS:Un};Gm({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var bS=Om.Date.now,wS=di.every,xS=arrayMethodIsStrict("every"),SS=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!xS||!SS},{every:function every(Tn){return wS(this,Tn,arguments.length>1?arguments[1]:void 0)}});var CS=Uv.every,kS=cw("every"),BS=Wv("every");Gm({target:"Array",proto:!0,forced:!kS||!BS},{every:function every(Tn){return CS(this,Tn,arguments.length>1?arguments[1]:void 0)}});var ES=gv("Array").every,PS=Array.prototype,LS=function every_1(Tn){var Un=Tn.every;return Tn===PS||Tn instanceof Array&&Un===PS.every?ES:Un},TS=iS,NS=[].slice,IS={},OS=function construct(Tn,Un,Dn){if(!(Un in IS)){for(var Qn=[],Hn=0;Hn<Un;Hn++)Qn[Hn]="a["+Hn+"]";IS[Un]=Function("C,a","return new C("+Qn.join(",")+")")}return IS[Un](Tn,Dn)},FS=Function.bind||function bind(Tn){var Un=Fm(this),Dn=NS.call(arguments,1),Qn=function bound(){var Hn=Dn.concat(NS.call(arguments));return this instanceof Qn?OS(Un,Hn.length,Hn):Un.apply(Tn,Hn)};return fm(Un.prototype)&&(Qn.prototype=Un.prototype),Qn};Gm({target:"Function",proto:!0},{bind:FS});var US=gv("Function").bind,MS=Function.prototype,RS=function bind_1(Tn){var Un=Tn.bind;return Tn===MS||Tn instanceof Function&&Un===MS.bind?US:Un};_export({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});for(var DS=createCommonjsModule((function(Dn){(function(){var Un,Qn,Hn,Gn,Vn,zn;"undefined"!=typeof performance&&null!==performance&&performance.now?Dn.exports=function(){return performance.now()}:null!=Tn&&Tn.hrtime?(Dn.exports=function(){return(Un()-Vn)/1e6},Qn=Tn.hrtime,Gn=(Un=function getNanoSeconds(){var Tn;return 1e9*(Tn=Qn())[0]+Tn[1]})(),zn=1e9*Tn.uptime(),Vn=Gn-zn):Date.now?(Dn.exports=function(){return Date.now()-Hn},Hn=Date.now()):(Dn.exports=function(){return(new Date).getTime()-Hn},Hn=(new Date).getTime())}).call(Un)})),jS="undefined"==typeof window?Un:window,QS=["moz","webkit"],HS="AnimationFrame",GS=jS["request"+HS],VS=jS["cancel"+HS]||jS["cancelRequest"+HS],zS=0;!GS&&zS<QS.length;zS++)GS=jS[QS[zS]+"Request"+HS],VS=jS[QS[zS]+"Cancel"+HS]||jS[QS[zS]+"CancelRequest"+HS];if(!GS||!VS){var KS=0,qS=0,$S=[];GS=function raf(Tn){if(0===$S.length){var Un=DS(),Dn=Math.max(0,16.666666666666668-(Un-KS));KS=Dn+Un,setTimeout((function(){var Tn=$S.slice(0);$S.length=0;for(var Un=0;Un<Tn.length;Un++)if(!Tn[Un].cancelled)try{Tn[Un].callback(KS)}catch(Tn){setTimeout((function(){throw Tn}),0)}}),Math.round(Dn))}return $S.push({handle:++qS,callback:Tn,cancelled:!1}),qS},VS=function caf(Tn){for(var Un=0;Un<$S.length;Un++)$S[Un].handle===Tn&&($S[Un].cancelled=!0)}}var WS=function raf_1(Tn){return GS.call(jS,Tn)};WS.cancel=function cancel(){VS.apply(jS,arguments)},WS.polyfill=function polyfill(Tn){Tn||(Tn=jS),Tn.requestAnimationFrame=GS,Tn.cancelAnimationFrame=VS};var XS=xv.trim;Gm({target:"String",proto:!0,forced:function stringTrimForced(Tn){return rm((function(){return!!vv[Tn]()||"
"!="
"[Tn]()||vv[Tn].name!==Tn}))}("trim")},{trim:function trim(){return XS(this)}});var YS=gv("String").trim,JS=String.prototype,ZS=function trim_1(Tn){var Un=Tn.trim;return"string"==typeof Tn||Tn===JS||Tn instanceof String&&Un===JS.trim?YS:Un},eC=function rgbcolor(Tn){this.ok=!1,this.alpha=1,"#"==Tn.charAt(0)&&(Tn=Tn.substr(1,6)),Tn=(Tn=Tn.replace(/ /g,"")).toLowerCase();var Un={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"};Tn=Un[Tn]||Tn;for(var Dn=[{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(Tn){return[parseInt(Tn[1]),parseInt(Tn[2]),parseInt(Tn[3]),parseFloat(Tn[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(Tn){return[parseInt(Tn[1]),parseInt(Tn[2]),parseInt(Tn[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function process(Tn){return[parseInt(Tn[1],16),parseInt(Tn[2],16),parseInt(Tn[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function process(Tn){return[parseInt(Tn[1]+Tn[1],16),parseInt(Tn[2]+Tn[2],16),parseInt(Tn[3]+Tn[3],16)]}}],Qn=0;Qn<Dn.length;Qn++){var Hn=Dn[Qn].re,Gn=Dn[Qn].process,Vn=Hn.exec(Tn);if(Vn){var zn=Gn(Vn);this.r=zn[0],this.g=zn[1],this.b=zn[2],zn.length>3&&(this.alpha=zn[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 Tn=this.r.toString(16),Un=this.g.toString(16),Dn=this.b.toString(16);return 1==Tn.length&&(Tn="0"+Tn),1==Un.length&&(Un="0"+Un),1==Dn.length&&(Dn="0"+Dn),"#"+Tn+Un+Dn},this.getHelpXML=function(){for(var Tn=new Array,Qn=0;Qn<Dn.length;Qn++)for(var Hn=Dn[Qn].example,Gn=0;Gn<Hn.length;Gn++)Tn[Tn.length]=Hn[Gn];for(var Vn in Un)Tn[Tn.length]=Vn;var zn=document.createElement("ul");zn.setAttribute("id","rgbcolor-examples");for(Qn=0;Qn<Tn.length;Qn++)try{var Kn=document.createElement("li"),$n=new RGBColor(Tn[Qn]),Wn=document.createElement("div");Wn.style.cssText="margin: 3px; border: 1px solid black; background:"+$n.toHex()+"; color:"+$n.toHex(),Wn.appendChild(document.createTextNode("test"));var Xn=document.createTextNode(" "+Tn[Qn]+" -> "+$n.toRGB()+" -> "+$n.toHex());Kn.appendChild(Wn),Kn.appendChild(Xn),zn.appendChild(Kn)}catch(Tn){}return zn}},tC=Rv("Reflect","construct"),nC=rm((function(){function F(){}return!(tC((function(){}),[],F)instanceof F)})),rC=!rm((function(){tC((function(){}))})),iC=nC||rC;Gm({target:"Reflect",stat:!0,forced:iC,sham:iC},{construct:function construct(Tn,Un){Fm(Tn),Mm(Un);var Dn=arguments.length<3?Tn:Fm(arguments[2]);if(rC&&!nC)return tC(Tn,Un,Dn);if(Tn==Dn){switch(Un.length){case 0:return new Tn;case 1:return new Tn(Un[0]);case 2:return new Tn(Un[0],Un[1]);case 3:return new Tn(Un[0],Un[1],Un[2]);case 4:return new Tn(Un[0],Un[1],Un[2],Un[3])}var Qn=[null];return Qn.push.apply(Qn,Un),new(FS.apply(Tn,Qn))}var Hn=Dn.prototype,Gn=n_(fm(Hn)?Hn:Object.prototype),Vn=Function.apply.call(Tn,Gn,Un);return fm(Vn)?Vn:Gn}});var oC=Om.Reflect.construct;Gm({target:"Object",stat:!0,sham:!im},{create:n_});var aC=Om.Object,sC=function create(Tn,Un){return aC.create(Tn,Un)};Gm({target:"Object",stat:!0},{setPrototypeOf:g_});var lC=Om.Object.setPrototypeOf,cC=createCommonjsModule((function(Tn){function _setPrototypeOf(Un,Dn){return Tn.exports=_setPrototypeOf=lC||function _setPrototypeOf(Tn,Un){return Tn.__proto__=Un,Tn},_setPrototypeOf(Un,Dn)}Tn.exports=_setPrototypeOf}));var uC=function _inherits$1(Tn,Un){if("function"!=typeof Un&&null!==Un)throw new TypeError("Super expression must either be null or a function");Tn.prototype=sC(Un&&Un.prototype,{constructor:{value:Tn,writable:!0,configurable:!0}}),Un&&cC(Tn,Un)},dC=X_.f("iterator"),hC=createCommonjsModule((function(Tn){function _typeof(Un){return Tn.exports=_typeof="function"==typeof Lb&&"symbol"==typeof dC?function _typeof(Tn){return typeof Tn}:function _typeof(Tn){return Tn&&"function"==typeof Lb&&Tn.constructor===Lb&&Tn!==Lb.prototype?"symbol":typeof Tn},_typeof(Un)}Tn.exports=_typeof}));var pC=function _assertThisInitialized$1(Tn){if(void 0===Tn)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Tn};var gC=function _possibleConstructorReturn$1(Tn,Un){return!Un||"object"!==hC(Un)&&"function"!=typeof Un?pC(Tn):Un},fC=rm((function(){My(1)}));Gm({target:"Object",stat:!0,forced:fC,sham:!Oy},{getPrototypeOf:function getPrototypeOf(Tn){return My(Lv(Tn))}});var AC=Om.Object.getPrototypeOf,mC=createCommonjsModule((function(Tn){function _getPrototypeOf(Un){return Tn.exports=_getPrototypeOf=lC?AC:function _getPrototypeOf(Tn){return Tn.__proto__||AC(Tn)},_getPrototypeOf(Un)}Tn.exports=_getPrototypeOf}));var vC=function _arrayWithoutHoles$1(Tn){if(ry(Tn))return ew(Tn)};var yC=function _iterableToArray$1(Tn){if(void 0!==Lb&&M_(Object(Tn)))return Vb(Tn)};var _C=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 wC=function _toConsumableArray$1(Tn){return vC(Tn)||yC(Tn)||tw(Tn)||_C()},xC=Uv.some,SC=cw("some"),CC=Wv("some");Gm({target:"Array",proto:!0,forced:!SC||!CC},{some:function some(Tn){return xC(this,Tn,arguments.length>1?arguments[1]:void 0)}});var kC=gv("Array").some,BC=Array.prototype,EC=function some_1(Tn){var Un=Tn.some;return Tn===BC||Tn instanceof Array&&Un===BC.some?kC:Un},PC=zy.includes,LC=Wv("indexOf",{ACCESSORS:!0,1:0});Gm({target:"Array",proto:!0,forced:!LC},{includes:function includes(Tn){return PC(this,Tn,arguments.length>1?arguments[1]:void 0)}});var TC=gv("Array").includes;Gm({target:"String",proto:!0,forced:!uv("includes")},{includes:function includes(Tn){return!!~String(pm(this)).indexOf(sv(Tn),arguments.length>1?arguments[1]:void 0)}});var NC=gv("String").includes,IC=Array.prototype,OC=String.prototype,FC=function includes$2(Tn){var Un=Tn.includes;return Tn===IC||Tn instanceof Array&&Un===IC.includes?TC:"string"==typeof Tn||Tn===OC||Tn instanceof String&&Un===OC.includes?NC:Un},UC=Gb,MC=[].reverse,RC=[1,2];Gm({target:"Array",proto:!0,forced:String(RC)===String(RC.reverse())},{reverse:function reverse(){return Tv(this)&&(this.length=this.length),MC.call(this)}});var DC=gv("Array").reverse,jC=Array.prototype,QC=function reverse_1(Tn){var Un=Tn.reverse;return Tn===jC||Tn instanceof Array&&Un===jC.reverse?DC:Un},HC=zy.indexOf,GC=[].indexOf,VC=!!GC&&1/[1].indexOf(1,-0)<0,zC=cw("indexOf"),KC=Wv("indexOf",{ACCESSORS:!0,1:0});Gm({target:"Array",proto:!0,forced:VC||!zC||!KC},{indexOf:function indexOf(Tn){return VC?GC.apply(this,arguments)||0:HC(this,Tn,arguments.length>1?arguments[1]:void 0)}});var qC=gv("Array").indexOf,$C=Array.prototype,WC=function indexOf_1(Tn){var Un=Tn.indexOf;return Tn===$C||Tn instanceof Array&&Un===$C.indexOf?qC:Un},XC=_w;Gm({target:"Reflect",stat:!0},{get:function get$2(Tn,Un){var Dn,Qn,Hn=arguments.length<3?Tn:arguments[2];return Mm(Tn)===Hn?Tn[Un]:(Dn=km.f(Tn,Un))?vm(Dn,"value")?Dn.value:void 0===Dn.get?void 0:Dn.get.call(Hn):fm(Qn=My(Tn))?get$2(Qn,Un,Hn):void 0}});var YC=Om.Reflect.get;var JC=function _superPropBase$1(Tn,Un){for(;!Object.prototype.hasOwnProperty.call(Tn,Un)&&null!==(Tn=mC(Tn)););return Tn},ZC=createCommonjsModule((function(Tn){function _get(Un,Dn,Qn){return"undefined"!=typeof Reflect&&YC?Tn.exports=_get=YC:Tn.exports=_get=function _get(Tn,Un,Dn){var Qn=JC(Tn,Un);if(Qn){var Hn=XC(Qn,Un);return Hn.get?Hn.get.call(Dn):Hn.value}},_get(Un,Dn,Qn||Un)}Tn.exports=_get}));Gm({target:"Array",proto:!0},{fill:function fill(Tn){for(var Un=Lv(this),Dn=$m(Un.length),Qn=arguments.length,Hn=Gy(Qn>1?arguments[1]:void 0,Dn),Gn=Qn>2?arguments[2]:void 0,Vn=void 0===Gn?Dn:Gy(Gn,Dn);Vn>Hn;)Un[Hn++]=Tn;return Un}});var ek=gv("Array").fill,tk=Array.prototype,nk=function fill_1(Tn){var Un=Tn.fill;return Tn===tk||Tn instanceof Array&&Un===tk.fill?ek:Un},rk=function t(Tn,Un){return(rk=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tn,Un){Tn.__proto__=Un}||function(Tn,Un){for(var Dn in Un)Un.hasOwnProperty(Dn)&&(Tn[Dn]=Un[Dn])})(Tn,Un)};function r(Tn,Un){function i(){this.constructor=Tn}rk(Tn,Un),Tn.prototype=null===Un?Object.create(Un):(i.prototype=Un.prototype,new i)}function i$1(Tn,Un){var Dn=Tn[0],Qn=Tn[1];return[Dn*Math.cos(Un)-Qn*Math.sin(Un),Dn*Math.sin(Un)+Qn*Math.cos(Un)]}function a(){for(var Tn=[],Un=0;Un<arguments.length;Un++)Tn[Un]=arguments[Un];for(var Dn=0;Dn<Tn.length;Dn++)if("number"!=typeof Tn[Dn])throw new Error("assertNumbers arguments["+Dn+"] is not a number. "+_typeof(Tn[Dn])+" == typeof "+Tn[Dn]);return!0}var ik=Math.PI;function o(Tn,Un,Dn){Tn.lArcFlag=0===Tn.lArcFlag?0:1,Tn.sweepFlag=0===Tn.sweepFlag?0:1;var Qn=Tn.rX,Hn=Tn.rY,Gn=Tn.x,Vn=Tn.y;Qn=Math.abs(Tn.rX),Hn=Math.abs(Tn.rY);var zn=i$1([(Un-Gn)/2,(Dn-Vn)/2],-Tn.xRot/180*ik),Kn=zn[0],$n=zn[1],Wn=Math.pow(Kn,2)/Math.pow(Qn,2)+Math.pow($n,2)/Math.pow(Hn,2);1<Wn&&(Qn*=Math.sqrt(Wn),Hn*=Math.sqrt(Wn)),Tn.rX=Qn,Tn.rY=Hn;var Xn=Math.pow(Qn,2)*Math.pow($n,2)+Math.pow(Hn,2)*Math.pow(Kn,2),Yn=(Tn.lArcFlag!==Tn.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(Qn,2)*Math.pow(Hn,2)-Xn)/Xn)),Jn=Qn*$n/Hn*Yn,Zn=-Hn*Kn/Qn*Yn,er=i$1([Jn,Zn],Tn.xRot/180*ik);Tn.cX=er[0]+(Un+Gn)/2,Tn.cY=er[1]+(Dn+Vn)/2,Tn.phi1=Math.atan2(($n-Zn)/Hn,(Kn-Jn)/Qn),Tn.phi2=Math.atan2((-$n-Zn)/Hn,(-Kn-Jn)/Qn),0===Tn.sweepFlag&&Tn.phi2>Tn.phi1&&(Tn.phi2-=2*ik),1===Tn.sweepFlag&&Tn.phi2<Tn.phi1&&(Tn.phi2+=2*ik),Tn.phi1*=180/ik,Tn.phi2*=180/ik}function s(Tn,Un,Dn){a(Tn,Un,Dn);var Qn=Tn*Tn+Un*Un-Dn*Dn;if(0>Qn)return[];if(0===Qn)return[[Tn*Dn/(Tn*Tn+Un*Un),Un*Dn/(Tn*Tn+Un*Un)]];var Hn=Math.sqrt(Qn);return[[(Tn*Dn+Un*Hn)/(Tn*Tn+Un*Un),(Un*Dn-Tn*Hn)/(Tn*Tn+Un*Un)],[(Tn*Dn-Un*Hn)/(Tn*Tn+Un*Un),(Un*Dn+Tn*Hn)/(Tn*Tn+Un*Un)]]}var ok,ak=Math.PI/180;function c(Tn,Un,Dn){return(1-Dn)*Tn+Dn*Un}function y(Tn,Un,Dn,Qn){return Tn+Math.cos(Qn/180*ik)*Un+Math.sin(Qn/180*ik)*Dn}function p(Tn,Un,Dn,Qn){var Hn=Un-Tn,Gn=Dn-Un,Vn=3*Hn+3*(Qn-Dn)-6*Gn,zn=6*(Gn-Hn),Kn=3*Hn;return Math.abs(Vn)<1e-6?[-Kn/zn]:function(Tn,Un,Dn){void 0===Dn&&(Dn=1e-6);var Qn=Tn*Tn/4-Un;if(Qn<-Dn)return[];if(Qn<=Dn)return[-Tn/2];var Hn=Math.sqrt(Qn);return[-Tn/2-Hn,-Tn/2+Hn]}(zn/Vn,Kn/Vn,1e-6)}function m(Tn,Un,Dn,Qn,Hn){var Gn=1-Hn;return Tn*(Gn*Gn*Gn)+Un*(3*Gn*Gn*Hn)+Dn*(3*Gn*Hn*Hn)+Qn*(Hn*Hn*Hn)}!function(Tn){function r(){return u((function(Tn,Un,Dn){return Tn.relative&&(void 0!==Tn.x1&&(Tn.x1+=Un),void 0!==Tn.y1&&(Tn.y1+=Dn),void 0!==Tn.x2&&(Tn.x2+=Un),void 0!==Tn.y2&&(Tn.y2+=Dn),void 0!==Tn.x&&(Tn.x+=Un),void 0!==Tn.y&&(Tn.y+=Dn),Tn.relative=!1),Tn}))}function e(){var Tn=NaN,Un=NaN,Dn=NaN,Qn=NaN;return u((function(Hn,Gn,Vn){return Hn.type&hk.SMOOTH_CURVE_TO&&(Hn.type=hk.CURVE_TO,Tn=isNaN(Tn)?Gn:Tn,Un=isNaN(Un)?Vn:Un,Hn.x1=Hn.relative?Gn-Tn:2*Gn-Tn,Hn.y1=Hn.relative?Vn-Un:2*Vn-Un),Hn.type&hk.CURVE_TO?(Tn=Hn.relative?Gn+Hn.x2:Hn.x2,Un=Hn.relative?Vn+Hn.y2:Hn.y2):(Tn=NaN,Un=NaN),Hn.type&hk.SMOOTH_QUAD_TO&&(Hn.type=hk.QUAD_TO,Dn=isNaN(Dn)?Gn:Dn,Qn=isNaN(Qn)?Vn:Qn,Hn.x1=Hn.relative?Gn-Dn:2*Gn-Dn,Hn.y1=Hn.relative?Vn-Qn:2*Vn-Qn),Hn.type&hk.QUAD_TO?(Dn=Hn.relative?Gn+Hn.x1:Hn.x1,Qn=Hn.relative?Vn+Hn.y1:Hn.y1):(Dn=NaN,Qn=NaN),Hn}))}function n(){var Tn=NaN,Un=NaN;return u((function(Dn,Qn,Hn){if(Dn.type&hk.SMOOTH_QUAD_TO&&(Dn.type=hk.QUAD_TO,Tn=isNaN(Tn)?Qn:Tn,Un=isNaN(Un)?Hn:Un,Dn.x1=Dn.relative?Qn-Tn:2*Qn-Tn,Dn.y1=Dn.relative?Hn-Un:2*Hn-Un),Dn.type&hk.QUAD_TO){Tn=Dn.relative?Qn+Dn.x1:Dn.x1,Un=Dn.relative?Hn+Dn.y1:Dn.y1;var Gn=Dn.x1,Vn=Dn.y1;Dn.type=hk.CURVE_TO,Dn.x1=((Dn.relative?0:Qn)+2*Gn)/3,Dn.y1=((Dn.relative?0:Hn)+2*Vn)/3,Dn.x2=(Dn.x+2*Gn)/3,Dn.y2=(Dn.y+2*Vn)/3}else Tn=NaN,Un=NaN;return Dn}))}function u(Tn){var Un=0,Dn=0,Qn=NaN,Hn=NaN;return function(Gn){if(isNaN(Qn)&&!(Gn.type&hk.MOVE_TO))throw new Error("path must start with moveto");var Vn=Tn(Gn,Un,Dn,Qn,Hn);return Gn.type&hk.CLOSE_PATH&&(Un=Qn,Dn=Hn),void 0!==Gn.x&&(Un=Gn.relative?Un+Gn.x:Gn.x),void 0!==Gn.y&&(Dn=Gn.relative?Dn+Gn.y:Gn.y),Gn.type&hk.MOVE_TO&&(Qn=Un,Hn=Dn),Vn}}function O(Tn,Un,Dn,Qn,Hn,Gn){return a(Tn,Un,Dn,Qn,Hn,Gn),u((function(Vn,zn,Kn,$n){var Wn=Vn.x1,Xn=Vn.x2,Yn=Vn.relative&&!isNaN($n),Jn=void 0!==Vn.x?Vn.x:Yn?0:zn,Zn=void 0!==Vn.y?Vn.y:Yn?0:Kn;function T(Tn){return Tn*Tn}Vn.type&hk.HORIZ_LINE_TO&&0!==Un&&(Vn.type=hk.LINE_TO,Vn.y=Vn.relative?0:Kn),Vn.type&hk.VERT_LINE_TO&&0!==Dn&&(Vn.type=hk.LINE_TO,Vn.x=Vn.relative?0:zn),void 0!==Vn.x&&(Vn.x=Vn.x*Tn+Zn*Dn+(Yn?0:Hn)),void 0!==Vn.y&&(Vn.y=Jn*Un+Vn.y*Qn+(Yn?0:Gn)),void 0!==Vn.x1&&(Vn.x1=Vn.x1*Tn+Vn.y1*Dn+(Yn?0:Hn)),void 0!==Vn.y1&&(Vn.y1=Wn*Un+Vn.y1*Qn+(Yn?0:Gn)),void 0!==Vn.x2&&(Vn.x2=Vn.x2*Tn+Vn.y2*Dn+(Yn?0:Hn)),void 0!==Vn.y2&&(Vn.y2=Xn*Un+Vn.y2*Qn+(Yn?0:Gn));var er=Tn*Qn-Un*Dn;if(void 0!==Vn.xRot&&(1!==Tn||0!==Un||0!==Dn||1!==Qn))if(0===er)delete Vn.rX,delete Vn.rY,delete Vn.xRot,delete Vn.lArcFlag,delete Vn.sweepFlag,Vn.type=hk.LINE_TO;else{var tr=Vn.xRot*Math.PI/180,nr=Math.sin(tr),rr=Math.cos(tr),ir=1/T(Vn.rX),or=1/T(Vn.rY),ar=T(rr)*ir+T(nr)*or,sr=2*nr*rr*(ir-or),lr=T(nr)*ir+T(rr)*or,cr=ar*Qn*Qn-sr*Un*Qn+lr*Un*Un,ur=sr*(Tn*Qn+Un*Dn)-2*(ar*Dn*Qn+lr*Tn*Un),dr=ar*Dn*Dn-sr*Tn*Dn+lr*Tn*Tn,hr=(Math.atan2(ur,cr-dr)+Math.PI)%Math.PI/2,pr=Math.sin(hr),gr=Math.cos(hr);Vn.rX=Math.abs(er)/Math.sqrt(cr*T(gr)+ur*pr*gr+dr*T(pr)),Vn.rY=Math.abs(er)/Math.sqrt(cr*T(pr)-ur*pr*gr+dr*T(gr)),Vn.xRot=180*hr/Math.PI}return void 0!==Vn.sweepFlag&&0>er&&(Vn.sweepFlag=+!Vn.sweepFlag),Vn}))}Tn.ROUND=function(Tn){function r(Un){return Math.round(Un*Tn)/Tn}return void 0===Tn&&(Tn=1e13),a(Tn),function(Tn){return void 0!==Tn.x1&&(Tn.x1=r(Tn.x1)),void 0!==Tn.y1&&(Tn.y1=r(Tn.y1)),void 0!==Tn.x2&&(Tn.x2=r(Tn.x2)),void 0!==Tn.y2&&(Tn.y2=r(Tn.y2)),void 0!==Tn.x&&(Tn.x=r(Tn.x)),void 0!==Tn.y&&(Tn.y=r(Tn.y)),void 0!==Tn.rX&&(Tn.rX=r(Tn.rX)),void 0!==Tn.rY&&(Tn.rY=r(Tn.rY)),Tn}},Tn.TO_ABS=r,Tn.TO_REL=function(){return u((function(Tn,Un,Dn){return Tn.relative||(void 0!==Tn.x1&&(Tn.x1-=Un),void 0!==Tn.y1&&(Tn.y1-=Dn),void 0!==Tn.x2&&(Tn.x2-=Un),void 0!==Tn.y2&&(Tn.y2-=Dn),void 0!==Tn.x&&(Tn.x-=Un),void 0!==Tn.y&&(Tn.y-=Dn),Tn.relative=!0),Tn}))},Tn.NORMALIZE_HVZ=function(Tn,Un,Dn){return void 0===Tn&&(Tn=!0),void 0===Un&&(Un=!0),void 0===Dn&&(Dn=!0),u((function(Qn,Hn,Gn,Vn,zn){if(isNaN(Vn)&&!(Qn.type&hk.MOVE_TO))throw new Error("path must start with moveto");return Un&&Qn.type&hk.HORIZ_LINE_TO&&(Qn.type=hk.LINE_TO,Qn.y=Qn.relative?0:Gn),Dn&&Qn.type&hk.VERT_LINE_TO&&(Qn.type=hk.LINE_TO,Qn.x=Qn.relative?0:Hn),Tn&&Qn.type&hk.CLOSE_PATH&&(Qn.type=hk.LINE_TO,Qn.x=Qn.relative?Vn-Hn:Vn,Qn.y=Qn.relative?zn-Gn:zn),Qn.type&hk.ARC&&(0===Qn.rX||0===Qn.rY)&&(Qn.type=hk.LINE_TO,delete Qn.rX,delete Qn.rY,delete Qn.xRot,delete Qn.lArcFlag,delete Qn.sweepFlag),Qn}))},Tn.NORMALIZE_ST=e,Tn.QT_TO_C=n,Tn.INFO=u,Tn.SANITIZE=function(Tn){void 0===Tn&&(Tn=0),a(Tn);var Un=NaN,Dn=NaN,Qn=NaN,Hn=NaN;return u((function(Gn,Vn,zn,Kn,$n){var Wn=Math.abs,Xn=!1,Yn=0,Jn=0;if(Gn.type&hk.SMOOTH_CURVE_TO&&(Yn=isNaN(Un)?0:Vn-Un,Jn=isNaN(Dn)?0:zn-Dn),Gn.type&(hk.CURVE_TO|hk.SMOOTH_CURVE_TO)?(Un=Gn.relative?Vn+Gn.x2:Gn.x2,Dn=Gn.relative?zn+Gn.y2:Gn.y2):(Un=NaN,Dn=NaN),Gn.type&hk.SMOOTH_QUAD_TO?(Qn=isNaN(Qn)?Vn:2*Vn-Qn,Hn=isNaN(Hn)?zn:2*zn-Hn):Gn.type&hk.QUAD_TO?(Qn=Gn.relative?Vn+Gn.x1:Gn.x1,Hn=Gn.relative?zn+Gn.y1:Gn.y2):(Qn=NaN,Hn=NaN),Gn.type&hk.LINE_COMMANDS||Gn.type&hk.ARC&&(0===Gn.rX||0===Gn.rY||!Gn.lArcFlag)||Gn.type&hk.CURVE_TO||Gn.type&hk.SMOOTH_CURVE_TO||Gn.type&hk.QUAD_TO||Gn.type&hk.SMOOTH_QUAD_TO){var Zn=void 0===Gn.x?0:Gn.relative?Gn.x:Gn.x-Vn,er=void 0===Gn.y?0:Gn.relative?Gn.y:Gn.y-zn;Yn=isNaN(Qn)?void 0===Gn.x1?Yn:Gn.relative?Gn.x:Gn.x1-Vn:Qn-Vn,Jn=isNaN(Hn)?void 0===Gn.y1?Jn:Gn.relative?Gn.y:Gn.y1-zn:Hn-zn;var tr=void 0===Gn.x2?0:Gn.relative?Gn.x:Gn.x2-Vn,nr=void 0===Gn.y2?0:Gn.relative?Gn.y:Gn.y2-zn;Wn(Zn)<=Tn&&Wn(er)<=Tn&&Wn(Yn)<=Tn&&Wn(Jn)<=Tn&&Wn(tr)<=Tn&&Wn(nr)<=Tn&&(Xn=!0)}return Gn.type&hk.CLOSE_PATH&&Wn(Vn-Kn)<=Tn&&Wn(zn-$n)<=Tn&&(Xn=!0),Xn?[]:Gn}))},Tn.MATRIX=O,Tn.ROTATE=function(Tn,Un,Dn){void 0===Un&&(Un=0),void 0===Dn&&(Dn=0),a(Tn,Un,Dn);var Qn=Math.sin(Tn),Hn=Math.cos(Tn);return O(Hn,Qn,-Qn,Hn,Un-Un*Hn+Dn*Qn,Dn-Un*Qn-Dn*Hn)},Tn.TRANSLATE=function(Tn,Un){return void 0===Un&&(Un=0),a(Tn,Un),O(1,0,0,1,Tn,Un)},Tn.SCALE=function(Tn,Un){return void 0===Un&&(Un=Tn),a(Tn,Un),O(Tn,0,0,Un,0,0)},Tn.SKEW_X=function(Tn){return a(Tn),O(1,0,Math.atan(Tn),1,0,0)},Tn.SKEW_Y=function(Tn){return a(Tn),O(1,Math.atan(Tn),0,1,0,0)},Tn.X_AXIS_SYMMETRY=function(Tn){return void 0===Tn&&(Tn=0),a(Tn),O(-1,0,0,1,Tn,0)},Tn.Y_AXIS_SYMMETRY=function(Tn){return void 0===Tn&&(Tn=0),a(Tn),O(1,0,0,-1,0,Tn)},Tn.A_TO_C=function(){return u((function(Tn,Un,Dn){return hk.ARC===Tn.type?function(Tn,Un,Dn){var Qn,Hn,Gn,Vn;Tn.cX||o(Tn,Un,Dn);for(var zn=Math.min(Tn.phi1,Tn.phi2),Kn=Math.max(Tn.phi1,Tn.phi2)-zn,$n=Math.ceil(Kn/90),Wn=new Array($n),Xn=Un,Yn=Dn,Jn=0;Jn<$n;Jn++){var Zn=c(Tn.phi1,Tn.phi2,Jn/$n),er=c(Tn.phi1,Tn.phi2,(Jn+1)/$n),tr=er-Zn,nr=4/3*Math.tan(tr*ak/4),rr=[Math.cos(Zn*ak)-nr*Math.sin(Zn*ak),Math.sin(Zn*ak)+nr*Math.cos(Zn*ak)],ir=rr[0],or=rr[1],ar=[Math.cos(er*ak),Math.sin(er*ak)],sr=ar[0],lr=ar[1],cr=[sr+nr*Math.sin(er*ak),lr-nr*Math.cos(er*ak)],ur=cr[0],dr=cr[1];Wn[Jn]={relative:Tn.relative,type:hk.CURVE_TO};var hr=function H(Un,Dn){var Qn=i$1([Un*Tn.rX,Dn*Tn.rY],Tn.xRot),Hn=Qn[0],Gn=Qn[1];return[Tn.cX+Hn,Tn.cY+Gn]};Qn=hr(ir,or),Wn[Jn].x1=Qn[0],Wn[Jn].y1=Qn[1],Hn=hr(ur,dr),Wn[Jn].x2=Hn[0],Wn[Jn].y2=Hn[1],Gn=hr(sr,lr),Wn[Jn].x=Gn[0],Wn[Jn].y=Gn[1],Tn.relative&&(Wn[Jn].x1-=Xn,Wn[Jn].y1-=Yn,Wn[Jn].x2-=Xn,Wn[Jn].y2-=Yn,Wn[Jn].x-=Xn,Wn[Jn].y-=Yn),Xn=(Vn=[Wn[Jn].x,Wn[Jn].y])[0],Yn=Vn[1]}return Wn}(Tn,Tn.relative?0:Un,Tn.relative?0:Dn):Tn}))},Tn.ANNOTATE_ARCS=function(){return u((function(Tn,Un,Dn){return Tn.relative&&(Un=0,Dn=0),hk.ARC===Tn.type&&o(Tn,Un,Dn),Tn}))},Tn.CLONE=function T(){return function(Tn){var Un={};for(var Dn in Tn)Un[Dn]=Tn[Dn];return Un}},Tn.CALCULATE_BOUNDS=function(){var Tn=r(),Un=n(),Dn=e(),Qn=u((function(Hn,Gn,Vn){var zn=Dn(Un(Tn(function t(Tn){var Un={};for(var Dn in Tn)Un[Dn]=Tn[Dn];return Un}(Hn))));function O(Tn){Tn>Qn.maxX&&(Qn.maxX=Tn),Tn<Qn.minX&&(Qn.minX=Tn)}function T(Tn){Tn>Qn.maxY&&(Qn.maxY=Tn),Tn<Qn.minY&&(Qn.minY=Tn)}if(zn.type&hk.DRAWING_COMMANDS&&(O(Gn),T(Vn)),zn.type&hk.HORIZ_LINE_TO&&O(zn.x),zn.type&hk.VERT_LINE_TO&&T(zn.y),zn.type&hk.LINE_TO&&(O(zn.x),T(zn.y)),zn.type&hk.CURVE_TO){O(zn.x),T(zn.y);for(var Kn=0,$n=p(Gn,zn.x1,zn.x2,zn.x);Kn<$n.length;Kn++)0<(ur=$n[Kn])&&1>ur&&O(m(Gn,zn.x1,zn.x2,zn.x,ur));for(var Wn=0,Xn=p(Vn,zn.y1,zn.y2,zn.y);Wn<Xn.length;Wn++)0<(ur=Xn[Wn])&&1>ur&&T(m(Vn,zn.y1,zn.y2,zn.y,ur))}if(zn.type&hk.ARC){O(zn.x),T(zn.y),o(zn,Gn,Vn);for(var Yn=zn.xRot/180*Math.PI,Jn=Math.cos(Yn)*zn.rX,Zn=Math.sin(Yn)*zn.rX,er=-Math.sin(Yn)*zn.rY,tr=Math.cos(Yn)*zn.rY,nr=zn.phi1<zn.phi2?[zn.phi1,zn.phi2]:-180>zn.phi2?[zn.phi2+360,zn.phi1+360]:[zn.phi2,zn.phi1],rr=nr[0],ir=nr[1],or=function I(Tn){var Un=Tn[0],Dn=Tn[1],Qn=180*Math.atan2(Dn,Un)/Math.PI;return Qn<rr?Qn+360:Qn},ar=0,sr=s(er,-Jn,0).map(or);ar<sr.length;ar++)(ur=sr[ar])>rr&&ur<ir&&O(y(zn.cX,Jn,er,ur));for(var lr=0,cr=s(tr,-Zn,0).map(or);lr<cr.length;lr++){var ur;(ur=cr[lr])>rr&&ur<ir&&T(y(zn.cY,Zn,tr,ur))}}return Hn}));return Qn.minX=1/0,Qn.maxX=-1/0,Qn.minY=1/0,Qn.maxY=-1/0,Qn}}(ok||(ok={}));var sk,lk=function(){function t(){}return t.prototype.round=function(Tn){return this.transform(ok.ROUND(Tn))},t.prototype.toAbs=function(){return this.transform(ok.TO_ABS())},t.prototype.toRel=function(){return this.transform(ok.TO_REL())},t.prototype.normalizeHVZ=function(Tn,Un,Dn){return this.transform(ok.NORMALIZE_HVZ(Tn,Un,Dn))},t.prototype.normalizeST=function(){return this.transform(ok.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(ok.QT_TO_C())},t.prototype.aToC=function(){return this.transform(ok.A_TO_C())},t.prototype.sanitize=function(Tn){return this.transform(ok.SANITIZE(Tn))},t.prototype.translate=function(Tn,Un){return this.transform(ok.TRANSLATE(Tn,Un))},t.prototype.scale=function(Tn,Un){return this.transform(ok.SCALE(Tn,Un))},t.prototype.rotate=function(Tn,Un,Dn){return this.transform(ok.ROTATE(Tn,Un,Dn))},t.prototype.matrix=function(Tn,Un,Dn,Qn,Hn,Gn){return this.transform(ok.MATRIX(Tn,Un,Dn,Qn,Hn,Gn))},t.prototype.skewX=function(Tn){return this.transform(ok.SKEW_X(Tn))},t.prototype.skewY=function(Tn){return this.transform(ok.SKEW_Y(Tn))},t.prototype.xSymmetry=function(Tn){return this.transform(ok.X_AXIS_SYMMETRY(Tn))},t.prototype.ySymmetry=function(Tn){return this.transform(ok.Y_AXIS_SYMMETRY(Tn))},t.prototype.annotateArcs=function(){return this.transform(ok.ANNOTATE_ARCS())},t}(),ck=function v(Tn){return" "===Tn||"\t"===Tn||"\r"===Tn||"\n"===Tn},uk=function l(Tn){return"0".charCodeAt(0)<=Tn.charCodeAt(0)&&Tn.charCodeAt(0)<="9".charCodeAt(0)},dk=function(Tn){function e(){var Un=Tn.call(this)||this;return Un.curNumber="",Un.curCommandType=-1,Un.curCommandRelative=!1,Un.canParseCommandOrComma=!0,Un.curNumberHasExp=!1,Un.curNumberHasExpDigits=!1,Un.curNumberHasDecimal=!1,Un.curArgs=[],Un}return r(e,Tn),e.prototype.finish=function(Tn){if(void 0===Tn&&(Tn=[]),this.parse(" ",Tn),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return Tn},e.prototype.parse=function(Tn,Un){var Dn=this;void 0===Un&&(Un=[]);for(var Qn=function i(Tn){Un.push(Tn),Dn.curArgs.length=0,Dn.canParseCommandOrComma=!0},Hn=0;Hn<Tn.length;Hn++){var Gn=Tn[Hn],Vn=!(this.curCommandType!==hk.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),zn=uk(Gn)&&("0"===this.curNumber&&"0"===Gn||Vn);if(!uk(Gn)||zn)if("e"!==Gn&&"E"!==Gn)if("-"!==Gn&&"+"!==Gn||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==Gn||this.curNumberHasExp||this.curNumberHasDecimal||Vn){if(this.curNumber&&-1!==this.curCommandType){var Kn=Number(this.curNumber);if(isNaN(Kn))throw new SyntaxError("Invalid number ending at "+Hn);if(this.curCommandType===hk.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>Kn)throw new SyntaxError('Expected positive number, got "'+Kn+'" at index "'+Hn+'"')}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 "'+Hn+'"');this.curArgs.push(Kn),this.curArgs.length===pk[this.curCommandType]&&(hk.HORIZ_LINE_TO===this.curCommandType?Qn({type:hk.HORIZ_LINE_TO,relative:this.curCommandRelative,x:Kn}):hk.VERT_LINE_TO===this.curCommandType?Qn({type:hk.VERT_LINE_TO,relative:this.curCommandRelative,y:Kn}):this.curCommandType===hk.MOVE_TO||this.curCommandType===hk.LINE_TO||this.curCommandType===hk.SMOOTH_QUAD_TO?(Qn({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),hk.MOVE_TO===this.curCommandType&&(this.curCommandType=hk.LINE_TO)):this.curCommandType===hk.CURVE_TO?Qn({type:hk.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===hk.SMOOTH_CURVE_TO?Qn({type:hk.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===hk.QUAD_TO?Qn({type:hk.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===hk.ARC&&Qn({type:hk.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(!ck(Gn))if(","===Gn&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==Gn&&"-"!==Gn&&"."!==Gn)if(zn)this.curNumber=Gn,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+Hn+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+Gn+'" at index '+Hn+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==Gn&&"Z"!==Gn)if("h"===Gn||"H"===Gn)this.curCommandType=hk.HORIZ_LINE_TO,this.curCommandRelative="h"===Gn;else if("v"===Gn||"V"===Gn)this.curCommandType=hk.VERT_LINE_TO,this.curCommandRelative="v"===Gn;else if("m"===Gn||"M"===Gn)this.curCommandType=hk.MOVE_TO,this.curCommandRelative="m"===Gn;else if("l"===Gn||"L"===Gn)this.curCommandType=hk.LINE_TO,this.curCommandRelative="l"===Gn;else if("c"===Gn||"C"===Gn)this.curCommandType=hk.CURVE_TO,this.curCommandRelative="c"===Gn;else if("s"===Gn||"S"===Gn)this.curCommandType=hk.SMOOTH_CURVE_TO,this.curCommandRelative="s"===Gn;else if("q"===Gn||"Q"===Gn)this.curCommandType=hk.QUAD_TO,this.curCommandRelative="q"===Gn;else if("t"===Gn||"T"===Gn)this.curCommandType=hk.SMOOTH_QUAD_TO,this.curCommandRelative="t"===Gn;else{if("a"!==Gn&&"A"!==Gn)throw new SyntaxError('Unexpected character "'+Gn+'" at index '+Hn+".");this.curCommandType=hk.ARC,this.curCommandRelative="a"===Gn}else Un.push({type:hk.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=Gn,this.curNumberHasDecimal="."===Gn}else this.curNumber+=Gn,this.curNumberHasDecimal=!0;else this.curNumber+=Gn;else this.curNumber+=Gn,this.curNumberHasExp=!0;else this.curNumber+=Gn,this.curNumberHasExpDigits=this.curNumberHasExp}return Un},e.prototype.transform=function(Tn){return Object.create(this,{parse:{value:function value(Un,Dn){void 0===Dn&&(Dn=[]);for(var Qn=0,Hn=Object.getPrototypeOf(this).parse.call(this,Un);Qn<Hn.length;Qn++){var Gn=Hn[Qn],Vn=Tn(Gn);Array.isArray(Vn)?Dn.push.apply(Dn,Vn):Dn.push(Vn)}return Dn}}})},e}(lk),hk=function(Tn){function i(Un){var Dn=Tn.call(this)||this;return Dn.commands="string"==typeof Un?i.parse(Un):Un,Dn}return r(i,Tn),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var Tn=ok.CALCULATE_BOUNDS();return this.transform(Tn),Tn},i.prototype.transform=function(Tn){for(var Un=[],Dn=0,Qn=this.commands;Dn<Qn.length;Dn++){var Hn=Tn(Qn[Dn]);Array.isArray(Hn)?Un.push.apply(Un,Hn):Un.push(Hn)}return this.commands=Un,this},i.encode=function(Tn){return function e(Tn){var Un="";Array.isArray(Tn)||(Tn=[Tn]);for(var Dn=0;Dn<Tn.length;Dn++){var Qn=Tn[Dn];if(Qn.type===hk.CLOSE_PATH)Un+="z";else if(Qn.type===hk.HORIZ_LINE_TO)Un+=(Qn.relative?"h":"H")+Qn.x;else if(Qn.type===hk.VERT_LINE_TO)Un+=(Qn.relative?"v":"V")+Qn.y;else if(Qn.type===hk.MOVE_TO)Un+=(Qn.relative?"m":"M")+Qn.x+" "+Qn.y;else if(Qn.type===hk.LINE_TO)Un+=(Qn.relative?"l":"L")+Qn.x+" "+Qn.y;else if(Qn.type===hk.CURVE_TO)Un+=(Qn.relative?"c":"C")+Qn.x1+" "+Qn.y1+" "+Qn.x2+" "+Qn.y2+" "+Qn.x+" "+Qn.y;else if(Qn.type===hk.SMOOTH_CURVE_TO)Un+=(Qn.relative?"s":"S")+Qn.x2+" "+Qn.y2+" "+Qn.x+" "+Qn.y;else if(Qn.type===hk.QUAD_TO)Un+=(Qn.relative?"q":"Q")+Qn.x1+" "+Qn.y1+" "+Qn.x+" "+Qn.y;else if(Qn.type===hk.SMOOTH_QUAD_TO)Un+=(Qn.relative?"t":"T")+Qn.x+" "+Qn.y;else{if(Qn.type!==hk.ARC)throw new Error('Unexpected command type "'+Qn.type+'" at index '+Dn+".");Un+=(Qn.relative?"a":"A")+Qn.rX+" "+Qn.rY+" "+Qn.xRot+" "+ +Qn.lArcFlag+" "+ +Qn.sweepFlag+" "+Qn.x+" "+Qn.y}}return Un}(Tn)},i.parse=function(Tn){var Un=new dk,Dn=[];return Un.parse(Tn,Dn),Un.finish(Dn),Dn},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}(lk),pk=((sk={})[hk.MOVE_TO]=2,sk[hk.LINE_TO]=2,sk[hk.HORIZ_LINE_TO]=1,sk[hk.VERT_LINE_TO]=1,sk[hk.CLOSE_PATH]=0,sk[hk.QUAD_TO]=4,sk[hk.SMOOTH_QUAD_TO]=2,sk[hk.CURVE_TO]=6,sk[hk.SMOOTH_CURVE_TO]=4,sk[hk.ARC]=7,sk),gk=km.f;Gm({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(Tn,Un){var Dn=gk(Mm(Tn),Un);return!(Dn&&!Dn.configurable)&&delete Tn[Un]}});var fk=Om.Reflect.deleteProperty,Ak=gv("Array").values,mk=Array.prototype,vk={DOMTokenList:!0,NodeList:!0},yk=function values_1(Tn){var Un=Tn.values;return Tn===mk||Tn instanceof Array&&Un===mk.values||vk.hasOwnProperty(s_(Tn))?Ak:Un},_k=xv.trim,wk=nm.parseInt,xk=/^[+-]?0[Xx]/,Sk=8!==wk(vv+"08")||22!==wk(vv+"0x16")?function parseInt(Tn,Un){var Dn=_k(String(Tn));return wk(Dn,Un>>>0||(xk.test(Dn)?16:10))}:wk;Gm({global:!0,forced:parseInt!=Sk},{parseInt:Sk});var Ck=Om.parseInt,kk=ny,Bk=O_,Ek=Pb,Pk=Jb,Lk=Object.isExtensible,Tk=fails((function(){Lk(1)}));_export({target:"Object",stat:!0,forced:Tk},{isExtensible:function isExtensible(Tn){return!!isObject(Tn)&&(!Lk||Lk(Tn))}});var Nk=kh.onFreeze,Ik=Object.preventExtensions,Ok=fails((function(){Ik(1)}));_export({target:"Object",stat:!0,forced:Ok,sham:!Ch},{preventExtensions:function preventExtensions(Tn){return Ik&&isObject(Tn)?Ik(Nk(Tn)):Tn}});var Fk=!rm((function(){return Object.isExtensible(Object.preventExtensions({}))})),Uk=createCommonjsModule((function(Tn){var Un=Dm.f,Dn=Zm("meta"),Qn=0,Hn=Object.isExtensible||function(){return!0},Gn=function setMetadata(Tn){Un(Tn,Dn,{value:{objectID:"O"+ ++Qn,weakData:{}}})},Vn=Tn.exports={REQUIRED:!1,fastKey:function fastKey(Tn,Un){if(!fm(Tn))return"symbol"==_typeof(Tn)?Tn:("string"==typeof Tn?"S":"P")+Tn;if(!vm(Tn,Dn)){if(!Hn(Tn))return"F";if(!Un)return"E";Gn(Tn)}return Tn[Dn].objectID},getWeakData:function getWeakData(Tn,Un){if(!vm(Tn,Dn)){if(!Hn(Tn))return!0;if(!Un)return!1;Gn(Tn)}return Tn[Dn].weakData},onFreeze:function onFreeze(Tn){return Fk&&Vn.REQUIRED&&Hn(Tn)&&!vm(Tn,Dn)&&Gn(Tn),Tn}};xy[Dn]=!0})),Mk=Dm.f,Rk=Uv.forEach,Dk=Iy.set,jk=Iy.getterFor,Qk=Dm.f,Hk=Uk.fastKey,Gk=Iy.set,Vk=Iy.getterFor,zk=(function collection(Tn,Un,Dn){var Qn,Hn=-1!==Tn.indexOf("Map"),Gn=-1!==Tn.indexOf("Weak"),Vn=Hn?"set":"add",zn=nm[Tn],Kn=zn&&zn.prototype,$n={};if(im&&"function"==typeof zn&&(Gn||Kn.forEach&&!rm((function(){(new zn).entries().next()})))){Qn=Un((function(Un,Dn){Dk(jw(Un,Qn,Tn),{type:Tn,collection:new zn}),null!=Dn&&Iw(Dn,Un[Vn],{that:Un,AS_ENTRIES:Hn})}));var Wn=jk(Tn);Rk(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(Tn){var Un="add"==Tn||"set"==Tn;!(Tn in Kn)||Gn&&"clear"==Tn||jm(Qn.prototype,Tn,(function(Dn,Qn){var Hn=Wn(this).collection;if(!Un&&Gn&&!fm(Dn))return"get"==Tn&&void 0;var Vn=Hn[Tn](0===Dn?0:Dn,Qn);return Un?this:Vn}))})),Gn||Mk(Qn.prototype,"size",{configurable:!0,get:function get(){return Wn(this).collection.size}})}else Qn=Dn.getConstructor(Un,Tn,Hn,Vn),Uk.REQUIRED=!0;d_(Qn,Tn,!1,!0),$n[Tn]=Qn,Gm({global:!0,forced:!0},$n),Gn||Dn.setStrong(Qn,Tn,Hn)}("Map",(function(Tn){return function Map(){return Tn(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function getConstructor(Tn,Un,Dn,Qn){var Hn=Tn((function(Tn,Gn){jw(Tn,Hn,Un),Gk(Tn,{type:Un,index:n_(null),first:void 0,last:void 0,size:0}),im||(Tn.size=0),null!=Gn&&Iw(Gn,Tn[Qn],{that:Tn,AS_ENTRIES:Dn})})),Gn=Vk(Un),Vn=function define(Tn,Un,Dn){var Qn,Hn,Vn=Gn(Tn),Kn=zn(Tn,Un);return Kn?Kn.value=Dn:(Vn.last=Kn={index:Hn=Hk(Un,!0),key:Un,value:Dn,previous:Qn=Vn.last,next:void 0,removed:!1},Vn.first||(Vn.first=Kn),Qn&&(Qn.next=Kn),im?Vn.size++:Tn.size++,"F"!==Hn&&(Vn.index[Hn]=Kn)),Tn},zn=function getEntry(Tn,Un){var Dn,Qn=Gn(Tn),Hn=Hk(Un);if("F"!==Hn)return Qn.index[Hn];for(Dn=Qn.first;Dn;Dn=Dn.next)if(Dn.key==Un)return Dn};return Mw(Hn.prototype,{clear:function clear(){for(var Tn=Gn(this),Un=Tn.index,Dn=Tn.first;Dn;)Dn.removed=!0,Dn.previous&&(Dn.previous=Dn.previous.next=void 0),delete Un[Dn.index],Dn=Dn.next;Tn.first=Tn.last=void 0,im?Tn.size=0:this.size=0},delete:function _delete(Tn){var Un=this,Dn=Gn(Un),Qn=zn(Un,Tn);if(Qn){var Hn=Qn.next,Vn=Qn.previous;delete Dn.index[Qn.index],Qn.removed=!0,Vn&&(Vn.next=Hn),Hn&&(Hn.previous=Vn),Dn.first==Qn&&(Dn.first=Hn),Dn.last==Qn&&(Dn.last=Vn),im?Dn.size--:Un.size--}return!!Qn},forEach:function forEach(Tn){for(var Un,Dn=Gn(this),Qn=Um(Tn,arguments.length>1?arguments[1]:void 0,3);Un=Un?Un.next:Dn.first;)for(Qn(Un.value,Un.key,this);Un&&Un.removed;)Un=Un.previous},has:function has(Tn){return!!zn(this,Tn)}}),Mw(Hn.prototype,Dn?{get:function get(Tn){var Un=zn(this,Tn);return Un&&Un.value},set:function set(Tn,Un){return Vn(this,0===Tn?0:Tn,Un)}}:{add:function add(Tn){return Vn(this,Tn=0===Tn?0:Tn,Tn)}}),im&&Qk(Hn.prototype,"size",{get:function get(){return Gn(this).size}}),Hn},setStrong:function setStrong(Tn,Un,Dn){var Qn=Un+" Iterator",Hn=Vk(Un),Gn=Vk(Qn);w_(Tn,Un,(function(Tn,Un){Gk(this,{type:Qn,target:Tn,state:Hn(Tn),kind:Un,last:void 0})}),(function(){for(var Tn=Gn(this),Un=Tn.kind,Dn=Tn.last;Dn&&Dn.removed;)Dn=Dn.previous;return Tn.target&&(Tn.last=Dn=Dn?Dn.next:Tn.state.first)?"keys"==Un?{value:Dn.key,done:!1}:"values"==Un?{value:Dn.value,done:!1}:{value:[Dn.key,Dn.value],done:!1}:(Tn.target=void 0,{value:void 0,done:!0})}),Dn?"entries":"values",!Dn,!0),Dw(Un)}}),Om.Map),Kk=Rv("Reflect","apply"),qk=Function.apply,$k=!rm((function(){Kk((function(){}))}));Gm({target:"Reflect",stat:!0,forced:$k},{apply:function apply(Tn,Un,Dn){return Fm(Tn),Mm(Dn),Kk?Kk(Tn,Un,Dn):qk.call(Tn,Un,Dn)}});var Wk=Om.Reflect.apply;Gm({target:"Reflect",stat:!0,sham:!Oy},{getPrototypeOf:function getPrototypeOf(Tn){return My(Mm(Tn))}});var Xk=Om.Reflect.getPrototypeOf;function _typeof$1(Tn){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(Tn){return typeof Tn}:function _typeof(Tn){return Tn&&"function"==typeof Symbol&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":typeof Tn})(Tn)}var Yk=[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],Jk=[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(Tn,Un,Dn,Qn,Hn,Gn){if(!(isNaN(Gn)||Gn<1)){Gn|=0;var Vn=function getImageDataFromCanvas(Tn,Un,Dn,Qn,Hn){if("string"==typeof Tn&&(Tn=document.getElementById(Tn)),!Tn||"object"!==_typeof$1(Tn)||!("getContext"in Tn))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var Gn=Tn.getContext("2d");try{return Gn.getImageData(Un,Dn,Qn,Hn)}catch(Tn){throw new Error("unable to access image data: "+Tn)}}(Tn,Un,Dn,Qn,Hn);Vn=function processImageDataRGBA(Tn,Un,Dn,Qn,Hn,Gn){for(var Vn,zn=Tn.data,Kn=2*Gn+1,$n=Qn-1,Wn=Hn-1,Xn=Gn+1,Yn=Xn*(Xn+1)/2,Jn=new Zk,Zn=Jn,er=1;er<Kn;er++)Zn=Zn.next=new Zk,er===Xn&&(Vn=Zn);Zn.next=Jn;for(var tr=null,nr=null,rr=0,ir=0,or=Yk[Gn],ar=Jk[Gn],sr=0;sr<Hn;sr++){Zn=Jn;for(var lr=zn[ir],cr=zn[ir+1],ur=zn[ir+2],dr=zn[ir+3],hr=0;hr<Xn;hr++)Zn.r=lr,Zn.g=cr,Zn.b=ur,Zn.a=dr,Zn=Zn.next;for(var pr=0,gr=0,fr=0,Ar=0,mr=Xn*lr,vr=Xn*cr,yr=Xn*ur,_r=Xn*dr,br=Yn*lr,wr=Yn*cr,xr=Yn*ur,Sr=Yn*dr,Cr=1;Cr<Xn;Cr++){var kr=ir+(($n<Cr?$n:Cr)<<2),Br=zn[kr],Er=zn[kr+1],Pr=zn[kr+2],Lr=zn[kr+3],Tr=Xn-Cr;br+=(Zn.r=Br)*Tr,wr+=(Zn.g=Er)*Tr,xr+=(Zn.b=Pr)*Tr,Sr+=(Zn.a=Lr)*Tr,pr+=Br,gr+=Er,fr+=Pr,Ar+=Lr,Zn=Zn.next}tr=Jn,nr=Vn;for(var Nr=0;Nr<Qn;Nr++){var Ir=Sr*or>>ar;if(zn[ir+3]=Ir,0!==Ir){var Or=255/Ir;zn[ir]=(br*or>>ar)*Or,zn[ir+1]=(wr*or>>ar)*Or,zn[ir+2]=(xr*or>>ar)*Or}else zn[ir]=zn[ir+1]=zn[ir+2]=0;br-=mr,wr-=vr,xr-=yr,Sr-=_r,mr-=tr.r,vr-=tr.g,yr-=tr.b,_r-=tr.a;var Fr=Nr+Gn+1;Fr=rr+(Fr<$n?Fr:$n)<<2,br+=pr+=tr.r=zn[Fr],wr+=gr+=tr.g=zn[Fr+1],xr+=fr+=tr.b=zn[Fr+2],Sr+=Ar+=tr.a=zn[Fr+3],tr=tr.next;var Ur=nr,Mr=Ur.r,Rr=Ur.g,Dr=Ur.b,jr=Ur.a;mr+=Mr,vr+=Rr,yr+=Dr,_r+=jr,pr-=Mr,gr-=Rr,fr-=Dr,Ar-=jr,nr=nr.next,ir+=4}rr+=Qn}for(var Qr=0;Qr<Qn;Qr++){var Hr=zn[ir=Qr<<2],Gr=zn[ir+1],Vr=zn[ir+2],zr=zn[ir+3],Kr=Xn*Hr,qr=Xn*Gr,$r=Xn*Vr,Wr=Xn*zr,Xr=Yn*Hr,Yr=Yn*Gr,Jr=Yn*Vr,Zr=Yn*zr;Zn=Jn;for(var ei=0;ei<Xn;ei++)Zn.r=Hr,Zn.g=Gr,Zn.b=Vr,Zn.a=zr,Zn=Zn.next;for(var ti=Qn,ni=0,ri=0,ii=0,oi=0,ai=1;ai<=Gn;ai++){ir=ti+Qr<<2;var si=Xn-ai;Xr+=(Zn.r=Hr=zn[ir])*si,Yr+=(Zn.g=Gr=zn[ir+1])*si,Jr+=(Zn.b=Vr=zn[ir+2])*si,Zr+=(Zn.a=zr=zn[ir+3])*si,oi+=Hr,ni+=Gr,ri+=Vr,ii+=zr,Zn=Zn.next,ai<Wn&&(ti+=Qn)}ir=Qr,tr=Jn,nr=Vn;for(var li=0;li<Hn;li++){var ui=ir<<2;zn[ui+3]=zr=Zr*or>>ar,zr>0?(zr=255/zr,zn[ui]=(Xr*or>>ar)*zr,zn[ui+1]=(Yr*or>>ar)*zr,zn[ui+2]=(Jr*or>>ar)*zr):zn[ui]=zn[ui+1]=zn[ui+2]=0,Xr-=Kr,Yr-=qr,Jr-=$r,Zr-=Wr,Kr-=tr.r,qr-=tr.g,$r-=tr.b,Wr-=tr.a,ui=Qr+((ui=li+Xn)<Wn?ui:Wn)*Qn<<2,Xr+=oi+=tr.r=zn[ui],Yr+=ni+=tr.g=zn[ui+1],Jr+=ri+=tr.b=zn[ui+2],Zr+=ii+=tr.a=zn[ui+3],tr=tr.next,Kr+=Hr=nr.r,qr+=Gr=nr.g,$r+=Vr=nr.b,Wr+=zr=nr.a,oi-=Hr,ni-=Gr,ri-=Vr,ii-=zr,nr=nr.next,ir+=Qn}}return Tn}(Vn,0,0,Qn,Hn,Gn),Tn.getContext("2d").putImageData(Vn,Un,Dn)}}var Zk=function BlurStack(){!function _classCallCheck$2(Tn,Un){if(!(Tn instanceof Un))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(Tn){return Tn.replace(/(?!\u3000)\s+/gm," ")}function trimLeft(Tn){return Tn.replace(/^[\n \t]+/,"")}function trimRight(Tn){return Tn.replace(/[\n \t]+$/,"")}function toNumbers(Tn){var Un=(Tn||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return ty(Un).call(Un,Pv)}var eB=/^[A-Z-]+$/;function normalizeAttributeName(Tn){return eB.test(Tn)?Tn.toLowerCase():Tn}function parseExternalUrl(Tn){var Un=Tn.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return Un[2]||Un[3]||Un[4]}function normalizeColor(Tn){if(!mv(Tn).call(Tn,"rgb"))return Tn;var Un=3;return Tn.replace(/\d+(\.\d+)?/g,(function(Tn,Dn){return Un--&&Dn?String(Math.round(Pv(Tn))):Tn}))}var tB=/(\[[^\]]+\])/g,nB=/(#[^\s\+>~\.\[:]+)/g,rB=/(\.[^\s\+>~\.\[:]+)/g,iB=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,oB=/(:[\w-]+\([^\)]*\))/gi,aB=/(:[^\s\+>~\.\[:]+)/g,sB=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(Tn,Un){var Dn=Tn.match(Un);return Dn?[Tn.replace(Un," "),Dn.length]:[Tn,0]}function getSelectorSpecificity(Tn){var Un=[0,0,0],Dn=Tn.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),Qn=0,Hn=findSelectorMatch(Dn,tB),Gn=rw(Hn,2);Dn=Gn[0],Qn=Gn[1],Un[1]+=Qn;var Vn=findSelectorMatch(Dn,nB),zn=rw(Vn,2);Dn=zn[0],Qn=zn[1],Un[0]+=Qn;var Kn=findSelectorMatch(Dn,rB),$n=rw(Kn,2);Dn=$n[0],Qn=$n[1],Un[1]+=Qn;var Wn=findSelectorMatch(Dn,iB),Xn=rw(Wn,2);Dn=Xn[0],Qn=Xn[1],Un[2]+=Qn;var Yn=findSelectorMatch(Dn,oB),Jn=rw(Yn,2);Dn=Jn[0],Qn=Jn[1],Un[1]+=Qn;var Zn=findSelectorMatch(Dn,aB),er=rw(Zn,2);Dn=er[0],Qn=er[1],Un[1]+=Qn;var tr=findSelectorMatch(Dn=Dn.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),sB),nr=rw(tr,2);return Dn=nr[0],Qn=nr[1],Un[2]+=Qn,Un.join("")}function vectorMagnitude(Tn){return Math.sqrt(Math.pow(Tn[0],2)+Math.pow(Tn[1],2))}function vectorsRatio(Tn,Un){return(Tn[0]*Un[0]+Tn[1]*Un[1])/(vectorMagnitude(Tn)*vectorMagnitude(Un))}function vectorsAngle(Tn,Un){return(Tn[0]*Un[1]<Tn[1]*Un[0]?-1:1)*Math.acos(vectorsRatio(Tn,Un))}function CB1(Tn){return Tn*Tn*Tn}function CB2(Tn){return 3*Tn*Tn*(1-Tn)}function CB3(Tn){return 3*Tn*(1-Tn)*(1-Tn)}function CB4(Tn){return(1-Tn)*(1-Tn)*(1-Tn)}function QB1(Tn){return Tn*Tn}function QB2(Tn){return 2*Tn*(1-Tn)}function QB3(Tn){return(1-Tn)*(1-Tn)}var lB=function(){function Property(Tn,Un,Dn){cS(this,Property),this.document=Tn,this.name=Un,this.value=Dn,this.isNormalizedColor=!1}return uS(Property,[{key:"split",value:function split(){var Tn,Un,Dn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",Qn=this.document,Hn=this.name;return ty(Tn=ZS(Un=compressSpaces(this.getString())).call(Un).split(Dn)).call(Tn,(function(Tn){return new Property(Qn,Hn,Tn)}))}},{key:"hasValue",value:function hasValue(Tn){var Un=this.value;return null!==Un&&""!==Un&&(Tn||0!==Un)&&void 0!==Un}},{key:"isString",value:function isString(Tn){var Un=this.value,Dn="string"==typeof Un;return Dn&&Tn?Tn.test(Un):Dn}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.isString(/^url\(/)}},{key:"isPixels",value:function isPixels(){if(!this.hasValue())return!1;var Tn=this.getString();switch(!0){case/px$/.test(Tn):case/^[0-9]+$/.test(Tn):return!0;default:return!1}}},{key:"setValue",value:function setValue(Tn){return this.value=Tn,this}},{key:"getValue",value:function getValue(Tn){return void 0===Tn||this.hasValue()?this.value:Tn}},{key:"getNumber",value:function getNumber(Tn){if(!this.hasValue())return void 0===Tn?0:Pv(Tn);var Un=this.value,Dn=Pv(Un);return this.isString(/%$/)&&(Dn/=100),Dn}},{key:"getString",value:function getString(Tn){return void 0===Tn||this.hasValue()?void 0===this.value?"":String(this.value):String(Tn)}},{key:"getColor",value:function getColor(Tn){var Un=this.getString(Tn);return this.isNormalizedColor||(this.isNormalizedColor=!0,Un=normalizeColor(Un),this.value=Un),Un}},{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(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var Dn="boolean"==typeof Tn?[void 0,Tn]:[Tn],Qn=rw(Dn,2),Hn=Qn[0],Gn=Qn[1],Vn=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(Vn.computeSize("x"),Vn.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(Vn.computeSize("x"),Vn.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*Vn.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*Vn.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(/%$/)&&Gn:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*Vn.computeSize(Hn);default:var zn=this.getNumber();return Un&&zn<1?zn*Vn.computeSize(Hn):zn}}},{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 Tn=this.getString(),Un=Tn.match(/#([^\)'"]+)/);return Un&&(Un=Un[1]),Un||(Un=Tn),this.document.definitions[Un]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(Tn,Un){var Dn=this.getDefinition();if(!Dn)return null;if("function"==typeof Dn.createGradient)return Dn.createGradient(this.document.ctx,Tn,Un);if("function"==typeof Dn.createPattern){if(Dn.getHrefAttribute().hasValue()){var Qn=Dn.getAttribute("patternTransform");Dn=Dn.getHrefAttribute().getDefinition(),Qn.hasValue()&&Dn.getAttribute("patternTransform",!0).setValue(Qn.value)}return Dn.createPattern(this.document.ctx,Tn,Un)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(Tn){for(var Un=this.getColor(),Dn=Un.length,Qn=0,Hn=0;Hn<Dn&&(","===Un[Hn]&&Qn++,3!==Qn);Hn++);if(Tn.hasValue()&&this.isString()&&3!==Qn){var Gn=new eC(Un);Gn.ok&&(Gn.alpha=Tn.getNumber(),Un=Gn.toRGBA())}return new Property(this.document,this.name,Un)}}],[{key:"empty",value:function empty(Tn){return new Property(Tn,"EMPTY","")}}]),Property}();lB.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 cB=function(){function ViewPort(){cS(this,ViewPort),this.viewPorts=[]}return uS(ViewPort,[{key:"clear",value:function clear(){this.viewPorts=[]}},{key:"setCurrent",value:function setCurrent(Tn,Un){this.viewPorts.push({width:Tn,height:Un})}},{key:"removeCurrent",value:function removeCurrent(){this.viewPorts.pop()}},{key:"getCurrent",value:function getCurrent(){var Tn=this.viewPorts;return Tn[Tn.length-1]}},{key:"computeSize",value:function computeSize(Tn){return"number"==typeof Tn?Tn:"x"===Tn?this.width:"y"===Tn?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}(),uB=function(){function Point(Tn,Un){cS(this,Point),this.x=Tn,this.y=Un}return uS(Point,[{key:"angleTo",value:function angleTo(Tn){return Math.atan2(Tn.y-this.y,Tn.x-this.x)}},{key:"applyTransform",value:function applyTransform(Tn){var Un=this.x,Dn=this.y,Qn=Un*Tn[0]+Dn*Tn[2]+Tn[4],Hn=Un*Tn[1]+Dn*Tn[3]+Tn[5];this.x=Qn,this.y=Hn}}],[{key:"parse",value:function parse(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Dn=toNumbers(Tn),Qn=rw(Dn,2),Hn=Qn[0],Gn=void 0===Hn?Un:Hn,Vn=Qn[1],zn=void 0===Vn?Un:Vn;return new Point(Gn,zn)}},{key:"parseScale",value:function parseScale(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,Dn=toNumbers(Tn),Qn=rw(Dn,2),Hn=Qn[0],Gn=void 0===Hn?Un:Hn,Vn=Qn[1],zn=void 0===Vn?Gn:Vn;return new Point(Gn,zn)}},{key:"parsePath",value:function parsePath(Tn){for(var Un=toNumbers(Tn),Dn=Un.length,Qn=[],Hn=0;Hn<Dn;Hn+=2)Qn.push(new Point(Un[Hn],Un[Hn+1]));return Qn}}]),Point}(),dB=function(){function Mouse(Tn){var Un,Dn;cS(this,Mouse),this.screen=Tn,this.working=!1,this.events=[],this.eventElements=[],this.onClick=RS(Un=this.onClick).call(Un,this),this.onMouseMove=RS(Dn=this.onMouseMove).call(Dn,this)}return uS(Mouse,[{key:"isWorking",value:function isWorking(){return this.working}},{key:"start",value:function start(){if(!this.working){var Tn=this.screen,Un=this.onClick,Dn=this.onMouseMove,Qn=Tn.ctx.canvas;Qn.onclick=Un,Qn.onmousemove=Dn,this.working=!0}}},{key:"stop",value:function stop(){if(this.working){var Tn=this.screen.ctx.canvas;this.working=!1,Tn.onclick=null,Tn.onmousemove=null}}},{key:"hasEvents",value:function hasEvents(){return this.working&&this.events.length>0}},{key:"runEvents",value:function runEvents(){if(this.working){var Tn=this.screen,Un=this.events,Dn=this.eventElements,Qn=Tn.ctx.canvas.style;Qn&&(Qn.cursor=""),mw(Un).call(Un,(function(Tn,Un){for(var Qn=Tn.run,Hn=Dn[Un];Hn;)Qn(Hn),Hn=Hn.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(Tn,Un){if(this.working&&Un){var Dn=this.events,Qn=this.eventElements;mw(Dn).call(Dn,(function(Dn,Hn){var Gn=Dn.x,Vn=Dn.y;!Qn[Hn]&&Un.isPointInPath&&Un.isPointInPath(Gn,Vn)&&(Qn[Hn]=Tn)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(Tn,Un){if(this.working&&Un){var Dn=this.events,Qn=this.eventElements;mw(Dn).call(Dn,(function(Dn,Hn){var Gn=Dn.x,Vn=Dn.y;!Qn[Hn]&&Un.isPointInBox(Gn,Vn)&&(Qn[Hn]=Tn)}))}}},{key:"mapXY",value:function mapXY(Tn,Un){for(var Dn=this.screen,Qn=Dn.window,Hn=Dn.ctx,Gn=new uB(Tn,Un),Vn=Hn.canvas;Vn;)Gn.x-=Vn.offsetLeft,Gn.y-=Vn.offsetTop,Vn=Vn.offsetParent;return Qn.scrollX&&(Gn.x+=Qn.scrollX),Qn.scrollY&&(Gn.y+=Qn.scrollY),Gn}},{key:"onClick",value:function onClick(Tn){var Un=this.mapXY((Tn||event).clientX,(Tn||event).clientY),Dn=Un.x,Qn=Un.y;this.events.push({type:"onclick",x:Dn,y:Qn,run:function run(Tn){Tn.onClick&&Tn.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(Tn){var Un=this.mapXY((Tn||event).clientX,(Tn||event).clientY),Dn=Un.x,Qn=Un.y;this.events.push({type:"onmousemove",x:Dn,y:Qn,run:function run(Tn){Tn.onMouseMove&&Tn.onMouseMove()}})}}]),Mouse}(),hB="undefined"!=typeof window?window:null,pB="undefined"!=typeof fetch?RS(fetch).call(fetch,void 0):null,gB=function(){function Screen(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Dn=Un.fetch,Qn=void 0===Dn?pB:Dn,Hn=Un.window,Gn=void 0===Hn?hB:Hn;cS(this,Screen),this.ctx=Tn,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new cB,this.mouse=new dB(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=Gn,this.fetch=Qn}return uS(Screen,[{key:"wait",value:function wait(Tn){this.waits.push(Tn)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:TS.resolve()}},{key:"isReady",value:function isReady(){var Tn;if(this.isReadyLock)return!0;var Un=LS(Tn=this.waits).call(Tn,(function(Tn){return Tn()}));return Un&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=Un,Un}},{key:"setDefaults",value:function setDefaults(Tn){Tn.strokeStyle="rgba(0,0,0,0)",Tn.lineCap="butt",Tn.lineJoin="miter",Tn.miterLimit=4}},{key:"setViewBox",value:function setViewBox(Tn){var Un=Tn.document,Dn=Tn.ctx,Qn=Tn.aspectRatio,Hn=Tn.width,Gn=Tn.desiredWidth,Vn=Tn.height,zn=Tn.desiredHeight,Kn=Tn.minX,$n=void 0===Kn?0:Kn,Wn=Tn.minY,Xn=void 0===Wn?0:Wn,Yn=Tn.refX,Jn=Tn.refY,Zn=Tn.clip,er=void 0!==Zn&&Zn,tr=Tn.clipX,nr=void 0===tr?0:tr,rr=Tn.clipY,ir=void 0===rr?0:rr,or=compressSpaces(Qn).replace(/^defer\s/,"").split(" "),ar=rw(or,2),sr=ar[0]||"xMidYMid",lr=ar[1]||"meet",cr=Hn/Gn,ur=Vn/zn,dr=Math.min(cr,ur),hr=Math.max(cr,ur),pr=Gn,gr=zn;"meet"===lr&&(pr*=dr,gr*=dr),"slice"===lr&&(pr*=hr,gr*=hr);var fr=new lB(Un,"refX",Yn),Ar=new lB(Un,"refY",Jn),mr=fr.hasValue()&&Ar.hasValue();if(mr&&Dn.translate(-dr*fr.getPixels("x"),-dr*Ar.getPixels("y")),er){var vr=dr*nr,yr=dr*ir;Dn.beginPath(),Dn.moveTo(vr,yr),Dn.lineTo(Hn,yr),Dn.lineTo(Hn,Vn),Dn.lineTo(vr,Vn),Dn.closePath(),Dn.clip()}if(!mr){var _r="meet"===lr&&dr===ur,br="slice"===lr&&hr===ur,wr="meet"===lr&&dr===cr,xr="slice"===lr&&hr===cr;/^xMid/.test(sr)&&(_r||br)&&Dn.translate(Hn/2-pr/2,0),/YMid$/.test(sr)&&(wr||xr)&&Dn.translate(0,Vn/2-gr/2),/^xMax/.test(sr)&&(_r||br)&&Dn.translate(Hn-pr,0),/YMax$/.test(sr)&&(wr||xr)&&Dn.translate(0,Vn-gr)}switch(!0){case"none"===sr:Dn.scale(cr,ur);break;case"meet"===lr:Dn.scale(dr,dr);break;case"slice"===lr:Dn.scale(hr,hr)}Dn.translate(-$n,-Xn)}},{key:"start",value:function start(Tn){var Un=this,Dn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Dn.enableRedraw,Hn=void 0!==Qn&&Qn,Gn=Dn.ignoreMouse,Vn=void 0!==Gn&&Gn,zn=Dn.ignoreAnimation,Kn=void 0!==zn&&zn,$n=Dn.ignoreDimensions,Wn=void 0!==$n&&$n,Xn=Dn.ignoreClear,Yn=void 0!==Xn&&Xn,Jn=Dn.forceRedraw,Zn=Dn.scaleWidth,er=Dn.scaleHeight,tr=Dn.offsetX,nr=Dn.offsetY,rr=this.FRAMERATE,ir=this.mouse,or=1e3/rr;if(this.frameDuration=or,this.readyPromise=new TS((function(Tn){Un.resolveReady=Tn})),this.isReady()&&this.render(Tn,Wn,Yn,Zn,er,tr,nr),Hn){var ar=bS(),sr=ar,lr=0,cr=function tick(){ar=bS(),(lr=ar-sr)>=or&&(sr=ar-lr%or,Un.shouldUpdate(Kn,Jn)&&(Un.render(Tn,Wn,Yn,Zn,er,tr,nr),ir.runEvents())),Un.intervalId=WS(tick)};Vn||ir.start(),this.intervalId=WS(cr)}}},{key:"stop",value:function stop(){this.intervalId&&(WS.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(Tn,Un){if(!Tn){var Dn,Qn=this.frameDuration,shouldUpdate=_S(Dn=this.animations).call(Dn,(function(Tn,Un){return Un.update(Qn)||Tn}),!1);if(shouldUpdate)return!0}return!("function"!=typeof Un||!Un())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(Tn,Un,Dn,Qn,Hn,Gn,Vn){var zn=this.CLIENT_WIDTH,Kn=this.CLIENT_HEIGHT,$n=this.viewPort,Wn=this.ctx,Xn=this.isFirstRender,Yn=Wn.canvas;$n.clear(),Yn.width&&Yn.height?$n.setCurrent(Yn.width,Yn.height):$n.setCurrent(zn,Kn);var Jn=Tn.getStyle("width"),Zn=Tn.getStyle("height");!Un&&(Xn||"number"!=typeof Qn&&"number"!=typeof Hn)&&(Jn.hasValue()&&(Yn.width=Jn.getPixels("x"),Yn.style&&(Yn.style.width="".concat(Yn.width,"px"))),Zn.hasValue()&&(Yn.height=Zn.getPixels("y"),Yn.style&&(Yn.style.height="".concat(Yn.height,"px"))));var er=Yn.clientWidth||Yn.width,tr=Yn.clientHeight||Yn.height;if(Un&&Jn.hasValue()&&Zn.hasValue()&&(er=Jn.getPixels("x"),tr=Zn.getPixels("y")),$n.setCurrent(er,tr),"number"==typeof Gn&&Tn.getAttribute("x",!0).setValue(Gn),"number"==typeof Vn&&Tn.getAttribute("y",!0).setValue(Vn),"number"==typeof Qn||"number"==typeof Hn){var nr,rr,ir=toNumbers(Tn.getAttribute("viewBox").getString()),or=0,ar=0;if("number"==typeof Qn){var sr=Tn.getStyle("width");sr.hasValue()?or=sr.getPixels("x")/Qn:isNaN(ir[2])||(or=ir[2]/Qn)}if("number"==typeof Hn){var lr=Tn.getStyle("height");lr.hasValue()?ar=lr.getPixels("y")/Hn:isNaN(ir[3])||(ar=ir[3]/Hn)}or||(or=ar),ar||(ar=or),Tn.getAttribute("width",!0).setValue(Qn),Tn.getAttribute("height",!0).setValue(Hn);var cr=Tn.getStyle("transform",!0,!0);cr.setValue(pS(nr=pS(rr="".concat(cr.getString()," scale(")).call(rr,1/or,", ")).call(nr,1/ar,")"))}Dn||Wn.clearRect(0,0,er,tr),Tn.render(Wn),Xn&&(this.isFirstRender=!1)}}]),Screen}();gB.defaultWindow=hB,gB.defaultFetch=pB;var fB=gB.defaultFetch,AB="undefined"!=typeof DOMParser?DOMParser:null,mB=function(){function Parser(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Un=Tn.fetch,Dn=void 0===Un?fB:Un,Qn=Tn.DOMParser,Hn=void 0===Qn?AB:Qn;cS(this,Parser),this.fetch=Dn,this.DOMParser=Hn}var Tn,Un;return uS(Parser,[{key:"parse",value:(Un=aS(Tw.mark((function _callee(Tn){return Tw.wrap((function _callee$(Un){for(;;)switch(Un.prev=Un.next){case 0:if(!/^</.test(Tn)){Un.next=2;break}return Un.abrupt("return",this.parseFromString(Tn));case 2:return Un.abrupt("return",this.load(Tn));case 3:case"end":return Un.stop()}}),_callee,this)}))),function parse(Tn){return Un.apply(this,arguments)})},{key:"parseFromString",value:function parseFromString(Tn){var Un=new this.DOMParser;try{return this.checkDocument(Un.parseFromString(Tn,"image/svg+xml"))}catch(Dn){return this.checkDocument(Un.parseFromString(Tn,"text/xml"))}}},{key:"checkDocument",value:function checkDocument(Tn){var Un=Tn.getElementsByTagName("parsererror")[0];if(Un)throw new Error(Un.textContent);return Tn}},{key:"load",value:(Tn=aS(Tw.mark((function _callee2(Tn){var Un,Dn;return Tw.wrap((function _callee2$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Qn.next=2,this.fetch(Tn);case 2:return Un=Qn.sent,Qn.next=5,Un.text();case 5:return Dn=Qn.sent,Qn.abrupt("return",this.parseFromString(Dn));case 7:case"end":return Qn.stop()}}),_callee2,this)}))),function load(Un){return Tn.apply(this,arguments)})}]),Parser}(),vB=function(){function Translate(Tn,Un){cS(this,Translate),this.type="translate",this.point=null,this.point=uB.parse(Un)}return uS(Translate,[{key:"apply",value:function apply(Tn){var Un=this.point,Dn=Un.x,Qn=Un.y;Tn.translate(Dn||0,Qn||0)}},{key:"unapply",value:function unapply(Tn){var Un=this.point,Dn=Un.x,Qn=Un.y;Tn.translate(-1*Dn||0,-1*Qn||0)}},{key:"applyToPoint",value:function applyToPoint(Tn){var Un=this.point,Dn=Un.x,Qn=Un.y;Tn.applyTransform([1,0,0,1,Dn||0,Qn||0])}}]),Translate}(),yB=function(){function Rotate(Tn,Un,Dn){cS(this,Rotate),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var Qn=toNumbers(Un);this.angle=new lB(Tn,"angle",Qn[0]),this.originX=Dn[0],this.originY=Dn[1],this.cx=Qn[1]||0,this.cy=Qn[2]||0}return uS(Rotate,[{key:"apply",value:function apply(Tn){var Un=this.cx,Dn=this.cy,Qn=this.originX,Hn=this.originY,Gn=this.angle,Vn=Un+Qn.getPixels("x"),zn=Dn+Hn.getPixels("y");Tn.translate(Vn,zn),Tn.rotate(Gn.getRadians()),Tn.translate(-Vn,-zn)}},{key:"unapply",value:function unapply(Tn){var Un=this.cx,Dn=this.cy,Qn=this.angle;Tn.translate(Un,Dn),Tn.rotate(-1*Qn.getRadians()),Tn.translate(-Un,-Dn)}},{key:"applyToPoint",value:function applyToPoint(Tn){var Un=this.cx,Dn=this.cy,Qn=this.angle.getRadians();Tn.applyTransform([1,0,0,1,Un||0,Dn||0]),Tn.applyTransform([Math.cos(Qn),Math.sin(Qn),-Math.sin(Qn),Math.cos(Qn),0,0]),Tn.applyTransform([1,0,0,1,-Un||0,-Dn||0])}}]),Rotate}(),wB=function(){function Scale(Tn,Un){cS(this,Scale),this.type="scale",this.scale=null;var Dn=uB.parseScale(Un);0!==Dn.x&&0!==Dn.y||(Dn.x=1e-8,Dn.y=1e-8),this.scale=Dn}return uS(Scale,[{key:"apply",value:function apply(Tn){var Un=this.scale,Dn=Un.x,Qn=Un.y;Tn.scale(Dn,Qn||Dn)}},{key:"unapply",value:function unapply(Tn){var Un=this.scale,Dn=Un.x,Qn=Un.y;Tn.scale(1/Dn,1/Qn||Dn)}},{key:"applyToPoint",value:function applyToPoint(Tn){var Un=this.scale,Dn=Un.x,Qn=Un.y;Tn.applyTransform([Dn||0,0,0,Qn||0,0,0])}}]),Scale}(),xB=function(){function Matrix(Tn,Un){cS(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(Un)}return uS(Matrix,[{key:"apply",value:function apply(Tn){var Un=this.matrix;Tn.transform(Un[0],Un[1],Un[2],Un[3],Un[4],Un[5])}},{key:"unapply",value:function unapply(Tn){var Un=this.matrix,Dn=Un[0],Qn=Un[2],Hn=Un[4],Gn=Un[1],Vn=Un[3],zn=Un[5],Kn=1/(Dn*(1*Vn-0*zn)-Qn*(1*Gn-0*zn)+Hn*(0*Gn-0*Vn));Tn.transform(Kn*(1*Vn-0*zn),Kn*(0*zn-1*Gn),Kn*(0*Hn-1*Qn),Kn*(1*Dn-0*Hn),Kn*(Qn*zn-Hn*Vn),Kn*(Hn*Gn-Dn*zn))}},{key:"applyToPoint",value:function applyToPoint(Tn){Tn.applyTransform(this.matrix)}}]),Matrix}();function _createSuper$1(Tn){var Un=function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var SB=function(Tn){uC(Skew,xB);var Un=_createSuper$1(Skew);function Skew(Tn,Dn){var Qn;return cS(this,Skew),(Qn=Un.call(this,Tn,Dn)).type="skew",Qn.angle=null,Qn.angle=new lB(Tn,"angle",Dn),Qn}return Skew}();function _createSuper$1$1(Tn){var Un=function _isNativeReflectConstruct$1$1(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var CB=function(Tn){uC(SkewX,SB);var Un=_createSuper$1$1(SkewX);function SkewX(Tn,Dn){var Qn;return cS(this,SkewX),(Qn=Un.call(this,Tn,Dn)).type="skewX",Qn.matrix=[1,0,Math.tan(Qn.angle.getRadians()),1,0,0],Qn}return SkewX}();function _createSuper$2(Tn){var Un=function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var kB=function(Tn){uC(SkewY,SB);var Un=_createSuper$2(SkewY);function SkewY(Tn,Dn){var Qn;return cS(this,SkewY),(Qn=Un.call(this,Tn,Dn)).type="skewY",Qn.matrix=[1,Math.tan(Qn.angle.getRadians()),0,1,0,0],Qn}return SkewY}();var BB=function(){function Transform(Tn,Un,Dn){var Qn=this;cS(this,Transform),this.document=Tn,this.transforms=[];var Hn=function parseTransforms(Tn){var Un;return ZS(Un=compressSpaces(Tn)).call(Un).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(Un);mw(Hn).call(Hn,(function(Tn){if("none"!==Tn){var Un=function parseTransform(Tn){var Un=Tn.split("("),Dn=rw(Un,2),Qn=Dn[0],Hn=Dn[1];return[ZS(Qn).call(Qn),ZS(Hn).call(Hn).replace(")","")]}(Tn),Hn=rw(Un,2),Gn=Hn[0],Vn=Hn[1],zn=Transform.transformTypes[Gn];void 0!==zn&&Qn.transforms.push(new zn(Qn.document,Vn,Dn))}}))}return uS(Transform,[{key:"apply",value:function apply(Tn){for(var Un=this.transforms,Dn=Un.length,Qn=0;Qn<Dn;Qn++)Un[Qn].apply(Tn)}},{key:"unapply",value:function unapply(Tn){for(var Un=this.transforms,Dn=Un.length-1;Dn>=0;Dn--)Un[Dn].unapply(Tn)}},{key:"applyToPoint",value:function applyToPoint(Tn){for(var Un=this.transforms,Dn=Un.length,Qn=0;Qn<Dn;Qn++)Un[Qn].applyToPoint(Tn)}}],[{key:"fromElement",value:function fromElement(Tn,Un){var Dn=Un.getStyle("transform",!1,!0),Qn=Un.getStyle("transform-origin",!1,!0).split(),Hn=rw(Qn,2),Gn=Hn[0],Vn=Hn[1],zn=[Gn,void 0===Vn?Gn:Vn];return Dn.hasValue()?new Transform(Tn,Dn.getString(),zn):null}}]),Transform}();BB.transformTypes={translate:vB,rotate:yB,scale:wB,matrix:xB,skewX:CB,skewY:kB};var EB=function(){function Element(Tn,Un){var Dn,Qn,Hn=this,Gn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(cS(this,Element),this.document=Tn,this.node=Un,this.captureTextNodes=Gn,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],Un&&1===Un.nodeType){if(mw(Dn=UC(Un.attributes)).call(Dn,(function(Un){var Dn=normalizeAttributeName(Un.nodeName);Hn.attributes[Dn]=new lB(Tn,Dn,Un.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var Vn,zn=ty(Vn=this.getAttribute("style").getString().split(";")).call(Vn,(function(Tn){return ZS(Tn).call(Tn)}));mw(zn).call(zn,(function(Un){var Dn;if(Un){var Qn=ty(Dn=Un.split(":")).call(Dn,(function(Tn){return ZS(Tn).call(Tn)})),Gn=rw(Qn,2),Vn=Gn[0],zn=Gn[1];Hn.styles[Vn]=new lB(Tn,Vn,zn)}}))}var Kn=Tn.definitions,$n=this.getAttribute("id");$n.hasValue()&&(Kn[$n.getValue()]||(Kn[$n.getValue()]=this)),mw(Qn=UC(Un.childNodes)).call(Qn,(function(Un){if(1===Un.nodeType)Hn.addChild(Un);else if(Gn&&(3===Un.nodeType||4===Un.nodeType)){var Dn=Tn.createTextNode(Un);Dn.getText().length>0&&Hn.addChild(Dn)}}))}}return uS(Element,[{key:"getAttribute",value:function getAttribute(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Dn=this.attributes[Tn];if(!Dn&&Un){var Qn=new lB(this.document,Tn,"");return this.attributes[Tn]=Qn,Qn}return Dn||lB.empty(this.document)}},{key:"getHrefAttribute",value:function getHrefAttribute(){for(var Tn in this.attributes)if("href"===Tn||/:href$/.test(Tn))return this.attributes[Tn];return lB.empty(this.document)}},{key:"getStyle",value:function getStyle(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Dn=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Qn=this.styles[Tn];if(Qn)return Qn;var Hn=this.getAttribute(Tn);if(Hn&&Hn.hasValue())return this.styles[Tn]=Hn,Hn;if(!Dn){var Gn=this.parent;if(Gn){var Vn=Gn.getStyle(Tn);if(Vn&&Vn.hasValue())return Vn}}if(Un){var zn=new lB(this.document,Tn,"");return this.styles[Tn]=zn,zn}return Qn||lB.empty(this.document)}},{key:"render",value:function render(Tn){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(Tn.save(),this.getStyle("mask").hasValue()){var Un=this.getStyle("mask").getDefinition();Un&&(this.applyEffects(Tn),Un.apply(Tn,this))}else if("none"!==this.getStyle("filter").getValue("none")){var Dn=this.getStyle("filter").getDefinition();Dn&&(this.applyEffects(Tn),Dn.apply(Tn,this))}else this.setContext(Tn),this.renderChildren(Tn),this.clearContext(Tn);Tn.restore()}}},{key:"setContext",value:function setContext(Tn){}},{key:"applyEffects",value:function applyEffects(Tn){var Un=BB.fromElement(this.document,this);Un&&Un.apply(Tn);var Dn=this.getStyle("clip-path",!1,!0);if(Dn.hasValue()){var Qn=Dn.getDefinition();Qn&&Qn.apply(Tn)}}},{key:"clearContext",value:function clearContext(Tn){}},{key:"renderChildren",value:function renderChildren(Tn){var Un;mw(Un=this.children).call(Un,(function(Un){Un.render(Tn)}))}},{key:"addChild",value:function addChild(Tn){var Un,Dn=Tn instanceof Element?Tn:this.document.createElement(Tn);Dn.parent=this,FC(Un=Element.ignoreChildTypes).call(Un,Dn.type)||this.children.push(Dn)}},{key:"matchesSelector",value:function matchesSelector(Tn){var Un,Dn=this.node;if("function"==typeof Dn.matches)return Dn.matches(Tn);var Qn=Dn.getAttribute("class");return!(!Qn||""===Qn)&&EC(Un=Qn.split(" ")).call(Un,(function(Un){if(".".concat(Un)===Tn)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var Tn=this.document,Un=Tn.styles,Dn=Tn.stylesSpecificity;for(var Qn in Un)if("@"!==Qn[0]&&this.matchesSelector(Qn)){var Hn=Un[Qn],Gn=Dn[Qn];if(Hn)for(var Vn in Hn){var zn=this.stylesSpecificity[Vn];void 0===zn&&(zn="000"),Gn>=zn&&(this.styles[Vn]=Hn[Vn],this.stylesSpecificity[Vn]=Gn)}}}},{key:"removeStyles",value:function removeStyles(Tn,Un){return _S(Un).call(Un,(function(Un,Dn){var Qn,Hn=Tn.getStyle(Dn);if(!Hn.hasValue())return Un;var Gn=Hn.getString();return Hn.setValue(""),pS(Qn=[]).call(Qn,wC(Un),[[Dn,Gn]])}),[])}},{key:"restoreStyles",value:function restoreStyles(Tn,Un){mw(Un).call(Un,(function(Un){var Dn=rw(Un,2),Qn=Dn[0],Hn=Dn[1];Tn.getStyle(Qn,!0).setValue(Hn)}))}}]),Element}();function _createSuper$3(Tn){var Un=function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}EB.ignoreChildTypes=["title"];var PB=function(Tn){uC(UnknownElement,EB);var Un=_createSuper$3(UnknownElement);function UnknownElement(Tn,Dn,Qn){return cS(this,UnknownElement),Un.call(this,Tn,Dn,Qn)}return UnknownElement}();function wrapFontFamily(Tn){var Un=ZS(Tn).call(Tn);return/^('|")/.test(Un)?Un:'"'.concat(Un,'"')}function prepareFontStyle(Tn){if(!Tn)return"";var Un=ZS(Tn).call(Tn).toLowerCase();switch(Un){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return Un;default:return/^oblique\s+(-|)\d+deg$/.test(Un)?Un:""}}function prepareFontWeight(Tn){if(!Tn)return"";var Un=ZS(Tn).call(Tn).toLowerCase();switch(Un){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return Un;default:return/^[\d.]+$/.test(Un)?Un:""}}var LB=function(){function Font(Tn,Un,Dn,Qn,Hn,Gn){cS(this,Font);var Vn=Gn?"string"==typeof Gn?Font.parse(Gn):Gn:{};this.fontFamily=Hn||Vn.fontFamily,this.fontSize=Qn||Vn.fontSize,this.fontStyle=Tn||Vn.fontStyle,this.fontWeight=Dn||Vn.fontWeight,this.fontVariant=Un||Vn.fontVariant}return uS(Font,[{key:"toString",value:function toString(){var Un,Dn,Qn;return ZS(Un=[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(Dn=this.fontFamily,void 0===Tn?Dn:ty(Qn=ZS(Dn).call(Dn).split(",")).call(Qn,wrapFontFamily).join(","))].join(" ")).call(Un)}}],[{key:"parse",value:function parse(){var Tn,Un=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",Dn=arguments.length>1?arguments[1]:void 0,Qn="",Hn="",Gn="",Vn="",zn="",Kn=ZS(Tn=compressSpaces(Un)).call(Tn).split(" "),$n={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return mw(Kn).call(Kn,(function(Tn){var Un,Dn,Kn;switch(!0){case!$n.fontStyle&&FC(Un=Font.styles).call(Un,Tn):"inherit"!==Tn&&(Qn=Tn),$n.fontStyle=!0;break;case!$n.fontVariant&&FC(Dn=Font.variants).call(Dn,Tn):"inherit"!==Tn&&(Hn=Tn),$n.fontStyle=!0,$n.fontVariant=!0;break;case!$n.fontWeight&&FC(Kn=Font.weights).call(Kn,Tn):"inherit"!==Tn&&(Gn=Tn),$n.fontStyle=!0,$n.fontVariant=!0,$n.fontWeight=!0;break;case!$n.fontSize:if("inherit"!==Tn){var Wn=Tn.split("/"),Xn=rw(Wn,1);Vn=Xn[0]}$n.fontStyle=!0,$n.fontVariant=!0,$n.fontWeight=!0,$n.fontSize=!0;break;default:"inherit"!==Tn&&(zn+=Tn)}})),new Font(Qn,Hn,Gn,Vn,zn,Dn)}}]),Font}();LB.styles="normal|italic|oblique|inherit",LB.variants="normal|small-caps|inherit",LB.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var TB=function(){function BoundingBox(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,Dn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,Qn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;cS(this,BoundingBox),this.x1=Tn,this.y1=Un,this.x2=Dn,this.y2=Qn,this.addPoint(Tn,Un),this.addPoint(Dn,Qn)}return uS(BoundingBox,[{key:"addPoint",value:function addPoint(Tn,Un){void 0!==Tn&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=Tn,this.x2=Tn),Tn<this.x1&&(this.x1=Tn),Tn>this.x2&&(this.x2=Tn)),void 0!==Un&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=Un,this.y2=Un),Un<this.y1&&(this.y1=Un),Un>this.y2&&(this.y2=Un))}},{key:"addX",value:function addX(Tn){this.addPoint(Tn,null)}},{key:"addY",value:function addY(Tn){this.addPoint(null,Tn)}},{key:"addBoundingBox",value:function addBoundingBox(Tn){if(Tn){var Un=Tn.x1,Dn=Tn.y1,Qn=Tn.x2,Hn=Tn.y2;this.addPoint(Un,Dn),this.addPoint(Qn,Hn)}}},{key:"sumCubic",value:function sumCubic(Tn,Un,Dn,Qn,Hn){return Math.pow(1-Tn,3)*Un+3*Math.pow(1-Tn,2)*Tn*Dn+3*(1-Tn)*Math.pow(Tn,2)*Qn+Math.pow(Tn,3)*Hn}},{key:"bezierCurveAdd",value:function bezierCurveAdd(Tn,Un,Dn,Qn,Hn){var Gn=6*Un-12*Dn+6*Qn,Vn=-3*Un+9*Dn-9*Qn+3*Hn,zn=3*Dn-3*Un;if(0!==Vn){var Kn=Math.pow(Gn,2)-4*zn*Vn;if(!(Kn<0)){var $n=(-Gn+Math.sqrt(Kn))/(2*Vn);0<$n&&$n<1&&(Tn?this.addX(this.sumCubic($n,Un,Dn,Qn,Hn)):this.addY(this.sumCubic($n,Un,Dn,Qn,Hn)));var Wn=(-Gn-Math.sqrt(Kn))/(2*Vn);0<Wn&&Wn<1&&(Tn?this.addX(this.sumCubic(Wn,Un,Dn,Qn,Hn)):this.addY(this.sumCubic(Wn,Un,Dn,Qn,Hn)))}}else{if(0===Gn)return;var Xn=-zn/Gn;0<Xn&&Xn<1&&(Tn?this.addX(this.sumCubic(Xn,Un,Dn,Qn,Hn)):this.addY(this.sumCubic(Xn,Un,Dn,Qn,Hn)))}}},{key:"addBezierCurve",value:function addBezierCurve(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){this.addPoint(Tn,Un),this.addPoint(Vn,zn),this.bezierCurveAdd(!0,Tn,Dn,Hn,Vn),this.bezierCurveAdd(!1,Un,Qn,Gn,zn)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(Tn,Un,Dn,Qn,Hn,Gn){var Vn=Tn+2/3*(Dn-Tn),zn=Un+2/3*(Qn-Un),Kn=Vn+1/3*(Hn-Tn),$n=zn+1/3*(Gn-Un);this.addBezierCurve(Tn,Un,Vn,Kn,zn,$n,Hn,Gn)}},{key:"isPointInBox",value:function isPointInBox(Tn,Un){var Dn=this.x1,Qn=this.y1,Hn=this.x2,Gn=this.y2;return Dn<=Tn&&Tn<=Hn&&Qn<=Un&&Un<=Gn}},{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(Tn){var Un=function _isNativeReflectConstruct$4(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var NB=function(Tn){uC(RenderedElement,EB);var Un=_createSuper$4(RenderedElement);function RenderedElement(){var Tn;return cS(this,RenderedElement),(Tn=Un.apply(this,arguments)).modifiedEmSizeStack=!1,Tn}return uS(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var Tn=1,Un=this;Un;){var Dn=Un.getStyle("opacity",!1,!0);Dn.hasValue(!0)&&(Tn*=Dn.getNumber()),Un=Un.parent}return Tn}},{key:"setContext",value:function setContext(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Un){var Dn=this.getStyle("fill"),Qn=this.getStyle("fill-opacity"),Hn=this.getStyle("stroke"),Gn=this.getStyle("stroke-opacity");if(Dn.isUrlDefinition()){var Vn=Dn.getFillStyleDefinition(this,Qn);Vn&&(Tn.fillStyle=Vn)}else if(Dn.hasValue()){"currentColor"===Dn.getString()&&Dn.setValue(this.getStyle("color").getColor());var zn=Dn.getColor();"inherit"!==zn&&(Tn.fillStyle="none"===zn?"rgba(0,0,0,0)":zn)}if(Qn.hasValue()){var Kn=new lB(this.document,"fill",Tn.fillStyle).addOpacity(Qn).getColor();Tn.fillStyle=Kn}if(Hn.isUrlDefinition()){var $n=Hn.getFillStyleDefinition(this,Gn);$n&&(Tn.strokeStyle=$n)}else if(Hn.hasValue()){"currentColor"===Hn.getString()&&Hn.setValue(this.getStyle("color").getColor());var Wn=Hn.getString();"inherit"!==Wn&&(Tn.strokeStyle="none"===Wn?"rgba(0,0,0,0)":Wn)}if(Gn.hasValue()){var Xn=new lB(this.document,"stroke",Tn.strokeStyle).addOpacity(Gn).getString();Tn.strokeStyle=Xn}var Yn=this.getStyle("stroke-width");if(Yn.hasValue()){var Jn=Yn.getPixels();Tn.lineWidth=Jn||1e-8}var Zn=this.getStyle("stroke-linecap"),er=this.getStyle("stroke-linejoin"),tr=this.getStyle("stroke-miterlimit"),nr=this.getStyle("paint-order"),rr=this.getStyle("stroke-dasharray"),ir=this.getStyle("stroke-dashoffset");if(Zn.hasValue()&&(Tn.lineCap=Zn.getString()),er.hasValue()&&(Tn.lineJoin=er.getString()),tr.hasValue()&&(Tn.miterLimit=tr.getNumber()),nr.hasValue()&&(Tn.paintOrder=nr.getValue()),rr.hasValue()&&"none"!==rr.getString()){var or=toNumbers(rr.getString());void 0!==Tn.setLineDash?Tn.setLineDash(or):void 0!==Tn.webkitLineDash?Tn.webkitLineDash=or:void 0===Tn.mozDash||1===or.length&&0===or[0]||(Tn.mozDash=or);var ar=ir.getPixels();void 0!==Tn.lineDashOffset?Tn.lineDashOffset=ar:void 0!==Tn.webkitLineDashOffset?Tn.webkitLineDashOffset=ar:void 0!==Tn.mozDashOffset&&(Tn.mozDashOffset=ar)}}if(this.modifiedEmSizeStack=!1,void 0!==Tn.font){var sr=this.getStyle("font"),lr=this.getStyle("font-style"),cr=this.getStyle("font-variant"),ur=this.getStyle("font-weight"),dr=this.getStyle("font-size"),hr=this.getStyle("font-family"),pr=new LB(lr.getString(),cr.getString(),ur.getString(),dr.hasValue()?"".concat(dr.getPixels(!0),"px"):"",hr.getString(),LB.parse(sr.getString(),Tn.font));lr.setValue(pr.fontStyle),cr.setValue(pr.fontVariant),ur.setValue(pr.fontWeight),dr.setValue(pr.fontSize),hr.setValue(pr.fontFamily),Tn.font=pr.toString(),dr.isPixels()&&(this.document.emSize=dr.getPixels(),this.modifiedEmSizeStack=!0)}Un||(this.applyEffects(Tn),Tn.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(Tn){ZC(mC(RenderedElement.prototype),"clearContext",this).call(this,Tn),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}();function _createSuper$5(Tn){var Un=function _isNativeReflectConstruct$5(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var IB=function(Tn){uC(TextElement,NB);var Un=_createSuper$5(TextElement);function TextElement(Tn,Dn,Qn){var Hn;return cS(this,TextElement),(Hn=Un.call(this,Tn,Dn,(this instanceof TextElement?this.constructor:void 0)===TextElement||Qn)).type="text",Hn.x=0,Hn.y=0,Hn.measureCache=-1,Hn}return uS(TextElement,[{key:"setContext",value:function setContext(Tn){var Un=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ZC(mC(TextElement.prototype),"setContext",this).call(this,Tn,Un);var Dn=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();Dn&&(Tn.textBaseline=Dn)}},{key:"initializeCoordinates",value:function initializeCoordinates(Tn){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var Un=this.getAttribute("dx"),Dn=this.getAttribute("dy");Un.hasValue()&&(this.x+=Un.getPixels("x")),Dn.hasValue()&&(this.y+=Dn.getPixels("y")),this.x+=this.getAnchorDelta(Tn,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(Tn){var Un,Dn=this;if("text"!==this.type)return this.getTElementBoundingBox(Tn);this.initializeCoordinates(Tn);var Qn=null;return mw(Un=this.children).call(Un,(function(Un,Hn){var Gn=Dn.getChildBoundingBox(Tn,Dn,Dn,Hn);Qn?Qn.addBoundingBox(Gn):Qn=Gn})),Qn}},{key:"getFontSize",value:function getFontSize(){var Tn=this.document,Un=this.parent,Dn=LB.parse(Tn.ctx.font).fontSize;return Un.getStyle("font-size").getNumber(Dn)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(Tn){var Un=this.getFontSize();return new TB(this.x,this.y-Un,this.x+this.measureText(Tn),this.y)}},{key:"getGlyph",value:function getGlyph(Tn,Un,Dn){var Qn=Un[Dn],Hn=null;if(Tn.isArabic){var Gn=Un.length,Vn=Un[Dn-1],zn=Un[Dn+1],Kn="isolated";(0===Dn||" "===Vn)&&Dn<Gn-2&&" "!==zn&&(Kn="terminal"),Dn>0&&" "!==Vn&&Dn<Gn-2&&" "!==zn&&(Kn="medial"),Dn>0&&" "!==Vn&&(Dn===Gn-1||" "===zn)&&(Kn="initial"),void 0!==Tn.glyphs[Qn]&&((Hn=Tn.glyphs[Qn][Kn])||"glyph"!==Tn.glyphs[Qn].type||(Hn=Tn.glyphs[Qn]))}else Hn=Tn.glyphs[Qn];return Hn||(Hn=Tn.missingGlyph),Hn}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(Tn){var Un=Tn||this.node,Dn=UC(Un.parentNode.childNodes),Qn=WC(Dn).call(Dn,Un),Hn=Dn.length-1,Gn=compressSpaces(Un.value||Un.text||Un.textContent||"");return 0===Qn&&(Gn=trimLeft(Gn)),Qn===Hn&&(Gn=trimRight(Gn)),Gn}},{key:"renderChildren",value:function renderChildren(Tn){var Un,Dn=this;if("text"===this.type){this.initializeCoordinates(Tn),mw(Un=this.children).call(Un,(function(Un,Qn){Dn.renderChild(Tn,Dn,Dn,Qn)}));var Qn=this.document.screen.mouse;Qn.isWorking()&&Qn.checkBoundingBox(this,this.getBoundingBox(Tn))}else this.renderTElementChildren(Tn)}},{key:"renderTElementChildren",value:function renderTElementChildren(Tn){var Un=this.document,Dn=this.parent,Qn=this.getText(),Hn=Dn.getStyle("font-family").getDefinition();if(Hn)for(var Gn,Vn=Hn.fontFace.unitsPerEm,zn=LB.parse(Un.ctx.font),Kn=Dn.getStyle("font-size").getNumber(zn.fontSize),$n=Dn.getStyle("font-style").getString(zn.fontStyle),Wn=Kn/Vn,Xn=Hn.isRTL?QC(Gn=Qn.split("")).call(Gn).join(""):Qn,Yn=toNumbers(Dn.getAttribute("dx").getString()),Jn=Xn.length,Zn=0;Zn<Jn;Zn++){var er=this.getGlyph(Hn,Xn,Zn);Tn.translate(this.x,this.y),Tn.scale(Wn,-Wn);var tr=Tn.lineWidth;Tn.lineWidth=Tn.lineWidth*Vn/Kn,"italic"===$n&&Tn.transform(1,0,.4,1,0,0),er.render(Tn),"italic"===$n&&Tn.transform(1,0,-.4,1,0,0),Tn.lineWidth=tr,Tn.scale(1/Wn,-1/Wn),Tn.translate(-this.x,-this.y),this.x+=Kn*(er.horizAdvX||Hn.horizAdvX)/Vn,void 0===Yn[Zn]||isNaN(Yn[Zn])||(this.x+=Yn[Zn])}else{var nr=this.x,rr=this.y;"stroke"===Tn.paintOrder?(Tn.strokeStyle&&Tn.strokeText(Qn,nr,rr),Tn.fillStyle&&Tn.fillText(Qn,nr,rr)):(Tn.fillStyle&&Tn.fillText(Qn,nr,rr),Tn.strokeStyle&&Tn.strokeText(Qn,nr,rr))}}},{key:"getAnchorDelta",value:function getAnchorDelta(Tn,Un,Dn){var Qn=this.getStyle("text-anchor").getString("start");if("start"!==Qn){for(var Hn=Un.children,Gn=Hn.length,Vn=null,zn=0,Kn=Dn;Kn<Gn&&(Vn=Hn[Kn],!(Kn>Dn&&Vn.getAttribute("x").hasValue()||Vn.getAttribute("text-anchor").hasValue()));Kn++)zn+=Vn.measureTextRecursive(Tn);return-1*("end"===Qn?zn:zn/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(Tn,Un,Dn,Qn){var Hn=Dn.children[Qn];if("function"!=typeof Hn.measureText)return Hn;Tn.save(),Hn.setContext(Tn,!0);var Gn=Hn.getAttribute("x"),Vn=Hn.getAttribute("y"),zn=Hn.getAttribute("dx"),Kn=Hn.getAttribute("dy"),$n=Hn.getAttribute("text-anchor").getString("start");if(0===Qn&&"textNode"!==Hn.type&&(Gn.hasValue()||Gn.setValue(Un.getAttribute("x").getValue("0")),Vn.hasValue()||Vn.setValue(Un.getAttribute("y").getValue("0")),zn.hasValue()||zn.setValue(Un.getAttribute("dx").getValue("0")),Kn.hasValue()||Kn.setValue(Un.getAttribute("dy").getValue("0"))),Gn.hasValue()){if(Hn.x=Gn.getPixels("x")+Un.getAnchorDelta(Tn,Dn,Qn),"start"!==$n){var Wn=Hn.measureTextRecursive(Tn);Hn.x+=-1*("end"===$n?Wn:Wn/2)}zn.hasValue()&&(Hn.x+=zn.getPixels("x"))}else{if("start"!==$n){var Xn=Hn.measureTextRecursive(Tn);Un.x+=-1*("end"===$n?Xn:Xn/2)}zn.hasValue()&&(Un.x+=zn.getPixels("x")),Hn.x=Un.x}return Un.x=Hn.x+Hn.measureText(Tn),Vn.hasValue()?(Hn.y=Vn.getPixels("y"),Kn.hasValue()&&(Hn.y+=Kn.getPixels("y"))):(Kn.hasValue()&&(Un.y+=Kn.getPixels("y")),Hn.y=Un.y),Un.y=Hn.y,Hn.clearContext(Tn),Tn.restore(),Hn}},{key:"getChildBoundingBox",value:function getChildBoundingBox(Tn,Un,Dn,Qn){var Hn,Gn=this.adjustChildCoordinates(Tn,Un,Dn,Qn);if("function"!=typeof Gn.getBoundingBox)return null;var Vn=Gn.getBoundingBox(Tn);return Vn?(mw(Hn=Gn.children).call(Hn,(function(Dn,Qn){var Hn=Un.getChildBoundingBox(Tn,Un,Gn,Qn);Vn.addBoundingBox(Hn)})),Vn):null}},{key:"renderChild",value:function renderChild(Tn,Un,Dn,Qn){var Hn,Gn=this.adjustChildCoordinates(Tn,Un,Dn,Qn);Gn.render(Tn),mw(Hn=Gn.children).call(Hn,(function(Dn,Qn){Un.renderChild(Tn,Un,Gn,Qn)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(Tn){var Un;return _S(Un=this.children).call(Un,(function(Un,Dn){return Un+Dn.measureTextRecursive(Tn)}),this.measureText(Tn))}},{key:"measureText",value:function measureText(Tn){var Un=this.measureCache;if(~Un)return Un;var Dn=this.getText(),Qn=this.measureTargetText(Tn,Dn);return this.measureCache=Qn,Qn}},{key:"measureTargetText",value:function measureTargetText(Tn,Un){if(!Un.length)return 0;var Dn=this.parent,Qn=Dn.getStyle("font-family").getDefinition();if(Qn){for(var Hn,Gn=this.getFontSize(),Vn=Qn.isRTL?QC(Hn=Un.split("")).call(Hn).join(""):Un,zn=toNumbers(Dn.getAttribute("dx").getString()),Kn=Vn.length,$n=0,Wn=0;Wn<Kn;Wn++){$n+=(this.getGlyph(Qn,Vn,Wn).horizAdvX||Qn.horizAdvX)*Gn/Qn.fontFace.unitsPerEm,void 0===zn[Wn]||isNaN(zn[Wn])||($n+=zn[Wn])}return $n}if(!Tn.measureText)return 10*Un.length;Tn.save(),this.setContext(Tn,!0);var Xn=Tn.measureText(Un).width;return this.clearContext(Tn),Tn.restore(),Xn}}]),TextElement}();function _createSuper$6(Tn){var Un=function _isNativeReflectConstruct$6(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var OB=function(Tn){uC(TSpanElement,IB);var Un=_createSuper$6(TSpanElement);function TSpanElement(Tn,Dn,Qn){var Hn;return cS(this,TSpanElement),(Hn=Un.call(this,Tn,Dn,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||Qn)).type="tspan",Hn.text=Hn.children.length>0?"":Hn.getTextFromNode(),Hn}return uS(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}();function _createSuper$7(Tn){var Un=function _isNativeReflectConstruct$7(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var FB=function(Tn){uC(TextNode,OB);var Un=_createSuper$7(TextNode);function TextNode(){var Tn;return cS(this,TextNode),(Tn=Un.apply(this,arguments)).type="textNode",Tn}return TextNode}();function _createSuper$8(Tn){var Un=function _isNativeReflectConstruct$8(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var UB=function(Tn){uC(PathParser,hk);var Un=_createSuper$8(PathParser);function PathParser(Tn){var Dn;return cS(this,PathParser),(Dn=Un.call(this,Tn.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,Dn.start=null,Dn.current=null,Dn.command=null,Dn.commands=Dn.commands,Dn.i=-1,Dn.previousCommand=null,Dn.points=[],Dn.angles=[],Dn}return uS(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new uB(0,0),this.control=new uB(0,0),this.current=new uB(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function isEnd(){return this.i>=this.commands.length-1}},{key:"next",value:function next(){var Tn=this.commands[++this.i];return this.previousCommand=this.command,this.command=Tn,Tn}},{key:"getPoint",value:function getPoint(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",Dn=new uB(this.command[Tn],this.command[Un]);return this.makeAbsolute(Dn)}},{key:"getAsControlPoint",value:function getAsControlPoint(Tn,Un){var Dn=this.getPoint(Tn,Un);return this.control=Dn,Dn}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(Tn,Un){var Dn=this.getPoint(Tn,Un);return this.current=Dn,Dn}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var Tn=this.previousCommand.type;if(Tn!==hk.CURVE_TO&&Tn!==hk.SMOOTH_CURVE_TO&&Tn!==hk.QUAD_TO&&Tn!==hk.SMOOTH_QUAD_TO)return this.current;var Un=this.current,Dn=Un.x,Qn=Un.y,Hn=this.control,Gn=Hn.x,Vn=Hn.y;return new uB(2*Dn-Gn,2*Qn-Vn)}},{key:"makeAbsolute",value:function makeAbsolute(Tn){if(this.command.relative){var Un=this.current,Dn=Un.x,Qn=Un.y;Tn.x+=Dn,Tn.y+=Qn}return Tn}},{key:"addMarker",value:function addMarker(Tn,Un,Dn){var Qn=this.points,Hn=this.angles;Dn&&Hn.length>0&&!Hn[Hn.length-1]&&(Hn[Hn.length-1]=Qn[Qn.length-1].angleTo(Dn)),this.addMarkerAngle(Tn,Un?Un.angleTo(Tn):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(Tn,Un){this.points.push(Tn),this.angles.push(Un)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var Tn=this.angles,Un=Tn.length,Dn=0;Dn<Un;Dn++)if(!Tn[Dn])for(var Qn=Dn+1;Qn<Un;Qn++)if(Tn[Qn]){Tn[Dn]=Tn[Qn];break}return Tn}}]),PathParser}();function _createSuper$9(Tn){var Un=function _isNativeReflectConstruct$9(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var MB=function(Tn){uC(PathElement,NB);var Un=_createSuper$9(PathElement);function PathElement(Tn,Dn,Qn){var Hn;return cS(this,PathElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="path",Hn.pathParser=null,Hn.pathParser=new UB(Hn.getAttribute("d").getString()),Hn}return uS(PathElement,[{key:"path",value:function path(Tn){var Un=this.pathParser,Dn=new TB;for(Un.reset(),Tn&&Tn.beginPath();!Un.isEnd();)switch(Un.next().type){case UB.MOVE_TO:this.pathM(Tn,Dn);break;case UB.LINE_TO:this.pathL(Tn,Dn);break;case UB.HORIZ_LINE_TO:this.pathH(Tn,Dn);break;case UB.VERT_LINE_TO:this.pathV(Tn,Dn);break;case UB.CURVE_TO:this.pathC(Tn,Dn);break;case UB.SMOOTH_CURVE_TO:this.pathS(Tn,Dn);break;case UB.QUAD_TO:this.pathQ(Tn,Dn);break;case UB.SMOOTH_QUAD_TO:this.pathT(Tn,Dn);break;case UB.ARC:this.pathA(Tn,Dn);break;case UB.CLOSE_PATH:this.pathZ(Tn,Dn)}return Dn}},{key:"getBoundingBox",value:function getBoundingBox(Tn){return this.path()}},{key:"getMarkers",value:function getMarkers(){var Tn=this.pathParser,Un=Tn.getMarkerPoints(),Dn=Tn.getMarkerAngles();return ty(Un).call(Un,(function(Tn,Un){return[Tn,Dn[Un]]}))}},{key:"renderChildren",value:function renderChildren(Tn){this.path(Tn),this.document.screen.mouse.checkPath(this,Tn);var Un=this.getStyle("fill-rule");""!==Tn.fillStyle&&("inherit"!==Un.getString("inherit")?nk(Tn).call(Tn,Un.getString()):nk(Tn).call(Tn)),""!==Tn.strokeStyle&&Tn.stroke();var Dn=this.getMarkers();if(Dn){var Qn=Dn.length-1,Hn=this.getStyle("marker-start"),Gn=this.getStyle("marker-mid"),Vn=this.getStyle("marker-end");if(Hn.isUrlDefinition()){var zn=Hn.getDefinition(),Kn=rw(Dn[0],2),$n=Kn[0],Wn=Kn[1];zn.render(Tn,$n,Wn)}if(Gn.isUrlDefinition())for(var Xn=Gn.getDefinition(),Yn=1;Yn<Qn;Yn++){var Jn=rw(Dn[Yn],2),Zn=Jn[0],er=Jn[1];Xn.render(Tn,Zn,er)}if(Vn.isUrlDefinition()){var tr=Vn.getDefinition(),nr=rw(Dn[Qn],2),rr=nr[0],ir=nr[1];tr.render(Tn,rr,ir)}}}},{key:"pathM",value:function pathM(Tn,Un){var Dn=this.pathParser,Qn=PathElement.pathM(Dn).point,Hn=Qn.x,Gn=Qn.y;Dn.addMarker(Qn),Un.addPoint(Hn,Gn),Tn&&Tn.moveTo(Hn,Gn)}},{key:"pathL",value:function pathL(Tn,Un){var Dn=this.pathParser,Qn=PathElement.pathL(Dn),Hn=Qn.current,Gn=Qn.point,Vn=Gn.x,zn=Gn.y;Dn.addMarker(Gn,Hn),Un.addPoint(Vn,zn),Tn&&Tn.lineTo(Vn,zn)}},{key:"pathH",value:function pathH(Tn,Un){var Dn=this.pathParser,Qn=PathElement.pathH(Dn),Hn=Qn.current,Gn=Qn.point,Vn=Gn.x,zn=Gn.y;Dn.addMarker(Gn,Hn),Un.addPoint(Vn,zn),Tn&&Tn.lineTo(Vn,zn)}},{key:"pathV",value:function pathV(Tn,Un){var Dn=this.pathParser,Qn=PathElement.pathV(Dn),Hn=Qn.current,Gn=Qn.point,Vn=Gn.x,zn=Gn.y;Dn.addMarker(Gn,Hn),Un.addPoint(Vn,zn),Tn&&Tn.lineTo(Vn,zn)}},{key:"pathC",value:function pathC(Tn,Un){var Dn=this.pathParser,Qn=PathElement.pathC(Dn),Hn=Qn.current,Gn=Qn.point,Vn=Qn.controlPoint,zn=Qn.currentPoint;Dn.addMarker(zn,Vn,Gn),Un.addBezierCurve(Hn.x,Hn.y,Gn.x,Gn.y,Vn.x,Vn.y,zn.x,zn.y),Tn&&Tn.bezierCurveTo(Gn.x,Gn.y,Vn.x,Vn.y,zn.x,zn.y)}},{key:"pathS",value:function pathS(Tn,Un){var Dn=this.pathParser,Qn=PathElement.pathS(Dn),Hn=Qn.current,Gn=Qn.point,Vn=Qn.controlPoint,zn=Qn.currentPoint;Dn.addMarker(zn,Vn,Gn),Un.addBezierCurve(Hn.x,Hn.y,Gn.x,Gn.y,Vn.x,Vn.y,zn.x,zn.y),Tn&&Tn.bezierCurveTo(Gn.x,Gn.y,Vn.x,Vn.y,zn.x,zn.y)}},{key:"pathQ",value:function pathQ(Tn,Un){var Dn=this.pathParser,Qn=PathElement.pathQ(Dn),Hn=Qn.current,Gn=Qn.controlPoint,Vn=Qn.currentPoint;Dn.addMarker(Vn,Gn,Gn),Un.addQuadraticCurve(Hn.x,Hn.y,Gn.x,Gn.y,Vn.x,Vn.y),Tn&&Tn.quadraticCurveTo(Gn.x,Gn.y,Vn.x,Vn.y)}},{key:"pathT",value:function pathT(Tn,Un){var Dn=this.pathParser,Qn=PathElement.pathT(Dn),Hn=Qn.current,Gn=Qn.controlPoint,Vn=Qn.currentPoint;Dn.addMarker(Vn,Gn,Gn),Un.addQuadraticCurve(Hn.x,Hn.y,Gn.x,Gn.y,Vn.x,Vn.y),Tn&&Tn.quadraticCurveTo(Gn.x,Gn.y,Vn.x,Vn.y)}},{key:"pathA",value:function pathA(Tn,Un){var Dn=this.pathParser,Qn=PathElement.pathA(Dn),Hn=Qn.currentPoint,Gn=Qn.rX,Vn=Qn.rY,zn=Qn.sweepFlag,Kn=Qn.xAxisRotation,$n=Qn.centp,Wn=Qn.a1,Xn=Qn.ad,Yn=1-zn?1:-1,Jn=Wn+Yn*(Xn/2),Zn=new uB($n.x+Gn*Math.cos(Jn),$n.y+Vn*Math.sin(Jn));if(Dn.addMarkerAngle(Zn,Jn-Yn*Math.PI/2),Dn.addMarkerAngle(Hn,Jn-Yn*Math.PI),Un.addPoint(Hn.x,Hn.y),Tn&&!isNaN(Wn)&&!isNaN(Xn)){var er=Gn>Vn?Gn:Vn,tr=Gn>Vn?1:Gn/Vn,nr=Gn>Vn?Vn/Gn:1;Tn.translate($n.x,$n.y),Tn.rotate(Kn),Tn.scale(tr,nr),Tn.arc(0,0,er,Wn,Wn+Xn,Boolean(1-zn)),Tn.scale(1/tr,1/nr),Tn.rotate(-Kn),Tn.translate(-$n.x,-$n.y)}}},{key:"pathZ",value:function pathZ(Tn,Un){PathElement.pathZ(this.pathParser),Tn&&Un.x1!==Un.x2&&Un.y1!==Un.y2&&Tn.closePath()}}],[{key:"pathM",value:function pathM(Tn){var Un=Tn.getAsCurrentPoint();return Tn.start=Tn.current,{point:Un}}},{key:"pathL",value:function pathL(Tn){return{current:Tn.current,point:Tn.getAsCurrentPoint()}}},{key:"pathH",value:function pathH(Tn){var Un=Tn.current,Dn=Tn.command,Qn=new uB((Dn.relative?Un.x:0)+Dn.x,Un.y);return Tn.current=Qn,{current:Un,point:Qn}}},{key:"pathV",value:function pathV(Tn){var Un=Tn.current,Dn=Tn.command,Qn=new uB(Un.x,(Dn.relative?Un.y:0)+Dn.y);return Tn.current=Qn,{current:Un,point:Qn}}},{key:"pathC",value:function pathC(Tn){return{current:Tn.current,point:Tn.getPoint("x1","y1"),controlPoint:Tn.getAsControlPoint("x2","y2"),currentPoint:Tn.getAsCurrentPoint()}}},{key:"pathS",value:function pathS(Tn){return{current:Tn.current,point:Tn.getReflectedControlPoint(),controlPoint:Tn.getAsControlPoint("x2","y2"),currentPoint:Tn.getAsCurrentPoint()}}},{key:"pathQ",value:function pathQ(Tn){return{current:Tn.current,controlPoint:Tn.getAsControlPoint("x1","y1"),currentPoint:Tn.getAsCurrentPoint()}}},{key:"pathT",value:function pathT(Tn){var Un=Tn.current,Dn=Tn.getReflectedControlPoint();return Tn.control=Dn,{current:Un,controlPoint:Dn,currentPoint:Tn.getAsCurrentPoint()}}},{key:"pathA",value:function pathA(Tn){var Un=Tn.current,Dn=Tn.command,Qn=Dn.rX,Hn=Dn.rY,Gn=Dn.xRot,Vn=Dn.lArcFlag,zn=Dn.sweepFlag,Kn=Gn*(Math.PI/180),$n=Tn.getAsCurrentPoint(),Wn=new uB(Math.cos(Kn)*(Un.x-$n.x)/2+Math.sin(Kn)*(Un.y-$n.y)/2,-Math.sin(Kn)*(Un.x-$n.x)/2+Math.cos(Kn)*(Un.y-$n.y)/2),Xn=Math.pow(Wn.x,2)/Math.pow(Qn,2)+Math.pow(Wn.y,2)/Math.pow(Hn,2);Xn>1&&(Qn*=Math.sqrt(Xn),Hn*=Math.sqrt(Xn));var Yn=(Vn===zn?-1:1)*Math.sqrt((Math.pow(Qn,2)*Math.pow(Hn,2)-Math.pow(Qn,2)*Math.pow(Wn.y,2)-Math.pow(Hn,2)*Math.pow(Wn.x,2))/(Math.pow(Qn,2)*Math.pow(Wn.y,2)+Math.pow(Hn,2)*Math.pow(Wn.x,2)));isNaN(Yn)&&(Yn=0);var Jn=new uB(Yn*Qn*Wn.y/Hn,Yn*-Hn*Wn.x/Qn),Zn=new uB((Un.x+$n.x)/2+Math.cos(Kn)*Jn.x-Math.sin(Kn)*Jn.y,(Un.y+$n.y)/2+Math.sin(Kn)*Jn.x+Math.cos(Kn)*Jn.y),er=vectorsAngle([1,0],[(Wn.x-Jn.x)/Qn,(Wn.y-Jn.y)/Hn]),tr=[(Wn.x-Jn.x)/Qn,(Wn.y-Jn.y)/Hn],nr=[(-Wn.x-Jn.x)/Qn,(-Wn.y-Jn.y)/Hn],rr=vectorsAngle(tr,nr);return vectorsRatio(tr,nr)<=-1&&(rr=Math.PI),vectorsRatio(tr,nr)>=1&&(rr=0),{currentPoint:$n,rX:Qn,rY:Hn,sweepFlag:zn,xAxisRotation:Kn,centp:Zn,a1:er,ad:rr}}},{key:"pathZ",value:function pathZ(Tn){Tn.current=Tn.start}}]),PathElement}();function _createSuper$a(Tn){var Un=function _isNativeReflectConstruct$a(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var RB=function(Tn){uC(SVGElement,NB);var Un=_createSuper$a(SVGElement);function SVGElement(){var Tn;return cS(this,SVGElement),(Tn=Un.apply(this,arguments)).type="svg",Tn.root=!1,Tn}return uS(SVGElement,[{key:"setContext",value:function setContext(Tn){var Un=this.document,Dn=Un.screen,Qn=Un.window,Hn=Tn.canvas;if(Dn.setDefaults(Tn),Hn.style&&void 0!==Tn.font&&Qn&&void 0!==Qn.getComputedStyle){Tn.font=Qn.getComputedStyle(Hn).getPropertyValue("font");var Gn=new lB(Un,"fontSize",LB.parse(Tn.font).fontSize);Gn.hasValue()&&(Un.rootEmSize=Gn.getPixels("y"),Un.emSize=Un.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var Vn=Dn.viewPort,zn=Vn.width,Kn=Vn.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 $n=this.getAttribute("refX"),Wn=this.getAttribute("refY"),Xn=this.getAttribute("viewBox"),Yn=Xn.hasValue()?toNumbers(Xn.getString()):null,Jn=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),Zn=0,er=0,tr=0,nr=0;Yn&&(Zn=Yn[0],er=Yn[1]),this.root||(zn=this.getStyle("width").getPixels("x"),Kn=this.getStyle("height").getPixels("y"),"marker"===this.type&&(tr=Zn,nr=er,Zn=0,er=0)),Dn.viewPort.setCurrent(zn,Kn),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),ZC(mC(SVGElement.prototype),"setContext",this).call(this,Tn),Tn.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),Yn&&(zn=Yn[2],Kn=Yn[3]),Un.setViewBox({ctx:Tn,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:Dn.viewPort.width,desiredWidth:zn,height:Dn.viewPort.height,desiredHeight:Kn,minX:Zn,minY:er,refX:$n.getValue(),refY:Wn.getValue(),clip:Jn,clipX:tr,clipY:nr}),Yn&&(Dn.viewPort.removeCurrent(),Dn.viewPort.setCurrent(zn,Kn))}},{key:"clearContext",value:function clearContext(Tn){ZC(mC(SVGElement.prototype),"clearContext",this).call(this,Tn),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function resize(Tn){var Un,Dn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn,Qn=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Hn=this.getAttribute("width",!0),Gn=this.getAttribute("height",!0),Vn=this.getAttribute("viewBox"),zn=this.getAttribute("style"),Kn=Hn.getNumber(0),$n=Gn.getNumber(0);if(Qn)if("string"==typeof Qn)this.getAttribute("preserveAspectRatio",!0).setValue(Qn);else{var Wn=this.getAttribute("preserveAspectRatio");Wn.hasValue()&&Wn.setValue(Wn.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}(Hn.setValue(Tn),Gn.setValue(Dn),Vn.hasValue())||Vn.setValue(pS(Un="0 0 ".concat(Kn||Tn," ")).call(Un,$n||Dn));if(zn.hasValue()){var Xn=this.getStyle("width"),Yn=this.getStyle("height");Xn.hasValue()&&Xn.setValue("".concat(Tn,"px")),Yn.hasValue()&&Yn.setValue("".concat(Dn,"px"))}}}]),SVGElement}();function _createSuper$b(Tn){var Un=function _isNativeReflectConstruct$b(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var DB=function(Tn){uC(RectElement,MB);var Un=_createSuper$b(RectElement);function RectElement(){var Tn;return cS(this,RectElement),(Tn=Un.apply(this,arguments)).type="rect",Tn}return uS(RectElement,[{key:"path",value:function path(Tn){var Un=this.getAttribute("x").getPixels("x"),Dn=this.getAttribute("y").getPixels("y"),Qn=this.getStyle("width",!1,!0).getPixels("x"),Hn=this.getStyle("height",!1,!0).getPixels("y"),Gn=this.getAttribute("rx"),Vn=this.getAttribute("ry"),zn=Gn.getPixels("x"),Kn=Vn.getPixels("y");if(Gn.hasValue()&&!Vn.hasValue()&&(Kn=zn),Vn.hasValue()&&!Gn.hasValue()&&(zn=Kn),zn=Math.min(zn,Qn/2),Kn=Math.min(Kn,Hn/2),Tn){var $n=(Math.sqrt(2)-1)/3*4;Tn.beginPath(),Hn>0&&Qn>0&&(Tn.moveTo(Un+zn,Dn),Tn.lineTo(Un+Qn-zn,Dn),Tn.bezierCurveTo(Un+Qn-zn+$n*zn,Dn,Un+Qn,Dn+Kn-$n*Kn,Un+Qn,Dn+Kn),Tn.lineTo(Un+Qn,Dn+Hn-Kn),Tn.bezierCurveTo(Un+Qn,Dn+Hn-Kn+$n*Kn,Un+Qn-zn+$n*zn,Dn+Hn,Un+Qn-zn,Dn+Hn),Tn.lineTo(Un+zn,Dn+Hn),Tn.bezierCurveTo(Un+zn-$n*zn,Dn+Hn,Un,Dn+Hn-Kn+$n*Kn,Un,Dn+Hn-Kn),Tn.lineTo(Un,Dn+Kn),Tn.bezierCurveTo(Un,Dn+Kn-$n*Kn,Un+zn-$n*zn,Dn,Un+zn,Dn),Tn.closePath())}return new TB(Un,Dn,Un+Qn,Dn+Hn)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}();function _createSuper$c(Tn){var Un=function _isNativeReflectConstruct$c(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var jB=function(Tn){uC(CircleElement,MB);var Un=_createSuper$c(CircleElement);function CircleElement(){var Tn;return cS(this,CircleElement),(Tn=Un.apply(this,arguments)).type="circle",Tn}return uS(CircleElement,[{key:"path",value:function path(Tn){var Un=this.getAttribute("cx").getPixels("x"),Dn=this.getAttribute("cy").getPixels("y"),Qn=this.getAttribute("r").getPixels();return Tn&&Qn>0&&(Tn.beginPath(),Tn.arc(Un,Dn,Qn,0,2*Math.PI,!1),Tn.closePath()),new TB(Un-Qn,Dn-Qn,Un+Qn,Dn+Qn)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}();function _createSuper$d(Tn){var Un=function _isNativeReflectConstruct$d(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var QB=function(Tn){uC(EllipseElement,MB);var Un=_createSuper$d(EllipseElement);function EllipseElement(){var Tn;return cS(this,EllipseElement),(Tn=Un.apply(this,arguments)).type="ellipse",Tn}return uS(EllipseElement,[{key:"path",value:function path(Tn){var Un=(Math.sqrt(2)-1)/3*4,Dn=this.getAttribute("rx").getPixels("x"),Qn=this.getAttribute("ry").getPixels("y"),Hn=this.getAttribute("cx").getPixels("x"),Gn=this.getAttribute("cy").getPixels("y");return Tn&&Dn>0&&Qn>0&&(Tn.beginPath(),Tn.moveTo(Hn+Dn,Gn),Tn.bezierCurveTo(Hn+Dn,Gn+Un*Qn,Hn+Un*Dn,Gn+Qn,Hn,Gn+Qn),Tn.bezierCurveTo(Hn-Un*Dn,Gn+Qn,Hn-Dn,Gn+Un*Qn,Hn-Dn,Gn),Tn.bezierCurveTo(Hn-Dn,Gn-Un*Qn,Hn-Un*Dn,Gn-Qn,Hn,Gn-Qn),Tn.bezierCurveTo(Hn+Un*Dn,Gn-Qn,Hn+Dn,Gn-Un*Qn,Hn+Dn,Gn),Tn.closePath()),new TB(Hn-Dn,Gn-Qn,Hn+Dn,Gn+Qn)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}();function _createSuper$e(Tn){var Un=function _isNativeReflectConstruct$e(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var HB=function(Tn){uC(LineElement,MB);var Un=_createSuper$e(LineElement);function LineElement(){var Tn;return cS(this,LineElement),(Tn=Un.apply(this,arguments)).type="line",Tn}return uS(LineElement,[{key:"getPoints",value:function getPoints(){return[new uB(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new uB(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(Tn){var Un=this.getPoints(),Dn=rw(Un,2),Qn=Dn[0],Hn=Qn.x,Gn=Qn.y,Vn=Dn[1],zn=Vn.x,Kn=Vn.y;return Tn&&(Tn.beginPath(),Tn.moveTo(Hn,Gn),Tn.lineTo(zn,Kn)),new TB(Hn,Gn,zn,Kn)}},{key:"getMarkers",value:function getMarkers(){var Tn=this.getPoints(),Un=rw(Tn,2),Dn=Un[0],Qn=Un[1],Hn=Dn.angleTo(Qn);return[[Dn,Hn],[Qn,Hn]]}}]),LineElement}();function _createSuper$f(Tn){var Un=function _isNativeReflectConstruct$f(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var GB=function(Tn){uC(PolylineElement,MB);var Un=_createSuper$f(PolylineElement);function PolylineElement(Tn,Dn,Qn){var Hn;return cS(this,PolylineElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="polyline",Hn.points=[],Hn.points=uB.parsePath(Hn.getAttribute("points").getString()),Hn}return uS(PolylineElement,[{key:"path",value:function path(Tn){var Un=this.points,Dn=rw(Un,1)[0],Qn=Dn.x,Hn=Dn.y,Gn=new TB(Qn,Hn);return Tn&&(Tn.beginPath(),Tn.moveTo(Qn,Hn)),mw(Un).call(Un,(function(Un){var Dn=Un.x,Qn=Un.y;Gn.addPoint(Dn,Qn),Tn&&Tn.lineTo(Dn,Qn)})),Gn}},{key:"getMarkers",value:function getMarkers(){var Tn=this.points,Un=Tn.length-1,Dn=[];return mw(Tn).call(Tn,(function(Qn,Hn){Hn!==Un&&Dn.push([Qn,Qn.angleTo(Tn[Hn+1])])})),Dn.length>0&&Dn.push([Tn[Tn.length-1],Dn[Dn.length-1][1]]),Dn}}]),PolylineElement}();function _createSuper$g(Tn){var Un=function _isNativeReflectConstruct$g(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var VB=function(Tn){uC(PolygonElement,GB);var Un=_createSuper$g(PolygonElement);function PolygonElement(){var Tn;return cS(this,PolygonElement),(Tn=Un.apply(this,arguments)).type="polygon",Tn}return uS(PolygonElement,[{key:"path",value:function path(Tn){var Un=ZC(mC(PolygonElement.prototype),"path",this).call(this,Tn),Dn=rw(this.points,1)[0],Qn=Dn.x,Hn=Dn.y;return Tn&&(Tn.lineTo(Qn,Hn),Tn.closePath()),Un}}]),PolygonElement}();function _createSuper$h(Tn){var Un=function _isNativeReflectConstruct$h(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var zB=function(Tn){uC(PatternElement,EB);var Un=_createSuper$h(PatternElement);function PatternElement(){var Tn;return cS(this,PatternElement),(Tn=Un.apply(this,arguments)).type="pattern",Tn}return uS(PatternElement,[{key:"createPattern",value:function createPattern(Tn,Un,Dn){var Qn=this.getStyle("width").getPixels("x",!0),Hn=this.getStyle("height").getPixels("y",!0),Gn=new RB(this.document,null);Gn.attributes.viewBox=new lB(this.document,"viewBox",this.getAttribute("viewBox").getValue()),Gn.attributes.width=new lB(this.document,"width","".concat(Qn,"px")),Gn.attributes.height=new lB(this.document,"height","".concat(Hn,"px")),Gn.attributes.transform=new lB(this.document,"transform",this.getAttribute("patternTransform").getValue()),Gn.children=this.children;var Vn=this.document.createCanvas(Qn,Hn),zn=Vn.getContext("2d"),Kn=this.getAttribute("x"),$n=this.getAttribute("y");Kn.hasValue()&&$n.hasValue()&&zn.translate(Kn.getPixels("x",!0),$n.getPixels("y",!0)),Dn.hasValue()?this.styles["fill-opacity"]=Dn:fk(this.styles,"fill-opacity");for(var Wn=-1;Wn<=1;Wn++)for(var Xn=-1;Xn<=1;Xn++)zn.save(),Gn.attributes.x=new lB(this.document,"x",Wn*Vn.width),Gn.attributes.y=new lB(this.document,"y",Xn*Vn.height),Gn.render(zn),zn.restore();return Tn.createPattern(Vn,"repeat")}}]),PatternElement}();function _createSuper$i(Tn){var Un=function _isNativeReflectConstruct$i(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var KB=function(Tn){uC(MarkerElement,EB);var Un=_createSuper$i(MarkerElement);function MarkerElement(){var Tn;return cS(this,MarkerElement),(Tn=Un.apply(this,arguments)).type="marker",Tn}return uS(MarkerElement,[{key:"render",value:function render(Tn,Un,Dn){if(Un){var Qn=Un.x,Hn=Un.y,Gn=this.getAttribute("orient").getValue("auto"),Vn=this.getAttribute("markerUnits").getValue("strokeWidth");Tn.translate(Qn,Hn),"auto"===Gn&&Tn.rotate(Dn),"strokeWidth"===Vn&&Tn.scale(Tn.lineWidth,Tn.lineWidth),Tn.save();var zn=new RB(this.document,null);zn.type=this.type,zn.attributes.viewBox=new lB(this.document,"viewBox",this.getAttribute("viewBox").getValue()),zn.attributes.refX=new lB(this.document,"refX",this.getAttribute("refX").getValue()),zn.attributes.refY=new lB(this.document,"refY",this.getAttribute("refY").getValue()),zn.attributes.width=new lB(this.document,"width",this.getAttribute("markerWidth").getValue()),zn.attributes.height=new lB(this.document,"height",this.getAttribute("markerHeight").getValue()),zn.attributes.overflow=new lB(this.document,"overflow",this.getAttribute("overflow").getValue()),zn.attributes.fill=new lB(this.document,"fill",this.getAttribute("fill").getColor("black")),zn.attributes.stroke=new lB(this.document,"stroke",this.getAttribute("stroke").getValue("none")),zn.children=this.children,zn.render(Tn),Tn.restore(),"strokeWidth"===Vn&&Tn.scale(1/Tn.lineWidth,1/Tn.lineWidth),"auto"===Gn&&Tn.rotate(-Dn),Tn.translate(-Qn,-Hn)}}}]),MarkerElement}();function _createSuper$j(Tn){var Un=function _isNativeReflectConstruct$j(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var qB=function(Tn){uC(DefsElement,EB);var Un=_createSuper$j(DefsElement);function DefsElement(){var Tn;return cS(this,DefsElement),(Tn=Un.apply(this,arguments)).type="defs",Tn}return uS(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}();function _createSuper$k(Tn){var Un=function _isNativeReflectConstruct$k(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var $B=function(Tn){uC(GElement,NB);var Un=_createSuper$k(GElement);function GElement(){var Tn;return cS(this,GElement),(Tn=Un.apply(this,arguments)).type="g",Tn}return uS(GElement,[{key:"getBoundingBox",value:function getBoundingBox(Tn){var Un,Dn=new TB;return mw(Un=this.children).call(Un,(function(Un){Dn.addBoundingBox(Un.getBoundingBox(Tn))})),Dn}}]),GElement}();function _createSuper$l(Tn){var Un=function _isNativeReflectConstruct$l(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var WB=function(Tn){uC(GradientElement,EB);var Un=_createSuper$l(GradientElement);function GradientElement(Tn,Dn,Qn){var Hn;cS(this,GradientElement),(Hn=Un.call(this,Tn,Dn,Qn)).attributesToInherit=["gradientUnits"],Hn.stops=[];var Gn=pC(Hn),Vn=Gn.stops,zn=Gn.children;return mw(zn).call(zn,(function(Tn){"stop"===Tn.type&&Vn.push(Tn)})),Hn}return uS(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(Tn,Un,Dn){var Qn=this,Hn=this;this.getHrefAttribute().hasValue()&&(Hn=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(Hn));var Gn=Hn.stops,Vn=this.getGradient(Tn,Un);if(!Vn)return this.addParentOpacity(Dn,Gn[Gn.length-1].color);if(mw(Gn).call(Gn,(function(Tn){Vn.addColorStop(Tn.offset,Qn.addParentOpacity(Dn,Tn.color))})),this.getAttribute("gradientTransform").hasValue()){var zn=this.document,Kn=zn.screen,$n=Kn.MAX_VIRTUAL_PIXELS,Wn=Kn.viewPort,Xn=rw(Wn.viewPorts,1)[0],Yn=new DB(zn,null);Yn.attributes.x=new lB(zn,"x",-$n/3),Yn.attributes.y=new lB(zn,"y",-$n/3),Yn.attributes.width=new lB(zn,"width",$n),Yn.attributes.height=new lB(zn,"height",$n);var Jn=new $B(zn,null);Jn.attributes.transform=new lB(zn,"transform",this.getAttribute("gradientTransform").getValue()),Jn.children=[Yn];var Zn=new RB(zn,null);Zn.attributes.x=new lB(zn,"x",0),Zn.attributes.y=new lB(zn,"y",0),Zn.attributes.width=new lB(zn,"width",Xn.width),Zn.attributes.height=new lB(zn,"height",Xn.height),Zn.children=[Jn];var er=zn.createCanvas(Xn.width,Xn.height),tr=er.getContext("2d");return tr.fillStyle=Vn,Zn.render(tr),tr.createPattern(er,"no-repeat")}return Vn}},{key:"inheritStopContainer",value:function inheritStopContainer(Tn){var Un,Dn=this;mw(Un=this.attributesToInherit).call(Un,(function(Un){!Dn.getAttribute(Un).hasValue()&&Tn.getAttribute(Un).hasValue()&&Dn.getAttribute(Un,!0).setValue(Tn.getAttribute(Un).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(Tn,Un){return Tn.hasValue()?new lB(this.document,"color",Un).addOpacity(Tn).getColor():Un}}]),GradientElement}();function _createSuper$m(Tn){var Un=function _isNativeReflectConstruct$m(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var XB=function(Tn){uC(LinearGradientElement,WB);var Un=_createSuper$m(LinearGradientElement);function LinearGradientElement(Tn,Dn,Qn){var Hn;return cS(this,LinearGradientElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="linearGradient",Hn.attributesToInherit.push("x1","y1","x2","y2"),Hn}return uS(LinearGradientElement,[{key:"getGradient",value:function getGradient(Tn,Un){var Dn="objectBoundingBox"===this.getGradientUnits(),Qn=Dn?Un.getBoundingBox(Tn):null;if(Dn&&!Qn)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 Hn=Dn?Qn.x+Qn.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),Gn=Dn?Qn.y+Qn.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),Vn=Dn?Qn.x+Qn.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),zn=Dn?Qn.y+Qn.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return Hn===Vn&&Gn===zn?null:Tn.createLinearGradient(Hn,Gn,Vn,zn)}}]),LinearGradientElement}();function _createSuper$n(Tn){var Un=function _isNativeReflectConstruct$n(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var YB=function(Tn){uC(RadialGradientElement,WB);var Un=_createSuper$n(RadialGradientElement);function RadialGradientElement(Tn,Dn,Qn){var Hn;return cS(this,RadialGradientElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="radialGradient",Hn.attributesToInherit.push("cx","cy","r","fx","fy","fr"),Hn}return uS(RadialGradientElement,[{key:"getGradient",value:function getGradient(Tn,Un){var Dn="objectBoundingBox"===this.getGradientUnits(),Qn=Un.getBoundingBox(Tn);if(Dn&&!Qn)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 Hn=Dn?Qn.x+Qn.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),Gn=Dn?Qn.y+Qn.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),Vn=Hn,zn=Gn;this.getAttribute("fx").hasValue()&&(Vn=Dn?Qn.x+Qn.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(zn=Dn?Qn.y+Qn.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var Kn=Dn?(Qn.width+Qn.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),$n=this.getAttribute("fr").getPixels();return Tn.createRadialGradient(Vn,zn,$n,Hn,Gn,Kn)}}]),RadialGradientElement}();function _createSuper$o(Tn){var Un=function _isNativeReflectConstruct$o(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var JB=function(Tn){uC(StopElement,EB);var Un=_createSuper$o(StopElement);function StopElement(Tn,Dn,Qn){var Hn;cS(this,StopElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="stop";var Gn=Math.max(0,Math.min(1,Hn.getAttribute("offset").getNumber())),Vn=Hn.getStyle("stop-opacity"),zn=Hn.getStyle("stop-color",!0);return""===zn.getString()&&zn.setValue("#000"),Vn.hasValue()&&(zn=zn.addOpacity(Vn)),Hn.offset=Gn,Hn.color=zn.getColor(),Hn}return StopElement}();function _createSuper$p(Tn){var Un=function _isNativeReflectConstruct$p(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var ZB=function(Tn){uC(AnimateElement,EB);var Un=_createSuper$p(AnimateElement);function AnimateElement(Tn,Dn,Qn){var Hn;return cS(this,AnimateElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="animate",Hn.duration=0,Hn.initialValue=null,Hn.initialUnits="",Hn.removed=!1,Hn.frozen=!1,Tn.screen.animations.push(pC(Hn)),Hn.begin=Hn.getAttribute("begin").getMilliseconds(),Hn.maxDuration=Hn.begin+Hn.getAttribute("dur").getMilliseconds(),Hn.from=Hn.getAttribute("from"),Hn.to=Hn.getAttribute("to"),Hn.values=Hn.getAttribute("values"),yk(Hn).hasValue()&&yk(Hn).setValue(yk(Hn).getString().split(";")),Hn}return uS(AnimateElement,[{key:"getProperty",value:function getProperty(){var Tn=this.getAttribute("attributeType").getString(),Un=this.getAttribute("attributeName").getString();return"CSS"===Tn?this.parent.getStyle(Un,!0):this.parent.getAttribute(Un,!0)}},{key:"calcValue",value:function calcValue(){var Tn,Un=this.initialUnits,Dn=this.getProgress(),Qn=Dn.progress,Hn=Dn.from,Gn=Dn.to,Vn=Hn.getNumber()+(Gn.getNumber()-Hn.getNumber())*Qn;return"%"===Un&&(Vn*=100),pS(Tn="".concat(Vn)).call(Tn,Un)}},{key:"update",value:function update(Tn){var Un=this.parent,Dn=this.getProperty();if(this.initialValue||(this.initialValue=Dn.getString(),this.initialUnits=Dn.getUnits()),this.duration>this.maxDuration){var Qn=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==Qn||this.frozen){if("remove"===Qn&&!this.removed)return this.removed=!0,Dn.setValue(Un.animationFrozen?Un.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,Un.animationFrozen=!0,Un.animationFrozenValue=Dn.getString();return!1}this.duration+=Tn;var Hn=!1;if(this.begin<this.duration){var Gn=this.calcValue(),Vn=this.getAttribute("type");if(Vn.hasValue()){var zn,Kn=Vn.getString();Gn=pS(zn="".concat(Kn,"(")).call(zn,Gn,")")}Dn.setValue(Gn),Hn=!0}return Hn}},{key:"getProgress",value:function getProgress(){var Tn=this.document,Un=yk(this),Dn={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(Un.hasValue()){var Qn=Dn.progress*(Un.getValue().length-1),Hn=Math.floor(Qn),Gn=Math.ceil(Qn);Dn.from=new lB(Tn,"from",Pv(Un.getValue()[Hn])),Dn.to=new lB(Tn,"to",Pv(Un.getValue()[Gn])),Dn.progress=(Qn-Hn)/(Gn-Hn)}else Dn.from=this.from,Dn.to=this.to;return Dn}}]),AnimateElement}();function _createSuper$q(Tn){var Un=function _isNativeReflectConstruct$q(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var eE=function(Tn){uC(AnimateColorElement,ZB);var Un=_createSuper$q(AnimateColorElement);function AnimateColorElement(){var Tn;return cS(this,AnimateColorElement),(Tn=Un.apply(this,arguments)).type="animateColor",Tn}return uS(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var Tn=this.getProgress(),Un=Tn.progress,Dn=Tn.from,Qn=Tn.to,Hn=new eC(Dn.getColor()),Gn=new eC(Qn.getColor());if(Hn.ok&&Gn.ok){var Vn,zn,Kn=Hn.r+(Gn.r-Hn.r)*Un,$n=Hn.g+(Gn.g-Hn.g)*Un,Wn=Hn.b+(Gn.b-Hn.b)*Un;return pS(Vn=pS(zn="rgb(".concat(Ck(Kn,10),", ")).call(zn,Ck($n,10),", ")).call(Vn,Ck(Wn,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}();function _createSuper$r(Tn){var Un=function _isNativeReflectConstruct$r(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var tE=function(Tn){uC(AnimateTransformElement,ZB);var Un=_createSuper$r(AnimateTransformElement);function AnimateTransformElement(){var Tn;return cS(this,AnimateTransformElement),(Tn=Un.apply(this,arguments)).type="animateTransform",Tn}return uS(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var Tn=this.getProgress(),Un=Tn.progress,Dn=Tn.from,Qn=Tn.to,Hn=toNumbers(Dn.getString()),Gn=toNumbers(Qn.getString());return ty(Hn).call(Hn,(function(Tn,Dn){return Tn+(Gn[Dn]-Tn)*Un})).join(" ")}}]),AnimateTransformElement}();function _createForOfIteratorHelper$1(Tn,Un){var Dn;if(void 0===Ek||null==Bk(Tn)){if(kk(Tn)||(Dn=function _unsupportedIterableToArray$2(Tn,Un){var Dn;if(!Tn)return;if("string"==typeof Tn)return _arrayLikeToArray$2(Tn,Un);var Qn=Pk(Dn=Object.prototype.toString.call(Tn)).call(Dn,8,-1);"Object"===Qn&&Tn.constructor&&(Qn=Tn.constructor.name);if("Map"===Qn||"Set"===Qn)return UC(Tn);if("Arguments"===Qn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qn))return _arrayLikeToArray$2(Tn,Un)}(Tn))||Un&&Tn&&"number"==typeof Tn.length){Dn&&(Tn=Dn);var Qn=0,Hn=function F(){};return{s:Hn,n:function n(){return Qn>=Tn.length?{done:!0}:{done:!1,value:Tn[Qn++]}},e:function e(Tn){throw Tn},f:Hn}}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 Gn,Vn=!0,zn=!1;return{s:function s(){Dn=F_(Tn)},n:function n(){var Tn=Dn.next();return Vn=Tn.done,Tn},e:function e(Tn){zn=!0,Gn=Tn},f:function f(){try{Vn||null==Dn.return||Dn.return()}finally{if(zn)throw Gn}}}}function _arrayLikeToArray$2(Tn,Un){(null==Un||Un>Tn.length)&&(Un=Tn.length);for(var Dn=0,Qn=new Array(Un);Dn<Un;Dn++)Qn[Dn]=Tn[Dn];return Qn}function _createSuper$s(Tn){var Un=function _isNativeReflectConstruct$s(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var nE=function(Tn){uC(FontElement,EB);var Un=_createSuper$s(FontElement);function FontElement(Tn,Dn,Qn){var Hn;cS(this,FontElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="font",Hn.glyphs={},Hn.horizAdvX=Hn.getAttribute("horiz-adv-x").getNumber();var Gn,Vn=Tn.definitions,zn=_createForOfIteratorHelper$1(pC(Hn).children);try{for(zn.s();!(Gn=zn.n()).done;){var Kn=Gn.value;switch(Kn.type){case"font-face":Hn.fontFace=Kn;var $n=Kn.getStyle("font-family");$n.hasValue()&&(Vn[$n.getString()]=pC(Hn));break;case"missing-glyph":Hn.missingGlyph=Kn;break;case"glyph":var Wn=Kn;Wn.arabicForm?(Hn.isRTL=!0,Hn.isArabic=!0,void 0===Hn.glyphs[Wn.unicode]&&(Hn.glyphs[Wn.unicode]={}),Hn.glyphs[Wn.unicode][Wn.arabicForm]=Wn):Hn.glyphs[Wn.unicode]=Wn}}}catch(Tn){zn.e(Tn)}finally{zn.f()}return Hn}return uS(FontElement,[{key:"render",value:function render(){}}]),FontElement}();function _createSuper$t(Tn){var Un=function _isNativeReflectConstruct$t(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var rE=function(Tn){uC(FontFaceElement,EB);var Un=_createSuper$t(FontFaceElement);function FontFaceElement(Tn,Dn,Qn){var Hn;return cS(this,FontFaceElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="font-face",Hn.ascent=Hn.getAttribute("ascent").getNumber(),Hn.descent=Hn.getAttribute("descent").getNumber(),Hn.unitsPerEm=Hn.getAttribute("units-per-em").getNumber(),Hn}return FontFaceElement}();function _createSuper$u(Tn){var Un=function _isNativeReflectConstruct$u(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var iE=function(Tn){uC(MissingGlyphElement,MB);var Un=_createSuper$u(MissingGlyphElement);function MissingGlyphElement(){var Tn;return cS(this,MissingGlyphElement),(Tn=Un.apply(this,arguments)).type="missing-glyph",Tn.horizAdvX=0,Tn}return MissingGlyphElement}();function _createSuper$v(Tn){var Un=function _isNativeReflectConstruct$v(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var oE=function(Tn){uC(GlyphElement,MB);var Un=_createSuper$v(GlyphElement);function GlyphElement(Tn,Dn,Qn){var Hn;return cS(this,GlyphElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="glyph",Hn.horizAdvX=Hn.getAttribute("horiz-adv-x").getNumber(),Hn.unicode=Hn.getAttribute("unicode").getString(),Hn.arabicForm=Hn.getAttribute("arabic-form").getString(),Hn}return GlyphElement}();function _createSuper$w(Tn){var Un=function _isNativeReflectConstruct$w(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var aE=function(Tn){uC(TRefElement,IB);var Un=_createSuper$w(TRefElement);function TRefElement(){var Tn;return cS(this,TRefElement),(Tn=Un.apply(this,arguments)).type="tref",Tn}return uS(TRefElement,[{key:"getText",value:function getText(){var Tn=this.getHrefAttribute().getDefinition();if(Tn){var Un=Tn.children[0];if(Un)return Un.getText()}return""}}]),TRefElement}();function _createSuper$x(Tn){var Un=function _isNativeReflectConstruct$x(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var sE=function(Tn){uC(AElement,IB);var Un=_createSuper$x(AElement);function AElement(Tn,Dn,Qn){var Hn,Gn;cS(this,AElement),(Gn=Un.call(this,Tn,Dn,Qn)).type="a";var Vn=Dn.childNodes,zn=Vn[0],Kn=Vn.length>0&&LS(Hn=UC(Vn)).call(Hn,(function(Tn){return 3===Tn.nodeType}));return Gn.hasText=Kn,Gn.text=Kn?Gn.getTextFromNode(zn):"",Gn}return uS(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(Tn){if(this.hasText){ZC(mC(AElement.prototype),"renderChildren",this).call(this,Tn);var Un=this.document,Dn=this.x,Qn=this.y,Hn=Un.screen.mouse,Gn=new lB(Un,"fontSize",LB.parse(Un.ctx.font).fontSize);Hn.isWorking()&&Hn.checkBoundingBox(this,new TB(Dn,Qn-Gn.getPixels("y"),Dn+this.measureText(Tn),Qn))}else if(this.children.length>0){var Vn=new $B(this.document,null);Vn.children=this.children,Vn.parent=this,Vn.render(Tn)}}},{key:"onClick",value:function onClick(){var Tn=this.document.window;Tn&&Tn.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}]),AElement}();function _createForOfIteratorHelper$1$1(Tn,Un){var Dn;if(void 0===Ek||null==Bk(Tn)){if(kk(Tn)||(Dn=function _unsupportedIterableToArray$1$1(Tn,Un){var Dn;if(!Tn)return;if("string"==typeof Tn)return _arrayLikeToArray$1$1(Tn,Un);var Qn=Pk(Dn=Object.prototype.toString.call(Tn)).call(Dn,8,-1);"Object"===Qn&&Tn.constructor&&(Qn=Tn.constructor.name);if("Map"===Qn||"Set"===Qn)return UC(Tn);if("Arguments"===Qn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qn))return _arrayLikeToArray$1$1(Tn,Un)}(Tn))||Un&&Tn&&"number"==typeof Tn.length){Dn&&(Tn=Dn);var Qn=0,Hn=function F(){};return{s:Hn,n:function n(){return Qn>=Tn.length?{done:!0}:{done:!1,value:Tn[Qn++]}},e:function e(Tn){throw Tn},f:Hn}}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 Gn,Vn=!0,zn=!1;return{s:function s(){Dn=F_(Tn)},n:function n(){var Tn=Dn.next();return Vn=Tn.done,Tn},e:function e(Tn){zn=!0,Gn=Tn},f:function f(){try{Vn||null==Dn.return||Dn.return()}finally{if(zn)throw Gn}}}}function _arrayLikeToArray$1$1(Tn,Un){(null==Un||Un>Tn.length)&&(Un=Tn.length);for(var Dn=0,Qn=new Array(Un);Dn<Un;Dn++)Qn[Dn]=Tn[Dn];return Qn}function ownKeys$3(Tn,Un){var Dn=Lw(Tn);if(Ew){var Qn=Ew(Tn);Un&&(Qn=Bw(Qn).call(Qn,(function(Un){return bw(Tn,Un).enumerable}))),Dn.push.apply(Dn,Qn)}return Dn}function _objectSpread(Tn){for(var Un=1;Un<arguments.length;Un++){var Dn,Qn=null!=arguments[Un]?arguments[Un]:{};if(Un%2)mw(Dn=ownKeys$3(Object(Qn),!0)).call(Dn,(function(Un){lS(Tn,Un,Qn[Un])}));else if(lw)aw(Tn,lw(Qn));else{var Hn;mw(Hn=ownKeys$3(Object(Qn))).call(Hn,(function(Un){ow(Tn,Un,bw(Qn,Un))}))}}return Tn}function _createSuper$y(Tn){var Un=function _isNativeReflectConstruct$y(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var lE=function(Tn){uC(TextPathElement,IB);var Un=_createSuper$y(TextPathElement);function TextPathElement(Tn,Dn,Qn){var Hn;cS(this,TextPathElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="textPath",Hn.textWidth=0,Hn.textHeight=0,Hn.pathLength=-1,Hn.glyphInfo=null,Hn.letterSpacingCache=[],Hn.measuresCache=new zk([["",0]]);var Gn=Hn.getHrefAttribute().getDefinition();return Hn.text=Hn.getTextFromNode(),Hn.dataArray=Hn.parsePathData(Gn),Hn}return uS(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(Tn){var Un=this.dataArray;Tn&&Tn.beginPath(),mw(Un).call(Un,(function(Un){var Dn=Un.type,Qn=Un.points;switch(Dn){case UB.LINE_TO:Tn&&Tn.lineTo(Qn[0],Qn[1]);break;case UB.MOVE_TO:Tn&&Tn.moveTo(Qn[0],Qn[1]);break;case UB.CURVE_TO:Tn&&Tn.bezierCurveTo(Qn[0],Qn[1],Qn[2],Qn[3],Qn[4],Qn[5]);break;case UB.QUAD_TO:Tn&&Tn.quadraticCurveTo(Qn[0],Qn[1],Qn[2],Qn[3]);break;case UB.ARC:var Hn=rw(Qn,8),Gn=Hn[0],Vn=Hn[1],zn=Hn[2],Kn=Hn[3],$n=Hn[4],Wn=Hn[5],Xn=Hn[6],Yn=Hn[7],Jn=zn>Kn?zn:Kn,Zn=zn>Kn?1:zn/Kn,er=zn>Kn?Kn/zn:1;Tn&&(Tn.translate(Gn,Vn),Tn.rotate(Xn),Tn.scale(Zn,er),Tn.arc(0,0,Jn,$n,$n+Wn,Boolean(1-Yn)),Tn.scale(1/Zn,1/er),Tn.rotate(-Xn),Tn.translate(-Gn,-Vn));break;case UB.CLOSE_PATH:Tn&&Tn.closePath()}}))}},{key:"renderChildren",value:function renderChildren(Tn){this.setTextData(Tn),Tn.save();var Un=this.parent.getStyle("text-decoration").getString(),Dn=this.getFontSize(),Qn=this.glyphInfo,Hn=Tn.fillStyle;"underline"===Un&&Tn.beginPath(),mw(Qn).call(Qn,(function(Qn,Hn){var Gn=Qn.p0,Vn=Qn.p1,zn=Qn.rotation,Kn=Qn.text;Tn.save(),Tn.translate(Gn.x,Gn.y),Tn.rotate(zn),Tn.fillStyle&&Tn.fillText(Kn,0,0),Tn.strokeStyle&&Tn.strokeText(Kn,0,0),Tn.restore(),"underline"===Un&&(0===Hn&&Tn.moveTo(Gn.x,Gn.y+Dn/8),Tn.lineTo(Vn.x,Vn.y+Dn/5))})),"underline"===Un&&(Tn.lineWidth=Dn/20,Tn.strokeStyle=Hn,Tn.stroke(),Tn.closePath()),Tn.restore()}},{key:"getLetterSpacingAt",value:function getLetterSpacingAt(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[Tn]||0}},{key:"findSegmentToFitChar",value:function findSegmentToFitChar(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn){var $n=Gn,Wn=this.measureText(Tn,zn);" "===zn&&"justify"===Un&&Dn<Qn&&(Wn+=(Qn-Dn)/Hn),Kn>-1&&($n+=this.getLetterSpacingAt(Kn));var Xn=this.textHeight/20,Yn=this.getEquidistantPointOnPath($n,Xn,0),Jn=this.getEquidistantPointOnPath($n+Wn,Xn,0),Zn={p0:Yn,p1:Jn},er=Yn&&Jn?Math.atan2(Jn.y-Yn.y,Jn.x-Yn.x):0;if(Vn){var tr=Math.cos(Math.PI/2+er)*Vn,nr=Math.cos(-er)*Vn;Zn.p0=_objectSpread(_objectSpread({},Yn),{},{x:Yn.x+tr,y:Yn.y+nr}),Zn.p1=_objectSpread(_objectSpread({},Jn),{},{x:Jn.x+tr,y:Jn.y+nr})}return{offset:$n+=Wn,segment:Zn,rotation:er}}},{key:"measureText",value:function measureText(Tn,Un){var Dn=this.measuresCache,Qn=Un||this.getText();if(Dn.has(Qn))return Dn.get(Qn);var Hn=this.measureTargetText(Tn,Qn);return Dn.set(Qn,Hn),Hn}},{key:"setTextData",value:function setTextData(Tn){var Un,Dn=this;if(!this.glyphInfo){var Qn=this.getText(),Hn=Qn.split(""),Gn=Qn.split(" ").length-1,Vn=ty(Un=this.parent.getAttribute("dx").split()).call(Un,(function(Tn){return Tn.getPixels("x")})),zn=this.parent.getAttribute("dy").getPixels("y"),Kn=this.parent.getStyle("text-anchor").getString("start"),$n=this.getStyle("letter-spacing"),Wn=this.parent.getStyle("letter-spacing"),Xn=0;$n.hasValue()&&"inherit"!==$n.getValue()?$n.hasValue()&&"initial"!==$n.getValue()&&"unset"!==$n.getValue()&&(Xn=$n.getPixels()):Xn=Wn.getPixels();var Yn=[],Jn=Qn.length;this.letterSpacingCache=Yn;for(var Zn=0;Zn<Jn;Zn++)Yn.push(void 0!==Vn[Zn]?Vn[Zn]:Xn);var er=_S(Yn).call(Yn,(function(Tn,Un,Dn){return 0===Dn?0:Tn+Un||0}),0),tr=this.measureText(Tn),nr=Math.max(tr+er,0);this.textWidth=tr,this.textHeight=this.getFontSize(),this.glyphInfo=[];var rr=this.getPathLength(),ir=this.getStyle("startOffset").getNumber(0)*rr,or=0;"middle"!==Kn&&"center"!==Kn||(or=-nr/2),"end"!==Kn&&"right"!==Kn||(or=-nr),or+=ir,mw(Hn).call(Hn,(function(Un,Qn){var Vn=Dn.findSegmentToFitChar(Tn,Kn,nr,rr,Gn,or,zn,Un,Qn),$n=Vn.offset,Wn=Vn.segment,Xn=Vn.rotation;or=$n,Wn.p0&&Wn.p1&&Dn.glyphInfo.push({text:Hn[Qn],p0:Wn.p0,p1:Wn.p1,rotation:Xn})}))}}},{key:"parsePathData",value:function parsePathData(Tn){if(this.pathLength=-1,!Tn)return[];var Un=[],Dn=Tn.pathParser;for(Dn.reset();!Dn.isEnd();){var Qn=Dn.current,Hn=Qn?Qn.x:0,Gn=Qn?Qn.y:0,Vn=Dn.next(),zn=Vn.type,Kn=[];switch(Vn.type){case UB.MOVE_TO:this.pathM(Dn,Kn);break;case UB.LINE_TO:zn=this.pathL(Dn,Kn);break;case UB.HORIZ_LINE_TO:zn=this.pathH(Dn,Kn);break;case UB.VERT_LINE_TO:zn=this.pathV(Dn,Kn);break;case UB.CURVE_TO:this.pathC(Dn,Kn);break;case UB.SMOOTH_CURVE_TO:zn=this.pathS(Dn,Kn);break;case UB.QUAD_TO:this.pathQ(Dn,Kn);break;case UB.SMOOTH_QUAD_TO:zn=this.pathT(Dn,Kn);break;case UB.ARC:Kn=this.pathA(Dn);break;case UB.CLOSE_PATH:MB.pathZ(Dn)}Vn.type!==UB.CLOSE_PATH?Un.push({type:zn,points:Kn,start:{x:Hn,y:Gn},pathLength:this.calcLength(Hn,Gn,zn,Kn)}):Un.push({type:UB.CLOSE_PATH,points:[],pathLength:0})}return Un}},{key:"pathM",value:function pathM(Tn,Un){var Dn=MB.pathM(Tn).point,Qn=Dn.x,Hn=Dn.y;Un.push(Qn,Hn)}},{key:"pathL",value:function pathL(Tn,Un){var Dn=MB.pathL(Tn).point,Qn=Dn.x,Hn=Dn.y;return Un.push(Qn,Hn),UB.LINE_TO}},{key:"pathH",value:function pathH(Tn,Un){var Dn=MB.pathH(Tn).point,Qn=Dn.x,Hn=Dn.y;return Un.push(Qn,Hn),UB.LINE_TO}},{key:"pathV",value:function pathV(Tn,Un){var Dn=MB.pathV(Tn).point,Qn=Dn.x,Hn=Dn.y;return Un.push(Qn,Hn),UB.LINE_TO}},{key:"pathC",value:function pathC(Tn,Un){var Dn=MB.pathC(Tn),Qn=Dn.point,Hn=Dn.controlPoint,Gn=Dn.currentPoint;Un.push(Qn.x,Qn.y,Hn.x,Hn.y,Gn.x,Gn.y)}},{key:"pathS",value:function pathS(Tn,Un){var Dn=MB.pathS(Tn),Qn=Dn.point,Hn=Dn.controlPoint,Gn=Dn.currentPoint;return Un.push(Qn.x,Qn.y,Hn.x,Hn.y,Gn.x,Gn.y),UB.CURVE_TO}},{key:"pathQ",value:function pathQ(Tn,Un){var Dn=MB.pathQ(Tn),Qn=Dn.controlPoint,Hn=Dn.currentPoint;Un.push(Qn.x,Qn.y,Hn.x,Hn.y)}},{key:"pathT",value:function pathT(Tn,Un){var Dn=MB.pathT(Tn),Qn=Dn.controlPoint,Hn=Dn.currentPoint;return Un.push(Qn.x,Qn.y,Hn.x,Hn.y),UB.QUAD_TO}},{key:"pathA",value:function pathA(Tn){var Un=MB.pathA(Tn),Dn=Un.rX,Qn=Un.rY,Hn=Un.sweepFlag,Gn=Un.xAxisRotation,Vn=Un.centp,zn=Un.a1,Kn=Un.ad;return 0===Hn&&Kn>0&&(Kn-=2*Math.PI),1===Hn&&Kn<0&&(Kn+=2*Math.PI),[Vn.x,Vn.y,Dn,Qn,zn,Kn,Gn,Hn]}},{key:"calcLength",value:function calcLength(Tn,Un,Dn,Qn){var Hn=0,Gn=null,Vn=null,zn=0;switch(Dn){case UB.LINE_TO:return this.getLineLength(Tn,Un,Qn[0],Qn[1]);case UB.CURVE_TO:for(Hn=0,Gn=this.getPointOnCubicBezier(0,Tn,Un,Qn[0],Qn[1],Qn[2],Qn[3],Qn[4],Qn[5]),zn=.01;zn<=1;zn+=.01)Vn=this.getPointOnCubicBezier(zn,Tn,Un,Qn[0],Qn[1],Qn[2],Qn[3],Qn[4],Qn[5]),Hn+=this.getLineLength(Gn.x,Gn.y,Vn.x,Vn.y),Gn=Vn;return Hn;case UB.QUAD_TO:for(Hn=0,Gn=this.getPointOnQuadraticBezier(0,Tn,Un,Qn[0],Qn[1],Qn[2],Qn[3]),zn=.01;zn<=1;zn+=.01)Vn=this.getPointOnQuadraticBezier(zn,Tn,Un,Qn[0],Qn[1],Qn[2],Qn[3]),Hn+=this.getLineLength(Gn.x,Gn.y,Vn.x,Vn.y),Gn=Vn;return Hn;case UB.ARC:Hn=0;var Kn=Qn[4],$n=Qn[5],Wn=Qn[4]+$n,Xn=Math.PI/180;if(Math.abs(Kn-Wn)<Xn&&(Xn=Math.abs(Kn-Wn)),Gn=this.getPointOnEllipticalArc(Qn[0],Qn[1],Qn[2],Qn[3],Kn,0),$n<0)for(zn=Kn-Xn;zn>Wn;zn-=Xn)Vn=this.getPointOnEllipticalArc(Qn[0],Qn[1],Qn[2],Qn[3],zn,0),Hn+=this.getLineLength(Gn.x,Gn.y,Vn.x,Vn.y),Gn=Vn;else for(zn=Kn+Xn;zn<Wn;zn+=Xn)Vn=this.getPointOnEllipticalArc(Qn[0],Qn[1],Qn[2],Qn[3],zn,0),Hn+=this.getLineLength(Gn.x,Gn.y,Vn.x,Vn.y),Gn=Vn;return Vn=this.getPointOnEllipticalArc(Qn[0],Qn[1],Qn[2],Qn[3],Wn,0),Hn+=this.getLineLength(Gn.x,Gn.y,Vn.x,Vn.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(Tn,Un,Dn,Qn,Hn){var Gn=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Un,Vn=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Dn,zn=(Hn-Dn)/(Qn-Un+1e-8),Kn=Math.sqrt(Tn*Tn/(1+zn*zn));Qn<Un&&(Kn*=-1);var $n=zn*Kn,Wn=null;if(Qn===Un)Wn={x:Gn,y:Vn+$n};else if((Vn-Dn)/(Gn-Un+1e-8)===zn)Wn={x:Gn+Kn,y:Vn+$n};else{var Xn=0,Yn=0,Jn=this.getLineLength(Un,Dn,Qn,Hn);if(Jn<1e-8)return null;var Zn=(Gn-Un)*(Qn-Un)+(Vn-Dn)*(Hn-Dn);Xn=Un+(Zn/=Jn*Jn)*(Qn-Un),Yn=Dn+Zn*(Hn-Dn);var er=this.getLineLength(Gn,Vn,Xn,Yn),tr=Math.sqrt(Tn*Tn-er*er);Kn=Math.sqrt(tr*tr/(1+zn*zn)),Qn<Un&&(Kn*=-1),Wn={x:Xn+Kn,y:Yn+($n=zn*Kn)}}return Wn}},{key:"getPointOnPath",value:function getPointOnPath(Tn){var Un=this.getPathLength(),Dn=0,Qn=null;if(Tn<-5e-5||Tn-5e-5>Un)return null;var Hn,Gn=_createForOfIteratorHelper$1$1(this.dataArray);try{for(Gn.s();!(Hn=Gn.n()).done;){var Vn=Hn.value;if(!Vn||!(Vn.pathLength<5e-5||Dn+Vn.pathLength+5e-5<Tn)){var zn=Tn-Dn,Kn=0;switch(Vn.type){case UB.LINE_TO:Qn=this.getPointOnLine(zn,Vn.start.x,Vn.start.y,Vn.points[0],Vn.points[1],Vn.start.x,Vn.start.y);break;case UB.ARC:var $n=Vn.points[4],Wn=Vn.points[5],Xn=Vn.points[4]+Wn;if(Kn=$n+zn/Vn.pathLength*Wn,Wn<0&&Kn<Xn||Wn>=0&&Kn>Xn)break;Qn=this.getPointOnEllipticalArc(Vn.points[0],Vn.points[1],Vn.points[2],Vn.points[3],Kn,Vn.points[6]);break;case UB.CURVE_TO:(Kn=zn/Vn.pathLength)>1&&(Kn=1),Qn=this.getPointOnCubicBezier(Kn,Vn.start.x,Vn.start.y,Vn.points[0],Vn.points[1],Vn.points[2],Vn.points[3],Vn.points[4],Vn.points[5]);break;case UB.QUAD_TO:(Kn=zn/Vn.pathLength)>1&&(Kn=1),Qn=this.getPointOnQuadraticBezier(Kn,Vn.start.x,Vn.start.y,Vn.points[0],Vn.points[1],Vn.points[2],Vn.points[3])}if(Qn)return Qn;break}Dn+=Vn.pathLength}}catch(Tn){Gn.e(Tn)}finally{Gn.f()}return null}},{key:"getLineLength",value:function getLineLength(Tn,Un,Dn,Qn){return Math.sqrt((Dn-Tn)*(Dn-Tn)+(Qn-Un)*(Qn-Un))}},{key:"getPathLength",value:function getPathLength(){var Tn;-1===this.pathLength&&(this.pathLength=_S(Tn=this.dataArray).call(Tn,(function(Tn,Un){return Un.pathLength>0?Tn+Un.pathLength:Tn}),0));return this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn){return{x:zn*CB1(Tn)+Gn*CB2(Tn)+Qn*CB3(Tn)+Un*CB4(Tn),y:Kn*CB1(Tn)+Vn*CB2(Tn)+Hn*CB3(Tn)+Dn*CB4(Tn)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(Tn,Un,Dn,Qn,Hn,Gn,Vn){return{x:Gn*QB1(Tn)+Qn*QB2(Tn)+Un*QB3(Tn),y:Vn*QB1(Tn)+Hn*QB2(Tn)+Dn*QB3(Tn)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(Tn,Un,Dn,Qn,Hn,Gn){var Vn=Math.cos(Gn),zn=Math.sin(Gn),Kn=Dn*Math.cos(Hn),$n=Qn*Math.sin(Hn);return{x:Tn+(Kn*Vn-$n*zn),y:Un+(Kn*zn+$n*Vn)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(Tn,Un){var Dn=this.getPathLength(),Qn=Un||.25,Hn=Tn||Dn/100;if(!this.equidistantCache||this.equidistantCache.step!==Hn||this.equidistantCache.precision!==Qn){this.equidistantCache={step:Hn,precision:Qn,points:[]};for(var Gn=0,Vn=0;Vn<=Dn;Vn+=Qn){var zn=this.getPointOnPath(Vn),Kn=this.getPointOnPath(Vn+Qn);zn&&Kn&&((Gn+=this.getLineLength(zn.x,zn.y,Kn.x,Kn.y))>=Hn&&(this.equidistantCache.points.push({x:zn.x,y:zn.y,distance:Vn}),Gn-=Hn))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(Tn,Un,Dn){if(this.buildEquidistantCache(Un,Dn),Tn<0||Tn-this.getPathLength()>5e-5)return null;var Qn=Math.round(Tn/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[Qn]||null}}]),TextPathElement}();function _createSuper$z(Tn){var Un=function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var cE=function(Tn){uC(ImageElement,NB);var Un,Dn,Qn=_createSuper$z(ImageElement);function ImageElement(Tn,Un,Dn){var Hn;cS(this,ImageElement),(Hn=Qn.call(this,Tn,Un,Dn)).type="image",Hn.loaded=!1;var Gn=Hn.getHrefAttribute().getString();if(!Gn)return gC(Hn);var Vn=/\.svg$/.test(Gn);return Tn.images.push(pC(Hn)),Vn?Hn.loadSvg(Gn):Hn.loadImage(Gn),Hn.isSvg=Vn,Hn}return uS(ImageElement,[{key:"loadImage",value:(Dn=aS(Tw.mark((function _callee(Tn){var Un;return Tw.wrap((function _callee$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.prev=0,Dn.next=3,this.document.createImage(Tn);case 3:Un=Dn.sent,this.image=Un,Dn.next=10;break;case 7:Dn.prev=7,Dn.t0=Dn.catch(0),console.error('Error while loading image "'.concat(Tn,'":'),Dn.t0);case 10:this.loaded=!0;case 11:case"end":return Dn.stop()}}),_callee,this,[[0,7]])}))),function loadImage(Tn){return Dn.apply(this,arguments)})},{key:"loadSvg",value:(Un=aS(Tw.mark((function _callee2(Tn){var Un,Dn;return Tw.wrap((function _callee2$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Qn.prev=0,Qn.next=3,this.document.fetch(Tn);case 3:return Un=Qn.sent,Qn.next=6,Un.text();case 6:Dn=Qn.sent,this.image=Dn,Qn.next=13;break;case 10:Qn.prev=10,Qn.t0=Qn.catch(0),console.error('Error while loading image "'.concat(Tn,'":'),Qn.t0);case 13:this.loaded=!0;case 14:case"end":return Qn.stop()}}),_callee2,this,[[0,10]])}))),function loadSvg(Tn){return Un.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(Tn){var Un=this.document,Dn=this.image,Qn=this.loaded,Hn=this.getAttribute("x").getPixels("x"),Gn=this.getAttribute("y").getPixels("y"),Vn=this.getStyle("width").getPixels("x"),zn=this.getStyle("height").getPixels("y");if(Qn&&Dn&&Vn&&zn){if(Tn.save(),this.isSvg)Un.canvg.forkString(Tn,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:Hn,offsetY:Gn,scaleWidth:Vn,scaleHeight:zn}).render();else{var Kn=this.image;Tn.translate(Hn,Gn),Un.setViewBox({ctx:Tn,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:Vn,desiredWidth:Kn.width,height:zn,desiredHeight:Kn.height}),this.loaded&&(void 0===Kn.complete||Kn.complete)&&Tn.drawImage(Kn,0,0)}Tn.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var Tn=this.getAttribute("x").getPixels("x"),Un=this.getAttribute("y").getPixels("y"),Dn=this.getStyle("width").getPixels("x"),Qn=this.getStyle("height").getPixels("y");return new TB(Tn,Un,Tn+Dn,Un+Qn)}}]),ImageElement}();function _createSuper$A(Tn){var Un=function _isNativeReflectConstruct$A(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var uE=function(Tn){uC(SymbolElement,NB);var Un=_createSuper$A(SymbolElement);function SymbolElement(){var Tn;return cS(this,SymbolElement),(Tn=Un.apply(this,arguments)).type="symbol",Tn}return uS(SymbolElement,[{key:"render",value:function render(Tn){}}]),SymbolElement}(),dE=function(){function SVGFontLoader(Tn){cS(this,SVGFontLoader),this.document=Tn,this.loaded=!1,Tn.fonts.push(this)}var Tn;return uS(SVGFontLoader,[{key:"load",value:(Tn=aS(Tw.mark((function _callee(Tn,Un){var Dn,Qn,Hn,Gn;return Tw.wrap((function _callee$(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return Vn.prev=0,Qn=this.document,Vn.next=4,Qn.canvg.parser.load(Un);case 4:Hn=Vn.sent,Gn=Hn.getElementsByTagName("font"),mw(Dn=UC(Gn)).call(Dn,(function(Un){var Dn=Qn.createElement(Un);Qn.definitions[Tn]=Dn})),Vn.next=12;break;case 9:Vn.prev=9,Vn.t0=Vn.catch(0),console.error('Error while loading font "'.concat(Un,'":'),Vn.t0);case 12:this.loaded=!0;case 13:case"end":return Vn.stop()}}),_callee,this,[[0,9]])}))),function load(Un,Dn){return Tn.apply(this,arguments)})}]),SVGFontLoader}();function _createSuper$B(Tn){var Un=function _isNativeReflectConstruct$B(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var hE=function(Tn){uC(StyleElement,EB);var Un=_createSuper$B(StyleElement);function StyleElement(Tn,Dn,Qn){var Hn,Gn;cS(this,StyleElement),(Gn=Un.call(this,Tn,Dn,Qn)).type="style";var Vn=compressSpaces(ty(Hn=UC(Dn.childNodes)).call(Hn,(function(Tn){return Tn.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return mw(Vn).call(Vn,(function(Un){var Dn=ZS(Un).call(Un);if(Dn){var Qn=Dn.split("{"),Hn=Qn[0].split(","),Gn=Qn[1].split(";");mw(Hn).call(Hn,(function(Un){var Dn=ZS(Un).call(Un);if(Dn){var Qn=Tn.styles[Dn]||{};if(mw(Gn).call(Gn,(function(Un){var Dn,Hn,Gn=WC(Un).call(Un,":"),Vn=ZS(Dn=Un.substr(0,Gn)).call(Dn),zn=ZS(Hn=Un.substr(Gn+1,Un.length-Gn)).call(Hn);Vn&&zn&&(Qn[Vn]=new lB(Tn,Vn,zn))})),Tn.styles[Dn]=Qn,Tn.stylesSpecificity[Dn]=getSelectorSpecificity(Dn),"@font-face"===Dn){var Hn=Qn["font-family"].getString().replace(/"|'/g,""),Vn=Qn.src.getString().split(",");mw(Vn).call(Vn,(function(Un){if(WC(Un).call(Un,'format("svg")')>0){var Dn=parseExternalUrl(Un);Dn&&new dE(Tn).load(Hn,Dn)}}))}}}))}})),Gn}return StyleElement}();function _createSuper$C(Tn){var Un=function _isNativeReflectConstruct$C(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}hE.parseExternalUrl=parseExternalUrl;var pE=function(Tn){uC(UseElement,NB);var Un=_createSuper$C(UseElement);function UseElement(){var Tn;return cS(this,UseElement),(Tn=Un.apply(this,arguments)).type="use",Tn}return uS(UseElement,[{key:"setContext",value:function setContext(Tn){ZC(mC(UseElement.prototype),"setContext",this).call(this,Tn);var Un=this.getAttribute("x"),Dn=this.getAttribute("y");Un.hasValue()&&Tn.translate(Un.getPixels("x"),0),Dn.hasValue()&&Tn.translate(0,Dn.getPixels("y"))}},{key:"path",value:function path(Tn){var Un=this.element;Un&&Un.path(Tn)}},{key:"renderChildren",value:function renderChildren(Tn){var Un=this.document,Dn=this.element;if(Dn){var Qn=Dn;if("symbol"===Dn.type&&((Qn=new RB(Un,null)).attributes.viewBox=new lB(Un,"viewBox",Dn.getAttribute("viewBox").getString()),Qn.attributes.preserveAspectRatio=new lB(Un,"preserveAspectRatio",Dn.getAttribute("preserveAspectRatio").getString()),Qn.attributes.overflow=new lB(Un,"overflow",Dn.getAttribute("overflow").getString()),Qn.children=Dn.children,Dn.styles.opacity=new lB(Un,"opacity",this.calculateOpacity())),"svg"===Qn.type){var Hn=this.getStyle("width",!1,!0),Gn=this.getStyle("height",!1,!0);Hn.hasValue()&&(Qn.attributes.width=new lB(Un,"width",Hn.getString())),Gn.hasValue()&&(Qn.attributes.height=new lB(Un,"height",Gn.getString()))}var Vn=Qn.parent;Qn.parent=this,Qn.render(Tn),Qn.parent=Vn}}},{key:"getBoundingBox",value:function getBoundingBox(Tn){var Un=this.element;return Un?Un.getBoundingBox(Tn):null}},{key:"elementTransform",value:function elementTransform(){var Tn=this.document,Un=this.element;return BB.fromElement(Tn,Un)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}();function _createSuper$D(Tn){var Un=function _isNativeReflectConstruct$D(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}function imGet(Tn,Un,Dn,Qn,Hn,Gn){return Tn[Dn*Qn*4+4*Un+Gn]}function imSet(Tn,Un,Dn,Qn,Hn,Gn,Vn){Tn[Dn*Qn*4+4*Un+Gn]=Vn}function m$1(Tn,Un,Dn){return Tn[Un]*Dn}function c$1(Tn,Un,Dn,Qn){return Un+Math.cos(Tn)*Dn+Math.sin(Tn)*Qn}var gE=function(Tn){uC(FeColorMatrixElement,EB);var Un=_createSuper$D(FeColorMatrixElement);function FeColorMatrixElement(Tn,Dn,Qn){var Hn;cS(this,FeColorMatrixElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="feColorMatrix";var Gn=toNumbers(Hn.getAttribute("values").getString());switch(Hn.getAttribute("type").getString("matrix")){case"saturate":var Vn=Gn[0];Gn=[.213+.787*Vn,.715-.715*Vn,.072-.072*Vn,0,0,.213-.213*Vn,.715+.285*Vn,.072-.072*Vn,0,0,.213-.213*Vn,.715-.715*Vn,.072+.928*Vn,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var zn=Gn[0]*Math.PI/180;Gn=[c$1(zn,.213,.787,-.213),c$1(zn,.715,-.715,-.715),c$1(zn,.072,-.072,.928),0,0,c$1(zn,.213,-.213,.143),c$1(zn,.715,.285,.14),c$1(zn,.072,-.072,-.283),0,0,c$1(zn,.213,-.213,-.787),c$1(zn,.715,-.715,.715),c$1(zn,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":Gn=[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 Hn.matrix=Gn,Hn.includeOpacity=Hn.getAttribute("includeOpacity").hasValue(),Hn}return uS(FeColorMatrixElement,[{key:"apply",value:function apply(Tn,Un,Dn,Qn,Hn){for(var Gn=this.includeOpacity,Vn=this.matrix,zn=Tn.getImageData(0,0,Qn,Hn),Kn=0;Kn<Hn;Kn++)for(var $n=0;$n<Qn;$n++){var Wn=imGet(zn.data,$n,Kn,Qn,0,0),Xn=imGet(zn.data,$n,Kn,Qn,0,1),Yn=imGet(zn.data,$n,Kn,Qn,0,2),Jn=imGet(zn.data,$n,Kn,Qn,0,3),Zn=m$1(Vn,0,Wn)+m$1(Vn,1,Xn)+m$1(Vn,2,Yn)+m$1(Vn,3,Jn)+m$1(Vn,4,1),er=m$1(Vn,5,Wn)+m$1(Vn,6,Xn)+m$1(Vn,7,Yn)+m$1(Vn,8,Jn)+m$1(Vn,9,1),tr=m$1(Vn,10,Wn)+m$1(Vn,11,Xn)+m$1(Vn,12,Yn)+m$1(Vn,13,Jn)+m$1(Vn,14,1),nr=m$1(Vn,15,Wn)+m$1(Vn,16,Xn)+m$1(Vn,17,Yn)+m$1(Vn,18,Jn)+m$1(Vn,19,1);Gn&&(Zn=er=tr=0,nr*=Jn/255),imSet(zn.data,$n,Kn,Qn,0,0,Zn),imSet(zn.data,$n,Kn,Qn,0,1,er),imSet(zn.data,$n,Kn,Qn,0,2,tr),imSet(zn.data,$n,Kn,Qn,0,3,nr)}Tn.clearRect(0,0,Qn,Hn),Tn.putImageData(zn,0,0)}}]),FeColorMatrixElement}();function _createSuper$E(Tn){var Un=function _isNativeReflectConstruct$E(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var fE=function(Tn){uC(MaskElement,EB);var Un=_createSuper$E(MaskElement);function MaskElement(){var Tn;return cS(this,MaskElement),(Tn=Un.apply(this,arguments)).type="mask",Tn}return uS(MaskElement,[{key:"apply",value:function apply(Tn,Un){var Dn=this.document,Qn=this.getAttribute("x").getPixels("x"),Hn=this.getAttribute("y").getPixels("y"),Gn=this.getStyle("width").getPixels("x"),Vn=this.getStyle("height").getPixels("y");if(!Gn&&!Vn){var zn,Kn=new TB;mw(zn=this.children).call(zn,(function(Un){Kn.addBoundingBox(Un.getBoundingBox(Tn))})),Qn=Math.floor(Kn.x1),Hn=Math.floor(Kn.y1),Gn=Math.floor(Kn.width),Vn=Math.floor(Kn.height)}var $n=this.removeStyles(Un,MaskElement.ignoreStyles),Wn=Dn.createCanvas(Qn+Gn,Hn+Vn),Xn=Wn.getContext("2d");Dn.screen.setDefaults(Xn),this.renderChildren(Xn),new gE(Dn,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(Xn,0,0,Qn+Gn,Hn+Vn);var Yn=Dn.createCanvas(Qn+Gn,Hn+Vn),Jn=Yn.getContext("2d");Dn.screen.setDefaults(Jn),Un.render(Jn),Jn.globalCompositeOperation="destination-in",Jn.fillStyle=Xn.createPattern(Wn,"no-repeat"),Jn.fillRect(0,0,Qn+Gn,Hn+Vn),Tn.fillStyle=Jn.createPattern(Yn,"no-repeat"),Tn.fillRect(0,0,Qn+Gn,Hn+Vn),this.restoreStyles(Un,$n)}},{key:"render",value:function render(Tn){}}]),MaskElement}();function _createSuper$F(Tn){var Un=function _isNativeReflectConstruct$F(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}fE.ignoreStyles=["mask","transform","clip-path"];var AE=function noop(){},mE=function(Tn){uC(ClipPathElement,EB);var Un=_createSuper$F(ClipPathElement);function ClipPathElement(){var Tn;return cS(this,ClipPathElement),(Tn=Un.apply(this,arguments)).type="clipPath",Tn}return uS(ClipPathElement,[{key:"apply",value:function apply(Tn){var Un,Dn=this.document,Qn=Xk(Tn),Hn=Tn.beginPath,Gn=Tn.closePath;Qn&&(Qn.beginPath=AE,Qn.closePath=AE),Wk(Hn,Tn,[]),mw(Un=this.children).call(Un,(function(Un){if(void 0!==Un.path){var Hn=void 0!==Un.elementTransform?Un.elementTransform():null;Hn||(Hn=BB.fromElement(Dn,Un)),Hn&&Hn.apply(Tn),Un.path(Tn),Qn&&(Qn.closePath=Gn),Hn&&Hn.unapply(Tn)}})),Wk(Gn,Tn,[]),Tn.clip(),Qn&&(Qn.beginPath=Hn,Qn.closePath=Gn)}},{key:"render",value:function render(Tn){}}]),ClipPathElement}();function _createSuper$G(Tn){var Un=function _isNativeReflectConstruct$G(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var vE=function(Tn){uC(FilterElement,EB);var Un=_createSuper$G(FilterElement);function FilterElement(){var Tn;return cS(this,FilterElement),(Tn=Un.apply(this,arguments)).type="filter",Tn}return uS(FilterElement,[{key:"apply",value:function apply(Tn,Un){var Dn=this.document,Qn=this.children,Hn=Un.getBoundingBox(Tn);if(Hn){var Gn=0,Vn=0;mw(Qn).call(Qn,(function(Tn){var Un=Tn.extraFilterDistance||0;Gn=Math.max(Gn,Un),Vn=Math.max(Vn,Un)}));var zn=Math.floor(Hn.width),Kn=Math.floor(Hn.height),$n=zn+2*Gn,Wn=Kn+2*Vn;if(!($n<1||Wn<1)){var Xn=Math.floor(Hn.x),Yn=Math.floor(Hn.y),Jn=this.removeStyles(Un,FilterElement.ignoreStyles),Zn=Dn.createCanvas($n,Wn),er=Zn.getContext("2d");Dn.screen.setDefaults(er),er.translate(-Xn+Gn,-Yn+Vn),Un.render(er),mw(Qn).call(Qn,(function(Tn){"function"==typeof Tn.apply&&Tn.apply(er,0,0,$n,Wn)})),Tn.drawImage(Zn,0,0,$n,Wn,Xn-Gn,Yn-Vn,$n,Wn),this.restoreStyles(Un,Jn)}}}},{key:"render",value:function render(Tn){}}]),FilterElement}();function _createSuper$H(Tn){var Un=function _isNativeReflectConstruct$H(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}vE.ignoreStyles=["filter","transform","clip-path"];var yE=function(Tn){uC(FeDropShadowElement,EB);var Un=_createSuper$H(FeDropShadowElement);function FeDropShadowElement(Tn,Dn,Qn){var Hn;return cS(this,FeDropShadowElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="feDropShadow",Hn.addStylesFromStyleDefinition(),Hn}return uS(FeDropShadowElement,[{key:"apply",value:function apply(Tn,Un,Dn,Qn,Hn){}}]),FeDropShadowElement}();function _createSuper$I(Tn){var Un=function _isNativeReflectConstruct$I(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var _E=function(Tn){uC(FeMorphologyElement,EB);var Un=_createSuper$I(FeMorphologyElement);function FeMorphologyElement(){var Tn;return cS(this,FeMorphologyElement),(Tn=Un.apply(this,arguments)).type="feMorphology",Tn}return uS(FeMorphologyElement,[{key:"apply",value:function apply(Tn,Un,Dn,Qn,Hn){}}]),FeMorphologyElement}();function _createSuper$J(Tn){var Un=function _isNativeReflectConstruct$J(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var bE=function(Tn){uC(FeCompositeElement,EB);var Un=_createSuper$J(FeCompositeElement);function FeCompositeElement(){var Tn;return cS(this,FeCompositeElement),(Tn=Un.apply(this,arguments)).type="feComposite",Tn}return uS(FeCompositeElement,[{key:"apply",value:function apply(Tn,Un,Dn,Qn,Hn){}}]),FeCompositeElement}();function _createSuper$K(Tn){var Un=function _isNativeReflectConstruct$K(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var wE=function(Tn){uC(FeGaussianBlurElement,EB);var Un=_createSuper$K(FeGaussianBlurElement);function FeGaussianBlurElement(Tn,Dn,Qn){var Hn;return cS(this,FeGaussianBlurElement),(Hn=Un.call(this,Tn,Dn,Qn)).type="feGaussianBlur",Hn.blurRadius=Math.floor(Hn.getAttribute("stdDeviation").getNumber()),Hn.extraFilterDistance=Hn.blurRadius,Hn}return uS(FeGaussianBlurElement,[{key:"apply",value:function apply(Tn,Un,Dn,Qn,Hn){var Gn=this.document,Vn=this.blurRadius,zn=Gn.window?Gn.window.document.body:null,Kn=Tn.canvas;Kn.id=Gn.getUniqueId(),zn&&(Kn.style.display="none",zn.appendChild(Kn)),processCanvasRGBA(Kn,Un,Dn,Qn,Hn,Vn),zn&&zn.removeChild(Kn)}}]),FeGaussianBlurElement}();function _createSuper$L(Tn){var Un=function _isNativeReflectConstruct$L(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var xE=function(Tn){uC(TitleElement,EB);var Un=_createSuper$L(TitleElement);function TitleElement(){var Tn;return cS(this,TitleElement),(Tn=Un.apply(this,arguments)).type="title",Tn}return TitleElement}();function _createSuper$M(Tn){var Un=function _isNativeReflectConstruct$M(){if("undefined"==typeof Reflect||!oC)return!1;if(oC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(oC(Date,[],(function(){}))),!0}catch(Tn){return!1}}();return function _createSuperInternal(){var Dn,Qn=mC(Tn);if(Un){var Hn=mC(this).constructor;Dn=oC(Qn,arguments,Hn)}else Dn=Qn.apply(this,arguments);return gC(this,Dn)}}var SE=function(Tn){uC(DescElement,EB);var Un=_createSuper$M(DescElement);function DescElement(){var Tn;return cS(this,DescElement),(Tn=Un.apply(this,arguments)).type="desc",Tn}return DescElement}(),CE={svg:RB,rect:DB,circle:jB,ellipse:QB,line:HB,polyline:GB,polygon:VB,path:MB,pattern:zB,marker:KB,defs:qB,linearGradient:XB,radialGradient:YB,stop:JB,animate:ZB,animateColor:eE,animateTransform:tE,font:nE,"font-face":rE,"missing-glyph":iE,glyph:oE,text:IB,tspan:OB,tref:aE,a:sE,textPath:lE,image:cE,g:$B,symbol:uE,style:hE,use:pE,mask:fE,clipPath:mE,filter:vE,feDropShadow:yE,feMorphology:_E,feComposite:bE,feColorMatrix:gE,feGaussianBlur:wE,title:xE,desc:SE};function ownKeys$1$1(Tn,Un){var Dn=Lw(Tn);if(Ew){var Qn=Ew(Tn);Un&&(Qn=Bw(Qn).call(Qn,(function(Un){return bw(Tn,Un).enumerable}))),Dn.push.apply(Dn,Qn)}return Dn}function _createImage(){return(_createImage=aS(Tw.mark((function _callee(Tn){var Un,Dn,Qn=arguments;return Tw.wrap((function _callee$(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Un=Qn.length>1&&void 0!==Qn[1]&&Qn[1],Dn=document.createElement("img"),Un&&(Dn.crossOrigin="Anonymous"),Hn.abrupt("return",new TS((function(Un,Qn){Dn.onload=function(){Un(Dn)},Dn.onerror=function(){Qn()},Dn.src=Tn})));case 4:case"end":return Hn.stop()}}),_callee)})))).apply(this,arguments)}var kE=function(){function Document(Tn){var Un,Dn,Qn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Hn=Qn.rootEmSize,Gn=void 0===Hn?12:Hn,Vn=Qn.emSize,zn=void 0===Vn?12:Vn,Kn=Qn.createCanvas,$n=void 0===Kn?Document.createCanvas:Kn,Wn=Qn.createImage,Xn=void 0===Wn?Document.createImage:Wn,Yn=Qn.anonymousCrossOrigin;cS(this,Document),this.canvg=Tn,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=Tn.screen,this.rootEmSize=Gn,this.emSize=zn,this.createCanvas=$n,this.createImage=this.bindCreateImage(Xn,Yn),this.screen.wait(RS(Un=this.isImagesLoaded).call(Un,this)),this.screen.wait(RS(Dn=this.isFontsLoaded).call(Dn,this))}return uS(Document,[{key:"bindCreateImage",value:function bindCreateImage(Tn,Un){return"boolean"==typeof Un?function(Dn,Qn){return Tn(Dn,"boolean"==typeof Qn?Qn:Un)}:Tn}},{key:"popEmSize",value:function popEmSize(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function getUniqueId(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function isImagesLoaded(){var Tn;return LS(Tn=this.images).call(Tn,(function(Tn){return Tn.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){var Tn;return LS(Tn=this.fonts).call(Tn,(function(Tn){return Tn.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(Tn){var Un=this.createElement(Tn.documentElement);return Un.root=!0,Un.addStylesFromStyleDefinition(),this.documentElement=Un,Un}},{key:"createElement",value:function createElement(Tn){var Un=Tn.nodeName.replace(/^[^:]+:/,""),Dn=Document.elementTypes[Un];return void 0!==Dn?new Dn(this,Tn):new PB(this,Tn)}},{key:"createTextNode",value:function createTextNode(Tn){return new FB(this,Tn)}},{key:"setViewBox",value:function setViewBox(Tn){this.screen.setViewBox(function _objectSpread$1(Tn){for(var Un=1;Un<arguments.length;Un++){var Dn,Qn=null!=arguments[Un]?arguments[Un]:{};if(Un%2)mw(Dn=ownKeys$1$1(Object(Qn),!0)).call(Dn,(function(Un){lS(Tn,Un,Qn[Un])}));else if(lw)aw(Tn,lw(Qn));else{var Hn;mw(Hn=ownKeys$1$1(Object(Qn))).call(Hn,(function(Un){ow(Tn,Un,bw(Qn,Un))}))}}return Tn}({document:this},Tn))}},{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 Tn=this.emSizeStack;return Tn[Tn.length-1]},set:function set(Tn){this.emSizeStack.push(Tn)}}]),Document}();function ownKeys$2$1(Tn,Un){var Dn=Lw(Tn);if(Ew){var Qn=Ew(Tn);Un&&(Qn=Bw(Qn).call(Qn,(function(Un){return bw(Tn,Un).enumerable}))),Dn.push.apply(Dn,Qn)}return Dn}function _objectSpread$2(Tn){for(var Un=1;Un<arguments.length;Un++){var Dn,Qn=null!=arguments[Un]?arguments[Un]:{};if(Un%2)mw(Dn=ownKeys$2$1(Object(Qn),!0)).call(Dn,(function(Un){lS(Tn,Un,Qn[Un])}));else if(lw)aw(Tn,lw(Qn));else{var Hn;mw(Hn=ownKeys$2$1(Object(Qn))).call(Hn,(function(Un){ow(Tn,Un,bw(Qn,Un))}))}}return Tn}kE.createCanvas=function createCanvas(Tn,Un){var Dn=document.createElement("canvas");return Dn.width=Tn,Dn.height=Un,Dn},kE.createImage=function createImage(Tn){return _createImage.apply(this,arguments)},kE.elementTypes=CE;var BE=function(){function Canvg(Tn,Un){var Dn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};cS(this,Canvg),this.parser=new mB(Dn),this.screen=new gB(Tn,Dn),this.options=Dn;var Qn=new kE(this,Dn),Hn=Qn.createDocumentElement(Un);this.document=Qn,this.documentElement=Hn}var Tn,Un;return uS(Canvg,[{key:"fork",value:function fork(Tn,Un){var Dn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(Tn,Un,_objectSpread$2(_objectSpread$2({},this.options),Dn))}},{key:"forkString",value:function forkString(Tn,Un){var Dn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(Tn,Un,_objectSpread$2(_objectSpread$2({},this.options),Dn))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(Un=aS(Tw.mark((function _callee(){var Tn,Un=arguments;return Tw.wrap((function _callee$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Tn=Un.length>0&&void 0!==Un[0]?Un[0]:{},this.start(_objectSpread$2({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},Tn)),Dn.next=4,this.ready();case 4:this.stop();case 5:case"end":return Dn.stop()}}),_callee,this)}))),function render(){return Un.apply(this,arguments)})},{key:"start",value:function start(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Un=this.documentElement,Dn=this.screen,Qn=this.options;Dn.start(Un,_objectSpread$2(_objectSpread$2({enableRedraw:!0},Qn),Tn))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn,Dn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(Tn,Un,Dn)}}],[{key:"from",value:(Tn=aS(Tw.mark((function _callee2(Tn,Un){var Dn,Qn,Hn,Gn=arguments;return Tw.wrap((function _callee2$(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return Dn=Gn.length>2&&void 0!==Gn[2]?Gn[2]:{},Qn=new mB(Dn),Vn.next=4,Qn.parse(Un);case 4:return Hn=Vn.sent,Vn.abrupt("return",new Canvg(Tn,Hn,Dn));case 6:case"end":return Vn.stop()}}),_callee2)}))),function from(Un,Dn){return Tn.apply(this,arguments)})},{key:"fromString",value:function fromString(Tn,Un){var Dn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Qn=new mB(Dn),Hn=Qn.parseFromString(Un);return new Canvg(Tn,Hn,Dn)}}]),Canvg}();var EE=Object.freeze({__proto__:null,offscreen:function offscreen(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Un=Tn.DOMParser,Dn={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:Un,createCanvas:function createCanvas(Tn,Un){return new OffscreenCanvas(Tn,Un)},createImage:function createImage(Tn){return aS(Tw.mark((function _callee(){var Un,Dn,Qn;return Tw.wrap((function _callee$(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,fetch(Tn);case 2:return Un=Hn.sent,Hn.next=5,Un.blob();case 5:return Dn=Hn.sent,Hn.next=8,createImageBitmap(Dn);case 8:return Qn=Hn.sent,Hn.abrupt("return",Qn);case 10:case"end":return Hn.stop()}}),_callee)})))()}};return"undefined"==typeof DOMParser&&void 0!==Un||fk(Dn,"DOMParser"),Dn},node:function node$2(Tn){var Un=Tn.DOMParser,Dn=Tn.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:Un,fetch:Tn.fetch,createCanvas:Dn.createCanvas,createImage:Dn.loadImage}}}),PE=Object.freeze({__proto__:null,default:BE,AElement:sE,AnimateColorElement:eE,AnimateElement:ZB,AnimateTransformElement:tE,BoundingBox:TB,CB1:CB1,CB2:CB2,CB3:CB3,CB4:CB4,Canvg:BE,CircleElement:jB,ClipPathElement:mE,DefsElement:qB,DescElement:SE,Document:kE,Element:EB,EllipseElement:QB,FeColorMatrixElement:gE,FeCompositeElement:bE,FeDropShadowElement:yE,FeGaussianBlurElement:wE,FeMorphologyElement:_E,FilterElement:vE,Font:LB,FontElement:nE,FontFaceElement:rE,GElement:$B,GlyphElement:oE,GradientElement:WB,ImageElement:cE,LineElement:HB,LinearGradientElement:XB,MarkerElement:KB,MaskElement:fE,Matrix:xB,MissingGlyphElement:iE,Mouse:dB,PSEUDO_ZERO:1e-8,Parser:mB,PathElement:MB,PathParser:UB,PatternElement:zB,Point:uB,PolygonElement:VB,PolylineElement:GB,Property:lB,QB1:QB1,QB2:QB2,QB3:QB3,RadialGradientElement:YB,RectElement:DB,RenderedElement:NB,Rotate:yB,SVGElement:RB,SVGFontLoader:dE,Scale:wB,Screen:gB,Skew:SB,SkewX:CB,SkewY:kB,StopElement:JB,StyleElement:hE,SymbolElement:uE,TRefElement:aE,TSpanElement:OB,TextElement:IB,TextPathElement:lE,TitleElement:xE,Transform:BB,Translate:vB,UnknownElement:PB,UseElement:pE,ViewPort:cB,compressSpaces:compressSpaces,getSelectorSpecificity:getSelectorSpecificity,normalizeAttributeName:normalizeAttributeName,normalizeColor:normalizeColor,parseExternalUrl:parseExternalUrl,presets:EE,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(Tn){var Un=Tn.fn.attr;return Tn.fn.attr=function(Tn,Dn){var Qn=this.length;if(!Qn)return Un.call(this,Tn,Dn);for(var Hn=0;Hn<Qn;++Hn){var Gn=this[Hn];if("http://www.w3.org/2000/svg"!==Gn.namespaceURI)return Un.call(this,Tn,Dn);if(void 0!==Dn)Gn.setAttribute(Tn,Dn);else if(Array.isArray(Tn)){for(var Vn={},zn=Tn.length;zn--;){var Kn=Tn[zn],$n=Gn.getAttribute(Kn);($n||"0"===$n)&&($n=isNaN($n)?$n:$n-0),Vn[Kn]=$n}return Vn}if("object"!==_typeof(Tn)){var Wn=Gn.getAttribute(Tn);return(Wn||"0"===Wn)&&(Wn=isNaN(Wn)?Wn:Wn-0),Wn}for(var Xn=0,Yn=Object.entries(Tn);Xn<Yn.length;Xn++){var Jn=_slicedToArray(Yn[Xn],2),Zn=Jn[0],er=Jn[1];Gn.setAttribute(Zn,er)}}return this},Tn}var LE=document.createElementNS(Zf.SVG,"svg");function transformToString(Tn){var Un=Tn.matrix,Dn="";switch(Tn.type){case 1:Dn="matrix("+[Un.a,Un.b,Un.c,Un.d,Un.e,Un.f].join(",")+")";break;case 2:Dn="translate("+Un.e+","+Un.f+")";break;case 3:Dn=Un.a===Un.d?"scale(".concat(Un.a,")"):"scale(".concat(Un.a,",").concat(Un.d,")");break;case 4:var Qn=0,Hn=0;if(0!==Tn.angle){var Gn=1-Un.a;Hn=(Gn*Un.f+Un.b*Un.e)/(Gn*Gn+Un.b*Un.b),Qn=(Un.e-Un.b*Hn)/Gn}Dn="rotate("+Tn.angle+" "+Qn+","+Hn+")"}return Dn}var TE={},NE=function(){function SVGTransformList(Tn){_classCallCheck(this,SVGTransformList),this._elem=Tn||null,this._xforms=[],this._update=function(){for(var Tn="",Un=0;Un<this.numberOfItems;++Un){Tn+=transformToString(this._list.getItem(Un))+" "}this._elem.setAttribute("transform",Tn)},this._list=this,this._init=function(){var Tn=this,Un=this._elem.getAttribute("transform");if(Un)for(var Dn=/\s*((scale|matrix|rotate|translate)\s*\(.*?\))\s*,?\s*/,Qn=!0;Qn;)Qn=Un.match(Dn),Un=Un.replace(Dn,""),Qn&&Qn[1]&&function(){var Un=Qn[1].split(/\s*\(/),Dn=Un[0],Hn=Un[1].match(/\s*(.*?)\s*\)/);Hn[1]=Hn[1].replace(/(\d)-/g,"$1 -");var Gn=Hn[1].split(/[, ]+/),Vn="abcdef".split(""),zn=LE.createSVGMatrix();Object.values(Gn).forEach((function(Tn,Un){Gn[Un]=Number.parseFloat(Tn),"matrix"===Dn&&(zn[Vn[Un]]=Gn[Un])}));var Kn=LE.createSVGTransform(),$n="set"+Dn.charAt(0).toUpperCase()+Dn.slice(1),Wn="matrix"===Dn?[zn]:Gn;"scale"===Dn&&1===Wn.length?Wn.push(Wn[0]):"translate"===Dn&&1===Wn.length?Wn.push(0):"rotate"===Dn&&1===Wn.length&&Wn.push(0,0),Kn[$n].apply(Kn,_toConsumableArray(Wn)),Tn._list.appendItem(Kn)}()},this._removeFromOtherLists=function(Tn){Tn&&Object.values(TE).some((function(Un){for(var Dn=0,Qn=Un._xforms.length;Dn<Qn;++Dn)if(Un._xforms[Dn]===Tn)return Un.removeItem(Dn),!0;return!1}))},this.numberOfItems=0}return _createClass(SVGTransformList,[{key:"clear",value:function clear(){this.numberOfItems=0,this._xforms=[]}},{key:"initialize",value:function initialize(Tn){this.numberOfItems=1,this._removeFromOtherLists(Tn),this._xforms=[Tn]}},{key:"getItem",value:function getItem(Tn){if(Tn<this.numberOfItems&&Tn>=0)return this._xforms[Tn];var Un=new Error("DOMException with code=INDEX_SIZE_ERR");throw Un.code=1,Un}},{key:"insertItemBefore",value:function insertItemBefore(Tn,Un){var Dn=null;if(Un>=0)if(Un<this.numberOfItems){this._removeFromOtherLists(Tn);var Qn,Hn=new Array(this.numberOfItems+1);for(Qn=0;Qn<Un;++Qn)Hn[Qn]=this._xforms[Qn];Hn[Qn]=Tn;for(var Gn=Qn+1;Qn<this.numberOfItems;++Gn,++Qn)Hn[Gn]=this._xforms[Qn];this.numberOfItems++,this._xforms=Hn,Dn=Tn,this._list._update()}else Dn=this._list.appendItem(Tn);return Dn}},{key:"replaceItem",value:function replaceItem(Tn,Un){var Dn=null;return Un<this.numberOfItems&&Un>=0&&(this._removeFromOtherLists(Tn),this._xforms[Un]=Tn,Dn=Tn,this._list._update()),Dn}},{key:"removeItem",value:function removeItem(Tn){if(Tn<this.numberOfItems&&Tn>=0){var Un,Dn=this._xforms[Tn],Qn=new Array(this.numberOfItems-1);for(Un=0;Un<Tn;++Un)Qn[Un]=this._xforms[Un];for(var Hn=Un;Hn<this.numberOfItems-1;++Hn,++Un)Qn[Hn]=this._xforms[Un+1];return this.numberOfItems--,this._xforms=Qn,this._list._update(),Dn}var Gn=new Error("DOMException with code=INDEX_SIZE_ERR");throw Gn.code=1,Gn}},{key:"appendItem",value:function appendItem(Tn){return this._removeFromOtherLists(Tn),this._xforms.push(Tn),this.numberOfItems++,this._list._update(),Tn}}]),SVGTransformList}(),IE=function removeElementFromListMap(Tn){Tn.id&&TE[Tn.id]&&delete TE[Tn.id]},OE=function getTransformList(Tn){if(!function supportsNativeTransformLists(){return WA}()){var Un=Tn.id||"temp",Dn=TE[Un];return Dn&&"temp"!==Un||(TE[Un]=new NE(Tn),TE[Un]._init(),Dn=TE[Un]),Dn}return Tn.transform?Tn.transform.baseVal:Tn.gradientTransform?Tn.gradientTransform.baseVal:Tn.patternTransform?Tn.patternTransform.baseVal:null},FE=bf.right,UE=arrayMethodIsStrict("reduceRight"),ME=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!UE||!ME||!Ts&&ii>79&&ii<83},{reduceRight:function reduceRight(Tn){return FE(this,Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}});var DE=document.createElementNS(Zf.SVG,"svg"),jE=function transformPoint(Tn,Un,Dn){return{x:Dn.a*Tn+Dn.c*Un+Dn.e,y:Dn.b*Tn+Dn.d*Un+Dn.f}},QE=function isIdentity(Tn){return 1===Tn.a&&0===Tn.b&&0===Tn.c&&1===Tn.d&&0===Tn.e&&0===Tn.f},HE=function matrixMultiply(){for(var Tn=arguments.length,Un=new Array(Tn),Dn=0;Dn<Tn;Dn++)Un[Dn]=arguments[Dn];var Qn=Un.reduceRight((function(Tn,Un){return Un.multiply(Tn)}));return Math.abs(Qn.a)<1e-14&&(Qn.a=0),Math.abs(Qn.b)<1e-14&&(Qn.b=0),Math.abs(Qn.c)<1e-14&&(Qn.c=0),Math.abs(Qn.d)<1e-14&&(Qn.d=0),Math.abs(Qn.e)<1e-14&&(Qn.e=0),Math.abs(Qn.f)<1e-14&&(Qn.f=0),Qn},GE=function hasMatrixTransform(Tn){if(!Tn)return!1;for(var Un=Tn.numberOfItems;Un--;){var Dn=Tn.getItem(Un);if(1===Dn.type&&!QE(Dn.matrix))return!0}return!1},VE=function transformBox(Tn,Un,Dn,Qn,Hn){var Gn=jE(Tn,Un,Hn),Vn=jE(Tn+Dn,Un,Hn),zn=jE(Tn,Un+Qn,Hn),Kn=jE(Tn+Dn,Un+Qn,Hn),$n=Math.min(Gn.x,Vn.x,zn.x,Kn.x),Wn=Math.max(Gn.x,Vn.x,zn.x,Kn.x),Xn=Math.min(Gn.y,Vn.y,zn.y,Kn.y);return{tl:Gn,tr:Vn,bl:zn,br:Kn,aabox:{x:$n,y:Xn,width:Wn-$n,height:Math.max(Gn.y,Vn.y,zn.y,Kn.y)-Xn}}},zE=function transformListToTransform(Tn,Un,Dn){if(!Tn)return DE.createSVGTransformFromMatrix(DE.createSVGMatrix());if(Un=Un||0,Dn=Dn||Tn.numberOfItems-1,(Un=Number.parseInt(Un))>(Dn=Number.parseInt(Dn))){var Qn=Dn;Dn=Un,Un=Qn}for(var Hn=DE.createSVGMatrix(),Gn=Un;Gn<=Dn;++Gn){var Vn=Gn>=0&&Gn<Tn.numberOfItems?Tn.getItem(Gn).matrix:DE.createSVGMatrix();Hn=HE(Hn,Vn)}return DE.createSVGTransformFromMatrix(Hn)},KE=function getMatrix(Tn){var Un=OE(Tn);return zE(Un).matrix},qE=function snapToAngle(Tn,Un,Dn,Qn){var Hn=Math.PI/4,Gn=Dn-Tn,Vn=Qn-Un,zn=Math.atan2(Vn,Gn),Kn=Math.sqrt(Gn*Gn+Vn*Vn),$n=Math.round(zn/Hn)*Hn;return{x:Tn+Kn*Math.cos($n),y:Un+Kn*Math.sin($n),a:$n}},$E=function rectsIntersect(Tn,Un){return Un.x<Tn.x+Tn.width&&Un.x+Un.width>Tn.x&&Un.y<Tn.y+Tn.height&&Un.y+Un.height>Tn.y},WE="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,toIndex=function(Tn){if(void 0===Tn)return 0;var Un=toInteger(Tn),Dn=toLength(Un);if(Un!==Dn)throw RangeError("Wrong length or index");return Dn},XE=Math.abs,YE=Math.pow,JE=Math.floor,ZE=Math.log,eP=Math.LN2,ieee754_pack=function(Tn,Un,Dn){var Qn,Hn,Gn,Vn=new Array(Dn),zn=8*Dn-Un-1,Kn=(1<<zn)-1,$n=Kn>>1,Wn=23===Un?YE(2,-24)-YE(2,-77):0,Xn=Tn<0||0===Tn&&1/Tn<0?1:0,Yn=0;for((Tn=XE(Tn))!=Tn||Infinity===Tn?(Hn=Tn!=Tn?1:0,Qn=Kn):(Qn=JE(ZE(Tn)/eP),Tn*(Gn=YE(2,-Qn))<1&&(Qn--,Gn*=2),(Tn+=Qn+$n>=1?Wn/Gn:Wn*YE(2,1-$n))*Gn>=2&&(Qn++,Gn/=2),Qn+$n>=Kn?(Hn=0,Qn=Kn):Qn+$n>=1?(Hn=(Tn*Gn-1)*YE(2,Un),Qn+=$n):(Hn=Tn*YE(2,$n-1)*YE(2,Un),Qn=0));Un>=8;Vn[Yn++]=255&Hn,Hn/=256,Un-=8);for(Qn=Qn<<Un|Hn,zn+=Un;zn>0;Vn[Yn++]=255&Qn,Qn/=256,zn-=8);return Vn[--Yn]|=128*Xn,Vn},ieee754_unpack=function(Tn,Un){var Dn,Qn=Tn.length,Hn=8*Qn-Un-1,Gn=(1<<Hn)-1,Vn=Gn>>1,zn=Hn-7,Kn=Qn-1,$n=Tn[Kn--],Wn=127&$n;for($n>>=7;zn>0;Wn=256*Wn+Tn[Kn],Kn--,zn-=8);for(Dn=Wn&(1<<-zn)-1,Wn>>=-zn,zn+=Un;zn>0;Dn=256*Dn+Tn[Kn],Kn--,zn-=8);if(0===Wn)Wn=1-Vn;else{if(Wn===Gn)return Dn?NaN:$n?-Infinity:Infinity;Dn+=YE(2,Un),Wn-=Vn}return($n?-1:1)*Dn*YE(2,Wn-Un)},tP=Mr.f,nP=nr.f,rP=Cr.get,iP=Cr.set,oP=Dn.ArrayBuffer,aP=oP,sP=Dn.DataView,lP=sP&&sP.prototype,cP=Object.prototype,uP=Dn.RangeError,dP=ieee754_pack,hP=ieee754_unpack,packInt8=function(Tn){return[255&Tn]},packInt16=function(Tn){return[255&Tn,Tn>>8&255]},packInt32=function(Tn){return[255&Tn,Tn>>8&255,Tn>>16&255,Tn>>24&255]},unpackInt32=function(Tn){return Tn[3]<<24|Tn[2]<<16|Tn[1]<<8|Tn[0]},packFloat32=function(Tn){return dP(Tn,23,4)},packFloat64=function(Tn){return dP(Tn,52,8)},addGetter=function(Tn,Un){nP(Tn.prototype,Un,{get:function(){return rP(this)[Un]}})},get$7=function(Tn,Un,Dn,Qn){var Hn=toIndex(Dn),Gn=rP(Tn);if(Hn+Un>Gn.byteLength)throw uP("Wrong index");var Vn=rP(Gn.buffer).bytes,zn=Hn+Gn.byteOffset,Kn=Vn.slice(zn,zn+Un);return Qn?Kn:Kn.reverse()},set$5=function(Tn,Un,Dn,Qn,Hn,Gn){var Vn=toIndex(Dn),zn=rP(Tn);if(Vn+Un>zn.byteLength)throw uP("Wrong index");for(var Kn=rP(zn.buffer).bytes,$n=Vn+zn.byteOffset,Wn=Qn(+Hn),Xn=0;Xn<Un;Xn++)Kn[$n+Xn]=Wn[Gn?Xn:Un-Xn-1]};if(WE){if(!fails((function(){oP(1)}))||!fails((function(){new oP(-1)}))||fails((function(){return new oP,new oP(1.5),new oP(NaN),"ArrayBuffer"!=oP.name}))){for(var pP,gP=(aP=function ArrayBuffer(Tn){return anInstance(this,aP),new oP(toIndex(Tn))}).prototype=oP.prototype,fP=tP(oP),AP=0;fP.length>AP;)(pP=fP[AP++])in aP||rr(aP,pP,oP[pP]);gP.constructor=aP}Lo&&Ta(lP)!==cP&&Lo(lP,cP);var mP=new sP(new aP(2)),vP=lP.setInt8;mP.setInt8(0,2147483648),mP.setInt8(1,2147483649),!mP.getInt8(0)&&mP.getInt8(1)||redefineAll(lP,{setInt8:function setInt8(Tn,Un){vP.call(this,Tn,Un<<24>>24)},setUint8:function setUint8(Tn,Un){vP.call(this,Tn,Un<<24>>24)}},{unsafe:!0})}else aP=function ArrayBuffer(Tn){anInstance(this,aP,"ArrayBuffer");var Un=toIndex(Tn);iP(this,{bytes:ds.call(new Array(Un),0),byteLength:Un}),Qn||(this.byteLength=Un)},sP=function DataView(Tn,Un,Dn){anInstance(this,sP,"DataView"),anInstance(Tn,aP,"DataView");var Hn=rP(Tn).byteLength,Gn=toInteger(Un);if(Gn<0||Gn>Hn)throw uP("Wrong offset");if(Gn+(Dn=void 0===Dn?Hn-Gn:toLength(Dn))>Hn)throw uP("Wrong length");iP(this,{buffer:Tn,byteLength:Dn,byteOffset:Gn}),Qn||(this.buffer=Tn,this.byteLength=Dn,this.byteOffset=Gn)},Qn&&(addGetter(aP,"byteLength"),addGetter(sP,"buffer"),addGetter(sP,"byteLength"),addGetter(sP,"byteOffset")),redefineAll(sP.prototype,{getInt8:function getInt8(Tn){return get$7(this,1,Tn)[0]<<24>>24},getUint8:function getUint8(Tn){return get$7(this,1,Tn)[0]},getInt16:function getInt16(Tn){var Un=get$7(this,2,Tn,arguments.length>1?arguments[1]:void 0);return(Un[1]<<8|Un[0])<<16>>16},getUint16:function getUint16(Tn){var Un=get$7(this,2,Tn,arguments.length>1?arguments[1]:void 0);return Un[1]<<8|Un[0]},getInt32:function getInt32(Tn){return unpackInt32(get$7(this,4,Tn,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(Tn){return unpackInt32(get$7(this,4,Tn,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(Tn){return hP(get$7(this,4,Tn,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(Tn){return hP(get$7(this,8,Tn,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(Tn,Un){set$5(this,1,Tn,packInt8,Un)},setUint8:function setUint8(Tn,Un){set$5(this,1,Tn,packInt8,Un)},setInt16:function setInt16(Tn,Un){set$5(this,2,Tn,packInt16,Un,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(Tn,Un){set$5(this,2,Tn,packInt16,Un,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(Tn,Un){set$5(this,4,Tn,packInt32,Un,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(Tn,Un){set$5(this,4,Tn,packInt32,Un,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(Tn,Un){set$5(this,4,Tn,packFloat32,Un,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(Tn,Un){set$5(this,8,Tn,packFloat64,Un,arguments.length>2?arguments[2]:void 0)}});setToStringTag(aP,"ArrayBuffer"),setToStringTag(sP,"DataView");var yP={ArrayBuffer:aP,DataView:sP},_P=yP.ArrayBuffer,bP=yP.DataView,wP=_P.prototype.slice,xP=fails((function(){return!new _P(2).slice(1,void 0).byteLength}));_export({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:xP},{slice:function slice(Tn,Un){if(void 0!==wP&&void 0===Un)return wP.call(anObject(this),Tn);for(var Dn=anObject(this).byteLength,Qn=toAbsoluteIndex(Tn,Dn),Hn=toAbsoluteIndex(void 0===Un?Dn:Un,Dn),Gn=new(speciesConstructor(this,_P))(toLength(Hn-Qn)),Vn=new bP(this),zn=new bP(Gn),Kn=0;Qn<Hn;)zn.setUint8(Kn++,Vn.getUint8(Qn++));return Gn}});var SP,CP=nr.f,kP=Dn.Int8Array,BP=kP&&kP.prototype,EP=Dn.Uint8ClampedArray,PP=EP&&EP.prototype,LP=kP&&Ta(kP),TP=BP&&Ta(BP),NP=Object.prototype,IP=NP.isPrototypeOf,OP=wellKnownSymbol("toStringTag"),FP=uid("TYPED_ARRAY_TAG"),UP=WE&&!!Lo&&"Opera"!==fo(Dn.opera),MP=!1,RP={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},isTypedArray=function(Tn){return isObject(Tn)&&has(RP,fo(Tn))};for(SP in RP)Dn[SP]||(UP=!1);if((!UP||"function"!=typeof LP||LP===Function.prototype)&&(LP=function TypedArray(){throw TypeError("Incorrect invocation")},UP))for(SP in RP)Dn[SP]&&Lo(Dn[SP],LP);if((!UP||!TP||TP===NP)&&(TP=LP.prototype,UP))for(SP in RP)Dn[SP]&&Lo(Dn[SP].prototype,TP);if(UP&&Ta(PP)!==TP&&Lo(PP,TP),Qn&&!has(TP,OP))for(SP in MP=!0,CP(TP,OP,{get:function(){return isObject(this)?this[FP]:void 0}}),RP)Dn[SP]&&rr(Dn[SP],FP,SP);var DP={NATIVE_ARRAY_BUFFER_VIEWS:UP,TYPED_ARRAY_TAG:MP&&FP,aTypedArray:function(Tn){if(isTypedArray(Tn))return Tn;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(Tn){if(Lo){if(IP.call(LP,Tn))return Tn}else for(var Un in RP)if(has(RP,SP)){var Qn=Dn[Un];if(Qn&&(Tn===Qn||IP.call(Qn,Tn)))return Tn}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(Tn,Un,Hn){if(Qn){if(Hn)for(var Gn in RP){var Vn=Dn[Gn];Vn&&has(Vn.prototype,Tn)&&delete Vn.prototype[Tn]}TP[Tn]&&!Hn||kr(TP,Tn,Hn?Un:UP&&BP[Tn]||Un)}},exportTypedArrayStaticMethod:function(Tn,Un,Hn){var Gn,Vn;if(Qn){if(Lo){if(Hn)for(Gn in RP)(Vn=Dn[Gn])&&has(Vn,Tn)&&delete Vn[Tn];if(LP[Tn]&&!Hn)return;try{return kr(LP,Tn,Hn?Un:UP&&kP[Tn]||Un)}catch(Tn){}}for(Gn in RP)!(Vn=Dn[Gn])||Vn[Tn]&&!Hn||kr(Vn,Tn,Un)}},isView:function isView(Tn){var Un=fo(Tn);return"DataView"===Un||has(RP,Un)},isTypedArray:isTypedArray,TypedArray:LP,TypedArrayPrototype:TP},jP=DP.NATIVE_ARRAY_BUFFER_VIEWS,QP=Dn.ArrayBuffer,HP=Dn.Int8Array,GP=!jP||!fails((function(){HP(1)}))||!fails((function(){new HP(-1)}))||!checkCorrectnessOfIteration((function(Tn){new HP,new HP(null),new HP(1.5),new HP(Tn)}),!0)||fails((function(){return 1!==new HP(new QP(2),1,void 0).length})),toOffset=function(Tn,Un){var Dn=function(Tn){var Un=toInteger(Tn);if(Un<0)throw RangeError("The argument can't be less than 0");return Un}(Tn);if(Dn%Un)throw RangeError("Wrong offset");return Dn},VP=DP.aTypedArrayConstructor,zP=function from(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn=toObject(Tn),Kn=arguments.length,$n=Kn>1?arguments[1]:void 0,Wn=void 0!==$n,Xn=getIteratorMethod(zn);if(null!=Xn&&!isArrayIteratorMethod(Xn))for(Vn=(Gn=Xn.call(zn)).next,zn=[];!(Hn=Vn.call(Gn)).done;)zn.push(Hn.value);for(Wn&&Kn>2&&($n=functionBindContext($n,arguments[2],2)),Dn=toLength(zn.length),Qn=new(VP(this))(Dn),Un=0;Dn>Un;Un++)Qn[Un]=Wn?$n(zn[Un],Un):zn[Un];return Qn},KP=createCommonjsModule((function(Tn){var Un=Mr.f,Hn=di.forEach,Gn=Cr.get,Vn=Cr.set,zn=nr.f,Kn=er.f,$n=Math.round,Wn=Dn.RangeError,Xn=yP.ArrayBuffer,Yn=yP.DataView,Jn=DP.NATIVE_ARRAY_BUFFER_VIEWS,Zn=DP.TYPED_ARRAY_TAG,tr=DP.TypedArray,ir=DP.TypedArrayPrototype,or=DP.aTypedArrayConstructor,ar=DP.isTypedArray,sr="BYTES_PER_ELEMENT",lr="Wrong length",fromList=function(Tn,Un){for(var Dn=0,Qn=Un.length,Hn=new(or(Tn))(Qn);Qn>Dn;)Hn[Dn]=Un[Dn++];return Hn},addGetter=function(Tn,Un){zn(Tn,Un,{get:function(){return Gn(this)[Un]}})},isArrayBuffer=function(Tn){var Un;return Tn instanceof Xn||"ArrayBuffer"==(Un=fo(Tn))||"SharedArrayBuffer"==Un},isTypedArrayIndex=function(Tn,Un){return ar(Tn)&&"symbol"!=typeof Un&&Un in Tn&&String(+Un)==String(Un)},cr=function getOwnPropertyDescriptor(Tn,Un){return isTypedArrayIndex(Tn,Un=toPrimitive(Un,!0))?createPropertyDescriptor(2,Tn[Un]):Kn(Tn,Un)},ur=function defineProperty(Tn,Un,Dn){return!(isTypedArrayIndex(Tn,Un=toPrimitive(Un,!0))&&isObject(Dn)&&has(Dn,"value"))||has(Dn,"get")||has(Dn,"set")||Dn.configurable||has(Dn,"writable")&&!Dn.writable||has(Dn,"enumerable")&&!Dn.enumerable?zn(Tn,Un,Dn):(Tn[Un]=Dn.value,Tn)};Qn?(Jn||(er.f=cr,nr.f=ur,addGetter(ir,"buffer"),addGetter(ir,"byteOffset"),addGetter(ir,"byteLength"),addGetter(ir,"length")),_export({target:"Object",stat:!0,forced:!Jn},{getOwnPropertyDescriptor:cr,defineProperty:ur}),Tn.exports=function(Tn,Qn,Kn){var er=Tn.match(/\d+$/)[0]/8,nr=Tn+(Kn?"Clamped":"")+"Array",or="get"+Tn,cr="set"+Tn,ur=Dn[nr],dr=ur,hr=dr&&dr.prototype,pr={},addElement=function(Tn,Un){zn(Tn,Un,{get:function(){return function(Tn,Un){var Dn=Gn(Tn);return Dn.view[or](Un*er+Dn.byteOffset,!0)}(this,Un)},set:function(Tn){return function(Tn,Un,Dn){var Qn=Gn(Tn);Kn&&(Dn=(Dn=$n(Dn))<0?0:Dn>255?255:255&Dn),Qn.view[cr](Un*er+Qn.byteOffset,Dn,!0)}(this,Un,Tn)},enumerable:!0})};Jn?GP&&(dr=Qn((function(Tn,Un,Dn,Qn){return anInstance(Tn,dr,nr),inheritIfRequired(isObject(Un)?isArrayBuffer(Un)?void 0!==Qn?new ur(Un,toOffset(Dn,er),Qn):void 0!==Dn?new ur(Un,toOffset(Dn,er)):new ur(Un):ar(Un)?fromList(dr,Un):zP.call(dr,Un):new ur(toIndex(Un)),Tn,dr)})),Lo&&Lo(dr,tr),Hn(Un(ur),(function(Tn){Tn in dr||rr(dr,Tn,ur[Tn])})),dr.prototype=hr):(dr=Qn((function(Tn,Un,Dn,Qn){anInstance(Tn,dr,nr);var Hn,Gn,zn,Kn=0,$n=0;if(isObject(Un)){if(!isArrayBuffer(Un))return ar(Un)?fromList(dr,Un):zP.call(dr,Un);Hn=Un,$n=toOffset(Dn,er);var Jn=Un.byteLength;if(void 0===Qn){if(Jn%er)throw Wn(lr);if((Gn=Jn-$n)<0)throw Wn(lr)}else if((Gn=toLength(Qn)*er)+$n>Jn)throw Wn(lr);zn=Gn/er}else zn=toIndex(Un),Hn=new Xn(Gn=zn*er);for(Vn(Tn,{buffer:Hn,byteOffset:$n,byteLength:Gn,length:zn,view:new Yn(Hn)});Kn<zn;)addElement(Tn,Kn++)})),Lo&&Lo(dr,tr),hr=dr.prototype=xi(ir)),hr.constructor!==dr&&rr(hr,"constructor",dr),Zn&&rr(hr,Zn,nr),pr[nr]=dr,_export({global:!0,forced:dr!=ur,sham:!Jn},pr),sr in dr||rr(dr,sr,er),sr in hr||rr(hr,sr,er),setSpecies(nr)}):Tn.exports=function(){}}));KP("Uint8",(function(Tn){return function Uint8Array(Un,Dn,Qn){return Tn(this,Un,Dn,Qn)}}));var qP=Math.min,$P=[].copyWithin||function copyWithin(Tn,Un){var Dn=toObject(this),Qn=toLength(Dn.length),Hn=toAbsoluteIndex(Tn,Qn),Gn=toAbsoluteIndex(Un,Qn),Vn=arguments.length>2?arguments[2]:void 0,zn=qP((void 0===Vn?Qn:toAbsoluteIndex(Vn,Qn))-Gn,Qn-Hn),Kn=1;for(Gn<Hn&&Hn<Gn+zn&&(Kn=-1,Gn+=zn-1,Hn+=zn-1);zn-- >0;)Gn in Dn?Dn[Hn]=Dn[Gn]:delete Dn[Hn],Hn+=Kn,Gn+=Kn;return Dn},WP=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("copyWithin",(function copyWithin(Tn,Un){return $P.call(WP(this),Tn,Un,arguments.length>2?arguments[2]:void 0)}));var XP=di.every,YP=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("every",(function every(Tn){return XP(YP(this),Tn,arguments.length>1?arguments[1]:void 0)}));var JP=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("fill",(function fill(Tn){return ds.apply(JP(this),arguments)}));var ZP=di.filter,eL=DP.aTypedArray,tL=DP.aTypedArrayConstructor;(0,DP.exportTypedArrayMethod)("filter",(function filter(Tn){for(var Un=ZP(eL(this),Tn,arguments.length>1?arguments[1]:void 0),Dn=speciesConstructor(this,this.constructor),Qn=0,Hn=Un.length,Gn=new(tL(Dn))(Hn);Hn>Qn;)Gn[Qn]=Un[Qn++];return Gn}));var nL=di.find,rL=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("find",(function find(Tn){return nL(rL(this),Tn,arguments.length>1?arguments[1]:void 0)}));var iL=di.findIndex,oL=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("findIndex",(function findIndex(Tn){return iL(oL(this),Tn,arguments.length>1?arguments[1]:void 0)}));var aL=di.forEach,sL=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("forEach",(function forEach(Tn){aL(sL(this),Tn,arguments.length>1?arguments[1]:void 0)}));var lL=Ir.includes,cL=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("includes",(function includes(Tn){return lL(cL(this),Tn,arguments.length>1?arguments[1]:void 0)}));var uL=Ir.indexOf,dL=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("indexOf",(function indexOf(Tn){return uL(dL(this),Tn,arguments.length>1?arguments[1]:void 0)}));var hL=wellKnownSymbol("iterator"),pL=Dn.Uint8Array,gL=Ga.values,fL=Ga.keys,AL=Ga.entries,mL=DP.aTypedArray,vL=DP.exportTypedArrayMethod,yL=pL&&pL.prototype[hL],_L=!!yL&&("values"==yL.name||null==yL.name),bL=function values(){return gL.call(mL(this))};vL("entries",(function entries(){return AL.call(mL(this))})),vL("keys",(function keys(){return fL.call(mL(this))})),vL("values",bL,!_L),vL(hL,bL,!_L);var wL=DP.aTypedArray,xL=[].join;(0,DP.exportTypedArrayMethod)("join",(function join(Tn){return xL.apply(wL(this),arguments)}));var SL=Math.min,CL=[].lastIndexOf,kL=!!CL&&1/[1].lastIndexOf(1,-0)<0,BL=arrayMethodIsStrict("lastIndexOf"),EL=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0}),PL=kL||!BL||!EL?function lastIndexOf(Tn){if(kL)return CL.apply(this,arguments)||0;var Un=toIndexedObject(this),Dn=toLength(Un.length),Qn=Dn-1;for(arguments.length>1&&(Qn=SL(Qn,toInteger(arguments[1]))),Qn<0&&(Qn=Dn+Qn);Qn>=0;Qn--)if(Qn in Un&&Un[Qn]===Tn)return Qn||0;return-1}:CL,LL=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(Tn){return PL.apply(LL(this),arguments)}));var TL=di.map,NL=DP.aTypedArray,IL=DP.aTypedArrayConstructor;(0,DP.exportTypedArrayMethod)("map",(function map(Tn){return TL(NL(this),Tn,arguments.length>1?arguments[1]:void 0,(function(Tn,Un){return new(IL(speciesConstructor(Tn,Tn.constructor)))(Un)}))}));var OL=bf.left,FL=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("reduce",(function reduce(Tn){return OL(FL(this),Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}));var UL=bf.right,ML=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("reduceRight",(function reduceRight(Tn){return UL(ML(this),Tn,arguments.length,arguments.length>1?arguments[1]:void 0)}));var RL=DP.aTypedArray,DL=DP.exportTypedArrayMethod,jL=Math.floor;DL("reverse",(function reverse(){for(var Tn,Un=this,Dn=RL(Un).length,Qn=jL(Dn/2),Hn=0;Hn<Qn;)Tn=Un[Hn],Un[Hn++]=Un[--Dn],Un[Dn]=Tn;return Un}));var QL=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("set",(function set(Tn){QL(this);var Un=toOffset(arguments.length>1?arguments[1]:void 0,1),Dn=this.length,Qn=toObject(Tn),Hn=toLength(Qn.length),Gn=0;if(Hn+Un>Dn)throw RangeError("Wrong length");for(;Gn<Hn;)this[Un+Gn]=Qn[Gn++]}),fails((function(){new Int8Array(1).set({})})));var HL=DP.aTypedArray,GL=DP.aTypedArrayConstructor,VL=[].slice;(0,DP.exportTypedArrayMethod)("slice",(function slice(Tn,Un){for(var Dn=VL.call(HL(this),Tn,Un),Qn=speciesConstructor(this,this.constructor),Hn=0,Gn=Dn.length,Vn=new(GL(Qn))(Gn);Gn>Hn;)Vn[Hn]=Dn[Hn++];return Vn}),fails((function(){new Int8Array(1).slice()})));var zL=di.some,KL=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("some",(function some(Tn){return zL(KL(this),Tn,arguments.length>1?arguments[1]:void 0)}));var qL=DP.aTypedArray,$L=[].sort;(0,DP.exportTypedArrayMethod)("sort",(function sort(Tn){return $L.call(qL(this),Tn)}));var WL=DP.aTypedArray;(0,DP.exportTypedArrayMethod)("subarray",(function subarray(Tn,Un){var Dn=WL(this),Qn=Dn.length,Hn=toAbsoluteIndex(Tn,Qn);return new(speciesConstructor(Dn,Dn.constructor))(Dn.buffer,Dn.byteOffset+Hn*Dn.BYTES_PER_ELEMENT,toLength((void 0===Un?Qn:toAbsoluteIndex(Un,Qn))-Hn))}));var XL=Dn.Int8Array,YL=DP.aTypedArray,JL=DP.exportTypedArrayMethod,ZL=[].toLocaleString,eT=[].slice,tT=!!XL&&fails((function(){ZL.call(new XL(1))}));JL("toLocaleString",(function toLocaleString(){return ZL.apply(tT?eT.call(YL(this)):YL(this),arguments)}),fails((function(){return[1,2].toLocaleString()!=new XL([1,2]).toLocaleString()}))||!fails((function(){XL.prototype.toLocaleString.call([1,2])})));var nT=DP.exportTypedArrayMethod,rT=Dn.Uint8Array,iT=rT&&rT.prototype||{},oT=[].toString,aT=[].join;fails((function(){oT.call({})}))&&(oT=function toString(){return aT.call(this)});var sT=iT.toString!=oT;nT("toString",oT,sT);var lT=jQueryPluginSVG(jQuery),cT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",uT="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use,clipPath".split(","),dT=null,hT=null,pT=null,gT=null,fT=function dropXMLInternalSubset(Tn){return Tn.replace(/(<!DOCTYPE\s+\w*\s*\[).*(\?]>)/,"$1$2")},AT=function toXml(Tn){return Tn.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};function encode64(Tn){if(Tn=mT(Tn),window.btoa)return window.btoa(Tn);var Un=new Array(4*Math.floor((Tn.length+2)/3)),Dn=0,Qn=0;do{var Hn=Tn.charCodeAt(Dn++),Gn=Tn.charCodeAt(Dn++),Vn=Tn.charCodeAt(Dn++),zn=Hn>>2,Kn=(3&Hn)<<4|Gn>>4,$n=(15&Gn)<<2|Vn>>6,Wn=63&Vn;Number.isNaN(Gn)?($n=64,Wn=64):Number.isNaN(Vn)&&(Wn=64),Un[Qn++]=cT.charAt(zn),Un[Qn++]=cT.charAt(Kn),Un[Qn++]=cT.charAt($n),Un[Qn++]=cT.charAt(Wn)}while(Dn<Tn.length);return Un.join("")}function decode64(Tn){if(window.atob)return decodeUTF8(window.atob(Tn));Tn=Tn.replace(/[^A-Za-z\d+/=]/g,"");var Un="",Dn=0;do{var Qn=cT.indexOf(Tn.charAt(Dn++)),Hn=cT.indexOf(Tn.charAt(Dn++)),Gn=cT.indexOf(Tn.charAt(Dn++)),Vn=cT.indexOf(Tn.charAt(Dn++)),zn=Qn<<2|Hn>>4,Kn=(15&Hn)<<4|Gn>>2,$n=(3&Gn)<<6|Vn;Un+=String.fromCharCode(zn),64!==Gn&&(Un+=String.fromCharCode(Kn)),64!==Vn&&(Un+=String.fromCharCode($n))}while(Dn<Tn.length);return decodeUTF8(Un)}function decodeUTF8(Tn){return decodeURIComponent(escape(Tn))}var mT=function encodeUTF8(Tn){return unescape(encodeURIComponent(Tn))},vT=function dataURLToObjectURL(Tn){if("undefined"==typeof Uint8Array||"undefined"==typeof Blob||"undefined"==typeof URL||!URL.createObjectURL)return"";for(var Un=Tn.split(","),Dn=Un[0].match(/:(.*?);/)[1],Qn=atob(Un[1]),Hn=Qn.length,Gn=new Uint8Array(Hn);Hn--;)Gn[Hn]=Qn.charCodeAt(Hn);var Vn=new Blob([Gn],{type:Dn});return URL.createObjectURL(Vn)},yT=function createObjectURL(Tn){return Tn&&"undefined"!=typeof URL&&URL.createObjectURL?URL.createObjectURL(Tn):""},_T=function(){if("undefined"==typeof Blob)return"";var Tn=new Blob(["<html><head><title>SVG-edit</title></head><body> </body></html>"],{type:"text/html"});return yT(Tn)}(),bT=function text2xml(Tn){var Un,Dn;Tn.includes("<svg:svg")&&(Tn=Tn.replace(/<(\/?)svg:/g,"<$1").replace("xmlns:svg","xmlns"));try{(Dn=window.DOMParser?new DOMParser:new window.ActiveXObject("Microsoft.XMLDOM")).async=!1}catch(Tn){throw new Error("XML Parser could not be instantiated")}try{Un=Dn.loadXML?!!Dn.loadXML(Tn)&&Dn:Dn.parseFromString(Tn,"text/xml")}catch(Tn){throw new Error("Error parsing XML string")}return Un},wT=function walkTree(Tn,Un){if(Tn&&1===Tn.nodeType){Un(Tn);for(var Dn=Tn.childNodes.length;Dn--;)walkTree(Tn.childNodes.item(Dn),Un)}},xT=function getUrlFromAttr(Tn){if(Tn){if(Tn.startsWith('url("'))return Tn.substring(5,Tn.indexOf('"',6));if(Tn.startsWith("url('"))return Tn.substring(5,Tn.indexOf("'",6));if(Tn.startsWith("url("))return Tn.substring(4,Tn.indexOf(")"))}return null},ST=function getHref(Tn){return Tn.getAttributeNS(Zf.XLINK,"href")},CT=function setHref(Tn,Un){Tn.setAttributeNS(Zf.XLINK,"xlink:href",Un)},kT=function findDefs(){var Tn=dT.getSVGContent(),Un=Tn.getElementsByTagNameNS(Zf.SVG,"defs");return Un.length>0?Un=Un[0]:(Un=Tn.ownerDocument.createElementNS(Zf.SVG,"defs"),Tn.firstChild?Tn.insertBefore(Un,Tn.firstChild.nextSibling):Tn.append(Un)),Un},BT=function getPathBBox(Tn){for(var Un=Tn.pathSegList,Dn=Un.numberOfItems,Qn=[[],[]],Hn=Un.getItem(0),Gn=[Hn.x,Hn.y],Vn=function getCalc(Tn,Un,Dn,Qn){return function(Hn){return 1-Math.pow(Hn,3)*Gn[Tn]+3-Math.pow(Hn,2)*Hn*Un[Tn]+3*(1-Hn)*Math.pow(Hn,2)*Dn[Tn]+Math.pow(Hn,3)*Qn[Tn]}},zn=0;zn<Dn;zn++){var Kn=Un.getItem(zn);if(void 0!==Kn.x)if(Qn[0].push(Gn[0]),Qn[1].push(Gn[1]),Kn.x1){for(var $n=[Kn.x1,Kn.y1],Wn=[Kn.x2,Kn.y2],Xn=[Kn.x,Kn.y],Yn=0;Yn<2;Yn++){var Jn=Vn(Yn,$n,Wn,Xn),Zn=6*Gn[Yn]-12*$n[Yn]+6*Wn[Yn],er=-3*Gn[Yn]+9*$n[Yn]-9*Wn[Yn]+3*Xn[Yn],tr=3*$n[Yn]-3*Gn[Yn];if(0!==er){var nr=Math.pow(Zn,2)-4*tr*er;if(!(nr<0)){var rr=(-Zn+Math.sqrt(nr))/(2*er);rr>0&&rr<1&&Qn[Yn].push(Jn(rr));var ir=(-Zn-Math.sqrt(nr))/(2*er);ir>0&&ir<1&&Qn[Yn].push(Jn(ir))}}else{if(0===Zn)continue;var or=-tr/Zn;or>0&&or<1&&Qn[Yn].push(Jn(or))}}Gn=Xn}else Qn[0].push(Kn.x),Qn[1].push(Kn.y)}var ar=Math.min.apply(null,Qn[0]),sr=Math.max.apply(null,Qn[0])-ar,lr=Math.min.apply(null,Qn[1]);return{x:ar,y:lr,width:sr,height:Math.max.apply(null,Qn[1])-lr}};function groupBBFix(Tn){if(function supportsHVLineContainerBBox(){return qA}())try{return Tn.getBBox()}catch(Tn){}var Un,Dn,Qn=lT.data(Tn,"ref"),Hn=null;Qn?(Dn=lT(Qn).children().clone().attr("visibility","hidden"),lT(gT).append(Dn),Hn=Dn.filter("line, path")):Hn=lT(Tn).find("line, path");var Gn=!1;if(Hn.length)if(Hn.each((function(){var Tn=this.getBBox();Tn.width&&Tn.height||(Gn=!0)})),Gn){var Vn=Qn?Dn:lT(Tn).children();Un=OT(Vn)}else Un=Tn.getBBox();else Un=Tn.getBBox();return Qn&&Dn.remove(),Un}var ET=function getBBox(Tn){var Un=Tn||dT.geSelectedElements()[0];if(1!==Tn.nodeType)return null;var Dn=Un.nodeName,Qn=null;switch(Dn){case"text":""===Un.textContent?(Un.textContent="a",Qn=Un.getBBox(),Un.textContent=""):Un.getBBox&&(Qn=Un.getBBox());break;case"path":!function supportsPathBBox(){return KA}()?Qn=BT(Un):Un.getBBox&&(Qn=Un.getBBox());break;case"g":case"a":Qn=groupBBFix(Un);break;default:if("use"===Dn&&(Qn=groupBBFix(Un)),"use"===Dn||"foreignObject"===Dn&&XA()){if(Qn||(Qn=Un.getBBox()),!XA()){var Hn=Qn,Gn=Hn.x,Vn=Hn.y;Qn={width:Hn.width,height:Hn.height,x:Gn+Number.parseFloat(Un.getAttribute("x")||0),y:Vn+Number.parseFloat(Un.getAttribute("y")||0)}}}else if(uT.includes(Dn))if(Un)try{Qn=Un.getBBox()}catch(Tn){var zn=Un.getExtentOfChar(0),Kn=Un.getComputedTextLength();Qn={x:zn.x,y:zn.y,width:Kn,height:zn.height}}else{var $n=lT(Un).closest("foreignObject");$n.length&&$n[0].getBBox&&(Qn=$n[0].getBBox())}}return Qn&&(Qn=function bboxToObj(Tn){return{x:Tn.x,y:Tn.y,width:Tn.width,height:Tn.height}}(Qn)),Qn},PT=function getPathDFromSegments(Tn){var Un="";return lT.each(Tn,(function(Tn,Dn){var Qn=_slicedToArray(Dn,2),Hn=Qn[0],Gn=Qn[1];Un+=Hn;for(var Vn=0;Vn<Gn.length;Vn+=2)Un+=Gn[Vn]+","+Gn[Vn+1]+" "})),Un},LT=function getPathDFromElement(Tn){var Un,Dn,Qn,Hn,Gn=1.81;switch(Tn.tagName){case"ellipse":case"circle":var Vn=Dn=lT(Tn).attr(["rx","ry","cx","cy"]),zn=Vn.cx,Kn=Vn.cy,$n=Dn;Qn=$n.rx,Hn=$n.ry,"circle"===Tn.tagName&&(Qn=Hn=lT(Tn).attr("r")),Un=PT([["M",[zn-Qn,Kn]],["C",[zn-Qn,Kn-Hn/Gn,zn-Qn/Gn,Kn-Hn,zn,Kn-Hn]],["C",[zn+Qn/Gn,Kn-Hn,zn+Qn,Kn-Hn/Gn,zn+Qn,Kn]],["C",[zn+Qn,Kn+Hn/Gn,zn+Qn/Gn,Kn+Hn,zn,Kn+Hn]],["C",[zn-Qn/Gn,Kn+Hn,zn-Qn,Kn+Hn/Gn,zn-Qn,Kn]],["Z",[]]]);break;case"path":Un=Tn.getAttribute("d");break;case"line":Un="M"+(Dn=lT(Tn).attr(["x1","y1","x2","y2"])).x1+","+Dn.y1+"L"+Dn.x2+","+Dn.y2;break;case"polyline":Un="M"+Tn.getAttribute("points");break;case"polygon":Un="M"+Tn.getAttribute("points")+" Z";break;case"rect":var Wn=lT(Tn).attr(["rx","ry"]);Qn=Wn.rx,Hn=Wn.ry;var Xn=Tn.getBBox(),Yn=Xn.x,Jn=Xn.y,Zn=Xn.width,er=Xn.height;Gn=4-Gn,Un=PT(Qn||Hn?[["M",[Yn,Jn+Hn]],["C",[Yn,Jn+Hn/Gn,Yn+Qn/Gn,Jn,Yn+Qn,Jn]],["L",[Yn+Zn-Qn,Jn]],["C",[Yn+Zn-Qn/Gn,Jn,Yn+Zn,Jn+Hn/Gn,Yn+Zn,Jn+Hn]],["L",[Yn+Zn,Jn+er-Hn]],["C",[Yn+Zn,Jn+er-Hn/Gn,Yn+Zn-Qn/Gn,Jn+er,Yn+Zn-Qn,Jn+er]],["L",[Yn+Qn,Jn+er]],["C",[Yn+Qn/Gn,Jn+er,Yn,Jn+er-Hn/Gn,Yn,Jn+er-Hn]],["L",[Yn,Jn+Hn]],["Z",[]]]:[["M",[Yn,Jn]],["L",[Yn+Zn,Jn]],["L",[Yn+Zn,Jn+er]],["L",[Yn,Jn+er]],["L",[Yn,Jn]],["Z",[]]])}return Un},TT=function getExtraAttributesForConvertToPath(Tn){var Un={};return lT.each(["marker-start","marker-end","marker-mid","filter","clip-path"],(function(){var Dn=Tn.getAttribute(this);Dn&&(Un[this]=Dn)})),Un},NT=function getBBoxOfElementAsPath(Tn,Un,Dn){var Qn=Un({element:"path",attr:TT(Tn)}),Hn=Tn.getAttribute("transform");Hn&&Qn.setAttribute("transform",Hn);var Gn=Tn.parentNode;Tn.nextSibling?Tn.before(Qn):Gn.append(Qn);var Vn=LT(Tn);Vn?Qn.setAttribute("d",Vn):Qn.remove(),Dn.resetOrientation(Qn);var zn=!1;try{zn=Qn.getBBox()}catch(Tn){}return Qn.remove(),zn};var IT=function getBBoxWithTransform(Tn,Un,Dn){var Qn=ET(Tn);if(!Qn)return null;var Hn=OE(Tn),Gn=MT(Hn),Vn=GE(Hn);if(Gn||Vn){var zn=!1;if(function bBoxCanBeOptimizedOverNativeGetBBox(Tn,Un){var Dn=Tn%90;return Un||!(Dn>-.001&&Dn<.001||Dn<-89.99||Dn>89.99)}(Gn,Vn)){if(["ellipse","path","line","polyline","polygon"].includes(Tn.tagName))Qn=zn=NT(Tn,Un,Dn);else if("rect"===Tn.tagName){var Kn=Tn.getAttribute("rx"),$n=Tn.getAttribute("ry");(Kn||$n)&&(Qn=zn=NT(Tn,Un,Dn))}}if(!zn){var Wn=zE(Hn).matrix;Qn=VE(Qn.x,Qn.y,Qn.width,Qn.height,Wn).aabox}}return Qn};function getStrokeOffsetForBBox(Tn){var Un=Tn.getAttribute("stroke-width");return isNaN(Un)||"none"===Tn.getAttribute("stroke")?0:Un/2}var OT=function getStrokedBBox(Tn,Un,Dn){if(!Tn||!Tn.length)return!1;var Qn;if(lT.each(Tn,(function(){Qn||this.parentNode&&(Qn=IT(this,Un,Dn))})),void 0===Qn)return null;var Hn=Qn.x+Qn.width,Gn=Qn.y+Qn.height,Vn=Qn.x,zn=Qn.y;if(1===Tn.length){var Kn=getStrokeOffsetForBBox(Tn[0]);Vn-=Kn,zn-=Kn,Hn+=Kn,Gn+=Kn}else lT.each(Tn,(function(Tn,Qn){var Kn=IT(Qn,Un,Dn);if(Kn){var $n=getStrokeOffsetForBBox(Qn);Vn=Math.min(Vn,Kn.x-$n),zn=Math.min(zn,Kn.y-$n),1===Qn.nodeType&&(Hn=Math.max(Hn,Kn.x+Kn.width+$n),Gn=Math.max(Gn,Kn.y+Kn.height+$n))}}));return Qn.x=Vn,Qn.y=zn,Qn.width=Hn-Vn,Qn.height=Gn-zn,Qn},FT=function getVisibleElements(Tn){Tn||(Tn=lT(dT.getSVGContent()).children());var Un=[];return lT(Tn).children().each((function(Tn,Dn){Dn.getBBox&&Un.push(Dn)})),Un.reverse()},UT=function getStrokedBBoxDefaultVisible(Tn){return Tn||(Tn=FT()),OT(Tn,dT.addSVGElementFromJson,dT.pathActions)},MT=function getRotationAngleFromTransformList(Tn,Un){if(!Tn)return 0;for(var Dn=Tn.numberOfItems,Qn=0;Qn<Dn;++Qn){var Hn=Tn.getItem(Qn);if(4===Hn.type)return Un?Hn.angle*Math.PI/180:Hn.angle}return 0},RT=function getRotationAngle(Tn,Un){var Dn=Tn||dT.getSelectedElements()[0],Qn=OE(Dn);return MT(Qn,Un)},DT=function getRefElem(Tn){return jT(xT(Tn).substr(1))},jT=function supportsSelectors(){return QA}()?function(Tn){return gT.querySelector("#"+Tn)}:function supportsXpath(){return HA}()?function(Tn){return hT.evaluate('svg:svg[@id="svgroot"]//svg:*[@id="'+Tn+'"]',pT,(function(){return Zf.SVG}),9,null).singleNodeValue}:function(Tn){return lT(gT).find("[id=".concat(Tn,"]"))[0]},QT=function assignAttributes(Tn,Un,Dn,Qn){for(var Hn=0,Gn=Object.entries(Un);Hn<Gn.length;Hn++){var Vn=_slicedToArray(Gn[Hn],2),zn=Vn[0],Kn=Vn[1],$n="xml:"===zn.substr(0,4)?Zf.XML:"xlink:"===zn.substr(0,6)?Zf.XLINK:null;zT(Kn)?$n?Tn.removeAttributeNS($n,zn):Tn.removeAttribute(zn):$n?Tn.setAttributeNS($n,zn,Kn):Qn?lA(Tn,zn,Kn):Tn.setAttribute(zn,Kn)}},HT=function cleanupElement(Tn){var Un={"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"===Tn.nodeName&&(delete Un.rx,delete Un.ry),Object.entries(Un).forEach((function(Un){var Dn=_slicedToArray(Un,2),Qn=Dn[0],Hn=Dn[1];Tn.getAttribute(Qn)===String(Hn)&&Tn.removeAttribute(Qn)}))},GT=function snapToGrid(Tn){var Un=dT.getBaseUnit(),Dn=dT.getSnappingStep();return"px"!==Un&&(Dn*=oA()[Un]),Tn=Math.round(Tn/Dn)*Dn},VT=function preventClickDefault(Tn){lT(Tn).click((function(Tn){Tn.preventDefault()}))},zT=function isNullish(Tn){return null==Tn},KT={BEFORE_APPLY:"before_apply",AFTER_APPLY:"after_apply",BEFORE_UNAPPLY:"before_unapply",AFTER_UNAPPLY:"after_unapply"},qT=function(){function Command(){_classCallCheck(this,Command)}return _createClass(Command,[{key:"getText",value:function getText(){return this.text}},{key:"apply",value:function apply(Tn,Un){Tn&&Tn.handleHistoryEvent(KT.BEFORE_APPLY,this),Un(Tn),Tn&&Tn.handleHistoryEvent(KT.AFTER_APPLY,this)}},{key:"unapply",value:function unapply(Tn,Un){Tn&&Tn.handleHistoryEvent(KT.BEFORE_UNAPPLY,this),Un(),Tn&&Tn.handleHistoryEvent(KT.AFTER_UNAPPLY,this)}},{key:"elements",value:function elements(){return[this.elem]}},{key:"type",value:function type(){return this.constructor.name}}]),Command}(),$T=function(Tn){_inherits(MoveElementCommand,qT);var Un=_createSuper(MoveElementCommand);function MoveElementCommand(Tn,Dn,Qn,Hn){var Gn;return _classCallCheck(this,MoveElementCommand),(Gn=Un.call(this)).elem=Tn,Gn.text=Hn?"Move "+Tn.tagName+" to "+Hn:"Move "+Tn.tagName,Gn.oldNextSibling=Dn,Gn.oldParent=Qn,Gn.newNextSibling=Tn.nextSibling,Gn.newParent=Tn.parentNode,Gn}return _createClass(MoveElementCommand,[{key:"apply",value:function apply(Tn){var Un=this;_get(_getPrototypeOf(MoveElementCommand.prototype),"apply",this).call(this,Tn,(function(){Un.elem=Un.newParent.insertBefore(Un.elem,Un.newNextSibling)}))}},{key:"unapply",value:function unapply(Tn){var Un=this;_get(_getPrototypeOf(MoveElementCommand.prototype),"unapply",this).call(this,Tn,(function(){Un.elem=Un.oldParent.insertBefore(Un.elem,Un.oldNextSibling)}))}}]),MoveElementCommand}(),WT=function(Tn){_inherits(InsertElementCommand,qT);var Un=_createSuper(InsertElementCommand);function InsertElementCommand(Tn,Dn){var Qn;return _classCallCheck(this,InsertElementCommand),(Qn=Un.call(this)).elem=Tn,Qn.text=Dn||"Create "+Tn.tagName,Qn.parent=Tn.parentNode,Qn.nextSibling=Qn.elem.nextSibling,Qn}return _createClass(InsertElementCommand,[{key:"apply",value:function apply(Tn){var Un=this;_get(_getPrototypeOf(InsertElementCommand.prototype),"apply",this).call(this,Tn,(function(){Un.elem=Un.parent.insertBefore(Un.elem,Un.nextSibling)}))}},{key:"unapply",value:function unapply(Tn){var Un=this;_get(_getPrototypeOf(InsertElementCommand.prototype),"unapply",this).call(this,Tn,(function(){Un.parent=Un.elem.parentNode,Un.elem.remove()}))}}]),InsertElementCommand}(),XT=function(Tn){_inherits(RemoveElementCommand,qT);var Un=_createSuper(RemoveElementCommand);function RemoveElementCommand(Tn,Dn,Qn,Hn){var Gn;return _classCallCheck(this,RemoveElementCommand),(Gn=Un.call(this)).elem=Tn,Gn.text=Hn||"Delete "+Tn.tagName,Gn.nextSibling=Dn,Gn.parent=Qn,IE(Tn),Gn}return _createClass(RemoveElementCommand,[{key:"apply",value:function apply(Tn){var Un=this;_get(_getPrototypeOf(RemoveElementCommand.prototype),"apply",this).call(this,Tn,(function(){IE(Un.elem),Un.parent=Un.elem.parentNode,Un.elem.remove()}))}},{key:"unapply",value:function unapply(Tn){var Un=this;_get(_getPrototypeOf(RemoveElementCommand.prototype),"unapply",this).call(this,Tn,(function(){IE(Un.elem),zT(Un.nextSibling)&&window.console&&console.error("Reference element was lost"),Un.parent.insertBefore(Un.elem,Un.nextSibling)}))}}]),RemoveElementCommand}(),YT=function(Tn){_inherits(ChangeElementCommand,qT);var Un=_createSuper(ChangeElementCommand);function ChangeElementCommand(Tn,Dn,Qn){var Hn;for(var Gn in _classCallCheck(this,ChangeElementCommand),(Hn=Un.call(this)).elem=Tn,Hn.text=Qn?"Change "+Tn.tagName+" "+Qn:"Change "+Tn.tagName,Hn.newValues={},Hn.oldValues=Dn,Dn)Hn.newValues[Gn]="#text"===Gn?Tn.textContent:"#href"===Gn?ST(Tn):Tn.getAttribute(Gn);return Hn}return _createClass(ChangeElementCommand,[{key:"apply",value:function apply(Tn){var Un=this;_get(_getPrototypeOf(ChangeElementCommand.prototype),"apply",this).call(this,Tn,(function(){var Tn=!1;if(Object.entries(Un.newValues).forEach((function(Dn){var Qn=_slicedToArray(Dn,2),Hn=Qn[0],Gn=Qn[1];Gn?"#text"===Hn?Un.elem.textContent=Gn:"#href"===Hn?CT(Un.elem,Gn):Un.elem.setAttribute(Hn,Gn):"#text"===Hn?Un.elem.textContent="":(Un.elem.setAttribute(Hn,""),Un.elem.removeAttribute(Hn)),"transform"===Hn&&(Tn=!0)})),!Tn){var Dn=RT(Un.elem);if(Dn){var Qn=Un.elem.getBBox(),Hn=["rotate(",Dn," ",Qn.x+Qn.width/2,",",Qn.y+Qn.height/2,")"].join("");Hn!==Un.elem.getAttribute("transform")&&Un.elem.setAttribute("transform",Hn)}}}))}},{key:"unapply",value:function unapply(Tn){var Un=this;_get(_getPrototypeOf(ChangeElementCommand.prototype),"unapply",this).call(this,Tn,(function(){var Tn=!1;if(Object.entries(Un.oldValues).forEach((function(Dn){var Qn=_slicedToArray(Dn,2),Hn=Qn[0],Gn=Qn[1];Gn?"#text"===Hn?Un.elem.textContent=Gn:"#href"===Hn?CT(Un.elem,Gn):Un.elem.setAttribute(Hn,Gn):"#text"===Hn?Un.elem.textContent="":Un.elem.removeAttribute(Hn),"transform"===Hn&&(Tn=!0)})),!Tn){var Dn=RT(Un.elem);if(Dn){var Qn=Un.elem.getBBox(),Hn=["rotate(",Dn," ",Qn.x+Qn.width/2,",",Qn.y+Qn.height/2,")"].join("");Hn!==Un.elem.getAttribute("transform")&&Un.elem.setAttribute("transform",Hn)}}IE(Un.elem)}))}}]),ChangeElementCommand}(),JT=function(Tn){_inherits(BatchCommand,qT);var Un=_createSuper(BatchCommand);function BatchCommand(Tn){var Dn;return _classCallCheck(this,BatchCommand),(Dn=Un.call(this)).text=Tn||"Batch Command",Dn.stack=[],Dn}return _createClass(BatchCommand,[{key:"apply",value:function apply(Tn){var Un=this;_get(_getPrototypeOf(BatchCommand.prototype),"apply",this).call(this,Tn,(function(){Un.stack.forEach((function(Un){console.assert(Un,"stack item should not be null"),Un&&Un.apply(Tn)}))}))}},{key:"unapply",value:function unapply(Tn){var Un=this;_get(_getPrototypeOf(BatchCommand.prototype),"unapply",this).call(this,Tn,(function(){Un.stack.reverse().forEach((function(Un){console.assert(Un,"stack item should not be null"),Un&&Un.unapply(Tn)}))}))}},{key:"elements",value:function elements(){for(var Tn=[],Un=this.stack.length;Un--;)if(this.stack[Un])for(var Dn=this.stack[Un].elements(),Qn=Dn.length;Qn--;)Tn.includes(Dn[Qn])||Tn.push(Dn[Qn]);return Tn}},{key:"addSubCommand",value:function addSubCommand(Tn){console.assert(null!==Tn,"cmd should not be null"),this.stack.push(Tn)}},{key:"isEmpty",value:function isEmpty(){return!this.stack.length}}]),BatchCommand}(),ZT=function(){function UndoManager(Tn){_classCallCheck(this,UndoManager),this.handler_=Tn||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(Tn){this.undoStackPointer<this.undoStack.length&&this.undoStack.length>0&&(this.undoStack=this.undoStack.splice(0,this.undoStackPointer)),this.undoStack.push(Tn),this.undoStackPointer=this.undoStack.length}},{key:"beginUndoableChange",value:function beginUndoableChange(Tn,Un){for(var Dn=++this.undoChangeStackPointer,Qn=Un.length,Hn=new Array(Qn),Gn=new Array(Qn);Qn--;){var Vn=Un[Qn];zT(Vn)||(Gn[Qn]=Vn,Hn[Qn]=Vn.getAttribute(Tn))}this.undoableChangeStack[Dn]={attrName:Tn,oldValues:Hn,elements:Gn}}},{key:"finishUndoableChange",value:function finishUndoableChange(){for(var Tn=this.undoChangeStackPointer--,Un=this.undoableChangeStack[Tn],Dn=Un.attrName,Qn=new JT("Change "+Dn),Hn=Un.elements.length;Hn--;){var Gn=Un.elements[Hn];if(!zT(Gn)){var Vn={};Vn[Dn]=Un.oldValues[Hn],Vn[Dn]!==Gn.getAttribute(Dn)&&Qn.addSubCommand(new YT(Gn,Vn,Dn))}}return this.undoableChangeStack[Tn]=null,Qn}}]),UndoManager}(),eN=Object.freeze({__proto__:null,HistoryEventTypes:KT,Command:qT,MoveElementCommand:$T,InsertElementCommand:WT,RemoveElementCommand:XT,ChangeElementCommand:YT,BatchCommand:JT,UndoManager:ZT}),tN=jQuery,nN=null,rN=null,iN=function insertItemBeforeMethod(Tn,Un,Dn){var Qn=Tn.pathSegList;if(function supportsPathInsertItemBefore(){return VA}())Qn.insertItemBefore(Un,Dn);else{for(var Hn=Qn.numberOfItems,Gn=[],Vn=0;Vn<Hn;Vn++){var zn=Qn.getItem(Vn);Gn.push(zn)}Qn.clear();for(var Kn=0;Kn<Hn;Kn++)Kn===Dn&&Qn.appendItem(Un),Qn.appendItem(Gn[Kn])}},oN=function ptObjToArrMethod(Tn,Un){return nN.getSegData()[Tn].map((function(Tn){return Un[Tn]}))},aN=function getGripPtMethod(Tn,Un){var Dn=Tn.path,Qn={x:Un?Un.x:Tn.item.x,y:Un?Un.y:Tn.item.y};Dn.matrix&&(Qn=jE(Qn.x,Qn.y,Dn.matrix));var Hn=(rN=nN.getEditorContext()).getCurrentZoom();return Qn.x*=Hn,Qn.y*=Hn,Qn},sN=function getGripContainerMethod(){var Tn=jT("pathpointgrip_container");Tn||((Tn=jT("selectorParentGroup").appendChild(document.createElementNS(Zf.SVG,"g"))).id="pathpointgrip_container");return Tn},lN=function addPointGripMethod(Tn,Un,Dn){var Qn=sN(),Hn=jT("pathpointgrip_"+Tn);if(!Hn){Hn=document.createElementNS(Zf.SVG,"circle");var Gn={id:"pathpointgrip_"+Tn,display:"none",r:4,fill:"#0FF",stroke:"#00F","stroke-width":2,cursor:"move",style:"pointer-events:all"},Vn=nN.getUIStrings();"pathNodeTooltip"in Vn&&(Gn["xlink:title"]=Vn.pathNodeTooltip),QT(Hn,Gn),Hn=Qn.appendChild(Hn),tN("#pathpointgrip_"+Tn).dblclick((function(){var Tn=nN.getPathObj();Tn&&Tn.setSegType()}))}return Un&&Dn&&QT(Hn,{cx:Un,cy:Dn,display:"inline"}),Hn},cN=function addCtrlGripMethod(Tn){var Un=jT("ctrlpointgrip_"+Tn);if(Un)return Un;Un=document.createElementNS(Zf.SVG,"circle");var Dn={id:"ctrlpointgrip_"+Tn,display:"none",r:4,fill:"#0FF",stroke:"#55F","stroke-width":1,cursor:"move",style:"pointer-events:all"},Qn=nN.getUIStrings();return"pathCtrlPtTooltip"in Qn&&(Dn["xlink:title"]=Qn.pathCtrlPtTooltip),QT(Un,Dn),sN().append(Un),Un},uN=function getCtrlLineMethod(Tn){var Un=jT("ctrlLine_"+Tn);return Un||(Un=document.createElementNS(Zf.SVG,"line"),QT(Un,{id:"ctrlLine_"+Tn,stroke:"#555","stroke-width":1,style:"pointer-events:none"}),sN().append(Un),Un)},dN=function getControlPointsMethod(Tn){var Un=Tn.item,Dn=Tn.index;if(!("x1"in Un)||!("x2"in Un))return null;var Qn={};sN();for(var Hn=[nN.getPathObj().segs[Dn-1].item,Un],Gn=1;Gn<3;Gn++){var Vn=Dn+"c"+Gn,zn=Qn["c"+Gn+"_line"]=uN(Vn),Kn=aN(Tn,{x:Un["x"+Gn],y:Un["y"+Gn]}),$n=aN(Tn,{x:Hn[Gn-1].x,y:Hn[Gn-1].y});QT(zn,{x1:Kn.x,y1:Kn.y,x2:$n.x,y2:$n.y,display:"inline"}),Qn["c"+Gn+"_line"]=zn;var Wn=Qn["c"+Gn]=cN(Vn);QT(Wn,{cx:Kn.x,cy:Kn.y,display:"inline"}),Qn["c"+Gn]=Wn}return Qn},hN=function replacePathSegMethod(Tn,Un,Dn,Qn){var Hn=nN.getPathObj(),Gn=Qn||Hn.elem,Vn=Gn["createSVGPathSeg"+nN.getPathFuncs()[Tn]].apply(Gn,_toConsumableArray(Dn));if(function supportsPathReplaceItem(){return GA}())Gn.pathSegList.replaceItem(Vn,Un);else{for(var zn=Gn.pathSegList,Kn=zn.numberOfItems,$n=[],Wn=0;Wn<Kn;Wn++){var Xn=zn.getItem(Wn);$n.push(Xn)}zn.clear();for(var Yn=0;Yn<Kn;Yn++)Yn===Un?zn.appendItem(Vn):zn.appendItem($n[Yn])}},pN=function getSegSelectorMethod(Tn,Un){var Dn=Tn.index,Qn=jT("segline_"+Dn);if(!Qn){var Hn=sN();Qn=document.createElementNS(Zf.SVG,"path"),QT(Qn,{id:"segline_"+Dn,display:"none",fill:"none",stroke:"#0FF","stroke-width":2,style:"pointer-events:none",d:"M0,0 0,0"}),Hn.append(Qn)}if(Un){var Gn=Tn.prev;if(!Gn)return Qn.setAttribute("display","none"),Qn;var Vn=aN(Gn);hN(2,0,[Vn.x,Vn.y],Qn);for(var zn=oN(Tn.type,Tn.item),Kn=0;Kn<zn.length;Kn+=2){var $n=aN(Tn,{x:zn[Kn],y:zn[Kn+1]});zn[Kn]=$n.x,zn[Kn+1]=$n.y}hN(Tn.type,1,zn,Qn)}return Qn},gN=function(){function Segment(Tn,Un){_classCallCheck(this,Segment),this.selected=!1,this.index=Tn,this.item=Un,this.type=Un.pathSegType,this.ctrlpts=[],this.ptgrip=null,this.segsel=null}return _createClass(Segment,[{key:"showCtrlPts",value:function showCtrlPts(Tn){for(var Un in this.ctrlpts)({}).hasOwnProperty.call(this.ctrlpts,Un)&&this.ctrlpts[Un].setAttribute("display",Tn?"inline":"none")}},{key:"selectCtrls",value:function selectCtrls(Tn){tN("#ctrlpointgrip_"+this.index+"c1, #ctrlpointgrip_"+this.index+"c2").attr("fill",Tn?"#0FF":"#EEE")}},{key:"show",value:function show(Tn){this.ptgrip&&(this.ptgrip.setAttribute("display",Tn?"inline":"none"),this.segsel.setAttribute("display",Tn?"inline":"none"),this.showCtrlPts(Tn))}},{key:"select",value:function select(Tn){this.ptgrip&&(this.ptgrip.setAttribute("stroke",Tn?"#0FF":"#00F"),this.segsel.setAttribute("display",Tn?"inline":"none"),this.ctrlpts&&this.selectCtrls(Tn),this.selected=Tn)}},{key:"addGrip",value:function addGrip(){this.ptgrip=function getPointGripMethod(Tn,Un){var Dn=Tn.index,Qn=lN(Dn);if(Un){var Hn=aN(Tn);QT(Qn,{cx:Hn.x,cy:Hn.y,display:"inline"})}return Qn}(this,!0),this.ctrlpts=dN(this),this.segsel=pN(this,!0)}},{key:"update",value:function update(Tn){if(this.ptgrip){var Un=aN(this);if(QT(this.ptgrip,{cx:Un.x,cy:Un.y}),pN(this,!0),this.ctrlpts){if(Tn){var Dn=nN.getPathObj();this.item=Dn.elem.pathSegList.getItem(this.index),this.type=this.item.pathSegType}dN(this)}}}},{key:"move",value:function move(Tn,Un){var Dn=this.item,Qn=this.ctrlpts?[Dn.x+=Tn,Dn.y+=Un,Dn.x1,Dn.y1,Dn.x2+=Tn,Dn.y2+=Un]:[Dn.x+=Tn,Dn.y+=Un];if(hN(this.type,this.index,10===this.type?oN(this.type,Dn):Qn),this.next&&this.next.ctrlpts){var Hn=this.next.item,Gn=[Hn.x,Hn.y,Hn.x1+=Tn,Hn.y1+=Un,Hn.x2,Hn.y2];hN(this.next.type,this.next.index,Gn)}if(this.mate){var Vn=this.mate.item,zn=[Vn.x+=Tn,Vn.y+=Un];hN(this.mate.type,this.mate.index,zn)}this.update(!0),this.next&&this.next.update(!0)}},{key:"setLinked",value:function setLinked(Tn){var Un,Dn,Qn;if(2===Tn){if(Dn=1,!(Un=this.next))return;Qn=this.item}else{if(Dn=2,!(Un=this.prev))return;Qn=Un.item}var Hn=Un.item;Hn["x"+Dn]=Qn.x+(Qn.x-this.item["x"+Tn]),Hn["y"+Dn]=Qn.y+(Qn.y-this.item["y"+Tn]);var Gn=[Hn.x,Hn.y,Hn.x1,Hn.y1,Hn.x2,Hn.y2];hN(Un.type,Un.index,Gn),Un.update(!0)}},{key:"moveCtrl",value:function moveCtrl(Tn,Un,Dn){var Qn=this.item;Qn["x"+Tn]+=Un,Qn["y"+Tn]+=Dn;var Hn=[Qn.x,Qn.y,Qn.x1,Qn.y1,Qn.x2,Qn.y2];hN(this.type,this.index,Hn),this.update(!0)}},{key:"setType",value:function setType(Tn,Un){hN(Tn,this.index,Un),this.type=Tn;var Dn=nN.getPathObj();this.item=Dn.elem.pathSegList.getItem(this.index),this.showCtrlPts(6===Tn),this.ctrlpts=dN(this),this.update(!0)}}]),Segment}(),fN=function(){function Path(Tn){if(_classCallCheck(this,Path),!Tn||"path"!==Tn.tagName)throw new Error("svgedit.path.Path constructed without a <path> element");this.elem=Tn,this.segs=[],this.selected_pts=[],nN.setPathObj(this),this.init()}return _createClass(Path,[{key:"init",value:function init(){tN(sN()).find("*").each((function(){tN(this).attr("display","none")}));var Tn=this.elem.pathSegList,Un=Tn.numberOfItems;this.segs=[],this.selected_pts=[],this.first_seg=null;for(var Dn=0;Dn<Un;Dn++){var Qn=Tn.getItem(Dn),Hn=new gN(Dn,Qn);Hn.path=this,this.segs.push(Hn)}for(var Gn=this.segs,Vn=null,zn=0;zn<Un;zn++){var Kn=Gn[zn],$n=zn+1>=Un?null:Gn[zn+1],Wn=zn-1<0?null:Gn[zn-1];if(2===Kn.type){if(Wn&&1!==Wn.type){var Xn=Gn[Vn];Xn.next=Gn[Vn+1],Xn.next.prev=Xn,Xn.addGrip()}Vn=zn}else if($n&&1===$n.type)Kn.next=Gn[Vn+1],Kn.next.prev=Kn,Kn.mate=Gn[Vn],Kn.addGrip(),zT(this.first_seg)&&(this.first_seg=Kn);else if($n)1!==Kn.type&&(Kn.addGrip(),$n&&2!==$n.type&&(Kn.next=$n,Kn.next.prev=Kn));else if(1!==Kn.type){var Yn=Gn[Vn];Yn.next=Gn[Vn+1],Yn.next.prev=Yn,Yn.addGrip(),Kn.addGrip(),this.first_seg||(this.first_seg=Gn[Vn])}}return this}},{key:"eachSeg",value:function eachSeg(Tn){for(var Un=this.segs.length,Dn=0;Dn<Un;Dn++){if(!1===Tn.call(this.segs[Dn],Dn))break}}},{key:"addSeg",value:function addSeg(Tn){var Un=this.segs[Tn];if(Un.prev){var Dn,Qn,Hn,Gn=Un.prev;switch(Un.item.pathSegType){case 4:Qn=(Un.item.x+Gn.item.x)/2,Hn=(Un.item.y+Gn.item.y)/2,Dn=this.elem.createSVGPathSegLinetoAbs(Qn,Hn);break;case 6:var Vn=(Gn.item.x+Un.item.x1)/2,zn=(Un.item.x1+Un.item.x2)/2,Kn=(Un.item.x2+Un.item.x)/2,$n=(Vn+zn)/2,Wn=(zn+Kn)/2;Qn=($n+Wn)/2;var Xn=(Gn.item.y+Un.item.y1)/2,Yn=(Un.item.y1+Un.item.y2)/2,Jn=(Un.item.y2+Un.item.y)/2,Zn=(Xn+Yn)/2,er=(Yn+Jn)/2;Hn=(Zn+er)/2,Dn=this.elem.createSVGPathSegCurvetoCubicAbs(Qn,Hn,Vn,Xn,$n,Zn);var tr=[Un.item.x,Un.item.y,Wn,er,Kn,Jn];hN(Un.type,Tn,tr)}iN(this.elem,Dn,Tn)}}},{key:"deleteSeg",value:function deleteSeg(Tn){var Un=this.segs[Tn],Dn=this.elem.pathSegList;Un.show(!1);var Qn=Un.next;if(Un.mate){var Hn=[Qn.item.x,Qn.item.y];hN(2,Qn.index,Hn),hN(4,Un.index,Hn),Dn.removeItem(Un.mate.index)}else if(Un.prev)Dn.removeItem(Tn);else{var Gn=[Qn.item.x,Qn.item.y];hN(2,Un.next.index,Gn),Dn.removeItem(Tn)}}},{key:"removePtFromSelection",value:function removePtFromSelection(Tn){var Un=this.selected_pts.indexOf(Tn);-1!==Un&&(this.segs[Tn].select(!1),this.selected_pts.splice(Un,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(Tn){return this.eachSeg((function(){this.show(Tn)})),Tn&&this.selectPt(this.first_seg.index),this}},{key:"movePts",value:function movePts(Tn,Un){for(var Dn=this.selected_pts.length;Dn--;){this.segs[this.selected_pts[Dn]].move(Tn,Un)}}},{key:"moveCtrl",value:function moveCtrl(Tn,Un){var Dn=this.segs[this.selected_pts[0]];Dn.moveCtrl(this.dragctrl,Tn,Un),nN.getLinkControlPts()&&Dn.setLinked(this.dragctrl)}},{key:"setSegType",value:function setSegType(Tn){this.storeD();for(var Un,Dn=this.selected_pts.length;Dn--;){var Qn=this.selected_pts[Dn],Hn=this.segs[Qn],Gn=Hn.prev;if(Gn){if(!Tn)Un="Toggle Path Segment Type",Tn=6===Hn.type?4:6;Tn=Number(Tn);var Vn=Hn.item.x,zn=Hn.item.y,Kn=Gn.item.x,$n=Gn.item.y,Wn=void 0;switch(Tn){case 6:if(Hn.olditem){var Xn=Hn.olditem;Wn=[Vn,zn,Xn.x1,Xn.y1,Xn.x2,Xn.y2]}else{var Yn=Vn-Kn,Jn=zn-$n;Wn=[Vn,zn,Kn+Yn/3,$n+Jn/3,Vn-Yn/3,zn-Jn/3]}break;case 4:Wn=[Vn,zn],Hn.olditem=Hn.item}Hn.setType(Tn,Wn)}}nN.getPathObj().endChanges(Un)}},{key:"selectPt",value:function selectPt(Tn,Un){this.clearSelection(),zT(Tn)&&this.eachSeg((function(Un){this.prev&&(Tn=Un)})),this.addPtsToSelection(Tn),Un&&(this.dragctrl=Un,nN.getLinkControlPts()&&this.segs[Tn].setLinked(Un))}},{key:"update",value:function update(){var Tn=this.elem;return RT(Tn)?(this.matrix=KE(Tn),this.imatrix=this.matrix.inverse()):(this.matrix=null,this.imatrix=null),this.eachSeg((function(Un){this.item=Tn.pathSegList.getItem(Un),this.update()})),this}},{key:"endChanges",value:function endChanges(Tn){XA()&&rN.resetD(this.elem);var Un=new YT(this.elem,{d:this.last_d},Tn);rN.endChanges({cmd:Un,elem:this.elem})}},{key:"addPtsToSelection",value:function addPtsToSelection(Tn){var Un=this;Array.isArray(Tn)||(Tn=[Tn]),Tn.forEach((function(Tn){Un.segs[Tn].ptgrip&&!Un.selected_pts.includes(Tn)&&Tn>=0&&Un.selected_pts.push(Tn)})),this.selected_pts.sort();var Dn=this.selected_pts.length,Qn=[];for(Qn.length=Dn;Dn--;){var Hn=this.selected_pts[Dn],Gn=this.segs[Hn];Gn.select(!0),Qn[Dn]=Gn.ptgrip}var Vn=Path.subpathIsClosed(this.selected_pts[0]);rN.addPtsToSelection({grips:Qn,closedSubpath:Vn})}}],[{key:"subpathIsClosed",value:function subpathIsClosed(Tn){var Un=!1;return nN.getPathObj().eachSeg((function(Dn){return Dn<=Tn||2!==this.type&&(1!==this.type||(Un=!0,!1))})),Un}}]),Path}(),AN=jQuery,mN=null,vN=null,yN=null,_N=function init(Tn){mN=Tn};function pathDSegment(Tn,Un,Dn,Qn){AN.each(Un,(function(Tn,Dn){Un[Tn]=aA(Dn)}));var Hn=Tn+Un.join(" ");return Dn&&(Hn+=" "+Dn.join(" ")),Qn&&(Hn+=" "+aA(Qn)),Hn}var bN,wN,xN,SN,CN,kN=(xN=!1,SN=null,CN=!1,{mouseDown:function mouseDown(Tn,Un,Dn,Qn){var Hn;if("path"!==(vN=mN.getEditorContext()).getCurrentMode()){if(yN){var Gn;if(yN.storeD(),"pathpointgrip_"===(Hn=Tn.target.id).substr(0,14)){Gn=yN.cur_pt=Number.parseInt(Hn.substr(14)),yN.dragging=[Dn,Qn];var Vn=yN.segs[Gn];Tn.shiftKey?Vn.selected?yN.removePtFromSelection(Gn):yN.addPtsToSelection(Gn):((yN.selected_pts.length<=1||!Vn.selected)&&yN.clearSelection(),yN.addPtsToSelection(Gn))}else if(Hn.startsWith("ctrlpointgrip_")){yN.dragging=[Dn,Qn];var zn=Hn.split("_")[1].split("c");Gn=Number(zn[0]);var Kn=Number(zn[1]);yN.selectPt(Gn,Kn)}if(!yN.dragging){var $n=vN.getRubberBox();zT($n)&&($n=vN.setRubberBox(vN.selectorManager.getRubberBandBox())),Wn=vN.getCurrentZoom(),QT($n,{x:Dn*Wn,y:Qn*Wn,width:0,height:0,display:"inline"})}}}else{var Wn,Xn=Dn,Yn=Qn,Jn=Xn/(Wn=vN.getCurrentZoom()),Zn=Yn/Wn,er=jT("path_stretch_line");bN=[Jn,Zn],vN.getGridSnapping()&&(Jn=GT(Jn),Zn=GT(Zn),Xn=GT(Xn),Yn=GT(Yn)),er||(er=document.createElementNS(Zf.SVG,"path"),QT(er,{id:"path_stretch_line",stroke:"#22C","stroke-width":"0.5",fill:"none"}),er=jT("selectorParentGroup").appendChild(er)),er.setAttribute("display","inline");var tr,nr=vN.getDrawnPath();if(nr){for(var rr=nr.pathSegList,ir=rr.numberOfItems,or=6/Wn,ar=!1;ir;){ir--;var sr=rr.getItem(ir),lr=sr.x,cr=sr.y;if(Jn>=lr-or&&Jn<=lr+or&&Zn>=cr-or&&Zn<=cr+or){ar=!0;break}}Hn=vN.getId(),mN.removePath_(Hn);var ur,dr,hr=jT(Hn),pr=rr.numberOfItems;if(ar){if(ir<=1&&pr>=2){var gr=rr.getItem(0).x,fr=rr.getItem(0).y;ur=4===(dr=er.pathSegList.getItem(1)).pathSegType?nr.createSVGPathSegLinetoAbs(gr,fr):nr.createSVGPathSegCurvetoCubicAbs(gr,fr,dr.x1/Wn,dr.y1/Wn,gr,fr);var Ar=nr.createSVGPathSegClosePath();rr.appendItem(ur),rr.appendItem(Ar)}else if(pr<3)return!1;if(AN(er).remove(),vN.setDrawnPath(null),vN.setStarted(!1),xN){yN.matrix&&vN.remapElement(hr,{},yN.matrix.inverse());var mr=hr.getAttribute("d"),vr=AN(yN.elem).attr("d");return AN(yN.elem).attr("d",vr+mr),AN(hr).remove(),yN.matrix&&mN.recalcRotatedPath(),_N(),kN.toEditMode(yN.elem),yN.selectPt(),!1}}else{if(!AN.contains(vN.getContainer(),vN.getMouseTarget(Tn)))return!1;var yr=nr.pathSegList.numberOfItems,_r=nr.pathSegList.getItem(yr-1),br=_r.x,wr=_r.y;if(Tn.shiftKey){var xr=qE(br,wr,Jn,Zn);Jn=xr.x,Zn=xr.y}ur=4===(dr=er.pathSegList.getItem(1)).pathSegType?nr.createSVGPathSegLinetoAbs(vN.round(Jn),vN.round(Zn)):nr.createSVGPathSegCurvetoCubicAbs(vN.round(Jn),vN.round(Zn),dr.x1/Wn,dr.y1/Wn,dr.x2/Wn,dr.y2/Wn),nr.pathSegList.appendItem(ur),Jn*=Wn,Zn*=Wn,er.setAttribute("d",["M",Jn,Zn,Jn,Zn].join(" ")),tr=yr,xN&&(tr+=yN.segs.length),mN.addPointGrip(tr,Jn,Zn)}}else{var Sr="M"+Jn+","+Zn+" ";vN.setDrawnPath(vN.addSVGElementFromJson({element:"path",curStyles:!0,attr:{d:Sr,id:vN.getNextId(),opacity:vN.getOpacity()/2}})),er.setAttribute("d",["M",Xn,Yn,Xn,Yn].join(" ")),tr=xN?yN.segs.length:0,mN.addPointGrip(tr,Xn,Yn)}}},mouseMove:function mouseMove(Tn,Un){var Dn=(vN=mN.getEditorContext()).getCurrentZoom();CN=!0;var Qn=vN.getDrawnPath();if("path"!==vN.getCurrentMode())if(yN.dragging){var Hn=mN.getPointFromGrip({x:yN.dragging[0],y:yN.dragging[1]},yN),Gn=mN.getPointFromGrip({x:Tn,y:Un},yN),Vn=Gn.x-Hn.x,zn=Gn.y-Hn.y;yN.dragging=[Tn,Un],yN.dragctrl?yN.moveCtrl(Vn,zn):yN.movePts(Vn,zn)}else yN.selected_pts=[],yN.eachSeg((function(Tn){var Un=this;if(Un.next||Un.prev){var Dn=vN.getRubberBox().getBBox(),Qn=mN.getGripPt(Un),Hn={x:Qn.x,y:Qn.y,width:0,height:0},Gn=$E(Dn,Hn);this.select(Gn),Gn&&yN.selected_pts.push(Un.index)}}));else{if(!Qn)return;var Kn=Qn.pathSegList,$n=Kn.numberOfItems-1;if(bN){var Wn=mN.addCtrlGrip("1c1"),Xn=mN.addCtrlGrip("0c2");Wn.setAttribute("cx",Tn),Wn.setAttribute("cy",Un),Wn.setAttribute("display","inline");var Yn=bN[0],Jn=bN[1],Zn=Yn+(Yn-Tn/Dn),er=Jn+(Jn-Un/Dn);Xn.setAttribute("cx",Zn*Dn),Xn.setAttribute("cy",er*Dn),Xn.setAttribute("display","inline");var tr=mN.getCtrlLine(1);if(QT(tr,{x1:Tn,y1:Un,x2:Zn*Dn,y2:er*Dn,display:"inline"}),0===$n)wN=[Tn,Un];else{var nr=Kn.getItem($n-1),rr=nr.x,ir=nr.y;6===nr.pathSegType?(rr+=rr-nr.x2,ir+=ir-nr.y2):wN&&(rr=wN[0]/Dn,ir=wN[1]/Dn),mN.replacePathSeg(6,$n,[Yn,Jn,rr,ir,Zn,er],Qn)}}else{var or=jT("path_stretch_line");if(or){var ar=Kn.getItem($n);if(6===ar.pathSegType){var sr=ar.x+(ar.x-ar.x2),lr=ar.y+(ar.y-ar.y2);mN.replacePathSeg(6,1,[Tn,Un,sr*Dn,lr*Dn,Tn,Un],or)}else wN?mN.replacePathSeg(6,1,[Tn,Un,wN[0],wN[1],Tn,Un],or):mN.replacePathSeg(4,1,[Tn,Un],or)}}}},mouseUp:function mouseUp(Tn,Un,Dn,Qn){var Hn=(vN=mN.getEditorContext()).getDrawnPath();if("path"===vN.getCurrentMode())return bN=null,Hn||(Un=jT(vN.getId()),vN.setStarted(!1),wN=null),{keep:!0,element:Un};var Gn=vN.getRubberBox();if(yN.dragging){var Vn=yN.cur_pt;yN.dragging=!1,yN.dragctrl=!1,yN.update(),CN&&yN.endChanges("Move path point(s)"),Tn.shiftKey||CN||yN.selectPt(Vn)}else Gn&&"none"!==Gn.getAttribute("display")?(Gn.setAttribute("display","none"),Gn.getAttribute("width")<=2&&Gn.getAttribute("height")<=2&&kN.toSelectMode(Tn.target)):kN.toSelectMode(Tn.target);CN=!1},toEditMode:function toEditMode(Tn){vN=mN.getEditorContext(),yN=mN.getPath_(Tn),vN.setCurrentMode("pathedit"),vN.clearSelection(),yN.show(!0).update(),yN.oldbbox=ET(yN.elem),xN=!1},toSelectMode:function toSelectMode(Tn){vN=mN.getEditorContext();var Un=Tn===yN.elem;vN.setCurrentMode("select"),yN.show(!1),SN=!1,vN.clearSelection(),yN.matrix&&mN.recalcRotatedPath(),Un&&(vN.call("selected",[Tn]),vN.addToSelection([Tn],!0))},addSubPath:function addSubPath(Tn){vN=mN.getEditorContext(),Tn?(vN.setCurrentMode("path"),xN=!0):(kN.clear(!0),kN.toEditMode(yN.elem))},select:function select(Tn){vN=mN.getEditorContext(),SN===Tn?(kN.toEditMode(Tn),vN.setCurrentMode("pathedit")):SN=Tn},reorient:function reorient(){var Tn=(vN=mN.getEditorContext()).getSelectedElements()[0];if(Tn&&0!==RT(Tn)){var Un=new JT("Reorient path"),Dn={d:Tn.getAttribute("d"),transform:Tn.getAttribute("transform")};Un.addSubCommand(new YT(Tn,Dn)),vN.clearSelection(),this.resetOrientation(Tn),vN.addCommandToHistory(Un),mN.getPath_(Tn).show(!1).matrix=null,this.clear(),vN.addToSelection([Tn],!0),vN.call("changed",vN.getSelectedElements())}},clear:function clear(Tn){var Un=(vN=mN.getEditorContext()).getDrawnPath();if(SN=null,Un){var Dn=jT(vN.getId());AN(jT("path_stretch_line")).remove(),AN(Dn).remove(),AN(jT("pathpointgrip_container")).find("*").attr("display","none"),wN=null,vN.setDrawnPath(null),vN.setStarted(!1)}else"pathedit"===vN.getCurrentMode()&&this.toSelectMode();yN&&yN.init().show(!1)},resetOrientation:function resetOrientation(Tn){if(zT(Tn)||"path"!==Tn.nodeName)return!1;var Un=OE(Tn),Dn=zE(Un).matrix;Un.clear(),Tn.removeAttribute("transform");for(var Qn=Tn.pathSegList,Hn=Qn.numberOfItems,Gn=function _loop(Un){var Hn=Qn.getItem(Un),Gn=Hn.pathSegType;if(1===Gn)return"continue";var Vn=[];AN.each(["",1,2],(function(Tn,Un){var Qn=Hn["x"+Un],Gn=Hn["y"+Un];if(void 0!==Qn&&void 0!==Gn){var zn=jE(Qn,Gn,Dn);Vn.splice(Vn.length,0,zn.x,zn.y)}})),mN.replacePathSeg(Gn,Un,Vn,Tn)},Vn=0;Vn<Hn;++Vn)Gn(Vn);mN.reorientGrads(Tn,Dn)},zoomChange:function zoomChange(){"pathedit"===(vN=mN.getEditorContext()).getCurrentMode()&&yN.update()},getNodePoint:function getNodePoint(){var Tn=yN.selected_pts.length?yN.selected_pts[0]:1,Un=yN.segs[Tn];return{x:Un.item.x,y:Un.item.y,type:Un.type}},linkControlPoints:function linkControlPoints(Tn){mN.setLinkControlPoints(Tn)},clonePathNode:function clonePathNode(){yN.storeD();for(var Tn=yN.selected_pts,Un=Tn.length,Dn=[];Un--;){var Qn=Tn[Un];yN.addSeg(Qn),Dn.push(Qn+Un),Dn.push(Qn+Un+1)}yN.init().addPtsToSelection(Dn),yN.endChanges("Clone path node(s)")},opencloseSubPath:function opencloseSubPath(){var Tn=yN.selected_pts;if(1===Tn.length){var Un,Dn,Qn=yN.elem,Hn=Qn.pathSegList,Gn=Tn[0],Vn=null,zn=null;if(yN.eachSeg((function(Tn){return 2===this.type&&Tn<=Gn&&(zn=this.item),Tn<=Gn||(2===this.type?(Vn=Tn,!1):1!==this.type||(Vn=!1,!1))})),zT(Vn)&&(Vn=yN.segs.length-1),!1!==Vn){var Kn=Qn.createSVGPathSegLinetoAbs(zn.x,zn.y),$n=Qn.createSVGPathSegClosePath();return Vn===yN.segs.length-1?(Hn.appendItem(Kn),Hn.appendItem($n)):(mN.insertItemBefore(Qn,$n,Vn),mN.insertItemBefore(Qn,Kn,Vn)),void yN.init().selectPt(Vn+1)}if(yN.segs[Gn].mate)return Hn.removeItem(Gn),Hn.removeItem(Gn),void yN.init().selectPt(Gn-1);for(var Wn=0;Wn<Hn.numberOfItems;Wn++){var Xn=Hn.getItem(Wn);if(2===Xn.pathSegType)Un=Wn;else if(Wn===Gn)Hn.removeItem(Un);else if(1===Xn.pathSegType&&Gn<Wn){Dn=Wn-1,Hn.removeItem(Wn);break}}for(var Yn=Gn-Un-1;Yn--;)mN.insertItemBefore(Qn,Hn.getItem(Un),Dn);var Jn=Hn.getItem(Un);mN.replacePathSeg(2,Un,[Jn.x,Jn.y]),yN.init().selectPt(0)}},deletePathNode:function deletePathNode(){if(kN.canDeleteNodes){yN.storeD();for(var Tn=yN.selected_pts,Un=Tn.length;Un--;){var Dn=Tn[Un];yN.deleteSeg(Dn)}if(function cleanup(){var Tn=yN.elem.pathSegList,Un=Tn.numberOfItems,Dn=function remItems(Un,Dn){for(;Dn--;)Tn.removeItem(Un)};if(Un<=1)return!0;for(;Un--;){var Qn=Tn.getItem(Un);if(1===Qn.pathSegType){var Hn=Tn.getItem(Un-1),Gn=Tn.getItem(Un-2);if(2===Hn.pathSegType){Dn(Un-1,2),cleanup();break}if(2===Gn.pathSegType){Dn(Un-2,3),cleanup();break}}else if(2===Qn.pathSegType&&Un>0){var Vn=Tn.getItem(Un-1).pathSegType;if(2===Vn){Dn(Un-1,1),cleanup();break}if(1===Vn&&Tn.numberOfItems-1===Un){Dn(Un,1),cleanup();break}}}return!1}(),yN.elem.pathSegList.numberOfItems<=1)return kN.toSelectMode(yN.elem),void(vN=mN.getEditorContext()).canvas.deleteSelectedElements();if(yN.init(),yN.clearSelection(),window.opera){var Qn=AN(yN.elem);Qn.attr("d",Qn.attr("d"))}yN.endChanges("Delete path node(s)")}},smoothPolylineIntoPath:function smoothPolylineIntoPath(Tn){var Un,Dn=Tn.points,Qn=Dn.numberOfItems;if(Qn>=4){var Hn=Dn.getItem(0),Gn=null,Vn=[];for(Vn.push(["M",Hn.x,",",Hn.y," C"].join("")),Un=1;Un<=Qn-4;Un+=3){var zn=Dn.getItem(Un),Kn=Dn.getItem(Un+1),$n=Dn.getItem(Un+2);if(Gn){var Wn=mN.smoothControlPoints(Gn,zn,Hn);if(Wn&&2===Wn.length){var Xn=Vn[Vn.length-1].split(",");Xn[2]=Wn[0].x,Xn[3]=Wn[0].y,Vn[Vn.length-1]=Xn.join(","),zn=Wn[1]}}Vn.push([zn.x,zn.y,Kn.x,Kn.y,$n.x,$n.y].join(",")),Hn=$n,Gn=Kn}for(Vn.push("L");Un<Qn;){var Yn=Dn.getItem(Un);Vn.push([Yn.x,Yn.y].join(",")),Un++}Vn=Vn.join(" "),Tn=(vN=mN.getEditorContext()).addSVGElementFromJson({element:"path",curStyles:!0,attr:{id:vN.getId(),d:Vn,fill:"none"}})}return Tn},setSegType:function setSegType(Tn){yN.setSegType(Tn)},moveNode:function moveNode(Tn,Un){var Dn=yN.selected_pts;if(Dn.length){yN.storeD();var Qn=yN.segs[Dn[0]],Hn={x:0,y:0};Hn[Tn]=Un-Qn.item[Tn],Qn.move(Hn.x,Hn.y),yN.endChanges("Move path point")}},fixEnd:function fixEnd(Tn){for(var Un,Dn=Tn.pathSegList,Qn=Dn.numberOfItems,Hn=0;Hn<Qn;++Hn){var Gn=Dn.getItem(Hn);if(2===Gn.pathSegType&&(Un=Gn),1===Gn.pathSegType){var Vn=Dn.getItem(Hn-1);if(Vn.x!==Un.x||Vn.y!==Un.y){var zn=Tn.createSVGPathSegLinetoAbs(Un.x,Un.y);mN.insertItemBefore(Tn,zn,Hn),kN.fixEnd(Tn);break}}}vN=mN.getEditorContext(),XA()&&vN.resetD(Tn)},convertPath:function convertPath(Tn,Un){for(var Dn=Tn.pathSegList,Qn=Dn.numberOfItems,Hn=0,Gn=0,Vn="",zn=null,Kn=0;Kn<Qn;++Kn){var $n=Dn.getItem(Kn),Wn=$n.x||0,Xn=$n.y||0,Yn=$n.x1||0,Jn=$n.y1||0,Zn=$n.x2||0,er=$n.y2||0,tr=$n.pathSegType,nr=mN.getPathMap()[tr][Un?"toLowerCase":"toUpperCase"]();switch(tr){case 1:Vn+="z",zn&&!Un&&(Hn=zn[0],Gn=zn[1]);break;case 12:Wn-=Hn;case 13:Un?(Xn=0,Hn+=Wn,nr="l"):(Xn=Gn,Hn=Wn+=Hn,nr="L"),Vn+=pathDSegment(nr,[[Wn,Xn]]);break;case 14:Xn-=Gn;case 15:Un?(Wn=0,Gn+=Xn,nr="l"):(Wn=Hn,Gn=Xn+=Gn,nr="L"),Vn+=pathDSegment(nr,[[Wn,Xn]]);break;case 2:case 4:case 18:Wn-=Hn,Xn-=Gn;case 5:case 3:case 19:Un?(Hn+=Wn,Gn+=Xn):(Hn=Wn+=Hn,Gn=Xn+=Gn),2!==tr&&3!==tr||(zn=[Hn,Gn]),Vn+=pathDSegment(nr,[[Wn,Xn]]);break;case 6:Wn-=Hn,Yn-=Hn,Zn-=Hn,Xn-=Gn,Jn-=Gn,er-=Gn;case 7:Un?(Hn+=Wn,Gn+=Xn):(Yn+=Hn,Zn+=Hn,Jn+=Gn,er+=Gn,Hn=Wn+=Hn,Gn=Xn+=Gn),Vn+=pathDSegment(nr,[[Yn,Jn],[Zn,er],[Wn,Xn]]);break;case 8:Wn-=Hn,Yn-=Hn,Xn-=Gn,Jn-=Gn;case 9:Un?(Hn+=Wn,Gn+=Xn):(Yn+=Hn,Jn+=Gn,Hn=Wn+=Hn,Gn=Xn+=Gn),Vn+=pathDSegment(nr,[[Yn,Jn],[Wn,Xn]]);break;case 10:Wn-=Hn,Xn-=Gn;case 11:Un?(Hn+=Wn,Gn+=Xn):(Hn=Wn+=Hn,Gn=Xn+=Gn),Vn+=pathDSegment(nr,[[$n.r1,$n.r2]],[$n.angle,$n.largeArcFlag?1:0,$n.sweepFlag?1:0],[Wn,Xn]);break;case 16:Wn-=Hn,Zn-=Hn,Xn-=Gn,er-=Gn;case 17:Un?(Hn+=Wn,Gn+=Xn):(Zn+=Hn,er+=Gn,Hn=Wn+=Hn,Gn=Xn+=Gn),Vn+=pathDSegment(nr,[[Zn,er],[Wn,Xn]])}}return Vn}}),BN=jQuery,EN={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"]},PN={},LN=function setUiStrings(Tn){Object.assign(PN,Tn.ui)},TN=[],NN=!0,IN={},ON=null,FN=null;!function init(Tn){nN=Tn}({getEditorContext:function getEditorContext(){return FN},getSegData:function getSegData(){return EN},getUIStrings:function getUIStrings(){return PN},getPathObj:function getPathObj(){return ON},setPathObj:function setPathObj(Tn){ON=Tn},getPathFuncs:function getPathFuncs(){return TN},getLinkControlPts:function getLinkControlPts(){return NN}});var UN,MN,RN,DN,jN,QN=hN,HN=function removePath_(Tn){Tn in IN&&delete IN[Tn]},GN=function getRotVals(Tn,Un){var Dn=Tn-RN,Qn=Un-DN,Hn=Math.sqrt(Dn*Dn+Qn*Qn),Gn=Math.atan2(Qn,Dn)+jN;return Dn=Hn*Math.cos(Gn)+RN,Qn=Hn*Math.sin(Gn)+DN,Dn-=UN,Qn-=MN,Hn=Math.sqrt(Dn*Dn+Qn*Qn),Gn=Math.atan2(Qn,Dn)-jN,{x:Hn*Math.cos(Gn)+UN,y:Hn*Math.sin(Gn)+MN}},VN=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"];function pathDSegment$1(Tn,Un,Dn,Qn){BN.each(Un,(function(Tn,Dn){Un[Tn]=aA(Dn)}));var Hn=Tn+Un.join(" ");return Dn&&(Hn+=" "+Dn.join(" ")),Qn&&(Hn+=" "+aA(Qn)),Hn}_N({getEditorContext:function getEditorContext(){return FN},getPathMap:function getPathMap(){return VN},smoothControlPoints:function smoothControlPoints(Tn,Un,Dn){var Qn=Tn.x-Dn.x,Hn=Tn.y-Dn.y,Gn=Un.x-Dn.x,Vn=Un.y-Dn.y;if(!(0===Qn&&0===Hn||0===Gn&&0===Vn)){var zn=Math.sqrt(Qn*Qn+Hn*Hn),Kn=Math.sqrt(Gn*Gn+Vn*Vn),$n=FN.getSVGRoot().createSVGPoint(),Wn=FN.getSVGRoot().createSVGPoint(),Xn=Math.atan2(Hn,Qn),Yn=Math.atan2(Vn,Gn);Xn<0&&(Xn+=2*Math.PI),Yn<0&&(Yn+=2*Math.PI);var Jn,Zn,er=Math.abs(Xn-Yn),tr=Math.abs(Math.PI-er)/2;return Xn-Yn>0?(Jn=er<Math.PI?Xn+tr:Xn-tr,Zn=er<Math.PI?Yn-tr:Yn+tr):(Jn=er<Math.PI?Xn-tr:Xn+tr,Zn=er<Math.PI?Yn+tr:Yn-tr),$n.x=zn*Math.cos(Jn)+Dn.x,$n.y=zn*Math.sin(Jn)+Dn.y,Wn.x=Kn*Math.cos(Zn)+Dn.x,Wn.y=Kn*Math.sin(Zn)+Dn.y,[$n,Wn]}},addPointGrip:lN,recalcRotatedPath:function recalcRotatedPath(){var Tn=ON.elem;if(jN=RT(Tn,!0)){var Un=ON.oldbbox;RN=Un.x+Un.width/2,DN=Un.y+Un.height/2;var Dn=ET(Tn);UN=Dn.x+Dn.width/2,MN=Dn.y+Dn.height/2;var Qn=UN-RN,Hn=MN-DN,Gn=Math.sqrt(Qn*Qn+Hn*Hn),Vn=Math.atan2(Hn,Qn)+jN;UN=Gn*Math.cos(Vn)+RN,MN=Gn*Math.sin(Vn)+DN;for(var zn=Tn.pathSegList,Kn=zn.numberOfItems;Kn;){Kn-=1;var $n=zn.getItem(Kn),Wn=$n.pathSegType;if(1!==Wn){var Xn=GN($n.x,$n.y),Yn=[Xn.x,Xn.y];if(!zT($n.x1)&&!zT($n.x2)){var Jn=GN($n.x1,$n.y1),Zn=GN($n.x2,$n.y2);Yn.splice(Yn.length,0,Jn.x,Jn.y,Zn.x,Zn.y)}QN(Wn,Kn,Yn)}}ET(Tn);var er=FN.getSVGRoot().createSVGTransform(),tr=OE(Tn);er.setRotate(180*jN/Math.PI,UN,MN),tr.replaceItem(er,0)}},removePath_:HN,addCtrlGrip:cN,getCtrlLine:uN,replacePathSeg:QN,insertItemBefore:iN,getPointFromGrip:function getPointFromGripMethod(Tn,Un){var Dn={x:Tn.x,y:Tn.y};Un.matrix&&(Tn=jE(Dn.x,Dn.y,Un.imatrix),Dn.x=Tn.x,Dn.y=Tn.y);var Qn=(rN=nN.getEditorContext()).getCurrentZoom();return Dn.x/=Qn,Dn.y/=Qn,Dn},getGripPt:aN,getPath_:function getPath_(Tn){var Un=IN[Tn.id];return Un||(Un=IN[Tn.id]=new fN(Tn)),Un},reorientGrads:function reorientGrads(Tn,Un){for(var Dn=ET(Tn),Qn=0;Qn<2;Qn++){var Hn=0===Qn?"fill":"stroke",Gn=Tn.getAttribute(Hn);if(Gn&&Gn.startsWith("url(")){var Vn=DT(Gn);if("linearGradient"===Vn.tagName){var zn=Vn.getAttribute("x1")||0,Kn=Vn.getAttribute("y1")||0,$n=Vn.getAttribute("x2")||1,Wn=Vn.getAttribute("y2")||0;zn=Dn.width*zn+Dn.x,Kn=Dn.height*Kn+Dn.y,$n=Dn.width*$n+Dn.x,Wn=Dn.height*Wn+Dn.y;var Xn=jE(zn,Kn,Un),Yn=jE($n,Wn,Un),Jn={x1:(Xn.x-Dn.x)/Dn.width,y1:(Xn.y-Dn.y)/Dn.height,x2:(Yn.x-Dn.x)/Dn.width,y2:(Yn.y-Dn.y)/Dn.height},Zn=Vn.cloneNode(!0);BN(Zn).attr(Jn),Zn.id=FN.getNextId(),kT().append(Zn),Tn.setAttribute(Hn,"url(#"+Zn.id+")")}}}},setLinkControlPoints:function setLinkControlPoints(Tn){NN=Tn}});var zN=kN,KN=jQuery,qN=function(){function Layer(Tn,Un,Dn){if(_classCallCheck(this,Layer),this.name_=Tn,this.group_=Dn?null:Un,Dn){var Qn=Dn.ownerDocument;this.group_=Qn.createElementNS(Zf.SVG,"g");var Hn=Qn.createElementNS(Zf.SVG,"title");Hn.textContent=Tn,this.group_.append(Hn),Un?KN(Un).after(this.group_):Dn.append(this.group_)}addLayerClass(this.group_),wT(this.group_,(function(Tn){Tn.setAttribute("style","pointer-events:inherit")})),this.group_.setAttribute("style",Dn?"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(Tn){var Un=void 0===Tn||Tn?"inline":"none";this.group_.getAttribute("display")!==Un&&this.group_.setAttribute("display",Un)}},{key:"isVisible",value:function isVisible(){return"none"!==this.group_.getAttribute("display")}},{key:"getOpacity",value:function getOpacity(){var Tn=this.group_.getAttribute("opacity");return zT(Tn)?1:Number.parseFloat(Tn)}},{key:"setOpacity",value:function setOpacity(Tn){"number"==typeof Tn&&Tn>=0&&Tn<=1&&this.group_.setAttribute("opacity",Tn)}},{key:"appendChildren",value:function appendChildren(Tn){var Un,Dn=_createForOfIteratorHelper(Tn);try{for(Dn.s();!(Un=Dn.n()).done;){var Qn=Un.value;this.group_.append(Qn)}}catch(Tn){Dn.e(Tn)}finally{Dn.f()}}},{key:"getTitleElement",value:function getTitleElement(){for(var Tn=this.group_.childNodes.length,Un=0;Un<Tn;++Un){var Dn=this.group_.childNodes.item(Un);if(Dn&&"title"===Dn.tagName)return Dn}return null}},{key:"setName",value:function setName(Tn,Un){var Dn=this.name_;Tn=AT(Tn);var Qn=this.getTitleElement();return Qn?(KN(Qn).empty(),Qn.textContent=Tn,this.name_=Tn,Un&&Un.changeElement(Qn,{"#text":Dn}),this.name_):null}},{key:"removeGroup",value:function removeGroup(){var Tn=this.group_;return this.group_.remove(),this.group_=void 0,Tn}}],[{key:"isLayer",value:function isLayer(Tn){return Tn&&"g"===Tn.tagName&&Layer.CLASS_REGEX.test(Tn.getAttribute("class"))}}]),Layer}();function addLayerClass(Tn){var Un=Tn.getAttribute("class");zT(Un)||!Un.length?Tn.setAttribute("class",qN.CLASS_NAME):qN.CLASS_REGEX.test(Un)||Tn.setAttribute("class",Un+" "+qN.CLASS_NAME)}qN.CLASS_NAME="layer",qN.CLASS_REGEX=new RegExp("(\\s|^)"+qN.CLASS_NAME+"(\\s|$)");var $N=function(){function HistoryRecordingService(Tn){_classCallCheck(this,HistoryRecordingService),this.undoManager_=Tn,this.currentBatchCommand_=null,this.batchCommandStack_=[]}return _createClass(HistoryRecordingService,[{key:"startBatchCommand",value:function startBatchCommand(Tn){return this.undoManager_?(this.currentBatchCommand_=new JT(Tn),this.batchCommandStack_.push(this.currentBatchCommand_),this):this}},{key:"endBatchCommand",value:function endBatchCommand(){if(!this.undoManager_)return this;if(this.currentBatchCommand_){var Tn=this.currentBatchCommand_;this.batchCommandStack_.pop();var Un=this.batchCommandStack_.length;this.currentBatchCommand_=Un?this.batchCommandStack_[Un-1]:null,this.addCommand_(Tn)}return this}},{key:"moveElement",value:function moveElement(Tn,Un,Dn,Qn){return this.undoManager_?(this.addCommand_(new $T(Tn,Un,Dn,Qn)),this):this}},{key:"insertElement",value:function insertElement(Tn,Un){return this.undoManager_?(this.addCommand_(new WT(Tn,Un)),this):this}},{key:"removeElement",value:function removeElement(Tn,Un,Dn,Qn){return this.undoManager_?(this.addCommand_(new XT(Tn,Un,Dn,Qn)),this):this}},{key:"changeElement",value:function changeElement(Tn,Un,Dn){return this.undoManager_?(this.addCommand_(new YT(Tn,Un,Dn)),this):this}},{key:"addCommand_",value:function addCommand_(Tn){if(!this.undoManager_)return this;this.currentBatchCommand_?this.currentBatchCommand_.addSubCommand(Tn):this.undoManager_.addCommandToHistory(Tn)}}]),HistoryRecordingService}();$N.NO_HISTORY=new $N;var WN=jQueryPluginSVG(jQuery),XN=function copyElem(Tn,Un){var Dn=document.createElementNS(Tn.namespaceURI,Tn.nodeName);if(WN.each(Tn.attributes,(function(Tn,Un){"-moz-math-font-style"!==Un.localName&&Dn.setAttributeNS(Un.namespaceURI,Un.nodeName,Un.value)})),Dn.removeAttribute("id"),Dn.id=Un(),XA()&&"path"===Tn.nodeName){var Qn=function convertPath(Tn,Un){for(var Dn=Tn.pathSegList,Qn=Dn.numberOfItems,Hn=0,Gn=0,Vn="",zn=null,Kn=0;Kn<Qn;++Kn){var $n=Dn.getItem(Kn),Wn=$n.x||0,Xn=$n.y||0,Yn=$n.x1||0,Jn=$n.y1||0,Zn=$n.x2||0,er=$n.y2||0,tr=$n.pathSegType,nr=VN[tr][Un?"toLowerCase":"toUpperCase"]();switch(tr){case 1:Vn+="z",zn&&!Un&&(Hn=zn[0],Gn=zn[1]);break;case 12:Wn-=Hn;case 13:Un?(Xn=0,Hn+=Wn,nr="l"):(Xn=Gn,Hn=Wn+=Hn,nr="L"),Vn+=pathDSegment$1(nr,[[Wn,Xn]]);break;case 14:Xn-=Gn;case 15:Un?(Wn=0,Gn+=Xn,nr="l"):(Wn=Hn,Gn=Xn+=Gn,nr="L"),Vn+=pathDSegment$1(nr,[[Wn,Xn]]);break;case 2:case 4:case 18:Wn-=Hn,Xn-=Gn;case 5:case 3:case 19:Un?(Hn+=Wn,Gn+=Xn):(Hn=Wn+=Hn,Gn=Xn+=Gn),2!==tr&&3!==tr||(zn=[Hn,Gn]),Vn+=pathDSegment$1(nr,[[Wn,Xn]]);break;case 6:Wn-=Hn,Yn-=Hn,Zn-=Hn,Xn-=Gn,Jn-=Gn,er-=Gn;case 7:Un?(Hn+=Wn,Gn+=Xn):(Yn+=Hn,Zn+=Hn,Jn+=Gn,er+=Gn,Hn=Wn+=Hn,Gn=Xn+=Gn),Vn+=pathDSegment$1(nr,[[Yn,Jn],[Zn,er],[Wn,Xn]]);break;case 8:Wn-=Hn,Yn-=Hn,Xn-=Gn,Jn-=Gn;case 9:Un?(Hn+=Wn,Gn+=Xn):(Yn+=Hn,Jn+=Gn,Hn=Wn+=Hn,Gn=Xn+=Gn),Vn+=pathDSegment$1(nr,[[Yn,Jn],[Wn,Xn]]);break;case 10:Wn-=Hn,Xn-=Gn;case 11:Un?(Hn+=Wn,Gn+=Xn):(Hn=Wn+=Hn,Gn=Xn+=Gn),Vn+=pathDSegment$1(nr,[[$n.r1,$n.r2]],[$n.angle,$n.largeArcFlag?1:0,$n.sweepFlag?1:0],[Wn,Xn]);break;case 16:Wn-=Hn,Zn-=Hn,Xn-=Gn,er-=Gn;case 17:Un?(Hn+=Wn,Gn+=Xn):(Zn+=Hn,er+=Gn,Hn=Wn+=Hn,Gn=Xn+=Gn),Vn+=pathDSegment$1(nr,[[Zn,er],[Wn,Xn]])}}return Vn}(Tn);Dn.setAttribute("d",Qn)}if(WN.each(Tn.childNodes,(function(Tn,Qn){switch(Qn.nodeType){case 1:Dn.append(copyElem(Qn,Un));break;case 3:Dn.textContent=Qn.nodeValue}})),WN(Tn).data("gsvg"))WN(Dn).data("gsvg",Dn.firstChild);else if(WN(Tn).data("symbol")){var Hn=WN(Tn).data("symbol");WN(Dn).data("ref",Hn).data("symbol",Hn)}else"image"===Dn.tagName&&VT(Dn);return Dn},YN=jQuery,JN="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use".split(","),ZN=1,eI=2,tI=0,nI=[];function historyRecordingService(Tn){return Tn||new $N(rI.undoMgr)}function findLayerNameInGroup(Tn){return YN("title",Tn).text()||(function isOpera(){return FA}()&&Tn.querySelectorAll?YN(Tn.querySelectorAll("title")).text():"")}function getNewLayerName(Tn){for(var Un=1;Tn.includes("Layer "+Un);)Un++;return"Layer "+Un}var rI,iI,oI=function(){function Drawing(Tn,Un){if(_classCallCheck(this,Drawing),!Tn||!Tn.tagName||!Tn.namespaceURI||"svg"!==Tn.tagName||Tn.namespaceURI!==Zf.SVG)throw new Error("Error: svgedit.draw.Drawing instance initialized without a <svg> element");this.svgElem_=Tn,this.obj_num=0,this.idPrefix=Un||"svg_",this.releasedNums=[],this.all_layers=[],this.layer_map={},this.current_layer=null,this.nonce_="";var Dn=this.svgElem_.getAttributeNS(Zf.SE,"nonce");Dn&&tI!==eI?this.nonce_=Dn:tI===ZN&&this.setNonce(Math.floor(100001*Math.random()))}return _createClass(Drawing,[{key:"getElem_",value:function getElem_(Tn){return this.svgElem_.querySelector?this.svgElem_.querySelector("#"+Tn):YN(this.svgElem_).find("[id="+Tn+"]")[0]}},{key:"getSvgElem",value:function getSvgElem(){return this.svgElem_}},{key:"getNonce",value:function getNonce(){return this.nonce_}},{key:"setNonce",value:function setNonce(Tn){this.svgElem_.setAttributeNS(Zf.XMLNS,"xmlns:se",Zf.SE),this.svgElem_.setAttributeNS(Zf.SE,"se:nonce",Tn),this.nonce_=Tn}},{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 Tn=this.obj_num,Un=!1;this.releasedNums.length>0?(this.obj_num=this.releasedNums.pop(),Un=!0):this.obj_num++;for(var Dn=this.getId();this.getElem_(Dn);)Un&&(this.obj_num=Tn,Un=!1),this.obj_num++,Dn=this.getId();return Un&&(this.obj_num=Tn),Dn}},{key:"releaseId",value:function releaseId(Tn){var Un=this.idPrefix+(this.nonce_?this.nonce_+"_":"");if("string"!=typeof Tn||!Tn.startsWith(Un))return!1;var Dn=Number.parseInt(Tn.substr(Un.length));return!("number"!=typeof Dn||Dn<=0||this.releasedNums.includes(Dn))&&(this.releasedNums.push(Dn),!0)}},{key:"getNumLayers",value:function getNumLayers(){return this.all_layers.length}},{key:"hasLayer",value:function hasLayer(Tn){return void 0!==this.layer_map[Tn]}},{key:"getLayerName",value:function getLayerName(Tn){return Tn>=0&&Tn<this.getNumLayers()?this.all_layers[Tn].getName():""}},{key:"getCurrentLayer",value:function getCurrentLayer(){return this.current_layer?this.current_layer.getGroup():null}},{key:"getLayerByName",value:function getLayerByName(Tn){var Un=this.layer_map[Tn];return Un?Un.getGroup():null}},{key:"getCurrentLayerName",value:function getCurrentLayerName(){return this.current_layer?this.current_layer.getName():""}},{key:"setCurrentLayerName",value:function setCurrentLayerName(Tn,Un){var Dn=null;if(this.current_layer){var Qn=this.current_layer.getName();(Dn=this.current_layer.setName(Tn,Un))&&(delete this.layer_map[Qn],this.layer_map[Dn]=this.current_layer)}return Dn}},{key:"setCurrentLayerPosition",value:function setCurrentLayerPosition(Tn){var Un,Dn=this.getNumLayers();if(!this.current_layer||Tn<0||Tn>=Dn)return null;for(Un=0;Un<Dn&&this.all_layers[Un]!==this.current_layer;++Un);if(Un===Dn)return null;if(Un!==Tn){var Qn=this.current_layer.getGroup(),Hn=Qn.nextSibling,Gn=null;return Tn>Un?Tn<Dn-1&&(Gn=this.all_layers[Tn+1].getGroup()):Gn=this.all_layers[Tn].getGroup(),this.svgElem_.insertBefore(Qn,Gn),this.identifyLayers(),this.setCurrentLayer(this.getLayerName(Tn)),{currentGroup:Qn,oldNextSibling:Hn}}return null}},{key:"mergeLayer",value:function mergeLayer(Tn){var Un=this.current_layer.getGroup(),Dn=YN(Un).prev()[0];if(Dn){Tn.startBatchCommand("Merge Layer");var Qn=Un.nextSibling;for(Tn.removeElement(Un,Qn,this.svgElem_);Un.firstChild;){var Hn=Un.firstChild;if("title"!==Hn.localName){var Gn=Hn.nextSibling;Dn.append(Hn),Tn.moveElement(Hn,Gn,Un)}else Tn.removeElement(Hn,Hn.nextSibling,Un),Hn.remove()}this.current_layer.removeGroup();var Vn=this.all_layers.indexOf(this.current_layer);if(Vn>0){var zn=this.current_layer.getName();this.current_layer=this.all_layers[Vn-1],this.all_layers.splice(Vn,1),delete this.layer_map[zn]}Tn.endBatchCommand()}}},{key:"mergeAllLayers",value:function mergeAllLayers(Tn){for(this.current_layer=this.all_layers[this.all_layers.length-1],Tn.startBatchCommand("Merge all Layers");this.all_layers.length>1;)this.mergeLayer(Tn);Tn.endBatchCommand()}},{key:"setCurrentLayer",value:function setCurrentLayer(Tn){var Un=this.layer_map[Tn];return!!Un&&(this.current_layer&&this.current_layer.deactivate(),this.current_layer=Un,this.current_layer.activate(),!0)}},{key:"deleteCurrentLayer",value:function deleteCurrentLayer(){if(this.current_layer&&this.getNumLayers()>1){var Tn=this.current_layer.removeGroup();return this.identifyLayers(),Tn}return null}},{key:"identifyLayers",value:function identifyLayers(){this.all_layers=[],this.layer_map={};for(var Tn=this.svgElem_.childNodes.length,Un=[],Dn=[],Qn=null,Hn=!1,Gn=0;Gn<Tn;++Gn){var Vn=this.svgElem_.childNodes.item(Gn);if(Vn&&1===Vn.nodeType)if("g"===Vn.tagName){Hn=!0;var zn=findLayerNameInGroup(Vn);zn?(Dn.push(zn),Qn=new qN(zn,Vn),this.all_layers.push(Qn),this.layer_map[zn]=Qn):Un.push(Vn)}else JN.includes(Vn.nodeName)&&Un.push(Vn)}Un.length>0||!Hn?((Qn=new qN(getNewLayerName(Dn),null,this.svgElem_)).appendChildren(Un),this.all_layers.push(Qn),this.layer_map[name]=Qn):Qn.activate(),this.current_layer=Qn}},{key:"createLayer",value:function createLayer(Tn,Un){this.current_layer&&this.current_layer.deactivate(),(null==Tn||""===Tn||this.layer_map[Tn])&&(Tn=getNewLayerName(Object.keys(this.layer_map)));var Dn=new qN(Tn,null,this.svgElem_);return Un&&(Un.startBatchCommand("Create Layer"),Un.insertElement(Dn.getGroup()),Un.endBatchCommand()),this.all_layers.push(Dn),this.layer_map[Tn]=Dn,this.current_layer=Dn,Dn.getGroup()}},{key:"cloneLayer",value:function cloneLayer(Tn,Un){var Dn=this;if(!this.current_layer)return null;this.current_layer.deactivate(),(null==Tn||""===Tn||this.layer_map[Tn])&&(Tn=getNewLayerName(Object.keys(this.layer_map)));var Qn=this.current_layer.getGroup(),Hn=new qN(Tn,Qn,this.svgElem_),Gn=Hn.getGroup();_toConsumableArray(Qn.childNodes).forEach((function(Tn){"title"!==Tn.localName&&Gn.append(Dn.copyElem(Tn))})),Un&&(Un.startBatchCommand("Duplicate Layer"),Un.insertElement(Gn),Un.endBatchCommand());var Vn=this.all_layers.indexOf(this.current_layer);return Vn>=0?this.all_layers.splice(Vn+1,0,Hn):this.all_layers.push(Hn),this.layer_map[Tn]=Hn,this.current_layer=Hn,Gn}},{key:"getLayerVisibility",value:function getLayerVisibility(Tn){var Un=this.layer_map[Tn];return!!Un&&Un.isVisible()}},{key:"setLayerVisibility",value:function setLayerVisibility(Tn,Un){if("boolean"!=typeof Un)return null;var Dn=this.layer_map[Tn];return Dn?(Dn.setVisible(Un),Dn.getGroup()):null}},{key:"getLayerOpacity",value:function getLayerOpacity(Tn){var Un=this.layer_map[Tn];return Un?Un.getOpacity():null}},{key:"setLayerOpacity",value:function setLayerOpacity(Tn,Un){if(!("number"!=typeof Un||Un<0||Un>1)){var Dn=this.layer_map[Tn];Dn&&Dn.setOpacity(Un)}}},{key:"copyElem",value:function copyElem$1(Tn){var Un=this;return XN(Tn,(function getNextIdClosure(){return Un.getNextId()}))}}]),Drawing}(),aI=function randomizeIds(Tn,Un){(tI=!1===Tn?eI:ZN)!==ZN||Un.getNonce()?tI===eI&&Un.getNonce()&&Un.clearNonce():Un.setNonce(Math.floor(100001*Math.random()))},sI=function identifyLayers(){vI(),rI.getCurrentDrawing().identifyLayers()},lI=function createLayer(Tn,Un){var Dn=rI.getCurrentDrawing().createLayer(Tn,historyRecordingService(Un));rI.clearSelection(),rI.call("changed",[Dn])},cI=function cloneLayer(Tn,Un){var Dn=rI.getCurrentDrawing().cloneLayer(Tn,historyRecordingService(Un));rI.clearSelection(),vI(),rI.call("changed",[Dn])},uI=function deleteCurrentLayer(){var Tn=rI.getCurrentDrawing().getCurrentLayer(),Un=Tn.nextSibling,Dn=Tn.parentNode;if(Tn=rI.getCurrentDrawing().deleteCurrentLayer()){var Qn=new JT("Delete Layer");return Qn.addSubCommand(new XT(Tn,Un,Dn)),rI.addCommandToHistory(Qn),rI.clearSelection(),rI.call("changed",[Dn]),!0}return!1},dI=function setCurrentLayer(Tn){var Un=rI.getCurrentDrawing().setCurrentLayer(AT(Tn));return Un&&rI.clearSelection(),Un},hI=function renameCurrentLayer(Tn){var Un=rI.getCurrentDrawing(),Dn=Un.getCurrentLayer();if(Dn&&Un.setCurrentLayerName(Tn,historyRecordingService()))return rI.call("changed",[Dn]),!0;return!1},pI=function setCurrentLayerPosition(Tn){var Un=rI.getCurrentDrawing().setCurrentLayerPosition(Tn);return!!Un&&(rI.addCommandToHistory(new $T(Un.currentGroup,Un.oldNextSibling,rI.getSVGContent())),!0)},gI=function setLayerVisibility(Tn,Un){var Dn=rI.getCurrentDrawing(),Qn=Dn.getLayerVisibility(Tn),Hn=Dn.setLayerVisibility(Tn,Un);if(!Hn)return!1;var Gn=Qn?"inline":"none";return rI.addCommandToHistory(new YT(Hn,{display:Gn},"Layer Visibility")),Hn===Dn.getCurrentLayer()&&(rI.clearSelection(),rI.pathActions.clear()),!0},fI=function moveSelectedToLayer(Tn){var Un=rI.getCurrentDrawing().getLayerByName(Tn);if(!Un)return!1;for(var Dn=new JT("Move Elements to Layer"),Qn=rI.getSelectedElements(),Hn=Qn.length;Hn--;){var Gn=Qn[Hn];if(Gn){var Vn=Gn.nextSibling,zn=Gn.parentNode;Un.append(Gn),Dn.addSubCommand(new $T(Gn,Vn,zn))}}return rI.addCommandToHistory(Dn),!0},AI=function mergeLayer(Tn){rI.getCurrentDrawing().mergeLayer(historyRecordingService(Tn)),rI.clearSelection(),vI(),rI.changeSVGContent()},mI=function mergeAllLayers(Tn){rI.getCurrentDrawing().mergeAllLayers(historyRecordingService(Tn)),rI.clearSelection(),vI(),rI.changeSVGContent()},vI=function leaveContext(){var Tn=nI.length;if(Tn){for(var Un=0;Un<Tn;Un++){var Dn=nI[Un],Qn=rI.elData(Dn,"orig_opac");1!==Qn?Dn.setAttribute("opacity",Qn):Dn.removeAttribute("opacity"),Dn.setAttribute("style","pointer-events: inherit")}nI=[],rI.clearSelection(!0),rI.call("contextset",null)}rI.setCurrentGroup(null)},yI=function setContext(Tn){vI(),"string"==typeof Tn&&(Tn=jT(Tn)),rI.setCurrentGroup(Tn),YN(Tn).parentsUntil("#svgcontent").andSelf().siblings().each((function(){var Tn=this.getAttribute("opacity")||1;rI.elData(this,"orig_opac",Tn),this.setAttribute("opacity",.33*Tn),this.setAttribute("style","pointer-events: none"),nI.push(this)})),rI.clearSelection(),rI.call("contextset",rI.getCurrentGroup())},_I=jQueryPluginSVG(jQuery),bI=WT,wI=JT,xI=null,SI=function pasteElementsMethod(Tn,Un,Dn){var Qn=JSON.parse(sessionStorage.getItem(xI.getClipBoardID()));if(Qn){var Hn=Qn.length;if(Hn){var Gn=[],Vn=new wI("Paste elements"),zn={};for(Qn.forEach((function(Tn){return function checkIDs(Tn){Tn.attr&&Tn.attr.id&&(zn[Tn.attr.id]=xI.getCanvas().getNextId(),Tn.attr.id=zn[Tn.attr.id]),Tn.children&&Tn.children.forEach((function(Tn){return checkIDs(Tn)}))}(Tn)})),xI.getCanvas().runExtensions("IDsUpdated",{elems:Qn,changes:zn},!0).forEach((function(Tn){Tn&&"remove"in Tn&&Tn.remove.forEach((function(Tn){Qn=Qn.filter((function(Un){return Un.attr.id!==Tn}))}))}));Hn--;){var Kn=Qn[Hn];if(Kn){var $n=xI.getCanvas().addSVGElementFromJson(Kn);Gn.push($n),Vn.addSubCommand(new bI($n)),xI.restoreRefElems($n)}}if(xI.getCanvas().selectOnly(Gn),"in_place"!==Tn){var Wn,Xn;Tn?"point"===Tn&&(Wn=Un,Xn=Dn):(Wn=xI.getLastClickPoint("x"),Xn=xI.getLastClickPoint("y"));var Yn=UT(Gn),Jn=Wn-(Yn.x+Yn.width/2),Zn=Xn-(Yn.y+Yn.height/2),er=[],tr=[];_I.each(Gn,(function(Tn,Un){er.push(Jn),tr.push(Zn)}));var nr=xI.getCanvas().moveSelectedElements(er,tr,!1);nr&&Vn.addSubCommand(nr)}xI.addCommandToHistory(Vn),xI.getCanvas().call("changed",Gn)}}},CI=ZT,kI=KT,BI=null,EI=function ffClone(Tn){if(!YA())return Tn;var Un=Tn.cloneNode(!0);return Tn.before(Un),Tn.remove(),BI.getCanvas().selectorManager.releaseSelector(Tn),BI.getCanvas().setSelectedElements(0,Un),BI.getCanvas().selectorManager.requestSelector(Un).showGrips(!0),Un},PI=function changeSelectedAttributeNoUndoMethod(Tn,Un,Dn){var Qn=BI.getSelectedElements(),Hn=BI.getCurrentZoom();"pathedit"===BI.getCurrentMode()&&BI.getCanvas().pathActions.moveNode(Tn,Un);for(var Gn=(Dn=Dn||Qn).length,Vn=["g","polyline","path"],zn=function _loop(){var zn=Dn[Gn];if(zT(zn))return"continue";if(("x"===Tn||"y"===Tn)&&Vn.includes(zn.tagName)){var Kn=UT([zn]),$n="x"===Tn?Un-Kn.x:0,Wn="y"===Tn?Un-Kn.y:0;return BI.getCanvas().moveSelectedElements($n*Hn,Wn*Hn,!0),"continue"}var Xn="#text"===Tn?zn.textContent:zn.getAttribute(Tn);if(zT(Xn)&&(Xn=""),Xn!==String(Un)){"#text"===Tn?(zn.textContent=Un,/rotate/.test(zn.getAttribute("transform"))&&(zn=EI(zn))):"#href"===Tn?CT(zn,Un):Un?zn.setAttribute(Tn,Un):zn.removeAttribute(Tn),"textedit"===BI.getCurrentMode()&&"#text"!==Tn&&zn.textContent.length&&BI.getCanvas().textActions.toSelectMode(zn),YA()&&"text"===zn.nodeName&&/rotate/.test(zn.getAttribute("transform"))&&(String(Un).startsWith("url")||["font-size","font-family","x","y"].includes(Tn)&&zn.textContent)&&(zn=EI(zn)),Qn.includes(zn)&&setTimeout((function(){zn.parentNode&&BI.getCanvas().selectorManager.requestSelector(zn).resize()}),0);var Yn=RT(zn);if(0!==Yn&&"transform"!==Tn)for(var Jn=OE(zn),Zn=Jn.numberOfItems;Zn--;){if(4===Jn.getItem(Zn).type){Jn.removeItem(Zn);var er=ET(zn),tr=jE(er.x+er.width/2,er.y+er.height/2,zE(Jn).matrix),nr=tr.x,rr=tr.y,ir=BI.getSVGRoot().createSVGTransform();ir.setRotate(Yn,nr,rr),Jn.insertItemBefore(ir,Zn);break}}}};Gn--;)zn()},LI=function changeSelectedAttributeMethod(Tn,Un,Dn){var Qn=BI.getSelectedElements();Dn=Dn||Qn,BI.getCanvas().undoMgr.beginUndoableChange(Tn,Dn),PI(Tn,Un,Dn);var Hn=BI.getCanvas().undoMgr.finishUndoableChange();Hn.isEmpty()||BI.getCanvas().undoMgr.addCommandToHistory(Hn)},TI=JT,NI=jQueryPluginSVG(jQuery),II=null,OI=function clearSelectionMethod(Tn){II.getSelectedElements().forEach((function(Tn){zT(Tn)||II.getCanvas().selectorManager.releaseSelector(Tn)})),II.getCanvas().setEmptySelectedElements(),Tn||II.getCanvas().call("selected",II.getSelectedElements())},FI=function addToSelectionMethod(Tn,Un){var Dn=II.getSelectedElements();if(Tn.length){for(var Qn=0;Qn<Dn.length&&!zT(Dn[Qn]);)++Qn;for(var Hn=Tn.length;Hn--;){var Gn=Tn[Hn];if(Gn){var Vn=ET(Gn);if(Vn&&("a"===Gn.tagName&&1===Gn.childNodes.length&&(Gn=Gn.firstChild),!Dn.includes(Gn))){Dn[Qn]=Gn,Qn++;var zn=II.getCanvas().selectorManager.requestSelector(Gn,Vn);Dn.length>1&&zn.showGrips(!1)}}}if(Dn.length)for(II.getCanvas().call("selected",Dn),1===Dn.length&&II.getCanvas().selectorManager.requestSelector(Dn[0]).showGrips(Un),Dn.sort((function(Tn,Un){return Tn&&Un&&Tn.compareDocumentPosition?3-(6&Un.compareDocumentPosition(Tn)):zT(Tn)?1:0}));zT(Dn[0]);)Dn.shift(0)}},UI=function getMouseTargetMethod(Tn){if(zT(Tn))return null;var Un=Tn.target;if(Un.correspondingUseElement&&(Un=Un.correspondingUseElement),[Zf.MATH,Zf.HTML].includes(Un.namespaceURI)&&"svgcanvas"!==Un.id)for(;"foreignObject"!==Un.nodeName;)if(!(Un=Un.parentNode))return II.getSVGRoot();var Dn=II.getCanvas().getCurrentDrawing().getCurrentLayer();if([II.getSVGRoot(),II.getDOMContainer(),II.getSVGContent(),Dn].includes(Un))return II.getSVGRoot();if(NI(Un).closest("#selectorParentGroup").length)return II.getCanvas().selectorManager.selectorParentGroup;for(;Un.parentNode!==(II.getCurrentGroup()||Dn);)Un=Un.parentNode;return Un},MI=function runExtensionsMethod(Tn,Un,Dn,Qn){var Hn=!!Dn&&[];return NI.each(II.getExtensions(),(function(Gn,Vn){Qn&&!Qn(Gn)||Vn&&Tn in Vn&&("function"==typeof Un&&(Un=Un(Gn)),Dn?Hn.push(Vn[Tn](Un)):Hn=Vn[Tn](Un))})),Hn},RI=function getIntersectionListMethod(Tn){var Un=II.getCurrentZoom();if(zT(II.getRubberBox()))return null;var Dn,Qn=II.getCurrentGroup()||II.getCanvas().getCurrentDrawing().getCurrentLayer();if(Tn)(Dn=II.getSVGContent().createSVGRect()).x=Tn.x,Dn.y=Tn.y,Dn.width=Tn.width,Dn.height=Tn.height;else{Dn=II.getRubberBox().getBBox();var Hn=II.getSVGContent().createSVGRect();["x","y","width","height","top","right","bottom","left"].forEach((function(Tn){Hn[Tn]=Dn[Tn]/Un})),Dn=Hn}var Gn=null;if(zT(Gn)||"function"!=typeof Gn.item){Gn=[],II.getCurBBoxes().length||II.setCurBBoxes(function getVisibleElementsAndBBoxes(Tn){Tn||(Tn=NI(II.getSVGContent()).children());var Un=[];return NI(Tn).children().each((function(Tn,Dn){Dn.getBBox&&Un.push({elem:Dn,bbox:UT([Dn])})})),Un.reverse()}(Qn));for(var Vn=II.getCurBBoxes().length;Vn--;){var zn=II.getCurBBoxes();Dn.width&&($E(Dn,zn[Vn].bbox)&&Gn.push(zn[Vn].elem))}}return Gn},DI=function groupSvgElem(Tn){var Un=document.createElementNS(Zf.SVG,"g");Tn.replaceWith(Un),NI(Un).append(Tn).data("gsvg",Tn)[0].id=II.getCanvas().getNextId()},jI=function prepareSvg(Tn){II.getCanvas().sanitizeSvg(Tn.documentElement),_toConsumableArray(Tn.getElementsByTagNameNS(Zf.SVG,"path")).forEach((function(Tn){Tn.setAttribute("d",II.getCanvas().pathActions.convertPath(Tn)),II.getCanvas().pathActions.fixEnd(Tn)}))},QI=function setRotationAngle(Tn,Un){var Dn=II.getSelectedElements();Tn=Number.parseFloat(Tn);var Qn=Dn[0],Hn=Qn.getAttribute("transform"),Gn=ET(Qn),Vn=Gn.x+Gn.width/2,zn=Gn.y+Gn.height/2,Kn=OE(Qn);Kn.numberOfItems>0&&(4===Kn.getItem(0).type&&Kn.removeItem(0));if(0!==Tn){var $n=jE(Vn,zn,zE(Kn).matrix),Wn=II.getSVGRoot().createSVGTransform();Wn.setRotate(Tn,$n.x,$n.y),Kn.numberOfItems?Kn.insertItemBefore(Wn,0):Kn.appendItem(Wn)}else 0===Kn.numberOfItems&&Qn.removeAttribute("transform");if(!Un){var Xn=Qn.getAttribute("transform");Hn?Qn.setAttribute("transform",Hn):Qn.removeAttribute("transform"),II.getCanvas().changeSelectedAttribute("transform",Xn,Dn),II.getCanvas().call("changed",Dn)}II.getCanvas().selectorManager.requestSelector(Dn[0]).resize(),II.getSelector().updateGripCursors(Tn)},HI=function recalculateAllSelectedDimensions(){for(var Tn=II.getSelectedElements(),Un="none"===II.getCurrentResizeMode()?"position":"size",Dn=new TI(Un),Qn=Tn.length;Qn--;){var Hn=Tn[Qn],Gn=II.getCanvas().recalculateDimensions(Hn);Gn&&Dn.addSubCommand(Gn)}Dn.isEmpty()||(II.addCommandToHistory(Dn),II.getCanvas().call("changed",Tn))},GI=jQueryPluginSVG(jQuery),VI=null,zI=function(){var Tn,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn=[];function setCursor(Tn){var Vn=""===Un.value;if(GI(Un).focus(),!arguments.length)if(Vn)Tn=0;else{if(Un.selectionEnd!==Un.selectionStart)return;Tn=Un.selectionEnd}var zn=Wn[Tn];Vn||Un.setSelectionRange(Tn,Tn),(Dn=jT("text_cursor"))||(Dn=document.createElementNS(Zf.SVG,"line"),QT(Dn,{id:"text_cursor",stroke:"#333","stroke-width":1}),Dn=jT("selectorParentGroup").appendChild(Dn)),Hn||(Hn=setInterval((function(){var Tn="none"===Dn.getAttribute("display");Dn.setAttribute("display",Tn?"inline":"none")}),600));var Kn=ptToScreen(zn.x,Gn.y),$n=ptToScreen(zn.x,Gn.y+Gn.height);QT(Dn,{x1:Kn.x,y1:Kn.y,x2:$n.x,y2:$n.y,visibility:"visible",display:"inline"}),Qn&&Qn.setAttribute("d","")}function setSelection(Tn,Hn,Vn){if(Tn!==Hn){Vn||Un.setSelectionRange(Tn,Hn),(Qn=jT("text_selectblock"))||(Qn=document.createElementNS(Zf.SVG,"path"),QT(Qn,{id:"text_selectblock",fill:"green",opacity:.5,style:"pointer-events:none"}),jT("selectorParentGroup").append(Qn));var zn=Wn[Tn],Kn=Wn[Hn];Dn.setAttribute("visibility","hidden");var $n=ptToScreen(zn.x,Gn.y),Xn=ptToScreen(zn.x+(Kn.x-zn.x),Gn.y),Yn=ptToScreen(zn.x,Gn.y+Gn.height),Jn=ptToScreen(zn.x+(Kn.x-zn.x),Gn.y+Gn.height),Zn="M"+$n.x+","+$n.y+" L"+Xn.x+","+Xn.y+" "+Jn.x+","+Jn.y+" "+Yn.x+","+Yn.y+"z";QT(Qn,{d:Zn,display:"inline"})}else setCursor(Hn)}function getIndexFromPoint(Un,Dn){var Qn=VI.getSVGRoot().createSVGPoint();if(Qn.x=Un,Qn.y=Dn,1===Wn.length)return 0;var Hn=Tn.getCharNumAtPosition(Qn);Hn<0?(Hn=Wn.length-2,Un<=Wn[0].x&&(Hn=0)):Hn>=Wn.length-2&&(Hn=Wn.length-2);var Gn=Wn[Hn];return Un>Gn.x+Gn.width/2&&Hn++,Hn}function setCursorFromPoint(Tn,Un){setCursor(getIndexFromPoint(Tn,Un))}function setEndSelectionFromPoint(Tn,Dn,Qn){var Hn=Un.selectionStart,Gn=getIndexFromPoint(Tn,Dn);setSelection(Math.min(Hn,Gn),Math.max(Hn,Gn),!Qn)}function screenToPt(Tn,Un){var Dn={x:Tn,y:Un},Qn=VI.getCurrentZoom();if(Dn.x/=Qn,Dn.y/=Qn,Vn){var Hn=jE(Dn.x,Dn.y,Vn.inverse());Dn.x=Hn.x,Dn.y=Hn.y}return Dn}function ptToScreen(Tn,Un){var Dn={x:Tn,y:Un};if(Vn){var Qn=jE(Dn.x,Dn.y,Vn);Dn.x=Qn.x,Dn.y=Qn.y}var Hn=VI.getCurrentZoom();return Dn.x*=Hn,Dn.y*=Hn,Dn}function selectAll(Un){setSelection(0,Tn.textContent.length),GI(this).unbind(Un)}function selectWord(Un){if($n&&Tn){var Dn=VI.getCurrentZoom(),Qn=jE(Un.pageX,Un.pageY,VI.getrootSctm()),Hn=screenToPt(Qn.x*Dn,Qn.y*Dn),Gn=getIndexFromPoint(Hn.x,Hn.y),Vn=Tn.textContent,zn=Vn.substr(0,Gn).replace(/[a-z\d]+$/i,"").length,Kn=Vn.substr(Gn).match(/^[a-z\d]+/i);setSelection(zn,(Kn?Kn[0].length:0)+Gn),GI(Un.target).click(selectAll),setTimeout((function(){GI(Un.target).unbind("click",selectAll)}),300)}}return{select:function select(Un,Dn,Qn){Tn=Un,VI.getCanvas().textActions.toEditMode(Dn,Qn)},start:function start(Un){Tn=Un,VI.getCanvas().textActions.toEditMode()},mouseDown:function mouseDown(Tn,Dn,Qn,Hn){var Gn=screenToPt(Qn,Hn);Un.focus(),setCursorFromPoint(Gn.x,Gn.y),zn=Qn,Kn=Hn},mouseMove:function mouseMove(Tn,Un){var Dn=screenToPt(Tn,Un);setEndSelectionFromPoint(Dn.x,Dn.y)},mouseUp:function mouseUp(Un,Dn,Qn){var Hn=screenToPt(Dn,Qn);setEndSelectionFromPoint(Hn.x,Hn.y,!0),Un.target!==Tn&&Dn<zn+2&&Dn>zn-2&&Qn<Kn+2&&Qn>Kn-2&&VI.getCanvas().textActions.toSelectMode(!0)},setCursor:setCursor,toEditMode:function toEditMode(Un,Dn){if($n=!1,VI.setCurrentMode("textedit"),VI.getCanvas().selectorManager.requestSelector(Tn).showGrips(!1),VI.getCanvas().selectorManager.requestSelector(Tn),VI.getCanvas().textActions.init(),GI(Tn).css("cursor","text"),arguments.length){var Qn=screenToPt(Un,Dn);setCursorFromPoint(Qn.x,Qn.y)}else setCursor();setTimeout((function(){$n=!0}),300)},toSelectMode:function toSelectMode(Gn){VI.setCurrentMode("select"),clearInterval(Hn),Hn=null,Qn&&GI(Qn).attr("display","none"),Dn&&GI(Dn).attr("visibility","hidden"),GI(Tn).css("cursor","move"),Gn&&(VI.getCanvas().clearSelection(),GI(Tn).css("cursor","move"),VI.call("selected",[Tn]),VI.getCanvas().addToSelection([Tn],!0)),Tn&&!Tn.textContent.length&&VI.getCanvas().deleteSelectedElements(),GI(Un).blur(),Tn=!1},setInputElem:function setInputElem(Tn){Un=Tn},clear:function clear(){"textedit"===VI.getCurrentMode()&&VI.getCanvas().textActions.toSelectMode()},init:function init(Dn){if(Tn){var Qn,Hn;if(!Tn.parentNode){var zn=VI.getSelectedElements();Tn=zn[0],VI.getCanvas().selectorManager.requestSelector(Tn).showGrips(!1)}var Kn=Tn.textContent.length,$n=Tn.getAttribute("transform");for(Gn=ET(Tn),Vn=$n?KE(Tn):null,(Wn=[]).length=Kn,Un.focus(),GI(Tn).unbind("dblclick",selectWord).dblclick(selectWord),Kn||(Hn={x:Gn.x+Gn.width/2,width:0}),Qn=0;Qn<Kn;Qn++){var Xn=Tn.getStartPositionOfChar(Qn);if(Hn=Tn.getEndPositionOfChar(Qn),!ZA()){var Yn=VI.getCurrentZoom(),Jn=VI.getCanvas().contentW*Yn;Xn.x-=Jn,Hn.x-=Jn,Xn.x/=Yn,Hn.x/=Yn}Wn[Qn]={x:Xn.x,y:Gn.y,width:Hn.x-Xn.x,height:Gn.height}}Wn.push({x:Hn.x,width:0}),setSelection(Un.selectionStart,Un.selectionEnd,!0)}}}}(),KI=WT,qI=jQueryPluginSVG(jQuery),$I=null,WI=function getBsplinePoint(Tn){var Un={x:0,y:0},Dn=$I.getControllPoint2("x"),Qn=$I.getControllPoint2("y"),Hn=$I.getControllPoint1("x"),Gn=$I.getControllPoint1("y"),Vn=$I.getStart("x"),zn=$I.getStart("y"),Kn=$I.getEnd("x"),$n=$I.getEnd("y"),Wn=1/6,Xn=Tn*Tn,Yn=Xn*Tn,Jn=[[-1,3,-3,1],[3,-6,3,0],[-3,0,3,0],[1,4,1,0]];return Un.x=Wn*((Dn*Jn[0][0]+Hn*Jn[0][1]+Vn*Jn[0][2]+Kn*Jn[0][3])*Yn+(Dn*Jn[1][0]+Hn*Jn[1][1]+Vn*Jn[1][2]+Kn*Jn[1][3])*Xn+(Dn*Jn[2][0]+Hn*Jn[2][1]+Vn*Jn[2][2]+Kn*Jn[2][3])*Tn+(Dn*Jn[3][0]+Hn*Jn[3][1]+Vn*Jn[3][2]+Kn*Jn[3][3])),Un.y=Wn*((Qn*Jn[0][0]+Gn*Jn[0][1]+zn*Jn[0][2]+$n*Jn[0][3])*Yn+(Qn*Jn[1][0]+Gn*Jn[1][1]+zn*Jn[1][2]+$n*Jn[1][3])*Xn+(Qn*Jn[2][0]+Gn*Jn[2][1]+zn*Jn[2][2]+$n*Jn[2][3])*Tn+(Qn*Jn[3][0]+Gn*Jn[3][1]+zn*Jn[3][2]+$n*Jn[3][3])),{x:Un.x,y:Un.y}},XI=function mouseMoveEvent(Tn){var Un=$I.getSelectedElements(),Dn=$I.getCurrentZoom();if($I.getStarted()&&1!==Tn.button&&!$I.getCanvas().spaceKey){var Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn=Un[0],Zn=jE(Tn.pageX,Tn.pageY,$I.getrootSctm()),er=Zn.x*Dn,tr=Zn.y*Dn,nr=jT($I.getId()),rr=er/Dn,ir=rr,or=tr/Dn,ar=or;switch($I.getCurConfig().gridSnapping&&(ir=GT(ir),ar=GT(ar)),Tn.preventDefault(),$I.getCurrentMode()){case"select":if(null!==Un[0]&&(zn=ir-$I.getStartX(),Kn=ar-$I.getStartY(),$I.getCurConfig().gridSnapping&&(zn=GT(zn),Kn=GT(Kn)),0!==zn||0!==Kn)){for($n=Un.length,Qn=0;Qn<$n&&(Jn=Un[Qn],!zT(Jn));++Qn){var sr=$I.getSVGRoot().createSVGTransform();Yn=OE(Jn),sr.setTranslate(zn,Kn),Yn.numberOfItems?Yn.replaceItem(sr,0):Yn.appendItem(sr),$I.getCanvas().selectorManager.requestSelector(Jn).resize()}$I.getCanvas().call("transition",Un)}break;case"multiselect":rr*=Dn,or*=Dn,QT($I.getRubberBox(),{x:Math.min($I.getRStartX(),rr),y:Math.min($I.getRStartY(),or),width:Math.abs(rr-$I.getRStartX()),height:Math.abs(or-$I.getRStartY())});var lr=Un.slice(),cr=[],ur=$I.getIntersectionList();for($n=ur.length,Qn=0;Qn<$n;++Qn){var dr=ur[Qn];Un.includes(dr)||cr.push(dr);var hr=lr.indexOf(dr);-1!==hr&&lr.splice(hr,1)}lr.length>0&&$I.getCanvas().removeFromSelection(lr),cr.length>0&&$I.getCanvas().addToSelection(cr);break;case"resize":Yn=OE(Jn);var pr=GE(Yn),gr=(Xn=pr?$I.getInitBbox():ET(Jn)).x,fr=Xn.y,Ar=Xn,mr=Ar.width,vr=Ar.height;if(zn=ir-$I.getStartX(),Kn=ar-$I.getStartY(),$I.getCurConfig().gridSnapping&&(zn=GT(zn),Kn=GT(Kn),vr=GT(vr),mr=GT(mr)),Wn=RT(Jn)){var yr=Math.sqrt(zn*zn+Kn*Kn),_r=Math.atan2(Kn,zn)-Wn*Math.PI/180;zn=yr*Math.cos(_r),Kn=yr*Math.sin(_r)}$I.getCurrentResizeMode().includes("n")||$I.getCurrentResizeMode().includes("s")||(Kn=0),$I.getCurrentResizeMode().includes("e")||$I.getCurrentResizeMode().includes("w")||(zn=0);var br=0,wr=0,xr=vr?(vr+Kn)/vr:1,Sr=mr?(mr+zn)/mr:1;$I.getCurrentResizeMode().includes("n")&&(xr=vr?(vr-Kn)/vr:1,wr=vr),$I.getCurrentResizeMode().includes("w")&&(Sr=mr?(mr-zn)/mr:1,br=mr);var Cr=$I.getSVGRoot().createSVGTransform(),kr=$I.getSVGRoot().createSVGTransform(),Br=$I.getSVGRoot().createSVGTransform();if($I.getCurConfig().gridSnapping&&(gr=GT(gr),br=GT(br),fr=GT(fr),wr=GT(wr)),Cr.setTranslate(-(gr+br),-(fr+wr)),Tn.shiftKey&&(1===Sr?Sr=xr:xr=Sr),kr.setScale(Sr,xr),Br.setTranslate(gr+br,fr+wr),pr){var Er=Wn?1:0;Yn.replaceItem(Cr,2+Er),Yn.replaceItem(kr,1+Er),Yn.replaceItem(Br,Number(Er))}else{var Pr=Yn.numberOfItems;Yn.replaceItem(Br,Pr-3),Yn.replaceItem(kr,Pr-2),Yn.replaceItem(Cr,Pr-1)}$I.getCanvas().selectorManager.requestSelector(Jn).resize(),$I.getCanvas().call("transition",Un);break;case"zoom":rr*=Dn,or*=Dn,QT($I.getRubberBox(),{x:Math.min($I.getRStartX()*Dn,rr),y:Math.min($I.getRStartY()*Dn,or),width:Math.abs(rr-$I.getRStartX()*Dn),height:Math.abs(or-$I.getRStartY()*Dn)});break;case"text":QT(nr,{x:ir,y:ar});break;case"line":$I.getCurConfig().gridSnapping&&(ir=GT(ir),ar=GT(ar));var Lr=ir,Tr=ar;Tn.shiftKey&&(Lr=(Hn=qE($I.getStartX(),$I.getStartY(),Lr,Tr)).x,Tr=Hn.y),nr.setAttribute("x2",Lr),nr.setAttribute("y2",Tr);break;case"foreignObject":case"square":case"rect":case"image":var Nr,Ir,Or="square"===$I.getCurrentMode()||Tn.shiftKey,Fr=Math.abs(ir-$I.getStartX()),Ur=Math.abs(ar-$I.getStartY());Or?(Fr=Ur=Math.max(Fr,Ur),Nr=$I.getStartX()<ir?$I.getStartX():$I.getStartX()-Fr,Ir=$I.getStartY()<ar?$I.getStartY():$I.getStartY()-Ur):(Nr=Math.min($I.getStartX(),ir),Ir=Math.min($I.getStartY(),ar)),$I.getCurConfig().gridSnapping&&(Fr=GT(Fr),Ur=GT(Ur),Nr=GT(Nr),Ir=GT(Ir)),QT(nr,{width:Fr,height:Ur,x:Nr,y:Ir});break;case"circle":var Mr=qI(nr).attr(["cx","cy"]);Gn=Mr.cx,Vn=Mr.cy;var Rr=Math.sqrt((ir-Gn)*(ir-Gn)+(ar-Vn)*(ar-Vn));$I.getCurConfig().gridSnapping&&(Rr=GT(Rr)),nr.setAttribute("r",Rr);break;case"ellipse":var Dr=qI(nr).attr(["cx","cy"]);Gn=Dr.cx,Vn=Dr.cy,$I.getCurConfig().gridSnapping&&(ir=GT(ir),Gn=GT(Gn),ar=GT(ar),Vn=GT(Vn)),nr.setAttribute("rx",Math.abs(ir-Gn));var jr=Math.abs(Tn.shiftKey?ir-Gn:ar-Vn);nr.setAttribute("ry",jr);break;case"fhellipse":case"fhrect":$I.setFreehand("minx",Math.min(rr,$I.getFreehand("minx"))),$I.setFreehand("maxx",Math.max(rr,$I.getFreehand("maxx"))),$I.setFreehand("miny",Math.min(or,$I.getFreehand("miny"))),$I.setFreehand("maxy",Math.max(or,$I.getFreehand("maxy")));case"fhpath":if($I.setEnd("x",rr),$I.setEnd("y",or),$I.getControllPoint2("x")&&$I.getControllPoint2("y"))for(Qn=0;Qn<$I.getStepCount()-1;Qn++)if($I.setParameter(Qn/$I.getStepCount()),$I.setNextParameter((Qn+1)/$I.getStepCount()),$I.setbSpline(WI($I.getNextParameter())),$I.setNextPos({x:$I.getbSpline("x"),y:$I.getbSpline("y")}),$I.setbSpline(WI($I.getParameter())),$I.setSumDistance($I.getSumDistance()+Math.sqrt(($I.getNextPos("x")-$I.getbSpline("x"))*($I.getNextPos("x")-$I.getbSpline("x"))+($I.getNextPos("y")-$I.getbSpline("y"))*($I.getNextPos("y")-$I.getbSpline("y")))),$I.getSumDistance()>$I.getThreSholdDist()){$I.setSumDistance($I.getSumDistance()-$I.getThreSholdDist());var Qr=$I.getSVGContent().createSVGPoint();Qr.x=$I.getbSpline("x"),Qr.y=$I.getbSpline("y"),nr.points.appendItem(Qr)}$I.setControllPoint2("x",$I.getControllPoint1("x")),$I.setControllPoint2("y",$I.getControllPoint1("y")),$I.setControllPoint1("x",$I.getStart("x")),$I.setControllPoint1("y",$I.getStart("y")),$I.setStart({x:$I.getEnd("x"),y:$I.getEnd("y")});break;case"path":case"pathedit":if(ir*=Dn,ar*=Dn,$I.getCurConfig().gridSnapping&&(ir=GT(ir),ar=GT(ar),$I.setStartX(GT($I.getStartX())),$I.setStartY(GT($I.getStartY()))),Tn.shiftKey){var Hr,Gr,Vr=ON;Vr?(Hr=Vr.dragging?Vr.dragging[0]:$I.getStartX(),Gr=Vr.dragging?Vr.dragging[1]:$I.getStartY()):(Hr=$I.getStartX(),Gr=$I.getStartY());var zr=Hn=qE(Hr,Gr,ir,ar);ir=zr.x,ar=zr.y}$I.getRubberBox()&&"none"!==$I.getRubberBox().getAttribute("display")&&(rr*=Dn,or*=Dn,QT($I.getRubberBox(),{x:Math.min($I.getRStartX()*Dn,rr),y:Math.min($I.getRStartY()*Dn,or),width:Math.abs(rr-$I.getRStartX()*Dn),height:Math.abs(or-$I.getRStartY()*Dn)})),$I.getCanvas().pathActions.mouseMove(ir,ar);break;case"textedit":ir*=Dn,ar*=Dn,$I.getCanvas().textActions.mouseMove(er,tr);break;case"rotate":Gn=(Xn=ET(Jn)).x+Xn.width/2,Vn=Xn.y+Xn.height/2;var Kr=KE(Jn),qr=jE(Gn,Vn,Kr);if(Gn=qr.x,Vn=qr.y,Wn=(Math.atan2(Vn-ar,Gn-ir)*(180/Math.PI)-90)%360,$I.getCurConfig().gridSnapping&&(Wn=GT(Wn)),Tn.shiftKey){Wn=45*Math.round(Wn/45)}$I.getCanvas().setRotationAngle(Wn<-180?360+Wn:Wn,!0),$I.getCanvas().call("transition",Un)}$I.getCanvas().runExtensions("mouseMove",{event:Tn,mouse_x:er,mouse_y:tr,selected:Jn})}},YI=function mouseUpEvent(Tn){var Un=$I.getSelectedElements(),Dn=$I.getCurrentZoom();if(2!==Tn.button){var Qn=$I.getJustSelected();if($I.setJustSelected(null),$I.getStarted()){var Hn,Gn,Vn=jE(Tn.pageX,Tn.pageY,$I.getrootSctm()),zn=Vn.x*Dn,Kn=Vn.y*Dn,$n=zn/Dn,Wn=Kn/Dn,Xn=jT($I.getId()),Yn=!1,Jn=$n,Zn=Wn;switch($I.setStarted(!1),$I.getCurrentMode()){case"resize":case"multiselect":zT($I.getRubberBox())||($I.getRubberBox().setAttribute("display","none"),$I.setCurBBoxes([])),$I.setCurrentMode("select");case"select":if(!zT(Un[0])){if(zT(Un[1])){var er=Un[0];switch(er.tagName){case"g":case"use":case"image":case"foreignObject":break;default:$I.setCurProperties("fill",er.getAttribute("fill")),$I.setCurProperties("fill_opacity",er.getAttribute("fill-opacity")),$I.setCurProperties("stroke",er.getAttribute("stroke")),$I.setCurProperties("stroke_opacity",er.getAttribute("stroke-opacity")),$I.setCurProperties("stroke_width",er.getAttribute("stroke-width")),$I.setCurProperties("stroke_dasharray",er.getAttribute("stroke-dasharray")),$I.setCurProperties("stroke_linejoin",er.getAttribute("stroke-linejoin")),$I.setCurProperties("stroke_linecap",er.getAttribute("stroke-linecap"))}"text"===er.tagName&&($I.setCurText("font_size",er.getAttribute("font-size")),$I.setCurText("font_family",er.getAttribute("font-family"))),$I.getCanvas().selectorManager.requestSelector(er).showGrips(!0)}if($I.getCanvas().recalculateAllSelectedDimensions(),Jn!==$I.getRStartX()||Zn!==$I.getRStartY())for(var tr=Un.length,nr=0;nr<tr&&!zT(Un[nr]);++nr)Un[nr].firstChild||$I.getCanvas().selectorManager.requestSelector(Un[nr]).resize();else Gn=Tn.target,"path"===Un[0].nodeName&&zT(Un[1])?$I.getCanvas().pathActions.select(Un[0]):Tn.shiftKey&&Qn!==Gn&&$I.getCanvas().removeFromSelection([Gn]);if(em()){var rr=Un[0];rr&&(rr.removeAttribute("style"),wT(rr,(function(Tn){Tn.removeAttribute("style")})))}}return;case"zoom":zT($I.getRubberBox())||$I.getRubberBox().setAttribute("display","none");var ir=Tn.shiftKey?.5:2;return void $I.getCanvas().call("zoomed",{x:Math.min($I.getRStartX(),Jn),y:Math.min($I.getRStartY(),Zn),width:Math.abs(Jn-$I.getRStartX()),height:Math.abs(Zn-$I.getRStartY()),factor:ir});case"fhpath":$I.setSumDistance(0),$I.setControllPoint2("x",0),$I.setControllPoint2("y",0),$I.setControllPoint1("x",0),$I.setControllPoint1("y",0),$I.setStart({x:0,y:0}),$I.setEnd("x",0),$I.setEnd("y",0);var or=Xn.getAttribute("points"),ar=or.indexOf(",");(Yn=ar>=0?or.includes(",",ar+1):or.includes(" ",or.indexOf(" ")+1))&&(Xn=$I.getCanvas().pathActions.smoothPolylineIntoPath(Xn));break;case"line":Hn=qI(Xn).attr(["x1","x2","y1","y2"]),Yn=Hn.x1!==Hn.x2||Hn.y1!==Hn.y2;break;case"foreignObject":case"square":case"rect":case"image":Hn=qI(Xn).attr(["width","height"]),Yn=Hn.width||Hn.height||"image"===$I.getCurrentMode();break;case"circle":Yn="0"!==Xn.getAttribute("r");break;case"ellipse":Hn=qI(Xn).attr(["rx","ry"]),Yn=Hn.rx||Hn.ry;break;case"fhellipse":$I.getFreehand("maxx")-$I.getFreehand("minx")>0&&$I.getFreehand("maxy")-$I.getFreehand("miny")>0&&(Xn=$I.getCanvas().addSVGElementFromJson({element:"ellipse",curStyles:!0,attr:{cx:($I.getFreehand("minx")+$I.getFreehand("maxx"))/2,cy:($I.getFreehand("miny")+$I.getFreehand("maxy"))/2,rx:($I.getFreehand("maxx")-$I.getFreehand("minx"))/2,ry:($I.getFreehand("maxy")-$I.getFreehand("miny"))/2,id:$I.getId()}}),$I.getCanvas().call("changed",[Xn]),Yn=!0);break;case"fhrect":$I.getFreehand("maxx")-$I.getFreehand("minx")>0&&$I.getFreehand("maxy")-$I.getFreehand("miny")>0&&(Xn=$I.getCanvas().addSVGElementFromJson({element:"rect",curStyles:!0,attr:{x:$I.getFreehand("minx"),y:$I.getFreehand("miny"),width:$I.getFreehand("maxx")-$I.getFreehand("minx"),height:$I.getFreehand("maxy")-$I.getFreehand("miny"),id:$I.getId()}}),$I.getCanvas().call("changed",[Xn]),Yn=!0);break;case"text":Yn=!0,$I.getCanvas().selectOnly([Xn]),$I.getCanvas().textActions.start(Xn);break;case"path":Xn=null,$I.setStarted(!0);var sr=$I.getCanvas().pathActions.mouseUp(Tn,Xn,zn,Kn);Xn=sr.element,Yn=sr.keep;break;case"pathedit":Yn=!0,Xn=null,$I.getCanvas().pathActions.mouseUp(Tn);break;case"textedit":Yn=!1,Xn=null,$I.getCanvas().textActions.mouseUp(Tn,zn,Kn);break;case"rotate":Yn=!0,Xn=null,$I.setCurrentMode("select");var lr=$I.getCanvas().undoMgr.finishUndoableChange();lr.isEmpty()||$I.addCommandToHistory(lr),$I.getCanvas().recalculateAllSelectedDimensions(),$I.getCanvas().call("changed",Un)}var cr=$I.getCanvas().runExtensions("mouseUp",{event:Tn,mouse_x:zn,mouse_y:Kn},!0);if(qI.each(cr,(function(Tn,Un){Un&&(Yn=Un.keep||Yn,Xn=Un.element,$I.setStarted(Un.started||$I.getStarted()))})),Yn||zT(Xn)){if(!zT(Xn)){$I.getCanvas().addedNew=!0;var ur,dr=.2,hr=$I.getCanvas().getStyle(),pr=$I.getOpacAni();if(pr.beginElement&&Number.parseFloat(Xn.getAttribute("opacity"))!==hr.opacity){ur=qI(pr).clone().attr({to:hr.opacity,dur:dr}).appendTo(Xn);try{ur[0].beginElement()}catch(Tn){}}else dr=0;setTimeout((function(){ur&&ur.remove(),Xn.setAttribute("opacity",hr.opacity),Xn.setAttribute("style","pointer-events:inherit"),HT(Xn),"path"===$I.getCurrentMode()?$I.getCanvas().pathActions.toEditMode(Xn):$I.getCurConfig().selectNew&&$I.getCanvas().selectOnly([Xn],!0),$I.addCommandToHistory(new KI(Xn)),$I.getCanvas().call("changed",[Xn])}),1e3*dr)}}else{for($I.getCanvas().getCurrentDrawing().releaseId($I.getId()),Xn.remove(),Xn=null,Gn=Tn.target;Gn&&Gn.parentNode&&Gn.parentNode.parentNode&&"g"===Gn.parentNode.parentNode.tagName;)Gn=Gn.parentNode;"path"===$I.getCurrentMode()&&$I.getDrawnPath()||!Gn||!Gn.parentNode||"selectorParentGroup"===Gn.parentNode.id||"svgcanvas"===Gn.id||"svgroot"===Gn.id||($I.getCanvas().setMode("select"),$I.getCanvas().selectOnly([Gn],!0))}$I.setStartTransform(null)}}},JI=function dblClickEvent(Tn){var Un=$I.getSelectedElements(),Dn=Tn.target.parentNode,Qn=$I.getCanvas().getMouseTarget(Tn),Hn=Qn.tagName;if("text"===Hn&&"textedit"!==$I.getCurrentMode()){var Gn=jE(Tn.pageX,Tn.pageY,$I.getrootSctm());$I.getCanvas().textActions.select(Qn,Gn.x,Gn.y)}Dn!==$I.getCurrentGroup()&&("g"!==Hn&&"a"!==Hn||!RT(Qn)||($I.getCanvas().pushGroupProperties(Qn),Qn=Un[0],$I.getCanvas().clearSelection(!0)),$I.getCurrentGroup()&&vI(),"g"!==Dn.tagName&&"a"!==Dn.tagName||Dn===$I.getCanvas().getCurrentDrawing().getCurrentLayer()||Qn===$I.getCanvas().selectorManager.selectorParentGroup||yI(Qn))},ZI=function mouseDownEvent(Tn){var Un=$I.getSelectedElements(),Dn=$I.getCurrentZoom(),Qn=$I.getCanvas().getStyle();if(!$I.getCanvas().spaceKey&&1!==Tn.button){var Hn=2===Tn.button;Tn.altKey&&$I.getCanvas().cloneSelectedElements(0,0),$I.setRootSctm(qI("#svgcontent g")[0].getScreenCTM().inverse());var Gn=jE(Tn.pageX,Tn.pageY,$I.getrootSctm()),Vn=Gn.x*Dn,zn=Gn.y*Dn;Tn.preventDefault(),Hn&&($I.setCurrentMode("select"),$I.setLastClickPoint(Gn));var Kn=Vn/Dn,$n=zn/Dn,Wn=$I.getCanvas().getMouseTarget(Tn);"a"===Wn.tagName&&1===Wn.childNodes.length&&(Wn=Wn.firstChild);var Xn=Kn;$I.setStartX(Kn),$I.setRStartX(Kn);var Yn=$n;if($I.setStartY($n),$I.setRStartY($n),$I.getCurConfig().gridSnapping&&(Kn=GT(Kn),$n=GT($n),$I.setStartX(GT($I.getStartX())),$I.setStartY(GT($I.getStartY()))),Wn===$I.getCanvas().selectorManager.selectorParentGroup&&!zT(Un[0])){var Jn=Tn.target,Zn=$I.elData(Jn,"type");"rotate"===Zn?$I.setCurrentMode("rotate"):"resize"===Zn&&($I.setCurrentMode("resize"),$I.setCurrentResizeMode($I.elData(Jn,"dir"))),Wn=Un[0]}$I.setStartTransform(Wn.getAttribute("transform"));var er=OE(Wn);switch($I.getCurrentMode()){case"select":if($I.setStarted(!0),$I.setCurrentResizeMode("none"),Hn&&$I.setStarted(!1),Wn!==$I.getSVGRoot()){if(Un.includes(Wn)||(Tn.shiftKey||$I.getCanvas().clearSelection(!0),$I.getCanvas().addToSelection([Wn]),$I.setJustSelected(Wn),$I.getCanvas().pathActions.clear()),!Hn){var tr,nr=_createForOfIteratorHelper(Un);try{for(nr.s();!(tr=nr.n()).done;){var rr=tr.value;if(!zT(rr)){var ir=OE(rr);ir.numberOfItems?ir.insertItemBefore($I.getSVGRoot().createSVGTransform(),0):ir.appendItem($I.getSVGRoot().createSVGTransform())}}}catch(Tn){nr.e(Tn)}finally{nr.f()}}}else Hn||($I.getCanvas().clearSelection(),$I.setCurrentMode("multiselect"),zT($I.getRubberBox())&&$I.setRubberBox($I.getCanvas().selectorManager.getRubberBandBox()),$I.setRStartX($I.getRStartX()*Dn),$I.setRStartY($I.getRStartY()*Dn),QT($I.getRubberBox(),{x:$I.getRStartX(),y:$I.getRStartY(),width:0,height:0,display:"inline"}));break;case"zoom":$I.setStarted(!0),zT($I.getRubberBox())&&$I.setRubberBox($I.getCanvas().selectorManager.getRubberBandBox()),QT($I.getRubberBox(),{x:Xn*Dn,y:Xn*Dn,width:0,height:0,display:"inline"});break;case"resize":$I.setStarted(!0),$I.setStartX(Kn),$I.setStartY($n),$I.setInitBbox(ET(qI("#selectedBox0")[0]));var or={};qI.each($I.getInitBbox(),(function(Tn,Un){or[Tn]=Un/Dn})),$I.setInitBbox(or);var ar=RT(Wn)?1:0;if(GE(er))er.insertItemBefore($I.getSVGRoot().createSVGTransform(),ar),er.insertItemBefore($I.getSVGRoot().createSVGTransform(),ar),er.insertItemBefore($I.getSVGRoot().createSVGTransform(),ar);else if(er.appendItem($I.getSVGRoot().createSVGTransform()),er.appendItem($I.getSVGRoot().createSVGTransform()),er.appendItem($I.getSVGRoot().createSVGTransform()),em()){var sr,lr=XA();lr&&(sr=function delayedStroke(Tn){var Un=Tn.getAttribute("stroke");Tn.removeAttribute("stroke"),null!==Un&&setTimeout((function(){Tn.setAttribute("stroke",Un)}),0)}),Wn.style.vectorEffect="non-scaling-stroke",lr&&sr(Wn);for(var cr=Wn.getElementsByTagName("*"),ur=cr.length,dr=0;dr<ur;dr++)cr[dr].style&&(cr[dr].style.vectorEffect="non-scaling-stroke",lr&&sr(cr[dr]))}break;case"fhellipse":case"fhrect":case"fhpath":$I.setStart({x:Xn,y:Yn}),$I.setControllPoint1("x",0),$I.setControllPoint1("y",0),$I.setControllPoint2("x",0),$I.setControllPoint2("y",0),$I.setStarted(!0),$I.setDAttr(Xn+","+Yn+" "),$I.getCanvas().addSVGElementFromJson({element:"polyline",curStyles:!0,attr:{points:$I.getDAttr(),id:$I.getCanvas().getNextId(),fill:"none",opacity:Qn.opacity/2,"stroke-linecap":"round",style:"pointer-events:none"}}),$I.setFreehand("minx",Xn),$I.setFreehand("maxx",Xn),$I.setFreehand("miny",Yn),$I.setFreehand("maxy",Yn);break;case"image":$I.setStarted(!0);var hr=$I.getCanvas().addSVGElementFromJson({element:"image",attr:{x:Kn,y:$n,width:0,height:0,id:$I.getCanvas().getNextId(),opacity:Qn.opacity/2,style:"pointer-events:inherit"}});CT(hr,$I.getLastGoodImgUrl()),VT(hr);break;case"square":case"rect":$I.setStarted(!0),$I.setStartX(Kn),$I.setStartY($n),$I.getCanvas().addSVGElementFromJson({element:"rect",curStyles:!0,attr:{x:Kn,y:$n,width:0,height:0,id:$I.getCanvas().getNextId(),opacity:Qn.opacity/2}});break;case"line":$I.setStarted(!0);var pr=0===Number(Qn.stroke_width)?1:Qn.stroke_width;$I.getCanvas().addSVGElementFromJson({element:"line",curStyles:!0,attr:{x1:Kn,y1:$n,x2:Kn,y2:$n,id:$I.getCanvas().getNextId(),stroke:Qn.stroke,"stroke-width":pr,"stroke-dasharray":Qn.stroke_dasharray,"stroke-linejoin":Qn.stroke_linejoin,"stroke-linecap":Qn.stroke_linecap,"stroke-opacity":Qn.stroke_opacity,fill:"none",opacity:Qn.opacity/2,style:"pointer-events:none"}});break;case"circle":$I.setStarted(!0),$I.getCanvas().addSVGElementFromJson({element:"circle",curStyles:!0,attr:{cx:Kn,cy:$n,r:0,id:$I.getCanvas().getNextId(),opacity:Qn.opacity/2}});break;case"ellipse":$I.setStarted(!0),$I.getCanvas().addSVGElementFromJson({element:"ellipse",curStyles:!0,attr:{cx:Kn,cy:$n,rx:0,ry:0,id:$I.getCanvas().getNextId(),opacity:Qn.opacity/2}});break;case"text":$I.setStarted(!0),$I.getCanvas().addSVGElementFromJson({element:"text",curStyles:!0,attr:{x:Kn,y:$n,id:$I.getCanvas().getNextId(),fill:$I.getCurText("fill"),"stroke-width":$I.getCurText("stroke_width"),"font-size":$I.getCurText("font_size"),"font-family":$I.getCurText("font_family"),"text-anchor":"middle","xml:space":"preserve",opacity:Qn.opacity}});break;case"path":case"pathedit":$I.setStartX($I.getStartX()*Dn),$I.setStartY($I.getStartY()*Dn),$I.getCanvas().pathActions.mouseDown(Tn,Wn,$I.getStartX(),$I.getStartY()),$I.setStarted(!0);break;case"textedit":$I.setStartX($I.getStartX()*Dn),$I.setStartY($I.getStartY()*Dn),$I.getCanvas().textActions.mouseDown(Tn,Wn,$I.getStartX(),$I.getStartY()),$I.setStarted(!0);break;case"rotate":$I.setStarted(!0),$I.getCanvas().undoMgr.beginUndoableChange("transform",Un)}var gr=$I.getCanvas().runExtensions("mouseDown",{event:Tn,start_x:$I.getStartX(),start_y:$I.getStartY(),selectedElements:Un},!0);qI.each(gr,(function(Tn,Un){Un&&Un.started&&$I.setStarted(!0)}))}},eO=function DOMMouseScrollEvent(Tn){var Un=$I.getCurrentZoom();if(Tn.shiftKey){Tn.preventDefault();var Dn=Tn.originalEvent;$I.setRootSctm(qI("#svgcontent g")[0].getScreenCTM().inverse());var Qn=qI("#workarea"),Hn=$I.getCurConfig().showRulers?16:0,Gn=jE(Dn.pageX,Dn.pageY,$I.getrootSctm()),Vn=Qn.width(),zn=Qn.height(),Kn=Vn-15-Hn,$n=zn-15-Hn,Wn=Kn*$I.getrootSctm().a,Xn=$n*$I.getrootSctm().d,Yn=Qn.offset(),Jn=Yn.left+Hn,Zn=Yn.top+Hn,er=Dn.wheelDelta?Dn.wheelDelta:Dn.detail?-Dn.detail:0;if(er){var tr,nr,rr=Math.max(3/4,Math.min(4/3,er));rr>1?(tr=Math.ceil(Kn/Wn*rr*100)/100,nr=Math.ceil($n/Xn*rr*100)/100):(tr=Math.floor(Kn/Wn*rr*100)/100,nr=Math.floor($n/Xn*rr*100)/100);var ir=Math.min(tr,nr);if((ir=Math.min(10,Math.max(.01,ir)))!==Un){rr=ir/Un;var or=jE(Jn,Zn,$I.getrootSctm()),ar={x:(Gn.x-(Gn.x-or.x)/rr)*ir-Hn+Vn/2,y:(Gn.y-(Gn.y-or.y)/rr)*ir-Hn+zn/2};$I.getCanvas().setZoom(ir),document.getElementById("zoom").value=(100*ir).toFixed(1),$I.getCanvas().call("updateCanvas",{center:!1,newCtr:ar}),$I.getCanvas().call("zoomDone")}}}},tO=null,nO=null,rO=function getJsonFromSvgElements(Tn){if(3===Tn.nodeType)return Tn.nodeValue;for(var Un,Dn={element:Tn.tagName,attr:{},children:[]},Qn=0;Un=Tn.attributes[Qn];Qn++)Dn.attr[Un.name]=Un.value;for(var Hn,Gn=0;Hn=Tn.childNodes[Gn];Gn++)Dn.children[Gn]=getJsonFromSvgElements(Hn);return Dn},iO=function addSVGElementsFromJson(Tn){if("string"==typeof Tn)return nO.createTextNode(Tn);var Un=jT(Tn.attr.id),Dn=tO.getDrawing().getCurrentLayer();if(Un&&Tn.element!==Un.tagName&&(Un.remove(),Un=null),!Un){var Qn=Tn.namespace||Zf.SVG;Un=nO.createElementNS(Qn,Tn.element),Dn&&(tO.getCurrentGroup()||Dn).append(Un)}var Hn=tO.getCurShape();return Tn.curStyles&&QT(Un,{fill:Hn.fill,stroke:Hn.stroke,"stroke-width":Hn.stroke_width,"stroke-dasharray":Hn.stroke_dasharray,"stroke-linejoin":Hn.stroke_linejoin,"stroke-linecap":Hn.stroke_linecap,"stroke-opacity":Hn.stroke_opacity,"fill-opacity":Hn.fill_opacity,opacity:Hn.opacity/2,style:"pointer-events:inherit"}),QT(Un,Tn.attr),HT(Un),Tn.children&&Tn.children.forEach((function(Tn){Un.append(addSVGElementsFromJson(Tn))})),Un},oO=jQueryPluginSVG(jQuery),aO=WT,sO=XT,lO=YT,cO=JT,uO=null,dO=function getResolutionMethod(){var Tn=uO.getCurrentZoom();return{w:uO.getSVGContent().getAttribute("width")/Tn,h:uO.getSVGContent().getAttribute("height")/Tn,zoom:Tn}},hO=function getTitleMethod(Tn){var Un=uO.getSelectedElements();if(Tn=Tn||Un[0]){var Dn,Qn=_createForOfIteratorHelper((Tn=oO(Tn).data("gsvg")||oO(Tn).data("symbol")||Tn).childNodes);try{for(Qn.s();!(Dn=Qn.n()).done;){var Hn=Dn.value;if("title"===Hn.nodeName)return Hn.textContent}}catch(Tn){Qn.e(Tn)}finally{Qn.f()}return""}},pO=function setGroupTitleMethod(Tn){var Un=uO.getSelectedElements()[0];Un=oO(Un).data("gsvg")||Un;var Dn,Qn=oO(Un).children("title"),Hn=new cO("Set Label");if(Tn.length)Qn.length?(Dn=Qn[0],Hn.addSubCommand(new lO(Dn,{"#text":Dn.textContent})),Dn.textContent=Tn):((Dn=uO.getDOMDocument().createElementNS(Zf.SVG,"title")).textContent=Tn,oO(Un).prepend(Dn),Hn.addSubCommand(new aO(Dn)));else{var Gn=Qn.nextSibling;Hn.addSubCommand(new sO(Qn[0],Gn,Un)),Qn.remove()}uO.addCommandToHistory(Hn)},gO=function setDocumentTitleMethod(Tn){var Un,Dn=uO.getSVGContent().childNodes,Qn=!1,Hn="",Gn=new cO("Change Image Title"),Vn=_createForOfIteratorHelper(Dn);try{for(Vn.s();!(Un=Vn.n()).done;){var zn=Un.value;if("title"===zn.nodeName){Hn=(Qn=zn).textContent;break}}}catch(Tn){Vn.e(Tn)}finally{Vn.f()}Qn||(Qn=uO.getDOMDocument().createElementNS(Zf.SVG,"title"),uO.getSVGContent().insertBefore(Qn,uO.getSVGContent().firstChild)),Tn.length?Qn.textContent=Tn:Qn.remove(),Gn.addSubCommand(new lO(Qn,{"#text":Hn})),uO.addCommandToHistory(Gn)},fO=function setResolutionMethod(Tn,Un){var Dn,Qn=uO.getCurrentZoom(),Hn=uO.getCanvas().getResolution(),Gn=Hn.w,Vn=Hn.h;if("fit"===Tn){var zn=UT();if(!zn)return!1;Dn=new cO("Fit Canvas to Content");var Kn=FT();uO.getCanvas().addToSelection(Kn);var $n=[],Wn=[];oO.each(Kn,(function(Tn,Un){$n.push(-1*zn.x),Wn.push(-1*zn.y)}));var Xn=uO.getCanvas().moveSelectedElements($n,Wn,!0);Dn.addSubCommand(Xn),uO.getCanvas().clearSelection(),Tn=Math.round(zn.width),Un=Math.round(zn.height)}return Tn===Gn&&Un===Vn||(Dn||(Dn=new cO("Change Image Dimensions")),Tn=cA("width",Tn),Un=cA("height",Un),uO.getSVGContent().setAttribute("width",Tn),uO.getSVGContent().setAttribute("height",Un),this.contentW=Tn,this.contentH=Un,Dn.addSubCommand(new lO(uO.getSVGContent(),{width:Gn,height:Vn})),uO.getSVGContent().setAttribute("viewBox",[0,0,Tn/Qn,Un/Qn].join(" ")),Dn.addSubCommand(new lO(uO.getSVGContent(),{viewBox:["0 0",Gn,Vn].join(" ")})),uO.addCommandToHistory(Dn),uO.call("changed",[uO.getSVGContent()])),!0},AO=function getEditorNSMethod(Tn){return Tn&&uO.getSVGContent().setAttribute("xmlns:se",Zf.SE),Zf.SE},mO=function setBBoxZoomMethod(Tn,Un,Dn){var Qn,Hn=uO.getCurrentZoom(),Gn=uO.getSelectedElements(),Vn=.85,zn=function calcZoom(Tn){if(!Tn)return!1;var Qn=Math.round(Un/Tn.width*100*Vn)/100,Hn=Math.round(Dn/Tn.height*100*Vn)/100,Gn=Math.min(Qn,Hn);return uO.getCanvas().setZoom(Gn),{zoom:Gn,bbox:Tn}};if("object"===_typeof(Tn)){if(0===(Qn=Tn).width||0===Qn.height){var Kn=Qn.zoom?Qn.zoom:Hn*Qn.factor;return uO.getCanvas().setZoom(Kn),{zoom:Hn,bbox:Qn}}return zn(Qn)}switch(Tn){case"selection":if(!Gn[0])return;var $n=oO.map(Gn,(function(Tn){if(Tn)return Tn}));Qn=UT($n);break;case"canvas":var Wn=uO.getCanvas().getResolution();Vn=.95,Qn={width:Wn.w,height:Wn.h,x:0,y:0};break;case"content":Qn=UT();break;case"layer":Qn=UT(FT(uO.getCanvas().getCurrentDrawing().getCurrentLayer()));break;default:return}return zn(Qn)},vO=function setZoomMethod(Tn){var Un=uO.getSelectedElements(),Dn=uO.getCanvas().getResolution();uO.getSVGContent().setAttribute("viewBox","0 0 "+Dn.w/Tn+" "+Dn.h/Tn),uO.setCurrentZoom(Tn),oO.each(Un,(function(Tn,Un){Un&&uO.getCanvas().selectorManager.requestSelector(Un).resize()})),uO.getCanvas().pathActions.zoomChange(),uO.getCanvas().runExtensions("zoomChanged",Tn)},yO=function setColorMethod(Tn,Un,Dn){var Qn=uO.getSelectedElements();uO.setCurShape(Tn,Un),uO.setCurProperties(Tn+"_paint",{type:"solidColor"});var Hn=[];function addNonG(Tn){"g"!==Tn.nodeName&&Hn.push(Tn)}for(var Gn=Qn.length;Gn--;){var Vn=Qn[Gn];Vn&&("g"===Vn.tagName?wT(Vn,addNonG):"fill"===Tn?"polyline"!==Vn.tagName&&"line"!==Vn.tagName&&Hn.push(Vn):Hn.push(Vn))}Hn.length>0&&(Dn?uO.changeSelectedAttributeNoUndoMethod(Tn,Un,Hn):(uO.getCanvas().changeSelectedAttribute(Tn,Un,Hn),uO.call("changed",Hn)))},_O=function setGradientMethod(Tn){if(uO.getCurProperties(Tn+"_paint")&&"solidColor"!==uO.getCurProperties(Tn+"_paint").type){var Un=uO.getCanvas()[Tn+"Grad"],Dn=bO(Un),Qn=kT();Dn?Un=Dn:(Un=Qn.appendChild(uO.getDOMDocument().importNode(Un,!0))).id=uO.getCanvas().getNextId(),uO.getCanvas().setColor(Tn,"url(#"+Un.id+")")}},bO=function findDuplicateGradient(Tn){for(var Un=kT(),Dn=oO(Un).find("linearGradient, radialGradient"),Qn=Dn.length,Hn=["r","cx","cy","fx","fy"];Qn--;){var Gn=Dn[Qn];if("linearGradient"===Tn.tagName){if(Tn.getAttribute("x1")!==Gn.getAttribute("x1")||Tn.getAttribute("y1")!==Gn.getAttribute("y1")||Tn.getAttribute("x2")!==Gn.getAttribute("x2")||Tn.getAttribute("y2")!==Gn.getAttribute("y2"))continue}else if("continue"===function(){var Un=oO(Tn).attr(Hn),Dn=oO(Gn).attr(Hn),Qn=!1;if(oO.each(Hn,(function(Tn,Hn){Un[Hn]!==Dn[Hn]&&(Qn=!0)})),Qn)return"continue"}())continue;var Vn=Tn.getElementsByTagNameNS(Zf.SVG,"stop"),zn=Gn.getElementsByTagNameNS(Zf.SVG,"stop");if(Vn.length===zn.length){for(var Kn=Vn.length;Kn--;){var $n=Vn[Kn],Wn=zn[Kn];if($n.getAttribute("offset")!==Wn.getAttribute("offset")||$n.getAttribute("stop-opacity")!==Wn.getAttribute("stop-opacity")||$n.getAttribute("stop-color")!==Wn.getAttribute("stop-color"))break}if(-1===Kn)return Gn}}return null},wO=function setPaintMethod(Tn,Un){var Dn=new oO.jGraduate.Paint(Un);switch(this.setPaintOpacity(Tn,Dn.alpha/100,!0),uO.setCurProperties(Tn+"_paint",Dn),Dn.type){case"solidColor":this.setColor(Tn,"none"!==Dn.solidColor?"#"+Dn.solidColor:"none");break;case"linearGradient":case"radialGradient":uO.setCanvas(Tn+"Grad",Dn[Dn.type]),uO.getCanvas().setGradient(Tn)}},xO=function setStrokeWidthMethod(Tn){var Un=uO.getSelectedElements();if(0===Tn&&["line","path"].includes(uO.getCanvas().getMode()))uO.getCanvas().setStrokeWidth(1);else{uO.setCurProperties("stroke_width",Tn);for(var Dn=[],Qn=Un.length;Qn--;){var Hn=Un[Qn];Hn&&("g"===Hn.tagName?wT(Hn,addNonG):Dn.push(Hn))}Dn.length>0&&(uO.getCanvas().changeSelectedAttribute("stroke-width",Tn,Dn),uO.call("changed",Un))}function addNonG(Tn){"g"!==Tn.nodeName&&Dn.push(Tn)}},SO=function setStrokeAttrMethod(Tn,Un){var Dn=uO.getSelectedElements();uO.setCurShape(Tn.replace("-","_"),Un);for(var Qn=[],Hn=Dn.length;Hn--;){var Gn=Dn[Hn];Gn&&("g"===Gn.tagName?wT(Gn,(function(Tn){"g"!==Tn.nodeName&&Qn.push(Tn)})):Qn.push(Gn))}Qn.length>0&&(uO.getCanvas().changeSelectedAttribute(Tn,Un,Qn),uO.call("changed",Dn))},CO=function getBoldMethod(){var Tn=uO.getSelectedElements(),Un=Tn[0];return!(zT(Un)||"text"!==Un.tagName||!zT(Tn[1]))&&"bold"===Un.getAttribute("font-weight")},kO=function setBoldMethod(Tn){var Un=uO.getSelectedElements(),Dn=Un[0];!zT(Dn)&&"text"===Dn.tagName&&zT(Un[1])&&uO.getCanvas().changeSelectedAttribute("font-weight",Tn?"bold":"normal"),Un[0].textContent||uO.getCanvas().textActions.setCursor()},BO=function getItalicMethod(){var Tn=uO.getSelectedElements(),Un=Tn[0];return!(zT(Un)||"text"!==Un.tagName||!zT(Tn[1]))&&"italic"===Un.getAttribute("font-style")},EO=function setItalicMethod(Tn){var Un=uO.getSelectedElements(),Dn=Un[0];!zT(Dn)&&"text"===Dn.tagName&&zT(Un[1])&&uO.getCanvas().changeSelectedAttribute("font-style",Tn?"italic":"normal"),Un[0].textContent||uO.getCanvas().textActions.setCursor()},PO=function setTextAnchorMethod(Tn){var Un=uO.getSelectedElements(),Dn=Un[0];!zT(Dn)&&"text"===Dn.tagName&&zT(Un[1])&&uO.getCanvas().changeSelectedAttribute("text-anchor",Tn),Un[0].textContent||uO.getCanvas().textActions.setCursor()},LO=function getFontFamilyMethod(){return uO.getCurText("font_family")},TO=function setFontFamilyMethod(Tn){var Un=uO.getSelectedElements();uO.setCurText("font_family",Tn),uO.getCanvas().changeSelectedAttribute("font-family",Tn),Un[0]&&!Un[0].textContent&&uO.getCanvas().textActions.setCursor()},NO=function setFontColorMethod(Tn){uO.setCurText("fill",Tn),uO.getCanvas().changeSelectedAttribute("fill",Tn)},IO=function getFontColorMethod(){return uO.getCurText("fill")},OO=function getFontSizeMethod(){return uO.getCurText("font_size")},FO=function setFontSizeMethod(Tn){var Un=uO.getSelectedElements();uO.setCurText("font_size",Tn),uO.getCanvas().changeSelectedAttribute("font-size",Tn),Un[0].textContent||uO.getCanvas().textActions.setCursor()},UO=function getTextMethod(){var Tn=uO.getSelectedElements()[0];return zT(Tn)?"":Tn.textContent},MO=function setTextContentMethod(Tn){uO.getCanvas().changeSelectedAttribute("#text",Tn),uO.getCanvas().textActions.init(Tn),uO.getCanvas().textActions.setCursor()},RO=function setImageURLMethod(Tn){var Un=uO.getSelectedElements()[0];if(Un){var Dn=oO(Un).attr(["width","height"]),Qn=!Dn.width||!Dn.height,Hn=ST(Un);if(Hn!==Tn||Qn){var Gn=new cO("Change Image URL");CT(Un,Tn),Gn.addSubCommand(new lO(Un,{"#href":Hn})),oO(new Image).load((function(){var Tn=oO(Un).attr(["width","height"]);oO(Un).attr({width:this.width,height:this.height}),uO.getCanvas().selectorManager.requestSelector(Un).resize(),Gn.addSubCommand(new lO(Un,Tn)),uO.addCommandToHistory(Gn),uO.call("changed",[Un])})).attr("src",Tn)}}},DO=function setLinkURLMethod(Tn){var Un=uO.getSelectedElements()[0];if(Un){if("a"!==Un.tagName){var Dn=oO(Un).parents("a");if(!Dn.length)return;Un=Dn[0]}var Qn=ST(Un);if(Qn!==Tn){var Hn=new cO("Change Link URL");CT(Un,Tn),Hn.addSubCommand(new lO(Un,{"#href":Qn})),uO.addCommandToHistory(Hn)}}},jO=function setRectRadiusMethod(Tn){var Un=uO.getSelectedElements()[0];if(!zT(Un)&&"rect"===Un.tagName){var Dn=Un.getAttribute("rx");Dn!==String(Tn)&&(Un.setAttribute("rx",Tn),Un.setAttribute("ry",Tn),uO.addCommandToHistory(new lO(Un,{rx:Dn,ry:Dn},"Radius")),uO.call("changed",[Un]))}},QO=function makeHyperlinkMethod(Tn){uO.getCanvas().groupSelectedElements("a",Tn)},HO=function removeHyperlinkMethod(){uO.getCanvas().ungroupSelectedElement()},GO=function setSegTypeMethod(Tn){uO.getCanvas().pathActions.setSegType(Tn)},VO=function setBackgroundMethod(Tn,Un){var Dn=jT("canvasBackground"),Qn=oO(Dn).find("rect")[0],Hn=jT("background_image"),Gn=jT("background_pattern");if(Qn.setAttribute("fill","chessboard"===Tn?"#fff":Tn),"chessboard"===Tn){if(!Gn){Gn=uO.getDOMDocument().createElementNS(Zf.SVG,"foreignObject"),uO.getCanvas().assignAttributes(Gn,{id:"background_pattern",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"});var Vn=document.createElement("div");uO.getCanvas().assignAttributes(Vn,{style:"pointer-events:none;width:100%;height:100%;background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"}),Gn.appendChild(Vn),Dn.append(Gn)}}else Gn&&Gn.remove();Un?(Hn||(Hn=uO.getDOMDocument().createElementNS(Zf.SVG,"image"),uO.getCanvas().assignAttributes(Hn,{id:"background_image",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"})),CT(Hn,Un),Dn.append(Hn)):Hn&&Hn.remove()},zO=jQuery,KO=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"],qO=null,$O=function remapElement(Tn,Un,Dn){for(var Qn=function remap(Tn,Un){return jE(Tn,Un,Dn)},Hn=function scalew(Tn){return Dn.a*Tn},Gn=function scaleh(Tn){return Dn.d*Tn},Vn=qO.getGridSnapping()&&"svg"===Tn.parentNode.parentNode.localName,zn=function finishUp(){Vn&&Object.entries(Un).forEach((function(Tn){var Dn=_slicedToArray(Tn,2),Qn=Dn[0],Hn=Dn[1];Un[Qn]=GT(Hn)})),QT(Tn,Un,0,!0)},Kn=ET(Tn),$n=0;$n<2;$n++){var Wn=0===$n?"fill":"stroke",Xn=Tn.getAttribute(Wn);if(Xn&&Xn.startsWith("url(")&&(Dn.a<0||Dn.d<0)){var Yn=DT(Xn).cloneNode(!0);if(Dn.a<0){var Jn=Yn.getAttribute("x1"),Zn=Yn.getAttribute("x2");Yn.setAttribute("x1",-(Jn-1)),Yn.setAttribute("x2",-(Zn-1))}if(Dn.d<0){var er=Yn.getAttribute("y1"),tr=Yn.getAttribute("y2");Yn.setAttribute("y1",-(er-1)),Yn.setAttribute("y2",-(tr-1))}Yn.id=qO.getDrawing().getNextId(),kT().append(Yn),Tn.setAttribute(Wn,"url(#"+Yn.id+")")}}var nr=Tn.tagName;if("g"===nr||"text"===nr||"tspan"===nr||"use"===nr)if(1!==Dn.a||0!==Dn.b||0!==Dn.c||1!==Dn.d||0===Dn.e&&0===Dn.f){var rr=OE(Tn),ir=qO.getSVGRoot().createSVGTransform();ir.setMatrix(HE(zE(rr).matrix,Dn)),rr.clear(),rr.appendItem(ir)}else{var or=zE(Tn).matrix,ar=HE(or.inverse(),Dn,or);Un.x=Number.parseFloat(Un.x)+ar.e,Un.y=Number.parseFloat(Un.y)+ar.f}switch(nr){case"foreignObject":case"rect":case"image":if("image"===nr&&(Dn.a<0||Dn.d<0)){var sr=OE(Tn),lr=qO.getSVGRoot().createSVGTransform();lr.setMatrix(HE(zE(sr).matrix,Dn)),sr.clear(),sr.appendItem(lr)}else{var cr=Qn(Un.x,Un.y);Un.width=Hn(Un.width),Un.height=Gn(Un.height),Un.x=cr.x+Math.min(0,Un.width),Un.y=cr.y+Math.min(0,Un.height),Un.width=Math.abs(Un.width),Un.height=Math.abs(Un.height)}zn();break;case"ellipse":var ur=Qn(Un.cx,Un.cy);Un.cx=ur.x,Un.cy=ur.y,Un.rx=Hn(Un.rx),Un.ry=Gn(Un.ry),Un.rx=Math.abs(Un.rx),Un.ry=Math.abs(Un.ry),zn();break;case"circle":var dr=Qn(Un.cx,Un.cy);Un.cx=dr.x,Un.cy=dr.y;var hr=VE(Kn.x,Kn.y,Kn.width,Kn.height,Dn),pr=hr.tr.x-hr.tl.x,gr=hr.bl.y-hr.tl.y;Un.r=Math.min(pr/2,gr/2),Un.r&&(Un.r=Math.abs(Un.r)),zn();break;case"line":var fr=Qn(Un.x1,Un.y1),Ar=Qn(Un.x2,Un.y2);Un.x1=fr.x,Un.y1=fr.y,Un.x2=Ar.x,Un.y2=Ar.y;case"text":case"tspan":case"use":zn();break;case"g":var mr=zO(Tn).data("gsvg");mr&&QT(mr,Un,0,!0);break;case"polyline":case"polygon":for(var vr=Un.points.length,yr=0;yr<vr;++yr){var _r=Un.points[yr],br=Qn(_r.x,_r.y),wr=br.x,xr=br.y;Un.points[yr].x=wr,Un.points[yr].y=xr}for(var Sr="",Cr=0;Cr<vr;++Cr){var kr=Un.points[Cr];Sr+=kr.x+","+kr.y+" "}Tn.setAttribute("points",Sr);break;case"path":var Br=Tn.pathSegList,Er=Br.numberOfItems;Un.d=[];for(var Pr=0;Pr<Er;++Pr){var Lr=Br.getItem(Pr);Un.d[Pr]={type:Lr.pathSegType,x:Lr.x,y:Lr.y,x1:Lr.x1,y1:Lr.y1,x2:Lr.x2,y2:Lr.y2,r1:Lr.r1,r2:Lr.r2,angle:Lr.angle,largeArcFlag:Lr.largeArcFlag,sweepFlag:Lr.sweepFlag}}Er=Un.d.length;var Tr=Un.d[0],Nr=Qn(Tr.x,Tr.y);Un.d[0].x=Nr.x,Un.d[0].y=Nr.y;for(var Ir=1;Ir<Er;++Ir){var Or=Un.d[Ir];if(Or.type%2==0){var Fr=Qn(void 0!==Or.x?Or.x:Nr.x,void 0!==Or.y?Or.y:Nr.y),Ur=Qn(Or.x1,Or.y1),Mr=Qn(Or.x2,Or.y2);Or.x=Fr.x,Or.y=Fr.y,Or.x1=Ur.x,Or.y1=Ur.y,Or.x2=Mr.x,Or.y2=Mr.y,Or.r1=Hn(Or.r1),Or.r2=Gn(Or.r2)}else Or.x=Hn(Or.x),Or.y=Gn(Or.y),Or.x1=Hn(Or.x1),Or.y1=Gn(Or.y1),Or.x2=Hn(Or.x2),Or.y2=Gn(Or.y2),Or.r1=Hn(Or.r1),Or.r2=Gn(Or.r2)}var Rr="";Er=Un.d.length;for(var Dr=0;Dr<Er;++Dr){var jr=Un.d[Dr],Qr=jr.type;switch(Rr+=KO[Qr],Qr){case 13:case 12:Rr+=jr.x+" ";break;case 15:case 14:Rr+=jr.y+" ";break;case 3:case 5:case 19:case 2:case 4:case 18:Rr+=jr.x+","+jr.y+" ";break;case 7:case 6:Rr+=jr.x1+","+jr.y1+" "+jr.x2+","+jr.y2+" "+jr.x+","+jr.y+" ";break;case 9:case 8:Rr+=jr.x1+","+jr.y1+" "+jr.x+","+jr.y+" ";break;case 11:case 10:Rr+=jr.r1+","+jr.r2+" "+jr.angle+" "+Number(jr.largeArcFlag)+" "+Number(jr.sweepFlag)+" "+jr.x+","+jr.y+" ";break;case 17:case 16:Rr+=jr.x2+","+jr.y2+" "+jr.x+","+jr.y+" "}}Tn.setAttribute("d",Rr)}},WO=jQueryPluginSVG(jQuery),XO=function updateClipPath(Tn,Un,Dn){var Qn=DT(Tn).firstChild,Hn=OE(Qn),Gn=iI.getSVGRoot().createSVGTransform();Gn.setTranslate(Un,Dn),Hn.appendItem(Gn),YO(Qn)},YO=function recalculateDimensions(Tn){if(zT(Tn))return null;if("svg"===Tn.nodeName&&navigator.userAgent.includes("Firefox/20"))return null;var Un=iI.getSVGRoot(),Dn=OE(Tn);if(Dn&&Dn.numberOfItems>0){for(var Qn=Dn.numberOfItems,Hn=Qn;Qn--;){var Gn=Dn.getItem(Qn);if(0===Gn.type)Dn.removeItem(Qn);else if(1===Gn.type){if(QE(Gn.matrix)){if(1===Hn)return Tn.removeAttribute("transform"),null;Dn.removeItem(Qn)}}else 4===Gn.type&&0===Gn.angle&&Dn.removeItem(Qn)}if(1===Dn.numberOfItems&&RT(Tn))return null}if(!Dn||0===Dn.numberOfItems)return Tn.setAttribute("transform",""),Tn.removeAttribute("transform"),null;if(Dn){for(var Vn=[],zn=Dn.numberOfItems;zn--;){var Kn=Dn.getItem(zn);1===Kn.type?Vn.push([Kn.matrix,zn]):Vn.length&&(Vn=[])}if(2===Vn.length){var $n=Un.createSVGTransformFromMatrix(HE(Vn[1][0],Vn[0][0]));Dn.removeItem(Vn[0][1]),Dn.removeItem(Vn[1][1]),Dn.insertItemBefore($n,Vn[1][1])}if((zn=Dn.numberOfItems)>=2&&1===Dn.getItem(zn-2).type&&2===Dn.getItem(zn-1).type){var Wn=Un.createSVGTransform(),Xn=HE(Dn.getItem(zn-2).matrix,Dn.getItem(zn-1).matrix);Wn.setMatrix(Xn),Dn.removeItem(zn-2),Dn.removeItem(zn-2),Dn.appendItem(Wn)}}switch(Tn.tagName){case"line":case"polyline":case"polygon":case"path":break;default:if(1===Dn.numberOfItems&&1===Dn.getItem(0).type||2===Dn.numberOfItems&&1===Dn.getItem(0).type&&4===Dn.getItem(0).type)return null}var Yn,Jn,Zn=WO(Tn).data("gsvg"),er=new JT("Transform"),tr={},nr=null,rr=[];switch(Tn.tagName){case"line":rr=["x1","y1","x2","y2"];break;case"circle":rr=["cx","cy","r"];break;case"ellipse":rr=["cx","cy","rx","ry"];break;case"foreignObject":case"rect":case"image":rr=["width","height","x","y"];break;case"use":case"text":case"tspan":rr=["x","y"];break;case"polygon":case"polyline":(nr={}).points=Tn.getAttribute("points");var ir=Tn.points,or=ir.numberOfItems;tr.points=new Array(or);for(var ar=0;ar<or;++ar){var sr=ir.getItem(ar);tr.points[ar]={x:sr.x,y:sr.y}}break;case"path":(nr={}).d=Tn.getAttribute("d"),tr.d=Tn.getAttribute("d")}if(rr.length?(tr=WO(Tn).attr(rr),WO.each(tr,(function(Tn,Un){tr[Tn]=cA(Tn,Un)}))):Zn&&(tr={x:WO(Zn).attr("x")||0,y:WO(Zn).attr("y")||0}),zT(nr)&&(nr=WO.extend(!0,{},tr),WO.each(nr,(function(Tn,Un){nr[Tn]=cA(Tn,Un)}))),nr.transform=iI.getStartTransform()||"","g"===Tn.tagName&&!Zn||"a"===Tn.tagName){var lr=ET(Tn);Yn={x:lr.x+lr.width/2,y:lr.y+lr.height/2},Jn=jE(lr.x+lr.width/2,lr.y+lr.height/2,zE(Dn).matrix);var cr=RT(Tn);if(cr)for(var ur=cr*Math.PI/180,dr=Math.abs(ur)>1e-10?Math.sin(ur)/(1-Math.cos(ur)):2/ur,hr=0;hr<Dn.numberOfItems;++hr){var pr=Dn.getItem(hr);if(4===pr.type){var gr=pr.matrix;Yn.y=(dr*gr.e+gr.f)/2,Yn.x=(gr.e-dr*gr.f)/2,Dn.removeItem(hr);break}}var fr,Ar,mr=Dn.numberOfItems,vr=0,yr=0,_r=0;if(mr&&(fr=Dn.getItem(0).matrix),mr>=3&&3===Dn.getItem(mr-2).type&&2===Dn.getItem(mr-3).type&&2===Dn.getItem(mr-1).type){_r=3;for(var br=Dn.getItem(mr-3).matrix,wr=Dn.getItem(mr-2).matrix,xr=Dn.getItem(mr-1).matrix,Sr=Tn.childNodes,Cr=Sr.length;Cr--;){var kr=Sr.item(Cr);if(vr=0,yr=0,1===kr.nodeType){var Br=OE(kr);if(!Br)continue;var Er=zE(Br).matrix,Pr=RT(kr);if(Ar=iI.getStartTransform(),iI.setStartTransform(kr.getAttribute("transform")),Pr||GE(Br)){var Lr=Un.createSVGTransform();Lr.setMatrix(HE(br,wr,xr,Er)),Br.clear(),Br.appendItem(Lr)}else{var Tr=HE(Er.inverse(),xr,Er),Nr=Un.createSVGMatrix();Nr.e=-Tr.e,Nr.f=-Tr.f;var Ir=HE(Nr.inverse(),Er.inverse(),br,wr,xr,Er,Tr.inverse()),Or=Un.createSVGTransform(),Fr=Un.createSVGTransform(),Ur=Un.createSVGTransform();Or.setTranslate(Tr.e,Tr.f),Fr.setScale(Ir.a,Ir.d),Ur.setTranslate(Nr.e,Nr.f),Br.appendItem(Ur),Br.appendItem(Fr),Br.appendItem(Or)}er.addSubCommand(recalculateDimensions(kr)),iI.setStartTransform(Ar)}}Dn.removeItem(mr-1),Dn.removeItem(mr-2),Dn.removeItem(mr-3)}else if(mr>=3&&1===Dn.getItem(mr-1).type){_r=3;var Mr=zE(Dn).matrix,Rr=Un.createSVGTransform();Rr.setMatrix(Mr),Dn.clear(),Dn.appendItem(Rr)}else if((1===mr||mr>1&&3!==Dn.getItem(1).type)&&2===Dn.getItem(0).type){_r=2;var Dr=zE(Dn).matrix;Dn.removeItem(0);var jr=zE(Dn).matrix.inverse(),Qr=HE(jr,Dr);if(vr=Qr.e,yr=Qr.f,0!==vr||0!==yr){for(var Hr=Tn.childNodes,Gr=Hr.length,Vr=[];Gr--;){var zr=Hr.item(Gr);if(1===zr.nodeType){if(zr.getAttribute("clip-path")){var Kr=zr.getAttribute("clip-path");Vr.includes(Kr)||(XO(Kr,vr,yr),Vr.push(Kr))}Ar=iI.getStartTransform(),iI.setStartTransform(zr.getAttribute("transform"));var qr=OE(zr);if(qr){var $r=Un.createSVGTransform();$r.setTranslate(vr,yr),qr.numberOfItems?qr.insertItemBefore($r,0):qr.appendItem($r),er.addSubCommand(recalculateDimensions(zr));for(var Wr=Tn.getElementsByTagNameNS(Zf.SVG,"use"),Xr="#"+zr.id,Yr=Wr.length;Yr--;){var Jr=Wr.item(Yr);if(Xr===ST(Jr)){var Zr=Un.createSVGTransform();Zr.setTranslate(-vr,-yr),OE(Jr).insertItemBefore(Zr,0),er.addSubCommand(recalculateDimensions(Jr))}}iI.setStartTransform(Ar)}}}iI.setStartTransform(Ar)}}else{if(1!==mr||1!==Dn.getItem(0).type||cr){if(cr){var ei=Un.createSVGTransform();ei.setRotate(cr,Jn.x,Jn.y),Dn.numberOfItems?Dn.insertItemBefore(ei,0):Dn.appendItem(ei)}return 0===Dn.numberOfItems&&Tn.removeAttribute("transform"),null}_r=1;for(var ti=Dn.getItem(0).matrix,ni=Tn.childNodes,ri=ni.length;ri--;){var ii=ni.item(ri);if(1===ii.nodeType){Ar=iI.getStartTransform(),iI.setStartTransform(ii.getAttribute("transform"));var oi=OE(ii);if(!oi)continue;var ai=HE(ti,zE(oi).matrix),si=Un.createSVGTransform();si.setMatrix(ai),oi.clear(),oi.appendItem(si,0),er.addSubCommand(recalculateDimensions(ii)),iI.setStartTransform(Ar);var li=ii.getAttribute("stroke-width");if("none"!==ii.getAttribute("stroke")&&!isNaN(li)){var ui=(Math.abs(ai.a)+Math.abs(ai.d))/2;ii.setAttribute("stroke-width",li*ui)}}}Dn.clear()}if(2===_r){if(cr){Jn={x:Yn.x+fr.e,y:Yn.y+fr.f};var di=Un.createSVGTransform();di.setRotate(cr,Jn.x,Jn.y),Dn.numberOfItems?Dn.insertItemBefore(di,0):Dn.appendItem(di)}}else if(3===_r){var hi=zE(Dn).matrix,pi=Un.createSVGTransform();pi.setRotate(cr,Yn.x,Yn.y);var gi=pi.matrix,fi=Un.createSVGTransform();fi.setRotate(cr,Jn.x,Jn.y);var Ai=fi.matrix.inverse(),mi=hi.inverse(),vi=HE(mi,Ai,gi,hi);if(vr=vi.e,yr=vi.f,0!==vr||0!==yr)for(var yi=Tn.childNodes,_i=yi.length;_i--;){var wi=yi.item(_i);if(1===wi.nodeType){Ar=iI.getStartTransform(),iI.setStartTransform(wi.getAttribute("transform"));var xi=OE(wi),Si=Un.createSVGTransform();Si.setTranslate(vr,yr),xi.numberOfItems?xi.insertItemBefore(Si,0):xi.appendItem(Si),er.addSubCommand(recalculateDimensions(wi)),iI.setStartTransform(Ar)}}cr&&(Dn.numberOfItems?Dn.insertItemBefore(fi,0):Dn.appendItem(fi))}}else{var Ci,ki=ET(Tn);if(!ki&&"path"!==Tn.tagName)return null;var Bi=RT(Tn);if(Bi){Yn={x:ki.x+ki.width/2,y:ki.y+ki.height/2},Jn=jE(ki.x+ki.width/2,ki.y+ki.height/2,zE(Dn).matrix);for(var Ei=Bi*Math.PI/180,Pi=Math.abs(Ei)>1e-10?Math.sin(Ei)/(1-Math.cos(Ei)):2/Ei,Li=0;Li<Dn.numberOfItems;++Li){var Ti=Dn.getItem(Li);if(4===Ti.type){var Ni=Ti.matrix;Yn.y=(Pi*Ni.e+Ni.f)/2,Yn.x=(Ni.e-Pi*Ni.f)/2,Dn.removeItem(Li);break}}}var Ii=0,Oi=Dn.numberOfItems;if(!XA()){var Fi=Tn.getAttribute("fill");if(Fi&&Fi.startsWith("url(")){var Ui=DT(Fi),Mi="pattern";if(Ui.tagName!==Mi&&(Mi="gradient"),"userSpaceOnUse"===Ui.getAttribute(Mi+"Units")){Ci=zE(Dn).matrix;var Ri=OE(Ui),Di=zE(Ri).matrix,ji="matrix("+[(Ci=HE(Ci,Di)).a,Ci.b,Ci.c,Ci.d,Ci.e,Ci.f].join(",")+")";Ui.setAttribute(Mi+"Transform",ji)}}}if(Oi>=3&&3===Dn.getItem(Oi-2).type&&2===Dn.getItem(Oi-3).type&&2===Dn.getItem(Oi-1).type)Ii=3,Ci=zE(Dn,Oi-3,Oi-1).matrix,Dn.removeItem(Oi-1),Dn.removeItem(Oi-2),Dn.removeItem(Oi-3);else if(4===Oi&&1===Dn.getItem(Oi-1).type){Ii=3,Ci=zE(Dn).matrix;var Qi=Un.createSVGTransform();Qi.setMatrix(Ci),Dn.clear(),Dn.appendItem(Qi),Ci=Un.createSVGMatrix()}else if((1===Oi||Oi>1&&3!==Dn.getItem(1).type)&&2===Dn.getItem(0).type){Ii=2;var Hi=Dn.getItem(0).matrix,Gi=zE(Dn,1).matrix,Vi=Gi.inverse();Ci=HE(Vi,Hi,Gi),Dn.removeItem(0)}else{if(1!==Oi||1!==Dn.getItem(0).type||Bi){if(Bi){var zi=Un.createSVGTransform();zi.setRotate(Bi,Jn.x,Jn.y),Dn.numberOfItems?Dn.insertItemBefore(zi,0):Dn.appendItem(zi)}return 0===Dn.numberOfItems&&Tn.removeAttribute("transform"),null}switch(Ci=zE(Dn).matrix,Tn.tagName){case"line":tr=WO(Tn).attr(["x1","y1","x2","y2"]);case"polyline":case"polygon":if(tr.points=Tn.getAttribute("points"),tr.points){var Ki=Tn.points,qi=Ki.numberOfItems;tr.points=new Array(qi);for(var $i=0;$i<qi;++$i){var Wi=Ki.getItem($i);tr.points[$i]={x:Wi.x,y:Wi.y}}}case"path":tr.d=Tn.getAttribute("d"),Ii=1,Dn.clear()}}if(1!==Ii&&2!==Ii&&3!==Ii||$O(Tn,tr,Ci),2===Ii){if(Bi){GE(Dn)||(Jn={x:Yn.x+Ci.e,y:Yn.y+Ci.f});var Xi=Un.createSVGTransform();Xi.setRotate(Bi,Jn.x,Jn.y),Dn.numberOfItems?Dn.insertItemBefore(Xi,0):Dn.appendItem(Xi)}if("text"===Tn.tagName)for(var Yi=Tn.childNodes,Ji=Yi.length;Ji--;){var Zi=Yi.item(Ji);if("tspan"===Zi.tagName){var eo={x:WO(Zi).attr("x")||0,y:WO(Zi).attr("y")||0};$O(Zi,eo,Ci)}}}else if(3===Ii&&Bi){var to=zE(Dn).matrix,no=Un.createSVGTransform();no.setRotate(Bi,Yn.x,Yn.y);var ro=no.matrix,io=Un.createSVGTransform();io.setRotate(Bi,Jn.x,Jn.y);var oo=io.matrix.inverse(),ao=to.inverse(),so=HE(ao,oo,ro,to);$O(Tn,tr,so),Bi&&(Dn.numberOfItems?Dn.insertItemBefore(io,0):Dn.appendItem(io))}}return 0===Dn.numberOfItems&&Tn.removeAttribute("transform"),er.addSubCommand(new YT(Tn,nr)),er},JO=$T,ZO=JT,eF=WT,tF=XT,nF=YT,rF=jQueryPluginSVG(jQuery),iF=null,oF=function moveToTopSelectedElem(){var Tn=_slicedToArray(iF.getSelectedElements(),1)[0];if(!zT(Tn)){var Un=Tn,Dn=Un.parentNode,Qn=Un.nextSibling;Qn!==(Un=Un.parentNode.appendChild(Un)).nextSibling&&(iF.addCommandToHistory(new JO(Un,Qn,Dn,"top")),iF.call("changed",[Un]))}},aF=function moveToBottomSelectedElem(){var Tn=_slicedToArray(iF.getSelectedElements(),1)[0];if(!zT(Tn)){var Un=Tn,Dn=Un.parentNode,Qn=Un.nextSibling,Hn=Un.parentNode.firstChild;"title"===Hn.tagName&&(Hn=Hn.nextSibling),"defs"===Hn.tagName&&(Hn=Hn.nextSibling),Qn!==(Un=Un.parentNode.insertBefore(Un,Hn)).nextSibling&&(iF.addCommandToHistory(new JO(Un,Qn,Dn,"bottom")),iF.call("changed",[Un]))}},sF=function moveUpDownSelected(Tn){var Un=iF.getSelectedElements()[0];if(Un){var Dn,Qn;iF.setCurBBoxes([]);var Hn=rF(iF.getIntersectionList(UT([Un]))).toArray();if("Down"===Tn&&Hn.reverse(),rF.each(Hn,(function(){return Qn?(Dn=this,!1):(this===Un&&(Qn=!0),!0)})),Dn){var Gn=Un,Vn=Gn.parentNode,zn=Gn.nextSibling;rF(Dn)["Down"===Tn?"before":"after"](Gn),zn!==Gn.nextSibling&&(iF.addCommandToHistory(new JO(Gn,zn,Vn,"Move "+Tn)),iF.call("changed",[Gn]))}}},lF=function moveSelectedElements(Tn,Un,Dn){var Qn=iF.getSelectedElements(),Hn=iF.getCurrentZoom();Tn.constructor!==Array&&(Tn/=Hn,Un/=Hn),Dn=Dn||!0;for(var Gn=new ZO("position"),Vn=Qn.length;Vn--;){var zn=Qn[Vn];if(!zT(zn)){var Kn=iF.getSVGRoot().createSVGTransform(),$n=OE(zn);Tn.constructor===Array?Kn.setTranslate(Tn[Vn],Un[Vn]):Kn.setTranslate(Tn,Un),$n.numberOfItems?$n.insertItemBefore(Kn,0):$n.appendItem(Kn);var Wn=YO(zn);Wn&&Gn.addSubCommand(Wn),iF.gettingSelectorManager().requestSelector(zn).resize()}}if(!Gn.isEmpty())return Dn&&iF.addCommandToHistory(Gn),iF.call("changed",Qn),Gn},cF=function cloneSelectedElements(Tn,Un){var Dn,Qn,Hn=iF.getSelectedElements(),Gn=iF.getCurrentGroup(),Vn=new ZO("Clone Elements"),zn=Hn.length;for(Hn.sort((function sortfunction(Tn,Un){return rF(Un).index()-rF(Tn).index()})),Dn=0;Dn<zn&&(Qn=Hn[Dn],!zT(Qn));++Dn);var Kn=Hn.slice(0,Dn);this.clearSelection(!0);var $n=iF.getDrawing();for(Dn=Kn.length;Dn--;)Qn=Kn[Dn]=$n.copyElem(Kn[Dn]),(Gn||$n.getCurrentLayer()).append(Qn),Vn.addSubCommand(new eF(Qn));Vn.isEmpty()||(iF.addToSelection(Kn.reverse()),lF(Tn,Un,!1),iF.addCommandToHistory(Vn))},uF=function alignSelectedElements(Tn,Un){var Dn=iF.getSelectedElements(),Qn=[],Hn=Dn.length;if(Hn){for(var Gn=Number.MAX_VALUE,Vn=Number.MIN_VALUE,zn=Number.MAX_VALUE,Kn=Number.MIN_VALUE,$n=Number.MIN_VALUE,Wn=Number.MIN_VALUE,Xn=0;Xn<Hn&&!zT(Dn[Xn]);++Xn){var Yn=Dn[Xn];switch(Qn[Xn]=UT([Yn]),Un){case"smallest":(("l"===Tn||"c"===Tn||"r"===Tn)&&($n===Number.MIN_VALUE||$n>Qn[Xn].width)||("t"===Tn||"m"===Tn||"b"===Tn)&&(Wn===Number.MIN_VALUE||Wn>Qn[Xn].height))&&(Gn=Qn[Xn].x,zn=Qn[Xn].y,Vn=Qn[Xn].x+Qn[Xn].width,Kn=Qn[Xn].y+Qn[Xn].height,$n=Qn[Xn].width,Wn=Qn[Xn].height);break;case"largest":(("l"===Tn||"c"===Tn||"r"===Tn)&&($n===Number.MIN_VALUE||$n<Qn[Xn].width)||("t"===Tn||"m"===Tn||"b"===Tn)&&(Wn===Number.MIN_VALUE||Wn<Qn[Xn].height))&&(Gn=Qn[Xn].x,zn=Qn[Xn].y,Vn=Qn[Xn].x+Qn[Xn].width,Kn=Qn[Xn].y+Qn[Xn].height,$n=Qn[Xn].width,Wn=Qn[Xn].height);break;default:Qn[Xn].x<Gn&&(Gn=Qn[Xn].x),Qn[Xn].y<zn&&(zn=Qn[Xn].y),Qn[Xn].x+Qn[Xn].width>Vn&&(Vn=Qn[Xn].x+Qn[Xn].width),Qn[Xn].y+Qn[Xn].height>Kn&&(Kn=Qn[Xn].y+Qn[Xn].height)}}"page"===Un&&(Gn=0,zn=0,Vn=iF.getContentW(),Kn=iF.getContentH());for(var Jn=new Array(Hn),Zn=new Array(Hn),er=0;er<Hn&&!zT(Dn[er]);++er){var tr=Qn[er];switch(Jn[er]=0,Zn[er]=0,Tn){case"l":Jn[er]=Gn-tr.x;break;case"c":Jn[er]=(Gn+Vn)/2-(tr.x+tr.width/2);break;case"r":Jn[er]=Vn-(tr.x+tr.width);break;case"t":Zn[er]=zn-tr.y;break;case"m":Zn[er]=(zn+Kn)/2-(tr.y+tr.height/2);break;case"b":Zn[er]=Kn-(tr.y+tr.height)}}lF(Jn,Zn)}},dF=function deleteSelectedElements(){for(var Tn=iF.getSelectedElements(),Un=new ZO("Delete Elements"),Dn=Tn.length,Qn=[],Hn=0;Hn<Dn;++Hn){var Gn=Tn[Hn];if(zT(Gn))break;var Vn=Gn.parentNode,zn=Gn;iF.gettingSelectorManager().releaseSelector(zn),HN(zn.id),"a"===Vn.tagName&&1===Vn.childNodes.length&&(zn=Vn,Vn=Vn.parentNode);var Kn=zn.nextSibling;zn.remove();var $n=zn;Qn.push(Gn),Un.addSubCommand(new tF($n,Kn,Vn))}iF.getCanvas().setEmptySelectedElements(),Un.isEmpty()||iF.addCommandToHistory(Un),iF.call("changed",Qn),iF.clearSelection()},hF=function copySelectedElements(){var Tn=iF.getSelectedElements(),Un=JSON.stringify(Tn.map((function(Tn){return iF.getJsonFromSvgElement(Tn)})));sessionStorage.setItem(iF.getClipboardID(),Un),iF.flashStorage(),document.getElementById("se-cmenu_canvas").setAttribute("enablemenuitems","#paste,#paste_in_place")},pF=function groupSelectedElements(Tn,Un){var Dn=iF.getSelectedElements();Tn||(Tn="g");var Qn,Hn="";switch(Tn){case"a":Hn="Make hyperlink",Qn=Un||"";break;default:Tn="g",Hn="Group Elements"}var Gn=new ZO(Hn),Vn=iF.addSVGElementFromJson({element:Tn,attr:{id:iF.getNextId()}});"a"===Tn&&CT(Vn,Qn),Gn.addSubCommand(new eF(Vn));for(var zn=Dn.length;zn--;){var Kn=Dn[zn];if(!zT(Kn)){"a"===Kn.parentNode.tagName&&1===Kn.parentNode.childNodes.length&&(Kn=Kn.parentNode);var $n=Kn.nextSibling,Wn=Kn.parentNode;Vn.append(Kn),Gn.addSubCommand(new JO(Kn,$n,Wn))}}Gn.isEmpty()||iF.addCommandToHistory(Gn),iF.selectOnly([Vn],!0)},gF=function pushGroupProperty(Tn,Un){for(var Dn,Qn,Hn,Gn=Tn.childNodes,Vn=Gn.length,zn=Tn.getAttribute("transform"),Kn=OE(Tn),$n=zE(Kn).matrix,Wn=new ZO("Push group properties"),Xn=RT(Tn),Yn=rF(Tn).attr(["filter","opacity"]),Jn=iF.getDrawing(),Zn=0;Zn<Vn;Zn++){var er=Gn[Zn];if(1===er.nodeType){if(null!==Yn.opacity&&1!==Yn.opacity){var tr=Math.round((er.getAttribute("opacity")||1)*Yn.opacity*100)/100;iF.changeSelectedAttribute("opacity",tr,[er])}if(Yn.filter){var nr=this.getBlur(er),rr=nr;Qn||(Qn=this.getBlur(Tn)),nr?nr=Number(Qn)+Number(nr):0===nr&&(nr=Qn),rr?Dn=DT(er.getAttribute("filter")):Dn?(Dn=Jn.copyElem(Dn),kT().append(Dn)):Dn=DT(Yn.filter);var ir="feGaussianBlur"===Dn.firstChild.tagName?"blur":"filter";Dn.id=er.id+"_"+ir,iF.changeSelectedAttribute("filter","url(#"+Dn.id+")",[er]),nr&&(iF.changeSelectedAttribute("stdDeviation",nr,[Dn.firstChild]),iF.getCanvas().setBlurOffsets(Dn,nr))}var or=OE(er);if(er.tagName.includes("Gradient")&&(or=null),or&&"defs"!==er.tagName&&Kn.numberOfItems){if(Xn&&1===Kn.numberOfItems){var ar=Kn.getItem(0).matrix,sr=iF.getSVGRoot().createSVGMatrix(),lr=RT(er);lr&&(sr=or.getItem(0).matrix);var cr=ET(er),ur=zE(or).matrix,dr=jE(cr.x+cr.width/2,cr.y+cr.height/2,ur),hr=Xn+lr,pr=iF.getSVGRoot().createSVGTransform();pr.setRotate(hr,dr.x,dr.y);var gr=HE(ar,sr,pr.matrix.inverse());if(lr&&or.removeItem(0),hr&&(or.numberOfItems?or.insertItemBefore(pr,0):or.appendItem(pr)),gr.e||gr.f){var fr=iF.getSVGRoot().createSVGTransform();fr.setTranslate(gr.e,gr.f),or.numberOfItems?or.insertItemBefore(fr,0):or.appendItem(fr)}}else{var Ar=er.getAttribute("transform");(Hn={}).transform=Ar||"";var mr=iF.getSVGRoot().createSVGTransform(),vr=zE(or).matrix,yr=vr.inverse(),_r=HE(yr,$n,vr);mr.setMatrix(_r),or.appendItem(mr)}var br=YO(er);br&&Wn.addSubCommand(br)}}}if(zn&&((Hn={}).transform=zn,Tn.setAttribute("transform",""),Tn.removeAttribute("transform"),Wn.addSubCommand(new nF(Tn,Hn))),Un&&!Wn.isEmpty())return Wn},fF=function convertToGroup(Tn){var Un=iF.getSelectedElements();Tn||(Tn=Un[0]);var Dn,Qn=rF(Tn),Hn=new ZO;if(Qn.data("gsvg")){var Gn=Tn.firstChild,Vn=rF(Gn).attr(["x","y"]);rF(Tn.firstChild.firstChild).unwrap(),rF(Tn).removeData("gsvg");var zn=OE(Tn),Kn=iF.getSVGRoot().createSVGTransform();Kn.setTranslate(Vn.x,Vn.y),zn.appendItem(Kn),YO(Tn),iF.call("selected",[Tn])}else if(Qn.data("symbol")){Tn=Qn.data("symbol"),Dn=Qn.attr("transform");var $n=Qn.attr(["x","y"]),Wn=Tn.getAttribute("viewBox");if(Wn){var Xn=Wn.split(" ");$n.x-=Number(Xn[0]),$n.y-=Number(Xn[1])}Dn+=" translate("+($n.x||0)+","+($n.y||0)+")";var Yn=Qn.prev();Hn.addSubCommand(new tF(Qn[0],Qn[0].nextSibling,Qn[0].parentNode)),Qn.remove();var Jn,Zn=iF.getSVGContent(),er=rF(Zn).find("use:data(symbol)").length,tr=iF.getDOMDocument().createElementNS(Zf.SVG,"g"),nr=Tn.childNodes;for(Jn=0;Jn<nr.length;Jn++)tr.append(nr[Jn].cloneNode(!0));if(YA()){var rr=rF(kT()).children("linearGradient,radialGradient,pattern").clone();rF(tr).append(rr)}Dn&&tr.setAttribute("transform",Dn);var ir=Tn.parentNode;if(iF.uniquifyElems(tr),YA()&&rF(kT()).append(rF(tr).find("linearGradient,radialGradient,pattern")),tr.id=iF.getNextId(),Yn.after(tr),ir){if(!er){var or=Tn.nextSibling;Tn.remove(),Hn.addSubCommand(new tF(Tn,or,ir))}Hn.addSubCommand(new eF(tr))}iF.setUseData(tr),YA()?iF.convertGradients(kT()):iF.convertGradients(tr),function walkTreePost(Tn,Un){if(Tn&&1===Tn.nodeType){for(var Dn=Tn.childNodes.length;Dn--;)wT(Tn.childNodes.item(Dn),Un);Un(Tn)}}(tr,(function(Tn){try{YO(Tn)}catch(Tn){console.log(Tn)}}));var ar=iF.getVisElems();rF(tr).find(ar).each((function(){this.id||(this.id=iF.getNextId())})),iF.selectOnly([tr]);var sr=gF(tr,!0);sr&&Hn.addSubCommand(sr),iF.addCommandToHistory(Hn)}else console.log("Unexpected element to ungroup:",Tn)},AF=function ungroupSelectedElement(){var Tn=iF.getSelectedElements()[0];if(Tn)if(rF(Tn).data("gsvg")||rF(Tn).data("symbol"))fF(Tn);else{if("use"===Tn.tagName){var Un=jT(ST(Tn).substr(1));return rF(Tn).data("symbol",Un).data("ref",Un),void fF(Tn)}var Dn=rF(Tn).parents("a");if(Dn.length&&(Tn=Dn[0]),"g"===Tn.tagName||"a"===Tn.tagName){var Qn=new ZO("Ungroup Elements"),Hn=gF(Tn,!0);Hn&&Qn.addSubCommand(Hn);for(var Gn=Tn.parentNode,Vn=Tn.nextSibling,zn=new Array(Tn.childNodes.length),Kn=0;Tn.firstChild;){var $n=Tn.firstChild,Wn=$n.nextSibling,Xn=$n.parentNode;if("title"!==$n.tagName)Vn?Vn.before($n):Tn.after($n),zn[Kn++]=$n,Qn.addSubCommand(new JO($n,Wn,Xn));else{var Yn=$n.nextSibling;Qn.addSubCommand(new tF($n,Yn,Xn)),$n.remove()}}iF.clearSelection();var Jn=Tn.nextSibling;Tn.remove(),Qn.addSubCommand(new tF(Tn,Jn,Gn)),Qn.isEmpty()||iF.addCommandToHistory(Qn),iF.addToSelection(zn)}}},mF=function updateCanvas(Tn,Un){iF.getSVGRoot().setAttribute("width",Tn),iF.getSVGRoot().setAttribute("height",Un);var Dn=iF.getCurrentZoom(),Qn=rF("#canvasBackground")[0],Hn=iF.getSVGContent().getAttribute("x"),Gn=iF.getSVGContent().getAttribute("y"),Vn=(Tn-this.contentW*Dn)/2,zn=(Un-this.contentH*Dn)/2;QT(iF.getSVGContent(),{width:this.contentW*Dn,height:this.contentH*Dn,x:Vn,y:zn,viewBox:"0 0 "+this.contentW+" "+this.contentH}),QT(Qn,{width:iF.getSVGContent().getAttribute("width"),height:iF.getSVGContent().getAttribute("height"),x:Vn,y:zn});var Kn=jT("background_image");return Kn&&QT(Kn,{width:"100%",height:"100%"}),iF.getCanvas().selectorManager.selectorParentGroup.setAttribute("transform","translate("+Vn+","+zn+")"),iF.getCanvas().runExtensions("canvasUpdated",{new_x:Vn,new_y:zn,old_x:Hn,old_y:Gn,d_x:Vn-Hn,d_y:zn-Gn}),{x:Vn,y:zn,old_x:Hn,old_y:Gn,d_x:Vn-Hn,d_y:zn-Gn}},vF=function cycleElement(Tn){var Un,Dn=iF.getSelectedElements(),Qn=iF.getCurrentGroup(),Hn=Dn[0],Gn=!1,Vn=FT(Qn||iF.getCanvas().getCurrentDrawing().getCurrentLayer());if(Vn.length){if(zT(Hn))Gn=Vn[Un=Tn?Vn.length-1:0];else for(var zn=Vn.length;zn--;)if(Vn[zn]===Hn){(Un=Tn?zn-1:zn+1)>=Vn.length?Un=0:Un<0&&(Un=Vn.length-1),Gn=Vn[Un];break}iF.getCanvas().selectOnly([Gn],!0),iF.call("selected",Dn)}},yF=WT,_F=YT,bF=JT,wF=null,xF=function setBlurNoUndo(Tn){var Un=wF.getSelectedElements();if(wF.getFilter())if(0===Tn)wF.changeSelectedAttributeNoUndoMethod("filter",""),wF.setFilterHidden(!0);else{var Dn=Un[0];wF.getFilterHidden()&&wF.changeSelectedAttributeNoUndoMethod("filter","url(#"+Dn.id+"_blur)"),wF.isWebkit()&&(Dn.removeAttribute("filter"),Dn.setAttribute("filter","url(#"+Dn.id+"_blur)"));var Qn=wF.getFilter();wF.changeSelectedAttributeNoUndoMethod("stdDeviation",Tn,[Qn.firstChild]),wF.getCanvas().setBlurOffsets(Qn,Tn)}else wF.getCanvas().setBlur(Tn)};function finishChange(){var Tn=wF.getCanvas().undoMgr.finishUndoableChange();wF.getCurCommand().addSubCommand(Tn),wF.addCommandToHistory(wF.getCurCommand()),wF.setCurCommand(null),wF.setFilter(null)}var SF=function setBlurOffsets(Tn,Un){Un>3?wF.getCanvas().assignAttributes(Tn,{x:"-50%",y:"-50%",width:"200%",height:"200%"},100):wF.isWebkit()||(Tn.removeAttribute("x"),Tn.removeAttribute("y"),Tn.removeAttribute("width"),Tn.removeAttribute("height"))},CF=function setBlur(Tn,Un){var Dn=wF.getSelectedElements();if(wF.getCurCommand())finishChange();else{var Qn=Dn[0],Hn=Qn.id;wF.setFilter(wF.getCanvas().getElem(Hn+"_blur")),Tn-=0;var Gn=new bF;if(wF.getFilter())0===Tn&&wF.setFilter(null);else{var Vn=wF.getCanvas().addSVGElementFromJson({element:"feGaussianBlur",attr:{in:"SourceGraphic",stdDeviation:Tn}});wF.setFilter(wF.getCanvas().addSVGElementFromJson({element:"filter",attr:{id:Hn+"_blur"}})),wF.getFilter().append(Vn),wF.getCanvas().findDefs().append(wF.getFilter()),Gn.addSubCommand(new yF(wF.getFilter()))}var zn={filter:Qn.getAttribute("filter")};if(0===Tn)return Qn.removeAttribute("filter"),void Gn.addSubCommand(new _F(Qn,zn));wF.changeSelectedAttributeMethod("filter","url(#"+Hn+"_blur)"),Gn.addSubCommand(new _F(Qn,zn)),wF.getCanvas().setBlurOffsets(wF.getFilter(),Tn);var Kn=wF.getFilter();wF.setCurCommand(Gn),wF.getCanvas().undoMgr.beginUndoableChange("stdDeviation",[Kn?Kn.firstChild:null]),Un&&(wF.getCanvas().setBlurNoUndo(Tn),finishChange())}},kF=eA(),BF={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:[]},EF={};Object.entries(BF).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Dn=Un[0],Qn=Un[1],Hn={};Object.entries(Qn).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Dn=(Un[0],Un[1]);if(Dn.includes(":")){var Qn=Dn.split(":");Hn[Qn[1]]=Zf[Qn[0].toUpperCase()]}else Hn[Dn]="xmlns"===Dn?Zf.XMLNS:null})),EF[Dn]=Hn}));var PF=function sanitizeSvg(Tn){if(3===Tn.nodeType&&(Tn.nodeValue=Tn.nodeValue.replace(/^\s+|\s+$/g,""),Tn.nodeValue.length||Tn.remove()),1===Tn.nodeType){var Un=Tn.ownerDocument,Dn=Tn.parentNode;if(Un&&Dn){var Qn=BF[Tn.nodeName],Hn=EF[Tn.nodeName];if(void 0!==Qn){for(var Gn=[],Vn=Tn.attributes.length;Vn--;){var zn=Tn.attributes.item(Vn),Kn=zn.nodeName,$n=zn.localName,Wn=zn.namespaceURI;if({}.hasOwnProperty.call(Hn,$n)&&Wn===Hn[$n]&&Wn!==Zf.XMLNS||Wn===Zf.XMLNS&&kF[zn.value]||((Kn.startsWith("se:")||Kn.startsWith("data-"))&&Gn.push([Kn,zn.value]),Tn.removeAttributeNS(Wn,$n)),YA())switch(Kn){case"transform":case"gradientTransform":case"patternTransform":var Xn=zn.value.replace(/(\d)-/g,"$1 -");Tn.setAttribute(Kn,Xn)}if("style"===Kn){for(var Yn=zn.value.split(";"),Jn=Yn.length;Jn--;){var Zn=_slicedToArray(Yn[Jn].split(":"),2),er=Zn[0],tr=Zn[1],nr=(er||"").trim(),rr=(tr||"").trim();Qn.includes(nr)&&Tn.setAttribute(nr,rr)}Tn.removeAttribute("style")}}Object.values(Gn).forEach((function(Un){var Dn=_slicedToArray(Un,2),Qn=Dn[0],Hn=Dn[1];Tn.setAttributeNS(Zf.SE,Qn,Hn)}));var ir=ST(Tn);if(ir&&["filter","linearGradient","pattern","radialGradient","textPath","use"].includes(Tn.nodeName)&&"#"!==ir[0]&&(CT(Tn,""),Tn.removeAttributeNS(Zf.XLINK,"href")),"use"===Tn.nodeName&&!ST(Tn))return void Tn.remove();for(Object.values(["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"],(function(Un){var Dn=Tn.getAttribute(Un);Dn&&(Dn=xT(Dn))&&"#"!==Dn[0]&&(Tn.setAttribute(Un,""),Tn.removeAttribute(Un))})),Vn=Tn.childNodes.length;Vn--;)sanitizeSvg(Tn.childNodes.item(Vn))}else{for(var or=[];Tn.hasChildNodes();)or.push(Dn.insertBefore(Tn.firstChild,Tn));Tn.remove();for(var ar=or.length;ar--;)sanitizeSvg(or[ar])}}}},LF="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},TF=yP.ArrayBuffer,NF=Dn.ArrayBuffer;_export({global:!0,forced:NF!==TF},{ArrayBuffer:TF}),setSpecies("ArrayBuffer"),_export({global:!0,forced:!WE},{DataView:yP.DataView});var IF=Math.floor;_export({target:"Number",stat:!0},{isInteger:function isInteger(Tn){return!isObject(Tn)&&isFinite(Tn)&&IF(Tn)===Tn}}),_export({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),Qn&&("g"!=/./g.flags||No.UNSUPPORTED_Y)&&nr.f(RegExp.prototype,"flags",{configurable:!0,get:regexpFlags}),_export({target:"String",proto:!0,forced:stringHtmlForced("link")},{link:function link(Tn){return createHtml(this,"a","href",Tn)}}),KP("Float32",(function(Tn){return function Float32Array(Un,Dn,Qn){return Tn(this,Un,Dn,Qn)}})),KP("Float64",(function(Tn){return function Float64Array(Un,Dn,Qn){return Tn(this,Un,Dn,Qn)}})),KP("Int8",(function(Tn){return function Int8Array(Un,Dn,Qn){return Tn(this,Un,Dn,Qn)}})),KP("Int16",(function(Tn){return function Int16Array(Un,Dn,Qn){return Tn(this,Un,Dn,Qn)}})),KP("Int32",(function(Tn){return function Int32Array(Un,Dn,Qn){return Tn(this,Un,Dn,Qn)}})),KP("Uint8",(function(Tn){return function Uint8ClampedArray(Un,Dn,Qn){return Tn(this,Un,Dn,Qn)}}),!0),KP("Uint16",(function(Tn){return function Uint16Array(Un,Dn,Qn){return Tn(this,Un,Dn,Qn)}})),KP("Uint32",(function(Tn){return function Uint32Array(Un,Dn,Qn){return Tn(this,Un,Dn,Qn)}}));
|
||
/** @license
|
||
*
|
||
* jsPDF - PDF Document creation from JavaScript
|
||
* Version 2.1.1 Built on 2020-09-07T12:58:19.950Z
|
||
* CommitID 00000000
|
||
*
|
||
* Copyright (c) 2010-2020 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
||
* 2015-2020 yWorks GmbH, http://www.yworks.com
|
||
* 2015-2020 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
||
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
||
* 2010 Aaron Spike, https://github.com/acspike
|
||
* 2012 Willow Systems Corporation, willow-systems.com
|
||
* 2012 Pablo Hess, https://github.com/pablohess
|
||
* 2012 Florian Jenett, https://github.com/fjenett
|
||
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
||
* 2013 Youssef Beddad, https://github.com/lifof
|
||
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
||
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
||
* 2013 Jeremy Morel, https://github.com/jmorel
|
||
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
||
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
||
* 2014 James Makes, https://github.com/dollaruw
|
||
* 2014 Diego Casorran, https://github.com/diegocr
|
||
* 2014 Steven Spungin, https://github.com/Flamenco
|
||
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
||
*
|
||
* 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.
|
||
*
|
||
* Contributor(s):
|
||
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
||
* kim3er, mfo, alnorth, Flamenco
|
||
*/
|
||
var OF=function(){return"undefined"!=typeof window?window:void 0!==LF?LF:"undefined"!=typeof self?self:this}();function e$1(){OF.console&&"function"==typeof OF.console.log&&OF.console.log.apply(OF.console,arguments)}var FF={log:e$1,warn:function warn(Tn){OF.console&&("function"==typeof OF.console.warn?OF.console.warn.apply(OF.console,arguments):e$1.call(null,arguments))},error:function error(Tn){OF.console&&("function"==typeof OF.console.error?OF.console.error.apply(OF.console,arguments):e$1(Tn))}};
|
||
/**
|
||
* @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 r$1(Tn,Un,Dn){var Qn=new XMLHttpRequest;Qn.open("GET",Tn),Qn.responseType="blob",Qn.onload=function(){RF(Qn.response,Un,Dn)},Qn.onerror=function(){FF.error("could not download file")},Qn.send()}function i$2(Tn){var Un=new XMLHttpRequest;Un.open("HEAD",Tn,!1);try{Un.send()}catch(Tn){}return Un.status>=200&&Un.status<=299}function a$1(Tn){try{Tn.dispatchEvent(new MouseEvent("click"))}catch(Dn){var Un=document.createEvent("MouseEvents");Un.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Tn.dispatchEvent(Un)}}var UF,MF,RF=OF.saveAs||("object"!=("undefined"==typeof window?"undefined":_typeof(window))||window!==OF?function(){}:"download"in HTMLAnchorElement.prototype?function(Tn,Un,Dn){var Qn=OF.URL||OF.webkitURL,Hn=document.createElement("a");Un=Un||Tn.name||"download",Hn.download=Un,Hn.rel="noopener","string"==typeof Tn?(Hn.href=Tn,Hn.origin!==location.origin?i$2(Hn.href)?r$1(Tn,Un,Dn):a$1(Hn,Hn.target="_blank"):a$1(Hn)):(Hn.href=Qn.createObjectURL(Tn),setTimeout((function(){Qn.revokeObjectURL(Hn.href)}),4e4),setTimeout((function(){a$1(Hn)}),0))}:"msSaveOrOpenBlob"in navigator?function(Tn,Un,Dn){if(Un=Un||Tn.name||"download","string"==typeof Tn)if(i$2(Tn))r$1(Tn,Un,Dn);else{var Qn=document.createElement("a");Qn.href=Tn,Qn.target="_blank",setTimeout((function(){a$1(Qn)}))}else navigator.msSaveOrOpenBlob(function(Tn,Un){return void 0===Un?Un={autoBom:!1}:"object"!=_typeof(Un)&&(FF.warn("Deprecated: Expected third argument to be a object"),Un={autoBom:!Un}),Un.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Tn.type)?new Blob([String.fromCharCode(65279),Tn],{type:Tn.type}):Tn}(Tn,Dn),Un)}:function(Tn,Un,Dn,Qn){if((Qn=Qn||open("","_blank"))&&(Qn.document.title=Qn.document.body.innerText="downloading..."),"string"==typeof Tn)return r$1(Tn,Un,Dn);var Hn="application/octet-stream"===Tn.type,Gn=/constructor/i.test(OF.HTMLElement)||OF.safari,Vn=/CriOS\/[\d]+/.test(navigator.userAgent);if((Vn||Hn&&Gn)&&"object"==("undefined"==typeof FileReader?"undefined":_typeof(FileReader))){var zn=new FileReader;zn.onloadend=function(){var Tn=zn.result;Tn=Vn?Tn:Tn.replace(/^data:[^;]*;/,"data:attachment/file;"),Qn?Qn.location.href=Tn:location=Tn,Qn=null},zn.readAsDataURL(Tn)}else{var Kn=OF.URL||OF.webkitURL,$n=Kn.createObjectURL(Tn);Qn?Qn.location=$n:location.href=$n,Qn=null,setTimeout((function(){Kn.revokeObjectURL($n)}),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 c$2(Tn){var Un;Tn=Tn||"",this.ok=!1,"#"==Tn.charAt(0)&&(Tn=Tn.substr(1,6)),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",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"}[Tn=(Tn=Tn.replace(/ /g,"")).toLowerCase()]||Tn;for(var Dn=[{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(Tn){return[parseInt(Tn[1]),parseInt(Tn[2]),parseInt(Tn[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(Tn){return[parseInt(Tn[1],16),parseInt(Tn[2],16),parseInt(Tn[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(Tn){return[parseInt(Tn[1]+Tn[1],16),parseInt(Tn[2]+Tn[2],16),parseInt(Tn[3]+Tn[3],16)]}}],Qn=0;Qn<Dn.length;Qn++){var Hn=Dn[Qn].re,Gn=Dn[Qn].process,Vn=Hn.exec(Tn);Vn&&(Un=Gn(Vn),this.r=Un[0],this.g=Un[1],this.b=Un[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 Tn=this.r.toString(16),Un=this.g.toString(16),Dn=this.b.toString(16);return 1==Tn.length&&(Tn="0"+Tn),1==Un.length&&(Un="0"+Un),1==Dn.length&&(Dn="0"+Dn),"#"+Tn+Un+Dn}}function h$1(Tn){if("object"!=_typeof(Tn))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Un={};this.subscribe=function(Tn,Dn,Qn){if(Qn=Qn||!1,"string"!=typeof Tn||"function"!=typeof Dn||"boolean"!=typeof Qn)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Un.hasOwnProperty(Tn)||(Un[Tn]={});var Hn=Math.random().toString(35);return Un[Tn][Hn]=[Dn,!!Qn],Hn},this.unsubscribe=function(Tn){for(var Dn in Un)if(Un[Dn][Tn])return delete Un[Dn][Tn],0===Object.keys(Un[Dn]).length&&delete Un[Dn],!0;return!1},this.publish=function(Dn){if(Un.hasOwnProperty(Dn)){var Qn=Array.prototype.slice.call(arguments,1),Hn=[];for(var Gn in Un[Dn]){var Vn=Un[Dn][Gn];try{Vn[0].apply(Tn,Qn)}catch(Tn){OF.console&&FF.error("jsPDF PubSub Error",Tn.message,Tn)}Vn[1]&&Hn.push(Gn)}Hn.length&&Hn.forEach(this.unsubscribe)}},this.getTopics=function(){return Un}}function l$1(Tn){if(!(this instanceof l$1))return new l$1(Tn);var Un="opacity,stroke-opacity".split(",");for(var Dn in Tn)Tn.hasOwnProperty(Dn)&&Un.indexOf(Dn)>=0&&(this[Dn]=Tn[Dn]);this.id="",this.objectNumber=-1}function f$h(Tn,Un){this.gState=Tn,this.matrix=Un,this.id="",this.objectNumber=-1}function d(Tn,Un,Dn,Qn,Hn){if(!(this instanceof d))return new d(Tn,Un,Dn,Qn,Hn);this.type="axial"===Tn?2:3,this.coords=Un,this.colors=Dn,f$h.call(this,Qn,Hn)}function p$1(Tn,Un,Dn,Qn,Hn){if(!(this instanceof p$1))return new p$1(Tn,Un,Dn,Qn,Hn);this.boundingBox=Tn,this.xStep=Un,this.yStep=Dn,this.stream="",this.cloneIndex=0,f$h.call(this,Qn,Hn)}function g(Tn){var Un,Dn="string"==typeof arguments[0]?arguments[0]:"p",Qn=arguments[1],Hn=arguments[2],Gn=arguments[3],Vn=[],zn=1,Kn=16,$n="S";"object"==_typeof(Tn=Tn||{})&&(Dn=Tn.orientation,Qn=Tn.unit||Qn,Hn=Tn.format||Hn,Gn=Tn.compress||Tn.compressPdf||Gn,zn="number"==typeof Tn.userUnit?Math.abs(Tn.userUnit):1,void 0!==Tn.precision&&(Un=Tn.precision),void 0!==Tn.floatPrecision&&(Kn=Tn.floatPrecision),$n=Tn.defaultPathOperation||"S"),Vn=Tn.filters||(!0===Gn?["FlateEncode"]:Vn),Qn=Qn||"mm",Dn=(""+(Dn||"P")).toLowerCase();var Wn=Tn.putOnlyUsedFonts||!1,Xn={},Yn={internal:{},__private__:{}};Yn.__private__.PubSub=h$1;var Jn="1.3",Zn=Yn.__private__.getPdfVersion=function(){return Jn};Yn.__private__.setPdfVersion=function(Tn){Jn=Tn};var er={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]};Yn.__private__.getPageFormats=function(){return er};var tr=Yn.__private__.getPageFormat=function(Tn){return er[Tn]};Hn=Hn||"a4";var nr={COMPAT:"compat",ADVANCED:"advanced"},rr=nr.COMPAT;function F(){this.saveGraphicsState(),Ir(new gi($r,0,0,-$r,0,aa()*$r).toString()+" cm"),this.setFontSize(this.getFontSize()/$r),$n="n",rr=nr.ADVANCED}function I(){this.restoreGraphicsState(),$n="S",rr=nr.COMPAT}Yn.advancedAPI=function(Tn){var Un=rr===nr.COMPAT;return Un&&F.call(this),"function"!=typeof Tn||(Tn(this),Un&&I.call(this)),this},Yn.compatAPI=function(Tn){var Un=rr===nr.ADVANCED;return Un&&I.call(this),"function"!=typeof Tn||(Tn(this),Un&&F.call(this)),this},Yn.isAdvancedAPI=function(){return rr===nr.ADVANCED};var ir,or=function j(Tn){if(rr!==nr.ADVANCED)throw new Error(Tn+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},ar=Yn.roundToPrecision=Yn.__private__.roundToPrecision=function(Tn,Dn){var Qn=Un||Dn;if(isNaN(Tn)||isNaN(Qn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Tn.toFixed(Qn).replace(/0+$/,"")};ir=Yn.hpf=Yn.__private__.hpf="number"==typeof Kn?function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.hpf");return ar(Tn,Kn)}:"smart"===Kn?function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.hpf");return ar(Tn,Tn>-1&&Tn<1?16:5)}:function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.hpf");return ar(Tn,16)};var sr=Yn.f2=Yn.__private__.f2=function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.f2");return ar(Tn,2)},lr=Yn.__private__.f3=function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.f3");return ar(Tn,3)},cr=Yn.scale=Yn.__private__.scale=function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.scale");return rr===nr.COMPAT?Tn*$r:rr===nr.ADVANCED?Tn:void 0},ur=function q(Tn){return rr===nr.COMPAT?aa()-Tn:rr===nr.ADVANCED?Tn:void 0},dr=function R(Tn){return cr(ur(Tn))};Yn.__private__.setPrecision=Yn.setPrecision=function(Tn){"number"==typeof parseInt(Tn,10)&&(Un=parseInt(Tn,10))};var hr,pr="00000000000000000000000000000000",gr=Yn.__private__.getFileId=function(){return pr},fr=Yn.__private__.setFileId=function(Tn){return pr=void 0!==Tn&&/^[a-fA-F0-9]{32}$/.test(Tn)?Tn.toUpperCase():pr.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join("")};Yn.setFileId=function(Tn){return fr(Tn),this},Yn.getFileId=function(){return gr()};var Ar=Yn.__private__.convertDateToPDFDate=function(Tn){var Un=Tn.getTimezoneOffset(),Dn=Un<0?"+":"-",Qn=Math.floor(Math.abs(Un/60)),Hn=Math.abs(Un%60),Gn=[Dn,br(Qn),"'",br(Hn),"'"].join("");return["D:",Tn.getFullYear(),br(Tn.getMonth()+1),br(Tn.getDate()),br(Tn.getHours()),br(Tn.getMinutes()),br(Tn.getSeconds()),Gn].join("")},mr=Yn.__private__.convertPDFDateToDate=function(Tn){var Un=parseInt(Tn.substr(2,4),10),Dn=parseInt(Tn.substr(6,2),10)-1,Qn=parseInt(Tn.substr(8,2),10),Hn=parseInt(Tn.substr(10,2),10),Gn=parseInt(Tn.substr(12,2),10),Vn=parseInt(Tn.substr(14,2),10);return new Date(Un,Dn,Qn,Hn,Gn,Vn,0)},vr=Yn.__private__.setCreationDate=function(Tn){var Un;if(void 0===Tn&&(Tn=new Date),Tn instanceof Date)Un=Ar(Tn);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(Tn))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Un=Tn}return hr=Un},yr=Yn.__private__.getCreationDate=function(Tn){var Un=hr;return"jsDate"===Tn&&(Un=mr(hr)),Un};Yn.setCreationDate=function(Tn){return vr(Tn),this},Yn.getCreationDate=function(Tn){return yr(Tn)};var _r,br=Yn.__private__.padd2=function(Tn){return("0"+parseInt(Tn)).slice(-2)},wr=Yn.__private__.padd2Hex=function(Tn){return("00"+(Tn=Tn.toString())).substr(Tn.length)},xr=0,Sr=[],Cr=[],kr=0,Br=[],Er=[],Pr=!1,Lr=Cr,Tr=function it(){xr=0,kr=0,Cr=[],Sr=[],Br=[],xi=yi(),Si=yi()};Yn.__private__.setCustomOutputDestination=function(Tn){Pr=!0,Lr=Tn};var Nr=function at(Tn){Pr||(Lr=Tn)};Yn.__private__.resetCustomOutputDestination=function(){Pr=!1,Lr=Cr};var Ir=Yn.__private__.out=function(Tn){return Tn=Tn.toString(),kr+=Tn.length+1,Lr.push(Tn),Lr},Or=Yn.__private__.write=function(Tn){return Ir(1===arguments.length?Tn.toString():Array.prototype.join.call(arguments," "))},Fr=Yn.__private__.getArrayBuffer=function(Tn){for(var Un=Tn.length,Dn=new ArrayBuffer(Un),Qn=new Uint8Array(Dn);Un--;)Qn[Un]=Tn.charCodeAt(Un);return Dn},Ur=[["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]];Yn.__private__.getStandardFonts=function(){return Ur};var Mr=Tn.fontSize||16;Yn.__private__.setFontSize=Yn.setFontSize=function(Tn){return Mr=rr===nr.ADVANCED?Tn/$r:Tn,this};var Rr,Dr=Yn.__private__.getFontSize=Yn.getFontSize=function(){return rr===nr.COMPAT?Mr:Mr*$r},jr=Tn.R2L||!1;Yn.__private__.setR2L=Yn.setR2L=function(Tn){return jr=Tn,this},Yn.__private__.getR2L=Yn.getR2L=function(){return jr};var Qr,Hr=Yn.__private__.setZoomMode=function(Tn){if(/^\d*\.?\d*%$/.test(Tn))Rr=Tn;else if(isNaN(Tn)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(Tn))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Tn+'" is not recognized.');Rr=Tn}else Rr=parseInt(Tn,10)};Yn.__private__.getZoomMode=function(){return Rr};var Gr,Vr=Yn.__private__.setPageMode=function(Tn){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Tn))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Tn+'" is not recognized.');Qr=Tn};Yn.__private__.getPageMode=function(){return Qr};var zr=Yn.__private__.setLayoutMode=function(Tn){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Tn))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Tn+'" is not recognized.');Gr=Tn};Yn.__private__.getLayoutMode=function(){return Gr},Yn.__private__.setDisplayMode=Yn.setDisplayMode=function(Tn,Un,Dn){return Hr(Tn),zr(Un),Vr(Dn),this};var Kr={title:"",subject:"",author:"",keywords:"",creator:""};Yn.__private__.getDocumentProperty=function(Tn){if(-1===Object.keys(Kr).indexOf(Tn))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Kr[Tn]},Yn.__private__.getDocumentProperties=function(){return Kr},Yn.__private__.setDocumentProperties=Yn.setProperties=Yn.setDocumentProperties=function(Tn){for(var Un in Kr)Kr.hasOwnProperty(Un)&&Tn[Un]&&(Kr[Un]=Tn[Un]);return this},Yn.__private__.setDocumentProperty=function(Tn,Un){if(-1===Object.keys(Kr).indexOf(Tn))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Kr[Tn]=Un};var qr,$r,Wr,Xr,Yr,Jr={},Zr={},ei=[],ti={},ni={},ri={},ii={},oi=null,ai=0,si=[],li=new h$1(Yn),ui=Tn.hotfixes||[],di={},hi={},pi=[],gi=function Dt(Tn,Un,Dn,Qn,Hn,Gn){if(!(this instanceof Dt))return new Dt(Tn,Un,Dn,Qn,Hn,Gn);isNaN(Tn)&&(Tn=1),isNaN(Un)&&(Un=0),isNaN(Dn)&&(Dn=0),isNaN(Qn)&&(Qn=1),isNaN(Hn)&&(Hn=0),isNaN(Gn)&&(Gn=0),this._matrix=[Tn,Un,Dn,Qn,Hn,Gn]};Object.defineProperty(gi.prototype,"sx",{get:function get(){return this._matrix[0]},set:function set(Tn){this._matrix[0]=Tn}}),Object.defineProperty(gi.prototype,"shy",{get:function get(){return this._matrix[1]},set:function set(Tn){this._matrix[1]=Tn}}),Object.defineProperty(gi.prototype,"shx",{get:function get(){return this._matrix[2]},set:function set(Tn){this._matrix[2]=Tn}}),Object.defineProperty(gi.prototype,"sy",{get:function get(){return this._matrix[3]},set:function set(Tn){this._matrix[3]=Tn}}),Object.defineProperty(gi.prototype,"tx",{get:function get(){return this._matrix[4]},set:function set(Tn){this._matrix[4]=Tn}}),Object.defineProperty(gi.prototype,"ty",{get:function get(){return this._matrix[5]},set:function set(Tn){this._matrix[5]=Tn}}),Object.defineProperty(gi.prototype,"a",{get:function get(){return this._matrix[0]},set:function set(Tn){this._matrix[0]=Tn}}),Object.defineProperty(gi.prototype,"b",{get:function get(){return this._matrix[1]},set:function set(Tn){this._matrix[1]=Tn}}),Object.defineProperty(gi.prototype,"c",{get:function get(){return this._matrix[2]},set:function set(Tn){this._matrix[2]=Tn}}),Object.defineProperty(gi.prototype,"d",{get:function get(){return this._matrix[3]},set:function set(Tn){this._matrix[3]=Tn}}),Object.defineProperty(gi.prototype,"e",{get:function get(){return this._matrix[4]},set:function set(Tn){this._matrix[4]=Tn}}),Object.defineProperty(gi.prototype,"f",{get:function get(){return this._matrix[5]},set:function set(Tn){this._matrix[5]=Tn}}),Object.defineProperty(gi.prototype,"rotation",{get:function get(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(gi.prototype,"scaleX",{get:function get(){return this.decompose().scale.sx}}),Object.defineProperty(gi.prototype,"scaleY",{get:function get(){return this.decompose().scale.sy}}),Object.defineProperty(gi.prototype,"isIdentity",{get:function get(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),gi.prototype.join=function(Tn){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ir).join(Tn)},gi.prototype.multiply=function(Tn){var Un=Tn.sx*this.sx+Tn.shy*this.shx,Dn=Tn.sx*this.shy+Tn.shy*this.sy,Qn=Tn.shx*this.sx+Tn.sy*this.shx,Hn=Tn.shx*this.shy+Tn.sy*this.sy,Gn=Tn.tx*this.sx+Tn.ty*this.shx+this.tx,Vn=Tn.tx*this.shy+Tn.ty*this.sy+this.ty;return new gi(Un,Dn,Qn,Hn,Gn,Vn)},gi.prototype.decompose=function(){var Tn=this.sx,Un=this.shy,Dn=this.shx,Qn=this.sy,Hn=this.tx,Gn=this.ty,Vn=Math.sqrt(Tn*Tn+Un*Un),zn=(Tn/=Vn)*Dn+(Un/=Vn)*Qn;Dn-=Tn*zn,Qn-=Un*zn;var Kn=Math.sqrt(Dn*Dn+Qn*Qn);return zn/=Kn,Tn*(Qn/=Kn)<Un*(Dn/=Kn)&&(Tn=-Tn,Un=-Un,zn=-zn,Vn=-Vn),{scale:new gi(Vn,0,0,Kn,0,0),translate:new gi(1,0,0,1,Hn,Gn),rotate:new gi(Tn,Un,-Un,Tn,0,0),skew:new gi(1,0,zn,1,0,0)}},gi.prototype.toString=function(Tn){return this.join(" ")},gi.prototype.inversed=function(){var Tn=this.sx,Un=this.shy,Dn=this.shx,Qn=this.sy,Hn=this.tx,Gn=this.ty,Vn=1/(Tn*Qn-Un*Dn),zn=Qn*Vn,Kn=-Un*Vn,$n=-Dn*Vn,Wn=Tn*Vn;return new gi(zn,Kn,$n,Wn,-zn*Hn-$n*Gn,-Kn*Hn-Wn*Gn)},gi.prototype.applyToPoint=function(Tn){var Un=Tn.x*this.sx+Tn.y*this.shx+this.tx,Dn=Tn.x*this.shy+Tn.y*this.sy+this.ty;return new Jo(Un,Dn)},gi.prototype.applyToRectangle=function(Tn){var Un=this.applyToPoint(Tn),Dn=this.applyToPoint(new Jo(Tn.x+Tn.w,Tn.y+Tn.h));return new Zo(Un.x,Un.y,Dn.x-Un.x,Dn.y-Un.y)},gi.prototype.clone=function(){var Tn=this.sx,Un=this.shy,Dn=this.shx,Qn=this.sy,Hn=this.tx,Gn=this.ty;return new gi(Tn,Un,Dn,Qn,Hn,Gn)},Yn.Matrix=gi;var fi=Yn.matrixMult=function(Tn,Un){return Un.multiply(Tn)},Ai=new gi(1,0,0,1,0,0);Yn.unitMatrix=Yn.identityMatrix=Ai;var mi=function Ht(Tn,Un){if(!ni[Tn]){var Dn=(Un instanceof d?"Sh":"P")+(Object.keys(ti).length+1).toString(10);Un.id=Dn,ni[Tn]=Dn,ti[Dn]=Un,li.publish("addPattern",Un)}};Yn.ShadingPattern=d,Yn.TilingPattern=p$1,Yn.addShadingPattern=function(Tn,Un){return or("addShadingPattern()"),mi(Tn,Un),this},Yn.beginTilingPattern=function(Tn){or("beginTilingPattern()"),ta(Tn.boundingBox[0],Tn.boundingBox[1],Tn.boundingBox[2]-Tn.boundingBox[0],Tn.boundingBox[3]-Tn.boundingBox[1],Tn.matrix)},Yn.endTilingPattern=function(Tn,Un){or("endTilingPattern()"),Un.stream=Er[_r].join("\n"),mi(Tn,Un),li.publish("endTilingPattern",Un),pi.pop().restore()};var vi=Yn.__private__.newObject=function(){var Tn=yi();return _i(Tn,!0),Tn},yi=Yn.__private__.newObjectDeferred=function(){return xr++,Sr[xr]=function(){return kr},xr},_i=function Gt(Tn,Un){return Un="boolean"==typeof Un&&Un,Sr[Tn]=kr,Un&&Ir(Tn+" 0 obj"),Tn},wi=Yn.__private__.newAdditionalObject=function(){var Tn={objId:yi(),content:""};return Br.push(Tn),Tn},xi=yi(),Si=yi(),Ci=Yn.__private__.decodeColorString=function(Tn){var Un=Tn.split(" ");if(2!==Un.length||"g"!==Un[1]&&"G"!==Un[1])5!==Un.length||"k"!==Un[4]&&"K"!==Un[4]||(Un=[(1-Un[0])*(1-Un[3]),(1-Un[1])*(1-Un[3]),(1-Un[2])*(1-Un[3]),"r"]);else{var Dn=parseFloat(Un[0]);Un=[Dn,Dn,Dn,"r"]}for(var Qn="#",Hn=0;Hn<3;Hn++)Qn+=("0"+Math.floor(255*parseFloat(Un[Hn])).toString(16)).slice(-2);return Qn},ki=Yn.__private__.encodeColorString=function(Tn){var Un;"string"==typeof Tn&&(Tn={ch1:Tn});var Dn=Tn.ch1,Qn=Tn.ch2,Hn=Tn.ch3,Gn=Tn.ch4,Vn="draw"===Tn.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof Dn&&"#"!==Dn.charAt(0)){var zn=new c$2(Dn);if(zn.ok)Dn=zn.toHex();else if(!/^\d*\.?\d*$/.test(Dn))throw new Error('Invalid color "'+Dn+'" passed to jsPDF.encodeColorString.')}if("string"==typeof Dn&&/^#[0-9A-Fa-f]{3}$/.test(Dn)&&(Dn="#"+Dn[1]+Dn[1]+Dn[2]+Dn[2]+Dn[3]+Dn[3]),"string"==typeof Dn&&/^#[0-9A-Fa-f]{6}$/.test(Dn)){var Kn=parseInt(Dn.substr(1),16);Dn=Kn>>16&255,Qn=Kn>>8&255,Hn=255&Kn}if(void 0===Qn||void 0===Gn&&Dn===Qn&&Qn===Hn)if("string"==typeof Dn)Un=Dn+" "+Vn[0];else switch(Tn.precision){case 2:Un=sr(Dn/255)+" "+Vn[0];break;case 3:default:Un=lr(Dn/255)+" "+Vn[0]}else if(void 0===Gn||"object"==_typeof(Gn)){if(Gn&&!isNaN(Gn.a)&&0===Gn.a)return["1.","1.","1.",Vn[1]].join(" ");if("string"==typeof Dn)Un=[Dn,Qn,Hn,Vn[1]].join(" ");else switch(Tn.precision){case 2:Un=[sr(Dn/255),sr(Qn/255),sr(Hn/255),Vn[1]].join(" ");break;default:case 3:Un=[lr(Dn/255),lr(Qn/255),lr(Hn/255),Vn[1]].join(" ")}}else if("string"==typeof Dn)Un=[Dn,Qn,Hn,Gn,Vn[2]].join(" ");else switch(Tn.precision){case 2:Un=[sr(Dn),sr(Qn),sr(Hn),sr(Gn),Vn[2]].join(" ");break;case 3:default:Un=[lr(Dn),lr(Qn),lr(Hn),lr(Gn),Vn[2]].join(" ")}return Un},Bi=Yn.__private__.getFilters=function(){return Vn},Ei=Yn.__private__.putStream=function(Tn){var Un=(Tn=Tn||{}).data||"",Dn=Tn.filters||Bi(),Qn=Tn.alreadyAppliedFilters||[],Hn=Tn.addLength1||!1,Gn=Un.length,Vn={};!0===Dn&&(Dn=["FlateEncode"]);var zn=Tn.additionalKeyValues||[],Kn=(Vn=void 0!==g.API.processDataByFilters?g.API.processDataByFilters(Un,Dn):{data:Un,reverseChain:[]}).reverseChain+(Array.isArray(Qn)?Qn.join(" "):Qn.toString());if(0!==Vn.data.length&&(zn.push({key:"Length",value:Vn.data.length}),!0===Hn&&zn.push({key:"Length1",value:Gn})),0!=Kn.length)if(Kn.split("/").length-1==1)zn.push({key:"Filter",value:Kn});else{zn.push({key:"Filter",value:"["+Kn+"]"});for(var $n=0;$n<zn.length;$n+=1)if("DecodeParms"===zn[$n].key){for(var Wn=[],Xn=0;Xn<Vn.reverseChain.split("/").length-1;Xn+=1)Wn.push("null");Wn.push(zn[$n].value),zn[$n].value="["+Wn.join(" ")+"]"}}Ir("<<");for(var Yn=0;Yn<zn.length;Yn++)Ir("/"+zn[Yn].key+" "+zn[Yn].value);Ir(">>"),0!==Vn.data.length&&(Ir("stream"),Ir(Vn.data),Ir("endstream"))},Pi=Yn.__private__.putPage=function(Tn){var Un=Tn.number,Dn=Tn.data,Qn=Tn.objId,Hn=Tn.contentsObjId;_i(Qn,!0),Ir("<</Type /Page"),Ir("/Parent "+Tn.rootDictionaryObjId+" 0 R"),Ir("/Resources "+Tn.resourceDictionaryObjId+" 0 R"),Ir("/MediaBox ["+parseFloat(ir(Tn.mediaBox.bottomLeftX))+" "+parseFloat(ir(Tn.mediaBox.bottomLeftY))+" "+ir(Tn.mediaBox.topRightX)+" "+ir(Tn.mediaBox.topRightY)+"]"),null!==Tn.cropBox&&Ir("/CropBox ["+ir(Tn.cropBox.bottomLeftX)+" "+ir(Tn.cropBox.bottomLeftY)+" "+ir(Tn.cropBox.topRightX)+" "+ir(Tn.cropBox.topRightY)+"]"),null!==Tn.bleedBox&&Ir("/BleedBox ["+ir(Tn.bleedBox.bottomLeftX)+" "+ir(Tn.bleedBox.bottomLeftY)+" "+ir(Tn.bleedBox.topRightX)+" "+ir(Tn.bleedBox.topRightY)+"]"),null!==Tn.trimBox&&Ir("/TrimBox ["+ir(Tn.trimBox.bottomLeftX)+" "+ir(Tn.trimBox.bottomLeftY)+" "+ir(Tn.trimBox.topRightX)+" "+ir(Tn.trimBox.topRightY)+"]"),null!==Tn.artBox&&Ir("/ArtBox ["+ir(Tn.artBox.bottomLeftX)+" "+ir(Tn.artBox.bottomLeftY)+" "+ir(Tn.artBox.topRightX)+" "+ir(Tn.artBox.topRightY)+"]"),"number"==typeof Tn.userUnit&&1!==Tn.userUnit&&Ir("/UserUnit "+Tn.userUnit),li.publish("putPage",{objId:Qn,pageContext:si[Un],pageNumber:Un,page:Dn}),Ir("/Contents "+Hn+" 0 R"),Ir(">>"),Ir("endobj");var Gn=Dn.join("\n");return rr===nr.ADVANCED&&(Gn+="\nQ"),_i(Hn,!0),Ei({data:Gn,filters:Bi()}),Ir("endobj"),Qn},Li=Yn.__private__.putPages=function(){var Tn,Un,Dn=[];for(Tn=1;Tn<=ai;Tn++)si[Tn].objId=yi(),si[Tn].contentsObjId=yi();for(Tn=1;Tn<=ai;Tn++)Dn.push(Pi({number:Tn,data:Er[Tn],objId:si[Tn].objId,contentsObjId:si[Tn].contentsObjId,mediaBox:si[Tn].mediaBox,cropBox:si[Tn].cropBox,bleedBox:si[Tn].bleedBox,trimBox:si[Tn].trimBox,artBox:si[Tn].artBox,userUnit:si[Tn].userUnit,rootDictionaryObjId:xi,resourceDictionaryObjId:Si}));_i(xi,!0),Ir("<</Type /Pages");var Qn="/Kids [";for(Un=0;Un<ai;Un++)Qn+=Dn[Un]+" 0 R ";Ir(Qn+"]"),Ir("/Count "+ai),Ir(">>"),Ir("endobj"),li.publish("postPutPages")},Ti=function ne(Tn){var Un=function e(Tn,Un){return-1!==Tn.indexOf(" ")?"("+eo(Tn,Un)+")":eo(Tn,Un)};li.publish("putFont",{font:Tn,out:Ir,newObject:vi,putStream:Ei,pdfEscapeWithNeededParanthesis:Un}),!0!==Tn.isAlreadyPutted&&(Tn.objectNumber=vi(),Ir("<<"),Ir("/Type /Font"),Ir("/BaseFont /"+Un(Tn.postScriptName)),Ir("/Subtype /Type1"),"string"==typeof Tn.encoding&&Ir("/Encoding /"+Tn.encoding),Ir("/FirstChar 32"),Ir("/LastChar 255"),Ir(">>"),Ir("endobj"))},Ni=function re(){for(var Tn in Jr)Jr.hasOwnProperty(Tn)&&(!1===Wn||!0===Wn&&Xn.hasOwnProperty(Tn))&&Ti(Jr[Tn])},Ii=function ie(Tn){Tn.objectNumber=vi();var Un=[];Un.push({key:"Type",value:"/XObject"}),Un.push({key:"Subtype",value:"/Form"}),Un.push({key:"BBox",value:"["+[ir(Tn.x),ir(Tn.y),ir(Tn.x+Tn.width),ir(Tn.y+Tn.height)].join(" ")+"]"}),Un.push({key:"Matrix",value:"["+Tn.matrix.toString()+"]"});var Dn=Tn.pages[1].join("\n");Ei({data:Dn,additionalKeyValues:Un}),Ir("endobj")},Oi=function ae(){for(var Tn in di)di.hasOwnProperty(Tn)&&Ii(di[Tn])},Fi=function oe(Tn,Un){var Dn,Qn=[],Hn=1/(Un-1);for(Dn=0;Dn<1;Dn+=Hn)Qn.push(Dn);if(Qn.push(1),0!=Tn[0].offset){var Gn={offset:0,color:Tn[0].color};Tn.unshift(Gn)}if(1!=Tn[Tn.length-1].offset){var Vn={offset:1,color:Tn[Tn.length-1].color};Tn.push(Vn)}for(var zn="",Kn=0,$n=0;$n<Qn.length;$n++){for(Dn=Qn[$n];Dn>Tn[Kn+1].offset;)Kn++;var Wn=Tn[Kn].offset,Xn=(Dn-Wn)/(Tn[Kn+1].offset-Wn),Yn=Tn[Kn].color,Jn=Tn[Kn+1].color;zn+=wr(Math.round((1-Xn)*Yn[0]+Xn*Jn[0]).toString(16))+wr(Math.round((1-Xn)*Yn[1]+Xn*Jn[1]).toString(16))+wr(Math.round((1-Xn)*Yn[2]+Xn*Jn[2]).toString(16))}return zn.trim()},Ui=function se(Tn,Un){Un||(Un=21);var Dn=vi(),Qn=Fi(Tn.colors,Un),Hn=[];Hn.push({key:"FunctionType",value:"0"}),Hn.push({key:"Domain",value:"[0.0 1.0]"}),Hn.push({key:"Size",value:"["+Un+"]"}),Hn.push({key:"BitsPerSample",value:"8"}),Hn.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Hn.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ei({data:Qn,additionalKeyValues:Hn,alreadyAppliedFilters:["/ASCIIHexDecode"]}),Ir("endobj"),Tn.objectNumber=vi(),Ir("<< /ShadingType "+Tn.type),Ir("/ColorSpace /DeviceRGB");var Gn="/Coords ["+ir(parseFloat(Tn.coords[0]))+" "+ir(parseFloat(Tn.coords[1]))+" ";2===Tn.type?Gn+=ir(parseFloat(Tn.coords[2]))+" "+ir(parseFloat(Tn.coords[3])):Gn+=ir(parseFloat(Tn.coords[2]))+" "+ir(parseFloat(Tn.coords[3]))+" "+ir(parseFloat(Tn.coords[4]))+" "+ir(parseFloat(Tn.coords[5])),Ir(Gn+="]"),Tn.matrix&&Ir("/Matrix ["+Tn.matrix.toString()+"]"),Ir("/Function "+Dn+" 0 R"),Ir("/Extend [true true]"),Ir(">>"),Ir("endobj")},Mi=function ue(Tn,Un){var Dn=yi(),Qn=vi();Un.push({resourcesOid:Dn,objectOid:Qn}),Tn.objectNumber=Qn;var Hn=[];Hn.push({key:"Type",value:"/Pattern"}),Hn.push({key:"PatternType",value:"1"}),Hn.push({key:"PaintType",value:"1"}),Hn.push({key:"TilingType",value:"1"}),Hn.push({key:"BBox",value:"["+Tn.boundingBox.map(ir).join(" ")+"]"}),Hn.push({key:"XStep",value:ir(Tn.xStep)}),Hn.push({key:"YStep",value:ir(Tn.yStep)}),Hn.push({key:"Resources",value:Dn+" 0 R"}),Tn.matrix&&Hn.push({key:"Matrix",value:"["+Tn.matrix.toString()+"]"}),Ei({data:Tn.stream,additionalKeyValues:Hn}),Ir("endobj")},Ri=function ce(Tn){var Un;for(Un in ti)ti.hasOwnProperty(Un)&&(ti[Un]instanceof d?Ui(ti[Un]):ti[Un]instanceof p$1&&Mi(ti[Un],Tn))},Di=function he(Tn){for(var Un in Tn.objectNumber=vi(),Ir("<<"),Tn)switch(Un){case"opacity":Ir("/ca "+sr(Tn[Un]));break;case"stroke-opacity":Ir("/CA "+sr(Tn[Un]))}Ir(">>"),Ir("endobj")},ji=function le(){var Tn;for(Tn in ri)ri.hasOwnProperty(Tn)&&Di(ri[Tn])},Qi=function fe(){for(var Tn in Ir("/XObject <<"),di)di.hasOwnProperty(Tn)&&di[Tn].objectNumber>=0&&Ir("/"+Tn+" "+di[Tn].objectNumber+" 0 R");li.publish("putXobjectDict"),Ir(">>")},Hi=function de(){for(var Tn in Ir("/Font <<"),Jr)Jr.hasOwnProperty(Tn)&&(!1===Wn||!0===Wn&&Xn.hasOwnProperty(Tn))&&Ir("/"+Tn+" "+Jr[Tn].objectNumber+" 0 R");Ir(">>")},Gi=function pe(){if(Object.keys(ti).length>0){for(var Tn in Ir("/Shading <<"),ti)ti.hasOwnProperty(Tn)&&ti[Tn]instanceof d&&ti[Tn].objectNumber>=0&&Ir("/"+Tn+" "+ti[Tn].objectNumber+" 0 R");li.publish("putShadingPatternDict"),Ir(">>")}},Vi=function ge(Tn){if(Object.keys(ti).length>0){for(var Un in Ir("/Pattern <<"),ti)ti.hasOwnProperty(Un)&&ti[Un]instanceof Yn.TilingPattern&&ti[Un].objectNumber>=0&&ti[Un].objectNumber<Tn&&Ir("/"+Un+" "+ti[Un].objectNumber+" 0 R");li.publish("putTilingPatternDict"),Ir(">>")}},zi=function me(){if(Object.keys(ri).length>0){var Tn;for(Tn in Ir("/ExtGState <<"),ri)ri.hasOwnProperty(Tn)&&ri[Tn].objectNumber>=0&&Ir("/"+Tn+" "+ri[Tn].objectNumber+" 0 R");li.publish("putGStateDict"),Ir(">>")}},Ki=function ve(Tn){_i(Tn.resourcesOid,!0),Ir("<<"),Ir("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Hi(),Gi(),Vi(Tn.objectOid),zi(),Qi(),Ir(">>"),Ir("endobj")},qi=function be(){var Tn=[];Ni(),ji(),Oi(),Ri(Tn),li.publish("putResources"),Tn.forEach(Ki),Ki({resourcesOid:Si,objectOid:Number.MAX_SAFE_INTEGER}),li.publish("postPutResources")},$i=function ye(){li.publish("putAdditionalObjects");for(var Tn=0;Tn<Br.length;Tn++){var Un=Br[Tn];_i(Un.objId,!0),Ir(Un.content),Ir("endobj")}li.publish("postPutAdditionalObjects")},Wi=function we(Tn){Zr[Tn.fontName]=Zr[Tn.fontName]||{},Zr[Tn.fontName][Tn.fontStyle]=Tn.id},Xi=function Ne(Tn,Un,Dn,Qn,Hn){var Gn={id:"F"+(Object.keys(Jr).length+1).toString(10),postScriptName:Tn,fontName:Un,fontStyle:Dn,encoding:Qn,isStandardFont:Hn||!1,metadata:{}};return li.publish("addFont",{font:Gn,instance:this}),Jr[Gn.id]=Gn,Wi(Gn),Gn.id},Yi=function Le(Tn){for(var Un=0,Dn=Ur.length;Un<Dn;Un++){var Qn=Xi.call(this,Tn[Un][0],Tn[Un][1],Tn[Un][2],Ur[Un][3],!0);!1===Wn&&(Xn[Qn]=!0);var Hn=Tn[Un][0].split("-");Wi({id:Qn,fontName:Hn[0],fontStyle:Hn[1]||""})}li.publish("addFonts",{fonts:Jr,dictionary:Zr})},Ji=function xe(Tn){return Tn.foo=function(){try{return Tn.apply(this,arguments)}catch(Tn){var Un=Tn.stack||"";~Un.indexOf(" at ")&&(Un=Un.split(" at ")[1]);var Dn="Error in function "+Un.split("\n")[0].split("<")[0]+": "+Tn.message;if(!OF.console)throw new Error(Dn);OF.console.error(Dn,Tn),OF.alert&&alert(Dn)}},Tn.foo.bar=Tn,Tn.foo},Zi=function Ae(Tn,Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn;if(Hn=(Un=Un||{}).sourceEncoding||"Unicode",Vn=Un.outputEncoding,(Un.autoencode||Vn)&&Jr[qr].metadata&&Jr[qr].metadata[Hn]&&Jr[qr].metadata[Hn].encoding&&(Gn=Jr[qr].metadata[Hn].encoding,!Vn&&Jr[qr].encoding&&(Vn=Jr[qr].encoding),!Vn&&Gn.codePages&&(Vn=Gn.codePages[0]),"string"==typeof Vn&&(Vn=Gn[Vn]),Vn)){for(Kn=!1,zn=[],Dn=0,Qn=Tn.length;Dn<Qn;Dn++)($n=Vn[Tn.charCodeAt(Dn)])?zn.push(String.fromCharCode($n)):zn.push(Tn[Dn]),zn[Dn].charCodeAt(0)>>8&&(Kn=!0);Tn=zn.join("")}for(Dn=Tn.length;void 0===Kn&&0!==Dn;)Tn.charCodeAt(Dn-1)>>8&&(Kn=!0),Dn--;if(!Kn)return Tn;for(zn=Un.noBOM?[]:[254,255],Dn=0,Qn=Tn.length;Dn<Qn;Dn++){if((Wn=($n=Tn.charCodeAt(Dn))>>8)>>8)throw new Error("Character at position "+Dn+" of string '"+Tn+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");zn.push(Wn),zn.push($n-(Wn<<8))}return String.fromCharCode.apply(void 0,zn)},eo=Yn.__private__.pdfEscape=Yn.pdfEscape=function(Tn,Un){return Zi(Tn,Un).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},to=Yn.__private__.beginPage=function(Tn){Er[++ai]=[],si[ai]={objId:0,contentsObjId:0,userUnit:Number(zn),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Tn[0]),topRightY:Number(Tn[1])}},io(ai),Nr(Er[_r])},no=function Pe(Tn,Un){var Qn,Gn,Vn;switch(Dn=Un||Dn,"string"==typeof Tn&&(Qn=tr(Tn.toLowerCase()),Array.isArray(Qn)&&(Gn=Qn[0],Vn=Qn[1])),Array.isArray(Tn)&&(Gn=Tn[0]*$r,Vn=Tn[1]*$r),isNaN(Gn)&&(Gn=Hn[0],Vn=Hn[1]),(Gn>14400||Vn>14400)&&(FF.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Gn=Math.min(14400,Gn),Vn=Math.min(14400,Vn)),Hn=[Gn,Vn],Dn.substr(0,1)){case"l":Vn>Gn&&(Hn=[Vn,Gn]);break;case"p":Gn>Vn&&(Hn=[Vn,Gn])}to(Hn),Fo(Oo),Ir(Go),0!==Wo&&Ir(Wo+" J"),0!==Xo&&Ir(Xo+" j"),li.publish("addPage",{pageNumber:ai})},ro=function ke(Tn){Tn>0&&Tn<=ai&&(Er.splice(Tn,1),si.splice(Tn,1),ai--,_r>ai&&(_r=ai),this.setPage(_r))},io=function Fe(Tn){Tn>0&&Tn<=ai&&(_r=Tn)},oo=Yn.__private__.getNumberOfPages=Yn.getNumberOfPages=function(){return Er.length-1},ao=function Ce(Tn,Un,Dn){var Qn,Hn=void 0;return Dn=Dn||{},Tn=void 0!==Tn?Tn:Jr[qr].fontName,Un=void 0!==Un?Un:Jr[qr].fontStyle,Qn=Tn.toLowerCase(),void 0!==Zr[Qn]&&void 0!==Zr[Qn][Un]?Hn=Zr[Qn][Un]:void 0!==Zr[Tn]&&void 0!==Zr[Tn][Un]?Hn=Zr[Tn][Un]:!1===Dn.disableWarning&&FF.warn("Unable to look up font label for font '"+Tn+"', '"+Un+"'. Refer to getFontList() for available fonts."),Hn||Dn.noFallback||null==(Hn=Zr.times[Un])&&(Hn=Zr.times.normal),Hn},so=Yn.__private__.putInfo=function(){for(var Tn in vi(),Ir("<<"),Ir("/Producer (jsPDF "+g.version+")"),Kr)Kr.hasOwnProperty(Tn)&&Kr[Tn]&&Ir("/"+Tn.substr(0,1).toUpperCase()+Tn.substr(1)+" ("+eo(Kr[Tn])+")");Ir("/CreationDate ("+hr+")"),Ir(">>"),Ir("endobj")},lo=Yn.__private__.putCatalog=function(Tn){var Un=(Tn=Tn||{}).rootDictionaryObjId||xi;switch(vi(),Ir("<<"),Ir("/Type /Catalog"),Ir("/Pages "+Un+" 0 R"),Rr||(Rr="fullwidth"),Rr){case"fullwidth":Ir("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Ir("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Ir("/OpenAction [3 0 R /Fit]");break;case"original":Ir("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Dn=""+Rr;"%"===Dn.substr(Dn.length-1)&&(Rr=parseInt(Rr)/100),"number"==typeof Rr&&Ir("/OpenAction [3 0 R /XYZ null null "+sr(Rr)+"]")}switch(Gr||(Gr="continuous"),Gr){case"continuous":Ir("/PageLayout /OneColumn");break;case"single":Ir("/PageLayout /SinglePage");break;case"two":case"twoleft":Ir("/PageLayout /TwoColumnLeft");break;case"tworight":Ir("/PageLayout /TwoColumnRight")}Qr&&Ir("/PageMode /"+Qr),li.publish("putCatalog"),Ir(">>"),Ir("endobj")},co=Yn.__private__.putTrailer=function(){Ir("trailer"),Ir("<<"),Ir("/Size "+(xr+1)),Ir("/Root "+xr+" 0 R"),Ir("/Info "+(xr-1)+" 0 R"),Ir("/ID [ <"+pr+"> <"+pr+"> ]"),Ir(">>")},uo=Yn.__private__.putHeader=function(){Ir("%PDF-"+Jn),Ir("%ºß¬à")},ho=Yn.__private__.putXRef=function(){var Tn="0000000000";Ir("xref"),Ir("0 "+(xr+1)),Ir("0000000000 65535 f ");for(var Un=1;Un<=xr;Un++)"function"==typeof Sr[Un]?Ir((Tn+Sr[Un]()).slice(-10)+" 00000 n "):void 0!==Sr[Un]?Ir((Tn+Sr[Un]).slice(-10)+" 00000 n "):Ir("0000000000 00000 n ")},po=Yn.__private__.buildDocument=function(){Tr(),Nr(Cr),li.publish("buildDocument"),uo(),Li(),$i(),qi(),so(),lo();var Tn=kr;return ho(),co(),Ir("startxref"),Ir(""+Tn),Ir("%%EOF"),Nr(Er[_r]),Cr.join("\n")},go=Yn.__private__.getBlob=function(Tn){return new Blob([Fr(Tn)],{type:"application/pdf"})},fo=Yn.output=Yn.__private__.output=Ji((function(Tn,Un){switch("string"==typeof(Un=Un||{})?Un={filename:Un}:Un.filename=Un.filename||"generated.pdf",Tn){case void 0:return po();case"save":Yn.save(Un.filename);break;case"arraybuffer":return Fr(po());case"blob":return go(po());case"bloburi":case"bloburl":if(void 0!==OF.URL&&"function"==typeof OF.URL.createObjectURL)return OF.URL&&OF.URL.createObjectURL(go(po()))||void 0;FF.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Dn="",Qn=po();try{Dn=MF(Qn)}catch(Tn){Dn=MF(unescape(encodeURIComponent(Qn)))}return"data:application/pdf;filename="+Un.filename+";base64,"+Dn;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(OF)){var Hn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(Un.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Un)+");<\/script></body></html>",Gn=OF.open();return null!==Gn&&Gn.document.write(Hn),Gn}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(OF)){var Vn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Un.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Un.filename+'" width="500px" height="400px" /></body></html>',zn=OF.open();if(null!==zn){zn.document.write(Vn);var Kn=this;zn.document.documentElement.querySelector("#pdfViewer").onload=function(){zn.document.title=Un.filename,zn.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Kn.output("bloburl"))}}return zn}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(OF))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var $n='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Un)+'"></iframe></body></html>',Wn=OF.open();if(null!==Wn&&(Wn.document.write($n),Wn.document.title=Un.filename),Wn||"undefined"==typeof safari)return Wn;break;case"datauri":case"dataurl":return OF.document.location.href=this.output("datauristring",Un);default:return null}})),Ao=function De(Tn){return!0===Array.isArray(ui)&&ui.indexOf(Tn)>-1};switch(Qn){case"pt":$r=1;break;case"mm":$r=72/25.4;break;case"cm":$r=72/2.54;break;case"in":$r=72;break;case"px":$r=1==Ao("px_scaling")?.75:96/72;break;case"pc":case"em":$r=12;break;case"ex":$r=6;break;default:throw new Error("Invalid unit: "+Qn)}vr(),fr();var mo=Yn.__private__.getPageInfo=Yn.getPageInfo=function(Tn){if(isNaN(Tn)||Tn%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:si[Tn].objId,pageNumber:Tn,pageContext:si[Tn]}},vo=Yn.__private__.getPageInfoByObjId=function(Tn){if(isNaN(Tn)||Tn%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Un in si)if(si[Un].objId===Tn)break;return mo(Un)},yo=Yn.__private__.getCurrentPageInfo=Yn.getCurrentPageInfo=function(){return{objId:si[_r].objId,pageNumber:_r,pageContext:si[_r]}};Yn.addPage=function(){return no.apply(this,arguments),this},Yn.setPage=function(){return io.apply(this,arguments),Nr.call(this,Er[_r]),this},Yn.insertPage=function(Tn){return this.addPage(),this.movePage(_r,Tn),this},Yn.movePage=function(Tn,Un){var Dn,Qn;if(Tn>Un){Dn=Er[Tn],Qn=si[Tn];for(var Hn=Tn;Hn>Un;Hn--)Er[Hn]=Er[Hn-1],si[Hn]=si[Hn-1];Er[Un]=Dn,si[Un]=Qn,this.setPage(Un)}else if(Tn<Un){Dn=Er[Tn],Qn=si[Tn];for(var Gn=Tn;Gn<Un;Gn++)Er[Gn]=Er[Gn+1],si[Gn]=si[Gn+1];Er[Un]=Dn,si[Un]=Qn,this.setPage(Un)}return this},Yn.deletePage=function(){return ro.apply(this,arguments),this},Yn.__private__.text=Yn.text=function(Tn,Un,Dn,Qn,Hn){var Gn,Vn,zn,Kn,$n,Wn,Yn,Jn,Zn=(Qn=Qn||{}).scope||this;if("number"==typeof Tn&&"number"==typeof Un&&("string"==typeof Dn||Array.isArray(Dn))){var er=Dn;Dn=Un,Un=Tn,Tn=er}if(arguments[3]instanceof gi==0?(zn=arguments[4],Kn=arguments[5],"object"==_typeof(Yn=arguments[3])&&null!==Yn||("string"==typeof zn&&(Kn=zn,zn=null),"string"==typeof Yn&&(Kn=Yn,Yn=null),"number"==typeof Yn&&(zn=Yn,Yn=null),Qn={flags:Yn,angle:zn,align:Kn})):(or("The transform parameter of text() with a Matrix value"),Jn=Hn),isNaN(Un)||isNaN(Dn)||null==Tn)throw new Error("Invalid arguments passed to jsPDF.text");if(0===Tn.length)return Zn;var tr="",ar=!1,sr="number"==typeof Qn.lineHeightFactor?Qn.lineHeightFactor:Io,lr=Zn.internal.scaleFactor;function y(Tn){return Tn=Tn.split("\t").join(Array(Qn.TabLen||9).join(" ")),eo(Tn,Yn)}function w(Tn){for(var Un,Dn=Tn.concat(),Qn=[],Hn=Dn.length;Hn--;)"string"==typeof(Un=Dn.shift())?Qn.push(Un):Array.isArray(Tn)&&(1===Un.length||void 0===Un[1]&&void 0===Un[2])?Qn.push(Un[0]):Qn.push([Un[0],Un[1],Un[2]]);return Qn}function L(Tn,Un){var Dn;if("string"==typeof Tn)Dn=Un(Tn)[0];else if(Array.isArray(Tn)){for(var Qn,Hn,Gn=Tn.concat(),Vn=[],zn=Gn.length;zn--;)"string"==typeof(Qn=Gn.shift())?Vn.push(Un(Qn)[0]):Array.isArray(Qn)&&"string"==typeof Qn[0]&&(Hn=Un(Qn[0],Qn[1],Qn[2]),Vn.push([Hn[0],Hn[1],Hn[2]]));Dn=Vn}return Dn}var ur=!1,dr=!0;if("string"==typeof Tn)ur=!0;else if(Array.isArray(Tn)){var hr=Tn.concat();Vn=[];for(var pr,gr=hr.length;gr--;)("string"!=typeof(pr=hr.shift())||Array.isArray(pr)&&"string"!=typeof pr[0])&&(dr=!1);ur=dr}if(!1===ur)throw new Error('Type of text must be string or Array. "'+Tn+'" is not recognized.');"string"==typeof Tn&&(Tn=Tn.match(/[\r?\n]/)?Tn.split(/\r\n|\r|\n/g):[Tn]);var fr=Mr/Zn.internal.scaleFactor,Ar=fr*(Io-1);switch(Qn.baseline){case"bottom":Dn-=Ar;break;case"top":Dn+=fr-Ar;break;case"hanging":Dn+=fr-2*Ar;break;case"middle":Dn+=fr/2-Ar}if((Wn=Qn.maxWidth||0)>0&&("string"==typeof Tn?Tn=Zn.splitTextToSize(Tn,Wn):"[object Array]"===Object.prototype.toString.call(Tn)&&(Tn=Zn.splitTextToSize(Tn.join(" "),Wn))),Gn={text:Tn,x:Un,y:Dn,options:Qn,mutex:{pdfEscape:eo,activeFontKey:qr,fonts:Jr,activeFontSize:Mr}},li.publish("preProcessText",Gn),Tn=Gn.text,zn=(Qn=Gn.options).angle,Jn instanceof gi==0&&zn&&"number"==typeof zn){zn*=Math.PI/180,0===Qn.rotationDirection&&(zn=-zn),rr===nr.ADVANCED&&(zn=-zn);var mr=Math.cos(zn),vr=Math.sin(zn);Jn=new gi(mr,vr,-vr,mr,0,0)}else zn&&zn instanceof gi&&(Jn=zn);rr!==nr.ADVANCED||Jn||(Jn=Ai),void 0!==($n=Qn.charSpace||qo)&&(tr+=ir(cr($n))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),Qn.lang;var yr=-1,_r=void 0!==Qn.renderingMode?Qn.renderingMode:Qn.stroke,br=Zn.internal.getCurrentPageInfo().pageContext;switch(_r){case 0:case!1:case"fill":yr=0;break;case 1:case!0:case"stroke":yr=1;break;case 2:case"fillThenStroke":yr=2;break;case 3:case"invisible":yr=3;break;case 4:case"fillAndAddForClipping":yr=4;break;case 5:case"strokeAndAddPathForClipping":yr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":yr=6;break;case 7:case"addToPathForClipping":yr=7}var wr=void 0!==br.usedRenderingMode?br.usedRenderingMode:-1;-1!==yr?tr+=yr+" Tr\n":-1!==wr&&(tr+="0 Tr\n"),-1!==yr&&(br.usedRenderingMode=yr),Kn=Qn.align||"left";var xr,Sr=Mr*sr,Cr=Zn.internal.pageSize.getWidth(),kr=Jr[qr];$n=Qn.charSpace||qo,Wn=Qn.maxWidth||0,Yn={};var Br=[];if("[object Array]"===Object.prototype.toString.call(Tn)){var Er;Vn=w(Tn),"left"!==Kn&&(xr=Vn.map((function(Tn){return Zn.getStringUnitWidth(Tn,{font:kr,charSpace:$n,fontSize:Mr,doKerning:!1})*Mr/lr})));var Pr,Lr=0;if("right"===Kn){Un-=xr[0],Tn=[],gr=Vn.length;for(var Tr=0;Tr<gr;Tr++)0===Tr?(Pr=Do(Un),Er=jo(Dn)):(Pr=cr(Lr-xr[Tr]),Er=-Sr),Tn.push([Vn[Tr],Pr,Er]),Lr=xr[Tr]}else if("center"===Kn){Un-=xr[0]/2,Tn=[],gr=Vn.length;for(var Nr=0;Nr<gr;Nr++)0===Nr?(Pr=Do(Un),Er=jo(Dn)):(Pr=cr((Lr-xr[Nr])/2),Er=-Sr),Tn.push([Vn[Nr],Pr,Er]),Lr=xr[Nr]}else if("left"===Kn){Tn=[],gr=Vn.length;for(var Or=0;Or<gr;Or++)Tn.push(Vn[Or])}else{if("justify"!==Kn)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');Tn=[],gr=Vn.length,Wn=0!==Wn?Wn:Cr;for(var Fr=0;Fr<gr;Fr++)Er=0===Fr?jo(Dn):-Sr,Pr=0===Fr?Do(Un):0,Fr<gr-1&&Br.push(ir(cr((Wn-xr[Fr])/(Vn[Fr].split(" ").length-1)))),Tn.push([Vn[Fr],Pr,Er])}}var Ur="boolean"==typeof Qn.R2L?Qn.R2L:jr;!0===Ur&&(Tn=L(Tn,(function(Tn,Un,Dn){return[Tn.split("").reverse().join(""),Un,Dn]}))),Gn={text:Tn,x:Un,y:Dn,options:Qn,mutex:{pdfEscape:eo,activeFontKey:qr,fonts:Jr,activeFontSize:Mr}},li.publish("postProcessText",Gn),Tn=Gn.text,ar=Gn.mutex.isHex||!1;var Rr=Jr[qr].encoding;"WinAnsiEncoding"!==Rr&&"StandardEncoding"!==Rr||(Tn=L(Tn,(function(Tn,Un,Dn){return[y(Tn),Un,Dn]}))),Vn=w(Tn),Tn=[];for(var Dr,Qr,Hr,Gr=0,Vr=1,zr=Array.isArray(Vn[0])?Vr:Gr,Kr="",$r=function ct(Tn,Un,Dn){var Hn="";return Dn instanceof gi?(Dn="number"==typeof Qn.angle?fi(Dn,new gi(1,0,0,1,Tn,Un)):fi(new gi(1,0,0,1,Tn,Un),Dn),rr===nr.ADVANCED&&(Dn=fi(new gi(1,0,0,-1,0,0),Dn)),Hn=Dn.join(" ")+" Tm\n"):Hn=ir(Tn)+" "+ir(Un)+" Td\n",Hn},Wr=0;Wr<Vn.length;Wr++){switch(Kr="",zr){case Vr:Hr=(ar?"<":"(")+Vn[Wr][0]+(ar?">":")"),Dr=parseFloat(Vn[Wr][1]),Qr=parseFloat(Vn[Wr][2]);break;case Gr:Hr=(ar?"<":"(")+Vn[Wr]+(ar?">":")"),Dr=Do(Un),Qr=jo(Dn)}void 0!==Br&&void 0!==Br[Wr]&&(Kr=Br[Wr]+" Tw\n"),0===Wr?Tn.push(Kr+$r(Dr,Qr,Jn)+Hr):zr===Gr?Tn.push(Kr+Hr):zr===Vr&&Tn.push(Kr+$r(Dr,Qr,Jn)+Hr)}Tn=zr===Gr?Tn.join(" Tj\nT* "):Tn.join(" Tj\n"),Tn+=" Tj\n";var Xr="BT\n/";return Xr+=qr+" "+Mr+" Tf\n",Xr+=ir(Mr*sr)+" TL\n",Xr+=zo+"\n",Xr+=tr,Xr+=Tn,Ir(Xr+="ET"),Xn[qr]=!0,Zn};var _o=Yn.__private__.clip=Yn.clip=function(Tn){return Ir("evenodd"===Tn?"W*":"W"),this};Yn.clipEvenOdd=function(){return _o("evenodd")},Yn.__private__.discardPath=Yn.discardPath=function(){return Ir("n"),this};var wo=Yn.__private__.isValidStyle=function(Tn){var Un=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Tn)&&(Un=!0),Un};Yn.__private__.setDefaultPathOperation=Yn.setDefaultPathOperation=function(Tn){return wo(Tn)&&($n=Tn),this};var xo=Yn.__private__.getStyle=Yn.getStyle=function(Tn){var Un=$n;switch(Tn){case"D":case"S":Un="S";break;case"F":Un="f";break;case"FD":case"DF":Un="B";break;case"f":case"f*":case"B":case"B*":Un=Tn}return Un},So=Yn.close=function(){return Ir("h"),this};Yn.stroke=function(){return Ir("S"),this},Yn.fill=function(Tn){return Co("f",Tn),this},Yn.fillEvenOdd=function(Tn){return Co("f*",Tn),this},Yn.fillStroke=function(Tn){return Co("B",Tn),this},Yn.fillStrokeEvenOdd=function(Tn){return Co("B*",Tn),this};var Co=function Je(Tn,Un){"object"==_typeof(Un)?Bo(Un,Tn):Ir(Tn)},ko=function Xe(Tn){null===Tn||rr===nr.ADVANCED&&void 0===Tn||(Tn=xo(Tn),Ir(Tn))};function Ke(Tn,Un,Dn,Qn,Hn){var Gn=new p$1(Un||this.boundingBox,Dn||this.xStep,Qn||this.yStep,this.gState,Hn||this.matrix);Gn.stream=this.stream;var Vn=Tn+"$$"+this.cloneIndex+++"$$";return mi(Vn,Gn),Gn}var Bo=function Ze(Tn,Un){var Dn=ni[Tn.key],Qn=ti[Dn];if(Qn instanceof d)Ir("q"),Ir(Eo(Un)),Qn.gState&&Yn.setGState(Qn.gState),Ir(Tn.matrix.toString()+" cm"),Ir("/"+Dn+" sh"),Ir("Q");else if(Qn instanceof p$1){var Hn=new gi(1,0,0,-1,0,aa());Tn.matrix&&(Hn=Hn.multiply(Tn.matrix||Ai),Dn=Ke.call(Qn,Tn.key,Tn.boundingBox,Tn.xStep,Tn.yStep,Hn).id),Ir("q"),Ir("/Pattern cs"),Ir("/"+Dn+" scn"),Qn.gState&&Yn.setGState(Qn.gState),Ir(Un),Ir("Q")}},Eo=function $e(Tn){switch(Tn){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"}},Po=Yn.moveTo=function(Tn,Un){return Ir(ir(cr(Tn))+" "+ir(dr(Un))+" m"),this},Lo=Yn.lineTo=function(Tn,Un){return Ir(ir(cr(Tn))+" "+ir(dr(Un))+" l"),this},To=Yn.curveTo=function(Tn,Un,Dn,Qn,Hn,Gn){return Ir([ir(cr(Tn)),ir(dr(Un)),ir(cr(Dn)),ir(dr(Qn)),ir(cr(Hn)),ir(dr(Gn)),"c"].join(" ")),this};Yn.__private__.line=Yn.line=function(Tn,Un,Dn,Qn,Hn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn)||!wo(Hn))throw new Error("Invalid arguments passed to jsPDF.line");return rr===nr.COMPAT?this.lines([[Dn-Tn,Qn-Un]],Tn,Un,[1,1],Hn||"S"):this.lines([[Dn-Tn,Qn-Un]],Tn,Un,[1,1]).stroke()},Yn.__private__.lines=Yn.lines=function(Tn,Un,Dn,Qn,Hn,Gn){var Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr;if("number"==typeof Tn&&(nr=Dn,Dn=Un,Un=Tn,Tn=nr),Qn=Qn||[1,1],Gn=Gn||!1,isNaN(Un)||isNaN(Dn)||!Array.isArray(Tn)||!Array.isArray(Qn)||!wo(Hn)||"boolean"!=typeof Gn)throw new Error("Invalid arguments passed to jsPDF.lines");for(Po(Un,Dn),Vn=Qn[0],zn=Qn[1],$n=Tn.length,er=Un,tr=Dn,Kn=0;Kn<$n;Kn++)2===(Wn=Tn[Kn]).length?(er=Wn[0]*Vn+er,tr=Wn[1]*zn+tr,Lo(er,tr)):(Xn=Wn[0]*Vn+er,Yn=Wn[1]*zn+tr,Jn=Wn[2]*Vn+er,Zn=Wn[3]*zn+tr,er=Wn[4]*Vn+er,tr=Wn[5]*zn+tr,To(Xn,Yn,Jn,Zn,er,tr));return Gn&&So(),ko(Hn),this},Yn.path=function(Tn){for(var Un=0;Un<Tn.length;Un++){var Dn=Tn[Un],Qn=Dn.c;switch(Dn.op){case"m":Po(Qn[0],Qn[1]);break;case"l":Lo(Qn[0],Qn[1]);break;case"c":To.apply(this,Qn);break;case"h":So()}}return this},Yn.__private__.rect=Yn.rect=function(Tn,Un,Dn,Qn,Hn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn)||!wo(Hn))throw new Error("Invalid arguments passed to jsPDF.rect");return rr===nr.COMPAT&&(Qn=-Qn),Ir([ir(cr(Tn)),ir(dr(Un)),ir(cr(Dn)),ir(cr(Qn)),"re"].join(" ")),ko(Hn),this},Yn.__private__.triangle=Yn.triangle=function(Tn,Un,Dn,Qn,Hn,Gn,Vn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn)||isNaN(Hn)||isNaN(Gn)||!wo(Vn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Dn-Tn,Qn-Un],[Hn-Dn,Gn-Qn],[Tn-Hn,Un-Gn]],Tn,Un,[1,1],Vn,!0),this},Yn.__private__.roundedRect=Yn.roundedRect=function(Tn,Un,Dn,Qn,Hn,Gn,Vn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn)||isNaN(Hn)||isNaN(Gn)||!wo(Vn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var zn=4/3*(Math.SQRT2-1);return Hn=Math.min(Hn,.5*Dn),Gn=Math.min(Gn,.5*Qn),this.lines([[Dn-2*Hn,0],[Hn*zn,0,Hn,Gn-Gn*zn,Hn,Gn],[0,Qn-2*Gn],[0,Gn*zn,-Hn*zn,Gn,-Hn,Gn],[2*Hn-Dn,0],[-Hn*zn,0,-Hn,-Gn*zn,-Hn,-Gn],[0,2*Gn-Qn],[0,-Gn*zn,Hn*zn,-Gn,Hn,-Gn]],Tn+Hn,Un,[1,1],Vn,!0),this},Yn.__private__.ellipse=Yn.ellipse=function(Tn,Un,Dn,Qn,Hn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn)||!wo(Hn))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Gn=4/3*(Math.SQRT2-1)*Dn,Vn=4/3*(Math.SQRT2-1)*Qn;return Po(Tn+Dn,Un),To(Tn+Dn,Un-Vn,Tn+Gn,Un-Qn,Tn,Un-Qn),To(Tn-Gn,Un-Qn,Tn-Dn,Un-Vn,Tn-Dn,Un),To(Tn-Dn,Un+Vn,Tn-Gn,Un+Qn,Tn,Un+Qn),To(Tn+Gn,Un+Qn,Tn+Dn,Un+Vn,Tn+Dn,Un),ko(Hn),this},Yn.__private__.circle=Yn.circle=function(Tn,Un,Dn,Qn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||!wo(Qn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Tn,Un,Dn,Dn,Qn)},Yn.setFont=function(Tn,Un){return qr=ao(Tn,Un,{disableWarning:!1}),this};var No=Yn.__private__.getFont=Yn.getFont=function(){return Jr[ao.apply(Yn,arguments)]};Yn.__private__.getFontList=Yn.getFontList=function(){var Tn,Un,Dn={};for(Tn in Zr)if(Zr.hasOwnProperty(Tn))for(Un in Dn[Tn]=[],Zr[Tn])Zr[Tn].hasOwnProperty(Un)&&Dn[Tn].push(Un);return Dn},Yn.addFont=function(Tn,Un,Dn,Qn){return Qn=Qn||"Identity-H",Xi.call(this,Tn,Un,Dn,Qn)};var Io,Oo=Tn.lineWidth||.200025,Fo=Yn.__private__.setLineWidth=Yn.setLineWidth=function(Tn){return Ir(ir(cr(Tn))+" w"),this};Yn.__private__.setLineDash=g.API.setLineDash=g.API.setLineDashPattern=function(Tn,Un){if(Tn=Tn||[],Un=Un||0,isNaN(Un)||!Array.isArray(Tn))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Tn=Tn.map((function(Tn){return ir(cr(Tn))})).join(" "),Un=ir(cr(Un)),Ir("["+Tn+"] "+Un+" d"),this};var Uo=Yn.__private__.getLineHeight=Yn.getLineHeight=function(){return Mr*Io};Yn.__private__.getLineHeight=Yn.getLineHeight=function(){return Mr*Io};var Mo=Yn.__private__.setLineHeightFactor=Yn.setLineHeightFactor=function(Tn){return"number"==typeof(Tn=Tn||1.15)&&(Io=Tn),this},Ro=Yn.__private__.getLineHeightFactor=Yn.getLineHeightFactor=function(){return Io};Mo(Tn.lineHeight);var Do=Yn.__private__.getHorizontalCoordinate=function(Tn){return cr(Tn)},jo=Yn.__private__.getVerticalCoordinate=function(Tn){return rr===nr.ADVANCED?Tn:si[_r].mediaBox.topRightY-si[_r].mediaBox.bottomLeftY-cr(Tn)},Qo=Yn.__private__.getHorizontalCoordinateString=Yn.getHorizontalCoordinateString=function(Tn){return ir(Do(Tn))},Ho=Yn.__private__.getVerticalCoordinateString=Yn.getVerticalCoordinateString=function(Tn){return ir(jo(Tn))},Go=Tn.strokeColor||"0 G";Yn.__private__.getStrokeColor=Yn.getDrawColor=function(){return Ci(Go)},Yn.__private__.setStrokeColor=Yn.setDrawColor=function(Tn,Un,Dn,Qn){return Go=ki({ch1:Tn,ch2:Un,ch3:Dn,ch4:Qn,pdfColorType:"draw",precision:2}),Ir(Go),this};var Vo=Tn.fillColor||"0 g";Yn.__private__.getFillColor=Yn.getFillColor=function(){return Ci(Vo)},Yn.__private__.setFillColor=Yn.setFillColor=function(Tn,Un,Dn,Qn){return Vo=ki({ch1:Tn,ch2:Un,ch3:Dn,ch4:Qn,pdfColorType:"fill",precision:2}),Ir(Vo),this};var zo=Tn.textColor||"0 g",Ko=Yn.__private__.getTextColor=Yn.getTextColor=function(){return Ci(zo)};Yn.__private__.setTextColor=Yn.setTextColor=function(Tn,Un,Dn,Qn){return zo=ki({ch1:Tn,ch2:Un,ch3:Dn,ch4:Qn,pdfColorType:"text",precision:3}),this};var qo=Tn.charSpace,$o=Yn.__private__.getCharSpace=Yn.getCharSpace=function(){return parseFloat(qo||0)};Yn.__private__.setCharSpace=Yn.setCharSpace=function(Tn){if(isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return qo=Tn,this};var Wo=0;Yn.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},Yn.__private__.setLineCap=Yn.setLineCap=function(Tn){var Un=Yn.CapJoinStyles[Tn];if(void 0===Un)throw new Error("Line cap style of '"+Tn+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Wo=Un,Ir(Un+" J"),this};var Xo=0;Yn.__private__.setLineJoin=Yn.setLineJoin=function(Tn){var Un=Yn.CapJoinStyles[Tn];if(void 0===Un)throw new Error("Line join style of '"+Tn+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Xo=Un,Ir(Un+" j"),this},Yn.__private__.setLineMiterLimit=Yn.__private__.setMiterLimit=Yn.setLineMiterLimit=Yn.setMiterLimit=function(Tn){if(Tn=Tn||0,isNaN(Tn))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Ir(ir(cr(Tn))+" M"),this},Yn.GState=l$1,Yn.setGState=function(Tn){(Tn="string"==typeof Tn?ri[ii[Tn]]:Yo(null,Tn)).equals(oi)||(Ir("/"+Tn.id+" gs"),oi=Tn)};var Yo=function Ln(Tn,Un){if(!Tn||!ii[Tn]){var Dn=!1;for(var Qn in ri)if(ri.hasOwnProperty(Qn)&&ri[Qn].equals(Un)){Dn=!0;break}if(Dn)Un=ri[Qn];else{var Hn="GS"+(Object.keys(ri).length+1).toString(10);ri[Hn]=Un,Un.id=Hn}return Tn&&(ii[Tn]=Un.id),li.publish("addGState",Un),Un}};Yn.addGState=function(Tn,Un){return Yo(Tn,Un),this},Yn.saveGraphicsState=function(){return Ir("q"),ei.push({key:qr,size:Mr,color:zo}),this},Yn.restoreGraphicsState=function(){Ir("Q");var Tn=ei.pop();return qr=Tn.key,Mr=Tn.size,zo=Tn.color,oi=null,this},Yn.setCurrentTransformationMatrix=function(Tn){return Ir(Tn.toString()+" cm"),this},Yn.comment=function(Tn){return Ir("#"+Tn),this};var Jo=function xn(Tn,Un){var Dn=Tn||0;Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return Dn},set:function set(Tn){isNaN(Tn)||(Dn=parseFloat(Tn))}});var Qn=Un||0;Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return Qn},set:function set(Tn){isNaN(Tn)||(Qn=parseFloat(Tn))}});var Hn="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function get(){return Hn},set:function set(Tn){Hn=Tn.toString()}}),this},Zo=function An(Tn,Un,Dn,Qn){Jo.call(this,Tn,Un),this.type="rect";var Hn=Dn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function get(){return Hn},set:function set(Tn){isNaN(Tn)||(Hn=parseFloat(Tn))}});var Gn=Qn||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function get(){return Gn},set:function set(Tn){isNaN(Tn)||(Gn=parseFloat(Tn))}}),this},ea=function _n(){this.page=ai,this.currentPage=_r,this.pages=Er.slice(0),this.pagesContext=si.slice(0),this.x=Wr,this.y=Xr,this.matrix=Yr,this.width=ia(_r),this.height=aa(_r),this.outputDestination=Lr,this.id="",this.objectNumber=-1};ea.prototype.restore=function(){ai=this.page,_r=this.currentPage,si=this.pagesContext,Er=this.pages,Wr=this.x,Xr=this.y,Yr=this.matrix,oa(_r,this.width),sa(_r,this.height),Lr=this.outputDestination};var ta=function Sn(Tn,Un,Dn,Qn,Hn){pi.push(new ea),ai=_r=0,Er=[],Wr=Tn,Xr=Un,Yr=Hn,to([Dn,Qn])},na=function Pn(Tn){if(!hi[Tn]){var Un=new ea,Dn="Xo"+(Object.keys(di).length+1).toString(10);Un.id=Dn,hi[Tn]=Dn,di[Dn]=Un,li.publish("addFormObject",Un),pi.pop().restore()}};for(var ra in Yn.beginFormObject=function(Tn,Un,Dn,Qn,Hn){return ta(Tn,Un,Dn,Qn,Hn),this},Yn.endFormObject=function(Tn){return na(Tn),this},Yn.doFormObject=function(Tn,Un){var Dn=di[hi[Tn]];return Ir("q"),Ir(Un.toString()+" cm"),Ir("/"+Dn.id+" Do"),Ir("Q"),this},Yn.getFormObject=function(Tn){var Un=di[hi[Tn]];return{x:Un.x,y:Un.y,width:Un.width,height:Un.height,matrix:Un.matrix}},Yn.save=function(Tn,Un){return Tn=Tn||"generated.pdf",(Un=Un||{}).returnPromise=Un.returnPromise||!1,!1===Un.returnPromise?(RF(go(po()),Tn),"function"==typeof RF.unload&&OF.setTimeout&&setTimeout(RF.unload,911),this):new Promise((function(Un,Dn){try{var Qn=RF(go(po()),Tn);"function"==typeof RF.unload&&OF.setTimeout&&setTimeout(RF.unload,911),Un(Qn)}catch(Tn){Dn(Tn.message)}}))},g.API)g.API.hasOwnProperty(ra)&&("events"===ra&&g.API.events.length?function(Tn,Un){var Dn,Qn,Hn;for(Hn=Un.length-1;-1!==Hn;Hn--)Dn=Un[Hn][0],Qn=Un[Hn][1],Tn.subscribe.apply(Tn,[Dn].concat("function"==typeof Qn?[Qn]:Qn))}(li,g.API.events):Yn[ra]=g.API[ra]);var ia=Yn.getPageWidth=function(Tn){return(si[Tn=Tn||_r].mediaBox.topRightX-si[Tn].mediaBox.bottomLeftX)/$r},oa=Yn.setPageWidth=function(Tn,Un){si[Tn].mediaBox.topRightX=Un*$r+si[Tn].mediaBox.bottomLeftX},aa=Yn.getPageHeight=function(Tn){return(si[Tn=Tn||_r].mediaBox.topRightY-si[Tn].mediaBox.bottomLeftY)/$r},sa=Yn.setPageHeight=function(Tn,Un){si[Tn].mediaBox.topRightY=Un*$r+si[Tn].mediaBox.bottomLeftY};return Yn.internal={pdfEscape:eo,getStyle:xo,getFont:No,getFontSize:Dr,getCharSpace:$o,getTextColor:Ko,getLineHeight:Uo,getLineHeightFactor:Ro,write:Or,getHorizontalCoordinate:Do,getVerticalCoordinate:jo,getCoordinateString:Qo,getVerticalCoordinateString:Ho,collections:{},newObject:vi,newAdditionalObject:wi,newObjectDeferred:yi,newObjectDeferredBegin:_i,getFilters:Bi,putStream:Ei,events:li,scaleFactor:$r,pageSize:{getWidth:function getWidth(){return ia(_r)},setWidth:function setWidth(Tn){oa(_r,Tn)},getHeight:function getHeight(){return aa(_r)},setHeight:function setHeight(Tn){sa(_r,Tn)}},output:fo,getNumberOfPages:oo,pages:Er,out:Ir,f2:sr,f3:lr,getPageInfo:mo,getPageInfoByObjId:vo,getCurrentPageInfo:yo,getPDFVersion:Zn,Point:Jo,Rectangle:Zo,Matrix:gi,hasHotfix:Ao},Object.defineProperty(Yn.internal.pageSize,"width",{get:function get(){return ia(_r)},set:function set(Tn){oa(_r,Tn)},enumerable:!0,configurable:!0}),Object.defineProperty(Yn.internal.pageSize,"height",{get:function get(){return aa(_r)},set:function set(Tn){sa(_r,Tn)},enumerable:!0,configurable:!0}),Yi.call(Yn,Ur),qr="F1",no(Hn,Dn),li.publish("initialized"),Yn}UF=OF.atob,MF=OF.btoa,l$1.prototype.equals=function(Tn){var Un,Dn="id,objectNumber,equals";if(!Tn||_typeof(Tn)!=_typeof(this))return!1;var Qn=0;for(Un in this)if(!(Dn.indexOf(Un)>=0)){if(this.hasOwnProperty(Un)&&!Tn.hasOwnProperty(Un))return!1;if(this[Un]!==Tn[Un])return!1;Qn++}for(Un in Tn)Tn.hasOwnProperty(Un)&&Dn.indexOf(Un)<0&&Qn--;return 0===Qn},g.API={events:[]},g.version="2.1.1";var DF,jF=g.API,QF=1,HF=function y(Tn){return Tn.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},GF=function w(Tn){return Tn.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},VF=function N(Tn){return Tn.toFixed(2)},zF=function L(Tn){return Tn.toFixed(5)};jF.__acroform__={};var KF=function x(Tn,Un){Tn.prototype=Object.create(Un.prototype),Tn.prototype.constructor=Tn},qF=function A(Tn){return Tn*QF},$F=function _(Tn){var Un=new mU,Dn=TU.internal.getHeight(Tn)||0,Qn=TU.internal.getWidth(Tn)||0;return Un.BBox=[0,0,Number(VF(Qn)),Number(VF(Dn))],Un},WF=jF.__acroform__.setBit=function(Tn,Un){if(Tn=Tn||0,Un=Un||0,isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Tn|1<<Un},XF=jF.__acroform__.clearBit=function(Tn,Un){if(Tn=Tn||0,Un=Un||0,isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Tn&~(1<<Un)},YF=jF.__acroform__.getBit=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(Tn&1<<Un)?0:1},JF=jF.__acroform__.getBitForPdf=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return YF(Tn,Un-1)},ZF=jF.__acroform__.setBitForPdf=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return WF(Tn,Un-1)},eU=jF.__acroform__.clearBitForPdf=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return XF(Tn,Un-1)},tU=jF.__acroform__.calculateCoordinates=function(Tn){var Un=this.internal.getHorizontalCoordinate,Dn=this.internal.getVerticalCoordinate,Qn=Tn[0],Hn=Tn[1],Gn=Tn[2],Vn=Tn[3],zn={};return zn.lowerLeft_X=Un(Qn)||0,zn.lowerLeft_Y=Dn(Hn+Vn)||0,zn.upperRight_X=Un(Qn+Gn)||0,zn.upperRight_Y=Dn(Hn)||0,[Number(VF(zn.lowerLeft_X)),Number(VF(zn.lowerLeft_Y)),Number(VF(zn.upperRight_X)),Number(VF(zn.upperRight_Y))]},nU=function B(Tn){if(Tn.appearanceStreamContent)return Tn.appearanceStreamContent;if(Tn.V||Tn.DV){var Un=[],Dn=Tn.V||Tn.DV,Qn=rU(Tn,Dn),Hn=DF.internal.getFont(Tn.fontName,Tn.fontStyle).id;Un.push("/Tx BMC"),Un.push("q"),Un.push("BT"),Un.push(DF.__private__.encodeColorString(Tn.color)),Un.push("/"+Hn+" "+VF(Qn.fontSize)+" Tf"),Un.push("1 0 0 1 0 0 Tm"),Un.push(Qn.text),Un.push("ET"),Un.push("Q"),Un.push("EMC");var Gn=new $F(Tn);return Gn.stream=Un.join("\n"),Gn}},rU=function O(Tn,Un){var Dn=0===Tn.fontSize?Tn.maxFontSize:Tn.fontSize,Qn={text:"",fontSize:""},Hn=(Un=")"==(Un="("==Un.substr(0,1)?Un.substr(1):Un).substr(Un.length-1)?Un.substr(0,Un.length-1):Un).split(" "),Gn=Dn,Vn=TU.internal.getHeight(Tn)||0;Vn=Vn<0?-Vn:Vn;var zn=TU.internal.getWidth(Tn)||0;zn=zn<0?-zn:zn;var Kn=function u(Un,Dn,Qn){if(Un+1<Hn.length){var Gn=Dn+" "+Hn[Un+1];return iU(Gn,Tn,Qn).width<=zn-4}return!1};Gn++;e:for(;Gn>0;){Un="",Gn--;var $n,Wn,Xn=iU("3",Tn,Gn).height,Yn=Tn.multiline?Vn-Gn:(Vn-Xn)/2,Jn=Yn+=2,Zn=0,er=0;if(Gn<=0){Un="(...) Tj\n",Un+="% Width of Text: "+iU(Un,Tn,Gn=12).width+", FieldWidth:"+zn+"\n";break}var tr="",nr=0;for(var rr in Hn)if(Hn.hasOwnProperty(rr)){tr=" "==(tr+=Hn[rr]+" ").substr(tr.length-1)?tr.substr(0,tr.length-1):tr;var ir=parseInt(rr),or=Kn(ir,tr,Gn),ar=rr>=Hn.length-1;if(or&&!ar){tr+=" ";continue}if(or||ar){if(ar)er=ir;else if(Tn.multiline&&(Xn+2)*(nr+2)+2>Vn)continue e}else{if(!Tn.multiline)continue e;if((Xn+2)*(nr+2)+2>Vn)continue e;er=ir}for(var sr="",lr=Zn;lr<=er;lr++)sr+=Hn[lr]+" ";switch(sr=" "==sr.substr(sr.length-1)?sr.substr(0,sr.length-1):sr,Wn=iU(sr,Tn,Gn).width,Tn.textAlign){case"right":$n=zn-Wn-2;break;case"center":$n=(zn-Wn)/2;break;case"left":default:$n=2}Un+=VF($n)+" "+VF(Jn)+" Td\n",Un+="("+HF(sr)+") Tj\n",Un+=-VF($n)+" 0 Td\n",Jn=-(Gn+2),Wn=0,Zn=er+1,nr++,tr=""}break}return Qn.text=Un,Qn.fontSize=Gn,Qn},iU=function M(Tn,Un,Dn){var Qn=DF.internal.getFont(Un.fontName,Un.fontStyle),Hn=DF.getStringUnitWidth(Tn,{font:Qn,fontSize:parseFloat(Dn),charSpace:0})*parseFloat(Dn);return{height:DF.getStringUnitWidth("3",{font:Qn,fontSize:parseFloat(Dn),charSpace:0})*parseFloat(Dn)*1.5,width:Hn}},oU={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},aU=function q(){DF.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Tn=DF.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Un in Tn)if(Tn.hasOwnProperty(Un)){var Dn=Tn[Un];Dn.objId=void 0,Dn.hasAnnotation&&lU.call(DF,Dn)}},sU=function R(Tn){DF.internal.acroformPlugin.printedOut&&(DF.internal.acroformPlugin.printedOut=!1,DF.internal.acroformPlugin.acroFormDictionaryRoot=null),DF.internal.acroformPlugin.acroFormDictionaryRoot||pU.call(DF),DF.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Tn)},lU=function T(Tn){var Un={type:"reference",object:Tn};void 0===DF.internal.getPageInfo(Tn.page).pageContext.annotations.find((function(Tn){return Tn.type===Un.type&&Tn.object===Un.object}))&&DF.internal.getPageInfo(Tn.page).pageContext.annotations.push(Un)},cU=function D(){if(void 0===DF.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");DF.internal.write("/AcroForm "+DF.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},uU=function U(){DF.internal.events.unsubscribe(DF.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete DF.internal.acroformPlugin.acroFormDictionaryRoot._eventID,DF.internal.acroformPlugin.printedOut=!0},dU=function z(Tn){var Un=!Tn;for(var Dn in Tn||(DF.internal.newObjectDeferredBegin(DF.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),DF.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Tn=Tn||DF.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Tn.hasOwnProperty(Dn)){var Qn=Tn[Dn],Hn=[],Gn=Qn.Rect;if(Qn.Rect&&(Qn.Rect=tU.call(this,Qn.Rect)),DF.internal.newObjectDeferredBegin(Qn.objId,!0),Qn.DA=TU.createDefaultAppearanceStream(Qn),"object"==_typeof(Qn)&&"function"==typeof Qn.getKeyValueListForStream&&(Hn=Qn.getKeyValueListForStream()),Qn.Rect=Gn,Qn.hasAppearanceStream&&!Qn.appearanceStreamContent){var Vn=nU.call(this,Qn);Hn.push({key:"AP",value:"<</N "+Vn+">>"}),DF.internal.acroformPlugin.xForms.push(Vn)}if(Qn.appearanceStreamContent){var zn="";for(var Kn in Qn.appearanceStreamContent)if(Qn.appearanceStreamContent.hasOwnProperty(Kn)){var $n=Qn.appearanceStreamContent[Kn];if(zn+="/"+Kn+" ",zn+="<<",Object.keys($n).length>=1||Array.isArray($n)){for(var Dn in $n)if($n.hasOwnProperty(Dn)){var Wn=$n[Dn];"function"==typeof Wn&&(Wn=Wn.call(this,Qn)),zn+="/"+Dn+" "+Wn+" ",DF.internal.acroformPlugin.xForms.indexOf(Wn)>=0||DF.internal.acroformPlugin.xForms.push(Wn)}}else"function"==typeof(Wn=$n)&&(Wn=Wn.call(this,Qn)),zn+="/"+Dn+" "+Wn,DF.internal.acroformPlugin.xForms.indexOf(Wn)>=0||DF.internal.acroformPlugin.xForms.push(Wn);zn+=">>"}Hn.push({key:"AP",value:"<<\n"+zn+">>"})}DF.internal.putStream({additionalKeyValues:Hn}),DF.internal.out("endobj")}Un&&hU.call(this,DF.internal.acroformPlugin.xForms)},hU=function H(Tn){for(var Un in Tn)if(Tn.hasOwnProperty(Un)){var Dn=Un,Qn=Tn[Un];DF.internal.newObjectDeferredBegin(Qn&&Qn.objId,!0),"object"==_typeof(Qn)&&"function"==typeof Qn.putStream&&Qn.putStream(),delete Tn[Dn]}},pU=function W(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(DF=this,yU.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(oU)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");QF=DF.internal.scaleFactor,DF.internal.acroformPlugin.acroFormDictionaryRoot=new vU,DF.internal.acroformPlugin.acroFormDictionaryRoot._eventID=DF.internal.events.subscribe("postPutResources",uU),DF.internal.events.subscribe("buildDocument",aU),DF.internal.events.subscribe("putCatalog",cU),DF.internal.events.subscribe("postPutPages",dU),DF.internal.acroformPlugin.isInitialized=!0}},gU=jF.__acroform__.arrayToPdfArray=function(Tn){if(Array.isArray(Tn)){for(var Un="[",Dn=0;Dn<Tn.length;Dn++)switch(0!==Dn&&(Un+=" "),_typeof(Tn[Dn])){case"boolean":case"number":case"object":Un+=Tn[Dn].toString();break;case"string":"/"!==Tn[Dn].substr(0,1)?Un+="("+HF(Tn[Dn].toString())+")":Un+=Tn[Dn].toString()}return Un+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},fU=function G(Tn){return(Tn=Tn||"").toString(),"("+HF(Tn)+")"},AU=function Y(){var Tn;Object.defineProperty(this,"objId",{configurable:!0,get:function get(){return Tn||(Tn=DF.internal.newObjectDeferred()),Tn},set:function set(Un){Tn=Un}})};AU.prototype.toString=function(){return this.objId+" 0 R"},AU.prototype.putStream=function(){var Tn=this.getKeyValueListForStream();DF.internal.putStream({data:this.stream,additionalKeyValues:Tn}),DF.internal.out("endobj")},AU.prototype.getKeyValueListForStream=function(){return function(Tn){var Un=[],Dn=Object.getOwnPropertyNames(Tn).filter((function(Tn){return"content"!=Tn&&"appearanceStreamContent"!=Tn&&"_"!=Tn.substring(0,1)}));for(var Qn in Dn)if(!1===Object.getOwnPropertyDescriptor(Tn,Dn[Qn]).configurable){var Hn=Dn[Qn],Gn=Tn[Hn];Gn&&(Array.isArray(Gn)?Un.push({key:Hn,value:gU(Gn)}):Gn instanceof AU?Un.push({key:Hn,value:Gn.objId+" 0 R"}):"function"!=typeof Gn&&Un.push({key:Hn,value:Gn}))}return Un}(this)};var mU=function J(){AU.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var Tn,Un=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function get(){return Un},set:function set(Tn){Un=Tn}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function set(Un){Tn=Un.trim()},get:function get(){return Tn||null}})};KF(mU,AU);var vU=function X(){AU.call(this);var Tn,Un=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function get(){return Un.length>0?Un:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function get(){return Un}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function get(){if(Tn)return"("+Tn+")"},set:function set(Un){Tn=Un}})};KF(vU,AU);var yU=function K(){AU.call(this);var Tn=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function get(){return Tn},set:function set(Un){if(isNaN(Un))throw new Error('Invalid value "'+Un+'" for attribute F supplied.');Tn=Un}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(Tn,3))},set:function set(Un){!0===Boolean(Un)?this.F=ZF(Tn,3):this.F=eU(Tn,3)}});var Un=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function get(){return Un},set:function set(Tn){if(isNaN(Tn))throw new Error('Invalid value "'+Tn+'" for attribute Ff supplied.');Un=Tn}});var Dn=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function get(){if(0!==Dn.length)return Dn},set:function set(Tn){Dn=void 0!==Tn?Tn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function get(){return!Dn||isNaN(Dn[0])?0:Dn[0]},set:function set(Tn){Dn[0]=Tn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function get(){return!Dn||isNaN(Dn[1])?0:Dn[1]},set:function set(Tn){Dn[1]=Tn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function get(){return!Dn||isNaN(Dn[2])?0:Dn[2]},set:function set(Tn){Dn[2]=Tn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function get(){return!Dn||isNaN(Dn[3])?0:Dn[3]},set:function set(Tn){Dn[3]=Tn}});var Qn="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function get(){return Qn},set:function set(Tn){switch(Tn){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Qn=Tn;break;default:throw new Error('Invalid value "'+Tn+'" for attribute FT supplied.')}}});var Hn=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function get(){if(!Hn||Hn.length<1){if(this instanceof BU)return;Hn="FieldObject"+K.FieldNum++}return"("+HF(Hn)+")"},set:function set(Tn){Hn=Tn.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function get(){return Hn},set:function set(Tn){Hn=Tn}});var Gn="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function get(){return Gn},set:function set(Tn){Gn=Tn}});var Vn="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function get(){return Vn},set:function set(Tn){Vn=Tn}});var zn=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function get(){return zn},set:function set(Tn){zn=Tn}});var Kn=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function get(){return void 0===Kn?50/QF:Kn},set:function set(Tn){Kn=Tn}});var $n="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function get(){return $n},set:function set(Tn){$n=Tn}});var Wn="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function get(){if(!(!Wn||this instanceof BU||this instanceof PU))return fU(Wn)},set:function set(Tn){Tn=Tn.toString(),Wn=Tn}});var Xn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function get(){if(Xn)return this instanceof SU==0?fU(Xn):Xn},set:function set(Tn){Tn=Tn.toString(),Xn=this instanceof SU==0?"("===Tn.substr(0,1)?GF(Tn.substr(1,Tn.length-2)):GF(Tn):Tn}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function get(){return this instanceof SU==1?GF(Xn.substr(1,Xn.length-1)):Xn},set:function set(Tn){Tn=Tn.toString(),Xn=this instanceof SU==1?"/"+Tn:Tn}});var Yn=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function get(){if(Yn)return this instanceof SU==0?fU(Yn):Yn},set:function set(Tn){Tn=Tn.toString(),Yn=this instanceof SU==0?"("===Tn.substr(0,1)?GF(Tn.substr(1,Tn.length-2)):GF(Tn):Tn}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function get(){return this instanceof SU==1?GF(Yn.substr(1,Yn.length-1)):Yn},set:function set(Tn){Tn=Tn.toString(),Yn=this instanceof SU==1?"/"+Tn:Tn}}),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 Jn,Zn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function get(){return Zn},set:function set(Tn){Tn=Boolean(Tn),Zn=Tn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function get(){if(Jn)return Jn},set:function set(Tn){Jn=Tn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,1))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,1):this.Ff=eU(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,2))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,2):this.Ff=eU(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,3))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,3):this.Ff=eU(this.Ff,3)}});var er=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function get(){if(null!==er)return er},set:function set(Tn){if(-1===[0,1,2].indexOf(Tn))throw new Error('Invalid value "'+Tn+'" for attribute Q supplied.');er=Tn}}),Object.defineProperty(this,"textAlign",{get:function get(){var Tn;switch(er){case 0:default:Tn="left";break;case 1:Tn="center";break;case 2:Tn="right"}return Tn},configurable:!0,enumerable:!0,set:function set(Tn){switch(Tn){case"right":case 2:er=2;break;case"center":case 1:er=1;break;case"left":case 0:default:er=0}}})};KF(yU,AU);var _U=function Z(){yU.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Tn=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function get(){return Tn},set:function set(Un){Tn=Un}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function get(){return Tn},set:function set(Un){Tn=Un}});var Un=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function get(){return gU(Un)},set:function set(Tn){var Dn,Qn;Qn=[],"string"==typeof(Dn=Tn)&&(Qn=function(Tn,Un,Dn){Dn||(Dn=1);for(var Qn,Hn=[];Qn=Un.exec(Tn);)Hn.push(Qn[Dn]);return Hn}(Dn,/\((.*?)\)/g)),Un=Qn}}),this.getOptions=function(){return Un},this.setOptions=function(Tn){Un=Tn,this.sort&&Un.sort()},this.addOption=function(Tn){Tn=(Tn=Tn||"").toString(),Un.push(Tn),this.sort&&Un.sort()},this.removeOption=function(Tn,Dn){for(Dn=Dn||!1,Tn=(Tn=Tn||"").toString();-1!==Un.indexOf(Tn)&&(Un.splice(Un.indexOf(Tn),1),!1!==Dn););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,18))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,18):this.Ff=eU(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,19))},set:function set(Tn){!0===this.combo&&(!0===Boolean(Tn)?this.Ff=ZF(this.Ff,19):this.Ff=eU(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,20))},set:function set(Tn){!0===Boolean(Tn)?(this.Ff=ZF(this.Ff,20),Un.sort()):this.Ff=eU(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,22))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,22):this.Ff=eU(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,23))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,23):this.Ff=eU(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,27))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,27):this.Ff=eU(this.Ff,27)}}),this.hasAppearanceStream=!1};KF(_U,yU);var bU=function $(){_U.call(this),this.fontName="helvetica",this.combo=!1};KF(bU,_U);var wU=function Q(){bU.call(this),this.combo=!0};KF(wU,bU);var xU=function tt(){wU.call(this),this.edit=!0};KF(xU,wU);var SU=function et(){yU.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,15))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,15):this.Ff=eU(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,16))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,16):this.Ff=eU(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,17))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,17):this.Ff=eU(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,26))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,26):this.Ff=eU(this.Ff,26)}});var Tn,Un={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function get(){if(0!==Object.keys(Un).length){var Tn,Dn=[];for(Tn in Dn.push("<<"),Un)Dn.push("/"+Tn+" ("+Un[Tn]+")");return Dn.push(">>"),Dn.join("\n")}},set:function set(Tn){"object"==_typeof(Tn)&&(Un=Tn)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function get(){return Un.CA||""},set:function set(Tn){"string"==typeof Tn&&(Un.CA=Tn)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function get(){return Tn},set:function set(Un){Tn=Un}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function get(){return Tn.substr(1,Tn.length-1)},set:function set(Un){Tn="/"+Un}})};KF(SU,yU);var CU=function nt(){SU.call(this),this.pushButton=!0};KF(CU,SU);var kU=function rt(){SU.call(this),this.radio=!0,this.pushButton=!1;var Tn=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function get(){return Tn},set:function set(Un){Tn=void 0!==Un?Un:[]}})};KF(kU,SU);var BU=function it(){var Tn,Un;yU.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function get(){return Tn},set:function set(Un){Tn=Un}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function get(){return Un},set:function set(Tn){Un=Tn}});var Dn,Qn={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function get(){var Tn,Un=[];for(Tn in Un.push("<<"),Qn)Un.push("/"+Tn+" ("+Qn[Tn]+")");return Un.push(">>"),Un.join("\n")},set:function set(Tn){"object"==_typeof(Tn)&&(Qn=Tn)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function get(){return Qn.CA||""},set:function set(Tn){"string"==typeof Tn&&(Qn.CA=Tn)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function get(){return Dn},set:function set(Tn){Dn=Tn}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function get(){return Dn.substr(1,Dn.length-1)},set:function set(Tn){Dn="/"+Tn}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=TU.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};KF(BU,yU),kU.prototype.setAppearance=function(Tn){if(!("createAppearanceStream"in Tn)||!("getCA"in Tn))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Un in this.Kids)if(this.Kids.hasOwnProperty(Un)){var Dn=this.Kids[Un];Dn.appearanceStreamContent=Tn.createAppearanceStream(Dn.optionName),Dn.caption=Tn.getCA()}},kU.prototype.createOption=function(Tn){var Un=new BU;return Un.Parent=this,Un.optionName=Tn,this.Kids.push(Un),NU.call(this,Un),Un};var EU=function at(){SU.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=TU.CheckBox.createAppearanceStream()};KF(EU,SU);var PU=function ot(){yU.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,13))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,13):this.Ff=eU(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,21))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,21):this.Ff=eU(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,23))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,23):this.Ff=eU(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,24))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,24):this.Ff=eU(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,25))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,25):this.Ff=eU(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,26))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,26):this.Ff=eU(this.Ff,26)}});var Tn=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function get(){return Tn},set:function set(Un){Tn=Un}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function get(){return Tn},set:function set(Un){Number.isInteger(Un)&&(Tn=Un)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function get(){return this.V||this.DV}})};KF(PU,yU);var LU=function st(){PU.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function get(){return Boolean(JF(this.Ff,14))},set:function set(Tn){!0===Boolean(Tn)?this.Ff=ZF(this.Ff,14):this.Ff=eU(this.Ff,14)}}),this.password=!0};KF(LU,PU);var TU={CheckBox:{createAppearanceStream:function createAppearanceStream(){return{N:{On:TU.CheckBox.YesNormal},D:{On:TU.CheckBox.YesPushDown,Off:TU.CheckBox.OffPushDown}}},YesPushDown:function YesPushDown(Tn){var Un=new $F(Tn),Dn=[],Qn=DF.internal.getFont(Tn.fontName,Tn.fontStyle).id,Hn=DF.__private__.encodeColorString(Tn.color),Gn=rU(Tn,Tn.caption);return Dn.push("0.749023 g"),Dn.push("0 0 "+VF(TU.internal.getWidth(Tn))+" "+VF(TU.internal.getHeight(Tn))+" re"),Dn.push("f"),Dn.push("BMC"),Dn.push("q"),Dn.push("0 0 1 rg"),Dn.push("/"+Qn+" "+VF(Gn.fontSize)+" Tf "+Hn),Dn.push("BT"),Dn.push(Gn.text),Dn.push("ET"),Dn.push("Q"),Dn.push("EMC"),Un.stream=Dn.join("\n"),Un},YesNormal:function YesNormal(Tn){var Un=new $F(Tn),Dn=DF.internal.getFont(Tn.fontName,Tn.fontStyle).id,Qn=DF.__private__.encodeColorString(Tn.color),Hn=[],Gn=TU.internal.getHeight(Tn),Vn=TU.internal.getWidth(Tn),zn=rU(Tn,Tn.caption);return Hn.push("1 g"),Hn.push("0 0 "+VF(Vn)+" "+VF(Gn)+" re"),Hn.push("f"),Hn.push("q"),Hn.push("0 0 1 rg"),Hn.push("0 0 "+VF(Vn-1)+" "+VF(Gn-1)+" re"),Hn.push("W"),Hn.push("n"),Hn.push("0 g"),Hn.push("BT"),Hn.push("/"+Dn+" "+VF(zn.fontSize)+" Tf "+Qn),Hn.push(zn.text),Hn.push("ET"),Hn.push("Q"),Un.stream=Hn.join("\n"),Un},OffPushDown:function OffPushDown(Tn){var Un=new $F(Tn),Dn=[];return Dn.push("0.749023 g"),Dn.push("0 0 "+VF(TU.internal.getWidth(Tn))+" "+VF(TU.internal.getHeight(Tn))+" re"),Dn.push("f"),Un.stream=Dn.join("\n"),Un}},RadioButton:{Circle:{createAppearanceStream:function createAppearanceStream(Tn){var Un={D:{Off:TU.RadioButton.Circle.OffPushDown},N:{}};return Un.N[Tn]=TU.RadioButton.Circle.YesNormal,Un.D[Tn]=TU.RadioButton.Circle.YesPushDown,Un},getCA:function getCA(){return"l"},YesNormal:function YesNormal(Tn){var Un=new $F(Tn),Dn=[],Qn=TU.internal.getWidth(Tn)<=TU.internal.getHeight(Tn)?TU.internal.getWidth(Tn)/4:TU.internal.getHeight(Tn)/4;Qn=Number((.9*Qn).toFixed(5));var Hn=TU.internal.Bezier_C,Gn=Number((Qn*Hn).toFixed(5));return Dn.push("q"),Dn.push("1 0 0 1 "+zF(TU.internal.getWidth(Tn)/2)+" "+zF(TU.internal.getHeight(Tn)/2)+" cm"),Dn.push(Qn+" 0 m"),Dn.push(Qn+" "+Gn+" "+Gn+" "+Qn+" 0 "+Qn+" c"),Dn.push("-"+Gn+" "+Qn+" -"+Qn+" "+Gn+" -"+Qn+" 0 c"),Dn.push("-"+Qn+" -"+Gn+" -"+Gn+" -"+Qn+" 0 -"+Qn+" c"),Dn.push(Gn+" -"+Qn+" "+Qn+" -"+Gn+" "+Qn+" 0 c"),Dn.push("f"),Dn.push("Q"),Un.stream=Dn.join("\n"),Un},YesPushDown:function YesPushDown(Tn){var Un=new $F(Tn),Dn=[],Qn=TU.internal.getWidth(Tn)<=TU.internal.getHeight(Tn)?TU.internal.getWidth(Tn)/4:TU.internal.getHeight(Tn)/4,Hn=(Qn=Number((.9*Qn).toFixed(5)),Number((2*Qn).toFixed(5))),Gn=Number((Hn*TU.internal.Bezier_C).toFixed(5)),Vn=Number((Qn*TU.internal.Bezier_C).toFixed(5));return Dn.push("0.749023 g"),Dn.push("q"),Dn.push("1 0 0 1 "+zF(TU.internal.getWidth(Tn)/2)+" "+zF(TU.internal.getHeight(Tn)/2)+" cm"),Dn.push(Hn+" 0 m"),Dn.push(Hn+" "+Gn+" "+Gn+" "+Hn+" 0 "+Hn+" c"),Dn.push("-"+Gn+" "+Hn+" -"+Hn+" "+Gn+" -"+Hn+" 0 c"),Dn.push("-"+Hn+" -"+Gn+" -"+Gn+" -"+Hn+" 0 -"+Hn+" c"),Dn.push(Gn+" -"+Hn+" "+Hn+" -"+Gn+" "+Hn+" 0 c"),Dn.push("f"),Dn.push("Q"),Dn.push("0 g"),Dn.push("q"),Dn.push("1 0 0 1 "+zF(TU.internal.getWidth(Tn)/2)+" "+zF(TU.internal.getHeight(Tn)/2)+" cm"),Dn.push(Qn+" 0 m"),Dn.push(Qn+" "+Vn+" "+Vn+" "+Qn+" 0 "+Qn+" c"),Dn.push("-"+Vn+" "+Qn+" -"+Qn+" "+Vn+" -"+Qn+" 0 c"),Dn.push("-"+Qn+" -"+Vn+" -"+Vn+" -"+Qn+" 0 -"+Qn+" c"),Dn.push(Vn+" -"+Qn+" "+Qn+" -"+Vn+" "+Qn+" 0 c"),Dn.push("f"),Dn.push("Q"),Un.stream=Dn.join("\n"),Un},OffPushDown:function OffPushDown(Tn){var Un=new $F(Tn),Dn=[],Qn=TU.internal.getWidth(Tn)<=TU.internal.getHeight(Tn)?TU.internal.getWidth(Tn)/4:TU.internal.getHeight(Tn)/4;Qn=Number((.9*Qn).toFixed(5));var Hn=Number((2*Qn).toFixed(5)),Gn=Number((Hn*TU.internal.Bezier_C).toFixed(5));return Dn.push("0.749023 g"),Dn.push("q"),Dn.push("1 0 0 1 "+zF(TU.internal.getWidth(Tn)/2)+" "+zF(TU.internal.getHeight(Tn)/2)+" cm"),Dn.push(Hn+" 0 m"),Dn.push(Hn+" "+Gn+" "+Gn+" "+Hn+" 0 "+Hn+" c"),Dn.push("-"+Gn+" "+Hn+" -"+Hn+" "+Gn+" -"+Hn+" 0 c"),Dn.push("-"+Hn+" -"+Gn+" -"+Gn+" -"+Hn+" 0 -"+Hn+" c"),Dn.push(Gn+" -"+Hn+" "+Hn+" -"+Gn+" "+Hn+" 0 c"),Dn.push("f"),Dn.push("Q"),Un.stream=Dn.join("\n"),Un}},Cross:{createAppearanceStream:function createAppearanceStream(Tn){var Un={D:{Off:TU.RadioButton.Cross.OffPushDown},N:{}};return Un.N[Tn]=TU.RadioButton.Cross.YesNormal,Un.D[Tn]=TU.RadioButton.Cross.YesPushDown,Un},getCA:function getCA(){return"8"},YesNormal:function YesNormal(Tn){var Un=new $F(Tn),Dn=[],Qn=TU.internal.calculateCross(Tn);return Dn.push("q"),Dn.push("1 1 "+VF(TU.internal.getWidth(Tn)-2)+" "+VF(TU.internal.getHeight(Tn)-2)+" re"),Dn.push("W"),Dn.push("n"),Dn.push(VF(Qn.x1.x)+" "+VF(Qn.x1.y)+" m"),Dn.push(VF(Qn.x2.x)+" "+VF(Qn.x2.y)+" l"),Dn.push(VF(Qn.x4.x)+" "+VF(Qn.x4.y)+" m"),Dn.push(VF(Qn.x3.x)+" "+VF(Qn.x3.y)+" l"),Dn.push("s"),Dn.push("Q"),Un.stream=Dn.join("\n"),Un},YesPushDown:function YesPushDown(Tn){var Un=new $F(Tn),Dn=TU.internal.calculateCross(Tn),Qn=[];return Qn.push("0.749023 g"),Qn.push("0 0 "+VF(TU.internal.getWidth(Tn))+" "+VF(TU.internal.getHeight(Tn))+" re"),Qn.push("f"),Qn.push("q"),Qn.push("1 1 "+VF(TU.internal.getWidth(Tn)-2)+" "+VF(TU.internal.getHeight(Tn)-2)+" re"),Qn.push("W"),Qn.push("n"),Qn.push(VF(Dn.x1.x)+" "+VF(Dn.x1.y)+" m"),Qn.push(VF(Dn.x2.x)+" "+VF(Dn.x2.y)+" l"),Qn.push(VF(Dn.x4.x)+" "+VF(Dn.x4.y)+" m"),Qn.push(VF(Dn.x3.x)+" "+VF(Dn.x3.y)+" l"),Qn.push("s"),Qn.push("Q"),Un.stream=Qn.join("\n"),Un},OffPushDown:function OffPushDown(Tn){var Un=new $F(Tn),Dn=[];return Dn.push("0.749023 g"),Dn.push("0 0 "+VF(TU.internal.getWidth(Tn))+" "+VF(TU.internal.getHeight(Tn))+" re"),Dn.push("f"),Un.stream=Dn.join("\n"),Un}}},createDefaultAppearanceStream:function createDefaultAppearanceStream(Tn){var Un=DF.internal.getFont(Tn.fontName,Tn.fontStyle).id,Dn=DF.__private__.encodeColorString(Tn.color);return"/"+Un+" "+Tn.fontSize+" Tf "+Dn}};TU.internal={Bezier_C:.551915024494,calculateCross:function calculateCross(Tn){var Un=TU.internal.getWidth(Tn),Dn=TU.internal.getHeight(Tn),Qn=Math.min(Un,Dn);return{x1:{x:(Un-Qn)/2,y:(Dn-Qn)/2+Qn},x2:{x:(Un-Qn)/2+Qn,y:(Dn-Qn)/2},x3:{x:(Un-Qn)/2,y:(Dn-Qn)/2},x4:{x:(Un-Qn)/2+Qn,y:(Dn-Qn)/2+Qn}}}},TU.internal.getWidth=function(Tn){var Un=0;return"object"==_typeof(Tn)&&(Un=qF(Tn.Rect[2])),Un},TU.internal.getHeight=function(Tn){var Un=0;return"object"==_typeof(Tn)&&(Un=qF(Tn.Rect[3])),Un};var NU=jF.addField=function(Tn){if(pU.call(this),!(Tn instanceof yU))throw new Error("Invalid argument passed to jsPDF.addField.");return sU.call(this,Tn),Tn.page=DF.internal.getCurrentPageInfo().pageNumber,this};jF.AcroFormChoiceField=_U,jF.AcroFormListBox=bU,jF.AcroFormComboBox=wU,jF.AcroFormEditBox=xU,jF.AcroFormButton=SU,jF.AcroFormPushButton=CU,jF.AcroFormRadioButton=kU,jF.AcroFormCheckBox=EU,jF.AcroFormTextField=PU,jF.AcroFormPasswordField=LU,jF.AcroFormAppearance=TU,jF.AcroForm={ChoiceField:_U,ListBox:bU,ComboBox:wU,EditBox:xU,Button:SU,PushButton:CU,RadioButton:kU,CheckBox:EU,TextField:PU,PasswordField:LU,Appearance:TU},g.AcroForm={ChoiceField:_U,ListBox:bU,ComboBox:wU,EditBox:xU,Button:SU,PushButton:CU,RadioButton:kU,CheckBox:EU,TextField:PU,PasswordField:LU,Appearance:TU},function(Tn){Tn.__addimage__={};var Un="UNKNOWN",Dn={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]]},Qn=Tn.__addimage__.getImageFileTypeByImageData=function(Tn,Qn){var Hn,Gn;Qn=Qn||Un;var Vn,zn,Kn,$n=Un;if(sr(Tn))for(Kn in Dn)for(Vn=Dn[Kn],Hn=0;Hn<Vn.length;Hn+=1){for(zn=!0,Gn=0;Gn<Vn[Hn].length;Gn+=1)if(void 0!==Vn[Hn][Gn]&&Vn[Hn][Gn]!==Tn[Gn]){zn=!1;break}if(!0===zn){$n=Kn;break}}else for(Kn in Dn)for(Vn=Dn[Kn],Hn=0;Hn<Vn.length;Hn+=1){for(zn=!0,Gn=0;Gn<Vn[Hn].length;Gn+=1)if(void 0!==Vn[Hn][Gn]&&Vn[Hn][Gn]!==Tn.charCodeAt(Gn)){zn=!1;break}if(!0===zn){$n=Kn;break}}return $n===Un&&Qn!==Un&&($n=Qn),$n},Hn=function i(Tn){for(var Un=this.internal.write,Dn=this.internal.putStream,Qn=(0,this.internal.getFilters)();-1!==Qn.indexOf("FlateEncode");)Qn.splice(Qn.indexOf("FlateEncode"),1);Tn.objectId=this.internal.newObject();var Hn=[];if(Hn.push({key:"Type",value:"/XObject"}),Hn.push({key:"Subtype",value:"/Image"}),Hn.push({key:"Width",value:Tn.width}),Hn.push({key:"Height",value:Tn.height}),Tn.colorSpace===tr.INDEXED?Hn.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Tn.palette.length/3-1)+" "+("sMask"in Tn&&void 0!==Tn.sMask?Tn.objectId+2:Tn.objectId+1)+" 0 R]"}):(Hn.push({key:"ColorSpace",value:"/"+Tn.colorSpace}),Tn.colorSpace===tr.DEVICE_CMYK&&Hn.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Hn.push({key:"BitsPerComponent",value:Tn.bitsPerComponent}),"decodeParameters"in Tn&&void 0!==Tn.decodeParameters&&Hn.push({key:"DecodeParms",value:"<<"+Tn.decodeParameters+">>"}),"transparency"in Tn&&Array.isArray(Tn.transparency)){for(var Gn="",Vn=0,zn=Tn.transparency.length;Vn<zn;Vn++)Gn+=Tn.transparency[Vn]+" "+Tn.transparency[Vn]+" ";Hn.push({key:"Mask",value:"["+Gn+"]"})}void 0!==Tn.sMask&&Hn.push({key:"SMask",value:Tn.objectId+1+" 0 R"});var Kn=void 0!==Tn.filter?["/"+Tn.filter]:void 0;if(Dn({data:Tn.data,additionalKeyValues:Hn,alreadyAppliedFilters:Kn}),Un("endobj"),"sMask"in Tn&&void 0!==Tn.sMask){var $n="/Predictor "+Tn.predictor+" /Colors 1 /BitsPerComponent "+Tn.bitsPerComponent+" /Columns "+Tn.width,Wn={width:Tn.width,height:Tn.height,colorSpace:"DeviceGray",bitsPerComponent:Tn.bitsPerComponent,decodeParameters:$n,data:Tn.sMask};"filter"in Tn&&(Wn.filter=Tn.filter),i.call(this,Wn)}Tn.colorSpace===tr.INDEXED&&(this.internal.newObject(),Dn({data:cr(new Uint8Array(Tn.palette))}),Un("endobj"))},Gn=function a(){var Tn=this.internal.collections.addImage_images;for(var Un in Tn)Hn.call(this,Tn[Un])},Vn=function u(){var Tn,Un=this.internal.collections.addImage_images,Dn=this.internal.write;for(var Qn in Un)Dn("/I"+(Tn=Un[Qn]).index,Tn.objectId,"0","R")},zn=function c(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Gn),this.internal.events.subscribe("putXobjectDict",Vn))},Kn=function h(){var Tn=this.internal.collections.addImage_images;return zn.call(this),Tn},$n=function l(){return Object.keys(this.internal.collections.addImage_images).length},Wn=function f(Un){return"function"==typeof Tn["process"+Un.toUpperCase()]},Xn=function d(Tn){return"object"==_typeof(Tn)&&1===Tn.nodeType},Yn=function p(Un,Dn){if("IMG"===Un.nodeName&&Un.hasAttribute("src")){var Qn=""+Un.getAttribute("src");if(0===Qn.indexOf("data:image/"))return UF(unescape(Qn).split("base64,").pop());var Hn=Tn.loadFile(Qn,!0);if(void 0!==Hn)return Hn}if("CANVAS"===Un.nodeName){var Gn;switch(Dn){case"PNG":Gn="image/png";break;case"WEBP":Gn="image/webp";break;case"JPEG":case"JPG":default:Gn="image/jpeg"}return UF(Un.toDataURL(Gn,1).split("base64,").pop())}},Jn=function g(Tn){var Un=this.internal.collections.addImage_images;if(Un)for(var Dn in Un)if(Tn===Un[Dn].alias)return Un[Dn]},Zn=function m(Tn,Un,Dn){return Tn||Un||(Tn=-96,Un=-96),Tn<0&&(Tn=-1*Dn.width*72/Tn/this.internal.scaleFactor),Un<0&&(Un=-1*Dn.height*72/Un/this.internal.scaleFactor),0===Tn&&(Tn=Un*Dn.width/Dn.height),0===Un&&(Un=Tn*Dn.height/Dn.width),[Tn,Un]},er=function v(Tn,Un,Dn,Qn,Hn,Gn){var Vn=Zn.call(this,Dn,Qn,Hn),zn=this.internal.getCoordinateString,$n=this.internal.getVerticalCoordinateString,Wn=Kn.call(this);if(Dn=Vn[0],Qn=Vn[1],Wn[Hn.index]=Hn,Gn){Gn*=Math.PI/180;var Xn=Math.cos(Gn),Yn=Math.sin(Gn),Jn=function d(Tn){return Tn.toFixed(4)},er=[Jn(Xn),Jn(Yn),Jn(-1*Yn),Jn(Xn),0,0,"cm"]}this.internal.write("q"),Gn?(this.internal.write([1,"0","0",1,zn(Tn),$n(Un+Qn),"cm"].join(" ")),this.internal.write(er.join(" ")),this.internal.write([zn(Dn),"0","0",zn(Qn),"0","0","cm"].join(" "))):this.internal.write([zn(Dn),"0","0",zn(Qn),zn(Tn),$n(Un+Qn),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Hn.index+" Do"),this.internal.write("Q")},tr=Tn.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"};Tn.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 nr=Tn.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},rr=Tn.__addimage__.sHashCode=function(Tn){var Un,Dn,Qn=0;if("string"==typeof Tn)for(Dn=Tn.length,Un=0;Un<Dn;Un++)Qn=(Qn<<5)-Qn+Tn.charCodeAt(Un),Qn|=0;else if(sr(Tn))for(Dn=Tn.byteLength/2,Un=0;Un<Dn;Un++)Qn=(Qn<<5)-Qn+Tn[Un],Qn|=0;return Qn},ir=Tn.__addimage__.validateStringAsBase64=function(Tn){(Tn=Tn||"").toString().trim();var Un=!0;return 0===Tn.length&&(Un=!1),Tn.length%4!=0&&(Un=!1),!1===/^[A-Za-z0-9+/]+$/.test(Tn.substr(0,Tn.length-2))&&(Un=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Tn.substr(-2))&&(Un=!1),Un},or=Tn.__addimage__.extractImageFromDataUrl=function(Tn){var Un=(Tn=Tn||"").split("base64,"),Dn=null;if(2===Un.length){var Qn=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(Un[0]);Array.isArray(Qn)&&(Dn={mimeType:Qn[1],charset:Qn[2],data:Un[1]})}return Dn},ar=Tn.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};Tn.__addimage__.isArrayBuffer=function(Tn){return ar()&&Tn instanceof ArrayBuffer};var sr=Tn.__addimage__.isArrayBufferView=function(Tn){return ar()&&"undefined"!=typeof Uint32Array&&(Tn instanceof Int8Array||Tn instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&Tn instanceof Uint8ClampedArray||Tn instanceof Int16Array||Tn instanceof Uint16Array||Tn instanceof Int32Array||Tn instanceof Uint32Array||Tn instanceof Float32Array||Tn instanceof Float64Array)},lr=Tn.__addimage__.binaryStringToUint8Array=function(Tn){for(var Un=Tn.length,Dn=new Uint8Array(Un),Qn=0;Qn<Un;Qn++)Dn[Qn]=Tn.charCodeAt(Qn);return Dn},cr=Tn.__addimage__.arrayBufferToBinaryString=function(Tn){try{return UF(MF(String.fromCharCode.apply(null,Tn)))}catch(Un){if("undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.reduce)return new Uint8Array(Tn).reduce((function(Tn,Un){return Tn.push(String.fromCharCode(Un)),Tn}),[]).join("")}};Tn.addImage=function(){var Tn,Dn,Qn,Hn,Gn,Vn,Kn,$n,Wn;if("number"==typeof arguments[1]?(Dn=Un,Qn=arguments[1],Hn=arguments[2],Gn=arguments[3],Vn=arguments[4],Kn=arguments[5],$n=arguments[6],Wn=arguments[7]):(Dn=arguments[1],Qn=arguments[2],Hn=arguments[3],Gn=arguments[4],Vn=arguments[5],Kn=arguments[6],$n=arguments[7],Wn=arguments[8]),"object"==_typeof(Tn=arguments[0])&&!Xn(Tn)&&"imageData"in Tn){var Yn=Tn;Tn=Yn.imageData,Dn=Yn.format||Dn||Un,Qn=Yn.x||Qn||0,Hn=Yn.y||Hn||0,Gn=Yn.w||Yn.width||Gn,Vn=Yn.h||Yn.height||Vn,Kn=Yn.alias||Kn,$n=Yn.compression||$n,Wn=Yn.rotation||Yn.angle||Wn}var Jn=this.internal.getFilters();if(void 0===$n&&-1!==Jn.indexOf("FlateEncode")&&($n="SLOW"),isNaN(Qn)||isNaN(Hn))throw new Error("Invalid coordinates passed to jsPDF.addImage");zn.call(this);var Zn=ur.call(this,Tn,Dn,Kn,$n);return er.call(this,Qn,Hn,Gn,Vn,Zn,Wn),this};var ur=function P(Dn,Hn,Gn,Vn){var zn,Kn,Zn;if("string"==typeof Dn&&Qn(Dn)===Un){Dn=unescape(Dn);var er=dr(Dn,!1);(""!==er||void 0!==(er=Tn.loadFile(Dn,!0)))&&(Dn=er)}if(Xn(Dn)&&(Dn=Yn(Dn,Hn)),Hn=Qn(Dn,Hn),!Wn(Hn))throw new Error("addImage does not support files of type '"+Hn+"', please ensure that a plugin for '"+Hn+"' support is added.");if((null==(Zn=Gn)||0===Zn.length)&&(Gn=function(Tn){return"string"==typeof Tn||sr(Tn)?rr(Tn):null}(Dn)),(zn=Jn.call(this,Gn))||(ar()&&(Dn instanceof Uint8Array||(Kn=Dn,Dn=lr(Dn))),zn=this["process"+Hn.toUpperCase()](Dn,$n.call(this),Gn,function(Un){return Un&&"string"==typeof Un&&(Un=Un.toUpperCase()),Un in Tn.image_compression?Un:nr.NONE}(Vn),Kn)),!zn)throw new Error("An unknown error occurred whilst processing the image.");return zn},dr=Tn.__addimage__.convertBase64ToBinaryString=function(Tn,Un){var Dn;Un="boolean"!=typeof Un||Un;var Qn,Hn="";if("string"==typeof Tn){Qn=null!==(Dn=or(Tn))?Dn.data:Tn;try{Hn=UF(Qn)}catch(Tn){if(Un)throw ir(Qn)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Tn.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Hn};Tn.getImageProperties=function(Dn){var Hn,Gn,Vn="";if(Xn(Dn)&&(Dn=Yn(Dn)),"string"==typeof Dn&&Qn(Dn)===Un&&(""===(Vn=dr(Dn,!1))&&(Vn=Tn.loadFile(Dn)||""),Dn=Vn),Gn=Qn(Dn),!Wn(Gn))throw new Error("addImage does not support files of type '"+Gn+"', please ensure that a plugin for '"+Gn+"' support is added.");if(!ar()||Dn instanceof Uint8Array||(Dn=lr(Dn)),!(Hn=this["process"+Gn.toUpperCase()](Dn)))throw new Error("An unknown error occurred whilst processing the image");return Hn.fileType=Gn,Hn}}(g.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){var Un=function e(Tn){if(void 0!==Tn&&""!=Tn)return!0};g.API.events.push(["addPage",function(Tn){this.internal.getPageInfo(Tn.pageNumber).pageContext.annotations=[]}]),Tn.events.push(["putPage",function(Tn){for(var Dn,Qn,Hn,Gn=this.internal.getCoordinateString,Vn=this.internal.getVerticalCoordinateString,zn=this.internal.getPageInfoByObjId(Tn.objId),Kn=Tn.pageContext.annotations,$n=!1,Wn=0;Wn<Kn.length&&!$n;Wn++)switch((Dn=Kn[Wn]).type){case"link":(Un(Dn.options.url)||Un(Dn.options.pageNumber))&&($n=!0);break;case"reference":case"text":case"freetext":$n=!0}if(0!=$n){this.internal.write("/Annots [");for(var Xn=0;Xn<Kn.length;Xn++)switch((Dn=Kn[Xn]).type){case"reference":this.internal.write(" "+Dn.object.objId+" 0 R ");break;case"text":var Yn=this.internal.newAdditionalObject(),Jn=this.internal.newAdditionalObject(),Zn=Dn.title||"Note";Hn="<</Type /Annot /Subtype /Text "+(Qn="/Rect ["+Gn(Dn.bounds.x)+" "+Vn(Dn.bounds.y+Dn.bounds.h)+" "+Gn(Dn.bounds.x+Dn.bounds.w)+" "+Vn(Dn.bounds.y)+"] ")+"/Contents ("+Dn.contents+")",Hn+=" /Popup "+Jn.objId+" 0 R",Hn+=" /P "+zn.objId+" 0 R",Hn+=" /T ("+Zn+") >>",Yn.content=Hn;var er=Yn.objId+" 0 R";Hn="<</Type /Annot /Subtype /Popup "+(Qn="/Rect ["+Gn(Dn.bounds.x+30)+" "+Vn(Dn.bounds.y+Dn.bounds.h)+" "+Gn(Dn.bounds.x+Dn.bounds.w+30)+" "+Vn(Dn.bounds.y)+"] ")+" /Parent "+er,Dn.open&&(Hn+=" /Open true"),Hn+=" >>",Jn.content=Hn,this.internal.write(Yn.objId,"0 R",Jn.objId,"0 R");break;case"freetext":Qn="/Rect ["+Gn(Dn.bounds.x)+" "+Vn(Dn.bounds.y)+" "+Gn(Dn.bounds.x+Dn.bounds.w)+" "+Vn(Dn.bounds.y+Dn.bounds.h)+"] ";var tr=Dn.color||"#000000";Hn="<</Type /Annot /Subtype /FreeText "+Qn+"/Contents ("+Dn.contents+")",Hn+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+tr+")",Hn+=" /Border [0 0 0]",Hn+=" >>",this.internal.write(Hn);break;case"link":if(Dn.options.name){var nr=this.annotations._nameMap[Dn.options.name];Dn.options.pageNumber=nr.page,Dn.options.top=nr.y}else Dn.options.top||(Dn.options.top=0);if(Qn="/Rect ["+Gn(Dn.x)+" "+Vn(Dn.y)+" "+Gn(Dn.x+Dn.w)+" "+Vn(Dn.y+Dn.h)+"] ",Hn="",Dn.options.url)Hn="<</Type /Annot /Subtype /Link "+Qn+"/Border [0 0 0] /A <</S /URI /URI ("+Dn.options.url+") >>";else if(Dn.options.pageNumber)switch(Hn="<</Type /Annot /Subtype /Link "+Qn+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Dn.options.pageNumber).objId+" 0 R",Dn.options.magFactor=Dn.options.magFactor||"XYZ",Dn.options.magFactor){case"Fit":Hn+=" /Fit]";break;case"FitH":Hn+=" /FitH "+Dn.options.top+"]";break;case"FitV":Dn.options.left=Dn.options.left||0,Hn+=" /FitV "+Dn.options.left+"]";break;case"XYZ":default:var rr=Vn(Dn.options.top);Dn.options.left=Dn.options.left||0,void 0===Dn.options.zoom&&(Dn.options.zoom=0),Hn+=" /XYZ "+Dn.options.left+" "+rr+" "+Dn.options.zoom+"]"}""!=Hn&&(Hn+=" >>",this.internal.write(Hn))}this.internal.write("]")}}]),Tn.createAnnotation=function(Tn){var Un=this.internal.getCurrentPageInfo();switch(Tn.type){case"link":this.link(Tn.bounds.x,Tn.bounds.y,Tn.bounds.w,Tn.bounds.h,Tn);break;case"text":case"freetext":Un.pageContext.annotations.push(Tn)}},Tn.link=function(Tn,Un,Dn,Qn,Hn){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:Tn,y:Un,w:Dn,h:Qn,options:Hn,type:"link"})},Tn.textWithLink=function(Tn,Un,Dn,Qn){var Hn=this.getTextWidth(Tn),Gn=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(Tn,Un,Dn,Qn),Dn+=.2*Gn,this.link(Un,Dn-Gn,Hn,Gn,Qn),Hn},Tn.getTextWidth=function(Tn){var Un=this.internal.getFontSize();return this.getStringUnitWidth(Tn)*Un/this.internal.scaleFactor}}(g.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){var Un={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]},Dn={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}},Qn={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Hn=[1570,1571,1573,1575];Tn.__arabicParser__={};var Gn=Tn.__arabicParser__.isInArabicSubstitutionA=function(Tn){return void 0!==Un[Tn.charCodeAt(0)]},Vn=Tn.__arabicParser__.isArabicLetter=function(Tn){return"string"==typeof Tn&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Tn)},zn=Tn.__arabicParser__.isArabicEndLetter=function(Tn){return Vn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length<=2},Kn=Tn.__arabicParser__.isArabicAlfLetter=function(Tn){return Vn(Tn)&&Hn.indexOf(Tn.charCodeAt(0))>=0};Tn.__arabicParser__.arabicLetterHasIsolatedForm=function(Tn){return Vn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length>=1};var $n=Tn.__arabicParser__.arabicLetterHasFinalForm=function(Tn){return Vn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length>=2};Tn.__arabicParser__.arabicLetterHasInitialForm=function(Tn){return Vn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length>=3};var Wn=Tn.__arabicParser__.arabicLetterHasMedialForm=function(Tn){return Vn(Tn)&&Gn(Tn)&&4==Un[Tn.charCodeAt(0)].length},Xn=Tn.__arabicParser__.resolveLigatures=function(Tn){var Un=0,Qn=Dn,Hn="",Gn=0;for(Un=0;Un<Tn.length;Un+=1)void 0!==Qn[Tn.charCodeAt(Un)]?(Gn++,"number"==typeof(Qn=Qn[Tn.charCodeAt(Un)])&&(Hn+=String.fromCharCode(Qn),Qn=Dn,Gn=0),Un===Tn.length-1&&(Qn=Dn,Hn+=Tn.charAt(Un-(Gn-1)),Un-=Gn-1,Gn=0)):(Qn=Dn,Hn+=Tn.charAt(Un-Gn),Un-=Gn,Gn=0);return Hn};Tn.__arabicParser__.isArabicDiacritic=function(Tn){return void 0!==Tn&&void 0!==Qn[Tn.charCodeAt(0)]};var Yn=Tn.__arabicParser__.getCorrectForm=function(Tn,Un,Dn){return Vn(Tn)?!1===Gn(Tn)?-1:!$n(Tn)||!Vn(Un)&&!Vn(Dn)||!Vn(Dn)&&zn(Un)||zn(Tn)&&!Vn(Un)||zn(Tn)&&Kn(Un)||zn(Tn)&&zn(Un)?0:Wn(Tn)&&Vn(Un)&&!zn(Un)&&Vn(Dn)&&$n(Dn)?3:zn(Tn)||!Vn(Dn)?1:2:-1},Jn=function d(Tn){var Dn=0,Qn=0,Hn=0,Gn="",zn="",Kn="",$n=(Tn=Tn||"").split("\\s+"),Wn=[];for(Dn=0;Dn<$n.length;Dn+=1){for(Wn.push(""),Qn=0;Qn<$n[Dn].length;Qn+=1)Gn=$n[Dn][Qn],zn=$n[Dn][Qn-1],Kn=$n[Dn][Qn+1],Vn(Gn)?(Hn=Yn(Gn,zn,Kn),Wn[Dn]+=-1!==Hn?String.fromCharCode(Un[Gn.charCodeAt(0)][Hn]):Gn):Wn[Dn]+=Gn;Wn[Dn]=Xn(Wn[Dn])}return Wn.join(" ")},Zn=Tn.__arabicParser__.processArabic=Tn.processArabic=function(){var Tn,Un="string"==typeof arguments[0]?arguments[0]:arguments[0].text,Dn=[];if(Array.isArray(Un)){var Qn=0;for(Dn=[],Qn=0;Qn<Un.length;Qn+=1)Array.isArray(Un[Qn])?Dn.push([Jn(Un[Qn][0]),Un[Qn][1],Un[Qn][2]]):Dn.push([Jn(Un[Qn])]);Tn=Dn}else Tn=Jn(Un);return"string"==typeof arguments[0]?Tn:(arguments[0].text=Tn,arguments[0])};Tn.events.push(["preProcessText",Zn])}(g.API),g.API.autoPrint=function(Tn){var Un;switch((Tn=Tn||{}).variant=Tn.variant||"non-conform",Tn.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){Un=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 "+Un+" 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(Tn){var Un=function e(){var Tn=void 0;Object.defineProperty(this,"pdf",{get:function get(){return Tn},set:function set(Un){Tn=Un}});var e=150;Object.defineProperty(this,"width",{get:function get(){return e},set:function set(Tn){e=isNaN(Tn)||!1===Number.isInteger(Tn)||Tn<0?150:Tn,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var Un=300;Object.defineProperty(this,"height",{get:function get(){return Un},set:function set(Tn){Un=isNaN(Tn)||!1===Number.isInteger(Tn)||Tn<0?300:Tn,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Un+1)}});var Dn=[];Object.defineProperty(this,"childNodes",{get:function get(){return Dn},set:function set(Tn){Dn=Tn}});var Qn={};Object.defineProperty(this,"style",{get:function get(){return Qn},set:function set(Tn){Qn=Tn}}),Object.defineProperty(this,"parentNode",{})};Un.prototype.getContext=function(Tn,Un){var Dn;if("2d"!==(Tn=Tn||"2d"))return null;for(Dn in Un)this.pdf.context2d.hasOwnProperty(Dn)&&(this.pdf.context2d[Dn]=Un[Dn]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Un.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Tn.events.push(["initialized",function(){this.canvas=new Un,this.canvas.pdf=this}])}(g.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(Tn){var Un={left:0,top:0,bottom:0,right:0},Dn=!1,Qn=function r(){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({},Un),this.internal.__cell__.margins.width=this.getPageWidth(),Hn.call(this))},Hn=function i(){this.internal.__cell__.lastCell=new Gn,this.internal.__cell__.pages=1},Gn=function a(){var Tn=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return Tn},set:function set(Un){Tn=Un}});var Un=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return Un},set:function set(Tn){Un=Tn}});var Dn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function get(){return Dn},set:function set(Tn){Dn=Tn}});var Qn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function get(){return Qn},set:function set(Tn){Qn=Tn}});var Hn=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function get(){return Hn},set:function set(Tn){Hn=Tn}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function get(){return a},set:function set(Tn){a=Tn}});var Gn=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function get(){return Gn},set:function set(Tn){Gn=Tn}}),this};Gn.prototype.clone=function(){return new Gn(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Gn.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Tn.setHeaderFunction=function(Tn){return Qn.call(this),this.internal.__cell__.headerFunction="function"==typeof Tn?Tn:void 0,this},Tn.getTextDimensions=function(Tn,Un){Qn.call(this);var Dn=(Un=Un||{}).fontSize||this.getFontSize(),Hn=Un.font||this.getFont(),Gn=Un.scaleFactor||this.internal.scaleFactor,Vn=0,zn=0,Kn=0;if(!Array.isArray(Tn)&&"string"!=typeof Tn){if("number"!=typeof Tn)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Tn=String(Tn)}var $n=Un.maxWidth;$n>0?"string"==typeof Tn?Tn=this.splitTextToSize(Tn,$n):"[object Array]"===Object.prototype.toString.call(Tn)&&(Tn=this.splitTextToSize(Tn.join(" "),$n)):Tn=Array.isArray(Tn)?Tn:[Tn];for(var Wn=0;Wn<Tn.length;Wn++)Vn<(Kn=this.getStringUnitWidth(Tn[Wn],{font:Hn})*Dn)&&(Vn=Kn);return 0!==Vn&&(zn=Tn.length),{w:Vn/=Gn,h:Math.max((zn*Dn*this.getLineHeightFactor()-Dn*(this.getLineHeightFactor()-1))/Gn,0)}},Tn.cellAddPage=function(){Qn.call(this),this.addPage();var Tn=this.internal.__cell__.margins||Un;return this.internal.__cell__.lastCell=new Gn(Tn.left,Tn.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Vn=Tn.cell=function(){var Tn;Tn=arguments[0]instanceof Gn?arguments[0]:new Gn(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Qn.call(this);var Hn=this.internal.__cell__.lastCell,Vn=this.internal.__cell__.padding,zn=this.internal.__cell__.margins||Un,Kn=this.internal.__cell__.tableHeaderRow,$n=this.internal.__cell__.printHeaders;return void 0!==Hn.lineNumber&&(Hn.lineNumber===Tn.lineNumber?(Tn.x=(Hn.x||0)+(Hn.width||0),Tn.y=Hn.y||0):Hn.y+Hn.height+Tn.height+zn.bottom>this.getPageHeight()?(this.cellAddPage(),Tn.y=zn.top,$n&&Kn&&(this.printHeaderRow(Tn.lineNumber,!0),Tn.y+=Kn[0].height)):Tn.y=Hn.y+Hn.height||Tn.y),void 0!==Tn.text[0]&&(this.rect(Tn.x,Tn.y,Tn.width,Tn.height,!0===Dn?"FD":void 0),"right"===Tn.align?this.text(Tn.text,Tn.x+Tn.width-Vn,Tn.y+Vn,{align:"right",baseline:"top"}):"center"===Tn.align?this.text(Tn.text,Tn.x+Tn.width/2,Tn.y+Vn,{align:"center",baseline:"top",maxWidth:Tn.width-Vn-Vn}):this.text(Tn.text,Tn.x+Vn,Tn.y+Vn,{align:"left",baseline:"top",maxWidth:Tn.width-Vn-Vn})),this.internal.__cell__.lastCell=Tn,this};Tn.table=function(Tn,Dn,Kn,$n,Wn){if(Qn.call(this),!Kn)throw new Error("No data for PDF table.");var Xn,Yn,Jn,Zn,er=[],tr=[],nr=[],rr={},ir={},or=[],ar=[],sr=(Wn=Wn||{}).autoSize||!1,lr=!1!==Wn.printHeaders,cr=Wn.css&&void 0!==Wn.css["font-size"]?16*Wn.css["font-size"]:Wn.fontSize||12,ur=Wn.margins||Object.assign({width:this.getPageWidth()},Un),dr="number"==typeof Wn.padding?Wn.padding:3,hr=Wn.headerBackgroundColor||"#c8c8c8";if(Hn.call(this),this.internal.__cell__.printHeaders=lr,this.internal.__cell__.margins=ur,this.internal.__cell__.table_font_size=cr,this.internal.__cell__.padding=dr,this.internal.__cell__.headerBackgroundColor=hr,this.setFontSize(cr),null==$n)tr=er=Object.keys(Kn[0]),nr=er.map((function(){return"left"}));else if(Array.isArray($n)&&"object"==_typeof($n[0]))for(er=$n.map((function(Tn){return Tn.name})),tr=$n.map((function(Tn){return Tn.prompt||Tn.name||""})),nr=er.map((function(Tn){return Tn.align||"left"})),Xn=0;Xn<$n.length;Xn+=1)ir[$n[Xn].name]=$n[Xn].width*(19.049976/25.4);else Array.isArray($n)&&"string"==typeof $n[0]&&(tr=er=$n,nr=er.map((function(){return"left"})));if(sr)for(Xn=0;Xn<er.length;Xn+=1){for(rr[Zn=er[Xn]]=Kn.map((function(Tn){return Tn[Zn]})),this.setFont(void 0,"bold"),or.push(this.getTextDimensions(tr[Xn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Yn=rr[Zn],this.setFont(void 0,"normal"),Jn=0;Jn<Yn.length;Jn+=1)or.push(this.getTextDimensions(Yn[Jn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ir[Zn]=Math.max.apply(null,or)+dr+dr,or=[]}if(lr){var pr={};for(Xn=0;Xn<er.length;Xn+=1)pr[er[Xn]]={},pr[er[Xn]].text=tr[Xn],pr[er[Xn]].align=nr[Xn];var gr=zn.call(this,pr,ir);ar=er.map((function(Un){return new Gn(Tn,Dn,ir[Un],gr,pr[Un].text,void 0,pr[Un].align)})),this.setTableHeaderRow(ar),this.printHeaderRow(1,!1)}var fr=$n.reduce((function(Tn,Un){return Tn[Un.name]=Un.align,Tn}),{});for(Xn=0;Xn<Kn.length;Xn+=1){var Ar=zn.call(this,Kn[Xn],ir);for(Jn=0;Jn<er.length;Jn+=1)Vn.call(this,new Gn(Tn,Dn,ir[er[Jn]],Ar,Kn[Xn][er[Jn]],Xn+2,fr[er[Jn]]))}return this.internal.__cell__.table_x=Tn,this.internal.__cell__.table_y=Dn,this};var zn=function s(Tn,Un){var Dn=this.internal.__cell__.padding,Qn=this.internal.__cell__.table_font_size,Hn=this.internal.scaleFactor;return Object.keys(Tn).map((function(Un){return[Un,Tn[Un]]})).map((function(Tn){var Un=Tn[0],Dn=Tn[1];return"object"==_typeof(Dn)?[Un,Dn.text]:[Un,Dn]})).map((function(Tn){var Qn=Tn[0],Hn=Tn[1];return this.splitTextToSize(Hn,Un[Qn]-Dn-Dn)}),this).map((function(Tn){return this.getLineHeightFactor()*Tn.length*Qn/Hn+Dn+Dn}),this).reduce((function(Tn,Un){return Math.max(Tn,Un)}),0)};Tn.setTableHeaderRow=function(Tn){Qn.call(this),this.internal.__cell__.tableHeaderRow=Tn},Tn.printHeaderRow=function(Tn,Un){if(Qn.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Hn;if(Dn=!0,"function"==typeof this.internal.__cell__.headerFunction){var zn=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Gn(zn[0],zn[1],zn[2],zn[3],void 0,-1)}this.setFont(void 0,"bold");for(var Kn=[],$n=0;$n<this.internal.__cell__.tableHeaderRow.length;$n+=1)Hn=this.internal.__cell__.tableHeaderRow[$n].clone(),Un&&(Hn.y=this.internal.__cell__.margins.top||0,Kn.push(Hn)),Hn.lineNumber=Tn,this.setFillColor(this.internal.__cell__.headerBackgroundColor),Vn.call(this,Hn);Kn.length>0&&this.setTableHeaderRow(Kn),this.setFont(void 0,"normal"),Dn=!1}}(g.API),function(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn=function f(Tn){return Tn=Tn||{},this.isStrokeTransparent=Tn.isStrokeTransparent||!1,this.strokeOpacity=Tn.strokeOpacity||1,this.strokeStyle=Tn.strokeStyle||"#000000",this.fillStyle=Tn.fillStyle||"#000000",this.isFillTransparent=Tn.isFillTransparent||!1,this.fillOpacity=Tn.fillOpacity||1,this.font=Tn.font||"10px sans-serif",this.textBaseline=Tn.textBaseline||"alphabetic",this.textAlign=Tn.textAlign||"left",this.lineWidth=Tn.lineWidth||1,this.lineJoin=Tn.lineJoin||"miter",this.lineCap=Tn.lineCap||"butt",this.path=Tn.path||[],this.transform=void 0!==Tn.transform?Tn.transform.clone():new Kn,this.globalCompositeOperation=Tn.globalCompositeOperation||"normal",this.globalAlpha=Tn.globalAlpha||1,this.clip_path=Tn.clip_path||[],this.currentPoint=Tn.currentPoint||new Vn,this.miterLimit=Tn.miterLimit||10,this.lastPoint=Tn.lastPoint||new Vn,this.ignoreClearRect="boolean"!=typeof Tn.ignoreClearRect||Tn.ignoreClearRect,this};Tn.events.push(["initialized",function(){this.context2d=new Xn(this),Un=this.internal.f2,Dn=this.internal.getCoordinateString,Qn=this.internal.getVerticalCoordinateString,Hn=this.internal.getHorizontalCoordinate,Gn=this.internal.getVerticalCoordinate,Vn=this.internal.Point,zn=this.internal.Rectangle,Kn=this.internal.Matrix,$n=new Wn}]);var Xn=function d(Tn){Object.defineProperty(this,"canvas",{get:function get(){return{parentNode:!1,style:!1}}});var Un=Tn;Object.defineProperty(this,"pdf",{get:function get(){return Un}});var Dn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function get(){return Dn},set:function set(Tn){Dn=Boolean(Tn)}});var Qn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function get(){return Qn},set:function set(Tn){Qn=Boolean(Tn)}});var Hn=0;Object.defineProperty(this,"posX",{get:function get(){return Hn},set:function set(Tn){isNaN(Tn)||(Hn=Tn)}});var Gn=0;Object.defineProperty(this,"posY",{get:function get(){return Gn},set:function set(Tn){isNaN(Tn)||(Gn=Tn)}});var Vn=!1;Object.defineProperty(this,"autoPaging",{get:function get(){return Vn},set:function set(Tn){Vn=Boolean(Tn)}});var zn=0;Object.defineProperty(this,"lastBreak",{get:function get(){return zn},set:function set(Tn){zn=Tn}});var Kn=[];Object.defineProperty(this,"pageBreaks",{get:function get(){return Kn},set:function set(Tn){Kn=Tn}}),Object.defineProperty(this,"ctx",{get:function get(){return $n},set:function set(Tn){Tn instanceof Wn&&($n=Tn)}}),Object.defineProperty(this,"path",{get:function get(){return $n.path},set:function set(Tn){$n.path=Tn}});var Xn=[];Object.defineProperty(this,"ctxStack",{get:function get(){return Xn},set:function set(Tn){Xn=Tn}}),Object.defineProperty(this,"fillStyle",{get:function get(){return this.ctx.fillStyle},set:function set(Tn){var Un;Un=Yn(Tn),this.ctx.fillStyle=Un.style,this.ctx.isFillTransparent=0===Un.a,this.ctx.fillOpacity=Un.a,this.pdf.setFillColor(Un.r,Un.g,Un.b,{a:Un.a}),this.pdf.setTextColor(Un.r,Un.g,Un.b,{a:Un.a})}}),Object.defineProperty(this,"strokeStyle",{get:function get(){return this.ctx.strokeStyle},set:function set(Tn){var Un=Yn(Tn);this.ctx.strokeStyle=Un.style,this.ctx.isStrokeTransparent=0===Un.a,this.ctx.strokeOpacity=Un.a,0===Un.a?this.pdf.setDrawColor(255,255,255):(Un.a,this.pdf.setDrawColor(Un.r,Un.g,Un.b))}}),Object.defineProperty(this,"lineCap",{get:function get(){return this.ctx.lineCap},set:function set(Tn){-1!==["butt","round","square"].indexOf(Tn)&&(this.ctx.lineCap=Tn,this.pdf.setLineCap(Tn))}}),Object.defineProperty(this,"lineWidth",{get:function get(){return this.ctx.lineWidth},set:function set(Tn){isNaN(Tn)||(this.ctx.lineWidth=Tn,this.pdf.setLineWidth(Tn))}}),Object.defineProperty(this,"lineJoin",{get:function get(){return this.ctx.lineJoin},set:function set(Tn){-1!==["bevel","round","miter"].indexOf(Tn)&&(this.ctx.lineJoin=Tn,this.pdf.setLineJoin(Tn))}}),Object.defineProperty(this,"miterLimit",{get:function get(){return this.ctx.miterLimit},set:function set(Tn){isNaN(Tn)||(this.ctx.miterLimit=Tn,this.pdf.setMiterLimit(Tn))}}),Object.defineProperty(this,"textBaseline",{get:function get(){return this.ctx.textBaseline},set:function set(Tn){this.ctx.textBaseline=Tn}}),Object.defineProperty(this,"textAlign",{get:function get(){return this.ctx.textAlign},set:function set(Tn){-1!==["right","end","center","left","start"].indexOf(Tn)&&(this.ctx.textAlign=Tn)}}),Object.defineProperty(this,"font",{get:function get(){return this.ctx.font},set:function set(Tn){var Un;if(this.ctx.font=Tn,null!==(Un=/^\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(Tn))){var Dn=Un[1],Qn=(Un[2],Un[3]),Hn=Un[4],Gn=(Un[5],Un[6]),Vn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Hn)[2];Hn="px"===Vn?Math.floor(parseFloat(Hn)*this.pdf.internal.scaleFactor):"em"===Vn?Math.floor(parseFloat(Hn)*this.pdf.getFontSize()):Math.floor(parseFloat(Hn)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Hn);var zn="";("bold"===Qn||parseInt(Qn,10)>=700||"bold"===Dn)&&(zn="bold"),"italic"===Dn&&(zn+="italic"),0===zn.length&&(zn="normal");for(var Kn="",$n=Gn.replace(/"|'/g,"").split(/\s*,\s*/),Wn={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"},Xn=0;Xn<$n.length;Xn++){if(void 0!==this.pdf.internal.getFont($n[Xn],zn,{noFallback:!0,disableWarning:!0})){Kn=$n[Xn];break}if("bolditalic"===zn&&void 0!==this.pdf.internal.getFont($n[Xn],"bold",{noFallback:!0,disableWarning:!0}))Kn=$n[Xn],zn="bold";else if(void 0!==this.pdf.internal.getFont($n[Xn],"normal",{noFallback:!0,disableWarning:!0})){Kn=$n[Xn],zn="normal";break}}if(""===Kn)for(var Yn=0;Yn<$n.length;Yn++)if(Wn[$n[Yn]]){Kn=Wn[$n[Yn]];break}Kn=""===Kn?"Times":Kn,this.pdf.setFont(Kn,zn)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function get(){return this.ctx.globalCompositeOperation},set:function set(Tn){this.ctx.globalCompositeOperation=Tn}}),Object.defineProperty(this,"globalAlpha",{get:function get(){return this.ctx.globalAlpha},set:function set(Tn){this.ctx.globalAlpha=Tn}}),Object.defineProperty(this,"ignoreClearRect",{get:function get(){return this.ctx.ignoreClearRect},set:function set(Tn){this.ctx.ignoreClearRect=Boolean(Tn)}})};Xn.prototype.fill=function(){ir.call(this,"fill",!1)},Xn.prototype.stroke=function(){ir.call(this,"stroke",!1)},Xn.prototype.beginPath=function(){this.path=[{type:"begin"}]},Xn.prototype.moveTo=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw FF.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Dn=this.ctx.transform.applyToPoint(new Vn(Tn,Un));this.path.push({type:"mt",x:Dn.x,y:Dn.y}),this.ctx.lastPoint=new Vn(Tn,Un)},Xn.prototype.closePath=function(){var Tn=new Vn(0,0),Un=0;for(Un=this.path.length-1;-1!==Un;Un--)if("begin"===this.path[Un].type&&"object"==_typeof(this.path[Un+1])&&"number"==typeof this.path[Un+1].x){Tn=new Vn(this.path[Un+1].x,this.path[Un+1].y),this.path.push({type:"lt",x:Tn.x,y:Tn.y});break}"object"==_typeof(this.path[Un+2])&&"number"==typeof this.path[Un+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[Un+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new Vn(Tn.x,Tn.y)},Xn.prototype.lineTo=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw FF.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Dn=this.ctx.transform.applyToPoint(new Vn(Tn,Un));this.path.push({type:"lt",x:Dn.x,y:Dn.y}),this.ctx.lastPoint=new Vn(Dn.x,Dn.y)},Xn.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ir.call(this,null,!0)},Xn.prototype.quadraticCurveTo=function(Tn,Un,Dn,Qn){if(isNaN(Dn)||isNaN(Qn)||isNaN(Tn)||isNaN(Un))throw FF.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Hn=this.ctx.transform.applyToPoint(new Vn(Dn,Qn)),Gn=this.ctx.transform.applyToPoint(new Vn(Tn,Un));this.path.push({type:"qct",x1:Gn.x,y1:Gn.y,x:Hn.x,y:Hn.y}),this.ctx.lastPoint=new Vn(Hn.x,Hn.y)},Xn.prototype.bezierCurveTo=function(Tn,Un,Dn,Qn,Hn,Gn){if(isNaN(Hn)||isNaN(Gn)||isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn))throw FF.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var zn=this.ctx.transform.applyToPoint(new Vn(Hn,Gn)),Kn=this.ctx.transform.applyToPoint(new Vn(Tn,Un)),$n=this.ctx.transform.applyToPoint(new Vn(Dn,Qn));this.path.push({type:"bct",x1:Kn.x,y1:Kn.y,x2:$n.x,y2:$n.y,x:zn.x,y:zn.y}),this.ctx.lastPoint=new Vn(zn.x,zn.y)},Xn.prototype.arc=function(Tn,Un,Dn,Qn,Hn,Gn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn)||isNaN(Hn))throw FF.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Gn=Boolean(Gn),!this.ctx.transform.isIdentity){var zn=this.ctx.transform.applyToPoint(new Vn(Tn,Un));Tn=zn.x,Un=zn.y;var Kn=this.ctx.transform.applyToPoint(new Vn(0,Dn)),$n=this.ctx.transform.applyToPoint(new Vn(0,0));Dn=Math.sqrt(Math.pow(Kn.x-$n.x,2)+Math.pow(Kn.y-$n.y,2))}Math.abs(Hn-Qn)>=2*Math.PI&&(Qn=0,Hn=2*Math.PI),this.path.push({type:"arc",x:Tn,y:Un,radius:Dn,startAngle:Qn,endAngle:Hn,counterclockwise:Gn})},Xn.prototype.arcTo=function(Tn,Un,Dn,Qn,Hn){throw new Error("arcTo not implemented.")},Xn.prototype.rect=function(Tn,Un,Dn,Qn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn))throw FF.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Tn,Un),this.lineTo(Tn+Dn,Un),this.lineTo(Tn+Dn,Un+Qn),this.lineTo(Tn,Un+Qn),this.lineTo(Tn,Un),this.lineTo(Tn+Dn,Un),this.lineTo(Tn,Un)},Xn.prototype.fillRect=function(Tn,Un,Dn,Qn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn))throw FF.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Jn.call(this)){var Hn={};"butt"!==this.lineCap&&(Hn.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(Hn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Tn,Un,Dn,Qn),this.fill(),Hn.hasOwnProperty("lineCap")&&(this.lineCap=Hn.lineCap),Hn.hasOwnProperty("lineJoin")&&(this.lineJoin=Hn.lineJoin)}},Xn.prototype.strokeRect=function(Tn,Un,Dn,Qn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn))throw FF.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Zn.call(this)||(this.beginPath(),this.rect(Tn,Un,Dn,Qn),this.stroke())},Xn.prototype.clearRect=function(Tn,Un,Dn,Qn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn))throw FF.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Tn,Un,Dn,Qn))},Xn.prototype.save=function(Tn){Tn="boolean"!=typeof Tn||Tn;for(var Un=this.pdf.internal.getCurrentPageInfo().pageNumber,Dn=0;Dn<this.pdf.internal.getNumberOfPages();Dn++)this.pdf.setPage(Dn+1),this.pdf.internal.out("q");if(this.pdf.setPage(Un),Tn){this.ctx.fontSize=this.pdf.internal.getFontSize();var Qn=new Wn(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Qn}},Xn.prototype.restore=function(Tn){Tn="boolean"!=typeof Tn||Tn;for(var Un=this.pdf.internal.getCurrentPageInfo().pageNumber,Dn=0;Dn<this.pdf.internal.getNumberOfPages();Dn++)this.pdf.setPage(Dn+1),this.pdf.internal.out("Q");this.pdf.setPage(Un),Tn&&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)},Xn.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Yn=function p(Tn){var Un,Dn,Qn,Hn;if(!0===Tn.isCanvasGradient&&(Tn=Tn.getColor()),!Tn)return{r:0,g:0,b:0,a:0,style:Tn};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Tn))Un=0,Dn=0,Qn=0,Hn=0;else{var Gn=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Tn);if(null!==Gn)Un=parseInt(Gn[1]),Dn=parseInt(Gn[2]),Qn=parseInt(Gn[3]),Hn=1;else if(null!==(Gn=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Tn)))Un=parseInt(Gn[1]),Dn=parseInt(Gn[2]),Qn=parseInt(Gn[3]),Hn=parseFloat(Gn[4]);else{if(Hn=1,"string"==typeof Tn&&"#"!==Tn.charAt(0)){var Vn=new c$2(Tn);Tn=Vn.ok?Vn.toHex():"#000000"}4===Tn.length?(Un=Tn.substring(1,2),Un+=Un,Dn=Tn.substring(2,3),Dn+=Dn,Qn=Tn.substring(3,4),Qn+=Qn):(Un=Tn.substring(1,3),Dn=Tn.substring(3,5),Qn=Tn.substring(5,7)),Un=parseInt(Un,16),Dn=parseInt(Dn,16),Qn=parseInt(Qn,16)}}return{r:Un,g:Dn,b:Qn,a:Hn,style:Tn}},Jn=function g(){return this.ctx.isFillTransparent||0==this.globalAlpha},Zn=function m(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};Xn.prototype.fillText=function(Tn,Un,Dn,Qn){if(isNaN(Un)||isNaN(Dn)||"string"!=typeof Tn)throw FF.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Qn=isNaN(Qn)?void 0:Qn,!Jn.call(this)){Dn=ar.call(this,Dn);var Hn=mr(this.ctx.transform.rotation),Gn=this.ctx.transform.scaleX;dr.call(this,{text:Tn,x:Un,y:Dn,scale:Gn,angle:Hn,align:this.textAlign,maxWidth:Qn})}},Xn.prototype.strokeText=function(Tn,Un,Dn,Qn){if(isNaN(Un)||isNaN(Dn)||"string"!=typeof Tn)throw FF.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Zn.call(this)){Qn=isNaN(Qn)?void 0:Qn,Dn=ar.call(this,Dn);var Hn=mr(this.ctx.transform.rotation),Gn=this.ctx.transform.scaleX;dr.call(this,{text:Tn,x:Un,y:Dn,scale:Gn,renderingMode:"stroke",angle:Hn,align:this.textAlign,maxWidth:Qn})}},Xn.prototype.measureText=function(Tn){if("string"!=typeof Tn)throw FF.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Un=this.pdf,Dn=this.pdf.internal.scaleFactor,Qn=Un.internal.getFontSize(),Hn=Un.getStringUnitWidth(Tn)*Qn/Un.internal.scaleFactor,Gn=function o(Tn){var Un=(Tn=Tn||{}).width||0;return Object.defineProperty(this,"width",{get:function get(){return Un}}),this};return new Gn({width:Hn*=Math.round(96*Dn/72*1e4)/1e4})},Xn.prototype.scale=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw FF.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Dn=new Kn(Tn,0,0,Un,0,0);this.ctx.transform=this.ctx.transform.multiply(Dn)},Xn.prototype.rotate=function(Tn){if(isNaN(Tn))throw FF.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Un=new Kn(Math.cos(Tn),Math.sin(Tn),-Math.sin(Tn),Math.cos(Tn),0,0);this.ctx.transform=this.ctx.transform.multiply(Un)},Xn.prototype.translate=function(Tn,Un){if(isNaN(Tn)||isNaN(Un))throw FF.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Dn=new Kn(1,0,0,1,Tn,Un);this.ctx.transform=this.ctx.transform.multiply(Dn)},Xn.prototype.transform=function(Tn,Un,Dn,Qn,Hn,Gn){if(isNaN(Tn)||isNaN(Un)||isNaN(Dn)||isNaN(Qn)||isNaN(Hn)||isNaN(Gn))throw FF.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Vn=new Kn(Tn,Un,Dn,Qn,Hn,Gn);this.ctx.transform=this.ctx.transform.multiply(Vn)},Xn.prototype.setTransform=function(Tn,Un,Dn,Qn,Hn,Gn){Tn=isNaN(Tn)?1:Tn,Un=isNaN(Un)?0:Un,Dn=isNaN(Dn)?0:Dn,Qn=isNaN(Qn)?1:Qn,Hn=isNaN(Hn)?0:Hn,Gn=isNaN(Gn)?0:Gn,this.ctx.transform=new Kn(Tn,Un,Dn,Qn,Hn,Gn)},Xn.prototype.drawImage=function(Tn,Un,Dn,Qn,Hn,Gn,Vn,$n,Wn){var Xn=this.pdf.getImageProperties(Tn),Yn=1,Jn=1,Zn=1,tr=1;void 0!==Qn&&void 0!==$n&&(Zn=$n/Qn,tr=Wn/Hn,Yn=Xn.width/Qn*$n/Qn,Jn=Xn.height/Hn*Wn/Hn),void 0===Gn&&(Gn=Un,Vn=Dn,Un=0,Dn=0),void 0!==Qn&&void 0===$n&&($n=Qn,Wn=Hn),void 0===Qn&&void 0===$n&&($n=Xn.width,Wn=Xn.height);for(var ir,ar=this.ctx.transform.decompose(),sr=mr(ar.rotate.shx),lr=new Kn,cr=(lr=(lr=(lr=lr.multiply(ar.translate)).multiply(ar.skew)).multiply(ar.scale)).applyToRectangle(new zn(Gn-Un*Zn,Vn-Dn*tr,Qn*Yn,Hn*Jn)),ur=er.call(this,cr),dr=[],hr=0;hr<ur.length;hr+=1)-1===dr.indexOf(ur[hr])&&dr.push(ur[hr]);if(rr(dr),this.autoPaging)for(var pr=dr[0],gr=dr[dr.length-1],fr=pr;fr<gr+1;fr++){if(this.pdf.setPage(fr),0!==this.ctx.clip_path.length){var Ar=this.path;ir=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=nr(ir,this.posX,-1*this.pdf.internal.pageSize.height*(fr-1)+this.posY),or.call(this,"fill",!0),this.path=Ar}var vr=JSON.parse(JSON.stringify(cr));vr=nr([vr],this.posX,-1*this.pdf.internal.pageSize.height*(fr-1)+this.posY)[0],this.pdf.addImage(Tn,"JPEG",vr.x,vr.y,vr.w,vr.h,null,null,sr)}else this.pdf.addImage(Tn,"JPEG",cr.x,cr.y,cr.w,cr.h,null,null,sr)};var er=function v(Tn,Un,Dn){var Qn=[];switch(Un=Un||this.pdf.internal.pageSize.width,Dn=Dn||this.pdf.internal.pageSize.height,Tn.type){default:case"mt":case"lt":Qn.push(Math.floor((Tn.y+this.posY)/Dn)+1);break;case"arc":Qn.push(Math.floor((Tn.y+this.posY-Tn.radius)/Dn)+1),Qn.push(Math.floor((Tn.y+this.posY+Tn.radius)/Dn)+1);break;case"qct":var Hn=vr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Tn.x1,Tn.y1,Tn.x,Tn.y);Qn.push(Math.floor(Hn.y/Dn)+1),Qn.push(Math.floor((Hn.y+Hn.h)/Dn)+1);break;case"bct":var Gn=yr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Tn.x1,Tn.y1,Tn.x2,Tn.y2,Tn.x,Tn.y);Qn.push(Math.floor(Gn.y/Dn)+1),Qn.push(Math.floor((Gn.y+Gn.h)/Dn)+1);break;case"rect":Qn.push(Math.floor((Tn.y+this.posY)/Dn)+1),Qn.push(Math.floor((Tn.y+Tn.h+this.posY)/Dn)+1)}for(var Vn=0;Vn<Qn.length;Vn+=1)for(;this.pdf.internal.getNumberOfPages()<Qn[Vn];)tr.call(this);return Qn},tr=function b(){var Tn=this.fillStyle,Un=this.strokeStyle,Dn=this.font,Qn=this.lineCap,Hn=this.lineWidth,Gn=this.lineJoin;this.pdf.addPage(),this.fillStyle=Tn,this.strokeStyle=Un,this.font=Dn,this.lineCap=Qn,this.lineWidth=Hn,this.lineJoin=Gn},nr=function y(Tn,Un,Dn){for(var Qn=0;Qn<Tn.length;Qn++)switch(Tn[Qn].type){case"bct":Tn[Qn].x2+=Un,Tn[Qn].y2+=Dn;case"qct":Tn[Qn].x1+=Un,Tn[Qn].y1+=Dn;case"mt":case"lt":case"arc":default:Tn[Qn].x+=Un,Tn[Qn].y+=Dn}return Tn},rr=function w(Tn){return Tn.sort((function(Tn,Un){return Tn-Un}))},ir=function N(Tn,Un){for(var Dn,Qn,Hn=this.fillStyle,Gn=this.strokeStyle,Vn=this.lineCap,zn=this.lineWidth,Kn=zn*this.ctx.transform.scaleX,$n=this.lineJoin,Wn=JSON.parse(JSON.stringify(this.path)),Xn=JSON.parse(JSON.stringify(this.path)),Yn=[],Jn=0;Jn<Xn.length;Jn++)if(void 0!==Xn[Jn].x)for(var Zn=er.call(this,Xn[Jn]),ir=0;ir<Zn.length;ir+=1)-1===Yn.indexOf(Zn[ir])&&Yn.push(Zn[ir]);for(var ar=0;ar<Yn.length;ar++)for(;this.pdf.internal.getNumberOfPages()<Yn[ar];)tr.call(this);if(rr(Yn),this.autoPaging)for(var N=Yn[0],sr=Yn[Yn.length-1],lr=N;lr<sr+1;lr++){if(this.pdf.setPage(lr),this.fillStyle=Hn,this.strokeStyle=Gn,this.lineCap=Vn,this.lineWidth=Kn,this.lineJoin=$n,0!==this.ctx.clip_path.length){var cr=this.path;Dn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=nr(Dn,this.posX,-1*this.pdf.internal.pageSize.height*(lr-1)+this.posY),or.call(this,Tn,!0),this.path=cr}Qn=JSON.parse(JSON.stringify(Wn)),this.path=nr(Qn,this.posX,-1*this.pdf.internal.pageSize.height*(lr-1)+this.posY),!1!==Un&&0!==lr||or.call(this,Tn,Un),this.lineWidth=zn}else this.lineWidth=Kn,or.call(this,Tn,Un),this.lineWidth=zn;this.path=Wn},or=function L(Tn,Un){if(("stroke"!==Tn||Un||!Zn.call(this))&&("stroke"===Tn||Un||!Jn.call(this))){for(var Dn,Qn,Hn=[],Gn=this.path,Vn=0;Vn<Gn.length;Vn++){var zn=Gn[Vn];switch(zn.type){case"begin":Hn.push({begin:!0});break;case"close":Hn.push({close:!0});break;case"mt":Hn.push({start:zn,deltas:[],abs:[]});break;case"lt":var Kn=Hn.length;if(!isNaN(Gn[Vn-1].x)&&(Dn=[zn.x-Gn[Vn-1].x,zn.y-Gn[Vn-1].y],Kn>0))for(;Kn>=0;Kn--)if(!0!==Hn[Kn-1].close&&!0!==Hn[Kn-1].begin){Hn[Kn-1].deltas.push(Dn),Hn[Kn-1].abs.push(zn);break}break;case"bct":Dn=[zn.x1-Gn[Vn-1].x,zn.y1-Gn[Vn-1].y,zn.x2-Gn[Vn-1].x,zn.y2-Gn[Vn-1].y,zn.x-Gn[Vn-1].x,zn.y-Gn[Vn-1].y],Hn[Hn.length-1].deltas.push(Dn);break;case"qct":var $n=Gn[Vn-1].x+2/3*(zn.x1-Gn[Vn-1].x),Wn=Gn[Vn-1].y+2/3*(zn.y1-Gn[Vn-1].y),Xn=zn.x+2/3*(zn.x1-zn.x),Yn=zn.y+2/3*(zn.y1-zn.y),er=zn.x,tr=zn.y;Dn=[$n-Gn[Vn-1].x,Wn-Gn[Vn-1].y,Xn-Gn[Vn-1].x,Yn-Gn[Vn-1].y,er-Gn[Vn-1].x,tr-Gn[Vn-1].y],Hn[Hn.length-1].deltas.push(Dn);break;case"arc":Hn.push({deltas:[],abs:[],arc:!0}),Array.isArray(Hn[Hn.length-1].abs)&&Hn[Hn.length-1].abs.push(zn)}}Qn=Un?null:"stroke"===Tn?"stroke":"fill";for(var nr=0;nr<Hn.length;nr++){if(Hn[nr].arc){for(var rr=Hn[nr].abs,ir=0;ir<rr.length;ir++){var or=rr[ir];"arc"===or.type?sr.call(this,or.x,or.y,or.radius,or.startAngle,or.endAngle,or.counterclockwise,void 0,Un):hr.call(this,or.x,or.y)}lr.call(this,Qn),this.pdf.internal.out("h")}if(!Hn[nr].arc&&!0!==Hn[nr].close&&!0!==Hn[nr].begin){var ar=Hn[nr].start.x,L=Hn[nr].start.y;pr.call(this,Hn[nr].deltas,ar,L)}}Qn&&lr.call(this,Qn),Un&&cr.call(this)}},ar=function x(Tn){var Un=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Dn=Un*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Tn-Dn;case"top":return Tn+Un-Dn;case"hanging":return Tn+Un-2*Dn;case"middle":return Tn+Un/2-Dn;case"ideographic":return Tn;case"alphabetic":default:return Tn}};Xn.prototype.createLinearGradient=function(){var Tn=function t(){};return Tn.colorStops=[],Tn.addColorStop=function(Tn,Un){this.colorStops.push([Tn,Un])},Tn.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},Tn.isCanvasGradient=!0,Tn},Xn.prototype.createPattern=function(){return this.createLinearGradient()},Xn.prototype.createRadialGradient=function(){return this.createLinearGradient()};var sr=function A(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){for(var Kn=fr.call(this,Dn,Qn,Hn,Gn),$n=0;$n<Kn.length;$n++){var Wn=Kn[$n];0===$n&&ur.call(this,Wn.x1+Tn,Wn.y1+Un),gr.call(this,Tn,Un,Wn.x2,Wn.y2,Wn.x3,Wn.y3,Wn.x4,Wn.y4)}zn?cr.call(this):lr.call(this,Vn)},lr=function _(Tn){switch(Tn){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},cr=function S(){this.pdf.clip(),this.pdf.discardPath()},ur=function P(Tn,Un){this.pdf.internal.out(Dn(Tn)+" "+Qn(Un)+" m")},dr=function k(Tn){var Un;switch(Tn.align){case"right":case"end":Un="right";break;case"center":Un="center";break;case"left":case"start":default:Un="left"}var Dn=this.ctx.transform.applyToPoint(new Vn(Tn.x,Tn.y)),Qn=this.ctx.transform.decompose(),Hn=new Kn;Hn=(Hn=(Hn=Hn.multiply(Qn.translate)).multiply(Qn.skew)).multiply(Qn.scale);for(var Gn,$n,Wn,Xn=this.pdf.getTextDimensions(Tn.text),Yn=this.ctx.transform.applyToRectangle(new zn(Tn.x,Tn.y,Xn.w,Xn.h)),Jn=Hn.applyToRectangle(new zn(Tn.x,Tn.y-Xn.h,Xn.w,Xn.h)),Zn=er.call(this,Jn),tr=[],ir=0;ir<Zn.length;ir+=1)-1===tr.indexOf(Zn[ir])&&tr.push(Zn[ir]);if(rr(tr),!0===this.autoPaging)for(var ar=tr[0],sr=tr[tr.length-1],lr=ar;lr<sr+1;lr++){if(this.pdf.setPage(lr),0!==this.ctx.clip_path.length){var cr=this.path;Gn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=nr(Gn,this.posX,-1*this.pdf.internal.pageSize.height*(lr-1)+this.posY),or.call(this,"fill",!0),this.path=cr}var ur=JSON.parse(JSON.stringify(Yn));ur=nr([ur],this.posX,-1*this.pdf.internal.pageSize.height*(lr-1)+this.posY)[0],Tn.scale>=.01&&($n=this.pdf.internal.getFontSize(),this.pdf.setFontSize($n*Tn.scale),Wn=this.lineWidth,this.lineWidth=Wn*Tn.scale),this.pdf.text(Tn.text,ur.x,ur.y,{angle:Tn.angle,align:Un,renderingMode:Tn.renderingMode,maxWidth:Tn.maxWidth}),Tn.scale>=.01&&(this.pdf.setFontSize($n),this.lineWidth=Wn)}else Tn.scale>=.01&&($n=this.pdf.internal.getFontSize(),this.pdf.setFontSize($n*Tn.scale),Wn=this.lineWidth,this.lineWidth=Wn*Tn.scale),this.pdf.text(Tn.text,Dn.x+this.posX,Dn.y+this.posY,{angle:Tn.angle,align:Un,renderingMode:Tn.renderingMode,maxWidth:Tn.maxWidth}),Tn.scale>=.01&&(this.pdf.setFontSize($n),this.lineWidth=Wn)},hr=function F(Tn,Un,Hn,Gn){Hn=Hn||0,Gn=Gn||0,this.pdf.internal.out(Dn(Tn+Hn)+" "+Qn(Un+Gn)+" l")},pr=function I(Tn,Un,Dn){return this.pdf.lines(Tn,Un,Dn,null,null)},gr=function C(Tn,Dn,Qn,Vn,zn,Kn,$n,Wn){this.pdf.internal.out([Un(Hn(Qn+Tn)),Un(Gn(Vn+Dn)),Un(Hn(zn+Tn)),Un(Gn(Kn+Dn)),Un(Hn($n+Tn)),Un(Gn(Wn+Dn)),"c"].join(" "))},fr=function j(Tn,Un,Dn,Qn){for(var Hn=2*Math.PI,Gn=Math.PI/2;Un>Dn;)Un-=Hn;var Vn=Math.abs(Dn-Un);Vn<Hn&&Qn&&(Vn=Hn-Vn);for(var zn=[],Kn=Qn?-1:1,$n=Un;Vn>1e-5;){var Wn=$n+Kn*Math.min(Vn,Gn);zn.push(Ar.call(this,Tn,$n,Wn)),Vn-=Math.abs(Wn-$n),$n=Wn}return zn},Ar=function B(Tn,Un,Dn){var Qn=(Dn-Un)/2,Hn=Tn*Math.cos(Qn),Gn=Tn*Math.sin(Qn),Vn=Hn,zn=-Gn,Kn=Vn*Vn+zn*zn,$n=Kn+Vn*Hn+zn*Gn,Wn=4/3*(Math.sqrt(2*Kn*$n)-$n)/(Vn*Gn-zn*Hn),Xn=Vn-Wn*zn,Yn=zn+Wn*Vn,Jn=Xn,Zn=-Yn,er=Qn+Un,tr=Math.cos(er),nr=Math.sin(er);return{x1:Tn*Math.cos(Un),y1:Tn*Math.sin(Un),x2:Xn*tr-Yn*nr,y2:Xn*nr+Yn*tr,x3:Jn*tr-Zn*nr,y3:Jn*nr+Zn*tr,x4:Tn*Math.cos(Dn),y4:Tn*Math.sin(Dn)}},mr=function O(Tn){return 180*Tn/Math.PI},vr=function M(Tn,Un,Dn,Qn,Hn,Gn){var Vn=Tn+.5*(Dn-Tn),Kn=Un+.5*(Qn-Un),$n=Hn+.5*(Dn-Hn),Wn=Gn+.5*(Qn-Gn),Xn=Math.min(Tn,Hn,Vn,$n),Yn=Math.max(Tn,Hn,Vn,$n),Jn=Math.min(Un,Gn,Kn,Wn),Zn=Math.max(Un,Gn,Kn,Wn);return new zn(Xn,Jn,Yn-Xn,Zn-Jn)},yr=function E(Tn,Un,Dn,Qn,Hn,Gn,Vn,Kn){var $n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr,ir,or,ar,sr,lr=Dn-Tn,cr=Qn-Un,ur=Hn-Dn,dr=Gn-Qn,hr=Vn-Hn,pr=Kn-Gn;for(Wn=0;Wn<41;Wn++)nr=(er=(Xn=Tn+($n=Wn/40)*lr)+$n*((Jn=Dn+$n*ur)-Xn))+$n*(Jn+$n*(Hn+$n*hr-Jn)-er),rr=(tr=(Yn=Un+$n*cr)+$n*((Zn=Qn+$n*dr)-Yn))+$n*(Zn+$n*(Gn+$n*pr-Zn)-tr),0==Wn?(ir=nr,or=rr,ar=nr,sr=rr):(ir=Math.min(ir,nr),or=Math.min(or,rr),ar=Math.max(ar,nr),sr=Math.max(sr,rr));return new zn(Math.round(ir),Math.round(or),Math.round(ar-ir),Math.round(sr-or))}}(g.API);
|
||
/**
|
||
* @license
|
||
Copyright (c) 2013 Gildas Lormeau. All rights reserved.
|
||
|
||
Redistribution and use in source and binary forms, with or without
|
||
modification, are permitted provided that the following conditions are met:
|
||
|
||
1. Redistributions of source code must retain the above copyright notice,
|
||
this list of conditions and the following disclaimer.
|
||
|
||
2. 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.
|
||
|
||
3. The names of the authors may not be used to endorse or promote products
|
||
derived from this software without specific prior written permission.
|
||
|
||
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 JCRAFT,
|
||
INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE 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.
|
||
*/
|
||
var IU=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function ft(){var Tn=this;function e(Tn,Un){var Dn=0;do{Dn|=1&Tn,Tn>>>=1,Dn<<=1}while(--Un>0);return Dn>>>1}Tn.build_tree=function(Un){var Dn,Qn,Hn,Gn=Tn.dyn_tree,Vn=Tn.stat_desc.static_tree,zn=Tn.stat_desc.elems,Kn=-1;for(Un.heap_len=0,Un.heap_max=573,Dn=0;Dn<zn;Dn++)0!==Gn[2*Dn]?(Un.heap[++Un.heap_len]=Kn=Dn,Un.depth[Dn]=0):Gn[2*Dn+1]=0;for(;Un.heap_len<2;)Gn[2*(Hn=Un.heap[++Un.heap_len]=Kn<2?++Kn:0)]=1,Un.depth[Hn]=0,Un.opt_len--,Vn&&(Un.static_len-=Vn[2*Hn+1]);for(Tn.max_code=Kn,Dn=Math.floor(Un.heap_len/2);Dn>=1;Dn--)Un.pqdownheap(Gn,Dn);Hn=zn;do{Dn=Un.heap[1],Un.heap[1]=Un.heap[Un.heap_len--],Un.pqdownheap(Gn,1),Qn=Un.heap[1],Un.heap[--Un.heap_max]=Dn,Un.heap[--Un.heap_max]=Qn,Gn[2*Hn]=Gn[2*Dn]+Gn[2*Qn],Un.depth[Hn]=Math.max(Un.depth[Dn],Un.depth[Qn])+1,Gn[2*Dn+1]=Gn[2*Qn+1]=Hn,Un.heap[1]=Hn++,Un.pqdownheap(Gn,1)}while(Un.heap_len>=2);Un.heap[--Un.heap_max]=Un.heap[1],function(Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn=Tn.dyn_tree,$n=Tn.stat_desc.static_tree,Wn=Tn.stat_desc.extra_bits,Xn=Tn.stat_desc.extra_base,Yn=Tn.stat_desc.max_length,Jn=0;for(Gn=0;Gn<=15;Gn++)Un.bl_count[Gn]=0;for(Kn[2*Un.heap[Un.heap_max]+1]=0,Dn=Un.heap_max+1;Dn<573;Dn++)(Gn=Kn[2*Kn[2*(Qn=Un.heap[Dn])+1]+1]+1)>Yn&&(Gn=Yn,Jn++),Kn[2*Qn+1]=Gn,Qn>Tn.max_code||(Un.bl_count[Gn]++,Vn=0,Qn>=Xn&&(Vn=Wn[Qn-Xn]),zn=Kn[2*Qn],Un.opt_len+=zn*(Gn+Vn),$n&&(Un.static_len+=zn*($n[2*Qn+1]+Vn)));if(0!==Jn){do{for(Gn=Yn-1;0===Un.bl_count[Gn];)Gn--;Un.bl_count[Gn]--,Un.bl_count[Gn+1]+=2,Un.bl_count[Yn]--,Jn-=2}while(Jn>0);for(Gn=Yn;0!==Gn;Gn--)for(Qn=Un.bl_count[Gn];0!==Qn;)(Hn=Un.heap[--Dn])>Tn.max_code||(Kn[2*Hn+1]!==Gn&&(Un.opt_len+=(Gn-Kn[2*Hn+1])*Kn[2*Hn],Kn[2*Hn+1]=Gn),Qn--)}}(Un),function(Tn,Un,Dn){var Qn,Hn,Gn,Vn=[],zn=0;for(Qn=1;Qn<=15;Qn++)Vn[Qn]=zn=zn+Dn[Qn-1]<<1;for(Hn=0;Hn<=Un;Hn++)0!==(Gn=Tn[2*Hn+1])&&(Tn[2*Hn]=e(Vn[Gn]++,Gn))}(Gn,Tn.max_code,Un.bl_count)}}function dt(Tn,Un,Dn,Qn,Hn){this.static_tree=Tn,this.extra_bits=Un,this.extra_base=Dn,this.elems=Qn,this.max_length=Hn}function pt(Tn,Un,Dn,Qn,Hn){this.good_length=Tn,this.max_lazy=Un,this.nice_length=Dn,this.max_chain=Qn,this.func=Hn}ft._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,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,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,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,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],ft.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],ft.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],ft.d_code=function(Tn){return Tn<256?IU[Tn]:IU[256+(Tn>>>7)]},ft.extra_lbits=[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],ft.extra_dbits=[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],ft.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ft.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],dt.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],dt.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],dt.static_l_desc=new dt(dt.static_ltree,ft.extra_lbits,257,286,15),dt.static_d_desc=new dt(dt.static_dtree,ft.extra_dbits,0,30,15),dt.static_bl_desc=new dt(null,ft.extra_blbits,0,19,7);var OU,FU,UU,MU=[new pt(0,0,0,0,0),new pt(4,4,8,4,1),new pt(4,5,16,8,1),new pt(4,6,32,32,1),new pt(4,4,16,16,2),new pt(8,16,32,32,2),new pt(8,16,128,128,2),new pt(8,32,128,256,2),new pt(32,128,258,1024,2),new pt(32,258,258,4096,2)],RU=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function wt(Tn,Un,Dn,Qn){var Hn=Tn[2*Un],Gn=Tn[2*Dn];return Hn<Gn||Hn===Gn&&Qn[Un]<=Qn[Dn]}function Nt(){var Tn,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,gr,fr,Ar,mr,vr,yr,_r,br,wr,xr,Sr,Cr,kr=this,Br=new ft,Er=new ft,Pr=new ft;function V(){var Tn;for(Tn=0;Tn<286;Tn++)fr[2*Tn]=0;for(Tn=0;Tn<30;Tn++)Ar[2*Tn]=0;for(Tn=0;Tn<19;Tn++)mr[2*Tn]=0;fr[512]=1,kr.opt_len=kr.static_len=0,_r=wr=0}function G(Tn,Un){var Dn,Qn,Hn=-1,Gn=Tn[1],Vn=0,zn=7,Kn=4;for(0===Gn&&(zn=138,Kn=3),Tn[2*(Un+1)+1]=65535,Dn=0;Dn<=Un;Dn++)Qn=Gn,Gn=Tn[2*(Dn+1)+1],++Vn<zn&&Qn===Gn||(Vn<Kn?mr[2*Qn]+=Vn:0!==Qn?(Qn!==Hn&&mr[2*Qn]++,mr[32]++):Vn<=10?mr[34]++:mr[36]++,Vn=0,Hn=Qn,0===Gn?(zn=138,Kn=3):Qn===Gn?(zn=6,Kn=3):(zn=7,Kn=4))}function Y(Tn){kr.pending_buf[kr.pending++]=Tn}function J(Tn){Y(255&Tn),Y(Tn>>>8&255)}function X(Tn,Un){var Dn,Qn=Un;Cr>16-Qn?(J(Sr|=(Dn=Tn)<<Cr&65535),Sr=Dn>>>16-Cr,Cr+=Qn-16):(Sr|=Tn<<Cr&65535,Cr+=Qn)}function K(Tn,Un){var Dn=2*Tn;X(65535&Un[Dn],65535&Un[Dn+1])}function Z(Tn,Un){var Dn,Qn,Hn=-1,Gn=Tn[1],Vn=0,zn=7,Kn=4;for(0===Gn&&(zn=138,Kn=3),Dn=0;Dn<=Un;Dn++)if(Qn=Gn,Gn=Tn[2*(Dn+1)+1],!(++Vn<zn&&Qn===Gn)){if(Vn<Kn)do{K(Qn,mr)}while(0!=--Vn);else 0!==Qn?(Qn!==Hn&&(K(Qn,mr),Vn--),K(16,mr),X(Vn-3,2)):Vn<=10?(K(17,mr),X(Vn-3,3)):(K(18,mr),X(Vn-11,7));Vn=0,Hn=Qn,0===Gn?(zn=138,Kn=3):Qn===Gn?(zn=6,Kn=3):(zn=7,Kn=4)}}function $(){16===Cr?(J(Sr),Sr=0,Cr=0):Cr>=8&&(Y(255&Sr),Sr>>>=8,Cr-=8)}function Q(Tn,Un){var Dn,Qn,Hn;if(kr.pending_buf[br+2*_r]=Tn>>>8&255,kr.pending_buf[br+2*_r+1]=255&Tn,kr.pending_buf[vr+_r]=255&Un,_r++,0===Tn?fr[2*Un]++:(wr++,Tn--,fr[2*(ft._length_code[Un]+256+1)]++,Ar[2*ft.d_code(Tn)]++),0==(8191&_r)&&dr>2){for(Dn=8*_r,Qn=or-tr,Hn=0;Hn<30;Hn++)Dn+=Ar[2*Hn]*(5+ft.extra_dbits[Hn]);if(Dn>>>=3,wr<Math.floor(_r/2)&&Dn<Math.floor(Qn/2))return!0}return _r===yr-1}function tt(Tn,Un){var Dn,Qn,Hn,Gn,Vn=0;if(0!==_r)do{Dn=kr.pending_buf[br+2*Vn]<<8&65280|255&kr.pending_buf[br+2*Vn+1],Qn=255&kr.pending_buf[vr+Vn],Vn++,0===Dn?K(Qn,Tn):(K((Hn=ft._length_code[Qn])+256+1,Tn),0!==(Gn=ft.extra_lbits[Hn])&&X(Qn-=ft.base_length[Hn],Gn),Dn--,K(Hn=ft.d_code(Dn),Un),0!==(Gn=ft.extra_dbits[Hn])&&X(Dn-=ft.base_dist[Hn],Gn))}while(Vn<_r);K(256,Tn),xr=Tn[513]}function et(){Cr>8?J(Sr):Cr>0&&Y(255&Sr),Sr=0,Cr=0}function nt(Tn,Un,Dn){X(0+(Dn?1:0),3),function(Tn,Un,Dn){et(),xr=8,J(Un),J(~Un),kr.pending_buf.set(zn.subarray(Tn,Tn+Un),kr.pending),kr.pending+=Un}(Tn,Un)}function it(Un){(function rt(Tn,Un,Dn){var Qn,Hn,Gn=0;dr>0?(Br.build_tree(kr),Er.build_tree(kr),Gn=function(){var Tn;for(G(fr,Br.max_code),G(Ar,Er.max_code),Pr.build_tree(kr),Tn=18;Tn>=3&&0===mr[2*ft.bl_order[Tn]+1];Tn--);return kr.opt_len+=3*(Tn+1)+5+5+4,Tn}(),Qn=kr.opt_len+3+7>>>3,(Hn=kr.static_len+3+7>>>3)<=Qn&&(Qn=Hn)):Qn=Hn=Un+5,Un+4<=Qn&&-1!==Tn?nt(Tn,Un,Dn):Hn===Qn?(X(2+(Dn?1:0),3),tt(dt.static_ltree,dt.static_dtree)):(X(4+(Dn?1:0),3),function(Tn,Un,Dn){var Qn;for(X(Tn-257,5),X(Un-1,5),X(Dn-4,4),Qn=0;Qn<Dn;Qn++)X(mr[2*ft.bl_order[Qn]+1],3);Z(fr,Tn-1),Z(Ar,Un-1)}(Br.max_code+1,Er.max_code+1,Gn+1),tt(fr,Ar)),V(),Dn&&et()})(tr>=0?tr:-1,or-tr,Un),tr=or,Tn.flush_pending()}function at(){var Un,Dn,Qn,Gn;do{if(0==(Gn=Kn-sr-or)&&0===or&&0===sr)Gn=Hn;else if(-1===Gn)Gn--;else if(or>=Hn+Hn-262){zn.set(zn.subarray(Hn,Hn+Hn),0),ar-=Hn,or-=Hn,tr-=Hn,Qn=Un=Yn;do{Dn=65535&Wn[--Qn],Wn[Qn]=Dn>=Hn?Dn-Hn:0}while(0!=--Un);Qn=Un=Hn;do{Dn=65535&$n[--Qn],$n[Qn]=Dn>=Hn?Dn-Hn:0}while(0!=--Un);Gn+=Hn}if(0===Tn.avail_in)return;Un=Tn.read_buf(zn,or+sr,Gn),(sr+=Un)>=3&&(Xn=((Xn=255&zn[or])<<er^255&zn[or+1])&Zn)}while(sr<262&&0!==Tn.avail_in)}function ot(Tn){var Un,Dn,Qn=cr,Gn=or,Kn=lr,Wn=or>Hn-262?or-(Hn-262):0,Xn=gr,Yn=Vn,Jn=or+258,Zn=zn[Gn+Kn-1],er=zn[Gn+Kn];lr>=pr&&(Qn>>=2),Xn>sr&&(Xn=sr);do{if(zn[(Un=Tn)+Kn]===er&&zn[Un+Kn-1]===Zn&&zn[Un]===zn[Gn]&&zn[++Un]===zn[Gn+1]){Gn+=2,Un++;do{}while(zn[++Gn]===zn[++Un]&&zn[++Gn]===zn[++Un]&&zn[++Gn]===zn[++Un]&&zn[++Gn]===zn[++Un]&&zn[++Gn]===zn[++Un]&&zn[++Gn]===zn[++Un]&&zn[++Gn]===zn[++Un]&&zn[++Gn]===zn[++Un]&&Gn<Jn);if(Dn=258-(Jn-Gn),Gn=Jn-258,Dn>Kn){if(ar=Tn,Kn=Dn,Dn>=Xn)break;Zn=zn[Gn+Kn-1],er=zn[Gn+Kn]}}}while((Tn=65535&$n[Tn&Yn])>Wn&&0!=--Qn);return Kn<=sr?Kn:sr}function st(Tn){return Tn.total_in=Tn.total_out=0,Tn.msg=null,kr.pending=0,kr.pending_out=0,Un=113,Qn=0,Br.dyn_tree=fr,Br.stat_desc=dt.static_l_desc,Er.dyn_tree=Ar,Er.stat_desc=dt.static_d_desc,Pr.dyn_tree=mr,Pr.stat_desc=dt.static_bl_desc,Sr=0,Cr=0,xr=8,V(),function(){var Tn;for(Kn=2*Hn,Wn[Yn-1]=0,Tn=0;Tn<Yn-1;Tn++)Wn[Tn]=0;ur=MU[dr].max_lazy,pr=MU[dr].good_length,gr=MU[dr].nice_length,cr=MU[dr].max_chain,or=0,tr=0,sr=0,nr=lr=2,ir=0,Xn=0}(),0}kr.depth=[],kr.bl_count=[],kr.heap=[],fr=[],Ar=[],mr=[],kr.pqdownheap=function(Tn,Un){for(var Dn=kr.heap,Qn=Dn[Un],Hn=Un<<1;Hn<=kr.heap_len&&(Hn<kr.heap_len&&wt(Tn,Dn[Hn+1],Dn[Hn],kr.depth)&&Hn++,!wt(Tn,Qn,Dn[Hn],kr.depth));)Dn[Un]=Dn[Hn],Un=Hn,Hn<<=1;Dn[Un]=Qn},kr.deflateInit=function(Tn,Un,Qn,Kn,Xn,tr){return Kn||(Kn=8),Xn||(Xn=8),tr||(tr=0),Tn.msg=null,-1===Un&&(Un=6),Xn<1||Xn>9||8!==Kn||Qn<9||Qn>15||Un<0||Un>9||tr<0||tr>2?-2:(Tn.dstate=kr,Vn=(Hn=1<<(Gn=Qn))-1,Zn=(Yn=1<<(Jn=Xn+7))-1,er=Math.floor((Jn+3-1)/3),zn=new Uint8Array(2*Hn),$n=[],Wn=[],yr=1<<Xn+6,kr.pending_buf=new Uint8Array(4*yr),Dn=4*yr,br=Math.floor(yr/2),vr=3*yr,dr=Un,hr=tr,st(Tn))},kr.deflateEnd=function(){return 42!==Un&&113!==Un&&666!==Un?-2:(kr.pending_buf=null,Wn=null,$n=null,zn=null,kr.dstate=null,113===Un?-3:0)},kr.deflateParams=function(Tn,Un,Dn){var Qn=0;return-1===Un&&(Un=6),Un<0||Un>9||Dn<0||Dn>2?-2:(MU[dr].func!==MU[Un].func&&0!==Tn.total_in&&(Qn=Tn.deflate(1)),dr!==Un&&(ur=MU[dr=Un].max_lazy,pr=MU[dr].good_length,gr=MU[dr].nice_length,cr=MU[dr].max_chain),hr=Dn,Qn)},kr.deflateSetDictionary=function(Tn,Dn,Qn){var Gn,Kn=Qn,Yn=0;if(!Dn||42!==Un)return-2;if(Kn<3)return 0;for(Kn>Hn-262&&(Yn=Qn-(Kn=Hn-262)),zn.set(Dn.subarray(Yn,Yn+Kn),0),or=Kn,tr=Kn,Xn=((Xn=255&zn[0])<<er^255&zn[1])&Zn,Gn=0;Gn<=Kn-3;Gn++)Xn=(Xn<<er^255&zn[Gn+2])&Zn,$n[Gn&Vn]=Wn[Xn],Wn[Xn]=Gn;return 0},kr.deflate=function(Kn,Jn){var cr,pr,gr,fr,Ar,mr;if(Jn>4||Jn<0)return-2;if(!Kn.next_out||!Kn.next_in&&0!==Kn.avail_in||666===Un&&4!==Jn)return Kn.msg=RU[4],-2;if(0===Kn.avail_out)return Kn.msg=RU[7],-5;if(Tn=Kn,fr=Qn,Qn=Jn,42===Un&&(pr=8+(Gn-8<<4)<<8,(gr=(dr-1&255)>>1)>3&&(gr=3),pr|=gr<<6,0!==or&&(pr|=32),Un=113,Y((mr=pr+=31-pr%31)>>8&255),Y(255&mr)),0!==kr.pending){if(Tn.flush_pending(),0===Tn.avail_out)return Qn=-1,0}else if(0===Tn.avail_in&&Jn<=fr&&4!==Jn)return Tn.msg=RU[7],-5;if(666===Un&&0!==Tn.avail_in)return Kn.msg=RU[7],-5;if(0!==Tn.avail_in||0!==sr||0!==Jn&&666!==Un){switch(Ar=-1,MU[dr].func){case 0:Ar=function(Un){var Qn,Gn=65535;for(Gn>Dn-5&&(Gn=Dn-5);;){if(sr<=1){if(at(),0===sr&&0===Un)return 0;if(0===sr)break}if(or+=sr,sr=0,Qn=tr+Gn,(0===or||or>=Qn)&&(sr=or-Qn,or=Qn,it(!1),0===Tn.avail_out))return 0;if(or-tr>=Hn-262&&(it(!1),0===Tn.avail_out))return 0}return it(4===Un),0===Tn.avail_out?4===Un?2:0:4===Un?3:1}(Jn);break;case 1:Ar=function(Un){for(var Dn,Qn=0;;){if(sr<262){if(at(),sr<262&&0===Un)return 0;if(0===sr)break}if(sr>=3&&(Xn=(Xn<<er^255&zn[or+2])&Zn,Qn=65535&Wn[Xn],$n[or&Vn]=Wn[Xn],Wn[Xn]=or),0!==Qn&&(or-Qn&65535)<=Hn-262&&2!==hr&&(nr=ot(Qn)),nr>=3)if(Dn=Q(or-ar,nr-3),sr-=nr,nr<=ur&&sr>=3){nr--;do{or++,Xn=(Xn<<er^255&zn[or+2])&Zn,Qn=65535&Wn[Xn],$n[or&Vn]=Wn[Xn],Wn[Xn]=or}while(0!=--nr);or++}else or+=nr,nr=0,Xn=((Xn=255&zn[or])<<er^255&zn[or+1])&Zn;else Dn=Q(0,255&zn[or]),sr--,or++;if(Dn&&(it(!1),0===Tn.avail_out))return 0}return it(4===Un),0===Tn.avail_out?4===Un?2:0:4===Un?3:1}(Jn);break;case 2:Ar=function(Un){for(var Dn,Qn,Gn=0;;){if(sr<262){if(at(),sr<262&&0===Un)return 0;if(0===sr)break}if(sr>=3&&(Xn=(Xn<<er^255&zn[or+2])&Zn,Gn=65535&Wn[Xn],$n[or&Vn]=Wn[Xn],Wn[Xn]=or),lr=nr,rr=ar,nr=2,0!==Gn&&lr<ur&&(or-Gn&65535)<=Hn-262&&(2!==hr&&(nr=ot(Gn)),nr<=5&&(1===hr||3===nr&&or-ar>4096)&&(nr=2)),lr>=3&&nr<=lr){Qn=or+sr-3,Dn=Q(or-1-rr,lr-3),sr-=lr-1,lr-=2;do{++or<=Qn&&(Xn=(Xn<<er^255&zn[or+2])&Zn,Gn=65535&Wn[Xn],$n[or&Vn]=Wn[Xn],Wn[Xn]=or)}while(0!=--lr);if(ir=0,nr=2,or++,Dn&&(it(!1),0===Tn.avail_out))return 0}else if(0!==ir){if((Dn=Q(0,255&zn[or-1]))&&it(!1),or++,sr--,0===Tn.avail_out)return 0}else ir=1,or++,sr--}return 0!==ir&&(Dn=Q(0,255&zn[or-1]),ir=0),it(4===Un),0===Tn.avail_out?4===Un?2:0:4===Un?3:1}(Jn)}if(2!==Ar&&3!==Ar||(Un=666),0===Ar||2===Ar)return 0===Tn.avail_out&&(Qn=-1),0;if(1===Ar){if(1===Jn)X(2,3),K(256,dt.static_ltree),$(),1+xr+10-Cr<9&&(X(2,3),K(256,dt.static_ltree),$()),xr=7;else if(nt(0,0,!1),3===Jn)for(cr=0;cr<Yn;cr++)Wn[cr]=0;if(Tn.flush_pending(),0===Tn.avail_out)return Qn=-1,0}}return 4!==Jn?0:1}}function Lt(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}function xt(Tn){var Un=new Lt,Dn=new Uint8Array(512),Qn=Tn?Tn.level:-1;void 0===Qn&&(Qn=-1),Un.deflateInit(Qn),Un.next_out=Dn,this.append=function(Tn,Qn){var Hn,Gn=[],Vn=0,zn=0,Kn=0;if(Tn.length){Un.next_in_index=0,Un.next_in=Tn,Un.avail_in=Tn.length;do{if(Un.next_out_index=0,Un.avail_out=512,0!==Un.deflate(0))throw new Error("deflating: "+Un.msg);Un.next_out_index&&(512===Un.next_out_index?Gn.push(new Uint8Array(Dn)):Gn.push(new Uint8Array(Dn.subarray(0,Un.next_out_index)))),Kn+=Un.next_out_index,Qn&&Un.next_in_index>0&&Un.next_in_index!==Vn&&(Qn(Un.next_in_index),Vn=Un.next_in_index)}while(Un.avail_in>0||0===Un.avail_out);return Hn=new Uint8Array(Kn),Gn.forEach((function(Tn){Hn.set(Tn,zn),zn+=Tn.length})),Hn}},this.flush=function(){var Tn,Qn,Hn=[],Gn=0,Vn=0;do{if(Un.next_out_index=0,Un.avail_out=512,1!==(Tn=Un.deflate(4))&&0!==Tn)throw new Error("deflating: "+Un.msg);512-Un.avail_out>0&&Hn.push(new Uint8Array(Dn.subarray(0,Un.next_out_index))),Vn+=Un.next_out_index}while(Un.avail_in>0||0===Un.avail_out);return Un.deflateEnd(),Qn=new Uint8Array(Vn),Hn.forEach((function(Tn){Qn.set(Tn,Gn),Gn+=Tn.length})),Qn}}
|
||
/**
|
||
* @license
|
||
* jsPDF filters PlugIn
|
||
* Copyright (c) 2014 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/Lt.prototype={deflateInit:function deflateInit(Tn,Un){return this.dstate=new Nt,Un||(Un=15),this.dstate.deflateInit(this,Tn,Un)},deflate:function deflate(Tn){return this.dstate?this.dstate.deflate(this,Tn):-2},deflateEnd:function deflateEnd(){if(!this.dstate)return-2;var Tn=this.dstate.deflateEnd();return this.dstate=null,Tn},deflateParams:function deflateParams(Tn,Un){return this.dstate?this.dstate.deflateParams(this,Tn,Un):-2},deflateSetDictionary:function deflateSetDictionary(Tn,Un){return this.dstate?this.dstate.deflateSetDictionary(this,Tn,Un):-2},read_buf:function read_buf(Tn,Un,Dn){var Qn=this.avail_in;return Qn>Dn&&(Qn=Dn),0===Qn?0:(this.avail_in-=Qn,Tn.set(this.next_in.subarray(this.next_in_index,this.next_in_index+Qn),Un),this.next_in_index+=Qn,this.total_in+=Qn,Qn)},flush_pending:function flush_pending(){var Tn=this.dstate.pending;Tn>this.avail_out&&(Tn=this.avail_out),0!==Tn&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+Tn),this.next_out_index),this.next_out_index+=Tn,this.dstate.pending_out+=Tn,this.total_out+=Tn,this.avail_out-=Tn,this.dstate.pending-=Tn,0===this.dstate.pending&&(this.dstate.pending_out=0))}},function(Tn){var Un=function e(Tn){var e,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n;for(/[^\x00-\xFF]/.test(Tn),Un=[],Dn=0,Qn=(Tn+=e="\0\0\0\0".slice(Tn.length%4||4)).length;Qn>Dn;Dn+=4)0!==(Hn=(Tn.charCodeAt(Dn)<<24)+(Tn.charCodeAt(Dn+1)<<16)+(Tn.charCodeAt(Dn+2)<<8)+Tn.charCodeAt(Dn+3))?(Gn=(Hn=((Hn=((Hn=((Hn=(Hn-($n=Hn%85))/85)-(Kn=Hn%85))/85)-(zn=Hn%85))/85)-(Vn=Hn%85))/85)%85,Un.push(Gn+33,Vn+33,zn+33,Kn+33,$n+33)):Un.push(122);return function(Tn,Un){for(var Dn=Un;Dn>0;Dn--)Tn.pop()}(Un,e.length),String.fromCharCode.apply(String,Un)+"~>"},Dn=function n(Tn){var Un,n,Dn,Qn,Hn,Gn=String,Vn="length",zn=255,Kn="charCodeAt",$n="slice",Wn="replace";for(Tn[$n](-2),Tn=Tn[$n](0,-2)[Wn](/\s/g,"")[Wn]("z","!!!!!"),Dn=[],Qn=0,Hn=(Tn+=Un="uuuuu"[$n](Tn[Vn]%5||5))[Vn];Hn>Qn;Qn+=5)n=52200625*(Tn[Kn](Qn)-33)+614125*(Tn[Kn](Qn+1)-33)+7225*(Tn[Kn](Qn+2)-33)+85*(Tn[Kn](Qn+3)-33)+(Tn[Kn](Qn+4)-33),Dn.push(zn&n>>24,zn&n>>16,zn&n>>8,zn&n);return function(Tn,Un){for(var Dn=Un;Dn>0;Dn--)Tn.pop()}(Dn,Un[Vn]),Gn.fromCharCode.apply(Gn,Dn)},Qn=function r(Tn){var Un=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(Tn=Tn.replace(/\s/g,"")).indexOf(">")&&(Tn=Tn.substr(0,Tn.indexOf(">"))),Tn.length%2&&(Tn+="0"),!1===Un.test(Tn))return"";for(var Dn="",r=0;r<Tn.length;r+=2)Dn+=String.fromCharCode("0x"+(Tn[r]+Tn[r+1]));return Dn},Hn=function i(Un){for(var Dn,Qn,i,Hn,Gn,Vn=[],zn=Un.length;zn--;)Vn[zn]=Un.charCodeAt(zn);return Dn=Tn.adler32cs.from(Un),i=Un=(Qn=new xt(6)).append(new Uint8Array(Vn)),Hn=Qn.flush(),(Gn=new Uint8Array(i.byteLength+Hn.byteLength)).set(new Uint8Array(i),0),Gn.set(new Uint8Array(Hn),i.byteLength),Un=Gn,(Vn=new Uint8Array(Un.byteLength+6)).set(new Uint8Array([120,156])),Vn.set(Un,2),Vn.set(new Uint8Array([255&Dn,Dn>>8&255,Dn>>16&255,Dn>>24&255]),Un.byteLength+2),Vn.reduce((function(Tn,Un){return Tn+String.fromCharCode(Un)}),"")};Tn.processDataByFilters=function(Tn,Gn){var Vn=0,zn=Tn||"",Kn=[];for("string"==typeof(Gn=Gn||[])&&(Gn=[Gn]),Vn=0;Vn<Gn.length;Vn+=1)switch(Gn[Vn]){case"ASCII85Decode":case"/ASCII85Decode":zn=Dn(zn),Kn.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":zn=Un(zn),Kn.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":zn=Qn(zn),Kn.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":zn=zn.split("").map((function(Tn){return("0"+Tn.charCodeAt().toString(16)).slice(-2)})).join("")+">",Kn.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":zn=Hn(zn),Kn.push("/FlateDecode");break;default:throw new Error('The filter: "'+Gn[Vn]+'" is not implemented')}return{data:zn,reverseChain:Kn.reverse().join(" ")}}}(g.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
|
||
*/
|
||
function(Tn){Tn.loadFile=function(Tn,Un,Dn){return function(Tn,Un,Dn){Un=!1!==Un,Dn="function"==typeof Dn?Dn:function(){};var Qn=void 0;try{Qn=function(Tn,Un,Dn){var Qn=new XMLHttpRequest,Hn=0,Gn=function a(Tn){var Un=Tn.length,Dn=[],Qn=String.fromCharCode;for(Hn=0;Hn<Un;Hn+=1)Dn.push(Qn(255&Tn.charCodeAt(Hn)));return Dn.join("")};if(Qn.open("GET",Tn,!Un),Qn.overrideMimeType("text/plain; charset=x-user-defined"),!1===Un&&(Qn.onload=function(){200===Qn.status?Dn(Gn(this.responseText)):Dn(void 0)}),Qn.send(null),Un&&200===Qn.status)return Gn(Qn.responseText)}(Tn,Un,Dn)}catch(Tn){}return Qn}(Tn,Un,Dn)},Tn.loadImageFile=Tn.loadFile}(g.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 Erik Koopmans
|
||
* Released under the MIT License.
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){function n(){return(OF.html2canvas?Promise.resolve(OF.html2canvas):Promise.resolve().then((function(){return ej}))).catch((function(Tn){return Promise.reject(new Error("Could not load dompurify: "+Tn))})).then((function(Tn){return Tn.default?Tn.default:Tn}))}function r(){return(OF.DOMPurify?Promise.resolve(OF.DOMPurify):Promise.resolve().then((function(){return fj}))).catch((function(Tn){return Promise.reject(new Error("Could not load dompurify: "+Tn))})).then((function(Tn){return Tn.default?Tn.default:Tn}))}var Un=function i(Tn){var Un=_typeof(Tn);return"undefined"===Un?"undefined":"string"===Un||Tn instanceof String?"string":"number"===Un||Tn instanceof Number?"number":"function"===Un||Tn instanceof Function?"function":Tn&&Tn.constructor===Array?"array":Tn&&1===Tn.nodeType?"element":"object"===Un?"object":"unknown"},Dn=function a(Tn,Un){var Dn=document.createElement(Tn);for(var Qn in Un.className&&(Dn.className=Un.className),Un.innerHTML&&Un.dompurify&&(Dn.innerHTML=Un.dompurify.sanitize(Un.innerHTML)),Un.style)Dn.style[Qn]=Un.style[Qn];return Dn},Qn=function t(Tn){var Un=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),Dn=t.convert(Promise.resolve(),Un);return(Dn=Dn.setProgress(1,t,1,[t])).set(Tn)};(Qn.prototype=Object.create(Promise.prototype)).constructor=Qn,Qn.convert=function(Tn,Un){return Tn.__proto__=Un||Qn.prototype,Tn},Qn.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"}},Qn.prototype.from=function(Tn,Qn){return this.then((function(){switch(Qn=Qn||function(Tn){switch(Un(Tn)){case"string":return"string";case"element":return"canvas"===Tn.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(Tn)){case"string":return this.then(r).then((function(Un){return this.set({src:Dn("div",{innerHTML:Tn,dompurify:Un})})}));case"element":return this.set({src:Tn});case"canvas":return this.set({canvas:Tn});case"img":return this.set({img:Tn});default:return this.error("Unknown source type.")}}))},Qn.prototype.to=function(Tn){switch(Tn){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.")}},Qn.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 Tn={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},Un=function o(Tn,Un){for(var Dn=3===Tn.nodeType?document.createTextNode(Tn.nodeValue):Tn.cloneNode(!1),Qn=Tn.firstChild;Qn;Qn=Qn.nextSibling)!0!==Un&&1===Qn.nodeType&&"SCRIPT"===Qn.nodeName||Dn.appendChild(o(Qn,Un));return 1===Tn.nodeType&&("CANVAS"===Tn.nodeName?(Dn.width=Tn.width,Dn.height=Tn.height,Dn.getContext("2d").drawImage(Tn,0,0)):"TEXTAREA"!==Tn.nodeName&&"SELECT"!==Tn.nodeName||(Dn.value=Tn.value),Dn.addEventListener("load",(function(){Dn.scrollTop=Tn.scrollTop,Dn.scrollLeft=Tn.scrollLeft}),!0)),Dn}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===Un.tagName&&(Tn.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Dn("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Dn("div",{className:"html2pdf__container",style:Tn}),this.prop.container.appendChild(Un),this.prop.container.firstChild.appendChild(Dn("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"}))},Qn.prototype.toCanvas=function(){var Tn=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Tn).then(n).then((function(Tn){var Un=Object.assign({},this.opt.html2canvas);return delete Un.onrendered,Tn(this.prop.container,Un)})).then((function(Tn){(this.opt.html2canvas.onrendered||function(){})(Tn),this.prop.canvas=Tn,document.body.removeChild(this.prop.overlay)}))},Qn.prototype.toContext2d=function(){var Tn=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Tn).then(n).then((function(Tn){var Un=this.opt.jsPDF,Dn=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);return delete Dn.onrendered,Un.context2d.autoPaging=!0,Un.context2d.posX=this.opt.x,Un.context2d.posY=this.opt.y,Dn.windowHeight=Dn.windowHeight||0,Dn.windowHeight=0==Dn.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Dn.windowHeight,Tn(this.prop.container,Dn)})).then((function(Tn){(this.opt.html2canvas.onrendered||function(){})(Tn),this.prop.canvas=Tn,document.body.removeChild(this.prop.overlay)}))},Qn.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var Tn=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Tn}))},Qn.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},Qn.prototype.output=function(Tn,Un,Dn){return"img"===(Dn=Dn||"pdf").toLowerCase()||"image"===Dn.toLowerCase()?this.outputImg(Tn,Un):this.outputPdf(Tn,Un)},Qn.prototype.outputPdf=function(Tn,Un){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(Tn,Un)}))},Qn.prototype.outputImg=function(Tn){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(Tn){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 "'+Tn+'" is not supported.'}}))},Qn.prototype.save=function(Tn){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Tn?{filename:Tn}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},Qn.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},Qn.prototype.set=function(Tn){if("object"!==Un(Tn))return this;var Dn=Object.keys(Tn||{}).map((function(Un){if(Un in Qn.template.prop)return function(){this.prop[Un]=Tn[Un]};switch(Un){case"margin":return this.setMargin.bind(this,Tn.margin);case"jsPDF":return function(){return this.opt.jsPDF=Tn.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Tn.pageSize);default:return function(){this.opt[Un]=Tn[Un]}}}),this);return this.then((function(){return this.thenList(Dn)}))},Qn.prototype.get=function(Tn,Un){return this.then((function(){var Dn=Tn in Qn.template.prop?this.prop[Tn]:this.opt[Tn];return Un?Un(Dn):Dn}))},Qn.prototype.setMargin=function(Tn){return this.then((function(){switch(Un(Tn)){case"number":Tn=[Tn,Tn,Tn,Tn];case"array":if(2===Tn.length&&(Tn=[Tn[0],Tn[1],Tn[0],Tn[1]]),4===Tn.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=Tn})).then(this.setPageSize)},Qn.prototype.setPageSize=function(Tn){function e(Tn,Un){return Math.floor(Tn*Un/72*96)}return this.then((function(){(Tn=Tn||g.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Tn.inner={width:Tn.width-this.opt.margin[1]-this.opt.margin[3],height:Tn.height-this.opt.margin[0]-this.opt.margin[2]},Tn.inner.px={width:e(Tn.inner.width,Tn.k),height:e(Tn.inner.height,Tn.k)},Tn.inner.ratio=Tn.inner.height/Tn.inner.width),this.prop.pageSize=Tn}))},Qn.prototype.setProgress=function(Tn,Un,Dn,Qn){return null!=Tn&&(this.progress.val=Tn),null!=Un&&(this.progress.state=Un),null!=Dn&&(this.progress.n=Dn),null!=Qn&&(this.progress.stack=Qn),this.progress.ratio=this.progress.val/this.progress.state,this},Qn.prototype.updateProgress=function(Tn,Un,Dn,Qn){return this.setProgress(Tn?this.progress.val+Tn:null,Un||null,Dn?this.progress.n+Dn:null,Qn?this.progress.stack.concat(Qn):null)},Qn.prototype.then=function(Tn,Un){var Dn=this;return this.thenCore(Tn,Un,(function(Tn,Un){return Dn.updateProgress(null,null,1,[Tn]),Promise.prototype.then.call(this,(function(Un){return Dn.updateProgress(null,Tn),Un})).then(Tn,Un).then((function(Tn){return Dn.updateProgress(1),Tn}))}))},Qn.prototype.thenCore=function(Tn,Un,Dn){Dn=Dn||Promise.prototype.then,Tn&&(Tn=Tn.bind(this)),Un&&(Un=Un.bind(this));var Hn=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:Qn.convert(Object.assign({},this),Promise.prototype),Gn=Dn.call(Hn,Tn,Un);return Qn.convert(Gn,this.__proto__)},Qn.prototype.thenExternal=function(Tn,Un){return Promise.prototype.then.call(this,Tn,Un)},Qn.prototype.thenList=function(Tn){var Un=this;return Tn.forEach((function(Tn){Un=Un.thenCore(Tn)})),Un},Qn.prototype.catch=function(Tn){Tn&&(Tn=Tn.bind(this));var Un=Promise.prototype.catch.call(this,Tn);return Qn.convert(Un,this)},Qn.prototype.catchExternal=function(Tn){return Promise.prototype.catch.call(this,Tn)},Qn.prototype.error=function(Tn){return this.then((function(){throw new Error(Tn)}))},Qn.prototype.using=Qn.prototype.set,Qn.prototype.saveAs=Qn.prototype.save,Qn.prototype.export=Qn.prototype.output,Qn.prototype.run=Qn.prototype.then,g.getPageSize=function(Tn,Un,Dn){if("object"==_typeof(Tn)){var Qn=Tn;Tn=Qn.orientation,Un=Qn.unit||Un,Dn=Qn.format||Dn}Un=Un||"mm",Dn=Dn||"a4",Tn=(""+(Tn||"P")).toLowerCase();var Hn,Gn=(""+Dn).toLowerCase(),Vn={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(Un){case"pt":Hn=1;break;case"mm":Hn=72/25.4;break;case"cm":Hn=72/2.54;break;case"in":Hn=72;break;case"px":Hn=.75;break;case"pc":case"em":Hn=12;break;case"ex":Hn=6;break;default:throw"Invalid unit: "+Un}var zn,Kn=0,$n=0;if(Vn.hasOwnProperty(Gn))Kn=Vn[Gn][1]/Hn,$n=Vn[Gn][0]/Hn;else try{Kn=Dn[1],$n=Dn[0]}catch(Tn){throw new Error("Invalid format: "+Dn)}if("p"===Tn||"portrait"===Tn)Tn="p",$n>Kn&&(zn=$n,$n=Kn,Kn=zn);else{if("l"!==Tn&&"landscape"!==Tn)throw"Invalid orientation: "+Tn;Tn="l",Kn>$n&&(zn=$n,$n=Kn,Kn=zn)}return{width:$n,height:Kn,unit:Un,k:Hn,orientation:Tn}},Tn.html=function(Tn,Un){(Un=Un||{}).callback=Un.callback||function(){},Un.html2canvas=Un.html2canvas||{},Un.html2canvas.canvas=Un.html2canvas.canvas||this.canvas,Un.jsPDF=Un.jsPDF||this;var Dn=new Qn(Un);return Un.worker?Dn:Dn.from(Tn).doCallback()}}(g.API),g.API.addJS=function(Tn){return UU=Tn,this.internal.events.subscribe("postPutResources",(function(){OU=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(OU+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),FU=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+UU+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==OU&&void 0!==FU&&this.internal.out("/Names <</JavaScript "+OU+" 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(Tn){var Un;Tn.events.push(["postPutResources",function(){var Tn=this,Dn=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Qn=Tn.outline.render().split(/\r\n/),Hn=0;Hn<Qn.length;Hn++){var Gn=Qn[Hn],Vn=Dn.exec(Gn);if(null!=Vn){var zn=Vn[1];Tn.internal.newObjectDeferredBegin(zn,!1)}Tn.internal.write(Gn)}if(this.outline.createNamedDestinations){var Kn=this.internal.pages.length,$n=[];for(Hn=0;Hn<Kn;Hn++){var Wn=Tn.internal.newObject();$n.push(Wn);var Xn=Tn.internal.getPageInfo(Hn+1);Tn.internal.write("<< /D["+Xn.objId+" 0 R /XYZ null null null]>> endobj")}var Yn=Tn.internal.newObject();for(Tn.internal.write("<< /Names [ "),Hn=0;Hn<$n.length;Hn++)Tn.internal.write("(page_"+(Hn+1)+")"+$n[Hn]+" 0 R");Tn.internal.write(" ] >>","endobj"),Un=Tn.internal.newObject(),Tn.internal.write("<< /Dests "+Yn+" 0 R"),Tn.internal.write(">>","endobj")}}]),Tn.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 "+Un+" 0 R"))}]),Tn.events.push(["initialized",function(){var Tn=this;Tn.outline={createNamedDestinations:!1,root:{children:[]}},Tn.outline.add=function(Tn,Un,Dn){var Qn={title:Un,options:Dn,children:[]};return null==Tn&&(Tn=this.root),Tn.children.push(Qn),Qn},Tn.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Tn,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Tn.outline.genIds_r=function(Un){Un.id=Tn.internal.newObjectDeferred();for(var Dn=0;Dn<Un.children.length;Dn++)this.genIds_r(Un.children[Dn])},Tn.outline.renderRoot=function(Tn){this.objStart(Tn),this.line("/Type /Outlines"),Tn.children.length>0&&(this.line("/First "+this.makeRef(Tn.children[0])),this.line("/Last "+this.makeRef(Tn.children[Tn.children.length-1]))),this.line("/Count "+this.count_r({count:0},Tn)),this.objEnd()},Tn.outline.renderItems=function(Un){for(var Dn=this.ctx.pdf.internal.getVerticalCoordinateString,Qn=0;Qn<Un.children.length;Qn++){var Hn=Un.children[Qn];this.objStart(Hn),this.line("/Title "+this.makeString(Hn.title)),this.line("/Parent "+this.makeRef(Un)),Qn>0&&this.line("/Prev "+this.makeRef(Un.children[Qn-1])),Qn<Un.children.length-1&&this.line("/Next "+this.makeRef(Un.children[Qn+1])),Hn.children.length>0&&(this.line("/First "+this.makeRef(Hn.children[0])),this.line("/Last "+this.makeRef(Hn.children[Hn.children.length-1])));var Gn=this.count=this.count_r({count:0},Hn);if(Gn>0&&this.line("/Count "+Gn),Hn.options&&Hn.options.pageNumber){var Vn=Tn.internal.getPageInfo(Hn.options.pageNumber);this.line("/Dest ["+Vn.objId+" 0 R /XYZ 0 "+Dn(0)+" 0]")}this.objEnd()}for(var zn=0;zn<Un.children.length;zn++)this.renderItems(Un.children[zn])},Tn.outline.line=function(Tn){this.ctx.val+=Tn+"\r\n"},Tn.outline.makeRef=function(Tn){return Tn.id+" 0 R"},Tn.outline.makeString=function(Un){return"("+Tn.internal.pdfEscape(Un)+")"},Tn.outline.objStart=function(Tn){this.ctx.val+="\r\n"+Tn.id+" 0 obj\r\n<<\r\n"},Tn.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},Tn.outline.count_r=function(Tn,Un){for(var Dn=0;Dn<Un.children.length;Dn++)Tn.count++,this.count_r(Tn,Un.children[Dn]);return Tn.count}}])}(g.API),
|
||
/**
|
||
* @license
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){var Un=[192,193,194,195,196,197,198,199];Tn.processJPEG=function(Tn,Dn,Qn,Hn,Gn,Vn){var zn,Kn=this.decode.DCT_DECODE,$n=null;if("string"==typeof Tn||this.__addimage__.isArrayBuffer(Tn)||this.__addimage__.isArrayBufferView(Tn)){switch(Tn=Gn||Tn,Tn=this.__addimage__.isArrayBuffer(Tn)?new Uint8Array(Tn):Tn,(zn=function(Tn){for(var Dn,Qn=256*Tn.charCodeAt(4)+Tn.charCodeAt(5),Hn=Tn.length,Gn={width:0,height:0,numcomponents:1},Vn=4;Vn<Hn;Vn+=2){if(Vn+=Qn,-1!==Un.indexOf(Tn.charCodeAt(Vn+1))){Dn=256*Tn.charCodeAt(Vn+5)+Tn.charCodeAt(Vn+6),Gn={width:256*Tn.charCodeAt(Vn+7)+Tn.charCodeAt(Vn+8),height:Dn,numcomponents:Tn.charCodeAt(Vn+9)};break}Qn=256*Tn.charCodeAt(Vn+2)+Tn.charCodeAt(Vn+3)}return Gn}(Tn=this.__addimage__.isArrayBufferView(Tn)?this.__addimage__.arrayBufferToBinaryString(Tn):Tn)).numcomponents){case 1:Vn=this.color_spaces.DEVICE_GRAY;break;case 4:Vn=this.color_spaces.DEVICE_CMYK;break;case 3:Vn=this.color_spaces.DEVICE_RGB}$n={data:Tn,width:zn.width,height:zn.height,colorSpace:Vn,bitsPerComponent:8,filter:Kn,index:Dn,alias:Qn}}return $n}}(g.API);
|
||
/**
|
||
* @license
|
||
* Extracted from pdf.js
|
||
* https://github.com/andreasgal/pdf.js
|
||
*
|
||
* Copyright (c) 2011 Mozilla Foundation
|
||
*
|
||
* Contributors: Andreas Gal <gal@mozilla.com>
|
||
* Chris G Jones <cjones@mozilla.com>
|
||
* Shaon Barman <shaon.barman@gmail.com>
|
||
* Vivien Nicolas <21@vingtetun.org>
|
||
* Justin D'Arcangelo <justindarc@gmail.com>
|
||
* Yury Delendik
|
||
*
|
||
* 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.
|
||
*/
|
||
var DU,jU,QU,HU,GU,VU=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function ensureBuffer(Tn){var Un=this.buffer,Dn=Un?Un.byteLength:0;if(Tn<Dn)return Un;for(var Qn=512;Qn<Tn;)Qn<<=1;for(var Hn=new Uint8Array(Qn),Gn=0;Gn<Dn;++Gn)Hn[Gn]=Un[Gn];return this.buffer=Hn},getByte:function getByte(){for(var Tn=this.pos;this.bufferLength<=Tn;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function getBytes(Tn){var Un=this.pos;if(Tn){this.ensureBuffer(Un+Tn);for(var Dn=Un+Tn;!this.eof&&this.bufferLength<Dn;)this.readBlock();var Qn=this.bufferLength;Dn>Qn&&(Dn=Qn)}else{for(;!this.eof;)this.readBlock();Dn=this.bufferLength}return this.pos=Dn,this.buffer.subarray(Un,Dn)},lookChar:function lookChar(){for(var Tn=this.pos;this.bufferLength<=Tn;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function getChar(){for(var Tn=this.pos;this.bufferLength<=Tn;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function makeSubStream(Tn,Un,Dn){for(var Qn=Tn+Un;this.bufferLength<=Qn&&!this.eof;)this.readBlock();return new Stream(this.buffer,Tn,Un,Dn)},skip:function skip(Tn){Tn||(Tn=1),this.pos+=Tn},reset:function reset(){this.pos=0}},t}(),zU=("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==LF&&LF||Function('return typeof this === "object" && this.content')()||Function("return this")()).FlateStream=function(){if("undefined"!=typeof Uint32Array){var Tn=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Un=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),Dn=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),Qn=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],Hn=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return o.prototype=Object.create(VU.prototype),o.prototype.getBits=function(Tn){for(var Un,Dn=this.codeSize,Qn=this.codeBuf,Hn=this.bytes,Gn=this.bytesPos;Dn<Tn;)void 0===(Un=Hn[Gn++])&&a("Bad encoding in flate stream"),Qn|=Un<<Dn,Dn+=8;return Un=Qn&(1<<Tn)-1,this.codeBuf=Qn>>Tn,this.codeSize=Dn-=Tn,this.bytesPos=Gn,Un},o.prototype.getCode=function(Tn){for(var Un=Tn[0],Dn=Tn[1],Qn=this.codeSize,Hn=this.codeBuf,Gn=this.bytes,Vn=this.bytesPos;Qn<Dn;){var zn;void 0===(zn=Gn[Vn++])&&a("Bad encoding in flate stream"),Hn|=zn<<Qn,Qn+=8}var Kn=Un[Hn&(1<<Dn)-1],$n=Kn>>16,Wn=65535&Kn;return(0==Qn||Qn<$n||0==$n)&&a("Bad encoding in flate stream"),this.codeBuf=Hn>>$n,this.codeSize=Qn-$n,this.bytesPos=Vn,Wn},o.prototype.generateHuffmanTable=function(Tn){for(var Un=Tn.length,Dn=0,Qn=0;Qn<Un;++Qn)Tn[Qn]>Dn&&(Dn=Tn[Qn]);for(var Hn=1<<Dn,Gn=new Uint32Array(Hn),Vn=1,zn=0,Kn=2;Vn<=Dn;++Vn,zn<<=1,Kn<<=1)for(var $n=0;$n<Un;++$n)if(Tn[$n]==Vn){var Wn=0,Xn=zn;for(Qn=0;Qn<Vn;++Qn)Wn=Wn<<1|1&Xn,Xn>>=1;for(Qn=Wn;Qn<Hn;Qn+=Kn)Gn[Qn]=Vn<<16|$n;++zn}return[Gn,Dn]},o.prototype.readBlock=function(){function o(Tn,Un,Dn,Qn,Hn){for(var Gn=Tn.getBits(Dn)+Qn;Gn-- >0;)Un[Yn++]=Hn}var Gn=this.getBits(3);if(1&Gn&&(this.eof=!0),0!=(Gn>>=1)){var Vn,zn;if(1==Gn)Vn=Qn,zn=Hn;else if(2==Gn){for(var Kn=this.getBits(5)+257,$n=this.getBits(5)+1,Wn=this.getBits(4)+4,Xn=Array(Tn.length),Yn=0;Yn<Wn;)Xn[Tn[Yn++]]=this.getBits(3);for(var Jn=this.generateHuffmanTable(Xn),Zn=0,er=(Yn=0,Kn+$n),tr=new Array(er);Yn<er;){var nr=this.getCode(Jn);16==nr?o(this,tr,2,3,Zn):17==nr?o(this,tr,3,3,Zn=0):18==nr?o(this,tr,7,11,Zn=0):tr[Yn++]=Zn=nr}Vn=this.generateHuffmanTable(tr.slice(0,Kn)),zn=this.generateHuffmanTable(tr.slice(Kn,er))}else a("Unknown block type in flate stream");for(var rr=(fr=this.buffer)?fr.length:0,ir=this.bufferLength;;){var or=this.getCode(Vn);if(or<256)ir+1>=rr&&(rr=(fr=this.ensureBuffer(ir+1)).length),fr[ir++]=or;else{if(256==or)return void(this.bufferLength=ir);var ar=(or=Un[or-=257])>>16;ar>0&&(ar=this.getBits(ar)),Zn=(65535&or)+ar,or=this.getCode(zn),(ar=(or=Dn[or])>>16)>0&&(ar=this.getBits(ar));var sr=(65535&or)+ar;ir+Zn>=rr&&(rr=(fr=this.ensureBuffer(ir+Zn)).length);for(var lr=0;lr<Zn;++lr,++ir)fr[ir]=fr[ir-sr]}}}else{var cr,ur=this.bytes,dr=this.bytesPos;void 0===(cr=ur[dr++])&&a("Bad block header in flate stream");var hr=cr;void 0===(cr=ur[dr++])&&a("Bad block header in flate stream"),hr|=cr<<8,void 0===(cr=ur[dr++])&&a("Bad block header in flate stream");var pr=cr;void 0===(cr=ur[dr++])&&a("Bad block header in flate stream"),(pr|=cr<<8)!=(65535&~hr)&&a("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var gr=this.bufferLength,fr=this.ensureBuffer(gr+hr),Ar=gr+hr;this.bufferLength=Ar;for(var mr=gr;mr<Ar;++mr){if(void 0===(cr=ur[dr++])){this.eof=!0;break}fr[mr]=cr}this.bytesPos=dr}},o}function a(Tn){throw new Error(Tn)}function o(Tn){var Un=0,Dn=Tn[Un++],Qn=Tn[Un++];-1!=Dn&&-1!=Qn||a("Invalid header in flate stream"),8!=(15&Dn)&&a("Unknown compression method in flate stream"),((Dn<<8)+Qn)%31!=0&&a("Bad FCHECK in flate stream"),32&Qn&&a("FDICT bit set in flate stream"),this.bytes=Tn,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,VU.call(this)}}(),KU=function(){var Tn,Un,Dn;function i(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn;for(this.data=Tn,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Vn=null;;){switch(Un=this.readUInt32(),$n=function(){var Tn,Un;for(Un=[],Tn=0;Tn<4;++Tn)Un.push(String.fromCharCode(this.data[this.pos++]));return Un}.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(Un);break;case"fcTL":Vn&&this.animation.frames.push(Vn),this.pos+=4,Vn={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Gn=this.readUInt16(),Hn=this.readUInt16()||100,Vn.delay=1e3*Gn/Hn,Vn.disposeOp=this.data[this.pos++],Vn.blendOp=this.data[this.pos++],Vn.data=[];break;case"IDAT":case"fdAT":for("fdAT"===$n&&(this.pos+=4,Un-=4),Tn=(null!=Vn?Vn.data:void 0)||this.imgData,Yn=0;0<=Un?Yn<Un:Yn>Un;0<=Un?++Yn:--Yn)Tn.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(Qn=this.palette.length/3,this.transparency.indexed=this.read(Un),this.transparency.indexed.length>Qn)throw new Error("More transparent colors than palette size");if((Wn=Qn-this.transparency.indexed.length)>0)for(Jn=0;0<=Wn?Jn<Wn:Jn>Wn;0<=Wn?++Jn:--Jn)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(Un)[0];break;case 2:this.transparency.rgb=this.read(Un)}break;case"tEXt":zn=(Xn=this.read(Un)).indexOf(0),Kn=String.fromCharCode.apply(String,Xn.slice(0,zn)),this.text[Kn]=String.fromCharCode.apply(String,Xn.slice(zn+1));break;case"IEND":return Vn&&this.animation.frames.push(Vn),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===(Zn=this.colorType)||6===Zn,Dn=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Dn,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+=Un}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(Tn){var Un,Dn;for(Dn=[],Un=0;0<=Tn?Un<Tn:Un>Tn;0<=Tn?++Un:--Un)Dn.push(this.data[this.pos++]);return Dn},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(Tn){var Un=this.pixelBitlength/8,Dn=new Uint8Array(this.width*this.height*Un),Qn=0,Hn=this;if(null==Tn&&(Tn=this.imgData),0===Tn.length)return new Uint8Array(0);function a(Gn,Vn,zn,Kn){var $n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,gr,fr=Math.ceil((Hn.width-Gn)/zn),Ar=Math.ceil((Hn.height-Vn)/Kn),mr=Hn.width==fr&&Hn.height==Ar;for(sr=Un*fr,or=mr?Dn:new Uint8Array(sr*Ar),Zn=Tn.length,ar=0,Wn=0;ar<Ar&&Qn<Zn;){switch(Tn[Qn++]){case 0:for(Yn=ur=0;ur<sr;Yn=ur+=1)or[Wn++]=Tn[Qn++];break;case 1:for(Yn=dr=0;dr<sr;Yn=dr+=1)$n=Tn[Qn++],Jn=Yn<Un?0:or[Wn-Un],or[Wn++]=($n+Jn)%256;break;case 2:for(Yn=hr=0;hr<sr;Yn=hr+=1)$n=Tn[Qn++],Xn=(Yn-Yn%Un)/Un,lr=ar&&or[(ar-1)*sr+Xn*Un+Yn%Un],or[Wn++]=(lr+$n)%256;break;case 3:for(Yn=pr=0;pr<sr;Yn=pr+=1)$n=Tn[Qn++],Xn=(Yn-Yn%Un)/Un,Jn=Yn<Un?0:or[Wn-Un],lr=ar&&or[(ar-1)*sr+Xn*Un+Yn%Un],or[Wn++]=($n+Math.floor((Jn+lr)/2))%256;break;case 4:for(Yn=gr=0;gr<sr;Yn=gr+=1)$n=Tn[Qn++],Xn=(Yn-Yn%Un)/Un,Jn=Yn<Un?0:or[Wn-Un],0===ar?lr=cr=0:(lr=or[(ar-1)*sr+Xn*Un+Yn%Un],cr=Xn&&or[(ar-1)*sr+(Xn-1)*Un+Yn%Un]),er=Jn+lr-cr,tr=Math.abs(er-Jn),rr=Math.abs(er-lr),ir=Math.abs(er-cr),nr=tr<=rr&&tr<=ir?Jn:rr<=ir?lr:cr,or[Wn++]=($n+nr)%256;break;default:throw new Error("Invalid filter algorithm: "+Tn[Qn-1])}if(!mr){var vr=((Vn+ar*Kn)*Hn.width+Gn)*Un,yr=ar*sr;for(Yn=0;Yn<fr;Yn+=1){for(var _r=0;_r<Un;_r+=1)Dn[vr++]=or[yr++];vr+=(zn-1)*Un}}ar++}}return Tn=(Tn=new zU(Tn)).getBytes(),1==Hn.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),Dn},i.prototype.decodePalette=function(){var Tn,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn;for(Dn=this.palette,Gn=this.transparency.indexed||[],Hn=new Uint8Array((Gn.length||0)+Dn.length),Qn=0,Tn=0,Un=Vn=0,zn=Dn.length;Vn<zn;Un=Vn+=3)Hn[Qn++]=Dn[Un],Hn[Qn++]=Dn[Un+1],Hn[Qn++]=Dn[Un+2],Hn[Qn++]=null!=(Kn=Gn[Tn++])?Kn:255;return Hn},i.prototype.copyToImageData=function(Tn,Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn;if(Qn=this.colors,Wn=null,Dn=this.hasAlphaChannel,this.palette.length&&(Wn=null!=(Yn=this._decodedPalette)?Yn:this._decodedPalette=this.decodePalette(),Qn=4,Dn=!0),$n=(Hn=Tn.data||Tn).length,Vn=Wn||Un,Gn=zn=0,1===Qn)for(;Gn<$n;)Kn=Wn?4*Un[Gn/4]:zn,Xn=Vn[Kn++],Hn[Gn++]=Xn,Hn[Gn++]=Xn,Hn[Gn++]=Xn,Hn[Gn++]=Dn?Vn[Kn++]:255,zn=Kn;else for(;Gn<$n;)Kn=Wn?4*Un[Gn/4]:zn,Hn[Gn++]=Vn[Kn++],Hn[Gn++]=Vn[Kn++],Hn[Gn++]=Vn[Kn++],Hn[Gn++]=Dn?Vn[Kn++]:255,zn=Kn},i.prototype.decode=function(){var Tn;return Tn=new Uint8Array(this.width*this.height*4),this.copyToImageData(Tn,this.decodePixels()),Tn};var Qn=function a(){if("[object Window]"===Object.prototype.toString.call(OF)){try{Un=OF.document.createElement("canvas"),Dn=Un.getContext("2d")}catch(Tn){return!1}return!0}return!1};return Qn(),Tn=function e(Tn){var e;if(!0===Qn())return Dn.width=Tn.width,Dn.height=Tn.height,Dn.clearRect(0,0,Tn.width,Tn.height),Dn.putImageData(Tn,0,0),(e=new Image).src=Un.toDataURL(),e;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n;if(this.animation){for($n=[],Qn=Vn=0,zn=(Kn=this.animation.frames).length;Vn<zn;Qn=++Vn)Dn=Kn[Qn],Hn=Un.createImageData(Dn.width,Dn.height),Gn=this.decodePixels(new Uint8Array(Dn.data)),this.copyToImageData(Hn,Gn),Dn.imageData=Hn,$n.push(Dn.image=Tn(Hn));return $n}},i.prototype.renderFrame=function(Tn,Un){var Dn,Qn,Hn;return Dn=(Qn=this.animation.frames)[Un],Hn=Qn[Un-1],0===Un&&Tn.clearRect(0,0,this.width,this.height),1===(null!=Hn?Hn.disposeOp:void 0)?Tn.clearRect(Hn.xOffset,Hn.yOffset,Hn.width,Hn.height):2===(null!=Hn?Hn.disposeOp:void 0)&&Tn.putImageData(Hn.imageData,Hn.xOffset,Hn.yOffset),0===Dn.blendOp&&Tn.clearRect(Dn.xOffset,Dn.yOffset,Dn.width,Dn.height),Tn.drawImage(Dn.image,Dn.xOffset,Dn.yOffset)},i.prototype.animate=function(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn=this;return Dn=0,Vn=this.animation,Hn=Vn.numFrames,Qn=Vn.frames,Gn=Vn.numPlays,(Un=function e(){var Vn,Kn;if(Vn=Dn++%Hn,Kn=Qn[Vn],zn.renderFrame(Tn,Vn),Hn>1&&Dn/Hn<Gn)return zn.animation._timeout=setTimeout(Un,Kn.delay)})()},i.prototype.stopAnimation=function(){var Tn;return clearTimeout(null!=(Tn=this.animation)?Tn._timeout:void 0)},i.prototype.render=function(Tn){var Un,Dn;return Tn._png&&Tn._png.stopAnimation(),Tn._png=this,Tn.width=this.width,Tn.height=this.height,Un=Tn.getContext("2d"),this.animation?(this.decodeFrames(Un),this.animate(Un)):(Dn=Un.createImageData(this.width,this.height),this.copyToImageData(Dn,this.decodePixels()),Un.putImageData(Dn,0,0))},i}();
|
||
/**
|
||
* @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(Tn){var Un=0;if(71!==Tn[Un++]||73!==Tn[Un++]||70!==Tn[Un++]||56!==Tn[Un++]||56!=(Tn[Un++]+1&253)||97!==Tn[Un++])throw new Error("Invalid GIF 87a/89a header.");var Dn=Tn[Un++]|Tn[Un++]<<8,Qn=Tn[Un++]|Tn[Un++]<<8,Hn=Tn[Un++],Gn=Hn>>7,Vn=1<<1+(7&Hn);Tn[Un++],Tn[Un++];var zn=null,Kn=null;Gn&&(zn=Un,Kn=Vn,Un+=3*Vn);var $n=!0,Wn=[],Xn=0,Yn=null,Jn=0,Zn=null;for(this.width=Dn,this.height=Qn;$n&&Un<Tn.length;)switch(Tn[Un++]){case 33:switch(Tn[Un++]){case 255:if(11!==Tn[Un]||78==Tn[Un+1]&&69==Tn[Un+2]&&84==Tn[Un+3]&&83==Tn[Un+4]&&67==Tn[Un+5]&&65==Tn[Un+6]&&80==Tn[Un+7]&&69==Tn[Un+8]&&50==Tn[Un+9]&&46==Tn[Un+10]&&48==Tn[Un+11]&&3==Tn[Un+12]&&1==Tn[Un+13]&&0==Tn[Un+16])Un+=14,Zn=Tn[Un++]|Tn[Un++]<<8,Un++;else for(Un+=12;;){if(!((hr=Tn[Un++])>=0))throw Error("Invalid block size");if(0===hr)break;Un+=hr}break;case 249:if(4!==Tn[Un++]||0!==Tn[Un+4])throw new Error("Invalid graphics extension block.");var er=Tn[Un++];Xn=Tn[Un++]|Tn[Un++]<<8,Yn=Tn[Un++],0==(1&er)&&(Yn=null),Jn=er>>2&7,Un++;break;case 254:for(;;){if(!((hr=Tn[Un++])>=0))throw Error("Invalid block size");if(0===hr)break;Un+=hr}break;default:throw new Error("Unknown graphic control label: 0x"+Tn[Un-1].toString(16))}break;case 44:var tr=Tn[Un++]|Tn[Un++]<<8,nr=Tn[Un++]|Tn[Un++]<<8,rr=Tn[Un++]|Tn[Un++]<<8,ir=Tn[Un++]|Tn[Un++]<<8,or=Tn[Un++],ar=or>>6&1,sr=1<<1+(7&or),lr=zn,cr=Kn,ur=!1;or>>7&&(ur=!0,lr=Un,cr=sr,Un+=3*sr);var dr=Un;for(Un++;;){var hr;if(!((hr=Tn[Un++])>=0))throw Error("Invalid block size");if(0===hr)break;Un+=hr}Wn.push({x:tr,y:nr,width:rr,height:ir,has_local_palette:ur,palette_offset:lr,palette_size:cr,data_offset:dr,data_length:Un-dr,transparent_index:Yn,interlaced:!!ar,delay:Xn,disposal:Jn});break;case 59:$n=!1;break;default:throw new Error("Unknown gif block: 0x"+Tn[Un-1].toString(16))}this.numFrames=function(){return Wn.length},this.loopCount=function(){return Zn},this.frameInfo=function(Tn){if(Tn<0||Tn>=Wn.length)throw new Error("Frame index out of range.");return Wn[Tn]},this.decodeAndBlitFrameBGRA=function(Un,Qn){var Hn=this.frameInfo(Un),Gn=Hn.width*Hn.height,Vn=new Uint8Array(Gn);Bt(Tn,Hn.data_offset,Vn,Gn);var zn=Hn.palette_offset,Kn=Hn.transparent_index;null===Kn&&(Kn=256);var $n=Hn.width,Wn=Dn-$n,Xn=$n,Yn=4*(Hn.y*Dn+Hn.x),Jn=4*((Hn.y+Hn.height)*Dn+Hn.x),Zn=Yn,er=4*Wn;!0===Hn.interlaced&&(er+=4*Dn*7);for(var tr=8,nr=0,rr=Vn.length;nr<rr;++nr){var ir=Vn[nr];if(0===Xn&&(Xn=$n,(Zn+=er)>=Jn&&(er=4*Wn+4*Dn*(tr-1),Zn=Yn+($n+Wn)*(tr<<1),tr>>=1)),ir===Kn)Zn+=4;else{var or=Tn[zn+3*ir],ar=Tn[zn+3*ir+1],sr=Tn[zn+3*ir+2];Qn[Zn++]=sr,Qn[Zn++]=ar,Qn[Zn++]=or,Qn[Zn++]=255}--Xn}},this.decodeAndBlitFrameRGBA=function(Un,Qn){var Hn=this.frameInfo(Un),Gn=Hn.width*Hn.height,Vn=new Uint8Array(Gn);Bt(Tn,Hn.data_offset,Vn,Gn);var zn=Hn.palette_offset,Kn=Hn.transparent_index;null===Kn&&(Kn=256);var $n=Hn.width,Wn=Dn-$n,Xn=$n,Yn=4*(Hn.y*Dn+Hn.x),Jn=4*((Hn.y+Hn.height)*Dn+Hn.x),Zn=Yn,er=4*Wn;!0===Hn.interlaced&&(er+=4*Dn*7);for(var tr=8,nr=0,rr=Vn.length;nr<rr;++nr){var ir=Vn[nr];if(0===Xn&&(Xn=$n,(Zn+=er)>=Jn&&(er=4*Wn+4*Dn*(tr-1),Zn=Yn+($n+Wn)*(tr<<1),tr>>=1)),ir===Kn)Zn+=4;else{var or=Tn[zn+3*ir],ar=Tn[zn+3*ir+1],sr=Tn[zn+3*ir+2];Qn[Zn++]=or,Qn[Zn++]=ar,Qn[Zn++]=sr,Qn[Zn++]=255}--Xn}}}function Bt(Tn,Un,Dn,Qn){for(var Hn=Tn[Un++],Gn=1<<Hn,Vn=Gn+1,zn=Vn+1,Kn=Hn+1,$n=(1<<Kn)-1,Wn=0,Xn=0,Yn=0,Jn=Tn[Un++],Zn=new Int32Array(4096),er=null;;){for(;Wn<16&&0!==Jn;)Xn|=Tn[Un++]<<Wn,Wn+=8,1===Jn?Jn=Tn[Un++]:--Jn;if(Wn<Kn)break;var tr=Xn&$n;if(Xn>>=Kn,Wn-=Kn,tr!==Gn){if(tr===Vn)break;for(var nr=tr<zn?tr:er,rr=0,ir=nr;ir>Gn;)ir=Zn[ir]>>8,++rr;var or=ir;if(Yn+rr+(nr!==tr?1:0)>Qn)return void FF.log("Warning, gif stream longer than expected.");Dn[Yn++]=or;var ar=Yn+=rr;for(nr!==tr&&(Dn[Yn++]=or),ir=nr;rr--;)ir=Zn[ir],Dn[--ar]=255&ir,ir>>=8;null!==er&&zn<4096&&(Zn[zn++]=er<<8|or,zn>=$n+1&&Kn<12&&(++Kn,$n=$n<<1|1)),er=tr}else zn=Vn+1,$n=(1<<(Kn=Hn+1))-1,er=null}return Yn!==Qn&&FF.log("Warning, gif stream shorter than expected."),Dn
|
||
/**
|
||
* @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 Ot(Tn){var Un,Dn,Qn,Hn,Gn,Vn=Math.floor,zn=new Array(64),Kn=new Array(64),$n=new Array(64),Wn=new Array(64),Xn=new Array(65535),Yn=new Array(65535),Jn=new Array(64),Zn=new Array(64),er=[],tr=0,nr=7,rr=new Array(64),ir=new Array(64),or=new Array(64),ar=new Array(256),sr=new Array(2048),lr=[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],cr=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],ur=[0,1,2,3,4,5,6,7,8,9,10,11],dr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],hr=[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],pr=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],gr=[0,1,2,3,4,5,6,7,8,9,10,11],fr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ar=[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(Tn,Un){for(var Dn=0,Qn=0,Hn=new Array,Gn=1;Gn<=16;Gn++){for(var Vn=1;Vn<=Tn[Gn];Vn++)Hn[Un[Qn]]=[],Hn[Un[Qn]][0]=Dn,Hn[Un[Qn]][1]=Gn,Qn++,Dn++;Dn*=2}return Hn}function B(Tn){for(var Un=Tn[0],Dn=Tn[1]-1;Dn>=0;)Un&1<<Dn&&(tr|=1<<nr),Dn--,--nr<0&&(255==tr?(O(255),O(0)):O(tr),nr=7,tr=0)}function O(Tn){er.push(Tn)}function M(Tn){O(Tn>>8&255),O(255&Tn)}function E(Tn,Un,Dn,Qn,Hn){for(var Gn,Vn=Hn[0],zn=Hn[240],Kn=function(Tn,Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn=0;for(Wn=0;Wn<8;++Wn){Dn=Tn[Yn],Qn=Tn[Yn+1],Hn=Tn[Yn+2],Gn=Tn[Yn+3],Vn=Tn[Yn+4],zn=Tn[Yn+5],Kn=Tn[Yn+6];var Zn=Dn+($n=Tn[Yn+7]),er=Dn-$n,tr=Qn+Kn,nr=Qn-Kn,rr=Hn+zn,ir=Hn-zn,or=Gn+Vn,ar=Gn-Vn,sr=Zn+or,lr=Zn-or,cr=tr+rr,ur=tr-rr;Tn[Yn]=sr+cr,Tn[Yn+4]=sr-cr;var dr=.707106781*(ur+lr);Tn[Yn+2]=lr+dr,Tn[Yn+6]=lr-dr;var hr=.382683433*((sr=ar+ir)-(ur=nr+er)),pr=.5411961*sr+hr,gr=1.306562965*ur+hr,fr=.707106781*(cr=ir+nr),Ar=er+fr,mr=er-fr;Tn[Yn+5]=mr+pr,Tn[Yn+3]=mr-pr,Tn[Yn+1]=Ar+gr,Tn[Yn+7]=Ar-gr,Yn+=8}for(Yn=0,Wn=0;Wn<8;++Wn){Dn=Tn[Yn],Qn=Tn[Yn+8],Hn=Tn[Yn+16],Gn=Tn[Yn+24],Vn=Tn[Yn+32],zn=Tn[Yn+40],Kn=Tn[Yn+48];var vr=Dn+($n=Tn[Yn+56]),yr=Dn-$n,_r=Qn+Kn,br=Qn-Kn,wr=Hn+zn,xr=Hn-zn,Sr=Gn+Vn,Cr=Gn-Vn,kr=vr+Sr,Br=vr-Sr,Er=_r+wr,Pr=_r-wr;Tn[Yn]=kr+Er,Tn[Yn+32]=kr-Er;var Lr=.707106781*(Pr+Br);Tn[Yn+16]=Br+Lr,Tn[Yn+48]=Br-Lr;var Tr=.382683433*((kr=Cr+xr)-(Pr=br+yr)),Nr=.5411961*kr+Tr,Ir=1.306562965*Pr+Tr,Or=.707106781*(Er=xr+br),Fr=yr+Or,Ur=yr-Or;Tn[Yn+40]=Ur+Nr,Tn[Yn+24]=Ur-Nr,Tn[Yn+8]=Fr+Ir,Tn[Yn+56]=Fr-Ir,Yn++}for(Wn=0;Wn<64;++Wn)Xn=Tn[Wn]*Un[Wn],Jn[Wn]=Xn>0?Xn+.5|0:Xn-.5|0;return Jn}(Tn,Un),$n=0;$n<64;++$n)Zn[lr[$n]]=Kn[$n];var Wn=Zn[0]-Dn;Dn=Zn[0],0==Wn?B(Qn[0]):(B(Qn[Yn[Gn=32767+Wn]]),B(Xn[Gn]));for(var er=63;er>0&&0==Zn[er];)er--;if(0==er)return B(Vn),Dn;for(var tr,nr=1;nr<=er;){for(var rr=nr;0==Zn[nr]&&nr<=er;)++nr;var ir=nr-rr;if(ir>=16){tr=ir>>4;for(var or=1;or<=tr;++or)B(zn);ir&=15}Gn=32767+Zn[nr],B(Hn[(ir<<4)+Yn[Gn]]),B(Xn[Gn]),nr++}return 63!=er&&B(Vn),Dn}function q(Tn){Tn=Math.min(Math.max(Tn,1),100),Gn!=Tn&&(function(Tn){for(var Un=[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],Dn=0;Dn<64;Dn++){var Qn=Vn((Un[Dn]*Tn+50)/100);Qn=Math.min(Math.max(Qn,1),255),zn[lr[Dn]]=Qn}for(var Hn=[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],Gn=0;Gn<64;Gn++){var Xn=Vn((Hn[Gn]*Tn+50)/100);Xn=Math.min(Math.max(Xn,1),255),Kn[lr[Gn]]=Xn}for(var Yn=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Jn=0,Zn=0;Zn<8;Zn++)for(var er=0;er<8;er++)$n[Jn]=1/(zn[lr[Jn]]*Yn[Zn]*Yn[er]*8),Wn[Jn]=1/(Kn[lr[Jn]]*Yn[Zn]*Yn[er]*8),Jn++}(Tn<50?Math.floor(5e3/Tn):Math.floor(200-2*Tn)),Gn=Tn)}this.encode=function(Tn,Gn){Gn&&q(Gn),er=new Array,tr=0,nr=7,M(65496),M(65504),M(16),O(74),O(70),O(73),O(70),O(0),O(1),O(1),O(0),M(1),M(1),O(0),O(0),function(){M(65499),M(132),O(0);for(var Tn=0;Tn<64;Tn++)O(zn[Tn]);O(1);for(var Un=0;Un<64;Un++)O(Kn[Un])}(),function(Tn,Un){M(65472),M(17),O(8),M(Un),M(Tn),O(3),O(1),O(17),O(0),O(2),O(17),O(1),O(3),O(17),O(1)}(Tn.width,Tn.height),function(){M(65476),M(418),O(0);for(var Tn=0;Tn<16;Tn++)O(cr[Tn+1]);for(var Un=0;Un<=11;Un++)O(ur[Un]);O(16);for(var Dn=0;Dn<16;Dn++)O(dr[Dn+1]);for(var Qn=0;Qn<=161;Qn++)O(hr[Qn]);O(1);for(var Hn=0;Hn<16;Hn++)O(pr[Hn+1]);for(var Gn=0;Gn<=11;Gn++)O(gr[Gn]);O(17);for(var Vn=0;Vn<16;Vn++)O(fr[Vn+1]);for(var zn=0;zn<=161;zn++)O(Ar[zn])}(),M(65498),M(12),O(3),O(1),O(0),O(2),O(17),O(3),O(17),O(0),O(63),O(0);var Vn=0,Xn=0,Yn=0;tr=0,nr=7,this.encode.displayName="_encode_";for(var Jn,Zn,ar,lr,mr,vr,yr,_r,br,wr=Tn.data,xr=Tn.width,Sr=Tn.height,Cr=4*xr,kr=0;kr<Sr;){for(Jn=0;Jn<Cr;){for(mr=Cr*kr+Jn,yr=-1,_r=0,br=0;br<64;br++)vr=mr+(_r=br>>3)*Cr+(yr=4*(7&br)),kr+_r>=Sr&&(vr-=Cr*(kr+1+_r-Sr)),Jn+yr>=Cr&&(vr-=Jn+yr-Cr+4),Zn=wr[vr++],ar=wr[vr++],lr=wr[vr++],rr[br]=(sr[Zn]+sr[ar+256>>0]+sr[lr+512>>0]>>16)-128,ir[br]=(sr[Zn+768>>0]+sr[ar+1024>>0]+sr[lr+1280>>0]>>16)-128,or[br]=(sr[Zn+1280>>0]+sr[ar+1536>>0]+sr[lr+1792>>0]>>16)-128;Vn=E(rr,$n,Vn,Un,Qn),Xn=E(ir,Wn,Xn,Dn,Hn),Yn=E(or,Wn,Yn,Dn,Hn),Jn+=32}kr+=8}if(nr>=0){var Br=[];Br[1]=nr+1,Br[0]=(1<<nr+1)-1,B(Br)}return M(65497),new Uint8Array(er)},Tn=Tn||50,function(){for(var Tn=String.fromCharCode,Un=0;Un<256;Un++)ar[Un]=Tn(Un)}(),Un=j(cr,ur),Dn=j(pr,gr),Qn=j(dr,hr),Hn=j(fr,Ar),function(){for(var Tn=1,Un=2,Dn=1;Dn<=15;Dn++){for(var Qn=Tn;Qn<Un;Qn++)Yn[32767+Qn]=Dn,Xn[32767+Qn]=[],Xn[32767+Qn][1]=Dn,Xn[32767+Qn][0]=Qn;for(var Hn=-(Un-1);Hn<=-Tn;Hn++)Yn[32767+Hn]=Dn,Xn[32767+Hn]=[],Xn[32767+Hn][1]=Dn,Xn[32767+Hn][0]=Un-1+Hn;Tn<<=1,Un<<=1}}(),function(){for(var Tn=0;Tn<256;Tn++)sr[Tn]=19595*Tn,sr[Tn+256>>0]=38470*Tn,sr[Tn+512>>0]=7471*Tn+32768,sr[Tn+768>>0]=-11059*Tn,sr[Tn+1024>>0]=-21709*Tn,sr[Tn+1280>>0]=32768*Tn+8421375,sr[Tn+1536>>0]=-27439*Tn,sr[Tn+1792>>0]=-5329*Tn}(),q(Tn)}
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/function Mt(Tn,Un){if(this.pos=0,this.buffer=Tn,this.datav=new DataView(Tn.buffer),this.is_with_alpha=!!Un,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 Et(Tn){function e(Tn){if(!Tn)throw Error("assert :P")}function n(Tn,Un,Dn){for(var Qn=0;4>Qn;Qn++)if(Tn[Un+Qn]!=Dn.charCodeAt(Qn))return!0;return!1}function r(Tn,Un,Dn,Qn,Hn){for(var Gn=0;Gn<Hn;Gn++)Tn[Un+Gn]=Dn[Qn+Gn]}function i(Tn,Un,Dn,Qn){for(var Hn=0;Hn<Qn;Hn++)Tn[Un+Hn]=Dn}function a(Tn){return new Int32Array(Tn)}function o(Tn,Un){for(var Dn=[],Qn=0;Qn<Tn;Qn++)Dn.push(new Un);return Dn}function s(Tn,Un){var Dn=[];return function t(Tn,Dn,Qn){for(var Hn=Qn[Dn],Gn=0;Gn<Hn&&(Tn.push(Qn.length>Dn+1?[]:new Un),!(Qn.length<Dn+1));Gn++)t(Tn[Gn],Dn+1,Qn)}(Dn,0,Tn),Dn}function u(Tn,Un){for(var Dn="",Qn=0;Qn<4;Qn++)Dn+=String.fromCharCode(Tn[Un++]);return Dn}function c(Tn,Un){return(Tn[Un+0]<<0|Tn[Un+1]<<8|Tn[Un+2]<<16)>>>0}function h(Tn,Un){return(Tn[Un+0]<<0|Tn[Un+1]<<8|Tn[Un+2]<<16|Tn[Un+3]<<24)>>>0}new(Et=function Et(){var Tn=this;function u(Tn,Un){for(var Dn=1<<Un-1>>>0;Tn&Dn;)Dn>>>=1;return Dn?(Tn&Dn-1)+Dn:Tn}function c(Tn,Un,Dn,Qn,Hn){e(!(Qn%Dn));do{Tn[Un+(Qn-=Dn)]=Hn}while(0<Qn)}function h(Tn,Un,Dn,Qn,Hn){if(e(2328>=Hn),512>=Hn)var Gn=a(512);else if(null==(Gn=a(Hn)))return 0;return function(Tn,Un,Dn,Qn,Hn,Gn){var Vn,zn,Kn=Un,$n=1<<Dn,Wn=a(16),Xn=a(16);for(e(0!=Hn),e(null!=Qn),e(null!=Tn),e(0<Dn),zn=0;zn<Hn;++zn){if(15<Qn[zn])return 0;++Wn[Qn[zn]]}if(Wn[0]==Hn)return 0;for(Xn[1]=0,Vn=1;15>Vn;++Vn){if(Wn[Vn]>1<<Vn)return 0;Xn[Vn+1]=Xn[Vn]+Wn[Vn]}for(zn=0;zn<Hn;++zn)Vn=Qn[zn],0<Qn[zn]&&(Gn[Xn[Vn]++]=zn);if(1==Xn[15])return(Qn=new l).g=0,Qn.value=Gn[0],c(Tn,Kn,1,$n,Qn),$n;var Yn,Jn=-1,Zn=$n-1,er=0,tr=1,nr=1,rr=1<<Dn;for(zn=0,Vn=1,Hn=2;Vn<=Dn;++Vn,Hn<<=1){if(tr+=nr<<=1,0>(nr-=Wn[Vn]))return 0;for(;0<Wn[Vn];--Wn[Vn])(Qn=new l).g=Vn,Qn.value=Gn[zn++],c(Tn,Kn+er,Hn,rr,Qn),er=u(er,Vn)}for(Vn=Dn+1,Hn=2;15>=Vn;++Vn,Hn<<=1){if(tr+=nr<<=1,0>(nr-=Wn[Vn]))return 0;for(;0<Wn[Vn];--Wn[Vn]){if(Qn=new l,(er&Zn)!=Jn){for(Kn+=rr,Yn=1<<(Jn=Vn)-Dn;15>Jn&&!(0>=(Yn-=Wn[Jn]));)++Jn,Yn<<=1;$n+=rr=1<<(Yn=Jn-Dn),Tn[Un+(Jn=er&Zn)].g=Yn+Dn,Tn[Un+Jn].value=Kn-Un-Jn}Qn.g=Vn-Dn,Qn.value=Gn[zn++],c(Tn,Kn+(er>>Dn),Hn,rr,Qn),er=u(er,Vn)}}return tr!=2*Xn[15]-1?0:$n}(Tn,Un,Dn,Qn,Hn,Gn)}function l(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,l),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Un,f)}function p(Tn,Un,Dn,Qn){e(null!=Tn),e(null!=Un),e(2147483648>Qn),Tn.Ca=254,Tn.I=0,Tn.b=-8,Tn.Ka=0,Tn.oa=Un,Tn.pa=Dn,Tn.Jd=Un,Tn.Yc=Dn+Qn,Tn.Zc=4<=Qn?Dn+Qn-4+1:Dn,S(Tn)}function g(Tn,Un){for(var Dn=0;0<Un--;)Dn|=k(Tn,128)<<Un;return Dn}function m(Tn,Un){var Dn=g(Tn,Un);return P(Tn)?-Dn:Dn}function v(Tn,Un,Dn,Qn){var Hn,Gn=0;for(e(null!=Tn),e(null!=Un),e(4294967288>Qn),Tn.Sb=Qn,Tn.Ra=0,Tn.u=0,Tn.h=0,4<Qn&&(Qn=4),Hn=0;Hn<Qn;++Hn)Gn+=Un[Dn+Hn]<<8*Hn;Tn.Ra=Gn,Tn.bb=Qn,Tn.oa=Un,Tn.pa=Dn}function b(Tn){for(;8<=Tn.u&&Tn.bb<Tn.Sb;)Tn.Ra>>>=8,Tn.Ra+=Tn.oa[Tn.pa+Tn.bb]<<Hn-8>>>0,++Tn.bb,Tn.u-=8;x(Tn)&&(Tn.h=1,Tn.u=0)}function y(Tn,Un){if(e(0<=Un),!Tn.h&&Un<=Qn){var Hn=L(Tn)&Dn[Un];return Tn.u+=Un,b(Tn),Hn}return Tn.h=1,Tn.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(Tn){return Tn.Ra>>>(Tn.u&Hn-1)>>>0}function x(Tn){return e(Tn.bb<=Tn.Sb),Tn.h||Tn.bb==Tn.Sb&&Tn.u>Hn}function A(Tn,Un){Tn.u=Un,Tn.h=x(Tn)}function _(Tn){Tn.u>=Gn&&(e(Tn.u>=Gn),b(Tn))}function S(Tn){e(null!=Tn&&null!=Tn.oa),Tn.pa<Tn.Zc?(Tn.I=(Tn.oa[Tn.pa++]|Tn.I<<8)>>>0,Tn.b+=8):(e(null!=Tn&&null!=Tn.oa),Tn.pa<Tn.Yc?(Tn.b+=8,Tn.I=Tn.oa[Tn.pa++]|Tn.I<<8):Tn.Ka?Tn.b=0:(Tn.I<<=8,Tn.b+=8,Tn.Ka=1))}function P(Tn){return g(Tn,1)}function k(Tn,Un){var Dn=Tn.Ca;0>Tn.b&&S(Tn);var Qn=Tn.b,Hn=Dn*Un>>>8,Gn=(Tn.I>>>Qn>Hn)+0;for(Gn?(Dn-=Hn,Tn.I-=Hn+1<<Qn>>>0):Dn=Hn+1,Qn=Dn,Hn=0;256<=Qn;)Hn+=8,Qn>>=8;return Qn=7^Hn+Vn[Qn],Tn.b-=Qn,Tn.Ca=(Dn<<Qn)-1,Gn}function F(Tn,Un,Dn){Tn[Un+0]=Dn>>24&255,Tn[Un+1]=Dn>>16&255,Tn[Un+2]=Dn>>8&255,Tn[Un+3]=Dn>>0&255}function I(Tn,Un){return Tn[Un+0]<<0|Tn[Un+1]<<8}function C(Tn,Un){return I(Tn,Un)|Tn[Un+2]<<16}function j(Tn,Un){return I(Tn,Un)|I(Tn,Un+2)<<16}function B(Tn,Un){var Dn=1<<Un;return e(null!=Tn),e(0<Un),Tn.X=a(Dn),null==Tn.X?0:(Tn.Mb=32-Un,Tn.Xa=Un,1)}function O(Tn,Un){e(null!=Tn),e(null!=Un),e(Tn.Xa==Un.Xa),r(Un.X,0,Tn.X,0,1<<Un.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function E(Tn,Un,Dn,Qn){e(null!=Dn),e(null!=Qn);var Hn=Dn[0],Gn=Qn[0];return 0==Hn&&(Hn=(Tn*Gn+Un/2)/Un),0==Gn&&(Gn=(Un*Hn+Tn/2)/Tn),0>=Hn||0>=Gn?0:(Dn[0]=Hn,Qn[0]=Gn,1)}function q(Tn,Un){return Tn+(1<<Un)-1>>>Un}function R(Tn,Un){return((4278255360&Tn)+(4278255360&Un)>>>0&4278255360)+((16711935&Tn)+(16711935&Un)>>>0&16711935)>>>0}function T(Un,Dn){Tn[Dn]=function(Dn,Qn,Hn,Gn,Vn,zn,Kn){var $n;for($n=0;$n<Vn;++$n){var Wn=Tn[Un](zn[Kn+$n-1],Hn,Gn+$n);zn[Kn+$n]=R(Dn[Qn+$n],Wn)}}}function D(){this.ud=this.hd=this.jd=0}function U(Tn,Un){return((4278124286&(Tn^Un))>>>1)+(Tn&Un)>>>0}function z(Tn){return 0<=Tn&&256>Tn?Tn:0>Tn?0:255<Tn?255:void 0}function H(Tn,Un){return z(Tn+(Tn-Un+.5>>1))}function W(Tn,Un,Dn){return Math.abs(Un-Dn)-Math.abs(Tn-Dn)}function V(Tn,Un,Dn,Qn,Hn,Gn,Vn){for(Qn=Gn[Vn-1],Dn=0;Dn<Hn;++Dn)Gn[Vn+Dn]=Qn=R(Tn[Un+Dn],Qn)}function G(Tn,Un,Dn,Qn,Hn){var Gn;for(Gn=0;Gn<Dn;++Gn){var Vn=Tn[Un+Gn],zn=Vn>>8&255,Kn=16711935&(Kn=(Kn=16711935&Vn)+((zn<<16)+zn));Qn[Hn+Gn]=(4278255360&Vn)+Kn>>>0}}function Y(Tn,Un){Un.jd=Tn>>0&255,Un.hd=Tn>>8&255,Un.ud=Tn>>16&255}function J(Tn,Un,Dn,Qn,Hn,Gn){var Vn;for(Vn=0;Vn<Qn;++Vn){var zn=Un[Dn+Vn],Kn=zn>>>8,$n=zn,Wn=255&(Wn=(Wn=zn>>>16)+((Tn.jd<<24>>24)*(Kn<<24>>24)>>>5));$n=255&($n=($n+=(Tn.hd<<24>>24)*(Kn<<24>>24)>>>5)+((Tn.ud<<24>>24)*(Wn<<24>>24)>>>5)),Hn[Gn+Vn]=(4278255360&zn)+(Wn<<16)+$n}}function X(Un,Dn,Qn,Hn,Gn){Tn[Dn]=function(Tn,Un,Dn,Qn,Vn,zn,Kn,$n,Wn){for(Qn=Kn;Qn<$n;++Qn)for(Kn=0;Kn<Wn;++Kn)Vn[zn++]=Gn(Dn[Hn(Tn[Un++])])},Tn[Un]=function(Un,Dn,Vn,zn,Kn,$n,Wn){var Xn=8>>Un.b,Yn=Un.Ea,Jn=Un.K[0],Zn=Un.w;if(8>Xn)for(Un=(1<<Un.b)-1,Zn=(1<<Xn)-1;Dn<Vn;++Dn){var er,tr=0;for(er=0;er<Yn;++er)er&Un||(tr=Hn(zn[Kn++])),$n[Wn++]=Gn(Jn[tr&Zn]),tr>>=Xn}else Tn["VP8LMapColor"+Qn](zn,Kn,Jn,Zn,$n,Wn,Dn,Vn,Yn)}}function K(Tn,Un,Dn,Qn,Hn){for(Dn=Un+Dn;Un<Dn;){var Gn=Tn[Un++];Qn[Hn++]=Gn>>16&255,Qn[Hn++]=Gn>>8&255,Qn[Hn++]=Gn>>0&255}}function Z(Tn,Un,Dn,Qn,Hn){for(Dn=Un+Dn;Un<Dn;){var Gn=Tn[Un++];Qn[Hn++]=Gn>>16&255,Qn[Hn++]=Gn>>8&255,Qn[Hn++]=Gn>>0&255,Qn[Hn++]=Gn>>24&255}}function $(Tn,Un,Dn,Qn,Hn){for(Dn=Un+Dn;Un<Dn;){var Gn=(Vn=Tn[Un++])>>16&240|Vn>>12&15,Vn=Vn>>0&240|Vn>>28&15;Qn[Hn++]=Gn,Qn[Hn++]=Vn}}function Q(Tn,Un,Dn,Qn,Hn){for(Dn=Un+Dn;Un<Dn;){var Gn=(Vn=Tn[Un++])>>16&248|Vn>>13&7,Vn=Vn>>5&224|Vn>>3&31;Qn[Hn++]=Gn,Qn[Hn++]=Vn}}function tt(Tn,Un,Dn,Qn,Hn){for(Dn=Un+Dn;Un<Dn;){var Gn=Tn[Un++];Qn[Hn++]=Gn>>0&255,Qn[Hn++]=Gn>>8&255,Qn[Hn++]=Gn>>16&255}}function et(Tn,Un,Dn,Qn,Hn,Gn){if(0==Gn)for(Dn=Un+Dn;Un<Dn;)F(Qn,((Gn=Tn[Un++])[0]>>24|Gn[1]>>8&65280|Gn[2]<<8&16711680|Gn[3]<<24)>>>0),Hn+=32;else r(Qn,Hn,Tn,Un,Dn)}function nt(Un,Dn){Tn[Dn][0]=Tn[Un+"0"],Tn[Dn][1]=Tn[Un+"1"],Tn[Dn][2]=Tn[Un+"2"],Tn[Dn][3]=Tn[Un+"3"],Tn[Dn][4]=Tn[Un+"4"],Tn[Dn][5]=Tn[Un+"5"],Tn[Dn][6]=Tn[Un+"6"],Tn[Dn][7]=Tn[Un+"7"],Tn[Dn][8]=Tn[Un+"8"],Tn[Dn][9]=Tn[Un+"9"],Tn[Dn][10]=Tn[Un+"10"],Tn[Dn][11]=Tn[Un+"11"],Tn[Dn][12]=Tn[Un+"12"],Tn[Dn][13]=Tn[Un+"13"],Tn[Dn][14]=Tn[Un+"0"],Tn[Dn][15]=Tn[Un+"0"]}function rt(Tn){return Tn==Vr||Tn==zr||Tn==Kr||Tn==qr}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(Tn){return alert("todo:WebPSamplerProcessPlane"),Tn.T}function ht(Tn,Un){var Dn=Tn.T,Qn=Un.ba.f.RGBA,Hn=Qn.eb,Gn=Qn.fb+Tn.ka*Qn.A,Vn=yi[Un.ba.S],zn=Tn.y,Kn=Tn.O,$n=Tn.f,Wn=Tn.N,Xn=Tn.ea,Yn=Tn.W,Jn=Un.cc,Zn=Un.dc,er=Un.Mc,tr=Un.Nc,nr=Tn.ka,rr=Tn.ka+Tn.T,ir=Tn.U,or=ir+1>>1;for(0==nr?Vn(zn,Kn,null,null,$n,Wn,Xn,Yn,$n,Wn,Xn,Yn,Hn,Gn,null,null,ir):(Vn(Un.ec,Un.fc,zn,Kn,Jn,Zn,er,tr,$n,Wn,Xn,Yn,Hn,Gn-Qn.A,Hn,Gn,ir),++Dn);nr+2<rr;nr+=2)Jn=$n,Zn=Wn,er=Xn,tr=Yn,Wn+=Tn.Rc,Yn+=Tn.Rc,Gn+=2*Qn.A,Vn(zn,(Kn+=2*Tn.fa)-Tn.fa,zn,Kn,Jn,Zn,er,tr,$n,Wn,Xn,Yn,Hn,Gn-Qn.A,Hn,Gn,ir);return Kn+=Tn.fa,Tn.j+rr<Tn.o?(r(Un.ec,Un.fc,zn,Kn,ir),r(Un.cc,Un.dc,$n,Wn,or),r(Un.Mc,Un.Nc,Xn,Yn,or),Dn--):1&rr||Vn(zn,Kn,null,null,$n,Wn,Xn,Yn,$n,Wn,Xn,Yn,Hn,Gn+Qn.A,null,null,ir),Dn}function lt(Tn,Un,Dn){var Qn=Tn.F,Hn=[Tn.J];if(null!=Qn){var Gn=Tn.U,Vn=Un.ba.S,zn=Vn==Qr||Vn==Kr;Un=Un.ba.f.RGBA;var Kn=[0],$n=Tn.ka;Kn[0]=Tn.T,Tn.Kb&&(0==$n?--Kn[0]:(--$n,Hn[0]-=Tn.width),Tn.j+Tn.ka+Tn.T==Tn.o&&(Kn[0]=Tn.o-Tn.j-$n));var Wn=Un.eb;$n=Un.fb+$n*Un.A,Tn=kr(Qn,Hn[0],Tn.width,Gn,Kn,Wn,$n+(zn?0:3),Un.A),e(Dn==Kn),Tn&&rt(Vn)&&Sr(Wn,$n,zn,Gn,Kn,Un.A)}return 0}function ft(Tn){var Un=Tn.ma,Dn=Un.ba.S,Qn=11>Dn,Hn=Dn==Rr||Dn==jr||Dn==Qr||Dn==Hr||12==Dn||rt(Dn);if(Un.memory=null,Un.Ib=null,Un.Jb=null,Un.Nd=null,!En(Un.Oa,Tn,Hn?11:12))return 0;if(Hn&&rt(Dn)&&yn(),Tn.da)alert("todo:use_scaling");else{if(Qn){if(Un.Ib=ct,Tn.Kb){if(Dn=Tn.U+1>>1,Un.memory=a(Tn.U+2*Dn),null==Un.memory)return 0;Un.ec=Un.memory,Un.fc=0,Un.cc=Un.ec,Un.dc=Un.fc+Tn.U,Un.Mc=Un.cc,Un.Nc=Un.dc+Dn,Un.Ib=ht,yn()}}else alert("todo:EmitYUV");Hn&&(Un.Jb=lt,Qn&&vn())}if(Qn&&!Oi){for(Tn=0;256>Tn;++Tn)Fi[Tn]=89858*(Tn-128)+Pi>>Ei,Ri[Tn]=-22014*(Tn-128)+Pi,Mi[Tn]=-45773*(Tn-128),Ui[Tn]=113618*(Tn-128)+Pi>>Ei;for(Tn=Li;Tn<Ti;++Tn)Un=76283*(Tn-16)+Pi>>Ei,Di[Tn-Li]=Vt(Un,255),ji[Tn-Li]=Vt(Un+8>>4,15);Oi=1}return 1}function dt(Tn){var Un=Tn.ma,Dn=Tn.U,Qn=Tn.T;return e(!(1&Tn.ka)),0>=Dn||0>=Qn?0:(Dn=Un.Ib(Tn,Un),null!=Un.Jb&&Un.Jb(Tn,Un,Dn),Un.Dc+=Dn,1)}function pt(Tn){Tn.ma.memory=null}function gt(Tn,Un,Dn,Qn){return 47!=y(Tn,8)?0:(Un[0]=y(Tn,14)+1,Dn[0]=y(Tn,14)+1,Qn[0]=y(Tn,1),0!=y(Tn,3)?0:!Tn.h)}function mt(Tn,Un){if(4>Tn)return Tn+1;var Dn=Tn-2>>1;return(2+(1&Tn)<<Dn)+y(Un,Dn)+1}function vt(Tn,Un){return 120<Un?Un-120:1<=(Dn=((Dn=Zr[Un-1])>>4)*Tn+(8-(15&Dn)))?Dn:1;var Dn}function bt(Tn,Un,Dn){var Qn=L(Dn),Hn=Tn[Un+=255&Qn].g-8;return 0<Hn&&(A(Dn,Dn.u+8),Qn=L(Dn),Un+=Tn[Un].value,Un+=Qn&(1<<Hn)-1),A(Dn,Dn.u+Tn[Un].g),Tn[Un].value}function yt(Tn,Un,Dn){return Dn.g+=Tn.g,Dn.value+=Tn.value<<Un>>>0,e(8>=Dn.g),Tn.g}function wt(Tn,Un,Dn){var Qn=Tn.xc;return e((Un=0==Qn?0:Tn.vc[Tn.md*(Dn>>Qn)+(Un>>Qn)])<Tn.Wb),Tn.Ya[Un]}function Nt(Tn,Un,Dn,Qn){var Hn=Tn.ab,Gn=Tn.c*Un,Vn=Tn.C;Un=Vn+Un;var Xn=Dn,Yn=Qn;for(Qn=Tn.Ta,Dn=Tn.Ua;0<Hn--;){var Jn=Tn.gc[Hn],tr=Vn,nr=Un,rr=Xn,ir=Yn,or=(Yn=Qn,Xn=Dn,Jn.Ea);switch(e(tr<nr),e(nr<=Jn.nc),Jn.hc){case 2:$n(rr,ir,(nr-tr)*or,Yn,Xn);break;case 0:var ar=tr,sr=nr,lr=Yn,cr=Xn,ur=(fr=Jn).Ea;0==ar&&(zn(rr,ir,null,null,1,lr,cr),V(rr,ir+1,0,0,ur-1,lr,cr+1),ir+=ur,cr+=ur,++ar);for(var dr=1<<fr.b,hr=dr-1,pr=q(ur,fr.b),gr=fr.K,fr=fr.w+(ar>>fr.b)*pr;ar<sr;){var Ar=gr,mr=fr,vr=1;for(Kn(rr,ir,lr,cr-ur,1,lr,cr);vr<ur;){var yr=(vr&~hr)+dr;yr>ur&&(yr=ur),(0,Zn[Ar[mr++]>>8&15])(rr,ir+ +vr,lr,cr+vr-ur,yr-vr,lr,cr+vr),vr=yr}ir+=ur,cr+=ur,++ar&hr||(fr+=pr)}nr!=Jn.nc&&r(Yn,Xn-or,Yn,Xn+(nr-tr-1)*or,or);break;case 1:for(or=rr,sr=ir,ur=(rr=Jn.Ea)-(cr=rr&~(lr=(ir=1<<Jn.b)-1)),ar=q(rr,Jn.b),dr=Jn.K,Jn=Jn.w+(tr>>Jn.b)*ar;tr<nr;){for(hr=dr,pr=Jn,gr=new D,fr=sr+cr,Ar=sr+rr;sr<fr;)Y(hr[pr++],gr),er(gr,or,sr,ir,Yn,Xn),sr+=ir,Xn+=ir;sr<Ar&&(Y(hr[pr++],gr),er(gr,or,sr,ur,Yn,Xn),sr+=ur,Xn+=ur),++tr&lr||(Jn+=ar)}break;case 3:if(rr==Yn&&ir==Xn&&0<Jn.b){for(sr=Yn,rr=or=Xn+(nr-tr)*or-(cr=(nr-tr)*q(Jn.Ea,Jn.b)),ir=Yn,lr=Xn,ar=[],cr=(ur=cr)-1;0<=cr;--cr)ar[cr]=ir[lr+cr];for(cr=ur-1;0<=cr;--cr)sr[rr+cr]=ar[cr];Wn(Jn,tr,nr,Yn,or,Yn,Xn)}else Wn(Jn,tr,nr,rr,ir,Yn,Xn)}Xn=Qn,Yn=Dn}Yn!=Dn&&r(Qn,Dn,Xn,Yn,Gn)}function Lt(Tn,Un){var Dn=Tn.V,Qn=Tn.Ba+Tn.c*Tn.C,Hn=Un-Tn.C;if(e(Un<=Tn.l.o),e(16>=Hn),0<Hn){var Gn=Tn.l,Vn=Tn.Ta,zn=Tn.Ua,Kn=Gn.width;if(Nt(Tn,Hn,Dn,Qn),Hn=zn=[zn],e((Dn=Tn.C)<(Qn=Un)),e(Gn.v<Gn.va),Qn>Gn.o&&(Qn=Gn.o),Dn<Gn.j){var $n=Gn.j-Dn;Dn=Gn.j,Hn[0]+=$n*Kn}if(Dn>=Qn?Dn=0:(Hn[0]+=4*Gn.v,Gn.ka=Dn-Gn.j,Gn.U=Gn.va-Gn.v,Gn.T=Qn-Dn,Dn=1),Dn){if(zn=zn[0],11>(Dn=Tn.ca).S){var Wn=Dn.f.RGBA,Xn=(Qn=Dn.S,Hn=Gn.U,Gn=Gn.T,$n=Wn.eb,Wn.A),Yn=Gn;for(Wn=Wn.fb+Tn.Ma*Wn.A;0<Yn--;){var Jn=Vn,Zn=zn,er=Hn,ar=$n,sr=Wn;switch(Qn){case Mr:tr(Jn,Zn,er,ar,sr);break;case Rr:nr(Jn,Zn,er,ar,sr);break;case Vr:nr(Jn,Zn,er,ar,sr),Sr(ar,sr,0,er,1,0);break;case Dr:or(Jn,Zn,er,ar,sr);break;case jr:et(Jn,Zn,er,ar,sr,1);break;case zr:et(Jn,Zn,er,ar,sr,1),Sr(ar,sr,0,er,1,0);break;case Qr:et(Jn,Zn,er,ar,sr,0);break;case Kr:et(Jn,Zn,er,ar,sr,0),Sr(ar,sr,1,er,1,0);break;case Hr:rr(Jn,Zn,er,ar,sr);break;case qr:rr(Jn,Zn,er,ar,sr),Cr(ar,sr,er,1,0);break;case Gr:ir(Jn,Zn,er,ar,sr);break;default:e(0)}zn+=Kn,Wn+=Xn}Tn.Ma+=Gn}else alert("todo:EmitRescaledRowsYUVA");e(Tn.Ma<=Dn.height)}}Tn.C=Un,e(Tn.C<=Tn.i)}function xt(Tn){var Un;if(0<Tn.ua)return 0;for(Un=0;Un<Tn.Wb;++Un){var Dn=Tn.Ya[Un].G,Qn=Tn.Ya[Un].H;if(0<Dn[1][Qn[1]+0].g||0<Dn[2][Qn[2]+0].g||0<Dn[3][Qn[3]+0].g)return 0}return 1}function At(Tn,Un,Dn,Qn,Hn,Gn){if(0!=Tn.Z){var Vn=Tn.qd,zn=Tn.rd;for(e(null!=vi[Tn.Z]);Un<Dn;++Un)vi[Tn.Z](Vn,zn,Qn,Hn,Qn,Hn,Gn),Vn=Qn,zn=Hn,Hn+=Gn;Tn.qd=Vn,Tn.rd=zn}}function _t(Tn,Un){var Dn=Tn.l.ma,Qn=0==Dn.Z||1==Dn.Z?Tn.l.j:Tn.C;if(Qn=Tn.C<Qn?Qn:Tn.C,e(Un<=Tn.l.o),Un>Qn){var Hn=Tn.l.width,Gn=Dn.ca,Vn=Dn.tb+Hn*Qn,zn=Tn.V,Kn=Tn.Ba+Tn.c*Qn,$n=Tn.gc;e(1==Tn.ab),e(3==$n[0].hc),Yn($n[0],Qn,Un,zn,Kn,Gn,Vn),At(Dn,Qn,Un,Gn,Vn,Hn)}Tn.C=Tn.Ma=Un}function St(Tn,Dn,Qn,Hn,Gn,Vn,zn){var Kn=Tn.$/Hn,$n=Tn.$%Hn,Wn=Tn.m,Xn=Tn.s,Yn=Qn+Tn.$,Jn=Yn;Gn=Qn+Hn*Gn;var Zn=Qn+Hn*Vn,er=280+Xn.ua,tr=Tn.Pb?Kn:16777216,nr=0<Xn.ua?Xn.Wa:null,rr=Xn.wc,ir=Yn<Zn?wt(Xn,$n,Kn):null;e(Tn.C<Vn),e(Zn<=Gn);var or=!1;e:for(;;){for(;or||Yn<Zn;){var ar=0;if(Kn>=tr){var sr=Yn-Qn;e((tr=Tn).Pb),tr.wd=tr.m,tr.xd=sr,0<tr.s.ua&&O(tr.s.Wa,tr.s.vb),tr=Kn+ti}if($n&rr||(ir=wt(Xn,$n,Kn)),e(null!=ir),ir.Qb&&(Dn[Yn]=ir.qb,or=!0),!or)if(_(Wn),ir.jc){ar=Wn,sr=Dn;var lr=Yn,cr=ir.pd[L(ar)&Un-1];e(ir.jc),256>cr.g?(A(ar,ar.u+cr.g),sr[lr]=cr.value,ar=0):(A(ar,ar.u+cr.g-256),e(256<=cr.value),ar=cr.value),0==ar&&(or=!0)}else ar=bt(ir.G[0],ir.H[0],Wn);if(Wn.h)break;if(or||256>ar){if(!or)if(ir.nd)Dn[Yn]=(ir.qb|ar<<8)>>>0;else{if(_(Wn),or=bt(ir.G[1],ir.H[1],Wn),_(Wn),sr=bt(ir.G[2],ir.H[2],Wn),lr=bt(ir.G[3],ir.H[3],Wn),Wn.h)break;Dn[Yn]=(lr<<24|or<<16|ar<<8|sr)>>>0}if(or=!1,++Yn,++$n>=Hn&&($n=0,++Kn,null!=zn&&Kn<=Vn&&!(Kn%16)&&zn(Tn,Kn),null!=nr))for(;Jn<Yn;)ar=Dn[Jn++],nr.X[(506832829*ar&4294967295)>>>nr.Mb]=ar}else if(280>ar){if(ar=mt(ar-256,Wn),sr=bt(ir.G[4],ir.H[4],Wn),_(Wn),sr=vt(Hn,sr=mt(sr,Wn)),Wn.h)break;if(Yn-Qn<sr||Gn-Yn<ar)break e;for(lr=0;lr<ar;++lr)Dn[Yn+lr]=Dn[Yn+lr-sr];for(Yn+=ar,$n+=ar;$n>=Hn;)$n-=Hn,++Kn,null!=zn&&Kn<=Vn&&!(Kn%16)&&zn(Tn,Kn);if(e(Yn<=Gn),$n&rr&&(ir=wt(Xn,$n,Kn)),null!=nr)for(;Jn<Yn;)ar=Dn[Jn++],nr.X[(506832829*ar&4294967295)>>>nr.Mb]=ar}else{if(!(ar<er))break e;for(or=ar-280,e(null!=nr);Jn<Yn;)ar=Dn[Jn++],nr.X[(506832829*ar&4294967295)>>>nr.Mb]=ar;ar=Yn,e(!(or>>>(sr=nr).Xa)),Dn[ar]=sr.X[or],or=!0}or||e(Wn.h==x(Wn))}if(Tn.Pb&&Wn.h&&Yn<Gn)e(Tn.m.h),Tn.a=5,Tn.m=Tn.wd,Tn.$=Tn.xd,0<Tn.s.ua&&O(Tn.s.vb,Tn.s.Wa);else{if(Wn.h)break e;null!=zn&&zn(Tn,Kn>Vn?Vn:Kn),Tn.a=0,Tn.$=Yn-Qn}return 1}return Tn.a=3,0}function Pt(Tn){e(null!=Tn),Tn.vc=null,Tn.yc=null,Tn.Ya=null;var Un=Tn.Wa;null!=Un&&(Un.X=null),Tn.vb=null,e(null!=Tn)}function kt(){var Un=new sn;return null==Un?null:(Un.a=0,Un.xb=mi,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),$n=G,er=J,tr=K,nr=Z,rr=$,ir=Q,or=tt,Tn.VP8LMapColor32b=Xn,Tn.VP8LMapColor8b=Jn,Un)}function Ft(Tn,Dn,Qn,Hn,Gn){var Vn=1,zn=[Tn],Kn=[Dn],$n=Hn.m,Wn=Hn.s,Xn=null,Yn=0;e:for(;;){if(Qn)for(;Vn&&y($n,1);){var Jn=zn,Zn=Kn,er=Hn,tr=1,nr=er.m,rr=er.gc[er.ab],ir=y(nr,2);if(er.Oc&1<<ir)Vn=0;else{switch(er.Oc|=1<<ir,rr.hc=ir,rr.Ea=Jn[0],rr.nc=Zn[0],rr.K=[null],++er.ab,e(4>=er.ab),ir){case 0:case 1:rr.b=y(nr,3)+2,tr=Ft(q(rr.Ea,rr.b),q(rr.nc,rr.b),0,er,rr.K),rr.K=rr.K[0];break;case 3:var or,ar=y(nr,8)+1,sr=16<ar?0:4<ar?1:2<ar?2:3;if(Jn[0]=q(rr.Ea,sr),rr.b=sr,or=tr=Ft(ar,1,0,er,rr.K)){var lr,cr=ar,ur=rr,dr=1<<(8>>ur.b),hr=a(dr);if(null==hr)or=0;else{var pr=ur.K[0],gr=ur.w;for(hr[0]=ur.K[0][0],lr=1;lr<1*cr;++lr)hr[lr]=R(pr[gr+lr],hr[lr-1]);for(;lr<4*dr;++lr)hr[lr]=0;ur.K[0]=null,ur.K[0]=hr,or=1}}tr=or;break;case 2:break;default:e(0)}Vn=tr}}if(zn=zn[0],Kn=Kn[0],Vn&&y($n,1)&&!(Vn=1<=(Yn=y($n,4))&&11>=Yn)){Hn.a=3;break e}var fr;if(fr=Vn)t:{var Ar,mr,vr,yr=Hn,_r=zn,br=Kn,wr=Yn,xr=Qn,Sr=yr.m,Cr=yr.s,kr=[null],Br=1,Er=0,Pr=ei[wr];n:for(;;){if(xr&&y(Sr,1)){var Lr=y(Sr,3)+2,Tr=q(_r,Lr),Nr=q(br,Lr),Ir=Tr*Nr;if(!Ft(Tr,Nr,0,yr,kr))break n;for(kr=kr[0],Cr.xc=Lr,Ar=0;Ar<Ir;++Ar){var Or=kr[Ar]>>8&65535;kr[Ar]=Or,Or>=Br&&(Br=Or+1)}}if(Sr.h)break n;for(mr=0;5>mr;++mr){var Fr=Xr[mr];!mr&&0<wr&&(Fr+=1<<wr),Er<Fr&&(Er=Fr)}var Ur=o(Br*Pr,l),Mr=Br,Rr=o(Mr,d);if(null==Rr)var Dr=null;else e(65536>=Mr),Dr=Rr;var jr=a(Er);if(null==Dr||null==jr||null==Ur){yr.a=1;break n}var Qr=Ur;for(Ar=vr=0;Ar<Br;++Ar){var Hr=Dr[Ar],Gr=Hr.G,Vr=Hr.H,zr=0,Kr=1,qr=0;for(mr=0;5>mr;++mr){Fr=Xr[mr],Gr[mr]=Qr,Vr[mr]=vr,!mr&&0<wr&&(Fr+=1<<wr);r:{var Zr,ti=Fr,ni=yr,ri=jr,ii=Qr,oi=vr,ai=0,si=ni.m,li=y(si,1);if(i(ri,0,0,ti),li){var ui=y(si,1)+1,di=y(si,1),hi=y(si,0==di?1:8);ri[hi]=1,2==ui&&(ri[hi=y(si,8)]=1);var pi=1}else{var gi=a(19),fi=y(si,4)+4;if(19<fi){ni.a=3;var mi=0;break r}for(Zr=0;Zr<fi;++Zr)gi[Jr[Zr]]=y(si,3);var vi=void 0,yi=void 0,_i=ni,wi=gi,xi=ti,Si=ri,Ci=0,ki=_i.m,Bi=8,Ei=o(128,l);i:for(;h(Ei,0,7,wi,19);){if(y(ki,1)){var Pi=2+2*y(ki,3);if((vi=2+y(ki,Pi))>xi)break i}else vi=xi;for(yi=0;yi<xi&&vi--;){_(ki);var Li=Ei[0+(127&L(ki))];A(ki,ki.u+Li.g);var Ti=Li.value;if(16>Ti)Si[yi++]=Ti,0!=Ti&&(Bi=Ti);else{var Ni=16==Ti,Ii=Ti-16,Oi=Wr[Ii],Fi=y(ki,$r[Ii])+Oi;if(yi+Fi>xi)break i;for(var Ui=Ni?Bi:0;0<Fi--;)Si[yi++]=Ui}}Ci=1;break i}Ci||(_i.a=3),pi=Ci}(pi=pi&&!si.h)&&(ai=h(ii,oi,8,ri,ti)),pi&&0!=ai?mi=ai:(ni.a=3,mi=0)}if(0==mi)break n;if(Kr&&1==Yr[mr]&&(Kr=0==Qr[vr].g),zr+=Qr[vr].g,vr+=mi,3>=mr){var Mi,Ri=jr[0];for(Mi=1;Mi<Fr;++Mi)jr[Mi]>Ri&&(Ri=jr[Mi]);qr+=Ri}}if(Hr.nd=Kr,Hr.Qb=0,Kr&&(Hr.qb=(Gr[3][Vr[3]+0].value<<24|Gr[1][Vr[1]+0].value<<16|Gr[2][Vr[2]+0].value)>>>0,0==zr&&256>Gr[0][Vr[0]+0].value&&(Hr.Qb=1,Hr.qb+=Gr[0][Vr[0]+0].value<<8)),Hr.jc=!Hr.Qb&&6>qr,Hr.jc){var Di,ji=Hr;for(Di=0;Di<Un;++Di){var Qi=Di,Hi=ji.pd[Qi],Gi=ji.G[0][ji.H[0]+Qi];256<=Gi.value?(Hi.g=Gi.g+256,Hi.value=Gi.value):(Hi.g=0,Hi.value=0,Qi>>=yt(Gi,8,Hi),Qi>>=yt(ji.G[1][ji.H[1]+Qi],16,Hi),Qi>>=yt(ji.G[2][ji.H[2]+Qi],0,Hi),yt(ji.G[3][ji.H[3]+Qi],24,Hi))}}}Cr.vc=kr,Cr.Wb=Br,Cr.Ya=Dr,Cr.yc=Ur,fr=1;break t}fr=0}if(!(Vn=fr)){Hn.a=3;break e}if(0<Yn){if(Wn.ua=1<<Yn,!B(Wn.Wa,Yn)){Hn.a=1,Vn=0;break e}}else Wn.ua=0;var Vi=Hn,zi=zn,Ki=Kn,qi=Vi.s,$i=qi.xc;if(Vi.c=zi,Vi.i=Ki,qi.md=q(zi,$i),qi.wc=0==$i?-1:(1<<$i)-1,Qn){Hn.xb=Ai;break e}if(null==(Xn=a(zn*Kn))){Hn.a=1,Vn=0;break e}Vn=(Vn=St(Hn,Xn,0,zn,Kn,Kn,null))&&!$n.h;break e}return Vn?(null!=Gn?Gn[0]=Xn:(e(null==Xn),e(Qn)),Hn.$=0,Qn||Pt(Wn)):Pt(Wn),Vn}function It(Tn,Un){var Dn=Tn.c*Tn.i,Qn=Dn+Un+16*Un;return e(Tn.c<=Un),Tn.V=a(Qn),null==Tn.V?(Tn.Ta=null,Tn.Ua=0,Tn.a=1,0):(Tn.Ta=Tn.V,Tn.Ua=Tn.Ba+Dn+Un,1)}function Ct(Tn,Un){var Dn=Tn.C,Qn=Un-Dn,Hn=Tn.V,Gn=Tn.Ba+Tn.c*Dn;for(e(Un<=Tn.l.o);0<Qn;){var Vn=16<Qn?16:Qn,zn=Tn.l.ma,Kn=Tn.l.width,$n=Kn*Vn,Wn=zn.ca,Xn=zn.tb+Kn*Dn,Yn=Tn.Ta,Jn=Tn.Ua;Nt(Tn,Vn,Hn,Gn),Br(Yn,Jn,Wn,Xn,$n),At(zn,Dn,Dn+Vn,Wn,Xn,Kn),Qn-=Vn,Hn+=Vn*Tn.c,Dn+=Vn}e(Dn==Un),Tn.C=Tn.Ma=Un}function jt(){this.ub=this.yd=this.td=this.Rb=0}function Bt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ot(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Mt(){this.Yb=function(){var Tn=[];return function t(Tn,Un,Dn){for(var Qn=Dn[Un],Hn=0;Hn<Qn&&(Tn.push(Dn.length>Un+1?[]:0),!(Dn.length<Un+1));Hn++)t(Tn[Hn],Un+1,Dn)}(Tn,0,[3,11]),Tn}()}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 Tt(){this.Na=this.la=0}function Dt(){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 Wt(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new jt,this.Kc=new Bt,this.ed=new qt,this.Qa=new Ot,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,Dt),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 Tt),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 Vt(Tn,Un){return 0>Tn?0:Tn>Un?Un:Tn}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 Tn=new Wt;return null!=Tn&&(Tn.a=0,Tn.sc="OK",Tn.cb=0,Tn.Xb=0,ii||(ii=Zt)),Tn}function Jt(Tn,Un,Dn){return 0==Tn.a&&(Tn.a=Un,Tn.sc=Dn,Tn.cb=0),0}function Xt(Tn,Un,Dn){return 3<=Dn&&157==Tn[Un+0]&&1==Tn[Un+1]&&42==Tn[Un+2]}function Kt(Tn,Un){if(null==Tn)return 0;if(Tn.a=0,Tn.sc="OK",null==Un)return Jt(Tn,2,"null VP8Io passed to VP8GetHeaders()");var Dn=Un.data,Qn=Un.w,Hn=Un.ha;if(4>Hn)return Jt(Tn,7,"Truncated header.");var Gn=Dn[Qn+0]|Dn[Qn+1]<<8|Dn[Qn+2]<<16,Vn=Tn.Od;if(Vn.Rb=!(1&Gn),Vn.td=Gn>>1&7,Vn.yd=Gn>>4&1,Vn.ub=Gn>>5,3<Vn.td)return Jt(Tn,3,"Incorrect keyframe parameters.");if(!Vn.yd)return Jt(Tn,4,"Frame not displayable.");Qn+=3,Hn-=3;var zn=Tn.Kc;if(Vn.Rb){if(7>Hn)return Jt(Tn,7,"cannot parse picture header");if(!Xt(Dn,Qn,Hn))return Jt(Tn,3,"Bad code word");zn.c=16383&(Dn[Qn+4]<<8|Dn[Qn+3]),zn.Td=Dn[Qn+4]>>6,zn.i=16383&(Dn[Qn+6]<<8|Dn[Qn+5]),zn.Ud=Dn[Qn+6]>>6,Qn+=7,Hn-=7,Tn.za=zn.c+15>>4,Tn.Ub=zn.i+15>>4,Un.width=zn.c,Un.height=zn.i,Un.Da=0,Un.j=0,Un.v=0,Un.va=Un.width,Un.o=Un.height,Un.da=0,Un.ib=Un.width,Un.hb=Un.height,Un.U=Un.width,Un.T=Un.height,i((Gn=Tn.Pa).jb,0,255,Gn.jb.length),e(null!=(Gn=Tn.Qa)),Gn.Cb=0,Gn.Bb=0,Gn.Fb=1,i(Gn.Zb,0,0,Gn.Zb.length),i(Gn.Lb,0,0,Gn.Lb)}if(Vn.ub>Hn)return Jt(Tn,7,"bad partition length");p(Gn=Tn.m,Dn,Qn,Vn.ub),Qn+=Vn.ub,Hn-=Vn.ub,Vn.Rb&&(zn.Ld=P(Gn),zn.Kd=P(Gn)),zn=Tn.Qa;var Kn,$n=Tn.Pa;if(e(null!=Gn),e(null!=zn),zn.Cb=P(Gn),zn.Cb){if(zn.Bb=P(Gn),P(Gn)){for(zn.Fb=P(Gn),Kn=0;4>Kn;++Kn)zn.Zb[Kn]=P(Gn)?m(Gn,7):0;for(Kn=0;4>Kn;++Kn)zn.Lb[Kn]=P(Gn)?m(Gn,6):0}if(zn.Bb)for(Kn=0;3>Kn;++Kn)$n.jb[Kn]=P(Gn)?g(Gn,8):255}else zn.Bb=0;if(Gn.Ka)return Jt(Tn,3,"cannot parse segment header");if((zn=Tn.ed).zd=P(Gn),zn.Tb=g(Gn,6),zn.wb=g(Gn,3),zn.Pc=P(Gn),zn.Pc&&P(Gn)){for($n=0;4>$n;++$n)P(Gn)&&(zn.vd[$n]=m(Gn,6));for($n=0;4>$n;++$n)P(Gn)&&(zn.od[$n]=m(Gn,6))}if(Tn.L=0==zn.Tb?0:zn.zd?1:2,Gn.Ka)return Jt(Tn,3,"cannot parse filter header");var Wn=Hn;if(Hn=Kn=Qn,Qn=Kn+Wn,zn=Wn,Tn.Xb=(1<<g(Tn.m,2))-1,Wn<3*($n=Tn.Xb))Dn=7;else{for(Kn+=3*$n,zn-=3*$n,Wn=0;Wn<$n;++Wn){var Xn=Dn[Hn+0]|Dn[Hn+1]<<8|Dn[Hn+2]<<16;Xn>zn&&(Xn=zn),p(Tn.Jc[+Wn],Dn,Kn,Xn),Kn+=Xn,zn-=Xn,Hn+=3}p(Tn.Jc[+$n],Dn,Kn,zn),Dn=Kn<Qn?0:5}if(0!=Dn)return Jt(Tn,Dn,"cannot parse partitions");for(Dn=g(Kn=Tn.m,7),Hn=P(Kn)?m(Kn,4):0,Qn=P(Kn)?m(Kn,4):0,zn=P(Kn)?m(Kn,4):0,$n=P(Kn)?m(Kn,4):0,Kn=P(Kn)?m(Kn,4):0,Wn=Tn.Qa,Xn=0;4>Xn;++Xn){if(Wn.Cb){var Yn=Wn.Zb[Xn];Wn.Fb||(Yn+=Dn)}else{if(0<Xn){Tn.pb[Xn]=Tn.pb[0];continue}Yn=Dn}var Jn=Tn.pb[Xn];Jn.Sc[0]=ni[Vt(Yn+Hn,127)],Jn.Sc[1]=ri[Vt(Yn+0,127)],Jn.Eb[0]=2*ni[Vt(Yn+Qn,127)],Jn.Eb[1]=101581*ri[Vt(Yn+zn,127)]>>16,8>Jn.Eb[1]&&(Jn.Eb[1]=8),Jn.Qc[0]=ni[Vt(Yn+$n,117)],Jn.Qc[1]=ri[Vt(Yn+Kn,127)],Jn.lc=Yn+Kn}if(!Vn.Rb)return Jt(Tn,4,"Not a key frame.");for(P(Gn),Vn=Tn.Pa,Dn=0;4>Dn;++Dn){for(Hn=0;8>Hn;++Hn)for(Qn=0;3>Qn;++Qn)for(zn=0;11>zn;++zn)$n=k(Gn,di[Dn][Hn][Qn][zn])?g(Gn,8):li[Dn][Hn][Qn][zn],Vn.Wc[Dn][Hn].Yb[Qn][zn]=$n;for(Hn=0;17>Hn;++Hn)Vn.Xc[Dn][Hn]=Vn.Wc[Dn][hi[Hn]]}return Tn.kc=P(Gn),Tn.kc&&(Tn.Bd=g(Gn,8)),Tn.cb=1}function Zt(Tn,Un,Dn,Qn,Hn,Gn,Vn){var zn=Un[Hn].Yb[Dn];for(Dn=0;16>Hn;++Hn){if(!k(Tn,zn[Dn+0]))return Hn;for(;!k(Tn,zn[Dn+1]);)if(zn=Un[++Hn].Yb[0],Dn=0,16==Hn)return 16;var Kn=Un[Hn+1].Yb;if(k(Tn,zn[Dn+2])){var $n=Tn,Wn=0;if(k($n,(Yn=zn)[(Xn=Dn)+3]))if(k($n,Yn[Xn+6])){for(zn=0,Xn=2*(Wn=k($n,Yn[Xn+8]))+(Yn=k($n,Yn[Xn+9+Wn])),Wn=0,Yn=oi[Xn];Yn[zn];++zn)Wn+=Wn+k($n,Yn[zn]);Wn+=3+(8<<Xn)}else k($n,Yn[Xn+7])?(Wn=7+2*k($n,165),Wn+=k($n,145)):Wn=5+k($n,159);else Wn=k($n,Yn[Xn+4])?3+k($n,Yn[Xn+5]):2;zn=Kn[2]}else Wn=1,zn=Kn[1];Kn=Vn+ai[Hn],0>($n=Tn).b&&S($n);var Xn,Yn=$n.b,Jn=(Xn=$n.Ca>>1)-($n.I>>Yn)>>31;--$n.b,$n.Ca+=Jn,$n.Ca|=1,$n.I-=(Xn+1&Jn)<<Yn,Gn[Kn]=((Wn^Jn)-Jn)*Qn[(0<Hn)+0]}return 16}function $t(Tn){var Un=Tn.rb[Tn.sb-1];Un.la=0,Un.Na=0,i(Tn.zc,0,0,Tn.zc.length),Tn.ja=0}function Qt(Tn,Un){if(null==Tn)return 0;if(null==Un)return Jt(Tn,2,"NULL VP8Io parameter in VP8Decode().");if(!Tn.cb&&!Kt(Tn,Un))return 0;if(e(Tn.cb),null==Un.ac||Un.ac(Un)){Un.ob&&(Tn.L=0);var Dn=Hi[Tn.L];if(2==Tn.L?(Tn.yb=0,Tn.zb=0):(Tn.yb=Un.v-Dn>>4,Tn.zb=Un.j-Dn>>4,0>Tn.yb&&(Tn.yb=0),0>Tn.zb&&(Tn.zb=0)),Tn.Va=Un.o+15+Dn>>4,Tn.Hb=Un.va+15+Dn>>4,Tn.Hb>Tn.za&&(Tn.Hb=Tn.za),Tn.Va>Tn.Ub&&(Tn.Va=Tn.Ub),0<Tn.L){var Qn=Tn.ed;for(Dn=0;4>Dn;++Dn){var Hn;if(Tn.Qa.Cb){var Gn=Tn.Qa.Lb[Dn];Tn.Qa.Fb||(Gn+=Qn.Tb)}else Gn=Qn.Tb;for(Hn=0;1>=Hn;++Hn){var Vn=Tn.gd[Dn][Hn],zn=Gn;if(Qn.Pc&&(zn+=Qn.vd[0],Hn&&(zn+=Qn.od[0])),0<(zn=0>zn?0:63<zn?63:zn)){var Kn=zn;0<Qn.wb&&(Kn=4<Qn.wb?Kn>>2:Kn>>1)>9-Qn.wb&&(Kn=9-Qn.wb),1>Kn&&(Kn=1),Vn.dd=Kn,Vn.tc=2*zn+Kn,Vn.ld=40<=zn?2:15<=zn?1:0}else Vn.tc=0;Vn.La=Hn}}}Dn=0}else Jt(Tn,6,"Frame setup failed"),Dn=Tn.a;if(Dn=0==Dn){if(Dn){Tn.$c=0,0<Tn.Aa||(Tn.Ic=Vi);e:{Dn=Tn.Ic,Qn=4*(Kn=Tn.za);var $n=32*Kn,Wn=Kn+1,Xn=0<Tn.L?Kn*(0<Tn.Aa?2:1):0,Yn=(2==Tn.Aa?2:1)*Kn;if((Vn=Qn+832+(Hn=3*(16*Dn+Hi[Tn.L])/2*$n)+(Gn=null!=Tn.Fa&&0<Tn.Fa.length?Tn.Kc.c*Tn.Kc.i:0))!=Vn)Dn=0;else{if(Vn>Tn.Vb){if(Tn.Vb=0,Tn.Ec=a(Vn),Tn.Fc=0,null==Tn.Ec){Dn=Jt(Tn,1,"no memory during frame initialization.");break e}Tn.Vb=Vn}Vn=Tn.Ec,zn=Tn.Fc,Tn.Ac=Vn,Tn.Bc=zn,zn+=Qn,Tn.Gd=o($n,Ht),Tn.Hd=0,Tn.rb=o(Wn+1,Tt),Tn.sb=1,Tn.wa=Xn?o(Xn,Rt):null,Tn.Y=0,Tn.D.Nb=0,Tn.D.wa=Tn.wa,Tn.D.Y=Tn.Y,0<Tn.Aa&&(Tn.D.Y+=Kn),e(!0),Tn.oc=Vn,Tn.pc=zn,zn+=832,Tn.ya=o(Yn,Ut),Tn.aa=0,Tn.D.ya=Tn.ya,Tn.D.aa=Tn.aa,2==Tn.Aa&&(Tn.D.aa+=Kn),Tn.R=16*Kn,Tn.B=8*Kn,Kn=($n=Hi[Tn.L])*Tn.R,$n=$n/2*Tn.B,Tn.sa=Vn,Tn.ta=zn+Kn,Tn.qa=Tn.sa,Tn.ra=Tn.ta+16*Dn*Tn.R+$n,Tn.Ha=Tn.qa,Tn.Ia=Tn.ra+8*Dn*Tn.B+$n,Tn.$c=0,zn+=Hn,Tn.mb=Gn?Vn:null,Tn.nb=Gn?zn:null,e(zn+Gn<=Tn.Fc+Tn.Vb),$t(Tn),i(Tn.Ac,Tn.Bc,0,Qn),Dn=1}}if(Dn){if(Un.ka=0,Un.y=Tn.sa,Un.O=Tn.ta,Un.f=Tn.qa,Un.N=Tn.ra,Un.ea=Tn.Ha,Un.Vd=Tn.Ia,Un.fa=Tn.R,Un.Rc=Tn.B,Un.F=null,Un.J=0,!Nr){for(Dn=-255;255>=Dn;++Dn)Er[255+Dn]=0>Dn?-Dn:Dn;for(Dn=-1020;1020>=Dn;++Dn)Pr[1020+Dn]=-128>Dn?-128:127<Dn?127:Dn;for(Dn=-112;112>=Dn;++Dn)Lr[112+Dn]=-16>Dn?-16:15<Dn?15:Dn;for(Dn=-255;510>=Dn;++Dn)Tr[255+Dn]=0>Dn?0:255<Dn?255:Dn;Nr=1}ar=ce,sr=ae,cr=oe,ur=se,dr=ue,lr=ie,hr=Je,pr=Xe,gr=$e,fr=Qe,Ar=Ke,mr=Ze,vr=tn,yr=en,_r=ze,br=He,wr=We,xr=Ve,gi[0]=Ae,gi[1]=le,gi[2]=Le,gi[3]=xe,gi[4]=_e,gi[5]=Pe,gi[6]=Se,gi[7]=ke,gi[8]=Ie,gi[9]=Fe,pi[0]=ve,pi[1]=de,pi[2]=pe,pi[3]=ge,pi[4]=be,pi[5]=ye,pi[6]=we,fi[0]=Oe,fi[1]=fe,fi[2]=Ce,fi[3]=je,fi[4]=Ee,fi[5]=Me,fi[6]=qe,Dn=1}else Dn=0}Dn&&(Dn=function(Tn,Un){for(Tn.M=0;Tn.M<Tn.Va;++Tn.M){var Dn,Qn=Tn.Jc[Tn.M&Tn.Xb],Hn=Tn.m,Gn=Tn;for(Dn=0;Dn<Gn.za;++Dn){var Vn=Hn,zn=Gn,Kn=zn.Ac,$n=zn.Bc+4*Dn,Wn=zn.zc,Xn=zn.ya[zn.aa+Dn];if(zn.Qa.Bb?Xn.$b=k(Vn,zn.Pa.jb[0])?2+k(Vn,zn.Pa.jb[2]):k(Vn,zn.Pa.jb[1]):Xn.$b=0,zn.kc&&(Xn.Ad=k(Vn,zn.Bd)),Xn.Za=!k(Vn,145)+0,Xn.Za){var Yn=Xn.Ob,Jn=0;for(zn=0;4>zn;++zn){var Zn,er=Wn[0+zn];for(Zn=0;4>Zn;++Zn){er=ui[Kn[$n+Zn]][er];for(var tr=si[k(Vn,er[0])];0<tr;)tr=si[2*tr+k(Vn,er[tr])];er=-tr,Kn[$n+Zn]=er}r(Yn,Jn,Kn,$n,4),Jn+=4,Wn[0+zn]=er}}else er=k(Vn,156)?k(Vn,128)?1:3:k(Vn,163)?2:0,Xn.Ob[0]=er,i(Kn,$n,er,4),i(Wn,0,er,4);Xn.Dd=k(Vn,142)?k(Vn,114)?k(Vn,183)?1:3:2:0}if(Gn.m.Ka)return Jt(Tn,7,"Premature end-of-partition0 encountered.");for(;Tn.ja<Tn.za;++Tn.ja){if(Gn=Qn,Vn=(Hn=Tn).rb[Hn.sb-1],Kn=Hn.rb[Hn.sb+Hn.ja],Dn=Hn.ya[Hn.aa+Hn.ja],$n=Hn.kc?Dn.Ad:0)Vn.la=Kn.la=0,Dn.Za||(Vn.Na=Kn.Na=0),Dn.Hc=0,Dn.Gc=0,Dn.ia=0;else{var nr,rr;if(Vn=Kn,Kn=Gn,$n=Hn.Pa.Xc,Wn=Hn.ya[Hn.aa+Hn.ja],Xn=Hn.pb[Wn.$b],zn=Wn.ad,Yn=0,Jn=Hn.rb[Hn.sb-1],er=Zn=0,i(zn,Yn,0,384),Wn.Za)var ir=0,or=$n[3];else{tr=a(16);var sr=Vn.Na+Jn.Na;if(sr=ii(Kn,$n[1],sr,Xn.Eb,0,tr,0),Vn.Na=Jn.Na=(0<sr)+0,1<sr)ar(tr,0,zn,Yn);else{var lr=tr[0]+3>>3;for(tr=0;256>tr;tr+=16)zn[Yn+tr]=lr}ir=1,or=$n[0]}var cr=15&Vn.la,ur=15&Jn.la;for(tr=0;4>tr;++tr){var dr=1&ur;for(lr=rr=0;4>lr;++lr)cr=cr>>1|(dr=(sr=ii(Kn,or,sr=dr+(1&cr),Xn.Sc,ir,zn,Yn))>ir)<<7,rr=rr<<2|(3<sr?3:1<sr?2:0!=zn[Yn+0]),Yn+=16;cr>>=4,ur=ur>>1|dr<<7,Zn=(Zn<<8|rr)>>>0}for(or=cr,ir=ur>>4,nr=0;4>nr;nr+=2){for(rr=0,cr=Vn.la>>4+nr,ur=Jn.la>>4+nr,tr=0;2>tr;++tr){for(dr=1&ur,lr=0;2>lr;++lr)sr=dr+(1&cr),cr=cr>>1|(dr=0<(sr=ii(Kn,$n[2],sr,Xn.Qc,0,zn,Yn)))<<3,rr=rr<<2|(3<sr?3:1<sr?2:0!=zn[Yn+0]),Yn+=16;cr>>=2,ur=ur>>1|dr<<5}er|=rr<<4*nr,or|=cr<<4<<nr,ir|=(240&ur)<<nr}Vn.la=or,Jn.la=ir,Wn.Hc=Zn,Wn.Gc=er,Wn.ia=43690&er?0:Xn.ia,$n=!(Zn|er)}if(0<Hn.L&&(Hn.wa[Hn.Y+Hn.ja]=Hn.gd[Dn.$b][Dn.Za],Hn.wa[Hn.Y+Hn.ja].La|=!$n),Gn.Ka)return Jt(Tn,7,"Premature end-of-file encountered.")}if($t(Tn),Hn=Un,Gn=1,Dn=(Qn=Tn).D,Vn=0<Qn.L&&Qn.M>=Qn.zb&&Qn.M<=Qn.Va,0==Qn.Aa)e:{if(Dn.M=Qn.M,Dn.uc=Vn,On(Qn,Dn),Gn=1,Dn=(rr=Qn.D).Nb,Vn=(er=Hi[Qn.L])*Qn.R,Kn=er/2*Qn.B,tr=16*Dn*Qn.R,lr=8*Dn*Qn.B,$n=Qn.sa,Wn=Qn.ta-Vn+tr,Xn=Qn.qa,zn=Qn.ra-Kn+lr,Yn=Qn.Ha,Jn=Qn.Ia-Kn+lr,ur=0==(cr=rr.M),Zn=cr>=Qn.Va-1,2==Qn.Aa&&On(Qn,rr),rr.uc)for(dr=(sr=Qn).D.M,e(sr.D.uc),rr=sr.yb;rr<sr.Hb;++rr){ir=rr,or=dr;var Sr=(Cr=(Or=sr).D).Nb;nr=Or.R;var Cr=Cr.wa[Cr.Y+ir],kr=Or.sa,Br=Or.ta+16*Sr*nr+16*ir,Er=Cr.dd,Pr=Cr.tc;if(0!=Pr)if(e(3<=Pr),1==Or.L)0<ir&&br(kr,Br,nr,Pr+4),Cr.La&&xr(kr,Br,nr,Pr),0<or&&_r(kr,Br,nr,Pr+4),Cr.La&&wr(kr,Br,nr,Pr);else{var Lr=Or.B,Tr=Or.qa,Nr=Or.ra+8*Sr*Lr+8*ir,Ir=Or.Ha,Or=Or.Ia+8*Sr*Lr+8*ir;Sr=Cr.ld,0<ir&&(pr(kr,Br,nr,Pr+4,Er,Sr),fr(Tr,Nr,Ir,Or,Lr,Pr+4,Er,Sr)),Cr.La&&(mr(kr,Br,nr,Pr,Er,Sr),yr(Tr,Nr,Ir,Or,Lr,Pr,Er,Sr)),0<or&&(hr(kr,Br,nr,Pr+4,Er,Sr),gr(Tr,Nr,Ir,Or,Lr,Pr+4,Er,Sr)),Cr.La&&(Ar(kr,Br,nr,Pr,Er,Sr),vr(Tr,Nr,Ir,Or,Lr,Pr,Er,Sr))}}if(Qn.ia&&alert("todo:DitherRow"),null!=Hn.put){if(rr=16*cr,cr=16*(cr+1),ur?(Hn.y=Qn.sa,Hn.O=Qn.ta+tr,Hn.f=Qn.qa,Hn.N=Qn.ra+lr,Hn.ea=Qn.Ha,Hn.W=Qn.Ia+lr):(rr-=er,Hn.y=$n,Hn.O=Wn,Hn.f=Xn,Hn.N=zn,Hn.ea=Yn,Hn.W=Jn),Zn||(cr-=er),cr>Hn.o&&(cr=Hn.o),Hn.F=null,Hn.J=null,null!=Qn.Fa&&0<Qn.Fa.length&&rr<cr&&(Hn.J=fn(Qn,Hn,rr,cr-rr),Hn.F=Qn.mb,null==Hn.F&&0==Hn.F.length)){Gn=Jt(Qn,3,"Could not decode alpha data.");break e}rr<Hn.j&&(er=Hn.j-rr,rr=Hn.j,e(!(1&er)),Hn.O+=Qn.R*er,Hn.N+=Qn.B*(er>>1),Hn.W+=Qn.B*(er>>1),null!=Hn.F&&(Hn.J+=Hn.width*er)),rr<cr&&(Hn.O+=Hn.v,Hn.N+=Hn.v>>1,Hn.W+=Hn.v>>1,null!=Hn.F&&(Hn.J+=Hn.v),Hn.ka=rr-Hn.j,Hn.U=Hn.va-Hn.v,Hn.T=cr-rr,Gn=Hn.put(Hn))}Dn+1!=Qn.Ic||Zn||(r(Qn.sa,Qn.ta-Vn,$n,Wn+16*Qn.R,Vn),r(Qn.qa,Qn.ra-Kn,Xn,zn+8*Qn.B,Kn),r(Qn.Ha,Qn.Ia-Kn,Yn,Jn+8*Qn.B,Kn))}if(!Gn)return Jt(Tn,6,"Output aborted.")}return 1}(Tn,Un)),null!=Un.bc&&Un.bc(Un),Dn&=1}return Dn?(Tn.cb=0,Dn):0}function te(Tn,Un,Dn,Qn,Hn){Hn=Tn[Un+Dn+32*Qn]+(Hn>>3),Tn[Un+Dn+32*Qn]=-256&Hn?0>Hn?0:255:Hn}function ee(Tn,Un,Dn,Qn,Hn,Gn){te(Tn,Un,0,Dn,Qn+Hn),te(Tn,Un,1,Dn,Qn+Gn),te(Tn,Un,2,Dn,Qn-Gn),te(Tn,Un,3,Dn,Qn-Hn)}function ne(Tn){return(20091*Tn>>16)+Tn}function re(Tn,Un,Dn,Qn){var Hn,Gn=0,Vn=a(16);for(Hn=0;4>Hn;++Hn){var zn=Tn[Un+0]+Tn[Un+8],Kn=Tn[Un+0]-Tn[Un+8],$n=(35468*Tn[Un+4]>>16)-ne(Tn[Un+12]),Wn=ne(Tn[Un+4])+(35468*Tn[Un+12]>>16);Vn[Gn+0]=zn+Wn,Vn[Gn+1]=Kn+$n,Vn[Gn+2]=Kn-$n,Vn[Gn+3]=zn-Wn,Gn+=4,Un++}for(Hn=Gn=0;4>Hn;++Hn)zn=(Tn=Vn[Gn+0]+4)+Vn[Gn+8],Kn=Tn-Vn[Gn+8],$n=(35468*Vn[Gn+4]>>16)-ne(Vn[Gn+12]),te(Dn,Qn,0,0,zn+(Wn=ne(Vn[Gn+4])+(35468*Vn[Gn+12]>>16))),te(Dn,Qn,1,0,Kn+$n),te(Dn,Qn,2,0,Kn-$n),te(Dn,Qn,3,0,zn-Wn),Gn++,Qn+=32}function ie(Tn,Un,Dn,Qn){var Hn=Tn[Un+0]+4,Gn=35468*Tn[Un+4]>>16,Vn=ne(Tn[Un+4]),zn=35468*Tn[Un+1]>>16;ee(Dn,Qn,0,Hn+Vn,Tn=ne(Tn[Un+1]),zn),ee(Dn,Qn,1,Hn+Gn,Tn,zn),ee(Dn,Qn,2,Hn-Gn,Tn,zn),ee(Dn,Qn,3,Hn-Vn,Tn,zn)}function ae(Tn,Un,Dn,Qn,Hn){re(Tn,Un,Dn,Qn),Hn&&re(Tn,Un+16,Dn,Qn+4)}function oe(Tn,Un,Dn,Qn){sr(Tn,Un+0,Dn,Qn,1),sr(Tn,Un+32,Dn,Qn+128,1)}function se(Tn,Un,Dn,Qn){var Hn;for(Tn=Tn[Un+0]+4,Hn=0;4>Hn;++Hn)for(Un=0;4>Un;++Un)te(Dn,Qn,Un,Hn,Tn)}function ue(Tn,Un,Dn,Qn){Tn[Un+0]&&ur(Tn,Un+0,Dn,Qn),Tn[Un+16]&&ur(Tn,Un+16,Dn,Qn+4),Tn[Un+32]&&ur(Tn,Un+32,Dn,Qn+128),Tn[Un+48]&&ur(Tn,Un+48,Dn,Qn+128+4)}function ce(Tn,Un,Dn,Qn){var Hn,Gn=a(16);for(Hn=0;4>Hn;++Hn){var Vn=Tn[Un+0+Hn]+Tn[Un+12+Hn],zn=Tn[Un+4+Hn]+Tn[Un+8+Hn],Kn=Tn[Un+4+Hn]-Tn[Un+8+Hn],$n=Tn[Un+0+Hn]-Tn[Un+12+Hn];Gn[0+Hn]=Vn+zn,Gn[8+Hn]=Vn-zn,Gn[4+Hn]=$n+Kn,Gn[12+Hn]=$n-Kn}for(Hn=0;4>Hn;++Hn)Vn=(Tn=Gn[0+4*Hn]+3)+Gn[3+4*Hn],zn=Gn[1+4*Hn]+Gn[2+4*Hn],Kn=Gn[1+4*Hn]-Gn[2+4*Hn],$n=Tn-Gn[3+4*Hn],Dn[Qn+0]=Vn+zn>>3,Dn[Qn+16]=$n+Kn>>3,Dn[Qn+32]=Vn-zn>>3,Dn[Qn+48]=$n-Kn>>3,Qn+=64}function he(Tn,Un,Dn){var Qn,Hn=Un-32,Gn=Fr,Vn=255-Tn[Hn-1];for(Qn=0;Qn<Dn;++Qn){var zn,Kn=Gn,$n=Vn+Tn[Un-1];for(zn=0;zn<Dn;++zn)Tn[Un+zn]=Kn[$n+Tn[Hn+zn]];Un+=32}}function le(Tn,Un){he(Tn,Un,4)}function fe(Tn,Un){he(Tn,Un,8)}function de(Tn,Un){he(Tn,Un,16)}function pe(Tn,Un){var Dn;for(Dn=0;16>Dn;++Dn)r(Tn,Un+32*Dn,Tn,Un-32,16)}function ge(Tn,Un){var Dn;for(Dn=16;0<Dn;--Dn)i(Tn,Un,Tn[Un-1],16),Un+=32}function me(Tn,Un,Dn){var Qn;for(Qn=0;16>Qn;++Qn)i(Un,Dn+32*Qn,Tn,16)}function ve(Tn,Un){var Dn,Qn=16;for(Dn=0;16>Dn;++Dn)Qn+=Tn[Un-1+32*Dn]+Tn[Un+Dn-32];me(Qn>>5,Tn,Un)}function be(Tn,Un){var Dn,Qn=8;for(Dn=0;16>Dn;++Dn)Qn+=Tn[Un-1+32*Dn];me(Qn>>4,Tn,Un)}function ye(Tn,Un){var Dn,Qn=8;for(Dn=0;16>Dn;++Dn)Qn+=Tn[Un+Dn-32];me(Qn>>4,Tn,Un)}function we(Tn,Un){me(128,Tn,Un)}function Ne(Tn,Un,Dn){return Tn+2*Un+Dn+2>>2}function Le(Tn,Un){var Dn,Qn=Un-32;for(Qn=new Uint8Array([Ne(Tn[Qn-1],Tn[Qn+0],Tn[Qn+1]),Ne(Tn[Qn+0],Tn[Qn+1],Tn[Qn+2]),Ne(Tn[Qn+1],Tn[Qn+2],Tn[Qn+3]),Ne(Tn[Qn+2],Tn[Qn+3],Tn[Qn+4])]),Dn=0;4>Dn;++Dn)r(Tn,Un+32*Dn,Qn,0,Qn.length)}function xe(Tn,Un){var Dn=Tn[Un-1],Qn=Tn[Un-1+32],Hn=Tn[Un-1+64],Gn=Tn[Un-1+96];F(Tn,Un+0,16843009*Ne(Tn[Un-1-32],Dn,Qn)),F(Tn,Un+32,16843009*Ne(Dn,Qn,Hn)),F(Tn,Un+64,16843009*Ne(Qn,Hn,Gn)),F(Tn,Un+96,16843009*Ne(Hn,Gn,Gn))}function Ae(Tn,Un){var Dn,Qn=4;for(Dn=0;4>Dn;++Dn)Qn+=Tn[Un+Dn-32]+Tn[Un-1+32*Dn];for(Qn>>=3,Dn=0;4>Dn;++Dn)i(Tn,Un+32*Dn,Qn,4)}function _e(Tn,Un){var Dn=Tn[Un-1+0],Qn=Tn[Un-1+32],Hn=Tn[Un-1+64],Gn=Tn[Un-1-32],Vn=Tn[Un+0-32],zn=Tn[Un+1-32],Kn=Tn[Un+2-32],$n=Tn[Un+3-32];Tn[Un+0+96]=Ne(Qn,Hn,Tn[Un-1+96]),Tn[Un+1+96]=Tn[Un+0+64]=Ne(Dn,Qn,Hn),Tn[Un+2+96]=Tn[Un+1+64]=Tn[Un+0+32]=Ne(Gn,Dn,Qn),Tn[Un+3+96]=Tn[Un+2+64]=Tn[Un+1+32]=Tn[Un+0+0]=Ne(Vn,Gn,Dn),Tn[Un+3+64]=Tn[Un+2+32]=Tn[Un+1+0]=Ne(zn,Vn,Gn),Tn[Un+3+32]=Tn[Un+2+0]=Ne(Kn,zn,Vn),Tn[Un+3+0]=Ne($n,Kn,zn)}function Se(Tn,Un){var Dn=Tn[Un+1-32],Qn=Tn[Un+2-32],Hn=Tn[Un+3-32],Gn=Tn[Un+4-32],Vn=Tn[Un+5-32],zn=Tn[Un+6-32],Kn=Tn[Un+7-32];Tn[Un+0+0]=Ne(Tn[Un+0-32],Dn,Qn),Tn[Un+1+0]=Tn[Un+0+32]=Ne(Dn,Qn,Hn),Tn[Un+2+0]=Tn[Un+1+32]=Tn[Un+0+64]=Ne(Qn,Hn,Gn),Tn[Un+3+0]=Tn[Un+2+32]=Tn[Un+1+64]=Tn[Un+0+96]=Ne(Hn,Gn,Vn),Tn[Un+3+32]=Tn[Un+2+64]=Tn[Un+1+96]=Ne(Gn,Vn,zn),Tn[Un+3+64]=Tn[Un+2+96]=Ne(Vn,zn,Kn),Tn[Un+3+96]=Ne(zn,Kn,Kn)}function Pe(Tn,Un){var Dn=Tn[Un-1+0],Qn=Tn[Un-1+32],Hn=Tn[Un-1+64],Gn=Tn[Un-1-32],Vn=Tn[Un+0-32],zn=Tn[Un+1-32],Kn=Tn[Un+2-32],$n=Tn[Un+3-32];Tn[Un+0+0]=Tn[Un+1+64]=Gn+Vn+1>>1,Tn[Un+1+0]=Tn[Un+2+64]=Vn+zn+1>>1,Tn[Un+2+0]=Tn[Un+3+64]=zn+Kn+1>>1,Tn[Un+3+0]=Kn+$n+1>>1,Tn[Un+0+96]=Ne(Hn,Qn,Dn),Tn[Un+0+64]=Ne(Qn,Dn,Gn),Tn[Un+0+32]=Tn[Un+1+96]=Ne(Dn,Gn,Vn),Tn[Un+1+32]=Tn[Un+2+96]=Ne(Gn,Vn,zn),Tn[Un+2+32]=Tn[Un+3+96]=Ne(Vn,zn,Kn),Tn[Un+3+32]=Ne(zn,Kn,$n)}function ke(Tn,Un){var Dn=Tn[Un+0-32],Qn=Tn[Un+1-32],Hn=Tn[Un+2-32],Gn=Tn[Un+3-32],Vn=Tn[Un+4-32],zn=Tn[Un+5-32],Kn=Tn[Un+6-32],$n=Tn[Un+7-32];Tn[Un+0+0]=Dn+Qn+1>>1,Tn[Un+1+0]=Tn[Un+0+64]=Qn+Hn+1>>1,Tn[Un+2+0]=Tn[Un+1+64]=Hn+Gn+1>>1,Tn[Un+3+0]=Tn[Un+2+64]=Gn+Vn+1>>1,Tn[Un+0+32]=Ne(Dn,Qn,Hn),Tn[Un+1+32]=Tn[Un+0+96]=Ne(Qn,Hn,Gn),Tn[Un+2+32]=Tn[Un+1+96]=Ne(Hn,Gn,Vn),Tn[Un+3+32]=Tn[Un+2+96]=Ne(Gn,Vn,zn),Tn[Un+3+64]=Ne(Vn,zn,Kn),Tn[Un+3+96]=Ne(zn,Kn,$n)}function Fe(Tn,Un){var Dn=Tn[Un-1+0],Qn=Tn[Un-1+32],Hn=Tn[Un-1+64],Gn=Tn[Un-1+96];Tn[Un+0+0]=Dn+Qn+1>>1,Tn[Un+2+0]=Tn[Un+0+32]=Qn+Hn+1>>1,Tn[Un+2+32]=Tn[Un+0+64]=Hn+Gn+1>>1,Tn[Un+1+0]=Ne(Dn,Qn,Hn),Tn[Un+3+0]=Tn[Un+1+32]=Ne(Qn,Hn,Gn),Tn[Un+3+32]=Tn[Un+1+64]=Ne(Hn,Gn,Gn),Tn[Un+3+64]=Tn[Un+2+64]=Tn[Un+0+96]=Tn[Un+1+96]=Tn[Un+2+96]=Tn[Un+3+96]=Gn}function Ie(Tn,Un){var Dn=Tn[Un-1+0],Qn=Tn[Un-1+32],Hn=Tn[Un-1+64],Gn=Tn[Un-1+96],Vn=Tn[Un-1-32],zn=Tn[Un+0-32],Kn=Tn[Un+1-32],$n=Tn[Un+2-32];Tn[Un+0+0]=Tn[Un+2+32]=Dn+Vn+1>>1,Tn[Un+0+32]=Tn[Un+2+64]=Qn+Dn+1>>1,Tn[Un+0+64]=Tn[Un+2+96]=Hn+Qn+1>>1,Tn[Un+0+96]=Gn+Hn+1>>1,Tn[Un+3+0]=Ne(zn,Kn,$n),Tn[Un+2+0]=Ne(Vn,zn,Kn),Tn[Un+1+0]=Tn[Un+3+32]=Ne(Dn,Vn,zn),Tn[Un+1+32]=Tn[Un+3+64]=Ne(Qn,Dn,Vn),Tn[Un+1+64]=Tn[Un+3+96]=Ne(Hn,Qn,Dn),Tn[Un+1+96]=Ne(Gn,Hn,Qn)}function Ce(Tn,Un){var Dn;for(Dn=0;8>Dn;++Dn)r(Tn,Un+32*Dn,Tn,Un-32,8)}function je(Tn,Un){var Dn;for(Dn=0;8>Dn;++Dn)i(Tn,Un,Tn[Un-1],8),Un+=32}function Be(Tn,Un,Dn){var Qn;for(Qn=0;8>Qn;++Qn)i(Un,Dn+32*Qn,Tn,8)}function Oe(Tn,Un){var Dn,Qn=8;for(Dn=0;8>Dn;++Dn)Qn+=Tn[Un+Dn-32]+Tn[Un-1+32*Dn];Be(Qn>>4,Tn,Un)}function Me(Tn,Un){var Dn,Qn=4;for(Dn=0;8>Dn;++Dn)Qn+=Tn[Un+Dn-32];Be(Qn>>3,Tn,Un)}function Ee(Tn,Un){var Dn,Qn=4;for(Dn=0;8>Dn;++Dn)Qn+=Tn[Un-1+32*Dn];Be(Qn>>3,Tn,Un)}function qe(Tn,Un){Be(128,Tn,Un)}function Re(Tn,Un,Dn){var Qn=Tn[Un-Dn],Hn=Tn[Un+0],Gn=3*(Hn-Qn)+Ir[1020+Tn[Un-2*Dn]-Tn[Un+Dn]],Vn=Or[112+(Gn+4>>3)];Tn[Un-Dn]=Fr[255+Qn+Or[112+(Gn+3>>3)]],Tn[Un+0]=Fr[255+Hn-Vn]}function Te(Tn,Un,Dn,Qn){var Hn=Tn[Un+0],Gn=Tn[Un+Dn];return Ur[255+Tn[Un-2*Dn]-Tn[Un-Dn]]>Qn||Ur[255+Gn-Hn]>Qn}function De(Tn,Un,Dn,Qn){return 4*Ur[255+Tn[Un-Dn]-Tn[Un+0]]+Ur[255+Tn[Un-2*Dn]-Tn[Un+Dn]]<=Qn}function Ue(Tn,Un,Dn,Qn,Hn){var Gn=Tn[Un-3*Dn],Vn=Tn[Un-2*Dn],zn=Tn[Un-Dn],Kn=Tn[Un+0],$n=Tn[Un+Dn],Wn=Tn[Un+2*Dn],Xn=Tn[Un+3*Dn];return 4*Ur[255+zn-Kn]+Ur[255+Vn-$n]>Qn?0:Ur[255+Tn[Un-4*Dn]-Gn]<=Hn&&Ur[255+Gn-Vn]<=Hn&&Ur[255+Vn-zn]<=Hn&&Ur[255+Xn-Wn]<=Hn&&Ur[255+Wn-$n]<=Hn&&Ur[255+$n-Kn]<=Hn}function ze(Tn,Un,Dn,Qn){var Hn=2*Qn+1;for(Qn=0;16>Qn;++Qn)De(Tn,Un+Qn,Dn,Hn)&&Re(Tn,Un+Qn,Dn)}function He(Tn,Un,Dn,Qn){var Hn=2*Qn+1;for(Qn=0;16>Qn;++Qn)De(Tn,Un+Qn*Dn,1,Hn)&&Re(Tn,Un+Qn*Dn,1)}function We(Tn,Un,Dn,Qn){var Hn;for(Hn=3;0<Hn;--Hn)ze(Tn,Un+=4*Dn,Dn,Qn)}function Ve(Tn,Un,Dn,Qn){var Hn;for(Hn=3;0<Hn;--Hn)He(Tn,Un+=4,Dn,Qn)}function Ge(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){for(Gn=2*Gn+1;0<Hn--;){if(Ue(Tn,Un,Dn,Gn,Vn))if(Te(Tn,Un,Dn,zn))Re(Tn,Un,Dn);else{var Kn=Tn,$n=Un,Wn=Dn,Xn=Kn[$n-2*Wn],Yn=Kn[$n-Wn],Jn=Kn[$n+0],Zn=Kn[$n+Wn],er=Kn[$n+2*Wn],tr=27*(rr=Ir[1020+3*(Jn-Yn)+Ir[1020+Xn-Zn]])+63>>7,nr=18*rr+63>>7,rr=9*rr+63>>7;Kn[$n-3*Wn]=Fr[255+Kn[$n-3*Wn]+rr],Kn[$n-2*Wn]=Fr[255+Xn+nr],Kn[$n-Wn]=Fr[255+Yn+tr],Kn[$n+0]=Fr[255+Jn-tr],Kn[$n+Wn]=Fr[255+Zn-nr],Kn[$n+2*Wn]=Fr[255+er-rr]}Un+=Qn}}function Ye(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){for(Gn=2*Gn+1;0<Hn--;){if(Ue(Tn,Un,Dn,Gn,Vn))if(Te(Tn,Un,Dn,zn))Re(Tn,Un,Dn);else{var Kn=Tn,$n=Un,Wn=Dn,Xn=Kn[$n-Wn],Yn=Kn[$n+0],Jn=Kn[$n+Wn],Zn=Or[112+(4+(er=3*(Yn-Xn))>>3)],er=Or[112+(er+3>>3)],tr=Zn+1>>1;Kn[$n-2*Wn]=Fr[255+Kn[$n-2*Wn]+tr],Kn[$n-Wn]=Fr[255+Xn+er],Kn[$n+0]=Fr[255+Yn-Zn],Kn[$n+Wn]=Fr[255+Jn-tr]}Un+=Qn}}function Je(Tn,Un,Dn,Qn,Hn,Gn){Ge(Tn,Un,Dn,1,16,Qn,Hn,Gn)}function Xe(Tn,Un,Dn,Qn,Hn,Gn){Ge(Tn,Un,1,Dn,16,Qn,Hn,Gn)}function Ke(Tn,Un,Dn,Qn,Hn,Gn){var Vn;for(Vn=3;0<Vn;--Vn)Ye(Tn,Un+=4*Dn,Dn,1,16,Qn,Hn,Gn)}function Ze(Tn,Un,Dn,Qn,Hn,Gn){var Vn;for(Vn=3;0<Vn;--Vn)Ye(Tn,Un+=4,1,Dn,16,Qn,Hn,Gn)}function $e(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){Ge(Tn,Un,Hn,1,8,Gn,Vn,zn),Ge(Dn,Qn,Hn,1,8,Gn,Vn,zn)}function Qe(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){Ge(Tn,Un,1,Hn,8,Gn,Vn,zn),Ge(Dn,Qn,1,Hn,8,Gn,Vn,zn)}function tn(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){Ye(Tn,Un+4*Hn,Hn,1,8,Gn,Vn,zn),Ye(Dn,Qn+4*Hn,Hn,1,8,Gn,Vn,zn)}function en(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){Ye(Tn,Un+4,1,Hn,8,Gn,Vn,zn),Ye(Dn,Qn+4,1,Hn,8,Gn,Vn,zn)}function nn(){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 rn(){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 an(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function on(){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 l}function sn(){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 on,this.ab=0,this.gc=o(4,an),this.Oc=0}function un(){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 cn(Tn,Un,Dn,Qn,Hn,Gn,Vn){for(Tn=null==Tn?0:Tn[Un+0],Un=0;Un<Vn;++Un)Hn[Gn+Un]=Tn+Dn[Qn+Un]&255,Tn=Hn[Gn+Un]}function hn(Tn,Un,Dn,Qn,Hn,Gn,Vn){var zn;if(null==Tn)cn(null,null,Dn,Qn,Hn,Gn,Vn);else for(zn=0;zn<Vn;++zn)Hn[Gn+zn]=Tn[Un+zn]+Dn[Qn+zn]&255}function ln(Tn,Un,Dn,Qn,Hn,Gn,Vn){if(null==Tn)cn(null,null,Dn,Qn,Hn,Gn,Vn);else{var zn,Kn=Tn[Un+0],$n=Kn,Wn=Kn;for(zn=0;zn<Vn;++zn)$n=Wn+(Kn=Tn[Un+zn])-$n,Wn=Dn[Qn+zn]+(-256&$n?0>$n?0:255:$n)&255,$n=Kn,Hn[Gn+zn]=Wn}}function fn(Tn,Un,Dn,Qn){var Hn=Un.width,Gn=Un.o;if(e(null!=Tn&&null!=Un),0>Dn||0>=Qn||Dn+Qn>Gn)return null;if(!Tn.Cc){if(null==Tn.ga){var Vn;if(Tn.ga=new un,(Vn=null==Tn.ga)||(Vn=Un.width*Un.o,e(0==Tn.Gb.length),Tn.Gb=a(Vn),Tn.Uc=0,null==Tn.Gb?Vn=0:(Tn.mb=Tn.Gb,Tn.nb=Tn.Uc,Tn.rc=null,Vn=1),Vn=!Vn),!Vn){Vn=Tn.ga;var zn=Tn.Fa,Kn=Tn.P,$n=Tn.qc,Wn=Tn.mb,Xn=Tn.nb,Yn=Kn+1,Jn=$n-1,Zn=Vn.l;if(e(null!=zn&&null!=Wn&&null!=Un),vi[0]=null,vi[1]=cn,vi[2]=hn,vi[3]=ln,Vn.ca=Wn,Vn.tb=Xn,Vn.c=Un.width,Vn.i=Un.height,e(0<Vn.c&&0<Vn.i),1>=$n)Un=0;else if(Vn.$a=zn[Kn+0]>>0&3,Vn.Z=zn[Kn+0]>>2&3,Vn.Lc=zn[Kn+0]>>4&3,Kn=zn[Kn+0]>>6&3,0>Vn.$a||1<Vn.$a||4<=Vn.Z||1<Vn.Lc||Kn)Un=0;else if(Zn.put=dt,Zn.ac=ft,Zn.bc=pt,Zn.ma=Vn,Zn.width=Un.width,Zn.height=Un.height,Zn.Da=Un.Da,Zn.v=Un.v,Zn.va=Un.va,Zn.j=Un.j,Zn.o=Un.o,Vn.$a)e:{e(1==Vn.$a),Un=kt();t:for(;;){if(null==Un){Un=0;break e}if(e(null!=Vn),Vn.mc=Un,Un.c=Vn.c,Un.i=Vn.i,Un.l=Vn.l,Un.l.ma=Vn,Un.l.width=Vn.c,Un.l.height=Vn.i,Un.a=0,v(Un.m,zn,Yn,Jn),!Ft(Vn.c,Vn.i,1,Un,null))break t;if(1==Un.ab&&3==Un.gc[0].hc&&xt(Un.s)?(Vn.ic=1,zn=Un.c*Un.i,Un.Ta=null,Un.Ua=0,Un.V=a(zn),Un.Ba=0,null==Un.V?(Un.a=1,Un=0):Un=1):(Vn.ic=0,Un=It(Un,Vn.c)),!Un)break t;Un=1;break e}Vn.mc=null,Un=0}else Un=Jn>=Vn.c*Vn.i;Vn=!Un}if(Vn)return null;1!=Tn.ga.Lc?Tn.Ga=0:Qn=Gn-Dn}e(null!=Tn.ga),e(Dn+Qn<=Gn);e:{if(Un=(zn=Tn.ga).c,Gn=zn.l.o,0==zn.$a){if(Yn=Tn.rc,Jn=Tn.Vc,Zn=Tn.Fa,Kn=Tn.P+1+Dn*Un,$n=Tn.mb,Wn=Tn.nb+Dn*Un,e(Kn<=Tn.P+Tn.qc),0!=zn.Z)for(e(null!=vi[zn.Z]),Vn=0;Vn<Qn;++Vn)vi[zn.Z](Yn,Jn,Zn,Kn,$n,Wn,Un),Yn=$n,Jn=Wn,Wn+=Un,Kn+=Un;else for(Vn=0;Vn<Qn;++Vn)r($n,Wn,Zn,Kn,Un),Yn=$n,Jn=Wn,Wn+=Un,Kn+=Un;Tn.rc=Yn,Tn.Vc=Jn}else{if(e(null!=zn.mc),Un=Dn+Qn,e(null!=(Vn=zn.mc)),e(Un<=Vn.i),Vn.C>=Un)Un=1;else if(zn.ic||vn(),zn.ic){zn=Vn.V,Yn=Vn.Ba,Jn=Vn.c;var er=Vn.i,tr=(Zn=1,Kn=Vn.$/Jn,$n=Vn.$%Jn,Wn=Vn.m,Xn=Vn.s,Vn.$),nr=Jn*er,rr=Jn*Un,ir=Xn.wc,or=tr<rr?wt(Xn,$n,Kn):null;e(tr<=nr),e(Un<=er),e(xt(Xn));t:for(;;){for(;!Wn.h&&tr<rr;){if($n&ir||(or=wt(Xn,$n,Kn)),e(null!=or),_(Wn),256>(er=bt(or.G[0],or.H[0],Wn)))zn[Yn+tr]=er,++tr,++$n>=Jn&&($n=0,++Kn<=Un&&!(Kn%16)&&_t(Vn,Kn));else{if(!(280>er)){Zn=0;break t}er=mt(er-256,Wn);var ar,sr=bt(or.G[4],or.H[4],Wn);if(_(Wn),!(tr>=(sr=vt(Jn,sr=mt(sr,Wn)))&&nr-tr>=er)){Zn=0;break t}for(ar=0;ar<er;++ar)zn[Yn+tr+ar]=zn[Yn+tr+ar-sr];for(tr+=er,$n+=er;$n>=Jn;)$n-=Jn,++Kn<=Un&&!(Kn%16)&&_t(Vn,Kn);tr<rr&&$n&ir&&(or=wt(Xn,$n,Kn))}e(Wn.h==x(Wn))}_t(Vn,Kn>Un?Un:Kn);break t}!Zn||Wn.h&&tr<nr?(Zn=0,Vn.a=Wn.h?5:3):Vn.$=tr,Un=Zn}else Un=St(Vn,Vn.V,Vn.Ba,Vn.c,Vn.i,Un,Ct);if(!Un){Qn=0;break e}}Dn+Qn>=Gn&&(Tn.Cc=1),Qn=1}if(!Qn)return null;if(Tn.Cc&&(null!=(Qn=Tn.ga)&&(Qn.mc=null),Tn.ga=null,0<Tn.Ga))return alert("todo:WebPDequantizeLevels"),null}return Tn.nb+Dn*Hn}function dn(Tn,Un,Dn,Qn,Hn,Gn){for(;0<Hn--;){var Vn,zn=Tn,Kn=Un+(Dn?1:0),$n=Tn,Wn=Un+(Dn?0:3);for(Vn=0;Vn<Qn;++Vn){var Xn=$n[Wn+4*Vn];255!=Xn&&(Xn*=32897,zn[Kn+4*Vn+0]=zn[Kn+4*Vn+0]*Xn>>23,zn[Kn+4*Vn+1]=zn[Kn+4*Vn+1]*Xn>>23,zn[Kn+4*Vn+2]=zn[Kn+4*Vn+2]*Xn>>23)}Un+=Gn}}function pn(Tn,Un,Dn,Qn,Hn){for(;0<Qn--;){var Gn;for(Gn=0;Gn<Dn;++Gn){var Vn=Tn[Un+2*Gn+0],zn=15&($n=Tn[Un+2*Gn+1]),Kn=4369*zn,$n=(240&$n|$n>>4)*Kn>>16;Tn[Un+2*Gn+0]=(240&Vn|Vn>>4)*Kn>>16&240|(15&Vn|Vn<<4)*Kn>>16>>4&15,Tn[Un+2*Gn+1]=240&$n|zn}Un+=Hn}}function gn(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){var Kn,$n,Wn=255;for($n=0;$n<Hn;++$n){for(Kn=0;Kn<Qn;++Kn){var Xn=Tn[Un+Kn];Gn[Vn+4*Kn]=Xn,Wn&=Xn}Un+=Dn,Vn+=zn}return 255!=Wn}function mn(Tn,Un,Dn,Qn,Hn){var Gn;for(Gn=0;Gn<Hn;++Gn)Dn[Qn+Gn]=Tn[Un+Gn]>>8}function vn(){Sr=dn,Cr=pn,kr=gn,Br=mn}function bn(Un,Dn,Qn){Tn[Un]=function(Tn,Un,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr){var ir,or=rr-1>>1,ar=Vn[zn+0]|Kn[$n+0]<<16,sr=Wn[Xn+0]|Yn[Jn+0]<<16;e(null!=Tn);var lr=3*ar+sr+131074>>2;for(Dn(Tn[Un+0],255&lr,lr>>16,Zn,er),null!=Hn&&(lr=3*sr+ar+131074>>2,Dn(Hn[Gn+0],255&lr,lr>>16,tr,nr)),ir=1;ir<=or;++ir){var cr=Vn[zn+ir]|Kn[$n+ir]<<16,ur=Wn[Xn+ir]|Yn[Jn+ir]<<16,dr=ar+cr+sr+ur+524296,hr=dr+2*(cr+sr)>>3;lr=hr+ar>>1,ar=(dr=dr+2*(ar+ur)>>3)+cr>>1,Dn(Tn[Un+2*ir-1],255&lr,lr>>16,Zn,er+(2*ir-1)*Qn),Dn(Tn[Un+2*ir-0],255&ar,ar>>16,Zn,er+(2*ir-0)*Qn),null!=Hn&&(lr=dr+sr>>1,ar=hr+ur>>1,Dn(Hn[Gn+2*ir-1],255&lr,lr>>16,tr,nr+(2*ir-1)*Qn),Dn(Hn[Gn+2*ir+0],255&ar,ar>>16,tr,nr+(2*ir+0)*Qn)),ar=cr,sr=ur}1&rr||(lr=3*ar+sr+131074>>2,Dn(Tn[Un+rr-1],255&lr,lr>>16,Zn,er+(rr-1)*Qn),null!=Hn&&(lr=3*sr+ar+131074>>2,Dn(Hn[Gn+rr-1],255&lr,lr>>16,tr,nr+(rr-1)*Qn)))}}function yn(){yi[Mr]=_i,yi[Rr]=xi,yi[Dr]=wi,yi[jr]=Si,yi[Qr]=Ci,yi[Hr]=ki,yi[Gr]=Bi,yi[Vr]=xi,yi[zr]=Si,yi[Kr]=Ci,yi[qr]=ki}function wn(Tn){return Tn&~Ii?0>Tn?0:255:Tn>>Ni}function Nn(Tn,Un){return wn((19077*Tn>>8)+(26149*Un>>8)-14234)}function Ln(Tn,Un,Dn){return wn((19077*Tn>>8)-(6419*Un>>8)-(13320*Dn>>8)+8708)}function xn(Tn,Un){return wn((19077*Tn>>8)+(33050*Un>>8)-17685)}function An(Tn,Un,Dn,Qn,Hn){Qn[Hn+0]=Nn(Tn,Dn),Qn[Hn+1]=Ln(Tn,Un,Dn),Qn[Hn+2]=xn(Tn,Un)}function _n(Tn,Un,Dn,Qn,Hn){Qn[Hn+0]=xn(Tn,Un),Qn[Hn+1]=Ln(Tn,Un,Dn),Qn[Hn+2]=Nn(Tn,Dn)}function Sn(Tn,Un,Dn,Qn,Hn){var Gn=Ln(Tn,Un,Dn);Un=Gn<<3&224|xn(Tn,Un)>>3,Qn[Hn+0]=248&Nn(Tn,Dn)|Gn>>5,Qn[Hn+1]=Un}function Pn(Tn,Un,Dn,Qn,Hn){var Gn=240&xn(Tn,Un)|15;Qn[Hn+0]=240&Nn(Tn,Dn)|Ln(Tn,Un,Dn)>>4,Qn[Hn+1]=Gn}function kn(Tn,Un,Dn,Qn,Hn){Qn[Hn+0]=255,An(Tn,Un,Dn,Qn,Hn+1)}function Fn(Tn,Un,Dn,Qn,Hn){_n(Tn,Un,Dn,Qn,Hn),Qn[Hn+3]=255}function In(Tn,Un,Dn,Qn,Hn){An(Tn,Un,Dn,Qn,Hn),Qn[Hn+3]=255}function Vt(Tn,Un){return 0>Tn?0:Tn>Un?Un:Tn}function Cn(Un,Dn,Qn){Tn[Un]=function(Tn,Un,Hn,Gn,Vn,zn,Kn,$n,Wn){for(var Xn=$n+(-2&Wn)*Qn;$n!=Xn;)Dn(Tn[Un+0],Hn[Gn+0],Vn[zn+0],Kn,$n),Dn(Tn[Un+1],Hn[Gn+0],Vn[zn+0],Kn,$n+Qn),Un+=2,++Gn,++zn,$n+=2*Qn;1&Wn&&Dn(Tn[Un+0],Hn[Gn+0],Vn[zn+0],Kn,$n)}}function jn(Tn,Un,Dn){return 0==Dn?0==Tn?0==Un?6:5:0==Un?4:0:Dn}function Bn(Tn,Un,Dn,Qn,Hn){switch(Tn>>>30){case 3:sr(Un,Dn,Qn,Hn,0);break;case 2:lr(Un,Dn,Qn,Hn);break;case 1:ur(Un,Dn,Qn,Hn)}}function On(Tn,Un){var Dn,Qn,Hn=Un.M,Gn=Un.Nb,Vn=Tn.oc,zn=Tn.pc+40,Kn=Tn.oc,$n=Tn.pc+584,Wn=Tn.oc,Xn=Tn.pc+600;for(Dn=0;16>Dn;++Dn)Vn[zn+32*Dn-1]=129;for(Dn=0;8>Dn;++Dn)Kn[$n+32*Dn-1]=129,Wn[Xn+32*Dn-1]=129;for(0<Hn?Vn[zn-1-32]=Kn[$n-1-32]=Wn[Xn-1-32]=129:(i(Vn,zn-32-1,127,21),i(Kn,$n-32-1,127,9),i(Wn,Xn-32-1,127,9)),Qn=0;Qn<Tn.za;++Qn){var Yn=Un.ya[Un.aa+Qn];if(0<Qn){for(Dn=-1;16>Dn;++Dn)r(Vn,zn+32*Dn-4,Vn,zn+32*Dn+12,4);for(Dn=-1;8>Dn;++Dn)r(Kn,$n+32*Dn-4,Kn,$n+32*Dn+4,4),r(Wn,Xn+32*Dn-4,Wn,Xn+32*Dn+4,4)}var Jn=Tn.Gd,Zn=Tn.Hd+Qn,er=Yn.ad,tr=Yn.Hc;if(0<Hn&&(r(Vn,zn-32,Jn[Zn].y,0,16),r(Kn,$n-32,Jn[Zn].f,0,8),r(Wn,Xn-32,Jn[Zn].ea,0,8)),Yn.Za){var nr=Vn,rr=zn-32+16;for(0<Hn&&(Qn>=Tn.za-1?i(nr,rr,Jn[Zn].y[15],4):r(nr,rr,Jn[Zn+1].y,0,4)),Dn=0;4>Dn;Dn++)nr[rr+128+Dn]=nr[rr+256+Dn]=nr[rr+384+Dn]=nr[rr+0+Dn];for(Dn=0;16>Dn;++Dn,tr<<=2)nr=Vn,rr=zn+Qi[Dn],gi[Yn.Ob[Dn]](nr,rr),Bn(tr,er,16*+Dn,nr,rr)}else if(nr=jn(Qn,Hn,Yn.Ob[0]),pi[nr](Vn,zn),0!=tr)for(Dn=0;16>Dn;++Dn,tr<<=2)Bn(tr,er,16*+Dn,Vn,zn+Qi[Dn]);for(Dn=Yn.Gc,nr=jn(Qn,Hn,Yn.Dd),fi[nr](Kn,$n),fi[nr](Wn,Xn),tr=er,nr=Kn,rr=$n,255&(Yn=Dn>>0)&&(170&Yn?cr(tr,256,nr,rr):dr(tr,256,nr,rr)),Yn=Wn,tr=Xn,255&(Dn>>=8)&&(170&Dn?cr(er,320,Yn,tr):dr(er,320,Yn,tr)),Hn<Tn.Ub-1&&(r(Jn[Zn].y,0,Vn,zn+480,16),r(Jn[Zn].f,0,Kn,$n+224,8),r(Jn[Zn].ea,0,Wn,Xn+224,8)),Dn=8*Gn*Tn.B,Jn=Tn.sa,Zn=Tn.ta+16*Qn+16*Gn*Tn.R,er=Tn.qa,Yn=Tn.ra+8*Qn+Dn,tr=Tn.Ha,nr=Tn.Ia+8*Qn+Dn,Dn=0;16>Dn;++Dn)r(Jn,Zn+Dn*Tn.R,Vn,zn+32*Dn,16);for(Dn=0;8>Dn;++Dn)r(er,Yn+Dn*Tn.B,Kn,$n+32*Dn,8),r(tr,nr+Dn*Tn.B,Wn,Xn+32*Dn,8)}}function Mn(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn){var $n=[0],Wn=[0],Xn=0,Yn=null!=Kn?Kn.kd:0,Jn=null!=Kn?Kn:new rn;if(null==Tn||12>Dn)return 7;Jn.data=Tn,Jn.w=Un,Jn.ha=Dn,Un=[Un],Dn=[Dn],Jn.gb=[Jn.gb];e:{var Zn=Un,er=Dn,tr=Jn.gb;if(e(null!=Tn),e(null!=er),e(null!=tr),tr[0]=0,12<=er[0]&&!n(Tn,Zn[0],"RIFF")){if(n(Tn,Zn[0]+8,"WEBP")){tr=3;break e}var nr=j(Tn,Zn[0]+4);if(12>nr||4294967286<nr){tr=3;break e}if(Yn&&nr>er[0]-8){tr=7;break e}tr[0]=nr,Zn[0]+=12,er[0]-=12}tr=0}if(0!=tr)return tr;for(nr=0<Jn.gb[0],Dn=Dn[0];;){e:{var rr=Tn;er=Un,tr=Dn;var ir=$n,or=Wn,ar=Zn=[0];if((cr=Xn=[Xn])[0]=0,8>tr[0])tr=7;else{if(!n(rr,er[0],"VP8X")){if(10!=j(rr,er[0]+4)){tr=3;break e}if(18>tr[0]){tr=7;break e}var sr=j(rr,er[0]+8),lr=1+C(rr,er[0]+12);if(2147483648<=lr*(rr=1+C(rr,er[0]+15))){tr=3;break e}null!=ar&&(ar[0]=sr),null!=ir&&(ir[0]=lr),null!=or&&(or[0]=rr),er[0]+=18,tr[0]-=18,cr[0]=1}tr=0}}if(Xn=Xn[0],Zn=Zn[0],0!=tr)return tr;if(er=!!(2&Zn),!nr&&Xn)return 3;if(null!=Gn&&(Gn[0]=!!(16&Zn)),null!=Vn&&(Vn[0]=er),null!=zn&&(zn[0]=0),Vn=$n[0],Zn=Wn[0],Xn&&er&&null==Kn){tr=0;break}if(4>Dn){tr=7;break}if(nr&&Xn||!nr&&!Xn&&!n(Tn,Un[0],"ALPH")){Dn=[Dn],Jn.na=[Jn.na],Jn.P=[Jn.P],Jn.Sa=[Jn.Sa];e:{sr=Tn,tr=Un,nr=Dn;var cr=Jn.gb;ir=Jn.na,or=Jn.P,ar=Jn.Sa,lr=22,e(null!=sr),e(null!=nr),rr=tr[0];var ur=nr[0];for(e(null!=ir),e(null!=ar),ir[0]=null,or[0]=null,ar[0]=0;;){if(tr[0]=rr,nr[0]=ur,8>ur){tr=7;break e}var dr=j(sr,rr+4);if(4294967286<dr){tr=3;break e}var hr=8+dr+1&-2;if(lr+=hr,0<cr&&lr>cr){tr=3;break e}if(!n(sr,rr,"VP8 ")||!n(sr,rr,"VP8L")){tr=0;break e}if(ur[0]<hr){tr=7;break e}n(sr,rr,"ALPH")||(ir[0]=sr,or[0]=rr+8,ar[0]=dr),rr+=hr,ur-=hr}}if(Dn=Dn[0],Jn.na=Jn.na[0],Jn.P=Jn.P[0],Jn.Sa=Jn.Sa[0],0!=tr)break}Dn=[Dn],Jn.Ja=[Jn.Ja],Jn.xa=[Jn.xa];e:if(cr=Tn,tr=Un,nr=Dn,ir=Jn.gb[0],or=Jn.Ja,ar=Jn.xa,sr=tr[0],rr=!n(cr,sr,"VP8 "),lr=!n(cr,sr,"VP8L"),e(null!=cr),e(null!=nr),e(null!=or),e(null!=ar),8>nr[0])tr=7;else{if(rr||lr){if(cr=j(cr,sr+4),12<=ir&&cr>ir-12){tr=3;break e}if(Yn&&cr>nr[0]-8){tr=7;break e}or[0]=cr,tr[0]+=8,nr[0]-=8,ar[0]=lr}else ar[0]=5<=nr[0]&&47==cr[sr+0]&&!(cr[sr+4]>>5),or[0]=nr[0];tr=0}if(Dn=Dn[0],Jn.Ja=Jn.Ja[0],Jn.xa=Jn.xa[0],Un=Un[0],0!=tr)break;if(4294967286<Jn.Ja)return 3;if(null==zn||er||(zn[0]=Jn.xa?2:1),Vn=[Vn],Zn=[Zn],Jn.xa){if(5>Dn){tr=7;break}zn=Vn,Yn=Zn,er=Gn,null==Tn||5>Dn?Tn=0:5<=Dn&&47==Tn[Un+0]&&!(Tn[Un+4]>>5)?(nr=[0],cr=[0],ir=[0],v(or=new N,Tn,Un,Dn),gt(or,nr,cr,ir)?(null!=zn&&(zn[0]=nr[0]),null!=Yn&&(Yn[0]=cr[0]),null!=er&&(er[0]=ir[0]),Tn=1):Tn=0):Tn=0}else{if(10>Dn){tr=7;break}zn=Zn,null==Tn||10>Dn||!Xt(Tn,Un+3,Dn-3)?Tn=0:(Yn=Tn[Un+0]|Tn[Un+1]<<8|Tn[Un+2]<<16,er=16383&(Tn[Un+7]<<8|Tn[Un+6]),Tn=16383&(Tn[Un+9]<<8|Tn[Un+8]),1&Yn||3<(Yn>>1&7)||!(Yn>>4&1)||Yn>>5>=Jn.Ja||!er||!Tn?Tn=0:(Vn&&(Vn[0]=er),zn&&(zn[0]=Tn),Tn=1))}if(!Tn)return 3;if(Vn=Vn[0],Zn=Zn[0],Xn&&($n[0]!=Vn||Wn[0]!=Zn))return 3;null!=Kn&&(Kn[0]=Jn,Kn.offset=Un-Kn.w,e(4294967286>Un-Kn.w),e(Kn.offset==Kn.ha-Dn));break}return 0==tr||7==tr&&Xn&&null==Kn?(null!=Gn&&(Gn[0]|=null!=Jn.na&&0<Jn.na.length),null!=Qn&&(Qn[0]=Vn),null!=Hn&&(Hn[0]=Zn),0):tr}function En(Tn,Un,Dn){var Qn=Un.width,Hn=Un.height,Gn=0,Vn=0,zn=Qn,Kn=Hn;if(Un.Da=null!=Tn&&0<Tn.Da,Un.Da&&(zn=Tn.cd,Kn=Tn.bd,Gn=Tn.v,Vn=Tn.j,11>Dn||(Gn&=-2,Vn&=-2),0>Gn||0>Vn||0>=zn||0>=Kn||Gn+zn>Qn||Vn+Kn>Hn))return 0;if(Un.v=Gn,Un.j=Vn,Un.va=Gn+zn,Un.o=Vn+Kn,Un.U=zn,Un.T=Kn,Un.da=null!=Tn&&0<Tn.da,Un.da){if(!E(zn,Kn,Dn=[Tn.ib],Gn=[Tn.hb]))return 0;Un.ib=Dn[0],Un.hb=Gn[0]}return Un.ob=null!=Tn&&Tn.ob,Un.Kb=null==Tn||!Tn.Sd,Un.da&&(Un.ob=Un.ib<3*Qn/4&&Un.hb<3*Hn/4,Un.Kb=0),1}function qn(Tn){if(null==Tn)return 2;if(11>Tn.S){var Un=Tn.f.RGBA;Un.fb+=(Tn.height-1)*Un.A,Un.A=-Un.A}else Un=Tn.f.kb,Tn=Tn.height,Un.O+=(Tn-1)*Un.fa,Un.fa=-Un.fa,Un.N+=(Tn-1>>1)*Un.Ab,Un.Ab=-Un.Ab,Un.W+=(Tn-1>>1)*Un.Db,Un.Db=-Un.Db,null!=Un.F&&(Un.J+=(Tn-1)*Un.lb,Un.lb=-Un.lb);return 0}function Rn(Tn,Un,Dn,Qn){if(null==Qn||0>=Tn||0>=Un)return 2;if(null!=Dn){if(Dn.Da){var Hn=Dn.cd,Gn=Dn.bd,Vn=-2&Dn.v,zn=-2&Dn.j;if(0>Vn||0>zn||0>=Hn||0>=Gn||Vn+Hn>Tn||zn+Gn>Un)return 2;Tn=Hn,Un=Gn}if(Dn.da){if(!E(Tn,Un,Hn=[Dn.ib],Gn=[Dn.hb]))return 2;Tn=Hn[0],Un=Gn[0]}}Qn.width=Tn,Qn.height=Un;e:{var Kn=Qn.width,$n=Qn.height;if(Tn=Qn.S,0>=Kn||0>=$n||!(Tn>=Mr&&13>Tn))Tn=2;else{if(0>=Qn.Rd&&null==Qn.sd){Vn=Gn=Hn=Un=0;var Wn=(zn=Kn*zi[Tn])*$n;if(11>Tn||(Gn=($n+1)/2*(Un=(Kn+1)/2),12==Tn&&(Vn=(Hn=Kn)*$n)),null==($n=a(Wn+2*Gn+Vn))){Tn=1;break e}Qn.sd=$n,11>Tn?((Kn=Qn.f.RGBA).eb=$n,Kn.fb=0,Kn.A=zn,Kn.size=Wn):((Kn=Qn.f.kb).y=$n,Kn.O=0,Kn.fa=zn,Kn.Fd=Wn,Kn.f=$n,Kn.N=0+Wn,Kn.Ab=Un,Kn.Cd=Gn,Kn.ea=$n,Kn.W=0+Wn+Gn,Kn.Db=Un,Kn.Ed=Gn,12==Tn&&(Kn.F=$n,Kn.J=0+Wn+2*Gn),Kn.Tc=Vn,Kn.lb=Hn)}if(Un=1,Hn=Qn.S,Gn=Qn.width,Vn=Qn.height,Hn>=Mr&&13>Hn)if(11>Hn)Tn=Qn.f.RGBA,Un&=(zn=Math.abs(Tn.A))*(Vn-1)+Gn<=Tn.size,Un&=zn>=Gn*zi[Hn],Un&=null!=Tn.eb;else{Tn=Qn.f.kb,zn=(Gn+1)/2,Wn=(Vn+1)/2,Kn=Math.abs(Tn.fa),$n=Math.abs(Tn.Ab);var Xn=Math.abs(Tn.Db),Yn=Math.abs(Tn.lb),Jn=Yn*(Vn-1)+Gn;Un&=Kn*(Vn-1)+Gn<=Tn.Fd,Un&=$n*(Wn-1)+zn<=Tn.Cd,Un=(Un&=Xn*(Wn-1)+zn<=Tn.Ed)&Kn>=Gn&$n>=zn&Xn>=zn,Un&=null!=Tn.y,Un&=null!=Tn.f,Un&=null!=Tn.ea,12==Hn&&(Un&=Yn>=Gn,Un&=Jn<=Tn.Tc,Un&=null!=Tn.F)}else Un=0;Tn=Un?0:2}}return 0!=Tn||null!=Dn&&Dn.fd&&(Tn=qn(Qn)),Tn}var Un=64,Dn=[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],Qn=24,Hn=32,Gn=8,Vn=[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];T("Predictor0","PredictorAdd0"),Tn.Predictor0=function(){return 4278190080},Tn.Predictor1=function(Tn){return Tn},Tn.Predictor2=function(Tn,Un,Dn){return Un[Dn+0]},Tn.Predictor3=function(Tn,Un,Dn){return Un[Dn+1]},Tn.Predictor4=function(Tn,Un,Dn){return Un[Dn-1]},Tn.Predictor5=function(Tn,Un,Dn){return U(U(Tn,Un[Dn+1]),Un[Dn+0])},Tn.Predictor6=function(Tn,Un,Dn){return U(Tn,Un[Dn-1])},Tn.Predictor7=function(Tn,Un,Dn){return U(Tn,Un[Dn+0])},Tn.Predictor8=function(Tn,Un,Dn){return U(Un[Dn-1],Un[Dn+0])},Tn.Predictor9=function(Tn,Un,Dn){return U(Un[Dn+0],Un[Dn+1])},Tn.Predictor10=function(Tn,Un,Dn){return U(U(Tn,Un[Dn-1]),U(Un[Dn+0],Un[Dn+1]))},Tn.Predictor11=function(Tn,Un,Dn){var Qn=Un[Dn+0];return 0>=W(Qn>>24&255,Tn>>24&255,(Un=Un[Dn-1])>>24&255)+W(Qn>>16&255,Tn>>16&255,Un>>16&255)+W(Qn>>8&255,Tn>>8&255,Un>>8&255)+W(255&Qn,255&Tn,255&Un)?Qn:Tn},Tn.Predictor12=function(Tn,Un,Dn){var Qn=Un[Dn+0];return(z((Tn>>24&255)+(Qn>>24&255)-((Un=Un[Dn-1])>>24&255))<<24|z((Tn>>16&255)+(Qn>>16&255)-(Un>>16&255))<<16|z((Tn>>8&255)+(Qn>>8&255)-(Un>>8&255))<<8|z((255&Tn)+(255&Qn)-(255&Un)))>>>0},Tn.Predictor13=function(Tn,Un,Dn){var Qn=Un[Dn-1];return(H((Tn=U(Tn,Un[Dn+0]))>>24&255,Qn>>24&255)<<24|H(Tn>>16&255,Qn>>16&255)<<16|H(Tn>>8&255,Qn>>8&255)<<8|H(Tn>>0&255,Qn>>0&255))>>>0};var zn=Tn.PredictorAdd0;Tn.PredictorAdd1=V,T("Predictor2","PredictorAdd2"),T("Predictor3","PredictorAdd3"),T("Predictor4","PredictorAdd4"),T("Predictor5","PredictorAdd5"),T("Predictor6","PredictorAdd6"),T("Predictor7","PredictorAdd7"),T("Predictor8","PredictorAdd8"),T("Predictor9","PredictorAdd9"),T("Predictor10","PredictorAdd10"),T("Predictor11","PredictorAdd11"),T("Predictor12","PredictorAdd12"),T("Predictor13","PredictorAdd13");var Kn=Tn.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",(function(Tn){return Tn>>8&255}),(function(Tn){return Tn})),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(Tn){return Tn}),(function(Tn){return Tn>>8&255}));var $n,Wn=Tn.ColorIndexInverseTransform,Xn=Tn.MapARGB,Yn=Tn.VP8LColorIndexInverseTransformAlpha,Jn=Tn.MapAlpha,Zn=Tn.VP8LPredictorsAdd=[];Zn.length=16,(Tn.VP8LPredictors=[]).length=16,(Tn.VP8LPredictorsAdd_C=[]).length=16,(Tn.VP8LPredictors_C=[]).length=16;var er,tr,nr,rr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,gr,fr,Ar,mr,vr,yr,_r,br,wr,xr,Sr,Cr,kr,Br,Er=a(511),Pr=a(2041),Lr=a(225),Tr=a(767),Nr=0,Ir=Pr,Or=Lr,Fr=Tr,Ur=Er,Mr=0,Rr=1,Dr=2,jr=3,Qr=4,Hr=5,Gr=6,Vr=7,zr=8,Kr=9,qr=10,$r=[2,3,7],Wr=[3,3,11],Xr=[280,256,256,256,40],Yr=[0,1,1,1,0],Jr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zr=[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],ei=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ni=[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],ri=[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],ii=null,oi=[[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]],ai=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],si=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],li=[[[[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]]]],ui=[[[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]]],di=[[[[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]]]],hi=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],pi=[],gi=[],fi=[],Ai=1,mi=2,vi=[],yi=[];bn("UpsampleRgbLinePair",An,3),bn("UpsampleBgrLinePair",_n,3),bn("UpsampleRgbaLinePair",In,4),bn("UpsampleBgraLinePair",Fn,4),bn("UpsampleArgbLinePair",kn,4),bn("UpsampleRgba4444LinePair",Pn,2),bn("UpsampleRgb565LinePair",Sn,2);var _i=Tn.UpsampleRgbLinePair,wi=Tn.UpsampleBgrLinePair,xi=Tn.UpsampleRgbaLinePair,Si=Tn.UpsampleBgraLinePair,Ci=Tn.UpsampleArgbLinePair,ki=Tn.UpsampleRgba4444LinePair,Bi=Tn.UpsampleRgb565LinePair,Ei=16,Pi=1<<Ei-1,Li=-227,Ti=482,Ni=6,Ii=(256<<Ni)-1,Oi=0,Fi=a(256),Ui=a(256),Mi=a(256),Ri=a(256),Di=a(Ti-Li),ji=a(Ti-Li);Cn("YuvToRgbRow",An,3),Cn("YuvToBgrRow",_n,3),Cn("YuvToRgbaRow",In,4),Cn("YuvToBgraRow",Fn,4),Cn("YuvToArgbRow",kn,4),Cn("YuvToRgba4444Row",Pn,2),Cn("YuvToRgb565Row",Sn,2);var Qi=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Hi=[0,2,8],Gi=[8,7,6,4,4,2,2,2,1,1,1,1],Vi=1;this.WebPDecodeRGBA=function(Tn,Un,Dn,Qn,Hn){var Gn=Rr,Vn=new nn,zn=new ot;Vn.ba=zn,zn.S=Gn,zn.width=[zn.width],zn.height=[zn.height];var Kn=zn.width,$n=zn.height,Wn=new st;if(null==Wn||null==Tn)var Xn=2;else e(null!=Wn),Xn=Mn(Tn,Un,Dn,Wn.width,Wn.height,Wn.Pd,Wn.Qd,Wn.format,null);if(0!=Xn?Kn=0:(null!=Kn&&(Kn[0]=Wn.width[0]),null!=$n&&($n[0]=Wn.height[0]),Kn=1),Kn){zn.width=zn.width[0],zn.height=zn.height[0],null!=Qn&&(Qn[0]=zn.width),null!=Hn&&(Hn[0]=zn.height);e:{if(Qn=new Gt,(Hn=new rn).data=Tn,Hn.w=Un,Hn.ha=Dn,Hn.kd=1,Un=[0],e(null!=Hn),(0==(Tn=Mn(Hn.data,Hn.w,Hn.ha,null,null,null,Un,null,Hn))||7==Tn)&&Un[0]&&(Tn=4),0==(Un=Tn)){if(e(null!=Vn),Qn.data=Hn.data,Qn.w=Hn.w+Hn.offset,Qn.ha=Hn.ha-Hn.offset,Qn.put=dt,Qn.ac=ft,Qn.bc=pt,Qn.ma=Vn,Hn.xa){if(null==(Tn=kt())){Vn=1;break e}if(function(Tn,Un){var Dn=[0],Qn=[0],Hn=[0];t:for(;;){if(null==Tn)return 0;if(null==Un)return Tn.a=2,0;if(Tn.l=Un,Tn.a=0,v(Tn.m,Un.data,Un.w,Un.ha),!gt(Tn.m,Dn,Qn,Hn)){Tn.a=3;break t}if(Tn.xb=mi,Un.width=Dn[0],Un.height=Qn[0],!Ft(Dn[0],Qn[0],1,Tn,null))break t;return 1}return e(0!=Tn.a),0}(Tn,Qn)){if(Qn=0==(Un=Rn(Qn.width,Qn.height,Vn.Oa,Vn.ba))){t:{Qn=Tn;n:for(;;){if(null==Qn){Qn=0;break t}if(e(null!=Qn.s.yc),e(null!=Qn.s.Ya),e(0<Qn.s.Wb),e(null!=(Dn=Qn.l)),e(null!=(Hn=Dn.ma)),0!=Qn.xb){if(Qn.ca=Hn.ba,Qn.tb=Hn.tb,e(null!=Qn.ca),!En(Hn.Oa,Dn,jr)){Qn.a=2;break n}if(!It(Qn,Dn.width))break n;if(Dn.da)break n;if((Dn.da||rt(Qn.ca.S))&&vn(),11>Qn.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=Qn.ca.f.kb.F&&vn()),Qn.Pb&&0<Qn.s.ua&&null==Qn.s.vb.X&&!B(Qn.s.vb,Qn.s.Wa.Xa)){Qn.a=1;break n}Qn.xb=0}if(!St(Qn,Qn.V,Qn.Ba,Qn.c,Qn.i,Dn.o,Lt))break n;Hn.Dc=Qn.Ma,Qn=1;break t}e(0!=Qn.a),Qn=0}Qn=!Qn}Qn&&(Un=Tn.a)}else Un=Tn.a}else{if(null==(Tn=new Yt)){Vn=1;break e}if(Tn.Fa=Hn.na,Tn.P=Hn.P,Tn.qc=Hn.Sa,Kt(Tn,Qn)){if(0==(Un=Rn(Qn.width,Qn.height,Vn.Oa,Vn.ba))){if(Tn.Aa=0,Dn=Vn.Oa,e(null!=(Hn=Tn)),null!=Dn){if(0<(Kn=0>(Kn=Dn.Md)?0:100<Kn?255:255*Kn/100)){for($n=Wn=0;4>$n;++$n)12>(Xn=Hn.pb[$n]).lc&&(Xn.ia=Kn*Gi[0>Xn.lc?0:Xn.lc]>>3),Wn|=Xn.ia;Wn&&(alert("todo:VP8InitRandom"),Hn.ia=1)}Hn.Ga=Dn.Id,100<Hn.Ga?Hn.Ga=100:0>Hn.Ga&&(Hn.Ga=0)}Qt(Tn,Qn)||(Un=Tn.a)}}else Un=Tn.a}0==Un&&null!=Vn.Oa&&Vn.Oa.fd&&(Un=qn(Vn.ba))}Vn=Un}Gn=0!=Vn?null:11>Gn?zn.f.RGBA.eb:zn.f.kb.y}else Gn=null;return Gn};var zi=[3,4,3,4,4,2,2,4,4,4,2,1,1]});var Un=[0],Dn=[0],Qn=[],Hn=new Et,Gn=Tn,Vn=function(Tn,Un){var Dn={},Qn=0,Hn=!1,Gn=0,Vn=0;if(Dn.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(Tn,Un,Dn,Qn){for(var Hn=0;Hn<4;Hn++)if(Tn[Un+Hn]!="RIFF".charCodeAt(Hn))return!0;return!1}(Tn,Un)){var zn,Kn;for(h(Tn,Un+=4),Un+=8;Un<Tn.length;){var $n=u(Tn,Un),Wn=h(Tn,Un+=4);Un+=4;var Xn=Wn+(1&Wn);switch($n){case"VP8 ":case"VP8L":void 0===Dn.frames[Qn]&&(Dn.frames[Qn]={}),(Zn=Dn.frames[Qn]).src_off=Hn?Vn:Un-8,Zn.src_size=Gn+Wn+8,Qn++,Hn&&(Hn=!1,Gn=0,Vn=0);break;case"VP8X":(Zn=Dn.header={}).feature_flags=Tn[Un];var Yn=Un+4;Zn.canvas_width=1+c(Tn,Yn),Yn+=3,Zn.canvas_height=1+c(Tn,Yn),Yn+=3;break;case"ALPH":Hn=!0,Gn=Xn+8,Vn=Un-8;break;case"ANIM":(Zn=Dn.header).bgcolor=h(Tn,Un),Yn=Un+4,Zn.loop_count=(zn=Tn)[(Kn=Yn)+0]<<0|zn[Kn+1]<<8,Yn+=2;break;case"ANMF":var Jn,Zn;(Zn=Dn.frames[Qn]={}).offset_x=2*c(Tn,Un),Un+=3,Zn.offset_y=2*c(Tn,Un),Un+=3,Zn.width=1+c(Tn,Un),Un+=3,Zn.height=1+c(Tn,Un),Un+=3,Zn.duration=c(Tn,Un),Un+=3,Jn=Tn[Un++],Zn.dispose=1&Jn,Zn.blend=Jn>>1&1}"ANMF"!=$n&&(Un+=Xn)}return Dn}}(Gn,0);Vn.response=Gn,Vn.rgbaoutput=!0,Vn.dataurl=!1;var zn=Vn.header?Vn.header:null,Kn=Vn.frames?Vn.frames:null;if(zn){zn.loop_counter=zn.loop_count,Un=[zn.canvas_height],Dn=[zn.canvas_width];for(var $n=0;$n<Kn.length&&0!=Kn[$n].blend;$n++);}var Wn=Kn[0],Xn=Hn.WebPDecodeRGBA(Gn,Wn.src_off,Wn.src_size,Dn,Un);Wn.rgba=Xn,Wn.imgwidth=Dn[0],Wn.imgheight=Un[0];for(var Yn=0;Yn<Dn[0]*Un[0]*4;Yn++)Qn[Yn]=Xn[Yn];return this.width=Dn,this.height=Un,this.data=Qn,this
|
||
/**
|
||
* @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.
|
||
* ====================================================================
|
||
*/}!function(Tn){var Un=function n(Un,Hn,$n,Wn){var Xn=5,Yn=Vn;switch(Wn){case Tn.image_compression.FAST:Xn=3,Yn=Gn;break;case Tn.image_compression.MEDIUM:Xn=6,Yn=zn;break;case Tn.image_compression.SLOW:Xn=9,Yn=Kn}Un=Qn(Un,Hn,$n,Yn);var Jn=new Uint8Array(Dn(Xn)),Zn=g.API.adler32cs.fromBuffer(Un.buffer),er=new xt(Xn),tr=er.append(Un),nr=er.flush(),rr=Jn.length+tr.length+nr.length,ir=new Uint8Array(rr+4);return ir.set(Jn),ir.set(tr,Jn.length),ir.set(nr,Jn.length+tr.length),ir[rr++]=Zn>>>24&255,ir[rr++]=Zn>>>16&255,ir[rr++]=Zn>>>8&255,ir[rr++]=255&Zn,Tn.__addimage__.arrayBufferToBinaryString(ir)},Dn=function r(Tn){var Un=30720;return Un|=Math.min(3,(Tn-1&255)>>1)<<6,Un|=0,[120,255&(Un+=31-Un%31)]},Qn=function i(Tn,Un,Dn,Qn){for(var i,Hn,Gn,Vn=Tn.length/Un,zn=new Uint8Array(Tn.length+Vn),Kn=Wn(),$n=0;$n<Vn;$n+=1){if(Gn=$n*Un,i=Tn.subarray(Gn,Gn+Un),Qn)zn.set(Qn(i,Dn,Hn),Gn+$n);else{for(var Yn,Jn=Kn.length,Zn=[];Yn<Jn;Yn+=1)Zn[Yn]=Kn[Yn](i,Dn,Hn);var er=Xn(Zn.concat());zn.set(Zn[er],Gn+$n)}Hn=i}return zn},Hn=function a(Tn){var Un=Array.apply([],Tn);return Un.unshift(0),Un},Gn=function o(Tn,Un){var Dn,Qn=[],Hn=Tn.length;Qn[0]=1;for(var Gn=0;Gn<Hn;Gn+=1)Dn=Tn[Gn-Un]||0,Qn[Gn+1]=Tn[Gn]-Dn+256&255;return Qn},Vn=function s(Tn,Un,Dn){var Qn,Hn=[],Gn=Tn.length;Hn[0]=2;for(var Vn=0;Vn<Gn;Vn+=1)Qn=Dn&&Dn[Vn]||0,Hn[Vn+1]=Tn[Vn]-Qn+256&255;return Hn},zn=function u(Tn,Un,Dn){var Qn,Hn,Gn=[],Vn=Tn.length;Gn[0]=3;for(var zn=0;zn<Vn;zn+=1)Qn=Tn[zn-Un]||0,Hn=Dn&&Dn[zn]||0,Gn[zn+1]=Tn[zn]+256-(Qn+Hn>>>1)&255;return Gn},Kn=function c(Tn,Un,Dn){var Qn,Hn,Gn,Vn,zn=[],Kn=Tn.length;zn[0]=4;for(var c=0;c<Kn;c+=1)Qn=Tn[c-Un]||0,Hn=Dn&&Dn[c]||0,Gn=Dn&&Dn[c-Un]||0,Vn=$n(Qn,Hn,Gn),zn[c+1]=Tn[c]-Vn+256&255;return zn},$n=function h(Tn,Un,Dn){if(Tn===Un&&Un===Dn)return Tn;var Qn=Math.abs(Un-Dn),Hn=Math.abs(Tn-Dn),Gn=Math.abs(Tn+Un-Dn-Dn);return Qn<=Hn&&Qn<=Gn?Tn:Hn<=Gn?Un:Dn},Wn=function l(){return[Hn,Gn,Vn,zn,Kn]},Xn=function f(Tn){var Un=Tn.map((function(Tn){return Tn.reduce((function(Tn,Un){return Tn+Math.abs(Un)}),0)}));return Un.indexOf(Math.min.apply(null,Un))};Tn.processPNG=function(Dn,Qn,Hn,Gn){var Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr,ir,or,ar=this.decode.FLATE_DECODE,sr="";if(this.__addimage__.isArrayBuffer(Dn)&&(Dn=new Uint8Array(Dn)),this.__addimage__.isArrayBufferView(Dn)){if(Dn=(Kn=new KU(Dn)).imgData,zn=Kn.bits,Vn=Kn.colorSpace,Wn=Kn.colors,-1!==[4,6].indexOf(Kn.colorType)){if(8===Kn.bits){Zn=(Jn=32==Kn.pixelBitlength?new Uint32Array(Kn.decodePixels().buffer):16==Kn.pixelBitlength?new Uint16Array(Kn.decodePixels().buffer):new Uint8Array(Kn.decodePixels().buffer)).length,tr=new Uint8Array(Zn*Kn.colors),er=new Uint8Array(Zn);var lr,cr=Kn.pixelBitlength-Kn.bits;for(ir=0,or=0;ir<Zn;ir++){for(rr=Jn[ir],lr=0;lr<cr;)tr[or++]=rr>>>lr&255,lr+=Kn.bits;er[ir]=rr>>>lr&255}}if(16===Kn.bits){Zn=(Jn=new Uint32Array(Kn.decodePixels().buffer)).length,tr=new Uint8Array(Zn*(32/Kn.pixelBitlength)*Kn.colors),er=new Uint8Array(Zn*(32/Kn.pixelBitlength)),nr=Kn.colors>1,ir=0,or=0;for(var ur=0;ir<Zn;)rr=Jn[ir++],tr[or++]=rr>>>0&255,nr&&(tr[or++]=rr>>>16&255,rr=Jn[ir++],tr[or++]=rr>>>0&255),er[ur++]=rr>>>16&255;zn=8}Gn!==Tn.image_compression.NONE?(Dn=Un(tr,Kn.width*Kn.colors,Kn.colors,Gn),Yn=Un(er,Kn.width,1,Gn)):(Dn=tr,Yn=er,ar=void 0)}if(3===Kn.colorType&&(Vn=this.color_spaces.INDEXED,Xn=Kn.palette,Kn.transparency.indexed)){var dr=Kn.transparency.indexed,hr=0;for(ir=0,Zn=dr.length;ir<Zn;++ir)hr+=dr[ir];if((hr/=255)==Zn-1&&-1!==dr.indexOf(0))$n=[dr.indexOf(0)];else if(hr!==Zn){for(Jn=Kn.decodePixels(),er=new Uint8Array(Jn.length),ir=0,Zn=Jn.length;ir<Zn;ir++)er[ir]=dr[Jn[ir]];Yn=Un(er,Kn.width,1)}}var pr=function(Un){var Dn;switch(Un){case Tn.image_compression.FAST:Dn=11;break;case Tn.image_compression.MEDIUM:Dn=13;break;case Tn.image_compression.SLOW:Dn=14;break;default:Dn=12}return Dn}(Gn);return ar===this.decode.FLATE_DECODE&&(sr="/Predictor "+pr+" "),sr+="/Colors "+Wn+" /BitsPerComponent "+zn+" /Columns "+Kn.width,(this.__addimage__.isArrayBuffer(Dn)||this.__addimage__.isArrayBufferView(Dn))&&(Dn=this.__addimage__.arrayBufferToBinaryString(Dn)),(Yn&&this.__addimage__.isArrayBuffer(Yn)||this.__addimage__.isArrayBufferView(Yn))&&(Yn=this.__addimage__.arrayBufferToBinaryString(Yn)),{alias:Hn,data:Dn,index:Qn,filter:ar,decodeParameters:sr,transparency:$n,palette:Xn,sMask:Yn,predictor:pr,width:Kn.width,height:Kn.height,bitsPerComponent:zn,colorSpace:Vn}}}}(g.API),function(Tn){Tn.processGIF89A=function(Un,Dn,Qn,Hn){var Gn=new jt(Un),Vn=Gn.width,zn=Gn.height,Kn=[];Gn.decodeAndBlitFrameRGBA(0,Kn);var $n={data:Kn,width:Vn,height:zn},Wn=new Ot(100).encode($n,100);return Tn.processJPEG.call(this,Wn,Dn,Qn,Hn)},Tn.processGIF87A=Tn.processGIF89A}(g.API),Mt.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 Tn=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(Tn);for(var Un=0;Un<Tn;Un++){var Dn=this.datav.getUint8(this.pos++,!0),Qn=this.datav.getUint8(this.pos++,!0),Hn=this.datav.getUint8(this.pos++,!0),Gn=this.datav.getUint8(this.pos++,!0);this.palette[Un]={red:Hn,green:Qn,blue:Dn,quad:Gn}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Mt.prototype.parseBGR=function(){this.pos=this.offset;try{var Tn="bit"+this.bitPP,Un=this.width*this.height*4;this.data=new Uint8Array(Un),this[Tn]()}catch(Tn){FF.log("bit decode error:"+Tn)}},Mt.prototype.bit1=function(){var Tn,Un=Math.ceil(this.width/8),Dn=Un%4;for(Tn=this.height-1;Tn>=0;Tn--){for(var Qn=this.bottom_up?Tn:this.height-1-Tn,Hn=0;Hn<Un;Hn++)for(var Gn=this.datav.getUint8(this.pos++,!0),Vn=Qn*this.width*4+8*Hn*4,zn=0;zn<8&&8*Hn+zn<this.width;zn++){var Kn=this.palette[Gn>>7-zn&1];this.data[Vn+4*zn]=Kn.blue,this.data[Vn+4*zn+1]=Kn.green,this.data[Vn+4*zn+2]=Kn.red,this.data[Vn+4*zn+3]=255}0!==Dn&&(this.pos+=4-Dn)}},Mt.prototype.bit4=function(){for(var Tn=Math.ceil(this.width/2),Un=Tn%4,Dn=this.height-1;Dn>=0;Dn--){for(var Qn=this.bottom_up?Dn:this.height-1-Dn,Hn=0;Hn<Tn;Hn++){var Gn=this.datav.getUint8(this.pos++,!0),Vn=Qn*this.width*4+2*Hn*4,zn=Gn>>4,Kn=15&Gn,$n=this.palette[zn];if(this.data[Vn]=$n.blue,this.data[Vn+1]=$n.green,this.data[Vn+2]=$n.red,this.data[Vn+3]=255,2*Hn+1>=this.width)break;$n=this.palette[Kn],this.data[Vn+4]=$n.blue,this.data[Vn+4+1]=$n.green,this.data[Vn+4+2]=$n.red,this.data[Vn+4+3]=255}0!==Un&&(this.pos+=4-Un)}},Mt.prototype.bit8=function(){for(var Tn=this.width%4,Un=this.height-1;Un>=0;Un--){for(var Dn=this.bottom_up?Un:this.height-1-Un,Qn=0;Qn<this.width;Qn++){var Hn=this.datav.getUint8(this.pos++,!0),Gn=Dn*this.width*4+4*Qn;if(Hn<this.palette.length){var Vn=this.palette[Hn];this.data[Gn]=Vn.red,this.data[Gn+1]=Vn.green,this.data[Gn+2]=Vn.blue,this.data[Gn+3]=255}else this.data[Gn]=255,this.data[Gn+1]=255,this.data[Gn+2]=255,this.data[Gn+3]=255}0!==Tn&&(this.pos+=4-Tn)}},Mt.prototype.bit15=function(){for(var Tn=this.width%3,Un=parseInt("11111",2),Dn=this.height-1;Dn>=0;Dn--){for(var Qn=this.bottom_up?Dn:this.height-1-Dn,Hn=0;Hn<this.width;Hn++){var Gn=this.datav.getUint16(this.pos,!0);this.pos+=2;var Vn=(Gn&Un)/Un*255|0,zn=(Gn>>5&Un)/Un*255|0,Kn=(Gn>>10&Un)/Un*255|0,$n=Gn>>15?255:0,Wn=Qn*this.width*4+4*Hn;this.data[Wn]=Kn,this.data[Wn+1]=zn,this.data[Wn+2]=Vn,this.data[Wn+3]=$n}this.pos+=Tn}},Mt.prototype.bit16=function(){for(var Tn=this.width%3,Un=parseInt("11111",2),Dn=parseInt("111111",2),Qn=this.height-1;Qn>=0;Qn--){for(var Hn=this.bottom_up?Qn:this.height-1-Qn,Gn=0;Gn<this.width;Gn++){var Vn=this.datav.getUint16(this.pos,!0);this.pos+=2;var zn=(Vn&Un)/Un*255|0,Kn=(Vn>>5&Dn)/Dn*255|0,$n=(Vn>>11)/Un*255|0,Wn=Hn*this.width*4+4*Gn;this.data[Wn]=$n,this.data[Wn+1]=Kn,this.data[Wn+2]=zn,this.data[Wn+3]=255}this.pos+=Tn}},Mt.prototype.bit24=function(){for(var Tn=this.height-1;Tn>=0;Tn--){for(var Un=this.bottom_up?Tn:this.height-1-Tn,Dn=0;Dn<this.width;Dn++){var Qn=this.datav.getUint8(this.pos++,!0),Hn=this.datav.getUint8(this.pos++,!0),Gn=this.datav.getUint8(this.pos++,!0),Vn=Un*this.width*4+4*Dn;this.data[Vn]=Gn,this.data[Vn+1]=Hn,this.data[Vn+2]=Qn,this.data[Vn+3]=255}this.pos+=this.width%4}},Mt.prototype.bit32=function(){for(var Tn=this.height-1;Tn>=0;Tn--)for(var Un=this.bottom_up?Tn:this.height-1-Tn,Dn=0;Dn<this.width;Dn++){var Qn=this.datav.getUint8(this.pos++,!0),Hn=this.datav.getUint8(this.pos++,!0),Gn=this.datav.getUint8(this.pos++,!0),Vn=this.datav.getUint8(this.pos++,!0),zn=Un*this.width*4+4*Dn;this.data[zn]=Gn,this.data[zn+1]=Hn,this.data[zn+2]=Qn,this.data[zn+3]=Vn}},Mt.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){Tn.processBMP=function(Un,Dn,Qn,Hn){var Gn=new Mt(Un,!1),Vn=Gn.width,zn=Gn.height,Kn={data:Gn.getData(),width:Vn,height:zn},$n=new Ot(100).encode(Kn,100);return Tn.processJPEG.call(this,$n,Dn,Qn,Hn)}}(g.API),Et.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2019 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){Tn.processWEBP=function(Un,Dn,Qn,Hn){var Gn=new Et(Un,!1),Vn=Gn.width,zn=Gn.height,Kn={data:Gn.getData(),width:Vn,height:zn},$n=new Ot(100).encode(Kn,100);return Tn.processJPEG.call(this,$n,Dn,Qn,Hn)}}(g.API),g.API.setLanguage=function(Tn){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"}[Tn]&&(this.internal.languageSettings.languageCode=Tn,!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.
|
||
* ====================================================================
|
||
*/
|
||
DU=g.API,jU=DU.getCharWidthsArray=function(Tn,Un){var Dn,Qn,Hn=(Un=Un||{}).font||this.internal.getFont(),Gn=Un.fontSize||this.internal.getFontSize(),Vn=Un.charSpace||this.internal.getCharSpace(),zn=Un.widths?Un.widths:Hn.metadata.Unicode.widths,Kn=zn.fof?zn.fof:1,$n=Un.kerning?Un.kerning:Hn.metadata.Unicode.kerning,Wn=$n.fof?$n.fof:1,Xn=!1!==Un.doKerning,Yn=0,Jn=Tn.length,Zn=0,er=zn[0]||Kn,tr=[];for(Dn=0;Dn<Jn;Dn++)Qn=Tn.charCodeAt(Dn),"function"==typeof Hn.metadata.widthOfString?tr.push((Hn.metadata.widthOfGlyph(Hn.metadata.characterToGlyph(Qn))+Vn*(1e3/Gn)||0)/1e3):(Yn=Xn&&"object"==_typeof($n[Qn])&&!isNaN(parseInt($n[Qn][Zn],10))?$n[Qn][Zn]/Wn:0,tr.push((zn[Qn]||er)/Kn+Yn)),Zn=Qn;return tr},QU=DU.getStringUnitWidth=function(Tn,Un){var Dn=(Un=Un||{}).fontSize||this.internal.getFontSize(),Qn=Un.font||this.internal.getFont(),Hn=Un.charSpace||this.internal.getCharSpace();return DU.processArabic&&(Tn=DU.processArabic(Tn)),"function"==typeof Qn.metadata.widthOfString?Qn.metadata.widthOfString(Tn,Dn,Hn)/Dn:jU.apply(this,arguments).reduce((function(Tn,Un){return Tn+Un}),0)},HU=function Pt(Tn,Un,Dn,Qn){for(var Hn=[],Gn=0,Vn=Tn.length,zn=0;Gn!==Vn&&zn+Un[Gn]<Dn;)zn+=Un[Gn],Gn++;Hn.push(Tn.slice(0,Gn));var Kn=Gn;for(zn=0;Gn!==Vn;)zn+Un[Gn]>Qn&&(Hn.push(Tn.slice(Kn,Gn)),zn=0,Kn=Gn),zn+=Un[Gn],Gn++;return Kn!==Gn&&Hn.push(Tn.slice(Kn,Gn)),Hn},GU=function kt(Tn,Un,Dn){Dn||(Dn={});var Qn,Hn,Gn,Vn,zn,Kn,$n,Wn=[],Xn=[Wn],Yn=Dn.textIndent||0,Jn=0,Zn=0,er=Tn.split(" "),tr=jU.apply(this,[" ",Dn])[0];if(Kn=-1===Dn.lineIndent?er[0].length+2:Dn.lineIndent||0){var nr=Array(Kn).join(" "),rr=[];er.map((function(Tn){(Tn=Tn.split(/\s*\n/)).length>1?rr=rr.concat(Tn.map((function(Tn,Un){return(Un&&Tn.length?"\n":"")+Tn}))):rr.push(Tn[0])})),er=rr,Kn=QU.apply(this,[nr,Dn])}for(Gn=0,Vn=er.length;Gn<Vn;Gn++){var ir=0;if(Qn=er[Gn],Kn&&"\n"==Qn[0]&&(Qn=Qn.substr(1),ir=1),Yn+Jn+(Zn=(Hn=jU.apply(this,[Qn,Dn])).reduce((function(Tn,Un){return Tn+Un}),0))>Un||ir){if(Zn>Un){for(zn=HU.apply(this,[Qn,Hn,Un-(Yn+Jn),Un]),Wn.push(zn.shift()),Wn=[zn.pop()];zn.length;)Xn.push([zn.shift()]);Zn=Hn.slice(Qn.length-(Wn[0]?Wn[0].length:0)).reduce((function(Tn,Un){return Tn+Un}),0)}else Wn=[Qn];Xn.push(Wn),Yn=Zn+Kn,Jn=tr}else Wn.push(Qn),Yn+=Jn+Zn,Jn=tr}return $n=Kn?function(Tn,Un){return(Un?nr:"")+Tn.join(" ")}:function(Tn){return Tn.join(" ")},Xn.map($n)},DU.splitTextToSize=function(Tn,Un,Dn){var Qn,Hn=(Dn=Dn||{}).fontSize||this.internal.getFontSize(),Gn=function(Tn){if(Tn.widths&&Tn.kerning)return{widths:Tn.widths,kerning:Tn.kerning};var Un=this.internal.getFont(Tn.fontName,Tn.fontStyle);return Un.metadata.Unicode?{widths:Un.metadata.Unicode.widths||{0:1},kerning:Un.metadata.Unicode.kerning||{}}:{font:Un.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Dn);Qn=Array.isArray(Tn)?Tn:String(Tn).split(/\r?\n/);var Vn=1*this.internal.scaleFactor*Un/Hn;Gn.textIndent=Dn.textIndent?1*Dn.textIndent*this.internal.scaleFactor/Hn:0,Gn.lineIndent=Dn.lineIndent;var zn,Kn,$n=[];for(zn=0,Kn=Qn.length;zn<Kn;zn++)$n=$n.concat(GU.apply(this,[Qn[zn],Vn,Gn]));return $n},
|
||
/** @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(Tn){Tn.__fontmetrics__=Tn.__fontmetrics__||{};for(var Un="klmnopqrstuvwxyz",Dn={},Qn={},Hn=0;Hn<Un.length;Hn++)Dn[Un[Hn]]="0123456789abcdef"[Hn],Qn["0123456789abcdef"[Hn]]=Un[Hn];var Gn=function a(Tn){return"0x"+parseInt(Tn,10).toString(16)},Vn=Tn.__fontmetrics__.compress=function(Tn){var Un,Dn,Hn,zn,Kn=["{"];for(var $n in Tn){if(Un=Tn[$n],isNaN(parseInt($n,10))?Dn="'"+$n+"'":($n=parseInt($n,10),Dn=(Dn=Gn($n).slice(2)).slice(0,-1)+Qn[Dn.slice(-1)]),"number"==typeof Un)Un<0?(Hn=Gn(Un).slice(3),zn="-"):(Hn=Gn(Un).slice(2),zn=""),Hn=zn+Hn.slice(0,-1)+Qn[Hn.slice(-1)];else{if("object"!=_typeof(Un))throw new Error("Don't know what to do with value type "+_typeof(Un)+".");Hn=Vn(Un)}Kn.push(Dn+Hn)}return Kn.push("}"),Kn.join("")},zn=Tn.__fontmetrics__.uncompress=function(Tn){if("string"!=typeof Tn)throw new Error("Invalid argument passed to uncompress.");for(var Un,Qn,Hn,Gn,Vn={},zn=1,Kn=Vn,$n=[],Wn="",Xn="",Yn=Tn.length-1,Jn=1;Jn<Yn;Jn+=1)"'"==(Gn=Tn[Jn])?Un?(Hn=Un.join(""),Un=void 0):Un=[]:Un?Un.push(Gn):"{"==Gn?($n.push([Kn,Hn]),Kn={},Hn=void 0):"}"==Gn?((Qn=$n.pop())[0][Qn[1]]=Kn,Hn=void 0,Kn=Qn[0]):"-"==Gn?zn=-1:void 0===Hn?Dn.hasOwnProperty(Gn)?(Wn+=Dn[Gn],Hn=parseInt(Wn,16)*zn,zn=1,Wn=""):Wn+=Gn:Dn.hasOwnProperty(Gn)?(Xn+=Dn[Gn],Kn[Hn]=parseInt(Xn,16)*zn,zn=1,Hn=void 0,Xn=""):Xn+=Gn;return Vn},Kn={codePages:["WinAnsiEncoding"],WinAnsiEncoding:zn("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},$n={Unicode:{Courier:Kn,"Courier-Bold":Kn,"Courier-BoldOblique":Kn,"Courier-Oblique":Kn,Helvetica:Kn,"Helvetica-Bold":Kn,"Helvetica-BoldOblique":Kn,"Helvetica-Oblique":Kn,"Times-Roman":Kn,"Times-Bold":Kn,"Times-BoldItalic":Kn,"Times-Italic":Kn}},Wn={Unicode:{"Courier-Oblique":zn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":zn("{'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":zn("{'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:zn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":zn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":zn("{'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:zn("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:zn("{'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":zn("{'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:zn("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":zn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":zn("{'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":zn("{'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":zn("{'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}}}")}};Tn.events.push(["addFont",function(Tn){var Un=Tn.font,Dn=Wn.Unicode[Un.postScriptName];Dn&&(Un.metadata.Unicode={},Un.metadata.Unicode.widths=Dn.widths,Un.metadata.Unicode.kerning=Dn.kerning);var Qn=$n.Unicode[Un.postScriptName];Qn&&(Un.metadata.Unicode.encoding=Qn,Un.encoding=Qn.codePages[0])}])}(g.API),
|
||
/**
|
||
* @license
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){var Un=function e(Tn){for(var e=Tn.length,Un=new Uint8Array(e),Dn=0;Dn<e;Dn++)Un[Dn]=Tn.charCodeAt(Dn);return Un};Tn.API.events.push(["addFont",function(Dn){var Qn=void 0,Hn=Dn.font,Gn=Dn.instance;if(!Hn.isStandardFont){if(void 0===Gn)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Hn.postScriptName+"').");if("string"!=typeof(Qn=!1===Gn.existsFileInVFS(Hn.postScriptName)?Gn.loadFile(Hn.postScriptName):Gn.getFileFromVFS(Hn.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Hn.postScriptName+"').");!function(Dn,Qn){Qn=/^\x00\x01\x00\x00/.test(Qn)?Un(Qn):Un(UF(Qn)),Dn.metadata=Tn.API.TTFFont.open(Qn),Dn.metadata.Unicode=Dn.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Dn.metadata.glyIdsUsed=[0]}(Hn,Qn)}}])}(g),
|
||
/** @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(Tn){function r(){return(OF.canvg?Promise.resolve(OF.canvg):Promise.resolve().then((function(){return PE}))).catch((function(Tn){return Promise.reject(new Error("Could not load dompurify: "+Tn))})).then((function(Tn){return Tn.default?Tn.default:Tn}))}g.API.addSvgAsImage=function(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){if(isNaN(Un)||isNaN(Dn))throw FF.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Qn)||isNaN(Hn))throw FF.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Kn=document.createElement("canvas");Kn.width=Qn,Kn.height=Hn;var $n=Kn.getContext("2d");$n.fillStyle="#fff",$n.fillRect(0,0,Kn.width,Kn.height);var Wn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Xn=this;return r().then((function(Un){return Un.Canvg.fromString($n,Tn,Wn)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(Tn){return Tn.render(Wn)})).then((function(){Xn.addImage(Kn.toDataURL("image/jpeg",1),Un,Dn,Qn,Hn,Vn,zn)}))}}(),g.API.putTotalPages=function(Tn){var Un,Dn=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Un=new RegExp(Tn,"g"),Dn=this.internal.getNumberOfPages()):(Un=new RegExp(this.pdfEscape16(Tn,this.internal.getFont()),"g"),Dn=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Qn=1;Qn<=this.internal.getNumberOfPages();Qn++)for(var Hn=0;Hn<this.internal.pages[Qn].length;Hn++)this.internal.pages[Qn][Hn]=this.internal.pages[Qn][Hn].replace(Un,Dn);return this},g.API.viewerPreferences=function(Tn,Un){var Dn;Tn=Tn||{},Un=Un||!1;var Qn,Hn,Gn,Vn={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}},zn=Object.keys(Vn),Kn=[],$n=0,Wn=0,Xn=0;function f(Tn,Un){var Dn,Qn=!1;for(Dn=0;Dn<Tn.length;Dn+=1)Tn[Dn]===Un&&(Qn=!0);return Qn}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Vn)),this.internal.viewerpreferences.isSubscribed=!1),Dn=this.internal.viewerpreferences.configuration,"reset"===Tn||!0===Un){var Yn=zn.length;for(Xn=0;Xn<Yn;Xn+=1)Dn[zn[Xn]].value=Dn[zn[Xn]].defaultValue,Dn[zn[Xn]].explicitSet=!1}if("object"==_typeof(Tn))for(Hn in Tn)if(Gn=Tn[Hn],f(zn,Hn)&&void 0!==Gn){if("boolean"===Dn[Hn].type&&"boolean"==typeof Gn)Dn[Hn].value=Gn;else if("name"===Dn[Hn].type&&f(Dn[Hn].valueSet,Gn))Dn[Hn].value=Gn;else if("integer"===Dn[Hn].type&&Number.isInteger(Gn))Dn[Hn].value=Gn;else if("array"===Dn[Hn].type){for($n=0;$n<Gn.length;$n+=1)if(Qn=!0,1===Gn[$n].length&&"number"==typeof Gn[$n][0])Kn.push(String(Gn[$n]-1));else if(Gn[$n].length>1){for(Wn=0;Wn<Gn[$n].length;Wn+=1)"number"!=typeof Gn[$n][Wn]&&(Qn=!1);!0===Qn&&Kn.push([Gn[$n][0]-1,Gn[$n][1]-1].join(" "))}Dn[Hn].value="["+Kn.join(" ")+"]"}else Dn[Hn].value=Dn[Hn].defaultValue;Dn[Hn].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var Tn,Un=[];for(Tn in Dn)!0===Dn[Tn].explicitSet&&("name"===Dn[Tn].type?Un.push("/"+Tn+" /"+Dn[Tn].value):Un.push("/"+Tn+" "+Dn[Tn].value));0!==Un.length&&this.internal.write("/ViewerPreferences\n<<\n"+Un.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Dn,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(Tn){var Un=function e(){var Tn='<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/">')),Un=unescape(encodeURIComponent(Tn)),Dn=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Qn=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Hn=unescape(encodeURIComponent("</x:xmpmeta>")),Gn=Un.length+Dn.length+Qn.length+e.length+Hn.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Gn+" >>"),this.internal.write("stream"),this.internal.write(e+Un+Dn+Qn+Hn),this.internal.write("endstream"),this.internal.write("endobj")},Dn=function n(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Tn.addMetadata=function(Tn,Qn){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:Tn,namespaceuri:Qn||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Dn),this.internal.events.subscribe("postPutResources",Un)),this}}(g.API),function(Tn){var Un=Tn.API,Dn=Un.pdfEscape16=function(Tn,Un){for(var Dn,Qn=Un.metadata.Unicode.widths,Hn=["","0","00","000","0000"],Gn=[""],Vn=0,zn=Tn.length;Vn<zn;++Vn){if(Dn=Un.metadata.characterToGlyph(Tn.charCodeAt(Vn)),Un.metadata.glyIdsUsed.push(Dn),Un.metadata.toUnicode[Dn]=Tn.charCodeAt(Vn),-1==Qn.indexOf(Dn)&&(Qn.push(Dn),Qn.push([parseInt(Un.metadata.widthOfGlyph(Dn),10)])),"0"==Dn)return Gn.join("");Dn=Dn.toString(16),Gn.push(Hn[4-Dn.length],Dn)}return Gn.join("")},Qn=function r(Tn){var Un,Dn,r,Qn,Hn,Gn,Vn;for(Hn="/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",r=[],Gn=0,Vn=(Dn=Object.keys(Tn).sort((function(Tn,Un){return Tn-Un}))).length;Gn<Vn;Gn++)Un=Dn[Gn],r.length>=100&&(Hn+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==Tn[Un]&&null!==Tn[Un]&&"function"==typeof Tn[Un].toString&&(Qn=("0000"+Tn[Un].toString(16)).slice(-4),Un=("0000"+(+Un).toString(16)).slice(-4),r.push("<"+Un+"><"+Qn+">"));return r.length&&(Hn+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),Hn+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};Un.events.push(["putFont",function(Un){!function(Un){var Dn=Un.font,Hn=Un.out,Gn=Un.newObject,Vn=Un.putStream,zn=Un.pdfEscapeWithNeededParanthesis;if(Dn.metadata instanceof Tn.API.TTFFont&&"Identity-H"===Dn.encoding){for(var Kn=Dn.metadata.Unicode.widths,$n=Dn.metadata.subset.encode(Dn.metadata.glyIdsUsed,1),Wn="",Xn=0;Xn<$n.length;Xn++)Wn+=String.fromCharCode($n[Xn]);var Yn=Gn();Vn({data:Wn,addLength1:!0}),Hn("endobj");var Jn=Gn();Vn({data:Qn(Dn.metadata.toUnicode),addLength1:!0}),Hn("endobj");var Zn=Gn();Hn("<<"),Hn("/Type /FontDescriptor"),Hn("/FontName /"+zn(Dn.fontName)),Hn("/FontFile2 "+Yn+" 0 R"),Hn("/FontBBox "+Tn.API.PDFObject.convert(Dn.metadata.bbox)),Hn("/Flags "+Dn.metadata.flags),Hn("/StemV "+Dn.metadata.stemV),Hn("/ItalicAngle "+Dn.metadata.italicAngle),Hn("/Ascent "+Dn.metadata.ascender),Hn("/Descent "+Dn.metadata.decender),Hn("/CapHeight "+Dn.metadata.capHeight),Hn(">>"),Hn("endobj");var er=Gn();Hn("<<"),Hn("/Type /Font"),Hn("/BaseFont /"+zn(Dn.fontName)),Hn("/FontDescriptor "+Zn+" 0 R"),Hn("/W "+Tn.API.PDFObject.convert(Kn)),Hn("/CIDToGIDMap /Identity"),Hn("/DW 1000"),Hn("/Subtype /CIDFontType2"),Hn("/CIDSystemInfo"),Hn("<<"),Hn("/Supplement 0"),Hn("/Registry (Adobe)"),Hn("/Ordering ("+Dn.encoding+")"),Hn(">>"),Hn(">>"),Hn("endobj"),Dn.objectNumber=Gn(),Hn("<<"),Hn("/Type /Font"),Hn("/Subtype /Type0"),Hn("/ToUnicode "+Jn+" 0 R"),Hn("/BaseFont /"+zn(Dn.fontName)),Hn("/Encoding /"+Dn.encoding),Hn("/DescendantFonts ["+er+" 0 R]"),Hn(">>"),Hn("endobj"),Dn.isAlreadyPutted=!0}}(Un)}]),Un.events.push(["putFont",function(Un){!function(Un){var Dn=Un.font,Hn=Un.out,Gn=Un.newObject,Vn=Un.putStream,zn=Un.pdfEscapeWithNeededParanthesis;if(Dn.metadata instanceof Tn.API.TTFFont&&"WinAnsiEncoding"===Dn.encoding){for(var Kn=Dn.metadata.rawData,$n="",Wn=0;Wn<Kn.length;Wn++)$n+=String.fromCharCode(Kn[Wn]);var Xn=Gn();Vn({data:$n,addLength1:!0}),Hn("endobj");var Yn=Gn();Vn({data:Qn(Dn.metadata.toUnicode),addLength1:!0}),Hn("endobj");var Jn=Gn();Hn("<<"),Hn("/Descent "+Dn.metadata.decender),Hn("/CapHeight "+Dn.metadata.capHeight),Hn("/StemV "+Dn.metadata.stemV),Hn("/Type /FontDescriptor"),Hn("/FontFile2 "+Xn+" 0 R"),Hn("/Flags 96"),Hn("/FontBBox "+Tn.API.PDFObject.convert(Dn.metadata.bbox)),Hn("/FontName /"+zn(Dn.fontName)),Hn("/ItalicAngle "+Dn.metadata.italicAngle),Hn("/Ascent "+Dn.metadata.ascender),Hn(">>"),Hn("endobj"),Dn.objectNumber=Gn();for(var Zn=0;Zn<Dn.metadata.hmtx.widths.length;Zn++)Dn.metadata.hmtx.widths[Zn]=parseInt(Dn.metadata.hmtx.widths[Zn]*(1e3/Dn.metadata.head.unitsPerEm));Hn("<</Subtype/TrueType/Type/Font/ToUnicode "+Yn+" 0 R/BaseFont/"+Dn.fontName+"/FontDescriptor "+Jn+" 0 R/Encoding/"+Dn.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Tn.API.PDFObject.convert(Dn.metadata.hmtx.widths)+">>"),Hn("endobj"),Dn.isAlreadyPutted=!0}}(Un)}]);var Hn=function i(Tn){var Un,Qn=Tn.text||"",i=Tn.x,Hn=Tn.y,Gn=Tn.options||{},Vn=Tn.mutex||{},zn=Vn.pdfEscape,Kn=Vn.activeFontKey,$n=Vn.fonts,Wn=Kn,Xn="",Yn=0,Jn="",Zn=$n[Wn].encoding;if("Identity-H"!==$n[Wn].encoding)return{text:Qn,x:i,y:Hn,options:Gn,mutex:Vn};for(Jn=Qn,Wn=Kn,Array.isArray(Qn)&&(Jn=Qn[0]),Yn=0;Yn<Jn.length;Yn+=1)$n[Wn].metadata.hasOwnProperty("cmap")&&(Un=$n[Wn].metadata.cmap.unicode.codeMap[Jn[Yn].charCodeAt(0)]),Un||Jn[Yn].charCodeAt(0)<256&&$n[Wn].metadata.hasOwnProperty("Unicode")?Xn+=Jn[Yn]:Xn+="";var er="";return parseInt(Wn.slice(1))<14||"WinAnsiEncoding"===Zn?er=zn(Xn,Wn).split("").map((function(Tn){return Tn.charCodeAt(0).toString(16)})).join(""):"Identity-H"===Zn&&(er=Dn(Xn,$n[Wn])),Vn.isHex=!0,{text:er,x:i,y:Hn,options:Gn,mutex:Vn}};Un.events.push(["postProcessText",function(Tn){var Un=Tn.text||"",Dn=[],Qn={text:Un,x:Tn.x,y:Tn.y,options:Tn.options,mutex:Tn.mutex};if(Array.isArray(Un)){var Gn=0;for(Gn=0;Gn<Un.length;Gn+=1)Array.isArray(Un[Gn])&&3===Un[Gn].length?Dn.push([Hn(Object.assign({},Qn,{text:Un[Gn][0]})).text,Un[Gn][1],Un[Gn][2]]):Dn.push(Hn(Object.assign({},Qn,{text:Un[Gn]})).text);Tn.text=Dn}else Tn.text=Hn(Object.assign({},Qn,{text:Un})).text}])}(g),
|
||
/**
|
||
* @license
|
||
* jsPDF virtual FileSystem functionality
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(Tn){var Un=function e(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};Tn.existsFileInVFS=function(Tn){return Un.call(this),void 0!==this.internal.vFS[Tn]},Tn.addFileToVFS=function(Tn,Dn){return Un.call(this),this.internal.vFS[Tn]=Dn,this},Tn.getFileFromVFS=function(Tn){return Un.call(this),void 0!==this.internal.vFS[Tn]?this.internal.vFS[Tn]:null}}(g.API),
|
||
/**
|
||
* @license
|
||
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
||
* MIT License
|
||
*/
|
||
function(Tn){Tn.__bidiEngine__=Tn.prototype.__bidiEngine__=function(Tn){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n=Un,Wn=[[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]],Xn=[[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]],Yn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Jn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Zn=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],er=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)$/),tr=!1,nr=0;this.__bidiEngine__={};var rr=function b(Tn){var Un=Tn.charCodeAt(),Dn=Un>>8,Qn=Jn[Dn];return void 0!==Qn?$n[256*Qn+(255&Un)]:252===Dn||253===Dn?"AL":er.test(Dn)?"L":8===Dn?"R":"N"},ir=function y(Tn){for(var Un,Dn=0;Dn<Tn.length;Dn++){if("L"===(Un=rr(Tn.charAt(Dn))))return!1;if("R"===Un)return!0}return!1},or=function w(Tn,Un,Vn,zn){var Kn,$n,Wn,Xn,Yn=Un[zn];switch(Yn){case"L":case"R":tr=!1;break;case"N":case"AN":break;case"EN":tr&&(Yn="AN");break;case"AL":tr=!0,Yn="R";break;case"WS":Yn="N";break;case"CS":zn<1||zn+1>=Un.length||"EN"!==(Kn=Vn[zn-1])&&"AN"!==Kn||"EN"!==($n=Un[zn+1])&&"AN"!==$n?Yn="N":tr&&($n="AN"),Yn=$n===Kn?$n:"N";break;case"ES":Yn="EN"===(Kn=zn>0?Vn[zn-1]:"B")&&zn+1<Un.length&&"EN"===Un[zn+1]?"EN":"N";break;case"ET":if(zn>0&&"EN"===Vn[zn-1]){Yn="EN";break}if(tr){Yn="N";break}for(Wn=zn+1,Xn=Un.length;Wn<Xn&&"ET"===Un[Wn];)Wn++;Yn=Wn<Xn&&"EN"===Un[Wn]?"EN":"N";break;case"NSM":if(Hn&&!Gn){for(Xn=Un.length,Wn=zn+1;Wn<Xn&&"NSM"===Un[Wn];)Wn++;if(Wn<Xn){var Jn=Tn[zn],Zn=Jn>=1425&&Jn<=2303||64286===Jn;if(Kn=Un[Wn],Zn&&("R"===Kn||"AL"===Kn)){Yn="R";break}}}Yn=zn<1||"B"===(Kn=Un[zn-1])?"N":Vn[zn-1];break;case"B":tr=!1,Dn=!0,Yn=nr;break;case"S":Qn=!0,Yn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":tr=!1;break;case"BN":Yn="N"}return Yn},ar=function N(Tn,Un,Dn){var Qn=Tn.split("");return Dn&&sr(Qn,Dn,{hiLevel:nr}),Qn.reverse(),Un&&Un.reverse(),Qn.join("")},sr=function L(Tn,Un,Hn){var Gn,Vn,zn,Kn,$n,Jn=-1,Zn=Tn.length,er=0,ir=[],ar=nr?Xn:Wn,L=[];for(tr=!1,Dn=!1,Qn=!1,Vn=0;Vn<Zn;Vn++)L[Vn]=rr(Tn[Vn]);for(zn=0;zn<Zn;zn++){if($n=er,ir[zn]=or(Tn,L,ir,zn),Gn=240&(er=ar[$n][Yn[ir[zn]]]),er&=15,Un[zn]=Kn=ar[er][5],Gn>0)if(16===Gn){for(Vn=Jn;Vn<zn;Vn++)Un[Vn]=1;Jn=-1}else Jn=-1;if(ar[er][6])-1===Jn&&(Jn=zn);else if(Jn>-1){for(Vn=Jn;Vn<zn;Vn++)Un[Vn]=Kn;Jn=-1}"B"===L[zn]&&(Un[zn]=0),Hn.hiLevel|=Kn}Qn&&function(Tn,Un,Dn){for(var Qn=0;Qn<Dn;Qn++)if("S"===Tn[Qn]){Un[Qn]=nr;for(var Hn=Qn-1;Hn>=0&&"WS"===Tn[Hn];Hn--)Un[Hn]=nr}}(L,Un,Zn)},lr=function x(Tn,Un,Qn,Hn,Gn){if(!(Gn.hiLevel<Tn)){if(1===Tn&&1===nr&&!Dn)return Un.reverse(),void(Qn&&Qn.reverse());for(var Vn,zn,Kn,$n,Wn=Un.length,Xn=0;Xn<Wn;){if(Hn[Xn]>=Tn){for(Kn=Xn+1;Kn<Wn&&Hn[Kn]>=Tn;)Kn++;for($n=Xn,zn=Kn-1;$n<zn;$n++,zn--)Vn=Un[$n],Un[$n]=Un[zn],Un[zn]=Vn,Qn&&(Vn=Qn[$n],Qn[$n]=Qn[zn],Qn[zn]=Vn);Xn=Kn}Xn++}}},cr=function A(Tn,Un,Dn){var Qn=Tn.split(""),Hn={hiLevel:nr};return Dn||(Dn=[]),sr(Qn,Dn,Hn),function(Tn,Un,Dn){if(0!==Dn.hiLevel&&Kn)for(var Qn,Hn=0;Hn<Tn.length;Hn++)1===Un[Hn]&&(Qn=Zn.indexOf(Tn[Hn]))>=0&&(Tn[Hn]=Zn[Qn+1])}(Qn,Dn,Hn),lr(2,Qn,Un,Dn,Hn),lr(1,Qn,Un,Dn,Hn),Qn.join("")};return this.__bidiEngine__.doBidiReorder=function(Tn,Un,Dn){if(function(Tn,Un){if(Un)for(var Dn=0;Dn<Tn.length;Dn++)Un[Dn]=Dn;void 0===Gn&&(Gn=ir(Tn)),void 0===zn&&(zn=ir(Tn))}(Tn,Un),Hn||!Vn||zn)if(Hn&&Vn&&Gn^zn)nr=Gn?1:0,Tn=ar(Tn,Un,Dn);else if(!Hn&&Vn&&zn)nr=Gn?1:0,Tn=cr(Tn,Un,Dn),Tn=ar(Tn,Un);else if(!Hn||Gn||Vn||zn){if(Hn&&!Vn&&Gn^zn)Tn=ar(Tn,Un),Gn?(nr=0,Tn=cr(Tn,Un,Dn)):(nr=1,Tn=cr(Tn,Un,Dn),Tn=ar(Tn,Un));else if(Hn&&Gn&&!Vn&&zn)nr=1,Tn=cr(Tn,Un,Dn),Tn=ar(Tn,Un);else if(!Hn&&!Vn&&Gn^zn){var Qn=Kn;Gn?(nr=1,Tn=cr(Tn,Un,Dn),nr=0,Kn=!1,Tn=cr(Tn,Un,Dn),Kn=Qn):(nr=0,Tn=cr(Tn,Un,Dn),Tn=ar(Tn,Un),nr=1,Kn=!1,Tn=cr(Tn,Un,Dn),Kn=Qn,Tn=ar(Tn,Un))}}else nr=0,Tn=cr(Tn,Un,Dn);else nr=Gn?1:0,Tn=cr(Tn,Un,Dn);return Tn},this.__bidiEngine__.setOptions=function(Tn){Tn&&(Hn=Tn.isInputVisual,Vn=Tn.isOutputVisual,Gn=Tn.isInputRtl,zn=Tn.isOutputRtl,Kn=Tn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Tn),this.__bidiEngine__};var Un=["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"],Dn=new Tn.__bidiEngine__({isInputVisual:!0});Tn.API.events.push(["postProcessText",function(Tn){var Un=Tn.text,Qn=(Tn.x,Tn.y,Tn.options||{}),Hn=(Tn.mutex,Qn.lang,[]);if(Qn.isInputVisual="boolean"!=typeof Qn.isInputVisual||Qn.isInputVisual,Dn.setOptions(Qn),"[object Array]"===Object.prototype.toString.call(Un)){var Gn=0;for(Hn=[],Gn=0;Gn<Un.length;Gn+=1)"[object Array]"===Object.prototype.toString.call(Un[Gn])?Hn.push([Dn.doBidiReorder(Un[Gn][0]),Un[Gn][1],Un[Gn][2]]):Hn.push([Dn.doBidiReorder(Un[Gn])]);Tn.text=Hn}else Tn.text=Dn.doBidiReorder(Un);Dn.setOptions({isInputVisual:!0})}])}(g),g.API.TTFFont=function(){function t(Tn){var Un;if(this.rawData=Tn,Un=this.contents=new $U(Tn),this.contents.pos=4,"ttcf"===Un.readString(4))throw new Error("TTCF not supported.");Un.pos=0,this.parse(),this.subset=new pM(this),this.registerTTF()}return t.open=function(Tn){return new t(Tn)},t.prototype.parse=function(){return this.directory=new WU(this.contents),this.head=new JU(this),this.name=new oM(this),this.cmap=new eM(this),this.toUnicode={},this.hhea=new tM(this),this.maxp=new aM(this),this.hmtx=new sM(this),this.post=new rM(this),this.os2=new nM(this),this.loca=new hM(this),this.glyf=new cM(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 Tn,Un,Dn,Qn,Hn;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var Un,Dn,Qn,Hn;for(Hn=[],Un=0,Dn=(Qn=this.bbox).length;Un<Dn;Un++)Tn=Qn[Un],Hn.push(Math.round(Tn*this.scaleFactor));return Hn}.call(this),this.stemV=0,this.post.exists?(Dn=255&(Qn=this.post.italic_angle),0!=(32768&(Un=Qn>>16))&&(Un=-(1+(65535^Un))),this.italicAngle=+(Un+"."+Dn)):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===(Hn=this.familyClass)||2===Hn||3===Hn||4===Hn||5===Hn||7===Hn,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(Tn){var Un;return(null!=(Un=this.cmap.unicode)?Un.codeMap[Tn]:void 0)||0},t.prototype.widthOfGlyph=function(Tn){var Un;return Un=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Tn).advance*Un},t.prototype.widthOfString=function(Tn,Un,Dn){var Qn,Hn,Gn,Vn;for(Gn=0,Hn=0,Vn=(Tn=""+Tn).length;0<=Vn?Hn<Vn:Hn>Vn;Hn=0<=Vn?++Hn:--Hn)Qn=Tn.charCodeAt(Hn),Gn+=this.widthOfGlyph(this.characterToGlyph(Qn))+Dn*(1e3/Un)||0;return Gn*(Un/1e3)},t.prototype.lineHeight=function(Tn,Un){var Dn;return null==Un&&(Un=!1),Dn=Un?this.lineGap:0,(this.ascender+Dn-this.decender)/1e3*Tn},t}();var qU,$U=function(){function t(Tn){this.data=null!=Tn?Tn:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(Tn){return this.data[this.pos++]=Tn},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(Tn){return this.writeByte(Tn>>>24&255),this.writeByte(Tn>>16&255),this.writeByte(Tn>>8&255),this.writeByte(255&Tn)},t.prototype.readInt32=function(){var Tn;return(Tn=this.readUInt32())>=2147483648?Tn-4294967296:Tn},t.prototype.writeInt32=function(Tn){return Tn<0&&(Tn+=4294967296),this.writeUInt32(Tn)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(Tn){return this.writeByte(Tn>>8&255),this.writeByte(255&Tn)},t.prototype.readInt16=function(){var Tn;return(Tn=this.readUInt16())>=32768?Tn-65536:Tn},t.prototype.writeInt16=function(Tn){return Tn<0&&(Tn+=65536),this.writeUInt16(Tn)},t.prototype.readString=function(Tn){var Un,Dn;for(Dn=[],Un=0;0<=Tn?Un<Tn:Un>Tn;Un=0<=Tn?++Un:--Un)Dn[Un]=String.fromCharCode(this.readByte());return Dn.join("")},t.prototype.writeString=function(Tn){var Un,Dn,Qn;for(Qn=[],Un=0,Dn=Tn.length;0<=Dn?Un<Dn:Un>Dn;Un=0<=Dn?++Un:--Un)Qn.push(this.writeByte(Tn.charCodeAt(Un)));return Qn},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(Tn){return this.writeInt16(Tn)},t.prototype.readLongLong=function(){var Tn,Un,Dn,Qn,Hn,Gn,Vn,zn;return Tn=this.readByte(),Un=this.readByte(),Dn=this.readByte(),Qn=this.readByte(),Hn=this.readByte(),Gn=this.readByte(),Vn=this.readByte(),zn=this.readByte(),128&Tn?-1*(72057594037927940*(255^Tn)+281474976710656*(255^Un)+1099511627776*(255^Dn)+4294967296*(255^Qn)+16777216*(255^Hn)+65536*(255^Gn)+256*(255^Vn)+(255^zn)+1):72057594037927940*Tn+281474976710656*Un+1099511627776*Dn+4294967296*Qn+16777216*Hn+65536*Gn+256*Vn+zn},t.prototype.writeLongLong=function(Tn){var Un,Dn;return Un=Math.floor(Tn/4294967296),Dn=4294967295&Tn,this.writeByte(Un>>24&255),this.writeByte(Un>>16&255),this.writeByte(Un>>8&255),this.writeByte(255&Un),this.writeByte(Dn>>24&255),this.writeByte(Dn>>16&255),this.writeByte(Dn>>8&255),this.writeByte(255&Dn)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(Tn){return this.writeInt32(Tn)},t.prototype.read=function(Tn){var Un,Dn;for(Un=[],Dn=0;0<=Tn?Dn<Tn:Dn>Tn;Dn=0<=Tn?++Dn:--Dn)Un.push(this.readByte());return Un},t.prototype.write=function(Tn){var Un,Dn,Qn,Hn;for(Hn=[],Dn=0,Qn=Tn.length;Dn<Qn;Dn++)Un=Tn[Dn],Hn.push(this.writeByte(Un));return Hn},t}(),WU=function(){var Tn;function e(Tn){var Un,Dn,Qn;for(this.scalarType=Tn.readInt(),this.tableCount=Tn.readShort(),this.searchRange=Tn.readShort(),this.entrySelector=Tn.readShort(),this.rangeShift=Tn.readShort(),this.tables={},Dn=0,Qn=this.tableCount;0<=Qn?Dn<Qn:Dn>Qn;Dn=0<=Qn?++Dn:--Dn)Un={tag:Tn.readString(4),checksum:Tn.readInt(),offset:Tn.readInt(),length:Tn.readInt()},this.tables[Un.tag]=Un}return e.prototype.encode=function(Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn;for(Zn in Yn=Object.keys(Un).length,zn=Math.log(2),Wn=16*Math.floor(Math.log(Yn)/zn),Gn=Math.floor(Wn/zn),$n=16*Yn-Wn,(Qn=new $U).writeInt(this.scalarType),Qn.writeShort(Yn),Qn.writeShort(Wn),Qn.writeShort(Gn),Qn.writeShort($n),Hn=16*Yn,Kn=Qn.pos+Hn,Vn=null,Jn=[],Un)for(Xn=Un[Zn],Qn.writeString(Zn),Qn.writeInt(Tn(Xn)),Qn.writeInt(Kn),Qn.writeInt(Xn.length),Jn=Jn.concat(Xn),"head"===Zn&&(Vn=Kn),Kn+=Xn.length;Kn%4;)Jn.push(0),Kn++;return Qn.write(Jn),Dn=2981146554-Tn(Qn.data),Qn.pos=Vn+8,Qn.writeUInt32(Dn),Qn.data},Tn=function t(Tn){var Un,Dn,Qn,Hn;for(Tn=lM.call(Tn);Tn.length%4;)Tn.push(0);for(Qn=new $U(Tn),Dn=0,Un=0,Hn=Tn.length;Un<Hn;Un=Un+=4)Dn+=Qn.readUInt32();return 4294967295&Dn},e}(),XU={}.hasOwnProperty,YU=function Ut(Tn,Un){for(var Dn in Un)XU.call(Un,Dn)&&(Tn[Dn]=Un[Dn]);function r(){this.constructor=Tn}return r.prototype=Un.prototype,Tn.prototype=new r,Tn.__super__=Un.prototype,Tn};qU=function(){function t(Tn){var Un;this.file=Tn,Un=this.file.directory.tables[this.tag],this.exists=!!Un,Un&&(this.offset=Un.offset,this.length=Un.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 JU=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return YU(e,qU),e.prototype.tag="head",e.prototype.parse=function(Tn){return Tn.pos=this.offset,this.version=Tn.readInt(),this.revision=Tn.readInt(),this.checkSumAdjustment=Tn.readInt(),this.magicNumber=Tn.readInt(),this.flags=Tn.readShort(),this.unitsPerEm=Tn.readShort(),this.created=Tn.readLongLong(),this.modified=Tn.readLongLong(),this.xMin=Tn.readShort(),this.yMin=Tn.readShort(),this.xMax=Tn.readShort(),this.yMax=Tn.readShort(),this.macStyle=Tn.readShort(),this.lowestRecPPEM=Tn.readShort(),this.fontDirectionHint=Tn.readShort(),this.indexToLocFormat=Tn.readShort(),this.glyphDataFormat=Tn.readShort()},e.prototype.encode=function(Tn){var Un;return(Un=new $U).writeInt(this.version),Un.writeInt(this.revision),Un.writeInt(this.checkSumAdjustment),Un.writeInt(this.magicNumber),Un.writeShort(this.flags),Un.writeShort(this.unitsPerEm),Un.writeLongLong(this.created),Un.writeLongLong(this.modified),Un.writeShort(this.xMin),Un.writeShort(this.yMin),Un.writeShort(this.xMax),Un.writeShort(this.yMax),Un.writeShort(this.macStyle),Un.writeShort(this.lowestRecPPEM),Un.writeShort(this.fontDirectionHint),Un.writeShort(Tn),Un.writeShort(this.glyphDataFormat),Un.data},e}(),ZU=function(){function t(Tn,Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr;switch(this.platformID=Tn.readUInt16(),this.encodingID=Tn.readShort(),this.offset=Un+Tn.readInt(),Wn=Tn.pos,Tn.pos=this.offset,this.format=Tn.readUInt16(),this.length=Tn.readUInt16(),this.language=Tn.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(zn=0;zn<256;++zn)this.codeMap[zn]=Tn.readByte();break;case 4:for(Yn=Tn.readUInt16(),Xn=Yn/2,Tn.pos+=6,Hn=function(){var Un,Dn;for(Dn=[],zn=Un=0;0<=Xn?Un<Xn:Un>Xn;zn=0<=Xn?++Un:--Un)Dn.push(Tn.readUInt16());return Dn}(),Tn.pos+=2,Zn=function(){var Un,Dn;for(Dn=[],zn=Un=0;0<=Xn?Un<Xn:Un>Xn;zn=0<=Xn?++Un:--Un)Dn.push(Tn.readUInt16());return Dn}(),Kn=function(){var Un,Dn;for(Dn=[],zn=Un=0;0<=Xn?Un<Xn:Un>Xn;zn=0<=Xn?++Un:--Un)Dn.push(Tn.readUInt16());return Dn}(),$n=function(){var Un,Dn;for(Dn=[],zn=Un=0;0<=Xn?Un<Xn:Un>Xn;zn=0<=Xn?++Un:--Un)Dn.push(Tn.readUInt16());return Dn}(),Qn=(this.length-Tn.pos+this.offset)/2,Vn=function(){var Un,Dn;for(Dn=[],zn=Un=0;0<=Qn?Un<Qn:Un>Qn;zn=0<=Qn?++Un:--Un)Dn.push(Tn.readUInt16());return Dn}(),zn=tr=0,rr=Hn.length;tr<rr;zn=++tr)for(er=Hn[zn],Dn=nr=Jn=Zn[zn];Jn<=er?nr<=er:nr>=er;Dn=Jn<=er?++nr:--nr)0===$n[zn]?Gn=Dn+Kn[zn]:0!==(Gn=Vn[$n[zn]/2+(Dn-Jn)-(Xn-zn)]||0)&&(Gn+=Kn[zn]),this.codeMap[Dn]=65535&Gn}Tn.pos=Wn}return t.encode=function(Tn,Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,gr,fr,Ar,mr,vr,yr,_r,br,wr,xr,Sr,Cr,kr,Br,Er,Pr,Lr,Tr,Nr;switch(gr=new $U,Gn=Object.keys(Tn).sort((function(Tn,Un){return Tn-Un})),Un){case"macroman":for(Zn=0,er=function(){var Tn=[];for(Jn=0;Jn<256;++Jn)Tn.push(0);return Tn}(),nr={0:0},Hn={},fr=0,yr=Gn.length;fr<yr;fr++)null==nr[Pr=Tn[Qn=Gn[fr]]]&&(nr[Pr]=++Zn),Hn[Qn]={old:Tn[Qn],new:nr[Tn[Qn]]},er[Qn]=nr[Tn[Qn]];return gr.writeUInt16(1),gr.writeUInt16(0),gr.writeUInt32(12),gr.writeUInt16(0),gr.writeUInt16(262),gr.writeUInt16(0),gr.write(er),{charMap:Hn,subtable:gr.data,maxGlyphID:Zn+1};case"unicode":for(hr=[],Wn=[],rr=0,nr={},Dn={},tr=Kn=null,Ar=0,_r=Gn.length;Ar<_r;Ar++)null==nr[or=Tn[Qn=Gn[Ar]]]&&(nr[or]=++rr),Dn[Qn]={old:or,new:nr[or]},Vn=nr[or]-Qn,null!=tr&&Vn===Kn||(tr&&Wn.push(tr),hr.push(Qn),Kn=Vn),tr=Qn;for(tr&&Wn.push(tr),Wn.push(65535),hr.push(65535),ur=2*(cr=hr.length),lr=2*Math.pow(Math.log(cr)/Math.LN2,2),Xn=Math.log(lr/2)/Math.LN2,sr=2*cr-lr,zn=[],ar=[],Yn=[],Jn=mr=0,br=hr.length;mr<br;Jn=++mr){if(dr=hr[Jn],$n=Wn[Jn],65535===dr){zn.push(0),ar.push(0);break}if(dr-(pr=Dn[dr].new)>=32768)for(zn.push(0),ar.push(2*(Yn.length+cr-Jn)),Qn=vr=dr;dr<=$n?vr<=$n:vr>=$n;Qn=dr<=$n?++vr:--vr)Yn.push(Dn[Qn].new);else zn.push(pr-dr),ar.push(0)}for(gr.writeUInt16(3),gr.writeUInt16(1),gr.writeUInt32(12),gr.writeUInt16(4),gr.writeUInt16(16+8*cr+2*Yn.length),gr.writeUInt16(0),gr.writeUInt16(ur),gr.writeUInt16(lr),gr.writeUInt16(Xn),gr.writeUInt16(sr),Br=0,wr=Wn.length;Br<wr;Br++)Qn=Wn[Br],gr.writeUInt16(Qn);for(gr.writeUInt16(0),Er=0,xr=hr.length;Er<xr;Er++)Qn=hr[Er],gr.writeUInt16(Qn);for(Lr=0,Sr=zn.length;Lr<Sr;Lr++)Vn=zn[Lr],gr.writeUInt16(Vn);for(Tr=0,Cr=ar.length;Tr<Cr;Tr++)ir=ar[Tr],gr.writeUInt16(ir);for(Nr=0,kr=Yn.length;Nr<kr;Nr++)Zn=Yn[Nr],gr.writeUInt16(Zn);return{charMap:Dn,subtable:gr.data,maxGlyphID:rr+1}}},t}(),eM=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return YU(e,qU),e.prototype.tag="cmap",e.prototype.parse=function(Tn){var Un,Dn,Qn;for(Tn.pos=this.offset,this.version=Tn.readUInt16(),Qn=Tn.readUInt16(),this.tables=[],this.unicode=null,Dn=0;0<=Qn?Dn<Qn:Dn>Qn;Dn=0<=Qn?++Dn:--Dn)Un=new ZU(Tn,this.offset),this.tables.push(Un),Un.isUnicode&&null==this.unicode&&(this.unicode=Un);return!0},e.encode=function(Tn,Un){var Dn,Qn;return null==Un&&(Un="macroman"),Dn=ZU.encode(Tn,Un),(Qn=new $U).writeUInt16(0),Qn.writeUInt16(1),Dn.table=Qn.data.concat(Dn.subtable),Dn},e}(),tM=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return YU(e,qU),e.prototype.tag="hhea",e.prototype.parse=function(Tn){return Tn.pos=this.offset,this.version=Tn.readInt(),this.ascender=Tn.readShort(),this.decender=Tn.readShort(),this.lineGap=Tn.readShort(),this.advanceWidthMax=Tn.readShort(),this.minLeftSideBearing=Tn.readShort(),this.minRightSideBearing=Tn.readShort(),this.xMaxExtent=Tn.readShort(),this.caretSlopeRise=Tn.readShort(),this.caretSlopeRun=Tn.readShort(),this.caretOffset=Tn.readShort(),Tn.pos+=8,this.metricDataFormat=Tn.readShort(),this.numberOfMetrics=Tn.readUInt16()},e}(),nM=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return YU(e,qU),e.prototype.tag="OS/2",e.prototype.parse=function(Tn){if(Tn.pos=this.offset,this.version=Tn.readUInt16(),this.averageCharWidth=Tn.readShort(),this.weightClass=Tn.readUInt16(),this.widthClass=Tn.readUInt16(),this.type=Tn.readShort(),this.ySubscriptXSize=Tn.readShort(),this.ySubscriptYSize=Tn.readShort(),this.ySubscriptXOffset=Tn.readShort(),this.ySubscriptYOffset=Tn.readShort(),this.ySuperscriptXSize=Tn.readShort(),this.ySuperscriptYSize=Tn.readShort(),this.ySuperscriptXOffset=Tn.readShort(),this.ySuperscriptYOffset=Tn.readShort(),this.yStrikeoutSize=Tn.readShort(),this.yStrikeoutPosition=Tn.readShort(),this.familyClass=Tn.readShort(),this.panose=function(){var Un,Dn;for(Dn=[],Un=0;Un<10;++Un)Dn.push(Tn.readByte());return Dn}(),this.charRange=function(){var Un,Dn;for(Dn=[],Un=0;Un<4;++Un)Dn.push(Tn.readInt());return Dn}(),this.vendorID=Tn.readString(4),this.selection=Tn.readShort(),this.firstCharIndex=Tn.readShort(),this.lastCharIndex=Tn.readShort(),this.version>0&&(this.ascent=Tn.readShort(),this.descent=Tn.readShort(),this.lineGap=Tn.readShort(),this.winAscent=Tn.readShort(),this.winDescent=Tn.readShort(),this.codePageRange=function(){var Un,Dn;for(Dn=[],Un=0;Un<2;Un=++Un)Dn.push(Tn.readInt());return Dn}(),this.version>1))return this.xHeight=Tn.readShort(),this.capHeight=Tn.readShort(),this.defaultChar=Tn.readShort(),this.breakChar=Tn.readShort(),this.maxContext=Tn.readShort()},e}(),rM=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return YU(e,qU),e.prototype.tag="post",e.prototype.parse=function(Tn){var Un,Dn,Qn;switch(Tn.pos=this.offset,this.format=Tn.readInt(),this.italicAngle=Tn.readInt(),this.underlinePosition=Tn.readShort(),this.underlineThickness=Tn.readShort(),this.isFixedPitch=Tn.readInt(),this.minMemType42=Tn.readInt(),this.maxMemType42=Tn.readInt(),this.minMemType1=Tn.readInt(),this.maxMemType1=Tn.readInt(),this.format){case 65536:break;case 131072:var Hn;for(Dn=Tn.readUInt16(),this.glyphNameIndex=[],Hn=0;0<=Dn?Hn<Dn:Hn>Dn;Hn=0<=Dn?++Hn:--Hn)this.glyphNameIndex.push(Tn.readUInt16());for(this.names=[],Qn=[];Tn.pos<this.offset+this.length;)Un=Tn.readByte(),Qn.push(this.names.push(Tn.readString(Un)));return Qn;case 151552:return Dn=Tn.readUInt16(),this.offsets=Tn.read(Dn);case 196608:break;case 262144:return this.map=function(){var Un,Dn,Qn;for(Qn=[],Hn=Un=0,Dn=this.file.maxp.numGlyphs;0<=Dn?Un<Dn:Un>Dn;Hn=0<=Dn?++Un:--Un)Qn.push(Tn.readUInt32());return Qn}.call(this)}},e}(),iM=function Jt(Tn,Un){this.raw=Tn,this.length=Tn.length,this.platformID=Un.platformID,this.encodingID=Un.encodingID,this.languageID=Un.languageID},oM=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return YU(e,qU),e.prototype.tag="name",e.prototype.parse=function(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn;for(Tn.pos=this.offset,Tn.readShort(),Un=Tn.readShort(),Vn=Tn.readShort(),Dn=[],Hn=0;0<=Un?Hn<Un:Hn>Un;Hn=0<=Un?++Hn:--Hn)Dn.push({platformID:Tn.readShort(),encodingID:Tn.readShort(),languageID:Tn.readShort(),nameID:Tn.readShort(),length:Tn.readShort(),offset:this.offset+Vn+Tn.readShort()});for(zn={},Hn=$n=0,Wn=Dn.length;$n<Wn;Hn=++$n)Qn=Dn[Hn],Tn.pos=Qn.offset,Kn=Tn.readString(Qn.length),Gn=new iM(Kn,Qn),null==zn[Xn=Qn.nameID]&&(zn[Xn]=[]),zn[Qn.nameID].push(Gn);this.strings=zn,this.copyright=zn[0],this.fontFamily=zn[1],this.fontSubfamily=zn[2],this.uniqueSubfamily=zn[3],this.fontName=zn[4],this.version=zn[5];try{this.postscriptName=zn[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Tn){this.postscriptName=zn[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=zn[7],this.manufacturer=zn[8],this.designer=zn[9],this.description=zn[10],this.vendorUrl=zn[11],this.designerUrl=zn[12],this.license=zn[13],this.licenseUrl=zn[14],this.preferredFamily=zn[15],this.preferredSubfamily=zn[17],this.compatibleFull=zn[18],this.sampleText=zn[19]},e}(),aM=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return YU(e,qU),e.prototype.tag="maxp",e.prototype.parse=function(Tn){return Tn.pos=this.offset,this.version=Tn.readInt(),this.numGlyphs=Tn.readUInt16(),this.maxPoints=Tn.readUInt16(),this.maxContours=Tn.readUInt16(),this.maxCompositePoints=Tn.readUInt16(),this.maxComponentContours=Tn.readUInt16(),this.maxZones=Tn.readUInt16(),this.maxTwilightPoints=Tn.readUInt16(),this.maxStorage=Tn.readUInt16(),this.maxFunctionDefs=Tn.readUInt16(),this.maxInstructionDefs=Tn.readUInt16(),this.maxStackElements=Tn.readUInt16(),this.maxSizeOfInstructions=Tn.readUInt16(),this.maxComponentElements=Tn.readUInt16(),this.maxComponentDepth=Tn.readUInt16()},e}(),sM=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return YU(e,qU),e.prototype.tag="hmtx",e.prototype.parse=function(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn;for(Tn.pos=this.offset,this.metrics=[],Un=0,Vn=this.file.hhea.numberOfMetrics;0<=Vn?Un<Vn:Un>Vn;Un=0<=Vn?++Un:--Un)this.metrics.push({advance:Tn.readUInt16(),lsb:Tn.readInt16()});for(Qn=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Dn,Hn;for(Hn=[],Un=Dn=0;0<=Qn?Dn<Qn:Dn>Qn;Un=0<=Qn?++Dn:--Dn)Hn.push(Tn.readInt16());return Hn}(),this.widths=function(){var Tn,Un,Dn,Qn;for(Qn=[],Tn=0,Un=(Dn=this.metrics).length;Tn<Un;Tn++)Hn=Dn[Tn],Qn.push(Hn.advance);return Qn}.call(this),Dn=this.widths[this.widths.length-1],zn=[],Un=Gn=0;0<=Qn?Gn<Qn:Gn>Qn;Un=0<=Qn?++Gn:--Gn)zn.push(this.widths.push(Dn));return zn},e.prototype.forGlyph=function(Tn){return Tn in this.metrics?this.metrics[Tn]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Tn-this.metrics.length]}},e}(),lM=[].slice,cM=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return YU(e,qU),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn;return Tn in this.cache?this.cache[Tn]:(Hn=this.file.loca,Un=this.file.contents,Dn=Hn.indexOf(Tn),0===(Qn=Hn.lengthOf(Tn))?this.cache[Tn]=null:(Un.pos=this.offset+Dn,Gn=(Vn=new $U(Un.read(Qn))).readShort(),Kn=Vn.readShort(),Wn=Vn.readShort(),zn=Vn.readShort(),$n=Vn.readShort(),this.cache[Tn]=-1===Gn?new dM(Vn,Kn,Wn,zn,$n):new uM(Vn,Gn,Kn,Wn,zn,$n),this.cache[Tn]))},e.prototype.encode=function(Tn,Un,Dn){var Qn,Hn,Gn,Vn,zn;for(Gn=[],Hn=[],Vn=0,zn=Un.length;Vn<zn;Vn++)Qn=Tn[Un[Vn]],Hn.push(Gn.length),Qn&&(Gn=Gn.concat(Qn.encode(Dn)));return Hn.push(Gn.length),{table:Gn,offsets:Hn}},e}(),uM=function(){function t(Tn,Un,Dn,Qn,Hn,Gn){this.raw=Tn,this.numberOfContours=Un,this.xMin=Dn,this.yMin=Qn,this.xMax=Hn,this.yMax=Gn,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),dM=function(){function t(Tn,Un,Dn,Qn,Hn){var Gn,Vn;for(this.raw=Tn,this.xMin=Un,this.yMin=Dn,this.xMax=Qn,this.yMax=Hn,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Gn=this.raw;Vn=Gn.readShort(),this.glyphOffsets.push(Gn.pos),this.glyphIDs.push(Gn.readUInt16()),32&Vn;)Gn.pos+=1&Vn?4:2,128&Vn?Gn.pos+=8:64&Vn?Gn.pos+=4:8&Vn&&(Gn.pos+=2)}return t.prototype.encode=function(){var Tn,Un,Dn;for(Un=new $U(lM.call(this.raw.data)),Tn=0,Dn=this.glyphIDs.length;Tn<Dn;++Tn)Un.pos=this.glyphOffsets[Tn];return Un.data},t}(),hM=function(Tn){function e(){return e.__super__.constructor.apply(this,arguments)}return YU(e,qU),e.prototype.tag="loca",e.prototype.parse=function(Tn){var Un,Dn;return Tn.pos=this.offset,Un=this.file.head.indexToLocFormat,this.offsets=0===Un?function(){var Un,Qn;for(Qn=[],Dn=0,Un=this.length;Dn<Un;Dn+=2)Qn.push(2*Tn.readUInt16());return Qn}.call(this):function(){var Un,Qn;for(Qn=[],Dn=0,Un=this.length;Dn<Un;Dn+=4)Qn.push(Tn.readUInt32());return Qn}.call(this)},e.prototype.indexOf=function(Tn){return this.offsets[Tn]},e.prototype.lengthOf=function(Tn){return this.offsets[Tn+1]-this.offsets[Tn]},e.prototype.encode=function(Tn,Un){for(var Dn=new Uint32Array(this.offsets.length),Qn=0,Hn=0,Gn=0;Gn<Dn.length;++Gn)if(Dn[Gn]=Qn,Hn<Un.length&&Un[Hn]==Gn){++Hn,Dn[Gn]=Qn;var Vn=this.offsets[Gn],zn=this.offsets[Gn+1]-Vn;zn>0&&(Qn+=zn)}for(var Kn=new Array(4*Dn.length),$n=0;$n<Dn.length;++$n)Kn[4*$n+3]=255&Dn[$n],Kn[4*$n+2]=(65280&Dn[$n])>>8,Kn[4*$n+1]=(16711680&Dn[$n])>>16,Kn[4*$n]=(4278190080&Dn[$n])>>24;return Kn},e}(),pM=function(){function t(Tn){this.font=Tn,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var Tn,Un,Dn,Qn,Hn;for(Un in Qn=this.font.cmap.tables[0].codeMap,Tn={},Hn=this.subset)Dn=Hn[Un],Tn[Un]=Qn[Dn];return Tn},t.prototype.glyphsFor=function(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn;for(Qn={},Gn=0,Vn=Tn.length;Gn<Vn;Gn++)Qn[Hn=Tn[Gn]]=this.font.glyf.glyphFor(Hn);for(Hn in Un=[],Qn)(null!=(Dn=Qn[Hn])?Dn.compound:void 0)&&Un.push.apply(Un,Dn.glyphIDs);if(Un.length>0)for(Hn in zn=this.glyphsFor(Un))Dn=zn[Hn],Qn[Hn]=Dn;return Qn},t.prototype.encode=function(Tn,Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr;for(Qn in Dn=eM.encode(this.generateCmap(),"unicode"),Gn=this.glyphsFor(Tn),Yn={0:0},tr=Dn.charMap)Yn[(zn=tr[Qn]).old]=zn.new;for(Jn in Xn=Dn.maxGlyphID,Gn)Jn in Yn||(Yn[Jn]=Xn++);return $n=function(Tn){var Un,Dn;for(Un in Dn={},Tn)Dn[Tn[Un]]=Un;return Dn}(Yn),Wn=Object.keys($n).sort((function(Tn,Un){return Tn-Un})),Zn=function(){var Tn,Un,Dn;for(Dn=[],Tn=0,Un=Wn.length;Tn<Un;Tn++)Vn=Wn[Tn],Dn.push($n[Vn]);return Dn}(),Hn=this.font.glyf.encode(Gn,Zn,Yn),Kn=this.font.loca.encode(Hn.offsets,Zn),er={cmap:this.font.cmap.raw(),glyf:Hn.table,loca:Kn,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(Un)},this.font.os2.exists&&(er["OS/2"]=this.font.os2.raw()),this.font.directory.encode(er)},t}();g.API.PDFObject=function(){var Tn;function e(){}return Tn=function t(Tn,Un){return(Array(Un+1).join("0")+Tn).slice(-Un)},e.convert=function(Un){var Dn,Qn,Hn,Gn;if(Array.isArray(Un))return"["+function(){var Tn,Qn,Hn;for(Hn=[],Tn=0,Qn=Un.length;Tn<Qn;Tn++)Dn=Un[Tn],Hn.push(e.convert(Dn));return Hn}().join(" ")+"]";if("string"==typeof Un)return"/"+Un;if(null!=Un?Un.isString:void 0)return"("+Un+")";if(Un instanceof Date)return"(D:"+Tn(Un.getUTCFullYear(),4)+Tn(Un.getUTCMonth(),2)+Tn(Un.getUTCDate(),2)+Tn(Un.getUTCHours(),2)+Tn(Un.getUTCMinutes(),2)+Tn(Un.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(Un)){for(Qn in Hn=["<<"],Un)Gn=Un[Qn],Hn.push("/"+Qn+" "+e.convert(Gn));return Hn.push(">>"),Hn.join("\n")}return""+Un},e}(),g.API.adler32cs=function(){var Tn,Un,Dn,Qn,Hn,Gn="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,Vn=null,zn=function(){if(!Gn)return function(){return!1};try{var Tn={};"function"==typeof Tn.Buffer&&(Vn=Tn.Buffer)}catch(Tn){}return function(Tn){return Tn instanceof ArrayBuffer||null!==Vn&&Tn instanceof Vn}}(),Kn=null!==Vn?function(Tn){return new Vn(Tn,"utf8").toString("binary")}:function(Tn){return unescape(encodeURIComponent(Tn))},$n=function i(Tn,Un){for(var Dn=65535&Tn,Qn=Tn>>>16,i=0,Hn=Un.length;i<Hn;i++)Qn=(Qn+(Dn=(Dn+(255&Un.charCodeAt(i)))%65521))%65521;return(Qn<<16|Dn)>>>0},Wn=function a(Tn,Un){for(var Dn=65535&Tn,Qn=Tn>>>16,Hn=0,a=Un.length;Hn<a;Hn++)Qn=(Qn+(Dn=(Dn+Un[Hn])%65521))%65521;return(Qn<<16|Dn)>>>0},Xn={},Yn=Xn.Adler32=((Hn=(Qn=function l(Tn){if(!(this instanceof Qn))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(Tn=null===Tn?1:+Tn))throw new Error("First arguments needs to be a finite number.");this.checksum=Tn>>>0}).prototype={}).constructor=Qn,Qn.from=((Tn=function u(Tn){if(!(this instanceof Qn))throw new TypeError("Constructor cannot called be as a function.");if(null===Tn)throw new Error("First argument needs to be a string.");this.checksum=$n(1,Tn.toString())}).prototype=Hn,Tn),Qn.fromUtf8=((Un=function c(Tn){if(!(this instanceof Qn))throw new TypeError("Constructor cannot called be as a function.");if(null===Tn)throw new Error("First argument needs to be a string.");var Un=Kn(Tn.toString());this.checksum=$n(1,Un)}).prototype=Hn,Un),Gn&&(Qn.fromBuffer=((Dn=function h(Tn){if(!(this instanceof Qn))throw new TypeError("Constructor cannot called be as a function.");if(!zn(Tn))throw new Error("First argument needs to be ArrayBuffer.");var Un=new Uint8Array(Tn);return this.checksum=Wn(1,Un)}).prototype=Hn,Dn)),Hn.update=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");return Tn=Tn.toString(),this.checksum=$n(this.checksum,Tn)},Hn.updateUtf8=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");var Un=Kn(Tn.toString());return this.checksum=$n(this.checksum,Un)},Gn&&(Hn.updateBuffer=function(Tn){if(!zn(Tn))throw new Error("First argument needs to be ArrayBuffer.");var Un=new Uint8Array(Tn);return this.checksum=Wn(this.checksum,Un)}),Hn.clone=function(){return new Yn(this.checksum)},Qn);return Xn.from=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");return $n(1,Tn.toString())},Xn.fromUtf8=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");var Un=Kn(Tn.toString());return $n(1,Un)},Gn&&(Xn.fromBuffer=function(Tn){if(!zn(Tn))throw new Error("First argument need to be ArrayBuffer.");var Un=new Uint8Array(Tn);return Wn(1,Un)}),Xn}(),_export({target:"Array",proto:!0,forced:PL!==[].lastIndexOf},{lastIndexOf:PL}),_export({target:"String",proto:!0,forced:stringHtmlForced("anchor")},{anchor:function anchor(Tn){return createHtml(this,"a","name",Tn)}});
|
||
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
||
var gM={}.hasOwnProperty,fM=/[ -,\.\/:-@\[-\^`\{-~]/,AM=/[ -,\.\/:-@\[\]\^`\{-~]/,mM=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,vM=function cssesc(Tn,Un){"single"!=(Un=function merge(Tn,Un){if(!Tn)return Un;var Dn={};for(var Qn in Un)Dn[Qn]=gM.call(Tn,Qn)?Tn[Qn]:Un[Qn];return Dn}(Un,cssesc.options)).quotes&&"double"!=Un.quotes&&(Un.quotes="single");for(var Dn="double"==Un.quotes?'"':"'",Qn=Un.isIdentifier,Hn=Tn.charAt(0),Gn="",Vn=0,zn=Tn.length;Vn<zn;){var Kn=Tn.charAt(Vn++),$n=Kn.charCodeAt(),Wn=void 0;if($n<32||$n>126){if($n>=55296&&$n<=56319&&Vn<zn){var Xn=Tn.charCodeAt(Vn++);56320==(64512&Xn)?$n=((1023&$n)<<10)+(1023&Xn)+65536:Vn--}Wn="\\"+$n.toString(16).toUpperCase()+" "}else Wn=Un.escapeEverything?fM.test(Kn)?"\\"+Kn:"\\"+$n.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(Kn)?"\\"+$n.toString(16).toUpperCase()+" ":"\\"==Kn||!Qn&&('"'==Kn&&Dn==Kn||"'"==Kn&&Dn==Kn)||Qn&&AM.test(Kn)?"\\"+Kn:Kn;Gn+=Wn}return Qn&&(/^-[-\d]/.test(Gn)?Gn="\\-"+Gn.slice(1):/\d/.test(Hn)&&(Gn="\\3"+Hn+" "+Gn.slice(1))),Gn=Gn.replace(mM,(function(Tn,Un,Dn){return Un&&Un.length%2?Tn:(Un||"")+Dn})),!Qn&&Un.wrap?Dn+Gn+Dn:Gn};vM.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},vM.version="3.0.0";var yM=vM,_M=/[a-z0-9_-]/i,bM=/[\s\t]/,wM=function parse(Tn){for(var Un,Dn,Qn=!0,Hn=0,Gn="",Vn=0,zn=[];;){if(Dn=Tn[Vn],0===Hn){if(!Dn&&Qn)break;if(!Dn&&!Qn)throw new Error("Parse error");if('"'===Dn||"'"===Dn)Un=Dn,Hn=1,Qn=!1;else if(bM.test(Dn));else{if(!_M.test(Dn))throw new Error("Parse error");Hn=3,Qn=!1,Vn--}}else if(1===Hn){if(!Dn)throw new Error("Parse Error");"\\"===Dn?Hn=2:Dn===Un?(zn.push(Gn),Gn="",Hn=4):Gn+=Dn}else if(2===Hn){if(Dn!==Un&&"\\"!==Dn)throw new Error("Parse error");Gn+=Dn,Hn=1}else if(3===Hn){if(!Dn){zn.push(Gn);break}if(_M.test(Dn))Gn+=Dn;else if(","===Dn)zn.push(Gn),Gn="",Hn=0;else{if(!bM.test(Dn))throw new Error("Parse error");Hn=5}}else if(5===Hn){if(!Dn){zn.push(Gn);break}if(_M.test(Dn))Gn+=" "+Dn,Hn=3;else if(","===Dn)zn.push(Gn),Gn="",Hn=0;else if(!bM.test(Dn))throw new Error("Parse error")}else if(4===Hn){if(!Dn)break;if(","===Dn)Hn=0;else if(!bM.test(Dn))throw new Error("Parse error")}Vn++}return zn},xM={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},SM=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isDigit(Tn){return Tn>=48&&Tn<=57}function State(Tn){this.index=0,this.path=Tn,this.max=Tn.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(Tn){for(;Tn.index<Tn.max&&(10===(Un=Tn.path.charCodeAt(Tn.index))||13===Un||8232===Un||8233===Un||32===Un||9===Un||11===Un||12===Un||160===Un||Un>=5760&&SM.indexOf(Un)>=0);)Tn.index++;var Un}function scanFlag(Tn){var Un=Tn.path.charCodeAt(Tn.index);return 48===Un?(Tn.param=0,void Tn.index++):49===Un?(Tn.param=1,void Tn.index++):void(Tn.err="SvgPath: arc flag can be 0 or 1 only (at pos "+Tn.index+")")}function scanParam(Tn){var Un,Dn=Tn.index,Qn=Dn,Hn=Tn.max,Gn=!1,Vn=!1,zn=!1,Kn=!1;if(Qn>=Hn)Tn.err="SvgPath: missed param (at pos "+Qn+")";else if(43!==(Un=Tn.path.charCodeAt(Qn))&&45!==Un||(Un=++Qn<Hn?Tn.path.charCodeAt(Qn):0),isDigit(Un)||46===Un){if(46!==Un){if(Gn=48===Un,Un=++Qn<Hn?Tn.path.charCodeAt(Qn):0,Gn&&Qn<Hn&&Un&&isDigit(Un))return void(Tn.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+Dn+")");for(;Qn<Hn&&isDigit(Tn.path.charCodeAt(Qn));)Qn++,Vn=!0;Un=Qn<Hn?Tn.path.charCodeAt(Qn):0}if(46===Un){for(Kn=!0,Qn++;isDigit(Tn.path.charCodeAt(Qn));)Qn++,zn=!0;Un=Qn<Hn?Tn.path.charCodeAt(Qn):0}if(101===Un||69===Un){if(Kn&&!Vn&&!zn)return void(Tn.err="SvgPath: invalid float exponent (at pos "+Qn+")");if(43!==(Un=++Qn<Hn?Tn.path.charCodeAt(Qn):0)&&45!==Un||Qn++,!(Qn<Hn&&isDigit(Tn.path.charCodeAt(Qn))))return void(Tn.err="SvgPath: invalid float exponent (at pos "+Qn+")");for(;Qn<Hn&&isDigit(Tn.path.charCodeAt(Qn));)Qn++}Tn.index=Qn,Tn.param=parseFloat(Tn.path.slice(Dn,Qn))+0}else Tn.err="SvgPath: param should start with 0..9 or `.` (at pos "+Qn+")"}function finalizeSegment(Tn){var Un,Dn;Dn=(Un=Tn.path[Tn.segmentStart]).toLowerCase();var Qn=Tn.data;if("m"===Dn&&Qn.length>2&&(Tn.result.push([Un,Qn[0],Qn[1]]),Qn=Qn.slice(2),Dn="l",Un="m"===Un?"l":"L"),"r"===Dn)Tn.result.push([Un].concat(Qn));else for(;Qn.length>=xM[Dn]&&(Tn.result.push([Un].concat(Qn.splice(0,xM[Dn]))),xM[Dn]););}function scanSegment(Tn){var Un,Dn,Qn,Hn,Gn,Vn=Tn.max;if(Tn.segmentStart=Tn.index,Dn=function isArc(Tn){return 97==(32|Tn)}(Un=Tn.path.charCodeAt(Tn.index)),function isCommand(Tn){switch(32|Tn){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}(Un))if(Hn=xM[Tn.path[Tn.index].toLowerCase()],Tn.index++,skipSpaces(Tn),Tn.data=[],Hn){for(Qn=!1;;){for(Gn=Hn;Gn>0;Gn--){if(!Dn||3!==Gn&&4!==Gn?scanParam(Tn):scanFlag(Tn),Tn.err.length)return;Tn.data.push(Tn.param),skipSpaces(Tn),Qn=!1,Tn.index<Vn&&44===Tn.path.charCodeAt(Tn.index)&&(Tn.index++,skipSpaces(Tn),Qn=!0)}if(!Qn){if(Tn.index>=Tn.max)break;if(!((zn=Tn.path.charCodeAt(Tn.index))>=48&&zn<=57||43===zn||45===zn||46===zn))break}}var zn;finalizeSegment(Tn)}else finalizeSegment(Tn);else Tn.err="SvgPath: bad command "+Tn.path[Tn.index]+" (at pos "+Tn.index+")"}function Matrix$1(){if(!(this instanceof Matrix$1))return new Matrix$1;this.queue=[],this.cache=null}Matrix$1.prototype.matrix=function(Tn){return 1===Tn[0]&&0===Tn[1]&&0===Tn[2]&&1===Tn[3]&&0===Tn[4]&&0===Tn[5]||(this.cache=null,this.queue.push(Tn)),this},Matrix$1.prototype.translate=function(Tn,Un){return 0===Tn&&0===Un||(this.cache=null,this.queue.push([1,0,0,1,Tn,Un])),this},Matrix$1.prototype.scale=function(Tn,Un){return 1===Tn&&1===Un||(this.cache=null,this.queue.push([Tn,0,0,Un,0,0])),this},Matrix$1.prototype.rotate=function(Tn,Un,Dn){var Qn,Hn,Gn;return 0!==Tn&&(this.translate(Un,Dn),Qn=Tn*Math.PI/180,Hn=Math.cos(Qn),Gn=Math.sin(Qn),this.queue.push([Hn,Gn,-Gn,Hn,0,0]),this.cache=null,this.translate(-Un,-Dn)),this},Matrix$1.prototype.skewX=function(Tn){return 0!==Tn&&(this.cache=null,this.queue.push([1,0,Math.tan(Tn*Math.PI/180),1,0,0])),this},Matrix$1.prototype.skewY=function(Tn){return 0!==Tn&&(this.cache=null,this.queue.push([1,Math.tan(Tn*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 Tn=1;Tn<this.queue.length;Tn++)this.cache=(Un=this.cache,Dn=this.queue[Tn],[Un[0]*Dn[0]+Un[2]*Dn[1],Un[1]*Dn[0]+Un[3]*Dn[1],Un[0]*Dn[2]+Un[2]*Dn[3],Un[1]*Dn[2]+Un[3]*Dn[3],Un[0]*Dn[4]+Un[2]*Dn[5]+Un[4],Un[1]*Dn[4]+Un[3]*Dn[5]+Un[5]]);var Un,Dn;return this.cache},Matrix$1.prototype.calc=function(Tn,Un,Dn){var Qn;return this.queue.length?(this.cache||(this.cache=this.toArray()),[Tn*(Qn=this.cache)[0]+Un*Qn[2]+(Dn?0:Qn[4]),Tn*Qn[1]+Un*Qn[3]+(Dn?0:Qn[5])]):[Tn,Un]};var CM=Matrix$1,kM={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},BM=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,EM=/[\s,]+/,PM=2*Math.PI;function unit_vector_angle(Tn,Un,Dn,Qn){var Hn=Tn*Dn+Un*Qn;return Hn>1&&(Hn=1),Hn<-1&&(Hn=-1),(Tn*Qn-Un*Dn<0?-1:1)*Math.acos(Hn)}function approximate_unit_arc(Tn,Un){var Dn=4/3*Math.tan(Un/4),Qn=Math.cos(Tn),Hn=Math.sin(Tn),Gn=Math.cos(Tn+Un),Vn=Math.sin(Tn+Un);return[Qn,Hn,Qn-Hn*Dn,Hn+Qn*Dn,Gn+Vn*Dn,Vn-Gn*Dn,Gn,Vn]}var LM=function a2c(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn){var $n=Math.sin(Kn*PM/360),Wn=Math.cos(Kn*PM/360),Xn=Wn*(Tn-Dn)/2+$n*(Un-Qn)/2,Yn=-$n*(Tn-Dn)/2+Wn*(Un-Qn)/2;if(0===Xn&&0===Yn)return[];if(0===Vn||0===zn)return[];Vn=Math.abs(Vn),zn=Math.abs(zn);var Jn=Xn*Xn/(Vn*Vn)+Yn*Yn/(zn*zn);Jn>1&&(Vn*=Math.sqrt(Jn),zn*=Math.sqrt(Jn));var Zn=function get_arc_center(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n){var Wn=$n*(Tn-Dn)/2+Kn*(Un-Qn)/2,Xn=-Kn*(Tn-Dn)/2+$n*(Un-Qn)/2,Yn=Vn*Vn,Jn=zn*zn,Zn=Wn*Wn,er=Xn*Xn,tr=Yn*Jn-Yn*er-Jn*Zn;tr<0&&(tr=0),tr/=Yn*er+Jn*Zn;var nr=(tr=Math.sqrt(tr)*(Hn===Gn?-1:1))*Vn/zn*Xn,rr=tr*-zn/Vn*Wn,ir=$n*nr-Kn*rr+(Tn+Dn)/2,or=Kn*nr+$n*rr+(Un+Qn)/2,ar=(Wn-nr)/Vn,sr=(Xn-rr)/zn,lr=(-Wn-nr)/Vn,cr=(-Xn-rr)/zn,ur=unit_vector_angle(1,0,ar,sr),dr=unit_vector_angle(ar,sr,lr,cr);return 0===Gn&&dr>0&&(dr-=PM),1===Gn&&dr<0&&(dr+=PM),[ir,or,ur,dr]}(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn,$n,Wn),er=[],tr=Zn[2],nr=Zn[3],rr=Math.max(Math.ceil(Math.abs(nr)/(PM/4)),1);nr/=rr;for(var ir=0;ir<rr;ir++)er.push(approximate_unit_arc(tr,nr)),tr+=nr;return er.map((function(Tn){for(var Un=0;Un<Tn.length;Un+=2){var Dn=Tn[Un+0],Qn=Tn[Un+1],Hn=Wn*(Dn*=Vn)-$n*(Qn*=zn),Gn=$n*Dn+Wn*Qn;Tn[Un+0]=Hn+Zn[0],Tn[Un+1]=Gn+Zn[1]}return Tn}))},TM=Math.PI/180;function Ellipse(Tn,Un,Dn){if(!(this instanceof Ellipse))return new Ellipse(Tn,Un,Dn);this.rx=Tn,this.ry=Un,this.ax=Dn}Ellipse.prototype.transform=function(Tn){var Un=Math.cos(this.ax*TM),Dn=Math.sin(this.ax*TM),Qn=[this.rx*(Tn[0]*Un+Tn[2]*Dn),this.rx*(Tn[1]*Un+Tn[3]*Dn),this.ry*(-Tn[0]*Dn+Tn[2]*Un),this.ry*(-Tn[1]*Dn+Tn[3]*Un)],Hn=Qn[0]*Qn[0]+Qn[2]*Qn[2],Gn=Qn[1]*Qn[1]+Qn[3]*Qn[3],Vn=((Qn[0]-Qn[3])*(Qn[0]-Qn[3])+(Qn[2]+Qn[1])*(Qn[2]+Qn[1]))*((Qn[0]+Qn[3])*(Qn[0]+Qn[3])+(Qn[2]-Qn[1])*(Qn[2]-Qn[1])),zn=(Hn+Gn)/2;if(Vn<1e-10*zn)return this.rx=this.ry=Math.sqrt(zn),this.ax=0,this;var Kn=Qn[0]*Qn[1]+Qn[2]*Qn[3],$n=zn+(Vn=Math.sqrt(Vn))/2,Wn=zn-Vn/2;return this.ax=Math.abs(Kn)<1e-10&&Math.abs($n-Gn)<1e-10?90:180*Math.atan(Math.abs(Kn)>Math.abs($n-Gn)?($n-Hn)/Kn:Kn/($n-Gn))/Math.PI,this.ax>=0?(this.rx=Math.sqrt($n),this.ry=Math.sqrt(Wn)):(this.ax+=90,this.rx=Math.sqrt(Wn),this.ry=Math.sqrt($n)),this},Ellipse.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx};var NM=Ellipse;function SvgPath(Tn){if(!(this instanceof SvgPath))return new SvgPath(Tn);var Un=function pathParse(Tn){var Un=new State(Tn),Dn=Un.max;for(skipSpaces(Un);Un.index<Dn&&!Un.err.length;)scanSegment(Un);return Un.err.length?Un.result=[]:Un.result.length&&("mM".indexOf(Un.result[0][0])<0?(Un.err="SvgPath: string should start with `M` or `m`",Un.result=[]):Un.result[0][0]="M"),{err:Un.err,segments:Un.result}}(Tn);this.segments=Un.segments,this.err=Un.err,this.__stack=[]}SvgPath.from=function(Tn){if("string"==typeof Tn)return new SvgPath(Tn);if(Tn instanceof SvgPath){var Un=new SvgPath("");return Un.err=Tn.err,Un.segments=Tn.segments.map((function(Tn){return Tn.slice()})),Un.__stack=Tn.__stack.map((function(Tn){return CM().matrix(Tn.toArray())})),Un}throw new Error("SvgPath.from: invalid param type "+Tn)},SvgPath.prototype.__matrix=function(Tn){var Un,Dn=this;Tn.queue.length&&this.iterate((function(Qn,Hn,Gn,Vn){var zn,Kn,$n,Wn;switch(Qn[0]){case"v":Kn=0===(zn=Tn.calc(0,Qn[1],!0))[0]?["v",zn[1]]:["l",zn[0],zn[1]];break;case"V":Kn=(zn=Tn.calc(Gn,Qn[1],!1))[0]===Tn.calc(Gn,Vn,!1)[0]?["V",zn[1]]:["L",zn[0],zn[1]];break;case"h":Kn=0===(zn=Tn.calc(Qn[1],0,!0))[1]?["h",zn[0]]:["l",zn[0],zn[1]];break;case"H":Kn=(zn=Tn.calc(Qn[1],Vn,!1))[1]===Tn.calc(Gn,Vn,!1)[1]?["H",zn[0]]:["L",zn[0],zn[1]];break;case"a":case"A":var Xn=Tn.toArray(),Yn=NM(Qn[1],Qn[2],Qn[3]).transform(Xn);if(Xn[0]*Xn[3]-Xn[1]*Xn[2]<0&&(Qn[5]=Qn[5]?"0":"1"),zn=Tn.calc(Qn[6],Qn[7],"a"===Qn[0]),"A"===Qn[0]&&Qn[6]===Gn&&Qn[7]===Vn||"a"===Qn[0]&&0===Qn[6]&&0===Qn[7]){Kn=["a"===Qn[0]?"l":"L",zn[0],zn[1]];break}Kn=Yn.isDegenerate()?["a"===Qn[0]?"l":"L",zn[0],zn[1]]:[Qn[0],Yn.rx,Yn.ry,Yn.ax,Qn[4],Qn[5],zn[0],zn[1]];break;case"m":Wn=Hn>0,Kn=["m",(zn=Tn.calc(Qn[1],Qn[2],Wn))[0],zn[1]];break;default:for(Kn=[$n=Qn[0]],Wn=$n.toLowerCase()===$n,Un=1;Un<Qn.length;Un+=2)zn=Tn.calc(Qn[Un],Qn[Un+1],Wn),Kn.push(zn[0],zn[1])}Dn.segments[Hn]=Kn}),!0)},SvgPath.prototype.__evaluateStack=function(){var Tn,Un;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(Tn=CM(),Un=this.__stack.length;--Un>=0;)Tn.matrix(this.__stack[Un].toArray());this.__matrix(Tn),this.__stack=[]}},SvgPath.prototype.toString=function(){var Tn,Un,Dn=[];this.__evaluateStack();for(var Qn=0;Qn<this.segments.length;Qn++)Un=this.segments[Qn][0],Tn=Qn>0&&"m"!==Un&&"M"!==Un&&Un===this.segments[Qn-1][0],Dn=Dn.concat(Tn?this.segments[Qn].slice(1):this.segments[Qn]);return Dn.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},SvgPath.prototype.translate=function(Tn,Un){return this.__stack.push(CM().translate(Tn,Un||0)),this},SvgPath.prototype.scale=function(Tn,Un){return this.__stack.push(CM().scale(Tn,Un||0===Un?Un:Tn)),this},SvgPath.prototype.rotate=function(Tn,Un,Dn){return this.__stack.push(CM().rotate(Tn,Un||0,Dn||0)),this},SvgPath.prototype.skewX=function(Tn){return this.__stack.push(CM().skewX(Tn)),this},SvgPath.prototype.skewY=function(Tn){return this.__stack.push(CM().skewY(Tn)),this},SvgPath.prototype.matrix=function(Tn){return this.__stack.push(CM().matrix(Tn)),this},SvgPath.prototype.transform=function(Tn){return Tn.trim()?(this.__stack.push(function transformParse(Tn){var Un,Dn,Qn=new CM;return Tn.split(BM).forEach((function(Tn){if(Tn.length)if(void 0===kM[Tn])switch(Dn=Tn.split(EM).map((function(Tn){return+Tn||0})),Un){case"matrix":return void(6===Dn.length&&Qn.matrix(Dn));case"scale":return void(1===Dn.length?Qn.scale(Dn[0],Dn[0]):2===Dn.length&&Qn.scale(Dn[0],Dn[1]));case"rotate":return void(1===Dn.length?Qn.rotate(Dn[0],0,0):3===Dn.length&&Qn.rotate(Dn[0],Dn[1],Dn[2]));case"translate":return void(1===Dn.length?Qn.translate(Dn[0],0):2===Dn.length&&Qn.translate(Dn[0],Dn[1]));case"skewX":return void(1===Dn.length&&Qn.skewX(Dn[0]));case"skewY":return void(1===Dn.length&&Qn.skewY(Dn[0]))}else Un=Tn})),Qn}(Tn)),this):this},SvgPath.prototype.round=function(Tn){var Un,Dn=0,Qn=0,Hn=0,Gn=0;return Tn=Tn||0,this.__evaluateStack(),this.segments.forEach((function(Vn){var zn=Vn[0].toLowerCase()===Vn[0];switch(Vn[0]){case"H":case"h":return zn&&(Vn[1]+=Hn),Hn=Vn[1]-Vn[1].toFixed(Tn),void(Vn[1]=+Vn[1].toFixed(Tn));case"V":case"v":return zn&&(Vn[1]+=Gn),Gn=Vn[1]-Vn[1].toFixed(Tn),void(Vn[1]=+Vn[1].toFixed(Tn));case"Z":case"z":return Hn=Dn,void(Gn=Qn);case"M":case"m":return zn&&(Vn[1]+=Hn,Vn[2]+=Gn),Hn=Vn[1]-Vn[1].toFixed(Tn),Gn=Vn[2]-Vn[2].toFixed(Tn),Dn=Hn,Qn=Gn,Vn[1]=+Vn[1].toFixed(Tn),void(Vn[2]=+Vn[2].toFixed(Tn));case"A":case"a":return zn&&(Vn[6]+=Hn,Vn[7]+=Gn),Hn=Vn[6]-Vn[6].toFixed(Tn),Gn=Vn[7]-Vn[7].toFixed(Tn),Vn[1]=+Vn[1].toFixed(Tn),Vn[2]=+Vn[2].toFixed(Tn),Vn[3]=+Vn[3].toFixed(Tn+2),Vn[6]=+Vn[6].toFixed(Tn),void(Vn[7]=+Vn[7].toFixed(Tn));default:return Un=Vn.length,zn&&(Vn[Un-2]+=Hn,Vn[Un-1]+=Gn),Hn=Vn[Un-2]-Vn[Un-2].toFixed(Tn),Gn=Vn[Un-1]-Vn[Un-1].toFixed(Tn),void Vn.forEach((function(Un,Dn){Dn&&(Vn[Dn]=+Vn[Dn].toFixed(Tn))}))}})),this},SvgPath.prototype.iterate=function(Tn,Un){var Dn,Qn,Hn,Gn=this.segments,Vn={},zn=!1,Kn=0,$n=0,Wn=0,Xn=0;if(Un||this.__evaluateStack(),Gn.forEach((function(Un,Dn){var Qn=Tn(Un,Dn,Kn,$n);Array.isArray(Qn)&&(Vn[Dn]=Qn,zn=!0);var Hn=Un[0]===Un[0].toLowerCase();switch(Un[0]){case"m":case"M":return Kn=Un[1]+(Hn?Kn:0),$n=Un[2]+(Hn?$n:0),Wn=Kn,void(Xn=$n);case"h":case"H":return void(Kn=Un[1]+(Hn?Kn:0));case"v":case"V":return void($n=Un[1]+(Hn?$n:0));case"z":case"Z":return Kn=Wn,void($n=Xn);default:Kn=Un[Un.length-2]+(Hn?Kn:0),$n=Un[Un.length-1]+(Hn?$n:0)}})),!zn)return this;for(Hn=[],Dn=0;Dn<Gn.length;Dn++)if(void 0!==Vn[Dn])for(Qn=0;Qn<Vn[Dn].length;Qn++)Hn.push(Vn[Dn][Qn]);else Hn.push(Gn[Dn]);return this.segments=Hn,this},SvgPath.prototype.abs=function(){return this.iterate((function(Tn,Un,Dn,Qn){var Hn,Gn=Tn[0],Vn=Gn.toUpperCase();if(Gn!==Vn)switch(Tn[0]=Vn,Gn){case"v":return void(Tn[1]+=Qn);case"a":return Tn[6]+=Dn,void(Tn[7]+=Qn);default:for(Hn=1;Hn<Tn.length;Hn++)Tn[Hn]+=Hn%2?Dn:Qn}}),!0),this},SvgPath.prototype.rel=function(){return this.iterate((function(Tn,Un,Dn,Qn){var Hn,Gn=Tn[0],Vn=Gn.toLowerCase();if(Gn!==Vn&&(0!==Un||"M"!==Gn))switch(Tn[0]=Vn,Gn){case"V":return void(Tn[1]-=Qn);case"A":return Tn[6]-=Dn,void(Tn[7]-=Qn);default:for(Hn=1;Hn<Tn.length;Hn++)Tn[Hn]-=Hn%2?Dn:Qn}}),!0),this},SvgPath.prototype.unarc=function(){return this.iterate((function(Tn,Un,Dn,Qn){var Hn,Gn,Vn,zn=[],Kn=Tn[0];return"A"!==Kn&&"a"!==Kn?null:("a"===Kn?(Gn=Dn+Tn[6],Vn=Qn+Tn[7]):(Gn=Tn[6],Vn=Tn[7]),0===(Hn=LM(Dn,Qn,Gn,Vn,Tn[4],Tn[5],Tn[1],Tn[2],Tn[3])).length?[["a"===Tn[0]?"l":"L",Tn[6],Tn[7]]]:(Hn.forEach((function(Tn){zn.push(["C",Tn[2],Tn[3],Tn[4],Tn[5],Tn[6],Tn[7]])})),zn))})),this},SvgPath.prototype.unshort=function(){var Tn,Un,Dn,Qn,Hn,Gn=this.segments;return this.iterate((function(Vn,zn,Kn,$n){var Wn,Xn=Vn[0],Yn=Xn.toUpperCase();zn&&("T"===Yn?(Wn="t"===Xn,"Q"===(Dn=Gn[zn-1])[0]?(Tn=Dn[1]-Kn,Un=Dn[2]-$n):"q"===Dn[0]?(Tn=Dn[1]-Dn[3],Un=Dn[2]-Dn[4]):(Tn=0,Un=0),Qn=-Tn,Hn=-Un,Wn||(Qn+=Kn,Hn+=$n),Gn[zn]=[Wn?"q":"Q",Qn,Hn,Vn[1],Vn[2]]):"S"===Yn&&(Wn="s"===Xn,"C"===(Dn=Gn[zn-1])[0]?(Tn=Dn[3]-Kn,Un=Dn[4]-$n):"c"===Dn[0]?(Tn=Dn[3]-Dn[5],Un=Dn[4]-Dn[6]):(Tn=0,Un=0),Qn=-Tn,Hn=-Un,Wn||(Qn+=Kn,Hn+=$n),Gn[zn]=[Wn?"c":"C",Qn,Hn,Vn[1],Vn[2],Vn[3],Vn[4]]))})),this};var IM=SvgPath,OM=function calculateSingle(Tn){var Un,Dn,Qn=Tn,Hn={a:0,b:0,c:0},Gn=[];return Un=function findMatch(Un,Dn){var Vn,zn,Kn,$n,Wn,Xn;if(Un.test(Qn))for(zn=0,Kn=(Vn=Qn.match(Un)).length;zn<Kn;zn+=1)Hn[Dn]+=1,$n=Vn[zn],Wn=Qn.indexOf($n),Xn=$n.length,Gn.push({selector:Tn.substr(Wn,Xn),type:Dn,index:Wn,length:Xn}),Qn=Qn.replace($n,Array(Xn+1).join(" "))},(Dn=function replaceWithPlainText(Tn){var Un,Dn,Hn,Gn;if(Tn.test(Qn))for(Dn=0,Hn=(Un=Qn.match(Tn)).length;Dn<Hn;Dn+=1)Gn=Un[Dn],Qn=Qn.replace(Gn,Array(Gn.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),Dn(/\\[0-9A-Fa-f]{1,5}\s/g),Dn(/\\./g),function(){var Tn,Un,Dn,Hn,Gn=/{[^]*/gm;if(Gn.test(Qn))for(Un=0,Dn=(Tn=Qn.match(Gn)).length;Un<Dn;Un+=1)Hn=Tn[Un],Qn=Qn.replace(Hn,Array(Hn.length+1).join(" "))}(),Un(/(\[[^\]]+\])/g,"b"),Un(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),Un(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),Un(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),Un(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),Un(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),Qn=(Qn=(Qn=(Qn=(Qn=(Qn=Qn.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),Un(/([^\s\+>~\.\[:]+)/g,"c"),Gn.sort((function(Tn,Un){return Tn.index-Un.index})),{selector:Tn,specificity:"0,"+Hn.a.toString()+","+Hn.b.toString()+","+Hn.c.toString(),specificityArray:[0,Hn.a,Hn.b,Hn.c],parts:Gn}},FM=function extendStatics(Tn,Un){return(FM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tn,Un){Tn.__proto__=Un}||function(Tn,Un){for(var Dn in Un)Un.hasOwnProperty(Dn)&&(Tn[Dn]=Un[Dn])})(Tn,Un)};function __extends(Tn,Un){function __(){this.constructor=Tn}FM(Tn,Un),Tn.prototype=null===Un?Object.create(Un):(__.prototype=Un.prototype,new __)}var UM=function __assign(){return(UM=Object.assign||function __assign(Tn){for(var Un,Dn=1,Qn=arguments.length;Dn<Qn;Dn++)for(var Hn in Un=arguments[Dn])Object.prototype.hasOwnProperty.call(Un,Hn)&&(Tn[Hn]=Un[Hn]);return Tn}).apply(this,arguments)};function __awaiter(Tn,Un,Dn,Qn){return new(Dn||(Dn=Promise))((function(Hn,Gn){function fulfilled(Tn){try{step(Qn.next(Tn))}catch(Tn){Gn(Tn)}}function rejected(Tn){try{step(Qn.throw(Tn))}catch(Tn){Gn(Tn)}}function step(Tn){Tn.done?Hn(Tn.value):function adopt(Tn){return Tn instanceof Dn?Tn:new Dn((function(Un){Un(Tn)}))}(Tn.value).then(fulfilled,rejected)}step((Qn=Qn.apply(Tn,Un||[])).next())}))}function __generator(Tn,Un){var Dn,Qn,Hn,Gn,Vn={label:0,sent:function sent(){if(1&Hn[0])throw Hn[1];return Hn[1]},trys:[],ops:[]};return Gn={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(Gn[Symbol.iterator]=function(){return this}),Gn;function verb(Gn){return function(zn){return function step(Gn){if(Dn)throw new TypeError("Generator is already executing.");for(;Vn;)try{if(Dn=1,Qn&&(Hn=2&Gn[0]?Qn.return:Gn[0]?Qn.throw||((Hn=Qn.return)&&Hn.call(Qn),0):Qn.next)&&!(Hn=Hn.call(Qn,Gn[1])).done)return Hn;switch(Qn=0,Hn&&(Gn=[2&Gn[0],Hn.value]),Gn[0]){case 0:case 1:Hn=Gn;break;case 4:return Vn.label++,{value:Gn[1],done:!1};case 5:Vn.label++,Qn=Gn[1],Gn=[0];continue;case 7:Gn=Vn.ops.pop(),Vn.trys.pop();continue;default:if(!(Hn=Vn.trys,(Hn=Hn.length>0&&Hn[Hn.length-1])||6!==Gn[0]&&2!==Gn[0])){Vn=0;continue}if(3===Gn[0]&&(!Hn||Gn[1]>Hn[0]&&Gn[1]<Hn[3])){Vn.label=Gn[1];break}if(6===Gn[0]&&Vn.label<Hn[1]){Vn.label=Hn[1],Hn=Gn;break}if(Hn&&Vn.label<Hn[2]){Vn.label=Hn[2],Vn.ops.push(Gn);break}Hn[2]&&Vn.ops.pop(),Vn.trys.pop();continue}Gn=Un.call(Tn,Vn)}catch(Tn){Gn=[6,Tn],Qn=0}finally{Dn=Hn=0}if(5&Gn[0])throw Gn[1];return{value:Gn[0]?Gn[1]:void 0,done:!0}}([Gn,zn])}}}var MM=function(){function RGBColor(Tn){if(this.a=void 0,this.r=0,this.g=0,this.b=0,this.simpleColors={},this.colorDefs=[],this.ok=!1,Tn){for(var Un in"#"==Tn.charAt(0)&&(Tn=Tn.substr(1,6)),Tn=(Tn=Tn.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)Tn==Un&&(Tn=this.simpleColors[Un]);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(Tn){return[parseInt(Tn[1]),parseInt(Tn[2]),parseInt(Tn[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(Tn){return[parseInt(Tn[1],16),parseInt(Tn[2],16),parseInt(Tn[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(Tn){return[parseInt(Tn[1]+Tn[1],16),parseInt(Tn[2]+Tn[2],16),parseInt(Tn[3]+Tn[3],16)]}}];for(var Dn=0;Dn<this.colorDefs.length;Dn++){var Qn=this.colorDefs[Dn].re,Hn=this.colorDefs[Dn].process,Gn=Qn.exec(Tn);if(Gn){var Vn=Hn(Gn);this.r=Vn[0],this.g=Vn[1],this.b=Vn[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.toHex=function(){var Tn=this.r.toString(16),Un=this.g.toString(16),Dn=this.b.toString(16);return 1==Tn.length&&(Tn="0"+Tn),1==Un.length&&(Un="0"+Un),1==Dn.length&&(Dn="0"+Dn),"#"+Tn+Un+Dn},RGBColor.prototype.getHelpXML=function(){for(var Tn=[],Un=0;Un<this.colorDefs.length;Un++)for(var Dn=this.colorDefs[Un].example,Qn=0;Qn<Dn.length;Qn++)Tn[Tn.length]=Dn[Qn];for(var Hn in this.simpleColors)Tn[Tn.length]=Hn;var Gn=document.createElement("ul");Gn.setAttribute("id","rgbcolor-examples");for(Un=0;Un<Tn.length;Un++)try{var Vn=document.createElement("li"),zn=new RGBColor(Tn[Un]),Kn=document.createElement("div");Kn.style.cssText="margin: 3px; border: 1px solid black; background:"+zn.toHex()+"; color:"+zn.toHex(),Kn.appendChild(document.createTextNode("test"));var $n=document.createTextNode(" "+Tn[Un]+" -> "+zn.toRGB()+" -> "+zn.toHex());Vn.appendChild(Kn),Vn.appendChild($n),Gn.appendChild(Vn)}catch(Tn){}return Gn},RGBColor}(),RM=function(){function ColorFill(Tn){this.color=Tn}return ColorFill.prototype.getFillData=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Tn){return[2,void 0]}))}))},ColorFill}(),DM=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=""}return AttributeState.prototype.clone=function(){var Tn=new AttributeState;return Tn.xmlSpace=this.xmlSpace,Tn.fill=this.fill,Tn.fillOpacity=this.fillOpacity,Tn.fontFamily=this.fontFamily,Tn.fontSize=this.fontSize,Tn.fontStyle=this.fontStyle,Tn.fontWeight=this.fontWeight,Tn.opacity=this.opacity,Tn.stroke=this.stroke,Tn.strokeDasharray=this.strokeDasharray,Tn.strokeDashoffset=this.strokeDashoffset,Tn.strokeLinecap=this.strokeLinecap,Tn.strokeLinejoin=this.strokeLinejoin,Tn.strokeMiterlimit=this.strokeMiterlimit,Tn.strokeOpacity=this.strokeOpacity,Tn.strokeWidth=this.strokeWidth,Tn.textAnchor=this.textAnchor,Tn.alignmentBaseline=this.alignmentBaseline,Tn.visibility=this.visibility,Tn},AttributeState.default=function(){var Tn=new AttributeState;return Tn.xmlSpace="default",Tn.fill=new RM(new MM("rgb(0, 0, 0)")),Tn.fillOpacity=1,Tn.fontFamily="times",Tn.fontSize=16,Tn.fontStyle="normal",Tn.fontWeight="normal",Tn.opacity=1,Tn.stroke=null,Tn.strokeDasharray=null,Tn.strokeDashoffset=0,Tn.strokeLinecap="butt",Tn.strokeLinejoin="miter",Tn.strokeMiterlimit=4,Tn.strokeOpacity=1,Tn.strokeWidth=1,Tn.alignmentBaseline="baseline",Tn.textAnchor="start",Tn.visibility="visible",Tn},AttributeState}(),jM=/url\(["']?#([^"']+)["']?\)/,QM={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"},HM=function(){function TextMeasure(){this.measureMethods={}}return TextMeasure.prototype.getTextOffset=function(Tn,Un){var Dn=Un.textAnchor;if("start"===Dn)return 0;var Qn=this.measureTextWidth(Tn,Un),Hn=0;switch(Dn){case"end":Hn=Qn;break;case"middle":Hn=Qn/2}return Hn},TextMeasure.prototype.measureTextWidth=function(Tn,Un){if(0===Tn.length)return 0;var Dn=Un.fontFamily;return this.getMeasureFunction(Dn).call(this,Tn,Un.fontFamily,Un.fontSize+"px",Un.fontStyle,Un.fontWeight)},TextMeasure.prototype.getMeasurementTextNode=function(){if(!this.textMeasuringTextElement){this.textMeasuringTextElement=document.createElementNS("http://www.w3.org/2000/svg","text");var Tn=document.createElementNS("http://www.w3.org/2000/svg","svg");Tn.appendChild(this.textMeasuringTextElement),Tn.style.setProperty("position","absolute"),Tn.style.setProperty("visibility","hidden"),document.body.appendChild(Tn)}return this.textMeasuringTextElement},TextMeasure.prototype.canvasTextMeasure=function(Tn,Un,Dn,Qn,Hn){var Gn=document.createElement("canvas").getContext("2d");return null!=Gn?(Gn.font=[Qn,Hn,Dn,Un].join(" "),Gn.measureText(Tn).width):0},TextMeasure.prototype.svgTextMeasure=function(Tn,Un,Dn,Qn,Hn,Gn){void 0===Gn&&(Gn=this.getMeasurementTextNode());var Vn=Gn;return Vn.setAttribute("font-family",Un),Vn.setAttribute("font-size",Dn),Vn.setAttribute("font-style",Qn),Vn.setAttribute("font-weight",Hn),Vn.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Vn.textContent=Tn,Vn.getBBox().width},TextMeasure.prototype.getMeasureFunction=function(Tn){var Un=this.measureMethods[Tn];if(!Un){var Dn="16px",Qn="normal",Hn="normal",Gn=this.canvasTextMeasure(TextMeasure.testString,Tn,Dn,Qn,Hn),Vn=this.svgTextMeasure(TextMeasure.testString,Tn,Dn,Qn,Hn);Un=Math.abs(Gn-Vn)<TextMeasure.epsilon?this.canvasTextMeasure:this.svgTextMeasure,this.measureMethods[Tn]=Un}return Un},TextMeasure.prototype.cleanupTextMeasuring=function(){if(this.textMeasuringTextElement){var Tn=this.textMeasuringTextElement.parentNode;Tn&&document.body.removeChild(Tn),this.textMeasuringTextElement=void 0}},TextMeasure.testString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789!\"$%&/()=?'\\+*-_.:,;^}][{#~|<>",TextMeasure.epsilon=.1,TextMeasure}(),GM=function(){function Context(Tn,Un){var Dn,Qn,Hn,Gn,Vn,zn;this.pdf=Tn,this.svg2pdfParameters=Un.svg2pdfParameters,this.attributeState=Un.attributeState?Un.attributeState.clone():DM.default(),this.viewport=Un.viewport,this.refsHandler=null!==(Dn=Un.refsHandler)&&void 0!==Dn?Dn:null,this.styleSheets=null!==(Qn=Un.styleSheets)&&void 0!==Qn?Qn:null,this.textMeasure=null!==(Hn=Un.textMeasure)&&void 0!==Hn?Hn:new HM,this.transform=null!==(Gn=Un.transform)&&void 0!==Gn?Gn:this.pdf.unitMatrix,this.withinClipPath=null!==(Vn=Un.withinClipPath)&&void 0!==Vn&&Vn,this.withinUse=null!==(zn=Un.withinUse)&&void 0!==zn&&zn}return Context.prototype.clone=function(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn;return void 0===Tn&&(Tn={}),new Context(this.pdf,{svg2pdfParameters:null!==(Un=Tn.svg2pdfParameters)&&void 0!==Un?Un:this.svg2pdfParameters,attributeState:Tn.attributeState?Tn.attributeState.clone():this.attributeState.clone(),viewport:null!==(Dn=Tn.viewport)&&void 0!==Dn?Dn:this.viewport,refsHandler:null!==(Qn=Tn.refsHandler)&&void 0!==Qn?Qn:this.refsHandler,styleSheets:null!==(Hn=Tn.styleSheets)&&void 0!==Hn?Hn:this.styleSheets,textMeasure:null!==(Gn=Tn.textMeasure)&&void 0!==Gn?Gn:this.textMeasure,transform:null!==(Vn=Tn.transform)&&void 0!==Vn?Vn:this.transform,withinClipPath:null!==(zn=Tn.withinClipPath)&&void 0!==zn?zn:this.withinClipPath,withinUse:null!==(Kn=Tn.withinUse)&&void 0!==Kn?Kn:this.withinUse})},Context}(),VM=function(){function ReferencesHandler(Tn){this.renderedElements={},this.idMap=Tn}return ReferencesHandler.prototype.getRendered=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){var Dn;return __generator(this,(function(Qn){switch(Qn.label){case 0:return this.renderedElements.hasOwnProperty(Tn)?[2,this.renderedElements[Tn]]:(Dn=this.get(Tn),this.renderedElements[Tn]=Dn,[4,Un(Dn)]);case 1:return Qn.sent(),[2,Dn]}}))}))},ReferencesHandler.prototype.get=function(Tn){return this.idMap[yM(Tn,{isIdentifier:!0})]},ReferencesHandler}();function getAngle(Tn,Un){return Math.atan2(Un[1]-Tn[1],Un[0]-Tn[0])}var zM=2/3;function toCubic(Tn,Un){return[zM*(Un[0]-Tn[0])+Tn[0],zM*(Un[1]-Tn[1])+Tn[1]]}function normalize$2(Tn){var Un=Math.sqrt(Tn[0]*Tn[0]+Tn[1]*Tn[1]);return[Tn[0]/Un,Tn[1]/Un]}function getDirectionVector(Tn,Un){return normalize$2([Un[0]-Tn[0],Un[1]-Tn[1]])}function addVectors(Tn,Un){return[Tn[0]+Un[0],Tn[1]+Un[1]]}function multVecMatrix(Tn,Un){var Dn=Tn[0],Qn=Tn[1];return[Un.a*Dn+Un.c*Qn+Un.e,Un.b*Dn+Un.d*Qn+Un.f]}var KM=function(){function Path(){this.segments=[]}return Path.prototype.moveTo=function(Tn,Un){return this.segments.push(new qM(Tn,Un)),this},Path.prototype.lineTo=function(Tn,Un){return this.segments.push(new $M(Tn,Un)),this},Path.prototype.curveTo=function(Tn,Un,Dn,Qn,Hn,Gn){return this.segments.push(new WM(Tn,Un,Dn,Qn,Hn,Gn)),this},Path.prototype.close=function(){return this.segments.push(new XM),this},Path.prototype.transform=function(Tn){this.segments.forEach((function(Un){if(Un instanceof qM||Un instanceof $M||Un instanceof WM){var Dn=multVecMatrix([Un.x,Un.y],Tn);Un.x=Dn[0],Un.y=Dn[1]}if(Un instanceof WM){var Qn=multVecMatrix([Un.x1,Un.y1],Tn),Hn=multVecMatrix([Un.x2,Un.y2],Tn);Un.x1=Qn[0],Un.y1=Qn[1],Un.x2=Hn[0],Un.y2=Hn[1]}}))},Path.prototype.draw=function(Tn){var Un=Tn.pdf;this.segments.forEach((function(Tn){Tn instanceof qM?Un.moveTo(Tn.x,Tn.y):Tn instanceof $M?Un.lineTo(Tn.x,Tn.y):Tn instanceof WM?Un.curveTo(Tn.x1,Tn.y1,Tn.x2,Tn.y2,Tn.x,Tn.y):Un.close()}))},Path}(),qM=function qM(Tn,Un){this.x=Tn,this.y=Un},$M=function $M(Tn,Un){this.x=Tn,this.y=Un},WM=function WM(Tn,Un,Dn,Qn,Hn,Gn){this.x1=Tn,this.y1=Un,this.x2=Dn,this.y2=Qn,this.x=Hn,this.y=Gn},XM=function XM(){};function nodeIs(Tn,Un){return Un.split(",").indexOf((Tn.nodeName||Tn.tagName).toLowerCase())>=0}function getAttribute(Tn,Un,Dn,Qn){void 0===Qn&&(Qn=Dn);var Hn=Tn.style.getPropertyValue(Qn);return Hn||(Un.getPropertyValue(Tn,Qn)?Un.getPropertyValue(Tn,Qn):Tn.hasAttribute(Dn)&&Tn.getAttribute(Dn)||void 0)}function svgNodeIsVisible(Tn,Un,Dn){if("none"===getAttribute(Tn.element,Dn.styleSheets,"display"))return!1;var Qn=Un,Hn=getAttribute(Tn.element,Dn.styleSheets,"visibility");return Hn&&(Qn="hidden"!==Hn),Qn}function svgNodeAndChildrenVisible(Tn,Un,Dn){var Qn=svgNodeIsVisible(Tn,Un,Dn);return 0!==Tn.element.childNodes.length&&(Tn.children.forEach((function(Tn){Tn.isVisible(Qn,Dn)&&(Qn=!0)})),Qn)}var YM=function(){function MarkerList(){this.markers=[]}return MarkerList.prototype.addMarker=function(Tn){this.markers.push(Tn)},MarkerList.prototype.draw=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn,Vn,zn;return __generator(this,(function(Kn){switch(Kn.label){case 0:Un=0,Kn.label=1;case 1:return Un<this.markers.length?(Dn=this.markers[Un],Qn=void 0,Hn=Dn.angle,Gn=Dn.anchor,Vn=Math.cos(Hn),zn=Math.sin(Hn),Qn=Tn.pdf.Matrix(Vn,zn,-zn,Vn,Gn[0],Gn[1]),Qn=Tn.pdf.matrixMult(Tn.pdf.Matrix(Tn.attributeState.strokeWidth,0,0,Tn.attributeState.strokeWidth,0,0),Qn),Qn=Tn.pdf.matrixMult(Qn,Tn.transform),Tn.pdf.saveGraphicsState(),Tn.pdf.setLineWidth(1),[4,Tn.refsHandler.getRendered(Dn.id,(function(Un){return Un.apply(Tn)}))]):[3,4];case 2:Kn.sent(),Tn.pdf.doFormObject(Dn.id,Qn),Tn.pdf.restoreGraphicsState(),Kn.label=3;case 3:return Un++,[3,1];case 4:return[2]}}))}))},MarkerList}(),JM=function JM(Tn,Un,Dn){this.id=Tn,this.anchor=Un,this.angle=Dn};function toPixels(Tn,Un){var Dn;return(Dn=Tn&&Tn.toString().match(/^([\-0-9.]+)em$/))?parseFloat(Dn[1])*Un:(Dn=Tn&&Tn.toString().match(/^([\-0-9.]+)(px|)$/))?parseFloat(Dn[1]):0}function mapAlignmentBaseline(Tn){return QM[Tn]||"alphabetic"}function parseFloats(Tn){for(var Un,Dn=[],Qn=/[+-]?(?:(?:\d+\.?\d*)|(?:\d*\.?\d+))(?:[eE][+-]?\d+)?/g;Un=Qn.exec(Tn);)Dn.push(parseFloat(Un[0]));return Dn}function parseColor(Tn){if("transparent"===Tn){var Un=new MM("rgb(0,0,0)");return Un.a=0,Un}var Dn=/\s*rgba\(((?:[^,\)]*,){3}[^,\)]*)\)\s*/.exec(Tn);if(Dn){var Qn=parseFloats(Dn[1]),Hn=new MM("rgb("+Qn.slice(0,3).join(",")+")");return Hn.a=Qn[3],Hn}return new MM(Tn)}var ZM={"sans-serif":"helvetica",verdana:"helvetica",arial:"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",serif:"times",cursive:"times",fantasy:"times"};function getBoundingBoxByChildren(Tn,Un){if("none"===getAttribute(Un.element,Tn.styleSheets,"display"))return[0,0,0,0];var Dn=[0,0,0,0];return Un.children.forEach((function(Un){var Qn=Un.getBoundingBox(Tn);Dn=[Math.min(Dn[0],Qn[0]),Math.min(Dn[1],Qn[1]),Math.max(Dn[0]+Dn[2],Qn[0]+Qn[2])-Math.min(Dn[0],Qn[0]),Math.max(Dn[1]+Dn[3],Qn[1]+Qn[3])-Math.min(Dn[1],Qn[1])]})),Dn}function defaultBoundingBox(Tn,Un){var Dn=parseFloat,Qn=Dn(Tn.getAttribute("x1"))||Dn(getAttribute(Tn,Un.styleSheets,"x"))||Dn(getAttribute(Tn,Un.styleSheets,"cx"))-Dn(getAttribute(Tn,Un.styleSheets,"r"))||0,Hn=Dn(Tn.getAttribute("x2"))||Qn+Dn(getAttribute(Tn,Un.styleSheets,"width"))||Dn(getAttribute(Tn,Un.styleSheets,"cx"))+Dn(getAttribute(Tn,Un.styleSheets,"r"))||0,Gn=Dn(Tn.getAttribute("y1"))||Dn(getAttribute(Tn,Un.styleSheets,"y"))||Dn(getAttribute(Tn,Un.styleSheets,"cy"))-Dn(getAttribute(Tn,Un.styleSheets,"r"))||0,Vn=Dn(Tn.getAttribute("y2"))||Gn+Dn(getAttribute(Tn,Un.styleSheets,"height"))||Dn(getAttribute(Tn,Un.styleSheets,"cy"))+Dn(getAttribute(Tn,Un.styleSheets,"r"))||0;return[Math.min(Qn,Hn),Math.min(Gn,Vn),Math.max(Qn,Hn)-Math.min(Qn,Hn),Math.max(Gn,Vn)-Math.min(Gn,Vn)]}function computeViewBoxTransform(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){void 0===zn&&(zn=!1);var Kn,$n,Wn=Un[0],Xn=Un[1],Yn=Un[2],Jn=Un[3],Zn=Hn/Yn,er=Gn/Jn,tr=Tn.getAttribute("preserveAspectRatio");if(tr){var nr=tr.split(" ");"defer"===nr[0]&&(nr=nr.slice(1)),Kn=nr[0],$n=nr[1]||"meet"}else Kn="xMidYMid",$n="meet";if("none"!==Kn&&("meet"===$n?Zn=er=Math.min(Zn,er):"slice"===$n&&(Zn=er=Math.max(Zn,er))),zn)return Vn.pdf.Matrix(Zn,0,0,er,0,0);var rr=Dn-Wn*Zn,ir=Qn-Xn*er;Kn.indexOf("xMid")>=0?rr+=(Hn-Yn*Zn)/2:Kn.indexOf("xMax")>=0&&(rr+=Hn-Yn*Zn),Kn.indexOf("YMid")>=0?ir+=(Gn-Jn*er)/2:Kn.indexOf("YMax")>=0&&(ir+=Gn-Jn*er);var or=Vn.pdf.Matrix(1,0,0,1,rr,ir),ar=Vn.pdf.Matrix(Zn,0,0,er,0,0);return Vn.pdf.matrixMult(ar,or)}function parseTransform$1(Tn,Un){if(!Tn||"none"===Tn)return Un.pdf.unitMatrix;for(var Dn,Qn,Hn=/^[\s,]*matrix\(([^\)]+)\)\s*/,Gn=/^[\s,]*translate\(([^\)]+)\)\s*/,Vn=/^[\s,]*rotate\(([^\)]+)\)\s*/,zn=/^[\s,]*scale\(([^\)]+)\)\s*/,Kn=/^[\s,]*skewX\(([^\)]+)\)\s*/,$n=/^[\s,]*skewY\(([^\)]+)\)\s*/,Wn=Un.pdf.unitMatrix;Tn.length>0&&Tn.length!==Qn;){Qn=Tn.length;var Xn=Hn.exec(Tn);if(Xn&&(Dn=parseFloats(Xn[1]),Wn=Un.pdf.matrixMult(Un.pdf.Matrix(Dn[0],Dn[1],Dn[2],Dn[3],Dn[4],Dn[5]),Wn),Tn=Tn.substr(Xn[0].length)),Xn=Vn.exec(Tn)){Dn=parseFloats(Xn[1]);var Yn=Math.PI*Dn[0]/180;if(Wn=Un.pdf.matrixMult(Un.pdf.Matrix(Math.cos(Yn),Math.sin(Yn),-Math.sin(Yn),Math.cos(Yn),0,0),Wn),Dn[1]||Dn[2]){var Jn=Un.pdf.Matrix(1,0,0,1,Dn[1],Dn[2]),Zn=Un.pdf.Matrix(1,0,0,1,-Dn[1],-Dn[2]);Wn=Un.pdf.matrixMult(Zn,Un.pdf.matrixMult(Wn,Jn))}Tn=Tn.substr(Xn[0].length)}(Xn=Gn.exec(Tn))&&(Dn=parseFloats(Xn[1]),Wn=Un.pdf.matrixMult(Un.pdf.Matrix(1,0,0,1,Dn[0],Dn[1]||0),Wn),Tn=Tn.substr(Xn[0].length)),(Xn=zn.exec(Tn))&&((Dn=parseFloats(Xn[1]))[1]||(Dn[1]=Dn[0]),Wn=Un.pdf.matrixMult(Un.pdf.Matrix(Dn[0],0,0,Dn[1],0,0),Wn),Tn=Tn.substr(Xn[0].length)),(Xn=Kn.exec(Tn))&&(Dn=parseFloat(Xn[1]),Dn*=Math.PI/180,Wn=Un.pdf.matrixMult(Un.pdf.Matrix(1,0,Math.tan(Dn),1,0,0),Wn),Tn=Tn.substr(Xn[0].length)),(Xn=$n.exec(Tn))&&(Dn=parseFloat(Xn[1]),Dn*=Math.PI/180,Wn=Un.pdf.matrixMult(Un.pdf.Matrix(1,Math.tan(Dn),0,1,0,0),Wn),Tn=Tn.substr(Xn[0].length))}return Wn}var eR=function(){function SvgNode(Tn,Un){this.element=Tn,this.children=Un}return SvgNode.prototype.getBoundingBox=function(Tn){return"none"===getAttribute(this.element,Tn.styleSheets,"display")?[0,0,0,0]:this.getBoundingBoxCore(Tn)},SvgNode.prototype.computeNodeTransform=function(Tn){var Un=this.computeNodeTransformCore(Tn),Dn=getAttribute(this.element,Tn.styleSheets,"transform");return Dn?Tn.pdf.matrixMult(Un,parseTransform$1(Dn,Tn)):Un},SvgNode}(),tR=function(Tn){function NonRenderedNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(NonRenderedNode,Tn),NonRenderedNode.prototype.render=function(Tn){return Promise.resolve()},NonRenderedNode.prototype.getBoundingBoxCore=function(Tn){return[]},NonRenderedNode.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},NonRenderedNode}(eR),nR=function(Tn){function Gradient(Un,Dn,Qn){var Hn=Tn.call(this,Dn,Qn)||this;return Hn.pdfGradientType=Un,Hn}return __extends(Gradient,Tn),Gradient.prototype.apply=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn,Vn;return __generator(this,(function(zn){return(Un=this.element.getAttribute("id"))?(Dn=[],Qn=0,Hn=!1,this.children.forEach((function(Un){if("stop"===Un.element.tagName.toLowerCase()){var Gn=new MM(getAttribute(Un.element,Tn.styleSheets,"stop-color"));Dn.push({offset:Gradient.parseGradientOffset(Un.element.getAttribute("offset")||"0"),color:[Gn.r,Gn.g,Gn.b]});var Vn=getAttribute(Un.element,Tn.styleSheets,"stop-opacity");Vn&&"1"!==Vn&&(Qn+=parseFloat(Vn),Hn=!0)}})),Hn&&(Gn=new l$1({opacity:Qn/Dn.length})),Vn=new d(this.pdfGradientType,this.getCoordinates(),Dn,Gn),Tn.pdf.addShadingPattern(Un,Vn),[2]):[2]}))}))},Gradient.prototype.getBoundingBoxCore=function(Tn){return defaultBoundingBox(this.element,Tn)},Gradient.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Gradient.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},Gradient.parseGradientOffset=function(Tn){var Un=parseFloat(Tn);return!isNaN(Un)&&Tn.indexOf("%")>=0?Un/100:Un},Gradient}(tR),rR=function(Tn){function LinearGradient(Un,Dn){return Tn.call(this,"axial",Un,Dn)||this}return __extends(LinearGradient,Tn),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}(nR),iR=function(Tn){function RadialGradient(Un,Dn){return Tn.call(this,"radial",Un,Dn)||this}return __extends(RadialGradient,Tn),RadialGradient.prototype.getCoordinates=function(){var Tn=this.element.getAttribute("cx"),Un=this.element.getAttribute("cy"),Dn=this.element.getAttribute("fx"),Qn=this.element.getAttribute("fy");return[parseFloat(Dn||Tn||"0.5"),parseFloat(Qn||Un||"0.5"),0,parseFloat(Tn||"0.5"),parseFloat(Un||"0.5"),parseFloat(this.element.getAttribute("r")||"0.5")]},RadialGradient}(nR),oR=function(){function GradientFill(Tn,Un){this.key=Tn,this.gradient=Un}return GradientFill.prototype.getFillData=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){var Dn,Qn,Hn;return __generator(this,(function(Gn){switch(Gn.label){case 0:return[4,Un.refsHandler.getRendered(this.key,(function(Tn){return Tn.apply(new GM(Un.pdf,{refsHandler:Un.refsHandler,textMeasure:Un.textMeasure,styleSheets:Un.styleSheets,viewport:Un.viewport,svg2pdfParameters:Un.svg2pdfParameters}))}))];case 1:return Gn.sent(),this.gradient.element.hasAttribute("gradientUnits")&&"objectboundingbox"!==this.gradient.element.getAttribute("gradientUnits").toLowerCase()?Dn=Un.pdf.unitMatrix:(Qn=Tn.getBoundingBox(Un),Dn=Un.pdf.Matrix(Qn[2],0,0,Qn[3],Qn[0],Qn[1])),Hn=parseTransform$1(getAttribute(this.gradient.element,Un.styleSheets,"gradientTransform","transform"),Un),[2,{key:this.key,matrix:Un.pdf.matrixMult(Hn,Dn)}]}}))}))},GradientFill}(),aR=function(Tn){function Pattern(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(Pattern,Tn),Pattern.prototype.apply=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn;return __generator(this,(function(Vn){switch(Vn.label){case 0:if(!(Un=this.element.getAttribute("id")))return[2];Dn=this.getBoundingBox(Tn),Qn=new p$1([Dn[0],Dn[1],Dn[0]+Dn[2],Dn[1]+Dn[3]],Dn[2],Dn[3]),Tn.pdf.beginTilingPattern(Qn),Hn=0,Gn=this.children,Vn.label=1;case 1:return Hn<Gn.length?[4,Gn[Hn].render(new GM(Tn.pdf,{attributeState:Tn.attributeState,refsHandler:Tn.refsHandler,styleSheets:Tn.styleSheets,viewport:Tn.viewport,svg2pdfParameters:Tn.svg2pdfParameters}))]:[3,4];case 2:Vn.sent(),Vn.label=3;case 3:return Hn++,[3,1];case 4:return Tn.pdf.endTilingPattern(Un,Qn),[2]}}))}))},Pattern.prototype.getBoundingBoxCore=function(Tn){return defaultBoundingBox(this.element,Tn)},Pattern.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Pattern.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},Pattern}(tR),sR=function(){function PatternFill(Tn,Un){this.key=Tn,this.pattern=Un}return PatternFill.prototype.getFillData=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){var Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn;return __generator(this,(function(Zn){switch(Zn.label){case 0:return[4,Un.refsHandler.getRendered(this.key,(function(Tn){return Tn.apply(new GM(Un.pdf,{refsHandler:Un.refsHandler,textMeasure:Un.textMeasure,styleSheets:Un.styleSheets,viewport:Un.viewport,svg2pdfParameters:Un.svg2pdfParameters}))}))];case 1:return Zn.sent(),Dn={key:this.key,boundingBox:void 0,xStep:0,yStep:0,matrix:void 0},Hn=Un.pdf.unitMatrix,this.pattern.element.hasAttribute("patternUnits")&&"objectboundingbox"!==this.pattern.element.getAttribute("patternUnits").toLowerCase()||(Qn=Tn.getBoundingBox(Un),Hn=Un.pdf.Matrix(1,0,0,1,Qn[0],Qn[1]),Vn=this.pattern.getBoundingBox(Un),zn=Vn[0]*Qn[0]||0,Kn=Vn[1]*Qn[1]||0,$n=Vn[2]*Qn[2]||0,Wn=Vn[3]*Qn[3]||0,Dn.boundingBox=[zn,Kn,zn+$n,Kn+Wn],Dn.xStep=$n,Dn.yStep=Wn),Gn=Un.pdf.unitMatrix,this.pattern.element.hasAttribute("patternContentUnits")&&"objectboundingbox"===this.pattern.element.getAttribute("patternContentUnits").toLowerCase()&&(Qn||(Qn=Tn.getBoundingBox(Un)),Gn=Un.pdf.Matrix(Qn[2],0,0,Qn[3],0,0),Vn=Dn.boundingBox||this.pattern.getBoundingBox(Un),zn=Vn[0]/Qn[0]||0,Kn=Vn[1]/Qn[1]||0,$n=Vn[2]/Qn[2]||0,Wn=Vn[3]/Qn[3]||0,Dn.boundingBox=[zn,Kn,zn+$n,Kn+Wn],Dn.xStep=$n,Dn.yStep=Wn),Xn=Un.pdf.unitMatrix,(Yn=getAttribute(this.pattern.element,Un.styleSheets,"patternTransform","transform"))&&(Xn=parseTransform$1(Yn,Un)),Jn=Gn,Jn=Un.pdf.matrixMult(Jn,Hn),Jn=Un.pdf.matrixMult(Jn,Xn),Jn=Un.pdf.matrixMult(Jn,Un.transform),Dn.matrix=Jn,[2,Dn]}}))}))},PatternFill}();function parseAttributes(Tn,Un,Dn){var Qn=Dn||Un.element,Hn=getAttribute(Qn,Tn.styleSheets,"visibility");Hn&&(Tn.attributeState.visibility=Hn);var Gn=getAttribute(Qn,Tn.styleSheets,"fill");Gn&&(Tn.attributeState.fill=function parseFill(Tn,Un){var Dn=jM.exec(Tn);if(Dn){var Qn=Dn[1],Hn=Un.refsHandler.get(Qn);return Hn&&(Hn instanceof rR||Hn instanceof iR)?new oR(Qn,Hn):Hn&&Hn instanceof aR?new sR(Qn,Hn):new RM(new MM("rgb(0, 0, 0)"))}var Gn=parseColor(Tn);return Gn.ok?new RM(Gn):null}(Gn,Tn));var Vn=getAttribute(Qn,Tn.styleSheets,"fill-opacity");Vn&&(Tn.attributeState.fillOpacity=parseFloat(Vn));var zn=getAttribute(Qn,Tn.styleSheets,"stroke-opacity");zn&&(Tn.attributeState.strokeOpacity=parseFloat(zn));var Kn=getAttribute(Qn,Tn.styleSheets,"opacity");Kn&&(Tn.attributeState.opacity=parseFloat(Kn));var $n=getAttribute(Qn,Tn.styleSheets,"stroke-width");void 0!==$n&&""!==$n&&($n=Math.abs(parseFloat($n)),Tn.attributeState.strokeWidth=$n);var Wn=getAttribute(Qn,Tn.styleSheets,"stroke");if(Wn)if("none"===Wn)Tn.attributeState.stroke=null;else{var Xn=parseColor(Wn);Xn.ok&&(Tn.attributeState.stroke=new RM(Xn))}var Yn=getAttribute(Qn,Tn.styleSheets,"stroke-linecap");Yn&&(Tn.attributeState.strokeLinecap=Yn);var Jn=getAttribute(Qn,Tn.styleSheets,"stroke-linejoin");Jn&&(Tn.attributeState.strokeLinejoin=Jn);var Zn=getAttribute(Qn,Tn.styleSheets,"stroke-dasharray");if(Zn){Zn=parseFloats(Zn);var er=parseInt(getAttribute(Qn,Tn.styleSheets,"stroke-dashoffset")||"0");Tn.attributeState.strokeDasharray=Zn,Tn.attributeState.strokeDashoffset=er}var tr=getAttribute(Qn,Tn.styleSheets,"stroke-miterlimit");void 0!==tr&&""!==tr&&(Tn.attributeState.strokeMiterlimit=parseFloat(tr));var nr=Qn.getAttribute("xml:space");nr&&(Tn.attributeState.xmlSpace=nr);var rr=getAttribute(Qn,Tn.styleSheets,"font-weight");rr&&(Tn.attributeState.fontWeight=rr);var ir=getAttribute(Qn,Tn.styleSheets,"font-style");ir&&(Tn.attributeState.fontStyle=ir);var or=getAttribute(Qn,Tn.styleSheets,"font-family");if(or){var ar=wM(or);Tn.attributeState.fontFamily=function findFirstAvailableFontFamily(Tn,Un,Dn){var Qn="";"bold"===Tn.fontWeight&&(Qn="bold"),"italic"===Tn.fontStyle&&(Qn+="italic"),""===Qn&&(Qn="normal");var Hn=Dn.pdf.getFontList(),Gn="";return Un.some((function(Tn){var Un=Hn[Tn];return Un&&Un.indexOf(Qn)>=0?(Gn=Tn,!0):(Tn=Tn.toLowerCase(),!!ZM.hasOwnProperty(Tn)&&(Gn=Tn,!0))}))||(Gn="times"),Gn}(Tn.attributeState,ar,Tn)}var sr=getAttribute(Qn,Tn.styleSheets,"font-size");if(sr){var lr=Tn.pdf.getFontSize();Tn.attributeState.fontSize=toPixels(sr,lr)}var cr=getAttribute(Qn,Tn.styleSheets,"vertical-align")||getAttribute(Qn,Tn.styleSheets,"alignment-baseline");if(cr){var ur=cr.match(/(baseline|text-bottom|alphabetic|ideographic|middle|central|mathematical|text-top|bottom|center|top|hanging)/);ur&&(Tn.attributeState.alignmentBaseline=ur[0])}var dr=getAttribute(Qn,Tn.styleSheets,"text-anchor");dr&&(Tn.attributeState.textAnchor=dr)}function applyAttributes(Tn,Un,Dn){var Qn=1,Hn=1;Qn*=Tn.attributeState.fillOpacity,Qn*=Tn.attributeState.opacity,Tn.attributeState.fill instanceof RM&&void 0!==Tn.attributeState.fill.color.a&&(Qn*=Tn.attributeState.fill.color.a),Hn*=Tn.attributeState.strokeOpacity,Hn*=Tn.attributeState.opacity,Tn.attributeState.stroke instanceof RM&&void 0!==Tn.attributeState.stroke.color.a&&(Hn*=Tn.attributeState.stroke.color.a);var Gn,Vn,zn=Qn<1,Kn=Hn<1;if(nodeIs(Dn,"use")?(zn=!0,Kn=!0,Qn*=Tn.attributeState.fill?1:0,Hn*=Tn.attributeState.stroke?1:0):Tn.withinUse&&(Tn.attributeState.fill!==Un.attributeState.fill?(zn=!0,Qn*=Tn.attributeState.fill?1:0):zn&&!Tn.attributeState.fill&&(Qn=0),Tn.attributeState.stroke!==Un.attributeState.stroke?(Kn=!0,Hn*=Tn.attributeState.stroke?1:0):Kn&&!Tn.attributeState.stroke&&(Hn=0)),zn||Kn){var $n={};zn&&($n.opacity=Qn),Kn&&($n["stroke-opacity"]=Hn),Tn.pdf.setGState(new l$1($n))}if(Tn.attributeState.fill&&Tn.attributeState.fill!==Un.attributeState.fill&&Tn.attributeState.fill instanceof RM&&Tn.attributeState.fill.color.ok&&!nodeIs(Dn,"text")&&Tn.pdf.setFillColor(Tn.attributeState.fill.color.r,Tn.attributeState.fill.color.g,Tn.attributeState.fill.color.b),Tn.attributeState.strokeWidth!==Un.attributeState.strokeWidth&&Tn.pdf.setLineWidth(Tn.attributeState.strokeWidth),Tn.attributeState.stroke!==Un.attributeState.stroke&&Tn.attributeState.stroke instanceof RM&&Tn.pdf.setDrawColor(Tn.attributeState.stroke.color.r,Tn.attributeState.stroke.color.g,Tn.attributeState.stroke.color.b),Tn.attributeState.strokeLinecap!==Un.attributeState.strokeLinecap&&Tn.pdf.setLineCap(Tn.attributeState.strokeLinecap),Tn.attributeState.strokeLinejoin!==Un.attributeState.strokeLinejoin&&Tn.pdf.setLineJoin(Tn.attributeState.strokeLinejoin),Tn.attributeState.strokeDasharray===Un.attributeState.strokeDasharray&&Tn.attributeState.strokeDashoffset===Un.attributeState.strokeDashoffset||!Tn.attributeState.strokeDasharray||Tn.pdf.setLineDashPattern(Tn.attributeState.strokeDasharray,Tn.attributeState.strokeDashoffset),Tn.attributeState.strokeMiterlimit!==Un.attributeState.strokeMiterlimit&&Tn.pdf.setLineMiterLimit(Tn.attributeState.strokeMiterlimit),Tn.attributeState.fontFamily!==Un.attributeState.fontFamily&&(Gn=ZM.hasOwnProperty(Tn.attributeState.fontFamily)?ZM[Tn.attributeState.fontFamily]:Tn.attributeState.fontFamily),Tn.attributeState.fill&&Tn.attributeState.fill!==Un.attributeState.fill&&Tn.attributeState.fill instanceof RM&&Tn.attributeState.fill.color.ok){var Wn=Tn.attributeState.fill.color;Tn.pdf.setTextColor(Wn.r,Wn.g,Wn.b)}Tn.attributeState.fontWeight===Un.attributeState.fontWeight&&Tn.attributeState.fontStyle===Un.attributeState.fontStyle||(Vn="","bold"===Tn.attributeState.fontWeight&&(Vn="bold"),"italic"===Tn.attributeState.fontStyle&&(Vn+="italic"),""===Vn&&(Vn="normal")),void 0===Gn&&void 0===Vn||(void 0===Gn&&(Gn=ZM.hasOwnProperty(Tn.attributeState.fontFamily)?ZM[Tn.attributeState.fontFamily]:Tn.attributeState.fontFamily),Tn.pdf.setFont(Gn,Vn)),Tn.attributeState.fontSize!==Un.attributeState.fontSize&&Tn.pdf.setFontSize(Tn.attributeState.fontSize*Tn.pdf.internal.scaleFactor)}function getClipPathNode(Tn,Un){var Dn=getAttribute(Tn.element,Un.styleSheets,"clip-path");if(Dn){var Qn=jM.exec(Dn);if(Qn){var Hn=Qn[1];return Un.refsHandler.get(Hn)||void 0}}}function applyClipPath(Tn,Un,Dn){return __awaiter(this,void 0,void 0,(function(){var Qn,Hn;return __generator(this,(function(Gn){switch(Gn.label){case 0:return Qn=Dn.clone(),Un.element.hasAttribute("clipPathUnits")&&"objectboundingbox"===Un.element.getAttribute("clipPathUnits").toLowerCase()&&(Hn=Tn.getBoundingBox(Dn),Qn.transform=Dn.pdf.matrixMult(Dn.pdf.Matrix(Hn[2],0,0,Hn[3],Hn[0],Hn[1]),Dn.transform)),[4,Un.apply(Qn)];case 1:return Gn.sent(),[2]}}))}))}var lR=function(Tn){function RenderedNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(RenderedNode,Tn),RenderedNode.prototype.render=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn;return __generator(this,(function(Hn){switch(Hn.label){case 0:return this.isVisible("hidden"!==Tn.attributeState.visibility,Tn)?((Un=Tn.clone()).transform=Un.pdf.matrixMult(this.computeNodeTransform(Un),Tn.transform),parseAttributes(Un,this),(Dn=this.element.hasAttribute("clip-path")&&"none"!==getAttribute(this.element,Un.styleSheets,"clip-path"))?(Qn=getClipPathNode(this,Un))&&Qn.isVisible(!0,Un)?(Un.pdf.saveGraphicsState(),[4,applyClipPath(this,Qn,Un)]):[3,2]:[3,3]):[2];case 1:return Hn.sent(),[3,3];case 2:return[2];case 3:return Un.withinClipPath||Un.pdf.saveGraphicsState(),applyAttributes(Un,Tn,this.element),[4,this.renderCore(Un)];case 4:return Hn.sent(),Un.withinClipPath||Un.pdf.restoreGraphicsState(),Dn&&Un.pdf.restoreGraphicsState(),[2]}}))}))},RenderedNode}(eR),cR=function(Tn){function GraphicsNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(GraphicsNode,Tn),GraphicsNode}(lR),uR=function(Tn){function GeometryNode(Un,Dn,Qn){var Hn=Tn.call(this,Dn,Qn)||this;return Hn.cachedPath=null,Hn.hasMarkers=Un,Hn}return __extends(GeometryNode,Tn),GeometryNode.prototype.renderCore=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un;return __generator(this,(function(Dn){switch(Dn.label){case 0:return null===(Un=this.getCachedPath(Tn))||0===Un.segments.length?[2]:(Tn.withinClipPath?Un.transform(Tn.transform):Tn.pdf.setCurrentTransformationMatrix(Tn.transform),Un.draw(Tn),[4,this.fillOrStroke(Tn)]);case 1:return Dn.sent(),this.hasMarkers?[4,this.drawMarkers(Tn,Un)]:[3,3];case 2:Dn.sent(),Dn.label=3;case 3:return[2]}}))}))},GeometryNode.prototype.getCachedPath=function(Tn){return this.cachedPath||(this.cachedPath=this.getPath(Tn))},GeometryNode.prototype.drawMarkers=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Dn){switch(Dn.label){case 0:return[4,this.getMarkers(Un,Tn).draw(Tn.clone({transform:Tn.pdf.unitMatrix}))];case 1:return Dn.sent(),[2]}}))}))},GeometryNode.prototype.fillOrStroke=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn;return __generator(this,(function(Vn){switch(Vn.label){case 0:return Tn.withinClipPath?[2]:(Un=Tn.attributeState.fill,Dn=Tn.attributeState.stroke&&0!==Tn.attributeState.strokeWidth,Un?[4,Un.getFillData(this,Tn)]:[3,2]);case 1:return Hn=Vn.sent(),[3,3];case 2:Hn=void 0,Vn.label=3;case 3:return Qn=Hn,Gn="evenodd"===getAttribute(this.element,Tn.styleSheets,"fill-rule"),Un&&Dn||Tn.withinUse?Gn?Tn.pdf.fillStrokeEvenOdd(Qn):Tn.pdf.fillStroke(Qn):Un?Gn?Tn.pdf.fillEvenOdd(Qn):Tn.pdf.fill(Qn):Dn?Tn.pdf.stroke():Tn.pdf.discardPath(),[2]}}))}))},GeometryNode.prototype.getBoundingBoxCore=function(Tn){var Un=this.getCachedPath(Tn);if(!Un)return[0,0,0,0];for(var Dn=Number.POSITIVE_INFINITY,Qn=Number.POSITIVE_INFINITY,Hn=Number.NEGATIVE_INFINITY,Gn=Number.NEGATIVE_INFINITY,Vn=0,zn=0,Kn=0;Kn<Un.segments.length;Kn++){var $n=Un.segments[Kn];($n instanceof qM||$n instanceof $M||$n instanceof WM)&&(Vn=$n.x,zn=$n.y),$n instanceof WM?(Dn=Math.min(Dn,Vn,$n.x1,$n.x2,$n.x),Hn=Math.max(Hn,Vn,$n.x1,$n.x2,$n.x),Qn=Math.min(Qn,zn,$n.y1,$n.y2,$n.y),Gn=Math.max(Gn,zn,$n.y1,$n.y2,$n.y)):(Dn=Math.min(Dn,Vn),Hn=Math.max(Hn,Vn),Qn=Math.min(Qn,zn),Gn=Math.max(Gn,zn))}return[Dn,Qn,Hn-Dn,Gn-Qn]},GeometryNode.prototype.getMarkers=function(Tn,Un){var Dn=getAttribute(this.element,Un.styleSheets,"marker-start"),Qn=getAttribute(this.element,Un.styleSheets,"marker-mid"),Hn=getAttribute(this.element,Un.styleSheets,"marker-end"),Gn=new YM;if(Dn||Qn||Hn){Hn&&(Hn=iri(Hn)),Dn&&(Dn=iri(Dn)),Qn&&(Qn=iri(Qn));for(var Vn=Tn.segments,zn=[1,0],Kn=void 0,$n=!1,Wn=[1,0],Xn=!1,Yn=function _loop_1(Tn){var Un=Vn[Tn],Yn=Dn&&(1===Tn||!(Vn[Tn]instanceof qM)&&Vn[Tn-1]instanceof qM);Yn&&Vn.forEach((function(Un,Dn){if(!Xn&&Un instanceof XM&&Dn>Tn){var Qn=Vn[Dn-1];Xn=(Qn instanceof qM||Qn instanceof $M||Qn instanceof WM)&&Qn}}));var Jn=Hn&&(Tn===Vn.length-1||!(Vn[Tn]instanceof qM)&&Vn[Tn+1]instanceof qM),Zn=Qn&&Tn>0&&!(1===Tn&&Vn[Tn-1]instanceof qM),er=Vn[Tn-1]||null;if(er instanceof qM||er instanceof $M||er instanceof WM){if(Un instanceof WM)Yn&&Gn.addMarker(new JM(Dn,[er.x,er.y],getAngle(Xn?[Xn.x,Xn.y]:[er.x,er.y],[Un.x1,Un.y1]))),Jn&&Gn.addMarker(new JM(Hn,[Un.x,Un.y],getAngle([Un.x2,Un.y2],[Un.x,Un.y]))),Zn&&(Kn=getDirectionVector([er.x,er.y],[Un.x1,Un.y1]),Kn=er instanceof qM?Kn:normalize$2(addVectors(zn,Kn)),Gn.addMarker(new JM(Qn,[er.x,er.y],Math.atan2(Kn[1],Kn[0])))),zn=getDirectionVector([Un.x2,Un.y2],[Un.x,Un.y]);else if(Un instanceof qM||Un instanceof $M){if(Kn=getDirectionVector([er.x,er.y],[Un.x,Un.y]),Yn){var tr=Xn?getDirectionVector([Xn.x,Xn.y],[Un.x,Un.y]):Kn;Gn.addMarker(new JM(Dn,[er.x,er.y],Math.atan2(tr[1],tr[0])))}if(Jn&&Gn.addMarker(new JM(Hn,[Un.x,Un.y],Math.atan2(Kn[1],Kn[0]))),Zn){tr=Un instanceof qM?zn:er instanceof qM?Kn:normalize$2(addVectors(zn,Kn));Gn.addMarker(new JM(Qn,[er.x,er.y],Math.atan2(tr[1],tr[0])))}zn=Kn}else if(Un instanceof XM){if(Kn=getDirectionVector([er.x,er.y],[$n.x,$n.y]),Zn){tr=er instanceof qM?Kn:normalize$2(addVectors(zn,Kn));Gn.addMarker(new JM(Qn,[er.x,er.y],Math.atan2(tr[1],tr[0])))}if(Jn){tr=normalize$2(addVectors(Kn,Wn));Gn.addMarker(new JM(Hn,[$n.x,$n.y],Math.atan2(tr[1],tr[0])))}zn=Kn}}else{$n=Un instanceof qM&&Un;var nr=Vn[Tn+1];(nr instanceof qM||nr instanceof $M||nr instanceof WM)&&(Wn=getDirectionVector([$n.x,$n.y],[nr.x,nr.y]))}},Jn=0;Jn<Vn.length;Jn++)Yn(Jn)}return Gn},GeometryNode}(cR);function iri(Tn){var Un=jM.exec(Tn);return Un&&Un[1]||void 0}var dR=function(Tn){function Line(Un,Dn){return Tn.call(this,!0,Un,Dn)||this}return __extends(Line,Tn),Line.prototype.getPath=function(Tn){if(Tn.withinClipPath||null===Tn.attributeState.stroke)return null;var Un=parseFloat(this.element.getAttribute("x1")||"0"),Dn=parseFloat(this.element.getAttribute("y1")||"0"),Qn=parseFloat(this.element.getAttribute("x2")||"0"),Hn=parseFloat(this.element.getAttribute("y2")||"0");return Un||Qn||Dn||Hn?(new KM).moveTo(Un,Dn).lineTo(Qn,Hn):null},Line.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Line.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},Line.prototype.fillOrStroke=function(Un){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Dn){switch(Dn.label){case 0:return Un.attributeState.fill=null,[4,Tn.prototype.fillOrStroke.call(this,Un)];case 1:return Dn.sent(),[2]}}))}))},Line}(uR),hR=function(Tn){function _Symbol(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(_Symbol,Tn),_Symbol.prototype.apply=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn;return __generator(this,(function(Gn){switch(Gn.label){case 0:return this.isVisible("hidden"!==Tn.attributeState.visibility,Tn)?((Un=Tn.clone()).transform=Un.pdf.unitMatrix,parseAttributes(Un,this),this.element.hasAttribute("clip-path")&&"none"!==getAttribute(this.element,Un.styleSheets,"clip-path")?(Dn=getClipPathNode(this,Un))&&Dn.isVisible(!0,Un)?[4,applyClipPath(this,Dn,Un)]:[3,2]:[3,3]):[2];case 1:return Gn.sent(),[3,3];case 2:return[2];case 3:applyAttributes(Un,Tn,this.element),Qn=0,Hn=this.children,Gn.label=4;case 4:return Qn<Hn.length?[4,Hn[Qn].render(Un)]:[3,7];case 5:Gn.sent(),Gn.label=6;case 6:return Qn++,[3,4];case 7:return[2]}}))}))},_Symbol.prototype.getBoundingBoxCore=function(Tn){return getBoundingBoxByChildren(Tn,this)},_Symbol.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},_Symbol.prototype.computeNodeTransformCore=function(Tn){var Un=parseFloat(getAttribute(this.element,Tn.styleSheets,"x")||"0"),Dn=parseFloat(getAttribute(this.element,Tn.styleSheets,"y")||"0"),Qn=this.element.getAttribute("viewBox");if(Qn){var Hn=parseFloats(Qn),Gn=parseFloat(getAttribute(this.element,Tn.styleSheets,"width")||getAttribute(this.element.ownerSVGElement,Tn.styleSheets,"width")||Qn[2]),Vn=parseFloat(getAttribute(this.element,Tn.styleSheets,"height")||getAttribute(this.element.ownerSVGElement,Tn.styleSheets,"height")||Qn[3]);return computeViewBoxTransform(this.element,Hn,Un,Dn,Gn,Vn,Tn)}return Tn.pdf.Matrix(1,0,0,1,Un,Dn)},_Symbol}(tR),pR=function pR(Tn,Un){this.width=Tn,this.height=Un},gR=function(Tn){function Use(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(Use,Tn),Use.prototype.renderCore=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn;return __generator(this,(function(Jn){switch(Jn.label){case 0:return Un=parseFloat,(Dn=this.element.getAttribute("href")||this.element.getAttribute("xlink:href"))?(Qn=Dn.substring(1),Hn=Tn.refsHandler.get(Qn),Gn=nodeIs(Hn.element,"symbol,svg")&&Hn.element.hasAttribute("viewBox"),Vn=Un(getAttribute(this.element,Tn.styleSheets,"x")||"0"),zn=Un(getAttribute(this.element,Tn.styleSheets,"y")||"0"),Kn=void 0,$n=void 0,Gn?(Kn=Un(getAttribute(this.element,Tn.styleSheets,"width")||getAttribute(Hn.element,Tn.styleSheets,"width")||"0"),$n=Un(getAttribute(this.element,Tn.styleSheets,"height")||getAttribute(Hn.element,Tn.styleSheets,"height")||"0"),Vn+=Un(getAttribute(Hn.element,Tn.styleSheets,"x")||"0"),zn+=Un(getAttribute(Hn.element,Tn.styleSheets,"y")||"0"),Xn=parseFloats(Hn.element.getAttribute("viewBox")),Wn=computeViewBoxTransform(Hn.element,Xn,Vn,zn,Kn,$n,Tn)):Wn=Tn.pdf.Matrix(1,0,0,1,Vn,zn),Yn=new GM(Tn.pdf,{refsHandler:Tn.refsHandler,styleSheets:Tn.styleSheets,withinUse:!0,viewport:Gn?new pR(Kn,$n):Tn.viewport,svg2pdfParameters:Tn.svg2pdfParameters}),[4,Tn.refsHandler.getRendered(Qn,(function(Tn){return Use.renderReferencedNode(Tn,Yn)}))]):[2];case 1:return Jn.sent(),Tn.pdf.saveGraphicsState(),Tn.pdf.setCurrentTransformationMatrix(Tn.transform),Gn&&"visible"!==getAttribute(Hn.element,Tn.styleSheets,"overflow")&&(Tn.pdf.rect(Vn,zn,Kn,$n),Tn.pdf.clip().discardPath()),Tn.pdf.doFormObject(Qn,Wn),Tn.pdf.restoreGraphicsState(),[2]}}))}))},Use.renderReferencedNode=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){var Dn;return __generator(this,(function(Qn){switch(Qn.label){case 0:return Dn=[(Dn=Tn.getBoundingBox(Un))[0]-.5*Dn[2],Dn[1]-.5*Dn[3],2*Dn[2],2*Dn[3]],Un.pdf.beginFormObject(Dn[0],Dn[1],Dn[2],Dn[3],Un.pdf.unitMatrix),Tn instanceof hR?[4,Tn.apply(Un)]:[3,2];case 1:return Qn.sent(),[3,4];case 2:return[4,Tn.render(Un)];case 3:Qn.sent(),Qn.label=4;case 4:return Un.pdf.endFormObject(Tn.element.getAttribute("id")),[2]}}))}))},Use.prototype.getBoundingBoxCore=function(Tn){return defaultBoundingBox(this.element,Tn)},Use.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},Use.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Use}(cR),fR=function(Tn){function Rect(Un,Dn){return Tn.call(this,!1,Un,Dn)||this}return __extends(Rect,Tn),Rect.prototype.getPath=function(Tn){var Un=parseFloat(getAttribute(this.element,Tn.styleSheets,"width")||"0"),Dn=parseFloat(getAttribute(this.element,Tn.styleSheets,"height")||"0");if(!isFinite(Un)||Un<=0||!isFinite(Dn)||Dn<=0)return null;var Qn=getAttribute(this.element,Tn.styleSheets,"rx"),Hn=getAttribute(this.element,Tn.styleSheets,"ry"),Gn=Math.min(parseFloat(Qn||Hn||"0"),.5*Un),Vn=Math.min(parseFloat(Hn||Qn||"0"),.5*Dn),zn=parseFloat(getAttribute(this.element,Tn.styleSheets,"x")||"0"),Kn=parseFloat(getAttribute(this.element,Tn.styleSheets,"y")||"0"),$n=4/3*(Math.SQRT2-1);return 0===Gn&&0===Vn?(new KM).moveTo(zn,Kn).lineTo(zn+Un,Kn).lineTo(zn+Un,Kn+Dn).lineTo(zn,Kn+Dn).close():(new KM).moveTo(zn+=Gn,Kn).lineTo(zn+=Un-2*Gn,Kn).curveTo(zn+Gn*$n,Kn,zn+Gn,Kn+(Vn-Vn*$n),zn+=Gn,Kn+=Vn).lineTo(zn,Kn+=Dn-2*Vn).curveTo(zn,Kn+Vn*$n,zn-Gn*$n,Kn+Vn,zn-=Gn,Kn+=Vn).lineTo(zn+=2*Gn-Un,Kn).curveTo(zn-Gn*$n,Kn,zn-Gn,Kn-Vn*$n,zn-=Gn,Kn-=Vn).lineTo(zn,Kn+=2*Vn-Dn).curveTo(zn,Kn-Vn*$n,zn+Gn*$n,Kn-Vn,zn+=Gn,Kn-=Vn).close()},Rect.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Rect.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},Rect}(uR),AR=function(Tn){function EllipseBase(Un,Dn){return Tn.call(this,!1,Un,Dn)||this}return __extends(EllipseBase,Tn),EllipseBase.prototype.getPath=function(Tn){var Un=this.getRx(Tn),Dn=this.getRy(Tn);if(!isFinite(Un)||Dn<=0||!isFinite(Dn)||Dn<=0)return null;var Qn=parseFloat(getAttribute(this.element,Tn.styleSheets,"cx")||"0"),Hn=parseFloat(getAttribute(this.element,Tn.styleSheets,"cy")||"0"),Gn=4/3*(Math.SQRT2-1)*Un,Vn=4/3*(Math.SQRT2-1)*Dn;return(new KM).moveTo(Qn+Un,Hn).curveTo(Qn+Un,Hn-Vn,Qn+Gn,Hn-Dn,Qn,Hn-Dn).curveTo(Qn-Gn,Hn-Dn,Qn-Un,Hn-Vn,Qn-Un,Hn).curveTo(Qn-Un,Hn+Vn,Qn-Gn,Hn+Dn,Qn,Hn+Dn).curveTo(Qn+Gn,Hn+Dn,Qn+Un,Hn+Vn,Qn+Un,Hn)},EllipseBase.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},EllipseBase.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},EllipseBase}(uR),mR=function(Tn){function Ellipse(Un,Dn){return Tn.call(this,Un,Dn)||this}return __extends(Ellipse,Tn),Ellipse.prototype.getRx=function(Tn){return parseFloat(getAttribute(this.element,Tn.styleSheets,"rx")||"0")},Ellipse.prototype.getRy=function(Tn){return parseFloat(getAttribute(this.element,Tn.styleSheets,"ry")||"0")},Ellipse}(AR);function getTextRenderingMode(Tn){var Un="invisible";return Tn.fill&&Tn.stroke?Un="fillThenStroke":Tn.fill?Un="fill":Tn.stroke&&(Un="stroke"),Un}function removeNewlines(Tn){return Tn.replace(/[\n\r]/g,"")}function replaceTabsBySpace(Tn){return Tn.replace(/[\t]/g," ")}function consolidateSpaces(Tn){return Tn.replace(/ +/g," ")}function transformText(Tn,Un,Dn){switch(getAttribute(Tn,Dn.styleSheets,"text-transform")){case"uppercase":return Un.toUpperCase();case"lowercase":return Un.toLowerCase();default:return Un}}function trimRight$1(Tn){return Tn.replace(/\s+$/,"")}var vR=function(){function TextChunk(Tn,Un,Dn,Qn){this.textNode=Tn,this.texts=[],this.textNodes=[],this.textAnchor=Un,this.originX=Dn,this.originY=Qn}return TextChunk.prototype.add=function(Tn,Un){this.texts.push(Un),this.textNodes.push(Tn)},TextChunk.prototype.put=function(Tn){var Un,Dn,Qn,Hn=[],Gn=[],Vn=[],zn=this.originX,Kn=this.originY,$n=zn,Wn=zn;for(Un=0;Un<this.textNodes.length;Un++){var Xn=zn,Yn=Kn,Jn=void 0;if("#text"===(Dn=this.textNodes[Un]).nodeName)Jn=Tn;else{parseAttributes(Jn=Tn.clone(),this.textNode,Dn);var Zn=getAttribute(Dn,Tn.styleSheets,"stroke");Zn&&(Qn=new MM(Zn)).ok&&(Jn.attributeState.stroke=new RM(Qn));var er=getAttribute(Dn,Tn.styleSheets,"stroke-width");void 0!==er&&(Jn.attributeState.strokeWidth=parseFloat(er));var tr=Dn.getAttribute("dx");null!==tr&&(Xn+=toPixels(tr,Jn.attributeState.fontSize));var nr=Dn.getAttribute("dy");null!==nr&&(Yn+=toPixels(nr,Jn.attributeState.fontSize))}Vn[Un]=Jn,Hn[Un]=Xn,Gn[Un]=Yn,zn=Xn+Tn.textMeasure.measureTextWidth(this.texts[Un],Jn.attributeState),Kn=Yn,$n=Math.min($n,Xn),Wn=Math.max(Wn,zn)}var rr=0;switch(this.textAnchor){case"start":rr=0;break;case"middle":rr=(Wn-$n)/2;break;case"end":rr=Wn-$n}for(Un=0;Un<this.textNodes.length;Un++){if("#text"!==(Dn=this.textNodes[Un]).nodeName)if("hidden"===(getAttribute(Dn,Tn.styleSheets,"visibility")||Tn.attributeState.visibility))continue;Tn.pdf.saveGraphicsState(),applyAttributes(Vn[Un],Tn,Dn);var ir=Vn[Un].attributeState.alignmentBaseline,or=getTextRenderingMode(Vn[Un].attributeState);Tn.pdf.text(this.texts[Un],Hn[Un]-rr,Gn[Un],{baseline:mapAlignmentBaseline(ir),angle:Tn.transform,renderingMode:"fill"===or?void 0:or}),Tn.pdf.restoreGraphicsState()}return[zn,Kn]},TextChunk}(),yR=function(Tn){function TextNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(TextNode,Tn),TextNode.prototype.renderCore=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr,ir,or,ar,sr,lr,cr,ur;return __generator(this,(function(dr){if(Tn.pdf.saveGraphicsState(),Un=0,Dn=Tn.pdf.getFontSize(),Qn=toPixels(this.element.getAttribute("x"),Dn),Hn=toPixels(this.element.getAttribute("y"),Dn),Gn=toPixels(this.element.getAttribute("dx"),Dn),Vn=toPixels(this.element.getAttribute("dy"),Dn),zn=Tn.attributeState.visibility,0===(Kn=this.element.childElementCount))cr=function transformXmlSpace(Tn,Un){return Tn=replaceTabsBySpace(Tn=removeNewlines(Tn)),"default"===Un.xmlSpace&&(Tn=consolidateSpaces(Tn=Tn.trim())),Tn}(this.element.textContent||"",Tn.attributeState),ur=transformText(this.element,cr,Tn),Un=Tn.textMeasure.getTextOffset(ur,Tn.attributeState),"visible"===zn&&($n=Tn.attributeState.alignmentBaseline,Wn=getTextRenderingMode(Tn.attributeState),Tn.pdf.text(ur,Qn+Gn-Un,Hn+Vn,{baseline:mapAlignmentBaseline($n),angle:Tn.transform,renderingMode:"fill"===Wn?void 0:Wn}));else{for(Xn=new vR(this,Tn.attributeState.textAnchor,Qn+Gn,Hn+Vn),Yn=0;Yn<this.element.childNodes.length;Yn++)if((Jn=this.element.childNodes[Yn]).textContent){if(Zn=Tn.attributeState.xmlSpace,er=Jn.textContent,"#text"===Jn.nodeName);else{if(nodeIs(Jn,"title"))continue;if(nodeIs(Jn,"tspan")){if((tr=Jn).childElementCount>0)for(er="",nr=0;nr<tr.childNodes.length;nr++)"#text"===tr.childNodes[nr].nodeName&&(er+=tr.childNodes[nr].textContent);rr=void 0,null!==(ir=tr.getAttribute("x"))&&(or=toPixels(ir,Dn),rr=Xn.put(Tn),Xn=new vR(this,getAttribute(tr,Tn.styleSheets,"text-anchor")||Tn.attributeState.textAnchor,or,rr[1])),null!==(ar=tr.getAttribute("y"))&&(sr=toPixels(ar,Dn),rr=Xn.put(Tn),Xn=new vR(this,getAttribute(tr,Tn.styleSheets,"text-anchor")||Tn.attributeState.textAnchor,rr[0],sr)),(lr=tr.getAttribute("xml:space"))&&(Zn=lr)}}cr=replaceTabsBySpace(cr=removeNewlines(er)),"default"===Zn&&(0===Yn&&(cr=cr.replace(/^\s+/,"")),Yn===Kn-1&&(cr=trimRight$1(cr)),cr=consolidateSpaces(cr)),ur=transformText(this.element,cr,Tn),Xn.add(Jn,ur)}Xn.put(Tn)}return Tn.pdf.restoreGraphicsState(),[2]}))}))},TextNode.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},TextNode.prototype.getBoundingBoxCore=function(Tn){return defaultBoundingBox(this.element,Tn)},TextNode.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},TextNode}(cR),_R=function(Tn){function PathNode(Un,Dn){return Tn.call(this,!0,Un,Dn)||this}return __extends(PathNode,Tn),PathNode.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},PathNode.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},PathNode.prototype.getPath=function(Tn){var Un,Dn,Qn=new IM(getAttribute(this.element,Tn.styleSheets,"d")||"").unshort().unarc().abs(),Hn=new KM;return Qn.iterate((function(Tn,Qn){var Gn=Tn[0];switch(Gn){case"M":Hn.moveTo(Tn[1],Tn[2]);break;case"L":Hn.lineTo(Tn[1],Tn[2]);break;case"H":Hn.lineTo(Tn[1],Dn);break;case"V":Hn.lineTo(Un,Tn[1]);break;case"C":Hn.curveTo(Tn[1],Tn[2],Tn[3],Tn[4],Tn[5],Tn[6]);break;case"Q":var Vn=toCubic([Un,Dn],[Tn[1],Tn[2]]),zn=toCubic([Tn[3],Tn[4]],[Tn[1],Tn[2]]);Hn.curveTo(Vn[0],Vn[1],zn[0],zn[1],Tn[3],Tn[4]);break;case"Z":Hn.close()}switch(Gn){case"M":case"L":Un=Tn[1],Dn=Tn[2];break;case"H":Un=Tn[1];break;case"V":Dn=Tn[1];break;case"C":Un=Tn[5],Dn=Tn[6];break;case"Q":Un=Tn[3],Dn=Tn[4]}})),Hn},PathNode}(uR),bR=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*\s*)$/i,wR=function(Tn){function ImageNode(Un,Dn){var Qn=Tn.call(this,Un,Dn)||this;return Qn.imageLoadingPromise=null,Qn.imageUrl=Qn.element.getAttribute("xlink:href")||Qn.element.getAttribute("href"),Qn.imageUrl&&(Qn.imageLoadingPromise=ImageNode.fetchImageData(Qn.imageUrl)),Qn}return __extends(ImageNode,Tn),ImageNode.prototype.renderCore=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn;return __generator(this,(function(Jn){switch(Jn.label){case 0:return this.imageLoadingPromise?(Tn.pdf.setCurrentTransformationMatrix(Tn.transform),Un=parseFloat(getAttribute(this.element,Tn.styleSheets,"width")||"0"),Dn=parseFloat(getAttribute(this.element,Tn.styleSheets,"height")||"0"),Qn=parseFloat(getAttribute(this.element,Tn.styleSheets,"x")||"0"),Hn=parseFloat(getAttribute(this.element,Tn.styleSheets,"y")||"0"),!isFinite(Un)||Un<=0||!isFinite(Dn)||Dn<=0?[2]:[4,this.imageLoadingPromise]):[2];case 1:return Gn=Jn.sent(),Vn=Gn.data,0!==(zn=Gn.format).indexOf("svg")?[3,3]:(Kn=new DOMParser,$n=Kn.parseFromString(Vn,"image/svg+xml").firstElementChild,(!(Wn=this.element.getAttribute("preserveAspectRatio"))||Wn.indexOf("defer")<0||!$n.getAttribute("preserveAspectRatio"))&&$n.setAttribute("preserveAspectRatio",Wn||""),$n.setAttribute("x",String(Qn)),$n.setAttribute("y",String(Hn)),$n.setAttribute("width",String(Un)),$n.setAttribute("height",String(Dn)),[4,parse$1($n,Xn={}).render(new GM(Tn.pdf,{refsHandler:new VM(Xn),styleSheets:Tn.styleSheets,viewport:new pR(Un,Dn),svg2pdfParameters:Tn.svg2pdfParameters}))]);case 2:return Jn.sent(),[2];case 3:Yn="data:image/"+zn+";base64,"+btoa(Vn);try{Tn.pdf.addImage(Yn,"",Qn,Hn,Un,Dn)}catch(Tn){"object"===("undefined"==typeof console?"undefined":_typeof(console))&&console.warn&&console.warn("Could not load image "+this.imageUrl+".\n"+Tn)}Jn.label=4;case 4:return[2]}}))}))},ImageNode.prototype.getBoundingBoxCore=function(Tn){return defaultBoundingBox(this.element,Tn)},ImageNode.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},ImageNode.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},ImageNode.fetchImageData=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn;return __generator(this,(function(Vn){switch(Vn.label){case 0:if(!(Qn=Tn.match(bR)))return[3,1];if(Hn=Qn[2],"image"!==(Gn=Hn.split("/"))[0])throw new Error("Unsupported image URL: "+Tn);return Dn=Gn[1],Un=Qn[5],Un="base64"===Qn[4]?atob(Un):decodeURIComponent(Un),[3,3];case 1:return[4,ImageNode.fetchImage(Tn)];case 2:Un=Vn.sent(),Dn=Tn.substring(Tn.lastIndexOf(".")+1),Vn.label=3;case 3:return[2,{data:Un,format:Dn}]}}))}))},ImageNode.fetchImage=function(Tn){return new Promise((function(Un,Dn){var Qn=new XMLHttpRequest;Qn.open("GET",Tn,!0),Qn.responseType="arraybuffer",Qn.onload=function(){if(200!==Qn.status)throw new Error("Error "+Qn.status+": Failed to load image '"+Tn+"'");for(var Dn=new Uint8Array(Qn.response),Hn="",Gn=0;Gn<Dn.length;Gn++)Hn+=String.fromCharCode(Dn[Gn]);Un(Hn)},Qn.onerror=Dn,Qn.onabort=Dn,Qn.send(null)}))},ImageNode.getMimeType=function(Tn){switch(Tn=Tn.toLowerCase()){case"jpg":case"jpeg":return"image/jpeg";default:return"image/"+Tn}},ImageNode}(cR),xR=function(Tn){function Traverse(Un,Dn,Qn){var Hn=Tn.call(this,!0,Dn,Qn)||this;return Hn.closed=Un,Hn}return __extends(Traverse,Tn),Traverse.prototype.getPath=function(Tn){if(!this.element.hasAttribute("points")||""===this.element.getAttribute("points"))return null;var Un=Traverse.parsePointsString(this.element.getAttribute("points")),Dn=new KM;if(Un.length<1)return Dn;Dn.moveTo(Un[0][0],Un[0][1]);for(var Qn=1;Qn<Un.length;Qn++)Dn.lineTo(Un[Qn][0],Un[Qn][1]);return this.closed&&Dn.close(),Dn},Traverse.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},Traverse.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Traverse.parsePointsString=function(Tn){for(var Un=parseFloats(Tn),Dn=[],Qn=0;Qn<Un.length-1;Qn+=2){var Hn=Un[Qn],Gn=Un[Qn+1];Dn.push([Hn,Gn])}return Dn},Traverse}(uR),SR=function(Tn){function Polygon(Un,Dn){return Tn.call(this,!0,Un,Dn)||this}return __extends(Polygon,Tn),Polygon}(xR),CR=function(Tn){function VoidNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(VoidNode,Tn),VoidNode.prototype.render=function(Tn){return Promise.resolve()},VoidNode.prototype.getBoundingBoxCore=function(Tn){return[0,0,0,0]},VoidNode.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},VoidNode.prototype.isVisible=function(Tn,Un){return svgNodeIsVisible(this,Tn,Un)},VoidNode}(eR),kR=function(Tn){function MarkerNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(MarkerNode,Tn),MarkerNode.prototype.apply=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn;return __generator(this,(function(Gn){switch(Gn.label){case 0:Un=this.computeNodeTransform(Tn),Dn=this.getBoundingBox(Tn),Tn.pdf.beginFormObject(Dn[0],Dn[1],Dn[2],Dn[3],Un),Qn=0,Hn=this.children,Gn.label=1;case 1:return Qn<Hn.length?[4,Hn[Qn].render(new GM(Tn.pdf,{refsHandler:Tn.refsHandler,styleSheets:Tn.styleSheets,viewport:Tn.viewport,svg2pdfParameters:Tn.svg2pdfParameters}))]:[3,4];case 2:Gn.sent(),Gn.label=3;case 3:return Qn++,[3,1];case 4:return Tn.pdf.endFormObject(this.element.getAttribute("id")),[2]}}))}))},MarkerNode.prototype.getBoundingBoxCore=function(Tn){var Un,Dn=this.element.getAttribute("viewBox");return Dn&&(Un=parseFloats(Dn)),[Un&&Un[0]||0,Un&&Un[1]||0,Un&&Un[2]||parseFloat(this.element.getAttribute("marker-width")||"0"),Un&&Un[3]||parseFloat(this.element.getAttribute("marker-height")||"0")]},MarkerNode.prototype.computeNodeTransformCore=function(Tn){var Un,Dn=parseFloat(this.element.getAttribute("refX")||"0"),Qn=parseFloat(this.element.getAttribute("refY")||"0"),Hn=this.element.getAttribute("viewBox");if(Hn){var Gn=parseFloats(Hn);Un=computeViewBoxTransform(this.element,Gn,0,0,parseFloat(this.element.getAttribute("markerWidth")||"3"),parseFloat(this.element.getAttribute("markerHeight")||"3"),Tn,!0),Un=Tn.pdf.matrixMult(Tn.pdf.Matrix(1,0,0,1,-Dn,-Qn),Un)}else Un=Tn.pdf.Matrix(1,0,0,1,-Dn,-Qn);return Un},MarkerNode.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},MarkerNode}(tR),BR=function(Tn){function Circle(Un,Dn){return Tn.call(this,Un,Dn)||this}return __extends(Circle,Tn),Circle.prototype.getR=function(Tn){var Un;return null!==(Un=this.r)&&void 0!==Un?Un:this.r=parseFloat(getAttribute(this.element,Tn.styleSheets,"r")||"0")},Circle.prototype.getRx=function(Tn){return this.getR(Tn)},Circle.prototype.getRy=function(Tn){return this.getR(Tn)},Circle}(AR),ER=function(Tn){function Polyline(Un,Dn){return Tn.call(this,!1,Un,Dn)||this}return __extends(Polyline,Tn),Polyline}(xR),PR=function(Tn){function ContainerNode(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(ContainerNode,Tn),ContainerNode.prototype.renderCore=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn;return __generator(this,(function(Qn){switch(Qn.label){case 0:Un=0,Dn=this.children,Qn.label=1;case 1:return Un<Dn.length?[4,Dn[Un].render(Tn)]:[3,4];case 2:Qn.sent(),Qn.label=3;case 3:return Un++,[3,1];case 4:return[2]}}))}))},ContainerNode.prototype.getBoundingBoxCore=function(Tn){return getBoundingBoxByChildren(Tn,this)},ContainerNode}(lR),LR=function(Tn){function Svg(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(Svg,Tn),Svg.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},Svg.prototype.render=function(Un){return __awaiter(this,void 0,void 0,(function(){var Dn,Qn,Hn,Gn,Vn;return __generator(this,(function(zn){switch(zn.label){case 0:return this.isVisible("hidden"!==Un.attributeState.visibility,Un)?(Dn=this.getX(Un),Qn=this.getY(Un),Hn=this.getWidth(Un),Gn=this.getHeight(Un),Un.pdf.saveGraphicsState(),Vn=Un.transform,this.element.hasAttribute("transform")&&(Vn=Un.pdf.matrixMult(parseTransform$1(this.element.getAttribute("transform"),Un),Vn)),Un.pdf.setCurrentTransformationMatrix(Vn),Un.withinUse||"visible"===getAttribute(this.element,Un.styleSheets,"overflow")||Un.pdf.rect(Dn,Qn,Hn,Gn).clip().discardPath(),[4,Tn.prototype.render.call(this,Un.clone({transform:Un.pdf.unitMatrix,viewport:Un.withinUse?Un.viewport:new pR(Hn,Gn)}))]):[2];case 1:return zn.sent(),Un.pdf.restoreGraphicsState(),[2]}}))}))},Svg.prototype.computeNodeTransform=function(Tn){return this.computeNodeTransformCore(Tn)},Svg.prototype.computeNodeTransformCore=function(Tn){if(Tn.withinUse)return Tn.pdf.unitMatrix;var Un,Dn=this.getX(Tn),Qn=this.getY(Tn),Hn=this.getViewBox();if(Hn){var Gn=this.getWidth(Tn),Vn=this.getHeight(Tn);Un=computeViewBoxTransform(this.element,Hn,Dn,Qn,Gn,Vn,Tn)}else Un=Tn.pdf.Matrix(1,0,0,1,Dn,Qn);return Un},Svg.prototype.getWidth=function(Tn){if(void 0!==this.width)return this.width;var Un,Dn,Qn=Tn.svg2pdfParameters;if(this.isOutermostSvg(Tn))if(null!=Qn.width)Un=Qn.width;else if(Dn=getAttribute(this.element,Tn.styleSheets,"width"))Un=parseFloat(Dn);else{var Hn=this.getViewBox();if(Hn&&(null!=Qn.height||getAttribute(this.element,Tn.styleSheets,"height"))){var Gn=Hn[2]/Hn[3];Un=this.getHeight(Tn)*Gn}else Un=Math.min(300,Tn.viewport.width,2*Tn.viewport.height)}else Un=(Dn=getAttribute(this.element,Tn.styleSheets,"width"))?parseFloat(Dn):Tn.viewport.width;return this.width=Un},Svg.prototype.getHeight=function(Tn){if(void 0!==this.height)return this.height;var Un,Dn,Qn=Tn.svg2pdfParameters;if(this.isOutermostSvg(Tn))if(null!=Qn.height)Un=Qn.height;else if(Dn=getAttribute(this.element,Tn.styleSheets,"height"))Un=parseFloat(Dn);else{var Hn=this.getViewBox();if(Hn){var Gn=Hn[2]/Hn[3];Un=this.getWidth(Tn)/Gn}else Un=Math.min(150,Tn.viewport.width/2,Tn.viewport.height)}else Un=(Dn=getAttribute(this.element,Tn.styleSheets,"height"))?parseFloat(Dn):Tn.viewport.height;return this.height=Un},Svg.prototype.getX=function(Tn){if(void 0!==this.x)return this.x;if(this.isOutermostSvg(Tn))return this.x=0;var Un=getAttribute(this.element,Tn.styleSheets,"x");return this.x=Un?parseFloat(Un):0},Svg.prototype.getY=function(Tn){if(void 0!==this.y)return this.y;if(this.isOutermostSvg(Tn))return this.y=0;var Un=getAttribute(this.element,Tn.styleSheets,"y");return this.y=Un?parseFloat(Un):0},Svg.prototype.getViewBox=function(){if(void 0!==this.viewBox)return this.viewBox;var Tn=this.element.getAttribute("viewBox");return this.viewBox=Tn?parseFloats(Tn):void 0},Svg.prototype.isOutermostSvg=function(Tn){return Tn.svg2pdfParameters.element===this.element},Svg}(PR),TR=function(Tn){function Group(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(Group,Tn),Group.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},Group.prototype.computeNodeTransformCore=function(Tn){return Tn.pdf.unitMatrix},Group}(PR),NR=function(Tn){function ClipPath(){return null!==Tn&&Tn.apply(this,arguments)||this}return __extends(ClipPath,Tn),ClipPath.prototype.apply=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn;return __generator(this,(function(Hn){switch(Hn.label){case 0:if(!this.isVisible(!0,Tn))return[2];Un=Tn.pdf.matrixMult(this.computeNodeTransform(Tn),Tn.transform),Tn.pdf.setCurrentTransformationMatrix(Un),Dn=0,Qn=this.children,Hn.label=1;case 1:return Dn<Qn.length?[4,Qn[Dn].render(new GM(Tn.pdf,{refsHandler:Tn.refsHandler,styleSheets:Tn.styleSheets,viewport:Tn.viewport,withinClipPath:!0,svg2pdfParameters:Tn.svg2pdfParameters}))]:[3,4];case 2:Hn.sent(),Hn.label=3;case 3:return Dn++,[3,1];case 4:return Tn.pdf.clip().discardPath(),Tn.pdf.setCurrentTransformationMatrix(Un.inversed()),[2]}}))}))},ClipPath.prototype.getBoundingBoxCore=function(Tn){return getBoundingBoxByChildren(Tn,this)},ClipPath.prototype.isVisible=function(Tn,Un){return svgNodeAndChildrenVisible(this,Tn,Un)},ClipPath}(tR);function parse$1(Tn,Un){var Dn,Qn=[];switch(function forEachChild(Tn,Un){for(var Dn=[],Qn=0;Qn<Tn.childNodes.length;Qn++){var Hn=Tn.childNodes[Qn];"#"!==Hn.nodeName.charAt(0)&&Dn.push(Hn)}for(Qn=0;Qn<Dn.length;Qn++)Un(Qn,Dn[Qn])}(Tn,(function(Tn,Dn){return Qn.push(parse$1(Dn,Un))})),Tn.tagName.toLowerCase()){case"a":case"g":Dn=new TR(Tn,Qn);break;case"circle":Dn=new BR(Tn,Qn);break;case"clippath":Dn=new NR(Tn,Qn);break;case"ellipse":Dn=new mR(Tn,Qn);break;case"lineargradient":Dn=new rR(Tn,Qn);break;case"image":Dn=new wR(Tn,Qn);break;case"line":Dn=new dR(Tn,Qn);break;case"marker":Dn=new kR(Tn,Qn);break;case"path":Dn=new _R(Tn,Qn);break;case"pattern":Dn=new aR(Tn,Qn);break;case"polygon":Dn=new SR(Tn,Qn);break;case"polyline":Dn=new ER(Tn,Qn);break;case"radialgradient":Dn=new iR(Tn,Qn);break;case"rect":Dn=new fR(Tn,Qn);break;case"svg":Dn=new LR(Tn,Qn);break;case"symbol":Dn=new hR(Tn,Qn);break;case"text":Dn=new yR(Tn,Qn);break;case"use":Dn=new gR(Tn,Qn);break;default:Dn=new CR(Tn,Qn)}if(null!=Un&&Dn.element.hasAttribute("id")){var Hn=yM(Dn.element.id,{isIdentifier:!0});Un[Hn]=Un[Hn]||Dn}return Dn}var IR=function(){function StyleSheets(Tn,Un){this.rootSvg=Tn,this.loadExternalSheets=Un,this.styleSheets=[]}return StyleSheets.prototype.load=function(){return __awaiter(this,void 0,void 0,(function(){var Tn;return __generator(this,(function(Un){switch(Un.label){case 0:return[4,this.collectStyleSheetTexts()];case 1:return Tn=Un.sent(),this.parseCssSheets(Tn),[2]}}))}))},StyleSheets.prototype.collectStyleSheetTexts=function(){return __awaiter(this,void 0,void 0,(function(){var Tn,Un,Dn,Qn,Hn;return __generator(this,(function(Gn){switch(Gn.label){case 0:if(Tn=[],this.loadExternalSheets&&this.rootSvg.ownerDocument)for(Qn=0;Qn<this.rootSvg.ownerDocument.childNodes.length;Qn++)"xml-stylesheet"===(Un=this.rootSvg.ownerDocument.childNodes[Qn]).nodeName&&"string"==typeof Un.data&&Tn.push(StyleSheets.loadSheet(Un.data.match(/href=["'].*?["']/)[0].split("=")[1].slice(1,-1)));for(Dn=this.rootSvg.querySelectorAll("style,link"),Qn=0;Qn<Dn.length;Qn++)nodeIs(Hn=Dn[Qn],"style")?Tn.push(Hn.textContent):this.loadExternalSheets&&nodeIs(Hn,"link")&&"stylesheet"===Hn.getAttribute("rel")&&Hn.hasAttribute("href")&&Tn.push(StyleSheets.loadSheet(Hn.getAttribute("href")));return[4,Promise.all(Tn)];case 1:return[2,Gn.sent().filter((function(Tn){return null!==Tn}))]}}))}))},StyleSheets.prototype.parseCssSheets=function(Tn){for(var Un=document.implementation.createHTMLDocument(""),Dn=0,Qn=Tn;Dn<Qn.length;Dn++){var Hn=Qn[Dn],Gn=Un.createElement("style");Gn.textContent=Hn,Un.body.appendChild(Gn);var Vn=Gn.sheet;if(Vn instanceof CSSStyleSheet){for(var zn=Vn.cssRules.length-1;zn>=0;zn--){var Kn=Vn.cssRules[zn];Kn instanceof CSSStyleRule||Vn.deleteRule(zn);var $n=Kn;if($n.selectorText.indexOf(",")>=0){Vn.deleteRule(zn);for(var Wn=$n.cssText.substring($n.selectorText.length),Xn=StyleSheets.splitSelectorAtCommas($n.selectorText),Yn=0;Yn<Xn.length;Yn++)Vn.insertRule(Xn[Yn]+Wn,zn+Yn)}}this.styleSheets.push(Vn)}}},StyleSheets.splitSelectorAtCommas=function(Tn){for(var Un,Dn=/,|["']/g,Qn=/[^\\]["]/g,Hn=/[^\\][']/g,Gn=[],Vn="initial",zn=-1,Kn=Qn,$n=0;$n<Tn.length;)switch(Vn){case"initial":Dn.lastIndex=$n,(Un=Dn.exec(Tn))?(","===Un[0]?(Gn.push(Tn.substring(zn+1,Dn.lastIndex-1).trim()),zn=Dn.lastIndex-1):(Vn="withinQuotes",Kn='"'===Un[0]?Qn:Hn),$n=Dn.lastIndex):(Gn.push(Tn.substring(zn+1).trim()),$n=Tn.length);break;case"withinQuotes":Kn.lastIndex=$n,(Un=Kn.exec(Tn))&&($n=Kn.lastIndex,Vn="initial")}return Gn},StyleSheets.loadSheet=function(Tn){return new Promise((function(Un,Dn){var Qn=new XMLHttpRequest;Qn.open("GET",Tn,!0),Qn.responseType="text",Qn.onload=function(){200!==Qn.status&&Dn(new Error("Error "+Qn.status+": Failed to load '"+Tn+"'")),Un(Qn.responseText)},Qn.onerror=Dn,Qn.onabort=Dn,Qn.send(null)})).catch((function(){return null}))},StyleSheets.prototype.getPropertyValue=function(Tn,Un){for(var Dn=[],Qn=0,Hn=this.styleSheets;Qn<Hn.length;Qn++)for(var Gn=Hn[Qn],Vn=0;Vn<Gn.cssRules.length;Vn++){var zn=Gn.cssRules[Vn];zn.style.getPropertyValue(Un)&&Tn.matches(zn.selectorText)&&Dn.push(zn)}if(0!==Dn.length){var Kn=function compare$1(Tn,Dn){var Qn=Tn.style.getPropertyPriority(Un);return Qn!==Dn.style.getPropertyPriority(Un)?"important"===Qn?1:-1:function compare(Tn,Un){var Dn,Qn,Hn;if("string"==typeof Tn){if(-1!==Tn.indexOf(","))throw"Invalid CSS selector";Dn=OM(Tn).specificityArray}else{if(!Array.isArray(Tn))throw"Invalid CSS selector or specificity array";if(4!==Tn.filter((function(Tn){return"number"==typeof Tn})).length)throw"Invalid specificity array";Dn=Tn}if("string"==typeof Un){if(-1!==Un.indexOf(","))throw"Invalid CSS selector";Qn=OM(Un).specificityArray}else{if(!Array.isArray(Un))throw"Invalid CSS selector or specificity array";if(4!==Un.filter((function(Tn){return"number"==typeof Tn})).length)throw"Invalid specificity array";Qn=Un}for(Hn=0;Hn<4;Hn+=1){if(Dn[Hn]<Qn[Hn])return-1;if(Dn[Hn]>Qn[Hn])return 1}return 0}(Tn.selectorText,Dn.selectorText)};return Dn.reduce((function(Tn,Un){return 1===Kn(Tn,Un)?Tn:Un})).style.getPropertyValue(Un)||void 0}},StyleSheets}();g.API.svg=function(Tn,Un){return void 0===Un&&(Un={}),function svg2pdf(Tn,Un,Dn){var Qn,Hn,Gn;return void 0===Dn&&(Dn={}),__awaiter(this,void 0,void 0,(function(){var Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er;return __generator(this,(function(tr){switch(tr.label){case 0:return Vn=null!==(Qn=Dn.x)&&void 0!==Qn?Qn:0,zn=null!==(Hn=Dn.y)&&void 0!==Hn?Hn:0,Kn=null!==(Gn=Dn.loadExternalStyleSheets)&&void 0!==Gn&&Gn,Wn=new VM($n={}),[4,(Xn=new IR(Tn,Kn)).load()];case 1:return tr.sent(),Yn=new pR(Un.internal.pageSize.getWidth(),Un.internal.pageSize.getHeight()),Jn=UM(UM({},Dn),{element:Tn}),Zn=new GM(Un,{refsHandler:Wn,styleSheets:Xn,viewport:Yn,svg2pdfParameters:Jn}),Un.advancedAPI(),Un.saveGraphicsState(),Un.setCurrentTransformationMatrix(Un.Matrix(1,0,0,1,Vn,zn)),Un.setLineWidth(Zn.attributeState.strokeWidth),er=Zn.attributeState.fill.color,Un.setFillColor(er.r,er.g,er.b),Un.setFont(Zn.attributeState.fontFamily),Un.setFontSize(Zn.attributeState.fontSize*Un.internal.scaleFactor),[4,parse$1(Tn,$n).render(Zn)];case 2:return tr.sent(),Un.restoreGraphicsState(),Un.compatAPI(),Zn.textMeasure.cleanupTextMeasuring(),[2,Un]}}))}))}(Tn,this,Un)};var OR=WT,FR=XT,UR=YT,MR=JT,RR=jQueryPluginSVG(jQuery),DR=null,jR=function svgCanvasToString(){for(;DR.getCanvas().removeUnusedDefElems()>0;);DR.getCanvas().pathActions.clear(!0),RR.each(DR.getSVGContent().childNodes,(function(Tn,Un){Tn&&8===Un.nodeType&&Un.data.includes("Created with")&&DR.getSVGContent().firstChild.before(Un)})),DR.getCurrentGroup()&&(vI(),DR.getCanvas().selectOnly([DR.getCurrentGroup()]));var Tn=[];RR(DR.getSVGContent()).find("g:data(gsvg)").each((function(){for(var Un=this.attributes,Dn=Un.length,Qn=0;Qn<Dn;Qn++)"id"!==Un[Qn].nodeName&&"style"!==Un[Qn].nodeName||Dn--;if(Dn<=0){var Hn=this.firstChild;Tn.push(Hn),RR(this).replaceWith(Hn)}}));var Un=this.svgToString(DR.getSVGContent(),0);return Tn.length&&RR(Tn).each((function(){DR.getCanvas().groupSvgElem(this)})),Un},QR=function svgToString(Tn,Un){var Dn=DR.getCurConfig(),Qn=DR.getNsMap(),Hn=[],Gn=Dn.baseUnit,Vn=new RegExp("^-?[\\d\\.]+"+Gn+"$");if(Tn){HT(Tn);var zn=_toConsumableArray(Tn.attributes),Kn=Tn.childNodes;zn.sort((function(Tn,Un){return Tn.name>Un.name?-1:1}));for(var $n=0;$n<Un;$n++)Hn.push(" ");if(Hn.push("<"),Hn.push(Tn.nodeName),"svgcontent"===Tn.id){var Wn=DR.getCanvas().getResolution();"px"!==Gn&&(Wn.w=sA(Wn.w,Gn)+Gn,Wn.h=sA(Wn.h,Gn)+Gn),Hn.push(' width="'+Wn.w+'" height="'+Wn.h+'" xmlns="'+Zf.SVG+'"');var Xn={};RR(Tn).find("*").andSelf().each((function(){var Tn=this.namespaceURI;Tn&&!Xn[Tn]&&Qn[Tn]&&"xmlns"!==Qn[Tn]&&"xml"!==Qn[Tn]&&(Xn[Tn]=!0,Hn.push(" xmlns:"+Qn[Tn]+'="'+Tn+'"')),RR.each(this.attributes,(function(Tn,Un){var Dn=Un.namespaceURI;Dn&&!Xn[Dn]&&"xmlns"!==Qn[Dn]&&"xml"!==Qn[Dn]&&(Xn[Dn]=!0,Hn.push(" xmlns:"+Qn[Dn]+'="'+Dn+'"'))}))}));for(var Yn=zn.length,Jn=["width","height","xmlns","x","y","viewBox","id","overflow"];Yn--;){var Zn=zn[Yn],er=AT(Zn.value);Zn.nodeName.startsWith("xmlns:")||(""===er||Jn.includes(Zn.localName)||Zn.namespaceURI&&!Qn[Zn.namespaceURI]||(Hn.push(" "),Hn.push(Zn.nodeName),Hn.push('="'),Hn.push(er),Hn.push('"')))}}else{if("defs"===Tn.nodeName&&!Tn.firstChild)return"";for(var tr=["-moz-math-font-style","_moz-math-font-style"],nr=zn.length-1;nr>=0;nr--){var rr=zn[nr],ir=AT(rr.value);if(!tr.includes(rr.localName)){if("null"===ir){var or=rr.localName.replace(/-[a-z]/g,(function(Tn){return Tn[1].toUpperCase()}));if(Object.prototype.hasOwnProperty.call(Tn.style,or))continue}if(""!==ir){if(ir.startsWith("pointer-events"))continue;if("class"===rr.localName&&ir.startsWith("se_"))continue;if(Hn.push(" "),"d"===rr.localName&&(ir=DR.getCanvas().pathActions.convertPath(Tn,!0)),isNaN(ir)?Vn.test(ir)&&(ir=aA(ir)+Gn):ir=aA(ir),DR.getSvgOptionApply()&&"image"===Tn.nodeName&&"href"===rr.localName&&DR.getSvgOptionImages()&&"embed"===DR.getSvgOptionImages()){var ar=DR.getEncodableImages(ir);ar&&(ir=ar)}rr.namespaceURI&&rr.namespaceURI!==Zf.SVG&&!Qn[rr.namespaceURI]||(Hn.push(rr.nodeName),Hn.push('="'),Hn.push(ir),Hn.push('"'))}}}}if(Tn.hasChildNodes()){Hn.push(">"),Un++;for(var sr=!1,lr=0;lr<Kn.length;lr++){var cr=Kn.item(lr);switch(cr.nodeType){case 1:Hn.push("\n"),Hn.push(this.svgToString(cr,Un));break;case 3:var ur=cr.nodeValue.replace(/^\s+|\s+$/g,"");""!==ur&&(sr=!0,Hn.push(String(AT(ur))));break;case 4:Hn.push("\n"),Hn.push(new Array(Un+1).join(" ")),Hn.push("<![CDATA["),Hn.push(cr.nodeValue),Hn.push("]]>");break;case 8:Hn.push("\n"),Hn.push(new Array(Un+1).join(" ")),Hn.push("\x3c!--"),Hn.push(cr.data),Hn.push("--\x3e")}}if(Un--,!sr){Hn.push("\n");for(var dr=0;dr<Un;dr++)Hn.push(" ")}Hn.push("</"),Hn.push(Tn.nodeName),Hn.push(">")}else Hn.push("/>")}return Hn.join("")},HR=function setSvgString(Tn,Un){var Dn=DR.getCurConfig();try{var Qn=bT(Tn);if(Qn.firstElementChild&&Qn.firstElementChild.namespaceURI!==Zf.SVG)return!1;this.prepareSvg(Qn);var Hn=new MR("Change Source"),Gn=DR.getSVGContent().nextSibling;DR.getSVGContent().remove();var Vn=DR.getSVGContent();Hn.addSubCommand(new FR(Vn,Gn,DR.getSVGRoot())),DR.getDOMDocument().adoptNode?DR.setSVGContent(DR.getDOMDocument().adoptNode(Qn.documentElement)):DR.setSVGContent(DR.getDOMDocument().importNode(Qn.documentElement,!0)),DR.getSVGRoot().append(DR.getSVGContent());var zn=RR(DR.getSVGContent());DR.getCanvas().current_drawing_=new oI(DR.getSVGContent(),DR.getIdPrefix());var Kn=DR.getCanvas().getCurrentDrawing().getNonce();Kn?DR.call("setnonce",Kn):DR.call("unsetnonce"),zn.find("image").each((function(){var Tn=this;VT(Tn);var Un=DR.getCanvas().getHref(this);if(Un){if(Un.startsWith("data:")){var Dn=Un.match(/svgedit_url=(.*?);/);if(Dn){var Qn=decodeURIComponent(Dn[1]);RR(new Image).load((function(){Tn.setAttributeNS(Zf.XLINK,"xlink:href",Qn)})).attr("src",Qn)}}DR.getCanvas().embedImage(Un)}})),zn.find("svg").each((function(){if(!RR(this).closest("defs").length){DR.getCanvas().uniquifyElems(this);var Tn=this.parentNode;1===Tn.childNodes.length&&"g"===Tn.nodeName?(RR(Tn).data("gsvg",this),Tn.id=Tn.id||DR.getCanvas().getNextId()):DR.getCanvas().groupSvgElem(this)}})),YA()&&zn.find("linearGradient, radialGradient, pattern").appendTo(kT()),DR.getCanvas().setUseData(zn),DR.getCanvas().convertGradients(zn[0]);var $n={id:"svgcontent",overflow:Dn.show_outside_canvas?"visible":"hidden"},Wn=!1;if(zn.attr("viewBox")){var Xn=zn.attr("viewBox").split(" ");$n.width=Xn[2],$n.height=Xn[3]}else RR.each(["width","height"],(function(Tn,Un){var Dn=zn.attr(Un)||"100%";"%"===String(Dn).substr(-1)?Wn=!0:$n[Un]=cA(Un,Dn)}));if(sI(),zn.children().find(DR.getVisElems()).each((function(){this.id||(this.id=DR.getCanvas().getNextId())})),Wn){var Yn=UT();$n.width=Yn.width+Yn.x,$n.height=Yn.height+Yn.y}$n.width<=0&&($n.width=100),$n.height<=0&&($n.height=100),zn.attr($n),this.contentW=$n.width,this.contentH=$n.height,Hn.addSubCommand(new OR(DR.getSVGContent()));var Jn=zn.attr(["width","height"]);Hn.addSubCommand(new UR(DR.getSVGRoot(),Jn)),DR.setCurrentZoom(1),function resetListMap(){TE={}}(),DR.getCanvas().clearSelection(),function clearData(){IN={}}(),DR.getSVGRoot().append(DR.getCanvas().selectorManager.selectorParentGroup),Un||DR.addCommandToHistory(Hn),DR.call("changed",[DR.getSVGContent()])}catch(Tn){return console.log(Tn),!1}return!0},GR=function importSvgString(Tn){var Un,Dn,Qn;try{var Hn=encode64(Tn.length+Tn).substr(0,32),Gn=!1;DR.getImportIds(Hn)&&RR(DR.getImportIds(Hn).symbol).parents("#svgroot").length&&(Gn=!0);var Vn,zn=new MR("Import Image");if(Gn){Vn=DR.getImportIds().symbol,Dn=DR.getImportIds(Hn).xform}else{var Kn=bT(Tn);this.prepareSvg(Kn);var $n=DR.getDOMDocument().adoptNode?DR.getDOMDocument().adoptNode(Kn.documentElement):DR.getDOMDocument().importNode(Kn.documentElement,!0);DR.getCanvas().uniquifyElems($n);var Wn=cA("width",$n.getAttribute("width")),Xn=cA("height",$n.getAttribute("height")),Yn=$n.getAttribute("viewBox"),Jn=Yn?Yn.split(" "):[0,0,Wn,Xn];for(Un=0;Un<4;++Un)Jn[Un]=Number(Jn[Un]);var Zn=Number(DR.getSVGContent().getAttribute("height"));Dn="translate(0) "+(Dn=Xn>Wn?"scale("+Zn/3/Jn[3]+")":"scale("+Zn/3/Jn[2]+")")+" translate(0)",Vn=DR.getDOMDocument().createElementNS(Zf.SVG,"symbol");var er=kT();for(YA()&&RR($n).find("linearGradient, radialGradient, pattern").appendTo(er);$n.firstChild;){var tr=$n.firstChild;Vn.append(tr)}var nr,rr=_createForOfIteratorHelper($n.attributes);try{for(rr.s();!(nr=rr.n()).done;){var ir=nr.value;Vn.setAttribute(ir.nodeName,ir.value)}}catch(Tn){rr.e(Tn)}finally{rr.f()}Vn.id=DR.getCanvas().getNextId(),DR.setImportIds(Hn,{symbol:Vn,xform:Dn}),kT().append(Vn),zn.addSubCommand(new OR(Vn))}(Qn=DR.getDOMDocument().createElementNS(Zf.SVG,"use")).id=DR.getCanvas().getNextId(),DR.getCanvas().setHref(Qn,"#"+Vn.id),(DR.getCurrentGroup()||DR.getCanvas().getCurrentDrawing().getCurrentLayer()).append(Qn),zn.addSubCommand(new OR(Qn)),DR.getCanvas().clearSelection(),Qn.setAttribute("transform",Dn),YO(Qn),RR(Qn).data("symbol",Vn).data("ref",Vn),DR.getCanvas().addToSelection([Qn]),DR.addCommandToHistory(zn),DR.call("changed",[DR.getSVGContent()])}catch(Tn){return console.log(Tn),null}return Qn},VR=function embedImage(Tn){return new Promise((function(Un,Dn){RR(new Image).load((function(Qn,Hn,Gn){if("error"!==Hn){var Vn=document.createElement("canvas");Vn.width=this.width,Vn.height=this.height,Vn.getContext("2d").drawImage(this,0,0);try{var zn=";svgedit_url="+encodeURIComponent(Tn);zn=Vn.toDataURL().replace(";base64",zn+";base64"),DR.setEncodableImages(Tn,zn)}catch(Un){DR.setEncodableImages(Tn,!1)}DR.getCanvas().setGoodImage(Tn),Un(DR.getEncodableImages(Tn))}else Dn(new Error("Error loading image: "+Gn.status+" "+Gn.statusText))})).attr("src",Tn)}))},zR=function save(Tn){DR.getCanvas().clearSelection(),Tn&&RR.extend(DR.getSvgOption(),Tn),DR.setSvgOption("apply",!0);var Un=DR.getCanvas().svgCanvasToString();DR.call("saved",Un)};function getIssues(){var Tn=DR.getUIStrings();DR.getCanvas().clearSelection();var Un=[],Dn=[],Qn={feGaussianBlur:Tn.exportNoBlur,foreignObject:Tn.exportNoforeignObject,"[stroke-dasharray]":Tn.exportNoDashArray},Hn=RR(DR.getSVGContent());return"font"in RR("<canvas>")[0].getContext("2d")||(Qn.text=Tn.exportNoText),RR.each(Qn,(function(Tn,Qn){Hn.find(Tn).length&&(Dn.push(Tn),Un.push(Qn))})),{issues:Un,issueCodes:Dn}}var KR,qR,$R,WR=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn,Un,Dn){var Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn=arguments;return regeneratorRuntime.wrap((function _callee$(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:return Qn=Yn.length>3&&void 0!==Yn[3]?Yn[3]:{},Gn="image/"+(Hn="ICO"===Tn?"BMP":Tn||"PNG").toLowerCase(),Vn=getIssues(),zn=Vn.issues,Kn=Vn.issueCodes,$n=this.svgCanvasToString(),RR("#export_canvas").length||RR("<canvas>",{id:"export_canvas"}).hide().appendTo("body"),(Wn=RR("#export_canvas")[0]).width=DR.getCanvas().contentW,Wn.height=DR.getCanvas().contentH,Xn=DR.getcanvg(),Jn.next=12,Xn(Wn,$n);case 12:return Jn.abrupt("return",new Promise((function(Vn,Xn){var Yn,Jn=Hn.toLowerCase(),Zn=Un?Wn.toDataURL("image/"+Jn,Un):Wn.toDataURL("image/"+Jn);function done(){var Hn={datauri:Zn,bloburl:Yn,svg:$n,issues:zn,issueCodes:Kn,type:Tn,mimeType:Gn,quality:Un,exportWindowName:Dn};Qn.avoidEvent||DR.call("exported",Hn),Vn(Hn)}Wn.toBlob?Wn.toBlob((function(Tn){Yn=yT(Tn),done()}),Gn,Un):(Yn=vT(Zn),done())})));case 13:case"end":return Jn.stop()}}),_callee,this)})));return function rasterExport(Un,Dn,Qn){return Tn.apply(this,arguments)}}(),XR=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn=arguments;return regeneratorRuntime.wrap((function _callee2$(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Un=Wn.length>1&&void 0!==Wn[1]?Wn[1]:JA()?"save":void 0,Dn=DR.getCanvas().getResolution(),Qn=Dn.w>Dn.h?"landscape":"portrait",Hn=g({orientation:Qn,unit:"pt",format:[Dn.w,Dn.h]}),Gn=DR.getCanvas().getDocumentTitle(),Hn.setProperties({title:Gn}),Vn=getIssues(),zn=Vn.issues,Kn=Vn.issueCodes,Xn.next=10,Hn.svg(DR.getSVGContent(),{x:0,y:0,width:Dn.w,height:Dn.h});case 10:return($n={issues:zn,issueCodes:Kn,exportWindowName:Tn,outputType:Un=Un||"dataurlstring"}).output=Hn.output(Un,"save"===Un?Tn||"svg.pdf":void 0),DR.call("exportedPDF",$n),Xn.abrupt("return",$n);case 15:case"end":return Xn.stop()}}),_callee2)})));return function exportPDF(Un){return Tn.apply(this,arguments)}}(),YR=function uniquifyElemsMethod(Tn){var Un={},Dn=["filter","linearGradient","pattern","radialGradient","symbol","textPath","use"];for(var Qn in wT(Tn,(function(Tn){if(1===Tn.nodeType){Tn.id&&(Tn.id in Un||(Un[Tn.id]={elem:null,attrs:[],hrefs:[]}),Un[Tn.id].elem=Tn),RR.each(DR.getrefAttrs(),(function(Dn,Qn){var Hn=Tn.getAttributeNode(Qn);if(Hn){var Gn=DR.getCanvas().getUrlFromAttr(Hn.value),Vn=Gn?Gn.substr(1):null;Vn&&(Vn in Un||(Un[Vn]={elem:null,attrs:[],hrefs:[]}),Un[Vn].attrs.push(Hn))}}));var Qn=DR.getCanvas().getHref(Tn);if(Qn&&Dn.includes(Tn.nodeName)){var Hn=Qn.substr(1);Hn&&(Hn in Un||(Un[Hn]={elem:null,attrs:[],hrefs:[]}),Un[Hn].hrefs.push(Tn))}}})),Un)if(Qn){var Hn=Un[Qn].elem;if(Hn){var Gn=DR.getCanvas().getNextId();Hn.id=Gn;for(var Vn=Un[Qn].attrs,zn=Vn.length;zn--;){var Kn=Vn[zn];Kn.ownerElement.setAttribute(Kn.name,"url(#"+Gn+")")}for(var $n=Un[Qn].hrefs,Wn=$n.length;Wn--;){var Xn=$n[Wn];DR.getCanvas().setHref(Xn,"#"+Gn)}}}},JR=function setUseDataMethod(Tn){var Un=RR(Tn);"use"!==Tn.tagName&&(Un=Un.find("use")),Un.each((function(){var Tn=DR.getCanvas().getHref(this).substr(1),Un=DR.getCanvas().getElem(Tn);Un&&(RR(this).data("ref",Un),"symbol"!==Un.tagName&&"svg"!==Un.tagName||RR(this).data("symbol",Un).data("ref",Un))}))},ZR=function removeUnusedDefElemsMethod(){var Tn=DR.getSVGContent().getElementsByTagNameNS(Zf.SVG,"defs");if(!Tn||!Tn.length)return 0;var Un,Dn,Qn=[],Hn=0,Gn=["fill","stroke","filter","marker-start","marker-mid","marker-end"],Vn=Gn.length,zn=DR.getSVGContent().getElementsByTagNameNS(Zf.SVG,"*"),Kn=zn.length;for(Un=0;Un<Kn;Un++){var $n=zn[Un];for(Dn=0;Dn<Vn;Dn++){var Wn=DR.getCanvas().getUrlFromAttr($n.getAttribute(Gn[Dn]));Wn&&Qn.push(Wn.substr(1))}var Xn=ST($n);Xn&&Xn.startsWith("#")&&Qn.push(Xn.substr(1))}var Yn=RR(Tn).find("linearGradient, radialGradient, filter, marker, svg, symbol");for(Un=Yn.length;Un--;){var Jn=Yn[Un],Zn=Jn.id;Qn.includes(Zn)||(DR.setRemovedElements(Zn,Jn),Jn.remove(),Hn++)}return Hn},eD=function convertGradientsMethod(Tn){var Un=RR(Tn).find("linearGradient, radialGradient");!Un.length&&XA()&&(Un=RR(Tn).find("*").filter((function(){return this.tagName.includes("Gradient")}))),Un.each((function(){var Tn=this;if("userSpaceOnUse"===RR(Tn).attr("gradientUnits")){var Un=DR.getSVGContent(),Dn=RR(Un).find('[fill="url(#'+Tn.id+')"],[stroke="url(#'+Tn.id+')"]');if(!Dn.length)return;var Qn=ET(Dn[0]);if(!Qn)return;if("linearGradient"===Tn.tagName){var Hn=RR(Tn).attr(["x1","y1","x2","y2"]),Gn=Tn.gradientTransform.baseVal;if(Gn&&Gn.numberOfItems>0){var Vn=zE(Gn).matrix,zn=jE(Hn.x1,Hn.y1,Vn),Kn=jE(Hn.x2,Hn.y2,Vn);Hn.x1=zn.x,Hn.y1=zn.y,Hn.x2=Kn.x,Hn.y2=Kn.y,Tn.removeAttribute("gradientTransform")}RR(Tn).attr({x1:(Hn.x1-Qn.x)/Qn.width,y1:(Hn.y1-Qn.y)/Qn.height,x2:(Hn.x2-Qn.x)/Qn.width,y2:(Hn.y2-Qn.y)/Qn.height}),Tn.removeAttribute("gradientUnits")}}}))},tD=jQuery,nD=function isTouch(){return jA}()?10:4,rD=function(){function Selector(Tn,Un,Dn){_classCallCheck(this,Selector),this.id=Tn,this.selectedElement=Un,this.locked=!0,this.selectorGroup=KR.createSVGElement({element:"g",attr:{id:"selectorGroup"+this.id}}),this.selectorRect=this.selectorGroup.appendChild(KR.createSVGElement({element:"path",attr:{id:"selectedBox"+this.id,fill:"none",stroke:"#22C","stroke-width":"1","stroke-dasharray":"5,5",style:"pointer-events:none"}})),this.gripCoords={nw:null,n:null,ne:null,e:null,se:null,s:null,sw:null,w:null},this.reset(this.selectedElement,Dn)}return _createClass(Selector,[{key:"reset",value:function reset(Tn,Un){this.locked=!0,this.selectedElement=Tn,this.resize(Un),this.selectorGroup.setAttribute("display","inline")}},{key:"showGrips",value:function showGrips(Tn){var Un=Tn?"inline":"none";$R.selectorGripsGroup.setAttribute("display",Un);var Dn=this.selectedElement;this.hasGrips=Tn,Dn&&Tn&&(this.selectorGroup.append($R.selectorGripsGroup),Selector.updateGripCursors(RT(Dn)))}},{key:"resize",value:function resize(Tn){var Un=this.selectorRect,Dn=$R,Qn=Dn.selectorGrips,Hn=this.selectedElement,Gn=Hn.getAttribute("stroke-width"),Vn=KR.getCurrentZoom(),zn=1/Vn;"none"===Hn.getAttribute("stroke")||isNaN(Gn)||(zn+=Gn/2);var Kn=Hn.tagName;"text"===Kn&&(zn+=2/Vn);var $n=OE(Hn),Wn=zE($n).matrix;if(Wn.e*=Vn,Wn.f*=Vn,Tn||(Tn=ET(Hn)),"g"===Kn&&!tD.data(Hn,"gsvg")){var Xn=OT([Hn.childNodes]);Xn&&(Tn=Xn)}var Yn=Tn.x,Jn=Tn.y,Zn=Tn.width,er=Tn.height;zn*=Vn;var tr=VE(Yn*Vn,Jn*Vn,Zn*Vn,er*Vn,Wn),nr=tr.aabox,rr=nr.x-zn,ir=nr.y-zn,or=nr.width+2*zn,ar=nr.height+2*zn,sr=rr+or/2,lr=ir+ar/2,cr=RT(Hn);if(cr){var ur=KR.svgRoot().createSVGTransform();ur.setRotate(-cr,sr,lr);var dr=ur.matrix;tr.tl=jE(tr.tl.x,tr.tl.y,dr),tr.tr=jE(tr.tr.x,tr.tr.y,dr),tr.bl=jE(tr.bl.x,tr.bl.y,dr),tr.br=jE(tr.br.x,tr.br.y,dr);var hr=tr.tl,pr=hr.x,gr=hr.y,fr=hr.x,Ar=hr.y,mr=Math.min,vr=Math.max;rr=pr=mr(pr,mr(tr.tr.x,mr(tr.bl.x,tr.br.x)))-zn,ir=gr=mr(gr,mr(tr.tr.y,mr(tr.bl.y,tr.br.y)))-zn,or=(fr=vr(fr,vr(tr.tr.x,vr(tr.bl.x,tr.br.x)))+zn)-pr,ar=(Ar=vr(Ar,vr(tr.tr.y,vr(tr.bl.y,tr.br.y)))+zn)-gr}var yr="M"+rr+","+ir+" L"+(rr+or)+","+ir+" "+(rr+or)+","+(ir+ar)+" "+rr+","+(ir+ar)+"z";Un.setAttribute("d",yr);var _r=cr?"rotate("+[cr,sr,lr].join(",")+")":"";this.selectorGroup.setAttribute("transform",_r),this.gripCoords={nw:[rr,ir],ne:[rr+or,ir],sw:[rr,ir+ar],se:[rr+or,ir+ar],n:[rr+or/2,ir],w:[rr,ir+ar/2],e:[rr+or,ir+ar/2],s:[rr+or/2,ir+ar]},Object.entries(this.gripCoords).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Dn=Un[0],Hn=Un[1];Qn[Dn].setAttribute("cx",Hn[0]),Qn[Dn].setAttribute("cy",Hn[1])})),Dn.rotateGripConnector.setAttribute("x1",rr+or/2),Dn.rotateGripConnector.setAttribute("y1",ir),Dn.rotateGripConnector.setAttribute("x2",rr+or/2),Dn.rotateGripConnector.setAttribute("y2",ir-5*nD),Dn.rotateGrip.setAttribute("cx",rr+or/2),Dn.rotateGrip.setAttribute("cy",ir-5*nD)}}],[{key:"updateGripCursors",value:function updateGripCursors(Tn){var Un=Object.keys($R.selectorGrips),Dn=Math.round(Tn/45);for(Dn<0&&(Dn+=8);Dn>0;)Un.push(Un.shift()),Dn--;Object.values($R.selectorGrips).forEach((function(Tn,Dn){Tn.setAttribute("style","cursor:"+Un[Dn]+"-resize")}))}}]),Selector}(),iD=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 Tn=this;if(this.selectorParentGroup&&this.selectorParentGroup.parentNode&&this.selectorParentGroup.remove(),this.selectorParentGroup=KR.createSVGElement({element:"g",attr:{id:"selectorParentGroup"}}),this.selectorGripsGroup=KR.createSVGElement({element:"g",attr:{display:"none"}}),this.selectorParentGroup.append(this.selectorGripsGroup),KR.svgRoot().append(this.selectorParentGroup),this.selectorMap={},this.selectors=[],this.rubberBandBox=null,Object.keys(this.selectorGrips).forEach((function(Un){var Dn=KR.createSVGElement({element:"circle",attr:{id:"selectorGrip_resize_"+Un,fill:"#22C",r:nD,style:"cursor:"+Un+"-resize","stroke-width":2,"pointer-events":"all"}});tD.data(Dn,"dir",Un),tD.data(Dn,"type","resize"),Tn.selectorGrips[Un]=Tn.selectorGripsGroup.appendChild(Dn)})),this.rotateGripConnector=this.selectorGripsGroup.appendChild(KR.createSVGElement({element:"line",attr:{id:"selectorGrip_rotateconnector",stroke:"#22C","stroke-width":"1"}})),this.rotateGrip=this.selectorGripsGroup.appendChild(KR.createSVGElement({element:"circle",attr:{id:"selectorGrip_rotate",fill:"lime",r:nD,stroke:"#22C","stroke-width":2,style:"cursor:url("+qR.imgPath+"rotate.svg) 12 12, auto;"}})),tD.data(this.rotateGrip,"type","rotate"),!tD("#canvasBackground").length){var Un=_slicedToArray(qR.dimensions,2),Dn=Un[0],Qn=Un[1],Hn=KR.createSVGElement({element:"svg",attr:{id:"canvasBackground",width:Dn,height:Qn,x:0,y:0,overflow:XA()?"none":"visible",style:"pointer-events:none"}}),Gn=KR.createSVGElement({element:"rect",attr:{width:"100%",height:"100%",x:0,y:0,"stroke-width":1,stroke:"#000",fill:"#FFF",style:"pointer-events:none"}});Hn.append(Gn),KR.svgRoot().insertBefore(Hn,KR.svgContent())}}},{key:"requestSelector",value:function requestSelector(Tn,Un){if(zT(Tn))return null;var Dn=this.selectors.length;if("object"===_typeof(this.selectorMap[Tn.id]))return this.selectorMap[Tn.id].locked=!0,this.selectorMap[Tn.id];for(var Qn=0;Qn<Dn;++Qn)if(this.selectors[Qn]&&!this.selectors[Qn].locked)return this.selectors[Qn].locked=!0,this.selectors[Qn].reset(Tn,Un),this.selectorMap[Tn.id]=this.selectors[Qn],this.selectors[Qn];return this.selectors[Dn]=new rD(Dn,Tn,Un),this.selectorParentGroup.append(this.selectors[Dn].selectorGroup),this.selectorMap[Tn.id]=this.selectors[Dn],this.selectors[Dn]}},{key:"releaseSelector",value:function releaseSelector(Tn){if(!zT(Tn)){var Un=this.selectors.length,Dn=this.selectorMap[Tn.id];Dn&&!Dn.locked&&console.log("WARNING! selector was released but was already unlocked");for(var Qn=0;Qn<Un;++Qn)if(this.selectors[Qn]&&this.selectors[Qn]===Dn){delete this.selectorMap[Tn.id],Dn.locked=!1,Dn.selectedElement=null,Dn.showGrips(!1);try{Dn.selectorGroup.setAttribute("display","none")}catch(Tn){}break}}}},{key:"getRubberBandBox",value:function getRubberBandBox(){return this.rubberBandBox||(this.rubberBandBox=this.selectorParentGroup.appendChild(KR.createSVGElement({element:"rect",attr:{id:"selectorRubberBand",fill:"#22C","fill-opacity":.15,stroke:"#22C","stroke-width":.5,display:"none",style:"pointer-events:none"}}))),this.rubberBandBox}}]),SelectorManager}(),oD=jQueryPluginSVG(jQuery),aD=null,sD=function clearSvgContentElementInit(){var Tn=aD.getCurConfig(),Un=Tn.dimensions;oD(aD.getSVGContent()).empty(),oD(aD.getSVGContent()).attr({id:"svgcontent",width:Un[0],height:Un[1],x:Un[0],y:Un[1],overflow:Tn.show_outside_canvas?"visible":"hidden",xmlns:Zf.SVG,"xmlns:se":Zf.SE,"xmlns:xlink":Zf.XLINK}).appendTo(aD.getSVGRoot());var Dn=aD.getDOMDocument().createComment(" Created with SVG-edit - https://github.com/SVG-Edit/svgedit");aD.getSVGContent().append(Dn)},lD=jQueryPluginSVG(jQuery),cD=$T,uD=WT,dD=XT,hD=YT,pD=JT,gD="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use",fD=["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"];window.console||(window.console={},window.console.log=function(Tn){},window.console.dir=function(Tn){}),window.opera&&(window.console.log=function(Tn){window.opera.postError(Tn)},window.console.dir=function(Tn){});var AD=function SvgCanvas(Tn,Un){_classCallCheck(this,SvgCanvas);var Dn={show_outside_canvas:!0,selectNew:!0,dimensions:[640,480]};Un&&lD.extend(Dn,Un);var Qn=Dn.dimensions,Hn=this;this.isLayer=qN.isLayer;var Gn=window.document,Vn=function svgRootElement(Tn,Un){return Tn.importNode(bT('<svg id="svgroot" xmlns="'.concat(Zf.SVG,'" xlinkns="').concat(Zf.XLINK,'" width="').concat(Un[0],'" \n height="').concat(Un[1],'" x="').concat(Un[0],'" y="').concat(Un[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)}(Gn,Qn),zn=function getSVGRoot(){return Vn};Tn.append(Vn);var Kn=Gn.createElementNS(Zf.SVG,"svg"),$n=function getSVGContent(){return Kn};!function init(Tn){aD=Tn}({getSVGContent:$n,getDOMDocument:function getDOMDocument(){return Gn},getDOMContainer:function getDOMContainer(){return Tn},getSVGRoot:zn,getCurConfig:function getCurConfig(){return Dn}}),(Hn.clearSvgContentElement=sD)();var Wn="svg_";Hn.setIdPrefix=function(Tn){Wn=Tn},Hn.current_drawing_=new oI(Kn,Wn);var Xn=Hn.getCurrentDrawing=function(){return Hn.current_drawing_},Yn=1,Jn=null,Zn={shape:{fill:("none"===Dn.initFill.color?"":"#")+Dn.initFill.color,fill_paint:null,fill_opacity:Dn.initFill.opacity,stroke:"#"+Dn.initStroke.color,stroke_paint:null,stroke_opacity:Dn.initStroke.opacity,stroke_width:Dn.initStroke.width,stroke_dasharray:"none",stroke_linejoin:"miter",stroke_linecap:"butt",opacity:Dn.initOpacity}};Zn.text=lD.extend(!0,{},Zn.shape),lD.extend(Zn.text,{fill:"#000000",stroke_width:Dn.text&&Dn.text.stroke_width,font_size:Dn.text&&Dn.text.font_size,font_family:Dn.text&&Dn.text.font_family});var er=Zn.shape,tr=[];!function init(Tn){tO=Tn,nO=Tn.getDOMDocument()}({getDOMDocument:function getDOMDocument(){return Gn},getDrawing:function getDrawing(){return Xn()},getCurShape:function getCurShape(){return er},getCurrentGroup:function getCurrentGroup(){return Jn}});var nr=this.getJsonFromSvgElement=rO,rr=this.addSVGElementFromJson=iO;Hn.getTransformList=OE,Hn.matrixMultiply=HE,Hn.hasMatrixTransform=GE,Hn.transformListToTransform=zE;var ir=function getBaseUnit(){return Dn.baseUnit};!function init(Tn){Jf=Tn;var Un=document.createElementNS(Zf.SVG,"svg");document.body.append(Un);var Dn=document.createElementNS(Zf.SVG,"rect");Dn.setAttribute("width","1em"),Dn.setAttribute("height","1ex"),Dn.setAttribute("x","1in"),Un.append(Dn);var Qn=Dn.getBBox();Un.remove();var Hn=Qn.x;iA={em:Qn.width,ex:Qn.height,in:Hn,cm:Hn/2.54,mm:Hn/25.4,pt:Hn/72,pc:Hn/6,px:1,"%":0}}({getBaseUnit:ir,getElement:jT,getHeight:function getHeight(){return Kn.getAttribute("height")/Yn},getWidth:function getWidth(){return Kn.getAttribute("width")/Yn},getRoundDigits:function getRoundDigits(){return kr.round_digits}}),Hn.convertToNum=cA;var or=this.getSelectedElems=function(){return tr};this.setSelectedElements=function(Tn,Un){tr[Tn]=Un},this.setEmptySelectedElements=function(){tr=[]};var ar=zN;!function init(Tn){dT=Tn,hT=Tn.getDOMDocument(),pT=Tn.getDOMContainer(),gT=Tn.getSVGRoot()}({pathActions:ar,getSVGContent:$n,addSVGElementFromJson:rr,getSelectedElements:or,getDOMDocument:function getDOMDocument(){return Gn},getDOMContainer:function getDOMContainer(){return Tn},getSVGRoot:zn,getBaseUnit:ir,getSnappingStep:function getSnappingStep(){return Dn.snappingStep}}),Hn.findDefs=kT,Hn.getUrlFromAttr=xT,Hn.getHref=ST,Hn.setHref=CT,Hn.getBBox=ET,Hn.getRotationAngle=RT,Hn.getElem=jT,Hn.getRefElem=DT,Hn.assignAttributes=QT,this.cleanupElement=HT;var sr=function getGridSnapping(){return Dn.gridSnapping};!function init(Tn){qO=Tn}({getDrawing:function getDrawing(){return Xn()},getSVGRoot:zn,getGridSnapping:sr}),this.remapElement=$O,function init(Tn){iI=Tn}({getSVGRoot:zn,getStartTransform:function getStartTransform(){return Ir},setStartTransform:function setStartTransform(Tn){Ir=Tn}}),this.recalculateDimensions=YO;var lr=eA();Hn.sanitizeSvg=PF;var cr=this.getZoom=function(){return Yn},ur=this.round=function(Tn){return Number.parseInt(Tn*Yn)/Yn};!function init(Tn,Un){qR=Tn,KR=Un,$R=new iD}(Dn,{createSVGElement:function createSVGElement(Tn){return Hn.addSVGElementFromJson(Tn)},svgRoot:function svgRoot(){return Vn},svgContent:function svgContent(){return Kn},getCurrentZoom:cr});var dr=this.selectorManager=function getSelectorManager(){return $R}(),hr=Hn.getNextId=function(){return Xn().getNextId()},pr=Hn.getId=function(){return Xn().getId()},gr=function call(Tn,Un){if(Hr[Tn])return Hr[Tn](window,Un)},fr=function restoreRefElems(Tn){var Un=lD(Tn).attr(fD);Object.values(Un).forEach((function(Tn){if(Tn&&Tn.startsWith("url(")){var Un=xT(Tn).substr(1);jT(Un)||(kT().append(Lr[Un]),delete Lr[Un])}}));var Dn=Tn.getElementsByTagName("*");if(Dn.length)for(var Qn=0,Hn=Dn.length;Qn<Hn;Qn++)restoreRefElems(Dn[Qn])};!function init(Tn){BI=Tn}({call:gr,restoreRefElems:fr,getSVGContent:$n,getCanvas:function getCanvas(){return Hn},getCurrentMode:function getCurrentMode(){return Or},getCurrentZoom:cr,getSVGRoot:zn,getSelectedElements:or});var Ar=Hn.undoMgr=function getUndoManager(){return new CI({handleHistoryEvent:function handleHistoryEvent(Tn,Un){var Dn=kI;if(Tn===Dn.BEFORE_UNAPPLY||Tn===Dn.BEFORE_APPLY)BI.getCanvas().clearSelection();else if(Tn===Dn.AFTER_APPLY||Tn===Dn.AFTER_UNAPPLY){var Qn=Un.elements();BI.getCanvas().pathActions.clear(),BI.call("changed",Qn);var Hn=Un.type(),Gn=Tn===Dn.AFTER_APPLY;if("MoveElementCommand"===Hn)(Gn?Un.newParent:Un.oldParent)===BI.getSVGContent()&&sI();else if("InsertElementCommand"===Hn||"RemoveElementCommand"===Hn)Un.parent===BI.getSVGContent()&&sI(),"InsertElementCommand"===Hn?Gn&&BI.restoreRefElems(Un.elem):Gn||BI.restoreRefElems(Un.elem),Un.elem&&"use"===Un.elem.tagName&&BI.getCanvas().setUseData(Un.elem);else if("ChangeElementCommand"===Hn){"title"===Un.elem.tagName&&Un.elem.parentNode.parentNode===BI.getSVGContent()&&sI();var Vn=Gn?Un.newValues:Un.oldValues;Vn.stdDeviation&&BI.getCanvas().setBlurOffsets(Un.elem.parentNode,Vn.stdDeviation)}}}})}(),mr=function addCommandToHistory(Tn){Hn.undoMgr.addCommandToHistory(Tn)};!function init(Tn){II=Tn}({getCanvas:function getCanvas(){return Hn},getCurrentGroup:function getCurrentGroup(){return Jn},getSelectedElements:or,getSVGRoot:zn,getSVGContent:$n,getDOMContainer:function getDOMContainer(){return Tn},getExtensions:function getExtensions(){return Pr},setExtensions:function setExtensions(Tn,Un){Pr[Tn]=Un},getCurrentZoom:cr,getRubberBox:function getRubberBox(){return Rr},setCurBBoxes:function setCurBBoxes(Tn){Dr=Tn},getCurBBoxes:function getCurBBoxes(Tn){return Dr},getCurrentResizeMode:function getCurrentResizeMode(){return Fr},addCommandToHistory:mr,getSelector:function getSelector(){return rD}});var vr=this.clearSelection=OI,yr=this.addToSelection=FI,_r=function getOpacity(){return er.opacity},br=this.getMouseTarget=UI;Hn.pathActions=ar,function init(Tn){FN=Tn,TN=[0,"ClosePath"],BN.each(["Moveto","Lineto","CurvetoCubic","CurvetoQuadratic","Arc","LinetoHorizontal","LinetoVertical","CurvetoCubicSmooth","CurvetoQuadraticSmooth"],(function(Tn,Un){TN.push(Un+"Abs"),TN.push(Un+"Rel")}))}({selectorManager:dr,canvas:Hn,call:gr,resetD:function resetD(Tn){"function"==typeof ar.convertPath?Tn.setAttribute("d",ar.convertPath(Tn)):"function"==typeof ar.convertPaths&&Tn.setAttribute("d",ar.convertPaths(Tn))},round:ur,clearSelection:vr,addToSelection:yr,addCommandToHistory:mr,remapElement:$O,addSVGElementFromJson:rr,getGridSnapping:sr,getOpacity:_r,getSelectedElements:or,getContainer:function getContainer(){return Tn},setStarted:function setStarted(Tn){Nr=Tn},getRubberBox:function getRubberBox(){return Rr},setRubberBox:function setRubberBox(Tn){return Rr=Tn},addPtsToSelection:function addPtsToSelection(Tn){var Un=Tn.closedSubpath,Dn=Tn.grips;ar.canDeleteNodes=!0,ar.closed_subpath=Un,gr("pointsAdded",{closedSubpath:Un,grips:Dn}),gr("selected",Dn)},endChanges:function endChanges(Tn){var Un=Tn.cmd,Dn=Tn.elem;mr(Un),gr("changed",[Dn])},getCurrentZoom:cr,getId:pr,getNextId:hr,getMouseTarget:br,getCurrentMode:function getCurrentMode(){return Or},setCurrentMode:function setCurrentMode(Tn){return Or=Tn},getDrawnPath:function getDrawnPath(){return Kr},setDrawnPath:function setDrawnPath(Tn){return Kr=Tn},getSVGRoot:zn});var wr={},xr=lD.data,Sr=document.createElementNS(Zf.SVG,"animate");lD(Sr).attr({attributeName:"opacity",begin:"indefinite",dur:1,fill:"freeze"}).appendTo(Vn);var Cr={},kr={round_digits:5},Br={},Er=Zn.text,Pr={},Lr={},Tr=Dn.imgPath+"logo.svg",Nr=!1,Ir=null,Or="select",Fr="none",Ur=er,Mr=null,Rr=null,Dr=[],jr=null;this.runExtension=function(Tn,Un,Dn){return this.runExtensions(Un,Dn,!1,(function(Un){return Un===Tn}))},this.runExtensions=MI,this.addExtension=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn,Un,Dn){var Qn,Gn,zn,$n;return regeneratorRuntime.wrap((function _callee$(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:if(Qn=Dn.$,Gn=Dn.importLocale,"function"==typeof Un){Wn.next=3;break}throw new TypeError("Function argument expected for `svgcanvas.addExtension`");case 3:if(!(Tn in Pr)){Wn.next=5;break}throw new Error('Cannot add extension "'+Tn+'", an extension by that name already exists.');case 5:return zn=lD.extend(Hn.getPrivateMethods(),{$:Qn,importLocale:Gn,svgroot:Vn,svgcontent:Kn,nonce:Xn().getNonce(),selectorManager:dr}),Wn.next=8,Un(zn);case 8:return($n=Wn.sent)&&($n.name=Tn),Pr[Tn]=$n,Wn.abrupt("return",gr("extension_added",$n));case 12:case"end":return Wn.stop()}}),_callee)})));return function(Un,Dn,Qn){return Tn.apply(this,arguments)}}();var Qr=this.getIntersectionList=RI;this.getStrokedBBox=UT,this.getVisibleElements=FT,this.groupSvgElem=DI;var Hr={};Hn.call=gr,Hn.bind=function(Tn,Un){var Dn=Hr[Tn];return Hr[Tn]=Un,Dn},this.prepareSvg=jI,this.setRotationAngle=QI,this.recalculateAllSelectedDimensions=HI;var Gr=function logMatrix(Tn){console.log([Tn.a,Tn.b,Tn.c,Tn.d,Tn.e,Tn.f])},Vr=null,zr=this.selectOnly=function(Tn,Un){vr(!0),yr(Tn,Un)};this.removeFromSelection=function(Tn){if(!zT(tr[0])&&Tn.length){for(var Un=[],Dn=tr.length,Qn=0;Qn<Dn;++Qn){var Hn=tr[Qn];Hn&&(Tn.includes(Hn)?dr.releaseSelector(Hn):Un.push(Hn))}tr=Un}},this.selectAllInCurrentLayer=function(){var Tn=Xn().getCurrentLayer();Tn&&(Or="select",zr(lD(Jn||Tn).children()))};var Kr=null;!function(){var Un,Qn,Gn={minx:null,miny:null,maxx:null,maxy:null},Vn=null,Kn=null,Wn=null,Yn=null,Zn=null,tr={},nr=0,rr={x:0,y:0},ir={x:0,y:0},ar={x:0,y:0},sr={x:0,y:0},lr={x:0,y:0},ur={x:0,y:0};!function init(Tn){$I=Tn}({getStarted:function getStarted(){return Nr},getCanvas:function getCanvas(){return Hn},getCurConfig:function getCurConfig(){return Dn},getCurrentMode:function getCurrentMode(){return Or},getrootSctm:function getrootSctm(){return Vr},getStartX:function getStartX(){return Kn},setStartX:function setStartX(Tn){Kn=Tn},getStartY:function getStartY(){return Wn},setStartY:function setStartY(Tn){Wn=Tn},getRStartX:function getRStartX(){return Yn},getRStartY:function getRStartY(){return Zn},getRubberBox:function getRubberBox(){return Rr},getInitBbox:function getInitBbox(){return tr},getCurrentResizeMode:function getCurrentResizeMode(){return Fr},getCurrentGroup:function getCurrentGroup(){return Jn},getDrawnPath:function getDrawnPath(){return Kr},getJustSelected:function getJustSelected(){return Mr},getOpacAni:function getOpacAni(){return Sr},getParameter:function getParameter(){return Un},getNextParameter:function getNextParameter(){return Qn},getStepCount:function getStepCount(){return 10},getThreSholdDist:function getThreSholdDist(){return.8},getSumDistance:function getSumDistance(){return nr},getStart:function getStart(Tn){return ar[Tn]},getEnd:function getEnd(Tn){return sr[Tn]},getbSpline:function getbSpline(Tn){return lr[Tn]},getNextPos:function getNextPos(Tn){return ur[Tn]},getControllPoint1:function getControllPoint1(Tn){return ir[Tn]},getControllPoint2:function getControllPoint2(Tn){return rr[Tn]},getFreehand:function getFreehand(Tn){return Gn[Tn]},getDrawing:function getDrawing(){return Xn()},getCurShape:function getCurShape(){return er},getDAttr:function getDAttr(){return Vn},getLastGoodImgUrl:function getLastGoodImgUrl(){return Tr},getCurText:function getCurText(Tn){return Er[Tn]},setDAttr:function setDAttr(Tn){Vn=Tn},setEnd:function setEnd(Tn,Un){sr[Tn]=Un},setControllPoint1:function setControllPoint1(Tn,Un){ir[Tn]=Un},setControllPoint2:function setControllPoint2(Tn,Un){rr[Tn]=Un},setJustSelected:function setJustSelected(Tn){Mr=Tn},setParameter:function setParameter(Tn){Un=Tn},setStart:function setStart(Tn){ar=Tn},setRStartX:function setRStartX(Tn){Yn=Tn},setRStartY:function setRStartY(Tn){Zn=Tn},setSumDistance:function setSumDistance(Tn){nr=Tn},setbSpline:function setbSpline(Tn){lr=Tn},setNextPos:function setNextPos(Tn){ur=Tn},setNextParameter:function setNextParameter(Tn){Qn=Tn},setCurProperties:function setCurProperties(Tn,Un){Ur[Tn]=Un},setCurText:function setCurText(Tn,Un){Er[Tn]=Un},setStarted:function setStarted(Tn){Nr=Tn},setStartTransform:function setStartTransform(Tn){Ir=Tn},setCurrentMode:function setCurrentMode(Tn){return Or=Tn},setFreehand:function setFreehand(Tn,Un){Gn[Tn]=Un},setCurBBoxes:function setCurBBoxes(Tn){Dr=Tn},setRubberBox:function setRubberBox(Tn){Rr=Tn},setInitBbox:function setInitBbox(Tn){tr=Tn},setRootSctm:function setRootSctm(Tn){Vr=Tn},setCurrentResizeMode:function setCurrentResizeMode(Tn){Fr=Tn},setLastClickPoint:function setLastClickPoint(Tn){jr=Tn},getSelectedElements:or,getCurrentZoom:cr,getId:pr,addCommandToHistory:mr,getSVGRoot:zn,getSVGContent:$n,call:gr,elData:xr,getIntersectionList:Qr});var dr=ZI,hr=XI,fr=YI,Ar=JI;lD(Tn).mousedown(dr).mousemove(hr).click((function handleLinkInCanvas(Tn){return Tn.preventDefault(),!1})).dblclick(Ar).mouseup(fr),lD(Tn).bind("mousewheel DOMMouseScroll",eO)}(),function init(Tn){VI=Tn}({getCanvas:function getCanvas(){return Hn},getrootSctm:function getrootSctm(){return Vr},getSelectedElements:or,getCurrentZoom:cr,getCurrentMode:function getCurrentMode(){return Or},setCurrentMode:function setCurrentMode(Tn){return Or=Tn},getSVGRoot:zn,call:gr});var qr=Hn.textActions=zI;!function init(Tn){DR=Tn}({getCanvas:function getCanvas(){return Hn},getSVGContent:$n,getSVGRoot:zn,getUIStrings:function getUIStrings(){return wr},getCurrentGroup:function getCurrentGroup(){return Jn},getCurConfig:function getCurConfig(){return Dn},getNsMap:function getNsMap(){return lr},getSvgOption:function getSvgOption(){return kr},setSvgOption:function setSvgOption(Tn,Un){kr[Tn]=Un},getSvgOptionApply:function getSvgOptionApply(){return kr.apply},getSvgOptionImages:function getSvgOptionImages(){return kr.images},getEncodableImages:function getEncodableImages(Tn){return Cr[Tn]},setEncodableImages:function setEncodableImages(Tn,Un){Cr[Tn]=Un},call:gr,getDOMDocument:function getDOMDocument(){return Gn},getVisElems:function getVisElems(){return gD},getIdPrefix:function getIdPrefix(){return Wn},setCurrentZoom:function setCurrentZoom(Tn){Yn=Tn},getImportIds:function getImportIds(Tn){return Br[Tn]},setImportIds:function setImportIds(Tn,Un){Br[Tn]=Un},setRemovedElements:function setRemovedElements(Tn,Un){Lr[Tn]=Un},setSVGContent:function setSVGContent(Tn){Kn=Tn},getrefAttrs:function getrefAttrs(){return fD},getcanvg:function getcanvg(){return BE},addCommandToHistory:mr}),this.removeUnusedDefElems=ZR,this.svgCanvasToString=jR,this.svgToString=QR,this.embedImage=VR,this.setGoodImage=function(Tn){Tr=Tn},this.open=function(){},this.save=zR,this.rasterExport=WR,this.exportPDF=XR,this.getSvgString=function(){return kr.apply=!1,this.svgCanvasToString()},this.randomizeIds=function(Tn){aI(!(arguments.length>0&&!1===Tn),Xn())};var $r=this.uniquifyElems=YR,Wr=this.setUseData=JR,Xr=this.convertGradients=eD;this.setSvgString=HR,this.importSvgString=GR;var Yr={identifyLayers:sI,createLayer:lI,cloneLayer:cI,deleteCurrentLayer:uI,setCurrentLayer:dI,renameCurrentLayer:hI,setCurrentLayerPosition:pI,setLayerVisibility:gI,moveSelectedToLayer:fI,mergeLayer:AI,mergeAllLayers:mI,leaveContext:vI,setContext:yI};Object.entries(Yr).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Dn=Un[0],Qn=Un[1];Hn[Dn]=Qn})),function init(Tn){rI=Tn}({pathActions:ar,getCurrentGroup:function getCurrentGroup(){return Jn},setCurrentGroup:function setCurrentGroup(Tn){Jn=Tn},getSelectedElements:or,getSVGContent:$n,undoMgr:Ar,elData:xr,getCurrentDrawing:Xn,clearSelection:vr,call:gr,addCommandToHistory:mr,changeSVGContent:function changeSVGContent(){gr("changed",[Kn])}}),this.clear=function(){ar.clear(),vr(),Hn.clearSvgContentElement(),Hn.current_drawing_=new oI(Kn),Hn.createLayer("Layer 1"),Hn.undoMgr.resetUndoStack(),dr.initGroup(),Rr=dr.getRubberBandBox(),gr("cleared")},this.linkControlPoints=ar.linkControlPoints,this.getContentElem=function(){return Kn},this.getRootElem=function(){return Vn},function init(Tn){uO=Tn}({addCommandToHistory:mr,getCurrentZoom:cr,getSVGContent:$n,getSelectedElements:or,call:gr,changeSelectedAttributeNoUndoMethod:PI,getDOMDocument:function getDOMDocument(){return Gn},getCanvas:function getCanvas(){return Hn},setCanvas:function setCanvas(Tn,Un){Hn[Tn]=Un},setCurrentZoom:function setCurrentZoom(Tn){Yn=Tn},setCurProperties:function setCurProperties(Tn,Un){Ur[Tn]=Un},getCurProperties:function getCurProperties(Tn){return Ur[Tn]},setCurShape:function setCurShape(Tn,Un){er[Tn]=Un},getCurText:function getCurText(Tn){return Er[Tn]},setCurText:function setCurText(Tn,Un){Er[Tn]=Un}});var Jr=this.getResolution=dO;this.getSnapToGrid=function(){return Dn.gridSnapping},this.getVersion=function(){return"svgcanvas.js ($Rev$)"},this.setUiStrings=function(Tn){Object.assign(wr,Tn.notification),LN(Tn)},this.setConfig=function(Tn){Object.assign(Dn,Tn)},this.getTitle=hO,this.setGroupTitle=pO,this.getDocumentTitle=function(){return Hn.getTitle(Kn)},this.setDocumentTitle=gO,this.getEditorNS=AO,this.setResolution=fO,this.getOffset=function(){return lD(Kn).attr(["x","y"])},this.setBBoxZoom=mO,this.setZoom=vO,this.getMode=function(){return Or},this.setMode=function(Tn){ar.clear(!0),qr.clear(),Ur=tr[0]&&"text"===tr[0].nodeName?Er:er,Or=Tn},this.getColor=function(Tn){return Ur[Tn]},this.setColor=yO,this.setGradient=_O,this.setPaint=wO,this.setStrokePaint=function(Tn){this.setPaint("stroke",Tn)},this.setFillPaint=function(Tn){this.setPaint("fill",Tn)},this.getStrokeWidth=function(){return Ur.stroke_width},this.setStrokeWidth=xO,this.setStrokeAttr=SO,this.getStyle=function(){return er},this.getOpacity=_r,this.setOpacity=function(Tn){er.opacity=Tn,ei("opacity",Tn)},this.getFillOpacity=function(){return er.fill_opacity},this.getStrokeOpacity=function(){return er.stroke_opacity},this.setPaintOpacity=function(Tn,Un,Dn){er[Tn+"_opacity"]=Un,Dn?Zr(Tn+"-opacity",Un):ei(Tn+"-opacity",Un)},this.getPaintOpacity=function(Tn){return"fill"===Tn?this.getFillOpacity():this.getStrokeOpacity()},this.getBlur=function(Tn){var Un=0;if(Tn&&Tn.getAttribute("filter")){var Dn=jT(Tn.id+"_blur");Dn&&(Un=Dn.firstChild.getAttribute("stdDeviation"))}return Un},function(){var Tn=null,Un=null,Dn=!1;!function init(Tn){wF=Tn}({getCanvas:function getCanvas(){return Hn},getCurCommand:function getCurCommand(){return Tn},setCurCommand:function setCurCommand(Un){Tn=Un},getFilter:function getFilter(){return Un},setFilter:function setFilter(Tn){Un=Tn},getFilterHidden:function getFilterHidden(){return Dn},setFilterHidden:function setFilterHidden(Tn){Dn=Tn},changeSelectedAttributeNoUndoMethod:PI,changeSelectedAttributeMethod:LI,isWebkit:XA,addCommandToHistory:mr,getSelectedElements:or}),Hn.setBlurNoUndo=xF,Hn.setBlurOffsets=SF,Hn.setBlur=CF}(),this.getBold=CO,this.setBold=kO,this.getItalic=BO,this.setItalic=EO,this.setTextAnchor=PO,this.getFontFamily=LO,this.setFontFamily=TO,this.setFontColor=NO,this.getFontColor=IO,this.getFontSize=OO,this.setFontSize=FO,this.getText=UO,this.setTextContent=MO,this.setImageURL=RO,this.setLinkURL=DO,this.setRectRadius=jO,this.makeHyperlink=QO,this.removeHyperlink=HO,this.setSegType=GO,this.convertToPath=function(Tn,Un){if(!zT(Tn))return Un?NT(Tn,rr,ar):function convertToPath(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){var Kn=new Vn.BatchCommand("Convert element to Path"),$n=Dn({element:"path",attr:Un=lT.extend({},Un,TT(Tn))}),Wn=Tn.getAttribute("transform");Wn&&$n.setAttribute("transform",Wn);var Xn=Tn.id,Yn=Tn.parentNode;Tn.nextSibling?Tn.before($n):Yn.append($n);var Jn=LT(Tn);if(Jn){if($n.setAttribute("d",Jn),Wn){var Zn=OE($n);GE(Zn)&&Qn.resetOrientation($n)}var er=Tn.nextSibling;return Kn.addSubCommand(new Vn.RemoveElementCommand(Tn,er,parent)),Kn.addSubCommand(new Vn.InsertElementCommand($n)),Hn(),Tn.remove(),$n.setAttribute("id",Xn),$n.removeAttribute("visibility"),Gn([$n],!0),zn(Kn),$n}return $n.remove(),null}(Tn,{fill:er.fill,"fill-opacity":er.fill_opacity,stroke:er.stroke,"stroke-width":er.stroke_width,"stroke-dasharray":er.stroke_dasharray,"stroke-linejoin":er.stroke_linejoin,"stroke-linecap":er.stroke_linecap,"stroke-opacity":er.stroke_opacity,opacity:er.opacity,visibility:"hidden"},rr,ar,vr,yr,eN,mr);var Dn=tr;lD.each(Dn,(function(Tn,Un){Un&&Hn.convertToPath(Un)}))};var Zr=PI,ei=this.changeSelectedAttribute=LI;!function init(Tn){iF=Tn}({getSelectedElements:or,addCommandToHistory:mr,getJsonFromSvgElement:nr,addSVGElementFromJson:rr,changeSelectedAttribute:ei,flashStorage:flashStorage,call:gr,getIntersectionList:Qr,setCurBBoxes:function setCurBBoxes(Tn){Dr=Tn},getSVGRoot:zn,gettingSelectorManager:function gettingSelectorManager(){return dr},getCurrentZoom:cr,getDrawing:function getDrawing(){return Xn()},getCurrentGroup:function getCurrentGroup(){return Jn},addToSelection:yr,getContentW:function getContentW(){return Hn.contentW},getContentH:function getContentH(){return Hn.contentH},getClipboardID:function getClipboardID(){return ti},getDOMDocument:function getDOMDocument(){return Gn},clearSelection:vr,getNextId:hr,selectOnly:zr,uniquifyElems:$r,setUseData:Wr,convertGradients:Xr,getSVGContent:$n,getCanvas:function getCanvas(){return Hn},getVisElems:function getVisElems(){return gD}}),this.deleteSelectedElements=dF,this.cutSelectedElements=function(){Hn.copySelectedElements(),Hn.deleteSelectedElements()};var ti="svgedit_clipboard";function flashStorage(){var Tn=sessionStorage.getItem(ti);localStorage.setItem(ti,Tn),setTimeout((function(){localStorage.removeItem(ti)}),1)}window.addEventListener("storage",(function storageChange(Tn){Tn.newValue&&(Tn.key===ti+"_startup"?(localStorage.removeItem(ti+"_startup"),flashStorage()):Tn.key===ti&&sessionStorage.setItem(ti,Tn.newValue))}),!1),localStorage.setItem(ti+"_startup",Math.random()),this.copySelectedElements=hF,function init(Tn){xI=Tn}({getCanvas:function getCanvas(){return Hn},getClipBoardID:function getClipBoardID(){return ti},getLastClickPoint:function getLastClickPoint(Tn){return jr[Tn]},addCommandToHistory:mr,restoreRefElems:fr}),this.pasteElements=SI,this.groupSelectedElements=pF,this.pushGroupProperties=gF,this.ungroupSelectedElement=AF,this.moveToTopSelectedElement=oF,this.moveToBottomSelectedElement=aF,this.moveUpDownSelected=sF,this.moveSelectedElements=lF,this.cloneSelectedElements=cF,this.alignSelectedElements=uF,this.contentW=Jr().w,this.contentH=Jr().h,this.updateCanvas=mF,this.setBackground=VO,this.cycleElement=vF,this.clear(),this.getPrivateMethods=function(){return{addCommandToHistory:mr,BatchCommand:pD,ChangeElementCommand:hD,decode64:decode64,dropXMLInternalSubset:fT,encode64:encode64,ffClone:EI,findDefs:kT,findDuplicateGradient:bO,getElem:jT,getPathBBox:BT,getTypeMap:oA,getUrlFromAttr:xT,identifyLayers:sI,InsertElementCommand:uD,isChrome:JA,isIdentity:QE,logMatrix:Gr,MoveElementCommand:cD,NS:Zf,preventClickDefault:VT,RemoveElementCommand:dD,SVGEditTransformList:NE,text2xml:bT,transformBox:VE,transformPoint:jE,walkTree:wT}}};AD.isNullish=zT,AD.encode64=encode64,AD.decode64=decode64,AD.$id=function $id(Tn){return document.getElementById(Tn)},AD.$qq=function $qq(Tn){return document.querySelector(Tn)},AD.$qa=function $qa(Tn){return _toConsumableArray(document.querySelectorAll(Tn))},AD.blankPageObjectURL=_T;var mD,vD=createCommonjsModule((function(Tn,Un){Tn.exports=function(){var Tn={true:!0,false:!1,null:null};function deparam(Un,Dn){var Qn={};return Un.replace(/\+/g," ").split("&").forEach((function(Un){var Hn=Un.split("="),Gn=decodeURIComponent(Hn[0]),Vn=Gn.split("]["),zn=Vn.length-1;if(/\[/.test(Vn[0])&&/\]$/.test(Vn[zn])?(Vn[zn]=Vn[zn].replace(/\]$/,""),zn=(Vn=Vn.shift().split("[").concat(Vn)).length-1):zn=0,Hn.length>=2){var Kn=decodeURIComponent(Hn.slice(1).join("="));if(Dn&&(Kn=Kn&&!isNaN(Kn)?+Kn:"undefined"===Kn?void 0:void 0!==Tn[Kn]?Tn[Kn]:Kn),zn)for(var $n=Qn,Wn=0;Wn<=zn;Wn++)$n=$n[Gn=""===Vn[Wn]?$n.length:Vn[Wn]]=Wn<zn?$n[Gn]||(Vn[Wn+1]&&isNaN(Vn[Wn+1])?{}:[]):Kn;else Array.isArray(Qn[Gn])?Qn[Gn].push(Kn):void 0!==Qn[Gn]?Qn[Gn]=[Qn[Gn],Kn]:Qn[Gn]=Kn}else Gn&&(Qn[Gn]=Dn?void 0:"")})),Qn}return deparam}()})),yD=function(){function ConfigObj(Tn){_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=Tn}return _createClass(ConfigObj,[{key:"setupCurPrefs",value:function setupCurPrefs(){var Tn=_objectSpread2(_objectSpread2({},this.defaultPrefs),this.curPrefs);this.curPrefs=Tn}},{key:"setupCurConfig",value:function setupCurConfig(){var Tn=_objectSpread2(_objectSpread2({},this.defaultConfig),this.curConfig);Tn.noDefaultExtensions||(Tn.extensions=_toConsumableArray(this.defaultExtensions)),this.curConfig=Tn}},{key:"loadFromURL",value:function loadFromURL(){var Tn=this,Un=new URL(location),Dn=Un.search,Qn=Un.searchParams;if(Dn){if(this.urldata=vD(Qn.toString(),!0),["initStroke","initFill"].forEach((function(Un){Qn.has("".concat(Un,"[color]"))&&(Tn.urldata[Un].color=Qn.get("".concat(Un,"[color]")))})),Qn.has("bkgd_color")&&(this.urldata.bkgd_color="#"+Qn.get("bkgd_color")),this.urldata.dimensions&&(this.urldata.dimensions=this.urldata.dimensions.split(",")),this.urldata.extensions&&(this.urldata.extensions=this.urldata.extensions.match(/[:/\\]/)?"":this.urldata.extensions.split(",")),["userExtensions","imgPath"].forEach((function(Tn){this.urldata[Tn]&&delete this.urldata[Tn]})),this.setConfig(this.urldata,{overwrite:!1}),this.setupCurConfig(),!this.curConfig.preventURLContentLoading){var Hn=this.urldata.source;if(!Hn){var Gn=Qn.get("source");Gn&&Gn.startsWith("data:")&&(Hn=Gn)}if(Hn)return void(Hn.startsWith("data:")?this.editor.loadFromDataURI(Hn):this.editor.loadFromString(Hn));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 Tn=this;if(this.curConfig.forceStorage||!this.curConfig.noStorageOnLoad&&document.cookie.match(/(?:^|;\s*)svgeditstore=(?:prefsAndContent|prefsOnly)/)){if(this.editor.storage&&(this.curConfig.forceStorage||!this.curConfig.noStorageOnLoad&&document.cookie.match(/(?:^|;\s*)svgeditstore=prefsAndContent/))){var Un="svgedit-"+this.curConfig.canvasName,Dn=this.editor.storage.getItem(Un);Dn&&this.editor.loadFromString(Dn)}Object.keys(this.defaultPrefs).forEach((function(Un){var Dn="svg-edit-"+Un;if(Tn.editor.storage){var Qn=Tn.editor.storage.getItem(Dn);Qn&&(Tn.defaultPrefs[Un]=String(Qn))}else if(window.widget)Tn.defaultPrefs[Un]=window.widget.preferenceForKey(Dn);else{var Hn=document.cookie.match(new RegExp("(?:^|;\\s*)"+function regexEscape(Tn){return String(Tn).replace(/[.\\+*?[^\]$(){}=!<>|:-]/g,"\\$&")}(encodeURIComponent(Dn))+"=([^;]+)"));Tn.defaultPrefs[Un]=Hn?decodeURIComponent(Hn[1]):""}}))}}},{key:"setConfig",value:function setConfig(Tn){var Un=this,Dn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=function extendOrAdd(Tn,Un,Dn){Tn[Un]&&"object"===_typeof(Tn[Un])?$.extend(!0,Tn[Un],Dn):Tn[Un]=Dn};Object.entries(Tn).forEach((function(Tn){var Hn=_slicedToArray(Tn,2),Gn=Hn[0],Vn=Hn[1];if(Un.defaultPrefs[Gn]){if(!1===Dn.overwrite&&(Un.curConfig.preventAllURLConfig||Un.curPrefs[Gn]))return;!0===Dn.allowInitialUserOverride?Un.defaultPrefs[Gn]=Vn:Un.pref(Gn,Vn)}else if(["extensions","userExtensions","allowedOrigins"].includes(Gn)){if(!1===Dn.overwrite&&(Un.curConfig.preventAllURLConfig||["allowedOrigins"].includes(Gn)||"extensions"===Gn&&Un.curConfig.lockExtensions))return;Un.curConfig[Gn]=Un.curConfig[Gn].concat(Vn)}else if({}.hasOwnProperty.call(Un.defaultConfig,Gn)){if(!1===Dn.overwrite&&(Un.curConfig.preventAllURLConfig||{}.hasOwnProperty.call(Un.curConfig,Gn)))return;if({}.hasOwnProperty.call(Un.curConfig,Gn)){if(!1===Dn.overwrite)return;Qn(Un.curConfig,Gn,Vn)}else!0===Dn.allowInitialUserOverride?Qn(Un.defaultConfig,Gn,Vn):Un.defaultConfig[Gn]&&"object"===_typeof(Un.defaultConfig[Gn])?(Un.curConfig[Gn]=Array.isArray(Un.defaultConfig[Gn])?[]:{},$.extend(!0,Un.curConfig[Gn],Vn)):Un.curConfig[Gn]=Vn}}))}},{key:"pref",value:function pref(Tn,Un,Dn){if(!Dn&&!Un)return Tn in this.curPrefs?this.curPrefs[Tn]:this.defaultPrefs[Tn];this.curPrefs[Tn]=Un}},{key:"load",value:function load(){this.loadFromURL(this.editor),this.setupCurPrefs(this.editor)}}]),ConfigObj}();function __variableDynamicImportRuntime0__(Tn){switch(Tn){case"./locale/lang.af.js":return Promise.resolve().then((function(){return Aj}));case"./locale/lang.ar.js":return Promise.resolve().then((function(){return mj}));case"./locale/lang.az.js":return Promise.resolve().then((function(){return vj}));case"./locale/lang.be.js":return Promise.resolve().then((function(){return yj}));case"./locale/lang.bg.js":return Promise.resolve().then((function(){return _j}));case"./locale/lang.ca.js":return Promise.resolve().then((function(){return wj}));case"./locale/lang.cs.js":return Promise.resolve().then((function(){return xj}));case"./locale/lang.cy.js":return Promise.resolve().then((function(){return Sj}));case"./locale/lang.da.js":return Promise.resolve().then((function(){return Cj}));case"./locale/lang.de.js":return Promise.resolve().then((function(){return kj}));case"./locale/lang.el.js":return Promise.resolve().then((function(){return Bj}));case"./locale/lang.en.js":return Promise.resolve().then((function(){return Ej}));case"./locale/lang.es.js":return Promise.resolve().then((function(){return Pj}));case"./locale/lang.et.js":return Promise.resolve().then((function(){return Lj}));case"./locale/lang.fa.js":return Promise.resolve().then((function(){return Tj}));case"./locale/lang.fi.js":return Promise.resolve().then((function(){return Nj}));case"./locale/lang.fr.js":return Promise.resolve().then((function(){return Ij}));case"./locale/lang.fy.js":return Promise.resolve().then((function(){return Oj}));case"./locale/lang.ga.js":return Promise.resolve().then((function(){return Fj}));case"./locale/lang.gl.js":return Promise.resolve().then((function(){return Uj}));case"./locale/lang.he.js":return Promise.resolve().then((function(){return Mj}));case"./locale/lang.hi.js":return Promise.resolve().then((function(){return Rj}));case"./locale/lang.hr.js":return Promise.resolve().then((function(){return Dj}));case"./locale/lang.hu.js":return Promise.resolve().then((function(){return jj}));case"./locale/lang.hy.js":return Promise.resolve().then((function(){return Qj}));case"./locale/lang.id.js":return Promise.resolve().then((function(){return Hj}));case"./locale/lang.is.js":return Promise.resolve().then((function(){return Gj}));case"./locale/lang.it.js":return Promise.resolve().then((function(){return Vj}));case"./locale/lang.ja.js":return Promise.resolve().then((function(){return zj}));case"./locale/lang.ko.js":return Promise.resolve().then((function(){return Kj}));case"./locale/lang.lt.js":return Promise.resolve().then((function(){return qj}));case"./locale/lang.lv.js":return Promise.resolve().then((function(){return $j}));case"./locale/lang.mk.js":return Promise.resolve().then((function(){return Wj}));case"./locale/lang.ms.js":return Promise.resolve().then((function(){return Xj}));case"./locale/lang.mt.js":return Promise.resolve().then((function(){return Yj}));case"./locale/lang.nl.js":return Promise.resolve().then((function(){return Jj}));case"./locale/lang.no.js":return Promise.resolve().then((function(){return Zj}));case"./locale/lang.pl.js":return Promise.resolve().then((function(){return eQ}));case"./locale/lang.pt-BR.js":return Promise.resolve().then((function(){return tQ}));case"./locale/lang.pt-PT.js":return Promise.resolve().then((function(){return nQ}));case"./locale/lang.ro.js":return Promise.resolve().then((function(){return rQ}));case"./locale/lang.ru.js":return Promise.resolve().then((function(){return iQ}));case"./locale/lang.sk.js":return Promise.resolve().then((function(){return oQ}));case"./locale/lang.sl.js":return Promise.resolve().then((function(){return aQ}));case"./locale/lang.sq.js":return Promise.resolve().then((function(){return sQ}));case"./locale/lang.sr.js":return Promise.resolve().then((function(){return lQ}));case"./locale/lang.sv.js":return Promise.resolve().then((function(){return cQ}));case"./locale/lang.sw.js":return Promise.resolve().then((function(){return uQ}));case"./locale/lang.test.js":return Promise.resolve().then((function(){return dQ}));case"./locale/lang.th.js":return Promise.resolve().then((function(){return hQ}));case"./locale/lang.tl.js":return Promise.resolve().then((function(){return pQ}));case"./locale/lang.tr.js":return Promise.resolve().then((function(){return gQ}));case"./locale/lang.uk.js":return Promise.resolve().then((function(){return fQ}));case"./locale/lang.vi.js":return Promise.resolve().then((function(){return AQ}));case"./locale/lang.yi.js":return Promise.resolve().then((function(){return mQ}));case"./locale/lang.zh-CN.js":return Promise.resolve().then((function(){return vQ}));case"./locale/lang.zh-HK.js":return Promise.resolve().then((function(){return yQ}));case"./locale/lang.zh-TW.js":return Promise.resolve().then((function(){return _Q}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+Tn))}}
|
||
/**
|
||
* 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 _D=function setStrings(Tn,Un,Dn){var Qn=document.getElementById("svg_editor").parentNode;Object.entries(Un).forEach((function(Un){var Hn=_slicedToArray(Un,2),Gn=Hn[0],Vn=Hn[1];if(Vn){Dn&&(Gn="#"+Gn);var zn=Qn.querySelectorAll(Gn);if(zn.length){var Kn=zn[0];switch(Tn){case"aria-label":Kn.setAttribute("aria-label",Vn);break;case"content":_toConsumableArray(zn).some((function(Tn){return!(3!==Tn.nodeType||!Tn.textContent.trim())&&(Tn.textContent=Vn,!0)}));break;case"title":Kn.setAttribute("title",Vn)}}else console.log("Missing element for localization: "+Gn)}else console.log(Gn)}))},bD=function readLang(Tn){var Un=Tn.tools,Dn=Tn.properties,Qn=Tn.config,Hn=Tn.layers,Gn=Tn.common,Vn=Tn.ui;_D("content",{curve_segments:Dn.curve_segments,fitToContent:Un.fitToContent,fit_to_all:Un.fit_to_all,fit_to_canvas:Un.fit_to_canvas,fit_to_layer_content:Un.fit_to_layer_content,fit_to_sel:Un.fit_to_sel,icon_large:Qn.icon_large,icon_medium:Qn.icon_medium,icon_small:Qn.icon_small,icon_xlarge:Qn.icon_xlarge,image_opt_embed:Qn.image_opt_embed,image_opt_ref:Qn.image_opt_ref,includedImages:Qn.included_images,largest_object:Un.largest_object,layersLabel:Hn.layers,page:Un.page,relativeToLabel:Un.relativeTo,selLayerLabel:Hn.move_elems_to,selectedPredefined:Qn.select_predefined,selected_objects:Un.selected_objects,smallest_object:Un.smallest_object,straight_segments:Dn.straight_segments,svginfo_bg_url:Qn.editor_img_url+":",svginfo_bg_note:Qn.editor_bg_note,svginfo_change_background:Qn.background,svginfo_dim:Qn.doc_dims,svginfo_editor_prefs:Qn.editor_prefs,svginfo_height:Gn.height,svginfo_icons:Qn.icon_size,svginfo_image_props:Qn.image_props,svginfo_lang:Qn.language,svginfo_title:Qn.doc_title,svginfo_width:Gn.width,tool_docprops_cancel:Gn.cancel,tool_docprops_save:Gn.ok,tool_source_cancel:Gn.cancel,tool_source_save:Gn.ok,tool_prefs_cancel:Gn.cancel,tool_prefs_save:Gn.ok,sidepanel_handle:Hn.layers.split("").join(" "),tool_clear:Un.new_doc,tool_docprops:Un.docprops,tool_export:Un.export_img,tool_import:Un.import_doc,tool_open:Un.open_doc,tool_save:Un.save_doc,tool_editor_prefs:Qn.editor_prefs,tool_editor_homepage:Un.editor_homepage,svginfo_units_rulers:Qn.units_and_rulers,svginfo_rulers_onoff:Qn.show_rulers,svginfo_unit:Qn.base_unit,svginfo_grid_settings:Qn.grid,svginfo_snap_onoff:Qn.snapping_onoff,svginfo_snap_step:Qn.snapping_stepsize,svginfo_grid_color:Qn.grid_color},!0);var zn={};["cut","copy","paste","paste_in_place","delete","group","ungroup","move_front","move_up","move_down","move_back"].forEach((function(Tn){zn['#cmenu_canvas a[href="#'+Tn+'"]']=Un[Tn]})),["dupe","merge_down","merge_all"].forEach((function(Tn){zn['#cmenu_layers a[href="#'+Tn+'"]']=Hn[Tn]})),zn['#cmenu_layers a[href="#delete"]']=Hn.del,_D("content",zn);var Kn={};return Object.entries({tool_blur:Dn.blur,tool_position:Un.align_to_page,tool_font_family:Dn.font_family,zoom_panel:Vn.zoom_level,stroke_linejoin:Dn.linejoin_miter,stroke_linecap:Dn.linecap_butt,tool_opacity:Dn.opacity}).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Dn=Un[0],Qn=Un[1];Kn["#"+Dn+" button"]=Qn})),Object.entries({group_opacity:Dn.opacity,zoom:Vn.zoom_level}).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Dn=Un[0],Qn=Un[1];Kn["#"+Dn]=Qn})),_D("aria-label",Kn),_D("title",{align_relative_to:Un.align_relative_to,circle_cx:Dn.circle_cx,circle_cy:Dn.circle_cy,circle_r:Dn.circle_r,cornerRadiusLabel:Dn.corner_radius,ellipse_cx:Dn.ellipse_cx,ellipse_cy:Dn.ellipse_cy,ellipse_rx:Dn.ellipse_rx,ellipse_ry:Dn.ellipse_ry,fill_color:Dn.fill_color,font_family:Dn.font_family,idLabel:Dn.id,image_height:Dn.image_height,image_url:Dn.image_url,image_width:Dn.image_width,layer_delete:Hn.del,layer_down:Hn.move_down,layer_new:Hn.new,layer_rename:Hn.rename,layer_moreopts:Gn.more_opts,layer_up:Hn.move_up,line_x1:Dn.line_x1,line_x2:Dn.line_x2,line_y1:Dn.line_y1,line_y2:Dn.line_y2,linecap_butt:Dn.linecap_butt,linecap_round:Dn.linecap_round,linecap_square:Dn.linecap_square,linejoin_bevel:Dn.linejoin_bevel,linejoin_miter:Dn.linejoin_miter,linejoin_round:Dn.linejoin_round,main_icon:Un.main_menu,palette:Vn.palette_info,zoom_panel:Vn.zoom_level,path_node_x:Dn.node_x,path_node_y:Dn.node_y,rect_height_tool:Dn.rect_height,rect_width_tool:Dn.rect_width,seg_type:Dn.seg_type,selLayerNames:Hn.move_selected,selected_x:Dn.pos_x,selected_y:Dn.pos_y,stroke_color:Dn.stroke_color,stroke_style:Dn.stroke_style,stroke_width:Dn.stroke_width,svginfo_title:Qn.doc_title,text:Dn.text_contents,toggle_stroke_tools:Vn.toggle_stroke_tools,tool_add_subpath:Un.add_subpath,tool_align_bottom:Un.align_bottom,tool_align_center:Un.align_center,tool_align_left:Un.align_left,tool_align_middle:Un.align_middle,tool_align_right:Un.align_right,tool_align_top:Un.align_top,tool_angle:Dn.angle,tool_blur:Dn.blur,tool_bold:Dn.bold,tool_text_anchor_start:Dn.text_anchor_start,tool_text_anchor_middle:Dn.text_anchor_middle,tool_text_anchor_end:Dn.text_anchor_end,tool_circle:Un.mode_circle,tool_clone:Un.clone,tool_clone_multi:Un.clone,tool_delete:Un.del,tool_delete_multi:Un.del,tool_ellipse:Un.mode_ellipse,tool_fhellipse:Un.mode_fhellipse,tool_fhpath:Un.mode_fhpath,tool_fhrect:Un.mode_fhrect,tool_font_size:Dn.font_size,tool_group_elements:Un.group_elements,tool_make_link:Un.make_link,tool_link_url:Un.set_link_url,tool_image:Un.mode_image,tool_italic:Dn.italic,tool_line:Un.mode_line,tool_move_bottom:Un.move_bottom,tool_move_top:Un.move_top,tool_node_clone:Un.node_clone,tool_node_delete:Un.node_delete,tool_node_link:Un.node_link,tool_opacity:Dn.opacity,tool_openclose_path:Un.openclose_path,tool_path:Un.mode_path,tool_position:Un.align_to_page,tool_rect:Un.mode_rect,tool_redo:Un.redo,tool_reorient:Un.reorient_path,tool_select:Un.mode_select,tool_source:Un.source_save,tool_square:Un.mode_square,tool_text:Un.mode_text,tool_topath:Un.to_path,tool_undo:Un.undo,tool_ungroup:Un.ungroup,tool_wireframe:Un.wireframe_mode,tool_zoom:Un.mode_zoom,url_notice:Un.no_embed},!0),{langParam:mD,langData:Tn}},wD=function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn,Un){var Dn;return regeneratorRuntime.wrap((function _callee$(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:return Tn?mD=Tn:navigator.userLanguage?mD=navigator.userLanguage:navigator.language&&(mD=navigator.language),console.log("Lang: "+mD),Un.includes(mD)||"test"===mD||(mD="en"),Qn.next=5,__variableDynamicImportRuntime0__("./locale/lang.".concat(encodeURIComponent(mD),".js"));case 5:return Dn=Qn.sent,Qn.abrupt("return",bD(Dn.default));case 7:case"end":return Qn.stop()}}),_callee)})));return function putLocale(Un,Dn){return Tn.apply(this,arguments)}}(),xD={},SD=function hasCustomHandler(Tn){return Boolean(xD[Tn])},CD=function getCustomHandler(Tn){return xD[Tn].action},kD=function injectExtendedContextMenuItemsIntoDom(){Object.values(xD).forEach((function(Tn){!function injectExtendedContextMenuItemIntoDom(Tn){Object.keys(xD).length||document.getElementById("cmenu_canvas").appendChild("<li class='separator'>");var Un=Tn.shortcut||"";document.getElementById("cmenu_canvas").appendChild("\n <li class='disabled'><a href='#".concat(Tn.id,"'>").concat(Tn.label,"<span class='shortcut'>").concat(Un,"</span></a></li>"))}(Tn)}))},BD=AD.$id,ED=function(){function LayersPanel(Tn){_classCallCheck(this,LayersPanel),this.svgCanvas=Tn.svgCanvas,this.uiStrings=Tn.uiStrings,this.updateContextPanel=Tn.topPanelHandlers.updateContextPanel,this.sidedrag=-1,this.sidedragging=!1,this.allowmove=!1,this.editor=Tn}return _createClass(LayersPanel,[{key:"changeSidePanelWidth",value:function changeSidePanelWidth(Tn){var Un=$("#ruler_x");$("#sidepanels").width("+="+Tn),$("#layerpanel").width("+="+Tn),Un.css("right",Number.parseInt(Un.css("right"))+Tn),this.editor.workarea.css("right",Number.parseInt(this.editor.workarea.css("right"))+Tn),this.svgCanvas.runExtensions("workareaResized")}},{key:"resizeSidePanel",value:function resizeSidePanel(Tn){if(this.allowmove&&-1!==this.sidedrag){this.sidedragging=!0;var Un=this.sidedrag-Tn.pageX,Dn=$("#sidepanels").width();Dn+Un>300?Un=300-Dn:Dn+Un<2&&(Un=2-Dn),0!==Un&&(this.sidedrag-=Un,this.changeSidePanelWidth(Un))}}},{key:"toggleSidePanel",value:function toggleSidePanel(Tn){var Un=window.devicePixelRatio||1,Dn=$("#sidepanels").width(),Qn=((Un<1?Dn:Dn/Un)>2||Tn?0:150*(Un<1?1:Un))-Dn;this.changeSidePanelWidth(Qn)}},{key:"lmenuFunc",value:function lmenuFunc(Tn){var Un;switch(null==Tn||null===(Un=Tn.detail)||void 0===Un?void 0:Un.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 Tn=this,Un=document.createElement("se-cmenu-layers");Un.setAttribute("id","se-cmenu-layers-more"),Un.value="layer_moreopts",Un.setAttribute("leftclick",!0),document.body.append(Un);var Dn=document.createElement("se-cmenu-layers");Dn.setAttribute("id","se-cmenu-layers-list"),Dn.value="layerlist",Dn.setAttribute("leftclick",!1),document.body.append(Dn),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 Tn.moveLayer.bind(Tn)(-1)})),document.getElementById("layer_down").addEventListener("click",(function(){return Tn.moveLayer.bind(Tn)(1)})),document.getElementById("layer_rename").addEventListener("click",this.layerRename.bind(this)),BD("se-cmenu-layers-more").addEventListener("change",this.lmenuFunc.bind(this)),BD("se-cmenu-layers-list").addEventListener("change",(function(Un){var Dn,Qn;Tn.lmenuFunc.bind(Tn)(null==Un||null===(Dn=Un.detail)||void 0===Dn?void 0:Dn.trigger,null==Un||null===(Qn=Un.detail)||void 0===Qn?void 0:Qn.source)})),BD("sidepanel_handle").addEventListener("click",this.toggleSidePanel.bind(this)),this.editor.configObj.curConfig.showlayers&&this.toggleSidePanel(),BD("sidepanel_handle").addEventListener("mousedown",(function(Un){Tn.sidedrag=Un.pageX,window.addEventListener("mousemove",Tn.resizeSidePanel.bind(Tn)),Tn.allowmove=!1,setTimeout((function(){Tn.allowmove=!0}),20)})),BD("sidepanel_handle").addEventListener("mouseup",(function(Un){Tn.sidedragging||Tn.toggleSidePanel(),Tn.sidedrag=-1,Tn.sidedragging=!1})),window.addEventListener("mouseup",(function(Un){Tn.sidedrag=-1,Tn.sidedragging=!1,BD("svg_editor").removeEventListener("mousemove",Tn.resizeSidePanel.bind(Tn))}))}},{key:"newLayer",value:function newLayer(){var Tn,Un=this.svgCanvas.getCurrentDrawing().getNumLayers();do{Tn=this.uiStrings.layers.layer+" "+ ++Un}while(this.svgCanvas.getCurrentDrawing().hasLayer(Tn));var Dn=prompt(this.uiStrings.notification.enterUniqueLayerName,Tn);Dn&&(this.svgCanvas.getCurrentDrawing().hasLayer(Dn)?alert(this.uiStrings.notification.dupeLayerName):(this.svgCanvas.createLayer(Dn),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 Tn=this.svgCanvas.getCurrentDrawing().getCurrentLayerName()+" copy",Un=prompt(this.uiStrings.notification.enterUniqueLayerName,Tn);Un&&(this.svgCanvas.getCurrentDrawing().hasLayer(Un)?alert(this.uiStrings.notification.dupeLayerName):(this.svgCanvas.cloneLayer(Un),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(Tn){var Un=this.svgCanvas.getCurrentDrawing().getNumLayers(),Dn=$("#layerlist tr.layersel").index();(Dn>0||Dn<Un-1)&&(Dn+=Tn,this.svgCanvas.setCurrentLayerPosition(Un-Dn-1),this.populateLayers())}},{key:"layerRename",value:function layerRename(){var Tn=$("#layerlist tr.layersel td.layername").text(),Un=prompt(this.uiStrings.notification.enterNewLayerName,"");Un&&(Tn===Un||this.svgCanvas.getCurrentDrawing().hasLayer(Un)?alert(this.uiStrings.notification.layerHasThatName):(this.svgCanvas.renameCurrentLayer(Un),this.populateLayers()))}},{key:"toggleHighlightLayer",value:function toggleHighlightLayer(Tn){var Un,Dn=this,Qn=[],Hn=this.svgCanvas.getCurrentDrawing().getNumLayers();for(Un=0;Un<Hn;Un++)Qn[Un]=this.svgCanvas.getCurrentDrawing().getLayerName(Un);Tn?Qn.forEach((function(Un){Un!==Tn&&Dn.svgCanvas.getCurrentDrawing().setLayerOpacity(Un,.5)})):Qn.forEach((function(Tn){Dn.svgCanvas.getCurrentDrawing().setLayerOpacity(Tn,1)}))}},{key:"populateLayers",value:function populateLayers(){var Tn=this;this.svgCanvas.clearSelection();for(var Un=$("#layerlist tbody").empty(),Dn=$("#selLayerNames").empty(),Qn=this.svgCanvas.getCurrentDrawing(),Hn=Qn.getCurrentLayerName(),Gn=this.svgCanvas.getCurrentDrawing().getNumLayers();Gn--;){var Vn=Qn.getLayerName(Gn),zn=$('<tr class="layer">').toggleClass("layersel",Vn===Hn),Kn=$('<td class="layervis">').toggleClass("layerinvis",!Qn.getLayerVisibility(Vn)),$n=$('<td class="layername">'+Vn+"</td>");Un.append(zn.append(Kn,$n)),Dn.append('<option value="'+Vn+'">'+Vn+"</option>")}$("#layerlist td.layername").mouseup((function(Un){$("#layerlist tr.layer").removeClass("layersel"),$(Un.currentTarget.parentNode).addClass("layersel"),Tn.svgCanvas.setCurrentLayer(Un.currentTarget.textContent),Un.preventDefault()})).mouseover((function(Un){Tn.toggleHighlightLayer(Tn.svgCanvas,Un.currentTarget.textContent)})).mouseout((function(){Tn.toggleHighlightLayer(Tn.svgCanvas)})),$("#layerlist td.layervis").click((function(Un){var Dn=$(Un.currentTarget.parentNode).prevAll().length,Qn=$("#layerlist tr.layer:eq("+Dn+") td.layername").text(),Hn=$(Un.currentTarget).hasClass("layerinvis");Tn.svgCanvas.setLayerVisibility(Qn,Hn),$(Un.currentTarget).toggleClass("layerinvis")}));for(var Wn=5-$("#layerlist tr.layer").size();Wn-- >0;)Un.append('<tr><td style="color:white">_</td><td/></tr>')}}]),LayersPanel}(),PD=AD.$id,LD=AD.$qa,TD=function(){function LeftPanelHandlers(Tn){_classCallCheck(this,LeftPanelHandlers),this.editor=Tn,this.svgCanvas=Tn.svgCanvas}return _createClass(LeftPanelHandlers,[{key:"updateLeftPanel",value:function updateLeftPanel(Tn){return!Tn.disabled&&(LD("#tools_left *[pressed]").forEach((function(Tn){Tn.pressed=!1})),PD(Tn).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(Tn,Un){var Dn=this;PD(Tn).addEventListener("click",(function(){Dn.updateLeftPanel(Tn)&&Un()}))}},{key:"init",value:function init(){PD("tool_select").addEventListener("click",this.clickSelect.bind(this)),PD("tool_fhpath").addEventListener("click",this.clickFHPath.bind(this)),PD("tool_text").addEventListener("click",this.clickText.bind(this)),PD("tool_image").addEventListener("click",this.clickImage.bind(this)),PD("tool_zoom").addEventListener("click",this.clickZoom.bind(this)),PD("tool_zoom").addEventListener("dblclick",this.dblclickZoom.bind(this)),PD("tool_path").addEventListener("click",this.clickPath.bind(this)),PD("tool_line").addEventListener("click",this.clickLine.bind(this)),PD("tool_rect").addEventListener("click",this.clickRect.bind(this)),PD("tool_square").addEventListener("click",this.clickSquare.bind(this)),PD("tool_fhrect").addEventListener("click",this.clickFHRect.bind(this)),PD("tool_ellipse").addEventListener("click",this.clickEllipse.bind(this)),PD("tool_circle").addEventListener("click",this.clickCircle.bind(this)),PD("tool_fhellipse").addEventListener("click",this.clickFHEllipse.bind(this))}}]),LeftPanelHandlers}(),ND=AD.$id,OD=function(){function BottomPanelHandlers(Tn){_classCallCheck(this,BottomPanelHandlers),this.editor=Tn,this.svgCanvas=Tn.svgCanvas}return _createClass(BottomPanelHandlers,[{key:"changeStrokeWidth",value:function changeStrokeWidth(Tn){var Un=Tn.target.value;0===Un&&this.selectedElement&&["line","polyline"].includes(this.selectedElement.nodeName)&&(Un=1),this.svgCanvas.setStrokeWidth(Un)}},{key:"changeZoom",value:function changeZoom(Tn){switch(Tn){case"canvas":case"selection":case"layer":case"content":this.editor.zoomChanged(window,Tn);break;default:var Un=Number(Tn)/100;if(Un<.001)return void(Tn=.1);var Dn=this.svgCanvas.getZoom(),Qn=this.editor.workarea;this.editor.zoomChanged(window,{width:0,height:0,x:(Qn[0].scrollLeft+Qn.width()/2)/Dn,y:(Qn[0].scrollTop+Qn.height()/2)/Dn,zoom:Un},!0)}}},{key:"updateToolButtonState",value:function updateToolButtonState(){var Tn=this,Un="none"===this.svgCanvas.getColor("fill"),Dn="none"===this.svgCanvas.getColor("stroke"),Qn=["tool_fhpath","tool_line"],Hn=["tools_rect","tools_ellipse","tool_text","tool_path"];Dn?Qn.forEach((function(Un){ND(Un).pressed&&Tn.editor.leftPanelHandlers.clickSelect(),$(Un).disabled=!0})):Qn.forEach((function(Tn){ND(Tn).disabled=!1})),Dn&&Un?Hn.forEach((function(Un){ND(Un).pressed&&Tn.editor.leftPanelHandlers.clickSelect(),$(Un).disabled=!0})):Hn.forEach((function(Tn){ND(Tn).disabled=!1})),this.svgCanvas.runExtensions("toolButtonStateUpdate",{nofill:Un,nostroke:Dn})}},{key:"updateColorpickers",value:function updateColorpickers(Tn){ND("fill_color").update(this.svgCanvas,this.selectedElement,Tn),ND("stroke_color").update(this.svgCanvas,this.selectedElement,Tn)}},{key:"handleColorPicker",value:function handleColorPicker(Tn,Un){var Dn=Un.detail.paint;this.svgCanvas.setPaint(Tn,Dn),this.updateToolButtonState()}},{key:"handleStrokeAttr",value:function handleStrokeAttr(Tn,Un){this.svgCanvas.setStrokeAttr(Tn,Un.currentTarget.value)}},{key:"handleOpacity",value:function handleOpacity(Tn){var Un=Number.parseInt(Tn.currentTarget.value.split("%")[0]);this.svgCanvas.setOpacity(Un/100)}},{key:"handlePalette",value:function handlePalette(Tn){Tn.preventDefault();var Un=Tn.detail,Dn=Un.picker,Qn=Un.color,Hn="none"===Qn?new $.jGraduate.Paint:new $.jGraduate.Paint({alpha:100,solidColor:Qn.substr(1)});"fill"===Dn?ND("fill_color").setPaint(Hn):ND("stroke_color").setPaint(Hn),this.svgCanvas.setColor(Dn,Qn),"none"!==Qn&&1!==this.svgCanvas.getPaintOpacity(Dn)&&this.svgCanvas.setPaintOpacity(Dn,1),this.updateToolButtonState()}},{key:"init",value:function init(){var Tn=this;ND("zoom").addEventListener("change",(function(Un){return Tn.changeZoom.bind(Tn)(Un.detail.value)})),ND("stroke_color").addEventListener("change",(function(Un){return Tn.handleColorPicker.bind(Tn)("stroke",Un)})),ND("fill_color").addEventListener("change",(function(Un){return Tn.handleColorPicker.bind(Tn)("fill",Un)})),ND("stroke_width").addEventListener("change",this.changeStrokeWidth.bind(this)),ND("stroke_style").addEventListener("change",(function(Un){return Tn.handleStrokeAttr.bind(Tn)("stroke-dasharray",Un)})),ND("stroke_linejoin").addEventListener("change",(function(Un){return Tn.handleStrokeAttr.bind(Tn)("stroke-linejoin",Un)})),ND("stroke_linecap").addEventListener("change",(function(Un){return Tn.handleStrokeAttr.bind(Tn)("stroke-linecap",Un)})),ND("opacity").addEventListener("change",this.handleOpacity.bind(this)),ND("palette").addEventListener("change",this.handlePalette.bind(this));var Un=this.editor.configObj.curConfig;ND("fill_color").setPaint(new $.jGraduate.Paint({alpha:100,solidColor:Un.initFill.color})),ND("stroke_color").setPaint(new $.jGraduate.Paint({alpha:100,solidColor:Un.initStroke.color}))}},{key:"selectedElement",get:function get(){return this.editor.selectedElement}},{key:"multiselected",get:function get(){return this.editor.multiselected}}]),BottomPanelHandlers}(),FD=AD.$id,UD=AD.isNullish,MD=function(){function TopPanelHandlers(Tn){_classCallCheck(this,TopPanelHandlers),this.editor=Tn,this.svgCanvas=Tn.svgCanvas,this.uiStrings=Tn.uiStrings}return _createClass(TopPanelHandlers,[{key:"promptImgURL",value:function promptImgURL(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Un=Tn.cancelDeletes,Dn=void 0!==Un&&Un,Qn=this.svgCanvas.getHref(this.selectedElement);Qn=Qn.startsWith("data:")?"":Qn;var Hn=prompt(this.editor.uiStrings.notification.enterNewImgURL,Qn);Hn?this.editor.setImageURL(Hn):Dn&&this.svgCanvas.deleteSelectedElements()}},{key:"updateContextPanel",value:function updateContextPanel(){var Tn=this,Un=this.selectedElement;UD(Un)||Un.parentNode||(Un=null);var Dn=this.svgCanvas.getCurrentDrawing().getCurrentLayerName(),Qn=this.svgCanvas.getMode(),Hn="px"!==this.editor.configObj.curConfig.baseUnit?this.editor.configObj.curConfig.baseUnit:null,Gn="pathedit"===Qn,Vn=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(),UD(Un))this.multiselected?($("#multiselected_panel").show(),Vn.setAttribute("enablemenuitems","#group"),Vn.setAttribute("disablemenuitems","#ungroup")):Vn.setAttribute("disablemenuitems","#delete,#cut,#copy,#group,#ungroup,#move_front,#move_up,#move_down,#move_back");else{var zn=Un.nodeName,Kn=this.svgCanvas.getRotationAngle(Un);$("#angle").val(Kn);var $n=10*this.svgCanvas.getBlur(Un);if(FD("blur").value=$n,this.svgCanvas.addedNew&&"image"===zn&&"image"===this.svgCanvas.getMode()&&!this.svgCanvas.getHref(Un).startsWith("data:")&&this.promptImgURL({cancelDeletes:!0}),Gn||"pathedit"===Qn){var Wn=this.path.getNodePoint();if($("#tool_add_subpath").pressed=!1,$("#tool_node_delete").toggleClass("disabled",!this.path.canDeleteNodes),Wn){var Xn=$("#seg_type");Hn&&(Wn.x=sA(Wn.x),Wn.y=sA(Wn.y)),$("#path_node_x").val(Wn.x),$("#path_node_y").val(Wn.y),Wn.type?Xn.val(Wn.type).removeAttr("disabled"):Xn.val(4).attr("disabled","disabled")}return}if($("#selected_panel").show(),["line","circle","ellipse"].includes(zn))$("#xy_panel").hide();else{var Yn,Jn;if(["g","polyline","path"].includes(zn)){var Zn=this.svgCanvas.getStrokedBBox([Un]);Zn&&(Yn=Zn.x,Jn=Zn.y)}else Yn=Un.getAttribute("x"),Jn=Un.getAttribute("y");Hn&&(Yn=sA(Yn),Jn=sA(Jn)),$("#selected_x").val(Yn||0),$("#selected_y").val(Jn||0),$("#xy_panel").show()}FD("tool_topath").style.display=["image","text","path","g","use"].includes(zn)?"none":"block",FD("tool_reorient").style.display="path"===zn?"block":"none",FD("tool_reorient").disabled=0===Kn;var er={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:[]},tr=Un.tagName,nr=null;if("a"===tr&&(nr=this.svgCanvas.getHref(Un),$("#g_panel").show()),"a"!==Un.parentNode.tagName||$(Un).siblings().length||($("#a_panel").show(),nr=this.svgCanvas.getHref(Un.parentNode)),$("#tool_make_link, #tool_make_link_multi").toggle(!nr),nr&&$("#link_url").val(nr),er[tr]){var rr=er[tr];if($("#"+tr+"_panel").show(),rr.forEach((function(Dn){var Qn=Un.getAttribute(Dn);if("px"!==Tn.editor.configObj.curConfig.baseUnit&&Un[Dn]){var Hn=Un[Dn].baseVal.value;Qn=sA(Hn)}FD("".concat(tr,"_").concat(Dn)).value=Qn||0})),"text"===tr){$("#text_panel").css("display","inline"),$("#tool_font_size").css("display","inline"),FD("tool_italic").pressed=this.svgCanvas.getItalic(),FD("tool_bold").pressed=this.svgCanvas.getBold(),$("#font_family").val(Un.getAttribute("font-family")),$("#font_size").val(Un.getAttribute("font-size")),$("#text").val(Un.textContent);var ir=FD("tool_text_anchor_start"),or=FD("tool_text_anchor_middle"),ar=FD("tool_text_anchor_end");switch(Un.getAttribute("text-anchor")){case"start":ir.pressed=!0,or.pressed=!1,ar.pressed=!1;break;case"middle":ir.pressed=!1,or.pressed=!0,ar.pressed=!1;break;case"end":ir.pressed=!1,or.pressed=!1,ar.pressed=!0}this.svgCanvas.addedNew&&setTimeout((function(){$("#text").focus().select()}),100)}else if("image"===tr&&"image"===this.svgCanvas.getMode())this.svgCanvas.setImageURL(this.svgCanvas.getHref(Un));else if("g"===tr||"use"===tr){$("#container_panel").show();var sr=this.svgCanvas.getTitle(),lr=$("#g_title")[0];lr.value=sr,function setInputWidth(Tn){var Un=Math.min(Math.max(12+6*Tn.value.length,50),300);$(Tn).width(Un)}(lr),$("#g_title").prop("disabled","use"===tr)}}Vn.setAttribute(("g"===tr?"en":"dis")+"ablemenuitems","#ungroup"),Vn.setAttribute(("g"!==tr&&this.multiselected?"en":"dis")+"ablemenuitems","#group")}(FD("tool_undo").disabled=0===this.svgCanvas.undoMgr.getUndoStackSize(),FD("tool_redo").disabled=0===this.svgCanvas.undoMgr.getRedoStackSize(),this.svgCanvas.addedNew=!1,Un&&!Gn||this.multiselected)?($("#selLayerNames").removeAttr("disabled").val(Dn),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(Tn,Un){var Dn=document.getElementById("se-svg-editor-dialog");if("open"!==Dn.getAttribute("dialog")){var Qn=this.svgCanvas.getSvgString();Dn.setAttribute("dialog","open"),Dn.setAttribute("value",Qn),Dn.setAttribute("copysec",Boolean(Un)),Dn.setAttribute("applysec",!Un)}}},{key:"clickWireframe",value:function clickWireframe(){FD("tool_wireframe").pressed=!FD("tool_wireframe").pressed,this.editor.workarea.toggleClass("wireframe");var Tn=$("#wireframe_rules");Tn.length?Tn.empty():$('<style id="wireframe_rules"></style>').appendTo("head"),this.editor.updateWireFrame()}},{key:"clickUndo",value:function clickUndo(){var Tn=this.editor.svgCanvas.undoMgr;Tn.getUndoStackSize()>0&&(Tn.undo(),this.editor.layersPanel.populateLayers())}},{key:"clickRedo",value:function clickRedo(){var Tn=this.editor.svgCanvas.undoMgr;Tn.getRedoStackSize()>0&&(Tn.redo(),this.editor.layersPanel.populateLayers())}},{key:"changeRectRadius",value:function changeRectRadius(Tn){this.svgCanvas.setRectRadius(Tn.target.value)}},{key:"changeFontSize",value:function changeFontSize(Tn){this.svgCanvas.setFontSize(Tn.target.value)}},{key:"changeRotationAngle",value:function changeRotationAngle(Tn){this.svgCanvas.setRotationAngle(Tn.target.value),$("#tool_reorient").toggleClass("disabled",0===Number.parseInt(Tn.target.value))}},{key:"changeBlur",value:function changeBlur(Tn){this.svgCanvas.setBlur(Tn.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:"clickAlign",value:function clickAlign(Tn){this.svgCanvas.alignSelectedElements(Tn,$("#align_relative_to").val())}},{key:"attrChanger",value:function attrChanger(Tn){var Un=Tn.target.getAttribute("data-attr"),Dn=Tn.target.value;if(!uA(Un,Dn,this.selectedElement))return Tn.target.value=this.selectedElement().getAttribute(Un),alert(this.uiStrings.notification.invalidAttrValGiven),!1;if("id"!==Un&&"class"!==Un)if(isNaN(Dn))Dn=this.svgCanvas.convertToNum(Un,Dn);else if("px"!==this.editor.configObj.curConfig.baseUnit){var Qn=oA();(this.selectedElement[Un]||"pathedit"===this.svgCanvas.getMode()||"x"===Un||"y"===Un)&&(Dn*=Qn[this.editor.configObj.curConfig.baseUnit])}if("id"===Un){var Hn=this.selectedElement;this.svgCanvas.clearSelection(),Hn.id=Dn,this.svgCanvas.addToSelection([Hn],!0)}else this.svgCanvas.changeSelectedAttribute(Un,Dn);return!0}},{key:"convertToPath",value:function convertToPath(){UD(this.selectedElement)||this.svgCanvas.convertToPath()}},{key:"reorientPath",value:function reorientPath(){UD(this.selectedElement)||this.path.reorient()}},{key:"makeHyperlink",value:function makeHyperlink(){if(!UD(this.selectedElement)||this.multiselected){var Tn=prompt(this.uiStrings.notification.enterNewLinkURL,"http://");Tn&&this.svgCanvas.makeHyperlink(Tn)}}},{key:"linkControlPoints",value:function linkControlPoints(){var Tn=FD("tool_node_link").pressed;FD("tool_node_link").pressed=!Tn,this.path.linkControlPoints(Tn)}},{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 Tn=$("#tool_add_subpath"),Un=!Tn.hasClass("pressed");Tn.pressed=Un,this.path.addSubPath(Un)}},{key:"opencloseSubPath",value:function opencloseSubPath(){this.path.opencloseSubPath()}},{key:"deleteSelected",value:function deleteSelected(){UD(this.selectedElement)&&!this.multiselected||this.svgCanvas.deleteSelectedElements()}},{key:"moveToTopSelected",value:function moveToTopSelected(){UD(this.selectedElement)||this.svgCanvas.moveToTopSelectedElement()}},{key:"moveToBottomSelected",value:function moveToBottomSelected(){UD(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(Tn){return this.svgCanvas.setTextAnchor(Tn),this.updateContextPanel(),!1}},{key:"init",value:function init(){var Tn=this,Un=document.createElement("se-svg-source-editor-dialog");Un.setAttribute("id","se-svg-editor-dialog"),document.body.append(Un),FD("tool_source").addEventListener("click",this.showSourceEditor.bind(this)),FD("tool_wireframe").addEventListener("click",this.clickWireframe.bind(this)),FD("tool_undo").addEventListener("click",this.clickUndo.bind(this)),FD("tool_redo").addEventListener("click",this.clickRedo.bind(this)),FD("tool_clone").addEventListener("click",this.clickClone.bind(this)),FD("tool_clone_multi").addEventListener("click",this.clickClone.bind(this)),FD("tool_delete").addEventListener("click",this.deleteSelected.bind(this)),FD("tool_delete_multi").addEventListener("click",this.deleteSelected.bind(this)),FD("tool_move_top").addEventListener("click",this.moveToTopSelected.bind(this)),FD("tool_move_bottom").addEventListener("click",this.moveToBottomSelected.bind(this)),FD("tool_topath").addEventListener("click",this.convertToPath.bind(this)),FD("tool_make_link").addEventListener("click",this.makeHyperlink.bind(this)),FD("tool_make_link_multi").addEventListener("click",this.makeHyperlink.bind(this)),FD("tool_reorient").addEventListener("click",this.reorientPath.bind(this)),FD("tool_group_elements").addEventListener("click",this.clickGroup.bind(this)),FD("tool_align_left").addEventListener("click",(function(){return Tn.clickAlign.bind(Tn)("left")})),FD("tool_align_right").addEventListener("click",(function(){return Tn.clickAlign.bind(Tn)("right")})),FD("tool_align_center").addEventListener("click",(function(){return Tn.clickAlign.bind(Tn)("center")})),FD("tool_align_top").addEventListener("click",(function(){return Tn.clickAlign.bind(Tn)("top")})),FD("tool_align_bottom").addEventListener("click",(function(){return Tn.clickAlign.bind(Tn)("bottom")})),FD("tool_align_middle").addEventListener("click",(function(){return Tn.clickAlign.bind(Tn)("middle")})),FD("tool_node_clone").addEventListener("click",this.clonePathNode.bind(this)),FD("tool_node_delete").addEventListener("click",this.deletePathNode.bind(this)),FD("tool_openclose_path").addEventListener("click",this.opencloseSubPath.bind(this)),FD("tool_add_subpath").addEventListener("click",this.addSubPath.bind(this)),FD("tool_node_link").addEventListener("click",this.linkControlPoints.bind(this)),FD("angle").addEventListener("change",this.changeRotationAngle.bind(this)),FD("blur").addEventListener("change",this.changeBlur.bind(this)),FD("rect_rx").addEventListener("change",this.changeRectRadius.bind(this)),FD("font_size").addEventListener("change",this.changeFontSize.bind(this)),FD("tool_ungroup").addEventListener("click",this.clickGroup.bind(this)),FD("tool_bold").addEventListener("click",this.clickBold.bind(this)),FD("tool_italic").addEventListener("click",this.clickItalic.bind(this)),FD("tool_text_anchor_start").addEventListener("click",(function(){return Tn.clickTextAnchor.bind(Tn)("start")})),FD("tool_text_anchor_middle").addEventListener("click",(function(){return Tn.clickTextAnchor.bind(Tn)("middle")})),FD("tool_text_anchor_end").addEventListener("click",(function(){return Tn.clickTextAnchor.bind(Tn)("end")})),FD("tool_unlink_use").addEventListener("click",this.clickGroup.bind(this)),FD("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(Un){return FD(Un).addEventListener("change",Tn.attrChanger.bind(Tn))}))}},{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}(),RD=function(){function Rulers(Tn){_classCallCheck(this,Rulers),this.rulerIntervals=[];for(var Un=.1;Un<1e5;Un*=10)this.rulerIntervals.push(Un),this.rulerIntervals.push(2*Un),this.rulerIntervals.push(5*Un);this.svgCanvas=Tn.svgCanvas,this.editor=Tn}return _createClass(Rulers,[{key:"manageScroll",value:function manageScroll(){var Tn=document.getElementById("ruler_x"),Un=document.getElementById("ruler_y");Tn&&(Tn.scrollLeft=this.editor.workarea[0].scrollLeft),Un&&(Un.scrollTop=this.editor.workarea[0].scrollTop)}},{key:"updateRulers",value:function updateRulers(Tn,Un){var Dn,Qn;Un||(Un=this.svgCanvas.getZoom()),Tn||(Tn=$("#svgcanvas"));var Hn=3e4,Gn=this.svgCanvas.getContentElem(),Vn=oA()[this.editor.configObj.curConfig.baseUnit];for(Dn=0;Dn<2;Dn++){var zn=0===Dn,Kn=zn?"x":"y",$n=zn?"width":"height",Wn=Number(Gn.getAttribute(Kn)),Xn=$("#ruler_"+Kn+" canvas:first"),Yn=Xn.clone();Xn.replaceWith(Yn);var Jn=Yn[0],Zn=Tn[$n](),er=Zn;Jn.parentNode.style[$n]=er+"px";var tr=Jn.getContext("2d"),nr=void 0,rr=void 0,ir=void 0;if(tr.fillStyle="rgb(200,0,0)",tr.fillRect(0,0,Jn.width,Jn.height),Yn.siblings().remove(),Zn>=Hn){ir=Number.parseInt(Zn/Hn)+1,(nr=[])[0]=tr;var or=void 0;for(Qn=1;Qn<ir;Qn++)Jn[$n]=Hn,or=Jn.cloneNode(!0),Jn.parentNode.append(or),nr[Qn]=or.getContext("2d");or[$n]=Zn%Hn,Zn=Hn}Jn[$n]=Zn;var ar=Vn*Un,sr=50/ar,lr=1;for(Qn=0;Qn<this.rulerIntervals.length&&(lr=rr=this.rulerIntervals[Qn],!(sr<=rr));Qn++);var cr=lr*ar;tr.font="9px sans-serif";for(var ur=Wn/ar%lr*ar,dr=ur-cr,hr=0;ur<er;){dr+=cr;var pr=Math.round(ur)+.5;zn?(tr.moveTo(pr,15),tr.lineTo(pr,0)):(tr.moveTo(15,pr),tr.lineTo(0,pr)),rr=(dr-Wn)/ar;var gr=void 0;if(lr>=1)gr=Math.round(rr);else{var fr=String(lr).split(".")[1].length;gr=rr.toFixed(fr)}if(0!==gr&&1e3!==gr&&gr%1e3==0&&(gr=gr/1e3+"K"),zn)tr.fillText(gr,ur+2,8);else{var Ar=String(gr).split("");for(Qn=0;Qn<Ar.length;Qn++)tr.fillText(Ar[Qn],1,ur+9+9*Qn)}var mr=cr/10;for(Qn=1;Qn<10;Qn++){var vr=Math.round(ur+mr*Qn)+.5;if(nr&&vr>Zn){if(hr++,tr.stroke(),hr>=ir){Qn=10,ur=er;continue}tr=nr[hr],ur-=Hn,vr=Math.round(ur+mr*Qn)+.5}var yr=Qn%2?12:10;zn?(tr.moveTo(vr,15),tr.lineTo(vr,yr)):(tr.moveTo(15,vr),tr.lineTo(yr,vr))}ur+=cr}tr.strokeStyle="#000",tr.stroke()}}}]),Rulers}(),DD=function readySignal(){var Tn=window.opener||window.parent;if(Tn)try{var Un=new Tn.CustomEvent("svgEditorReady",{bubbles:!0,cancelable:!0});Tn.document.documentElement.dispatchEvent(Un)}catch(Tn){}},jD=AD.$id,QD=function(){function EditorStartup(){_classCallCheck(this,EditorStartup),this.extensionsAdded=!1,this.messageQueue=[]}var Tn,Un;return _createClass(EditorStartup,[{key:"init",value:(Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var Tn,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr,ir,or,ar,sr,lr,cr,ur,dr=this;return regeneratorRuntime.wrap((function _callee$(hr){for(;;)switch(hr.prev=hr.next){case 0:try{(Tn=document.createElement("se-img-prop-dialog")).setAttribute("id","se-img-prop"),document.body.append(Tn),(Un=document.createElement("se-edit-prefs-dialog")).setAttribute("id","se-edit-prefs"),document.body.append(Un),(Dn=document.createElement("se-cmenu_canvas-dialog")).setAttribute("id","se-cmenu_canvas"),document.body.append(Dn),(Qn=document.createElement("se-alert-dialog")).setAttribute("id","se-alert-dialog"),document.body.append(Qn),(Hn=document.createElement("se-prompt-dialog")).setAttribute("id","se-prompt-dialog"),document.body.append(Hn)}catch(Tn){console.error(Tn)}return"localStorage"in window&&(this.storage=window.localStorage),this.configObj.load(),this.svgCanvas=new AD(jD("svgcanvas"),this.configObj.curConfig),this.leftPanelHandlers=new TD(this),this.bottomPanelHandlers=new OD(this),this.topPanelHandlers=new MD(this),this.layersPanel=new ED(this),Gn=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",DD(),this.rulers=new RD(this),this.layersPanel.populateLayers(),this.selectedElement=null,this.multiselected=!1,$("#cur_context_panel").delegate("a","click",(function(Tn){var Un=$(Tn.currentTarget);return Un.attr("data-root")?dr.svgCanvas.leaveContext():dr.svgCanvas.setContext(Un.text()),dr.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(Tn,Un){Un.output&&(Un.exportWindowName&&(this.exportWindow=window.open("",this.exportWindowName)),this.exportWindow&&!this.exportWindow.closed?this.exportWindow.location.href=Un.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(Tn,Un){var Dn=Un.center,Qn=Un.newCtr;this.updateCanvas(Dn,Qn)}.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")),Vn=this.svgCanvas.getResolution(),"px"!==this.configObj.curConfig.baseUnit&&(Vn.w=sA(Vn.w)+this.configObj.curConfig.baseUnit,Vn.h=sA(Vn.h)+this.configObj.curConfig.baseUnit),$("#se-img-prop").attr("dialog","close"),$("#se-img-prop").attr("title",this.svgCanvas.getDocumentTitle()),$("#se-img-prop").attr("width",Vn.w),$("#se-img-prop").attr("height",Vn.h),$("#se-img-prop").attr("save",this.configObj.pref("img_save")),$("select").change((function(Tn){$(Tn.currentTarget).blur()})),zn=!1,$("#selLayerNames").change((function(Tn){var Un=Tn.currentTarget.options[Tn.currentTarget.selectedIndex].value,Dn=dr.uiStrings.notification.Qmovethis.elemsToLayer.replace("%s",Un),Qn=function moveToLayer(Tn){Tn&&(zn=!0,dr.svgCanvas.moveSelectedToLayer(Un),dr.svgCanvas.clearSelection(),dr.layersPanel.populateLayers())};if(Un)if(zn)Qn(!0);else{if(!seConfirm(Dn))return;Qn(!0)}})),$("#font_family").change((function(Tn){dr.svgCanvas.setFontFamily(Tn.currentTarget.value)})),$("#seg_type").change((function(Tn){dr.svgCanvas.setSegType($(Tn.currentTarget).val())})),$("#text").bind("keyup input",(function(Tn){dr.svgCanvas.setTextContent(Tn.currentTarget.value)})),$("#image_url").change((function(Tn){dr.setImageURL(Tn.currentTarget.value)})),$("#link_url").change((function(Tn){Tn.currentTarget.value.length?dr.svgCanvas.setLinkURL(Tn.currentTarget.value):dr.svgCanvas.removeHyperlink()})),$("#g_title").change((function(Tn){dr.svgCanvas.setGroupTitle(Tn.currentTarget.value)})),Kn=this.workarea[0],$n=null,Wn=null,Xn=!1,Yn=!1,$("#svgcanvas").bind("mousemove mouseup",(function(Tn){return!1===Xn||(Kn.scrollLeft-=Tn.clientX-$n,Kn.scrollTop-=Tn.clientY-Wn,$n=Tn.clientX,Wn=Tn.clientY,"mouseup"===Tn.type&&(Xn=!1),!1)})).mousedown((function(Tn){return 1!==Tn.button&&!0!==Yn||(Xn=!0,$n=Tn.clientX,Wn=Tn.clientY,!1)})),$(window).mouseup((function(){Xn=!1})),$(document).bind("keydown","space",function(Tn){this.svgCanvas.spaceKey=Yn=!0,Tn.preventDefault()}.bind(this)).bind("keyup","space",function(Tn){Tn.preventDefault(),this.svgCanvas.spaceKey=Yn=!1}.bind(this)).bind("keydown","shift",function(Tn){"zoom"===this.svgCanvas.getMode()&&this.workarea.css("cursor","crosshair")}.bind(this)).bind("keyup","shift",function(Tn){"zoom"===this.svgCanvas.getMode()&&this.workarea.css("cursor","crosshair")}.bind(this)),this.setPanning=function(Tn){dr.svgCanvas.spaceKey=Yn=Tn},Jn=$("#main_icon"),Zn=$("#main_icon span"),er=$("#main_menu"),tr=!1,nr=0,rr=!0,ir=!1,$(window).mouseup((function(Tn){tr||(Jn.removeClass("buttondown"),"INPUT"!==Tn.target.tagName?er.fadeOut(200):ir||(ir=!0,$(Tn.target).click((function(){er.css("margin-left","-9999px").show()})))),tr=!1})).mousedown((function(Tn){$(Tn.target).closest(".contextMenu").length||$(".contextMenu").fadeOut(250)})),Zn.bind("mousedown",(function(){Jn.hasClass("buttondown")?er.fadeOut(200):(er.css("margin-left",0).show(),nr||(nr=er.height()),er.css("height",0).animate({height:nr},200),tr=!0),Jn.toggleClass("buttondown buttonup")})).hover((function(){tr=!0})).mouseout((function(){tr=!1})),(or=$("#main_menu li")).mouseover((function(){var Tn=this;rr="rgba(0, 0, 0, 0)"===$(this).css("background-color"),or.unbind("mouseover"),rr&&or.mouseover((function(){Tn.style.backgroundColor="#FFC"})).mouseout((function(Tn){return Tn.currentTarget.style.backgroundColor="transparent",!0}))})),sr=function unfocus(){$(ar).blur()},$("#svg_editor").find("button, select, input:not(#text)").focus((function(){ar=dr,dr.uiContext="toolbars",dr.workarea.mousedown(sr)})).blur((function(){dr.uiContext="canvas",dr.workarea.unbind("mousedown",sr),"textedit"===dr.svgCanvas.getMode()&&$("#text").focus()})),lr={width:$(window).width(),height:$(window).height()},window.addEventListener("resize",(function(Tn){Object.entries(lr).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Dn=Un[0],Qn=Un[1],Hn=$(window)[Dn]();dr.workarea[0]["scroll"+("width"===Dn?"Left":"Top")]-=(Hn-Qn)/2,lr[Dn]=Hn}))})),this.workarea.scroll((function(){dr.rulers.manageScroll()})),$("#url_notice").click((function(){seAlert(dr.title)})),jD("stroke_width").value=this.configObj.curConfig.initStroke.width,jD("opacity").value=100*this.configObj.curConfig.initOpacity,$(".push_button").mousedown((function(){$(dr).hasClass("disabled")||$(dr).addClass("push_button_pressed").removeClass("push_button")})).mouseout((function(){$(dr).removeClass("push_button_pressed").addClass("push_button")})).mouseup((function(){$(dr).removeClass("push_button_pressed").addClass("push_button")})),this.layersPanel.populateLayers(),cr=function centerCanvas(){dr.workarea.css("line-height",dr.workarea.height()+"px")},$(window).bind("load resize",cr),$("input,select").attr("autocomplete","off"),this.leftPanelHandlers.init(),this.bottomPanelHandlers.init(),this.topPanelHandlers.init(),this.layersPanel.init(),jD("tool_clear").addEventListener("click",this.clickClear.bind(this)),jD("tool_open").addEventListener("click",(function(Tn){Tn.preventDefault(),dr.clickOpen(),window.dispatchEvent(new CustomEvent("openImage"))})),jD("tool_import").addEventListener("click",(function(Tn){dr.clickImport(),window.dispatchEvent(new CustomEvent("importImage"))})),jD("tool_save").addEventListener("click",function(Tn){"open"===document.getElementById("se-svg-editor-dialog").getAttribute("dialog")?this.saveSourceEditor():this.clickSave()}.bind(this)),jD("tool_export").addEventListener("click",this.clickExport.bind(this)),jD("tool_docprops").addEventListener("click",this.showDocProperties.bind(this)),jD("tool_editor_prefs").addEventListener("click",this.showPreferences.bind(this)),jD("tool_editor_homepage").addEventListener("click",this.openHomePage.bind(this)),jD("se-img-prop").addEventListener("change",function(Tn){"closed"===Tn.detail.dialog?this.hideDocProperties():this.saveDocProperties(Tn)}.bind(this)),jD("se-edit-prefs").addEventListener("change",function(Tn){"closed"===Tn.detail.dialog?this.hidePreferences():this.savePreferences(Tn)}.bind(this)),jD("se-svg-editor-dialog").addEventListener("change",function(Tn){var Un,Dn;"click"===(null==Tn||null===(Un=Tn.detail)||void 0===Un?void 0:Un.copy)?this.cancelOverlays(Tn):"closed"===(null==Tn||null===(Dn=Tn.detail)||void 0===Dn?void 0:Dn.dialog)?this.hideSourceEditor():this.saveSourceEditor(Tn)}.bind(this)),jD("se-cmenu_canvas").addEventListener("change",function(Tn){var Un,Dn=null==Tn||null===(Un=Tn.detail)||void 0===Un?void 0:Un.trigger;switch(Dn){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:SD(Dn)&&CD(Dn).call()}}.bind(this)),this.ready(function(){var Tn=jD("tool_".concat(this.configObj.curConfig.initTool)),Un=jD(this.configObj.curConfig.initTool),Dn=jD("tool_select"),Qn=jD("se-edit-prefs");Tn?Tn.click():Un?Un.click():Dn.click(),this.configObj.curConfig.wireframe&&jD("tool_wireframe").click(),$("#rulers").toggle(Boolean(this.configObj.curConfig.showRulers)),this.configObj.curConfig.showRulers&&Qn.setAttribute("showrulers",!0),this.configObj.curConfig.baseUnit&&Qn.setAttribute("baseunit",this.configObj.curConfig.baseUnit),this.configObj.curConfig.gridSnapping&&Qn.setAttribute("gridsnappingon",!0),this.configObj.curConfig.snappingStep&&Qn.setAttribute("gridsnappingstep",this.configObj.curConfig.snappingStep),this.configObj.curConfig.gridColor&&Qn.setAttribute("gridcolor",this.configObj.curConfig.gridColor)}.bind(this)),jD("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(Tn){"svgedit_clipboard"===Tn.key&&this.enableOrDisableClipboard()}.bind(this)),window.addEventListener("beforeunload",function(Tn){return 0===Gn.getUndoStackSize()&&(this.showSaveWarning=!1),!(!this.configObj.curConfig.no_save_warning&&this.showSaveWarning)||(Tn.returnValue=this.uiStrings.notification.unsavedChanges,this.uiStrings.notification.unsavedChanges)}.bind(this)),window.FileReader&&(ur=function importImage(Tn){$.process_cancel(this.uiStrings.notification.loadingImage),Tn.stopPropagation(),Tn.preventDefault(),$("#main_menu").hide();var Un,Dn="drop"===Tn.type?Tn.dataTransfer.files[0]:this.files[0];Dn?Dn.type.includes("image")&&(Dn.type.includes("svg")?((Un=new FileReader).onloadend=function(Tn){var Un=this.svgCanvas.importSvgString(Tn.target.result,!0);this.svgCanvas.ungroupSelectedElement(),this.svgCanvas.ungroupSelectedElement(),this.svgCanvas.groupSelectedElements(),this.svgCanvas.alignSelectedElements("m","page"),this.svgCanvas.alignSelectedElements("c","page"),this.svgCanvas.selectOnly([Un]),$("#dialog_box").hide()},Un.readAsText(Dn)):((Un=new FileReader).onloadend=function(Tn){var Un=Tn.target.result,Dn=100,Qn=100,Hn=new Image;Hn.style.opacity=0,Hn.addEventListener("load",(function(){Dn=Hn.offsetWidth||Hn.naturalWidth||Hn.width,Qn=Hn.offsetHeight||Hn.naturalHeight||Hn.height,function insertNewImage(Tn,Dn){var Qn=this.svgCanvas.addSVGElementFromJson({element:"image",attr:{x:0,y:0,width:Tn,height:Dn,id:this.svgCanvas.getNextId(),style:"pointer-events:inherit"}});this.svgCanvas.setHref(Qn,Un),this.svgCanvas.selectOnly([Qn]),this.svgCanvas.alignSelectedElements("m","page"),this.svgCanvas.alignSelectedElements("c","page"),this.topPanelHandlers.updateContextPanel(),$("#dialog_box").hide()}(Dn,Qn)})),Hn.src=Un},Un.readAsDataURL(Dn))):$("#dialog_box").hide()},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",ur)),this.updateCanvas(!0),this.extAndLocaleFunc(),this.ready((function(){kD()})),hr.next=109,this.runCallbacks();case 109:window.addEventListener("message",this.messageListener.bind(this));case 110:case"end":return hr.stop()}}),_callee,this)}))),function init(){return Un.apply(this,arguments)})},{key:"extAndLocaleFunc",value:(Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee4(){var Tn,Un,Dn,Qn=this;return regeneratorRuntime.wrap((function _callee4$(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,this.putLocale(this.configObj.pref("lang"),this.goodLangs);case 2:return Tn=Hn.sent,Un=Tn.langParam,Dn=Tn.langData,Hn.next=7,this.setLang(Un,Dn);case 7:return jD("svg_container").style.visibility="visible",Hn.prev=8,Hn.next=11,Promise.all(this.configObj.curConfig.extensions.map(function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(Tn){var Dn,Hn,Gn,Vn,zn;return regeneratorRuntime.wrap((function _callee2$(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:return Kn.prev=0,Kn.next=3,import("./extensions/".concat(encodeURIComponent(Tn),"/").concat(encodeURIComponent(Tn),".js"));case 3:return Dn=Kn.sent,Hn=Dn.default,Gn=Hn.name,Vn=void 0===Gn?Tn:Gn,zn=Hn.init,Kn.abrupt("return",Qn.addExtension(Vn,zn&&zn.bind(Qn),{$:$,langParam:Un}));case 8:return Kn.prev=8,Kn.t0=Kn.catch(0),console.error("Extension failed to load: "+Tn+"; ",Kn.t0),Kn.abrupt("return",void 0);case 12:case"end":return Kn.stop()}}),_callee2,null,[[0,8]])})));return function(Un){return Tn.apply(this,arguments)}}()));case 11:return Hn.next=13,Promise.all(this.configObj.curConfig.userExtensions.map(function(){var Tn=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(Tn){var Dn,Hn,Gn,Vn;return regeneratorRuntime.wrap((function _callee3$(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.prev=0,zn.next=3,import(encodeURI(Tn));case 3:return Dn=zn.sent,Hn=Dn.default,Gn=Hn.name,Vn=Hn.init,zn.abrupt("return",Qn.addExtension(Gn,Vn&&Vn.bind(Qn),{$:$,langParam:Un}));case 8:return zn.prev=8,zn.t0=zn.catch(0),console.error("Extension failed to load: "+Tn+"; ",zn.t0),zn.abrupt("return",void 0);case 12:case"end":return zn.stop()}}),_callee3,null,[[0,8]])})));return function(Un){return Tn.apply(this,arguments)}}()));case 13:this.svgCanvas.bind("extensions_added",(function(Tn,Un){Qn.extensionsAdded=!0,Qn.setAll(),"ignore"===Qn.storagePromptState&&Qn.updateCanvas(!0),Qn.messageQueue.forEach((function(Tn){Qn.svgCanvas.call("message",Tn)}))})),this.svgCanvas.call("extensions_added"),Hn.next=20;break;case 17:Hn.prev=17,Hn.t0=Hn.catch(8),console.log(Hn.t0);case 20:case"end":return Hn.stop()}}),_callee4,this,[[8,17]])}))),function extAndLocaleFunc(){return Tn.apply(this,arguments)})},{key:"messageListener",value:function messageListener(Tn){var Un={data:Tn.data,origin:Tn.origin};this.extensionsAdded?this.svgCanvas.call("message",Un):this.messageQueue.push(Un)}}]),EditorStartup}(),HD=AD.$id,GD=AD.$qa,VD=AD.isNullish,zD=AD.encode64,KD=AD.decode64,qD=AD.blankPageObjectURL,$D=[function jQueryPluginJSHotkeys(Tn){function a(Un){if("string"==typeof Un.data){var Dn=Un.handler,Qn=Un.data.toLowerCase().split(" ");Un.handler=function(Un){if(this===Un.target||27===Un.which||!/textarea|select/i.test(Un.target.nodeName)&&"text"!==Un.target.type){var Hn="keypress"!==Un.type&&Tn.hotkeys.specialKeys[Un.which],Gn=String.fromCharCode(Un.which).toLowerCase(),Vn="",zn={};Un.altKey&&"alt"!==Hn&&(Vn+="alt+"),Un.ctrlKey&&"ctrl"!==Hn&&(Vn+="ctrl+"),Un.metaKey&&!Un.ctrlKey&&"meta"!==Hn&&(Vn+="meta+"),Un.shiftKey&&"shift"!==Hn&&(Vn+="shift+"),Hn?zn[Vn+Hn]=!0:(zn[Vn+Gn]=!0,zn[Vn+Tn.hotkeys.shiftNums[Gn]]=!0,"shift+"===Vn&&(zn[Tn.hotkeys.shiftNums[Gn]]=!0));for(var Kn=0,$n=Qn.length;Kn<$n;Kn++)if(zn[Qn[Kn]])return Dn.apply(this,arguments)}}}}return Tn.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:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}},Tn.each(["keydown","keyup","keypress"],(function(){Tn.event.special[this]={add:a}})),Tn}].reduce((function(Tn,Un){return Un(Tn)}),jQuery),WD=new(function(Tn){_inherits(Editor,QD);var Un,Dn,Qn,Hn,Gn=_createSuper(Editor);function Editor(){var Tn;_classCallCheck(this,Editor),(Tn=Gn.call(this)).tool_scale=1,Tn.exportWindowCt=0,Tn.langChanged=!1,Tn.showSaveWarning=!1,Tn.storagePromptState="ignore",Tn.putLocale=wD,Tn.readLang=bD,Tn.setStrings=_D,Tn.uiStrings={},Tn.svgCanvas=null,Tn.isReady=!1,Tn.customExportImage=!1,Tn.customExportPDF=!1,Tn.configObj=new yD(_assertThisInitialized(Tn)),Tn.configObj.pref=Tn.configObj.pref.bind(Tn.configObj),Tn.setConfig=Tn.configObj.setConfig.bind(Tn.configObj),Tn.callbacks=[],Tn.curContext=null,Tn.exportWindowName=null,Tn.docprops=!1,Tn.configObj.preferences=!1,Tn.canvMenu=null,Tn.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 Un=function isMac(){return DA}()?"meta+":"ctrl+";return Tn.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:Tn.selectPrev},{key:"shift+P",fn:Tn.selectNext},{key:[Un+"up",!0],fn:function fn(){this.zoomImage(2)}},{key:[Un+"down",!0],fn:function fn(){this.zoomImage(.5)}},{key:[Un+"]",!0],fn:function fn(){this.moveUpDownSelected("Up")}},{key:[Un+"[",!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:Un+"a",fn:function fn(){this.svgCanvas.selectAllInCurrentLayer()}},{key:Un+"x",fn:Tn.cutSelected},{key:Un+"c",fn:Tn.copySelected},{key:Un+"v",fn:Tn.pasteInCenter}],Tn}return _createClass(Editor,[{key:"loadSvgString",value:function loadSvgString(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Dn=Un.noAlert,Qn=!1!==this.svgCanvas.setSvgString(Tn);if(!Qn)throw Dn||seAlert(this.uiStrings.notification.errorLoadingSVG),new Error("Error loading SVG")}},{key:"setCustomHandlers",value:function setCustomHandlers(Tn){var Un=this;return this.ready((function(){Tn.open&&(Un.svgCanvas.open=Tn.open.bind(Un)),Tn.save&&(Un.showSaveWarning=!1,Un.svgCanvas.bind("saved",Tn.save.bind(Un))),Tn.exportImage&&(Un.customExportImage=Tn.exportImage.bind(Un),Un.svgCanvas.bind("exported",Un.customExportImage)),Tn.exportPDF&&(Un.customExportPDF=Tn.exportPDF.bind(Un),Un.svgCanvas.bind("exportedPDF",Un.customExportPDF))}))}},{key:"randomizeIds",value:function randomizeIds(Tn){this.svgCanvas.randomizeIds(Tn)}},{key:"setAll",value:function setAll(){var Tn={};this.toolButtons.forEach((function(Un){if(Un.key){var Dn=Un.key,Qn=!1;Array.isArray(Un.key)&&(Dn=Un.key[0],Un.key.length>1&&(Qn=Un.key[1])),Dn=String(Dn);var Hn=Un.fn;Dn.split("/").forEach((function(Un){Tn[Un]={fn:Hn,pd:Qn}}))}return!0})),document.addEventListener("keydown",(function(Un){if("BODY"===Un.target.nodeName){var Dn="".concat(Un.metaKey?"meta+":"").concat(Un.ctrlKey?"ctrl+":"").concat(Un.key.toLowerCase());Tn[Dn]&&(Tn[Dn].fn(),Tn[Dn].pd&&Un.preventDefault())}})),$D(".attr_changer, #image_url").bind("keydown","return",(function(Tn){$D(this).change(),Tn.preventDefault()})),$D(window).bind("keydown","tab",function(Tn){"canvas"===this.uiContext&&(Tn.preventDefault(),this.selectNext())}.bind(this)).bind("keydown","shift+tab",function(Tn){"canvas"===this.uiContext&&(Tn.preventDefault(),this.selectPrev())}.bind(this))}},{key:"setTitles",value:function setTitles(){var Tn=this;Object.entries({"4/Shift+4":"#tools_rect","5/Shift+5":"#tools_ellipse"}).forEach((function(Un){var Dn=_slicedToArray(Un,2),Qn=Dn[0],Hn=Dn[1],Gn=$D(Hn).parents("#main_menu").length;GD(Hn).forEach((function(Un){var Dn=Gn?$D(Un).text().split(" [")[0]:Un.title.split(" [")[0],Hn="";Qn.split("/").forEach((function(Un,Dn){var Qn=Un.split("+"),Gn="";Qn.length>1&&(Gn=Qn[0]+"+",Un=Qn[1]),Hn+=(Dn?"/":"")+Gn+(Tn.uiStrings["key_"+Un]||Un)})),Gn?Tn.lastChild.textContent=Dn+" ["+Hn+"]":Tn.title=Dn+" ["+Hn+"]"}))}))}},{key:"getButtonData",value:function getButtonData(Tn){return Object.values(this.toolButtons).find((function(Un){return Un.sel===Tn}))}},{key:"getUIStrings",value:function getUIStrings(){return this.uiStrings}},{key:"togglePathEditMode",value:function togglePathEditMode(Tn,Un){$D("#path_node_panel").toggle(Tn),Tn?($D(".tool_button_current").removeClass("tool_button_current").addClass("tool_button"),$D("#tool_select").addClass("tool_button_current").removeClass("tool_button"),this.multiselected=!1,Un.length&&(this.selectedElement=this.elems[0])):setTimeout((function(){}),1e3)}},{key:"exportHandler",value:function exportHandler(Tn,Un){var Dn=Un.issues,Qn=Un.exportWindowName;if(this.exportWindow=window.open(qD||"",Qn),this.exportWindow&&!this.exportWindow.closed){if(this.exportWindow.location.href=Un.bloburl||Un.datauri,"all"!==this.configObj.pref("export_notice_done")){var Hn=this.uiStrings.notification.saveFromBrowser.replace("%s",Un.type);if(Dn.length){var Gn="\n • ";Hn+="\n\n"+this.uiStrings.notification.noteTheseIssues+Gn+Dn.join(Gn)}this.configObj.pref("export_notice_done","all"),this.exportWindow.seAlert(Hn)}}else seAlert(this.uiStrings.notification.popupWindowBlocked)}},{key:"setStrokeOpt",value:function setStrokeOpt(Tn,Un){var Dn=_slicedToArray(Tn.id.split("_"),2),Qn=Dn[0],Hn=Dn[1];Un&&this.svgCanvas.setStrokeAttr("stroke-"+Qn,Hn),$D(Tn).addClass("current").siblings().removeClass("current")}},{key:"setImageURL",value:function setImageURL(Tn){Tn||(Tn=this.defaultImageURL),this.svgCanvas.setImageURL(Tn),$D("#image_url").val(Tn),Tn.startsWith("data:")?($D("#image_url").hide(),$D("#change_image_url").show()):(this.svgCanvas.embedImage(Tn,(function(Un){$D("#url_notice").toggle(!Un),this.defaultImageURL=Tn})),$D("#image_url").show(),$D("#change_image_url").hide())}},{key:"setBackground",value:function setBackground(Tn,Un){this.configObj.pref("bkgd_color",Tn),this.configObj.pref("bkgd_url",Un,!0),this.svgCanvas.setBackground(Tn,Un)}},{key:"updateCanvas",value:function updateCanvas(Tn,Un){var Dn=this.svgCanvas.getZoom(),Qn=this.workarea,Hn=$D("#svgcanvas"),Gn=this.workarea.width(),Vn=this.workarea.height(),zn=Gn,Kn=Vn,$n=Qn[0].scrollLeft+zn/2,Wn=Qn[0].scrollTop+Kn/2,Xn=this.configObj.curConfig.canvas_expansion;Gn=Math.max(zn,this.svgCanvas.contentW*Dn*Xn),Vn=Math.max(Kn,this.svgCanvas.contentH*Dn*Xn),Gn===zn&&Vn===Kn?this.workarea.css("overflow","hidden"):this.workarea.css("overflow","scroll");var Yn=Hn.height()/2,Jn=Hn.width()/2;Hn.width(Gn).height(Vn);var Zn=Vn/2,er=Gn/2,tr=this.svgCanvas.updateCanvas(Gn,Vn),nr=er/Jn,rr=Gn/2-zn/2,ir=Vn/2-Kn/2;Un?(Un.x+=tr.x,Un.y+=tr.y):Un={x:er+($n-Jn)*nr,y:Zn+(Wn-Yn)*nr};Tn?this.svgCanvas.contentW>Qn.width()?(this.workarea[0].scrollLeft=tr.x-10,this.workarea[0].scrollTop=tr.y-10):(Qn[0].scrollLeft=rr,Qn[0].scrollTop=ir):(Qn[0].scrollLeft=Un.x-zn/2,Qn[0].scrollTop=Un.y-Kn/2),this.configObj.curConfig.showRulers&&(this.rulers.updateRulers(Hn,Dn),this.workarea.scroll()),!0!==this.configObj.urldata.storagePrompt&&"ignore"===this.storagePromptState&&$D("#dialog_box").hide()}},{key:"updateToolbar",value:function updateToolbar(){var Tn,Un;if(!VD(this.selectedElement))switch(this.selectedElement.tagName){case"use":case"image":case"foreignObject":break;case"g":case"a":var Dn=this.selectedElement.getElementsByTagName("*"),Qn=null;for(Tn=0,Un=Dn.length;Tn<Un;Tn++){var Hn=Dn[Tn].getAttribute("stroke-width");0===Tn?Qn=Hn:Qn!==Hn&&(Qn=null)}$D("#stroke_width").val(null===Qn?"":Qn),this.bottomPanelHandlers.updateColorpickers(!0);break;default:this.bottomPanelHandlers.updateColorpickers(!0),$D("#stroke_width").val(this.selectedElement.getAttribute("stroke-width")||1),$D("#stroke_style").val(this.selectedElement.getAttribute("stroke-dasharray")||"none");var Gn=this.selectedElement.getAttribute("stroke-linejoin")||"miter";$D("#linejoin_"+Gn).length&&this.setStrokeOpt($D("#linejoin_"+Gn)[0]),Gn=this.selectedElement.getAttribute("stroke-linecap")||"butt",$D("#linecap_"+Gn).length&&this.setStrokeOpt($D("#linecap_"+Gn)[0])}VD(this.selectedElement)||(HD("elem_id").value=this.selectedElement.id,HD("elem_class").value=null!==this.selectedElement.getAttribute("class")?this.selectedElement.getAttribute("class"):""),this.bottomPanelHandlers.updateToolButtonState()}},{key:"updateWireFrame",value:function updateWireFrame(){var Tn="\n #workarea.wireframe #svgcontent * {\n stroke-width: ".concat(1/this.svgCanvas.getZoom(),"px;\n }\n ");$D("#wireframe_rules").text(this.workarea.hasClass("wireframe")?Tn:"")}},{key:"updateTitle",value:function updateTitle(Tn){Tn=Tn||this.svgCanvas.getDocumentTitle();var Un=document.querySelector("title").text+(Tn?": "+Tn:"");$D("title:first").text(Un)}},{key:"selectedChanged",value:function selectedChanged(Tn,Un){var Dn=this.svgCanvas.getMode();"select"===Dn&&this.leftPanelHandlers.clickSelect();var Qn="pathedit"===Dn;this.selectedElement=1===Un.length||VD(Un[1])?Un[0]:null,this.multiselected=Un.length>=2&&!VD(Un[1]),VD(this.selectedElement)||Qn||this.updateToolbar(),this.togglePathEditMode(Qn,Un),this.topPanelHandlers.updateContextPanel(),this.svgCanvas.runExtensions("selectedChanged",{elems:Un,selectedElement:this.selectedElement,multiselected:this.multiselected})}},{key:"elementTransition",value:function elementTransition(Tn,Un){var Dn=this.svgCanvas.getMode(),Qn=Un[0];if(Qn){if(this.multiselected=Un.length>=2&&!VD(Un[1]),!this.multiselected)switch(Dn){case"rotate":var Hn=this.svgCanvas.getRotationAngle(Qn);$D("#angle").val(Hn),$D("#tool_reorient").toggleClass("disabled",0===Hn)}this.svgCanvas.runExtensions("elementTransition",{elems:Un})}}},{key:"elementChanged",value:function elementChanged(Tn,Un){var Dn=this,Qn=this.svgCanvas.getMode();"select"===Qn&&this.leftPanelHandlers.clickSelect(),Un.forEach((function(Tn){var Un=Tn&&"svg"===Tn.tagName;Un||Dn.svgCanvas.isLayer(Tn)?(Dn.layersPanel.populateLayers(),Un&&Dn.updateCanvas()):Tn&&Dn.selectedElement&&VD(Dn.selectedElement.parentNode)&&(Dn.selectedElement=Tn)})),this.showSaveWarning=!0,this.topPanelHandlers.updateContextPanel(),this.selectedElement&&"select"===Qn&&this.bottomPanelHandlers.updateColorpickers(),this.svgCanvas.runExtensions("elementChanged",{elems:Un})}},{key:"zoomDone",value:function zoomDone(){this.updateWireFrame()}},{key:"zoomChanged",value:function zoomChanged(Tn,Un,Dn){var Qn=this.workarea,Hn=this.svgCanvas.setBBoxZoom(Un,Qn.width()-15,Qn.height()-15);if(Hn){var Gn=Hn.zoom,Vn=Hn.bbox;Gn<.001?this.changeZoom(.1):(HD("zoom").value=(100*this.svgCanvas.getZoom()).toFixed(1),Dn?this.updateCanvas():this.updateCanvas(!1,{x:Vn.x*Gn+Vn.width*Gn/2,y:Vn.y*Gn+Vn.height*Gn/2}),"zoom"===this.svgCanvas.getMode()&&Vn.width&&this.leftPanelHandlers.clickSelect(),this.zoomDone())}}},{key:"contextChanged",value:function contextChanged(Tn,Un){var Dn=this,Qn="";if(Un){var Hn="";Qn='<a href="#" data-root="y">'+this.svgCanvas.getCurrentDrawing().getCurrentLayerName()+"</a>",$D(Un).parentsUntil("#svgcontent > g").andSelf().each((function(){Dn.id&&(Hn+=" > "+Dn.id,Qn+=Dn!==Un?' > <a href="#">'.concat(Dn.id,"</a>"):" > ".concat(Dn.id))})),this.curContext=Hn}else this.curContext=null;$D("#cur_context_panel").toggle(Boolean(Un)).html(Qn),this.updateTitle()}},{key:"extAdded",value:(Hn=_asyncToGenerator(regeneratorRuntime.mark((function _callee(Tn,Un){var Dn,Qn,Hn;return regeneratorRuntime.wrap((function _callee$(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:if(Un){Tn.next=2;break}return Tn.abrupt("return",void 0);case 2:if(Dn=!1,!Un.langReady||!this.langChanged){Tn.next=7;break}return Qn=this.configObj.pref("lang"),Tn.next=7,Un.langReady({lang:Qn});case 7:return Hn=function runCallback(){Un.callback&&!Dn&&(Dn=!0,Un.callback.call(WD))},Un.context_tools&&$D.each(Un.context_tools,(function(Tn,Un){var Dn,Qn=Un.container_id?' id="'+Un.container_id+'"':"",Hn=$D("#"+Un.panel);switch(Hn.length||(Hn=$D("<div>",{id:Un.panel}).appendTo("#tools_top")),Un.type){case"tool_button":Dn='<div class="tool_button">'+Un.id+"</div>";var Gn=$D(Dn).appendTo(Hn);Un.events&&$D.each(Un.events,(function(Tn,Un){$D(Gn).bind(Tn,Un)}));break;case"select":Dn="<label"+Qn+'><select id="'+Un.id+'">',$D.each(Un.options,(function(Tn,Qn){var Hn=Tn===Un.defval?" selected":"";Dn+='<option value="'+Tn+'"'+Hn+">"+Qn+"</option>"}));var Vn=$D(Dn+="</select></label>").appendTo(Hn).find("select");$D.each(Un.events,(function(Tn,Un){$D(Vn).bind(Tn,Un)}));break;case"button-select":Dn='<div id="'+Un.id+'" class="dropdown toolset" title="'+Un.title+'"><div id="cur_'+Un.id+'" class="icon_label"></div><button></button></div>';var zn=$D('<ul id="'+Un.id+'_opts"></ul>').appendTo("#option_lists");Un.colnum&&zn.addClass("optcols"+Un.colnum),$D(Dn).appendTo(Hn).children();break;case"input":Dn="<label"+Qn+'><span id="'+Un.id+'_label">'+Un.label+':</span><input id="'+Un.id+'" title="'+Un.title+'" size="'+(Un.size||"4")+'" value="'+(Un.defval||"")+'" type="text"/></label>';var Kn=$D(Dn).appendTo(Hn).find("input");Un.events&&$D.each(Un.events,(function(Tn,Un){Kn.bind(Tn,Un)}))}})),Un.events&&this.leftPanelHandlers.add(Un.events.id,Un.events.click),Tn.abrupt("return",Hn());case 11:case"end":return Tn.stop()}}),_callee,this)}))),function extAdded(Tn,Un){return Hn.apply(this,arguments)})},{key:"zoomImage",value:function zoomImage(Tn){var Un=this.svgCanvas.getResolution();Tn=Tn?Un.zoom*Tn:1,HD("zoom").value=(100*Tn).toFixed(1),this.svgCanvas.setZoom(Tn),this.zoomDone(),this.updateCanvas(!0)}},{key:"cutSelected",value:function cutSelected(){VD(this.selectedElement)&&!this.multiselected||this.svgCanvas.cutSelectedElements()}},{key:"copySelected",value:function copySelected(){VD(this.selectedElement)&&!this.multiselected||this.svgCanvas.copySelectedElements()}},{key:"pasteInCenter",value:function pasteInCenter(){var Tn=this.svgCanvas.getZoom(),Un=(this.workarea[0].scrollLeft+this.workarea.width()/2)/Tn-this.svgCanvas.contentW,Dn=(this.workarea[0].scrollTop+this.workarea.height()/2)/Tn-this.svgCanvas.contentH;this.svgCanvas.pasteElements("point",Un,Dn)}},{key:"moveUpDownSelected",value:function moveUpDownSelected(Tn){VD(this.selectedElement)||this.svgCanvas.moveUpDownSelected(Tn)}},{key:"moveSelected",value:function moveSelected(Tn,Un){if(!VD(this.selectedElement)||this.multiselected){if(this.configObj.curConfig.gridSnapping){var Dn=this.svgCanvas.getZoom()*this.configObj.curConfig.snappingStep;Tn*=Dn,Un*=Dn}this.svgCanvas.moveSelectedElements(Tn,Un)}}},{key:"selectNext",value:function selectNext(){this.svgCanvas.cycleElement(1)}},{key:"selectPrev",value:function selectPrev(){this.svgCanvas.cycleElement(0)}},{key:"rotateSelected",value:function rotateSelected(Tn,Un){if(!VD(this.selectedElement)&&!this.multiselected){Tn||(Un*=-1);var Dn=Number.parseFloat($D("#angle").val())+Un;this.svgCanvas.setRotationAngle(Dn),this.topPanelHandlers.updateContextPanel()}}},{key:"clickClear",value:function clickClear(){var Tn=_slicedToArray(this.configObj.curConfig.dimensions,2),Un=Tn[0],Dn=Tn[1];seConfirm(this.uiStrings.notification.QwantToClear)&&(this.leftPanelHandlers.clickSelect(),this.svgCanvas.clear(),this.svgCanvas.setResolution(Un,Dn),this.updateCanvas(!0),this.zoomImage(),this.layersPanel.populateLayers(),this.topPanelHandlers.updateContextPanel(),this.svgCanvas.runExtensions("onNewDocument"))}},{key:"clickSave",value:function clickSave(){var Tn={images:this.configObj.pref("img_save"),round_digits:6};this.svgCanvas.save(Tn)}},{key:"clickExport",value:(Qn=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var Tn,Un,Dn,Qn=this;return regeneratorRuntime.wrap((function _callee2$(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,seSelect("Select an image type for export: ",["PNG","JPEG","BMP","WEBP","PDF"]);case 2:if(Tn=Hn.sent){Hn.next=5;break}return Hn.abrupt("return");case 5:if(Un=function openExportWindow(){var Tn,Un,Dn=Qn.uiStrings.notification.loadingImage;if("new"===Qn.configObj.curConfig.exportWindowType&&Qn.exportWindowCt++,Qn.exportWindowName=Qn.configObj.curConfig.canvasName+Qn.exportWindowCt,Qn.loadingURL)Un=Qn.loadingURL;else{if(Tn='<!DOCTYPE html><html>\n <head>\n <meta charset="utf-8">\n <title>'.concat(Dn,"</title>\n </head>\n <body><h1>").concat(Dn,"</h1></body>\n <html>"),"undefined"!=typeof URL&&URL.createObjectURL){var Hn=new Blob([Tn],{type:"text/html"});Un=URL.createObjectURL(Hn)}else Un="data:text/html;base64;charset=utf-8,"+zD(Tn);Qn.loadingURL=Un}Qn.exportWindow=window.open(Un,Qn.exportWindowName)},Dn=JA(),"PDF"!==Tn){Hn.next=12;break}this.customExportPDF||Dn||Un(),this.svgCanvas.exportPDF(void 0),Hn.next=16;break;case 12:return this.customExportImage||Un(),Hn.next=16,this.svgCanvas.rasterExport(Tn,1,this.exportWindowName);case 16:case"end":return Hn.stop()}}),_callee2,this)}))),function clickExport(){return Qn.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 Tn=document.getElementById("se-img-prop"),Un=this.svgCanvas.getResolution();"px"!==this.configObj.curConfig.baseUnit&&(Un.w=sA(Un.w)+this.configObj.curConfig.baseUnit,Un.h=sA(Un.h)+this.configObj.curConfig.baseUnit),Tn.setAttribute("save",this.configObj.pref("img_save")),Tn.setAttribute("width",Un.w),Tn.setAttribute("height",Un.h),Tn.setAttribute("title",this.svgCanvas.getDocumentTitle()),Tn.setAttribute("dialog","open")}}},{key:"showPreferences",value:function showPreferences(){if(!this.configObj.preferences){this.configObj.preferences=!0;var Tn=document.getElementById("se-edit-prefs");$D("#main_menu").hide();var Un=this.configObj.curPrefs.bkgd_color,Dn=this.configObj.pref("bkgd_url");Dn&&Tn.setAttribute("bgurl",Dn),Tn.setAttribute("gridsnappingon",this.configObj.curConfig.gridSnapping),Tn.setAttribute("gridsnappingstep",this.configObj.curConfig.snappingStep),Tn.setAttribute("gridcolor",this.configObj.curConfig.gridColor),Tn.setAttribute("canvasbg",Un),Tn.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:function saveSourceEditor(Tn){var Un=this;if("open"===document.getElementById("se-svg-editor-dialog").getAttribute("dialog")){var Dn=function saveChanges(){Un.svgCanvas.clearSelection(),Un.hideSourceEditor(),Un.zoomImage(),Un.layersPanel.populateLayers(),Un.updateTitle()};if(this.svgCanvas.setSvgString(Tn.detail.value))Dn(),this.leftPanelHandlers.clickSelect();else{if(!seConfirm(this.uiStrings.notification.QerrorsRevertToSource))return;Dn()}}}},{key:"hideDocProperties",value:function hideDocProperties(){var Tn=document.getElementById("se-img-prop");Tn.setAttribute("dialog","close"),Tn.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(Tn){var Un=Tn.detail,Dn=Un.title,Qn=Un.w,Hn=Un.h,Gn=Un.save;return this.svgCanvas.setDocumentTitle(Dn),("fit"===Qn||uA("width",Qn))&&("fit"===Hn||uA("height",Hn))?this.svgCanvas.setResolution(Qn,Hn)?(this.configObj.pref("img_save",Gn),this.updateCanvas(),this.hideDocProperties(),!0):(seAlert(this.uiStrings.notification.noContentToFitTo),!1):(seAlert(this.uiStrings.notification.invalidAttrValGiven),!1)}},{key:"savePreferences",value:(Dn=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(Tn){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn;return regeneratorRuntime.wrap((function _callee3$(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(Un=Tn.detail,Dn=Un.lang,Qn=Un.bgcolor,Hn=Un.bgurl,Gn=Un.gridsnappingon,Vn=Un.gridsnappingstep,zn=Un.gridcolor,Kn=Un.showrulers,$n=Un.baseunit,this.setBackground(Qn,Hn),!Dn||Dn===this.configObj.pref("lang")){Jn.next=10;break}return Jn.next=5,this.putLocale(Dn,this.goodLangs);case 5:return Wn=Jn.sent,Xn=Wn.langParam,Yn=Wn.langData,Jn.next=10,this.setLang(Xn,Yn);case 10:this.configObj.curConfig.gridSnapping=Gn,this.configObj.curConfig.snappingStep=Vn,this.configObj.curConfig.gridColor=zn,this.configObj.curConfig.showRulers=Kn,$D("#rulers").toggle(this.configObj.curConfig.showRulers),this.configObj.curConfig.showRulers&&this.rulers.updateRulers(),this.configObj.curConfig.baseUnit=$n,this.svgCanvas.setConfig(this.configObj.curConfig),this.updateCanvas(),this.hidePreferences();case 20:case"end":return Jn.stop()}}),_callee3,this)}))),function savePreferences(Tn){return Dn.apply(this,arguments)})},{key:"cancelOverlays",value:function cancelOverlays(Tn){$D("#dialog_box").hide();var Un="open"===document.getElementById("se-svg-editor-dialog").getAttribute("dialog");Un||this.docprops||this.configObj.preferences?Un&&(this.svgCanvas.getSvgString()!==Tn.detail.value?seConfirm(this.uiStrings.notification.QignoreSourceChanges)&&this.hideSourceEditor():this.hideSourceEditor()):this.curContext&&this.svgCanvas.leaveContext()}},{key:"enableOrDisableClipboard",value:function enableOrDisableClipboard(){var Tn;try{Tn=this.localStorage.getItem("svgedit_clipboard")}catch(Tn){}this.canvMenu.setAttribute((Tn?"en":"dis")+"ablemenuitems","#paste,#paste_in_place")}},{key:"openPrep",value:function openPrep(){return $D("#main_menu").hide(),0===this.svgCanvas.undoMgr.getUndoStackSize()||seConfirm(this.uiStrings.notification.QwantToOpen)}},{key:"onDragEnter",value:function onDragEnter(Tn){Tn.stopPropagation(),Tn.preventDefault()}},{key:"onDragOver",value:function onDragOver(Tn){Tn.stopPropagation(),Tn.preventDefault()}},{key:"onDragLeave",value:function onDragLeave(Tn){Tn.stopPropagation(),Tn.preventDefault()}},{key:"setLang",value:function setLang(Tn,Un){var Dn=this;if(this.langChanged=!0,this.configObj.pref("lang",Tn),document.getElementById("se-edit-prefs").setAttribute("lang",Tn),Un){document.documentElement.lang=Un.lang,$D.extend(this.uiStrings,Un);var Qn=$D("#layerlist tr.layersel td.layername").text()===this.uiStrings.common.layer+" 1";this.svgCanvas.setUiStrings(Un),this.setTitles(),Qn&&(this.svgCanvas.renameCurrentLayer(this.uiStrings.common.layer+" 1"),this.layersPanel.populateLayers()),this.svgCanvas.runExtensions("langChanged",Tn),this.elems={"#stroke_color":"#tool_stroke .icon_label, #tool_stroke .color_block","#fill_color":"#tool_fill label, #tool_fill .color_block","#linejoin_miter":"#cur_linejoin","#linecap_butt":"#cur_linecap"},$D.each(this.elems,(function(Tn,Un){$D(Un).attr("title",$D(Tn)[0].title)})),$D("#multiselected_panel div[id^=tool_align]").each((function(){$D("#tool_pos"+Dn.id.substr(10))[0].title=Dn.title}))}}},{key:"ready",value:function ready(Tn){var Un=this;return new Promise((function(Dn,Qn){Un.isReady?Dn(Tn()):Un.callbacks.push([Tn,Dn,Qn])}))}},{key:"runCallbacks",value:(Un=_asyncToGenerator(regeneratorRuntime.mark((function _callee4(){return regeneratorRuntime.wrap((function _callee4$(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.prev=0,Tn.next=3,Promise.all(this.callbacks.map((function(Tn){return(0,_slicedToArray(Tn,1)[0])()})));case 3:Tn.next=9;break;case 5:throw Tn.prev=5,Tn.t0=Tn.catch(0),this.callbacks.forEach((function(Tn){(0,_slicedToArray(Tn,3)[2])()})),Tn.t0;case 9:this.callbacks.forEach((function(Tn){(0,_slicedToArray(Tn,2)[1])()})),this.isReady=!0;case 11:case"end":return Tn.stop()}}),_callee4,this,[[0,5]])}))),function runCallbacks(){return Un.apply(this,arguments)})},{key:"loadFromString",value:function loadFromString(Tn){var Un=this,Dn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Dn.noAlert;return this.ready(_asyncToGenerator(regeneratorRuntime.mark((function _callee5(){return regeneratorRuntime.wrap((function _callee5$(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.prev=0,Dn.next=3,Un.loadSvgString(Tn,{noAlert:Qn});case 3:Dn.next=9;break;case 5:if(Dn.prev=5,Dn.t0=Dn.catch(0),!Qn){Dn.next=9;break}throw Dn.t0;case 9:case"end":return Dn.stop()}}),_callee5,null,[[0,5]])}))))}},{key:"loadFromURL",value:function loadFromURL(Tn){var Un=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Dn=Un.cache,Qn=Un.noAlert;return this.ready((function(){return new Promise((function(Un,Hn){$D.ajax({url:Tn,dataType:"text",cache:Boolean(Dn),beforeSend:function beforeSend(){$D.process_cancel(this.uiStrings.notification.loadingImage)},success:function success(Tn){this.loadSvgString(Tn,{noAlert:Qn})},error:function error(Tn,Dn,Gn){404!==Tn.status&&Tn.responseText?this.loadSvgString(Tn.responseText,{noAlert:Qn}):Qn?Hn(new Error("URLLoadFail")):(seAlert(this.uiStrings.notification.URLLoadFail+": \n"+Gn),Un())},complete:function complete(){$D("#dialog_box").hide()}})}))}))}},{key:"loadFromDataURI",value:function loadFromDataURI(Tn){var Un=this,Dn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Qn=Dn.noAlert;return this.ready((function(){var Dn=!1,Hn=Tn.match(/^data:image\/svg\+xml;base64,/);Hn?Dn=!0:Hn=Tn.match(/^data:image\/svg\+xml(?:;|;utf8)?,/),Hn&&(Hn=Hn[0]);var Gn=Tn.slice(Hn.length);return Un.loadSvgString(Dn?KD(Gn):decodeURIComponent(Gn),{noAlert:Qn})}))}},{key:"addExtension",value:function addExtension(Tn,Un,Dn){if(!this.svgCanvas)throw new Error("Extension added too early");return this.svgCanvas.addExtension.call(this,Tn,Un,Dn)}}]),Editor}());WD.init(),WD.setConfig({}),WD.setConfig({},{allowInitialUserOverride:!0}),WD.setConfig({extensions:[],noDefaultExtensions:!1,userExtensions:[]}),WD.setConfig({}),WD.setConfig({});try{WD.setConfig({canvasName:"xdomain",allowedOrigins:["*"]}),console.info("xdomain config activated")}catch(Tn){}var XD=String.fromCharCode,YD=String.fromCodePoint,JD=!!YD&&1!=YD.length;_export({target:"String",stat:!0,forced:JD},{fromCodePoint:function fromCodePoint(Tn){for(var Un,Dn=[],Qn=arguments.length,Hn=0;Qn>Hn;){if(Un=+arguments[Hn++],toAbsoluteIndex(Un,1114111)!==Un)throw RangeError(Un+" is not a valid code point");Dn.push(Un<65536?XD(Un):XD(55296+((Un-=65536)>>10),Un%1024+56320))}return Dn.join("")}});var ZD=createCommonjsModule((function(Tn,Un){Tn.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 Tn=function extendStatics(Un,Dn){return(Tn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tn,Un){Tn.__proto__=Un}||function(Tn,Un){for(var Dn in Un)Un.hasOwnProperty(Dn)&&(Tn[Dn]=Un[Dn])})(Un,Dn)};function __extends(Un,Dn){function __(){this.constructor=Un}Tn(Un,Dn),Un.prototype=null===Dn?Object.create(Dn):(__.prototype=Dn.prototype,new __)}var Un=function __assign(){return(Un=Object.assign||function __assign(Tn){for(var Un,Dn=1,Qn=arguments.length;Dn<Qn;Dn++)for(var Hn in Un=arguments[Dn])Object.prototype.hasOwnProperty.call(Un,Hn)&&(Tn[Hn]=Un[Hn]);return Tn}).apply(this,arguments)};function __awaiter(Tn,Un,Dn,Qn){return new(Dn||(Dn=Promise))((function(Hn,Gn){function fulfilled(Tn){try{step(Qn.next(Tn))}catch(Tn){Gn(Tn)}}function rejected(Tn){try{step(Qn.throw(Tn))}catch(Tn){Gn(Tn)}}function step(Tn){Tn.done?Hn(Tn.value):new Dn((function(Un){Un(Tn.value)})).then(fulfilled,rejected)}step((Qn=Qn.apply(Tn,Un||[])).next())}))}function __generator(Tn,Un){var Dn,Qn,Hn,Gn,Vn={label:0,sent:function sent(){if(1&Hn[0])throw Hn[1];return Hn[1]},trys:[],ops:[]};return Gn={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(Gn[Symbol.iterator]=function(){return this}),Gn;function verb(Tn){return function(Un){return step([Tn,Un])}}function step(Gn){if(Dn)throw new TypeError("Generator is already executing.");for(;Vn;)try{if(Dn=1,Qn&&(Hn=2&Gn[0]?Qn.return:Gn[0]?Qn.throw||((Hn=Qn.return)&&Hn.call(Qn),0):Qn.next)&&!(Hn=Hn.call(Qn,Gn[1])).done)return Hn;switch(Qn=0,Hn&&(Gn=[2&Gn[0],Hn.value]),Gn[0]){case 0:case 1:Hn=Gn;break;case 4:return Vn.label++,{value:Gn[1],done:!1};case 5:Vn.label++,Qn=Gn[1],Gn=[0];continue;case 7:Gn=Vn.ops.pop(),Vn.trys.pop();continue;default:if(!((Hn=(Hn=Vn.trys).length>0&&Hn[Hn.length-1])||6!==Gn[0]&&2!==Gn[0])){Vn=0;continue}if(3===Gn[0]&&(!Hn||Gn[1]>Hn[0]&&Gn[1]<Hn[3])){Vn.label=Gn[1];break}if(6===Gn[0]&&Vn.label<Hn[1]){Vn.label=Hn[1],Hn=Gn;break}if(Hn&&Vn.label<Hn[2]){Vn.label=Hn[2],Vn.ops.push(Gn);break}Hn[2]&&Vn.ops.pop(),Vn.trys.pop();continue}Gn=Un.call(Tn,Vn)}catch(Tn){Gn=[6,Tn],Qn=0}finally{Dn=Hn=0}if(5&Gn[0])throw Gn[1];return{value:Gn[0]?Gn[1]:void 0,done:!0}}}for(var Dn=function(){function Bounds(Tn,Un,Dn,Qn){this.left=Tn,this.top=Un,this.width=Dn,this.height=Qn}return Bounds.prototype.add=function(Tn,Un,Dn,Qn){return new Bounds(this.left+Tn,this.top+Un,this.width+Dn,this.height+Qn)},Bounds.fromClientRect=function(Tn){return new Bounds(Tn.left,Tn.top,Tn.width,Tn.height)},Bounds}(),Qn=function parseBounds(Tn){return Dn.fromClientRect(Tn.getBoundingClientRect())},Hn=function parseDocumentSize(Tn){var Un=Tn.body,Qn=Tn.documentElement;if(!Un||!Qn)throw new Error("Unable to get document size");var Hn=Math.max(Math.max(Un.scrollWidth,Qn.scrollWidth),Math.max(Un.offsetWidth,Qn.offsetWidth),Math.max(Un.clientWidth,Qn.clientWidth)),Gn=Math.max(Math.max(Un.scrollHeight,Qn.scrollHeight),Math.max(Un.offsetHeight,Qn.offsetHeight),Math.max(Un.clientHeight,Qn.clientHeight));return new Dn(0,0,Hn,Gn)},Gn=function toCodePoints(Tn){for(var Un=[],Dn=0,Qn=Tn.length;Dn<Qn;){var Hn=Tn.charCodeAt(Dn++);if(Hn>=55296&&Hn<=56319&&Dn<Qn){var Gn=Tn.charCodeAt(Dn++);56320==(64512&Gn)?Un.push(((1023&Hn)<<10)+(1023&Gn)+65536):(Un.push(Hn),Dn--)}else Un.push(Hn)}return Un},Vn=function fromCodePoint(){for(var Tn=[],Un=0;Un<arguments.length;Un++)Tn[Un]=arguments[Un];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Tn);var Dn=Tn.length;if(!Dn)return"";for(var Qn=[],Hn=-1,Gn="";++Hn<Dn;){var Vn=Tn[Hn];Vn<=65535?Qn.push(Vn):(Vn-=65536,Qn.push(55296+(Vn>>10),Vn%1024+56320)),(Hn+1===Dn||Qn.length>16384)&&(Gn+=String.fromCharCode.apply(String,Qn),Qn.length=0)}return Gn},zn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),$n=0;$n<zn.length;$n++)Kn[zn.charCodeAt($n)]=$n;var Wn,Xn=function decode(Tn){var Un,Dn,Qn,Hn,Gn,Vn=.75*Tn.length,zn=Tn.length,$n=0;"="===Tn[Tn.length-1]&&(Vn--,"="===Tn[Tn.length-2]&&Vn--);var Wn="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(Vn):new Array(Vn),Xn=Array.isArray(Wn)?Wn:new Uint8Array(Wn);for(Un=0;Un<zn;Un+=4)Dn=Kn[Tn.charCodeAt(Un)],Qn=Kn[Tn.charCodeAt(Un+1)],Hn=Kn[Tn.charCodeAt(Un+2)],Gn=Kn[Tn.charCodeAt(Un+3)],Xn[$n++]=Dn<<2|Qn>>4,Xn[$n++]=(15&Qn)<<4|Hn>>2,Xn[$n++]=(3&Hn)<<6|63&Gn;return Wn},Yn=function polyUint16Array(Tn){for(var Un=Tn.length,Dn=[],Qn=0;Qn<Un;Qn+=2)Dn.push(Tn[Qn+1]<<8|Tn[Qn]);return Dn},Jn=function polyUint32Array(Tn){for(var Un=Tn.length,Dn=[],Qn=0;Qn<Un;Qn+=4)Dn.push(Tn[Qn+3]<<24|Tn[Qn+2]<<16|Tn[Qn+1]<<8|Tn[Qn]);return Dn},Zn=5,er=11,tr=2,nr=65536>>Zn,rr=(1<<Zn)-1,ir=nr+(1024>>Zn)+32,or=65536>>er,ar=(1<<er-Zn)-1,sr=function slice16(Tn,Un,Dn){return Tn.slice?Tn.slice(Un,Dn):new Uint16Array(Array.prototype.slice.call(Tn,Un,Dn))},lr=function slice32(Tn,Un,Dn){return Tn.slice?Tn.slice(Un,Dn):new Uint32Array(Array.prototype.slice.call(Tn,Un,Dn))},cr=function createTrieFromBase64(Tn){var Un=Xn(Tn),Dn=Array.isArray(Un)?Jn(Un):new Uint32Array(Un),Qn=Array.isArray(Un)?Yn(Un):new Uint16Array(Un),Hn=24,Gn=sr(Qn,Hn/2,Dn[4]/2),Vn=2===Dn[5]?sr(Qn,(Hn+Dn[4])/2):lr(Dn,Math.ceil((Hn+Dn[4])/4));return new ur(Dn[0],Dn[1],Dn[2],Dn[3],Gn,Vn)},ur=function(){function Trie(Tn,Un,Dn,Qn,Hn,Gn){this.initialValue=Tn,this.errorValue=Un,this.highStart=Dn,this.highValueIndex=Qn,this.index=Hn,this.data=Gn}return Trie.prototype.get=function(Tn){var Un;if(Tn>=0){if(Tn<55296||Tn>56319&&Tn<=65535)return Un=((Un=this.index[Tn>>Zn])<<tr)+(Tn&rr),this.data[Un];if(Tn<=65535)return Un=((Un=this.index[nr+(Tn-55296>>Zn)])<<tr)+(Tn&rr),this.data[Un];if(Tn<this.highStart)return Un=ir-or+(Tn>>er),Un=this.index[Un],Un+=Tn>>Zn&ar,Un=((Un=this.index[Un])<<tr)+(Tn&rr),this.data[Un];if(Tn<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Trie}(),dr=50,hr=1,pr=2,gr=3,fr=4,Ar=5,mr=7,vr=8,yr=9,_r=10,br=11,wr=12,xr=13,Sr=14,Cr=15,kr=16,Br=17,Er=18,Pr=19,Lr=20,Tr=21,Nr=22,Ir=23,Or=24,Fr=25,Ur=26,Mr=27,Rr=28,Dr=29,jr=30,Qr=31,Hr=32,Gr=33,Vr=34,zr=35,Kr=36,qr=37,$r=38,Wr=39,Xr=40,Yr=41,Jr=42,Zr=43,ei="!",ti="×",ni="÷",ri=cr("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),ii=[jr,Kr],oi=[hr,pr,gr,Ar],ai=[_r,vr],si=[Mr,Ur],li=oi.concat(ai),ui=[$r,Wr,Xr,Vr,zr],di=[Cr,xr],hi=function codePointsToCharacterClasses(Tn,Un){void 0===Un&&(Un="strict");var Dn=[],Qn=[],Hn=[];return Tn.forEach((function(Tn,Gn){var Vn=ri.get(Tn);if(Vn>dr?(Hn.push(!0),Vn-=dr):Hn.push(!1),-1!==["normal","auto","loose"].indexOf(Un)&&-1!==[8208,8211,12316,12448].indexOf(Tn))return Qn.push(Gn),Dn.push(kr);if(Vn===fr||Vn===br){if(0===Gn)return Qn.push(Gn),Dn.push(jr);var zn=Dn[Gn-1];return-1===li.indexOf(zn)?(Qn.push(Qn[Gn-1]),Dn.push(zn)):(Qn.push(Gn),Dn.push(jr))}return Qn.push(Gn),Vn===Qr?Dn.push("strict"===Un?Tr:qr):Vn===Jr||Vn===Dr?Dn.push(jr):Vn===Zr?Tn>=131072&&Tn<=196605||Tn>=196608&&Tn<=262141?Dn.push(qr):Dn.push(jr):void Dn.push(Vn)})),[Qn,Dn,Hn]},pi=function isAdjacentWithSpaceIgnored(Tn,Un,Dn,Qn){var Hn=Qn[Dn];if(Array.isArray(Tn)?-1!==Tn.indexOf(Hn):Tn===Hn)for(var Gn=Dn;Gn<=Qn.length;){if((Kn=Qn[++Gn])===Un)return!0;if(Kn!==_r)break}if(Hn===_r)for(Gn=Dn;Gn>0;){var Vn=Qn[--Gn];if(Array.isArray(Tn)?-1!==Tn.indexOf(Vn):Tn===Vn)for(var zn=Dn;zn<=Qn.length;){var Kn;if((Kn=Qn[++zn])===Un)return!0;if(Kn!==_r)break}if(Vn!==_r)break}return!1},gi=function previousNonSpaceClassType(Tn,Un){for(var Dn=Tn;Dn>=0;){var Qn=Un[Dn];if(Qn!==_r)return Qn;Dn--}return 0},fi=function _lineBreakAtIndex(Tn,Un,Dn,Qn,Hn){if(0===Dn[Qn])return ti;var Gn=Qn-1;if(Array.isArray(Hn)&&!0===Hn[Gn])return ti;var Vn=Gn-1,zn=Gn+1,Kn=Un[Gn],$n=Vn>=0?Un[Vn]:0,Wn=Un[zn];if(Kn===pr&&Wn===gr)return ti;if(-1!==oi.indexOf(Kn))return ei;if(-1!==oi.indexOf(Wn))return ti;if(-1!==ai.indexOf(Wn))return ti;if(gi(Gn,Un)===vr)return ni;if(ri.get(Tn[Gn])===br&&(Wn===qr||Wn===Hr||Wn===Gr))return ti;if(Kn===mr||Wn===mr)return ti;if(Kn===yr)return ti;if(-1===[_r,xr,Cr].indexOf(Kn)&&Wn===yr)return ti;if(-1!==[Br,Er,Pr,Or,Rr].indexOf(Wn))return ti;if(gi(Gn,Un)===Nr)return ti;if(pi(Ir,Nr,Gn,Un))return ti;if(pi([Br,Er],Tr,Gn,Un))return ti;if(pi(wr,wr,Gn,Un))return ti;if(Kn===_r)return ni;if(Kn===Ir||Wn===Ir)return ti;if(Wn===kr||Kn===kr)return ni;if(-1!==[xr,Cr,Tr].indexOf(Wn)||Kn===Sr)return ti;if($n===Kr&&-1!==di.indexOf(Kn))return ti;if(Kn===Rr&&Wn===Kr)return ti;if(Wn===Lr&&-1!==ii.concat(Lr,Pr,Fr,qr,Hr,Gr).indexOf(Kn))return ti;if(-1!==ii.indexOf(Wn)&&Kn===Fr||-1!==ii.indexOf(Kn)&&Wn===Fr)return ti;if(Kn===Mr&&-1!==[qr,Hr,Gr].indexOf(Wn)||-1!==[qr,Hr,Gr].indexOf(Kn)&&Wn===Ur)return ti;if(-1!==ii.indexOf(Kn)&&-1!==si.indexOf(Wn)||-1!==si.indexOf(Kn)&&-1!==ii.indexOf(Wn))return ti;if(-1!==[Mr,Ur].indexOf(Kn)&&(Wn===Fr||-1!==[Nr,Cr].indexOf(Wn)&&Un[zn+1]===Fr)||-1!==[Nr,Cr].indexOf(Kn)&&Wn===Fr||Kn===Fr&&-1!==[Fr,Rr,Or].indexOf(Wn))return ti;if(-1!==[Fr,Rr,Or,Br,Er].indexOf(Wn))for(var Xn=Gn;Xn>=0;){if((Yn=Un[Xn])===Fr)return ti;if(-1===[Rr,Or].indexOf(Yn))break;Xn--}if(-1!==[Mr,Ur].indexOf(Wn))for(Xn=-1!==[Br,Er].indexOf(Kn)?Vn:Gn;Xn>=0;){var Yn;if((Yn=Un[Xn])===Fr)return ti;if(-1===[Rr,Or].indexOf(Yn))break;Xn--}if($r===Kn&&-1!==[$r,Wr,Vr,zr].indexOf(Wn)||-1!==[Wr,Vr].indexOf(Kn)&&-1!==[Wr,Xr].indexOf(Wn)||-1!==[Xr,zr].indexOf(Kn)&&Wn===Xr)return ti;if(-1!==ui.indexOf(Kn)&&-1!==[Lr,Ur].indexOf(Wn)||-1!==ui.indexOf(Wn)&&Kn===Mr)return ti;if(-1!==ii.indexOf(Kn)&&-1!==ii.indexOf(Wn))return ti;if(Kn===Or&&-1!==ii.indexOf(Wn))return ti;if(-1!==ii.concat(Fr).indexOf(Kn)&&Wn===Nr||-1!==ii.concat(Fr).indexOf(Wn)&&Kn===Er)return ti;if(Kn===Yr&&Wn===Yr){for(var Jn=Dn[Gn],Zn=1;Jn>0&&Un[--Jn]===Yr;)Zn++;if(Zn%2!=0)return ti}return Kn===Hr&&Wn===Gr?ti:ni},Ai=function cssFormattedClasses(Tn,Un){Un||(Un={lineBreak:"normal",wordBreak:"normal"});var Dn=hi(Tn,Un.lineBreak),Qn=Dn[0],Hn=Dn[1],Gn=Dn[2];return"break-all"!==Un.wordBreak&&"break-word"!==Un.wordBreak||(Hn=Hn.map((function(Tn){return-1!==[Fr,jr,Jr].indexOf(Tn)?qr:Tn}))),[Qn,Hn,"keep-all"===Un.wordBreak?Gn.map((function(Un,Dn){return Un&&Tn[Dn]>=19968&&Tn[Dn]<=40959})):void 0]},mi=function(){function Break(Tn,Un,Dn,Qn){this.codePoints=Tn,this.required=Un===ei,this.start=Dn,this.end=Qn}return Break.prototype.slice=function(){return Vn.apply(void 0,this.codePoints.slice(this.start,this.end))},Break}(),vi=function LineBreaker(Tn,Un){var Dn=Gn(Tn),Qn=Ai(Dn,Un),Hn=Qn[0],Vn=Qn[1],zn=Qn[2],Kn=Dn.length,$n=0,Wn=0;return{next:function next(){if(Wn>=Kn)return{done:!0,value:null};for(var Tn=ti;Wn<Kn&&(Tn=fi(Dn,Vn,Hn,++Wn,zn))===ti;);if(Tn!==ti||Wn===Kn){var Un=new mi(Dn,Tn,$n,Wn);return $n=Wn,{value:Un,done:!1}}return{done:!0,value:null}}}};!function(Tn){Tn[Tn.STRING_TOKEN=0]="STRING_TOKEN",Tn[Tn.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",Tn[Tn.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",Tn[Tn.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",Tn[Tn.COMMA_TOKEN=4]="COMMA_TOKEN",Tn[Tn.HASH_TOKEN=5]="HASH_TOKEN",Tn[Tn.DELIM_TOKEN=6]="DELIM_TOKEN",Tn[Tn.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",Tn[Tn.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",Tn[Tn.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",Tn[Tn.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",Tn[Tn.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",Tn[Tn.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",Tn[Tn.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",Tn[Tn.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",Tn[Tn.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",Tn[Tn.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",Tn[Tn.NUMBER_TOKEN=17]="NUMBER_TOKEN",Tn[Tn.FUNCTION=18]="FUNCTION",Tn[Tn.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",Tn[Tn.IDENT_TOKEN=20]="IDENT_TOKEN",Tn[Tn.COLUMN_TOKEN=21]="COLUMN_TOKEN",Tn[Tn.URL_TOKEN=22]="URL_TOKEN",Tn[Tn.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",Tn[Tn.CDC_TOKEN=24]="CDC_TOKEN",Tn[Tn.CDO_TOKEN=25]="CDO_TOKEN",Tn[Tn.COLON_TOKEN=26]="COLON_TOKEN",Tn[Tn.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",Tn[Tn.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",Tn[Tn.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",Tn[Tn.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",Tn[Tn.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",Tn[Tn.EOF_TOKEN=32]="EOF_TOKEN"}(Wn||(Wn={}));var yi=1,_i=2,wi=4,xi=8,Si=10,Ci=47,ki=92,Bi=9,Ei=32,Pi=34,Li=61,Ti=35,Ni=36,Ii=37,Oi=39,Fi=40,Ui=41,Mi=95,Ri=45,Di=33,ji=60,Qi=62,Hi=64,Gi=91,Vi=93,zi=61,Ki=123,qi=63,$i=125,Wi=124,Xi=126,Yi=128,Ji=65533,Zi=42,eo=43,to=44,no=58,ro=59,io=46,oo=0,ao=8,so=11,lo=14,co=31,uo=127,ho=-1,po=48,go=97,fo=101,Ao=102,mo=117,vo=122,yo=65,_o=69,wo=70,xo=85,So=90,Co=function isDigit(Tn){return Tn>=po&&Tn<=57},ko=function isSurrogateCodePoint(Tn){return Tn>=55296&&Tn<=57343},Bo=function isHex(Tn){return Co(Tn)||Tn>=yo&&Tn<=wo||Tn>=go&&Tn<=Ao},Eo=function isLowerCaseLetter(Tn){return Tn>=go&&Tn<=vo},Po=function isUpperCaseLetter(Tn){return Tn>=yo&&Tn<=So},Lo=function isLetter(Tn){return Eo(Tn)||Po(Tn)},To=function isNonASCIICodePoint(Tn){return Tn>=Yi},No=function isWhiteSpace(Tn){return Tn===Si||Tn===Bi||Tn===Ei},Io=function isNameStartCodePoint(Tn){return Lo(Tn)||To(Tn)||Tn===Mi},Oo=function isNameCodePoint(Tn){return Io(Tn)||Co(Tn)||Tn===Ri},Fo=function isNonPrintableCodePoint(Tn){return Tn>=oo&&Tn<=ao||Tn===so||Tn>=lo&&Tn<=co||Tn===uo},Uo=function isValidEscape(Tn,Un){return Tn===ki&&Un!==Si},Mo=function isIdentifierStart(Tn,Un,Dn){return Tn===Ri?Io(Un)||Uo(Un,Dn):!!Io(Tn)||!(Tn!==ki||!Uo(Tn,Un))},Ro=function isNumberStart(Tn,Un,Dn){return Tn===eo||Tn===Ri?!!Co(Un)||Un===io&&Co(Dn):Co(Tn===io?Un:Tn)},Do=function stringToNumber(Tn){var Un=0,Dn=1;Tn[Un]!==eo&&Tn[Un]!==Ri||(Tn[Un]===Ri&&(Dn=-1),Un++);for(var Qn=[];Co(Tn[Un]);)Qn.push(Tn[Un++]);var Hn=Qn.length?parseInt(Vn.apply(void 0,Qn),10):0;Tn[Un]===io&&Un++;for(var Gn=[];Co(Tn[Un]);)Gn.push(Tn[Un++]);var zn=Gn.length,Kn=zn?parseInt(Vn.apply(void 0,Gn),10):0;Tn[Un]!==_o&&Tn[Un]!==fo||Un++;var $n=1;Tn[Un]!==eo&&Tn[Un]!==Ri||(Tn[Un]===Ri&&($n=-1),Un++);for(var Wn=[];Co(Tn[Un]);)Wn.push(Tn[Un++]);var Xn=Wn.length?parseInt(Vn.apply(void 0,Wn),10):0;return Dn*(Hn+Kn*Math.pow(10,-zn))*Math.pow(10,$n*Xn)},jo={type:Wn.LEFT_PARENTHESIS_TOKEN},Qo={type:Wn.RIGHT_PARENTHESIS_TOKEN},Ho={type:Wn.COMMA_TOKEN},Go={type:Wn.SUFFIX_MATCH_TOKEN},Vo={type:Wn.PREFIX_MATCH_TOKEN},zo={type:Wn.COLUMN_TOKEN},Ko={type:Wn.DASH_MATCH_TOKEN},qo={type:Wn.INCLUDE_MATCH_TOKEN},$o={type:Wn.LEFT_CURLY_BRACKET_TOKEN},Wo={type:Wn.RIGHT_CURLY_BRACKET_TOKEN},Xo={type:Wn.SUBSTRING_MATCH_TOKEN},Yo={type:Wn.BAD_URL_TOKEN},Jo={type:Wn.BAD_STRING_TOKEN},Zo={type:Wn.CDO_TOKEN},ea={type:Wn.CDC_TOKEN},ta={type:Wn.COLON_TOKEN},na={type:Wn.SEMICOLON_TOKEN},ra={type:Wn.LEFT_SQUARE_BRACKET_TOKEN},ia={type:Wn.RIGHT_SQUARE_BRACKET_TOKEN},oa={type:Wn.WHITESPACE_TOKEN},aa={type:Wn.EOF_TOKEN},sa=function(){function Tokenizer(){this._value=[]}return Tokenizer.prototype.write=function(Tn){this._value=this._value.concat(Gn(Tn))},Tokenizer.prototype.read=function(){for(var Tn=[],Un=this.consumeToken();Un!==aa;)Tn.push(Un),Un=this.consumeToken();return Tn},Tokenizer.prototype.consumeToken=function(){var Tn=this.consumeCodePoint();switch(Tn){case Pi:return this.consumeStringToken(Pi);case Ti:var Un=this.peekCodePoint(0),Dn=this.peekCodePoint(1),Qn=this.peekCodePoint(2);if(Oo(Un)||Uo(Dn,Qn)){var Hn=Mo(Un,Dn,Qn)?_i:yi,Gn=this.consumeName();return{type:Wn.HASH_TOKEN,value:Gn,flags:Hn}}break;case Ni:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Go;break;case Oi:return this.consumeStringToken(Oi);case Fi:return jo;case Ui:return Qo;case Zi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Xo;break;case eo:if(Ro(Tn,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Tn),this.consumeNumericToken();break;case to:return Ho;case Ri:var zn=Tn,Kn=this.peekCodePoint(0),$n=this.peekCodePoint(1);if(Ro(zn,Kn,$n))return this.reconsumeCodePoint(Tn),this.consumeNumericToken();if(Mo(zn,Kn,$n))return this.reconsumeCodePoint(Tn),this.consumeIdentLikeToken();if(Kn===Ri&&$n===Qi)return this.consumeCodePoint(),this.consumeCodePoint(),ea;break;case io:if(Ro(Tn,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Tn),this.consumeNumericToken();break;case Ci:if(this.peekCodePoint(0)===Zi)for(this.consumeCodePoint();;){var Xn=this.consumeCodePoint();if(Xn===Zi&&(Xn=this.consumeCodePoint())===Ci)return this.consumeToken();if(Xn===ho)return this.consumeToken()}break;case no:return ta;case ro:return na;case ji:if(this.peekCodePoint(0)===Di&&this.peekCodePoint(1)===Ri&&this.peekCodePoint(2)===Ri)return this.consumeCodePoint(),this.consumeCodePoint(),Zo;break;case Hi:var Yn=this.peekCodePoint(0),Jn=this.peekCodePoint(1),Zn=this.peekCodePoint(2);if(Mo(Yn,Jn,Zn))return Gn=this.consumeName(),{type:Wn.AT_KEYWORD_TOKEN,value:Gn};break;case Gi:return ra;case ki:if(Uo(Tn,this.peekCodePoint(0)))return this.reconsumeCodePoint(Tn),this.consumeIdentLikeToken();break;case Vi:return ia;case zi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Vo;break;case Ki:return $o;case $i:return Wo;case mo:case xo:var er=this.peekCodePoint(0),tr=this.peekCodePoint(1);return er!==eo||!Bo(tr)&&tr!==qi||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(Tn),this.consumeIdentLikeToken();case Wi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Ko;if(this.peekCodePoint(0)===Wi)return this.consumeCodePoint(),zo;break;case Xi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),qo;break;case ho:return aa}return No(Tn)?(this.consumeWhiteSpace(),oa):Co(Tn)?(this.reconsumeCodePoint(Tn),this.consumeNumericToken()):Io(Tn)?(this.reconsumeCodePoint(Tn),this.consumeIdentLikeToken()):{type:Wn.DELIM_TOKEN,value:Vn(Tn)}},Tokenizer.prototype.consumeCodePoint=function(){var Tn=this._value.shift();return void 0===Tn?-1:Tn},Tokenizer.prototype.reconsumeCodePoint=function(Tn){this._value.unshift(Tn)},Tokenizer.prototype.peekCodePoint=function(Tn){return Tn>=this._value.length?-1:this._value[Tn]},Tokenizer.prototype.consumeUnicodeRangeToken=function(){for(var Tn=[],Un=this.consumeCodePoint();Bo(Un)&&Tn.length<6;)Tn.push(Un),Un=this.consumeCodePoint();for(var Dn=!1;Un===qi&&Tn.length<6;)Tn.push(Un),Un=this.consumeCodePoint(),Dn=!0;if(Dn){var Qn=parseInt(Vn.apply(void 0,Tn.map((function(Tn){return Tn===qi?po:Tn}))),16),Hn=parseInt(Vn.apply(void 0,Tn.map((function(Tn){return Tn===qi?wo:Tn}))),16);return{type:Wn.UNICODE_RANGE_TOKEN,start:Qn,end:Hn}}var Gn=parseInt(Vn.apply(void 0,Tn),16);if(this.peekCodePoint(0)===Ri&&Bo(this.peekCodePoint(1))){this.consumeCodePoint(),Un=this.consumeCodePoint();for(var zn=[];Bo(Un)&&zn.length<6;)zn.push(Un),Un=this.consumeCodePoint();return Hn=parseInt(Vn.apply(void 0,zn),16),{type:Wn.UNICODE_RANGE_TOKEN,start:Gn,end:Hn}}return{type:Wn.UNICODE_RANGE_TOKEN,start:Gn,end:Gn}},Tokenizer.prototype.consumeIdentLikeToken=function(){var Tn=this.consumeName();return"url"===Tn.toLowerCase()&&this.peekCodePoint(0)===Fi?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Fi?(this.consumeCodePoint(),{type:Wn.FUNCTION_TOKEN,value:Tn}):{type:Wn.IDENT_TOKEN,value:Tn}},Tokenizer.prototype.consumeUrlToken=function(){var Tn=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ho)return{type:Wn.URL_TOKEN,value:""};var Un=this.peekCodePoint(0);if(Un===Oi||Un===Pi){var Dn=this.consumeStringToken(this.consumeCodePoint());return Dn.type===Wn.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ho||this.peekCodePoint(0)===Ui)?(this.consumeCodePoint(),{type:Wn.URL_TOKEN,value:Dn.value}):(this.consumeBadUrlRemnants(),Yo)}for(;;){var Qn=this.consumeCodePoint();if(Qn===ho||Qn===Ui)return{type:Wn.URL_TOKEN,value:Vn.apply(void 0,Tn)};if(No(Qn))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ho||this.peekCodePoint(0)===Ui?(this.consumeCodePoint(),{type:Wn.URL_TOKEN,value:Vn.apply(void 0,Tn)}):(this.consumeBadUrlRemnants(),Yo);if(Qn===Pi||Qn===Oi||Qn===Fi||Fo(Qn))return this.consumeBadUrlRemnants(),Yo;if(Qn===ki){if(!Uo(Qn,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Yo;Tn.push(this.consumeEscapedCodePoint())}else Tn.push(Qn)}},Tokenizer.prototype.consumeWhiteSpace=function(){for(;No(this.peekCodePoint(0));)this.consumeCodePoint()},Tokenizer.prototype.consumeBadUrlRemnants=function(){for(;;){var Tn=this.consumeCodePoint();if(Tn===Ui||Tn===ho)return;Uo(Tn,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Tokenizer.prototype.consumeStringSlice=function(Tn){for(var Un=6e4,Dn="";Tn>0;){var Qn=Math.min(Un,Tn);Dn+=Vn.apply(void 0,this._value.splice(0,Qn)),Tn-=Qn}return this._value.shift(),Dn},Tokenizer.prototype.consumeStringToken=function(Tn){for(var Un="",Dn=0;;){var Qn=this._value[Dn];if(Qn===ho||void 0===Qn||Qn===Tn)return Un+=this.consumeStringSlice(Dn),{type:Wn.STRING_TOKEN,value:Un};if(Qn===Si)return this._value.splice(0,Dn),Jo;if(Qn===ki){var Hn=this._value[Dn+1];Hn!==ho&&void 0!==Hn&&(Hn===Si?(Un+=this.consumeStringSlice(Dn),Dn=-1,this._value.shift()):Uo(Qn,Hn)&&(Un+=this.consumeStringSlice(Dn),Un+=Vn(this.consumeEscapedCodePoint()),Dn=-1))}Dn++}},Tokenizer.prototype.consumeNumber=function(){var Tn=[],Un=wi,Dn=this.peekCodePoint(0);for(Dn!==eo&&Dn!==Ri||Tn.push(this.consumeCodePoint());Co(this.peekCodePoint(0));)Tn.push(this.consumeCodePoint());Dn=this.peekCodePoint(0);var Qn=this.peekCodePoint(1);if(Dn===io&&Co(Qn))for(Tn.push(this.consumeCodePoint(),this.consumeCodePoint()),Un=xi;Co(this.peekCodePoint(0));)Tn.push(this.consumeCodePoint());Dn=this.peekCodePoint(0),Qn=this.peekCodePoint(1);var Hn=this.peekCodePoint(2);if((Dn===_o||Dn===fo)&&((Qn===eo||Qn===Ri)&&Co(Hn)||Co(Qn)))for(Tn.push(this.consumeCodePoint(),this.consumeCodePoint()),Un=xi;Co(this.peekCodePoint(0));)Tn.push(this.consumeCodePoint());return[Do(Tn),Un]},Tokenizer.prototype.consumeNumericToken=function(){var Tn=this.consumeNumber(),Un=Tn[0],Dn=Tn[1],Qn=this.peekCodePoint(0),Hn=this.peekCodePoint(1),Gn=this.peekCodePoint(2);if(Mo(Qn,Hn,Gn)){var Vn=this.consumeName();return{type:Wn.DIMENSION_TOKEN,number:Un,flags:Dn,unit:Vn}}return Qn===Ii?(this.consumeCodePoint(),{type:Wn.PERCENTAGE_TOKEN,number:Un,flags:Dn}):{type:Wn.NUMBER_TOKEN,number:Un,flags:Dn}},Tokenizer.prototype.consumeEscapedCodePoint=function(){var Tn=this.consumeCodePoint();if(Bo(Tn)){for(var Un=Vn(Tn);Bo(this.peekCodePoint(0))&&Un.length<6;)Un+=Vn(this.consumeCodePoint());No(this.peekCodePoint(0))&&this.consumeCodePoint();var Dn=parseInt(Un,16);return 0===Dn||ko(Dn)||Dn>1114111?Ji:Dn}return Tn===ho?Ji:Tn},Tokenizer.prototype.consumeName=function(){for(var Tn="";;){var Un=this.consumeCodePoint();if(Oo(Un))Tn+=Vn(Un);else{if(!Uo(Un,this.peekCodePoint(0)))return this.reconsumeCodePoint(Un),Tn;Tn+=Vn(this.consumeEscapedCodePoint())}}},Tokenizer}(),la=function(){function Parser(Tn){this._tokens=Tn}return Parser.create=function(Tn){var Un=new sa;return Un.write(Tn),new Parser(Un.read())},Parser.parseValue=function(Tn){return Parser.create(Tn).parseComponentValue()},Parser.parseValues=function(Tn){return Parser.create(Tn).parseComponentValues()},Parser.prototype.parseComponentValue=function(){for(var Tn=this.consumeToken();Tn.type===Wn.WHITESPACE_TOKEN;)Tn=this.consumeToken();if(Tn.type===Wn.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(Tn);var Un=this.consumeComponentValue();do{Tn=this.consumeToken()}while(Tn.type===Wn.WHITESPACE_TOKEN);if(Tn.type===Wn.EOF_TOKEN)return Un;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Parser.prototype.parseComponentValues=function(){for(var Tn=[];;){var Un=this.consumeComponentValue();if(Un.type===Wn.EOF_TOKEN)return Tn;Tn.push(Un),Tn.push()}},Parser.prototype.consumeComponentValue=function(){var Tn=this.consumeToken();switch(Tn.type){case Wn.LEFT_CURLY_BRACKET_TOKEN:case Wn.LEFT_SQUARE_BRACKET_TOKEN:case Wn.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(Tn.type);case Wn.FUNCTION_TOKEN:return this.consumeFunction(Tn)}return Tn},Parser.prototype.consumeSimpleBlock=function(Tn){for(var Un={type:Tn,values:[]},Dn=this.consumeToken();;){if(Dn.type===Wn.EOF_TOKEN||va(Dn,Tn))return Un;this.reconsumeToken(Dn),Un.values.push(this.consumeComponentValue()),Dn=this.consumeToken()}},Parser.prototype.consumeFunction=function(Tn){for(var Un={name:Tn.value,values:[],type:Wn.FUNCTION};;){var Dn=this.consumeToken();if(Dn.type===Wn.EOF_TOKEN||Dn.type===Wn.RIGHT_PARENTHESIS_TOKEN)return Un;this.reconsumeToken(Dn),Un.values.push(this.consumeComponentValue())}},Parser.prototype.consumeToken=function(){var Tn=this._tokens.shift();return void 0===Tn?aa:Tn},Parser.prototype.reconsumeToken=function(Tn){this._tokens.unshift(Tn)},Parser}(),ua=function isDimensionToken(Tn){return Tn.type===Wn.DIMENSION_TOKEN},da=function isNumberToken(Tn){return Tn.type===Wn.NUMBER_TOKEN},ha=function isIdentToken(Tn){return Tn.type===Wn.IDENT_TOKEN},pa=function isStringToken(Tn){return Tn.type===Wn.STRING_TOKEN},ga=function isIdentWithValue(Tn,Un){return ha(Tn)&&Tn.value===Un},fa=function nonWhiteSpace(Tn){return Tn.type!==Wn.WHITESPACE_TOKEN},Aa=function nonFunctionArgSeparator(Tn){return Tn.type!==Wn.WHITESPACE_TOKEN&&Tn.type!==Wn.COMMA_TOKEN},ma=function parseFunctionArgs(Tn){var Un=[],Dn=[];return Tn.forEach((function(Tn){if(Tn.type===Wn.COMMA_TOKEN){if(0===Dn.length)throw new Error("Error parsing function args, zero tokens for arg");return Un.push(Dn),void(Dn=[])}Tn.type!==Wn.WHITESPACE_TOKEN&&Dn.push(Tn)})),Dn.length&&Un.push(Dn),Un},va=function isEndingTokenFor(Tn,Un){return Un===Wn.LEFT_CURLY_BRACKET_TOKEN&&Tn.type===Wn.RIGHT_CURLY_BRACKET_TOKEN||Un===Wn.LEFT_SQUARE_BRACKET_TOKEN&&Tn.type===Wn.RIGHT_SQUARE_BRACKET_TOKEN||Un===Wn.LEFT_PARENTHESIS_TOKEN&&Tn.type===Wn.RIGHT_PARENTHESIS_TOKEN},ya=function isLength(Tn){return Tn.type===Wn.NUMBER_TOKEN||Tn.type===Wn.DIMENSION_TOKEN},_a=function isLengthPercentage(Tn){return Tn.type===Wn.PERCENTAGE_TOKEN||ya(Tn)},ba=function parseLengthPercentageTuple(Tn){return Tn.length>1?[Tn[0],Tn[1]]:[Tn[0]]},wa={type:Wn.NUMBER_TOKEN,number:0,flags:wi},xa={type:Wn.PERCENTAGE_TOKEN,number:50,flags:wi},Sa={type:Wn.PERCENTAGE_TOKEN,number:100,flags:wi},Ca=function getAbsoluteValueForTuple(Tn,Un,Dn){var Qn=Tn[0],Hn=Tn[1];return[ka(Qn,Un),ka(void 0!==Hn?Hn:Qn,Dn)]},ka=function getAbsoluteValue(Tn,Un){if(Tn.type===Wn.PERCENTAGE_TOKEN)return Tn.number/100*Un;if(ua(Tn))switch(Tn.unit){case"rem":case"em":return 16*Tn.number;case"px":default:return Tn.number}return Tn.number},Ba="deg",Ea="grad",Pa="rad",La="turn",Ta={name:"angle",parse:function parse(Tn){if(Tn.type===Wn.DIMENSION_TOKEN)switch(Tn.unit){case Ba:return Math.PI*Tn.number/180;case Ea:return Math.PI/200*Tn.number;case Pa:return Tn.number;case La:return 2*Math.PI*Tn.number}throw new Error("Unsupported angle type")}},Na=function isAngle(Tn){return Tn.type===Wn.DIMENSION_TOKEN&&(Tn.unit===Ba||Tn.unit===Ea||Tn.unit===Pa||Tn.unit===La)},Ia=function parseNamedSide(Tn){switch(Tn.filter(ha).map((function(Tn){return Tn.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[wa,wa];case"to top":case"bottom":return Oa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[wa,Sa];case"to right":case"left":return Oa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Sa,Sa];case"to bottom":case"top":return Oa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Sa,wa];case"to left":case"right":return Oa(270)}return 0},Oa=function deg(Tn){return Math.PI*Tn/180},Fa={name:"color",parse:function parse(Tn){if(Tn.type===Wn.FUNCTION){var Un=Va[Tn.name];if(void 0===Un)throw new Error('Attempting to parse an unsupported color function "'+Tn.name+'"');return Un(Tn.values)}if(Tn.type===Wn.HASH_TOKEN){if(3===Tn.value.length){var Dn=Tn.value.substring(0,1),Qn=Tn.value.substring(1,2),Hn=Tn.value.substring(2,3);return Ra(parseInt(Dn+Dn,16),parseInt(Qn+Qn,16),parseInt(Hn+Hn,16),1)}if(4===Tn.value.length){Dn=Tn.value.substring(0,1),Qn=Tn.value.substring(1,2),Hn=Tn.value.substring(2,3);var Gn=Tn.value.substring(3,4);return Ra(parseInt(Dn+Dn,16),parseInt(Qn+Qn,16),parseInt(Hn+Hn,16),parseInt(Gn+Gn,16)/255)}if(6===Tn.value.length)return Dn=Tn.value.substring(0,2),Qn=Tn.value.substring(2,4),Hn=Tn.value.substring(4,6),Ra(parseInt(Dn,16),parseInt(Qn,16),parseInt(Hn,16),1);if(8===Tn.value.length)return Dn=Tn.value.substring(0,2),Qn=Tn.value.substring(2,4),Hn=Tn.value.substring(4,6),Gn=Tn.value.substring(6,8),Ra(parseInt(Dn,16),parseInt(Qn,16),parseInt(Hn,16),parseInt(Gn,16)/255)}if(Tn.type===Wn.IDENT_TOKEN){var Vn=za[Tn.value.toUpperCase()];if(void 0!==Vn)return Vn}return za.TRANSPARENT}},Ua=function isTransparent(Tn){return 0==(255&Tn)},Ma=function asString(Tn){var Un=255&Tn,Dn=255&Tn>>8,Qn=255&Tn>>16,Hn=255&Tn>>24;return Un<255?"rgba("+Hn+","+Qn+","+Dn+","+Un/255+")":"rgb("+Hn+","+Qn+","+Dn+")"},Ra=function pack(Tn,Un,Dn,Qn){return(Tn<<24|Un<<16|Dn<<8|Math.round(255*Qn)<<0)>>>0},Da=function getTokenColorValue(Tn,Un){if(Tn.type===Wn.NUMBER_TOKEN)return Tn.number;if(Tn.type===Wn.PERCENTAGE_TOKEN){var Dn=3===Un?1:255;return 3===Un?Tn.number/100*Dn:Math.round(Tn.number/100*Dn)}return 0},ja=function rgb(Tn){var Un=Tn.filter(Aa);if(3===Un.length){var Dn=Un.map(Da),Qn=Dn[0],Hn=Dn[1],Gn=Dn[2];return Ra(Qn,Hn,Gn,1)}if(4===Un.length){var Vn=Un.map(Da),zn=(Qn=Vn[0],Hn=Vn[1],Gn=Vn[2],Vn[3]);return Ra(Qn,Hn,Gn,zn)}return 0};function hue2rgb(Tn,Un,Dn){return Dn<0&&(Dn+=1),Dn>=1&&(Dn-=1),Dn<1/6?(Un-Tn)*Dn*6+Tn:Dn<.5?Un:Dn<2/3?6*(Un-Tn)*(2/3-Dn)+Tn:Tn}var Qa,Ha,Ga=function hsl(Tn){var Un=Tn.filter(Aa),Dn=Un[0],Qn=Un[1],Hn=Un[2],Gn=Un[3],Vn=(Dn.type===Wn.NUMBER_TOKEN?Oa(Dn.number):Ta.parse(Dn))/(2*Math.PI),zn=_a(Qn)?Qn.number/100:0,Kn=_a(Hn)?Hn.number/100:0,$n=void 0!==Gn&&_a(Gn)?ka(Gn,1):1;if(0===zn)return Ra(255*Kn,255*Kn,255*Kn,1);var Xn=Kn<=.5?Kn*(zn+1):Kn+zn-Kn*zn,Yn=2*Kn-Xn,Jn=hue2rgb(Yn,Xn,Vn+1/3),Zn=hue2rgb(Yn,Xn,Vn),er=hue2rgb(Yn,Xn,Vn-1/3);return Ra(255*Jn,255*Zn,255*er,$n)},Va={hsl:Ga,hsla:Ga,rgb:ja,rgba:ja},za={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(Tn){Tn[Tn.VALUE=0]="VALUE",Tn[Tn.LIST=1]="LIST",Tn[Tn.IDENT_VALUE=2]="IDENT_VALUE",Tn[Tn.TYPE_VALUE=3]="TYPE_VALUE",Tn[Tn.TOKEN_VALUE=4]="TOKEN_VALUE"})(Qa||(Qa={})),function(Tn){Tn[Tn.BORDER_BOX=0]="BORDER_BOX",Tn[Tn.PADDING_BOX=1]="PADDING_BOX",Tn[Tn.CONTENT_BOX=2]="CONTENT_BOX"}(Ha||(Ha={}));var Ka,qa={name:"background-clip",initialValue:"border-box",prefix:!1,type:Qa.LIST,parse:function parse(Tn){return Tn.map((function(Tn){if(ha(Tn))switch(Tn.value){case"padding-box":return Ha.PADDING_BOX;case"content-box":return Ha.CONTENT_BOX}return Ha.BORDER_BOX}))}},$a={name:"background-color",initialValue:"transparent",prefix:!1,type:Qa.TYPE_VALUE,format:"color"},Wa=function parseColorStop(Tn){var Un=Fa.parse(Tn[0]),Dn=Tn[1];return Dn&&_a(Dn)?{color:Un,stop:Dn}:{color:Un,stop:null}},Xa=function processColorStops(Tn,Un){var Dn=Tn[0],Qn=Tn[Tn.length-1];null===Dn.stop&&(Dn.stop=wa),null===Qn.stop&&(Qn.stop=Sa);for(var Hn=[],Gn=0,Vn=0;Vn<Tn.length;Vn++){var zn=Tn[Vn].stop;if(null!==zn){var Kn=ka(zn,Un);Kn>Gn?Hn.push(Kn):Hn.push(Gn),Gn=Kn}else Hn.push(null)}var $n=null;for(Vn=0;Vn<Hn.length;Vn++){var Wn=Hn[Vn];if(null===Wn)null===$n&&($n=Vn);else if(null!==$n){for(var Xn=Vn-$n,Yn=(Wn-Hn[$n-1])/(Xn+1),Jn=1;Jn<=Xn;Jn++)Hn[$n+Jn-1]=Yn*Jn;$n=null}}return Tn.map((function(Tn,Dn){return{color:Tn.color,stop:Math.max(Math.min(1,Hn[Dn]/Un),0)}}))},Ya=function getAngleFromCorner(Tn,Un,Dn){var Qn=Un/2,Hn=Dn/2,Gn=ka(Tn[0],Un)-Qn,Vn=Hn-ka(Tn[1],Dn);return(Math.atan2(Vn,Gn)+2*Math.PI)%(2*Math.PI)},Ja=function calculateGradientDirection(Tn,Un,Dn){var Qn="number"==typeof Tn?Tn:Ya(Tn,Un,Dn),Hn=Math.abs(Un*Math.sin(Qn))+Math.abs(Dn*Math.cos(Qn)),Gn=Un/2,Vn=Dn/2,zn=Hn/2,Kn=Math.sin(Qn-Math.PI/2)*zn,$n=Math.cos(Qn-Math.PI/2)*zn;return[Hn,Gn-$n,Gn+$n,Vn-Kn,Vn+Kn]},Za=function distance(Tn,Un){return Math.sqrt(Tn*Tn+Un*Un)},es=function findCorner(Tn,Un,Dn,Qn,Hn){return[[0,0],[0,Un],[Tn,0],[Tn,Un]].reduce((function(Tn,Un){var Gn=Un[0],Vn=Un[1],zn=Za(Dn-Gn,Qn-Vn);return(Hn?zn<Tn.optimumDistance:zn>Tn.optimumDistance)?{optimumCorner:Un,optimumDistance:zn}:Tn}),{optimumDistance:Hn?1/0:-1/0,optimumCorner:null}).optimumCorner},ts=function calculateRadius(Tn,Un,Dn,Qn,Hn){var Gn=0,Vn=0;switch(Tn.size){case Rs.CLOSEST_SIDE:Tn.shape===Ms.CIRCLE?Gn=Vn=Math.min(Math.abs(Un),Math.abs(Un-Qn),Math.abs(Dn),Math.abs(Dn-Hn)):Tn.shape===Ms.ELLIPSE&&(Gn=Math.min(Math.abs(Un),Math.abs(Un-Qn)),Vn=Math.min(Math.abs(Dn),Math.abs(Dn-Hn)));break;case Rs.CLOSEST_CORNER:if(Tn.shape===Ms.CIRCLE)Gn=Vn=Math.min(Za(Un,Dn),Za(Un,Dn-Hn),Za(Un-Qn,Dn),Za(Un-Qn,Dn-Hn));else if(Tn.shape===Ms.ELLIPSE){var zn=Math.min(Math.abs(Dn),Math.abs(Dn-Hn))/Math.min(Math.abs(Un),Math.abs(Un-Qn)),Kn=es(Qn,Hn,Un,Dn,!0),$n=Kn[0],Wn=Kn[1];Vn=zn*(Gn=Za($n-Un,(Wn-Dn)/zn))}break;case Rs.FARTHEST_SIDE:Tn.shape===Ms.CIRCLE?Gn=Vn=Math.max(Math.abs(Un),Math.abs(Un-Qn),Math.abs(Dn),Math.abs(Dn-Hn)):Tn.shape===Ms.ELLIPSE&&(Gn=Math.max(Math.abs(Un),Math.abs(Un-Qn)),Vn=Math.max(Math.abs(Dn),Math.abs(Dn-Hn)));break;case Rs.FARTHEST_CORNER:if(Tn.shape===Ms.CIRCLE)Gn=Vn=Math.max(Za(Un,Dn),Za(Un,Dn-Hn),Za(Un-Qn,Dn),Za(Un-Qn,Dn-Hn));else if(Tn.shape===Ms.ELLIPSE){zn=Math.max(Math.abs(Dn),Math.abs(Dn-Hn))/Math.max(Math.abs(Un),Math.abs(Un-Qn));var Xn=es(Qn,Hn,Un,Dn,!1);$n=Xn[0],Wn=Xn[1],Vn=zn*(Gn=Za($n-Un,(Wn-Dn)/zn))}}return Array.isArray(Tn.size)&&(Gn=ka(Tn.size[0],Qn),Vn=2===Tn.size.length?ka(Tn.size[1],Hn):Gn),[Gn,Vn]},ns=function linearGradient(Tn){var Un=Oa(180),Dn=[];return ma(Tn).forEach((function(Tn,Qn){if(0===Qn){var Hn=Tn[0];if(Hn.type===Wn.IDENT_TOKEN&&"to"===Hn.value)return void(Un=Ia(Tn));if(Na(Hn))return void(Un=Ta.parse(Hn))}var Gn=Wa(Tn);Dn.push(Gn)})),{angle:Un,stops:Dn,type:Ka.LINEAR_GRADIENT}},rs=function prefixLinearGradient(Tn){var Un=Oa(180),Dn=[];return ma(Tn).forEach((function(Tn,Qn){if(0===Qn){var Hn=Tn[0];if(Hn.type===Wn.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(Hn.value))return void(Un=Ia(Tn));if(Na(Hn))return void(Un=(Ta.parse(Hn)+Oa(270))%Oa(360))}var Gn=Wa(Tn);Dn.push(Gn)})),{angle:Un,stops:Dn,type:Ka.LINEAR_GRADIENT}},os=function testRangeBounds(Tn){var Un=123;if(Tn.createRange){var Dn=Tn.createRange();if(Dn.getBoundingClientRect){var Qn=Tn.createElement("boundtest");Qn.style.height=Un+"px",Qn.style.display="block",Tn.body.appendChild(Qn),Dn.selectNode(Qn);var Hn=Dn.getBoundingClientRect(),Gn=Math.round(Hn.height);if(Tn.body.removeChild(Qn),Gn===Un)return!0}}return!1},as=function testCORS(){return void 0!==(new Image).crossOrigin},ss=function testResponseType(){return"string"==typeof(new XMLHttpRequest).responseType},ls=function testSVG(Tn){var Un=new Image,Dn=Tn.createElement("canvas"),Qn=Dn.getContext("2d");if(!Qn)return!1;Un.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Qn.drawImage(Un,0,0),Dn.toDataURL()}catch(Tn){return!1}return!0},us=function isGreenPixel(Tn){return 0===Tn[0]&&255===Tn[1]&&0===Tn[2]&&255===Tn[3]},ds=function testForeignObject(Tn){var Un=Tn.createElement("canvas"),Dn=100;Un.width=Dn,Un.height=Dn;var Qn=Un.getContext("2d");if(!Qn)return Promise.reject(!1);Qn.fillStyle="rgb(0, 255, 0)",Qn.fillRect(0,0,Dn,Dn);var Hn=new Image,Gn=Un.toDataURL();Hn.src=Gn;var Vn=hs(Dn,Dn,0,0,Hn);return Qn.fillStyle="red",Qn.fillRect(0,0,Dn,Dn),ps(Vn).then((function(Un){Qn.drawImage(Un,0,0);var Hn=Qn.getImageData(0,0,Dn,Dn).data;Qn.fillStyle="red",Qn.fillRect(0,0,Dn,Dn);var Vn=Tn.createElement("div");return Vn.style.backgroundImage="url("+Gn+")",Vn.style.height=Dn+"px",us(Hn)?ps(hs(Dn,Dn,0,0,Vn)):Promise.reject(!1)})).then((function(Tn){return Qn.drawImage(Tn,0,0),us(Qn.getImageData(0,0,Dn,Dn).data)})).catch((function(){return!1}))},hs=function createForeignObjectSVG(Tn,Un,Dn,Qn,Hn){var Gn="http://www.w3.org/2000/svg",Vn=document.createElementNS(Gn,"svg"),zn=document.createElementNS(Gn,"foreignObject");return Vn.setAttributeNS(null,"width",Tn.toString()),Vn.setAttributeNS(null,"height",Un.toString()),zn.setAttributeNS(null,"width","100%"),zn.setAttributeNS(null,"height","100%"),zn.setAttributeNS(null,"x",Dn.toString()),zn.setAttributeNS(null,"y",Qn.toString()),zn.setAttributeNS(null,"externalResourcesRequired","true"),Vn.appendChild(zn),zn.appendChild(Hn),Vn},ps=function loadSerializedSVG(Tn){return new Promise((function(Un,Dn){var Qn=new Image;Qn.onload=function(){return Un(Qn)},Qn.onerror=Dn,Qn.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(Tn))}))},gs={get SUPPORT_RANGE_BOUNDS(){var Tn=os(document);return Object.defineProperty(gs,"SUPPORT_RANGE_BOUNDS",{value:Tn}),Tn},get SUPPORT_SVG_DRAWING(){var Tn=ls(document);return Object.defineProperty(gs,"SUPPORT_SVG_DRAWING",{value:Tn}),Tn},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Tn="function"==typeof Array.from&&"function"==typeof window.fetch?ds(document):Promise.resolve(!1);return Object.defineProperty(gs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Tn}),Tn},get SUPPORT_CORS_IMAGES(){var Tn=as();return Object.defineProperty(gs,"SUPPORT_CORS_IMAGES",{value:Tn}),Tn},get SUPPORT_RESPONSE_TYPE(){var Tn=ss();return Object.defineProperty(gs,"SUPPORT_RESPONSE_TYPE",{value:Tn}),Tn},get SUPPORT_CORS_XHR(){var Tn="withCredentials"in new XMLHttpRequest;return Object.defineProperty(gs,"SUPPORT_CORS_XHR",{value:Tn}),Tn}},fs=function(){function Logger(Tn){var Un=Tn.id,Dn=Tn.enabled;this.id=Un,this.enabled=Dn,this.start=Date.now()}return Logger.prototype.debug=function(){for(var Tn=[],Un=0;Un<arguments.length;Un++)Tn[Un]=arguments[Un];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(Tn)):this.info.apply(this,Tn))},Logger.prototype.getTime=function(){return Date.now()-this.start},Logger.create=function(Tn){Logger.instances[Tn.id]=new Logger(Tn)},Logger.destroy=function(Tn){delete Logger.instances[Tn]},Logger.getInstance=function(Tn){var Un=Logger.instances[Tn];if(void 0===Un)throw new Error("No logger instance found with id "+Tn);return Un},Logger.prototype.info=function(){for(var Tn=[],Un=0;Un<arguments.length;Un++)Tn[Un]=arguments[Un];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(Tn))},Logger.prototype.error=function(){for(var Tn=[],Un=0;Un<arguments.length;Un++)Tn[Un]=arguments[Un];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(Tn)):this.info.apply(this,Tn))},Logger.instances={},Logger}(),As=function(){function CacheStorage(){}return CacheStorage.create=function(Tn,Un){return CacheStorage._caches[Tn]=new ms(Tn,Un)},CacheStorage.destroy=function(Tn){delete CacheStorage._caches[Tn]},CacheStorage.open=function(Tn){var Un=CacheStorage._caches[Tn];if(void 0!==Un)return Un;throw new Error('Cache with key "'+Tn+'" not found')},CacheStorage.getOrigin=function(Tn){var Un=CacheStorage._link;return Un?(Un.href=Tn,Un.href=Un.href,Un.protocol+Un.hostname+Un.port):"about:blank"},CacheStorage.isSameOrigin=function(Tn){return CacheStorage.getOrigin(Tn)===CacheStorage._origin},CacheStorage.setContext=function(Tn){CacheStorage._link=Tn.document.createElement("a"),CacheStorage._origin=CacheStorage.getOrigin(Tn.location.href)},CacheStorage.getInstance=function(){var Tn=CacheStorage._current;if(null===Tn)throw new Error("No cache instance attached");return Tn},CacheStorage.attachInstance=function(Tn){CacheStorage._current=Tn},CacheStorage.detachInstance=function(){CacheStorage._current=null},CacheStorage._caches={},CacheStorage._origin="about:blank",CacheStorage._current=null,CacheStorage}(),ms=function(){function Cache(Tn,Un){this.id=Tn,this._options=Un,this._cache={}}return Cache.prototype.addImage=function(Tn){var Un=Promise.resolve();return this.has(Tn)?Un:Ss(Tn)||bs(Tn)?(this._cache[Tn]=this.loadImage(Tn),Un):Un},Cache.prototype.match=function(Tn){return this._cache[Tn]},Cache.prototype.loadImage=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn=this;return __generator(this,(function(Vn){switch(Vn.label){case 0:return Un=As.isSameOrigin(Tn),Dn=!ws(Tn)&&!0===this._options.useCORS&&gs.SUPPORT_CORS_IMAGES&&!Un,Qn=!ws(Tn)&&!Un&&"string"==typeof this._options.proxy&&gs.SUPPORT_CORS_XHR&&!Dn,Un||!1!==this._options.allowTaint||ws(Tn)||Qn||Dn?(Hn=Tn,Qn?[4,this.proxy(Hn)]:[3,2]):[2];case 1:Hn=Vn.sent(),Vn.label=2;case 2:return fs.getInstance(this.id).debug("Added image "+Tn.substring(0,256)),[4,new Promise((function(Tn,Un){var Qn=new Image;Qn.onload=function(){return Tn(Qn)},Qn.onerror=Un,(xs(Hn)||Dn)&&(Qn.crossOrigin="anonymous"),Qn.src=Hn,!0===Qn.complete&&setTimeout((function(){return Tn(Qn)}),500),Gn._options.imageTimeout>0&&setTimeout((function(){return Un("Timed out ("+Gn._options.imageTimeout+"ms) loading image")}),Gn._options.imageTimeout)}))];case 3:return[2,Vn.sent()]}}))}))},Cache.prototype.has=function(Tn){return void 0!==this._cache[Tn]},Cache.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Cache.prototype.proxy=function(Tn){var Un=this,Dn=this._options.proxy;if(!Dn)throw new Error("No proxy defined");var Qn=Tn.substring(0,256);return new Promise((function(Hn,Gn){var Vn=gs.SUPPORT_RESPONSE_TYPE?"blob":"text",zn=new XMLHttpRequest;if(zn.onload=function(){if(200===zn.status)if("text"===Vn)Hn(zn.response);else{var Tn=new FileReader;Tn.addEventListener("load",(function(){return Hn(Tn.result)}),!1),Tn.addEventListener("error",(function(Tn){return Gn(Tn)}),!1),Tn.readAsDataURL(zn.response)}else Gn("Failed to proxy resource "+Qn+" with status code "+zn.status)},zn.onerror=Gn,zn.open("GET",Dn+"?url="+encodeURIComponent(Tn)+"&responseType="+Vn),"text"!==Vn&&zn instanceof XMLHttpRequest&&(zn.responseType=Vn),Un._options.imageTimeout){var Kn=Un._options.imageTimeout;zn.timeout=Kn,zn.ontimeout=function(){return Gn("Timed out ("+Kn+"ms) proxying "+Qn)}}zn.send()}))},Cache}(),vs=/^data:image\/svg\+xml/i,ys=/^data:image\/.*;base64,/i,_s=/^data:image\/.*/i,bs=function isRenderable(Tn){return gs.SUPPORT_SVG_DRAWING||!Cs(Tn)},ws=function isInlineImage(Tn){return _s.test(Tn)},xs=function isInlineBase64Image(Tn){return ys.test(Tn)},Ss=function isBlobImage(Tn){return"blob"===Tn.substr(0,4)},Cs=function isSVG(Tn){return"svg"===Tn.substr(-3).toLowerCase()||vs.test(Tn)},ks=function webkitGradient(Tn){var Un=Oa(180),Dn=[],Qn=Ka.LINEAR_GRADIENT,Hn=Ms.CIRCLE,Gn=Rs.FARTHEST_CORNER,Vn=[];return ma(Tn).forEach((function(Tn,Un){var Hn=Tn[0];if(0===Un){if(ha(Hn)&&"linear"===Hn.value)return void(Qn=Ka.LINEAR_GRADIENT);if(ha(Hn)&&"radial"===Hn.value)return void(Qn=Ka.RADIAL_GRADIENT)}if(Hn.type===Wn.FUNCTION)if("from"===Hn.name){var Gn=Fa.parse(Hn.values[0]);Dn.push({stop:wa,color:Gn})}else if("to"===Hn.name)Gn=Fa.parse(Hn.values[0]),Dn.push({stop:Sa,color:Gn});else if("color-stop"===Hn.name){var Vn=Hn.values.filter(Aa);if(2===Vn.length){Gn=Fa.parse(Vn[1]);var zn=Vn[0];da(zn)&&Dn.push({stop:{type:Wn.PERCENTAGE_TOKEN,number:100*zn.number,flags:zn.flags},color:Gn})}}})),Qn===Ka.LINEAR_GRADIENT?{angle:(Un+Oa(180))%Oa(360),stops:Dn,type:Qn}:{size:Gn,shape:Hn,stops:Dn,position:Vn,type:Qn}},Bs="closest-side",Es="farthest-side",Ps="closest-corner",Ls="farthest-corner",Ts="circle",Ns="ellipse",Is="cover",Os="contain",Fs=function radialGradient(Tn){var Un=Ms.CIRCLE,Dn=Rs.FARTHEST_CORNER,Qn=[],Hn=[];return ma(Tn).forEach((function(Tn,Gn){var Vn=!0;if(0===Gn){var zn=!1;Vn=Tn.reduce((function(Tn,Qn){if(zn)if(ha(Qn))switch(Qn.value){case"center":return Hn.push(xa),Tn;case"top":case"left":return Hn.push(wa),Tn;case"right":case"bottom":return Hn.push(Sa),Tn}else(_a(Qn)||ya(Qn))&&Hn.push(Qn);else if(ha(Qn))switch(Qn.value){case Ts:return Un=Ms.CIRCLE,!1;case Ns:return Un=Ms.ELLIPSE,!1;case"at":return zn=!0,!1;case Bs:return Dn=Rs.CLOSEST_SIDE,!1;case Is:case Es:return Dn=Rs.FARTHEST_SIDE,!1;case Os:case Ps:return Dn=Rs.CLOSEST_CORNER,!1;case Ls:return Dn=Rs.FARTHEST_CORNER,!1}else if(ya(Qn)||_a(Qn))return Array.isArray(Dn)||(Dn=[]),Dn.push(Qn),!1;return Tn}),Vn)}if(Vn){var Kn=Wa(Tn);Qn.push(Kn)}})),{size:Dn,shape:Un,stops:Qn,position:Hn,type:Ka.RADIAL_GRADIENT}},Us=function prefixRadialGradient(Tn){var Un=Ms.CIRCLE,Dn=Rs.FARTHEST_CORNER,Qn=[],Hn=[];return ma(Tn).forEach((function(Tn,Gn){var Vn=!0;if(0===Gn?Vn=Tn.reduce((function(Tn,Un){if(ha(Un))switch(Un.value){case"center":return Hn.push(xa),!1;case"top":case"left":return Hn.push(wa),!1;case"right":case"bottom":return Hn.push(Sa),!1}else if(_a(Un)||ya(Un))return Hn.push(Un),!1;return Tn}),Vn):1===Gn&&(Vn=Tn.reduce((function(Tn,Qn){if(ha(Qn))switch(Qn.value){case Ts:return Un=Ms.CIRCLE,!1;case Ns:return Un=Ms.ELLIPSE,!1;case Os:case Bs:return Dn=Rs.CLOSEST_SIDE,!1;case Es:return Dn=Rs.FARTHEST_SIDE,!1;case Ps:return Dn=Rs.CLOSEST_CORNER,!1;case Is:case Ls:return Dn=Rs.FARTHEST_CORNER,!1}else if(ya(Qn)||_a(Qn))return Array.isArray(Dn)||(Dn=[]),Dn.push(Qn),!1;return Tn}),Vn)),Vn){var zn=Wa(Tn);Qn.push(zn)}})),{size:Dn,shape:Un,stops:Qn,position:Hn,type:Ka.RADIAL_GRADIENT}};!function(Tn){Tn[Tn.URL=0]="URL",Tn[Tn.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",Tn[Tn.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(Ka||(Ka={}));var Ms,Rs,Ds=function isLinearGradient(Tn){return Tn.type===Ka.LINEAR_GRADIENT},js=function isRadialGradient(Tn){return Tn.type===Ka.RADIAL_GRADIENT};(function(Tn){Tn[Tn.CIRCLE=0]="CIRCLE",Tn[Tn.ELLIPSE=1]="ELLIPSE"})(Ms||(Ms={})),function(Tn){Tn[Tn.CLOSEST_SIDE=0]="CLOSEST_SIDE",Tn[Tn.FARTHEST_SIDE=1]="FARTHEST_SIDE",Tn[Tn.CLOSEST_CORNER=2]="CLOSEST_CORNER",Tn[Tn.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(Rs||(Rs={}));var Qs={name:"image",parse:function parse(Tn){if(Tn.type===Wn.URL_TOKEN){var Un={url:Tn.value,type:Ka.URL};return As.getInstance().addImage(Tn.value),Un}if(Tn.type===Wn.FUNCTION){var Dn=Gs[Tn.name];if(void 0===Dn)throw new Error('Attempting to parse an unsupported image function "'+Tn.name+'"');return Dn(Tn.values)}throw new Error("Unsupported image type")}};function isSupportedImage(Tn){return Tn.type!==Wn.FUNCTION||Gs[Tn.name]}var Hs,Gs={"linear-gradient":ns,"-moz-linear-gradient":rs,"-ms-linear-gradient":rs,"-o-linear-gradient":rs,"-webkit-linear-gradient":rs,"radial-gradient":Fs,"-moz-radial-gradient":Us,"-ms-radial-gradient":Us,"-o-radial-gradient":Us,"-webkit-radial-gradient":Us,"-webkit-gradient":ks},Vs={name:"background-image",initialValue:"none",type:Qa.LIST,prefix:!1,parse:function parse(Tn){if(0===Tn.length)return[];var Un=Tn[0];return Un.type===Wn.IDENT_TOKEN&&"none"===Un.value?[]:Tn.filter((function(Tn){return Aa(Tn)&&isSupportedImage(Tn)})).map(Qs.parse)}},zs={name:"background-origin",initialValue:"border-box",prefix:!1,type:Qa.LIST,parse:function parse(Tn){return Tn.map((function(Tn){if(ha(Tn))switch(Tn.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ks={name:"background-position",initialValue:"0% 0%",type:Qa.LIST,prefix:!1,parse:function parse(Tn){return ma(Tn).map((function(Tn){return Tn.filter(_a)})).map(ba)}};!function(Tn){Tn[Tn.REPEAT=0]="REPEAT",Tn[Tn.NO_REPEAT=1]="NO_REPEAT",Tn[Tn.REPEAT_X=2]="REPEAT_X",Tn[Tn.REPEAT_Y=3]="REPEAT_Y"}(Hs||(Hs={}));var qs,$s={name:"background-repeat",initialValue:"repeat",prefix:!1,type:Qa.LIST,parse:function parse(Tn){return ma(Tn).map((function(Tn){return Tn.filter(ha).map((function(Tn){return Tn.value})).join(" ")})).map(Ws)}},Ws=function parseBackgroundRepeat(Tn){switch(Tn){case"no-repeat":return Hs.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Hs.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Hs.REPEAT_Y;case"repeat":default:return Hs.REPEAT}};!function(Tn){Tn.AUTO="auto",Tn.CONTAIN="contain",Tn.COVER="cover"}(qs||(qs={}));var Xs,Ys={name:"background-size",initialValue:"0",prefix:!1,type:Qa.LIST,parse:function parse(Tn){return ma(Tn).map((function(Tn){return Tn.filter(Js)}))}},Js=function isBackgroundSizeInfoToken(Tn){return ha(Tn)||_a(Tn)},Zs=function borderColorForSide(Tn){return{name:"border-"+Tn+"-color",initialValue:"transparent",prefix:!1,type:Qa.TYPE_VALUE,format:"color"}},el=Zs("top"),tl=Zs("right"),nl=Zs("bottom"),rl=Zs("left"),il=function borderRadiusForSide(Tn){return{name:"border-radius-"+Tn,initialValue:"0 0",prefix:!1,type:Qa.LIST,parse:function parse(Tn){return ba(Tn.filter(_a))}}},ol=il("top-left"),al=il("top-right"),sl=il("bottom-right"),ll=il("bottom-left");!function(Tn){Tn[Tn.NONE=0]="NONE",Tn[Tn.SOLID=1]="SOLID"}(Xs||(Xs={}));var cl,ul=function borderStyleForSide(Tn){return{name:"border-"+Tn+"-style",initialValue:"solid",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"none":return Xs.NONE}return Xs.SOLID}}},dl=ul("top"),hl=ul("right"),pl=ul("bottom"),gl=ul("left"),fl=function borderWidthForSide(Tn){return{name:"border-"+Tn+"-width",initialValue:"0",type:Qa.VALUE,prefix:!1,parse:function parse(Tn){return ua(Tn)?Tn.number:0}}},Al=fl("top"),ml=fl("right"),vl=fl("bottom"),yl=fl("left"),_l={name:"color",initialValue:"transparent",prefix:!1,type:Qa.TYPE_VALUE,format:"color"},wl={name:"display",initialValue:"inline-block",prefix:!1,type:Qa.LIST,parse:function parse(Tn){return Tn.filter(ha).reduce((function(Tn,Un){return Tn|xl(Un.value)}),0)}},xl=function parseDisplayValue(Tn){switch(Tn){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(Tn){Tn[Tn.NONE=0]="NONE",Tn[Tn.LEFT=1]="LEFT",Tn[Tn.RIGHT=2]="RIGHT",Tn[Tn.INLINE_START=3]="INLINE_START",Tn[Tn.INLINE_END=4]="INLINE_END"}(cl||(cl={}));var Sl,Cl={name:"float",initialValue:"none",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"left":return cl.LEFT;case"right":return cl.RIGHT;case"inline-start":return cl.INLINE_START;case"inline-end":return cl.INLINE_END}return cl.NONE}},kl={name:"letter-spacing",initialValue:"0",prefix:!1,type:Qa.VALUE,parse:function parse(Tn){return Tn.type===Wn.IDENT_TOKEN&&"normal"===Tn.value?0:Tn.type===Wn.NUMBER_TOKEN||Tn.type===Wn.DIMENSION_TOKEN?Tn.number:0}};!function(Tn){Tn.NORMAL="normal",Tn.STRICT="strict"}(Sl||(Sl={}));var Bl,El={name:"line-break",initialValue:"normal",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"strict":return Sl.STRICT;case"normal":default:return Sl.NORMAL}}},Pl={name:"line-height",initialValue:"normal",prefix:!1,type:Qa.TOKEN_VALUE},Ll=function computeLineHeight(Tn,Un){return ha(Tn)&&"normal"===Tn.value?1.2*Un:Tn.type===Wn.NUMBER_TOKEN?Un*Tn.number:_a(Tn)?ka(Tn,Un):Un},Tl={name:"list-style-image",initialValue:"none",type:Qa.VALUE,prefix:!1,parse:function parse(Tn){return Tn.type===Wn.IDENT_TOKEN&&"none"===Tn.value?null:Qs.parse(Tn)}};!function(Tn){Tn[Tn.INSIDE=0]="INSIDE",Tn[Tn.OUTSIDE=1]="OUTSIDE"}(Bl||(Bl={}));var Nl,Il={name:"list-style-position",initialValue:"outside",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"inside":return Bl.INSIDE;case"outside":default:return Bl.OUTSIDE}}};!function(Tn){Tn[Tn.NONE=-1]="NONE",Tn[Tn.DISC=0]="DISC",Tn[Tn.CIRCLE=1]="CIRCLE",Tn[Tn.SQUARE=2]="SQUARE",Tn[Tn.DECIMAL=3]="DECIMAL",Tn[Tn.CJK_DECIMAL=4]="CJK_DECIMAL",Tn[Tn.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",Tn[Tn.LOWER_ROMAN=6]="LOWER_ROMAN",Tn[Tn.UPPER_ROMAN=7]="UPPER_ROMAN",Tn[Tn.LOWER_GREEK=8]="LOWER_GREEK",Tn[Tn.LOWER_ALPHA=9]="LOWER_ALPHA",Tn[Tn.UPPER_ALPHA=10]="UPPER_ALPHA",Tn[Tn.ARABIC_INDIC=11]="ARABIC_INDIC",Tn[Tn.ARMENIAN=12]="ARMENIAN",Tn[Tn.BENGALI=13]="BENGALI",Tn[Tn.CAMBODIAN=14]="CAMBODIAN",Tn[Tn.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",Tn[Tn.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",Tn[Tn.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",Tn[Tn.DEVANAGARI=18]="DEVANAGARI",Tn[Tn.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",Tn[Tn.GEORGIAN=20]="GEORGIAN",Tn[Tn.GUJARATI=21]="GUJARATI",Tn[Tn.GURMUKHI=22]="GURMUKHI",Tn[Tn.HEBREW=22]="HEBREW",Tn[Tn.HIRAGANA=23]="HIRAGANA",Tn[Tn.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",Tn[Tn.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",Tn[Tn.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",Tn[Tn.KANNADA=27]="KANNADA",Tn[Tn.KATAKANA=28]="KATAKANA",Tn[Tn.KATAKANA_IROHA=29]="KATAKANA_IROHA",Tn[Tn.KHMER=30]="KHMER",Tn[Tn.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",Tn[Tn.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",Tn[Tn.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",Tn[Tn.LAO=34]="LAO",Tn[Tn.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",Tn[Tn.MALAYALAM=36]="MALAYALAM",Tn[Tn.MONGOLIAN=37]="MONGOLIAN",Tn[Tn.MYANMAR=38]="MYANMAR",Tn[Tn.ORIYA=39]="ORIYA",Tn[Tn.PERSIAN=40]="PERSIAN",Tn[Tn.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",Tn[Tn.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",Tn[Tn.TAMIL=43]="TAMIL",Tn[Tn.TELUGU=44]="TELUGU",Tn[Tn.THAI=45]="THAI",Tn[Tn.TIBETAN=46]="TIBETAN",Tn[Tn.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",Tn[Tn.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",Tn[Tn.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",Tn[Tn.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",Tn[Tn.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Nl||(Nl={}));var Ol,Fl={name:"list-style-type",initialValue:"none",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"disc":return Nl.DISC;case"circle":return Nl.CIRCLE;case"square":return Nl.SQUARE;case"decimal":return Nl.DECIMAL;case"cjk-decimal":return Nl.CJK_DECIMAL;case"decimal-leading-zero":return Nl.DECIMAL_LEADING_ZERO;case"lower-roman":return Nl.LOWER_ROMAN;case"upper-roman":return Nl.UPPER_ROMAN;case"lower-greek":return Nl.LOWER_GREEK;case"lower-alpha":return Nl.LOWER_ALPHA;case"upper-alpha":return Nl.UPPER_ALPHA;case"arabic-indic":return Nl.ARABIC_INDIC;case"armenian":return Nl.ARMENIAN;case"bengali":return Nl.BENGALI;case"cambodian":return Nl.CAMBODIAN;case"cjk-earthly-branch":return Nl.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Nl.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Nl.CJK_IDEOGRAPHIC;case"devanagari":return Nl.DEVANAGARI;case"ethiopic-numeric":return Nl.ETHIOPIC_NUMERIC;case"georgian":return Nl.GEORGIAN;case"gujarati":return Nl.GUJARATI;case"gurmukhi":return Nl.GURMUKHI;case"hebrew":return Nl.HEBREW;case"hiragana":return Nl.HIRAGANA;case"hiragana-iroha":return Nl.HIRAGANA_IROHA;case"japanese-formal":return Nl.JAPANESE_FORMAL;case"japanese-informal":return Nl.JAPANESE_INFORMAL;case"kannada":return Nl.KANNADA;case"katakana":return Nl.KATAKANA;case"katakana-iroha":return Nl.KATAKANA_IROHA;case"khmer":return Nl.KHMER;case"korean-hangul-formal":return Nl.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Nl.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Nl.KOREAN_HANJA_INFORMAL;case"lao":return Nl.LAO;case"lower-armenian":return Nl.LOWER_ARMENIAN;case"malayalam":return Nl.MALAYALAM;case"mongolian":return Nl.MONGOLIAN;case"myanmar":return Nl.MYANMAR;case"oriya":return Nl.ORIYA;case"persian":return Nl.PERSIAN;case"simp-chinese-formal":return Nl.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Nl.SIMP_CHINESE_INFORMAL;case"tamil":return Nl.TAMIL;case"telugu":return Nl.TELUGU;case"thai":return Nl.THAI;case"tibetan":return Nl.TIBETAN;case"trad-chinese-formal":return Nl.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Nl.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Nl.UPPER_ARMENIAN;case"disclosure-open":return Nl.DISCLOSURE_OPEN;case"disclosure-closed":return Nl.DISCLOSURE_CLOSED;case"none":default:return Nl.NONE}}},Ul=function marginForSide(Tn){return{name:"margin-"+Tn,initialValue:"0",prefix:!1,type:Qa.TOKEN_VALUE}},Ml=Ul("top"),Rl=Ul("right"),Dl=Ul("bottom"),jl=Ul("left");!function(Tn){Tn[Tn.VISIBLE=0]="VISIBLE",Tn[Tn.HIDDEN=1]="HIDDEN",Tn[Tn.SCROLL=2]="SCROLL",Tn[Tn.AUTO=3]="AUTO"}(Ol||(Ol={}));var Ql,Hl={name:"overflow",initialValue:"visible",prefix:!1,type:Qa.LIST,parse:function parse(Tn){return Tn.filter(ha).map((function(Tn){switch(Tn.value){case"hidden":return Ol.HIDDEN;case"scroll":return Ol.SCROLL;case"auto":return Ol.AUTO;case"visible":default:return Ol.VISIBLE}}))}};!function(Tn){Tn.NORMAL="normal",Tn.BREAK_WORD="break-word"}(Ql||(Ql={}));var Gl,Vl={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"break-word":return Ql.BREAK_WORD;case"normal":default:return Ql.NORMAL}}},zl=function paddingForSide(Tn){return{name:"padding-"+Tn,initialValue:"0",prefix:!1,type:Qa.TYPE_VALUE,format:"length-percentage"}},Kl=zl("top"),ql=zl("right"),$l=zl("bottom"),Wl=zl("left");!function(Tn){Tn[Tn.LEFT=0]="LEFT",Tn[Tn.CENTER=1]="CENTER",Tn[Tn.RIGHT=2]="RIGHT"}(Gl||(Gl={}));var Xl,Yl={name:"text-align",initialValue:"left",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"right":return Gl.RIGHT;case"center":case"justify":return Gl.CENTER;case"left":default:return Gl.LEFT}}};!function(Tn){Tn[Tn.STATIC=0]="STATIC",Tn[Tn.RELATIVE=1]="RELATIVE",Tn[Tn.ABSOLUTE=2]="ABSOLUTE",Tn[Tn.FIXED=3]="FIXED",Tn[Tn.STICKY=4]="STICKY"}(Xl||(Xl={}));var Jl,Zl={name:"position",initialValue:"static",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"relative":return Xl.RELATIVE;case"absolute":return Xl.ABSOLUTE;case"fixed":return Xl.FIXED;case"sticky":return Xl.STICKY}return Xl.STATIC}},ec={name:"text-shadow",initialValue:"none",type:Qa.LIST,prefix:!1,parse:function parse(Tn){return 1===Tn.length&&ga(Tn[0],"none")?[]:ma(Tn).map((function(Tn){for(var Un={color:za.TRANSPARENT,offsetX:wa,offsetY:wa,blur:wa},Dn=0,Qn=0;Qn<Tn.length;Qn++){var Hn=Tn[Qn];ya(Hn)?(0===Dn?Un.offsetX=Hn:1===Dn?Un.offsetY=Hn:Un.blur=Hn,Dn++):Un.color=Fa.parse(Hn)}return Un}))}};!function(Tn){Tn[Tn.NONE=0]="NONE",Tn[Tn.LOWERCASE=1]="LOWERCASE",Tn[Tn.UPPERCASE=2]="UPPERCASE",Tn[Tn.CAPITALIZE=3]="CAPITALIZE"}(Jl||(Jl={}));var tc,nc={name:"text-transform",initialValue:"none",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"uppercase":return Jl.UPPERCASE;case"lowercase":return Jl.LOWERCASE;case"capitalize":return Jl.CAPITALIZE}return Jl.NONE}},rc={name:"transform",initialValue:"none",prefix:!0,type:Qa.VALUE,parse:function parse(Tn){if(Tn.type===Wn.IDENT_TOKEN&&"none"===Tn.value)return null;if(Tn.type===Wn.FUNCTION){var Un=ic[Tn.name];if(void 0===Un)throw new Error('Attempting to parse an unsupported transform function "'+Tn.name+'"');return Un(Tn.values)}return null}},ic={matrix:function matrix(Tn){var Un=Tn.filter((function(Tn){return Tn.type===Wn.NUMBER_TOKEN})).map((function(Tn){return Tn.number}));return 6===Un.length?Un:null},matrix3d:function matrix3d(Tn){var Un=Tn.filter((function(Tn){return Tn.type===Wn.NUMBER_TOKEN})).map((function(Tn){return Tn.number})),Dn=Un[0],Qn=Un[1],Hn=(Un[2],Un[3],Un[4]),Gn=Un[5],Vn=(Un[6],Un[7],Un[8],Un[9],Un[10],Un[11],Un[12]),zn=Un[13];return Un[14],Un[15],16===Un.length?[Dn,Qn,Hn,Gn,Vn,zn]:null}},oc={type:Wn.PERCENTAGE_TOKEN,number:50,flags:wi},ac=[oc,oc],sc={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:Qa.LIST,parse:function parse(Tn){var Un=Tn.filter(_a);return 2!==Un.length?ac:[Un[0],Un[1]]}};!function(Tn){Tn[Tn.VISIBLE=0]="VISIBLE",Tn[Tn.HIDDEN=1]="HIDDEN",Tn[Tn.COLLAPSE=2]="COLLAPSE"}(tc||(tc={}));var lc,uc={name:"visible",initialValue:"none",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"hidden":return tc.HIDDEN;case"collapse":return tc.COLLAPSE;case"visible":default:return tc.VISIBLE}}};!function(Tn){Tn.NORMAL="normal",Tn.BREAK_ALL="break-all",Tn.KEEP_ALL="keep-all"}(lc||(lc={}));var dc,hc={name:"word-break",initialValue:"normal",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"break-all":return lc.BREAK_ALL;case"keep-all":return lc.KEEP_ALL;case"normal":default:return lc.NORMAL}}},pc={name:"z-index",initialValue:"auto",prefix:!1,type:Qa.VALUE,parse:function parse(Tn){if(Tn.type===Wn.IDENT_TOKEN)return{auto:!0,order:0};if(da(Tn))return{auto:!1,order:Tn.number};throw new Error("Invalid z-index number parsed")}},gc={name:"opacity",initialValue:"1",type:Qa.VALUE,prefix:!1,parse:function parse(Tn){return da(Tn)?Tn.number:1}},fc={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:Qa.TYPE_VALUE,format:"color"},Ac={name:"text-decoration-line",initialValue:"none",prefix:!1,type:Qa.LIST,parse:function parse(Tn){return Tn.filter(ha).map((function(Tn){switch(Tn.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(Tn){return 0!==Tn}))}},mc={name:"font-family",initialValue:"",prefix:!1,type:Qa.LIST,parse:function parse(Tn){var Un=[],Dn=[];return Tn.forEach((function(Tn){switch(Tn.type){case Wn.IDENT_TOKEN:case Wn.STRING_TOKEN:Un.push(Tn.value);break;case Wn.NUMBER_TOKEN:Un.push(Tn.number.toString());break;case Wn.COMMA_TOKEN:Dn.push(Un.join(" ")),Un.length=0}})),Un.length&&Dn.push(Un.join(" ")),Dn.map((function(Tn){return-1===Tn.indexOf(" ")?Tn:"'"+Tn+"'"}))}},vc={name:"font-size",initialValue:"0",prefix:!1,type:Qa.TYPE_VALUE,format:"length"},yc={name:"font-weight",initialValue:"normal",type:Qa.VALUE,prefix:!1,parse:function parse(Tn){if(da(Tn))return Tn.number;if(ha(Tn))switch(Tn.value){case"bold":return 700;case"normal":default:return 400}return 400}},_c={name:"font-variant",initialValue:"none",type:Qa.LIST,prefix:!1,parse:function parse(Tn){return Tn.filter(ha).map((function(Tn){return Tn.value}))}};!function(Tn){Tn.NORMAL="normal",Tn.ITALIC="italic",Tn.OBLIQUE="oblique"}(dc||(dc={}));var bc,wc={name:"font-style",initialValue:"normal",prefix:!1,type:Qa.IDENT_VALUE,parse:function parse(Tn){switch(Tn){case"oblique":return dc.OBLIQUE;case"italic":return dc.ITALIC;case"normal":default:return dc.NORMAL}}},xc=function contains(Tn,Un){return 0!=(Tn&Un)},Sc={name:"content",initialValue:"none",type:Qa.LIST,prefix:!1,parse:function parse(Tn){if(0===Tn.length)return[];var Un=Tn[0];return Un.type===Wn.IDENT_TOKEN&&"none"===Un.value?[]:Tn}},Cc={name:"counter-increment",initialValue:"none",prefix:!0,type:Qa.LIST,parse:function parse(Tn){if(0===Tn.length)return null;var Un=Tn[0];if(Un.type===Wn.IDENT_TOKEN&&"none"===Un.value)return null;for(var Dn=[],Qn=Tn.filter(fa),Hn=0;Hn<Qn.length;Hn++){var Gn=Qn[Hn],Vn=Qn[Hn+1];if(Gn.type===Wn.IDENT_TOKEN){var zn=Vn&&da(Vn)?Vn.number:1;Dn.push({counter:Gn.value,increment:zn})}}return Dn}},kc={name:"counter-reset",initialValue:"none",prefix:!0,type:Qa.LIST,parse:function parse(Tn){if(0===Tn.length)return[];for(var Un=[],Dn=Tn.filter(fa),Qn=0;Qn<Dn.length;Qn++){var Hn=Dn[Qn],Gn=Dn[Qn+1];if(ha(Hn)&&"none"!==Hn.value){var Vn=Gn&&da(Gn)?Gn.number:0;Un.push({counter:Hn.value,reset:Vn})}}return Un}},Bc={name:"quotes",initialValue:"none",prefix:!0,type:Qa.LIST,parse:function parse(Tn){if(0===Tn.length)return null;var Un=Tn[0];if(Un.type===Wn.IDENT_TOKEN&&"none"===Un.value)return null;var Dn=[],Qn=Tn.filter(pa);if(Qn.length%2!=0)return null;for(var Hn=0;Hn<Qn.length;Hn+=2){var Gn=Qn[Hn].value,Vn=Qn[Hn+1].value;Dn.push({open:Gn,close:Vn})}return Dn}},Ec=function getQuote(Tn,Un,Dn){if(!Tn)return"";var Qn=Tn[Math.min(Un,Tn.length-1)];return Qn?Dn?Qn.open:Qn.close:""},Pc={name:"box-shadow",initialValue:"none",type:Qa.LIST,prefix:!1,parse:function parse(Tn){return 1===Tn.length&&ga(Tn[0],"none")?[]:ma(Tn).map((function(Tn){for(var Un={color:255,offsetX:wa,offsetY:wa,blur:wa,spread:wa,inset:!1},Dn=0,Qn=0;Qn<Tn.length;Qn++){var Hn=Tn[Qn];ga(Hn,"inset")?Un.inset=!0:ya(Hn)?(0===Dn?Un.offsetX=Hn:1===Dn?Un.offsetY=Hn:2===Dn?Un.blur=Hn:Un.spread=Hn,Dn++):Un.color=Fa.parse(Hn)}return Un}))}},Lc=function(){function CSSParsedDeclaration(Tn){this.backgroundClip=Ic(qa,Tn.backgroundClip),this.backgroundColor=Ic($a,Tn.backgroundColor),this.backgroundImage=Ic(Vs,Tn.backgroundImage),this.backgroundOrigin=Ic(zs,Tn.backgroundOrigin),this.backgroundPosition=Ic(Ks,Tn.backgroundPosition),this.backgroundRepeat=Ic($s,Tn.backgroundRepeat),this.backgroundSize=Ic(Ys,Tn.backgroundSize),this.borderTopColor=Ic(el,Tn.borderTopColor),this.borderRightColor=Ic(tl,Tn.borderRightColor),this.borderBottomColor=Ic(nl,Tn.borderBottomColor),this.borderLeftColor=Ic(rl,Tn.borderLeftColor),this.borderTopLeftRadius=Ic(ol,Tn.borderTopLeftRadius),this.borderTopRightRadius=Ic(al,Tn.borderTopRightRadius),this.borderBottomRightRadius=Ic(sl,Tn.borderBottomRightRadius),this.borderBottomLeftRadius=Ic(ll,Tn.borderBottomLeftRadius),this.borderTopStyle=Ic(dl,Tn.borderTopStyle),this.borderRightStyle=Ic(hl,Tn.borderRightStyle),this.borderBottomStyle=Ic(pl,Tn.borderBottomStyle),this.borderLeftStyle=Ic(gl,Tn.borderLeftStyle),this.borderTopWidth=Ic(Al,Tn.borderTopWidth),this.borderRightWidth=Ic(ml,Tn.borderRightWidth),this.borderBottomWidth=Ic(vl,Tn.borderBottomWidth),this.borderLeftWidth=Ic(yl,Tn.borderLeftWidth),this.boxShadow=Ic(Pc,Tn.boxShadow),this.color=Ic(_l,Tn.color),this.display=Ic(wl,Tn.display),this.float=Ic(Cl,Tn.cssFloat),this.fontFamily=Ic(mc,Tn.fontFamily),this.fontSize=Ic(vc,Tn.fontSize),this.fontStyle=Ic(wc,Tn.fontStyle),this.fontVariant=Ic(_c,Tn.fontVariant),this.fontWeight=Ic(yc,Tn.fontWeight),this.letterSpacing=Ic(kl,Tn.letterSpacing),this.lineBreak=Ic(El,Tn.lineBreak),this.lineHeight=Ic(Pl,Tn.lineHeight),this.listStyleImage=Ic(Tl,Tn.listStyleImage),this.listStylePosition=Ic(Il,Tn.listStylePosition),this.listStyleType=Ic(Fl,Tn.listStyleType),this.marginTop=Ic(Ml,Tn.marginTop),this.marginRight=Ic(Rl,Tn.marginRight),this.marginBottom=Ic(Dl,Tn.marginBottom),this.marginLeft=Ic(jl,Tn.marginLeft),this.opacity=Ic(gc,Tn.opacity);var Un=Ic(Hl,Tn.overflow);this.overflowX=Un[0],this.overflowY=Un[Un.length>1?1:0],this.overflowWrap=Ic(Vl,Tn.overflowWrap),this.paddingTop=Ic(Kl,Tn.paddingTop),this.paddingRight=Ic(ql,Tn.paddingRight),this.paddingBottom=Ic($l,Tn.paddingBottom),this.paddingLeft=Ic(Wl,Tn.paddingLeft),this.position=Ic(Zl,Tn.position),this.textAlign=Ic(Yl,Tn.textAlign),this.textDecorationColor=Ic(fc,Tn.textDecorationColor||Tn.color),this.textDecorationLine=Ic(Ac,Tn.textDecorationLine),this.textShadow=Ic(ec,Tn.textShadow),this.textTransform=Ic(nc,Tn.textTransform),this.transform=Ic(rc,Tn.transform),this.transformOrigin=Ic(sc,Tn.transformOrigin),this.visibility=Ic(uc,Tn.visibility),this.wordBreak=Ic(hc,Tn.wordBreak),this.zIndex=Ic(pc,Tn.zIndex)}return CSSParsedDeclaration.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===tc.VISIBLE},CSSParsedDeclaration.prototype.isTransparent=function(){return Ua(this.backgroundColor)},CSSParsedDeclaration.prototype.isTransformed=function(){return null!==this.transform},CSSParsedDeclaration.prototype.isPositioned=function(){return this.position!==Xl.STATIC},CSSParsedDeclaration.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},CSSParsedDeclaration.prototype.isFloating=function(){return this.float!==cl.NONE},CSSParsedDeclaration.prototype.isInlineLevel=function(){return xc(this.display,4)||xc(this.display,33554432)||xc(this.display,268435456)||xc(this.display,536870912)||xc(this.display,67108864)||xc(this.display,134217728)},CSSParsedDeclaration}(),Tc=function(){function CSSParsedPseudoDeclaration(Tn){this.content=Ic(Sc,Tn.content),this.quotes=Ic(Bc,Tn.quotes)}return CSSParsedPseudoDeclaration}(),Nc=function(){function CSSParsedCounterDeclaration(Tn){this.counterIncrement=Ic(Cc,Tn.counterIncrement),this.counterReset=Ic(kc,Tn.counterReset)}return CSSParsedCounterDeclaration}(),Ic=function parse(Tn,Un){var Dn=new sa,Qn=null!=Un?Un.toString():Tn.initialValue;Dn.write(Qn);var Hn=new la(Dn.read());switch(Tn.type){case Qa.IDENT_VALUE:var Gn=Hn.parseComponentValue();return Tn.parse(ha(Gn)?Gn.value:Tn.initialValue);case Qa.VALUE:return Tn.parse(Hn.parseComponentValue());case Qa.LIST:return Tn.parse(Hn.parseComponentValues());case Qa.TOKEN_VALUE:return Hn.parseComponentValue();case Qa.TYPE_VALUE:switch(Tn.format){case"angle":return Ta.parse(Hn.parseComponentValue());case"color":return Fa.parse(Hn.parseComponentValue());case"image":return Qs.parse(Hn.parseComponentValue());case"length":var Vn=Hn.parseComponentValue();return ya(Vn)?Vn:wa;case"length-percentage":var zn=Hn.parseComponentValue();return _a(zn)?zn:wa}}throw new Error("Attempting to parse unsupported css format type "+Tn.format)},Oc=function(){function ElementContainer(Tn){this.styles=new Lc(window.getComputedStyle(Tn,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&vu(Tn)&&(Tn.style.transform="none"),this.bounds=Qn(Tn),this.flags=0}return ElementContainer}(),Fc=function(){function TextBounds(Tn,Un){this.text=Tn,this.bounds=Un}return TextBounds}(),Uc=function parseTextBounds(Tn,Un,Dn){var Qn=Dc(Tn,Un),Hn=[],Gn=0;return Qn.forEach((function(Tn){if(Un.textDecorationLine.length||Tn.trim().length>0)if(gs.SUPPORT_RANGE_BOUNDS)Hn.push(new Fc(Tn,Rc(Dn,Gn,Tn.length)));else{var Qn=Dn.splitText(Tn.length);Hn.push(new Fc(Tn,Mc(Dn))),Dn=Qn}else gs.SUPPORT_RANGE_BOUNDS||(Dn=Dn.splitText(Tn.length));Gn+=Tn.length})),Hn},Mc=function getWrapperBounds(Tn){var Un=Tn.ownerDocument;if(Un){var Hn=Un.createElement("html2canvaswrapper");Hn.appendChild(Tn.cloneNode(!0));var Gn=Tn.parentNode;if(Gn){Gn.replaceChild(Hn,Tn);var Vn=Qn(Hn);return Hn.firstChild&&Gn.replaceChild(Hn.firstChild,Hn),Vn}}return new Dn(0,0,0,0)},Rc=function getRangeBounds(Tn,Un,Qn){var Hn=Tn.ownerDocument;if(!Hn)throw new Error("Node has no owner document");var Gn=Hn.createRange();return Gn.setStart(Tn,Un),Gn.setEnd(Tn,Un+Qn),Dn.fromClientRect(Gn.getBoundingClientRect())},Dc=function breakText(Tn,Un){return 0!==Un.letterSpacing?Gn(Tn).map((function(Tn){return Vn(Tn)})):jc(Tn,Un)},jc=function breakWords(Tn,Un){for(var Dn,Qn=vi(Tn,{lineBreak:Un.lineBreak,wordBreak:Un.overflowWrap===Ql.BREAK_WORD?"break-word":Un.wordBreak}),Hn=[];!(Dn=Qn.next()).done;)Dn.value&&Hn.push(Dn.value.slice());return Hn},Qc=function(){function TextContainer(Tn,Un){this.text=Hc(Tn.data,Un.textTransform),this.textBounds=Uc(this.text,Un,Tn)}return TextContainer}(),Hc=function transform$1(Tn,Un){switch(Un){case Jl.LOWERCASE:return Tn.toLowerCase();case Jl.CAPITALIZE:return Tn.replace(Gc,Vc);case Jl.UPPERCASE:return Tn.toUpperCase();default:return Tn}},Gc=/(^|\s|:|-|\(|\))([a-z])/g,Vc=function capitalize(Tn,Un,Dn){return Tn.length>0?Un+Dn.toUpperCase():Tn},zc=function(Tn){function ImageElementContainer(Un){var Dn=Tn.call(this,Un)||this;return Dn.src=Un.currentSrc||Un.src,Dn.intrinsicWidth=Un.naturalWidth,Dn.intrinsicHeight=Un.naturalHeight,As.getInstance().addImage(Dn.src),Dn}return __extends(ImageElementContainer,Tn),ImageElementContainer}(Oc),Kc=function(Tn){function CanvasElementContainer(Un){var Dn=Tn.call(this,Un)||this;return Dn.canvas=Un,Dn.intrinsicWidth=Un.width,Dn.intrinsicHeight=Un.height,Dn}return __extends(CanvasElementContainer,Tn),CanvasElementContainer}(Oc),qc=function(Tn){function SVGElementContainer(Un){var Dn=Tn.call(this,Un)||this,Qn=new XMLSerializer;return Dn.svg="data:image/svg+xml,"+encodeURIComponent(Qn.serializeToString(Un)),Dn.intrinsicWidth=Un.width.baseVal.value,Dn.intrinsicHeight=Un.height.baseVal.value,As.getInstance().addImage(Dn.svg),Dn}return __extends(SVGElementContainer,Tn),SVGElementContainer}(Oc),$c=function(Tn){function LIElementContainer(Un){var Dn=Tn.call(this,Un)||this;return Dn.value=Un.value,Dn}return __extends(LIElementContainer,Tn),LIElementContainer}(Oc),Wc=function(Tn){function OLElementContainer(Un){var Dn=Tn.call(this,Un)||this;return Dn.start=Un.start,Dn.reversed="boolean"==typeof Un.reversed&&!0===Un.reversed,Dn}return __extends(OLElementContainer,Tn),OLElementContainer}(Oc),Xc=[{type:Wn.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Yc=[{type:Wn.PERCENTAGE_TOKEN,flags:0,number:50}],Jc=function reformatInputBounds(Tn){return Tn.width>Tn.height?new Dn(Tn.left+(Tn.width-Tn.height)/2,Tn.top,Tn.height,Tn.height):Tn.width<Tn.height?new Dn(Tn.left,Tn.top+(Tn.height-Tn.width)/2,Tn.width,Tn.width):Tn},Zc=function getInputValue(Tn){var Un=Tn.type===nu?new Array(Tn.value.length+1).join("•"):Tn.value;return 0===Un.length?Tn.placeholder||"":Un},eu="checkbox",tu="radio",nu="password",ru=707406591,iu=function(Tn){function InputElementContainer(Un){var Dn=Tn.call(this,Un)||this;switch(Dn.type=Un.type.toLowerCase(),Dn.checked=Un.checked,Dn.value=Zc(Un),Dn.type!==eu&&Dn.type!==tu||(Dn.styles.backgroundColor=3739148031,Dn.styles.borderTopColor=Dn.styles.borderRightColor=Dn.styles.borderBottomColor=Dn.styles.borderLeftColor=2779096575,Dn.styles.borderTopWidth=Dn.styles.borderRightWidth=Dn.styles.borderBottomWidth=Dn.styles.borderLeftWidth=1,Dn.styles.borderTopStyle=Dn.styles.borderRightStyle=Dn.styles.borderBottomStyle=Dn.styles.borderLeftStyle=Xs.SOLID,Dn.styles.backgroundClip=[Ha.BORDER_BOX],Dn.styles.backgroundOrigin=[0],Dn.bounds=Jc(Dn.bounds)),Dn.type){case eu:Dn.styles.borderTopRightRadius=Dn.styles.borderTopLeftRadius=Dn.styles.borderBottomRightRadius=Dn.styles.borderBottomLeftRadius=Xc;break;case tu:Dn.styles.borderTopRightRadius=Dn.styles.borderTopLeftRadius=Dn.styles.borderBottomRightRadius=Dn.styles.borderBottomLeftRadius=Yc}return Dn}return __extends(InputElementContainer,Tn),InputElementContainer}(Oc),ou=function(Tn){function SelectElementContainer(Un){var Dn=Tn.call(this,Un)||this,Qn=Un.options[Un.selectedIndex||0];return Dn.value=Qn&&Qn.text||"",Dn}return __extends(SelectElementContainer,Tn),SelectElementContainer}(Oc),au=function(Tn){function TextareaElementContainer(Un){var Dn=Tn.call(this,Un)||this;return Dn.value=Un.value,Dn}return __extends(TextareaElementContainer,Tn),TextareaElementContainer}(Oc),su=function parseColor(Tn){return Fa.parse(la.create(Tn).parseComponentValue())},lu=function(Tn){function IFrameElementContainer(Un){var Dn=Tn.call(this,Un)||this;Dn.src=Un.src,Dn.width=parseInt(Un.width,10)||0,Dn.height=parseInt(Un.height,10)||0,Dn.backgroundColor=Dn.styles.backgroundColor;try{if(Un.contentWindow&&Un.contentWindow.document&&Un.contentWindow.document.documentElement){Dn.tree=pu(Un.contentWindow.document.documentElement);var Qn=Un.contentWindow.document.documentElement?su(getComputedStyle(Un.contentWindow.document.documentElement).backgroundColor):za.TRANSPARENT,Hn=Un.contentWindow.document.body?su(getComputedStyle(Un.contentWindow.document.body).backgroundColor):za.TRANSPARENT;Dn.backgroundColor=Ua(Qn)?Ua(Hn)?Dn.styles.backgroundColor:Hn:Qn}}catch(Tn){}return Dn}return __extends(IFrameElementContainer,Tn),IFrameElementContainer}(Oc),uu=["OL","UL","MENU"],du=function parseNodeTree(Tn,Un,Dn){for(var Qn=Tn.firstChild,Hn=void 0;Qn;Qn=Hn)if(Hn=Qn.nextSibling,Au(Qn)&&Qn.data.trim().length>0)Un.textNodes.push(new Qc(Qn,Un.styles));else if(mu(Qn)){var Gn=hu(Qn);Gn.styles.isVisible()&&(gu(Qn,Gn,Dn)?Gn.flags|=4:fu(Gn.styles)&&(Gn.flags|=2),-1!==uu.indexOf(Qn.tagName)&&(Gn.flags|=8),Un.elements.push(Gn),Tu(Qn)||Su(Qn)||Nu(Qn)||parseNodeTree(Qn,Gn,Dn))}},hu=function createContainer(Tn){return Bu(Tn)?new zc(Tn):ku(Tn)?new Kc(Tn):Su(Tn)?new qc(Tn):_u(Tn)?new $c(Tn):bu(Tn)?new Wc(Tn):wu(Tn)?new iu(Tn):Nu(Tn)?new ou(Tn):Tu(Tn)?new au(Tn):Eu(Tn)?new lu(Tn):new Oc(Tn)},pu=function parseTree(Tn){var Un=hu(Tn);return Un.flags|=4,du(Tn,Un,Un),Un},gu=function createsRealStackingContext(Tn,Un,Dn){return Un.styles.isPositionedWithZIndex()||Un.styles.opacity<1||Un.styles.isTransformed()||Cu(Tn)&&Dn.styles.isTransparent()},fu=function createsStackingContext(Tn){return Tn.isPositioned()||Tn.isFloating()},Au=function isTextNode(Tn){return Tn.nodeType===Node.TEXT_NODE},mu=function isElementNode(Tn){return Tn.nodeType===Node.ELEMENT_NODE},vu=function isHTMLElementNode(Tn){return mu(Tn)&&void 0!==Tn.style&&!yu(Tn)},yu=function isSVGElementNode(Tn){return"object"===_typeof(Tn.className)},_u=function isLIElement(Tn){return"LI"===Tn.tagName},bu=function isOLElement(Tn){return"OL"===Tn.tagName},wu=function isInputElement(Tn){return"INPUT"===Tn.tagName},xu=function isHTMLElement(Tn){return"HTML"===Tn.tagName},Su=function isSVGElement(Tn){return"svg"===Tn.tagName},Cu=function isBodyElement(Tn){return"BODY"===Tn.tagName},ku=function isCanvasElement(Tn){return"CANVAS"===Tn.tagName},Bu=function isImageElement(Tn){return"IMG"===Tn.tagName},Eu=function isIFrameElement(Tn){return"IFRAME"===Tn.tagName},Pu=function isStyleElement(Tn){return"STYLE"===Tn.tagName},Lu=function isScriptElement(Tn){return"SCRIPT"===Tn.tagName},Tu=function isTextareaElement(Tn){return"TEXTAREA"===Tn.tagName},Nu=function isSelectElement(Tn){return"SELECT"===Tn.tagName},Iu=function(){function CounterState(){this.counters={}}return CounterState.prototype.getCounterValue=function(Tn){var Un=this.counters[Tn];return Un&&Un.length?Un[Un.length-1]:1},CounterState.prototype.getCounterValues=function(Tn){var Un=this.counters[Tn];return Un||[]},CounterState.prototype.pop=function(Tn){var Un=this;Tn.forEach((function(Tn){return Un.counters[Tn].pop()}))},CounterState.prototype.parse=function(Tn){var Un=this,Dn=Tn.counterIncrement,Qn=Tn.counterReset,Hn=!0;null!==Dn&&Dn.forEach((function(Tn){var Dn=Un.counters[Tn.counter];Dn&&0!==Tn.increment&&(Hn=!1,Dn[Math.max(0,Dn.length-1)]+=Tn.increment)}));var Gn=[];return Hn&&Qn.forEach((function(Tn){var Dn=Un.counters[Tn.counter];Gn.push(Tn.counter),Dn||(Dn=Un.counters[Tn.counter]=[]),Dn.push(Tn.reset)})),Gn},CounterState}(),Ou={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"]},Fu={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Uu={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Mu={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ru=function createAdditiveCounter(Tn,Un,Dn,Qn,Hn,Gn){return Tn<Un||Tn>Dn?Yu(Tn,Hn,Gn.length>0):Qn.integers.reduce((function(Un,Dn,Hn){for(;Tn>=Dn;)Tn-=Dn,Un+=Qn.values[Hn];return Un}),"")+Gn},Du=function createCounterStyleWithSymbolResolver(Tn,Un,Dn,Qn){var Hn="";do{Dn||Tn--,Hn=Qn(Tn)+Hn,Tn/=Un}while(Tn*Un>=Un);return Hn},ju=function createCounterStyleFromRange(Tn,Un,Dn,Qn,Hn){var Gn=Dn-Un+1;return(Tn<0?"-":"")+(Du(Math.abs(Tn),Gn,Qn,(function(Tn){return Vn(Math.floor(Tn%Gn)+Un)}))+Hn)},Qu=function createCounterStyleFromSymbols(Tn,Un,Dn){void 0===Dn&&(Dn=". ");var Qn=Un.length;return Du(Math.abs(Tn),Qn,!1,(function(Tn){return Un[Math.floor(Tn%Qn)]}))+Dn},Hu=1,Gu=2,Vu=4,zu=8,Ku=function createCJKCounter(Tn,Un,Dn,Qn,Hn,Gn){if(Tn<-9999||Tn>9999)return Yu(Tn,Nl.CJK_DECIMAL,Hn.length>0);var Vn=Math.abs(Tn),zn=Hn;if(0===Vn)return Un[0]+zn;for(var Kn=0;Vn>0&&Kn<=4;Kn++){var $n=Vn%10;0===$n&&xc(Gn,Hu)&&""!==zn?zn=Un[$n]+zn:$n>1||1===$n&&0===Kn||1===$n&&1===Kn&&xc(Gn,Gu)||1===$n&&1===Kn&&xc(Gn,Vu)&&Tn>100||1===$n&&Kn>1&&xc(Gn,zu)?zn=Un[$n]+(Kn>0?Dn[Kn-1]:"")+zn:1===$n&&Kn>0&&(zn=Dn[Kn-1]+zn),Vn=Math.floor(Vn/10)}return(Tn<0?Qn:"")+zn},qu="十百千萬",$u="拾佰仟萬",Wu="マイナス",Xu="마이너스",Yu=function createCounterText(Tn,Un,Dn){var Qn=Dn?". ":"",Hn=Dn?"、":"",Gn=Dn?", ":"",Vn=Dn?" ":"";switch(Un){case Nl.DISC:return"•"+Vn;case Nl.CIRCLE:return"◦"+Vn;case Nl.SQUARE:return"◾"+Vn;case Nl.DECIMAL_LEADING_ZERO:var zn=ju(Tn,48,57,!0,Qn);return zn.length<4?"0"+zn:zn;case Nl.CJK_DECIMAL:return Qu(Tn,"〇一二三四五六七八九",Hn);case Nl.LOWER_ROMAN:return Ru(Tn,1,3999,Ou,Nl.DECIMAL,Qn).toLowerCase();case Nl.UPPER_ROMAN:return Ru(Tn,1,3999,Ou,Nl.DECIMAL,Qn);case Nl.LOWER_GREEK:return ju(Tn,945,969,!1,Qn);case Nl.LOWER_ALPHA:return ju(Tn,97,122,!1,Qn);case Nl.UPPER_ALPHA:return ju(Tn,65,90,!1,Qn);case Nl.ARABIC_INDIC:return ju(Tn,1632,1641,!0,Qn);case Nl.ARMENIAN:case Nl.UPPER_ARMENIAN:return Ru(Tn,1,9999,Fu,Nl.DECIMAL,Qn);case Nl.LOWER_ARMENIAN:return Ru(Tn,1,9999,Fu,Nl.DECIMAL,Qn).toLowerCase();case Nl.BENGALI:return ju(Tn,2534,2543,!0,Qn);case Nl.CAMBODIAN:case Nl.KHMER:return ju(Tn,6112,6121,!0,Qn);case Nl.CJK_EARTHLY_BRANCH:return Qu(Tn,"子丑寅卯辰巳午未申酉戌亥",Hn);case Nl.CJK_HEAVENLY_STEM:return Qu(Tn,"甲乙丙丁戊己庚辛壬癸",Hn);case Nl.CJK_IDEOGRAPHIC:case Nl.TRAD_CHINESE_INFORMAL:return Ku(Tn,"零一二三四五六七八九",qu,"負",Hn,Gu|Vu|zu);case Nl.TRAD_CHINESE_FORMAL:return Ku(Tn,"零壹貳參肆伍陸柒捌玖",$u,"負",Hn,Hu|Gu|Vu|zu);case Nl.SIMP_CHINESE_INFORMAL:return Ku(Tn,"零一二三四五六七八九",qu,"负",Hn,Gu|Vu|zu);case Nl.SIMP_CHINESE_FORMAL:return Ku(Tn,"零壹贰叁肆伍陆柒捌玖",$u,"负",Hn,Hu|Gu|Vu|zu);case Nl.JAPANESE_INFORMAL:return Ku(Tn,"〇一二三四五六七八九","十百千万",Wu,Hn,0);case Nl.JAPANESE_FORMAL:return Ku(Tn,"零壱弐参四伍六七八九","拾百千万",Wu,Hn,Hu|Gu|Vu);case Nl.KOREAN_HANGUL_FORMAL:return Ku(Tn,"영일이삼사오육칠팔구","십백천만",Xu,Gn,Hu|Gu|Vu);case Nl.KOREAN_HANJA_INFORMAL:return Ku(Tn,"零一二三四五六七八九","十百千萬",Xu,Gn,0);case Nl.KOREAN_HANJA_FORMAL:return Ku(Tn,"零壹貳參四五六七八九","拾百千",Xu,Gn,Hu|Gu|Vu);case Nl.DEVANAGARI:return ju(Tn,2406,2415,!0,Qn);case Nl.GEORGIAN:return Ru(Tn,1,19999,Mu,Nl.DECIMAL,Qn);case Nl.GUJARATI:return ju(Tn,2790,2799,!0,Qn);case Nl.GURMUKHI:return ju(Tn,2662,2671,!0,Qn);case Nl.HEBREW:return Ru(Tn,1,10999,Uu,Nl.DECIMAL,Qn);case Nl.HIRAGANA:return Qu(Tn,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Nl.HIRAGANA_IROHA:return Qu(Tn,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Nl.KANNADA:return ju(Tn,3302,3311,!0,Qn);case Nl.KATAKANA:return Qu(Tn,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",Hn);case Nl.KATAKANA_IROHA:return Qu(Tn,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",Hn);case Nl.LAO:return ju(Tn,3792,3801,!0,Qn);case Nl.MONGOLIAN:return ju(Tn,6160,6169,!0,Qn);case Nl.MYANMAR:return ju(Tn,4160,4169,!0,Qn);case Nl.ORIYA:return ju(Tn,2918,2927,!0,Qn);case Nl.PERSIAN:return ju(Tn,1776,1785,!0,Qn);case Nl.TAMIL:return ju(Tn,3046,3055,!0,Qn);case Nl.TELUGU:return ju(Tn,3174,3183,!0,Qn);case Nl.THAI:return ju(Tn,3664,3673,!0,Qn);case Nl.TIBETAN:return ju(Tn,3872,3881,!0,Qn);case Nl.DECIMAL:default:return ju(Tn,48,57,!0,Qn)}},Ju="data-html2canvas-ignore",Zu=function(){function DocumentCloner(Tn,Un){if(this.options=Un,this.scrolledElements=[],this.referenceElement=Tn,this.counters=new Iu,this.quoteDepth=0,!Tn.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Tn.ownerDocument.documentElement)}return DocumentCloner.prototype.toIFrame=function(Tn,Un){var Dn=this,Qn=td(Tn,Un);if(!Qn.contentWindow)return Promise.reject("Unable to find iframe window");var Hn=Tn.defaultView.pageXOffset,Gn=Tn.defaultView.pageYOffset,Vn=Qn.contentWindow,zn=Vn.document,Kn=nd(Qn).then((function(){return __awaiter(Dn,void 0,void 0,(function(){var Tn;return __generator(this,(function(Dn){switch(Dn.label){case 0:return this.scrolledElements.forEach(ad),Vn&&(Vn.scrollTo(Un.left,Un.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||Vn.scrollY===Un.top&&Vn.scrollX===Un.left||(zn.documentElement.style.top=-Un.top+"px",zn.documentElement.style.left=-Un.left+"px",zn.documentElement.style.position="absolute")),Tn=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:zn.fonts&&zn.fonts.ready?[4,zn.fonts.ready]:[3,2];case 1:Dn.sent(),Dn.label=2;case 2:return"function"==typeof Tn?[2,Promise.resolve().then((function(){return Tn(zn)})).then((function(){return Qn}))]:[2,Qn]}}))}))}));return zn.open(),zn.write(id(document.doctype)+"<html></html>"),od(this.referenceElement.ownerDocument,Hn,Gn),zn.replaceChild(zn.adoptNode(this.documentElement),zn.documentElement),zn.close(),Kn},DocumentCloner.prototype.createElementClone=function(Tn){if(ku(Tn))return this.createCanvasClone(Tn);if(Pu(Tn))return this.createStyleClone(Tn);var Un=Tn.cloneNode(!1);return Bu(Un)&&"lazy"===Un.loading&&(Un.loading="eager"),Un},DocumentCloner.prototype.createStyleClone=function(Tn){try{var Un=Tn.sheet;if(Un&&Un.cssRules){var Dn=[].slice.call(Un.cssRules,0).reduce((function(Tn,Un){return Un&&"string"==typeof Un.cssText?Tn+Un.cssText:Tn}),""),Qn=Tn.cloneNode(!1);return Qn.textContent=Dn,Qn}}catch(Tn){if(fs.getInstance(this.options.id).error("Unable to access cssRules property",Tn),"SecurityError"!==Tn.name)throw Tn}return Tn.cloneNode(!1)},DocumentCloner.prototype.createCanvasClone=function(Tn){if(this.options.inlineImages&&Tn.ownerDocument){var Un=Tn.ownerDocument.createElement("img");try{return Un.src=Tn.toDataURL(),Un}catch(Tn){fs.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var Dn=Tn.cloneNode(!1);try{Dn.width=Tn.width,Dn.height=Tn.height;var Qn=Tn.getContext("2d"),Hn=Dn.getContext("2d");return Hn&&(Qn?Hn.putImageData(Qn.getImageData(0,0,Tn.width,Tn.height),0,0):Hn.drawImage(Tn,0,0)),Dn}catch(Tn){}return Dn},DocumentCloner.prototype.cloneNode=function(Tn){if(Au(Tn))return document.createTextNode(Tn.data);if(!Tn.ownerDocument)return Tn.cloneNode(!1);var Un=Tn.ownerDocument.defaultView;if(Un&&mu(Tn)&&(vu(Tn)||yu(Tn))){var Dn=this.createElementClone(Tn),Qn=Un.getComputedStyle(Tn),Hn=Un.getComputedStyle(Tn,":before"),Gn=Un.getComputedStyle(Tn,":after");this.referenceElement===Tn&&vu(Dn)&&(this.clonedReferenceElement=Dn),Cu(Dn)&&hd(Dn);for(var Vn=this.counters.parse(new Nc(Qn)),zn=this.resolvePseudoContent(Tn,Dn,Hn,bc.BEFORE),Kn=Tn.firstChild;Kn;Kn=Kn.nextSibling)mu(Kn)&&(Lu(Kn)||Kn.hasAttribute(Ju)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(Kn))||this.options.copyStyles&&mu(Kn)&&Pu(Kn)||Dn.appendChild(this.cloneNode(Kn));zn&&Dn.insertBefore(zn,Dn.firstChild);var $n=this.resolvePseudoContent(Tn,Dn,Gn,bc.AFTER);return $n&&Dn.appendChild($n),this.counters.pop(Vn),Qn&&(this.options.copyStyles||yu(Tn))&&!Eu(Tn)&&rd(Qn,Dn),0===Tn.scrollTop&&0===Tn.scrollLeft||this.scrolledElements.push([Dn,Tn.scrollLeft,Tn.scrollTop]),(Tu(Tn)||Nu(Tn))&&(Tu(Dn)||Nu(Dn))&&(Dn.value=Tn.value),Dn}return Tn.cloneNode(!1)},DocumentCloner.prototype.resolvePseudoContent=function(Tn,Un,Dn,Qn){var Hn=this;if(Dn){var Gn=Dn.content,Vn=Un.ownerDocument;if(Vn&&Gn&&"none"!==Gn&&"-moz-alt-content"!==Gn&&"none"!==Dn.display){this.counters.parse(new Nc(Dn));var zn=new Tc(Dn),Kn=Vn.createElement("html2canvaspseudoelement");rd(Dn,Kn),zn.content.forEach((function(Un){if(Un.type===Wn.STRING_TOKEN)Kn.appendChild(Vn.createTextNode(Un.value));else if(Un.type===Wn.URL_TOKEN){var Dn=Vn.createElement("img");Dn.src=Un.value,Dn.style.opacity="1",Kn.appendChild(Dn)}else if(Un.type===Wn.FUNCTION){if("attr"===Un.name){var Qn=Un.values.filter(ha);Qn.length&&Kn.appendChild(Vn.createTextNode(Tn.getAttribute(Qn[0].value)||""))}else if("counter"===Un.name){var Gn=Un.values.filter(Aa),$n=Gn[0],Xn=Gn[1];if($n&&ha($n)){var Yn=Hn.counters.getCounterValue($n.value),Jn=Xn&&ha(Xn)?Fl.parse(Xn.value):Nl.DECIMAL;Kn.appendChild(Vn.createTextNode(Yu(Yn,Jn,!1)))}}else if("counters"===Un.name){var Zn=Un.values.filter(Aa),er=($n=Zn[0],Zn[1]);if(Xn=Zn[2],$n&&ha($n)){var tr=Hn.counters.getCounterValues($n.value),nr=Xn&&ha(Xn)?Fl.parse(Xn.value):Nl.DECIMAL,rr=er&&er.type===Wn.STRING_TOKEN?er.value:"",ir=tr.map((function(Tn){return Yu(Tn,nr,!1)})).join(rr);Kn.appendChild(Vn.createTextNode(ir))}}}else if(Un.type===Wn.IDENT_TOKEN)switch(Un.value){case"open-quote":Kn.appendChild(Vn.createTextNode(Ec(zn.quotes,Hn.quoteDepth++,!0)));break;case"close-quote":Kn.appendChild(Vn.createTextNode(Ec(zn.quotes,--Hn.quoteDepth,!1)));break;default:Kn.appendChild(Vn.createTextNode(Un.value))}})),Kn.className=cd+" "+ud;var $n=Qn===bc.BEFORE?" "+cd:" "+ud;return yu(Un)?Un.className.baseValue+=$n:Un.className+=$n,Kn}}},DocumentCloner.destroy=function(Tn){return!!Tn.parentNode&&(Tn.parentNode.removeChild(Tn),!0)},DocumentCloner}();!function(Tn){Tn[Tn.BEFORE=0]="BEFORE",Tn[Tn.AFTER=1]="AFTER"}(bc||(bc={}));var ed,td=function createIFrameContainer(Tn,Un){var Dn=Tn.createElement("iframe");return Dn.className="html2canvas-container",Dn.style.visibility="hidden",Dn.style.position="fixed",Dn.style.left="-10000px",Dn.style.top="0px",Dn.style.border="0",Dn.width=Un.width.toString(),Dn.height=Un.height.toString(),Dn.scrolling="no",Dn.setAttribute(Ju,"true"),Tn.body.appendChild(Dn),Dn},nd=function iframeLoader(Tn){return new Promise((function(Un,Dn){var Qn=Tn.contentWindow;if(!Qn)return Dn("No window assigned for iframe");var Hn=Qn.document;Qn.onload=Tn.onload=Hn.onreadystatechange=function(){Qn.onload=Tn.onload=Hn.onreadystatechange=null;var Dn=setInterval((function(){Hn.body.childNodes.length>0&&"complete"===Hn.readyState&&(clearInterval(Dn),Un(Tn))}),50)}}))},rd=function copyCSSStyles(Tn,Un){for(var Dn=Tn.length-1;Dn>=0;Dn--){var Qn=Tn.item(Dn);"content"!==Qn&&Un.style.setProperty(Qn,Tn.getPropertyValue(Qn))}return Un},id=function serializeDoctype(Tn){var Un="";return Tn&&(Un+="<!DOCTYPE ",Tn.name&&(Un+=Tn.name),Tn.internalSubset&&(Un+=Tn.internalSubset),Tn.publicId&&(Un+='"'+Tn.publicId+'"'),Tn.systemId&&(Un+='"'+Tn.systemId+'"'),Un+=">"),Un},od=function restoreOwnerScroll(Tn,Un,Dn){Tn&&Tn.defaultView&&(Un!==Tn.defaultView.pageXOffset||Dn!==Tn.defaultView.pageYOffset)&&Tn.defaultView.scrollTo(Un,Dn)},ad=function restoreNodeScroll(Tn){var Un=Tn[0],Dn=Tn[1],Qn=Tn[2];Un.scrollLeft=Dn,Un.scrollTop=Qn},sd=":before",ld=":after",cd="___html2canvas___pseudoelement_before",ud="___html2canvas___pseudoelement_after",dd='{\n content: "" !important;\n display: none !important;\n}',hd=function createPseudoHideStyles(Tn){pd(Tn,"."+cd+sd+dd+"\n ."+ud+ld+dd)},pd=function createStyles(Tn,Un){var Dn=Tn.ownerDocument;if(Dn){var Qn=Dn.createElement("style");Qn.textContent=Un,Tn.appendChild(Qn)}};!function(Tn){Tn[Tn.VECTOR=0]="VECTOR",Tn[Tn.BEZIER_CURVE=1]="BEZIER_CURVE"}(ed||(ed={}));var gd,fd=function equalPath(Tn,Un){return Tn.length===Un.length&&Tn.some((function(Tn,Dn){return Tn===Un[Dn]}))},Ad=function transformPath(Tn,Un,Dn,Qn,Hn){return Tn.map((function(Tn,Gn){switch(Gn){case 0:return Tn.add(Un,Dn);case 1:return Tn.add(Un+Qn,Dn);case 2:return Tn.add(Un+Qn,Dn+Hn);case 3:return Tn.add(Un,Dn+Hn)}return Tn}))},md=function(){function Vector(Tn,Un){this.type=ed.VECTOR,this.x=Tn,this.y=Un}return Vector.prototype.add=function(Tn,Un){return new Vector(this.x+Tn,this.y+Un)},Vector}(),vd=function lerp(Tn,Un,Dn){return new md(Tn.x+(Un.x-Tn.x)*Dn,Tn.y+(Un.y-Tn.y)*Dn)},yd=function(){function BezierCurve(Tn,Un,Dn,Qn){this.type=ed.BEZIER_CURVE,this.start=Tn,this.startControl=Un,this.endControl=Dn,this.end=Qn}return BezierCurve.prototype.subdivide=function(Tn,Un){var Dn=vd(this.start,this.startControl,Tn),Qn=vd(this.startControl,this.endControl,Tn),Hn=vd(this.endControl,this.end,Tn),Gn=vd(Dn,Qn,Tn),Vn=vd(Qn,Hn,Tn),zn=vd(Gn,Vn,Tn);return Un?new BezierCurve(this.start,Dn,Gn,zn):new BezierCurve(zn,Vn,Hn,this.end)},BezierCurve.prototype.add=function(Tn,Un){return new BezierCurve(this.start.add(Tn,Un),this.startControl.add(Tn,Un),this.endControl.add(Tn,Un),this.end.add(Tn,Un))},BezierCurve.prototype.reverse=function(){return new BezierCurve(this.end,this.endControl,this.startControl,this.start)},BezierCurve}(),_d=function isBezierCurve(Tn){return Tn.type===ed.BEZIER_CURVE},bd=function(){function BoundCurves(Tn){var Un=Tn.styles,Dn=Tn.bounds,Qn=Ca(Un.borderTopLeftRadius,Dn.width,Dn.height),Hn=Qn[0],Gn=Qn[1],Vn=Ca(Un.borderTopRightRadius,Dn.width,Dn.height),zn=Vn[0],Kn=Vn[1],$n=Ca(Un.borderBottomRightRadius,Dn.width,Dn.height),Wn=$n[0],Xn=$n[1],Yn=Ca(Un.borderBottomLeftRadius,Dn.width,Dn.height),Jn=Yn[0],Zn=Yn[1],er=[];er.push((Hn+zn)/Dn.width),er.push((Jn+Wn)/Dn.width),er.push((Gn+Zn)/Dn.height),er.push((Kn+Xn)/Dn.height);var tr=Math.max.apply(Math,er);tr>1&&(Hn/=tr,Gn/=tr,zn/=tr,Kn/=tr,Wn/=tr,Xn/=tr,Jn/=tr,Zn/=tr);var nr=Dn.width-zn,rr=Dn.height-Xn,ir=Dn.width-Wn,or=Dn.height-Zn,ar=Un.borderTopWidth,sr=Un.borderRightWidth,lr=Un.borderBottomWidth,cr=Un.borderLeftWidth,ur=ka(Un.paddingTop,Tn.bounds.width),dr=ka(Un.paddingRight,Tn.bounds.width),hr=ka(Un.paddingBottom,Tn.bounds.width),pr=ka(Un.paddingLeft,Tn.bounds.width);this.topLeftBorderBox=Hn>0||Gn>0?wd(Dn.left,Dn.top,Hn,Gn,gd.TOP_LEFT):new md(Dn.left,Dn.top),this.topRightBorderBox=zn>0||Kn>0?wd(Dn.left+nr,Dn.top,zn,Kn,gd.TOP_RIGHT):new md(Dn.left+Dn.width,Dn.top),this.bottomRightBorderBox=Wn>0||Xn>0?wd(Dn.left+ir,Dn.top+rr,Wn,Xn,gd.BOTTOM_RIGHT):new md(Dn.left+Dn.width,Dn.top+Dn.height),this.bottomLeftBorderBox=Jn>0||Zn>0?wd(Dn.left,Dn.top+or,Jn,Zn,gd.BOTTOM_LEFT):new md(Dn.left,Dn.top+Dn.height),this.topLeftPaddingBox=Hn>0||Gn>0?wd(Dn.left+cr,Dn.top+ar,Math.max(0,Hn-cr),Math.max(0,Gn-ar),gd.TOP_LEFT):new md(Dn.left+cr,Dn.top+ar),this.topRightPaddingBox=zn>0||Kn>0?wd(Dn.left+Math.min(nr,Dn.width+cr),Dn.top+ar,nr>Dn.width+cr?0:zn-cr,Kn-ar,gd.TOP_RIGHT):new md(Dn.left+Dn.width-sr,Dn.top+ar),this.bottomRightPaddingBox=Wn>0||Xn>0?wd(Dn.left+Math.min(ir,Dn.width-cr),Dn.top+Math.min(rr,Dn.height+ar),Math.max(0,Wn-sr),Xn-lr,gd.BOTTOM_RIGHT):new md(Dn.left+Dn.width-sr,Dn.top+Dn.height-lr),this.bottomLeftPaddingBox=Jn>0||Zn>0?wd(Dn.left+cr,Dn.top+or,Math.max(0,Jn-cr),Zn-lr,gd.BOTTOM_LEFT):new md(Dn.left+cr,Dn.top+Dn.height-lr),this.topLeftContentBox=Hn>0||Gn>0?wd(Dn.left+cr+pr,Dn.top+ar+ur,Math.max(0,Hn-(cr+pr)),Math.max(0,Gn-(ar+ur)),gd.TOP_LEFT):new md(Dn.left+cr+pr,Dn.top+ar+ur),this.topRightContentBox=zn>0||Kn>0?wd(Dn.left+Math.min(nr,Dn.width+cr+pr),Dn.top+ar+ur,nr>Dn.width+cr+pr?0:zn-cr+pr,Kn-(ar+ur),gd.TOP_RIGHT):new md(Dn.left+Dn.width-(sr+dr),Dn.top+ar+ur),this.bottomRightContentBox=Wn>0||Xn>0?wd(Dn.left+Math.min(ir,Dn.width-(cr+pr)),Dn.top+Math.min(rr,Dn.height+ar+ur),Math.max(0,Wn-(sr+dr)),Xn-(lr+hr),gd.BOTTOM_RIGHT):new md(Dn.left+Dn.width-(sr+dr),Dn.top+Dn.height-(lr+hr)),this.bottomLeftContentBox=Jn>0||Zn>0?wd(Dn.left+cr+pr,Dn.top+or,Math.max(0,Jn-(cr+pr)),Zn-(lr+hr),gd.BOTTOM_LEFT):new md(Dn.left+cr+pr,Dn.top+Dn.height-(lr+hr))}return BoundCurves}();!function(Tn){Tn[Tn.TOP_LEFT=0]="TOP_LEFT",Tn[Tn.TOP_RIGHT=1]="TOP_RIGHT",Tn[Tn.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Tn[Tn.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(gd||(gd={}));var wd=function getCurvePoints(Tn,Un,Dn,Qn,Hn){var Gn=(Math.sqrt(2)-1)/3*4,Vn=Dn*Gn,zn=Qn*Gn,Kn=Tn+Dn,$n=Un+Qn;switch(Hn){case gd.TOP_LEFT:return new yd(new md(Tn,$n),new md(Tn,$n-zn),new md(Kn-Vn,Un),new md(Kn,Un));case gd.TOP_RIGHT:return new yd(new md(Tn,Un),new md(Tn+Vn,Un),new md(Kn,$n-zn),new md(Kn,$n));case gd.BOTTOM_RIGHT:return new yd(new md(Kn,Un),new md(Kn,Un+zn),new md(Tn+Vn,$n),new md(Tn,$n));case gd.BOTTOM_LEFT:default:return new yd(new md(Kn,$n),new md(Kn-Vn,$n),new md(Tn,Un+zn),new md(Tn,Un))}},xd=function calculateBorderBoxPath(Tn){return[Tn.topLeftBorderBox,Tn.topRightBorderBox,Tn.bottomRightBorderBox,Tn.bottomLeftBorderBox]},Sd=function calculateContentBoxPath(Tn){return[Tn.topLeftContentBox,Tn.topRightContentBox,Tn.bottomRightContentBox,Tn.bottomLeftContentBox]},Cd=function calculatePaddingBoxPath(Tn){return[Tn.topLeftPaddingBox,Tn.topRightPaddingBox,Tn.bottomRightPaddingBox,Tn.bottomLeftPaddingBox]},kd=function(){function TransformEffect(Tn,Un,Dn){this.type=0,this.offsetX=Tn,this.offsetY=Un,this.matrix=Dn,this.target=6}return TransformEffect}(),Bd=function(){function ClipEffect(Tn,Un){this.type=1,this.target=Un,this.path=Tn}return ClipEffect}(),Ed=function isTransformEffect(Tn){return 0===Tn.type},Pd=function isClipEffect(Tn){return 1===Tn.type},Ld=function(){function StackingContext(Tn){this.element=Tn,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return StackingContext}(),Td=function(){function ElementPaint(Tn,Un){if(this.container=Tn,this.effects=Un.slice(0),this.curves=new bd(Tn),null!==Tn.styles.transform){var Dn=Tn.bounds.left+Tn.styles.transformOrigin[0].number,Qn=Tn.bounds.top+Tn.styles.transformOrigin[1].number,Hn=Tn.styles.transform;this.effects.push(new kd(Dn,Qn,Hn))}if(Tn.styles.overflowX!==Ol.VISIBLE){var Gn=xd(this.curves),Vn=Cd(this.curves);fd(Gn,Vn)?this.effects.push(new Bd(Gn,6)):(this.effects.push(new Bd(Gn,2)),this.effects.push(new Bd(Vn,4)))}}return ElementPaint.prototype.getParentEffects=function(){var Tn=this.effects.slice(0);if(this.container.styles.overflowX!==Ol.VISIBLE){var Un=xd(this.curves),Dn=Cd(this.curves);fd(Un,Dn)||Tn.push(new Bd(Dn,6))}return Tn},ElementPaint}(),Nd=function parseStackTree(Tn,Un,Dn,Qn){Tn.container.elements.forEach((function(Hn){var Gn=xc(Hn.flags,4),Vn=xc(Hn.flags,2),zn=new Td(Hn,Tn.getParentEffects());xc(Hn.styles.display,2048)&&Qn.push(zn);var Kn=xc(Hn.flags,8)?[]:Qn;if(Gn||Vn){var $n=Gn||Hn.styles.isPositioned()?Dn:Un,Wn=new Ld(zn);if(Hn.styles.isPositioned()||Hn.styles.opacity<1||Hn.styles.isTransformed()){var Xn=Hn.styles.zIndex.order;if(Xn<0){var Yn=0;$n.negativeZIndex.some((function(Tn,Un){return Xn>Tn.element.container.styles.zIndex.order?(Yn=Un,!1):Yn>0})),$n.negativeZIndex.splice(Yn,0,Wn)}else if(Xn>0){var Jn=0;$n.positiveZIndex.some((function(Tn,Un){return Xn>=Tn.element.container.styles.zIndex.order?(Jn=Un+1,!1):Jn>0})),$n.positiveZIndex.splice(Jn,0,Wn)}else $n.zeroOrAutoZIndexOrTransformedOrOpacity.push(Wn)}else Hn.styles.isFloating()?$n.nonPositionedFloats.push(Wn):$n.nonPositionedInlineLevel.push(Wn);parseStackTree(zn,Wn,Gn?Wn:Dn,Kn)}else Hn.styles.isInlineLevel()?Un.inlineLevel.push(zn):Un.nonInlineLevel.push(zn),parseStackTree(zn,Un,Dn,Kn);xc(Hn.flags,8)&&Id(Hn,Kn)}))},Id=function processListItems(Tn,Un){for(var Dn=Tn instanceof Wc?Tn.start:1,Qn=Tn instanceof Wc&&Tn.reversed,Hn=0;Hn<Un.length;Hn++){var Gn=Un[Hn];Gn.container instanceof $c&&"number"==typeof Gn.container.value&&0!==Gn.container.value&&(Dn=Gn.container.value),Gn.listValue=Yu(Dn,Gn.container.styles.listStyleType,!0),Dn+=Qn?-1:1}},Od=function parseStackingContexts(Tn){var Un=new Td(Tn,[]),Dn=new Ld(Un),Qn=[];return Nd(Un,Dn,Dn,Qn),Id(Un.container,Qn),Dn},Fd=function parsePathForBorder(Tn,Un){switch(Un){case 0:return Ud(Tn.topLeftBorderBox,Tn.topLeftPaddingBox,Tn.topRightBorderBox,Tn.topRightPaddingBox);case 1:return Ud(Tn.topRightBorderBox,Tn.topRightPaddingBox,Tn.bottomRightBorderBox,Tn.bottomRightPaddingBox);case 2:return Ud(Tn.bottomRightBorderBox,Tn.bottomRightPaddingBox,Tn.bottomLeftBorderBox,Tn.bottomLeftPaddingBox);case 3:default:return Ud(Tn.bottomLeftBorderBox,Tn.bottomLeftPaddingBox,Tn.topLeftBorderBox,Tn.topLeftPaddingBox)}},Ud=function createPathFromCurves(Tn,Un,Dn,Qn){var Hn=[];return _d(Tn)?Hn.push(Tn.subdivide(.5,!1)):Hn.push(Tn),_d(Dn)?Hn.push(Dn.subdivide(.5,!0)):Hn.push(Dn),_d(Qn)?Hn.push(Qn.subdivide(.5,!0).reverse()):Hn.push(Qn),_d(Un)?Hn.push(Un.subdivide(.5,!1).reverse()):Hn.push(Un),Hn},Md=function paddingBox(Tn){var Un=Tn.bounds,Dn=Tn.styles;return Un.add(Dn.borderLeftWidth,Dn.borderTopWidth,-(Dn.borderRightWidth+Dn.borderLeftWidth),-(Dn.borderTopWidth+Dn.borderBottomWidth))},Rd=function contentBox(Tn){var Un=Tn.styles,Dn=Tn.bounds,Qn=ka(Un.paddingLeft,Dn.width),Hn=ka(Un.paddingRight,Dn.width),Gn=ka(Un.paddingTop,Dn.width),Vn=ka(Un.paddingBottom,Dn.width);return Dn.add(Qn+Un.borderLeftWidth,Gn+Un.borderTopWidth,-(Un.borderRightWidth+Un.borderLeftWidth+Qn+Hn),-(Un.borderTopWidth+Un.borderBottomWidth+Gn+Vn))},Dd=function calculateBackgroundPositioningArea(Tn,Un){return 0===Tn?Un.bounds:2===Tn?Rd(Un):Md(Un)},jd=function calculateBackgroundPaintingArea(Tn,Un){return Tn===Ha.BORDER_BOX?Un.bounds:Tn===Ha.CONTENT_BOX?Rd(Un):Md(Un)},Qd=function calculateBackgroundRendering(Tn,Un,Dn){var Qn=Dd(zd(Tn.styles.backgroundOrigin,Un),Tn),Hn=jd(zd(Tn.styles.backgroundClip,Un),Tn),Gn=Vd(zd(Tn.styles.backgroundSize,Un),Dn,Qn),Vn=Gn[0],zn=Gn[1],Kn=Ca(zd(Tn.styles.backgroundPosition,Un),Qn.width-Vn,Qn.height-zn);return[Kd(zd(Tn.styles.backgroundRepeat,Un),Kn,Gn,Qn,Hn),Math.round(Qn.left+Kn[0]),Math.round(Qn.top+Kn[1]),Vn,zn]},Hd=function isAuto(Tn){return ha(Tn)&&Tn.value===qs.AUTO},Gd=function hasIntrinsicValue(Tn){return"number"==typeof Tn},Vd=function calculateBackgroundSize(Tn,Un,Dn){var Qn=Un[0],Hn=Un[1],Gn=Un[2],Vn=Tn[0],zn=Tn[1];if(_a(Vn)&&zn&&_a(zn))return[ka(Vn,Dn.width),ka(zn,Dn.height)];var Kn=Gd(Gn);if(ha(Vn)&&(Vn.value===qs.CONTAIN||Vn.value===qs.COVER))return Gd(Gn)?Dn.width/Dn.height<Gn!=(Vn.value===qs.COVER)?[Dn.width,Dn.width/Gn]:[Dn.height*Gn,Dn.height]:[Dn.width,Dn.height];var $n=Gd(Qn),Wn=Gd(Hn),Xn=$n||Wn;if(Hd(Vn)&&(!zn||Hd(zn)))return $n&&Wn?[Qn,Hn]:Kn||Xn?Xn&&Kn?[$n?Qn:Hn*Gn,Wn?Hn:Qn/Gn]:[$n?Qn:Dn.width,Wn?Hn:Dn.height]:[Dn.width,Dn.height];if(Kn){var Yn=0,Jn=0;return _a(Vn)?Yn=ka(Vn,Dn.width):_a(zn)&&(Jn=ka(zn,Dn.height)),Hd(Vn)?Yn=Jn*Gn:zn&&!Hd(zn)||(Jn=Yn/Gn),[Yn,Jn]}var Zn=null,er=null;if(_a(Vn)?Zn=ka(Vn,Dn.width):zn&&_a(zn)&&(er=ka(zn,Dn.height)),null===Zn||zn&&!Hd(zn)||(er=$n&&Wn?Zn/Qn*Hn:Dn.height),null!==er&&Hd(Vn)&&(Zn=$n&&Wn?er/Hn*Qn:Dn.width),null!==Zn&&null!==er)return[Zn,er];throw new Error("Unable to calculate background-size for element")},zd=function getBackgroundValueForIndex(Tn,Un){var Dn=Tn[Un];return void 0===Dn?Tn[0]:Dn},Kd=function calculateBackgroundRepeatPath(Tn,Un,Dn,Qn,Hn){var Gn=Un[0],Vn=Un[1],zn=Dn[0],Kn=Dn[1];switch(Tn){case Hs.REPEAT_X:return[new md(Math.round(Qn.left),Math.round(Qn.top+Vn)),new md(Math.round(Qn.left+Qn.width),Math.round(Qn.top+Vn)),new md(Math.round(Qn.left+Qn.width),Math.round(Kn+Qn.top+Vn)),new md(Math.round(Qn.left),Math.round(Kn+Qn.top+Vn))];case Hs.REPEAT_Y:return[new md(Math.round(Qn.left+Gn),Math.round(Qn.top)),new md(Math.round(Qn.left+Gn+zn),Math.round(Qn.top)),new md(Math.round(Qn.left+Gn+zn),Math.round(Qn.height+Qn.top)),new md(Math.round(Qn.left+Gn),Math.round(Qn.height+Qn.top))];case Hs.NO_REPEAT:return[new md(Math.round(Qn.left+Gn),Math.round(Qn.top+Vn)),new md(Math.round(Qn.left+Gn+zn),Math.round(Qn.top+Vn)),new md(Math.round(Qn.left+Gn+zn),Math.round(Qn.top+Vn+Kn)),new md(Math.round(Qn.left+Gn),Math.round(Qn.top+Vn+Kn))];default:return[new md(Math.round(Hn.left),Math.round(Hn.top)),new md(Math.round(Hn.left+Hn.width),Math.round(Hn.top)),new md(Math.round(Hn.left+Hn.width),Math.round(Hn.height+Hn.top)),new md(Math.round(Hn.left),Math.round(Hn.height+Hn.top))]}},qd="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",$d="Hidden Text",Wd=function(){function FontMetrics(Tn){this._data={},this._document=Tn}return FontMetrics.prototype.parseMetrics=function(Tn,Un){var Dn=this._document.createElement("div"),Qn=this._document.createElement("img"),Hn=this._document.createElement("span"),Gn=this._document.body;Dn.style.visibility="hidden",Dn.style.fontFamily=Tn,Dn.style.fontSize=Un,Dn.style.margin="0",Dn.style.padding="0",Gn.appendChild(Dn),Qn.src=qd,Qn.width=1,Qn.height=1,Qn.style.margin="0",Qn.style.padding="0",Qn.style.verticalAlign="baseline",Hn.style.fontFamily=Tn,Hn.style.fontSize=Un,Hn.style.margin="0",Hn.style.padding="0",Hn.appendChild(this._document.createTextNode($d)),Dn.appendChild(Hn),Dn.appendChild(Qn);var Vn=Qn.offsetTop-Hn.offsetTop+2;Dn.removeChild(Hn),Dn.appendChild(this._document.createTextNode($d)),Dn.style.lineHeight="normal",Qn.style.verticalAlign="super";var zn=Qn.offsetTop-Dn.offsetTop+2;return Gn.removeChild(Dn),{baseline:Vn,middle:zn}},FontMetrics.prototype.getMetrics=function(Tn,Un){var Dn=Tn+" "+Un;return void 0===this._data[Dn]&&(this._data[Dn]=this.parseMetrics(Tn,Un)),this._data[Dn]},FontMetrics}(),Xd=1e4,Yd=function(){function CanvasRenderer(Tn){this._activeEffects=[],this.canvas=Tn.canvas?Tn.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=Tn,Tn.canvas||(this.canvas.width=Math.floor(Tn.width*Tn.scale),this.canvas.height=Math.floor(Tn.height*Tn.scale),this.canvas.style.width=Tn.width+"px",this.canvas.style.height=Tn.height+"px"),this.fontMetrics=new Wd(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-Tn.x+Tn.scrollX,-Tn.y+Tn.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],fs.getInstance(Tn.id).debug("Canvas renderer initialized ("+Tn.width+"x"+Tn.height+" at "+Tn.x+","+Tn.y+") with scale "+Tn.scale)}return CanvasRenderer.prototype.applyEffects=function(Tn,Un){for(var Dn=this;this._activeEffects.length;)this.popEffect();Tn.filter((function(Tn){return xc(Tn.target,Un)})).forEach((function(Tn){return Dn.applyEffect(Tn)}))},CanvasRenderer.prototype.applyEffect=function(Tn){this.ctx.save(),Ed(Tn)&&(this.ctx.translate(Tn.offsetX,Tn.offsetY),this.ctx.transform(Tn.matrix[0],Tn.matrix[1],Tn.matrix[2],Tn.matrix[3],Tn.matrix[4],Tn.matrix[5]),this.ctx.translate(-Tn.offsetX,-Tn.offsetY)),Pd(Tn)&&(this.path(Tn.path),this.ctx.clip()),this._activeEffects.push(Tn)},CanvasRenderer.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},CanvasRenderer.prototype.renderStack=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un;return __generator(this,(function(Dn){switch(Dn.label){case 0:return(Un=Tn.element.container.styles).isVisible()?(this.ctx.globalAlpha=Un.opacity,[4,this.renderStackContent(Tn)]):[3,2];case 1:Dn.sent(),Dn.label=2;case 2:return[2]}}))}))},CanvasRenderer.prototype.renderNode=function(Tn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Un){switch(Un.label){case 0:return Tn.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Tn)]:[3,3];case 1:return Un.sent(),[4,this.renderNodeContent(Tn)];case 2:Un.sent(),Un.label=3;case 3:return[2]}}))}))},CanvasRenderer.prototype.renderTextWithLetterSpacing=function(Tn,Un){var Dn=this;0===Un?this.ctx.fillText(Tn.text,Tn.bounds.left,Tn.bounds.top+Tn.bounds.height):Gn(Tn.text).map((function(Tn){return Vn(Tn)})).reduce((function(Un,Qn){return Dn.ctx.fillText(Qn,Un,Tn.bounds.top+Tn.bounds.height),Un+Dn.ctx.measureText(Qn).width}),Tn.bounds.left)},CanvasRenderer.prototype.createFontStyle=function(Tn){var Un=Tn.fontVariant.filter((function(Tn){return"normal"===Tn||"small-caps"===Tn})).join(""),Dn=Tn.fontFamily.join(", "),Qn=ua(Tn.fontSize)?""+Tn.fontSize.number+Tn.fontSize.unit:Tn.fontSize.number+"px";return[[Tn.fontStyle,Un,Tn.fontWeight,Qn,Dn].join(" "),Dn,Qn]},CanvasRenderer.prototype.renderTextNode=function(Tn,Un){return __awaiter(this,void 0,void 0,(function(){var Dn,Qn,Hn,Gn,Vn=this;return __generator(this,(function(zn){return Dn=this.createFontStyle(Un),Qn=Dn[0],Hn=Dn[1],Gn=Dn[2],this.ctx.font=Qn,Tn.textBounds.forEach((function(Tn){Vn.ctx.fillStyle=Ma(Un.color),Vn.renderTextWithLetterSpacing(Tn,Un.letterSpacing);var Dn=Un.textShadow;Dn.length&&Tn.text.trim().length&&(Dn.slice(0).reverse().forEach((function(Un){Vn.ctx.shadowColor=Ma(Un.color),Vn.ctx.shadowOffsetX=Un.offsetX.number*Vn.options.scale,Vn.ctx.shadowOffsetY=Un.offsetY.number*Vn.options.scale,Vn.ctx.shadowBlur=Un.blur.number,Vn.ctx.fillText(Tn.text,Tn.bounds.left,Tn.bounds.top+Tn.bounds.height)})),Vn.ctx.shadowColor="",Vn.ctx.shadowOffsetX=0,Vn.ctx.shadowOffsetY=0,Vn.ctx.shadowBlur=0),Un.textDecorationLine.length&&(Vn.ctx.fillStyle=Ma(Un.textDecorationColor||Un.color),Un.textDecorationLine.forEach((function(Un){switch(Un){case 1:var Dn=Vn.fontMetrics.getMetrics(Hn,Gn).baseline;Vn.ctx.fillRect(Tn.bounds.left,Math.round(Tn.bounds.top+Dn),Tn.bounds.width,1);break;case 2:Vn.ctx.fillRect(Tn.bounds.left,Math.round(Tn.bounds.top),Tn.bounds.width,1);break;case 3:var Qn=Vn.fontMetrics.getMetrics(Hn,Gn).middle;Vn.ctx.fillRect(Tn.bounds.left,Math.ceil(Tn.bounds.top+Qn),Tn.bounds.width,1)}})))})),[2]}))}))},CanvasRenderer.prototype.renderReplacedElement=function(Tn,Un,Dn){if(Dn&&Tn.intrinsicWidth>0&&Tn.intrinsicHeight>0){var Qn=Rd(Tn),Hn=Cd(Un);this.path(Hn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Dn,0,0,Tn.intrinsicWidth,Tn.intrinsicHeight,Qn.left,Qn.top,Qn.width,Qn.height),this.ctx.restore()}},CanvasRenderer.prototype.renderNodeContent=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er;return __generator(this,(function(tr){switch(tr.label){case 0:this.applyEffects(Tn.effects,4),Un=Tn.container,Qn=Tn.curves,Hn=Un.styles,Gn=0,Vn=Un.textNodes,tr.label=1;case 1:return Gn<Vn.length?(zn=Vn[Gn],[4,this.renderTextNode(zn,Hn)]):[3,4];case 2:tr.sent(),tr.label=3;case 3:return Gn++,[3,1];case 4:if(!(Un instanceof zc))return[3,8];tr.label=5;case 5:return tr.trys.push([5,7,,8]),[4,this.options.cache.match(Un.src)];case 6:return Jn=tr.sent(),this.renderReplacedElement(Un,Qn,Jn),[3,8];case 7:return tr.sent(),fs.getInstance(this.options.id).error("Error loading image "+Un.src),[3,8];case 8:if(Un instanceof Kc&&this.renderReplacedElement(Un,Qn,Un.canvas),!(Un instanceof qc))return[3,12];tr.label=9;case 9:return tr.trys.push([9,11,,12]),[4,this.options.cache.match(Un.svg)];case 10:return Jn=tr.sent(),this.renderReplacedElement(Un,Qn,Jn),[3,12];case 11:return tr.sent(),fs.getInstance(this.options.id).error("Error loading svg "+Un.svg.substring(0,255)),[3,12];case 12:return Un instanceof lu&&Un.tree?[4,new CanvasRenderer({id:this.options.id,scale:this.options.scale,backgroundColor:Un.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:Un.width,height:Un.height,cache:this.options.cache,windowWidth:Un.width,windowHeight:Un.height}).render(Un.tree)]:[3,14];case 13:Kn=tr.sent(),Un.width&&Un.height&&this.ctx.drawImage(Kn,0,0,Un.width,Un.height,Un.bounds.left,Un.bounds.top,Un.bounds.width,Un.bounds.height),tr.label=14;case 14:if(Un instanceof iu&&($n=Math.min(Un.bounds.width,Un.bounds.height),Un.type===eu?Un.checked&&(this.ctx.save(),this.path([new md(Un.bounds.left+.39363*$n,Un.bounds.top+.79*$n),new md(Un.bounds.left+.16*$n,Un.bounds.top+.5549*$n),new md(Un.bounds.left+.27347*$n,Un.bounds.top+.44071*$n),new md(Un.bounds.left+.39694*$n,Un.bounds.top+.5649*$n),new md(Un.bounds.left+.72983*$n,Un.bounds.top+.23*$n),new md(Un.bounds.left+.84*$n,Un.bounds.top+.34085*$n),new md(Un.bounds.left+.39363*$n,Un.bounds.top+.79*$n)]),this.ctx.fillStyle=Ma(ru),this.ctx.fill(),this.ctx.restore()):Un.type===tu&&Un.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Un.bounds.left+$n/2,Un.bounds.top+$n/2,$n/4,0,2*Math.PI,!0),this.ctx.fillStyle=Ma(ru),this.ctx.fill(),this.ctx.restore())),Jd(Un)&&Un.value.length){switch(this.ctx.font=this.createFontStyle(Hn)[0],this.ctx.fillStyle=Ma(Hn.color),this.ctx.textBaseline="middle",this.ctx.textAlign=eh(Un.styles.textAlign),er=Rd(Un),Wn=0,Un.styles.textAlign){case Gl.CENTER:Wn+=er.width/2;break;case Gl.RIGHT:Wn+=er.width}Xn=er.add(Wn,0,0,-er.height/2+1),this.ctx.save(),this.path([new md(er.left,er.top),new md(er.left+er.width,er.top),new md(er.left+er.width,er.top+er.height),new md(er.left,er.top+er.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Fc(Un.value,Xn),Hn.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!xc(Un.styles.display,2048))return[3,20];if(null===Un.styles.listStyleImage)return[3,19];if((Yn=Un.styles.listStyleImage).type!==Ka.URL)return[3,18];Jn=void 0,Zn=Yn.url,tr.label=15;case 15:return tr.trys.push([15,17,,18]),[4,this.options.cache.match(Zn)];case 16:return Jn=tr.sent(),this.ctx.drawImage(Jn,Un.bounds.left-(Jn.width+10),Un.bounds.top),[3,18];case 17:return tr.sent(),fs.getInstance(this.options.id).error("Error loading list-style-image "+Zn),[3,18];case 18:return[3,20];case 19:Tn.listValue&&Un.styles.listStyleType!==Nl.NONE&&(this.ctx.font=this.createFontStyle(Hn)[0],this.ctx.fillStyle=Ma(Hn.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",er=new Dn(Un.bounds.left,Un.bounds.top+ka(Un.styles.paddingTop,Un.bounds.width),Un.bounds.width,Ll(Hn.lineHeight,Hn.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Fc(Tn.listValue,er),Hn.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),tr.label=20;case 20:return[2]}}))}))},CanvasRenderer.prototype.renderStackContent=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er;return __generator(this,(function(tr){switch(tr.label){case 0:return[4,this.renderNodeBackgroundAndBorders(Tn.element)];case 1:tr.sent(),Un=0,Dn=Tn.negativeZIndex,tr.label=2;case 2:return Un<Dn.length?(er=Dn[Un],[4,this.renderStack(er)]):[3,5];case 3:tr.sent(),tr.label=4;case 4:return Un++,[3,2];case 5:return[4,this.renderNodeContent(Tn.element)];case 6:tr.sent(),Qn=0,Hn=Tn.nonInlineLevel,tr.label=7;case 7:return Qn<Hn.length?(er=Hn[Qn],[4,this.renderNode(er)]):[3,10];case 8:tr.sent(),tr.label=9;case 9:return Qn++,[3,7];case 10:Gn=0,Vn=Tn.nonPositionedFloats,tr.label=11;case 11:return Gn<Vn.length?(er=Vn[Gn],[4,this.renderStack(er)]):[3,14];case 12:tr.sent(),tr.label=13;case 13:return Gn++,[3,11];case 14:zn=0,Kn=Tn.nonPositionedInlineLevel,tr.label=15;case 15:return zn<Kn.length?(er=Kn[zn],[4,this.renderStack(er)]):[3,18];case 16:tr.sent(),tr.label=17;case 17:return zn++,[3,15];case 18:$n=0,Wn=Tn.inlineLevel,tr.label=19;case 19:return $n<Wn.length?(er=Wn[$n],[4,this.renderNode(er)]):[3,22];case 20:tr.sent(),tr.label=21;case 21:return $n++,[3,19];case 22:Xn=0,Yn=Tn.zeroOrAutoZIndexOrTransformedOrOpacity,tr.label=23;case 23:return Xn<Yn.length?(er=Yn[Xn],[4,this.renderStack(er)]):[3,26];case 24:tr.sent(),tr.label=25;case 25:return Xn++,[3,23];case 26:Jn=0,Zn=Tn.positiveZIndex,tr.label=27;case 27:return Jn<Zn.length?(er=Zn[Jn],[4,this.renderStack(er)]):[3,30];case 28:tr.sent(),tr.label=29;case 29:return Jn++,[3,27];case 30:return[2]}}))}))},CanvasRenderer.prototype.mask=function(Tn){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(Tn.slice(0).reverse()),this.ctx.closePath()},CanvasRenderer.prototype.path=function(Tn){this.ctx.beginPath(),this.formatPath(Tn),this.ctx.closePath()},CanvasRenderer.prototype.formatPath=function(Tn){var Un=this;Tn.forEach((function(Tn,Dn){var Qn=_d(Tn)?Tn.start:Tn;0===Dn?Un.ctx.moveTo(Qn.x,Qn.y):Un.ctx.lineTo(Qn.x,Qn.y),_d(Tn)&&Un.ctx.bezierCurveTo(Tn.startControl.x,Tn.startControl.y,Tn.endControl.x,Tn.endControl.y,Tn.end.x,Tn.end.y)}))},CanvasRenderer.prototype.renderRepeat=function(Tn,Un,Dn,Qn){this.path(Tn),this.ctx.fillStyle=Un,this.ctx.translate(Dn,Qn),this.ctx.fill(),this.ctx.translate(-Dn,-Qn)},CanvasRenderer.prototype.resizeImage=function(Tn,Un,Dn){if(Tn.width===Un&&Tn.height===Dn)return Tn;var Qn=this.canvas.ownerDocument.createElement("canvas");return Qn.width=Un,Qn.height=Dn,Qn.getContext("2d").drawImage(Tn,0,0,Tn.width,Tn.height,0,0,Un,Dn),Qn},CanvasRenderer.prototype.renderBackgroundImage=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn,Vn;return __generator(this,(function(zn){switch(zn.label){case 0:Un=Tn.styles.backgroundImage.length-1,Dn=function _loop_1(Dn){var Hn,Gn,Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,gr,fr,Ar,mr,vr,yr;return __generator(this,(function(_r){switch(_r.label){case 0:if(Dn.type!==Ka.URL)return[3,5];Hn=void 0,Gn=Dn.url,_r.label=1;case 1:return _r.trys.push([1,3,,4]),[4,Qn.options.cache.match(Gn)];case 2:return Hn=_r.sent(),[3,4];case 3:return _r.sent(),fs.getInstance(Qn.options.id).error("Error loading background-image "+Gn),[3,4];case 4:return Hn&&(Vn=Qd(Tn,Un,[Hn.width,Hn.height,Hn.width/Hn.height]),ir=Vn[0],ur=Vn[1],dr=Vn[2],sr=Vn[3],lr=Vn[4],nr=Qn.ctx.createPattern(Qn.resizeImage(Hn,sr,lr),"repeat"),Qn.renderRepeat(ir,nr,ur,dr)),[3,6];case 5:Ds(Dn)?(zn=Qd(Tn,Un,[null,null,null]),ir=zn[0],ur=zn[1],dr=zn[2],sr=zn[3],lr=zn[4],Kn=Ja(Dn.angle,sr,lr),$n=Kn[0],Wn=Kn[1],Xn=Kn[2],Yn=Kn[3],Jn=Kn[4],(Zn=document.createElement("canvas")).width=sr,Zn.height=lr,er=Zn.getContext("2d"),tr=er.createLinearGradient(Wn,Yn,Xn,Jn),Xa(Dn.stops,$n).forEach((function(Tn){return tr.addColorStop(Tn.stop,Ma(Tn.color))})),er.fillStyle=tr,er.fillRect(0,0,sr,lr),sr>0&&lr>0&&(nr=Qn.ctx.createPattern(Zn,"repeat"),Qn.renderRepeat(ir,nr,ur,dr))):js(Dn)&&(rr=Qd(Tn,Un,[null,null,null]),ir=rr[0],or=rr[1],ar=rr[2],sr=rr[3],lr=rr[4],cr=0===Dn.position.length?[xa]:Dn.position,ur=ka(cr[0],sr),dr=ka(cr[cr.length-1],lr),hr=ts(Dn,ur,dr,sr,lr),pr=hr[0],gr=hr[1],pr>0&&pr>0&&(fr=Qn.ctx.createRadialGradient(or+ur,ar+dr,0,or+ur,ar+dr,pr),Xa(Dn.stops,2*pr).forEach((function(Tn){return fr.addColorStop(Tn.stop,Ma(Tn.color))})),Qn.path(ir),Qn.ctx.fillStyle=fr,pr!==gr?(Ar=Tn.bounds.left+.5*Tn.bounds.width,mr=Tn.bounds.top+.5*Tn.bounds.height,yr=1/(vr=gr/pr),Qn.ctx.save(),Qn.ctx.translate(Ar,mr),Qn.ctx.transform(1,0,0,vr,0,0),Qn.ctx.translate(-Ar,-mr),Qn.ctx.fillRect(or,yr*(ar-mr)+mr,sr,lr*yr),Qn.ctx.restore()):Qn.ctx.fill())),_r.label=6;case 6:return Un--,[2]}}))},Qn=this,Hn=0,Gn=Tn.styles.backgroundImage.slice(0).reverse(),zn.label=1;case 1:return Hn<Gn.length?(Vn=Gn[Hn],[5,Dn(Vn)]):[3,4];case 2:zn.sent(),zn.label=3;case 3:return Hn++,[3,1];case 4:return[2]}}))}))},CanvasRenderer.prototype.renderBorder=function(Tn,Un,Dn){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Qn){return this.path(Fd(Dn,Un)),this.ctx.fillStyle=Ma(Tn),this.ctx.fill(),[2]}))}))},CanvasRenderer.prototype.renderNodeBackgroundAndBorders=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,$n=this;return __generator(this,(function(Wn){switch(Wn.label){case 0:return this.applyEffects(Tn.effects,2),Un=Tn.container.styles,Dn=!Ua(Un.backgroundColor)||Un.backgroundImage.length,Qn=[{style:Un.borderTopStyle,color:Un.borderTopColor},{style:Un.borderRightStyle,color:Un.borderRightColor},{style:Un.borderBottomStyle,color:Un.borderBottomColor},{style:Un.borderLeftStyle,color:Un.borderLeftColor}],Hn=Zd(zd(Un.backgroundClip,0),Tn.curves),Dn||Un.boxShadow.length?(this.ctx.save(),this.path(Hn),this.ctx.clip(),Ua(Un.backgroundColor)||(this.ctx.fillStyle=Ma(Un.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Tn.container)]):[3,2];case 1:Wn.sent(),this.ctx.restore(),Un.boxShadow.slice(0).reverse().forEach((function(Un){$n.ctx.save();var Dn=xd(Tn.curves),Qn=Un.inset?0:Xd,Hn=Ad(Dn,-Qn+(Un.inset?1:-1)*Un.spread.number,(Un.inset?1:-1)*Un.spread.number,Un.spread.number*(Un.inset?-2:2),Un.spread.number*(Un.inset?-2:2));Un.inset?($n.path(Dn),$n.ctx.clip(),$n.mask(Hn)):($n.mask(Dn),$n.ctx.clip(),$n.path(Hn)),$n.ctx.shadowOffsetX=Un.offsetX.number+Qn,$n.ctx.shadowOffsetY=Un.offsetY.number,$n.ctx.shadowColor=Ma(Un.color),$n.ctx.shadowBlur=Un.blur.number,$n.ctx.fillStyle=Un.inset?Ma(Un.color):"rgba(0,0,0,1)",$n.ctx.fill(),$n.ctx.restore()})),Wn.label=2;case 2:Gn=0,Vn=0,zn=Qn,Wn.label=3;case 3:return Vn<zn.length?(Kn=zn[Vn]).style===Xs.NONE||Ua(Kn.color)?[3,5]:[4,this.renderBorder(Kn.color,Gn,Tn.curves)]:[3,7];case 4:Wn.sent(),Wn.label=5;case 5:Gn++,Wn.label=6;case 6:return Vn++,[3,3];case 7:return[2]}}))}))},CanvasRenderer.prototype.render=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un;return __generator(this,(function(Dn){switch(Dn.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ma(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),Un=Od(Tn),[4,this.renderStack(Un)];case 1:return Dn.sent(),this.applyEffects([],2),[2,this.canvas]}}))}))},CanvasRenderer}(),Jd=function isTextInputElement(Tn){return Tn instanceof au||Tn instanceof ou||Tn instanceof iu&&Tn.type!==tu&&Tn.type!==eu},Zd=function calculateBackgroundCurvedPaintingArea(Tn,Un){switch(Tn){case Ha.BORDER_BOX:return xd(Un);case Ha.CONTENT_BOX:return Sd(Un);case Ha.PADDING_BOX:default:return Cd(Un)}},eh=function canvasTextAlign(Tn){switch(Tn){case Gl.CENTER:return"center";case Gl.RIGHT:return"right";case Gl.LEFT:default:return"left"}},th=function(){function ForeignObjectRenderer(Tn){this.canvas=Tn.canvas?Tn.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=Tn,this.canvas.width=Math.floor(Tn.width*Tn.scale),this.canvas.height=Math.floor(Tn.height*Tn.scale),this.canvas.style.width=Tn.width+"px",this.canvas.style.height=Tn.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-Tn.x+Tn.scrollX,-Tn.y+Tn.scrollY),fs.getInstance(Tn.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+Tn.width+"x"+Tn.height+" at "+Tn.x+","+Tn.y+") with scale "+Tn.scale)}return ForeignObjectRenderer.prototype.render=function(Tn){return __awaiter(this,void 0,void 0,(function(){var Un,Dn;return __generator(this,(function(Qn){switch(Qn.label){case 0:return Un=hs(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,Tn),[4,nh(Un)];case 1:return Dn=Qn.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ma(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Dn,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},ForeignObjectRenderer}(),nh=function loadSerializedSVG$1(Tn){return new Promise((function(Un,Dn){var Qn=new Image;Qn.onload=function(){Un(Qn)},Qn.onerror=Dn,Qn.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(Tn))}))},rh=void 0,ih=function parseColor$1(Tn){return Fa.parse(la.create(Tn).parseComponentValue())},oh=function html2canvas(Tn,Un){return void 0===Un&&(Un={}),ah(Tn,Un)};"undefined"!=typeof window&&As.setContext(window);var ah=function renderElement(Tn,Gn){return __awaiter(rh,void 0,void 0,(function(){var Vn,zn,Kn,$n,Wn,Xn,Yn,Jn,Zn,er,tr,nr,rr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr;return __generator(this,(function(gr){switch(gr.label){case 0:if(!(Vn=Tn.ownerDocument))throw new Error("Element is not attached to a Document");if(!(zn=Vn.defaultView))throw new Error("Document is not attached to a Window");return Kn=(Math.round(1e3*Math.random())+Date.now()).toString(16),$n=Cu(Tn)||xu(Tn)?Hn(Vn):Qn(Tn),Wn=$n.width,Xn=$n.height,Yn=$n.left,Jn=$n.top,Zn=Un({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},Gn),er={backgroundColor:"#ffffff",cache:Gn.cache?Gn.cache:As.create(Kn,Zn),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:zn.devicePixelRatio||1,windowWidth:zn.innerWidth,windowHeight:zn.innerHeight,scrollX:zn.pageXOffset,scrollY:zn.pageYOffset,x:Yn,y:Jn,width:Math.ceil(Wn),height:Math.ceil(Xn),id:Kn},tr=Un({},er,Zn,Gn),nr=new Dn(tr.scrollX,tr.scrollY,tr.windowWidth,tr.windowHeight),fs.create({id:Kn,enabled:tr.logging}),fs.getInstance(Kn).debug("Starting document clone"),rr=new Zu(Tn,{id:Kn,onclone:tr.onclone,ignoreElements:tr.ignoreElements,inlineImages:tr.foreignObjectRendering,copyStyles:tr.foreignObjectRendering}),(ir=rr.clonedReferenceElement)?[4,rr.toIFrame(Vn,nr)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return or=gr.sent(),ar=Vn.documentElement?ih(getComputedStyle(Vn.documentElement).backgroundColor):za.TRANSPARENT,sr=Vn.body?ih(getComputedStyle(Vn.body).backgroundColor):za.TRANSPARENT,lr=Gn.backgroundColor,cr="string"==typeof lr?ih(lr):null===lr?za.TRANSPARENT:4294967295,ur=Tn===Vn.documentElement?Ua(ar)?Ua(sr)?cr:sr:ar:cr,dr={id:Kn,cache:tr.cache,canvas:tr.canvas,backgroundColor:ur,scale:tr.scale,x:tr.x,y:tr.y,scrollX:tr.scrollX,scrollY:tr.scrollY,width:tr.width,height:tr.height,windowWidth:tr.windowWidth,windowHeight:tr.windowHeight},tr.foreignObjectRendering?(fs.getInstance(Kn).debug("Document cloned, using foreign object rendering"),[4,new th(dr).render(ir)]):[3,3];case 2:return hr=gr.sent(),[3,5];case 3:return fs.getInstance(Kn).debug("Document cloned, using computed rendering"),As.attachInstance(tr.cache),fs.getInstance(Kn).debug("Starting DOM parsing"),pr=pu(ir),As.detachInstance(),ur===pr.styles.backgroundColor&&(pr.styles.backgroundColor=za.TRANSPARENT),fs.getInstance(Kn).debug("Starting renderer"),[4,new Yd(dr).render(pr)];case 4:hr=gr.sent(),gr.label=5;case 5:return!0===tr.removeContainer&&(Zu.destroy(or)||fs.getInstance(Kn).error("Cannot detach cloned iframe as it is not in the DOM anymore")),fs.getInstance(Kn).debug("Finished rendering"),fs.destroy(Kn),As.destroy(Kn),[2,hr]}}))}))};return oh}()})),ej=Object.freeze(Object.assign(Object.create(null),ZD,{default:ZD})),tj=Object.isFrozen,nj=fails((function(){tj(1)}));_export({target:"Object",stat:!0,forced:nj},{isFrozen:function isFrozen(Tn){return!isObject(Tn)||!!tj&&tj(Tn)}});var rj=kh.onFreeze,ij=Object.seal,oj=fails((function(){ij(1)}));_export({target:"Object",stat:!0,forced:oj,sham:!Ch},{seal:function seal(Tn){return ij&&isObject(Tn)?ij(rj(Tn)):Tn}});var aj=getBuiltIn("Reflect","apply"),sj=Function.apply,lj=!fails((function(){aj((function(){}))}));_export({target:"Reflect",stat:!0,forced:lj},{apply:function apply(Tn,Un,Dn){return aFunction$1(Tn),anObject(Dn),aj?aj(Tn,Un,Dn):sj.call(Tn,Un,Dn)}});var uj=getBuiltIn("Reflect","construct"),dj=fails((function(){function F(){}return!(uj((function(){}),[],F)instanceof F)})),hj=!fails((function(){uj((function(){}))})),pj=dj||hj;_export({target:"Reflect",stat:!0,forced:pj,sham:pj},{construct:function construct(Tn,Un){aFunction$1(Tn),anObject(Un);var Dn=arguments.length<3?Tn:aFunction$1(arguments[2]);if(hj&&!dj)return uj(Tn,Un,Dn);if(Tn==Dn){switch(Un.length){case 0:return new Tn;case 1:return new Tn(Un[0]);case 2:return new Tn(Un[0],Un[1]);case 3:return new Tn(Un[0],Un[1],Un[2]);case 4:return new Tn(Un[0],Un[1],Un[2],Un[3])}var Qn=[null];return Qn.push.apply(Qn,Un),new(Ka.apply(Tn,Qn))}var Hn=Dn.prototype,Gn=xi(isObject(Hn)?Hn:Object.prototype),Vn=Function.apply.call(Tn,Gn,Un);return isObject(Vn)?Vn:Gn}});var gj=createCommonjsModule((function(Tn,Un){Tn.exports=function(){function _toConsumableArray(Tn){if(Array.isArray(Tn)){for(var Un=0,Dn=Array(Tn.length);Un<Tn.length;Un++)Dn[Un]=Tn[Un];return Dn}return Array.from(Tn)}var Tn=Object.hasOwnProperty,Un=Object.setPrototypeOf,Dn=Object.isFrozen,Qn=Object.keys,Hn=Object.freeze,Gn=Object.seal,Vn="undefined"!=typeof Reflect&&Reflect,zn=Vn.apply,Kn=Vn.construct;zn||(zn=function apply(Tn,Un,Dn){return Tn.apply(Un,Dn)}),Hn||(Hn=function freeze(Tn){return Tn}),Gn||(Gn=function seal(Tn){return Tn}),Kn||(Kn=function construct(Tn,Un){return new(Function.prototype.bind.apply(Tn,[null].concat(_toConsumableArray(Un))))});var $n=unapply(Array.prototype.forEach),Wn=unapply(Array.prototype.indexOf),Xn=unapply(Array.prototype.join),Yn=unapply(Array.prototype.pop),Jn=unapply(Array.prototype.push),Zn=unapply(Array.prototype.slice),er=unapply(String.prototype.toLowerCase),tr=unapply(String.prototype.match),nr=unapply(String.prototype.replace),rr=unapply(String.prototype.indexOf),ir=unapply(String.prototype.trim),or=unapply(RegExp.prototype.test),ar=unconstruct(RegExp),sr=unconstruct(TypeError);function unapply(Tn){return function(Un){for(var Dn=arguments.length,Qn=Array(Dn>1?Dn-1:0),Hn=1;Hn<Dn;Hn++)Qn[Hn-1]=arguments[Hn];return zn(Tn,Un,Qn)}}function unconstruct(Tn){return function(){for(var Un=arguments.length,Dn=Array(Un),Qn=0;Qn<Un;Qn++)Dn[Qn]=arguments[Qn];return Kn(Tn,Dn)}}function addToSet(Tn,Qn){Un&&Un(Tn,null);for(var Hn=Qn.length;Hn--;){var Gn=Qn[Hn];if("string"==typeof Gn){var Vn=er(Gn);Vn!==Gn&&(Dn(Qn)||(Qn[Hn]=Vn),Gn=Vn)}Tn[Gn]=!0}return Tn}function clone(Un){var Dn={},Qn=void 0;for(Qn in Un)zn(Tn,Un,[Qn])&&(Dn[Qn]=Un[Qn]);return Dn}var lr=Hn(["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","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"]),cr=Hn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","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","video","view","vkern"]),ur=Hn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),dr=Hn(["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"]),hr=Hn(["#text"]),pr=Hn(["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"]),gr=Hn(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","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","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"]),fr=Hn(["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"]),Ar=Hn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mr=Gn(/\{\{[\s\S]*|[\s\S]*\}\}/gm),vr=Gn(/<%[\s\S]*|[\s\S]*%>/gm),yr=Gn(/^data-[\-\w.\u00B7-\uFFFF]/),_r=Gn(/^aria-[\-\w]+$/),br=Gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wr=Gn(/^(?:\w+script|data):/i),xr=Gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),Sr="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?function(Tn){return _typeof(Tn)}:function(Tn){return Tn&&"function"==typeof Symbol&&Tn.constructor===Symbol&&Tn!==Symbol.prototype?"symbol":_typeof(Tn)};function _toConsumableArray$1(Tn){if(Array.isArray(Tn)){for(var Un=0,Dn=Array(Tn.length);Un<Tn.length;Un++)Dn[Un]=Tn[Un];return Dn}return Array.from(Tn)}var Cr=function getGlobal(){return"undefined"==typeof window?null:window},kr=function _createTrustedTypesPolicy(Tn,Un){if("object"!==(void 0===Tn?"undefined":Sr(Tn))||"function"!=typeof Tn.createPolicy)return null;var Dn=null,Qn="data-tt-policy-suffix";Un.currentScript&&Un.currentScript.hasAttribute(Qn)&&(Dn=Un.currentScript.getAttribute(Qn));var Hn="dompurify"+(Dn?"#"+Dn:"");try{return Tn.createPolicy(Hn,{createHTML:function createHTML(Tn){return Tn}})}catch(Tn){return console.warn("TrustedTypes policy "+Hn+" could not be created."),null}};function createDOMPurify(){var Tn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cr(),Un=function DOMPurify(Tn){return createDOMPurify(Tn)};if(Un.version="2.0.12",Un.removed=[],!Tn||!Tn.document||9!==Tn.document.nodeType)return Un.isSupported=!1,Un;var Dn=Tn.document,Gn=!1,Vn=Tn.document,zn=Tn.DocumentFragment,Kn=Tn.HTMLTemplateElement,Br=Tn.Node,Er=Tn.NodeFilter,Pr=Tn.NamedNodeMap,Lr=void 0===Pr?Tn.NamedNodeMap||Tn.MozNamedAttrMap:Pr,Tr=Tn.Text,Nr=Tn.Comment,Ir=Tn.DOMParser,Or=Tn.trustedTypes;if("function"==typeof Kn){var Fr=Vn.createElement("template");Fr.content&&Fr.content.ownerDocument&&(Vn=Fr.content.ownerDocument)}var Ur=kr(Or,Dn),Mr=Ur&&Ai?Ur.createHTML(""):"",Rr=Vn,Dr=Rr.implementation,jr=Rr.createNodeIterator,Qr=Rr.getElementsByTagName,Hr=Rr.createDocumentFragment,Gr=Dn.importNode,Vr={};Un.isSupported=Dr&&void 0!==Dr.createHTMLDocument&&9!==Vn.documentMode;var zr=mr,Kr=vr,qr=yr,$r=_r,Wr=wr,Xr=xr,Yr=br,Jr=null,Zr=addToSet({},[].concat(_toConsumableArray$1(lr),_toConsumableArray$1(cr),_toConsumableArray$1(ur),_toConsumableArray$1(dr),_toConsumableArray$1(hr))),ei=null,ti=addToSet({},[].concat(_toConsumableArray$1(pr),_toConsumableArray$1(gr),_toConsumableArray$1(fr),_toConsumableArray$1(Ar))),ni=null,ri=null,ii=!0,oi=!0,ai=!1,si=!1,li=!1,ui=!1,di=!1,hi=!1,pi=!1,gi=!1,fi=!1,Ai=!1,mi=!0,vi=!0,yi=!1,_i={},wi=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),xi=null,Si=addToSet({},["audio","video","img","source","image","track"]),Ci=null,ki=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Bi=null,Ei=Vn.createElement("form"),Pi=function _parseConfig(Tn){Bi&&Bi===Tn||(Tn&&"object"===(void 0===Tn?"undefined":Sr(Tn))||(Tn={}),Jr="ALLOWED_TAGS"in Tn?addToSet({},Tn.ALLOWED_TAGS):Zr,ei="ALLOWED_ATTR"in Tn?addToSet({},Tn.ALLOWED_ATTR):ti,Ci="ADD_URI_SAFE_ATTR"in Tn?addToSet(clone(ki),Tn.ADD_URI_SAFE_ATTR):ki,xi="ADD_DATA_URI_TAGS"in Tn?addToSet(clone(Si),Tn.ADD_DATA_URI_TAGS):Si,ni="FORBID_TAGS"in Tn?addToSet({},Tn.FORBID_TAGS):{},ri="FORBID_ATTR"in Tn?addToSet({},Tn.FORBID_ATTR):{},_i="USE_PROFILES"in Tn&&Tn.USE_PROFILES,ii=!1!==Tn.ALLOW_ARIA_ATTR,oi=!1!==Tn.ALLOW_DATA_ATTR,ai=Tn.ALLOW_UNKNOWN_PROTOCOLS||!1,si=Tn.SAFE_FOR_JQUERY||!1,li=Tn.SAFE_FOR_TEMPLATES||!1,ui=Tn.WHOLE_DOCUMENT||!1,pi=Tn.RETURN_DOM||!1,gi=Tn.RETURN_DOM_FRAGMENT||!1,fi=Tn.RETURN_DOM_IMPORT||!1,Ai=Tn.RETURN_TRUSTED_TYPE||!1,hi=Tn.FORCE_BODY||!1,mi=!1!==Tn.SANITIZE_DOM,vi=!1!==Tn.KEEP_CONTENT,yi=Tn.IN_PLACE||!1,Yr=Tn.ALLOWED_URI_REGEXP||Yr,li&&(oi=!1),gi&&(pi=!0),_i&&(Jr=addToSet({},[].concat(_toConsumableArray$1(hr))),ei=[],!0===_i.html&&(addToSet(Jr,lr),addToSet(ei,pr)),!0===_i.svg&&(addToSet(Jr,cr),addToSet(ei,gr),addToSet(ei,Ar)),!0===_i.svgFilters&&(addToSet(Jr,ur),addToSet(ei,gr),addToSet(ei,Ar)),!0===_i.mathMl&&(addToSet(Jr,dr),addToSet(ei,fr),addToSet(ei,Ar))),Tn.ADD_TAGS&&(Jr===Zr&&(Jr=clone(Jr)),addToSet(Jr,Tn.ADD_TAGS)),Tn.ADD_ATTR&&(ei===ti&&(ei=clone(ei)),addToSet(ei,Tn.ADD_ATTR)),Tn.ADD_URI_SAFE_ATTR&&addToSet(Ci,Tn.ADD_URI_SAFE_ATTR),vi&&(Jr["#text"]=!0),ui&&addToSet(Jr,["html","head","body"]),Jr.table&&(addToSet(Jr,["tbody"]),delete ni.tbody),Hn&&Hn(Tn),Bi=Tn)},Li=function _forceRemove(Tn){Jn(Un.removed,{element:Tn});try{Tn.parentNode.removeChild(Tn)}catch(Un){Tn.outerHTML=Mr}},Ti=function _removeAttribute(Tn,Dn){try{Jn(Un.removed,{attribute:Dn.getAttributeNode(Tn),from:Dn})}catch(Tn){Jn(Un.removed,{attribute:null,from:Dn})}Dn.removeAttribute(Tn)},Ni=function _initDocument(Tn){var Un=void 0,Dn=void 0;if(hi)Tn="<remove></remove>"+Tn;else{var Qn=tr(Tn,/^[\r\n\t ]+/);Dn=Qn&&Qn[0]}var Hn=Ur?Ur.createHTML(Tn):Tn;try{Un=(new Ir).parseFromString(Hn,"text/html")}catch(Tn){}if(Gn&&addToSet(ni,["title"]),!Un||!Un.documentElement){var zn=(Un=Dr.createHTMLDocument("")).body;zn.parentNode.removeChild(zn.parentNode.firstElementChild),zn.outerHTML=Hn}return Tn&&Dn&&Un.body.insertBefore(Vn.createTextNode(Dn),Un.body.childNodes[0]||null),Qr.call(Un,ui?"html":"body")[0]};Un.isSupported&&function(){try{var Tn=Ni("<x/><title></title><img>");or(/<\/title/,Tn.querySelector("title").innerHTML)&&(Gn=!0)}catch(Tn){}}();var Ii=function _createIterator(Tn){return jr.call(Tn.ownerDocument||Tn,Tn,Er.SHOW_ELEMENT|Er.SHOW_COMMENT|Er.SHOW_TEXT,(function(){return Er.FILTER_ACCEPT}),!1)},Oi=function _isClobbered(Tn){return!(Tn instanceof Tr||Tn instanceof Nr||"string"==typeof Tn.nodeName&&"string"==typeof Tn.textContent&&"function"==typeof Tn.removeChild&&Tn.attributes instanceof Lr&&"function"==typeof Tn.removeAttribute&&"function"==typeof Tn.setAttribute&&"string"==typeof Tn.namespaceURI)},Fi=function _isNode(Tn){return"object"===(void 0===Br?"undefined":Sr(Br))?Tn instanceof Br:Tn&&"object"===(void 0===Tn?"undefined":Sr(Tn))&&"number"==typeof Tn.nodeType&&"string"==typeof Tn.nodeName},Ui=function _executeHook(Tn,Dn,Qn){Vr[Tn]&&$n(Vr[Tn],(function(Tn){Tn.call(Un,Dn,Qn,Bi)}))},Mi=function _sanitizeElements(Tn){var Dn=void 0;if(Ui("beforeSanitizeElements",Tn,null),Oi(Tn))return Li(Tn),!0;var Qn=er(Tn.nodeName);if(Ui("uponSanitizeElement",Tn,{tagName:Qn,allowedTags:Jr}),("svg"===Qn||"math"===Qn)&&0!==Tn.querySelectorAll("p, br").length)return Li(Tn),!0;if(!Jr[Qn]||ni[Qn]){if(vi&&!wi[Qn]&&"function"==typeof Tn.insertAdjacentHTML)try{var Hn=Tn.innerHTML;Tn.insertAdjacentHTML("AfterEnd",Ur?Ur.createHTML(Hn):Hn)}catch(Tn){}return Li(Tn),!0}return"noscript"===Qn&&or(/<\/noscript/i,Tn.innerHTML)||"noembed"===Qn&&or(/<\/noembed/i,Tn.innerHTML)?(Li(Tn),!0):(!si||Tn.firstElementChild||Tn.content&&Tn.content.firstElementChild||!or(/</g,Tn.textContent)||(Jn(Un.removed,{element:Tn.cloneNode()}),Tn.innerHTML?Tn.innerHTML=nr(Tn.innerHTML,/</g,"<"):Tn.innerHTML=nr(Tn.textContent,/</g,"<")),li&&3===Tn.nodeType&&(Dn=Tn.textContent,Dn=nr(Dn,zr," "),Dn=nr(Dn,Kr," "),Tn.textContent!==Dn&&(Jn(Un.removed,{element:Tn.cloneNode()}),Tn.textContent=Dn)),Ui("afterSanitizeElements",Tn,null),!1)},Ri=function _isValidAttribute(Tn,Un,Dn){if(mi&&("id"===Un||"name"===Un)&&(Dn in Vn||Dn in Ei))return!1;if(oi&&or(qr,Un));else if(ii&&or($r,Un));else{if(!ei[Un]||ri[Un])return!1;if(Ci[Un]);else if(or(Yr,nr(Dn,Xr,"")));else if("src"!==Un&&"xlink:href"!==Un&&"href"!==Un||"script"===Tn||0!==rr(Dn,"data:")||!xi[Tn])if(ai&&!or(Wr,nr(Dn,Xr,"")));else if(Dn)return!1}return!0},Di=function _sanitizeAttributes(Tn){var Dn=void 0,Hn=void 0,Gn=void 0,Vn=void 0,zn=void 0;Ui("beforeSanitizeAttributes",Tn,null);var Kn=Tn.attributes;if(Kn){var $n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ei};for(zn=Kn.length;zn--;){var Jn=Dn=Kn[zn],tr=Jn.name,rr=Jn.namespaceURI;if(Hn=ir(Dn.value),Gn=er(tr),$n.attrName=Gn,$n.attrValue=Hn,$n.keepAttr=!0,$n.forceKeepAttr=void 0,Ui("uponSanitizeAttribute",Tn,$n),Hn=$n.attrValue,!$n.forceKeepAttr){if("name"===Gn&&"IMG"===Tn.nodeName&&Kn.id)Vn=Kn.id,Kn=Zn(Kn,[]),Ti("id",Tn),Ti(tr,Tn),Wn(Kn,Vn)>zn&&Tn.setAttribute("id",Vn.value);else{if("INPUT"===Tn.nodeName&&"type"===Gn&&"file"===Hn&&$n.keepAttr&&(ei[Gn]||!ri[Gn]))continue;"id"===tr&&Tn.setAttribute(tr,""),Ti(tr,Tn)}if($n.keepAttr)if(si&&or(/\/>/i,Hn))Ti(tr,Tn);else if(or(/svg|math/i,Tn.namespaceURI)&&or(ar("</("+Xn(Qn(wi),"|")+")","i"),Hn))Ti(tr,Tn);else{li&&(Hn=nr(Hn,zr," "),Hn=nr(Hn,Kr," "));var sr=Tn.nodeName.toLowerCase();if(Ri(sr,Gn,Hn))try{rr?Tn.setAttributeNS(rr,tr,Hn):Tn.setAttribute(tr,Hn),Yn(Un.removed)}catch(Tn){}}}}Ui("afterSanitizeAttributes",Tn,null)}},ji=function _sanitizeShadowDOM(Tn){var Un=void 0,Dn=Ii(Tn);for(Ui("beforeSanitizeShadowDOM",Tn,null);Un=Dn.nextNode();)Ui("uponSanitizeShadowNode",Un,null),Mi(Un)||(Un.content instanceof zn&&_sanitizeShadowDOM(Un.content),Di(Un));Ui("afterSanitizeShadowDOM",Tn,null)};return Un.sanitize=function(Qn,Hn){var Gn=void 0,Vn=void 0,Kn=void 0,$n=void 0,Wn=void 0;if(Qn||(Qn="\x3c!--\x3e"),"string"!=typeof Qn&&!Fi(Qn)){if("function"!=typeof Qn.toString)throw sr("toString is not a function");if("string"!=typeof(Qn=Qn.toString()))throw sr("dirty is not a string, aborting")}if(!Un.isSupported){if("object"===Sr(Tn.toStaticHTML)||"function"==typeof Tn.toStaticHTML){if("string"==typeof Qn)return Tn.toStaticHTML(Qn);if(Fi(Qn))return Tn.toStaticHTML(Qn.outerHTML)}return Qn}if(di||Pi(Hn),Un.removed=[],"string"==typeof Qn&&(yi=!1),yi);else if(Qn instanceof Br)1===(Vn=(Gn=Ni("\x3c!--\x3e")).ownerDocument.importNode(Qn,!0)).nodeType&&"BODY"===Vn.nodeName||"HTML"===Vn.nodeName?Gn=Vn:Gn.appendChild(Vn);else{if(!pi&&!li&&!ui&&-1===Qn.indexOf("<"))return Ur&&Ai?Ur.createHTML(Qn):Qn;if(!(Gn=Ni(Qn)))return pi?null:Mr}Gn&&hi&&Li(Gn.firstChild);for(var Xn=Ii(yi?Qn:Gn);Kn=Xn.nextNode();)3===Kn.nodeType&&Kn===$n||Mi(Kn)||(Kn.content instanceof zn&&ji(Kn.content),Di(Kn),$n=Kn);if($n=null,yi)return Qn;if(pi){if(gi)for(Wn=Hr.call(Gn.ownerDocument);Gn.firstChild;)Wn.appendChild(Gn.firstChild);else Wn=Gn;return fi&&(Wn=Gr.call(Dn,Wn,!0)),Wn}var Yn=ui?Gn.outerHTML:Gn.innerHTML;return li&&(Yn=nr(Yn,zr," "),Yn=nr(Yn,Kr," ")),Ur&&Ai?Ur.createHTML(Yn):Yn},Un.setConfig=function(Tn){Pi(Tn),di=!0},Un.clearConfig=function(){Bi=null,di=!1},Un.isValidAttribute=function(Tn,Un,Dn){Bi||Pi({});var Qn=er(Tn),Hn=er(Un);return Ri(Qn,Hn,Dn)},Un.addHook=function(Tn,Un){"function"==typeof Un&&(Vr[Tn]=Vr[Tn]||[],Jn(Vr[Tn],Un))},Un.removeHook=function(Tn){Vr[Tn]&&Yn(Vr[Tn])},Un.removeHooks=function(Tn){Vr[Tn]&&(Vr[Tn]=[])},Un.removeAllHooks=function(){Vr={}},Un}return createDOMPurify()}()})),fj=Object.freeze(Object.assign(Object.create(null),gj,{default:gj})),Aj=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"}}}),mj=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"}}}),vj=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"}}}),yj=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"}}}),_j=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"}}}),wj=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"}}}),xj=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"}}}),Sj=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"}}}),Cj=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"}}}),kj=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"}}}),Bj=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"}}}),Ej=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"}}}),Pj=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"}}}),Lj=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"}}}),Tj=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"}}}),Nj=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"}}}),Ij=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"}}}),Oj=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"}}}),Fj=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"}}}),Uj=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"}}}),Mj=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"}}}),Rj=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"}}}),Dj=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"}}}),jj=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"}}}),Qj=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"}}}),Hj=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"}}}),Gj=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"}}}),Vj=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"}}}),zj=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"}}}),Kj=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"}}}),qj=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"}}}),$j=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"}}}),Wj=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"}}}),Xj=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"}}}),Yj=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"}}}),Jj=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"}}}),Zj=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"}}}),eQ=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"}}}),tQ=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"}}}),nQ=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"}}}),rQ=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"}}}),iQ=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:"Текст может показываться не так как должен"}}}),oQ=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"}}}),aQ=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"}}}),sQ=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"}}}),lQ=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"}}}),cQ=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"}}}),uQ=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"}}}),dQ=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"}}}),hQ=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"}}}),pQ=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"}}}),gQ=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"}}}),fQ=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"}}}),AQ=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"}}}),mQ=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"}}}),vQ=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"}}}),yQ=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"}}}),_Q=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"}}});
|
||
//# sourceMappingURL=xdomain-index.js.map
|