557 lines
1.8 MiB
557 lines
1.8 MiB
var er="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(er,tr,rr){return er(rr={path:tr,exports:{},require:function(er,tr){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==tr&&rr.path)}},rr.exports),rr.exports}var check=function(er){return er&&er.Math==Math&&er},tr=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof er&&er)||Function("return this")(),fails=function(er){try{return!!er()}catch(er){return!0}},rr=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),nr={}.propertyIsEnumerable,ar=Object.getOwnPropertyDescriptor,ir={f:ar&&!nr.call({1:2},1)?function propertyIsEnumerable(er){var tr=ar(this,er);return!!tr&&tr.enumerable}:nr},createPropertyDescriptor=function(er,tr){return{enumerable:!(1&er),configurable:!(2&er),writable:!(4&er),value:tr}},or={}.toString,classofRaw=function(er){return or.call(er).slice(8,-1)},sr="".split,lr=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(er){return"String"==classofRaw(er)?sr.call(er,""):Object(er)}:Object,requireObjectCoercible=function(er){if(null==er)throw TypeError("Can't call method on "+er);return er},toIndexedObject=function(er){return lr(requireObjectCoercible(er))},isObject=function(er){return"object"==typeof er?null!==er:"function"==typeof er},toPrimitive=function(er,tr){if(!isObject(er))return er;var rr,nr;if(tr&&"function"==typeof(rr=er.toString)&&!isObject(nr=rr.call(er)))return nr;if("function"==typeof(rr=er.valueOf)&&!isObject(nr=rr.call(er)))return nr;if(!tr&&"function"==typeof(rr=er.toString)&&!isObject(nr=rr.call(er)))return nr;throw TypeError("Can't convert object to primitive value")},cr={}.hasOwnProperty,has=function(er,tr){return cr.call(er,tr)},ur=tr.document,dr=isObject(ur)&&isObject(ur.createElement),documentCreateElement=function(er){return dr?ur.createElement(er):{}},hr=!rr&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),pr=Object.getOwnPropertyDescriptor,Ar={f:rr?pr:function getOwnPropertyDescriptor(er,tr){if(er=toIndexedObject(er),tr=toPrimitive(tr,!0),hr)try{return pr(er,tr)}catch(er){}if(has(er,tr))return createPropertyDescriptor(!ir.f.call(er,tr),er[tr])}},anObject=function(er){if(!isObject(er))throw TypeError(String(er)+" is not an object");return er},fr=Object.defineProperty,gr={f:rr?fr:function defineProperty(er,tr,rr){if(anObject(er),tr=toPrimitive(tr,!0),anObject(rr),hr)try{return fr(er,tr,rr)}catch(er){}if("get"in rr||"set"in rr)throw TypeError("Accessors not supported");return"value"in rr&&(er[tr]=rr.value),er}},mr=rr?function(er,tr,rr){return gr.f(er,tr,createPropertyDescriptor(1,rr))}:function(er,tr,rr){return er[tr]=rr,er},setGlobal=function(er,rr){try{mr(tr,er,rr)}catch(nr){tr[er]=rr}return rr},_r=tr["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),vr=Function.toString;"function"!=typeof _r.inspectSource&&(_r.inspectSource=function(er){return vr.call(er)});var yr,br,wr,kr=_r.inspectSource,xr=tr.WeakMap,Sr="function"==typeof xr&&/native code/.test(kr(xr)),Cr=createCommonjsModule((function(er){(er.exports=function(er,tr){return _r[er]||(_r[er]=void 0!==tr?tr:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Br=0,Er=Math.random(),uid=function(er){return"Symbol("+String(void 0===er?"":er)+")_"+(++Br+Er).toString(36)},Nr=Cr("keys"),sharedKey=function(er){return Nr[er]||(Nr[er]=uid(er))},Lr={},Pr=tr.WeakMap;if(Sr){var Tr=new Pr,Fr=Tr.get,Ur=Tr.has,Ir=Tr.set;yr=function(er,tr){return Ir.call(Tr,er,tr),tr},br=function(er){return Fr.call(Tr,er)||{}},wr=function(er){return Ur.call(Tr,er)}}else{var Rr=sharedKey("state");Lr[Rr]=!0,yr=function(er,tr){return mr(er,Rr,tr),tr},br=function(er){return has(er,Rr)?er[Rr]:{}},wr=function(er){return has(er,Rr)}}var Mr,Qr,Or={set:yr,get:br,has:wr,enforce:function(er){return wr(er)?br(er):yr(er,{})},getterFor:function(er){return function(tr){var rr;if(!isObject(tr)||(rr=br(tr)).type!==er)throw TypeError("Incompatible receiver, "+er+" required");return rr}}},Dr=createCommonjsModule((function(er){var rr=Or.get,nr=Or.enforce,ar=String(String).split("String");(er.exports=function(er,rr,ir,or){var sr=!!or&&!!or.unsafe,lr=!!or&&!!or.enumerable,cr=!!or&&!!or.noTargetGet;"function"==typeof ir&&("string"!=typeof rr||has(ir,"name")||mr(ir,"name",rr),nr(ir).source=ar.join("string"==typeof rr?rr:"")),er!==tr?(sr?!cr&&er[rr]&&(lr=!0):delete er[rr],lr?er[rr]=ir:mr(er,rr,ir)):lr?er[rr]=ir:setGlobal(rr,ir)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&rr(this).source||kr(this)}))})),jr=tr,aFunction=function(er){return"function"==typeof er?er:void 0},getBuiltIn=function(er,rr){return arguments.length<2?aFunction(jr[er])||aFunction(tr[er]):jr[er]&&jr[er][rr]||tr[er]&&tr[er][rr]},Hr=Math.ceil,Gr=Math.floor,toInteger=function(er){return isNaN(er=+er)?0:(er>0?Gr:Hr)(er)},Vr=Math.min,toLength=function(er){return er>0?Vr(toInteger(er),9007199254740991):0},zr=Math.max,Kr=Math.min,toAbsoluteIndex=function(er,tr){var rr=toInteger(er);return rr<0?zr(rr+tr,0):Kr(rr,tr)},createMethod=function(er){return function(tr,rr,nr){var ar,ir=toIndexedObject(tr),or=toLength(ir.length),sr=toAbsoluteIndex(nr,or);if(er&&rr!=rr){for(;or>sr;)if((ar=ir[sr++])!=ar)return!0}else for(;or>sr;sr++)if((er||sr in ir)&&ir[sr]===rr)return er||sr||0;return!er&&-1}},qr={includes:createMethod(!0),indexOf:createMethod(!1)},Wr=qr.indexOf,objectKeysInternal=function(er,tr){var rr,nr=toIndexedObject(er),ar=0,ir=[];for(rr in nr)!has(Lr,rr)&&has(nr,rr)&&ir.push(rr);for(;tr.length>ar;)has(nr,rr=tr[ar++])&&(~Wr(ir,rr)||ir.push(rr));return ir},Xr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yr=Xr.concat("length","prototype"),Jr={f:Object.getOwnPropertyNames||function getOwnPropertyNames(er){return objectKeysInternal(er,Yr)}},$r={f:Object.getOwnPropertySymbols},Zr=getBuiltIn("Reflect","ownKeys")||function ownKeys(er){var tr=Jr.f(anObject(er)),rr=$r.f;return rr?tr.concat(rr(er)):tr},copyConstructorProperties=function(er,tr){for(var rr=Zr(tr),nr=gr.f,ar=Ar.f,ir=0;ir<rr.length;ir++){var or=rr[ir];has(er,or)||nr(er,or,ar(tr,or))}},Tn=/#|\.prototype\./,isForced=function(er,tr){var rr=Qn[Un(er)];return rr==Hn||rr!=Dn&&("function"==typeof tr?fails(tr):!!tr)},Un=isForced.normalize=function(er){return String(er).replace(Tn,".").toLowerCase()},Qn=isForced.data={},Dn=isForced.NATIVE="N",Hn=isForced.POLYFILL="P",Gn=isForced,Vn=Ar.f,_export=function(er,rr){var nr,ar,ir,or,sr,lr=er.target,cr=er.global,ur=er.stat;if(nr=cr?tr:ur?tr[lr]||setGlobal(lr,{}):(tr[lr]||{}).prototype)for(ar in rr){if(or=rr[ar],ir=er.noTargetGet?(sr=Vn(nr,ar))&&sr.value:nr[ar],!Gn(cr?ar:lr+(ur?".":"#")+ar,er.forced)&&void 0!==ir){if(typeof or==typeof ir)continue;copyConstructorProperties(or,ir)}(er.sham||ir&&ir.sham)&&mr(or,"sham",!0),Dr(nr,ar,or,er)}},zn=Array.isArray||function isArray(er){return"Array"==classofRaw(er)},toObject=function(er){return Object(requireObjectCoercible(er))},createProperty=function(er,tr,rr){var nr=toPrimitive(tr);nr in er?gr.f(er,nr,createPropertyDescriptor(0,rr)):er[nr]=rr},Kn=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),Wn=Kn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xn=Cr("wks"),Yn=tr.Symbol,Jn=Wn?Yn:Yn&&Yn.withoutSetter||uid,wellKnownSymbol=function(er){return has(Xn,er)||(Kn&&has(Yn,er)?Xn[er]=Yn[er]:Xn[er]=Jn("Symbol."+er)),Xn[er]},$n=wellKnownSymbol("species"),arraySpeciesCreate=function(er,tr){var rr;return zn(er)&&("function"!=typeof(rr=er.constructor)||rr!==Array&&!zn(rr.prototype)?isObject(rr)&&null===(rr=rr[$n])&&(rr=void 0):rr=void 0),new(void 0===rr?Array:rr)(0===tr?0:tr)},Zn=getBuiltIn("navigator","userAgent")||"",ea=tr.process,ta=ea&&ea.versions,ra=ta&&ta.v8;ra?Qr=(Mr=ra.split("."))[0]+Mr[1]:Zn&&(!(Mr=Zn.match(/Edge\/(\d+)/))||Mr[1]>=74)&&(Mr=Zn.match(/Chrome\/(\d+)/))&&(Qr=Mr[1]);var na=Qr&&+Qr,aa=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(er){return na>=51||!fails((function(){var tr=[];return(tr.constructor={})[aa]=function(){return{foo:1}},1!==tr[er](Boolean).foo}))},ia=wellKnownSymbol("isConcatSpreadable"),oa=na>=51||!fails((function(){var er=[];return er[ia]=!1,er.concat()[0]!==er})),sa=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(er){if(!isObject(er))return!1;var tr=er[ia];return void 0!==tr?!!tr:zn(er)};_export({target:"Array",proto:!0,forced:!oa||!sa},{concat:function concat(er){var tr,rr,nr,ar,ir,or=toObject(this),sr=arraySpeciesCreate(or,0),lr=0;for(tr=-1,nr=arguments.length;tr<nr;tr++)if(isConcatSpreadable(ir=-1===tr?or:arguments[tr])){if(lr+(ar=toLength(ir.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(rr=0;rr<ar;rr++,lr++)rr in ir&&createProperty(sr,lr,ir[rr])}else{if(lr>=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(sr,lr++,ir)}return sr.length=lr,sr}});var aFunction$1=function(er){if("function"!=typeof er)throw TypeError(String(er)+" is not a function");return er},functionBindContext=function(er,tr,rr){if(aFunction$1(er),void 0===tr)return er;switch(rr){case 0:return function(){return er.call(tr)};case 1:return function(rr){return er.call(tr,rr)};case 2:return function(rr,nr){return er.call(tr,rr,nr)};case 3:return function(rr,nr,ar){return er.call(tr,rr,nr,ar)}}return function(){return er.apply(tr,arguments)}},la=[].push,createMethod$1=function(er){var tr=1==er,rr=2==er,nr=3==er,ar=4==er,ir=6==er,or=5==er||ir;return function(sr,cr,ur,dr){for(var hr,pr,Ar=toObject(sr),fr=lr(Ar),gr=functionBindContext(cr,ur,3),mr=toLength(fr.length),_r=0,vr=dr||arraySpeciesCreate,yr=tr?vr(sr,mr):rr?vr(sr,0):void 0;mr>_r;_r++)if((or||_r in fr)&&(pr=gr(hr=fr[_r],_r,Ar),er))if(tr)yr[_r]=pr;else if(pr)switch(er){case 3:return!0;case 5:return hr;case 6:return _r;case 2:la.call(yr,hr)}else if(ar)return!1;return ir?-1:nr||ar?ar:yr}},ca={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)},arrayMethodIsStrict=function(er,tr){var rr=[][er];return!!rr&&fails((function(){rr.call(null,tr||function(){throw 1},1)}))},ua=Object.defineProperty,da={},thrower=function(er){throw er},arrayMethodUsesToLength=function(er,tr){if(has(da,er))return da[er];tr||(tr={});var nr=[][er],ar=!!has(tr,"ACCESSORS")&&tr.ACCESSORS,ir=has(tr,0)?tr[0]:thrower,or=has(tr,1)?tr[1]:void 0;return da[er]=!!nr&&!fails((function(){if(ar&&!rr)return!0;var er={length:-1};ar?ua(er,1,{enumerable:!0,get:thrower}):er[1]=1,nr.call(er,ir,or)}))},ha=ca.every,pa=arrayMethodIsStrict("every"),Aa=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!pa||!Aa},{every:function every(er){return ha(this,er,arguments.length>1?arguments[1]:void 0)}});var fa,ga=Object.keys||function keys(er){return objectKeysInternal(er,Xr)},ma=rr?Object.defineProperties:function defineProperties(er,tr){anObject(er);for(var rr,nr=ga(tr),ar=nr.length,ir=0;ar>ir;)gr.f(er,rr=nr[ir++],tr[rr]);return er},_a=getBuiltIn("document","documentElement"),va=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(er){return"<script>"+er+"<\/script>"},NullProtoObject=function(){try{fa=document.domain&&new ActiveXObject("htmlfile")}catch(er){}var er,tr;NullProtoObject=fa?function(er){er.write(scriptTag("")),er.close();var tr=er.parentWindow.Object;return er=null,tr}(fa):((tr=documentCreateElement("iframe")).style.display="none",_a.appendChild(tr),tr.src=String("javascript:"),(er=tr.contentWindow.document).open(),er.write(scriptTag("document.F=Object")),er.close(),er.F);for(var rr=Xr.length;rr--;)delete NullProtoObject.prototype[Xr[rr]];return NullProtoObject()};Lr[va]=!0;var ya=Object.create||function create(er,tr){var rr;return null!==er?(EmptyConstructor.prototype=anObject(er),rr=new EmptyConstructor,EmptyConstructor.prototype=null,rr[va]=er):rr=NullProtoObject(),void 0===tr?rr:ma(rr,tr)},ba=wellKnownSymbol("unscopables"),wa=Array.prototype;null==wa[ba]&&gr.f(wa,ba,{configurable:!0,value:ya(null)});var addToUnscopables=function(er){wa[ba][er]=!0},ka=ca.find,xa=!0,Sa=arrayMethodUsesToLength("find");"find"in[]&&Array(1).find((function(){xa=!1})),_export({target:"Array",proto:!0,forced:xa||!Sa},{find:function find(er){return ka(this,er,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("find");var Ca=ca.forEach,Ba=arrayMethodIsStrict("forEach"),Ea=arrayMethodUsesToLength("forEach"),Na=Ba&&Ea?[].forEach:function forEach(er){return Ca(this,er,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Na},{forEach:Na});var La=qr.includes,Pa=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!Pa},{includes:function includes(er){return La(this,er,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var Ta=qr.indexOf,Fa=[].indexOf,Ua=!!Fa&&1/[1].indexOf(1,-0)<0,Ia=arrayMethodIsStrict("indexOf"),Ra=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:Ua||!Ia||!Ra},{indexOf:function indexOf(er){return Ua?Fa.apply(this,arguments)||0:Ta(this,er,arguments.length>1?arguments[1]:void 0)}}),_export({target:"Array",stat:!0},{isArray:zn});var Ma,Qa,Oa,Da={},ja=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Ha=sharedKey("IE_PROTO"),Ga=Object.prototype,Va=ja?Object.getPrototypeOf:function(er){return er=toObject(er),has(er,Ha)?er[Ha]:"function"==typeof er.constructor&&er instanceof er.constructor?er.constructor.prototype:er instanceof Object?Ga:null},za=wellKnownSymbol("iterator"),Ka=!1;[].keys&&("next"in(Oa=[].keys())?(Qa=Va(Va(Oa)))!==Object.prototype&&(Ma=Qa):Ka=!0),null==Ma&&(Ma={}),has(Ma,za)||mr(Ma,za,(function(){return this}));var qa={IteratorPrototype:Ma,BUGGY_SAFARI_ITERATORS:Ka},Wa=gr.f,Xa=wellKnownSymbol("toStringTag"),setToStringTag=function(er,tr,rr){er&&!has(er=rr?er:er.prototype,Xa)&&Wa(er,Xa,{configurable:!0,value:tr})},Ya=qa.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(er,tr,rr){var nr=tr+" Iterator";return er.prototype=ya(Ya,{next:createPropertyDescriptor(1,rr)}),setToStringTag(er,nr,!1),Da[nr]=returnThis$1,er},Ja=Object.setPrototypeOf||("__proto__"in{}?function(){var er,tr=!1,rr={};try{(er=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(rr,[]),tr=rr instanceof Array}catch(er){}return function setPrototypeOf(rr,nr){return anObject(rr),function(er){if(!isObject(er)&&null!==er)throw TypeError("Can't set "+String(er)+" as a prototype")}(nr),tr?er.call(rr,nr):rr.__proto__=nr,rr}}():void 0),$a=qa.IteratorPrototype,Za=qa.BUGGY_SAFARI_ITERATORS,ei=wellKnownSymbol("iterator"),returnThis$2=function(){return this},defineIterator=function(er,tr,rr,nr,ar,ir,or){createIteratorConstructor(rr,tr,nr);var sr,lr,cr,getIterationMethod=function(er){if(er===ar&&Ar)return Ar;if(!Za&&er in hr)return hr[er];switch(er){case"keys":return function keys(){return new rr(this,er)};case"values":return function values(){return new rr(this,er)};case"entries":return function entries(){return new rr(this,er)}}return function(){return new rr(this)}},ur=tr+" Iterator",dr=!1,hr=er.prototype,pr=hr[ei]||hr["@@iterator"]||ar&&hr[ar],Ar=!Za&&pr||getIterationMethod(ar),fr="Array"==tr&&hr.entries||pr;if(fr&&(sr=Va(fr.call(new er)),$a!==Object.prototype&&sr.next&&(Va(sr)!==$a&&(Ja?Ja(sr,$a):"function"!=typeof sr[ei]&&mr(sr,ei,returnThis$2)),setToStringTag(sr,ur,!0))),"values"==ar&&pr&&"values"!==pr.name&&(dr=!0,Ar=function values(){return pr.call(this)}),hr[ei]!==Ar&&mr(hr,ei,Ar),Da[tr]=Ar,ar)if(lr={values:getIterationMethod("values"),keys:ir?Ar:getIterationMethod("keys"),entries:getIterationMethod("entries")},or)for(cr in lr)(Za||dr||!(cr in hr))&&Dr(hr,cr,lr[cr]);else _export({target:tr,proto:!0,forced:Za||dr},lr);return lr},ti=Or.set,ri=Or.getterFor("Array Iterator"),ni=defineIterator(Array,"Array",(function(er,tr){ti(this,{type:"Array Iterator",target:toIndexedObject(er),index:0,kind:tr})}),(function(){var er=ri(this),tr=er.target,rr=er.kind,nr=er.index++;return!tr||nr>=tr.length?(er.target=void 0,{value:void 0,done:!0}):"keys"==rr?{value:nr,done:!1}:"values"==rr?{value:tr[nr],done:!1}:{value:[nr,tr[nr]],done:!1}}),"values");Da.Arguments=Da.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var ai=[].join,ii=lr!=Object,oi=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:ii||!oi},{join:function join(er){return ai.call(toIndexedObject(this),void 0===er?",":er)}});var si=ca.map,li=arrayMethodHasSpeciesSupport("map"),ci=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!li||!ci},{map:function map(er){return si(this,er,arguments.length>1?arguments[1]:void 0)}});var createMethod$2=function(er){return function(tr,rr,nr,ar){aFunction$1(rr);var ir=toObject(tr),or=lr(ir),sr=toLength(ir.length),cr=er?sr-1:0,ur=er?-1:1;if(nr<2)for(;;){if(cr in or){ar=or[cr],cr+=ur;break}if(cr+=ur,er?cr<0:sr<=cr)throw TypeError("Reduce of empty array with no initial value")}for(;er?cr>=0:sr>cr;cr+=ur)cr in or&&(ar=rr(ar,or[cr],cr,ir));return ar}},ui={left:createMethod$2(!1),right:createMethod$2(!0)},di=ui.left,hi=arrayMethodIsStrict("reduce"),pi=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!hi||!pi},{reduce:function reduce(er){return di(this,er,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ai=[].reverse,fi=[1,2];_export({target:"Array",proto:!0,forced:String(fi)===String(fi.reverse())},{reverse:function reverse(){return zn(this)&&(this.length=this.length),Ai.call(this)}});var gi=arrayMethodHasSpeciesSupport("slice"),mi=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),_i=wellKnownSymbol("species"),vi=[].slice,yi=Math.max;_export({target:"Array",proto:!0,forced:!gi||!mi},{slice:function slice(er,tr){var rr,nr,ar,ir=toIndexedObject(this),or=toLength(ir.length),sr=toAbsoluteIndex(er,or),lr=toAbsoluteIndex(void 0===tr?or:tr,or);if(zn(ir)&&("function"!=typeof(rr=ir.constructor)||rr!==Array&&!zn(rr.prototype)?isObject(rr)&&null===(rr=rr[_i])&&(rr=void 0):rr=void 0,rr===Array||void 0===rr))return vi.call(ir,sr,lr);for(nr=new(void 0===rr?Array:rr)(yi(lr-sr,0)),ar=0;sr<lr;sr++,ar++)sr in ir&&createProperty(nr,ar,ir[sr]);return nr.length=ar,nr}});var bi=ca.some,wi=arrayMethodIsStrict("some"),ki=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!wi||!ki},{some:function some(er){return bi(this,er,arguments.length>1?arguments[1]:void 0)}});var xi=Date.prototype,Si=xi.toString,Ci=xi.getTime;new Date(NaN)+""!="Invalid Date"&&Dr(xi,"toString",(function toString(){var er=Ci.call(this);return er==er?Si.call(this):"Invalid Date"}));var Bi=[].slice,Ei={},construct=function(er,tr,rr){if(!(tr in Ei)){for(var nr=[],ar=0;ar<tr;ar++)nr[ar]="a["+ar+"]";Ei[tr]=Function("C,a","return new C("+nr.join(",")+")")}return Ei[tr](er,rr)},Ni=Function.bind||function bind(er){var tr=aFunction$1(this),rr=Bi.call(arguments,1),nr=function bound(){var ar=rr.concat(Bi.call(arguments));return this instanceof nr?construct(tr,ar.length,ar):tr.apply(er,ar)};return isObject(tr.prototype)&&(nr.prototype=tr.prototype),nr};_export({target:"Function",proto:!0},{bind:Ni});var Li=gr.f,Pi=Function.prototype,Ti=Pi.toString,Fi=/^\s*function ([^ (]*)/;rr&&!("name"in Pi)&&Li(Pi,"name",{configurable:!0,get:function(){try{return Ti.call(this).match(Fi)[1]}catch(er){return""}}});var inheritIfRequired=function(er,tr,rr){var nr,ar;return Ja&&"function"==typeof(nr=tr.constructor)&&nr!==rr&&isObject(ar=nr.prototype)&&ar!==rr.prototype&&Ja(er,ar),er},Ui="\t\n\v\f\r \u2028\u2029\ufeff",Ii="["+Ui+"]",Ri=RegExp("^"+Ii+Ii+"*"),Mi=RegExp(Ii+Ii+"*$"),createMethod$3=function(er){return function(tr){var rr=String(requireObjectCoercible(tr));return 1&er&&(rr=rr.replace(Ri,"")),2&er&&(rr=rr.replace(Mi,"")),rr}},Qi={start:createMethod$3(1),end:createMethod$3(2),trim:createMethod$3(3)},Oi=Jr.f,Di=Ar.f,ji=gr.f,Hi=Qi.trim,Gi=tr.Number,Vi=Gi.prototype,zi="Number"==classofRaw(ya(Vi)),toNumber=function(er){var tr,rr,nr,ar,ir,or,sr,lr,cr=toPrimitive(er,!1);if("string"==typeof cr&&cr.length>2)if(43===(tr=(cr=Hi(cr)).charCodeAt(0))||45===tr){if(88===(rr=cr.charCodeAt(2))||120===rr)return NaN}else if(48===tr){switch(cr.charCodeAt(1)){case 66:case 98:nr=2,ar=49;break;case 79:case 111:nr=8,ar=55;break;default:return+cr}for(or=(ir=cr.slice(2)).length,sr=0;sr<or;sr++)if((lr=ir.charCodeAt(sr))<48||lr>ar)return NaN;return parseInt(ir,nr)}return+cr};if(Gn("Number",!Gi(" 0o1")||!Gi("0b1")||Gi("+0x1"))){for(var Ki,qi=function Number(er){var tr=arguments.length<1?0:er,rr=this;return rr instanceof qi&&(zi?fails((function(){Vi.valueOf.call(rr)})):"Number"!=classofRaw(rr))?inheritIfRequired(new Gi(toNumber(tr)),rr,qi):toNumber(tr)},Wi=rr?Oi(Gi):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Xi=0;Wi.length>Xi;Xi++)has(Gi,Ki=Wi[Xi])&&!has(qi,Ki)&&ji(qi,Ki,Di(Gi,Ki));qi.prototype=Vi,Vi.constructor=qi,Dr(tr,"Number",qi)}_export({target:"Number",stat:!0},{isNaN:function isNaN(er){return er!=er}});var Yi=Qi.trim,Ji=tr.parseFloat,$i=1/Ji(Ui+"-0")!=-1/0?function parseFloat(er){var tr=Yi(String(er)),rr=Ji(tr);return 0===rr&&"-"==tr.charAt(0)?-0:rr}:Ji;_export({target:"Number",stat:!0,forced:Number.parseFloat!=$i},{parseFloat:$i});var Zi=Qi.trim,eo=tr.parseInt,to=/^[+-]?0[Xx]/,ro=8!==eo(Ui+"08")||22!==eo(Ui+"0x16")?function parseInt(er,tr){var rr=Zi(String(er));return eo(rr,tr>>>0||(to.test(rr)?16:10))}:eo;_export({target:"Number",stat:!0,forced:Number.parseInt!=ro},{parseInt:ro});var no="".repeat||function repeat(er){var tr=String(requireObjectCoercible(this)),rr="",nr=toInteger(er);if(nr<0||nr==1/0)throw RangeError("Wrong number of repetitions");for(;nr>0;(nr>>>=1)&&(tr+=tr))1&nr&&(rr+=tr);return rr},ao=1..toFixed,io=Math.floor,pow=function(er,tr,rr){return 0===tr?rr:tr%2==1?pow(er,tr-1,rr*er):pow(er*er,tr/2,rr)},oo=ao&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!fails((function(){ao.call({})}));_export({target:"Number",proto:!0,forced:oo},{toFixed:function toFixed(er){var tr,rr,nr,ar,ir=function(er){if("number"!=typeof er&&"Number"!=classofRaw(er))throw TypeError("Incorrect invocation");return+er}(this),or=toInteger(er),sr=[0,0,0,0,0,0],lr="",cr="0",multiply=function(er,tr){for(var rr=-1,nr=tr;++rr<6;)nr+=er*sr[rr],sr[rr]=nr%1e7,nr=io(nr/1e7)},divide=function(er){for(var tr=6,rr=0;--tr>=0;)rr+=sr[tr],sr[tr]=io(rr/er),rr=rr%er*1e7},dataToString=function(){for(var er=6,tr="";--er>=0;)if(""!==tr||0===er||0!==sr[er]){var rr=String(sr[er]);tr=""===tr?rr:tr+no.call("0",7-rr.length)+rr}return tr};if(or<0||or>20)throw RangeError("Incorrect fraction digits");if(ir!=ir)return"NaN";if(ir<=-1e21||ir>=1e21)return String(ir);if(ir<0&&(lr="-",ir=-ir),ir>1e-21)if(rr=(tr=function(er){for(var tr=0,rr=er;rr>=4096;)tr+=12,rr/=4096;for(;rr>=2;)tr+=1,rr/=2;return tr}(ir*pow(2,69,1))-69)<0?ir*pow(2,-tr,1):ir/pow(2,tr,1),rr*=4503599627370496,(tr=52-tr)>0){for(multiply(0,rr),nr=or;nr>=7;)multiply(1e7,0),nr-=7;for(multiply(pow(10,nr,1),0),nr=tr-1;nr>=23;)divide(1<<23),nr-=23;divide(1<<nr),multiply(1,1),divide(2),cr=dataToString()}else multiply(0,rr),multiply(1<<-tr,0),cr=dataToString()+no.call("0",or);return cr=or>0?lr+((ar=cr.length)<=or?"0."+no.call("0",or-ar)+cr:cr.slice(0,ar-or)+"."+cr.slice(ar-or)):lr+cr}});var so=ir.f,createMethod$4=function(er){return function(tr){for(var nr,ar=toIndexedObject(tr),ir=ga(ar),or=ir.length,sr=0,lr=[];or>sr;)nr=ir[sr++],rr&&!so.call(ar,nr)||lr.push(er?[nr,ar[nr]]:ar[nr]);return lr}},lo={entries:createMethod$4(!0),values:createMethod$4(!1)},co=lo.entries;_export({target:"Object",stat:!0},{entries:function entries(er){return co(er)}});var uo=fails((function(){ga(1)}));_export({target:"Object",stat:!0,forced:uo},{keys:function keys(er){return ga(toObject(er))}});var ho={};ho[wellKnownSymbol("toStringTag")]="z";var po="[object z]"===String(ho),Ao=wellKnownSymbol("toStringTag"),fo="Arguments"==classofRaw(function(){return arguments}()),go=po?classofRaw:function(er){var tr,rr,nr;return void 0===er?"Undefined":null===er?"Null":"string"==typeof(rr=function(er,tr){try{return er[tr]}catch(er){}}(tr=Object(er),Ao))?rr:fo?classofRaw(tr):"Object"==(nr=classofRaw(tr))&&"function"==typeof tr.callee?"Arguments":nr},mo=po?{}.toString:function toString(){return"[object "+go(this)+"]"};po||Dr(Object.prototype,"toString",mo,{unsafe:!0});var _o=lo.values;_export({target:"Object",stat:!0},{values:function values(er){return _o(er)}});var vo=tr.Promise,redefineAll=function(er,tr,rr){for(var nr in tr)Dr(er,nr,tr[nr],rr);return er},yo=wellKnownSymbol("species"),setSpecies=function(er){var tr=getBuiltIn(er),nr=gr.f;rr&&tr&&!tr[yo]&&nr(tr,yo,{configurable:!0,get:function(){return this}})},anInstance=function(er,tr,rr){if(!(er instanceof tr))throw TypeError("Incorrect "+(rr?rr+" ":"")+"invocation");return er},bo=wellKnownSymbol("iterator"),wo=Array.prototype,isArrayIteratorMethod=function(er){return void 0!==er&&(Da.Array===er||wo[bo]===er)},ko=wellKnownSymbol("iterator"),getIteratorMethod=function(er){if(null!=er)return er[ko]||er["@@iterator"]||Da[go(er)]},callWithSafeIterationClosing=function(er,tr,rr,nr){try{return nr?tr(anObject(rr)[0],rr[1]):tr(rr)}catch(tr){var ar=er.return;throw void 0!==ar&&anObject(ar.call(er)),tr}},xo=createCommonjsModule((function(er){var Result=function(er,tr){this.stopped=er,this.result=tr};(er.exports=function(er,tr,rr,nr,ar){var ir,or,sr,lr,cr,ur,dr,hr=functionBindContext(tr,rr,nr?2:1);if(ar)ir=er;else{if("function"!=typeof(or=getIteratorMethod(er)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(or)){for(sr=0,lr=toLength(er.length);lr>sr;sr++)if((cr=nr?hr(anObject(dr=er[sr])[0],dr[1]):hr(er[sr]))&&cr instanceof Result)return cr;return new Result(!1)}ir=or.call(er)}for(ur=ir.next;!(dr=ur.call(ir)).done;)if("object"==typeof(cr=callWithSafeIterationClosing(ir,hr,dr.value,nr))&&cr&&cr instanceof Result)return cr;return new Result(!1)}).stop=function(er){return new Result(!0,er)}})),So=wellKnownSymbol("iterator"),Co=!1;try{var Bo=0,Eo={next:function(){return{done:!!Bo++}},return:function(){Co=!0}};Eo[So]=function(){return this},Array.from(Eo,(function(){throw 2}))}catch(er){}var No,Lo,Po,checkCorrectnessOfIteration=function(er,tr){if(!tr&&!Co)return!1;var rr=!1;try{var nr={};nr[So]=function(){return{next:function(){return{done:rr=!0}}}},er(nr)}catch(er){}return rr},To=wellKnownSymbol("species"),speciesConstructor=function(er,tr){var rr,nr=anObject(er).constructor;return void 0===nr||null==(rr=anObject(nr)[To])?tr:aFunction$1(rr)},Fo=/(iphone|ipod|ipad).*applewebkit/i.test(Zn),Uo=tr.location,Io=tr.setImmediate,Ro=tr.clearImmediate,Mo=tr.process,Qo=tr.MessageChannel,Oo=tr.Dispatch,Do=0,jo={},run=function(er){if(jo.hasOwnProperty(er)){var tr=jo[er];delete jo[er],tr()}},runner=function(er){return function(){run(er)}},listener=function(er){run(er.data)},post=function(er){tr.postMessage(er+"",Uo.protocol+"//"+Uo.host)};Io&&Ro||(Io=function setImmediate(er){for(var tr=[],rr=1;arguments.length>rr;)tr.push(arguments[rr++]);return jo[++Do]=function(){("function"==typeof er?er:Function(er)).apply(void 0,tr)},No(Do),Do},Ro=function clearImmediate(er){delete jo[er]},"process"==classofRaw(Mo)?No=function(er){Mo.nextTick(runner(er))}:Oo&&Oo.now?No=function(er){Oo.now(runner(er))}:Qo&&!Fo?(Po=(Lo=new Qo).port2,Lo.port1.onmessage=listener,No=functionBindContext(Po.postMessage,Po,1)):!tr.addEventListener||"function"!=typeof postMessage||tr.importScripts||fails(post)||"file:"===Uo.protocol?No="onreadystatechange"in documentCreateElement("script")?function(er){_a.appendChild(documentCreateElement("script")).onreadystatechange=function(){_a.removeChild(this),run(er)}}:function(er){setTimeout(runner(er),0)}:(No=post,tr.addEventListener("message",listener,!1)));var Ho,Go,Vo,zo,Ko,qo,Wo,Xo,Yo={set:Io,clear:Ro},Jo=Ar.f,$o=Yo.set,Zo=tr.MutationObserver||tr.WebKitMutationObserver,es=tr.process,ts=tr.Promise,rs="process"==classofRaw(es),ns=Jo(tr,"queueMicrotask"),as=ns&&ns.value;as||(Ho=function(){var er,tr;for(rs&&(er=es.domain)&&er.exit();Go;){tr=Go.fn,Go=Go.next;try{tr()}catch(er){throw Go?zo():Vo=void 0,er}}Vo=void 0,er&&er.enter()},rs?zo=function(){es.nextTick(Ho)}:Zo&&!Fo?(Ko=!0,qo=document.createTextNode(""),new Zo(Ho).observe(qo,{characterData:!0}),zo=function(){qo.data=Ko=!Ko}):ts&&ts.resolve?(Wo=ts.resolve(void 0),Xo=Wo.then,zo=function(){Xo.call(Wo,Ho)}):zo=function(){$o.call(tr,Ho)});var os,ss,ls,cs,us=as||function(er){var tr={fn:er,next:void 0};Vo&&(Vo.next=tr),Go||(Go=tr,zo()),Vo=tr},PromiseCapability=function(er){var tr,rr;this.promise=new er((function(er,nr){if(void 0!==tr||void 0!==rr)throw TypeError("Bad Promise constructor");tr=er,rr=nr})),this.resolve=aFunction$1(tr),this.reject=aFunction$1(rr)},ds={f:function(er){return new PromiseCapability(er)}},promiseResolve=function(er,tr){if(anObject(er),isObject(tr)&&tr.constructor===er)return tr;var rr=ds.f(er);return(0,rr.resolve)(tr),rr.promise},perform=function(er){try{return{error:!1,value:er()}}catch(er){return{error:!0,value:er}}},hs=Yo.set,ps=wellKnownSymbol("species"),As="Promise",fs=Or.get,gs=Or.set,ms=Or.getterFor(As),_s=vo,vs=tr.TypeError,ys=tr.document,bs=tr.process,ws=getBuiltIn("fetch"),ks=ds.f,xs=ks,Ss="process"==classofRaw(bs),Cs=!!(ys&&ys.createEvent&&tr.dispatchEvent),Bs=Gn(As,(function(){if(!(kr(_s)!==String(_s))){if(66===na)return!0;if(!Ss&&"function"!=typeof PromiseRejectionEvent)return!0}if(na>=51&&/native code/.test(_s))return!1;var er=_s.resolve(1),FakePromise=function(er){er((function(){}),(function(){}))};return(er.constructor={})[ps]=FakePromise,!(er.then((function(){}))instanceof FakePromise)})),Es=Bs||!checkCorrectnessOfIteration((function(er){_s.all(er).catch((function(){}))})),isThenable=function(er){var tr;return!(!isObject(er)||"function"!=typeof(tr=er.then))&&tr},notify$1=function(er,tr,rr){if(!tr.notified){tr.notified=!0;var nr=tr.reactions;us((function(){for(var ar=tr.value,ir=1==tr.state,or=0;nr.length>or;){var sr,lr,cr,ur=nr[or++],dr=ir?ur.ok:ur.fail,hr=ur.resolve,pr=ur.reject,Ar=ur.domain;try{dr?(ir||(2===tr.rejection&&onHandleUnhandled(er,tr),tr.rejection=1),!0===dr?sr=ar:(Ar&&Ar.enter(),sr=dr(ar),Ar&&(Ar.exit(),cr=!0)),sr===ur.promise?pr(vs("Promise-chain cycle")):(lr=isThenable(sr))?lr.call(sr,hr,pr):hr(sr)):pr(ar)}catch(er){Ar&&!cr&&Ar.exit(),pr(er)}}tr.reactions=[],tr.notified=!1,rr&&!tr.rejection&&onUnhandled(er,tr)}))}},dispatchEvent=function(er,rr,nr){var ar,ir;Cs?((ar=ys.createEvent("Event")).promise=rr,ar.reason=nr,ar.initEvent(er,!1,!0),tr.dispatchEvent(ar)):ar={promise:rr,reason:nr},(ir=tr["on"+er])?ir(ar):"unhandledrejection"===er&&function(er,rr){var nr=tr.console;nr&&nr.error&&(1===arguments.length?nr.error(er):nr.error(er,rr))}("Unhandled promise rejection",nr)},onUnhandled=function(er,rr){hs.call(tr,(function(){var tr,nr=rr.value;if(isUnhandled(rr)&&(tr=perform((function(){Ss?bs.emit("unhandledRejection",nr,er):dispatchEvent("unhandledrejection",er,nr)})),rr.rejection=Ss||isUnhandled(rr)?2:1,tr.error))throw tr.value}))},isUnhandled=function(er){return 1!==er.rejection&&!er.parent},onHandleUnhandled=function(er,rr){hs.call(tr,(function(){Ss?bs.emit("rejectionHandled",er):dispatchEvent("rejectionhandled",er,rr.value)}))},bind=function(er,tr,rr,nr){return function(ar){er(tr,rr,ar,nr)}},internalReject=function(er,tr,rr,nr){tr.done||(tr.done=!0,nr&&(tr=nr),tr.value=rr,tr.state=2,notify$1(er,tr,!0))},internalResolve=function(er,tr,rr,nr){if(!tr.done){tr.done=!0,nr&&(tr=nr);try{if(er===rr)throw vs("Promise can't be resolved itself");var ar=isThenable(rr);ar?us((function(){var nr={done:!1};try{ar.call(rr,bind(internalResolve,er,nr,tr),bind(internalReject,er,nr,tr))}catch(rr){internalReject(er,nr,rr,tr)}})):(tr.value=rr,tr.state=1,notify$1(er,tr,!1))}catch(rr){internalReject(er,{done:!1},rr,tr)}}};Bs&&(_s=function Promise(er){anInstance(this,_s,As),aFunction$1(er),os.call(this);var tr=fs(this);try{er(bind(internalResolve,this,tr),bind(internalReject,this,tr))}catch(er){internalReject(this,tr,er)}},(os=function Promise(er){gs(this,{type:As,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(_s.prototype,{then:function then(er,tr){var rr=ms(this),nr=ks(speciesConstructor(this,_s));return nr.ok="function"!=typeof er||er,nr.fail="function"==typeof tr&&tr,nr.domain=Ss?bs.domain:void 0,rr.parent=!0,rr.reactions.push(nr),0!=rr.state&¬ify$1(this,rr,!1),nr.promise},catch:function(er){return this.then(void 0,er)}}),ss=function(){var er=new os,tr=fs(er);this.promise=er,this.resolve=bind(internalResolve,er,tr),this.reject=bind(internalReject,er,tr)},ds.f=ks=function(er){return er===_s||er===ls?new ss(er):xs(er)},"function"==typeof vo&&(cs=vo.prototype.then,Dr(vo.prototype,"then",(function then(er,tr){var rr=this;return new _s((function(er,tr){cs.call(rr,er,tr)})).then(er,tr)}),{unsafe:!0}),"function"==typeof ws&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(er){return promiseResolve(_s,ws.apply(tr,arguments))}}))),_export({global:!0,wrap:!0,forced:Bs},{Promise:_s}),setToStringTag(_s,As,!1),setSpecies(As),ls=getBuiltIn(As),_export({target:As,stat:!0,forced:Bs},{reject:function reject(er){var tr=ks(this);return tr.reject.call(void 0,er),tr.promise}}),_export({target:As,stat:!0,forced:Bs},{resolve:function resolve(er){return promiseResolve(this,er)}}),_export({target:As,stat:!0,forced:Es},{all:function all(er){var tr=this,rr=ks(tr),nr=rr.resolve,ar=rr.reject,ir=perform((function(){var rr=aFunction$1(tr.resolve),ir=[],or=0,sr=1;xo(er,(function(er){var lr=or++,cr=!1;ir.push(void 0),sr++,rr.call(tr,er).then((function(er){cr||(cr=!0,ir[lr]=er,--sr||nr(ir))}),ar)})),--sr||nr(ir)}));return ir.error&&ar(ir.value),rr.promise},race:function race(er){var tr=this,rr=ks(tr),nr=rr.reject,ar=perform((function(){var ar=aFunction$1(tr.resolve);xo(er,(function(er){ar.call(tr,er).then(rr.resolve,nr)}))}));return ar.error&&nr(ar.value),rr.promise}});var Ns=wellKnownSymbol("match"),isRegexp=function(er){var tr;return isObject(er)&&(void 0!==(tr=er[Ns])?!!tr:"RegExp"==classofRaw(er))},regexpFlags=function(){var er=anObject(this),tr="";return er.global&&(tr+="g"),er.ignoreCase&&(tr+="i"),er.multiline&&(tr+="m"),er.dotAll&&(tr+="s"),er.unicode&&(tr+="u"),er.sticky&&(tr+="y"),tr};function RE(er,tr){return RegExp(er,tr)}var Ls={UNSUPPORTED_Y:fails((function(){var er=RE("a","y");return er.lastIndex=2,null!=er.exec("abcd")})),BROKEN_CARET:fails((function(){var er=RE("^r","gy");return er.lastIndex=2,null!=er.exec("str")}))},Ps=gr.f,Ts=Jr.f,Fs=Or.set,Us=wellKnownSymbol("match"),Is=tr.RegExp,Rs=Is.prototype,Ms=/a/g,Qs=/a/g,Os=new Is(Ms)!==Ms,Ds=Ls.UNSUPPORTED_Y;if(rr&&Gn("RegExp",!Os||Ds||fails((function(){return Qs[Us]=!1,Is(Ms)!=Ms||Is(Qs)==Qs||"/a/i"!=Is(Ms,"i")})))){for(var js=function RegExp(er,tr){var rr,nr=this instanceof js,ar=isRegexp(er),ir=void 0===tr;if(!nr&&ar&&er.constructor===js&&ir)return er;Os?ar&&!ir&&(er=er.source):er instanceof js&&(ir&&(tr=regexpFlags.call(er)),er=er.source),Ds&&(rr=!!tr&&tr.indexOf("y")>-1)&&(tr=tr.replace(/y/g,""));var or=inheritIfRequired(Os?new Is(er,tr):Is(er,tr),nr?this:Rs,js);return Ds&&rr&&Fs(or,{sticky:rr}),or},proxy=function(er){er in js||Ps(js,er,{configurable:!0,get:function(){return Is[er]},set:function(tr){Is[er]=tr}})},Hs=Ts(Is),Gs=0;Hs.length>Gs;)proxy(Hs[Gs++]);Rs.constructor=js,js.prototype=Rs,Dr(tr,"RegExp",js)}setSpecies("RegExp");var Vs=RegExp.prototype.exec,zs=String.prototype.replace,Ks=Vs,qs=function(){var er=/a/,tr=/b*/g;return Vs.call(er,"a"),Vs.call(tr,"a"),0!==er.lastIndex||0!==tr.lastIndex}(),Ws=Ls.UNSUPPORTED_Y||Ls.BROKEN_CARET,Xs=void 0!==/()??/.exec("")[1];(qs||Xs||Ws)&&(Ks=function exec(er){var tr,rr,nr,ar,ir=this,or=Ws&&ir.sticky,sr=regexpFlags.call(ir),lr=ir.source,cr=0,ur=er;return or&&(-1===(sr=sr.replace("y","")).indexOf("g")&&(sr+="g"),ur=String(er).slice(ir.lastIndex),ir.lastIndex>0&&(!ir.multiline||ir.multiline&&"\n"!==er[ir.lastIndex-1])&&(lr="(?: "+lr+")",ur=" "+ur,cr++),rr=new RegExp("^(?:"+lr+")",sr)),Xs&&(rr=new RegExp("^"+lr+"$(?!\\s)",sr)),qs&&(tr=ir.lastIndex),nr=Vs.call(or?rr:ir,ur),or?nr?(nr.input=nr.input.slice(cr),nr[0]=nr[0].slice(cr),nr.index=ir.lastIndex,ir.lastIndex+=nr[0].length):ir.lastIndex=0:qs&&nr&&(ir.lastIndex=ir.global?nr.index+nr[0].length:tr),Xs&&nr&&nr.length>1&&zs.call(nr[0],rr,(function(){for(ar=1;ar<arguments.length-2;ar++)void 0===arguments[ar]&&(nr[ar]=void 0)})),nr});var Ys=Ks;_export({target:"RegExp",proto:!0,forced:/./.exec!==Ys},{exec:Ys});var Js=RegExp.prototype,$s=Js.toString,Zs=fails((function(){return"/a/b"!=$s.call({source:"a",flags:"b"})})),el="toString"!=$s.name;(Zs||el)&&Dr(RegExp.prototype,"toString",(function toString(){var er=anObject(this),tr=String(er.source),rr=er.flags;return"/"+tr+"/"+String(void 0===rr&&er instanceof RegExp&&!("flags"in Js)?regexpFlags.call(er):rr)}),{unsafe:!0});var notARegexp=function(er){if(isRegexp(er))throw TypeError("The method doesn't accept regular expressions");return er},tl=wellKnownSymbol("match"),correctIsRegexpLogic=function(er){var tr=/./;try{"/./"[er](tr)}catch(rr){try{return tr[tl]=!1,"/./"[er](tr)}catch(er){}}return!1};_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function includes(er){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(er),arguments.length>1?arguments[1]:void 0)}});var createMethod$5=function(er){return function(tr,rr){var nr,ar,ir=String(requireObjectCoercible(tr)),or=toInteger(rr),sr=ir.length;return or<0||or>=sr?er?"":void 0:(nr=ir.charCodeAt(or))<55296||nr>56319||or+1===sr||(ar=ir.charCodeAt(or+1))<56320||ar>57343?er?ir.charAt(or):nr:er?ir.slice(or,or+2):ar-56320+(nr-55296<<10)+65536}},rl={codeAt:createMethod$5(!1),charAt:createMethod$5(!0)},nl=rl.charAt,al=Or.set,il=Or.getterFor("String Iterator");defineIterator(String,"String",(function(er){al(this,{type:"String Iterator",string:String(er),index:0})}),(function next(){var er,tr=il(this),rr=tr.string,nr=tr.index;return nr>=rr.length?{value:void 0,done:!0}:(er=nl(rr,nr),tr.index+=er.length,{value:er,done:!1})}));var ol=wellKnownSymbol("species"),sl=!fails((function(){var er=/./;return er.exec=function(){var er=[];return er.groups={a:"7"},er},"7"!=="".replace(er,"$<a>")})),ll="$0"==="a".replace(/./,"$0"),cl=wellKnownSymbol("replace"),ul=!!/./[cl]&&""===/./[cl]("a","$0"),dl=!fails((function(){var er=/(?:)/,tr=er.exec;er.exec=function(){return tr.apply(this,arguments)};var rr="ab".split(er);return 2!==rr.length||"a"!==rr[0]||"b"!==rr[1]})),fixRegexpWellKnownSymbolLogic=function(er,tr,rr,nr){var ar=wellKnownSymbol(er),ir=!fails((function(){var tr={};return tr[ar]=function(){return 7},7!=""[er](tr)})),or=ir&&!fails((function(){var tr=!1,rr=/a/;return"split"===er&&((rr={}).constructor={},rr.constructor[ol]=function(){return rr},rr.flags="",rr[ar]=/./[ar]),rr.exec=function(){return tr=!0,null},rr[ar](""),!tr}));if(!ir||!or||"replace"===er&&(!sl||!ll||ul)||"split"===er&&!dl){var sr=/./[ar],lr=rr(ar,""[er],(function(er,tr,rr,nr,ar){return tr.exec===Ys?ir&&!ar?{done:!0,value:sr.call(tr,rr,nr)}:{done:!0,value:er.call(rr,tr,nr)}:{done:!1}}),{REPLACE_KEEPS_$0:ll,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ul}),cr=lr[0],ur=lr[1];Dr(String.prototype,er,cr),Dr(RegExp.prototype,ar,2==tr?function(er,tr){return ur.call(er,this,tr)}:function(er){return ur.call(er,this)})}nr&&mr(RegExp.prototype[ar],"sham",!0)},hl=rl.charAt,advanceStringIndex=function(er,tr,rr){return tr+(rr?hl(er,tr).length:1)},regexpExecAbstract=function(er,tr){var rr=er.exec;if("function"==typeof rr){var nr=rr.call(er,tr);if("object"!=typeof nr)throw TypeError("RegExp exec method returned something other than an Object or null");return nr}if("RegExp"!==classofRaw(er))throw TypeError("RegExp#exec called on incompatible receiver");return Ys.call(er,tr)};fixRegexpWellKnownSymbolLogic("match",1,(function(er,tr,rr){return[function match(tr){var rr=requireObjectCoercible(this),nr=null==tr?void 0:tr[er];return void 0!==nr?nr.call(tr,rr):new RegExp(tr)[er](String(rr))},function(er){var nr=rr(tr,er,this);if(nr.done)return nr.value;var ar=anObject(er),ir=String(this);if(!ar.global)return regexpExecAbstract(ar,ir);var or=ar.unicode;ar.lastIndex=0;for(var sr,lr=[],cr=0;null!==(sr=regexpExecAbstract(ar,ir));){var ur=String(sr[0]);lr[cr]=ur,""===ur&&(ar.lastIndex=advanceStringIndex(ir,toLength(ar.lastIndex),or)),cr++}return 0===cr?null:lr}]}));var pl=Math.max,Al=Math.min,fl=Math.floor,gl=/\$([$&'`]|\d\d?|<[^>]*>)/g,ml=/\$([$&'`]|\d\d?)/g,maybeToString=function(er){return void 0===er?er:String(er)};fixRegexpWellKnownSymbolLogic("replace",2,(function(er,tr,rr,nr){var ar=nr.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,ir=nr.REPLACE_KEEPS_$0,or=ar?"$":"$0";return[function replace(rr,nr){var ar=requireObjectCoercible(this),ir=null==rr?void 0:rr[er];return void 0!==ir?ir.call(rr,ar,nr):tr.call(String(ar),rr,nr)},function(er,nr){if(!ar&&ir||"string"==typeof nr&&-1===nr.indexOf(or)){var sr=rr(tr,er,this,nr);if(sr.done)return sr.value}var lr=anObject(er),cr=String(this),ur="function"==typeof nr;ur||(nr=String(nr));var dr=lr.global;if(dr){var hr=lr.unicode;lr.lastIndex=0}for(var pr=[];;){var Ar=regexpExecAbstract(lr,cr);if(null===Ar)break;if(pr.push(Ar),!dr)break;""===String(Ar[0])&&(lr.lastIndex=advanceStringIndex(cr,toLength(lr.lastIndex),hr))}for(var fr="",gr=0,mr=0;mr<pr.length;mr++){Ar=pr[mr];for(var _r=String(Ar[0]),vr=pl(Al(toInteger(Ar.index),cr.length),0),yr=[],br=1;br<Ar.length;br++)yr.push(maybeToString(Ar[br]));var wr=Ar.groups;if(ur){var kr=[_r].concat(yr,vr,cr);void 0!==wr&&kr.push(wr);var xr=String(nr.apply(void 0,kr))}else xr=getSubstitution(_r,cr,vr,yr,wr,nr);vr>=gr&&(fr+=cr.slice(gr,vr)+xr,gr=vr+_r.length)}return fr+cr.slice(gr)}];function getSubstitution(er,rr,nr,ar,ir,or){var sr=nr+er.length,lr=ar.length,cr=ml;return void 0!==ir&&(ir=toObject(ir),cr=gl),tr.call(or,cr,(function(tr,or){var cr;switch(or.charAt(0)){case"$":return"$";case"&":return er;case"`":return rr.slice(0,nr);case"'":return rr.slice(sr);case"<":cr=ir[or.slice(1,-1)];break;default:var ur=+or;if(0===ur)return tr;if(ur>lr){var dr=fl(ur/10);return 0===dr?tr:dr<=lr?void 0===ar[dr-1]?or.charAt(1):ar[dr-1]+or.charAt(1):tr}cr=ar[ur-1]}return void 0===cr?"":cr}))}}));var _l=Object.is||function is(er,tr){return er===tr?0!==er||1/er==1/tr:er!=er&&tr!=tr};fixRegexpWellKnownSymbolLogic("search",1,(function(er,tr,rr){return[function search(tr){var rr=requireObjectCoercible(this),nr=null==tr?void 0:tr[er];return void 0!==nr?nr.call(tr,rr):new RegExp(tr)[er](String(rr))},function(er){var nr=rr(tr,er,this);if(nr.done)return nr.value;var ar=anObject(er),ir=String(this),or=ar.lastIndex;_l(or,0)||(ar.lastIndex=0);var sr=regexpExecAbstract(ar,ir);return _l(ar.lastIndex,or)||(ar.lastIndex=or),null===sr?-1:sr.index}]}));var vl=[].push,yl=Math.min,bl=!fails((function(){return!RegExp(4294967295,"y")}));fixRegexpWellKnownSymbolLogic("split",2,(function(er,tr,rr){var nr;return nr="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(er,rr){var nr=String(requireObjectCoercible(this)),ar=void 0===rr?4294967295:rr>>>0;if(0===ar)return[];if(void 0===er)return[nr];if(!isRegexp(er))return tr.call(nr,er,ar);for(var ir,or,sr,lr=[],cr=(er.ignoreCase?"i":"")+(er.multiline?"m":"")+(er.unicode?"u":"")+(er.sticky?"y":""),ur=0,dr=new RegExp(er.source,cr+"g");(ir=Ys.call(dr,nr))&&!((or=dr.lastIndex)>ur&&(lr.push(nr.slice(ur,ir.index)),ir.length>1&&ir.index<nr.length&&vl.apply(lr,ir.slice(1)),sr=ir[0].length,ur=or,lr.length>=ar));)dr.lastIndex===ir.index&&dr.lastIndex++;return ur===nr.length?!sr&&dr.test("")||lr.push(""):lr.push(nr.slice(ur)),lr.length>ar?lr.slice(0,ar):lr}:"0".split(void 0,0).length?function(er,rr){return void 0===er&&0===rr?[]:tr.call(this,er,rr)}:tr,[function split(tr,rr){var ar=requireObjectCoercible(this),ir=null==tr?void 0:tr[er];return void 0!==ir?ir.call(tr,ar,rr):nr.call(String(ar),tr,rr)},function(er,ar){var ir=rr(nr,er,this,ar,nr!==tr);if(ir.done)return ir.value;var or=anObject(er),sr=String(this),lr=speciesConstructor(or,RegExp),cr=or.unicode,ur=(or.ignoreCase?"i":"")+(or.multiline?"m":"")+(or.unicode?"u":"")+(bl?"y":"g"),dr=new lr(bl?or:"^(?:"+or.source+")",ur),hr=void 0===ar?4294967295:ar>>>0;if(0===hr)return[];if(0===sr.length)return null===regexpExecAbstract(dr,sr)?[sr]:[];for(var pr=0,Ar=0,fr=[];Ar<sr.length;){dr.lastIndex=bl?Ar:0;var gr,mr=regexpExecAbstract(dr,bl?sr:sr.slice(Ar));if(null===mr||(gr=yl(toLength(dr.lastIndex+(bl?0:Ar)),sr.length))===pr)Ar=advanceStringIndex(sr,Ar,cr);else{if(fr.push(sr.slice(pr,Ar)),fr.length===hr)return fr;for(var _r=1;_r<=mr.length-1;_r++)if(fr.push(mr[_r]),fr.length===hr)return fr;Ar=pr=gr}}return fr.push(sr.slice(pr)),fr}]}),!bl);var wl,kl=Ar.f,xl="".startsWith,Sl=Math.min,Cl=correctIsRegexpLogic("startsWith"),Bl=!(Cl||(wl=kl(String.prototype,"startsWith"),!wl||wl.writable));_export({target:"String",proto:!0,forced:!Bl&&!Cl},{startsWith:function startsWith(er){var tr=String(requireObjectCoercible(this));notARegexp(er);var rr=toLength(Sl(arguments.length>1?arguments[1]:void 0,tr.length)),nr=String(er);return xl?xl.call(tr,nr,rr):tr.slice(rr,rr+nr.length)===nr}});var El={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};for(var Nl in El){var Ll=tr[Nl],Pl=Ll&&Ll.prototype;if(Pl&&Pl.forEach!==Na)try{mr(Pl,"forEach",Na)}catch(er){Pl.forEach=Na}}var Tl=wellKnownSymbol("iterator"),Fl=wellKnownSymbol("toStringTag"),Ul=ni.values;for(var Il in El){var Rl=tr[Il],Ml=Rl&&Rl.prototype;if(Ml){if(Ml[Tl]!==Ul)try{mr(Ml,Tl,Ul)}catch(er){Ml[Tl]=Ul}if(Ml[Fl]||mr(Ml,Fl,Il),El[Il])for(var Ql in ni)if(Ml[Ql]!==ni[Ql])try{mr(Ml,Ql,ni[Ql])}catch(er){Ml[Ql]=ni[Ql]}}}var Ol=wellKnownSymbol("iterator"),Dl=!fails((function(){var er=new URL("b?a=1&b=2&c=3","http://a"),tr=er.searchParams,rr="";return er.pathname="c%20d",tr.forEach((function(er,nr){tr.delete("b"),rr+=nr+er})),!tr.sort||"http://a/c%20d?a=1&c=3"!==er.href||"3"!==tr.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!tr[Ol]||"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"!==rr||"x"!==new URL("http://x",void 0).host})),jl=Object.assign,Hl=Object.defineProperty,Gl=!jl||fails((function(){if(rr&&1!==jl({b:1},jl(Hl({},"a",{enumerable:!0,get:function(){Hl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var er={},tr={},nr=Symbol(),ar="abcdefghijklmnopqrst";return er[nr]=7,ar.split("").forEach((function(er){tr[er]=er})),7!=jl({},er)[nr]||ga(jl({},tr)).join("")!=ar}))?function assign(er,tr){for(var nr=toObject(er),ar=arguments.length,or=1,sr=$r.f,cr=ir.f;ar>or;)for(var ur,dr=lr(arguments[or++]),hr=sr?ga(dr).concat(sr(dr)):ga(dr),pr=hr.length,Ar=0;pr>Ar;)ur=hr[Ar++],rr&&!cr.call(dr,ur)||(nr[ur]=dr[ur]);return nr}:jl,Vl=function from(er){var tr,rr,nr,ar,ir,or,sr=toObject(er),lr="function"==typeof this?this:Array,cr=arguments.length,ur=cr>1?arguments[1]:void 0,dr=void 0!==ur,hr=getIteratorMethod(sr),pr=0;if(dr&&(ur=functionBindContext(ur,cr>2?arguments[2]:void 0,2)),null==hr||lr==Array&&isArrayIteratorMethod(hr))for(rr=new lr(tr=toLength(sr.length));tr>pr;pr++)or=dr?ur(sr[pr],pr):sr[pr],createProperty(rr,pr,or);else for(ir=(ar=hr.call(sr)).next,rr=new lr;!(nr=ir.call(ar)).done;pr++)or=dr?callWithSafeIterationClosing(ar,ur,[nr.value,pr],!0):nr.value,createProperty(rr,pr,or);return rr.length=pr,rr},zl=/[^\0-\u007E]/,Kl=/[.\u3002\uFF0E\uFF61]/g,ql="Overflow: input needs wider integers to process",Wl=Math.floor,Xl=String.fromCharCode,digitToBasic=function(er){return er+22+75*(er<26)},adapt=function(er,tr,rr){var nr=0;for(er=rr?Wl(er/700):er>>1,er+=Wl(er/tr);er>455;nr+=36)er=Wl(er/35);return Wl(nr+36*er/(er+38))},encode=function(er){var tr,rr,nr=[],ar=(er=function(er){for(var tr=[],rr=0,nr=er.length;rr<nr;){var ar=er.charCodeAt(rr++);if(ar>=55296&&ar<=56319&&rr<nr){var ir=er.charCodeAt(rr++);56320==(64512&ir)?tr.push(((1023&ar)<<10)+(1023&ir)+65536):(tr.push(ar),rr--)}else tr.push(ar)}return tr}(er)).length,ir=128,or=0,sr=72;for(tr=0;tr<er.length;tr++)(rr=er[tr])<128&&nr.push(Xl(rr));var lr=nr.length,cr=lr;for(lr&&nr.push("-");cr<ar;){var ur=2147483647;for(tr=0;tr<er.length;tr++)(rr=er[tr])>=ir&&rr<ur&&(ur=rr);var dr=cr+1;if(ur-ir>Wl((2147483647-or)/dr))throw RangeError(ql);for(or+=(ur-ir)*dr,ir=ur,tr=0;tr<er.length;tr++){if((rr=er[tr])<ir&&++or>2147483647)throw RangeError(ql);if(rr==ir){for(var hr=or,pr=36;;pr+=36){var Ar=pr<=sr?1:pr>=sr+26?26:pr-sr;if(hr<Ar)break;var fr=hr-Ar,gr=36-Ar;nr.push(Xl(digitToBasic(Ar+fr%gr))),hr=Wl(fr/gr)}nr.push(Xl(digitToBasic(hr))),sr=adapt(or,dr,cr==lr),or=0,++cr}}++or,++ir}return nr.join("")},getIterator=function(er){var tr=getIteratorMethod(er);if("function"!=typeof tr)throw TypeError(String(er)+" is not iterable");return anObject(tr.call(er))},Yl=getBuiltIn("fetch"),Jl=getBuiltIn("Headers"),$l=wellKnownSymbol("iterator"),Zl=Or.set,ec=Or.getterFor("URLSearchParams"),tc=Or.getterFor("URLSearchParamsIterator"),rc=/\+/g,nc=Array(4),percentSequence=function(er){return nc[er-1]||(nc[er-1]=RegExp("((?:%[\\da-f]{2}){"+er+"})","gi"))},percentDecode=function(er){try{return decodeURIComponent(er)}catch(tr){return er}},deserialize=function(er){var tr=er.replace(rc," "),rr=4;try{return decodeURIComponent(tr)}catch(er){for(;rr;)tr=tr.replace(percentSequence(rr--),percentDecode);return tr}},ac=/[!'()~]|%20/g,ic={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(er){return ic[er]},serialize=function(er){return encodeURIComponent(er).replace(ac,replacer)},parseSearchParams=function(er,tr){if(tr)for(var rr,nr,ar=tr.split("&"),ir=0;ir<ar.length;)(rr=ar[ir++]).length&&(nr=rr.split("="),er.push({key:deserialize(nr.shift()),value:deserialize(nr.join("="))}))},updateSearchParams=function(er){this.entries.length=0,parseSearchParams(this.entries,er)},validateArgumentsLength=function(er,tr){if(er<tr)throw TypeError("Not enough arguments")},oc=createIteratorConstructor((function Iterator(er,tr){Zl(this,{type:"URLSearchParamsIterator",iterator:getIterator(ec(er).entries),kind:tr})}),"Iterator",(function next(){var er=tc(this),tr=er.kind,rr=er.iterator.next(),nr=rr.value;return rr.done||(rr.value="keys"===tr?nr.key:"values"===tr?nr.value:[nr.key,nr.value]),rr})),sc=function URLSearchParams(){anInstance(this,sc,"URLSearchParams");var er,tr,rr,nr,ar,ir,or,sr,lr,cr=arguments.length>0?arguments[0]:void 0,ur=this,dr=[];if(Zl(ur,{type:"URLSearchParams",entries:dr,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==cr)if(isObject(cr))if("function"==typeof(er=getIteratorMethod(cr)))for(rr=(tr=er.call(cr)).next;!(nr=rr.call(tr)).done;){if((or=(ir=(ar=getIterator(anObject(nr.value))).next).call(ar)).done||(sr=ir.call(ar)).done||!ir.call(ar).done)throw TypeError("Expected sequence with length 2");dr.push({key:or.value+"",value:sr.value+""})}else for(lr in cr)has(cr,lr)&&dr.push({key:lr,value:cr[lr]+""});else parseSearchParams(dr,"string"==typeof cr?"?"===cr.charAt(0)?cr.slice(1):cr:cr+"")},lc=sc.prototype;redefineAll(lc,{append:function append(er,tr){validateArgumentsLength(arguments.length,2);var rr=ec(this);rr.entries.push({key:er+"",value:tr+""}),rr.updateURL()},delete:function(er){validateArgumentsLength(arguments.length,1);for(var tr=ec(this),rr=tr.entries,nr=er+"",ar=0;ar<rr.length;)rr[ar].key===nr?rr.splice(ar,1):ar++;tr.updateURL()},get:function get(er){validateArgumentsLength(arguments.length,1);for(var tr=ec(this).entries,rr=er+"",nr=0;nr<tr.length;nr++)if(tr[nr].key===rr)return tr[nr].value;return null},getAll:function getAll(er){validateArgumentsLength(arguments.length,1);for(var tr=ec(this).entries,rr=er+"",nr=[],ar=0;ar<tr.length;ar++)tr[ar].key===rr&&nr.push(tr[ar].value);return nr},has:function has(er){validateArgumentsLength(arguments.length,1);for(var tr=ec(this).entries,rr=er+"",nr=0;nr<tr.length;)if(tr[nr++].key===rr)return!0;return!1},set:function set(er,tr){validateArgumentsLength(arguments.length,1);for(var rr,nr=ec(this),ar=nr.entries,ir=!1,or=er+"",sr=tr+"",lr=0;lr<ar.length;lr++)(rr=ar[lr]).key===or&&(ir?ar.splice(lr--,1):(ir=!0,rr.value=sr));ir||ar.push({key:or,value:sr}),nr.updateURL()},sort:function sort(){var er,tr,rr,nr=ec(this),ar=nr.entries,ir=ar.slice();for(ar.length=0,rr=0;rr<ir.length;rr++){for(er=ir[rr],tr=0;tr<rr;tr++)if(ar[tr].key>er.key){ar.splice(tr,0,er);break}tr===rr&&ar.push(er)}nr.updateURL()},forEach:function forEach(er){for(var tr,rr=ec(this).entries,nr=functionBindContext(er,arguments.length>1?arguments[1]:void 0,3),ar=0;ar<rr.length;)nr((tr=rr[ar++]).value,tr.key,this)},keys:function keys(){return new oc(this,"keys")},values:function values(){return new oc(this,"values")},entries:function entries(){return new oc(this,"entries")}},{enumerable:!0}),Dr(lc,$l,lc.entries),Dr(lc,"toString",(function toString(){for(var er,tr=ec(this).entries,rr=[],nr=0;nr<tr.length;)er=tr[nr++],rr.push(serialize(er.key)+"="+serialize(er.value));return rr.join("&")}),{enumerable:!0}),setToStringTag(sc,"URLSearchParams"),_export({global:!0,forced:!Dl},{URLSearchParams:sc}),Dl||"function"!=typeof Yl||"function"!=typeof Jl||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(er){var tr,rr,nr,ar=[er];return arguments.length>1&&(isObject(tr=arguments[1])&&(rr=tr.body,"URLSearchParams"===go(rr)&&((nr=tr.headers?new Jl(tr.headers):new Jl).has("content-type")||nr.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),tr=ya(tr,{body:createPropertyDescriptor(0,String(rr)),headers:createPropertyDescriptor(0,nr)}))),ar.push(tr)),Yl.apply(this,ar)}});var cc,uc={URLSearchParams:sc,getState:ec},dc=rl.codeAt,hc=tr.URL,pc=uc.URLSearchParams,Ac=uc.getState,fc=Or.set,gc=Or.getterFor("URL"),mc=Math.floor,_c=Math.pow,vc=/[A-Za-z]/,yc=/[\d+-.A-Za-z]/,bc=/\d/,wc=/^(0x|0X)/,kc=/^[0-7]+$/,xc=/^\d+$/,Sc=/^[\dA-Fa-f]+$/,Cc=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Bc=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Ec=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Nc=/[\u0009\u000A\u000D]/g,parseHost=function(er,tr){var rr,nr,ar;if("["==tr.charAt(0)){if("]"!=tr.charAt(tr.length-1))return"Invalid host";if(!(rr=parseIPv6(tr.slice(1,-1))))return"Invalid host";er.host=rr}else if(isSpecial(er)){if(tr=function(er){var tr,rr,nr=[],ar=er.toLowerCase().replace(Kl,".").split(".");for(tr=0;tr<ar.length;tr++)rr=ar[tr],nr.push(zl.test(rr)?"xn--"+encode(rr):rr);return nr.join(".")}(tr),Cc.test(tr))return"Invalid host";if(null===(rr=parseIPv4(tr)))return"Invalid host";er.host=rr}else{if(Bc.test(tr))return"Invalid host";for(rr="",nr=Vl(tr),ar=0;ar<nr.length;ar++)rr+=percentEncode(nr[ar],Lc);er.host=rr}},parseIPv4=function(er){var tr,rr,nr,ar,ir,or,sr,lr=er.split(".");if(lr.length&&""==lr[lr.length-1]&&lr.pop(),(tr=lr.length)>4)return er;for(rr=[],nr=0;nr<tr;nr++){if(""==(ar=lr[nr]))return er;if(ir=10,ar.length>1&&"0"==ar.charAt(0)&&(ir=wc.test(ar)?16:8,ar=ar.slice(8==ir?1:2)),""===ar)or=0;else{if(!(10==ir?xc:8==ir?kc:Sc).test(ar))return er;or=parseInt(ar,ir)}rr.push(or)}for(nr=0;nr<tr;nr++)if(or=rr[nr],nr==tr-1){if(or>=_c(256,5-tr))return null}else if(or>255)return null;for(sr=rr.pop(),nr=0;nr<rr.length;nr++)sr+=rr[nr]*_c(256,3-nr);return sr},parseIPv6=function(er){var tr,rr,nr,ar,ir,or,sr,lr=[0,0,0,0,0,0,0,0],cr=0,ur=null,dr=0,char=function(){return er.charAt(dr)};if(":"==char()){if(":"!=er.charAt(1))return;dr+=2,ur=++cr}for(;char();){if(8==cr)return;if(":"!=char()){for(tr=rr=0;rr<4&&Sc.test(char());)tr=16*tr+parseInt(char(),16),dr++,rr++;if("."==char()){if(0==rr)return;if(dr-=rr,cr>6)return;for(nr=0;char();){if(ar=null,nr>0){if(!("."==char()&&nr<4))return;dr++}if(!bc.test(char()))return;for(;bc.test(char());){if(ir=parseInt(char(),10),null===ar)ar=ir;else{if(0==ar)return;ar=10*ar+ir}if(ar>255)return;dr++}lr[cr]=256*lr[cr]+ar,2!=++nr&&4!=nr||cr++}if(4!=nr)return;break}if(":"==char()){if(dr++,!char())return}else if(char())return;lr[cr++]=tr}else{if(null!==ur)return;dr++,ur=++cr}}if(null!==ur)for(or=cr-ur,cr=7;0!=cr&&or>0;)sr=lr[cr],lr[cr--]=lr[ur+or-1],lr[ur+--or]=sr;else if(8!=cr)return;return lr},serializeHost=function(er){var tr,rr,nr,ar;if("number"==typeof er){for(tr=[],rr=0;rr<4;rr++)tr.unshift(er%256),er=mc(er/256);return tr.join(".")}if("object"==typeof er){for(tr="",nr=function(er){for(var tr=null,rr=1,nr=null,ar=0,ir=0;ir<8;ir++)0!==er[ir]?(ar>rr&&(tr=nr,rr=ar),nr=null,ar=0):(null===nr&&(nr=ir),++ar);return ar>rr&&(tr=nr,rr=ar),tr}(er),rr=0;rr<8;rr++)ar&&0===er[rr]||(ar&&(ar=!1),nr===rr?(tr+=rr?":":"::",ar=!0):(tr+=er[rr].toString(16),rr<7&&(tr+=":")));return"["+tr+"]"}return er},Lc={},Pc=Gl({},Lc,{" ":1,'"':1,"<":1,">":1,"`":1}),Tc=Gl({},Pc,{"#":1,"?":1,"{":1,"}":1}),Fc=Gl({},Tc,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(er,tr){var rr=dc(er,0);return rr>32&&rr<127&&!has(tr,er)?er:encodeURIComponent(er)},Uc={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(er){return has(Uc,er.scheme)},includesCredentials=function(er){return""!=er.username||""!=er.password},cannotHaveUsernamePasswordPort=function(er){return!er.host||er.cannotBeABaseURL||"file"==er.scheme},isWindowsDriveLetter=function(er,tr){var rr;return 2==er.length&&vc.test(er.charAt(0))&&(":"==(rr=er.charAt(1))||!tr&&"|"==rr)},startsWithWindowsDriveLetter=function(er){var tr;return er.length>1&&isWindowsDriveLetter(er.slice(0,2))&&(2==er.length||"/"===(tr=er.charAt(2))||"\\"===tr||"?"===tr||"#"===tr)},shortenURLsPath=function(er){var tr=er.path,rr=tr.length;!rr||"file"==er.scheme&&1==rr&&isWindowsDriveLetter(tr[0],!0)||tr.pop()},isSingleDot=function(er){return"."===er||"%2e"===er.toLowerCase()},Ic={},Rc={},Mc={},Qc={},Oc={},Dc={},jc={},Hc={},Gc={},Vc={},zc={},Kc={},qc={},Wc={},Xc={},Yc={},Jc={},$c={},Zc={},eu={},tu={},parseURL=function(er,tr,rr,nr){var ar,ir,or,sr,lr,cr=rr||Ic,ur=0,dr="",hr=!1,pr=!1,Ar=!1;for(rr||(er.scheme="",er.username="",er.password="",er.host=null,er.port=null,er.path=[],er.query=null,er.fragment=null,er.cannotBeABaseURL=!1,tr=tr.replace(Ec,"")),tr=tr.replace(Nc,""),ar=Vl(tr);ur<=ar.length;){switch(ir=ar[ur],cr){case Ic:if(!ir||!vc.test(ir)){if(rr)return"Invalid scheme";cr=Mc;continue}dr+=ir.toLowerCase(),cr=Rc;break;case Rc:if(ir&&(yc.test(ir)||"+"==ir||"-"==ir||"."==ir))dr+=ir.toLowerCase();else{if(":"!=ir){if(rr)return"Invalid scheme";dr="",cr=Mc,ur=0;continue}if(rr&&(isSpecial(er)!=has(Uc,dr)||"file"==dr&&(includesCredentials(er)||null!==er.port)||"file"==er.scheme&&!er.host))return;if(er.scheme=dr,rr)return void(isSpecial(er)&&Uc[er.scheme]==er.port&&(er.port=null));dr="","file"==er.scheme?cr=Wc:isSpecial(er)&&nr&&nr.scheme==er.scheme?cr=Qc:isSpecial(er)?cr=Hc:"/"==ar[ur+1]?(cr=Oc,ur++):(er.cannotBeABaseURL=!0,er.path.push(""),cr=Zc)}break;case Mc:if(!nr||nr.cannotBeABaseURL&&"#"!=ir)return"Invalid scheme";if(nr.cannotBeABaseURL&&"#"==ir){er.scheme=nr.scheme,er.path=nr.path.slice(),er.query=nr.query,er.fragment="",er.cannotBeABaseURL=!0,cr=tu;break}cr="file"==nr.scheme?Wc:Dc;continue;case Qc:if("/"!=ir||"/"!=ar[ur+1]){cr=Dc;continue}cr=Gc,ur++;break;case Oc:if("/"==ir){cr=Vc;break}cr=$c;continue;case Dc:if(er.scheme=nr.scheme,ir==cc)er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,er.path=nr.path.slice(),er.query=nr.query;else if("/"==ir||"\\"==ir&&isSpecial(er))cr=jc;else if("?"==ir)er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,er.path=nr.path.slice(),er.query="",cr=eu;else{if("#"!=ir){er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,er.path=nr.path.slice(),er.path.pop(),cr=$c;continue}er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,er.path=nr.path.slice(),er.query=nr.query,er.fragment="",cr=tu}break;case jc:if(!isSpecial(er)||"/"!=ir&&"\\"!=ir){if("/"!=ir){er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,cr=$c;continue}cr=Vc}else cr=Gc;break;case Hc:if(cr=Gc,"/"!=ir||"/"!=dr.charAt(ur+1))continue;ur++;break;case Gc:if("/"!=ir&&"\\"!=ir){cr=Vc;continue}break;case Vc:if("@"==ir){hr&&(dr="%40"+dr),hr=!0,or=Vl(dr);for(var fr=0;fr<or.length;fr++){var gr=or[fr];if(":"!=gr||Ar){var mr=percentEncode(gr,Fc);Ar?er.password+=mr:er.username+=mr}else Ar=!0}dr=""}else if(ir==cc||"/"==ir||"?"==ir||"#"==ir||"\\"==ir&&isSpecial(er)){if(hr&&""==dr)return"Invalid authority";ur-=Vl(dr).length+1,dr="",cr=zc}else dr+=ir;break;case zc:case Kc:if(rr&&"file"==er.scheme){cr=Yc;continue}if(":"!=ir||pr){if(ir==cc||"/"==ir||"?"==ir||"#"==ir||"\\"==ir&&isSpecial(er)){if(isSpecial(er)&&""==dr)return"Invalid host";if(rr&&""==dr&&(includesCredentials(er)||null!==er.port))return;if(sr=parseHost(er,dr))return sr;if(dr="",cr=Jc,rr)return;continue}"["==ir?pr=!0:"]"==ir&&(pr=!1),dr+=ir}else{if(""==dr)return"Invalid host";if(sr=parseHost(er,dr))return sr;if(dr="",cr=qc,rr==Kc)return}break;case qc:if(!bc.test(ir)){if(ir==cc||"/"==ir||"?"==ir||"#"==ir||"\\"==ir&&isSpecial(er)||rr){if(""!=dr){var _r=parseInt(dr,10);if(_r>65535)return"Invalid port";er.port=isSpecial(er)&&_r===Uc[er.scheme]?null:_r,dr=""}if(rr)return;cr=Jc;continue}return"Invalid port"}dr+=ir;break;case Wc:if(er.scheme="file","/"==ir||"\\"==ir)cr=Xc;else{if(!nr||"file"!=nr.scheme){cr=$c;continue}if(ir==cc)er.host=nr.host,er.path=nr.path.slice(),er.query=nr.query;else if("?"==ir)er.host=nr.host,er.path=nr.path.slice(),er.query="",cr=eu;else{if("#"!=ir){startsWithWindowsDriveLetter(ar.slice(ur).join(""))||(er.host=nr.host,er.path=nr.path.slice(),shortenURLsPath(er)),cr=$c;continue}er.host=nr.host,er.path=nr.path.slice(),er.query=nr.query,er.fragment="",cr=tu}}break;case Xc:if("/"==ir||"\\"==ir){cr=Yc;break}nr&&"file"==nr.scheme&&!startsWithWindowsDriveLetter(ar.slice(ur).join(""))&&(isWindowsDriveLetter(nr.path[0],!0)?er.path.push(nr.path[0]):er.host=nr.host),cr=$c;continue;case Yc:if(ir==cc||"/"==ir||"\\"==ir||"?"==ir||"#"==ir){if(!rr&&isWindowsDriveLetter(dr))cr=$c;else if(""==dr){if(er.host="",rr)return;cr=Jc}else{if(sr=parseHost(er,dr))return sr;if("localhost"==er.host&&(er.host=""),rr)return;dr="",cr=Jc}continue}dr+=ir;break;case Jc:if(isSpecial(er)){if(cr=$c,"/"!=ir&&"\\"!=ir)continue}else if(rr||"?"!=ir)if(rr||"#"!=ir){if(ir!=cc&&(cr=$c,"/"!=ir))continue}else er.fragment="",cr=tu;else er.query="",cr=eu;break;case $c:if(ir==cc||"/"==ir||"\\"==ir&&isSpecial(er)||!rr&&("?"==ir||"#"==ir)){if(".."===(lr=(lr=dr).toLowerCase())||"%2e."===lr||".%2e"===lr||"%2e%2e"===lr?(shortenURLsPath(er),"/"==ir||"\\"==ir&&isSpecial(er)||er.path.push("")):isSingleDot(dr)?"/"==ir||"\\"==ir&&isSpecial(er)||er.path.push(""):("file"==er.scheme&&!er.path.length&&isWindowsDriveLetter(dr)&&(er.host&&(er.host=""),dr=dr.charAt(0)+":"),er.path.push(dr)),dr="","file"==er.scheme&&(ir==cc||"?"==ir||"#"==ir))for(;er.path.length>1&&""===er.path[0];)er.path.shift();"?"==ir?(er.query="",cr=eu):"#"==ir&&(er.fragment="",cr=tu)}else dr+=percentEncode(ir,Tc);break;case Zc:"?"==ir?(er.query="",cr=eu):"#"==ir?(er.fragment="",cr=tu):ir!=cc&&(er.path[0]+=percentEncode(ir,Lc));break;case eu:rr||"#"!=ir?ir!=cc&&("'"==ir&&isSpecial(er)?er.query+="%27":er.query+="#"==ir?"%23":percentEncode(ir,Lc)):(er.fragment="",cr=tu);break;case tu:ir!=cc&&(er.fragment+=percentEncode(ir,Pc))}ur++}},ru=function URL(er){var tr,nr,ar=anInstance(this,ru,"URL"),ir=arguments.length>1?arguments[1]:void 0,or=String(er),sr=fc(ar,{type:"URL"});if(void 0!==ir)if(ir instanceof ru)tr=gc(ir);else if(nr=parseURL(tr={},String(ir)))throw TypeError(nr);if(nr=parseURL(sr,or,null,tr))throw TypeError(nr);var lr=sr.searchParams=new pc,cr=Ac(lr);cr.updateSearchParams(sr.query),cr.updateURL=function(){sr.query=String(lr)||null},rr||(ar.href=serializeURL.call(ar),ar.origin=getOrigin.call(ar),ar.protocol=getProtocol.call(ar),ar.username=getUsername.call(ar),ar.password=getPassword.call(ar),ar.host=getHost.call(ar),ar.hostname=getHostname.call(ar),ar.port=getPort.call(ar),ar.pathname=getPathname.call(ar),ar.search=getSearch.call(ar),ar.searchParams=getSearchParams.call(ar),ar.hash=getHash.call(ar))},nu=ru.prototype,serializeURL=function(){var er=gc(this),tr=er.scheme,rr=er.username,nr=er.password,ar=er.host,ir=er.port,or=er.path,sr=er.query,lr=er.fragment,cr=tr+":";return null!==ar?(cr+="//",includesCredentials(er)&&(cr+=rr+(nr?":"+nr:"")+"@"),cr+=serializeHost(ar),null!==ir&&(cr+=":"+ir)):"file"==tr&&(cr+="//"),cr+=er.cannotBeABaseURL?or[0]:or.length?"/"+or.join("/"):"",null!==sr&&(cr+="?"+sr),null!==lr&&(cr+="#"+lr),cr},getOrigin=function(){var er=gc(this),tr=er.scheme,rr=er.port;if("blob"==tr)try{return new URL(tr.path[0]).origin}catch(er){return"null"}return"file"!=tr&&isSpecial(er)?tr+"://"+serializeHost(er.host)+(null!==rr?":"+rr:""):"null"},getProtocol=function(){return gc(this).scheme+":"},getUsername=function(){return gc(this).username},getPassword=function(){return gc(this).password},getHost=function(){var er=gc(this),tr=er.host,rr=er.port;return null===tr?"":null===rr?serializeHost(tr):serializeHost(tr)+":"+rr},getHostname=function(){var er=gc(this).host;return null===er?"":serializeHost(er)},getPort=function(){var er=gc(this).port;return null===er?"":String(er)},getPathname=function(){var er=gc(this),tr=er.path;return er.cannotBeABaseURL?tr[0]:tr.length?"/"+tr.join("/"):""},getSearch=function(){var er=gc(this).query;return er?"?"+er:""},getSearchParams=function(){return gc(this).searchParams},getHash=function(){var er=gc(this).fragment;return er?"#"+er:""},accessorDescriptor=function(er,tr){return{get:er,set:tr,configurable:!0,enumerable:!0}};if(rr&&ma(nu,{href:accessorDescriptor(serializeURL,(function(er){var tr=gc(this),rr=String(er),nr=parseURL(tr,rr);if(nr)throw TypeError(nr);Ac(tr.searchParams).updateSearchParams(tr.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(er){var tr=gc(this);parseURL(tr,String(er)+":",Ic)})),username:accessorDescriptor(getUsername,(function(er){var tr=gc(this),rr=Vl(String(er));if(!cannotHaveUsernamePasswordPort(tr)){tr.username="";for(var nr=0;nr<rr.length;nr++)tr.username+=percentEncode(rr[nr],Fc)}})),password:accessorDescriptor(getPassword,(function(er){var tr=gc(this),rr=Vl(String(er));if(!cannotHaveUsernamePasswordPort(tr)){tr.password="";for(var nr=0;nr<rr.length;nr++)tr.password+=percentEncode(rr[nr],Fc)}})),host:accessorDescriptor(getHost,(function(er){var tr=gc(this);tr.cannotBeABaseURL||parseURL(tr,String(er),zc)})),hostname:accessorDescriptor(getHostname,(function(er){var tr=gc(this);tr.cannotBeABaseURL||parseURL(tr,String(er),Kc)})),port:accessorDescriptor(getPort,(function(er){var tr=gc(this);cannotHaveUsernamePasswordPort(tr)||(""==(er=String(er))?tr.port=null:parseURL(tr,er,qc))})),pathname:accessorDescriptor(getPathname,(function(er){var tr=gc(this);tr.cannotBeABaseURL||(tr.path=[],parseURL(tr,er+"",Jc))})),search:accessorDescriptor(getSearch,(function(er){var tr=gc(this);""==(er=String(er))?tr.query=null:("?"==er.charAt(0)&&(er=er.slice(1)),tr.query="",parseURL(tr,er,eu)),Ac(tr.searchParams).updateSearchParams(tr.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(er){var tr=gc(this);""!=(er=String(er))?("#"==er.charAt(0)&&(er=er.slice(1)),tr.fragment="",parseURL(tr,er,tu)):tr.fragment=null}))}),Dr(nu,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),Dr(nu,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),hc){var au=hc.createObjectURL,iu=hc.revokeObjectURL;au&&Dr(ru,"createObjectURL",(function createObjectURL(er){return au.apply(hc,arguments)})),iu&&Dr(ru,"revokeObjectURL",(function revokeObjectURL(er){return iu.apply(hc,arguments)}))}function _typeof(er){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(er){return typeof er}:function(er){return er&&"function"==typeof Symbol&&er.constructor===Symbol&&er!==Symbol.prototype?"symbol":typeof er})(er)}function asyncGeneratorStep(er,tr,rr,nr,ar,ir,or){try{var sr=er[ir](or),lr=sr.value}catch(er){return void rr(er)}sr.done?tr(lr):Promise.resolve(lr).then(nr,ar)}function _asyncToGenerator(er){return function(){var tr=this,rr=arguments;return new Promise((function(nr,ar){var ir=er.apply(tr,rr);function _next(er){asyncGeneratorStep(ir,nr,ar,_next,_throw,"next",er)}function _throw(er){asyncGeneratorStep(ir,nr,ar,_next,_throw,"throw",er)}_next(void 0)}))}}function _classCallCheck(er,tr){if(!(er instanceof tr))throw new TypeError("Cannot call a class as a function")}function _defineProperties(er,tr){for(var rr=0;rr<tr.length;rr++){var nr=tr[rr];nr.enumerable=nr.enumerable||!1,nr.configurable=!0,"value"in nr&&(nr.writable=!0),Object.defineProperty(er,nr.key,nr)}}function _createClass(er,tr,rr){return tr&&_defineProperties(er.prototype,tr),rr&&_defineProperties(er,rr),er}function _inherits(er,tr){if("function"!=typeof tr&&null!==tr)throw new TypeError("Super expression must either be null or a function");er.prototype=Object.create(tr&&tr.prototype,{constructor:{value:er,writable:!0,configurable:!0}}),tr&&_setPrototypeOf(er,tr)}function _getPrototypeOf(er){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(er){return er.__proto__||Object.getPrototypeOf(er)})(er)}function _setPrototypeOf(er,tr){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(er,tr){return er.__proto__=tr,er})(er,tr)}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(er){return!1}}function _construct(er,tr,rr){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(er,tr,rr){var nr=[null];nr.push.apply(nr,tr);var ar=new(Function.bind.apply(er,nr));return rr&&_setPrototypeOf(ar,rr.prototype),ar}).apply(null,arguments)}function _assertThisInitialized(er){if(void 0===er)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return er}function _possibleConstructorReturn(er,tr){return!tr||"object"!=typeof tr&&"function"!=typeof tr?_assertThisInitialized(er):tr}function _createSuper(er){var tr=_isNativeReflectConstruct();return function _createSuperInternal(){var rr,nr=_getPrototypeOf(er);if(tr){var ar=_getPrototypeOf(this).constructor;rr=Reflect.construct(nr,arguments,ar)}else rr=nr.apply(this,arguments);return _possibleConstructorReturn(this,rr)}}function _get(er,tr,rr){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(er,tr,rr){var nr=function _superPropBase(er,tr){for(;!Object.prototype.hasOwnProperty.call(er,tr)&&null!==(er=_getPrototypeOf(er)););return er}(er,tr);if(nr){var ar=Object.getOwnPropertyDescriptor(nr,tr);return ar.get?ar.get.call(rr):ar.value}})(er,tr,rr||er)}function _slicedToArray(er,tr){return function _arrayWithHoles(er){if(Array.isArray(er))return er}(er)||function _iterableToArrayLimit(er,tr){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(er)))return;var rr=[],nr=!0,ar=!1,ir=void 0;try{for(var or,sr=er[Symbol.iterator]();!(nr=(or=sr.next()).done)&&(rr.push(or.value),!tr||rr.length!==tr);nr=!0);}catch(er){ar=!0,ir=er}finally{try{nr||null==sr.return||sr.return()}finally{if(ar)throw ir}}return rr}(er,tr)||_unsupportedIterableToArray(er,tr)||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(er){return function _arrayWithoutHoles(er){if(Array.isArray(er))return _arrayLikeToArray(er)}(er)||function _iterableToArray(er){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(er))return Array.from(er)}(er)||_unsupportedIterableToArray(er)||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(er,tr){if(er){if("string"==typeof er)return _arrayLikeToArray(er,tr);var rr=Object.prototype.toString.call(er).slice(8,-1);return"Object"===rr&&er.constructor&&(rr=er.constructor.name),"Map"===rr||"Set"===rr?Array.from(er):"Arguments"===rr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rr)?_arrayLikeToArray(er,tr):void 0}}function _arrayLikeToArray(er,tr){(null==tr||tr>er.length)&&(tr=er.length);for(var rr=0,nr=new Array(tr);rr<tr;rr++)nr[rr]=er[rr];return nr}function _createForOfIteratorHelper(er,tr){var rr;if("undefined"==typeof Symbol||null==er[Symbol.iterator]){if(Array.isArray(er)||(rr=_unsupportedIterableToArray(er))||tr&&er&&"number"==typeof er.length){rr&&(er=rr);var nr=0,F=function(){};return{s:F,n:function(){return nr>=er.length?{done:!0}:{done:!1,value:er[nr++]}},e:function(er){throw er},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 ar,ir=!0,or=!1;return{s:function(){rr=er[Symbol.iterator]()},n:function(){var er=rr.next();return ir=er.done,er},e:function(er){or=!0,ar=er},f:function(){try{ir||null==rr.return||rr.return()}finally{if(or)throw ar}}}}setToStringTag(ru,"URL"),_export({global:!0,forced:!Dl,sham:!rr},{URL:ru});var ou=Jr.f,su={}.toString,lu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],cu={f:function getOwnPropertyNames(er){return lu&&"[object Window]"==su.call(er)?function(er){try{return ou(er)}catch(er){return lu.slice()}}(er):ou(toIndexedObject(er))}},uu={f:wellKnownSymbol},du=gr.f,defineWellKnownSymbol=function(er){var tr=jr.Symbol||(jr.Symbol={});has(tr,er)||du(tr,er,{value:uu.f(er)})},hu=ca.forEach,pu=sharedKey("hidden"),Au=wellKnownSymbol("toPrimitive"),fu=Or.set,gu=Or.getterFor("Symbol"),mu=Object.prototype,_u=tr.Symbol,vu=getBuiltIn("JSON","stringify"),yu=Ar.f,bu=gr.f,wu=cu.f,ku=ir.f,xu=Cr("symbols"),Su=Cr("op-symbols"),Cu=Cr("string-to-symbol-registry"),Bu=Cr("symbol-to-string-registry"),Eu=Cr("wks"),Nu=tr.QObject,Lu=!Nu||!Nu.prototype||!Nu.prototype.findChild,Pu=rr&&fails((function(){return 7!=ya(bu({},"a",{get:function(){return bu(this,"a",{value:7}).a}})).a}))?function(er,tr,rr){var nr=yu(mu,tr);nr&&delete mu[tr],bu(er,tr,rr),nr&&er!==mu&&bu(mu,tr,nr)}:bu,wrap=function(er,tr){var nr=xu[er]=ya(_u.prototype);return fu(nr,{type:"Symbol",tag:er,description:tr}),rr||(nr.description=tr),nr},Tu=Wn?function(er){return"symbol"==typeof er}:function(er){return Object(er)instanceof _u},Fu=function defineProperty(er,tr,rr){er===mu&&Fu(Su,tr,rr),anObject(er);var nr=toPrimitive(tr,!0);return anObject(rr),has(xu,nr)?(rr.enumerable?(has(er,pu)&&er[pu][nr]&&(er[pu][nr]=!1),rr=ya(rr,{enumerable:createPropertyDescriptor(0,!1)})):(has(er,pu)||bu(er,pu,createPropertyDescriptor(1,{})),er[pu][nr]=!0),Pu(er,nr,rr)):bu(er,nr,rr)},Uu=function defineProperties(er,tr){anObject(er);var nr=toIndexedObject(tr),ar=ga(nr).concat(Qu(nr));return hu(ar,(function(tr){rr&&!Iu.call(nr,tr)||Fu(er,tr,nr[tr])})),er},Iu=function propertyIsEnumerable(er){var tr=toPrimitive(er,!0),rr=ku.call(this,tr);return!(this===mu&&has(xu,tr)&&!has(Su,tr))&&(!(rr||!has(this,tr)||!has(xu,tr)||has(this,pu)&&this[pu][tr])||rr)},Ru=function getOwnPropertyDescriptor(er,tr){var rr=toIndexedObject(er),nr=toPrimitive(tr,!0);if(rr!==mu||!has(xu,nr)||has(Su,nr)){var ar=yu(rr,nr);return!ar||!has(xu,nr)||has(rr,pu)&&rr[pu][nr]||(ar.enumerable=!0),ar}},Mu=function getOwnPropertyNames(er){var tr=wu(toIndexedObject(er)),rr=[];return hu(tr,(function(er){has(xu,er)||has(Lr,er)||rr.push(er)})),rr},Qu=function getOwnPropertySymbols(er){var tr=er===mu,rr=wu(tr?Su:toIndexedObject(er)),nr=[];return hu(rr,(function(er){!has(xu,er)||tr&&!has(mu,er)||nr.push(xu[er])})),nr};if(Kn||(Dr((_u=function Symbol(){if(this instanceof _u)throw TypeError("Symbol is not a constructor");var er=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,tr=uid(er),setter=function(er){this===mu&&setter.call(Su,er),has(this,pu)&&has(this[pu],tr)&&(this[pu][tr]=!1),Pu(this,tr,createPropertyDescriptor(1,er))};return rr&&Lu&&Pu(mu,tr,{configurable:!0,set:setter}),wrap(tr,er)}).prototype,"toString",(function toString(){return gu(this).tag})),Dr(_u,"withoutSetter",(function(er){return wrap(uid(er),er)})),ir.f=Iu,gr.f=Fu,Ar.f=Ru,Jr.f=cu.f=Mu,$r.f=Qu,uu.f=function(er){return wrap(wellKnownSymbol(er),er)},rr&&(bu(_u.prototype,"description",{configurable:!0,get:function description(){return gu(this).description}}),Dr(mu,"propertyIsEnumerable",Iu,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!Kn,sham:!Kn},{Symbol:_u}),hu(ga(Eu),(function(er){defineWellKnownSymbol(er)})),_export({target:"Symbol",stat:!0,forced:!Kn},{for:function(er){var tr=String(er);if(has(Cu,tr))return Cu[tr];var rr=_u(tr);return Cu[tr]=rr,Bu[rr]=tr,rr},keyFor:function keyFor(er){if(!Tu(er))throw TypeError(er+" is not a symbol");if(has(Bu,er))return Bu[er]},useSetter:function(){Lu=!0},useSimple:function(){Lu=!1}}),_export({target:"Object",stat:!0,forced:!Kn,sham:!rr},{create:function create(er,tr){return void 0===tr?ya(er):Uu(ya(er),tr)},defineProperty:Fu,defineProperties:Uu,getOwnPropertyDescriptor:Ru}),_export({target:"Object",stat:!0,forced:!Kn},{getOwnPropertyNames:Mu,getOwnPropertySymbols:Qu}),_export({target:"Object",stat:!0,forced:fails((function(){$r.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(er){return $r.f(toObject(er))}}),vu){var Ou=!Kn||fails((function(){var er=_u();return"[null]"!=vu([er])||"{}"!=vu({a:er})||"{}"!=vu(Object(er))}));_export({target:"JSON",stat:!0,forced:Ou},{stringify:function stringify(er,tr,rr){for(var nr,ar=[er],ir=1;arguments.length>ir;)ar.push(arguments[ir++]);if(nr=tr,(isObject(tr)||void 0!==er)&&!Tu(er))return zn(tr)||(tr=function(er,tr){if("function"==typeof nr&&(tr=nr.call(this,er,tr)),!Tu(tr))return tr}),ar[1]=tr,vu.apply(null,ar)}})}_u.prototype[Au]||mr(_u.prototype,Au,_u.prototype.valueOf),setToStringTag(_u,"Symbol"),Lr[pu]=!0;var Du=gr.f,ju=tr.Symbol;if(rr&&"function"==typeof ju&&(!("description"in ju.prototype)||void 0!==ju().description)){var Hu={},Gu=function Symbol(){var er=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),tr=this instanceof Gu?new ju(er):void 0===er?ju():ju(er);return""===er&&(Hu[tr]=!0),tr};copyConstructorProperties(Gu,ju);var Vu=Gu.prototype=ju.prototype;Vu.constructor=Gu;var zu=Vu.toString,Ku="Symbol(test)"==String(ju("test")),qu=/^Symbol\((.*)\)[^)]+$/;Du(Vu,"description",{configurable:!0,get:function description(){var er=isObject(this)?this.valueOf():this,tr=zu.call(er);if(has(Hu,er))return"";var rr=Ku?tr.slice(7,-1):tr.replace(qu,"$1");return""===rr?void 0:rr}}),_export({global:!0,forced:!0},{Symbol:Gu})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag"),setToStringTag(tr.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!rr},{create:ya}),_export({target:"Object",stat:!0,forced:!rr,sham:!rr},{defineProperty:gr.f});var Wu=fails((function(){Va(1)}));_export({target:"Object",stat:!0,forced:Wu,sham:!ja},{getPrototypeOf:function getPrototypeOf(er){return Va(toObject(er))}}),_export({target:"Object",stat:!0},{setPrototypeOf:Ja});var Xu=createCommonjsModule((function(er){var tr=function(er){var tr,rr=Object.prototype,nr=rr.hasOwnProperty,ar="function"==typeof Symbol?Symbol:{},ir=ar.iterator||"@@iterator",or=ar.asyncIterator||"@@asyncIterator",sr=ar.toStringTag||"@@toStringTag";function define(er,tr,rr){return Object.defineProperty(er,tr,{value:rr,enumerable:!0,configurable:!0,writable:!0}),er[tr]}try{define({},"")}catch(er){define=function define(er,tr,rr){return er[tr]=rr}}function wrap(er,tr,rr,nr){var ar=tr&&tr.prototype instanceof Generator?tr:Generator,ir=Object.create(ar.prototype),or=new Context(nr||[]);return ir._invoke=function makeInvokeMethod(er,tr,rr){var nr=lr;return function invoke(ar,ir){if(nr===ur)throw new Error("Generator is already running");if(nr===dr){if("throw"===ar)throw ir;return doneResult()}for(rr.method=ar,rr.arg=ir;;){var or=rr.delegate;if(or){var sr=maybeInvokeDelegate(or,rr);if(sr){if(sr===hr)continue;return sr}}if("next"===rr.method)rr.sent=rr._sent=rr.arg;else if("throw"===rr.method){if(nr===lr)throw nr=dr,rr.arg;rr.dispatchException(rr.arg)}else"return"===rr.method&&rr.abrupt("return",rr.arg);nr=ur;var pr=tryCatch(er,tr,rr);if("normal"===pr.type){if(nr=rr.done?dr:cr,pr.arg===hr)continue;return{value:pr.arg,done:rr.done}}"throw"===pr.type&&(nr=dr,rr.method="throw",rr.arg=pr.arg)}}}(er,rr,or),ir}function tryCatch(er,tr,rr){try{return{type:"normal",arg:er.call(tr,rr)}}catch(er){return{type:"throw",arg:er}}}er.wrap=wrap;var lr="suspendedStart",cr="suspendedYield",ur="executing",dr="completed",hr={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var pr={};pr[ir]=function(){return this};var Ar=Object.getPrototypeOf,fr=Ar&&Ar(Ar(values([])));fr&&fr!==rr&&nr.call(fr,ir)&&(pr=fr);var gr=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(pr);function defineIteratorMethods(er){["next","throw","return"].forEach((function(tr){define(er,tr,(function(er){return this._invoke(tr,er)}))}))}function AsyncIterator(er,tr){var rr;this._invoke=function enqueue(ar,ir){function callInvokeWithMethodAndArg(){return new tr((function(rr,or){!function invoke(rr,ar,ir,or){var sr=tryCatch(er[rr],er,ar);if("throw"!==sr.type){var lr=sr.arg,cr=lr.value;return cr&&"object"===_typeof(cr)&&nr.call(cr,"__await")?tr.resolve(cr.__await).then((function(er){invoke("next",er,ir,or)}),(function(er){invoke("throw",er,ir,or)})):tr.resolve(cr).then((function(er){lr.value=er,ir(lr)}),(function(er){return invoke("throw",er,ir,or)}))}or(sr.arg)}(ar,ir,rr,or)}))}return rr=rr?rr.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(er,rr){var nr=er.iterator[rr.method];if(nr===tr){if(rr.delegate=null,"throw"===rr.method){if(er.iterator.return&&(rr.method="return",rr.arg=tr,maybeInvokeDelegate(er,rr),"throw"===rr.method))return hr;rr.method="throw",rr.arg=new TypeError("The iterator does not provide a 'throw' method")}return hr}var ar=tryCatch(nr,er.iterator,rr.arg);if("throw"===ar.type)return rr.method="throw",rr.arg=ar.arg,rr.delegate=null,hr;var ir=ar.arg;return ir?ir.done?(rr[er.resultName]=ir.value,rr.next=er.nextLoc,"return"!==rr.method&&(rr.method="next",rr.arg=tr),rr.delegate=null,hr):ir:(rr.method="throw",rr.arg=new TypeError("iterator result is not an object"),rr.delegate=null,hr)}function pushTryEntry(er){var tr={tryLoc:er[0]};1 in er&&(tr.catchLoc=er[1]),2 in er&&(tr.finallyLoc=er[2],tr.afterLoc=er[3]),this.tryEntries.push(tr)}function resetTryEntry(er){var tr=er.completion||{};tr.type="normal",delete tr.arg,er.completion=tr}function Context(er){this.tryEntries=[{tryLoc:"root"}],er.forEach(pushTryEntry,this),this.reset(!0)}function values(er){if(er){var rr=er[ir];if(rr)return rr.call(er);if("function"==typeof er.next)return er;if(!isNaN(er.length)){var ar=-1,or=function next(){for(;++ar<er.length;)if(nr.call(er,ar))return next.value=er[ar],next.done=!1,next;return next.value=tr,next.done=!0,next};return or.next=or}}return{next:doneResult}}function doneResult(){return{value:tr,done:!0}}return GeneratorFunction.prototype=gr.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,sr,"GeneratorFunction"),er.isGeneratorFunction=function(er){var tr="function"==typeof er&&er.constructor;return!!tr&&(tr===GeneratorFunction||"GeneratorFunction"===(tr.displayName||tr.name))},er.mark=function(er){return Object.setPrototypeOf?Object.setPrototypeOf(er,GeneratorFunctionPrototype):(er.__proto__=GeneratorFunctionPrototype,define(er,sr,"GeneratorFunction")),er.prototype=Object.create(gr),er},er.awrap=function(er){return{__await:er}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[or]=function(){return this},er.AsyncIterator=AsyncIterator,er.async=function(tr,rr,nr,ar,ir){void 0===ir&&(ir=Promise);var or=new AsyncIterator(wrap(tr,rr,nr,ar),ir);return er.isGeneratorFunction(rr)?or:or.next().then((function(er){return er.done?er.value:or.next()}))},defineIteratorMethods(gr),define(gr,sr,"Generator"),gr[ir]=function(){return this},gr.toString=function(){return"[object Generator]"},er.keys=function(er){var tr=[];for(var rr in er)tr.push(rr);return tr.reverse(),function next(){for(;tr.length;){var rr=tr.pop();if(rr in er)return next.value=rr,next.done=!1,next}return next.done=!0,next}},er.values=values,Context.prototype={constructor:Context,reset:function reset(er){if(this.prev=0,this.next=0,this.sent=this._sent=tr,this.done=!1,this.delegate=null,this.method="next",this.arg=tr,this.tryEntries.forEach(resetTryEntry),!er)for(var rr in this)"t"===rr.charAt(0)&&nr.call(this,rr)&&!isNaN(+rr.slice(1))&&(this[rr]=tr)},stop:function stop(){this.done=!0;var er=this.tryEntries[0].completion;if("throw"===er.type)throw er.arg;return this.rval},dispatchException:function dispatchException(er){if(this.done)throw er;var rr=this;function handle(nr,ar){return or.type="throw",or.arg=er,rr.next=nr,ar&&(rr.method="next",rr.arg=tr),!!ar}for(var ar=this.tryEntries.length-1;ar>=0;--ar){var ir=this.tryEntries[ar],or=ir.completion;if("root"===ir.tryLoc)return handle("end");if(ir.tryLoc<=this.prev){var sr=nr.call(ir,"catchLoc"),lr=nr.call(ir,"finallyLoc");if(sr&&lr){if(this.prev<ir.catchLoc)return handle(ir.catchLoc,!0);if(this.prev<ir.finallyLoc)return handle(ir.finallyLoc)}else if(sr){if(this.prev<ir.catchLoc)return handle(ir.catchLoc,!0)}else{if(!lr)throw new Error("try statement without catch or finally");if(this.prev<ir.finallyLoc)return handle(ir.finallyLoc)}}}},abrupt:function abrupt(er,tr){for(var rr=this.tryEntries.length-1;rr>=0;--rr){var ar=this.tryEntries[rr];if(ar.tryLoc<=this.prev&&nr.call(ar,"finallyLoc")&&this.prev<ar.finallyLoc){var ir=ar;break}}ir&&("break"===er||"continue"===er)&&ir.tryLoc<=tr&&tr<=ir.finallyLoc&&(ir=null);var or=ir?ir.completion:{};return or.type=er,or.arg=tr,ir?(this.method="next",this.next=ir.finallyLoc,hr):this.complete(or)},complete:function complete(er,tr){if("throw"===er.type)throw er.arg;return"break"===er.type||"continue"===er.type?this.next=er.arg:"return"===er.type?(this.rval=this.arg=er.arg,this.method="return",this.next="end"):"normal"===er.type&&tr&&(this.next=tr),hr},finish:function finish(er){for(var tr=this.tryEntries.length-1;tr>=0;--tr){var rr=this.tryEntries[tr];if(rr.finallyLoc===er)return this.complete(rr.completion,rr.afterLoc),resetTryEntry(rr),hr}},catch:function _catch(er){for(var tr=this.tryEntries.length-1;tr>=0;--tr){var rr=this.tryEntries[tr];if(rr.tryLoc===er){var nr=rr.completion;if("throw"===nr.type){var ar=nr.arg;resetTryEntry(rr)}return ar}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(er,rr,nr){return this.delegate={iterator:values(er),resultName:rr,nextLoc:nr},"next"===this.method&&(this.arg=tr),hr}},er}(er.exports);try{regeneratorRuntime=tr}catch(er){Function("r","regeneratorRuntime = r")(tr)}}));function touchHandler(er){var tr=er.changedTouches,rr=tr[0],nr="";switch(er.type){case"touchstart":nr="mousedown";break;case"touchmove":nr="mousemove";break;case"touchend":nr="mouseup";break;default:return}var ar=rr.screenX,ir=rr.screenY,or=rr.clientX,sr=rr.clientY,lr=new MouseEvent(nr,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:ar,screenY:ir,clientX:or,clientY:sr,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});tr.length<2&&(rr.target.dispatchEvent(lr),er.preventDefault())}document.addEventListener("touchstart",touchHandler,!0),document.addEventListener("touchmove",touchHandler,!0),document.addEventListener("touchend",touchHandler,!0),document.addEventListener("touchcancel",touchHandler,!0);
|
||
/**
|
||
* Namespaces or tools therefor.
|
||
* @module namespaces
|
||
* @license MIT
|
||
*/
|
||
var Yu={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/"},Ju=function getReverseNS(){var er={};return Object.entries(Yu).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ar=rr[1];er[ar]=nr.toLowerCase()})),er},$u=arrayMethodHasSpeciesSupport("splice"),Zu=arrayMethodUsesToLength("splice",{ACCESSORS:!0,0:0,1:2}),ed=Math.max,td=Math.min;_export({target:"Array",proto:!0,forced:!$u||!Zu},{splice:function splice(er,tr){var rr,nr,ar,ir,or,sr,lr=toObject(this),cr=toLength(lr.length),ur=toAbsoluteIndex(er,cr),dr=arguments.length;if(0===dr?rr=nr=0:1===dr?(rr=0,nr=cr-ur):(rr=dr-2,nr=td(ed(toInteger(tr),0),cr-ur)),cr+rr-nr>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(ar=arraySpeciesCreate(lr,nr),ir=0;ir<nr;ir++)(or=ur+ir)in lr&&createProperty(ar,ir,lr[or]);if(ar.length=nr,rr<nr){for(ir=ur;ir<cr-nr;ir++)sr=ir+rr,(or=ir+nr)in lr?lr[sr]=lr[or]:delete lr[sr];for(ir=cr;ir>cr-nr+rr;ir--)delete lr[ir-1]}else if(rr>nr)for(ir=cr-nr;ir>ur;ir--)sr=ir+rr-1,(or=ir+nr-1)in lr?lr[sr]=lr[or]:delete lr[sr];for(ir=0;ir<rr;ir++)lr[ir+ur]=arguments[ir+2];return lr.length=cr-nr+rr,ar}}),_export({target:"Object",stat:!0,forced:!rr,sham:!rr},{defineProperties:ma}),function(){if(!("SVGPathSeg"in window)){var er=function(){function _SVGPathSeg(er,tr,rr){_classCallCheck(this,_SVGPathSeg),this.pathSegType=er,this.pathSegTypeAsLetter=tr,this._owningPathSegList=rr}return _createClass(_SVGPathSeg,[{key:"_segmentChanged",value:function _segmentChanged(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)}}]),_SVGPathSeg}();er.prototype.classname="SVGPathSeg",er.PATHSEG_UNKNOWN=0,er.PATHSEG_CLOSEPATH=1,er.PATHSEG_MOVETO_ABS=2,er.PATHSEG_MOVETO_REL=3,er.PATHSEG_LINETO_ABS=4,er.PATHSEG_LINETO_REL=5,er.PATHSEG_CURVETO_CUBIC_ABS=6,er.PATHSEG_CURVETO_CUBIC_REL=7,er.PATHSEG_CURVETO_QUADRATIC_ABS=8,er.PATHSEG_CURVETO_QUADRATIC_REL=9,er.PATHSEG_ARC_ABS=10,er.PATHSEG_ARC_REL=11,er.PATHSEG_LINETO_HORIZONTAL_ABS=12,er.PATHSEG_LINETO_HORIZONTAL_REL=13,er.PATHSEG_LINETO_VERTICAL_ABS=14,er.PATHSEG_LINETO_VERTICAL_REL=15,er.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,er.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,er.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,er.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19;var tr=function(tr){_inherits(_SVGPathSegClosePath,tr);var rr=_createSuper(_SVGPathSegClosePath);function _SVGPathSegClosePath(tr){return _classCallCheck(this,_SVGPathSegClosePath),rr.call(this,er.PATHSEG_CLOSEPATH,"z",tr)}return _createClass(_SVGPathSegClosePath,[{key:"toString",value:function toString(){return"[object SVGPathSegClosePath]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter}},{key:"clone",value:function clone(){return new _SVGPathSegClosePath(void 0)}}]),_SVGPathSegClosePath}(er),rr=function(tr){_inherits(_SVGPathSegMovetoAbs,tr);var rr=_createSuper(_SVGPathSegMovetoAbs);function _SVGPathSegMovetoAbs(tr,nr,ar){var ir;return _classCallCheck(this,_SVGPathSegMovetoAbs),(ir=rr.call(this,er.PATHSEG_MOVETO_ABS,"M",tr))._x=nr,ir._y=ar,ir}return _createClass(_SVGPathSegMovetoAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegMovetoAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegMovetoAbs(void 0,this._x,this._y)}}]),_SVGPathSegMovetoAbs}(er);Object.defineProperties(rr.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}});var nr=function(tr){_inherits(_SVGPathSegMovetoRel,tr);var rr=_createSuper(_SVGPathSegMovetoRel);function _SVGPathSegMovetoRel(tr,nr,ar){var ir;return _classCallCheck(this,_SVGPathSegMovetoRel),(ir=rr.call(this,er.PATHSEG_MOVETO_REL,"m",tr))._x=nr,ir._y=ar,ir}return _createClass(_SVGPathSegMovetoRel,[{key:"toString",value:function toString(){return"[object SVGPathSegMovetoRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegMovetoRel(void 0,this._x,this._y)}}]),_SVGPathSegMovetoRel}(er);Object.defineProperties(nr.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}});var ar=function(tr){_inherits(_SVGPathSegLinetoAbs,tr);var rr=_createSuper(_SVGPathSegLinetoAbs);function _SVGPathSegLinetoAbs(tr,nr,ar){var ir;return _classCallCheck(this,_SVGPathSegLinetoAbs),(ir=rr.call(this,er.PATHSEG_LINETO_ABS,"L",tr))._x=nr,ir._y=ar,ir}return _createClass(_SVGPathSegLinetoAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoAbs(void 0,this._x,this._y)}}]),_SVGPathSegLinetoAbs}(er);Object.defineProperties(ar.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}});var ir=function(tr){_inherits(_SVGPathSegLinetoRel,tr);var rr=_createSuper(_SVGPathSegLinetoRel);function _SVGPathSegLinetoRel(tr,nr,ar){var ir;return _classCallCheck(this,_SVGPathSegLinetoRel),(ir=rr.call(this,er.PATHSEG_LINETO_REL,"l",tr))._x=nr,ir._y=ar,ir}return _createClass(_SVGPathSegLinetoRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoRel(void 0,this._x,this._y)}}]),_SVGPathSegLinetoRel}(er);Object.defineProperties(ir.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}});var or=function(tr){_inherits(_SVGPathSegCurvetoCubicAbs,tr);var rr=_createSuper(_SVGPathSegCurvetoCubicAbs);function _SVGPathSegCurvetoCubicAbs(tr,nr,ar,ir,or,sr,lr){var cr;return _classCallCheck(this,_SVGPathSegCurvetoCubicAbs),(cr=rr.call(this,er.PATHSEG_CURVETO_CUBIC_ABS,"C",tr))._x=nr,cr._y=ar,cr._x1=ir,cr._y1=or,cr._x2=sr,cr._y2=lr,cr}return _createClass(_SVGPathSegCurvetoCubicAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicAbs}(er);Object.defineProperties(or.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}});var sr=function(tr){_inherits(_SVGPathSegCurvetoCubicRel,tr);var rr=_createSuper(_SVGPathSegCurvetoCubicRel);function _SVGPathSegCurvetoCubicRel(tr,nr,ar,ir,or,sr,lr){var cr;return _classCallCheck(this,_SVGPathSegCurvetoCubicRel),(cr=rr.call(this,er.PATHSEG_CURVETO_CUBIC_REL,"c",tr))._x=nr,cr._y=ar,cr._x1=ir,cr._y1=or,cr._x2=sr,cr._y2=lr,cr}return _createClass(_SVGPathSegCurvetoCubicRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicRel}(er);Object.defineProperties(sr.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}});var lr=function(tr){_inherits(_SVGPathSegCurvetoQuadraticAbs,tr);var rr=_createSuper(_SVGPathSegCurvetoQuadraticAbs);function _SVGPathSegCurvetoQuadraticAbs(tr,nr,ar,ir,or){var sr;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticAbs),(sr=rr.call(this,er.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",tr))._x=nr,sr._y=ar,sr._x1=ir,sr._y1=or,sr}return _createClass(_SVGPathSegCurvetoQuadraticAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)}}]),_SVGPathSegCurvetoQuadraticAbs}(er);Object.defineProperties(lr.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0}});var cr=function(tr){_inherits(_SVGPathSegCurvetoQuadraticRel,tr);var rr=_createSuper(_SVGPathSegCurvetoQuadraticRel);function _SVGPathSegCurvetoQuadraticRel(tr,nr,ar,ir,or){var sr;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticRel),(sr=rr.call(this,er.PATHSEG_CURVETO_QUADRATIC_REL,"q",tr))._x=nr,sr._y=ar,sr._x1=ir,sr._y1=or,sr}return _createClass(_SVGPathSegCurvetoQuadraticRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)}}]),_SVGPathSegCurvetoQuadraticRel}(er);Object.defineProperties(cr.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0},x1:{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0},y1:{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0}});var ur=function(tr){_inherits(_SVGPathSegArcAbs,tr);var rr=_createSuper(_SVGPathSegArcAbs);function _SVGPathSegArcAbs(tr,nr,ar,ir,or,sr,lr,cr){var ur;return _classCallCheck(this,_SVGPathSegArcAbs),(ur=rr.call(this,er.PATHSEG_ARC_ABS,"A",tr))._x=nr,ur._y=ar,ur._r1=ir,ur._r2=or,ur._angle=sr,ur._largeArcFlag=lr,ur._sweepFlag=cr,ur}return _createClass(_SVGPathSegArcAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegArcAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)}}]),_SVGPathSegArcAbs}(er);Object.defineProperties(ur.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0},r1:{get:function get(){return this._r1},set:function set(er){this._r1=er,this._segmentChanged()},enumerable:!0},r2:{get:function get(){return this._r2},set:function set(er){this._r2=er,this._segmentChanged()},enumerable:!0},angle:{get:function get(){return this._angle},set:function set(er){this._angle=er,this._segmentChanged()},enumerable:!0},largeArcFlag:{get:function get(){return this._largeArcFlag},set:function set(er){this._largeArcFlag=er,this._segmentChanged()},enumerable:!0},sweepFlag:{get:function get(){return this._sweepFlag},set:function set(er){this._sweepFlag=er,this._segmentChanged()},enumerable:!0}});var dr=function(tr){_inherits(_SVGPathSegArcRel,tr);var rr=_createSuper(_SVGPathSegArcRel);function _SVGPathSegArcRel(tr,nr,ar,ir,or,sr,lr,cr){var ur;return _classCallCheck(this,_SVGPathSegArcRel),(ur=rr.call(this,er.PATHSEG_ARC_REL,"a",tr))._x=nr,ur._y=ar,ur._r1=ir,ur._r2=or,ur._angle=sr,ur._largeArcFlag=lr,ur._sweepFlag=cr,ur}return _createClass(_SVGPathSegArcRel,[{key:"toString",value:function toString(){return"[object SVGPathSegArcRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)}}]),_SVGPathSegArcRel}(er);Object.defineProperties(dr.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0},r1:{get:function get(){return this._r1},set:function set(er){this._r1=er,this._segmentChanged()},enumerable:!0},r2:{get:function get(){return this._r2},set:function set(er){this._r2=er,this._segmentChanged()},enumerable:!0},angle:{get:function get(){return this._angle},set:function set(er){this._angle=er,this._segmentChanged()},enumerable:!0},largeArcFlag:{get:function get(){return this._largeArcFlag},set:function set(er){this._largeArcFlag=er,this._segmentChanged()},enumerable:!0},sweepFlag:{get:function get(){return this._sweepFlag},set:function set(er){this._sweepFlag=er,this._segmentChanged()},enumerable:!0}});var hr=function(tr){_inherits(_SVGPathSegLinetoHorizontalAbs,tr);var rr=_createSuper(_SVGPathSegLinetoHorizontalAbs);function _SVGPathSegLinetoHorizontalAbs(tr,nr){var ar;return _classCallCheck(this,_SVGPathSegLinetoHorizontalAbs),(ar=rr.call(this,er.PATHSEG_LINETO_HORIZONTAL_ABS,"H",tr))._x=nr,ar}return _createClass(_SVGPathSegLinetoHorizontalAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoHorizontalAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoHorizontalAbs(void 0,this._x)}}]),_SVGPathSegLinetoHorizontalAbs}(er);Object.defineProperty(hr.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0});var pr=function(tr){_inherits(_SVGPathSegLinetoHorizontalRel,tr);var rr=_createSuper(_SVGPathSegLinetoHorizontalRel);function _SVGPathSegLinetoHorizontalRel(tr,nr){var ar;return _classCallCheck(this,_SVGPathSegLinetoHorizontalRel),(ar=rr.call(this,er.PATHSEG_LINETO_HORIZONTAL_REL,"h",tr))._x=nr,ar}return _createClass(_SVGPathSegLinetoHorizontalRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoHorizontalRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoHorizontalRel(void 0,this._x)}}]),_SVGPathSegLinetoHorizontalRel}(er);Object.defineProperty(pr.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0});var Ar=function(tr){_inherits(_SVGPathSegLinetoVerticalAbs,tr);var rr=_createSuper(_SVGPathSegLinetoVerticalAbs);function _SVGPathSegLinetoVerticalAbs(tr,nr){var ar;return _classCallCheck(this,_SVGPathSegLinetoVerticalAbs),(ar=rr.call(this,er.PATHSEG_LINETO_VERTICAL_ABS,"V",tr))._y=nr,ar}return _createClass(_SVGPathSegLinetoVerticalAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoVerticalAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoVerticalAbs(void 0,this._y)}}]),_SVGPathSegLinetoVerticalAbs}(er);Object.defineProperty(Ar.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0});var fr=function(tr){_inherits(_SVGPathSegLinetoVerticalRel,tr);var rr=_createSuper(_SVGPathSegLinetoVerticalRel);function _SVGPathSegLinetoVerticalRel(tr,nr){var ar;return _classCallCheck(this,_SVGPathSegLinetoVerticalRel),(ar=rr.call(this,er.PATHSEG_LINETO_VERTICAL_REL,"v",tr))._y=nr,ar}return _createClass(_SVGPathSegLinetoVerticalRel,[{key:"toString",value:function toString(){return"[object SVGPathSegLinetoVerticalRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegLinetoVerticalRel(void 0,this._y)}}]),_SVGPathSegLinetoVerticalRel}(er);Object.defineProperty(fr.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0});var gr=function(tr){_inherits(_SVGPathSegCurvetoCubicSmoothAbs,tr);var rr=_createSuper(_SVGPathSegCurvetoCubicSmoothAbs);function _SVGPathSegCurvetoCubicSmoothAbs(tr,nr,ar,ir,or){var sr;return _classCallCheck(this,_SVGPathSegCurvetoCubicSmoothAbs),(sr=rr.call(this,er.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",tr))._x=nr,sr._y=ar,sr._x2=ir,sr._y2=or,sr}return _createClass(_SVGPathSegCurvetoCubicSmoothAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicSmoothAbs}(er);Object.defineProperties(gr.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}});var mr=function(tr){_inherits(_SVGPathSegCurvetoCubicSmoothRel,tr);var rr=_createSuper(_SVGPathSegCurvetoCubicSmoothRel);function _SVGPathSegCurvetoCubicSmoothRel(tr,nr,ar,ir,or){var sr;return _classCallCheck(this,_SVGPathSegCurvetoCubicSmoothRel),(sr=rr.call(this,er.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",tr))._x=nr,sr._y=ar,sr._x2=ir,sr._y2=or,sr}return _createClass(_SVGPathSegCurvetoCubicSmoothRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoCubicSmoothRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)}}]),_SVGPathSegCurvetoCubicSmoothRel}(er);Object.defineProperties(mr.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0},x2:{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0},y2:{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}});var _r=function(tr){_inherits(_SVGPathSegCurvetoQuadraticSmoothAbs,tr);var rr=_createSuper(_SVGPathSegCurvetoQuadraticSmoothAbs);function _SVGPathSegCurvetoQuadraticSmoothAbs(tr,nr,ar){var ir;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticSmoothAbs),(ir=rr.call(this,er.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",tr))._x=nr,ir._y=ar,ir}return _createClass(_SVGPathSegCurvetoQuadraticSmoothAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)}}]),_SVGPathSegCurvetoQuadraticSmoothAbs}(er);Object.defineProperties(_r.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}});var vr=function(tr){_inherits(_SVGPathSegCurvetoQuadraticSmoothRel,tr);var rr=_createSuper(_SVGPathSegCurvetoQuadraticSmoothRel);function _SVGPathSegCurvetoQuadraticSmoothRel(tr,nr,ar){var ir;return _classCallCheck(this,_SVGPathSegCurvetoQuadraticSmoothRel),(ir=rr.call(this,er.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",tr))._x=nr,ir._y=ar,ir}return _createClass(_SVGPathSegCurvetoQuadraticSmoothRel,[{key:"toString",value:function toString(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)}}]),_SVGPathSegCurvetoQuadraticSmoothRel}(er);Object.defineProperties(vr.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}}),SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new tr(void 0)},SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(er,tr){return new rr(void 0,er,tr)},SVGPathElement.prototype.createSVGPathSegMovetoRel=function(er,tr){return new nr(void 0,er,tr)},SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(er,tr){return new ar(void 0,er,tr)},SVGPathElement.prototype.createSVGPathSegLinetoRel=function(er,tr){return new ir(void 0,er,tr)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(er,tr,rr,nr,ar,ir){return new or(void 0,er,tr,rr,nr,ar,ir)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(er,tr,rr,nr,ar,ir){return new sr(void 0,er,tr,rr,nr,ar,ir)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(er,tr,rr,nr){return new lr(void 0,er,tr,rr,nr)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(er,tr,rr,nr){return new cr(void 0,er,tr,rr,nr)},SVGPathElement.prototype.createSVGPathSegArcAbs=function(er,tr,rr,nr,ar,ir,or){return new ur(void 0,er,tr,rr,nr,ar,ir,or)},SVGPathElement.prototype.createSVGPathSegArcRel=function(er,tr,rr,nr,ar,ir,or){return new dr(void 0,er,tr,rr,nr,ar,ir,or)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(er){return new hr(void 0,er)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(er){return new pr(void 0,er)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(er){return new Ar(void 0,er)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(er){return new fr(void 0,er)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(er,tr,rr,nr){return new gr(void 0,er,tr,rr,nr)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(er,tr,rr,nr){return new mr(void 0,er,tr,rr,nr)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(er,tr){return new _r(void 0,er,tr)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(er,tr){return new vr(void 0,er,tr)},"getPathSegAtLength"in SVGPathElement.prototype||(SVGPathElement.prototype.getPathSegAtLength=function(er){if(void 0===er||!isFinite(er))throw new Error("Invalid arguments.");var tr=document.createElementNS("http://www.w3.org/2000/svg","path");tr.setAttribute("d",this.getAttribute("d"));var rr=tr.pathSegList.numberOfItems-1;if(rr<=0)return 0;do{if(tr.pathSegList.removeItem(rr),er>tr.getTotalLength())break;rr--}while(rr>0);return rr}),window.SVGPathSeg=er,window.SVGPathSegClosePath=tr,window.SVGPathSegMovetoAbs=rr,window.SVGPathSegMovetoRel=nr,window.SVGPathSegLinetoAbs=ar,window.SVGPathSegLinetoRel=ir,window.SVGPathSegCurvetoCubicAbs=or,window.SVGPathSegCurvetoCubicRel=sr,window.SVGPathSegCurvetoQuadraticAbs=lr,window.SVGPathSegCurvetoQuadraticRel=cr,window.SVGPathSegArcAbs=ur,window.SVGPathSegArcRel=dr,window.SVGPathSegLinetoHorizontalAbs=hr,window.SVGPathSegLinetoHorizontalRel=pr,window.SVGPathSegLinetoVerticalAbs=Ar,window.SVGPathSegLinetoVerticalRel=fr,window.SVGPathSegCurvetoCubicSmoothAbs=gr,window.SVGPathSegCurvetoCubicSmoothRel=mr,window.SVGPathSegCurvetoQuadraticSmoothAbs=_r,window.SVGPathSegCurvetoQuadraticSmoothRel=vr}if(!("SVGPathSegList"in window)||!("appendItem"in window.SVGPathSegList.prototype)){var yr=function(){function SVGPathSegList(er){_classCallCheck(this,SVGPathSegList),this._pathElement=er,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)}return _createClass(SVGPathSegList,[{key:"_checkPathSynchronizedToList",value:function _checkPathSynchronizedToList(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())}},{key:"_updateListFromPathMutations",value:function _updateListFromPathMutations(er){if(this._pathElement){var tr=!1;er.forEach((function(er){"d"===er.attributeName&&(tr=!0)})),tr&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}}},{key:"_writeListToPath",value:function _writeListToPath(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)}},{key:"segmentChanged",value:function segmentChanged(er){this._writeListToPath()}},{key:"clear",value:function clear(){this._checkPathSynchronizedToList(),this._list.forEach((function(er){er._owningPathSegList=null})),this._list=[],this._writeListToPath()}},{key:"initialize",value:function initialize(er){return this._checkPathSynchronizedToList(),this._list=[er],er._owningPathSegList=this,this._writeListToPath(),er}},{key:"_checkValidIndex",value:function _checkValidIndex(er){if(isNaN(er)||er<0||er>=this.numberOfItems)throw new Error("INDEX_SIZE_ERR")}},{key:"getItem",value:function getItem(er){return this._checkPathSynchronizedToList(),this._checkValidIndex(er),this._list[er]}},{key:"insertItemBefore",value:function insertItemBefore(er,tr){return this._checkPathSynchronizedToList(),tr>this.numberOfItems&&(tr=this.numberOfItems),er._owningPathSegList&&(er=er.clone()),this._list.splice(tr,0,er),er._owningPathSegList=this,this._writeListToPath(),er}},{key:"replaceItem",value:function replaceItem(er,tr){return this._checkPathSynchronizedToList(),er._owningPathSegList&&(er=er.clone()),this._checkValidIndex(tr),this._list[tr]=er,er._owningPathSegList=this,this._writeListToPath(),er}},{key:"removeItem",value:function removeItem(er){this._checkPathSynchronizedToList(),this._checkValidIndex(er);var tr=this._list[er];return this._list.splice(er,1),this._writeListToPath(),tr}},{key:"appendItem",value:function appendItem(er){return this._checkPathSynchronizedToList(),er._owningPathSegList&&(er=er.clone()),this._list.push(er),er._owningPathSegList=this,this._writeListToPath(),er}},{key:"_parsePath",value:function _parsePath(er){if(!er||!er.length)return[];var tr=this,rr=function(){function Builder(){_classCallCheck(this,Builder),this.pathSegList=[]}return _createClass(Builder,[{key:"appendSegment",value:function appendSegment(er){this.pathSegList.push(er)}}]),Builder}(),nr=function(){function Source(er){_classCallCheck(this,Source),this._string=er,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()}return _createClass(Source,[{key:"_isCurrentSpace",value:function _isCurrentSpace(){var er=this._string[this._currentIndex];return er<=" "&&(" "===er||"\n"===er||"\t"===er||"\r"===er||"\f"===er)}},{key:"_skipOptionalSpaces",value:function _skipOptionalSpaces(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex}},{key:"_skipOptionalSpacesOrDelimiter",value:function _skipOptionalSpacesOrDelimiter(){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)}},{key:"hasMoreData",value:function hasMoreData(){return this._currentIndex<this._endIndex}},{key:"peekSegmentType",value:function peekSegmentType(){var er=this._string[this._currentIndex];return this._pathSegTypeFromChar(er)}},{key:"_pathSegTypeFromChar",value:function _pathSegTypeFromChar(er){switch(er){case"Z":case"z":return SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return SVGPathSeg.PATHSEG_LINETO_REL;case"C":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return SVGPathSeg.PATHSEG_ARC_ABS;case"a":return SVGPathSeg.PATHSEG_ARC_REL;case"H":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return SVGPathSeg.PATHSEG_UNKNOWN}}},{key:"_nextCommandHelper",value:function _nextCommandHelper(er,tr){return("+"===er||"-"===er||"."===er||er>="0"&&er<="9")&&tr!==SVGPathSeg.PATHSEG_CLOSEPATH?tr===SVGPathSeg.PATHSEG_MOVETO_ABS?SVGPathSeg.PATHSEG_LINETO_ABS:tr===SVGPathSeg.PATHSEG_MOVETO_REL?SVGPathSeg.PATHSEG_LINETO_REL:tr:SVGPathSeg.PATHSEG_UNKNOWN}},{key:"initialCommandIsMoveTo",value:function initialCommandIsMoveTo(){if(!this.hasMoreData())return!0;var er=this.peekSegmentType();return er===SVGPathSeg.PATHSEG_MOVETO_ABS||er===SVGPathSeg.PATHSEG_MOVETO_REL}},{key:"_parseNumber",value:function _parseNumber(){var er=0,tr=0,rr=1,nr=0,ar=1,ir=1,or=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++,ar=-1),!(this._currentIndex===this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!==this._string.charAt(this._currentIndex))){for(var sr=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!==sr)for(var lr=this._currentIndex-1,cr=1;lr>=sr;)tr+=cr*(this._string.charAt(lr--)-"0"),cr*=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";)rr*=10,nr+=(this._string.charAt(this._currentIndex)-"0")/rr,this._currentIndex+=1}if(this._currentIndex!==or&&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++,ir=-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";)er*=10,er+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var ur=tr+nr;if(ur*=ar,er&&(ur*=Math.pow(10,ir*er)),or!==this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),ur}}},{key:"_parseArcFlag",value:function _parseArcFlag(){if(!(this._currentIndex>=this._endIndex)){var er=!1,tr=this._string.charAt(this._currentIndex++);if("0"===tr)er=!1;else{if("1"!==tr)return;er=!0}return this._skipOptionalSpacesOrDelimiter(),er}}},{key:"parseSegment",value:function parseSegment(){var er=this._string[this._currentIndex],rr=this._pathSegTypeFromChar(er);if(rr===SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand===SVGPathSeg.PATHSEG_UNKNOWN)return null;if((rr=this._nextCommandHelper(er,this._previousCommand))===SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=rr,rr){case SVGPathSeg.PATHSEG_MOVETO_REL:return new SVGPathSegMovetoRel(tr,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_MOVETO_ABS:return new SVGPathSegMovetoAbs(tr,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_REL:return new SVGPathSegLinetoRel(tr,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_ABS:return new SVGPathSegLinetoAbs(tr,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new SVGPathSegLinetoHorizontalRel(tr,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new SVGPathSegLinetoHorizontalAbs(tr,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new SVGPathSegLinetoVerticalRel(tr,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new SVGPathSegLinetoVerticalAbs(tr,this._parseNumber());case SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new SVGPathSegClosePath(tr);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var nr={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicRel(tr,nr.x,nr.y,nr.x1,nr.y1,nr.x2,nr.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:var ar={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicAbs(tr,ar.x,ar.y,ar.x1,ar.y1,ar.x2,ar.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:var ir={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothRel(tr,ir.x,ir.y,ir.x2,ir.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:var or={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothAbs(tr,or.x,or.y,or.x2,or.y2);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:var sr={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticRel(tr,sr.x,sr.y,sr.x1,sr.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:var lr={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticAbs(tr,lr.x,lr.y,lr.x1,lr.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new SVGPathSegCurvetoQuadraticSmoothRel(tr,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new SVGPathSegCurvetoQuadraticSmoothAbs(tr,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_ARC_REL:var cr={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcRel(tr,cr.x,cr.y,cr.x1,cr.y1,cr.arcAngle,cr.arcLarge,cr.arcSweep);case SVGPathSeg.PATHSEG_ARC_ABS:var ur={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcAbs(tr,ur.x,ur.y,ur.x1,ur.y1,ur.arcAngle,ur.arcLarge,ur.arcSweep);default:throw new Error("Unknown path seg type.")}}}]),Source}(),ar=new rr,ir=new nr(er);if(!ir.initialCommandIsMoveTo())return[];for(;ir.hasMoreData();){var or=ir.parseSegment();if(!or)return[];ar.appendSegment(or)}return ar.pathSegList}}],[{key:"_pathSegArrayAsString",value:function _pathSegArrayAsString(er){var tr="",rr=!0;return er.forEach((function(er){rr?(rr=!1,tr+=er._asPathString()):tr+=" "+er._asPathString()})),tr}}]),SVGPathSegList}();yr.prototype.classname="SVGPathSegList",Object.defineProperty(yr.prototype,"numberOfItems",{get:function get(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperties(SVGPathElement.prototype,{pathSegList:{get:function get(){return this._pathSegList||(this._pathSegList=new yr(this)),this._pathSegList},enumerable:!0},normalizedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0},animatedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0},animatedNormalizedPathSegList:{get:function get(){return this.pathSegList},enumerable:!0}}),window.SVGPathSegList=yr}}();var rd,nd=jQuery,ad=(Boolean(document.createElementNS&&document.createElementNS(Yu.SVG,"svg").createSVGRect),navigator.userAgent),id=document.createElementNS(Yu.SVG,"svg"),od=Boolean(window.opera),sd=ad.includes("AppleWebKit"),ld=ad.includes("Gecko/"),cd=ad.includes("MSIE"),ud=ad.includes("Chrome/"),dd=(ad.includes("Windows"),ad.includes("Macintosh")),hd="ontouchstart"in window,pd=Boolean(id.querySelector),Ad=Boolean(document.evaluate),fd=function(){var er=document.createElementNS(Yu.SVG,"path");er.setAttribute("d","M0,0 10,10");var tr=er.pathSegList,rr=er.createSVGPathSegLinetoAbs(5,5);try{return tr.replaceItem(rr,1),!0}catch(er){}return!1}(),gd=function(){var er=document.createElementNS(Yu.SVG,"path");er.setAttribute("d","M0,0 10,10");var tr=er.pathSegList,rr=er.createSVGPathSegLinetoAbs(5,5);try{return tr.insertItemBefore(rr,1),!0}catch(er){}return!1}(),md=function(){var er=document.createElementNS(Yu.SVG,"svg"),tr=document.createElementNS(Yu.SVG,"svg");document.documentElement.append(er),tr.setAttribute("x",5),er.append(tr);var rr=document.createElementNS(Yu.SVG,"text");rr.textContent="a",tr.append(rr);try{return 0===rr.getStartPositionOfChar(0).x}catch(er){return!1}finally{er.remove()}}(),_d=function(){var er=document.createElementNS(Yu.SVG,"svg");document.documentElement.append(er);var tr=document.createElementNS(Yu.SVG,"path");tr.setAttribute("d","M0,0 C0,0 10,10 10,0"),er.append(tr);var rr=tr.getBBox();return er.remove(),rr.height>4&&rr.height<5}(),vd=function(){var er=document.createElementNS(Yu.SVG,"svg");document.documentElement.append(er);var tr=document.createElementNS(Yu.SVG,"path");tr.setAttribute("d","M0,0 10,0");var rr=document.createElementNS(Yu.SVG,"path");rr.setAttribute("d","M5,0 15,0");var nr=document.createElementNS(Yu.SVG,"g");nr.append(tr,rr),er.append(nr);var ar=nr.getBBox();return er.remove(),15===ar.width}(),yd=(function(){var er=document.createElementNS(Yu.SVG,"rect");er.setAttribute("x",.1);var tr=!er.cloneNode(!1).getAttribute("x").includes(",");tr||nd.alert('NOTE: This version of Opera is known to contain bugs in SVG-edit.\nPlease upgrade to the <a href="http://opera.com">latest version</a> in which the problems have been fixed.')}(),(rd=document.createElementNS(Yu.SVG,"rect")).setAttribute("style","vector-effect:non-scaling-stroke"),"non-scaling-stroke"===rd.style.vectorEffect),bd=function(){var er=document.createElementNS(Yu.SVG,"rect").transform.baseVal,tr=id.createSVGTransform();er.appendItem(tr);var rr=er.getItem(0),nr=function isSVGTransform(er){return er&&"object"===_typeof(er)&&"function"==typeof er.setMatrix&&"angle"in er};return nr(rr)&&nr(tr)&&rr.type===tr.type&&rr.angle===tr.angle&&rr.matrix.a===tr.matrix.a&&rr.matrix.b===tr.matrix.b&&rr.matrix.c===tr.matrix.c&&rr.matrix.d===tr.matrix.d&&rr.matrix.e===tr.matrix.e&&rr.matrix.f===tr.matrix.f}(),wd=function isWebkit(){return sd},kd=function isGecko(){return ld},xd=function isIE(){return cd},Sd=function isChrome(){return ud},Cd=function isMac(){return dd},Bd=function isTouch(){return hd},Ed=function supportsGoodTextCharPos(){return md},Nd=function supportsNonScalingStroke(){return yd},Ld=ca.filter,Pd=arrayMethodHasSpeciesSupport("filter"),Td=arrayMethodUsesToLength("filter");_export({target:"Array",proto:!0,forced:!Pd||!Td},{filter:function filter(er){return Ld(this,er,arguments.length>1?arguments[1]:void 0)}});var Fd="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,toIndex=function(er){if(void 0===er)return 0;var tr=toInteger(er),rr=toLength(tr);if(tr!==rr)throw RangeError("Wrong length or index");return rr},Ud=Math.abs,Id=Math.pow,Rd=Math.floor,Md=Math.log,Qd=Math.LN2,ieee754_pack=function(er,tr,rr){var nr,ar,ir,or=new Array(rr),sr=8*rr-tr-1,lr=(1<<sr)-1,cr=lr>>1,ur=23===tr?Id(2,-24)-Id(2,-77):0,dr=er<0||0===er&&1/er<0?1:0,hr=0;for((er=Ud(er))!=er||Infinity===er?(ar=er!=er?1:0,nr=lr):(nr=Rd(Md(er)/Qd),er*(ir=Id(2,-nr))<1&&(nr--,ir*=2),(er+=nr+cr>=1?ur/ir:ur*Id(2,1-cr))*ir>=2&&(nr++,ir/=2),nr+cr>=lr?(ar=0,nr=lr):nr+cr>=1?(ar=(er*ir-1)*Id(2,tr),nr+=cr):(ar=er*Id(2,cr-1)*Id(2,tr),nr=0));tr>=8;or[hr++]=255&ar,ar/=256,tr-=8);for(nr=nr<<tr|ar,sr+=tr;sr>0;or[hr++]=255&nr,nr/=256,sr-=8);return or[--hr]|=128*dr,or},ieee754_unpack=function(er,tr){var rr,nr=er.length,ar=8*nr-tr-1,ir=(1<<ar)-1,or=ir>>1,sr=ar-7,lr=nr-1,cr=er[lr--],ur=127&cr;for(cr>>=7;sr>0;ur=256*ur+er[lr],lr--,sr-=8);for(rr=ur&(1<<-sr)-1,ur>>=-sr,sr+=tr;sr>0;rr=256*rr+er[lr],lr--,sr-=8);if(0===ur)ur=1-or;else{if(ur===ir)return rr?NaN:cr?-Infinity:Infinity;rr+=Id(2,tr),ur-=or}return(cr?-1:1)*rr*Id(2,ur-tr)},Od=function fill(er){for(var tr=toObject(this),rr=toLength(tr.length),nr=arguments.length,ar=toAbsoluteIndex(nr>1?arguments[1]:void 0,rr),ir=nr>2?arguments[2]:void 0,or=void 0===ir?rr:toAbsoluteIndex(ir,rr);or>ar;)tr[ar++]=er;return tr},Dd=Jr.f,jd=gr.f,Hd=Or.get,Gd=Or.set,Vd=tr.ArrayBuffer,zd=Vd,Kd=tr.DataView,qd=Kd&&Kd.prototype,Wd=Object.prototype,Xd=tr.RangeError,Yd=ieee754_pack,Jd=ieee754_unpack,packInt8=function(er){return[255&er]},packInt16=function(er){return[255&er,er>>8&255]},packInt32=function(er){return[255&er,er>>8&255,er>>16&255,er>>24&255]},unpackInt32=function(er){return er[3]<<24|er[2]<<16|er[1]<<8|er[0]},packFloat32=function(er){return Yd(er,23,4)},packFloat64=function(er){return Yd(er,52,8)},addGetter=function(er,tr){jd(er.prototype,tr,{get:function(){return Hd(this)[tr]}})},get$1=function(er,tr,rr,nr){var ar=toIndex(rr),ir=Hd(er);if(ar+tr>ir.byteLength)throw Xd("Wrong index");var or=Hd(ir.buffer).bytes,sr=ar+ir.byteOffset,lr=or.slice(sr,sr+tr);return nr?lr:lr.reverse()},set$2=function(er,tr,rr,nr,ar,ir){var or=toIndex(rr),sr=Hd(er);if(or+tr>sr.byteLength)throw Xd("Wrong index");for(var lr=Hd(sr.buffer).bytes,cr=or+sr.byteOffset,ur=nr(+ar),dr=0;dr<tr;dr++)lr[cr+dr]=ur[ir?dr:tr-dr-1]};if(Fd){if(!fails((function(){Vd(1)}))||!fails((function(){new Vd(-1)}))||fails((function(){return new Vd,new Vd(1.5),new Vd(NaN),"ArrayBuffer"!=Vd.name}))){for(var $d,Zd=(zd=function ArrayBuffer(er){return anInstance(this,zd),new Vd(toIndex(er))}).prototype=Vd.prototype,eh=Dd(Vd),th=0;eh.length>th;)($d=eh[th++])in zd||mr(zd,$d,Vd[$d]);Zd.constructor=zd}Ja&&Va(qd)!==Wd&&Ja(qd,Wd);var rh=new Kd(new zd(2)),nh=qd.setInt8;rh.setInt8(0,2147483648),rh.setInt8(1,2147483649),!rh.getInt8(0)&&rh.getInt8(1)||redefineAll(qd,{setInt8:function setInt8(er,tr){nh.call(this,er,tr<<24>>24)},setUint8:function setUint8(er,tr){nh.call(this,er,tr<<24>>24)}},{unsafe:!0})}else zd=function ArrayBuffer(er){anInstance(this,zd,"ArrayBuffer");var tr=toIndex(er);Gd(this,{bytes:Od.call(new Array(tr),0),byteLength:tr}),rr||(this.byteLength=tr)},Kd=function DataView(er,tr,nr){anInstance(this,Kd,"DataView"),anInstance(er,zd,"DataView");var ar=Hd(er).byteLength,ir=toInteger(tr);if(ir<0||ir>ar)throw Xd("Wrong offset");if(ir+(nr=void 0===nr?ar-ir:toLength(nr))>ar)throw Xd("Wrong length");Gd(this,{buffer:er,byteLength:nr,byteOffset:ir}),rr||(this.buffer=er,this.byteLength=nr,this.byteOffset=ir)},rr&&(addGetter(zd,"byteLength"),addGetter(Kd,"buffer"),addGetter(Kd,"byteLength"),addGetter(Kd,"byteOffset")),redefineAll(Kd.prototype,{getInt8:function getInt8(er){return get$1(this,1,er)[0]<<24>>24},getUint8:function getUint8(er){return get$1(this,1,er)[0]},getInt16:function getInt16(er){var tr=get$1(this,2,er,arguments.length>1?arguments[1]:void 0);return(tr[1]<<8|tr[0])<<16>>16},getUint16:function getUint16(er){var tr=get$1(this,2,er,arguments.length>1?arguments[1]:void 0);return tr[1]<<8|tr[0]},getInt32:function getInt32(er){return unpackInt32(get$1(this,4,er,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(er){return unpackInt32(get$1(this,4,er,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(er){return Jd(get$1(this,4,er,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(er){return Jd(get$1(this,8,er,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(er,tr){set$2(this,1,er,packInt8,tr)},setUint8:function setUint8(er,tr){set$2(this,1,er,packInt8,tr)},setInt16:function setInt16(er,tr){set$2(this,2,er,packInt16,tr,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(er,tr){set$2(this,2,er,packInt16,tr,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(er,tr){set$2(this,4,er,packInt32,tr,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(er,tr){set$2(this,4,er,packInt32,tr,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(er,tr){set$2(this,4,er,packFloat32,tr,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(er,tr){set$2(this,8,er,packFloat64,tr,arguments.length>2?arguments[2]:void 0)}});setToStringTag(zd,"ArrayBuffer"),setToStringTag(Kd,"DataView");var ah={ArrayBuffer:zd,DataView:Kd},ih=ah.ArrayBuffer,oh=ah.DataView,sh=ih.prototype.slice,lh=fails((function(){return!new ih(2).slice(1,void 0).byteLength}));_export({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:lh},{slice:function slice(er,tr){if(void 0!==sh&&void 0===tr)return sh.call(anObject(this),er);for(var rr=anObject(this).byteLength,nr=toAbsoluteIndex(er,rr),ar=toAbsoluteIndex(void 0===tr?rr:tr,rr),ir=new(speciesConstructor(this,ih))(toLength(ar-nr)),or=new oh(this),sr=new oh(ir),lr=0;nr<ar;)sr.setUint8(lr++,or.getUint8(nr++));return ir}});var ch,uh=gr.f,dh=tr.Int8Array,hh=dh&&dh.prototype,ph=tr.Uint8ClampedArray,Ah=ph&&ph.prototype,fh=dh&&Va(dh),gh=hh&&Va(hh),mh=Object.prototype,_h=mh.isPrototypeOf,vh=wellKnownSymbol("toStringTag"),yh=uid("TYPED_ARRAY_TAG"),bh=Fd&&!!Ja&&"Opera"!==go(tr.opera),wh=!1,kh={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},isTypedArray=function(er){return isObject(er)&&has(kh,go(er))};for(ch in kh)tr[ch]||(bh=!1);if((!bh||"function"!=typeof fh||fh===Function.prototype)&&(fh=function TypedArray(){throw TypeError("Incorrect invocation")},bh))for(ch in kh)tr[ch]&&Ja(tr[ch],fh);if((!bh||!gh||gh===mh)&&(gh=fh.prototype,bh))for(ch in kh)tr[ch]&&Ja(tr[ch].prototype,gh);if(bh&&Va(Ah)!==gh&&Ja(Ah,gh),rr&&!has(gh,vh))for(ch in wh=!0,uh(gh,vh,{get:function(){return isObject(this)?this[yh]:void 0}}),kh)tr[ch]&&mr(tr[ch],yh,ch);var xh={NATIVE_ARRAY_BUFFER_VIEWS:bh,TYPED_ARRAY_TAG:wh&&yh,aTypedArray:function(er){if(isTypedArray(er))return er;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(er){if(Ja){if(_h.call(fh,er))return er}else for(var rr in kh)if(has(kh,ch)){var nr=tr[rr];if(nr&&(er===nr||_h.call(nr,er)))return er}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(er,nr,ar){if(rr){if(ar)for(var ir in kh){var or=tr[ir];or&&has(or.prototype,er)&&delete or.prototype[er]}gh[er]&&!ar||Dr(gh,er,ar?nr:bh&&hh[er]||nr)}},exportTypedArrayStaticMethod:function(er,nr,ar){var ir,or;if(rr){if(Ja){if(ar)for(ir in kh)(or=tr[ir])&&has(or,er)&&delete or[er];if(fh[er]&&!ar)return;try{return Dr(fh,er,ar?nr:bh&&dh[er]||nr)}catch(er){}}for(ir in kh)!(or=tr[ir])||or[er]&&!ar||Dr(or,er,nr)}},isView:function isView(er){var tr=go(er);return"DataView"===tr||has(kh,tr)},isTypedArray:isTypedArray,TypedArray:fh,TypedArrayPrototype:gh},Sh=xh.NATIVE_ARRAY_BUFFER_VIEWS,Ch=tr.ArrayBuffer,Bh=tr.Int8Array,Eh=!Sh||!fails((function(){Bh(1)}))||!fails((function(){new Bh(-1)}))||!checkCorrectnessOfIteration((function(er){new Bh,new Bh(null),new Bh(1.5),new Bh(er)}),!0)||fails((function(){return 1!==new Bh(new Ch(2),1,void 0).length})),toOffset=function(er,tr){var rr=function(er){var tr=toInteger(er);if(tr<0)throw RangeError("The argument can't be less than 0");return tr}(er);if(rr%tr)throw RangeError("Wrong offset");return rr},Nh=xh.aTypedArrayConstructor,Lh=function from(er){var tr,rr,nr,ar,ir,or,sr=toObject(er),lr=arguments.length,cr=lr>1?arguments[1]:void 0,ur=void 0!==cr,dr=getIteratorMethod(sr);if(null!=dr&&!isArrayIteratorMethod(dr))for(or=(ir=dr.call(sr)).next,sr=[];!(ar=or.call(ir)).done;)sr.push(ar.value);for(ur&&lr>2&&(cr=functionBindContext(cr,arguments[2],2)),rr=toLength(sr.length),nr=new(Nh(this))(rr),tr=0;rr>tr;tr++)nr[tr]=ur?cr(sr[tr],tr):sr[tr];return nr},Ph=createCommonjsModule((function(er){var nr=Jr.f,ar=ca.forEach,ir=Or.get,or=Or.set,sr=gr.f,lr=Ar.f,cr=Math.round,ur=tr.RangeError,dr=ah.ArrayBuffer,hr=ah.DataView,pr=xh.NATIVE_ARRAY_BUFFER_VIEWS,fr=xh.TYPED_ARRAY_TAG,_r=xh.TypedArray,vr=xh.TypedArrayPrototype,yr=xh.aTypedArrayConstructor,br=xh.isTypedArray,wr="BYTES_PER_ELEMENT",kr="Wrong length",fromList=function(er,tr){for(var rr=0,nr=tr.length,ar=new(yr(er))(nr);nr>rr;)ar[rr]=tr[rr++];return ar},addGetter=function(er,tr){sr(er,tr,{get:function(){return ir(this)[tr]}})},isArrayBuffer=function(er){var tr;return er instanceof dr||"ArrayBuffer"==(tr=go(er))||"SharedArrayBuffer"==tr},isTypedArrayIndex=function(er,tr){return br(er)&&"symbol"!=typeof tr&&tr in er&&String(+tr)==String(tr)},xr=function getOwnPropertyDescriptor(er,tr){return isTypedArrayIndex(er,tr=toPrimitive(tr,!0))?createPropertyDescriptor(2,er[tr]):lr(er,tr)},Sr=function defineProperty(er,tr,rr){return!(isTypedArrayIndex(er,tr=toPrimitive(tr,!0))&&isObject(rr)&&has(rr,"value"))||has(rr,"get")||has(rr,"set")||rr.configurable||has(rr,"writable")&&!rr.writable||has(rr,"enumerable")&&!rr.enumerable?sr(er,tr,rr):(er[tr]=rr.value,er)};rr?(pr||(Ar.f=xr,gr.f=Sr,addGetter(vr,"buffer"),addGetter(vr,"byteOffset"),addGetter(vr,"byteLength"),addGetter(vr,"length")),_export({target:"Object",stat:!0,forced:!pr},{getOwnPropertyDescriptor:xr,defineProperty:Sr}),er.exports=function(er,rr,lr){var Ar=er.match(/\d+$/)[0]/8,gr=er+(lr?"Clamped":"")+"Array",yr="get"+er,xr="set"+er,Sr=tr[gr],Cr=Sr,Br=Cr&&Cr.prototype,Er={},addElement=function(er,tr){sr(er,tr,{get:function(){return function(er,tr){var rr=ir(er);return rr.view[yr](tr*Ar+rr.byteOffset,!0)}(this,tr)},set:function(er){return function(er,tr,rr){var nr=ir(er);lr&&(rr=(rr=cr(rr))<0?0:rr>255?255:255&rr),nr.view[xr](tr*Ar+nr.byteOffset,rr,!0)}(this,tr,er)},enumerable:!0})};pr?Eh&&(Cr=rr((function(er,tr,rr,nr){return anInstance(er,Cr,gr),inheritIfRequired(isObject(tr)?isArrayBuffer(tr)?void 0!==nr?new Sr(tr,toOffset(rr,Ar),nr):void 0!==rr?new Sr(tr,toOffset(rr,Ar)):new Sr(tr):br(tr)?fromList(Cr,tr):Lh.call(Cr,tr):new Sr(toIndex(tr)),er,Cr)})),Ja&&Ja(Cr,_r),ar(nr(Sr),(function(er){er in Cr||mr(Cr,er,Sr[er])})),Cr.prototype=Br):(Cr=rr((function(er,tr,rr,nr){anInstance(er,Cr,gr);var ar,ir,sr,lr=0,cr=0;if(isObject(tr)){if(!isArrayBuffer(tr))return br(tr)?fromList(Cr,tr):Lh.call(Cr,tr);ar=tr,cr=toOffset(rr,Ar);var pr=tr.byteLength;if(void 0===nr){if(pr%Ar)throw ur(kr);if((ir=pr-cr)<0)throw ur(kr)}else if((ir=toLength(nr)*Ar)+cr>pr)throw ur(kr);sr=ir/Ar}else sr=toIndex(tr),ar=new dr(ir=sr*Ar);for(or(er,{buffer:ar,byteOffset:cr,byteLength:ir,length:sr,view:new hr(ar)});lr<sr;)addElement(er,lr++)})),Ja&&Ja(Cr,_r),Br=Cr.prototype=ya(vr)),Br.constructor!==Cr&&mr(Br,"constructor",Cr),fr&&mr(Br,fr,gr),Er[gr]=Cr,_export({global:!0,forced:Cr!=Sr,sham:!pr},Er),wr in Cr||mr(Cr,wr,Ar),wr in Br||mr(Br,wr,Ar),setSpecies(gr)}):er.exports=function(){}}));Ph("Uint8",(function(er){return function Uint8Array(tr,rr,nr){return er(this,tr,rr,nr)}}));var Th=Math.min,Fh=[].copyWithin||function copyWithin(er,tr){var rr=toObject(this),nr=toLength(rr.length),ar=toAbsoluteIndex(er,nr),ir=toAbsoluteIndex(tr,nr),or=arguments.length>2?arguments[2]:void 0,sr=Th((void 0===or?nr:toAbsoluteIndex(or,nr))-ir,nr-ar),lr=1;for(ir<ar&&ar<ir+sr&&(lr=-1,ir+=sr-1,ar+=sr-1);sr-- >0;)ir in rr?rr[ar]=rr[ir]:delete rr[ar],ar+=lr,ir+=lr;return rr},Uh=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("copyWithin",(function copyWithin(er,tr){return Fh.call(Uh(this),er,tr,arguments.length>2?arguments[2]:void 0)}));var Ih=ca.every,Rh=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("every",(function every(er){return Ih(Rh(this),er,arguments.length>1?arguments[1]:void 0)}));var Mh=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("fill",(function fill(er){return Od.apply(Mh(this),arguments)}));var Qh=ca.filter,Oh=xh.aTypedArray,Dh=xh.aTypedArrayConstructor;(0,xh.exportTypedArrayMethod)("filter",(function filter(er){for(var tr=Qh(Oh(this),er,arguments.length>1?arguments[1]:void 0),rr=speciesConstructor(this,this.constructor),nr=0,ar=tr.length,ir=new(Dh(rr))(ar);ar>nr;)ir[nr]=tr[nr++];return ir}));var jh=ca.find,Hh=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("find",(function find(er){return jh(Hh(this),er,arguments.length>1?arguments[1]:void 0)}));var Gh=ca.findIndex,Vh=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("findIndex",(function findIndex(er){return Gh(Vh(this),er,arguments.length>1?arguments[1]:void 0)}));var zh=ca.forEach,Kh=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("forEach",(function forEach(er){zh(Kh(this),er,arguments.length>1?arguments[1]:void 0)}));var qh=qr.includes,Wh=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("includes",(function includes(er){return qh(Wh(this),er,arguments.length>1?arguments[1]:void 0)}));var Xh=qr.indexOf,Yh=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("indexOf",(function indexOf(er){return Xh(Yh(this),er,arguments.length>1?arguments[1]:void 0)}));var Jh=wellKnownSymbol("iterator"),$h=tr.Uint8Array,Zh=ni.values,ep=ni.keys,tp=ni.entries,rp=xh.aTypedArray,np=xh.exportTypedArrayMethod,ap=$h&&$h.prototype[Jh],ip=!!ap&&("values"==ap.name||null==ap.name),op=function values(){return Zh.call(rp(this))};np("entries",(function entries(){return tp.call(rp(this))})),np("keys",(function keys(){return ep.call(rp(this))})),np("values",op,!ip),np(Jh,op,!ip);var sp=xh.aTypedArray,lp=[].join;(0,xh.exportTypedArrayMethod)("join",(function join(er){return lp.apply(sp(this),arguments)}));var cp=Math.min,up=[].lastIndexOf,dp=!!up&&1/[1].lastIndexOf(1,-0)<0,hp=arrayMethodIsStrict("lastIndexOf"),pp=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0}),Ap=dp||!hp||!pp?function lastIndexOf(er){if(dp)return up.apply(this,arguments)||0;var tr=toIndexedObject(this),rr=toLength(tr.length),nr=rr-1;for(arguments.length>1&&(nr=cp(nr,toInteger(arguments[1]))),nr<0&&(nr=rr+nr);nr>=0;nr--)if(nr in tr&&tr[nr]===er)return nr||0;return-1}:up,fp=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(er){return Ap.apply(fp(this),arguments)}));var gp=ca.map,mp=xh.aTypedArray,_p=xh.aTypedArrayConstructor;(0,xh.exportTypedArrayMethod)("map",(function map(er){return gp(mp(this),er,arguments.length>1?arguments[1]:void 0,(function(er,tr){return new(_p(speciesConstructor(er,er.constructor)))(tr)}))}));var vp=ui.left,yp=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("reduce",(function reduce(er){return vp(yp(this),er,arguments.length,arguments.length>1?arguments[1]:void 0)}));var bp=ui.right,wp=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("reduceRight",(function reduceRight(er){return bp(wp(this),er,arguments.length,arguments.length>1?arguments[1]:void 0)}));var kp=xh.aTypedArray,xp=xh.exportTypedArrayMethod,Sp=Math.floor;xp("reverse",(function reverse(){for(var er,tr=this,rr=kp(tr).length,nr=Sp(rr/2),ar=0;ar<nr;)er=tr[ar],tr[ar++]=tr[--rr],tr[rr]=er;return tr}));var Cp=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("set",(function set(er){Cp(this);var tr=toOffset(arguments.length>1?arguments[1]:void 0,1),rr=this.length,nr=toObject(er),ar=toLength(nr.length),ir=0;if(ar+tr>rr)throw RangeError("Wrong length");for(;ir<ar;)this[tr+ir]=nr[ir++]}),fails((function(){new Int8Array(1).set({})})));var Bp=xh.aTypedArray,Ep=xh.aTypedArrayConstructor,Np=[].slice;(0,xh.exportTypedArrayMethod)("slice",(function slice(er,tr){for(var rr=Np.call(Bp(this),er,tr),nr=speciesConstructor(this,this.constructor),ar=0,ir=rr.length,or=new(Ep(nr))(ir);ir>ar;)or[ar]=rr[ar++];return or}),fails((function(){new Int8Array(1).slice()})));var Lp=ca.some,Pp=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("some",(function some(er){return Lp(Pp(this),er,arguments.length>1?arguments[1]:void 0)}));var Tp=xh.aTypedArray,Fp=[].sort;(0,xh.exportTypedArrayMethod)("sort",(function sort(er){return Fp.call(Tp(this),er)}));var Up=xh.aTypedArray;(0,xh.exportTypedArrayMethod)("subarray",(function subarray(er,tr){var rr=Up(this),nr=rr.length,ar=toAbsoluteIndex(er,nr);return new(speciesConstructor(rr,rr.constructor))(rr.buffer,rr.byteOffset+ar*rr.BYTES_PER_ELEMENT,toLength((void 0===tr?nr:toAbsoluteIndex(tr,nr))-ar))}));var Ip=tr.Int8Array,Rp=xh.aTypedArray,Mp=xh.exportTypedArrayMethod,Qp=[].toLocaleString,Op=[].slice,Dp=!!Ip&&fails((function(){Qp.call(new Ip(1))}));Mp("toLocaleString",(function toLocaleString(){return Qp.apply(Dp?Op.call(Rp(this)):Rp(this),arguments)}),fails((function(){return[1,2].toLocaleString()!=new Ip([1,2]).toLocaleString()}))||!fails((function(){Ip.prototype.toLocaleString.call([1,2])})));var jp=xh.exportTypedArrayMethod,Hp=tr.Uint8Array,Gp=Hp&&Hp.prototype||{},Vp=[].toString,zp=[].join;fails((function(){Vp.call({})}))&&(Vp=function toString(){return zp.call(this)});var Kp=Gp.toString!=Vp;
|
||
/**
|
||
* A jQuery module to work with SVG attributes.
|
||
* @module jQueryAttr
|
||
* @license MIT
|
||
*/
|
||
function jQueryPluginSVG(er){var tr=er.fn.attr;return er.fn.attr=function(er,rr){var nr=this.length;if(!nr)return tr.call(this,er,rr);for(var ar=0;ar<nr;++ar){var ir=this[ar];if("http://www.w3.org/2000/svg"!==ir.namespaceURI)return tr.call(this,er,rr);if(void 0!==rr)ir.setAttribute(er,rr);else if(Array.isArray(er)){for(var or={},sr=er.length;sr--;){var lr=er[sr],cr=ir.getAttribute(lr);(cr||"0"===cr)&&(cr=isNaN(cr)?cr:cr-0),or[lr]=cr}return or}if("object"!==_typeof(er)){var ur=ir.getAttribute(er);return(ur||"0"===ur)&&(ur=isNaN(ur)?ur:ur-0),ur}for(var dr=0,hr=Object.entries(er);dr<hr.length;dr++){var pr=_slicedToArray(hr[dr],2),Ar=pr[0],fr=pr[1];ir.setAttribute(Ar,fr)}}return this},er}jp("toString",Vp,Kp);var qp=document.createElementNS(Yu.SVG,"svg");function transformToString(er){var tr=er.matrix,rr="";switch(er.type){case 1:rr="matrix("+[tr.a,tr.b,tr.c,tr.d,tr.e,tr.f].join(",")+")";break;case 2:rr="translate("+tr.e+","+tr.f+")";break;case 3:rr=tr.a===tr.d?"scale("+tr.a+")":"scale("+tr.a+","+tr.d+")";break;case 4:var nr=0,ar=0;if(0!==er.angle){var ir=1-tr.a;ar=(ir*tr.f+tr.b*tr.e)/(ir*ir+tr.b*tr.b),nr=(tr.e-tr.b*ar)/ir}rr="rotate("+er.angle+" "+nr+","+ar+")"}return rr}var Wp,Xp={},Yp=function(){function SVGTransformList(er){_classCallCheck(this,SVGTransformList),this._elem=er||null,this._xforms=[],this._update=function(){for(var er="",tr=0;tr<this.numberOfItems;++tr){er+=transformToString(this._list.getItem(tr))+" "}this._elem.setAttribute("transform",er)},this._list=this,this._init=function(){var er=this,tr=this._elem.getAttribute("transform");if(tr)for(var rr=/\s*((scale|matrix|rotate|translate)\s*\(.*?\))\s*,?\s*/,nr=!0;nr;)nr=tr.match(rr),tr=tr.replace(rr,""),nr&&nr[1]&&function(){var tr=nr[1].split(/\s*\(/),rr=tr[0],ar=tr[1].match(/\s*(.*?)\s*\)/);ar[1]=ar[1].replace(/(\d)-/g,"$1 -");var ir=ar[1].split(/[, ]+/),or="abcdef".split(""),sr=qp.createSVGMatrix();Object.values(ir).forEach((function(er,tr){ir[tr]=Number.parseFloat(er),"matrix"===rr&&(sr[or[tr]]=ir[tr])}));var lr=qp.createSVGTransform(),cr="set"+rr.charAt(0).toUpperCase()+rr.slice(1),ur="matrix"===rr?[sr]:ir;"scale"===rr&&1===ur.length?ur.push(ur[0]):"translate"===rr&&1===ur.length?ur.push(0):"rotate"===rr&&1===ur.length&&ur.push(0,0),lr[cr].apply(lr,_toConsumableArray(ur)),er._list.appendItem(lr)}()},this._removeFromOtherLists=function(er){er&&Object.values(Xp).some((function(tr){for(var rr=0,nr=tr._xforms.length;rr<nr;++rr)if(tr._xforms[rr]===er)return tr.removeItem(rr),!0;return!1}))},this.numberOfItems=0}return _createClass(SVGTransformList,[{key:"clear",value:function clear(){this.numberOfItems=0,this._xforms=[]}},{key:"initialize",value:function initialize(er){this.numberOfItems=1,this._removeFromOtherLists(er),this._xforms=[er]}},{key:"getItem",value:function getItem(er){if(er<this.numberOfItems&&er>=0)return this._xforms[er];var tr=new Error("DOMException with code=INDEX_SIZE_ERR");throw tr.code=1,tr}},{key:"insertItemBefore",value:function insertItemBefore(er,tr){var rr=null;if(tr>=0)if(tr<this.numberOfItems){this._removeFromOtherLists(er);var nr,ar=new Array(this.numberOfItems+1);for(nr=0;nr<tr;++nr)ar[nr]=this._xforms[nr];ar[nr]=er;for(var ir=nr+1;nr<this.numberOfItems;++ir,++nr)ar[ir]=this._xforms[nr];this.numberOfItems++,this._xforms=ar,rr=er,this._list._update()}else rr=this._list.appendItem(er);return rr}},{key:"replaceItem",value:function replaceItem(er,tr){var rr=null;return tr<this.numberOfItems&&tr>=0&&(this._removeFromOtherLists(er),this._xforms[tr]=er,rr=er,this._list._update()),rr}},{key:"removeItem",value:function removeItem(er){if(er<this.numberOfItems&&er>=0){var tr,rr=this._xforms[er],nr=new Array(this.numberOfItems-1);for(tr=0;tr<er;++tr)nr[tr]=this._xforms[tr];for(var ar=tr;ar<this.numberOfItems-1;++ar,++tr)nr[ar]=this._xforms[tr+1];return this.numberOfItems--,this._xforms=nr,this._list._update(),rr}var ir=new Error("DOMException with code=INDEX_SIZE_ERR");throw ir.code=1,ir}},{key:"appendItem",value:function appendItem(er){return this._removeFromOtherLists(er),this._xforms.push(er),this.numberOfItems++,this._list._update(),er}}]),SVGTransformList}(),Jp=function removeElementFromListMap(er){er.id&&Xp[er.id]&&delete Xp[er.id]},$p=function getTransformList(er){if(!function supportsNativeTransformLists(){return bd}()){var tr=er.id||"temp",rr=Xp[tr];return rr&&"temp"!==tr||(Xp[tr]=new Yp(er),Xp[tr]._init(),rr=Xp[tr]),rr}return er.transform?er.transform.baseVal:er.gradientTransform?er.gradientTransform.baseVal:er.patternTransform?er.patternTransform.baseVal:null},Zp=["x","x1","cx","rx","width"],eA=["y","y1","cy","ry","height"],tA=["r","radius"].concat(Zp,eA),rA={},nA=function getTypeMap(){return rA},aA=function shortFloat(er){var tr=Wp.getRoundDigits();return isNaN(er)?Array.isArray(er)?shortFloat(er[0])+","+shortFloat(er[1]):Number.parseFloat(er).toFixed(tr)-0:Number(Number(er).toFixed(tr))},iA=function convertUnit(er,tr){return tr=tr||Wp.getBaseUnit(),aA(er/rA[tr])},oA=function setUnitAttr(er,tr,rr){er.setAttribute(tr,rr)},sA=function convertToNum(er,tr){if(!isNaN(tr))return tr-0;if("%"===tr.substr(-1)){var rr=tr.substr(0,tr.length-1)/100,nr=Wp.getWidth(),ar=Wp.getHeight();return Zp.includes(er)?rr*nr:eA.includes(er)?rr*ar:rr*Math.sqrt(nr*nr+ar*ar)/Math.sqrt(2)}var ir=tr.substr(-2);return tr.substr(0,tr.length-2)*rA[ir]},lA=function isValidUnit(er,tr,rr){if(tA.includes(er))return!isNaN(tr)||(tr=tr.toLowerCase(),Object.keys(rA).some((function(er){return new RegExp("^-?[\\d\\.]+"+er+"$").test(tr)})));if("id"===er){var nr=!1;try{var ar=Wp.getElement(tr);nr=!ar||ar===rr}catch(er){}return nr}return!0},cA=ui.right,uA=arrayMethodIsStrict("reduceRight"),dA=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!uA||!dA},{reduceRight:function reduceRight(er){return cA(this,er,arguments.length,arguments.length>1?arguments[1]:void 0)}});var hA=document.createElementNS(Yu.SVG,"svg"),pA=function transformPoint(er,tr,rr){return{x:rr.a*er+rr.c*tr+rr.e,y:rr.b*er+rr.d*tr+rr.f}},AA=function isIdentity(er){return 1===er.a&&0===er.b&&0===er.c&&1===er.d&&0===er.e&&0===er.f},fA=function matrixMultiply(){for(var er=arguments.length,tr=new Array(er),rr=0;rr<er;rr++)tr[rr]=arguments[rr];var nr=tr.reduceRight((function(er,tr){return tr.multiply(er)}));return Math.abs(nr.a)<1e-14&&(nr.a=0),Math.abs(nr.b)<1e-14&&(nr.b=0),Math.abs(nr.c)<1e-14&&(nr.c=0),Math.abs(nr.d)<1e-14&&(nr.d=0),Math.abs(nr.e)<1e-14&&(nr.e=0),Math.abs(nr.f)<1e-14&&(nr.f=0),nr},gA=function hasMatrixTransform(er){if(!er)return!1;for(var tr=er.numberOfItems;tr--;){var rr=er.getItem(tr);if(1===rr.type&&!AA(rr.matrix))return!0}return!1},mA=function transformBox(er,tr,rr,nr,ar){var ir=pA(er,tr,ar),or=pA(er+rr,tr,ar),sr=pA(er,tr+nr,ar),lr=pA(er+rr,tr+nr,ar),cr=Math.min(ir.x,or.x,sr.x,lr.x),ur=Math.max(ir.x,or.x,sr.x,lr.x),dr=Math.min(ir.y,or.y,sr.y,lr.y);return{tl:ir,tr:or,bl:sr,br:lr,aabox:{x:cr,y:dr,width:ur-cr,height:Math.max(ir.y,or.y,sr.y,lr.y)-dr}}},_A=function transformListToTransform(er,tr,rr){if(!er)return hA.createSVGTransformFromMatrix(hA.createSVGMatrix());if(tr=tr||0,rr=rr||er.numberOfItems-1,(tr=Number.parseInt(tr))>(rr=Number.parseInt(rr))){var nr=rr;rr=tr,tr=nr}for(var ar=hA.createSVGMatrix(),ir=tr;ir<=rr;++ir){var or=ir>=0&&ir<er.numberOfItems?er.getItem(ir).matrix:hA.createSVGMatrix();ar=fA(ar,or)}return hA.createSVGTransformFromMatrix(ar)},vA=function getMatrix(er){var tr=$p(er);return _A(tr).matrix},yA=function snapToAngle(er,tr,rr,nr){var ar=Math.PI/4,ir=rr-er,or=nr-tr,sr=Math.atan2(or,ir),lr=Math.sqrt(ir*ir+or*or),cr=Math.round(sr/ar)*ar;return{x:er+lr*Math.cos(cr),y:tr+lr*Math.sin(cr),a:cr}},bA=function rectsIntersect(er,tr){return tr.x<er.x+er.width&&tr.x+tr.width>er.x&&tr.y<er.y+er.height&&tr.y+tr.height>er.y},wA=jQueryPluginSVG(jQuery),kA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",xA="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use,clipPath".split(","),SA=null,CA=null,BA=null,EA=null,NA=function dropXMLInternalSubset(er){return er.replace(/(<!DOCTYPE\s+\w*\s*\[).*(\?]>)/,"$1$2")},LA=function toXml(er){return er.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};function encode64(er){if(er=PA(er),window.btoa)return window.btoa(er);var tr=new Array(4*Math.floor((er.length+2)/3)),rr=0,nr=0;do{var ar=er.charCodeAt(rr++),ir=er.charCodeAt(rr++),or=er.charCodeAt(rr++),sr=ar>>2,lr=(3&ar)<<4|ir>>4,cr=(15&ir)<<2|or>>6,ur=63∨Number.isNaN(ir)?(cr=64,ur=64):Number.isNaN(or)&&(ur=64),tr[nr++]=kA.charAt(sr),tr[nr++]=kA.charAt(lr),tr[nr++]=kA.charAt(cr),tr[nr++]=kA.charAt(ur)}while(rr<er.length);return tr.join("")}function decode64(er){if(window.atob)return decodeUTF8(window.atob(er));er=er.replace(/[^A-Za-z\d+/=]/g,"");var tr="",rr=0;do{var nr=kA.indexOf(er.charAt(rr++)),ar=kA.indexOf(er.charAt(rr++)),ir=kA.indexOf(er.charAt(rr++)),or=kA.indexOf(er.charAt(rr++)),sr=nr<<2|ar>>4,lr=(15&ar)<<4|ir>>2,cr=(3&ir)<<6|or;tr+=String.fromCharCode(sr),64!==ir&&(tr+=String.fromCharCode(lr)),64!==or&&(tr+=String.fromCharCode(cr))}while(rr<er.length);return decodeUTF8(tr)}function decodeUTF8(er){return decodeURIComponent(escape(er))}var PA=function encodeUTF8(er){return unescape(encodeURIComponent(er))},TA=function dataURLToObjectURL(er){if("undefined"==typeof Uint8Array||"undefined"==typeof Blob||"undefined"==typeof URL||!URL.createObjectURL)return"";for(var tr=er.split(","),rr=tr[0].match(/:(.*?);/)[1],nr=atob(tr[1]),ar=nr.length,ir=new Uint8Array(ar);ar--;)ir[ar]=nr.charCodeAt(ar);var or=new Blob([ir],{type:rr});return URL.createObjectURL(or)},FA=function createObjectURL(er){return er&&"undefined"!=typeof URL&&URL.createObjectURL?URL.createObjectURL(er):""},UA=function(){if("undefined"==typeof Blob)return"";var er=new Blob(["<html><head><title>SVG-edit</title></head><body> </body></html>"],{type:"text/html"});return FA(er)}(),IA=function text2xml(er){var tr,rr;er.includes("<svg:svg")&&(er=er.replace(/<(\/?)svg:/g,"<$1").replace("xmlns:svg","xmlns"));try{(rr=window.DOMParser?new DOMParser:new window.ActiveXObject("Microsoft.XMLDOM")).async=!1}catch(er){throw new Error("XML Parser could not be instantiated")}try{tr=rr.loadXML?!!rr.loadXML(er)&&rr:rr.parseFromString(er,"text/xml")}catch(er){throw new Error("Error parsing XML string")}return tr},RA=function walkTree(er,tr){if(er&&1===er.nodeType){tr(er);for(var rr=er.childNodes.length;rr--;)walkTree(er.childNodes.item(rr),tr)}},MA=function getUrlFromAttr(er){if(er){if(er.startsWith('url("'))return er.substring(5,er.indexOf('"',6));if(er.startsWith("url('"))return er.substring(5,er.indexOf("'",6));if(er.startsWith("url("))return er.substring(4,er.indexOf(")"))}return null},QA=function getHref(er){return er.getAttributeNS(Yu.XLINK,"href")},OA=function setHref(er,tr){er.setAttributeNS(Yu.XLINK,"xlink:href",tr)},DA=function findDefs(){var er=SA.getSVGContent(),tr=er.getElementsByTagNameNS(Yu.SVG,"defs");return tr.length>0?tr=tr[0]:(tr=er.ownerDocument.createElementNS(Yu.SVG,"defs"),er.firstChild?er.insertBefore(tr,er.firstChild.nextSibling):er.append(tr)),tr},jA=function getPathBBox(er){for(var tr=er.pathSegList,rr=tr.numberOfItems,nr=[[],[]],ar=tr.getItem(0),ir=[ar.x,ar.y],or=function getCalc(er,tr,rr,nr){return function(ar){return 1-Math.pow(ar,3)*ir[er]+3-Math.pow(ar,2)*ar*tr[er]+3*(1-ar)*Math.pow(ar,2)*rr[er]+Math.pow(ar,3)*nr[er]}},sr=0;sr<rr;sr++){var lr=tr.getItem(sr);if(void 0!==lr.x)if(nr[0].push(ir[0]),nr[1].push(ir[1]),lr.x1){for(var cr=[lr.x1,lr.y1],ur=[lr.x2,lr.y2],dr=[lr.x,lr.y],hr=0;hr<2;hr++){var pr=or(hr,cr,ur,dr),Ar=6*ir[hr]-12*cr[hr]+6*ur[hr],fr=-3*ir[hr]+9*cr[hr]-9*ur[hr]+3*dr[hr],gr=3*cr[hr]-3*ir[hr];if(0!==fr){var mr=Math.pow(Ar,2)-4*gr*fr;if(!(mr<0)){var _r=(-Ar+Math.sqrt(mr))/(2*fr);_r>0&&_r<1&&nr[hr].push(pr(_r));var vr=(-Ar-Math.sqrt(mr))/(2*fr);vr>0&&vr<1&&nr[hr].push(pr(vr))}}else{if(0===Ar)continue;var yr=-gr/Ar;yr>0&&yr<1&&nr[hr].push(pr(yr))}}ir=dr}else nr[0].push(lr.x),nr[1].push(lr.y)}var br=Math.min.apply(null,nr[0]),wr=Math.max.apply(null,nr[0])-br,kr=Math.min.apply(null,nr[1]);return{x:br,y:kr,width:wr,height:Math.max.apply(null,nr[1])-kr}};function groupBBFix(er){if(function supportsHVLineContainerBBox(){return vd}())try{return er.getBBox()}catch(er){}var tr,rr,nr=wA.data(er,"ref"),ar=null;nr?(rr=wA(nr).children().clone().attr("visibility","hidden"),wA(EA).append(rr),ar=rr.filter("line, path")):ar=wA(er).find("line, path");var ir=!1;if(ar.length)if(ar.each((function(){var er=this.getBBox();er.width&&er.height||(ir=!0)})),ir){var or=nr?rr:wA(er).children();tr=WA(or)}else tr=er.getBBox();else tr=er.getBBox();return nr&&rr.remove(),tr}var HA=function getBBox(er){var tr=er||SA.geSelectedElements()[0];if(1!==er.nodeType)return null;var rr=tr.nodeName,nr=null;switch(rr){case"text":""===tr.textContent?(tr.textContent="a",nr=tr.getBBox(),tr.textContent=""):tr.getBBox&&(nr=tr.getBBox());break;case"path":!function supportsPathBBox(){return _d}()?nr=jA(tr):tr.getBBox&&(nr=tr.getBBox());break;case"g":case"a":nr=groupBBFix(tr);break;default:if("use"===rr&&(nr=groupBBFix(tr)),"use"===rr||"foreignObject"===rr&&wd()){if(nr||(nr=tr.getBBox()),!wd()){var ar=nr,ir=ar.x,or=ar.y;nr={width:ar.width,height:ar.height,x:ir+Number.parseFloat(tr.getAttribute("x")||0),y:or+Number.parseFloat(tr.getAttribute("y")||0)}}}else if(xA.includes(rr))if(tr)try{nr=tr.getBBox()}catch(er){var sr=tr.getExtentOfChar(0),lr=tr.getComputedTextLength();nr={x:sr.x,y:sr.y,width:lr,height:sr.height}}else{var cr=wA(tr).closest("foreignObject");cr.length&&cr[0].getBBox&&(nr=cr[0].getBBox())}}return nr&&(nr=function bboxToObj(er){return{x:er.x,y:er.y,width:er.width,height:er.height}}(nr)),nr},GA=function getPathDFromSegments(er){var tr="";return wA.each(er,(function(er,rr){var nr=_slicedToArray(rr,2),ar=nr[0],ir=nr[1];tr+=ar;for(var or=0;or<ir.length;or+=2)tr+=ir[or]+","+ir[or+1]+" "})),tr},VA=function getPathDFromElement(er){var tr,rr,nr,ar,ir=1.81;switch(er.tagName){case"ellipse":case"circle":var or=rr=wA(er).attr(["rx","ry","cx","cy"]),sr=or.cx,lr=or.cy,cr=rr;nr=cr.rx,ar=cr.ry,"circle"===er.tagName&&(nr=ar=wA(er).attr("r")),tr=GA([["M",[sr-nr,lr]],["C",[sr-nr,lr-ar/ir,sr-nr/ir,lr-ar,sr,lr-ar]],["C",[sr+nr/ir,lr-ar,sr+nr,lr-ar/ir,sr+nr,lr]],["C",[sr+nr,lr+ar/ir,sr+nr/ir,lr+ar,sr,lr+ar]],["C",[sr-nr/ir,lr+ar,sr-nr,lr+ar/ir,sr-nr,lr]],["Z",[]]]);break;case"path":tr=er.getAttribute("d");break;case"line":tr="M"+(rr=wA(er).attr(["x1","y1","x2","y2"])).x1+","+rr.y1+"L"+rr.x2+","+rr.y2;break;case"polyline":tr="M"+er.getAttribute("points");break;case"polygon":tr="M"+er.getAttribute("points")+" Z";break;case"rect":var ur=wA(er).attr(["rx","ry"]);nr=ur.rx,ar=ur.ry;var dr=er.getBBox(),hr=dr.x,pr=dr.y,Ar=dr.width,fr=dr.height;ir=4-ir,tr=GA(nr||ar?[["M",[hr,pr+ar]],["C",[hr,pr+ar/ir,hr+nr/ir,pr,hr+nr,pr]],["L",[hr+Ar-nr,pr]],["C",[hr+Ar-nr/ir,pr,hr+Ar,pr+ar/ir,hr+Ar,pr+ar]],["L",[hr+Ar,pr+fr-ar]],["C",[hr+Ar,pr+fr-ar/ir,hr+Ar-nr/ir,pr+fr,hr+Ar-nr,pr+fr]],["L",[hr+nr,pr+fr]],["C",[hr+nr/ir,pr+fr,hr,pr+fr-ar/ir,hr,pr+fr-ar]],["L",[hr,pr+ar]],["Z",[]]]:[["M",[hr,pr]],["L",[hr+Ar,pr]],["L",[hr+Ar,pr+fr]],["L",[hr,pr+fr]],["L",[hr,pr]],["Z",[]]])}return tr},zA=function getExtraAttributesForConvertToPath(er){var tr={};return wA.each(["marker-start","marker-end","marker-mid","filter","clip-path"],(function(){var rr=er.getAttribute(this);rr&&(tr[this]=rr)})),tr},KA=function getBBoxOfElementAsPath(er,tr,rr){var nr=tr({element:"path",attr:zA(er)}),ar=er.getAttribute("transform");ar&&nr.setAttribute("transform",ar);var ir=er.parentNode;er.nextSibling?er.before(nr):ir.append(nr);var or=VA(er);or?nr.setAttribute("d",or):nr.remove(),rr.resetOrientation(nr);var sr=!1;try{sr=nr.getBBox()}catch(er){}return nr.remove(),sr};var qA=function getBBoxWithTransform(er,tr,rr){var nr=HA(er);if(!nr)return null;var ar=$p(er),ir=JA(ar),or=gA(ar);if(ir||or){var sr=!1;if(function bBoxCanBeOptimizedOverNativeGetBBox(er,tr){var rr=er%90;return tr||!(rr>-.001&&rr<.001||rr<-89.99||rr>89.99)}(ir,or)){if(["ellipse","path","line","polyline","polygon"].includes(er.tagName))nr=sr=KA(er,tr,rr);else if("rect"===er.tagName){var lr=er.getAttribute("rx"),cr=er.getAttribute("ry");(lr||cr)&&(nr=sr=KA(er,tr,rr))}}if(!sr){var ur=_A(ar).matrix;nr=mA(nr.x,nr.y,nr.width,nr.height,ur).aabox}}return nr};function getStrokeOffsetForBBox(er){var tr=er.getAttribute("stroke-width");return isNaN(tr)||"none"===er.getAttribute("stroke")?0:tr/2}var WA=function getStrokedBBox(er,tr,rr){if(!er||!er.length)return!1;var nr;if(wA.each(er,(function(){nr||this.parentNode&&(nr=qA(this,tr,rr))})),void 0===nr)return null;var ar=nr.x+nr.width,ir=nr.y+nr.height,or=nr.x,sr=nr.y;if(1===er.length){var lr=getStrokeOffsetForBBox(er[0]);or-=lr,sr-=lr,ar+=lr,ir+=lr}else wA.each(er,(function(er,nr){var lr=qA(nr,tr,rr);if(lr){var cr=getStrokeOffsetForBBox(nr);or=Math.min(or,lr.x-cr),sr=Math.min(sr,lr.y-cr),1===nr.nodeType&&(ar=Math.max(ar,lr.x+lr.width+cr),ir=Math.max(ir,lr.y+lr.height+cr))}}));return nr.x=or,nr.y=sr,nr.width=ar-or,nr.height=ir-sr,nr},XA=function getVisibleElements(er){er||(er=wA(SA.getSVGContent()).children());var tr=[];return wA(er).children().each((function(er,rr){rr.getBBox&&tr.push(rr)})),tr.reverse()},YA=function getStrokedBBoxDefaultVisible(er){return er||(er=XA()),WA(er,SA.addSVGElementFromJson,SA.pathActions)},JA=function getRotationAngleFromTransformList(er,tr){if(!er)return 0;for(var rr=er.numberOfItems,nr=0;nr<rr;++nr){var ar=er.getItem(nr);if(4===ar.type)return tr?ar.angle*Math.PI/180:ar.angle}return 0},$A=function getRotationAngle(er,tr){var rr=er||SA.getSelectedElements()[0],nr=$p(rr);return JA(nr,tr)},ZA=function getRefElem(er){return ef(MA(er).substr(1))},ef=function supportsSelectors(){return pd}()?function(er){return EA.querySelector("#"+er)}:function supportsXpath(){return Ad}()?function(er){return CA.evaluate('svg:svg[@id="svgroot"]//svg:*[@id="'+er+'"]',BA,(function(){return Yu.SVG}),9,null).singleNodeValue}:function(er){return wA(EA).find("[id=".concat(er,"]"))[0]},tf=function assignAttributes(er,tr,rr,nr){for(var ar=0,ir=Object.entries(tr);ar<ir.length;ar++){var or=_slicedToArray(ir[ar],2),sr=or[0],lr=or[1],cr="xml:"===sr.substr(0,4)?Yu.XML:"xlink:"===sr.substr(0,6)?Yu.XLINK:null;of(lr)?cr?er.removeAttributeNS(cr,sr):er.removeAttribute(sr):cr?er.setAttributeNS(cr,sr,lr):nr?oA(er,sr,lr):er.setAttribute(sr,lr)}},rf=function cleanupElement(er){var tr={"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"===er.nodeName&&(delete tr.rx,delete tr.ry),Object.entries(tr).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ar=rr[1];er.getAttribute(nr)===String(ar)&&er.removeAttribute(nr)}))},nf=function snapToGrid(er){var tr=SA.getBaseUnit(),rr=SA.getSnappingStep();return"px"!==tr&&(rr*=nA()[tr]),er=Math.round(er/rr)*rr},af=function preventClickDefault(er){wA(er).click((function(er){er.preventDefault()}))},of=function isNullish(er){return null==er},sf=jQuery,lf={},cf=function injectExtendedContextMenuItemsIntoDom(){Object.values(lf).forEach((function(er){!function injectExtendedContextMenuItemIntoDom(er){Object.keys(lf).length||sf("#cmenu_canvas").append("<li class='separator'>");var tr=er.shortcut||"";sf("#cmenu_canvas").append("<li class='disabled'><a href='#"+er.id+"'>"+er.label+"<span class='shortcut'>"+tr+"</span></a></li>")}(er)}))},uf={true:!0,false:!1,null:null};_export({target:"Array",proto:!0},{fill:Od}),addToUnscopables("fill");var df=[],hf=df.sort,pf=fails((function(){df.sort(void 0)})),Af=fails((function(){df.sort(null)})),ff=arrayMethodIsStrict("sort");_export({target:"Array",proto:!0,forced:pf||!Af||!ff},{sort:function sort(er){return void 0===er?hf.call(toObject(this)):hf.call(toObject(this),aFunction$1(er))}}),_export({target:"Object",stat:!0,forced:Object.assign!==Gl},{assign:Gl});var gf="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},mf=ah.ArrayBuffer,_f=tr.ArrayBuffer;_export({global:!0,forced:_f!==mf},{ArrayBuffer:mf}),setSpecies("ArrayBuffer"),_export({global:!0,forced:!Fd},{DataView:ah.DataView});var vf=Math.floor;_export({target:"Number",stat:!0},{isInteger:function isInteger(er){return!isObject(er)&&isFinite(er)&&vf(er)===er}}),_export({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991});var yf=Ar.f,bf=fails((function(){yf(1)}));_export({target:"Object",stat:!0,forced:!rr||bf,sham:!rr},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(er,tr){return yf(toIndexedObject(er),tr)}});var wf=cu.f,kf=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:kf},{getOwnPropertyNames:wf}),_export({global:!0,forced:parseFloat!=$i},{parseFloat:$i}),_export({global:!0,forced:parseInt!=ro},{parseInt:ro}),rr&&("g"!=/./g.flags||Ls.UNSUPPORTED_Y)&&gr.f(RegExp.prototype,"flags",{configurable:!0,get:regexpFlags});var xf=Qi.trim;_export({target:"String",proto:!0,forced:function(er){return fails((function(){return!!Ui[er]()||"
"!="
"[er]()||Ui[er].name!==er}))}("trim")},{trim:function trim(){return xf(this)}});var Sf=/"/g,createHtml=function(er,tr,rr,nr){var ar=String(requireObjectCoercible(er)),ir="<"+tr;return""!==rr&&(ir+=" "+rr+'="'+String(nr).replace(Sf,""")+'"'),ir+">"+ar+"</"+tr+">"},stringHtmlForced=function(er){return fails((function(){var tr=""[er]('"');return tr!==tr.toLowerCase()||tr.split('"').length>3}))};_export({target:"String",proto:!0,forced:stringHtmlForced("link")},{link:function link(er){return createHtml(this,"a","href",er)}}),Ph("Float32",(function(er){return function Float32Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Ph("Float64",(function(er){return function Float64Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Ph("Int8",(function(er){return function Int8Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Ph("Int16",(function(er){return function Int16Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Ph("Int32",(function(er){return function Int32Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Ph("Uint8",(function(er){return function Uint8ClampedArray(tr,rr,nr){return er(this,tr,rr,nr)}}),!0),Ph("Uint16",(function(er){return function Uint16Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Ph("Uint32",(function(er){return function Uint32Array(tr,rr,nr){return er(this,tr,rr,nr)}}));
|
||
/** @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 Cf=function(){return"undefined"!=typeof window?window:void 0!==gf?gf:"undefined"!=typeof self?self:this}();function e(){Cf.console&&"function"==typeof Cf.console.log&&Cf.console.log.apply(Cf.console,arguments)}var Bf={log:e,warn:function warn(er){Cf.console&&("function"==typeof Cf.console.warn?Cf.console.warn.apply(Cf.console,arguments):e.call(null,arguments))},error:function error(er){Cf.console&&("function"==typeof Cf.console.error?Cf.console.error.apply(Cf.console,arguments):e(er))}};
|
||
/**
|
||
* @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(er,tr,rr){var nr=new XMLHttpRequest;nr.open("GET",er),nr.responseType="blob",nr.onload=function(){Lf(nr.response,tr,rr)},nr.onerror=function(){Bf.error("could not download file")},nr.send()}function i(er){var tr=new XMLHttpRequest;tr.open("HEAD",er,!1);try{tr.send()}catch(er){}return tr.status>=200&&tr.status<=299}function a(er){try{er.dispatchEvent(new MouseEvent("click"))}catch(rr){var tr=document.createEvent("MouseEvents");tr.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),er.dispatchEvent(tr)}}var Ef,Nf,Lf=Cf.saveAs||("object"!=("undefined"==typeof window?"undefined":_typeof(window))||window!==Cf?function(){}:"download"in HTMLAnchorElement.prototype?function(er,tr,rr){var nr=Cf.URL||Cf.webkitURL,ar=document.createElement("a");tr=tr||er.name||"download",ar.download=tr,ar.rel="noopener","string"==typeof er?(ar.href=er,ar.origin!==location.origin?i(ar.href)?r(er,tr,rr):a(ar,ar.target="_blank"):a(ar)):(ar.href=nr.createObjectURL(er),setTimeout((function(){nr.revokeObjectURL(ar.href)}),4e4),setTimeout((function(){a(ar)}),0))}:"msSaveOrOpenBlob"in navigator?function(er,tr,rr){if(tr=tr||er.name||"download","string"==typeof er)if(i(er))r(er,tr,rr);else{var nr=document.createElement("a");nr.href=er,nr.target="_blank",setTimeout((function(){a(nr)}))}else navigator.msSaveOrOpenBlob(function(er,tr){return void 0===tr?tr={autoBom:!1}:"object"!=_typeof(tr)&&(Bf.warn("Deprecated: Expected third argument to be a object"),tr={autoBom:!tr}),tr.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(er.type)?new Blob([String.fromCharCode(65279),er],{type:er.type}):er}(er,rr),tr)}:function(er,tr,rr,nr){if((nr=nr||open("","_blank"))&&(nr.document.title=nr.document.body.innerText="downloading..."),"string"==typeof er)return r(er,tr,rr);var ar="application/octet-stream"===er.type,ir=/constructor/i.test(Cf.HTMLElement)||Cf.safari,or=/CriOS\/[\d]+/.test(navigator.userAgent);if((or||ar&&ir)&&"object"==("undefined"==typeof FileReader?"undefined":_typeof(FileReader))){var sr=new FileReader;sr.onloadend=function(){var er=sr.result;er=or?er:er.replace(/^data:[^;]*;/,"data:attachment/file;"),nr?nr.location.href=er:location=er,nr=null},sr.readAsDataURL(er)}else{var lr=Cf.URL||Cf.webkitURL,cr=lr.createObjectURL(er);nr?nr.location=cr:location.href=cr,nr=null,setTimeout((function(){lr.revokeObjectURL(cr)}),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(er){var tr;er=er||"",this.ok=!1,"#"==er.charAt(0)&&(er=er.substr(1,6)),er={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"}[er=(er=er.replace(/ /g,"")).toLowerCase()]||er;for(var rr=[{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(er){return[parseInt(er[1]),parseInt(er[2]),parseInt(er[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(er){return[parseInt(er[1],16),parseInt(er[2],16),parseInt(er[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(er){return[parseInt(er[1]+er[1],16),parseInt(er[2]+er[2],16),parseInt(er[3]+er[3],16)]}}],nr=0;nr<rr.length;nr++){var ar=rr[nr].re,ir=rr[nr].process,or=ar.exec(er);or&&(tr=ir(or),this.r=tr[0],this.g=tr[1],this.b=tr[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 er=this.r.toString(16),tr=this.g.toString(16),rr=this.b.toString(16);return 1==er.length&&(er="0"+er),1==tr.length&&(tr="0"+tr),1==rr.length&&(rr="0"+rr),"#"+er+tr+rr}}function h(er){if("object"!=_typeof(er))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var tr={};this.subscribe=function(er,rr,nr){if(nr=nr||!1,"string"!=typeof er||"function"!=typeof rr||"boolean"!=typeof nr)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");tr.hasOwnProperty(er)||(tr[er]={});var ar=Math.random().toString(35);return tr[er][ar]=[rr,!!nr],ar},this.unsubscribe=function(er){for(var rr in tr)if(tr[rr][er])return delete tr[rr][er],0===Object.keys(tr[rr]).length&&delete tr[rr],!0;return!1},this.publish=function(rr){if(tr.hasOwnProperty(rr)){var nr=Array.prototype.slice.call(arguments,1),ar=[];for(var ir in tr[rr]){var or=tr[rr][ir];try{or[0].apply(er,nr)}catch(er){Cf.console&&Bf.error("jsPDF PubSub Error",er.message,er)}or[1]&&ar.push(ir)}ar.length&&ar.forEach(this.unsubscribe)}},this.getTopics=function(){return tr}}function l(er){if(!(this instanceof l))return new l(er);var tr="opacity,stroke-opacity".split(",");for(var rr in er)er.hasOwnProperty(rr)&&tr.indexOf(rr)>=0&&(this[rr]=er[rr]);this.id="",this.objectNumber=-1}function f$8(er,tr){this.gState=er,this.matrix=tr,this.id="",this.objectNumber=-1}function d(er,tr,rr,nr,ar){if(!(this instanceof d))return new d(er,tr,rr,nr,ar);this.type="axial"===er?2:3,this.coords=tr,this.colors=rr,f$8.call(this,nr,ar)}function p(er,tr,rr,nr,ar){if(!(this instanceof p))return new p(er,tr,rr,nr,ar);this.boundingBox=er,this.xStep=tr,this.yStep=rr,this.stream="",this.cloneIndex=0,f$8.call(this,nr,ar)}function g(er){var tr,rr="string"==typeof arguments[0]?arguments[0]:"p",nr=arguments[1],ar=arguments[2],ir=arguments[3],or=[],sr=1,lr=16,cr="S";"object"==_typeof(er=er||{})&&(rr=er.orientation,nr=er.unit||nr,ar=er.format||ar,ir=er.compress||er.compressPdf||ir,sr="number"==typeof er.userUnit?Math.abs(er.userUnit):1,void 0!==er.precision&&(tr=er.precision),void 0!==er.floatPrecision&&(lr=er.floatPrecision),cr=er.defaultPathOperation||"S"),or=er.filters||(!0===ir?["FlateEncode"]:or),nr=nr||"mm",rr=(""+(rr||"P")).toLowerCase();var ur=er.putOnlyUsedFonts||!1,dr={},hr={internal:{},__private__:{}};hr.__private__.PubSub=h;var pr="1.3",Ar=hr.__private__.getPdfVersion=function(){return pr};hr.__private__.setPdfVersion=function(er){pr=er};var fr={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]};hr.__private__.getPageFormats=function(){return fr};var gr=hr.__private__.getPageFormat=function(er){return fr[er]};ar=ar||"a4";var mr={COMPAT:"compat",ADVANCED:"advanced"},_r=mr.COMPAT;function F(){this.saveGraphicsState(),Wr(new pa(Wn,0,0,-Wn,0,ro()*Wn).toString()+" cm"),this.setFontSize(this.getFontSize()/Wn),cr="n",_r=mr.ADVANCED}function I(){this.restoreGraphicsState(),cr="S",_r=mr.COMPAT}hr.advancedAPI=function(er){var tr=_r===mr.COMPAT;return tr&&F.call(this),"function"!=typeof er||(er(this),tr&&I.call(this)),this},hr.compatAPI=function(er){var tr=_r===mr.ADVANCED;return tr&&I.call(this),"function"!=typeof er||(er(this),tr&&F.call(this)),this},hr.isAdvancedAPI=function(){return _r===mr.ADVANCED};var vr,yr=function j(er){if(_r!==mr.ADVANCED)throw new Error(er+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},br=hr.roundToPrecision=hr.__private__.roundToPrecision=function(er,rr){var nr=tr||rr;if(isNaN(er)||isNaN(nr))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return er.toFixed(nr).replace(/0+$/,"")};vr=hr.hpf=hr.__private__.hpf="number"==typeof lr?function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.hpf");return br(er,lr)}:"smart"===lr?function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.hpf");return br(er,er>-1&&er<1?16:5)}:function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.hpf");return br(er,16)};var wr=hr.f2=hr.__private__.f2=function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.f2");return br(er,2)},kr=hr.__private__.f3=function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.f3");return br(er,3)},xr=hr.scale=hr.__private__.scale=function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.scale");return _r===mr.COMPAT?er*Wn:_r===mr.ADVANCED?er:void 0},Sr=function q(er){return _r===mr.COMPAT?ro()-er:_r===mr.ADVANCED?er:void 0},Cr=function R(er){return xr(Sr(er))};hr.__private__.setPrecision=hr.setPrecision=function(er){"number"==typeof parseInt(er,10)&&(tr=parseInt(er,10))};var Br,Er="00000000000000000000000000000000",Nr=hr.__private__.getFileId=function(){return Er},Lr=hr.__private__.setFileId=function(er){return Er=void 0!==er&&/^[a-fA-F0-9]{32}$/.test(er)?er.toUpperCase():Er.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join("")};hr.setFileId=function(er){return Lr(er),this},hr.getFileId=function(){return Nr()};var Pr=hr.__private__.convertDateToPDFDate=function(er){var tr=er.getTimezoneOffset(),rr=tr<0?"+":"-",nr=Math.floor(Math.abs(tr/60)),ar=Math.abs(tr%60),ir=[rr,Rr(nr),"'",Rr(ar),"'"].join("");return["D:",er.getFullYear(),Rr(er.getMonth()+1),Rr(er.getDate()),Rr(er.getHours()),Rr(er.getMinutes()),Rr(er.getSeconds()),ir].join("")},Tr=hr.__private__.convertPDFDateToDate=function(er){var tr=parseInt(er.substr(2,4),10),rr=parseInt(er.substr(6,2),10)-1,nr=parseInt(er.substr(8,2),10),ar=parseInt(er.substr(10,2),10),ir=parseInt(er.substr(12,2),10),or=parseInt(er.substr(14,2),10);return new Date(tr,rr,nr,ar,ir,or,0)},Fr=hr.__private__.setCreationDate=function(er){var tr;if(void 0===er&&(er=new Date),er instanceof Date)tr=Pr(er);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(er))throw new Error("Invalid argument passed to jsPDF.setCreationDate");tr=er}return Br=tr},Ur=hr.__private__.getCreationDate=function(er){var tr=Br;return"jsDate"===er&&(tr=Tr(Br)),tr};hr.setCreationDate=function(er){return Fr(er),this},hr.getCreationDate=function(er){return Ur(er)};var Ir,Rr=hr.__private__.padd2=function(er){return("0"+parseInt(er)).slice(-2)},Mr=hr.__private__.padd2Hex=function(er){return("00"+(er=er.toString())).substr(er.length)},Qr=0,Or=[],Dr=[],jr=0,Hr=[],Gr=[],Vr=!1,zr=Dr,Kr=function it(){Qr=0,jr=0,Dr=[],Or=[],Hr=[],ba=_a(),wa=_a()};hr.__private__.setCustomOutputDestination=function(er){Vr=!0,zr=er};var qr=function at(er){Vr||(zr=er)};hr.__private__.resetCustomOutputDestination=function(){Vr=!1,zr=Dr};var Wr=hr.__private__.out=function(er){return er=er.toString(),jr+=er.length+1,zr.push(er),zr},Xr=hr.__private__.write=function(er){return Wr(1===arguments.length?er.toString():Array.prototype.join.call(arguments," "))},Yr=hr.__private__.getArrayBuffer=function(er){for(var tr=er.length,rr=new ArrayBuffer(tr),nr=new Uint8Array(rr);tr--;)nr[tr]=er.charCodeAt(tr);return rr},Jr=[["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]];hr.__private__.getStandardFonts=function(){return Jr};var $r=er.fontSize||16;hr.__private__.setFontSize=hr.setFontSize=function(er){return $r=_r===mr.ADVANCED?er/Wn:er,this};var Zr,Tn=hr.__private__.getFontSize=hr.getFontSize=function(){return _r===mr.COMPAT?$r:$r*Wn},Un=er.R2L||!1;hr.__private__.setR2L=hr.setR2L=function(er){return Un=er,this},hr.__private__.getR2L=hr.getR2L=function(){return Un};var Qn,Dn=hr.__private__.setZoomMode=function(er){if(/^\d*\.?\d*%$/.test(er))Zr=er;else if(isNaN(er)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(er))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+er+'" is not recognized.');Zr=er}else Zr=parseInt(er,10)};hr.__private__.getZoomMode=function(){return Zr};var Hn,Gn=hr.__private__.setPageMode=function(er){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(er))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+er+'" is not recognized.');Qn=er};hr.__private__.getPageMode=function(){return Qn};var Vn=hr.__private__.setLayoutMode=function(er){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(er))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+er+'" is not recognized.');Hn=er};hr.__private__.getLayoutMode=function(){return Hn},hr.__private__.setDisplayMode=hr.setDisplayMode=function(er,tr,rr){return Dn(er),Vn(tr),Gn(rr),this};var zn={title:"",subject:"",author:"",keywords:"",creator:""};hr.__private__.getDocumentProperty=function(er){if(-1===Object.keys(zn).indexOf(er))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return zn[er]},hr.__private__.getDocumentProperties=function(){return zn},hr.__private__.setDocumentProperties=hr.setProperties=hr.setDocumentProperties=function(er){for(var tr in zn)zn.hasOwnProperty(tr)&&er[tr]&&(zn[tr]=er[tr]);return this},hr.__private__.setDocumentProperty=function(er,tr){if(-1===Object.keys(zn).indexOf(er))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return zn[er]=tr};var Kn,Wn,Xn,Yn,Jn,$n={},Zn={},ea=[],ta={},ra={},na={},aa={},ia=null,oa=0,sa=[],la=new h(hr),ca=er.hotfixes||[],ua={},da={},ha=[],pa=function Dt(er,tr,rr,nr,ar,ir){if(!(this instanceof Dt))return new Dt(er,tr,rr,nr,ar,ir);isNaN(er)&&(er=1),isNaN(tr)&&(tr=0),isNaN(rr)&&(rr=0),isNaN(nr)&&(nr=1),isNaN(ar)&&(ar=0),isNaN(ir)&&(ir=0),this._matrix=[er,tr,rr,nr,ar,ir]};Object.defineProperty(pa.prototype,"sx",{get:function get(){return this._matrix[0]},set:function set(er){this._matrix[0]=er}}),Object.defineProperty(pa.prototype,"shy",{get:function get(){return this._matrix[1]},set:function set(er){this._matrix[1]=er}}),Object.defineProperty(pa.prototype,"shx",{get:function get(){return this._matrix[2]},set:function set(er){this._matrix[2]=er}}),Object.defineProperty(pa.prototype,"sy",{get:function get(){return this._matrix[3]},set:function set(er){this._matrix[3]=er}}),Object.defineProperty(pa.prototype,"tx",{get:function get(){return this._matrix[4]},set:function set(er){this._matrix[4]=er}}),Object.defineProperty(pa.prototype,"ty",{get:function get(){return this._matrix[5]},set:function set(er){this._matrix[5]=er}}),Object.defineProperty(pa.prototype,"a",{get:function get(){return this._matrix[0]},set:function set(er){this._matrix[0]=er}}),Object.defineProperty(pa.prototype,"b",{get:function get(){return this._matrix[1]},set:function set(er){this._matrix[1]=er}}),Object.defineProperty(pa.prototype,"c",{get:function get(){return this._matrix[2]},set:function set(er){this._matrix[2]=er}}),Object.defineProperty(pa.prototype,"d",{get:function get(){return this._matrix[3]},set:function set(er){this._matrix[3]=er}}),Object.defineProperty(pa.prototype,"e",{get:function get(){return this._matrix[4]},set:function set(er){this._matrix[4]=er}}),Object.defineProperty(pa.prototype,"f",{get:function get(){return this._matrix[5]},set:function set(er){this._matrix[5]=er}}),Object.defineProperty(pa.prototype,"rotation",{get:function get(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(pa.prototype,"scaleX",{get:function get(){return this.decompose().scale.sx}}),Object.defineProperty(pa.prototype,"scaleY",{get:function get(){return this.decompose().scale.sy}}),Object.defineProperty(pa.prototype,"isIdentity",{get:function get(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),pa.prototype.join=function(er){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(vr).join(er)},pa.prototype.multiply=function(er){var tr=er.sx*this.sx+er.shy*this.shx,rr=er.sx*this.shy+er.shy*this.sy,nr=er.shx*this.sx+er.sy*this.shx,ar=er.shx*this.shy+er.sy*this.sy,ir=er.tx*this.sx+er.ty*this.shx+this.tx,or=er.tx*this.shy+er.ty*this.sy+this.ty;return new pa(tr,rr,nr,ar,ir,or)},pa.prototype.decompose=function(){var er=this.sx,tr=this.shy,rr=this.shx,nr=this.sy,ar=this.tx,ir=this.ty,or=Math.sqrt(er*er+tr*tr),sr=(er/=or)*rr+(tr/=or)*nr;rr-=er*sr,nr-=tr*sr;var lr=Math.sqrt(rr*rr+nr*nr);return sr/=lr,er*(nr/=lr)<tr*(rr/=lr)&&(er=-er,tr=-tr,sr=-sr,or=-or),{scale:new pa(or,0,0,lr,0,0),translate:new pa(1,0,0,1,ar,ir),rotate:new pa(er,tr,-tr,er,0,0),skew:new pa(1,0,sr,1,0,0)}},pa.prototype.toString=function(er){return this.join(" ")},pa.prototype.inversed=function(){var er=this.sx,tr=this.shy,rr=this.shx,nr=this.sy,ar=this.tx,ir=this.ty,or=1/(er*nr-tr*rr),sr=nr*or,lr=-tr*or,cr=-rr*or,ur=er*or;return new pa(sr,lr,cr,ur,-sr*ar-cr*ir,-lr*ar-ur*ir)},pa.prototype.applyToPoint=function(er){var tr=er.x*this.sx+er.y*this.shx+this.tx,rr=er.x*this.shy+er.y*this.sy+this.ty;return new Wi(tr,rr)},pa.prototype.applyToRectangle=function(er){var tr=this.applyToPoint(er),rr=this.applyToPoint(new Wi(er.x+er.w,er.y+er.h));return new Xi(tr.x,tr.y,rr.x-tr.x,rr.y-tr.y)},pa.prototype.clone=function(){var er=this.sx,tr=this.shy,rr=this.shx,nr=this.sy,ar=this.tx,ir=this.ty;return new pa(er,tr,rr,nr,ar,ir)},hr.Matrix=pa;var Aa=hr.matrixMult=function(er,tr){return tr.multiply(er)},fa=new pa(1,0,0,1,0,0);hr.unitMatrix=hr.identityMatrix=fa;var ga=function Ht(er,tr){if(!ra[er]){var rr=(tr instanceof d?"Sh":"P")+(Object.keys(ta).length+1).toString(10);tr.id=rr,ra[er]=rr,ta[rr]=tr,la.publish("addPattern",tr)}};hr.ShadingPattern=d,hr.TilingPattern=p,hr.addShadingPattern=function(er,tr){return yr("addShadingPattern()"),ga(er,tr),this},hr.beginTilingPattern=function(er){yr("beginTilingPattern()"),Ji(er.boundingBox[0],er.boundingBox[1],er.boundingBox[2]-er.boundingBox[0],er.boundingBox[3]-er.boundingBox[1],er.matrix)},hr.endTilingPattern=function(er,tr){yr("endTilingPattern()"),tr.stream=Gr[Ir].join("\n"),ga(er,tr),la.publish("endTilingPattern",tr),ha.pop().restore()};var ma=hr.__private__.newObject=function(){var er=_a();return va(er,!0),er},_a=hr.__private__.newObjectDeferred=function(){return Qr++,Or[Qr]=function(){return jr},Qr},va=function Gt(er,tr){return tr="boolean"==typeof tr&&tr,Or[er]=jr,tr&&Wr(er+" 0 obj"),er},ya=hr.__private__.newAdditionalObject=function(){var er={objId:_a(),content:""};return Hr.push(er),er},ba=_a(),wa=_a(),ka=hr.__private__.decodeColorString=function(er){var tr=er.split(" ");if(2!==tr.length||"g"!==tr[1]&&"G"!==tr[1])5!==tr.length||"k"!==tr[4]&&"K"!==tr[4]||(tr=[(1-tr[0])*(1-tr[3]),(1-tr[1])*(1-tr[3]),(1-tr[2])*(1-tr[3]),"r"]);else{var rr=parseFloat(tr[0]);tr=[rr,rr,rr,"r"]}for(var nr="#",ar=0;ar<3;ar++)nr+=("0"+Math.floor(255*parseFloat(tr[ar])).toString(16)).slice(-2);return nr},xa=hr.__private__.encodeColorString=function(er){var tr;"string"==typeof er&&(er={ch1:er});var rr=er.ch1,nr=er.ch2,ar=er.ch3,ir=er.ch4,or="draw"===er.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof rr&&"#"!==rr.charAt(0)){var sr=new c(rr);if(sr.ok)rr=sr.toHex();else if(!/^\d*\.?\d*$/.test(rr))throw new Error('Invalid color "'+rr+'" passed to jsPDF.encodeColorString.')}if("string"==typeof rr&&/^#[0-9A-Fa-f]{3}$/.test(rr)&&(rr="#"+rr[1]+rr[1]+rr[2]+rr[2]+rr[3]+rr[3]),"string"==typeof rr&&/^#[0-9A-Fa-f]{6}$/.test(rr)){var lr=parseInt(rr.substr(1),16);rr=lr>>16&255,nr=lr>>8&255,ar=255&lr}if(void 0===nr||void 0===ir&&rr===nr&&nr===ar)if("string"==typeof rr)tr=rr+" "+or[0];else switch(er.precision){case 2:tr=wr(rr/255)+" "+or[0];break;case 3:default:tr=kr(rr/255)+" "+or[0]}else if(void 0===ir||"object"==_typeof(ir)){if(ir&&!isNaN(ir.a)&&0===ir.a)return["1.","1.","1.",or[1]].join(" ");if("string"==typeof rr)tr=[rr,nr,ar,or[1]].join(" ");else switch(er.precision){case 2:tr=[wr(rr/255),wr(nr/255),wr(ar/255),or[1]].join(" ");break;default:case 3:tr=[kr(rr/255),kr(nr/255),kr(ar/255),or[1]].join(" ")}}else if("string"==typeof rr)tr=[rr,nr,ar,ir,or[2]].join(" ");else switch(er.precision){case 2:tr=[wr(rr),wr(nr),wr(ar),wr(ir),or[2]].join(" ");break;case 3:default:tr=[kr(rr),kr(nr),kr(ar),kr(ir),or[2]].join(" ")}return tr},Sa=hr.__private__.getFilters=function(){return or},Ca=hr.__private__.putStream=function(er){var tr=(er=er||{}).data||"",rr=er.filters||Sa(),nr=er.alreadyAppliedFilters||[],ar=er.addLength1||!1,ir=tr.length,or={};!0===rr&&(rr=["FlateEncode"]);var sr=er.additionalKeyValues||[],lr=(or=void 0!==g.API.processDataByFilters?g.API.processDataByFilters(tr,rr):{data:tr,reverseChain:[]}).reverseChain+(Array.isArray(nr)?nr.join(" "):nr.toString());if(0!==or.data.length&&(sr.push({key:"Length",value:or.data.length}),!0===ar&&sr.push({key:"Length1",value:ir})),0!=lr.length)if(lr.split("/").length-1==1)sr.push({key:"Filter",value:lr});else{sr.push({key:"Filter",value:"["+lr+"]"});for(var cr=0;cr<sr.length;cr+=1)if("DecodeParms"===sr[cr].key){for(var ur=[],dr=0;dr<or.reverseChain.split("/").length-1;dr+=1)ur.push("null");ur.push(sr[cr].value),sr[cr].value="["+ur.join(" ")+"]"}}Wr("<<");for(var hr=0;hr<sr.length;hr++)Wr("/"+sr[hr].key+" "+sr[hr].value);Wr(">>"),0!==or.data.length&&(Wr("stream"),Wr(or.data),Wr("endstream"))},Ba=hr.__private__.putPage=function(er){var tr=er.number,rr=er.data,nr=er.objId,ar=er.contentsObjId;va(nr,!0),Wr("<</Type /Page"),Wr("/Parent "+er.rootDictionaryObjId+" 0 R"),Wr("/Resources "+er.resourceDictionaryObjId+" 0 R"),Wr("/MediaBox ["+parseFloat(vr(er.mediaBox.bottomLeftX))+" "+parseFloat(vr(er.mediaBox.bottomLeftY))+" "+vr(er.mediaBox.topRightX)+" "+vr(er.mediaBox.topRightY)+"]"),null!==er.cropBox&&Wr("/CropBox ["+vr(er.cropBox.bottomLeftX)+" "+vr(er.cropBox.bottomLeftY)+" "+vr(er.cropBox.topRightX)+" "+vr(er.cropBox.topRightY)+"]"),null!==er.bleedBox&&Wr("/BleedBox ["+vr(er.bleedBox.bottomLeftX)+" "+vr(er.bleedBox.bottomLeftY)+" "+vr(er.bleedBox.topRightX)+" "+vr(er.bleedBox.topRightY)+"]"),null!==er.trimBox&&Wr("/TrimBox ["+vr(er.trimBox.bottomLeftX)+" "+vr(er.trimBox.bottomLeftY)+" "+vr(er.trimBox.topRightX)+" "+vr(er.trimBox.topRightY)+"]"),null!==er.artBox&&Wr("/ArtBox ["+vr(er.artBox.bottomLeftX)+" "+vr(er.artBox.bottomLeftY)+" "+vr(er.artBox.topRightX)+" "+vr(er.artBox.topRightY)+"]"),"number"==typeof er.userUnit&&1!==er.userUnit&&Wr("/UserUnit "+er.userUnit),la.publish("putPage",{objId:nr,pageContext:sa[tr],pageNumber:tr,page:rr}),Wr("/Contents "+ar+" 0 R"),Wr(">>"),Wr("endobj");var ir=rr.join("\n");return _r===mr.ADVANCED&&(ir+="\nQ"),va(ar,!0),Ca({data:ir,filters:Sa()}),Wr("endobj"),nr},Ea=hr.__private__.putPages=function(){var er,tr,rr=[];for(er=1;er<=oa;er++)sa[er].objId=_a(),sa[er].contentsObjId=_a();for(er=1;er<=oa;er++)rr.push(Ba({number:er,data:Gr[er],objId:sa[er].objId,contentsObjId:sa[er].contentsObjId,mediaBox:sa[er].mediaBox,cropBox:sa[er].cropBox,bleedBox:sa[er].bleedBox,trimBox:sa[er].trimBox,artBox:sa[er].artBox,userUnit:sa[er].userUnit,rootDictionaryObjId:ba,resourceDictionaryObjId:wa}));va(ba,!0),Wr("<</Type /Pages");var nr="/Kids [";for(tr=0;tr<oa;tr++)nr+=rr[tr]+" 0 R ";Wr(nr+"]"),Wr("/Count "+oa),Wr(">>"),Wr("endobj"),la.publish("postPutPages")},Na=function ne(er){var tr=function e(er,tr){return-1!==er.indexOf(" ")?"("+$a(er,tr)+")":$a(er,tr)};la.publish("putFont",{font:er,out:Wr,newObject:ma,putStream:Ca,pdfEscapeWithNeededParanthesis:tr}),!0!==er.isAlreadyPutted&&(er.objectNumber=ma(),Wr("<<"),Wr("/Type /Font"),Wr("/BaseFont /"+tr(er.postScriptName)),Wr("/Subtype /Type1"),"string"==typeof er.encoding&&Wr("/Encoding /"+er.encoding),Wr("/FirstChar 32"),Wr("/LastChar 255"),Wr(">>"),Wr("endobj"))},La=function re(){for(var er in $n)$n.hasOwnProperty(er)&&(!1===ur||!0===ur&&dr.hasOwnProperty(er))&&Na($n[er])},Pa=function ie(er){er.objectNumber=ma();var tr=[];tr.push({key:"Type",value:"/XObject"}),tr.push({key:"Subtype",value:"/Form"}),tr.push({key:"BBox",value:"["+[vr(er.x),vr(er.y),vr(er.x+er.width),vr(er.y+er.height)].join(" ")+"]"}),tr.push({key:"Matrix",value:"["+er.matrix.toString()+"]"});var rr=er.pages[1].join("\n");Ca({data:rr,additionalKeyValues:tr}),Wr("endobj")},Ta=function ae(){for(var er in ua)ua.hasOwnProperty(er)&&Pa(ua[er])},Fa=function oe(er,tr){var rr,nr=[],ar=1/(tr-1);for(rr=0;rr<1;rr+=ar)nr.push(rr);if(nr.push(1),0!=er[0].offset){var ir={offset:0,color:er[0].color};er.unshift(ir)}if(1!=er[er.length-1].offset){var or={offset:1,color:er[er.length-1].color};er.push(or)}for(var sr="",lr=0,cr=0;cr<nr.length;cr++){for(rr=nr[cr];rr>er[lr+1].offset;)lr++;var ur=er[lr].offset,dr=(rr-ur)/(er[lr+1].offset-ur),hr=er[lr].color,pr=er[lr+1].color;sr+=Mr(Math.round((1-dr)*hr[0]+dr*pr[0]).toString(16))+Mr(Math.round((1-dr)*hr[1]+dr*pr[1]).toString(16))+Mr(Math.round((1-dr)*hr[2]+dr*pr[2]).toString(16))}return sr.trim()},Ua=function se(er,tr){tr||(tr=21);var rr=ma(),nr=Fa(er.colors,tr),ar=[];ar.push({key:"FunctionType",value:"0"}),ar.push({key:"Domain",value:"[0.0 1.0]"}),ar.push({key:"Size",value:"["+tr+"]"}),ar.push({key:"BitsPerSample",value:"8"}),ar.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ar.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ca({data:nr,additionalKeyValues:ar,alreadyAppliedFilters:["/ASCIIHexDecode"]}),Wr("endobj"),er.objectNumber=ma(),Wr("<< /ShadingType "+er.type),Wr("/ColorSpace /DeviceRGB");var ir="/Coords ["+vr(parseFloat(er.coords[0]))+" "+vr(parseFloat(er.coords[1]))+" ";2===er.type?ir+=vr(parseFloat(er.coords[2]))+" "+vr(parseFloat(er.coords[3])):ir+=vr(parseFloat(er.coords[2]))+" "+vr(parseFloat(er.coords[3]))+" "+vr(parseFloat(er.coords[4]))+" "+vr(parseFloat(er.coords[5])),Wr(ir+="]"),er.matrix&&Wr("/Matrix ["+er.matrix.toString()+"]"),Wr("/Function "+rr+" 0 R"),Wr("/Extend [true true]"),Wr(">>"),Wr("endobj")},Ia=function ue(er,tr){var rr=_a(),nr=ma();tr.push({resourcesOid:rr,objectOid:nr}),er.objectNumber=nr;var ar=[];ar.push({key:"Type",value:"/Pattern"}),ar.push({key:"PatternType",value:"1"}),ar.push({key:"PaintType",value:"1"}),ar.push({key:"TilingType",value:"1"}),ar.push({key:"BBox",value:"["+er.boundingBox.map(vr).join(" ")+"]"}),ar.push({key:"XStep",value:vr(er.xStep)}),ar.push({key:"YStep",value:vr(er.yStep)}),ar.push({key:"Resources",value:rr+" 0 R"}),er.matrix&&ar.push({key:"Matrix",value:"["+er.matrix.toString()+"]"}),Ca({data:er.stream,additionalKeyValues:ar}),Wr("endobj")},Ra=function ce(er){var tr;for(tr in ta)ta.hasOwnProperty(tr)&&(ta[tr]instanceof d?Ua(ta[tr]):ta[tr]instanceof p&&Ia(ta[tr],er))},Ma=function he(er){for(var tr in er.objectNumber=ma(),Wr("<<"),er)switch(tr){case"opacity":Wr("/ca "+wr(er[tr]));break;case"stroke-opacity":Wr("/CA "+wr(er[tr]))}Wr(">>"),Wr("endobj")},Qa=function le(){var er;for(er in na)na.hasOwnProperty(er)&&Ma(na[er])},Oa=function fe(){for(var er in Wr("/XObject <<"),ua)ua.hasOwnProperty(er)&&ua[er].objectNumber>=0&&Wr("/"+er+" "+ua[er].objectNumber+" 0 R");la.publish("putXobjectDict"),Wr(">>")},Da=function de(){for(var er in Wr("/Font <<"),$n)$n.hasOwnProperty(er)&&(!1===ur||!0===ur&&dr.hasOwnProperty(er))&&Wr("/"+er+" "+$n[er].objectNumber+" 0 R");Wr(">>")},ja=function pe(){if(Object.keys(ta).length>0){for(var er in Wr("/Shading <<"),ta)ta.hasOwnProperty(er)&&ta[er]instanceof d&&ta[er].objectNumber>=0&&Wr("/"+er+" "+ta[er].objectNumber+" 0 R");la.publish("putShadingPatternDict"),Wr(">>")}},Ha=function ge(er){if(Object.keys(ta).length>0){for(var tr in Wr("/Pattern <<"),ta)ta.hasOwnProperty(tr)&&ta[tr]instanceof hr.TilingPattern&&ta[tr].objectNumber>=0&&ta[tr].objectNumber<er&&Wr("/"+tr+" "+ta[tr].objectNumber+" 0 R");la.publish("putTilingPatternDict"),Wr(">>")}},Ga=function me(){if(Object.keys(na).length>0){var er;for(er in Wr("/ExtGState <<"),na)na.hasOwnProperty(er)&&na[er].objectNumber>=0&&Wr("/"+er+" "+na[er].objectNumber+" 0 R");la.publish("putGStateDict"),Wr(">>")}},Va=function ve(er){va(er.resourcesOid,!0),Wr("<<"),Wr("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Da(),ja(),Ha(er.objectOid),Ga(),Oa(),Wr(">>"),Wr("endobj")},za=function be(){var er=[];La(),Qa(),Ta(),Ra(er),la.publish("putResources"),er.forEach(Va),Va({resourcesOid:wa,objectOid:Number.MAX_SAFE_INTEGER}),la.publish("postPutResources")},Ka=function ye(){la.publish("putAdditionalObjects");for(var er=0;er<Hr.length;er++){var tr=Hr[er];va(tr.objId,!0),Wr(tr.content),Wr("endobj")}la.publish("postPutAdditionalObjects")},qa=function we(er){Zn[er.fontName]=Zn[er.fontName]||{},Zn[er.fontName][er.fontStyle]=er.id},Wa=function Ne(er,tr,rr,nr,ar){var ir={id:"F"+(Object.keys($n).length+1).toString(10),postScriptName:er,fontName:tr,fontStyle:rr,encoding:nr,isStandardFont:ar||!1,metadata:{}};return la.publish("addFont",{font:ir,instance:this}),$n[ir.id]=ir,qa(ir),ir.id},Xa=function Le(er){for(var tr=0,rr=Jr.length;tr<rr;tr++){var nr=Wa.call(this,er[tr][0],er[tr][1],er[tr][2],Jr[tr][3],!0);!1===ur&&(dr[nr]=!0);var ar=er[tr][0].split("-");qa({id:nr,fontName:ar[0],fontStyle:ar[1]||""})}la.publish("addFonts",{fonts:$n,dictionary:Zn})},Ya=function xe(er){return er.foo=function(){try{return er.apply(this,arguments)}catch(er){var tr=er.stack||"";~tr.indexOf(" at ")&&(tr=tr.split(" at ")[1]);var rr="Error in function "+tr.split("\n")[0].split("<")[0]+": "+er.message;if(!Cf.console)throw new Error(rr);Cf.console.error(rr,er),Cf.alert&&alert(rr)}},er.foo.bar=er,er.foo},Ja=function Ae(er,tr){var rr,nr,ar,ir,or,sr,lr,cr,ur;if(ar=(tr=tr||{}).sourceEncoding||"Unicode",or=tr.outputEncoding,(tr.autoencode||or)&&$n[Kn].metadata&&$n[Kn].metadata[ar]&&$n[Kn].metadata[ar].encoding&&(ir=$n[Kn].metadata[ar].encoding,!or&&$n[Kn].encoding&&(or=$n[Kn].encoding),!or&&ir.codePages&&(or=ir.codePages[0]),"string"==typeof or&&(or=ir[or]),or)){for(lr=!1,sr=[],rr=0,nr=er.length;rr<nr;rr++)(cr=or[er.charCodeAt(rr)])?sr.push(String.fromCharCode(cr)):sr.push(er[rr]),sr[rr].charCodeAt(0)>>8&&(lr=!0);er=sr.join("")}for(rr=er.length;void 0===lr&&0!==rr;)er.charCodeAt(rr-1)>>8&&(lr=!0),rr--;if(!lr)return er;for(sr=tr.noBOM?[]:[254,255],rr=0,nr=er.length;rr<nr;rr++){if((ur=(cr=er.charCodeAt(rr))>>8)>>8)throw new Error("Character at position "+rr+" of string '"+er+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");sr.push(ur),sr.push(cr-(ur<<8))}return String.fromCharCode.apply(void 0,sr)},$a=hr.__private__.pdfEscape=hr.pdfEscape=function(er,tr){return Ja(er,tr).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Za=hr.__private__.beginPage=function(er){Gr[++oa]=[],sa[oa]={objId:0,contentsObjId:0,userUnit:Number(sr),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(er[0]),topRightY:Number(er[1])}},ri(oa),qr(Gr[Ir])},ei=function Pe(er,tr){var nr,ir,or;switch(rr=tr||rr,"string"==typeof er&&(nr=gr(er.toLowerCase()),Array.isArray(nr)&&(ir=nr[0],or=nr[1])),Array.isArray(er)&&(ir=er[0]*Wn,or=er[1]*Wn),isNaN(ir)&&(ir=ar[0],or=ar[1]),(ir>14400||or>14400)&&(Bf.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ir=Math.min(14400,ir),or=Math.min(14400,or)),ar=[ir,or],rr.substr(0,1)){case"l":or>ir&&(ar=[or,ir]);break;case"p":ir>or&&(ar=[or,ir])}Za(ar),Pi(Li),Wr(Oi),0!==zi&&Wr(zi+" J"),0!==Ki&&Wr(Ki+" j"),la.publish("addPage",{pageNumber:oa})},ti=function ke(er){er>0&&er<=oa&&(Gr.splice(er,1),sa.splice(er,1),oa--,Ir>oa&&(Ir=oa),this.setPage(Ir))},ri=function Fe(er){er>0&&er<=oa&&(Ir=er)},ni=hr.__private__.getNumberOfPages=hr.getNumberOfPages=function(){return Gr.length-1},ai=function Ce(er,tr,rr){var nr,ar=void 0;return rr=rr||{},er=void 0!==er?er:$n[Kn].fontName,tr=void 0!==tr?tr:$n[Kn].fontStyle,nr=er.toLowerCase(),void 0!==Zn[nr]&&void 0!==Zn[nr][tr]?ar=Zn[nr][tr]:void 0!==Zn[er]&&void 0!==Zn[er][tr]?ar=Zn[er][tr]:!1===rr.disableWarning&&Bf.warn("Unable to look up font label for font '"+er+"', '"+tr+"'. Refer to getFontList() for available fonts."),ar||rr.noFallback||null==(ar=Zn.times[tr])&&(ar=Zn.times.normal),ar},ii=hr.__private__.putInfo=function(){for(var er in ma(),Wr("<<"),Wr("/Producer (jsPDF "+g.version+")"),zn)zn.hasOwnProperty(er)&&zn[er]&&Wr("/"+er.substr(0,1).toUpperCase()+er.substr(1)+" ("+$a(zn[er])+")");Wr("/CreationDate ("+Br+")"),Wr(">>"),Wr("endobj")},oi=hr.__private__.putCatalog=function(er){var tr=(er=er||{}).rootDictionaryObjId||ba;switch(ma(),Wr("<<"),Wr("/Type /Catalog"),Wr("/Pages "+tr+" 0 R"),Zr||(Zr="fullwidth"),Zr){case"fullwidth":Wr("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Wr("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Wr("/OpenAction [3 0 R /Fit]");break;case"original":Wr("/OpenAction [3 0 R /XYZ null null 1]");break;default:var rr=""+Zr;"%"===rr.substr(rr.length-1)&&(Zr=parseInt(Zr)/100),"number"==typeof Zr&&Wr("/OpenAction [3 0 R /XYZ null null "+wr(Zr)+"]")}switch(Hn||(Hn="continuous"),Hn){case"continuous":Wr("/PageLayout /OneColumn");break;case"single":Wr("/PageLayout /SinglePage");break;case"two":case"twoleft":Wr("/PageLayout /TwoColumnLeft");break;case"tworight":Wr("/PageLayout /TwoColumnRight")}Qn&&Wr("/PageMode /"+Qn),la.publish("putCatalog"),Wr(">>"),Wr("endobj")},si=hr.__private__.putTrailer=function(){Wr("trailer"),Wr("<<"),Wr("/Size "+(Qr+1)),Wr("/Root "+Qr+" 0 R"),Wr("/Info "+(Qr-1)+" 0 R"),Wr("/ID [ <"+Er+"> <"+Er+"> ]"),Wr(">>")},li=hr.__private__.putHeader=function(){Wr("%PDF-"+pr),Wr("%ºß¬à")},ci=hr.__private__.putXRef=function(){var er="0000000000";Wr("xref"),Wr("0 "+(Qr+1)),Wr("0000000000 65535 f ");for(var tr=1;tr<=Qr;tr++)"function"==typeof Or[tr]?Wr((er+Or[tr]()).slice(-10)+" 00000 n "):void 0!==Or[tr]?Wr((er+Or[tr]).slice(-10)+" 00000 n "):Wr("0000000000 00000 n ")},ui=hr.__private__.buildDocument=function(){Kr(),qr(Dr),la.publish("buildDocument"),li(),Ea(),Ka(),za(),ii(),oi();var er=jr;return ci(),si(),Wr("startxref"),Wr(""+er),Wr("%%EOF"),qr(Gr[Ir]),Dr.join("\n")},di=hr.__private__.getBlob=function(er){return new Blob([Yr(er)],{type:"application/pdf"})},hi=hr.output=hr.__private__.output=Ya((function(er,tr){switch("string"==typeof(tr=tr||{})?tr={filename:tr}:tr.filename=tr.filename||"generated.pdf",er){case void 0:return ui();case"save":hr.save(tr.filename);break;case"arraybuffer":return Yr(ui());case"blob":return di(ui());case"bloburi":case"bloburl":if(void 0!==Cf.URL&&"function"==typeof Cf.URL.createObjectURL)return Cf.URL&&Cf.URL.createObjectURL(di(ui()))||void 0;Bf.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var rr="",nr=ui();try{rr=Nf(nr)}catch(er){rr=Nf(unescape(encodeURIComponent(nr)))}return"data:application/pdf;filename="+tr.filename+";base64,"+rr;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Cf)){var ar='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(tr.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(tr)+");<\/script></body></html>",ir=Cf.open();return null!==ir&&ir.document.write(ar),ir}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(Cf)){var or='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(tr.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+tr.filename+'" width="500px" height="400px" /></body></html>',sr=Cf.open();if(null!==sr){sr.document.write(or);var lr=this;sr.document.documentElement.querySelector("#pdfViewer").onload=function(){sr.document.title=tr.filename,sr.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(lr.output("bloburl"))}}return sr}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(Cf))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var cr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",tr)+'"></iframe></body></html>',ur=Cf.open();if(null!==ur&&(ur.document.write(cr),ur.document.title=tr.filename),ur||"undefined"==typeof safari)return ur;break;case"datauri":case"dataurl":return Cf.document.location.href=this.output("datauristring",tr);default:return null}})),pi=function De(er){return!0===Array.isArray(ca)&&ca.indexOf(er)>-1};switch(nr){case"pt":Wn=1;break;case"mm":Wn=72/25.4;break;case"cm":Wn=72/2.54;break;case"in":Wn=72;break;case"px":Wn=1==pi("px_scaling")?.75:96/72;break;case"pc":case"em":Wn=12;break;case"ex":Wn=6;break;default:throw new Error("Invalid unit: "+nr)}Fr(),Lr();var Ai=hr.__private__.getPageInfo=hr.getPageInfo=function(er){if(isNaN(er)||er%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:sa[er].objId,pageNumber:er,pageContext:sa[er]}},fi=hr.__private__.getPageInfoByObjId=function(er){if(isNaN(er)||er%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var tr in sa)if(sa[tr].objId===er)break;return Ai(tr)},gi=hr.__private__.getCurrentPageInfo=hr.getCurrentPageInfo=function(){return{objId:sa[Ir].objId,pageNumber:Ir,pageContext:sa[Ir]}};hr.addPage=function(){return ei.apply(this,arguments),this},hr.setPage=function(){return ri.apply(this,arguments),qr.call(this,Gr[Ir]),this},hr.insertPage=function(er){return this.addPage(),this.movePage(Ir,er),this},hr.movePage=function(er,tr){var rr,nr;if(er>tr){rr=Gr[er],nr=sa[er];for(var ar=er;ar>tr;ar--)Gr[ar]=Gr[ar-1],sa[ar]=sa[ar-1];Gr[tr]=rr,sa[tr]=nr,this.setPage(tr)}else if(er<tr){rr=Gr[er],nr=sa[er];for(var ir=er;ir<tr;ir++)Gr[ir]=Gr[ir+1],sa[ir]=sa[ir+1];Gr[tr]=rr,sa[tr]=nr,this.setPage(tr)}return this},hr.deletePage=function(){return ti.apply(this,arguments),this},hr.__private__.text=hr.text=function(er,tr,rr,nr,ar){var ir,or,sr,lr,cr,ur,hr,pr,Ar=(nr=nr||{}).scope||this;if("number"==typeof er&&"number"==typeof tr&&("string"==typeof rr||Array.isArray(rr))){var fr=rr;rr=tr,tr=er,er=fr}if(arguments[3]instanceof pa==0?(sr=arguments[4],lr=arguments[5],"object"==_typeof(hr=arguments[3])&&null!==hr||("string"==typeof sr&&(lr=sr,sr=null),"string"==typeof hr&&(lr=hr,hr=null),"number"==typeof hr&&(sr=hr,hr=null),nr={flags:hr,angle:sr,align:lr})):(yr("The transform parameter of text() with a Matrix value"),pr=ar),isNaN(tr)||isNaN(rr)||null==er)throw new Error("Invalid arguments passed to jsPDF.text");if(0===er.length)return Ar;var gr="",br=!1,wr="number"==typeof nr.lineHeightFactor?nr.lineHeightFactor:Ni,kr=Ar.internal.scaleFactor;function y(er){return er=er.split("\t").join(Array(nr.TabLen||9).join(" ")),$a(er,hr)}function w(er){for(var tr,rr=er.concat(),nr=[],ar=rr.length;ar--;)"string"==typeof(tr=rr.shift())?nr.push(tr):Array.isArray(er)&&(1===tr.length||void 0===tr[1]&&void 0===tr[2])?nr.push(tr[0]):nr.push([tr[0],tr[1],tr[2]]);return nr}function L(er,tr){var rr;if("string"==typeof er)rr=tr(er)[0];else if(Array.isArray(er)){for(var nr,ar,ir=er.concat(),or=[],sr=ir.length;sr--;)"string"==typeof(nr=ir.shift())?or.push(tr(nr)[0]):Array.isArray(nr)&&"string"==typeof nr[0]&&(ar=tr(nr[0],nr[1],nr[2]),or.push([ar[0],ar[1],ar[2]]));rr=or}return rr}var Sr=!1,Cr=!0;if("string"==typeof er)Sr=!0;else if(Array.isArray(er)){var Br=er.concat();or=[];for(var Er,Nr=Br.length;Nr--;)("string"!=typeof(Er=Br.shift())||Array.isArray(Er)&&"string"!=typeof Er[0])&&(Cr=!1);Sr=Cr}if(!1===Sr)throw new Error('Type of text must be string or Array. "'+er+'" is not recognized.');"string"==typeof er&&(er=er.match(/[\r?\n]/)?er.split(/\r\n|\r|\n/g):[er]);var Lr=$r/Ar.internal.scaleFactor,Pr=Lr*(Ni-1);switch(nr.baseline){case"bottom":rr-=Pr;break;case"top":rr+=Lr-Pr;break;case"hanging":rr+=Lr-2*Pr;break;case"middle":rr+=Lr/2-Pr}if((ur=nr.maxWidth||0)>0&&("string"==typeof er?er=Ar.splitTextToSize(er,ur):"[object Array]"===Object.prototype.toString.call(er)&&(er=Ar.splitTextToSize(er.join(" "),ur))),ir={text:er,x:tr,y:rr,options:nr,mutex:{pdfEscape:$a,activeFontKey:Kn,fonts:$n,activeFontSize:$r}},la.publish("preProcessText",ir),er=ir.text,sr=(nr=ir.options).angle,pr instanceof pa==0&&sr&&"number"==typeof sr){sr*=Math.PI/180,0===nr.rotationDirection&&(sr=-sr),_r===mr.ADVANCED&&(sr=-sr);var Tr=Math.cos(sr),Fr=Math.sin(sr);pr=new pa(Tr,Fr,-Fr,Tr,0,0)}else sr&&sr instanceof pa&&(pr=sr);_r!==mr.ADVANCED||pr||(pr=fa),void 0!==(cr=nr.charSpace||Gi)&&(gr+=vr(xr(cr))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),nr.lang;var Ur=-1,Ir=void 0!==nr.renderingMode?nr.renderingMode:nr.stroke,Rr=Ar.internal.getCurrentPageInfo().pageContext;switch(Ir){case 0:case!1:case"fill":Ur=0;break;case 1:case!0:case"stroke":Ur=1;break;case 2:case"fillThenStroke":Ur=2;break;case 3:case"invisible":Ur=3;break;case 4:case"fillAndAddForClipping":Ur=4;break;case 5:case"strokeAndAddPathForClipping":Ur=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ur=6;break;case 7:case"addToPathForClipping":Ur=7}var Mr=void 0!==Rr.usedRenderingMode?Rr.usedRenderingMode:-1;-1!==Ur?gr+=Ur+" Tr\n":-1!==Mr&&(gr+="0 Tr\n"),-1!==Ur&&(Rr.usedRenderingMode=Ur),lr=nr.align||"left";var Qr,Or=$r*wr,Dr=Ar.internal.pageSize.getWidth(),jr=$n[Kn];cr=nr.charSpace||Gi,ur=nr.maxWidth||0,hr={};var Hr=[];if("[object Array]"===Object.prototype.toString.call(er)){var Gr;or=w(er),"left"!==lr&&(Qr=or.map((function(er){return Ar.getStringUnitWidth(er,{font:jr,charSpace:cr,fontSize:$r,doKerning:!1})*$r/kr})));var Vr,zr=0;if("right"===lr){tr-=Qr[0],er=[],Nr=or.length;for(var Kr=0;Kr<Nr;Kr++)0===Kr?(Vr=Ii(tr),Gr=Ri(rr)):(Vr=xr(zr-Qr[Kr]),Gr=-Or),er.push([or[Kr],Vr,Gr]),zr=Qr[Kr]}else if("center"===lr){tr-=Qr[0]/2,er=[],Nr=or.length;for(var qr=0;qr<Nr;qr++)0===qr?(Vr=Ii(tr),Gr=Ri(rr)):(Vr=xr((zr-Qr[qr])/2),Gr=-Or),er.push([or[qr],Vr,Gr]),zr=Qr[qr]}else if("left"===lr){er=[],Nr=or.length;for(var Xr=0;Xr<Nr;Xr++)er.push(or[Xr])}else{if("justify"!==lr)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');er=[],Nr=or.length,ur=0!==ur?ur:Dr;for(var Yr=0;Yr<Nr;Yr++)Gr=0===Yr?Ri(rr):-Or,Vr=0===Yr?Ii(tr):0,Yr<Nr-1&&Hr.push(vr(xr((ur-Qr[Yr])/(or[Yr].split(" ").length-1)))),er.push([or[Yr],Vr,Gr])}}var Jr="boolean"==typeof nr.R2L?nr.R2L:Un;!0===Jr&&(er=L(er,(function(er,tr,rr){return[er.split("").reverse().join(""),tr,rr]}))),ir={text:er,x:tr,y:rr,options:nr,mutex:{pdfEscape:$a,activeFontKey:Kn,fonts:$n,activeFontSize:$r}},la.publish("postProcessText",ir),er=ir.text,br=ir.mutex.isHex||!1;var Zr=$n[Kn].encoding;"WinAnsiEncoding"!==Zr&&"StandardEncoding"!==Zr||(er=L(er,(function(er,tr,rr){return[y(er),tr,rr]}))),or=w(er),er=[];for(var Tn,Qn,Dn,Hn=0,Gn=1,Vn=Array.isArray(or[0])?Gn:Hn,zn="",Wn=function ct(er,tr,rr){var ar="";return rr instanceof pa?(rr="number"==typeof nr.angle?Aa(rr,new pa(1,0,0,1,er,tr)):Aa(new pa(1,0,0,1,er,tr),rr),_r===mr.ADVANCED&&(rr=Aa(new pa(1,0,0,-1,0,0),rr)),ar=rr.join(" ")+" Tm\n"):ar=vr(er)+" "+vr(tr)+" Td\n",ar},Xn=0;Xn<or.length;Xn++){switch(zn="",Vn){case Gn:Dn=(br?"<":"(")+or[Xn][0]+(br?">":")"),Tn=parseFloat(or[Xn][1]),Qn=parseFloat(or[Xn][2]);break;case Hn:Dn=(br?"<":"(")+or[Xn]+(br?">":")"),Tn=Ii(tr),Qn=Ri(rr)}void 0!==Hr&&void 0!==Hr[Xn]&&(zn=Hr[Xn]+" Tw\n"),0===Xn?er.push(zn+Wn(Tn,Qn,pr)+Dn):Vn===Hn?er.push(zn+Dn):Vn===Gn&&er.push(zn+Wn(Tn,Qn,pr)+Dn)}er=Vn===Hn?er.join(" Tj\nT* "):er.join(" Tj\n"),er+=" Tj\n";var Yn="BT\n/";return Yn+=Kn+" "+$r+" Tf\n",Yn+=vr($r*wr)+" TL\n",Yn+=ji+"\n",Yn+=gr,Yn+=er,Wr(Yn+="ET"),dr[Kn]=!0,Ar};var mi=hr.__private__.clip=hr.clip=function(er){return Wr("evenodd"===er?"W*":"W"),this};hr.clipEvenOdd=function(){return mi("evenodd")},hr.__private__.discardPath=hr.discardPath=function(){return Wr("n"),this};var _i=hr.__private__.isValidStyle=function(er){var tr=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(er)&&(tr=!0),tr};hr.__private__.setDefaultPathOperation=hr.setDefaultPathOperation=function(er){return _i(er)&&(cr=er),this};var vi=hr.__private__.getStyle=hr.getStyle=function(er){var tr=cr;switch(er){case"D":case"S":tr="S";break;case"F":tr="f";break;case"FD":case"DF":tr="B";break;case"f":case"f*":case"B":case"B*":tr=er}return tr},yi=hr.close=function(){return Wr("h"),this};hr.stroke=function(){return Wr("S"),this},hr.fill=function(er){return bi("f",er),this},hr.fillEvenOdd=function(er){return bi("f*",er),this},hr.fillStroke=function(er){return bi("B",er),this},hr.fillStrokeEvenOdd=function(er){return bi("B*",er),this};var bi=function Je(er,tr){"object"==_typeof(tr)?ki(tr,er):Wr(er)},wi=function Xe(er){null===er||_r===mr.ADVANCED&&void 0===er||(er=vi(er),Wr(er))};function Ke(er,tr,rr,nr,ar){var ir=new p(tr||this.boundingBox,rr||this.xStep,nr||this.yStep,this.gState,ar||this.matrix);ir.stream=this.stream;var or=er+"$$"+this.cloneIndex+++"$$";return ga(or,ir),ir}var ki=function Ze(er,tr){var rr=ra[er.key],nr=ta[rr];if(nr instanceof d)Wr("q"),Wr(xi(tr)),nr.gState&&hr.setGState(nr.gState),Wr(er.matrix.toString()+" cm"),Wr("/"+rr+" sh"),Wr("Q");else if(nr instanceof p){var ar=new pa(1,0,0,-1,0,ro());er.matrix&&(ar=ar.multiply(er.matrix||fa),rr=Ke.call(nr,er.key,er.boundingBox,er.xStep,er.yStep,ar).id),Wr("q"),Wr("/Pattern cs"),Wr("/"+rr+" scn"),nr.gState&&hr.setGState(nr.gState),Wr(tr),Wr("Q")}},xi=function $e(er){switch(er){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"}},Si=hr.moveTo=function(er,tr){return Wr(vr(xr(er))+" "+vr(Cr(tr))+" m"),this},Ci=hr.lineTo=function(er,tr){return Wr(vr(xr(er))+" "+vr(Cr(tr))+" l"),this},Bi=hr.curveTo=function(er,tr,rr,nr,ar,ir){return Wr([vr(xr(er)),vr(Cr(tr)),vr(xr(rr)),vr(Cr(nr)),vr(xr(ar)),vr(Cr(ir)),"c"].join(" ")),this};hr.__private__.line=hr.line=function(er,tr,rr,nr,ar){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||!_i(ar))throw new Error("Invalid arguments passed to jsPDF.line");return _r===mr.COMPAT?this.lines([[rr-er,nr-tr]],er,tr,[1,1],ar||"S"):this.lines([[rr-er,nr-tr]],er,tr,[1,1]).stroke()},hr.__private__.lines=hr.lines=function(er,tr,rr,nr,ar,ir){var or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr;if("number"==typeof er&&(mr=rr,rr=tr,tr=er,er=mr),nr=nr||[1,1],ir=ir||!1,isNaN(tr)||isNaN(rr)||!Array.isArray(er)||!Array.isArray(nr)||!_i(ar)||"boolean"!=typeof ir)throw new Error("Invalid arguments passed to jsPDF.lines");for(Si(tr,rr),or=nr[0],sr=nr[1],cr=er.length,fr=tr,gr=rr,lr=0;lr<cr;lr++)2===(ur=er[lr]).length?(fr=ur[0]*or+fr,gr=ur[1]*sr+gr,Ci(fr,gr)):(dr=ur[0]*or+fr,hr=ur[1]*sr+gr,pr=ur[2]*or+fr,Ar=ur[3]*sr+gr,fr=ur[4]*or+fr,gr=ur[5]*sr+gr,Bi(dr,hr,pr,Ar,fr,gr));return ir&&yi(),wi(ar),this},hr.path=function(er){for(var tr=0;tr<er.length;tr++){var rr=er[tr],nr=rr.c;switch(rr.op){case"m":Si(nr[0],nr[1]);break;case"l":Ci(nr[0],nr[1]);break;case"c":Bi.apply(this,nr);break;case"h":yi()}}return this},hr.__private__.rect=hr.rect=function(er,tr,rr,nr,ar){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||!_i(ar))throw new Error("Invalid arguments passed to jsPDF.rect");return _r===mr.COMPAT&&(nr=-nr),Wr([vr(xr(er)),vr(Cr(tr)),vr(xr(rr)),vr(xr(nr)),"re"].join(" ")),wi(ar),this},hr.__private__.triangle=hr.triangle=function(er,tr,rr,nr,ar,ir,or){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ar)||isNaN(ir)||!_i(or))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[rr-er,nr-tr],[ar-rr,ir-nr],[er-ar,tr-ir]],er,tr,[1,1],or,!0),this},hr.__private__.roundedRect=hr.roundedRect=function(er,tr,rr,nr,ar,ir,or){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ar)||isNaN(ir)||!_i(or))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var sr=4/3*(Math.SQRT2-1);return ar=Math.min(ar,.5*rr),ir=Math.min(ir,.5*nr),this.lines([[rr-2*ar,0],[ar*sr,0,ar,ir-ir*sr,ar,ir],[0,nr-2*ir],[0,ir*sr,-ar*sr,ir,-ar,ir],[2*ar-rr,0],[-ar*sr,0,-ar,-ir*sr,-ar,-ir],[0,2*ir-nr],[0,-ir*sr,ar*sr,-ir,ar,-ir]],er+ar,tr,[1,1],or,!0),this},hr.__private__.ellipse=hr.ellipse=function(er,tr,rr,nr,ar){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||!_i(ar))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ir=4/3*(Math.SQRT2-1)*rr,or=4/3*(Math.SQRT2-1)*nr;return Si(er+rr,tr),Bi(er+rr,tr-or,er+ir,tr-nr,er,tr-nr),Bi(er-ir,tr-nr,er-rr,tr-or,er-rr,tr),Bi(er-rr,tr+or,er-ir,tr+nr,er,tr+nr),Bi(er+ir,tr+nr,er+rr,tr+or,er+rr,tr),wi(ar),this},hr.__private__.circle=hr.circle=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||!_i(nr))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(er,tr,rr,rr,nr)},hr.setFont=function(er,tr){return Kn=ai(er,tr,{disableWarning:!1}),this};var Ei=hr.__private__.getFont=hr.getFont=function(){return $n[ai.apply(hr,arguments)]};hr.__private__.getFontList=hr.getFontList=function(){var er,tr,rr={};for(er in Zn)if(Zn.hasOwnProperty(er))for(tr in rr[er]=[],Zn[er])Zn[er].hasOwnProperty(tr)&&rr[er].push(tr);return rr},hr.addFont=function(er,tr,rr,nr){return nr=nr||"Identity-H",Wa.call(this,er,tr,rr,nr)};var Ni,Li=er.lineWidth||.200025,Pi=hr.__private__.setLineWidth=hr.setLineWidth=function(er){return Wr(vr(xr(er))+" w"),this};hr.__private__.setLineDash=g.API.setLineDash=g.API.setLineDashPattern=function(er,tr){if(er=er||[],tr=tr||0,isNaN(tr)||!Array.isArray(er))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return er=er.map((function(er){return vr(xr(er))})).join(" "),tr=vr(xr(tr)),Wr("["+er+"] "+tr+" d"),this};var Ti=hr.__private__.getLineHeight=hr.getLineHeight=function(){return $r*Ni};hr.__private__.getLineHeight=hr.getLineHeight=function(){return $r*Ni};var Fi=hr.__private__.setLineHeightFactor=hr.setLineHeightFactor=function(er){return"number"==typeof(er=er||1.15)&&(Ni=er),this},Ui=hr.__private__.getLineHeightFactor=hr.getLineHeightFactor=function(){return Ni};Fi(er.lineHeight);var Ii=hr.__private__.getHorizontalCoordinate=function(er){return xr(er)},Ri=hr.__private__.getVerticalCoordinate=function(er){return _r===mr.ADVANCED?er:sa[Ir].mediaBox.topRightY-sa[Ir].mediaBox.bottomLeftY-xr(er)},Mi=hr.__private__.getHorizontalCoordinateString=hr.getHorizontalCoordinateString=function(er){return vr(Ii(er))},Qi=hr.__private__.getVerticalCoordinateString=hr.getVerticalCoordinateString=function(er){return vr(Ri(er))},Oi=er.strokeColor||"0 G";hr.__private__.getStrokeColor=hr.getDrawColor=function(){return ka(Oi)},hr.__private__.setStrokeColor=hr.setDrawColor=function(er,tr,rr,nr){return Oi=xa({ch1:er,ch2:tr,ch3:rr,ch4:nr,pdfColorType:"draw",precision:2}),Wr(Oi),this};var Di=er.fillColor||"0 g";hr.__private__.getFillColor=hr.getFillColor=function(){return ka(Di)},hr.__private__.setFillColor=hr.setFillColor=function(er,tr,rr,nr){return Di=xa({ch1:er,ch2:tr,ch3:rr,ch4:nr,pdfColorType:"fill",precision:2}),Wr(Di),this};var ji=er.textColor||"0 g",Hi=hr.__private__.getTextColor=hr.getTextColor=function(){return ka(ji)};hr.__private__.setTextColor=hr.setTextColor=function(er,tr,rr,nr){return ji=xa({ch1:er,ch2:tr,ch3:rr,ch4:nr,pdfColorType:"text",precision:3}),this};var Gi=er.charSpace,Vi=hr.__private__.getCharSpace=hr.getCharSpace=function(){return parseFloat(Gi||0)};hr.__private__.setCharSpace=hr.setCharSpace=function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Gi=er,this};var zi=0;hr.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},hr.__private__.setLineCap=hr.setLineCap=function(er){var tr=hr.CapJoinStyles[er];if(void 0===tr)throw new Error("Line cap style of '"+er+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return zi=tr,Wr(tr+" J"),this};var Ki=0;hr.__private__.setLineJoin=hr.setLineJoin=function(er){var tr=hr.CapJoinStyles[er];if(void 0===tr)throw new Error("Line join style of '"+er+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ki=tr,Wr(tr+" j"),this},hr.__private__.setLineMiterLimit=hr.__private__.setMiterLimit=hr.setLineMiterLimit=hr.setMiterLimit=function(er){if(er=er||0,isNaN(er))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Wr(vr(xr(er))+" M"),this},hr.GState=l,hr.setGState=function(er){(er="string"==typeof er?na[aa[er]]:qi(null,er)).equals(ia)||(Wr("/"+er.id+" gs"),ia=er)};var qi=function Ln(er,tr){if(!er||!aa[er]){var rr=!1;for(var nr in na)if(na.hasOwnProperty(nr)&&na[nr].equals(tr)){rr=!0;break}if(rr)tr=na[nr];else{var ar="GS"+(Object.keys(na).length+1).toString(10);na[ar]=tr,tr.id=ar}return er&&(aa[er]=tr.id),la.publish("addGState",tr),tr}};hr.addGState=function(er,tr){return qi(er,tr),this},hr.saveGraphicsState=function(){return Wr("q"),ea.push({key:Kn,size:$r,color:ji}),this},hr.restoreGraphicsState=function(){Wr("Q");var er=ea.pop();return Kn=er.key,$r=er.size,ji=er.color,ia=null,this},hr.setCurrentTransformationMatrix=function(er){return Wr(er.toString()+" cm"),this},hr.comment=function(er){return Wr("#"+er),this};var Wi=function xn(er,tr){var rr=er||0;Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return rr},set:function set(er){isNaN(er)||(rr=parseFloat(er))}});var nr=tr||0;Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return nr},set:function set(er){isNaN(er)||(nr=parseFloat(er))}});var ar="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function get(){return ar},set:function set(er){ar=er.toString()}}),this},Xi=function An(er,tr,rr,nr){Wi.call(this,er,tr),this.type="rect";var ar=rr||0;Object.defineProperty(this,"w",{enumerable:!0,get:function get(){return ar},set:function set(er){isNaN(er)||(ar=parseFloat(er))}});var ir=nr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function get(){return ir},set:function set(er){isNaN(er)||(ir=parseFloat(er))}}),this},Yi=function _n(){this.page=oa,this.currentPage=Ir,this.pages=Gr.slice(0),this.pagesContext=sa.slice(0),this.x=Xn,this.y=Yn,this.matrix=Jn,this.width=eo(Ir),this.height=ro(Ir),this.outputDestination=zr,this.id="",this.objectNumber=-1};Yi.prototype.restore=function(){oa=this.page,Ir=this.currentPage,sa=this.pagesContext,Gr=this.pages,Xn=this.x,Yn=this.y,Jn=this.matrix,to(Ir,this.width),no(Ir,this.height),zr=this.outputDestination};var Ji=function Sn(er,tr,rr,nr,ar){ha.push(new Yi),oa=Ir=0,Gr=[],Xn=er,Yn=tr,Jn=ar,Za([rr,nr])},$i=function Pn(er){if(!da[er]){var tr=new Yi,rr="Xo"+(Object.keys(ua).length+1).toString(10);tr.id=rr,da[er]=rr,ua[rr]=tr,la.publish("addFormObject",tr),ha.pop().restore()}};for(var Zi in hr.beginFormObject=function(er,tr,rr,nr,ar){return Ji(er,tr,rr,nr,ar),this},hr.endFormObject=function(er){return $i(er),this},hr.doFormObject=function(er,tr){var rr=ua[da[er]];return Wr("q"),Wr(tr.toString()+" cm"),Wr("/"+rr.id+" Do"),Wr("Q"),this},hr.getFormObject=function(er){var tr=ua[da[er]];return{x:tr.x,y:tr.y,width:tr.width,height:tr.height,matrix:tr.matrix}},hr.save=function(er,tr){return er=er||"generated.pdf",(tr=tr||{}).returnPromise=tr.returnPromise||!1,!1===tr.returnPromise?(Lf(di(ui()),er),"function"==typeof Lf.unload&&Cf.setTimeout&&setTimeout(Lf.unload,911),this):new Promise((function(tr,rr){try{var nr=Lf(di(ui()),er);"function"==typeof Lf.unload&&Cf.setTimeout&&setTimeout(Lf.unload,911),tr(nr)}catch(er){rr(er.message)}}))},g.API)g.API.hasOwnProperty(Zi)&&("events"===Zi&&g.API.events.length?function(er,tr){var rr,nr,ar;for(ar=tr.length-1;-1!==ar;ar--)rr=tr[ar][0],nr=tr[ar][1],er.subscribe.apply(er,[rr].concat("function"==typeof nr?[nr]:nr))}(la,g.API.events):hr[Zi]=g.API[Zi]);var eo=hr.getPageWidth=function(er){return(sa[er=er||Ir].mediaBox.topRightX-sa[er].mediaBox.bottomLeftX)/Wn},to=hr.setPageWidth=function(er,tr){sa[er].mediaBox.topRightX=tr*Wn+sa[er].mediaBox.bottomLeftX},ro=hr.getPageHeight=function(er){return(sa[er=er||Ir].mediaBox.topRightY-sa[er].mediaBox.bottomLeftY)/Wn},no=hr.setPageHeight=function(er,tr){sa[er].mediaBox.topRightY=tr*Wn+sa[er].mediaBox.bottomLeftY};return hr.internal={pdfEscape:$a,getStyle:vi,getFont:Ei,getFontSize:Tn,getCharSpace:Vi,getTextColor:Hi,getLineHeight:Ti,getLineHeightFactor:Ui,write:Xr,getHorizontalCoordinate:Ii,getVerticalCoordinate:Ri,getCoordinateString:Mi,getVerticalCoordinateString:Qi,collections:{},newObject:ma,newAdditionalObject:ya,newObjectDeferred:_a,newObjectDeferredBegin:va,getFilters:Sa,putStream:Ca,events:la,scaleFactor:Wn,pageSize:{getWidth:function getWidth(){return eo(Ir)},setWidth:function setWidth(er){to(Ir,er)},getHeight:function getHeight(){return ro(Ir)},setHeight:function setHeight(er){no(Ir,er)}},output:hi,getNumberOfPages:ni,pages:Gr,out:Wr,f2:wr,f3:kr,getPageInfo:Ai,getPageInfoByObjId:fi,getCurrentPageInfo:gi,getPDFVersion:Ar,Point:Wi,Rectangle:Xi,Matrix:pa,hasHotfix:pi},Object.defineProperty(hr.internal.pageSize,"width",{get:function get(){return eo(Ir)},set:function set(er){to(Ir,er)},enumerable:!0,configurable:!0}),Object.defineProperty(hr.internal.pageSize,"height",{get:function get(){return ro(Ir)},set:function set(er){no(Ir,er)},enumerable:!0,configurable:!0}),Xa.call(hr,Jr),Kn="F1",ei(ar,rr),la.publish("initialized"),hr}Ef=Cf.atob,Nf=Cf.btoa,l.prototype.equals=function(er){var tr,rr="id,objectNumber,equals";if(!er||_typeof(er)!=_typeof(this))return!1;var nr=0;for(tr in this)if(!(rr.indexOf(tr)>=0)){if(this.hasOwnProperty(tr)&&!er.hasOwnProperty(tr))return!1;if(this[tr]!==er[tr])return!1;nr++}for(tr in er)er.hasOwnProperty(tr)&&rr.indexOf(tr)<0&&nr--;return 0===nr},g.API={events:[]},g.version="2.1.1";var Pf,Tf=g.API,Ff=1,Uf=function y(er){return er.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},If=function w(er){return er.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Rf=function N(er){return er.toFixed(2)},Mf=function L(er){return er.toFixed(5)};Tf.__acroform__={};var Qf=function x(er,tr){er.prototype=Object.create(tr.prototype),er.prototype.constructor=er},Of=function A(er){return er*Ff},Df=function _(er){var tr=new cg,rr=kg.internal.getHeight(er)||0,nr=kg.internal.getWidth(er)||0;return tr.BBox=[0,0,Number(Rf(nr)),Number(Rf(rr))],tr},jf=Tf.__acroform__.setBit=function(er,tr){if(er=er||0,tr=tr||0,isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return er|1<<tr},Hf=Tf.__acroform__.clearBit=function(er,tr){if(er=er||0,tr=tr||0,isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return er&~(1<<tr)},Gf=Tf.__acroform__.getBit=function(er,tr){if(isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(er&1<<tr)?0:1},Vf=Tf.__acroform__.getBitForPdf=function(er,tr){if(isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Gf(er,tr-1)},zf=Tf.__acroform__.setBitForPdf=function(er,tr){if(isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return jf(er,tr-1)},Kf=Tf.__acroform__.clearBitForPdf=function(er,tr){if(isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Hf(er,tr-1)},qf=Tf.__acroform__.calculateCoordinates=function(er){var tr=this.internal.getHorizontalCoordinate,rr=this.internal.getVerticalCoordinate,nr=er[0],ar=er[1],ir=er[2],or=er[3],sr={};return sr.lowerLeft_X=tr(nr)||0,sr.lowerLeft_Y=rr(ar+or)||0,sr.upperRight_X=tr(nr+ir)||0,sr.upperRight_Y=rr(ar)||0,[Number(Rf(sr.lowerLeft_X)),Number(Rf(sr.lowerLeft_Y)),Number(Rf(sr.upperRight_X)),Number(Rf(sr.upperRight_Y))]},Wf=function B(er){if(er.appearanceStreamContent)return er.appearanceStreamContent;if(er.V||er.DV){var tr=[],rr=er.V||er.DV,nr=Xf(er,rr),ar=Pf.internal.getFont(er.fontName,er.fontStyle).id;tr.push("/Tx BMC"),tr.push("q"),tr.push("BT"),tr.push(Pf.__private__.encodeColorString(er.color)),tr.push("/"+ar+" "+Rf(nr.fontSize)+" Tf"),tr.push("1 0 0 1 0 0 Tm"),tr.push(nr.text),tr.push("ET"),tr.push("Q"),tr.push("EMC");var ir=new Df(er);return ir.stream=tr.join("\n"),ir}},Xf=function O(er,tr){var rr=0===er.fontSize?er.maxFontSize:er.fontSize,nr={text:"",fontSize:""},ar=(tr=")"==(tr="("==tr.substr(0,1)?tr.substr(1):tr).substr(tr.length-1)?tr.substr(0,tr.length-1):tr).split(" "),ir=rr,or=kg.internal.getHeight(er)||0;or=or<0?-or:or;var sr=kg.internal.getWidth(er)||0;sr=sr<0?-sr:sr;var lr=function u(tr,rr,nr){if(tr+1<ar.length){var ir=rr+" "+ar[tr+1];return Yf(ir,er,nr).width<=sr-4}return!1};ir++;e:for(;ir>0;){tr="",ir--;var cr,ur,dr=Yf("3",er,ir).height,hr=er.multiline?or-ir:(or-dr)/2,pr=hr+=2,Ar=0,fr=0;if(ir<=0){tr="(...) Tj\n",tr+="% Width of Text: "+Yf(tr,er,ir=12).width+", FieldWidth:"+sr+"\n";break}var gr="",mr=0;for(var _r in ar)if(ar.hasOwnProperty(_r)){gr=" "==(gr+=ar[_r]+" ").substr(gr.length-1)?gr.substr(0,gr.length-1):gr;var vr=parseInt(_r),yr=lr(vr,gr,ir),br=_r>=ar.length-1;if(yr&&!br){gr+=" ";continue}if(yr||br){if(br)fr=vr;else if(er.multiline&&(dr+2)*(mr+2)+2>or)continue e}else{if(!er.multiline)continue e;if((dr+2)*(mr+2)+2>or)continue e;fr=vr}for(var wr="",kr=Ar;kr<=fr;kr++)wr+=ar[kr]+" ";switch(wr=" "==wr.substr(wr.length-1)?wr.substr(0,wr.length-1):wr,ur=Yf(wr,er,ir).width,er.textAlign){case"right":cr=sr-ur-2;break;case"center":cr=(sr-ur)/2;break;case"left":default:cr=2}tr+=Rf(cr)+" "+Rf(pr)+" Td\n",tr+="("+Uf(wr)+") Tj\n",tr+=-Rf(cr)+" 0 Td\n",pr=-(ir+2),ur=0,Ar=fr+1,mr++,gr=""}break}return nr.text=tr,nr.fontSize=ir,nr},Yf=function M(er,tr,rr){var nr=Pf.internal.getFont(tr.fontName,tr.fontStyle),ar=Pf.getStringUnitWidth(er,{font:nr,fontSize:parseFloat(rr),charSpace:0})*parseFloat(rr);return{height:Pf.getStringUnitWidth("3",{font:nr,fontSize:parseFloat(rr),charSpace:0})*parseFloat(rr)*1.5,width:ar}},Jf={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},$f=function q(){Pf.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var er=Pf.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var tr in er)if(er.hasOwnProperty(tr)){var rr=er[tr];rr.objId=void 0,rr.hasAnnotation&&eg.call(Pf,rr)}},Zf=function R(er){Pf.internal.acroformPlugin.printedOut&&(Pf.internal.acroformPlugin.printedOut=!1,Pf.internal.acroformPlugin.acroFormDictionaryRoot=null),Pf.internal.acroformPlugin.acroFormDictionaryRoot||ig.call(Pf),Pf.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(er)},eg=function T(er){var tr={type:"reference",object:er};void 0===Pf.internal.getPageInfo(er.page).pageContext.annotations.find((function(er){return er.type===tr.type&&er.object===tr.object}))&&Pf.internal.getPageInfo(er.page).pageContext.annotations.push(tr)},tg=function D(){if(void 0===Pf.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");Pf.internal.write("/AcroForm "+Pf.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},rg=function U(){Pf.internal.events.unsubscribe(Pf.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Pf.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Pf.internal.acroformPlugin.printedOut=!0},ng=function z(er){var tr=!er;for(var rr in er||(Pf.internal.newObjectDeferredBegin(Pf.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Pf.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),er=er||Pf.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(er.hasOwnProperty(rr)){var nr=er[rr],ar=[],ir=nr.Rect;if(nr.Rect&&(nr.Rect=qf.call(this,nr.Rect)),Pf.internal.newObjectDeferredBegin(nr.objId,!0),nr.DA=kg.createDefaultAppearanceStream(nr),"object"==_typeof(nr)&&"function"==typeof nr.getKeyValueListForStream&&(ar=nr.getKeyValueListForStream()),nr.Rect=ir,nr.hasAppearanceStream&&!nr.appearanceStreamContent){var or=Wf.call(this,nr);ar.push({key:"AP",value:"<</N "+or+">>"}),Pf.internal.acroformPlugin.xForms.push(or)}if(nr.appearanceStreamContent){var sr="";for(var lr in nr.appearanceStreamContent)if(nr.appearanceStreamContent.hasOwnProperty(lr)){var cr=nr.appearanceStreamContent[lr];if(sr+="/"+lr+" ",sr+="<<",Object.keys(cr).length>=1||Array.isArray(cr)){for(var rr in cr)if(cr.hasOwnProperty(rr)){var ur=cr[rr];"function"==typeof ur&&(ur=ur.call(this,nr)),sr+="/"+rr+" "+ur+" ",Pf.internal.acroformPlugin.xForms.indexOf(ur)>=0||Pf.internal.acroformPlugin.xForms.push(ur)}}else"function"==typeof(ur=cr)&&(ur=ur.call(this,nr)),sr+="/"+rr+" "+ur,Pf.internal.acroformPlugin.xForms.indexOf(ur)>=0||Pf.internal.acroformPlugin.xForms.push(ur);sr+=">>"}ar.push({key:"AP",value:"<<\n"+sr+">>"})}Pf.internal.putStream({additionalKeyValues:ar}),Pf.internal.out("endobj")}tr&&ag.call(this,Pf.internal.acroformPlugin.xForms)},ag=function H(er){for(var tr in er)if(er.hasOwnProperty(tr)){var rr=tr,nr=er[tr];Pf.internal.newObjectDeferredBegin(nr&&nr.objId,!0),"object"==_typeof(nr)&&"function"==typeof nr.putStream&&nr.putStream(),delete er[rr]}},ig=function W(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(Pf=this,dg.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(Jf)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ff=Pf.internal.scaleFactor,Pf.internal.acroformPlugin.acroFormDictionaryRoot=new ug,Pf.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Pf.internal.events.subscribe("postPutResources",rg),Pf.internal.events.subscribe("buildDocument",$f),Pf.internal.events.subscribe("putCatalog",tg),Pf.internal.events.subscribe("postPutPages",ng),Pf.internal.acroformPlugin.isInitialized=!0}},og=Tf.__acroform__.arrayToPdfArray=function(er){if(Array.isArray(er)){for(var tr="[",rr=0;rr<er.length;rr++)switch(0!==rr&&(tr+=" "),_typeof(er[rr])){case"boolean":case"number":case"object":tr+=er[rr].toString();break;case"string":"/"!==er[rr].substr(0,1)?tr+="("+Uf(er[rr].toString())+")":tr+=er[rr].toString()}return tr+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},sg=function G(er){return(er=er||"").toString(),"("+Uf(er)+")"},lg=function Y(){var er;Object.defineProperty(this,"objId",{configurable:!0,get:function get(){return er||(er=Pf.internal.newObjectDeferred()),er},set:function set(tr){er=tr}})};lg.prototype.toString=function(){return this.objId+" 0 R"},lg.prototype.putStream=function(){var er=this.getKeyValueListForStream();Pf.internal.putStream({data:this.stream,additionalKeyValues:er}),Pf.internal.out("endobj")},lg.prototype.getKeyValueListForStream=function(){return function(er){var tr=[],rr=Object.getOwnPropertyNames(er).filter((function(er){return"content"!=er&&"appearanceStreamContent"!=er&&"_"!=er.substring(0,1)}));for(var nr in rr)if(!1===Object.getOwnPropertyDescriptor(er,rr[nr]).configurable){var ar=rr[nr],ir=er[ar];ir&&(Array.isArray(ir)?tr.push({key:ar,value:og(ir)}):ir instanceof lg?tr.push({key:ar,value:ir.objId+" 0 R"}):"function"!=typeof ir&&tr.push({key:ar,value:ir}))}return tr}(this)};var cg=function J(){lg.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 er,tr=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function get(){return tr},set:function set(er){tr=er}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function set(tr){er=tr.trim()},get:function get(){return er||null}})};Qf(cg,lg);var ug=function X(){lg.call(this);var er,tr=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function get(){return tr.length>0?tr:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function get(){return tr}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function get(){if(er)return"("+er+")"},set:function set(tr){er=tr}})};Qf(ug,lg);var dg=function K(){lg.call(this);var er=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function get(){return er},set:function set(tr){if(isNaN(tr))throw new Error('Invalid value "'+tr+'" for attribute F supplied.');er=tr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(er,3))},set:function set(tr){!0===Boolean(tr)?this.F=zf(er,3):this.F=Kf(er,3)}});var tr=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function get(){return tr},set:function set(er){if(isNaN(er))throw new Error('Invalid value "'+er+'" for attribute Ff supplied.');tr=er}});var rr=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function get(){if(0!==rr.length)return rr},set:function set(er){rr=void 0!==er?er:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function get(){return!rr||isNaN(rr[0])?0:rr[0]},set:function set(er){rr[0]=er}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function get(){return!rr||isNaN(rr[1])?0:rr[1]},set:function set(er){rr[1]=er}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function get(){return!rr||isNaN(rr[2])?0:rr[2]},set:function set(er){rr[2]=er}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function get(){return!rr||isNaN(rr[3])?0:rr[3]},set:function set(er){rr[3]=er}});var nr="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function get(){return nr},set:function set(er){switch(er){case"/Btn":case"/Tx":case"/Ch":case"/Sig":nr=er;break;default:throw new Error('Invalid value "'+er+'" for attribute FT supplied.')}}});var ar=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function get(){if(!ar||ar.length<1){if(this instanceof vg)return;ar="FieldObject"+K.FieldNum++}return"("+Uf(ar)+")"},set:function set(er){ar=er.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function get(){return ar},set:function set(er){ar=er}});var ir="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function get(){return ir},set:function set(er){ir=er}});var or="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function get(){return or},set:function set(er){or=er}});var sr=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function get(){return sr},set:function set(er){sr=er}});var lr=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function get(){return void 0===lr?50/Ff:lr},set:function set(er){lr=er}});var cr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function get(){return cr},set:function set(er){cr=er}});var ur="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function get(){if(!(!ur||this instanceof vg||this instanceof bg))return sg(ur)},set:function set(er){er=er.toString(),ur=er}});var dr=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function get(){if(dr)return this instanceof gg==0?sg(dr):dr},set:function set(er){er=er.toString(),dr=this instanceof gg==0?"("===er.substr(0,1)?If(er.substr(1,er.length-2)):If(er):er}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function get(){return this instanceof gg==1?If(dr.substr(1,dr.length-1)):dr},set:function set(er){er=er.toString(),dr=this instanceof gg==1?"/"+er:er}});var hr=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function get(){if(hr)return this instanceof gg==0?sg(hr):hr},set:function set(er){er=er.toString(),hr=this instanceof gg==0?"("===er.substr(0,1)?If(er.substr(1,er.length-2)):If(er):er}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function get(){return this instanceof gg==1?If(hr.substr(1,hr.length-1)):hr},set:function set(er){er=er.toString(),hr=this instanceof gg==1?"/"+er:er}}),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 pr,Ar=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function get(){return Ar},set:function set(er){er=Boolean(er),Ar=er}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function get(){if(pr)return pr},set:function set(er){pr=er}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,1))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,1):this.Ff=Kf(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,2))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,2):this.Ff=Kf(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,3))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,3):this.Ff=Kf(this.Ff,3)}});var fr=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function get(){if(null!==fr)return fr},set:function set(er){if(-1===[0,1,2].indexOf(er))throw new Error('Invalid value "'+er+'" for attribute Q supplied.');fr=er}}),Object.defineProperty(this,"textAlign",{get:function get(){var er;switch(fr){case 0:default:er="left";break;case 1:er="center";break;case 2:er="right"}return er},configurable:!0,enumerable:!0,set:function set(er){switch(er){case"right":case 2:fr=2;break;case"center":case 1:fr=1;break;case"left":case 0:default:fr=0}}})};Qf(dg,lg);var hg=function Z(){dg.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var er=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function get(){return er},set:function set(tr){er=tr}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function get(){return er},set:function set(tr){er=tr}});var tr=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function get(){return og(tr)},set:function set(er){var rr,nr;nr=[],"string"==typeof(rr=er)&&(nr=function(er,tr,rr){rr||(rr=1);for(var nr,ar=[];nr=tr.exec(er);)ar.push(nr[rr]);return ar}(rr,/\((.*?)\)/g)),tr=nr}}),this.getOptions=function(){return tr},this.setOptions=function(er){tr=er,this.sort&&tr.sort()},this.addOption=function(er){er=(er=er||"").toString(),tr.push(er),this.sort&&tr.sort()},this.removeOption=function(er,rr){for(rr=rr||!1,er=(er=er||"").toString();-1!==tr.indexOf(er)&&(tr.splice(tr.indexOf(er),1),!1!==rr););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,18))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,18):this.Ff=Kf(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,19))},set:function set(er){!0===this.combo&&(!0===Boolean(er)?this.Ff=zf(this.Ff,19):this.Ff=Kf(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,20))},set:function set(er){!0===Boolean(er)?(this.Ff=zf(this.Ff,20),tr.sort()):this.Ff=Kf(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,22))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,22):this.Ff=Kf(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,23))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,23):this.Ff=Kf(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,27))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,27):this.Ff=Kf(this.Ff,27)}}),this.hasAppearanceStream=!1};Qf(hg,dg);var pg=function $(){hg.call(this),this.fontName="helvetica",this.combo=!1};Qf(pg,hg);var Ag=function Q(){pg.call(this),this.combo=!0};Qf(Ag,pg);var fg=function tt(){Ag.call(this),this.edit=!0};Qf(fg,Ag);var gg=function et(){dg.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,15))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,15):this.Ff=Kf(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,16))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,16):this.Ff=Kf(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,17))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,17):this.Ff=Kf(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,26))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,26):this.Ff=Kf(this.Ff,26)}});var er,tr={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function get(){if(0!==Object.keys(tr).length){var er,rr=[];for(er in rr.push("<<"),tr)rr.push("/"+er+" ("+tr[er]+")");return rr.push(">>"),rr.join("\n")}},set:function set(er){"object"==_typeof(er)&&(tr=er)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function get(){return tr.CA||""},set:function set(er){"string"==typeof er&&(tr.CA=er)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function get(){return er},set:function set(tr){er=tr}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function get(){return er.substr(1,er.length-1)},set:function set(tr){er="/"+tr}})};Qf(gg,dg);var mg=function nt(){gg.call(this),this.pushButton=!0};Qf(mg,gg);var _g=function rt(){gg.call(this),this.radio=!0,this.pushButton=!1;var er=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function get(){return er},set:function set(tr){er=void 0!==tr?tr:[]}})};Qf(_g,gg);var vg=function it(){var er,tr;dg.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function get(){return er},set:function set(tr){er=tr}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function get(){return tr},set:function set(er){tr=er}});var rr,nr={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function get(){var er,tr=[];for(er in tr.push("<<"),nr)tr.push("/"+er+" ("+nr[er]+")");return tr.push(">>"),tr.join("\n")},set:function set(er){"object"==_typeof(er)&&(nr=er)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function get(){return nr.CA||""},set:function set(er){"string"==typeof er&&(nr.CA=er)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function get(){return rr},set:function set(er){rr=er}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function get(){return rr.substr(1,rr.length-1)},set:function set(er){rr="/"+er}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=kg.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Qf(vg,dg),_g.prototype.setAppearance=function(er){if(!("createAppearanceStream"in er)||!("getCA"in er))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var tr in this.Kids)if(this.Kids.hasOwnProperty(tr)){var rr=this.Kids[tr];rr.appearanceStreamContent=er.createAppearanceStream(rr.optionName),rr.caption=er.getCA()}},_g.prototype.createOption=function(er){var tr=new vg;return tr.Parent=this,tr.optionName=er,this.Kids.push(tr),xg.call(this,tr),tr};var yg=function at(){gg.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=kg.CheckBox.createAppearanceStream()};Qf(yg,gg);var bg=function ot(){dg.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,13))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,13):this.Ff=Kf(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,21))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,21):this.Ff=Kf(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,23))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,23):this.Ff=Kf(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,24))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,24):this.Ff=Kf(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,25))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,25):this.Ff=Kf(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,26))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,26):this.Ff=Kf(this.Ff,26)}});var er=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function get(){return er},set:function set(tr){er=tr}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function get(){return er},set:function set(tr){Number.isInteger(tr)&&(er=tr)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function get(){return this.V||this.DV}})};Qf(bg,dg);var wg=function st(){bg.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Vf(this.Ff,14))},set:function set(er){!0===Boolean(er)?this.Ff=zf(this.Ff,14):this.Ff=Kf(this.Ff,14)}}),this.password=!0};Qf(wg,bg);var kg={CheckBox:{createAppearanceStream:function createAppearanceStream(){return{N:{On:kg.CheckBox.YesNormal},D:{On:kg.CheckBox.YesPushDown,Off:kg.CheckBox.OffPushDown}}},YesPushDown:function YesPushDown(er){var tr=new Df(er),rr=[],nr=Pf.internal.getFont(er.fontName,er.fontStyle).id,ar=Pf.__private__.encodeColorString(er.color),ir=Xf(er,er.caption);return rr.push("0.749023 g"),rr.push("0 0 "+Rf(kg.internal.getWidth(er))+" "+Rf(kg.internal.getHeight(er))+" re"),rr.push("f"),rr.push("BMC"),rr.push("q"),rr.push("0 0 1 rg"),rr.push("/"+nr+" "+Rf(ir.fontSize)+" Tf "+ar),rr.push("BT"),rr.push(ir.text),rr.push("ET"),rr.push("Q"),rr.push("EMC"),tr.stream=rr.join("\n"),tr},YesNormal:function YesNormal(er){var tr=new Df(er),rr=Pf.internal.getFont(er.fontName,er.fontStyle).id,nr=Pf.__private__.encodeColorString(er.color),ar=[],ir=kg.internal.getHeight(er),or=kg.internal.getWidth(er),sr=Xf(er,er.caption);return ar.push("1 g"),ar.push("0 0 "+Rf(or)+" "+Rf(ir)+" re"),ar.push("f"),ar.push("q"),ar.push("0 0 1 rg"),ar.push("0 0 "+Rf(or-1)+" "+Rf(ir-1)+" re"),ar.push("W"),ar.push("n"),ar.push("0 g"),ar.push("BT"),ar.push("/"+rr+" "+Rf(sr.fontSize)+" Tf "+nr),ar.push(sr.text),ar.push("ET"),ar.push("Q"),tr.stream=ar.join("\n"),tr},OffPushDown:function OffPushDown(er){var tr=new Df(er),rr=[];return rr.push("0.749023 g"),rr.push("0 0 "+Rf(kg.internal.getWidth(er))+" "+Rf(kg.internal.getHeight(er))+" re"),rr.push("f"),tr.stream=rr.join("\n"),tr}},RadioButton:{Circle:{createAppearanceStream:function createAppearanceStream(er){var tr={D:{Off:kg.RadioButton.Circle.OffPushDown},N:{}};return tr.N[er]=kg.RadioButton.Circle.YesNormal,tr.D[er]=kg.RadioButton.Circle.YesPushDown,tr},getCA:function getCA(){return"l"},YesNormal:function YesNormal(er){var tr=new Df(er),rr=[],nr=kg.internal.getWidth(er)<=kg.internal.getHeight(er)?kg.internal.getWidth(er)/4:kg.internal.getHeight(er)/4;nr=Number((.9*nr).toFixed(5));var ar=kg.internal.Bezier_C,ir=Number((nr*ar).toFixed(5));return rr.push("q"),rr.push("1 0 0 1 "+Mf(kg.internal.getWidth(er)/2)+" "+Mf(kg.internal.getHeight(er)/2)+" cm"),rr.push(nr+" 0 m"),rr.push(nr+" "+ir+" "+ir+" "+nr+" 0 "+nr+" c"),rr.push("-"+ir+" "+nr+" -"+nr+" "+ir+" -"+nr+" 0 c"),rr.push("-"+nr+" -"+ir+" -"+ir+" -"+nr+" 0 -"+nr+" c"),rr.push(ir+" -"+nr+" "+nr+" -"+ir+" "+nr+" 0 c"),rr.push("f"),rr.push("Q"),tr.stream=rr.join("\n"),tr},YesPushDown:function YesPushDown(er){var tr=new Df(er),rr=[],nr=kg.internal.getWidth(er)<=kg.internal.getHeight(er)?kg.internal.getWidth(er)/4:kg.internal.getHeight(er)/4,ar=(nr=Number((.9*nr).toFixed(5)),Number((2*nr).toFixed(5))),ir=Number((ar*kg.internal.Bezier_C).toFixed(5)),or=Number((nr*kg.internal.Bezier_C).toFixed(5));return rr.push("0.749023 g"),rr.push("q"),rr.push("1 0 0 1 "+Mf(kg.internal.getWidth(er)/2)+" "+Mf(kg.internal.getHeight(er)/2)+" cm"),rr.push(ar+" 0 m"),rr.push(ar+" "+ir+" "+ir+" "+ar+" 0 "+ar+" c"),rr.push("-"+ir+" "+ar+" -"+ar+" "+ir+" -"+ar+" 0 c"),rr.push("-"+ar+" -"+ir+" -"+ir+" -"+ar+" 0 -"+ar+" c"),rr.push(ir+" -"+ar+" "+ar+" -"+ir+" "+ar+" 0 c"),rr.push("f"),rr.push("Q"),rr.push("0 g"),rr.push("q"),rr.push("1 0 0 1 "+Mf(kg.internal.getWidth(er)/2)+" "+Mf(kg.internal.getHeight(er)/2)+" cm"),rr.push(nr+" 0 m"),rr.push(nr+" "+or+" "+or+" "+nr+" 0 "+nr+" c"),rr.push("-"+or+" "+nr+" -"+nr+" "+or+" -"+nr+" 0 c"),rr.push("-"+nr+" -"+or+" -"+or+" -"+nr+" 0 -"+nr+" c"),rr.push(or+" -"+nr+" "+nr+" -"+or+" "+nr+" 0 c"),rr.push("f"),rr.push("Q"),tr.stream=rr.join("\n"),tr},OffPushDown:function OffPushDown(er){var tr=new Df(er),rr=[],nr=kg.internal.getWidth(er)<=kg.internal.getHeight(er)?kg.internal.getWidth(er)/4:kg.internal.getHeight(er)/4;nr=Number((.9*nr).toFixed(5));var ar=Number((2*nr).toFixed(5)),ir=Number((ar*kg.internal.Bezier_C).toFixed(5));return rr.push("0.749023 g"),rr.push("q"),rr.push("1 0 0 1 "+Mf(kg.internal.getWidth(er)/2)+" "+Mf(kg.internal.getHeight(er)/2)+" cm"),rr.push(ar+" 0 m"),rr.push(ar+" "+ir+" "+ir+" "+ar+" 0 "+ar+" c"),rr.push("-"+ir+" "+ar+" -"+ar+" "+ir+" -"+ar+" 0 c"),rr.push("-"+ar+" -"+ir+" -"+ir+" -"+ar+" 0 -"+ar+" c"),rr.push(ir+" -"+ar+" "+ar+" -"+ir+" "+ar+" 0 c"),rr.push("f"),rr.push("Q"),tr.stream=rr.join("\n"),tr}},Cross:{createAppearanceStream:function createAppearanceStream(er){var tr={D:{Off:kg.RadioButton.Cross.OffPushDown},N:{}};return tr.N[er]=kg.RadioButton.Cross.YesNormal,tr.D[er]=kg.RadioButton.Cross.YesPushDown,tr},getCA:function getCA(){return"8"},YesNormal:function YesNormal(er){var tr=new Df(er),rr=[],nr=kg.internal.calculateCross(er);return rr.push("q"),rr.push("1 1 "+Rf(kg.internal.getWidth(er)-2)+" "+Rf(kg.internal.getHeight(er)-2)+" re"),rr.push("W"),rr.push("n"),rr.push(Rf(nr.x1.x)+" "+Rf(nr.x1.y)+" m"),rr.push(Rf(nr.x2.x)+" "+Rf(nr.x2.y)+" l"),rr.push(Rf(nr.x4.x)+" "+Rf(nr.x4.y)+" m"),rr.push(Rf(nr.x3.x)+" "+Rf(nr.x3.y)+" l"),rr.push("s"),rr.push("Q"),tr.stream=rr.join("\n"),tr},YesPushDown:function YesPushDown(er){var tr=new Df(er),rr=kg.internal.calculateCross(er),nr=[];return nr.push("0.749023 g"),nr.push("0 0 "+Rf(kg.internal.getWidth(er))+" "+Rf(kg.internal.getHeight(er))+" re"),nr.push("f"),nr.push("q"),nr.push("1 1 "+Rf(kg.internal.getWidth(er)-2)+" "+Rf(kg.internal.getHeight(er)-2)+" re"),nr.push("W"),nr.push("n"),nr.push(Rf(rr.x1.x)+" "+Rf(rr.x1.y)+" m"),nr.push(Rf(rr.x2.x)+" "+Rf(rr.x2.y)+" l"),nr.push(Rf(rr.x4.x)+" "+Rf(rr.x4.y)+" m"),nr.push(Rf(rr.x3.x)+" "+Rf(rr.x3.y)+" l"),nr.push("s"),nr.push("Q"),tr.stream=nr.join("\n"),tr},OffPushDown:function OffPushDown(er){var tr=new Df(er),rr=[];return rr.push("0.749023 g"),rr.push("0 0 "+Rf(kg.internal.getWidth(er))+" "+Rf(kg.internal.getHeight(er))+" re"),rr.push("f"),tr.stream=rr.join("\n"),tr}}},createDefaultAppearanceStream:function createDefaultAppearanceStream(er){var tr=Pf.internal.getFont(er.fontName,er.fontStyle).id,rr=Pf.__private__.encodeColorString(er.color);return"/"+tr+" "+er.fontSize+" Tf "+rr}};kg.internal={Bezier_C:.551915024494,calculateCross:function calculateCross(er){var tr=kg.internal.getWidth(er),rr=kg.internal.getHeight(er),nr=Math.min(tr,rr);return{x1:{x:(tr-nr)/2,y:(rr-nr)/2+nr},x2:{x:(tr-nr)/2+nr,y:(rr-nr)/2},x3:{x:(tr-nr)/2,y:(rr-nr)/2},x4:{x:(tr-nr)/2+nr,y:(rr-nr)/2+nr}}}},kg.internal.getWidth=function(er){var tr=0;return"object"==_typeof(er)&&(tr=Of(er.Rect[2])),tr},kg.internal.getHeight=function(er){var tr=0;return"object"==_typeof(er)&&(tr=Of(er.Rect[3])),tr};var xg=Tf.addField=function(er){if(ig.call(this),!(er instanceof dg))throw new Error("Invalid argument passed to jsPDF.addField.");return Zf.call(this,er),er.page=Pf.internal.getCurrentPageInfo().pageNumber,this};Tf.AcroFormChoiceField=hg,Tf.AcroFormListBox=pg,Tf.AcroFormComboBox=Ag,Tf.AcroFormEditBox=fg,Tf.AcroFormButton=gg,Tf.AcroFormPushButton=mg,Tf.AcroFormRadioButton=_g,Tf.AcroFormCheckBox=yg,Tf.AcroFormTextField=bg,Tf.AcroFormPasswordField=wg,Tf.AcroFormAppearance=kg,Tf.AcroForm={ChoiceField:hg,ListBox:pg,ComboBox:Ag,EditBox:fg,Button:gg,PushButton:mg,RadioButton:_g,CheckBox:yg,TextField:bg,PasswordField:wg,Appearance:kg},g.AcroForm={ChoiceField:hg,ListBox:pg,ComboBox:Ag,EditBox:fg,Button:gg,PushButton:mg,RadioButton:_g,CheckBox:yg,TextField:bg,PasswordField:wg,Appearance:kg},function(er){er.__addimage__={};var tr="UNKNOWN",rr={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]]},nr=er.__addimage__.getImageFileTypeByImageData=function(er,nr){var ar,ir;nr=nr||tr;var or,sr,lr,cr=tr;if(wr(er))for(lr in rr)for(or=rr[lr],ar=0;ar<or.length;ar+=1){for(sr=!0,ir=0;ir<or[ar].length;ir+=1)if(void 0!==or[ar][ir]&&or[ar][ir]!==er[ir]){sr=!1;break}if(!0===sr){cr=lr;break}}else for(lr in rr)for(or=rr[lr],ar=0;ar<or.length;ar+=1){for(sr=!0,ir=0;ir<or[ar].length;ir+=1)if(void 0!==or[ar][ir]&&or[ar][ir]!==er.charCodeAt(ir)){sr=!1;break}if(!0===sr){cr=lr;break}}return cr===tr&&nr!==tr&&(cr=nr),cr},ar=function i(er){for(var tr=this.internal.write,rr=this.internal.putStream,nr=(0,this.internal.getFilters)();-1!==nr.indexOf("FlateEncode");)nr.splice(nr.indexOf("FlateEncode"),1);er.objectId=this.internal.newObject();var ar=[];if(ar.push({key:"Type",value:"/XObject"}),ar.push({key:"Subtype",value:"/Image"}),ar.push({key:"Width",value:er.width}),ar.push({key:"Height",value:er.height}),er.colorSpace===gr.INDEXED?ar.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(er.palette.length/3-1)+" "+("sMask"in er&&void 0!==er.sMask?er.objectId+2:er.objectId+1)+" 0 R]"}):(ar.push({key:"ColorSpace",value:"/"+er.colorSpace}),er.colorSpace===gr.DEVICE_CMYK&&ar.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ar.push({key:"BitsPerComponent",value:er.bitsPerComponent}),"decodeParameters"in er&&void 0!==er.decodeParameters&&ar.push({key:"DecodeParms",value:"<<"+er.decodeParameters+">>"}),"transparency"in er&&Array.isArray(er.transparency)){for(var ir="",or=0,sr=er.transparency.length;or<sr;or++)ir+=er.transparency[or]+" "+er.transparency[or]+" ";ar.push({key:"Mask",value:"["+ir+"]"})}void 0!==er.sMask&&ar.push({key:"SMask",value:er.objectId+1+" 0 R"});var lr=void 0!==er.filter?["/"+er.filter]:void 0;if(rr({data:er.data,additionalKeyValues:ar,alreadyAppliedFilters:lr}),tr("endobj"),"sMask"in er&&void 0!==er.sMask){var cr="/Predictor "+er.predictor+" /Colors 1 /BitsPerComponent "+er.bitsPerComponent+" /Columns "+er.width,ur={width:er.width,height:er.height,colorSpace:"DeviceGray",bitsPerComponent:er.bitsPerComponent,decodeParameters:cr,data:er.sMask};"filter"in er&&(ur.filter=er.filter),i.call(this,ur)}er.colorSpace===gr.INDEXED&&(this.internal.newObject(),rr({data:xr(new Uint8Array(er.palette))}),tr("endobj"))},ir=function a(){var er=this.internal.collections.addImage_images;for(var tr in er)ar.call(this,er[tr])},or=function u(){var er,tr=this.internal.collections.addImage_images,rr=this.internal.write;for(var nr in tr)rr("/I"+(er=tr[nr]).index,er.objectId,"0","R")},sr=function c(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",ir),this.internal.events.subscribe("putXobjectDict",or))},lr=function h(){var er=this.internal.collections.addImage_images;return sr.call(this),er},cr=function l(){return Object.keys(this.internal.collections.addImage_images).length},ur=function f(tr){return"function"==typeof er["process"+tr.toUpperCase()]},dr=function d(er){return"object"==_typeof(er)&&1===er.nodeType},hr=function p(tr,rr){if("IMG"===tr.nodeName&&tr.hasAttribute("src")){var nr=""+tr.getAttribute("src");if(0===nr.indexOf("data:image/"))return Ef(unescape(nr).split("base64,").pop());var ar=er.loadFile(nr,!0);if(void 0!==ar)return ar}if("CANVAS"===tr.nodeName){var ir;switch(rr){case"PNG":ir="image/png";break;case"WEBP":ir="image/webp";break;case"JPEG":case"JPG":default:ir="image/jpeg"}return Ef(tr.toDataURL(ir,1).split("base64,").pop())}},pr=function g(er){var tr=this.internal.collections.addImage_images;if(tr)for(var rr in tr)if(er===tr[rr].alias)return tr[rr]},Ar=function m(er,tr,rr){return er||tr||(er=-96,tr=-96),er<0&&(er=-1*rr.width*72/er/this.internal.scaleFactor),tr<0&&(tr=-1*rr.height*72/tr/this.internal.scaleFactor),0===er&&(er=tr*rr.width/rr.height),0===tr&&(tr=er*rr.height/rr.width),[er,tr]},fr=function v(er,tr,rr,nr,ar,ir){var or=Ar.call(this,rr,nr,ar),sr=this.internal.getCoordinateString,cr=this.internal.getVerticalCoordinateString,ur=lr.call(this);if(rr=or[0],nr=or[1],ur[ar.index]=ar,ir){ir*=Math.PI/180;var dr=Math.cos(ir),hr=Math.sin(ir),pr=function d(er){return er.toFixed(4)},fr=[pr(dr),pr(hr),pr(-1*hr),pr(dr),0,0,"cm"]}this.internal.write("q"),ir?(this.internal.write([1,"0","0",1,sr(er),cr(tr+nr),"cm"].join(" ")),this.internal.write(fr.join(" ")),this.internal.write([sr(rr),"0","0",sr(nr),"0","0","cm"].join(" "))):this.internal.write([sr(rr),"0","0",sr(nr),sr(er),cr(tr+nr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ar.index+" Do"),this.internal.write("Q")},gr=er.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"};er.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 mr=er.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},_r=er.__addimage__.sHashCode=function(er){var tr,rr,nr=0;if("string"==typeof er)for(rr=er.length,tr=0;tr<rr;tr++)nr=(nr<<5)-nr+er.charCodeAt(tr),nr|=0;else if(wr(er))for(rr=er.byteLength/2,tr=0;tr<rr;tr++)nr=(nr<<5)-nr+er[tr],nr|=0;return nr},vr=er.__addimage__.validateStringAsBase64=function(er){(er=er||"").toString().trim();var tr=!0;return 0===er.length&&(tr=!1),er.length%4!=0&&(tr=!1),!1===/^[A-Za-z0-9+/]+$/.test(er.substr(0,er.length-2))&&(tr=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(er.substr(-2))&&(tr=!1),tr},yr=er.__addimage__.extractImageFromDataUrl=function(er){var tr=(er=er||"").split("base64,"),rr=null;if(2===tr.length){var nr=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(tr[0]);Array.isArray(nr)&&(rr={mimeType:nr[1],charset:nr[2],data:tr[1]})}return rr},br=er.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};er.__addimage__.isArrayBuffer=function(er){return br()&&er instanceof ArrayBuffer};var wr=er.__addimage__.isArrayBufferView=function(er){return br()&&"undefined"!=typeof Uint32Array&&(er instanceof Int8Array||er instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&er instanceof Uint8ClampedArray||er instanceof Int16Array||er instanceof Uint16Array||er instanceof Int32Array||er instanceof Uint32Array||er instanceof Float32Array||er instanceof Float64Array)},kr=er.__addimage__.binaryStringToUint8Array=function(er){for(var tr=er.length,rr=new Uint8Array(tr),nr=0;nr<tr;nr++)rr[nr]=er.charCodeAt(nr);return rr},xr=er.__addimage__.arrayBufferToBinaryString=function(er){try{return Ef(Nf(String.fromCharCode.apply(null,er)))}catch(tr){if("undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.reduce)return new Uint8Array(er).reduce((function(er,tr){return er.push(String.fromCharCode(tr)),er}),[]).join("")}};er.addImage=function(){var er,rr,nr,ar,ir,or,lr,cr,ur;if("number"==typeof arguments[1]?(rr=tr,nr=arguments[1],ar=arguments[2],ir=arguments[3],or=arguments[4],lr=arguments[5],cr=arguments[6],ur=arguments[7]):(rr=arguments[1],nr=arguments[2],ar=arguments[3],ir=arguments[4],or=arguments[5],lr=arguments[6],cr=arguments[7],ur=arguments[8]),"object"==_typeof(er=arguments[0])&&!dr(er)&&"imageData"in er){var hr=er;er=hr.imageData,rr=hr.format||rr||tr,nr=hr.x||nr||0,ar=hr.y||ar||0,ir=hr.w||hr.width||ir,or=hr.h||hr.height||or,lr=hr.alias||lr,cr=hr.compression||cr,ur=hr.rotation||hr.angle||ur}var pr=this.internal.getFilters();if(void 0===cr&&-1!==pr.indexOf("FlateEncode")&&(cr="SLOW"),isNaN(nr)||isNaN(ar))throw new Error("Invalid coordinates passed to jsPDF.addImage");sr.call(this);var Ar=Sr.call(this,er,rr,lr,cr);return fr.call(this,nr,ar,ir,or,Ar,ur),this};var Sr=function P(rr,ar,ir,or){var sr,lr,Ar;if("string"==typeof rr&&nr(rr)===tr){rr=unescape(rr);var fr=Cr(rr,!1);(""!==fr||void 0!==(fr=er.loadFile(rr,!0)))&&(rr=fr)}if(dr(rr)&&(rr=hr(rr,ar)),ar=nr(rr,ar),!ur(ar))throw new Error("addImage does not support files of type '"+ar+"', please ensure that a plugin for '"+ar+"' support is added.");if((null==(Ar=ir)||0===Ar.length)&&(ir=function(er){return"string"==typeof er||wr(er)?_r(er):null}(rr)),(sr=pr.call(this,ir))||(br()&&(rr instanceof Uint8Array||(lr=rr,rr=kr(rr))),sr=this["process"+ar.toUpperCase()](rr,cr.call(this),ir,function(tr){return tr&&"string"==typeof tr&&(tr=tr.toUpperCase()),tr in er.image_compression?tr:mr.NONE}(or),lr)),!sr)throw new Error("An unknown error occurred whilst processing the image.");return sr},Cr=er.__addimage__.convertBase64ToBinaryString=function(er,tr){var rr;tr="boolean"!=typeof tr||tr;var nr,ar="";if("string"==typeof er){nr=null!==(rr=yr(er))?rr.data:er;try{ar=Ef(nr)}catch(er){if(tr)throw vr(nr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+er.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ar};er.getImageProperties=function(rr){var ar,ir,or="";if(dr(rr)&&(rr=hr(rr)),"string"==typeof rr&&nr(rr)===tr&&(""===(or=Cr(rr,!1))&&(or=er.loadFile(rr)||""),rr=or),ir=nr(rr),!ur(ir))throw new Error("addImage does not support files of type '"+ir+"', please ensure that a plugin for '"+ir+"' support is added.");if(!br()||rr instanceof Uint8Array||(rr=kr(rr)),!(ar=this["process"+ir.toUpperCase()](rr)))throw new Error("An unknown error occurred whilst processing the image");return ar.fileType=ir,ar}}(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(er){var tr=function e(er){if(void 0!==er&&""!=er)return!0};g.API.events.push(["addPage",function(er){this.internal.getPageInfo(er.pageNumber).pageContext.annotations=[]}]),er.events.push(["putPage",function(er){for(var rr,nr,ar,ir=this.internal.getCoordinateString,or=this.internal.getVerticalCoordinateString,sr=this.internal.getPageInfoByObjId(er.objId),lr=er.pageContext.annotations,cr=!1,ur=0;ur<lr.length&&!cr;ur++)switch((rr=lr[ur]).type){case"link":(tr(rr.options.url)||tr(rr.options.pageNumber))&&(cr=!0);break;case"reference":case"text":case"freetext":cr=!0}if(0!=cr){this.internal.write("/Annots [");for(var dr=0;dr<lr.length;dr++)switch((rr=lr[dr]).type){case"reference":this.internal.write(" "+rr.object.objId+" 0 R ");break;case"text":var hr=this.internal.newAdditionalObject(),pr=this.internal.newAdditionalObject(),Ar=rr.title||"Note";ar="<</Type /Annot /Subtype /Text "+(nr="/Rect ["+ir(rr.bounds.x)+" "+or(rr.bounds.y+rr.bounds.h)+" "+ir(rr.bounds.x+rr.bounds.w)+" "+or(rr.bounds.y)+"] ")+"/Contents ("+rr.contents+")",ar+=" /Popup "+pr.objId+" 0 R",ar+=" /P "+sr.objId+" 0 R",ar+=" /T ("+Ar+") >>",hr.content=ar;var fr=hr.objId+" 0 R";ar="<</Type /Annot /Subtype /Popup "+(nr="/Rect ["+ir(rr.bounds.x+30)+" "+or(rr.bounds.y+rr.bounds.h)+" "+ir(rr.bounds.x+rr.bounds.w+30)+" "+or(rr.bounds.y)+"] ")+" /Parent "+fr,rr.open&&(ar+=" /Open true"),ar+=" >>",pr.content=ar,this.internal.write(hr.objId,"0 R",pr.objId,"0 R");break;case"freetext":nr="/Rect ["+ir(rr.bounds.x)+" "+or(rr.bounds.y)+" "+ir(rr.bounds.x+rr.bounds.w)+" "+or(rr.bounds.y+rr.bounds.h)+"] ";var gr=rr.color||"#000000";ar="<</Type /Annot /Subtype /FreeText "+nr+"/Contents ("+rr.contents+")",ar+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+gr+")",ar+=" /Border [0 0 0]",ar+=" >>",this.internal.write(ar);break;case"link":if(rr.options.name){var mr=this.annotations._nameMap[rr.options.name];rr.options.pageNumber=mr.page,rr.options.top=mr.y}else rr.options.top||(rr.options.top=0);if(nr="/Rect ["+ir(rr.x)+" "+or(rr.y)+" "+ir(rr.x+rr.w)+" "+or(rr.y+rr.h)+"] ",ar="",rr.options.url)ar="<</Type /Annot /Subtype /Link "+nr+"/Border [0 0 0] /A <</S /URI /URI ("+rr.options.url+") >>";else if(rr.options.pageNumber)switch(ar="<</Type /Annot /Subtype /Link "+nr+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(rr.options.pageNumber).objId+" 0 R",rr.options.magFactor=rr.options.magFactor||"XYZ",rr.options.magFactor){case"Fit":ar+=" /Fit]";break;case"FitH":ar+=" /FitH "+rr.options.top+"]";break;case"FitV":rr.options.left=rr.options.left||0,ar+=" /FitV "+rr.options.left+"]";break;case"XYZ":default:var _r=or(rr.options.top);rr.options.left=rr.options.left||0,void 0===rr.options.zoom&&(rr.options.zoom=0),ar+=" /XYZ "+rr.options.left+" "+_r+" "+rr.options.zoom+"]"}""!=ar&&(ar+=" >>",this.internal.write(ar))}this.internal.write("]")}}]),er.createAnnotation=function(er){var tr=this.internal.getCurrentPageInfo();switch(er.type){case"link":this.link(er.bounds.x,er.bounds.y,er.bounds.w,er.bounds.h,er);break;case"text":case"freetext":tr.pageContext.annotations.push(er)}},er.link=function(er,tr,rr,nr,ar){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:er,y:tr,w:rr,h:nr,options:ar,type:"link"})},er.textWithLink=function(er,tr,rr,nr){var ar=this.getTextWidth(er),ir=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(er,tr,rr,nr),rr+=.2*ir,this.link(tr,rr-ir,ar,ir,nr),ar},er.getTextWidth=function(er){var tr=this.internal.getFontSize();return this.getStringUnitWidth(er)*tr/this.internal.scaleFactor}}(g.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){var tr={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]},rr={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}},nr={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ar=[1570,1571,1573,1575];er.__arabicParser__={};var ir=er.__arabicParser__.isInArabicSubstitutionA=function(er){return void 0!==tr[er.charCodeAt(0)]},or=er.__arabicParser__.isArabicLetter=function(er){return"string"==typeof er&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(er)},sr=er.__arabicParser__.isArabicEndLetter=function(er){return or(er)&&ir(er)&&tr[er.charCodeAt(0)].length<=2},lr=er.__arabicParser__.isArabicAlfLetter=function(er){return or(er)&&ar.indexOf(er.charCodeAt(0))>=0};er.__arabicParser__.arabicLetterHasIsolatedForm=function(er){return or(er)&&ir(er)&&tr[er.charCodeAt(0)].length>=1};var cr=er.__arabicParser__.arabicLetterHasFinalForm=function(er){return or(er)&&ir(er)&&tr[er.charCodeAt(0)].length>=2};er.__arabicParser__.arabicLetterHasInitialForm=function(er){return or(er)&&ir(er)&&tr[er.charCodeAt(0)].length>=3};var ur=er.__arabicParser__.arabicLetterHasMedialForm=function(er){return or(er)&&ir(er)&&4==tr[er.charCodeAt(0)].length},dr=er.__arabicParser__.resolveLigatures=function(er){var tr=0,nr=rr,ar="",ir=0;for(tr=0;tr<er.length;tr+=1)void 0!==nr[er.charCodeAt(tr)]?(ir++,"number"==typeof(nr=nr[er.charCodeAt(tr)])&&(ar+=String.fromCharCode(nr),nr=rr,ir=0),tr===er.length-1&&(nr=rr,ar+=er.charAt(tr-(ir-1)),tr-=ir-1,ir=0)):(nr=rr,ar+=er.charAt(tr-ir),tr-=ir,ir=0);return ar};er.__arabicParser__.isArabicDiacritic=function(er){return void 0!==er&&void 0!==nr[er.charCodeAt(0)]};var hr=er.__arabicParser__.getCorrectForm=function(er,tr,rr){return or(er)?!1===ir(er)?-1:!cr(er)||!or(tr)&&!or(rr)||!or(rr)&&sr(tr)||sr(er)&&!or(tr)||sr(er)&&lr(tr)||sr(er)&&sr(tr)?0:ur(er)&&or(tr)&&!sr(tr)&&or(rr)&&cr(rr)?3:sr(er)||!or(rr)?1:2:-1},pr=function d(er){var rr=0,nr=0,ar=0,ir="",sr="",lr="",cr=(er=er||"").split("\\s+"),ur=[];for(rr=0;rr<cr.length;rr+=1){for(ur.push(""),nr=0;nr<cr[rr].length;nr+=1)ir=cr[rr][nr],sr=cr[rr][nr-1],lr=cr[rr][nr+1],or(ir)?(ar=hr(ir,sr,lr),ur[rr]+=-1!==ar?String.fromCharCode(tr[ir.charCodeAt(0)][ar]):ir):ur[rr]+=ir;ur[rr]=dr(ur[rr])}return ur.join(" ")},Ar=er.__arabicParser__.processArabic=er.processArabic=function(){var er,tr="string"==typeof arguments[0]?arguments[0]:arguments[0].text,rr=[];if(Array.isArray(tr)){var nr=0;for(rr=[],nr=0;nr<tr.length;nr+=1)Array.isArray(tr[nr])?rr.push([pr(tr[nr][0]),tr[nr][1],tr[nr][2]]):rr.push([pr(tr[nr])]);er=rr}else er=pr(tr);return"string"==typeof arguments[0]?er:(arguments[0].text=er,arguments[0])};er.events.push(["preProcessText",Ar])}(g.API),g.API.autoPrint=function(er){var tr;switch((er=er||{}).variant=er.variant||"non-conform",er.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){tr=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 "+tr+" 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(er){var tr=function e(){var er=void 0;Object.defineProperty(this,"pdf",{get:function get(){return er},set:function set(tr){er=tr}});var e=150;Object.defineProperty(this,"width",{get:function get(){return e},set:function set(er){e=isNaN(er)||!1===Number.isInteger(er)||er<0?150:er,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var tr=300;Object.defineProperty(this,"height",{get:function get(){return tr},set:function set(er){tr=isNaN(er)||!1===Number.isInteger(er)||er<0?300:er,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=tr+1)}});var rr=[];Object.defineProperty(this,"childNodes",{get:function get(){return rr},set:function set(er){rr=er}});var nr={};Object.defineProperty(this,"style",{get:function get(){return nr},set:function set(er){nr=er}}),Object.defineProperty(this,"parentNode",{})};tr.prototype.getContext=function(er,tr){var rr;if("2d"!==(er=er||"2d"))return null;for(rr in tr)this.pdf.context2d.hasOwnProperty(rr)&&(this.pdf.context2d[rr]=tr[rr]);return this.pdf.context2d._canvas=this,this.pdf.context2d},tr.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},er.events.push(["initialized",function(){this.canvas=new tr,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(er){var tr={left:0,top:0,bottom:0,right:0},rr=!1,nr=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({},tr),this.internal.__cell__.margins.width=this.getPageWidth(),ar.call(this))},ar=function i(){this.internal.__cell__.lastCell=new ir,this.internal.__cell__.pages=1},ir=function a(){var er=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return er},set:function set(tr){er=tr}});var tr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return tr},set:function set(er){tr=er}});var rr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function get(){return rr},set:function set(er){rr=er}});var nr=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function get(){return nr},set:function set(er){nr=er}});var ar=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function get(){return ar},set:function set(er){ar=er}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function get(){return a},set:function set(er){a=er}});var ir=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function get(){return ir},set:function set(er){ir=er}}),this};ir.prototype.clone=function(){return new ir(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},ir.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},er.setHeaderFunction=function(er){return nr.call(this),this.internal.__cell__.headerFunction="function"==typeof er?er:void 0,this},er.getTextDimensions=function(er,tr){nr.call(this);var rr=(tr=tr||{}).fontSize||this.getFontSize(),ar=tr.font||this.getFont(),ir=tr.scaleFactor||this.internal.scaleFactor,or=0,sr=0,lr=0;if(!Array.isArray(er)&&"string"!=typeof er){if("number"!=typeof er)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");er=String(er)}var cr=tr.maxWidth;cr>0?"string"==typeof er?er=this.splitTextToSize(er,cr):"[object Array]"===Object.prototype.toString.call(er)&&(er=this.splitTextToSize(er.join(" "),cr)):er=Array.isArray(er)?er:[er];for(var ur=0;ur<er.length;ur++)or<(lr=this.getStringUnitWidth(er[ur],{font:ar})*rr)&&(or=lr);return 0!==or&&(sr=er.length),{w:or/=ir,h:Math.max((sr*rr*this.getLineHeightFactor()-rr*(this.getLineHeightFactor()-1))/ir,0)}},er.cellAddPage=function(){nr.call(this),this.addPage();var er=this.internal.__cell__.margins||tr;return this.internal.__cell__.lastCell=new ir(er.left,er.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var or=er.cell=function(){var er;er=arguments[0]instanceof ir?arguments[0]:new ir(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),nr.call(this);var ar=this.internal.__cell__.lastCell,or=this.internal.__cell__.padding,sr=this.internal.__cell__.margins||tr,lr=this.internal.__cell__.tableHeaderRow,cr=this.internal.__cell__.printHeaders;return void 0!==ar.lineNumber&&(ar.lineNumber===er.lineNumber?(er.x=(ar.x||0)+(ar.width||0),er.y=ar.y||0):ar.y+ar.height+er.height+sr.bottom>this.getPageHeight()?(this.cellAddPage(),er.y=sr.top,cr&&lr&&(this.printHeaderRow(er.lineNumber,!0),er.y+=lr[0].height)):er.y=ar.y+ar.height||er.y),void 0!==er.text[0]&&(this.rect(er.x,er.y,er.width,er.height,!0===rr?"FD":void 0),"right"===er.align?this.text(er.text,er.x+er.width-or,er.y+or,{align:"right",baseline:"top"}):"center"===er.align?this.text(er.text,er.x+er.width/2,er.y+or,{align:"center",baseline:"top",maxWidth:er.width-or-or}):this.text(er.text,er.x+or,er.y+or,{align:"left",baseline:"top",maxWidth:er.width-or-or})),this.internal.__cell__.lastCell=er,this};er.table=function(er,rr,lr,cr,ur){if(nr.call(this),!lr)throw new Error("No data for PDF table.");var dr,hr,pr,Ar,fr=[],gr=[],mr=[],_r={},vr={},yr=[],br=[],wr=(ur=ur||{}).autoSize||!1,kr=!1!==ur.printHeaders,xr=ur.css&&void 0!==ur.css["font-size"]?16*ur.css["font-size"]:ur.fontSize||12,Sr=ur.margins||Object.assign({width:this.getPageWidth()},tr),Cr="number"==typeof ur.padding?ur.padding:3,Br=ur.headerBackgroundColor||"#c8c8c8";if(ar.call(this),this.internal.__cell__.printHeaders=kr,this.internal.__cell__.margins=Sr,this.internal.__cell__.table_font_size=xr,this.internal.__cell__.padding=Cr,this.internal.__cell__.headerBackgroundColor=Br,this.setFontSize(xr),null==cr)gr=fr=Object.keys(lr[0]),mr=fr.map((function(){return"left"}));else if(Array.isArray(cr)&&"object"==_typeof(cr[0]))for(fr=cr.map((function(er){return er.name})),gr=cr.map((function(er){return er.prompt||er.name||""})),mr=fr.map((function(er){return er.align||"left"})),dr=0;dr<cr.length;dr+=1)vr[cr[dr].name]=cr[dr].width*(19.049976/25.4);else Array.isArray(cr)&&"string"==typeof cr[0]&&(gr=fr=cr,mr=fr.map((function(){return"left"})));if(wr)for(dr=0;dr<fr.length;dr+=1){for(_r[Ar=fr[dr]]=lr.map((function(er){return er[Ar]})),this.setFont(void 0,"bold"),yr.push(this.getTextDimensions(gr[dr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),hr=_r[Ar],this.setFont(void 0,"normal"),pr=0;pr<hr.length;pr+=1)yr.push(this.getTextDimensions(hr[pr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);vr[Ar]=Math.max.apply(null,yr)+Cr+Cr,yr=[]}if(kr){var Er={};for(dr=0;dr<fr.length;dr+=1)Er[fr[dr]]={},Er[fr[dr]].text=gr[dr],Er[fr[dr]].align=mr[dr];var Nr=sr.call(this,Er,vr);br=fr.map((function(tr){return new ir(er,rr,vr[tr],Nr,Er[tr].text,void 0,Er[tr].align)})),this.setTableHeaderRow(br),this.printHeaderRow(1,!1)}var Lr=cr.reduce((function(er,tr){return er[tr.name]=tr.align,er}),{});for(dr=0;dr<lr.length;dr+=1){var Pr=sr.call(this,lr[dr],vr);for(pr=0;pr<fr.length;pr+=1)or.call(this,new ir(er,rr,vr[fr[pr]],Pr,lr[dr][fr[pr]],dr+2,Lr[fr[pr]]))}return this.internal.__cell__.table_x=er,this.internal.__cell__.table_y=rr,this};var sr=function s(er,tr){var rr=this.internal.__cell__.padding,nr=this.internal.__cell__.table_font_size,ar=this.internal.scaleFactor;return Object.keys(er).map((function(tr){return[tr,er[tr]]})).map((function(er){var tr=er[0],rr=er[1];return"object"==_typeof(rr)?[tr,rr.text]:[tr,rr]})).map((function(er){var nr=er[0],ar=er[1];return this.splitTextToSize(ar,tr[nr]-rr-rr)}),this).map((function(er){return this.getLineHeightFactor()*er.length*nr/ar+rr+rr}),this).reduce((function(er,tr){return Math.max(er,tr)}),0)};er.setTableHeaderRow=function(er){nr.call(this),this.internal.__cell__.tableHeaderRow=er},er.printHeaderRow=function(er,tr){if(nr.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var ar;if(rr=!0,"function"==typeof this.internal.__cell__.headerFunction){var sr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new ir(sr[0],sr[1],sr[2],sr[3],void 0,-1)}this.setFont(void 0,"bold");for(var lr=[],cr=0;cr<this.internal.__cell__.tableHeaderRow.length;cr+=1)ar=this.internal.__cell__.tableHeaderRow[cr].clone(),tr&&(ar.y=this.internal.__cell__.margins.top||0,lr.push(ar)),ar.lineNumber=er,this.setFillColor(this.internal.__cell__.headerBackgroundColor),or.call(this,ar);lr.length>0&&this.setTableHeaderRow(lr),this.setFont(void 0,"normal"),rr=!1}}(g.API),function(er){var tr,rr,nr,ar,ir,or,sr,lr,cr,ur=function f(er){return er=er||{},this.isStrokeTransparent=er.isStrokeTransparent||!1,this.strokeOpacity=er.strokeOpacity||1,this.strokeStyle=er.strokeStyle||"#000000",this.fillStyle=er.fillStyle||"#000000",this.isFillTransparent=er.isFillTransparent||!1,this.fillOpacity=er.fillOpacity||1,this.font=er.font||"10px sans-serif",this.textBaseline=er.textBaseline||"alphabetic",this.textAlign=er.textAlign||"left",this.lineWidth=er.lineWidth||1,this.lineJoin=er.lineJoin||"miter",this.lineCap=er.lineCap||"butt",this.path=er.path||[],this.transform=void 0!==er.transform?er.transform.clone():new lr,this.globalCompositeOperation=er.globalCompositeOperation||"normal",this.globalAlpha=er.globalAlpha||1,this.clip_path=er.clip_path||[],this.currentPoint=er.currentPoint||new or,this.miterLimit=er.miterLimit||10,this.lastPoint=er.lastPoint||new or,this.ignoreClearRect="boolean"!=typeof er.ignoreClearRect||er.ignoreClearRect,this};er.events.push(["initialized",function(){this.context2d=new dr(this),tr=this.internal.f2,rr=this.internal.getCoordinateString,nr=this.internal.getVerticalCoordinateString,ar=this.internal.getHorizontalCoordinate,ir=this.internal.getVerticalCoordinate,or=this.internal.Point,sr=this.internal.Rectangle,lr=this.internal.Matrix,cr=new ur}]);var dr=function d(er){Object.defineProperty(this,"canvas",{get:function get(){return{parentNode:!1,style:!1}}});var tr=er;Object.defineProperty(this,"pdf",{get:function get(){return tr}});var rr=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function get(){return rr},set:function set(er){rr=Boolean(er)}});var nr=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function get(){return nr},set:function set(er){nr=Boolean(er)}});var ar=0;Object.defineProperty(this,"posX",{get:function get(){return ar},set:function set(er){isNaN(er)||(ar=er)}});var ir=0;Object.defineProperty(this,"posY",{get:function get(){return ir},set:function set(er){isNaN(er)||(ir=er)}});var or=!1;Object.defineProperty(this,"autoPaging",{get:function get(){return or},set:function set(er){or=Boolean(er)}});var sr=0;Object.defineProperty(this,"lastBreak",{get:function get(){return sr},set:function set(er){sr=er}});var lr=[];Object.defineProperty(this,"pageBreaks",{get:function get(){return lr},set:function set(er){lr=er}}),Object.defineProperty(this,"ctx",{get:function get(){return cr},set:function set(er){er instanceof ur&&(cr=er)}}),Object.defineProperty(this,"path",{get:function get(){return cr.path},set:function set(er){cr.path=er}});var dr=[];Object.defineProperty(this,"ctxStack",{get:function get(){return dr},set:function set(er){dr=er}}),Object.defineProperty(this,"fillStyle",{get:function get(){return this.ctx.fillStyle},set:function set(er){var tr;tr=hr(er),this.ctx.fillStyle=tr.style,this.ctx.isFillTransparent=0===tr.a,this.ctx.fillOpacity=tr.a,this.pdf.setFillColor(tr.r,tr.g,tr.b,{a:tr.a}),this.pdf.setTextColor(tr.r,tr.g,tr.b,{a:tr.a})}}),Object.defineProperty(this,"strokeStyle",{get:function get(){return this.ctx.strokeStyle},set:function set(er){var tr=hr(er);this.ctx.strokeStyle=tr.style,this.ctx.isStrokeTransparent=0===tr.a,this.ctx.strokeOpacity=tr.a,0===tr.a?this.pdf.setDrawColor(255,255,255):(tr.a,this.pdf.setDrawColor(tr.r,tr.g,tr.b))}}),Object.defineProperty(this,"lineCap",{get:function get(){return this.ctx.lineCap},set:function set(er){-1!==["butt","round","square"].indexOf(er)&&(this.ctx.lineCap=er,this.pdf.setLineCap(er))}}),Object.defineProperty(this,"lineWidth",{get:function get(){return this.ctx.lineWidth},set:function set(er){isNaN(er)||(this.ctx.lineWidth=er,this.pdf.setLineWidth(er))}}),Object.defineProperty(this,"lineJoin",{get:function get(){return this.ctx.lineJoin},set:function set(er){-1!==["bevel","round","miter"].indexOf(er)&&(this.ctx.lineJoin=er,this.pdf.setLineJoin(er))}}),Object.defineProperty(this,"miterLimit",{get:function get(){return this.ctx.miterLimit},set:function set(er){isNaN(er)||(this.ctx.miterLimit=er,this.pdf.setMiterLimit(er))}}),Object.defineProperty(this,"textBaseline",{get:function get(){return this.ctx.textBaseline},set:function set(er){this.ctx.textBaseline=er}}),Object.defineProperty(this,"textAlign",{get:function get(){return this.ctx.textAlign},set:function set(er){-1!==["right","end","center","left","start"].indexOf(er)&&(this.ctx.textAlign=er)}}),Object.defineProperty(this,"font",{get:function get(){return this.ctx.font},set:function set(er){var tr;if(this.ctx.font=er,null!==(tr=/^\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(er))){var rr=tr[1],nr=(tr[2],tr[3]),ar=tr[4],ir=(tr[5],tr[6]),or=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ar)[2];ar="px"===or?Math.floor(parseFloat(ar)*this.pdf.internal.scaleFactor):"em"===or?Math.floor(parseFloat(ar)*this.pdf.getFontSize()):Math.floor(parseFloat(ar)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ar);var sr="";("bold"===nr||parseInt(nr,10)>=700||"bold"===rr)&&(sr="bold"),"italic"===rr&&(sr+="italic"),0===sr.length&&(sr="normal");for(var lr="",cr=ir.replace(/"|'/g,"").split(/\s*,\s*/),ur={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"},dr=0;dr<cr.length;dr++){if(void 0!==this.pdf.internal.getFont(cr[dr],sr,{noFallback:!0,disableWarning:!0})){lr=cr[dr];break}if("bolditalic"===sr&&void 0!==this.pdf.internal.getFont(cr[dr],"bold",{noFallback:!0,disableWarning:!0}))lr=cr[dr],sr="bold";else if(void 0!==this.pdf.internal.getFont(cr[dr],"normal",{noFallback:!0,disableWarning:!0})){lr=cr[dr],sr="normal";break}}if(""===lr)for(var hr=0;hr<cr.length;hr++)if(ur[cr[hr]]){lr=ur[cr[hr]];break}lr=""===lr?"Times":lr,this.pdf.setFont(lr,sr)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function get(){return this.ctx.globalCompositeOperation},set:function set(er){this.ctx.globalCompositeOperation=er}}),Object.defineProperty(this,"globalAlpha",{get:function get(){return this.ctx.globalAlpha},set:function set(er){this.ctx.globalAlpha=er}}),Object.defineProperty(this,"ignoreClearRect",{get:function get(){return this.ctx.ignoreClearRect},set:function set(er){this.ctx.ignoreClearRect=Boolean(er)}})};dr.prototype.fill=function(){vr.call(this,"fill",!1)},dr.prototype.stroke=function(){vr.call(this,"stroke",!1)},dr.prototype.beginPath=function(){this.path=[{type:"begin"}]},dr.prototype.moveTo=function(er,tr){if(isNaN(er)||isNaN(tr))throw Bf.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var rr=this.ctx.transform.applyToPoint(new or(er,tr));this.path.push({type:"mt",x:rr.x,y:rr.y}),this.ctx.lastPoint=new or(er,tr)},dr.prototype.closePath=function(){var er=new or(0,0),tr=0;for(tr=this.path.length-1;-1!==tr;tr--)if("begin"===this.path[tr].type&&"object"==_typeof(this.path[tr+1])&&"number"==typeof this.path[tr+1].x){er=new or(this.path[tr+1].x,this.path[tr+1].y),this.path.push({type:"lt",x:er.x,y:er.y});break}"object"==_typeof(this.path[tr+2])&&"number"==typeof this.path[tr+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[tr+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new or(er.x,er.y)},dr.prototype.lineTo=function(er,tr){if(isNaN(er)||isNaN(tr))throw Bf.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var rr=this.ctx.transform.applyToPoint(new or(er,tr));this.path.push({type:"lt",x:rr.x,y:rr.y}),this.ctx.lastPoint=new or(rr.x,rr.y)},dr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),vr.call(this,null,!0)},dr.prototype.quadraticCurveTo=function(er,tr,rr,nr){if(isNaN(rr)||isNaN(nr)||isNaN(er)||isNaN(tr))throw Bf.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ar=this.ctx.transform.applyToPoint(new or(rr,nr)),ir=this.ctx.transform.applyToPoint(new or(er,tr));this.path.push({type:"qct",x1:ir.x,y1:ir.y,x:ar.x,y:ar.y}),this.ctx.lastPoint=new or(ar.x,ar.y)},dr.prototype.bezierCurveTo=function(er,tr,rr,nr,ar,ir){if(isNaN(ar)||isNaN(ir)||isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw Bf.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var sr=this.ctx.transform.applyToPoint(new or(ar,ir)),lr=this.ctx.transform.applyToPoint(new or(er,tr)),cr=this.ctx.transform.applyToPoint(new or(rr,nr));this.path.push({type:"bct",x1:lr.x,y1:lr.y,x2:cr.x,y2:cr.y,x:sr.x,y:sr.y}),this.ctx.lastPoint=new or(sr.x,sr.y)},dr.prototype.arc=function(er,tr,rr,nr,ar,ir){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ar))throw Bf.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ir=Boolean(ir),!this.ctx.transform.isIdentity){var sr=this.ctx.transform.applyToPoint(new or(er,tr));er=sr.x,tr=sr.y;var lr=this.ctx.transform.applyToPoint(new or(0,rr)),cr=this.ctx.transform.applyToPoint(new or(0,0));rr=Math.sqrt(Math.pow(lr.x-cr.x,2)+Math.pow(lr.y-cr.y,2))}Math.abs(ar-nr)>=2*Math.PI&&(nr=0,ar=2*Math.PI),this.path.push({type:"arc",x:er,y:tr,radius:rr,startAngle:nr,endAngle:ar,counterclockwise:ir})},dr.prototype.arcTo=function(er,tr,rr,nr,ar){throw new Error("arcTo not implemented.")},dr.prototype.rect=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw Bf.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(er,tr),this.lineTo(er+rr,tr),this.lineTo(er+rr,tr+nr),this.lineTo(er,tr+nr),this.lineTo(er,tr),this.lineTo(er+rr,tr),this.lineTo(er,tr)},dr.prototype.fillRect=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw Bf.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!pr.call(this)){var ar={};"butt"!==this.lineCap&&(ar.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(ar.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(er,tr,rr,nr),this.fill(),ar.hasOwnProperty("lineCap")&&(this.lineCap=ar.lineCap),ar.hasOwnProperty("lineJoin")&&(this.lineJoin=ar.lineJoin)}},dr.prototype.strokeRect=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw Bf.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Ar.call(this)||(this.beginPath(),this.rect(er,tr,rr,nr),this.stroke())},dr.prototype.clearRect=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw Bf.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(er,tr,rr,nr))},dr.prototype.save=function(er){er="boolean"!=typeof er||er;for(var tr=this.pdf.internal.getCurrentPageInfo().pageNumber,rr=0;rr<this.pdf.internal.getNumberOfPages();rr++)this.pdf.setPage(rr+1),this.pdf.internal.out("q");if(this.pdf.setPage(tr),er){this.ctx.fontSize=this.pdf.internal.getFontSize();var nr=new ur(this.ctx);this.ctxStack.push(this.ctx),this.ctx=nr}},dr.prototype.restore=function(er){er="boolean"!=typeof er||er;for(var tr=this.pdf.internal.getCurrentPageInfo().pageNumber,rr=0;rr<this.pdf.internal.getNumberOfPages();rr++)this.pdf.setPage(rr+1),this.pdf.internal.out("Q");this.pdf.setPage(tr),er&&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)},dr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var hr=function p(er){var tr,rr,nr,ar;if(!0===er.isCanvasGradient&&(er=er.getColor()),!er)return{r:0,g:0,b:0,a:0,style:er};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(er))tr=0,rr=0,nr=0,ar=0;else{var ir=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(er);if(null!==ir)tr=parseInt(ir[1]),rr=parseInt(ir[2]),nr=parseInt(ir[3]),ar=1;else if(null!==(ir=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(er)))tr=parseInt(ir[1]),rr=parseInt(ir[2]),nr=parseInt(ir[3]),ar=parseFloat(ir[4]);else{if(ar=1,"string"==typeof er&&"#"!==er.charAt(0)){var or=new c(er);er=or.ok?or.toHex():"#000000"}4===er.length?(tr=er.substring(1,2),tr+=tr,rr=er.substring(2,3),rr+=rr,nr=er.substring(3,4),nr+=nr):(tr=er.substring(1,3),rr=er.substring(3,5),nr=er.substring(5,7)),tr=parseInt(tr,16),rr=parseInt(rr,16),nr=parseInt(nr,16)}}return{r:tr,g:rr,b:nr,a:ar,style:er}},pr=function g(){return this.ctx.isFillTransparent||0==this.globalAlpha},Ar=function m(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};dr.prototype.fillText=function(er,tr,rr,nr){if(isNaN(tr)||isNaN(rr)||"string"!=typeof er)throw Bf.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(nr=isNaN(nr)?void 0:nr,!pr.call(this)){rr=br.call(this,rr);var ar=Tr(this.ctx.transform.rotation),ir=this.ctx.transform.scaleX;Cr.call(this,{text:er,x:tr,y:rr,scale:ir,angle:ar,align:this.textAlign,maxWidth:nr})}},dr.prototype.strokeText=function(er,tr,rr,nr){if(isNaN(tr)||isNaN(rr)||"string"!=typeof er)throw Bf.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Ar.call(this)){nr=isNaN(nr)?void 0:nr,rr=br.call(this,rr);var ar=Tr(this.ctx.transform.rotation),ir=this.ctx.transform.scaleX;Cr.call(this,{text:er,x:tr,y:rr,scale:ir,renderingMode:"stroke",angle:ar,align:this.textAlign,maxWidth:nr})}},dr.prototype.measureText=function(er){if("string"!=typeof er)throw Bf.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var tr=this.pdf,rr=this.pdf.internal.scaleFactor,nr=tr.internal.getFontSize(),ar=tr.getStringUnitWidth(er)*nr/tr.internal.scaleFactor,ir=function o(er){var tr=(er=er||{}).width||0;return Object.defineProperty(this,"width",{get:function get(){return tr}}),this};return new ir({width:ar*=Math.round(96*rr/72*1e4)/1e4})},dr.prototype.scale=function(er,tr){if(isNaN(er)||isNaN(tr))throw Bf.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var rr=new lr(er,0,0,tr,0,0);this.ctx.transform=this.ctx.transform.multiply(rr)},dr.prototype.rotate=function(er){if(isNaN(er))throw Bf.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var tr=new lr(Math.cos(er),Math.sin(er),-Math.sin(er),Math.cos(er),0,0);this.ctx.transform=this.ctx.transform.multiply(tr)},dr.prototype.translate=function(er,tr){if(isNaN(er)||isNaN(tr))throw Bf.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var rr=new lr(1,0,0,1,er,tr);this.ctx.transform=this.ctx.transform.multiply(rr)},dr.prototype.transform=function(er,tr,rr,nr,ar,ir){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ar)||isNaN(ir))throw Bf.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var or=new lr(er,tr,rr,nr,ar,ir);this.ctx.transform=this.ctx.transform.multiply(or)},dr.prototype.setTransform=function(er,tr,rr,nr,ar,ir){er=isNaN(er)?1:er,tr=isNaN(tr)?0:tr,rr=isNaN(rr)?0:rr,nr=isNaN(nr)?1:nr,ar=isNaN(ar)?0:ar,ir=isNaN(ir)?0:ir,this.ctx.transform=new lr(er,tr,rr,nr,ar,ir)},dr.prototype.drawImage=function(er,tr,rr,nr,ar,ir,or,cr,ur){var dr=this.pdf.getImageProperties(er),hr=1,pr=1,Ar=1,gr=1;void 0!==nr&&void 0!==cr&&(Ar=cr/nr,gr=ur/ar,hr=dr.width/nr*cr/nr,pr=dr.height/ar*ur/ar),void 0===ir&&(ir=tr,or=rr,tr=0,rr=0),void 0!==nr&&void 0===cr&&(cr=nr,ur=ar),void 0===nr&&void 0===cr&&(cr=dr.width,ur=dr.height);for(var vr,br=this.ctx.transform.decompose(),wr=Tr(br.rotate.shx),kr=new lr,xr=(kr=(kr=(kr=kr.multiply(br.translate)).multiply(br.skew)).multiply(br.scale)).applyToRectangle(new sr(ir-tr*Ar,or-rr*gr,nr*hr,ar*pr)),Sr=fr.call(this,xr),Cr=[],Br=0;Br<Sr.length;Br+=1)-1===Cr.indexOf(Sr[Br])&&Cr.push(Sr[Br]);if(_r(Cr),this.autoPaging)for(var Er=Cr[0],Nr=Cr[Cr.length-1],Lr=Er;Lr<Nr+1;Lr++){if(this.pdf.setPage(Lr),0!==this.ctx.clip_path.length){var Pr=this.path;vr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=mr(vr,this.posX,-1*this.pdf.internal.pageSize.height*(Lr-1)+this.posY),yr.call(this,"fill",!0),this.path=Pr}var Fr=JSON.parse(JSON.stringify(xr));Fr=mr([Fr],this.posX,-1*this.pdf.internal.pageSize.height*(Lr-1)+this.posY)[0],this.pdf.addImage(er,"JPEG",Fr.x,Fr.y,Fr.w,Fr.h,null,null,wr)}else this.pdf.addImage(er,"JPEG",xr.x,xr.y,xr.w,xr.h,null,null,wr)};var fr=function v(er,tr,rr){var nr=[];switch(tr=tr||this.pdf.internal.pageSize.width,rr=rr||this.pdf.internal.pageSize.height,er.type){default:case"mt":case"lt":nr.push(Math.floor((er.y+this.posY)/rr)+1);break;case"arc":nr.push(Math.floor((er.y+this.posY-er.radius)/rr)+1),nr.push(Math.floor((er.y+this.posY+er.radius)/rr)+1);break;case"qct":var ar=Fr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,er.x1,er.y1,er.x,er.y);nr.push(Math.floor(ar.y/rr)+1),nr.push(Math.floor((ar.y+ar.h)/rr)+1);break;case"bct":var ir=Ur(this.ctx.lastPoint.x,this.ctx.lastPoint.y,er.x1,er.y1,er.x2,er.y2,er.x,er.y);nr.push(Math.floor(ir.y/rr)+1),nr.push(Math.floor((ir.y+ir.h)/rr)+1);break;case"rect":nr.push(Math.floor((er.y+this.posY)/rr)+1),nr.push(Math.floor((er.y+er.h+this.posY)/rr)+1)}for(var or=0;or<nr.length;or+=1)for(;this.pdf.internal.getNumberOfPages()<nr[or];)gr.call(this);return nr},gr=function b(){var er=this.fillStyle,tr=this.strokeStyle,rr=this.font,nr=this.lineCap,ar=this.lineWidth,ir=this.lineJoin;this.pdf.addPage(),this.fillStyle=er,this.strokeStyle=tr,this.font=rr,this.lineCap=nr,this.lineWidth=ar,this.lineJoin=ir},mr=function y(er,tr,rr){for(var nr=0;nr<er.length;nr++)switch(er[nr].type){case"bct":er[nr].x2+=tr,er[nr].y2+=rr;case"qct":er[nr].x1+=tr,er[nr].y1+=rr;case"mt":case"lt":case"arc":default:er[nr].x+=tr,er[nr].y+=rr}return er},_r=function w(er){return er.sort((function(er,tr){return er-tr}))},vr=function N(er,tr){for(var rr,nr,ar=this.fillStyle,ir=this.strokeStyle,or=this.lineCap,sr=this.lineWidth,lr=sr*this.ctx.transform.scaleX,cr=this.lineJoin,ur=JSON.parse(JSON.stringify(this.path)),dr=JSON.parse(JSON.stringify(this.path)),hr=[],pr=0;pr<dr.length;pr++)if(void 0!==dr[pr].x)for(var Ar=fr.call(this,dr[pr]),vr=0;vr<Ar.length;vr+=1)-1===hr.indexOf(Ar[vr])&&hr.push(Ar[vr]);for(var br=0;br<hr.length;br++)for(;this.pdf.internal.getNumberOfPages()<hr[br];)gr.call(this);if(_r(hr),this.autoPaging)for(var N=hr[0],wr=hr[hr.length-1],kr=N;kr<wr+1;kr++){if(this.pdf.setPage(kr),this.fillStyle=ar,this.strokeStyle=ir,this.lineCap=or,this.lineWidth=lr,this.lineJoin=cr,0!==this.ctx.clip_path.length){var xr=this.path;rr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=mr(rr,this.posX,-1*this.pdf.internal.pageSize.height*(kr-1)+this.posY),yr.call(this,er,!0),this.path=xr}nr=JSON.parse(JSON.stringify(ur)),this.path=mr(nr,this.posX,-1*this.pdf.internal.pageSize.height*(kr-1)+this.posY),!1!==tr&&0!==kr||yr.call(this,er,tr),this.lineWidth=sr}else this.lineWidth=lr,yr.call(this,er,tr),this.lineWidth=sr;this.path=ur},yr=function L(er,tr){if(("stroke"!==er||tr||!Ar.call(this))&&("stroke"===er||tr||!pr.call(this))){for(var rr,nr,ar=[],ir=this.path,or=0;or<ir.length;or++){var sr=ir[or];switch(sr.type){case"begin":ar.push({begin:!0});break;case"close":ar.push({close:!0});break;case"mt":ar.push({start:sr,deltas:[],abs:[]});break;case"lt":var lr=ar.length;if(!isNaN(ir[or-1].x)&&(rr=[sr.x-ir[or-1].x,sr.y-ir[or-1].y],lr>0))for(;lr>=0;lr--)if(!0!==ar[lr-1].close&&!0!==ar[lr-1].begin){ar[lr-1].deltas.push(rr),ar[lr-1].abs.push(sr);break}break;case"bct":rr=[sr.x1-ir[or-1].x,sr.y1-ir[or-1].y,sr.x2-ir[or-1].x,sr.y2-ir[or-1].y,sr.x-ir[or-1].x,sr.y-ir[or-1].y],ar[ar.length-1].deltas.push(rr);break;case"qct":var cr=ir[or-1].x+2/3*(sr.x1-ir[or-1].x),ur=ir[or-1].y+2/3*(sr.y1-ir[or-1].y),dr=sr.x+2/3*(sr.x1-sr.x),hr=sr.y+2/3*(sr.y1-sr.y),fr=sr.x,gr=sr.y;rr=[cr-ir[or-1].x,ur-ir[or-1].y,dr-ir[or-1].x,hr-ir[or-1].y,fr-ir[or-1].x,gr-ir[or-1].y],ar[ar.length-1].deltas.push(rr);break;case"arc":ar.push({deltas:[],abs:[],arc:!0}),Array.isArray(ar[ar.length-1].abs)&&ar[ar.length-1].abs.push(sr)}}nr=tr?null:"stroke"===er?"stroke":"fill";for(var mr=0;mr<ar.length;mr++){if(ar[mr].arc){for(var _r=ar[mr].abs,vr=0;vr<_r.length;vr++){var yr=_r[vr];"arc"===yr.type?wr.call(this,yr.x,yr.y,yr.radius,yr.startAngle,yr.endAngle,yr.counterclockwise,void 0,tr):Br.call(this,yr.x,yr.y)}kr.call(this,nr),this.pdf.internal.out("h")}if(!ar[mr].arc&&!0!==ar[mr].close&&!0!==ar[mr].begin){var br=ar[mr].start.x,L=ar[mr].start.y;Er.call(this,ar[mr].deltas,br,L)}}nr&&kr.call(this,nr),tr&&xr.call(this)}},br=function x(er){var tr=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,rr=tr*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return er-rr;case"top":return er+tr-rr;case"hanging":return er+tr-2*rr;case"middle":return er+tr/2-rr;case"ideographic":return er;case"alphabetic":default:return er}};dr.prototype.createLinearGradient=function(){var er=function t(){};return er.colorStops=[],er.addColorStop=function(er,tr){this.colorStops.push([er,tr])},er.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},er.isCanvasGradient=!0,er},dr.prototype.createPattern=function(){return this.createLinearGradient()},dr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var wr=function A(er,tr,rr,nr,ar,ir,or,sr){for(var lr=Lr.call(this,rr,nr,ar,ir),cr=0;cr<lr.length;cr++){var ur=lr[cr];0===cr&&Sr.call(this,ur.x1+er,ur.y1+tr),Nr.call(this,er,tr,ur.x2,ur.y2,ur.x3,ur.y3,ur.x4,ur.y4)}sr?xr.call(this):kr.call(this,or)},kr=function _(er){switch(er){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},xr=function S(){this.pdf.clip(),this.pdf.discardPath()},Sr=function P(er,tr){this.pdf.internal.out(rr(er)+" "+nr(tr)+" m")},Cr=function k(er){var tr;switch(er.align){case"right":case"end":tr="right";break;case"center":tr="center";break;case"left":case"start":default:tr="left"}var rr=this.ctx.transform.applyToPoint(new or(er.x,er.y)),nr=this.ctx.transform.decompose(),ar=new lr;ar=(ar=(ar=ar.multiply(nr.translate)).multiply(nr.skew)).multiply(nr.scale);for(var ir,cr,ur,dr=this.pdf.getTextDimensions(er.text),hr=this.ctx.transform.applyToRectangle(new sr(er.x,er.y,dr.w,dr.h)),pr=ar.applyToRectangle(new sr(er.x,er.y-dr.h,dr.w,dr.h)),Ar=fr.call(this,pr),gr=[],vr=0;vr<Ar.length;vr+=1)-1===gr.indexOf(Ar[vr])&&gr.push(Ar[vr]);if(_r(gr),!0===this.autoPaging)for(var br=gr[0],wr=gr[gr.length-1],kr=br;kr<wr+1;kr++){if(this.pdf.setPage(kr),0!==this.ctx.clip_path.length){var xr=this.path;ir=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=mr(ir,this.posX,-1*this.pdf.internal.pageSize.height*(kr-1)+this.posY),yr.call(this,"fill",!0),this.path=xr}var Sr=JSON.parse(JSON.stringify(hr));Sr=mr([Sr],this.posX,-1*this.pdf.internal.pageSize.height*(kr-1)+this.posY)[0],er.scale>=.01&&(cr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(cr*er.scale),ur=this.lineWidth,this.lineWidth=ur*er.scale),this.pdf.text(er.text,Sr.x,Sr.y,{angle:er.angle,align:tr,renderingMode:er.renderingMode,maxWidth:er.maxWidth}),er.scale>=.01&&(this.pdf.setFontSize(cr),this.lineWidth=ur)}else er.scale>=.01&&(cr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(cr*er.scale),ur=this.lineWidth,this.lineWidth=ur*er.scale),this.pdf.text(er.text,rr.x+this.posX,rr.y+this.posY,{angle:er.angle,align:tr,renderingMode:er.renderingMode,maxWidth:er.maxWidth}),er.scale>=.01&&(this.pdf.setFontSize(cr),this.lineWidth=ur)},Br=function F(er,tr,ar,ir){ar=ar||0,ir=ir||0,this.pdf.internal.out(rr(er+ar)+" "+nr(tr+ir)+" l")},Er=function I(er,tr,rr){return this.pdf.lines(er,tr,rr,null,null)},Nr=function C(er,rr,nr,or,sr,lr,cr,ur){this.pdf.internal.out([tr(ar(nr+er)),tr(ir(or+rr)),tr(ar(sr+er)),tr(ir(lr+rr)),tr(ar(cr+er)),tr(ir(ur+rr)),"c"].join(" "))},Lr=function j(er,tr,rr,nr){for(var ar=2*Math.PI,ir=Math.PI/2;tr>rr;)tr-=ar;var or=Math.abs(rr-tr);or<ar&&nr&&(or=ar-or);for(var sr=[],lr=nr?-1:1,cr=tr;or>1e-5;){var ur=cr+lr*Math.min(or,ir);sr.push(Pr.call(this,er,cr,ur)),or-=Math.abs(ur-cr),cr=ur}return sr},Pr=function B(er,tr,rr){var nr=(rr-tr)/2,ar=er*Math.cos(nr),ir=er*Math.sin(nr),or=ar,sr=-ir,lr=or*or+sr*sr,cr=lr+or*ar+sr*ir,ur=4/3*(Math.sqrt(2*lr*cr)-cr)/(or*ir-sr*ar),dr=or-ur*sr,hr=sr+ur*or,pr=dr,Ar=-hr,fr=nr+tr,gr=Math.cos(fr),mr=Math.sin(fr);return{x1:er*Math.cos(tr),y1:er*Math.sin(tr),x2:dr*gr-hr*mr,y2:dr*mr+hr*gr,x3:pr*gr-Ar*mr,y3:pr*mr+Ar*gr,x4:er*Math.cos(rr),y4:er*Math.sin(rr)}},Tr=function O(er){return 180*er/Math.PI},Fr=function M(er,tr,rr,nr,ar,ir){var or=er+.5*(rr-er),lr=tr+.5*(nr-tr),cr=ar+.5*(rr-ar),ur=ir+.5*(nr-ir),dr=Math.min(er,ar,or,cr),hr=Math.max(er,ar,or,cr),pr=Math.min(tr,ir,lr,ur),Ar=Math.max(tr,ir,lr,ur);return new sr(dr,pr,hr-dr,Ar-pr)},Ur=function E(er,tr,rr,nr,ar,ir,or,lr){var cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,kr=rr-er,xr=nr-tr,Sr=ar-rr,Cr=ir-nr,Br=or-ar,Er=lr-ir;for(ur=0;ur<41;ur++)mr=(fr=(dr=er+(cr=ur/40)*kr)+cr*((pr=rr+cr*Sr)-dr))+cr*(pr+cr*(ar+cr*Br-pr)-fr),_r=(gr=(hr=tr+cr*xr)+cr*((Ar=nr+cr*Cr)-hr))+cr*(Ar+cr*(ir+cr*Er-Ar)-gr),0==ur?(vr=mr,yr=_r,br=mr,wr=_r):(vr=Math.min(vr,mr),yr=Math.min(yr,_r),br=Math.max(br,mr),wr=Math.max(wr,_r));return new sr(Math.round(vr),Math.round(yr),Math.round(br-vr),Math.round(wr-yr))}}(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 Sg=[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 er=this;function e(er,tr){var rr=0;do{rr|=1&er,er>>>=1,rr<<=1}while(--tr>0);return rr>>>1}er.build_tree=function(tr){var rr,nr,ar,ir=er.dyn_tree,or=er.stat_desc.static_tree,sr=er.stat_desc.elems,lr=-1;for(tr.heap_len=0,tr.heap_max=573,rr=0;rr<sr;rr++)0!==ir[2*rr]?(tr.heap[++tr.heap_len]=lr=rr,tr.depth[rr]=0):ir[2*rr+1]=0;for(;tr.heap_len<2;)ir[2*(ar=tr.heap[++tr.heap_len]=lr<2?++lr:0)]=1,tr.depth[ar]=0,tr.opt_len--,or&&(tr.static_len-=or[2*ar+1]);for(er.max_code=lr,rr=Math.floor(tr.heap_len/2);rr>=1;rr--)tr.pqdownheap(ir,rr);ar=sr;do{rr=tr.heap[1],tr.heap[1]=tr.heap[tr.heap_len--],tr.pqdownheap(ir,1),nr=tr.heap[1],tr.heap[--tr.heap_max]=rr,tr.heap[--tr.heap_max]=nr,ir[2*ar]=ir[2*rr]+ir[2*nr],tr.depth[ar]=Math.max(tr.depth[rr],tr.depth[nr])+1,ir[2*rr+1]=ir[2*nr+1]=ar,tr.heap[1]=ar++,tr.pqdownheap(ir,1)}while(tr.heap_len>=2);tr.heap[--tr.heap_max]=tr.heap[1],function(tr){var rr,nr,ar,ir,or,sr,lr=er.dyn_tree,cr=er.stat_desc.static_tree,ur=er.stat_desc.extra_bits,dr=er.stat_desc.extra_base,hr=er.stat_desc.max_length,pr=0;for(ir=0;ir<=15;ir++)tr.bl_count[ir]=0;for(lr[2*tr.heap[tr.heap_max]+1]=0,rr=tr.heap_max+1;rr<573;rr++)(ir=lr[2*lr[2*(nr=tr.heap[rr])+1]+1]+1)>hr&&(ir=hr,pr++),lr[2*nr+1]=ir,nr>er.max_code||(tr.bl_count[ir]++,or=0,nr>=dr&&(or=ur[nr-dr]),sr=lr[2*nr],tr.opt_len+=sr*(ir+or),cr&&(tr.static_len+=sr*(cr[2*nr+1]+or)));if(0!==pr){do{for(ir=hr-1;0===tr.bl_count[ir];)ir--;tr.bl_count[ir]--,tr.bl_count[ir+1]+=2,tr.bl_count[hr]--,pr-=2}while(pr>0);for(ir=hr;0!==ir;ir--)for(nr=tr.bl_count[ir];0!==nr;)(ar=tr.heap[--rr])>er.max_code||(lr[2*ar+1]!==ir&&(tr.opt_len+=(ir-lr[2*ar+1])*lr[2*ar],lr[2*ar+1]=ir),nr--)}}(tr),function(er,tr,rr){var nr,ar,ir,or=[],sr=0;for(nr=1;nr<=15;nr++)or[nr]=sr=sr+rr[nr-1]<<1;for(ar=0;ar<=tr;ar++)0!==(ir=er[2*ar+1])&&(er[2*ar]=e(or[ir]++,ir))}(ir,er.max_code,tr.bl_count)}}function dt(er,tr,rr,nr,ar){this.static_tree=er,this.extra_bits=tr,this.extra_base=rr,this.elems=nr,this.max_length=ar}function pt(er,tr,rr,nr,ar){this.good_length=er,this.max_lazy=tr,this.nice_length=rr,this.max_chain=nr,this.func=ar}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(er){return er<256?Sg[er]:Sg[256+(er>>>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 Cg,Bg,Eg,Ng=[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)],Lg=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function wt(er,tr,rr,nr){var ar=er[2*tr],ir=er[2*rr];return ar<ir||ar===ir&&nr[tr]<=nr[rr]}function Nt(){var er,tr,rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,kr,xr,Sr,Cr,Br,Er,Nr,Lr,Pr,Tr,Fr,Ur,Ir,Rr,Mr,Qr,Or,Dr,jr=this,Hr=new ft,Gr=new ft,Vr=new ft;function V(){var er;for(er=0;er<286;er++)Lr[2*er]=0;for(er=0;er<30;er++)Pr[2*er]=0;for(er=0;er<19;er++)Tr[2*er]=0;Lr[512]=1,jr.opt_len=jr.static_len=0,Ir=Mr=0}function G(er,tr){var rr,nr,ar=-1,ir=er[1],or=0,sr=7,lr=4;for(0===ir&&(sr=138,lr=3),er[2*(tr+1)+1]=65535,rr=0;rr<=tr;rr++)nr=ir,ir=er[2*(rr+1)+1],++or<sr&&nr===ir||(or<lr?Tr[2*nr]+=or:0!==nr?(nr!==ar&&Tr[2*nr]++,Tr[32]++):or<=10?Tr[34]++:Tr[36]++,or=0,ar=nr,0===ir?(sr=138,lr=3):nr===ir?(sr=6,lr=3):(sr=7,lr=4))}function Y(er){jr.pending_buf[jr.pending++]=er}function J(er){Y(255&er),Y(er>>>8&255)}function X(er,tr){var rr,nr=tr;Dr>16-nr?(J(Or|=(rr=er)<<Dr&65535),Or=rr>>>16-Dr,Dr+=nr-16):(Or|=er<<Dr&65535,Dr+=nr)}function K(er,tr){var rr=2*er;X(65535&tr[rr],65535&tr[rr+1])}function Z(er,tr){var rr,nr,ar=-1,ir=er[1],or=0,sr=7,lr=4;for(0===ir&&(sr=138,lr=3),rr=0;rr<=tr;rr++)if(nr=ir,ir=er[2*(rr+1)+1],!(++or<sr&&nr===ir)){if(or<lr)do{K(nr,Tr)}while(0!=--or);else 0!==nr?(nr!==ar&&(K(nr,Tr),or--),K(16,Tr),X(or-3,2)):or<=10?(K(17,Tr),X(or-3,3)):(K(18,Tr),X(or-11,7));or=0,ar=nr,0===ir?(sr=138,lr=3):nr===ir?(sr=6,lr=3):(sr=7,lr=4)}}function $(){16===Dr?(J(Or),Or=0,Dr=0):Dr>=8&&(Y(255&Or),Or>>>=8,Dr-=8)}function Q(er,tr){var rr,nr,ar;if(jr.pending_buf[Rr+2*Ir]=er>>>8&255,jr.pending_buf[Rr+2*Ir+1]=255&er,jr.pending_buf[Fr+Ir]=255&tr,Ir++,0===er?Lr[2*tr]++:(Mr++,er--,Lr[2*(ft._length_code[tr]+256+1)]++,Pr[2*ft.d_code(er)]++),0==(8191&Ir)&&Cr>2){for(rr=8*Ir,nr=yr-gr,ar=0;ar<30;ar++)rr+=Pr[2*ar]*(5+ft.extra_dbits[ar]);if(rr>>>=3,Mr<Math.floor(Ir/2)&&rr<Math.floor(nr/2))return!0}return Ir===Ur-1}function tt(er,tr){var rr,nr,ar,ir,or=0;if(0!==Ir)do{rr=jr.pending_buf[Rr+2*or]<<8&65280|255&jr.pending_buf[Rr+2*or+1],nr=255&jr.pending_buf[Fr+or],or++,0===rr?K(nr,er):(K((ar=ft._length_code[nr])+256+1,er),0!==(ir=ft.extra_lbits[ar])&&X(nr-=ft.base_length[ar],ir),rr--,K(ar=ft.d_code(rr),tr),0!==(ir=ft.extra_dbits[ar])&&X(rr-=ft.base_dist[ar],ir))}while(or<Ir);K(256,er),Qr=er[513]}function et(){Dr>8?J(Or):Dr>0&&Y(255&Or),Or=0,Dr=0}function nt(er,tr,rr){X(0+(rr?1:0),3),function(er,tr,rr){et(),Qr=8,J(tr),J(~tr),jr.pending_buf.set(sr.subarray(er,er+tr),jr.pending),jr.pending+=tr}(er,tr)}function it(tr){(function rt(er,tr,rr){var nr,ar,ir=0;Cr>0?(Hr.build_tree(jr),Gr.build_tree(jr),ir=function(){var er;for(G(Lr,Hr.max_code),G(Pr,Gr.max_code),Vr.build_tree(jr),er=18;er>=3&&0===Tr[2*ft.bl_order[er]+1];er--);return jr.opt_len+=3*(er+1)+5+5+4,er}(),nr=jr.opt_len+3+7>>>3,(ar=jr.static_len+3+7>>>3)<=nr&&(nr=ar)):nr=ar=tr+5,tr+4<=nr&&-1!==er?nt(er,tr,rr):ar===nr?(X(2+(rr?1:0),3),tt(dt.static_ltree,dt.static_dtree)):(X(4+(rr?1:0),3),function(er,tr,rr){var nr;for(X(er-257,5),X(tr-1,5),X(rr-4,4),nr=0;nr<rr;nr++)X(Tr[2*ft.bl_order[nr]+1],3);Z(Lr,er-1),Z(Pr,tr-1)}(Hr.max_code+1,Gr.max_code+1,ir+1),tt(Lr,Pr)),V(),rr&&et()})(gr>=0?gr:-1,yr-gr,tr),gr=yr,er.flush_pending()}function at(){var tr,rr,nr,ir;do{if(0==(ir=lr-wr-yr)&&0===yr&&0===wr)ir=ar;else if(-1===ir)ir--;else if(yr>=ar+ar-262){sr.set(sr.subarray(ar,ar+ar),0),br-=ar,yr-=ar,gr-=ar,nr=tr=hr;do{rr=65535&ur[--nr],ur[nr]=rr>=ar?rr-ar:0}while(0!=--tr);nr=tr=ar;do{rr=65535&cr[--nr],cr[nr]=rr>=ar?rr-ar:0}while(0!=--tr);ir+=ar}if(0===er.avail_in)return;tr=er.read_buf(sr,yr+wr,ir),(wr+=tr)>=3&&(dr=((dr=255&sr[yr])<<fr^255&sr[yr+1])&Ar)}while(wr<262&&0!==er.avail_in)}function ot(er){var tr,rr,nr=xr,ir=yr,lr=kr,ur=yr>ar-262?yr-(ar-262):0,dr=Nr,hr=or,pr=yr+258,Ar=sr[ir+lr-1],fr=sr[ir+lr];kr>=Er&&(nr>>=2),dr>wr&&(dr=wr);do{if(sr[(tr=er)+lr]===fr&&sr[tr+lr-1]===Ar&&sr[tr]===sr[ir]&&sr[++tr]===sr[ir+1]){ir+=2,tr++;do{}while(sr[++ir]===sr[++tr]&&sr[++ir]===sr[++tr]&&sr[++ir]===sr[++tr]&&sr[++ir]===sr[++tr]&&sr[++ir]===sr[++tr]&&sr[++ir]===sr[++tr]&&sr[++ir]===sr[++tr]&&sr[++ir]===sr[++tr]&&ir<pr);if(rr=258-(pr-ir),ir=pr-258,rr>lr){if(br=er,lr=rr,rr>=dr)break;Ar=sr[ir+lr-1],fr=sr[ir+lr]}}}while((er=65535&cr[er&hr])>ur&&0!=--nr);return lr<=wr?lr:wr}function st(er){return er.total_in=er.total_out=0,er.msg=null,jr.pending=0,jr.pending_out=0,tr=113,nr=0,Hr.dyn_tree=Lr,Hr.stat_desc=dt.static_l_desc,Gr.dyn_tree=Pr,Gr.stat_desc=dt.static_d_desc,Vr.dyn_tree=Tr,Vr.stat_desc=dt.static_bl_desc,Or=0,Dr=0,Qr=8,V(),function(){var er;for(lr=2*ar,ur[hr-1]=0,er=0;er<hr-1;er++)ur[er]=0;Sr=Ng[Cr].max_lazy,Er=Ng[Cr].good_length,Nr=Ng[Cr].nice_length,xr=Ng[Cr].max_chain,yr=0,gr=0,wr=0,mr=kr=2,vr=0,dr=0}(),0}jr.depth=[],jr.bl_count=[],jr.heap=[],Lr=[],Pr=[],Tr=[],jr.pqdownheap=function(er,tr){for(var rr=jr.heap,nr=rr[tr],ar=tr<<1;ar<=jr.heap_len&&(ar<jr.heap_len&&wt(er,rr[ar+1],rr[ar],jr.depth)&&ar++,!wt(er,nr,rr[ar],jr.depth));)rr[tr]=rr[ar],tr=ar,ar<<=1;rr[tr]=nr},jr.deflateInit=function(er,tr,nr,lr,dr,gr){return lr||(lr=8),dr||(dr=8),gr||(gr=0),er.msg=null,-1===tr&&(tr=6),dr<1||dr>9||8!==lr||nr<9||nr>15||tr<0||tr>9||gr<0||gr>2?-2:(er.dstate=jr,or=(ar=1<<(ir=nr))-1,Ar=(hr=1<<(pr=dr+7))-1,fr=Math.floor((pr+3-1)/3),sr=new Uint8Array(2*ar),cr=[],ur=[],Ur=1<<dr+6,jr.pending_buf=new Uint8Array(4*Ur),rr=4*Ur,Rr=Math.floor(Ur/2),Fr=3*Ur,Cr=tr,Br=gr,st(er))},jr.deflateEnd=function(){return 42!==tr&&113!==tr&&666!==tr?-2:(jr.pending_buf=null,ur=null,cr=null,sr=null,jr.dstate=null,113===tr?-3:0)},jr.deflateParams=function(er,tr,rr){var nr=0;return-1===tr&&(tr=6),tr<0||tr>9||rr<0||rr>2?-2:(Ng[Cr].func!==Ng[tr].func&&0!==er.total_in&&(nr=er.deflate(1)),Cr!==tr&&(Sr=Ng[Cr=tr].max_lazy,Er=Ng[Cr].good_length,Nr=Ng[Cr].nice_length,xr=Ng[Cr].max_chain),Br=rr,nr)},jr.deflateSetDictionary=function(er,rr,nr){var ir,lr=nr,hr=0;if(!rr||42!==tr)return-2;if(lr<3)return 0;for(lr>ar-262&&(hr=nr-(lr=ar-262)),sr.set(rr.subarray(hr,hr+lr),0),yr=lr,gr=lr,dr=((dr=255&sr[0])<<fr^255&sr[1])&Ar,ir=0;ir<=lr-3;ir++)dr=(dr<<fr^255&sr[ir+2])&Ar,cr[ir&or]=ur[dr],ur[dr]=ir;return 0},jr.deflate=function(lr,pr){var xr,Er,Nr,Lr,Pr,Tr;if(pr>4||pr<0)return-2;if(!lr.next_out||!lr.next_in&&0!==lr.avail_in||666===tr&&4!==pr)return lr.msg=Lg[4],-2;if(0===lr.avail_out)return lr.msg=Lg[7],-5;if(er=lr,Lr=nr,nr=pr,42===tr&&(Er=8+(ir-8<<4)<<8,(Nr=(Cr-1&255)>>1)>3&&(Nr=3),Er|=Nr<<6,0!==yr&&(Er|=32),tr=113,Y((Tr=Er+=31-Er%31)>>8&255),Y(255&Tr)),0!==jr.pending){if(er.flush_pending(),0===er.avail_out)return nr=-1,0}else if(0===er.avail_in&&pr<=Lr&&4!==pr)return er.msg=Lg[7],-5;if(666===tr&&0!==er.avail_in)return lr.msg=Lg[7],-5;if(0!==er.avail_in||0!==wr||0!==pr&&666!==tr){switch(Pr=-1,Ng[Cr].func){case 0:Pr=function(tr){var nr,ir=65535;for(ir>rr-5&&(ir=rr-5);;){if(wr<=1){if(at(),0===wr&&0===tr)return 0;if(0===wr)break}if(yr+=wr,wr=0,nr=gr+ir,(0===yr||yr>=nr)&&(wr=yr-nr,yr=nr,it(!1),0===er.avail_out))return 0;if(yr-gr>=ar-262&&(it(!1),0===er.avail_out))return 0}return it(4===tr),0===er.avail_out?4===tr?2:0:4===tr?3:1}(pr);break;case 1:Pr=function(tr){for(var rr,nr=0;;){if(wr<262){if(at(),wr<262&&0===tr)return 0;if(0===wr)break}if(wr>=3&&(dr=(dr<<fr^255&sr[yr+2])&Ar,nr=65535&ur[dr],cr[yr&or]=ur[dr],ur[dr]=yr),0!==nr&&(yr-nr&65535)<=ar-262&&2!==Br&&(mr=ot(nr)),mr>=3)if(rr=Q(yr-br,mr-3),wr-=mr,mr<=Sr&&wr>=3){mr--;do{yr++,dr=(dr<<fr^255&sr[yr+2])&Ar,nr=65535&ur[dr],cr[yr&or]=ur[dr],ur[dr]=yr}while(0!=--mr);yr++}else yr+=mr,mr=0,dr=((dr=255&sr[yr])<<fr^255&sr[yr+1])&Ar;else rr=Q(0,255&sr[yr]),wr--,yr++;if(rr&&(it(!1),0===er.avail_out))return 0}return it(4===tr),0===er.avail_out?4===tr?2:0:4===tr?3:1}(pr);break;case 2:Pr=function(tr){for(var rr,nr,ir=0;;){if(wr<262){if(at(),wr<262&&0===tr)return 0;if(0===wr)break}if(wr>=3&&(dr=(dr<<fr^255&sr[yr+2])&Ar,ir=65535&ur[dr],cr[yr&or]=ur[dr],ur[dr]=yr),kr=mr,_r=br,mr=2,0!==ir&&kr<Sr&&(yr-ir&65535)<=ar-262&&(2!==Br&&(mr=ot(ir)),mr<=5&&(1===Br||3===mr&&yr-br>4096)&&(mr=2)),kr>=3&&mr<=kr){nr=yr+wr-3,rr=Q(yr-1-_r,kr-3),wr-=kr-1,kr-=2;do{++yr<=nr&&(dr=(dr<<fr^255&sr[yr+2])&Ar,ir=65535&ur[dr],cr[yr&or]=ur[dr],ur[dr]=yr)}while(0!=--kr);if(vr=0,mr=2,yr++,rr&&(it(!1),0===er.avail_out))return 0}else if(0!==vr){if((rr=Q(0,255&sr[yr-1]))&&it(!1),yr++,wr--,0===er.avail_out)return 0}else vr=1,yr++,wr--}return 0!==vr&&(rr=Q(0,255&sr[yr-1]),vr=0),it(4===tr),0===er.avail_out?4===tr?2:0:4===tr?3:1}(pr)}if(2!==Pr&&3!==Pr||(tr=666),0===Pr||2===Pr)return 0===er.avail_out&&(nr=-1),0;if(1===Pr){if(1===pr)X(2,3),K(256,dt.static_ltree),$(),1+Qr+10-Dr<9&&(X(2,3),K(256,dt.static_ltree),$()),Qr=7;else if(nt(0,0,!1),3===pr)for(xr=0;xr<hr;xr++)ur[xr]=0;if(er.flush_pending(),0===er.avail_out)return nr=-1,0}}return 4!==pr?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(er){var tr=new Lt,rr=new Uint8Array(512),nr=er?er.level:-1;void 0===nr&&(nr=-1),tr.deflateInit(nr),tr.next_out=rr,this.append=function(er,nr){var ar,ir=[],or=0,sr=0,lr=0;if(er.length){tr.next_in_index=0,tr.next_in=er,tr.avail_in=er.length;do{if(tr.next_out_index=0,tr.avail_out=512,0!==tr.deflate(0))throw new Error("deflating: "+tr.msg);tr.next_out_index&&(512===tr.next_out_index?ir.push(new Uint8Array(rr)):ir.push(new Uint8Array(rr.subarray(0,tr.next_out_index)))),lr+=tr.next_out_index,nr&&tr.next_in_index>0&&tr.next_in_index!==or&&(nr(tr.next_in_index),or=tr.next_in_index)}while(tr.avail_in>0||0===tr.avail_out);return ar=new Uint8Array(lr),ir.forEach((function(er){ar.set(er,sr),sr+=er.length})),ar}},this.flush=function(){var er,nr,ar=[],ir=0,or=0;do{if(tr.next_out_index=0,tr.avail_out=512,1!==(er=tr.deflate(4))&&0!==er)throw new Error("deflating: "+tr.msg);512-tr.avail_out>0&&ar.push(new Uint8Array(rr.subarray(0,tr.next_out_index))),or+=tr.next_out_index}while(tr.avail_in>0||0===tr.avail_out);return tr.deflateEnd(),nr=new Uint8Array(or),ar.forEach((function(er){nr.set(er,ir),ir+=er.length})),nr}}
|
||
/**
|
||
* @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(er,tr){return this.dstate=new Nt,tr||(tr=15),this.dstate.deflateInit(this,er,tr)},deflate:function deflate(er){return this.dstate?this.dstate.deflate(this,er):-2},deflateEnd:function deflateEnd(){if(!this.dstate)return-2;var er=this.dstate.deflateEnd();return this.dstate=null,er},deflateParams:function deflateParams(er,tr){return this.dstate?this.dstate.deflateParams(this,er,tr):-2},deflateSetDictionary:function deflateSetDictionary(er,tr){return this.dstate?this.dstate.deflateSetDictionary(this,er,tr):-2},read_buf:function read_buf(er,tr,rr){var nr=this.avail_in;return nr>rr&&(nr=rr),0===nr?0:(this.avail_in-=nr,er.set(this.next_in.subarray(this.next_in_index,this.next_in_index+nr),tr),this.next_in_index+=nr,this.total_in+=nr,nr)},flush_pending:function flush_pending(){var er=this.dstate.pending;er>this.avail_out&&(er=this.avail_out),0!==er&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+er),this.next_out_index),this.next_out_index+=er,this.dstate.pending_out+=er,this.total_out+=er,this.avail_out-=er,this.dstate.pending-=er,0===this.dstate.pending&&(this.dstate.pending_out=0))}},function(er){var tr=function e(er){var e,tr,rr,nr,ar,ir,or,sr,lr,cr;for(/[^\x00-\xFF]/.test(er),tr=[],rr=0,nr=(er+=e="\0\0\0\0".slice(er.length%4||4)).length;nr>rr;rr+=4)0!==(ar=(er.charCodeAt(rr)<<24)+(er.charCodeAt(rr+1)<<16)+(er.charCodeAt(rr+2)<<8)+er.charCodeAt(rr+3))?(ir=(ar=((ar=((ar=((ar=(ar-(cr=ar%85))/85)-(lr=ar%85))/85)-(sr=ar%85))/85)-(or=ar%85))/85)%85,tr.push(ir+33,or+33,sr+33,lr+33,cr+33)):tr.push(122);return function(er,tr){for(var rr=tr;rr>0;rr--)er.pop()}(tr,e.length),String.fromCharCode.apply(String,tr)+"~>"},rr=function n(er){var tr,n,rr,nr,ar,ir=String,or="length",sr=255,lr="charCodeAt",cr="slice",ur="replace";for(er[cr](-2),er=er[cr](0,-2)[ur](/\s/g,"")[ur]("z","!!!!!"),rr=[],nr=0,ar=(er+=tr="uuuuu"[cr](er[or]%5||5))[or];ar>nr;nr+=5)n=52200625*(er[lr](nr)-33)+614125*(er[lr](nr+1)-33)+7225*(er[lr](nr+2)-33)+85*(er[lr](nr+3)-33)+(er[lr](nr+4)-33),rr.push(sr&n>>24,sr&n>>16,sr&n>>8,sr&n);return function(er,tr){for(var rr=tr;rr>0;rr--)er.pop()}(rr,tr[or]),ir.fromCharCode.apply(ir,rr)},nr=function r(er){var tr=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(er=er.replace(/\s/g,"")).indexOf(">")&&(er=er.substr(0,er.indexOf(">"))),er.length%2&&(er+="0"),!1===tr.test(er))return"";for(var rr="",r=0;r<er.length;r+=2)rr+=String.fromCharCode("0x"+(er[r]+er[r+1]));return rr},ar=function i(tr){for(var rr,nr,i,ar,ir,or=[],sr=tr.length;sr--;)or[sr]=tr.charCodeAt(sr);return rr=er.adler32cs.from(tr),i=tr=(nr=new xt(6)).append(new Uint8Array(or)),ar=nr.flush(),(ir=new Uint8Array(i.byteLength+ar.byteLength)).set(new Uint8Array(i),0),ir.set(new Uint8Array(ar),i.byteLength),tr=ir,(or=new Uint8Array(tr.byteLength+6)).set(new Uint8Array([120,156])),or.set(tr,2),or.set(new Uint8Array([255&rr,rr>>8&255,rr>>16&255,rr>>24&255]),tr.byteLength+2),or.reduce((function(er,tr){return er+String.fromCharCode(tr)}),"")};er.processDataByFilters=function(er,ir){var or=0,sr=er||"",lr=[];for("string"==typeof(ir=ir||[])&&(ir=[ir]),or=0;or<ir.length;or+=1)switch(ir[or]){case"ASCII85Decode":case"/ASCII85Decode":sr=rr(sr),lr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":sr=tr(sr),lr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":sr=nr(sr),lr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":sr=sr.split("").map((function(er){return("0"+er.charCodeAt().toString(16)).slice(-2)})).join("")+">",lr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":sr=ar(sr),lr.push("/FlateDecode");break;default:throw new Error('The filter: "'+ir[or]+'" is not implemented')}return{data:sr,reverseChain:lr.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(er){er.loadFile=function(er,tr,rr){return function(er,tr,rr){tr=!1!==tr,rr="function"==typeof rr?rr:function(){};var nr=void 0;try{nr=function(er,tr,rr){var nr=new XMLHttpRequest,ar=0,ir=function a(er){var tr=er.length,rr=[],nr=String.fromCharCode;for(ar=0;ar<tr;ar+=1)rr.push(nr(255&er.charCodeAt(ar)));return rr.join("")};if(nr.open("GET",er,!tr),nr.overrideMimeType("text/plain; charset=x-user-defined"),!1===tr&&(nr.onload=function(){200===nr.status?rr(ir(this.responseText)):rr(void 0)}),nr.send(null),tr&&200===nr.status)return ir(nr.responseText)}(er,tr,rr)}catch(er){}return nr}(er,tr,rr)},er.loadImageFile=er.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(er){function n(){return(Cf.html2canvas?Promise.resolve(Cf.html2canvas):Promise.resolve().then((function(){return fb}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}function r(){return(Cf.DOMPurify?Promise.resolve(Cf.DOMPurify):Promise.resolve().then((function(){return Ub}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}var tr=function i(er){var tr=_typeof(er);return"undefined"===tr?"undefined":"string"===tr||er instanceof String?"string":"number"===tr||er instanceof Number?"number":"function"===tr||er instanceof Function?"function":er&&er.constructor===Array?"array":er&&1===er.nodeType?"element":"object"===tr?"object":"unknown"},rr=function a(er,tr){var rr=document.createElement(er);for(var nr in tr.className&&(rr.className=tr.className),tr.innerHTML&&tr.dompurify&&(rr.innerHTML=tr.dompurify.sanitize(tr.innerHTML)),tr.style)rr.style[nr]=tr.style[nr];return rr},nr=function t(er){var tr=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),rr=t.convert(Promise.resolve(),tr);return(rr=rr.setProgress(1,t,1,[t])).set(er)};(nr.prototype=Object.create(Promise.prototype)).constructor=nr,nr.convert=function(er,tr){return er.__proto__=tr||nr.prototype,er},nr.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"}},nr.prototype.from=function(er,nr){return this.then((function(){switch(nr=nr||function(er){switch(tr(er)){case"string":return"string";case"element":return"canvas"===er.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(er)){case"string":return this.then(r).then((function(tr){return this.set({src:rr("div",{innerHTML:er,dompurify:tr})})}));case"element":return this.set({src:er});case"canvas":return this.set({canvas:er});case"img":return this.set({img:er});default:return this.error("Unknown source type.")}}))},nr.prototype.to=function(er){switch(er){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.")}},nr.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 er={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},tr=function o(er,tr){for(var rr=3===er.nodeType?document.createTextNode(er.nodeValue):er.cloneNode(!1),nr=er.firstChild;nr;nr=nr.nextSibling)!0!==tr&&1===nr.nodeType&&"SCRIPT"===nr.nodeName||rr.appendChild(o(nr,tr));return 1===er.nodeType&&("CANVAS"===er.nodeName?(rr.width=er.width,rr.height=er.height,rr.getContext("2d").drawImage(er,0,0)):"TEXTAREA"!==er.nodeName&&"SELECT"!==er.nodeName||(rr.value=er.value),rr.addEventListener("load",(function(){rr.scrollTop=er.scrollTop,rr.scrollLeft=er.scrollLeft}),!0)),rr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===tr.tagName&&(er.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=rr("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=rr("div",{className:"html2pdf__container",style:er}),this.prop.container.appendChild(tr),this.prop.container.firstChild.appendChild(rr("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"}))},nr.prototype.toCanvas=function(){var er=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(er).then(n).then((function(er){var tr=Object.assign({},this.opt.html2canvas);return delete tr.onrendered,er(this.prop.container,tr)})).then((function(er){(this.opt.html2canvas.onrendered||function(){})(er),this.prop.canvas=er,document.body.removeChild(this.prop.overlay)}))},nr.prototype.toContext2d=function(){var er=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(er).then(n).then((function(er){var tr=this.opt.jsPDF,rr=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 rr.onrendered,tr.context2d.autoPaging=!0,tr.context2d.posX=this.opt.x,tr.context2d.posY=this.opt.y,rr.windowHeight=rr.windowHeight||0,rr.windowHeight=0==rr.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):rr.windowHeight,er(this.prop.container,rr)})).then((function(er){(this.opt.html2canvas.onrendered||function(){})(er),this.prop.canvas=er,document.body.removeChild(this.prop.overlay)}))},nr.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var er=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=er}))},nr.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},nr.prototype.output=function(er,tr,rr){return"img"===(rr=rr||"pdf").toLowerCase()||"image"===rr.toLowerCase()?this.outputImg(er,tr):this.outputPdf(er,tr)},nr.prototype.outputPdf=function(er,tr){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(er,tr)}))},nr.prototype.outputImg=function(er){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(er){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 "'+er+'" is not supported.'}}))},nr.prototype.save=function(er){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(er?{filename:er}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},nr.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},nr.prototype.set=function(er){if("object"!==tr(er))return this;var rr=Object.keys(er||{}).map((function(tr){if(tr in nr.template.prop)return function(){this.prop[tr]=er[tr]};switch(tr){case"margin":return this.setMargin.bind(this,er.margin);case"jsPDF":return function(){return this.opt.jsPDF=er.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,er.pageSize);default:return function(){this.opt[tr]=er[tr]}}}),this);return this.then((function(){return this.thenList(rr)}))},nr.prototype.get=function(er,tr){return this.then((function(){var rr=er in nr.template.prop?this.prop[er]:this.opt[er];return tr?tr(rr):rr}))},nr.prototype.setMargin=function(er){return this.then((function(){switch(tr(er)){case"number":er=[er,er,er,er];case"array":if(2===er.length&&(er=[er[0],er[1],er[0],er[1]]),4===er.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=er})).then(this.setPageSize)},nr.prototype.setPageSize=function(er){function e(er,tr){return Math.floor(er*tr/72*96)}return this.then((function(){(er=er||g.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(er.inner={width:er.width-this.opt.margin[1]-this.opt.margin[3],height:er.height-this.opt.margin[0]-this.opt.margin[2]},er.inner.px={width:e(er.inner.width,er.k),height:e(er.inner.height,er.k)},er.inner.ratio=er.inner.height/er.inner.width),this.prop.pageSize=er}))},nr.prototype.setProgress=function(er,tr,rr,nr){return null!=er&&(this.progress.val=er),null!=tr&&(this.progress.state=tr),null!=rr&&(this.progress.n=rr),null!=nr&&(this.progress.stack=nr),this.progress.ratio=this.progress.val/this.progress.state,this},nr.prototype.updateProgress=function(er,tr,rr,nr){return this.setProgress(er?this.progress.val+er:null,tr||null,rr?this.progress.n+rr:null,nr?this.progress.stack.concat(nr):null)},nr.prototype.then=function(er,tr){var rr=this;return this.thenCore(er,tr,(function(er,tr){return rr.updateProgress(null,null,1,[er]),Promise.prototype.then.call(this,(function(tr){return rr.updateProgress(null,er),tr})).then(er,tr).then((function(er){return rr.updateProgress(1),er}))}))},nr.prototype.thenCore=function(er,tr,rr){rr=rr||Promise.prototype.then,er&&(er=er.bind(this)),tr&&(tr=tr.bind(this));var ar=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:nr.convert(Object.assign({},this),Promise.prototype),ir=rr.call(ar,er,tr);return nr.convert(ir,this.__proto__)},nr.prototype.thenExternal=function(er,tr){return Promise.prototype.then.call(this,er,tr)},nr.prototype.thenList=function(er){var tr=this;return er.forEach((function(er){tr=tr.thenCore(er)})),tr},nr.prototype.catch=function(er){er&&(er=er.bind(this));var tr=Promise.prototype.catch.call(this,er);return nr.convert(tr,this)},nr.prototype.catchExternal=function(er){return Promise.prototype.catch.call(this,er)},nr.prototype.error=function(er){return this.then((function(){throw new Error(er)}))},nr.prototype.using=nr.prototype.set,nr.prototype.saveAs=nr.prototype.save,nr.prototype.export=nr.prototype.output,nr.prototype.run=nr.prototype.then,g.getPageSize=function(er,tr,rr){if("object"==_typeof(er)){var nr=er;er=nr.orientation,tr=nr.unit||tr,rr=nr.format||rr}tr=tr||"mm",rr=rr||"a4",er=(""+(er||"P")).toLowerCase();var ar,ir=(""+rr).toLowerCase(),or={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(tr){case"pt":ar=1;break;case"mm":ar=72/25.4;break;case"cm":ar=72/2.54;break;case"in":ar=72;break;case"px":ar=.75;break;case"pc":case"em":ar=12;break;case"ex":ar=6;break;default:throw"Invalid unit: "+tr}var sr,lr=0,cr=0;if(or.hasOwnProperty(ir))lr=or[ir][1]/ar,cr=or[ir][0]/ar;else try{lr=rr[1],cr=rr[0]}catch(er){throw new Error("Invalid format: "+rr)}if("p"===er||"portrait"===er)er="p",cr>lr&&(sr=cr,cr=lr,lr=sr);else{if("l"!==er&&"landscape"!==er)throw"Invalid orientation: "+er;er="l",lr>cr&&(sr=cr,cr=lr,lr=sr)}return{width:cr,height:lr,unit:tr,k:ar,orientation:er}},er.html=function(er,tr){(tr=tr||{}).callback=tr.callback||function(){},tr.html2canvas=tr.html2canvas||{},tr.html2canvas.canvas=tr.html2canvas.canvas||this.canvas,tr.jsPDF=tr.jsPDF||this;var rr=new nr(tr);return tr.worker?rr:rr.from(er).doCallback()}}(g.API),g.API.addJS=function(er){return Eg=er,this.internal.events.subscribe("postPutResources",(function(){Cg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Cg+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Bg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Eg+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==Cg&&void 0!==Bg&&this.internal.out("/Names <</JavaScript "+Cg+" 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(er){var tr;er.events.push(["postPutResources",function(){var er=this,rr=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var nr=er.outline.render().split(/\r\n/),ar=0;ar<nr.length;ar++){var ir=nr[ar],or=rr.exec(ir);if(null!=or){var sr=or[1];er.internal.newObjectDeferredBegin(sr,!1)}er.internal.write(ir)}if(this.outline.createNamedDestinations){var lr=this.internal.pages.length,cr=[];for(ar=0;ar<lr;ar++){var ur=er.internal.newObject();cr.push(ur);var dr=er.internal.getPageInfo(ar+1);er.internal.write("<< /D["+dr.objId+" 0 R /XYZ null null null]>> endobj")}var hr=er.internal.newObject();for(er.internal.write("<< /Names [ "),ar=0;ar<cr.length;ar++)er.internal.write("(page_"+(ar+1)+")"+cr[ar]+" 0 R");er.internal.write(" ] >>","endobj"),tr=er.internal.newObject(),er.internal.write("<< /Dests "+hr+" 0 R"),er.internal.write(">>","endobj")}}]),er.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 "+tr+" 0 R"))}]),er.events.push(["initialized",function(){var er=this;er.outline={createNamedDestinations:!1,root:{children:[]}},er.outline.add=function(er,tr,rr){var nr={title:tr,options:rr,children:[]};return null==er&&(er=this.root),er.children.push(nr),nr},er.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=er,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},er.outline.genIds_r=function(tr){tr.id=er.internal.newObjectDeferred();for(var rr=0;rr<tr.children.length;rr++)this.genIds_r(tr.children[rr])},er.outline.renderRoot=function(er){this.objStart(er),this.line("/Type /Outlines"),er.children.length>0&&(this.line("/First "+this.makeRef(er.children[0])),this.line("/Last "+this.makeRef(er.children[er.children.length-1]))),this.line("/Count "+this.count_r({count:0},er)),this.objEnd()},er.outline.renderItems=function(tr){for(var rr=this.ctx.pdf.internal.getVerticalCoordinateString,nr=0;nr<tr.children.length;nr++){var ar=tr.children[nr];this.objStart(ar),this.line("/Title "+this.makeString(ar.title)),this.line("/Parent "+this.makeRef(tr)),nr>0&&this.line("/Prev "+this.makeRef(tr.children[nr-1])),nr<tr.children.length-1&&this.line("/Next "+this.makeRef(tr.children[nr+1])),ar.children.length>0&&(this.line("/First "+this.makeRef(ar.children[0])),this.line("/Last "+this.makeRef(ar.children[ar.children.length-1])));var ir=this.count=this.count_r({count:0},ar);if(ir>0&&this.line("/Count "+ir),ar.options&&ar.options.pageNumber){var or=er.internal.getPageInfo(ar.options.pageNumber);this.line("/Dest ["+or.objId+" 0 R /XYZ 0 "+rr(0)+" 0]")}this.objEnd()}for(var sr=0;sr<tr.children.length;sr++)this.renderItems(tr.children[sr])},er.outline.line=function(er){this.ctx.val+=er+"\r\n"},er.outline.makeRef=function(er){return er.id+" 0 R"},er.outline.makeString=function(tr){return"("+er.internal.pdfEscape(tr)+")"},er.outline.objStart=function(er){this.ctx.val+="\r\n"+er.id+" 0 obj\r\n<<\r\n"},er.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},er.outline.count_r=function(er,tr){for(var rr=0;rr<tr.children.length;rr++)er.count++,this.count_r(er,tr.children[rr]);return er.count}}])}(g.API),
|
||
/**
|
||
* @license
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){var tr=[192,193,194,195,196,197,198,199];er.processJPEG=function(er,rr,nr,ar,ir,or){var sr,lr=this.decode.DCT_DECODE,cr=null;if("string"==typeof er||this.__addimage__.isArrayBuffer(er)||this.__addimage__.isArrayBufferView(er)){switch(er=ir||er,er=this.__addimage__.isArrayBuffer(er)?new Uint8Array(er):er,(sr=function(er){for(var rr,nr=256*er.charCodeAt(4)+er.charCodeAt(5),ar=er.length,ir={width:0,height:0,numcomponents:1},or=4;or<ar;or+=2){if(or+=nr,-1!==tr.indexOf(er.charCodeAt(or+1))){rr=256*er.charCodeAt(or+5)+er.charCodeAt(or+6),ir={width:256*er.charCodeAt(or+7)+er.charCodeAt(or+8),height:rr,numcomponents:er.charCodeAt(or+9)};break}nr=256*er.charCodeAt(or+2)+er.charCodeAt(or+3)}return ir}(er=this.__addimage__.isArrayBufferView(er)?this.__addimage__.arrayBufferToBinaryString(er):er)).numcomponents){case 1:or=this.color_spaces.DEVICE_GRAY;break;case 4:or=this.color_spaces.DEVICE_CMYK;break;case 3:or=this.color_spaces.DEVICE_RGB}cr={data:er,width:sr.width,height:sr.height,colorSpace:or,bitsPerComponent:8,filter:lr,index:rr,alias:nr}}return cr}}(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 Pg,Tg,Fg,Ug,Ig,Rg=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function ensureBuffer(er){var tr=this.buffer,rr=tr?tr.byteLength:0;if(er<rr)return tr;for(var nr=512;nr<er;)nr<<=1;for(var ar=new Uint8Array(nr),ir=0;ir<rr;++ir)ar[ir]=tr[ir];return this.buffer=ar},getByte:function getByte(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function getBytes(er){var tr=this.pos;if(er){this.ensureBuffer(tr+er);for(var rr=tr+er;!this.eof&&this.bufferLength<rr;)this.readBlock();var nr=this.bufferLength;rr>nr&&(rr=nr)}else{for(;!this.eof;)this.readBlock();rr=this.bufferLength}return this.pos=rr,this.buffer.subarray(tr,rr)},lookChar:function lookChar(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function getChar(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function makeSubStream(er,tr,rr){for(var nr=er+tr;this.bufferLength<=nr&&!this.eof;)this.readBlock();return new Stream(this.buffer,er,tr,rr)},skip:function skip(er){er||(er=1),this.pos+=er},reset:function reset(){this.pos=0}},t}(),Mg=("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==gf&&gf||Function('return typeof this === "object" && this.content')()||Function("return this")()).FlateStream=function(){if("undefined"!=typeof Uint32Array){var er=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tr=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]),rr=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]),nr=[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],ar=[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(Rg.prototype),o.prototype.getBits=function(er){for(var tr,rr=this.codeSize,nr=this.codeBuf,ar=this.bytes,ir=this.bytesPos;rr<er;)void 0===(tr=ar[ir++])&&a("Bad encoding in flate stream"),nr|=tr<<rr,rr+=8;return tr=nr&(1<<er)-1,this.codeBuf=nr>>er,this.codeSize=rr-=er,this.bytesPos=ir,tr},o.prototype.getCode=function(er){for(var tr=er[0],rr=er[1],nr=this.codeSize,ar=this.codeBuf,ir=this.bytes,or=this.bytesPos;nr<rr;){var sr;void 0===(sr=ir[or++])&&a("Bad encoding in flate stream"),ar|=sr<<nr,nr+=8}var lr=tr[ar&(1<<rr)-1],cr=lr>>16,ur=65535&lr;return(0==nr||nr<cr||0==cr)&&a("Bad encoding in flate stream"),this.codeBuf=ar>>cr,this.codeSize=nr-cr,this.bytesPos=or,ur},o.prototype.generateHuffmanTable=function(er){for(var tr=er.length,rr=0,nr=0;nr<tr;++nr)er[nr]>rr&&(rr=er[nr]);for(var ar=1<<rr,ir=new Uint32Array(ar),or=1,sr=0,lr=2;or<=rr;++or,sr<<=1,lr<<=1)for(var cr=0;cr<tr;++cr)if(er[cr]==or){var ur=0,dr=sr;for(nr=0;nr<or;++nr)ur=ur<<1|1&dr,dr>>=1;for(nr=ur;nr<ar;nr+=lr)ir[nr]=or<<16|cr;++sr}return[ir,rr]},o.prototype.readBlock=function(){function o(er,tr,rr,nr,ar){for(var ir=er.getBits(rr)+nr;ir-- >0;)tr[hr++]=ar}var ir=this.getBits(3);if(1&ir&&(this.eof=!0),0!=(ir>>=1)){var or,sr;if(1==ir)or=nr,sr=ar;else if(2==ir){for(var lr=this.getBits(5)+257,cr=this.getBits(5)+1,ur=this.getBits(4)+4,dr=Array(er.length),hr=0;hr<ur;)dr[er[hr++]]=this.getBits(3);for(var pr=this.generateHuffmanTable(dr),Ar=0,fr=(hr=0,lr+cr),gr=new Array(fr);hr<fr;){var mr=this.getCode(pr);16==mr?o(this,gr,2,3,Ar):17==mr?o(this,gr,3,3,Ar=0):18==mr?o(this,gr,7,11,Ar=0):gr[hr++]=Ar=mr}or=this.generateHuffmanTable(gr.slice(0,lr)),sr=this.generateHuffmanTable(gr.slice(lr,fr))}else a("Unknown block type in flate stream");for(var _r=(Lr=this.buffer)?Lr.length:0,vr=this.bufferLength;;){var yr=this.getCode(or);if(yr<256)vr+1>=_r&&(_r=(Lr=this.ensureBuffer(vr+1)).length),Lr[vr++]=yr;else{if(256==yr)return void(this.bufferLength=vr);var br=(yr=tr[yr-=257])>>16;br>0&&(br=this.getBits(br)),Ar=(65535&yr)+br,yr=this.getCode(sr),(br=(yr=rr[yr])>>16)>0&&(br=this.getBits(br));var wr=(65535&yr)+br;vr+Ar>=_r&&(_r=(Lr=this.ensureBuffer(vr+Ar)).length);for(var kr=0;kr<Ar;++kr,++vr)Lr[vr]=Lr[vr-wr]}}}else{var xr,Sr=this.bytes,Cr=this.bytesPos;void 0===(xr=Sr[Cr++])&&a("Bad block header in flate stream");var Br=xr;void 0===(xr=Sr[Cr++])&&a("Bad block header in flate stream"),Br|=xr<<8,void 0===(xr=Sr[Cr++])&&a("Bad block header in flate stream");var Er=xr;void 0===(xr=Sr[Cr++])&&a("Bad block header in flate stream"),(Er|=xr<<8)!=(65535&~Br)&&a("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var Nr=this.bufferLength,Lr=this.ensureBuffer(Nr+Br),Pr=Nr+Br;this.bufferLength=Pr;for(var Tr=Nr;Tr<Pr;++Tr){if(void 0===(xr=Sr[Cr++])){this.eof=!0;break}Lr[Tr]=xr}this.bytesPos=Cr}},o}function a(er){throw new Error(er)}function o(er){var tr=0,rr=er[tr++],nr=er[tr++];-1!=rr&&-1!=nr||a("Invalid header in flate stream"),8!=(15&rr)&&a("Unknown compression method in flate stream"),((rr<<8)+nr)%31!=0&&a("Bad FCHECK in flate stream"),32&nr&&a("FDICT bit set in flate stream"),this.bytes=er,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,Rg.call(this)}}(),Qg=function(){var er,tr,rr;function i(er){var tr,rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr,pr,Ar;for(this.data=er,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},or=null;;){switch(tr=this.readUInt32(),cr=function(){var er,tr;for(tr=[],er=0;er<4;++er)tr.push(String.fromCharCode(this.data[this.pos++]));return tr}.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(tr);break;case"fcTL":or&&this.animation.frames.push(or),this.pos+=4,or={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},ir=this.readUInt16(),ar=this.readUInt16()||100,or.delay=1e3*ir/ar,or.disposeOp=this.data[this.pos++],or.blendOp=this.data[this.pos++],or.data=[];break;case"IDAT":case"fdAT":for("fdAT"===cr&&(this.pos+=4,tr-=4),er=(null!=or?or.data:void 0)||this.imgData,hr=0;0<=tr?hr<tr:hr>tr;0<=tr?++hr:--hr)er.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(nr=this.palette.length/3,this.transparency.indexed=this.read(tr),this.transparency.indexed.length>nr)throw new Error("More transparent colors than palette size");if((ur=nr-this.transparency.indexed.length)>0)for(pr=0;0<=ur?pr<ur:pr>ur;0<=ur?++pr:--pr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(tr)[0];break;case 2:this.transparency.rgb=this.read(tr)}break;case"tEXt":sr=(dr=this.read(tr)).indexOf(0),lr=String.fromCharCode.apply(String,dr.slice(0,sr)),this.text[lr]=String.fromCharCode.apply(String,dr.slice(sr+1));break;case"IEND":return or&&this.animation.frames.push(or),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===(Ar=this.colorType)||6===Ar,rr=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*rr,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+=tr}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(er){var tr,rr;for(rr=[],tr=0;0<=er?tr<er:tr>er;0<=er?++tr:--tr)rr.push(this.data[this.pos++]);return rr},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(er){var tr=this.pixelBitlength/8,rr=new Uint8Array(this.width*this.height*tr),nr=0,ar=this;if(null==er&&(er=this.imgData),0===er.length)return new Uint8Array(0);function a(ir,or,sr,lr){var cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,kr,xr,Sr,Cr,Br,Er,Nr,Lr=Math.ceil((ar.width-ir)/sr),Pr=Math.ceil((ar.height-or)/lr),Tr=ar.width==Lr&&ar.height==Pr;for(wr=tr*Lr,yr=Tr?rr:new Uint8Array(wr*Pr),Ar=er.length,br=0,ur=0;br<Pr&&nr<Ar;){switch(er[nr++]){case 0:for(hr=Sr=0;Sr<wr;hr=Sr+=1)yr[ur++]=er[nr++];break;case 1:for(hr=Cr=0;Cr<wr;hr=Cr+=1)cr=er[nr++],pr=hr<tr?0:yr[ur-tr],yr[ur++]=(cr+pr)%256;break;case 2:for(hr=Br=0;Br<wr;hr=Br+=1)cr=er[nr++],dr=(hr-hr%tr)/tr,kr=br&&yr[(br-1)*wr+dr*tr+hr%tr],yr[ur++]=(kr+cr)%256;break;case 3:for(hr=Er=0;Er<wr;hr=Er+=1)cr=er[nr++],dr=(hr-hr%tr)/tr,pr=hr<tr?0:yr[ur-tr],kr=br&&yr[(br-1)*wr+dr*tr+hr%tr],yr[ur++]=(cr+Math.floor((pr+kr)/2))%256;break;case 4:for(hr=Nr=0;Nr<wr;hr=Nr+=1)cr=er[nr++],dr=(hr-hr%tr)/tr,pr=hr<tr?0:yr[ur-tr],0===br?kr=xr=0:(kr=yr[(br-1)*wr+dr*tr+hr%tr],xr=dr&&yr[(br-1)*wr+(dr-1)*tr+hr%tr]),fr=pr+kr-xr,gr=Math.abs(fr-pr),_r=Math.abs(fr-kr),vr=Math.abs(fr-xr),mr=gr<=_r&&gr<=vr?pr:_r<=vr?kr:xr,yr[ur++]=(cr+mr)%256;break;default:throw new Error("Invalid filter algorithm: "+er[nr-1])}if(!Tr){var Fr=((or+br*lr)*ar.width+ir)*tr,Ur=br*wr;for(hr=0;hr<Lr;hr+=1){for(var Ir=0;Ir<tr;Ir+=1)rr[Fr++]=yr[Ur++];Fr+=(sr-1)*tr}}br++}}return er=(er=new Mg(er)).getBytes(),1==ar.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),rr},i.prototype.decodePalette=function(){var er,tr,rr,nr,ar,ir,or,sr,lr;for(rr=this.palette,ir=this.transparency.indexed||[],ar=new Uint8Array((ir.length||0)+rr.length),nr=0,er=0,tr=or=0,sr=rr.length;or<sr;tr=or+=3)ar[nr++]=rr[tr],ar[nr++]=rr[tr+1],ar[nr++]=rr[tr+2],ar[nr++]=null!=(lr=ir[er++])?lr:255;return ar},i.prototype.copyToImageData=function(er,tr){var rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr;if(nr=this.colors,ur=null,rr=this.hasAlphaChannel,this.palette.length&&(ur=null!=(hr=this._decodedPalette)?hr:this._decodedPalette=this.decodePalette(),nr=4,rr=!0),cr=(ar=er.data||er).length,or=ur||tr,ir=sr=0,1===nr)for(;ir<cr;)lr=ur?4*tr[ir/4]:sr,dr=or[lr++],ar[ir++]=dr,ar[ir++]=dr,ar[ir++]=dr,ar[ir++]=rr?or[lr++]:255,sr=lr;else for(;ir<cr;)lr=ur?4*tr[ir/4]:sr,ar[ir++]=or[lr++],ar[ir++]=or[lr++],ar[ir++]=or[lr++],ar[ir++]=rr?or[lr++]:255,sr=lr},i.prototype.decode=function(){var er;return er=new Uint8Array(this.width*this.height*4),this.copyToImageData(er,this.decodePixels()),er};var nr=function a(){if("[object Window]"===Object.prototype.toString.call(Cf)){try{tr=Cf.document.createElement("canvas"),rr=tr.getContext("2d")}catch(er){return!1}return!0}return!1};return nr(),er=function e(er){var e;if(!0===nr())return rr.width=er.width,rr.height=er.height,rr.clearRect(0,0,er.width,er.height),rr.putImageData(er,0,0),(e=new Image).src=tr.toDataURL(),e;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(tr){var rr,nr,ar,ir,or,sr,lr,cr;if(this.animation){for(cr=[],nr=or=0,sr=(lr=this.animation.frames).length;or<sr;nr=++or)rr=lr[nr],ar=tr.createImageData(rr.width,rr.height),ir=this.decodePixels(new Uint8Array(rr.data)),this.copyToImageData(ar,ir),rr.imageData=ar,cr.push(rr.image=er(ar));return cr}},i.prototype.renderFrame=function(er,tr){var rr,nr,ar;return rr=(nr=this.animation.frames)[tr],ar=nr[tr-1],0===tr&&er.clearRect(0,0,this.width,this.height),1===(null!=ar?ar.disposeOp:void 0)?er.clearRect(ar.xOffset,ar.yOffset,ar.width,ar.height):2===(null!=ar?ar.disposeOp:void 0)&&er.putImageData(ar.imageData,ar.xOffset,ar.yOffset),0===rr.blendOp&&er.clearRect(rr.xOffset,rr.yOffset,rr.width,rr.height),er.drawImage(rr.image,rr.xOffset,rr.yOffset)},i.prototype.animate=function(er){var tr,rr,nr,ar,ir,or,sr=this;return rr=0,or=this.animation,ar=or.numFrames,nr=or.frames,ir=or.numPlays,(tr=function e(){var or,lr;if(or=rr++%ar,lr=nr[or],sr.renderFrame(er,or),ar>1&&rr/ar<ir)return sr.animation._timeout=setTimeout(tr,lr.delay)})()},i.prototype.stopAnimation=function(){var er;return clearTimeout(null!=(er=this.animation)?er._timeout:void 0)},i.prototype.render=function(er){var tr,rr;return er._png&&er._png.stopAnimation(),er._png=this,er.width=this.width,er.height=this.height,tr=er.getContext("2d"),this.animation?(this.decodeFrames(tr),this.animate(tr)):(rr=tr.createImageData(this.width,this.height),this.copyToImageData(rr,this.decodePixels()),tr.putImageData(rr,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(er){var tr=0;if(71!==er[tr++]||73!==er[tr++]||70!==er[tr++]||56!==er[tr++]||56!=(er[tr++]+1&253)||97!==er[tr++])throw new Error("Invalid GIF 87a/89a header.");var rr=er[tr++]|er[tr++]<<8,nr=er[tr++]|er[tr++]<<8,ar=er[tr++],ir=ar>>7,or=1<<1+(7&ar);er[tr++],er[tr++];var sr=null,lr=null;ir&&(sr=tr,lr=or,tr+=3*or);var cr=!0,ur=[],dr=0,hr=null,pr=0,Ar=null;for(this.width=rr,this.height=nr;cr&&tr<er.length;)switch(er[tr++]){case 33:switch(er[tr++]){case 255:if(11!==er[tr]||78==er[tr+1]&&69==er[tr+2]&&84==er[tr+3]&&83==er[tr+4]&&67==er[tr+5]&&65==er[tr+6]&&80==er[tr+7]&&69==er[tr+8]&&50==er[tr+9]&&46==er[tr+10]&&48==er[tr+11]&&3==er[tr+12]&&1==er[tr+13]&&0==er[tr+16])tr+=14,Ar=er[tr++]|er[tr++]<<8,tr++;else for(tr+=12;;){if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}break;case 249:if(4!==er[tr++]||0!==er[tr+4])throw new Error("Invalid graphics extension block.");var fr=er[tr++];dr=er[tr++]|er[tr++]<<8,hr=er[tr++],0==(1&fr)&&(hr=null),pr=fr>>2&7,tr++;break;case 254:for(;;){if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}break;default:throw new Error("Unknown graphic control label: 0x"+er[tr-1].toString(16))}break;case 44:var gr=er[tr++]|er[tr++]<<8,mr=er[tr++]|er[tr++]<<8,_r=er[tr++]|er[tr++]<<8,vr=er[tr++]|er[tr++]<<8,yr=er[tr++],br=yr>>6&1,wr=1<<1+(7&yr),kr=sr,xr=lr,Sr=!1;yr>>7&&(Sr=!0,kr=tr,xr=wr,tr+=3*wr);var Cr=tr;for(tr++;;){var Br;if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}ur.push({x:gr,y:mr,width:_r,height:vr,has_local_palette:Sr,palette_offset:kr,palette_size:xr,data_offset:Cr,data_length:tr-Cr,transparent_index:hr,interlaced:!!br,delay:dr,disposal:pr});break;case 59:cr=!1;break;default:throw new Error("Unknown gif block: 0x"+er[tr-1].toString(16))}this.numFrames=function(){return ur.length},this.loopCount=function(){return Ar},this.frameInfo=function(er){if(er<0||er>=ur.length)throw new Error("Frame index out of range.");return ur[er]},this.decodeAndBlitFrameBGRA=function(tr,nr){var ar=this.frameInfo(tr),ir=ar.width*ar.height,or=new Uint8Array(ir);Bt(er,ar.data_offset,or,ir);var sr=ar.palette_offset,lr=ar.transparent_index;null===lr&&(lr=256);var cr=ar.width,ur=rr-cr,dr=cr,hr=4*(ar.y*rr+ar.x),pr=4*((ar.y+ar.height)*rr+ar.x),Ar=hr,fr=4*ur;!0===ar.interlaced&&(fr+=4*rr*7);for(var gr=8,mr=0,_r=or.length;mr<_r;++mr){var vr=or[mr];if(0===dr&&(dr=cr,(Ar+=fr)>=pr&&(fr=4*ur+4*rr*(gr-1),Ar=hr+(cr+ur)*(gr<<1),gr>>=1)),vr===lr)Ar+=4;else{var yr=er[sr+3*vr],br=er[sr+3*vr+1],wr=er[sr+3*vr+2];nr[Ar++]=wr,nr[Ar++]=br,nr[Ar++]=yr,nr[Ar++]=255}--dr}},this.decodeAndBlitFrameRGBA=function(tr,nr){var ar=this.frameInfo(tr),ir=ar.width*ar.height,or=new Uint8Array(ir);Bt(er,ar.data_offset,or,ir);var sr=ar.palette_offset,lr=ar.transparent_index;null===lr&&(lr=256);var cr=ar.width,ur=rr-cr,dr=cr,hr=4*(ar.y*rr+ar.x),pr=4*((ar.y+ar.height)*rr+ar.x),Ar=hr,fr=4*ur;!0===ar.interlaced&&(fr+=4*rr*7);for(var gr=8,mr=0,_r=or.length;mr<_r;++mr){var vr=or[mr];if(0===dr&&(dr=cr,(Ar+=fr)>=pr&&(fr=4*ur+4*rr*(gr-1),Ar=hr+(cr+ur)*(gr<<1),gr>>=1)),vr===lr)Ar+=4;else{var yr=er[sr+3*vr],br=er[sr+3*vr+1],wr=er[sr+3*vr+2];nr[Ar++]=yr,nr[Ar++]=br,nr[Ar++]=wr,nr[Ar++]=255}--dr}}}function Bt(er,tr,rr,nr){for(var ar=er[tr++],ir=1<<ar,or=ir+1,sr=or+1,lr=ar+1,cr=(1<<lr)-1,ur=0,dr=0,hr=0,pr=er[tr++],Ar=new Int32Array(4096),fr=null;;){for(;ur<16&&0!==pr;)dr|=er[tr++]<<ur,ur+=8,1===pr?pr=er[tr++]:--pr;if(ur<lr)break;var gr=dr&cr;if(dr>>=lr,ur-=lr,gr!==ir){if(gr===or)break;for(var mr=gr<sr?gr:fr,_r=0,vr=mr;vr>ir;)vr=Ar[vr]>>8,++_r;var yr=vr;if(hr+_r+(mr!==gr?1:0)>nr)return void Bf.log("Warning, gif stream longer than expected.");rr[hr++]=yr;var br=hr+=_r;for(mr!==gr&&(rr[hr++]=yr),vr=mr;_r--;)vr=Ar[vr],rr[--br]=255&vr,vr>>=8;null!==fr&&sr<4096&&(Ar[sr++]=fr<<8|yr,sr>=cr+1&&lr<12&&(++lr,cr=cr<<1|1)),fr=gr}else sr=or+1,cr=(1<<(lr=ar+1))-1,fr=null}return hr!==nr&&Bf.log("Warning, gif stream shorter than expected."),rr
|
||
/**
|
||
* @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(er){var tr,rr,nr,ar,ir,or=Math.floor,sr=new Array(64),lr=new Array(64),cr=new Array(64),ur=new Array(64),dr=new Array(65535),hr=new Array(65535),pr=new Array(64),Ar=new Array(64),fr=[],gr=0,mr=7,_r=new Array(64),vr=new Array(64),yr=new Array(64),br=new Array(256),wr=new Array(2048),kr=[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],xr=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Sr=[0,1,2,3,4,5,6,7,8,9,10,11],Cr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Br=[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],Er=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Nr=[0,1,2,3,4,5,6,7,8,9,10,11],Lr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Pr=[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(er,tr){for(var rr=0,nr=0,ar=new Array,ir=1;ir<=16;ir++){for(var or=1;or<=er[ir];or++)ar[tr[nr]]=[],ar[tr[nr]][0]=rr,ar[tr[nr]][1]=ir,nr++,rr++;rr*=2}return ar}function B(er){for(var tr=er[0],rr=er[1]-1;rr>=0;)tr&1<<rr&&(gr|=1<<mr),rr--,--mr<0&&(255==gr?(O(255),O(0)):O(gr),mr=7,gr=0)}function O(er){fr.push(er)}function M(er){O(er>>8&255),O(255&er)}function E(er,tr,rr,nr,ar){for(var ir,or=ar[0],sr=ar[240],lr=function(er,tr){var rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr=0;for(ur=0;ur<8;++ur){rr=er[hr],nr=er[hr+1],ar=er[hr+2],ir=er[hr+3],or=er[hr+4],sr=er[hr+5],lr=er[hr+6];var Ar=rr+(cr=er[hr+7]),fr=rr-cr,gr=nr+lr,mr=nr-lr,_r=ar+sr,vr=ar-sr,yr=ir+or,br=ir-or,wr=Ar+yr,kr=Ar-yr,xr=gr+_r,Sr=gr-_r;er[hr]=wr+xr,er[hr+4]=wr-xr;var Cr=.707106781*(Sr+kr);er[hr+2]=kr+Cr,er[hr+6]=kr-Cr;var Br=.382683433*((wr=br+vr)-(Sr=mr+fr)),Er=.5411961*wr+Br,Nr=1.306562965*Sr+Br,Lr=.707106781*(xr=vr+mr),Pr=fr+Lr,Tr=fr-Lr;er[hr+5]=Tr+Er,er[hr+3]=Tr-Er,er[hr+1]=Pr+Nr,er[hr+7]=Pr-Nr,hr+=8}for(hr=0,ur=0;ur<8;++ur){rr=er[hr],nr=er[hr+8],ar=er[hr+16],ir=er[hr+24],or=er[hr+32],sr=er[hr+40],lr=er[hr+48];var Fr=rr+(cr=er[hr+56]),Ur=rr-cr,Ir=nr+lr,Rr=nr-lr,Mr=ar+sr,Qr=ar-sr,Or=ir+or,Dr=ir-or,jr=Fr+Or,Hr=Fr-Or,Gr=Ir+Mr,Vr=Ir-Mr;er[hr]=jr+Gr,er[hr+32]=jr-Gr;var zr=.707106781*(Vr+Hr);er[hr+16]=Hr+zr,er[hr+48]=Hr-zr;var Kr=.382683433*((jr=Dr+Qr)-(Vr=Rr+Ur)),qr=.5411961*jr+Kr,Wr=1.306562965*Vr+Kr,Xr=.707106781*(Gr=Qr+Rr),Yr=Ur+Xr,Jr=Ur-Xr;er[hr+40]=Jr+qr,er[hr+24]=Jr-qr,er[hr+8]=Yr+Wr,er[hr+56]=Yr-Wr,hr++}for(ur=0;ur<64;++ur)dr=er[ur]*tr[ur],pr[ur]=dr>0?dr+.5|0:dr-.5|0;return pr}(er,tr),cr=0;cr<64;++cr)Ar[kr[cr]]=lr[cr];var ur=Ar[0]-rr;rr=Ar[0],0==ur?B(nr[0]):(B(nr[hr[ir=32767+ur]]),B(dr[ir]));for(var fr=63;fr>0&&0==Ar[fr];)fr--;if(0==fr)return B(or),rr;for(var gr,mr=1;mr<=fr;){for(var _r=mr;0==Ar[mr]&&mr<=fr;)++mr;var vr=mr-_r;if(vr>=16){gr=vr>>4;for(var yr=1;yr<=gr;++yr)B(sr);vr&=15}ir=32767+Ar[mr],B(ar[(vr<<4)+hr[ir]]),B(dr[ir]),mr++}return 63!=fr&&B(or),rr}function q(er){er=Math.min(Math.max(er,1),100),ir!=er&&(function(er){for(var tr=[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],rr=0;rr<64;rr++){var nr=or((tr[rr]*er+50)/100);nr=Math.min(Math.max(nr,1),255),sr[kr[rr]]=nr}for(var ar=[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],ir=0;ir<64;ir++){var dr=or((ar[ir]*er+50)/100);dr=Math.min(Math.max(dr,1),255),lr[kr[ir]]=dr}for(var hr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],pr=0,Ar=0;Ar<8;Ar++)for(var fr=0;fr<8;fr++)cr[pr]=1/(sr[kr[pr]]*hr[Ar]*hr[fr]*8),ur[pr]=1/(lr[kr[pr]]*hr[Ar]*hr[fr]*8),pr++}(er<50?Math.floor(5e3/er):Math.floor(200-2*er)),ir=er)}this.encode=function(er,ir){ir&&q(ir),fr=new Array,gr=0,mr=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 er=0;er<64;er++)O(sr[er]);O(1);for(var tr=0;tr<64;tr++)O(lr[tr])}(),function(er,tr){M(65472),M(17),O(8),M(tr),M(er),O(3),O(1),O(17),O(0),O(2),O(17),O(1),O(3),O(17),O(1)}(er.width,er.height),function(){M(65476),M(418),O(0);for(var er=0;er<16;er++)O(xr[er+1]);for(var tr=0;tr<=11;tr++)O(Sr[tr]);O(16);for(var rr=0;rr<16;rr++)O(Cr[rr+1]);for(var nr=0;nr<=161;nr++)O(Br[nr]);O(1);for(var ar=0;ar<16;ar++)O(Er[ar+1]);for(var ir=0;ir<=11;ir++)O(Nr[ir]);O(17);for(var or=0;or<16;or++)O(Lr[or+1]);for(var sr=0;sr<=161;sr++)O(Pr[sr])}(),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 or=0,dr=0,hr=0;gr=0,mr=7,this.encode.displayName="_encode_";for(var pr,Ar,br,kr,Tr,Fr,Ur,Ir,Rr,Mr=er.data,Qr=er.width,Or=er.height,Dr=4*Qr,jr=0;jr<Or;){for(pr=0;pr<Dr;){for(Tr=Dr*jr+pr,Ur=-1,Ir=0,Rr=0;Rr<64;Rr++)Fr=Tr+(Ir=Rr>>3)*Dr+(Ur=4*(7&Rr)),jr+Ir>=Or&&(Fr-=Dr*(jr+1+Ir-Or)),pr+Ur>=Dr&&(Fr-=pr+Ur-Dr+4),Ar=Mr[Fr++],br=Mr[Fr++],kr=Mr[Fr++],_r[Rr]=(wr[Ar]+wr[br+256>>0]+wr[kr+512>>0]>>16)-128,vr[Rr]=(wr[Ar+768>>0]+wr[br+1024>>0]+wr[kr+1280>>0]>>16)-128,yr[Rr]=(wr[Ar+1280>>0]+wr[br+1536>>0]+wr[kr+1792>>0]>>16)-128;or=E(_r,cr,or,tr,nr),dr=E(vr,ur,dr,rr,ar),hr=E(yr,ur,hr,rr,ar),pr+=32}jr+=8}if(mr>=0){var Hr=[];Hr[1]=mr+1,Hr[0]=(1<<mr+1)-1,B(Hr)}return M(65497),new Uint8Array(fr)},er=er||50,function(){for(var er=String.fromCharCode,tr=0;tr<256;tr++)br[tr]=er(tr)}(),tr=j(xr,Sr),rr=j(Er,Nr),nr=j(Cr,Br),ar=j(Lr,Pr),function(){for(var er=1,tr=2,rr=1;rr<=15;rr++){for(var nr=er;nr<tr;nr++)hr[32767+nr]=rr,dr[32767+nr]=[],dr[32767+nr][1]=rr,dr[32767+nr][0]=nr;for(var ar=-(tr-1);ar<=-er;ar++)hr[32767+ar]=rr,dr[32767+ar]=[],dr[32767+ar][1]=rr,dr[32767+ar][0]=tr-1+ar;er<<=1,tr<<=1}}(),function(){for(var er=0;er<256;er++)wr[er]=19595*er,wr[er+256>>0]=38470*er,wr[er+512>>0]=7471*er+32768,wr[er+768>>0]=-11059*er,wr[er+1024>>0]=-21709*er,wr[er+1280>>0]=32768*er+8421375,wr[er+1536>>0]=-27439*er,wr[er+1792>>0]=-5329*er}(),q(er)}
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/function Mt(er,tr){if(this.pos=0,this.buffer=er,this.datav=new DataView(er.buffer),this.is_with_alpha=!!tr,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(er){function e(er){if(!er)throw Error("assert :P")}function n(er,tr,rr){for(var nr=0;4>nr;nr++)if(er[tr+nr]!=rr.charCodeAt(nr))return!0;return!1}function r(er,tr,rr,nr,ar){for(var ir=0;ir<ar;ir++)er[tr+ir]=rr[nr+ir]}function i(er,tr,rr,nr){for(var ar=0;ar<nr;ar++)er[tr+ar]=rr}function a(er){return new Int32Array(er)}function o(er,tr){for(var rr=[],nr=0;nr<er;nr++)rr.push(new tr);return rr}function s(er,tr){var rr=[];return function t(er,rr,nr){for(var ar=nr[rr],ir=0;ir<ar&&(er.push(nr.length>rr+1?[]:new tr),!(nr.length<rr+1));ir++)t(er[ir],rr+1,nr)}(rr,0,er),rr}function u(er,tr){for(var rr="",nr=0;nr<4;nr++)rr+=String.fromCharCode(er[tr++]);return rr}function c(er,tr){return(er[tr+0]<<0|er[tr+1]<<8|er[tr+2]<<16)>>>0}function h(er,tr){return(er[tr+0]<<0|er[tr+1]<<8|er[tr+2]<<16|er[tr+3]<<24)>>>0}new(Et=function Et(){var er=this;function u(er,tr){for(var rr=1<<tr-1>>>0;er&rr;)rr>>>=1;return rr?(er&rr-1)+rr:er}function c(er,tr,rr,nr,ar){e(!(nr%rr));do{er[tr+(nr-=rr)]=ar}while(0<nr)}function h(er,tr,rr,nr,ar){if(e(2328>=ar),512>=ar)var ir=a(512);else if(null==(ir=a(ar)))return 0;return function(er,tr,rr,nr,ar,ir){var or,sr,lr=tr,cr=1<<rr,ur=a(16),dr=a(16);for(e(0!=ar),e(null!=nr),e(null!=er),e(0<rr),sr=0;sr<ar;++sr){if(15<nr[sr])return 0;++ur[nr[sr]]}if(ur[0]==ar)return 0;for(dr[1]=0,or=1;15>or;++or){if(ur[or]>1<<or)return 0;dr[or+1]=dr[or]+ur[or]}for(sr=0;sr<ar;++sr)or=nr[sr],0<nr[sr]&&(ir[dr[or]++]=sr);if(1==dr[15])return(nr=new l).g=0,nr.value=ir[0],c(er,lr,1,cr,nr),cr;var hr,pr=-1,Ar=cr-1,fr=0,gr=1,mr=1,_r=1<<rr;for(sr=0,or=1,ar=2;or<=rr;++or,ar<<=1){if(gr+=mr<<=1,0>(mr-=ur[or]))return 0;for(;0<ur[or];--ur[or])(nr=new l).g=or,nr.value=ir[sr++],c(er,lr+fr,ar,_r,nr),fr=u(fr,or)}for(or=rr+1,ar=2;15>=or;++or,ar<<=1){if(gr+=mr<<=1,0>(mr-=ur[or]))return 0;for(;0<ur[or];--ur[or]){if(nr=new l,(fr&Ar)!=pr){for(lr+=_r,hr=1<<(pr=or)-rr;15>pr&&!(0>=(hr-=ur[pr]));)++pr,hr<<=1;cr+=_r=1<<(hr=pr-rr),er[tr+(pr=fr&Ar)].g=hr+rr,er[tr+pr].value=lr-tr-pr}nr.g=or-rr,nr.value=ir[sr++],c(er,lr+(fr>>rr),ar,_r,nr),fr=u(fr,or)}}return gr!=2*dr[15]-1?0:cr}(er,tr,rr,nr,ar,ir)}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(tr,f)}function p(er,tr,rr,nr){e(null!=er),e(null!=tr),e(2147483648>nr),er.Ca=254,er.I=0,er.b=-8,er.Ka=0,er.oa=tr,er.pa=rr,er.Jd=tr,er.Yc=rr+nr,er.Zc=4<=nr?rr+nr-4+1:rr,S(er)}function g(er,tr){for(var rr=0;0<tr--;)rr|=k(er,128)<<tr;return rr}function m(er,tr){var rr=g(er,tr);return P(er)?-rr:rr}function v(er,tr,rr,nr){var ar,ir=0;for(e(null!=er),e(null!=tr),e(4294967288>nr),er.Sb=nr,er.Ra=0,er.u=0,er.h=0,4<nr&&(nr=4),ar=0;ar<nr;++ar)ir+=tr[rr+ar]<<8*ar;er.Ra=ir,er.bb=nr,er.oa=tr,er.pa=rr}function b(er){for(;8<=er.u&&er.bb<er.Sb;)er.Ra>>>=8,er.Ra+=er.oa[er.pa+er.bb]<<ar-8>>>0,++er.bb,er.u-=8;x(er)&&(er.h=1,er.u=0)}function y(er,tr){if(e(0<=tr),!er.h&&tr<=nr){var ar=L(er)&rr[tr];return er.u+=tr,b(er),ar}return er.h=1,er.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(er){return er.Ra>>>(er.u&ar-1)>>>0}function x(er){return e(er.bb<=er.Sb),er.h||er.bb==er.Sb&&er.u>ar}function A(er,tr){er.u=tr,er.h=x(er)}function _(er){er.u>=ir&&(e(er.u>=ir),b(er))}function S(er){e(null!=er&&null!=er.oa),er.pa<er.Zc?(er.I=(er.oa[er.pa++]|er.I<<8)>>>0,er.b+=8):(e(null!=er&&null!=er.oa),er.pa<er.Yc?(er.b+=8,er.I=er.oa[er.pa++]|er.I<<8):er.Ka?er.b=0:(er.I<<=8,er.b+=8,er.Ka=1))}function P(er){return g(er,1)}function k(er,tr){var rr=er.Ca;0>er.b&&S(er);var nr=er.b,ar=rr*tr>>>8,ir=(er.I>>>nr>ar)+0;for(ir?(rr-=ar,er.I-=ar+1<<nr>>>0):rr=ar+1,nr=rr,ar=0;256<=nr;)ar+=8,nr>>=8;return nr=7^ar+or[nr],er.b-=nr,er.Ca=(rr<<nr)-1,ir}function F(er,tr,rr){er[tr+0]=rr>>24&255,er[tr+1]=rr>>16&255,er[tr+2]=rr>>8&255,er[tr+3]=rr>>0&255}function I(er,tr){return er[tr+0]<<0|er[tr+1]<<8}function C(er,tr){return I(er,tr)|er[tr+2]<<16}function j(er,tr){return I(er,tr)|I(er,tr+2)<<16}function B(er,tr){var rr=1<<tr;return e(null!=er),e(0<tr),er.X=a(rr),null==er.X?0:(er.Mb=32-tr,er.Xa=tr,1)}function O(er,tr){e(null!=er),e(null!=tr),e(er.Xa==tr.Xa),r(tr.X,0,er.X,0,1<<tr.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function E(er,tr,rr,nr){e(null!=rr),e(null!=nr);var ar=rr[0],ir=nr[0];return 0==ar&&(ar=(er*ir+tr/2)/tr),0==ir&&(ir=(tr*ar+er/2)/er),0>=ar||0>=ir?0:(rr[0]=ar,nr[0]=ir,1)}function q(er,tr){return er+(1<<tr)-1>>>tr}function R(er,tr){return((4278255360&er)+(4278255360&tr)>>>0&4278255360)+((16711935&er)+(16711935&tr)>>>0&16711935)>>>0}function T(tr,rr){er[rr]=function(rr,nr,ar,ir,or,sr,lr){var cr;for(cr=0;cr<or;++cr){var ur=er[tr](sr[lr+cr-1],ar,ir+cr);sr[lr+cr]=R(rr[nr+cr],ur)}}}function D(){this.ud=this.hd=this.jd=0}function U(er,tr){return((4278124286&(er^tr))>>>1)+(er&tr)>>>0}function z(er){return 0<=er&&256>er?er:0>er?0:255<er?255:void 0}function H(er,tr){return z(er+(er-tr+.5>>1))}function W(er,tr,rr){return Math.abs(tr-rr)-Math.abs(er-rr)}function V(er,tr,rr,nr,ar,ir,or){for(nr=ir[or-1],rr=0;rr<ar;++rr)ir[or+rr]=nr=R(er[tr+rr],nr)}function G(er,tr,rr,nr,ar){var ir;for(ir=0;ir<rr;++ir){var or=er[tr+ir],sr=or>>8&255,lr=16711935&(lr=(lr=16711935&or)+((sr<<16)+sr));nr[ar+ir]=(4278255360&or)+lr>>>0}}function Y(er,tr){tr.jd=er>>0&255,tr.hd=er>>8&255,tr.ud=er>>16&255}function J(er,tr,rr,nr,ar,ir){var or;for(or=0;or<nr;++or){var sr=tr[rr+or],lr=sr>>>8,cr=sr,ur=255&(ur=(ur=sr>>>16)+((er.jd<<24>>24)*(lr<<24>>24)>>>5));cr=255&(cr=(cr+=(er.hd<<24>>24)*(lr<<24>>24)>>>5)+((er.ud<<24>>24)*(ur<<24>>24)>>>5)),ar[ir+or]=(4278255360&sr)+(ur<<16)+cr}}function X(tr,rr,nr,ar,ir){er[rr]=function(er,tr,rr,nr,or,sr,lr,cr,ur){for(nr=lr;nr<cr;++nr)for(lr=0;lr<ur;++lr)or[sr++]=ir(rr[ar(er[tr++])])},er[tr]=function(tr,rr,or,sr,lr,cr,ur){var dr=8>>tr.b,hr=tr.Ea,pr=tr.K[0],Ar=tr.w;if(8>dr)for(tr=(1<<tr.b)-1,Ar=(1<<dr)-1;rr<or;++rr){var fr,gr=0;for(fr=0;fr<hr;++fr)fr&tr||(gr=ar(sr[lr++])),cr[ur++]=ir(pr[gr&Ar]),gr>>=dr}else er["VP8LMapColor"+nr](sr,lr,pr,Ar,cr,ur,rr,or,hr)}}function K(er,tr,rr,nr,ar){for(rr=tr+rr;tr<rr;){var ir=er[tr++];nr[ar++]=ir>>16&255,nr[ar++]=ir>>8&255,nr[ar++]=ir>>0&255}}function Z(er,tr,rr,nr,ar){for(rr=tr+rr;tr<rr;){var ir=er[tr++];nr[ar++]=ir>>16&255,nr[ar++]=ir>>8&255,nr[ar++]=ir>>0&255,nr[ar++]=ir>>24&255}}function $(er,tr,rr,nr,ar){for(rr=tr+rr;tr<rr;){var ir=(or=er[tr++])>>16&240|or>>12&15,or=or>>0&240|or>>28&15;nr[ar++]=ir,nr[ar++]=or}}function Q(er,tr,rr,nr,ar){for(rr=tr+rr;tr<rr;){var ir=(or=er[tr++])>>16&248|or>>13&7,or=or>>5&224|or>>3&31;nr[ar++]=ir,nr[ar++]=or}}function tt(er,tr,rr,nr,ar){for(rr=tr+rr;tr<rr;){var ir=er[tr++];nr[ar++]=ir>>0&255,nr[ar++]=ir>>8&255,nr[ar++]=ir>>16&255}}function et(er,tr,rr,nr,ar,ir){if(0==ir)for(rr=tr+rr;tr<rr;)F(nr,((ir=er[tr++])[0]>>24|ir[1]>>8&65280|ir[2]<<8&16711680|ir[3]<<24)>>>0),ar+=32;else r(nr,ar,er,tr,rr)}function nt(tr,rr){er[rr][0]=er[tr+"0"],er[rr][1]=er[tr+"1"],er[rr][2]=er[tr+"2"],er[rr][3]=er[tr+"3"],er[rr][4]=er[tr+"4"],er[rr][5]=er[tr+"5"],er[rr][6]=er[tr+"6"],er[rr][7]=er[tr+"7"],er[rr][8]=er[tr+"8"],er[rr][9]=er[tr+"9"],er[rr][10]=er[tr+"10"],er[rr][11]=er[tr+"11"],er[rr][12]=er[tr+"12"],er[rr][13]=er[tr+"13"],er[rr][14]=er[tr+"0"],er[rr][15]=er[tr+"0"]}function rt(er){return er==Gn||er==Vn||er==zn||er==Kn}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(er){return alert("todo:WebPSamplerProcessPlane"),er.T}function ht(er,tr){var rr=er.T,nr=tr.ba.f.RGBA,ar=nr.eb,ir=nr.fb+er.ka*nr.A,or=_a[tr.ba.S],sr=er.y,lr=er.O,cr=er.f,ur=er.N,dr=er.ea,hr=er.W,pr=tr.cc,Ar=tr.dc,fr=tr.Mc,gr=tr.Nc,mr=er.ka,_r=er.ka+er.T,vr=er.U,yr=vr+1>>1;for(0==mr?or(sr,lr,null,null,cr,ur,dr,hr,cr,ur,dr,hr,ar,ir,null,null,vr):(or(tr.ec,tr.fc,sr,lr,pr,Ar,fr,gr,cr,ur,dr,hr,ar,ir-nr.A,ar,ir,vr),++rr);mr+2<_r;mr+=2)pr=cr,Ar=ur,fr=dr,gr=hr,ur+=er.Rc,hr+=er.Rc,ir+=2*nr.A,or(sr,(lr+=2*er.fa)-er.fa,sr,lr,pr,Ar,fr,gr,cr,ur,dr,hr,ar,ir-nr.A,ar,ir,vr);return lr+=er.fa,er.j+_r<er.o?(r(tr.ec,tr.fc,sr,lr,vr),r(tr.cc,tr.dc,cr,ur,yr),r(tr.Mc,tr.Nc,dr,hr,yr),rr--):1&_r||or(sr,lr,null,null,cr,ur,dr,hr,cr,ur,dr,hr,ar,ir+nr.A,null,null,vr),rr}function lt(er,tr,rr){var nr=er.F,ar=[er.J];if(null!=nr){var ir=er.U,or=tr.ba.S,sr=or==Qn||or==zn;tr=tr.ba.f.RGBA;var lr=[0],cr=er.ka;lr[0]=er.T,er.Kb&&(0==cr?--lr[0]:(--cr,ar[0]-=er.width),er.j+er.ka+er.T==er.o&&(lr[0]=er.o-er.j-cr));var ur=tr.eb;cr=tr.fb+cr*tr.A,er=jr(nr,ar[0],er.width,ir,lr,ur,cr+(sr?0:3),tr.A),e(rr==lr),er&&rt(or)&&Or(ur,cr,sr,ir,lr,tr.A)}return 0}function ft(er){var tr=er.ma,rr=tr.ba.S,nr=11>rr,ar=rr==Zr||rr==Un||rr==Qn||rr==Dn||12==rr||rt(rr);if(tr.memory=null,tr.Ib=null,tr.Jb=null,tr.Nd=null,!En(tr.Oa,er,ar?11:12))return 0;if(ar&&rt(rr)&&yn(),er.da)alert("todo:use_scaling");else{if(nr){if(tr.Ib=ct,er.Kb){if(rr=er.U+1>>1,tr.memory=a(er.U+2*rr),null==tr.memory)return 0;tr.ec=tr.memory,tr.fc=0,tr.cc=tr.ec,tr.dc=tr.fc+er.U,tr.Mc=tr.cc,tr.Nc=tr.dc+rr,tr.Ib=ht,yn()}}else alert("todo:EmitYUV");ar&&(tr.Jb=lt,nr&&vn())}if(nr&&!Ta){for(er=0;256>er;++er)Fa[er]=89858*(er-128)+Ba>>Ca,Ra[er]=-22014*(er-128)+Ba,Ia[er]=-45773*(er-128),Ua[er]=113618*(er-128)+Ba>>Ca;for(er=Ea;er<Na;++er)tr=76283*(er-16)+Ba>>Ca,Ma[er-Ea]=Vt(tr,255),Qa[er-Ea]=Vt(tr+8>>4,15);Ta=1}return 1}function dt(er){var tr=er.ma,rr=er.U,nr=er.T;return e(!(1&er.ka)),0>=rr||0>=nr?0:(rr=tr.Ib(er,tr),null!=tr.Jb&&tr.Jb(er,tr,rr),tr.Dc+=rr,1)}function pt(er){er.ma.memory=null}function gt(er,tr,rr,nr){return 47!=y(er,8)?0:(tr[0]=y(er,14)+1,rr[0]=y(er,14)+1,nr[0]=y(er,1),0!=y(er,3)?0:!er.h)}function mt(er,tr){if(4>er)return er+1;var rr=er-2>>1;return(2+(1&er)<<rr)+y(tr,rr)+1}function vt(er,tr){return 120<tr?tr-120:1<=(rr=((rr=Zn[tr-1])>>4)*er+(8-(15&rr)))?rr:1;var rr}function bt(er,tr,rr){var nr=L(rr),ar=er[tr+=255&nr].g-8;return 0<ar&&(A(rr,rr.u+8),nr=L(rr),tr+=er[tr].value,tr+=nr&(1<<ar)-1),A(rr,rr.u+er[tr].g),er[tr].value}function yt(er,tr,rr){return rr.g+=er.g,rr.value+=er.value<<tr>>>0,e(8>=rr.g),er.g}function wt(er,tr,rr){var nr=er.xc;return e((tr=0==nr?0:er.vc[er.md*(rr>>nr)+(tr>>nr)])<er.Wb),er.Ya[tr]}function Nt(er,tr,rr,nr){var ar=er.ab,ir=er.c*tr,or=er.C;tr=or+tr;var dr=rr,hr=nr;for(nr=er.Ta,rr=er.Ua;0<ar--;){var pr=er.gc[ar],gr=or,mr=tr,_r=dr,vr=hr,yr=(hr=nr,dr=rr,pr.Ea);switch(e(gr<mr),e(mr<=pr.nc),pr.hc){case 2:cr(_r,vr,(mr-gr)*yr,hr,dr);break;case 0:var br=gr,wr=mr,kr=hr,xr=dr,Sr=(Lr=pr).Ea;0==br&&(sr(_r,vr,null,null,1,kr,xr),V(_r,vr+1,0,0,Sr-1,kr,xr+1),vr+=Sr,xr+=Sr,++br);for(var Cr=1<<Lr.b,Br=Cr-1,Er=q(Sr,Lr.b),Nr=Lr.K,Lr=Lr.w+(br>>Lr.b)*Er;br<wr;){var Pr=Nr,Tr=Lr,Fr=1;for(lr(_r,vr,kr,xr-Sr,1,kr,xr);Fr<Sr;){var Ur=(Fr&~Br)+Cr;Ur>Sr&&(Ur=Sr),(0,Ar[Pr[Tr++]>>8&15])(_r,vr+ +Fr,kr,xr+Fr-Sr,Ur-Fr,kr,xr+Fr),Fr=Ur}vr+=Sr,xr+=Sr,++br&Br||(Lr+=Er)}mr!=pr.nc&&r(hr,dr-yr,hr,dr+(mr-gr-1)*yr,yr);break;case 1:for(yr=_r,wr=vr,Sr=(_r=pr.Ea)-(xr=_r&~(kr=(vr=1<<pr.b)-1)),br=q(_r,pr.b),Cr=pr.K,pr=pr.w+(gr>>pr.b)*br;gr<mr;){for(Br=Cr,Er=pr,Nr=new D,Lr=wr+xr,Pr=wr+_r;wr<Lr;)Y(Br[Er++],Nr),fr(Nr,yr,wr,vr,hr,dr),wr+=vr,dr+=vr;wr<Pr&&(Y(Br[Er++],Nr),fr(Nr,yr,wr,Sr,hr,dr),wr+=Sr,dr+=Sr),++gr&kr||(pr+=br)}break;case 3:if(_r==hr&&vr==dr&&0<pr.b){for(wr=hr,_r=yr=dr+(mr-gr)*yr-(xr=(mr-gr)*q(pr.Ea,pr.b)),vr=hr,kr=dr,br=[],xr=(Sr=xr)-1;0<=xr;--xr)br[xr]=vr[kr+xr];for(xr=Sr-1;0<=xr;--xr)wr[_r+xr]=br[xr];ur(pr,gr,mr,hr,yr,hr,dr)}else ur(pr,gr,mr,_r,vr,hr,dr)}dr=nr,hr=rr}hr!=rr&&r(nr,rr,dr,hr,ir)}function Lt(er,tr){var rr=er.V,nr=er.Ba+er.c*er.C,ar=tr-er.C;if(e(tr<=er.l.o),e(16>=ar),0<ar){var ir=er.l,or=er.Ta,sr=er.Ua,lr=ir.width;if(Nt(er,ar,rr,nr),ar=sr=[sr],e((rr=er.C)<(nr=tr)),e(ir.v<ir.va),nr>ir.o&&(nr=ir.o),rr<ir.j){var cr=ir.j-rr;rr=ir.j,ar[0]+=cr*lr}if(rr>=nr?rr=0:(ar[0]+=4*ir.v,ir.ka=rr-ir.j,ir.U=ir.va-ir.v,ir.T=nr-rr,rr=1),rr){if(sr=sr[0],11>(rr=er.ca).S){var ur=rr.f.RGBA,dr=(nr=rr.S,ar=ir.U,ir=ir.T,cr=ur.eb,ur.A),hr=ir;for(ur=ur.fb+er.Ma*ur.A;0<hr--;){var pr=or,Ar=sr,fr=ar,br=cr,wr=ur;switch(nr){case $r:gr(pr,Ar,fr,br,wr);break;case Zr:mr(pr,Ar,fr,br,wr);break;case Gn:mr(pr,Ar,fr,br,wr),Or(br,wr,0,fr,1,0);break;case Tn:yr(pr,Ar,fr,br,wr);break;case Un:et(pr,Ar,fr,br,wr,1);break;case Vn:et(pr,Ar,fr,br,wr,1),Or(br,wr,0,fr,1,0);break;case Qn:et(pr,Ar,fr,br,wr,0);break;case zn:et(pr,Ar,fr,br,wr,0),Or(br,wr,1,fr,1,0);break;case Dn:_r(pr,Ar,fr,br,wr);break;case Kn:_r(pr,Ar,fr,br,wr),Dr(br,wr,fr,1,0);break;case Hn:vr(pr,Ar,fr,br,wr);break;default:e(0)}sr+=lr,ur+=dr}er.Ma+=ir}else alert("todo:EmitRescaledRowsYUVA");e(er.Ma<=rr.height)}}er.C=tr,e(er.C<=er.i)}function xt(er){var tr;if(0<er.ua)return 0;for(tr=0;tr<er.Wb;++tr){var rr=er.Ya[tr].G,nr=er.Ya[tr].H;if(0<rr[1][nr[1]+0].g||0<rr[2][nr[2]+0].g||0<rr[3][nr[3]+0].g)return 0}return 1}function At(er,tr,rr,nr,ar,ir){if(0!=er.Z){var or=er.qd,sr=er.rd;for(e(null!=ma[er.Z]);tr<rr;++tr)ma[er.Z](or,sr,nr,ar,nr,ar,ir),or=nr,sr=ar,ar+=ir;er.qd=or,er.rd=sr}}function _t(er,tr){var rr=er.l.ma,nr=0==rr.Z||1==rr.Z?er.l.j:er.C;if(nr=er.C<nr?nr:er.C,e(tr<=er.l.o),tr>nr){var ar=er.l.width,ir=rr.ca,or=rr.tb+ar*nr,sr=er.V,lr=er.Ba+er.c*nr,cr=er.gc;e(1==er.ab),e(3==cr[0].hc),hr(cr[0],nr,tr,sr,lr,ir,or),At(rr,nr,tr,ir,or,ar)}er.C=er.Ma=tr}function St(er,rr,nr,ar,ir,or,sr){var lr=er.$/ar,cr=er.$%ar,ur=er.m,dr=er.s,hr=nr+er.$,pr=hr;ir=nr+ar*ir;var Ar=nr+ar*or,fr=280+dr.ua,gr=er.Pb?lr:16777216,mr=0<dr.ua?dr.Wa:null,_r=dr.wc,vr=hr<Ar?wt(dr,cr,lr):null;e(er.C<or),e(Ar<=ir);var yr=!1;e:for(;;){for(;yr||hr<Ar;){var br=0;if(lr>=gr){var wr=hr-nr;e((gr=er).Pb),gr.wd=gr.m,gr.xd=wr,0<gr.s.ua&&O(gr.s.Wa,gr.s.vb),gr=lr+ta}if(cr&_r||(vr=wt(dr,cr,lr)),e(null!=vr),vr.Qb&&(rr[hr]=vr.qb,yr=!0),!yr)if(_(ur),vr.jc){br=ur,wr=rr;var kr=hr,xr=vr.pd[L(br)&tr-1];e(vr.jc),256>xr.g?(A(br,br.u+xr.g),wr[kr]=xr.value,br=0):(A(br,br.u+xr.g-256),e(256<=xr.value),br=xr.value),0==br&&(yr=!0)}else br=bt(vr.G[0],vr.H[0],ur);if(ur.h)break;if(yr||256>br){if(!yr)if(vr.nd)rr[hr]=(vr.qb|br<<8)>>>0;else{if(_(ur),yr=bt(vr.G[1],vr.H[1],ur),_(ur),wr=bt(vr.G[2],vr.H[2],ur),kr=bt(vr.G[3],vr.H[3],ur),ur.h)break;rr[hr]=(kr<<24|yr<<16|br<<8|wr)>>>0}if(yr=!1,++hr,++cr>=ar&&(cr=0,++lr,null!=sr&&lr<=or&&!(lr%16)&&sr(er,lr),null!=mr))for(;pr<hr;)br=rr[pr++],mr.X[(506832829*br&4294967295)>>>mr.Mb]=br}else if(280>br){if(br=mt(br-256,ur),wr=bt(vr.G[4],vr.H[4],ur),_(ur),wr=vt(ar,wr=mt(wr,ur)),ur.h)break;if(hr-nr<wr||ir-hr<br)break e;for(kr=0;kr<br;++kr)rr[hr+kr]=rr[hr+kr-wr];for(hr+=br,cr+=br;cr>=ar;)cr-=ar,++lr,null!=sr&&lr<=or&&!(lr%16)&&sr(er,lr);if(e(hr<=ir),cr&_r&&(vr=wt(dr,cr,lr)),null!=mr)for(;pr<hr;)br=rr[pr++],mr.X[(506832829*br&4294967295)>>>mr.Mb]=br}else{if(!(br<fr))break e;for(yr=br-280,e(null!=mr);pr<hr;)br=rr[pr++],mr.X[(506832829*br&4294967295)>>>mr.Mb]=br;br=hr,e(!(yr>>>(wr=mr).Xa)),rr[br]=wr.X[yr],yr=!0}yr||e(ur.h==x(ur))}if(er.Pb&&ur.h&&hr<ir)e(er.m.h),er.a=5,er.m=er.wd,er.$=er.xd,0<er.s.ua&&O(er.s.vb,er.s.Wa);else{if(ur.h)break e;null!=sr&&sr(er,lr>or?or:lr),er.a=0,er.$=hr-nr}return 1}return er.a=3,0}function Pt(er){e(null!=er),er.vc=null,er.yc=null,er.Ya=null;var tr=er.Wa;null!=tr&&(tr.X=null),er.vb=null,e(null!=er)}function kt(){var tr=new sn;return null==tr?null:(tr.a=0,tr.xb=ga,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),cr=G,fr=J,gr=K,mr=Z,_r=$,vr=Q,yr=tt,er.VP8LMapColor32b=dr,er.VP8LMapColor8b=pr,tr)}function Ft(er,rr,nr,ar,ir){var or=1,sr=[er],lr=[rr],cr=ar.m,ur=ar.s,dr=null,hr=0;e:for(;;){if(nr)for(;or&&y(cr,1);){var pr=sr,Ar=lr,fr=ar,gr=1,mr=fr.m,_r=fr.gc[fr.ab],vr=y(mr,2);if(fr.Oc&1<<vr)or=0;else{switch(fr.Oc|=1<<vr,_r.hc=vr,_r.Ea=pr[0],_r.nc=Ar[0],_r.K=[null],++fr.ab,e(4>=fr.ab),vr){case 0:case 1:_r.b=y(mr,3)+2,gr=Ft(q(_r.Ea,_r.b),q(_r.nc,_r.b),0,fr,_r.K),_r.K=_r.K[0];break;case 3:var yr,br=y(mr,8)+1,wr=16<br?0:4<br?1:2<br?2:3;if(pr[0]=q(_r.Ea,wr),_r.b=wr,yr=gr=Ft(br,1,0,fr,_r.K)){var kr,xr=br,Sr=_r,Cr=1<<(8>>Sr.b),Br=a(Cr);if(null==Br)yr=0;else{var Er=Sr.K[0],Nr=Sr.w;for(Br[0]=Sr.K[0][0],kr=1;kr<1*xr;++kr)Br[kr]=R(Er[Nr+kr],Br[kr-1]);for(;kr<4*Cr;++kr)Br[kr]=0;Sr.K[0]=null,Sr.K[0]=Br,yr=1}}gr=yr;break;case 2:break;default:e(0)}or=gr}}if(sr=sr[0],lr=lr[0],or&&y(cr,1)&&!(or=1<=(hr=y(cr,4))&&11>=hr)){ar.a=3;break e}var Lr;if(Lr=or)t:{var Pr,Tr,Fr,Ur=ar,Ir=sr,Rr=lr,Mr=hr,Qr=nr,Or=Ur.m,Dr=Ur.s,jr=[null],Hr=1,Gr=0,Vr=ea[Mr];r:for(;;){if(Qr&&y(Or,1)){var zr=y(Or,3)+2,Kr=q(Ir,zr),qr=q(Rr,zr),Wr=Kr*qr;if(!Ft(Kr,qr,0,Ur,jr))break r;for(jr=jr[0],Dr.xc=zr,Pr=0;Pr<Wr;++Pr){var Xr=jr[Pr]>>8&65535;jr[Pr]=Xr,Xr>=Hr&&(Hr=Xr+1)}}if(Or.h)break r;for(Tr=0;5>Tr;++Tr){var Yr=Yn[Tr];!Tr&&0<Mr&&(Yr+=1<<Mr),Gr<Yr&&(Gr=Yr)}var Jr=o(Hr*Vr,l),$r=Hr,Zr=o($r,d);if(null==Zr)var Tn=null;else e(65536>=$r),Tn=Zr;var Un=a(Gr);if(null==Tn||null==Un||null==Jr){Ur.a=1;break r}var Qn=Jr;for(Pr=Fr=0;Pr<Hr;++Pr){var Dn=Tn[Pr],Hn=Dn.G,Gn=Dn.H,Vn=0,zn=1,Kn=0;for(Tr=0;5>Tr;++Tr){Yr=Yn[Tr],Hn[Tr]=Qn,Gn[Tr]=Fr,!Tr&&0<Mr&&(Yr+=1<<Mr);n:{var Zn,ta=Yr,ra=Ur,na=Un,aa=Qn,ia=Fr,oa=0,sa=ra.m,la=y(sa,1);if(i(na,0,0,ta),la){var ca=y(sa,1)+1,ua=y(sa,1),da=y(sa,0==ua?1:8);na[da]=1,2==ca&&(na[da=y(sa,8)]=1);var ha=1}else{var pa=a(19),Aa=y(sa,4)+4;if(19<Aa){ra.a=3;var ga=0;break n}for(Zn=0;Zn<Aa;++Zn)pa[$n[Zn]]=y(sa,3);var ma=void 0,_a=void 0,va=ra,ya=pa,ba=ta,wa=na,ka=0,xa=va.m,Sa=8,Ca=o(128,l);a:for(;h(Ca,0,7,ya,19);){if(y(xa,1)){var Ba=2+2*y(xa,3);if((ma=2+y(xa,Ba))>ba)break a}else ma=ba;for(_a=0;_a<ba&&ma--;){_(xa);var Ea=Ca[0+(127&L(xa))];A(xa,xa.u+Ea.g);var Na=Ea.value;if(16>Na)wa[_a++]=Na,0!=Na&&(Sa=Na);else{var La=16==Na,Pa=Na-16,Ta=Xn[Pa],Fa=y(xa,Wn[Pa])+Ta;if(_a+Fa>ba)break a;for(var Ua=La?Sa:0;0<Fa--;)wa[_a++]=Ua}}ka=1;break a}ka||(va.a=3),ha=ka}(ha=ha&&!sa.h)&&(oa=h(aa,ia,8,na,ta)),ha&&0!=oa?ga=oa:(ra.a=3,ga=0)}if(0==ga)break r;if(zn&&1==Jn[Tr]&&(zn=0==Qn[Fr].g),Vn+=Qn[Fr].g,Fr+=ga,3>=Tr){var Ia,Ra=Un[0];for(Ia=1;Ia<Yr;++Ia)Un[Ia]>Ra&&(Ra=Un[Ia]);Kn+=Ra}}if(Dn.nd=zn,Dn.Qb=0,zn&&(Dn.qb=(Hn[3][Gn[3]+0].value<<24|Hn[1][Gn[1]+0].value<<16|Hn[2][Gn[2]+0].value)>>>0,0==Vn&&256>Hn[0][Gn[0]+0].value&&(Dn.Qb=1,Dn.qb+=Hn[0][Gn[0]+0].value<<8)),Dn.jc=!Dn.Qb&&6>Kn,Dn.jc){var Ma,Qa=Dn;for(Ma=0;Ma<tr;++Ma){var Oa=Ma,Da=Qa.pd[Oa],ja=Qa.G[0][Qa.H[0]+Oa];256<=ja.value?(Da.g=ja.g+256,Da.value=ja.value):(Da.g=0,Da.value=0,Oa>>=yt(ja,8,Da),Oa>>=yt(Qa.G[1][Qa.H[1]+Oa],16,Da),Oa>>=yt(Qa.G[2][Qa.H[2]+Oa],0,Da),yt(Qa.G[3][Qa.H[3]+Oa],24,Da))}}}Dr.vc=jr,Dr.Wb=Hr,Dr.Ya=Tn,Dr.yc=Jr,Lr=1;break t}Lr=0}if(!(or=Lr)){ar.a=3;break e}if(0<hr){if(ur.ua=1<<hr,!B(ur.Wa,hr)){ar.a=1,or=0;break e}}else ur.ua=0;var Ha=ar,Ga=sr,Va=lr,za=Ha.s,Ka=za.xc;if(Ha.c=Ga,Ha.i=Va,za.md=q(Ga,Ka),za.wc=0==Ka?-1:(1<<Ka)-1,nr){ar.xb=fa;break e}if(null==(dr=a(sr*lr))){ar.a=1,or=0;break e}or=(or=St(ar,dr,0,sr,lr,lr,null))&&!cr.h;break e}return or?(null!=ir?ir[0]=dr:(e(null==dr),e(nr)),ar.$=0,nr||Pt(ur)):Pt(ur),or}function It(er,tr){var rr=er.c*er.i,nr=rr+tr+16*tr;return e(er.c<=tr),er.V=a(nr),null==er.V?(er.Ta=null,er.Ua=0,er.a=1,0):(er.Ta=er.V,er.Ua=er.Ba+rr+tr,1)}function Ct(er,tr){var rr=er.C,nr=tr-rr,ar=er.V,ir=er.Ba+er.c*rr;for(e(tr<=er.l.o);0<nr;){var or=16<nr?16:nr,sr=er.l.ma,lr=er.l.width,cr=lr*or,ur=sr.ca,dr=sr.tb+lr*rr,hr=er.Ta,pr=er.Ua;Nt(er,or,ar,ir),Hr(hr,pr,ur,dr,cr),At(sr,rr,rr+or,ur,dr,lr),nr-=or,ar+=or*er.c,rr+=or}e(rr==tr),er.C=er.Ma=tr}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 er=[];return function t(er,tr,rr){for(var nr=rr[tr],ar=0;ar<nr&&(er.push(rr.length>tr+1?[]:0),!(rr.length<tr+1));ar++)t(er[ar],tr+1,rr)}(er,0,[3,11]),er}()}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(er,tr){return 0>er?0:er>tr?tr:er}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 er=new Wt;return null!=er&&(er.a=0,er.sc="OK",er.cb=0,er.Xb=0,aa||(aa=Zt)),er}function Jt(er,tr,rr){return 0==er.a&&(er.a=tr,er.sc=rr,er.cb=0),0}function Xt(er,tr,rr){return 3<=rr&&157==er[tr+0]&&1==er[tr+1]&&42==er[tr+2]}function Kt(er,tr){if(null==er)return 0;if(er.a=0,er.sc="OK",null==tr)return Jt(er,2,"null VP8Io passed to VP8GetHeaders()");var rr=tr.data,nr=tr.w,ar=tr.ha;if(4>ar)return Jt(er,7,"Truncated header.");var ir=rr[nr+0]|rr[nr+1]<<8|rr[nr+2]<<16,or=er.Od;if(or.Rb=!(1&ir),or.td=ir>>1&7,or.yd=ir>>4&1,or.ub=ir>>5,3<or.td)return Jt(er,3,"Incorrect keyframe parameters.");if(!or.yd)return Jt(er,4,"Frame not displayable.");nr+=3,ar-=3;var sr=er.Kc;if(or.Rb){if(7>ar)return Jt(er,7,"cannot parse picture header");if(!Xt(rr,nr,ar))return Jt(er,3,"Bad code word");sr.c=16383&(rr[nr+4]<<8|rr[nr+3]),sr.Td=rr[nr+4]>>6,sr.i=16383&(rr[nr+6]<<8|rr[nr+5]),sr.Ud=rr[nr+6]>>6,nr+=7,ar-=7,er.za=sr.c+15>>4,er.Ub=sr.i+15>>4,tr.width=sr.c,tr.height=sr.i,tr.Da=0,tr.j=0,tr.v=0,tr.va=tr.width,tr.o=tr.height,tr.da=0,tr.ib=tr.width,tr.hb=tr.height,tr.U=tr.width,tr.T=tr.height,i((ir=er.Pa).jb,0,255,ir.jb.length),e(null!=(ir=er.Qa)),ir.Cb=0,ir.Bb=0,ir.Fb=1,i(ir.Zb,0,0,ir.Zb.length),i(ir.Lb,0,0,ir.Lb)}if(or.ub>ar)return Jt(er,7,"bad partition length");p(ir=er.m,rr,nr,or.ub),nr+=or.ub,ar-=or.ub,or.Rb&&(sr.Ld=P(ir),sr.Kd=P(ir)),sr=er.Qa;var lr,cr=er.Pa;if(e(null!=ir),e(null!=sr),sr.Cb=P(ir),sr.Cb){if(sr.Bb=P(ir),P(ir)){for(sr.Fb=P(ir),lr=0;4>lr;++lr)sr.Zb[lr]=P(ir)?m(ir,7):0;for(lr=0;4>lr;++lr)sr.Lb[lr]=P(ir)?m(ir,6):0}if(sr.Bb)for(lr=0;3>lr;++lr)cr.jb[lr]=P(ir)?g(ir,8):255}else sr.Bb=0;if(ir.Ka)return Jt(er,3,"cannot parse segment header");if((sr=er.ed).zd=P(ir),sr.Tb=g(ir,6),sr.wb=g(ir,3),sr.Pc=P(ir),sr.Pc&&P(ir)){for(cr=0;4>cr;++cr)P(ir)&&(sr.vd[cr]=m(ir,6));for(cr=0;4>cr;++cr)P(ir)&&(sr.od[cr]=m(ir,6))}if(er.L=0==sr.Tb?0:sr.zd?1:2,ir.Ka)return Jt(er,3,"cannot parse filter header");var ur=ar;if(ar=lr=nr,nr=lr+ur,sr=ur,er.Xb=(1<<g(er.m,2))-1,ur<3*(cr=er.Xb))rr=7;else{for(lr+=3*cr,sr-=3*cr,ur=0;ur<cr;++ur){var dr=rr[ar+0]|rr[ar+1]<<8|rr[ar+2]<<16;dr>sr&&(dr=sr),p(er.Jc[+ur],rr,lr,dr),lr+=dr,sr-=dr,ar+=3}p(er.Jc[+cr],rr,lr,sr),rr=lr<nr?0:5}if(0!=rr)return Jt(er,rr,"cannot parse partitions");for(rr=g(lr=er.m,7),ar=P(lr)?m(lr,4):0,nr=P(lr)?m(lr,4):0,sr=P(lr)?m(lr,4):0,cr=P(lr)?m(lr,4):0,lr=P(lr)?m(lr,4):0,ur=er.Qa,dr=0;4>dr;++dr){if(ur.Cb){var hr=ur.Zb[dr];ur.Fb||(hr+=rr)}else{if(0<dr){er.pb[dr]=er.pb[0];continue}hr=rr}var pr=er.pb[dr];pr.Sc[0]=ra[Vt(hr+ar,127)],pr.Sc[1]=na[Vt(hr+0,127)],pr.Eb[0]=2*ra[Vt(hr+nr,127)],pr.Eb[1]=101581*na[Vt(hr+sr,127)]>>16,8>pr.Eb[1]&&(pr.Eb[1]=8),pr.Qc[0]=ra[Vt(hr+cr,117)],pr.Qc[1]=na[Vt(hr+lr,127)],pr.lc=hr+lr}if(!or.Rb)return Jt(er,4,"Not a key frame.");for(P(ir),or=er.Pa,rr=0;4>rr;++rr){for(ar=0;8>ar;++ar)for(nr=0;3>nr;++nr)for(sr=0;11>sr;++sr)cr=k(ir,ua[rr][ar][nr][sr])?g(ir,8):la[rr][ar][nr][sr],or.Wc[rr][ar].Yb[nr][sr]=cr;for(ar=0;17>ar;++ar)or.Xc[rr][ar]=or.Wc[rr][da[ar]]}return er.kc=P(ir),er.kc&&(er.Bd=g(ir,8)),er.cb=1}function Zt(er,tr,rr,nr,ar,ir,or){var sr=tr[ar].Yb[rr];for(rr=0;16>ar;++ar){if(!k(er,sr[rr+0]))return ar;for(;!k(er,sr[rr+1]);)if(sr=tr[++ar].Yb[0],rr=0,16==ar)return 16;var lr=tr[ar+1].Yb;if(k(er,sr[rr+2])){var cr=er,ur=0;if(k(cr,(hr=sr)[(dr=rr)+3]))if(k(cr,hr[dr+6])){for(sr=0,dr=2*(ur=k(cr,hr[dr+8]))+(hr=k(cr,hr[dr+9+ur])),ur=0,hr=ia[dr];hr[sr];++sr)ur+=ur+k(cr,hr[sr]);ur+=3+(8<<dr)}else k(cr,hr[dr+7])?(ur=7+2*k(cr,165),ur+=k(cr,145)):ur=5+k(cr,159);else ur=k(cr,hr[dr+4])?3+k(cr,hr[dr+5]):2;sr=lr[2]}else ur=1,sr=lr[1];lr=or+oa[ar],0>(cr=er).b&&S(cr);var dr,hr=cr.b,pr=(dr=cr.Ca>>1)-(cr.I>>hr)>>31;--cr.b,cr.Ca+=pr,cr.Ca|=1,cr.I-=(dr+1&pr)<<hr,ir[lr]=((ur^pr)-pr)*nr[(0<ar)+0]}return 16}function $t(er){var tr=er.rb[er.sb-1];tr.la=0,tr.Na=0,i(er.zc,0,0,er.zc.length),er.ja=0}function Qt(er,tr){if(null==er)return 0;if(null==tr)return Jt(er,2,"NULL VP8Io parameter in VP8Decode().");if(!er.cb&&!Kt(er,tr))return 0;if(e(er.cb),null==tr.ac||tr.ac(tr)){tr.ob&&(er.L=0);var rr=Da[er.L];if(2==er.L?(er.yb=0,er.zb=0):(er.yb=tr.v-rr>>4,er.zb=tr.j-rr>>4,0>er.yb&&(er.yb=0),0>er.zb&&(er.zb=0)),er.Va=tr.o+15+rr>>4,er.Hb=tr.va+15+rr>>4,er.Hb>er.za&&(er.Hb=er.za),er.Va>er.Ub&&(er.Va=er.Ub),0<er.L){var nr=er.ed;for(rr=0;4>rr;++rr){var ar;if(er.Qa.Cb){var ir=er.Qa.Lb[rr];er.Qa.Fb||(ir+=nr.Tb)}else ir=nr.Tb;for(ar=0;1>=ar;++ar){var or=er.gd[rr][ar],sr=ir;if(nr.Pc&&(sr+=nr.vd[0],ar&&(sr+=nr.od[0])),0<(sr=0>sr?0:63<sr?63:sr)){var lr=sr;0<nr.wb&&(lr=4<nr.wb?lr>>2:lr>>1)>9-nr.wb&&(lr=9-nr.wb),1>lr&&(lr=1),or.dd=lr,or.tc=2*sr+lr,or.ld=40<=sr?2:15<=sr?1:0}else or.tc=0;or.La=ar}}}rr=0}else Jt(er,6,"Frame setup failed"),rr=er.a;if(rr=0==rr){if(rr){er.$c=0,0<er.Aa||(er.Ic=Ha);e:{rr=er.Ic,nr=4*(lr=er.za);var cr=32*lr,ur=lr+1,dr=0<er.L?lr*(0<er.Aa?2:1):0,hr=(2==er.Aa?2:1)*lr;if((or=nr+832+(ar=3*(16*rr+Da[er.L])/2*cr)+(ir=null!=er.Fa&&0<er.Fa.length?er.Kc.c*er.Kc.i:0))!=or)rr=0;else{if(or>er.Vb){if(er.Vb=0,er.Ec=a(or),er.Fc=0,null==er.Ec){rr=Jt(er,1,"no memory during frame initialization.");break e}er.Vb=or}or=er.Ec,sr=er.Fc,er.Ac=or,er.Bc=sr,sr+=nr,er.Gd=o(cr,Ht),er.Hd=0,er.rb=o(ur+1,Tt),er.sb=1,er.wa=dr?o(dr,Rt):null,er.Y=0,er.D.Nb=0,er.D.wa=er.wa,er.D.Y=er.Y,0<er.Aa&&(er.D.Y+=lr),e(!0),er.oc=or,er.pc=sr,sr+=832,er.ya=o(hr,Ut),er.aa=0,er.D.ya=er.ya,er.D.aa=er.aa,2==er.Aa&&(er.D.aa+=lr),er.R=16*lr,er.B=8*lr,lr=(cr=Da[er.L])*er.R,cr=cr/2*er.B,er.sa=or,er.ta=sr+lr,er.qa=er.sa,er.ra=er.ta+16*rr*er.R+cr,er.Ha=er.qa,er.Ia=er.ra+8*rr*er.B+cr,er.$c=0,sr+=ar,er.mb=ir?or:null,er.nb=ir?sr:null,e(sr+ir<=er.Fc+er.Vb),$t(er),i(er.Ac,er.Bc,0,nr),rr=1}}if(rr){if(tr.ka=0,tr.y=er.sa,tr.O=er.ta,tr.f=er.qa,tr.N=er.ra,tr.ea=er.Ha,tr.Vd=er.Ia,tr.fa=er.R,tr.Rc=er.B,tr.F=null,tr.J=0,!qr){for(rr=-255;255>=rr;++rr)Gr[255+rr]=0>rr?-rr:rr;for(rr=-1020;1020>=rr;++rr)Vr[1020+rr]=-128>rr?-128:127<rr?127:rr;for(rr=-112;112>=rr;++rr)zr[112+rr]=-16>rr?-16:15<rr?15:rr;for(rr=-255;510>=rr;++rr)Kr[255+rr]=0>rr?0:255<rr?255:rr;qr=1}br=ce,wr=ae,xr=oe,Sr=se,Cr=ue,kr=ie,Br=Je,Er=Xe,Nr=$e,Lr=Qe,Pr=Ke,Tr=Ze,Fr=tn,Ur=en,Ir=ze,Rr=He,Mr=We,Qr=Ve,pa[0]=Ae,pa[1]=le,pa[2]=Le,pa[3]=xe,pa[4]=_e,pa[5]=Pe,pa[6]=Se,pa[7]=ke,pa[8]=Ie,pa[9]=Fe,ha[0]=ve,ha[1]=de,ha[2]=pe,ha[3]=ge,ha[4]=be,ha[5]=ye,ha[6]=we,Aa[0]=Oe,Aa[1]=fe,Aa[2]=Ce,Aa[3]=je,Aa[4]=Ee,Aa[5]=Me,Aa[6]=qe,rr=1}else rr=0}rr&&(rr=function(er,tr){for(er.M=0;er.M<er.Va;++er.M){var rr,nr=er.Jc[er.M&er.Xb],ar=er.m,ir=er;for(rr=0;rr<ir.za;++rr){var or=ar,sr=ir,lr=sr.Ac,cr=sr.Bc+4*rr,ur=sr.zc,dr=sr.ya[sr.aa+rr];if(sr.Qa.Bb?dr.$b=k(or,sr.Pa.jb[0])?2+k(or,sr.Pa.jb[2]):k(or,sr.Pa.jb[1]):dr.$b=0,sr.kc&&(dr.Ad=k(or,sr.Bd)),dr.Za=!k(or,145)+0,dr.Za){var hr=dr.Ob,pr=0;for(sr=0;4>sr;++sr){var Ar,fr=ur[0+sr];for(Ar=0;4>Ar;++Ar){fr=ca[lr[cr+Ar]][fr];for(var gr=sa[k(or,fr[0])];0<gr;)gr=sa[2*gr+k(or,fr[gr])];fr=-gr,lr[cr+Ar]=fr}r(hr,pr,lr,cr,4),pr+=4,ur[0+sr]=fr}}else fr=k(or,156)?k(or,128)?1:3:k(or,163)?2:0,dr.Ob[0]=fr,i(lr,cr,fr,4),i(ur,0,fr,4);dr.Dd=k(or,142)?k(or,114)?k(or,183)?1:3:2:0}if(ir.m.Ka)return Jt(er,7,"Premature end-of-partition0 encountered.");for(;er.ja<er.za;++er.ja){if(ir=nr,or=(ar=er).rb[ar.sb-1],lr=ar.rb[ar.sb+ar.ja],rr=ar.ya[ar.aa+ar.ja],cr=ar.kc?rr.Ad:0)or.la=lr.la=0,rr.Za||(or.Na=lr.Na=0),rr.Hc=0,rr.Gc=0,rr.ia=0;else{var mr,_r;if(or=lr,lr=ir,cr=ar.Pa.Xc,ur=ar.ya[ar.aa+ar.ja],dr=ar.pb[ur.$b],sr=ur.ad,hr=0,pr=ar.rb[ar.sb-1],fr=Ar=0,i(sr,hr,0,384),ur.Za)var vr=0,yr=cr[3];else{gr=a(16);var wr=or.Na+pr.Na;if(wr=aa(lr,cr[1],wr,dr.Eb,0,gr,0),or.Na=pr.Na=(0<wr)+0,1<wr)br(gr,0,sr,hr);else{var kr=gr[0]+3>>3;for(gr=0;256>gr;gr+=16)sr[hr+gr]=kr}vr=1,yr=cr[0]}var xr=15&or.la,Sr=15&pr.la;for(gr=0;4>gr;++gr){var Cr=1&Sr;for(kr=_r=0;4>kr;++kr)xr=xr>>1|(Cr=(wr=aa(lr,yr,wr=Cr+(1&xr),dr.Sc,vr,sr,hr))>vr)<<7,_r=_r<<2|(3<wr?3:1<wr?2:0!=sr[hr+0]),hr+=16;xr>>=4,Sr=Sr>>1|Cr<<7,Ar=(Ar<<8|_r)>>>0}for(yr=xr,vr=Sr>>4,mr=0;4>mr;mr+=2){for(_r=0,xr=or.la>>4+mr,Sr=pr.la>>4+mr,gr=0;2>gr;++gr){for(Cr=1&Sr,kr=0;2>kr;++kr)wr=Cr+(1&xr),xr=xr>>1|(Cr=0<(wr=aa(lr,cr[2],wr,dr.Qc,0,sr,hr)))<<3,_r=_r<<2|(3<wr?3:1<wr?2:0!=sr[hr+0]),hr+=16;xr>>=2,Sr=Sr>>1|Cr<<5}fr|=_r<<4*mr,yr|=xr<<4<<mr,vr|=(240&Sr)<<mr}or.la=yr,pr.la=vr,ur.Hc=Ar,ur.Gc=fr,ur.ia=43690&fr?0:dr.ia,cr=!(Ar|fr)}if(0<ar.L&&(ar.wa[ar.Y+ar.ja]=ar.gd[rr.$b][rr.Za],ar.wa[ar.Y+ar.ja].La|=!cr),ir.Ka)return Jt(er,7,"Premature end-of-file encountered.")}if($t(er),ar=tr,ir=1,rr=(nr=er).D,or=0<nr.L&&nr.M>=nr.zb&&nr.M<=nr.Va,0==nr.Aa)e:{if(rr.M=nr.M,rr.uc=or,On(nr,rr),ir=1,rr=(_r=nr.D).Nb,or=(fr=Da[nr.L])*nr.R,lr=fr/2*nr.B,gr=16*rr*nr.R,kr=8*rr*nr.B,cr=nr.sa,ur=nr.ta-or+gr,dr=nr.qa,sr=nr.ra-lr+kr,hr=nr.Ha,pr=nr.Ia-lr+kr,Sr=0==(xr=_r.M),Ar=xr>=nr.Va-1,2==nr.Aa&&On(nr,_r),_r.uc)for(Cr=(wr=nr).D.M,e(wr.D.uc),_r=wr.yb;_r<wr.Hb;++_r){vr=_r,yr=Cr;var Or=(Dr=(Xr=wr).D).Nb;mr=Xr.R;var Dr=Dr.wa[Dr.Y+vr],jr=Xr.sa,Hr=Xr.ta+16*Or*mr+16*vr,Gr=Dr.dd,Vr=Dr.tc;if(0!=Vr)if(e(3<=Vr),1==Xr.L)0<vr&&Rr(jr,Hr,mr,Vr+4),Dr.La&&Qr(jr,Hr,mr,Vr),0<yr&&Ir(jr,Hr,mr,Vr+4),Dr.La&&Mr(jr,Hr,mr,Vr);else{var zr=Xr.B,Kr=Xr.qa,qr=Xr.ra+8*Or*zr+8*vr,Wr=Xr.Ha,Xr=Xr.Ia+8*Or*zr+8*vr;Or=Dr.ld,0<vr&&(Er(jr,Hr,mr,Vr+4,Gr,Or),Lr(Kr,qr,Wr,Xr,zr,Vr+4,Gr,Or)),Dr.La&&(Tr(jr,Hr,mr,Vr,Gr,Or),Ur(Kr,qr,Wr,Xr,zr,Vr,Gr,Or)),0<yr&&(Br(jr,Hr,mr,Vr+4,Gr,Or),Nr(Kr,qr,Wr,Xr,zr,Vr+4,Gr,Or)),Dr.La&&(Pr(jr,Hr,mr,Vr,Gr,Or),Fr(Kr,qr,Wr,Xr,zr,Vr,Gr,Or))}}if(nr.ia&&alert("todo:DitherRow"),null!=ar.put){if(_r=16*xr,xr=16*(xr+1),Sr?(ar.y=nr.sa,ar.O=nr.ta+gr,ar.f=nr.qa,ar.N=nr.ra+kr,ar.ea=nr.Ha,ar.W=nr.Ia+kr):(_r-=fr,ar.y=cr,ar.O=ur,ar.f=dr,ar.N=sr,ar.ea=hr,ar.W=pr),Ar||(xr-=fr),xr>ar.o&&(xr=ar.o),ar.F=null,ar.J=null,null!=nr.Fa&&0<nr.Fa.length&&_r<xr&&(ar.J=fn(nr,ar,_r,xr-_r),ar.F=nr.mb,null==ar.F&&0==ar.F.length)){ir=Jt(nr,3,"Could not decode alpha data.");break e}_r<ar.j&&(fr=ar.j-_r,_r=ar.j,e(!(1&fr)),ar.O+=nr.R*fr,ar.N+=nr.B*(fr>>1),ar.W+=nr.B*(fr>>1),null!=ar.F&&(ar.J+=ar.width*fr)),_r<xr&&(ar.O+=ar.v,ar.N+=ar.v>>1,ar.W+=ar.v>>1,null!=ar.F&&(ar.J+=ar.v),ar.ka=_r-ar.j,ar.U=ar.va-ar.v,ar.T=xr-_r,ir=ar.put(ar))}rr+1!=nr.Ic||Ar||(r(nr.sa,nr.ta-or,cr,ur+16*nr.R,or),r(nr.qa,nr.ra-lr,dr,sr+8*nr.B,lr),r(nr.Ha,nr.Ia-lr,hr,pr+8*nr.B,lr))}if(!ir)return Jt(er,6,"Output aborted.")}return 1}(er,tr)),null!=tr.bc&&tr.bc(tr),rr&=1}return rr?(er.cb=0,rr):0}function te(er,tr,rr,nr,ar){ar=er[tr+rr+32*nr]+(ar>>3),er[tr+rr+32*nr]=-256&ar?0>ar?0:255:ar}function ee(er,tr,rr,nr,ar,ir){te(er,tr,0,rr,nr+ar),te(er,tr,1,rr,nr+ir),te(er,tr,2,rr,nr-ir),te(er,tr,3,rr,nr-ar)}function ne(er){return(20091*er>>16)+er}function re(er,tr,rr,nr){var ar,ir=0,or=a(16);for(ar=0;4>ar;++ar){var sr=er[tr+0]+er[tr+8],lr=er[tr+0]-er[tr+8],cr=(35468*er[tr+4]>>16)-ne(er[tr+12]),ur=ne(er[tr+4])+(35468*er[tr+12]>>16);or[ir+0]=sr+ur,or[ir+1]=lr+cr,or[ir+2]=lr-cr,or[ir+3]=sr-ur,ir+=4,tr++}for(ar=ir=0;4>ar;++ar)sr=(er=or[ir+0]+4)+or[ir+8],lr=er-or[ir+8],cr=(35468*or[ir+4]>>16)-ne(or[ir+12]),te(rr,nr,0,0,sr+(ur=ne(or[ir+4])+(35468*or[ir+12]>>16))),te(rr,nr,1,0,lr+cr),te(rr,nr,2,0,lr-cr),te(rr,nr,3,0,sr-ur),ir++,nr+=32}function ie(er,tr,rr,nr){var ar=er[tr+0]+4,ir=35468*er[tr+4]>>16,or=ne(er[tr+4]),sr=35468*er[tr+1]>>16;ee(rr,nr,0,ar+or,er=ne(er[tr+1]),sr),ee(rr,nr,1,ar+ir,er,sr),ee(rr,nr,2,ar-ir,er,sr),ee(rr,nr,3,ar-or,er,sr)}function ae(er,tr,rr,nr,ar){re(er,tr,rr,nr),ar&&re(er,tr+16,rr,nr+4)}function oe(er,tr,rr,nr){wr(er,tr+0,rr,nr,1),wr(er,tr+32,rr,nr+128,1)}function se(er,tr,rr,nr){var ar;for(er=er[tr+0]+4,ar=0;4>ar;++ar)for(tr=0;4>tr;++tr)te(rr,nr,tr,ar,er)}function ue(er,tr,rr,nr){er[tr+0]&&Sr(er,tr+0,rr,nr),er[tr+16]&&Sr(er,tr+16,rr,nr+4),er[tr+32]&&Sr(er,tr+32,rr,nr+128),er[tr+48]&&Sr(er,tr+48,rr,nr+128+4)}function ce(er,tr,rr,nr){var ar,ir=a(16);for(ar=0;4>ar;++ar){var or=er[tr+0+ar]+er[tr+12+ar],sr=er[tr+4+ar]+er[tr+8+ar],lr=er[tr+4+ar]-er[tr+8+ar],cr=er[tr+0+ar]-er[tr+12+ar];ir[0+ar]=or+sr,ir[8+ar]=or-sr,ir[4+ar]=cr+lr,ir[12+ar]=cr-lr}for(ar=0;4>ar;++ar)or=(er=ir[0+4*ar]+3)+ir[3+4*ar],sr=ir[1+4*ar]+ir[2+4*ar],lr=ir[1+4*ar]-ir[2+4*ar],cr=er-ir[3+4*ar],rr[nr+0]=or+sr>>3,rr[nr+16]=cr+lr>>3,rr[nr+32]=or-sr>>3,rr[nr+48]=cr-lr>>3,nr+=64}function he(er,tr,rr){var nr,ar=tr-32,ir=Yr,or=255-er[ar-1];for(nr=0;nr<rr;++nr){var sr,lr=ir,cr=or+er[tr-1];for(sr=0;sr<rr;++sr)er[tr+sr]=lr[cr+er[ar+sr]];tr+=32}}function le(er,tr){he(er,tr,4)}function fe(er,tr){he(er,tr,8)}function de(er,tr){he(er,tr,16)}function pe(er,tr){var rr;for(rr=0;16>rr;++rr)r(er,tr+32*rr,er,tr-32,16)}function ge(er,tr){var rr;for(rr=16;0<rr;--rr)i(er,tr,er[tr-1],16),tr+=32}function me(er,tr,rr){var nr;for(nr=0;16>nr;++nr)i(tr,rr+32*nr,er,16)}function ve(er,tr){var rr,nr=16;for(rr=0;16>rr;++rr)nr+=er[tr-1+32*rr]+er[tr+rr-32];me(nr>>5,er,tr)}function be(er,tr){var rr,nr=8;for(rr=0;16>rr;++rr)nr+=er[tr-1+32*rr];me(nr>>4,er,tr)}function ye(er,tr){var rr,nr=8;for(rr=0;16>rr;++rr)nr+=er[tr+rr-32];me(nr>>4,er,tr)}function we(er,tr){me(128,er,tr)}function Ne(er,tr,rr){return er+2*tr+rr+2>>2}function Le(er,tr){var rr,nr=tr-32;for(nr=new Uint8Array([Ne(er[nr-1],er[nr+0],er[nr+1]),Ne(er[nr+0],er[nr+1],er[nr+2]),Ne(er[nr+1],er[nr+2],er[nr+3]),Ne(er[nr+2],er[nr+3],er[nr+4])]),rr=0;4>rr;++rr)r(er,tr+32*rr,nr,0,nr.length)}function xe(er,tr){var rr=er[tr-1],nr=er[tr-1+32],ar=er[tr-1+64],ir=er[tr-1+96];F(er,tr+0,16843009*Ne(er[tr-1-32],rr,nr)),F(er,tr+32,16843009*Ne(rr,nr,ar)),F(er,tr+64,16843009*Ne(nr,ar,ir)),F(er,tr+96,16843009*Ne(ar,ir,ir))}function Ae(er,tr){var rr,nr=4;for(rr=0;4>rr;++rr)nr+=er[tr+rr-32]+er[tr-1+32*rr];for(nr>>=3,rr=0;4>rr;++rr)i(er,tr+32*rr,nr,4)}function _e(er,tr){var rr=er[tr-1+0],nr=er[tr-1+32],ar=er[tr-1+64],ir=er[tr-1-32],or=er[tr+0-32],sr=er[tr+1-32],lr=er[tr+2-32],cr=er[tr+3-32];er[tr+0+96]=Ne(nr,ar,er[tr-1+96]),er[tr+1+96]=er[tr+0+64]=Ne(rr,nr,ar),er[tr+2+96]=er[tr+1+64]=er[tr+0+32]=Ne(ir,rr,nr),er[tr+3+96]=er[tr+2+64]=er[tr+1+32]=er[tr+0+0]=Ne(or,ir,rr),er[tr+3+64]=er[tr+2+32]=er[tr+1+0]=Ne(sr,or,ir),er[tr+3+32]=er[tr+2+0]=Ne(lr,sr,or),er[tr+3+0]=Ne(cr,lr,sr)}function Se(er,tr){var rr=er[tr+1-32],nr=er[tr+2-32],ar=er[tr+3-32],ir=er[tr+4-32],or=er[tr+5-32],sr=er[tr+6-32],lr=er[tr+7-32];er[tr+0+0]=Ne(er[tr+0-32],rr,nr),er[tr+1+0]=er[tr+0+32]=Ne(rr,nr,ar),er[tr+2+0]=er[tr+1+32]=er[tr+0+64]=Ne(nr,ar,ir),er[tr+3+0]=er[tr+2+32]=er[tr+1+64]=er[tr+0+96]=Ne(ar,ir,or),er[tr+3+32]=er[tr+2+64]=er[tr+1+96]=Ne(ir,or,sr),er[tr+3+64]=er[tr+2+96]=Ne(or,sr,lr),er[tr+3+96]=Ne(sr,lr,lr)}function Pe(er,tr){var rr=er[tr-1+0],nr=er[tr-1+32],ar=er[tr-1+64],ir=er[tr-1-32],or=er[tr+0-32],sr=er[tr+1-32],lr=er[tr+2-32],cr=er[tr+3-32];er[tr+0+0]=er[tr+1+64]=ir+or+1>>1,er[tr+1+0]=er[tr+2+64]=or+sr+1>>1,er[tr+2+0]=er[tr+3+64]=sr+lr+1>>1,er[tr+3+0]=lr+cr+1>>1,er[tr+0+96]=Ne(ar,nr,rr),er[tr+0+64]=Ne(nr,rr,ir),er[tr+0+32]=er[tr+1+96]=Ne(rr,ir,or),er[tr+1+32]=er[tr+2+96]=Ne(ir,or,sr),er[tr+2+32]=er[tr+3+96]=Ne(or,sr,lr),er[tr+3+32]=Ne(sr,lr,cr)}function ke(er,tr){var rr=er[tr+0-32],nr=er[tr+1-32],ar=er[tr+2-32],ir=er[tr+3-32],or=er[tr+4-32],sr=er[tr+5-32],lr=er[tr+6-32],cr=er[tr+7-32];er[tr+0+0]=rr+nr+1>>1,er[tr+1+0]=er[tr+0+64]=nr+ar+1>>1,er[tr+2+0]=er[tr+1+64]=ar+ir+1>>1,er[tr+3+0]=er[tr+2+64]=ir+or+1>>1,er[tr+0+32]=Ne(rr,nr,ar),er[tr+1+32]=er[tr+0+96]=Ne(nr,ar,ir),er[tr+2+32]=er[tr+1+96]=Ne(ar,ir,or),er[tr+3+32]=er[tr+2+96]=Ne(ir,or,sr),er[tr+3+64]=Ne(or,sr,lr),er[tr+3+96]=Ne(sr,lr,cr)}function Fe(er,tr){var rr=er[tr-1+0],nr=er[tr-1+32],ar=er[tr-1+64],ir=er[tr-1+96];er[tr+0+0]=rr+nr+1>>1,er[tr+2+0]=er[tr+0+32]=nr+ar+1>>1,er[tr+2+32]=er[tr+0+64]=ar+ir+1>>1,er[tr+1+0]=Ne(rr,nr,ar),er[tr+3+0]=er[tr+1+32]=Ne(nr,ar,ir),er[tr+3+32]=er[tr+1+64]=Ne(ar,ir,ir),er[tr+3+64]=er[tr+2+64]=er[tr+0+96]=er[tr+1+96]=er[tr+2+96]=er[tr+3+96]=ir}function Ie(er,tr){var rr=er[tr-1+0],nr=er[tr-1+32],ar=er[tr-1+64],ir=er[tr-1+96],or=er[tr-1-32],sr=er[tr+0-32],lr=er[tr+1-32],cr=er[tr+2-32];er[tr+0+0]=er[tr+2+32]=rr+or+1>>1,er[tr+0+32]=er[tr+2+64]=nr+rr+1>>1,er[tr+0+64]=er[tr+2+96]=ar+nr+1>>1,er[tr+0+96]=ir+ar+1>>1,er[tr+3+0]=Ne(sr,lr,cr),er[tr+2+0]=Ne(or,sr,lr),er[tr+1+0]=er[tr+3+32]=Ne(rr,or,sr),er[tr+1+32]=er[tr+3+64]=Ne(nr,rr,or),er[tr+1+64]=er[tr+3+96]=Ne(ar,nr,rr),er[tr+1+96]=Ne(ir,ar,nr)}function Ce(er,tr){var rr;for(rr=0;8>rr;++rr)r(er,tr+32*rr,er,tr-32,8)}function je(er,tr){var rr;for(rr=0;8>rr;++rr)i(er,tr,er[tr-1],8),tr+=32}function Be(er,tr,rr){var nr;for(nr=0;8>nr;++nr)i(tr,rr+32*nr,er,8)}function Oe(er,tr){var rr,nr=8;for(rr=0;8>rr;++rr)nr+=er[tr+rr-32]+er[tr-1+32*rr];Be(nr>>4,er,tr)}function Me(er,tr){var rr,nr=4;for(rr=0;8>rr;++rr)nr+=er[tr+rr-32];Be(nr>>3,er,tr)}function Ee(er,tr){var rr,nr=4;for(rr=0;8>rr;++rr)nr+=er[tr-1+32*rr];Be(nr>>3,er,tr)}function qe(er,tr){Be(128,er,tr)}function Re(er,tr,rr){var nr=er[tr-rr],ar=er[tr+0],ir=3*(ar-nr)+Wr[1020+er[tr-2*rr]-er[tr+rr]],or=Xr[112+(ir+4>>3)];er[tr-rr]=Yr[255+nr+Xr[112+(ir+3>>3)]],er[tr+0]=Yr[255+ar-or]}function Te(er,tr,rr,nr){var ar=er[tr+0],ir=er[tr+rr];return Jr[255+er[tr-2*rr]-er[tr-rr]]>nr||Jr[255+ir-ar]>nr}function De(er,tr,rr,nr){return 4*Jr[255+er[tr-rr]-er[tr+0]]+Jr[255+er[tr-2*rr]-er[tr+rr]]<=nr}function Ue(er,tr,rr,nr,ar){var ir=er[tr-3*rr],or=er[tr-2*rr],sr=er[tr-rr],lr=er[tr+0],cr=er[tr+rr],ur=er[tr+2*rr],dr=er[tr+3*rr];return 4*Jr[255+sr-lr]+Jr[255+or-cr]>nr?0:Jr[255+er[tr-4*rr]-ir]<=ar&&Jr[255+ir-or]<=ar&&Jr[255+or-sr]<=ar&&Jr[255+dr-ur]<=ar&&Jr[255+ur-cr]<=ar&&Jr[255+cr-lr]<=ar}function ze(er,tr,rr,nr){var ar=2*nr+1;for(nr=0;16>nr;++nr)De(er,tr+nr,rr,ar)&&Re(er,tr+nr,rr)}function He(er,tr,rr,nr){var ar=2*nr+1;for(nr=0;16>nr;++nr)De(er,tr+nr*rr,1,ar)&&Re(er,tr+nr*rr,1)}function We(er,tr,rr,nr){var ar;for(ar=3;0<ar;--ar)ze(er,tr+=4*rr,rr,nr)}function Ve(er,tr,rr,nr){var ar;for(ar=3;0<ar;--ar)He(er,tr+=4,rr,nr)}function Ge(er,tr,rr,nr,ar,ir,or,sr){for(ir=2*ir+1;0<ar--;){if(Ue(er,tr,rr,ir,or))if(Te(er,tr,rr,sr))Re(er,tr,rr);else{var lr=er,cr=tr,ur=rr,dr=lr[cr-2*ur],hr=lr[cr-ur],pr=lr[cr+0],Ar=lr[cr+ur],fr=lr[cr+2*ur],gr=27*(_r=Wr[1020+3*(pr-hr)+Wr[1020+dr-Ar]])+63>>7,mr=18*_r+63>>7,_r=9*_r+63>>7;lr[cr-3*ur]=Yr[255+lr[cr-3*ur]+_r],lr[cr-2*ur]=Yr[255+dr+mr],lr[cr-ur]=Yr[255+hr+gr],lr[cr+0]=Yr[255+pr-gr],lr[cr+ur]=Yr[255+Ar-mr],lr[cr+2*ur]=Yr[255+fr-_r]}tr+=nr}}function Ye(er,tr,rr,nr,ar,ir,or,sr){for(ir=2*ir+1;0<ar--;){if(Ue(er,tr,rr,ir,or))if(Te(er,tr,rr,sr))Re(er,tr,rr);else{var lr=er,cr=tr,ur=rr,dr=lr[cr-ur],hr=lr[cr+0],pr=lr[cr+ur],Ar=Xr[112+(4+(fr=3*(hr-dr))>>3)],fr=Xr[112+(fr+3>>3)],gr=Ar+1>>1;lr[cr-2*ur]=Yr[255+lr[cr-2*ur]+gr],lr[cr-ur]=Yr[255+dr+fr],lr[cr+0]=Yr[255+hr-Ar],lr[cr+ur]=Yr[255+pr-gr]}tr+=nr}}function Je(er,tr,rr,nr,ar,ir){Ge(er,tr,rr,1,16,nr,ar,ir)}function Xe(er,tr,rr,nr,ar,ir){Ge(er,tr,1,rr,16,nr,ar,ir)}function Ke(er,tr,rr,nr,ar,ir){var or;for(or=3;0<or;--or)Ye(er,tr+=4*rr,rr,1,16,nr,ar,ir)}function Ze(er,tr,rr,nr,ar,ir){var or;for(or=3;0<or;--or)Ye(er,tr+=4,1,rr,16,nr,ar,ir)}function $e(er,tr,rr,nr,ar,ir,or,sr){Ge(er,tr,ar,1,8,ir,or,sr),Ge(rr,nr,ar,1,8,ir,or,sr)}function Qe(er,tr,rr,nr,ar,ir,or,sr){Ge(er,tr,1,ar,8,ir,or,sr),Ge(rr,nr,1,ar,8,ir,or,sr)}function tn(er,tr,rr,nr,ar,ir,or,sr){Ye(er,tr+4*ar,ar,1,8,ir,or,sr),Ye(rr,nr+4*ar,ar,1,8,ir,or,sr)}function en(er,tr,rr,nr,ar,ir,or,sr){Ye(er,tr+4,1,ar,8,ir,or,sr),Ye(rr,nr+4,1,ar,8,ir,or,sr)}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(er,tr,rr,nr,ar,ir,or){for(er=null==er?0:er[tr+0],tr=0;tr<or;++tr)ar[ir+tr]=er+rr[nr+tr]&255,er=ar[ir+tr]}function hn(er,tr,rr,nr,ar,ir,or){var sr;if(null==er)cn(null,null,rr,nr,ar,ir,or);else for(sr=0;sr<or;++sr)ar[ir+sr]=er[tr+sr]+rr[nr+sr]&255}function ln(er,tr,rr,nr,ar,ir,or){if(null==er)cn(null,null,rr,nr,ar,ir,or);else{var sr,lr=er[tr+0],cr=lr,ur=lr;for(sr=0;sr<or;++sr)cr=ur+(lr=er[tr+sr])-cr,ur=rr[nr+sr]+(-256&cr?0>cr?0:255:cr)&255,cr=lr,ar[ir+sr]=ur}}function fn(er,tr,rr,nr){var ar=tr.width,ir=tr.o;if(e(null!=er&&null!=tr),0>rr||0>=nr||rr+nr>ir)return null;if(!er.Cc){if(null==er.ga){var or;if(er.ga=new un,(or=null==er.ga)||(or=tr.width*tr.o,e(0==er.Gb.length),er.Gb=a(or),er.Uc=0,null==er.Gb?or=0:(er.mb=er.Gb,er.nb=er.Uc,er.rc=null,or=1),or=!or),!or){or=er.ga;var sr=er.Fa,lr=er.P,cr=er.qc,ur=er.mb,dr=er.nb,hr=lr+1,pr=cr-1,Ar=or.l;if(e(null!=sr&&null!=ur&&null!=tr),ma[0]=null,ma[1]=cn,ma[2]=hn,ma[3]=ln,or.ca=ur,or.tb=dr,or.c=tr.width,or.i=tr.height,e(0<or.c&&0<or.i),1>=cr)tr=0;else if(or.$a=sr[lr+0]>>0&3,or.Z=sr[lr+0]>>2&3,or.Lc=sr[lr+0]>>4&3,lr=sr[lr+0]>>6&3,0>or.$a||1<or.$a||4<=or.Z||1<or.Lc||lr)tr=0;else if(Ar.put=dt,Ar.ac=ft,Ar.bc=pt,Ar.ma=or,Ar.width=tr.width,Ar.height=tr.height,Ar.Da=tr.Da,Ar.v=tr.v,Ar.va=tr.va,Ar.j=tr.j,Ar.o=tr.o,or.$a)e:{e(1==or.$a),tr=kt();t:for(;;){if(null==tr){tr=0;break e}if(e(null!=or),or.mc=tr,tr.c=or.c,tr.i=or.i,tr.l=or.l,tr.l.ma=or,tr.l.width=or.c,tr.l.height=or.i,tr.a=0,v(tr.m,sr,hr,pr),!Ft(or.c,or.i,1,tr,null))break t;if(1==tr.ab&&3==tr.gc[0].hc&&xt(tr.s)?(or.ic=1,sr=tr.c*tr.i,tr.Ta=null,tr.Ua=0,tr.V=a(sr),tr.Ba=0,null==tr.V?(tr.a=1,tr=0):tr=1):(or.ic=0,tr=It(tr,or.c)),!tr)break t;tr=1;break e}or.mc=null,tr=0}else tr=pr>=or.c*or.i;or=!tr}if(or)return null;1!=er.ga.Lc?er.Ga=0:nr=ir-rr}e(null!=er.ga),e(rr+nr<=ir);e:{if(tr=(sr=er.ga).c,ir=sr.l.o,0==sr.$a){if(hr=er.rc,pr=er.Vc,Ar=er.Fa,lr=er.P+1+rr*tr,cr=er.mb,ur=er.nb+rr*tr,e(lr<=er.P+er.qc),0!=sr.Z)for(e(null!=ma[sr.Z]),or=0;or<nr;++or)ma[sr.Z](hr,pr,Ar,lr,cr,ur,tr),hr=cr,pr=ur,ur+=tr,lr+=tr;else for(or=0;or<nr;++or)r(cr,ur,Ar,lr,tr),hr=cr,pr=ur,ur+=tr,lr+=tr;er.rc=hr,er.Vc=pr}else{if(e(null!=sr.mc),tr=rr+nr,e(null!=(or=sr.mc)),e(tr<=or.i),or.C>=tr)tr=1;else if(sr.ic||vn(),sr.ic){sr=or.V,hr=or.Ba,pr=or.c;var fr=or.i,gr=(Ar=1,lr=or.$/pr,cr=or.$%pr,ur=or.m,dr=or.s,or.$),mr=pr*fr,_r=pr*tr,vr=dr.wc,yr=gr<_r?wt(dr,cr,lr):null;e(gr<=mr),e(tr<=fr),e(xt(dr));t:for(;;){for(;!ur.h&&gr<_r;){if(cr&vr||(yr=wt(dr,cr,lr)),e(null!=yr),_(ur),256>(fr=bt(yr.G[0],yr.H[0],ur)))sr[hr+gr]=fr,++gr,++cr>=pr&&(cr=0,++lr<=tr&&!(lr%16)&&_t(or,lr));else{if(!(280>fr)){Ar=0;break t}fr=mt(fr-256,ur);var br,wr=bt(yr.G[4],yr.H[4],ur);if(_(ur),!(gr>=(wr=vt(pr,wr=mt(wr,ur)))&&mr-gr>=fr)){Ar=0;break t}for(br=0;br<fr;++br)sr[hr+gr+br]=sr[hr+gr+br-wr];for(gr+=fr,cr+=fr;cr>=pr;)cr-=pr,++lr<=tr&&!(lr%16)&&_t(or,lr);gr<_r&&cr&vr&&(yr=wt(dr,cr,lr))}e(ur.h==x(ur))}_t(or,lr>tr?tr:lr);break t}!Ar||ur.h&&gr<mr?(Ar=0,or.a=ur.h?5:3):or.$=gr,tr=Ar}else tr=St(or,or.V,or.Ba,or.c,or.i,tr,Ct);if(!tr){nr=0;break e}}rr+nr>=ir&&(er.Cc=1),nr=1}if(!nr)return null;if(er.Cc&&(null!=(nr=er.ga)&&(nr.mc=null),er.ga=null,0<er.Ga))return alert("todo:WebPDequantizeLevels"),null}return er.nb+rr*ar}function dn(er,tr,rr,nr,ar,ir){for(;0<ar--;){var or,sr=er,lr=tr+(rr?1:0),cr=er,ur=tr+(rr?0:3);for(or=0;or<nr;++or){var dr=cr[ur+4*or];255!=dr&&(dr*=32897,sr[lr+4*or+0]=sr[lr+4*or+0]*dr>>23,sr[lr+4*or+1]=sr[lr+4*or+1]*dr>>23,sr[lr+4*or+2]=sr[lr+4*or+2]*dr>>23)}tr+=ir}}function pn(er,tr,rr,nr,ar){for(;0<nr--;){var ir;for(ir=0;ir<rr;++ir){var or=er[tr+2*ir+0],sr=15&(cr=er[tr+2*ir+1]),lr=4369*sr,cr=(240&cr|cr>>4)*lr>>16;er[tr+2*ir+0]=(240&or|or>>4)*lr>>16&240|(15&or|or<<4)*lr>>16>>4&15,er[tr+2*ir+1]=240&cr|sr}tr+=ar}}function gn(er,tr,rr,nr,ar,ir,or,sr){var lr,cr,ur=255;for(cr=0;cr<ar;++cr){for(lr=0;lr<nr;++lr){var dr=er[tr+lr];ir[or+4*lr]=dr,ur&=dr}tr+=rr,or+=sr}return 255!=ur}function mn(er,tr,rr,nr,ar){var ir;for(ir=0;ir<ar;++ir)rr[nr+ir]=er[tr+ir]>>8}function vn(){Or=dn,Dr=pn,jr=gn,Hr=mn}function bn(tr,rr,nr){er[tr]=function(er,tr,ar,ir,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r){var vr,yr=_r-1>>1,br=or[sr+0]|lr[cr+0]<<16,wr=ur[dr+0]|hr[pr+0]<<16;e(null!=er);var kr=3*br+wr+131074>>2;for(rr(er[tr+0],255&kr,kr>>16,Ar,fr),null!=ar&&(kr=3*wr+br+131074>>2,rr(ar[ir+0],255&kr,kr>>16,gr,mr)),vr=1;vr<=yr;++vr){var xr=or[sr+vr]|lr[cr+vr]<<16,Sr=ur[dr+vr]|hr[pr+vr]<<16,Cr=br+xr+wr+Sr+524296,Br=Cr+2*(xr+wr)>>3;kr=Br+br>>1,br=(Cr=Cr+2*(br+Sr)>>3)+xr>>1,rr(er[tr+2*vr-1],255&kr,kr>>16,Ar,fr+(2*vr-1)*nr),rr(er[tr+2*vr-0],255&br,br>>16,Ar,fr+(2*vr-0)*nr),null!=ar&&(kr=Cr+wr>>1,br=Br+Sr>>1,rr(ar[ir+2*vr-1],255&kr,kr>>16,gr,mr+(2*vr-1)*nr),rr(ar[ir+2*vr+0],255&br,br>>16,gr,mr+(2*vr+0)*nr)),br=xr,wr=Sr}1&_r||(kr=3*br+wr+131074>>2,rr(er[tr+_r-1],255&kr,kr>>16,Ar,fr+(_r-1)*nr),null!=ar&&(kr=3*wr+br+131074>>2,rr(ar[ir+_r-1],255&kr,kr>>16,gr,mr+(_r-1)*nr)))}}function yn(){_a[$r]=va,_a[Zr]=ba,_a[Tn]=ya,_a[Un]=wa,_a[Qn]=ka,_a[Dn]=xa,_a[Hn]=Sa,_a[Gn]=ba,_a[Vn]=wa,_a[zn]=ka,_a[Kn]=xa}function wn(er){return er&~Pa?0>er?0:255:er>>La}function Nn(er,tr){return wn((19077*er>>8)+(26149*tr>>8)-14234)}function Ln(er,tr,rr){return wn((19077*er>>8)-(6419*tr>>8)-(13320*rr>>8)+8708)}function xn(er,tr){return wn((19077*er>>8)+(33050*tr>>8)-17685)}function An(er,tr,rr,nr,ar){nr[ar+0]=Nn(er,rr),nr[ar+1]=Ln(er,tr,rr),nr[ar+2]=xn(er,tr)}function _n(er,tr,rr,nr,ar){nr[ar+0]=xn(er,tr),nr[ar+1]=Ln(er,tr,rr),nr[ar+2]=Nn(er,rr)}function Sn(er,tr,rr,nr,ar){var ir=Ln(er,tr,rr);tr=ir<<3&224|xn(er,tr)>>3,nr[ar+0]=248&Nn(er,rr)|ir>>5,nr[ar+1]=tr}function Pn(er,tr,rr,nr,ar){var ir=240&xn(er,tr)|15;nr[ar+0]=240&Nn(er,rr)|Ln(er,tr,rr)>>4,nr[ar+1]=ir}function kn(er,tr,rr,nr,ar){nr[ar+0]=255,An(er,tr,rr,nr,ar+1)}function Fn(er,tr,rr,nr,ar){_n(er,tr,rr,nr,ar),nr[ar+3]=255}function In(er,tr,rr,nr,ar){An(er,tr,rr,nr,ar),nr[ar+3]=255}function Vt(er,tr){return 0>er?0:er>tr?tr:er}function Cn(tr,rr,nr){er[tr]=function(er,tr,ar,ir,or,sr,lr,cr,ur){for(var dr=cr+(-2&ur)*nr;cr!=dr;)rr(er[tr+0],ar[ir+0],or[sr+0],lr,cr),rr(er[tr+1],ar[ir+0],or[sr+0],lr,cr+nr),tr+=2,++ir,++sr,cr+=2*nr;1&ur&&rr(er[tr+0],ar[ir+0],or[sr+0],lr,cr)}}function jn(er,tr,rr){return 0==rr?0==er?0==tr?6:5:0==tr?4:0:rr}function Bn(er,tr,rr,nr,ar){switch(er>>>30){case 3:wr(tr,rr,nr,ar,0);break;case 2:kr(tr,rr,nr,ar);break;case 1:Sr(tr,rr,nr,ar)}}function On(er,tr){var rr,nr,ar=tr.M,ir=tr.Nb,or=er.oc,sr=er.pc+40,lr=er.oc,cr=er.pc+584,ur=er.oc,dr=er.pc+600;for(rr=0;16>rr;++rr)or[sr+32*rr-1]=129;for(rr=0;8>rr;++rr)lr[cr+32*rr-1]=129,ur[dr+32*rr-1]=129;for(0<ar?or[sr-1-32]=lr[cr-1-32]=ur[dr-1-32]=129:(i(or,sr-32-1,127,21),i(lr,cr-32-1,127,9),i(ur,dr-32-1,127,9)),nr=0;nr<er.za;++nr){var hr=tr.ya[tr.aa+nr];if(0<nr){for(rr=-1;16>rr;++rr)r(or,sr+32*rr-4,or,sr+32*rr+12,4);for(rr=-1;8>rr;++rr)r(lr,cr+32*rr-4,lr,cr+32*rr+4,4),r(ur,dr+32*rr-4,ur,dr+32*rr+4,4)}var pr=er.Gd,Ar=er.Hd+nr,fr=hr.ad,gr=hr.Hc;if(0<ar&&(r(or,sr-32,pr[Ar].y,0,16),r(lr,cr-32,pr[Ar].f,0,8),r(ur,dr-32,pr[Ar].ea,0,8)),hr.Za){var mr=or,_r=sr-32+16;for(0<ar&&(nr>=er.za-1?i(mr,_r,pr[Ar].y[15],4):r(mr,_r,pr[Ar+1].y,0,4)),rr=0;4>rr;rr++)mr[_r+128+rr]=mr[_r+256+rr]=mr[_r+384+rr]=mr[_r+0+rr];for(rr=0;16>rr;++rr,gr<<=2)mr=or,_r=sr+Oa[rr],pa[hr.Ob[rr]](mr,_r),Bn(gr,fr,16*+rr,mr,_r)}else if(mr=jn(nr,ar,hr.Ob[0]),ha[mr](or,sr),0!=gr)for(rr=0;16>rr;++rr,gr<<=2)Bn(gr,fr,16*+rr,or,sr+Oa[rr]);for(rr=hr.Gc,mr=jn(nr,ar,hr.Dd),Aa[mr](lr,cr),Aa[mr](ur,dr),gr=fr,mr=lr,_r=cr,255&(hr=rr>>0)&&(170&hr?xr(gr,256,mr,_r):Cr(gr,256,mr,_r)),hr=ur,gr=dr,255&(rr>>=8)&&(170&rr?xr(fr,320,hr,gr):Cr(fr,320,hr,gr)),ar<er.Ub-1&&(r(pr[Ar].y,0,or,sr+480,16),r(pr[Ar].f,0,lr,cr+224,8),r(pr[Ar].ea,0,ur,dr+224,8)),rr=8*ir*er.B,pr=er.sa,Ar=er.ta+16*nr+16*ir*er.R,fr=er.qa,hr=er.ra+8*nr+rr,gr=er.Ha,mr=er.Ia+8*nr+rr,rr=0;16>rr;++rr)r(pr,Ar+rr*er.R,or,sr+32*rr,16);for(rr=0;8>rr;++rr)r(fr,hr+rr*er.B,lr,cr+32*rr,8),r(gr,mr+rr*er.B,ur,dr+32*rr,8)}}function Mn(er,tr,rr,nr,ar,ir,or,sr,lr){var cr=[0],ur=[0],dr=0,hr=null!=lr?lr.kd:0,pr=null!=lr?lr:new rn;if(null==er||12>rr)return 7;pr.data=er,pr.w=tr,pr.ha=rr,tr=[tr],rr=[rr],pr.gb=[pr.gb];e:{var Ar=tr,fr=rr,gr=pr.gb;if(e(null!=er),e(null!=fr),e(null!=gr),gr[0]=0,12<=fr[0]&&!n(er,Ar[0],"RIFF")){if(n(er,Ar[0]+8,"WEBP")){gr=3;break e}var mr=j(er,Ar[0]+4);if(12>mr||4294967286<mr){gr=3;break e}if(hr&&mr>fr[0]-8){gr=7;break e}gr[0]=mr,Ar[0]+=12,fr[0]-=12}gr=0}if(0!=gr)return gr;for(mr=0<pr.gb[0],rr=rr[0];;){e:{var _r=er;fr=tr,gr=rr;var vr=cr,yr=ur,br=Ar=[0];if((xr=dr=[dr])[0]=0,8>gr[0])gr=7;else{if(!n(_r,fr[0],"VP8X")){if(10!=j(_r,fr[0]+4)){gr=3;break e}if(18>gr[0]){gr=7;break e}var wr=j(_r,fr[0]+8),kr=1+C(_r,fr[0]+12);if(2147483648<=kr*(_r=1+C(_r,fr[0]+15))){gr=3;break e}null!=br&&(br[0]=wr),null!=vr&&(vr[0]=kr),null!=yr&&(yr[0]=_r),fr[0]+=18,gr[0]-=18,xr[0]=1}gr=0}}if(dr=dr[0],Ar=Ar[0],0!=gr)return gr;if(fr=!!(2&Ar),!mr&&dr)return 3;if(null!=ir&&(ir[0]=!!(16&Ar)),null!=or&&(or[0]=fr),null!=sr&&(sr[0]=0),or=cr[0],Ar=ur[0],dr&&fr&&null==lr){gr=0;break}if(4>rr){gr=7;break}if(mr&&dr||!mr&&!dr&&!n(er,tr[0],"ALPH")){rr=[rr],pr.na=[pr.na],pr.P=[pr.P],pr.Sa=[pr.Sa];e:{wr=er,gr=tr,mr=rr;var xr=pr.gb;vr=pr.na,yr=pr.P,br=pr.Sa,kr=22,e(null!=wr),e(null!=mr),_r=gr[0];var Sr=mr[0];for(e(null!=vr),e(null!=br),vr[0]=null,yr[0]=null,br[0]=0;;){if(gr[0]=_r,mr[0]=Sr,8>Sr){gr=7;break e}var Cr=j(wr,_r+4);if(4294967286<Cr){gr=3;break e}var Br=8+Cr+1&-2;if(kr+=Br,0<xr&&kr>xr){gr=3;break e}if(!n(wr,_r,"VP8 ")||!n(wr,_r,"VP8L")){gr=0;break e}if(Sr[0]<Br){gr=7;break e}n(wr,_r,"ALPH")||(vr[0]=wr,yr[0]=_r+8,br[0]=Cr),_r+=Br,Sr-=Br}}if(rr=rr[0],pr.na=pr.na[0],pr.P=pr.P[0],pr.Sa=pr.Sa[0],0!=gr)break}rr=[rr],pr.Ja=[pr.Ja],pr.xa=[pr.xa];e:if(xr=er,gr=tr,mr=rr,vr=pr.gb[0],yr=pr.Ja,br=pr.xa,wr=gr[0],_r=!n(xr,wr,"VP8 "),kr=!n(xr,wr,"VP8L"),e(null!=xr),e(null!=mr),e(null!=yr),e(null!=br),8>mr[0])gr=7;else{if(_r||kr){if(xr=j(xr,wr+4),12<=vr&&xr>vr-12){gr=3;break e}if(hr&&xr>mr[0]-8){gr=7;break e}yr[0]=xr,gr[0]+=8,mr[0]-=8,br[0]=kr}else br[0]=5<=mr[0]&&47==xr[wr+0]&&!(xr[wr+4]>>5),yr[0]=mr[0];gr=0}if(rr=rr[0],pr.Ja=pr.Ja[0],pr.xa=pr.xa[0],tr=tr[0],0!=gr)break;if(4294967286<pr.Ja)return 3;if(null==sr||fr||(sr[0]=pr.xa?2:1),or=[or],Ar=[Ar],pr.xa){if(5>rr){gr=7;break}sr=or,hr=Ar,fr=ir,null==er||5>rr?er=0:5<=rr&&47==er[tr+0]&&!(er[tr+4]>>5)?(mr=[0],xr=[0],vr=[0],v(yr=new N,er,tr,rr),gt(yr,mr,xr,vr)?(null!=sr&&(sr[0]=mr[0]),null!=hr&&(hr[0]=xr[0]),null!=fr&&(fr[0]=vr[0]),er=1):er=0):er=0}else{if(10>rr){gr=7;break}sr=Ar,null==er||10>rr||!Xt(er,tr+3,rr-3)?er=0:(hr=er[tr+0]|er[tr+1]<<8|er[tr+2]<<16,fr=16383&(er[tr+7]<<8|er[tr+6]),er=16383&(er[tr+9]<<8|er[tr+8]),1&hr||3<(hr>>1&7)||!(hr>>4&1)||hr>>5>=pr.Ja||!fr||!er?er=0:(or&&(or[0]=fr),sr&&(sr[0]=er),er=1))}if(!er)return 3;if(or=or[0],Ar=Ar[0],dr&&(cr[0]!=or||ur[0]!=Ar))return 3;null!=lr&&(lr[0]=pr,lr.offset=tr-lr.w,e(4294967286>tr-lr.w),e(lr.offset==lr.ha-rr));break}return 0==gr||7==gr&&dr&&null==lr?(null!=ir&&(ir[0]|=null!=pr.na&&0<pr.na.length),null!=nr&&(nr[0]=or),null!=ar&&(ar[0]=Ar),0):gr}function En(er,tr,rr){var nr=tr.width,ar=tr.height,ir=0,or=0,sr=nr,lr=ar;if(tr.Da=null!=er&&0<er.Da,tr.Da&&(sr=er.cd,lr=er.bd,ir=er.v,or=er.j,11>rr||(ir&=-2,or&=-2),0>ir||0>or||0>=sr||0>=lr||ir+sr>nr||or+lr>ar))return 0;if(tr.v=ir,tr.j=or,tr.va=ir+sr,tr.o=or+lr,tr.U=sr,tr.T=lr,tr.da=null!=er&&0<er.da,tr.da){if(!E(sr,lr,rr=[er.ib],ir=[er.hb]))return 0;tr.ib=rr[0],tr.hb=ir[0]}return tr.ob=null!=er&&er.ob,tr.Kb=null==er||!er.Sd,tr.da&&(tr.ob=tr.ib<3*nr/4&&tr.hb<3*ar/4,tr.Kb=0),1}function qn(er){if(null==er)return 2;if(11>er.S){var tr=er.f.RGBA;tr.fb+=(er.height-1)*tr.A,tr.A=-tr.A}else tr=er.f.kb,er=er.height,tr.O+=(er-1)*tr.fa,tr.fa=-tr.fa,tr.N+=(er-1>>1)*tr.Ab,tr.Ab=-tr.Ab,tr.W+=(er-1>>1)*tr.Db,tr.Db=-tr.Db,null!=tr.F&&(tr.J+=(er-1)*tr.lb,tr.lb=-tr.lb);return 0}function Rn(er,tr,rr,nr){if(null==nr||0>=er||0>=tr)return 2;if(null!=rr){if(rr.Da){var ar=rr.cd,ir=rr.bd,or=-2&rr.v,sr=-2&rr.j;if(0>or||0>sr||0>=ar||0>=ir||or+ar>er||sr+ir>tr)return 2;er=ar,tr=ir}if(rr.da){if(!E(er,tr,ar=[rr.ib],ir=[rr.hb]))return 2;er=ar[0],tr=ir[0]}}nr.width=er,nr.height=tr;e:{var lr=nr.width,cr=nr.height;if(er=nr.S,0>=lr||0>=cr||!(er>=$r&&13>er))er=2;else{if(0>=nr.Rd&&null==nr.sd){or=ir=ar=tr=0;var ur=(sr=lr*Ga[er])*cr;if(11>er||(ir=(cr+1)/2*(tr=(lr+1)/2),12==er&&(or=(ar=lr)*cr)),null==(cr=a(ur+2*ir+or))){er=1;break e}nr.sd=cr,11>er?((lr=nr.f.RGBA).eb=cr,lr.fb=0,lr.A=sr,lr.size=ur):((lr=nr.f.kb).y=cr,lr.O=0,lr.fa=sr,lr.Fd=ur,lr.f=cr,lr.N=0+ur,lr.Ab=tr,lr.Cd=ir,lr.ea=cr,lr.W=0+ur+ir,lr.Db=tr,lr.Ed=ir,12==er&&(lr.F=cr,lr.J=0+ur+2*ir),lr.Tc=or,lr.lb=ar)}if(tr=1,ar=nr.S,ir=nr.width,or=nr.height,ar>=$r&&13>ar)if(11>ar)er=nr.f.RGBA,tr&=(sr=Math.abs(er.A))*(or-1)+ir<=er.size,tr&=sr>=ir*Ga[ar],tr&=null!=er.eb;else{er=nr.f.kb,sr=(ir+1)/2,ur=(or+1)/2,lr=Math.abs(er.fa),cr=Math.abs(er.Ab);var dr=Math.abs(er.Db),hr=Math.abs(er.lb),pr=hr*(or-1)+ir;tr&=lr*(or-1)+ir<=er.Fd,tr&=cr*(ur-1)+sr<=er.Cd,tr=(tr&=dr*(ur-1)+sr<=er.Ed)&lr>=ir&cr>=sr&dr>=sr,tr&=null!=er.y,tr&=null!=er.f,tr&=null!=er.ea,12==ar&&(tr&=hr>=ir,tr&=pr<=er.Tc,tr&=null!=er.F)}else tr=0;er=tr?0:2}}return 0!=er||null!=rr&&rr.fd&&(er=qn(nr)),er}var tr=64,rr=[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],nr=24,ar=32,ir=8,or=[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"),er.Predictor0=function(){return 4278190080},er.Predictor1=function(er){return er},er.Predictor2=function(er,tr,rr){return tr[rr+0]},er.Predictor3=function(er,tr,rr){return tr[rr+1]},er.Predictor4=function(er,tr,rr){return tr[rr-1]},er.Predictor5=function(er,tr,rr){return U(U(er,tr[rr+1]),tr[rr+0])},er.Predictor6=function(er,tr,rr){return U(er,tr[rr-1])},er.Predictor7=function(er,tr,rr){return U(er,tr[rr+0])},er.Predictor8=function(er,tr,rr){return U(tr[rr-1],tr[rr+0])},er.Predictor9=function(er,tr,rr){return U(tr[rr+0],tr[rr+1])},er.Predictor10=function(er,tr,rr){return U(U(er,tr[rr-1]),U(tr[rr+0],tr[rr+1]))},er.Predictor11=function(er,tr,rr){var nr=tr[rr+0];return 0>=W(nr>>24&255,er>>24&255,(tr=tr[rr-1])>>24&255)+W(nr>>16&255,er>>16&255,tr>>16&255)+W(nr>>8&255,er>>8&255,tr>>8&255)+W(255&nr,255&er,255&tr)?nr:er},er.Predictor12=function(er,tr,rr){var nr=tr[rr+0];return(z((er>>24&255)+(nr>>24&255)-((tr=tr[rr-1])>>24&255))<<24|z((er>>16&255)+(nr>>16&255)-(tr>>16&255))<<16|z((er>>8&255)+(nr>>8&255)-(tr>>8&255))<<8|z((255&er)+(255&nr)-(255&tr)))>>>0},er.Predictor13=function(er,tr,rr){var nr=tr[rr-1];return(H((er=U(er,tr[rr+0]))>>24&255,nr>>24&255)<<24|H(er>>16&255,nr>>16&255)<<16|H(er>>8&255,nr>>8&255)<<8|H(er>>0&255,nr>>0&255))>>>0};var sr=er.PredictorAdd0;er.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 lr=er.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",(function(er){return er>>8&255}),(function(er){return er})),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(er){return er}),(function(er){return er>>8&255}));var cr,ur=er.ColorIndexInverseTransform,dr=er.MapARGB,hr=er.VP8LColorIndexInverseTransformAlpha,pr=er.MapAlpha,Ar=er.VP8LPredictorsAdd=[];Ar.length=16,(er.VP8LPredictors=[]).length=16,(er.VP8LPredictorsAdd_C=[]).length=16,(er.VP8LPredictors_C=[]).length=16;var fr,gr,mr,_r,vr,yr,br,wr,kr,xr,Sr,Cr,Br,Er,Nr,Lr,Pr,Tr,Fr,Ur,Ir,Rr,Mr,Qr,Or,Dr,jr,Hr,Gr=a(511),Vr=a(2041),zr=a(225),Kr=a(767),qr=0,Wr=Vr,Xr=zr,Yr=Kr,Jr=Gr,$r=0,Zr=1,Tn=2,Un=3,Qn=4,Dn=5,Hn=6,Gn=7,Vn=8,zn=9,Kn=10,Wn=[2,3,7],Xn=[3,3,11],Yn=[280,256,256,256,40],Jn=[0,1,1,1,0],$n=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zn=[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],ea=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ta=8,ra=[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],na=[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],aa=null,ia=[[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]],oa=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],sa=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],la=[[[[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]]]],ca=[[[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]]],ua=[[[[255,255,255,255,255,255,255,255,255,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]]]],da=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ha=[],pa=[],Aa=[],fa=1,ga=2,ma=[],_a=[];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 va=er.UpsampleRgbLinePair,ya=er.UpsampleBgrLinePair,ba=er.UpsampleRgbaLinePair,wa=er.UpsampleBgraLinePair,ka=er.UpsampleArgbLinePair,xa=er.UpsampleRgba4444LinePair,Sa=er.UpsampleRgb565LinePair,Ca=16,Ba=1<<Ca-1,Ea=-227,Na=482,La=6,Pa=(256<<La)-1,Ta=0,Fa=a(256),Ua=a(256),Ia=a(256),Ra=a(256),Ma=a(Na-Ea),Qa=a(Na-Ea);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 Oa=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Da=[0,2,8],ja=[8,7,6,4,4,2,2,2,1,1,1,1],Ha=1;this.WebPDecodeRGBA=function(er,tr,rr,nr,ar){var ir=Zr,or=new nn,sr=new ot;or.ba=sr,sr.S=ir,sr.width=[sr.width],sr.height=[sr.height];var lr=sr.width,cr=sr.height,ur=new st;if(null==ur||null==er)var dr=2;else e(null!=ur),dr=Mn(er,tr,rr,ur.width,ur.height,ur.Pd,ur.Qd,ur.format,null);if(0!=dr?lr=0:(null!=lr&&(lr[0]=ur.width[0]),null!=cr&&(cr[0]=ur.height[0]),lr=1),lr){sr.width=sr.width[0],sr.height=sr.height[0],null!=nr&&(nr[0]=sr.width),null!=ar&&(ar[0]=sr.height);e:{if(nr=new Gt,(ar=new rn).data=er,ar.w=tr,ar.ha=rr,ar.kd=1,tr=[0],e(null!=ar),(0==(er=Mn(ar.data,ar.w,ar.ha,null,null,null,tr,null,ar))||7==er)&&tr[0]&&(er=4),0==(tr=er)){if(e(null!=or),nr.data=ar.data,nr.w=ar.w+ar.offset,nr.ha=ar.ha-ar.offset,nr.put=dt,nr.ac=ft,nr.bc=pt,nr.ma=or,ar.xa){if(null==(er=kt())){or=1;break e}if(function(er,tr){var rr=[0],nr=[0],ar=[0];t:for(;;){if(null==er)return 0;if(null==tr)return er.a=2,0;if(er.l=tr,er.a=0,v(er.m,tr.data,tr.w,tr.ha),!gt(er.m,rr,nr,ar)){er.a=3;break t}if(er.xb=ga,tr.width=rr[0],tr.height=nr[0],!Ft(rr[0],nr[0],1,er,null))break t;return 1}return e(0!=er.a),0}(er,nr)){if(nr=0==(tr=Rn(nr.width,nr.height,or.Oa,or.ba))){t:{nr=er;r:for(;;){if(null==nr){nr=0;break t}if(e(null!=nr.s.yc),e(null!=nr.s.Ya),e(0<nr.s.Wb),e(null!=(rr=nr.l)),e(null!=(ar=rr.ma)),0!=nr.xb){if(nr.ca=ar.ba,nr.tb=ar.tb,e(null!=nr.ca),!En(ar.Oa,rr,Un)){nr.a=2;break r}if(!It(nr,rr.width))break r;if(rr.da)break r;if((rr.da||rt(nr.ca.S))&&vn(),11>nr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=nr.ca.f.kb.F&&vn()),nr.Pb&&0<nr.s.ua&&null==nr.s.vb.X&&!B(nr.s.vb,nr.s.Wa.Xa)){nr.a=1;break r}nr.xb=0}if(!St(nr,nr.V,nr.Ba,nr.c,nr.i,rr.o,Lt))break r;ar.Dc=nr.Ma,nr=1;break t}e(0!=nr.a),nr=0}nr=!nr}nr&&(tr=er.a)}else tr=er.a}else{if(null==(er=new Yt)){or=1;break e}if(er.Fa=ar.na,er.P=ar.P,er.qc=ar.Sa,Kt(er,nr)){if(0==(tr=Rn(nr.width,nr.height,or.Oa,or.ba))){if(er.Aa=0,rr=or.Oa,e(null!=(ar=er)),null!=rr){if(0<(lr=0>(lr=rr.Md)?0:100<lr?255:255*lr/100)){for(cr=ur=0;4>cr;++cr)12>(dr=ar.pb[cr]).lc&&(dr.ia=lr*ja[0>dr.lc?0:dr.lc]>>3),ur|=dr.ia;ur&&(alert("todo:VP8InitRandom"),ar.ia=1)}ar.Ga=rr.Id,100<ar.Ga?ar.Ga=100:0>ar.Ga&&(ar.Ga=0)}Qt(er,nr)||(tr=er.a)}}else tr=er.a}0==tr&&null!=or.Oa&&or.Oa.fd&&(tr=qn(or.ba))}or=tr}ir=0!=or?null:11>ir?sr.f.RGBA.eb:sr.f.kb.y}else ir=null;return ir};var Ga=[3,4,3,4,4,2,2,4,4,4,2,1,1]});var tr=[0],rr=[0],nr=[],ar=new Et,ir=er,or=function(er,tr){var rr={},nr=0,ar=!1,ir=0,or=0;if(rr.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(er,tr,rr,nr){for(var ar=0;ar<4;ar++)if(er[tr+ar]!="RIFF".charCodeAt(ar))return!0;return!1}(er,tr)){var sr,lr;for(h(er,tr+=4),tr+=8;tr<er.length;){var cr=u(er,tr),ur=h(er,tr+=4);tr+=4;var dr=ur+(1&ur);switch(cr){case"VP8 ":case"VP8L":void 0===rr.frames[nr]&&(rr.frames[nr]={}),(Ar=rr.frames[nr]).src_off=ar?or:tr-8,Ar.src_size=ir+ur+8,nr++,ar&&(ar=!1,ir=0,or=0);break;case"VP8X":(Ar=rr.header={}).feature_flags=er[tr];var hr=tr+4;Ar.canvas_width=1+c(er,hr),hr+=3,Ar.canvas_height=1+c(er,hr),hr+=3;break;case"ALPH":ar=!0,ir=dr+8,or=tr-8;break;case"ANIM":(Ar=rr.header).bgcolor=h(er,tr),hr=tr+4,Ar.loop_count=(sr=er)[(lr=hr)+0]<<0|sr[lr+1]<<8,hr+=2;break;case"ANMF":var pr,Ar;(Ar=rr.frames[nr]={}).offset_x=2*c(er,tr),tr+=3,Ar.offset_y=2*c(er,tr),tr+=3,Ar.width=1+c(er,tr),tr+=3,Ar.height=1+c(er,tr),tr+=3,Ar.duration=c(er,tr),tr+=3,pr=er[tr++],Ar.dispose=1&pr,Ar.blend=pr>>1&1}"ANMF"!=cr&&(tr+=dr)}return rr}}(ir,0);or.response=ir,or.rgbaoutput=!0,or.dataurl=!1;var sr=or.header?or.header:null,lr=or.frames?or.frames:null;if(sr){sr.loop_counter=sr.loop_count,tr=[sr.canvas_height],rr=[sr.canvas_width];for(var cr=0;cr<lr.length&&0!=lr[cr].blend;cr++);}var ur=lr[0],dr=ar.WebPDecodeRGBA(ir,ur.src_off,ur.src_size,rr,tr);ur.rgba=dr,ur.imgwidth=rr[0],ur.imgheight=tr[0];for(var hr=0;hr<rr[0]*tr[0]*4;hr++)nr[hr]=dr[hr];return this.width=rr,this.height=tr,this.data=nr,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(er){var tr=function n(tr,ar,cr,ur){var dr=5,hr=or;switch(ur){case er.image_compression.FAST:dr=3,hr=ir;break;case er.image_compression.MEDIUM:dr=6,hr=sr;break;case er.image_compression.SLOW:dr=9,hr=lr}tr=nr(tr,ar,cr,hr);var pr=new Uint8Array(rr(dr)),Ar=g.API.adler32cs.fromBuffer(tr.buffer),fr=new xt(dr),gr=fr.append(tr),mr=fr.flush(),_r=pr.length+gr.length+mr.length,vr=new Uint8Array(_r+4);return vr.set(pr),vr.set(gr,pr.length),vr.set(mr,pr.length+gr.length),vr[_r++]=Ar>>>24&255,vr[_r++]=Ar>>>16&255,vr[_r++]=Ar>>>8&255,vr[_r++]=255&Ar,er.__addimage__.arrayBufferToBinaryString(vr)},rr=function r(er){var tr=30720;return tr|=Math.min(3,(er-1&255)>>1)<<6,tr|=0,[120,255&(tr+=31-tr%31)]},nr=function i(er,tr,rr,nr){for(var i,ar,ir,or=er.length/tr,sr=new Uint8Array(er.length+or),lr=ur(),cr=0;cr<or;cr+=1){if(ir=cr*tr,i=er.subarray(ir,ir+tr),nr)sr.set(nr(i,rr,ar),ir+cr);else{for(var hr,pr=lr.length,Ar=[];hr<pr;hr+=1)Ar[hr]=lr[hr](i,rr,ar);var fr=dr(Ar.concat());sr.set(Ar[fr],ir+cr)}ar=i}return sr},ar=function a(er){var tr=Array.apply([],er);return tr.unshift(0),tr},ir=function o(er,tr){var rr,nr=[],ar=er.length;nr[0]=1;for(var ir=0;ir<ar;ir+=1)rr=er[ir-tr]||0,nr[ir+1]=er[ir]-rr+256&255;return nr},or=function s(er,tr,rr){var nr,ar=[],ir=er.length;ar[0]=2;for(var or=0;or<ir;or+=1)nr=rr&&rr[or]||0,ar[or+1]=er[or]-nr+256&255;return ar},sr=function u(er,tr,rr){var nr,ar,ir=[],or=er.length;ir[0]=3;for(var sr=0;sr<or;sr+=1)nr=er[sr-tr]||0,ar=rr&&rr[sr]||0,ir[sr+1]=er[sr]+256-(nr+ar>>>1)&255;return ir},lr=function c(er,tr,rr){var nr,ar,ir,or,sr=[],lr=er.length;sr[0]=4;for(var c=0;c<lr;c+=1)nr=er[c-tr]||0,ar=rr&&rr[c]||0,ir=rr&&rr[c-tr]||0,or=cr(nr,ar,ir),sr[c+1]=er[c]-or+256&255;return sr},cr=function h(er,tr,rr){if(er===tr&&tr===rr)return er;var nr=Math.abs(tr-rr),ar=Math.abs(er-rr),ir=Math.abs(er+tr-rr-rr);return nr<=ar&&nr<=ir?er:ar<=ir?tr:rr},ur=function l(){return[ar,ir,or,sr,lr]},dr=function f(er){var tr=er.map((function(er){return er.reduce((function(er,tr){return er+Math.abs(tr)}),0)}));return tr.indexOf(Math.min.apply(null,tr))};er.processPNG=function(rr,nr,ar,ir){var or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br=this.decode.FLATE_DECODE,wr="";if(this.__addimage__.isArrayBuffer(rr)&&(rr=new Uint8Array(rr)),this.__addimage__.isArrayBufferView(rr)){if(rr=(lr=new Qg(rr)).imgData,sr=lr.bits,or=lr.colorSpace,ur=lr.colors,-1!==[4,6].indexOf(lr.colorType)){if(8===lr.bits){Ar=(pr=32==lr.pixelBitlength?new Uint32Array(lr.decodePixels().buffer):16==lr.pixelBitlength?new Uint16Array(lr.decodePixels().buffer):new Uint8Array(lr.decodePixels().buffer)).length,gr=new Uint8Array(Ar*lr.colors),fr=new Uint8Array(Ar);var kr,xr=lr.pixelBitlength-lr.bits;for(vr=0,yr=0;vr<Ar;vr++){for(_r=pr[vr],kr=0;kr<xr;)gr[yr++]=_r>>>kr&255,kr+=lr.bits;fr[vr]=_r>>>kr&255}}if(16===lr.bits){Ar=(pr=new Uint32Array(lr.decodePixels().buffer)).length,gr=new Uint8Array(Ar*(32/lr.pixelBitlength)*lr.colors),fr=new Uint8Array(Ar*(32/lr.pixelBitlength)),mr=lr.colors>1,vr=0,yr=0;for(var Sr=0;vr<Ar;)_r=pr[vr++],gr[yr++]=_r>>>0&255,mr&&(gr[yr++]=_r>>>16&255,_r=pr[vr++],gr[yr++]=_r>>>0&255),fr[Sr++]=_r>>>16&255;sr=8}ir!==er.image_compression.NONE?(rr=tr(gr,lr.width*lr.colors,lr.colors,ir),hr=tr(fr,lr.width,1,ir)):(rr=gr,hr=fr,br=void 0)}if(3===lr.colorType&&(or=this.color_spaces.INDEXED,dr=lr.palette,lr.transparency.indexed)){var Cr=lr.transparency.indexed,Br=0;for(vr=0,Ar=Cr.length;vr<Ar;++vr)Br+=Cr[vr];if((Br/=255)==Ar-1&&-1!==Cr.indexOf(0))cr=[Cr.indexOf(0)];else if(Br!==Ar){for(pr=lr.decodePixels(),fr=new Uint8Array(pr.length),vr=0,Ar=pr.length;vr<Ar;vr++)fr[vr]=Cr[pr[vr]];hr=tr(fr,lr.width,1)}}var Er=function(tr){var rr;switch(tr){case er.image_compression.FAST:rr=11;break;case er.image_compression.MEDIUM:rr=13;break;case er.image_compression.SLOW:rr=14;break;default:rr=12}return rr}(ir);return br===this.decode.FLATE_DECODE&&(wr="/Predictor "+Er+" "),wr+="/Colors "+ur+" /BitsPerComponent "+sr+" /Columns "+lr.width,(this.__addimage__.isArrayBuffer(rr)||this.__addimage__.isArrayBufferView(rr))&&(rr=this.__addimage__.arrayBufferToBinaryString(rr)),(hr&&this.__addimage__.isArrayBuffer(hr)||this.__addimage__.isArrayBufferView(hr))&&(hr=this.__addimage__.arrayBufferToBinaryString(hr)),{alias:ar,data:rr,index:nr,filter:br,decodeParameters:wr,transparency:cr,palette:dr,sMask:hr,predictor:Er,width:lr.width,height:lr.height,bitsPerComponent:sr,colorSpace:or}}}}(g.API),function(er){er.processGIF89A=function(tr,rr,nr,ar){var ir=new jt(tr),or=ir.width,sr=ir.height,lr=[];ir.decodeAndBlitFrameRGBA(0,lr);var cr={data:lr,width:or,height:sr},ur=new Ot(100).encode(cr,100);return er.processJPEG.call(this,ur,rr,nr,ar)},er.processGIF87A=er.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 er=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(er);for(var tr=0;tr<er;tr++){var rr=this.datav.getUint8(this.pos++,!0),nr=this.datav.getUint8(this.pos++,!0),ar=this.datav.getUint8(this.pos++,!0),ir=this.datav.getUint8(this.pos++,!0);this.palette[tr]={red:ar,green:nr,blue:rr,quad:ir}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Mt.prototype.parseBGR=function(){this.pos=this.offset;try{var er="bit"+this.bitPP,tr=this.width*this.height*4;this.data=new Uint8Array(tr),this[er]()}catch(er){Bf.log("bit decode error:"+er)}},Mt.prototype.bit1=function(){var er,tr=Math.ceil(this.width/8),rr=tr%4;for(er=this.height-1;er>=0;er--){for(var nr=this.bottom_up?er:this.height-1-er,ar=0;ar<tr;ar++)for(var ir=this.datav.getUint8(this.pos++,!0),or=nr*this.width*4+8*ar*4,sr=0;sr<8&&8*ar+sr<this.width;sr++){var lr=this.palette[ir>>7-sr&1];this.data[or+4*sr]=lr.blue,this.data[or+4*sr+1]=lr.green,this.data[or+4*sr+2]=lr.red,this.data[or+4*sr+3]=255}0!==rr&&(this.pos+=4-rr)}},Mt.prototype.bit4=function(){for(var er=Math.ceil(this.width/2),tr=er%4,rr=this.height-1;rr>=0;rr--){for(var nr=this.bottom_up?rr:this.height-1-rr,ar=0;ar<er;ar++){var ir=this.datav.getUint8(this.pos++,!0),or=nr*this.width*4+2*ar*4,sr=ir>>4,lr=15&ir,cr=this.palette[sr];if(this.data[or]=cr.blue,this.data[or+1]=cr.green,this.data[or+2]=cr.red,this.data[or+3]=255,2*ar+1>=this.width)break;cr=this.palette[lr],this.data[or+4]=cr.blue,this.data[or+4+1]=cr.green,this.data[or+4+2]=cr.red,this.data[or+4+3]=255}0!==tr&&(this.pos+=4-tr)}},Mt.prototype.bit8=function(){for(var er=this.width%4,tr=this.height-1;tr>=0;tr--){for(var rr=this.bottom_up?tr:this.height-1-tr,nr=0;nr<this.width;nr++){var ar=this.datav.getUint8(this.pos++,!0),ir=rr*this.width*4+4*nr;if(ar<this.palette.length){var or=this.palette[ar];this.data[ir]=or.red,this.data[ir+1]=or.green,this.data[ir+2]=or.blue,this.data[ir+3]=255}else this.data[ir]=255,this.data[ir+1]=255,this.data[ir+2]=255,this.data[ir+3]=255}0!==er&&(this.pos+=4-er)}},Mt.prototype.bit15=function(){for(var er=this.width%3,tr=parseInt("11111",2),rr=this.height-1;rr>=0;rr--){for(var nr=this.bottom_up?rr:this.height-1-rr,ar=0;ar<this.width;ar++){var ir=this.datav.getUint16(this.pos,!0);this.pos+=2;var or=(ir&tr)/tr*255|0,sr=(ir>>5&tr)/tr*255|0,lr=(ir>>10&tr)/tr*255|0,cr=ir>>15?255:0,ur=nr*this.width*4+4*ar;this.data[ur]=lr,this.data[ur+1]=sr,this.data[ur+2]=or,this.data[ur+3]=cr}this.pos+=er}},Mt.prototype.bit16=function(){for(var er=this.width%3,tr=parseInt("11111",2),rr=parseInt("111111",2),nr=this.height-1;nr>=0;nr--){for(var ar=this.bottom_up?nr:this.height-1-nr,ir=0;ir<this.width;ir++){var or=this.datav.getUint16(this.pos,!0);this.pos+=2;var sr=(or&tr)/tr*255|0,lr=(or>>5&rr)/rr*255|0,cr=(or>>11)/tr*255|0,ur=ar*this.width*4+4*ir;this.data[ur]=cr,this.data[ur+1]=lr,this.data[ur+2]=sr,this.data[ur+3]=255}this.pos+=er}},Mt.prototype.bit24=function(){for(var er=this.height-1;er>=0;er--){for(var tr=this.bottom_up?er:this.height-1-er,rr=0;rr<this.width;rr++){var nr=this.datav.getUint8(this.pos++,!0),ar=this.datav.getUint8(this.pos++,!0),ir=this.datav.getUint8(this.pos++,!0),or=tr*this.width*4+4*rr;this.data[or]=ir,this.data[or+1]=ar,this.data[or+2]=nr,this.data[or+3]=255}this.pos+=this.width%4}},Mt.prototype.bit32=function(){for(var er=this.height-1;er>=0;er--)for(var tr=this.bottom_up?er:this.height-1-er,rr=0;rr<this.width;rr++){var nr=this.datav.getUint8(this.pos++,!0),ar=this.datav.getUint8(this.pos++,!0),ir=this.datav.getUint8(this.pos++,!0),or=this.datav.getUint8(this.pos++,!0),sr=tr*this.width*4+4*rr;this.data[sr]=ir,this.data[sr+1]=ar,this.data[sr+2]=nr,this.data[sr+3]=or}},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(er){er.processBMP=function(tr,rr,nr,ar){var ir=new Mt(tr,!1),or=ir.width,sr=ir.height,lr={data:ir.getData(),width:or,height:sr},cr=new Ot(100).encode(lr,100);return er.processJPEG.call(this,cr,rr,nr,ar)}}(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(er){er.processWEBP=function(tr,rr,nr,ar){var ir=new Et(tr,!1),or=ir.width,sr=ir.height,lr={data:ir.getData(),width:or,height:sr},cr=new Ot(100).encode(lr,100);return er.processJPEG.call(this,cr,rr,nr,ar)}}(g.API),g.API.setLanguage=function(er){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"}[er]&&(this.internal.languageSettings.languageCode=er,!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.
|
||
* ====================================================================
|
||
*/
|
||
Pg=g.API,Tg=Pg.getCharWidthsArray=function(er,tr){var rr,nr,ar=(tr=tr||{}).font||this.internal.getFont(),ir=tr.fontSize||this.internal.getFontSize(),or=tr.charSpace||this.internal.getCharSpace(),sr=tr.widths?tr.widths:ar.metadata.Unicode.widths,lr=sr.fof?sr.fof:1,cr=tr.kerning?tr.kerning:ar.metadata.Unicode.kerning,ur=cr.fof?cr.fof:1,dr=!1!==tr.doKerning,hr=0,pr=er.length,Ar=0,fr=sr[0]||lr,gr=[];for(rr=0;rr<pr;rr++)nr=er.charCodeAt(rr),"function"==typeof ar.metadata.widthOfString?gr.push((ar.metadata.widthOfGlyph(ar.metadata.characterToGlyph(nr))+or*(1e3/ir)||0)/1e3):(hr=dr&&"object"==_typeof(cr[nr])&&!isNaN(parseInt(cr[nr][Ar],10))?cr[nr][Ar]/ur:0,gr.push((sr[nr]||fr)/lr+hr)),Ar=nr;return gr},Fg=Pg.getStringUnitWidth=function(er,tr){var rr=(tr=tr||{}).fontSize||this.internal.getFontSize(),nr=tr.font||this.internal.getFont(),ar=tr.charSpace||this.internal.getCharSpace();return Pg.processArabic&&(er=Pg.processArabic(er)),"function"==typeof nr.metadata.widthOfString?nr.metadata.widthOfString(er,rr,ar)/rr:Tg.apply(this,arguments).reduce((function(er,tr){return er+tr}),0)},Ug=function Pt(er,tr,rr,nr){for(var ar=[],ir=0,or=er.length,sr=0;ir!==or&&sr+tr[ir]<rr;)sr+=tr[ir],ir++;ar.push(er.slice(0,ir));var lr=ir;for(sr=0;ir!==or;)sr+tr[ir]>nr&&(ar.push(er.slice(lr,ir)),sr=0,lr=ir),sr+=tr[ir],ir++;return lr!==ir&&ar.push(er.slice(lr,ir)),ar},Ig=function kt(er,tr,rr){rr||(rr={});var nr,ar,ir,or,sr,lr,cr,ur=[],dr=[ur],hr=rr.textIndent||0,pr=0,Ar=0,fr=er.split(" "),gr=Tg.apply(this,[" ",rr])[0];if(lr=-1===rr.lineIndent?fr[0].length+2:rr.lineIndent||0){var mr=Array(lr).join(" "),_r=[];fr.map((function(er){(er=er.split(/\s*\n/)).length>1?_r=_r.concat(er.map((function(er,tr){return(tr&&er.length?"\n":"")+er}))):_r.push(er[0])})),fr=_r,lr=Fg.apply(this,[mr,rr])}for(ir=0,or=fr.length;ir<or;ir++){var vr=0;if(nr=fr[ir],lr&&"\n"==nr[0]&&(nr=nr.substr(1),vr=1),hr+pr+(Ar=(ar=Tg.apply(this,[nr,rr])).reduce((function(er,tr){return er+tr}),0))>tr||vr){if(Ar>tr){for(sr=Ug.apply(this,[nr,ar,tr-(hr+pr),tr]),ur.push(sr.shift()),ur=[sr.pop()];sr.length;)dr.push([sr.shift()]);Ar=ar.slice(nr.length-(ur[0]?ur[0].length:0)).reduce((function(er,tr){return er+tr}),0)}else ur=[nr];dr.push(ur),hr=Ar+lr,pr=gr}else ur.push(nr),hr+=pr+Ar,pr=gr}return cr=lr?function(er,tr){return(tr?mr:"")+er.join(" ")}:function(er){return er.join(" ")},dr.map(cr)},Pg.splitTextToSize=function(er,tr,rr){var nr,ar=(rr=rr||{}).fontSize||this.internal.getFontSize(),ir=function(er){if(er.widths&&er.kerning)return{widths:er.widths,kerning:er.kerning};var tr=this.internal.getFont(er.fontName,er.fontStyle);return tr.metadata.Unicode?{widths:tr.metadata.Unicode.widths||{0:1},kerning:tr.metadata.Unicode.kerning||{}}:{font:tr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,rr);nr=Array.isArray(er)?er:String(er).split(/\r?\n/);var or=1*this.internal.scaleFactor*tr/ar;ir.textIndent=rr.textIndent?1*rr.textIndent*this.internal.scaleFactor/ar:0,ir.lineIndent=rr.lineIndent;var sr,lr,cr=[];for(sr=0,lr=nr.length;sr<lr;sr++)cr=cr.concat(Ig.apply(this,[nr[sr],or,ir]));return cr},
|
||
/** @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(er){er.__fontmetrics__=er.__fontmetrics__||{};for(var tr="klmnopqrstuvwxyz",rr={},nr={},ar=0;ar<tr.length;ar++)rr[tr[ar]]="0123456789abcdef"[ar],nr["0123456789abcdef"[ar]]=tr[ar];var ir=function a(er){return"0x"+parseInt(er,10).toString(16)},or=er.__fontmetrics__.compress=function(er){var tr,rr,ar,sr,lr=["{"];for(var cr in er){if(tr=er[cr],isNaN(parseInt(cr,10))?rr="'"+cr+"'":(cr=parseInt(cr,10),rr=(rr=ir(cr).slice(2)).slice(0,-1)+nr[rr.slice(-1)]),"number"==typeof tr)tr<0?(ar=ir(tr).slice(3),sr="-"):(ar=ir(tr).slice(2),sr=""),ar=sr+ar.slice(0,-1)+nr[ar.slice(-1)];else{if("object"!=_typeof(tr))throw new Error("Don't know what to do with value type "+_typeof(tr)+".");ar=or(tr)}lr.push(rr+ar)}return lr.push("}"),lr.join("")},sr=er.__fontmetrics__.uncompress=function(er){if("string"!=typeof er)throw new Error("Invalid argument passed to uncompress.");for(var tr,nr,ar,ir,or={},sr=1,lr=or,cr=[],ur="",dr="",hr=er.length-1,pr=1;pr<hr;pr+=1)"'"==(ir=er[pr])?tr?(ar=tr.join(""),tr=void 0):tr=[]:tr?tr.push(ir):"{"==ir?(cr.push([lr,ar]),lr={},ar=void 0):"}"==ir?((nr=cr.pop())[0][nr[1]]=lr,ar=void 0,lr=nr[0]):"-"==ir?sr=-1:void 0===ar?rr.hasOwnProperty(ir)?(ur+=rr[ir],ar=parseInt(ur,16)*sr,sr=1,ur=""):ur+=ir:rr.hasOwnProperty(ir)?(dr+=rr[ir],lr[ar]=parseInt(dr,16)*sr,sr=1,ar=void 0,dr=""):dr+=ir;return or},lr={codePages:["WinAnsiEncoding"],WinAnsiEncoding:sr("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},cr={Unicode:{Courier:lr,"Courier-Bold":lr,"Courier-BoldOblique":lr,"Courier-Oblique":lr,Helvetica:lr,"Helvetica-Bold":lr,"Helvetica-BoldOblique":lr,"Helvetica-Oblique":lr,"Times-Roman":lr,"Times-Bold":lr,"Times-BoldItalic":lr,"Times-Italic":lr}},ur={Unicode:{"Courier-Oblique":sr("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":sr("{'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":sr("{'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:sr("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":sr("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":sr("{'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:sr("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:sr("{'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":sr("{'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:sr("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":sr("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":sr("{'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":sr("{'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":sr("{'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}}}")}};er.events.push(["addFont",function(er){var tr=er.font,rr=ur.Unicode[tr.postScriptName];rr&&(tr.metadata.Unicode={},tr.metadata.Unicode.widths=rr.widths,tr.metadata.Unicode.kerning=rr.kerning);var nr=cr.Unicode[tr.postScriptName];nr&&(tr.metadata.Unicode.encoding=nr,tr.encoding=nr.codePages[0])}])}(g.API),
|
||
/**
|
||
* @license
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){var tr=function e(er){for(var e=er.length,tr=new Uint8Array(e),rr=0;rr<e;rr++)tr[rr]=er.charCodeAt(rr);return tr};er.API.events.push(["addFont",function(rr){var nr=void 0,ar=rr.font,ir=rr.instance;if(!ar.isStandardFont){if(void 0===ir)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ar.postScriptName+"').");if("string"!=typeof(nr=!1===ir.existsFileInVFS(ar.postScriptName)?ir.loadFile(ar.postScriptName):ir.getFileFromVFS(ar.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ar.postScriptName+"').");!function(rr,nr){nr=/^\x00\x01\x00\x00/.test(nr)?tr(nr):tr(Ef(nr)),rr.metadata=er.API.TTFFont.open(nr),rr.metadata.Unicode=rr.metadata.Unicode||{encoding:{},kerning:{},widths:[]},rr.metadata.glyIdsUsed=[0]}(ar,nr)}}])}(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(er){function r(){return(Cf.canvg?Promise.resolve(Cf.canvg):Promise.resolve().then((function(){return Ax}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}g.API.addSvgAsImage=function(er,tr,rr,nr,ar,ir,or,sr){if(isNaN(tr)||isNaN(rr))throw Bf.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(nr)||isNaN(ar))throw Bf.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var lr=document.createElement("canvas");lr.width=nr,lr.height=ar;var cr=lr.getContext("2d");cr.fillStyle="#fff",cr.fillRect(0,0,lr.width,lr.height);var ur={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},dr=this;return r().then((function(tr){return tr.Canvg.fromString(cr,er,ur)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(er){return er.render(ur)})).then((function(){dr.addImage(lr.toDataURL("image/jpeg",1),tr,rr,nr,ar,or,sr)}))}}(),g.API.putTotalPages=function(er){var tr,rr=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(tr=new RegExp(er,"g"),rr=this.internal.getNumberOfPages()):(tr=new RegExp(this.pdfEscape16(er,this.internal.getFont()),"g"),rr=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var nr=1;nr<=this.internal.getNumberOfPages();nr++)for(var ar=0;ar<this.internal.pages[nr].length;ar++)this.internal.pages[nr][ar]=this.internal.pages[nr][ar].replace(tr,rr);return this},g.API.viewerPreferences=function(er,tr){var rr;er=er||{},tr=tr||!1;var nr,ar,ir,or={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}},sr=Object.keys(or),lr=[],cr=0,ur=0,dr=0;function f(er,tr){var rr,nr=!1;for(rr=0;rr<er.length;rr+=1)er[rr]===tr&&(nr=!0);return nr}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(or)),this.internal.viewerpreferences.isSubscribed=!1),rr=this.internal.viewerpreferences.configuration,"reset"===er||!0===tr){var hr=sr.length;for(dr=0;dr<hr;dr+=1)rr[sr[dr]].value=rr[sr[dr]].defaultValue,rr[sr[dr]].explicitSet=!1}if("object"==_typeof(er))for(ar in er)if(ir=er[ar],f(sr,ar)&&void 0!==ir){if("boolean"===rr[ar].type&&"boolean"==typeof ir)rr[ar].value=ir;else if("name"===rr[ar].type&&f(rr[ar].valueSet,ir))rr[ar].value=ir;else if("integer"===rr[ar].type&&Number.isInteger(ir))rr[ar].value=ir;else if("array"===rr[ar].type){for(cr=0;cr<ir.length;cr+=1)if(nr=!0,1===ir[cr].length&&"number"==typeof ir[cr][0])lr.push(String(ir[cr]-1));else if(ir[cr].length>1){for(ur=0;ur<ir[cr].length;ur+=1)"number"!=typeof ir[cr][ur]&&(nr=!1);!0===nr&&lr.push([ir[cr][0]-1,ir[cr][1]-1].join(" "))}rr[ar].value="["+lr.join(" ")+"]"}else rr[ar].value=rr[ar].defaultValue;rr[ar].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var er,tr=[];for(er in rr)!0===rr[er].explicitSet&&("name"===rr[er].type?tr.push("/"+er+" /"+rr[er].value):tr.push("/"+er+" "+rr[er].value));0!==tr.length&&this.internal.write("/ViewerPreferences\n<<\n"+tr.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=rr,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(er){var tr=function e(){var er='<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/">')),tr=unescape(encodeURIComponent(er)),rr=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),nr=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ar=unescape(encodeURIComponent("</x:xmpmeta>")),ir=tr.length+rr.length+nr.length+e.length+ar.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+ir+" >>"),this.internal.write("stream"),this.internal.write(e+tr+rr+nr+ar),this.internal.write("endstream"),this.internal.write("endobj")},rr=function n(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};er.addMetadata=function(er,nr){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:er,namespaceuri:nr||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",rr),this.internal.events.subscribe("postPutResources",tr)),this}}(g.API),function(er){var tr=er.API,rr=tr.pdfEscape16=function(er,tr){for(var rr,nr=tr.metadata.Unicode.widths,ar=["","0","00","000","0000"],ir=[""],or=0,sr=er.length;or<sr;++or){if(rr=tr.metadata.characterToGlyph(er.charCodeAt(or)),tr.metadata.glyIdsUsed.push(rr),tr.metadata.toUnicode[rr]=er.charCodeAt(or),-1==nr.indexOf(rr)&&(nr.push(rr),nr.push([parseInt(tr.metadata.widthOfGlyph(rr),10)])),"0"==rr)return ir.join("");rr=rr.toString(16),ir.push(ar[4-rr.length],rr)}return ir.join("")},nr=function r(er){var tr,rr,r,nr,ar,ir,or;for(ar="/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=[],ir=0,or=(rr=Object.keys(er).sort((function(er,tr){return er-tr}))).length;ir<or;ir++)tr=rr[ir],r.length>=100&&(ar+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==er[tr]&&null!==er[tr]&&"function"==typeof er[tr].toString&&(nr=("0000"+er[tr].toString(16)).slice(-4),tr=("0000"+(+tr).toString(16)).slice(-4),r.push("<"+tr+"><"+nr+">"));return r.length&&(ar+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),ar+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};tr.events.push(["putFont",function(tr){!function(tr){var rr=tr.font,ar=tr.out,ir=tr.newObject,or=tr.putStream,sr=tr.pdfEscapeWithNeededParanthesis;if(rr.metadata instanceof er.API.TTFFont&&"Identity-H"===rr.encoding){for(var lr=rr.metadata.Unicode.widths,cr=rr.metadata.subset.encode(rr.metadata.glyIdsUsed,1),ur="",dr=0;dr<cr.length;dr++)ur+=String.fromCharCode(cr[dr]);var hr=ir();or({data:ur,addLength1:!0}),ar("endobj");var pr=ir();or({data:nr(rr.metadata.toUnicode),addLength1:!0}),ar("endobj");var Ar=ir();ar("<<"),ar("/Type /FontDescriptor"),ar("/FontName /"+sr(rr.fontName)),ar("/FontFile2 "+hr+" 0 R"),ar("/FontBBox "+er.API.PDFObject.convert(rr.metadata.bbox)),ar("/Flags "+rr.metadata.flags),ar("/StemV "+rr.metadata.stemV),ar("/ItalicAngle "+rr.metadata.italicAngle),ar("/Ascent "+rr.metadata.ascender),ar("/Descent "+rr.metadata.decender),ar("/CapHeight "+rr.metadata.capHeight),ar(">>"),ar("endobj");var fr=ir();ar("<<"),ar("/Type /Font"),ar("/BaseFont /"+sr(rr.fontName)),ar("/FontDescriptor "+Ar+" 0 R"),ar("/W "+er.API.PDFObject.convert(lr)),ar("/CIDToGIDMap /Identity"),ar("/DW 1000"),ar("/Subtype /CIDFontType2"),ar("/CIDSystemInfo"),ar("<<"),ar("/Supplement 0"),ar("/Registry (Adobe)"),ar("/Ordering ("+rr.encoding+")"),ar(">>"),ar(">>"),ar("endobj"),rr.objectNumber=ir(),ar("<<"),ar("/Type /Font"),ar("/Subtype /Type0"),ar("/ToUnicode "+pr+" 0 R"),ar("/BaseFont /"+sr(rr.fontName)),ar("/Encoding /"+rr.encoding),ar("/DescendantFonts ["+fr+" 0 R]"),ar(">>"),ar("endobj"),rr.isAlreadyPutted=!0}}(tr)}]),tr.events.push(["putFont",function(tr){!function(tr){var rr=tr.font,ar=tr.out,ir=tr.newObject,or=tr.putStream,sr=tr.pdfEscapeWithNeededParanthesis;if(rr.metadata instanceof er.API.TTFFont&&"WinAnsiEncoding"===rr.encoding){for(var lr=rr.metadata.rawData,cr="",ur=0;ur<lr.length;ur++)cr+=String.fromCharCode(lr[ur]);var dr=ir();or({data:cr,addLength1:!0}),ar("endobj");var hr=ir();or({data:nr(rr.metadata.toUnicode),addLength1:!0}),ar("endobj");var pr=ir();ar("<<"),ar("/Descent "+rr.metadata.decender),ar("/CapHeight "+rr.metadata.capHeight),ar("/StemV "+rr.metadata.stemV),ar("/Type /FontDescriptor"),ar("/FontFile2 "+dr+" 0 R"),ar("/Flags 96"),ar("/FontBBox "+er.API.PDFObject.convert(rr.metadata.bbox)),ar("/FontName /"+sr(rr.fontName)),ar("/ItalicAngle "+rr.metadata.italicAngle),ar("/Ascent "+rr.metadata.ascender),ar(">>"),ar("endobj"),rr.objectNumber=ir();for(var Ar=0;Ar<rr.metadata.hmtx.widths.length;Ar++)rr.metadata.hmtx.widths[Ar]=parseInt(rr.metadata.hmtx.widths[Ar]*(1e3/rr.metadata.head.unitsPerEm));ar("<</Subtype/TrueType/Type/Font/ToUnicode "+hr+" 0 R/BaseFont/"+rr.fontName+"/FontDescriptor "+pr+" 0 R/Encoding/"+rr.encoding+" /FirstChar 29 /LastChar 255 /Widths "+er.API.PDFObject.convert(rr.metadata.hmtx.widths)+">>"),ar("endobj"),rr.isAlreadyPutted=!0}}(tr)}]);var ar=function i(er){var tr,nr=er.text||"",i=er.x,ar=er.y,ir=er.options||{},or=er.mutex||{},sr=or.pdfEscape,lr=or.activeFontKey,cr=or.fonts,ur=lr,dr="",hr=0,pr="",Ar=cr[ur].encoding;if("Identity-H"!==cr[ur].encoding)return{text:nr,x:i,y:ar,options:ir,mutex:or};for(pr=nr,ur=lr,Array.isArray(nr)&&(pr=nr[0]),hr=0;hr<pr.length;hr+=1)cr[ur].metadata.hasOwnProperty("cmap")&&(tr=cr[ur].metadata.cmap.unicode.codeMap[pr[hr].charCodeAt(0)]),tr||pr[hr].charCodeAt(0)<256&&cr[ur].metadata.hasOwnProperty("Unicode")?dr+=pr[hr]:dr+="";var fr="";return parseInt(ur.slice(1))<14||"WinAnsiEncoding"===Ar?fr=sr(dr,ur).split("").map((function(er){return er.charCodeAt(0).toString(16)})).join(""):"Identity-H"===Ar&&(fr=rr(dr,cr[ur])),or.isHex=!0,{text:fr,x:i,y:ar,options:ir,mutex:or}};tr.events.push(["postProcessText",function(er){var tr=er.text||"",rr=[],nr={text:tr,x:er.x,y:er.y,options:er.options,mutex:er.mutex};if(Array.isArray(tr)){var ir=0;for(ir=0;ir<tr.length;ir+=1)Array.isArray(tr[ir])&&3===tr[ir].length?rr.push([ar(Object.assign({},nr,{text:tr[ir][0]})).text,tr[ir][1],tr[ir][2]]):rr.push(ar(Object.assign({},nr,{text:tr[ir]})).text);er.text=rr}else er.text=ar(Object.assign({},nr,{text:tr})).text}])}(g),
|
||
/**
|
||
* @license
|
||
* jsPDF virtual FileSystem functionality
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){var tr=function e(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};er.existsFileInVFS=function(er){return tr.call(this),void 0!==this.internal.vFS[er]},er.addFileToVFS=function(er,rr){return tr.call(this),this.internal.vFS[er]=rr,this},er.getFileFromVFS=function(er){return tr.call(this),void 0!==this.internal.vFS[er]?this.internal.vFS[er]:null}}(g.API),
|
||
/**
|
||
* @license
|
||
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
||
* MIT License
|
||
*/
|
||
function(er){er.__bidiEngine__=er.prototype.__bidiEngine__=function(er){var rr,nr,ar,ir,or,sr,lr,cr=tr,ur=[[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]],dr=[[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]],hr={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},pr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Ar=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],fr=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)$/),gr=!1,mr=0;this.__bidiEngine__={};var _r=function b(er){var tr=er.charCodeAt(),rr=tr>>8,nr=pr[rr];return void 0!==nr?cr[256*nr+(255&tr)]:252===rr||253===rr?"AL":fr.test(rr)?"L":8===rr?"R":"N"},vr=function y(er){for(var tr,rr=0;rr<er.length;rr++){if("L"===(tr=_r(er.charAt(rr))))return!1;if("R"===tr)return!0}return!1},yr=function w(er,tr,or,sr){var lr,cr,ur,dr,hr=tr[sr];switch(hr){case"L":case"R":gr=!1;break;case"N":case"AN":break;case"EN":gr&&(hr="AN");break;case"AL":gr=!0,hr="R";break;case"WS":hr="N";break;case"CS":sr<1||sr+1>=tr.length||"EN"!==(lr=or[sr-1])&&"AN"!==lr||"EN"!==(cr=tr[sr+1])&&"AN"!==cr?hr="N":gr&&(cr="AN"),hr=cr===lr?cr:"N";break;case"ES":hr="EN"===(lr=sr>0?or[sr-1]:"B")&&sr+1<tr.length&&"EN"===tr[sr+1]?"EN":"N";break;case"ET":if(sr>0&&"EN"===or[sr-1]){hr="EN";break}if(gr){hr="N";break}for(ur=sr+1,dr=tr.length;ur<dr&&"ET"===tr[ur];)ur++;hr=ur<dr&&"EN"===tr[ur]?"EN":"N";break;case"NSM":if(ar&&!ir){for(dr=tr.length,ur=sr+1;ur<dr&&"NSM"===tr[ur];)ur++;if(ur<dr){var pr=er[sr],Ar=pr>=1425&&pr<=2303||64286===pr;if(lr=tr[ur],Ar&&("R"===lr||"AL"===lr)){hr="R";break}}}hr=sr<1||"B"===(lr=tr[sr-1])?"N":or[sr-1];break;case"B":gr=!1,rr=!0,hr=mr;break;case"S":nr=!0,hr="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":gr=!1;break;case"BN":hr="N"}return hr},br=function N(er,tr,rr){var nr=er.split("");return rr&&wr(nr,rr,{hiLevel:mr}),nr.reverse(),tr&&tr.reverse(),nr.join("")},wr=function L(er,tr,ar){var ir,or,sr,lr,cr,pr=-1,Ar=er.length,fr=0,vr=[],br=mr?dr:ur,L=[];for(gr=!1,rr=!1,nr=!1,or=0;or<Ar;or++)L[or]=_r(er[or]);for(sr=0;sr<Ar;sr++){if(cr=fr,vr[sr]=yr(er,L,vr,sr),ir=240&(fr=br[cr][hr[vr[sr]]]),fr&=15,tr[sr]=lr=br[fr][5],ir>0)if(16===ir){for(or=pr;or<sr;or++)tr[or]=1;pr=-1}else pr=-1;if(br[fr][6])-1===pr&&(pr=sr);else if(pr>-1){for(or=pr;or<sr;or++)tr[or]=lr;pr=-1}"B"===L[sr]&&(tr[sr]=0),ar.hiLevel|=lr}nr&&function(er,tr,rr){for(var nr=0;nr<rr;nr++)if("S"===er[nr]){tr[nr]=mr;for(var ar=nr-1;ar>=0&&"WS"===er[ar];ar--)tr[ar]=mr}}(L,tr,Ar)},kr=function x(er,tr,nr,ar,ir){if(!(ir.hiLevel<er)){if(1===er&&1===mr&&!rr)return tr.reverse(),void(nr&&nr.reverse());for(var or,sr,lr,cr,ur=tr.length,dr=0;dr<ur;){if(ar[dr]>=er){for(lr=dr+1;lr<ur&&ar[lr]>=er;)lr++;for(cr=dr,sr=lr-1;cr<sr;cr++,sr--)or=tr[cr],tr[cr]=tr[sr],tr[sr]=or,nr&&(or=nr[cr],nr[cr]=nr[sr],nr[sr]=or);dr=lr}dr++}}},xr=function A(er,tr,rr){var nr=er.split(""),ar={hiLevel:mr};return rr||(rr=[]),wr(nr,rr,ar),function(er,tr,rr){if(0!==rr.hiLevel&&lr)for(var nr,ar=0;ar<er.length;ar++)1===tr[ar]&&(nr=Ar.indexOf(er[ar]))>=0&&(er[ar]=Ar[nr+1])}(nr,rr,ar),kr(2,nr,tr,rr,ar),kr(1,nr,tr,rr,ar),nr.join("")};return this.__bidiEngine__.doBidiReorder=function(er,tr,rr){if(function(er,tr){if(tr)for(var rr=0;rr<er.length;rr++)tr[rr]=rr;void 0===ir&&(ir=vr(er)),void 0===sr&&(sr=vr(er))}(er,tr),ar||!or||sr)if(ar&&or&&ir^sr)mr=ir?1:0,er=br(er,tr,rr);else if(!ar&&or&&sr)mr=ir?1:0,er=xr(er,tr,rr),er=br(er,tr);else if(!ar||ir||or||sr){if(ar&&!or&&ir^sr)er=br(er,tr),ir?(mr=0,er=xr(er,tr,rr)):(mr=1,er=xr(er,tr,rr),er=br(er,tr));else if(ar&&ir&&!or&&sr)mr=1,er=xr(er,tr,rr),er=br(er,tr);else if(!ar&&!or&&ir^sr){var nr=lr;ir?(mr=1,er=xr(er,tr,rr),mr=0,lr=!1,er=xr(er,tr,rr),lr=nr):(mr=0,er=xr(er,tr,rr),er=br(er,tr),mr=1,lr=!1,er=xr(er,tr,rr),lr=nr,er=br(er,tr))}}else mr=0,er=xr(er,tr,rr);else mr=ir?1:0,er=xr(er,tr,rr);return er},this.__bidiEngine__.setOptions=function(er){er&&(ar=er.isInputVisual,or=er.isOutputVisual,ir=er.isInputRtl,sr=er.isOutputRtl,lr=er.isSymmetricSwapping)},this.__bidiEngine__.setOptions(er),this.__bidiEngine__};var tr=["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"],rr=new er.__bidiEngine__({isInputVisual:!0});er.API.events.push(["postProcessText",function(er){var tr=er.text,nr=(er.x,er.y,er.options||{}),ar=(er.mutex,nr.lang,[]);if(nr.isInputVisual="boolean"!=typeof nr.isInputVisual||nr.isInputVisual,rr.setOptions(nr),"[object Array]"===Object.prototype.toString.call(tr)){var ir=0;for(ar=[],ir=0;ir<tr.length;ir+=1)"[object Array]"===Object.prototype.toString.call(tr[ir])?ar.push([rr.doBidiReorder(tr[ir][0]),tr[ir][1],tr[ir][2]]):ar.push([rr.doBidiReorder(tr[ir])]);er.text=ar}else er.text=rr.doBidiReorder(tr);rr.setOptions({isInputVisual:!0})}])}(g),g.API.TTFFont=function(){function t(er){var tr;if(this.rawData=er,tr=this.contents=new Dg(er),this.contents.pos=4,"ttcf"===tr.readString(4))throw new Error("TTCF not supported.");tr.pos=0,this.parse(),this.subset=new im(this),this.registerTTF()}return t.open=function(er){return new t(er)},t.prototype.parse=function(){return this.directory=new jg(this.contents),this.head=new Vg(this),this.name=new Jg(this),this.cmap=new Kg(this),this.toUnicode={},this.hhea=new qg(this),this.maxp=new $g(this),this.hmtx=new Zg(this),this.post=new Xg(this),this.os2=new Wg(this),this.loca=new am(this),this.glyf=new tm(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 er,tr,rr,nr,ar;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var tr,rr,nr,ar;for(ar=[],tr=0,rr=(nr=this.bbox).length;tr<rr;tr++)er=nr[tr],ar.push(Math.round(er*this.scaleFactor));return ar}.call(this),this.stemV=0,this.post.exists?(rr=255&(nr=this.post.italic_angle),0!=(32768&(tr=nr>>16))&&(tr=-(1+(65535^tr))),this.italicAngle=+(tr+"."+rr)):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===(ar=this.familyClass)||2===ar||3===ar||4===ar||5===ar||7===ar,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(er){var tr;return(null!=(tr=this.cmap.unicode)?tr.codeMap[er]:void 0)||0},t.prototype.widthOfGlyph=function(er){var tr;return tr=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(er).advance*tr},t.prototype.widthOfString=function(er,tr,rr){var nr,ar,ir,or;for(ir=0,ar=0,or=(er=""+er).length;0<=or?ar<or:ar>or;ar=0<=or?++ar:--ar)nr=er.charCodeAt(ar),ir+=this.widthOfGlyph(this.characterToGlyph(nr))+rr*(1e3/tr)||0;return ir*(tr/1e3)},t.prototype.lineHeight=function(er,tr){var rr;return null==tr&&(tr=!1),rr=tr?this.lineGap:0,(this.ascender+rr-this.decender)/1e3*er},t}();var Og,Dg=function(){function t(er){this.data=null!=er?er:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(er){return this.data[this.pos++]=er},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(er){return this.writeByte(er>>>24&255),this.writeByte(er>>16&255),this.writeByte(er>>8&255),this.writeByte(255&er)},t.prototype.readInt32=function(){var er;return(er=this.readUInt32())>=2147483648?er-4294967296:er},t.prototype.writeInt32=function(er){return er<0&&(er+=4294967296),this.writeUInt32(er)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(er){return this.writeByte(er>>8&255),this.writeByte(255&er)},t.prototype.readInt16=function(){var er;return(er=this.readUInt16())>=32768?er-65536:er},t.prototype.writeInt16=function(er){return er<0&&(er+=65536),this.writeUInt16(er)},t.prototype.readString=function(er){var tr,rr;for(rr=[],tr=0;0<=er?tr<er:tr>er;tr=0<=er?++tr:--tr)rr[tr]=String.fromCharCode(this.readByte());return rr.join("")},t.prototype.writeString=function(er){var tr,rr,nr;for(nr=[],tr=0,rr=er.length;0<=rr?tr<rr:tr>rr;tr=0<=rr?++tr:--tr)nr.push(this.writeByte(er.charCodeAt(tr)));return nr},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(er){return this.writeInt16(er)},t.prototype.readLongLong=function(){var er,tr,rr,nr,ar,ir,or,sr;return er=this.readByte(),tr=this.readByte(),rr=this.readByte(),nr=this.readByte(),ar=this.readByte(),ir=this.readByte(),or=this.readByte(),sr=this.readByte(),128&er?-1*(72057594037927940*(255^er)+281474976710656*(255^tr)+1099511627776*(255^rr)+4294967296*(255^nr)+16777216*(255^ar)+65536*(255^ir)+256*(255^or)+(255^sr)+1):72057594037927940*er+281474976710656*tr+1099511627776*rr+4294967296*nr+16777216*ar+65536*ir+256*or+sr},t.prototype.writeLongLong=function(er){var tr,rr;return tr=Math.floor(er/4294967296),rr=4294967295&er,this.writeByte(tr>>24&255),this.writeByte(tr>>16&255),this.writeByte(tr>>8&255),this.writeByte(255&tr),this.writeByte(rr>>24&255),this.writeByte(rr>>16&255),this.writeByte(rr>>8&255),this.writeByte(255&rr)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(er){return this.writeInt32(er)},t.prototype.read=function(er){var tr,rr;for(tr=[],rr=0;0<=er?rr<er:rr>er;rr=0<=er?++rr:--rr)tr.push(this.readByte());return tr},t.prototype.write=function(er){var tr,rr,nr,ar;for(ar=[],rr=0,nr=er.length;rr<nr;rr++)tr=er[rr],ar.push(this.writeByte(tr));return ar},t}(),jg=function(){var er;function e(er){var tr,rr,nr;for(this.scalarType=er.readInt(),this.tableCount=er.readShort(),this.searchRange=er.readShort(),this.entrySelector=er.readShort(),this.rangeShift=er.readShort(),this.tables={},rr=0,nr=this.tableCount;0<=nr?rr<nr:rr>nr;rr=0<=nr?++rr:--rr)tr={tag:er.readString(4),checksum:er.readInt(),offset:er.readInt(),length:er.readInt()},this.tables[tr.tag]=tr}return e.prototype.encode=function(tr){var rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr,pr,Ar;for(Ar in hr=Object.keys(tr).length,sr=Math.log(2),ur=16*Math.floor(Math.log(hr)/sr),ir=Math.floor(ur/sr),cr=16*hr-ur,(nr=new Dg).writeInt(this.scalarType),nr.writeShort(hr),nr.writeShort(ur),nr.writeShort(ir),nr.writeShort(cr),ar=16*hr,lr=nr.pos+ar,or=null,pr=[],tr)for(dr=tr[Ar],nr.writeString(Ar),nr.writeInt(er(dr)),nr.writeInt(lr),nr.writeInt(dr.length),pr=pr.concat(dr),"head"===Ar&&(or=lr),lr+=dr.length;lr%4;)pr.push(0),lr++;return nr.write(pr),rr=2981146554-er(nr.data),nr.pos=or+8,nr.writeUInt32(rr),nr.data},er=function t(er){var tr,rr,nr,ar;for(er=em.call(er);er.length%4;)er.push(0);for(nr=new Dg(er),rr=0,tr=0,ar=er.length;tr<ar;tr=tr+=4)rr+=nr.readUInt32();return 4294967295&rr},e}(),Hg={}.hasOwnProperty,Gg=function Ut(er,tr){for(var rr in tr)Hg.call(tr,rr)&&(er[rr]=tr[rr]);function r(){this.constructor=er}return r.prototype=tr.prototype,er.prototype=new r,er.__super__=tr.prototype,er};Og=function(){function t(er){var tr;this.file=er,tr=this.file.directory.tables[this.tag],this.exists=!!tr,tr&&(this.offset=tr.offset,this.length=tr.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 Vg=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Gg(e,Og),e.prototype.tag="head",e.prototype.parse=function(er){return er.pos=this.offset,this.version=er.readInt(),this.revision=er.readInt(),this.checkSumAdjustment=er.readInt(),this.magicNumber=er.readInt(),this.flags=er.readShort(),this.unitsPerEm=er.readShort(),this.created=er.readLongLong(),this.modified=er.readLongLong(),this.xMin=er.readShort(),this.yMin=er.readShort(),this.xMax=er.readShort(),this.yMax=er.readShort(),this.macStyle=er.readShort(),this.lowestRecPPEM=er.readShort(),this.fontDirectionHint=er.readShort(),this.indexToLocFormat=er.readShort(),this.glyphDataFormat=er.readShort()},e.prototype.encode=function(er){var tr;return(tr=new Dg).writeInt(this.version),tr.writeInt(this.revision),tr.writeInt(this.checkSumAdjustment),tr.writeInt(this.magicNumber),tr.writeShort(this.flags),tr.writeShort(this.unitsPerEm),tr.writeLongLong(this.created),tr.writeLongLong(this.modified),tr.writeShort(this.xMin),tr.writeShort(this.yMin),tr.writeShort(this.xMax),tr.writeShort(this.yMax),tr.writeShort(this.macStyle),tr.writeShort(this.lowestRecPPEM),tr.writeShort(this.fontDirectionHint),tr.writeShort(er),tr.writeShort(this.glyphDataFormat),tr.data},e}(),zg=function(){function t(er,tr){var rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r;switch(this.platformID=er.readUInt16(),this.encodingID=er.readShort(),this.offset=tr+er.readInt(),ur=er.pos,er.pos=this.offset,this.format=er.readUInt16(),this.length=er.readUInt16(),this.language=er.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(sr=0;sr<256;++sr)this.codeMap[sr]=er.readByte();break;case 4:for(hr=er.readUInt16(),dr=hr/2,er.pos+=6,ar=function(){var tr,rr;for(rr=[],sr=tr=0;0<=dr?tr<dr:tr>dr;sr=0<=dr?++tr:--tr)rr.push(er.readUInt16());return rr}(),er.pos+=2,Ar=function(){var tr,rr;for(rr=[],sr=tr=0;0<=dr?tr<dr:tr>dr;sr=0<=dr?++tr:--tr)rr.push(er.readUInt16());return rr}(),lr=function(){var tr,rr;for(rr=[],sr=tr=0;0<=dr?tr<dr:tr>dr;sr=0<=dr?++tr:--tr)rr.push(er.readUInt16());return rr}(),cr=function(){var tr,rr;for(rr=[],sr=tr=0;0<=dr?tr<dr:tr>dr;sr=0<=dr?++tr:--tr)rr.push(er.readUInt16());return rr}(),nr=(this.length-er.pos+this.offset)/2,or=function(){var tr,rr;for(rr=[],sr=tr=0;0<=nr?tr<nr:tr>nr;sr=0<=nr?++tr:--tr)rr.push(er.readUInt16());return rr}(),sr=gr=0,_r=ar.length;gr<_r;sr=++gr)for(fr=ar[sr],rr=mr=pr=Ar[sr];pr<=fr?mr<=fr:mr>=fr;rr=pr<=fr?++mr:--mr)0===cr[sr]?ir=rr+lr[sr]:0!==(ir=or[cr[sr]/2+(rr-pr)-(dr-sr)]||0)&&(ir+=lr[sr]),this.codeMap[rr]=65535&ir}er.pos=ur}return t.encode=function(er,tr){var rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,kr,xr,Sr,Cr,Br,Er,Nr,Lr,Pr,Tr,Fr,Ur,Ir,Rr,Mr,Qr,Or,Dr,jr,Hr,Gr,Vr,zr,Kr,qr;switch(Nr=new Dg,ir=Object.keys(er).sort((function(er,tr){return er-tr})),tr){case"macroman":for(Ar=0,fr=function(){var er=[];for(pr=0;pr<256;++pr)er.push(0);return er}(),mr={0:0},ar={},Lr=0,Ur=ir.length;Lr<Ur;Lr++)null==mr[Vr=er[nr=ir[Lr]]]&&(mr[Vr]=++Ar),ar[nr]={old:er[nr],new:mr[er[nr]]},fr[nr]=mr[er[nr]];return Nr.writeUInt16(1),Nr.writeUInt16(0),Nr.writeUInt32(12),Nr.writeUInt16(0),Nr.writeUInt16(262),Nr.writeUInt16(0),Nr.write(fr),{charMap:ar,subtable:Nr.data,maxGlyphID:Ar+1};case"unicode":for(Br=[],ur=[],_r=0,mr={},rr={},gr=lr=null,Pr=0,Ir=ir.length;Pr<Ir;Pr++)null==mr[yr=er[nr=ir[Pr]]]&&(mr[yr]=++_r),rr[nr]={old:yr,new:mr[yr]},or=mr[yr]-nr,null!=gr&&or===lr||(gr&&ur.push(gr),Br.push(nr),lr=or),gr=nr;for(gr&&ur.push(gr),ur.push(65535),Br.push(65535),Sr=2*(xr=Br.length),kr=2*Math.pow(Math.log(xr)/Math.LN2,2),dr=Math.log(kr/2)/Math.LN2,wr=2*xr-kr,sr=[],br=[],hr=[],pr=Tr=0,Rr=Br.length;Tr<Rr;pr=++Tr){if(Cr=Br[pr],cr=ur[pr],65535===Cr){sr.push(0),br.push(0);break}if(Cr-(Er=rr[Cr].new)>=32768)for(sr.push(0),br.push(2*(hr.length+xr-pr)),nr=Fr=Cr;Cr<=cr?Fr<=cr:Fr>=cr;nr=Cr<=cr?++Fr:--Fr)hr.push(rr[nr].new);else sr.push(Er-Cr),br.push(0)}for(Nr.writeUInt16(3),Nr.writeUInt16(1),Nr.writeUInt32(12),Nr.writeUInt16(4),Nr.writeUInt16(16+8*xr+2*hr.length),Nr.writeUInt16(0),Nr.writeUInt16(Sr),Nr.writeUInt16(kr),Nr.writeUInt16(dr),Nr.writeUInt16(wr),Hr=0,Mr=ur.length;Hr<Mr;Hr++)nr=ur[Hr],Nr.writeUInt16(nr);for(Nr.writeUInt16(0),Gr=0,Qr=Br.length;Gr<Qr;Gr++)nr=Br[Gr],Nr.writeUInt16(nr);for(zr=0,Or=sr.length;zr<Or;zr++)or=sr[zr],Nr.writeUInt16(or);for(Kr=0,Dr=br.length;Kr<Dr;Kr++)vr=br[Kr],Nr.writeUInt16(vr);for(qr=0,jr=hr.length;qr<jr;qr++)Ar=hr[qr],Nr.writeUInt16(Ar);return{charMap:rr,subtable:Nr.data,maxGlyphID:_r+1}}},t}(),Kg=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Gg(e,Og),e.prototype.tag="cmap",e.prototype.parse=function(er){var tr,rr,nr;for(er.pos=this.offset,this.version=er.readUInt16(),nr=er.readUInt16(),this.tables=[],this.unicode=null,rr=0;0<=nr?rr<nr:rr>nr;rr=0<=nr?++rr:--rr)tr=new zg(er,this.offset),this.tables.push(tr),tr.isUnicode&&null==this.unicode&&(this.unicode=tr);return!0},e.encode=function(er,tr){var rr,nr;return null==tr&&(tr="macroman"),rr=zg.encode(er,tr),(nr=new Dg).writeUInt16(0),nr.writeUInt16(1),rr.table=nr.data.concat(rr.subtable),rr},e}(),qg=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Gg(e,Og),e.prototype.tag="hhea",e.prototype.parse=function(er){return er.pos=this.offset,this.version=er.readInt(),this.ascender=er.readShort(),this.decender=er.readShort(),this.lineGap=er.readShort(),this.advanceWidthMax=er.readShort(),this.minLeftSideBearing=er.readShort(),this.minRightSideBearing=er.readShort(),this.xMaxExtent=er.readShort(),this.caretSlopeRise=er.readShort(),this.caretSlopeRun=er.readShort(),this.caretOffset=er.readShort(),er.pos+=8,this.metricDataFormat=er.readShort(),this.numberOfMetrics=er.readUInt16()},e}(),Wg=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Gg(e,Og),e.prototype.tag="OS/2",e.prototype.parse=function(er){if(er.pos=this.offset,this.version=er.readUInt16(),this.averageCharWidth=er.readShort(),this.weightClass=er.readUInt16(),this.widthClass=er.readUInt16(),this.type=er.readShort(),this.ySubscriptXSize=er.readShort(),this.ySubscriptYSize=er.readShort(),this.ySubscriptXOffset=er.readShort(),this.ySubscriptYOffset=er.readShort(),this.ySuperscriptXSize=er.readShort(),this.ySuperscriptYSize=er.readShort(),this.ySuperscriptXOffset=er.readShort(),this.ySuperscriptYOffset=er.readShort(),this.yStrikeoutSize=er.readShort(),this.yStrikeoutPosition=er.readShort(),this.familyClass=er.readShort(),this.panose=function(){var tr,rr;for(rr=[],tr=0;tr<10;++tr)rr.push(er.readByte());return rr}(),this.charRange=function(){var tr,rr;for(rr=[],tr=0;tr<4;++tr)rr.push(er.readInt());return rr}(),this.vendorID=er.readString(4),this.selection=er.readShort(),this.firstCharIndex=er.readShort(),this.lastCharIndex=er.readShort(),this.version>0&&(this.ascent=er.readShort(),this.descent=er.readShort(),this.lineGap=er.readShort(),this.winAscent=er.readShort(),this.winDescent=er.readShort(),this.codePageRange=function(){var tr,rr;for(rr=[],tr=0;tr<2;tr=++tr)rr.push(er.readInt());return rr}(),this.version>1))return this.xHeight=er.readShort(),this.capHeight=er.readShort(),this.defaultChar=er.readShort(),this.breakChar=er.readShort(),this.maxContext=er.readShort()},e}(),Xg=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Gg(e,Og),e.prototype.tag="post",e.prototype.parse=function(er){var tr,rr,nr;switch(er.pos=this.offset,this.format=er.readInt(),this.italicAngle=er.readInt(),this.underlinePosition=er.readShort(),this.underlineThickness=er.readShort(),this.isFixedPitch=er.readInt(),this.minMemType42=er.readInt(),this.maxMemType42=er.readInt(),this.minMemType1=er.readInt(),this.maxMemType1=er.readInt(),this.format){case 65536:break;case 131072:var ar;for(rr=er.readUInt16(),this.glyphNameIndex=[],ar=0;0<=rr?ar<rr:ar>rr;ar=0<=rr?++ar:--ar)this.glyphNameIndex.push(er.readUInt16());for(this.names=[],nr=[];er.pos<this.offset+this.length;)tr=er.readByte(),nr.push(this.names.push(er.readString(tr)));return nr;case 151552:return rr=er.readUInt16(),this.offsets=er.read(rr);case 196608:break;case 262144:return this.map=function(){var tr,rr,nr;for(nr=[],ar=tr=0,rr=this.file.maxp.numGlyphs;0<=rr?tr<rr:tr>rr;ar=0<=rr?++tr:--tr)nr.push(er.readUInt32());return nr}.call(this)}},e}(),Yg=function Jt(er,tr){this.raw=er,this.length=er.length,this.platformID=tr.platformID,this.encodingID=tr.encodingID,this.languageID=tr.languageID},Jg=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Gg(e,Og),e.prototype.tag="name",e.prototype.parse=function(er){var tr,rr,nr,ar,ir,or,sr,lr,cr,ur,dr;for(er.pos=this.offset,er.readShort(),tr=er.readShort(),or=er.readShort(),rr=[],ar=0;0<=tr?ar<tr:ar>tr;ar=0<=tr?++ar:--ar)rr.push({platformID:er.readShort(),encodingID:er.readShort(),languageID:er.readShort(),nameID:er.readShort(),length:er.readShort(),offset:this.offset+or+er.readShort()});for(sr={},ar=cr=0,ur=rr.length;cr<ur;ar=++cr)nr=rr[ar],er.pos=nr.offset,lr=er.readString(nr.length),ir=new Yg(lr,nr),null==sr[dr=nr.nameID]&&(sr[dr]=[]),sr[nr.nameID].push(ir);this.strings=sr,this.copyright=sr[0],this.fontFamily=sr[1],this.fontSubfamily=sr[2],this.uniqueSubfamily=sr[3],this.fontName=sr[4],this.version=sr[5];try{this.postscriptName=sr[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(er){this.postscriptName=sr[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=sr[7],this.manufacturer=sr[8],this.designer=sr[9],this.description=sr[10],this.vendorUrl=sr[11],this.designerUrl=sr[12],this.license=sr[13],this.licenseUrl=sr[14],this.preferredFamily=sr[15],this.preferredSubfamily=sr[17],this.compatibleFull=sr[18],this.sampleText=sr[19]},e}(),$g=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Gg(e,Og),e.prototype.tag="maxp",e.prototype.parse=function(er){return er.pos=this.offset,this.version=er.readInt(),this.numGlyphs=er.readUInt16(),this.maxPoints=er.readUInt16(),this.maxContours=er.readUInt16(),this.maxCompositePoints=er.readUInt16(),this.maxComponentContours=er.readUInt16(),this.maxZones=er.readUInt16(),this.maxTwilightPoints=er.readUInt16(),this.maxStorage=er.readUInt16(),this.maxFunctionDefs=er.readUInt16(),this.maxInstructionDefs=er.readUInt16(),this.maxStackElements=er.readUInt16(),this.maxSizeOfInstructions=er.readUInt16(),this.maxComponentElements=er.readUInt16(),this.maxComponentDepth=er.readUInt16()},e}(),Zg=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Gg(e,Og),e.prototype.tag="hmtx",e.prototype.parse=function(er){var tr,rr,nr,ar,ir,or,sr;for(er.pos=this.offset,this.metrics=[],tr=0,or=this.file.hhea.numberOfMetrics;0<=or?tr<or:tr>or;tr=0<=or?++tr:--tr)this.metrics.push({advance:er.readUInt16(),lsb:er.readInt16()});for(nr=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var rr,ar;for(ar=[],tr=rr=0;0<=nr?rr<nr:rr>nr;tr=0<=nr?++rr:--rr)ar.push(er.readInt16());return ar}(),this.widths=function(){var er,tr,rr,nr;for(nr=[],er=0,tr=(rr=this.metrics).length;er<tr;er++)ar=rr[er],nr.push(ar.advance);return nr}.call(this),rr=this.widths[this.widths.length-1],sr=[],tr=ir=0;0<=nr?ir<nr:ir>nr;tr=0<=nr?++ir:--ir)sr.push(this.widths.push(rr));return sr},e.prototype.forGlyph=function(er){return er in this.metrics?this.metrics[er]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[er-this.metrics.length]}},e}(),em=[].slice,tm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Gg(e,Og),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(er){var tr,rr,nr,ar,ir,or,sr,lr,cr,ur;return er in this.cache?this.cache[er]:(ar=this.file.loca,tr=this.file.contents,rr=ar.indexOf(er),0===(nr=ar.lengthOf(er))?this.cache[er]=null:(tr.pos=this.offset+rr,ir=(or=new Dg(tr.read(nr))).readShort(),lr=or.readShort(),ur=or.readShort(),sr=or.readShort(),cr=or.readShort(),this.cache[er]=-1===ir?new nm(or,lr,ur,sr,cr):new rm(or,ir,lr,ur,sr,cr),this.cache[er]))},e.prototype.encode=function(er,tr,rr){var nr,ar,ir,or,sr;for(ir=[],ar=[],or=0,sr=tr.length;or<sr;or++)nr=er[tr[or]],ar.push(ir.length),nr&&(ir=ir.concat(nr.encode(rr)));return ar.push(ir.length),{table:ir,offsets:ar}},e}(),rm=function(){function t(er,tr,rr,nr,ar,ir){this.raw=er,this.numberOfContours=tr,this.xMin=rr,this.yMin=nr,this.xMax=ar,this.yMax=ir,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),nm=function(){function t(er,tr,rr,nr,ar){var ir,or;for(this.raw=er,this.xMin=tr,this.yMin=rr,this.xMax=nr,this.yMax=ar,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ir=this.raw;or=ir.readShort(),this.glyphOffsets.push(ir.pos),this.glyphIDs.push(ir.readUInt16()),32∨)ir.pos+=1&or?4:2,128&or?ir.pos+=8:64&or?ir.pos+=4:8&or&&(ir.pos+=2)}return t.prototype.encode=function(){var er,tr,rr;for(tr=new Dg(em.call(this.raw.data)),er=0,rr=this.glyphIDs.length;er<rr;++er)tr.pos=this.glyphOffsets[er];return tr.data},t}(),am=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Gg(e,Og),e.prototype.tag="loca",e.prototype.parse=function(er){var tr,rr;return er.pos=this.offset,tr=this.file.head.indexToLocFormat,this.offsets=0===tr?function(){var tr,nr;for(nr=[],rr=0,tr=this.length;rr<tr;rr+=2)nr.push(2*er.readUInt16());return nr}.call(this):function(){var tr,nr;for(nr=[],rr=0,tr=this.length;rr<tr;rr+=4)nr.push(er.readUInt32());return nr}.call(this)},e.prototype.indexOf=function(er){return this.offsets[er]},e.prototype.lengthOf=function(er){return this.offsets[er+1]-this.offsets[er]},e.prototype.encode=function(er,tr){for(var rr=new Uint32Array(this.offsets.length),nr=0,ar=0,ir=0;ir<rr.length;++ir)if(rr[ir]=nr,ar<tr.length&&tr[ar]==ir){++ar,rr[ir]=nr;var or=this.offsets[ir],sr=this.offsets[ir+1]-or;sr>0&&(nr+=sr)}for(var lr=new Array(4*rr.length),cr=0;cr<rr.length;++cr)lr[4*cr+3]=255&rr[cr],lr[4*cr+2]=(65280&rr[cr])>>8,lr[4*cr+1]=(16711680&rr[cr])>>16,lr[4*cr]=(4278190080&rr[cr])>>24;return lr},e}(),im=function(){function t(er){this.font=er,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var er,tr,rr,nr,ar;for(tr in nr=this.font.cmap.tables[0].codeMap,er={},ar=this.subset)rr=ar[tr],er[tr]=nr[rr];return er},t.prototype.glyphsFor=function(er){var tr,rr,nr,ar,ir,or,sr;for(nr={},ir=0,or=er.length;ir<or;ir++)nr[ar=er[ir]]=this.font.glyf.glyphFor(ar);for(ar in tr=[],nr)(null!=(rr=nr[ar])?rr.compound:void 0)&&tr.push.apply(tr,rr.glyphIDs);if(tr.length>0)for(ar in sr=this.glyphsFor(tr))rr=sr[ar],nr[ar]=rr;return nr},t.prototype.encode=function(er,tr){var rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr;for(nr in rr=Kg.encode(this.generateCmap(),"unicode"),ir=this.glyphsFor(er),hr={0:0},gr=rr.charMap)hr[(sr=gr[nr]).old]=sr.new;for(pr in dr=rr.maxGlyphID,ir)pr in hr||(hr[pr]=dr++);return cr=function(er){var tr,rr;for(tr in rr={},er)rr[er[tr]]=tr;return rr}(hr),ur=Object.keys(cr).sort((function(er,tr){return er-tr})),Ar=function(){var er,tr,rr;for(rr=[],er=0,tr=ur.length;er<tr;er++)or=ur[er],rr.push(cr[or]);return rr}(),ar=this.font.glyf.encode(ir,Ar,hr),lr=this.font.loca.encode(ar.offsets,Ar),fr={cmap:this.font.cmap.raw(),glyf:ar.table,loca:lr,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(tr)},this.font.os2.exists&&(fr["OS/2"]=this.font.os2.raw()),this.font.directory.encode(fr)},t}();g.API.PDFObject=function(){var er;function e(){}return er=function t(er,tr){return(Array(tr+1).join("0")+er).slice(-tr)},e.convert=function(tr){var rr,nr,ar,ir;if(Array.isArray(tr))return"["+function(){var er,nr,ar;for(ar=[],er=0,nr=tr.length;er<nr;er++)rr=tr[er],ar.push(e.convert(rr));return ar}().join(" ")+"]";if("string"==typeof tr)return"/"+tr;if(null!=tr?tr.isString:void 0)return"("+tr+")";if(tr instanceof Date)return"(D:"+er(tr.getUTCFullYear(),4)+er(tr.getUTCMonth(),2)+er(tr.getUTCDate(),2)+er(tr.getUTCHours(),2)+er(tr.getUTCMinutes(),2)+er(tr.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(tr)){for(nr in ar=["<<"],tr)ir=tr[nr],ar.push("/"+nr+" "+e.convert(ir));return ar.push(">>"),ar.join("\n")}return""+tr},e}(),g.API.adler32cs=function(){var er,tr,rr,nr,ar,ir="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,or=null,sr=function(){if(!ir)return function(){return!1};try{var er={};"function"==typeof er.Buffer&&(or=er.Buffer)}catch(er){}return function(er){return er instanceof ArrayBuffer||null!==or&&er instanceof or}}(),lr=null!==or?function(er){return new or(er,"utf8").toString("binary")}:function(er){return unescape(encodeURIComponent(er))},cr=function i(er,tr){for(var rr=65535&er,nr=er>>>16,i=0,ar=tr.length;i<ar;i++)nr=(nr+(rr=(rr+(255&tr.charCodeAt(i)))%65521))%65521;return(nr<<16|rr)>>>0},ur=function a(er,tr){for(var rr=65535&er,nr=er>>>16,ar=0,a=tr.length;ar<a;ar++)nr=(nr+(rr=(rr+tr[ar])%65521))%65521;return(nr<<16|rr)>>>0},dr={},hr=dr.Adler32=((ar=(nr=function l(er){if(!(this instanceof nr))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(er=null===er?1:+er))throw new Error("First arguments needs to be a finite number.");this.checksum=er>>>0}).prototype={}).constructor=nr,nr.from=((er=function u(er){if(!(this instanceof nr))throw new TypeError("Constructor cannot called be as a function.");if(null===er)throw new Error("First argument needs to be a string.");this.checksum=cr(1,er.toString())}).prototype=ar,er),nr.fromUtf8=((tr=function c(er){if(!(this instanceof nr))throw new TypeError("Constructor cannot called be as a function.");if(null===er)throw new Error("First argument needs to be a string.");var tr=lr(er.toString());this.checksum=cr(1,tr)}).prototype=ar,tr),ir&&(nr.fromBuffer=((rr=function h(er){if(!(this instanceof nr))throw new TypeError("Constructor cannot called be as a function.");if(!sr(er))throw new Error("First argument needs to be ArrayBuffer.");var tr=new Uint8Array(er);return this.checksum=ur(1,tr)}).prototype=ar,rr)),ar.update=function(er){if(null===er)throw new Error("First argument needs to be a string.");return er=er.toString(),this.checksum=cr(this.checksum,er)},ar.updateUtf8=function(er){if(null===er)throw new Error("First argument needs to be a string.");var tr=lr(er.toString());return this.checksum=cr(this.checksum,tr)},ir&&(ar.updateBuffer=function(er){if(!sr(er))throw new Error("First argument needs to be ArrayBuffer.");var tr=new Uint8Array(er);return this.checksum=ur(this.checksum,tr)}),ar.clone=function(){return new hr(this.checksum)},nr);return dr.from=function(er){if(null===er)throw new Error("First argument needs to be a string.");return cr(1,er.toString())},dr.fromUtf8=function(er){if(null===er)throw new Error("First argument needs to be a string.");var tr=lr(er.toString());return cr(1,tr)},ir&&(dr.fromBuffer=function(er){if(!sr(er))throw new Error("First argument need to be ArrayBuffer.");var tr=new Uint8Array(er);return ur(1,tr)}),dr}(),_export({target:"Array",proto:!0,forced:Ap!==[].lastIndexOf},{lastIndexOf:Ap}),_export({target:"String",proto:!0,forced:stringHtmlForced("anchor")},{anchor:function anchor(er){return createHtml(this,"a","name",er)}});
|
||
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
||
var om={}.hasOwnProperty,sm=/[ -,\.\/:-@\[-\^`\{-~]/,lm=/[ -,\.\/:-@\[\]\^`\{-~]/,cm=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,um=function cssesc(er,tr){"single"!=(tr=function merge(er,tr){if(!er)return tr;var rr={};for(var nr in tr)rr[nr]=om.call(er,nr)?er[nr]:tr[nr];return rr}(tr,cssesc.options)).quotes&&"double"!=tr.quotes&&(tr.quotes="single");for(var rr="double"==tr.quotes?'"':"'",nr=tr.isIdentifier,ar=er.charAt(0),ir="",or=0,sr=er.length;or<sr;){var lr=er.charAt(or++),cr=lr.charCodeAt(),ur=void 0;if(cr<32||cr>126){if(cr>=55296&&cr<=56319&&or<sr){var dr=er.charCodeAt(or++);56320==(64512&dr)?cr=((1023&cr)<<10)+(1023&dr)+65536:or--}ur="\\"+cr.toString(16).toUpperCase()+" "}else ur=tr.escapeEverything?sm.test(lr)?"\\"+lr:"\\"+cr.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(lr)?"\\"+cr.toString(16).toUpperCase()+" ":"\\"==lr||!nr&&('"'==lr&&rr==lr||"'"==lr&&rr==lr)||nr&&lm.test(lr)?"\\"+lr:lr;ir+=ur}return nr&&(/^-[-\d]/.test(ir)?ir="\\-"+ir.slice(1):/\d/.test(ar)&&(ir="\\3"+ar+" "+ir.slice(1))),ir=ir.replace(cm,(function(er,tr,rr){return tr&&tr.length%2?er:(tr||"")+rr})),!nr&&tr.wrap?rr+ir+rr:ir};um.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},um.version="3.0.0";var dm=um,hm=/[a-z0-9_-]/i,pm=/[\s\t]/,Am=function parse(er){for(var tr,rr,nr=!0,ar=0,ir="",or=0,sr=[];;){if(rr=er[or],0===ar){if(!rr&&nr)break;if(!rr&&!nr)throw new Error("Parse error");if('"'===rr||"'"===rr)tr=rr,ar=1,nr=!1;else if(pm.test(rr));else{if(!hm.test(rr))throw new Error("Parse error");ar=3,nr=!1,or--}}else if(1===ar){if(!rr)throw new Error("Parse Error");"\\"===rr?ar=2:rr===tr?(sr.push(ir),ir="",ar=4):ir+=rr}else if(2===ar){if(rr!==tr&&"\\"!==rr)throw new Error("Parse error");ir+=rr,ar=1}else if(3===ar){if(!rr){sr.push(ir);break}if(hm.test(rr))ir+=rr;else if(","===rr)sr.push(ir),ir="",ar=0;else{if(!pm.test(rr))throw new Error("Parse error");ar=5}}else if(5===ar){if(!rr){sr.push(ir);break}if(hm.test(rr))ir+=" "+rr,ar=3;else if(","===rr)sr.push(ir),ir="",ar=0;else if(!pm.test(rr))throw new Error("Parse error")}else if(4===ar){if(!rr)break;if(","===rr)ar=0;else if(!pm.test(rr))throw new Error("Parse error")}or++}return sr},fm={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},gm=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isDigit(er){return er>=48&&er<=57}function State(er){this.index=0,this.path=er,this.max=er.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(er){for(;er.index<er.max&&(10===(tr=er.path.charCodeAt(er.index))||13===tr||8232===tr||8233===tr||32===tr||9===tr||11===tr||12===tr||160===tr||tr>=5760&&gm.indexOf(tr)>=0);)er.index++;var tr}function scanFlag(er){var tr=er.path.charCodeAt(er.index);return 48===tr?(er.param=0,void er.index++):49===tr?(er.param=1,void er.index++):void(er.err="SvgPath: arc flag can be 0 or 1 only (at pos "+er.index+")")}function scanParam(er){var tr,rr=er.index,nr=rr,ar=er.max,ir=!1,or=!1,sr=!1,lr=!1;if(nr>=ar)er.err="SvgPath: missed param (at pos "+nr+")";else if(43!==(tr=er.path.charCodeAt(nr))&&45!==tr||(tr=++nr<ar?er.path.charCodeAt(nr):0),isDigit(tr)||46===tr){if(46!==tr){if(ir=48===tr,tr=++nr<ar?er.path.charCodeAt(nr):0,ir&&nr<ar&&tr&&isDigit(tr))return void(er.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+rr+")");for(;nr<ar&&isDigit(er.path.charCodeAt(nr));)nr++,or=!0;tr=nr<ar?er.path.charCodeAt(nr):0}if(46===tr){for(lr=!0,nr++;isDigit(er.path.charCodeAt(nr));)nr++,sr=!0;tr=nr<ar?er.path.charCodeAt(nr):0}if(101===tr||69===tr){if(lr&&!or&&!sr)return void(er.err="SvgPath: invalid float exponent (at pos "+nr+")");if(43!==(tr=++nr<ar?er.path.charCodeAt(nr):0)&&45!==tr||nr++,!(nr<ar&&isDigit(er.path.charCodeAt(nr))))return void(er.err="SvgPath: invalid float exponent (at pos "+nr+")");for(;nr<ar&&isDigit(er.path.charCodeAt(nr));)nr++}er.index=nr,er.param=parseFloat(er.path.slice(rr,nr))+0}else er.err="SvgPath: param should start with 0..9 or `.` (at pos "+nr+")"}function finalizeSegment(er){var tr,rr;rr=(tr=er.path[er.segmentStart]).toLowerCase();var nr=er.data;if("m"===rr&&nr.length>2&&(er.result.push([tr,nr[0],nr[1]]),nr=nr.slice(2),rr="l",tr="m"===tr?"l":"L"),"r"===rr)er.result.push([tr].concat(nr));else for(;nr.length>=fm[rr]&&(er.result.push([tr].concat(nr.splice(0,fm[rr]))),fm[rr]););}function scanSegment(er){var tr,rr,nr,ar,ir,or=er.max;if(er.segmentStart=er.index,rr=function isArc(er){return 97==(32|er)}(tr=er.path.charCodeAt(er.index)),function isCommand(er){switch(32|er){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}(tr))if(ar=fm[er.path[er.index].toLowerCase()],er.index++,skipSpaces(er),er.data=[],ar){for(nr=!1;;){for(ir=ar;ir>0;ir--){if(!rr||3!==ir&&4!==ir?scanParam(er):scanFlag(er),er.err.length)return;er.data.push(er.param),skipSpaces(er),nr=!1,er.index<or&&44===er.path.charCodeAt(er.index)&&(er.index++,skipSpaces(er),nr=!0)}if(!nr){if(er.index>=er.max)break;if(!((sr=er.path.charCodeAt(er.index))>=48&&sr<=57||43===sr||45===sr||46===sr))break}}var sr;finalizeSegment(er)}else finalizeSegment(er);else er.err="SvgPath: bad command "+er.path[er.index]+" (at pos "+er.index+")"}function Matrix(){if(!(this instanceof Matrix))return new Matrix;this.queue=[],this.cache=null}Matrix.prototype.matrix=function(er){return 1===er[0]&&0===er[1]&&0===er[2]&&1===er[3]&&0===er[4]&&0===er[5]||(this.cache=null,this.queue.push(er)),this},Matrix.prototype.translate=function(er,tr){return 0===er&&0===tr||(this.cache=null,this.queue.push([1,0,0,1,er,tr])),this},Matrix.prototype.scale=function(er,tr){return 1===er&&1===tr||(this.cache=null,this.queue.push([er,0,0,tr,0,0])),this},Matrix.prototype.rotate=function(er,tr,rr){var nr,ar,ir;return 0!==er&&(this.translate(tr,rr),nr=er*Math.PI/180,ar=Math.cos(nr),ir=Math.sin(nr),this.queue.push([ar,ir,-ir,ar,0,0]),this.cache=null,this.translate(-tr,-rr)),this},Matrix.prototype.skewX=function(er){return 0!==er&&(this.cache=null,this.queue.push([1,0,Math.tan(er*Math.PI/180),1,0,0])),this},Matrix.prototype.skewY=function(er){return 0!==er&&(this.cache=null,this.queue.push([1,Math.tan(er*Math.PI/180),0,1,0,0])),this},Matrix.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 er=1;er<this.queue.length;er++)this.cache=(tr=this.cache,rr=this.queue[er],[tr[0]*rr[0]+tr[2]*rr[1],tr[1]*rr[0]+tr[3]*rr[1],tr[0]*rr[2]+tr[2]*rr[3],tr[1]*rr[2]+tr[3]*rr[3],tr[0]*rr[4]+tr[2]*rr[5]+tr[4],tr[1]*rr[4]+tr[3]*rr[5]+tr[5]]);var tr,rr;return this.cache},Matrix.prototype.calc=function(er,tr,rr){var nr;return this.queue.length?(this.cache||(this.cache=this.toArray()),[er*(nr=this.cache)[0]+tr*nr[2]+(rr?0:nr[4]),er*nr[1]+tr*nr[3]+(rr?0:nr[5])]):[er,tr]};var mm=Matrix,_m={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},vm=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,ym=/[\s,]+/,bm=2*Math.PI;function unit_vector_angle(er,tr,rr,nr){var ar=er*rr+tr*nr;return ar>1&&(ar=1),ar<-1&&(ar=-1),(er*nr-tr*rr<0?-1:1)*Math.acos(ar)}function approximate_unit_arc(er,tr){var rr=4/3*Math.tan(tr/4),nr=Math.cos(er),ar=Math.sin(er),ir=Math.cos(er+tr),or=Math.sin(er+tr);return[nr,ar,nr-ar*rr,ar+nr*rr,ir+or*rr,or-ir*rr,ir,or]}var wm=function a2c(er,tr,rr,nr,ar,ir,or,sr,lr){var cr=Math.sin(lr*bm/360),ur=Math.cos(lr*bm/360),dr=ur*(er-rr)/2+cr*(tr-nr)/2,hr=-cr*(er-rr)/2+ur*(tr-nr)/2;if(0===dr&&0===hr)return[];if(0===or||0===sr)return[];or=Math.abs(or),sr=Math.abs(sr);var pr=dr*dr/(or*or)+hr*hr/(sr*sr);pr>1&&(or*=Math.sqrt(pr),sr*=Math.sqrt(pr));var Ar=function get_arc_center(er,tr,rr,nr,ar,ir,or,sr,lr,cr){var ur=cr*(er-rr)/2+lr*(tr-nr)/2,dr=-lr*(er-rr)/2+cr*(tr-nr)/2,hr=or*or,pr=sr*sr,Ar=ur*ur,fr=dr*dr,gr=hr*pr-hr*fr-pr*Ar;gr<0&&(gr=0),gr/=hr*fr+pr*Ar;var mr=(gr=Math.sqrt(gr)*(ar===ir?-1:1))*or/sr*dr,_r=gr*-sr/or*ur,vr=cr*mr-lr*_r+(er+rr)/2,yr=lr*mr+cr*_r+(tr+nr)/2,br=(ur-mr)/or,wr=(dr-_r)/sr,kr=(-ur-mr)/or,xr=(-dr-_r)/sr,Sr=unit_vector_angle(1,0,br,wr),Cr=unit_vector_angle(br,wr,kr,xr);return 0===ir&&Cr>0&&(Cr-=bm),1===ir&&Cr<0&&(Cr+=bm),[vr,yr,Sr,Cr]}(er,tr,rr,nr,ar,ir,or,sr,cr,ur),fr=[],gr=Ar[2],mr=Ar[3],_r=Math.max(Math.ceil(Math.abs(mr)/(bm/4)),1);mr/=_r;for(var vr=0;vr<_r;vr++)fr.push(approximate_unit_arc(gr,mr)),gr+=mr;return fr.map((function(er){for(var tr=0;tr<er.length;tr+=2){var rr=er[tr+0],nr=er[tr+1],ar=ur*(rr*=or)-cr*(nr*=sr),ir=cr*rr+ur*nr;er[tr+0]=ar+Ar[0],er[tr+1]=ir+Ar[1]}return er}))},km=Math.PI/180;function Ellipse(er,tr,rr){if(!(this instanceof Ellipse))return new Ellipse(er,tr,rr);this.rx=er,this.ry=tr,this.ax=rr}Ellipse.prototype.transform=function(er){var tr=Math.cos(this.ax*km),rr=Math.sin(this.ax*km),nr=[this.rx*(er[0]*tr+er[2]*rr),this.rx*(er[1]*tr+er[3]*rr),this.ry*(-er[0]*rr+er[2]*tr),this.ry*(-er[1]*rr+er[3]*tr)],ar=nr[0]*nr[0]+nr[2]*nr[2],ir=nr[1]*nr[1]+nr[3]*nr[3],or=((nr[0]-nr[3])*(nr[0]-nr[3])+(nr[2]+nr[1])*(nr[2]+nr[1]))*((nr[0]+nr[3])*(nr[0]+nr[3])+(nr[2]-nr[1])*(nr[2]-nr[1])),sr=(ar+ir)/2;if(or<1e-10*sr)return this.rx=this.ry=Math.sqrt(sr),this.ax=0,this;var lr=nr[0]*nr[1]+nr[2]*nr[3],cr=sr+(or=Math.sqrt(or))/2,ur=sr-or/2;return this.ax=Math.abs(lr)<1e-10&&Math.abs(cr-ir)<1e-10?90:180*Math.atan(Math.abs(lr)>Math.abs(cr-ir)?(cr-ar)/lr:lr/(cr-ir))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(cr),this.ry=Math.sqrt(ur)):(this.ax+=90,this.rx=Math.sqrt(ur),this.ry=Math.sqrt(cr)),this},Ellipse.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx};var xm=Ellipse;function SvgPath(er){if(!(this instanceof SvgPath))return new SvgPath(er);var tr=function pathParse(er){var tr=new State(er),rr=tr.max;for(skipSpaces(tr);tr.index<rr&&!tr.err.length;)scanSegment(tr);return tr.err.length?tr.result=[]:tr.result.length&&("mM".indexOf(tr.result[0][0])<0?(tr.err="SvgPath: string should start with `M` or `m`",tr.result=[]):tr.result[0][0]="M"),{err:tr.err,segments:tr.result}}(er);this.segments=tr.segments,this.err=tr.err,this.__stack=[]}SvgPath.from=function(er){if("string"==typeof er)return new SvgPath(er);if(er instanceof SvgPath){var tr=new SvgPath("");return tr.err=er.err,tr.segments=er.segments.map((function(er){return er.slice()})),tr.__stack=er.__stack.map((function(er){return mm().matrix(er.toArray())})),tr}throw new Error("SvgPath.from: invalid param type "+er)},SvgPath.prototype.__matrix=function(er){var tr,rr=this;er.queue.length&&this.iterate((function(nr,ar,ir,or){var sr,lr,cr,ur;switch(nr[0]){case"v":lr=0===(sr=er.calc(0,nr[1],!0))[0]?["v",sr[1]]:["l",sr[0],sr[1]];break;case"V":lr=(sr=er.calc(ir,nr[1],!1))[0]===er.calc(ir,or,!1)[0]?["V",sr[1]]:["L",sr[0],sr[1]];break;case"h":lr=0===(sr=er.calc(nr[1],0,!0))[1]?["h",sr[0]]:["l",sr[0],sr[1]];break;case"H":lr=(sr=er.calc(nr[1],or,!1))[1]===er.calc(ir,or,!1)[1]?["H",sr[0]]:["L",sr[0],sr[1]];break;case"a":case"A":var dr=er.toArray(),hr=xm(nr[1],nr[2],nr[3]).transform(dr);if(dr[0]*dr[3]-dr[1]*dr[2]<0&&(nr[5]=nr[5]?"0":"1"),sr=er.calc(nr[6],nr[7],"a"===nr[0]),"A"===nr[0]&&nr[6]===ir&&nr[7]===or||"a"===nr[0]&&0===nr[6]&&0===nr[7]){lr=["a"===nr[0]?"l":"L",sr[0],sr[1]];break}lr=hr.isDegenerate()?["a"===nr[0]?"l":"L",sr[0],sr[1]]:[nr[0],hr.rx,hr.ry,hr.ax,nr[4],nr[5],sr[0],sr[1]];break;case"m":ur=ar>0,lr=["m",(sr=er.calc(nr[1],nr[2],ur))[0],sr[1]];break;default:for(lr=[cr=nr[0]],ur=cr.toLowerCase()===cr,tr=1;tr<nr.length;tr+=2)sr=er.calc(nr[tr],nr[tr+1],ur),lr.push(sr[0],sr[1])}rr.segments[ar]=lr}),!0)},SvgPath.prototype.__evaluateStack=function(){var er,tr;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(er=mm(),tr=this.__stack.length;--tr>=0;)er.matrix(this.__stack[tr].toArray());this.__matrix(er),this.__stack=[]}},SvgPath.prototype.toString=function(){var er,tr,rr=[];this.__evaluateStack();for(var nr=0;nr<this.segments.length;nr++)tr=this.segments[nr][0],er=nr>0&&"m"!==tr&&"M"!==tr&&tr===this.segments[nr-1][0],rr=rr.concat(er?this.segments[nr].slice(1):this.segments[nr]);return rr.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},SvgPath.prototype.translate=function(er,tr){return this.__stack.push(mm().translate(er,tr||0)),this},SvgPath.prototype.scale=function(er,tr){return this.__stack.push(mm().scale(er,tr||0===tr?tr:er)),this},SvgPath.prototype.rotate=function(er,tr,rr){return this.__stack.push(mm().rotate(er,tr||0,rr||0)),this},SvgPath.prototype.skewX=function(er){return this.__stack.push(mm().skewX(er)),this},SvgPath.prototype.skewY=function(er){return this.__stack.push(mm().skewY(er)),this},SvgPath.prototype.matrix=function(er){return this.__stack.push(mm().matrix(er)),this},SvgPath.prototype.transform=function(er){return er.trim()?(this.__stack.push(function transformParse(er){var tr,rr,nr=new mm;return er.split(vm).forEach((function(er){if(er.length)if(void 0===_m[er])switch(rr=er.split(ym).map((function(er){return+er||0})),tr){case"matrix":return void(6===rr.length&&nr.matrix(rr));case"scale":return void(1===rr.length?nr.scale(rr[0],rr[0]):2===rr.length&&nr.scale(rr[0],rr[1]));case"rotate":return void(1===rr.length?nr.rotate(rr[0],0,0):3===rr.length&&nr.rotate(rr[0],rr[1],rr[2]));case"translate":return void(1===rr.length?nr.translate(rr[0],0):2===rr.length&&nr.translate(rr[0],rr[1]));case"skewX":return void(1===rr.length&&nr.skewX(rr[0]));case"skewY":return void(1===rr.length&&nr.skewY(rr[0]))}else tr=er})),nr}(er)),this):this},SvgPath.prototype.round=function(er){var tr,rr=0,nr=0,ar=0,ir=0;return er=er||0,this.__evaluateStack(),this.segments.forEach((function(or){var sr=or[0].toLowerCase()===or[0];switch(or[0]){case"H":case"h":return sr&&(or[1]+=ar),ar=or[1]-or[1].toFixed(er),void(or[1]=+or[1].toFixed(er));case"V":case"v":return sr&&(or[1]+=ir),ir=or[1]-or[1].toFixed(er),void(or[1]=+or[1].toFixed(er));case"Z":case"z":return ar=rr,void(ir=nr);case"M":case"m":return sr&&(or[1]+=ar,or[2]+=ir),ar=or[1]-or[1].toFixed(er),ir=or[2]-or[2].toFixed(er),rr=ar,nr=ir,or[1]=+or[1].toFixed(er),void(or[2]=+or[2].toFixed(er));case"A":case"a":return sr&&(or[6]+=ar,or[7]+=ir),ar=or[6]-or[6].toFixed(er),ir=or[7]-or[7].toFixed(er),or[1]=+or[1].toFixed(er),or[2]=+or[2].toFixed(er),or[3]=+or[3].toFixed(er+2),or[6]=+or[6].toFixed(er),void(or[7]=+or[7].toFixed(er));default:return tr=or.length,sr&&(or[tr-2]+=ar,or[tr-1]+=ir),ar=or[tr-2]-or[tr-2].toFixed(er),ir=or[tr-1]-or[tr-1].toFixed(er),void or.forEach((function(tr,rr){rr&&(or[rr]=+or[rr].toFixed(er))}))}})),this},SvgPath.prototype.iterate=function(er,tr){var rr,nr,ar,ir=this.segments,or={},sr=!1,lr=0,cr=0,ur=0,dr=0;if(tr||this.__evaluateStack(),ir.forEach((function(tr,rr){var nr=er(tr,rr,lr,cr);Array.isArray(nr)&&(or[rr]=nr,sr=!0);var ar=tr[0]===tr[0].toLowerCase();switch(tr[0]){case"m":case"M":return lr=tr[1]+(ar?lr:0),cr=tr[2]+(ar?cr:0),ur=lr,void(dr=cr);case"h":case"H":return void(lr=tr[1]+(ar?lr:0));case"v":case"V":return void(cr=tr[1]+(ar?cr:0));case"z":case"Z":return lr=ur,void(cr=dr);default:lr=tr[tr.length-2]+(ar?lr:0),cr=tr[tr.length-1]+(ar?cr:0)}})),!sr)return this;for(ar=[],rr=0;rr<ir.length;rr++)if(void 0!==or[rr])for(nr=0;nr<or[rr].length;nr++)ar.push(or[rr][nr]);else ar.push(ir[rr]);return this.segments=ar,this},SvgPath.prototype.abs=function(){return this.iterate((function(er,tr,rr,nr){var ar,ir=er[0],or=ir.toUpperCase();if(ir!==or)switch(er[0]=or,ir){case"v":return void(er[1]+=nr);case"a":return er[6]+=rr,void(er[7]+=nr);default:for(ar=1;ar<er.length;ar++)er[ar]+=ar%2?rr:nr}}),!0),this},SvgPath.prototype.rel=function(){return this.iterate((function(er,tr,rr,nr){var ar,ir=er[0],or=ir.toLowerCase();if(ir!==or&&(0!==tr||"M"!==ir))switch(er[0]=or,ir){case"V":return void(er[1]-=nr);case"A":return er[6]-=rr,void(er[7]-=nr);default:for(ar=1;ar<er.length;ar++)er[ar]-=ar%2?rr:nr}}),!0),this},SvgPath.prototype.unarc=function(){return this.iterate((function(er,tr,rr,nr){var ar,ir,or,sr=[],lr=er[0];return"A"!==lr&&"a"!==lr?null:("a"===lr?(ir=rr+er[6],or=nr+er[7]):(ir=er[6],or=er[7]),0===(ar=wm(rr,nr,ir,or,er[4],er[5],er[1],er[2],er[3])).length?[["a"===er[0]?"l":"L",er[6],er[7]]]:(ar.forEach((function(er){sr.push(["C",er[2],er[3],er[4],er[5],er[6],er[7]])})),sr))})),this},SvgPath.prototype.unshort=function(){var er,tr,rr,nr,ar,ir=this.segments;return this.iterate((function(or,sr,lr,cr){var ur,dr=or[0],hr=dr.toUpperCase();sr&&("T"===hr?(ur="t"===dr,"Q"===(rr=ir[sr-1])[0]?(er=rr[1]-lr,tr=rr[2]-cr):"q"===rr[0]?(er=rr[1]-rr[3],tr=rr[2]-rr[4]):(er=0,tr=0),nr=-er,ar=-tr,ur||(nr+=lr,ar+=cr),ir[sr]=[ur?"q":"Q",nr,ar,or[1],or[2]]):"S"===hr&&(ur="s"===dr,"C"===(rr=ir[sr-1])[0]?(er=rr[3]-lr,tr=rr[4]-cr):"c"===rr[0]?(er=rr[3]-rr[5],tr=rr[4]-rr[6]):(er=0,tr=0),nr=-er,ar=-tr,ur||(nr+=lr,ar+=cr),ir[sr]=[ur?"c":"C",nr,ar,or[1],or[2],or[3],or[4]]))})),this};var Sm=SvgPath,Cm=function calculateSingle(er){var tr,rr,nr=er,ar={a:0,b:0,c:0},ir=[];return tr=function findMatch(tr,rr){var or,sr,lr,cr,ur,dr;if(tr.test(nr))for(sr=0,lr=(or=nr.match(tr)).length;sr<lr;sr+=1)ar[rr]+=1,cr=or[sr],ur=nr.indexOf(cr),dr=cr.length,ir.push({selector:er.substr(ur,dr),type:rr,index:ur,length:dr}),nr=nr.replace(cr,Array(dr+1).join(" "))},(rr=function replaceWithPlainText(er){var tr,rr,ar,ir;if(er.test(nr))for(rr=0,ar=(tr=nr.match(er)).length;rr<ar;rr+=1)ir=tr[rr],nr=nr.replace(ir,Array(ir.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),rr(/\\[0-9A-Fa-f]{1,5}\s/g),rr(/\\./g),function(){var er,tr,rr,ar,ir=/{[^]*/gm;if(ir.test(nr))for(tr=0,rr=(er=nr.match(ir)).length;tr<rr;tr+=1)ar=er[tr],nr=nr.replace(ar,Array(ar.length+1).join(" "))}(),tr(/(\[[^\]]+\])/g,"b"),tr(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),tr(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),tr(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),tr(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),tr(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),nr=(nr=(nr=(nr=(nr=(nr=nr.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),tr(/([^\s\+>~\.\[:]+)/g,"c"),ir.sort((function(er,tr){return er.index-tr.index})),{selector:er,specificity:"0,"+ar.a.toString()+","+ar.b.toString()+","+ar.c.toString(),specificityArray:[0,ar.a,ar.b,ar.c],parts:ir}},Bm=function extendStatics(er,tr){return(Bm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(er,tr){er.__proto__=tr}||function(er,tr){for(var rr in tr)tr.hasOwnProperty(rr)&&(er[rr]=tr[rr])})(er,tr)};function __extends(er,tr){function __(){this.constructor=er}Bm(er,tr),er.prototype=null===tr?Object.create(tr):(__.prototype=tr.prototype,new __)}var Em=function __assign(){return(Em=Object.assign||function __assign(er){for(var tr,rr=1,nr=arguments.length;rr<nr;rr++)for(var ar in tr=arguments[rr])Object.prototype.hasOwnProperty.call(tr,ar)&&(er[ar]=tr[ar]);return er}).apply(this,arguments)};function __awaiter(er,tr,rr,nr){return new(rr||(rr=Promise))((function(ar,ir){function fulfilled(er){try{step(nr.next(er))}catch(er){ir(er)}}function rejected(er){try{step(nr.throw(er))}catch(er){ir(er)}}function step(er){er.done?ar(er.value):function adopt(er){return er instanceof rr?er:new rr((function(tr){tr(er)}))}(er.value).then(fulfilled,rejected)}step((nr=nr.apply(er,tr||[])).next())}))}function __generator(er,tr){var rr,nr,ar,ir,or={label:0,sent:function sent(){if(1&ar[0])throw ar[1];return ar[1]},trys:[],ops:[]};return ir={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ir[Symbol.iterator]=function(){return this}),ir;function verb(ir){return function(sr){return function step(ir){if(rr)throw new TypeError("Generator is already executing.");for(;or;)try{if(rr=1,nr&&(ar=2&ir[0]?nr.return:ir[0]?nr.throw||((ar=nr.return)&&ar.call(nr),0):nr.next)&&!(ar=ar.call(nr,ir[1])).done)return ar;switch(nr=0,ar&&(ir=[2&ir[0],ar.value]),ir[0]){case 0:case 1:ar=ir;break;case 4:return or.label++,{value:ir[1],done:!1};case 5:or.label++,nr=ir[1],ir=[0];continue;case 7:ir=or.ops.pop(),or.trys.pop();continue;default:if(!(ar=or.trys,(ar=ar.length>0&&ar[ar.length-1])||6!==ir[0]&&2!==ir[0])){or=0;continue}if(3===ir[0]&&(!ar||ir[1]>ar[0]&&ir[1]<ar[3])){or.label=ir[1];break}if(6===ir[0]&&or.label<ar[1]){or.label=ar[1],ar=ir;break}if(ar&&or.label<ar[2]){or.label=ar[2],or.ops.push(ir);break}ar[2]&&or.ops.pop(),or.trys.pop();continue}ir=tr.call(er,or)}catch(er){ir=[6,er],nr=0}finally{rr=ar=0}if(5&ir[0])throw ir[1];return{value:ir[0]?ir[1]:void 0,done:!0}}([ir,sr])}}}var Nm=function(){function RGBColor(er){if(this.a=void 0,this.r=0,this.g=0,this.b=0,this.simpleColors={},this.colorDefs=[],this.ok=!1,er){for(var tr in"#"==er.charAt(0)&&(er=er.substr(1,6)),er=(er=er.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)er==tr&&(er=this.simpleColors[tr]);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(er){return[parseInt(er[1]),parseInt(er[2]),parseInt(er[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(er){return[parseInt(er[1],16),parseInt(er[2],16),parseInt(er[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(er){return[parseInt(er[1]+er[1],16),parseInt(er[2]+er[2],16),parseInt(er[3]+er[3],16)]}}];for(var rr=0;rr<this.colorDefs.length;rr++){var nr=this.colorDefs[rr].re,ar=this.colorDefs[rr].process,ir=nr.exec(er);if(ir){var or=ar(ir);this.r=or[0],this.g=or[1],this.b=or[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 er=this.r.toString(16),tr=this.g.toString(16),rr=this.b.toString(16);return 1==er.length&&(er="0"+er),1==tr.length&&(tr="0"+tr),1==rr.length&&(rr="0"+rr),"#"+er+tr+rr},RGBColor.prototype.getHelpXML=function(){for(var er=[],tr=0;tr<this.colorDefs.length;tr++)for(var rr=this.colorDefs[tr].example,nr=0;nr<rr.length;nr++)er[er.length]=rr[nr];for(var ar in this.simpleColors)er[er.length]=ar;var ir=document.createElement("ul");ir.setAttribute("id","rgbcolor-examples");for(tr=0;tr<er.length;tr++)try{var or=document.createElement("li"),sr=new RGBColor(er[tr]),lr=document.createElement("div");lr.style.cssText="margin: 3px; border: 1px solid black; background:"+sr.toHex()+"; color:"+sr.toHex(),lr.appendChild(document.createTextNode("test"));var cr=document.createTextNode(" "+er[tr]+" -> "+sr.toRGB()+" -> "+sr.toHex());or.appendChild(lr),or.appendChild(cr),ir.appendChild(or)}catch(er){}return ir},RGBColor}(),Lm=function(){function ColorFill(er){this.color=er}return ColorFill.prototype.getFillData=function(er,tr){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(er){return[2,void 0]}))}))},ColorFill}(),Pm=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 er=new AttributeState;return er.xmlSpace=this.xmlSpace,er.fill=this.fill,er.fillOpacity=this.fillOpacity,er.fontFamily=this.fontFamily,er.fontSize=this.fontSize,er.fontStyle=this.fontStyle,er.fontWeight=this.fontWeight,er.opacity=this.opacity,er.stroke=this.stroke,er.strokeDasharray=this.strokeDasharray,er.strokeDashoffset=this.strokeDashoffset,er.strokeLinecap=this.strokeLinecap,er.strokeLinejoin=this.strokeLinejoin,er.strokeMiterlimit=this.strokeMiterlimit,er.strokeOpacity=this.strokeOpacity,er.strokeWidth=this.strokeWidth,er.textAnchor=this.textAnchor,er.alignmentBaseline=this.alignmentBaseline,er.visibility=this.visibility,er},AttributeState.default=function(){var er=new AttributeState;return er.xmlSpace="default",er.fill=new Lm(new Nm("rgb(0, 0, 0)")),er.fillOpacity=1,er.fontFamily="times",er.fontSize=16,er.fontStyle="normal",er.fontWeight="normal",er.opacity=1,er.stroke=null,er.strokeDasharray=null,er.strokeDashoffset=0,er.strokeLinecap="butt",er.strokeLinejoin="miter",er.strokeMiterlimit=4,er.strokeOpacity=1,er.strokeWidth=1,er.alignmentBaseline="baseline",er.textAnchor="start",er.visibility="visible",er},AttributeState}(),Tm=/url\(["']?#([^"']+)["']?\)/,Fm={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"},Um=function(){function TextMeasure(){this.measureMethods={}}return TextMeasure.prototype.getTextOffset=function(er,tr){var rr=tr.textAnchor;if("start"===rr)return 0;var nr=this.measureTextWidth(er,tr),ar=0;switch(rr){case"end":ar=nr;break;case"middle":ar=nr/2}return ar},TextMeasure.prototype.measureTextWidth=function(er,tr){if(0===er.length)return 0;var rr=tr.fontFamily;return this.getMeasureFunction(rr).call(this,er,tr.fontFamily,tr.fontSize+"px",tr.fontStyle,tr.fontWeight)},TextMeasure.prototype.getMeasurementTextNode=function(){if(!this.textMeasuringTextElement){this.textMeasuringTextElement=document.createElementNS("http://www.w3.org/2000/svg","text");var er=document.createElementNS("http://www.w3.org/2000/svg","svg");er.appendChild(this.textMeasuringTextElement),er.style.setProperty("position","absolute"),er.style.setProperty("visibility","hidden"),document.body.appendChild(er)}return this.textMeasuringTextElement},TextMeasure.prototype.canvasTextMeasure=function(er,tr,rr,nr,ar){var ir=document.createElement("canvas").getContext("2d");return null!=ir?(ir.font=[nr,ar,rr,tr].join(" "),ir.measureText(er).width):0},TextMeasure.prototype.svgTextMeasure=function(er,tr,rr,nr,ar,ir){void 0===ir&&(ir=this.getMeasurementTextNode());var or=ir;return or.setAttribute("font-family",tr),or.setAttribute("font-size",rr),or.setAttribute("font-style",nr),or.setAttribute("font-weight",ar),or.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),or.textContent=er,or.getBBox().width},TextMeasure.prototype.getMeasureFunction=function(er){var tr=this.measureMethods[er];if(!tr){var rr="16px",nr="normal",ar="normal",ir=this.canvasTextMeasure(TextMeasure.testString,er,rr,nr,ar),or=this.svgTextMeasure(TextMeasure.testString,er,rr,nr,ar);tr=Math.abs(ir-or)<TextMeasure.epsilon?this.canvasTextMeasure:this.svgTextMeasure,this.measureMethods[er]=tr}return tr},TextMeasure.prototype.cleanupTextMeasuring=function(){if(this.textMeasuringTextElement){var er=this.textMeasuringTextElement.parentNode;er&&document.body.removeChild(er),this.textMeasuringTextElement=void 0}},TextMeasure.testString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789!\"$%&/()=?'\\+*-_.:,;^}][{#~|<>",TextMeasure.epsilon=.1,TextMeasure}(),Im=function(){function Context(er,tr){var rr,nr,ar,ir,or,sr;this.pdf=er,this.svg2pdfParameters=tr.svg2pdfParameters,this.attributeState=tr.attributeState?tr.attributeState.clone():Pm.default(),this.viewport=tr.viewport,this.refsHandler=null!==(rr=tr.refsHandler)&&void 0!==rr?rr:null,this.styleSheets=null!==(nr=tr.styleSheets)&&void 0!==nr?nr:null,this.textMeasure=null!==(ar=tr.textMeasure)&&void 0!==ar?ar:new Um,this.transform=null!==(ir=tr.transform)&&void 0!==ir?ir:this.pdf.unitMatrix,this.withinClipPath=null!==(or=tr.withinClipPath)&&void 0!==or&&or,this.withinUse=null!==(sr=tr.withinUse)&&void 0!==sr&&sr}return Context.prototype.clone=function(er){var tr,rr,nr,ar,ir,or,sr,lr;return void 0===er&&(er={}),new Context(this.pdf,{svg2pdfParameters:null!==(tr=er.svg2pdfParameters)&&void 0!==tr?tr:this.svg2pdfParameters,attributeState:er.attributeState?er.attributeState.clone():this.attributeState.clone(),viewport:null!==(rr=er.viewport)&&void 0!==rr?rr:this.viewport,refsHandler:null!==(nr=er.refsHandler)&&void 0!==nr?nr:this.refsHandler,styleSheets:null!==(ar=er.styleSheets)&&void 0!==ar?ar:this.styleSheets,textMeasure:null!==(ir=er.textMeasure)&&void 0!==ir?ir:this.textMeasure,transform:null!==(or=er.transform)&&void 0!==or?or:this.transform,withinClipPath:null!==(sr=er.withinClipPath)&&void 0!==sr?sr:this.withinClipPath,withinUse:null!==(lr=er.withinUse)&&void 0!==lr?lr:this.withinUse})},Context}(),Rm=function(){function ReferencesHandler(er){this.renderedElements={},this.idMap=er}return ReferencesHandler.prototype.getRendered=function(er,tr){return __awaiter(this,void 0,void 0,(function(){var rr;return __generator(this,(function(nr){switch(nr.label){case 0:return this.renderedElements.hasOwnProperty(er)?[2,this.renderedElements[er]]:(rr=this.get(er),this.renderedElements[er]=rr,[4,tr(rr)]);case 1:return nr.sent(),[2,rr]}}))}))},ReferencesHandler.prototype.get=function(er){return this.idMap[dm(er,{isIdentifier:!0})]},ReferencesHandler}();function getAngle(er,tr){return Math.atan2(tr[1]-er[1],tr[0]-er[0])}var Mm=2/3;function toCubic(er,tr){return[Mm*(tr[0]-er[0])+er[0],Mm*(tr[1]-er[1])+er[1]]}function normalize$1(er){var tr=Math.sqrt(er[0]*er[0]+er[1]*er[1]);return[er[0]/tr,er[1]/tr]}function getDirectionVector(er,tr){return normalize$1([tr[0]-er[0],tr[1]-er[1]])}function addVectors(er,tr){return[er[0]+tr[0],er[1]+tr[1]]}function multVecMatrix(er,tr){var rr=er[0],nr=er[1];return[tr.a*rr+tr.c*nr+tr.e,tr.b*rr+tr.d*nr+tr.f]}var Qm=function(){function Path(){this.segments=[]}return Path.prototype.moveTo=function(er,tr){return this.segments.push(new Om(er,tr)),this},Path.prototype.lineTo=function(er,tr){return this.segments.push(new Dm(er,tr)),this},Path.prototype.curveTo=function(er,tr,rr,nr,ar,ir){return this.segments.push(new jm(er,tr,rr,nr,ar,ir)),this},Path.prototype.close=function(){return this.segments.push(new Hm),this},Path.prototype.transform=function(er){this.segments.forEach((function(tr){if(tr instanceof Om||tr instanceof Dm||tr instanceof jm){var rr=multVecMatrix([tr.x,tr.y],er);tr.x=rr[0],tr.y=rr[1]}if(tr instanceof jm){var nr=multVecMatrix([tr.x1,tr.y1],er),ar=multVecMatrix([tr.x2,tr.y2],er);tr.x1=nr[0],tr.y1=nr[1],tr.x2=ar[0],tr.y2=ar[1]}}))},Path.prototype.draw=function(er){var tr=er.pdf;this.segments.forEach((function(er){er instanceof Om?tr.moveTo(er.x,er.y):er instanceof Dm?tr.lineTo(er.x,er.y):er instanceof jm?tr.curveTo(er.x1,er.y1,er.x2,er.y2,er.x,er.y):tr.close()}))},Path}(),Om=function Om(er,tr){this.x=er,this.y=tr},Dm=function Dm(er,tr){this.x=er,this.y=tr},jm=function jm(er,tr,rr,nr,ar,ir){this.x1=er,this.y1=tr,this.x2=rr,this.y2=nr,this.x=ar,this.y=ir},Hm=function Hm(){};function nodeIs(er,tr){return tr.split(",").indexOf((er.nodeName||er.tagName).toLowerCase())>=0}function getAttribute(er,tr,rr,nr){void 0===nr&&(nr=rr);var ar=er.style.getPropertyValue(nr);return ar||(tr.getPropertyValue(er,nr)?tr.getPropertyValue(er,nr):er.hasAttribute(rr)&&er.getAttribute(rr)||void 0)}function svgNodeIsVisible(er,tr,rr){if("none"===getAttribute(er.element,rr.styleSheets,"display"))return!1;var nr=tr,ar=getAttribute(er.element,rr.styleSheets,"visibility");return ar&&(nr="hidden"!==ar),nr}function svgNodeAndChildrenVisible(er,tr,rr){var nr=svgNodeIsVisible(er,tr,rr);return 0!==er.element.childNodes.length&&(er.children.forEach((function(er){er.isVisible(nr,rr)&&(nr=!0)})),nr)}var Gm=function(){function MarkerList(){this.markers=[]}return MarkerList.prototype.addMarker=function(er){this.markers.push(er)},MarkerList.prototype.draw=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir,or,sr;return __generator(this,(function(lr){switch(lr.label){case 0:tr=0,lr.label=1;case 1:return tr<this.markers.length?(rr=this.markers[tr],nr=void 0,ar=rr.angle,ir=rr.anchor,or=Math.cos(ar),sr=Math.sin(ar),nr=er.pdf.Matrix(or,sr,-sr,or,ir[0],ir[1]),nr=er.pdf.matrixMult(er.pdf.Matrix(er.attributeState.strokeWidth,0,0,er.attributeState.strokeWidth,0,0),nr),nr=er.pdf.matrixMult(nr,er.transform),er.pdf.saveGraphicsState(),er.pdf.setLineWidth(1),[4,er.refsHandler.getRendered(rr.id,(function(tr){return tr.apply(er)}))]):[3,4];case 2:lr.sent(),er.pdf.doFormObject(rr.id,nr),er.pdf.restoreGraphicsState(),lr.label=3;case 3:return tr++,[3,1];case 4:return[2]}}))}))},MarkerList}(),Vm=function Vm(er,tr,rr){this.id=er,this.anchor=tr,this.angle=rr};function toPixels(er,tr){var rr;return(rr=er&&er.toString().match(/^([\-0-9.]+)em$/))?parseFloat(rr[1])*tr:(rr=er&&er.toString().match(/^([\-0-9.]+)(px|)$/))?parseFloat(rr[1]):0}function mapAlignmentBaseline(er){return Fm[er]||"alphabetic"}function parseFloats(er){for(var tr,rr=[],nr=/[+-]?(?:(?:\d+\.?\d*)|(?:\d*\.?\d+))(?:[eE][+-]?\d+)?/g;tr=nr.exec(er);)rr.push(parseFloat(tr[0]));return rr}function parseColor(er){if("transparent"===er){var tr=new Nm("rgb(0,0,0)");return tr.a=0,tr}var rr=/\s*rgba\(((?:[^,\)]*,){3}[^,\)]*)\)\s*/.exec(er);if(rr){var nr=parseFloats(rr[1]),ar=new Nm("rgb("+nr.slice(0,3).join(",")+")");return ar.a=nr[3],ar}return new Nm(er)}var zm={"sans-serif":"helvetica",verdana:"helvetica",arial:"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",serif:"times",cursive:"times",fantasy:"times"};function getBoundingBoxByChildren(er,tr){if("none"===getAttribute(tr.element,er.styleSheets,"display"))return[0,0,0,0];var rr=[0,0,0,0];return tr.children.forEach((function(tr){var nr=tr.getBoundingBox(er);rr=[Math.min(rr[0],nr[0]),Math.min(rr[1],nr[1]),Math.max(rr[0]+rr[2],nr[0]+nr[2])-Math.min(rr[0],nr[0]),Math.max(rr[1]+rr[3],nr[1]+nr[3])-Math.min(rr[1],nr[1])]})),rr}function defaultBoundingBox(er,tr){var rr=parseFloat,nr=rr(er.getAttribute("x1"))||rr(getAttribute(er,tr.styleSheets,"x"))||rr(getAttribute(er,tr.styleSheets,"cx"))-rr(getAttribute(er,tr.styleSheets,"r"))||0,ar=rr(er.getAttribute("x2"))||nr+rr(getAttribute(er,tr.styleSheets,"width"))||rr(getAttribute(er,tr.styleSheets,"cx"))+rr(getAttribute(er,tr.styleSheets,"r"))||0,ir=rr(er.getAttribute("y1"))||rr(getAttribute(er,tr.styleSheets,"y"))||rr(getAttribute(er,tr.styleSheets,"cy"))-rr(getAttribute(er,tr.styleSheets,"r"))||0,or=rr(er.getAttribute("y2"))||ir+rr(getAttribute(er,tr.styleSheets,"height"))||rr(getAttribute(er,tr.styleSheets,"cy"))+rr(getAttribute(er,tr.styleSheets,"r"))||0;return[Math.min(nr,ar),Math.min(ir,or),Math.max(nr,ar)-Math.min(nr,ar),Math.max(ir,or)-Math.min(ir,or)]}function computeViewBoxTransform(er,tr,rr,nr,ar,ir,or,sr){void 0===sr&&(sr=!1);var lr,cr,ur=tr[0],dr=tr[1],hr=tr[2],pr=tr[3],Ar=ar/hr,fr=ir/pr,gr=er.getAttribute("preserveAspectRatio");if(gr){var mr=gr.split(" ");"defer"===mr[0]&&(mr=mr.slice(1)),lr=mr[0],cr=mr[1]||"meet"}else lr="xMidYMid",cr="meet";if("none"!==lr&&("meet"===cr?Ar=fr=Math.min(Ar,fr):"slice"===cr&&(Ar=fr=Math.max(Ar,fr))),sr)return or.pdf.Matrix(Ar,0,0,fr,0,0);var _r=rr-ur*Ar,vr=nr-dr*fr;lr.indexOf("xMid")>=0?_r+=(ar-hr*Ar)/2:lr.indexOf("xMax")>=0&&(_r+=ar-hr*Ar),lr.indexOf("YMid")>=0?vr+=(ir-pr*fr)/2:lr.indexOf("YMax")>=0&&(vr+=ir-pr*fr);var yr=or.pdf.Matrix(1,0,0,1,_r,vr),br=or.pdf.Matrix(Ar,0,0,fr,0,0);return or.pdf.matrixMult(br,yr)}function parseTransform(er,tr){if(!er||"none"===er)return tr.pdf.unitMatrix;for(var rr,nr,ar=/^[\s,]*matrix\(([^\)]+)\)\s*/,ir=/^[\s,]*translate\(([^\)]+)\)\s*/,or=/^[\s,]*rotate\(([^\)]+)\)\s*/,sr=/^[\s,]*scale\(([^\)]+)\)\s*/,lr=/^[\s,]*skewX\(([^\)]+)\)\s*/,cr=/^[\s,]*skewY\(([^\)]+)\)\s*/,ur=tr.pdf.unitMatrix;er.length>0&&er.length!==nr;){nr=er.length;var dr=ar.exec(er);if(dr&&(rr=parseFloats(dr[1]),ur=tr.pdf.matrixMult(tr.pdf.Matrix(rr[0],rr[1],rr[2],rr[3],rr[4],rr[5]),ur),er=er.substr(dr[0].length)),dr=or.exec(er)){rr=parseFloats(dr[1]);var hr=Math.PI*rr[0]/180;if(ur=tr.pdf.matrixMult(tr.pdf.Matrix(Math.cos(hr),Math.sin(hr),-Math.sin(hr),Math.cos(hr),0,0),ur),rr[1]||rr[2]){var pr=tr.pdf.Matrix(1,0,0,1,rr[1],rr[2]),Ar=tr.pdf.Matrix(1,0,0,1,-rr[1],-rr[2]);ur=tr.pdf.matrixMult(Ar,tr.pdf.matrixMult(ur,pr))}er=er.substr(dr[0].length)}(dr=ir.exec(er))&&(rr=parseFloats(dr[1]),ur=tr.pdf.matrixMult(tr.pdf.Matrix(1,0,0,1,rr[0],rr[1]||0),ur),er=er.substr(dr[0].length)),(dr=sr.exec(er))&&((rr=parseFloats(dr[1]))[1]||(rr[1]=rr[0]),ur=tr.pdf.matrixMult(tr.pdf.Matrix(rr[0],0,0,rr[1],0,0),ur),er=er.substr(dr[0].length)),(dr=lr.exec(er))&&(rr=parseFloat(dr[1]),rr*=Math.PI/180,ur=tr.pdf.matrixMult(tr.pdf.Matrix(1,0,Math.tan(rr),1,0,0),ur),er=er.substr(dr[0].length)),(dr=cr.exec(er))&&(rr=parseFloat(dr[1]),rr*=Math.PI/180,ur=tr.pdf.matrixMult(tr.pdf.Matrix(1,Math.tan(rr),0,1,0,0),ur),er=er.substr(dr[0].length))}return ur}var Km=function(){function SvgNode(er,tr){this.element=er,this.children=tr}return SvgNode.prototype.getBoundingBox=function(er){return"none"===getAttribute(this.element,er.styleSheets,"display")?[0,0,0,0]:this.getBoundingBoxCore(er)},SvgNode.prototype.computeNodeTransform=function(er){var tr=this.computeNodeTransformCore(er),rr=getAttribute(this.element,er.styleSheets,"transform");return rr?er.pdf.matrixMult(tr,parseTransform(rr,er)):tr},SvgNode}(),qm=function(er){function NonRenderedNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(NonRenderedNode,er),NonRenderedNode.prototype.render=function(er){return Promise.resolve()},NonRenderedNode.prototype.getBoundingBoxCore=function(er){return[]},NonRenderedNode.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},NonRenderedNode}(Km),Wm=function(er){function Gradient(tr,rr,nr){var ar=er.call(this,rr,nr)||this;return ar.pdfGradientType=tr,ar}return __extends(Gradient,er),Gradient.prototype.apply=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir,or;return __generator(this,(function(sr){return(tr=this.element.getAttribute("id"))?(rr=[],nr=0,ar=!1,this.children.forEach((function(tr){if("stop"===tr.element.tagName.toLowerCase()){var ir=new Nm(getAttribute(tr.element,er.styleSheets,"stop-color"));rr.push({offset:Gradient.parseGradientOffset(tr.element.getAttribute("offset")||"0"),color:[ir.r,ir.g,ir.b]});var or=getAttribute(tr.element,er.styleSheets,"stop-opacity");or&&"1"!==or&&(nr+=parseFloat(or),ar=!0)}})),ar&&(ir=new l({opacity:nr/rr.length})),or=new d(this.pdfGradientType,this.getCoordinates(),rr,ir),er.pdf.addShadingPattern(tr,or),[2]):[2]}))}))},Gradient.prototype.getBoundingBoxCore=function(er){return defaultBoundingBox(this.element,er)},Gradient.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Gradient.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},Gradient.parseGradientOffset=function(er){var tr=parseFloat(er);return!isNaN(tr)&&er.indexOf("%")>=0?tr/100:tr},Gradient}(qm),Xm=function(er){function LinearGradient(tr,rr){return er.call(this,"axial",tr,rr)||this}return __extends(LinearGradient,er),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}(Wm),Ym=function(er){function RadialGradient(tr,rr){return er.call(this,"radial",tr,rr)||this}return __extends(RadialGradient,er),RadialGradient.prototype.getCoordinates=function(){var er=this.element.getAttribute("cx"),tr=this.element.getAttribute("cy"),rr=this.element.getAttribute("fx"),nr=this.element.getAttribute("fy");return[parseFloat(rr||er||"0.5"),parseFloat(nr||tr||"0.5"),0,parseFloat(er||"0.5"),parseFloat(tr||"0.5"),parseFloat(this.element.getAttribute("r")||"0.5")]},RadialGradient}(Wm),Jm=function(){function GradientFill(er,tr){this.key=er,this.gradient=tr}return GradientFill.prototype.getFillData=function(er,tr){return __awaiter(this,void 0,void 0,(function(){var rr,nr,ar;return __generator(this,(function(ir){switch(ir.label){case 0:return[4,tr.refsHandler.getRendered(this.key,(function(er){return er.apply(new Im(tr.pdf,{refsHandler:tr.refsHandler,textMeasure:tr.textMeasure,styleSheets:tr.styleSheets,viewport:tr.viewport,svg2pdfParameters:tr.svg2pdfParameters}))}))];case 1:return ir.sent(),this.gradient.element.hasAttribute("gradientUnits")&&"objectboundingbox"!==this.gradient.element.getAttribute("gradientUnits").toLowerCase()?rr=tr.pdf.unitMatrix:(nr=er.getBoundingBox(tr),rr=tr.pdf.Matrix(nr[2],0,0,nr[3],nr[0],nr[1])),ar=parseTransform(getAttribute(this.gradient.element,tr.styleSheets,"gradientTransform","transform"),tr),[2,{key:this.key,matrix:tr.pdf.matrixMult(ar,rr)}]}}))}))},GradientFill}(),$m=function(er){function Pattern(){return null!==er&&er.apply(this,arguments)||this}return __extends(Pattern,er),Pattern.prototype.apply=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir;return __generator(this,(function(or){switch(or.label){case 0:if(!(tr=this.element.getAttribute("id")))return[2];rr=this.getBoundingBox(er),nr=new p([rr[0],rr[1],rr[0]+rr[2],rr[1]+rr[3]],rr[2],rr[3]),er.pdf.beginTilingPattern(nr),ar=0,ir=this.children,or.label=1;case 1:return ar<ir.length?[4,ir[ar].render(new Im(er.pdf,{attributeState:er.attributeState,refsHandler:er.refsHandler,styleSheets:er.styleSheets,viewport:er.viewport,svg2pdfParameters:er.svg2pdfParameters}))]:[3,4];case 2:or.sent(),or.label=3;case 3:return ar++,[3,1];case 4:return er.pdf.endTilingPattern(tr,nr),[2]}}))}))},Pattern.prototype.getBoundingBoxCore=function(er){return defaultBoundingBox(this.element,er)},Pattern.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Pattern.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},Pattern}(qm),Zm=function(){function PatternFill(er,tr){this.key=er,this.pattern=tr}return PatternFill.prototype.getFillData=function(er,tr){return __awaiter(this,void 0,void 0,(function(){var rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr,pr;return __generator(this,(function(Ar){switch(Ar.label){case 0:return[4,tr.refsHandler.getRendered(this.key,(function(er){return er.apply(new Im(tr.pdf,{refsHandler:tr.refsHandler,textMeasure:tr.textMeasure,styleSheets:tr.styleSheets,viewport:tr.viewport,svg2pdfParameters:tr.svg2pdfParameters}))}))];case 1:return Ar.sent(),rr={key:this.key,boundingBox:void 0,xStep:0,yStep:0,matrix:void 0},ar=tr.pdf.unitMatrix,this.pattern.element.hasAttribute("patternUnits")&&"objectboundingbox"!==this.pattern.element.getAttribute("patternUnits").toLowerCase()||(nr=er.getBoundingBox(tr),ar=tr.pdf.Matrix(1,0,0,1,nr[0],nr[1]),or=this.pattern.getBoundingBox(tr),sr=or[0]*nr[0]||0,lr=or[1]*nr[1]||0,cr=or[2]*nr[2]||0,ur=or[3]*nr[3]||0,rr.boundingBox=[sr,lr,sr+cr,lr+ur],rr.xStep=cr,rr.yStep=ur),ir=tr.pdf.unitMatrix,this.pattern.element.hasAttribute("patternContentUnits")&&"objectboundingbox"===this.pattern.element.getAttribute("patternContentUnits").toLowerCase()&&(nr||(nr=er.getBoundingBox(tr)),ir=tr.pdf.Matrix(nr[2],0,0,nr[3],0,0),or=rr.boundingBox||this.pattern.getBoundingBox(tr),sr=or[0]/nr[0]||0,lr=or[1]/nr[1]||0,cr=or[2]/nr[2]||0,ur=or[3]/nr[3]||0,rr.boundingBox=[sr,lr,sr+cr,lr+ur],rr.xStep=cr,rr.yStep=ur),dr=tr.pdf.unitMatrix,(hr=getAttribute(this.pattern.element,tr.styleSheets,"patternTransform","transform"))&&(dr=parseTransform(hr,tr)),pr=ir,pr=tr.pdf.matrixMult(pr,ar),pr=tr.pdf.matrixMult(pr,dr),pr=tr.pdf.matrixMult(pr,tr.transform),rr.matrix=pr,[2,rr]}}))}))},PatternFill}();function parseAttributes(er,tr,rr){var nr=rr||tr.element,ar=getAttribute(nr,er.styleSheets,"visibility");ar&&(er.attributeState.visibility=ar);var ir=getAttribute(nr,er.styleSheets,"fill");ir&&(er.attributeState.fill=function parseFill(er,tr){var rr=Tm.exec(er);if(rr){var nr=rr[1],ar=tr.refsHandler.get(nr);return ar&&(ar instanceof Xm||ar instanceof Ym)?new Jm(nr,ar):ar&&ar instanceof $m?new Zm(nr,ar):new Lm(new Nm("rgb(0, 0, 0)"))}var ir=parseColor(er);return ir.ok?new Lm(ir):null}(ir,er));var or=getAttribute(nr,er.styleSheets,"fill-opacity");or&&(er.attributeState.fillOpacity=parseFloat(or));var sr=getAttribute(nr,er.styleSheets,"stroke-opacity");sr&&(er.attributeState.strokeOpacity=parseFloat(sr));var lr=getAttribute(nr,er.styleSheets,"opacity");lr&&(er.attributeState.opacity=parseFloat(lr));var cr=getAttribute(nr,er.styleSheets,"stroke-width");void 0!==cr&&""!==cr&&(cr=Math.abs(parseFloat(cr)),er.attributeState.strokeWidth=cr);var ur=getAttribute(nr,er.styleSheets,"stroke");if(ur)if("none"===ur)er.attributeState.stroke=null;else{var dr=parseColor(ur);dr.ok&&(er.attributeState.stroke=new Lm(dr))}var hr=getAttribute(nr,er.styleSheets,"stroke-linecap");hr&&(er.attributeState.strokeLinecap=hr);var pr=getAttribute(nr,er.styleSheets,"stroke-linejoin");pr&&(er.attributeState.strokeLinejoin=pr);var Ar=getAttribute(nr,er.styleSheets,"stroke-dasharray");if(Ar){Ar=parseFloats(Ar);var fr=parseInt(getAttribute(nr,er.styleSheets,"stroke-dashoffset")||"0");er.attributeState.strokeDasharray=Ar,er.attributeState.strokeDashoffset=fr}var gr=getAttribute(nr,er.styleSheets,"stroke-miterlimit");void 0!==gr&&""!==gr&&(er.attributeState.strokeMiterlimit=parseFloat(gr));var mr=nr.getAttribute("xml:space");mr&&(er.attributeState.xmlSpace=mr);var _r=getAttribute(nr,er.styleSheets,"font-weight");_r&&(er.attributeState.fontWeight=_r);var vr=getAttribute(nr,er.styleSheets,"font-style");vr&&(er.attributeState.fontStyle=vr);var yr=getAttribute(nr,er.styleSheets,"font-family");if(yr){var br=Am(yr);er.attributeState.fontFamily=function findFirstAvailableFontFamily(er,tr,rr){var nr="";"bold"===er.fontWeight&&(nr="bold"),"italic"===er.fontStyle&&(nr+="italic"),""===nr&&(nr="normal");var ar=rr.pdf.getFontList(),ir="";return tr.some((function(er){var tr=ar[er];return tr&&tr.indexOf(nr)>=0?(ir=er,!0):(er=er.toLowerCase(),!!zm.hasOwnProperty(er)&&(ir=er,!0))}))||(ir="times"),ir}(er.attributeState,br,er)}var wr=getAttribute(nr,er.styleSheets,"font-size");if(wr){var kr=er.pdf.getFontSize();er.attributeState.fontSize=toPixels(wr,kr)}var xr=getAttribute(nr,er.styleSheets,"vertical-align")||getAttribute(nr,er.styleSheets,"alignment-baseline");if(xr){var Sr=xr.match(/(baseline|text-bottom|alphabetic|ideographic|middle|central|mathematical|text-top|bottom|center|top|hanging)/);Sr&&(er.attributeState.alignmentBaseline=Sr[0])}var Cr=getAttribute(nr,er.styleSheets,"text-anchor");Cr&&(er.attributeState.textAnchor=Cr)}function applyAttributes(er,tr,rr){var nr=1,ar=1;nr*=er.attributeState.fillOpacity,nr*=er.attributeState.opacity,er.attributeState.fill instanceof Lm&&void 0!==er.attributeState.fill.color.a&&(nr*=er.attributeState.fill.color.a),ar*=er.attributeState.strokeOpacity,ar*=er.attributeState.opacity,er.attributeState.stroke instanceof Lm&&void 0!==er.attributeState.stroke.color.a&&(ar*=er.attributeState.stroke.color.a);var ir,or,sr=nr<1,lr=ar<1;if(nodeIs(rr,"use")?(sr=!0,lr=!0,nr*=er.attributeState.fill?1:0,ar*=er.attributeState.stroke?1:0):er.withinUse&&(er.attributeState.fill!==tr.attributeState.fill?(sr=!0,nr*=er.attributeState.fill?1:0):sr&&!er.attributeState.fill&&(nr=0),er.attributeState.stroke!==tr.attributeState.stroke?(lr=!0,ar*=er.attributeState.stroke?1:0):lr&&!er.attributeState.stroke&&(ar=0)),sr||lr){var cr={};sr&&(cr.opacity=nr),lr&&(cr["stroke-opacity"]=ar),er.pdf.setGState(new l(cr))}if(er.attributeState.fill&&er.attributeState.fill!==tr.attributeState.fill&&er.attributeState.fill instanceof Lm&&er.attributeState.fill.color.ok&&!nodeIs(rr,"text")&&er.pdf.setFillColor(er.attributeState.fill.color.r,er.attributeState.fill.color.g,er.attributeState.fill.color.b),er.attributeState.strokeWidth!==tr.attributeState.strokeWidth&&er.pdf.setLineWidth(er.attributeState.strokeWidth),er.attributeState.stroke!==tr.attributeState.stroke&&er.attributeState.stroke instanceof Lm&&er.pdf.setDrawColor(er.attributeState.stroke.color.r,er.attributeState.stroke.color.g,er.attributeState.stroke.color.b),er.attributeState.strokeLinecap!==tr.attributeState.strokeLinecap&&er.pdf.setLineCap(er.attributeState.strokeLinecap),er.attributeState.strokeLinejoin!==tr.attributeState.strokeLinejoin&&er.pdf.setLineJoin(er.attributeState.strokeLinejoin),er.attributeState.strokeDasharray===tr.attributeState.strokeDasharray&&er.attributeState.strokeDashoffset===tr.attributeState.strokeDashoffset||!er.attributeState.strokeDasharray||er.pdf.setLineDashPattern(er.attributeState.strokeDasharray,er.attributeState.strokeDashoffset),er.attributeState.strokeMiterlimit!==tr.attributeState.strokeMiterlimit&&er.pdf.setLineMiterLimit(er.attributeState.strokeMiterlimit),er.attributeState.fontFamily!==tr.attributeState.fontFamily&&(ir=zm.hasOwnProperty(er.attributeState.fontFamily)?zm[er.attributeState.fontFamily]:er.attributeState.fontFamily),er.attributeState.fill&&er.attributeState.fill!==tr.attributeState.fill&&er.attributeState.fill instanceof Lm&&er.attributeState.fill.color.ok){var ur=er.attributeState.fill.color;er.pdf.setTextColor(ur.r,ur.g,ur.b)}er.attributeState.fontWeight===tr.attributeState.fontWeight&&er.attributeState.fontStyle===tr.attributeState.fontStyle||(or="","bold"===er.attributeState.fontWeight&&(or="bold"),"italic"===er.attributeState.fontStyle&&(or+="italic"),""===or&&(or="normal")),void 0===ir&&void 0===or||(void 0===ir&&(ir=zm.hasOwnProperty(er.attributeState.fontFamily)?zm[er.attributeState.fontFamily]:er.attributeState.fontFamily),er.pdf.setFont(ir,or)),er.attributeState.fontSize!==tr.attributeState.fontSize&&er.pdf.setFontSize(er.attributeState.fontSize*er.pdf.internal.scaleFactor)}function getClipPathNode(er,tr){var rr=getAttribute(er.element,tr.styleSheets,"clip-path");if(rr){var nr=Tm.exec(rr);if(nr){var ar=nr[1];return tr.refsHandler.get(ar)||void 0}}}function applyClipPath(er,tr,rr){return __awaiter(this,void 0,void 0,(function(){var nr,ar;return __generator(this,(function(ir){switch(ir.label){case 0:return nr=rr.clone(),tr.element.hasAttribute("clipPathUnits")&&"objectboundingbox"===tr.element.getAttribute("clipPathUnits").toLowerCase()&&(ar=er.getBoundingBox(rr),nr.transform=rr.pdf.matrixMult(rr.pdf.Matrix(ar[2],0,0,ar[3],ar[0],ar[1]),rr.transform)),[4,tr.apply(nr)];case 1:return ir.sent(),[2]}}))}))}var e_=function(er){function RenderedNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(RenderedNode,er),RenderedNode.prototype.render=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr;return __generator(this,(function(ar){switch(ar.label){case 0:return this.isVisible("hidden"!==er.attributeState.visibility,er)?((tr=er.clone()).transform=tr.pdf.matrixMult(this.computeNodeTransform(tr),er.transform),parseAttributes(tr,this),(rr=this.element.hasAttribute("clip-path")&&"none"!==getAttribute(this.element,tr.styleSheets,"clip-path"))?(nr=getClipPathNode(this,tr))&&nr.isVisible(!0,tr)?(tr.pdf.saveGraphicsState(),[4,applyClipPath(this,nr,tr)]):[3,2]:[3,3]):[2];case 1:return ar.sent(),[3,3];case 2:return[2];case 3:return tr.withinClipPath||tr.pdf.saveGraphicsState(),applyAttributes(tr,er,this.element),[4,this.renderCore(tr)];case 4:return ar.sent(),tr.withinClipPath||tr.pdf.restoreGraphicsState(),rr&&tr.pdf.restoreGraphicsState(),[2]}}))}))},RenderedNode}(Km),t_=function(er){function GraphicsNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(GraphicsNode,er),GraphicsNode}(e_),r_=function(er){function GeometryNode(tr,rr,nr){var ar=er.call(this,rr,nr)||this;return ar.cachedPath=null,ar.hasMarkers=tr,ar}return __extends(GeometryNode,er),GeometryNode.prototype.renderCore=function(er){return __awaiter(this,void 0,void 0,(function(){var tr;return __generator(this,(function(rr){switch(rr.label){case 0:return null===(tr=this.getCachedPath(er))||0===tr.segments.length?[2]:(er.withinClipPath?tr.transform(er.transform):er.pdf.setCurrentTransformationMatrix(er.transform),tr.draw(er),[4,this.fillOrStroke(er)]);case 1:return rr.sent(),this.hasMarkers?[4,this.drawMarkers(er,tr)]:[3,3];case 2:rr.sent(),rr.label=3;case 3:return[2]}}))}))},GeometryNode.prototype.getCachedPath=function(er){return this.cachedPath||(this.cachedPath=this.getPath(er))},GeometryNode.prototype.drawMarkers=function(er,tr){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(rr){switch(rr.label){case 0:return[4,this.getMarkers(tr,er).draw(er.clone({transform:er.pdf.unitMatrix}))];case 1:return rr.sent(),[2]}}))}))},GeometryNode.prototype.fillOrStroke=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir;return __generator(this,(function(or){switch(or.label){case 0:return er.withinClipPath?[2]:(tr=er.attributeState.fill,rr=er.attributeState.stroke&&0!==er.attributeState.strokeWidth,tr?[4,tr.getFillData(this,er)]:[3,2]);case 1:return ar=or.sent(),[3,3];case 2:ar=void 0,or.label=3;case 3:return nr=ar,ir="evenodd"===getAttribute(this.element,er.styleSheets,"fill-rule"),tr&&rr||er.withinUse?ir?er.pdf.fillStrokeEvenOdd(nr):er.pdf.fillStroke(nr):tr?ir?er.pdf.fillEvenOdd(nr):er.pdf.fill(nr):rr?er.pdf.stroke():er.pdf.discardPath(),[2]}}))}))},GeometryNode.prototype.getBoundingBoxCore=function(er){var tr=this.getCachedPath(er);if(!tr)return[0,0,0,0];for(var rr=Number.POSITIVE_INFINITY,nr=Number.POSITIVE_INFINITY,ar=Number.NEGATIVE_INFINITY,ir=Number.NEGATIVE_INFINITY,or=0,sr=0,lr=0;lr<tr.segments.length;lr++){var cr=tr.segments[lr];(cr instanceof Om||cr instanceof Dm||cr instanceof jm)&&(or=cr.x,sr=cr.y),cr instanceof jm?(rr=Math.min(rr,or,cr.x1,cr.x2,cr.x),ar=Math.max(ar,or,cr.x1,cr.x2,cr.x),nr=Math.min(nr,sr,cr.y1,cr.y2,cr.y),ir=Math.max(ir,sr,cr.y1,cr.y2,cr.y)):(rr=Math.min(rr,or),ar=Math.max(ar,or),nr=Math.min(nr,sr),ir=Math.max(ir,sr))}return[rr,nr,ar-rr,ir-nr]},GeometryNode.prototype.getMarkers=function(er,tr){var rr=getAttribute(this.element,tr.styleSheets,"marker-start"),nr=getAttribute(this.element,tr.styleSheets,"marker-mid"),ar=getAttribute(this.element,tr.styleSheets,"marker-end"),ir=new Gm;if(rr||nr||ar){ar&&(ar=iri(ar)),rr&&(rr=iri(rr)),nr&&(nr=iri(nr));for(var or=er.segments,sr=[1,0],lr=void 0,cr=!1,ur=[1,0],dr=!1,hr=function _loop_1(er){var tr=or[er],hr=rr&&(1===er||!(or[er]instanceof Om)&&or[er-1]instanceof Om);hr&&or.forEach((function(tr,rr){if(!dr&&tr instanceof Hm&&rr>er){var nr=or[rr-1];dr=(nr instanceof Om||nr instanceof Dm||nr instanceof jm)&&nr}}));var pr=ar&&(er===or.length-1||!(or[er]instanceof Om)&&or[er+1]instanceof Om),Ar=nr&&er>0&&!(1===er&&or[er-1]instanceof Om),fr=or[er-1]||null;if(fr instanceof Om||fr instanceof Dm||fr instanceof jm){if(tr instanceof jm)hr&&ir.addMarker(new Vm(rr,[fr.x,fr.y],getAngle(dr?[dr.x,dr.y]:[fr.x,fr.y],[tr.x1,tr.y1]))),pr&&ir.addMarker(new Vm(ar,[tr.x,tr.y],getAngle([tr.x2,tr.y2],[tr.x,tr.y]))),Ar&&(lr=getDirectionVector([fr.x,fr.y],[tr.x1,tr.y1]),lr=fr instanceof Om?lr:normalize$1(addVectors(sr,lr)),ir.addMarker(new Vm(nr,[fr.x,fr.y],Math.atan2(lr[1],lr[0])))),sr=getDirectionVector([tr.x2,tr.y2],[tr.x,tr.y]);else if(tr instanceof Om||tr instanceof Dm){if(lr=getDirectionVector([fr.x,fr.y],[tr.x,tr.y]),hr){var gr=dr?getDirectionVector([dr.x,dr.y],[tr.x,tr.y]):lr;ir.addMarker(new Vm(rr,[fr.x,fr.y],Math.atan2(gr[1],gr[0])))}if(pr&&ir.addMarker(new Vm(ar,[tr.x,tr.y],Math.atan2(lr[1],lr[0]))),Ar){gr=tr instanceof Om?sr:fr instanceof Om?lr:normalize$1(addVectors(sr,lr));ir.addMarker(new Vm(nr,[fr.x,fr.y],Math.atan2(gr[1],gr[0])))}sr=lr}else if(tr instanceof Hm){if(lr=getDirectionVector([fr.x,fr.y],[cr.x,cr.y]),Ar){gr=fr instanceof Om?lr:normalize$1(addVectors(sr,lr));ir.addMarker(new Vm(nr,[fr.x,fr.y],Math.atan2(gr[1],gr[0])))}if(pr){gr=normalize$1(addVectors(lr,ur));ir.addMarker(new Vm(ar,[cr.x,cr.y],Math.atan2(gr[1],gr[0])))}sr=lr}}else{cr=tr instanceof Om&&tr;var mr=or[er+1];(mr instanceof Om||mr instanceof Dm||mr instanceof jm)&&(ur=getDirectionVector([cr.x,cr.y],[mr.x,mr.y]))}},pr=0;pr<or.length;pr++)hr(pr)}return ir},GeometryNode}(t_);function iri(er){var tr=Tm.exec(er);return tr&&tr[1]||void 0}var n_=function(er){function Line(tr,rr){return er.call(this,!0,tr,rr)||this}return __extends(Line,er),Line.prototype.getPath=function(er){if(er.withinClipPath||null===er.attributeState.stroke)return null;var tr=parseFloat(this.element.getAttribute("x1")||"0"),rr=parseFloat(this.element.getAttribute("y1")||"0"),nr=parseFloat(this.element.getAttribute("x2")||"0"),ar=parseFloat(this.element.getAttribute("y2")||"0");return tr||nr||rr||ar?(new Qm).moveTo(tr,rr).lineTo(nr,ar):null},Line.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Line.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},Line.prototype.fillOrStroke=function(tr){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(rr){switch(rr.label){case 0:return tr.attributeState.fill=null,[4,er.prototype.fillOrStroke.call(this,tr)];case 1:return rr.sent(),[2]}}))}))},Line}(r_),a_=function(er){function _Symbol(){return null!==er&&er.apply(this,arguments)||this}return __extends(_Symbol,er),_Symbol.prototype.apply=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar;return __generator(this,(function(ir){switch(ir.label){case 0:return this.isVisible("hidden"!==er.attributeState.visibility,er)?((tr=er.clone()).transform=tr.pdf.unitMatrix,parseAttributes(tr,this),this.element.hasAttribute("clip-path")&&"none"!==getAttribute(this.element,tr.styleSheets,"clip-path")?(rr=getClipPathNode(this,tr))&&rr.isVisible(!0,tr)?[4,applyClipPath(this,rr,tr)]:[3,2]:[3,3]):[2];case 1:return ir.sent(),[3,3];case 2:return[2];case 3:applyAttributes(tr,er,this.element),nr=0,ar=this.children,ir.label=4;case 4:return nr<ar.length?[4,ar[nr].render(tr)]:[3,7];case 5:ir.sent(),ir.label=6;case 6:return nr++,[3,4];case 7:return[2]}}))}))},_Symbol.prototype.getBoundingBoxCore=function(er){return getBoundingBoxByChildren(er,this)},_Symbol.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},_Symbol.prototype.computeNodeTransformCore=function(er){var tr=parseFloat(getAttribute(this.element,er.styleSheets,"x")||"0"),rr=parseFloat(getAttribute(this.element,er.styleSheets,"y")||"0"),nr=this.element.getAttribute("viewBox");if(nr){var ar=parseFloats(nr),ir=parseFloat(getAttribute(this.element,er.styleSheets,"width")||getAttribute(this.element.ownerSVGElement,er.styleSheets,"width")||nr[2]),or=parseFloat(getAttribute(this.element,er.styleSheets,"height")||getAttribute(this.element.ownerSVGElement,er.styleSheets,"height")||nr[3]);return computeViewBoxTransform(this.element,ar,tr,rr,ir,or,er)}return er.pdf.Matrix(1,0,0,1,tr,rr)},_Symbol}(qm),i_=function i_(er,tr){this.width=er,this.height=tr},o_=function(er){function Use(){return null!==er&&er.apply(this,arguments)||this}return __extends(Use,er),Use.prototype.renderCore=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr;return __generator(this,(function(pr){switch(pr.label){case 0:return tr=parseFloat,(rr=this.element.getAttribute("href")||this.element.getAttribute("xlink:href"))?(nr=rr.substring(1),ar=er.refsHandler.get(nr),ir=nodeIs(ar.element,"symbol,svg")&&ar.element.hasAttribute("viewBox"),or=tr(getAttribute(this.element,er.styleSheets,"x")||"0"),sr=tr(getAttribute(this.element,er.styleSheets,"y")||"0"),lr=void 0,cr=void 0,ir?(lr=tr(getAttribute(this.element,er.styleSheets,"width")||getAttribute(ar.element,er.styleSheets,"width")||"0"),cr=tr(getAttribute(this.element,er.styleSheets,"height")||getAttribute(ar.element,er.styleSheets,"height")||"0"),or+=tr(getAttribute(ar.element,er.styleSheets,"x")||"0"),sr+=tr(getAttribute(ar.element,er.styleSheets,"y")||"0"),dr=parseFloats(ar.element.getAttribute("viewBox")),ur=computeViewBoxTransform(ar.element,dr,or,sr,lr,cr,er)):ur=er.pdf.Matrix(1,0,0,1,or,sr),hr=new Im(er.pdf,{refsHandler:er.refsHandler,styleSheets:er.styleSheets,withinUse:!0,viewport:ir?new i_(lr,cr):er.viewport,svg2pdfParameters:er.svg2pdfParameters}),[4,er.refsHandler.getRendered(nr,(function(er){return Use.renderReferencedNode(er,hr)}))]):[2];case 1:return pr.sent(),er.pdf.saveGraphicsState(),er.pdf.setCurrentTransformationMatrix(er.transform),ir&&"visible"!==getAttribute(ar.element,er.styleSheets,"overflow")&&(er.pdf.rect(or,sr,lr,cr),er.pdf.clip().discardPath()),er.pdf.doFormObject(nr,ur),er.pdf.restoreGraphicsState(),[2]}}))}))},Use.renderReferencedNode=function(er,tr){return __awaiter(this,void 0,void 0,(function(){var rr;return __generator(this,(function(nr){switch(nr.label){case 0:return rr=[(rr=er.getBoundingBox(tr))[0]-.5*rr[2],rr[1]-.5*rr[3],2*rr[2],2*rr[3]],tr.pdf.beginFormObject(rr[0],rr[1],rr[2],rr[3],tr.pdf.unitMatrix),er instanceof a_?[4,er.apply(tr)]:[3,2];case 1:return nr.sent(),[3,4];case 2:return[4,er.render(tr)];case 3:nr.sent(),nr.label=4;case 4:return tr.pdf.endFormObject(er.element.getAttribute("id")),[2]}}))}))},Use.prototype.getBoundingBoxCore=function(er){return defaultBoundingBox(this.element,er)},Use.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},Use.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Use}(t_),s_=function(er){function Rect(tr,rr){return er.call(this,!1,tr,rr)||this}return __extends(Rect,er),Rect.prototype.getPath=function(er){var tr=parseFloat(getAttribute(this.element,er.styleSheets,"width")||"0"),rr=parseFloat(getAttribute(this.element,er.styleSheets,"height")||"0");if(!isFinite(tr)||tr<=0||!isFinite(rr)||rr<=0)return null;var nr=getAttribute(this.element,er.styleSheets,"rx"),ar=getAttribute(this.element,er.styleSheets,"ry"),ir=Math.min(parseFloat(nr||ar||"0"),.5*tr),or=Math.min(parseFloat(ar||nr||"0"),.5*rr),sr=parseFloat(getAttribute(this.element,er.styleSheets,"x")||"0"),lr=parseFloat(getAttribute(this.element,er.styleSheets,"y")||"0"),cr=4/3*(Math.SQRT2-1);return 0===ir&&0===or?(new Qm).moveTo(sr,lr).lineTo(sr+tr,lr).lineTo(sr+tr,lr+rr).lineTo(sr,lr+rr).close():(new Qm).moveTo(sr+=ir,lr).lineTo(sr+=tr-2*ir,lr).curveTo(sr+ir*cr,lr,sr+ir,lr+(or-or*cr),sr+=ir,lr+=or).lineTo(sr,lr+=rr-2*or).curveTo(sr,lr+or*cr,sr-ir*cr,lr+or,sr-=ir,lr+=or).lineTo(sr+=2*ir-tr,lr).curveTo(sr-ir*cr,lr,sr-ir,lr-or*cr,sr-=ir,lr-=or).lineTo(sr,lr+=2*or-rr).curveTo(sr,lr-or*cr,sr+ir*cr,lr-or,sr+=ir,lr-=or).close()},Rect.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Rect.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},Rect}(r_),l_=function(er){function EllipseBase(tr,rr){return er.call(this,!1,tr,rr)||this}return __extends(EllipseBase,er),EllipseBase.prototype.getPath=function(er){var tr=this.getRx(er),rr=this.getRy(er);if(!isFinite(tr)||rr<=0||!isFinite(rr)||rr<=0)return null;var nr=parseFloat(getAttribute(this.element,er.styleSheets,"cx")||"0"),ar=parseFloat(getAttribute(this.element,er.styleSheets,"cy")||"0"),ir=4/3*(Math.SQRT2-1)*tr,or=4/3*(Math.SQRT2-1)*rr;return(new Qm).moveTo(nr+tr,ar).curveTo(nr+tr,ar-or,nr+ir,ar-rr,nr,ar-rr).curveTo(nr-ir,ar-rr,nr-tr,ar-or,nr-tr,ar).curveTo(nr-tr,ar+or,nr-ir,ar+rr,nr,ar+rr).curveTo(nr+ir,ar+rr,nr+tr,ar+or,nr+tr,ar)},EllipseBase.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},EllipseBase.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},EllipseBase}(r_),c_=function(er){function Ellipse(tr,rr){return er.call(this,tr,rr)||this}return __extends(Ellipse,er),Ellipse.prototype.getRx=function(er){return parseFloat(getAttribute(this.element,er.styleSheets,"rx")||"0")},Ellipse.prototype.getRy=function(er){return parseFloat(getAttribute(this.element,er.styleSheets,"ry")||"0")},Ellipse}(l_);function getTextRenderingMode(er){var tr="invisible";return er.fill&&er.stroke?tr="fillThenStroke":er.fill?tr="fill":er.stroke&&(tr="stroke"),tr}function removeNewlines(er){return er.replace(/[\n\r]/g,"")}function replaceTabsBySpace(er){return er.replace(/[\t]/g," ")}function consolidateSpaces(er){return er.replace(/ +/g," ")}function transformText(er,tr,rr){switch(getAttribute(er,rr.styleSheets,"text-transform")){case"uppercase":return tr.toUpperCase();case"lowercase":return tr.toLowerCase();default:return tr}}function trimRight(er){return er.replace(/\s+$/,"")}var u_=function(){function TextChunk(er,tr,rr,nr){this.textNode=er,this.texts=[],this.textNodes=[],this.textAnchor=tr,this.originX=rr,this.originY=nr}return TextChunk.prototype.add=function(er,tr){this.texts.push(tr),this.textNodes.push(er)},TextChunk.prototype.put=function(er){var tr,rr,nr,ar=[],ir=[],or=[],sr=this.originX,lr=this.originY,cr=sr,ur=sr;for(tr=0;tr<this.textNodes.length;tr++){var dr=sr,hr=lr,pr=void 0;if("#text"===(rr=this.textNodes[tr]).nodeName)pr=er;else{parseAttributes(pr=er.clone(),this.textNode,rr);var Ar=getAttribute(rr,er.styleSheets,"stroke");Ar&&(nr=new Nm(Ar)).ok&&(pr.attributeState.stroke=new Lm(nr));var fr=getAttribute(rr,er.styleSheets,"stroke-width");void 0!==fr&&(pr.attributeState.strokeWidth=parseFloat(fr));var gr=rr.getAttribute("dx");null!==gr&&(dr+=toPixels(gr,pr.attributeState.fontSize));var mr=rr.getAttribute("dy");null!==mr&&(hr+=toPixels(mr,pr.attributeState.fontSize))}or[tr]=pr,ar[tr]=dr,ir[tr]=hr,sr=dr+er.textMeasure.measureTextWidth(this.texts[tr],pr.attributeState),lr=hr,cr=Math.min(cr,dr),ur=Math.max(ur,sr)}var _r=0;switch(this.textAnchor){case"start":_r=0;break;case"middle":_r=(ur-cr)/2;break;case"end":_r=ur-cr}for(tr=0;tr<this.textNodes.length;tr++){if("#text"!==(rr=this.textNodes[tr]).nodeName)if("hidden"===(getAttribute(rr,er.styleSheets,"visibility")||er.attributeState.visibility))continue;er.pdf.saveGraphicsState(),applyAttributes(or[tr],er,rr);var vr=or[tr].attributeState.alignmentBaseline,yr=getTextRenderingMode(or[tr].attributeState);er.pdf.text(this.texts[tr],ar[tr]-_r,ir[tr],{baseline:mapAlignmentBaseline(vr),angle:er.transform,renderingMode:"fill"===yr?void 0:yr}),er.pdf.restoreGraphicsState()}return[sr,lr]},TextChunk}(),d_=function(er){function TextNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(TextNode,er),TextNode.prototype.renderCore=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,kr,xr,Sr;return __generator(this,(function(Cr){if(er.pdf.saveGraphicsState(),tr=0,rr=er.pdf.getFontSize(),nr=toPixels(this.element.getAttribute("x"),rr),ar=toPixels(this.element.getAttribute("y"),rr),ir=toPixels(this.element.getAttribute("dx"),rr),or=toPixels(this.element.getAttribute("dy"),rr),sr=er.attributeState.visibility,0===(lr=this.element.childElementCount))xr=function transformXmlSpace(er,tr){return er=replaceTabsBySpace(er=removeNewlines(er)),"default"===tr.xmlSpace&&(er=consolidateSpaces(er=er.trim())),er}(this.element.textContent||"",er.attributeState),Sr=transformText(this.element,xr,er),tr=er.textMeasure.getTextOffset(Sr,er.attributeState),"visible"===sr&&(cr=er.attributeState.alignmentBaseline,ur=getTextRenderingMode(er.attributeState),er.pdf.text(Sr,nr+ir-tr,ar+or,{baseline:mapAlignmentBaseline(cr),angle:er.transform,renderingMode:"fill"===ur?void 0:ur}));else{for(dr=new u_(this,er.attributeState.textAnchor,nr+ir,ar+or),hr=0;hr<this.element.childNodes.length;hr++)if((pr=this.element.childNodes[hr]).textContent){if(Ar=er.attributeState.xmlSpace,fr=pr.textContent,"#text"===pr.nodeName);else{if(nodeIs(pr,"title"))continue;if(nodeIs(pr,"tspan")){if((gr=pr).childElementCount>0)for(fr="",mr=0;mr<gr.childNodes.length;mr++)"#text"===gr.childNodes[mr].nodeName&&(fr+=gr.childNodes[mr].textContent);_r=void 0,null!==(vr=gr.getAttribute("x"))&&(yr=toPixels(vr,rr),_r=dr.put(er),dr=new u_(this,getAttribute(gr,er.styleSheets,"text-anchor")||er.attributeState.textAnchor,yr,_r[1])),null!==(br=gr.getAttribute("y"))&&(wr=toPixels(br,rr),_r=dr.put(er),dr=new u_(this,getAttribute(gr,er.styleSheets,"text-anchor")||er.attributeState.textAnchor,_r[0],wr)),(kr=gr.getAttribute("xml:space"))&&(Ar=kr)}}xr=replaceTabsBySpace(xr=removeNewlines(fr)),"default"===Ar&&(0===hr&&(xr=xr.replace(/^\s+/,"")),hr===lr-1&&(xr=trimRight(xr)),xr=consolidateSpaces(xr)),Sr=transformText(this.element,xr,er),dr.add(pr,Sr)}dr.put(er)}return er.pdf.restoreGraphicsState(),[2]}))}))},TextNode.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},TextNode.prototype.getBoundingBoxCore=function(er){return defaultBoundingBox(this.element,er)},TextNode.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},TextNode}(t_),h_=function(er){function PathNode(tr,rr){return er.call(this,!0,tr,rr)||this}return __extends(PathNode,er),PathNode.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},PathNode.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},PathNode.prototype.getPath=function(er){var tr,rr,nr=new Sm(getAttribute(this.element,er.styleSheets,"d")||"").unshort().unarc().abs(),ar=new Qm;return nr.iterate((function(er,nr){var ir=er[0];switch(ir){case"M":ar.moveTo(er[1],er[2]);break;case"L":ar.lineTo(er[1],er[2]);break;case"H":ar.lineTo(er[1],rr);break;case"V":ar.lineTo(tr,er[1]);break;case"C":ar.curveTo(er[1],er[2],er[3],er[4],er[5],er[6]);break;case"Q":var or=toCubic([tr,rr],[er[1],er[2]]),sr=toCubic([er[3],er[4]],[er[1],er[2]]);ar.curveTo(or[0],or[1],sr[0],sr[1],er[3],er[4]);break;case"Z":ar.close()}switch(ir){case"M":case"L":tr=er[1],rr=er[2];break;case"H":tr=er[1];break;case"V":rr=er[1];break;case"C":tr=er[5],rr=er[6];break;case"Q":tr=er[3],rr=er[4]}})),ar},PathNode}(r_),p_=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*\s*)$/i,A_=function(er){function ImageNode(tr,rr){var nr=er.call(this,tr,rr)||this;return nr.imageLoadingPromise=null,nr.imageUrl=nr.element.getAttribute("xlink:href")||nr.element.getAttribute("href"),nr.imageUrl&&(nr.imageLoadingPromise=ImageNode.fetchImageData(nr.imageUrl)),nr}return __extends(ImageNode,er),ImageNode.prototype.renderCore=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr;return __generator(this,(function(pr){switch(pr.label){case 0:return this.imageLoadingPromise?(er.pdf.setCurrentTransformationMatrix(er.transform),tr=parseFloat(getAttribute(this.element,er.styleSheets,"width")||"0"),rr=parseFloat(getAttribute(this.element,er.styleSheets,"height")||"0"),nr=parseFloat(getAttribute(this.element,er.styleSheets,"x")||"0"),ar=parseFloat(getAttribute(this.element,er.styleSheets,"y")||"0"),!isFinite(tr)||tr<=0||!isFinite(rr)||rr<=0?[2]:[4,this.imageLoadingPromise]):[2];case 1:return ir=pr.sent(),or=ir.data,0!==(sr=ir.format).indexOf("svg")?[3,3]:(lr=new DOMParser,cr=lr.parseFromString(or,"image/svg+xml").firstElementChild,(!(ur=this.element.getAttribute("preserveAspectRatio"))||ur.indexOf("defer")<0||!cr.getAttribute("preserveAspectRatio"))&&cr.setAttribute("preserveAspectRatio",ur||""),cr.setAttribute("x",String(nr)),cr.setAttribute("y",String(ar)),cr.setAttribute("width",String(tr)),cr.setAttribute("height",String(rr)),[4,parse$1(cr,dr={}).render(new Im(er.pdf,{refsHandler:new Rm(dr),styleSheets:er.styleSheets,viewport:new i_(tr,rr),svg2pdfParameters:er.svg2pdfParameters}))]);case 2:return pr.sent(),[2];case 3:hr="data:image/"+sr+";base64,"+btoa(or);try{er.pdf.addImage(hr,"",nr,ar,tr,rr)}catch(er){"object"===("undefined"==typeof console?"undefined":_typeof(console))&&console.warn&&console.warn("Could not load image "+this.imageUrl+".\n"+er)}pr.label=4;case 4:return[2]}}))}))},ImageNode.prototype.getBoundingBoxCore=function(er){return defaultBoundingBox(this.element,er)},ImageNode.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},ImageNode.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},ImageNode.fetchImageData=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir;return __generator(this,(function(or){switch(or.label){case 0:if(!(nr=er.match(p_)))return[3,1];if(ar=nr[2],"image"!==(ir=ar.split("/"))[0])throw new Error("Unsupported image URL: "+er);return rr=ir[1],tr=nr[5],tr="base64"===nr[4]?atob(tr):decodeURIComponent(tr),[3,3];case 1:return[4,ImageNode.fetchImage(er)];case 2:tr=or.sent(),rr=er.substring(er.lastIndexOf(".")+1),or.label=3;case 3:return[2,{data:tr,format:rr}]}}))}))},ImageNode.fetchImage=function(er){return new Promise((function(tr,rr){var nr=new XMLHttpRequest;nr.open("GET",er,!0),nr.responseType="arraybuffer",nr.onload=function(){if(200!==nr.status)throw new Error("Error "+nr.status+": Failed to load image '"+er+"'");for(var rr=new Uint8Array(nr.response),ar="",ir=0;ir<rr.length;ir++)ar+=String.fromCharCode(rr[ir]);tr(ar)},nr.onerror=rr,nr.onabort=rr,nr.send(null)}))},ImageNode.getMimeType=function(er){switch(er=er.toLowerCase()){case"jpg":case"jpeg":return"image/jpeg";default:return"image/"+er}},ImageNode}(t_),f_=function(er){function Traverse(tr,rr,nr){var ar=er.call(this,!0,rr,nr)||this;return ar.closed=tr,ar}return __extends(Traverse,er),Traverse.prototype.getPath=function(er){if(!this.element.hasAttribute("points")||""===this.element.getAttribute("points"))return null;var tr=Traverse.parsePointsString(this.element.getAttribute("points")),rr=new Qm;if(tr.length<1)return rr;rr.moveTo(tr[0][0],tr[0][1]);for(var nr=1;nr<tr.length;nr++)rr.lineTo(tr[nr][0],tr[nr][1]);return this.closed&&rr.close(),rr},Traverse.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},Traverse.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Traverse.parsePointsString=function(er){for(var tr=parseFloats(er),rr=[],nr=0;nr<tr.length-1;nr+=2){var ar=tr[nr],ir=tr[nr+1];rr.push([ar,ir])}return rr},Traverse}(r_),g_=function(er){function Polygon(tr,rr){return er.call(this,!0,tr,rr)||this}return __extends(Polygon,er),Polygon}(f_),m_=function(er){function VoidNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(VoidNode,er),VoidNode.prototype.render=function(er){return Promise.resolve()},VoidNode.prototype.getBoundingBoxCore=function(er){return[0,0,0,0]},VoidNode.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},VoidNode.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},VoidNode}(Km),v_=function(er){function MarkerNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(MarkerNode,er),MarkerNode.prototype.apply=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar;return __generator(this,(function(ir){switch(ir.label){case 0:tr=this.computeNodeTransform(er),rr=this.getBoundingBox(er),er.pdf.beginFormObject(rr[0],rr[1],rr[2],rr[3],tr),nr=0,ar=this.children,ir.label=1;case 1:return nr<ar.length?[4,ar[nr].render(new Im(er.pdf,{refsHandler:er.refsHandler,styleSheets:er.styleSheets,viewport:er.viewport,svg2pdfParameters:er.svg2pdfParameters}))]:[3,4];case 2:ir.sent(),ir.label=3;case 3:return nr++,[3,1];case 4:return er.pdf.endFormObject(this.element.getAttribute("id")),[2]}}))}))},MarkerNode.prototype.getBoundingBoxCore=function(er){var tr,rr=this.element.getAttribute("viewBox");return rr&&(tr=parseFloats(rr)),[tr&&tr[0]||0,tr&&tr[1]||0,tr&&tr[2]||parseFloat(this.element.getAttribute("marker-width")||"0"),tr&&tr[3]||parseFloat(this.element.getAttribute("marker-height")||"0")]},MarkerNode.prototype.computeNodeTransformCore=function(er){var tr,rr=parseFloat(this.element.getAttribute("refX")||"0"),nr=parseFloat(this.element.getAttribute("refY")||"0"),ar=this.element.getAttribute("viewBox");if(ar){var ir=parseFloats(ar);tr=computeViewBoxTransform(this.element,ir,0,0,parseFloat(this.element.getAttribute("markerWidth")||"3"),parseFloat(this.element.getAttribute("markerHeight")||"3"),er,!0),tr=er.pdf.matrixMult(er.pdf.Matrix(1,0,0,1,-rr,-nr),tr)}else tr=er.pdf.Matrix(1,0,0,1,-rr,-nr);return tr},MarkerNode.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},MarkerNode}(qm),y_=function(er){function Circle(tr,rr){return er.call(this,tr,rr)||this}return __extends(Circle,er),Circle.prototype.getR=function(er){var tr;return null!==(tr=this.r)&&void 0!==tr?tr:this.r=parseFloat(getAttribute(this.element,er.styleSheets,"r")||"0")},Circle.prototype.getRx=function(er){return this.getR(er)},Circle.prototype.getRy=function(er){return this.getR(er)},Circle}(l_),b_=function(er){function Polyline(tr,rr){return er.call(this,!1,tr,rr)||this}return __extends(Polyline,er),Polyline}(f_),w_=function(er){function ContainerNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(ContainerNode,er),ContainerNode.prototype.renderCore=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr;return __generator(this,(function(nr){switch(nr.label){case 0:tr=0,rr=this.children,nr.label=1;case 1:return tr<rr.length?[4,rr[tr].render(er)]:[3,4];case 2:nr.sent(),nr.label=3;case 3:return tr++,[3,1];case 4:return[2]}}))}))},ContainerNode.prototype.getBoundingBoxCore=function(er){return getBoundingBoxByChildren(er,this)},ContainerNode}(e_),k_=function(er){function Svg(){return null!==er&&er.apply(this,arguments)||this}return __extends(Svg,er),Svg.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},Svg.prototype.render=function(tr){return __awaiter(this,void 0,void 0,(function(){var rr,nr,ar,ir,or;return __generator(this,(function(sr){switch(sr.label){case 0:return this.isVisible("hidden"!==tr.attributeState.visibility,tr)?(rr=this.getX(tr),nr=this.getY(tr),ar=this.getWidth(tr),ir=this.getHeight(tr),tr.pdf.saveGraphicsState(),or=tr.transform,this.element.hasAttribute("transform")&&(or=tr.pdf.matrixMult(parseTransform(this.element.getAttribute("transform"),tr),or)),tr.pdf.setCurrentTransformationMatrix(or),tr.withinUse||"visible"===getAttribute(this.element,tr.styleSheets,"overflow")||tr.pdf.rect(rr,nr,ar,ir).clip().discardPath(),[4,er.prototype.render.call(this,tr.clone({transform:tr.pdf.unitMatrix,viewport:tr.withinUse?tr.viewport:new i_(ar,ir)}))]):[2];case 1:return sr.sent(),tr.pdf.restoreGraphicsState(),[2]}}))}))},Svg.prototype.computeNodeTransform=function(er){return this.computeNodeTransformCore(er)},Svg.prototype.computeNodeTransformCore=function(er){if(er.withinUse)return er.pdf.unitMatrix;var tr,rr=this.getX(er),nr=this.getY(er),ar=this.getViewBox();if(ar){var ir=this.getWidth(er),or=this.getHeight(er);tr=computeViewBoxTransform(this.element,ar,rr,nr,ir,or,er)}else tr=er.pdf.Matrix(1,0,0,1,rr,nr);return tr},Svg.prototype.getWidth=function(er){if(void 0!==this.width)return this.width;var tr,rr,nr=er.svg2pdfParameters;if(this.isOutermostSvg(er))if(null!=nr.width)tr=nr.width;else if(rr=getAttribute(this.element,er.styleSheets,"width"))tr=parseFloat(rr);else{var ar=this.getViewBox();if(ar&&(null!=nr.height||getAttribute(this.element,er.styleSheets,"height"))){var ir=ar[2]/ar[3];tr=this.getHeight(er)*ir}else tr=Math.min(300,er.viewport.width,2*er.viewport.height)}else tr=(rr=getAttribute(this.element,er.styleSheets,"width"))?parseFloat(rr):er.viewport.width;return this.width=tr},Svg.prototype.getHeight=function(er){if(void 0!==this.height)return this.height;var tr,rr,nr=er.svg2pdfParameters;if(this.isOutermostSvg(er))if(null!=nr.height)tr=nr.height;else if(rr=getAttribute(this.element,er.styleSheets,"height"))tr=parseFloat(rr);else{var ar=this.getViewBox();if(ar){var ir=ar[2]/ar[3];tr=this.getWidth(er)/ir}else tr=Math.min(150,er.viewport.width/2,er.viewport.height)}else tr=(rr=getAttribute(this.element,er.styleSheets,"height"))?parseFloat(rr):er.viewport.height;return this.height=tr},Svg.prototype.getX=function(er){if(void 0!==this.x)return this.x;if(this.isOutermostSvg(er))return this.x=0;var tr=getAttribute(this.element,er.styleSheets,"x");return this.x=tr?parseFloat(tr):0},Svg.prototype.getY=function(er){if(void 0!==this.y)return this.y;if(this.isOutermostSvg(er))return this.y=0;var tr=getAttribute(this.element,er.styleSheets,"y");return this.y=tr?parseFloat(tr):0},Svg.prototype.getViewBox=function(){if(void 0!==this.viewBox)return this.viewBox;var er=this.element.getAttribute("viewBox");return this.viewBox=er?parseFloats(er):void 0},Svg.prototype.isOutermostSvg=function(er){return er.svg2pdfParameters.element===this.element},Svg}(w_),x_=function(er){function Group(){return null!==er&&er.apply(this,arguments)||this}return __extends(Group,er),Group.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},Group.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Group}(w_),S_=function(er){function ClipPath(){return null!==er&&er.apply(this,arguments)||this}return __extends(ClipPath,er),ClipPath.prototype.apply=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr;return __generator(this,(function(ar){switch(ar.label){case 0:if(!this.isVisible(!0,er))return[2];tr=er.pdf.matrixMult(this.computeNodeTransform(er),er.transform),er.pdf.setCurrentTransformationMatrix(tr),rr=0,nr=this.children,ar.label=1;case 1:return rr<nr.length?[4,nr[rr].render(new Im(er.pdf,{refsHandler:er.refsHandler,styleSheets:er.styleSheets,viewport:er.viewport,withinClipPath:!0,svg2pdfParameters:er.svg2pdfParameters}))]:[3,4];case 2:ar.sent(),ar.label=3;case 3:return rr++,[3,1];case 4:return er.pdf.clip().discardPath(),er.pdf.setCurrentTransformationMatrix(tr.inversed()),[2]}}))}))},ClipPath.prototype.getBoundingBoxCore=function(er){return getBoundingBoxByChildren(er,this)},ClipPath.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},ClipPath}(qm);function parse$1(er,tr){var rr,nr=[];switch(function forEachChild(er,tr){for(var rr=[],nr=0;nr<er.childNodes.length;nr++){var ar=er.childNodes[nr];"#"!==ar.nodeName.charAt(0)&&rr.push(ar)}for(nr=0;nr<rr.length;nr++)tr(nr,rr[nr])}(er,(function(er,rr){return nr.push(parse$1(rr,tr))})),er.tagName.toLowerCase()){case"a":case"g":rr=new x_(er,nr);break;case"circle":rr=new y_(er,nr);break;case"clippath":rr=new S_(er,nr);break;case"ellipse":rr=new c_(er,nr);break;case"lineargradient":rr=new Xm(er,nr);break;case"image":rr=new A_(er,nr);break;case"line":rr=new n_(er,nr);break;case"marker":rr=new v_(er,nr);break;case"path":rr=new h_(er,nr);break;case"pattern":rr=new $m(er,nr);break;case"polygon":rr=new g_(er,nr);break;case"polyline":rr=new b_(er,nr);break;case"radialgradient":rr=new Ym(er,nr);break;case"rect":rr=new s_(er,nr);break;case"svg":rr=new k_(er,nr);break;case"symbol":rr=new a_(er,nr);break;case"text":rr=new d_(er,nr);break;case"use":rr=new o_(er,nr);break;default:rr=new m_(er,nr)}if(null!=tr&&rr.element.hasAttribute("id")){var ar=dm(rr.element.id,{isIdentifier:!0});tr[ar]=tr[ar]||rr}return rr}var C_=function(){function StyleSheets(er,tr){this.rootSvg=er,this.loadExternalSheets=tr,this.styleSheets=[]}return StyleSheets.prototype.load=function(){return __awaiter(this,void 0,void 0,(function(){var er;return __generator(this,(function(tr){switch(tr.label){case 0:return[4,this.collectStyleSheetTexts()];case 1:return er=tr.sent(),this.parseCssSheets(er),[2]}}))}))},StyleSheets.prototype.collectStyleSheetTexts=function(){return __awaiter(this,void 0,void 0,(function(){var er,tr,rr,nr,ar;return __generator(this,(function(ir){switch(ir.label){case 0:if(er=[],this.loadExternalSheets&&this.rootSvg.ownerDocument)for(nr=0;nr<this.rootSvg.ownerDocument.childNodes.length;nr++)"xml-stylesheet"===(tr=this.rootSvg.ownerDocument.childNodes[nr]).nodeName&&"string"==typeof tr.data&&er.push(StyleSheets.loadSheet(tr.data.match(/href=["'].*?["']/)[0].split("=")[1].slice(1,-1)));for(rr=this.rootSvg.querySelectorAll("style,link"),nr=0;nr<rr.length;nr++)nodeIs(ar=rr[nr],"style")?er.push(ar.textContent):this.loadExternalSheets&&nodeIs(ar,"link")&&"stylesheet"===ar.getAttribute("rel")&&ar.hasAttribute("href")&&er.push(StyleSheets.loadSheet(ar.getAttribute("href")));return[4,Promise.all(er)];case 1:return[2,ir.sent().filter((function(er){return null!==er}))]}}))}))},StyleSheets.prototype.parseCssSheets=function(er){for(var tr=document.implementation.createHTMLDocument(""),rr=0,nr=er;rr<nr.length;rr++){var ar=nr[rr],ir=tr.createElement("style");ir.textContent=ar,tr.body.appendChild(ir);var or=ir.sheet;if(or instanceof CSSStyleSheet){for(var sr=or.cssRules.length-1;sr>=0;sr--){var lr=or.cssRules[sr];lr instanceof CSSStyleRule||or.deleteRule(sr);var cr=lr;if(cr.selectorText.indexOf(",")>=0){or.deleteRule(sr);for(var ur=cr.cssText.substring(cr.selectorText.length),dr=StyleSheets.splitSelectorAtCommas(cr.selectorText),hr=0;hr<dr.length;hr++)or.insertRule(dr[hr]+ur,sr+hr)}}this.styleSheets.push(or)}}},StyleSheets.splitSelectorAtCommas=function(er){for(var tr,rr=/,|["']/g,nr=/[^\\]["]/g,ar=/[^\\][']/g,ir=[],or="initial",sr=-1,lr=nr,cr=0;cr<er.length;)switch(or){case"initial":rr.lastIndex=cr,(tr=rr.exec(er))?(","===tr[0]?(ir.push(er.substring(sr+1,rr.lastIndex-1).trim()),sr=rr.lastIndex-1):(or="withinQuotes",lr='"'===tr[0]?nr:ar),cr=rr.lastIndex):(ir.push(er.substring(sr+1).trim()),cr=er.length);break;case"withinQuotes":lr.lastIndex=cr,(tr=lr.exec(er))&&(cr=lr.lastIndex,or="initial")}return ir},StyleSheets.loadSheet=function(er){return new Promise((function(tr,rr){var nr=new XMLHttpRequest;nr.open("GET",er,!0),nr.responseType="text",nr.onload=function(){200!==nr.status&&rr(new Error("Error "+nr.status+": Failed to load '"+er+"'")),tr(nr.responseText)},nr.onerror=rr,nr.onabort=rr,nr.send(null)})).catch((function(){return null}))},StyleSheets.prototype.getPropertyValue=function(er,tr){for(var rr=[],nr=0,ar=this.styleSheets;nr<ar.length;nr++)for(var ir=ar[nr],or=0;or<ir.cssRules.length;or++){var sr=ir.cssRules[or];sr.style.getPropertyValue(tr)&&er.matches(sr.selectorText)&&rr.push(sr)}if(0!==rr.length){var lr=function compare$1(er,rr){var nr=er.style.getPropertyPriority(tr);return nr!==rr.style.getPropertyPriority(tr)?"important"===nr?1:-1:function compare(er,tr){var rr,nr,ar;if("string"==typeof er){if(-1!==er.indexOf(","))throw"Invalid CSS selector";rr=Cm(er).specificityArray}else{if(!Array.isArray(er))throw"Invalid CSS selector or specificity array";if(4!==er.filter((function(er){return"number"==typeof er})).length)throw"Invalid specificity array";rr=er}if("string"==typeof tr){if(-1!==tr.indexOf(","))throw"Invalid CSS selector";nr=Cm(tr).specificityArray}else{if(!Array.isArray(tr))throw"Invalid CSS selector or specificity array";if(4!==tr.filter((function(er){return"number"==typeof er})).length)throw"Invalid specificity array";nr=tr}for(ar=0;ar<4;ar+=1){if(rr[ar]<nr[ar])return-1;if(rr[ar]>nr[ar])return 1}return 0}(er.selectorText,rr.selectorText)};return rr.reduce((function(er,tr){return 1===lr(er,tr)?er:tr})).style.getPropertyValue(tr)||void 0}},StyleSheets}();g.API.svg=function(er,tr){return void 0===tr&&(tr={}),function svg2pdf(er,tr,rr){var nr,ar,ir;return void 0===rr&&(rr={}),__awaiter(this,void 0,void 0,(function(){var or,sr,lr,cr,ur,dr,hr,pr,Ar,fr;return __generator(this,(function(gr){switch(gr.label){case 0:return or=null!==(nr=rr.x)&&void 0!==nr?nr:0,sr=null!==(ar=rr.y)&&void 0!==ar?ar:0,lr=null!==(ir=rr.loadExternalStyleSheets)&&void 0!==ir&&ir,ur=new Rm(cr={}),[4,(dr=new C_(er,lr)).load()];case 1:return gr.sent(),hr=new i_(tr.internal.pageSize.getWidth(),tr.internal.pageSize.getHeight()),pr=Em(Em({},rr),{element:er}),Ar=new Im(tr,{refsHandler:ur,styleSheets:dr,viewport:hr,svg2pdfParameters:pr}),tr.advancedAPI(),tr.saveGraphicsState(),tr.setCurrentTransformationMatrix(tr.Matrix(1,0,0,1,or,sr)),tr.setLineWidth(Ar.attributeState.strokeWidth),fr=Ar.attributeState.fill.color,tr.setFillColor(fr.r,fr.g,fr.b),tr.setFont(Ar.attributeState.fontFamily),tr.setFontSize(Ar.attributeState.fontSize*tr.internal.scaleFactor),[4,parse$1(er,cr).render(Ar)];case 2:return gr.sent(),tr.restoreGraphicsState(),tr.compatAPI(),Ar.textMeasure.cleanupTextMeasuring(),[2,tr]}}))}))}(er,this,tr)};var B_=Ar.f,E_="".endsWith,N_=Math.min,L_=correctIsRegexpLogic("endsWith"),P_=!L_&&!!function(){var er=B_(String.prototype,"endsWith");return er&&!er.writable}();_export({target:"String",proto:!0,forced:!P_&&!L_},{endsWith:function endsWith(er){var tr=String(requireObjectCoercible(this));notARegexp(er);var rr=arguments.length>1?arguments[1]:void 0,nr=toLength(tr.length),ar=void 0===rr?nr:N_(toLength(rr),nr),ir=String(er);return E_?E_.call(tr,ir,ar):tr.slice(ar-ir.length,ar)===ir}});var flattenIntoArray=function(er,tr,rr,nr,ar,ir,or,sr){for(var lr,cr=ar,ur=0,dr=!!or&&functionBindContext(or,sr,3);ur<nr;){if(ur in rr){if(lr=dr?dr(rr[ur],ur,tr):rr[ur],ir>0&&zn(lr))cr=flattenIntoArray(er,tr,lr,toLength(lr.length),cr,ir-1)-1;else{if(cr>=9007199254740991)throw TypeError("Exceed the acceptable array length");er[cr]=lr}cr++}ur++}return cr},T_=flattenIntoArray;_export({target:"Array",proto:!0},{flatMap:function flatMap(er){var tr,rr=toObject(this),nr=toLength(rr.length);return aFunction$1(er),(tr=arraySpeciesCreate(rr,0)).length=T_(tr,rr,rr,nr,0,1,er,arguments.length>1?arguments[1]:void 0),tr}}),addToUnscopables("flatMap");
|
||
/**
|
||
* For parsing color values.
|
||
* @module RGBColor
|
||
* @author Stoyan Stefanov <sstoo@gmail.com>
|
||
* @see https://www.phpied.com/rgb-color-parser-in-javascript/
|
||
* @license MIT
|
||
*/
|
||
var F_={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"},U_=[{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(er){for(var tr=arguments.length,rr=new Array(tr>1?tr-1:0),nr=1;nr<tr;nr++)rr[nr-1]=arguments[nr];return rr.map((function(er){return Number.parseInt(er)}))}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(er){for(var tr=arguments.length,rr=new Array(tr>1?tr-1:0),nr=1;nr<tr;nr++)rr[nr-1]=arguments[nr];return rr.map((function(er){return Number.parseInt(er,16)}))}},{re:/^(\w)(\w)(\w)$/,example:["#fb0","f0f"],process:function process(er){for(var tr=arguments.length,rr=new Array(tr>1?tr-1:0),nr=1;nr<tr;nr++)rr[nr-1]=arguments[nr];return rr.map((function(er){return Number.parseInt(er+er,16)}))}}],I_=function(){function RGBColor(er){var tr=this;_classCallCheck(this,RGBColor),this.ok=!1,"#"===er.charAt(0)&&(er=er.substr(1,6)),(er=(er=er.replace(/ /g,"")).toLowerCase())in F_&&(er=F_[er]),U_.forEach((function(rr){var nr=rr.re,ar=rr.process,ir=nr.exec(er);if(ir){var or=_slicedToArray(ar.apply(void 0,_toConsumableArray(ir)),3),sr=or[0],lr=or[1],cr=or[2];Object.assign(tr,{r:sr,g:lr,b:cr}),tr.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 _createClass(RGBColor,[{key:"toRGB",value:function toRGB(){return"rgb("+this.r+", "+this.g+", "+this.b+")"}},{key:"toHex",value:function toHex(){var er=this.r.toString(16),tr=this.g.toString(16),rr=this.b.toString(16);return 1===er.length&&(er="0"+er),1===tr.length&&(tr="0"+tr),1===rr.length&&(rr="0"+rr),"#"+er+tr+rr}}],[{key:"getHelpXML",value:function getHelpXML(){var er=[].concat(_toConsumableArray(U_.flatMap((function(er){return er.example}))),_toConsumableArray(Object.keys(F_))),tr=document.createElement("ul");return tr.setAttribute("id","rgbcolor-examples"),tr.append.apply(tr,_toConsumableArray(er.map((function(er){try{var tr=document.createElement("li"),rr=new RGBColor(er),nr=document.createElement("div");nr.style.cssText="\n margin: 3px;\n border: 1px solid black;\n background: ".concat(rr.toHex(),";\n color: ").concat(rr.toHex(),";"),nr.append("test");var ar=" ".concat(er," -> ").concat(rr.toRGB()," -> ").concat(rr.toHex());return tr.append(nr,ar),tr}catch(er){return""}})))),tr}}]),RGBColor}();function _typeof$1(er){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(er){return typeof er}:function _typeof(er){return er&&"function"==typeof Symbol&&er.constructor===Symbol&&er!==Symbol.prototype?"symbol":typeof er})(er)}var R_=[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],M_=[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(er,tr,rr,nr,ar,ir){if(!(isNaN(ir)||ir<1)){ir|=0;var or=function getImageDataFromCanvas(er,tr,rr,nr,ar){if("string"==typeof er&&(er=document.getElementById(er)),!er||"object"!==_typeof$1(er)||!("getContext"in er))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var ir=er.getContext("2d");try{return ir.getImageData(tr,rr,nr,ar)}catch(er){throw new Error("unable to access image data: "+er)}}(er,tr,rr,nr,ar);or=function processImageDataRGBA(er,tr,rr,nr,ar,ir){var or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,kr,xr,Sr,Cr,Br,Er,Nr,Lr,Pr=er.data,Tr=2*ir+1,Fr=nr-1,Ur=ar-1,Ir=ir+1,Rr=Ir*(Ir+1)/2,Mr=new Q_,Qr=Mr;for(lr=1;lr<Tr;lr++)Qr=Qr.next=new Q_,lr===Ir&&(Lr=Qr);Qr.next=Mr;var Or=null,Dr=null;hr=dr=0;var jr=R_[ir],Hr=M_[ir];for(sr=0;sr<ar;sr++){for(br=wr=kr=xr=pr=Ar=fr=gr=0,mr=Ir*(Sr=Pr[dr]),_r=Ir*(Cr=Pr[dr+1]),vr=Ir*(Br=Pr[dr+2]),yr=Ir*(Er=Pr[dr+3]),pr+=Rr*Sr,Ar+=Rr*Cr,fr+=Rr*Br,gr+=Rr*Er,Qr=Mr,lr=0;lr<Ir;lr++)Qr.r=Sr,Qr.g=Cr,Qr.b=Br,Qr.a=Er,Qr=Qr.next;for(lr=1;lr<Ir;lr++)cr=dr+((Fr<lr?Fr:lr)<<2),pr+=(Qr.r=Sr=Pr[cr])*(Nr=Ir-lr),Ar+=(Qr.g=Cr=Pr[cr+1])*Nr,fr+=(Qr.b=Br=Pr[cr+2])*Nr,gr+=(Qr.a=Er=Pr[cr+3])*Nr,br+=Sr,wr+=Cr,kr+=Br,xr+=Er,Qr=Qr.next;for(Or=Mr,Dr=Lr,or=0;or<nr;or++)Pr[dr+3]=Er=gr*jr>>Hr,0!==Er?(Er=255/Er,Pr[dr]=(pr*jr>>Hr)*Er,Pr[dr+1]=(Ar*jr>>Hr)*Er,Pr[dr+2]=(fr*jr>>Hr)*Er):Pr[dr]=Pr[dr+1]=Pr[dr+2]=0,pr-=mr,Ar-=_r,fr-=vr,gr-=yr,mr-=Or.r,_r-=Or.g,vr-=Or.b,yr-=Or.a,cr=hr+((cr=or+ir+1)<Fr?cr:Fr)<<2,pr+=br+=Or.r=Pr[cr],Ar+=wr+=Or.g=Pr[cr+1],fr+=kr+=Or.b=Pr[cr+2],gr+=xr+=Or.a=Pr[cr+3],Or=Or.next,mr+=Sr=Dr.r,_r+=Cr=Dr.g,vr+=Br=Dr.b,yr+=Er=Dr.a,br-=Sr,wr-=Cr,kr-=Br,xr-=Er,Dr=Dr.next,dr+=4;hr+=nr}for(or=0;or<nr;or++){for(wr=kr=xr=br=Ar=fr=gr=pr=0,mr=Ir*(Sr=Pr[dr=or<<2]),_r=Ir*(Cr=Pr[dr+1]),vr=Ir*(Br=Pr[dr+2]),yr=Ir*(Er=Pr[dr+3]),pr+=Rr*Sr,Ar+=Rr*Cr,fr+=Rr*Br,gr+=Rr*Er,Qr=Mr,lr=0;lr<Ir;lr++)Qr.r=Sr,Qr.g=Cr,Qr.b=Br,Qr.a=Er,Qr=Qr.next;for(ur=nr,lr=1;lr<=ir;lr++)dr=ur+or<<2,pr+=(Qr.r=Sr=Pr[dr])*(Nr=Ir-lr),Ar+=(Qr.g=Cr=Pr[dr+1])*Nr,fr+=(Qr.b=Br=Pr[dr+2])*Nr,gr+=(Qr.a=Er=Pr[dr+3])*Nr,br+=Sr,wr+=Cr,kr+=Br,xr+=Er,Qr=Qr.next,lr<Ur&&(ur+=nr);for(dr=or,Or=Mr,Dr=Lr,sr=0;sr<ar;sr++)Pr[(cr=dr<<2)+3]=Er=gr*jr>>Hr,Er>0?(Er=255/Er,Pr[cr]=(pr*jr>>Hr)*Er,Pr[cr+1]=(Ar*jr>>Hr)*Er,Pr[cr+2]=(fr*jr>>Hr)*Er):Pr[cr]=Pr[cr+1]=Pr[cr+2]=0,pr-=mr,Ar-=_r,fr-=vr,gr-=yr,mr-=Or.r,_r-=Or.g,vr-=Or.b,yr-=Or.a,cr=or+((cr=sr+Ir)<Ur?cr:Ur)*nr<<2,pr+=br+=Or.r=Pr[cr],Ar+=wr+=Or.g=Pr[cr+1],fr+=kr+=Or.b=Pr[cr+2],gr+=xr+=Or.a=Pr[cr+3],Or=Or.next,mr+=Sr=Dr.r,_r+=Cr=Dr.g,vr+=Br=Dr.b,yr+=Er=Dr.a,br-=Sr,wr-=Cr,kr-=Br,xr-=Er,Dr=Dr.next,dr+=nr}return er}(or,0,0,nr,ar,ir),er.getContext("2d").putImageData(or,tr,rr)}}var Q_=function BlurStack(){!function _classCallCheck$1(er,tr){if(!(er instanceof tr))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},O_=function isNullish(er){return null==er},D_=function canvg(er,tr,rr){if(O_(er)&&O_(tr)&&O_(rr)){var nr=document.querySelectorAll("svg");return Promise.all(_toConsumableArray(nr).map((function(er){var tr=document.createElement("canvas");tr.width=er.clientWidth,tr.height=er.clientHeight,er.before(tr),er.remove();var rr=document.createElement("div");return rr.append(er),canvg(tr,rr.innerHTML)})))}"string"==typeof er&&(er=document.getElementById(er)),O_(er.svg)||er.svg.stop();var ar=function build(er){var tr={opts:er,FRAMERATE:30,MAX_VIRTUAL_PIXELS:3e4,log:function(er){}};!0===tr.opts.log&&"undefined"!=typeof console&&(tr.log=function(er){console.log(er)});tr.init=function(er){var rr=0;tr.UniqueId=function(){return"canvg"+ ++rr},tr.Definitions={},tr.Styles={},tr.Animations=[],tr.Images=[],tr.ctx=er,tr.ViewPort={viewPorts:[],Clear:function Clear(){this.viewPorts=[]},SetCurrent:function SetCurrent(er,tr){this.viewPorts.push({width:er,height:tr})},RemoveCurrent:function RemoveCurrent(){this.viewPorts.pop()},Current:function Current(){return this.viewPorts[this.viewPorts.length-1]},width:function width(){return this.Current().width},height:function height(){return this.Current().height},ComputeSize:function ComputeSize(er){return O_(er)||"number"!=typeof er?"x"===er?this.width():"y"===er?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2):er}}},tr.init(),tr.ImagesLoaded=function(){return tr.Images.every((function(er){return er.loaded}))},tr.trim=function(er){return er.replace(/^\s+|\s+$/g,"")},tr.compressSpaces=function(er){return er.replace(/\s+/gm," ")},tr.ajax=function(er,tr){var rr=window.XMLHttpRequest?new XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");return tr?new Promise((function(tr,nr){rr.open("GET",er,!0).addEventListener("load",(function(){tr(rr.responseText)})),rr.send(null)})):(rr.open("GET",er,!1),rr.send(null),rr.responseText)},tr.parseXml=function(er){if(window.DOMParser)return(new DOMParser).parseFromString(er,"text/xml");er=er.replace(/<!DOCTYPE svg[^>]*>/,"");var tr=new window.ActiveXObject("Microsoft.XMLDOM");return tr.async="false",tr.loadXML(er),tr};var rr={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"};tr.Property=function(){function Property(er,tr){_classCallCheck(this,Property),this.name=er,this.value=tr}return _createClass(Property,[{key:"getValue",value:function getValue(){return this.value}},{key:"hasValue",value:function hasValue(){return!O_(this.value)&&""!==this.value}},{key:"numValue",value:function numValue(){if(!this.hasValue())return 0;var er=Number.parseFloat(this.value);return String(this.value).endsWith("%")&&(er/=100),er}},{key:"valueOrDefault",value:function valueOrDefault(er){return this.hasValue()?this.value:er}},{key:"numValueOrDefault",value:function numValueOrDefault(er){return this.hasValue()?this.numValue():er}},{key:"addOpacity",value:function addOpacity(er){var rr=this.value;if(!O_(er.value)&&""!==er.value&&"string"==typeof this.value){var nr=new I_(this.value);nr.ok&&(rr="rgba("+nr.r+", "+nr.g+", "+nr.b+", "+er.numValue()+")")}return new tr.Property(this.name,rr)}},{key:"getDefinition",value:function getDefinition(){var er=this.value.match(/#([^)'"]+)/);return er&&(er=er[1]),er||(er=this.value),tr.Definitions[er]}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.value.startsWith("url(")}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(er,rr){var nr=this.getDefinition();if(!O_(nr)&&nr.createGradient)return nr.createGradient(tr.ctx,er,rr);if(!O_(nr)&&nr.createPattern){if(nr.getHrefAttribute().hasValue()){var ar=nr.attribute("patternTransform");nr=nr.getHrefAttribute().getDefinition(),ar.hasValue()&&(nr.attribute("patternTransform",!0).value=ar.value)}return nr.createPattern(tr.ctx,er)}return null}},{key:"getDPI",value:function getDPI(er){return 96}},{key:"getEM",value:function getEM(er){var rr=12,nr=new tr.Property("fontSize",tr.Font.Parse(tr.ctx.font).fontSize);return nr.hasValue()&&(rr=nr.toPixels(er)),rr}},{key:"getUnits",value:function getUnits(){return String(this.value).replace(/[\d.-]/g,"")}},{key:"toPixels",value:function toPixels(er,rr){if(!this.hasValue())return 0;var nr=String(this.value);if(nr.endsWith("em"))return this.numValue()*this.getEM(er);if(nr.endsWith("ex"))return this.numValue()*this.getEM(er)/2;if(nr.endsWith("px"))return this.numValue();if(nr.endsWith("pt"))return this.numValue()*this.getDPI(er)*(1/72);if(nr.endsWith("pc"))return 15*this.numValue();if(nr.endsWith("cm"))return this.numValue()*this.getDPI(er)/2.54;if(nr.endsWith("mm"))return this.numValue()*this.getDPI(er)/25.4;if(nr.endsWith("in"))return this.numValue()*this.getDPI(er);if(nr.endsWith("%"))return this.numValue()*tr.ViewPort.ComputeSize(er);var ar=this.numValue();return rr&&ar<1?ar*tr.ViewPort.ComputeSize(er):ar}},{key:"toMilliseconds",value:function toMilliseconds(){if(!this.hasValue())return 0;var er=String(this.value);return er.endsWith("ms")?this.numValue():er.endsWith("s")?1e3*this.numValue():this.numValue()}},{key:"toRadians",value:function toRadians(){if(!this.hasValue())return 0;var er=String(this.value);return er.endsWith("deg")?this.numValue()*(Math.PI/180):er.endsWith("grad")?this.numValue()*(Math.PI/200):er.endsWith("rad")?this.numValue():this.numValue()*(Math.PI/180)}},{key:"toTextBaseline",value:function toTextBaseline(){return this.hasValue()?rr[this.value]:null}}]),Property}(),tr.Font={Styles:"normal|italic|oblique|inherit",Variants:"normal|small-caps|inherit",Weights:"normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",CreateFont:function CreateFont(er,rr,nr,ar,ir,or){var sr=O_(or)?this.CreateFont("","","","","",tr.ctx.font):this.Parse(or);return{fontFamily:ir||sr.fontFamily,fontSize:ar||sr.fontSize,fontStyle:er||sr.fontStyle,fontWeight:nr||sr.fontWeight,fontVariant:rr||sr.fontVariant,toString:function toString(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}},Parse:function Parse(er){var rr=this,nr={},ar=tr.trim(tr.compressSpaces(er||"")).split(" "),ir={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},or="";return ar.forEach((function(er){!ir.fontStyle&&rr.Styles.includes(er)?("inherit"!==er&&(nr.fontStyle=er),ir.fontStyle=!0):!ir.fontVariant&&rr.Variants.includes(er)?("inherit"!==er&&(nr.fontVariant=er),ir.fontStyle=ir.fontVariant=!0):!ir.fontWeight&&rr.Weights.includes(er)?("inherit"!==er&&(nr.fontWeight=er),ir.fontStyle=ir.fontVariant=ir.fontWeight=!0):ir.fontSize?"inherit"!==er&&(or+=er):("inherit"!==er&&(nr.fontSize=er.split("/")[0]),ir.fontStyle=ir.fontVariant=ir.fontWeight=ir.fontSize=!0)})),""!==or&&(nr.fontFamily=or),nr}},tr.ToNumberArray=function(er){return tr.trim(tr.compressSpaces((er||"").replace(/,/g," "))).split(" ").map((function(er){return Number.parseFloat(er)}))},tr.Point=function(){function _class(er,tr){_classCallCheck(this,_class),this.x=er,this.y=tr}return _createClass(_class,[{key:"angleTo",value:function angleTo(er){return Math.atan2(er.y-this.y,er.x-this.x)}},{key:"applyTransform",value:function applyTransform(er){var tr=this.x*er[0]+this.y*er[2]+er[4],rr=this.x*er[1]+this.y*er[3]+er[5];this.x=tr,this.y=rr}}]),_class}(),tr.CreatePoint=function(er){var rr=tr.ToNumberArray(er);return new tr.Point(rr[0],rr[1])},tr.CreatePath=function(er){for(var rr=tr.ToNumberArray(er),nr=[],ar=0;ar<rr.length;ar+=2)nr.push(new tr.Point(rr[ar],rr[ar+1]));return nr},tr.BoundingBox=function(){function _class2(er,tr,rr,nr){_classCallCheck(this,_class2),this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN,this.addPoint(er,tr),this.addPoint(rr,nr)}return _createClass(_class2,[{key:"x",value:function x(){return this.x1}},{key:"y",value:function y(){return this.y1}},{key:"width",value:function width(){return this.x2-this.x1}},{key:"height",value:function height(){return this.y2-this.y1}},{key:"addPoint",value:function addPoint(er,tr){O_(er)||((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=er,this.x2=er),er<this.x1&&(this.x1=er),er>this.x2&&(this.x2=er)),O_(tr)||((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=tr,this.y2=tr),tr<this.y1&&(this.y1=tr),tr>this.y2&&(this.y2=tr))}},{key:"addX",value:function addX(er){this.addPoint(er,null)}},{key:"addY",value:function addY(er){this.addPoint(null,er)}},{key:"addBoundingBox",value:function addBoundingBox(er){this.addPoint(er.x1,er.y1),this.addPoint(er.x2,er.y2)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(er,tr,rr,nr,ar,ir){var or=er+2/3*(rr-er),sr=tr+2/3*(nr-tr),lr=or+1/3*(ar-er),cr=sr+1/3*(ir-tr);this.addBezierCurve(er,tr,or,lr,sr,cr,ar,ir)}},{key:"addBezierCurve",value:function addBezierCurve(er,tr,rr,nr,ar,ir,or,sr){var lr=this,cr=[er,tr],ur=[rr,nr],dr=[ar,ir],hr=[or,sr];this.addPoint(cr[0],cr[1]),this.addPoint(hr[0],hr[1]);for(var pr=function _loop(er){var tr=function f(tr){return Math.pow(1-tr,3)*cr[er]+3*Math.pow(1-tr,2)*tr*ur[er]+3*(1-tr)*Math.pow(tr,2)*dr[er]+Math.pow(tr,3)*hr[er]},rr=6*cr[er]-12*ur[er]+6*dr[er],nr=-3*cr[er]+9*ur[er]-9*dr[er]+3*hr[er],ar=3*ur[er]-3*cr[er];if(0===nr){if(0===rr)return"continue";var ir=-ar/rr;return ir>0&&ir<1&&(0===er&&lr.addX(tr(ir)),1===er&&lr.addY(tr(ir))),"continue"}var or=Math.pow(rr,2)-4*ar*nr;if(or<0)return"continue";var sr=(-rr+Math.sqrt(or))/(2*nr);sr>0&&sr<1&&(0===er&&lr.addX(tr(sr)),1===er&&lr.addY(tr(sr)));var pr=(-rr-Math.sqrt(or))/(2*nr);pr>0&&pr<1&&(0===er&&lr.addX(tr(pr)),1===er&&lr.addY(tr(pr)))},Ar=0;Ar<=1;Ar++)pr(Ar)}},{key:"isPointInBox",value:function isPointInBox(er,tr){return this.x1<=er&&er<=this.x2&&this.y1<=tr&&tr<=this.y2}}]),_class2}(),tr.Transform=function(){function _class3(er){var rr=this;_classCallCheck(this,_class3),this.Type={translate:function translate(er){_classCallCheck(this,translate),this.p=tr.CreatePoint(er),this.apply=function(er){er.translate(this.p.x||0,this.p.y||0)},this.unapply=function(er){er.translate(-1*this.p.x||0,-1*this.p.y||0)},this.applyToPoint=function(er){er.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}},rotate:function rotate(er){_classCallCheck(this,rotate);var rr=tr.ToNumberArray(er);this.angle=new tr.Property("angle",rr[0]),this.cx=rr[1]||0,this.cy=rr[2]||0,this.apply=function(er){er.translate(this.cx,this.cy),er.rotate(this.angle.toRadians()),er.translate(-this.cx,-this.cy)},this.unapply=function(er){er.translate(this.cx,this.cy),er.rotate(-1*this.angle.toRadians()),er.translate(-this.cx,-this.cy)},this.applyToPoint=function(er){var tr=this.angle.toRadians();er.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]),er.applyTransform([Math.cos(tr),Math.sin(tr),-Math.sin(tr),Math.cos(tr),0,0]),er.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}},scale:function scale(er){_classCallCheck(this,scale),this.p=tr.CreatePoint(er),this.apply=function(er){er.scale(this.p.x||1,this.p.y||this.p.x||1)},this.unapply=function(er){er.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)},this.applyToPoint=function(er){er.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}},matrix:function matrix(er){_classCallCheck(this,matrix),this.m=tr.ToNumberArray(er),this.apply=function(er){er.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])},this.applyToPoint=function(er){er.applyTransform(this.m)}}},Object.assign(this.Type,{SkewBase:function(er){_inherits(SkewBase,er);var rr=_createSuper(SkewBase);function SkewBase(er){var nr;return _classCallCheck(this,SkewBase),(nr=rr.call(this,er)).angle=new tr.Property("angle",er),nr}return SkewBase}(this.Type.matrix)}),Object.assign(this.Type,{skewX:function(er){_inherits(skewX,er);var tr=_createSuper(skewX);function skewX(er){var rr;return _classCallCheck(this,skewX),(rr=tr.call(this,er)).m=[1,0,Math.tan(rr.angle.toRadians()),1,0,0],rr}return skewX}(this.Type.SkewBase),skewY:function(er){_inherits(skewY,er);var tr=_createSuper(skewY);function skewY(er){var rr;return _classCallCheck(this,skewY),(rr=tr.call(this,er)).m=[1,Math.tan(rr.angle.toRadians()),0,1,0,0],rr}return skewY}(this.Type.SkewBase)});var nr=tr.trim(tr.compressSpaces(er)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/);this.transforms=nr.map((function(er){var nr=tr.trim(er.split("(")[0]),ar=er.split("(")[1].replace(")",""),ir=new rr.Type[nr](ar);return ir.type=nr,ir}))}return _createClass(_class3,[{key:"apply",value:function apply(er){this.transforms.forEach((function(tr){tr.apply(er)}))}},{key:"unapply",value:function unapply(er){for(var tr=this.transforms.length-1;tr>=0;tr--)this.transforms[tr].unapply(er)}},{key:"applyToPoint",value:function applyToPoint(er){this.transforms.forEach((function(tr){tr.applyToPoint(er)}))}}]),_class3}(),tr.AspectRatio=function(er,rr,nr,ar,ir,or,sr,lr,cr,ur){var dr=(rr=(rr=tr.compressSpaces(rr)).replace(/^defer\s/,"")).split(" ")[0]||"xMidYMid",hr=rr.split(" ")[1]||"meet",pr=nr/ar,Ar=ir/or,fr=Math.min(pr,Ar),gr=Math.max(pr,Ar);"meet"===hr&&(ar*=fr,or*=fr),"slice"===hr&&(ar*=gr,or*=gr),cr=new tr.Property("refX",cr),ur=new tr.Property("refY",ur),cr.hasValue()&&ur.hasValue()?er.translate(-fr*cr.toPixels("x"),-fr*ur.toPixels("y")):(dr.startsWith("xMid")&&("meet"===hr&&fr===Ar||"slice"===hr&&gr===Ar)&&er.translate(nr/2-ar/2,0),dr.endsWith("YMid")&&("meet"===hr&&fr===pr||"slice"===hr&&gr===pr)&&er.translate(0,ir/2-or/2),dr.startsWith("xMax")&&("meet"===hr&&fr===Ar||"slice"===hr&&gr===Ar)&&er.translate(nr-ar,0),dr.endsWith("YMax")&&("meet"===hr&&fr===pr||"slice"===hr&&gr===pr)&&er.translate(0,ir-or)),"none"===dr?er.scale(pr,Ar):"meet"===hr?er.scale(fr,fr):"slice"===hr&&er.scale(gr,gr),er.translate(O_(sr)?0:-sr,O_(lr)?0:-lr)},tr.Element={},tr.EmptyProperty=new tr.Property("EMPTY",""),tr.Element.ElementBase=function(){function _class4(er){var rr=this;if(_classCallCheck(this,_class4),this.captureTextNodes=arguments[1],this.attributes={},this.styles={},this.children=[],!O_(er)&&1===er.nodeType){_toConsumableArray(er.childNodes).forEach((function(er){if(1===er.nodeType&&rr.addChild(er,!0),rr.captureTextNodes&&(3===er.nodeType||4===er.nodeType)){var nr=er.nodeValue||er.text||"";""!==tr.trim(tr.compressSpaces(nr))&&rr.addChild(new tr.Element.tspan(er),!1)}})),_toConsumableArray(er.attributes).forEach((function(er){var nr=er.nodeName,ar=er.nodeValue;rr.attributes[nr]=new tr.Property(nr,ar)}));var nr=tr.Styles[er.nodeName];if(O_(nr)||Object.entries(nr).forEach((function(er){var tr=_slicedToArray(er,2),nr=tr[0],ar=tr[1];rr.styles[nr]=ar})),this.attribute("class").hasValue())tr.compressSpaces(this.attribute("class").value).split(" ").forEach((function(ar){nr=tr.Styles["."+ar],O_(nr)||Object.entries(nr).forEach((function(er){var tr=_slicedToArray(er,2),nr=tr[0],ar=tr[1];rr.styles[nr]=ar})),nr=tr.Styles[er.nodeName+"."+ar],O_(nr)||Object.entries(nr).forEach((function(er){var tr=_slicedToArray(er,2),nr=tr[0],ar=tr[1];rr.styles[nr]=ar}))}));if(this.attribute("id").hasValue()){var ar=tr.Styles["#"+this.attribute("id").value];O_(ar)||Object.entries(ar).forEach((function(er){var tr=_slicedToArray(er,2),nr=tr[0],ar=tr[1];rr.styles[nr]=ar}))}if(this.attribute("style").hasValue())this.attribute("style").value.split(";").forEach((function(er){if(""!==tr.trim(er)){var nr=er.split(":"),ar=nr.name,ir=nr.value;ar=tr.trim(ar),ir=tr.trim(ir),rr.styles[ar]=new tr.Property(ar,ir)}}));this.attribute("id").hasValue()&&O_(tr.Definitions[this.attribute("id").value])&&(tr.Definitions[this.attribute("id").value]=this)}}return _createClass(_class4,[{key:"attribute",value:function attribute(er,rr){var nr=this.attributes[er];return O_(nr)?(!0===rr&&(nr=new tr.Property(er,""),this.attributes[er]=nr),nr||tr.EmptyProperty):nr}},{key:"getHrefAttribute",value:function getHrefAttribute(){for(var er in this.attributes)if(er.endsWith(":href"))return this.attributes[er];return tr.EmptyProperty}},{key:"style",value:function style(er,rr,nr){var ar=this.styles[er];if(!O_(ar))return ar;var ir=this.attribute(er);if(!O_(ir)&&ir.hasValue())return this.styles[er]=ir,ir;if(!0!==nr){var or=this.parent;if(!O_(or)){var sr=or.style(er);if(!O_(sr)&&sr.hasValue())return sr}}return!0===rr&&(ar=new tr.Property(er,""),this.styles[er]=ar),ar||tr.EmptyProperty}},{key:"render",value:function render(er){if("none"!==this.style("display").value&&"hidden"!==this.style("visibility").value){if(er.save(),this.attribute("mask").hasValue()){var tr=this.attribute("mask").getDefinition();O_(tr)||tr.apply(er,this)}else if(this.style("filter").hasValue()){var rr=this.style("filter").getDefinition();O_(rr)||rr.apply(er,this)}else this.setContext(er),this.renderChildren(er),this.clearContext(er);er.restore()}}},{key:"setContext",value:function setContext(er){}},{key:"clearContext",value:function clearContext(er){}},{key:"renderChildren",value:function renderChildren(er){this.children.forEach((function(tr){tr.render(er)}))}},{key:"addChild",value:function addChild(er,rr){var nr=rr?tr.CreateElement(er):er;nr.parent=this,"title"!==nr.type&&this.children.push(nr)}}]),_class4}(),tr.Element.RenderedElementBase=function(er){_inherits(_class5,er);var rr=_createSuper(_class5);function _class5(){return _classCallCheck(this,_class5),rr.apply(this,arguments)}return _createClass(_class5,[{key:"setContext",value:function setContext(er){if(this.style("fill").isUrlDefinition()){var rr=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity"));O_(rr)||(er.fillStyle=rr)}else if(this.style("fill").hasValue()){var nr=this.style("fill");"currentColor"===nr.value&&(nr.value=this.style("color").value),er.fillStyle="none"===nr.value?"rgba(0,0,0,0)":nr.value}if(this.style("fill-opacity").hasValue()){var ar=new tr.Property("fill",er.fillStyle);ar=ar.addOpacity(this.style("fill-opacity")),er.fillStyle=ar.value}if(this.style("stroke").isUrlDefinition()){var ir=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity"));O_(ir)||(er.strokeStyle=ir)}else if(this.style("stroke").hasValue()){var or=this.style("stroke");"currentColor"===or.value&&(or.value=this.style("color").value),er.strokeStyle="none"===or.value?"rgba(0,0,0,0)":or.value}if(this.style("stroke-opacity").hasValue()){var sr=new tr.Property("stroke",er.strokeStyle);sr=sr.addOpacity(this.style("stroke-opacity")),er.strokeStyle=sr.value}if(this.style("stroke-width").hasValue()){var lr=this.style("stroke-width").toPixels();er.lineWidth=0===lr?.001:lr}if(this.style("stroke-linecap").hasValue()&&(er.lineCap=this.style("stroke-linecap").value),this.style("stroke-linejoin").hasValue()&&(er.lineJoin=this.style("stroke-linejoin").value),this.style("stroke-miterlimit").hasValue()&&(er.miterLimit=this.style("stroke-miterlimit").value),this.style("stroke-dasharray").hasValue()&&"none"!==this.style("stroke-dasharray").value){var cr=tr.ToNumberArray(this.style("stroke-dasharray").value);void 0!==er.setLineDash?er.setLineDash(cr):void 0!==er.webkitLineDash?er.webkitLineDash=cr:void 0===er.mozDash||1===cr.length&&0===cr[0]||(er.mozDash=cr);var ur=this.style("stroke-dashoffset").numValueOrDefault(1);void 0!==er.lineDashOffset?er.lineDashOffset=ur:void 0!==er.webkitLineDashOffset?er.webkitLineDashOffset=ur:void 0!==er.mozDashOffset&&(er.mozDashOffset=ur)}(void 0!==er.font&&(er.font=tr.Font.CreateFont(this.style("font-style").value,this.style("font-variant").value,this.style("font-weight").value,this.style("font-size").hasValue()?this.style("font-size").toPixels()+"px":"",this.style("font-family").value).toString()),this.attribute("transform").hasValue())&&new tr.Transform(this.attribute("transform").value).apply(er);if(this.style("clip-path",!1,!0).hasValue()){var dr=this.style("clip-path",!1,!0).getDefinition();O_(dr)||dr.apply(er)}this.style("opacity").hasValue()&&(er.globalAlpha=this.style("opacity").numValue())}}]),_class5}(tr.Element.ElementBase),tr.Element.PathElementBase=function(er){_inherits(_class6,er);var rr=_createSuper(_class6);function _class6(){return _classCallCheck(this,_class6),rr.apply(this,arguments)}return _createClass(_class6,[{key:"path",value:function path(er){return O_(er)||er.beginPath(),new tr.BoundingBox}},{key:"renderChildren",value:function renderChildren(er){this.path(er),tr.Mouse.checkPath(this,er),""!==er.fillStyle&&("inherit"!==this.style("fill-rule").valueOrDefault("inherit")?er.fill(this.style("fill-rule").value):er.fill()),""!==er.strokeStyle&&er.stroke();var rr=this.getMarkers();if(!O_(rr)){if(this.style("marker-start").isUrlDefinition())this.style("marker-start").getDefinition().render(er,rr[0][0],rr[0][1]);if(this.style("marker-mid").isUrlDefinition())for(var nr=this.style("marker-mid").getDefinition(),ar=1;ar<rr.length-1;ar++)nr.render(er,rr[ar][0],rr[ar][1]);if(this.style("marker-end").isUrlDefinition())this.style("marker-end").getDefinition().render(er,rr[rr.length-1][0],rr[rr.length-1][1])}}},{key:"getBoundingBox",value:function getBoundingBox(){return this.path()}},{key:"getMarkers",value:function getMarkers(){return null}}]),_class6}(tr.Element.RenderedElementBase),tr.Element.svg=function(er){_inherits(_class7,er);var rr=_createSuper(_class7);function _class7(){return _classCallCheck(this,_class7),rr.apply(this,arguments)}return _createClass(_class7,[{key:"clearContext",value:function clearContext(er){_get(_getPrototypeOf(_class7.prototype),"clearContext",this).call(this,er),tr.ViewPort.RemoveCurrent()}},{key:"setContext",value:function setContext(er){er.strokeStyle="rgba(0,0,0,0)",er.lineCap="butt",er.lineJoin="miter",er.miterLimit=4,void 0!==er.font&&void 0!==window.getComputedStyle&&(er.font=window.getComputedStyle(er.canvas).getPropertyValue("font")),_get(_getPrototypeOf(_class7.prototype),"setContext",this).call(this,er),this.attribute("x").hasValue()||(this.attribute("x",!0).value=0),this.attribute("y").hasValue()||(this.attribute("y",!0).value=0),er.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var rr=tr.ViewPort.width(),nr=tr.ViewPort.height();if(this.attribute("width").hasValue()||(this.attribute("width",!0).value="100%"),this.attribute("height").hasValue()||(this.attribute("height",!0).value="100%"),void 0===this.root){rr=this.attribute("width").toPixels("x"),nr=this.attribute("height").toPixels("y");var ar=0,ir=0;this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()&&(ar=-this.attribute("refX").toPixels("x"),ir=-this.attribute("refY").toPixels("y")),"visible"!==this.attribute("overflow").valueOrDefault("hidden")&&(er.beginPath(),er.moveTo(ar,ir),er.lineTo(rr,ir),er.lineTo(rr,nr),er.lineTo(ar,nr),er.closePath(),er.clip())}if(tr.ViewPort.SetCurrent(rr,nr),this.attribute("viewBox").hasValue()){var or=tr.ToNumberArray(this.attribute("viewBox").value),sr=or[0],lr=or[1];rr=or[2],nr=or[3],tr.AspectRatio(er,this.attribute("preserveAspectRatio").value,tr.ViewPort.width(),rr,tr.ViewPort.height(),nr,sr,lr,this.attribute("refX").value,this.attribute("refY").value),tr.ViewPort.RemoveCurrent(),tr.ViewPort.SetCurrent(or[2],or[3])}}}]),_class7}(tr.Element.RenderedElementBase),tr.Element.rect=function(er){_inherits(_class8,er);var rr=_createSuper(_class8);function _class8(){return _classCallCheck(this,_class8),rr.apply(this,arguments)}return _createClass(_class8,[{key:"path",value:function path(er){var rr=this.attribute("x").toPixels("x"),nr=this.attribute("y").toPixels("y"),ar=this.attribute("width").toPixels("x"),ir=this.attribute("height").toPixels("y"),or=this.attribute("rx").toPixels("x"),sr=this.attribute("ry").toPixels("y");return this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue()&&(sr=or),this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue()&&(or=sr),or=Math.min(or,ar/2),sr=Math.min(sr,ir/2),O_(er)||(er.beginPath(),er.moveTo(rr+or,nr),er.lineTo(rr+ar-or,nr),er.quadraticCurveTo(rr+ar,nr,rr+ar,nr+sr),er.lineTo(rr+ar,nr+ir-sr),er.quadraticCurveTo(rr+ar,nr+ir,rr+ar-or,nr+ir),er.lineTo(rr+or,nr+ir),er.quadraticCurveTo(rr,nr+ir,rr,nr+ir-sr),er.lineTo(rr,nr+sr),er.quadraticCurveTo(rr,nr,rr+or,nr),er.closePath()),new tr.BoundingBox(rr,nr,rr+ar,nr+ir)}}]),_class8}(tr.Element.PathElementBase),tr.Element.circle=function(er){_inherits(_class9,er);var rr=_createSuper(_class9);function _class9(){return _classCallCheck(this,_class9),rr.apply(this,arguments)}return _createClass(_class9,[{key:"path",value:function path(er){var rr=this.attribute("cx").toPixels("x"),nr=this.attribute("cy").toPixels("y"),ar=this.attribute("r").toPixels();return O_(er)||(er.beginPath(),er.arc(rr,nr,ar,0,2*Math.PI,!0),er.closePath()),new tr.BoundingBox(rr-ar,nr-ar,rr+ar,nr+ar)}}]),_class9}(tr.Element.PathElementBase);var nr=(Math.sqrt(2)-1)/3*4;function imGet(er,tr,rr,nr,ar,ir){return er[rr*nr*4+4*tr+ir]}function imSet(er,tr,rr,nr,ar,ir,or){er[rr*nr*4+4*tr+ir]=or}return tr.Element.ellipse=function(er){_inherits(_class10,er);var rr=_createSuper(_class10);function _class10(){return _classCallCheck(this,_class10),rr.apply(this,arguments)}return _createClass(_class10,[{key:"path",value:function path(er){var rr=this.attribute("rx").toPixels("x"),ar=this.attribute("ry").toPixels("y"),ir=this.attribute("cx").toPixels("x"),or=this.attribute("cy").toPixels("y");return O_(er)||(er.beginPath(),er.moveTo(ir,or-ar),er.bezierCurveTo(ir+nr*rr,or-ar,ir+rr,or-nr*ar,ir+rr,or),er.bezierCurveTo(ir+rr,or+nr*ar,ir+nr*rr,or+ar,ir,or+ar),er.bezierCurveTo(ir-nr*rr,or+ar,ir-rr,or+nr*ar,ir-rr,or),er.bezierCurveTo(ir-rr,or-nr*ar,ir-nr*rr,or-ar,ir,or-ar),er.closePath()),new tr.BoundingBox(ir-rr,or-ar,ir+rr,or+ar)}}]),_class10}(tr.Element.PathElementBase),tr.Element.line=function(er){_inherits(_class11,er);var rr=_createSuper(_class11);function _class11(){return _classCallCheck(this,_class11),rr.apply(this,arguments)}return _createClass(_class11,[{key:"getPoints",value:function getPoints(){return[new tr.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new tr.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]}},{key:"path",value:function path(er){var rr=this.getPoints();return O_(er)||(er.beginPath(),er.moveTo(rr[0].x,rr[0].y),er.lineTo(rr[1].x,rr[1].y)),new tr.BoundingBox(rr[0].x,rr[0].y,rr[1].x,rr[1].y)}},{key:"getMarkers",value:function getMarkers(){var er=this.getPoints(),tr=er[0].angleTo(er[1]);return[[er[0],tr],[er[1],tr]]}}]),_class11}(tr.Element.PathElementBase),tr.Element.polyline=function(er){_inherits(_class12,er);var rr=_createSuper(_class12);function _class12(er){var nr;return _classCallCheck(this,_class12),(nr=rr.call(this,er)).points=tr.CreatePath(nr.attribute("points").value),nr}return _createClass(_class12,[{key:"path",value:function path(er){var rr=this.points[0],nr=rr.x,ar=rr.y,ir=new tr.BoundingBox(nr,ar);O_(er)||(er.beginPath(),er.moveTo(nr,ar));for(var or=1;or<this.points.length;or++){var sr=this.points[or],lr=sr.x,cr=sr.y;ir.addPoint(lr,cr),O_(er)||er.lineTo(lr,cr)}return ir}},{key:"getMarkers",value:function getMarkers(){for(var er=[],tr=0;tr<this.points.length-1;tr++)er.push([this.points[tr],this.points[tr].angleTo(this.points[tr+1])]);return er.push([this.points[this.points.length-1],er[er.length-1][1]]),er}}]),_class12}(tr.Element.PathElementBase),tr.Element.polygon=function(er){_inherits(_class13,er);var tr=_createSuper(_class13);function _class13(){return _classCallCheck(this,_class13),tr.apply(this,arguments)}return _createClass(_class13,[{key:"path",value:function path(er){var tr=_get(_getPrototypeOf(_class13.prototype),"path",this).call(this,er);return O_(er)||(er.lineTo(this.points[0].x,this.points[0].y),er.closePath()),tr}}]),_class13}(tr.Element.polyline),tr.Element.path=function(er){_inherits(_class14,er);var rr=_createSuper(_class14);function _class14(er){var nr;_classCallCheck(this,_class14);var ar=(nr=rr.call(this,er)).attribute("d").value.replace(/,/gm," ").replace(/([MmZzLlHhVvCcSsQqTtAa])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/([MmZzLlHhVvCcSsQqTtAa])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/([MmZzLlHhVvCcSsQqTtAa])(\S)/gm,"$1 $2").replace(/(\S)([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/(\d)([+-])/gm,"$1 $2").replace(/(\.\d*)(\.)/gm,"$1 $2").replace(/([Aa](\s+\d+)(\s+\d+)(\s+\d+))\s+([01])\s*([01])/gm,"$1 $5 $6 ");return ar=tr.compressSpaces(ar),ar=tr.trim(ar),nr.PathParser={tokens:ar.split(" "),reset:function reset(){this.i=-1,this.command="",this.previousCommand="",this.start=new tr.Point(0,0),this.control=new tr.Point(0,0),this.current=new tr.Point(0,0),this.points=[],this.angles=[]},isEnd:function isEnd(){return this.i>=this.tokens.length-1},isCommandOrEnd:function isCommandOrEnd(){return!!this.isEnd()||!O_(this.tokens[this.i+1].match(/^[A-Za-z]$/))},isRelativeCommand:function isRelativeCommand(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},getToken:function getToken(){return this.i++,this.tokens[this.i]},getScalar:function getScalar(){return Number.parseFloat(this.getToken())},nextCommand:function nextCommand(){this.previousCommand=this.command,this.command=this.getToken()},getPoint:function getPoint(){var er=new tr.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(er)},getAsControlPoint:function getAsControlPoint(){var er=this.getPoint();return this.control=er,er},getAsCurrentPoint:function getAsCurrentPoint(){var er=this.getPoint();return this.current=er,er},getReflectedControlPoint:function getReflectedControlPoint(){return"c"!==this.previousCommand.toLowerCase()&&"s"!==this.previousCommand.toLowerCase()&&"q"!==this.previousCommand.toLowerCase()&&"t"!==this.previousCommand.toLowerCase()?this.current:new tr.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},makeAbsolute:function makeAbsolute(er){return this.isRelativeCommand()&&(er.x+=this.current.x,er.y+=this.current.y),er},addMarker:function addMarker(er,tr,rr){!O_(rr)&&this.angles.length>0&&O_(this.angles[this.angles.length-1])&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(rr)),this.addMarkerAngle(er,O_(tr)?null:tr.angleTo(er))},addMarkerAngle:function addMarkerAngle(er,tr){this.points.push(er),this.angles.push(tr)},getMarkerPoints:function getMarkerPoints(){return this.points},getMarkerAngles:function getMarkerAngles(){for(var er=0;er<this.angles.length;er++)if(O_(this.angles[er]))for(var tr=er+1;tr<this.angles.length;tr++)if(!O_(this.angles[tr])){this.angles[er]=this.angles[tr];break}return this.angles}},nr}return _createClass(_class14,[{key:"path",value:function path(er){var rr=this.PathParser;rr.reset();var nr=new tr.BoundingBox;for(O_(er)||er.beginPath();!rr.isEnd();)switch(rr.nextCommand(),rr.command){case"M":case"m":var ar=rr.getAsCurrentPoint();for(rr.addMarker(ar),nr.addPoint(ar.x,ar.y),O_(er)||er.moveTo(ar.x,ar.y),rr.start=rr.current;!rr.isCommandOrEnd();){var ir=rr.getAsCurrentPoint();rr.addMarker(ir,rr.start),nr.addPoint(ir.x,ir.y),O_(er)||er.lineTo(ir.x,ir.y)}break;case"L":case"l":for(;!rr.isCommandOrEnd();){var or=rr.current,sr=rr.getAsCurrentPoint();rr.addMarker(sr,or),nr.addPoint(sr.x,sr.y),O_(er)||er.lineTo(sr.x,sr.y)}break;case"H":case"h":for(;!rr.isCommandOrEnd();){var lr=new tr.Point((rr.isRelativeCommand()?rr.current.x:0)+rr.getScalar(),rr.current.y);rr.addMarker(lr,rr.current),rr.current=lr,nr.addPoint(rr.current.x,rr.current.y),O_(er)||er.lineTo(rr.current.x,rr.current.y)}break;case"V":case"v":for(;!rr.isCommandOrEnd();){var cr=new tr.Point(rr.current.x,(rr.isRelativeCommand()?rr.current.y:0)+rr.getScalar());rr.addMarker(cr,rr.current),rr.current=cr,nr.addPoint(rr.current.x,rr.current.y),O_(er)||er.lineTo(rr.current.x,rr.current.y)}break;case"C":case"c":for(;!rr.isCommandOrEnd();){var ur=rr.current,dr=rr.getPoint(),hr=rr.getAsControlPoint(),pr=rr.getAsCurrentPoint();rr.addMarker(pr,hr,dr),nr.addBezierCurve(ur.x,ur.y,dr.x,dr.y,hr.x,hr.y,pr.x,pr.y),O_(er)||er.bezierCurveTo(dr.x,dr.y,hr.x,hr.y,pr.x,pr.y)}break;case"S":case"s":for(;!rr.isCommandOrEnd();){var Ar=rr.current,fr=rr.getReflectedControlPoint(),gr=rr.getAsControlPoint(),mr=rr.getAsCurrentPoint();rr.addMarker(mr,gr,fr),nr.addBezierCurve(Ar.x,Ar.y,fr.x,fr.y,gr.x,gr.y,mr.x,mr.y),O_(er)||er.bezierCurveTo(fr.x,fr.y,gr.x,gr.y,mr.x,mr.y)}break;case"Q":case"q":for(;!rr.isCommandOrEnd();){var _r=rr.current,vr=rr.getAsControlPoint(),yr=rr.getAsCurrentPoint();rr.addMarker(yr,vr,vr),nr.addQuadraticCurve(_r.x,_r.y,vr.x,vr.y,yr.x,yr.y),O_(er)||er.quadraticCurveTo(vr.x,vr.y,yr.x,yr.y)}break;case"T":case"t":for(;!rr.isCommandOrEnd();){var br=rr.current,wr=rr.getReflectedControlPoint();rr.control=wr;var kr=rr.getAsCurrentPoint();rr.addMarker(kr,wr,wr),nr.addQuadraticCurve(br.x,br.y,wr.x,wr.y,kr.x,kr.y),O_(er)||er.quadraticCurveTo(wr.x,wr.y,kr.x,kr.y)}break;case"A":case"a":for(var xr=function _loop2(){var ar=rr.current,ir=rr.getScalar(),or=rr.getScalar(),sr=rr.getScalar()*(Math.PI/180),lr=rr.getScalar(),cr=rr.getScalar(),ur=rr.getAsCurrentPoint(),dr=new tr.Point(Math.cos(sr)*(ar.x-ur.x)/2+Math.sin(sr)*(ar.y-ur.y)/2,-Math.sin(sr)*(ar.x-ur.x)/2+Math.cos(sr)*(ar.y-ur.y)/2),hr=Math.pow(dr.x,2)/Math.pow(ir,2)+Math.pow(dr.y,2)/Math.pow(or,2);hr>1&&(ir*=Math.sqrt(hr),or*=Math.sqrt(hr));var pr=(lr===cr?-1:1)*Math.sqrt((Math.pow(ir,2)*Math.pow(or,2)-Math.pow(ir,2)*Math.pow(dr.y,2)-Math.pow(or,2)*Math.pow(dr.x,2))/(Math.pow(ir,2)*Math.pow(dr.y,2)+Math.pow(or,2)*Math.pow(dr.x,2)));isNaN(pr)&&(pr=0);var Ar=new tr.Point(pr*ir*dr.y/or,pr*-or*dr.x/ir),fr=new tr.Point((ar.x+ur.x)/2+Math.cos(sr)*Ar.x-Math.sin(sr)*Ar.y,(ar.y+ur.y)/2+Math.sin(sr)*Ar.x+Math.cos(sr)*Ar.y),gr=function m(er){return Math.sqrt(Math.pow(er[0],2)+Math.pow(er[1],2))},mr=function r(er,tr){return(er[0]*tr[0]+er[1]*tr[1])/(gr(er)*gr(tr))},_r=function a(er,tr){return(er[0]*tr[1]<er[1]*tr[0]?-1:1)*Math.acos(mr(er,tr))},vr=_r([1,0],[(dr.x-Ar.x)/ir,(dr.y-Ar.y)/or]),yr=[(dr.x-Ar.x)/ir,(dr.y-Ar.y)/or],br=[(-dr.x-Ar.x)/ir,(-dr.y-Ar.y)/or],wr=_r(yr,br);mr(yr,br)<=-1&&(wr=Math.PI),mr(yr,br)>=1&&(wr=0);var kr=1-cr?1:-1,xr=vr+kr*(wr/2),Sr=new tr.Point(fr.x+ir*Math.cos(xr),fr.y+or*Math.sin(xr));if(rr.addMarkerAngle(Sr,xr-kr*Math.PI/2),rr.addMarkerAngle(ur,xr-kr*Math.PI),nr.addPoint(ur.x,ur.y),!O_(er)){var Cr=ir>or?ir:or,Br=ir>or?1:ir/or,Er=ir>or?or/ir:1;er.translate(fr.x,fr.y),er.rotate(sr),er.scale(Br,Er),er.arc(0,0,Cr,vr,vr+wr,1-cr),er.scale(1/Br,1/Er),er.rotate(-sr),er.translate(-fr.x,-fr.y)}};!rr.isCommandOrEnd();)xr();break;case"Z":case"z":O_(er)||er.closePath(),rr.current=rr.start}return nr}},{key:"getMarkers",value:function getMarkers(){var er=this.PathParser.getMarkerPoints(),tr=this.PathParser.getMarkerAngles();return er.map((function(er,rr){return[er,tr[rr]]}))}}]),_class14}(tr.Element.PathElementBase),tr.Element.pattern=function(er){_inherits(_class15,er);var rr=_createSuper(_class15);function _class15(){return _classCallCheck(this,_class15),rr.apply(this,arguments)}return _createClass(_class15,[{key:"createPattern",value:function createPattern(er,rr){var nr=this.attribute("width").toPixels("x",!0),ar=this.attribute("height").toPixels("y",!0),ir=new tr.Element.svg;ir.attributes.viewBox=new tr.Property("viewBox",this.attribute("viewBox").value),ir.attributes.width=new tr.Property("width",nr+"px"),ir.attributes.height=new tr.Property("height",ar+"px"),ir.attributes.transform=new tr.Property("transform",this.attribute("patternTransform").value),ir.children=this.children;var or=document.createElement("canvas");or.width=nr,or.height=ar;var sr=or.getContext("2d");this.attribute("x").hasValue()&&this.attribute("y").hasValue()&&sr.translate(this.attribute("x").toPixels("x",!0),this.attribute("y").toPixels("y",!0));for(var lr=-1;lr<=1;lr++)for(var cr=-1;cr<=1;cr++)sr.save(),sr.translate(lr*or.width,cr*or.height),ir.render(sr),sr.restore();return er.createPattern(or,"repeat")}}]),_class15}(tr.Element.ElementBase),tr.Element.marker=function(er){_inherits(_class16,er);var rr=_createSuper(_class16);function _class16(){return _classCallCheck(this,_class16),rr.apply(this,arguments)}return _createClass(_class16,[{key:"render",value:function render(er,rr,nr){er.translate(rr.x,rr.y),"auto"===this.attribute("orient").valueOrDefault("auto")&&er.rotate(nr),"strokeWidth"===this.attribute("markerUnits").valueOrDefault("strokeWidth")&&er.scale(er.lineWidth,er.lineWidth),er.save();var ar=new tr.Element.svg;ar.attributes.viewBox=new tr.Property("viewBox",this.attribute("viewBox").value),ar.attributes.refX=new tr.Property("refX",this.attribute("refX").value),ar.attributes.refY=new tr.Property("refY",this.attribute("refY").value),ar.attributes.width=new tr.Property("width",this.attribute("markerWidth").value),ar.attributes.height=new tr.Property("height",this.attribute("markerHeight").value),ar.attributes.fill=new tr.Property("fill",this.attribute("fill").valueOrDefault("black")),ar.attributes.stroke=new tr.Property("stroke",this.attribute("stroke").valueOrDefault("none")),ar.children=this.children,ar.render(er),er.restore(),"strokeWidth"===this.attribute("markerUnits").valueOrDefault("strokeWidth")&&er.scale(1/er.lineWidth,1/er.lineWidth),"auto"===this.attribute("orient").valueOrDefault("auto")&&er.rotate(-nr),er.translate(-rr.x,-rr.y)}}]),_class16}(tr.Element.ElementBase),tr.Element.defs=function(er){_inherits(_class17,er);var tr=_createSuper(_class17);function _class17(){return _classCallCheck(this,_class17),tr.apply(this,arguments)}return _createClass(_class17,[{key:"render",value:function render(er){}}]),_class17}(tr.Element.ElementBase),tr.Element.GradientBase=function(er){_inherits(_class18,er);var rr=_createSuper(_class18);function _class18(er){var tr;return _classCallCheck(this,_class18),(tr=rr.call(this,er)).gradientUnits=tr.attribute("gradientUnits").valueOrDefault("objectBoundingBox"),tr.stops=[],tr.children.forEach((function(er){"stop"===er.type&&tr.stops.push(er)})),tr}return _createClass(_class18,[{key:"getGradient",value:function getGradient(){}},{key:"createGradient",value:function createGradient(er,rr,nr){var ar=this.getHrefAttribute().hasValue()?this.getHrefAttribute().getDefinition():this,ir=function addParentOpacity(er){return nr.hasValue()?new tr.Property("color",er).addOpacity(nr).value:er},or=this.getGradient(er,rr);if(O_(or))return ir(ar.stops[ar.stops.length-1].color);if(ar.stops.forEach((function(er){var tr=er.offset,rr=er.color;or.addColorStop(tr,ir(rr))})),this.attribute("gradientTransform").hasValue()){var sr=tr.ViewPort.viewPorts[0],lr=new tr.Element.rect;lr.attributes.x=new tr.Property("x",-tr.MAX_VIRTUAL_PIXELS/3),lr.attributes.y=new tr.Property("y",-tr.MAX_VIRTUAL_PIXELS/3),lr.attributes.width=new tr.Property("width",tr.MAX_VIRTUAL_PIXELS),lr.attributes.height=new tr.Property("height",tr.MAX_VIRTUAL_PIXELS);var cr=new tr.Element.g;cr.attributes.transform=new tr.Property("transform",this.attribute("gradientTransform").value),cr.children=[lr];var ur=new tr.Element.svg;ur.attributes.x=new tr.Property("x",0),ur.attributes.y=new tr.Property("y",0),ur.attributes.width=new tr.Property("width",sr.width),ur.attributes.height=new tr.Property("height",sr.height),ur.children=[cr];var dr=document.createElement("canvas");dr.width=sr.width,dr.height=sr.height;var hr=dr.getContext("2d");return hr.fillStyle=or,ur.render(hr),hr.createPattern(dr,"no-repeat")}return or}}]),_class18}(tr.Element.ElementBase),tr.Element.linearGradient=function(er){_inherits(_class19,er);var tr=_createSuper(_class19);function _class19(){return _classCallCheck(this,_class19),tr.apply(this,arguments)}return _createClass(_class19,[{key:"getGradient",value:function getGradient(er,tr){var rr="objectBoundingBox"===this.gradientUnits&&tr.getBoundingBox,nr=rr?tr.getBoundingBox():null;this.attribute("x1").hasValue()||this.attribute("y1").hasValue()||this.attribute("x2").hasValue()||this.attribute("y2").hasValue()||(this.attribute("x1",!0).value=0,this.attribute("y1",!0).value=0,this.attribute("x2",!0).value=1,this.attribute("y2",!0).value=0);var ar=rr?nr.x()+nr.width()*this.attribute("x1").numValue():this.attribute("x1").toPixels("x"),ir=rr?nr.y()+nr.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y"),or=rr?nr.x()+nr.width()*this.attribute("x2").numValue():this.attribute("x2").toPixels("x"),sr=rr?nr.y()+nr.height()*this.attribute("y2").numValue():this.attribute("y2").toPixels("y");return ar===or&&ir===sr?null:er.createLinearGradient(ar,ir,or,sr)}}]),_class19}(tr.Element.GradientBase),tr.Element.radialGradient=function(er){_inherits(_class20,er);var tr=_createSuper(_class20);function _class20(){return _classCallCheck(this,_class20),tr.apply(this,arguments)}return _createClass(_class20,[{key:"getGradient",value:function getGradient(er,tr){var rr="objectBoundingBox"===this.gradientUnits&&tr.getBoundingBox,nr=rr?tr.getBoundingBox():null;this.attribute("cx").hasValue()||(this.attribute("cx",!0).value="50%"),this.attribute("cy").hasValue()||(this.attribute("cy",!0).value="50%"),this.attribute("r").hasValue()||(this.attribute("r",!0).value="50%");var ar=rr?nr.x()+nr.width()*this.attribute("cx").numValue():this.attribute("cx").toPixels("x"),ir=rr?nr.y()+nr.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y"),or=ar,sr=ir;this.attribute("fx").hasValue()&&(or=rr?nr.x()+nr.width()*this.attribute("fx").numValue():this.attribute("fx").toPixels("x")),this.attribute("fy").hasValue()&&(sr=rr?nr.y()+nr.height()*this.attribute("fy").numValue():this.attribute("fy").toPixels("y"));var lr=rr?(nr.width()+nr.height())/2*this.attribute("r").numValue():this.attribute("r").toPixels();return er.createRadialGradient(or,sr,0,ar,ir,lr)}}]),_class20}(tr.Element.GradientBase),tr.Element.stop=function(er){_inherits(_class21,er);var tr=_createSuper(_class21);function _class21(er){var rr;_classCallCheck(this,_class21),(rr=tr.call(this,er)).offset=rr.attribute("offset").numValue(),rr.offset<0&&(rr.offset=0),rr.offset>1&&(rr.offset=1);var nr=rr.style("stop-color");return rr.style("stop-opacity").hasValue()&&(nr=nr.addOpacity(rr.style("stop-opacity"))),rr.color=nr.value,rr}return _class21}(tr.Element.ElementBase),tr.Element.AnimateBase=function(er){_inherits(_class22,er);var rr=_createSuper(_class22);function _class22(er){var nr;return _classCallCheck(this,_class22),nr=rr.call(this,er),tr.Animations.push(_assertThisInitialized(nr)),nr.duration=0,nr.begin=nr.attribute("begin").toMilliseconds(),nr.maxDuration=nr.begin+nr.attribute("dur").toMilliseconds(),nr.initialValue=null,nr.initialUnits="",nr.removed=!1,nr.from=nr.attribute("from"),nr.to=nr.attribute("to"),nr.values=nr.attribute("values"),nr.values.hasValue()&&(nr.values.value=nr.values.value.split(";")),nr}return _createClass(_class22,[{key:"getProperty",value:function getProperty(){var er=this.attribute("attributeType").value,tr=this.attribute("attributeName").value;return"CSS"===er?this.parent.style(tr,!0):this.parent.attribute(tr,!0)}},{key:"calcValue",value:function calcValue(){return""}},{key:"update",value:function update(er){if(O_(this.initialValue)&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"===this.attribute("repeatCount").value||"indefinite"===this.attribute("repeatDur").value)this.duration=0;else if("freeze"!==this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"===this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration+=er;var tr=!1;if(this.begin<this.duration){var rr=this.calcValue();if(this.attribute("type").hasValue())rr=this.attribute("type").value+"("+rr+")";this.getProperty().value=rr,tr=!0}return tr}},{key:"progress",value:function progress(){var er={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var rr=er.progress*(this.values.value.length-1),nr=Math.floor(rr),ar=Math.ceil(rr);er.from=new tr.Property("from",Number.parseFloat(this.values.value[nr])),er.to=new tr.Property("to",Number.parseFloat(this.values.value[ar])),er.progress=(rr-nr)/(ar-nr)}else er.from=this.from,er.to=this.to;return er}}]),_class22}(tr.Element.ElementBase),tr.Element.animate=function(er){_inherits(_class23,er);var tr=_createSuper(_class23);function _class23(){return _classCallCheck(this,_class23),tr.apply(this,arguments)}return _createClass(_class23,[{key:"calcValue",value:function calcValue(){var er=this.progress();return er.from.numValue()+(er.to.numValue()-er.from.numValue())*er.progress+this.initialUnits}}]),_class23}(tr.Element.AnimateBase),tr.Element.animateColor=function(er){_inherits(_class24,er);var tr=_createSuper(_class24);function _class24(){return _classCallCheck(this,_class24),tr.apply(this,arguments)}return _createClass(_class24,[{key:"calcValue",value:function calcValue(){var er=this.progress(),tr=new I_(er.from.value),rr=new I_(er.to.value);if(tr.ok&&rr.ok){var nr=tr.r+(rr.r-tr.r)*er.progress,ar=tr.g+(rr.g-tr.g)*er.progress,ir=tr.b+(rr.b-tr.b)*er.progress;return"rgb("+Number.parseInt(nr)+","+Number.parseInt(ar)+","+Number.parseInt(ir)+")"}return this.attribute("from").value}}]),_class24}(tr.Element.AnimateBase),tr.Element.animateTransform=function(er){_inherits(_class25,er);var rr=_createSuper(_class25);function _class25(){return _classCallCheck(this,_class25),rr.apply(this,arguments)}return _createClass(_class25,[{key:"calcValue",value:function calcValue(){var er=this.progress(),rr=tr.ToNumberArray(er.from.value),nr=tr.ToNumberArray(er.to.value),ar="";return rr.forEach((function(tr,rr){ar+=tr+(nr[rr]-tr)*er.progress+" "})),ar}}]),_class25}(tr.Element.animate),tr.Element.font=function(er){_inherits(_class26,er);var rr=_createSuper(_class26);function _class26(er){var nr;return _classCallCheck(this,_class26),(nr=rr.call(this,er)).horizAdvX=nr.attribute("horiz-adv-x").numValue(),nr.isRTL=!1,nr.isArabic=!1,nr.fontFace=null,nr.missingGlyph=null,nr.glyphs=[],nr.children.forEach((function(er){"font-face"===er.type?(nr.fontFace=er,er.style("font-family").hasValue()&&(tr.Definitions[er.style("font-family").value]=_assertThisInitialized(nr))):"missing-glyph"===er.type?nr.missingGlyph=er:"glyph"===er.type&&(""!==er.arabicForm?(nr.isRTL=!0,nr.isArabic=!0,void 0===nr.glyphs[er.unicode]&&(nr.glyphs[er.unicode]=[]),nr.glyphs[er.unicode][er.arabicForm]=er):nr.glyphs[er.unicode]=er)})),nr}return _class26}(tr.Element.ElementBase),tr.Element.fontface=function(er){_inherits(_class27,er);var tr=_createSuper(_class27);function _class27(er){var rr;return _classCallCheck(this,_class27),(rr=tr.call(this,er)).ascent=rr.attribute("ascent").value,rr.descent=rr.attribute("descent").value,rr.unitsPerEm=rr.attribute("units-per-em").numValue(),rr}return _class27}(tr.Element.ElementBase),tr.Element.missingglyph=function(er){_inherits(_class28,er);var tr=_createSuper(_class28);function _class28(er){var rr;return _classCallCheck(this,_class28),(rr=tr.call(this,er)).horizAdvX=0,rr}return _class28}(tr.Element.path),tr.Element.glyph=function(er){_inherits(_class29,er);var tr=_createSuper(_class29);function _class29(er){var rr;return _classCallCheck(this,_class29),(rr=tr.call(this,er)).horizAdvX=rr.attribute("horiz-adv-x").numValue(),rr.unicode=rr.attribute("unicode").value,rr.arabicForm=rr.attribute("arabic-form").value,rr}return _class29}(tr.Element.path),tr.Element.text=function(er){_inherits(_class30,er);var rr=_createSuper(_class30);function _class30(er){return _classCallCheck(this,_class30),rr.call(this,er,!0)}return _createClass(_class30,[{key:"setContext",value:function setContext(er){_get(_getPrototypeOf(_class30.prototype),"setContext",this).call(this,er);var tr=this.style("dominant-baseline").toTextBaseline();O_(tr)&&(tr=this.style("alignment-baseline").toTextBaseline()),O_(tr)||(er.textBaseline=tr)}},{key:"getBoundingBox",value:function getBoundingBox(){var er=this.attribute("x").toPixels("x"),rr=this.attribute("y").toPixels("y"),nr=this.parent.style("font-size").numValueOrDefault(tr.Font.Parse(tr.ctx.font).fontSize);return new tr.BoundingBox(er,rr-nr,er+Math.floor(2*nr/3)*this.children[0].getText().length,rr)}},{key:"renderChildren",value:function renderChildren(er){var tr=this;this.x=this.attribute("x").toPixels("x"),this.y=this.attribute("y").toPixels("y"),this.x+=this.getAnchorDelta(er,this,0),this.children.forEach((function(rr,nr){tr.renderChild(er,tr,nr)}))}},{key:"getAnchorDelta",value:function getAnchorDelta(er,tr,rr){var nr=this.style("text-anchor").valueOrDefault("start");if("start"!==nr){for(var ar=0,ir=rr;ir<tr.children.length;ir++){var or=tr.children[ir];if(ir>rr&&or.attribute("x").hasValue())break;ar+=or.measureTextRecursive(er)}return-1*("end"===nr?ar:ar/2)}return 0}},{key:"renderChild",value:function renderChild(er,tr,rr){var nr=tr.children[rr];nr.attribute("x").hasValue()?(nr.x=nr.attribute("x").toPixels("x")+this.getAnchorDelta(er,tr,rr),nr.attribute("dx").hasValue()&&(nr.x+=nr.attribute("dx").toPixels("x"))):(this.attribute("dx").hasValue()&&(this.x+=this.attribute("dx").toPixels("x")),nr.attribute("dx").hasValue()&&(this.x+=nr.attribute("dx").toPixels("x")),nr.x=this.x),this.x=nr.x+nr.measureText(er),nr.attribute("y").hasValue()?(nr.y=nr.attribute("y").toPixels("y"),nr.attribute("dy").hasValue()&&(nr.y+=nr.attribute("dy").toPixels("y"))):(this.attribute("dy").hasValue()&&(this.y+=this.attribute("dy").toPixels("y")),nr.attribute("dy").hasValue()&&(this.y+=nr.attribute("dy").toPixels("y")),nr.y=this.y),this.y=nr.y,nr.render(er);for(var ar=0;ar<nr.children.length;ar++)this.renderChild(er,nr,ar)}}]),_class30}(tr.Element.RenderedElementBase),tr.Element.TextElementBase=function(er){_inherits(_class31,er);var rr=_createSuper(_class31);function _class31(){return _classCallCheck(this,_class31),rr.apply(this,arguments)}return _createClass(_class31,[{key:"getGlyph",value:function getGlyph(er,tr,rr){var nr=tr[rr],ar=null;if(er.isArabic){var ir="isolated";(0===rr||" "===tr[rr-1])&&rr<tr.length-2&&" "!==tr[rr+1]&&(ir="terminal"),rr>0&&" "!==tr[rr-1]&&rr<tr.length-2&&" "!==tr[rr+1]&&(ir="medial"),rr>0&&" "!==tr[rr-1]&&(rr===tr.length-1||" "===tr[rr+1])&&(ir="initial"),void 0!==er.glyphs[nr]&&(ar=er.glyphs[nr][ir],O_(ar)&&"glyph"===er.glyphs[nr].type&&(ar=er.glyphs[nr]))}else ar=er.glyphs[nr];return O_(ar)&&(ar=er.missingGlyph),ar}},{key:"renderChildren",value:function renderChildren(er){var rr=this.parent.style("font-family").getDefinition();if(O_(rr))""!==er.fillStyle&&er.fillText(tr.compressSpaces(this.getText()),this.x,this.y),""!==er.strokeStyle&&er.strokeText(tr.compressSpaces(this.getText()),this.x,this.y);else{var nr=this.parent.style("font-size").numValueOrDefault(tr.Font.Parse(tr.ctx.font).fontSize),ar=this.parent.style("font-style").valueOrDefault(tr.Font.Parse(tr.ctx.font).fontStyle),ir=this.getText();rr.isRTL&&(ir=ir.split("").reverse().join(""));for(var or=tr.ToNumberArray(this.parent.attribute("dx").value),sr=0;sr<ir.length;sr++){var lr=this.getGlyph(rr,ir,sr),cr=nr/rr.fontFace.unitsPerEm;er.translate(this.x,this.y),er.scale(cr,-cr);var ur=er.lineWidth;er.lineWidth=er.lineWidth*rr.fontFace.unitsPerEm/nr,"italic"===ar&&er.transform(1,0,.4,1,0,0),lr.render(er),"italic"===ar&&er.transform(1,0,-.4,1,0,0),er.lineWidth=ur,er.scale(1/cr,-1/cr),er.translate(-this.x,-this.y),this.x+=nr*(lr.horizAdvX||rr.horizAdvX)/rr.fontFace.unitsPerEm,void 0===or[sr]||isNaN(or[sr])||(this.x+=or[sr])}}}},{key:"getText",value:function getText(){}},{key:"measureTextRecursive",value:function measureTextRecursive(er){var tr=this.measureText(er);return this.children.forEach((function(rr){tr+=rr.measureTextRecursive(er)})),tr}},{key:"measureText",value:function measureText(er){var rr=this.parent.style("font-family").getDefinition();if(!O_(rr)){var nr=this.parent.style("font-size").numValueOrDefault(tr.Font.Parse(tr.ctx.font).fontSize),ar=0,ir=this.getText();rr.isRTL&&(ir=ir.split("").reverse().join(""));for(var or=tr.ToNumberArray(this.parent.attribute("dx").value),sr=0;sr<ir.length;sr++){ar+=(this.getGlyph(rr,ir,sr).horizAdvX||rr.horizAdvX)*nr/rr.fontFace.unitsPerEm,void 0===or[sr]||isNaN(or[sr])||(ar+=or[sr])}return ar}var lr=tr.compressSpaces(this.getText());if(!er.measureText)return 10*lr.length;er.save(),this.setContext(er);var cr=er.measureText(lr).width;return er.restore(),cr}}]),_class31}(tr.Element.RenderedElementBase),tr.Element.tspan=function(er){_inherits(_class32,er);var tr=_createSuper(_class32);function _class32(er){var rr;return _classCallCheck(this,_class32),(rr=tr.call(this,er,!0)).text=er.nodeValue||er.text||"",rr}return _createClass(_class32,[{key:"getText",value:function getText(){return this.text}}]),_class32}(tr.Element.TextElementBase),tr.Element.tref=function(er){_inherits(_class33,er);var tr=_createSuper(_class33);function _class33(){return _classCallCheck(this,_class33),tr.apply(this,arguments)}return _createClass(_class33,[{key:"getText",value:function getText(){var er=this.getHrefAttribute().getDefinition();if(!O_(er))return er.children[0].getText()}}]),_class33}(tr.Element.TextElementBase),tr.Element.a=function(er){_inherits(_class34,er);var rr=_createSuper(_class34);function _class34(er){var tr;return _classCallCheck(this,_class34),(tr=rr.call(this,er)).hasText=!0,_toConsumableArray(er.childNodes).forEach((function(er){3!==er.nodeType&&(tr.hasText=!1)})),tr.text=tr.hasText?er.childNodes[0].nodeValue:"",tr}return _createClass(_class34,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(er){if(this.hasText){_get(_getPrototypeOf(_class34.prototype),"renderChildren",this).call(this,er);var rr=new tr.Property("fontSize",tr.Font.Parse(tr.ctx.font).fontSize);tr.Mouse.checkBoundingBox(this,new tr.BoundingBox(this.x,this.y-rr.toPixels("y"),this.x+this.measureText(er),this.y))}else{var nr=new tr.Element.g;nr.children=this.children,nr.parent=this,nr.render(er)}}},{key:"onclick",value:function onclick(){window.open(this.getHrefAttribute().value)}},{key:"onmousemove",value:function onmousemove(){tr.ctx.canvas.style.cursor="pointer"}}]),_class34}(tr.Element.TextElementBase),tr.Element.image=function(er){_inherits(_class35,er);var rr=_createSuper(_class35);function _class35(er){var nr;_classCallCheck(this,_class35);var ar=(nr=rr.call(this,er)).getHrefAttribute().value;return""===ar?_possibleConstructorReturn(nr):(nr._isSvg=ar.match(/\.svg$/),tr.Images.push(_assertThisInitialized(nr)),nr.loaded=!1,nr._isSvg?tr.ajax(ar,!0).then((function(er){nr.img=er,nr.loaded=!0})).catch((function(er){nr.erred=!0,console.error("Ajax error for canvg",er)})):(nr.img=document.createElement("img"),!0===tr.opts.useCORS&&(nr.img.crossOrigin="Anonymous"),nr.img.addEventListener("load",(function(){nr.loaded=!0})),nr.img.addEventListener("error",(function(){tr.log('ERROR: image "'+ar+'" not found'),nr.loaded=!0})),nr.img.src=ar),nr)}return _createClass(_class35,[{key:"renderChildren",value:function renderChildren(er){var rr=this.attribute("x").toPixels("x"),nr=this.attribute("y").toPixels("y"),ar=this.attribute("width").toPixels("x"),ir=this.attribute("height").toPixels("y");0!==ar&&0!==ir&&(er.save(),this._isSvg?er.drawSvg(this.img,rr,nr,ar,ir):(er.translate(rr,nr),tr.AspectRatio(er,this.attribute("preserveAspectRatio").value,ar,this.img.width,ir,this.img.height,0,0),er.drawImage(this.img,0,0)),er.restore())}},{key:"getBoundingBox",value:function getBoundingBox(){var er=this.attribute("x").toPixels("x"),rr=this.attribute("y").toPixels("y"),nr=this.attribute("width").toPixels("x"),ar=this.attribute("height").toPixels("y");return new tr.BoundingBox(er,rr,er+nr,rr+ar)}}]),_class35}(tr.Element.RenderedElementBase),tr.Element.g=function(er){_inherits(_class36,er);var rr=_createSuper(_class36);function _class36(){return _classCallCheck(this,_class36),rr.apply(this,arguments)}return _createClass(_class36,[{key:"getBoundingBox",value:function getBoundingBox(){var er=new tr.BoundingBox;return this.children.forEach((function(tr){er.addBoundingBox(tr.getBoundingBox())})),er}}]),_class36}(tr.Element.RenderedElementBase),tr.Element.symbol=function(er){_inherits(_class37,er);var tr=_createSuper(_class37);function _class37(){return _classCallCheck(this,_class37),tr.apply(this,arguments)}return _createClass(_class37,[{key:"render",value:function render(er){}}]),_class37}(tr.Element.RenderedElementBase),tr.Element.style=function(er){_inherits(_class38,er);var rr=_createSuper(_class38);function _class38(er){var nr;_classCallCheck(this,_class38),nr=rr.call(this,er);var ar="";return _toConsumableArray(er.childNodes).forEach((function(er){var tr=er.nodeValue;ar+=tr})),ar=ar.replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^\s*\/\/.*)/gm,""),(ar=tr.compressSpaces(ar)).split("}").forEach((function(er){if(""!==tr.trim(er)){var rr=_slicedToArray(er.split("{"),2),nr=rr[0],ar=rr[1];nr=nr.split(","),ar=ar.split(";"),nr.forEach((function(er){if(""!==(er=tr.trim(er))){var rr={};if(ar.forEach((function(er){var nr=er.indexOf(":"),ar=er.substr(0,nr),ir=er.substr(nr+1,er.length-nr);O_(ar)||O_(ir)||(rr[tr.trim(ar)]=new tr.Property(tr.trim(ar),tr.trim(ir)))})),tr.Styles[er]=rr,"@font-face"===er){var nr=rr["font-family"].value.replace(/"/g,"");rr.src.value.split(",").forEach((function(er){if(er.includes('format("svg")')){var rr=er.indexOf("url"),ar=er.indexOf(")",rr),ir=er.substr(rr+5,ar-rr-6);_toConsumableArray(tr.parseXml(tr.ajax(ir)).getElementsByTagName("font")).forEach((function(er){er=tr.CreateElement(er),tr.Definitions[nr]=er}))}}))}}}))}})),nr}return _class38}(tr.Element.ElementBase),tr.Element.use=function(er){_inherits(_class39,er);var rr=_createSuper(_class39);function _class39(er){var tr;return _classCallCheck(this,_class39),(tr=rr.call(this,er))._el=tr.getHrefAttribute().getDefinition(),tr}return _createClass(_class39,[{key:"setContext",value:function setContext(er){_get(_getPrototypeOf(_class39.prototype),"setContext",this).call(this,er),this.attribute("x").hasValue()&&er.translate(this.attribute("x").toPixels("x"),0),this.attribute("y").hasValue()&&er.translate(0,this.attribute("y").toPixels("y"))}},{key:"path",value:function path(er){var tr=this._el;O_(tr)||tr.path(er)}},{key:"getBoundingBox",value:function getBoundingBox(){var er=this._el;if(!O_(er))return er.getBoundingBox()}},{key:"renderChildren",value:function renderChildren(er){var rr=this._el;if(!O_(rr)){var nr=rr;"symbol"===rr.type&&((nr=new tr.Element.svg).type="svg",nr.attributes.viewBox=new tr.Property("viewBox",rr.attribute("viewBox").value),nr.attributes.preserveAspectRatio=new tr.Property("preserveAspectRatio",rr.attribute("preserveAspectRatio").value),nr.attributes.overflow=new tr.Property("overflow",rr.attribute("overflow").value),nr.children=rr.children),"svg"===nr.type&&(this.attribute("width").hasValue()&&(nr.attributes.width=new tr.Property("width",this.attribute("width").value)),this.attribute("height").hasValue()&&(nr.attributes.height=new tr.Property("height",this.attribute("height").value)));var ar=nr.parent;nr.parent=null,nr.render(er),nr.parent=ar}}}]),_class39}(tr.Element.RenderedElementBase),tr.Element.mask=function(er){_inherits(_class40,er);var rr=_createSuper(_class40);function _class40(){return _classCallCheck(this,_class40),rr.apply(this,arguments)}return _createClass(_class40,[{key:"apply",value:function apply(er,rr){var nr=this.attribute("x").toPixels("x"),ar=this.attribute("y").toPixels("y"),ir=this.attribute("width").toPixels("x"),or=this.attribute("height").toPixels("y");if(0===ir&&0===or){var sr=new tr.BoundingBox;this.children.forEach((function(er){sr.addBoundingBox(er.getBoundingBox())})),nr=Math.floor(sr.x1),ar=Math.floor(sr.y1),ir=Math.floor(sr.width()),or=Math.floor(sr.height())}var lr=rr.attribute("mask").value;rr.attribute("mask").value="";var cr=document.createElement("canvas");cr.width=nr+ir,cr.height=ar+or;var ur=cr.getContext("2d");this.renderChildren(ur);var dr=document.createElement("canvas");dr.width=nr+ir,dr.height=ar+or;var hr=dr.getContext("2d");rr.render(hr),hr.globalCompositeOperation="destination-in",hr.fillStyle=ur.createPattern(cr,"no-repeat"),hr.fillRect(0,0,nr+ir,ar+or),er.fillStyle=hr.createPattern(dr,"no-repeat"),er.fillRect(0,0,nr+ir,ar+or),rr.attribute("mask").value=lr}},{key:"render",value:function render(er){}}]),_class40}(tr.Element.ElementBase),tr.Element.clipPath=function(er){_inherits(_class41,er);var rr=_createSuper(_class41);function _class41(){return _classCallCheck(this,_class41),rr.apply(this,arguments)}return _createClass(_class41,[{key:"apply",value:function apply(er){this.children.forEach((function(rr){if(void 0!==rr.path){var nr=null;rr.attribute("transform").hasValue()&&(nr=new tr.Transform(rr.attribute("transform").value)).apply(er),rr.path(er),er.clip(),nr&&nr.unapply(er)}}))}},{key:"render",value:function render(er){}}]),_class41}(tr.Element.ElementBase),tr.Element.filter=function(er){_inherits(_class42,er);var tr=_createSuper(_class42);function _class42(){return _classCallCheck(this,_class42),tr.apply(this,arguments)}return _createClass(_class42,[{key:"apply",value:function apply(er,tr){var rr=tr.getBoundingBox(),nr=Math.floor(rr.x1),ar=Math.floor(rr.y1),ir=Math.floor(rr.width()),or=Math.floor(rr.height()),sr=tr.style("filter").value;tr.style("filter").value="";var lr=0,cr=0;this.children.forEach((function(er){var tr=er.extraFilterDistance||0;lr=Math.max(lr,tr),cr=Math.max(cr,tr)}));var ur=document.createElement("canvas");ur.width=ir+2*lr,ur.height=or+2*cr;var dr=ur.getContext("2d");dr.translate(-nr+lr,-ar+cr),tr.render(dr),this.children.forEach((function(er){er.apply(dr,0,0,ir+2*lr,or+2*cr)})),er.drawImage(ur,0,0,ir+2*lr,or+2*cr,nr-lr,ar-cr,ir+2*lr,or+2*cr),tr.style("filter",!0).value=sr}},{key:"render",value:function render(er){}}]),_class42}(tr.Element.ElementBase),tr.Element.feMorphology=function(er){_inherits(_class43,er);var tr=_createSuper(_class43);function _class43(){return _classCallCheck(this,_class43),tr.apply(this,arguments)}return _createClass(_class43,[{key:"apply",value:function apply(er,tr,rr,nr,ar){}}]),_class43}(tr.Element.ElementBase),tr.Element.feComposite=function(er){_inherits(_class44,er);var tr=_createSuper(_class44);function _class44(){return _classCallCheck(this,_class44),tr.apply(this,arguments)}return _createClass(_class44,[{key:"apply",value:function apply(er,tr,rr,nr,ar){}}]),_class44}(tr.Element.ElementBase),tr.Element.feColorMatrix=function(er){_inherits(_class45,er);var rr=_createSuper(_class45);function _class45(er){var nr;_classCallCheck(this,_class45),nr=rr.call(this,er);var ar=tr.ToNumberArray(nr.attribute("values").value);switch(nr.attribute("type").valueOrDefault("matrix")){case"saturate":var ir=ar[0];ar=[.213+.787*ir,.715-.715*ir,.072-.072*ir,0,0,.213-.213*ir,.715+.285*ir,.072-.072*ir,0,0,.213-.213*ir,.715-.715*ir,.072+.928*ir,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var or=ar[0]*Math.PI/180,sr=function c(er,tr,rr){return er+Math.cos(or)*tr+Math.sin(or)*rr};ar=[sr(.213,.787,-.213),sr(.715,-.715,-.715),sr(.072,-.072,.928),0,0,sr(.213,-.213,.143),sr(.715,.285,.14),sr(.072,-.072,-.283),0,0,sr(.213,-.213,-.787),sr(.715,-.715,.715),sr(.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":ar=[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 nr.matrix=ar,nr._m=function(er,tr){var rr=ar[er];return rr*(rr<0?tr-255:tr)},nr}return _createClass(_class45,[{key:"apply",value:function apply(er,tr,rr,nr,ar){for(var ir=this._m,or=er.getImageData(0,0,nr,ar),sr=0;sr<ar;sr++)for(var lr=0;lr<nr;lr++){var cr=imGet(or.data,lr,sr,nr,ar,0),ur=imGet(or.data,lr,sr,nr,ar,1),dr=imGet(or.data,lr,sr,nr,ar,2),hr=imGet(or.data,lr,sr,nr,ar,3);imSet(or.data,lr,sr,nr,ar,0,ir(0,cr)+ir(1,ur)+ir(2,dr)+ir(3,hr)+ir(4,1)),imSet(or.data,lr,sr,nr,ar,1,ir(5,cr)+ir(6,ur)+ir(7,dr)+ir(8,hr)+ir(9,1)),imSet(or.data,lr,sr,nr,ar,2,ir(10,cr)+ir(11,ur)+ir(12,dr)+ir(13,hr)+ir(14,1)),imSet(or.data,lr,sr,nr,ar,3,ir(15,cr)+ir(16,ur)+ir(17,dr)+ir(18,hr)+ir(19,1))}er.clearRect(0,0,nr,ar),er.putImageData(or,0,0)}}]),_class45}(tr.Element.ElementBase),tr.Element.feGaussianBlur=function(er){_inherits(_class46,er);var rr=_createSuper(_class46);function _class46(er){var tr;return _classCallCheck(this,_class46),(tr=rr.call(this,er)).blurRadius=Math.floor(tr.attribute("stdDeviation").numValue()),tr.extraFilterDistance=tr.blurRadius,tr}return _createClass(_class46,[{key:"apply",value:function apply(er,rr,nr,ar,ir){er.canvas.id=tr.UniqueId(),er.canvas.style.display="none",document.body.append(er.canvas),processCanvasRGBA(er.canvas,rr,nr,ar,ir,this.blurRadius),er.canvas.remove()}}]),_class46}(tr.Element.ElementBase),tr.Element.title=function(er){_inherits(_class47,er);var tr=_createSuper(_class47);function _class47(er){return _classCallCheck(this,_class47),tr.call(this)}return _class47}(tr.Element.ElementBase),tr.Element.desc=function(er){_inherits(_class48,er);var tr=_createSuper(_class48);function _class48(er){return _classCallCheck(this,_class48),tr.call(this)}return _class48}(tr.Element.ElementBase),tr.Element.MISSING=function(er){_inherits(_class49,er);var rr=_createSuper(_class49);function _class49(er){var nr;return _classCallCheck(this,_class49),nr=rr.call(this),tr.log("ERROR: Element '"+er.nodeName+"' not yet implemented."),nr}return _class49}(tr.Element.ElementBase),tr.CreateElement=function(er){var rr,nr=er.nodeName.replace(/^[^:]+:/,"").replace(/-/g,"");return(rr=void 0!==tr.Element[nr]?new tr.Element[nr](er):new tr.Element.MISSING(er)).type=er.nodeName,rr},tr.load=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee(er,rr){var nr;return regeneratorRuntime.wrap((function _callee$(ar){for(;;)switch(ar.prev=ar.next){case 0:return ar.next=2,tr.ajax(rr,!0);case 2:return nr=ar.sent,ar.abrupt("return",tr.loadXml(er,nr));case 4:case"end":return ar.stop()}}),_callee)})));return function(tr,rr){return er.apply(this,arguments)}}(),tr.loadXml=function(er,rr){return tr.loadXmlDoc(er,tr.parseXml(rr))},tr.loadXmlDoc=function(er,rr){var nr;tr.init(er);var ar=function mapXY(tr){for(var rr=er.canvas;rr;)tr.x-=rr.offsetLeft,tr.y-=rr.offsetTop,rr=rr.offsetParent;return window.scrollX&&(tr.x+=window.scrollX),window.scrollY&&(tr.y+=window.scrollY),tr};!0!==tr.opts.ignoreMouse&&(er.canvas.addEventListener("click",(function(er){var rr=O_(er)?[event.clientX,event.clientY]:[er.clientX,er.clientY],nr=ar(_construct(tr.Point,rr)),ir=nr.x,or=nr.y;tr.Mouse.onclick(ir,or)})),er.canvas.addEventListener("mousemove",(function(er){var rr=O_(er)?[event.clientX,event.clientY]:[er.clientX,er.clientY],nr=ar(_construct(tr.Point,rr)),ir=nr.x,or=nr.y;tr.Mouse.onmousemove(ir,or)})));var ir=tr.CreateElement(rr.documentElement);ir.root=!0;var or=!0,sr=function draw(nr){tr.ViewPort.Clear(),er.canvas.parentNode&&tr.ViewPort.SetCurrent(er.canvas.parentNode.clientWidth,er.canvas.parentNode.clientHeight),!0!==tr.opts.ignoreDimensions&&(ir.style("width").hasValue()&&(er.canvas.width=ir.style("width").toPixels("x"),er.canvas.style.width=er.canvas.width+"px"),ir.style("height").hasValue()&&(er.canvas.height=ir.style("height").toPixels("y"),er.canvas.style.height=er.canvas.height+"px"));var ar=er.canvas.clientWidth||er.canvas.width,sr=er.canvas.clientHeight||er.canvas.height;if(!0===tr.opts.ignoreDimensions&&ir.style("width").hasValue()&&ir.style("height").hasValue()&&(ar=ir.style("width").toPixels("x"),sr=ir.style("height").toPixels("y")),tr.ViewPort.SetCurrent(ar,sr),O_(tr.opts.offsetX)||(ir.attribute("x",!0).value=tr.opts.offsetX),O_(tr.opts.offsetY)||(ir.attribute("y",!0).value=tr.opts.offsetY),!O_(tr.opts.scaleWidth)||!O_(tr.opts.scaleHeight)){var lr=tr.ToNumberArray(ir.attribute("viewBox").value),cr=null,ur=null;O_(tr.opts.scaleWidth)||(ir.attribute("width").hasValue()?cr=ir.attribute("width").toPixels("x")/tr.opts.scaleWidth:isNaN(lr[2])||(cr=lr[2]/tr.opts.scaleWidth)),O_(tr.opts.scaleHeight)||(ir.attribute("height").hasValue()?ur=ir.attribute("height").toPixels("y")/tr.opts.scaleHeight:isNaN(lr[3])||(ur=lr[3]/tr.opts.scaleHeight)),O_(cr)&&(cr=ur),O_(ur)&&(ur=cr),ir.attribute("width",!0).value=tr.opts.scaleWidth,ir.attribute("height",!0).value=tr.opts.scaleHeight,ir.attribute("viewBox",!0).value="0 0 "+ar*cr+" "+sr*ur,ir.attribute("preserveAspectRatio",!0).value="none"}!0!==tr.opts.ignoreClear&&er.clearRect(0,0,ar,sr),ir.render(er),or&&(or=!1,nr(rr))},lr=!0;return tr.intervalID=setInterval((function(){var er=!1;lr&&tr.ImagesLoaded()&&(lr=!1,er=!0),!0!==tr.opts.ignoreMouse&&(er=er||tr.Mouse.hasEvents()),!0!==tr.opts.ignoreAnimation&&tr.Animations.forEach((function(rr){var nr=rr.update(1e3/tr.FRAMERATE);er=er||nr})),"function"==typeof tr.opts.forceRedraw&&!0===tr.opts.forceRedraw()&&(er=!0),er&&(sr(nr),tr.Mouse.runEvents())}),1e3/tr.FRAMERATE),new Promise((function(er,rr){if(tr.ImagesLoaded())return lr=!1,void sr(er);nr=er}))},tr.stop=function(){tr.intervalID&&clearInterval(tr.intervalID)},tr.Mouse={events:[],hasEvents:function hasEvents(){return 0!==this.events.length},onclick:function onclick(er,tr){this.events.push({type:"onclick",x:er,y:tr,run:function run(er){er.onclick&&er.onclick()}})},onmousemove:function onmousemove(er,tr){this.events.push({type:"onmousemove",x:er,y:tr,run:function run(er){er.onmousemove&&er.onmousemove()}})},eventElements:[],checkPath:function checkPath(er,tr){var rr=this;this.events.forEach((function(nr,ar){var ir=nr.x,or=nr.y;tr.isPointInPath&&tr.isPointInPath(ir,or)&&(rr.eventElements[ar]=er)}))},checkBoundingBox:function checkBoundingBox(er,tr){var rr=this;this.events.forEach((function(nr,ar){var ir=nr.x,or=nr.y;tr.isPointInBox(ir,or)&&(rr.eventElements[ar]=er)}))},runEvents:function runEvents(){var er=this;tr.ctx.canvas.style.cursor="",this.events.forEach((function(tr,rr){for(var nr=er.eventElements[rr];nr;)tr.run(nr),nr=nr.parent})),this.events=[],this.eventElements=[]}},tr}(rr||{});1===er.childNodes.length&&"OBJECT"===er.childNodes[0].nodeName||(er.svg=ar);var ir=er.getContext("2d");return void 0!==tr.documentElement?ar.loadXmlDoc(ir,tr):"<"===tr.substr(0,1)?ar.loadXml(ir,tr):ar.load(ir,tr)};function jQueryPluginDBox(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.ok,nr=void 0===rr?"Ok":rr,ar=tr.cancel,ir=void 0===ar?"Cancel":ar;er("#dialog_container").draggable({cancel:"#dialog_content, #dialog_buttons *",containment:"window"}).css("position","absolute");var or=er("#dialog_box"),sr=er("#dialog_buttons"),lr=er("#dialog_content");function dbox(tr,rr,ar,cr,ur,dr){lr.html("<p>"+rr.replace(/\n/g,"</p><p>")+"</p>").toggleClass("prompt","prompt"===tr),sr.empty();var hr=er('<input type="button" data-ok="" value="'+nr+'">').appendTo(sr);return new Promise((function(nr,pr){var Ar,fr;if("alert"!==tr&&er('<input type="button" value="'+ir+'">').appendTo(sr).click((function(){or.hide(),nr(!1)})),"prompt"===tr)(Ar=er('<input type="text">').prependTo(sr)).val(ar||""),Ar.bind("keydown","return",(function(){hr.click()}));else if("select"===tr){var gr=er('<div style="text-align:center;">');if(Ar=er('<select aria-label="'.concat(rr,'">')).appendTo(gr),dr){var mr=er("<label>").text(dr.label);(fr=er('<input type="checkbox">').appendTo(mr)).val(dr.value),dr.tooltip&&mr.attr("title",dr.tooltip),fr.prop("checked",Boolean(dr.checked)),gr.append(er("<div>").append(mr))}er.each(cr||[],(function(tr,rr){"object"===_typeof(rr)?Ar.append(er("<option>").val(rr.value).html(rr.text)):Ar.append(er("<option>").html(rr))})),lr.append(gr),ar&&Ar.val(ar),ur&&Ar.bind("change","return",ur),Ar.bind("keydown","return",(function(){hr.click()}))}else"process"===tr&&hr.hide();or.show(),hr.click((function(){or.hide();var er="prompt"!==tr&&"select"!==tr||Ar.val();nr(fr?{response:er,checked:fr.prop("checked")}:er)})).focus(),"prompt"!==tr&&"select"!==tr||Ar.focus()}))}return er.alert=function(er){return dbox("alert",er)},er.confirm=function(er){return dbox("confirm",er)},er.process_cancel=function(er){return dbox("process",er)},er.prompt=function(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return dbox("prompt",er,tr)},er.select=function(er,tr,rr,nr,ar){return dbox("select",er,nr,tr,rr,ar)},er}"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(er,tr,rr,nr,ar){D_(this.canvas,er,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:tr,offsetY:rr,scaleWidth:nr,scaleHeight:ar})});var j_,H_,G_,V_,z_,K_={BEFORE_APPLY:"before_apply",AFTER_APPLY:"after_apply",BEFORE_UNAPPLY:"before_unapply",AFTER_UNAPPLY:"after_unapply"},q_=function(){function Command(){_classCallCheck(this,Command)}return _createClass(Command,[{key:"getText",value:function getText(){return this.text}},{key:"apply",value:function apply(er,tr){er&&er.handleHistoryEvent(K_.BEFORE_APPLY,this),tr(er),er&&er.handleHistoryEvent(K_.AFTER_APPLY,this)}},{key:"unapply",value:function unapply(er,tr){er&&er.handleHistoryEvent(K_.BEFORE_UNAPPLY,this),tr(),er&&er.handleHistoryEvent(K_.AFTER_UNAPPLY,this)}},{key:"elements",value:function elements(){return[this.elem]}},{key:"type",value:function type(){return this.constructor.name}}]),Command}(),W_=function(er){_inherits(MoveElementCommand,q_);var tr=_createSuper(MoveElementCommand);function MoveElementCommand(er,rr,nr,ar){var ir;return _classCallCheck(this,MoveElementCommand),(ir=tr.call(this)).elem=er,ir.text=ar?"Move "+er.tagName+" to "+ar:"Move "+er.tagName,ir.oldNextSibling=rr,ir.oldParent=nr,ir.newNextSibling=er.nextSibling,ir.newParent=er.parentNode,ir}return _createClass(MoveElementCommand,[{key:"apply",value:function apply(er){var tr=this;_get(_getPrototypeOf(MoveElementCommand.prototype),"apply",this).call(this,er,(function(){tr.elem=tr.newParent.insertBefore(tr.elem,tr.newNextSibling)}))}},{key:"unapply",value:function unapply(er){var tr=this;_get(_getPrototypeOf(MoveElementCommand.prototype),"unapply",this).call(this,er,(function(){tr.elem=tr.oldParent.insertBefore(tr.elem,tr.oldNextSibling)}))}}]),MoveElementCommand}(),X_=function(er){_inherits(InsertElementCommand,q_);var tr=_createSuper(InsertElementCommand);function InsertElementCommand(er,rr){var nr;return _classCallCheck(this,InsertElementCommand),(nr=tr.call(this)).elem=er,nr.text=rr||"Create "+er.tagName,nr.parent=er.parentNode,nr.nextSibling=nr.elem.nextSibling,nr}return _createClass(InsertElementCommand,[{key:"apply",value:function apply(er){var tr=this;_get(_getPrototypeOf(InsertElementCommand.prototype),"apply",this).call(this,er,(function(){tr.elem=tr.parent.insertBefore(tr.elem,tr.nextSibling)}))}},{key:"unapply",value:function unapply(er){var tr=this;_get(_getPrototypeOf(InsertElementCommand.prototype),"unapply",this).call(this,er,(function(){tr.parent=tr.elem.parentNode,tr.elem.remove()}))}}]),InsertElementCommand}(),Y_=function(er){_inherits(RemoveElementCommand,q_);var tr=_createSuper(RemoveElementCommand);function RemoveElementCommand(er,rr,nr,ar){var ir;return _classCallCheck(this,RemoveElementCommand),(ir=tr.call(this)).elem=er,ir.text=ar||"Delete "+er.tagName,ir.nextSibling=rr,ir.parent=nr,Jp(er),ir}return _createClass(RemoveElementCommand,[{key:"apply",value:function apply(er){var tr=this;_get(_getPrototypeOf(RemoveElementCommand.prototype),"apply",this).call(this,er,(function(){Jp(tr.elem),tr.parent=tr.elem.parentNode,tr.elem.remove()}))}},{key:"unapply",value:function unapply(er){var tr=this;_get(_getPrototypeOf(RemoveElementCommand.prototype),"unapply",this).call(this,er,(function(){Jp(tr.elem),of(tr.nextSibling)&&window.console&&console.error("Reference element was lost"),tr.parent.insertBefore(tr.elem,tr.nextSibling)}))}}]),RemoveElementCommand}(),J_=function(er){_inherits(ChangeElementCommand,q_);var tr=_createSuper(ChangeElementCommand);function ChangeElementCommand(er,rr,nr){var ar;for(var ir in _classCallCheck(this,ChangeElementCommand),(ar=tr.call(this)).elem=er,ar.text=nr?"Change "+er.tagName+" "+nr:"Change "+er.tagName,ar.newValues={},ar.oldValues=rr,rr)ar.newValues[ir]="#text"===ir?er.textContent:"#href"===ir?QA(er):er.getAttribute(ir);return ar}return _createClass(ChangeElementCommand,[{key:"apply",value:function apply(er){var tr=this;_get(_getPrototypeOf(ChangeElementCommand.prototype),"apply",this).call(this,er,(function(){var er=!1;if(Object.entries(tr.newValues).forEach((function(rr){var nr=_slicedToArray(rr,2),ar=nr[0],ir=nr[1];ir?"#text"===ar?tr.elem.textContent=ir:"#href"===ar?OA(tr.elem,ir):tr.elem.setAttribute(ar,ir):"#text"===ar?tr.elem.textContent="":(tr.elem.setAttribute(ar,""),tr.elem.removeAttribute(ar)),"transform"===ar&&(er=!0)})),!er){var rr=$A(tr.elem);if(rr){var nr=tr.elem.getBBox(),ar=["rotate(",rr," ",nr.x+nr.width/2,",",nr.y+nr.height/2,")"].join("");ar!==tr.elem.getAttribute("transform")&&tr.elem.setAttribute("transform",ar)}}}))}},{key:"unapply",value:function unapply(er){var tr=this;_get(_getPrototypeOf(ChangeElementCommand.prototype),"unapply",this).call(this,er,(function(){var er=!1;if(Object.entries(tr.oldValues).forEach((function(rr){var nr=_slicedToArray(rr,2),ar=nr[0],ir=nr[1];ir?"#text"===ar?tr.elem.textContent=ir:"#href"===ar?OA(tr.elem,ir):tr.elem.setAttribute(ar,ir):"#text"===ar?tr.elem.textContent="":tr.elem.removeAttribute(ar),"transform"===ar&&(er=!0)})),!er){var rr=$A(tr.elem);if(rr){var nr=tr.elem.getBBox(),ar=["rotate(",rr," ",nr.x+nr.width/2,",",nr.y+nr.height/2,")"].join("");ar!==tr.elem.getAttribute("transform")&&tr.elem.setAttribute("transform",ar)}}Jp(tr.elem)}))}}]),ChangeElementCommand}(),$_=function(er){_inherits(BatchCommand,q_);var tr=_createSuper(BatchCommand);function BatchCommand(er){var rr;return _classCallCheck(this,BatchCommand),(rr=tr.call(this)).text=er||"Batch Command",rr.stack=[],rr}return _createClass(BatchCommand,[{key:"apply",value:function apply(er){var tr=this;_get(_getPrototypeOf(BatchCommand.prototype),"apply",this).call(this,er,(function(){tr.stack.forEach((function(tr){console.assert(tr,"stack item should not be null"),tr&&tr.apply(er)}))}))}},{key:"unapply",value:function unapply(er){var tr=this;_get(_getPrototypeOf(BatchCommand.prototype),"unapply",this).call(this,er,(function(){tr.stack.reverse().forEach((function(tr){console.assert(tr,"stack item should not be null"),tr&&tr.unapply(er)}))}))}},{key:"elements",value:function elements(){for(var er=[],tr=this.stack.length;tr--;)if(this.stack[tr])for(var rr=this.stack[tr].elements(),nr=rr.length;nr--;)er.includes(rr[nr])||er.push(rr[nr]);return er}},{key:"addSubCommand",value:function addSubCommand(er){console.assert(null!==er,"cmd should not be null"),this.stack.push(er)}},{key:"isEmpty",value:function isEmpty(){return!this.stack.length}}]),BatchCommand}(),Z_=function(){function UndoManager(er){_classCallCheck(this,UndoManager),this.handler_=er||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(er){this.undoStackPointer<this.undoStack.length&&this.undoStack.length>0&&(this.undoStack=this.undoStack.splice(0,this.undoStackPointer)),this.undoStack.push(er),this.undoStackPointer=this.undoStack.length}},{key:"beginUndoableChange",value:function beginUndoableChange(er,tr){for(var rr=++this.undoChangeStackPointer,nr=tr.length,ar=new Array(nr),ir=new Array(nr);nr--;){var or=tr[nr];of(or)||(ir[nr]=or,ar[nr]=or.getAttribute(er))}this.undoableChangeStack[rr]={attrName:er,oldValues:ar,elements:ir}}},{key:"finishUndoableChange",value:function finishUndoableChange(){for(var er=this.undoChangeStackPointer--,tr=this.undoableChangeStack[er],rr=tr.attrName,nr=new $_("Change "+rr),ar=tr.elements.length;ar--;){var ir=tr.elements[ar];if(!of(ir)){var or={};or[rr]=tr.oldValues[ar],or[rr]!==ir.getAttribute(rr)&&nr.addSubCommand(new J_(ir,or,rr))}}return this.undoableChangeStack[er]=null,nr}}]),UndoManager}(),ev=Object.freeze({__proto__:null,HistoryEventTypes:K_,Command:q_,MoveElementCommand:W_,InsertElementCommand:X_,RemoveElementCommand:Y_,ChangeElementCommand:J_,BatchCommand:$_,UndoManager:Z_}),tv=jQuery,rv={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"]},nv={},av=function setUiStrings(er){Object.assign(nv,er.ui)},iv=[],ov=!0,sv={},lv=null,cv=null,uv=function init(er){cv=er,iv=[0,"ClosePath"];tv.each(["Moveto","Lineto","CurvetoCubic","CurvetoQuadratic","Arc","LinetoHorizontal","LinetoVertical","CurvetoCubicSmooth","CurvetoQuadraticSmooth"],(function(er,tr){iv.push(tr+"Abs"),iv.push(tr+"Rel")}))},dv=function insertItemBefore(er,tr,rr){var nr=er.pathSegList;if(function supportsPathInsertItemBefore(){return gd}())nr.insertItemBefore(tr,rr);else{for(var ar=nr.numberOfItems,ir=[],or=0;or<ar;or++){var sr=nr.getItem(or);ir.push(sr)}nr.clear();for(var lr=0;lr<ar;lr++)lr===rr&&nr.appendItem(tr),nr.appendItem(ir[lr])}},hv=function ptObjToArr(er,tr){return rv[er].map((function(er){return tr[er]}))},pv=function getGripPt(er,tr){var rr=er.path,nr={x:tr?tr.x:er.item.x,y:tr?tr.y:er.item.y};rr.matrix&&(nr=pA(nr.x,nr.y,rr.matrix));var ar=cv.getCurrentZoom();return nr.x*=ar,nr.y*=ar,nr},Av=function getPointFromGrip(er,tr){var rr={x:er.x,y:er.y};tr.matrix&&(er=pA(rr.x,rr.y,tr.imatrix),rr.x=er.x,rr.y=er.y);var nr=cv.getCurrentZoom();return rr.x/=nr,rr.y/=nr,rr},fv=function addPointGrip(er,tr,rr){var nr=gv(),ar=ef("pathpointgrip_"+er);if(!ar){ar=document.createElementNS(Yu.SVG,"circle");var ir={id:"pathpointgrip_"+er,display:"none",r:4,fill:"#0FF",stroke:"#00F","stroke-width":2,cursor:"move",style:"pointer-events:all"};"pathNodeTooltip"in nv&&(ir["xlink:title"]=nv.pathNodeTooltip),tf(ar,ir),ar=nr.appendChild(ar),tv("#pathpointgrip_"+er).dblclick((function(){lv&&lv.setSegType()}))}return tr&&rr&&tf(ar,{cx:tr,cy:rr,display:"inline"}),ar},gv=function getGripContainer(){var er=ef("pathpointgrip_container");er||((er=ef("selectorParentGroup").appendChild(document.createElementNS(Yu.SVG,"g"))).id="pathpointgrip_container");return er},mv=function addCtrlGrip(er){var tr=ef("ctrlpointgrip_"+er);if(tr)return tr;tr=document.createElementNS(Yu.SVG,"circle");var rr={id:"ctrlpointgrip_"+er,display:"none",r:4,fill:"#0FF",stroke:"#55F","stroke-width":1,cursor:"move",style:"pointer-events:all"};return"pathCtrlPtTooltip"in nv&&(rr["xlink:title"]=nv.pathCtrlPtTooltip),tf(tr,rr),gv().append(tr),tr},_v=function getCtrlLine(er){var tr=ef("ctrlLine_"+er);return tr||(tr=document.createElementNS(Yu.SVG,"line"),tf(tr,{id:"ctrlLine_"+er,stroke:"#555","stroke-width":1,style:"pointer-events:none"}),gv().append(tr),tr)},vv=function getControlPoints(er){var tr=er.item,rr=er.index;if(!("x1"in tr)||!("x2"in tr))return null;var nr={};gv();for(var ar=[lv.segs[rr-1].item,tr],ir=1;ir<3;ir++){var or=rr+"c"+ir,sr=nr["c"+ir+"_line"]=_v(or),lr=pv(er,{x:tr["x"+ir],y:tr["y"+ir]}),cr=pv(er,{x:ar[ir-1].x,y:ar[ir-1].y});tf(sr,{x1:lr.x,y1:lr.y,x2:cr.x,y2:cr.y,display:"inline"}),nr["c"+ir+"_line"]=sr;var ur=nr["c"+ir]=mv(or);tf(ur,{cx:lr.x,cy:lr.y,display:"inline"}),nr["c"+ir]=ur}return nr},yv=function replacePathSeg(er,tr,rr,nr){var ar=nr||lv.elem,ir=ar["createSVGPathSeg"+iv[er]].apply(ar,_toConsumableArray(rr));if(function supportsPathReplaceItem(){return fd}())ar.pathSegList.replaceItem(ir,tr);else{for(var or=ar.pathSegList,sr=or.numberOfItems,lr=[],cr=0;cr<sr;cr++){var ur=or.getItem(cr);lr.push(ur)}or.clear();for(var dr=0;dr<sr;dr++)dr===tr?or.appendItem(ir):or.appendItem(lr[dr])}},bv=function getSegSelector(er,tr){var rr=er.index,nr=ef("segline_"+rr);if(!nr){var ar=gv();nr=document.createElementNS(Yu.SVG,"path"),tf(nr,{id:"segline_"+rr,display:"none",fill:"none",stroke:"#0FF","stroke-width":2,style:"pointer-events:none",d:"M0,0 0,0"}),ar.append(nr)}if(tr){var ir=er.prev;if(!ir)return nr.setAttribute("display","none"),nr;var or=pv(ir);yv(2,0,[or.x,or.y],nr);for(var sr=hv(er.type,er.item),lr=0;lr<sr.length;lr+=2){var cr=pv(er,{x:sr[lr],y:sr[lr+1]});sr[lr]=cr.x,sr[lr+1]=cr.y}yv(er.type,1,sr,nr)}return nr},wv=function smoothControlPoints(er,tr,rr){var nr=er.x-rr.x,ar=er.y-rr.y,ir=tr.x-rr.x,or=tr.y-rr.y;if(!(0===nr&&0===ar||0===ir&&0===or)){var sr=Math.sqrt(nr*nr+ar*ar),lr=Math.sqrt(ir*ir+or*or),cr=cv.getSVGRoot().createSVGPoint(),ur=cv.getSVGRoot().createSVGPoint(),dr=Math.atan2(ar,nr),hr=Math.atan2(or,ir);dr<0&&(dr+=2*Math.PI),hr<0&&(hr+=2*Math.PI);var pr,Ar,fr=Math.abs(dr-hr),gr=Math.abs(Math.PI-fr)/2;return dr-hr>0?(pr=fr<Math.PI?dr+gr:dr-gr,Ar=fr<Math.PI?hr-gr:hr+gr):(pr=fr<Math.PI?dr-gr:dr+gr,Ar=fr<Math.PI?hr+gr:hr-gr),cr.x=sr*Math.cos(pr)+rr.x,cr.y=sr*Math.sin(pr)+rr.y,ur.x=lr*Math.cos(Ar)+rr.x,ur.y=lr*Math.sin(Ar)+rr.y,[cr,ur]}},kv=function(){function Segment(er,tr){_classCallCheck(this,Segment),this.selected=!1,this.index=er,this.item=tr,this.type=tr.pathSegType,this.ctrlpts=[],this.ptgrip=null,this.segsel=null}return _createClass(Segment,[{key:"showCtrlPts",value:function showCtrlPts(er){for(var tr in this.ctrlpts)({}).hasOwnProperty.call(this.ctrlpts,tr)&&this.ctrlpts[tr].setAttribute("display",er?"inline":"none")}},{key:"selectCtrls",value:function selectCtrls(er){tv("#ctrlpointgrip_"+this.index+"c1, #ctrlpointgrip_"+this.index+"c2").attr("fill",er?"#0FF":"#EEE")}},{key:"show",value:function show(er){this.ptgrip&&(this.ptgrip.setAttribute("display",er?"inline":"none"),this.segsel.setAttribute("display",er?"inline":"none"),this.showCtrlPts(er))}},{key:"select",value:function select(er){this.ptgrip&&(this.ptgrip.setAttribute("stroke",er?"#0FF":"#00F"),this.segsel.setAttribute("display",er?"inline":"none"),this.ctrlpts&&this.selectCtrls(er),this.selected=er)}},{key:"addGrip",value:function addGrip(){this.ptgrip=function getPointGrip(er,tr){var rr=er.index,nr=fv(rr);if(tr){var ar=pv(er);tf(nr,{cx:ar.x,cy:ar.y,display:"inline"})}return nr}(this,!0),this.ctrlpts=vv(this),this.segsel=bv(this,!0)}},{key:"update",value:function update(er){if(this.ptgrip){var tr=pv(this);tf(this.ptgrip,{cx:tr.x,cy:tr.y}),bv(this,!0),this.ctrlpts&&(er&&(this.item=lv.elem.pathSegList.getItem(this.index),this.type=this.item.pathSegType),vv(this))}}},{key:"move",value:function move(er,tr){var rr=this.item,nr=this.ctrlpts?[rr.x+=er,rr.y+=tr,rr.x1,rr.y1,rr.x2+=er,rr.y2+=tr]:[rr.x+=er,rr.y+=tr];if(yv(this.type,this.index,10===this.type?hv(this.type,rr):nr),this.next&&this.next.ctrlpts){var ar=this.next.item,ir=[ar.x,ar.y,ar.x1+=er,ar.y1+=tr,ar.x2,ar.y2];yv(this.next.type,this.next.index,ir)}if(this.mate){var or=this.mate.item,sr=[or.x+=er,or.y+=tr];yv(this.mate.type,this.mate.index,sr)}this.update(!0),this.next&&this.next.update(!0)}},{key:"setLinked",value:function setLinked(er){var tr,rr,nr;if(2===er){if(rr=1,!(tr=this.next))return;nr=this.item}else{if(rr=2,!(tr=this.prev))return;nr=tr.item}var ar=tr.item;ar["x"+rr]=nr.x+(nr.x-this.item["x"+er]),ar["y"+rr]=nr.y+(nr.y-this.item["y"+er]);var ir=[ar.x,ar.y,ar.x1,ar.y1,ar.x2,ar.y2];yv(tr.type,tr.index,ir),tr.update(!0)}},{key:"moveCtrl",value:function moveCtrl(er,tr,rr){var nr=this.item;nr["x"+er]+=tr,nr["y"+er]+=rr;var ar=[nr.x,nr.y,nr.x1,nr.y1,nr.x2,nr.y2];yv(this.type,this.index,ar),this.update(!0)}},{key:"setType",value:function setType(er,tr){yv(er,this.index,tr),this.type=er,this.item=lv.elem.pathSegList.getItem(this.index),this.showCtrlPts(6===er),this.ctrlpts=vv(this),this.update(!0)}}]),Segment}(),xv=function(){function Path(er){if(_classCallCheck(this,Path),!er||"path"!==er.tagName)throw new Error("svgedit.path.Path constructed without a <path> element");this.elem=er,this.segs=[],this.selected_pts=[],lv=this,this.init()}return _createClass(Path,[{key:"init",value:function init(){tv(gv()).find("*").each((function(){tv(this).attr("display","none")}));var er=this.elem.pathSegList,tr=er.numberOfItems;this.segs=[],this.selected_pts=[],this.first_seg=null;for(var rr=0;rr<tr;rr++){var nr=er.getItem(rr),ar=new kv(rr,nr);ar.path=this,this.segs.push(ar)}for(var ir=this.segs,or=null,sr=0;sr<tr;sr++){var lr=ir[sr],cr=sr+1>=tr?null:ir[sr+1],ur=sr-1<0?null:ir[sr-1];if(2===lr.type){if(ur&&1!==ur.type){var dr=ir[or];dr.next=ir[or+1],dr.next.prev=dr,dr.addGrip()}or=sr}else if(cr&&1===cr.type)lr.next=ir[or+1],lr.next.prev=lr,lr.mate=ir[or],lr.addGrip(),of(this.first_seg)&&(this.first_seg=lr);else if(cr)1!==lr.type&&(lr.addGrip(),cr&&2!==cr.type&&(lr.next=cr,lr.next.prev=lr));else if(1!==lr.type){var hr=ir[or];hr.next=ir[or+1],hr.next.prev=hr,hr.addGrip(),lr.addGrip(),this.first_seg||(this.first_seg=ir[or])}}return this}},{key:"eachSeg",value:function eachSeg(er){for(var tr=this.segs.length,rr=0;rr<tr;rr++){if(!1===er.call(this.segs[rr],rr))break}}},{key:"addSeg",value:function addSeg(er){var tr=this.segs[er];if(tr.prev){var rr,nr,ar,ir=tr.prev;switch(tr.item.pathSegType){case 4:nr=(tr.item.x+ir.item.x)/2,ar=(tr.item.y+ir.item.y)/2,rr=this.elem.createSVGPathSegLinetoAbs(nr,ar);break;case 6:var or=(ir.item.x+tr.item.x1)/2,sr=(tr.item.x1+tr.item.x2)/2,lr=(tr.item.x2+tr.item.x)/2,cr=(or+sr)/2,ur=(sr+lr)/2;nr=(cr+ur)/2;var dr=(ir.item.y+tr.item.y1)/2,hr=(tr.item.y1+tr.item.y2)/2,pr=(tr.item.y2+tr.item.y)/2,Ar=(dr+hr)/2,fr=(hr+pr)/2;ar=(Ar+fr)/2,rr=this.elem.createSVGPathSegCurvetoCubicAbs(nr,ar,or,dr,cr,Ar);var gr=[tr.item.x,tr.item.y,ur,fr,lr,pr];yv(tr.type,er,gr)}dv(this.elem,rr,er)}}},{key:"deleteSeg",value:function deleteSeg(er){var tr=this.segs[er],rr=this.elem.pathSegList;tr.show(!1);var nr=tr.next;if(tr.mate){var ar=[nr.item.x,nr.item.y];yv(2,nr.index,ar),yv(4,tr.index,ar),rr.removeItem(tr.mate.index)}else if(tr.prev)rr.removeItem(er);else{var ir=[nr.item.x,nr.item.y];yv(2,tr.next.index,ir),rr.removeItem(er)}}},{key:"removePtFromSelection",value:function removePtFromSelection(er){var tr=this.selected_pts.indexOf(er);-1!==tr&&(this.segs[er].select(!1),this.selected_pts.splice(tr,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(er){return this.eachSeg((function(){this.show(er)})),er&&this.selectPt(this.first_seg.index),this}},{key:"movePts",value:function movePts(er,tr){for(var rr=this.selected_pts.length;rr--;){this.segs[this.selected_pts[rr]].move(er,tr)}}},{key:"moveCtrl",value:function moveCtrl(er,tr){var rr=this.segs[this.selected_pts[0]];rr.moveCtrl(this.dragctrl,er,tr),ov&&rr.setLinked(this.dragctrl)}},{key:"setSegType",value:function setSegType(er){this.storeD();for(var tr,rr=this.selected_pts.length;rr--;){var nr=this.selected_pts[rr],ar=this.segs[nr],ir=ar.prev;if(ir){if(!er)tr="Toggle Path Segment Type",er=6===ar.type?4:6;er=Number(er);var or=ar.item.x,sr=ar.item.y,lr=ir.item.x,cr=ir.item.y,ur=void 0;switch(er){case 6:if(ar.olditem){var dr=ar.olditem;ur=[or,sr,dr.x1,dr.y1,dr.x2,dr.y2]}else{var hr=or-lr,pr=sr-cr;ur=[or,sr,lr+hr/3,cr+pr/3,or-hr/3,sr-pr/3]}break;case 4:ur=[or,sr],ar.olditem=ar.item}ar.setType(er,ur)}}lv.endChanges(tr)}},{key:"selectPt",value:function selectPt(er,tr){this.clearSelection(),of(er)&&this.eachSeg((function(tr){this.prev&&(er=tr)})),this.addPtsToSelection(er),tr&&(this.dragctrl=tr,ov&&this.segs[er].setLinked(tr))}},{key:"update",value:function update(){var er=this.elem;return $A(er)?(this.matrix=vA(er),this.imatrix=this.matrix.inverse()):(this.matrix=null,this.imatrix=null),this.eachSeg((function(tr){this.item=er.pathSegList.getItem(tr),this.update()})),this}},{key:"endChanges",value:function endChanges(er){wd()&&cv.resetD(this.elem);var tr=new J_(this.elem,{d:this.last_d},er);cv.endChanges({cmd:tr,elem:this.elem})}},{key:"addPtsToSelection",value:function addPtsToSelection(er){var tr=this;Array.isArray(er)||(er=[er]),er.forEach((function(er){tr.segs[er].ptgrip&&!tr.selected_pts.includes(er)&&er>=0&&tr.selected_pts.push(er)})),this.selected_pts.sort();var rr=this.selected_pts.length,nr=[];for(nr.length=rr;rr--;){var ar=this.selected_pts[rr],ir=this.segs[ar];ir.select(!0),nr[rr]=ir.ptgrip}var or=Path.subpathIsClosed(this.selected_pts[0]);cv.addPtsToSelection({grips:nr,closedSubpath:or})}}],[{key:"subpathIsClosed",value:function subpathIsClosed(er){var tr=!1;return lv.eachSeg((function(rr){return rr<=er||2!==this.type&&(1!==this.type||(tr=!0,!1))})),tr}}]),Path}(),Sv=function getPath_(er){var tr=sv[er.id];return tr||(tr=sv[er.id]=new xv(er)),tr},Cv=function removePath_(er){er in sv&&delete sv[er]},Bv=function getRotVals(er,tr){var rr=er-G_,nr=tr-V_,ar=Math.sqrt(rr*rr+nr*nr),ir=Math.atan2(nr,rr)+z_;return rr=ar*Math.cos(ir)+G_,nr=ar*Math.sin(ir)+V_,rr-=j_,nr-=H_,ar=Math.sqrt(rr*rr+nr*nr),ir=Math.atan2(nr,rr)-z_,{x:ar*Math.cos(ir)+j_,y:ar*Math.sin(ir)+H_}},Ev=function recalcRotatedPath(){var er=lv.elem;if(z_=$A(er,!0)){var tr=lv.oldbbox;G_=tr.x+tr.width/2,V_=tr.y+tr.height/2;var rr=HA(er);j_=rr.x+rr.width/2,H_=rr.y+rr.height/2;var nr=j_-G_,ar=H_-V_,ir=Math.sqrt(nr*nr+ar*ar),or=Math.atan2(ar,nr)+z_;j_=ir*Math.cos(or)+G_,H_=ir*Math.sin(or)+V_;for(var sr=er.pathSegList,lr=sr.numberOfItems;lr;){lr-=1;var cr=sr.getItem(lr),ur=cr.pathSegType;if(1!==ur){var dr=Bv(cr.x,cr.y),hr=[dr.x,dr.y];if(!of(cr.x1)&&!of(cr.x2)){var pr=Bv(cr.x1,cr.y1),Ar=Bv(cr.x2,cr.y2);hr.splice(hr.length,0,pr.x,pr.y,Ar.x,Ar.y)}yv(ur,lr,hr)}}HA(er);var fr=cv.getSVGRoot().createSVGTransform(),gr=$p(er);fr.setRotate(180*z_/Math.PI,j_,H_),gr.replaceItem(fr,0)}},Nv=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"],Lv=function convertPath(er,tr){for(var rr=er.pathSegList,nr=rr.numberOfItems,ar=0,ir=0,or="",sr=null,lr=0;lr<nr;++lr){var cr=rr.getItem(lr),ur=cr.x||0,dr=cr.y||0,hr=cr.x1||0,pr=cr.y1||0,Ar=cr.x2||0,fr=cr.y2||0,gr=cr.pathSegType,mr=Nv[gr][tr?"toLowerCase":"toUpperCase"]();switch(gr){case 1:or+="z",sr&&!tr&&(ar=sr[0],ir=sr[1]);break;case 12:ur-=ar;case 13:tr?(dr=0,ar+=ur,mr="l"):(dr=ir,ar=ur+=ar,mr="L"),or+=pathDSegment(mr,[[ur,dr]]);break;case 14:dr-=ir;case 15:tr?(ur=0,ir+=dr,mr="l"):(ur=ar,ir=dr+=ir,mr="L"),or+=pathDSegment(mr,[[ur,dr]]);break;case 2:case 4:case 18:ur-=ar,dr-=ir;case 5:case 3:case 19:tr?(ar+=ur,ir+=dr):(ar=ur+=ar,ir=dr+=ir),2!==gr&&3!==gr||(sr=[ar,ir]),or+=pathDSegment(mr,[[ur,dr]]);break;case 6:ur-=ar,hr-=ar,Ar-=ar,dr-=ir,pr-=ir,fr-=ir;case 7:tr?(ar+=ur,ir+=dr):(hr+=ar,Ar+=ar,pr+=ir,fr+=ir,ar=ur+=ar,ir=dr+=ir),or+=pathDSegment(mr,[[hr,pr],[Ar,fr],[ur,dr]]);break;case 8:ur-=ar,hr-=ar,dr-=ir,pr-=ir;case 9:tr?(ar+=ur,ir+=dr):(hr+=ar,pr+=ir,ar=ur+=ar,ir=dr+=ir),or+=pathDSegment(mr,[[hr,pr],[ur,dr]]);break;case 10:ur-=ar,dr-=ir;case 11:tr?(ar+=ur,ir+=dr):(ar=ur+=ar,ir=dr+=ir),or+=pathDSegment(mr,[[cr.r1,cr.r2]],[cr.angle,cr.largeArcFlag?1:0,cr.sweepFlag?1:0],[ur,dr]);break;case 16:ur-=ar,Ar-=ar,dr-=ir,fr-=ir;case 17:tr?(ar+=ur,ir+=dr):(Ar+=ar,fr+=ir,ar=ur+=ar,ir=dr+=ir),or+=pathDSegment(mr,[[Ar,fr],[ur,dr]])}}return or};function pathDSegment(er,tr,rr,nr){tv.each(tr,(function(er,rr){tr[er]=aA(rr)}));var ar=er+tr.join(" ");return rr&&(ar+=" "+rr.join(" ")),nr&&(ar+=" "+aA(nr)),ar}var Pv,Tv,Fv,Uv,Iv,Rv=(Fv=!1,Uv=null,Iv=!1,{mouseDown:function mouseDown(er,tr,rr,nr){var ar;if("path"!==cv.getCurrentMode()){if(lv){var ir;if(lv.storeD(),"pathpointgrip_"===(ar=er.target.id).substr(0,14)){ir=lv.cur_pt=Number.parseInt(ar.substr(14)),lv.dragging=[rr,nr];var or=lv.segs[ir];er.shiftKey?or.selected?lv.removePtFromSelection(ir):lv.addPtsToSelection(ir):((lv.selected_pts.length<=1||!or.selected)&&lv.clearSelection(),lv.addPtsToSelection(ir))}else if(ar.startsWith("ctrlpointgrip_")){lv.dragging=[rr,nr];var sr=ar.split("_")[1].split("c");ir=Number(sr[0]);var lr=Number(sr[1]);lv.selectPt(ir,lr)}if(!lv.dragging){var cr=cv.getRubberBox();of(cr)&&(cr=cv.setRubberBox(cv.selectorManager.getRubberBandBox())),ur=cv.getCurrentZoom(),tf(cr,{x:rr*ur,y:nr*ur,width:0,height:0,display:"inline"})}}}else{var ur,dr=rr,hr=nr,pr=dr/(ur=cv.getCurrentZoom()),Ar=hr/ur,fr=ef("path_stretch_line");Pv=[pr,Ar],cv.getGridSnapping()&&(pr=nf(pr),Ar=nf(Ar),dr=nf(dr),hr=nf(hr)),fr||(fr=document.createElementNS(Yu.SVG,"path"),tf(fr,{id:"path_stretch_line",stroke:"#22C","stroke-width":"0.5",fill:"none"}),fr=ef("selectorParentGroup").appendChild(fr)),fr.setAttribute("display","inline");var gr,mr=cv.getDrawnPath();if(mr){for(var _r=mr.pathSegList,vr=_r.numberOfItems,yr=6/ur,br=!1;vr;){vr--;var wr=_r.getItem(vr),kr=wr.x,xr=wr.y;if(pr>=kr-yr&&pr<=kr+yr&&Ar>=xr-yr&&Ar<=xr+yr){br=!0;break}}ar=cv.getId(),Cv(ar);var Sr,Cr,Br=ef(ar),Er=_r.numberOfItems;if(br){if(vr<=1&&Er>=2){var Nr=_r.getItem(0).x,Lr=_r.getItem(0).y;Sr=4===(Cr=fr.pathSegList.getItem(1)).pathSegType?mr.createSVGPathSegLinetoAbs(Nr,Lr):mr.createSVGPathSegCurvetoCubicAbs(Nr,Lr,Cr.x1/ur,Cr.y1/ur,Nr,Lr);var Pr=mr.createSVGPathSegClosePath();_r.appendItem(Sr),_r.appendItem(Pr)}else if(Er<3)return!1;if(tv(fr).remove(),cv.setDrawnPath(null),cv.setStarted(!1),Fv){lv.matrix&&cv.remapElement(Br,{},lv.matrix.inverse());var Tr=Br.getAttribute("d"),Fr=tv(lv.elem).attr("d");return tv(lv.elem).attr("d",Fr+Tr),tv(Br).remove(),lv.matrix&&Ev(),uv(),Rv.toEditMode(lv.elem),lv.selectPt(),!1}}else{if(!tv.contains(cv.getContainer(),cv.getMouseTarget(er)))return!1;var Ur=mr.pathSegList.numberOfItems,Ir=mr.pathSegList.getItem(Ur-1),Rr=Ir.x,Mr=Ir.y;if(er.shiftKey){var Qr=yA(Rr,Mr,pr,Ar);pr=Qr.x,Ar=Qr.y}Sr=4===(Cr=fr.pathSegList.getItem(1)).pathSegType?mr.createSVGPathSegLinetoAbs(cv.round(pr),cv.round(Ar)):mr.createSVGPathSegCurvetoCubicAbs(cv.round(pr),cv.round(Ar),Cr.x1/ur,Cr.y1/ur,Cr.x2/ur,Cr.y2/ur),mr.pathSegList.appendItem(Sr),pr*=ur,Ar*=ur,fr.setAttribute("d",["M",pr,Ar,pr,Ar].join(" ")),gr=Ur,Fv&&(gr+=lv.segs.length),fv(gr,pr,Ar)}}else{var Or="M"+pr+","+Ar+" ";cv.setDrawnPath(cv.addSVGElementFromJson({element:"path",curStyles:!0,attr:{d:Or,id:cv.getNextId(),opacity:cv.getOpacity()/2}})),fr.setAttribute("d",["M",dr,hr,dr,hr].join(" ")),gr=Fv?lv.segs.length:0,fv(gr,dr,hr)}}},mouseMove:function mouseMove(er,tr){var rr=cv.getCurrentZoom();Iv=!0;var nr=cv.getDrawnPath();if("path"!==cv.getCurrentMode())if(lv.dragging){var ar=Av({x:lv.dragging[0],y:lv.dragging[1]},lv),ir=Av({x:er,y:tr},lv),or=ir.x-ar.x,sr=ir.y-ar.y;lv.dragging=[er,tr],lv.dragctrl?lv.moveCtrl(or,sr):lv.movePts(or,sr)}else lv.selected_pts=[],lv.eachSeg((function(er){var tr=this;if(tr.next||tr.prev){var rr=cv.getRubberBox().getBBox(),nr=pv(tr),ar={x:nr.x,y:nr.y,width:0,height:0},ir=bA(rr,ar);this.select(ir),ir&&lv.selected_pts.push(tr.index)}}));else{if(!nr)return;var lr=nr.pathSegList,cr=lr.numberOfItems-1;if(Pv){var ur=mv("1c1"),dr=mv("0c2");ur.setAttribute("cx",er),ur.setAttribute("cy",tr),ur.setAttribute("display","inline");var hr=Pv[0],pr=Pv[1],Ar=hr+(hr-er/rr),fr=pr+(pr-tr/rr);dr.setAttribute("cx",Ar*rr),dr.setAttribute("cy",fr*rr),dr.setAttribute("display","inline");var gr=_v(1);if(tf(gr,{x1:er,y1:tr,x2:Ar*rr,y2:fr*rr,display:"inline"}),0===cr)Tv=[er,tr];else{var mr=lr.getItem(cr-1),_r=mr.x,vr=mr.y;6===mr.pathSegType?(_r+=_r-mr.x2,vr+=vr-mr.y2):Tv&&(_r=Tv[0]/rr,vr=Tv[1]/rr),yv(6,cr,[hr,pr,_r,vr,Ar,fr],nr)}}else{var yr=ef("path_stretch_line");if(yr){var br=lr.getItem(cr);if(6===br.pathSegType){var wr=br.x+(br.x-br.x2),kr=br.y+(br.y-br.y2);yv(6,1,[er,tr,wr*rr,kr*rr,er,tr],yr)}else Tv?yv(6,1,[er,tr,Tv[0],Tv[1],er,tr],yr):yv(4,1,[er,tr],yr)}}}},mouseUp:function mouseUp(er,tr,rr,nr){var ar=cv.getDrawnPath();if("path"===cv.getCurrentMode())return Pv=null,ar||(tr=ef(cv.getId()),cv.setStarted(!1),Tv=null),{keep:!0,element:tr};var ir=cv.getRubberBox();if(lv.dragging){var or=lv.cur_pt;lv.dragging=!1,lv.dragctrl=!1,lv.update(),Iv&&lv.endChanges("Move path point(s)"),er.shiftKey||Iv||lv.selectPt(or)}else ir&&"none"!==ir.getAttribute("display")?(ir.setAttribute("display","none"),ir.getAttribute("width")<=2&&ir.getAttribute("height")<=2&&Rv.toSelectMode(er.target)):Rv.toSelectMode(er.target);Iv=!1},toEditMode:function toEditMode(er){lv=Sv(er),cv.setCurrentMode("pathedit"),cv.clearSelection(),lv.show(!0).update(),lv.oldbbox=HA(lv.elem),Fv=!1},toSelectMode:function toSelectMode(er){var tr=er===lv.elem;cv.setCurrentMode("select"),lv.show(!1),Uv=!1,cv.clearSelection(),lv.matrix&&Ev(),tr&&(cv.call("selected",[er]),cv.addToSelection([er],!0))},addSubPath:function addSubPath(er){er?(cv.setCurrentMode("path"),Fv=!0):(Rv.clear(!0),Rv.toEditMode(lv.elem))},select:function select(er){Uv===er?(Rv.toEditMode(er),cv.setCurrentMode("pathedit")):Uv=er},reorient:function reorient(){var er=cv.getSelectedElements()[0];if(er&&0!==$A(er)){var tr=new $_("Reorient path"),rr={d:er.getAttribute("d"),transform:er.getAttribute("transform")};tr.addSubCommand(new J_(er,rr)),cv.clearSelection(),this.resetOrientation(er),cv.addCommandToHistory(tr),Sv(er).show(!1).matrix=null,this.clear(),cv.addToSelection([er],!0),cv.call("changed",cv.getSelectedElements())}},clear:function clear(er){var tr=cv.getDrawnPath();if(Uv=null,tr){var rr=ef(cv.getId());tv(ef("path_stretch_line")).remove(),tv(rr).remove(),tv(ef("pathpointgrip_container")).find("*").attr("display","none"),Tv=null,cv.setDrawnPath(null),cv.setStarted(!1)}else"pathedit"===cv.getCurrentMode()&&this.toSelectMode();lv&&lv.init().show(!1)},resetOrientation:function resetOrientation(er){if(of(er)||"path"!==er.nodeName)return!1;var tr=$p(er),rr=_A(tr).matrix;tr.clear(),er.removeAttribute("transform");for(var nr=er.pathSegList,ar=nr.numberOfItems,ir=function _loop(tr){var ar=nr.getItem(tr),ir=ar.pathSegType;if(1===ir)return"continue";var or=[];tv.each(["",1,2],(function(er,tr){var nr=ar["x"+tr],ir=ar["y"+tr];if(void 0!==nr&&void 0!==ir){var sr=pA(nr,ir,rr);or.splice(or.length,0,sr.x,sr.y)}})),yv(ir,tr,or,er)},or=0;or<ar;++or)ir(or);!function reorientGrads(er,tr){for(var rr=HA(er),nr=0;nr<2;nr++){var ar=0===nr?"fill":"stroke",ir=er.getAttribute(ar);if(ir&&ir.startsWith("url(")){var or=ZA(ir);if("linearGradient"===or.tagName){var sr=or.getAttribute("x1")||0,lr=or.getAttribute("y1")||0,cr=or.getAttribute("x2")||1,ur=or.getAttribute("y2")||0;sr=rr.width*sr+rr.x,lr=rr.height*lr+rr.y,cr=rr.width*cr+rr.x,ur=rr.height*ur+rr.y;var dr=pA(sr,lr,tr),hr=pA(cr,ur,tr),pr={x1:(dr.x-rr.x)/rr.width,y1:(dr.y-rr.y)/rr.height,x2:(hr.x-rr.x)/rr.width,y2:(hr.y-rr.y)/rr.height},Ar=or.cloneNode(!0);tv(Ar).attr(pr),Ar.id=cv.getNextId(),DA().append(Ar),er.setAttribute(ar,"url(#"+Ar.id+")")}}}}(er,rr)},zoomChange:function zoomChange(){"pathedit"===cv.getCurrentMode()&&lv.update()},getNodePoint:function getNodePoint(){var er=lv.selected_pts.length?lv.selected_pts[0]:1,tr=lv.segs[er];return{x:tr.item.x,y:tr.item.y,type:tr.type}},linkControlPoints:function linkControlPoints(er){!function setLinkControlPoints(er){ov=er}(er)},clonePathNode:function clonePathNode(){lv.storeD();for(var er=lv.selected_pts,tr=er.length,rr=[];tr--;){var nr=er[tr];lv.addSeg(nr),rr.push(nr+tr),rr.push(nr+tr+1)}lv.init().addPtsToSelection(rr),lv.endChanges("Clone path node(s)")},opencloseSubPath:function opencloseSubPath(){var er=lv.selected_pts;if(1===er.length){var tr,rr,nr=lv.elem,ar=nr.pathSegList,ir=er[0],or=null,sr=null;if(lv.eachSeg((function(er){return 2===this.type&&er<=ir&&(sr=this.item),er<=ir||(2===this.type?(or=er,!1):1!==this.type||(or=!1,!1))})),of(or)&&(or=lv.segs.length-1),!1!==or){var lr=nr.createSVGPathSegLinetoAbs(sr.x,sr.y),cr=nr.createSVGPathSegClosePath();return or===lv.segs.length-1?(ar.appendItem(lr),ar.appendItem(cr)):(dv(nr,cr,or),dv(nr,lr,or)),void lv.init().selectPt(or+1)}if(lv.segs[ir].mate)return ar.removeItem(ir),ar.removeItem(ir),void lv.init().selectPt(ir-1);for(var ur=0;ur<ar.numberOfItems;ur++){var dr=ar.getItem(ur);if(2===dr.pathSegType)tr=ur;else if(ur===ir)ar.removeItem(tr);else if(1===dr.pathSegType&&ir<ur){rr=ur-1,ar.removeItem(ur);break}}for(var hr=ir-tr-1;hr--;)dv(nr,ar.getItem(tr),rr);var pr=ar.getItem(tr);yv(2,tr,[pr.x,pr.y]),lv.init().selectPt(0)}},deletePathNode:function deletePathNode(){if(Rv.canDeleteNodes){lv.storeD();for(var er=lv.selected_pts,tr=er.length;tr--;){var rr=er[tr];lv.deleteSeg(rr)}if(function cleanup(){var er=lv.elem.pathSegList,tr=er.numberOfItems,rr=function remItems(tr,rr){for(;rr--;)er.removeItem(tr)};if(tr<=1)return!0;for(;tr--;){var nr=er.getItem(tr);if(1===nr.pathSegType){var ar=er.getItem(tr-1),ir=er.getItem(tr-2);if(2===ar.pathSegType){rr(tr-1,2),cleanup();break}if(2===ir.pathSegType){rr(tr-2,3),cleanup();break}}else if(2===nr.pathSegType&&tr>0){var or=er.getItem(tr-1).pathSegType;if(2===or){rr(tr-1,1),cleanup();break}if(1===or&&er.numberOfItems-1===tr){rr(tr,1),cleanup();break}}}return!1}(),lv.elem.pathSegList.numberOfItems<=1)return Rv.toSelectMode(lv.elem),void cv.canvas.deleteSelectedElements();if(lv.init(),lv.clearSelection(),window.opera){var nr=tv(lv.elem);nr.attr("d",nr.attr("d"))}lv.endChanges("Delete path node(s)")}},smoothPolylineIntoPath:function smoothPolylineIntoPath(er){var tr,rr=er.points,nr=rr.numberOfItems;if(nr>=4){var ar=rr.getItem(0),ir=null,or=[];for(or.push(["M",ar.x,",",ar.y," C"].join("")),tr=1;tr<=nr-4;tr+=3){var sr=rr.getItem(tr),lr=rr.getItem(tr+1),cr=rr.getItem(tr+2);if(ir){var ur=wv(ir,sr,ar);if(ur&&2===ur.length){var dr=or[or.length-1].split(",");dr[2]=ur[0].x,dr[3]=ur[0].y,or[or.length-1]=dr.join(","),sr=ur[1]}}or.push([sr.x,sr.y,lr.x,lr.y,cr.x,cr.y].join(",")),ar=cr,ir=lr}for(or.push("L");tr<nr;){var hr=rr.getItem(tr);or.push([hr.x,hr.y].join(",")),tr++}or=or.join(" "),er=cv.addSVGElementFromJson({element:"path",curStyles:!0,attr:{id:cv.getId(),d:or,fill:"none"}})}return er},setSegType:function setSegType(er){lv.setSegType(er)},moveNode:function moveNode(er,tr){var rr=lv.selected_pts;if(rr.length){lv.storeD();var nr=lv.segs[rr[0]],ar={x:0,y:0};ar[er]=tr-nr.item[er],nr.move(ar.x,ar.y),lv.endChanges("Move path point")}},fixEnd:function fixEnd(er){for(var tr,rr=er.pathSegList,nr=rr.numberOfItems,ar=0;ar<nr;++ar){var ir=rr.getItem(ar);if(2===ir.pathSegType&&(tr=ir),1===ir.pathSegType){var or=rr.getItem(ar-1);if(or.x!==tr.x||or.y!==tr.y){var sr=er.createSVGPathSegLinetoAbs(tr.x,tr.y);dv(er,sr,ar),Rv.fixEnd(er);break}}}wd()&&cv.resetD(er)},convertPath:Lv}),Mv=jQuery,Qv=function(){function Layer(er,tr,rr){if(_classCallCheck(this,Layer),this.name_=er,this.group_=rr?null:tr,rr){var nr=rr.ownerDocument;this.group_=nr.createElementNS(Yu.SVG,"g");var ar=nr.createElementNS(Yu.SVG,"title");ar.textContent=er,this.group_.append(ar),tr?Mv(tr).after(this.group_):rr.append(this.group_)}addLayerClass(this.group_),RA(this.group_,(function(er){er.setAttribute("style","pointer-events:inherit")})),this.group_.setAttribute("style",rr?"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(er){var tr=void 0===er||er?"inline":"none";this.group_.getAttribute("display")!==tr&&this.group_.setAttribute("display",tr)}},{key:"isVisible",value:function isVisible(){return"none"!==this.group_.getAttribute("display")}},{key:"getOpacity",value:function getOpacity(){var er=this.group_.getAttribute("opacity");return of(er)?1:Number.parseFloat(er)}},{key:"setOpacity",value:function setOpacity(er){"number"==typeof er&&er>=0&&er<=1&&this.group_.setAttribute("opacity",er)}},{key:"appendChildren",value:function appendChildren(er){var tr,rr=_createForOfIteratorHelper(er);try{for(rr.s();!(tr=rr.n()).done;){var nr=tr.value;this.group_.append(nr)}}catch(er){rr.e(er)}finally{rr.f()}}},{key:"getTitleElement",value:function getTitleElement(){for(var er=this.group_.childNodes.length,tr=0;tr<er;++tr){var rr=this.group_.childNodes.item(tr);if(rr&&"title"===rr.tagName)return rr}return null}},{key:"setName",value:function setName(er,tr){var rr=this.name_;er=LA(er);var nr=this.getTitleElement();return nr?(Mv(nr).empty(),nr.textContent=er,this.name_=er,tr&&tr.changeElement(nr,{"#text":rr}),this.name_):null}},{key:"removeGroup",value:function removeGroup(){var er=this.group_;return this.group_.remove(),this.group_=void 0,er}}]),Layer}();function addLayerClass(er){var tr=er.getAttribute("class");of(tr)||!tr.length?er.setAttribute("class",Qv.CLASS_NAME):Qv.CLASS_REGEX.test(tr)||er.setAttribute("class",tr+" "+Qv.CLASS_NAME)}Qv.CLASS_NAME="layer",Qv.CLASS_REGEX=new RegExp("(\\s|^)"+Qv.CLASS_NAME+"(\\s|$)");var Ov=function(){function HistoryRecordingService(er){_classCallCheck(this,HistoryRecordingService),this.undoManager_=er,this.currentBatchCommand_=null,this.batchCommandStack_=[]}return _createClass(HistoryRecordingService,[{key:"startBatchCommand",value:function startBatchCommand(er){return this.undoManager_?(this.currentBatchCommand_=new $_(er),this.batchCommandStack_.push(this.currentBatchCommand_),this):this}},{key:"endBatchCommand",value:function endBatchCommand(){if(!this.undoManager_)return this;if(this.currentBatchCommand_){var er=this.currentBatchCommand_;this.batchCommandStack_.pop();var tr=this.batchCommandStack_.length;this.currentBatchCommand_=tr?this.batchCommandStack_[tr-1]:null,this.addCommand_(er)}return this}},{key:"moveElement",value:function moveElement(er,tr,rr,nr){return this.undoManager_?(this.addCommand_(new W_(er,tr,rr,nr)),this):this}},{key:"insertElement",value:function insertElement(er,tr){return this.undoManager_?(this.addCommand_(new X_(er,tr)),this):this}},{key:"removeElement",value:function removeElement(er,tr,rr,nr){return this.undoManager_?(this.addCommand_(new Y_(er,tr,rr,nr)),this):this}},{key:"changeElement",value:function changeElement(er,tr,rr){return this.undoManager_?(this.addCommand_(new J_(er,tr,rr)),this):this}},{key:"addCommand_",value:function addCommand_(er){if(!this.undoManager_)return this;this.currentBatchCommand_?this.currentBatchCommand_.addSubCommand(er):this.undoManager_.addCommandToHistory(er)}}]),HistoryRecordingService}();Ov.NO_HISTORY=new Ov;var Dv=jQueryPluginSVG(jQuery),jv=jQuery,Hv="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use".split(","),Gv=1,Vv=2,zv=0,Kv=[];function historyRecordingService(er){return er||new Ov(qv.undoMgr)}function findLayerNameInGroup(er){return jv("title",er).text()||(function isOpera(){return od}()&&er.querySelectorAll?jv(er.querySelectorAll("title")).text():"")}function getNewLayerName(er){for(var tr=1;er.includes("Layer "+tr);)tr++;return"Layer "+tr}var qv,Wv=function(){function Drawing(er,tr){if(_classCallCheck(this,Drawing),!er||!er.tagName||!er.namespaceURI||"svg"!==er.tagName||er.namespaceURI!==Yu.SVG)throw new Error("Error: svgedit.draw.Drawing instance initialized without a <svg> element");this.svgElem_=er,this.obj_num=0,this.idPrefix=tr||"svg_",this.releasedNums=[],this.all_layers=[],this.layer_map={},this.current_layer=null,this.nonce_="";var rr=this.svgElem_.getAttributeNS(Yu.SE,"nonce");rr&&zv!==Vv?this.nonce_=rr:zv===Gv&&this.setNonce(Math.floor(100001*Math.random()))}return _createClass(Drawing,[{key:"getElem_",value:function getElem_(er){return this.svgElem_.querySelector?this.svgElem_.querySelector("#"+er):jv(this.svgElem_).find("[id="+er+"]")[0]}},{key:"getSvgElem",value:function getSvgElem(){return this.svgElem_}},{key:"getNonce",value:function getNonce(){return this.nonce_}},{key:"setNonce",value:function setNonce(er){this.svgElem_.setAttributeNS(Yu.XMLNS,"xmlns:se",Yu.SE),this.svgElem_.setAttributeNS(Yu.SE,"se:nonce",er),this.nonce_=er}},{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 er=this.obj_num,tr=!1;this.releasedNums.length>0?(this.obj_num=this.releasedNums.pop(),tr=!0):this.obj_num++;for(var rr=this.getId();this.getElem_(rr);)tr&&(this.obj_num=er,tr=!1),this.obj_num++,rr=this.getId();return tr&&(this.obj_num=er),rr}},{key:"releaseId",value:function releaseId(er){var tr=this.idPrefix+(this.nonce_?this.nonce_+"_":"");if("string"!=typeof er||!er.startsWith(tr))return!1;var rr=Number.parseInt(er.substr(tr.length));return!("number"!=typeof rr||rr<=0||this.releasedNums.includes(rr))&&(this.releasedNums.push(rr),!0)}},{key:"getNumLayers",value:function getNumLayers(){return this.all_layers.length}},{key:"hasLayer",value:function hasLayer(er){return void 0!==this.layer_map[er]}},{key:"getLayerName",value:function getLayerName(er){return er>=0&&er<this.getNumLayers()?this.all_layers[er].getName():""}},{key:"getCurrentLayer",value:function getCurrentLayer(){return this.current_layer?this.current_layer.getGroup():null}},{key:"getLayerByName",value:function getLayerByName(er){var tr=this.layer_map[er];return tr?tr.getGroup():null}},{key:"getCurrentLayerName",value:function getCurrentLayerName(){return this.current_layer?this.current_layer.getName():""}},{key:"setCurrentLayerName",value:function setCurrentLayerName(er,tr){var rr=null;if(this.current_layer){var nr=this.current_layer.getName();(rr=this.current_layer.setName(er,tr))&&(delete this.layer_map[nr],this.layer_map[rr]=this.current_layer)}return rr}},{key:"setCurrentLayerPosition",value:function setCurrentLayerPosition(er){var tr,rr=this.getNumLayers();if(!this.current_layer||er<0||er>=rr)return null;for(tr=0;tr<rr&&this.all_layers[tr]!==this.current_layer;++tr);if(tr===rr)return null;if(tr!==er){var nr=this.current_layer.getGroup(),ar=nr.nextSibling,ir=null;return er>tr?er<rr-1&&(ir=this.all_layers[er+1].getGroup()):ir=this.all_layers[er].getGroup(),this.svgElem_.insertBefore(nr,ir),this.identifyLayers(),this.setCurrentLayer(this.getLayerName(er)),{currentGroup:nr,oldNextSibling:ar}}return null}},{key:"mergeLayer",value:function mergeLayer(er){var tr=this.current_layer.getGroup(),rr=jv(tr).prev()[0];if(rr){er.startBatchCommand("Merge Layer");var nr=tr.nextSibling;for(er.removeElement(tr,nr,this.svgElem_);tr.firstChild;){var ar=tr.firstChild;if("title"!==ar.localName){var ir=ar.nextSibling;rr.append(ar),er.moveElement(ar,ir,tr)}else er.removeElement(ar,ar.nextSibling,tr),ar.remove()}this.current_layer.removeGroup();var or=this.all_layers.indexOf(this.current_layer);if(or>0){var sr=this.current_layer.getName();this.current_layer=this.all_layers[or-1],this.all_layers.splice(or,1),delete this.layer_map[sr]}er.endBatchCommand()}}},{key:"mergeAllLayers",value:function mergeAllLayers(er){for(this.current_layer=this.all_layers[this.all_layers.length-1],er.startBatchCommand("Merge all Layers");this.all_layers.length>1;)this.mergeLayer(er);er.endBatchCommand()}},{key:"setCurrentLayer",value:function setCurrentLayer(er){var tr=this.layer_map[er];return!!tr&&(this.current_layer&&this.current_layer.deactivate(),this.current_layer=tr,this.current_layer.activate(),!0)}},{key:"deleteCurrentLayer",value:function deleteCurrentLayer(){if(this.current_layer&&this.getNumLayers()>1){var er=this.current_layer.removeGroup();return this.identifyLayers(),er}return null}},{key:"identifyLayers",value:function identifyLayers(){this.all_layers=[],this.layer_map={};for(var er=this.svgElem_.childNodes.length,tr=[],rr=[],nr=null,ar=!1,ir=0;ir<er;++ir){var or=this.svgElem_.childNodes.item(ir);if(or&&1===or.nodeType)if("g"===or.tagName){ar=!0;var sr=findLayerNameInGroup(or);sr?(rr.push(sr),nr=new Qv(sr,or),this.all_layers.push(nr),this.layer_map[sr]=nr):tr.push(or)}else Hv.includes(or.nodeName)&&tr.push(or)}tr.length>0||!ar?((nr=new Qv(getNewLayerName(rr),null,this.svgElem_)).appendChildren(tr),this.all_layers.push(nr),this.layer_map[name]=nr):nr.activate(),this.current_layer=nr}},{key:"createLayer",value:function createLayer(er,tr){this.current_layer&&this.current_layer.deactivate(),(null==er||""===er||this.layer_map[er])&&(er=getNewLayerName(Object.keys(this.layer_map)));var rr=new Qv(er,null,this.svgElem_);return tr&&(tr.startBatchCommand("Create Layer"),tr.insertElement(rr.getGroup()),tr.endBatchCommand()),this.all_layers.push(rr),this.layer_map[er]=rr,this.current_layer=rr,rr.getGroup()}},{key:"cloneLayer",value:function cloneLayer(er,tr){var rr=this;if(!this.current_layer)return null;this.current_layer.deactivate(),(null==er||""===er||this.layer_map[er])&&(er=getNewLayerName(Object.keys(this.layer_map)));var nr=this.current_layer.getGroup(),ar=new Qv(er,nr,this.svgElem_),ir=ar.getGroup();_toConsumableArray(nr.childNodes).forEach((function(er){"title"!==er.localName&&ir.append(rr.copyElem(er))})),tr&&(tr.startBatchCommand("Duplicate Layer"),tr.insertElement(ir),tr.endBatchCommand());var or=this.all_layers.indexOf(this.current_layer);return or>=0?this.all_layers.splice(or+1,0,ar):this.all_layers.push(ar),this.layer_map[er]=ar,this.current_layer=ar,ir}},{key:"getLayerVisibility",value:function getLayerVisibility(er){var tr=this.layer_map[er];return!!tr&&tr.isVisible()}},{key:"setLayerVisibility",value:function setLayerVisibility(er,tr){if("boolean"!=typeof tr)return null;var rr=this.layer_map[er];return rr?(rr.setVisible(tr),rr.getGroup()):null}},{key:"getLayerOpacity",value:function getLayerOpacity(er){var tr=this.layer_map[er];return tr?tr.getOpacity():null}},{key:"setLayerOpacity",value:function setLayerOpacity(er,tr){if(!("number"!=typeof tr||tr<0||tr>1)){var rr=this.layer_map[er];rr&&rr.setOpacity(tr)}}},{key:"copyElem",value:function copyElem$1(er){var tr=this;return function copyElem(er,tr){var rr=document.createElementNS(er.namespaceURI,er.nodeName);if(Dv.each(er.attributes,(function(er,tr){"-moz-math-font-style"!==tr.localName&&rr.setAttributeNS(tr.namespaceURI,tr.nodeName,tr.value)})),rr.removeAttribute("id"),rr.id=tr(),wd()&&"path"===er.nodeName){var nr=Lv(er);rr.setAttribute("d",nr)}if(Dv.each(er.childNodes,(function(er,nr){switch(nr.nodeType){case 1:rr.append(copyElem(nr,tr));break;case 3:rr.textContent=nr.nodeValue}})),Dv(er).data("gsvg"))Dv(rr).data("gsvg",rr.firstChild);else if(Dv(er).data("symbol")){var ar=Dv(er).data("symbol");Dv(rr).data("ref",ar).data("symbol",ar)}else"image"===rr.tagName&&af(rr);return rr}(er,(function getNextIdClosure(){return tr.getNextId()}))}}]),Drawing}(),Xv=function randomizeIds(er,tr){(zv=!1===er?Vv:Gv)!==Gv||tr.getNonce()?zv===Vv&&tr.getNonce()&&tr.clearNonce():tr.setNonce(Math.floor(100001*Math.random()))},Yv=function identifyLayers(){sy(),qv.getCurrentDrawing().identifyLayers()},Jv=function createLayer(er,tr){var rr=qv.getCurrentDrawing().createLayer(er,historyRecordingService(tr));qv.clearSelection(),qv.call("changed",[rr])},$v=function cloneLayer(er,tr){var rr=qv.getCurrentDrawing().cloneLayer(er,historyRecordingService(tr));qv.clearSelection(),sy(),qv.call("changed",[rr])},Zv=function deleteCurrentLayer(){var er=qv.getCurrentDrawing().getCurrentLayer(),tr=er.nextSibling,rr=er.parentNode;if(er=qv.getCurrentDrawing().deleteCurrentLayer()){var nr=new $_("Delete Layer");return nr.addSubCommand(new Y_(er,tr,rr)),qv.addCommandToHistory(nr),qv.clearSelection(),qv.call("changed",[rr]),!0}return!1},ey=function setCurrentLayer(er){var tr=qv.getCurrentDrawing().setCurrentLayer(LA(er));return tr&&qv.clearSelection(),tr},ty=function renameCurrentLayer(er){var tr=qv.getCurrentDrawing(),rr=tr.getCurrentLayer();if(rr&&tr.setCurrentLayerName(er,historyRecordingService()))return qv.call("changed",[rr]),!0;return!1},ry=function setCurrentLayerPosition(er){var tr=qv.getCurrentDrawing().setCurrentLayerPosition(er);return!!tr&&(qv.addCommandToHistory(new W_(tr.currentGroup,tr.oldNextSibling,qv.getSVGContent())),!0)},ny=function setLayerVisibility(er,tr){var rr=qv.getCurrentDrawing(),nr=rr.getLayerVisibility(er),ar=rr.setLayerVisibility(er,tr);if(!ar)return!1;var ir=nr?"inline":"none";return qv.addCommandToHistory(new J_(ar,{display:ir},"Layer Visibility")),ar===rr.getCurrentLayer()&&(qv.clearSelection(),qv.pathActions.clear()),!0},ay=function moveSelectedToLayer(er){var tr=qv.getCurrentDrawing().getLayerByName(er);if(!tr)return!1;for(var rr=new $_("Move Elements to Layer"),nr=qv.getSelectedElements(),ar=nr.length;ar--;){var ir=nr[ar];if(ir){var or=ir.nextSibling,sr=ir.parentNode;tr.append(ir),rr.addSubCommand(new W_(ir,or,sr))}}return qv.addCommandToHistory(rr),!0},iy=function mergeLayer(er){qv.getCurrentDrawing().mergeLayer(historyRecordingService(er)),qv.clearSelection(),sy(),qv.changeSVGContent()},oy=function mergeAllLayers(er){qv.getCurrentDrawing().mergeAllLayers(historyRecordingService(er)),qv.clearSelection(),sy(),qv.changeSVGContent()},sy=function leaveContext(){var er=Kv.length;if(er){for(var tr=0;tr<er;tr++){var rr=Kv[tr],nr=qv.elData(rr,"orig_opac");1!==nr?rr.setAttribute("opacity",nr):rr.removeAttribute("opacity"),rr.setAttribute("style","pointer-events: inherit")}Kv=[],qv.clearSelection(!0),qv.call("contextset",null)}qv.setCurrentGroup(null)},ly=function setContext(er){sy(),"string"==typeof er&&(er=ef(er)),qv.setCurrentGroup(er),jv(er).parentsUntil("#svgcontent").andSelf().siblings().each((function(){var er=this.getAttribute("opacity")||1;qv.elData(this,"orig_opac",er),this.setAttribute("opacity",.33*er),this.setAttribute("style","pointer-events: none"),Kv.push(this)})),qv.clearSelection(),qv.call("contextset",qv.getCurrentGroup())},cy=Ju(),uy={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:[]},dy={};Object.entries(uy).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1],ar={};Object.entries(nr).forEach((function(er){var tr=_slicedToArray(er,2),rr=(tr[0],tr[1]);if(rr.includes(":")){var nr=rr.split(":");ar[nr[1]]=Yu[nr[0].toUpperCase()]}else ar[rr]="xmlns"===rr?Yu.XMLNS:null})),dy[rr]=ar}));var hy,py,Ay,fy,gy=function sanitizeSvg(er){if(3===er.nodeType&&(er.nodeValue=er.nodeValue.replace(/^\s+|\s+$/g,""),er.nodeValue.length||er.remove()),1===er.nodeType){var tr=er.ownerDocument,rr=er.parentNode;if(tr&&rr){var nr=uy[er.nodeName],ar=dy[er.nodeName];if(void 0!==nr){for(var ir=[],or=er.attributes.length;or--;){var sr=er.attributes.item(or),lr=sr.nodeName,cr=sr.localName,ur=sr.namespaceURI;if({}.hasOwnProperty.call(ar,cr)&&ur===ar[cr]&&ur!==Yu.XMLNS||ur===Yu.XMLNS&&cy[sr.value]||((lr.startsWith("se:")||lr.startsWith("data-"))&&ir.push([lr,sr.value]),er.removeAttributeNS(ur,cr)),kd())switch(lr){case"transform":case"gradientTransform":case"patternTransform":var dr=sr.value.replace(/(\d)-/g,"$1 -");er.setAttribute(lr,dr)}if("style"===lr){for(var hr=sr.value.split(";"),pr=hr.length;pr--;){var Ar=_slicedToArray(hr[pr].split(":"),2),fr=Ar[0],gr=Ar[1],mr=(fr||"").trim(),_r=(gr||"").trim();nr.includes(mr)&&er.setAttribute(mr,_r)}er.removeAttribute("style")}}Object.values(ir).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ar=rr[1];er.setAttributeNS(Yu.SE,nr,ar)}));var vr=QA(er);if(vr&&["filter","linearGradient","pattern","radialGradient","textPath","use"].includes(er.nodeName)&&"#"!==vr[0]&&(OA(er,""),er.removeAttributeNS(Yu.XLINK,"href")),"use"===er.nodeName&&!QA(er))return void er.remove();for(Object.values(["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"],(function(tr){var rr=er.getAttribute(tr);rr&&(rr=MA(rr))&&"#"!==rr[0]&&(er.setAttribute(tr,""),er.removeAttribute(tr))})),or=er.childNodes.length;or--;)sanitizeSvg(er.childNodes.item(or))}else{for(var yr=[];er.hasChildNodes();)yr.push(rr.insertBefore(er.firstChild,er));er.remove();for(var br=yr.length;br--;)sanitizeSvg(yr[br])}}}},my=jQuery,_y=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"],vy=null,yy=function remapElement(er,tr,rr){for(var nr=function remap(er,tr){return pA(er,tr,rr)},ar=function scalew(er){return rr.a*er},ir=function scaleh(er){return rr.d*er},or=vy.getGridSnapping()&&"svg"===er.parentNode.parentNode.localName,sr=function finishUp(){or&&Object.entries(tr).forEach((function(er){var rr=_slicedToArray(er,2),nr=rr[0],ar=rr[1];tr[nr]=nf(ar)})),tf(er,tr,0,!0)},lr=HA(er),cr=0;cr<2;cr++){var ur=0===cr?"fill":"stroke",dr=er.getAttribute(ur);if(dr&&dr.startsWith("url(")&&(rr.a<0||rr.d<0)){var hr=ZA(dr).cloneNode(!0);if(rr.a<0){var pr=hr.getAttribute("x1"),Ar=hr.getAttribute("x2");hr.setAttribute("x1",-(pr-1)),hr.setAttribute("x2",-(Ar-1))}if(rr.d<0){var fr=hr.getAttribute("y1"),gr=hr.getAttribute("y2");hr.setAttribute("y1",-(fr-1)),hr.setAttribute("y2",-(gr-1))}hr.id=vy.getDrawing().getNextId(),DA().append(hr),er.setAttribute(ur,"url(#"+hr.id+")")}}var mr=er.tagName;if("g"===mr||"text"===mr||"tspan"===mr||"use"===mr)if(1!==rr.a||0!==rr.b||0!==rr.c||1!==rr.d||0===rr.e&&0===rr.f){var _r=$p(er),vr=vy.getSVGRoot().createSVGTransform();vr.setMatrix(fA(_A(_r).matrix,rr)),_r.clear(),_r.appendItem(vr)}else{var yr=_A(er).matrix,br=fA(yr.inverse(),rr,yr);tr.x=Number.parseFloat(tr.x)+br.e,tr.y=Number.parseFloat(tr.y)+br.f}switch(mr){case"foreignObject":case"rect":case"image":if("image"===mr&&(rr.a<0||rr.d<0)){var wr=$p(er),kr=vy.getSVGRoot().createSVGTransform();kr.setMatrix(fA(_A(wr).matrix,rr)),wr.clear(),wr.appendItem(kr)}else{var xr=nr(tr.x,tr.y);tr.width=ar(tr.width),tr.height=ir(tr.height),tr.x=xr.x+Math.min(0,tr.width),tr.y=xr.y+Math.min(0,tr.height),tr.width=Math.abs(tr.width),tr.height=Math.abs(tr.height)}sr();break;case"ellipse":var Sr=nr(tr.cx,tr.cy);tr.cx=Sr.x,tr.cy=Sr.y,tr.rx=ar(tr.rx),tr.ry=ir(tr.ry),tr.rx=Math.abs(tr.rx),tr.ry=Math.abs(tr.ry),sr();break;case"circle":var Cr=nr(tr.cx,tr.cy);tr.cx=Cr.x,tr.cy=Cr.y;var Br=mA(lr.x,lr.y,lr.width,lr.height,rr),Er=Br.tr.x-Br.tl.x,Nr=Br.bl.y-Br.tl.y;tr.r=Math.min(Er/2,Nr/2),tr.r&&(tr.r=Math.abs(tr.r)),sr();break;case"line":var Lr=nr(tr.x1,tr.y1),Pr=nr(tr.x2,tr.y2);tr.x1=Lr.x,tr.y1=Lr.y,tr.x2=Pr.x,tr.y2=Pr.y;case"text":case"tspan":case"use":sr();break;case"g":var Tr=my(er).data("gsvg");Tr&&tf(Tr,tr,0,!0);break;case"polyline":case"polygon":for(var Fr=tr.points.length,Ur=0;Ur<Fr;++Ur){var Ir=tr.points[Ur],Rr=nr(Ir.x,Ir.y),Mr=Rr.x,Qr=Rr.y;tr.points[Ur].x=Mr,tr.points[Ur].y=Qr}for(var Or="",Dr=0;Dr<Fr;++Dr){var jr=tr.points[Dr];Or+=jr.x+","+jr.y+" "}er.setAttribute("points",Or);break;case"path":var Hr=er.pathSegList,Gr=Hr.numberOfItems;tr.d=[];for(var Vr=0;Vr<Gr;++Vr){var zr=Hr.getItem(Vr);tr.d[Vr]={type:zr.pathSegType,x:zr.x,y:zr.y,x1:zr.x1,y1:zr.y1,x2:zr.x2,y2:zr.y2,r1:zr.r1,r2:zr.r2,angle:zr.angle,largeArcFlag:zr.largeArcFlag,sweepFlag:zr.sweepFlag}}Gr=tr.d.length;var Kr=tr.d[0],qr=nr(Kr.x,Kr.y);tr.d[0].x=qr.x,tr.d[0].y=qr.y;for(var Wr=1;Wr<Gr;++Wr){var Xr=tr.d[Wr];if(Xr.type%2==0){var Yr=nr(void 0!==Xr.x?Xr.x:qr.x,void 0!==Xr.y?Xr.y:qr.y),Jr=nr(Xr.x1,Xr.y1),$r=nr(Xr.x2,Xr.y2);Xr.x=Yr.x,Xr.y=Yr.y,Xr.x1=Jr.x,Xr.y1=Jr.y,Xr.x2=$r.x,Xr.y2=$r.y,Xr.r1=ar(Xr.r1),Xr.r2=ir(Xr.r2)}else Xr.x=ar(Xr.x),Xr.y=ir(Xr.y),Xr.x1=ar(Xr.x1),Xr.y1=ir(Xr.y1),Xr.x2=ar(Xr.x2),Xr.y2=ir(Xr.y2),Xr.r1=ar(Xr.r1),Xr.r2=ir(Xr.r2)}var Zr="";Gr=tr.d.length;for(var Tn=0;Tn<Gr;++Tn){var Un=tr.d[Tn],Qn=Un.type;switch(Zr+=_y[Qn],Qn){case 13:case 12:Zr+=Un.x+" ";break;case 15:case 14:Zr+=Un.y+" ";break;case 3:case 5:case 19:case 2:case 4:case 18:Zr+=Un.x+","+Un.y+" ";break;case 7:case 6:Zr+=Un.x1+","+Un.y1+" "+Un.x2+","+Un.y2+" "+Un.x+","+Un.y+" ";break;case 9:case 8:Zr+=Un.x1+","+Un.y1+" "+Un.x+","+Un.y+" ";break;case 11:case 10:Zr+=Un.r1+","+Un.r2+" "+Un.angle+" "+Number(Un.largeArcFlag)+" "+Number(Un.sweepFlag)+" "+Un.x+","+Un.y+" ";break;case 17:case 16:Zr+=Un.x2+","+Un.y2+" "+Un.x+","+Un.y+" "}}er.setAttribute("d",Zr)}},by=jQueryPluginSVG(jQuery),wy=function updateClipPath(er,tr,rr){var nr=ZA(er).firstChild,ar=$p(nr),ir=hy.getSVGRoot().createSVGTransform();ir.setTranslate(tr,rr),ar.appendItem(ir),ky(nr)},ky=function recalculateDimensions(er){if(of(er))return null;if("svg"===er.nodeName&&navigator.userAgent.includes("Firefox/20"))return null;var tr=hy.getSVGRoot(),rr=$p(er);if(rr&&rr.numberOfItems>0){for(var nr=rr.numberOfItems,ar=nr;nr--;){var ir=rr.getItem(nr);if(0===ir.type)rr.removeItem(nr);else if(1===ir.type){if(AA(ir.matrix)){if(1===ar)return er.removeAttribute("transform"),null;rr.removeItem(nr)}}else 4===ir.type&&0===ir.angle&&rr.removeItem(nr)}if(1===rr.numberOfItems&&$A(er))return null}if(!rr||0===rr.numberOfItems)return er.setAttribute("transform",""),er.removeAttribute("transform"),null;if(rr){for(var or=[],sr=rr.numberOfItems;sr--;){var lr=rr.getItem(sr);1===lr.type?or.push([lr.matrix,sr]):or.length&&(or=[])}if(2===or.length){var cr=tr.createSVGTransformFromMatrix(fA(or[1][0],or[0][0]));rr.removeItem(or[0][1]),rr.removeItem(or[1][1]),rr.insertItemBefore(cr,or[1][1])}if((sr=rr.numberOfItems)>=2&&1===rr.getItem(sr-2).type&&2===rr.getItem(sr-1).type){var ur=tr.createSVGTransform(),dr=fA(rr.getItem(sr-2).matrix,rr.getItem(sr-1).matrix);ur.setMatrix(dr),rr.removeItem(sr-2),rr.removeItem(sr-2),rr.appendItem(ur)}}switch(er.tagName){case"line":case"polyline":case"polygon":case"path":break;default:if(1===rr.numberOfItems&&1===rr.getItem(0).type||2===rr.numberOfItems&&1===rr.getItem(0).type&&4===rr.getItem(0).type)return null}var hr,pr,Ar=by(er).data("gsvg"),fr=new $_("Transform"),gr={},mr=null,_r=[];switch(er.tagName){case"line":_r=["x1","y1","x2","y2"];break;case"circle":_r=["cx","cy","r"];break;case"ellipse":_r=["cx","cy","rx","ry"];break;case"foreignObject":case"rect":case"image":_r=["width","height","x","y"];break;case"use":case"text":case"tspan":_r=["x","y"];break;case"polygon":case"polyline":(mr={}).points=er.getAttribute("points");var vr=er.points,yr=vr.numberOfItems;gr.points=new Array(yr);for(var br=0;br<yr;++br){var wr=vr.getItem(br);gr.points[br]={x:wr.x,y:wr.y}}break;case"path":(mr={}).d=er.getAttribute("d"),gr.d=er.getAttribute("d")}if(_r.length?(gr=by(er).attr(_r),by.each(gr,(function(er,tr){gr[er]=sA(er,tr)}))):Ar&&(gr={x:by(Ar).attr("x")||0,y:by(Ar).attr("y")||0}),of(mr)&&(mr=by.extend(!0,{},gr),by.each(mr,(function(er,tr){mr[er]=sA(er,tr)}))),mr.transform=hy.getStartTransform()||"","g"===er.tagName&&!Ar||"a"===er.tagName){var kr=HA(er);hr={x:kr.x+kr.width/2,y:kr.y+kr.height/2},pr=pA(kr.x+kr.width/2,kr.y+kr.height/2,_A(rr).matrix);var xr=$A(er);if(xr){var Sr,Cr=xr*Math.PI/180;Sr=Math.abs(Cr)>1e-10?Math.sin(Cr)/(1-Math.cos(Cr)):2/Cr;for(var Br=0;Br<rr.numberOfItems;++Br){var Er=rr.getItem(Br);if(4===Er.type){var Nr=Er.matrix;hr.y=(Sr*Nr.e+Nr.f)/2,hr.x=(Nr.e-Sr*Nr.f)/2,rr.removeItem(Br);break}}}var Lr,Pr,Tr=rr.numberOfItems,Fr=0,Ur=0,Ir=0;if(Tr&&(Lr=rr.getItem(0).matrix),Tr>=3&&3===rr.getItem(Tr-2).type&&2===rr.getItem(Tr-3).type&&2===rr.getItem(Tr-1).type){Ir=3;for(var Rr=rr.getItem(Tr-3).matrix,Mr=rr.getItem(Tr-2).matrix,Qr=rr.getItem(Tr-1).matrix,Or=er.childNodes,Dr=Or.length;Dr--;){var jr=Or.item(Dr);if(Fr=0,Ur=0,1===jr.nodeType){var Hr=$p(jr);if(!Hr)continue;var Gr=_A(Hr).matrix,Vr=$A(jr);if(Pr=hy.getStartTransform(),hy.setStartTransform(jr.getAttribute("transform")),Vr||gA(Hr)){var zr=tr.createSVGTransform();zr.setMatrix(fA(Rr,Mr,Qr,Gr)),Hr.clear(),Hr.appendItem(zr)}else{var Kr=fA(Gr.inverse(),Qr,Gr),qr=tr.createSVGMatrix();qr.e=-Kr.e,qr.f=-Kr.f;var Wr=fA(qr.inverse(),Gr.inverse(),Rr,Mr,Qr,Gr,Kr.inverse()),Xr=tr.createSVGTransform(),Yr=tr.createSVGTransform(),Jr=tr.createSVGTransform();Xr.setTranslate(Kr.e,Kr.f),Yr.setScale(Wr.a,Wr.d),Jr.setTranslate(qr.e,qr.f),Hr.appendItem(Jr),Hr.appendItem(Yr),Hr.appendItem(Xr)}fr.addSubCommand(recalculateDimensions(jr)),hy.setStartTransform(Pr)}}rr.removeItem(Tr-1),rr.removeItem(Tr-2),rr.removeItem(Tr-3)}else if(Tr>=3&&1===rr.getItem(Tr-1).type){Ir=3;var $r=_A(rr).matrix,Zr=tr.createSVGTransform();Zr.setMatrix($r),rr.clear(),rr.appendItem(Zr)}else if((1===Tr||Tr>1&&3!==rr.getItem(1).type)&&2===rr.getItem(0).type){Ir=2;var Tn=_A(rr).matrix;rr.removeItem(0);var Un=_A(rr).matrix.inverse(),Qn=fA(Un,Tn);if(Fr=Qn.e,Ur=Qn.f,0!==Fr||0!==Ur){for(var Dn=er.childNodes,Hn=Dn.length,Gn=[];Hn--;){var Vn=Dn.item(Hn);if(1===Vn.nodeType){if(Vn.getAttribute("clip-path")){var zn=Vn.getAttribute("clip-path");Gn.includes(zn)||(wy(zn,Fr,Ur),Gn.push(zn))}Pr=hy.getStartTransform(),hy.setStartTransform(Vn.getAttribute("transform"));var Kn=$p(Vn);if(Kn){var Wn=tr.createSVGTransform();Wn.setTranslate(Fr,Ur),Kn.numberOfItems?Kn.insertItemBefore(Wn,0):Kn.appendItem(Wn),fr.addSubCommand(recalculateDimensions(Vn));for(var Xn=er.getElementsByTagNameNS(Yu.SVG,"use"),Yn="#"+Vn.id,Jn=Xn.length;Jn--;){var $n=Xn.item(Jn);if(Yn===QA($n)){var Zn=tr.createSVGTransform();Zn.setTranslate(-Fr,-Ur),$p($n).insertItemBefore(Zn,0),fr.addSubCommand(recalculateDimensions($n))}}hy.setStartTransform(Pr)}}}hy.setStartTransform(Pr)}}else{if(1!==Tr||1!==rr.getItem(0).type||xr){if(xr){var ea=tr.createSVGTransform();ea.setRotate(xr,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(ea,0):rr.appendItem(ea)}return 0===rr.numberOfItems&&er.removeAttribute("transform"),null}Ir=1;for(var ta=rr.getItem(0).matrix,ra=er.childNodes,na=ra.length;na--;){var aa=ra.item(na);if(1===aa.nodeType){Pr=hy.getStartTransform(),hy.setStartTransform(aa.getAttribute("transform"));var ia=$p(aa);if(!ia)continue;var oa=fA(ta,_A(ia).matrix),sa=tr.createSVGTransform();sa.setMatrix(oa),ia.clear(),ia.appendItem(sa,0),fr.addSubCommand(recalculateDimensions(aa)),hy.setStartTransform(Pr);var la=aa.getAttribute("stroke-width");if("none"!==aa.getAttribute("stroke")&&!isNaN(la)){var ca=(Math.abs(oa.a)+Math.abs(oa.d))/2;aa.setAttribute("stroke-width",la*ca)}}}rr.clear()}if(2===Ir){if(xr){pr={x:hr.x+Lr.e,y:hr.y+Lr.f};var ua=tr.createSVGTransform();ua.setRotate(xr,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(ua,0):rr.appendItem(ua)}}else if(3===Ir){var da=_A(rr).matrix,ha=tr.createSVGTransform();ha.setRotate(xr,hr.x,hr.y);var pa=ha.matrix,Aa=tr.createSVGTransform();Aa.setRotate(xr,pr.x,pr.y);var fa=Aa.matrix.inverse(),ga=da.inverse(),ma=fA(ga,fa,pa,da);if(Fr=ma.e,Ur=ma.f,0!==Fr||0!==Ur)for(var _a=er.childNodes,va=_a.length;va--;){var ya=_a.item(va);if(1===ya.nodeType){Pr=hy.getStartTransform(),hy.setStartTransform(ya.getAttribute("transform"));var ba=$p(ya),wa=tr.createSVGTransform();wa.setTranslate(Fr,Ur),ba.numberOfItems?ba.insertItemBefore(wa,0):ba.appendItem(wa),fr.addSubCommand(recalculateDimensions(ya)),hy.setStartTransform(Pr)}}xr&&(rr.numberOfItems?rr.insertItemBefore(Aa,0):rr.appendItem(Aa))}}else{var ka,xa=HA(er);if(!xa&&"path"!==er.tagName)return null;var Sa=$A(er);if(Sa){hr={x:xa.x+xa.width/2,y:xa.y+xa.height/2},pr=pA(xa.x+xa.width/2,xa.y+xa.height/2,_A(rr).matrix);for(var Ca=Sa*Math.PI/180,Ba=Math.abs(Ca)>1e-10?Math.sin(Ca)/(1-Math.cos(Ca)):2/Ca,Ea=0;Ea<rr.numberOfItems;++Ea){var Na=rr.getItem(Ea);if(4===Na.type){var La=Na.matrix;hr.y=(Ba*La.e+La.f)/2,hr.x=(La.e-Ba*La.f)/2,rr.removeItem(Ea);break}}}var Pa=0,Ta=rr.numberOfItems;if(!wd()){var Fa=er.getAttribute("fill");if(Fa&&Fa.startsWith("url(")){var Ua=ZA(Fa),Ia="pattern";if(Ua.tagName!==Ia&&(Ia="gradient"),"userSpaceOnUse"===Ua.getAttribute(Ia+"Units")){ka=_A(rr).matrix;var Ra=$p(Ua),Ma=_A(Ra).matrix,Qa="matrix("+[(ka=fA(ka,Ma)).a,ka.b,ka.c,ka.d,ka.e,ka.f].join(",")+")";Ua.setAttribute(Ia+"Transform",Qa)}}}if(Ta>=3&&3===rr.getItem(Ta-2).type&&2===rr.getItem(Ta-3).type&&2===rr.getItem(Ta-1).type)Pa=3,ka=_A(rr,Ta-3,Ta-1).matrix,rr.removeItem(Ta-1),rr.removeItem(Ta-2),rr.removeItem(Ta-3);else if(4===Ta&&1===rr.getItem(Ta-1).type){Pa=3,ka=_A(rr).matrix;var Oa=tr.createSVGTransform();Oa.setMatrix(ka),rr.clear(),rr.appendItem(Oa),ka=tr.createSVGMatrix()}else if((1===Ta||Ta>1&&3!==rr.getItem(1).type)&&2===rr.getItem(0).type){Pa=2;var Da=rr.getItem(0).matrix,ja=_A(rr,1).matrix,Ha=ja.inverse();ka=fA(Ha,Da,ja),rr.removeItem(0)}else{if(1!==Ta||1!==rr.getItem(0).type||Sa){if(Sa){var Ga=tr.createSVGTransform();Ga.setRotate(Sa,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(Ga,0):rr.appendItem(Ga)}return 0===rr.numberOfItems&&er.removeAttribute("transform"),null}switch(ka=_A(rr).matrix,er.tagName){case"line":gr=by(er).attr(["x1","y1","x2","y2"]);case"polyline":case"polygon":if(gr.points=er.getAttribute("points"),gr.points){var Va=er.points,za=Va.numberOfItems;gr.points=new Array(za);for(var Ka=0;Ka<za;++Ka){var qa=Va.getItem(Ka);gr.points[Ka]={x:qa.x,y:qa.y}}}case"path":gr.d=er.getAttribute("d"),Pa=1,rr.clear()}}if(1!==Pa&&2!==Pa&&3!==Pa||yy(er,gr,ka),2===Pa){if(Sa){gA(rr)||(pr={x:hr.x+ka.e,y:hr.y+ka.f});var Wa=tr.createSVGTransform();Wa.setRotate(Sa,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(Wa,0):rr.appendItem(Wa)}if("text"===er.tagName)for(var Xa=er.childNodes,Ya=Xa.length;Ya--;){var Ja=Xa.item(Ya);if("tspan"===Ja.tagName){var $a={x:by(Ja).attr("x")||0,y:by(Ja).attr("y")||0};yy(Ja,$a,ka)}}}else if(3===Pa&&Sa){var Za=_A(rr).matrix,ei=tr.createSVGTransform();ei.setRotate(Sa,hr.x,hr.y);var ti=ei.matrix,ri=tr.createSVGTransform();ri.setRotate(Sa,pr.x,pr.y);var ni=ri.matrix.inverse(),ai=Za.inverse(),ii=fA(ai,ni,ti,Za);yy(er,gr,ii),Sa&&(rr.numberOfItems?rr.insertItemBefore(ri,0):rr.appendItem(ri))}}return 0===rr.numberOfItems&&er.removeAttribute("transform"),fr.addSubCommand(new J_(er,mr)),fr},xy=jQuery,Sy=Bd()?10:4,Cy=function(){function Selector(er,tr,rr){_classCallCheck(this,Selector),this.id=er,this.selectedElement=tr,this.locked=!0,this.selectorGroup=py.createSVGElement({element:"g",attr:{id:"selectorGroup"+this.id}}),this.selectorRect=this.selectorGroup.appendChild(py.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,rr)}return _createClass(Selector,[{key:"reset",value:function reset(er,tr){this.locked=!0,this.selectedElement=er,this.resize(tr),this.selectorGroup.setAttribute("display","inline")}},{key:"showGrips",value:function showGrips(er){var tr=er?"inline":"none";fy.selectorGripsGroup.setAttribute("display",tr);var rr=this.selectedElement;this.hasGrips=er,rr&&er&&(this.selectorGroup.append(fy.selectorGripsGroup),Selector.updateGripCursors($A(rr)))}},{key:"resize",value:function resize(er){var tr=this.selectorRect,rr=fy,nr=rr.selectorGrips,ar=this.selectedElement,ir=ar.getAttribute("stroke-width"),or=py.getCurrentZoom(),sr=1/or;"none"===ar.getAttribute("stroke")||isNaN(ir)||(sr+=ir/2);var lr=ar.tagName;"text"===lr&&(sr+=2/or);var cr=$p(ar),ur=_A(cr).matrix;if(ur.e*=or,ur.f*=or,er||(er=HA(ar)),"g"===lr&&!xy.data(ar,"gsvg")){var dr=WA([ar.childNodes]);dr&&(er=dr)}var hr=er.x,pr=er.y,Ar=er.width,fr=er.height;sr*=or;var gr=mA(hr*or,pr*or,Ar*or,fr*or,ur),mr=gr.aabox,_r=mr.x-sr,vr=mr.y-sr,yr=mr.width+2*sr,br=mr.height+2*sr,wr=_r+yr/2,kr=vr+br/2,xr=$A(ar);if(xr){var Sr=py.svgRoot().createSVGTransform();Sr.setRotate(-xr,wr,kr);var Cr=Sr.matrix;gr.tl=pA(gr.tl.x,gr.tl.y,Cr),gr.tr=pA(gr.tr.x,gr.tr.y,Cr),gr.bl=pA(gr.bl.x,gr.bl.y,Cr),gr.br=pA(gr.br.x,gr.br.y,Cr);var Br=gr.tl,Er=Br.x,Nr=Br.y,Lr=Br.x,Pr=Br.y,Tr=Math.min,Fr=Math.max;_r=Er=Tr(Er,Tr(gr.tr.x,Tr(gr.bl.x,gr.br.x)))-sr,vr=Nr=Tr(Nr,Tr(gr.tr.y,Tr(gr.bl.y,gr.br.y)))-sr,yr=(Lr=Fr(Lr,Fr(gr.tr.x,Fr(gr.bl.x,gr.br.x)))+sr)-Er,br=(Pr=Fr(Pr,Fr(gr.tr.y,Fr(gr.bl.y,gr.br.y)))+sr)-Nr}var Ur="M"+_r+","+vr+" L"+(_r+yr)+","+vr+" "+(_r+yr)+","+(vr+br)+" "+_r+","+(vr+br)+"z";tr.setAttribute("d",Ur);var Ir=xr?"rotate("+[xr,wr,kr].join(",")+")":"";this.selectorGroup.setAttribute("transform",Ir),this.gripCoords={nw:[_r,vr],ne:[_r+yr,vr],sw:[_r,vr+br],se:[_r+yr,vr+br],n:[_r+yr/2,vr],w:[_r,vr+br/2],e:[_r+yr,vr+br/2],s:[_r+yr/2,vr+br]},Object.entries(this.gripCoords).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],ar=tr[1];nr[rr].setAttribute("cx",ar[0]),nr[rr].setAttribute("cy",ar[1])})),rr.rotateGripConnector.setAttribute("x1",_r+yr/2),rr.rotateGripConnector.setAttribute("y1",vr),rr.rotateGripConnector.setAttribute("x2",_r+yr/2),rr.rotateGripConnector.setAttribute("y2",vr-5*Sy),rr.rotateGrip.setAttribute("cx",_r+yr/2),rr.rotateGrip.setAttribute("cy",vr-5*Sy)}}],[{key:"updateGripCursors",value:function updateGripCursors(er){var tr=Object.keys(fy.selectorGrips),rr=Math.round(er/45);for(rr<0&&(rr+=8);rr>0;)tr.push(tr.shift()),rr--;Object.values(fy.selectorGrips).forEach((function(er,rr){er.setAttribute("style","cursor:"+tr[rr]+"-resize")}))}}]),Selector}(),By=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 er=this;if(this.selectorParentGroup&&this.selectorParentGroup.parentNode&&this.selectorParentGroup.remove(),this.selectorParentGroup=py.createSVGElement({element:"g",attr:{id:"selectorParentGroup"}}),this.selectorGripsGroup=py.createSVGElement({element:"g",attr:{display:"none"}}),this.selectorParentGroup.append(this.selectorGripsGroup),py.svgRoot().append(this.selectorParentGroup),this.selectorMap={},this.selectors=[],this.rubberBandBox=null,Object.keys(this.selectorGrips).forEach((function(tr){var rr=py.createSVGElement({element:"circle",attr:{id:"selectorGrip_resize_"+tr,fill:"#22C",r:Sy,style:"cursor:"+tr+"-resize","stroke-width":2,"pointer-events":"all"}});xy.data(rr,"dir",tr),xy.data(rr,"type","resize"),er.selectorGrips[tr]=er.selectorGripsGroup.appendChild(rr)})),this.rotateGripConnector=this.selectorGripsGroup.appendChild(py.createSVGElement({element:"line",attr:{id:"selectorGrip_rotateconnector",stroke:"#22C","stroke-width":"1"}})),this.rotateGrip=this.selectorGripsGroup.appendChild(py.createSVGElement({element:"circle",attr:{id:"selectorGrip_rotate",fill:"lime",r:Sy,stroke:"#22C","stroke-width":2,style:"cursor:url("+Ay.imgPath+"rotate.png) 12 12, auto;"}})),xy.data(this.rotateGrip,"type","rotate"),!xy("#canvasBackground").length){var tr=_slicedToArray(Ay.dimensions,2),rr=tr[0],nr=tr[1],ar=py.createSVGElement({element:"svg",attr:{id:"canvasBackground",width:rr,height:nr,x:0,y:0,overflow:wd()?"none":"visible",style:"pointer-events:none"}}),ir=py.createSVGElement({element:"rect",attr:{width:"100%",height:"100%",x:0,y:0,"stroke-width":1,stroke:"#000",fill:"#FFF",style:"pointer-events:none"}});ar.append(ir),py.svgRoot().insertBefore(ar,py.svgContent())}}},{key:"requestSelector",value:function requestSelector(er,tr){if(of(er))return null;var rr=this.selectors.length;if("object"===_typeof(this.selectorMap[er.id]))return this.selectorMap[er.id].locked=!0,this.selectorMap[er.id];for(var nr=0;nr<rr;++nr)if(this.selectors[nr]&&!this.selectors[nr].locked)return this.selectors[nr].locked=!0,this.selectors[nr].reset(er,tr),this.selectorMap[er.id]=this.selectors[nr],this.selectors[nr];return this.selectors[rr]=new Cy(rr,er,tr),this.selectorParentGroup.append(this.selectors[rr].selectorGroup),this.selectorMap[er.id]=this.selectors[rr],this.selectors[rr]}},{key:"releaseSelector",value:function releaseSelector(er){if(!of(er)){var tr=this.selectors.length,rr=this.selectorMap[er.id];rr.locked||console.log("WARNING! selector was released but was already unlocked");for(var nr=0;nr<tr;++nr)if(this.selectors[nr]&&this.selectors[nr]===rr){delete this.selectorMap[er.id],rr.locked=!1,rr.selectedElement=null,rr.showGrips(!1);try{rr.selectorGroup.setAttribute("display","none")}catch(er){}break}}}},{key:"getRubberBandBox",value:function getRubberBandBox(){return this.rubberBandBox||(this.rubberBandBox=this.selectorParentGroup.appendChild(py.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}(),Ey=jQueryPluginSVG(jQuery),Ny=W_,Ly=X_,Py=Y_,Ty=J_,Fy=$_,Uy=Z_,Iy=K_;window.console||(window.console={},window.console.log=function(er){},window.console.dir=function(er){}),window.opera&&(window.console.log=function(er){window.opera.postError(er)},window.console.dir=function(er){});var Ry=function SvgCanvas(er,tr){_classCallCheck(this,SvgCanvas);var rr={show_outside_canvas:!0,selectNew:!0,dimensions:[640,480]};tr&&Ey.extend(rr,tr);var nr=rr.dimensions,ar=this,ir=window.document,or=ir.importNode(IA('<svg id="svgroot" xmlns="'+Yu.SVG+'" xlinkns="'+Yu.XLINK+'" width="'+nr[0]+'" height="'+nr[1]+'" x="'+nr[0]+'" y="'+nr[1]+'" overflow="visible"><defs><filter id="canvashadow" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"/><feOffset in="blur" dx="5" dy="5" result="offsetBlur"/><feMerge><feMergeNode in="offsetBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs></svg>').documentElement,!0);er.append(or);var sr=ir.createElementNS(Yu.SVG,"svg");(ar.clearSvgContentElement=function(){Ey(sr).empty(),Ey(sr).attr({id:"svgcontent",width:nr[0],height:nr[1],x:nr[0],y:nr[1],overflow:rr.show_outside_canvas?"visible":"hidden",xmlns:Yu.SVG,"xmlns:se":Yu.SE,"xmlns:xlink":Yu.XLINK}).appendTo(or);var er=ir.createComment(" Created with SVG-edit - https://github.com/SVG-Edit/svgedit");sr.append(er)})();var lr="svg_";ar.setIdPrefix=function(er){lr=er},ar.current_drawing_=new Wv(sr,lr);var cr=ar.getCurrentDrawing=function(){return ar.current_drawing_},ur=1,dr=null,hr={shape:{fill:("none"===rr.initFill.color?"":"#")+rr.initFill.color,fill_paint:null,fill_opacity:rr.initFill.opacity,stroke:"#"+rr.initStroke.color,stroke_paint:null,stroke_opacity:rr.initStroke.opacity,stroke_width:rr.initStroke.width,stroke_dasharray:"none",stroke_linejoin:"miter",stroke_linecap:"butt",opacity:rr.initOpacity}};hr.text=Ey.extend(!0,{},hr.shape),Ey.extend(hr.text,{fill:"#000000",stroke_width:rr.text&&rr.text.stroke_width,font_size:rr.text&&rr.text.font_size,font_family:rr.text&&rr.text.font_family});var pr=hr.shape,Ar=[],fr=this.getJsonFromSvgElement=function(er){if(3===er.nodeType)return er.nodeValue;for(var tr,rr={element:er.tagName,attr:{},children:[]},nr=0;tr=er.attributes[nr];nr++)rr.attr[tr.name]=tr.value;for(var ar,ir=0;ar=er.childNodes[ir];ir++)rr.children[ir]=fr(ar);return rr},gr=this.addSVGElementFromJson=function(er){if("string"==typeof er)return ir.createTextNode(er);var tr=ef(er.attr.id),rr=cr().getCurrentLayer();if(tr&&er.element!==tr.tagName&&(tr.remove(),tr=null),!tr){var nr=er.namespace||Yu.SVG;tr=ir.createElementNS(nr,er.element),rr&&(dr||rr).append(tr)}return er.curStyles&&tf(tr,{fill:pr.fill,stroke:pr.stroke,"stroke-width":pr.stroke_width,"stroke-dasharray":pr.stroke_dasharray,"stroke-linejoin":pr.stroke_linejoin,"stroke-linecap":pr.stroke_linecap,"stroke-opacity":pr.stroke_opacity,"fill-opacity":pr.fill_opacity,opacity:pr.opacity/2,style:"pointer-events:inherit"}),tf(tr,er.attr),rf(tr),er.children&&er.children.forEach((function(er){tr.append(gr(er))})),tr};ar.getTransformList=$p,ar.matrixMultiply=fA,ar.hasMatrixTransform=gA,ar.transformListToTransform=_A;var mr=function getBaseUnit(){return rr.baseUnit};!function init(er){Wp=er;var tr=document.createElementNS(Yu.SVG,"svg");document.body.append(tr);var rr=document.createElementNS(Yu.SVG,"rect");rr.setAttribute("width","1em"),rr.setAttribute("height","1ex"),rr.setAttribute("x","1in"),tr.append(rr);var nr=rr.getBBox();tr.remove();var ar=nr.x;rA={em:nr.width,ex:nr.height,in:ar,cm:ar/2.54,mm:ar/25.4,pt:ar/72,pc:ar/6,px:1,"%":0}}({getBaseUnit:mr,getElement:ef,getHeight:function getHeight(){return sr.getAttribute("height")/ur},getWidth:function getWidth(){return sr.getAttribute("width")/ur},getRoundDigits:function getRoundDigits(){return Gr.round_digits}}),ar.convertToNum=sA;var _r=function getSVGContent(){return sr},vr=this.getSelectedElems=function(){return Ar},yr=Rv,br=function getSVGRoot(){return or};!function init(er){SA=er,CA=er.getDOMDocument(),BA=er.getDOMContainer(),EA=er.getSVGRoot()}({pathActions:yr,getSVGContent:_r,addSVGElementFromJson:gr,getSelectedElements:vr,getDOMDocument:function getDOMDocument(){return ir},getDOMContainer:function getDOMContainer(){return er},getSVGRoot:br,getBaseUnit:mr,getSnappingStep:function getSnappingStep(){return rr.snappingStep}}),ar.findDefs=DA,ar.getUrlFromAttr=MA,ar.getHref=QA,ar.setHref=OA,ar.getBBox=HA,ar.getRotationAngle=$A,ar.getElem=ef,ar.getRefElem=ZA,ar.assignAttributes=tf,this.cleanupElement=rf;var wr=function getGridSnapping(){return rr.gridSnapping};!function init(er){vy=er}({getDrawing:function getDrawing(){return cr()},getSVGRoot:br,getGridSnapping:wr}),this.remapElement=yy,function init(er){hy=er}({getSVGRoot:br,getStartTransform:function getStartTransform(){return Yr},setStartTransform:function setStartTransform(er){Yr=er}}),this.recalculateDimensions=ky;var kr=Ju();ar.sanitizeSvg=gy;var xr=ar.undoMgr=new Uy({handleHistoryEvent:function handleHistoryEvent(er,tr){var rr=Iy;if(er===rr.BEFORE_UNAPPLY||er===rr.BEFORE_APPLY)ar.clearSelection();else if(er===rr.AFTER_APPLY||er===rr.AFTER_UNAPPLY){var nr=tr.elements();ar.pathActions.clear(),Pr("changed",nr);var ir=tr.type(),or=er===rr.AFTER_APPLY;if("MoveElementCommand"===ir)(or?tr.newParent:tr.oldParent)===sr&&Yv();else if("InsertElementCommand"===ir||"RemoveElementCommand"===ir)tr.parent===sr&&Yv(),"InsertElementCommand"===ir?or&&jr(tr.elem):or||jr(tr.elem),tr.elem&&"use"===tr.elem.tagName&&_a(tr.elem);else if("ChangeElementCommand"===ir){"title"===tr.elem.tagName&&tr.elem.parentNode.parentNode===sr&&Yv();var lr=or?tr.newValues:tr.oldValues;lr.stdDeviation&&ar.setBlurOffsets(tr.elem.parentNode,lr.stdDeviation)}}}}),Sr=function addCommandToHistory(er){ar.undoMgr.addCommandToHistory(er)},Cr=this.getZoom=function(){return ur},Br=this.round=function(er){return Number.parseInt(er*ur)/ur};!function init(er,tr){Ay=er,py=tr,fy=new By}(rr,{createSVGElement:function createSVGElement(er){return ar.addSVGElementFromJson(er)},svgRoot:function svgRoot(){return or},svgContent:function svgContent(){return sr},getCurrentZoom:Cr});var Er=this.selectorManager=function getSelectorManager(){return fy}(),Nr=ar.getNextId=function(){return cr().getNextId()},Lr=ar.getId=function(){return cr().getId()},Pr=function call(er,tr){if(Kn[er])return Kn[er](window,tr)},Tr=this.clearSelection=function(er){Ar.forEach((function(er){of(er)||Er.releaseSelector(er)})),Ar=[],er||Pr("selected",Ar)},Fr=this.addToSelection=function(er,tr){if(er.length){for(var rr=0;rr<Ar.length&&!of(Ar[rr]);)++rr;for(var nr=er.length;nr--;){var ar=er[nr];if(ar){var ir=HA(ar);if(ir&&("a"===ar.tagName&&1===ar.childNodes.length&&(ar=ar.firstChild),!Ar.includes(ar))){Ar[rr]=ar,rr++;var or=Er.requestSelector(ar,ir);Ar.length>1&&or.showGrips(!1)}}}if(Ar.length)for(Pr("selected",Ar),1===Ar.length&&Er.requestSelector(Ar[0]).showGrips(tr),Ar.sort((function(er,tr){return er&&tr&&er.compareDocumentPosition?3-(6&tr.compareDocumentPosition(er)):of(er)?1:0}));of(Ar[0]);)Ar.shift(0)}},Ur=function getOpacity(){return pr.opacity},Ir=this.getMouseTarget=function(tr){if(of(tr))return null;var rr=tr.target;if(rr.correspondingUseElement&&(rr=rr.correspondingUseElement),[Yu.MATH,Yu.HTML].includes(rr.namespaceURI)&&"svgcanvas"!==rr.id)for(;"foreignObject"!==rr.nodeName;)if(!(rr=rr.parentNode))return or;var nr=cr().getCurrentLayer();if([or,er,sr,nr].includes(rr))return or;if(Ey(rr).closest("#selectorParentGroup").length)return Er.selectorParentGroup;for(;rr.parentNode!==(dr||nr);)rr=rr.parentNode;return rr};ar.pathActions=yr,uv({selectorManager:Er,canvas:ar,call:Pr,resetD:function resetD(er){er.setAttribute("d",yr.convertPath(er))},round:Br,clearSelection:Tr,addToSelection:Fr,addCommandToHistory:Sr,remapElement:yy,addSVGElementFromJson:gr,getGridSnapping:wr,getOpacity:Ur,getSelectedElements:vr,getContainer:function getContainer(){return er},setStarted:function setStarted(er){Xr=er},getRubberBox:function getRubberBox(){return Un},setRubberBox:function setRubberBox(er){return Un=er},addPtsToSelection:function addPtsToSelection(er){var tr=er.closedSubpath,rr=er.grips;yr.canDeleteNodes=!0,yr.closed_subpath=tr,Pr("pointsAdded",{closedSubpath:tr,grips:rr}),Pr("selected",rr)},endChanges:function endChanges(er){var tr=er.cmd,rr=er.elem;Sr(tr),Pr("changed",[rr])},getCurrentZoom:Cr,getId:Lr,getNextId:Nr,getMouseTarget:Ir,getCurrentMode:function getCurrentMode(){return Jr},setCurrentMode:function setCurrentMode(er){return Jr=er},getDrawnPath:function getDrawnPath(){return Aa},setDrawnPath:function setDrawnPath(er){return Aa=er},getSVGRoot:br});var Rr={},Mr="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use",Qr=["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"],Or=Ey.data,Dr=document.createElementNS(Yu.SVG,"animate");Ey(Dr).attr({attributeName:"opacity",begin:"indefinite",dur:1,fill:"freeze"}).appendTo(or);var jr=function restoreRefElems(er){var tr=Ey(er).attr(Qr);Object.values(tr).forEach((function(er){if(er&&er.startsWith("url(")){var tr=MA(er).substr(1);ef(tr)||(DA().append(qr[tr]),delete qr[tr])}}));var rr=er.getElementsByTagName("*");if(rr.length)for(var nr=0,ar=rr.length;nr<ar;nr++)restoreRefElems(rr[nr])},Hr={},Gr={round_digits:5},Vr={},zr=hr.text,Kr={},qr={},Wr=rr.imgPath+"logo.png",Xr=!1,Yr=null,Jr="select",$r="none",Zr=pr,Tn=null,Un=null,Qn=[],Dn=null;this.runExtension=function(er,tr,rr){return this.runExtensions(tr,rr,!1,(function(tr){return tr===er}))};var Hn=this.runExtensions=function(er,tr,rr,nr){var ar=!!rr&&[];return Ey.each(Kr,(function(ir,or){nr&&!nr(ir)||or&&er in or&&("function"==typeof tr&&(tr=tr(ir)),rr?ar.push(or[er](tr)):ar=or[er](tr))})),ar};this.addExtension=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee(er,tr,rr){var nr,ir,lr,ur;return regeneratorRuntime.wrap((function _callee$(dr){for(;;)switch(dr.prev=dr.next){case 0:if(nr=rr.$,ir=rr.importLocale,"function"==typeof tr){dr.next=3;break}throw new TypeError("Function argument expected for `svgcanvas.addExtension`");case 3:if(!(er in Kr)){dr.next=5;break}throw new Error('Cannot add extension "'+er+'", an extension by that name already exists.');case 5:return lr=Ey.extend(ar.getPrivateMethods(),{$:nr,importLocale:ir,svgroot:or,svgcontent:sr,nonce:cr().getNonce(),selectorManager:Er}),dr.next=8,tr(lr);case 8:return(ur=dr.sent)&&(ur.name=er),Kr[er]=ur,dr.abrupt("return",Pr("extension_added",ur));case 12:case"end":return dr.stop()}}),_callee)})));return function(tr,rr,nr){return er.apply(this,arguments)}}();var Gn=this.getIntersectionList=function(er){if(of(Un))return null;var tr,rr=dr||cr().getCurrentLayer();if(er)(tr=sr.createSVGRect()).x=er.x,tr.y=er.y,tr.width=er.width,tr.height=er.height;else{tr=Un.getBBox();var nr=sr.createSVGRect();["x","y","width","height","top","right","bottom","left"].forEach((function(er){nr[er]=tr[er]/ur})),tr=nr}var ar=null;if(xd()||"function"==typeof or.getIntersectionList&&(tr.x+=Number.parseInt(sr.getAttribute("x")),tr.y+=Number.parseInt(sr.getAttribute("y")),ar=or.getIntersectionList(tr,rr)),of(ar)||"function"!=typeof ar.item){ar=[],Qn.length||(Qn=Vn(rr));for(var ir=Qn.length;ir--;)tr.width&&bA(tr,Qn[ir].bbox)&&ar.push(Qn[ir].elem)}return ar};this.getStrokedBBox=YA,this.getVisibleElements=XA;var Vn=this.getVisibleElementsAndBBoxes=function(er){er||(er=Ey(sr).children());var tr=[];return Ey(er).children().each((function(er,rr){rr.getBBox&&tr.push({elem:rr,bbox:YA([rr])})})),tr.reverse()},zn=this.groupSvgElem=function(er){var tr=document.createElementNS(Yu.SVG,"g");er.replaceWith(tr),Ey(tr).append(er).data("gsvg",er)[0].id=Nr()},Kn={};ar.call=Pr,ar.bind=function(er,tr){var rr=Kn[er];return Kn[er]=tr,rr},this.prepareSvg=function(er){this.sanitizeSvg(er.documentElement),_toConsumableArray(er.getElementsByTagNameNS(Yu.SVG,"path")).forEach((function(er){er.setAttribute("d",yr.convertPath(er)),yr.fixEnd(er)}))};var Wn=function ffClone(er){if(!kd())return er;var tr=er.cloneNode(!0);return er.before(tr),er.remove(),Er.releaseSelector(er),Ar[0]=tr,Er.requestSelector(tr).showGrips(!0),tr};this.setRotationAngle=function(er,tr){er=Number.parseFloat(er);var rr=Ar[0],nr=rr.getAttribute("transform"),ar=HA(rr),ir=ar.x+ar.width/2,sr=ar.y+ar.height/2,lr=$p(rr);lr.numberOfItems>0&&(4===lr.getItem(0).type&&lr.removeItem(0));if(0!==er){var cr=pA(ir,sr,_A(lr).matrix),ur=or.createSVGTransform();ur.setRotate(er,cr.x,cr.y),lr.numberOfItems?lr.insertItemBefore(ur,0):lr.appendItem(ur)}else 0===lr.numberOfItems&&rr.removeAttribute("transform");if(!tr){var dr=rr.getAttribute("transform");rr.setAttribute("transform",nr),Ba("transform",dr,Ar),Pr("changed",Ar)}Er.requestSelector(Ar[0]).resize(),Cy.updateGripCursors(er)};var Xn=this.recalculateAllSelectedDimensions=function(){for(var er=new Fy("none"===$r?"position":"size"),tr=Ar.length;tr--;){var rr=Ar[tr],nr=ky(rr);nr&&er.addSubCommand(nr)}er.isEmpty()||(Sr(er),Pr("changed",Ar))},Yn=function logMatrix(er){console.log([er.a,er.b,er.c,er.d,er.e,er.f])},Jn=null,$n=this.selectOnly=function(er,tr){Tr(!0),Fr(er,tr)};this.removeFromSelection=function(er){if(!of(Ar[0])&&er.length){for(var tr=[],rr=Ar.length,nr=0;nr<rr;++nr){var ar=Ar[nr];ar&&(er.includes(ar)?Er.releaseSelector(ar):tr.push(ar))}Ar=tr}},this.selectAllInCurrentLayer=function(){var er=cr().getCurrentLayer();er&&(Jr="select",$n(Ey(dr||er).children()))};var Zn,ea,ta,ra,na,aa,ia,oa,sa,la,ca,ua,da,ha,pa,Aa=null;ea={minx:null,miny:null,maxx:null,maxy:null},ta=null,ra=null,na=null,aa=null,ia={},oa=0,sa={x:0,y:0},la={x:0,y:0},ca={x:0,y:0},ua={x:0,y:0},da={x:0,y:0},ha={x:0,y:0},pa=function getBsplinePoint(er){var tr={x:0,y:0},rr=sa,nr=la,ar=ca,ir=ua,or=1/6,sr=er*er,lr=sr*er,cr=[[-1,3,-3,1],[3,-6,3,0],[-3,0,3,0],[1,4,1,0]];return tr.x=or*((rr.x*cr[0][0]+nr.x*cr[0][1]+ar.x*cr[0][2]+ir.x*cr[0][3])*lr+(rr.x*cr[1][0]+nr.x*cr[1][1]+ar.x*cr[1][2]+ir.x*cr[1][3])*sr+(rr.x*cr[2][0]+nr.x*cr[2][1]+ar.x*cr[2][2]+ir.x*cr[2][3])*er+(rr.x*cr[3][0]+nr.x*cr[3][1]+ar.x*cr[3][2]+ir.x*cr[3][3])),tr.y=or*((rr.y*cr[0][0]+nr.y*cr[0][1]+ar.y*cr[0][2]+ir.y*cr[0][3])*lr+(rr.y*cr[1][0]+nr.y*cr[1][1]+ar.y*cr[1][2]+ir.y*cr[1][3])*sr+(rr.y*cr[2][0]+nr.y*cr[2][1]+ar.y*cr[2][2]+ir.y*cr[2][3])*er+(rr.y*cr[3][0]+nr.y*cr[3][1]+ar.y*cr[3][2]+ir.y*cr[3][3])),{x:tr.x,y:tr.y}},Ey(er).mousedown((function mouseDown(er){if(!ar.spaceKey&&1!==er.button){var tr=2===er.button;er.altKey&&ar.cloneSelectedElements(0,0),Jn=Ey("#svgcontent g")[0].getScreenCTM().inverse();var nr=pA(er.pageX,er.pageY,Jn),ir=nr.x*ur,sr=nr.y*ur;er.preventDefault(),tr&&(Jr="select",Dn=nr);var lr=ir/ur,cr=sr/ur,dr=Ir(er);"a"===dr.tagName&&1===dr.childNodes.length&&(dr=dr.firstChild);var hr=lr;na=ta=lr;var fr=cr;if(aa=ra=cr,rr.gridSnapping&&(lr=nf(lr),cr=nf(cr),ta=nf(ta),ra=nf(ra)),dr===Er.selectorParentGroup&&!of(Ar[0])){var mr=er.target,_r=Or(mr,"type");"rotate"===_r?Jr="rotate":"resize"===_r&&(Jr="resize",$r=Or(mr,"dir")),dr=Ar[0]}Yr=dr.getAttribute("transform");var vr=$p(dr);switch(Jr){case"select":if(Xr=!0,$r="none",tr&&(Xr=!1),dr!==or){if(Ar.includes(dr)||(er.shiftKey||Tr(!0),Fr([dr]),Tn=dr,yr.clear()),!tr){var br,wr=_createForOfIteratorHelper(Ar);try{for(wr.s();!(br=wr.n()).done;){var kr=br.value;if(!of(kr)){var xr=$p(kr);xr.numberOfItems?xr.insertItemBefore(or.createSVGTransform(),0):xr.appendItem(or.createSVGTransform())}}}catch(er){wr.e(er)}finally{wr.f()}}}else tr||(Tr(),Jr="multiselect",of(Un)&&(Un=Er.getRubberBandBox()),tf(Un,{x:na*=ur,y:aa*=ur,width:0,height:0,display:"inline"}));break;case"zoom":Xr=!0,of(Un)&&(Un=Er.getRubberBandBox()),tf(Un,{x:hr*ur,y:hr*ur,width:0,height:0,display:"inline"});break;case"resize":Xr=!0,ta=lr,ra=cr,ia=HA(Ey("#selectedBox0")[0]);var Sr={};Ey.each(ia,(function(er,tr){Sr[er]=tr/ur})),ia=Sr;var Cr=$A(dr)?1:0;if(gA(vr))vr.insertItemBefore(or.createSVGTransform(),Cr),vr.insertItemBefore(or.createSVGTransform(),Cr),vr.insertItemBefore(or.createSVGTransform(),Cr);else if(vr.appendItem(or.createSVGTransform()),vr.appendItem(or.createSVGTransform()),vr.appendItem(or.createSVGTransform()),Nd()){var Br,Lr=wd();Lr&&(Br=function delayedStroke(er){var tr=er.getAttribute("stroke");er.removeAttribute("stroke"),null!==tr&&setTimeout((function(){er.setAttribute("stroke",tr)}),0)}),dr.style.vectorEffect="non-scaling-stroke",Lr&&Br(dr);for(var Pr=dr.getElementsByTagName("*"),Ur=Pr.length,Rr=0;Rr<Ur;Rr++)Pr[Rr].style&&(Pr[Rr].style.vectorEffect="non-scaling-stroke",Lr&&Br(Pr[Rr]))}break;case"fhellipse":case"fhrect":case"fhpath":ca.x=hr,ca.y=fr,la={x:0,y:0},sa={x:0,y:0},Xr=!0,gr({element:"polyline",curStyles:!0,attr:{points:hr+","+fr+" ",id:Nr(),fill:"none",opacity:pr.opacity/2,"stroke-linecap":"round",style:"pointer-events:none"}}),ea.minx=hr,ea.maxx=hr,ea.miny=fr,ea.maxy=fr;break;case"image":Xr=!0;var Mr=gr({element:"image",attr:{x:lr,y:cr,width:0,height:0,id:Nr(),opacity:pr.opacity/2,style:"pointer-events:inherit"}});OA(Mr,Wr),af(Mr);break;case"square":case"rect":Xr=!0,ta=lr,ra=cr,gr({element:"rect",curStyles:!0,attr:{x:lr,y:cr,width:0,height:0,id:Nr(),opacity:pr.opacity/2}});break;case"line":Xr=!0;var Qr=0===Number(pr.stroke_width)?1:pr.stroke_width;gr({element:"line",curStyles:!0,attr:{x1:lr,y1:cr,x2:lr,y2:cr,id:Nr(),stroke:pr.stroke,"stroke-width":Qr,"stroke-dasharray":pr.stroke_dasharray,"stroke-linejoin":pr.stroke_linejoin,"stroke-linecap":pr.stroke_linecap,"stroke-opacity":pr.stroke_opacity,fill:"none",opacity:pr.opacity/2,style:"pointer-events:none"}});break;case"circle":Xr=!0,gr({element:"circle",curStyles:!0,attr:{cx:lr,cy:cr,r:0,id:Nr(),opacity:pr.opacity/2}});break;case"ellipse":Xr=!0,gr({element:"ellipse",curStyles:!0,attr:{cx:lr,cy:cr,rx:0,ry:0,id:Nr(),opacity:pr.opacity/2}});break;case"text":Xr=!0,gr({element:"text",curStyles:!0,attr:{x:lr,y:cr,id:Nr(),fill:zr.fill,"stroke-width":zr.stroke_width,"font-size":zr.font_size,"font-family":zr.font_family,"text-anchor":"middle","xml:space":"preserve",opacity:pr.opacity}});break;case"path":case"pathedit":ta*=ur,ra*=ur,yr.mouseDown(er,dr,ta,ra),Xr=!0;break;case"textedit":ta*=ur,ra*=ur,fa.mouseDown(er,dr,ta,ra),Xr=!0;break;case"rotate":Xr=!0,ar.undoMgr.beginUndoableChange("transform",Ar)}var Dr=Hn("mouseDown",{event:er,start_x:ta,start_y:ra,selectedElements:Ar},!0);Ey.each(Dr,(function(er,tr){tr&&tr.started&&(Xr=!0)}))}})).mousemove((function mouseMove(er){if(Xr&&1!==er.button&&!ar.spaceKey){var tr,nr,ir,lr,cr,dr,hr,pr,fr,gr,mr=Ar[0],_r=pA(er.pageX,er.pageY,Jn),vr=_r.x*ur,br=_r.y*ur,wr=ef(Lr()),kr=vr/ur,xr=kr,Sr=br/ur,Cr=Sr;switch(rr.gridSnapping&&(xr=nf(xr),Cr=nf(Cr)),er.preventDefault(),Jr){case"select":if(null!==Ar[0]&&(cr=xr-ta,dr=Cr-ra,rr.gridSnapping&&(cr=nf(cr),dr=nf(dr)),0!==cr||0!==dr)){for(hr=Ar.length,tr=0;tr<hr&&(mr=Ar[tr],!of(mr));++tr){var Br=or.createSVGTransform();gr=$p(mr),Br.setTranslate(cr,dr),gr.numberOfItems?gr.replaceItem(Br,0):gr.appendItem(Br),Er.requestSelector(mr).resize()}Pr("transition",Ar)}break;case"multiselect":kr*=ur,Sr*=ur,tf(Un,{x:Math.min(na,kr),y:Math.min(aa,Sr),width:Math.abs(kr-na),height:Math.abs(Sr-aa)});var Nr=Ar.slice(),Tr=[],Fr=Gn();for(hr=Fr.length,tr=0;tr<hr;++tr){var Ur=Fr[tr];Ar.includes(Ur)||Tr.push(Ur);var Ir=Nr.indexOf(Ur);-1!==Ir&&Nr.splice(Ir,1)}Nr.length>0&&ar.removeFromSelection(Nr),Tr.length>0&&ar.addToSelection(Tr);break;case"resize":gr=$p(mr);var Rr=gA(gr),Mr=(fr=Rr?ia:HA(mr)).x,Qr=fr.y,Or=fr,Dr=Or.width,jr=Or.height;if(cr=xr-ta,dr=Cr-ra,rr.gridSnapping&&(cr=nf(cr),dr=nf(dr),jr=nf(jr),Dr=nf(Dr)),pr=$A(mr)){var Hr=Math.sqrt(cr*cr+dr*dr),Gr=Math.atan2(dr,cr)-pr*Math.PI/180;cr=Hr*Math.cos(Gr),dr=Hr*Math.sin(Gr)}$r.includes("n")||$r.includes("s")||(dr=0),$r.includes("e")||$r.includes("w")||(cr=0);var Vr=0,zr=0,Kr=jr?(jr+dr)/jr:1,qr=Dr?(Dr+cr)/Dr:1;$r.includes("n")&&(Kr=jr?(jr-dr)/jr:1,zr=jr),$r.includes("w")&&(qr=Dr?(Dr-cr)/Dr:1,Vr=Dr);var Wr=or.createSVGTransform(),Yr=or.createSVGTransform(),Zr=or.createSVGTransform();if(rr.gridSnapping&&(Mr=nf(Mr),Vr=nf(Vr),Qr=nf(Qr),zr=nf(zr)),Wr.setTranslate(-(Mr+Vr),-(Qr+zr)),er.shiftKey&&(1===qr?qr=Kr:Kr=qr),Yr.setScale(qr,Kr),Zr.setTranslate(Mr+Vr,Qr+zr),Rr){var Tn=pr?1:0;gr.replaceItem(Wr,2+Tn),gr.replaceItem(Yr,1+Tn),gr.replaceItem(Zr,Number(Tn))}else{var Qn=gr.numberOfItems;gr.replaceItem(Zr,Qn-3),gr.replaceItem(Yr,Qn-2),gr.replaceItem(Wr,Qn-1)}Er.requestSelector(mr).resize(),Pr("transition",Ar);break;case"zoom":kr*=ur,Sr*=ur,tf(Un,{x:Math.min(na*ur,kr),y:Math.min(aa*ur,Sr),width:Math.abs(kr-na*ur),height:Math.abs(Sr-aa*ur)});break;case"text":tf(wr,{x:xr,y:Cr});break;case"line":rr.gridSnapping&&(xr=nf(xr),Cr=nf(Cr));var Dn=xr,Vn=Cr;er.shiftKey&&(Dn=(nr=yA(ta,ra,Dn,Vn)).x,Vn=nr.y),wr.setAttribute("x2",Dn),wr.setAttribute("y2",Vn);break;case"foreignObject":case"square":case"rect":case"image":var zn,Kn,Wn="square"===Jr||er.shiftKey,Xn=Math.abs(xr-ta),Yn=Math.abs(Cr-ra);Wn?(Xn=Yn=Math.max(Xn,Yn),zn=ta<xr?ta:ta-Xn,Kn=ra<Cr?ra:ra-Yn):(zn=Math.min(ta,xr),Kn=Math.min(ra,Cr)),rr.gridSnapping&&(Xn=nf(Xn),Yn=nf(Yn),zn=nf(zn),Kn=nf(Kn)),tf(wr,{width:Xn,height:Yn,x:zn,y:Kn});break;case"circle":var $n=Ey(wr).attr(["cx","cy"]);ir=$n.cx,lr=$n.cy;var Aa=Math.sqrt((xr-ir)*(xr-ir)+(Cr-lr)*(Cr-lr));rr.gridSnapping&&(Aa=nf(Aa)),wr.setAttribute("r",Aa);break;case"ellipse":var ga=Ey(wr).attr(["cx","cy"]);ir=ga.cx,lr=ga.cy,rr.gridSnapping&&(xr=nf(xr),ir=nf(ir),Cr=nf(Cr),lr=nf(lr)),wr.setAttribute("rx",Math.abs(xr-ir));var ma=Math.abs(er.shiftKey?xr-ir:Cr-lr);wr.setAttribute("ry",ma);break;case"fhellipse":case"fhrect":ea.minx=Math.min(kr,ea.minx),ea.maxx=Math.max(kr,ea.maxx),ea.miny=Math.min(Sr,ea.miny),ea.maxy=Math.max(Sr,ea.maxy);case"fhpath":if(ua.x=kr,ua.y=Sr,sa.x&&sa.y)for(tr=0;tr<9;tr++)if(Zn=tr/10,da=pa((tr+1)/10),ha=da,da=pa(Zn),(oa+=Math.sqrt((ha.x-da.x)*(ha.x-da.x)+(ha.y-da.y)*(ha.y-da.y)))>.8){oa-=.8;var _a=sr.createSVGPoint();_a.x=da.x,_a.y=da.y,wr.points.appendItem(_a)}sa={x:la.x,y:la.y},la={x:ca.x,y:ca.y},ca={x:ua.x,y:ua.y};break;case"path":case"pathedit":if(xr*=ur,Cr*=ur,rr.gridSnapping&&(xr=nf(xr),Cr=nf(Cr),ta=nf(ta),ra=nf(ra)),er.shiftKey){var va,ya,ba=lv;ba?(va=ba.dragging?ba.dragging[0]:ta,ya=ba.dragging?ba.dragging[1]:ra):(va=ta,ya=ra);var wa=nr=yA(va,ya,xr,Cr);xr=wa.x,Cr=wa.y}Un&&"none"!==Un.getAttribute("display")&&(kr*=ur,Sr*=ur,tf(Un,{x:Math.min(na*ur,kr),y:Math.min(aa*ur,Sr),width:Math.abs(kr-na*ur),height:Math.abs(Sr-aa*ur)})),yr.mouseMove(xr,Cr);break;case"textedit":xr*=ur,Cr*=ur,fa.mouseMove(vr,br);break;case"rotate":ir=(fr=HA(mr)).x+fr.width/2,lr=fr.y+fr.height/2;var ka=vA(mr),xa=pA(ir,lr,ka);ir=xa.x,lr=xa.y,pr=(Math.atan2(lr-Cr,ir-xr)*(180/Math.PI)-90)%360,rr.gridSnapping&&(pr=nf(pr)),er.shiftKey&&(pr=45*Math.round(pr/45)),ar.setRotationAngle(pr<-180?360+pr:pr,!0),Pr("transition",Ar)}Hn("mouseMove",{event:er,mouse_x:vr,mouse_y:br,selected:mr})}})).click((function handleLinkInCanvas(er){return er.preventDefault(),!1})).dblclick((function dblClick(er){var tr=er.target.parentNode,rr=Ir(er),nr=rr.tagName;if("text"===nr&&"textedit"!==Jr){var ar=pA(er.pageX,er.pageY,Jn);fa.select(rr,ar.x,ar.y)}tr!==dr&&("g"!==nr&&"a"!==nr||!$A(rr)||(Na(rr),rr=Ar[0],Tr(!0)),dr&&sy(),"g"!==tr.tagName&&"a"!==tr.tagName||tr===cr().getCurrentLayer()||rr===Er.selectorParentGroup||ly(rr))})).mouseup((function mouseUp(er){if(2!==er.button){var tr=Tn;if(Tn=null,Xr){var nr,ir,or=pA(er.pageX,er.pageY,Jn),sr=or.x*ur,lr=or.y*ur,dr=sr/ur,hr=lr/ur,fr=ef(Lr()),mr=!1,_r=dr,vr=hr;switch(Xr=!1,Jr){case"resize":case"multiselect":of(Un)||(Un.setAttribute("display","none"),Qn=[]),Jr="select";case"select":if(!of(Ar[0])){if(of(Ar[1])){var br=Ar[0];switch(br.tagName){case"g":case"use":case"image":case"foreignObject":break;default:Zr.fill=br.getAttribute("fill"),Zr.fill_opacity=br.getAttribute("fill-opacity"),Zr.stroke=br.getAttribute("stroke"),Zr.stroke_opacity=br.getAttribute("stroke-opacity"),Zr.stroke_width=br.getAttribute("stroke-width"),Zr.stroke_dasharray=br.getAttribute("stroke-dasharray"),Zr.stroke_linejoin=br.getAttribute("stroke-linejoin"),Zr.stroke_linecap=br.getAttribute("stroke-linecap")}"text"===br.tagName&&(zr.font_size=br.getAttribute("font-size"),zr.font_family=br.getAttribute("font-family")),Er.requestSelector(br).showGrips(!0)}if(Xn(),_r!==na||vr!==aa)for(var wr=Ar.length,kr=0;kr<wr&&!of(Ar[kr]);++kr)Ar[kr].firstChild||Er.requestSelector(Ar[kr]).resize();else ir=er.target,"path"===Ar[0].nodeName&&of(Ar[1])?yr.select(Ar[0]):er.shiftKey&&tr!==ir&&ar.removeFromSelection([ir]);if(Nd()){var xr=Ar[0];xr&&(xr.removeAttribute("style"),RA(xr,(function(er){er.removeAttribute("style")})))}}return;case"zoom":of(Un)||Un.setAttribute("display","none");var Cr=er.shiftKey?.5:2;return void Pr("zoomed",{x:Math.min(na,_r),y:Math.min(aa,vr),width:Math.abs(_r-na),height:Math.abs(vr-aa),factor:Cr});case"fhpath":oa=0,sa={x:0,y:0},la={x:0,y:0},ca={x:0,y:0},ua={x:0,y:0};var Br=fr.getAttribute("points"),Nr=Br.indexOf(",");(mr=Nr>=0?Br.includes(",",Nr+1):Br.includes(" ",Br.indexOf(" ")+1))&&(fr=yr.smoothPolylineIntoPath(fr));break;case"line":nr=Ey(fr).attr(["x1","x2","y1","y2"]),mr=nr.x1!==nr.x2||nr.y1!==nr.y2;break;case"foreignObject":case"square":case"rect":case"image":nr=Ey(fr).attr(["width","height"]),mr=nr.width||nr.height||"image"===Jr;break;case"circle":mr="0"!==fr.getAttribute("r");break;case"ellipse":nr=Ey(fr).attr(["rx","ry"]),mr=nr.rx||nr.ry;break;case"fhellipse":ea.maxx-ea.minx>0&&ea.maxy-ea.miny>0&&(fr=gr({element:"ellipse",curStyles:!0,attr:{cx:(ea.minx+ea.maxx)/2,cy:(ea.miny+ea.maxy)/2,rx:(ea.maxx-ea.minx)/2,ry:(ea.maxy-ea.miny)/2,id:Lr()}}),Pr("changed",[fr]),mr=!0);break;case"fhrect":ea.maxx-ea.minx>0&&ea.maxy-ea.miny>0&&(fr=gr({element:"rect",curStyles:!0,attr:{x:ea.minx,y:ea.miny,width:ea.maxx-ea.minx,height:ea.maxy-ea.miny,id:Lr()}}),Pr("changed",[fr]),mr=!0);break;case"text":mr=!0,$n([fr]),fa.start(fr);break;case"path":fr=null,Xr=!0;var Tr=yr.mouseUp(er,fr,sr,lr);fr=Tr.element,mr=Tr.keep;break;case"pathedit":mr=!0,fr=null,yr.mouseUp(er);break;case"textedit":mr=!1,fr=null,fa.mouseUp(er,sr,lr);break;case"rotate":mr=!0,fr=null,Jr="select";var Fr=ar.undoMgr.finishUndoableChange();Fr.isEmpty()||Sr(Fr),Xn(),Pr("changed",Ar)}var Ur=Hn("mouseUp",{event:er,mouse_x:sr,mouse_y:lr},!0);if(Ey.each(Ur,(function(er,tr){tr&&(mr=tr.keep||mr,fr=tr.element,Xr=tr.started||Xr)})),mr||of(fr)){if(!of(fr)){ar.addedNew=!0;var Ir,Rr=.2;if(Dr.beginElement&&Number.parseFloat(fr.getAttribute("opacity"))!==pr.opacity){Ir=Ey(Dr).clone().attr({to:pr.opacity,dur:Rr}).appendTo(fr);try{Ir[0].beginElement()}catch(er){}}else Rr=0;setTimeout((function(){Ir&&Ir.remove(),fr.setAttribute("opacity",pr.opacity),fr.setAttribute("style","pointer-events:inherit"),rf(fr),"path"===Jr?yr.toEditMode(fr):rr.selectNew&&$n([fr],!0),Sr(new Ly(fr)),Pr("changed",[fr])}),1e3*Rr)}}else{for(cr().releaseId(Lr()),fr.remove(),fr=null,ir=er.target;ir&&ir.parentNode&&ir.parentNode.parentNode&&"g"===ir.parentNode.parentNode.tagName;)ir=ir.parentNode;"path"===Jr&&Aa||!ir||!ir.parentNode||"selectorParentGroup"===ir.parentNode.id||"svgcanvas"===ir.id||"svgroot"===ir.id||(ar.setMode("select"),$n([ir],!0))}Yr=null}}})),Ey(er).bind("mousewheel DOMMouseScroll",(function(er){if(er.shiftKey){er.preventDefault();var tr=er.originalEvent;Jn=Ey("#svgcontent g")[0].getScreenCTM().inverse();var nr=Ey("#workarea"),ir=rr.showRulers?16:0,or=pA(tr.pageX,tr.pageY,Jn),sr=nr.width(),lr=nr.height(),cr=sr-15-ir,dr=lr-15-ir,hr=cr*Jn.a,pr=dr*Jn.d,Ar=nr.offset(),fr=Ar.left+ir,gr=Ar.top+ir,mr=tr.wheelDelta?tr.wheelDelta:tr.detail?-tr.detail:0;if(mr){var _r,vr,yr=Math.max(3/4,Math.min(4/3,mr));yr>1?(_r=Math.ceil(cr/hr*yr*100)/100,vr=Math.ceil(dr/pr*yr*100)/100):(_r=Math.floor(cr/hr*yr*100)/100,vr=Math.floor(dr/pr*yr*100)/100);var br=Math.min(_r,vr);if((br=Math.min(10,Math.max(.01,br)))!==ur){yr=br/ur;var wr=pA(fr,gr,Jn),kr={x:(or.x-(or.x-wr.x)/yr)*br-ir+sr/2,y:(or.y-(or.y-wr.y)/yr)*br-ir+lr/2};ar.setZoom(br),Ey("#zoom").val((100*br).toFixed(1)),Pr("updateCanvas",{center:!1,newCtr:kr}),Pr("zoomDone")}}}}));var fa=ar.textActions=function(){var er,tr,rr,nr,ir,sr,lr,cr,dr,hr,pr=[];function setCursor(er){var ar=""===tr.value;if(Ey(tr).focus(),!arguments.length)if(ar)er=0;else{if(tr.selectionEnd!==tr.selectionStart)return;er=tr.selectionEnd}var or=pr[er];ar||tr.setSelectionRange(er,er),(rr=ef("text_cursor"))||(rr=document.createElementNS(Yu.SVG,"line"),tf(rr,{id:"text_cursor",stroke:"#333","stroke-width":1}),rr=ef("selectorParentGroup").appendChild(rr)),ir||(ir=setInterval((function(){var er="none"===rr.getAttribute("display");rr.setAttribute("display",er?"inline":"none")}),600));var lr=ptToScreen(or.x,sr.y),cr=ptToScreen(or.x,sr.y+sr.height);tf(rr,{x1:lr.x,y1:lr.y,x2:cr.x,y2:cr.y,visibility:"visible",display:"inline"}),nr&&nr.setAttribute("d","")}function setSelection(er,ar,ir){if(er!==ar){ir||tr.setSelectionRange(er,ar),(nr=ef("text_selectblock"))||(nr=document.createElementNS(Yu.SVG,"path"),tf(nr,{id:"text_selectblock",fill:"green",opacity:.5,style:"pointer-events:none"}),ef("selectorParentGroup").append(nr));var or=pr[er],lr=pr[ar];rr.setAttribute("visibility","hidden");var cr=ptToScreen(or.x,sr.y),ur=ptToScreen(or.x+(lr.x-or.x),sr.y),dr=ptToScreen(or.x,sr.y+sr.height),hr=ptToScreen(or.x+(lr.x-or.x),sr.y+sr.height),Ar="M"+cr.x+","+cr.y+" L"+ur.x+","+ur.y+" "+hr.x+","+hr.y+" "+dr.x+","+dr.y+"z";tf(nr,{d:Ar,display:"inline"})}else setCursor(ar)}function getIndexFromPoint(tr,rr){var nr=or.createSVGPoint();if(nr.x=tr,nr.y=rr,1===pr.length)return 0;var ar=er.getCharNumAtPosition(nr);ar<0?(ar=pr.length-2,tr<=pr[0].x&&(ar=0)):ar>=pr.length-2&&(ar=pr.length-2);var ir=pr[ar];return tr>ir.x+ir.width/2&&ar++,ar}function setCursorFromPoint(er,tr){setCursor(getIndexFromPoint(er,tr))}function setEndSelectionFromPoint(er,rr,nr){var ar=tr.selectionStart,ir=getIndexFromPoint(er,rr);setSelection(Math.min(ar,ir),Math.max(ar,ir),!nr)}function screenToPt(er,tr){var rr={x:er,y:tr};if(rr.x/=ur,rr.y/=ur,lr){var nr=pA(rr.x,rr.y,lr.inverse());rr.x=nr.x,rr.y=nr.y}return rr}function ptToScreen(er,tr){var rr={x:er,y:tr};if(lr){var nr=pA(rr.x,rr.y,lr);rr.x=nr.x,rr.y=nr.y}return rr.x*=ur,rr.y*=ur,rr}function selectAll(tr){setSelection(0,er.textContent.length),Ey(this).unbind(tr)}function selectWord(tr){if(hr&&er){var rr=pA(tr.pageX,tr.pageY,Jn),nr=screenToPt(rr.x*ur,rr.y*ur),ar=getIndexFromPoint(nr.x,nr.y),ir=er.textContent,or=ir.substr(0,ar).replace(/[a-z\d]+$/i,"").length,sr=ir.substr(ar).match(/^[a-z\d]+/i);setSelection(or,(sr?sr[0].length:0)+ar),Ey(tr.target).click(selectAll),setTimeout((function(){Ey(tr.target).unbind("click",selectAll)}),300)}}return{select:function select(tr,rr,nr){er=tr,fa.toEditMode(rr,nr)},start:function start(tr){er=tr,fa.toEditMode()},mouseDown:function mouseDown(er,rr,nr,ar){var ir=screenToPt(nr,ar);tr.focus(),setCursorFromPoint(ir.x,ir.y),cr=nr,dr=ar},mouseMove:function mouseMove(er,tr){var rr=screenToPt(er,tr);setEndSelectionFromPoint(rr.x,rr.y)},mouseUp:function mouseUp(tr,rr,nr){var ar=screenToPt(rr,nr);setEndSelectionFromPoint(ar.x,ar.y,!0),tr.target!==er&&rr<cr+2&&rr>cr-2&&nr<dr+2&&nr>dr-2&&fa.toSelectMode(!0)},setCursor:setCursor,toEditMode:function toEditMode(tr,rr){if(hr=!1,Jr="textedit",Er.requestSelector(er).showGrips(!1),Er.requestSelector(er),fa.init(),Ey(er).css("cursor","text"),arguments.length){var nr=screenToPt(tr,rr);setCursorFromPoint(nr.x,nr.y)}else setCursor();setTimeout((function(){hr=!0}),300)},toSelectMode:function toSelectMode(or){Jr="select",clearInterval(ir),ir=null,nr&&Ey(nr).attr("display","none"),rr&&Ey(rr).attr("visibility","hidden"),Ey(er).css("cursor","move"),or&&(Tr(),Ey(er).css("cursor","move"),Pr("selected",[er]),Fr([er],!0)),er&&!er.textContent.length&&ar.deleteSelectedElements(),Ey(tr).blur(),er=!1},setInputElem:function setInputElem(er){tr=er},clear:function clear(){"textedit"===Jr&&fa.toSelectMode()},init:function init(rr){if(er){var nr,ir;er.parentNode||(er=Ar[0],Er.requestSelector(er).showGrips(!1));var or=er.textContent.length,cr=er.getAttribute("transform");for(sr=HA(er),lr=cr?vA(er):null,(pr=[]).length=or,tr.focus(),Ey(er).unbind("dblclick",selectWord).dblclick(selectWord),or||(ir={x:sr.x+sr.width/2,width:0}),nr=0;nr<or;nr++){var dr=er.getStartPositionOfChar(nr);if(ir=er.getEndPositionOfChar(nr),!Ed()){var hr=ar.contentW*ur;dr.x-=hr,ir.x-=hr,dr.x/=ur,ir.x/=ur}pr[nr]={x:dr.x,y:sr.y,width:ir.x-dr.x,height:sr.height}}pr.push({x:ir.x,width:0}),setSelection(tr.selectionStart,tr.selectionEnd,!0)}}}}(),ga=this.removeUnusedDefElems=function(){var er=sr.getElementsByTagNameNS(Yu.SVG,"defs");if(!er||!er.length)return 0;var tr,rr,nr=[],ar=0,ir=["fill","stroke","filter","marker-start","marker-mid","marker-end"],or=ir.length,lr=sr.getElementsByTagNameNS(Yu.SVG,"*"),cr=lr.length;for(tr=0;tr<cr;tr++){var ur=lr[tr];for(rr=0;rr<or;rr++){var dr=MA(ur.getAttribute(ir[rr]));dr&&nr.push(dr.substr(1))}var hr=QA(ur);hr&&hr.startsWith("#")&&nr.push(hr.substr(1))}var pr=Ey(er).find("linearGradient, radialGradient, filter, marker, svg, symbol");for(tr=pr.length;tr--;){var Ar=pr[tr],fr=Ar.id;nr.includes(fr)||(qr[fr]=Ar,Ar.remove(),ar++)}return ar};function getIssues(){Tr();var er=[],tr=[],rr={feGaussianBlur:Rr.exportNoBlur,foreignObject:Rr.exportNoforeignObject,"[stroke-dasharray]":Rr.exportNoDashArray},nr=Ey(sr);return"font"in Ey("<canvas>")[0].getContext("2d")||(rr.text=Rr.exportNoText),Ey.each(rr,(function(rr,ar){nr.find(rr).length&&(tr.push(rr),er.push(ar))})),{issues:er,issueCodes:tr}}this.svgCanvasToString=function(){for(;ga()>0;);yr.clear(!0),Ey.each(sr.childNodes,(function(er,tr){er&&8===tr.nodeType&&tr.data.includes("Created with")&&sr.firstChild.before(tr)})),dr&&(sy(),$n([dr]));var er=[];Ey(sr).find("g:data(gsvg)").each((function(){for(var tr=this.attributes,rr=tr.length,nr=0;nr<rr;nr++)"id"!==tr[nr].nodeName&&"style"!==tr[nr].nodeName||rr--;if(rr<=0){var ar=this.firstChild;er.push(ar),Ey(this).replaceWith(ar)}}));var tr=this.svgToString(sr,0);return er.length&&Ey(er).each((function(){zn(this)})),tr},this.svgToString=function(er,tr){var nr=[],ar=rr.baseUnit,ir=new RegExp("^-?[\\d\\.]+"+ar+"$");if(er){rf(er);var or=_toConsumableArray(er.attributes),sr=er.childNodes;or.sort((function(er,tr){return er.name>tr.name?-1:1}));for(var lr=0;lr<tr;lr++)nr.push(" ");if(nr.push("<"),nr.push(er.nodeName),"svgcontent"===er.id){var cr=wa();"px"!==ar&&(cr.w=iA(cr.w,ar)+ar,cr.h=iA(cr.h,ar)+ar),nr.push(' width="'+cr.w+'" height="'+cr.h+'" xmlns="'+Yu.SVG+'"');var ur={};Ey(er).find("*").andSelf().each((function(){var er=this.namespaceURI;er&&!ur[er]&&kr[er]&&"xmlns"!==kr[er]&&"xml"!==kr[er]&&(ur[er]=!0,nr.push(" xmlns:"+kr[er]+'="'+er+'"')),Ey.each(this.attributes,(function(er,tr){var rr=tr.namespaceURI;rr&&!ur[rr]&&"xmlns"!==kr[rr]&&"xml"!==kr[rr]&&(ur[rr]=!0,nr.push(" xmlns:"+kr[rr]+'="'+rr+'"'))}))}));for(var dr=or.length,hr=["width","height","xmlns","x","y","viewBox","id","overflow"];dr--;){var pr=or[dr],Ar=LA(pr.value);pr.nodeName.startsWith("xmlns:")||(""===Ar||hr.includes(pr.localName)||pr.namespaceURI&&!kr[pr.namespaceURI]||(nr.push(" "),nr.push(pr.nodeName),nr.push('="'),nr.push(Ar),nr.push('"')))}}else{if("defs"===er.nodeName&&!er.firstChild)return"";for(var fr=["-moz-math-font-style","_moz-math-font-style"],gr=or.length-1;gr>=0;gr--){var mr=or[gr],_r=LA(mr.value);if(!fr.includes(mr.localName)){if("null"===_r){var vr=mr.localName.replace(/-[a-z]/g,(function(er){return er[1].toUpperCase()}));if(Object.prototype.hasOwnProperty.call(er.style,vr))continue}if(""!==_r){if(_r.startsWith("pointer-events"))continue;if("class"===mr.localName&&_r.startsWith("se_"))continue;if(nr.push(" "),"d"===mr.localName&&(_r=yr.convertPath(er,!0)),isNaN(_r)?ir.test(_r)&&(_r=aA(_r)+ar):_r=aA(_r),Gr.apply&&"image"===er.nodeName&&"href"===mr.localName&&Gr.images&&"embed"===Gr.images){var br=Hr[_r];br&&(_r=br)}mr.namespaceURI&&mr.namespaceURI!==Yu.SVG&&!kr[mr.namespaceURI]||(nr.push(mr.nodeName),nr.push('="'),nr.push(_r),nr.push('"'))}}}}if(er.hasChildNodes()){nr.push(">"),tr++;for(var wr=!1,xr=0;xr<sr.length;xr++){var Sr=sr.item(xr);switch(Sr.nodeType){case 1:nr.push("\n"),nr.push(this.svgToString(Sr,tr));break;case 3:var Cr=Sr.nodeValue.replace(/^\s+|\s+$/g,"");""!==Cr&&(wr=!0,nr.push(String(LA(Cr))));break;case 4:nr.push("\n"),nr.push(new Array(tr+1).join(" ")),nr.push("<![CDATA["),nr.push(Sr.nodeValue),nr.push("]]>");break;case 8:nr.push("\n"),nr.push(new Array(tr+1).join(" ")),nr.push("\x3c!--"),nr.push(Sr.data),nr.push("--\x3e")}}if(tr--,!wr){nr.push("\n");for(var Br=0;Br<tr;Br++)nr.push(" ")}nr.push("</"),nr.push(er.nodeName),nr.push(">")}else nr.push("/>")}return nr.join("")},this.embedImage=function(er){return new Promise((function(tr,rr){Ey(new Image).load((function(nr,ar,ir){if("error"!==ar){var or=document.createElement("canvas");or.width=this.width,or.height=this.height,or.getContext("2d").drawImage(this,0,0);try{var sr=";svgedit_url="+encodeURIComponent(er);sr=or.toDataURL().replace(";base64",sr+";base64"),Hr[er]=sr}catch(tr){Hr[er]=!1}Wr=er,tr(Hr[er])}else rr(new Error("Error loading image: "+ir.status+" "+ir.statusText))})).attr("src",er)}))},this.setGoodImage=function(er){Wr=er},this.open=function(){},this.save=function(er){Tr(),er&&Ey.extend(Gr,er),Gr.apply=!0;var tr=this.svgCanvasToString();Pr("saved",tr)},this.rasterExport=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(er,tr,rr){var nr,ir,or,sr,lr,cr,ur,dr,hr=arguments;return regeneratorRuntime.wrap((function _callee2$(pr){for(;;)switch(pr.prev=pr.next){case 0:return nr=hr.length>3&&void 0!==hr[3]?hr[3]:{},or="image/"+(ir="ICO"===er?"BMP":er||"PNG").toLowerCase(),sr=getIssues(),lr=sr.issues,cr=sr.issueCodes,ur=this.svgCanvasToString(),Ey("#export_canvas").length||Ey("<canvas>",{id:"export_canvas"}).hide().appendTo("body"),(dr=Ey("#export_canvas")[0]).width=ar.contentW,dr.height=ar.contentH,pr.next=11,D_(dr,ur);case 11:return pr.abrupt("return",new Promise((function(ar,sr){var hr,pr=ir.toLowerCase(),Ar=tr?dr.toDataURL("image/"+pr,tr):dr.toDataURL("image/"+pr);function done(){var ir={datauri:Ar,bloburl:hr,svg:ur,issues:lr,issueCodes:cr,type:er,mimeType:or,quality:tr,exportWindowName:rr};nr.avoidEvent||Pr("exported",ir),ar(ir)}dr.toBlob?dr.toBlob((function(er){hr=FA(er),done()}),or,tr):(hr=TA(Ar),done())})));case 12:case"end":return pr.stop()}}),_callee2,this)})));return function(tr,rr,nr){return er.apply(this,arguments)}}(),this.exportPDF=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(er){var tr,rr,nr,ar,ir,or,lr,cr,ur,dr=arguments;return regeneratorRuntime.wrap((function _callee3$(hr){for(;;)switch(hr.prev=hr.next){case 0:return tr=dr.length>1&&void 0!==dr[1]?dr[1]:Sd()?"save":void 0,rr=wa(),nr=rr.w>rr.h?"landscape":"portrait",ar=g({orientation:nr,unit:"pt",format:[rr.w,rr.h]}),ir=ka(),ar.setProperties({title:ir}),or=getIssues(),lr=or.issues,cr=or.issueCodes,hr.next=10,ar.svg(sr,{x:0,y:0,width:rr.w,height:rr.h});case 10:return(ur={issues:lr,issueCodes:cr,exportWindowName:er,outputType:tr=tr||"dataurlstring"}).output=ar.output(tr,"save"===tr?er||"svg.pdf":void 0),Pr("exportedPDF",ur),hr.abrupt("return",ur);case 15:case"end":return hr.stop()}}),_callee3)})));return function(tr){return er.apply(this,arguments)}}(),this.getSvgString=function(){return Gr.apply=!1,this.svgCanvasToString()},this.randomizeIds=function(er){Xv(!(arguments.length>0&&!1===er),cr())};var ma=this.uniquifyElems=function(er){var tr={},rr=["filter","linearGradient","pattern","radialGradient","symbol","textPath","use"];for(var nr in RA(er,(function(er){if(1===er.nodeType){er.id&&(er.id in tr||(tr[er.id]={elem:null,attrs:[],hrefs:[]}),tr[er.id].elem=er),Ey.each(Qr,(function(rr,nr){var ar=er.getAttributeNode(nr);if(ar){var ir=MA(ar.value),or=ir?ir.substr(1):null;or&&(or in tr||(tr[or]={elem:null,attrs:[],hrefs:[]}),tr[or].attrs.push(ar))}}));var nr=QA(er);if(nr&&rr.includes(er.nodeName)){var ar=nr.substr(1);ar&&(ar in tr||(tr[ar]={elem:null,attrs:[],hrefs:[]}),tr[ar].hrefs.push(er))}}})),tr)if(nr){var ar=tr[nr].elem;if(ar){var ir=Nr();ar.id=ir;for(var or=tr[nr].attrs,sr=or.length;sr--;){var lr=or[sr];lr.ownerElement.setAttribute(lr.name,"url(#"+ir+")")}for(var cr=tr[nr].hrefs,ur=cr.length;ur--;){var dr=cr[ur];OA(dr,"#"+ir)}}}},_a=this.setUseData=function(er){var tr=Ey(er);"use"!==er.tagName&&(tr=tr.find("use")),tr.each((function(){var er=QA(this).substr(1),tr=ef(er);tr&&(Ey(this).data("ref",tr),"symbol"!==tr.tagName&&"svg"!==tr.tagName||Ey(this).data("symbol",tr).data("ref",tr))}))},va=this.convertGradients=function(er){var tr=Ey(er).find("linearGradient, radialGradient");!tr.length&&wd()&&(tr=Ey(er).find("*").filter((function(){return this.tagName.includes("Gradient")}))),tr.each((function(){var er=this;if("userSpaceOnUse"===Ey(er).attr("gradientUnits")){var tr=Ey(sr).find('[fill="url(#'+er.id+')"],[stroke="url(#'+er.id+')"]');if(!tr.length)return;var rr=HA(tr[0]);if(!rr)return;if("linearGradient"===er.tagName){var nr=Ey(er).attr(["x1","y1","x2","y2"]),ar=er.gradientTransform.baseVal;if(ar&&ar.numberOfItems>0){var ir=_A(ar).matrix,or=pA(nr.x1,nr.y1,ir),lr=pA(nr.x2,nr.y2,ir);nr.x1=or.x,nr.y1=or.y,nr.x2=lr.x,nr.y2=lr.y,er.removeAttribute("gradientTransform")}Ey(er).attr({x1:(nr.x1-rr.x)/rr.width,y1:(nr.y1-rr.y)/rr.height,x2:(nr.x2-rr.x)/rr.width,y2:(nr.y2-rr.y)/rr.height}),er.removeAttribute("gradientUnits")}}}))},ya=this.convertToGroup=function(er){er||(er=Ar[0]);var tr,rr=Ey(er),nr=new Fy;if(rr.data("gsvg")){var ar=er.firstChild,lr=Ey(ar).attr(["x","y"]);Ey(er.firstChild.firstChild).unwrap(),Ey(er).removeData("gsvg");var cr=$p(er),ur=or.createSVGTransform();ur.setTranslate(lr.x,lr.y),cr.appendItem(ur),ky(er),Pr("selected",[er])}else if(rr.data("symbol")){er=rr.data("symbol"),tr=rr.attr("transform");var dr=rr.attr(["x","y"]),hr=er.getAttribute("viewBox");if(hr){var pr=hr.split(" ");dr.x-=Number(pr[0]),dr.y-=Number(pr[1])}tr+=" translate("+(dr.x||0)+","+(dr.y||0)+")";var fr=rr.prev();nr.addSubCommand(new Py(rr[0],rr[0].nextSibling,rr[0].parentNode)),rr.remove();var gr,mr=Ey(sr).find("use:data(symbol)").length,_r=ir.createElementNS(Yu.SVG,"g"),vr=er.childNodes;for(gr=0;gr<vr.length;gr++)_r.append(vr[gr].cloneNode(!0));if(kd()){var yr=Ey(DA()).children("linearGradient,radialGradient,pattern").clone();Ey(_r).append(yr)}tr&&_r.setAttribute("transform",tr);var br=er.parentNode;if(ma(_r),kd()&&Ey(DA()).append(Ey(_r).find("linearGradient,radialGradient,pattern")),_r.id=Nr(),fr.after(_r),br){if(!mr){var wr=er.nextSibling;er.remove(),nr.addSubCommand(new Py(er,wr,br))}nr.addSubCommand(new Ly(_r))}_a(_r),kd()?va(DA()):va(_r),function walkTreePost(er,tr){if(er&&1===er.nodeType){for(var rr=er.childNodes.length;rr--;)RA(er.childNodes.item(rr),tr);tr(er)}}(_r,(function(er){try{ky(er)}catch(er){console.log(er)}})),Ey(_r).find(Mr).each((function(){this.id||(this.id=Nr())})),$n([_r]);var kr=Na(_r,!0);kr&&nr.addSubCommand(kr),Sr(nr)}else console.log("Unexpected element to ungroup:",er)};this.setSvgString=function(er,tr){try{var nr=IA(er);if(nr.firstElementChild&&nr.firstElementChild.namespaceURI!==Yu.SVG)return!1;this.prepareSvg(nr);var dr=new Fy("Change Source"),hr=sr.nextSibling;sr.remove();var pr=sr;dr.addSubCommand(new Py(pr,hr,or)),sr=ir.adoptNode?ir.adoptNode(nr.documentElement):ir.importNode(nr.documentElement,!0),or.append(sr);var Ar=Ey(sr);ar.current_drawing_=new Wv(sr,lr);var fr=cr().getNonce();fr?Pr("setnonce",fr):Pr("unsetnonce"),Ar.find("image").each((function(){var er=this;af(er);var tr=QA(this);if(tr){if(tr.startsWith("data:")){var rr=tr.match(/svgedit_url=(.*?);/);if(rr){var nr=decodeURIComponent(rr[1]);Ey(new Image).load((function(){er.setAttributeNS(Yu.XLINK,"xlink:href",nr)})).attr("src",nr)}}ar.embedImage(tr)}})),Ar.find("svg").each((function(){if(!Ey(this).closest("defs").length){ma(this);var er=this.parentNode;1===er.childNodes.length&&"g"===er.nodeName?(Ey(er).data("gsvg",this),er.id=er.id||Nr()):zn(this)}})),kd()&&Ar.find("linearGradient, radialGradient, pattern").appendTo(DA()),_a(Ar),va(Ar[0]);var gr={id:"svgcontent",overflow:rr.show_outside_canvas?"visible":"hidden"},mr=!1;if(Ar.attr("viewBox")){var _r=Ar.attr("viewBox").split(" ");gr.width=_r[2],gr.height=_r[3]}else Ey.each(["width","height"],(function(er,tr){var rr=Ar.attr(tr)||"100%";"%"===String(rr).substr(-1)?mr=!0:gr[tr]=sA(tr,rr)}));if(Yv(),Ar.children().find(Mr).each((function(){this.id||(this.id=Nr())})),mr){var vr=YA();gr.width=vr.width+vr.x,gr.height=vr.height+vr.y}gr.width<=0&&(gr.width=100),gr.height<=0&&(gr.height=100),Ar.attr(gr),this.contentW=gr.width,this.contentH=gr.height,dr.addSubCommand(new Ly(sr));var yr=Ar.attr(["width","height"]);dr.addSubCommand(new Ty(or,yr)),ur=1,function resetListMap(){Xp={}}(),Tr(),function clearData(){sv={}}(),or.append(Er.selectorParentGroup),tr||Sr(dr),Pr("changed",[sr])}catch(er){return console.log(er),!1}return!0},this.importSvgString=function(er){var tr,rr,nr;try{var ar=encode64(er.length+er).substr(0,32),or=!1;Vr[ar]&&Ey(Vr[ar].symbol).parents("#svgroot").length&&(or=!0);var lr,ur=new Fy("Import Image");if(or)lr=Vr[ar].symbol,rr=Vr[ar].xform;else{var hr,pr=IA(er);this.prepareSvg(pr),hr=ir.adoptNode?ir.adoptNode(pr.documentElement):ir.importNode(pr.documentElement,!0),ma(hr);var Ar=sA("width",hr.getAttribute("width")),fr=sA("height",hr.getAttribute("height")),gr=hr.getAttribute("viewBox"),mr=gr?gr.split(" "):[0,0,Ar,fr];for(tr=0;tr<4;++tr)mr[tr]=Number(mr[tr]);var _r=Number(sr.getAttribute("height"));rr="translate(0) "+(rr=fr>Ar?"scale("+_r/3/mr[3]+")":"scale("+_r/3/mr[2]+")")+" translate(0)",lr=ir.createElementNS(Yu.SVG,"symbol");var vr=DA();for(kd()&&Ey(hr).find("linearGradient, radialGradient, pattern").appendTo(vr);hr.firstChild;){var yr=hr.firstChild;lr.append(yr)}var br,wr=_createForOfIteratorHelper(hr.attributes);try{for(wr.s();!(br=wr.n()).done;){var kr=br.value;lr.setAttribute(kr.nodeName,kr.value)}}catch(er){wr.e(er)}finally{wr.f()}lr.id=Nr(),Vr[ar]={symbol:lr,xform:rr},DA().append(lr),ur.addSubCommand(new Ly(lr))}(nr=ir.createElementNS(Yu.SVG,"use")).id=Nr(),OA(nr,"#"+lr.id),(dr||cr().getCurrentLayer()).append(nr),ur.addSubCommand(new Ly(nr)),Tr(),nr.setAttribute("transform",rr),ky(nr),Ey(nr).data("symbol",lr).data("ref",lr),Fr([nr]),Sr(ur),Pr("changed",[sr])}catch(er){return console.log(er),null}return nr};var ba={identifyLayers:Yv,createLayer:Jv,cloneLayer:$v,deleteCurrentLayer:Zv,setCurrentLayer:ey,renameCurrentLayer:ty,setCurrentLayerPosition:ry,setLayerVisibility:ny,moveSelectedToLayer:ay,mergeLayer:iy,mergeAllLayers:oy,leaveContext:sy,setContext:ly};Object.entries(ba).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];ar[rr]=nr})),function init(er){qv=er}({pathActions:yr,getCurrentGroup:function getCurrentGroup(){return dr},setCurrentGroup:function setCurrentGroup(er){dr=er},getSelectedElements:vr,getSVGContent:_r,undoMgr:xr,elData:Or,getCurrentDrawing:cr,clearSelection:Tr,call:Pr,addCommandToHistory:Sr,changeSVGContent:function changeSVGContent(){Pr("changed",[sr])}}),this.clear=function(){yr.clear(),Tr(),ar.clearSvgContentElement(),ar.current_drawing_=new Wv(sr),ar.createLayer("Layer 1"),ar.undoMgr.resetUndoStack(),Er.initGroup(),Un=Er.getRubberBandBox(),Pr("cleared")},this.linkControlPoints=yr.linkControlPoints,this.getContentElem=function(){return sr},this.getRootElem=function(){return or};var wa=this.getResolution=function(){return{w:sr.getAttribute("width")/ur,h:sr.getAttribute("height")/ur,zoom:ur}};this.getSnapToGrid=function(){return rr.gridSnapping},this.getVersion=function(){return"svgcanvas.js ($Rev$)"},this.setUiStrings=function(er){Object.assign(Rr,er.notification),Ey=jQueryPluginDBox(Ey,er.common),av(er)},this.setConfig=function(er){Object.assign(rr,er)},this.getTitle=function(er){if(er=er||Ar[0]){var tr,rr=_createForOfIteratorHelper((er=Ey(er).data("gsvg")||Ey(er).data("symbol")||er).childNodes);try{for(rr.s();!(tr=rr.n()).done;){var nr=tr.value;if("title"===nr.nodeName)return nr.textContent}}catch(er){rr.e(er)}finally{rr.f()}return""}},this.setGroupTitle=function(er){var tr=Ar[0];tr=Ey(tr).data("gsvg")||tr;var rr,nr=Ey(tr).children("title"),ar=new Fy("Set Label");if(er.length)nr.length?(rr=nr[0],ar.addSubCommand(new Ty(rr,{"#text":rr.textContent})),rr.textContent=er):((rr=ir.createElementNS(Yu.SVG,"title")).textContent=er,Ey(tr).prepend(rr),ar.addSubCommand(new Ly(rr)));else{var or=nr.nextSibling;ar.addSubCommand(new Py(nr[0],or,tr)),nr.remove()}Sr(ar)};var ka=this.getDocumentTitle=function(){return ar.getTitle(sr)};this.setDocumentTitle=function(er){var tr,rr=sr.childNodes,nr=!1,ar="",or=new Fy("Change Image Title"),lr=_createForOfIteratorHelper(rr);try{for(lr.s();!(tr=lr.n()).done;){var cr=tr.value;if("title"===cr.nodeName){ar=(nr=cr).textContent;break}}}catch(er){lr.e(er)}finally{lr.f()}nr||(nr=ir.createElementNS(Yu.SVG,"title"),sr.insertBefore(nr,sr.firstChild)),er.length?nr.textContent=er:nr.remove(),or.addSubCommand(new Ty(nr,{"#text":ar})),Sr(or)},this.getEditorNS=function(er){return er&&sr.setAttribute("xmlns:se",Yu.SE),Yu.SE},this.setResolution=function(er,tr){var rr,nr=wa(),ir=nr.w,or=nr.h;if("fit"===er){var lr=YA();if(!lr)return!1;rr=new Fy("Fit Canvas to Content");var cr=XA();Fr(cr);var dr=[],hr=[];Ey.each(cr,(function(er,tr){dr.push(-1*lr.x),hr.push(-1*lr.y)}));var pr=ar.moveSelectedElements(dr,hr,!0);rr.addSubCommand(pr),Tr(),er=Math.round(lr.width),tr=Math.round(lr.height)}return er===ir&&tr===or||(rr||(rr=new Fy("Change Image Dimensions")),er=sA("width",er),tr=sA("height",tr),sr.setAttribute("width",er),sr.setAttribute("height",tr),this.contentW=er,this.contentH=tr,rr.addSubCommand(new Ty(sr,{width:ir,height:or})),sr.setAttribute("viewBox",[0,0,er/ur,tr/ur].join(" ")),rr.addSubCommand(new Ty(sr,{viewBox:["0 0",ir,or].join(" ")})),Sr(rr),Pr("changed",[sr])),!0},this.getOffset=function(){return Ey(sr).attr(["x","y"])},this.setBBoxZoom=function(er,tr,rr){var nr,ir=.85,or=function calcZoom(er){if(!er)return!1;var nr=Math.round(tr/er.width*100*ir)/100,or=Math.round(rr/er.height*100*ir)/100,sr=Math.min(nr,or);return ar.setZoom(sr),{zoom:sr,bbox:er}};if("object"===_typeof(er)){if(0===(nr=er).width||0===nr.height){var sr=nr.zoom?nr.zoom:ur*nr.factor;return ar.setZoom(sr),{zoom:ur,bbox:nr}}return or(nr)}switch(er){case"selection":if(!Ar[0])return;var lr=Ey.map(Ar,(function(er){if(er)return er}));nr=YA(lr);break;case"canvas":var dr=wa();ir=.95,nr={width:dr.w,height:dr.h,x:0,y:0};break;case"content":nr=YA();break;case"layer":nr=YA(XA(cr().getCurrentLayer()));break;default:return}return or(nr)},this.setZoom=function(er){var tr=wa();sr.setAttribute("viewBox","0 0 "+tr.w/er+" "+tr.h/er),ur=er,Ey.each(Ar,(function(er,tr){tr&&Er.requestSelector(tr).resize()})),yr.zoomChange(),Hn("zoomChanged",er)},this.getMode=function(){return Jr},this.setMode=function(er){yr.clear(!0),fa.clear(),Zr=Ar[0]&&"text"===Ar[0].nodeName?zr:pr,Jr=er},this.getColor=function(er){return Zr[er]},this.setColor=function(er,tr,rr){pr[er]=tr,Zr[er+"_paint"]={type:"solidColor"};var nr=[];function addNonG(er){"g"!==er.nodeName&&nr.push(er)}for(var ar=Ar.length;ar--;){var ir=Ar[ar];ir&&("g"===ir.tagName?RA(ir,addNonG):"fill"===er?"polyline"!==ir.tagName&&"line"!==ir.tagName&&nr.push(ir):nr.push(ir))}nr.length>0&&(rr?Ca(er,tr,nr):(Ba(er,tr,nr),Pr("changed",nr)))};var xa=this.setGradient=function(er){if(Zr[er+"_paint"]&&"solidColor"!==Zr[er+"_paint"].type){var tr=ar[er+"Grad"],rr=Sa(tr),nr=DA();rr?tr=rr:(tr=nr.appendChild(ir.importNode(tr,!0))).id=Nr(),ar.setColor(er,"url(#"+tr.id+")")}},Sa=function findDuplicateGradient(er){for(var tr=DA(),rr=Ey(tr).find("linearGradient, radialGradient"),nr=rr.length,ar=["r","cx","cy","fx","fy"];nr--;){var ir=rr[nr];if("linearGradient"===er.tagName){if(er.getAttribute("x1")!==ir.getAttribute("x1")||er.getAttribute("y1")!==ir.getAttribute("y1")||er.getAttribute("x2")!==ir.getAttribute("x2")||er.getAttribute("y2")!==ir.getAttribute("y2"))continue}else if("continue"===function(){var tr=Ey(er).attr(ar),rr=Ey(ir).attr(ar),nr=!1;if(Ey.each(ar,(function(er,ar){tr[ar]!==rr[ar]&&(nr=!0)})),nr)return"continue"}())continue;var or=er.getElementsByTagNameNS(Yu.SVG,"stop"),sr=ir.getElementsByTagNameNS(Yu.SVG,"stop");if(or.length===sr.length){for(var lr=or.length;lr--;){var cr=or[lr],ur=sr[lr];if(cr.getAttribute("offset")!==ur.getAttribute("offset")||cr.getAttribute("stop-opacity")!==ur.getAttribute("stop-opacity")||cr.getAttribute("stop-color")!==ur.getAttribute("stop-color"))break}if(-1===lr)return ir}}return null};this.setPaint=function(er,tr){var rr=new Ey.jGraduate.Paint(tr);switch(this.setPaintOpacity(er,rr.alpha/100,!0),Zr[er+"_paint"]=rr,rr.type){case"solidColor":this.setColor(er,"none"!==rr.solidColor?"#"+rr.solidColor:"none");break;case"linearGradient":case"radialGradient":ar[er+"Grad"]=rr[rr.type],xa(er)}},this.setStrokePaint=function(er){this.setPaint("stroke",er)},this.setFillPaint=function(er){this.setPaint("fill",er)},this.getStrokeWidth=function(){return Zr.stroke_width},this.setStrokeWidth=function(er){if(0===er&&["line","path"].includes(Jr))ar.setStrokeWidth(1);else{Zr.stroke_width=er;for(var tr=[],rr=Ar.length;rr--;){var nr=Ar[rr];nr&&("g"===nr.tagName?RA(nr,addNonG):tr.push(nr))}tr.length>0&&(Ba("stroke-width",er,tr),Pr("changed",Ar))}function addNonG(er){"g"!==er.nodeName&&tr.push(er)}},this.setStrokeAttr=function(er,tr){pr[er.replace("-","_")]=tr;for(var rr=[],nr=Ar.length;nr--;){var ar=Ar[nr];ar&&("g"===ar.tagName?RA(ar,(function(er){"g"!==er.nodeName&&rr.push(er)})):rr.push(ar))}rr.length>0&&(Ba(er,tr,rr),Pr("changed",Ar))},this.getStyle=function(){return pr},this.getOpacity=Ur,this.setOpacity=function(er){pr.opacity=er,Ba("opacity",er)},this.getFillOpacity=function(){return pr.fill_opacity},this.getStrokeOpacity=function(){return pr.stroke_opacity},this.setPaintOpacity=function(er,tr,rr){pr[er+"_opacity"]=tr,rr?Ca(er+"-opacity",tr):Ba(er+"-opacity",tr)},this.getPaintOpacity=function(er){return"fill"===er?this.getFillOpacity():this.getStrokeOpacity()},this.getBlur=function(er){var tr=0;if(er&&er.getAttribute("filter")){var rr=ef(er.id+"_blur");rr&&(tr=rr.firstChild.getAttribute("stdDeviation"))}return tr},function(){var er=null,tr=null,rr=!1;function finishChange(){var rr=ar.undoMgr.finishUndoableChange();er.addSubCommand(rr),Sr(er),er=null,tr=null}ar.setBlurNoUndo=function(er){if(tr)if(0===er)Ca("filter",""),rr=!0;else{var nr=Ar[0];rr&&Ca("filter","url(#"+nr.id+"_blur)"),wd()&&(nr.removeAttribute("filter"),nr.setAttribute("filter","url(#"+nr.id+"_blur)")),Ca("stdDeviation",er,[tr.firstChild]),ar.setBlurOffsets(tr,er)}else ar.setBlur(er)},ar.setBlurOffsets=function(er,tr){tr>3?tf(er,{x:"-50%",y:"-50%",width:"200%",height:"200%"}):wd()||(er.removeAttribute("x"),er.removeAttribute("y"),er.removeAttribute("width"),er.removeAttribute("height"))},ar.setBlur=function(rr,nr){if(er)finishChange();else{var ir=Ar[0],or=ir.id;tr=ef(or+"_blur"),rr-=0;var sr=new Fy;if(tr)0===rr&&(tr=null);else{var lr=gr({element:"feGaussianBlur",attr:{in:"SourceGraphic",stdDeviation:rr}});(tr=gr({element:"filter",attr:{id:or+"_blur"}})).append(lr),DA().append(tr),sr.addSubCommand(new Ly(tr))}var cr={filter:ir.getAttribute("filter")};if(0===rr)return ir.removeAttribute("filter"),void sr.addSubCommand(new Ty(ir,cr));Ba("filter","url(#"+or+"_blur)"),sr.addSubCommand(new Ty(ir,cr)),ar.setBlurOffsets(tr,rr),er=sr,ar.undoMgr.beginUndoableChange("stdDeviation",[tr?tr.firstChild:null]),nr&&(ar.setBlurNoUndo(rr),finishChange())}}}(),this.getBold=function(){var er=Ar[0];return!(of(er)||"text"!==er.tagName||!of(Ar[1]))&&"bold"===er.getAttribute("font-weight")},this.setBold=function(er){var tr=Ar[0];!of(tr)&&"text"===tr.tagName&&of(Ar[1])&&Ba("font-weight",er?"bold":"normal"),Ar[0].textContent||fa.setCursor()},this.getItalic=function(){var er=Ar[0];return!(of(er)||"text"!==er.tagName||!of(Ar[1]))&&"italic"===er.getAttribute("font-style")},this.setItalic=function(er){var tr=Ar[0];!of(tr)&&"text"===tr.tagName&&of(Ar[1])&&Ba("font-style",er?"italic":"normal"),Ar[0].textContent||fa.setCursor()},this.getFontFamily=function(){return zr.font_family},this.setFontFamily=function(er){zr.font_family=er,Ba("font-family",er),Ar[0]&&!Ar[0].textContent&&fa.setCursor()},this.setFontColor=function(er){zr.fill=er,Ba("fill",er)},this.getFontColor=function(){return zr.fill},this.getFontSize=function(){return zr.font_size},this.setFontSize=function(er){zr.font_size=er,Ba("font-size",er),Ar[0].textContent||fa.setCursor()},this.getText=function(){var er=Ar[0];return of(er)?"":er.textContent},this.setTextContent=function(er){Ba("#text",er),fa.init(er),fa.setCursor()},this.setImageURL=function(er){var tr=Ar[0];if(tr){var rr=Ey(tr).attr(["width","height"]),nr=!rr.width||!rr.height,ar=QA(tr);if(ar!==er||nr){var ir=new Fy("Change Image URL");OA(tr,er),ir.addSubCommand(new Ty(tr,{"#href":ar})),Ey(new Image).load((function(){var er=Ey(tr).attr(["width","height"]);Ey(tr).attr({width:this.width,height:this.height}),Er.requestSelector(tr).resize(),ir.addSubCommand(new Ty(tr,er)),Sr(ir),Pr("changed",[tr])})).attr("src",er)}}},this.setLinkURL=function(er){var tr=Ar[0];if(tr){if("a"!==tr.tagName){var rr=Ey(tr).parents("a");if(!rr.length)return;tr=rr[0]}var nr=QA(tr);if(nr!==er){var ar=new Fy("Change Link URL");OA(tr,er),ar.addSubCommand(new Ty(tr,{"#href":nr})),Sr(ar)}}},this.setRectRadius=function(er){var tr=Ar[0];if(!of(tr)&&"rect"===tr.tagName){var rr=tr.getAttribute("rx");rr!==String(er)&&(tr.setAttribute("rx",er),tr.setAttribute("ry",er),Sr(new Ty(tr,{rx:rr,ry:rr},"Radius")),Pr("changed",[tr]))}},this.makeHyperlink=function(er){ar.groupSelectedElements("a",er)},this.removeHyperlink=function(){ar.ungroupSelectedElement()},this.setSegType=function(er){yr.setSegType(er)},this.convertToPath=function(er,tr){if(!of(er))return tr?KA(er,gr,yr):function convertToPath(er,tr,rr,nr,ar,ir,or,sr){var lr=new or.BatchCommand("Convert element to Path"),cr=rr({element:"path",attr:tr=wA.extend({},tr,zA(er))}),ur=er.getAttribute("transform");ur&&cr.setAttribute("transform",ur);var dr=er.id,hr=er.parentNode;er.nextSibling?er.before(cr):hr.append(cr);var pr=VA(er);if(pr){if(cr.setAttribute("d",pr),ur){var Ar=$p(cr);gA(Ar)&&nr.resetOrientation(cr)}var fr=er.nextSibling;return lr.addSubCommand(new or.RemoveElementCommand(er,fr,parent)),lr.addSubCommand(new or.InsertElementCommand(cr)),ar(),er.remove(),cr.setAttribute("id",dr),cr.removeAttribute("visibility"),ir([cr],!0),sr(lr),cr}return cr.remove(),null}(er,{fill:pr.fill,"fill-opacity":pr.fill_opacity,stroke:pr.stroke,"stroke-width":pr.stroke_width,"stroke-dasharray":pr.stroke_dasharray,"stroke-linejoin":pr.stroke_linejoin,"stroke-linecap":pr.stroke_linecap,"stroke-opacity":pr.stroke_opacity,opacity:pr.opacity,visibility:"hidden"},gr,yr,Tr,Fr,ev,Sr);var rr=Ar;Ey.each(rr,(function(er,tr){tr&&ar.convertToPath(tr)}))};var Ca=function changeSelectedAttributeNoUndo(er,tr,rr){"pathedit"===Jr&&yr.moveNode(er,tr);for(var nr=(rr=rr||Ar).length,ir=["g","polyline","path"],sr=function _loop(){var sr=rr[nr];if(of(sr))return"continue";if(("x"===er||"y"===er)&&ir.includes(sr.tagName)){var lr=YA([sr]),cr="x"===er?tr-lr.x:0,dr="y"===er?tr-lr.y:0;return ar.moveSelectedElements(cr*ur,dr*ur,!0),"continue"}var hr="#text"===er?sr.textContent:sr.getAttribute(er);if(of(hr)&&(hr=""),hr!==String(tr)){"#text"===er?(sr.textContent=tr,/rotate/.test(sr.getAttribute("transform"))&&(sr=Wn(sr))):"#href"===er?OA(sr,tr):sr.setAttribute(er,tr),"textedit"===Jr&&"#text"!==er&&sr.textContent.length&&fa.toSelectMode(sr),kd()&&"text"===sr.nodeName&&/rotate/.test(sr.getAttribute("transform"))&&(String(tr).startsWith("url")||["font-size","font-family","x","y"].includes(er)&&sr.textContent)&&(sr=Wn(sr)),Ar.includes(sr)&&setTimeout((function(){sr.parentNode&&Er.requestSelector(sr).resize()}),0);var pr=$A(sr);if(0!==pr&&"transform"!==er)for(var fr=$p(sr),gr=fr.numberOfItems;gr--;){if(4===fr.getItem(gr).type){fr.removeItem(gr);var mr=HA(sr),_r=pA(mr.x+mr.width/2,mr.y+mr.height/2,_A(fr).matrix),vr=_r.x,yr=_r.y,br=or.createSVGTransform();br.setRotate(pr,vr,yr),fr.insertItemBefore(br,gr);break}}}};nr--;)sr()},Ba=this.changeSelectedAttribute=function(er,tr,rr){rr=rr||Ar,ar.undoMgr.beginUndoableChange(er,rr),Ca(er,tr,rr);var nr=ar.undoMgr.finishUndoableChange();nr.isEmpty()||Sr(nr)};this.deleteSelectedElements=function(){for(var er=new Fy("Delete Elements"),tr=Ar.length,rr=[],nr=0;nr<tr;++nr){var ar=Ar[nr];if(of(ar))break;var ir=ar.parentNode,or=ar;Er.releaseSelector(or),Cv(or.id),"a"===ir.tagName&&1===ir.childNodes.length&&(or=ir,ir=ir.parentNode);var sr=or.nextSibling;or.remove();var lr=or;rr.push(ar),er.addSubCommand(new Py(lr,sr,ir))}Ar=[],er.isEmpty()||Sr(er),Pr("changed",rr),Tr()},this.cutSelectedElements=function(){ar.copySelectedElements(),ar.deleteSelectedElements()};var Ea="svgedit_clipboard";function flashStorage(){var er=sessionStorage.getItem(Ea);localStorage.setItem(Ea,er),setTimeout((function(){localStorage.removeItem(Ea)}),1)}window.addEventListener("storage",(function storageChange(er){er.newValue&&(er.key===Ea+"_startup"?(localStorage.removeItem(Ea+"_startup"),flashStorage()):er.key===Ea&&sessionStorage.setItem(Ea,er.newValue))}),!1),localStorage.setItem(Ea+"_startup",Math.random()),this.copySelectedElements=function(){var er=JSON.stringify(Ar.map((function(er){return fr(er)})));sessionStorage.setItem(Ea,er),flashStorage();var tr=Ey("#cmenu_canvas");tr.enableContextMenuItems&&tr.enableContextMenuItems("#paste,#paste_in_place")},this.pasteElements=function(er,tr,rr){var nr=JSON.parse(sessionStorage.getItem(Ea));if(nr){var ir=nr.length;if(ir){var or=[],sr=new Fy("Paste elements"),lr={};for(nr.forEach((function(er){return function checkIDs(er){er.attr&&er.attr.id&&(lr[er.attr.id]=Nr(),er.attr.id=lr[er.attr.id]),er.children&&er.children.forEach((function(er){return checkIDs(er)}))}(er)})),Hn("IDsUpdated",{elems:nr,changes:lr},!0).forEach((function(er){er&&"remove"in er&&er.remove.forEach((function(er){nr=nr.filter((function(tr){return tr.attr.id!==er}))}))}));ir--;){var cr=nr[ir];if(cr){var ur=gr(cr);or.push(ur),sr.addSubCommand(new Ly(ur)),jr(ur)}}if($n(or),"in_place"!==er){var dr,hr;er?"point"===er&&(dr=tr,hr=rr):(dr=Dn.x,hr=Dn.y);var pr=YA(or),Ar=dr-(pr.x+pr.width/2),fr=hr-(pr.y+pr.height/2),mr=[],_r=[];Ey.each(or,(function(er,tr){mr.push(Ar),_r.push(fr)}));var vr=ar.moveSelectedElements(mr,_r,!1);vr&&sr.addSubCommand(vr)}Sr(sr),Pr("changed",or)}}},this.groupSelectedElements=function(er,tr){er||(er="g");var rr,nr="";switch(er){case"a":nr="Make hyperlink",rr=tr||"";break;default:er="g",nr="Group Elements"}var ar=new Fy(nr),ir=gr({element:er,attr:{id:Nr()}});"a"===er&&OA(ir,rr),ar.addSubCommand(new Ly(ir));for(var or=Ar.length;or--;){var sr=Ar[or];if(!of(sr)){"a"===sr.parentNode.tagName&&1===sr.parentNode.childNodes.length&&(sr=sr.parentNode);var lr=sr.nextSibling,cr=sr.parentNode;ir.append(sr),ar.addSubCommand(new Ny(sr,lr,cr))}}ar.isEmpty()||Sr(ar),$n([ir],!0)};var Na=this.pushGroupProperties=function(er,tr){for(var rr,nr,ir,sr=er.childNodes,lr=sr.length,ur=er.getAttribute("transform"),dr=$p(er),hr=_A(dr).matrix,pr=new Fy("Push group properties"),Ar=$A(er),fr=Ey(er).attr(["filter","opacity"]),gr=cr(),mr=0;mr<lr;mr++){var _r=sr[mr];if(1===_r.nodeType){if(null!==fr.opacity&&1!==fr.opacity){var vr=Math.round((_r.getAttribute("opacity")||1)*fr.opacity*100)/100;Ba("opacity",vr,[_r])}if(fr.filter){var yr=this.getBlur(_r),br=yr;nr||(nr=this.getBlur(er)),yr?yr=Number(nr)+Number(yr):0===yr&&(yr=nr),br?rr=ZA(_r.getAttribute("filter")):rr?(rr=gr.copyElem(rr),DA().append(rr)):rr=ZA(fr.filter);var wr="feGaussianBlur"===rr.firstChild.tagName?"blur":"filter";rr.id=_r.id+"_"+wr,Ba("filter","url(#"+rr.id+")",[_r]),yr&&(Ba("stdDeviation",yr,[rr.firstChild]),ar.setBlurOffsets(rr,yr))}var kr=$p(_r);if(_r.tagName.includes("Gradient")&&(kr=null),kr&&"defs"!==_r.tagName&&dr.numberOfItems){if(Ar&&1===dr.numberOfItems){var xr=dr.getItem(0).matrix,Sr=or.createSVGMatrix(),Cr=$A(_r);Cr&&(Sr=kr.getItem(0).matrix);var Br=HA(_r),Er=_A(kr).matrix,Nr=pA(Br.x+Br.width/2,Br.y+Br.height/2,Er),Lr=Ar+Cr,Pr=or.createSVGTransform();Pr.setRotate(Lr,Nr.x,Nr.y);var Tr=fA(xr,Sr,Pr.matrix.inverse());if(Cr&&kr.removeItem(0),Lr&&(kr.numberOfItems?kr.insertItemBefore(Pr,0):kr.appendItem(Pr)),Tr.e||Tr.f){var Fr=or.createSVGTransform();Fr.setTranslate(Tr.e,Tr.f),kr.numberOfItems?kr.insertItemBefore(Fr,0):kr.appendItem(Fr)}}else{var Ur=_r.getAttribute("transform");(ir={}).transform=Ur||"";var Ir=or.createSVGTransform(),Rr=_A(kr).matrix,Mr=Rr.inverse(),Qr=fA(Mr,hr,Rr);Ir.setMatrix(Qr),kr.appendItem(Ir)}var Or=ky(_r);Or&&pr.addSubCommand(Or)}}}if(ur&&((ir={}).transform=ur,er.setAttribute("transform",""),er.removeAttribute("transform"),pr.addSubCommand(new Ty(er,ir))),tr&&!pr.isEmpty())return pr};this.ungroupSelectedElement=function(){var er=Ar[0];if(er)if(Ey(er).data("gsvg")||Ey(er).data("symbol"))ya(er);else{if("use"===er.tagName){var tr=ef(QA(er).substr(1));return Ey(er).data("symbol",tr).data("ref",tr),void ya(er)}var rr=Ey(er).parents("a");if(rr.length&&(er=rr[0]),"g"===er.tagName||"a"===er.tagName){var nr=new Fy("Ungroup Elements"),ar=Na(er,!0);ar&&nr.addSubCommand(ar);for(var ir=er.parentNode,or=er.nextSibling,sr=new Array(er.childNodes.length),lr=0;er.firstChild;){var cr=er.firstChild,ur=cr.nextSibling,dr=cr.parentNode;if("title"!==cr.tagName)or?or.before(cr):er.after(cr),sr[lr++]=cr,nr.addSubCommand(new Ny(cr,ur,dr));else{var hr=cr.nextSibling;nr.addSubCommand(new Py(cr,hr,dr)),cr.remove()}}Tr();var pr=er.nextSibling;er.remove(),nr.addSubCommand(new Py(er,pr,ir)),nr.isEmpty()||Sr(nr),Fr(sr)}}},this.moveToTopSelectedElement=function(){var er=_slicedToArray(Ar,1)[0];if(!of(er)){var tr=er,rr=tr.parentNode,nr=tr.nextSibling;nr!==(tr=tr.parentNode.appendChild(tr)).nextSibling&&(Sr(new Ny(tr,nr,rr,"top")),Pr("changed",[tr]))}},this.moveToBottomSelectedElement=function(){var er=_slicedToArray(Ar,1)[0];if(!of(er)){var tr=er,rr=tr.parentNode,nr=tr.nextSibling,ar=tr.parentNode.firstChild;"title"===ar.tagName&&(ar=ar.nextSibling),"defs"===ar.tagName&&(ar=ar.nextSibling),nr!==(tr=tr.parentNode.insertBefore(tr,ar)).nextSibling&&(Sr(new Ny(tr,nr,rr,"bottom")),Pr("changed",[tr]))}},this.moveUpDownSelected=function(er){var tr=Ar[0];if(tr){var rr,nr;Qn=[];var ar=Ey(Gn(YA([tr]))).toArray();if("Down"===er&&ar.reverse(),Ey.each(ar,(function(){return nr?(rr=this,!1):(this===tr&&(nr=!0),!0)})),rr){var ir=tr,or=ir.parentNode,sr=ir.nextSibling;Ey(rr)["Down"===er?"before":"after"](ir),sr!==ir.nextSibling&&(Sr(new Ny(ir,sr,or,"Move "+er)),Pr("changed",[ir]))}}},this.moveSelectedElements=function(er,tr,rr){er.constructor!==Array&&(er/=ur,tr/=ur),rr=rr||!0;for(var nr=new Fy("position"),ar=Ar.length;ar--;){var ir=Ar[ar];if(!of(ir)){var sr=or.createSVGTransform(),lr=$p(ir);er.constructor===Array?sr.setTranslate(er[ar],tr[ar]):sr.setTranslate(er,tr),lr.numberOfItems?lr.insertItemBefore(sr,0):lr.appendItem(sr);var cr=ky(ir);cr&&nr.addSubCommand(cr),Er.requestSelector(ir).resize()}}if(!nr.isEmpty())return rr&&Sr(nr),Pr("changed",Ar),nr},this.cloneSelectedElements=function(er,tr){var rr,nr,ar=new Fy("Clone Elements"),ir=Ar.length;for(Ar.sort((function sortfunction(er,tr){return Ey(tr).index()-Ey(er).index()})),rr=0;rr<ir&&(nr=Ar[rr],!of(nr));++rr);var or=Ar.slice(0,rr);this.clearSelection(!0);var sr=cr();for(rr=or.length;rr--;)nr=or[rr]=sr.copyElem(or[rr]),(dr||sr.getCurrentLayer()).append(nr),ar.addSubCommand(new Ly(nr));ar.isEmpty()||(Fr(or.reverse()),this.moveSelectedElements(er,tr,!1),Sr(ar))},this.alignSelectedElements=function(er,tr){var rr=[],nr=Ar.length;if(nr){for(var ir=Number.MAX_VALUE,or=Number.MIN_VALUE,sr=Number.MAX_VALUE,lr=Number.MIN_VALUE,cr=Number.MIN_VALUE,ur=Number.MIN_VALUE,dr=0;dr<nr&&!of(Ar[dr]);++dr){var hr=Ar[dr];switch(rr[dr]=YA([hr]),tr){case"smallest":(("l"===er||"c"===er||"r"===er)&&(cr===Number.MIN_VALUE||cr>rr[dr].width)||("t"===er||"m"===er||"b"===er)&&(ur===Number.MIN_VALUE||ur>rr[dr].height))&&(ir=rr[dr].x,sr=rr[dr].y,or=rr[dr].x+rr[dr].width,lr=rr[dr].y+rr[dr].height,cr=rr[dr].width,ur=rr[dr].height);break;case"largest":(("l"===er||"c"===er||"r"===er)&&(cr===Number.MIN_VALUE||cr<rr[dr].width)||("t"===er||"m"===er||"b"===er)&&(ur===Number.MIN_VALUE||ur<rr[dr].height))&&(ir=rr[dr].x,sr=rr[dr].y,or=rr[dr].x+rr[dr].width,lr=rr[dr].y+rr[dr].height,cr=rr[dr].width,ur=rr[dr].height);break;default:rr[dr].x<ir&&(ir=rr[dr].x),rr[dr].y<sr&&(sr=rr[dr].y),rr[dr].x+rr[dr].width>or&&(or=rr[dr].x+rr[dr].width),rr[dr].y+rr[dr].height>lr&&(lr=rr[dr].y+rr[dr].height)}}"page"===tr&&(ir=0,sr=0,or=ar.contentW,lr=ar.contentH);for(var pr=new Array(nr),fr=new Array(nr),gr=0;gr<nr&&!of(Ar[gr]);++gr){var mr=rr[gr];switch(pr[gr]=0,fr[gr]=0,er){case"l":pr[gr]=ir-mr.x;break;case"c":pr[gr]=(ir+or)/2-(mr.x+mr.width/2);break;case"r":pr[gr]=or-(mr.x+mr.width);break;case"t":fr[gr]=sr-mr.y;break;case"m":fr[gr]=(sr+lr)/2-(mr.y+mr.height/2);break;case"b":fr[gr]=lr-(mr.y+mr.height)}}this.moveSelectedElements(pr,fr)}},this.contentW=wa().w,this.contentH=wa().h,this.updateCanvas=function(er,tr){or.setAttribute("width",er),or.setAttribute("height",tr);var rr=Ey("#canvasBackground")[0],nr=sr.getAttribute("x"),ar=sr.getAttribute("y"),ir=(er-this.contentW*ur)/2,lr=(tr-this.contentH*ur)/2;tf(sr,{width:this.contentW*ur,height:this.contentH*ur,x:ir,y:lr,viewBox:"0 0 "+this.contentW+" "+this.contentH}),tf(rr,{width:sr.getAttribute("width"),height:sr.getAttribute("height"),x:ir,y:lr});var cr=ef("background_image");return cr&&tf(cr,{width:"100%",height:"100%"}),Er.selectorParentGroup.setAttribute("transform","translate("+ir+","+lr+")"),Hn("canvasUpdated",{new_x:ir,new_y:lr,old_x:nr,old_y:ar,d_x:ir-nr,d_y:lr-ar}),{x:ir,y:lr,old_x:nr,old_y:ar,d_x:ir-nr,d_y:lr-ar}},this.setBackground=function(er,tr){var rr=ef("canvasBackground"),nr=Ey(rr).find("rect")[0],ar=ef("background_image"),or=ef("background_pattern");if(nr.setAttribute("fill","chessboard"===er?"#fff":er),"chessboard"===er){if(!or){or=ir.createElementNS(Yu.SVG,"foreignObject"),tf(or,{id:"background_pattern",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"});var sr=document.createElement("div");tf(sr,{style:"pointer-events:none;width:100%;height:100%;background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"}),or.appendChild(sr),rr.append(or)}}else or&&or.remove();tr?(ar||(ar=ir.createElementNS(Yu.SVG,"image"),tf(ar,{id:"background_image",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"})),OA(ar,tr),rr.append(ar)):ar&&ar.remove()},this.cycleElement=function(er){var tr,rr=Ar[0],nr=!1,ar=XA(dr||cr().getCurrentLayer());if(ar.length){if(of(rr))nr=ar[tr=er?ar.length-1:0];else for(var ir=ar.length;ir--;)if(ar[ir]===rr){(tr=er?ir-1:ir+1)>=ar.length?tr=0:tr<0&&(tr=ar.length-1),nr=ar[tr];break}$n([nr],!0),Pr("selected",Ar)}},this.clear(),this.getPrivateMethods=function(){return{addCommandToHistory:Sr,BatchCommand:Fy,ChangeElementCommand:Ty,decode64:decode64,dropXMLInternalSubset:NA,encode64:encode64,ffClone:Wn,findDefs:DA,findDuplicateGradient:Sa,getElem:ef,getPathBBox:jA,getTypeMap:nA,getUrlFromAttr:MA,identifyLayers:Yv,InsertElementCommand:Ly,isChrome:Sd,isIdentity:AA,isIE:xd,logMatrix:Yn,MoveElementCommand:Ny,NS:Yu,preventClickDefault:af,RemoveElementCommand:Py,SVGEditTransformList:Yp,text2xml:IA,transformBox:mA,transformPoint:pA,walkTree:RA}}};var My=Boolean(window.opera),Qy=function fixIDs(er,tr,rr){var nr,ar=er.find("defs");if(!ar.length)return er;nr=My?ar.find("*").filter((function(){return Boolean(this.id)})):ar.find("[id]");var ir=er[0].getElementsByTagName("*"),or=ir.length;return nr.each((function(er){var rr=this.id,nr="x"+rr+tr+er;this.id=nr;var ar="url(#"+rr+")",sr="url(#"+nr+")";for(er=0;er<or;er++){var lr=ir[er];lr.getAttribute("fill")===ar&&lr.setAttribute("fill",sr),lr.getAttribute("stroke")===ar&&lr.setAttribute("stroke",sr),lr.getAttribute("filter")===ar&&lr.setAttribute("filter",sr)}})),er};
|
||
/**
|
||
* @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 Oy="http://www.w3.org/2000/svg",Dy="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(er,tr){return void 0===tr&&(tr=0),Math.round(er*Math.pow(10,tr))/Math.pow(10,tr)}window.console||(window.console={log:function log(er){},dir:function dir(er){}});var jy=function isNullish(er){return null==er};function __variableDynamicImportRuntime0__(er){switch(er){case"./locale/lang.af.js":return Promise.resolve().then((function(){return fx}));case"./locale/lang.ar.js":return Promise.resolve().then((function(){return gx}));case"./locale/lang.az.js":return Promise.resolve().then((function(){return mx}));case"./locale/lang.be.js":return Promise.resolve().then((function(){return _x}));case"./locale/lang.bg.js":return Promise.resolve().then((function(){return vx}));case"./locale/lang.ca.js":return Promise.resolve().then((function(){return yx}));case"./locale/lang.cs.js":return Promise.resolve().then((function(){return bx}));case"./locale/lang.cy.js":return Promise.resolve().then((function(){return wx}));case"./locale/lang.da.js":return Promise.resolve().then((function(){return kx}));case"./locale/lang.de.js":return Promise.resolve().then((function(){return xx}));case"./locale/lang.el.js":return Promise.resolve().then((function(){return Sx}));case"./locale/lang.en.js":return Promise.resolve().then((function(){return Cx}));case"./locale/lang.es.js":return Promise.resolve().then((function(){return Bx}));case"./locale/lang.et.js":return Promise.resolve().then((function(){return Ex}));case"./locale/lang.fa.js":return Promise.resolve().then((function(){return Nx}));case"./locale/lang.fi.js":return Promise.resolve().then((function(){return Lx}));case"./locale/lang.fr.js":return Promise.resolve().then((function(){return Px}));case"./locale/lang.fy.js":return Promise.resolve().then((function(){return Tx}));case"./locale/lang.ga.js":return Promise.resolve().then((function(){return Fx}));case"./locale/lang.gl.js":return Promise.resolve().then((function(){return Ux}));case"./locale/lang.he.js":return Promise.resolve().then((function(){return Ix}));case"./locale/lang.hi.js":return Promise.resolve().then((function(){return Rx}));case"./locale/lang.hr.js":return Promise.resolve().then((function(){return Mx}));case"./locale/lang.hu.js":return Promise.resolve().then((function(){return Qx}));case"./locale/lang.hy.js":return Promise.resolve().then((function(){return Ox}));case"./locale/lang.id.js":return Promise.resolve().then((function(){return Dx}));case"./locale/lang.is.js":return Promise.resolve().then((function(){return jx}));case"./locale/lang.it.js":return Promise.resolve().then((function(){return Hx}));case"./locale/lang.ja.js":return Promise.resolve().then((function(){return Gx}));case"./locale/lang.ko.js":return Promise.resolve().then((function(){return Vx}));case"./locale/lang.lt.js":return Promise.resolve().then((function(){return zx}));case"./locale/lang.lv.js":return Promise.resolve().then((function(){return Kx}));case"./locale/lang.mk.js":return Promise.resolve().then((function(){return qx}));case"./locale/lang.ms.js":return Promise.resolve().then((function(){return Wx}));case"./locale/lang.mt.js":return Promise.resolve().then((function(){return Xx}));case"./locale/lang.nl.js":return Promise.resolve().then((function(){return Yx}));case"./locale/lang.no.js":return Promise.resolve().then((function(){return Jx}));case"./locale/lang.pl.js":return Promise.resolve().then((function(){return $x}));case"./locale/lang.pt-BR.js":return Promise.resolve().then((function(){return Zx}));case"./locale/lang.pt-PT.js":return Promise.resolve().then((function(){return eS}));case"./locale/lang.ro.js":return Promise.resolve().then((function(){return tS}));case"./locale/lang.ru.js":return Promise.resolve().then((function(){return rS}));case"./locale/lang.sk.js":return Promise.resolve().then((function(){return nS}));case"./locale/lang.sl.js":return Promise.resolve().then((function(){return aS}));case"./locale/lang.sq.js":return Promise.resolve().then((function(){return iS}));case"./locale/lang.sr.js":return Promise.resolve().then((function(){return oS}));case"./locale/lang.sv.js":return Promise.resolve().then((function(){return sS}));case"./locale/lang.sw.js":return Promise.resolve().then((function(){return lS}));case"./locale/lang.test.js":return Promise.resolve().then((function(){return cS}));case"./locale/lang.th.js":return Promise.resolve().then((function(){return uS}));case"./locale/lang.tl.js":return Promise.resolve().then((function(){return dS}));case"./locale/lang.tr.js":return Promise.resolve().then((function(){return hS}));case"./locale/lang.uk.js":return Promise.resolve().then((function(){return pS}));case"./locale/lang.vi.js":return Promise.resolve().then((function(){return AS}));case"./locale/lang.yi.js":return Promise.resolve().then((function(){return fS}));case"./locale/lang.zh-CN.js":return Promise.resolve().then((function(){return gS}));case"./locale/lang.zh-HK.js":return Promise.resolve().then((function(){return mS}));case"./locale/lang.zh-TW.js":return Promise.resolve().then((function(){return _S}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+er))}}
|
||
/**
|
||
* 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 Hy,Gy=jQuery,Vy=function setStrings(er,tr,rr){var nr=Gy("#svg_editor").parent();Object.entries(tr).forEach((function(tr){var ar=_slicedToArray(tr,2),ir=ar[0],or=ar[1];if(or){rr&&(ir="#"+ir);var sr=nr.find(ir);if(sr.length){var lr=sr[0];switch(er){case"aria-label":lr.setAttribute("aria-label",or);break;case"content":_toConsumableArray(lr.childNodes).some((function(er){return!(3!==er.nodeType||!er.textContent.trim())&&(er.textContent=or,!0)}));break;case"title":lr.title=or}}else console.log("Missing element for localization: "+ir)}else console.log(ir)}))},zy=function readLang(er){var tr=er.tools,rr=er.properties,nr=er.config,ar=er.layers,ir=er.common,or=er.ui;Vy("content",{curve_segments:rr.curve_segments,fitToContent:tr.fitToContent,fit_to_all:tr.fit_to_all,fit_to_canvas:tr.fit_to_canvas,fit_to_layer_content:tr.fit_to_layer_content,fit_to_sel:tr.fit_to_sel,icon_large:nr.icon_large,icon_medium:nr.icon_medium,icon_small:nr.icon_small,icon_xlarge:nr.icon_xlarge,image_opt_embed:nr.image_opt_embed,image_opt_ref:nr.image_opt_ref,includedImages:nr.included_images,largest_object:tr.largest_object,layersLabel:ar.layers,page:tr.page,relativeToLabel:tr.relativeTo,selLayerLabel:ar.move_elems_to,selectedPredefined:nr.select_predefined,selected_objects:tr.selected_objects,smallest_object:tr.smallest_object,straight_segments:rr.straight_segments,svginfo_bg_url:nr.editor_img_url+":",svginfo_bg_note:nr.editor_bg_note,svginfo_change_background:nr.background,svginfo_dim:nr.doc_dims,svginfo_editor_prefs:nr.editor_prefs,svginfo_height:ir.height,svginfo_icons:nr.icon_size,svginfo_image_props:nr.image_props,svginfo_lang:nr.language,svginfo_title:nr.doc_title,svginfo_width:ir.width,tool_docprops_cancel:ir.cancel,tool_docprops_save:ir.ok,tool_source_cancel:ir.cancel,tool_source_save:ir.ok,tool_prefs_cancel:ir.cancel,tool_prefs_save:ir.ok,sidepanel_handle:ar.layers.split("").join(" "),tool_clear:tr.new_doc,tool_docprops:tr.docprops,tool_export:tr.export_img,tool_import:tr.import_doc,tool_open:tr.open_doc,tool_save:tr.save_doc,tool_editor_prefs:nr.editor_prefs,tool_editor_homepage:tr.editor_homepage,svginfo_units_rulers:nr.units_and_rulers,svginfo_rulers_onoff:nr.show_rulers,svginfo_unit:nr.base_unit,svginfo_grid_settings:nr.grid,svginfo_snap_onoff:nr.snapping_onoff,svginfo_snap_step:nr.snapping_stepsize,svginfo_grid_color:nr.grid_color},!0);var sr={};["cut","copy","paste","paste_in_place","delete","group","ungroup","move_front","move_up","move_down","move_back"].forEach((function(er){sr['#cmenu_canvas a[href="#'+er+'"]']=tr[er]})),["dupe","merge_down","merge_all"].forEach((function(er){sr['#cmenu_layers a[href="#'+er+'"]']=ar[er]})),sr['#cmenu_layers a[href="#delete"]']=ar.del,Vy("content",sr);var lr={};return Object.entries({tool_blur:rr.blur,tool_position:tr.align_to_page,tool_font_family:rr.font_family,zoom_panel:or.zoom_level,stroke_linejoin:rr.linejoin_miter,stroke_linecap:rr.linecap_butt,tool_opacity:rr.opacity}).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];lr["#"+rr+" button"]=nr})),Object.entries({group_opacity:rr.opacity,zoom:or.zoom_level}).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];lr["#"+rr]=nr})),Vy("aria-label",lr),Vy("title",{align_relative_to:tr.align_relative_to,circle_cx:rr.circle_cx,circle_cy:rr.circle_cy,circle_r:rr.circle_r,cornerRadiusLabel:rr.corner_radius,ellipse_cx:rr.ellipse_cx,ellipse_cy:rr.ellipse_cy,ellipse_rx:rr.ellipse_rx,ellipse_ry:rr.ellipse_ry,fill_color:rr.fill_color,font_family:rr.font_family,idLabel:rr.id,image_height:rr.image_height,image_url:rr.image_url,image_width:rr.image_width,layer_delete:ar.del,layer_down:ar.move_down,layer_new:ar.new,layer_rename:ar.rename,layer_moreopts:ir.more_opts,layer_up:ar.move_up,line_x1:rr.line_x1,line_x2:rr.line_x2,line_y1:rr.line_y1,line_y2:rr.line_y2,linecap_butt:rr.linecap_butt,linecap_round:rr.linecap_round,linecap_square:rr.linecap_square,linejoin_bevel:rr.linejoin_bevel,linejoin_miter:rr.linejoin_miter,linejoin_round:rr.linejoin_round,main_icon:tr.main_menu,palette:or.palette_info,zoom_panel:or.zoom_level,path_node_x:rr.node_x,path_node_y:rr.node_y,rect_height_tool:rr.rect_height,rect_width_tool:rr.rect_width,seg_type:rr.seg_type,selLayerNames:ar.move_selected,selected_x:rr.pos_x,selected_y:rr.pos_y,stroke_color:rr.stroke_color,stroke_style:rr.stroke_style,stroke_width:rr.stroke_width,svginfo_title:nr.doc_title,text:rr.text_contents,toggle_stroke_tools:or.toggle_stroke_tools,tool_add_subpath:tr.add_subpath,tool_alignbottom:tr.align_bottom,tool_aligncenter:tr.align_center,tool_alignleft:tr.align_left,tool_alignmiddle:tr.align_middle,tool_alignright:tr.align_right,tool_aligntop:tr.align_top,tool_angle:rr.angle,tool_blur:rr.blur,tool_bold:rr.bold,tool_circle:tr.mode_circle,tool_clone:tr.clone,tool_clone_multi:tr.clone,tool_delete:tr.del,tool_delete_multi:tr.del,tool_ellipse:tr.mode_ellipse,tool_fhellipse:tr.mode_fhellipse,tool_fhpath:tr.mode_fhpath,tool_fhrect:tr.mode_fhrect,tool_font_size:rr.font_size,tool_group_elements:tr.group_elements,tool_make_link:tr.make_link,tool_link_url:tr.set_link_url,tool_image:tr.mode_image,tool_italic:rr.italic,tool_line:tr.mode_line,tool_move_bottom:tr.move_bottom,tool_move_top:tr.move_top,tool_node_clone:tr.node_clone,tool_node_delete:tr.node_delete,tool_node_link:tr.node_link,tool_opacity:rr.opacity,tool_openclose_path:tr.openclose_path,tool_path:tr.mode_path,tool_position:tr.align_to_page,tool_rect:tr.mode_rect,tool_redo:tr.redo,tool_reorient:tr.reorient_path,tool_select:tr.mode_select,tool_source:tr.source_save,tool_square:tr.mode_square,tool_text:tr.mode_text,tool_topath:tr.to_path,tool_undo:tr.undo,tool_ungroup:tr.ungroup,tool_wireframe:tr.wireframe_mode,tool_zoom:tr.mode_zoom,url_notice:tr.no_embed},!0),{langParam:Hy,langData:er}},Ky=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee(er,tr){var rr;return regeneratorRuntime.wrap((function _callee$(nr){for(;;)switch(nr.prev=nr.next){case 0:return er?Hy=er:navigator.userLanguage?Hy=navigator.userLanguage:navigator.language&&(Hy=navigator.language),console.log("Lang: "+Hy),tr.includes(Hy)||"test"===Hy||(Hy="en"),nr.next=5,__variableDynamicImportRuntime0__("./locale/lang.".concat(Hy,".js"));case 5:return rr=nr.sent,nr.abrupt("return",zy(rr.default));case 7:case"end":return nr.stop()}}),_callee)})));return function putLocale(tr,rr){return er.apply(this,arguments)}}(),qy=function $q(er){return document.querySelector(er)},Wy={},Xy=[function jQueryPluginJSHotkeys(er){function a(tr){if("string"==typeof tr.data){var rr=tr.handler,nr=tr.data.toLowerCase().split(" ");tr.handler=function(tr){if(this===tr.target||27===tr.which||!/textarea|select/i.test(tr.target.nodeName)&&"text"!==tr.target.type){var ar="keypress"!==tr.type&&er.hotkeys.specialKeys[tr.which],ir=String.fromCharCode(tr.which).toLowerCase(),or="",sr={};tr.altKey&&"alt"!==ar&&(or+="alt+"),tr.ctrlKey&&"ctrl"!==ar&&(or+="ctrl+"),tr.metaKey&&!tr.ctrlKey&&"meta"!==ar&&(or+="meta+"),tr.shiftKey&&"shift"!==ar&&(or+="shift+"),ar?sr[or+ar]=!0:(sr[or+ir]=!0,sr[or+er.hotkeys.shiftNums[ir]]=!0,"shift+"===or&&(sr[er.hotkeys.shiftNums[ir]]=!0));for(var lr=0,cr=nr.length;lr<cr;lr++)if(sr[nr[lr]])return rr.apply(this,arguments)}}}}return er.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:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}},er.each(["keydown","keyup","keypress"],(function(){er.event.special[this]={add:a}})),er},function jQueryPluginSVGIcons(er){var tr={};return er.svgIcons=function(rr){var nr,ar,ir,or,sr,lr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},cr="http://www.w3.org/2000/svg",ur="http://www.w3.org/1999/xlink",dr=lr.w||24,hr=lr.h||24,pr=!1,Ar=!1,fr=0,gr="data:image/svg+xml;charset=utf-8;base64,";if(lr.svgz){or=er('<object data="'+rr+'" type=image/svg+xml>').appendTo("body").hide();try{ar=or[0].contentDocument,or.load(getIcons),getIcons(0,!0)}catch(er){useFallback()}}else{var mr=new DOMParser;er.ajax({url:rr,dataType:"string",success:function success(tr){tr?(ar=mr.parseFromString(tr,"text/xml"),er((function(){getIcons("ajax")}))):er(useFallback)},error:function error(tr){window.opera?er((function(){useFallback()})):tr.responseText?((ar=mr.parseFromString(tr.responseText,"text/xml")).childNodes.length||er(useFallback),er((function(){getIcons("ajax")}))):er(useFallback)}})}function getIcons(tr,rr){if("ajax"!==tr){if(Ar)return;var sr=(ar=or[0].contentDocument)&&ar.getElementById("svg_eof");if(!(sr||rr&&sr))return void(++fr<50?setTimeout(getIcons,20):(useFallback(),Ar=!0));Ar=!0}if(nr=er(ar.firstChild).children(),lr.no_img)setTimeout((function(){pr||makeIcons()}),500);else{var cr=gr+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNzUiIGhlaWdodD0iMjc1Ij48L3N2Zz4%3D";ir=er(new Image).attr({src:cr,width:0,height:0,alt:lr.testIconAlt||"icon"}).appendTo("body").load((function(){makeIcons(!0)})).error((function(){makeIcons()}))}}function setIcon(er,tr,rr,nr){if(My&&tr.css("visibility","hidden"),lr.replace){nr&&tr.attr("id",rr);var ar=er.attr("class");if(ar&&tr.attr("class","svg_icon "+ar),!er.alt){var ir="icon";lr.alts&&(ir=lr.alts[rr]||ir),tr.attr("alt",ir)}er.replaceWith(tr)}else er.append(tr);My&&setTimeout((function(){tr.removeAttr("style")}),1)}function addIcon(er,rr){void 0!==lr.id_match&&!1===lr.id_match||setIcon(sr,er,rr,!0),tr[rr]=er}function makeIcons(){var rr=arguments.length>0&&void 0!==arguments[0]&&arguments[0],ar=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!pr){var Ar;if(lr.no_img&&(rr=!1),rr&&(Ar=er(document.createElement("div"))).hide().appendTo("body"),ar){var fr=lr.fallback_path||"";er.each(ar,(function(tr,rr){sr=er("#"+tr);var nr="icon";lr.alts&&(nr=lr.alts[tr]||nr),addIcon(er(new Image).attr({class:"svg_icon",src:fr+rr,width:dr,height:hr,alt:nr}),tr)}))}else for(var mr=nr.length,_r=0;_r<mr;_r++){var vr=nr[_r],yr=vr.id;if("svg_eof"===yr)break;sr=er("#"+yr);var br=document.createElementNS(cr,"svg");br.setAttribute("viewBox",[0,0,dr,hr].join(" "));var wr=vr.getElementsByTagNameNS(cr,"svg")[0],kr=wr.getAttribute("width"),xr=wr.getAttribute("height");wr.removeAttribute("width"),wr.removeAttribute("height");var Sr=wr.getAttribute("viewBox");Sr||wr.setAttribute("viewBox",[0,0,kr,xr].join(" ")),br.setAttribute("xmlns",cr),br.setAttribute("width",dr),br.setAttribute("height",hr),br.setAttribute("xmlns:xlink",ur),br.setAttribute("class","svg_icon"),My||(wr=wr.cloneNode(!0)),br.append(wr);var Cr=void 0;if(rr){Ar.empty().append(br);var Br=gr+encode64(unescape(encodeURIComponent((new XMLSerializer).serializeToString(br)))),Er="icon";lr.alts&&(Er=lr.alts[yr]||Er),Cr=er(new Image).attr({class:"svg_icon",src:Br,alt:Er})}else Cr=Qy(er(br),_r);addIcon(Cr,yr)}lr.placement&&er.each(lr.placement,(function(nr,ar){tr[ar]&&er(nr).each((function(nr){var ir=tr[ar].clone();nr>0&&!rr&&(ir=Qy(ir,nr)),setIcon(er(this),ir,ar)}))})),ar||(rr&&Ar.remove(),or&&or.remove(),ir&&ir.remove()),lr.resize&&er.resizeSvgIcons(lr.resize),pr=!0,lr.callback&&lr.callback(tr)}}function useFallback(){if(rr.includes(".svgz")){var tr=rr.replace(".svgz",".svg");window.console&&console.log(".svgz failed, trying with .svg"),er.svgIcons(tr,lr)}else lr.fallback&&makeIcons(!1,lr.fallback)}},er.getSvgIcon=function(er,rr){var nr=tr[er];return rr&&nr&&(nr=Qy(nr,0).clone(!0)),nr},er.resizeSvgIcons=function(tr){var rr=!er(".svg_icon:first").length;er.each(tr,(function(tr,nr){var ar=Array.isArray(nr),ir=ar?nr[0]:nr,or=ar?nr[1]:nr;rr&&(tr=tr.replace(/\.svg_icon/g,"svg")),er(tr).each((function(){this.setAttribute("width",ir),this.setAttribute("height",or),window.opera&&window.widget&&(this.parentNode.style.width=ir+"px",this.parentNode.style.height=or+"px")}))}))},er},function jQueryPluginJGraduate(er){er.jGraduate={Paint:function Paint(er){_classCallCheck(this,Paint);var tr=er||{};if(this.alpha=isNaN(tr.alpha)?100:tr.alpha,tr.copy)switch(this.type=tr.copy.type,this.alpha=tr.copy.alpha,this.solidColor=null,this.linearGradient=null,this.radialGradient=null,this.type){case"none":break;case"solidColor":this.solidColor=tr.copy.solidColor;break;case"linearGradient":this.linearGradient=tr.copy.linearGradient.cloneNode(!0);break;case"radialGradient":this.radialGradient=tr.copy.radialGradient.cloneNode(!0)}else tr.linearGradient?(this.type="linearGradient",this.solidColor=null,this.radialGradient=null,this.linearGradient=tr.linearGradient.cloneNode(!0)):tr.radialGradient?(this.type="radialGradient",this.solidColor=null,this.linearGradient=null,this.radialGradient=tr.radialGradient.cloneNode(!0)):tr.solidColor?(this.type="solidColor",this.solidColor=tr.solidColor):(this.type="none",this.solidColor=null,this.linearGradient=null,this.radialGradient=null)}},er.fn.jGraduateDefaults={paint:new er.jGraduate.Paint,window:{pickerTitle:"Drag markers to pick a paint"},images:{clientPath:"images/"},newstop:"inverse"};var tr=navigator.userAgent.includes("Gecko/");function mkElem(er,rr,nr){var ar=document.createElementNS(Oy,er);return function setAttrs(er,rr){tr?Object.entries(rr).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ar=rr[1];er.setAttribute(nr,ar)})):Object.entries(rr).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ar=rr[1],ir=er[nr];ir&&"SVGLength"===ir.constructor?ir.baseVal.value=ar:er.setAttribute(nr,ar)}))}(ar,rr),nr&&nr.append(ar),ar}return er.fn.jGraduate=function(tr,rr,nr){return this.each((function(){var ar=er(this),ir=er.extend(!0,{},er.fn.jGraduateDefaults,tr||{}),or=ar.attr("id"),sr="#"+ar.attr("id")+" ";if(sr){var lr=function okClicked(){switch(ar.paint.type){case"radialGradient":ar.paint.linearGradient=null;break;case"linearGradient":ar.paint.radialGradient=null;break;case"solidColor":ar.paint.radialGradient=ar.paint.linearGradient=null}"function"==typeof ar.okCallback&&ar.okCallback(ar.paint),ar.hide()},cr=function cancelClicked(){"function"==typeof ar.cancelCallback&&ar.cancelCallback(),ar.hide()};er.extend(!0,ar,{paint:new er.jGraduate.Paint({copy:ir.paint}),okCallback:"function"==typeof rr?rr:null,cancelCallback:"function"==typeof nr?nr:null});var ur=null,dr=er(window);"none"===ar.paint.type&&(ar.paint=new er.jGraduate.Paint({solidColor:"ffffff"})),ar.addClass("jGraduate_Picker"),ar.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="'+or+'_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>');var hr=er(sr+"> .jGraduate_colPick"),pr=er(sr+"> .jGraduate_gradPick");pr.html('<div id="'+or+'_jGraduate_Swatch" class="jGraduate_Swatch"><h2 class="jGraduate_Title">'+ir.window.pickerTitle+'</h2><div id="'+or+'_jGraduate_GradContainer" class="jGraduate_GradContainer"></div><div id="'+or+'_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="'+or+'_jGraduate_x1" size="3" title="Enter starting x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+or+'_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="'+or+'_jGraduate_x2" size="3" title="Enter ending x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+or+'_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="'+or+'_jGraduate_cx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+or+'_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="'+or+'_jGraduate_match_ctr"/></label><br/><label>x:</label><input type="text" id="'+or+'_jGraduate_fx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+or+'_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="'+or+'_jGraduate_Radius" class="jGraduate_SliderBar jGraduate_Radius" title="Click to set radius"><img id="'+or+'_jGraduate_RadiusArrows" class="jGraduate_RadiusArrows" src="'+ir.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+or+'_jGraduate_RadiusInput" size="3" value="100"/>%</label></div><div class="jGraduate_Slider jGraduate_EllipField jGraduate_rg_field"><label class="prelabel">Ellip:</label><div id="'+or+'_jGraduate_Ellip" class="jGraduate_SliderBar jGraduate_Ellip" title="Click to set Ellip"><img id="'+or+'_jGraduate_EllipArrows" class="jGraduate_EllipArrows" src="'+ir.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+or+'_jGraduate_EllipInput" size="3" value="0"/>%</label></div><div class="jGraduate_Slider jGraduate_AngleField jGraduate_rg_field"><label class="prelabel">Angle:</label><div id="'+or+'_jGraduate_Angle" class="jGraduate_SliderBar jGraduate_Angle" title="Click to set Angle"><img id="'+or+'_jGraduate_AngleArrows" class="jGraduate_AngleArrows" src="'+ir.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+or+'_jGraduate_AngleInput" size="3" value="0"/>deg</label></div><div class="jGraduate_Slider jGraduate_OpacField"><label class="prelabel">Opac:</label><div id="'+or+'_jGraduate_Opac" class="jGraduate_SliderBar jGraduate_Opac" title="Click to set Opac"><img id="'+or+'_jGraduate_OpacArrows" class="jGraduate_OpacArrows" src="'+ir.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+or+'_jGraduate_OpacInput" size="3" value="100"/>%</label></div></div><div class="jGraduate_OkCancel"><input type="button" id="'+or+'_jGraduate_Ok" class="jGraduate_Ok" value="OK"/><input type="button" id="'+or+'_jGraduate_Cancel" class="jGraduate_Cancel" value="Cancel"/></div>');var Ar=256,fr={},gr=145;er(".jGraduate_SliderBar").width(gr);var mr,_r=er("#"+or+"_jGraduate_GradContainer")[0],vr=mkElem("svg",{id:or+"_jgraduate_svg",width:Ar,height:Ar,xmlns:Oy},_r),yr=ar.paint.type,br=ar.paint[yr],wr=br,kr=ar.paint.alpha,xr="solidColor"===yr;switch(yr){case"solidColor":case"linearGradient":if(xr||(wr.id=or+"_lg_jgraduate_grad",br=wr=vr.appendChild(wr)),mkElem("radialGradient",{id:or+"_rg_jgraduate_grad"},vr),"linearGradient"===yr)break;case"radialGradient":xr||(wr.id=or+"_rg_jgraduate_grad",br=wr=vr.appendChild(wr)),mkElem("linearGradient",{id:or+"_lg_jgraduate_grad"},vr)}if(xr){br=wr=er("#"+or+"_lg_jgraduate_grad")[0],mkStop(0,"#"+(ur=ar.paint[yr]),1);var Sr=_typeof(ir.newstop);if("string"===Sr)switch(ir.newstop){case"same":mkStop(1,"#"+ur,1);break;case"inverse":for(var Cr="",Br=0;Br<6;Br+=2){var Er=(255-Number.parseInt(ur.substr(Br,2),16)).toString(16);Er.length<2&&(Er=0+Er),Cr+=Er}mkStop(1,"#"+Cr,1);break;case"white":mkStop(1,"#ffffff",1);break;case"black":mkStop(1,"#000000",1)}else if("object"===Sr){var Nr="opac"in ir.newstop?ir.newstop.opac:1;mkStop(1,ir.newstop.color||"#"+ur,Nr)}}var Lr,Pr=Number.parseFloat(br.getAttribute("x1")||0),Tr=Number.parseFloat(br.getAttribute("y1")||0),Fr=Number.parseFloat(br.getAttribute("x2")||1),Ur=Number.parseFloat(br.getAttribute("y2")||0),Ir=Number.parseFloat(br.getAttribute("cx")||.5),Rr=Number.parseFloat(br.getAttribute("cy")||.5),Mr=Number.parseFloat(br.getAttribute("fx")||Ir),Qr=Number.parseFloat(br.getAttribute("fy")||Rr),Or=mkElem("rect",{id:or+"_jgraduate_rect",x:0,y:0,width:256,height:256,fill:"url(#"+or+"_jgraduate_grad)","fill-opacity":kr/100},vr),Dr=er("<div/>").attr({class:"grad_coord jGraduate_lg_field",title:"Begin Stop"}).text(1).css({top:Tr*Ar,left:Pr*Ar}).data("coord","start").appendTo(_r),jr=Dr.clone().text(2).css({top:Ur*Ar,left:Fr*Ar}).attr("title","End stop").data("coord","end").appendTo(_r),Hr=er("<div/>").attr({class:"grad_coord jGraduate_rg_field",title:"Center stop"}).text("C").css({top:Rr*Ar,left:Ir*Ar}).data("coord","center").appendTo(_r),Gr=Hr.clone().text("F").css({top:Qr*Ar,left:Mr*Ar,display:"none"}).attr("title","Focus point").data("coord","focus").appendTo(_r);Gr[0].id=or+"_jGraduate_focusCoord",er.each(["x1","y1","x2","y2","cx","cy","fx","fy"],(function(tr,rr){var nr=isNaN(rr[1]),ar=wr.getAttribute(rr);ar||(ar=nr?"0.5":"x2"===rr?"1.0":"0.0"),fr[rr]=er("#"+or+"_jGraduate_"+rr).val(ar).change((function(){isNaN(Number.parseFloat(this.value))||this.value<0?this.value=0:this.value>1&&(this.value=1),("f"!==rr[0]||Lr)&&(nr&&"radialGradient"===yr||!nr&&"linearGradient"===yr)&&wr.setAttribute(rr,this.value);var er=nr?"c"===rr[0]?Hr:Gr:"1"===rr[1]?Dr:jr,tr=rr.includes("x")?"left":"top";er.css(tr,this.value*Ar)})).change()}));var Vr,zr,Kr,qr,Wr=er("#"+or+"_jGraduate_StopSlider"),Xr=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),Yr=1,Jr=1,$r=0,Zr=Ir,Tn=Rr,Un=mkElem("svg",{width:"100%",height:45},Wr[0]),Qn=mkElem("pattern",{width:16,height:16,patternUnits:"userSpaceOnUse",id:"jGraduate_trans"},Un),Dn=mkElem("image",{width:16,height:16},Qn),Hn=ir.images.clientPath+"map-opacity.png";Dn.setAttributeNS(Dy,"xlink:href",Hn),er(Un).click((function(er){if(qr=Wr.offset(),"path"!==er.target.tagName){var tr=er.pageX-qr.left-8;mkStop((tr=tr<10?10:tr>266?266:tr)/Ar,0,0,!0),er.stopPropagation()}})),er(Un).mouseover((function(){Un.append(Xr)})),mr=mkElem("g",{},Un),mkElem("line",{x1:10,y1:15,x2:266,y2:15,"stroke-width":2,stroke:"#000"},Un);var Gn,Vn,zn,Kn,Wn=pr.find(".jGraduate_spreadMethod").change((function(){wr.setAttribute("spreadMethod",er(this).val())})),Xn=null,Yn=function onCoordDrag(er){var tr=er.pageX-Gn.left,rr=er.pageY-Gn.top;tr=tr<0?0:tr>Ar?Ar:tr,rr=rr<0?0:rr>Ar?Ar:rr,Xn.css("left",tr).css("top",rr);var nr=tr/256,ar=rr/256,ir=Xn.data("coord"),or=wr;switch(ir){case"start":fr.x1.val(nr),fr.y1.val(ar),or.setAttribute("x1",nr),or.setAttribute("y1",ar);break;case"end":fr.x2.val(nr),fr.y2.val(ar),or.setAttribute("x2",nr),or.setAttribute("y2",ar);break;case"center":fr.cx.val(nr),fr.cy.val(ar),or.setAttribute("cx",nr),or.setAttribute("cy",ar),Zr=nr,Tn=ar,xform();break;case"focus":fr.fx.val(nr),fr.fy.val(ar),or.setAttribute("fx",nr),or.setAttribute("fy",ar),xform()}er.preventDefault()},Jn=function onCoordUp(){Xn=null,dr.unbind("mousemove",Yn).unbind("mouseup",onCoordUp)},$n=(Vr=wr.getElementsByTagNameNS(Oy,"stop")).length;if($n<2){for(;$n<2;)wr.append(document.createElementNS(Oy,"stop")),++$n;Vr=wr.getElementsByTagNameNS(Oy,"stop")}for(var Zn=0;Zn<$n;Zn++)mkStop(0,0,0,0,Vr[Zn]);if(Wn.val(wr.getAttribute("spreadMethod")||"pad"),Lr=!1,Or.setAttribute("fill-opacity",kr/100),er("#"+or+" div.grad_coord").mousedown((function(tr){tr.preventDefault(),Xn=er(this),Gn=Xn.parent().offset(),dr.mousemove(Yn).mouseup(Jn)})),er("#"+or+"_jGraduate_Ok").bind("click",(function(){ar.paint.type=yr,ar.paint[yr]=wr.cloneNode(!0),ar.paint.solidColor=null,lr()})),er("#"+or+"_jGraduate_Cancel").bind("click",(function(er){cr()})),"radialGradient"===yr&&(Lr?Gr.show():(Gr.hide(),fr.fx.val(""),fr.fy.val(""))),er("#"+or+"_jGraduate_match_ctr")[0].checked=!Lr,er("#"+or+"_jGraduate_match_ctr").change((function(){Lr=!this.checked,Gr.toggle(Lr),fr.fx.val(""),fr.fy.val("");var er=wr;if(Lr){var tr=Vn||.5,rr=zn||.5;er.setAttribute("fx",tr),er.setAttribute("fy",rr),fr.fx.val(tr),fr.fy.val(rr)}else Vn=er.getAttribute("fx"),zn=er.getAttribute("fy"),er.removeAttribute("fx"),er.removeAttribute("fy")})),($n=(Vr=wr.getElementsByTagNameNS(Oy,"stop")).length)<2){for(;$n<2;)wr.append(document.createElementNS(Oy,"stop")),++$n;Vr=wr.getElementsByTagNameNS(Oy,"stop")}var ea=0,ta=0;if("radialGradient"===yr){var ra=wr.gradientTransform.baseVal;if(2===ra.numberOfItems){var na=ra.getItem(0),aa=ra.getItem(1);if(2===na.type&&3===aa.type){var ia=aa.matrix;1!==ia.a?ea=Math.round(100*-(1-ia.a)):1!==ia.d&&(ea=Math.round(100*(1-ia.d)))}}else if(3===ra.numberOfItems){var oa=ra.getItem(0),sa=ra.getItem(1),la=ra.getItem(2);if(4===oa.type&&2===sa.type&&3===la.type){ta=Math.round(oa.angle);var ca=la.matrix;1!==ca.a?ea=Math.round(100*-(1-ca.a)):1!==ca.d&&(ea=Math.round(100*(1-ca.d)))}}}var ua={radius:{handle:"#"+or+"_jGraduate_RadiusArrows",input:"#"+or+"_jGraduate_RadiusInput",val:100*(wr.getAttribute("r")||.5)},opacity:{handle:"#"+or+"_jGraduate_OpacArrows",input:"#"+or+"_jGraduate_OpacInput",val:ar.paint.alpha||100},ellip:{handle:"#"+or+"_jGraduate_EllipArrows",input:"#"+or+"_jGraduate_EllipInput",val:ea},angle:{handle:"#"+or+"_jGraduate_AngleArrows",input:"#"+or+"_jGraduate_AngleInput",val:ta}};er.each(ua,(function(tr,rr){var nr=er(rr.handle);nr.mousedown((function(ar){var ir=nr.parent();Kn={type:tr,elem:nr,input:er(rr.input),parent:ir,offset:ir.offset()},dr.mousemove(da).mouseup(ha),ar.preventDefault()})),er(rr.input).val(rr.val).change((function(){var er="radialGradient"===yr,rr=Number(this.value),ir=0;switch(tr){case"radius":er&&wr.setAttribute("r",rr/100),ir=Math.pow(rr/100,.4)/2*gr;break;case"opacity":ar.paint.alpha=rr,Or.setAttribute("fill-opacity",rr/100),ir=1.45*rr;break;case"ellip":if(Yr=Jr=1,0===rr){ir=72.5;break}rr>99.5&&(rr=99.5),rr>0?Jr=1-rr/100:Yr=-rr/100-1,ir=gr*((rr+100)/2)/100,er&&xform();break;case"angle":ir=($r=rr)/180,ir+=.5,ir*=gr,er&&xform()}ir>gr?ir=gr:ir<0&&(ir=0),nr.css({"margin-left":ir-5})})).change()}));for(var da=function dragSlider(er){!function setSlider(er){var tr=Kn.offset.left,rr=Kn.parent,nr=er.pageX-tr-Number.parseInt(rr.css("border-left-width"));nr>gr&&(nr=gr),nr<=0&&(nr=0);var ir=nr-5;switch(nr/=gr,Kn.type){case"radius":(nr=Math.pow(2*nr,2.5))>.98&&nr<1.02&&(nr=1),nr<=.01&&(nr=.01),wr.setAttribute("r",nr);break;case"opacity":ar.paint.alpha=Number.parseInt(100*nr),Or.setAttribute("fill-opacity",nr);break;case"ellip":Yr=1,Jr=1,nr<.5?Yr=(nr/=.5)<=0?.01:nr:nr>.5&&(Jr=(nr=2-(nr/=.5))<=0?.01:nr),xform(),Jr===1+(nr-=1)&&(nr=Math.abs(nr));break;case"angle":nr-=.5,$r=nr*=180,xform(),nr/=100}Kn.elem.css({"margin-left":ir}),nr=Math.round(100*nr),Kn.input.val(nr)}(er),er.preventDefault()},ha=function stopSlider(er){dr.unbind("mousemove",da).unbind("mouseup",stopSlider),Kn=null},pa=(255*ar.paint.alpha/100).toString(16);pa.length<2;)pa="0"+pa;pa=pa.split(".")[0],ur="none"===ar.paint.solidColor?"":ar.paint.solidColor+pa,xr||(ur=Vr[0].getAttribute("stop-color")),er.extend(er.fn.jPicker.defaults.window,{alphaSupport:!0,effects:{type:"show",speed:0}}),hr.jPicker({window:{title:ir.window.pickerTitle},images:{clientPath:ir.images.clientPath},color:{active:ur,alphaSupport:!0}},(function(er){ar.paint.type="solidColor",ar.paint.alpha=er.val("ahex")?Math.round(er.val("a")/255*100):100,ar.paint.solidColor=er.val("hex")?er.val("hex"):"none",ar.paint.radialGradient=null,lr()}),null,(function(){cr()}));var Aa,fa=er(sr+" .jGraduate_tabs li");switch(fa.click((function(){fa.removeClass("jGraduate_tab_current"),er(this).addClass("jGraduate_tab_current"),er(sr+" > div").hide();var tr=er(this).attr("data-type");if(er(sr+" .jGraduate_gradPick").show(),"rg"===tr||"lg"===tr){er(".jGraduate_"+tr+"_field").show(),er(".jGraduate_"+("lg"===tr?"rg":"lg")+"_field").hide(),er("#"+or+"_jgraduate_rect")[0].setAttribute("fill","url(#"+or+"_"+tr+"_jgraduate_grad)"),yr="lg"===tr?"linearGradient":"radialGradient",er("#"+or+"_jGraduate_OpacInput").val(ar.paint.alpha).change();var rr=er("#"+or+"_"+tr+"_jgraduate_grad")[0];if(wr!==rr){var nr=er(wr).find("stop");er(rr).empty().append(nr),wr=rr;var ir=Wn.val();wr.setAttribute("spreadMethod",ir)}Lr="rg"===tr&&null!==wr.getAttribute("fx")&&!(Ir===Mr&&Rr===Qr),er("#"+or+"_jGraduate_focusCoord").toggle(Lr),Lr&&(er("#"+or+"_jGraduate_match_ctr")[0].checked=!1)}else er(sr+" .jGraduate_gradPick").hide(),er(sr+" .jGraduate_colPick").show()})),er(sr+" > div").hide(),fa.removeClass("jGraduate_tab_current"),ar.paint.type){case"linearGradient":Aa=er(sr+" .jGraduate_tab_lingrad");break;case"radialGradient":Aa=er(sr+" .jGraduate_tab_radgrad");break;default:Aa=er(sr+" .jGraduate_tab_color")}ar.show(),setTimeout((function(){Aa.addClass("jGraduate_tab_current").click()}),10)}else er.alert("Container element must have an id attribute to maintain unique id strings for sub-elements.");function mkStop(tr,rr,nr,ar,sr){var lr=sr||mkElem("stop",{"stop-color":rr,"stop-opacity":nr,offset:tr},wr);sr?(rr=sr.getAttribute("stop-color"),nr=sr.getAttribute("stop-opacity"),tr=sr.getAttribute("offset")):wr.append(lr),null===nr&&(nr=1);var cr="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",ur=mkElem("path",{d:cr,fill:"url(#jGraduate_trans)",transform:"translate("+(10+tr*Ar)+", 26)"},mr),hr=mkElem("path",{d:cr,fill:rr,"fill-opacity":nr,transform:"translate("+(10+tr*Ar)+", 26)",stroke:"#000","stroke-width":1.5},mr);return er(hr).mousedown((function(er){return selectStop(this),Kr=zr,dr.mousemove(dragColor).mouseup(remDrags),qr=Wr.offset(),er.preventDefault(),!1})).data("stop",lr).data("bg",ur).dblclick((function(){er("div.jGraduate_LightBox").show();for(var tr=this,nr=Number(lr.getAttribute("stop-opacity"))||1,ar=lr.getAttribute("stop-color")||1,sr=(255*Number.parseFloat(nr)).toString(16);sr.length<2;)sr="0"+sr;rr=ar.substr(1)+sr,er("#"+or+"_jGraduate_stopPicker").css({left:100,bottom:15}).jPicker({window:{title:"Pick the start color and opacity for the gradient"},images:{clientPath:ir.images.clientPath},color:{active:rr,alphaSupport:!0}},(function(rr,ir){ar=rr.val("hex")?"#"+rr.val("hex"):"none",nr=null!==rr.val("a")?rr.val("a")/256:1,tr.setAttribute("fill",ar),tr.setAttribute("fill-opacity",nr),lr.setAttribute("stop-color",ar),lr.setAttribute("stop-opacity",nr),er("div.jGraduate_LightBox").hide(),er("#"+or+"_jGraduate_stopPicker").hide()}),null,(function(){er("div.jGraduate_LightBox").hide(),er("#"+or+"_jGraduate_stopPicker").hide()}))})),er(wr).find("stop").each((function(){var nr=er(this);if(Number(this.getAttribute("offset"))>tr){if(!rr){var ar=this.getAttribute("stop-color"),ir=this.getAttribute("stop-opacity");lr.setAttribute("stop-color",ar),hr.setAttribute("fill",ar),lr.setAttribute("stop-opacity",null===ir?1:ir),hr.setAttribute("fill-opacity",null===ir?1:ir)}return nr.before(lr),!1}return!0})),ar&&selectStop(hr),lr}function selectStop(er){zr&&zr.setAttribute("stroke","#000"),er.setAttribute("stroke","blue"),zr=er}function remDrags(){dr.unbind("mousemove",dragColor),"none"!==Xr.getAttribute("display")&&function remStop(){Xr.setAttribute("display","none");var tr=er(zr),rr=tr.data("stop"),nr=tr.data("bg");er([zr,rr,nr]).remove()}(),Kr=null}function xform(){var er=$r?"rotate("+$r+","+Zr+","+Tn+") ":"";if(1===Yr&&1===Jr)wr.removeAttribute("gradientTransform");else{var tr=-Zr*(Yr-1),rr=-Tn*(Jr-1);wr.setAttribute("gradientTransform",er+"translate("+tr+","+rr+") scale("+Yr+","+Jr+")")}}function dragColor(tr){var rr=tr.pageX-qr.left,nr=tr.pageY-qr.top,ar="translate("+(rr=rr<10?10:rr>266?266:rr)+", 26)";nr<-60||nr>130?(Xr.setAttribute("display","block"),Xr.setAttribute("transform",ar)):Xr.setAttribute("display","none"),Kr.setAttribute("transform",ar),er.data(Kr,"bg").setAttribute("transform",ar);var ir=er.data(Kr,"stop"),or=(rr-10)/Ar;ir.setAttribute("offset",or);var sr=0;er(wr).find("stop").each((function(tr){var rr=this.getAttribute("offset"),nr=er(this);rr<sr&&(nr.prev().before(nr),Vr=er(wr).find("stop")),sr=rr}))}}))},er},function jQueryPluginSpinButton(er){return er.fn.SpinButton=function(tr){function coord(tr,rr){for(var nr=document.body,ar=tr[rr];(tr=tr.offsetParent)&&tr!==nr;)er.browser.msie&&"relative"===tr.currentStyle.position||(ar+=tr[rr]);return ar}return tr=tr||{},this.each((function(){this.repeating=!1,this.spinCfg={min:isNaN(Number.parseFloat(tr.min))?null:Number(tr.min),max:isNaN(Number.parseFloat(tr.max))?null:Number(tr.max),step:tr.step?Number(tr.step):1,stepfunc:tr.stepfunc||!1,page:tr.page?Number(tr.page):10,upClass:tr.upClass||"up",downClass:tr.downClass||"down",reset:tr.reset||this.value,delay:tr.delay?Number(tr.delay):500,interval:tr.interval?Number(tr.interval):100,_btn_width:20,_direction:null,_delay:null,_repeat:null,callback:tr.callback||null},this.spinCfg.smallStep=tr.smallStep||this.spinCfg.step/2,this.adjustValue=function(er){var tr;tr=isNaN(this.value)?this.spinCfg.reset:"function"==typeof this.spinCfg.stepfunc?this.spinCfg.stepfunc(this,er):Number((Number(this.value)+Number(er)).toFixed(5)),null!==this.spinCfg.min&&(tr=Math.max(tr,this.spinCfg.min)),null!==this.spinCfg.max&&(tr=Math.min(tr,this.spinCfg.max)),this.value=tr,"function"==typeof this.spinCfg.callback&&this.spinCfg.callback(this)},er(this).addClass(tr.spinClass||"spin-button").mousemove((function(rr){var nr=rr.pageX||rr.x,ar=rr.pageY||rr.y,ir=rr.target,or=tr.stateObj.tool_scale||1,sr=er(ir).height()/2,lr=nr>coord(ir,"offsetLeft")+ir.offsetWidth*or-this.spinCfg._btn_width?ar<coord(ir,"offsetTop")+sr*or?1:-1:0;if(lr!==this.spinCfg._direction){switch(lr){case 1:er(this).removeClass(this.spinCfg.downClass).addClass(this.spinCfg.upClass);break;case-1:er(this).removeClass(this.spinCfg.upClass).addClass(this.spinCfg.downClass);break;default:er(this).removeClass(this.spinCfg.upClass).removeClass(this.spinCfg.downClass)}this.spinCfg._direction=lr}})).mouseout((function(){er(this).removeClass(this.spinCfg.upClass).removeClass(this.spinCfg.downClass),this.spinCfg._direction=null,window.clearInterval(this.spinCfg._repeat),window.clearTimeout(this.spinCfg._delay)})).mousedown((function(er){var tr=this;if(0===er.button&&0!==this.spinCfg._direction){var rr=er.shiftKey?this.spinCfg.smallStep:this.spinCfg.step,nr=function adjust(){tr.adjustValue(tr.spinCfg._direction*rr)};nr(),this.spinCfg._delay=window.setTimeout((function(){nr(),tr.spinCfg._repeat=window.setInterval(nr,tr.spinCfg.interval)}),this.spinCfg.delay)}})).mouseup((function(er){window.clearInterval(this.spinCfg._repeat),window.clearTimeout(this.spinCfg._delay)})).dblclick((function(tr){er.browser.msie&&this.adjustValue(this.spinCfg._direction*this.spinCfg.step)})).keydown((function(er){switch(er.keyCode){case 38:this.adjustValue(this.spinCfg.step);break;case 40:this.adjustValue(-this.spinCfg.step);break;case 33:this.adjustValue(this.spinCfg.page);break;case 34:this.adjustValue(-this.spinCfg.page)}})).keypress((function(er){if(this.repeating)switch(er.keyCode){case 38:this.adjustValue(this.spinCfg.step);break;case 40:this.adjustValue(-this.spinCfg.step);break;case 33:this.adjustValue(this.spinCfg.page);break;case 34:this.adjustValue(-this.spinCfg.page)}else this.repeating=!0})).keyup((function(er){switch(this.repeating=!1,er.keyCode){case 38:case 40:case 33:case 34:case 13:this.adjustValue(0)}})).bind("mousewheel",(function(er){er.wheelDelta>=120?this.adjustValue(this.spinCfg.step):er.wheelDelta<=-120&&this.adjustValue(-this.spinCfg.step),er.preventDefault()})).change((function(er){this.adjustValue(0)})),this.addEventListener&&this.addEventListener("DOMMouseScroll",(function(er){er.detail>0?this.adjustValue(-this.spinCfg.step):er.detail<0&&this.adjustValue(this.spinCfg.step),er.preventDefault()}))}))},er},jQueryPluginSVG,function jQueryContextMenu(er){var tr=er(window),rr=er(document);return er.extend(er.fn,{contextMenu:function contextMenu(nr,ar){return void 0!==nr.menu&&(void 0===nr.inSpeed&&(nr.inSpeed=150),void 0===nr.outSpeed&&(nr.outSpeed=75),0===nr.inSpeed&&(nr.inSpeed=-1),0===nr.outSpeed&&(nr.outSpeed=-1),er(this).each((function(){var ir=er(this),or=er(ir).offset(),sr=er("#"+nr.menu);sr.addClass("contextMenu"),er(this).bind("mousedown",(function(lr){er(this).mouseup((function(cr){var ur=er(this);if(ur.unbind("mouseup"),2===lr.button||nr.allowLeft||lr.ctrlKey&&Cd()){if(cr.stopPropagation(),er(".contextMenu").hide(),ir.hasClass("disabled"))return!1;var dr=cr.pageX,hr=cr.pageY,pr=tr.width()-sr.width(),Ar=tr.height()-sr.height();dr>pr-15&&(dr=pr-15),hr>Ar-30&&(hr=Ar-30),rr.unbind("click"),sr.css({top:hr,left:dr}).fadeIn(nr.inSpeed),sr.find("A").mouseover((function(){sr.find("LI.hover").removeClass("hover"),er(this).parent().addClass("hover")})).mouseout((function(){sr.find("LI.hover").removeClass("hover")})),rr.keypress((function(er){switch(er.keyCode){case 38:sr.find("LI.hover").length?(sr.find("LI.hover").removeClass("hover").prevAll("LI:not(.disabled)").eq(0).addClass("hover"),sr.find("LI.hover").length||sr.find("LI:last").addClass("hover")):sr.find("LI:last").addClass("hover");break;case 40:sr.find("LI.hover").length?(sr.find("LI.hover").removeClass("hover").nextAll("LI:not(.disabled)").eq(0).addClass("hover"),sr.find("LI.hover").length||sr.find("LI:first").addClass("hover")):sr.find("LI:first").addClass("hover");break;case 13:sr.find("LI.hover A").trigger("click");break;case 27:rr.trigger("click")}})),sr.find("A").unbind("mouseup"),sr.find("LI:not(.disabled) A").mouseup((function(){return rr.unbind("click").unbind("keypress"),er(".contextMenu").hide(),ar&&ar(er(this).attr("href").substr(1),er(ur),{x:dr-or.left,y:hr-or.top,docX:dr,docY:hr}),!1})),setTimeout((function(){rr.click((function(){return rr.unbind("click").unbind("keypress"),sr.fadeOut(nr.outSpeed),!1}))}),0)}}))})),er.browser.mozilla?er("#"+nr.menu).each((function(){er(this).css({MozUserSelect:"none"})})):er.browser.msie?er("#"+nr.menu).each((function(){er(this).bind("selectstart.disableTextSelect",(function(){return!1}))})):er("#"+nr.menu).each((function(){er(this).bind("mousedown.disableTextSelect",(function(){return!1}))})),er(ir).add(er("UL.contextMenu")).bind("contextmenu",(function(){return!1}))})),er(this))},disableContextMenuItems:function disableContextMenuItems(tr){return void 0===tr?(er(this).find("LI").addClass("disabled"),er(this)):(er(this).each((function(){if(void 0!==tr){var rr,nr=_createForOfIteratorHelper(tr.split(","));try{for(nr.s();!(rr=nr.n()).done;){var ar=rr.value;er(this).find('A[href="'+ar+'"]').parent().addClass("disabled")}}catch(er){nr.e(er)}finally{nr.f()}}})),er(this))},enableContextMenuItems:function enableContextMenuItems(tr){return void 0===tr?(er(this).find("LI.disabled").removeClass("disabled"),er(this)):(er(this).each((function(){if(void 0!==tr){var rr,nr=_createForOfIteratorHelper(tr.split(","));try{for(nr.s();!(rr=nr.n()).done;){var ar=rr.value;er(this).find('A[href="'+ar+'"]').parent().removeClass("disabled")}}catch(er){nr.e(er)}finally{nr.f()}}})),er(this))},disableContextMenu:function disableContextMenu(){return er(this).each((function(){er(this).addClass("disabled")})),er(this)},enableContextMenu:function enableContextMenu(){return er(this).each((function(){er(this).removeClass("disabled")})),er(this)},destroyContextMenu:function destroyContextMenu(){return er(this).each((function(){er(this).unbind("mousedown").unbind("mouseup")})),er(this)}}),er},function jPicker(er){var tr=function Slider(tr,rr){_classCallCheck(this,Slider);var nr=this;function fireChangeEvents(er){fr.forEach((function(tr){tr.call(nr,nr,er)}))}function mouseDown(rr){var or=tr.offset();ar={l:0|or.left,t:0|or.top},clearTimeout(ir),ir=setTimeout((function(){setValuesFromMousePosition.call(nr,rr)}),0),er(document).bind("mousemove",mouseMove).bind("mouseup",mouseUp),rr.preventDefault()}function mouseMove(er){return clearTimeout(ir),ir=setTimeout((function(){setValuesFromMousePosition.call(nr,er)}),0),er.stopPropagation(),er.preventDefault(),!1}function mouseUp(tr){return er(document).unbind("mouseup",mouseUp).unbind("mousemove",mouseMove),tr.stopPropagation(),tr.preventDefault(),!1}function setValuesFromMousePosition(er){var rr=tr.w,ir=tr.h,or=er.pageX-ar.l,sr=er.pageY-ar.t;or<0?or=0:or>rr&&(or=rr),sr<0?sr=0:sr>ir&&(sr=ir),val.call(nr,"xy",{x:or/rr*ur+lr,y:sr/ir*pr+dr})}function val(er,tr,rr){if(!(void 0!==tr))switch(jy(er)&&(er="xy"),er.toLowerCase()){case"x":return or;case"y":return sr;case"xy":default:return{x:or,y:sr}}if(jy(rr)||rr!==nr){var ar,ir,ur=!1;switch(jy(er)&&(er="xy"),er.toLowerCase()){case"x":ar=tr&&(tr.x&&0|tr.x||0|tr)||0;break;case"y":ir=tr&&(tr.y&&0|tr.y||0|tr)||0;break;case"xy":default:ar=tr&&tr.x&&0|tr.x||0,ir=tr&&tr.y&&0|tr.y||0}jy(ar)||(ar<lr?ar=lr:ar>cr&&(ar=cr),or!==ar&&(or=ar,ur=!0)),jy(ir)||(ir<dr?ir=dr:ir>hr&&(ir=hr),sr!==ir&&(sr=ir,ur=!0)),ur&&fireChangeEvents.call(nr,rr||nr)}}function bind(er){"function"==typeof er&&fr.push(er)}var ar,ir,or=0,sr=0,lr=0,cr=100,ur=100,dr=0,hr=100,pr=100,Ar=tr.find("img:first"),fr=[];er.extend(!0,nr,{val:val,range:function range(er,tr){var rr,nr,ar,ir;if(!(void 0!==tr))switch(jy(er)&&(er="all"),er.toLowerCase()){case"minx":return lr;case"maxx":return cr;case"rangex":return{minX:lr,maxX:cr,rangeX:ur};case"miny":return dr;case"maxy":return hr;case"rangey":return{minY:dr,maxY:hr,rangeY:pr};case"all":default:return{minX:lr,maxX:cr,rangeX:ur,minY:dr,maxY:hr,rangeY:pr}}switch(jy(er)&&(er="all"),er.toLowerCase()){case"minx":rr=tr&&(tr.minX&&0|tr.minX||0|tr)||0;break;case"maxx":nr=tr&&(tr.maxX&&0|tr.maxX||0|tr)||0;break;case"rangex":rr=tr&&tr.minX&&0|tr.minX||0,nr=tr&&tr.maxX&&0|tr.maxX||0;break;case"miny":ar=tr&&(tr.minY&&0|tr.minY||0|tr)||0;break;case"maxy":ir=tr&&(tr.maxY&&0|tr.maxY||0|tr)||0;break;case"rangey":ar=tr&&tr.minY&&0|tr.minY||0,ir=tr&&tr.maxY&&0|tr.maxY||0;break;case"all":default:rr=tr&&tr.minX&&0|tr.minX||0,nr=tr&&tr.maxX&&0|tr.maxX||0,ar=tr&&tr.minY&&0|tr.minY||0,ir=tr&&tr.maxY&&0|tr.maxY||0}jy(rr)||lr===rr||(ur=cr-(lr=rr)),jy(nr)||cr===nr||(ur=(cr=nr)-lr),jy(ar)||dr===ar||(pr=hr-(dr=ar)),jy(ir)||hr===ir||(pr=(hr=ir)-dr)},bind:bind,unbind:function unbind(er){if("function"==typeof er)for(var tr;tr=fr.includes(er);)fr.splice(tr,1)},destroy:function destroy(){er(document).unbind("mouseup",mouseUp).unbind("mousemove",mouseMove),tr.unbind("mousedown",mouseDown),tr=null,Ar=null,fr=null}}),Ar.src=rr.arrow&&rr.arrow.image,Ar.w=rr.arrow&&rr.arrow.width||Ar.width(),Ar.h=rr.arrow&&rr.arrow.height||Ar.height(),tr.w=rr.map&&rr.map.width||tr.width(),tr.h=rr.map&&rr.map.height||tr.height(),tr.bind("mousedown",mouseDown),bind.call(nr,(function draw(){var er=tr.w,rr=tr.h,nr=Ar.w,ar=Ar.h,ir=0,lr=0;setTimeout((function(){ur>0&&(ir=or===cr?er:or/ur*er|0),pr>0&&(lr=sr===hr?rr:sr/pr*rr|0),nr>=er?ir=(er>>1)-(nr>>1):ir-=nr>>1,ar>=rr?lr=(rr>>1)-(ar>>1):lr-=ar>>1,Ar.css({left:ir+"px",top:lr+"px"})}))}))},rr=function ColorValuePicker(tr,rr,nr,ar){_classCallCheck(this,ColorValuePicker);var ir=this,or=tr.find("td.Text input");function keyDown(er){if(""!==er.target.value||er.target===Ar.get(0)||(jy(nr)||er.target===nr.get(0))&&!jy(nr)){if(!validateKey(er))return er;switch(er.target){case sr.get(0):switch(er.keyCode){case 38:return sr.val(setValueInRange.call(ir,1+(sr.val()<<0),0,255)),rr.val("r",sr.val(),er.target),!1;case 40:return sr.val(setValueInRange.call(ir,(sr.val()<<0)-1,0,255)),rr.val("r",sr.val(),er.target),!1}break;case lr.get(0):switch(er.keyCode){case 38:return lr.val(setValueInRange.call(ir,1+(lr.val()<<0),0,255)),rr.val("g",lr.val(),er.target),!1;case 40:return lr.val(setValueInRange.call(ir,(lr.val()<<0)-1,0,255)),rr.val("g",lr.val(),er.target),!1}break;case cr.get(0):switch(er.keyCode){case 38:return cr.val(setValueInRange.call(ir,1+(cr.val()<<0),0,255)),rr.val("b",cr.val(),er.target),!1;case 40:return cr.val(setValueInRange.call(ir,(cr.val()<<0)-1,0,255)),rr.val("b",cr.val(),er.target),!1}break;case ur&&ur.get(0):switch(er.keyCode){case 38:return ur.val(setValueInRange.call(ir,Number.parseFloat(ur.val())+1,0,100)),rr.val("a",toFixedNumeric(255*ur.val()/100,ar),er.target),!1;case 40:return ur.val(setValueInRange.call(ir,Number.parseFloat(ur.val())-1,0,100)),rr.val("a",toFixedNumeric(255*ur.val()/100,ar),er.target),!1}break;case dr.get(0):switch(er.keyCode){case 38:return dr.val(setValueInRange.call(ir,1+(dr.val()<<0),0,360)),rr.val("h",dr.val(),er.target),!1;case 40:return dr.val(setValueInRange.call(ir,(dr.val()<<0)-1,0,360)),rr.val("h",dr.val(),er.target),!1}break;case hr.get(0):switch(er.keyCode){case 38:return hr.val(setValueInRange.call(ir,1+(hr.val()<<0),0,100)),rr.val("s",hr.val(),er.target),!1;case 40:return hr.val(setValueInRange.call(ir,(hr.val()<<0)-1,0,100)),rr.val("s",hr.val(),er.target),!1}break;case pr.get(0):switch(er.keyCode){case 38:return pr.val(setValueInRange.call(ir,1+(pr.val()<<0),0,100)),rr.val("v",pr.val(),er.target),!1;case 40:return pr.val(setValueInRange.call(ir,(pr.val()<<0)-1,0,100)),rr.val("v",pr.val(),er.target),!1}}}}function keyUp(er){if(""!==er.target.value||er.target===Ar.get(0)||(jy(nr)||er.target===nr.get(0))&&!jy(nr)){if(!validateKey(er))return er;switch(er.target){case sr.get(0):sr.val(setValueInRange.call(ir,sr.val(),0,255)),rr.val("r",sr.val(),er.target);break;case lr.get(0):lr.val(setValueInRange.call(ir,lr.val(),0,255)),rr.val("g",lr.val(),er.target);break;case cr.get(0):cr.val(setValueInRange.call(ir,cr.val(),0,255)),rr.val("b",cr.val(),er.target);break;case ur&&ur.get(0):ur.val(setValueInRange.call(ir,ur.val(),0,100)),rr.val("a",toFixedNumeric(255*ur.val()/100,ar),er.target);break;case dr.get(0):dr.val(setValueInRange.call(ir,dr.val(),0,360)),rr.val("h",dr.val(),er.target);break;case hr.get(0):hr.val(setValueInRange.call(ir,hr.val(),0,100)),rr.val("s",hr.val(),er.target);break;case pr.get(0):pr.val(setValueInRange.call(ir,pr.val(),0,100)),rr.val("v",pr.val(),er.target);break;case Ar.get(0):Ar.val(Ar.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6)),nr&&nr.val(Ar.val()),rr.val("hex",""!==Ar.val()?Ar.val():null,er.target);break;case nr&&nr.get(0):nr.val(nr.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6)),Ar.val(nr.val()),rr.val("hex",""!==nr.val()?nr.val():null,er.target);break;case fr&&fr.get(0):fr.val(fr.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,2)),rr.val("a",jy(fr.val())?null:Number.parseInt(fr.val(),16),er.target)}}}function blur(er){if(!jy(rr.val()))switch(er.target){case sr.get(0):sr.val(rr.val("r"));break;case lr.get(0):lr.val(rr.val("g"));break;case cr.get(0):cr.val(rr.val("b"));break;case ur&&ur.get(0):ur.val(toFixedNumeric(100*rr.val("a")/255,ar));break;case dr.get(0):dr.val(rr.val("h"));break;case hr.get(0):hr.val(rr.val("s"));break;case pr.get(0):pr.val(rr.val("v"));break;case Ar.get(0):case nr&&nr.get(0):Ar.val(rr.val("hex")),nr&&nr.val(rr.val("hex"));break;case fr&&fr.get(0):fr.val(rr.val("ahex").substring(6))}}function validateKey(er){switch(er.keyCode){case 9:case 16:case 29:case 37:case 39:return!1;case"c".charCodeAt():case"v".charCodeAt():if(er.ctrlKey)return!1}return!0}function setValueInRange(er,tr,rr){return""===er||isNaN(er)?tr:er>rr?rr:er<tr?tr:er}function colorChanged(er,tr){var rr=er.val("all");tr!==sr.get(0)&&sr.val(jy(rr)?"":rr.r),tr!==lr.get(0)&&lr.val(jy(rr)?"":rr.g),tr!==cr.get(0)&&cr.val(jy(rr)?"":rr.b),ur&&tr!==ur.get(0)&&ur.val(jy(rr)?"":toFixedNumeric(100*rr.a/255,ar)),tr!==dr.get(0)&&dr.val(jy(rr)?"":rr.h),tr!==hr.get(0)&&hr.val(jy(rr)?"":rr.s),tr!==pr.get(0)&&pr.val(jy(rr)?"":rr.v),tr!==Ar.get(0)&&(nr&&tr!==nr.get(0)||!nr)&&Ar.val(jy(rr)?"":rr.hex),nr&&tr!==nr.get(0)&&tr!==Ar.get(0)&&nr.val(jy(rr)?"":rr.hex),fr&&tr!==fr.get(0)&&fr.val(jy(rr)?"":rr.ahex.substring(6))}var sr=or.eq(3),lr=or.eq(4),cr=or.eq(5),ur=or.length>7?or.eq(6):null,dr=or.eq(0),hr=or.eq(1),pr=or.eq(2),Ar=or.eq(or.length>7?7:6),fr=or.length>7?or.eq(8):null;er.extend(!0,ir,{destroy:function destroy(){sr.add(lr).add(cr).add(ur).add(dr).add(hr).add(pr).add(Ar).add(nr).add(fr).unbind("keyup",keyUp).unbind("blur",blur),sr.add(lr).add(cr).add(ur).add(dr).add(hr).add(pr).unbind("keydown",keyDown),rr.unbind(colorChanged),sr=null,lr=null,cr=null,ur=null,dr=null,hr=null,pr=null,Ar=null,fr=null}}),sr.add(lr).add(cr).add(ur).add(dr).add(hr).add(pr).add(Ar).add(nr).add(fr).bind("keyup",keyUp).bind("blur",blur),sr.add(lr).add(cr).add(ur).add(dr).add(hr).add(pr).bind("keydown",keyDown),rr.bind(colorChanged)};er.jPicker={List:[],Color:function Color(tr){var rr=this;function fireChangeEvents(er){for(var tr=0;tr<dr.length;tr++)dr[tr].call(rr,rr,er)}function val(er,tr,dr){var hr=Boolean(tr);if(hr&&""===tr.ahex&&(tr.ahex="00000000"),!hr){var pr;if((jy(er)||""===er)&&(er="all"),jy(nr))return null;switch(er.toLowerCase()){case"ahex":return or.rgbaToHex({r:nr,g:ar,b:ir,a:sr});case"hex":return val("ahex").substring(0,6);case"all":return{r:nr,g:ar,b:ir,a:sr,h:lr,s:cr,v:ur,hex:val.call(rr,"hex"),ahex:val.call(rr,"ahex")};default:pr={};var Ar=er.length;_toConsumableArray(er).forEach((function(er){switch(er){case"r":1===Ar?pr=nr:pr.r=nr;break;case"g":1===Ar?pr=ar:pr.g=ar;break;case"b":1===Ar?pr=ir:pr.b=ir;break;case"a":1===Ar?pr=sr:pr.a=sr;break;case"h":1===Ar?pr=lr:pr.h=lr;break;case"s":1===Ar?pr=cr:pr.s=cr;break;case"v":1===Ar?pr=ur:pr.v=ur}}))}return"object"!==_typeof(pr)||Object.keys(pr).length?pr:val.call(rr,"all")}if(jy(dr)||dr!==rr){jy(er)&&(er="");var fr=!1;if(jy(tr))return jy(nr)||(nr=null,fr=!0),jy(ar)||(ar=null,fr=!0),jy(ir)||(ir=null,fr=!0),jy(sr)||(sr=null,fr=!0),jy(lr)||(lr=null,fr=!0),jy(cr)||(cr=null,fr=!0),jy(ur)||(ur=null,fr=!0),void(fr&&fireChangeEvents.call(rr,dr||rr));switch(er.toLowerCase()){case"ahex":case"hex":var gr=or.hexToRgba(tr&&(tr.ahex||tr.hex)||tr||"none");val.call(rr,"rgba",{r:gr.r,g:gr.g,b:gr.b,a:"ahex"===er?gr.a:jy(sr)?255:sr},dr);break;default:if(tr&&(!jy(tr.ahex)||!jy(tr.hex)))return void val.call(rr,"ahex",tr.ahex||tr.hex||"00000000",dr);var mr={},_r=!1,vr=!1;if(void 0===tr.r||er.includes("r")||(er+="r"),void 0===tr.g||er.includes("g")||(er+="g"),void 0===tr.b||er.includes("b")||(er+="b"),void 0===tr.a||er.includes("a")||(er+="a"),void 0===tr.h||er.includes("h")||(er+="h"),void 0===tr.s||er.includes("s")||(er+="s"),void 0===tr.v||er.includes("v")||(er+="v"),_toConsumableArray(er).forEach((function(er){switch(er){case"r":if(vr)return;_r=!0,mr.r=tr.r&&0|tr.r||0|tr||0,mr.r<0?mr.r=0:mr.r>255&&(mr.r=255),nr!==mr.r&&(nr=mr.r,fr=!0);break;case"g":if(vr)return;_r=!0,mr.g=tr&&tr.g&&0|tr.g||tr&&0|tr||0,mr.g<0?mr.g=0:mr.g>255&&(mr.g=255),ar!==mr.g&&(ar=mr.g,fr=!0);break;case"b":if(vr)return;_r=!0,mr.b=tr&&tr.b&&0|tr.b||tr&&0|tr||0,mr.b<0?mr.b=0:mr.b>255&&(mr.b=255),ir!==mr.b&&(ir=mr.b,fr=!0);break;case"a":mr.a=tr&&!jy(tr.a)?0|tr.a:0|tr,mr.a<0?mr.a=0:mr.a>255&&(mr.a=255),sr!==mr.a&&(sr=mr.a,fr=!0);break;case"h":if(_r)return;vr=!0,mr.h=tr&&tr.h&&0|tr.h||tr&&0|tr||0,mr.h<0?mr.h=0:mr.h>360&&(mr.h=360),lr!==mr.h&&(lr=mr.h,fr=!0);break;case"s":if(_r)return;vr=!0,mr.s=jy(tr.s)?0|tr:0|tr.s,mr.s<0?mr.s=0:mr.s>100&&(mr.s=100),cr!==mr.s&&(cr=mr.s,fr=!0);break;case"v":if(_r)return;vr=!0,mr.v=jy(tr.v)?0|tr:0|tr.v,mr.v<0?mr.v=0:mr.v>100&&(mr.v=100),ur!==mr.v&&(ur=mr.v,fr=!0)}})),fr){if(_r){nr=nr||0,ar=ar||0,ir=ir||0;var yr=or.rgbToHsv({r:nr,g:ar,b:ir});lr=yr.h,cr=yr.s,ur=yr.v}else if(vr){lr=lr||0,cr=jy(cr)?100:cr,ur=jy(ur)?100:ur;var br=or.hsvToRgb({h:lr,s:cr,v:ur});nr=br.r,ar=br.g,ir=br.b}sr=jy(sr)?255:sr,fireChangeEvents.call(rr,dr||rr)}}}}var nr,ar,ir,sr,lr,cr,ur,dr=[];er.extend(!0,rr,{val:val,bind:function bind(er){"function"==typeof er&&dr.push(er)},unbind:function unbind(er){if("function"==typeof er)for(var tr;tr=dr.includes(er);)dr.splice(tr,1)},destroy:function destroy(){dr=null}}),tr&&(jy(tr.ahex)?jy(tr.hex)?jy(tr.r)||jy(tr.g)||jy(tr.b)?jy(tr.h)||jy(tr.s)||jy(tr.v)||val("hsv"+(jy(tr.a)?"":"a"),tr):val("rgb"+(jy(tr.a)?"":"a"),tr):val((jy(tr.a)?"":"a")+"hex",jy(tr.a)?tr:{ahex:tr.hex+or.intToHex(tr.a)}):val("ahex",tr))},ColorMethods:{hexToRgba:function hexToRgba(er){if(""===er||"none"===er)return{r:null,g:null,b:null,a:null};var tr="00",rr="00",nr="00",ar="255";return 6===(er=this.validateHex(er)).length&&(er+="ff"),er.length>6?(tr=er.substring(0,2),rr=er.substring(2,4),nr=er.substring(4,6),ar=er.substring(6,er.length)):(er.length>4&&(tr=er.substring(4,er.length),er=er.substring(0,4)),er.length>2&&(rr=er.substring(2,er.length),er=er.substring(0,2)),er.length>0&&(nr=er.substring(0,er.length))),{r:this.hexToInt(tr),g:this.hexToInt(rr),b:this.hexToInt(nr),a:this.hexToInt(ar)}},validateHex:function validateHex(er){return(er=er.toLowerCase().replace(/[^a-f\d]/g,"")).length>8&&(er=er.substring(0,8)),er},rgbaToHex:function rgbaToHex(er){return this.intToHex(er.r)+this.intToHex(er.g)+this.intToHex(er.b)+this.intToHex(er.a)},intToHex:function intToHex(er){var tr=(0|er).toString(16);return 1===tr.length&&(tr="0"+tr),tr.toLowerCase()},hexToInt:function hexToInt(er){return Number.parseInt(er,16)},rgbToHsv:function rgbToHsv(er){var tr,rr=er.r/255,nr=er.g/255,ar=er.b/255,ir={h:0,s:0,v:0},or=0,sr=0;return rr>=nr&&rr>=ar?(sr=rr,or=nr>ar?ar:nr):nr>=ar&&nr>=rr?(sr=nr,or=rr>ar?ar:rr):(sr=ar,or=nr>rr?rr:nr),ir.v=sr,ir.s=sr?(sr-or)/sr:0,ir.s?(tr=sr-or,ir.h=rr===sr?(nr-ar)/tr:nr===sr?2+(ar-rr)/tr:4+(rr-nr)/tr,ir.h=Number.parseInt(60*ir.h),ir.h<0&&(ir.h+=360)):ir.h=0,ir.s=100*ir.s|0,ir.v=100*ir.v|0,ir},hsvToRgb:function hsvToRgb(er){var tr={r:0,g:0,b:0,a:100},rr=er.h,nr=er.s,ar=er.v;if(0===nr)tr.r=tr.g=tr.b=0===ar?0:255*ar/100|0;else{360===rr&&(rr=0);var ir=0|(rr/=60),or=rr-ir,sr=(ar/=100)*(1-(nr/=100)),lr=ar*(1-nr*or),cr=ar*(1-nr*(1-or));switch(ir){case 0:tr.r=ar,tr.g=cr,tr.b=sr;break;case 1:tr.r=lr,tr.g=ar,tr.b=sr;break;case 2:tr.r=sr,tr.g=ar,tr.b=cr;break;case 3:tr.r=sr,tr.g=lr,tr.b=ar;break;case 4:tr.r=cr,tr.g=sr,tr.b=ar;break;case 5:tr.r=ar,tr.g=sr,tr.b=lr}tr.r=255*tr.r|0,tr.g=255*tr.g|0,tr.b=255*tr.b|0}return tr}}};var nr=er.jPicker,ar=nr.Color,ir=nr.List,or=nr.ColorMethods;return er.fn.jPicker=function(nr,sr,lr,cr){return this.each((function(){var ur=this,dr=er.extend(!0,{},er.fn.jPicker.defaults,nr);"input"===er(ur).get(0).nodeName.toLowerCase()&&(er.extend(!0,dr,{window:{bindToInput:!0,expandable:!0,input:er(ur)}}),""===er(ur).val()?(dr.color.active=new ar({hex:null}),dr.color.current=new ar({hex:null})):or.validateHex(er(ur).val())&&(dr.color.active=new ar({hex:er(ur).val(),a:dr.color.active.val("a")}),dr.color.current=new ar({hex:er(ur).val(),a:dr.color.active.val("a")}))),dr.window.expandable?er(ur).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>'):dr.window.liveUpdate=!1;var hr=Number.parseFloat(navigator.appVersion.split("MSIE")[1])<7&&document.body.filters;function setColorMode(er){var tr,rr,nr=fr.active,ar=nr.val("hex");switch(dr.color.mode=er,er){case"h":if(setTimeout((function(){setBG.call(ur,br,"transparent"),setImgLoc.call(ur,kr,0),setAlpha.call(ur,kr,100),setImgLoc.call(ur,xr,260),setAlpha.call(ur,xr,100),setBG.call(ur,wr,"transparent"),setImgLoc.call(ur,Cr,0),setAlpha.call(ur,Cr,100),setImgLoc.call(ur,Br,260),setAlpha.call(ur,Br,100),setImgLoc.call(ur,Er,260),setAlpha.call(ur,Er,100),setImgLoc.call(ur,Nr,260),setAlpha.call(ur,Nr,100),setImgLoc.call(ur,Pr,260),setAlpha.call(ur,Pr,100)}),0),Tr.range("all",{minX:0,maxX:100,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:360}),jy(nr.val("ahex")))break;Tr.val("xy",{x:nr.val("s"),y:100-nr.val("v")},Tr),Fr.val("y",360-nr.val("h"),Fr);break;case"s":if(setTimeout((function(){setBG.call(ur,br,"transparent"),setImgLoc.call(ur,kr,-260),setImgLoc.call(ur,xr,-520),setImgLoc.call(ur,Cr,-260),setImgLoc.call(ur,Br,-520),setImgLoc.call(ur,Pr,260),setAlpha.call(ur,Pr,100)}),0),Tr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:100}),jy(nr.val("ahex")))break;Tr.val("xy",{x:nr.val("h"),y:100-nr.val("v")},Tr),Fr.val("y",100-nr.val("s"),Fr);break;case"v":if(setTimeout((function(){setBG.call(ur,br,"000000"),setImgLoc.call(ur,kr,-780),setImgLoc.call(ur,xr,260),setBG.call(ur,wr,ar),setImgLoc.call(ur,Cr,-520),setImgLoc.call(ur,Br,260),setAlpha.call(ur,Br,100),setImgLoc.call(ur,Pr,260),setAlpha.call(ur,Pr,100)}),0),Tr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:100}),jy(nr.val("ahex")))break;Tr.val("xy",{x:nr.val("h"),y:100-nr.val("s")},Tr),Fr.val("y",100-nr.val("v"),Fr);break;case"r":if(tr=-1040,rr=-780,Tr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Fr.range("rangeY",{minY:0,maxY:255}),jy(nr.val("ahex")))break;Tr.val("xy",{x:nr.val("b"),y:255-nr.val("g")},Tr),Fr.val("y",255-nr.val("r"),Fr);break;case"g":if(tr=-1560,rr=-1820,Tr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Fr.range("rangeY",{minY:0,maxY:255}),jy(nr.val("ahex")))break;Tr.val("xy",{x:nr.val("b"),y:255-nr.val("r")},Tr),Fr.val("y",255-nr.val("g"),Fr);break;case"b":if(tr=-2080,rr=-2860,Tr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Fr.range("rangeY",{minY:0,maxY:255}),jy(nr.val("ahex")))break;Tr.val("xy",{x:nr.val("r"),y:255-nr.val("g")},Tr),Fr.val("y",255-nr.val("b"),Fr);break;case"a":if(setTimeout((function(){setBG.call(ur,br,"transparent"),setImgLoc.call(ur,kr,-260),setImgLoc.call(ur,xr,-520),setImgLoc.call(ur,Cr,260),setImgLoc.call(ur,Br,260),setAlpha.call(ur,Br,100),setImgLoc.call(ur,Pr,0),setAlpha.call(ur,Pr,100)}),0),Tr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:255}),jy(nr.val("ahex")))break;Tr.val("xy",{x:nr.val("h"),y:100-nr.val("v")},Tr),Fr.val("y",255-nr.val("a"),Fr);break;default:throw new Error("Invalid Mode")}switch(er){case"h":break;case"s":case"v":case"a":setTimeout((function(){setAlpha.call(ur,kr,100),setAlpha.call(ur,Cr,100),setImgLoc.call(ur,Er,260),setAlpha.call(ur,Er,100),setImgLoc.call(ur,Nr,260),setAlpha.call(ur,Nr,100)}),0);break;case"r":case"g":case"b":setTimeout((function(){setBG.call(ur,br,"transparent"),setBG.call(ur,wr,"transparent"),setAlpha.call(ur,Cr,100),setAlpha.call(ur,kr,100),setImgLoc.call(ur,kr,tr),setImgLoc.call(ur,xr,tr-260),setImgLoc.call(ur,Cr,rr-780),setImgLoc.call(ur,Br,rr-520),setImgLoc.call(ur,Er,rr),setImgLoc.call(ur,Nr,rr-260),setImgLoc.call(ur,Pr,260),setAlpha.call(ur,Pr,100)}),0)}jy(nr.val("ahex"))||activeColorChanged.call(ur,nr)}function activeColorChanged(er,tr){(jy(tr)||tr!==Fr&&tr!==Tr)&&positionMapAndBarArrows.call(ur,er,tr),setTimeout((function(){updatePreview.call(ur,er),updateMapVisuals.call(ur,er),updateBarVisuals.call(ur,er)}),0)}function mapValueChanged(er,tr){var rr=fr.active;if(tr===Tr||!jy(rr.val())){var nr=er.val("all");switch(dr.color.mode){case"h":rr.val("sv",{s:nr.x,v:100-nr.y},tr);break;case"s":case"a":rr.val("hv",{h:nr.x,v:100-nr.y},tr);break;case"v":rr.val("hs",{h:nr.x,s:100-nr.y},tr);break;case"r":rr.val("gb",{g:255-nr.y,b:nr.x},tr);break;case"g":rr.val("rb",{r:255-nr.y,b:nr.x},tr);break;case"b":rr.val("rg",{r:nr.x,g:255-nr.y},tr)}}}function colorBarValueChanged(er,tr){var rr=fr.active;if(tr===Fr||!jy(rr.val()))switch(dr.color.mode){case"h":rr.val("h",{h:360-er.val("y")},tr);break;case"s":rr.val("s",{s:100-er.val("y")},tr);break;case"v":rr.val("v",{v:100-er.val("y")},tr);break;case"r":rr.val("r",{r:255-er.val("y")},tr);break;case"g":rr.val("g",{g:255-er.val("y")},tr);break;case"b":rr.val("b",{b:255-er.val("y")},tr);break;case"a":rr.val("a",255-er.val("y"),tr)}}function positionMapAndBarArrows(er,tr){if(tr!==Tr)switch(dr.color.mode){case"h":var rr=er.val("sv");Tr.val("xy",{x:jy(rr)?100:rr.s,y:100-(jy(rr)?100:rr.v)},tr);break;case"s":case"a":var nr=er.val("hv");Tr.val("xy",{x:nr&&nr.h||0,y:100-(jy(nr)?100:nr.v)},tr);break;case"v":var ar=er.val("hs");Tr.val("xy",{x:ar&&ar.h||0,y:100-(jy(ar)?100:ar.s)},tr);break;case"r":var ir=er.val("bg");Tr.val("xy",{x:ir&&ir.b||0,y:255-(ir&&ir.g||0)},tr);break;case"g":var or=er.val("br");Tr.val("xy",{x:or&&or.b||0,y:255-(or&&or.r||0)},tr);break;case"b":var sr=er.val("rg");Tr.val("xy",{x:sr&&sr.r||0,y:255-(sr&&sr.g||0)},tr)}if(tr!==Fr)switch(dr.color.mode){case"h":Fr.val("y",360-(er.val("h")||0),tr);break;case"s":var lr=er.val("s");Fr.val("y",100-(jy(lr)?100:lr),tr);break;case"v":var cr=er.val("v");Fr.val("y",100-(jy(cr)?100:cr),tr);break;case"r":Fr.val("y",255-(er.val("r")||0),tr);break;case"g":Fr.val("y",255-(er.val("g")||0),tr);break;case"b":Fr.val("y",255-(er.val("b")||0),tr);break;case"a":var ur=er.val("a");Fr.val("y",255-(jy(ur)?255:ur),tr)}}function updatePreview(er){try{var tr=er.val("all");Ir.css({backgroundColor:tr&&"#"+tr.hex||"transparent"}),setAlpha.call(ur,Ir,tr&&toFixedNumeric(100*tr.a/255,4)||0)}catch(er){}}function updateMapVisuals(er){switch(dr.color.mode){case"h":setBG.call(ur,br,new ar({h:er.val("h")||0,s:100,v:100}).val("hex"));break;case"s":case"a":var tr=er.val("s");setAlpha.call(ur,xr,100-(jy(tr)?100:tr));break;case"v":var rr=er.val("v");setAlpha.call(ur,kr,jy(rr)?100:rr);break;case"r":setAlpha.call(ur,xr,toFixedNumeric((er.val("r")||0)/255*100,4));break;case"g":setAlpha.call(ur,xr,toFixedNumeric((er.val("g")||0)/255*100,4));break;case"b":setAlpha.call(ur,xr,toFixedNumeric((er.val("b")||0)/255*100))}var nr=er.val("a");setAlpha.call(ur,Sr,toFixedNumeric(100*(255-(nr||0))/255,4))}function updateBarVisuals(er){switch(dr.color.mode){case"h":var tr=er.val("a");setAlpha.call(ur,Lr,toFixedNumeric(100*(255-(tr||0))/255,4));break;case"s":var rr=er.val("hva"),nr=new ar({h:rr&&rr.h||0,s:100,v:jy(rr)?100:rr.v});setBG.call(ur,wr,nr.val("hex")),setAlpha.call(ur,Br,100-(jy(rr)?100:rr.v)),setAlpha.call(ur,Lr,toFixedNumeric(100*(255-(rr&&rr.a||0))/255,4));break;case"v":var ir=er.val("hsa"),or=new ar({h:ir&&ir.h||0,s:jy(ir)?100:ir.s,v:100});setBG.call(ur,wr,or.val("hex")),setAlpha.call(ur,Lr,toFixedNumeric(100*(255-(ir&&ir.a||0))/255,4));break;case"r":case"g":case"b":var sr=er.val("rgba"),lr=0,cr=0;"r"===dr.color.mode?(lr=sr&&sr.b||0,cr=sr&&sr.g||0):"g"===dr.color.mode?(lr=sr&&sr.b||0,cr=sr&&sr.r||0):"b"===dr.color.mode&&(lr=sr&&sr.r||0,cr=sr&&sr.g||0);var hr=cr>lr?lr:cr;setAlpha.call(ur,Br,lr>cr?toFixedNumeric((lr-cr)/(255-cr)*100,4):0),setAlpha.call(ur,Er,cr>lr?toFixedNumeric((cr-lr)/(255-lr)*100,4):0),setAlpha.call(ur,Nr,toFixedNumeric(hr/255*100,4)),setAlpha.call(ur,Lr,toFixedNumeric(100*(255-(sr&&sr.a||0))/255,4));break;case"a":var pr=er.val("a");setBG.call(ur,wr,er.val("hex")||"000000"),setAlpha.call(ur,Lr,jy(pr)?100:0),setAlpha.call(ur,Pr,jy(pr)?0:100)}}function setBG(er,tr){er.css({backgroundColor:tr&&6===tr.length&&"#"+tr||"transparent"})}function setImg(er,tr){hr&&(tr.includes("AlphaBar.png")||tr.includes("Bars.png")||tr.includes("Maps.png"))?(er.attr("pngSrc",tr),er.css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+tr+"', sizingMethod='scale')"})):er.css({backgroundImage:"url('"+tr+"')"})}function setImgLoc(er,tr){er.css({top:tr+"px"})}function setAlpha(er,tr){if(er.css({visibility:tr>0?"visible":"hidden"}),tr>0&&tr<100)if(hr){var rr=er.attr("pngSrc");!jy(rr)&&(rr.includes("AlphaBar.png")||rr.includes("Bars.png")||rr.includes("Maps.png"))?er.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+rr+"', sizingMethod='scale') progid:DXImageTransform.Microsoft.Alpha(opacity="+tr+")"}):er.css({opacity:toFixedNumeric(tr/100,4)})}else er.css({opacity:toFixedNumeric(tr/100,4)});else if(0===tr||100===tr)if(hr){var nr=er.attr("pngSrc");!jy(nr)&&(nr.includes("AlphaBar.png")||nr.includes("Bars.png")||nr.includes("Maps.png"))?er.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+nr+"', sizingMethod='scale')"}):er.css({opacity:""})}else er.css({opacity:""})}function revertColor(){fr.active.val("ahex",fr.current.val("ahex"))}function commitColor(){fr.current.val("ahex",fr.active.val("ahex"))}function radioClicked(tr){er(this).parents("tbody:first").find('input:radio[value!="'+tr.target.value+'"]').removeAttr("checked"),setColorMode.call(ur,tr.target.value)}function currentClicked(){revertColor.call(ur)}function cancelClicked(){revertColor.call(ur),dr.window.expandable&&hide.call(ur),"function"==typeof cr&&cr.call(ur,fr.active,Qr)}function okClicked(){commitColor.call(ur),dr.window.expandable&&hide.call(ur),"function"==typeof sr&&sr.call(ur,fr.active,Mr)}function iconImageClicked(){show.call(ur)}function currentColorChanged(er){var tr=er.val("hex");Rr.css({backgroundColor:tr&&"#"+tr||"transparent"}),setAlpha.call(ur,Rr,toFixedNumeric(100*(er.val("a")||0)/255,4))}function expandableColorChanged(er){var tr=er.val("hex"),rr=er.val("va");Dr.css({backgroundColor:tr&&"#"+tr||"transparent"}),setAlpha.call(ur,jr,toFixedNumeric(100*(255-(rr&&rr.a||0))/255,4)),dr.window.bindToInput&&dr.window.updateInputColor&&dr.window.input.css({backgroundColor:tr&&"#"+tr||"transparent",color:jy(rr)||rr.v>75?"#000000":"#ffffff"})}function moveBarMouseDown(tr){gr=Number.parseInt(yr.css("left")),mr=Number.parseInt(yr.css("top")),_r=tr.pageX,vr=tr.pageY,er(document).bind("mousemove",documentMouseMove).bind("mouseup",documentMouseUp),tr.preventDefault()}function documentMouseMove(tr){return yr.css({left:gr-(_r-tr.pageX)+"px",top:mr-(vr-tr.pageY)+"px"}),dr.window.expandable&&!er.support.boxModel&&yr.prev().css({left:yr.css("left"),top:yr.css("top")}),tr.stopPropagation(),tr.preventDefault(),!1}function documentMouseUp(tr){return er(document).unbind("mousemove",documentMouseMove).unbind("mouseup",documentMouseUp),tr.stopPropagation(),tr.preventDefault(),!1}function quickPickClicked(tr){return tr.preventDefault(),tr.stopPropagation(),fr.active.val("ahex",er(this).attr("title")||null,tr.target),!1}function show(){function attachIFrame(){if(dr.window.expandable&&!er.support.boxModel){var tr=yr.find("table:first");yr.before("<iframe/>"),yr.prev().css({width:tr.width(),height:yr.height(),opacity:0,position:"absolute",left:yr.css("left"),top:yr.css("top")})}}switch(fr.current.val("ahex",fr.active.val("ahex")),dr.window.expandable&&(er(document.body).children("div.jPicker.Container").css({zIndex:10}),yr.css({zIndex:20})),dr.window.effects.type){case"fade":yr.fadeIn(dr.window.effects.speed.show,attachIFrame);break;case"slide":yr.slideDown(dr.window.effects.speed.show,attachIFrame);break;case"show":default:yr.show(dr.window.effects.speed.show,attachIFrame)}}function hide(){function removeIFrame(){dr.window.expandable&&yr.css({zIndex:10}),dr.window.expandable&&!er.support.boxModel&&yr.prev().remove()}switch(dr.window.effects.type){case"fade":yr.fadeOut(dr.window.effects.speed.hide,removeIFrame);break;case"slide":yr.slideUp(dr.window.effects.speed.hide,removeIFrame);break;case"show":default:yr.hide(dr.window.effects.speed.hide,removeIFrame)}}function initialize(){var nr=dr.window,ir=nr.expandable?er(ur).next().find(".Container:first"):null;(yr=nr.expandable?er("<div/>"):er(ur)).addClass("jPicker Container"),nr.expandable&&yr.hide(),yr.get(0).onselectstart=function(er){return"input"===er.target.nodeName.toLowerCase()};var or=fr.active.val("all");nr.alphaPrecision<0?nr.alphaPrecision=0:nr.alphaPrecision>2&&(nr.alphaPrecision=2);var sr='<table class="jPicker" cellpadding="0" cellspacing="0">\n <tbody>\n '.concat(nr.expandable?'<tr><td class="Move" colspan="5"> </td></tr>':"",'\n <tr>\n <td rowspan="9"><h2 class="Title">').concat(nr.title||Ar.text.title,'</h2><div class="Map"><span class="Map1"> </span><span class="Map2"> </span><span class="Map3"> </span><img src="').concat(pr.clientPath+pr.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(pr.clientPath+pr.colorBar.arrow.file,'" class="Arrow"/></div></td>\n <td colspan="2" class="Preview">').concat(Ar.text.newColor,'<div><span class="Active" title="').concat(Ar.tooltips.colors.newColor,'"> </span><span class="Current" title="').concat(Ar.tooltips.colors.currentColor,'"> </span></div>').concat(Ar.text.currentColor,'</td>\n <td rowspan="9" class="Button"><input type="button" class="Ok" value="').concat(Ar.text.ok,'" title="').concat(Ar.tooltips.buttons.ok,'"/><input type="button" class="Cancel" value="').concat(Ar.text.cancel,'" title="').concat(Ar.tooltips.buttons.cancel,'"/><hr/><div class="Grid"> </div></td>\n </tr>\n <tr class="Hue">\n <td class="Radio"><label title="').concat(Ar.tooltips.hue.radio,'"><input type="radio" value="h"').concat("h"===dr.color.mode?' checked="checked"':"",'/>H:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(jy(or)?"":or.h,'" title="').concat(Ar.tooltips.hue.textbox,'"/> °</td>\n </tr>\n <tr class="Saturation">\n <td class="Radio"><label title="').concat(Ar.tooltips.saturation.radio,'"><input type="radio" value="s"').concat("s"===dr.color.mode?' checked="checked"':"",'/>S:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(jy(or)?"":or.s,'" title="').concat(Ar.tooltips.saturation.textbox,'"/> %</td>\n </tr>\n <tr class="Value">\n <td class="Radio"><label title="').concat(Ar.tooltips.value.radio,'"><input type="radio" value="v"').concat("v"===dr.color.mode?' checked="checked"':"",'/>V:</label><br/><br/></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(jy(or)?"":or.v,'" title="').concat(Ar.tooltips.value.textbox,'"/> %<br/><br/></td>\n </tr>\n <tr class="Red">\n <td class="Radio"><label title="').concat(Ar.tooltips.red.radio,'"><input type="radio" value="r"').concat("r"===dr.color.mode?' checked="checked"':"",'/>R:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(jy(or)?"":or.r,'" title="').concat(Ar.tooltips.red.textbox,'"/></td>\n </tr>\n <tr class="Green">\n <td class="Radio"><label title="').concat(Ar.tooltips.green.radio,'"><input type="radio" value="g"').concat("g"===dr.color.mode?' checked="checked"':"",'/>G:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(jy(or)?"":or.g,'" title="').concat(Ar.tooltips.green.textbox,'"/></td>\n </tr>\n <tr class="Blue">\n <td class="Radio"><label title="').concat(Ar.tooltips.blue.radio,'"><input type="radio" value="b"').concat("b"===dr.color.mode?' checked="checked"':"",'/>B:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(jy(or)?"":or.b,'" title="').concat(Ar.tooltips.blue.textbox,'"/></td>\n </tr>\n <tr class="Alpha">\n <td class="Radio">').concat(nr.alphaSupport?'<label title="'.concat(Ar.tooltips.alpha.radio,'"><input type="radio" value="a"').concat("a"===dr.color.mode?' checked="checked"':"","/>A:</label>"):" ",'</td>\n <td class="Text">').concat(nr.alphaSupport?'<input type="text" maxlength="'.concat(3+nr.alphaPrecision,'" value="').concat(jy(or)?"":toFixedNumeric(100*or.a/255,nr.alphaPrecision),'" title="').concat(Ar.tooltips.alpha.textbox,'"/> %'):" ",'</td>\n </tr>\n <tr class="Hex">\n <td colspan="2" class="Text"><label title="').concat(Ar.tooltips.hex.textbox,'">#:<input type="text" maxlength="6" class="Hex" value="').concat(jy(or)?"":or.hex,'"/></label>').concat(nr.alphaSupport?'<input type="text" maxlength="2" class="AHex" value="'.concat(jy(or)?"":or.ahex.substring(6),'" title="').concat(Ar.tooltips.hex.alpha,'"/></td>'):" ","\n </tr>\n </tbody></table>");nr.expandable?(yr.html(sr),er(document.body).children("div.jPicker.Container").length?er(document.body).children("div.jPicker.Container:last").after(yr):er(document.body).prepend(yr),yr.mousedown((function(){er(document.body).children("div.jPicker.Container").css({zIndex:10}),yr.css({zIndex:20})})),yr.css({left:"left"===nr.position.x?ir.offset().left-530-("center"===nr.position.y?25:0)+"px":"center"===nr.position.x?ir.offset().left-260+"px":"right"===nr.position.x?ir.offset().left-10+("center"===nr.position.y?25:0)+"px":"screenCenter"===nr.position.x?(er(document).width()>>1)-260+"px":ir.offset().left+Number.parseInt(nr.position.x)+"px",position:"absolute",top:"top"===nr.position.y?ir.offset().top-312+"px":"center"===nr.position.y?ir.offset().top-156+"px":"bottom"===nr.position.y?ir.offset().top+25+"px":ir.offset().top+Number.parseInt(nr.position.y)+"px"})):(yr=er(ur)).html(sr);var cr=yr.find("tbody:first");br=cr.find("div.Map:first"),wr=cr.find("div.Bar:first");var hr=br.find("span"),gr=wr.find("span");kr=hr.filter(".Map1:first"),xr=hr.filter(".Map2:first"),Sr=hr.filter(".Map3:first"),Cr=gr.filter(".Map1:first"),Br=gr.filter(".Map2:first"),Er=gr.filter(".Map3:first"),Nr=gr.filter(".Map4:first"),Lr=gr.filter(".Map5:first"),Pr=gr.filter(".Map6:first"),(Tr=new tr(br,{map:{width:pr.colorMap.width,height:pr.colorMap.height},arrow:{image:pr.clientPath+pr.colorMap.arrow.file,width:pr.colorMap.arrow.width,height:pr.colorMap.arrow.height}})).bind(mapValueChanged),(Fr=new tr(wr,{map:{width:pr.colorBar.width,height:pr.colorBar.height},arrow:{image:pr.clientPath+pr.colorBar.arrow.file,width:pr.colorBar.arrow.width,height:pr.colorBar.arrow.height}})).bind(colorBarValueChanged),Ur=new rr(cr,fr.active,nr.expandable&&nr.bindToInput?nr.input:null,nr.alphaPrecision);var mr=jy(or)?null:or.hex,_r=cr.find(".Preview"),vr=cr.find(".Button");if(Ir=_r.find(".Active:first").css({backgroundColor:mr&&"#"+mr||"transparent"}),Rr=_r.find(".Current:first").css({backgroundColor:mr&&"#"+mr||"transparent"}).bind("click",currentClicked),setAlpha.call(ur,Rr,toFixedNumeric(100*fr.current.val("a")/255,4)),Mr=vr.find(".Ok:first").bind("click",okClicked),Qr=vr.find(".Cancel:first").bind("click",cancelClicked),Or=vr.find(".Grid:first"),setTimeout((function(){setImg.call(ur,kr,pr.clientPath+"Maps.png"),setImg.call(ur,xr,pr.clientPath+"Maps.png"),setImg.call(ur,Sr,pr.clientPath+"map-opacity.png"),setImg.call(ur,Cr,pr.clientPath+"Bars.png"),setImg.call(ur,Br,pr.clientPath+"Bars.png"),setImg.call(ur,Er,pr.clientPath+"Bars.png"),setImg.call(ur,Nr,pr.clientPath+"Bars.png"),setImg.call(ur,Lr,pr.clientPath+"bar-opacity.png"),setImg.call(ur,Pr,pr.clientPath+"AlphaBar.png"),setImg.call(ur,_r.find("div:first"),pr.clientPath+"preview-opacity.png")}),0),cr.find("td.Radio input").bind("click",radioClicked),fr.quickList&&fr.quickList.length>0){for(var Vr="",zr=0;zr<fr.quickList.length;zr++){"string"===_typeof(fr.quickList[zr]).toString().toLowerCase()&&(fr.quickList[zr]=new ar({hex:fr.quickList[zr]}));var Kr=fr.quickList[zr].val("a"),qr=fr.quickList[zr].val("ahex");!nr.alphaSupport&&qr&&(qr=qr.substring(0,6)+"ff");var Wr=fr.quickList[zr].val("hex");qr||(qr="00000000"),Vr+='<span class="QuickColor" title="#'+qr+'" style="background-color:'+(Wr&&"#"+Wr||"")+";"+(Wr?"":"background-image:url("+pr.clientPath+"NoColor.png)")+(nr.alphaSupport&&Kr&&Kr<255?";opacity:"+toFixedNumeric(Kr/255,4)+";filter:Alpha(opacity="+toFixedNumeric(Kr/2.55,4)+")":"")+'"> </span>'}setImg.call(ur,Or,pr.clientPath+"bar-opacity.png"),Or.html(Vr),Or.find(".QuickColor").click(quickPickClicked)}setColorMode.call(ur,dr.color.mode),fr.active.bind(activeColorChanged),"function"==typeof lr&&fr.active.bind(lr),fr.current.bind(currentColorChanged),nr.expandable?(ur.icon=ir.parents(".Icon:first"),Dr=ur.icon.find(".Color:first").css({backgroundColor:mr&&"#"+mr||"transparent"}),jr=ur.icon.find(".Alpha:first"),setImg.call(ur,jr,pr.clientPath+"bar-opacity.png"),setAlpha.call(ur,jr,toFixedNumeric(100*(255-(jy(or)?0:or.a))/255,4)),Hr=ur.icon.find(".Image:first").css({backgroundImage:"url('"+pr.clientPath+pr.picker.file+"')"}).bind("click",iconImageClicked),nr.bindToInput&&nr.updateInputColor&&nr.input.css({backgroundColor:mr&&"#"+mr||"transparent",color:jy(or)||or.v>75?"#000000":"#ffffff"}),Gr=cr.find(".Move:first").bind("mousedown",moveBarMouseDown),fr.active.bind(expandableColorChanged)):show.call(ur)}var pr=dr.images,Ar=dr.localization,fr={active:"string"===_typeof(dr.color.active).toString().toLowerCase()?new ar({ahex:!dr.window.alphaSupport&&dr.color.active?dr.color.active.substring(0,6)+"ff":dr.color.active}):new ar({ahex:!dr.window.alphaSupport&&dr.color.active.val("ahex")?dr.color.active.val("ahex").substring(0,6)+"ff":dr.color.active.val("ahex")}),current:"string"===_typeof(dr.color.active).toString().toLowerCase()?new ar({ahex:!dr.window.alphaSupport&&dr.color.active?dr.color.active.substring(0,6)+"ff":dr.color.active}):new ar({ahex:!dr.window.alphaSupport&&dr.color.active.val("ahex")?dr.color.active.val("ahex").substring(0,6)+"ff":dr.color.active.val("ahex")}),quickList:dr.color.quickList};"function"!=typeof sr&&(sr=null),"function"!=typeof lr&&(lr=null),"function"!=typeof cr&&(cr=null);var gr=null,mr=null,_r=null,vr=null,yr=null,br=null,wr=null,kr=null,xr=null,Sr=null,Cr=null,Br=null,Er=null,Nr=null,Lr=null,Pr=null,Tr=null,Fr=null,Ur=null,Ir=null,Rr=null,Mr=null,Qr=null,Or=null,Dr=null,jr=null,Hr=null,Gr=null;er.extend(!0,ur,{commitCallback:sr,liveCallback:lr,cancelCallback:cr,color:fr,show:show,hide:hide,destroy:function destroy(){yr.find("td.Radio input").unbind("click",radioClicked),Rr.unbind("click",currentClicked),Qr.unbind("click",cancelClicked),Mr.unbind("click",okClicked),dr.window.expandable&&(Hr.unbind("click",iconImageClicked),Gr.unbind("mousedown",moveBarMouseDown),ur.icon=null),yr.find(".QuickColor").unbind("click",quickPickClicked),br=null,wr=null,kr=null,xr=null,Sr=null,Cr=null,Br=null,Er=null,Nr=null,Lr=null,Pr=null,Tr.destroy(),Tr=null,Fr.destroy(),Fr=null,Ur.destroy(),Ur=null,Ir=null,Rr=null,Mr=null,Qr=null,Or=null,sr=null,cr=null,lr=null,yr.html("");for(var er=0;er<ir.length;er++)ir[er]===ur&&(ir.splice(er,1),er--)}}),ir.push(ur),setTimeout((function(){initialize.call(ur)}),0)}))},er.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 ar({ahex:"#ffcc00ff"}),quickList:[new ar({h:360,s:33,v:100}),new ar({h:360,s:66,v:100}),new ar({h:360,s:100,v:100}),new ar({h:360,s:100,v:75}),new ar({h:360,s:100,v:50}),new ar({h:180,s:0,v:100}),new ar({h:30,s:33,v:100}),new ar({h:30,s:66,v:100}),new ar({h:30,s:100,v:100}),new ar({h:30,s:100,v:75}),new ar({h:30,s:100,v:50}),new ar({h:180,s:0,v:90}),new ar({h:60,s:33,v:100}),new ar({h:60,s:66,v:100}),new ar({h:60,s:100,v:100}),new ar({h:60,s:100,v:75}),new ar({h:60,s:100,v:50}),new ar({h:180,s:0,v:80}),new ar({h:90,s:33,v:100}),new ar({h:90,s:66,v:100}),new ar({h:90,s:100,v:100}),new ar({h:90,s:100,v:75}),new ar({h:90,s:100,v:50}),new ar({h:180,s:0,v:70}),new ar({h:120,s:33,v:100}),new ar({h:120,s:66,v:100}),new ar({h:120,s:100,v:100}),new ar({h:120,s:100,v:75}),new ar({h:120,s:100,v:50}),new ar({h:180,s:0,v:60}),new ar({h:150,s:33,v:100}),new ar({h:150,s:66,v:100}),new ar({h:150,s:100,v:100}),new ar({h:150,s:100,v:75}),new ar({h:150,s:100,v:50}),new ar({h:180,s:0,v:50}),new ar({h:180,s:33,v:100}),new ar({h:180,s:66,v:100}),new ar({h:180,s:100,v:100}),new ar({h:180,s:100,v:75}),new ar({h:180,s:100,v:50}),new ar({h:180,s:0,v:40}),new ar({h:210,s:33,v:100}),new ar({h:210,s:66,v:100}),new ar({h:210,s:100,v:100}),new ar({h:210,s:100,v:75}),new ar({h:210,s:100,v:50}),new ar({h:180,s:0,v:30}),new ar({h:240,s:33,v:100}),new ar({h:240,s:66,v:100}),new ar({h:240,s:100,v:100}),new ar({h:240,s:100,v:75}),new ar({h:240,s:100,v:50}),new ar({h:180,s:0,v:20}),new ar({h:270,s:33,v:100}),new ar({h:270,s:66,v:100}),new ar({h:270,s:100,v:100}),new ar({h:270,s:100,v:75}),new ar({h:270,s:100,v:50}),new ar({h:180,s:0,v:10}),new ar({h:300,s:33,v:100}),new ar({h:300,s:66,v:100}),new ar({h:300,s:100,v:100}),new ar({h:300,s:100,v:75}),new ar({h:300,s:100,v:50}),new ar({h:180,s:0,v:0}),new ar({h:330,s:33,v:100}),new ar({h:330,s:66,v:100}),new ar({h:330,s:100,v:100}),new ar({h:330,s:100,v:75}),new ar({h:330,s:100,v:50}),new ar]},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)"}}}},er}].reduce((function(er,tr){return tr(er)}),jQuery);Wy.tool_scale=1,Wy.exportWindowCt=0,Wy.langChanged=!1,Wy.showSaveWarning=!1,Wy.storagePromptState="ignore";var Yy,Jy=[],$y={lang:"",iconsize:"",bkgd_color:"#FFF",bkgd_url:"",img_save:"embed",save_notice_done:!1,export_notice_done:!1},Zy=["ext-connector","ext-eyedropper","ext-grid","ext-imagelib","ext-markers","ext-overview_window","ext-panning","ext-polygon","ext-shapes","ext-star","ext-storage"],eb={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,colorPickerCSS:null,initTool:"select",exportWindowType:"new",wireframe:!1,showlayers:!1,no_save_warning:!1,extPath:"./extensions/",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},tb=Wy.uiStrings={},rb={},nb=!1,ab=!1,ib=!1,ob={},sb={extensions:[],allowedOrigins:[]};function loadSvgString(er){return _loadSvgString.apply(this,arguments)}function _loadSvgString(){return(_loadSvgString=_asyncToGenerator(regeneratorRuntime.mark((function _callee21(er){var tr,rr,nr=arguments;return regeneratorRuntime.wrap((function _callee21$(ar){for(;;)switch(ar.prev=ar.next){case 0:if(tr=nr.length>1&&void 0!==nr[1]?nr[1]:{},rr=tr.noAlert,!(!1!==Yy.setSvgString(er))){ar.next=4;break}return ar.abrupt("return");case 4:if(rr){ar.next=8;break}return ar.next=7,Xy.alert(tb.notification.errorLoadingSVG);case 7:return ar.abrupt("return");case 8:throw new Error("Error loading SVG");case 9:case"end":return ar.stop()}}),_callee21)})))).apply(this,arguments)}Wy.pref=function(er,tr,rr){return rr||tr?(ob[er]=tr,void(Wy.curPrefs=ob)):er in ob?ob[er]:$y[er]},Wy.putLocale=Ky,Wy.readLang=zy,Wy.setStrings=Vy,Wy.loadContentAndPrefs=function(){if(sb.forceStorage||!sb.noStorageOnLoad&&document.cookie.match(/(?:^|;\s*)svgeditstore=(?:prefsAndContent|prefsOnly)/)){if(Wy.storage&&(sb.forceStorage||!sb.noStorageOnLoad&&document.cookie.match(/(?:^|;\s*)svgeditstore=prefsAndContent/))){var er="svgedit-"+sb.canvasName,tr=Wy.storage.getItem(er);tr&&Wy.loadFromString(tr)}Object.keys($y).forEach((function(er){var tr="svg-edit-"+er;if(Wy.storage){var rr=Wy.storage.getItem(tr);rr&&($y[er]=String(rr))}else if(window.widget)$y[er]=window.widget.preferenceForKey(tr);else{var nr=document.cookie.match(new RegExp("(?:^|;\\s*)"+function regexEscape(er){return String(er).replace(/[.\\+*?[^\]$(){}=!<>|:-]/g,"\\$&")}(encodeURIComponent(tr))+"=([^;]+)"));$y[er]=nr?decodeURIComponent(nr[1]):""}}))}},Wy.setConfig=function(er,tr){function extendOrAdd(er,tr,rr){er[tr]&&"object"===_typeof(er[tr])?Xy.extend(!0,er[tr],rr):er[tr]=rr}tr=tr||{},Object.entries(er).forEach((function(er){var rr=_slicedToArray(er,2),nr=rr[0],ar=rr[1];if({}.hasOwnProperty.call($y,nr)){if(!1===tr.overwrite&&(sb.preventAllURLConfig||{}.hasOwnProperty.call(ob,nr)))return;!0===tr.allowInitialUserOverride?$y[nr]=ar:Wy.pref(nr,ar)}else if(["extensions","allowedOrigins"].includes(nr)){if(!1===tr.overwrite&&(sb.preventAllURLConfig||["allowedOrigins"].includes(nr)||"extensions"===nr&&sb.lockExtensions))return;sb[nr]=sb[nr].concat(ar)}else if({}.hasOwnProperty.call(eb,nr)){if(!1===tr.overwrite&&(sb.preventAllURLConfig||{}.hasOwnProperty.call(sb,nr)))return;if({}.hasOwnProperty.call(sb,nr)){if(!1===tr.overwrite)return;extendOrAdd(sb,nr,ar)}else!0===tr.allowInitialUserOverride?extendOrAdd(eb,nr,ar):eb[nr]&&"object"===_typeof(eb[nr])?(sb[nr]=Array.isArray(eb[nr])?[]:{},Xy.extend(!0,sb[nr],ar)):sb[nr]=ar}})),Wy.curConfig=sb},Wy.setCustomHandlers=function(er){return Wy.ready((function(){er.open&&(Xy('#tool_open > input[type="file"]').remove(),Xy("#tool_open").show(),Yy.open=er.open),er.save&&(Wy.showSaveWarning=!1,Yy.bind("saved",er.save)),er.exportImage&&(ab=er.exportImage,Yy.bind("exported",ab)),er.exportPDF&&(ib=er.exportPDF,Yy.bind("exportedPDF",ib))}))},Wy.randomizeIds=function(er){Yy.randomizeIds(er)},Wy.init=function(){try{"localStorage"in window&&(Wy.storage=localStorage)}catch(er){}var er=[];function setupCurConfig(){(sb=Xy.extend(!0,{},eb,sb)).noDefaultExtensions||(sb.extensions=sb.extensions.concat(Zy)),["extensions","allowedOrigins"].forEach((function(er){sb[er]=Xy.grep(sb[er],(function(tr,rr){return rr===sb[er].indexOf(tr)}))})),Wy.curConfig=sb}Xy("#lang_select option").each((function(){er.push(this.value)})),function(){var er=new URL(location),tr=er.search,rr=er.searchParams;if(tr){if(rb=function deparam(er,tr){var rr={};return er.replace(/\+/g," ").split("&").forEach((function(er){var nr=er.split("="),ar=decodeURIComponent(nr[0]),ir=ar.split("]["),or=ir.length-1;if(/\[/.test(ir[0])&&/\]$/.test(ir[or])?(ir[or]=ir[or].replace(/\]$/,""),or=(ir=ir.shift().split("[").concat(ir)).length-1):or=0,nr.length>=2){var sr=decodeURIComponent(nr.slice(1).join("="));if(tr&&(sr=sr&&!isNaN(sr)?+sr:"undefined"===sr?void 0:void 0!==uf[sr]?uf[sr]:sr),or)for(var lr=rr,cr=0;cr<=or;cr++)lr=lr[ar=""===ir[cr]?lr.length:ir[cr]]=cr<or?lr[ar]||(ir[cr+1]&&isNaN(ir[cr+1])?{}:[]):sr;else Array.isArray(rr[ar])?rr[ar].push(sr):void 0!==rr[ar]?rr[ar]=[rr[ar],sr]:rr[ar]=sr}else ar&&(rr[ar]=tr?void 0:"")})),rr}(rr.toString(),!0),["initStroke","initFill"].forEach((function(er){rr.has("".concat(er,"[color]"))&&(rb[er].color=rr.get("".concat(er,"[color]")))})),rr.has("bkgd_color")&&(rb.bkgd_color="#"+rr.get("bkgd_color")),rb.dimensions&&(rb.dimensions=rb.dimensions.split(",")),rb.extensions&&(rb.extensions=rb.extensions.match(/[:/\\]/)?"":rb.extensions.split(",")),["extPath","imgPath"].forEach((function(er){rb[er]&&delete rb[er]})),Wy.setConfig(rb,{overwrite:!1}),setupCurConfig(),!sb.preventURLContentLoading){var nr=rb.source;if(!nr){var ar=rr.get("source");ar&&ar.startsWith("data:")&&(nr=ar)}if(nr)return void(nr.startsWith("data:")?Wy.loadFromDataURI(nr):Wy.loadFromString(nr));if(rb.url)return void Wy.loadFromURL(rb.url)}rb.noStorageOnLoad&&!sb.forceStorage||Wy.loadContentAndPrefs()}else setupCurConfig(),Wy.loadContentAndPrefs()}(),function setupCurPrefs(){ob=Xy.extend(!0,{},$y,ob),Wy.curPrefs=ob}();var tr=Wy.setIcon=function(er,tr,rr){var nr="string"==typeof tr?Xy.getSvgIcon(tr,!0):tr.clone();nr?Xy(er).empty().append(nr):console.log("NOTE: Icon image missing: "+tr)},rr=function(){var tr=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var tr,rr,nr,ar,ir,or;return regeneratorRuntime.wrap((function _callee2$(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,Wy.putLocale(Wy.pref("lang"),er);case 2:return tr=sr.sent,rr=tr.langParam,nr=tr.langData,sr.next=7,Pi(rr,nr);case 7:return ar=tb.common,ir=ar.ok,or=ar.cancel,jQueryPluginDBox(Xy,{ok:ir,cancel:or}),Xy.svgIcons(sb.imgPath+"svg_edit_icons.svg",{w:24,h:24,id_match:!1,no_img:!wd(),fallback_path:sb.imgPath,fallback:{logo:"logo.png",select:"select.png",select_node:"select_node.png",square:"square.png",rect:"rect.png",fh_rect:"freehand-square.png",circle:"circle.png",ellipse:"ellipse.png",fh_ellipse:"freehand-circle.png",pencil:"fhpath.png",pen:"line.png",text:"text.png",path:"path.png",add_subpath:"add_subpath.png",close_path:"closepath.png",open_path:"openpath.png",image:"image.png",zoom:"zoom.png",arrow_right:"flyouth.png",arrow_right_big:"arrow_right_big.png",arrow_down:"dropdown.gif",fill:"fill.png",stroke:"stroke.png",opacity:"opacity.png",new_image:"clear.png",save:"save.png",export:"export.png",open:"open.png",import:"import.png",docprops:"document-properties.png",source:"source.png",wireframe:"wireframe.png",undo:"undo.png",redo:"redo.png",clone:"clone.png",delete:"delete.png",go_up:"go-up.png",go_down:"go-down.png",context_menu:"context_menu.png",move_bottom:"move_bottom.png",move_top:"move_top.png",to_path:"to_path.png",link_controls:"link_controls.png",reorient:"reorient.png",group_elements:"shape_group_elements.png",ungroup:"shape_ungroup.png",unlink_use:"unlink_use.png",width:"width.png",height:"height.png",c_radius:"c_radius.png",angle:"angle.png",blur:"blur.png",fontsize:"fontsize.png",align:"align.png",align_left:"align-left.png",align_center:"align-center.png",align_right:"align-right.png",align_top:"align-top.png",align_middle:"align-middle.png",align_bottom:"align-bottom.png",linecap_butt:"linecap_butt.png",linecap_square:"linecap_square.png",linecap_round:"linecap_round.png",linejoin_miter:"linejoin_miter.png",linejoin_bevel:"linejoin_bevel.png",linejoin_round:"linejoin_round.png",eye:"eye.png",no_color:"no_color.png",ok:"save.png",cancel:"cancel.png",warning:"warning.png",node_delete:"node_delete.png",node_clone:"node_clone.png",globe_link:"globe_link.png",config:"config.png"},placement:{"#logo":"logo","#tool_clear div,#layer_new":"new_image","#tool_save div":"save","#tool_export div":"export","#tool_open div":"open","#tool_import div":"import","#tool_source":"source","#tool_docprops > div":"docprops","#tool_editor_prefs > div":"config","#tool_editor_homepage > div":"globe_link","#tool_wireframe":"wireframe","#tool_undo":"undo","#tool_redo":"redo","#tool_select":"select","#tool_fhpath":"pencil","#tool_line":"pen","#tool_rect,#tools_rect_show":"rect","#tool_square":"square","#tool_fhrect":"fh_rect","#tool_ellipse,#tools_ellipse_show":"ellipse","#tool_circle":"circle","#tool_fhellipse":"fh_ellipse","#tool_path":"path","#tool_text,#layer_rename":"text","#tool_image":"image","#tool_zoom":"zoom","#tool_clone,#tool_clone_multi":"clone","#tool_node_clone":"node_clone","#layer_delete,#tool_delete,#tool_delete_multi":"delete","#tool_node_delete":"node_delete","#tool_add_subpath":"add_subpath","#tool_openclose_path":"open_path","#tool_move_top":"move_top","#tool_move_bottom":"move_bottom","#tool_topath":"to_path","#tool_node_link":"link_controls","#tool_reorient":"reorient","#tool_group_elements":"group_elements","#tool_ungroup":"ungroup","#tool_unlink_use":"unlink_use","#tool_alignleft, #tool_posleft":"align_left","#tool_aligncenter, #tool_poscenter":"align_center","#tool_alignright, #tool_posright":"align_right","#tool_aligntop, #tool_postop":"align_top","#tool_alignmiddle, #tool_posmiddle":"align_middle","#tool_alignbottom, #tool_posbottom":"align_bottom","#cur_position":"align","#linecap_butt,#cur_linecap":"linecap_butt","#linecap_round":"linecap_round","#linecap_square":"linecap_square","#linejoin_miter,#cur_linejoin":"linejoin_miter","#linejoin_round":"linejoin_round","#linejoin_bevel":"linejoin_bevel","#url_notice":"warning","#layer_up":"go_up","#layer_down":"go_down","#layer_moreopts":"context_menu","#layerlist td.layervis":"eye","#tool_source_save,#tool_docprops_save,#tool_prefs_save":"ok","#tool_source_cancel,#tool_docprops_cancel,#tool_prefs_cancel":"cancel","#rwidthLabel, #iwidthLabel":"width","#rheightLabel, #iheightLabel":"height","#cornerRadiusLabel span":"c_radius","#angleLabel":"angle","#linkLabel,#tool_make_link,#tool_make_link_multi":"globe_link","#zoomLabel":"zoom","#tool_fill label":"fill","#tool_stroke .icon_label":"stroke","#group_opacityLabel":"opacity","#blurLabel":"blur","#font_sizeLabel":"fontsize",".flyout_arrow_horiz":"arrow_right",".dropdown button, #main_button .dropdown":"arrow_down","#palette .palette_item:first, #fill_bg, #stroke_bg":"no_color"},resize:{"#logo .svg_icon":28,".flyout_arrow_horiz .svg_icon":5,".layer_button .svg_icon, #layerlist td.layervis .svg_icon":14,".dropdown button .svg_icon":7,"#main_button .dropdown .svg_icon":9,".palette_item:first .svg_icon":15,"#fill_bg .svg_icon, #stroke_bg .svg_icon":16,".toolbar_button button .svg_icon":16,".stroke_tool div div .svg_icon":20,"#tools_bottom label .svg_icon":18},callback:function callback(er){return _asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee3$(nr){for(;;)switch(nr.prev=nr.next){case 0:return Xy(".toolbar_button button > svg, .toolbar_button button > img").each((function(){Xy(this).parent().prepend(this)})),(er=Xy("#tools_left")).length&&(tr=er.offset().top+er.outerHeight()),rr=Wy.pref("iconsize"),Wy.setIconSize(rr||(Xy(window).height()<tr?"s":"m")),Xy(".tools_flyout").each((function(){var er=Xy("#"+this.id+"_show"),tr=er.attr("data-curopt");if(!er.children("svg, img").length){var rr=Xy(tr).children().clone();rr.length&&(rr[0].removeAttribute("style"),er.append(rr))}})),Xy("#svg_container")[0].style.visibility="visible",nr.next=9,Wy.runCallbacks();case 9:case"end":return nr.stop()}}),_callee3)})))()}}),sr.prev=10,sr.next=13,Promise.all(sb.extensions.map(function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee(er){var tr,nr,ar,ir,or,sr;return regeneratorRuntime.wrap((function _callee$(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.prev=0,tr="".concat(sb.extPath).concat(er,"/").concat(er,".js"),lr.next=4,import(tr);case 4:return nr=lr.sent,ar=nr.default,ir=ar.name,or=void 0===ir?er:ir,sr=ar.init,lr.abrupt("return",Wy.addExtension(or,sr&&sr.bind(Wy),{$:Xy,langParam:rr}));case 9:return lr.prev=9,lr.t0=lr.catch(0),console.error("Extension failed to load: "+er+"; ",lr.t0),lr.abrupt("return",void 0);case 13:case"end":return lr.stop()}}),_callee,null,[[0,9]])})));return function(tr){return er.apply(this,arguments)}}()));case 13:Yy.bind("extensions_added",(function(er,tr){lb=!0,Ci.setAll(),Xy(".flyout_arrow_horiz:empty").each((function(){Xy(this).append(Xy.getSvgIcon("arrow_right",!0).width(5).height(5))})),"ignore"===Wy.storagePromptState&&Ir(!0),cb.forEach((function(er){Yy.call("message",er)}))})),Yy.call("extensions_added"),sr.next=20;break;case 17:sr.prev=17,sr.t0=sr.catch(10),console.log(sr.t0);case 20:case"end":return sr.stop()}}),_callee2,null,[[10,17]])})));return function extAndLocaleFunc(){return tr.apply(this,arguments)}}(),nr={tool_scale:Wy.tool_scale},ar=function setFlyoutPositions(){Xy(".tools_flyout").each((function(){var er=Xy("#"+this.id+"_show"),tr=er.offset(),rr=tr.left,nr=tr.top,ar=er.outerWidth();Xy(this).css({left:(rr+ar)*Wy.tool_scale,top:nr})}))},ir=function(){var er=/^(?:Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,tr=document.getElementsByTagName("script")[0];for(var rr in tr.style)if(er.test(rr))return rr.match(er)[0];return"WebkitOpacity"in tr.style?"Webkit":"KhtmlOpacity"in tr.style?"Khtml":""}(),or=Wy.setIconSize=function(er){var tr="#tools_top .toolset, #editor_panel > *, #history_panel > *, #main_button, #tools_left > *, #path_node_panel > *, #multiselected_panel > *, #g_panel > *, #tool_font_size > *, .tools_flyout",rr=Xy(tr),or=1;if("number"==typeof er)or=er;else{or={s:.75,m:1,l:1.25,xl:1.5}[er]}nr.tool_scale=Wy.tool_scale=or,ar();var sr=rr.parents(":hidden");sr.css("visibility","hidden").show(),function scaleElements(er,tr){var rr=["top","left","bottom","right"];er.each((function(){for(var er=Xy(this),nr=er.outerWidth()*(tr-1),ar=er.outerHeight()*(tr-1),ir=0;ir<4;ir++){var or=rr[ir],sr=er.data("orig_margin-"+or);of(sr)&&(sr=Number.parseInt(er.css("margin-"+or)),er.data("orig_margin-"+or,sr));var lr=sr*tr;"right"===or?lr+=nr:"bottom"===or&&(lr+=ar),er.css("margin-"+or,lr)}}))}(rr,or),sr.css("visibility","visible").hide(),Wy.pref("iconsize",er),Xy("#iconsize").val(er);var lr={"#tools_top":{left:50+Xy("#main_button").width(),height:72},"#tools_left":{width:31,top:74},"div#workarea":{left:38,top:74}},cr=Xy("#tool_size_rules");if(cr.length?cr.empty():cr=Xy('<style id="tool_size_rules"></style>').appendTo("head"),"m"!==er){var ur="";Xy.each(lr,(function(tr,rr){tr="#svg_editor "+tr.replace(/,/g,", #svg_editor"),ur+=tr+"{",Xy.each(rr,(function(tr,rr){var nr;"number"==typeof rr?nr=rr*or+"px":(rr[er]||rr.all)&&(nr=rr[er]||rr.all),ur+=tr+":"+nr+";"})),ur+="}"}));var dr="-"+ir.toLowerCase()+"-";ur+=tr+"{"+dr+"transform: scale("+or+");} #svg_editor div.toolset .toolset {"+dr+"transform: scale(1); margin: 1px !important;} #svg_editor .ui-slider {"+dr+"transform: scale("+1/or+");}",cr.text(ur)}ar()};Wy.canvas=Yy=new Ry(document.getElementById("svgcanvas"),sb);var sr,lr,cr=Cd()?"meta+":"ctrl+",ur=Yy.pathActions,dr=Yy.undoMgr,hr=Xy("#workarea"),pr=Xy("#cmenu_canvas"),Ar={fill:null,stroke:null},fr=null,gr=sb.imgPath+"logo.png",mr="crosshair",_r="crosshair",vr="toolbars";!function(){var er=window.opener||window.parent;if(er)try{var tr=new er.CustomEvent("svgEditorReady",{bubbles:!0,cancelable:!0});er.document.documentElement.dispatchEvent(tr)}catch(er){}}();for(var yr=function setSelectMode(){var er=Xy(".tool_button_current");er.length&&"tool_select"!==er[0].id&&(er.removeClass("tool_button_current").addClass("tool_button"),Xy("#tool_select").addClass("tool_button_current").removeClass("tool_button"),Xy("#styleoverrides").text("\n #svgcanvas svg * {\n cursor: move;\n pointer-events: all;\n }\n #svgcanvas svg {\n cursor: default;\n }\n ")),Yy.setMode("select"),hr.css("cursor","auto")},br=Xy("title:first").text(),wr=[],kr=.1;kr<1e5;kr*=10)wr.push(kr),wr.push(2*kr),wr.push(5*kr);var xr=function toggleHighlightLayer(er){var tr,rr=[],nr=Yy.getCurrentDrawing().getNumLayers();for(tr=0;tr<nr;tr++)rr[tr]=Yy.getCurrentDrawing().getLayerName(tr);er?rr.forEach((function(tr){tr!==er&&Yy.getCurrentDrawing().setLayerOpacity(tr,.5)})):rr.forEach((function(er){Yy.getCurrentDrawing().setLayerOpacity(er,1)}))},Sr=function populateLayers(){Yy.clearSelection();for(var er=Xy("#layerlist tbody").empty(),tr=Xy("#selLayerNames").empty(),rr=Yy.getCurrentDrawing(),nr=rr.getCurrentLayerName(),ar=Xy.getSvgIcon("eye"),ir=Yy.getCurrentDrawing().getNumLayers();ir--;){var or=rr.getLayerName(ir),sr=Xy('<tr class="layer">').toggleClass("layersel",or===nr),lr=Xy('<td class="layervis">').toggleClass("layerinvis",!rr.getLayerVisibility(or)),cr=Xy('<td class="layername">'+or+"</td>");er.append(sr.append(lr,cr)),tr.append('<option value="'+or+'">'+or+"</option>")}if(void 0!==ar){var ur=ar.clone();Xy("td.layervis",er).append(ur),Xy.resizeSvgIcons({"td.layervis .svg_icon":14})}Xy("#layerlist td.layername").mouseup((function(er){Xy("#layerlist tr.layer").removeClass("layersel"),Xy(this.parentNode).addClass("layersel"),Yy.setCurrentLayer(this.textContent),er.preventDefault()})).mouseover((function(){xr(this.textContent)})).mouseout((function(){xr()})),Xy("#layerlist td.layervis").click((function(){var er=Xy(this.parentNode).prevAll().length,tr=Xy("#layerlist tr.layer:eq("+er+") td.layername").text(),rr=Xy(this).hasClass("layerinvis");Yy.setLayerVisibility(tr,rr),Xy(this).toggleClass("layerinvis")}));for(var dr=5-Xy("#layerlist tr.layer").size();dr-- >0;)er.append('<tr><td style="color:white">_</td><td/></tr>')},Cr=!1,Br="",Er=function showSourceEditor(er,tr){Cr||(Cr=!0,Br=Yy.getSvgString(),Xy("#save_output_btns").toggle(Boolean(tr)),Xy("#tool_source_back").toggle(!tr),Xy("#svg_source_textarea").val(Br),Xy("#svg_source_editor").fadeIn(),Xy("#svg_source_textarea").focus())},Nr=null,Lr=!1,Pr=function operaRepaint(){window.opera&&Xy("<p/>").hide().appendTo("body").remove()};function setStrokeOpt(er,rr){var nr=er.id,ar=_slicedToArray(nr.split("_"),2),ir=ar[0],or=ar[1];rr&&Yy.setStrokeAttr("stroke-"+ir,or),Pr(),tr("#cur_"+ir,nr,20),Xy(er).addClass("current").siblings().removeClass("current")}var Tr=Wy.toolButtonClick=function(er,tr){if(Xy(er).hasClass("disabled"))return!1;if(Xy(er).parent().hasClass("tools_flyout"))return!0;return tr||Xy(".tools_flyout").fadeOut("normal"),Xy("#styleoverrides").text(""),hr.css("cursor","auto"),Xy(".tool_button_current").removeClass("tool_button_current").addClass("tool_button"),Xy(er).addClass("tool_button_current").removeClass("tool_button"),!0},Fr=Wy.clickSelect=function(){Tr("#tool_select")&&(Yy.setMode("select"),Xy("#styleoverrides").text("\n #svgcanvas svg * {\n cursor: move;\n pointer-events: all;\n }\n #svgcanvas svg {\n cursor: default;\n }\n "))},Ur=Wy.setImageURL=function(er){er||(er=gr),Yy.setImageURL(er),Xy("#image_url").val(er),er.startsWith("data:")?(Xy("#image_url").hide(),Xy("#change_image_url").show()):(Yy.embedImage(er,(function(tr){Xy("#url_notice").toggle(!tr),gr=er})),Xy("#image_url").show(),Xy("#change_image_url").hide())};function setBackground(er,tr){Wy.pref("bkgd_color",er),Wy.pref("bkgd_url",tr,!0),Yy.setBackground(er,tr)}function promptImgURL(){return _promptImgURL.apply(this,arguments)}function _promptImgURL(){return(_promptImgURL=_asyncToGenerator(regeneratorRuntime.mark((function _callee16(){var er,tr,rr,nr,ar,ir=arguments;return regeneratorRuntime.wrap((function _callee16$(or){for(;;)switch(or.prev=or.next){case 0:return er=ir.length>0&&void 0!==ir[0]?ir[0]:{},tr=er.cancelDeletes,rr=void 0!==tr&&tr,nr=(nr=Yy.getHref(Nr)).startsWith("data:")?"":nr,or.next=5,Xy.prompt(tb.notification.enterNewImgURL,nr);case 5:(ar=or.sent)?Ur(ar):rr&&Yy.deleteSelectedElements();case 7:case"end":return or.stop()}}),_callee16)})))).apply(this,arguments)}function updateRulers(er,tr){var rr,nr;tr||(tr=Yy.getZoom()),er||(er=Xy("#svgcanvas"));var ar=3e4,ir=Yy.getContentElem(),or=nA()[sb.baseUnit];for(rr=0;rr<2;rr++){var sr=0===rr,lr=sr?"x":"y",cr=sr?"width":"height",ur=Number(ir.getAttribute(lr)),dr=Xy("#ruler_"+lr+" canvas:first"),hr=dr.clone();dr.replaceWith(hr);var pr=hr[0],Ar=er[cr](),fr=Ar;pr.parentNode.style[cr]=fr+"px";var gr=pr.getContext("2d"),mr=void 0,_r=void 0,vr=void 0;if(gr.fillStyle="rgb(200,0,0)",gr.fillRect(0,0,pr.width,pr.height),hr.siblings().remove(),Ar>=ar){vr=Number.parseInt(Ar/ar)+1,(mr=[])[0]=gr;var yr=void 0;for(nr=1;nr<vr;nr++)pr[cr]=ar,yr=pr.cloneNode(!0),pr.parentNode.append(yr),mr[nr]=yr.getContext("2d");yr[cr]=Ar%ar,Ar=ar}pr[cr]=Ar;var br=or*tr,kr=50/br,xr=1;for(nr=0;nr<wr.length&&(xr=_r=wr[nr],!(kr<=_r));nr++);var Sr=xr*br;gr.font="9px sans-serif";for(var Cr=ur/br%xr*br,Br=Cr-Sr,Er=0;Cr<fr;){Br+=Sr;var Nr=Math.round(Cr)+.5;sr?(gr.moveTo(Nr,15),gr.lineTo(Nr,0)):(gr.moveTo(15,Nr),gr.lineTo(0,Nr)),_r=(Br-ur)/br;var Lr=void 0;if(xr>=1)Lr=Math.round(_r);else{var Pr=String(xr).split(".")[1].length;Lr=_r.toFixed(Pr)}if(0!==Lr&&1e3!==Lr&&Lr%1e3==0&&(Lr=Lr/1e3+"K"),sr)gr.fillText(Lr,Cr+2,8);else{var Tr=String(Lr).split("");for(nr=0;nr<Tr.length;nr++)gr.fillText(Tr[nr],1,Cr+9+9*nr)}var Fr=Sr/10;for(nr=1;nr<10;nr++){var Ur=Math.round(Cr+Fr*nr)+.5;if(mr&&Ur>Ar){if(Er++,gr.stroke(),Er>=vr){nr=10,Cr=fr;continue}gr=mr[Er],Cr-=ar,Ur=Math.round(Cr+Fr*nr)+.5}var Ir=nr%2?12:10;sr?(gr.moveTo(Ur,15),gr.lineTo(Ur,Ir)):(gr.moveTo(15,Ur),gr.lineTo(Ir,Ur))}Cr+=Sr}gr.strokeStyle="#000",gr.stroke()}}var Ir=Wy.updateCanvas=function(er,tr){var rr=Yy.getZoom(),nr=hr,ar=Xy("#svgcanvas"),ir=hr.width(),or=hr.height(),sr=ir,lr=or,cr=nr[0].scrollLeft+sr/2,ur=nr[0].scrollTop+lr/2,dr=sb.canvas_expansion;ir=Math.max(sr,Yy.contentW*rr*dr),or=Math.max(lr,Yy.contentH*rr*dr),ir===sr&&or===lr?hr.css("overflow","hidden"):hr.css("overflow","scroll");var pr=ar.height()/2,Ar=ar.width()/2;ar.width(ir).height(or);var fr=or/2,gr=ir/2,mr=Yy.updateCanvas(ir,or),_r=gr/Ar,vr=ir/2-sr/2,yr=or/2-lr/2;tr?(tr.x+=mr.x,tr.y+=mr.y):tr={x:gr+(cr-Ar)*_r,y:fr+(ur-pr)*_r};er?Yy.contentW>nr.width()?(hr[0].scrollLeft=mr.x-10,hr[0].scrollTop=mr.y-10):(nr[0].scrollLeft=vr,nr[0].scrollTop=yr):(nr[0].scrollLeft=tr.x-sr/2,nr[0].scrollTop=tr.y-lr/2),sb.showRulers&&(updateRulers(ar,rr),hr.scroll()),!0!==rb.storagePrompt&&"ignore"===Wy.storagePromptState&&Xy("#dialog_box").hide()},Rr=function updateToolButtonState(){var er="none"===Yy.getColor("fill"),tr="none"===Yy.getColor("stroke"),rr=["#tool_fhpath","#tool_line"],nr=["#tools_rect .tool_button","#tools_ellipse .tool_button","#tool_text","#tool_path"];tr?rr.forEach((function(er){Xy(er).hasClass("tool_button_current")&&Fr(),Xy(er).addClass("disabled")})):rr.forEach((function(er){Xy(er).removeClass("disabled")})),tr&&er?nr.forEach((function(er){Xy(er).hasClass("tool_button_current")&&Fr(),Xy(er).addClass("disabled")})):nr.forEach((function(er){Xy(er).removeClass("disabled")})),Yy.runExtensions("toolButtonStateUpdate",{nofill:er,nostroke:tr}),Xy(".tools_flyout").each((function(){var er=Xy("#"+this.id+"_show"),tr=!1;Xy(this).children().each((function(){Xy(this).hasClass("disabled")||(tr=!0)})),er.toggleClass("disabled",!tr)})),Pr()},Mr=function updateContextPanel(){var er=Nr;of(er)||er.parentNode||(er=null);var rr=Yy.getCurrentDrawing().getCurrentLayerName(),nr=Yy.getMode(),ar="px"!==sb.baseUnit?sb.baseUnit:null,ir="pathedit"===nr,or=Xy("#cmenu_canvas li");if(Xy("#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(),of(er))Lr?(Xy("#multiselected_panel").show(),or.enableContextMenuItems("#group").disableContextMenuItems("#ungroup")):or.disableContextMenuItems("#delete,#cut,#copy,#group,#ungroup,#move_front,#move_up,#move_down,#move_back");else{var sr=er.nodeName,lr=Yy.getRotationAngle(er);Xy("#angle").val(lr);var cr=Yy.getBlur(er);if(Xy("#blur").val(cr),Xy("#blur_slider").slider("option","value",cr),Yy.addedNew&&"image"===sr&&"image"===Yy.getMode()&&(Yy.getHref(er).startsWith("data:")||promptImgURL({cancelDeletes:!0})),ir||"pathedit"===nr){var hr=ur.getNodePoint();if(Xy("#tool_add_subpath").removeClass("push_button_pressed").addClass("tool_button"),Xy("#tool_node_delete").toggleClass("disabled",!ur.canDeleteNodes),tr("#tool_openclose_path",ur.closed_subpath?"open_path":"close_path"),hr){var Ar=Xy("#seg_type");ar&&(hr.x=iA(hr.x),hr.y=iA(hr.y)),Xy("#path_node_x").val(hr.x),Xy("#path_node_y").val(hr.y),hr.type?Ar.val(hr.type).removeAttr("disabled"):Ar.val(4).attr("disabled","disabled")}return}if(Xy("#selected_panel").show(),["line","circle","ellipse"].includes(sr))Xy("#xy_panel").hide();else{var fr,gr;if(["g","polyline","path"].includes(sr)){var mr=Yy.getStrokedBBox([er]);mr&&(fr=mr.x,gr=mr.y)}else fr=er.getAttribute("x"),gr=er.getAttribute("y");ar&&(fr=iA(fr),gr=iA(gr)),Xy("#selected_x").val(fr||0),Xy("#selected_y").val(gr||0),Xy("#xy_panel").show()}var _r=!["image","text","path","g","use"].includes(sr);Xy("#tool_topath").toggle(_r),Xy("#tool_reorient").toggle("path"===sr),Xy("#tool_reorient").toggleClass("disabled",0===lr);var vr={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:[]},yr=er.tagName,br=null;if("a"===yr&&(br=Yy.getHref(er),Xy("#g_panel").show()),"a"===er.parentNode.tagName&&(Xy(er).siblings().length||(Xy("#a_panel").show(),br=Yy.getHref(er.parentNode))),Xy("#tool_make_link, #tool_make_link").toggle(!br),br&&Xy("#link_url").val(br),vr[yr]){var wr=vr[yr];if(Xy("#"+yr+"_panel").show(),Xy.each(wr,(function(tr,rr){var nr=er.getAttribute(rr);if("px"!==sb.baseUnit&&er[rr]){var ar=er[rr].baseVal.value;nr=iA(ar)}Xy("#"+yr+"_"+rr).val(nr||0)})),"text"===yr)Xy("#text_panel").css("display","inline"),Xy("#tool_font_size").css("display","inline"),Yy.getItalic()?Xy("#tool_italic").addClass("push_button_pressed").removeClass("tool_button"):Xy("#tool_italic").removeClass("push_button_pressed").addClass("tool_button"),Yy.getBold()?Xy("#tool_bold").addClass("push_button_pressed").removeClass("tool_button"):Xy("#tool_bold").removeClass("push_button_pressed").addClass("tool_button"),Xy("#font_family").val(er.getAttribute("font-family")),Xy("#font_size").val(er.getAttribute("font-size")),Xy("#text").val(er.textContent),Yy.addedNew&&setTimeout((function(){Xy("#text").focus().select()}),100);else if("image"===yr&&"image"===Yy.getMode())Ur(Yy.getHref(er));else if("g"===yr||"use"===yr){Xy("#container_panel").show();var kr=Yy.getTitle(),xr=Xy("#g_title")[0];xr.value=kr,function setInputWidth(er){var tr=Math.min(Math.max(12+6*er.value.length,50),300);Xy(er).width(tr)}(xr),Xy("#g_title").prop("disabled","use"===yr)}}or[("g"===yr?"en":"dis")+"ableContextMenuItems"]("#ungroup"),or[("g"!==yr&&Lr?"en":"dis")+"ableContextMenuItems"]("#group")}Xy("#tool_undo").toggleClass("disabled",0===dr.getUndoStackSize()),Xy("#tool_redo").toggleClass("disabled",0===dr.getRedoStackSize()),Yy.addedNew=!1,er&&!ir||Lr?(Xy("#selLayerNames").removeAttr("disabled").val(rr),pr.enableContextMenuItems("#delete,#cut,#copy,#move_front,#move_up,#move_down,#move_back")):Xy("#selLayerNames").attr("disabled","disabled")},Qr=function updateWireFrame(){if(!pi){var er="\n #workarea.wireframe #svgcontent * {\n stroke-width: ".concat(1/Yy.getZoom(),"px;\n }\n ");Xy("#wireframe_rules").text(hr.hasClass("wireframe")?er:"")}},Or="",Dr=function updateTitle(er){er=er||Yy.getDocumentTitle();var tr=br+(er?": "+er:"");Xy("title:first").text(tr)};var jr=function zoomDone(){Qr()},Hr=Yy.zoomChanged=function(er,tr,rr){var nr=hr,ar=Yy.setBBoxZoom(tr,nr.width()-15,nr.height()-15);if(ar){var ir=ar.zoom,or=ar.bbox;ir<.001?Gr({value:.1}):(Xy("#zoom").val((100*ir).toFixed(1)),rr?Ir():Ir(!1,{x:or.x*ir+or.width*ir/2,y:or.y*ir+or.height*ir/2}),"zoom"===Yy.getMode()&&or.width&&yr(),jr())}},Gr=function changeZoom(er){var tr=er.value/100;if(tr<.001)er.value=.1;else{var rr=Yy.getZoom(),nr=hr;Hr(window,{width:0,height:0,x:(nr[0].scrollLeft+nr.width()/2)/rr,y:(nr[0].scrollTop+nr.height()/2)/rr,zoom:tr},!0)}};Xy("#cur_context_panel").delegate("a","click",(function(){var er=Xy(this);return er.attr("data-root")?Yy.leaveContext():Yy.setContext(er.text()),Yy.clearSelection(),!1}));var Vr=function prepPaints(){Ar.fill.prep(),Ar.stroke.prep()},zr={},Kr=function setFlyoutTitles(){Xy(".tools_flyout").each((function(){var er=Xy("#"+this.id+"_show");if(!er.data("isLibrary")){var tr=Xy(this).children().map((function(){return this.title})).get();er[0].title=tr.join(" / ")}}))},qr={},Wr=function setupFlyouts(er){Xy.each(er,(function(tr,rr){var nr;qr[tr]||(qr[tr]=[]),(nr=qr[tr]).push.apply(nr,_toConsumableArray(rr));var ar,ir=Xy(tr).children().not(".tool_button_evt_handled"),or=tr+"_show",sr=Xy(or),lr=!1;ir.addClass("tool_button tool_button_evt_handled").unbind("click mousedown mouseup").each((function(){var tr="#"+this.getAttribute("id"),nr=Object.entries(rr).find((function(er){var rr=_slicedToArray(er,2);rr[0];return rr[1].sel===tr})),ar=_slicedToArray(nr,2),ir=ar[0],cr=ar[1];zr[cr.sel]=cr.fn,cr.isDefault&&(lr=ir);var ur=function flyoutAction(tr){var rr,nr=cr;if("keydown"===tr.type){var ar=Xy(nr.parent+"_show").hasClass("tool_button_current"),ir=Xy(nr.parent+"_show").attr("data-curopt");Object.entries(er[cr.parent]).some((function(rr){var or=_slicedToArray(rr,2),sr=or[0],lr=or[1];return lr.sel===ir&&(tr.shiftKey&&ar?(sr=Number.parseInt(sr),nr=qr[cr.parent][sr+1]||er[cr.parent][0]):nr=lr,!0)}))}return!Xy(this).hasClass("disabled")&&(Tr(or)&&nr.fn(),(rr=nr.icon?Xy.getSvgIcon(nr.icon,!0):Xy(nr.sel).children().eq(0).clone())[0].setAttribute("width",sr.width()),rr[0].setAttribute("height",sr.height()),sr.children(":not(.flyout_arrow_horiz)").remove(),sr.append(rr).attr("data-curopt",nr.sel),!0)};return Xy(this).mouseup(ur),cr.key&&Xy(document).bind("keydown",cr.key[0]+" shift+"+cr.key[0],ur),!0})),lr?sr.attr("data-curopt",rr[lr].sel):sr.attr("data-curopt")||sr.attr("data-curopt",rr[0].sel),sr.mousedown((function(er){if(sr.hasClass("disabled"))return!1;var rr=Xy(tr),nr=Xy(or).position().left+34,ir=-1*rr.width(),lr=rr.data("shown_popop")?200:0;return ar=setTimeout((function(){sr.data("isLibrary")?rr.css("left",nr).show():rr.css("left",ir).show().animate({left:nr},150),rr.data("shown_popop",!0)}),lr),er.preventDefault(),!0})).mouseup((function(er){clearTimeout(ar);var tr=Xy(this).attr("data-curopt");sr.data("isLibrary")&&Xy(or.replace("_show","")).is(":visible")?Tr(or,!0):Tr(or)&&zr[tr]&&zr[tr]()}))})),Kr(),ar()},Xr=function makeFlyoutHolder(er,tr){return Xy("<div>",{class:"tools_flyout",id:er}).appendTo("#svg_editor").append(tr)},Yr=function addAltDropDown(er,rr,nr,ar){var ir=Xy(er),or=ar.dropUp,sr=Xy(rr);or&&Xy(er).addClass("dropup"),sr.find("li").bind("mouseup",(function(){ar.seticon&&(tr("#cur_"+ir[0].id,Xy(this).children()),Xy(this).addClass("current").siblings().removeClass("current"));for(var er=arguments.length,rr=new Array(er),or=0;or<er;or++)rr[or]=arguments[or];nr.apply.apply(nr,[this].concat(rr))}));var lr=!1;Xy(window).mouseup((function(er){lr||(ir.removeClass("down"),sr.hide(),sr.css({top:0,left:0})),lr=!1})),ir.bind("mousedown",(function(){var er=ir.offset();or?(er.top-=sr.height(),er.left+=8):er.top+=ir.height(),sr.offset(er),ir.hasClass("down")?(sr.hide(),sr.css({top:0,left:0})):(sr.show(),lr=!0),ir.toggleClass("down")})).hover((function(){lr=!0})).mouseout((function(){lr=!1})),ar.multiclick&&sr.mousedown((function(){lr=!0}))},Jr=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee4(er,tr){var rr,nr,ar,ir,lr,cr,ur,dr,hr,pr,Ar;return regeneratorRuntime.wrap((function _callee4$(er){for(;;)switch(er.prev=er.next){case 0:if(ir=function _prepResize(){sr&&(clearTimeout(sr),sr=null),nr||(sr=setTimeout((function(){nr=!0,or(Wy.pref("iconsize"))}),50))},tr){er.next=3;break}return er.abrupt("return",void 0);case 3:if(rr=!1,nr=!1,!tr.langReady){er.next=10;break}if(!Wy.langChanged){er.next=10;break}return ar=Wy.pref("lang"),er.next=10,tr.langReady({lang:ar});case 10:if(lr=function runCallback(){tr.callback&&!rr&&(rr=!0,tr.callback.call(Wy))},cr=[],tr.context_tools&&Xy.each(tr.context_tools,(function(er,tr){var rr,nr=tr.container_id?' id="'+tr.container_id+'"':"",ar=Xy("#"+tr.panel);switch(ar.length||(ar=Xy("<div>",{id:tr.panel}).appendTo("#tools_top")),tr.type){case"tool_button":rr='<div class="tool_button">'+tr.id+"</div>";var ir=Xy(rr).appendTo(ar);tr.events&&Xy.each(tr.events,(function(er,tr){Xy(ir).bind(er,tr)}));break;case"select":rr="<label"+nr+'><select id="'+tr.id+'">',Xy.each(tr.options,(function(er,nr){var ar=er===tr.defval?" selected":"";rr+='<option value="'+er+'"'+ar+">"+nr+"</option>"}));var or=Xy(rr+="</select></label>").appendTo(ar).find("select");Xy.each(tr.events,(function(er,tr){Xy(or).bind(er,tr)}));break;case"button-select":rr='<div id="'+tr.id+'" class="dropdown toolset" title="'+tr.title+'"><div id="cur_'+tr.id+'" class="icon_label"></div><button></button></div>';var sr=Xy('<ul id="'+tr.id+'_opts"></ul>').appendTo("#option_lists");tr.colnum&&sr.addClass("optcols"+tr.colnum),Xy(rr).appendTo(ar).children(),cr.push({elem:"#"+tr.id,list:"#"+tr.id+"_opts",title:tr.title,callback:tr.events.change,cur:"#cur_"+tr.id});break;case"input":rr="<label"+nr+'><span id="'+tr.id+'_label">'+tr.label+':</span><input id="'+tr.id+'" title="'+tr.title+'" size="'+(tr.size||"4")+'" value="'+(tr.defval||"")+'" type="text"/></label>';var lr=Xy(rr).appendTo(ar).find("input");tr.spindata&&lr.SpinButton(tr.spindata),tr.events&&Xy.each(tr.events,(function(er,tr){lr.bind(er,tr)}))}})),ur=tr.svgicons,!tr.buttons){er.next=20;break}if(dr={},hr={},pr={},Ar={},Xy.each(tr.buttons,(function(er,tr){for(var rr,nr,ar,ir,or,sr,lr,cr=tr.id,fr=er;Xy("#"+cr).length;)cr=tr.id+"_"+ ++fr;if(ur){dr[cr]=tr.icon,hr[cr]=tr.title;var gr=tr.svgicon||tr.id;"app_menu"===tr.type?pr["#"+cr+" > div"]=gr:pr["#"+cr]=gr}else rr=Xy('<img src="'+tr.icon+(tr.title?'" alt="'+tr.title:"")+'">');switch(tr.type){case"mode_flyout":case"mode":nr="tool_button",ar="#tools_left";break;case"context":nr="tool_button",ar="#"+tr.panel,Xy(ar).length||Xy("<div>",{id:tr.panel}).appendTo("#tools_top");break;case"app_menu":nr="",ar="#main_menu ul"}var mr,_r=Xy(tr.list||"app_menu"===tr.type?"<li/>":"<div/>").attr("id",cr).attr("title",tr.title).addClass(nr);if(tr.includeWith||tr.list){if(tr.list){if(_r.addClass("push_button"),Xy("#"+tr.list+"_opts").append(_r),tr.isDefault){Xy("#cur_"+tr.list).append(_r.children().clone());var vr=tr.svgicon||tr.id;pr["#cur_"+tr.list]=vr}}else if(tr.includeWith){var yr,br=tr.includeWith;ir=(lr=Xy(br.button)).parent(),lr.parent().hasClass("tools_flyout")||(yr=lr[0].id.replace("tool_","tools_"),or=lr.clone().attr("id",yr+"_show").append(Xy("<div>",{class:"flyout_arrow_horiz"})),lr.before(or),ir=Xr(yr,lr)),sr=Ci.getButtonData(br.button),br.isDefault&&(pr["#"+yr+"_show"]=tr.id);var wr=Ar["#"+ir[0].id]=[{sel:"#"+cr,fn:tr.events.click,icon:tr.id,key:tr.key,isDefault:Boolean(tr.includeWith&&tr.includeWith.isDefault)},sr],kr="position"in br?br.position:"last",xr=ir.children().length;!isNaN(kr)&&kr>=0&&kr<xr?ir.children().eq(kr).before(_r):(ir.append(_r),wr.reverse())}}else"position"in tr?Xy(ar).children().eq(tr.position).length?Xy(ar).children().eq(tr.position).before(_r):Xy(ar).children().last().after(_r):_r.appendTo(ar),"mode_flyout"===tr.type?(ir=(lr=Xy(_r)).parent(),lr.parent().hasClass("tools_flyout")||(mr=lr[0].id.replace("tool_","tools_"),or=lr.clone().attr("id",mr+"_show").append(Xy("<div>",{class:"flyout_arrow_horiz"})),lr.before(or),(ir=Xr(mr,lr)).data("isLibrary",!0),or.data("isLibrary",!0)),pr["#"+mr+"_show"]=tr.id,Ar["#"+ir[0].id]=[{sel:"#"+cr,fn:tr.events.click,icon:tr.id,isDefault:!0}]):"app_menu"===tr.type&&_r.append("<div>").append(tr.title);ur||_r.append(rr),tr.list||Xy.each(tr.events,(function(er,rr){"click"===er&&"mode"===tr.type?(Bd()&&"click"===er&&(er="mousedown"),tr.includeWith?_r.bind(er,rr):_r.bind(er,(function(){Tr(_r)&&rr()})),tr.key&&(Xy(document).bind("keydown",tr.key,rr),tr.title&&_r.attr("title",tr.title+" ["+tr.key+"]"))):_r.bind(er,rr)})),Wr(Ar)})),Xy.each(cr,(function(){Yr(this.elem,this.list,this.callback,{seticon:!0})})),!ur){er.next=20;break}return er.abrupt("return",new Promise((function(er,tr){Xy.svgIcons("".concat(sb.imgPath).concat(ur),{w:24,h:24,id_match:!1,no_img:!wd(),fallback:dr,placement:pr,callback:function callback(tr){"m"!==Wy.pref("iconsize")&&ir(),lr(),er()}})})));case 20:return er.abrupt("return",lr());case 21:case"end":return er.stop()}}),_callee4)})));return function extAdded(tr,rr){return er.apply(this,arguments)}}();Yy.bind("selected",(function selectedChanged(er,rr){var nr=Yy.getMode();"select"===nr&&yr();var ar="pathedit"===nr;Nr=1===rr.length||of(rr[1])?rr[0]:null,Lr=rr.length>=2&&!of(rr[1]),of(Nr)||ar||function updateToolbar(){var er,tr;if(!of(Nr))switch(Nr.tagName){case"use":case"image":case"foreignObject":break;case"g":case"a":var rr=Nr.getElementsByTagName("*"),nr=null;for(er=0,tr=rr.length;er<tr;er++){var ar=rr[er].getAttribute("stroke-width");0===er?nr=ar:nr!==ar&&(nr=null)}Xy("#stroke_width").val(null===nr?"":nr),Ar.fill.update(!0),Ar.stroke.update(!0);break;default:Ar.fill.update(!0),Ar.stroke.update(!0),Xy("#stroke_width").val(Nr.getAttribute("stroke-width")||1),Xy("#stroke_style").val(Nr.getAttribute("stroke-dasharray")||"none");var ir=Nr.getAttribute("stroke-linejoin")||"miter";Xy("#linejoin_"+ir).length&&setStrokeOpt(Xy("#linejoin_"+ir)[0]),ir=Nr.getAttribute("stroke-linecap")||"butt",Xy("#linecap_"+ir).length&&setStrokeOpt(Xy("#linecap_"+ir)[0])}if(!of(Nr)){var or=100*(Nr.getAttribute("opacity")||1);Xy("#group_opacity").val(or),Xy("#opac_slider").slider("option","value",or),Xy("#elem_id").val(Nr.id),Xy("#elem_class").val(Nr.getAttribute("class"))}Rr()}(),function togglePathEditMode(er,rr){Xy("#path_node_panel").toggle(er),Xy("#tools_bottom_2,#tools_bottom_3").toggle(!er),er?(Xy(".tool_button_current").removeClass("tool_button_current").addClass("tool_button"),Xy("#tool_select").addClass("tool_button_current").removeClass("tool_button"),tr("#tool_select","select_node"),Lr=!1,rr.length&&(Nr=rr[0])):setTimeout((function(){tr("#tool_select","select")}),1e3)}(ar,rr),Mr(),Yy.runExtensions("selectedChanged",{elems:rr,selectedElement:Nr,multiselected:Lr})})),Yy.bind("transition",(function elementTransition(er,tr){var rr=Yy.getMode(),nr=tr[0];if(nr){if(!(Lr=tr.length>=2&&!of(tr[1])))switch(rr){case"rotate":var ar=Yy.getRotationAngle(nr);Xy("#angle").val(ar),Xy("#tool_reorient").toggleClass("disabled",0===ar)}Yy.runExtensions("elementTransition",{elems:tr})}})),Yy.bind("changed",(function elementChanged(er,tr){var rr=Yy.getMode();"select"===rr&&yr(),tr.forEach((function(er){var tr=er&&"svg"===er.tagName;tr||function isLayer(er){return er&&"g"===er.tagName&&Qv.CLASS_REGEX.test(er.getAttribute("class"))}(er)?(Sr(),tr&&Ir()):er&&Nr&&of(Nr.parentNode)&&(Nr=er)})),Wy.showSaveWarning=!0,Mr(),Nr&&"select"===rr&&(Ar.fill.update(),Ar.stroke.update()),Yy.runExtensions("elementChanged",{elems:tr})})),Yy.bind("saved",(function saveHandler(er,tr){if(Wy.showSaveWarning=!1,tr='<?xml version="1.0"?>\n'+tr,xd())Er(0,!0);else{var rr=document.createElement("a");rr.href="data:image/svg+xml;base64,"+encode64(tr),rr.download="icon.svg",rr.style.display="none",document.body.append(rr),rr.click();var nr=Wy.pref("save_notice_done");if("all"!==nr){var ar=tb.notification.saveFromBrowser.replace("%s","SVG");kd()?tr.includes("<defs")?(ar+="\n\n"+tb.notification.defsFailOnSave,Wy.pref("save_notice_done","all"),nr="all"):Wy.pref("save_notice_done","part"):Wy.pref("save_notice_done","all"),"part"!==nr&&Xy.alert(ar)}}})),Yy.bind("exported",(function exportHandler(er,tr){var rr=tr.issues,nr=tr.exportWindowName;if((fr=window.open(UA||"",nr))&&!fr.closed){if(fr.location.href=tr.bloburl||tr.datauri,"all"!==Wy.pref("export_notice_done")){var ar=tb.notification.saveFromBrowser.replace("%s",tr.type);if(rr.length){var ir="\n • ";ar+="\n\n"+tb.notification.noteTheseIssues+ir+rr.join(ir)}Wy.pref("export_notice_done","all"),fr.alert(ar)}}else Xy.alert(tb.notification.popupWindowBlocked)})),Yy.bind("exportedPDF",(function(er,tr){if(tr.output){var rr=tr.exportWindowName;rr&&(fr=window.open("",rr)),fr&&!fr.closed?fr.location.href=tr.output:Xy.alert(tb.notification.popupWindowBlocked)}})),Yy.bind("zoomed",Hr),Yy.bind("zoomDone",jr),Yy.bind("updateCanvas",(function(er,tr){var rr=tr.center,nr=tr.newCtr;Ir(rr,nr)})),Yy.bind("contextset",(function contextChanged(er,tr){var rr="";if(tr){var nr="";rr='<a href="#" data-root="y">'+Yy.getCurrentDrawing().getCurrentLayerName()+"</a>",Xy(tr).parentsUntil("#svgcontent > g").andSelf().each((function(){this.id&&(nr+=" > "+this.id,rr+=this!==tr?' > <a href="#">'+this.id+"</a>":" > "+this.id)})),Or=nr}else Or=null;Xy("#cur_context_panel").toggle(Boolean(tr)).html(rr),Dr()})),Yy.bind("extension_added",Jr),Yy.textActions.setInputElem(Xy("#text")[0]);var $r='<div class="palette_item" data-rgb="none"></div>';Xy.each(["#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"],(function(er,tr){$r+='<div class="palette_item" style="background-color: '+tr+';" data-rgb="'+tr+'"></div>'})),Xy("#palette").append($r);$r="",Xy.each(["#FFF","#888","#000","chessboard"],(function(er,tr){$r+="chessboard"===tr?'<div class="color_block" data-bgcolor="'+tr+'" style="background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"></div>':'<div class="color_block" data-bgcolor="'+tr+'" style="background-color:'+tr+';"></div>'})),Xy("#bg_blocks").append($r);var Zr=Xy("#bg_blocks div"),Tn="cur_background";Zr.each((function(){Xy(this).click((function(){Zr.removeClass(Tn),Xy(this).addClass(Tn)}))})),setBackground(Wy.pref("bkgd_color"),Wy.pref("bkgd_url")),Xy("#image_save_opts input").val([Wy.pref("img_save")]);var Un=function changeOpacity(er,tr){of(tr)&&(tr=er.value),Xy("#group_opacity").val(tr),er&&er.handle||Xy("#opac_slider").slider("option","value",tr),Yy.setOpacity(tr/100)},Qn=function changeBlur(er,tr,rr){of(tr)&&(tr=er.value),Xy("#blur").val(tr);var nr=!1;er&&er.handle||(Xy("#blur_slider").slider("option","value",tr),nr=!0),rr?Yy.setBlurNoUndo(tr):Yy.setBlur(tr,nr)};Xy("#stroke_style").change((function(){Yy.setStrokeAttr("stroke-dasharray",Xy(this).val()),Pr()})),Xy("#stroke_linejoin").change((function(){Yy.setStrokeAttr("stroke-linejoin",Xy(this).val()),Pr()})),Xy("select").change((function(){Xy(this).blur()}));var Dn,Hn,Gn,Vn,zn,Kn=!1;Xy("#selLayerNames").change(_asyncToGenerator(regeneratorRuntime.mark((function _callee5(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee5$(nr){for(;;)switch(nr.prev=nr.next){case 0:if(er=this.options[this.selectedIndex].value,tr=tb.notification.QmoveElemsToLayer.replace("%s",er),rr=function moveToLayer(tr){tr&&(Kn=!0,Yy.moveSelectedToLayer(er),Yy.clearSelection(),Sr())},!er){nr.next=14;break}if(!Kn){nr.next=8;break}rr(!0),nr.next=14;break;case 8:return nr.next=10,Xy.confirm(tr);case 10:if(nr.sent){nr.next=13;break}return nr.abrupt("return");case 13:rr(!0);case 14:case"end":return nr.stop()}}),_callee5,this)})))),Xy("#font_family").change((function(){Yy.setFontFamily(this.value)})),Xy("#seg_type").change((function(){Yy.setSegType(Xy(this).val())})),Xy("#text").bind("keyup input",(function(){Yy.setTextContent(this.value)})),Xy("#image_url").change((function(){Ur(this.value)})),Xy("#link_url").change((function(){this.value.length?Yy.setLinkURL(this.value):Yy.removeHyperlink()})),Xy("#g_title").change((function(){Yy.setGroupTitle(this.value)})),Xy(".attr_changer").change((function(){var er=this.getAttribute("data-attr"),tr=this.value;if(!lA(er,tr,Nr))return this.value=Nr.getAttribute(er),Xy.alert(tb.notification.invalidAttrValGiven),!1;if("id"!==er&&"class"!==er)if(isNaN(tr))tr=Yy.convertToNum(er,tr);else if("px"!==sb.baseUnit){var rr=nA();(Nr[er]||"pathedit"===Yy.getMode()||"x"===er||"y"===er)&&(tr*=rr[sb.baseUnit])}if("id"===er){var nr=Nr;Yy.clearSelection(),nr.id=tr,Yy.addToSelection([nr],!0)}else Yy.changeSelectedAttribute(er,tr);return this.blur(),!0})),Xy("#palette").mouseover((function(){var er=Xy('<input type="hidden">');Xy(this).append(er),er.focus().remove()})),Xy(".palette_item").mousedown((function(er){var tr,rr=er.shiftKey||2===er.button?"stroke":"fill",nr=Xy(this).data("rgb");"none"===nr||"transparent"===nr||"initial"===nr?(nr="none",tr=new Xy.jGraduate.Paint):tr=new Xy.jGraduate.Paint({alpha:100,solidColor:nr.substr(1)}),Ar[rr].setPaint(tr),Yy.setColor(rr,nr),"none"!==nr&&1!==Yy.getPaintOpacity(rr)&&Yy.setPaintOpacity(rr,1),Rr()})).bind("contextmenu",(function(er){er.preventDefault()})),Xy("#toggle_stroke_tools").on("click",(function(){Xy("#tools_bottom").toggleClass("expanded")})),Dn=hr[0],Hn=null,Gn=null,Vn=!1,zn=!1,Xy("#svgcanvas").bind("mousemove mouseup",(function(er){return!1===Vn||(Dn.scrollLeft-=er.clientX-Hn,Dn.scrollTop-=er.clientY-Gn,Hn=er.clientX,Gn=er.clientY,"mouseup"===er.type&&(Vn=!1),!1)})).mousedown((function(er){return 1!==er.button&&!0!==zn||(Vn=!0,Hn=er.clientX,Gn=er.clientY,!1)})),Xy(window).mouseup((function(){Vn=!1})),Xy(document).bind("keydown","space",(function(er){Yy.spaceKey=zn=!0,er.preventDefault()})).bind("keyup","space",(function(er){er.preventDefault(),Yy.spaceKey=zn=!1})).bind("keydown","shift",(function(er){"zoom"===Yy.getMode()&&hr.css("cursor",_r)})).bind("keyup","shift",(function(er){"zoom"===Yy.getMode()&&hr.css("cursor",mr)})),Wy.setPanning=function(er){Yy.spaceKey=zn=er},function(){var er=Xy("#main_icon"),tr=Xy("#main_icon span"),rr=Xy("#main_menu"),nr=!1,ar=0,ir=!0,or=!1;Xy(window).mouseup((function(tr){nr||(er.removeClass("buttondown"),"INPUT"!==tr.target.tagName?rr.fadeOut(200):or||(or=!0,Xy(tr.target).click((function(){rr.css("margin-left","-9999px").show()})))),nr=!1})).mousedown((function(er){Xy(er.target).closest("div.tools_flyout, .contextMenu").length||Xy(".tools_flyout:visible,.contextMenu").fadeOut(250)})),tr.bind("mousedown",(function(){er.hasClass("buttondown")?rr.fadeOut(200):(rr.css("margin-left",0).show(),ar||(ar=rr.height()),rr.css("height",0).animate({height:ar},200),nr=!0),er.toggleClass("buttondown buttonup")})).hover((function(){nr=!0})).mouseout((function(){nr=!1}));var sr=Xy("#main_menu li");sr.mouseover((function(){ir="rgba(0, 0, 0, 0)"===Xy(this).css("background-color"),sr.unbind("mouseover"),ir&&sr.mouseover((function(){this.style.backgroundColor="#FFC"})).mouseout((function(){return this.style.backgroundColor="transparent",!0}))}))}(),Wy.addDropDown=function(er,tr,rr){if(Xy(er).length){var nr=Xy(er).find("button"),ar=Xy(er).find("ul").attr("id",Xy(er)[0].id+"-list");rr?Xy(er).addClass("dropup"):Xy("#option_lists").append(ar),ar.find("li").bind("mouseup",tr);var ir=!1;Xy(window).mouseup((function(er){ir||(nr.removeClass("down"),ar.hide()),ir=!1})),nr.bind("mousedown",(function(){if(nr.hasClass("down"))ar.hide();else{if(!rr){var tr=Xy(er).position();ar.css({top:tr.top+24,left:tr.left-10})}ar.show(),ir=!0}nr.toggleClass("down")})).hover((function(){ir=!0})).mouseout((function(){ir=!1}))}},Wy.addDropDown("#font_family_dropdown",(function(){Xy("#font_family").val(Xy(this).text()).change()})),Wy.addDropDown("#opacity_dropdown",(function(){if(!Xy(this).find("div").length){var er=Number.parseInt(Xy(this).text().split("%")[0]);Un(!1,er)}}),!0),Xy("#opac_slider").slider({start:function start(){Xy("#opacity_dropdown li:not(.special)").hide()},stop:function stop(){Xy("#opacity_dropdown li").show(),Xy(window).mouseup()},slide:function slide(er,tr){Un(tr)}}),Wy.addDropDown("#blur_dropdown",Xy.noop);var Wn,Xn,Yn=!1;Xy("#blur_slider").slider({max:10,step:.1,stop:function stop(er,tr){Yn=!1,Qn(tr),Xy("#blur_dropdown li").show(),Xy(window).mouseup()},start:function start(){Yn=!0},slide:function slide(er,tr){Qn(tr,null,Yn)}}),Wy.addDropDown("#zoom_dropdown",(function(){var er=Xy(this),tr=er.data("val");tr?Hr(window,tr):Gr({value:Number.parseFloat(er.text())})}),!0),Yr("#stroke_linecap","#linecap_opts",(function(){setStrokeOpt(this,!0)}),{dropUp:!0}),Yr("#stroke_linejoin","#linejoin_opts",(function(){setStrokeOpt(this,!0)}),{dropUp:!0}),Yr("#tool_position","#position_opts",(function(){var er=this.id.replace("tool_pos","").charAt(0);Yy.alignSelectedElements(er,"page")}),{multiclick:!0}),Xn=function unfocus(){Xy(Wn).blur()},Xy("#svg_editor").find("button, select, input:not(#text)").focus((function(){Wn=this,vr="toolbars",hr.mousedown(Xn)})).blur((function(){vr="canvas",hr.unbind("mousedown",Xn),"textedit"===Yy.getMode()&&Xy("#text").focus()}));var Jn,$n=function clickFHPath(){Tr("#tool_fhpath")&&Yy.setMode("fhpath")},Zn=function clickLine(){Tr("#tool_line")&&Yy.setMode("line")},ea=function clickSquare(){Tr("#tool_square")&&Yy.setMode("square")},ta=function clickRect(){Tr("#tool_rect")&&Yy.setMode("rect")},ra=function clickFHRect(){Tr("#tool_fhrect")&&Yy.setMode("fhrect")},na=function clickCircle(){Tr("#tool_circle")&&Yy.setMode("circle")},aa=function clickEllipse(){Tr("#tool_ellipse")&&Yy.setMode("ellipse")},ia=function clickFHEllipse(){Tr("#tool_fhellipse")&&Yy.setMode("fhellipse")},oa=function clickImage(){Tr("#tool_image")&&Yy.setMode("image")},sa=function clickZoom(){Tr("#tool_zoom")&&(Yy.setMode("zoom"),hr.css("cursor",mr))},la=function zoomImage(er){var tr=Yy.getResolution();er=er?tr.zoom*er:1,Xy("#zoom").val(100*er),Yy.setZoom(er),jr(),Ir(!0)},ca=function dblclickZoom(){Tr("#tool_zoom")&&(la(),yr())},ua=function clickText(){Tr("#tool_text")&&Yy.setMode("text")},da=function clickPath(){Tr("#tool_path")&&Yy.setMode("path")},ha=function deleteSelected(){of(Nr)&&!Lr||Yy.deleteSelectedElements()},pa=function cutSelected(){of(Nr)&&!Lr||Yy.cutSelectedElements()},Aa=function copySelected(){of(Nr)&&!Lr||Yy.copySelectedElements()},fa=function pasteInCenter(){var er=Yy.getZoom(),tr=(hr[0].scrollLeft+hr.width()/2)/er-Yy.contentW,rr=(hr[0].scrollTop+hr.height()/2)/er-Yy.contentH;Yy.pasteElements("point",tr,rr)},ga=function moveToTopSelected(){of(Nr)||Yy.moveToTopSelectedElement()},ma=function moveToBottomSelected(){of(Nr)||Yy.moveToBottomSelectedElement()},_a=function moveUpDownSelected(er){of(Nr)||Yy.moveUpDownSelected(er)},va=function convertToPath(){of(Nr)||Yy.convertToPath()},ya=function reorientPath(){of(Nr)||ur.reorient()},ba=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee6(){var er;return regeneratorRuntime.wrap((function _callee6$(tr){for(;;)switch(tr.prev=tr.next){case 0:if(of(Nr)&&!Lr){tr.next=5;break}return tr.next=3,Xy.prompt(tb.notification.enterNewLinkURL,"http://");case 3:(er=tr.sent)&&Yy.makeHyperlink(er);case 5:case"end":return tr.stop()}}),_callee6)})));return function makeHyperlink(){return er.apply(this,arguments)}}(),wa=function moveSelected(er,tr){if(!of(Nr)||Lr){if(sb.gridSnapping){var rr=Yy.getZoom()*sb.snappingStep;er*=rr,tr*=rr}Yy.moveSelectedElements(er,tr)}},ka=function linkControlPoints(){Xy("#tool_node_link").toggleClass("push_button_pressed tool_button");var er=Xy("#tool_node_link").hasClass("push_button_pressed");ur.linkControlPoints(er)},xa=function clonePathNode(){ur.getNodePoint()&&ur.clonePathNode()},Sa=function deletePathNode(){ur.getNodePoint()&&ur.deletePathNode()},Ca=function addSubPath(){var er=Xy("#tool_add_subpath"),tr=!er.hasClass("push_button_pressed");er.toggleClass("push_button_pressed tool_button"),ur.addSubPath(tr)},Ba=function opencloseSubPath(){ur.opencloseSubPath()},Ea=function selectNext(){Yy.cycleElement(1)},Na=function selectPrev(){Yy.cycleElement(0)},La=function rotateSelected(er,tr){if(!of(Nr)&&!Lr){er||(tr*=-1);var rr=Number.parseFloat(Xy("#angle").val())+tr;Yy.setRotationAngle(rr),Mr()}},Pa=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee7(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee7$(nr){for(;;)switch(nr.prev=nr.next){case 0:return er=_slicedToArray(sb.dimensions,2),tr=er[0],rr=er[1],nr.next=3,Xy.confirm(tb.notification.QwantToClear);case 3:if(nr.sent){nr.next=6;break}return nr.abrupt("return");case 6:yr(),Yy.clear(),Yy.setResolution(tr,rr),Ir(!0),la(),Sr(),Mr(),Vr(),Yy.runExtensions("onNewDocument");case 15:case"end":return nr.stop()}}),_callee7)})));return function clickClear(){return er.apply(this,arguments)}}(),Ta=function clickBold(){return Yy.setBold(!Yy.getBold()),Mr(),!1},Fa=function clickItalic(){return Yy.setItalic(!Yy.getItalic()),Mr(),!1},Ua=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee8(){var er,tr,rr,nr,ar;return regeneratorRuntime.wrap((function _callee8$(ir){for(;;)switch(ir.prev=ir.next){case 0:return rr=function _openExportWindow(){var er,rr,nr=tb.notification.loadingImage;if("new"===sb.exportWindowType&&Wy.exportWindowCt++,tr=sb.canvasName+Wy.exportWindowCt,Jn)rr=Jn;else{if(er='<!DOCTYPE html><html>\n <head>\n <meta charset="utf-8">\n <title>'.concat(nr,"</title>\n </head>\n <body><h1>").concat(nr,"</h1></body>\n <html>"),"undefined"!=typeof URL&&URL.createObjectURL){var ar=new Blob([er],{type:"text/html"});rr=URL.createObjectURL(ar)}else rr="data:text/html;base64;charset=utf-8,"+encode64(er);Jn=rr}fr=window.open(rr,tr)},ir.next=3,Xy.select("Select an image type for export: ",["PNG","JPEG","BMP","WEBP","PDF"],(function(){var er=Xy(this);"JPEG"===er.val()||"WEBP"===er.val()?Xy("#image-slider").length||Xy("<div><label>".concat(tb.ui.quality,'\n <input id="image-slider"\n type="range" min="1" max="100" value="92" />\n </label></div>')).appendTo(er.parent()):Xy("#image-slider").parent().remove()}));case 3:if(er=ir.sent){ir.next=6;break}return ir.abrupt("return");case 6:if(nr=Sd(),"PDF"!==er){ir.next=12;break}ib||nr||rr(),Yy.exportPDF(tr),ir.next=16;break;case 12:return ab||rr(),ar=Number.parseInt(Xy("#image-slider").val())/100,ir.next=16,Yy.rasterExport(er,ar,tr);case 16:case"end":return ir.stop()}}),_callee8)})));return function clickExport(){return er.apply(this,arguments)}}(),Ia=function clickOpen(){Yy.open()},Ra=function clickImport(){},Ma=function clickUndo(){dr.getUndoStackSize()>0&&(dr.undo(),Sr())},Qa=function clickRedo(){dr.getRedoStackSize()>0&&(dr.redo(),Sr())},Oa=function clickGroup(){Lr?Yy.groupSelectedElements():Nr&&Yy.ungroupSelectedElement()},Da=function clickClone(){Yy.cloneSelectedElements(20,20)},ja=function clickAlign(){var er=this.id.replace("tool_align","").charAt(0);Yy.alignSelectedElements(er,Xy("#align_relative_to").val())},Ha=function clickWireframe(){if(Xy("#tool_wireframe").toggleClass("push_button_pressed tool_button"),hr.toggleClass("wireframe"),!pi){var er=Xy("#wireframe_rules");er.length?er.empty():Xy('<style id="wireframe_rules"></style>').appendTo("head"),Qr()}};Xy("#svg_docprops_container, #svg_prefs_container").draggable({cancel:"button,fieldset",containment:"window"}).css("position","absolute");var Ga,Va,za=!1,Ka=!1,qa=function showDocProperties(){if(!za){za=!0,Xy("#image_save_opts input").val([Wy.pref("img_save")]);var er=Yy.getResolution();"px"!==sb.baseUnit&&(er.w=iA(er.w)+sb.baseUnit,er.h=iA(er.h)+sb.baseUnit),Xy("#canvas_width").val(er.w),Xy("#canvas_height").val(er.h),Xy("#canvas_title").val(Yy.getDocumentTitle()),Xy("#svg_docprops").show()}},Wa=function showPreferences(){if(!Ka){Ka=!0,Xy("#main_menu").hide();var er=ob.bkgd_color,tr=Wy.pref("bkgd_url");Zr.each((function(){var tr=Xy(this),rr=tr.data("bgcolor")===er;tr.toggleClass(Tn,rr)})),er||Zr.eq(0).addClass(Tn),tr&&Xy("#canvas_bg_url").val(tr),Xy("#grid_snapping_on").prop("checked",sb.gridSnapping),Xy("#grid_snapping_step").attr("value",sb.snappingStep),Xy("#grid_color").attr("value",sb.gridColor),Xy("#svg_prefs").show()}},Xa=function openHomePage(){window.open("https://github.com/SVG-Edit/svgedit","_blank")},Ya=function hideSourceEditor(){Xy("#svg_source_editor").hide(),Cr=!1,Xy("#svg_source_textarea").blur()},Ja=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee9(){var er;return regeneratorRuntime.wrap((function _callee9$(tr){for(;;)switch(tr.prev=tr.next){case 0:if(Cr){tr.next=2;break}return tr.abrupt("return");case 2:if(er=function saveChanges(){Yy.clearSelection(),Ya(),la(),Sr(),Dr(),Vr()},Yy.setSvgString(Xy("#svg_source_textarea").val())){tr.next=11;break}return tr.next=6,Xy.confirm(tb.notification.QerrorsRevertToSource);case 6:if(tr.sent){tr.next=9;break}return tr.abrupt("return");case 9:return er(),tr.abrupt("return");case 11:er(),yr();case 13:case"end":return tr.stop()}}),_callee9)})));return function saveSourceEditor(){return er.apply(this,arguments)}}(),$a=function hideDocProperties(){Xy("#svg_docprops").hide(),Xy("#canvas_width,#canvas_height").removeAttr("disabled"),Xy("#resolution")[0].selectedIndex=0,Xy("#image_save_opts input").val([Wy.pref("img_save")]),za=!1},Za=function hidePreferences(){Xy("#svg_prefs").hide(),Ka=!1},ei=function saveDocProperties(){var er=Xy("#canvas_title").val();Dr(er),Yy.setDocumentTitle(er);var tr=Xy("#canvas_width"),rr=tr.val(),nr=Xy("#canvas_height"),ar=nr.val();return"fit"===rr||lA("width",rr)?(tr.parent().removeClass("error"),"fit"===ar||lA("height",ar)?(nr.parent().removeClass("error"),Yy.setResolution(rr,ar)?(Wy.pref("img_save",Xy("#image_save_opts :checked").val()),Ir(),$a(),!0):(Xy.alert(tb.notification.noContentToFitTo),!1)):(nr.parent().addClass("error"),Xy.alert(tb.notification.invalidAttrValGiven),!1)):(tr.parent().addClass("error"),Xy.alert(tb.notification.invalidAttrValGiven),!1)},ti=Wy.savePreferences=_asyncToGenerator(regeneratorRuntime.mark((function _callee10(){var tr,rr,nr,ar;return regeneratorRuntime.wrap((function _callee10$(ir){for(;;)switch(ir.prev=ir.next){case 0:if(setBackground(Xy("#bg_blocks div.cur_background").data("bgcolor")||"#FFF",Xy("#canvas_bg_url").val()),!(tr=Xy("#lang_select").val())||tr===Wy.pref("lang")){ir.next=11;break}return ir.next=6,Wy.putLocale(tr,er);case 6:return rr=ir.sent,nr=rr.langParam,ar=rr.langData,ir.next=11,Pi(nr,ar);case 11:or(Xy("#iconsize").val()),sb.gridSnapping=Xy("#grid_snapping_on")[0].checked,sb.snappingStep=Xy("#grid_snapping_step").val(),sb.gridColor=Xy("#grid_color").val(),sb.showRulers=Xy("#show_rulers")[0].checked,Xy("#rulers").toggle(sb.showRulers),sb.showRulers&&updateRulers(),sb.baseUnit=Xy("#base_unit").val(),Yy.setConfig(sb),Ir(),Za();case 22:case"end":return ir.stop()}}),_callee10)}))),ri=Xy.noop,ni=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee11(){return regeneratorRuntime.wrap((function _callee11$(er){for(;;)switch(er.prev=er.next){case 0:if(Xy("#dialog_box").hide(),Cr||za||Ka){er.next=4;break}return Or&&Yy.leaveContext(),er.abrupt("return");case 4:if(!Cr){er.next=15;break}if(Br===Xy("#svg_source_textarea").val()){er.next=12;break}return er.next=8,Xy.confirm(tb.notification.QignoreSourceChanges);case 8:er.sent&&Ya(),er.next=13;break;case 12:Ya();case 13:er.next=16;break;case 15:za?$a():Ka&&Za();case 16:ri();case 17:case"end":return er.stop()}}),_callee11)})));return function cancelOverlays(){return er.apply(this,arguments)}}(),ai={width:Xy(window).width(),height:Xy(window).height()};if(xd()&&(ri=function resetScrollPos(){0===hr[0].scrollLeft&&0===hr[0].scrollTop&&(hr[0].scrollLeft=lr.left,hr[0].scrollTop=lr.top)},lr={left:hr[0].scrollLeft,top:hr[0].scrollTop},Xy(window).resize(ri),Wy.ready((function(){return new Promise((function(er,tr){setTimeout((function(){ri(),er()}),500)}))})),hr.scroll((function(){lr={left:hr[0].scrollLeft,top:hr[0].scrollTop}}))),Xy(window).resize((function(er){Xy.each(ai,(function(er,tr){var rr=Xy(window)[er]();hr[0]["scroll"+("width"===er?"Left":"Top")]-=(rr-tr)/2,ai[er]=rr})),ar()})),hr.scroll((function(){Xy("#ruler_x").length&&(Xy("#ruler_x")[0].scrollLeft=hr[0].scrollLeft),Xy("#ruler_y").length&&(Xy("#ruler_y")[0].scrollTop=hr[0].scrollTop)})),Xy("#url_notice").click((function(){Xy.alert(this.title)})),Xy("#change_image_url").click(promptImgURL),Ga="tool_button_current",Va="",Xy.each(["clear","open","save","source","delete","delete_multi","paste","clone","clone_multi","move_top","move_bottom"],(function(er,tr){Va+=(er?",":"")+"#tool_"+tr})),Xy(Va).mousedown((function(){Xy(this).addClass(Ga)})).bind("mousedown mouseout",(function(){Xy(this).removeClass(Ga)})),Xy("#tool_undo, #tool_redo").mousedown((function(){Xy(this).hasClass("disabled")||Xy(this).addClass(Ga)})).bind("mousedown mouseout",(function(){Xy(this).removeClass(Ga)})),Cd()&&!window.opera)for(var ii=["tool_clear","tool_save","tool_source","tool_undo","tool_redo","tool_clone"],oi=ii.length;oi--;){var si=document.getElementById(ii[oi]);if(si){var li=si.title,ci=li.indexOf("Ctrl+");si.title=[li.substr(0,ci),"Cmd+",li.substr(ci+5)].join("")}}var ui=function colorPicker(er){var tr="stroke_color"===er.attr("id")?"stroke":"fill",rr="stroke"===tr?tb.ui.pick_stroke_paint_opacity:tb.ui.pick_fill_paint_opacity,nr=er.offset(),ar=Ar[tr].paint;Xy("#color_picker").draggable({cancel:".jGraduate_tabs, .jGraduate_colPick, .jGraduate_gradPick, .jPicker",containment:"window"}).css(sb.colorPickerCSS||{left:nr.left-140,bottom:40}).jGraduate({images:{clientPath:"./jgraduate/images/"},paint:ar,window:{pickerTitle:rr},newstop:"inverse"},(function(er){ar=new Xy.jGraduate.Paint(er),Ar[tr].setPaint(ar),Yy.setPaint(tr,ar),Xy("#color_picker").hide()}),(function(){Xy("#color_picker").hide()}))},di=function(){function PaintBox(er,tr){_classCallCheck(this,PaintBox);var rr=sb["fill"===tr?"initFill":"initStroke"],nr=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n <rect width="16.5" height="16.5"\n fill="#'.concat(rr.color,'" opacity="').concat(rr.opacity,'"/>\n <defs><linearGradient id="gradbox_').concat(PaintBox.ctr++,'"/></defs>\n </svg>'),"text/xml").documentElement;(nr=Xy(er)[0].appendChild(document.importNode(nr,!0))).setAttribute("width",16.5),this.rect=nr.firstElementChild,this.defs=nr.getElementsByTagName("defs")[0],this.grad=this.defs.firstElementChild,this.paint=new Xy.jGraduate.Paint({solidColor:rr.color}),this.type=tr}return _createClass(PaintBox,[{key:"setPaint",value:function setPaint(er,tr){this.paint=er;var rr=er.type,nr=er.alpha/100,ar="none";switch(rr){case"solidColor":ar="none"!==er[rr]?"#"+er[rr]:er[rr];break;case"linearGradient":case"radialGradient":this.grad.remove(),this.grad=this.defs.appendChild(er[rr]),ar="url(#"+(this.grad.id="gradbox_"+this.type)+")"}this.rect.setAttribute("fill",ar),this.rect.setAttribute("opacity",nr),tr&&(Yy.setColor(this.type,this._paintColor,!0),Yy.setPaintOpacity(this.type,this._paintOpacity,!0))}},{key:"update",value:function update(er){if(Nr){var tr=this.type;switch(Nr.tagName){case"use":case"image":case"foreignObject":return;case"g":case"a":for(var rr=Nr.getElementsByTagName("*"),nr=null,ar=0,ir=rr.length;ar<ir;ar++){var or=rr[ar].getAttribute(tr);if(0===ar)nr=or;else if(nr!==or){nr=null;break}}if(null===nr)return void(this._paintColor=null);this._paintColor=nr,this._paintOpacity=1;break;default:this._paintOpacity=Number.parseFloat(Nr.getAttribute(tr+"-opacity")),Number.isNaN(this._paintOpacity)&&(this._paintOpacity=1);var sr="fill"===tr?"black":"none";this._paintColor=Nr.getAttribute(tr)||sr}er&&(Yy.setColor(tr,this._paintColor,!0),Yy.setPaintOpacity(tr,this._paintOpacity,!0)),this._paintOpacity*=100;var lr=function getPaint(er,tr,rr){var nr={alpha:tr};if(er.startsWith("url(#")){var ar=Yy.getRefElem(er);nr[(ar=ar?ar.cloneNode(!0):Xy("#"+rr+"_color defs *")[0]).tagName]=ar}else er.startsWith("#")?nr.solidColor=er.substr(1):nr.solidColor="none";return new Xy.jGraduate.Paint(nr)}(this._paintColor,this._paintOpacity,tr);this.setPaint(lr)}}},{key:"prep",value:function prep(){switch(this.paint.type){case"linearGradient":case"radialGradient":var er=new Xy.jGraduate.Paint({copy:this.paint});Yy.setPaint(this.type,er)}}}]),PaintBox}();di.ctr=0,Ar.fill=new di("#fill_color","fill"),Ar.stroke=new di("#stroke_color","stroke"),Xy("#stroke_width").val(sb.initStroke.width),Xy("#group_opacity").val(100*sb.initOpacity);var hi=Ar.fill.rect.cloneNode(!1);hi.setAttribute("style","vector-effect:non-scaling-stroke");var pi="non-scaling-stroke"===hi.style.vectorEffect;hi.removeAttribute("style");var Ai,fi,gi=Ar.fill.rect.ownerDocument.createElementNS(Yu.SVG,"feGaussianBlur");function deleteLayer(){Yy.deleteCurrentLayer()&&(Mr(),Sr(),Xy("#layerlist tr.layer").removeClass("layersel"),Xy("#layerlist tr.layer:first").addClass("layersel"))}function _cloneLayer(){return(_cloneLayer=_asyncToGenerator(regeneratorRuntime.mark((function _callee17(){var er,tr;return regeneratorRuntime.wrap((function _callee17$(rr){for(;;)switch(rr.prev=rr.next){case 0:return er=Yy.getCurrentDrawing().getCurrentLayerName()+" copy",rr.next=3,Xy.prompt(tb.notification.enterUniqueLayerName,er);case 3:if(tr=rr.sent){rr.next=6;break}return rr.abrupt("return");case 6:if(!Yy.getCurrentDrawing().hasLayer(tr)){rr.next=9;break}return Xy.alert(tb.notification.dupeLayerName),rr.abrupt("return");case 9:Yy.cloneLayer(tr),Mr(),Sr();case 12:case"end":return rr.stop()}}),_callee17)})))).apply(this,arguments)}function moveLayer(er){var tr=Yy.getCurrentDrawing().getNumLayers(),rr=Xy("#layerlist tr.layersel").index();(rr>0||rr<tr-1)&&(rr+=er,Yy.setCurrentLayerPosition(tr-rr-1),Sr())}void 0===gi.stdDeviationX&&Xy("#tool_blur").hide(),Xy(gi).remove(),Ai="-"+ir.toLowerCase()+"-zoom-",fi=Ai+"in",hr.css("cursor",fi),hr.css("cursor")===fi&&(mr=fi,_r=Ai+"out"),hr.css("cursor","auto"),setTimeout((function(){Yy.embedImage("images/logo.png",(function(er){er||(Xy("#image_save_opts [value=embed]").attr("disabled","disabled"),Xy("#image_save_opts input").val(["ref"]),Wy.pref("img_save","ref"),Xy("#image_opt_embed").css("color","#666").attr("title",tb.notification.featNotSupported))}))}),1e3),Xy("#fill_color, #tool_fill .icon_label").click((function(){ui(Xy("#fill_color")),Rr()})),Xy("#stroke_color, #tool_stroke .icon_label").click((function(){ui(Xy("#stroke_color")),Rr()})),Xy("#group_opacityLabel").click((function(){Xy("#opacity_dropdown button").mousedown(),Xy(window).mouseup()})),Xy("#zoomLabel").click((function(){Xy("#zoom_dropdown button").mousedown(),Xy(window).mouseup()})),Xy("#tool_move_top").mousedown((function(er){Xy("#tools_stacking").show(),er.preventDefault()})),Xy(".layer_button").mousedown((function(){Xy(this).addClass("layer_buttonpressed")})).mouseout((function(){Xy(this).removeClass("layer_buttonpressed")})).mouseup((function(){Xy(this).removeClass("layer_buttonpressed")})),Xy(".push_button").mousedown((function(){Xy(this).hasClass("disabled")||Xy(this).addClass("push_button_pressed").removeClass("push_button")})).mouseout((function(){Xy(this).removeClass("push_button_pressed").addClass("push_button")})).mouseup((function(){Xy(this).removeClass("push_button_pressed").addClass("push_button")})),Xy("#layer_new").click(_asyncToGenerator(regeneratorRuntime.mark((function _callee12(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee12$(nr){for(;;)switch(nr.prev=nr.next){case 0:tr=Yy.getCurrentDrawing().getNumLayers();do{er=tb.layers.layer+" "+ ++tr}while(Yy.getCurrentDrawing().hasLayer(er));return nr.next=4,Xy.prompt(tb.notification.enterUniqueLayerName,er);case 4:if(rr=nr.sent){nr.next=7;break}return nr.abrupt("return");case 7:if(!Yy.getCurrentDrawing().hasLayer(rr)){nr.next=10;break}return Xy.alert(tb.notification.dupeLayerName),nr.abrupt("return");case 10:Yy.createLayer(rr),Mr(),Sr();case 13:case"end":return nr.stop()}}),_callee12)})))),Xy("#layer_delete").click(deleteLayer),Xy("#layer_up").click((function(){moveLayer(-1)})),Xy("#layer_down").click((function(){moveLayer(1)})),Xy("#layer_rename").click(_asyncToGenerator(regeneratorRuntime.mark((function _callee13(){var er,tr;return regeneratorRuntime.wrap((function _callee13$(rr){for(;;)switch(rr.prev=rr.next){case 0:return er=Xy("#layerlist tr.layersel td.layername").text(),rr.next=3,Xy.prompt(tb.notification.enterNewLayerName,"");case 3:if(tr=rr.sent){rr.next=6;break}return rr.abrupt("return");case 6:if(er!==tr&&!Yy.getCurrentDrawing().hasLayer(tr)){rr.next=9;break}return Xy.alert(tb.notification.layerHasThatName),rr.abrupt("return");case 9:Yy.renameCurrentLayer(tr),Sr();case 11:case"end":return rr.stop()}}),_callee13)}))));var mi=-1,_i=!1,vi=!1,yi=function changeSidePanelWidth(er){var tr=Xy("#ruler_x");Xy("#sidepanels").width("+="+er),Xy("#layerpanel").width("+="+er),tr.css("right",Number.parseInt(tr.css("right"))+er),hr.css("right",Number.parseInt(hr.css("right"))+er),Yy.runExtensions("workareaResized")},bi=function resizeSidePanel(er){if(vi&&-1!==mi){_i=!0;var tr=mi-er.pageX,rr=Xy("#sidepanels").width();rr+tr>300?tr=300-rr:rr+tr<2&&(tr=2-rr),0!==tr&&(mi-=tr,yi(tr))}},wi=function toggleSidePanel(er){var tr=window.devicePixelRatio||1,rr=Xy("#sidepanels").width();yi(((tr<1?rr:rr/tr)>2||er?0:150*(tr<1?1:tr))-rr)};Xy("#sidepanel_handle").mousedown((function(er){mi=er.pageX,Xy(window).mousemove(bi),vi=!1,setTimeout((function(){vi=!0}),20)})).mouseup((function(er){_i||wi(),mi=-1,_i=!1})),Xy(window).mouseup((function(){mi=-1,_i=!1,Xy("#svg_editor").unbind("mousemove",bi)})),Sr();Xy(window).bind("load resize",(function centerCanvas(){hr.css("line-height",hr.height()+"px")})),Xy("#resolution").change((function(){var er=Xy("#canvas_width,#canvas_height");if(this.selectedIndex)if("content"===this.value)er.val("fit").attr("disabled","disabled");else{var tr=this.value.split("x");Xy("#canvas_width").val(tr[0]),Xy("#canvas_height").val(tr[1]),er.removeAttr("disabled")}else"fit"===Xy("#canvas_width").val()&&er.removeAttr("disabled").val(100)})),Xy("input,select").attr("autocomplete","off");var ki,xi,Si=["#tool_source_cancel","#tool_docprops_cancel","#tool_prefs_cancel",".overlay"],Ci=(ki=[{sel:"#tool_select",fn:Fr,evt:"click",key:["V",!0]},{sel:"#tool_fhpath",fn:$n,evt:"click",key:["Q",!0]},{sel:"#tool_line",fn:Zn,evt:"click",key:["L",!0],parent:"#tools_line",prepend:!0},{sel:"#tool_rect",fn:ta,evt:"mouseup",key:["R",!0],parent:"#tools_rect",icon:"rect"},{sel:"#tool_square",fn:ea,evt:"mouseup",parent:"#tools_rect",icon:"square"},{sel:"#tool_fhrect",fn:ra,evt:"mouseup",parent:"#tools_rect",icon:"fh_rect"},{sel:"#tool_ellipse",fn:aa,evt:"mouseup",key:["E",!0],parent:"#tools_ellipse",icon:"ellipse"},{sel:"#tool_circle",fn:na,evt:"mouseup",parent:"#tools_ellipse",icon:"circle"},{sel:"#tool_fhellipse",fn:ia,evt:"mouseup",parent:"#tools_ellipse",icon:"fh_ellipse"},{sel:"#tool_path",fn:da,evt:"click",key:["P",!0]},{sel:"#tool_text",fn:ua,evt:"click",key:["T",!0]},{sel:"#tool_image",fn:oa,evt:"mouseup"},{sel:"#tool_zoom",fn:sa,evt:"mouseup",key:["Z",!0]},{sel:"#tool_clear",fn:Pa,evt:"mouseup",key:["N",!0]},{sel:"#tool_save",fn:function fn(){Cr?Ja():function clickSave(){var er={images:Wy.pref("img_save"),round_digits:6};Yy.save(er)}()},evt:"mouseup",key:["S",!0]},{sel:"#tool_export",fn:Ua,evt:"mouseup"},{sel:"#tool_open",fn:Ia,evt:"mouseup",key:["O",!0]},{sel:"#tool_import",fn:Ra,evt:"mouseup"},{sel:"#tool_source",fn:Er,evt:"click",key:["U",!0]},{sel:"#tool_wireframe",fn:Ha,evt:"click",key:["F",!0]},{key:["esc",!1,!1],fn:function fn(){Si.every((function(er){return Xy(er+":hidden").length}))&&Yy.clearSelection()},hidekey:!0},{sel:Si.join(","),fn:ni,evt:"click",key:["esc",!1,!1],hidekey:!0},{sel:"#tool_source_save",fn:Ja,evt:"click"},{sel:"#tool_docprops_save",fn:ei,evt:"click"},{sel:"#tool_docprops",fn:qa,evt:"click"},{sel:"#tool_prefs_save",fn:ti,evt:"click"},{sel:"#tool_editor_prefs",fn:Wa,evt:"click"},{sel:"#tool_editor_homepage",fn:Xa,evt:"click"},{sel:"#tool_open",fn:function fn(){window.dispatchEvent(new CustomEvent("openImage"))},evt:"click"},{sel:"#tool_import",fn:function fn(){window.dispatchEvent(new CustomEvent("importImage"))},evt:"click"},{sel:"#tool_delete,#tool_delete_multi",fn:ha,evt:"click",key:["del/backspace",!0]},{sel:"#tool_reorient",fn:ya,evt:"click"},{sel:"#tool_node_link",fn:ka,evt:"click"},{sel:"#tool_node_clone",fn:xa,evt:"click"},{sel:"#tool_node_delete",fn:Sa,evt:"click"},{sel:"#tool_openclose_path",fn:Ba,evt:"click"},{sel:"#tool_add_subpath",fn:Ca,evt:"click"},{sel:"#tool_move_top",fn:ga,evt:"click",key:"ctrl+shift+]"},{sel:"#tool_move_bottom",fn:ma,evt:"click",key:"ctrl+shift+["},{sel:"#tool_topath",fn:va,evt:"click"},{sel:"#tool_make_link,#tool_make_link_multi",fn:ba,evt:"click"},{sel:"#tool_undo",fn:Ma,evt:"click"},{sel:"#tool_redo",fn:Qa,evt:"click"},{sel:"#tool_clone,#tool_clone_multi",fn:Da,evt:"click",key:["D",!0]},{sel:"#tool_group_elements",fn:Oa,evt:"click",key:["G",!0]},{sel:"#tool_ungroup",fn:Oa,evt:"click"},{sel:"#tool_unlink_use",fn:Oa,evt:"click"},{sel:"[id^=tool_align]",fn:ja,evt:"click"},{sel:"#tool_bold",fn:Ta,evt:"mousedown"},{sel:"#tool_italic",fn:Fa,evt:"mousedown"},{sel:"#sidepanel_handle",fn:wi,key:["X"]},{sel:"#copy_save_done",fn:ni,evt:"click"},{key:"ctrl+left",fn:function fn(){La(0,1)}},{key:"ctrl+right",fn:function fn(){La(1,1)}},{key:"ctrl+shift+left",fn:function fn(){La(0,5)}},{key:"ctrl+shift+right",fn:function fn(){La(1,5)}},{key:"shift+O",fn:Na},{key:"shift+P",fn:Ea},{key:[cr+"up",!0],fn:function fn(){la(2)}},{key:[cr+"down",!0],fn:function fn(){la(.5)}},{key:[cr+"]",!0],fn:function fn(){_a("Up")}},{key:[cr+"[",!0],fn:function fn(){_a("Down")}},{key:["up",!0],fn:function fn(){wa(0,-1)}},{key:["down",!0],fn:function fn(){wa(0,1)}},{key:["left",!0],fn:function fn(){wa(-1,0)}},{key:["right",!0],fn:function fn(){wa(1,0)}},{key:"shift+up",fn:function fn(){wa(0,-10)}},{key:"shift+down",fn:function fn(){wa(0,10)}},{key:"shift+left",fn:function fn(){wa(-10,0)}},{key:"shift+right",fn:function fn(){wa(10,0)}},{key:["alt+up",!0],fn:function fn(){Yy.cloneSelectedElements(0,-1)}},{key:["alt+down",!0],fn:function fn(){Yy.cloneSelectedElements(0,1)}},{key:["alt+left",!0],fn:function fn(){Yy.cloneSelectedElements(-1,0)}},{key:["alt+right",!0],fn:function fn(){Yy.cloneSelectedElements(1,0)}},{key:["alt+shift+up",!0],fn:function fn(){Yy.cloneSelectedElements(0,-10)}},{key:["alt+shift+down",!0],fn:function fn(){Yy.cloneSelectedElements(0,10)}},{key:["alt+shift+left",!0],fn:function fn(){Yy.cloneSelectedElements(-10,0)}},{key:["alt+shift+right",!0],fn:function fn(){Yy.cloneSelectedElements(10,0)}},{key:"a",fn:function fn(){Yy.selectAllInCurrentLayer()}},{key:cr+"a",fn:function fn(){Yy.selectAllInCurrentLayer()}},{key:cr+"z",fn:Ma},{key:cr+"shift+z",fn:Qa},{key:cr+"y",fn:Qa},{key:cr+"x",fn:pa},{key:cr+"c",fn:Aa},{key:cr+"v",fn:fa}],xi={"4/Shift+4":"#tools_rect_show","5/Shift+5":"#tools_ellipse_show"},{setAll:function setAll(){var er={},tr={};ki.forEach((function(rr){var nr;if(rr.sel){if(null===(nr=qy(rr.sel)))return!0;if(rr.evt&&(Bd()&&"click"===rr.evt&&(rr.evt="mousedown"),nr.addEventListener(rr.evt,rr.fn)),rr.parent&&Xy(rr.parent+"_show").length){var ar=Xy(rr.parent);ar.length||(ar=Xr(rr.parent.substr(1))),rr.prepend&&(nr.style.margin="initial"),ar[rr.prepend?"prepend":"append"](nr),Array.isArray(er[rr.parent])||(er[rr.parent]=[]),er[rr.parent].push(rr)}}if(rr.key){var ir=rr.key,or=!1;Array.isArray(rr.key)&&(ir=rr.key[0],rr.key.length>1&&(or=rr.key[1])),ir=String(ir);var sr=rr.fn;if(ir.split("/").forEach((function(er){tr[er]={fn:sr,pd:or}})),rr.sel&&!rr.hidekey&&nr.title){var lr="".concat(nr.title.split("[")[0]," (").concat(ir,")");xi[ir]=rr.sel,null===nr.closest("#main_menu")&&(nr.title=lr)}}return!0})),document.addEventListener("keydown",(function(er){if("BODY"===er.target.nodeName){var rr="".concat(er.metaKey?"meta+":"").concat(er.ctrlKey?"ctrl+":"").concat(er.key.toLowerCase());tr[rr]&&(tr[rr].fn(),tr[rr].pd&&er.preventDefault())}})),Wr(er),Xy(".attr_changer, #image_url").bind("keydown","return",(function(er){Xy(this).change(),er.preventDefault()})),Xy(window).bind("keydown","tab",(function(er){"canvas"===vr&&(er.preventDefault(),Ea())})).bind("keydown","shift+tab",(function(er){"canvas"===vr&&(er.preventDefault(),Na())})),Xy("#tool_zoom").dblclick(ca)},setTitles:function setTitles(){Xy.each(xi,(function(er,tr){var rr=Xy(tr).parents("#main_menu").length;Xy(tr).each((function(){var tr;tr=rr?Xy(this).text().split(" [")[0]:this.title.split(" [")[0];var nr="";Xy.each(er.split("/"),(function(er,tr){var rr=tr.split("+"),ar="";rr.length>1&&(ar=rr[0]+"+",tr=rr[1]),nr+=(er?"/":"")+ar+(tb["key_"+tr]||tr)})),rr?this.lastChild.textContent=tr+" ["+nr+"]":this.title=tr+" ["+nr+"]"}))}))},getButtonData:function getButtonData(er){return Object.values(ki).find((function(tr){return tr.sel===er}))}});Wy.ready((function(){var er=sb.initTool,tr=Xy("#tools_left, #svg_editor .tools_flyout"),rr=tr.find("#tool_"+er),nr=tr.find("#"+er);(rr.length?rr:nr.length?nr:Xy("#tool_select")).click().mouseup(),sb.wireframe&&Xy("#tool_wireframe").click(),sb.showlayers&&wi(),Xy("#rulers").toggle(Boolean(sb.showRulers)),sb.showRulers&&(Xy("#show_rulers")[0].checked=!0),sb.baseUnit&&Xy("#base_unit").val(sb.baseUnit),sb.gridSnapping&&(Xy("#grid_snapping_on")[0].checked=!0),sb.snappingStep&&Xy("#grid_snapping_step").val(sb.snappingStep),sb.gridColor&&Xy("#grid_color").val(sb.gridColor)})),Xy("#rect_rx").SpinButton({min:0,max:1e3,stateObj:nr,callback:function changeRectRadius(er){Yy.setRectRadius(er.value)}}),Xy("#stroke_width").SpinButton({min:0,max:99,smallStep:.1,stateObj:nr,callback:function changeStrokeWidth(er){var tr=er.value;0===tr&&Nr&&["line","polyline"].includes(Nr.nodeName)&&(tr=er.value=1),Yy.setStrokeWidth(tr)}}),Xy("#angle").SpinButton({min:-180,max:180,step:5,stateObj:nr,callback:function changeRotationAngle(er){Yy.setRotationAngle(er.value),Xy("#tool_reorient").toggleClass("disabled",0===Number.parseInt(er.value))}}),Xy("#font_size").SpinButton({min:.001,stepfunc:function stepFontSize(er,tr){var rr=Number(er.value),nr=rr+tr,ar=nr>=rr;return 0===tr?rr:rr>=24?ar?Math.round(1.1*rr):Math.round(rr/1.1):rr<=1?ar?2*rr:rr/2:nr},stateObj:nr,callback:function changeFontSize(er){Yy.setFontSize(er.value)}}),Xy("#group_opacity").SpinButton({min:0,max:100,step:5,stateObj:nr,callback:Un}),Xy("#blur").SpinButton({min:0,max:10,step:.1,stateObj:nr,callback:Qn}),Xy("#zoom").SpinButton({min:.001,max:1e4,step:50,stepfunc:function stepZoom(er,tr){var rr=Number(er.value);if(0===rr)return 100;var nr=rr+tr;return 0===tr?rr:rr>=100?nr:nr>=rr?2*rr:rr/2},stateObj:nr,callback:Gr}).val(100*Yy.getZoom()),Xy("#workarea").contextMenu({menu:"cmenu_canvas",inSpeed:0},(function(er,tr,rr){switch(er){case"delete":ha();break;case"cut":pa();break;case"copy":Aa();break;case"paste":Yy.pasteElements();break;case"paste_in_place":Yy.pasteElements("in_place");break;case"group":case"group_elements":Yy.groupSelectedElements();break;case"ungroup":Yy.ungroupSelectedElement();break;case"move_front":ga();break;case"move_up":_a("Up");break;case"move_down":_a("Down");break;case"move_back":ma();break;default:(function hasCustomHandler(er){return Boolean(lf[er])})(er)&&function getCustomHandler(er){return lf[er].action}(er).call()}}));var Bi=function lmenuFunc(er,tr,rr){switch(er){case"dupe":!function cloneLayer(){return _cloneLayer.apply(this,arguments)}();break;case"delete":deleteLayer();break;case"merge_down":!function mergeLayer(){Xy("#layerlist tr.layersel").index()!==Yy.getCurrentDrawing().getNumLayers()-1&&(Yy.mergeLayer(),Mr(),Sr())}();break;case"merge_all":Yy.mergeAllLayers(),Mr(),Sr()}};function enableOrDisableClipboard(){var er;try{er=localStorage.getItem("svgedit_clipboard")}catch(er){}pr[(er?"en":"dis")+"ableContextMenuItems"]("#paste,#paste_in_place")}if(Xy("#layerlist").contextMenu({menu:"cmenu_layers",inSpeed:0},Bi),Xy("#layer_moreopts").contextMenu({menu:"cmenu_layers",inSpeed:0,allowLeft:!0},Bi),Xy(".contextMenu li").mousedown((function(er){er.preventDefault()})),Xy("#cmenu_canvas li").disableContextMenu(),pr.enableContextMenuItems("#delete,#cut,#copy"),enableOrDisableClipboard(),window.addEventListener("storage",(function(er){"svgedit_clipboard"===er.key&&enableOrDisableClipboard()})),window.addEventListener("beforeunload",(function(er){return 0===dr.getUndoStackSize()&&(Wy.showSaveWarning=!1),!(!sb.no_save_warning&&Wy.showSaveWarning)||(er.returnValue=tb.notification.unsavedChanges,tb.notification.unsavedChanges)})),Wy.canvas.getUIStrings=function(){return tb},Wy.openPrep=function(){return Xy("#main_menu").hide(),0===dr.getUndoStackSize()||Xy.confirm(tb.notification.QwantToOpen)},window.FileReader){var Ei=function importImage(er){Xy.process_cancel(tb.notification.loadingImage),er.stopPropagation(),er.preventDefault(),Xy("#main_menu").hide();var tr,rr="drop"===er.type?er.dataTransfer.files[0]:this.files[0];rr?rr.type.includes("image")&&(rr.type.includes("svg")?((tr=new FileReader).onloadend=function(er){var tr=Yy.importSvgString(er.target.result,!0);Yy.ungroupSelectedElement(),Yy.ungroupSelectedElement(),Yy.groupSelectedElements(),Yy.alignSelectedElements("m","page"),Yy.alignSelectedElements("c","page"),Yy.selectOnly([tr]),Xy("#dialog_box").hide()},tr.readAsText(rr)):((tr=new FileReader).onloadend=function(er){var tr=er.target.result,rr=100,nr=100,ar=new Image;ar.style.opacity=0,ar.addEventListener("load",(function(){rr=ar.offsetWidth||ar.naturalWidth||ar.width,nr=ar.offsetHeight||ar.naturalHeight||ar.height,function insertNewImage(er,rr){var nr=Yy.addSVGElementFromJson({element:"image",attr:{x:0,y:0,width:er,height:rr,id:Yy.getNextId(),style:"pointer-events:inherit"}});Yy.setHref(nr,tr),Yy.selectOnly([nr]),Yy.alignSelectedElements("m","page"),Yy.alignSelectedElements("c","page"),Mr(),Xy("#dialog_box").hide()}(rr,nr)})),ar.src=tr},tr.readAsDataURL(rr))):Xy("#dialog_box").hide()};hr[0].addEventListener("dragenter",(function onDragEnter(er){er.stopPropagation(),er.preventDefault()})),hr[0].addEventListener("dragover",(function onDragOver(er){er.stopPropagation(),er.preventDefault()})),hr[0].addEventListener("dragleave",(function onDragLeave(er){er.stopPropagation(),er.preventDefault()})),hr[0].addEventListener("drop",Ei);var Ni=Xy('<input type="file">').change(function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee15(er){var tr;return regeneratorRuntime.wrap((function _callee15$(er){for(;;)switch(er.prev=er.next){case 0:return er.next=2,Wy.openPrep();case 2:if(er.sent){er.next=5;break}return er.abrupt("return");case 5:Yy.clear(),1===this.files.length&&(Xy.process_cancel(tb.notification.loadingImage),(tr=new FileReader).onloadend=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee14(er){var tr;return regeneratorRuntime.wrap((function _callee14$(rr){for(;;)switch(rr.prev=rr.next){case 0:return tr=er.target,rr.next=3,loadSvgString(tr.result);case 3:Ir();case 4:case"end":return rr.stop()}}),_callee14)})));return function(tr){return er.apply(this,arguments)}}(),tr.readAsText(this.files[0]));case 7:case"end":return er.stop()}}),_callee15,this)})));return function(tr){return er.apply(this,arguments)}}());Xy("#tool_open").show(),Xy(window).on("openImage",(function(){return Ni.click()}));var Li=Xy('<input type="file">').change(Ei);Xy("#tool_import").show(),Xy(window).on("importImage",(function(){return Li.click()}))}Ir(!0);var Pi=Wy.setLang=function(er,tr){if(Wy.langChanged=!0,Wy.pref("lang",er),Xy("#lang_select").val(er),tr){document.documentElement.lang=tr.lang,Xy.extend(tb,tr);var rr=Xy("#layerlist tr.layersel td.layername").text()===tb.common.layer+" 1";Yy.setUiStrings(tr),Ci.setTitles(),rr&&(Yy.renameCurrentLayer(tb.common.layer+" 1"),Sr()),Yy.runExtensions("langChanged",er),Kr();Xy.each({"#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"},(function(er,tr){Xy(tr).attr("title",Xy(er)[0].title)})),Xy("#multiselected_panel div[id^=tool_align]").each((function(){Xy("#tool_pos"+this.id.substr(10))[0].title=this.title}))}};rr()},Wy.ready=function(er){return new Promise((function(tr,rr){nb?tr(er()):Jy.push([er,tr,rr])}))},Wy.runCallbacks=_asyncToGenerator(regeneratorRuntime.mark((function _callee18(){return regeneratorRuntime.wrap((function _callee18$(er){for(;;)switch(er.prev=er.next){case 0:return er.prev=0,er.next=3,Promise.all(Jy.map((function(er){return(0,_slicedToArray(er,1)[0])()})));case 3:er.next=9;break;case 5:throw er.prev=5,er.t0=er.catch(0),Jy.forEach((function(er){(0,_slicedToArray(er,3)[2])()})),er.t0;case 9:Jy.forEach((function(er){(0,_slicedToArray(er,2)[1])()})),nb=!0;case 11:case"end":return er.stop()}}),_callee18,null,[[0,5]])}))),Wy.loadFromString=function(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.noAlert;return Wy.ready(_asyncToGenerator(regeneratorRuntime.mark((function _callee19(){return regeneratorRuntime.wrap((function _callee19$(tr){for(;;)switch(tr.prev=tr.next){case 0:return tr.prev=0,tr.next=3,loadSvgString(er,{noAlert:rr});case 3:tr.next=9;break;case 5:if(tr.prev=5,tr.t0=tr.catch(0),!rr){tr.next=9;break}throw tr.t0;case 9:case"end":return tr.stop()}}),_callee19,null,[[0,5]])}))))},Wy.disableUI=function(er){},Wy.loadFromURL=function(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.cache,nr=tr.noAlert;return Wy.ready((function(){return new Promise((function(tr,ar){Xy.ajax({url:er,dataType:"text",cache:Boolean(rr),beforeSend:function beforeSend(){Xy.process_cancel(tb.notification.loadingImage)},success:function success(er){tr(loadSvgString(er,{noAlert:nr}))},error:function error(er,rr,ir){404!==er.status&&er.responseText?tr(loadSvgString(er.responseText,{noAlert:nr})):nr?ar(new Error("URLLoadFail")):(Xy.alert(tb.notification.URLLoadFail+": \n"+ir),tr())},complete:function complete(){Xy("#dialog_box").hide()}})}))}))},Wy.loadFromDataURI=function(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.noAlert;return Wy.ready((function(){var tr=!1,nr=er.match(/^data:image\/svg\+xml;base64,/);nr?tr=!0:nr=er.match(/^data:image\/svg\+xml(?:;|;utf8)?,/),nr&&(nr=nr[0]);var ar=er.slice(nr.length);return loadSvgString(tr?decode64(ar):decodeURIComponent(ar),{noAlert:rr})}))},Wy.addExtension=function(er,tr,rr){if(!Yy)throw new Error("Extension added too early");return Yy.addExtension.call(this,er,tr,rr)},Wy.ready((function(){cf()}));var lb=!1,cb=[];window.addEventListener("message",(function messageListener(er){var tr={data:er.data,origin:er.origin};lb?Yy.call("message",tr):cb.push(tr)})),_asyncToGenerator(regeneratorRuntime.mark((function _callee20(){return regeneratorRuntime.wrap((function _callee20$(er){for(;;)switch(er.prev=er.next){case 0:return er.prev=0,er.next=3,Promise.resolve();case 3:Wy.init(),er.next=9;break;case 6:er.prev=6,er.t0=er.catch(0),console.error(er.t0);case 9:case"end":return er.stop()}}),_callee20,null,[[0,6]])})))(),Wy.setConfig({}),Wy.setConfig({},{allowInitialUserOverride:!0}),Wy.setConfig({extensions:[],noDefaultExtensions:!1}),Wy.setConfig({}),Wy.setConfig({}),Wy.setConfig({},{allowInitialUserOverride:!0});var ub=!checkCorrectnessOfIteration((function(er){Array.from(er)}));_export({target:"Array",stat:!0,forced:ub},{from:Vl}),_export({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var db=String.fromCharCode,hb=String.fromCodePoint,pb=!!hb&&1!=hb.length;_export({target:"String",stat:!0,forced:pb},{fromCodePoint:function fromCodePoint(er){for(var tr,rr=[],nr=arguments.length,ar=0;nr>ar;){if(tr=+arguments[ar++],toAbsoluteIndex(tr,1114111)!==tr)throw RangeError(tr+" is not a valid code point");rr.push(tr<65536?db(tr):db(55296+((tr-=65536)>>10),tr%1024+56320))}return rr.join("")}});var Ab=createCommonjsModule((function(er,tr){
|
||
/*!
|
||
* html2canvas 1.0.0-rc.7 <https://html2canvas.hertzen.com>
|
||
* Copyright (c) 2020 Niklas von Hertzen <https://hertzen.com>
|
||
* Released under MIT License
|
||
*/
|
||
er.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 er=function extendStatics(tr,rr){return(er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(er,tr){er.__proto__=tr}||function(er,tr){for(var rr in tr)tr.hasOwnProperty(rr)&&(er[rr]=tr[rr])})(tr,rr)};function __extends(tr,rr){function __(){this.constructor=tr}er(tr,rr),tr.prototype=null===rr?Object.create(rr):(__.prototype=rr.prototype,new __)}var tr=function __assign(){return(tr=Object.assign||function __assign(er){for(var tr,rr=1,nr=arguments.length;rr<nr;rr++)for(var ar in tr=arguments[rr])Object.prototype.hasOwnProperty.call(tr,ar)&&(er[ar]=tr[ar]);return er}).apply(this,arguments)};function __awaiter(er,tr,rr,nr){return new(rr||(rr=Promise))((function(ar,ir){function fulfilled(er){try{step(nr.next(er))}catch(er){ir(er)}}function rejected(er){try{step(nr.throw(er))}catch(er){ir(er)}}function step(er){er.done?ar(er.value):new rr((function(tr){tr(er.value)})).then(fulfilled,rejected)}step((nr=nr.apply(er,tr||[])).next())}))}function __generator(er,tr){var rr,nr,ar,ir,or={label:0,sent:function sent(){if(1&ar[0])throw ar[1];return ar[1]},trys:[],ops:[]};return ir={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ir[Symbol.iterator]=function(){return this}),ir;function verb(er){return function(tr){return step([er,tr])}}function step(ir){if(rr)throw new TypeError("Generator is already executing.");for(;or;)try{if(rr=1,nr&&(ar=2&ir[0]?nr.return:ir[0]?nr.throw||((ar=nr.return)&&ar.call(nr),0):nr.next)&&!(ar=ar.call(nr,ir[1])).done)return ar;switch(nr=0,ar&&(ir=[2&ir[0],ar.value]),ir[0]){case 0:case 1:ar=ir;break;case 4:return or.label++,{value:ir[1],done:!1};case 5:or.label++,nr=ir[1],ir=[0];continue;case 7:ir=or.ops.pop(),or.trys.pop();continue;default:if(!((ar=(ar=or.trys).length>0&&ar[ar.length-1])||6!==ir[0]&&2!==ir[0])){or=0;continue}if(3===ir[0]&&(!ar||ir[1]>ar[0]&&ir[1]<ar[3])){or.label=ir[1];break}if(6===ir[0]&&or.label<ar[1]){or.label=ar[1],ar=ir;break}if(ar&&or.label<ar[2]){or.label=ar[2],or.ops.push(ir);break}ar[2]&&or.ops.pop(),or.trys.pop();continue}ir=tr.call(er,or)}catch(er){ir=[6,er],nr=0}finally{rr=ar=0}if(5&ir[0])throw ir[1];return{value:ir[0]?ir[1]:void 0,done:!0}}}for(var rr=function(){function Bounds(er,tr,rr,nr){this.left=er,this.top=tr,this.width=rr,this.height=nr}return Bounds.prototype.add=function(er,tr,rr,nr){return new Bounds(this.left+er,this.top+tr,this.width+rr,this.height+nr)},Bounds.fromClientRect=function(er){return new Bounds(er.left,er.top,er.width,er.height)},Bounds}(),nr=function parseBounds(er){return rr.fromClientRect(er.getBoundingClientRect())},ar=function parseDocumentSize(er){var tr=er.body,nr=er.documentElement;if(!tr||!nr)throw new Error("Unable to get document size");var ar=Math.max(Math.max(tr.scrollWidth,nr.scrollWidth),Math.max(tr.offsetWidth,nr.offsetWidth),Math.max(tr.clientWidth,nr.clientWidth)),ir=Math.max(Math.max(tr.scrollHeight,nr.scrollHeight),Math.max(tr.offsetHeight,nr.offsetHeight),Math.max(tr.clientHeight,nr.clientHeight));return new rr(0,0,ar,ir)},ir=function toCodePoints(er){for(var tr=[],rr=0,nr=er.length;rr<nr;){var ar=er.charCodeAt(rr++);if(ar>=55296&&ar<=56319&&rr<nr){var ir=er.charCodeAt(rr++);56320==(64512&ir)?tr.push(((1023&ar)<<10)+(1023&ir)+65536):(tr.push(ar),rr--)}else tr.push(ar)}return tr},or=function fromCodePoint(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];if(String.fromCodePoint)return String.fromCodePoint.apply(String,er);var rr=er.length;if(!rr)return"";for(var nr=[],ar=-1,ir="";++ar<rr;){var or=er[ar];or<=65535?nr.push(or):(or-=65536,nr.push(55296+(or>>10),or%1024+56320)),(ar+1===rr||nr.length>16384)&&(ir+=String.fromCharCode.apply(String,nr),nr.length=0)}return ir},sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),cr=0;cr<sr.length;cr++)lr[sr.charCodeAt(cr)]=cr;var ur,dr=function decode(er){var tr,rr,nr,ar,ir,or=.75*er.length,sr=er.length,cr=0;"="===er[er.length-1]&&(or--,"="===er[er.length-2]&&or--);var ur="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(or):new Array(or),dr=Array.isArray(ur)?ur:new Uint8Array(ur);for(tr=0;tr<sr;tr+=4)rr=lr[er.charCodeAt(tr)],nr=lr[er.charCodeAt(tr+1)],ar=lr[er.charCodeAt(tr+2)],ir=lr[er.charCodeAt(tr+3)],dr[cr++]=rr<<2|nr>>4,dr[cr++]=(15&nr)<<4|ar>>2,dr[cr++]=(3&ar)<<6|63&ir;return ur},hr=function polyUint16Array(er){for(var tr=er.length,rr=[],nr=0;nr<tr;nr+=2)rr.push(er[nr+1]<<8|er[nr]);return rr},pr=function polyUint32Array(er){for(var tr=er.length,rr=[],nr=0;nr<tr;nr+=4)rr.push(er[nr+3]<<24|er[nr+2]<<16|er[nr+1]<<8|er[nr]);return rr},Ar=5,fr=11,gr=2,mr=65536>>Ar,_r=(1<<Ar)-1,vr=mr+(1024>>Ar)+32,yr=65536>>fr,br=(1<<fr-Ar)-1,wr=function slice16(er,tr,rr){return er.slice?er.slice(tr,rr):new Uint16Array(Array.prototype.slice.call(er,tr,rr))},kr=function slice32(er,tr,rr){return er.slice?er.slice(tr,rr):new Uint32Array(Array.prototype.slice.call(er,tr,rr))},xr=function createTrieFromBase64(er){var tr=dr(er),rr=Array.isArray(tr)?pr(tr):new Uint32Array(tr),nr=Array.isArray(tr)?hr(tr):new Uint16Array(tr),ar=24,ir=wr(nr,ar/2,rr[4]/2),or=2===rr[5]?wr(nr,(ar+rr[4])/2):kr(rr,Math.ceil((ar+rr[4])/4));return new Sr(rr[0],rr[1],rr[2],rr[3],ir,or)},Sr=function(){function Trie(er,tr,rr,nr,ar,ir){this.initialValue=er,this.errorValue=tr,this.highStart=rr,this.highValueIndex=nr,this.index=ar,this.data=ir}return Trie.prototype.get=function(er){var tr;if(er>=0){if(er<55296||er>56319&&er<=65535)return tr=((tr=this.index[er>>Ar])<<gr)+(er&_r),this.data[tr];if(er<=65535)return tr=((tr=this.index[mr+(er-55296>>Ar)])<<gr)+(er&_r),this.data[tr];if(er<this.highStart)return tr=vr-yr+(er>>fr),tr=this.index[tr],tr+=er>>Ar&br,tr=((tr=this.index[tr])<<gr)+(er&_r),this.data[tr];if(er<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Trie}(),Cr=50,Br=1,Er=2,Nr=3,Lr=4,Pr=5,Tr=7,Fr=8,Ur=9,Ir=10,Rr=11,Mr=12,Qr=13,Or=14,Dr=15,jr=16,Hr=17,Gr=18,Vr=19,zr=20,Kr=21,qr=22,Wr=23,Xr=24,Yr=25,Jr=26,$r=27,Zr=28,Tn=29,Un=30,Qn=31,Dn=32,Hn=33,Gn=34,Vn=35,zn=36,Kn=37,Wn=38,Xn=39,Yn=40,Jn=41,$n=42,Zn=43,ea="!",ta="×",ra="÷",na=xr("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),aa=[Un,zn],ia=[Br,Er,Nr,Pr],oa=[Ir,Fr],sa=[$r,Jr],la=ia.concat(oa),ca=[Wn,Xn,Yn,Gn,Vn],ua=[Dr,Qr],da=function codePointsToCharacterClasses(er,tr){void 0===tr&&(tr="strict");var rr=[],nr=[],ar=[];return er.forEach((function(er,ir){var or=na.get(er);if(or>Cr?(ar.push(!0),or-=Cr):ar.push(!1),-1!==["normal","auto","loose"].indexOf(tr)&&-1!==[8208,8211,12316,12448].indexOf(er))return nr.push(ir),rr.push(jr);if(or===Lr||or===Rr){if(0===ir)return nr.push(ir),rr.push(Un);var sr=rr[ir-1];return-1===la.indexOf(sr)?(nr.push(nr[ir-1]),rr.push(sr)):(nr.push(ir),rr.push(Un))}return nr.push(ir),or===Qn?rr.push("strict"===tr?Kr:Kn):or===$n||or===Tn?rr.push(Un):or===Zn?er>=131072&&er<=196605||er>=196608&&er<=262141?rr.push(Kn):rr.push(Un):void rr.push(or)})),[nr,rr,ar]},ha=function isAdjacentWithSpaceIgnored(er,tr,rr,nr){var ar=nr[rr];if(Array.isArray(er)?-1!==er.indexOf(ar):er===ar)for(var ir=rr;ir<=nr.length;){if((lr=nr[++ir])===tr)return!0;if(lr!==Ir)break}if(ar===Ir)for(ir=rr;ir>0;){var or=nr[--ir];if(Array.isArray(er)?-1!==er.indexOf(or):er===or)for(var sr=rr;sr<=nr.length;){var lr;if((lr=nr[++sr])===tr)return!0;if(lr!==Ir)break}if(or!==Ir)break}return!1},pa=function previousNonSpaceClassType(er,tr){for(var rr=er;rr>=0;){var nr=tr[rr];if(nr!==Ir)return nr;rr--}return 0},Aa=function _lineBreakAtIndex(er,tr,rr,nr,ar){if(0===rr[nr])return ta;var ir=nr-1;if(Array.isArray(ar)&&!0===ar[ir])return ta;var or=ir-1,sr=ir+1,lr=tr[ir],cr=or>=0?tr[or]:0,ur=tr[sr];if(lr===Er&&ur===Nr)return ta;if(-1!==ia.indexOf(lr))return ea;if(-1!==ia.indexOf(ur))return ta;if(-1!==oa.indexOf(ur))return ta;if(pa(ir,tr)===Fr)return ra;if(na.get(er[ir])===Rr&&(ur===Kn||ur===Dn||ur===Hn))return ta;if(lr===Tr||ur===Tr)return ta;if(lr===Ur)return ta;if(-1===[Ir,Qr,Dr].indexOf(lr)&&ur===Ur)return ta;if(-1!==[Hr,Gr,Vr,Xr,Zr].indexOf(ur))return ta;if(pa(ir,tr)===qr)return ta;if(ha(Wr,qr,ir,tr))return ta;if(ha([Hr,Gr],Kr,ir,tr))return ta;if(ha(Mr,Mr,ir,tr))return ta;if(lr===Ir)return ra;if(lr===Wr||ur===Wr)return ta;if(ur===jr||lr===jr)return ra;if(-1!==[Qr,Dr,Kr].indexOf(ur)||lr===Or)return ta;if(cr===zn&&-1!==ua.indexOf(lr))return ta;if(lr===Zr&&ur===zn)return ta;if(ur===zr&&-1!==aa.concat(zr,Vr,Yr,Kn,Dn,Hn).indexOf(lr))return ta;if(-1!==aa.indexOf(ur)&&lr===Yr||-1!==aa.indexOf(lr)&&ur===Yr)return ta;if(lr===$r&&-1!==[Kn,Dn,Hn].indexOf(ur)||-1!==[Kn,Dn,Hn].indexOf(lr)&&ur===Jr)return ta;if(-1!==aa.indexOf(lr)&&-1!==sa.indexOf(ur)||-1!==sa.indexOf(lr)&&-1!==aa.indexOf(ur))return ta;if(-1!==[$r,Jr].indexOf(lr)&&(ur===Yr||-1!==[qr,Dr].indexOf(ur)&&tr[sr+1]===Yr)||-1!==[qr,Dr].indexOf(lr)&&ur===Yr||lr===Yr&&-1!==[Yr,Zr,Xr].indexOf(ur))return ta;if(-1!==[Yr,Zr,Xr,Hr,Gr].indexOf(ur))for(var dr=ir;dr>=0;){if((hr=tr[dr])===Yr)return ta;if(-1===[Zr,Xr].indexOf(hr))break;dr--}if(-1!==[$r,Jr].indexOf(ur))for(dr=-1!==[Hr,Gr].indexOf(lr)?or:ir;dr>=0;){var hr;if((hr=tr[dr])===Yr)return ta;if(-1===[Zr,Xr].indexOf(hr))break;dr--}if(Wn===lr&&-1!==[Wn,Xn,Gn,Vn].indexOf(ur)||-1!==[Xn,Gn].indexOf(lr)&&-1!==[Xn,Yn].indexOf(ur)||-1!==[Yn,Vn].indexOf(lr)&&ur===Yn)return ta;if(-1!==ca.indexOf(lr)&&-1!==[zr,Jr].indexOf(ur)||-1!==ca.indexOf(ur)&&lr===$r)return ta;if(-1!==aa.indexOf(lr)&&-1!==aa.indexOf(ur))return ta;if(lr===Xr&&-1!==aa.indexOf(ur))return ta;if(-1!==aa.concat(Yr).indexOf(lr)&&ur===qr||-1!==aa.concat(Yr).indexOf(ur)&&lr===Gr)return ta;if(lr===Jn&&ur===Jn){for(var pr=rr[ir],Ar=1;pr>0&&tr[--pr]===Jn;)Ar++;if(Ar%2!=0)return ta}return lr===Dn&&ur===Hn?ta:ra},fa=function cssFormattedClasses(er,tr){tr||(tr={lineBreak:"normal",wordBreak:"normal"});var rr=da(er,tr.lineBreak),nr=rr[0],ar=rr[1],ir=rr[2];return"break-all"!==tr.wordBreak&&"break-word"!==tr.wordBreak||(ar=ar.map((function(er){return-1!==[Yr,Un,$n].indexOf(er)?Kn:er}))),[nr,ar,"keep-all"===tr.wordBreak?ir.map((function(tr,rr){return tr&&er[rr]>=19968&&er[rr]<=40959})):void 0]},ga=function(){function Break(er,tr,rr,nr){this.codePoints=er,this.required=tr===ea,this.start=rr,this.end=nr}return Break.prototype.slice=function(){return or.apply(void 0,this.codePoints.slice(this.start,this.end))},Break}(),ma=function LineBreaker(er,tr){var rr=ir(er),nr=fa(rr,tr),ar=nr[0],or=nr[1],sr=nr[2],lr=rr.length,cr=0,ur=0;return{next:function next(){if(ur>=lr)return{done:!0,value:null};for(var er=ta;ur<lr&&(er=Aa(rr,or,ar,++ur,sr))===ta;);if(er!==ta||ur===lr){var tr=new ga(rr,er,cr,ur);return cr=ur,{value:tr,done:!1}}return{done:!0,value:null}}}};!function(er){er[er.STRING_TOKEN=0]="STRING_TOKEN",er[er.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",er[er.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",er[er.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",er[er.COMMA_TOKEN=4]="COMMA_TOKEN",er[er.HASH_TOKEN=5]="HASH_TOKEN",er[er.DELIM_TOKEN=6]="DELIM_TOKEN",er[er.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",er[er.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",er[er.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",er[er.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",er[er.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",er[er.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",er[er.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",er[er.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",er[er.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",er[er.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",er[er.NUMBER_TOKEN=17]="NUMBER_TOKEN",er[er.FUNCTION=18]="FUNCTION",er[er.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",er[er.IDENT_TOKEN=20]="IDENT_TOKEN",er[er.COLUMN_TOKEN=21]="COLUMN_TOKEN",er[er.URL_TOKEN=22]="URL_TOKEN",er[er.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",er[er.CDC_TOKEN=24]="CDC_TOKEN",er[er.CDO_TOKEN=25]="CDO_TOKEN",er[er.COLON_TOKEN=26]="COLON_TOKEN",er[er.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",er[er.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",er[er.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",er[er.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",er[er.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",er[er.EOF_TOKEN=32]="EOF_TOKEN"}(ur||(ur={}));var _a=1,va=2,ya=4,ba=8,wa=10,ka=47,xa=92,Sa=9,Ca=32,Ba=34,Ea=61,Na=35,La=36,Pa=37,Ta=39,Fa=40,Ua=41,Ia=95,Ra=45,Ma=33,Qa=60,Oa=62,Da=64,ja=91,Ha=93,Ga=61,Va=123,za=63,Ka=125,qa=124,Wa=126,Xa=128,Ya=65533,Ja=42,$a=43,Za=44,ei=58,ti=59,ri=46,ni=0,ai=8,ii=11,oi=14,si=31,li=127,ci=-1,ui=48,di=97,hi=101,pi=102,Ai=117,fi=122,gi=65,mi=69,_i=70,vi=85,yi=90,bi=function isDigit(er){return er>=ui&&er<=57},wi=function isSurrogateCodePoint(er){return er>=55296&&er<=57343},ki=function isHex(er){return bi(er)||er>=gi&&er<=_i||er>=di&&er<=pi},xi=function isLowerCaseLetter(er){return er>=di&&er<=fi},Si=function isUpperCaseLetter(er){return er>=gi&&er<=yi},Ci=function isLetter(er){return xi(er)||Si(er)},Bi=function isNonASCIICodePoint(er){return er>=Xa},Ei=function isWhiteSpace(er){return er===wa||er===Sa||er===Ca},Ni=function isNameStartCodePoint(er){return Ci(er)||Bi(er)||er===Ia},Li=function isNameCodePoint(er){return Ni(er)||bi(er)||er===Ra},Pi=function isNonPrintableCodePoint(er){return er>=ni&&er<=ai||er===ii||er>=oi&&er<=si||er===li},Ti=function isValidEscape(er,tr){return er===xa&&tr!==wa},Fi=function isIdentifierStart(er,tr,rr){return er===Ra?Ni(tr)||Ti(tr,rr):!!Ni(er)||!(er!==xa||!Ti(er,tr))},Ui=function isNumberStart(er,tr,rr){return er===$a||er===Ra?!!bi(tr)||tr===ri&&bi(rr):bi(er===ri?tr:er)},Ii=function stringToNumber(er){var tr=0,rr=1;er[tr]!==$a&&er[tr]!==Ra||(er[tr]===Ra&&(rr=-1),tr++);for(var nr=[];bi(er[tr]);)nr.push(er[tr++]);var ar=nr.length?parseInt(or.apply(void 0,nr),10):0;er[tr]===ri&&tr++;for(var ir=[];bi(er[tr]);)ir.push(er[tr++]);var sr=ir.length,lr=sr?parseInt(or.apply(void 0,ir),10):0;er[tr]!==mi&&er[tr]!==hi||tr++;var cr=1;er[tr]!==$a&&er[tr]!==Ra||(er[tr]===Ra&&(cr=-1),tr++);for(var ur=[];bi(er[tr]);)ur.push(er[tr++]);var dr=ur.length?parseInt(or.apply(void 0,ur),10):0;return rr*(ar+lr*Math.pow(10,-sr))*Math.pow(10,cr*dr)},Ri={type:ur.LEFT_PARENTHESIS_TOKEN},Mi={type:ur.RIGHT_PARENTHESIS_TOKEN},Qi={type:ur.COMMA_TOKEN},Oi={type:ur.SUFFIX_MATCH_TOKEN},Di={type:ur.PREFIX_MATCH_TOKEN},ji={type:ur.COLUMN_TOKEN},Hi={type:ur.DASH_MATCH_TOKEN},Gi={type:ur.INCLUDE_MATCH_TOKEN},Vi={type:ur.LEFT_CURLY_BRACKET_TOKEN},zi={type:ur.RIGHT_CURLY_BRACKET_TOKEN},Ki={type:ur.SUBSTRING_MATCH_TOKEN},qi={type:ur.BAD_URL_TOKEN},Wi={type:ur.BAD_STRING_TOKEN},Xi={type:ur.CDO_TOKEN},Yi={type:ur.CDC_TOKEN},Ji={type:ur.COLON_TOKEN},$i={type:ur.SEMICOLON_TOKEN},Zi={type:ur.LEFT_SQUARE_BRACKET_TOKEN},eo={type:ur.RIGHT_SQUARE_BRACKET_TOKEN},to={type:ur.WHITESPACE_TOKEN},ro={type:ur.EOF_TOKEN},no=function(){function Tokenizer(){this._value=[]}return Tokenizer.prototype.write=function(er){this._value=this._value.concat(ir(er))},Tokenizer.prototype.read=function(){for(var er=[],tr=this.consumeToken();tr!==ro;)er.push(tr),tr=this.consumeToken();return er},Tokenizer.prototype.consumeToken=function(){var er=this.consumeCodePoint();switch(er){case Ba:return this.consumeStringToken(Ba);case Na:var tr=this.peekCodePoint(0),rr=this.peekCodePoint(1),nr=this.peekCodePoint(2);if(Li(tr)||Ti(rr,nr)){var ar=Fi(tr,rr,nr)?va:_a,ir=this.consumeName();return{type:ur.HASH_TOKEN,value:ir,flags:ar}}break;case La:if(this.peekCodePoint(0)===Ea)return this.consumeCodePoint(),Oi;break;case Ta:return this.consumeStringToken(Ta);case Fa:return Ri;case Ua:return Mi;case Ja:if(this.peekCodePoint(0)===Ea)return this.consumeCodePoint(),Ki;break;case $a:if(Ui(er,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(er),this.consumeNumericToken();break;case Za:return Qi;case Ra:var sr=er,lr=this.peekCodePoint(0),cr=this.peekCodePoint(1);if(Ui(sr,lr,cr))return this.reconsumeCodePoint(er),this.consumeNumericToken();if(Fi(sr,lr,cr))return this.reconsumeCodePoint(er),this.consumeIdentLikeToken();if(lr===Ra&&cr===Oa)return this.consumeCodePoint(),this.consumeCodePoint(),Yi;break;case ri:if(Ui(er,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(er),this.consumeNumericToken();break;case ka:if(this.peekCodePoint(0)===Ja)for(this.consumeCodePoint();;){var dr=this.consumeCodePoint();if(dr===Ja&&(dr=this.consumeCodePoint())===ka)return this.consumeToken();if(dr===ci)return this.consumeToken()}break;case ei:return Ji;case ti:return $i;case Qa:if(this.peekCodePoint(0)===Ma&&this.peekCodePoint(1)===Ra&&this.peekCodePoint(2)===Ra)return this.consumeCodePoint(),this.consumeCodePoint(),Xi;break;case Da:var hr=this.peekCodePoint(0),pr=this.peekCodePoint(1),Ar=this.peekCodePoint(2);if(Fi(hr,pr,Ar))return ir=this.consumeName(),{type:ur.AT_KEYWORD_TOKEN,value:ir};break;case ja:return Zi;case xa:if(Ti(er,this.peekCodePoint(0)))return this.reconsumeCodePoint(er),this.consumeIdentLikeToken();break;case Ha:return eo;case Ga:if(this.peekCodePoint(0)===Ea)return this.consumeCodePoint(),Di;break;case Va:return Vi;case Ka:return zi;case Ai:case vi:var fr=this.peekCodePoint(0),gr=this.peekCodePoint(1);return fr!==$a||!ki(gr)&&gr!==za||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(er),this.consumeIdentLikeToken();case qa:if(this.peekCodePoint(0)===Ea)return this.consumeCodePoint(),Hi;if(this.peekCodePoint(0)===qa)return this.consumeCodePoint(),ji;break;case Wa:if(this.peekCodePoint(0)===Ea)return this.consumeCodePoint(),Gi;break;case ci:return ro}return Ei(er)?(this.consumeWhiteSpace(),to):bi(er)?(this.reconsumeCodePoint(er),this.consumeNumericToken()):Ni(er)?(this.reconsumeCodePoint(er),this.consumeIdentLikeToken()):{type:ur.DELIM_TOKEN,value:or(er)}},Tokenizer.prototype.consumeCodePoint=function(){var er=this._value.shift();return void 0===er?-1:er},Tokenizer.prototype.reconsumeCodePoint=function(er){this._value.unshift(er)},Tokenizer.prototype.peekCodePoint=function(er){return er>=this._value.length?-1:this._value[er]},Tokenizer.prototype.consumeUnicodeRangeToken=function(){for(var er=[],tr=this.consumeCodePoint();ki(tr)&&er.length<6;)er.push(tr),tr=this.consumeCodePoint();for(var rr=!1;tr===za&&er.length<6;)er.push(tr),tr=this.consumeCodePoint(),rr=!0;if(rr){var nr=parseInt(or.apply(void 0,er.map((function(er){return er===za?ui:er}))),16),ar=parseInt(or.apply(void 0,er.map((function(er){return er===za?_i:er}))),16);return{type:ur.UNICODE_RANGE_TOKEN,start:nr,end:ar}}var ir=parseInt(or.apply(void 0,er),16);if(this.peekCodePoint(0)===Ra&&ki(this.peekCodePoint(1))){this.consumeCodePoint(),tr=this.consumeCodePoint();for(var sr=[];ki(tr)&&sr.length<6;)sr.push(tr),tr=this.consumeCodePoint();return ar=parseInt(or.apply(void 0,sr),16),{type:ur.UNICODE_RANGE_TOKEN,start:ir,end:ar}}return{type:ur.UNICODE_RANGE_TOKEN,start:ir,end:ir}},Tokenizer.prototype.consumeIdentLikeToken=function(){var er=this.consumeName();return"url"===er.toLowerCase()&&this.peekCodePoint(0)===Fa?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Fa?(this.consumeCodePoint(),{type:ur.FUNCTION_TOKEN,value:er}):{type:ur.IDENT_TOKEN,value:er}},Tokenizer.prototype.consumeUrlToken=function(){var er=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ci)return{type:ur.URL_TOKEN,value:""};var tr=this.peekCodePoint(0);if(tr===Ta||tr===Ba){var rr=this.consumeStringToken(this.consumeCodePoint());return rr.type===ur.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ci||this.peekCodePoint(0)===Ua)?(this.consumeCodePoint(),{type:ur.URL_TOKEN,value:rr.value}):(this.consumeBadUrlRemnants(),qi)}for(;;){var nr=this.consumeCodePoint();if(nr===ci||nr===Ua)return{type:ur.URL_TOKEN,value:or.apply(void 0,er)};if(Ei(nr))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ci||this.peekCodePoint(0)===Ua?(this.consumeCodePoint(),{type:ur.URL_TOKEN,value:or.apply(void 0,er)}):(this.consumeBadUrlRemnants(),qi);if(nr===Ba||nr===Ta||nr===Fa||Pi(nr))return this.consumeBadUrlRemnants(),qi;if(nr===xa){if(!Ti(nr,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),qi;er.push(this.consumeEscapedCodePoint())}else er.push(nr)}},Tokenizer.prototype.consumeWhiteSpace=function(){for(;Ei(this.peekCodePoint(0));)this.consumeCodePoint()},Tokenizer.prototype.consumeBadUrlRemnants=function(){for(;;){var er=this.consumeCodePoint();if(er===Ua||er===ci)return;Ti(er,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Tokenizer.prototype.consumeStringSlice=function(er){for(var tr=6e4,rr="";er>0;){var nr=Math.min(tr,er);rr+=or.apply(void 0,this._value.splice(0,nr)),er-=nr}return this._value.shift(),rr},Tokenizer.prototype.consumeStringToken=function(er){for(var tr="",rr=0;;){var nr=this._value[rr];if(nr===ci||void 0===nr||nr===er)return tr+=this.consumeStringSlice(rr),{type:ur.STRING_TOKEN,value:tr};if(nr===wa)return this._value.splice(0,rr),Wi;if(nr===xa){var ar=this._value[rr+1];ar!==ci&&void 0!==ar&&(ar===wa?(tr+=this.consumeStringSlice(rr),rr=-1,this._value.shift()):Ti(nr,ar)&&(tr+=this.consumeStringSlice(rr),tr+=or(this.consumeEscapedCodePoint()),rr=-1))}rr++}},Tokenizer.prototype.consumeNumber=function(){var er=[],tr=ya,rr=this.peekCodePoint(0);for(rr!==$a&&rr!==Ra||er.push(this.consumeCodePoint());bi(this.peekCodePoint(0));)er.push(this.consumeCodePoint());rr=this.peekCodePoint(0);var nr=this.peekCodePoint(1);if(rr===ri&&bi(nr))for(er.push(this.consumeCodePoint(),this.consumeCodePoint()),tr=ba;bi(this.peekCodePoint(0));)er.push(this.consumeCodePoint());rr=this.peekCodePoint(0),nr=this.peekCodePoint(1);var ar=this.peekCodePoint(2);if((rr===mi||rr===hi)&&((nr===$a||nr===Ra)&&bi(ar)||bi(nr)))for(er.push(this.consumeCodePoint(),this.consumeCodePoint()),tr=ba;bi(this.peekCodePoint(0));)er.push(this.consumeCodePoint());return[Ii(er),tr]},Tokenizer.prototype.consumeNumericToken=function(){var er=this.consumeNumber(),tr=er[0],rr=er[1],nr=this.peekCodePoint(0),ar=this.peekCodePoint(1),ir=this.peekCodePoint(2);if(Fi(nr,ar,ir)){var or=this.consumeName();return{type:ur.DIMENSION_TOKEN,number:tr,flags:rr,unit:or}}return nr===Pa?(this.consumeCodePoint(),{type:ur.PERCENTAGE_TOKEN,number:tr,flags:rr}):{type:ur.NUMBER_TOKEN,number:tr,flags:rr}},Tokenizer.prototype.consumeEscapedCodePoint=function(){var er=this.consumeCodePoint();if(ki(er)){for(var tr=or(er);ki(this.peekCodePoint(0))&&tr.length<6;)tr+=or(this.consumeCodePoint());Ei(this.peekCodePoint(0))&&this.consumeCodePoint();var rr=parseInt(tr,16);return 0===rr||wi(rr)||rr>1114111?Ya:rr}return er===ci?Ya:er},Tokenizer.prototype.consumeName=function(){for(var er="";;){var tr=this.consumeCodePoint();if(Li(tr))er+=or(tr);else{if(!Ti(tr,this.peekCodePoint(0)))return this.reconsumeCodePoint(tr),er;er+=or(this.consumeEscapedCodePoint())}}},Tokenizer}(),ao=function(){function Parser(er){this._tokens=er}return Parser.create=function(er){var tr=new no;return tr.write(er),new Parser(tr.read())},Parser.parseValue=function(er){return Parser.create(er).parseComponentValue()},Parser.parseValues=function(er){return Parser.create(er).parseComponentValues()},Parser.prototype.parseComponentValue=function(){for(var er=this.consumeToken();er.type===ur.WHITESPACE_TOKEN;)er=this.consumeToken();if(er.type===ur.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(er);var tr=this.consumeComponentValue();do{er=this.consumeToken()}while(er.type===ur.WHITESPACE_TOKEN);if(er.type===ur.EOF_TOKEN)return tr;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Parser.prototype.parseComponentValues=function(){for(var er=[];;){var tr=this.consumeComponentValue();if(tr.type===ur.EOF_TOKEN)return er;er.push(tr),er.push()}},Parser.prototype.consumeComponentValue=function(){var er=this.consumeToken();switch(er.type){case ur.LEFT_CURLY_BRACKET_TOKEN:case ur.LEFT_SQUARE_BRACKET_TOKEN:case ur.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(er.type);case ur.FUNCTION_TOKEN:return this.consumeFunction(er)}return er},Parser.prototype.consumeSimpleBlock=function(er){for(var tr={type:er,values:[]},rr=this.consumeToken();;){if(rr.type===ur.EOF_TOKEN||Ao(rr,er))return tr;this.reconsumeToken(rr),tr.values.push(this.consumeComponentValue()),rr=this.consumeToken()}},Parser.prototype.consumeFunction=function(er){for(var tr={name:er.value,values:[],type:ur.FUNCTION};;){var rr=this.consumeToken();if(rr.type===ur.EOF_TOKEN||rr.type===ur.RIGHT_PARENTHESIS_TOKEN)return tr;this.reconsumeToken(rr),tr.values.push(this.consumeComponentValue())}},Parser.prototype.consumeToken=function(){var er=this._tokens.shift();return void 0===er?ro:er},Parser.prototype.reconsumeToken=function(er){this._tokens.unshift(er)},Parser}(),io=function isDimensionToken(er){return er.type===ur.DIMENSION_TOKEN},oo=function isNumberToken(er){return er.type===ur.NUMBER_TOKEN},so=function isIdentToken(er){return er.type===ur.IDENT_TOKEN},lo=function isStringToken(er){return er.type===ur.STRING_TOKEN},co=function isIdentWithValue(er,tr){return so(er)&&er.value===tr},uo=function nonWhiteSpace(er){return er.type!==ur.WHITESPACE_TOKEN},ho=function nonFunctionArgSeparator(er){return er.type!==ur.WHITESPACE_TOKEN&&er.type!==ur.COMMA_TOKEN},po=function parseFunctionArgs(er){var tr=[],rr=[];return er.forEach((function(er){if(er.type===ur.COMMA_TOKEN){if(0===rr.length)throw new Error("Error parsing function args, zero tokens for arg");return tr.push(rr),void(rr=[])}er.type!==ur.WHITESPACE_TOKEN&&rr.push(er)})),rr.length&&tr.push(rr),tr},Ao=function isEndingTokenFor(er,tr){return tr===ur.LEFT_CURLY_BRACKET_TOKEN&&er.type===ur.RIGHT_CURLY_BRACKET_TOKEN||tr===ur.LEFT_SQUARE_BRACKET_TOKEN&&er.type===ur.RIGHT_SQUARE_BRACKET_TOKEN||tr===ur.LEFT_PARENTHESIS_TOKEN&&er.type===ur.RIGHT_PARENTHESIS_TOKEN},fo=function isLength(er){return er.type===ur.NUMBER_TOKEN||er.type===ur.DIMENSION_TOKEN},go=function isLengthPercentage(er){return er.type===ur.PERCENTAGE_TOKEN||fo(er)},mo=function parseLengthPercentageTuple(er){return er.length>1?[er[0],er[1]]:[er[0]]},_o={type:ur.NUMBER_TOKEN,number:0,flags:ya},vo={type:ur.PERCENTAGE_TOKEN,number:50,flags:ya},yo={type:ur.PERCENTAGE_TOKEN,number:100,flags:ya},bo=function getAbsoluteValueForTuple(er,tr,rr){var nr=er[0],ar=er[1];return[wo(nr,tr),wo(void 0!==ar?ar:nr,rr)]},wo=function getAbsoluteValue(er,tr){if(er.type===ur.PERCENTAGE_TOKEN)return er.number/100*tr;if(io(er))switch(er.unit){case"rem":case"em":return 16*er.number;case"px":default:return er.number}return er.number},ko="deg",xo="grad",So="rad",Co="turn",Bo={name:"angle",parse:function parse(er){if(er.type===ur.DIMENSION_TOKEN)switch(er.unit){case ko:return Math.PI*er.number/180;case xo:return Math.PI/200*er.number;case So:return er.number;case Co:return 2*Math.PI*er.number}throw new Error("Unsupported angle type")}},Eo=function isAngle(er){return er.type===ur.DIMENSION_TOKEN&&(er.unit===ko||er.unit===xo||er.unit===So||er.unit===Co)},No=function parseNamedSide(er){switch(er.filter(so).map((function(er){return er.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[_o,_o];case"to top":case"bottom":return Lo(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[_o,yo];case"to right":case"left":return Lo(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[yo,yo];case"to bottom":case"top":return Lo(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[yo,_o];case"to left":case"right":return Lo(270)}return 0},Lo=function deg(er){return Math.PI*er/180},Po={name:"color",parse:function parse(er){if(er.type===ur.FUNCTION){var tr=Do[er.name];if(void 0===tr)throw new Error('Attempting to parse an unsupported color function "'+er.name+'"');return tr(er.values)}if(er.type===ur.HASH_TOKEN){if(3===er.value.length){var rr=er.value.substring(0,1),nr=er.value.substring(1,2),ar=er.value.substring(2,3);return Uo(parseInt(rr+rr,16),parseInt(nr+nr,16),parseInt(ar+ar,16),1)}if(4===er.value.length){rr=er.value.substring(0,1),nr=er.value.substring(1,2),ar=er.value.substring(2,3);var ir=er.value.substring(3,4);return Uo(parseInt(rr+rr,16),parseInt(nr+nr,16),parseInt(ar+ar,16),parseInt(ir+ir,16)/255)}if(6===er.value.length)return rr=er.value.substring(0,2),nr=er.value.substring(2,4),ar=er.value.substring(4,6),Uo(parseInt(rr,16),parseInt(nr,16),parseInt(ar,16),1);if(8===er.value.length)return rr=er.value.substring(0,2),nr=er.value.substring(2,4),ar=er.value.substring(4,6),ir=er.value.substring(6,8),Uo(parseInt(rr,16),parseInt(nr,16),parseInt(ar,16),parseInt(ir,16)/255)}if(er.type===ur.IDENT_TOKEN){var or=jo[er.value.toUpperCase()];if(void 0!==or)return or}return jo.TRANSPARENT}},To=function isTransparent(er){return 0==(255&er)},Fo=function asString(er){var tr=255&er,rr=255&er>>8,nr=255&er>>16,ar=255&er>>24;return tr<255?"rgba("+ar+","+nr+","+rr+","+tr/255+")":"rgb("+ar+","+nr+","+rr+")"},Uo=function pack(er,tr,rr,nr){return(er<<24|tr<<16|rr<<8|Math.round(255*nr)<<0)>>>0},Io=function getTokenColorValue(er,tr){if(er.type===ur.NUMBER_TOKEN)return er.number;if(er.type===ur.PERCENTAGE_TOKEN){var rr=3===tr?1:255;return 3===tr?er.number/100*rr:Math.round(er.number/100*rr)}return 0},Ro=function rgb(er){var tr=er.filter(ho);if(3===tr.length){var rr=tr.map(Io),nr=rr[0],ar=rr[1],ir=rr[2];return Uo(nr,ar,ir,1)}if(4===tr.length){var or=tr.map(Io),sr=(nr=or[0],ar=or[1],ir=or[2],or[3]);return Uo(nr,ar,ir,sr)}return 0};function hue2rgb(er,tr,rr){return rr<0&&(rr+=1),rr>=1&&(rr-=1),rr<1/6?(tr-er)*rr*6+er:rr<.5?tr:rr<2/3?6*(tr-er)*(2/3-rr)+er:er}var Mo,Qo,Oo=function hsl(er){var tr=er.filter(ho),rr=tr[0],nr=tr[1],ar=tr[2],ir=tr[3],or=(rr.type===ur.NUMBER_TOKEN?Lo(rr.number):Bo.parse(rr))/(2*Math.PI),sr=go(nr)?nr.number/100:0,lr=go(ar)?ar.number/100:0,cr=void 0!==ir&&go(ir)?wo(ir,1):1;if(0===sr)return Uo(255*lr,255*lr,255*lr,1);var dr=lr<=.5?lr*(sr+1):lr+sr-lr*sr,hr=2*lr-dr,pr=hue2rgb(hr,dr,or+1/3),Ar=hue2rgb(hr,dr,or),fr=hue2rgb(hr,dr,or-1/3);return Uo(255*pr,255*Ar,255*fr,cr)},Do={hsl:Oo,hsla:Oo,rgb:Ro,rgba:Ro},jo={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(er){er[er.VALUE=0]="VALUE",er[er.LIST=1]="LIST",er[er.IDENT_VALUE=2]="IDENT_VALUE",er[er.TYPE_VALUE=3]="TYPE_VALUE",er[er.TOKEN_VALUE=4]="TOKEN_VALUE"})(Mo||(Mo={})),function(er){er[er.BORDER_BOX=0]="BORDER_BOX",er[er.PADDING_BOX=1]="PADDING_BOX",er[er.CONTENT_BOX=2]="CONTENT_BOX"}(Qo||(Qo={}));var Ho,Go={name:"background-clip",initialValue:"border-box",prefix:!1,type:Mo.LIST,parse:function parse(er){return er.map((function(er){if(so(er))switch(er.value){case"padding-box":return Qo.PADDING_BOX;case"content-box":return Qo.CONTENT_BOX}return Qo.BORDER_BOX}))}},Vo={name:"background-color",initialValue:"transparent",prefix:!1,type:Mo.TYPE_VALUE,format:"color"},zo=function parseColorStop(er){var tr=Po.parse(er[0]),rr=er[1];return rr&&go(rr)?{color:tr,stop:rr}:{color:tr,stop:null}},Ko=function processColorStops(er,tr){var rr=er[0],nr=er[er.length-1];null===rr.stop&&(rr.stop=_o),null===nr.stop&&(nr.stop=yo);for(var ar=[],ir=0,or=0;or<er.length;or++){var sr=er[or].stop;if(null!==sr){var lr=wo(sr,tr);lr>ir?ar.push(lr):ar.push(ir),ir=lr}else ar.push(null)}var cr=null;for(or=0;or<ar.length;or++){var ur=ar[or];if(null===ur)null===cr&&(cr=or);else if(null!==cr){for(var dr=or-cr,hr=(ur-ar[cr-1])/(dr+1),pr=1;pr<=dr;pr++)ar[cr+pr-1]=hr*pr;cr=null}}return er.map((function(er,rr){return{color:er.color,stop:Math.max(Math.min(1,ar[rr]/tr),0)}}))},qo=function getAngleFromCorner(er,tr,rr){var nr=tr/2,ar=rr/2,ir=wo(er[0],tr)-nr,or=ar-wo(er[1],rr);return(Math.atan2(or,ir)+2*Math.PI)%(2*Math.PI)},Wo=function calculateGradientDirection(er,tr,rr){var nr="number"==typeof er?er:qo(er,tr,rr),ar=Math.abs(tr*Math.sin(nr))+Math.abs(rr*Math.cos(nr)),ir=tr/2,or=rr/2,sr=ar/2,lr=Math.sin(nr-Math.PI/2)*sr,cr=Math.cos(nr-Math.PI/2)*sr;return[ar,ir-cr,ir+cr,or-lr,or+lr]},Xo=function distance(er,tr){return Math.sqrt(er*er+tr*tr)},Yo=function findCorner(er,tr,rr,nr,ar){return[[0,0],[0,tr],[er,0],[er,tr]].reduce((function(er,tr){var ir=tr[0],or=tr[1],sr=Xo(rr-ir,nr-or);return(ar?sr<er.optimumDistance:sr>er.optimumDistance)?{optimumCorner:tr,optimumDistance:sr}:er}),{optimumDistance:ar?1/0:-1/0,optimumCorner:null}).optimumCorner},Jo=function calculateRadius(er,tr,rr,nr,ar){var ir=0,or=0;switch(er.size){case Fs.CLOSEST_SIDE:er.shape===Ts.CIRCLE?ir=or=Math.min(Math.abs(tr),Math.abs(tr-nr),Math.abs(rr),Math.abs(rr-ar)):er.shape===Ts.ELLIPSE&&(ir=Math.min(Math.abs(tr),Math.abs(tr-nr)),or=Math.min(Math.abs(rr),Math.abs(rr-ar)));break;case Fs.CLOSEST_CORNER:if(er.shape===Ts.CIRCLE)ir=or=Math.min(Xo(tr,rr),Xo(tr,rr-ar),Xo(tr-nr,rr),Xo(tr-nr,rr-ar));else if(er.shape===Ts.ELLIPSE){var sr=Math.min(Math.abs(rr),Math.abs(rr-ar))/Math.min(Math.abs(tr),Math.abs(tr-nr)),lr=Yo(nr,ar,tr,rr,!0),cr=lr[0],ur=lr[1];or=sr*(ir=Xo(cr-tr,(ur-rr)/sr))}break;case Fs.FARTHEST_SIDE:er.shape===Ts.CIRCLE?ir=or=Math.max(Math.abs(tr),Math.abs(tr-nr),Math.abs(rr),Math.abs(rr-ar)):er.shape===Ts.ELLIPSE&&(ir=Math.max(Math.abs(tr),Math.abs(tr-nr)),or=Math.max(Math.abs(rr),Math.abs(rr-ar)));break;case Fs.FARTHEST_CORNER:if(er.shape===Ts.CIRCLE)ir=or=Math.max(Xo(tr,rr),Xo(tr,rr-ar),Xo(tr-nr,rr),Xo(tr-nr,rr-ar));else if(er.shape===Ts.ELLIPSE){sr=Math.max(Math.abs(rr),Math.abs(rr-ar))/Math.max(Math.abs(tr),Math.abs(tr-nr));var dr=Yo(nr,ar,tr,rr,!1);cr=dr[0],ur=dr[1],or=sr*(ir=Xo(cr-tr,(ur-rr)/sr))}}return Array.isArray(er.size)&&(ir=wo(er.size[0],nr),or=2===er.size.length?wo(er.size[1],ar):ir),[ir,or]},$o=function linearGradient(er){var tr=Lo(180),rr=[];return po(er).forEach((function(er,nr){if(0===nr){var ar=er[0];if(ar.type===ur.IDENT_TOKEN&&"to"===ar.value)return void(tr=No(er));if(Eo(ar))return void(tr=Bo.parse(ar))}var ir=zo(er);rr.push(ir)})),{angle:tr,stops:rr,type:Ho.LINEAR_GRADIENT}},Zo=function prefixLinearGradient(er){var tr=Lo(180),rr=[];return po(er).forEach((function(er,nr){if(0===nr){var ar=er[0];if(ar.type===ur.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(ar.value))return void(tr=No(er));if(Eo(ar))return void(tr=(Bo.parse(ar)+Lo(270))%Lo(360))}var ir=zo(er);rr.push(ir)})),{angle:tr,stops:rr,type:Ho.LINEAR_GRADIENT}},es=function testRangeBounds(er){var tr=123;if(er.createRange){var rr=er.createRange();if(rr.getBoundingClientRect){var nr=er.createElement("boundtest");nr.style.height=tr+"px",nr.style.display="block",er.body.appendChild(nr),rr.selectNode(nr);var ar=rr.getBoundingClientRect(),ir=Math.round(ar.height);if(er.body.removeChild(nr),ir===tr)return!0}}return!1},ts=function testCORS(){return void 0!==(new Image).crossOrigin},rs=function testResponseType(){return"string"==typeof(new XMLHttpRequest).responseType},ns=function testSVG(er){var tr=new Image,rr=er.createElement("canvas"),nr=rr.getContext("2d");if(!nr)return!1;tr.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{nr.drawImage(tr,0,0),rr.toDataURL()}catch(er){return!1}return!0},as=function isGreenPixel(er){return 0===er[0]&&255===er[1]&&0===er[2]&&255===er[3]},os=function testForeignObject(er){var tr=er.createElement("canvas"),rr=100;tr.width=rr,tr.height=rr;var nr=tr.getContext("2d");if(!nr)return Promise.reject(!1);nr.fillStyle="rgb(0, 255, 0)",nr.fillRect(0,0,rr,rr);var ar=new Image,ir=tr.toDataURL();ar.src=ir;var or=ss(rr,rr,0,0,ar);return nr.fillStyle="red",nr.fillRect(0,0,rr,rr),ls(or).then((function(tr){nr.drawImage(tr,0,0);var ar=nr.getImageData(0,0,rr,rr).data;nr.fillStyle="red",nr.fillRect(0,0,rr,rr);var or=er.createElement("div");return or.style.backgroundImage="url("+ir+")",or.style.height=rr+"px",as(ar)?ls(ss(rr,rr,0,0,or)):Promise.reject(!1)})).then((function(er){return nr.drawImage(er,0,0),as(nr.getImageData(0,0,rr,rr).data)})).catch((function(){return!1}))},ss=function createForeignObjectSVG(er,tr,rr,nr,ar){var ir="http://www.w3.org/2000/svg",or=document.createElementNS(ir,"svg"),sr=document.createElementNS(ir,"foreignObject");return or.setAttributeNS(null,"width",er.toString()),or.setAttributeNS(null,"height",tr.toString()),sr.setAttributeNS(null,"width","100%"),sr.setAttributeNS(null,"height","100%"),sr.setAttributeNS(null,"x",rr.toString()),sr.setAttributeNS(null,"y",nr.toString()),sr.setAttributeNS(null,"externalResourcesRequired","true"),or.appendChild(sr),sr.appendChild(ar),or},ls=function loadSerializedSVG(er){return new Promise((function(tr,rr){var nr=new Image;nr.onload=function(){return tr(nr)},nr.onerror=rr,nr.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(er))}))},cs={get SUPPORT_RANGE_BOUNDS(){var er=es(document);return Object.defineProperty(cs,"SUPPORT_RANGE_BOUNDS",{value:er}),er},get SUPPORT_SVG_DRAWING(){var er=ns(document);return Object.defineProperty(cs,"SUPPORT_SVG_DRAWING",{value:er}),er},get SUPPORT_FOREIGNOBJECT_DRAWING(){var er="function"==typeof Array.from&&"function"==typeof window.fetch?os(document):Promise.resolve(!1);return Object.defineProperty(cs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:er}),er},get SUPPORT_CORS_IMAGES(){var er=ts();return Object.defineProperty(cs,"SUPPORT_CORS_IMAGES",{value:er}),er},get SUPPORT_RESPONSE_TYPE(){var er=rs();return Object.defineProperty(cs,"SUPPORT_RESPONSE_TYPE",{value:er}),er},get SUPPORT_CORS_XHR(){var er="withCredentials"in new XMLHttpRequest;return Object.defineProperty(cs,"SUPPORT_CORS_XHR",{value:er}),er}},us=function(){function Logger(er){var tr=er.id,rr=er.enabled;this.id=tr,this.enabled=rr,this.start=Date.now()}return Logger.prototype.debug=function(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(er)):this.info.apply(this,er))},Logger.prototype.getTime=function(){return Date.now()-this.start},Logger.create=function(er){Logger.instances[er.id]=new Logger(er)},Logger.destroy=function(er){delete Logger.instances[er]},Logger.getInstance=function(er){var tr=Logger.instances[er];if(void 0===tr)throw new Error("No logger instance found with id "+er);return tr},Logger.prototype.info=function(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(er))},Logger.prototype.error=function(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(er)):this.info.apply(this,er))},Logger.instances={},Logger}(),ds=function(){function CacheStorage(){}return CacheStorage.create=function(er,tr){return CacheStorage._caches[er]=new hs(er,tr)},CacheStorage.destroy=function(er){delete CacheStorage._caches[er]},CacheStorage.open=function(er){var tr=CacheStorage._caches[er];if(void 0!==tr)return tr;throw new Error('Cache with key "'+er+'" not found')},CacheStorage.getOrigin=function(er){var tr=CacheStorage._link;return tr?(tr.href=er,tr.href=tr.href,tr.protocol+tr.hostname+tr.port):"about:blank"},CacheStorage.isSameOrigin=function(er){return CacheStorage.getOrigin(er)===CacheStorage._origin},CacheStorage.setContext=function(er){CacheStorage._link=er.document.createElement("a"),CacheStorage._origin=CacheStorage.getOrigin(er.location.href)},CacheStorage.getInstance=function(){var er=CacheStorage._current;if(null===er)throw new Error("No cache instance attached");return er},CacheStorage.attachInstance=function(er){CacheStorage._current=er},CacheStorage.detachInstance=function(){CacheStorage._current=null},CacheStorage._caches={},CacheStorage._origin="about:blank",CacheStorage._current=null,CacheStorage}(),hs=function(){function Cache(er,tr){this.id=er,this._options=tr,this._cache={}}return Cache.prototype.addImage=function(er){var tr=Promise.resolve();return this.has(er)?tr:vs(er)||gs(er)?(this._cache[er]=this.loadImage(er),tr):tr},Cache.prototype.match=function(er){return this._cache[er]},Cache.prototype.loadImage=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir=this;return __generator(this,(function(or){switch(or.label){case 0:return tr=ds.isSameOrigin(er),rr=!ms(er)&&!0===this._options.useCORS&&cs.SUPPORT_CORS_IMAGES&&!tr,nr=!ms(er)&&!tr&&"string"==typeof this._options.proxy&&cs.SUPPORT_CORS_XHR&&!rr,tr||!1!==this._options.allowTaint||ms(er)||nr||rr?(ar=er,nr?[4,this.proxy(ar)]:[3,2]):[2];case 1:ar=or.sent(),or.label=2;case 2:return us.getInstance(this.id).debug("Added image "+er.substring(0,256)),[4,new Promise((function(er,tr){var nr=new Image;nr.onload=function(){return er(nr)},nr.onerror=tr,(_s(ar)||rr)&&(nr.crossOrigin="anonymous"),nr.src=ar,!0===nr.complete&&setTimeout((function(){return er(nr)}),500),ir._options.imageTimeout>0&&setTimeout((function(){return tr("Timed out ("+ir._options.imageTimeout+"ms) loading image")}),ir._options.imageTimeout)}))];case 3:return[2,or.sent()]}}))}))},Cache.prototype.has=function(er){return void 0!==this._cache[er]},Cache.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Cache.prototype.proxy=function(er){var tr=this,rr=this._options.proxy;if(!rr)throw new Error("No proxy defined");var nr=er.substring(0,256);return new Promise((function(ar,ir){var or=cs.SUPPORT_RESPONSE_TYPE?"blob":"text",sr=new XMLHttpRequest;if(sr.onload=function(){if(200===sr.status)if("text"===or)ar(sr.response);else{var er=new FileReader;er.addEventListener("load",(function(){return ar(er.result)}),!1),er.addEventListener("error",(function(er){return ir(er)}),!1),er.readAsDataURL(sr.response)}else ir("Failed to proxy resource "+nr+" with status code "+sr.status)},sr.onerror=ir,sr.open("GET",rr+"?url="+encodeURIComponent(er)+"&responseType="+or),"text"!==or&&sr instanceof XMLHttpRequest&&(sr.responseType=or),tr._options.imageTimeout){var lr=tr._options.imageTimeout;sr.timeout=lr,sr.ontimeout=function(){return ir("Timed out ("+lr+"ms) proxying "+nr)}}sr.send()}))},Cache}(),ps=/^data:image\/svg\+xml/i,As=/^data:image\/.*;base64,/i,fs=/^data:image\/.*/i,gs=function isRenderable(er){return cs.SUPPORT_SVG_DRAWING||!ys(er)},ms=function isInlineImage(er){return fs.test(er)},_s=function isInlineBase64Image(er){return As.test(er)},vs=function isBlobImage(er){return"blob"===er.substr(0,4)},ys=function isSVG(er){return"svg"===er.substr(-3).toLowerCase()||ps.test(er)},bs=function webkitGradient(er){var tr=Lo(180),rr=[],nr=Ho.LINEAR_GRADIENT,ar=Ts.CIRCLE,ir=Fs.FARTHEST_CORNER,or=[];return po(er).forEach((function(er,tr){var ar=er[0];if(0===tr){if(so(ar)&&"linear"===ar.value)return void(nr=Ho.LINEAR_GRADIENT);if(so(ar)&&"radial"===ar.value)return void(nr=Ho.RADIAL_GRADIENT)}if(ar.type===ur.FUNCTION)if("from"===ar.name){var ir=Po.parse(ar.values[0]);rr.push({stop:_o,color:ir})}else if("to"===ar.name)ir=Po.parse(ar.values[0]),rr.push({stop:yo,color:ir});else if("color-stop"===ar.name){var or=ar.values.filter(ho);if(2===or.length){ir=Po.parse(or[1]);var sr=or[0];oo(sr)&&rr.push({stop:{type:ur.PERCENTAGE_TOKEN,number:100*sr.number,flags:sr.flags},color:ir})}}})),nr===Ho.LINEAR_GRADIENT?{angle:(tr+Lo(180))%Lo(360),stops:rr,type:nr}:{size:ir,shape:ar,stops:rr,position:or,type:nr}},ws="closest-side",ks="farthest-side",xs="closest-corner",Ss="farthest-corner",Cs="circle",Bs="ellipse",Es="cover",Ns="contain",Ls=function radialGradient(er){var tr=Ts.CIRCLE,rr=Fs.FARTHEST_CORNER,nr=[],ar=[];return po(er).forEach((function(er,ir){var or=!0;if(0===ir){var sr=!1;or=er.reduce((function(er,nr){if(sr)if(so(nr))switch(nr.value){case"center":return ar.push(vo),er;case"top":case"left":return ar.push(_o),er;case"right":case"bottom":return ar.push(yo),er}else(go(nr)||fo(nr))&&ar.push(nr);else if(so(nr))switch(nr.value){case Cs:return tr=Ts.CIRCLE,!1;case Bs:return tr=Ts.ELLIPSE,!1;case"at":return sr=!0,!1;case ws:return rr=Fs.CLOSEST_SIDE,!1;case Es:case ks:return rr=Fs.FARTHEST_SIDE,!1;case Ns:case xs:return rr=Fs.CLOSEST_CORNER,!1;case Ss:return rr=Fs.FARTHEST_CORNER,!1}else if(fo(nr)||go(nr))return Array.isArray(rr)||(rr=[]),rr.push(nr),!1;return er}),or)}if(or){var lr=zo(er);nr.push(lr)}})),{size:rr,shape:tr,stops:nr,position:ar,type:Ho.RADIAL_GRADIENT}},Ps=function prefixRadialGradient(er){var tr=Ts.CIRCLE,rr=Fs.FARTHEST_CORNER,nr=[],ar=[];return po(er).forEach((function(er,ir){var or=!0;if(0===ir?or=er.reduce((function(er,tr){if(so(tr))switch(tr.value){case"center":return ar.push(vo),!1;case"top":case"left":return ar.push(_o),!1;case"right":case"bottom":return ar.push(yo),!1}else if(go(tr)||fo(tr))return ar.push(tr),!1;return er}),or):1===ir&&(or=er.reduce((function(er,nr){if(so(nr))switch(nr.value){case Cs:return tr=Ts.CIRCLE,!1;case Bs:return tr=Ts.ELLIPSE,!1;case Ns:case ws:return rr=Fs.CLOSEST_SIDE,!1;case ks:return rr=Fs.FARTHEST_SIDE,!1;case xs:return rr=Fs.CLOSEST_CORNER,!1;case Es:case Ss:return rr=Fs.FARTHEST_CORNER,!1}else if(fo(nr)||go(nr))return Array.isArray(rr)||(rr=[]),rr.push(nr),!1;return er}),or)),or){var sr=zo(er);nr.push(sr)}})),{size:rr,shape:tr,stops:nr,position:ar,type:Ho.RADIAL_GRADIENT}};!function(er){er[er.URL=0]="URL",er[er.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",er[er.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(Ho||(Ho={}));var Ts,Fs,Us=function isLinearGradient(er){return er.type===Ho.LINEAR_GRADIENT},Is=function isRadialGradient(er){return er.type===Ho.RADIAL_GRADIENT};(function(er){er[er.CIRCLE=0]="CIRCLE",er[er.ELLIPSE=1]="ELLIPSE"})(Ts||(Ts={})),function(er){er[er.CLOSEST_SIDE=0]="CLOSEST_SIDE",er[er.FARTHEST_SIDE=1]="FARTHEST_SIDE",er[er.CLOSEST_CORNER=2]="CLOSEST_CORNER",er[er.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(Fs||(Fs={}));var Rs={name:"image",parse:function parse(er){if(er.type===ur.URL_TOKEN){var tr={url:er.value,type:Ho.URL};return ds.getInstance().addImage(er.value),tr}if(er.type===ur.FUNCTION){var rr=Qs[er.name];if(void 0===rr)throw new Error('Attempting to parse an unsupported image function "'+er.name+'"');return rr(er.values)}throw new Error("Unsupported image type")}};function isSupportedImage(er){return er.type!==ur.FUNCTION||Qs[er.name]}var Ms,Qs={"linear-gradient":$o,"-moz-linear-gradient":Zo,"-ms-linear-gradient":Zo,"-o-linear-gradient":Zo,"-webkit-linear-gradient":Zo,"radial-gradient":Ls,"-moz-radial-gradient":Ps,"-ms-radial-gradient":Ps,"-o-radial-gradient":Ps,"-webkit-radial-gradient":Ps,"-webkit-gradient":bs},Os={name:"background-image",initialValue:"none",type:Mo.LIST,prefix:!1,parse:function parse(er){if(0===er.length)return[];var tr=er[0];return tr.type===ur.IDENT_TOKEN&&"none"===tr.value?[]:er.filter((function(er){return ho(er)&&isSupportedImage(er)})).map(Rs.parse)}},Ds={name:"background-origin",initialValue:"border-box",prefix:!1,type:Mo.LIST,parse:function parse(er){return er.map((function(er){if(so(er))switch(er.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},js={name:"background-position",initialValue:"0% 0%",type:Mo.LIST,prefix:!1,parse:function parse(er){return po(er).map((function(er){return er.filter(go)})).map(mo)}};!function(er){er[er.REPEAT=0]="REPEAT",er[er.NO_REPEAT=1]="NO_REPEAT",er[er.REPEAT_X=2]="REPEAT_X",er[er.REPEAT_Y=3]="REPEAT_Y"}(Ms||(Ms={}));var Hs,Gs={name:"background-repeat",initialValue:"repeat",prefix:!1,type:Mo.LIST,parse:function parse(er){return po(er).map((function(er){return er.filter(so).map((function(er){return er.value})).join(" ")})).map(Vs)}},Vs=function parseBackgroundRepeat(er){switch(er){case"no-repeat":return Ms.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Ms.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Ms.REPEAT_Y;case"repeat":default:return Ms.REPEAT}};!function(er){er.AUTO="auto",er.CONTAIN="contain",er.COVER="cover"}(Hs||(Hs={}));var zs,Ks={name:"background-size",initialValue:"0",prefix:!1,type:Mo.LIST,parse:function parse(er){return po(er).map((function(er){return er.filter(qs)}))}},qs=function isBackgroundSizeInfoToken(er){return so(er)||go(er)},Ws=function borderColorForSide(er){return{name:"border-"+er+"-color",initialValue:"transparent",prefix:!1,type:Mo.TYPE_VALUE,format:"color"}},Xs=Ws("top"),Ys=Ws("right"),Js=Ws("bottom"),$s=Ws("left"),Zs=function borderRadiusForSide(er){return{name:"border-radius-"+er,initialValue:"0 0",prefix:!1,type:Mo.LIST,parse:function parse(er){return mo(er.filter(go))}}},el=Zs("top-left"),tl=Zs("top-right"),rl=Zs("bottom-right"),nl=Zs("bottom-left");!function(er){er[er.NONE=0]="NONE",er[er.SOLID=1]="SOLID"}(zs||(zs={}));var al,il=function borderStyleForSide(er){return{name:"border-"+er+"-style",initialValue:"solid",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"none":return zs.NONE}return zs.SOLID}}},ol=il("top"),sl=il("right"),ll=il("bottom"),cl=il("left"),ul=function borderWidthForSide(er){return{name:"border-"+er+"-width",initialValue:"0",type:Mo.VALUE,prefix:!1,parse:function parse(er){return io(er)?er.number:0}}},dl=ul("top"),hl=ul("right"),pl=ul("bottom"),Al=ul("left"),fl={name:"color",initialValue:"transparent",prefix:!1,type:Mo.TYPE_VALUE,format:"color"},gl={name:"display",initialValue:"inline-block",prefix:!1,type:Mo.LIST,parse:function parse(er){return er.filter(so).reduce((function(er,tr){return er|ml(tr.value)}),0)}},ml=function parseDisplayValue(er){switch(er){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(er){er[er.NONE=0]="NONE",er[er.LEFT=1]="LEFT",er[er.RIGHT=2]="RIGHT",er[er.INLINE_START=3]="INLINE_START",er[er.INLINE_END=4]="INLINE_END"}(al||(al={}));var _l,vl={name:"float",initialValue:"none",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"left":return al.LEFT;case"right":return al.RIGHT;case"inline-start":return al.INLINE_START;case"inline-end":return al.INLINE_END}return al.NONE}},yl={name:"letter-spacing",initialValue:"0",prefix:!1,type:Mo.VALUE,parse:function parse(er){return er.type===ur.IDENT_TOKEN&&"normal"===er.value?0:er.type===ur.NUMBER_TOKEN||er.type===ur.DIMENSION_TOKEN?er.number:0}};!function(er){er.NORMAL="normal",er.STRICT="strict"}(_l||(_l={}));var bl,wl={name:"line-break",initialValue:"normal",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"strict":return _l.STRICT;case"normal":default:return _l.NORMAL}}},kl={name:"line-height",initialValue:"normal",prefix:!1,type:Mo.TOKEN_VALUE},xl=function computeLineHeight(er,tr){return so(er)&&"normal"===er.value?1.2*tr:er.type===ur.NUMBER_TOKEN?tr*er.number:go(er)?wo(er,tr):tr},Sl={name:"list-style-image",initialValue:"none",type:Mo.VALUE,prefix:!1,parse:function parse(er){return er.type===ur.IDENT_TOKEN&&"none"===er.value?null:Rs.parse(er)}};!function(er){er[er.INSIDE=0]="INSIDE",er[er.OUTSIDE=1]="OUTSIDE"}(bl||(bl={}));var Cl,Bl={name:"list-style-position",initialValue:"outside",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"inside":return bl.INSIDE;case"outside":default:return bl.OUTSIDE}}};!function(er){er[er.NONE=-1]="NONE",er[er.DISC=0]="DISC",er[er.CIRCLE=1]="CIRCLE",er[er.SQUARE=2]="SQUARE",er[er.DECIMAL=3]="DECIMAL",er[er.CJK_DECIMAL=4]="CJK_DECIMAL",er[er.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",er[er.LOWER_ROMAN=6]="LOWER_ROMAN",er[er.UPPER_ROMAN=7]="UPPER_ROMAN",er[er.LOWER_GREEK=8]="LOWER_GREEK",er[er.LOWER_ALPHA=9]="LOWER_ALPHA",er[er.UPPER_ALPHA=10]="UPPER_ALPHA",er[er.ARABIC_INDIC=11]="ARABIC_INDIC",er[er.ARMENIAN=12]="ARMENIAN",er[er.BENGALI=13]="BENGALI",er[er.CAMBODIAN=14]="CAMBODIAN",er[er.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",er[er.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",er[er.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",er[er.DEVANAGARI=18]="DEVANAGARI",er[er.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",er[er.GEORGIAN=20]="GEORGIAN",er[er.GUJARATI=21]="GUJARATI",er[er.GURMUKHI=22]="GURMUKHI",er[er.HEBREW=22]="HEBREW",er[er.HIRAGANA=23]="HIRAGANA",er[er.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",er[er.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",er[er.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",er[er.KANNADA=27]="KANNADA",er[er.KATAKANA=28]="KATAKANA",er[er.KATAKANA_IROHA=29]="KATAKANA_IROHA",er[er.KHMER=30]="KHMER",er[er.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",er[er.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",er[er.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",er[er.LAO=34]="LAO",er[er.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",er[er.MALAYALAM=36]="MALAYALAM",er[er.MONGOLIAN=37]="MONGOLIAN",er[er.MYANMAR=38]="MYANMAR",er[er.ORIYA=39]="ORIYA",er[er.PERSIAN=40]="PERSIAN",er[er.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",er[er.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",er[er.TAMIL=43]="TAMIL",er[er.TELUGU=44]="TELUGU",er[er.THAI=45]="THAI",er[er.TIBETAN=46]="TIBETAN",er[er.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",er[er.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",er[er.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",er[er.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",er[er.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Cl||(Cl={}));var El,Nl={name:"list-style-type",initialValue:"none",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"disc":return Cl.DISC;case"circle":return Cl.CIRCLE;case"square":return Cl.SQUARE;case"decimal":return Cl.DECIMAL;case"cjk-decimal":return Cl.CJK_DECIMAL;case"decimal-leading-zero":return Cl.DECIMAL_LEADING_ZERO;case"lower-roman":return Cl.LOWER_ROMAN;case"upper-roman":return Cl.UPPER_ROMAN;case"lower-greek":return Cl.LOWER_GREEK;case"lower-alpha":return Cl.LOWER_ALPHA;case"upper-alpha":return Cl.UPPER_ALPHA;case"arabic-indic":return Cl.ARABIC_INDIC;case"armenian":return Cl.ARMENIAN;case"bengali":return Cl.BENGALI;case"cambodian":return Cl.CAMBODIAN;case"cjk-earthly-branch":return Cl.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Cl.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Cl.CJK_IDEOGRAPHIC;case"devanagari":return Cl.DEVANAGARI;case"ethiopic-numeric":return Cl.ETHIOPIC_NUMERIC;case"georgian":return Cl.GEORGIAN;case"gujarati":return Cl.GUJARATI;case"gurmukhi":return Cl.GURMUKHI;case"hebrew":return Cl.HEBREW;case"hiragana":return Cl.HIRAGANA;case"hiragana-iroha":return Cl.HIRAGANA_IROHA;case"japanese-formal":return Cl.JAPANESE_FORMAL;case"japanese-informal":return Cl.JAPANESE_INFORMAL;case"kannada":return Cl.KANNADA;case"katakana":return Cl.KATAKANA;case"katakana-iroha":return Cl.KATAKANA_IROHA;case"khmer":return Cl.KHMER;case"korean-hangul-formal":return Cl.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Cl.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Cl.KOREAN_HANJA_INFORMAL;case"lao":return Cl.LAO;case"lower-armenian":return Cl.LOWER_ARMENIAN;case"malayalam":return Cl.MALAYALAM;case"mongolian":return Cl.MONGOLIAN;case"myanmar":return Cl.MYANMAR;case"oriya":return Cl.ORIYA;case"persian":return Cl.PERSIAN;case"simp-chinese-formal":return Cl.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Cl.SIMP_CHINESE_INFORMAL;case"tamil":return Cl.TAMIL;case"telugu":return Cl.TELUGU;case"thai":return Cl.THAI;case"tibetan":return Cl.TIBETAN;case"trad-chinese-formal":return Cl.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Cl.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Cl.UPPER_ARMENIAN;case"disclosure-open":return Cl.DISCLOSURE_OPEN;case"disclosure-closed":return Cl.DISCLOSURE_CLOSED;case"none":default:return Cl.NONE}}},Ll=function marginForSide(er){return{name:"margin-"+er,initialValue:"0",prefix:!1,type:Mo.TOKEN_VALUE}},Pl=Ll("top"),Tl=Ll("right"),Fl=Ll("bottom"),Ul=Ll("left");!function(er){er[er.VISIBLE=0]="VISIBLE",er[er.HIDDEN=1]="HIDDEN",er[er.SCROLL=2]="SCROLL",er[er.AUTO=3]="AUTO"}(El||(El={}));var Il,Rl={name:"overflow",initialValue:"visible",prefix:!1,type:Mo.LIST,parse:function parse(er){return er.filter(so).map((function(er){switch(er.value){case"hidden":return El.HIDDEN;case"scroll":return El.SCROLL;case"auto":return El.AUTO;case"visible":default:return El.VISIBLE}}))}};!function(er){er.NORMAL="normal",er.BREAK_WORD="break-word"}(Il||(Il={}));var Ml,Ql={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"break-word":return Il.BREAK_WORD;case"normal":default:return Il.NORMAL}}},Ol=function paddingForSide(er){return{name:"padding-"+er,initialValue:"0",prefix:!1,type:Mo.TYPE_VALUE,format:"length-percentage"}},Dl=Ol("top"),jl=Ol("right"),Hl=Ol("bottom"),Gl=Ol("left");!function(er){er[er.LEFT=0]="LEFT",er[er.CENTER=1]="CENTER",er[er.RIGHT=2]="RIGHT"}(Ml||(Ml={}));var Vl,zl={name:"text-align",initialValue:"left",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"right":return Ml.RIGHT;case"center":case"justify":return Ml.CENTER;case"left":default:return Ml.LEFT}}};!function(er){er[er.STATIC=0]="STATIC",er[er.RELATIVE=1]="RELATIVE",er[er.ABSOLUTE=2]="ABSOLUTE",er[er.FIXED=3]="FIXED",er[er.STICKY=4]="STICKY"}(Vl||(Vl={}));var Kl,ql={name:"position",initialValue:"static",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"relative":return Vl.RELATIVE;case"absolute":return Vl.ABSOLUTE;case"fixed":return Vl.FIXED;case"sticky":return Vl.STICKY}return Vl.STATIC}},Wl={name:"text-shadow",initialValue:"none",type:Mo.LIST,prefix:!1,parse:function parse(er){return 1===er.length&&co(er[0],"none")?[]:po(er).map((function(er){for(var tr={color:jo.TRANSPARENT,offsetX:_o,offsetY:_o,blur:_o},rr=0,nr=0;nr<er.length;nr++){var ar=er[nr];fo(ar)?(0===rr?tr.offsetX=ar:1===rr?tr.offsetY=ar:tr.blur=ar,rr++):tr.color=Po.parse(ar)}return tr}))}};!function(er){er[er.NONE=0]="NONE",er[er.LOWERCASE=1]="LOWERCASE",er[er.UPPERCASE=2]="UPPERCASE",er[er.CAPITALIZE=3]="CAPITALIZE"}(Kl||(Kl={}));var Xl,Yl={name:"text-transform",initialValue:"none",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"uppercase":return Kl.UPPERCASE;case"lowercase":return Kl.LOWERCASE;case"capitalize":return Kl.CAPITALIZE}return Kl.NONE}},Jl={name:"transform",initialValue:"none",prefix:!0,type:Mo.VALUE,parse:function parse(er){if(er.type===ur.IDENT_TOKEN&&"none"===er.value)return null;if(er.type===ur.FUNCTION){var tr=$l[er.name];if(void 0===tr)throw new Error('Attempting to parse an unsupported transform function "'+er.name+'"');return tr(er.values)}return null}},$l={matrix:function matrix(er){var tr=er.filter((function(er){return er.type===ur.NUMBER_TOKEN})).map((function(er){return er.number}));return 6===tr.length?tr:null},matrix3d:function matrix3d(er){var tr=er.filter((function(er){return er.type===ur.NUMBER_TOKEN})).map((function(er){return er.number})),rr=tr[0],nr=tr[1],ar=(tr[2],tr[3],tr[4]),ir=tr[5],or=(tr[6],tr[7],tr[8],tr[9],tr[10],tr[11],tr[12]),sr=tr[13];return tr[14],tr[15],16===tr.length?[rr,nr,ar,ir,or,sr]:null}},Zl={type:ur.PERCENTAGE_TOKEN,number:50,flags:ya},ec=[Zl,Zl],tc={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:Mo.LIST,parse:function parse(er){var tr=er.filter(go);return 2!==tr.length?ec:[tr[0],tr[1]]}};!function(er){er[er.VISIBLE=0]="VISIBLE",er[er.HIDDEN=1]="HIDDEN",er[er.COLLAPSE=2]="COLLAPSE"}(Xl||(Xl={}));var rc,nc={name:"visible",initialValue:"none",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"hidden":return Xl.HIDDEN;case"collapse":return Xl.COLLAPSE;case"visible":default:return Xl.VISIBLE}}};!function(er){er.NORMAL="normal",er.BREAK_ALL="break-all",er.KEEP_ALL="keep-all"}(rc||(rc={}));var ac,ic={name:"word-break",initialValue:"normal",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"break-all":return rc.BREAK_ALL;case"keep-all":return rc.KEEP_ALL;case"normal":default:return rc.NORMAL}}},oc={name:"z-index",initialValue:"auto",prefix:!1,type:Mo.VALUE,parse:function parse(er){if(er.type===ur.IDENT_TOKEN)return{auto:!0,order:0};if(oo(er))return{auto:!1,order:er.number};throw new Error("Invalid z-index number parsed")}},sc={name:"opacity",initialValue:"1",type:Mo.VALUE,prefix:!1,parse:function parse(er){return oo(er)?er.number:1}},lc={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:Mo.TYPE_VALUE,format:"color"},cc={name:"text-decoration-line",initialValue:"none",prefix:!1,type:Mo.LIST,parse:function parse(er){return er.filter(so).map((function(er){switch(er.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(er){return 0!==er}))}},uc={name:"font-family",initialValue:"",prefix:!1,type:Mo.LIST,parse:function parse(er){var tr=[],rr=[];return er.forEach((function(er){switch(er.type){case ur.IDENT_TOKEN:case ur.STRING_TOKEN:tr.push(er.value);break;case ur.NUMBER_TOKEN:tr.push(er.number.toString());break;case ur.COMMA_TOKEN:rr.push(tr.join(" ")),tr.length=0}})),tr.length&&rr.push(tr.join(" ")),rr.map((function(er){return-1===er.indexOf(" ")?er:"'"+er+"'"}))}},dc={name:"font-size",initialValue:"0",prefix:!1,type:Mo.TYPE_VALUE,format:"length"},hc={name:"font-weight",initialValue:"normal",type:Mo.VALUE,prefix:!1,parse:function parse(er){if(oo(er))return er.number;if(so(er))switch(er.value){case"bold":return 700;case"normal":default:return 400}return 400}},pc={name:"font-variant",initialValue:"none",type:Mo.LIST,prefix:!1,parse:function parse(er){return er.filter(so).map((function(er){return er.value}))}};!function(er){er.NORMAL="normal",er.ITALIC="italic",er.OBLIQUE="oblique"}(ac||(ac={}));var Ac,fc={name:"font-style",initialValue:"normal",prefix:!1,type:Mo.IDENT_VALUE,parse:function parse(er){switch(er){case"oblique":return ac.OBLIQUE;case"italic":return ac.ITALIC;case"normal":default:return ac.NORMAL}}},gc=function contains(er,tr){return 0!=(er&tr)},mc={name:"content",initialValue:"none",type:Mo.LIST,prefix:!1,parse:function parse(er){if(0===er.length)return[];var tr=er[0];return tr.type===ur.IDENT_TOKEN&&"none"===tr.value?[]:er}},_c={name:"counter-increment",initialValue:"none",prefix:!0,type:Mo.LIST,parse:function parse(er){if(0===er.length)return null;var tr=er[0];if(tr.type===ur.IDENT_TOKEN&&"none"===tr.value)return null;for(var rr=[],nr=er.filter(uo),ar=0;ar<nr.length;ar++){var ir=nr[ar],or=nr[ar+1];if(ir.type===ur.IDENT_TOKEN){var sr=or&&oo(or)?or.number:1;rr.push({counter:ir.value,increment:sr})}}return rr}},vc={name:"counter-reset",initialValue:"none",prefix:!0,type:Mo.LIST,parse:function parse(er){if(0===er.length)return[];for(var tr=[],rr=er.filter(uo),nr=0;nr<rr.length;nr++){var ar=rr[nr],ir=rr[nr+1];if(so(ar)&&"none"!==ar.value){var or=ir&&oo(ir)?ir.number:0;tr.push({counter:ar.value,reset:or})}}return tr}},yc={name:"quotes",initialValue:"none",prefix:!0,type:Mo.LIST,parse:function parse(er){if(0===er.length)return null;var tr=er[0];if(tr.type===ur.IDENT_TOKEN&&"none"===tr.value)return null;var rr=[],nr=er.filter(lo);if(nr.length%2!=0)return null;for(var ar=0;ar<nr.length;ar+=2){var ir=nr[ar].value,or=nr[ar+1].value;rr.push({open:ir,close:or})}return rr}},bc=function getQuote(er,tr,rr){if(!er)return"";var nr=er[Math.min(tr,er.length-1)];return nr?rr?nr.open:nr.close:""},wc={name:"box-shadow",initialValue:"none",type:Mo.LIST,prefix:!1,parse:function parse(er){return 1===er.length&&co(er[0],"none")?[]:po(er).map((function(er){for(var tr={color:255,offsetX:_o,offsetY:_o,blur:_o,spread:_o,inset:!1},rr=0,nr=0;nr<er.length;nr++){var ar=er[nr];co(ar,"inset")?tr.inset=!0:fo(ar)?(0===rr?tr.offsetX=ar:1===rr?tr.offsetY=ar:2===rr?tr.blur=ar:tr.spread=ar,rr++):tr.color=Po.parse(ar)}return tr}))}},kc=function(){function CSSParsedDeclaration(er){this.backgroundClip=Cc(Go,er.backgroundClip),this.backgroundColor=Cc(Vo,er.backgroundColor),this.backgroundImage=Cc(Os,er.backgroundImage),this.backgroundOrigin=Cc(Ds,er.backgroundOrigin),this.backgroundPosition=Cc(js,er.backgroundPosition),this.backgroundRepeat=Cc(Gs,er.backgroundRepeat),this.backgroundSize=Cc(Ks,er.backgroundSize),this.borderTopColor=Cc(Xs,er.borderTopColor),this.borderRightColor=Cc(Ys,er.borderRightColor),this.borderBottomColor=Cc(Js,er.borderBottomColor),this.borderLeftColor=Cc($s,er.borderLeftColor),this.borderTopLeftRadius=Cc(el,er.borderTopLeftRadius),this.borderTopRightRadius=Cc(tl,er.borderTopRightRadius),this.borderBottomRightRadius=Cc(rl,er.borderBottomRightRadius),this.borderBottomLeftRadius=Cc(nl,er.borderBottomLeftRadius),this.borderTopStyle=Cc(ol,er.borderTopStyle),this.borderRightStyle=Cc(sl,er.borderRightStyle),this.borderBottomStyle=Cc(ll,er.borderBottomStyle),this.borderLeftStyle=Cc(cl,er.borderLeftStyle),this.borderTopWidth=Cc(dl,er.borderTopWidth),this.borderRightWidth=Cc(hl,er.borderRightWidth),this.borderBottomWidth=Cc(pl,er.borderBottomWidth),this.borderLeftWidth=Cc(Al,er.borderLeftWidth),this.boxShadow=Cc(wc,er.boxShadow),this.color=Cc(fl,er.color),this.display=Cc(gl,er.display),this.float=Cc(vl,er.cssFloat),this.fontFamily=Cc(uc,er.fontFamily),this.fontSize=Cc(dc,er.fontSize),this.fontStyle=Cc(fc,er.fontStyle),this.fontVariant=Cc(pc,er.fontVariant),this.fontWeight=Cc(hc,er.fontWeight),this.letterSpacing=Cc(yl,er.letterSpacing),this.lineBreak=Cc(wl,er.lineBreak),this.lineHeight=Cc(kl,er.lineHeight),this.listStyleImage=Cc(Sl,er.listStyleImage),this.listStylePosition=Cc(Bl,er.listStylePosition),this.listStyleType=Cc(Nl,er.listStyleType),this.marginTop=Cc(Pl,er.marginTop),this.marginRight=Cc(Tl,er.marginRight),this.marginBottom=Cc(Fl,er.marginBottom),this.marginLeft=Cc(Ul,er.marginLeft),this.opacity=Cc(sc,er.opacity);var tr=Cc(Rl,er.overflow);this.overflowX=tr[0],this.overflowY=tr[tr.length>1?1:0],this.overflowWrap=Cc(Ql,er.overflowWrap),this.paddingTop=Cc(Dl,er.paddingTop),this.paddingRight=Cc(jl,er.paddingRight),this.paddingBottom=Cc(Hl,er.paddingBottom),this.paddingLeft=Cc(Gl,er.paddingLeft),this.position=Cc(ql,er.position),this.textAlign=Cc(zl,er.textAlign),this.textDecorationColor=Cc(lc,er.textDecorationColor||er.color),this.textDecorationLine=Cc(cc,er.textDecorationLine),this.textShadow=Cc(Wl,er.textShadow),this.textTransform=Cc(Yl,er.textTransform),this.transform=Cc(Jl,er.transform),this.transformOrigin=Cc(tc,er.transformOrigin),this.visibility=Cc(nc,er.visibility),this.wordBreak=Cc(ic,er.wordBreak),this.zIndex=Cc(oc,er.zIndex)}return CSSParsedDeclaration.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Xl.VISIBLE},CSSParsedDeclaration.prototype.isTransparent=function(){return To(this.backgroundColor)},CSSParsedDeclaration.prototype.isTransformed=function(){return null!==this.transform},CSSParsedDeclaration.prototype.isPositioned=function(){return this.position!==Vl.STATIC},CSSParsedDeclaration.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},CSSParsedDeclaration.prototype.isFloating=function(){return this.float!==al.NONE},CSSParsedDeclaration.prototype.isInlineLevel=function(){return gc(this.display,4)||gc(this.display,33554432)||gc(this.display,268435456)||gc(this.display,536870912)||gc(this.display,67108864)||gc(this.display,134217728)},CSSParsedDeclaration}(),xc=function(){function CSSParsedPseudoDeclaration(er){this.content=Cc(mc,er.content),this.quotes=Cc(yc,er.quotes)}return CSSParsedPseudoDeclaration}(),Sc=function(){function CSSParsedCounterDeclaration(er){this.counterIncrement=Cc(_c,er.counterIncrement),this.counterReset=Cc(vc,er.counterReset)}return CSSParsedCounterDeclaration}(),Cc=function parse(er,tr){var rr=new no,nr=null!=tr?tr.toString():er.initialValue;rr.write(nr);var ar=new ao(rr.read());switch(er.type){case Mo.IDENT_VALUE:var ir=ar.parseComponentValue();return er.parse(so(ir)?ir.value:er.initialValue);case Mo.VALUE:return er.parse(ar.parseComponentValue());case Mo.LIST:return er.parse(ar.parseComponentValues());case Mo.TOKEN_VALUE:return ar.parseComponentValue();case Mo.TYPE_VALUE:switch(er.format){case"angle":return Bo.parse(ar.parseComponentValue());case"color":return Po.parse(ar.parseComponentValue());case"image":return Rs.parse(ar.parseComponentValue());case"length":var or=ar.parseComponentValue();return fo(or)?or:_o;case"length-percentage":var sr=ar.parseComponentValue();return go(sr)?sr:_o}}throw new Error("Attempting to parse unsupported css format type "+er.format)},Bc=function(){function ElementContainer(er){this.styles=new kc(window.getComputedStyle(er,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&uu(er)&&(er.style.transform="none"),this.bounds=nr(er),this.flags=0}return ElementContainer}(),Ec=function(){function TextBounds(er,tr){this.text=er,this.bounds=tr}return TextBounds}(),Nc=function parseTextBounds(er,tr,rr){var nr=Tc(er,tr),ar=[],ir=0;return nr.forEach((function(er){if(tr.textDecorationLine.length||er.trim().length>0)if(cs.SUPPORT_RANGE_BOUNDS)ar.push(new Ec(er,Pc(rr,ir,er.length)));else{var nr=rr.splitText(er.length);ar.push(new Ec(er,Lc(rr))),rr=nr}else cs.SUPPORT_RANGE_BOUNDS||(rr=rr.splitText(er.length));ir+=er.length})),ar},Lc=function getWrapperBounds(er){var tr=er.ownerDocument;if(tr){var ar=tr.createElement("html2canvaswrapper");ar.appendChild(er.cloneNode(!0));var ir=er.parentNode;if(ir){ir.replaceChild(ar,er);var or=nr(ar);return ar.firstChild&&ir.replaceChild(ar.firstChild,ar),or}}return new rr(0,0,0,0)},Pc=function getRangeBounds(er,tr,nr){var ar=er.ownerDocument;if(!ar)throw new Error("Node has no owner document");var ir=ar.createRange();return ir.setStart(er,tr),ir.setEnd(er,tr+nr),rr.fromClientRect(ir.getBoundingClientRect())},Tc=function breakText(er,tr){return 0!==tr.letterSpacing?ir(er).map((function(er){return or(er)})):Fc(er,tr)},Fc=function breakWords(er,tr){for(var rr,nr=ma(er,{lineBreak:tr.lineBreak,wordBreak:tr.overflowWrap===Il.BREAK_WORD?"break-word":tr.wordBreak}),ar=[];!(rr=nr.next()).done;)rr.value&&ar.push(rr.value.slice());return ar},Uc=function(){function TextContainer(er,tr){this.text=Ic(er.data,tr.textTransform),this.textBounds=Nc(this.text,tr,er)}return TextContainer}(),Ic=function transform$1(er,tr){switch(tr){case Kl.LOWERCASE:return er.toLowerCase();case Kl.CAPITALIZE:return er.replace(Rc,Mc);case Kl.UPPERCASE:return er.toUpperCase();default:return er}},Rc=/(^|\s|:|-|\(|\))([a-z])/g,Mc=function capitalize(er,tr,rr){return er.length>0?tr+rr.toUpperCase():er},Qc=function(er){function ImageElementContainer(tr){var rr=er.call(this,tr)||this;return rr.src=tr.currentSrc||tr.src,rr.intrinsicWidth=tr.naturalWidth,rr.intrinsicHeight=tr.naturalHeight,ds.getInstance().addImage(rr.src),rr}return __extends(ImageElementContainer,er),ImageElementContainer}(Bc),Oc=function(er){function CanvasElementContainer(tr){var rr=er.call(this,tr)||this;return rr.canvas=tr,rr.intrinsicWidth=tr.width,rr.intrinsicHeight=tr.height,rr}return __extends(CanvasElementContainer,er),CanvasElementContainer}(Bc),Dc=function(er){function SVGElementContainer(tr){var rr=er.call(this,tr)||this,nr=new XMLSerializer;return rr.svg="data:image/svg+xml,"+encodeURIComponent(nr.serializeToString(tr)),rr.intrinsicWidth=tr.width.baseVal.value,rr.intrinsicHeight=tr.height.baseVal.value,ds.getInstance().addImage(rr.svg),rr}return __extends(SVGElementContainer,er),SVGElementContainer}(Bc),jc=function(er){function LIElementContainer(tr){var rr=er.call(this,tr)||this;return rr.value=tr.value,rr}return __extends(LIElementContainer,er),LIElementContainer}(Bc),Hc=function(er){function OLElementContainer(tr){var rr=er.call(this,tr)||this;return rr.start=tr.start,rr.reversed="boolean"==typeof tr.reversed&&!0===tr.reversed,rr}return __extends(OLElementContainer,er),OLElementContainer}(Bc),Gc=[{type:ur.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Vc=[{type:ur.PERCENTAGE_TOKEN,flags:0,number:50}],zc=function reformatInputBounds(er){return er.width>er.height?new rr(er.left+(er.width-er.height)/2,er.top,er.height,er.height):er.width<er.height?new rr(er.left,er.top+(er.height-er.width)/2,er.width,er.width):er},Kc=function getInputValue(er){var tr=er.type===Xc?new Array(er.value.length+1).join("•"):er.value;return 0===tr.length?er.placeholder||"":tr},qc="checkbox",Wc="radio",Xc="password",Yc=707406591,Jc=function(er){function InputElementContainer(tr){var rr=er.call(this,tr)||this;switch(rr.type=tr.type.toLowerCase(),rr.checked=tr.checked,rr.value=Kc(tr),rr.type!==qc&&rr.type!==Wc||(rr.styles.backgroundColor=3739148031,rr.styles.borderTopColor=rr.styles.borderRightColor=rr.styles.borderBottomColor=rr.styles.borderLeftColor=2779096575,rr.styles.borderTopWidth=rr.styles.borderRightWidth=rr.styles.borderBottomWidth=rr.styles.borderLeftWidth=1,rr.styles.borderTopStyle=rr.styles.borderRightStyle=rr.styles.borderBottomStyle=rr.styles.borderLeftStyle=zs.SOLID,rr.styles.backgroundClip=[Qo.BORDER_BOX],rr.styles.backgroundOrigin=[0],rr.bounds=zc(rr.bounds)),rr.type){case qc:rr.styles.borderTopRightRadius=rr.styles.borderTopLeftRadius=rr.styles.borderBottomRightRadius=rr.styles.borderBottomLeftRadius=Gc;break;case Wc:rr.styles.borderTopRightRadius=rr.styles.borderTopLeftRadius=rr.styles.borderBottomRightRadius=rr.styles.borderBottomLeftRadius=Vc}return rr}return __extends(InputElementContainer,er),InputElementContainer}(Bc),$c=function(er){function SelectElementContainer(tr){var rr=er.call(this,tr)||this,nr=tr.options[tr.selectedIndex||0];return rr.value=nr&&nr.text||"",rr}return __extends(SelectElementContainer,er),SelectElementContainer}(Bc),Zc=function(er){function TextareaElementContainer(tr){var rr=er.call(this,tr)||this;return rr.value=tr.value,rr}return __extends(TextareaElementContainer,er),TextareaElementContainer}(Bc),eu=function parseColor(er){return Po.parse(ao.create(er).parseComponentValue())},tu=function(er){function IFrameElementContainer(tr){var rr=er.call(this,tr)||this;rr.src=tr.src,rr.width=parseInt(tr.width,10)||0,rr.height=parseInt(tr.height,10)||0,rr.backgroundColor=rr.styles.backgroundColor;try{if(tr.contentWindow&&tr.contentWindow.document&&tr.contentWindow.document.documentElement){rr.tree=iu(tr.contentWindow.document.documentElement);var nr=tr.contentWindow.document.documentElement?eu(getComputedStyle(tr.contentWindow.document.documentElement).backgroundColor):jo.TRANSPARENT,ar=tr.contentWindow.document.body?eu(getComputedStyle(tr.contentWindow.document.body).backgroundColor):jo.TRANSPARENT;rr.backgroundColor=To(nr)?To(ar)?rr.styles.backgroundColor:ar:nr}}catch(er){}return rr}return __extends(IFrameElementContainer,er),IFrameElementContainer}(Bc),ru=["OL","UL","MENU"],nu=function parseNodeTree(er,tr,rr){for(var nr=er.firstChild,ar=void 0;nr;nr=ar)if(ar=nr.nextSibling,lu(nr)&&nr.data.trim().length>0)tr.textNodes.push(new Uc(nr,tr.styles));else if(cu(nr)){var ir=au(nr);ir.styles.isVisible()&&(ou(nr,ir,rr)?ir.flags|=4:su(ir.styles)&&(ir.flags|=2),-1!==ru.indexOf(nr.tagName)&&(ir.flags|=8),tr.elements.push(ir),ku(nr)||gu(nr)||xu(nr)||parseNodeTree(nr,ir,rr))}},au=function createContainer(er){return vu(er)?new Qc(er):_u(er)?new Oc(er):gu(er)?new Dc(er):hu(er)?new jc(er):pu(er)?new Hc(er):Au(er)?new Jc(er):xu(er)?new $c(er):ku(er)?new Zc(er):yu(er)?new tu(er):new Bc(er)},iu=function parseTree(er){var tr=au(er);return tr.flags|=4,nu(er,tr,tr),tr},ou=function createsRealStackingContext(er,tr,rr){return tr.styles.isPositionedWithZIndex()||tr.styles.opacity<1||tr.styles.isTransformed()||mu(er)&&rr.styles.isTransparent()},su=function createsStackingContext(er){return er.isPositioned()||er.isFloating()},lu=function isTextNode(er){return er.nodeType===Node.TEXT_NODE},cu=function isElementNode(er){return er.nodeType===Node.ELEMENT_NODE},uu=function isHTMLElementNode(er){return cu(er)&&void 0!==er.style&&!du(er)},du=function isSVGElementNode(er){return"object"===_typeof(er.className)},hu=function isLIElement(er){return"LI"===er.tagName},pu=function isOLElement(er){return"OL"===er.tagName},Au=function isInputElement(er){return"INPUT"===er.tagName},fu=function isHTMLElement(er){return"HTML"===er.tagName},gu=function isSVGElement(er){return"svg"===er.tagName},mu=function isBodyElement(er){return"BODY"===er.tagName},_u=function isCanvasElement(er){return"CANVAS"===er.tagName},vu=function isImageElement(er){return"IMG"===er.tagName},yu=function isIFrameElement(er){return"IFRAME"===er.tagName},bu=function isStyleElement(er){return"STYLE"===er.tagName},wu=function isScriptElement(er){return"SCRIPT"===er.tagName},ku=function isTextareaElement(er){return"TEXTAREA"===er.tagName},xu=function isSelectElement(er){return"SELECT"===er.tagName},Su=function(){function CounterState(){this.counters={}}return CounterState.prototype.getCounterValue=function(er){var tr=this.counters[er];return tr&&tr.length?tr[tr.length-1]:1},CounterState.prototype.getCounterValues=function(er){var tr=this.counters[er];return tr||[]},CounterState.prototype.pop=function(er){var tr=this;er.forEach((function(er){return tr.counters[er].pop()}))},CounterState.prototype.parse=function(er){var tr=this,rr=er.counterIncrement,nr=er.counterReset,ar=!0;null!==rr&&rr.forEach((function(er){var rr=tr.counters[er.counter];rr&&0!==er.increment&&(ar=!1,rr[Math.max(0,rr.length-1)]+=er.increment)}));var ir=[];return ar&&nr.forEach((function(er){var rr=tr.counters[er.counter];ir.push(er.counter),rr||(rr=tr.counters[er.counter]=[]),rr.push(er.reset)})),ir},CounterState}(),Cu={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"]},Bu={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Eu={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Nu={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Lu=function createAdditiveCounter(er,tr,rr,nr,ar,ir){return er<tr||er>rr?Gu(er,ar,ir.length>0):nr.integers.reduce((function(tr,rr,ar){for(;er>=rr;)er-=rr,tr+=nr.values[ar];return tr}),"")+ir},Pu=function createCounterStyleWithSymbolResolver(er,tr,rr,nr){var ar="";do{rr||er--,ar=nr(er)+ar,er/=tr}while(er*tr>=tr);return ar},Tu=function createCounterStyleFromRange(er,tr,rr,nr,ar){var ir=rr-tr+1;return(er<0?"-":"")+(Pu(Math.abs(er),ir,nr,(function(er){return or(Math.floor(er%ir)+tr)}))+ar)},Fu=function createCounterStyleFromSymbols(er,tr,rr){void 0===rr&&(rr=". ");var nr=tr.length;return Pu(Math.abs(er),nr,!1,(function(er){return tr[Math.floor(er%nr)]}))+rr},Uu=1,Iu=2,Ru=4,Mu=8,Qu=function createCJKCounter(er,tr,rr,nr,ar,ir){if(er<-9999||er>9999)return Gu(er,Cl.CJK_DECIMAL,ar.length>0);var or=Math.abs(er),sr=ar;if(0===or)return tr[0]+sr;for(var lr=0;or>0&&lr<=4;lr++){var cr=or%10;0===cr&&gc(ir,Uu)&&""!==sr?sr=tr[cr]+sr:cr>1||1===cr&&0===lr||1===cr&&1===lr&&gc(ir,Iu)||1===cr&&1===lr&&gc(ir,Ru)&&er>100||1===cr&&lr>1&&gc(ir,Mu)?sr=tr[cr]+(lr>0?rr[lr-1]:"")+sr:1===cr&&lr>0&&(sr=rr[lr-1]+sr),or=Math.floor(or/10)}return(er<0?nr:"")+sr},Ou="十百千萬",Du="拾佰仟萬",ju="マイナス",Hu="마이너스",Gu=function createCounterText(er,tr,rr){var nr=rr?". ":"",ar=rr?"、":"",ir=rr?", ":"",or=rr?" ":"";switch(tr){case Cl.DISC:return"•"+or;case Cl.CIRCLE:return"◦"+or;case Cl.SQUARE:return"◾"+or;case Cl.DECIMAL_LEADING_ZERO:var sr=Tu(er,48,57,!0,nr);return sr.length<4?"0"+sr:sr;case Cl.CJK_DECIMAL:return Fu(er,"〇一二三四五六七八九",ar);case Cl.LOWER_ROMAN:return Lu(er,1,3999,Cu,Cl.DECIMAL,nr).toLowerCase();case Cl.UPPER_ROMAN:return Lu(er,1,3999,Cu,Cl.DECIMAL,nr);case Cl.LOWER_GREEK:return Tu(er,945,969,!1,nr);case Cl.LOWER_ALPHA:return Tu(er,97,122,!1,nr);case Cl.UPPER_ALPHA:return Tu(er,65,90,!1,nr);case Cl.ARABIC_INDIC:return Tu(er,1632,1641,!0,nr);case Cl.ARMENIAN:case Cl.UPPER_ARMENIAN:return Lu(er,1,9999,Bu,Cl.DECIMAL,nr);case Cl.LOWER_ARMENIAN:return Lu(er,1,9999,Bu,Cl.DECIMAL,nr).toLowerCase();case Cl.BENGALI:return Tu(er,2534,2543,!0,nr);case Cl.CAMBODIAN:case Cl.KHMER:return Tu(er,6112,6121,!0,nr);case Cl.CJK_EARTHLY_BRANCH:return Fu(er,"子丑寅卯辰巳午未申酉戌亥",ar);case Cl.CJK_HEAVENLY_STEM:return Fu(er,"甲乙丙丁戊己庚辛壬癸",ar);case Cl.CJK_IDEOGRAPHIC:case Cl.TRAD_CHINESE_INFORMAL:return Qu(er,"零一二三四五六七八九",Ou,"負",ar,Iu|Ru|Mu);case Cl.TRAD_CHINESE_FORMAL:return Qu(er,"零壹貳參肆伍陸柒捌玖",Du,"負",ar,Uu|Iu|Ru|Mu);case Cl.SIMP_CHINESE_INFORMAL:return Qu(er,"零一二三四五六七八九",Ou,"负",ar,Iu|Ru|Mu);case Cl.SIMP_CHINESE_FORMAL:return Qu(er,"零壹贰叁肆伍陆柒捌玖",Du,"负",ar,Uu|Iu|Ru|Mu);case Cl.JAPANESE_INFORMAL:return Qu(er,"〇一二三四五六七八九","十百千万",ju,ar,0);case Cl.JAPANESE_FORMAL:return Qu(er,"零壱弐参四伍六七八九","拾百千万",ju,ar,Uu|Iu|Ru);case Cl.KOREAN_HANGUL_FORMAL:return Qu(er,"영일이삼사오육칠팔구","십백천만",Hu,ir,Uu|Iu|Ru);case Cl.KOREAN_HANJA_INFORMAL:return Qu(er,"零一二三四五六七八九","十百千萬",Hu,ir,0);case Cl.KOREAN_HANJA_FORMAL:return Qu(er,"零壹貳參四五六七八九","拾百千",Hu,ir,Uu|Iu|Ru);case Cl.DEVANAGARI:return Tu(er,2406,2415,!0,nr);case Cl.GEORGIAN:return Lu(er,1,19999,Nu,Cl.DECIMAL,nr);case Cl.GUJARATI:return Tu(er,2790,2799,!0,nr);case Cl.GURMUKHI:return Tu(er,2662,2671,!0,nr);case Cl.HEBREW:return Lu(er,1,10999,Eu,Cl.DECIMAL,nr);case Cl.HIRAGANA:return Fu(er,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Cl.HIRAGANA_IROHA:return Fu(er,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Cl.KANNADA:return Tu(er,3302,3311,!0,nr);case Cl.KATAKANA:return Fu(er,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",ar);case Cl.KATAKANA_IROHA:return Fu(er,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",ar);case Cl.LAO:return Tu(er,3792,3801,!0,nr);case Cl.MONGOLIAN:return Tu(er,6160,6169,!0,nr);case Cl.MYANMAR:return Tu(er,4160,4169,!0,nr);case Cl.ORIYA:return Tu(er,2918,2927,!0,nr);case Cl.PERSIAN:return Tu(er,1776,1785,!0,nr);case Cl.TAMIL:return Tu(er,3046,3055,!0,nr);case Cl.TELUGU:return Tu(er,3174,3183,!0,nr);case Cl.THAI:return Tu(er,3664,3673,!0,nr);case Cl.TIBETAN:return Tu(er,3872,3881,!0,nr);case Cl.DECIMAL:default:return Tu(er,48,57,!0,nr)}},Vu="data-html2canvas-ignore",zu=function(){function DocumentCloner(er,tr){if(this.options=tr,this.scrolledElements=[],this.referenceElement=er,this.counters=new Su,this.quoteDepth=0,!er.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(er.ownerDocument.documentElement)}return DocumentCloner.prototype.toIFrame=function(er,tr){var rr=this,nr=qu(er,tr);if(!nr.contentWindow)return Promise.reject("Unable to find iframe window");var ar=er.defaultView.pageXOffset,ir=er.defaultView.pageYOffset,or=nr.contentWindow,sr=or.document,lr=Wu(nr).then((function(){return __awaiter(rr,void 0,void 0,(function(){var er;return __generator(this,(function(rr){switch(rr.label){case 0:return this.scrolledElements.forEach($u),or&&(or.scrollTo(tr.left,tr.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||or.scrollY===tr.top&&or.scrollX===tr.left||(sr.documentElement.style.top=-tr.top+"px",sr.documentElement.style.left=-tr.left+"px",sr.documentElement.style.position="absolute")),er=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:sr.fonts&&sr.fonts.ready?[4,sr.fonts.ready]:[3,2];case 1:rr.sent(),rr.label=2;case 2:return"function"==typeof er?[2,Promise.resolve().then((function(){return er(sr)})).then((function(){return nr}))]:[2,nr]}}))}))}));return sr.open(),sr.write(Yu(document.doctype)+"<html></html>"),Ju(this.referenceElement.ownerDocument,ar,ir),sr.replaceChild(sr.adoptNode(this.documentElement),sr.documentElement),sr.close(),lr},DocumentCloner.prototype.createElementClone=function(er){if(_u(er))return this.createCanvasClone(er);if(bu(er))return this.createStyleClone(er);var tr=er.cloneNode(!1);return vu(tr)&&"lazy"===tr.loading&&(tr.loading="eager"),tr},DocumentCloner.prototype.createStyleClone=function(er){try{var tr=er.sheet;if(tr&&tr.cssRules){var rr=[].slice.call(tr.cssRules,0).reduce((function(er,tr){return tr&&"string"==typeof tr.cssText?er+tr.cssText:er}),""),nr=er.cloneNode(!1);return nr.textContent=rr,nr}}catch(er){if(us.getInstance(this.options.id).error("Unable to access cssRules property",er),"SecurityError"!==er.name)throw er}return er.cloneNode(!1)},DocumentCloner.prototype.createCanvasClone=function(er){if(this.options.inlineImages&&er.ownerDocument){var tr=er.ownerDocument.createElement("img");try{return tr.src=er.toDataURL(),tr}catch(er){us.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var rr=er.cloneNode(!1);try{rr.width=er.width,rr.height=er.height;var nr=er.getContext("2d"),ar=rr.getContext("2d");return ar&&(nr?ar.putImageData(nr.getImageData(0,0,er.width,er.height),0,0):ar.drawImage(er,0,0)),rr}catch(er){}return rr},DocumentCloner.prototype.cloneNode=function(er){if(lu(er))return document.createTextNode(er.data);if(!er.ownerDocument)return er.cloneNode(!1);var tr=er.ownerDocument.defaultView;if(tr&&cu(er)&&(uu(er)||du(er))){var rr=this.createElementClone(er),nr=tr.getComputedStyle(er),ar=tr.getComputedStyle(er,":before"),ir=tr.getComputedStyle(er,":after");this.referenceElement===er&&uu(rr)&&(this.clonedReferenceElement=rr),mu(rr)&&ad(rr);for(var or=this.counters.parse(new Sc(nr)),sr=this.resolvePseudoContent(er,rr,ar,Ac.BEFORE),lr=er.firstChild;lr;lr=lr.nextSibling)cu(lr)&&(wu(lr)||lr.hasAttribute(Vu)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(lr))||this.options.copyStyles&&cu(lr)&&bu(lr)||rr.appendChild(this.cloneNode(lr));sr&&rr.insertBefore(sr,rr.firstChild);var cr=this.resolvePseudoContent(er,rr,ir,Ac.AFTER);return cr&&rr.appendChild(cr),this.counters.pop(or),nr&&(this.options.copyStyles||du(er))&&!yu(er)&&Xu(nr,rr),0===er.scrollTop&&0===er.scrollLeft||this.scrolledElements.push([rr,er.scrollLeft,er.scrollTop]),(ku(er)||xu(er))&&(ku(rr)||xu(rr))&&(rr.value=er.value),rr}return er.cloneNode(!1)},DocumentCloner.prototype.resolvePseudoContent=function(er,tr,rr,nr){var ar=this;if(rr){var ir=rr.content,or=tr.ownerDocument;if(or&&ir&&"none"!==ir&&"-moz-alt-content"!==ir&&"none"!==rr.display){this.counters.parse(new Sc(rr));var sr=new xc(rr),lr=or.createElement("html2canvaspseudoelement");Xu(rr,lr),sr.content.forEach((function(tr){if(tr.type===ur.STRING_TOKEN)lr.appendChild(or.createTextNode(tr.value));else if(tr.type===ur.URL_TOKEN){var rr=or.createElement("img");rr.src=tr.value,rr.style.opacity="1",lr.appendChild(rr)}else if(tr.type===ur.FUNCTION){if("attr"===tr.name){var nr=tr.values.filter(so);nr.length&&lr.appendChild(or.createTextNode(er.getAttribute(nr[0].value)||""))}else if("counter"===tr.name){var ir=tr.values.filter(ho),cr=ir[0],dr=ir[1];if(cr&&so(cr)){var hr=ar.counters.getCounterValue(cr.value),pr=dr&&so(dr)?Nl.parse(dr.value):Cl.DECIMAL;lr.appendChild(or.createTextNode(Gu(hr,pr,!1)))}}else if("counters"===tr.name){var Ar=tr.values.filter(ho),fr=(cr=Ar[0],Ar[1]);if(dr=Ar[2],cr&&so(cr)){var gr=ar.counters.getCounterValues(cr.value),mr=dr&&so(dr)?Nl.parse(dr.value):Cl.DECIMAL,_r=fr&&fr.type===ur.STRING_TOKEN?fr.value:"",vr=gr.map((function(er){return Gu(er,mr,!1)})).join(_r);lr.appendChild(or.createTextNode(vr))}}}else if(tr.type===ur.IDENT_TOKEN)switch(tr.value){case"open-quote":lr.appendChild(or.createTextNode(bc(sr.quotes,ar.quoteDepth++,!0)));break;case"close-quote":lr.appendChild(or.createTextNode(bc(sr.quotes,--ar.quoteDepth,!1)));break;default:lr.appendChild(or.createTextNode(tr.value))}})),lr.className=td+" "+rd;var cr=nr===Ac.BEFORE?" "+td:" "+rd;return du(tr)?tr.className.baseValue+=cr:tr.className+=cr,lr}}},DocumentCloner.destroy=function(er){return!!er.parentNode&&(er.parentNode.removeChild(er),!0)},DocumentCloner}();!function(er){er[er.BEFORE=0]="BEFORE",er[er.AFTER=1]="AFTER"}(Ac||(Ac={}));var Ku,qu=function createIFrameContainer(er,tr){var rr=er.createElement("iframe");return rr.className="html2canvas-container",rr.style.visibility="hidden",rr.style.position="fixed",rr.style.left="-10000px",rr.style.top="0px",rr.style.border="0",rr.width=tr.width.toString(),rr.height=tr.height.toString(),rr.scrolling="no",rr.setAttribute(Vu,"true"),er.body.appendChild(rr),rr},Wu=function iframeLoader(er){return new Promise((function(tr,rr){var nr=er.contentWindow;if(!nr)return rr("No window assigned for iframe");var ar=nr.document;nr.onload=er.onload=ar.onreadystatechange=function(){nr.onload=er.onload=ar.onreadystatechange=null;var rr=setInterval((function(){ar.body.childNodes.length>0&&"complete"===ar.readyState&&(clearInterval(rr),tr(er))}),50)}}))},Xu=function copyCSSStyles(er,tr){for(var rr=er.length-1;rr>=0;rr--){var nr=er.item(rr);"content"!==nr&&tr.style.setProperty(nr,er.getPropertyValue(nr))}return tr},Yu=function serializeDoctype(er){var tr="";return er&&(tr+="<!DOCTYPE ",er.name&&(tr+=er.name),er.internalSubset&&(tr+=er.internalSubset),er.publicId&&(tr+='"'+er.publicId+'"'),er.systemId&&(tr+='"'+er.systemId+'"'),tr+=">"),tr},Ju=function restoreOwnerScroll(er,tr,rr){er&&er.defaultView&&(tr!==er.defaultView.pageXOffset||rr!==er.defaultView.pageYOffset)&&er.defaultView.scrollTo(tr,rr)},$u=function restoreNodeScroll(er){var tr=er[0],rr=er[1],nr=er[2];tr.scrollLeft=rr,tr.scrollTop=nr},Zu=":before",ed=":after",td="___html2canvas___pseudoelement_before",rd="___html2canvas___pseudoelement_after",nd='{\n content: "" !important;\n display: none !important;\n}',ad=function createPseudoHideStyles(er){id(er,"."+td+Zu+nd+"\n ."+rd+ed+nd)},id=function createStyles(er,tr){var rr=er.ownerDocument;if(rr){var nr=rr.createElement("style");nr.textContent=tr,er.appendChild(nr)}};!function(er){er[er.VECTOR=0]="VECTOR",er[er.BEZIER_CURVE=1]="BEZIER_CURVE"}(Ku||(Ku={}));var od,sd=function equalPath(er,tr){return er.length===tr.length&&er.some((function(er,rr){return er===tr[rr]}))},ld=function transformPath(er,tr,rr,nr,ar){return er.map((function(er,ir){switch(ir){case 0:return er.add(tr,rr);case 1:return er.add(tr+nr,rr);case 2:return er.add(tr+nr,rr+ar);case 3:return er.add(tr,rr+ar)}return er}))},cd=function(){function Vector(er,tr){this.type=Ku.VECTOR,this.x=er,this.y=tr}return Vector.prototype.add=function(er,tr){return new Vector(this.x+er,this.y+tr)},Vector}(),ud=function lerp(er,tr,rr){return new cd(er.x+(tr.x-er.x)*rr,er.y+(tr.y-er.y)*rr)},dd=function(){function BezierCurve(er,tr,rr,nr){this.type=Ku.BEZIER_CURVE,this.start=er,this.startControl=tr,this.endControl=rr,this.end=nr}return BezierCurve.prototype.subdivide=function(er,tr){var rr=ud(this.start,this.startControl,er),nr=ud(this.startControl,this.endControl,er),ar=ud(this.endControl,this.end,er),ir=ud(rr,nr,er),or=ud(nr,ar,er),sr=ud(ir,or,er);return tr?new BezierCurve(this.start,rr,ir,sr):new BezierCurve(sr,or,ar,this.end)},BezierCurve.prototype.add=function(er,tr){return new BezierCurve(this.start.add(er,tr),this.startControl.add(er,tr),this.endControl.add(er,tr),this.end.add(er,tr))},BezierCurve.prototype.reverse=function(){return new BezierCurve(this.end,this.endControl,this.startControl,this.start)},BezierCurve}(),hd=function isBezierCurve(er){return er.type===Ku.BEZIER_CURVE},pd=function(){function BoundCurves(er){var tr=er.styles,rr=er.bounds,nr=bo(tr.borderTopLeftRadius,rr.width,rr.height),ar=nr[0],ir=nr[1],or=bo(tr.borderTopRightRadius,rr.width,rr.height),sr=or[0],lr=or[1],cr=bo(tr.borderBottomRightRadius,rr.width,rr.height),ur=cr[0],dr=cr[1],hr=bo(tr.borderBottomLeftRadius,rr.width,rr.height),pr=hr[0],Ar=hr[1],fr=[];fr.push((ar+sr)/rr.width),fr.push((pr+ur)/rr.width),fr.push((ir+Ar)/rr.height),fr.push((lr+dr)/rr.height);var gr=Math.max.apply(Math,fr);gr>1&&(ar/=gr,ir/=gr,sr/=gr,lr/=gr,ur/=gr,dr/=gr,pr/=gr,Ar/=gr);var mr=rr.width-sr,_r=rr.height-dr,vr=rr.width-ur,yr=rr.height-Ar,br=tr.borderTopWidth,wr=tr.borderRightWidth,kr=tr.borderBottomWidth,xr=tr.borderLeftWidth,Sr=wo(tr.paddingTop,er.bounds.width),Cr=wo(tr.paddingRight,er.bounds.width),Br=wo(tr.paddingBottom,er.bounds.width),Er=wo(tr.paddingLeft,er.bounds.width);this.topLeftBorderBox=ar>0||ir>0?Ad(rr.left,rr.top,ar,ir,od.TOP_LEFT):new cd(rr.left,rr.top),this.topRightBorderBox=sr>0||lr>0?Ad(rr.left+mr,rr.top,sr,lr,od.TOP_RIGHT):new cd(rr.left+rr.width,rr.top),this.bottomRightBorderBox=ur>0||dr>0?Ad(rr.left+vr,rr.top+_r,ur,dr,od.BOTTOM_RIGHT):new cd(rr.left+rr.width,rr.top+rr.height),this.bottomLeftBorderBox=pr>0||Ar>0?Ad(rr.left,rr.top+yr,pr,Ar,od.BOTTOM_LEFT):new cd(rr.left,rr.top+rr.height),this.topLeftPaddingBox=ar>0||ir>0?Ad(rr.left+xr,rr.top+br,Math.max(0,ar-xr),Math.max(0,ir-br),od.TOP_LEFT):new cd(rr.left+xr,rr.top+br),this.topRightPaddingBox=sr>0||lr>0?Ad(rr.left+Math.min(mr,rr.width+xr),rr.top+br,mr>rr.width+xr?0:sr-xr,lr-br,od.TOP_RIGHT):new cd(rr.left+rr.width-wr,rr.top+br),this.bottomRightPaddingBox=ur>0||dr>0?Ad(rr.left+Math.min(vr,rr.width-xr),rr.top+Math.min(_r,rr.height+br),Math.max(0,ur-wr),dr-kr,od.BOTTOM_RIGHT):new cd(rr.left+rr.width-wr,rr.top+rr.height-kr),this.bottomLeftPaddingBox=pr>0||Ar>0?Ad(rr.left+xr,rr.top+yr,Math.max(0,pr-xr),Ar-kr,od.BOTTOM_LEFT):new cd(rr.left+xr,rr.top+rr.height-kr),this.topLeftContentBox=ar>0||ir>0?Ad(rr.left+xr+Er,rr.top+br+Sr,Math.max(0,ar-(xr+Er)),Math.max(0,ir-(br+Sr)),od.TOP_LEFT):new cd(rr.left+xr+Er,rr.top+br+Sr),this.topRightContentBox=sr>0||lr>0?Ad(rr.left+Math.min(mr,rr.width+xr+Er),rr.top+br+Sr,mr>rr.width+xr+Er?0:sr-xr+Er,lr-(br+Sr),od.TOP_RIGHT):new cd(rr.left+rr.width-(wr+Cr),rr.top+br+Sr),this.bottomRightContentBox=ur>0||dr>0?Ad(rr.left+Math.min(vr,rr.width-(xr+Er)),rr.top+Math.min(_r,rr.height+br+Sr),Math.max(0,ur-(wr+Cr)),dr-(kr+Br),od.BOTTOM_RIGHT):new cd(rr.left+rr.width-(wr+Cr),rr.top+rr.height-(kr+Br)),this.bottomLeftContentBox=pr>0||Ar>0?Ad(rr.left+xr+Er,rr.top+yr,Math.max(0,pr-(xr+Er)),Ar-(kr+Br),od.BOTTOM_LEFT):new cd(rr.left+xr+Er,rr.top+rr.height-(kr+Br))}return BoundCurves}();!function(er){er[er.TOP_LEFT=0]="TOP_LEFT",er[er.TOP_RIGHT=1]="TOP_RIGHT",er[er.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",er[er.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(od||(od={}));var Ad=function getCurvePoints(er,tr,rr,nr,ar){var ir=(Math.sqrt(2)-1)/3*4,or=rr*ir,sr=nr*ir,lr=er+rr,cr=tr+nr;switch(ar){case od.TOP_LEFT:return new dd(new cd(er,cr),new cd(er,cr-sr),new cd(lr-or,tr),new cd(lr,tr));case od.TOP_RIGHT:return new dd(new cd(er,tr),new cd(er+or,tr),new cd(lr,cr-sr),new cd(lr,cr));case od.BOTTOM_RIGHT:return new dd(new cd(lr,tr),new cd(lr,tr+sr),new cd(er+or,cr),new cd(er,cr));case od.BOTTOM_LEFT:default:return new dd(new cd(lr,cr),new cd(lr-or,cr),new cd(er,tr+sr),new cd(er,tr))}},fd=function calculateBorderBoxPath(er){return[er.topLeftBorderBox,er.topRightBorderBox,er.bottomRightBorderBox,er.bottomLeftBorderBox]},gd=function calculateContentBoxPath(er){return[er.topLeftContentBox,er.topRightContentBox,er.bottomRightContentBox,er.bottomLeftContentBox]},md=function calculatePaddingBoxPath(er){return[er.topLeftPaddingBox,er.topRightPaddingBox,er.bottomRightPaddingBox,er.bottomLeftPaddingBox]},_d=function(){function TransformEffect(er,tr,rr){this.type=0,this.offsetX=er,this.offsetY=tr,this.matrix=rr,this.target=6}return TransformEffect}(),vd=function(){function ClipEffect(er,tr){this.type=1,this.target=tr,this.path=er}return ClipEffect}(),yd=function isTransformEffect(er){return 0===er.type},bd=function isClipEffect(er){return 1===er.type},wd=function(){function StackingContext(er){this.element=er,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return StackingContext}(),kd=function(){function ElementPaint(er,tr){if(this.container=er,this.effects=tr.slice(0),this.curves=new pd(er),null!==er.styles.transform){var rr=er.bounds.left+er.styles.transformOrigin[0].number,nr=er.bounds.top+er.styles.transformOrigin[1].number,ar=er.styles.transform;this.effects.push(new _d(rr,nr,ar))}if(er.styles.overflowX!==El.VISIBLE){var ir=fd(this.curves),or=md(this.curves);sd(ir,or)?this.effects.push(new vd(ir,6)):(this.effects.push(new vd(ir,2)),this.effects.push(new vd(or,4)))}}return ElementPaint.prototype.getParentEffects=function(){var er=this.effects.slice(0);if(this.container.styles.overflowX!==El.VISIBLE){var tr=fd(this.curves),rr=md(this.curves);sd(tr,rr)||er.push(new vd(rr,6))}return er},ElementPaint}(),xd=function parseStackTree(er,tr,rr,nr){er.container.elements.forEach((function(ar){var ir=gc(ar.flags,4),or=gc(ar.flags,2),sr=new kd(ar,er.getParentEffects());gc(ar.styles.display,2048)&&nr.push(sr);var lr=gc(ar.flags,8)?[]:nr;if(ir||or){var cr=ir||ar.styles.isPositioned()?rr:tr,ur=new wd(sr);if(ar.styles.isPositioned()||ar.styles.opacity<1||ar.styles.isTransformed()){var dr=ar.styles.zIndex.order;if(dr<0){var hr=0;cr.negativeZIndex.some((function(er,tr){return dr>er.element.container.styles.zIndex.order?(hr=tr,!1):hr>0})),cr.negativeZIndex.splice(hr,0,ur)}else if(dr>0){var pr=0;cr.positiveZIndex.some((function(er,tr){return dr>=er.element.container.styles.zIndex.order?(pr=tr+1,!1):pr>0})),cr.positiveZIndex.splice(pr,0,ur)}else cr.zeroOrAutoZIndexOrTransformedOrOpacity.push(ur)}else ar.styles.isFloating()?cr.nonPositionedFloats.push(ur):cr.nonPositionedInlineLevel.push(ur);parseStackTree(sr,ur,ir?ur:rr,lr)}else ar.styles.isInlineLevel()?tr.inlineLevel.push(sr):tr.nonInlineLevel.push(sr),parseStackTree(sr,tr,rr,lr);gc(ar.flags,8)&&Sd(ar,lr)}))},Sd=function processListItems(er,tr){for(var rr=er instanceof Hc?er.start:1,nr=er instanceof Hc&&er.reversed,ar=0;ar<tr.length;ar++){var ir=tr[ar];ir.container instanceof jc&&"number"==typeof ir.container.value&&0!==ir.container.value&&(rr=ir.container.value),ir.listValue=Gu(rr,ir.container.styles.listStyleType,!0),rr+=nr?-1:1}},Cd=function parseStackingContexts(er){var tr=new kd(er,[]),rr=new wd(tr),nr=[];return xd(tr,rr,rr,nr),Sd(tr.container,nr),rr},Bd=function parsePathForBorder(er,tr){switch(tr){case 0:return Ed(er.topLeftBorderBox,er.topLeftPaddingBox,er.topRightBorderBox,er.topRightPaddingBox);case 1:return Ed(er.topRightBorderBox,er.topRightPaddingBox,er.bottomRightBorderBox,er.bottomRightPaddingBox);case 2:return Ed(er.bottomRightBorderBox,er.bottomRightPaddingBox,er.bottomLeftBorderBox,er.bottomLeftPaddingBox);case 3:default:return Ed(er.bottomLeftBorderBox,er.bottomLeftPaddingBox,er.topLeftBorderBox,er.topLeftPaddingBox)}},Ed=function createPathFromCurves(er,tr,rr,nr){var ar=[];return hd(er)?ar.push(er.subdivide(.5,!1)):ar.push(er),hd(rr)?ar.push(rr.subdivide(.5,!0)):ar.push(rr),hd(nr)?ar.push(nr.subdivide(.5,!0).reverse()):ar.push(nr),hd(tr)?ar.push(tr.subdivide(.5,!1).reverse()):ar.push(tr),ar},Nd=function paddingBox(er){var tr=er.bounds,rr=er.styles;return tr.add(rr.borderLeftWidth,rr.borderTopWidth,-(rr.borderRightWidth+rr.borderLeftWidth),-(rr.borderTopWidth+rr.borderBottomWidth))},Ld=function contentBox(er){var tr=er.styles,rr=er.bounds,nr=wo(tr.paddingLeft,rr.width),ar=wo(tr.paddingRight,rr.width),ir=wo(tr.paddingTop,rr.width),or=wo(tr.paddingBottom,rr.width);return rr.add(nr+tr.borderLeftWidth,ir+tr.borderTopWidth,-(tr.borderRightWidth+tr.borderLeftWidth+nr+ar),-(tr.borderTopWidth+tr.borderBottomWidth+ir+or))},Pd=function calculateBackgroundPositioningArea(er,tr){return 0===er?tr.bounds:2===er?Ld(tr):Nd(tr)},Td=function calculateBackgroundPaintingArea(er,tr){return er===Qo.BORDER_BOX?tr.bounds:er===Qo.CONTENT_BOX?Ld(tr):Nd(tr)},Fd=function calculateBackgroundRendering(er,tr,rr){var nr=Pd(Md(er.styles.backgroundOrigin,tr),er),ar=Td(Md(er.styles.backgroundClip,tr),er),ir=Rd(Md(er.styles.backgroundSize,tr),rr,nr),or=ir[0],sr=ir[1],lr=bo(Md(er.styles.backgroundPosition,tr),nr.width-or,nr.height-sr);return[Qd(Md(er.styles.backgroundRepeat,tr),lr,ir,nr,ar),Math.round(nr.left+lr[0]),Math.round(nr.top+lr[1]),or,sr]},Ud=function isAuto(er){return so(er)&&er.value===Hs.AUTO},Id=function hasIntrinsicValue(er){return"number"==typeof er},Rd=function calculateBackgroundSize(er,tr,rr){var nr=tr[0],ar=tr[1],ir=tr[2],or=er[0],sr=er[1];if(go(or)&&sr&&go(sr))return[wo(or,rr.width),wo(sr,rr.height)];var lr=Id(ir);if(so(or)&&(or.value===Hs.CONTAIN||or.value===Hs.COVER))return Id(ir)?rr.width/rr.height<ir!=(or.value===Hs.COVER)?[rr.width,rr.width/ir]:[rr.height*ir,rr.height]:[rr.width,rr.height];var cr=Id(nr),ur=Id(ar),dr=cr||ur;if(Ud(or)&&(!sr||Ud(sr)))return cr&&ur?[nr,ar]:lr||dr?dr&&lr?[cr?nr:ar*ir,ur?ar:nr/ir]:[cr?nr:rr.width,ur?ar:rr.height]:[rr.width,rr.height];if(lr){var hr=0,pr=0;return go(or)?hr=wo(or,rr.width):go(sr)&&(pr=wo(sr,rr.height)),Ud(or)?hr=pr*ir:sr&&!Ud(sr)||(pr=hr/ir),[hr,pr]}var Ar=null,fr=null;if(go(or)?Ar=wo(or,rr.width):sr&&go(sr)&&(fr=wo(sr,rr.height)),null===Ar||sr&&!Ud(sr)||(fr=cr&&ur?Ar/nr*ar:rr.height),null!==fr&&Ud(or)&&(Ar=cr&&ur?fr/ar*nr:rr.width),null!==Ar&&null!==fr)return[Ar,fr];throw new Error("Unable to calculate background-size for element")},Md=function getBackgroundValueForIndex(er,tr){var rr=er[tr];return void 0===rr?er[0]:rr},Qd=function calculateBackgroundRepeatPath(er,tr,rr,nr,ar){var ir=tr[0],or=tr[1],sr=rr[0],lr=rr[1];switch(er){case Ms.REPEAT_X:return[new cd(Math.round(nr.left),Math.round(nr.top+or)),new cd(Math.round(nr.left+nr.width),Math.round(nr.top+or)),new cd(Math.round(nr.left+nr.width),Math.round(lr+nr.top+or)),new cd(Math.round(nr.left),Math.round(lr+nr.top+or))];case Ms.REPEAT_Y:return[new cd(Math.round(nr.left+ir),Math.round(nr.top)),new cd(Math.round(nr.left+ir+sr),Math.round(nr.top)),new cd(Math.round(nr.left+ir+sr),Math.round(nr.height+nr.top)),new cd(Math.round(nr.left+ir),Math.round(nr.height+nr.top))];case Ms.NO_REPEAT:return[new cd(Math.round(nr.left+ir),Math.round(nr.top+or)),new cd(Math.round(nr.left+ir+sr),Math.round(nr.top+or)),new cd(Math.round(nr.left+ir+sr),Math.round(nr.top+or+lr)),new cd(Math.round(nr.left+ir),Math.round(nr.top+or+lr))];default:return[new cd(Math.round(ar.left),Math.round(ar.top)),new cd(Math.round(ar.left+ar.width),Math.round(ar.top)),new cd(Math.round(ar.left+ar.width),Math.round(ar.height+ar.top)),new cd(Math.round(ar.left),Math.round(ar.height+ar.top))]}},Od="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Dd="Hidden Text",jd=function(){function FontMetrics(er){this._data={},this._document=er}return FontMetrics.prototype.parseMetrics=function(er,tr){var rr=this._document.createElement("div"),nr=this._document.createElement("img"),ar=this._document.createElement("span"),ir=this._document.body;rr.style.visibility="hidden",rr.style.fontFamily=er,rr.style.fontSize=tr,rr.style.margin="0",rr.style.padding="0",ir.appendChild(rr),nr.src=Od,nr.width=1,nr.height=1,nr.style.margin="0",nr.style.padding="0",nr.style.verticalAlign="baseline",ar.style.fontFamily=er,ar.style.fontSize=tr,ar.style.margin="0",ar.style.padding="0",ar.appendChild(this._document.createTextNode(Dd)),rr.appendChild(ar),rr.appendChild(nr);var or=nr.offsetTop-ar.offsetTop+2;rr.removeChild(ar),rr.appendChild(this._document.createTextNode(Dd)),rr.style.lineHeight="normal",nr.style.verticalAlign="super";var sr=nr.offsetTop-rr.offsetTop+2;return ir.removeChild(rr),{baseline:or,middle:sr}},FontMetrics.prototype.getMetrics=function(er,tr){var rr=er+" "+tr;return void 0===this._data[rr]&&(this._data[rr]=this.parseMetrics(er,tr)),this._data[rr]},FontMetrics}(),Hd=1e4,Gd=function(){function CanvasRenderer(er){this._activeEffects=[],this.canvas=er.canvas?er.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=er,er.canvas||(this.canvas.width=Math.floor(er.width*er.scale),this.canvas.height=Math.floor(er.height*er.scale),this.canvas.style.width=er.width+"px",this.canvas.style.height=er.height+"px"),this.fontMetrics=new jd(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-er.x+er.scrollX,-er.y+er.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],us.getInstance(er.id).debug("Canvas renderer initialized ("+er.width+"x"+er.height+" at "+er.x+","+er.y+") with scale "+er.scale)}return CanvasRenderer.prototype.applyEffects=function(er,tr){for(var rr=this;this._activeEffects.length;)this.popEffect();er.filter((function(er){return gc(er.target,tr)})).forEach((function(er){return rr.applyEffect(er)}))},CanvasRenderer.prototype.applyEffect=function(er){this.ctx.save(),yd(er)&&(this.ctx.translate(er.offsetX,er.offsetY),this.ctx.transform(er.matrix[0],er.matrix[1],er.matrix[2],er.matrix[3],er.matrix[4],er.matrix[5]),this.ctx.translate(-er.offsetX,-er.offsetY)),bd(er)&&(this.path(er.path),this.ctx.clip()),this._activeEffects.push(er)},CanvasRenderer.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},CanvasRenderer.prototype.renderStack=function(er){return __awaiter(this,void 0,void 0,(function(){var tr;return __generator(this,(function(rr){switch(rr.label){case 0:return(tr=er.element.container.styles).isVisible()?(this.ctx.globalAlpha=tr.opacity,[4,this.renderStackContent(er)]):[3,2];case 1:rr.sent(),rr.label=2;case 2:return[2]}}))}))},CanvasRenderer.prototype.renderNode=function(er){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(tr){switch(tr.label){case 0:return er.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(er)]:[3,3];case 1:return tr.sent(),[4,this.renderNodeContent(er)];case 2:tr.sent(),tr.label=3;case 3:return[2]}}))}))},CanvasRenderer.prototype.renderTextWithLetterSpacing=function(er,tr){var rr=this;0===tr?this.ctx.fillText(er.text,er.bounds.left,er.bounds.top+er.bounds.height):ir(er.text).map((function(er){return or(er)})).reduce((function(tr,nr){return rr.ctx.fillText(nr,tr,er.bounds.top+er.bounds.height),tr+rr.ctx.measureText(nr).width}),er.bounds.left)},CanvasRenderer.prototype.createFontStyle=function(er){var tr=er.fontVariant.filter((function(er){return"normal"===er||"small-caps"===er})).join(""),rr=er.fontFamily.join(", "),nr=io(er.fontSize)?""+er.fontSize.number+er.fontSize.unit:er.fontSize.number+"px";return[[er.fontStyle,tr,er.fontWeight,nr,rr].join(" "),rr,nr]},CanvasRenderer.prototype.renderTextNode=function(er,tr){return __awaiter(this,void 0,void 0,(function(){var rr,nr,ar,ir,or=this;return __generator(this,(function(sr){return rr=this.createFontStyle(tr),nr=rr[0],ar=rr[1],ir=rr[2],this.ctx.font=nr,er.textBounds.forEach((function(er){or.ctx.fillStyle=Fo(tr.color),or.renderTextWithLetterSpacing(er,tr.letterSpacing);var rr=tr.textShadow;rr.length&&er.text.trim().length&&(rr.slice(0).reverse().forEach((function(tr){or.ctx.shadowColor=Fo(tr.color),or.ctx.shadowOffsetX=tr.offsetX.number*or.options.scale,or.ctx.shadowOffsetY=tr.offsetY.number*or.options.scale,or.ctx.shadowBlur=tr.blur.number,or.ctx.fillText(er.text,er.bounds.left,er.bounds.top+er.bounds.height)})),or.ctx.shadowColor="",or.ctx.shadowOffsetX=0,or.ctx.shadowOffsetY=0,or.ctx.shadowBlur=0),tr.textDecorationLine.length&&(or.ctx.fillStyle=Fo(tr.textDecorationColor||tr.color),tr.textDecorationLine.forEach((function(tr){switch(tr){case 1:var rr=or.fontMetrics.getMetrics(ar,ir).baseline;or.ctx.fillRect(er.bounds.left,Math.round(er.bounds.top+rr),er.bounds.width,1);break;case 2:or.ctx.fillRect(er.bounds.left,Math.round(er.bounds.top),er.bounds.width,1);break;case 3:var nr=or.fontMetrics.getMetrics(ar,ir).middle;or.ctx.fillRect(er.bounds.left,Math.ceil(er.bounds.top+nr),er.bounds.width,1)}})))})),[2]}))}))},CanvasRenderer.prototype.renderReplacedElement=function(er,tr,rr){if(rr&&er.intrinsicWidth>0&&er.intrinsicHeight>0){var nr=Ld(er),ar=md(tr);this.path(ar),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(rr,0,0,er.intrinsicWidth,er.intrinsicHeight,nr.left,nr.top,nr.width,nr.height),this.ctx.restore()}},CanvasRenderer.prototype.renderNodeContent=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr;return __generator(this,(function(gr){switch(gr.label){case 0:this.applyEffects(er.effects,4),tr=er.container,nr=er.curves,ar=tr.styles,ir=0,or=tr.textNodes,gr.label=1;case 1:return ir<or.length?(sr=or[ir],[4,this.renderTextNode(sr,ar)]):[3,4];case 2:gr.sent(),gr.label=3;case 3:return ir++,[3,1];case 4:if(!(tr instanceof Qc))return[3,8];gr.label=5;case 5:return gr.trys.push([5,7,,8]),[4,this.options.cache.match(tr.src)];case 6:return pr=gr.sent(),this.renderReplacedElement(tr,nr,pr),[3,8];case 7:return gr.sent(),us.getInstance(this.options.id).error("Error loading image "+tr.src),[3,8];case 8:if(tr instanceof Oc&&this.renderReplacedElement(tr,nr,tr.canvas),!(tr instanceof Dc))return[3,12];gr.label=9;case 9:return gr.trys.push([9,11,,12]),[4,this.options.cache.match(tr.svg)];case 10:return pr=gr.sent(),this.renderReplacedElement(tr,nr,pr),[3,12];case 11:return gr.sent(),us.getInstance(this.options.id).error("Error loading svg "+tr.svg.substring(0,255)),[3,12];case 12:return tr instanceof tu&&tr.tree?[4,new CanvasRenderer({id:this.options.id,scale:this.options.scale,backgroundColor:tr.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:tr.width,height:tr.height,cache:this.options.cache,windowWidth:tr.width,windowHeight:tr.height}).render(tr.tree)]:[3,14];case 13:lr=gr.sent(),tr.width&&tr.height&&this.ctx.drawImage(lr,0,0,tr.width,tr.height,tr.bounds.left,tr.bounds.top,tr.bounds.width,tr.bounds.height),gr.label=14;case 14:if(tr instanceof Jc&&(cr=Math.min(tr.bounds.width,tr.bounds.height),tr.type===qc?tr.checked&&(this.ctx.save(),this.path([new cd(tr.bounds.left+.39363*cr,tr.bounds.top+.79*cr),new cd(tr.bounds.left+.16*cr,tr.bounds.top+.5549*cr),new cd(tr.bounds.left+.27347*cr,tr.bounds.top+.44071*cr),new cd(tr.bounds.left+.39694*cr,tr.bounds.top+.5649*cr),new cd(tr.bounds.left+.72983*cr,tr.bounds.top+.23*cr),new cd(tr.bounds.left+.84*cr,tr.bounds.top+.34085*cr),new cd(tr.bounds.left+.39363*cr,tr.bounds.top+.79*cr)]),this.ctx.fillStyle=Fo(Yc),this.ctx.fill(),this.ctx.restore()):tr.type===Wc&&tr.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(tr.bounds.left+cr/2,tr.bounds.top+cr/2,cr/4,0,2*Math.PI,!0),this.ctx.fillStyle=Fo(Yc),this.ctx.fill(),this.ctx.restore())),Vd(tr)&&tr.value.length){switch(this.ctx.font=this.createFontStyle(ar)[0],this.ctx.fillStyle=Fo(ar.color),this.ctx.textBaseline="middle",this.ctx.textAlign=Kd(tr.styles.textAlign),fr=Ld(tr),ur=0,tr.styles.textAlign){case Ml.CENTER:ur+=fr.width/2;break;case Ml.RIGHT:ur+=fr.width}dr=fr.add(ur,0,0,-fr.height/2+1),this.ctx.save(),this.path([new cd(fr.left,fr.top),new cd(fr.left+fr.width,fr.top),new cd(fr.left+fr.width,fr.top+fr.height),new cd(fr.left,fr.top+fr.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ec(tr.value,dr),ar.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!gc(tr.styles.display,2048))return[3,20];if(null===tr.styles.listStyleImage)return[3,19];if((hr=tr.styles.listStyleImage).type!==Ho.URL)return[3,18];pr=void 0,Ar=hr.url,gr.label=15;case 15:return gr.trys.push([15,17,,18]),[4,this.options.cache.match(Ar)];case 16:return pr=gr.sent(),this.ctx.drawImage(pr,tr.bounds.left-(pr.width+10),tr.bounds.top),[3,18];case 17:return gr.sent(),us.getInstance(this.options.id).error("Error loading list-style-image "+Ar),[3,18];case 18:return[3,20];case 19:er.listValue&&tr.styles.listStyleType!==Cl.NONE&&(this.ctx.font=this.createFontStyle(ar)[0],this.ctx.fillStyle=Fo(ar.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",fr=new rr(tr.bounds.left,tr.bounds.top+wo(tr.styles.paddingTop,tr.bounds.width),tr.bounds.width,xl(ar.lineHeight,ar.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ec(er.listValue,fr),ar.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),gr.label=20;case 20:return[2]}}))}))},CanvasRenderer.prototype.renderStackContent=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr;return __generator(this,(function(gr){switch(gr.label){case 0:return[4,this.renderNodeBackgroundAndBorders(er.element)];case 1:gr.sent(),tr=0,rr=er.negativeZIndex,gr.label=2;case 2:return tr<rr.length?(fr=rr[tr],[4,this.renderStack(fr)]):[3,5];case 3:gr.sent(),gr.label=4;case 4:return tr++,[3,2];case 5:return[4,this.renderNodeContent(er.element)];case 6:gr.sent(),nr=0,ar=er.nonInlineLevel,gr.label=7;case 7:return nr<ar.length?(fr=ar[nr],[4,this.renderNode(fr)]):[3,10];case 8:gr.sent(),gr.label=9;case 9:return nr++,[3,7];case 10:ir=0,or=er.nonPositionedFloats,gr.label=11;case 11:return ir<or.length?(fr=or[ir],[4,this.renderStack(fr)]):[3,14];case 12:gr.sent(),gr.label=13;case 13:return ir++,[3,11];case 14:sr=0,lr=er.nonPositionedInlineLevel,gr.label=15;case 15:return sr<lr.length?(fr=lr[sr],[4,this.renderStack(fr)]):[3,18];case 16:gr.sent(),gr.label=17;case 17:return sr++,[3,15];case 18:cr=0,ur=er.inlineLevel,gr.label=19;case 19:return cr<ur.length?(fr=ur[cr],[4,this.renderNode(fr)]):[3,22];case 20:gr.sent(),gr.label=21;case 21:return cr++,[3,19];case 22:dr=0,hr=er.zeroOrAutoZIndexOrTransformedOrOpacity,gr.label=23;case 23:return dr<hr.length?(fr=hr[dr],[4,this.renderStack(fr)]):[3,26];case 24:gr.sent(),gr.label=25;case 25:return dr++,[3,23];case 26:pr=0,Ar=er.positiveZIndex,gr.label=27;case 27:return pr<Ar.length?(fr=Ar[pr],[4,this.renderStack(fr)]):[3,30];case 28:gr.sent(),gr.label=29;case 29:return pr++,[3,27];case 30:return[2]}}))}))},CanvasRenderer.prototype.mask=function(er){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(er.slice(0).reverse()),this.ctx.closePath()},CanvasRenderer.prototype.path=function(er){this.ctx.beginPath(),this.formatPath(er),this.ctx.closePath()},CanvasRenderer.prototype.formatPath=function(er){var tr=this;er.forEach((function(er,rr){var nr=hd(er)?er.start:er;0===rr?tr.ctx.moveTo(nr.x,nr.y):tr.ctx.lineTo(nr.x,nr.y),hd(er)&&tr.ctx.bezierCurveTo(er.startControl.x,er.startControl.y,er.endControl.x,er.endControl.y,er.end.x,er.end.y)}))},CanvasRenderer.prototype.renderRepeat=function(er,tr,rr,nr){this.path(er),this.ctx.fillStyle=tr,this.ctx.translate(rr,nr),this.ctx.fill(),this.ctx.translate(-rr,-nr)},CanvasRenderer.prototype.resizeImage=function(er,tr,rr){if(er.width===tr&&er.height===rr)return er;var nr=this.canvas.ownerDocument.createElement("canvas");return nr.width=tr,nr.height=rr,nr.getContext("2d").drawImage(er,0,0,er.width,er.height,0,0,tr,rr),nr},CanvasRenderer.prototype.renderBackgroundImage=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir,or;return __generator(this,(function(sr){switch(sr.label){case 0:tr=er.styles.backgroundImage.length-1,rr=function _loop_1(rr){var ar,ir,or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,kr,xr,Sr,Cr,Br,Er,Nr,Lr,Pr,Tr,Fr,Ur;return __generator(this,(function(Ir){switch(Ir.label){case 0:if(rr.type!==Ho.URL)return[3,5];ar=void 0,ir=rr.url,Ir.label=1;case 1:return Ir.trys.push([1,3,,4]),[4,nr.options.cache.match(ir)];case 2:return ar=Ir.sent(),[3,4];case 3:return Ir.sent(),us.getInstance(nr.options.id).error("Error loading background-image "+ir),[3,4];case 4:return ar&&(or=Fd(er,tr,[ar.width,ar.height,ar.width/ar.height]),vr=or[0],Sr=or[1],Cr=or[2],wr=or[3],kr=or[4],mr=nr.ctx.createPattern(nr.resizeImage(ar,wr,kr),"repeat"),nr.renderRepeat(vr,mr,Sr,Cr)),[3,6];case 5:Us(rr)?(sr=Fd(er,tr,[null,null,null]),vr=sr[0],Sr=sr[1],Cr=sr[2],wr=sr[3],kr=sr[4],lr=Wo(rr.angle,wr,kr),cr=lr[0],ur=lr[1],dr=lr[2],hr=lr[3],pr=lr[4],(Ar=document.createElement("canvas")).width=wr,Ar.height=kr,fr=Ar.getContext("2d"),gr=fr.createLinearGradient(ur,hr,dr,pr),Ko(rr.stops,cr).forEach((function(er){return gr.addColorStop(er.stop,Fo(er.color))})),fr.fillStyle=gr,fr.fillRect(0,0,wr,kr),wr>0&&kr>0&&(mr=nr.ctx.createPattern(Ar,"repeat"),nr.renderRepeat(vr,mr,Sr,Cr))):Is(rr)&&(_r=Fd(er,tr,[null,null,null]),vr=_r[0],yr=_r[1],br=_r[2],wr=_r[3],kr=_r[4],xr=0===rr.position.length?[vo]:rr.position,Sr=wo(xr[0],wr),Cr=wo(xr[xr.length-1],kr),Br=Jo(rr,Sr,Cr,wr,kr),Er=Br[0],Nr=Br[1],Er>0&&Er>0&&(Lr=nr.ctx.createRadialGradient(yr+Sr,br+Cr,0,yr+Sr,br+Cr,Er),Ko(rr.stops,2*Er).forEach((function(er){return Lr.addColorStop(er.stop,Fo(er.color))})),nr.path(vr),nr.ctx.fillStyle=Lr,Er!==Nr?(Pr=er.bounds.left+.5*er.bounds.width,Tr=er.bounds.top+.5*er.bounds.height,Ur=1/(Fr=Nr/Er),nr.ctx.save(),nr.ctx.translate(Pr,Tr),nr.ctx.transform(1,0,0,Fr,0,0),nr.ctx.translate(-Pr,-Tr),nr.ctx.fillRect(yr,Ur*(br-Tr)+Tr,wr,kr*Ur),nr.ctx.restore()):nr.ctx.fill())),Ir.label=6;case 6:return tr--,[2]}}))},nr=this,ar=0,ir=er.styles.backgroundImage.slice(0).reverse(),sr.label=1;case 1:return ar<ir.length?(or=ir[ar],[5,rr(or)]):[3,4];case 2:sr.sent(),sr.label=3;case 3:return ar++,[3,1];case 4:return[2]}}))}))},CanvasRenderer.prototype.renderBorder=function(er,tr,rr){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(nr){return this.path(Bd(rr,tr)),this.ctx.fillStyle=Fo(er),this.ctx.fill(),[2]}))}))},CanvasRenderer.prototype.renderNodeBackgroundAndBorders=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ar,ir,or,sr,lr,cr=this;return __generator(this,(function(ur){switch(ur.label){case 0:return this.applyEffects(er.effects,2),tr=er.container.styles,rr=!To(tr.backgroundColor)||tr.backgroundImage.length,nr=[{style:tr.borderTopStyle,color:tr.borderTopColor},{style:tr.borderRightStyle,color:tr.borderRightColor},{style:tr.borderBottomStyle,color:tr.borderBottomColor},{style:tr.borderLeftStyle,color:tr.borderLeftColor}],ar=zd(Md(tr.backgroundClip,0),er.curves),rr||tr.boxShadow.length?(this.ctx.save(),this.path(ar),this.ctx.clip(),To(tr.backgroundColor)||(this.ctx.fillStyle=Fo(tr.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(er.container)]):[3,2];case 1:ur.sent(),this.ctx.restore(),tr.boxShadow.slice(0).reverse().forEach((function(tr){cr.ctx.save();var rr=fd(er.curves),nr=tr.inset?0:Hd,ar=ld(rr,-nr+(tr.inset?1:-1)*tr.spread.number,(tr.inset?1:-1)*tr.spread.number,tr.spread.number*(tr.inset?-2:2),tr.spread.number*(tr.inset?-2:2));tr.inset?(cr.path(rr),cr.ctx.clip(),cr.mask(ar)):(cr.mask(rr),cr.ctx.clip(),cr.path(ar)),cr.ctx.shadowOffsetX=tr.offsetX.number+nr,cr.ctx.shadowOffsetY=tr.offsetY.number,cr.ctx.shadowColor=Fo(tr.color),cr.ctx.shadowBlur=tr.blur.number,cr.ctx.fillStyle=tr.inset?Fo(tr.color):"rgba(0,0,0,1)",cr.ctx.fill(),cr.ctx.restore()})),ur.label=2;case 2:ir=0,or=0,sr=nr,ur.label=3;case 3:return or<sr.length?(lr=sr[or]).style===zs.NONE||To(lr.color)?[3,5]:[4,this.renderBorder(lr.color,ir,er.curves)]:[3,7];case 4:ur.sent(),ur.label=5;case 5:ir++,ur.label=6;case 6:return or++,[3,3];case 7:return[2]}}))}))},CanvasRenderer.prototype.render=function(er){return __awaiter(this,void 0,void 0,(function(){var tr;return __generator(this,(function(rr){switch(rr.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Fo(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),tr=Cd(er),[4,this.renderStack(tr)];case 1:return rr.sent(),this.applyEffects([],2),[2,this.canvas]}}))}))},CanvasRenderer}(),Vd=function isTextInputElement(er){return er instanceof Zc||er instanceof $c||er instanceof Jc&&er.type!==Wc&&er.type!==qc},zd=function calculateBackgroundCurvedPaintingArea(er,tr){switch(er){case Qo.BORDER_BOX:return fd(tr);case Qo.CONTENT_BOX:return gd(tr);case Qo.PADDING_BOX:default:return md(tr)}},Kd=function canvasTextAlign(er){switch(er){case Ml.CENTER:return"center";case Ml.RIGHT:return"right";case Ml.LEFT:default:return"left"}},qd=function(){function ForeignObjectRenderer(er){this.canvas=er.canvas?er.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=er,this.canvas.width=Math.floor(er.width*er.scale),this.canvas.height=Math.floor(er.height*er.scale),this.canvas.style.width=er.width+"px",this.canvas.style.height=er.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-er.x+er.scrollX,-er.y+er.scrollY),us.getInstance(er.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+er.width+"x"+er.height+" at "+er.x+","+er.y+") with scale "+er.scale)}return ForeignObjectRenderer.prototype.render=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr;return __generator(this,(function(nr){switch(nr.label){case 0:return tr=ss(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,er),[4,Wd(tr)];case 1:return rr=nr.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Fo(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(rr,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},ForeignObjectRenderer}(),Wd=function loadSerializedSVG$1(er){return new Promise((function(tr,rr){var nr=new Image;nr.onload=function(){tr(nr)},nr.onerror=rr,nr.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(er))}))},Xd=void 0,Yd=function parseColor$1(er){return Po.parse(ao.create(er).parseComponentValue())},Jd=function html2canvas(er,tr){return void 0===tr&&(tr={}),$d(er,tr)};"undefined"!=typeof window&&ds.setContext(window);var $d=function renderElement(er,ir){return __awaiter(Xd,void 0,void 0,(function(){var or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,kr,xr,Sr,Cr,Br,Er;return __generator(this,(function(Nr){switch(Nr.label){case 0:if(!(or=er.ownerDocument))throw new Error("Element is not attached to a Document");if(!(sr=or.defaultView))throw new Error("Document is not attached to a Window");return lr=(Math.round(1e3*Math.random())+Date.now()).toString(16),cr=mu(er)||fu(er)?ar(or):nr(er),ur=cr.width,dr=cr.height,hr=cr.left,pr=cr.top,Ar=tr({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},ir),fr={backgroundColor:"#ffffff",cache:ir.cache?ir.cache:ds.create(lr,Ar),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:sr.devicePixelRatio||1,windowWidth:sr.innerWidth,windowHeight:sr.innerHeight,scrollX:sr.pageXOffset,scrollY:sr.pageYOffset,x:hr,y:pr,width:Math.ceil(ur),height:Math.ceil(dr),id:lr},gr=tr({},fr,Ar,ir),mr=new rr(gr.scrollX,gr.scrollY,gr.windowWidth,gr.windowHeight),us.create({id:lr,enabled:gr.logging}),us.getInstance(lr).debug("Starting document clone"),_r=new zu(er,{id:lr,onclone:gr.onclone,ignoreElements:gr.ignoreElements,inlineImages:gr.foreignObjectRendering,copyStyles:gr.foreignObjectRendering}),(vr=_r.clonedReferenceElement)?[4,_r.toIFrame(or,mr)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return yr=Nr.sent(),br=or.documentElement?Yd(getComputedStyle(or.documentElement).backgroundColor):jo.TRANSPARENT,wr=or.body?Yd(getComputedStyle(or.body).backgroundColor):jo.TRANSPARENT,kr=ir.backgroundColor,xr="string"==typeof kr?Yd(kr):null===kr?jo.TRANSPARENT:4294967295,Sr=er===or.documentElement?To(br)?To(wr)?xr:wr:br:xr,Cr={id:lr,cache:gr.cache,canvas:gr.canvas,backgroundColor:Sr,scale:gr.scale,x:gr.x,y:gr.y,scrollX:gr.scrollX,scrollY:gr.scrollY,width:gr.width,height:gr.height,windowWidth:gr.windowWidth,windowHeight:gr.windowHeight},gr.foreignObjectRendering?(us.getInstance(lr).debug("Document cloned, using foreign object rendering"),[4,new qd(Cr).render(vr)]):[3,3];case 2:return Br=Nr.sent(),[3,5];case 3:return us.getInstance(lr).debug("Document cloned, using computed rendering"),ds.attachInstance(gr.cache),us.getInstance(lr).debug("Starting DOM parsing"),Er=iu(vr),ds.detachInstance(),Sr===Er.styles.backgroundColor&&(Er.styles.backgroundColor=jo.TRANSPARENT),us.getInstance(lr).debug("Starting renderer"),[4,new Gd(Cr).render(Er)];case 4:Br=Nr.sent(),Nr.label=5;case 5:return!0===gr.removeContainer&&(zu.destroy(yr)||us.getInstance(lr).error("Cannot detach cloned iframe as it is not in the DOM anymore")),us.getInstance(lr).debug("Finished rendering"),us.destroy(lr),ds.destroy(lr),[2,Br]}}))}))};return Jd}()})),fb=Object.freeze(Object.assign(Object.create(null),Ab,{default:Ab})),gb=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),mb=createCommonjsModule((function(er){var tr=gr.f,rr=uid("meta"),nr=0,ar=Object.isExtensible||function(){return!0},setMetadata=function(er){tr(er,rr,{value:{objectID:"O"+ ++nr,weakData:{}}})},ir=er.exports={REQUIRED:!1,fastKey:function(er,tr){if(!isObject(er))return"symbol"==typeof er?er:("string"==typeof er?"S":"P")+er;if(!has(er,rr)){if(!ar(er))return"F";if(!tr)return"E";setMetadata(er)}return er[rr].objectID},getWeakData:function(er,tr){if(!has(er,rr)){if(!ar(er))return!0;if(!tr)return!1;setMetadata(er)}return er[rr].weakData},onFreeze:function(er){return gb&&ir.REQUIRED&&ar(er)&&!has(er,rr)&&setMetadata(er),er}};Lr[rr]=!0})),_b=mb.onFreeze,vb=Object.freeze,yb=fails((function(){vb(1)}));_export({target:"Object",stat:!0,forced:yb,sham:!gb},{freeze:function freeze(er){return vb&&isObject(er)?vb(_b(er)):er}});var bb=Object.isFrozen,wb=fails((function(){bb(1)}));_export({target:"Object",stat:!0,forced:wb},{isFrozen:function isFrozen(er){return!isObject(er)||!!bb&&bb(er)}});var kb=mb.onFreeze,xb=Object.seal,Sb=fails((function(){xb(1)}));_export({target:"Object",stat:!0,forced:Sb,sham:!gb},{seal:function seal(er){return xb&&isObject(er)?xb(kb(er)):er}});var Cb=getBuiltIn("Reflect","apply"),Bb=Function.apply,Eb=!fails((function(){Cb((function(){}))}));_export({target:"Reflect",stat:!0,forced:Eb},{apply:function apply(er,tr,rr){return aFunction$1(er),anObject(rr),Cb?Cb(er,tr,rr):Bb.call(er,tr,rr)}});var Nb=getBuiltIn("Reflect","construct"),Lb=fails((function(){function F(){}return!(Nb((function(){}),[],F)instanceof F)})),Pb=!fails((function(){Nb((function(){}))})),Tb=Lb||Pb;_export({target:"Reflect",stat:!0,forced:Tb,sham:Tb},{construct:function construct(er,tr){aFunction$1(er),anObject(tr);var rr=arguments.length<3?er:aFunction$1(arguments[2]);if(Pb&&!Lb)return Nb(er,tr,rr);if(er==rr){switch(tr.length){case 0:return new er;case 1:return new er(tr[0]);case 2:return new er(tr[0],tr[1]);case 3:return new er(tr[0],tr[1],tr[2]);case 4:return new er(tr[0],tr[1],tr[2],tr[3])}var nr=[null];return nr.push.apply(nr,tr),new(Ni.apply(er,nr))}var ar=rr.prototype,ir=ya(isObject(ar)?ar:Object.prototype),or=Function.apply.call(er,ir,tr);return isObject(or)?or:ir}});var Fb=createCommonjsModule((function(er,tr){
|
||
/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */
|
||
er.exports=function(){function _toConsumableArray(er){if(Array.isArray(er)){for(var tr=0,rr=Array(er.length);tr<er.length;tr++)rr[tr]=er[tr];return rr}return Array.from(er)}var er=Object.hasOwnProperty,tr=Object.setPrototypeOf,rr=Object.isFrozen,nr=Object.keys,ar=Object.freeze,ir=Object.seal,or="undefined"!=typeof Reflect&&Reflect,sr=or.apply,lr=or.construct;sr||(sr=function apply(er,tr,rr){return er.apply(tr,rr)}),ar||(ar=function freeze(er){return er}),ir||(ir=function seal(er){return er}),lr||(lr=function construct(er,tr){return new(Function.prototype.bind.apply(er,[null].concat(_toConsumableArray(tr))))});var cr=unapply(Array.prototype.forEach),ur=unapply(Array.prototype.indexOf),dr=unapply(Array.prototype.join),hr=unapply(Array.prototype.pop),pr=unapply(Array.prototype.push),Ar=unapply(Array.prototype.slice),fr=unapply(String.prototype.toLowerCase),gr=unapply(String.prototype.match),mr=unapply(String.prototype.replace),_r=unapply(String.prototype.indexOf),vr=unapply(String.prototype.trim),yr=unapply(RegExp.prototype.test),br=unconstruct(RegExp),wr=unconstruct(TypeError);function unapply(er){return function(tr){for(var rr=arguments.length,nr=Array(rr>1?rr-1:0),ar=1;ar<rr;ar++)nr[ar-1]=arguments[ar];return sr(er,tr,nr)}}function unconstruct(er){return function(){for(var tr=arguments.length,rr=Array(tr),nr=0;nr<tr;nr++)rr[nr]=arguments[nr];return lr(er,rr)}}function addToSet(er,nr){tr&&tr(er,null);for(var ar=nr.length;ar--;){var ir=nr[ar];if("string"==typeof ir){var or=fr(ir);or!==ir&&(rr(nr)||(nr[ar]=or),ir=or)}er[ir]=!0}return er}function clone(tr){var rr={},nr=void 0;for(nr in tr)sr(er,tr,[nr])&&(rr[nr]=tr[nr]);return rr}var kr=ar(["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"]),xr=ar(["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"]),Sr=ar(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cr=ar(["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"]),Br=ar(["#text"]),Er=ar(["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"]),Nr=ar(["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"]),Lr=ar(["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"]),Pr=ar(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Tr=ir(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Fr=ir(/<%[\s\S]*|[\s\S]*%>/gm),Ur=ir(/^data-[\-\w.\u00B7-\uFFFF]/),Ir=ir(/^aria-[\-\w]+$/),Rr=ir(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Mr=ir(/^(?:\w+script|data):/i),Qr=ir(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),Or="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?function(er){return _typeof(er)}:function(er){return er&&"function"==typeof Symbol&&er.constructor===Symbol&&er!==Symbol.prototype?"symbol":_typeof(er)};function _toConsumableArray$1(er){if(Array.isArray(er)){for(var tr=0,rr=Array(er.length);tr<er.length;tr++)rr[tr]=er[tr];return rr}return Array.from(er)}var Dr=function getGlobal(){return"undefined"==typeof window?null:window},jr=function _createTrustedTypesPolicy(er,tr){if("object"!==(void 0===er?"undefined":Or(er))||"function"!=typeof er.createPolicy)return null;var rr=null,nr="data-tt-policy-suffix";tr.currentScript&&tr.currentScript.hasAttribute(nr)&&(rr=tr.currentScript.getAttribute(nr));var ar="dompurify"+(rr?"#"+rr:"");try{return er.createPolicy(ar,{createHTML:function createHTML(er){return er}})}catch(er){return console.warn("TrustedTypes policy "+ar+" could not be created."),null}};function createDOMPurify(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dr(),tr=function DOMPurify(er){return createDOMPurify(er)};if(tr.version="2.0.12",tr.removed=[],!er||!er.document||9!==er.document.nodeType)return tr.isSupported=!1,tr;var rr=er.document,ir=!1,or=er.document,sr=er.DocumentFragment,lr=er.HTMLTemplateElement,Hr=er.Node,Gr=er.NodeFilter,Vr=er.NamedNodeMap,zr=void 0===Vr?er.NamedNodeMap||er.MozNamedAttrMap:Vr,Kr=er.Text,qr=er.Comment,Wr=er.DOMParser,Xr=er.trustedTypes;if("function"==typeof lr){var Yr=or.createElement("template");Yr.content&&Yr.content.ownerDocument&&(or=Yr.content.ownerDocument)}var Jr=jr(Xr,rr),$r=Jr&&fa?Jr.createHTML(""):"",Zr=or,Tn=Zr.implementation,Un=Zr.createNodeIterator,Qn=Zr.getElementsByTagName,Dn=Zr.createDocumentFragment,Hn=rr.importNode,Gn={};tr.isSupported=Tn&&void 0!==Tn.createHTMLDocument&&9!==or.documentMode;var Vn=Tr,zn=Fr,Kn=Ur,Wn=Ir,Xn=Mr,Yn=Qr,Jn=Rr,$n=null,Zn=addToSet({},[].concat(_toConsumableArray$1(kr),_toConsumableArray$1(xr),_toConsumableArray$1(Sr),_toConsumableArray$1(Cr),_toConsumableArray$1(Br))),ea=null,ta=addToSet({},[].concat(_toConsumableArray$1(Er),_toConsumableArray$1(Nr),_toConsumableArray$1(Lr),_toConsumableArray$1(Pr))),ra=null,na=null,aa=!0,ia=!0,oa=!1,sa=!1,la=!1,ca=!1,ua=!1,da=!1,ha=!1,pa=!1,Aa=!1,fa=!1,ga=!0,ma=!0,_a=!1,va={},ya=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"]),ba=null,wa=addToSet({},["audio","video","img","source","image","track"]),ka=null,xa=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Sa=null,Ca=or.createElement("form"),Ba=function _parseConfig(er){Sa&&Sa===er||(er&&"object"===(void 0===er?"undefined":Or(er))||(er={}),$n="ALLOWED_TAGS"in er?addToSet({},er.ALLOWED_TAGS):Zn,ea="ALLOWED_ATTR"in er?addToSet({},er.ALLOWED_ATTR):ta,ka="ADD_URI_SAFE_ATTR"in er?addToSet(clone(xa),er.ADD_URI_SAFE_ATTR):xa,ba="ADD_DATA_URI_TAGS"in er?addToSet(clone(wa),er.ADD_DATA_URI_TAGS):wa,ra="FORBID_TAGS"in er?addToSet({},er.FORBID_TAGS):{},na="FORBID_ATTR"in er?addToSet({},er.FORBID_ATTR):{},va="USE_PROFILES"in er&&er.USE_PROFILES,aa=!1!==er.ALLOW_ARIA_ATTR,ia=!1!==er.ALLOW_DATA_ATTR,oa=er.ALLOW_UNKNOWN_PROTOCOLS||!1,sa=er.SAFE_FOR_JQUERY||!1,la=er.SAFE_FOR_TEMPLATES||!1,ca=er.WHOLE_DOCUMENT||!1,ha=er.RETURN_DOM||!1,pa=er.RETURN_DOM_FRAGMENT||!1,Aa=er.RETURN_DOM_IMPORT||!1,fa=er.RETURN_TRUSTED_TYPE||!1,da=er.FORCE_BODY||!1,ga=!1!==er.SANITIZE_DOM,ma=!1!==er.KEEP_CONTENT,_a=er.IN_PLACE||!1,Jn=er.ALLOWED_URI_REGEXP||Jn,la&&(ia=!1),pa&&(ha=!0),va&&($n=addToSet({},[].concat(_toConsumableArray$1(Br))),ea=[],!0===va.html&&(addToSet($n,kr),addToSet(ea,Er)),!0===va.svg&&(addToSet($n,xr),addToSet(ea,Nr),addToSet(ea,Pr)),!0===va.svgFilters&&(addToSet($n,Sr),addToSet(ea,Nr),addToSet(ea,Pr)),!0===va.mathMl&&(addToSet($n,Cr),addToSet(ea,Lr),addToSet(ea,Pr))),er.ADD_TAGS&&($n===Zn&&($n=clone($n)),addToSet($n,er.ADD_TAGS)),er.ADD_ATTR&&(ea===ta&&(ea=clone(ea)),addToSet(ea,er.ADD_ATTR)),er.ADD_URI_SAFE_ATTR&&addToSet(ka,er.ADD_URI_SAFE_ATTR),ma&&($n["#text"]=!0),ca&&addToSet($n,["html","head","body"]),$n.table&&(addToSet($n,["tbody"]),delete ra.tbody),ar&&ar(er),Sa=er)},Ea=function _forceRemove(er){pr(tr.removed,{element:er});try{er.parentNode.removeChild(er)}catch(tr){er.outerHTML=$r}},Na=function _removeAttribute(er,rr){try{pr(tr.removed,{attribute:rr.getAttributeNode(er),from:rr})}catch(er){pr(tr.removed,{attribute:null,from:rr})}rr.removeAttribute(er)},La=function _initDocument(er){var tr=void 0,rr=void 0;if(da)er="<remove></remove>"+er;else{var nr=gr(er,/^[\r\n\t ]+/);rr=nr&&nr[0]}var ar=Jr?Jr.createHTML(er):er;try{tr=(new Wr).parseFromString(ar,"text/html")}catch(er){}if(ir&&addToSet(ra,["title"]),!tr||!tr.documentElement){var sr=(tr=Tn.createHTMLDocument("")).body;sr.parentNode.removeChild(sr.parentNode.firstElementChild),sr.outerHTML=ar}return er&&rr&&tr.body.insertBefore(or.createTextNode(rr),tr.body.childNodes[0]||null),Qn.call(tr,ca?"html":"body")[0]};tr.isSupported&&function(){try{var er=La("<x/><title></title><img>");yr(/<\/title/,er.querySelector("title").innerHTML)&&(ir=!0)}catch(er){}}();var Pa=function _createIterator(er){return Un.call(er.ownerDocument||er,er,Gr.SHOW_ELEMENT|Gr.SHOW_COMMENT|Gr.SHOW_TEXT,(function(){return Gr.FILTER_ACCEPT}),!1)},Ta=function _isClobbered(er){return!(er instanceof Kr||er instanceof qr||"string"==typeof er.nodeName&&"string"==typeof er.textContent&&"function"==typeof er.removeChild&&er.attributes instanceof zr&&"function"==typeof er.removeAttribute&&"function"==typeof er.setAttribute&&"string"==typeof er.namespaceURI)},Fa=function _isNode(er){return"object"===(void 0===Hr?"undefined":Or(Hr))?er instanceof Hr:er&&"object"===(void 0===er?"undefined":Or(er))&&"number"==typeof er.nodeType&&"string"==typeof er.nodeName},Ua=function _executeHook(er,rr,nr){Gn[er]&&cr(Gn[er],(function(er){er.call(tr,rr,nr,Sa)}))},Ia=function _sanitizeElements(er){var rr=void 0;if(Ua("beforeSanitizeElements",er,null),Ta(er))return Ea(er),!0;var nr=fr(er.nodeName);if(Ua("uponSanitizeElement",er,{tagName:nr,allowedTags:$n}),("svg"===nr||"math"===nr)&&0!==er.querySelectorAll("p, br").length)return Ea(er),!0;if(!$n[nr]||ra[nr]){if(ma&&!ya[nr]&&"function"==typeof er.insertAdjacentHTML)try{var ar=er.innerHTML;er.insertAdjacentHTML("AfterEnd",Jr?Jr.createHTML(ar):ar)}catch(er){}return Ea(er),!0}return"noscript"===nr&&yr(/<\/noscript/i,er.innerHTML)||"noembed"===nr&&yr(/<\/noembed/i,er.innerHTML)?(Ea(er),!0):(!sa||er.firstElementChild||er.content&&er.content.firstElementChild||!yr(/</g,er.textContent)||(pr(tr.removed,{element:er.cloneNode()}),er.innerHTML?er.innerHTML=mr(er.innerHTML,/</g,"<"):er.innerHTML=mr(er.textContent,/</g,"<")),la&&3===er.nodeType&&(rr=er.textContent,rr=mr(rr,Vn," "),rr=mr(rr,zn," "),er.textContent!==rr&&(pr(tr.removed,{element:er.cloneNode()}),er.textContent=rr)),Ua("afterSanitizeElements",er,null),!1)},Ra=function _isValidAttribute(er,tr,rr){if(ga&&("id"===tr||"name"===tr)&&(rr in or||rr in Ca))return!1;if(ia&&yr(Kn,tr));else if(aa&&yr(Wn,tr));else{if(!ea[tr]||na[tr])return!1;if(ka[tr]);else if(yr(Jn,mr(rr,Yn,"")));else if("src"!==tr&&"xlink:href"!==tr&&"href"!==tr||"script"===er||0!==_r(rr,"data:")||!ba[er])if(oa&&!yr(Xn,mr(rr,Yn,"")));else if(rr)return!1}return!0},Ma=function _sanitizeAttributes(er){var rr=void 0,ar=void 0,ir=void 0,or=void 0,sr=void 0;Ua("beforeSanitizeAttributes",er,null);var lr=er.attributes;if(lr){var cr={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ea};for(sr=lr.length;sr--;){var pr=rr=lr[sr],gr=pr.name,_r=pr.namespaceURI;if(ar=vr(rr.value),ir=fr(gr),cr.attrName=ir,cr.attrValue=ar,cr.keepAttr=!0,cr.forceKeepAttr=void 0,Ua("uponSanitizeAttribute",er,cr),ar=cr.attrValue,!cr.forceKeepAttr){if("name"===ir&&"IMG"===er.nodeName&&lr.id)or=lr.id,lr=Ar(lr,[]),Na("id",er),Na(gr,er),ur(lr,or)>sr&&er.setAttribute("id",or.value);else{if("INPUT"===er.nodeName&&"type"===ir&&"file"===ar&&cr.keepAttr&&(ea[ir]||!na[ir]))continue;"id"===gr&&er.setAttribute(gr,""),Na(gr,er)}if(cr.keepAttr)if(sa&&yr(/\/>/i,ar))Na(gr,er);else if(yr(/svg|math/i,er.namespaceURI)&&yr(br("</("+dr(nr(ya),"|")+")","i"),ar))Na(gr,er);else{la&&(ar=mr(ar,Vn," "),ar=mr(ar,zn," "));var wr=er.nodeName.toLowerCase();if(Ra(wr,ir,ar))try{_r?er.setAttributeNS(_r,gr,ar):er.setAttribute(gr,ar),hr(tr.removed)}catch(er){}}}}Ua("afterSanitizeAttributes",er,null)}},Qa=function _sanitizeShadowDOM(er){var tr=void 0,rr=Pa(er);for(Ua("beforeSanitizeShadowDOM",er,null);tr=rr.nextNode();)Ua("uponSanitizeShadowNode",tr,null),Ia(tr)||(tr.content instanceof sr&&_sanitizeShadowDOM(tr.content),Ma(tr));Ua("afterSanitizeShadowDOM",er,null)};return tr.sanitize=function(nr,ar){var ir=void 0,or=void 0,lr=void 0,cr=void 0,ur=void 0;if(nr||(nr="\x3c!--\x3e"),"string"!=typeof nr&&!Fa(nr)){if("function"!=typeof nr.toString)throw wr("toString is not a function");if("string"!=typeof(nr=nr.toString()))throw wr("dirty is not a string, aborting")}if(!tr.isSupported){if("object"===Or(er.toStaticHTML)||"function"==typeof er.toStaticHTML){if("string"==typeof nr)return er.toStaticHTML(nr);if(Fa(nr))return er.toStaticHTML(nr.outerHTML)}return nr}if(ua||Ba(ar),tr.removed=[],"string"==typeof nr&&(_a=!1),_a);else if(nr instanceof Hr)1===(or=(ir=La("\x3c!--\x3e")).ownerDocument.importNode(nr,!0)).nodeType&&"BODY"===or.nodeName||"HTML"===or.nodeName?ir=or:ir.appendChild(or);else{if(!ha&&!la&&!ca&&-1===nr.indexOf("<"))return Jr&&fa?Jr.createHTML(nr):nr;if(!(ir=La(nr)))return ha?null:$r}ir&&da&&Ea(ir.firstChild);for(var dr=Pa(_a?nr:ir);lr=dr.nextNode();)3===lr.nodeType&&lr===cr||Ia(lr)||(lr.content instanceof sr&&Qa(lr.content),Ma(lr),cr=lr);if(cr=null,_a)return nr;if(ha){if(pa)for(ur=Dn.call(ir.ownerDocument);ir.firstChild;)ur.appendChild(ir.firstChild);else ur=ir;return Aa&&(ur=Hn.call(rr,ur,!0)),ur}var hr=ca?ir.outerHTML:ir.innerHTML;return la&&(hr=mr(hr,Vn," "),hr=mr(hr,zn," ")),Jr&&fa?Jr.createHTML(hr):hr},tr.setConfig=function(er){Ba(er),ua=!0},tr.clearConfig=function(){Sa=null,ua=!1},tr.isValidAttribute=function(er,tr,rr){Sa||Ba({});var nr=fr(er),ar=fr(tr);return Ra(nr,ar,rr)},tr.addHook=function(er,tr){"function"==typeof tr&&(Gn[er]=Gn[er]||[],pr(Gn[er],tr))},tr.removeHook=function(er){Gn[er]&&hr(Gn[er])},tr.removeHooks=function(er){Gn[er]&&(Gn[er]=[])},tr.removeAllHooks=function(){Gn={}},tr}return createDOMPurify()}()})),Ub=Object.freeze(Object.assign(Object.create(null),Fb,{default:Fb}));function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var Ib=defaultSetTimout,Rb=defaultClearTimeout;function runTimeout(er){if(Ib===setTimeout)return setTimeout(er,0);if((Ib===defaultSetTimout||!Ib)&&setTimeout)return Ib=setTimeout,setTimeout(er,0);try{return Ib(er,0)}catch(tr){try{return Ib.call(null,er,0)}catch(tr){return Ib.call(this,er,0)}}}"function"==typeof gf.setTimeout&&(Ib=setTimeout),"function"==typeof gf.clearTimeout&&(Rb=clearTimeout);var Mb,Qb=[],Ob=!1,Db=-1;function cleanUpNextTick(){Ob&&Mb&&(Ob=!1,Mb.length?Qb=Mb.concat(Qb):Db=-1,Qb.length&&drainQueue())}function drainQueue(){if(!Ob){var er=runTimeout(cleanUpNextTick);Ob=!0;for(var tr=Qb.length;tr;){for(Mb=Qb,Qb=[];++Db<tr;)Mb&&Mb[Db].run();Db=-1,tr=Qb.length}Mb=null,Ob=!1,function runClearTimeout(er){if(Rb===clearTimeout)return clearTimeout(er);if((Rb===defaultClearTimeout||!Rb)&&clearTimeout)return Rb=clearTimeout,clearTimeout(er);try{return Rb(er)}catch(tr){try{return Rb.call(null,er)}catch(tr){return Rb.call(this,er)}}}(er)}}function Item(er,tr){this.fun=er,this.array=tr}Item.prototype.run=function(){this.fun.apply(null,this.array)};function noop(){}var jb=noop,Hb=noop,Gb=noop,Vb=noop,zb=noop,Kb=noop,qb=noop;var Wb=gf.performance||{},Xb=Wb.now||Wb.mozNow||Wb.msNow||Wb.oNow||Wb.webkitNow||function(){return(new Date).getTime()};var Yb=new Date;var Jb={nextTick:function nextTick(er){var tr=new Array(arguments.length-1);if(arguments.length>1)for(var rr=1;rr<arguments.length;rr++)tr[rr-1]=arguments[rr];Qb.push(new Item(er,tr)),1!==Qb.length||Ob||runTimeout(drainQueue)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:jb,addListener:Hb,once:Gb,off:Vb,removeListener:zb,removeAllListeners:Kb,emit:qb,binding:function binding(er){throw new Error("process.binding is not supported")},cwd:function cwd(){return"/"},chdir:function chdir(er){throw new Error("process.chdir is not supported")},umask:function umask(){return 0},hrtime:function hrtime(er){var tr=.001*Xb.call(Wb),rr=Math.floor(tr),nr=Math.floor(tr%1*1e9);return er&&(rr-=er[0],(nr-=er[1])<0&&(rr--,nr+=1e9)),[rr,nr]},platform:"browser",release:{},config:{},uptime:function uptime(){return(new Date-Yb)/1e3}},$b=gr.f,Zb=mb.fastKey,ew=Or.set,tw=Or.getterFor;!function(er,rr,nr){var ar=-1!==er.indexOf("Map"),ir=-1!==er.indexOf("Weak"),or=ar?"set":"add",sr=tr[er],lr=sr&&sr.prototype,cr=sr,ur={},fixMethod=function(er){var tr=lr[er];Dr(lr,er,"add"==er?function add(er){return tr.call(this,0===er?0:er),this}:"delete"==er?function(er){return!(ir&&!isObject(er))&&tr.call(this,0===er?0:er)}:"get"==er?function get(er){return ir&&!isObject(er)?void 0:tr.call(this,0===er?0:er)}:"has"==er?function has(er){return!(ir&&!isObject(er))&&tr.call(this,0===er?0:er)}:function set(er,rr){return tr.call(this,0===er?0:er,rr),this})};if(Gn(er,"function"!=typeof sr||!(ir||lr.forEach&&!fails((function(){(new sr).entries().next()})))))cr=nr.getConstructor(rr,er,ar,or),mb.REQUIRED=!0;else if(Gn(er,!0)){var dr=new cr,hr=dr[or](ir?{}:-0,1)!=dr,pr=fails((function(){dr.has(1)})),Ar=checkCorrectnessOfIteration((function(er){new sr(er)})),fr=!ir&&fails((function(){for(var er=new sr,tr=5;tr--;)er[or](tr,tr);return!er.has(-0)}));Ar||((cr=rr((function(tr,rr){anInstance(tr,cr,er);var nr=inheritIfRequired(new sr,tr,cr);return null!=rr&&xo(rr,nr[or],nr,ar),nr}))).prototype=lr,lr.constructor=cr),(pr||fr)&&(fixMethod("delete"),fixMethod("has"),ar&&fixMethod("get")),(fr||hr)&&fixMethod(or),ir&&lr.clear&&delete lr.clear}ur[er]=cr,_export({global:!0,forced:cr!=sr},ur),setToStringTag(cr,er),ir||nr.setStrong(cr,er,ar)}("Map",(function(er){return function Map(){return er(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(er,tr,nr,ar){var ir=er((function(er,or){anInstance(er,ir,tr),ew(er,{type:tr,index:ya(null),first:void 0,last:void 0,size:0}),rr||(er.size=0),null!=or&&xo(or,er[ar],er,nr)})),or=tw(tr),define=function(er,tr,nr){var ar,ir,sr=or(er),lr=getEntry(er,tr);return lr?lr.value=nr:(sr.last=lr={index:ir=Zb(tr,!0),key:tr,value:nr,previous:ar=sr.last,next:void 0,removed:!1},sr.first||(sr.first=lr),ar&&(ar.next=lr),rr?sr.size++:er.size++,"F"!==ir&&(sr.index[ir]=lr)),er},getEntry=function(er,tr){var rr,nr=or(er),ar=Zb(tr);if("F"!==ar)return nr.index[ar];for(rr=nr.first;rr;rr=rr.next)if(rr.key==tr)return rr};return redefineAll(ir.prototype,{clear:function clear(){for(var er=or(this),tr=er.index,nr=er.first;nr;)nr.removed=!0,nr.previous&&(nr.previous=nr.previous.next=void 0),delete tr[nr.index],nr=nr.next;er.first=er.last=void 0,rr?er.size=0:this.size=0},delete:function(er){var tr=this,nr=or(tr),ar=getEntry(tr,er);if(ar){var ir=ar.next,sr=ar.previous;delete nr.index[ar.index],ar.removed=!0,sr&&(sr.next=ir),ir&&(ir.previous=sr),nr.first==ar&&(nr.first=ir),nr.last==ar&&(nr.last=sr),rr?nr.size--:tr.size--}return!!ar},forEach:function forEach(er){for(var tr,rr=or(this),nr=functionBindContext(er,arguments.length>1?arguments[1]:void 0,3);tr=tr?tr.next:rr.first;)for(nr(tr.value,tr.key,this);tr&&tr.removed;)tr=tr.previous},has:function has(er){return!!getEntry(this,er)}}),redefineAll(ir.prototype,nr?{get:function get(er){var tr=getEntry(this,er);return tr&&tr.value},set:function set(er,tr){return define(this,0===er?0:er,tr)}}:{add:function add(er){return define(this,er=0===er?0:er,er)}}),rr&&$b(ir.prototype,"size",{get:function(){return or(this).size}}),ir},setStrong:function(er,tr,rr){var nr=tr+" Iterator",ar=tw(tr),ir=tw(nr);defineIterator(er,tr,(function(er,tr){ew(this,{type:nr,target:er,state:ar(er),kind:tr,last:void 0})}),(function(){for(var er=ir(this),tr=er.kind,rr=er.last;rr&&rr.removed;)rr=rr.previous;return er.target&&(er.last=rr=rr?rr.next:er.state.first)?"keys"==tr?{value:rr.key,done:!1}:"values"==tr?{value:rr.value,done:!1}:{value:[rr.key,rr.value],done:!1}:(er.target=void 0,{value:void 0,done:!0})}),rr?"entries":"values",!rr,!0),setSpecies(tr)}});_export({target:"Object",stat:!0,sham:!rr},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(er){for(var tr,rr,nr=toIndexedObject(er),ar=Ar.f,ir=Zr(nr),or={},sr=0;ir.length>sr;)void 0!==(rr=ar(nr,tr=ir[sr++]))&&createProperty(or,tr,rr);return or}});var rw=Ar.f;_export({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(er,tr){var rr=rw(anObject(er),tr);return!(rr&&!rr.configurable)&&delete er[tr]}}),_export({target:"Reflect",stat:!0,sham:!ja},{getPrototypeOf:function getPrototypeOf(er){return Va(anObject(er))}});var nw=function _arrayWithHoles$1(er){if(Array.isArray(er))return er};var aw=function _iterableToArrayLimit$1(er,tr){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(er)){var rr=[],nr=!0,ar=!1,ir=void 0;try{for(var or,sr=er[Symbol.iterator]();!(nr=(or=sr.next()).done)&&(rr.push(or.value),!tr||rr.length!==tr);nr=!0);}catch(er){ar=!0,ir=er}finally{try{nr||null==sr.return||sr.return()}finally{if(ar)throw ir}}return rr}};var iw=function _arrayLikeToArray$1(er,tr){(null==tr||tr>er.length)&&(tr=er.length);for(var rr=0,nr=new Array(tr);rr<tr;rr++)nr[rr]=er[rr];return nr};var ow=function _unsupportedIterableToArray$1(er,tr){if(er){if("string"==typeof er)return iw(er,tr);var rr=Object.prototype.toString.call(er).slice(8,-1);return"Object"===rr&&er.constructor&&(rr=er.constructor.name),"Map"===rr||"Set"===rr?Array.from(er):"Arguments"===rr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rr)?iw(er,tr):void 0}};var sw=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 lw=function _slicedToArray$1(er,tr){return nw(er)||aw(er,tr)||ow(er,tr)||sw()},cw=Xu;function asyncGeneratorStep$1(er,tr,rr,nr,ar,ir,or){try{var sr=er[ir](or),lr=sr.value}catch(er){return void rr(er)}sr.done?tr(lr):Promise.resolve(lr).then(nr,ar)}var uw=function _asyncToGenerator$1(er){return function(){var tr=this,rr=arguments;return new Promise((function(nr,ar){var ir=er.apply(tr,rr);function _next(er){asyncGeneratorStep$1(ir,nr,ar,_next,_throw,"next",er)}function _throw(er){asyncGeneratorStep$1(ir,nr,ar,_next,_throw,"throw",er)}_next(void 0)}))}};var dw=function _defineProperty(er,tr,rr){return tr in er?Object.defineProperty(er,tr,{value:rr,enumerable:!0,configurable:!0,writable:!0}):er[tr]=rr,er};var hw=function _classCallCheck$2(er,tr){if(!(er instanceof tr))throw new TypeError("Cannot call a class as a function")};function _defineProperties$1(er,tr){for(var rr=0;rr<tr.length;rr++){var nr=tr[rr];nr.enumerable=nr.enumerable||!1,nr.configurable=!0,"value"in nr&&(nr.writable=!0),Object.defineProperty(er,nr.key,nr)}}for(var pw=function _createClass$1(er,tr,rr){return tr&&_defineProperties$1(er.prototype,tr),rr&&_defineProperties$1(er,rr),er},Aw=createCommonjsModule((function(tr){(function(){var er,rr,nr,ar,ir,or;"undefined"!=typeof performance&&null!==performance&&performance.now?tr.exports=function(){return performance.now()}:null!=Jb&&Jb.hrtime?(tr.exports=function(){return(er()-ir)/1e6},rr=Jb.hrtime,ar=(er=function getNanoSeconds(){var er;return 1e9*(er=rr())[0]+er[1]})(),or=1e9*Jb.uptime(),ir=ar-or):Date.now?(tr.exports=function(){return Date.now()-nr},nr=Date.now()):(tr.exports=function(){return(new Date).getTime()-nr},nr=(new Date).getTime())}).call(er)})),fw="undefined"==typeof window?er:window,gw=["moz","webkit"],mw="AnimationFrame",_w=fw["request"+mw],vw=fw["cancel"+mw]||fw["cancelRequest"+mw],yw=0;!_w&&yw<gw.length;yw++)_w=fw[gw[yw]+"Request"+mw],vw=fw[gw[yw]+"Cancel"+mw]||fw[gw[yw]+"CancelRequest"+mw];if(!_w||!vw){var bw=0,ww=0,kw=[];_w=function raf(er){if(0===kw.length){var tr=Aw(),rr=Math.max(0,16.666666666666668-(tr-bw));bw=rr+tr,setTimeout((function(){var er=kw.slice(0);kw.length=0;for(var tr=0;tr<er.length;tr++)if(!er[tr].cancelled)try{er[tr].callback(bw)}catch(er){setTimeout((function(){throw er}),0)}}),Math.round(rr))}return kw.push({handle:++ww,callback:er,cancelled:!1}),ww},vw=function caf(er){for(var tr=0;tr<kw.length;tr++)kw[tr].handle===er&&(kw[tr].cancelled=!0)}}var xw=function raf_1(er){return _w.call(fw,er)};xw.cancel=function cancel(){vw.apply(fw,arguments)},xw.polyfill=function polyfill(er){er||(er=fw),er.requestAnimationFrame=_w,er.cancelAnimationFrame=vw};var Sw=function rgbcolor(er){this.ok=!1,this.alpha=1,"#"==er.charAt(0)&&(er=er.substr(1,6)),er=(er=er.replace(/ /g,"")).toLowerCase();var tr={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"};er=tr[er]||er;for(var rr=[{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(er){return[parseInt(er[1]),parseInt(er[2]),parseInt(er[3]),parseFloat(er[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(er){return[parseInt(er[1]),parseInt(er[2]),parseInt(er[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function process(er){return[parseInt(er[1],16),parseInt(er[2],16),parseInt(er[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function process(er){return[parseInt(er[1]+er[1],16),parseInt(er[2]+er[2],16),parseInt(er[3]+er[3],16)]}}],nr=0;nr<rr.length;nr++){var ar=rr[nr].re,ir=rr[nr].process,or=ar.exec(er);if(or){var sr=ir(or);this.r=sr[0],this.g=sr[1],this.b=sr[2],sr.length>3&&(this.alpha=sr[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 er=this.r.toString(16),tr=this.g.toString(16),rr=this.b.toString(16);return 1==er.length&&(er="0"+er),1==tr.length&&(tr="0"+tr),1==rr.length&&(rr="0"+rr),"#"+er+tr+rr},this.getHelpXML=function(){for(var er=new Array,nr=0;nr<rr.length;nr++)for(var ar=rr[nr].example,ir=0;ir<ar.length;ir++)er[er.length]=ar[ir];for(var or in tr)er[er.length]=or;var sr=document.createElement("ul");sr.setAttribute("id","rgbcolor-examples");for(nr=0;nr<er.length;nr++)try{var lr=document.createElement("li"),cr=new RGBColor(er[nr]),ur=document.createElement("div");ur.style.cssText="margin: 3px; border: 1px solid black; background:"+cr.toHex()+"; color:"+cr.toHex(),ur.appendChild(document.createTextNode("test"));var dr=document.createTextNode(" "+er[nr]+" -> "+cr.toRGB()+" -> "+cr.toHex());lr.appendChild(ur),lr.appendChild(dr),sr.appendChild(lr)}catch(er){}return sr}},Cw=createCommonjsModule((function(er){function _typeof(tr){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?er.exports=_typeof=function _typeof(er){return typeof er}:er.exports=_typeof=function _typeof(er){return er&&"function"==typeof Symbol&&er.constructor===Symbol&&er!==Symbol.prototype?"symbol":typeof er},_typeof(tr)}er.exports=_typeof}));var Bw=function _assertThisInitialized$1(er){if(void 0===er)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return er};var Ew=function _possibleConstructorReturn$1(er,tr){return!tr||"object"!==Cw(tr)&&"function"!=typeof tr?Bw(er):tr},Nw=createCommonjsModule((function(er){function _getPrototypeOf(tr){return er.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(er){return er.__proto__||Object.getPrototypeOf(er)},_getPrototypeOf(tr)}er.exports=_getPrototypeOf})),Lw=createCommonjsModule((function(er){function _setPrototypeOf(tr,rr){return er.exports=_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(er,tr){return er.__proto__=tr,er},_setPrototypeOf(tr,rr)}er.exports=_setPrototypeOf}));var Pw=function _inherits$1(er,tr){if("function"!=typeof tr&&null!==tr)throw new TypeError("Super expression must either be null or a function");er.prototype=Object.create(tr&&tr.prototype,{constructor:{value:er,writable:!0,configurable:!0}}),tr&&Lw(er,tr)};var Tw=function _arrayWithoutHoles$1(er){if(Array.isArray(er))return iw(er)};var Fw=function _iterableToArray$1(er){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(er))return Array.from(er)};var Uw=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 Iw=function _toConsumableArray$1(er){return Tw(er)||Fw(er)||ow(er)||Uw()};_export({target:"Reflect",stat:!0},{get:function get$2(er,tr){var rr,nr,ar=arguments.length<3?er:arguments[2];return anObject(er)===ar?er[tr]:(rr=Ar.f(er,tr))?has(rr,"value")?rr.value:void 0===rr.get?void 0:rr.get.call(ar):isObject(nr=Va(er))?get$2(nr,tr,ar):void 0}});var Rw=function _superPropBase$1(er,tr){for(;!Object.prototype.hasOwnProperty.call(er,tr)&&null!==(er=Nw(er)););return er},Mw=createCommonjsModule((function(er){function _get(tr,rr,nr){return"undefined"!=typeof Reflect&&Reflect.get?er.exports=_get=Reflect.get:er.exports=_get=function _get(er,tr,rr){var nr=Rw(er,tr);if(nr){var ar=Object.getOwnPropertyDescriptor(nr,tr);return ar.get?ar.get.call(rr):ar.value}},_get(tr,rr,nr||tr)}er.exports=_get}));function _typeof$2(er){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(er){return typeof er}:function _typeof(er){return er&&"function"==typeof Symbol&&er.constructor===Symbol&&er!==Symbol.prototype?"symbol":typeof er})(er)}var Qw=[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],Ow=[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$1(er,tr,rr,nr,ar,ir){if(!(isNaN(ir)||ir<1)){ir|=0;var or=function getImageDataFromCanvas$1(er,tr,rr,nr,ar){if("string"==typeof er&&(er=document.getElementById(er)),!er||"object"!==_typeof$2(er)||!("getContext"in er))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var ir=er.getContext("2d");try{return ir.getImageData(tr,rr,nr,ar)}catch(er){throw new Error("unable to access image data: "+er)}}(er,tr,rr,nr,ar);or=function processImageDataRGBA$1(er,tr,rr,nr,ar,ir){for(var or,sr=er.data,lr=2*ir+1,cr=nr-1,ur=ar-1,dr=ir+1,hr=dr*(dr+1)/2,pr=new Dw,Ar=pr,fr=1;fr<lr;fr++)Ar=Ar.next=new Dw,fr===dr&&(or=Ar);Ar.next=pr;for(var gr=null,mr=null,_r=0,vr=0,yr=Qw[ir],br=Ow[ir],wr=0;wr<ar;wr++){Ar=pr;for(var kr=sr[vr],xr=sr[vr+1],Sr=sr[vr+2],Cr=sr[vr+3],Br=0;Br<dr;Br++)Ar.r=kr,Ar.g=xr,Ar.b=Sr,Ar.a=Cr,Ar=Ar.next;for(var Er=0,Nr=0,Lr=0,Pr=0,Tr=dr*kr,Fr=dr*xr,Ur=dr*Sr,Ir=dr*Cr,Rr=hr*kr,Mr=hr*xr,Qr=hr*Sr,Or=hr*Cr,Dr=1;Dr<dr;Dr++){var jr=vr+((cr<Dr?cr:Dr)<<2),Hr=sr[jr],Gr=sr[jr+1],Vr=sr[jr+2],zr=sr[jr+3],Kr=dr-Dr;Rr+=(Ar.r=Hr)*Kr,Mr+=(Ar.g=Gr)*Kr,Qr+=(Ar.b=Vr)*Kr,Or+=(Ar.a=zr)*Kr,Er+=Hr,Nr+=Gr,Lr+=Vr,Pr+=zr,Ar=Ar.next}gr=pr,mr=or;for(var qr=0;qr<nr;qr++){var Wr=Or*yr>>br;if(sr[vr+3]=Wr,0!==Wr){var Xr=255/Wr;sr[vr]=(Rr*yr>>br)*Xr,sr[vr+1]=(Mr*yr>>br)*Xr,sr[vr+2]=(Qr*yr>>br)*Xr}else sr[vr]=sr[vr+1]=sr[vr+2]=0;Rr-=Tr,Mr-=Fr,Qr-=Ur,Or-=Ir,Tr-=gr.r,Fr-=gr.g,Ur-=gr.b,Ir-=gr.a;var Yr=qr+ir+1;Yr=_r+(Yr<cr?Yr:cr)<<2,Rr+=Er+=gr.r=sr[Yr],Mr+=Nr+=gr.g=sr[Yr+1],Qr+=Lr+=gr.b=sr[Yr+2],Or+=Pr+=gr.a=sr[Yr+3],gr=gr.next;var Jr=mr,$r=Jr.r,Zr=Jr.g,Tn=Jr.b,Un=Jr.a;Tr+=$r,Fr+=Zr,Ur+=Tn,Ir+=Un,Er-=$r,Nr-=Zr,Lr-=Tn,Pr-=Un,mr=mr.next,vr+=4}_r+=nr}for(var Qn=0;Qn<nr;Qn++){var Dn=sr[vr=Qn<<2],Hn=sr[vr+1],Gn=sr[vr+2],Vn=sr[vr+3],zn=dr*Dn,Kn=dr*Hn,Wn=dr*Gn,Xn=dr*Vn,Yn=hr*Dn,Jn=hr*Hn,$n=hr*Gn,Zn=hr*Vn;Ar=pr;for(var ea=0;ea<dr;ea++)Ar.r=Dn,Ar.g=Hn,Ar.b=Gn,Ar.a=Vn,Ar=Ar.next;for(var ta=nr,ra=0,na=0,aa=0,ia=0,oa=1;oa<=ir;oa++){vr=ta+Qn<<2;var sa=dr-oa;Yn+=(Ar.r=Dn=sr[vr])*sa,Jn+=(Ar.g=Hn=sr[vr+1])*sa,$n+=(Ar.b=Gn=sr[vr+2])*sa,Zn+=(Ar.a=Vn=sr[vr+3])*sa,ia+=Dn,ra+=Hn,na+=Gn,aa+=Vn,Ar=Ar.next,oa<ur&&(ta+=nr)}vr=Qn,gr=pr,mr=or;for(var la=0;la<ar;la++){var ca=vr<<2;sr[ca+3]=Vn=Zn*yr>>br,Vn>0?(Vn=255/Vn,sr[ca]=(Yn*yr>>br)*Vn,sr[ca+1]=(Jn*yr>>br)*Vn,sr[ca+2]=($n*yr>>br)*Vn):sr[ca]=sr[ca+1]=sr[ca+2]=0,Yn-=zn,Jn-=Kn,$n-=Wn,Zn-=Xn,zn-=gr.r,Kn-=gr.g,Wn-=gr.b,Xn-=gr.a,ca=Qn+((ca=la+dr)<ur?ca:ur)*nr<<2,Yn+=ia+=gr.r=sr[ca],Jn+=ra+=gr.g=sr[ca+1],$n+=na+=gr.b=sr[ca+2],Zn+=aa+=gr.a=sr[ca+3],gr=gr.next,zn+=Dn=mr.r,Kn+=Hn=mr.g,Wn+=Gn=mr.b,Xn+=Vn=mr.a,ia-=Dn,ra-=Hn,na-=Gn,aa-=Vn,mr=mr.next,vr+=nr}}return er}(or,0,0,nr,ar,ir),er.getContext("2d").putImageData(or,tr,rr)}}var Dw=function BlurStack(){!function _classCallCheck$3(er,tr){if(!(er instanceof tr))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(er){return er.replace(/(?!\u3000)\s+/gm," ")}function trimLeft$1(er){return er.replace(/^[\n \t]+/,"")}function trimRight$1(er){return er.replace(/[\n \t]+$/,"")}function toNumbers(er){return((er||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var jw=/^[A-Z-]+$/;function normalizeAttributeName(er){return jw.test(er)?er.toLowerCase():er}function parseExternalUrl(er){var tr=er.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return tr[2]||tr[3]||tr[4]}function normalizeColor(er){if(!er.startsWith("rgb"))return er;var tr=3;return er.replace(/\d+(\.\d+)?/g,(function(er,rr){return tr--&&rr?String(Math.round(parseFloat(er))):er}))}var Hw=/(\[[^\]]+\])/g,Gw=/(#[^\s\+>~\.\[:]+)/g,Vw=/(\.[^\s\+>~\.\[:]+)/g,zw=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,Kw=/(:[\w-]+\([^\)]*\))/gi,qw=/(:[^\s\+>~\.\[:]+)/g,Ww=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(er,tr){var rr=er.match(tr);return rr?[er.replace(tr," "),rr.length]:[er,0]}function getSelectorSpecificity(er){var tr=[0,0,0],rr=er.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),nr=0,ar=findSelectorMatch(rr,Hw),ir=lw(ar,2);rr=ir[0],nr=ir[1],tr[1]+=nr;var or=findSelectorMatch(rr,Gw),sr=lw(or,2);rr=sr[0],nr=sr[1],tr[0]+=nr;var lr=findSelectorMatch(rr,Vw),cr=lw(lr,2);rr=cr[0],nr=cr[1],tr[1]+=nr;var ur=findSelectorMatch(rr,zw),dr=lw(ur,2);rr=dr[0],nr=dr[1],tr[2]+=nr;var hr=findSelectorMatch(rr,Kw),pr=lw(hr,2);rr=pr[0],nr=pr[1],tr[1]+=nr;var Ar=findSelectorMatch(rr,qw),fr=lw(Ar,2);rr=fr[0],nr=fr[1],tr[1]+=nr;var gr=findSelectorMatch(rr=rr.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),Ww),mr=lw(gr,2);return rr=mr[0],nr=mr[1],tr[2]+=nr,tr.join("")}function vectorMagnitude(er){return Math.sqrt(Math.pow(er[0],2)+Math.pow(er[1],2))}function vectorsRatio(er,tr){return(er[0]*tr[0]+er[1]*tr[1])/(vectorMagnitude(er)*vectorMagnitude(tr))}function vectorsAngle(er,tr){return(er[0]*tr[1]<er[1]*tr[0]?-1:1)*Math.acos(vectorsRatio(er,tr))}function CB1(er){return er*er*er}function CB2(er){return 3*er*er*(1-er)}function CB3(er){return 3*er*(1-er)*(1-er)}function CB4(er){return(1-er)*(1-er)*(1-er)}function QB1(er){return er*er}function QB2(er){return 2*er*(1-er)}function QB3(er){return(1-er)*(1-er)}(function createCommonjsModule$1(er,tr){return er(tr={exports:{}},tr.exports),tr.exports})((function(er){var tr=function(er){var tr,rr=Object.prototype,nr=rr.hasOwnProperty,ar="function"==typeof Symbol?Symbol:{},ir=ar.iterator||"@@iterator",or=ar.asyncIterator||"@@asyncIterator",sr=ar.toStringTag||"@@toStringTag";function wrap(er,tr,rr,nr){var ar=tr&&tr.prototype instanceof Generator?tr:Generator,ir=Object.create(ar.prototype),or=new Context(nr||[]);return ir._invoke=function makeInvokeMethod(er,tr,rr){var nr=lr;return function invoke(ar,ir){if(nr===ur)throw new Error("Generator is already running");if(nr===dr){if("throw"===ar)throw ir;return doneResult()}for(rr.method=ar,rr.arg=ir;;){var or=rr.delegate;if(or){var sr=maybeInvokeDelegate(or,rr);if(sr){if(sr===hr)continue;return sr}}if("next"===rr.method)rr.sent=rr._sent=rr.arg;else if("throw"===rr.method){if(nr===lr)throw nr=dr,rr.arg;rr.dispatchException(rr.arg)}else"return"===rr.method&&rr.abrupt("return",rr.arg);nr=ur;var pr=tryCatch(er,tr,rr);if("normal"===pr.type){if(nr=rr.done?dr:cr,pr.arg===hr)continue;return{value:pr.arg,done:rr.done}}"throw"===pr.type&&(nr=dr,rr.method="throw",rr.arg=pr.arg)}}}(er,rr,or),ir}function tryCatch(er,tr,rr){try{return{type:"normal",arg:er.call(tr,rr)}}catch(er){return{type:"throw",arg:er}}}er.wrap=wrap;var lr="suspendedStart",cr="suspendedYield",ur="executing",dr="completed",hr={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var pr={};pr[ir]=function(){return this};var Ar=Object.getPrototypeOf,fr=Ar&&Ar(Ar(values([])));fr&&fr!==rr&&nr.call(fr,ir)&&(pr=fr);var gr=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(pr);function defineIteratorMethods(er){["next","throw","return"].forEach((function(tr){er[tr]=function(er){return this._invoke(tr,er)}}))}function AsyncIterator(er,tr){var rr;this._invoke=function enqueue(ar,ir){function callInvokeWithMethodAndArg(){return new tr((function(rr,or){!function invoke(rr,ar,ir,or){var sr=tryCatch(er[rr],er,ar);if("throw"!==sr.type){var lr=sr.arg,cr=lr.value;return cr&&"object"===_typeof(cr)&&nr.call(cr,"__await")?tr.resolve(cr.__await).then((function(er){invoke("next",er,ir,or)}),(function(er){invoke("throw",er,ir,or)})):tr.resolve(cr).then((function(er){lr.value=er,ir(lr)}),(function(er){return invoke("throw",er,ir,or)}))}or(sr.arg)}(ar,ir,rr,or)}))}return rr=rr?rr.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(er,rr){var nr=er.iterator[rr.method];if(nr===tr){if(rr.delegate=null,"throw"===rr.method){if(er.iterator.return&&(rr.method="return",rr.arg=tr,maybeInvokeDelegate(er,rr),"throw"===rr.method))return hr;rr.method="throw",rr.arg=new TypeError("The iterator does not provide a 'throw' method")}return hr}var ar=tryCatch(nr,er.iterator,rr.arg);if("throw"===ar.type)return rr.method="throw",rr.arg=ar.arg,rr.delegate=null,hr;var ir=ar.arg;return ir?ir.done?(rr[er.resultName]=ir.value,rr.next=er.nextLoc,"return"!==rr.method&&(rr.method="next",rr.arg=tr),rr.delegate=null,hr):ir:(rr.method="throw",rr.arg=new TypeError("iterator result is not an object"),rr.delegate=null,hr)}function pushTryEntry(er){var tr={tryLoc:er[0]};1 in er&&(tr.catchLoc=er[1]),2 in er&&(tr.finallyLoc=er[2],tr.afterLoc=er[3]),this.tryEntries.push(tr)}function resetTryEntry(er){var tr=er.completion||{};tr.type="normal",delete tr.arg,er.completion=tr}function Context(er){this.tryEntries=[{tryLoc:"root"}],er.forEach(pushTryEntry,this),this.reset(!0)}function values(er){if(er){var rr=er[ir];if(rr)return rr.call(er);if("function"==typeof er.next)return er;if(!isNaN(er.length)){var ar=-1,or=function next(){for(;++ar<er.length;)if(nr.call(er,ar))return next.value=er[ar],next.done=!1,next;return next.value=tr,next.done=!0,next};return or.next=or}}return{next:doneResult}}function doneResult(){return{value:tr,done:!0}}return GeneratorFunction.prototype=gr.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunctionPrototype[sr]=GeneratorFunction.displayName="GeneratorFunction",er.isGeneratorFunction=function(er){var tr="function"==typeof er&&er.constructor;return!!tr&&(tr===GeneratorFunction||"GeneratorFunction"===(tr.displayName||tr.name))},er.mark=function(er){return Object.setPrototypeOf?Object.setPrototypeOf(er,GeneratorFunctionPrototype):(er.__proto__=GeneratorFunctionPrototype,sr in er||(er[sr]="GeneratorFunction")),er.prototype=Object.create(gr),er},er.awrap=function(er){return{__await:er}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[or]=function(){return this},er.AsyncIterator=AsyncIterator,er.async=function(tr,rr,nr,ar,ir){void 0===ir&&(ir=Promise);var or=new AsyncIterator(wrap(tr,rr,nr,ar),ir);return er.isGeneratorFunction(rr)?or:or.next().then((function(er){return er.done?er.value:or.next()}))},defineIteratorMethods(gr),gr[sr]="Generator",gr[ir]=function(){return this},gr.toString=function(){return"[object Generator]"},er.keys=function(er){var tr=[];for(var rr in er)tr.push(rr);return tr.reverse(),function next(){for(;tr.length;){var rr=tr.pop();if(rr in er)return next.value=rr,next.done=!1,next}return next.done=!0,next}},er.values=values,Context.prototype={constructor:Context,reset:function reset(er){if(this.prev=0,this.next=0,this.sent=this._sent=tr,this.done=!1,this.delegate=null,this.method="next",this.arg=tr,this.tryEntries.forEach(resetTryEntry),!er)for(var rr in this)"t"===rr.charAt(0)&&nr.call(this,rr)&&!isNaN(+rr.slice(1))&&(this[rr]=tr)},stop:function stop(){this.done=!0;var er=this.tryEntries[0].completion;if("throw"===er.type)throw er.arg;return this.rval},dispatchException:function dispatchException(er){if(this.done)throw er;var rr=this;function handle(nr,ar){return or.type="throw",or.arg=er,rr.next=nr,ar&&(rr.method="next",rr.arg=tr),!!ar}for(var ar=this.tryEntries.length-1;ar>=0;--ar){var ir=this.tryEntries[ar],or=ir.completion;if("root"===ir.tryLoc)return handle("end");if(ir.tryLoc<=this.prev){var sr=nr.call(ir,"catchLoc"),lr=nr.call(ir,"finallyLoc");if(sr&&lr){if(this.prev<ir.catchLoc)return handle(ir.catchLoc,!0);if(this.prev<ir.finallyLoc)return handle(ir.finallyLoc)}else if(sr){if(this.prev<ir.catchLoc)return handle(ir.catchLoc,!0)}else{if(!lr)throw new Error("try statement without catch or finally");if(this.prev<ir.finallyLoc)return handle(ir.finallyLoc)}}}},abrupt:function abrupt(er,tr){for(var rr=this.tryEntries.length-1;rr>=0;--rr){var ar=this.tryEntries[rr];if(ar.tryLoc<=this.prev&&nr.call(ar,"finallyLoc")&&this.prev<ar.finallyLoc){var ir=ar;break}}ir&&("break"===er||"continue"===er)&&ir.tryLoc<=tr&&tr<=ir.finallyLoc&&(ir=null);var or=ir?ir.completion:{};return or.type=er,or.arg=tr,ir?(this.method="next",this.next=ir.finallyLoc,hr):this.complete(or)},complete:function complete(er,tr){if("throw"===er.type)throw er.arg;return"break"===er.type||"continue"===er.type?this.next=er.arg:"return"===er.type?(this.rval=this.arg=er.arg,this.method="return",this.next="end"):"normal"===er.type&&tr&&(this.next=tr),hr},finish:function finish(er){for(var tr=this.tryEntries.length-1;tr>=0;--tr){var rr=this.tryEntries[tr];if(rr.finallyLoc===er)return this.complete(rr.completion,rr.afterLoc),resetTryEntry(rr),hr}},catch:function _catch(er){for(var tr=this.tryEntries.length-1;tr>=0;--tr){var rr=this.tryEntries[tr];if(rr.tryLoc===er){var nr=rr.completion;if("throw"===nr.type){var ar=nr.arg;resetTryEntry(rr)}return ar}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(er,rr,nr){return this.delegate={iterator:values(er),resultName:rr,nextLoc:nr},"next"===this.method&&(this.arg=tr),hr}},er}(er.exports);try{regeneratorRuntime=tr}catch(er){Function("r","regeneratorRuntime = r")(tr)}}));var Xw=function(){function Property(er,tr,rr){hw(this,Property),this.document=er,this.name=tr,this.value=rr,this.isNormalizedColor=!1}return pw(Property,[{key:"hasValue",value:function hasValue(){var er=this.value;return null!==er&&""!==er&&0!==er&&void 0!==er}},{key:"isString",value:function isString(er){var tr=this.value,rr="string"==typeof tr;return rr&&er?er.test(tr):rr}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.isString(/^url\(/)}},{key:"isPixels",value:function isPixels(){if(!this.hasValue())return!1;var er=this.getString();switch(!0){case/px$/.test(er):case/^[0-9]+$/.test(er):return!0;default:return!1}}},{key:"setValue",value:function setValue(er){return this.value=er,this}},{key:"getValue",value:function getValue(er){return void 0===er||this.hasValue()?this.value:er}},{key:"getNumber",value:function getNumber(er){if(!this.hasValue())return void 0===er?0:parseFloat(er);var tr=this.value,rr=parseFloat(tr);return this.isString(/%$/)&&(rr/=100),rr}},{key:"getString",value:function getString(er){return void 0===er||this.hasValue()?void 0===this.value?"":String(this.value):String(er)}},{key:"getColor",value:function getColor(er){var tr=this.getString(er);return this.isNormalizedColor||(this.isNormalizedColor=!0,tr=normalizeColor(tr),this.value=tr),tr}},{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(er){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var rr="boolean"==typeof er?[void 0,er]:[er],nr=lw(rr,2),ar=nr[0],ir=nr[1],or=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(or.computeSize("x"),or.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(or.computeSize("x"),or.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*or.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*or.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(/%$/)&&ir:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*or.computeSize(ar);default:var sr=this.getNumber();return tr&&sr<1?sr*or.computeSize(ar):sr}}},{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 er=this.getString(),tr=er.match(/#([^\)'"]+)/);return tr&&(tr=tr[1]),tr||(tr=er),this.document.definitions[tr]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(er,tr){var rr=this.getDefinition();if(!rr)return null;if("function"==typeof rr.createGradient)return rr.createGradient(this.document.ctx,er,tr);if("function"==typeof rr.createPattern){if(rr.getHrefAttribute().hasValue()){var nr=rr.getAttribute("patternTransform");rr=rr.getHrefAttribute().getDefinition(),nr.hasValue()&&rr.getAttribute("patternTransform",!0).setValue(nr.value)}return rr.createPattern(this.document.ctx,er,tr)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(er){for(var tr=this.getColor(),rr=tr.length,nr=0,ar=0;ar<rr&&(","===tr[ar]&&nr++,3!==nr);ar++);if(er.hasValue()&&this.isString()&&3!==nr){var ir=new Sw(tr);ir.ok&&(ir.alpha=er.getNumber(),tr=ir.toRGBA())}return new Property(this.document,this.name,tr)}}],[{key:"empty",value:function empty(er){return new Property(er,"EMPTY","")}}]),Property}();Xw.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 Yw=function(){function ViewPort(){hw(this,ViewPort),this.viewPorts=[]}return pw(ViewPort,[{key:"clear",value:function clear(){this.viewPorts=[]}},{key:"setCurrent",value:function setCurrent(er,tr){this.viewPorts.push({width:er,height:tr})}},{key:"removeCurrent",value:function removeCurrent(){this.viewPorts.pop()}},{key:"getCurrent",value:function getCurrent(){var er=this.viewPorts;return er[er.length-1]}},{key:"computeSize",value:function computeSize(er){return"number"==typeof er?er:"x"===er?this.width:"y"===er?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}(),Jw=function(){function Point(er,tr){hw(this,Point),this.x=er,this.y=tr}return pw(Point,[{key:"angleTo",value:function angleTo(er){return Math.atan2(er.y-this.y,er.x-this.x)}},{key:"applyTransform",value:function applyTransform(er){var tr=this.x,rr=this.y,nr=tr*er[0]+rr*er[2]+er[4],ar=tr*er[1]+rr*er[3]+er[5];this.x=nr,this.y=ar}}],[{key:"parse",value:function parse(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,rr=toNumbers(er),nr=lw(rr,2),ar=nr[0],ir=void 0===ar?tr:ar,or=nr[1],sr=void 0===or?tr:or;return new Point(ir,sr)}},{key:"parseScale",value:function parseScale(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,rr=toNumbers(er),nr=lw(rr,2),ar=nr[0],ir=void 0===ar?tr:ar,or=nr[1],sr=void 0===or?ir:or;return new Point(ir,sr)}},{key:"parsePath",value:function parsePath(er){for(var tr=toNumbers(er),rr=tr.length,nr=[],ar=0;ar<rr;ar+=2)nr.push(new Point(tr[ar],tr[ar+1]));return nr}}]),Point}(),$w=function(){function Mouse(er){hw(this,Mouse),this.screen=er,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return pw(Mouse,[{key:"isWorking",value:function isWorking(){return this.working}},{key:"start",value:function start(){if(!this.working){var er=this.screen,tr=this.onClick,rr=this.onMouseMove,nr=er.ctx.canvas;nr.onclick=tr,nr.onmousemove=rr,this.working=!0}}},{key:"stop",value:function stop(){if(this.working){var er=this.screen.ctx.canvas;this.working=!1,er.onclick=null,er.onmousemove=null}}},{key:"hasEvents",value:function hasEvents(){return this.working&&this.events.length>0}},{key:"runEvents",value:function runEvents(){if(this.working){var er=this.screen,tr=this.events,rr=this.eventElements,nr=er.ctx.canvas.style;nr&&(nr.cursor=""),tr.forEach((function(er,tr){for(var nr=er.run,ar=rr[tr];ar;)nr(ar),ar=ar.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(er,tr){if(this.working&&tr){var rr=this.events,nr=this.eventElements;rr.forEach((function(rr,ar){var ir=rr.x,or=rr.y;!nr[ar]&&tr.isPointInPath&&tr.isPointInPath(ir,or)&&(nr[ar]=er)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(er,tr){if(this.working&&tr){var rr=this.events,nr=this.eventElements;rr.forEach((function(rr,ar){var ir=rr.x,or=rr.y;!nr[ar]&&tr.isPointInBox(ir,or)&&(nr[ar]=er)}))}}},{key:"mapXY",value:function mapXY(er,tr){for(var rr=this.screen,nr=rr.window,ar=rr.ctx,ir=new Jw(er,tr),or=ar.canvas;or;)ir.x-=or.offsetLeft,ir.y-=or.offsetTop,or=or.offsetParent;return nr.scrollX&&(ir.x+=nr.scrollX),nr.scrollY&&(ir.y+=nr.scrollY),ir}},{key:"onClick",value:function onClick(er){var tr=this.mapXY((er||event).clientX,(er||event).clientY),rr=tr.x,nr=tr.y;this.events.push({type:"onclick",x:rr,y:nr,run:function run(er){er.onClick&&er.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(er){var tr=this.mapXY((er||event).clientX,(er||event).clientY),rr=tr.x,nr=tr.y;this.events.push({type:"onmousemove",x:rr,y:nr,run:function run(er){er.onMouseMove&&er.onMouseMove()}})}}]),Mouse}(),Zw="undefined"!=typeof window?window:null,ek="undefined"!=typeof fetch?fetch.bind(void 0):null,tk=function(){function Screen(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.fetch,nr=void 0===rr?ek:rr,ar=tr.window,ir=void 0===ar?Zw:ar;hw(this,Screen),this.ctx=er,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Yw,this.mouse=new $w(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=ir,this.fetch=nr}return pw(Screen,[{key:"wait",value:function wait(er){this.waits.push(er)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function isReady(){if(this.isReadyLock)return!0;var er=this.waits.every((function(er){return er()}));return er&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=er,er}},{key:"setDefaults",value:function setDefaults(er){er.strokeStyle="rgba(0,0,0,0)",er.lineCap="butt",er.lineJoin="miter",er.miterLimit=4}},{key:"setViewBox",value:function setViewBox(er){var tr=er.document,rr=er.ctx,nr=er.aspectRatio,ar=er.width,ir=er.desiredWidth,or=er.height,sr=er.desiredHeight,lr=er.minX,cr=void 0===lr?0:lr,ur=er.minY,dr=void 0===ur?0:ur,hr=er.refX,pr=er.refY,Ar=er.clip,fr=void 0!==Ar&&Ar,gr=er.clipX,mr=void 0===gr?0:gr,_r=er.clipY,vr=void 0===_r?0:_r,yr=compressSpaces(nr).replace(/^defer\s/,"").split(" "),br=lw(yr,2),wr=br[0]||"xMidYMid",kr=br[1]||"meet",xr=ar/ir,Sr=or/sr,Cr=Math.min(xr,Sr),Br=Math.max(xr,Sr),Er=ir,Nr=sr;"meet"===kr&&(Er*=Cr,Nr*=Cr),"slice"===kr&&(Er*=Br,Nr*=Br);var Lr=new Xw(tr,"refX",hr),Pr=new Xw(tr,"refY",pr),Tr=Lr.hasValue()&&Pr.hasValue();if(Tr&&rr.translate(-Cr*Lr.getPixels("x"),-Cr*Pr.getPixels("y")),fr){var Fr=Cr*mr,Ur=Cr*vr;rr.beginPath(),rr.moveTo(Fr,Ur),rr.lineTo(ar,Ur),rr.lineTo(ar,or),rr.lineTo(Fr,or),rr.closePath(),rr.clip()}if(!Tr){var Ir="meet"===kr&&Cr===Sr,Rr="slice"===kr&&Br===Sr,Mr="meet"===kr&&Cr===xr,Qr="slice"===kr&&Br===xr;/^xMid/.test(wr)&&(Ir||Rr)&&rr.translate(ar/2-Er/2,0),/YMid$/.test(wr)&&(Mr||Qr)&&rr.translate(0,or/2-Nr/2),/^xMax/.test(wr)&&(Ir||Rr)&&rr.translate(ar-Er,0),/YMax$/.test(wr)&&(Mr||Qr)&&rr.translate(0,or-Nr)}switch(!0){case"none"===wr:rr.scale(xr,Sr);break;case"meet"===kr:rr.scale(Cr,Cr);break;case"slice"===kr:rr.scale(Br,Br)}rr.translate(-cr,-dr)}},{key:"start",value:function start(er){var tr=this,rr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nr=rr.enableRedraw,ar=void 0!==nr&&nr,ir=rr.ignoreMouse,or=void 0!==ir&&ir,sr=rr.ignoreAnimation,lr=void 0!==sr&&sr,cr=rr.ignoreDimensions,ur=void 0!==cr&&cr,dr=rr.ignoreClear,hr=void 0!==dr&&dr,pr=rr.forceRedraw,Ar=rr.scaleWidth,fr=rr.scaleHeight,gr=rr.offsetX,mr=rr.offsetY,_r=this.FRAMERATE,vr=this.mouse,yr=1e3/_r;if(this.frameDuration=yr,this.readyPromise=new Promise((function(er){tr.resolveReady=er})),this.isReady()&&this.render(er,ur,hr,Ar,fr,gr,mr),ar){var br=Date.now(),wr=br,kr=0,xr=function tick(){br=Date.now(),(kr=br-wr)>=yr&&(wr=br-kr%yr,tr.shouldUpdate(lr,pr)&&(tr.render(er,ur,hr,Ar,fr,gr,mr),vr.runEvents())),tr.intervalId=xw(tick)};or||vr.start(),this.intervalId=xw(xr)}}},{key:"stop",value:function stop(){this.intervalId&&(xw.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(er,tr){if(!er){var rr=this.frameDuration,shouldUpdate=this.animations.reduce((function(er,tr){return tr.update(rr)||er}),!1);if(shouldUpdate)return!0}return!("function"!=typeof tr||!tr())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(er,tr,rr,nr,ar,ir,or){var sr=this.CLIENT_WIDTH,lr=this.CLIENT_HEIGHT,cr=this.viewPort,ur=this.ctx,dr=this.isFirstRender,hr=ur.canvas;cr.clear(),hr.width&&hr.height?cr.setCurrent(hr.width,hr.height):cr.setCurrent(sr,lr);var pr=er.getStyle("width"),Ar=er.getStyle("height");!tr&&(dr||"number"!=typeof nr&&"number"!=typeof ar)&&(pr.hasValue()&&(hr.width=pr.getPixels("x"),hr.style&&(hr.style.width="".concat(hr.width,"px"))),Ar.hasValue()&&(hr.height=Ar.getPixels("y"),hr.style&&(hr.style.height="".concat(hr.height,"px"))));var fr=hr.clientWidth||hr.width,gr=hr.clientHeight||hr.height;if(tr&&pr.hasValue()&&Ar.hasValue()&&(fr=pr.getPixels("x"),gr=Ar.getPixels("y")),cr.setCurrent(fr,gr),"number"==typeof ir&&er.getAttribute("x",!0).setValue(ir),"number"==typeof or&&er.getAttribute("y",!0).setValue(or),"number"==typeof nr||"number"==typeof ar){var mr=toNumbers(er.getAttribute("viewBox").getString()),_r=0,vr=0;if("number"==typeof nr){var yr=er.getStyle("width");yr.hasValue()?_r=yr.getPixels("x")/nr:isNaN(mr[2])||(_r=mr[2]/nr)}if("number"==typeof ar){var br=er.getStyle("height");br.hasValue()?vr=br.getPixels("y")/ar:isNaN(mr[3])||(vr=mr[3]/ar)}_r||(_r=vr),vr||(vr=_r),er.getAttribute("width",!0).setValue(nr),er.getAttribute("height",!0).setValue(ar);var wr=er.getStyle("transform",!0,!0);wr.setValue("".concat(wr.getString()," scale(").concat(1/_r,", ").concat(1/vr,")"))}rr||ur.clearRect(0,0,fr,gr),er.render(ur),dr&&(this.isFirstRender=!1)}}]),Screen}();tk.defaultWindow=Zw,tk.defaultFetch=ek;var rk=tk.defaultFetch,nk="undefined"!=typeof DOMParser?DOMParser:null,ak=function(){function Parser(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tr=er.fetch,rr=void 0===tr?rk:tr,nr=er.DOMParser,ar=void 0===nr?nk:nr;hw(this,Parser),this.fetch=rr,this.DOMParser=ar}var er,tr;return pw(Parser,[{key:"parse",value:(tr=uw(cw.mark((function _callee(er){return cw.wrap((function _callee$(tr){for(;;)switch(tr.prev=tr.next){case 0:if(!/^</.test(er)){tr.next=2;break}return tr.abrupt("return",this.parseFromString(er));case 2:return tr.abrupt("return",this.load(er));case 3:case"end":return tr.stop()}}),_callee,this)}))),function parse(er){return tr.apply(this,arguments)})},{key:"parseFromString",value:function parseFromString(er){var tr=new this.DOMParser;try{return this.checkDocument(tr.parseFromString(er,"image/svg+xml"))}catch(rr){return this.checkDocument(tr.parseFromString(er,"text/xml"))}}},{key:"checkDocument",value:function checkDocument(er){var tr=er.getElementsByTagName("parsererror")[0];if(tr)throw new Error(tr.textContent);return er}},{key:"load",value:(er=uw(cw.mark((function _callee2(er){var tr,rr;return cw.wrap((function _callee2$(nr){for(;;)switch(nr.prev=nr.next){case 0:return nr.next=2,this.fetch(er);case 2:return tr=nr.sent,nr.next=5,tr.text();case 5:return rr=nr.sent,nr.abrupt("return",this.parseFromString(rr));case 7:case"end":return nr.stop()}}),_callee2,this)}))),function load(tr){return er.apply(this,arguments)})}]),Parser}(),ik=function(){function Translate(er,tr){hw(this,Translate),this.type="translate",this.point=null,this.point=Jw.parse(tr)}return pw(Translate,[{key:"apply",value:function apply(er){var tr=this.point,rr=tr.x,nr=tr.y;er.translate(rr||0,nr||0)}},{key:"unapply",value:function unapply(er){var tr=this.point,rr=tr.x,nr=tr.y;er.translate(-1*rr||0,-1*nr||0)}},{key:"applyToPoint",value:function applyToPoint(er){var tr=this.point,rr=tr.x,nr=tr.y;er.applyTransform([1,0,0,1,rr||0,nr||0])}}]),Translate}(),ok=function(){function Rotate(er,tr){var rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];hw(this,Rotate),this.type="rotate",this.angle=null,this.cx=0,this.cy=0;var nr=toNumbers(tr);this.angle=new Xw(er,"angle",nr[0]),this.cx=(nr[1]||0)+(rr[0]||0),this.cy=(nr[2]||0)+(rr[1]||0)}return pw(Rotate,[{key:"apply",value:function apply(er){var tr=this.cx,rr=this.cy,nr=this.angle;er.translate(tr,rr),er.rotate(nr.getRadians()),er.translate(-tr,-rr)}},{key:"unapply",value:function unapply(er){var tr=this.cx,rr=this.cy,nr=this.angle;er.translate(tr,rr),er.rotate(-1*nr.getRadians()),er.translate(-tr,-rr)}},{key:"applyToPoint",value:function applyToPoint(er){var tr=this.cx,rr=this.cy,nr=this.angle.getRadians();er.applyTransform([1,0,0,1,tr||0,rr||0]),er.applyTransform([Math.cos(nr),Math.sin(nr),-Math.sin(nr),Math.cos(nr),0,0]),er.applyTransform([1,0,0,1,-tr||0,-rr||0])}}]),Rotate}(),sk=function(){function Scale(er,tr){hw(this,Scale),this.type="scale",this.scale=null;var rr=Jw.parseScale(tr);0!==rr.x&&0!==rr.y||(rr.x=1e-8,rr.y=1e-8),this.scale=rr}return pw(Scale,[{key:"apply",value:function apply(er){var tr=this.scale,rr=tr.x,nr=tr.y;er.scale(rr,nr||rr)}},{key:"unapply",value:function unapply(er){var tr=this.scale,rr=tr.x,nr=tr.y;er.scale(1/rr,1/nr||rr)}},{key:"applyToPoint",value:function applyToPoint(er){var tr=this.scale,rr=tr.x,nr=tr.y;er.applyTransform([rr||0,0,0,nr||0,0,0])}}]),Scale}(),lk=function(){function Matrix(er,tr){hw(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(tr)}return pw(Matrix,[{key:"apply",value:function apply(er){var tr=this.matrix;er.transform(tr[0],tr[1],tr[2],tr[3],tr[4],tr[5])}},{key:"unapply",value:function unapply(er){var tr=this.matrix,rr=tr[0],nr=tr[2],ar=tr[4],ir=tr[1],or=tr[3],sr=tr[5],lr=1/(rr*(1*or-0*sr)-nr*(1*ir-0*sr)+ar*(0*ir-0*or));er.transform(lr*(1*or-0*sr),lr*(0*sr-1*ir),lr*(0*ar-1*nr),lr*(1*rr-0*ar),lr*(nr*sr-ar*or),lr*(ar*ir-rr*sr))}},{key:"applyToPoint",value:function applyToPoint(er){er.applyTransform(this.matrix)}}]),Matrix}();function _isNativeReflectConstruct$1(){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(er){return!1}}var ck=function(er){Pw(Skew,lk);var tr=function _createSuper$1(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$1()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(Skew);function Skew(er,rr){var nr;return hw(this,Skew),(nr=tr.call(this,er,rr)).type="skew",nr.angle=null,nr.angle=new Xw(er,"angle",rr),nr}return Skew}();function _isNativeReflectConstruct$1$1(){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(er){return!1}}var uk=function(er){Pw(SkewX,ck);var tr=function _createSuper$1$1(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$1$1()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(SkewX);function SkewX(er,rr){var nr;return hw(this,SkewX),(nr=tr.call(this,er,rr)).type="skewX",nr.matrix=[1,0,Math.tan(nr.angle.getRadians()),1,0,0],nr}return SkewX}();function _isNativeReflectConstruct$2(){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(er){return!1}}var dk=function(er){Pw(SkewY,ck);var tr=function _createSuper$2(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$2()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(SkewY);function SkewY(er,rr){var nr;return hw(this,SkewY),(nr=tr.call(this,er,rr)).type="skewY",nr.matrix=[1,Math.tan(nr.angle.getRadians()),0,1,0,0],nr}return SkewY}();var hk=function(){function Transform(er,tr,rr){var nr=this;hw(this,Transform),this.document=er,this.transforms=[];var ar=function parseTransforms(er){return compressSpaces(er).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(tr),ir=rr?toNumbers(rr):[];ar.forEach((function(er){if("none"!==er){var tr=function parseTransform$1(er){var tr=er.split("("),rr=lw(tr,2),nr=rr[0],ar=rr[1];return[nr.trim(),ar.trim().replace(")","")]}(er),rr=lw(tr,2),ar=rr[0],or=rr[1],sr=Transform.transformTypes[ar];void 0!==sr&&nr.transforms.push(new sr(nr.document,or,ir))}}))}return pw(Transform,[{key:"apply",value:function apply(er){for(var tr=this.transforms,rr=tr.length,nr=0;nr<rr;nr++)tr[nr].apply(er)}},{key:"unapply",value:function unapply(er){for(var tr=this.transforms,rr=tr.length-1;rr>=0;rr--)tr[rr].unapply(er)}},{key:"applyToPoint",value:function applyToPoint(er){for(var tr=this.transforms,rr=tr.length,nr=0;nr<rr;nr++)tr[nr].applyToPoint(er)}}],[{key:"fromElement",value:function fromElement(er,tr){var rr=tr.getStyle("transform",!1,!0),nr=tr.getStyle("transform-origin",!1,!0);return rr.hasValue()?new Transform(er,rr.getString(),nr.getString()):null}}]),Transform}();hk.transformTypes={translate:ik,rotate:ok,scale:sk,matrix:lk,skewX:uk,skewY:dk};var pk=function(){function Element(er,tr){var rr=this,nr=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(hw(this,Element),this.document=er,this.node=tr,this.captureTextNodes=nr,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],tr&&1===tr.nodeType){if(Array.from(tr.attributes).forEach((function(tr){var nr=normalizeAttributeName(tr.nodeName);rr.attributes[nr]=new Xw(er,nr,tr.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var ar=this.getAttribute("style").getString().split(";").map((function(er){return er.trim()}));ar.forEach((function(tr){if(tr){var nr=tr.split(":").map((function(er){return er.trim()})),ar=lw(nr,2),ir=ar[0],or=ar[1];rr.styles[ir]=new Xw(er,ir,or)}}))}var ir=er.definitions,or=this.getAttribute("id");or.hasValue()&&(ir[or.getValue()]||(ir[or.getValue()]=this)),Array.from(tr.childNodes).forEach((function(tr){if(1===tr.nodeType)rr.addChild(tr);else if(nr&&(3===tr.nodeType||4===tr.nodeType)){var ar=er.createTextNode(tr);ar.getText().length>0&&rr.addChild(ar)}}))}}return pw(Element,[{key:"getAttribute",value:function getAttribute(er){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1],rr=this.attributes[er];if(!rr&&tr){var nr=new Xw(this.document,er,"");return this.attributes[er]=nr,nr}return rr||Xw.empty(this.document)}},{key:"getHrefAttribute",value:function getHrefAttribute(){for(var er in this.attributes)if("href"===er||/:href$/.test(er))return this.attributes[er];return Xw.empty(this.document)}},{key:"getStyle",value:function getStyle(er){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1],rr=arguments.length>2&&void 0!==arguments[2]&&arguments[2],nr=this.styles[er];if(nr)return nr;var ar=this.getAttribute(er);if(ar&&ar.hasValue())return this.styles[er]=ar,ar;if(!rr){var ir=this.parent;if(ir){var or=ir.getStyle(er);if(or&&or.hasValue())return or}}if(tr){var sr=new Xw(this.document,er,"");return this.styles[er]=sr,sr}return nr||Xw.empty(this.document)}},{key:"render",value:function render(er){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(er.save(),this.getStyle("mask").hasValue()){var tr=this.getStyle("mask").getDefinition();tr&&(this.applyEffects(er),tr.apply(er,this))}else if("none"!==this.getStyle("filter").getValue("none")){var rr=this.getStyle("filter").getDefinition();rr&&(this.applyEffects(er),rr.apply(er,this))}else this.setContext(er),this.renderChildren(er),this.clearContext(er);er.restore()}}},{key:"setContext",value:function setContext(er){}},{key:"applyEffects",value:function applyEffects(er){var tr=hk.fromElement(this.document,this);tr&&tr.apply(er);var rr=this.getStyle("clip-path",!1,!0);if(rr.hasValue()){var nr=rr.getDefinition();nr&&nr.apply(er)}}},{key:"clearContext",value:function clearContext(er){}},{key:"renderChildren",value:function renderChildren(er){this.children.forEach((function(tr){tr.render(er)}))}},{key:"addChild",value:function addChild(er){var tr=er instanceof Element?er:this.document.createElement(er);tr.parent=this,Element.ignoreChildTypes.includes(tr.type)||this.children.push(tr)}},{key:"matchesSelector",value:function matchesSelector(er){var tr=this.node;if("function"==typeof tr.matches)return tr.matches(er);var rr=tr.getAttribute("class");return!(!rr||""===rr)&&rr.split(" ").some((function(tr){if(".".concat(tr)===er)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var er=this.document,tr=er.styles,rr=er.stylesSpecificity;for(var nr in tr)if("@"!==nr[0]&&this.matchesSelector(nr)){var ar=tr[nr],ir=rr[nr];if(ar)for(var or in ar){var sr=this.stylesSpecificity[or];void 0===sr&&(sr="000"),ir>=sr&&(this.styles[or]=ar[or],this.stylesSpecificity[or]=ir)}}}},{key:"removeStyles",value:function removeStyles(er,tr){return tr.reduce((function(tr,rr){var nr=er.getStyle(rr);if(!nr.hasValue())return tr;var ar=nr.getString();return nr.setValue(""),[].concat(Iw(tr),[[rr,ar]])}),[])}},{key:"restoreStyles",value:function restoreStyles(er,tr){tr.forEach((function(tr){var rr=lw(tr,2),nr=rr[0],ar=rr[1];er.getStyle(nr,!0).setValue(ar)}))}}]),Element}();function _isNativeReflectConstruct$3(){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(er){return!1}}pk.ignoreChildTypes=["title"];var Ak=function(er){Pw(UnknownElement,pk);var tr=function _createSuper$3(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$3()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(UnknownElement);function UnknownElement(er,rr,nr){return hw(this,UnknownElement),tr.call(this,er,rr,nr)}return UnknownElement}();function wrapFontFamily(er){var tr=er.trim();return/^('|")/.test(tr)?tr:'"'.concat(tr,'"')}function prepareFontStyle(er){if(!er)return"";var tr=er.trim().toLowerCase();switch(tr){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return tr;default:return/^oblique\s+(-|)\d+deg$/.test(tr)?tr:""}}function prepareFontWeight(er){if(!er)return"";var tr=er.trim().toLowerCase();switch(tr){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return tr;default:return/^[\d.]+$/.test(tr)?tr:""}}var fk=function(){function Font(er,tr,rr,nr,ar,ir){hw(this,Font);var or=ir?"string"==typeof ir?Font.parse(ir):ir:{};this.fontFamily=ar||or.fontFamily,this.fontSize=nr||or.fontSize,this.fontStyle=er||or.fontStyle,this.fontWeight=rr||or.fontWeight,this.fontVariant=tr||or.fontVariant}return pw(Font,[{key:"toString",value:function toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(er=this.fontFamily,void 0===Jb?er:er.trim().split(",").map(wrapFontFamily).join(","))].join(" ").trim();var er}}],[{key:"parse",value:function parse(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",tr=arguments.length>1?arguments[1]:void 0,rr="",nr="",ar="",ir="",or="",sr=compressSpaces(er).trim().split(" "),lr={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return sr.forEach((function(er){switch(!0){case!lr.fontStyle&&Font.styles.includes(er):"inherit"!==er&&(rr=er),lr.fontStyle=!0;break;case!lr.fontVariant&&Font.variants.includes(er):"inherit"!==er&&(nr=er),lr.fontStyle=!0,lr.fontVariant=!0;break;case!lr.fontWeight&&Font.weights.includes(er):"inherit"!==er&&(ar=er),lr.fontStyle=!0,lr.fontVariant=!0,lr.fontWeight=!0;break;case!lr.fontSize:if("inherit"!==er){var tr=er.split("/"),sr=lw(tr,1);ir=sr[0]}lr.fontStyle=!0,lr.fontVariant=!0,lr.fontWeight=!0,lr.fontSize=!0;break;default:"inherit"!==er&&(or+=er)}})),new Font(rr,nr,ar,ir,or,tr)}}]),Font}();fk.styles="normal|italic|oblique|inherit",fk.variants="normal|small-caps|inherit",fk.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var gk=function(){function BoundingBox(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,nr=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;hw(this,BoundingBox),this.x1=er,this.y1=tr,this.x2=rr,this.y2=nr,this.addPoint(er,tr),this.addPoint(rr,nr)}return pw(BoundingBox,[{key:"addPoint",value:function addPoint(er,tr){void 0!==er&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=er,this.x2=er),er<this.x1&&(this.x1=er),er>this.x2&&(this.x2=er)),void 0!==tr&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=tr,this.y2=tr),tr<this.y1&&(this.y1=tr),tr>this.y2&&(this.y2=tr))}},{key:"addX",value:function addX(er){this.addPoint(er,null)}},{key:"addY",value:function addY(er){this.addPoint(null,er)}},{key:"addBoundingBox",value:function addBoundingBox(er){if(er){var tr=er.x1,rr=er.y1,nr=er.x2,ar=er.y2;this.addPoint(tr,rr),this.addPoint(nr,ar)}}},{key:"sumCubic",value:function sumCubic(er,tr,rr,nr,ar){return Math.pow(1-er,3)*tr+3*Math.pow(1-er,2)*er*rr+3*(1-er)*Math.pow(er,2)*nr+Math.pow(er,3)*ar}},{key:"bezierCurveAdd",value:function bezierCurveAdd(er,tr,rr,nr,ar){var ir=6*tr-12*rr+6*nr,or=-3*tr+9*rr-9*nr+3*ar,sr=3*rr-3*tr;if(0!==or){var lr=Math.pow(ir,2)-4*sr*or;if(!(lr<0)){var cr=(-ir+Math.sqrt(lr))/(2*or);0<cr&&cr<1&&(er?this.addX(this.sumCubic(cr,tr,rr,nr,ar)):this.addY(this.sumCubic(cr,tr,rr,nr,ar)));var ur=(-ir-Math.sqrt(lr))/(2*or);0<ur&&ur<1&&(er?this.addX(this.sumCubic(ur,tr,rr,nr,ar)):this.addY(this.sumCubic(ur,tr,rr,nr,ar)))}}else{if(0===ir)return;var dr=-sr/ir;0<dr&&dr<1&&(er?this.addX(this.sumCubic(dr,tr,rr,nr,ar)):this.addY(this.sumCubic(dr,tr,rr,nr,ar)))}}},{key:"addBezierCurve",value:function addBezierCurve(er,tr,rr,nr,ar,ir,or,sr){this.addPoint(er,tr),this.addPoint(or,sr),this.bezierCurveAdd(!0,er,rr,ar,or),this.bezierCurveAdd(!1,tr,nr,ir,sr)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(er,tr,rr,nr,ar,ir){var or=er+2/3*(rr-er),sr=tr+2/3*(nr-tr),lr=or+1/3*(ar-er),cr=sr+1/3*(ir-tr);this.addBezierCurve(er,tr,or,lr,sr,cr,ar,ir)}},{key:"isPointInBox",value:function isPointInBox(er,tr){var rr=this.x1,nr=this.y1,ar=this.x2,ir=this.y2;return rr<=er&&er<=ar&&nr<=tr&&tr<=ir}},{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 _isNativeReflectConstruct$4(){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(er){return!1}}var mk=function(er){Pw(RenderedElement,pk);var tr=function _createSuper$4(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$4()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(RenderedElement);function RenderedElement(){var er;return hw(this,RenderedElement),(er=tr.apply(this,arguments)).modifiedEmSizeStack=!1,er}return pw(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var er=1,tr=this;tr;){var rr=tr.getStyle("opacity",!1,!0);rr.hasValue()&&(er*=rr.getNumber()),tr=tr.parent}return er}},{key:"setContext",value:function setContext(er){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!tr){var rr=this.getStyle("fill"),nr=this.getStyle("fill-opacity"),ar=this.getStyle("stroke"),ir=this.getStyle("stroke-opacity");if(rr.isUrlDefinition()){var or=rr.getFillStyleDefinition(this,nr);or&&(er.fillStyle=or)}else if(rr.hasValue()){"currentColor"===rr.getString()&&rr.setValue(this.getStyle("color").getColor());var sr=rr.getColor();"inherit"!==sr&&(er.fillStyle="none"===sr?"rgba(0,0,0,0)":sr)}if(nr.hasValue()){var lr=new Xw(this.document,"fill",er.fillStyle).addOpacity(nr).getColor();er.fillStyle=lr}if(ar.isUrlDefinition()){var cr=ar.getFillStyleDefinition(this,ir);cr&&(er.strokeStyle=cr)}else if(ar.hasValue()){"currentColor"===ar.getString()&&ar.setValue(this.getStyle("color").getColor());var ur=ar.getString();"inherit"!==ur&&(er.strokeStyle="none"===ur?"rgba(0,0,0,0)":ur)}if(ir.hasValue()){var dr=new Xw(this.document,"stroke",er.strokeStyle).addOpacity(ir).getString();er.strokeStyle=dr}var hr=this.getStyle("stroke-width");if(hr.hasValue()){var pr=hr.getPixels();er.lineWidth=pr||1e-8}var Ar=this.getStyle("stroke-linecap"),fr=this.getStyle("stroke-linejoin"),gr=this.getStyle("stroke-miterlimit"),mr=this.getStyle("paint-order"),_r=this.getStyle("stroke-dasharray"),vr=this.getStyle("stroke-dashoffset");if(Ar.hasValue()&&(er.lineCap=Ar.getString()),fr.hasValue()&&(er.lineJoin=fr.getString()),gr.hasValue()&&(er.miterLimit=gr.getNumber()),mr.hasValue()&&(er.paintOrder=mr.getValue()),_r.hasValue()&&"none"!==_r.getString()){var yr=toNumbers(_r.getString());void 0!==er.setLineDash?er.setLineDash(yr):void 0!==er.webkitLineDash?er.webkitLineDash=yr:void 0===er.mozDash||1===yr.length&&0===yr[0]||(er.mozDash=yr);var br=vr.getPixels();void 0!==er.lineDashOffset?er.lineDashOffset=br:void 0!==er.webkitLineDashOffset?er.webkitLineDashOffset=br:void 0!==er.mozDashOffset&&(er.mozDashOffset=br)}}if(this.modifiedEmSizeStack=!1,void 0!==er.font){var wr=this.getStyle("font"),kr=this.getStyle("font-style"),xr=this.getStyle("font-variant"),Sr=this.getStyle("font-weight"),Cr=this.getStyle("font-size"),Br=this.getStyle("font-family"),Er=new fk(kr.getString(),xr.getString(),Sr.getString(),Cr.hasValue()?"".concat(Cr.getPixels(!0),"px"):"",Br.getString(),fk.parse(wr.getString(),er.font));kr.setValue(Er.fontStyle),xr.setValue(Er.fontVariant),Sr.setValue(Er.fontWeight),Cr.setValue(Er.fontSize),Br.setValue(Er.fontFamily),er.font=Er.toString(),Cr.isPixels()&&(this.document.emSize=Cr.getPixels(),this.modifiedEmSizeStack=!0)}tr||(this.applyEffects(er),er.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(er){Mw(Nw(RenderedElement.prototype),"clearContext",this).call(this,er),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}();function _isNativeReflectConstruct$5(){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(er){return!1}}var _k=function(er){Pw(TextElement,mk);var tr=function _createSuper$5(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$5()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(TextElement);function TextElement(er,rr,nr){var ar;return hw(this,TextElement),(ar=tr.call(this,er,rr,(this instanceof TextElement?this.constructor:void 0)===TextElement||nr)).type="text",ar.x=0,ar.y=0,ar.measureCache=-1,ar}return pw(TextElement,[{key:"setContext",value:function setContext(er){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Mw(Nw(TextElement.prototype),"setContext",this).call(this,er,tr);var rr=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();rr&&(er.textBaseline=rr)}},{key:"initializeCoordinates",value:function initializeCoordinates(er){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var tr=this.getAttribute("dx"),rr=this.getAttribute("dy");tr.hasValue()&&(this.x+=tr.getPixels("x")),rr.hasValue()&&(this.y+=rr.getPixels("y")),this.x+=this.getAnchorDelta(er,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(er){var tr=this;if("text"!==this.type)return this.getTElementBoundingBox(er);this.initializeCoordinates(er);var rr=null;return this.children.forEach((function(nr,ar){var ir=tr.getChildBoundingBox(er,tr,tr,ar);rr?rr.addBoundingBox(ir):rr=ir})),rr}},{key:"getFontSize",value:function getFontSize(){var er=this.document,tr=this.parent,rr=fk.parse(er.ctx.font).fontSize;return tr.getStyle("font-size").getNumber(rr)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(er){var tr=this.getFontSize();return new gk(this.x,this.y-tr,this.x+this.measureText(er),this.y)}},{key:"getGlyph",value:function getGlyph(er,tr,rr){var nr=tr[rr],ar=null;if(er.isArabic){var ir=tr.length,or=tr[rr-1],sr=tr[rr+1],lr="isolated";(0===rr||" "===or)&&rr<ir-2&&" "!==sr&&(lr="terminal"),rr>0&&" "!==or&&rr<ir-2&&" "!==sr&&(lr="medial"),rr>0&&" "!==or&&(rr===ir-1||" "===sr)&&(lr="initial"),void 0!==er.glyphs[nr]&&((ar=er.glyphs[nr][lr])||"glyph"!==er.glyphs[nr].type||(ar=er.glyphs[nr]))}else ar=er.glyphs[nr];return ar||(ar=er.missingGlyph),ar}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(er){var tr=er||this.node,rr=Array.from(tr.parentNode.childNodes),nr=rr.indexOf(tr),ar=rr.length-1,ir=compressSpaces(tr.value||tr.text||tr.textContent||"");return 0===nr&&(ir=trimLeft$1(ir)),nr===ar&&(ir=trimRight$1(ir)),ir}},{key:"renderChildren",value:function renderChildren(er){var tr=this;if("text"===this.type){this.initializeCoordinates(er),this.children.forEach((function(rr,nr){tr.renderChild(er,tr,tr,nr)}));var rr=this.document.screen.mouse;rr.isWorking()&&rr.checkBoundingBox(this,this.getBoundingBox(er))}else this.renderTElementChildren(er)}},{key:"renderTElementChildren",value:function renderTElementChildren(er){var tr=this.document,rr=this.parent,nr=this.getText(),ar=rr.getStyle("font-family").getDefinition();if(ar)for(var ir=ar.fontFace.unitsPerEm,or=fk.parse(tr.ctx.font),sr=rr.getStyle("font-size").getNumber(or.fontSize),lr=rr.getStyle("font-style").getString(or.fontStyle),cr=sr/ir,ur=ar.isRTL?nr.split("").reverse().join(""):nr,dr=toNumbers(rr.getAttribute("dx").getString()),hr=ur.length,pr=0;pr<hr;pr++){var Ar=this.getGlyph(ar,ur,pr);er.translate(this.x,this.y),er.scale(cr,-cr);var fr=er.lineWidth;er.lineWidth=er.lineWidth*ir/sr,"italic"===lr&&er.transform(1,0,.4,1,0,0),Ar.render(er),"italic"===lr&&er.transform(1,0,-.4,1,0,0),er.lineWidth=fr,er.scale(1/cr,-1/cr),er.translate(-this.x,-this.y),this.x+=sr*(Ar.horizAdvX||ar.horizAdvX)/ir,void 0===dr[pr]||isNaN(dr[pr])||(this.x+=dr[pr])}else{var gr=this.x,mr=this.y;"stroke"===er.paintOrder?(er.strokeStyle&&er.strokeText(nr,gr,mr),er.fillStyle&&er.fillText(nr,gr,mr)):(er.fillStyle&&er.fillText(nr,gr,mr),er.strokeStyle&&er.strokeText(nr,gr,mr))}}},{key:"getAnchorDelta",value:function getAnchorDelta(er,tr,rr){var nr=this.getStyle("text-anchor").getString("start");if("start"!==nr){for(var ar=tr.children,ir=ar.length,or=null,sr=0,lr=rr;lr<ir&&(or=ar[lr],!(lr>rr&&or.getAttribute("x").hasValue()||or.getAttribute("text-anchor").hasValue()));lr++)sr+=or.measureTextRecursive(er);return-1*("end"===nr?sr:sr/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(er,tr,rr,nr){var ar=rr.children[nr];if("function"!=typeof ar.measureText)return ar;er.save(),ar.setContext(er,!0);var ir=ar.getAttribute("x"),or=ar.getAttribute("y"),sr=ar.getAttribute("dx"),lr=ar.getAttribute("dy"),cr=ar.getAttribute("text-anchor").getString("start");if(0===nr&&"textNode"!==ar.type&&(ir.hasValue()||ir.setValue(tr.getAttribute("x").getValue("0")),or.hasValue()||or.setValue(tr.getAttribute("y").getValue("0")),sr.hasValue()||sr.setValue(tr.getAttribute("dx").getValue("0")),lr.hasValue()||lr.setValue(tr.getAttribute("dy").getValue("0"))),ir.hasValue()){if(ar.x=ir.getPixels("x")+tr.getAnchorDelta(er,rr,nr),"start"!==cr){var ur=ar.measureTextRecursive(er);ar.x+=-1*("end"===cr?ur:ur/2)}sr.hasValue()&&(ar.x+=sr.getPixels("x"))}else{if("start"!==cr){var dr=ar.measureTextRecursive(er);tr.x+=-1*("end"===cr?dr:dr/2)}sr.hasValue()&&(tr.x+=sr.getPixels("x")),ar.x=tr.x}return tr.x=ar.x+ar.measureText(er),or.hasValue()?(ar.y=or.getPixels("y"),lr.hasValue()&&(ar.y+=lr.getPixels("y"))):(lr.hasValue()&&(tr.y+=lr.getPixels("y")),ar.y=tr.y),tr.y=ar.y,ar.clearContext(er),er.restore(),ar}},{key:"getChildBoundingBox",value:function getChildBoundingBox(er,tr,rr,nr){var ar=this.adjustChildCoordinates(er,tr,rr,nr),ir=ar.getBoundingBox(er);return ir?(ar.children.forEach((function(rr,nr){var or=tr.getChildBoundingBox(er,tr,ar,nr);ir.addBoundingBox(or)})),ir):null}},{key:"renderChild",value:function renderChild(er,tr,rr,nr){var ar=this.adjustChildCoordinates(er,tr,rr,nr);ar.render(er),ar.children.forEach((function(rr,nr){tr.renderChild(er,tr,ar,nr)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(er){return this.children.reduce((function(tr,rr){return tr+rr.measureTextRecursive(er)}),this.measureText(er))}},{key:"measureText",value:function measureText(er){var tr=this.measureCache;if(~tr)return tr;var rr=this.getText(),nr=this.measureTargetText(er,rr);return this.measureCache=nr,nr}},{key:"measureTargetText",value:function measureTargetText(er,tr){if(!tr.length)return 0;var rr=this.parent,nr=rr.getStyle("font-family").getDefinition();if(nr){for(var ar=this.getFontSize(),ir=nr.isRTL?tr.split("").reverse().join(""):tr,or=toNumbers(rr.getAttribute("dx").getString()),sr=ir.length,lr=0,cr=0;cr<sr;cr++){lr+=(this.getGlyph(nr,ir,cr).horizAdvX||nr.horizAdvX)*ar/nr.fontFace.unitsPerEm,void 0===or[cr]||isNaN(or[cr])||(lr+=or[cr])}return lr}if(!er.measureText)return 10*tr.length;er.save(),this.setContext(er,!0);var ur=er.measureText(tr).width;return this.clearContext(er),er.restore(),ur}}]),TextElement}();function _isNativeReflectConstruct$6(){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(er){return!1}}var vk=function(er){Pw(TSpanElement,_k);var tr=function _createSuper$6(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$6()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(TSpanElement);function TSpanElement(er,rr,nr){var ar;return hw(this,TSpanElement),(ar=tr.call(this,er,rr,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||nr)).type="tspan",ar.text=ar.children.length>0?"":ar.getTextFromNode(),ar}return pw(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}();function _isNativeReflectConstruct$7(){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(er){return!1}}var yk=function(er){Pw(TextNode,vk);var tr=function _createSuper$7(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$7()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(TextNode);function TextNode(){var er;return hw(this,TextNode),(er=tr.apply(this,arguments)).type="textNode",er}return TextNode}();var bk=function(){function PathParser(er){hw(this,PathParser),this.control=null,this.start=null,this.current=null,this.command="",this.tokens=[],this.i=-1,this.previousCommand="",this.points=[],this.angles=[],this.tokens=function preparePath(er){return compressSpaces(er.replace(/,/gm," ").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/([0-9])([+\-])/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/([Aa](?:\s+(?:[0-9]*\.)?[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $2 $3 ")).trim()}(er).split(" ")}return pw(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command="",this.previousCommand="",this.start=new Jw(0,0),this.control=new Jw(0,0),this.current=new Jw(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function isEnd(){return this.i>=this.tokens.length-1}},{key:"isCommandOrEnd",value:function isCommandOrEnd(){if(this.isEnd())return!0;var er=this.i,tr=this.tokens;return/^[A-Za-z]$/.test(tr[er+1])}},{key:"isRelativeCommand",value:function isRelativeCommand(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0;default:return!1}}},{key:"getToken",value:function getToken(){return this.i++,this.tokens[this.i]}},{key:"getScalar",value:function getScalar(){return parseFloat(this.getToken())}},{key:"nextCommand",value:function nextCommand(){this.previousCommand=this.command,this.command=this.getToken()}},{key:"getPoint",value:function getPoint(){var er=new Jw(this.getScalar(),this.getScalar());return this.makeAbsolute(er)}},{key:"getAsControlPoint",value:function getAsControlPoint(){var er=this.getPoint();return this.control=er,er}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(){var er=this.getPoint();return this.current=er,er}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var er=this.previousCommand.toLowerCase();if("c"!==er&&"s"!==er&&"q"!==er&&"t"!==er)return this.current;var tr=this.current,rr=tr.x,nr=tr.y,ar=this.control,ir=ar.x,or=ar.y;return new Jw(2*rr-ir,2*nr-or)}},{key:"makeAbsolute",value:function makeAbsolute(er){if(this.isRelativeCommand()){var tr=this.current,rr=tr.x,nr=tr.y;er.x+=rr,er.y+=nr}return er}},{key:"addMarker",value:function addMarker(er,tr,rr){var nr=this.points,ar=this.angles;rr&&ar.length>0&&!ar[ar.length-1]&&(ar[ar.length-1]=nr[nr.length-1].angleTo(rr)),this.addMarkerAngle(er,tr?tr.angleTo(er):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(er,tr){this.points.push(er),this.angles.push(tr)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var er=this.angles,tr=er.length,rr=0;rr<tr;rr++)if(!er[rr])for(var nr=rr+1;nr<tr;nr++)if(er[nr]){er[rr]=er[nr];break}return er}}]),PathParser}();function _isNativeReflectConstruct$8(){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(er){return!1}}var wk=function(er){Pw(PathElement,mk);var tr=function _createSuper$8(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$8()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(PathElement);function PathElement(er,rr,nr){var ar;return hw(this,PathElement),(ar=tr.call(this,er,rr,nr)).type="path",ar.pathParser=null,ar.pathParser=new bk(ar.getAttribute("d").getString()),ar}return pw(PathElement,[{key:"path",value:function path(er){var tr=this.pathParser,rr=new gk;for(tr.reset(),er&&er.beginPath();!tr.isEnd();)switch(tr.nextCommand(),tr.command){case"M":case"m":this.pathM(er,rr);break;case"L":case"l":this.pathL(er,rr);break;case"H":case"h":this.pathH(er,rr);break;case"V":case"v":this.pathV(er,rr);break;case"C":case"c":this.pathC(er,rr);break;case"S":case"s":this.pathS(er,rr);break;case"Q":case"q":this.pathQ(er,rr);break;case"T":case"t":this.pathT(er,rr);break;case"A":case"a":this.pathA(er,rr);break;case"Z":case"z":this.pathZ(er,rr)}return rr}},{key:"getBoundingBox",value:function getBoundingBox(er){return this.path()}},{key:"getMarkers",value:function getMarkers(){var er=this.pathParser,tr=er.getMarkerPoints(),rr=er.getMarkerAngles();return tr.map((function(er,tr){return[er,rr[tr]]}))}},{key:"renderChildren",value:function renderChildren(er){this.path(er),this.document.screen.mouse.checkPath(this,er);var tr=this.getStyle("fill-rule");""!==er.fillStyle&&("inherit"!==tr.getString("inherit")?er.fill(tr.getString()):er.fill()),""!==er.strokeStyle&&er.stroke();var rr=this.getMarkers();if(rr){var nr=rr.length-1,ar=this.getStyle("marker-start"),ir=this.getStyle("marker-mid"),or=this.getStyle("marker-end");if(ar.isUrlDefinition()){var sr=ar.getDefinition(),lr=lw(rr[0],2),cr=lr[0],ur=lr[1];sr.render(er,cr,ur)}if(ir.isUrlDefinition())for(var dr=ir.getDefinition(),hr=1;hr<nr;hr++){var pr=lw(rr[hr],2),Ar=pr[0],fr=pr[1];dr.render(er,Ar,fr)}if(or.isUrlDefinition()){var gr=or.getDefinition(),mr=lw(rr[nr],2),_r=mr[0],vr=mr[1];gr.render(er,_r,vr)}}}},{key:"pathM",value:function pathM(er,tr){var rr=this.pathParser,nr=rr.getAsCurrentPoint(),ar=nr.x,ir=nr.y;for(rr.addMarker(nr),tr.addPoint(ar,ir),er&&er.moveTo(ar,ir),rr.start=rr.current;!rr.isCommandOrEnd();){var or=rr.getAsCurrentPoint(),sr=or.x,lr=or.y;rr.addMarker(or,rr.start),tr.addPoint(sr,lr),er&&er.lineTo(sr,lr)}}},{key:"pathL",value:function pathL(er,tr){for(var rr=this.pathParser;!rr.isCommandOrEnd();){var nr=rr.current,ar=rr.getAsCurrentPoint(),ir=ar.x,or=ar.y;rr.addMarker(ar,nr),tr.addPoint(ir,or),er&&er.lineTo(ir,or)}}},{key:"pathH",value:function pathH(er,tr){for(var rr=this.pathParser;!rr.isCommandOrEnd();){var nr=rr.current,ar=new Jw((rr.isRelativeCommand()?nr.x:0)+rr.getScalar(),nr.y);rr.addMarker(ar,nr),rr.current=ar,tr.addPoint(ar.x,ar.y),er&&er.lineTo(ar.x,ar.y)}}},{key:"pathV",value:function pathV(er,tr){for(var rr=this.pathParser;!rr.isCommandOrEnd();){var nr=rr.current,ar=new Jw(nr.x,(rr.isRelativeCommand()?nr.y:0)+rr.getScalar());rr.addMarker(ar,nr),rr.current=ar,tr.addPoint(ar.x,ar.y),er&&er.lineTo(ar.x,ar.y)}}},{key:"pathC",value:function pathC(er,tr){for(var rr=this.pathParser;!rr.isCommandOrEnd();){var nr=rr.current,ar=rr.getPoint(),ir=rr.getAsControlPoint(),or=rr.getAsCurrentPoint();rr.addMarker(or,ir,ar),tr.addBezierCurve(nr.x,nr.y,ar.x,ar.y,ir.x,ir.y,or.x,or.y),er&&er.bezierCurveTo(ar.x,ar.y,ir.x,ir.y,or.x,or.y)}}},{key:"pathS",value:function pathS(er,tr){for(var rr=this.pathParser;!rr.isCommandOrEnd();){var nr=rr.current,ar=rr.getReflectedControlPoint(),ir=rr.getAsControlPoint(),or=rr.getAsCurrentPoint();rr.addMarker(or,ir,ar),tr.addBezierCurve(nr.x,nr.y,ar.x,ar.y,ir.x,ir.y,or.x,or.y),er&&er.bezierCurveTo(ar.x,ar.y,ir.x,ir.y,or.x,or.y)}}},{key:"pathQ",value:function pathQ(er,tr){for(var rr=this.pathParser;!rr.isCommandOrEnd();){var nr=rr.current,ar=rr.getAsControlPoint(),ir=rr.getAsCurrentPoint();rr.addMarker(ir,ar,ar),tr.addQuadraticCurve(nr.x,nr.y,ar.x,ar.y,ir.x,ir.y),er&&er.quadraticCurveTo(ar.x,ar.y,ir.x,ir.y)}}},{key:"pathT",value:function pathT(er,tr){for(var rr=this.pathParser;!rr.isCommandOrEnd();){var nr=rr.current,ar=rr.getReflectedControlPoint();rr.control=ar;var ir=rr.getAsCurrentPoint();rr.addMarker(ir,ar,ar),tr.addQuadraticCurve(nr.x,nr.y,ar.x,ar.y,ir.x,ir.y),er&&er.quadraticCurveTo(ar.x,ar.y,ir.x,ir.y)}}},{key:"pathA",value:function pathA(er,tr){for(var rr=this.pathParser;!rr.isCommandOrEnd();){var nr=rr.current,ar=rr.getScalar(),ir=rr.getScalar(),or=rr.getScalar()*(Math.PI/180),sr=rr.getScalar(),lr=rr.getScalar(),cr=rr.getAsCurrentPoint(),ur=new Jw(Math.cos(or)*(nr.x-cr.x)/2+Math.sin(or)*(nr.y-cr.y)/2,-Math.sin(or)*(nr.x-cr.x)/2+Math.cos(or)*(nr.y-cr.y)/2),dr=Math.pow(ur.x,2)/Math.pow(ar,2)+Math.pow(ur.y,2)/Math.pow(ir,2);dr>1&&(ar*=Math.sqrt(dr),ir*=Math.sqrt(dr));var hr=(sr===lr?-1:1)*Math.sqrt((Math.pow(ar,2)*Math.pow(ir,2)-Math.pow(ar,2)*Math.pow(ur.y,2)-Math.pow(ir,2)*Math.pow(ur.x,2))/(Math.pow(ar,2)*Math.pow(ur.y,2)+Math.pow(ir,2)*Math.pow(ur.x,2)));isNaN(hr)&&(hr=0);var pr=new Jw(hr*ar*ur.y/ir,hr*-ir*ur.x/ar),Ar=new Jw((nr.x+cr.x)/2+Math.cos(or)*pr.x-Math.sin(or)*pr.y,(nr.y+cr.y)/2+Math.sin(or)*pr.x+Math.cos(or)*pr.y),fr=vectorsAngle([1,0],[(ur.x-pr.x)/ar,(ur.y-pr.y)/ir]),gr=[(ur.x-pr.x)/ar,(ur.y-pr.y)/ir],mr=[(-ur.x-pr.x)/ar,(-ur.y-pr.y)/ir],_r=vectorsAngle(gr,mr);vectorsRatio(gr,mr)<=-1&&(_r=Math.PI),vectorsRatio(gr,mr)>=1&&(_r=0);var vr=1-lr?1:-1,yr=fr+vr*(_r/2),br=new Jw(Ar.x+ar*Math.cos(yr),Ar.y+ir*Math.sin(yr));if(rr.addMarkerAngle(br,yr-vr*Math.PI/2),rr.addMarkerAngle(cr,yr-vr*Math.PI),tr.addPoint(cr.x,cr.y),er&&!isNaN(fr)&&!isNaN(_r)){var wr=ar>ir?ar:ir,kr=ar>ir?1:ar/ir,xr=ar>ir?ir/ar:1;er.translate(Ar.x,Ar.y),er.rotate(or),er.scale(kr,xr),er.arc(0,0,wr,fr,fr+_r,Boolean(1-lr)),er.scale(1/kr,1/xr),er.rotate(-or),er.translate(-Ar.x,-Ar.y)}}}},{key:"pathZ",value:function pathZ(er,tr){var rr=this.pathParser;er&&tr.x1!==tr.x2&&tr.y1!==tr.y2&&er.closePath(),rr.current=rr.start}}]),PathElement}();function _isNativeReflectConstruct$9(){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(er){return!1}}var kk=function(er){Pw(SVGElement,mk);var tr=function _createSuper$9(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$9()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(SVGElement);function SVGElement(){var er;return hw(this,SVGElement),(er=tr.apply(this,arguments)).type="svg",er.root=!1,er}return pw(SVGElement,[{key:"clearContext",value:function clearContext(er){Mw(Nw(SVGElement.prototype),"clearContext",this).call(this,er),this.document.screen.viewPort.removeCurrent()}},{key:"setContext",value:function setContext(er){var tr=this.document,rr=tr.screen,nr=tr.window,ar=er.canvas;if(rr.setDefaults(er),ar.style&&void 0!==er.font&&nr&&void 0!==nr.getComputedStyle){er.font=nr.getComputedStyle(ar).getPropertyValue("font");var ir=new Xw(tr,"fontSize",fk.parse(er.font).fontSize);ir.hasValue()&&(tr.rootEmSize=ir.getPixels("y"),tr.emSize=tr.rootEmSize)}Mw(Nw(SVGElement.prototype),"setContext",this).call(this,er),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0),er.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y"));var or=rr.viewPort,sr=or.width,lr=or.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 cr=this.getAttribute("refX"),ur=this.getAttribute("refY"),dr=this.getAttribute("viewBox"),hr=dr.hasValue()?toNumbers(dr.getString()):null,pr=!this.root&&"visible"!==this.getAttribute("overflow").getValue("hidden"),Ar=0,fr=0,gr=0,mr=0;hr&&(Ar=hr[0],fr=hr[1]),this.root||(sr=this.getStyle("width").getPixels("x"),lr=this.getStyle("height").getPixels("y"),"marker"===this.type&&(gr=Ar,mr=fr,Ar=0,fr=0)),rr.viewPort.setCurrent(sr,lr),hr&&(sr=hr[2],lr=hr[3]),tr.setViewBox({ctx:er,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:rr.viewPort.width,desiredWidth:sr,height:rr.viewPort.height,desiredHeight:lr,minX:Ar,minY:fr,refX:cr.getValue(),refY:ur.getValue(),clip:pr,clipX:gr,clipY:mr}),hr&&(rr.viewPort.removeCurrent(),rr.viewPort.setCurrent(sr,lr))}},{key:"resize",value:function resize(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,rr=arguments.length>2&&void 0!==arguments[2]&&arguments[2],nr=this.getAttribute("width",!0),ar=this.getAttribute("height",!0),ir=this.getAttribute("viewBox"),or=this.getAttribute("style"),sr=nr.getNumber(0),lr=ar.getNumber(0);if(rr)if("string"==typeof rr)this.getAttribute("preserveAspectRatio",!0).setValue(rr);else{var cr=this.getAttribute("preserveAspectRatio");cr.hasValue()&&cr.setValue(cr.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(nr.setValue(er),ar.setValue(tr),ir.hasValue()||ir.setValue("0 0 ".concat(sr||er," ").concat(lr||tr)),or.hasValue()){var ur=this.getStyle("width"),dr=this.getStyle("height");ur.hasValue()&&ur.setValue("".concat(er,"px")),dr.hasValue()&&dr.setValue("".concat(tr,"px"))}}}]),SVGElement}();function _isNativeReflectConstruct$a(){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(er){return!1}}var xk=function(er){Pw(RectElement,wk);var tr=function _createSuper$a(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$a()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(RectElement);function RectElement(){var er;return hw(this,RectElement),(er=tr.apply(this,arguments)).type="rect",er}return pw(RectElement,[{key:"path",value:function path(er){var tr=this.getAttribute("x").getPixels("x"),rr=this.getAttribute("y").getPixels("y"),nr=this.getStyle("width").getPixels("x"),ar=this.getStyle("height").getPixels("y"),ir=this.getAttribute("rx"),or=this.getAttribute("ry"),sr=ir.getPixels("x"),lr=or.getPixels("y");if(ir.hasValue()&&!or.hasValue()&&(lr=sr),or.hasValue()&&!ir.hasValue()&&(sr=lr),sr=Math.min(sr,nr/2),lr=Math.min(lr,ar/2),er){var cr=(Math.sqrt(2)-1)/3*4;er.beginPath(),ar>0&&nr>0&&(er.moveTo(tr+sr,rr),er.lineTo(tr+nr-sr,rr),er.bezierCurveTo(tr+nr-sr+cr*sr,rr,tr+nr,rr+lr-cr*lr,tr+nr,rr+lr),er.lineTo(tr+nr,rr+ar-lr),er.bezierCurveTo(tr+nr,rr+ar-lr+cr*lr,tr+nr-sr+cr*sr,rr+ar,tr+nr-sr,rr+ar),er.lineTo(tr+sr,rr+ar),er.bezierCurveTo(tr+sr-cr*sr,rr+ar,tr,rr+ar-lr+cr*lr,tr,rr+ar-lr),er.lineTo(tr,rr+lr),er.bezierCurveTo(tr,rr+lr-cr*lr,tr+sr-cr*sr,rr,tr+sr,rr),er.closePath())}return new gk(tr,rr,tr+nr,rr+ar)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}();function _isNativeReflectConstruct$b(){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(er){return!1}}var Sk=function(er){Pw(CircleElement,wk);var tr=function _createSuper$b(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$b()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(CircleElement);function CircleElement(){var er;return hw(this,CircleElement),(er=tr.apply(this,arguments)).type="circle",er}return pw(CircleElement,[{key:"path",value:function path(er){var tr=this.getAttribute("cx").getPixels("x"),rr=this.getAttribute("cy").getPixels("y"),nr=this.getAttribute("r").getPixels();return er&&nr>0&&(er.beginPath(),er.arc(tr,rr,nr,0,2*Math.PI,!1),er.closePath()),new gk(tr-nr,rr-nr,tr+nr,rr+nr)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}();function _isNativeReflectConstruct$c(){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(er){return!1}}var Ck=function(er){Pw(EllipseElement,wk);var tr=function _createSuper$c(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$c()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(EllipseElement);function EllipseElement(){var er;return hw(this,EllipseElement),(er=tr.apply(this,arguments)).type="ellipse",er}return pw(EllipseElement,[{key:"path",value:function path(er){var tr=(Math.sqrt(2)-1)/3*4,rr=this.getAttribute("rx").getPixels("x"),nr=this.getAttribute("ry").getPixels("y"),ar=this.getAttribute("cx").getPixels("x"),ir=this.getAttribute("cy").getPixels("y");return er&&rr>0&&nr>0&&(er.beginPath(),er.moveTo(ar+rr,ir),er.bezierCurveTo(ar+rr,ir+tr*nr,ar+tr*rr,ir+nr,ar,ir+nr),er.bezierCurveTo(ar-tr*rr,ir+nr,ar-rr,ir+tr*nr,ar-rr,ir),er.bezierCurveTo(ar-rr,ir-tr*nr,ar-tr*rr,ir-nr,ar,ir-nr),er.bezierCurveTo(ar+tr*rr,ir-nr,ar+rr,ir-tr*nr,ar+rr,ir),er.closePath()),new gk(ar-rr,ir-nr,ar+rr,ir+nr)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}();function _isNativeReflectConstruct$d(){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(er){return!1}}var Bk=function(er){Pw(LineElement,wk);var tr=function _createSuper$d(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$d()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(LineElement);function LineElement(){var er;return hw(this,LineElement),(er=tr.apply(this,arguments)).type="line",er}return pw(LineElement,[{key:"getPoints",value:function getPoints(){return[new Jw(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Jw(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(er){var tr=this.getPoints(),rr=lw(tr,2),nr=rr[0],ar=nr.x,ir=nr.y,or=rr[1],sr=or.x,lr=or.y;return er&&(er.beginPath(),er.moveTo(ar,ir),er.lineTo(sr,lr)),new gk(ar,ir,sr,lr)}},{key:"getMarkers",value:function getMarkers(){var er=this.getPoints(),tr=lw(er,2),rr=tr[0],nr=tr[1],ar=rr.angleTo(nr);return[[rr,ar],[nr,ar]]}}]),LineElement}();function _isNativeReflectConstruct$e(){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(er){return!1}}var Ek=function(er){Pw(PolylineElement,wk);var tr=function _createSuper$e(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$e()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(PolylineElement);function PolylineElement(er,rr,nr){var ar;return hw(this,PolylineElement),(ar=tr.call(this,er,rr,nr)).type="polyline",ar.points=[],ar.points=Jw.parsePath(ar.getAttribute("points").getString()),ar}return pw(PolylineElement,[{key:"path",value:function path(er){var tr=this.points,rr=lw(tr,1)[0],nr=rr.x,ar=rr.y,ir=new gk(nr,ar);return er&&(er.beginPath(),er.moveTo(nr,ar)),tr.forEach((function(tr){var rr=tr.x,nr=tr.y;ir.addPoint(rr,nr),er&&er.lineTo(rr,nr)})),ir}},{key:"getMarkers",value:function getMarkers(){var er=this.points,tr=er.length-1,rr=[];return er.forEach((function(nr,ar){ar!==tr&&rr.push([nr,nr.angleTo(er[ar+1])])})),rr.length>0&&rr.push([er[er.length-1],rr[rr.length-1][1]]),rr}}]),PolylineElement}();function _isNativeReflectConstruct$f(){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(er){return!1}}var Nk=function(er){Pw(PolygonElement,Ek);var tr=function _createSuper$f(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$f()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(PolygonElement);function PolygonElement(){var er;return hw(this,PolygonElement),(er=tr.apply(this,arguments)).type="polygon",er}return pw(PolygonElement,[{key:"path",value:function path(er){var tr=Mw(Nw(PolygonElement.prototype),"path",this).call(this,er),rr=lw(this.points,1)[0],nr=rr.x,ar=rr.y;return er&&(er.lineTo(nr,ar),er.closePath()),tr}}]),PolygonElement}();function _isNativeReflectConstruct$g(){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(er){return!1}}var Lk=function(er){Pw(PatternElement,pk);var tr=function _createSuper$g(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$g()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(PatternElement);function PatternElement(){var er;return hw(this,PatternElement),(er=tr.apply(this,arguments)).type="pattern",er}return pw(PatternElement,[{key:"createPattern",value:function createPattern(er,tr,rr){var nr=this.getStyle("width").getPixels("x",!0),ar=this.getStyle("height").getPixels("y",!0),ir=new kk(this.document,null);ir.attributes.viewBox=new Xw(this.document,"viewBox",this.getAttribute("viewBox").getValue()),ir.attributes.width=new Xw(this.document,"width","".concat(nr,"px")),ir.attributes.height=new Xw(this.document,"height","".concat(ar,"px")),ir.attributes.transform=new Xw(this.document,"transform",this.getAttribute("patternTransform").getValue()),ir.children=this.children;var or=this.document.createCanvas(nr,ar),sr=or.getContext("2d"),lr=this.getAttribute("x"),cr=this.getAttribute("y");lr.hasValue()&&cr.hasValue()&&sr.translate(lr.getPixels("x",!0),cr.getPixels("y",!0)),rr.hasValue()?this.styles["fill-opacity"]=rr:Reflect.deleteProperty(this.styles,"fill-opacity");for(var ur=-1;ur<=1;ur++)for(var dr=-1;dr<=1;dr++)sr.save(),ir.attributes.x=new Xw(this.document,"x",ur*or.width),ir.attributes.y=new Xw(this.document,"y",dr*or.height),ir.render(sr),sr.restore();return er.createPattern(or,"repeat")}}]),PatternElement}();function _isNativeReflectConstruct$h(){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(er){return!1}}var Pk=function(er){Pw(MarkerElement,pk);var tr=function _createSuper$h(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$h()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(MarkerElement);function MarkerElement(){var er;return hw(this,MarkerElement),(er=tr.apply(this,arguments)).type="marker",er}return pw(MarkerElement,[{key:"render",value:function render(er,tr,rr){if(tr){var nr=tr.x,ar=tr.y,ir=this.getAttribute("orient").getValue("auto"),or=this.getAttribute("markerUnits").getValue("strokeWidth");er.translate(nr,ar),"auto"===ir&&er.rotate(rr),"strokeWidth"===or&&er.scale(er.lineWidth,er.lineWidth),er.save();var sr=new kk(this.document,null);sr.type=this.type,sr.attributes.viewBox=new Xw(this.document,"viewBox",this.getAttribute("viewBox").getValue()),sr.attributes.refX=new Xw(this.document,"refX",this.getAttribute("refX").getValue()),sr.attributes.refY=new Xw(this.document,"refY",this.getAttribute("refY").getValue()),sr.attributes.width=new Xw(this.document,"width",this.getAttribute("markerWidth").getValue()),sr.attributes.height=new Xw(this.document,"height",this.getAttribute("markerHeight").getValue()),sr.attributes.overflow=new Xw(this.document,"overflow",this.getAttribute("overflow").getValue()),sr.attributes.fill=new Xw(this.document,"fill",this.getAttribute("fill").getColor("black")),sr.attributes.stroke=new Xw(this.document,"stroke",this.getAttribute("stroke").getValue("none")),sr.children=this.children,sr.render(er),er.restore(),"strokeWidth"===or&&er.scale(1/er.lineWidth,1/er.lineWidth),"auto"===ir&&er.rotate(-rr),er.translate(-nr,-ar)}}}]),MarkerElement}();function _isNativeReflectConstruct$i(){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(er){return!1}}var Tk=function(er){Pw(DefsElement,pk);var tr=function _createSuper$i(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$i()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(DefsElement);function DefsElement(){var er;return hw(this,DefsElement),(er=tr.apply(this,arguments)).type="defs",er}return pw(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}();function _isNativeReflectConstruct$j(){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(er){return!1}}var Fk=function(er){Pw(GElement,mk);var tr=function _createSuper$j(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$j()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(GElement);function GElement(){var er;return hw(this,GElement),(er=tr.apply(this,arguments)).type="g",er}return pw(GElement,[{key:"getBoundingBox",value:function getBoundingBox(er){var tr=new gk;return this.children.forEach((function(rr){tr.addBoundingBox(rr.getBoundingBox(er))})),tr}}]),GElement}();function _isNativeReflectConstruct$k(){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(er){return!1}}var Uk=function(er){Pw(GradientElement,pk);var tr=function _createSuper$k(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$k()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(GradientElement);function GradientElement(er,rr,nr){var ar;hw(this,GradientElement),(ar=tr.call(this,er,rr,nr)).attributesToInherit=["gradientUnits"],ar.stops=[];var ir=Bw(ar),or=ir.stops;return ir.children.forEach((function(er){"stop"===er.type&&or.push(er)})),ar}return pw(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(er,tr,rr){var nr=this,ar=this;this.getHrefAttribute().hasValue()&&(ar=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(ar));var ir=ar.stops,or=this.getGradient(er,tr);if(!or)return this.addParentOpacity(rr,ir[ir.length-1].color);if(ir.forEach((function(er){or.addColorStop(er.offset,nr.addParentOpacity(rr,er.color))})),this.getAttribute("gradientTransform").hasValue()){var sr=this.document,lr=sr.screen,cr=lr.MAX_VIRTUAL_PIXELS,ur=lr.viewPort,dr=lw(ur.viewPorts,1)[0],hr=new xk(sr,null);hr.attributes.x=new Xw(sr,"x",-cr/3),hr.attributes.y=new Xw(sr,"y",-cr/3),hr.attributes.width=new Xw(sr,"width",cr),hr.attributes.height=new Xw(sr,"height",cr);var pr=new Fk(sr,null);pr.attributes.transform=new Xw(sr,"transform",this.getAttribute("gradientTransform").getValue()),pr.children=[hr];var Ar=new kk(sr,null);Ar.attributes.x=new Xw(sr,"x",0),Ar.attributes.y=new Xw(sr,"y",0),Ar.attributes.width=new Xw(sr,"width",dr.width),Ar.attributes.height=new Xw(sr,"height",dr.height),Ar.children=[pr];var fr=sr.createCanvas(dr.width,dr.height),gr=fr.getContext("2d");return gr.fillStyle=or,Ar.render(gr),gr.createPattern(fr,"no-repeat")}return or}},{key:"inheritStopContainer",value:function inheritStopContainer(er){var tr=this;this.attributesToInherit.forEach((function(rr){!tr.getAttribute(rr).hasValue()&&er.getAttribute(rr).hasValue()&&tr.getAttribute(rr,!0).setValue(er.getAttribute(rr).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(er,tr){return er.hasValue()?new Xw(this.document,"color",tr).addOpacity(er).getColor():tr}}]),GradientElement}();function _isNativeReflectConstruct$l(){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(er){return!1}}var Ik=function(er){Pw(LinearGradientElement,Uk);var tr=function _createSuper$l(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$l()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(LinearGradientElement);function LinearGradientElement(er,rr,nr){var ar;return hw(this,LinearGradientElement),(ar=tr.call(this,er,rr,nr)).type="linearGradient",ar.attributesToInherit.push("x1","y1","x2","y2"),ar}return pw(LinearGradientElement,[{key:"getGradient",value:function getGradient(er,tr){var rr="objectBoundingBox"===this.getGradientUnits(),nr=rr?tr.getBoundingBox(er):null;if(rr&&!nr)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 ar=rr?nr.x+nr.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),ir=rr?nr.y+nr.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),or=rr?nr.x+nr.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),sr=rr?nr.y+nr.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return ar===or&&ir===sr?null:er.createLinearGradient(ar,ir,or,sr)}}]),LinearGradientElement}();function _isNativeReflectConstruct$m(){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(er){return!1}}var Rk=function(er){Pw(RadialGradientElement,Uk);var tr=function _createSuper$m(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$m()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(RadialGradientElement);function RadialGradientElement(er,rr,nr){var ar;return hw(this,RadialGradientElement),(ar=tr.call(this,er,rr,nr)).type="radialGradient",ar.attributesToInherit.push("cx","cy","r","fx","fy","fr"),ar}return pw(RadialGradientElement,[{key:"getGradient",value:function getGradient(er,tr){var rr="objectBoundingBox"===this.getGradientUnits(),nr=tr.getBoundingBox(er);if(rr&&!nr)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 ar=rr?nr.x+nr.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),ir=rr?nr.y+nr.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),or=ar,sr=ir;this.getAttribute("fx").hasValue()&&(or=rr?nr.x+nr.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(sr=rr?nr.y+nr.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var lr=rr?(nr.width+nr.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),cr=this.getAttribute("fr").getPixels();return er.createRadialGradient(or,sr,cr,ar,ir,lr)}}]),RadialGradientElement}();function _isNativeReflectConstruct$n(){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(er){return!1}}var Mk=function(er){Pw(StopElement,pk);var tr=function _createSuper$n(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$n()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(StopElement);function StopElement(er,rr,nr){var ar;hw(this,StopElement),(ar=tr.call(this,er,rr,nr)).type="stop";var ir=Math.max(0,Math.min(1,ar.getAttribute("offset").getNumber())),or=ar.getStyle("stop-opacity"),sr=ar.getStyle("stop-color",!0);return""===sr.getString()&&sr.setValue("#000"),or.hasValue()&&(sr=sr.addOpacity(or)),ar.offset=ir,ar.color=sr.getColor(),ar}return StopElement}();function _isNativeReflectConstruct$o(){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(er){return!1}}var Qk=function(er){Pw(AnimateElement,pk);var tr=function _createSuper$o(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$o()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(AnimateElement);function AnimateElement(er,rr,nr){var ar;return hw(this,AnimateElement),(ar=tr.call(this,er,rr,nr)).type="animate",ar.duration=0,ar.initialValue=null,ar.initialUnits="",ar.removed=!1,ar.frozen=!1,er.screen.animations.push(Bw(ar)),ar.begin=ar.getAttribute("begin").getMilliseconds(),ar.maxDuration=ar.begin+ar.getAttribute("dur").getMilliseconds(),ar.from=ar.getAttribute("from"),ar.to=ar.getAttribute("to"),ar.values=ar.getAttribute("values"),ar.values.hasValue()&&ar.values.setValue(ar.values.getString().split(";")),ar}return pw(AnimateElement,[{key:"getProperty",value:function getProperty(){var er=this.getAttribute("attributeType").getString(),tr=this.getAttribute("attributeName").getString();return"CSS"===er?this.parent.getStyle(tr,!0):this.parent.getAttribute(tr,!0)}},{key:"calcValue",value:function calcValue(){var er=this.initialUnits,tr=this.getProgress(),rr=tr.progress,nr=tr.from,ar=tr.to,ir=nr.getNumber()+(ar.getNumber()-nr.getNumber())*rr;return"%"===er&&(ir*=100),"".concat(ir).concat(er)}},{key:"update",value:function update(er){var tr=this.parent,rr=this.getProperty();if(this.initialValue||(this.initialValue=rr.getString(),this.initialUnits=rr.getUnits()),this.duration>this.maxDuration){var nr=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==nr||this.frozen){if("remove"===nr&&!this.removed)return this.removed=!0,rr.setValue(tr.animationFrozen?tr.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,tr.animationFrozen=!0,tr.animationFrozenValue=rr.getString();return!1}this.duration+=er;var ar=!1;if(this.begin<this.duration){var ir=this.calcValue(),or=this.getAttribute("type");if(or.hasValue()){var sr=or.getString();ir="".concat(sr,"(").concat(ir,")")}rr.setValue(ir),ar=!0}return ar}},{key:"getProgress",value:function getProgress(){var er=this.document,tr=this.values,rr={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(tr.hasValue()){var nr=rr.progress*(tr.getValue().length-1),ar=Math.floor(nr),ir=Math.ceil(nr);rr.from=new Xw(er,"from",parseFloat(tr.getValue()[ar])),rr.to=new Xw(er,"to",parseFloat(tr.getValue()[ir])),rr.progress=(nr-ar)/(ir-ar)}else rr.from=this.from,rr.to=this.to;return rr}}]),AnimateElement}();function _isNativeReflectConstruct$p(){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(er){return!1}}var Ok=function(er){Pw(AnimateColorElement,Qk);var tr=function _createSuper$p(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$p()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(AnimateColorElement);function AnimateColorElement(){var er;return hw(this,AnimateColorElement),(er=tr.apply(this,arguments)).type="animateColor",er}return pw(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var er=this.getProgress(),tr=er.progress,rr=er.from,nr=er.to,ar=new Sw(rr.getColor()),ir=new Sw(nr.getColor());if(ar.ok&&ir.ok){var or=ar.r+(ir.r-ar.r)*tr,sr=ar.g+(ir.g-ar.g)*tr,lr=ar.b+(ir.b-ar.b)*tr;return"rgb(".concat(parseInt(or,10),", ").concat(parseInt(sr,10),", ").concat(parseInt(lr,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}();function _isNativeReflectConstruct$q(){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(er){return!1}}var Dk=function(er){Pw(AnimateTransformElement,Qk);var tr=function _createSuper$q(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$q()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(AnimateTransformElement);function AnimateTransformElement(){var er;return hw(this,AnimateTransformElement),(er=tr.apply(this,arguments)).type="animateTransform",er}return pw(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var er=this.getProgress(),tr=er.progress,rr=er.from,nr=er.to,ar=toNumbers(rr.getString()),ir=toNumbers(nr.getString());return ar.map((function(er,rr){return er+(ir[rr]-er)*tr})).join(" ")}}]),AnimateTransformElement}();function _createForOfIteratorHelper$1(er){if("undefined"==typeof Symbol||null==er[Symbol.iterator]){if(Array.isArray(er)||(er=function _unsupportedIterableToArray$2(er,tr){if(!er)return;if("string"==typeof er)return _arrayLikeToArray$2(er,tr);var rr=Object.prototype.toString.call(er).slice(8,-1);"Object"===rr&&er.constructor&&(rr=er.constructor.name);if("Map"===rr||"Set"===rr)return Array.from(rr);if("Arguments"===rr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rr))return _arrayLikeToArray$2(er,tr)}(er))){var tr=0,rr=function F(){};return{s:rr,n:function n(){return tr>=er.length?{done:!0}:{done:!1,value:er[tr++]}},e:function e(er){throw er},f:rr}}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 nr,ar,ir=!0,or=!1;return{s:function s(){nr=er[Symbol.iterator]()},n:function n(){var er=nr.next();return ir=er.done,er},e:function e(er){or=!0,ar=er},f:function f(){try{ir||null==nr.return||nr.return()}finally{if(or)throw ar}}}}function _arrayLikeToArray$2(er,tr){(null==tr||tr>er.length)&&(tr=er.length);for(var rr=0,nr=new Array(tr);rr<tr;rr++)nr[rr]=er[rr];return nr}function _isNativeReflectConstruct$r(){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(er){return!1}}var jk=function(er){Pw(FontElement,pk);var tr=function _createSuper$r(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$r()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(FontElement);function FontElement(er,rr,nr){var ar;hw(this,FontElement),(ar=tr.call(this,er,rr,nr)).type="font",ar.glyphs={},ar.horizAdvX=ar.getAttribute("horiz-adv-x").getNumber();var ir,or=er.definitions,sr=_createForOfIteratorHelper$1(Bw(ar).children);try{for(sr.s();!(ir=sr.n()).done;){var lr=ir.value;switch(lr.type){case"font-face":ar.fontFace=lr;var cr=lr.getStyle("font-family");cr.hasValue()&&(or[cr.getString()]=Bw(ar));break;case"missing-glyph":ar.missingGlyph=lr;break;case"glyph":var ur=lr;ur.arabicForm?(ar.isRTL=!0,ar.isArabic=!0,void 0===ar.glyphs[ur.unicode]&&(ar.glyphs[ur.unicode]={}),ar.glyphs[ur.unicode][ur.arabicForm]=ur):ar.glyphs[ur.unicode]=ur}}}catch(er){sr.e(er)}finally{sr.f()}return ar}return pw(FontElement,[{key:"render",value:function render(){}}]),FontElement}();function _isNativeReflectConstruct$s(){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(er){return!1}}var Hk=function(er){Pw(FontFaceElement,pk);var tr=function _createSuper$s(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$s()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(FontFaceElement);function FontFaceElement(er,rr,nr){var ar;return hw(this,FontFaceElement),(ar=tr.call(this,er,rr,nr)).type="font-face",ar.ascent=ar.getAttribute("ascent").getNumber(),ar.descent=ar.getAttribute("descent").getNumber(),ar.unitsPerEm=ar.getAttribute("units-per-em").getNumber(),ar}return FontFaceElement}();function _isNativeReflectConstruct$t(){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(er){return!1}}var Gk=function(er){Pw(MissingGlyphElement,wk);var tr=function _createSuper$t(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$t()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(MissingGlyphElement);function MissingGlyphElement(){var er;return hw(this,MissingGlyphElement),(er=tr.apply(this,arguments)).type="missing-glyph",er.horizAdvX=0,er}return MissingGlyphElement}();function _isNativeReflectConstruct$u(){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(er){return!1}}var Vk=function(er){Pw(GlyphElement,wk);var tr=function _createSuper$u(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$u()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(GlyphElement);function GlyphElement(er,rr,nr){var ar;return hw(this,GlyphElement),(ar=tr.call(this,er,rr,nr)).type="glyph",ar.horizAdvX=ar.getAttribute("horiz-adv-x").getNumber(),ar.unicode=ar.getAttribute("unicode").getString(),ar.arabicForm=ar.getAttribute("arabic-form").getString(),ar}return GlyphElement}();function _isNativeReflectConstruct$v(){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(er){return!1}}var zk=function(er){Pw(TRefElement,_k);var tr=function _createSuper$v(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$v()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(TRefElement);function TRefElement(){var er;return hw(this,TRefElement),(er=tr.apply(this,arguments)).type="tref",er}return pw(TRefElement,[{key:"getText",value:function getText(){var er=this.getHrefAttribute().getDefinition();if(er){var tr=er.children[0];if(tr)return tr.getText()}return""}}]),TRefElement}();function _isNativeReflectConstruct$w(){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(er){return!1}}var Kk=function(er){Pw(AElement,_k);var tr=function _createSuper$w(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$w()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(AElement);function AElement(er,rr,nr){var ar;hw(this,AElement),(ar=tr.call(this,er,rr,nr)).type="a";var ir=rr.childNodes,or=ir[0],sr=ir.length>0&&Array.from(ir).every((function(er){return 3===er.nodeType}));return ar.hasText=sr,ar.text=sr?ar.getTextFromNode(or):"",ar}return pw(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(er){if(this.hasText){Mw(Nw(AElement.prototype),"renderChildren",this).call(this,er);var tr=this.document,rr=this.x,nr=this.y,ar=tr.screen.mouse,ir=new Xw(tr,"fontSize",fk.parse(tr.ctx.font).fontSize);ar.isWorking()&&ar.checkBoundingBox(this,new gk(rr,nr-ir.getPixels("y"),rr+this.measureText(er),nr))}else if(this.children.length>0){var or=new Fk(this.document,null);or.children=this.children,or.parent=this,or.render(er)}}},{key:"onClick",value:function onClick(){var er=this.document.window;er&&er.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}]),AElement}();function _createForOfIteratorHelper$1$1(er){if("undefined"==typeof Symbol||null==er[Symbol.iterator]){if(Array.isArray(er)||(er=function _unsupportedIterableToArray$1$1(er,tr){if(!er)return;if("string"==typeof er)return _arrayLikeToArray$1$1(er,tr);var rr=Object.prototype.toString.call(er).slice(8,-1);"Object"===rr&&er.constructor&&(rr=er.constructor.name);if("Map"===rr||"Set"===rr)return Array.from(rr);if("Arguments"===rr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rr))return _arrayLikeToArray$1$1(er,tr)}(er))){var tr=0,rr=function F(){};return{s:rr,n:function n(){return tr>=er.length?{done:!0}:{done:!1,value:er[tr++]}},e:function e(er){throw er},f:rr}}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 nr,ar,ir=!0,or=!1;return{s:function s(){nr=er[Symbol.iterator]()},n:function n(){var er=nr.next();return ir=er.done,er},e:function e(er){or=!0,ar=er},f:function f(){try{ir||null==nr.return||nr.return()}finally{if(or)throw ar}}}}function _arrayLikeToArray$1$1(er,tr){(null==tr||tr>er.length)&&(tr=er.length);for(var rr=0,nr=new Array(tr);rr<tr;rr++)nr[rr]=er[rr];return nr}function _isNativeReflectConstruct$x(){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(er){return!1}}var qk=function(er){Pw(TextPathElement,_k);var tr=function _createSuper$x(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$x()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(TextPathElement);function TextPathElement(er,rr,nr){var ar;hw(this,TextPathElement),(ar=tr.call(this,er,rr,nr)).type="textPath",ar.textWidth=0,ar.textHeight=0,ar.pathLength=-1,ar.glyphInfo=null,ar.letterSpacingCache=[],ar.measuresCache=new Map([["",0]]);var ir=ar.getHrefAttribute().getDefinition();return ar.text=ar.getTextFromNode(),ar.dataArray=ar.parsePathData(ir),ar}return pw(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(er){var tr=this.dataArray;er&&er.beginPath(),tr.forEach((function(tr){var rr=tr.command,nr=tr.points;switch(rr){case"L":er&&er.lineTo(nr[0],nr[1]);break;case"M":er&&er.moveTo(nr[0],nr[1]);break;case"C":er&&er.bezierCurveTo(nr[0],nr[1],nr[2],nr[3],nr[4],nr[5]);break;case"Q":er&&er.quadraticCurveTo(nr[0],nr[1],nr[2],nr[3]);break;case"A":var ar=nr[0],ir=nr[1],or=nr[2],sr=nr[3],lr=nr[4],cr=nr[5],ur=nr[6],dr=nr[7],hr=or>sr?or:sr,pr=or>sr?1:or/sr,Ar=or>sr?sr/or:1;er&&(er.translate(ar,ir),er.rotate(ur),er.scale(pr,Ar),er.arc(0,0,hr,lr,lr+cr,Boolean(1-dr)),er.scale(1/pr,1/Ar),er.rotate(-ur),er.translate(-ar,-ir));break;case"z":er&&er.closePath()}}))}},{key:"renderChildren",value:function renderChildren(er){this.setTextData(er),er.save();var tr=this.parent.getStyle("text-decoration").getString(),rr=this.getFontSize(),nr=this.glyphInfo,ar=er.fillStyle;"underline"===tr&&er.beginPath(),nr.forEach((function(ar,ir){var or=ar.p0,sr=ar.p1,lr=ar.text;er.save(),er.translate(or.x,or.y),er.rotate(nr[ir].rotation),er.fillStyle&&er.fillText(lr,0,0),er.strokeStyle&&er.strokeText(lr,0,0),er.restore(),"underline"===tr&&(0===ir&&er.moveTo(or.x,or.y+rr/8),er.lineTo(sr.x,sr.y+rr/5))})),"underline"===tr&&(er.lineWidth=rr/20,er.strokeStyle=ar,er.stroke(),er.closePath()),er.restore()}},{key:"getLetterSpacingAt",value:function getLetterSpacingAt(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[er]||0}},{key:"findSegmentToFitChar",value:function findSegmentToFitChar(er,tr,rr,nr,ar,ir,or,sr){var lr=ir,cr=this.measureText(er,or);" "===or&&"justify"===tr&&rr<nr&&(cr+=(nr-rr)/ar),sr>-1&&(lr+=this.getLetterSpacingAt(sr));var ur=this.textHeight/20,dr={p0:this.getEquidistantPointOnPath(lr,ur),p1:this.getEquidistantPointOnPath(lr+cr,ur)};return{offset:lr+=cr,segment:dr}}},{key:"measureText",value:function measureText(er,tr){var rr=this.measuresCache,nr=tr||this.getText();if(rr.has(nr))return rr.get(nr);var ar=this.measureTargetText(er,nr);return rr.set(nr,ar),ar}},{key:"setTextData",value:function setTextData(er){var tr=this;if(!this.glyphInfo){var rr=this.getText(),nr=rr.split(""),ar=rr.split(" ").length-1,ir=toNumbers(this.parent.getAttribute("dx").getString("0")),or=this.parent.getStyle("text-anchor").getString("start"),sr=this.getStyle("letter-spacing"),lr=this.parent.getStyle("letter-spacing"),cr=0;sr.hasValue()&&"inherit"!==sr.getValue()?sr.hasValue()&&"initial"!==sr.getValue()&&"unset"!==sr.getValue()&&(cr=sr.getPixels()):cr=lr.getPixels();var ur=[],dr=rr.length;this.letterSpacingCache=ur;for(var hr=0;hr<dr;hr++)ur.push(void 0!==ir[hr]?ir[hr]:cr);var pr=ur.reduce((function(er,tr){return er+tr||0}),0);this.textWidth=this.measureText(er),this.textHeight=this.getFontSize();var Ar=Math.max(this.textWidth+pr,0);this.glyphInfo=[];var fr=this.getPathLength(),gr=this.getStyle("startOffset").getNumber(0)*fr,mr=0;"middle"!==or&&"center"!==or||(mr=-Ar/2),"end"!==or&&"right"!==or||(mr=-Ar),mr+=gr,nr.forEach((function(rr,ir){var sr=tr.findSegmentToFitChar(er,or,Ar,fr,ar,mr,rr,ir),lr=sr.offset,cr=sr.segment;if(mr=lr,cr.p0&&cr.p1){var ur=tr.getLineLength(cr.p0.x,cr.p0.y,cr.p1.x,cr.p1.y),dr=tr.getPointOnLine(0+ur/2,cr.p0.x,cr.p0.y,cr.p1.x,cr.p1.y),hr=Math.atan2(cr.p1.y-cr.p0.y,cr.p1.x-cr.p0.x);tr.glyphInfo.push({transposeX:dr.x,transposeY:dr.y,text:nr[ir],p0:cr.p0,p1:cr.p1,rotation:hr})}}))}}},{key:"parsePathData",value:function parsePathData(er){if(this.pathLength=-1,!er)return[];var tr=[],rr=er.pathParser;for(rr.reset();!rr.isEnd();){var nr=rr.current,ar=nr?nr.x:0,ir=nr?nr.y:0,or="",sr=[];rr.nextCommand();var lr=rr.command.toUpperCase();switch(rr.command){case"M":case"m":or=this.pathM(rr,sr);break;case"L":case"l":or=this.pathL(rr,sr);break;case"H":case"h":or=this.pathH(rr,sr);break;case"V":case"v":or=this.pathV(rr,sr);break;case"C":case"c":this.pathC(rr,sr);break;case"S":case"s":or=this.pathS(rr,sr);break;case"Q":case"q":this.pathQ(rr,sr);break;case"T":case"t":or=this.pathT(rr,sr);break;case"A":case"a":sr=this.pathA(rr);break;case"Z":case"z":rr.current=rr.start}"Z"!==lr?tr.push({command:or||lr,points:sr,start:{x:ar,y:ir},pathLength:this.calcLength(ar,ir,or||lr,sr)}):tr.push({command:"z",points:[],pathLength:0})}return tr}},{key:"pathM",value:function pathM(er,tr){var rr=er.getAsCurrentPoint();for(tr.push(rr.x,rr.y),er.start=er.current;!er.isCommandOrEnd();){var nr=er.getAsCurrentPoint();return tr.push(nr.x,nr.y),"L"}}},{key:"pathL",value:function pathL(er,tr){for(;!er.isCommandOrEnd();){var rr=er.getAsCurrentPoint();tr.push(rr.x,rr.y)}return"L"}},{key:"pathH",value:function pathH(er,tr){for(;!er.isCommandOrEnd();){var rr=er.current,nr=new Jw((er.isRelativeCommand()?rr.x:0)+er.getScalar(),rr.y);tr.push(nr.x,nr.y),er.current=nr}return"L"}},{key:"pathV",value:function pathV(er,tr){for(;!er.isCommandOrEnd();){var rr=er.current,nr=new Jw(rr.x,(er.isRelativeCommand()?rr.y:0)+er.getScalar());tr.push(nr.x,nr.y),er.current=nr}return"L"}},{key:"pathC",value:function pathC(er,tr){for(;!er.isCommandOrEnd();){var rr=er.getPoint(),nr=er.getAsControlPoint(),ar=er.getAsCurrentPoint();tr.push(rr.x,rr.y,nr.x,nr.y,ar.x,ar.y)}}},{key:"pathS",value:function pathS(er,tr){for(;!er.isCommandOrEnd();){var rr=er.getReflectedControlPoint(),nr=er.getAsControlPoint(),ar=er.getAsCurrentPoint();tr.push(rr.x,rr.y,nr.x,nr.y,ar.x,ar.y)}return"C"}},{key:"pathQ",value:function pathQ(er,tr){for(;!er.isCommandOrEnd();){var rr=er.getAsControlPoint(),nr=er.getAsCurrentPoint();tr.push(rr.x,rr.y,nr.x,nr.y)}}},{key:"pathT",value:function pathT(er,tr){for(;!er.isCommandOrEnd();){var rr=er.getReflectedControlPoint();er.control=rr;var nr=er.getAsCurrentPoint();tr.push(rr.x,rr.y,nr.x,nr.y)}return"Q"}},{key:"pathA",value:function pathA(er){for(;!er.isCommandOrEnd();){var tr=er.current,rr=er.getScalar(),nr=er.getScalar(),ar=er.getScalar()*(Math.PI/180),ir=er.getScalar(),or=er.getScalar(),sr=er.getAsCurrentPoint(),lr=new Jw(Math.cos(ar)*(tr.x-sr.x)/2+Math.sin(ar)*(tr.y-sr.y)/2,-Math.sin(ar)*(tr.x-sr.x)/2+Math.cos(ar)*(tr.y-sr.y)/2),cr=Math.pow(lr.x,2)/Math.pow(rr,2)+Math.pow(lr.y,2)/Math.pow(nr,2);cr>1&&(rr*=Math.sqrt(cr),nr*=Math.sqrt(cr));var ur=(ir===or?-1:1)*Math.sqrt((Math.pow(rr,2)*Math.pow(nr,2)-Math.pow(rr,2)*Math.pow(lr.y,2)-Math.pow(nr,2)*Math.pow(lr.x,2))/(Math.pow(rr,2)*Math.pow(lr.y,2)+Math.pow(nr,2)*Math.pow(lr.x,2)));isNaN(ur)&&(ur=0);var dr=new Jw(ur*rr*lr.y/nr,ur*-nr*lr.x/rr),hr=new Jw((tr.x+sr.x)/2+Math.cos(ar)*dr.x-Math.sin(ar)*dr.y,(tr.y+sr.y)/2+Math.sin(ar)*dr.x+Math.cos(ar)*dr.y),pr=vectorsAngle([1,0],[(lr.x-dr.x)/rr,(lr.y-dr.y)/nr]),Ar=[(lr.x-dr.x)/rr,(lr.y-dr.y)/nr],fr=[(-lr.x-dr.x)/rr,(-lr.y-dr.y)/nr],gr=vectorsAngle(Ar,fr);return vectorsRatio(Ar,fr)<=-1&&(gr=Math.PI),vectorsRatio(Ar,fr)>=1&&(gr=0),0===or&&gr>0&&(gr-=2*Math.PI),1===or&&gr<0&&(gr+=2*Math.PI),[hr.x,hr.y,rr,nr,pr,gr,ar,or]}}},{key:"calcLength",value:function calcLength(er,tr,rr,nr){var ar=0,ir=null,or=null,sr=0;switch(rr){case"L":return this.getLineLength(er,tr,nr[0],nr[1]);case"C":for(ar=0,ir=this.getPointOnCubicBezier(0,er,tr,nr[0],nr[1],nr[2],nr[3],nr[4],nr[5]),sr=.01;sr<=1;sr+=.01)or=this.getPointOnCubicBezier(sr,er,tr,nr[0],nr[1],nr[2],nr[3],nr[4],nr[5]),ar+=this.getLineLength(ir.x,ir.y,or.x,or.y),ir=or;return ar;case"Q":for(ar=0,ir=this.getPointOnQuadraticBezier(0,er,tr,nr[0],nr[1],nr[2],nr[3]),sr=.01;sr<=1;sr+=.01)or=this.getPointOnQuadraticBezier(sr,er,tr,nr[0],nr[1],nr[2],nr[3]),ar+=this.getLineLength(ir.x,ir.y,or.x,or.y),ir=or;return ar;case"A":ar=0;var lr=nr[4],cr=nr[5],ur=nr[4]+cr,dr=Math.PI/180;if(Math.abs(lr-ur)<dr&&(dr=Math.abs(lr-ur)),ir=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],lr,0),cr<0)for(sr=lr-dr;sr>ur;sr-=dr)or=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],sr,0),ar+=this.getLineLength(ir.x,ir.y,or.x,or.y),ir=or;else for(sr=lr+dr;sr<ur;sr+=dr)or=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],sr,0),ar+=this.getLineLength(ir.x,ir.y,or.x,or.y),ir=or;return or=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],ur,0),ar+=this.getLineLength(ir.x,ir.y,or.x,or.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(er,tr,rr,nr,ar){var ir=arguments.length>5&&void 0!==arguments[5]?arguments[5]:tr,or=arguments.length>6&&void 0!==arguments[6]?arguments[6]:rr,sr=(ar-rr)/(nr-tr+1e-8),lr=Math.sqrt(er*er/(1+sr*sr));nr<tr&&(lr*=-1);var cr=sr*lr,ur=null;if(nr===tr)ur={x:ir,y:or+cr};else if((or-rr)/(ir-tr+1e-8)===sr)ur={x:ir+lr,y:or+cr};else{var dr=0,hr=0,pr=this.getLineLength(tr,rr,nr,ar);if(pr<1e-8)return null;var Ar=(ir-tr)*(nr-tr)+(or-rr)*(ar-rr);dr=tr+(Ar/=pr*pr)*(nr-tr),hr=rr+Ar*(ar-rr);var fr=this.getLineLength(ir,or,dr,hr),gr=Math.sqrt(er*er-fr*fr);lr=Math.sqrt(gr*gr/(1+sr*sr)),nr<tr&&(lr*=-1),ur={x:dr+lr,y:hr+(cr=sr*lr)}}return ur}},{key:"getPointOnPath",value:function getPointOnPath(er){var tr=this.getPathLength(),rr=0,nr=null;if(er<-5e-5||er-5e-5>tr)return null;var ar,ir=_createForOfIteratorHelper$1$1(this.dataArray);try{for(ir.s();!(ar=ir.n()).done;){var or=ar.value;if(!or||!(or.pathLength<5e-5||rr+or.pathLength+5e-5<er)){var sr=er-rr,lr=0;switch(or.command){case"L":nr=this.getPointOnLine(sr,or.start.x,or.start.y,or.points[0],or.points[1],or.start.x,or.start.y);break;case"A":var cr=or.points[4],ur=or.points[5],dr=or.points[4]+ur;if(lr=cr+sr/or.pathLength*ur,ur<0&&lr<dr||ur>=0&&lr>dr)break;nr=this.getPointOnEllipticalArc(or.points[0],or.points[1],or.points[2],or.points[3],lr,or.points[6]);break;case"C":(lr=sr/or.pathLength)>1&&(lr=1),nr=this.getPointOnCubicBezier(lr,or.start.x,or.start.y,or.points[0],or.points[1],or.points[2],or.points[3],or.points[4],or.points[5]);break;case"Q":(lr=sr/or.pathLength)>1&&(lr=1),nr=this.getPointOnQuadraticBezier(lr,or.start.x,or.start.y,or.points[0],or.points[1],or.points[2],or.points[3])}if(nr)return nr;break}rr+=or.pathLength}}catch(er){ir.e(er)}finally{ir.f()}return null}},{key:"getLineLength",value:function getLineLength(er,tr,rr,nr){return Math.sqrt((rr-er)*(rr-er)+(nr-tr)*(nr-tr))}},{key:"getPathLength",value:function getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((function(er,tr){return tr.pathLength>0?er+tr.pathLength:er}),0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(er,tr,rr,nr,ar,ir,or,sr,lr){return{x:sr*CB1(er)+ir*CB2(er)+nr*CB3(er)+tr*CB4(er),y:lr*CB1(er)+or*CB2(er)+ar*CB3(er)+rr*CB4(er)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(er,tr,rr,nr,ar,ir,or){return{x:ir*QB1(er)+nr*QB2(er)+tr*QB3(er),y:or*QB1(er)+ar*QB2(er)+rr*QB3(er)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(er,tr,rr,nr,ar,ir){var or=Math.cos(ir),sr=Math.sin(ir),lr=rr*Math.cos(ar),cr=nr*Math.sin(ar);return{x:er+(lr*or-cr*sr),y:tr+(lr*sr+cr*or)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(er,tr){var rr=this.getPathLength(),nr=tr||.25,ar=er||rr/100;if(!this.equidistantCache||this.equidistantCache.step!==ar||this.equidistantCache.precision!==nr){this.equidistantCache={step:ar,precision:nr,points:[]};for(var ir=0,or=0;or<=rr;or+=nr){var sr=this.getPointOnPath(or),lr=this.getPointOnPath(or+nr);sr&&lr&&((ir+=this.getLineLength(sr.x,sr.y,lr.x,lr.y))>=ar&&(this.equidistantCache.points.push({x:sr.x,y:sr.y,distance:or}),ir-=ar))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(er,tr,rr){if(this.buildEquidistantCache(tr,rr),er<0||er-this.getPathLength()>5e-5)return null;var nr=Math.round(er/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[nr]||null}}]),TextPathElement}();function _isNativeReflectConstruct$y(){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(er){return!1}}var Wk=function(er){Pw(ImageElement,mk);var tr,rr,nr=function _createSuper$y(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$y()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(ImageElement);function ImageElement(er,tr,rr){var ar;hw(this,ImageElement),(ar=nr.call(this,er,tr,rr)).type="image",ar.loaded=!1;var ir=ar.getHrefAttribute().getString();if(!ir)return Ew(ar);var or=/\.svg$/.test(ir);return er.images.push(Bw(ar)),or?ar.loadSvg(ir):ar.loadImage(ir),ar.isSvg=or,ar}return pw(ImageElement,[{key:"loadImage",value:(rr=uw(cw.mark((function _callee(er){var tr;return cw.wrap((function _callee$(rr){for(;;)switch(rr.prev=rr.next){case 0:return rr.prev=0,rr.next=3,this.document.createImage(er);case 3:tr=rr.sent,this.image=tr,rr.next=10;break;case 7:rr.prev=7,rr.t0=rr.catch(0),console.error('Error while loading image "'.concat(er,'":'),rr.t0);case 10:this.loaded=!0;case 11:case"end":return rr.stop()}}),_callee,this,[[0,7]])}))),function loadImage(er){return rr.apply(this,arguments)})},{key:"loadSvg",value:(tr=uw(cw.mark((function _callee2(er){var tr,rr;return cw.wrap((function _callee2$(nr){for(;;)switch(nr.prev=nr.next){case 0:return nr.prev=0,nr.next=3,this.document.fetch(er);case 3:return tr=nr.sent,nr.next=6,tr.text();case 6:rr=nr.sent,this.image=rr,nr.next=13;break;case 10:nr.prev=10,nr.t0=nr.catch(0),console.error('Error while loading image "'.concat(er,'":'),nr.t0);case 13:this.loaded=!0;case 14:case"end":return nr.stop()}}),_callee2,this,[[0,10]])}))),function loadSvg(er){return tr.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(er){var tr=this.document,rr=this.image,nr=this.loaded,ar=this.getAttribute("x").getPixels("x"),ir=this.getAttribute("y").getPixels("y"),or=this.getStyle("width").getPixels("x"),sr=this.getStyle("height").getPixels("y");if(nr&&rr&&or&&sr){if(er.save(),this.isSvg)tr.canvg.forkString(er,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:ar,offsetY:ir,scaleWidth:or,scaleHeight:sr}).render();else{var lr=this.image;er.translate(ar,ir),tr.setViewBox({ctx:er,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:or,desiredWidth:lr.width,height:sr,desiredHeight:lr.height}),this.loaded&&(void 0===lr.complete||lr.complete)&&er.drawImage(lr,0,0)}er.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var er=this.getAttribute("x").getPixels("x"),tr=this.getAttribute("y").getPixels("y"),rr=this.getStyle("width").getPixels("x"),nr=this.getStyle("height").getPixels("y");return new gk(er,tr,er+rr,tr+nr)}}]),ImageElement}();function _isNativeReflectConstruct$z(){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(er){return!1}}var Xk=function(er){Pw(SymbolElement,mk);var tr=function _createSuper$z(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$z()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(SymbolElement);function SymbolElement(){var er;return hw(this,SymbolElement),(er=tr.apply(this,arguments)).type="symbol",er}return pw(SymbolElement,[{key:"render",value:function render(er){}}]),SymbolElement}(),Yk=function(){function SVGFontLoader(er){hw(this,SVGFontLoader),this.document=er,this.loaded=!1,er.fonts.push(this)}var er;return pw(SVGFontLoader,[{key:"load",value:(er=uw(cw.mark((function _callee(er,tr){var rr,nr,ar;return cw.wrap((function _callee$(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.prev=0,rr=this.document,ir.next=4,rr.canvg.parser.load(tr);case 4:nr=ir.sent,ar=nr.getElementsByTagName("font"),Array.from(ar).forEach((function(tr){var nr=rr.createElement(tr);rr.definitions[er]=nr})),ir.next=12;break;case 9:ir.prev=9,ir.t0=ir.catch(0),console.error('Error while loading font "'.concat(tr,'":'),ir.t0);case 12:this.loaded=!0;case 13:case"end":return ir.stop()}}),_callee,this,[[0,9]])}))),function load(tr,rr){return er.apply(this,arguments)})}]),SVGFontLoader}();function _isNativeReflectConstruct$A(){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(er){return!1}}var Jk=function(er){Pw(StyleElement,pk);var tr=function _createSuper$A(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$A()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(StyleElement);function StyleElement(er,rr,nr){var ar;return hw(this,StyleElement),(ar=tr.call(this,er,rr,nr)).type="style",compressSpaces(Array.from(rr.childNodes).map((function(er){return er.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach((function(tr){var rr=tr.trim();if(rr){var nr=rr.split("{"),ar=nr[0].split(","),ir=nr[1].split(";");ar.forEach((function(tr){var rr=tr.trim();if(rr){var nr=er.styles[rr]||{};if(ir.forEach((function(tr){var rr=tr.indexOf(":"),ar=tr.substr(0,rr).trim(),ir=tr.substr(rr+1,tr.length-rr).trim();ar&&ir&&(nr[ar]=new Xw(er,ar,ir))})),er.styles[rr]=nr,er.stylesSpecificity[rr]=getSelectorSpecificity(rr),"@font-face"===rr){var ar=nr["font-family"].getString().replace(/"|'/g,"");nr.src.getString().split(",").forEach((function(tr){if(tr.indexOf('format("svg")')>0){var rr=parseExternalUrl(tr);rr&&new Yk(er).load(ar,rr)}}))}}}))}})),ar}return StyleElement}();function _isNativeReflectConstruct$B(){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(er){return!1}}Jk.parseExternalUrl=parseExternalUrl;var $k=function(er){Pw(UseElement,mk);var tr=function _createSuper$B(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$B()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(UseElement);function UseElement(){var er;return hw(this,UseElement),(er=tr.apply(this,arguments)).type="use",er}return pw(UseElement,[{key:"setContext",value:function setContext(er){Mw(Nw(UseElement.prototype),"setContext",this).call(this,er);var tr=this.getAttribute("x"),rr=this.getAttribute("y");tr.hasValue()&&er.translate(tr.getPixels("x"),0),rr.hasValue()&&er.translate(0,rr.getPixels("y"))}},{key:"path",value:function path(er){var tr=this.element;tr&&tr.path(er)}},{key:"renderChildren",value:function renderChildren(er){var tr=this.document,rr=this.element;if(rr){var nr=rr;if("symbol"===rr.type&&((nr=new kk(tr,null)).attributes.viewBox=new Xw(tr,"viewBox",rr.getAttribute("viewBox").getString()),nr.attributes.preserveAspectRatio=new Xw(tr,"preserveAspectRatio",rr.getAttribute("preserveAspectRatio").getString()),nr.attributes.overflow=new Xw(tr,"overflow",rr.getAttribute("overflow").getString()),nr.children=rr.children),"svg"===nr.type){var ar=this.getStyle("width",!1,!0),ir=this.getStyle("height",!1,!0);ar.hasValue()&&(nr.attributes.width=new Xw(tr,"width",ar.getString())),ir.hasValue()&&(nr.attributes.height=new Xw(tr,"height",ir.getString()))}var or=nr.parent;nr.parent=this,nr.render(er),nr.parent=or}}},{key:"getBoundingBox",value:function getBoundingBox(er){var tr=this.element;return tr?tr.getBoundingBox(er):null}},{key:"elementTransform",value:function elementTransform(){var er=this.document,tr=this.element;return hk.fromElement(er,tr)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}();function _isNativeReflectConstruct$C(){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(er){return!1}}function imGet(er,tr,rr,nr,ar,ir){return er[rr*nr*4+4*tr+ir]}function imSet(er,tr,rr,nr,ar,ir,or){er[rr*nr*4+4*tr+ir]=or}function m$1(er,tr,rr){var nr=er[tr];return nr*(nr<0?rr-255:rr)}function c$1(er,tr,rr,nr){return tr+Math.cos(er)*rr+Math.sin(er)*nr}var Zk=function(er){Pw(FeColorMatrixElement,pk);var tr=function _createSuper$C(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$C()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(FeColorMatrixElement);function FeColorMatrixElement(er,rr,nr){var ar;hw(this,FeColorMatrixElement),(ar=tr.call(this,er,rr,nr)).type="feColorMatrix";var ir=toNumbers(ar.getAttribute("values").getString());switch(ar.getAttribute("type").getString("matrix")){case"saturate":var or=ir[0];ir=[.213+.787*or,.715-.715*or,.072-.072*or,0,0,.213-.213*or,.715+.285*or,.072-.072*or,0,0,.213-.213*or,.715-.715*or,.072+.928*or,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var sr=ir[0]*Math.PI/180;ir=[c$1(sr,.213,.787,-.213),c$1(sr,.715,-.715,-.715),c$1(sr,.072,-.072,.928),0,0,c$1(sr,.213,-.213,.143),c$1(sr,.715,.285,.14),c$1(sr,.072,-.072,-.283),0,0,c$1(sr,.213,-.213,-.787),c$1(sr,.715,-.715,.715),c$1(sr,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":ir=[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 ar.matrix=ir,ar.includeOpacity=ar.getAttribute("includeOpacity").hasValue(),ar}return pw(FeColorMatrixElement,[{key:"apply",value:function apply(er,tr,rr,nr,ar){for(var ir=this.includeOpacity,or=this.matrix,sr=er.getImageData(0,0,nr,ar),lr=0;lr<ar;lr++)for(var cr=0;cr<nr;cr++){var ur=imGet(sr.data,cr,lr,nr,0,0),dr=imGet(sr.data,cr,lr,nr,0,1),hr=imGet(sr.data,cr,lr,nr,0,2),pr=imGet(sr.data,cr,lr,nr,0,3),Ar=m$1(or,0,ur)+m$1(or,1,dr)+m$1(or,2,hr)+m$1(or,3,pr)+m$1(or,4,1),fr=m$1(or,5,ur)+m$1(or,6,dr)+m$1(or,7,hr)+m$1(or,8,pr)+m$1(or,9,1),gr=m$1(or,10,ur)+m$1(or,11,dr)+m$1(or,12,hr)+m$1(or,13,pr)+m$1(or,14,1),mr=m$1(or,15,ur)+m$1(or,16,dr)+m$1(or,17,hr)+m$1(or,18,pr)+m$1(or,19,1);ir&&(Ar=fr=gr=0,mr*=pr/255),imSet(sr.data,cr,lr,nr,0,0,Ar),imSet(sr.data,cr,lr,nr,0,1,fr),imSet(sr.data,cr,lr,nr,0,2,gr),imSet(sr.data,cr,lr,nr,0,3,mr)}er.clearRect(0,0,nr,ar),er.putImageData(sr,0,0)}}]),FeColorMatrixElement}();function _isNativeReflectConstruct$D(){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(er){return!1}}var ex=function(er){Pw(MaskElement,pk);var tr=function _createSuper$D(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$D()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(MaskElement);function MaskElement(){var er;return hw(this,MaskElement),(er=tr.apply(this,arguments)).type="mask",er}return pw(MaskElement,[{key:"apply",value:function apply(er,tr){var rr=this.document,nr=this.getAttribute("x").getPixels("x"),ar=this.getAttribute("y").getPixels("y"),ir=this.getStyle("width").getPixels("x"),or=this.getStyle("height").getPixels("y");if(!ir&&!or){var sr=new gk;this.children.forEach((function(tr){sr.addBoundingBox(tr.getBoundingBox(er))})),nr=Math.floor(sr.x1),ar=Math.floor(sr.y1),ir=Math.floor(sr.width),or=Math.floor(sr.height)}var lr=this.removeStyles(tr,MaskElement.ignoreStyles),cr=rr.createCanvas(nr+ir,ar+or),ur=cr.getContext("2d");rr.screen.setDefaults(ur),this.renderChildren(ur),new Zk(rr,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(ur,0,0,nr+ir,ar+or);var dr=rr.createCanvas(nr+ir,ar+or),hr=dr.getContext("2d");rr.screen.setDefaults(hr),tr.render(hr),hr.globalCompositeOperation="destination-in",hr.fillStyle=ur.createPattern(cr,"no-repeat"),hr.fillRect(0,0,nr+ir,ar+or),er.fillStyle=hr.createPattern(dr,"no-repeat"),er.fillRect(0,0,nr+ir,ar+or),this.restoreStyles(tr,lr)}},{key:"render",value:function render(er){}}]),MaskElement}();function _isNativeReflectConstruct$E(){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(er){return!1}}ex.ignoreStyles=["mask","transform","clip-path"];var tx=function noop(){},rx=function(er){Pw(ClipPathElement,pk);var tr=function _createSuper$E(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$E()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(ClipPathElement);function ClipPathElement(){var er;return hw(this,ClipPathElement),(er=tr.apply(this,arguments)).type="clipPath",er}return pw(ClipPathElement,[{key:"apply",value:function apply(er){var tr=this.document,rr=Reflect.getPrototypeOf(er),nr=er.beginPath,ar=er.closePath;rr&&(rr.beginPath=tx,rr.closePath=tx),Reflect.apply(nr,er,[]),this.children.forEach((function(nr){if(void 0!==nr.path){var ir=void 0!==nr.elementTransform?nr.elementTransform():null;ir||(ir=hk.fromElement(tr,nr)),ir&&ir.apply(er),nr.path(er),rr&&(rr.closePath=ar),ir&&ir.unapply(er)}})),Reflect.apply(ar,er,[]),er.clip(),rr&&(rr.beginPath=nr,rr.closePath=ar)}},{key:"render",value:function render(er){}}]),ClipPathElement}();function _isNativeReflectConstruct$F(){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(er){return!1}}var nx=function(er){Pw(FilterElement,pk);var tr=function _createSuper$F(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$F()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(FilterElement);function FilterElement(){var er;return hw(this,FilterElement),(er=tr.apply(this,arguments)).type="filter",er}return pw(FilterElement,[{key:"apply",value:function apply(er,tr){var rr=this.document,nr=this.children,ar=tr.getBoundingBox(er);if(ar){var ir=0,or=0;nr.forEach((function(er){var tr=er.extraFilterDistance||0;ir=Math.max(ir,tr),or=Math.max(or,tr)}));var sr=Math.floor(ar.width),lr=Math.floor(ar.height),cr=sr+2*ir,ur=lr+2*or;if(!(cr<1||ur<1)){var dr=Math.floor(ar.x),hr=Math.floor(ar.y),pr=this.removeStyles(tr,FilterElement.ignoreStyles),Ar=rr.createCanvas(cr,ur),fr=Ar.getContext("2d");rr.screen.setDefaults(fr),fr.translate(-dr+ir,-hr+or),tr.render(fr),nr.forEach((function(er){"function"==typeof er.apply&&er.apply(fr,0,0,cr,ur)})),er.drawImage(Ar,0,0,cr,ur,dr-ir,hr-or,cr,ur),this.restoreStyles(tr,pr)}}}},{key:"render",value:function render(er){}}]),FilterElement}();function _isNativeReflectConstruct$G(){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(er){return!1}}nx.ignoreStyles=["filter","transform","clip-path"];var ax=function(er){Pw(FeDropShadowElement,pk);var tr=function _createSuper$G(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$G()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(FeDropShadowElement);function FeDropShadowElement(er,rr,nr){var ar;return hw(this,FeDropShadowElement),(ar=tr.call(this,er,rr,nr)).type="feDropShadow",ar.addStylesFromStyleDefinition(),ar}return pw(FeDropShadowElement,[{key:"apply",value:function apply(er,tr,rr,nr,ar){}}]),FeDropShadowElement}();function _isNativeReflectConstruct$H(){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(er){return!1}}var ix=function(er){Pw(FeMorphologyElement,pk);var tr=function _createSuper$H(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$H()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(FeMorphologyElement);function FeMorphologyElement(){var er;return hw(this,FeMorphologyElement),(er=tr.apply(this,arguments)).type="feMorphology",er}return pw(FeMorphologyElement,[{key:"apply",value:function apply(er,tr,rr,nr,ar){}}]),FeMorphologyElement}();function _isNativeReflectConstruct$I(){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(er){return!1}}var ox=function(er){Pw(FeCompositeElement,pk);var tr=function _createSuper$I(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$I()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(FeCompositeElement);function FeCompositeElement(){var er;return hw(this,FeCompositeElement),(er=tr.apply(this,arguments)).type="feComposite",er}return pw(FeCompositeElement,[{key:"apply",value:function apply(er,tr,rr,nr,ar){}}]),FeCompositeElement}();function _isNativeReflectConstruct$J(){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(er){return!1}}var sx=function(er){Pw(FeGaussianBlurElement,pk);var tr=function _createSuper$J(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$J()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(FeGaussianBlurElement);function FeGaussianBlurElement(er,rr,nr){var ar;return hw(this,FeGaussianBlurElement),(ar=tr.call(this,er,rr,nr)).type="feGaussianBlur",ar.blurRadius=Math.floor(ar.getAttribute("stdDeviation").getNumber()),ar.extraFilterDistance=ar.blurRadius,ar}return pw(FeGaussianBlurElement,[{key:"apply",value:function apply(er,tr,rr,nr,ar){var ir=this.document,or=this.blurRadius,sr=ir.window?ir.window.document.body:null,lr=er.canvas;lr.id=ir.getUniqueId(),sr&&(lr.style.display="none",sr.appendChild(lr)),processCanvasRGBA$1(lr,tr,rr,nr,ar,or),sr&&sr.removeChild(lr)}}]),FeGaussianBlurElement}();function _isNativeReflectConstruct$K(){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(er){return!1}}var lx=function(er){Pw(TitleElement,pk);var tr=function _createSuper$K(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$K()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(TitleElement);function TitleElement(){var er;return hw(this,TitleElement),(er=tr.apply(this,arguments)).type="title",er}return TitleElement}();function _isNativeReflectConstruct$L(){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(er){return!1}}var cx=function(er){Pw(DescElement,pk);var tr=function _createSuper$L(er){return function(){var tr,rr=Nw(er);if(_isNativeReflectConstruct$L()){var nr=Nw(this).constructor;tr=Reflect.construct(rr,arguments,nr)}else tr=rr.apply(this,arguments);return Ew(this,tr)}}(DescElement);function DescElement(){var er;return hw(this,DescElement),(er=tr.apply(this,arguments)).type="desc",er}return DescElement}(),ux={svg:kk,rect:xk,circle:Sk,ellipse:Ck,line:Bk,polyline:Ek,polygon:Nk,path:wk,pattern:Lk,marker:Pk,defs:Tk,linearGradient:Ik,radialGradient:Rk,stop:Mk,animate:Qk,animateColor:Ok,animateTransform:Dk,font:jk,"font-face":Hk,"missing-glyph":Gk,glyph:Vk,text:_k,tspan:vk,tref:zk,a:Kk,textPath:qk,image:Wk,g:Fk,symbol:Xk,style:Jk,use:$k,mask:ex,clipPath:rx,filter:nx,feDropShadow:ax,feMorphology:ix,feComposite:ox,feColorMatrix:Zk,feGaussianBlur:sx,title:lx,desc:cx};function ownKeys$1(er,tr){var rr=Object.keys(er);if(Object.getOwnPropertySymbols){var nr=Object.getOwnPropertySymbols(er);tr&&(nr=nr.filter((function(tr){return Object.getOwnPropertyDescriptor(er,tr).enumerable}))),rr.push.apply(rr,nr)}return rr}function _createImage(){return(_createImage=uw(cw.mark((function _callee(er){var tr,rr,nr=arguments;return cw.wrap((function _callee$(ar){for(;;)switch(ar.prev=ar.next){case 0:return tr=nr.length>1&&void 0!==nr[1]&&nr[1],rr=document.createElement("img"),tr&&(rr.crossOrigin="Anonymous"),ar.abrupt("return",new Promise((function(tr,nr){rr.onload=function(){tr(rr)},rr.onerror=function(){nr()},rr.src=er})));case 4:case"end":return ar.stop()}}),_callee)})))).apply(this,arguments)}var dx=function(){function Document(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.rootEmSize,nr=void 0===rr?12:rr,ar=tr.emSize,ir=void 0===ar?12:ar,or=tr.createCanvas,sr=void 0===or?Document.createCanvas:or,lr=tr.createImage,cr=void 0===lr?Document.createImage:lr,ur=tr.anonymousCrossOrigin;hw(this,Document),this.canvg=er,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=er.screen,this.rootEmSize=nr,this.emSize=ir,this.createCanvas=sr,this.createImage=this.bindCreateImage(cr,ur),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return pw(Document,[{key:"bindCreateImage",value:function bindCreateImage(er,tr){return"boolean"==typeof tr?function(rr,nr){return er(rr,"boolean"==typeof nr?nr:tr)}:er}},{key:"popEmSize",value:function popEmSize(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function getUniqueId(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function isImagesLoaded(){return this.images.every((function(er){return er.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){return this.fonts.every((function(er){return er.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(er){var tr=this.createElement(er.documentElement);return tr.root=!0,tr.addStylesFromStyleDefinition(),this.documentElement=tr,tr}},{key:"createElement",value:function createElement(er){var tr=er.nodeName.replace(/^[^:]+:/,""),rr=Document.elementTypes[tr];return void 0!==rr?new rr(this,er):new Ak(this,er)}},{key:"createTextNode",value:function createTextNode(er){return new yk(this,er)}},{key:"setViewBox",value:function setViewBox(er){this.screen.setViewBox(function _objectSpread(er){for(var tr=1;tr<arguments.length;tr++){var rr=null!=arguments[tr]?arguments[tr]:{};tr%2?ownKeys$1(Object(rr),!0).forEach((function(tr){dw(er,tr,rr[tr])})):Object.getOwnPropertyDescriptors?Object.defineProperties(er,Object.getOwnPropertyDescriptors(rr)):ownKeys$1(Object(rr)).forEach((function(tr){Object.defineProperty(er,tr,Object.getOwnPropertyDescriptor(rr,tr))}))}return er}({document:this},er))}},{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 er=this.emSizeStack;return er[er.length-1]},set:function set(er){this.emSizeStack.push(er)}}]),Document}();function ownKeys$1$1(er,tr){var rr=Object.keys(er);if(Object.getOwnPropertySymbols){var nr=Object.getOwnPropertySymbols(er);tr&&(nr=nr.filter((function(tr){return Object.getOwnPropertyDescriptor(er,tr).enumerable}))),rr.push.apply(rr,nr)}return rr}function _objectSpread$1(er){for(var tr=1;tr<arguments.length;tr++){var rr=null!=arguments[tr]?arguments[tr]:{};tr%2?ownKeys$1$1(Object(rr),!0).forEach((function(tr){dw(er,tr,rr[tr])})):Object.getOwnPropertyDescriptors?Object.defineProperties(er,Object.getOwnPropertyDescriptors(rr)):ownKeys$1$1(Object(rr)).forEach((function(tr){Object.defineProperty(er,tr,Object.getOwnPropertyDescriptor(rr,tr))}))}return er}dx.createCanvas=function createCanvas(er,tr){var rr=document.createElement("canvas");return rr.width=er,rr.height=tr,rr},dx.createImage=function createImage(er){return _createImage.apply(this,arguments)},dx.elementTypes=ux;var hx=function(){function Canvg(er,tr){var rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};hw(this,Canvg),this.parser=new ak(rr),this.screen=new tk(er,rr),this.options=rr;var nr=new dx(this,rr),ar=nr.createDocumentElement(tr);this.document=nr,this.documentElement=ar}var er,tr;return pw(Canvg,[{key:"fork",value:function fork(er,tr){var rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(er,tr,_objectSpread$1({},this.options,{},rr))}},{key:"forkString",value:function forkString(er,tr){var rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(er,tr,_objectSpread$1({},this.options,{},rr))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(tr=uw(cw.mark((function _callee(){var er,tr=arguments;return cw.wrap((function _callee$(rr){for(;;)switch(rr.prev=rr.next){case 0:return er=tr.length>0&&void 0!==tr[0]?tr[0]:{},this.start(_objectSpread$1({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},er)),rr.next=4,this.ready();case 4:this.stop();case 5:case"end":return rr.stop()}}),_callee,this)}))),function render(){return tr.apply(this,arguments)})},{key:"start",value:function start(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tr=this.documentElement,rr=this.screen,nr=this.options;rr.start(tr,_objectSpread$1({enableRedraw:!0},nr,{},er))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,rr=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(er,tr,rr)}}],[{key:"from",value:(er=uw(cw.mark((function _callee2(er,tr){var rr,nr,ar,ir=arguments;return cw.wrap((function _callee2$(or){for(;;)switch(or.prev=or.next){case 0:return rr=ir.length>2&&void 0!==ir[2]?ir[2]:{},nr=new ak(rr),or.next=4,nr.parse(tr);case 4:return ar=or.sent,or.abrupt("return",new Canvg(er,ar,rr));case 6:case"end":return or.stop()}}),_callee2)}))),function from(tr,rr){return er.apply(this,arguments)})},{key:"fromString",value:function fromString(er,tr){var rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},nr=new ak(rr),ar=nr.parseFromString(tr);return new Canvg(er,ar,rr)}}]),Canvg}();var px=Object.freeze({__proto__:null,offscreen:function offscreen(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tr=er.DOMParser,rr={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:tr,createCanvas:function createCanvas(er,tr){return new OffscreenCanvas(er,tr)},createImage:function createImage(er){return uw(cw.mark((function _callee(){var tr,rr,nr;return cw.wrap((function _callee$(ar){for(;;)switch(ar.prev=ar.next){case 0:return ar.next=2,fetch(er);case 2:return tr=ar.sent,ar.next=5,tr.blob();case 5:return rr=ar.sent,ar.next=8,createImageBitmap(rr);case 8:return nr=ar.sent,ar.abrupt("return",nr);case 10:case"end":return ar.stop()}}),_callee)})))()}};return"undefined"==typeof DOMParser&&void 0!==tr||Reflect.deleteProperty(rr,"DOMParser"),rr},node:function node$1(er){var tr=er.DOMParser,rr=er.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:tr,fetch:er.fetch,createCanvas:rr.createCanvas,createImage:rr.loadImage}}}),Ax=Object.freeze({__proto__:null,default:hx,AElement:Kk,AnimateColorElement:Ok,AnimateElement:Qk,AnimateTransformElement:Dk,BoundingBox:gk,CB1:CB1,CB2:CB2,CB3:CB3,CB4:CB4,Canvg:hx,CircleElement:Sk,ClipPathElement:rx,DefsElement:Tk,DescElement:cx,Document:dx,Element:pk,EllipseElement:Ck,FeColorMatrixElement:Zk,FeCompositeElement:ox,FeDropShadowElement:ax,FeGaussianBlurElement:sx,FeMorphologyElement:ix,FilterElement:nx,Font:fk,FontElement:jk,FontFaceElement:Hk,GElement:Fk,GlyphElement:Vk,GradientElement:Uk,ImageElement:Wk,LineElement:Bk,LinearGradientElement:Ik,MarkerElement:Pk,MaskElement:ex,Matrix:lk,MissingGlyphElement:Gk,Mouse:$w,PSEUDO_ZERO:1e-8,Parser:ak,PathElement:wk,PathParser:bk,PatternElement:Lk,Point:Jw,PolygonElement:Nk,PolylineElement:Ek,Property:Xw,QB1:QB1,QB2:QB2,QB3:QB3,RadialGradientElement:Rk,RectElement:xk,RenderedElement:mk,Rotate:ok,SVGElement:kk,SVGFontLoader:Yk,Scale:sk,Screen:tk,Skew:ck,SkewX:uk,SkewY:dk,StopElement:Mk,StyleElement:Jk,SymbolElement:Xk,TRefElement:zk,TSpanElement:vk,TextElement:_k,TextPathElement:qk,TitleElement:lx,Transform:hk,Translate:ik,UnknownElement:Ak,UseElement:$k,ViewPort:Yw,compressSpaces:compressSpaces,getSelectorSpecificity:getSelectorSpecificity,normalizeAttributeName:normalizeAttributeName,normalizeColor:normalizeColor,parseExternalUrl:parseExternalUrl,presets:px,toNumbers:toNumbers,trimLeft:trimLeft$1,trimRight:trimRight$1,vectorMagnitude:vectorMagnitude,vectorsAngle:vectorsAngle,vectorsRatio:vectorsRatio}),fx=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"},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"}}}),gx=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:"مائل نص"},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"}}}),mx=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"},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"}}}),_x=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:"Нахілены тэкст"},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"}}}),vx=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:"Курсив текст"},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"}}}),yx=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"},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"}}}),bx=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"},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"}}}),wx=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"},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"}}}),kx=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"},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"}}}),xx=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"},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"}}}),Sx=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:"Πλάγιους"},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"}}}),Cx=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]"},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 [F]",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"}}}),Bx=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"},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"}}}),Ex=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"},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"}}}),Nx=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:"متن کج "},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"}}}),Lx=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"},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"}}}),Px=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"},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"}}}),Tx=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"},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"}}}),Fx=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"},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"}}}),Ux=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"},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"}}}),Ix=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:"טקסט נטוי"},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"}}}),Rx=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:"इटैलिक पाठ"},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"}}}),Mx=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"},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"}}}),Qx=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"},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"}}}),Ox=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"},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"}}}),Dx=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"},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"}}}),jx=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"},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"}}}),Hx=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"},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"}}}),Gx=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:"イタリック体"},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"}}}),Vx=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:"기울임꼴 텍스트"},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"}}}),zx=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"},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"}}}),Kx=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"},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"}}}),qx=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 текст"},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"}}}),Wx=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"},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"}}}),Xx=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"},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"}}}),Yx=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"},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"}}}),Jx=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"},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"}}}),$x=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"},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"}}}),Zx=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"},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"}}}),eS=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"},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"}}}),tS=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"},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"}}}),rS=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:"Курсив"},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:"Текст может показываться не так как должен"}}}),nS=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"},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"}}}),aS=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"},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"}}}),iS=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"},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"}}}),oS=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:"Италиц текст"},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"}}}),sS=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"},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"}}}),lS=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"},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"}}}),cS=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"},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"}}}),uS=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:"ข้อความตัวเอียง"},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"}}}),dS=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"},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"}}}),hS=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ı"},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"}}}),pS=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:"Похилий текст"},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"}}}),AS=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"},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"}}}),fS=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:"יטאַליק טעקסט"},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"}}}),gS=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:"斜体"},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"}}}),mS=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:"斜体文本"},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"}}}),_S=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:"斜體"},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=index.js.map
|