589 lines
1.9 MiB
589 lines
1.9 MiB
System.register([],(function(er,tr){"use strict";return{execute:function(){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},rr=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}},nr=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ir={}.propertyIsEnumerable,or=Object.getOwnPropertyDescriptor,ar={f:or&&!ir.call({1:2},1)?function propertyIsEnumerable(er){var tr=or(this,er);return!!tr&&tr.enumerable}:ir},createPropertyDescriptor=function(er,tr){return{enumerable:!(1&er),configurable:!(2&er),writable:!(4&er),value:tr}},sr={}.toString,classofRaw=function(er){return sr.call(er).slice(8,-1)},lr="".split,cr=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(er){return"String"==classofRaw(er)?lr.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 cr(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")},ur={}.hasOwnProperty,has=function(er,tr){return ur.call(er,tr)},dr=rr.document,hr=isObject(dr)&&isObject(dr.createElement),documentCreateElement=function(er){return hr?dr.createElement(er):{}},pr=!nr&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),Ar=Object.getOwnPropertyDescriptor,fr={f:nr?Ar:function getOwnPropertyDescriptor(er,tr){if(er=toIndexedObject(er),tr=toPrimitive(tr,!0),pr)try{return Ar(er,tr)}catch(er){}if(has(er,tr))return createPropertyDescriptor(!ar.f.call(er,tr),er[tr])}},anObject=function(er){if(!isObject(er))throw TypeError(String(er)+" is not an object");return er},gr=Object.defineProperty,mr={f:nr?gr:function defineProperty(er,tr,rr){if(anObject(er),tr=toPrimitive(tr,!0),anObject(rr),pr)try{return gr(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}},_r=nr?function(er,tr,rr){return mr.f(er,tr,createPropertyDescriptor(1,rr))}:function(er,tr,rr){return er[tr]=rr,er},setGlobal=function(er,tr){try{_r(rr,er,tr)}catch(nr){rr[er]=tr}return tr},vr="__core-js_shared__",yr=rr[vr]||setGlobal(vr,{}),br=Function.toString;"function"!=typeof yr.inspectSource&&(yr.inspectSource=function(er){return br.call(er)});var wr,Sr,xr,kr=yr.inspectSource,Cr=rr.WeakMap,Br="function"==typeof Cr&&/native code/.test(kr(Cr)),Er=createCommonjsModule((function(er){(er.exports=function(er,tr){return yr[er]||(yr[er]=void 0!==tr?tr:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Nr=0,Lr=Math.random(),uid=function(er){return"Symbol("+String(void 0===er?"":er)+")_"+(++Nr+Lr).toString(36)},Tr=Er("keys"),sharedKey=function(er){return Tr[er]||(Tr[er]=uid(er))},Pr={},Fr=rr.WeakMap;if(Br){var Ur=new Fr,Ir=Ur.get,Rr=Ur.has,Mr=Ur.set;wr=function(er,tr){return Mr.call(Ur,er,tr),tr},Sr=function(er){return Ir.call(Ur,er)||{}},xr=function(er){return Rr.call(Ur,er)}}else{var Or=sharedKey("state");Pr[Or]=!0,wr=function(er,tr){return _r(er,Or,tr),tr},Sr=function(er){return has(er,Or)?er[Or]:{}},xr=function(er){return has(er,Or)}}var Qr,Dr,jr={set:wr,get:Sr,has:xr,enforce:function(er){return xr(er)?Sr(er):wr(er,{})},getterFor:function(er){return function(tr){var rr;if(!isObject(tr)||(rr=Sr(tr)).type!==er)throw TypeError("Incompatible receiver, "+er+" required");return rr}}},Hr=createCommonjsModule((function(er){var tr=jr.get,nr=jr.enforce,ir=String(String).split("String");(er.exports=function(er,tr,or,ar){var sr=!!ar&&!!ar.unsafe,lr=!!ar&&!!ar.enumerable,cr=!!ar&&!!ar.noTargetGet;"function"==typeof or&&("string"!=typeof tr||has(or,"name")||_r(or,"name",tr),nr(or).source=ir.join("string"==typeof tr?tr:"")),er!==rr?(sr?!cr&&er[tr]&&(lr=!0):delete er[tr],lr?er[tr]=or:_r(er,tr,or)):lr?er[tr]=or:setGlobal(tr,or)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&tr(this).source||kr(this)}))})),Gr=rr,aFunction=function(er){return"function"==typeof er?er:void 0},getBuiltIn=function(er,tr){return arguments.length<2?aFunction(Gr[er])||aFunction(rr[er]):Gr[er]&&Gr[er][tr]||rr[er]&&rr[er][tr]},Vr=Math.ceil,zr=Math.floor,toInteger=function(er){return isNaN(er=+er)?0:(er>0?zr:Vr)(er)},Kr=Math.min,toLength=function(er){return er>0?Kr(toInteger(er),9007199254740991):0},qr=Math.max,Wr=Math.min,toAbsoluteIndex=function(er,tr){var rr=toInteger(er);return rr<0?qr(rr+tr,0):Wr(rr,tr)},createMethod=function(er){return function(tr,rr,nr){var ir,or=toIndexedObject(tr),ar=toLength(or.length),sr=toAbsoluteIndex(nr,ar);if(er&&rr!=rr){for(;ar>sr;)if((ir=or[sr++])!=ir)return!0}else for(;ar>sr;sr++)if((er||sr in or)&&or[sr]===rr)return er||sr||0;return!er&&-1}},Xr={includes:createMethod(!0),indexOf:createMethod(!1)},Yr=Xr.indexOf,objectKeysInternal=function(er,tr){var rr,nr=toIndexedObject(er),ir=0,or=[];for(rr in nr)!has(Pr,rr)&&has(nr,rr)&&or.push(rr);for(;tr.length>ir;)has(nr,rr=tr[ir++])&&(~Yr(or,rr)||or.push(rr));return or},Jr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$r=Jr.concat("length","prototype"),Zr={f:Object.getOwnPropertyNames||function getOwnPropertyNames(er){return objectKeysInternal(er,$r)}},Tn={f:Object.getOwnPropertySymbols},Un=getBuiltIn("Reflect","ownKeys")||function ownKeys(er){var tr=Zr.f(anObject(er)),rr=Tn.f;return rr?tr.concat(rr(er)):tr},copyConstructorProperties=function(er,tr){for(var rr=Un(tr),nr=mr.f,ir=fr.f,or=0;or<rr.length;or++){var ar=rr[or];has(er,ar)||nr(er,ar,ir(tr,ar))}},Qn=/#|\.prototype\./,isForced=function(er,tr){var rr=Hn[Dn(er)];return rr==Vn||rr!=Gn&&("function"==typeof tr?fails(tr):!!tr)},Dn=isForced.normalize=function(er){return String(er).replace(Qn,".").toLowerCase()},Hn=isForced.data={},Gn=isForced.NATIVE="N",Vn=isForced.POLYFILL="P",zn=isForced,Kn=fr.f,_export=function(er,tr){var nr,ir,or,ar,sr,lr=er.target,cr=er.global,ur=er.stat;if(nr=cr?rr:ur?rr[lr]||setGlobal(lr,{}):(rr[lr]||{}).prototype)for(ir in tr){if(ar=tr[ir],or=er.noTargetGet?(sr=Kn(nr,ir))&&sr.value:nr[ir],!zn(cr?ir:lr+(ur?".":"#")+ir,er.forced)&&void 0!==or){if(typeof ar==typeof or)continue;copyConstructorProperties(ar,or)}(er.sham||or&&or.sham)&&_r(ar,"sham",!0),Hr(nr,ir,ar,er)}},Wn=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?mr.f(er,nr,createPropertyDescriptor(0,rr)):er[nr]=rr},Xn=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),Yn=Xn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Jn=Er("wks"),$n=rr.Symbol,Zn=Yn?$n:$n&&$n.withoutSetter||uid,wellKnownSymbol=function(er){return has(Jn,er)||(Xn&&has($n,er)?Jn[er]=$n[er]:Jn[er]=Zn("Symbol."+er)),Jn[er]},ei=wellKnownSymbol("species"),arraySpeciesCreate=function(er,tr){var rr;return Wn(er)&&("function"!=typeof(rr=er.constructor)||rr!==Array&&!Wn(rr.prototype)?isObject(rr)&&null===(rr=rr[ei])&&(rr=void 0):rr=void 0),new(void 0===rr?Array:rr)(0===tr?0:tr)},ti=getBuiltIn("navigator","userAgent")||"",ri=rr.process,ni=ri&&ri.versions,ii=ni&&ni.v8;ii?Dr=(Qr=ii.split("."))[0]+Qr[1]:ti&&(!(Qr=ti.match(/Edge\/(\d+)/))||Qr[1]>=74)&&(Qr=ti.match(/Chrome\/(\d+)/))&&(Dr=Qr[1]);var oi=Dr&&+Dr,ai=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(er){return oi>=51||!fails((function(){var tr=[];return(tr.constructor={})[ai]=function(){return{foo:1}},1!==tr[er](Boolean).foo}))},si=wellKnownSymbol("isConcatSpreadable"),li=9007199254740991,ui="Maximum allowed index exceeded",di=oi>=51||!fails((function(){var er=[];return er[si]=!1,er.concat()[0]!==er})),hi=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(er){if(!isObject(er))return!1;var tr=er[si];return void 0!==tr?!!tr:Wn(er)};_export({target:"Array",proto:!0,forced:!di||!hi},{concat:function concat(er){var tr,rr,nr,ir,or,ar=toObject(this),sr=arraySpeciesCreate(ar,0),lr=0;for(tr=-1,nr=arguments.length;tr<nr;tr++)if(isConcatSpreadable(or=-1===tr?ar:arguments[tr])){if(lr+(ir=toLength(or.length))>li)throw TypeError(ui);for(rr=0;rr<ir;rr++,lr++)rr in or&&createProperty(sr,lr,or[rr])}else{if(lr>=li)throw TypeError(ui);createProperty(sr,lr++,or)}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,ir){return er.call(tr,rr,nr,ir)}}return function(){return er.apply(tr,arguments)}},pi=[].push,createMethod$1=function(er){var tr=1==er,rr=2==er,nr=3==er,ir=4==er,or=6==er,ar=5==er||or;return function(sr,lr,ur,dr){for(var hr,pr,Ar=toObject(sr),fr=cr(Ar),gr=functionBindContext(lr,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((ar||_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:pi.call(yr,hr)}else if(ir)return!1;return or?-1:nr||ir?ir:yr}},Ai={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)},fi=Object.defineProperty,gi={},thrower=function(er){throw er},arrayMethodUsesToLength=function(er,tr){if(has(gi,er))return gi[er];tr||(tr={});var rr=[][er],ir=!!has(tr,"ACCESSORS")&&tr.ACCESSORS,or=has(tr,0)?tr[0]:thrower,ar=has(tr,1)?tr[1]:void 0;return gi[er]=!!rr&&!fails((function(){if(ir&&!nr)return!0;var er={length:-1};ir?fi(er,1,{enumerable:!0,get:thrower}):er[1]=1,rr.call(er,or,ar)}))},mi=Ai.filter,_i=arrayMethodHasSpeciesSupport("filter"),vi=arrayMethodUsesToLength("filter");_export({target:"Array",proto:!0,forced:!_i||!vi},{filter:function filter(er){return mi(this,er,arguments.length>1?arguments[1]:void 0)}});var yi,wi=Object.keys||function keys(er){return objectKeysInternal(er,Jr)},Si=nr?Object.defineProperties:function defineProperties(er,tr){anObject(er);for(var rr,nr=wi(tr),ir=nr.length,or=0;ir>or;)mr.f(er,rr=nr[or++],tr[rr]);return er},xi=getBuiltIn("document","documentElement"),ki=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(er){return"<script>"+er+"</"+"script>"},NullProtoObject=function(){try{yi=document.domain&&new ActiveXObject("htmlfile")}catch(er){}var er,tr;NullProtoObject=yi?function(er){er.write(scriptTag("")),er.close();var tr=er.parentWindow.Object;return er=null,tr}(yi):((tr=documentCreateElement("iframe")).style.display="none",xi.appendChild(tr),tr.src=String("javascript:"),(er=tr.contentWindow.document).open(),er.write(scriptTag("document.F=Object")),er.close(),er.F);for(var rr=Jr.length;rr--;)delete NullProtoObject.prototype[Jr[rr]];return NullProtoObject()};Pr[ki]=!0;var Ci=Object.create||function create(er,tr){var rr;return null!==er?(EmptyConstructor.prototype=anObject(er),rr=new EmptyConstructor,EmptyConstructor.prototype=null,rr[ki]=er):rr=NullProtoObject(),void 0===tr?rr:Si(rr,tr)},Bi=wellKnownSymbol("unscopables"),Ei=Array.prototype;null==Ei[Bi]&&mr.f(Ei,Bi,{configurable:!0,value:Ci(null)});var addToUnscopables=function(er){Ei[Bi][er]=!0},Ni=Ai.find,Li="find",Ti=!0,Pi=arrayMethodUsesToLength(Li);Li in[]&&Array(1).find((function(){Ti=!1})),_export({target:"Array",proto:!0,forced:Ti||!Pi},{find:function find(er){return Ni(this,er,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables(Li);var arrayMethodIsStrict=function(er,tr){var rr=[][er];return!!rr&&fails((function(){rr.call(null,tr||function(){throw 1},1)}))},Fi=Xr.indexOf,Ui=[].indexOf,Ii=!!Ui&&1/[1].indexOf(1,-0)<0,Ri=arrayMethodIsStrict("indexOf"),Mi=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:Ii||!Ri||!Mi},{indexOf:function indexOf(er){return Ii?Ui.apply(this,arguments)||0:Fi(this,er,arguments.length>1?arguments[1]:void 0)}}),_export({target:"Array",stat:!0},{isArray:Wn});var Oi=[].join,Qi=cr!=Object,Di=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:Qi||!Di},{join:function join(er){return Oi.call(toIndexedObject(this),void 0===er?",":er)}});var ji=Ai.map,Hi=arrayMethodHasSpeciesSupport("map"),Gi=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!Hi||!Gi},{map:function map(er){return ji(this,er,arguments.length>1?arguments[1]:void 0)}});var Vi=[].reverse,zi=[1,2];_export({target:"Array",proto:!0,forced:String(zi)===String(zi.reverse())},{reverse:function reverse(){return Wn(this)&&(this.length=this.length),Vi.call(this)}});var Ki=arrayMethodHasSpeciesSupport("slice"),qi=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),Wi=wellKnownSymbol("species"),Xi=[].slice,Yi=Math.max;_export({target:"Array",proto:!0,forced:!Ki||!qi},{slice:function slice(er,tr){var rr,nr,ir,or=toIndexedObject(this),ar=toLength(or.length),sr=toAbsoluteIndex(er,ar),lr=toAbsoluteIndex(void 0===tr?ar:tr,ar);if(Wn(or)&&("function"!=typeof(rr=or.constructor)||rr!==Array&&!Wn(rr.prototype)?isObject(rr)&&null===(rr=rr[Wi])&&(rr=void 0):rr=void 0,rr===Array||void 0===rr))return Xi.call(or,sr,lr);for(nr=new(void 0===rr?Array:rr)(Yi(lr-sr,0)),ir=0;sr<lr;sr++,ir++)sr in or&&createProperty(nr,ir,or[sr]);return nr.length=ir,nr}});var Ji=[],$i=Ji.sort,Zi=fails((function(){Ji.sort(void 0)})),eo=fails((function(){Ji.sort(null)})),to=arrayMethodIsStrict("sort");_export({target:"Array",proto:!0,forced:Zi||!eo||!to},{sort:function sort(er){return void 0===er?$i.call(toObject(this)):$i.call(toObject(this),aFunction$1(er))}});var ro=arrayMethodHasSpeciesSupport("splice"),no=arrayMethodUsesToLength("splice",{ACCESSORS:!0,0:0,1:2}),io=Math.max,oo=Math.min,ao=9007199254740991,so="Maximum allowed length exceeded";_export({target:"Array",proto:!0,forced:!ro||!no},{splice:function splice(er,tr){var rr,nr,ir,or,ar,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=oo(io(toInteger(tr),0),cr-ur)),cr+rr-nr>ao)throw TypeError(so);for(ir=arraySpeciesCreate(lr,nr),or=0;or<nr;or++)(ar=ur+or)in lr&&createProperty(ir,or,lr[ar]);if(ir.length=nr,rr<nr){for(or=ur;or<cr-nr;or++)sr=or+rr,(ar=or+nr)in lr?lr[sr]=lr[ar]:delete lr[sr];for(or=cr;or>cr-nr+rr;or--)delete lr[or-1]}else if(rr>nr)for(or=cr-nr;or>ur;or--)sr=or+rr-1,(ar=or+nr-1)in lr?lr[sr]=lr[ar]:delete lr[sr];for(or=0;or<rr;or++)lr[or+ur]=arguments[or+2];return lr.length=cr-nr+rr,ir}});var lo=fails((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));_export({target:"Date",proto:!0,forced:lo},{toJSON:function toJSON(er){var tr=toObject(this),rr=toPrimitive(tr);return"number"!=typeof rr||isFinite(rr)?tr.toISOString():null}});var co=Date.prototype,uo="Invalid Date",ho="toString",po=co.toString,Ao=co.getTime;new Date(NaN)+""!=uo&&Hr(co,ho,(function toString(){var er=Ao.call(this);return er==er?po.call(this):uo}));var fo=mr.f,go=Function.prototype,mo=go.toString,_o=/^\s*function ([^ (]*)/,vo="name";nr&&!(vo in go)&&fo(go,vo,{configurable:!0,get:function(){try{return mo.call(this).match(_o)[1]}catch(er){return""}}});var yo={};yo[wellKnownSymbol("toStringTag")]="z";var wo="[object z]"===String(yo),So=wellKnownSymbol("toStringTag"),xo="Arguments"==classofRaw(function(){return arguments}()),ko=wo?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),So))?rr:xo?classofRaw(tr):"Object"==(nr=classofRaw(tr))&&"function"==typeof tr.callee?"Arguments":nr},Co=wo?{}.toString:function toString(){return"[object "+ko(this)+"]"};wo||Hr(Object.prototype,"toString",Co,{unsafe:!0});var Bo="\t\n\v\f\r \u2028\u2029\ufeff",Eo="["+Bo+"]",No=RegExp("^"+Eo+Eo+"*"),Lo=RegExp(Eo+Eo+"*$"),createMethod$2=function(er){return function(tr){var rr=String(requireObjectCoercible(tr));return 1&er&&(rr=rr.replace(No,"")),2&er&&(rr=rr.replace(Lo,"")),rr}},To={start:createMethod$2(1),end:createMethod$2(2),trim:createMethod$2(3)},Po=To.trim,Fo=rr.parseFloat,Uo=1/Fo(Bo+"-0")!=-1/0?function parseFloat(er){var tr=Po(String(er)),rr=Fo(tr);return 0===rr&&"-"==tr.charAt(0)?-0:rr}:Fo;_export({global:!0,forced:parseFloat!=Uo},{parseFloat:Uo});var Io=To.trim,Ro=rr.parseInt,Mo=/^[+-]?0[Xx]/,Oo=8!==Ro(Bo+"08")||22!==Ro(Bo+"0x16")?function parseInt(er,tr){var rr=Io(String(er));return Ro(rr,tr>>>0||(Mo.test(rr)?16:10))}:Ro;_export({global:!0,forced:parseInt!=Oo},{parseInt:Oo});var Qo=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),inheritIfRequired=function(er,tr,rr){var nr,ir;return Qo&&"function"==typeof(nr=tr.constructor)&&nr!==rr&&isObject(ir=nr.prototype)&&ir!==rr.prototype&&Qo(er,ir),er},Do=wellKnownSymbol("match"),isRegexp=function(er){var tr;return isObject(er)&&(void 0!==(tr=er[Do])?!!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 jo={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")}))},Ho=wellKnownSymbol("species"),setSpecies=function(er){var tr=getBuiltIn(er),rr=mr.f;nr&&tr&&!tr[Ho]&&rr(tr,Ho,{configurable:!0,get:function(){return this}})},Go=mr.f,Vo=Zr.f,zo=jr.set,Ko=wellKnownSymbol("match"),qo=rr.RegExp,Wo=qo.prototype,Xo=/a/g,Yo=/a/g,Jo=new qo(Xo)!==Xo,$o=jo.UNSUPPORTED_Y;if(nr&&zn("RegExp",!Jo||$o||fails((function(){return Yo[Ko]=!1,qo(Xo)!=Xo||qo(Yo)==Yo||"/a/i"!=qo(Xo,"i")})))){for(var Zo=function RegExp(er,tr){var rr,nr=this instanceof Zo,ir=isRegexp(er),or=void 0===tr;if(!nr&&ir&&er.constructor===Zo&&or)return er;Jo?ir&&!or&&(er=er.source):er instanceof Zo&&(or&&(tr=regexpFlags.call(er)),er=er.source),$o&&(rr=!!tr&&tr.indexOf("y")>-1)&&(tr=tr.replace(/y/g,""));var ar=inheritIfRequired(Jo?new qo(er,tr):qo(er,tr),nr?this:Wo,Zo);return $o&&rr&&zo(ar,{sticky:rr}),ar},proxy=function(er){er in Zo||Go(Zo,er,{configurable:!0,get:function(){return qo[er]},set:function(tr){qo[er]=tr}})},ea=Vo(qo),ta=0;ea.length>ta;)proxy(ea[ta++]);Wo.constructor=Zo,Zo.prototype=Wo,Hr(rr,"RegExp",Zo)}setSpecies("RegExp");var ra=RegExp.prototype.exec,na=String.prototype.replace,ia=ra,oa=function(){var er=/a/,tr=/b*/g;return ra.call(er,"a"),ra.call(tr,"a"),0!==er.lastIndex||0!==tr.lastIndex}(),aa=jo.UNSUPPORTED_Y||jo.BROKEN_CARET,sa=void 0!==/()??/.exec("")[1];(oa||sa||aa)&&(ia=function exec(er){var tr,rr,nr,ir,or=this,ar=aa&&or.sticky,sr=regexpFlags.call(or),lr=or.source,cr=0,ur=er;return ar&&(-1===(sr=sr.replace("y","")).indexOf("g")&&(sr+="g"),ur=String(er).slice(or.lastIndex),or.lastIndex>0&&(!or.multiline||or.multiline&&"\n"!==er[or.lastIndex-1])&&(lr="(?: "+lr+")",ur=" "+ur,cr++),rr=new RegExp("^(?:"+lr+")",sr)),sa&&(rr=new RegExp("^"+lr+"$(?!\\s)",sr)),oa&&(tr=or.lastIndex),nr=ra.call(ar?rr:or,ur),ar?nr?(nr.input=nr.input.slice(cr),nr[0]=nr[0].slice(cr),nr.index=or.lastIndex,or.lastIndex+=nr[0].length):or.lastIndex=0:oa&&nr&&(or.lastIndex=or.global?nr.index+nr[0].length:tr),sa&&nr&&nr.length>1&&na.call(nr[0],rr,(function(){for(ir=1;ir<arguments.length-2;ir++)void 0===arguments[ir]&&(nr[ir]=void 0)})),nr});var la=ia;_export({target:"RegExp",proto:!0,forced:/./.exec!==la},{exec:la});var ua="toString",da=RegExp.prototype,ha=da.toString,pa=fails((function(){return"/a/b"!=ha.call({source:"a",flags:"b"})})),Aa=ha.name!=ua;(pa||Aa)&&Hr(RegExp.prototype,ua,(function toString(){var er=anObject(this),tr=String(er.source),rr=er.flags;return"/"+tr+"/"+String(void 0===rr&&er instanceof RegExp&&!("flags"in da)?regexpFlags.call(er):rr)}),{unsafe:!0});var fa=wellKnownSymbol("species"),ga=!fails((function(){var er=/./;return er.exec=function(){var er=[];return er.groups={a:"7"},er},"7"!=="".replace(er,"$<a>")})),ma="$0"==="a".replace(/./,"$0"),_a=wellKnownSymbol("replace"),va=!!/./[_a]&&""===/./[_a]("a","$0"),ya=!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 ir=wellKnownSymbol(er),or=!fails((function(){var tr={};return tr[ir]=function(){return 7},7!=""[er](tr)})),ar=or&&!fails((function(){var tr=!1,rr=/a/;return"split"===er&&((rr={}).constructor={},rr.constructor[fa]=function(){return rr},rr.flags="",rr[ir]=/./[ir]),rr.exec=function(){return tr=!0,null},rr[ir](""),!tr}));if(!or||!ar||"replace"===er&&(!ga||!ma||va)||"split"===er&&!ya){var sr=/./[ir],lr=rr(ir,""[er],(function(er,tr,rr,nr,ir){return tr.exec===la?or&&!ir?{done:!0,value:sr.call(tr,rr,nr)}:{done:!0,value:er.call(rr,tr,nr)}:{done:!1}}),{REPLACE_KEEPS_$0:ma,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:va}),cr=lr[0],ur=lr[1];Hr(String.prototype,er,cr),Hr(RegExp.prototype,ir,2==tr?function(er,tr){return ur.call(er,this,tr)}:function(er){return ur.call(er,this)})}nr&&_r(RegExp.prototype[ir],"sham",!0)},createMethod$3=function(er){return function(tr,rr){var nr,ir,or=String(requireObjectCoercible(tr)),ar=toInteger(rr),sr=or.length;return ar<0||ar>=sr?er?"":void 0:(nr=or.charCodeAt(ar))<55296||nr>56319||ar+1===sr||(ir=or.charCodeAt(ar+1))<56320||ir>57343?er?or.charAt(ar):nr:er?or.slice(ar,ar+2):ir-56320+(nr-55296<<10)+65536}},ba={codeAt:createMethod$3(!1),charAt:createMethod$3(!0)},wa=ba.charAt,advanceStringIndex=function(er,tr,rr){return tr+(rr?wa(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 la.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 ir=anObject(er),or=String(this);if(!ir.global)return regexpExecAbstract(ir,or);var ar=ir.unicode;ir.lastIndex=0;for(var sr,lr=[],cr=0;null!==(sr=regexpExecAbstract(ir,or));){var ur=String(sr[0]);lr[cr]=ur,""===ur&&(ir.lastIndex=advanceStringIndex(or,toLength(ir.lastIndex),ar)),cr++}return 0===cr?null:lr}]}));var Sa=Math.max,xa=Math.min,ka=Math.floor,Ca=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ba=/\$([$&'`]|\d\d?)/g,maybeToString=function(er){return void 0===er?er:String(er)};fixRegexpWellKnownSymbolLogic("replace",2,(function(er,tr,rr,nr){var ir=nr.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,or=nr.REPLACE_KEEPS_$0,ar=ir?"$":"$0";return[function replace(rr,nr){var ir=requireObjectCoercible(this),or=null==rr?void 0:rr[er];return void 0!==or?or.call(rr,ir,nr):tr.call(String(ir),rr,nr)},function(er,nr){if(!ir&&or||"string"==typeof nr&&-1===nr.indexOf(ar)){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=Sa(xa(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 Sr=[_r].concat(yr,vr,cr);void 0!==wr&&Sr.push(wr);var xr=String(nr.apply(void 0,Sr))}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,ir,or,ar){var sr=nr+er.length,lr=ir.length,cr=Ba;return void 0!==or&&(or=toObject(or),cr=Ca),tr.call(ar,cr,(function(tr,ar){var cr;switch(ar.charAt(0)){case"$":return"$";case"&":return er;case"`":return rr.slice(0,nr);case"'":return rr.slice(sr);case"<":cr=or[ar.slice(1,-1)];break;default:var ur=+ar;if(0===ur)return tr;if(ur>lr){var dr=ka(ur/10);return 0===dr?tr:dr<=lr?void 0===ir[dr-1]?ar.charAt(1):ir[dr-1]+ar.charAt(1):tr}cr=ir[ur-1]}return void 0===cr?"":cr}))}}));var Ea=wellKnownSymbol("species"),speciesConstructor=function(er,tr){var rr,nr=anObject(er).constructor;return void 0===nr||null==(rr=anObject(nr)[Ea])?tr:aFunction$1(rr)},Na=[].push,La=Math.min,Ta=4294967295,Pa=!fails((function(){return!RegExp(Ta,"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)),ir=void 0===rr?Ta:rr>>>0;if(0===ir)return[];if(void 0===er)return[nr];if(!isRegexp(er))return tr.call(nr,er,ir);for(var or,ar,sr,lr=[],cr=(er.ignoreCase?"i":"")+(er.multiline?"m":"")+(er.unicode?"u":"")+(er.sticky?"y":""),ur=0,dr=new RegExp(er.source,cr+"g");(or=la.call(dr,nr))&&!((ar=dr.lastIndex)>ur&&(lr.push(nr.slice(ur,or.index)),or.length>1&&or.index<nr.length&&Na.apply(lr,or.slice(1)),sr=or[0].length,ur=ar,lr.length>=ir));)dr.lastIndex===or.index&&dr.lastIndex++;return ur===nr.length?!sr&&dr.test("")||lr.push(""):lr.push(nr.slice(ur)),lr.length>ir?lr.slice(0,ir):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 ir=requireObjectCoercible(this),or=null==tr?void 0:tr[er];return void 0!==or?or.call(tr,ir,rr):nr.call(String(ir),tr,rr)},function(er,ir){var or=rr(nr,er,this,ir,nr!==tr);if(or.done)return or.value;var ar=anObject(er),sr=String(this),lr=speciesConstructor(ar,RegExp),cr=ar.unicode,ur=(ar.ignoreCase?"i":"")+(ar.multiline?"m":"")+(ar.unicode?"u":"")+(Pa?"y":"g"),dr=new lr(Pa?ar:"^(?:"+ar.source+")",ur),hr=void 0===ir?Ta:ir>>>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=Pa?Ar:0;var gr,mr=regexpExecAbstract(dr,Pa?sr:sr.slice(Ar));if(null===mr||(gr=La(toLength(dr.lastIndex+(Pa?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}]}),!Pa);var Fa=To.trim;_export({target:"String",proto:!0,forced:function(er){return fails((function(){return!!Bo[er]()||"
"!="
"[er]()||Bo[er].name!==er}))}("trim")},{trim:function trim(){return Fa(this)}});var Ua=/"/g,createHtml=function(er,tr,rr,nr){var ir=String(requireObjectCoercible(er)),or="<"+tr;return""!==rr&&(or+=" "+rr+'="'+String(nr).replace(Ua,""")+'"'),or+">"+ir+"</"+tr+">"},stringHtmlForced=function(er){return fails((function(){var tr=""[er]('"');return tr!==tr.toLowerCase()||tr.split('"').length>3}))};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,ir,or,ar){try{var sr=er[or](ar),lr=sr.value}catch(er){return void rr(er)}sr.done?tr(lr):Promise.resolve(lr).then(nr,ir)}function _asyncToGenerator(er){return function(){var tr=this,rr=arguments;return new Promise((function(nr,ir){var or=er.apply(tr,rr);function _next(er){asyncGeneratorStep(or,nr,ir,_next,_throw,"next",er)}function _throw(er){asyncGeneratorStep(or,nr,ir,_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 _defineProperty(er,tr,rr){return tr in er?Object.defineProperty(er,tr,{value:rr,enumerable:!0,configurable:!0,writable:!0}):er[tr]=rr,er}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 _objectSpread2(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){_defineProperty(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}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 ir=new(Function.bind.apply(er,nr));return rr&&_setPrototypeOf(ir,rr.prototype),ir}).apply(null,arguments)}function _wrapNativeSuper(er){var tr="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(er){if(null===er||!function _isNativeFunction(er){return-1!==Function.toString.call(er).indexOf("[native code]")}(er))return er;if("function"!=typeof er)throw new TypeError("Super expression must either be null or a function");if(void 0!==tr){if(tr.has(er))return tr.get(er);tr.set(er,Wrapper)}function Wrapper(){return _construct(er,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(er.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,er)})(er)}function _possibleConstructorReturn(er,tr){return!tr||"object"!=typeof tr&&"function"!=typeof tr?function _assertThisInitialized(er){if(void 0===er)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return er}(er):tr}function _createSuper(er){var tr=_isNativeReflectConstruct();return function _createSuperInternal(){var rr,nr=_getPrototypeOf(er);if(tr){var ir=_getPrototypeOf(this).constructor;rr=Reflect.construct(nr,arguments,ir)}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 ir=Object.getOwnPropertyDescriptor(nr,tr);return ir.get?ir.get.call(rr):ir.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,ir=!1,or=void 0;try{for(var ar,sr=er[Symbol.iterator]();!(nr=(ar=sr.next()).done)&&(rr.push(ar.value),!tr||rr.length!==tr);nr=!0);}catch(er){ir=!0,or=er}finally{try{nr||null==sr.return||sr.return()}finally{if(ir)throw or}}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 ir,or=!0,ar=!1;return{s:function(){rr=er[Symbol.iterator]()},n:function(){var er=rr.next();return or=er.done,er},e:function(er){ar=!0,ir=er},f:function(){try{or||null==rr.return||rr.return()}finally{if(ar)throw ir}}}}
|
||
/*! jQuery v1.7.1 jquery.com | jquery.org/license */_export({target:"String",proto:!0,forced:stringHtmlForced("sub")},{sub:function sub(){return createHtml(this,"sub","","")}}),_export({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return URL.prototype.toString.call(this)}}),function(er,tr){function cy(er){return or.isWindow(er)?er:9===er.nodeType&&(er.defaultView||er.parentWindow)}function cv(er){if(!Bi[er]){var tr=rr.body,nr=or("<"+er+">").appendTo(tr),ir=nr.css("display");nr.remove(),"none"!==ir&&""!==ir||(Si||((Si=rr.createElement("iframe")).frameBorder=Si.width=Si.height=0),tr.appendChild(Si),xi&&Si.createElement||((xi=(Si.contentWindow||Si.contentDocument).document).write(("CSS1Compat"===rr.compatMode?"<!doctype html>":"")+"<html><body>"),xi.close()),nr=xi.createElement(er),xi.body.appendChild(nr),ir=or.css(nr,"display"),tr.removeChild(Si)),Bi[er]=ir}return Bi[er]}function cu(er,tr){var rr={};return or.each(Li.concat.apply([],Li.slice(0,tr)),(function(){rr[this]=er})),rr}function ct(){Ci=tr}function cs(){return setTimeout(ct,0),Ci=or.now()}function ci(){try{return new er.XMLHttpRequest}catch(er){}}function ca(er,tr,rr,nr){if(or.isArray(tr))or.each(tr,(function(tr,ir){rr||Zn.test(er)?nr(er,ir):ca(er+"["+("object"==_typeof(ir)||or.isArray(ir)?tr:"")+"]",ir,rr,nr)}));else if(rr||null==tr||"object"!=_typeof(tr))nr(er,tr);else for(var ir in tr)ca(er+"["+ir+"]",tr[ir],rr,nr)}function b_(er,rr){var nr,ir,ar=or.ajaxSettings.flatOptions||{};for(nr in rr)rr[nr]!==tr&&((ar[nr]?er:ir||(ir={}))[nr]=rr[nr]);ir&&or.extend(!0,er,ir)}function b$(er,rr,nr,ir,or,ar){(ar=ar||{})[or=or||rr.dataTypes[0]]=!0;for(var sr,lr=er[or],cr=0,ur=lr?lr.length:0,dr=er===Ai;cr<ur&&(dr||!sr);cr++)"string"==typeof(sr=lr[cr](rr,nr,ir))&&(!dr||ar[sr]?sr=tr:(rr.dataTypes.unshift(sr),sr=b$(er,rr,nr,ir,sr,ar)));return(dr||!sr)&&!ar["*"]&&(sr=b$(er,rr,nr,ir,"*",ar)),sr}function bZ(er){return function(tr,rr){if("string"!=typeof tr&&(rr=tr,tr="*"),or.isFunction(rr))for(var nr,ir,ar=tr.toLowerCase().split(ui),sr=0,lr=ar.length;sr<lr;sr++)nr=ar[sr],(ir=/^\+/.test(nr))&&(nr=nr.substr(1)||"*"),(er[nr]=er[nr]||[])[ir?"unshift":"push"](rr)}}function bC(er,tr,rr){var nr="width"===tr?er.offsetWidth:er.offsetHeight,ir="width"===tr?Wn:Xn,ar=0,sr=ir.length;if(nr>0){if("border"!==rr)for(;ar<sr;ar++)rr||(nr-=parseFloat(or.css(er,"padding"+ir[ar]))||0),"margin"===rr?nr+=parseFloat(or.css(er,rr+ir[ar]))||0:nr-=parseFloat(or.css(er,"border"+ir[ar]+"Width"))||0;return nr+"px"}if(((nr=Zr(er,tr,tr))<0||null==nr)&&(nr=er.style[tr]||0),nr=parseFloat(nr)||0,rr)for(;ar<sr;ar++)nr+=parseFloat(or.css(er,"padding"+ir[ar]))||0,"padding"!==rr&&(nr+=parseFloat(or.css(er,"border"+ir[ar]+"Width"))||0),"margin"===rr&&(nr+=parseFloat(or.css(er,rr+ir[ar]))||0);return nr+"px"}function bp(er,tr){tr.src?or.ajax({url:tr.src,async:!1,dataType:"script"}):or.globalEval((tr.text||tr.textContent||tr.innerHTML||"").replace(Yr,"/*$0*/")),tr.parentNode&&tr.parentNode.removeChild(tr)}function bo(er){var tr=rr.createElement("div");return $r.appendChild(tr),tr.innerHTML=er.outerHTML,tr.firstChild}function bn(er){var tr=(er.nodeName||"").toLowerCase();"input"===tr?bm(er):"script"!==tr&&void 0!==er.getElementsByTagName&&or.grep(er.getElementsByTagName("input"),bm)}function bm(er){"checkbox"!==er.type&&"radio"!==er.type||(er.defaultChecked=er.checked)}function bl(er){return void 0!==er.getElementsByTagName?er.getElementsByTagName("*"):void 0!==er.querySelectorAll?er.querySelectorAll("*"):[]}function bk(er,tr){var rr;1===tr.nodeType&&(tr.clearAttributes&&tr.clearAttributes(),tr.mergeAttributes&&tr.mergeAttributes(er),"object"===(rr=tr.nodeName.toLowerCase())?tr.outerHTML=er.outerHTML:"input"!==rr||"checkbox"!==er.type&&"radio"!==er.type?"option"===rr?tr.selected=er.defaultSelected:"input"!==rr&&"textarea"!==rr||(tr.defaultValue=er.defaultValue):(er.checked&&(tr.defaultChecked=tr.checked=er.checked),tr.value!==er.value&&(tr.value=er.value)),tr.removeAttribute(or.expando))}function bj(er,tr){if(1===tr.nodeType&&or.hasData(er)){var rr,nr,ir,ar=or._data(er),sr=or._data(tr,ar),lr=ar.events;if(lr)for(rr in delete sr.handle,sr.events={},lr)for(nr=0,ir=lr[rr].length;nr<ir;nr++)or.event.add(tr,rr+(lr[rr][nr].namespace?".":"")+lr[rr][nr].namespace,lr[rr][nr],lr[rr][nr].data);sr.data&&(sr.data=or.extend({},sr.data))}}function bi(er,tr){return or.nodeName(er,"table")?er.getElementsByTagName("tbody")[0]||er.appendChild(er.ownerDocument.createElement("tbody")):er}function U(er){var tr=Or.split("|"),rr=er.createDocumentFragment();if(rr.createElement)for(;tr.length;)rr.createElement(tr.pop());return rr}function T(er,tr,rr){if(tr=tr||0,or.isFunction(tr))return or.grep(er,(function(er,nr){return!!tr.call(er,nr,er)===rr}));if(tr.nodeType)return or.grep(er,(function(er,nr){return er===tr===rr}));if("string"==typeof tr){var nr=or.grep(er,(function(er){return 1===er.nodeType}));if(Ur.test(tr))return or.filter(tr,nr,!rr);tr=or.filter(tr,nr)}return or.grep(er,(function(er,nr){return or.inArray(er,tr)>=0===rr}))}function S(er){return!er||!er.parentNode||11===er.parentNode.nodeType}function K(){return!0}function J(){return!1}function n(er,tr,rr){var nr=tr+"defer",ir=tr+"queue",ar=tr+"mark",sr=or._data(er,nr);sr&&("queue"===rr||!or._data(er,ir))&&("mark"===rr||!or._data(er,ar))&&setTimeout((function(){!or._data(er,ir)&&!or._data(er,ar)&&(or.removeData(er,nr,!0),sr.fire())}),0)}function m(er){for(var tr in er)if(("data"!==tr||!or.isEmptyObject(er[tr]))&&"toJSON"!==tr)return!1;return!0}function l(er,rr,nr){if(nr===tr&&1===er.nodeType){var ir="data-"+rr.replace(cr,"-$1").toLowerCase();if("string"==typeof(nr=er.getAttribute(ir))){try{nr="true"===nr||"false"!==nr&&("null"===nr?null:or.isNumeric(nr)?parseFloat(nr):lr.test(nr)?or.parseJSON(nr):nr)}catch(er){}or.data(er,rr,nr)}else nr=tr}return nr}var rr=er.document,nr=er.navigator,ir=er.location,or=function(){function J(){if(!lr.isReady){try{rr.documentElement.doScroll("left")}catch(er){return void setTimeout(J,1)}lr.ready()}}var ir,or,ar,sr,lr=function e(er,tr){return new e.fn.init(er,tr,ir)},cr=er.jQuery,ur=er.$,dr=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,hr=/\S/,pr=/^\s+/,Ar=/\s+$/,fr=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,gr=/^[\],:{}\s]*$/,mr=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,_r=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,vr=/(?:^|:|,)(?:\s*\[)+/g,yr=/(webkit)[ \/]([\w.]+)/,br=/(opera)(?:.*version)?[ \/]([\w.]+)/,wr=/(msie) ([\w.]+)/,Sr=/(mozilla)(?:.*? rv:([\w.]+))?/,xr=/-([a-z]|[0-9])/gi,kr=/^-ms-/,Cr=function x(er,tr){return(tr+"").toUpperCase()},Br=nr.userAgent,Er=Object.prototype.toString,Nr=Object.prototype.hasOwnProperty,Lr=Array.prototype.push,Tr=Array.prototype.slice,Pr=String.prototype.trim,Fr=Array.prototype.indexOf,Ur={};return lr.fn=lr.prototype={constructor:lr,init:function init(er,nr,ir){var or,ar,sr,cr;if(!er)return this;if(er.nodeType)return this.context=this[0]=er,this.length=1,this;if("body"===er&&!nr&&rr.body)return this.context=rr,this[0]=rr.body,this.selector=er,this.length=1,this;if("string"==typeof er){if((or="<"!==er.charAt(0)||">"!==er.charAt(er.length-1)||er.length<3?dr.exec(er):[null,er,null])&&(or[1]||!nr)){if(or[1])return cr=(nr=nr instanceof lr?nr[0]:nr)?nr.ownerDocument||nr:rr,(sr=fr.exec(er))?lr.isPlainObject(nr)?(er=[rr.createElement(sr[1])],lr.fn.attr.call(er,nr,!0)):er=[cr.createElement(sr[1])]:er=((sr=lr.buildFragment([or[1]],[cr])).cacheable?lr.clone(sr.fragment):sr.fragment).childNodes,lr.merge(this,er);if((ar=rr.getElementById(or[2]))&&ar.parentNode){if(ar.id!==or[2])return ir.find(er);this.length=1,this[0]=ar}return this.context=rr,this.selector=er,this}return!nr||nr.jquery?(nr||ir).find(er):this.constructor(nr).find(er)}return lr.isFunction(er)?ir.ready(er):(er.selector!==tr&&(this.selector=er.selector,this.context=er.context),lr.makeArray(er,this))},selector:"",jquery:"1.7.1",length:0,size:function size(){return this.length},toArray:function toArray(){return Tr.call(this,0)},get:function get(er){return null==er?this.toArray():er<0?this[this.length+er]:this[er]},pushStack:function pushStack(er,tr,rr){var nr=this.constructor();return lr.isArray(er)?Lr.apply(nr,er):lr.merge(nr,er),nr.prevObject=this,nr.context=this.context,"find"===tr?nr.selector=this.selector+(this.selector?" ":"")+rr:tr&&(nr.selector=this.selector+"."+tr+"("+rr+")"),nr},each:function each(er,tr){return lr.each(this,er,tr)},ready:function ready(er){return lr.bindReady(),ar.add(er),this},eq:function eq(er){return-1===(er=+er)?this.slice(er):this.slice(er,er+1)},first:function first(){return this.eq(0)},last:function last(){return this.eq(-1)},slice:function slice(){return this.pushStack(Tr.apply(this,arguments),"slice",Tr.call(arguments).join(","))},map:function map(er){return this.pushStack(lr.map(this,(function(tr,rr){return er.call(tr,rr,tr)})))},end:function end(){return this.prevObject||this.constructor(null)},push:Lr,sort:[].sort,splice:[].splice},lr.fn.init.prototype=lr.fn,lr.extend=lr.fn.extend=function(){var er,rr,nr,ir,or,ar,sr=arguments[0]||{},cr=1,ur=arguments.length,dr=!1;for("boolean"==typeof sr&&(dr=sr,sr=arguments[1]||{},cr=2),"object"!=_typeof(sr)&&!lr.isFunction(sr)&&(sr={}),ur===cr&&(sr=this,--cr);cr<ur;cr++)if(null!=(er=arguments[cr]))for(rr in er)nr=sr[rr],sr!==(ir=er[rr])&&(dr&&ir&&(lr.isPlainObject(ir)||(or=lr.isArray(ir)))?(or?(or=!1,ar=nr&&lr.isArray(nr)?nr:[]):ar=nr&&lr.isPlainObject(nr)?nr:{},sr[rr]=lr.extend(dr,ar,ir)):ir!==tr&&(sr[rr]=ir));return sr},lr.extend({noConflict:function noConflict(tr){return er.$===lr&&(er.$=ur),tr&&er.jQuery===lr&&(er.jQuery=cr),lr},isReady:!1,readyWait:1,holdReady:function holdReady(er){er?lr.readyWait++:lr.ready(!0)},ready:function ready(er){if(!0===er&&!--lr.readyWait||!0!==er&&!lr.isReady){if(!rr.body)return setTimeout(lr.ready,1);if(lr.isReady=!0,!0!==er&&--lr.readyWait>0)return;ar.fireWith(rr,[lr]),lr.fn.trigger&&lr(rr).trigger("ready").off("ready")}},bindReady:function bindReady(){if(!ar){if(ar=lr.Callbacks("once memory"),"complete"===rr.readyState)return setTimeout(lr.ready,1);if(rr.addEventListener)rr.addEventListener("DOMContentLoaded",sr,!1),er.addEventListener("load",lr.ready,!1);else if(rr.attachEvent){rr.attachEvent("onreadystatechange",sr),er.attachEvent("onload",lr.ready);var tr=!1;try{tr=null==er.frameElement}catch(er){}rr.documentElement.doScroll&&tr&&J()}}},isFunction:function isFunction(er){return"function"===lr.type(er)},isArray:Array.isArray||function(er){return"array"===lr.type(er)},isWindow:function isWindow(er){return er&&"object"==_typeof(er)&&"setInterval"in er},isNumeric:function isNumeric(er){return!isNaN(parseFloat(er))&&isFinite(er)},type:function type(er){return null==er?String(er):Ur[Er.call(er)]||"object"},isPlainObject:function isPlainObject(er){if(!er||"object"!==lr.type(er)||er.nodeType||lr.isWindow(er))return!1;try{if(er.constructor&&!Nr.call(er,"constructor")&&!Nr.call(er.constructor.prototype,"isPrototypeOf"))return!1}catch(er){return!1}var rr;for(rr in er);return rr===tr||Nr.call(er,rr)},isEmptyObject:function isEmptyObject(er){for(var tr in er)return!1;return!0},error:function error(er){throw new Error(er)},parseJSON:function parseJSON(tr){return"string"==typeof tr&&tr?(tr=lr.trim(tr),er.JSON&&er.JSON.parse?er.JSON.parse(tr):gr.test(tr.replace(mr,"@").replace(_r,"]").replace(vr,""))?new Function("return "+tr)():void lr.error("Invalid JSON: "+tr)):null},parseXML:function parseXML(rr){var nr;try{er.DOMParser?nr=(new DOMParser).parseFromString(rr,"text/xml"):((nr=new ActiveXObject("Microsoft.XMLDOM")).async="false",nr.loadXML(rr))}catch(er){nr=tr}return(!nr||!nr.documentElement||nr.getElementsByTagName("parsererror").length)&&lr.error("Invalid XML: "+rr),nr},noop:function noop(){},globalEval:function globalEval(tr){tr&&hr.test(tr)&&(er.execScript||function(tr){er.eval.call(er,tr)})(tr)},camelCase:function camelCase(er){return er.replace(kr,"ms-").replace(xr,Cr)},nodeName:function nodeName(er,tr){return er.nodeName&&er.nodeName.toUpperCase()===tr.toUpperCase()},each:function each(er,rr,nr){var ir,or=0,ar=er.length,sr=ar===tr||lr.isFunction(er);if(nr)if(sr){for(ir in er)if(!1===rr.apply(er[ir],nr))break}else for(;or<ar&&!1!==rr.apply(er[or++],nr););else if(sr){for(ir in er)if(!1===rr.call(er[ir],ir,er[ir]))break}else for(;or<ar&&!1!==rr.call(er[or],or,er[or++]););return er},trim:Pr?function(er){return null==er?"":Pr.call(er)}:function(er){return null==er?"":(er+"").replace(pr,"").replace(Ar,"")},makeArray:function makeArray(er,tr){var rr=tr||[];if(null!=er){var nr=lr.type(er);null==er.length||"string"===nr||"function"===nr||"regexp"===nr||lr.isWindow(er)?Lr.call(rr,er):lr.merge(rr,er)}return rr},inArray:function inArray(er,tr,rr){var nr;if(tr){if(Fr)return Fr.call(tr,er,rr);for(nr=tr.length,rr=rr?rr<0?Math.max(0,nr+rr):rr:0;rr<nr;rr++)if(rr in tr&&tr[rr]===er)return rr}return-1},merge:function merge(er,rr){var nr=er.length,ir=0;if("number"==typeof rr.length)for(var or=rr.length;ir<or;ir++)er[nr++]=rr[ir];else for(;rr[ir]!==tr;)er[nr++]=rr[ir++];return er.length=nr,er},grep:function grep(er,tr,rr){var nr=[];rr=!!rr;for(var ir=0,or=er.length;ir<or;ir++)rr!==!!tr(er[ir],ir)&&nr.push(er[ir]);return nr},map:function map(er,rr,nr){var ir,or,ar=[],sr=0,cr=er.length;if(er instanceof lr||cr!==tr&&"number"==typeof cr&&(cr>0&&er[0]&&er[cr-1]||0===cr||lr.isArray(er)))for(;sr<cr;sr++)null!=(ir=rr(er[sr],sr,nr))&&(ar[ar.length]=ir);else for(or in er)null!=(ir=rr(er[or],or,nr))&&(ar[ar.length]=ir);return ar.concat.apply([],ar)},guid:1,proxy:function proxy(er,rr){if("string"==typeof rr){var nr=er[rr];rr=er,er=nr}if(!lr.isFunction(er))return tr;var ir=Tr.call(arguments,2),or=function g(){return er.apply(rr,ir.concat(Tr.call(arguments)))};return or.guid=er.guid=er.guid||or.guid||lr.guid++,or},access:function access(er,rr,nr,ir,or,ar){var sr=er.length;if("object"==_typeof(rr)){for(var cr in rr)lr.access(er,cr,rr[cr],ir,or,nr);return er}if(nr!==tr){ir=!ar&&ir&&lr.isFunction(nr);for(var ur=0;ur<sr;ur++)or(er[ur],rr,ir?nr.call(er[ur],ur,or(er[ur],rr)):nr,ar);return er}return sr?or(er[0],rr):tr},now:function now(){return(new Date).getTime()},uaMatch:function uaMatch(er){er=er.toLowerCase();var tr=yr.exec(er)||br.exec(er)||wr.exec(er)||er.indexOf("compatible")<0&&Sr.exec(er)||[];return{browser:tr[1]||"",version:tr[2]||"0"}},sub:function sub(){function a(er,tr){return new a.fn.init(er,tr)}lr.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(tr,rr){return rr&&rr instanceof lr&&!(rr instanceof a)&&(rr=a(rr)),lr.fn.init.call(this,tr,rr,er)},a.fn.init.prototype=a.fn;var er=a(rr);return a},browser:{}}),lr.each("Boolean Number String Function Array Date RegExp Object".split(" "),(function(er,tr){Ur["[object "+tr+"]"]=tr.toLowerCase()})),(or=lr.uaMatch(Br)).browser&&(lr.browser[or.browser]=!0,lr.browser.version=or.version),lr.browser.webkit&&(lr.browser.safari=!0),hr.test(" ")&&(pr=/^[\s\xA0]+/,Ar=/[\s\xA0]+$/),ir=lr(rr),rr.addEventListener?sr=function B(){rr.removeEventListener("DOMContentLoaded",sr,!1),lr.ready()}:rr.attachEvent&&(sr=function _B(){"complete"===rr.readyState&&(rr.detachEvent("onreadystatechange",sr),lr.ready())}),lr}(),ar={};or.Callbacks=function(er){er=er?ar[er]||function h(er){var tr,rr,nr=ar[er]={};for(tr=0,rr=(er=er.split(/\s+/)).length;tr<rr;tr++)nr[er[tr]]=!0;return nr}(er):{};var rr,nr,ir,sr,lr,cr=[],ur=[],dr=function m(tr){var rr,nr,ir,ar;for(rr=0,nr=tr.length;rr<nr;rr++)ir=tr[rr],"array"===(ar=or.type(ir))?m(ir):"function"===ar&&(!er.unique||!pr.has(ir))&&cr.push(ir)},hr=function n(tr,or){for(or=or||[],rr=!er.memory||[tr,or],nr=!0,lr=ir||0,ir=0,sr=cr.length;cr&&lr<sr;lr++)if(!1===cr[lr].apply(tr,or)&&er.stopOnFalse){rr=!0;break}nr=!1,cr&&(er.once?!0===rr?pr.disable():cr=[]:ur&&ur.length&&(rr=ur.shift(),pr.fireWith(rr[0],rr[1])))},pr={add:function add(){if(cr){var er=cr.length;dr(arguments),nr?sr=cr.length:rr&&!0!==rr&&(ir=er,hr(rr[0],rr[1]))}return this},remove:function remove(){if(cr)for(var tr=arguments,rr=0,ir=tr.length;rr<ir;rr++)for(var or=0;or<cr.length&&(tr[rr]!==cr[or]||(nr&&or<=sr&&(sr--,or<=lr&&lr--),cr.splice(or--,1),!er.unique));or++);return this},has:function has(er){if(cr)for(var tr=0,rr=cr.length;tr<rr;tr++)if(er===cr[tr])return!0;return!1},empty:function empty(){return cr=[],this},disable:function disable(){return cr=ur=rr=tr,this},disabled:function disabled(){return!cr},lock:function lock(){return ur=tr,(!rr||!0===rr)&&pr.disable(),this},locked:function locked(){return!ur},fireWith:function fireWith(tr,ir){return ur&&(nr?er.once||ur.push([tr,ir]):(!er.once||!rr)&&hr(tr,ir)),this},fire:function fire(){return pr.fireWith(this,arguments),this},fired:function fired(){return!!rr}};return pr};var sr=[].slice;or.extend({Deferred:function Deferred(er){var tr,rr=or.Callbacks("once memory"),nr=or.Callbacks("once memory"),ir=or.Callbacks("memory"),ar="pending",sr={resolve:rr,reject:nr,notify:ir},lr={done:rr.add,fail:nr.add,progress:ir.add,state:function state(){return ar},isResolved:rr.fired,isRejected:nr.fired,then:function then(er,tr,rr){return cr.done(er).fail(tr).progress(rr),this},always:function always(){return cr.done.apply(cr,arguments).fail.apply(cr,arguments),this},pipe:function pipe(er,tr,rr){return or.Deferred((function(nr){or.each({done:[er,"resolve"],fail:[tr,"reject"],progress:[rr,"notify"]},(function(er,tr){var rr,ir=tr[0],ar=tr[1];or.isFunction(ir)?cr[er]((function(){(rr=ir.apply(this,arguments))&&or.isFunction(rr.promise)?rr.promise().then(nr.resolve,nr.reject,nr.notify):nr[ar+"With"](this===cr?nr:this,[rr])})):cr[er](nr[ar])}))})).promise()},promise:function promise(er){if(null==er)er=lr;else for(var tr in lr)er[tr]=lr[tr];return er}},cr=lr.promise({});for(tr in sr)cr[tr]=sr[tr].fire,cr[tr+"With"]=sr[tr].fireWith;return cr.done((function(){ar="resolved"}),nr.disable,ir.lock).fail((function(){ar="rejected"}),rr.disable,ir.lock),er&&er.call(cr,cr),cr},when:function when(er){function m(er){return function(tr){ir[er]=arguments.length>1?sr.call(arguments,0):tr,lr.notifyWith(cr,ir)}}function l(er){return function(rr){tr[er]=arguments.length>1?sr.call(arguments,0):rr,--ar||lr.resolveWith(lr,tr)}}var tr=sr.call(arguments,0),rr=0,nr=tr.length,ir=Array(nr),ar=nr,lr=nr<=1&&er&&or.isFunction(er.promise)?er:or.Deferred(),cr=lr.promise();if(nr>1){for(;rr<nr;rr++)tr[rr]&&tr[rr].promise&&or.isFunction(tr[rr].promise)?tr[rr].promise().then(l(rr),lr.reject,m(rr)):--ar;ar||lr.resolveWith(lr,tr)}else lr!==er&&lr.resolveWith(lr,nr?[er]:[]);return cr}}),or.support=function(){var tr,nr,ir,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr=rr.createElement("div");rr.documentElement;if(fr.setAttribute("className","t"),fr.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",nr=fr.getElementsByTagName("*"),ir=fr.getElementsByTagName("a")[0],!nr||!nr.length||!ir)return{};sr=(ar=rr.createElement("select")).appendChild(rr.createElement("option")),lr=fr.getElementsByTagName("input")[0],tr={leadingWhitespace:3===fr.firstChild.nodeType,tbody:!fr.getElementsByTagName("tbody").length,htmlSerialize:!!fr.getElementsByTagName("link").length,style:/top/.test(ir.getAttribute("style")),hrefNormalized:"/a"===ir.getAttribute("href"),opacity:/^0.55/.test(ir.style.opacity),cssFloat:!!ir.style.cssFloat,checkOn:"on"===lr.value,optSelected:sr.selected,getSetAttribute:"t"!==fr.className,enctype:!!rr.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==rr.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},lr.checked=!0,tr.noCloneChecked=lr.cloneNode(!0).checked,ar.disabled=!0,tr.optDisabled=!sr.disabled;try{delete fr.test}catch(er){tr.deleteExpando=!1}if(!fr.addEventListener&&fr.attachEvent&&fr.fireEvent&&(fr.attachEvent("onclick",(function(){tr.noCloneEvent=!1})),fr.cloneNode(!0).fireEvent("onclick")),(lr=rr.createElement("input")).value="t",lr.setAttribute("type","radio"),tr.radioValue="t"===lr.value,lr.setAttribute("checked","checked"),fr.appendChild(lr),(ur=rr.createDocumentFragment()).appendChild(fr.lastChild),tr.checkClone=ur.cloneNode(!0).cloneNode(!0).lastChild.checked,tr.appendChecked=lr.checked,ur.removeChild(lr),ur.appendChild(fr),fr.innerHTML="",er.getComputedStyle&&((cr=rr.createElement("div")).style.width="0",cr.style.marginRight="0",fr.style.width="2px",fr.appendChild(cr),tr.reliableMarginRight=0===(parseInt((er.getComputedStyle(cr,null)||{marginRight:0}).marginRight,10)||0)),fr.attachEvent)for(pr in{submit:1,change:1,focusin:1})(Ar=(hr="on"+pr)in fr)||(fr.setAttribute(hr,"return;"),Ar="function"==typeof fr[hr]),tr[pr+"Bubbles"]=Ar;return ur.removeChild(fr),ur=ar=sr=cr=fr=lr=null,or((function(){var er,nr,ir,ar,sr,lr,cr,ur,hr=rr.getElementsByTagName("body")[0];!hr||(1,cr="visibility:hidden;border:0;","<div "+(ur="style='"+(lr="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;")+"border:5px solid #000;padding:0;'")+"><div></div></div><table "+ur+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",(er=rr.createElement("div")).style.cssText=cr+"width:0;height:0;position:static;top:0;margin-top:1px",hr.insertBefore(er,hr.firstChild),fr=rr.createElement("div"),er.appendChild(fr),fr.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",dr=fr.getElementsByTagName("td"),Ar=0===dr[0].offsetHeight,dr[0].style.display="",dr[1].style.display="none",tr.reliableHiddenOffsets=Ar&&0===dr[0].offsetHeight,fr.innerHTML="",fr.style.width=fr.style.paddingLeft="1px",or.boxModel=tr.boxModel=2===fr.offsetWidth,void 0!==fr.style.zoom&&(fr.style.display="inline",fr.style.zoom=1,tr.inlineBlockNeedsLayout=2===fr.offsetWidth,fr.style.display="",fr.innerHTML="<div style='width:4px;'></div>",tr.shrinkWrapBlocks=2!==fr.offsetWidth),fr.style.cssText=lr+cr,fr.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",ir=(nr=fr.firstChild).firstChild,ar=nr.nextSibling.firstChild.firstChild,sr={doesNotAddBorder:5!==ir.offsetTop,doesAddBorderForTableAndCells:5===ar.offsetTop},ir.style.position="fixed",ir.style.top="20px",sr.fixedPosition=20===ir.offsetTop||15===ir.offsetTop,ir.style.position=ir.style.top="",nr.style.overflow="hidden",nr.style.position="relative",sr.subtractsBorderForOverflowNotVisible=-5===ir.offsetTop,sr.doesNotIncludeMarginInBodyOffset=1!==hr.offsetTop,hr.removeChild(er),fr=er=null,or.extend(tr,sr))})),tr}();var lr=/^(?:\{.*\}|\[.*\])$/,cr=/([A-Z])/g;or.extend({cache:{},uuid:0,expando:"jQuery"+(or.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function hasData(er){return!!(er=er.nodeType?or.cache[er[or.expando]]:er[or.expando])&&!m(er)},data:function data(er,rr,nr,ir){if(or.acceptData(er)){var ar,sr,lr,cr=or.expando,ur="string"==typeof rr,dr=er.nodeType,hr=dr?or.cache:er,pr=dr?er[cr]:er[cr]&&cr,Ar="events"===rr;if((!pr||!hr[pr]||!Ar&&!ir&&!hr[pr].data)&&ur&&nr===tr)return;return pr||(dr?er[cr]=pr=++or.uuid:pr=cr),hr[pr]||(hr[pr]={},dr||(hr[pr].toJSON=or.noop)),"object"!=_typeof(rr)&&"function"!=typeof rr||(ir?hr[pr]=or.extend(hr[pr],rr):hr[pr].data=or.extend(hr[pr].data,rr)),ar=sr=hr[pr],ir||(sr.data||(sr.data={}),sr=sr.data),nr!==tr&&(sr[or.camelCase(rr)]=nr),Ar&&!sr[rr]?ar.events:(ur?null==(lr=sr[rr])&&(lr=sr[or.camelCase(rr)]):lr=sr,lr)}},removeData:function removeData(er,tr,rr){if(or.acceptData(er)){var nr,ir,ar,sr=or.expando,lr=er.nodeType,cr=lr?or.cache:er,ur=lr?er[sr]:sr;if(!cr[ur])return;if(tr&&(nr=rr?cr[ur]:cr[ur].data)){or.isArray(tr)||(tr in nr?tr=[tr]:tr=(tr=or.camelCase(tr))in nr?[tr]:tr.split(" "));for(ir=0,ar=tr.length;ir<ar;ir++)delete nr[tr[ir]];if(!(rr?m:or.isEmptyObject)(nr))return}if(!rr&&(delete cr[ur].data,!m(cr[ur])))return;or.support.deleteExpando||!cr.setInterval?delete cr[ur]:cr[ur]=null,lr&&(or.support.deleteExpando?delete er[sr]:er.removeAttribute?er.removeAttribute(sr):er[sr]=null)}},_data:function _data(er,tr,rr){return or.data(er,tr,rr,!0)},acceptData:function acceptData(er){if(er.nodeName){var tr=or.noData[er.nodeName.toLowerCase()];if(tr)return!0!==tr&&er.getAttribute("classid")===tr}return!0}}),or.fn.extend({data:function data(er,rr){var nr,ir,ar,sr=null;if(void 0===er){if(this.length&&(sr=or.data(this[0]),1===this[0].nodeType&&!or._data(this[0],"parsedAttrs"))){for(var lr=0,cr=(ir=this[0].attributes).length;lr<cr;lr++)0===(ar=ir[lr].name).indexOf("data-")&&(ar=or.camelCase(ar.substring(5)),l(this[0],ar,sr[ar]));or._data(this[0],"parsedAttrs",!0)}return sr}return"object"==_typeof(er)?this.each((function(){or.data(this,er)})):((nr=er.split("."))[1]=nr[1]?"."+nr[1]:"",rr===tr?((sr=this.triggerHandler("getData"+nr[1]+"!",[nr[0]]))===tr&&this.length&&(sr=or.data(this[0],er),sr=l(this[0],er,sr)),sr===tr&&nr[1]?this.data(nr[0]):sr):this.each((function(){var tr=or(this),ir=[nr[0],rr];tr.triggerHandler("setData"+nr[1]+"!",ir),or.data(this,er,rr),tr.triggerHandler("changeData"+nr[1]+"!",ir)})))},removeData:function removeData(er){return this.each((function(){or.removeData(this,er)}))}}),or.extend({_mark:function _mark(er,tr){er&&(tr=(tr||"fx")+"mark",or._data(er,tr,(or._data(er,tr)||0)+1))},_unmark:function _unmark(er,tr,rr){if(!0!==er&&(rr=tr,tr=er,er=!1),tr){var nr=(rr=rr||"fx")+"mark",ir=er?0:(or._data(tr,nr)||1)-1;ir?or._data(tr,nr,ir):(or.removeData(tr,nr,!0),n(tr,rr,"mark"))}},queue:function queue(er,tr,rr){var nr;if(er)return tr=(tr||"fx")+"queue",nr=or._data(er,tr),rr&&(!nr||or.isArray(rr)?nr=or._data(er,tr,or.makeArray(rr)):nr.push(rr)),nr||[]},dequeue:function dequeue(er,tr){tr=tr||"fx";var rr=or.queue(er,tr),nr=rr.shift(),ir={};"inprogress"===nr&&(nr=rr.shift()),nr&&("fx"===tr&&rr.unshift("inprogress"),or._data(er,tr+".run",ir),nr.call(er,(function(){or.dequeue(er,tr)}),ir)),rr.length||(or.removeData(er,tr+"queue "+tr+".run",!0),n(er,tr,"queue"))}}),or.fn.extend({queue:function queue(er,rr){return"string"!=typeof er&&(rr=er,er="fx"),rr===tr?or.queue(this[0],er):this.each((function(){var tr=or.queue(this,er,rr);"fx"===er&&"inprogress"!==tr[0]&&or.dequeue(this,er)}))},dequeue:function dequeue(er){return this.each((function(){or.dequeue(this,er)}))},delay:function delay(er,tr){return er=or.fx&&or.fx.speeds[er]||er,tr=tr||"fx",this.queue(tr,(function(tr,rr){var nr=setTimeout(tr,er);rr.stop=function(){clearTimeout(nr)}}))},clearQueue:function clearQueue(er){return this.queue(er||"fx",[])},promise:function promise(er,rr){function m(){--lr||ir.resolveWith(ar,[ar])}"string"!=typeof er&&(er=tr),er=er||"fx";for(var nr,ir=or.Deferred(),ar=this,sr=ar.length,lr=1,cr=er+"defer",ur=er+"queue",dr=er+"mark";sr--;)(nr=or.data(ar[sr],cr,tr,!0)||(or.data(ar[sr],ur,tr,!0)||or.data(ar[sr],dr,tr,!0))&&or.data(ar[sr],cr,or.Callbacks("once memory"),!0))&&(lr++,nr.add(m));return m(),ir.promise()}});var ur,dr,hr,pr=/[\n\t\r]/g,Ar=/\s+/,fr=/\r/g,gr=/^(?:button|input)$/i,mr=/^(?:button|input|object|select|textarea)$/i,_r=/^a(?:rea)?$/i,vr=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,yr=or.support.getSetAttribute;or.fn.extend({attr:function attr(er,tr){return or.access(this,er,tr,!0,or.attr)},removeAttr:function removeAttr(er){return this.each((function(){or.removeAttr(this,er)}))},prop:function prop(er,tr){return or.access(this,er,tr,!0,or.prop)},removeProp:function removeProp(er){return er=or.propFix[er]||er,this.each((function(){try{this[er]=tr,delete this[er]}catch(er){}}))},addClass:function addClass(er){var tr,rr,nr,ir,ar,sr,lr;if(or.isFunction(er))return this.each((function(tr){or(this).addClass(er.call(this,tr,this.className))}));if(er&&"string"==typeof er)for(tr=er.split(Ar),rr=0,nr=this.length;rr<nr;rr++)if(1===(ir=this[rr]).nodeType)if(ir.className||1!==tr.length){for(ar=" "+ir.className+" ",sr=0,lr=tr.length;sr<lr;sr++)~ar.indexOf(" "+tr[sr]+" ")||(ar+=tr[sr]+" ");ir.className=or.trim(ar)}else ir.className=er;return this},removeClass:function removeClass(er){var rr,nr,ir,ar,sr,lr,cr;if(or.isFunction(er))return this.each((function(tr){or(this).removeClass(er.call(this,tr,this.className))}));if(er&&"string"==typeof er||er===tr)for(rr=(er||"").split(Ar),nr=0,ir=this.length;nr<ir;nr++)if(1===(ar=this[nr]).nodeType&&ar.className)if(er){for(sr=(" "+ar.className+" ").replace(pr," "),lr=0,cr=rr.length;lr<cr;lr++)sr=sr.replace(" "+rr[lr]+" "," ");ar.className=or.trim(sr)}else ar.className="";return this},toggleClass:function toggleClass(er,tr){var rr=_typeof(er),nr="boolean"==typeof tr;return or.isFunction(er)?this.each((function(rr){or(this).toggleClass(er.call(this,rr,this.className,tr),tr)})):this.each((function(){if("string"===rr)for(var ir,ar=0,sr=or(this),lr=tr,cr=er.split(Ar);ir=cr[ar++];)lr=nr?lr:!sr.hasClass(ir),sr[lr?"addClass":"removeClass"](ir);else"undefined"!==rr&&"boolean"!==rr||(this.className&&or._data(this,"__className__",this.className),this.className=this.className||!1===er?"":or._data(this,"__className__")||"")}))},hasClass:function hasClass(er){for(var tr=" "+er+" ",rr=0,nr=this.length;rr<nr;rr++)if(1===this[rr].nodeType&&(" "+this[rr].className+" ").replace(pr," ").indexOf(tr)>-1)return!0;return!1},val:function val(er){var rr,nr,ir,ar=this[0];return arguments.length?(ir=or.isFunction(er),this.each((function(nr){var ar,sr=or(this);1===this.nodeType&&(null==(ar=ir?er.call(this,nr,sr.val()):er)?ar="":"number"==typeof ar?ar+="":or.isArray(ar)&&(ar=or.map(ar,(function(er){return null==er?"":er+""}))),(rr=or.valHooks[this.nodeName.toLowerCase()]||or.valHooks[this.type])&&"set"in rr&&rr.set(this,ar,"value")!==tr||(this.value=ar))}))):ar?(rr=or.valHooks[ar.nodeName.toLowerCase()]||or.valHooks[ar.type])&&"get"in rr&&(nr=rr.get(ar,"value"))!==tr?nr:"string"==typeof(nr=ar.value)?nr.replace(fr,""):null==nr?"":nr:void 0}}),or.extend({valHooks:{option:{get:function get(er){var tr=er.attributes.value;return!tr||tr.specified?er.value:er.text}},select:{get:function get(er){var tr,rr,nr,ir,ar=er.selectedIndex,sr=[],lr=er.options,cr="select-one"===er.type;if(ar<0)return null;for(rr=cr?ar:0,nr=cr?ar+1:lr.length;rr<nr;rr++)if((ir=lr[rr]).selected&&(or.support.optDisabled?!ir.disabled:null===ir.getAttribute("disabled"))&&(!ir.parentNode.disabled||!or.nodeName(ir.parentNode,"optgroup"))){if(tr=or(ir).val(),cr)return tr;sr.push(tr)}return cr&&!sr.length&&lr.length?or(lr[ar]).val():sr},set:function set(er,tr){var rr=or.makeArray(tr);return or(er).find("option").each((function(){this.selected=or.inArray(or(this).val(),rr)>=0})),rr.length||(er.selectedIndex=-1),rr}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function attr(er,rr,nr,ir){var ar,sr,lr,cr=er.nodeType;if(er&&3!==cr&&8!==cr&&2!==cr)return ir&&rr in or.attrFn?or(er)[rr](nr):void 0===er.getAttribute?or.prop(er,rr,nr):((lr=1!==cr||!or.isXMLDoc(er))&&(rr=rr.toLowerCase(),sr=or.attrHooks[rr]||(vr.test(rr)?dr:ur)),nr!==tr?null===nr?void or.removeAttr(er,rr):sr&&"set"in sr&&lr&&(ar=sr.set(er,nr,rr))!==tr?ar:(er.setAttribute(rr,""+nr),nr):sr&&"get"in sr&&lr&&null!==(ar=sr.get(er,rr))?ar:null===(ar=er.getAttribute(rr))?tr:ar)},removeAttr:function removeAttr(er,tr){var rr,nr,ir,ar,sr=0;if(tr&&1===er.nodeType)for(ar=(nr=tr.toLowerCase().split(Ar)).length;sr<ar;sr++)(ir=nr[sr])&&(rr=or.propFix[ir]||ir,or.attr(er,ir,""),er.removeAttribute(yr?ir:rr),vr.test(ir)&&rr in er&&(er[rr]=!1))},attrHooks:{type:{set:function set(er,tr){if(gr.test(er.nodeName)&&er.parentNode)or.error("type property can't be changed");else if(!or.support.radioValue&&"radio"===tr&&or.nodeName(er,"input")){var rr=er.value;return er.setAttribute("type",tr),rr&&(er.value=rr),tr}}},value:{get:function get(er,tr){return ur&&or.nodeName(er,"button")?ur.get(er,tr):tr in er?er.value:null},set:function set(er,tr,rr){if(ur&&or.nodeName(er,"button"))return ur.set(er,tr,rr);er.value=tr}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function prop(er,rr,nr){var ir,ar,sr=er.nodeType;if(er&&3!==sr&&8!==sr&&2!==sr)return(1!==sr||!or.isXMLDoc(er))&&(rr=or.propFix[rr]||rr,ar=or.propHooks[rr]),nr!==tr?ar&&"set"in ar&&(ir=ar.set(er,nr,rr))!==tr?ir:er[rr]=nr:ar&&"get"in ar&&null!==(ir=ar.get(er,rr))?ir:er[rr]},propHooks:{tabIndex:{get:function get(er){var rr=er.getAttributeNode("tabindex");return rr&&rr.specified?parseInt(rr.value,10):mr.test(er.nodeName)||_r.test(er.nodeName)&&er.href?0:tr}}}}),or.attrHooks.tabindex=or.propHooks.tabIndex,dr={get:function get(er,rr){var nr,ir=or.prop(er,rr);return!0===ir||"boolean"!=typeof ir&&(nr=er.getAttributeNode(rr))&&!1!==nr.nodeValue?rr.toLowerCase():tr},set:function set(er,tr,rr){var nr;return!1===tr?or.removeAttr(er,rr):((nr=or.propFix[rr]||rr)in er&&(er[nr]=!0),er.setAttribute(rr,rr.toLowerCase())),rr}},yr||(hr={name:!0,id:!0},ur=or.valHooks.button={get:function get(er,rr){var nr;return(nr=er.getAttributeNode(rr))&&(hr[rr]?""!==nr.nodeValue:nr.specified)?nr.nodeValue:tr},set:function set(er,tr,nr){var ir=er.getAttributeNode(nr);return ir||(ir=rr.createAttribute(nr),er.setAttributeNode(ir)),ir.nodeValue=tr+""}},or.attrHooks.tabindex.set=ur.set,or.each(["width","height"],(function(er,tr){or.attrHooks[tr]=or.extend(or.attrHooks[tr],{set:function set(er,rr){if(""===rr)return er.setAttribute(tr,"auto"),rr}})})),or.attrHooks.contenteditable={get:ur.get,set:function set(er,tr,rr){""===tr&&(tr="false"),ur.set(er,tr,rr)}}),or.support.hrefNormalized||or.each(["href","src","width","height"],(function(er,rr){or.attrHooks[rr]=or.extend(or.attrHooks[rr],{get:function get(er){var nr=er.getAttribute(rr,2);return null===nr?tr:nr}})})),or.support.style||(or.attrHooks.style={get:function get(er){return er.style.cssText.toLowerCase()||tr},set:function set(er,tr){return er.style.cssText=""+tr}}),or.support.optSelected||(or.propHooks.selected=or.extend(or.propHooks.selected,{get:function get(er){var tr=er.parentNode;return tr&&(tr.selectedIndex,tr.parentNode&&tr.parentNode.selectedIndex),null}})),or.support.enctype||(or.propFix.enctype="encoding"),or.support.checkOn||or.each(["radio","checkbox"],(function(){or.valHooks[this]={get:function get(er){return null===er.getAttribute("value")?"on":er.value}}})),or.each(["radio","checkbox"],(function(){or.valHooks[this]=or.extend(or.valHooks[this],{set:function set(er,tr){if(or.isArray(tr))return er.checked=or.inArray(or(er).val(),tr)>=0}})}));var br=/^(?:textarea|input|select)$/i,wr=/^([^\.]*)?(?:\.(.+))?$/,Sr=/\bhover(\.\S+)?\b/,xr=/^key/,kr=/^(?:mouse|contextmenu)|click/,Cr=/^(?:focusinfocus|focusoutblur)$/,Br=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Er=function G(er){var tr=Br.exec(er);return tr&&(tr[1]=(tr[1]||"").toLowerCase(),tr[3]=tr[3]&&new RegExp("(?:^|\\s)"+tr[3]+"(?:\\s|$)")),tr},Nr=function H(er,tr){var rr=er.attributes||{};return(!tr[1]||er.nodeName.toLowerCase()===tr[1])&&(!tr[2]||(rr.id||{}).value===tr[2])&&(!tr[3]||tr[3].test((rr.class||{}).value))},Lr=function I(er){return or.event.special.hover?er:er.replace(Sr,"mouseenter$1 mouseleave$1")};or.event={add:function add(er,rr,nr,ir,ar){var sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr;if(3!==er.nodeType&&8!==er.nodeType&&rr&&nr&&(sr=or._data(er))){for(nr.handler&&(nr=(fr=nr).handler),nr.guid||(nr.guid=or.guid++),(cr=sr.events)||(sr.events=cr={}),(lr=sr.handle)||(sr.handle=lr=function i(er){return void 0===or||er&&or.event.triggered===er.type?tr:or.event.dispatch.apply(lr.elem,arguments)},lr.elem=er),rr=or.trim(Lr(rr)).split(" "),ur=0;ur<rr.length;ur++)hr=(dr=wr.exec(rr[ur])||[])[1],pr=(dr[2]||"").split(".").sort(),mr=or.event.special[hr]||{},hr=(ar?mr.delegateType:mr.bindType)||hr,mr=or.event.special[hr]||{},Ar=or.extend({type:hr,origType:dr[1],data:ir,handler:nr,guid:nr.guid,selector:ar,quick:Er(ar),namespace:pr.join(".")},fr),(gr=cr[hr])||((gr=cr[hr]=[]).delegateCount=0,mr.setup&&!1!==mr.setup.call(er,ir,pr,lr)||(er.addEventListener?er.addEventListener(hr,lr,!1):er.attachEvent&&er.attachEvent("on"+hr,lr))),mr.add&&(mr.add.call(er,Ar),Ar.handler.guid||(Ar.handler.guid=nr.guid)),ar?gr.splice(gr.delegateCount++,0,Ar):gr.push(Ar),or.event.global[hr]=!0;er=null}},global:{},remove:function remove(er,tr,rr,nr,ir){var ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r=or.hasData(er)&&or._data(er);if(_r&&(pr=_r.events)){for(tr=or.trim(Lr(tr||"")).split(" "),ar=0;ar<tr.length;ar++)if(lr=cr=(sr=wr.exec(tr[ar])||[])[1],ur=sr[2],lr){for(Ar=or.event.special[lr]||{},dr=(gr=pr[lr=(nr?Ar.delegateType:Ar.bindType)||lr]||[]).length,ur=ur?new RegExp("(^|\\.)"+ur.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,hr=0;hr<gr.length;hr++)mr=gr[hr],(ir||cr===mr.origType)&&(!rr||rr.guid===mr.guid)&&(!ur||ur.test(mr.namespace))&&(!nr||nr===mr.selector||"**"===nr&&mr.selector)&&(gr.splice(hr--,1),mr.selector&&gr.delegateCount--,Ar.remove&&Ar.remove.call(er,mr));0===gr.length&&dr!==gr.length&&((!Ar.teardown||!1===Ar.teardown.call(er,ur))&&or.removeEvent(er,lr,_r.handle),delete pr[lr])}else for(lr in pr)or.event.remove(er,lr+tr[ar],rr,nr,!0);or.isEmptyObject(pr)&&((fr=_r.handle)&&(fr.elem=null),or.removeData(er,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function trigger(rr,nr,ir,ar){if(!ir||3!==ir.nodeType&&8!==ir.nodeType){var sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr=rr.type||rr,_r=[];if(Cr.test(mr+or.event.triggered))return;if(mr.indexOf("!")>=0&&(mr=mr.slice(0,-1),lr=!0),mr.indexOf(".")>=0&&(_r=mr.split("."),mr=_r.shift(),_r.sort()),(!ir||or.event.customEvent[mr])&&!or.event.global[mr])return;if((rr="object"==_typeof(rr)?rr[or.expando]?rr:new or.Event(mr,rr):new or.Event(mr)).type=mr,rr.isTrigger=!0,rr.exclusive=lr,rr.namespace=_r.join("."),rr.namespace_re=rr.namespace?new RegExp("(^|\\.)"+_r.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,hr=mr.indexOf(":")<0?"on"+mr:"",!ir){for(cr in sr=or.cache)sr[cr].events&&sr[cr].events[mr]&&or.event.trigger(rr,nr,sr[cr].handle.elem,!0);return}if(rr.result=tr,rr.target||(rr.target=ir),(nr=null!=nr?or.makeArray(nr):[]).unshift(rr),(pr=or.event.special[mr]||{}).trigger&&!1===pr.trigger.apply(ir,nr))return;if(fr=[[ir,pr.bindType||mr]],!ar&&!pr.noBubble&&!or.isWindow(ir)){for(gr=pr.delegateType||mr,ur=Cr.test(gr+mr)?ir:ir.parentNode,dr=null;ur;ur=ur.parentNode)fr.push([ur,gr]),dr=ur;dr&&dr===ir.ownerDocument&&fr.push([dr.defaultView||dr.parentWindow||er,gr])}for(cr=0;cr<fr.length&&!rr.isPropagationStopped();cr++)ur=fr[cr][0],rr.type=fr[cr][1],(Ar=(or._data(ur,"events")||{})[rr.type]&&or._data(ur,"handle"))&&Ar.apply(ur,nr),(Ar=hr&&ur[hr])&&or.acceptData(ur)&&!1===Ar.apply(ur,nr)&&rr.preventDefault();return rr.type=mr,!ar&&!rr.isDefaultPrevented()&&(!pr._default||!1===pr._default.apply(ir.ownerDocument,nr))&&("click"!==mr||!or.nodeName(ir,"a"))&&or.acceptData(ir)&&hr&&ir[mr]&&("focus"!==mr&&"blur"!==mr||0!==rr.target.offsetWidth)&&!or.isWindow(ir)&&((dr=ir[hr])&&(ir[hr]=null),or.event.triggered=mr,ir[mr](),or.event.triggered=tr,dr&&(ir[hr]=dr)),rr.result}},dispatch:function dispatch(rr){rr=or.event.fix(rr||er.event);var nr,ir,ar,sr,lr,cr,ur,dr,hr,pr,Ar=(or._data(this,"events")||{})[rr.type]||[],fr=Ar.delegateCount,gr=[].slice.call(arguments,0),mr=!rr.exclusive&&!rr.namespace,_r=[];if(gr[0]=rr,rr.delegateTarget=this,fr&&!rr.target.disabled&&(!rr.button||"click"!==rr.type))for((sr=or(this)).context=this.ownerDocument||this,ar=rr.target;ar!=this;ar=ar.parentNode||this){for(cr={},dr=[],sr[0]=ar,nr=0;nr<fr;nr++)cr[pr=(hr=Ar[nr]).selector]===tr&&(cr[pr]=hr.quick?Nr(ar,hr.quick):sr.is(pr)),cr[pr]&&dr.push(hr);dr.length&&_r.push({elem:ar,matches:dr})}for(Ar.length>fr&&_r.push({elem:this,matches:Ar.slice(fr)}),nr=0;nr<_r.length&&!rr.isPropagationStopped();nr++)for(ur=_r[nr],rr.currentTarget=ur.elem,ir=0;ir<ur.matches.length&&!rr.isImmediatePropagationStopped();ir++)hr=ur.matches[ir],(mr||!rr.namespace&&!hr.namespace||rr.namespace_re&&rr.namespace_re.test(hr.namespace))&&(rr.data=hr.data,rr.handleObj=hr,(lr=((or.event.special[hr.origType]||{}).handle||hr.handler).apply(ur.elem,gr))!==tr&&(rr.result=lr,!1===lr&&(rr.preventDefault(),rr.stopPropagation())));return rr.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function filter(er,tr){return null==er.which&&(er.which=null!=tr.charCode?tr.charCode:tr.keyCode),er}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function filter(er,nr){var ir,or,ar,sr=nr.button,lr=nr.fromElement;return null==er.pageX&&null!=nr.clientX&&(or=(ir=er.target.ownerDocument||rr).documentElement,ar=ir.body,er.pageX=nr.clientX+(or&&or.scrollLeft||ar&&ar.scrollLeft||0)-(or&&or.clientLeft||ar&&ar.clientLeft||0),er.pageY=nr.clientY+(or&&or.scrollTop||ar&&ar.scrollTop||0)-(or&&or.clientTop||ar&&ar.clientTop||0)),!er.relatedTarget&&lr&&(er.relatedTarget=lr===er.target?nr.toElement:lr),!er.which&&sr!==tr&&(er.which=1&sr?1:2&sr?3:4&sr?2:0),er}},fix:function fix(er){if(er[or.expando])return er;var nr,ir,ar=er,sr=or.event.fixHooks[er.type]||{},lr=sr.props?this.props.concat(sr.props):this.props;for(er=or.Event(ar),nr=lr.length;nr;)er[ir=lr[--nr]]=ar[ir];return er.target||(er.target=ar.srcElement||rr),3===er.target.nodeType&&(er.target=er.target.parentNode),er.metaKey===tr&&(er.metaKey=er.ctrlKey),sr.filter?sr.filter(er,ar):er},special:{ready:{setup:or.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function setup(er,tr,rr){or.isWindow(this)&&(this.onbeforeunload=rr)},teardown:function teardown(er,tr){this.onbeforeunload===tr&&(this.onbeforeunload=null)}}},simulate:function simulate(er,tr,rr,nr){var ir=or.extend(new or.Event,rr,{type:er,isSimulated:!0,originalEvent:{}});nr?or.event.trigger(ir,null,tr):or.event.dispatch.call(tr,ir),ir.isDefaultPrevented()&&rr.preventDefault()}},or.event.handle=or.event.dispatch,or.removeEvent=rr.removeEventListener?function(er,tr,rr){er.removeEventListener&&er.removeEventListener(tr,rr,!1)}:function(er,tr,rr){er.detachEvent&&er.detachEvent("on"+tr,rr)},or.Event=function(er,tr){if(!(this instanceof or.Event))return new or.Event(er,tr);er&&er.type?(this.originalEvent=er,this.type=er.type,this.isDefaultPrevented=er.defaultPrevented||!1===er.returnValue||er.getPreventDefault&&er.getPreventDefault()?K:J):this.type=er,tr&&or.extend(this,tr),this.timeStamp=er&&er.timeStamp||or.now(),this[or.expando]=!0},or.Event.prototype={preventDefault:function preventDefault(){this.isDefaultPrevented=K;var er=this.originalEvent;!er||(er.preventDefault?er.preventDefault():er.returnValue=!1)},stopPropagation:function stopPropagation(){this.isPropagationStopped=K;var er=this.originalEvent;!er||(er.stopPropagation&&er.stopPropagation(),er.cancelBubble=!0)},stopImmediatePropagation:function stopImmediatePropagation(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},or.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(er,tr){or.event.special[er]={delegateType:tr,bindType:tr,handle:function handle(er){var rr,nr=this,ir=er.relatedTarget,ar=er.handleObj;ar.selector;return ir&&(ir===nr||or.contains(nr,ir))||(er.type=ar.origType,rr=ar.handler.apply(this,arguments),er.type=tr),rr}}})),or.support.submitBubbles||(or.event.special.submit={setup:function setup(){if(or.nodeName(this,"form"))return!1;or.event.add(this,"click._submit keypress._submit",(function(er){var rr=er.target,nr=or.nodeName(rr,"input")||or.nodeName(rr,"button")?rr.form:tr;nr&&!nr._submit_attached&&(or.event.add(nr,"submit._submit",(function(er){this.parentNode&&!er.isTrigger&&or.event.simulate("submit",this.parentNode,er,!0)})),nr._submit_attached=!0)}))},teardown:function teardown(){if(or.nodeName(this,"form"))return!1;or.event.remove(this,"._submit")}}),or.support.changeBubbles||(or.event.special.change={setup:function setup(){if(br.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(or.event.add(this,"propertychange._change",(function(er){"checked"===er.originalEvent.propertyName&&(this._just_changed=!0)})),or.event.add(this,"click._change",(function(er){this._just_changed&&!er.isTrigger&&(this._just_changed=!1,or.event.simulate("change",this,er,!0))}))),!1;or.event.add(this,"beforeactivate._change",(function(er){var tr=er.target;br.test(tr.nodeName)&&!tr._change_attached&&(or.event.add(tr,"change._change",(function(er){this.parentNode&&!er.isSimulated&&!er.isTrigger&&or.event.simulate("change",this.parentNode,er,!0)})),tr._change_attached=!0)}))},handle:function handle(er){var tr=er.target;if(this!==tr||er.isSimulated||er.isTrigger||"radio"!==tr.type&&"checkbox"!==tr.type)return er.handleObj.handler.apply(this,arguments)},teardown:function teardown(){return or.event.remove(this,"._change"),br.test(this.nodeName)}}),or.support.focusinBubbles||or.each({focus:"focusin",blur:"focusout"},(function(er,tr){var nr=0,ir=function e(er){or.event.simulate(tr,er.target,or.event.fix(er),!0)};or.event.special[tr]={setup:function setup(){0==nr++&&rr.addEventListener(er,ir,!0)},teardown:function teardown(){0==--nr&&rr.removeEventListener(er,ir,!0)}}})),or.fn.extend({on:function on(er,rr,nr,ir,ar){var sr,lr;if("object"==_typeof(er)){for(lr in"string"!=typeof rr&&(nr=rr,rr=tr),er)this.on(lr,rr,nr,er[lr],ar);return this}if(null==nr&&null==ir?(ir=rr,nr=rr=tr):null==ir&&("string"==typeof rr?(ir=nr,nr=tr):(ir=nr,nr=rr,rr=tr)),!1===ir)ir=J;else if(!ir)return this;return 1===ar&&(sr=ir,(ir=function e(er){return or().off(er),sr.apply(this,arguments)}).guid=sr.guid||(sr.guid=or.guid++)),this.each((function(){or.event.add(this,er,ir,nr,rr)}))},one:function one(er,tr,rr,nr){return this.on.call(this,er,tr,rr,nr,1)},off:function off(er,rr,nr){if(er&&er.preventDefault&&er.handleObj){var ir=er.handleObj;return or(er.delegateTarget).off(ir.namespace?ir.type+"."+ir.namespace:ir.type,ir.selector,ir.handler),this}if("object"==_typeof(er)){for(var ar in er)this.off(ar,rr,er[ar]);return this}return!1!==rr&&"function"!=typeof rr||(nr=rr,rr=tr),!1===nr&&(nr=J),this.each((function(){or.event.remove(this,er,nr,rr)}))},bind:function bind(er,tr,rr){return this.on(er,null,tr,rr)},unbind:function unbind(er,tr){return this.off(er,null,tr)},live:function live(er,tr,rr){return or(this.context).on(er,this.selector,tr,rr),this},die:function die(er,tr){return or(this.context).off(er,this.selector||"**",tr),this},delegate:function delegate(er,tr,rr,nr){return this.on(tr,er,rr,nr)},undelegate:function undelegate(er,tr,rr){return 1==arguments.length?this.off(er,"**"):this.off(tr,er,rr)},trigger:function trigger(er,tr){return this.each((function(){or.event.trigger(er,tr,this)}))},triggerHandler:function triggerHandler(er,tr){if(this[0])return or.event.trigger(er,tr,this[0],!0)},toggle:function toggle(er){var tr=arguments,rr=er.guid||or.guid++,nr=0,ir=function e(rr){var e=(or._data(this,"lastToggle"+er.guid)||0)%nr;return or._data(this,"lastToggle"+er.guid,e+1),rr.preventDefault(),tr[e].apply(this,arguments)||!1};for(ir.guid=rr;nr<tr.length;)tr[nr++].guid=rr;return this.click(ir)},hover:function hover(er,tr){return this.mouseenter(er).mouseleave(tr||er)}}),or.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(er,tr){or.fn[tr]=function(er,rr){return null==rr&&(rr=er,er=null),arguments.length>0?this.on(tr,null,er,rr):this.trigger(tr)},or.attrFn&&(or.attrFn[tr]=!0),xr.test(tr)&&(or.event.fixHooks[tr]=or.event.keyHooks),kr.test(tr)&&(or.event.fixHooks[tr]=or.event.mouseHooks)})),function(){function x(er,tr,rr,ir,or,ar){for(var sr=0,lr=ir.length;sr<lr;sr++){var cr=ir[sr];if(cr){var ur=!1;for(cr=cr[er];cr;){if(cr[nr]===rr){ur=ir[cr.sizset];break}if(1===cr.nodeType)if(ar||(cr[nr]=rr,cr.sizset=sr),"string"!=typeof tr){if(cr===tr){ur=!0;break}}else if(hr.filter(tr,[cr]).length>0){ur=cr;break}cr=cr[er]}ir[sr]=ur}}}function w(er,tr,rr,ir,or,ar){for(var sr=0,lr=ir.length;sr<lr;sr++){var cr=ir[sr];if(cr){var ur=!1;for(cr=cr[er];cr;){if(cr[nr]===rr){ur=ir[cr.sizset];break}if(1===cr.nodeType&&!ar&&(cr[nr]=rr,cr.sizset=sr),cr.nodeName.toLowerCase()===tr){ur=cr;break}cr=cr[er]}ir[sr]=ur}}}var er=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,nr="sizcache"+(Math.random()+"").replace(".",""),ir=0,ar=Object.prototype.toString,sr=!1,lr=!0,cr=/\\/g,ur=/\r\n/g,dr=/\W/;[0,0].sort((function(){return lr=!1,0}));var hr=function m(tr,nr,ir,or){ir=ir||[];var sr=nr=nr||rr;if(1!==nr.nodeType&&9!==nr.nodeType)return[];if(!tr||"string"!=typeof tr)return ir;var lr,cr,ur,dr,pr,gr,mr,_r,vr=!0,wr=hr.isXML(nr),Sr=[],xr=tr;do{if(er.exec(""),(lr=er.exec(xr))&&(xr=lr[3],Sr.push(lr[1]),lr[2])){dr=lr[3];break}}while(lr);if(Sr.length>1&&fr.exec(tr))if(2===Sr.length&&Ar.relative[Sr[0]])cr=br(Sr[0]+Sr[1],nr,or);else for(cr=Ar.relative[Sr[0]]?[nr]:hr(Sr.shift(),nr);Sr.length;)tr=Sr.shift(),Ar.relative[tr]&&(tr+=Sr.shift()),cr=br(tr,cr,or);else if(!or&&Sr.length>1&&9===nr.nodeType&&!wr&&Ar.match.ID.test(Sr[0])&&!Ar.match.ID.test(Sr[Sr.length-1])&&(nr=(pr=hr.find(Sr.shift(),nr,wr)).expr?hr.filter(pr.expr,pr.set)[0]:pr.set[0]),nr)for(cr=(pr=or?{expr:Sr.pop(),set:yr(or)}:hr.find(Sr.pop(),1!==Sr.length||"~"!==Sr[0]&&"+"!==Sr[0]||!nr.parentNode?nr:nr.parentNode,wr)).expr?hr.filter(pr.expr,pr.set):pr.set,Sr.length>0?ur=yr(cr):vr=!1;Sr.length;)mr=gr=Sr.pop(),Ar.relative[gr]?mr=Sr.pop():gr="",null==mr&&(mr=nr),Ar.relative[gr](ur,mr,wr);else ur=Sr=[];if(ur||(ur=cr),ur||hr.error(gr||tr),"[object Array]"===ar.call(ur))if(vr)if(nr&&1===nr.nodeType)for(_r=0;null!=ur[_r];_r++)ur[_r]&&(!0===ur[_r]||1===ur[_r].nodeType&&hr.contains(nr,ur[_r]))&&ir.push(cr[_r]);else for(_r=0;null!=ur[_r];_r++)ur[_r]&&1===ur[_r].nodeType&&ir.push(cr[_r]);else ir.push.apply(ir,ur);else yr(ur,ir);return dr&&(hr(dr,sr,ir,or),hr.uniqueSort(ir)),ir};hr.uniqueSort=function(er){if(_r&&(sr=lr,er.sort(_r),sr))for(var tr=1;tr<er.length;tr++)er[tr]===er[tr-1]&&er.splice(tr--,1);return er},hr.matches=function(er,tr){return hr(er,null,null,tr)},hr.matchesSelector=function(er,tr){return hr(tr,null,null,[er]).length>0},hr.find=function(er,tr,rr){var nr,ir,or,ar,sr,lr;if(!er)return[];for(ir=0,or=Ar.order.length;ir<or;ir++)if(sr=Ar.order[ir],(ar=Ar.leftMatch[sr].exec(er))&&(lr=ar[1],ar.splice(1,1),"\\"!==lr.substr(lr.length-1)&&(ar[1]=(ar[1]||"").replace(cr,""),null!=(nr=Ar.find[sr](ar,tr,rr))))){er=er.replace(Ar.match[sr],"");break}return nr||(nr=void 0!==tr.getElementsByTagName?tr.getElementsByTagName("*"):[]),{set:nr,expr:er}},hr.filter=function(er,rr,nr,ir){for(var or,ar,sr,lr,cr,ur,dr,pr,fr,gr=er,mr=[],_r=rr,vr=rr&&rr[0]&&hr.isXML(rr[0]);er&&rr.length;){for(sr in Ar.filter)if(null!=(or=Ar.leftMatch[sr].exec(er))&&or[2]){if(ur=Ar.filter[sr],dr=or[1],ar=!1,or.splice(1,1),"\\"===dr.substr(dr.length-1))continue;if(_r===mr&&(mr=[]),Ar.preFilter[sr])if(or=Ar.preFilter[sr](or,_r,nr,mr,ir,vr)){if(!0===or)continue}else ar=lr=!0;if(or)for(pr=0;null!=(cr=_r[pr]);pr++)cr&&(fr=ir^(lr=ur(cr,or,pr,_r)),nr&&null!=lr?fr?ar=!0:_r[pr]=!1:fr&&(mr.push(cr),ar=!0));if(lr!==tr){if(nr||(_r=mr),er=er.replace(Ar.match[sr],""),!ar)return[];break}}if(er===gr){if(null!=ar)break;hr.error(er)}gr=er}return _r},hr.error=function(er){throw new Error("Syntax error, unrecognized expression: "+er)};var pr=hr.getText=function(er){var tr,rr,nr=er.nodeType,ir="";if(nr){if(1===nr||9===nr){if("string"==typeof er.textContent)return er.textContent;if("string"==typeof er.innerText)return er.innerText.replace(ur,"");for(er=er.firstChild;er;er=er.nextSibling)ir+=pr(er)}else if(3===nr||4===nr)return er.nodeValue}else for(tr=0;rr=er[tr];tr++)8!==rr.nodeType&&(ir+=pr(rr));return ir},Ar=hr.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function href(er){return er.getAttribute("href")},type:function type(er){return er.getAttribute("type")}},relative:{"+":function _(er,tr){var rr="string"==typeof tr,nr=rr&&!dr.test(tr),ir=rr&&!nr;nr&&(tr=tr.toLowerCase());for(var or,ar=0,sr=er.length;ar<sr;ar++)if(or=er[ar]){for(;(or=or.previousSibling)&&1!==or.nodeType;);er[ar]=ir||or&&or.nodeName.toLowerCase()===tr?or||!1:or===tr}ir&&hr.filter(tr,er,!0)},">":function _(er,tr){var rr,nr="string"==typeof tr,ir=0,or=er.length;if(nr&&!dr.test(tr)){for(tr=tr.toLowerCase();ir<or;ir++)if(rr=er[ir]){var ar=rr.parentNode;er[ir]=ar.nodeName.toLowerCase()===tr&&ar}}else{for(;ir<or;ir++)(rr=er[ir])&&(er[ir]=nr?rr.parentNode:rr.parentNode===tr);nr&&hr.filter(tr,er,!0)}},"":function _(er,tr,rr){var nr,or=ir++,ar=x;"string"==typeof tr&&!dr.test(tr)&&(nr=tr=tr.toLowerCase(),ar=w),ar("parentNode",tr,or,er,nr,rr)},"~":function _(er,tr,rr){var nr,or=ir++,ar=x;"string"==typeof tr&&!dr.test(tr)&&(nr=tr=tr.toLowerCase(),ar=w),ar("previousSibling",tr,or,er,nr,rr)}},find:{ID:function ID(er,tr,rr){if(void 0!==tr.getElementById&&!rr){var nr=tr.getElementById(er[1]);return nr&&nr.parentNode?[nr]:[]}},NAME:function NAME(er,tr){if(void 0!==tr.getElementsByName){for(var rr=[],nr=tr.getElementsByName(er[1]),ir=0,or=nr.length;ir<or;ir++)nr[ir].getAttribute("name")===er[1]&&rr.push(nr[ir]);return 0===rr.length?null:rr}},TAG:function TAG(er,tr){if(void 0!==tr.getElementsByTagName)return tr.getElementsByTagName(er[1])}},preFilter:{CLASS:function CLASS(er,tr,rr,nr,ir,or){if(er=" "+er[1].replace(cr,"")+" ",or)return er;for(var ar,sr=0;null!=(ar=tr[sr]);sr++)ar&&(ir^(ar.className&&(" "+ar.className+" ").replace(/[\t\n\r]/g," ").indexOf(er)>=0)?rr||nr.push(ar):rr&&(tr[sr]=!1));return!1},ID:function ID(er){return er[1].replace(cr,"")},TAG:function TAG(er,tr){return er[1].replace(cr,"").toLowerCase()},CHILD:function CHILD(er){if("nth"===er[1]){er[2]||hr.error(er[0]),er[2]=er[2].replace(/^\+|\s*/g,"");var tr=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===er[2]?"2n":"odd"===er[2]&&"2n+1")||!/\D/.test(er[2])&&"0n+"+er[2]||er[2]);er[2]=tr[1]+(tr[2]||1)-0,er[3]=tr[3]-0}else er[2]&&hr.error(er[0]);return er[0]=ir++,er},ATTR:function ATTR(er,tr,rr,nr,ir,or){var ar=er[1]=er[1].replace(cr,"");return!or&&Ar.attrMap[ar]&&(er[1]=Ar.attrMap[ar]),er[4]=(er[4]||er[5]||"").replace(cr,""),"~="===er[2]&&(er[4]=" "+er[4]+" "),er},PSEUDO:function PSEUDO(tr,rr,nr,ir,or){if("not"===tr[1]){if(!((er.exec(tr[3])||"").length>1||/^\w/.test(tr[3]))){var ar=hr.filter(tr[3],rr,nr,!0^or);return nr||ir.push.apply(ir,ar),!1}tr[3]=hr(tr[3],null,null,rr)}else if(Ar.match.POS.test(tr[0])||Ar.match.CHILD.test(tr[0]))return!0;return tr},POS:function POS(er){return er.unshift(!0),er}},filters:{enabled:function enabled(er){return!1===er.disabled&&"hidden"!==er.type},disabled:function disabled(er){return!0===er.disabled},checked:function checked(er){return!0===er.checked},selected:function selected(er){return er.parentNode&&er.parentNode.selectedIndex,!0===er.selected},parent:function parent(er){return!!er.firstChild},empty:function empty(er){return!er.firstChild},has:function has(er,tr,rr){return!!hr(rr[3],er).length},header:function header(er){return/h\d/i.test(er.nodeName)},text:function text(er){var tr=er.getAttribute("type"),rr=er.type;return"input"===er.nodeName.toLowerCase()&&"text"===rr&&(tr===rr||null===tr)},radio:function radio(er){return"input"===er.nodeName.toLowerCase()&&"radio"===er.type},checkbox:function checkbox(er){return"input"===er.nodeName.toLowerCase()&&"checkbox"===er.type},file:function file(er){return"input"===er.nodeName.toLowerCase()&&"file"===er.type},password:function password(er){return"input"===er.nodeName.toLowerCase()&&"password"===er.type},submit:function submit(er){var tr=er.nodeName.toLowerCase();return("input"===tr||"button"===tr)&&"submit"===er.type},image:function image(er){return"input"===er.nodeName.toLowerCase()&&"image"===er.type},reset:function reset(er){var tr=er.nodeName.toLowerCase();return("input"===tr||"button"===tr)&&"reset"===er.type},button:function button(er){var tr=er.nodeName.toLowerCase();return"input"===tr&&"button"===er.type||"button"===tr},input:function input(er){return/input|select|textarea|button/i.test(er.nodeName)},focus:function focus(er){return er===er.ownerDocument.activeElement}},setFilters:{first:function first(er,tr){return 0===tr},last:function last(er,tr,rr,nr){return tr===nr.length-1},even:function even(er,tr){return tr%2==0},odd:function odd(er,tr){return tr%2==1},lt:function lt(er,tr,rr){return tr<rr[3]-0},gt:function gt(er,tr,rr){return tr>rr[3]-0},nth:function nth(er,tr,rr){return rr[3]-0===tr},eq:function eq(er,tr,rr){return rr[3]-0===tr}},filter:{PSEUDO:function PSEUDO(er,tr,rr,nr){var ir=tr[1],or=Ar.filters[ir];if(or)return or(er,rr,tr,nr);if("contains"===ir)return(er.textContent||er.innerText||pr([er])||"").indexOf(tr[3])>=0;if("not"===ir){for(var ar=tr[3],sr=0,lr=ar.length;sr<lr;sr++)if(ar[sr]===er)return!1;return!0}hr.error(ir)},CHILD:function CHILD(er,tr){var rr,ir,or,ar,sr,lr,cr=tr[1],ur=er;switch(cr){case"only":case"first":for(;ur=ur.previousSibling;)if(1===ur.nodeType)return!1;if("first"===cr)return!0;ur=er;case"last":for(;ur=ur.nextSibling;)if(1===ur.nodeType)return!1;return!0;case"nth":if(rr=tr[2],ir=tr[3],1===rr&&0===ir)return!0;if(or=tr[0],(ar=er.parentNode)&&(ar[nr]!==or||!er.nodeIndex)){for(sr=0,ur=ar.firstChild;ur;ur=ur.nextSibling)1===ur.nodeType&&(ur.nodeIndex=++sr);ar[nr]=or}return lr=er.nodeIndex-ir,0===rr?0===lr:lr%rr==0&&lr/rr>=0}},ID:function ID(er,tr){return 1===er.nodeType&&er.getAttribute("id")===tr},TAG:function TAG(er,tr){return"*"===tr&&1===er.nodeType||!!er.nodeName&&er.nodeName.toLowerCase()===tr},CLASS:function CLASS(er,tr){return(" "+(er.className||er.getAttribute("class"))+" ").indexOf(tr)>-1},ATTR:function ATTR(er,tr){var rr=tr[1],nr=hr.attr?hr.attr(er,rr):Ar.attrHandle[rr]?Ar.attrHandle[rr](er):null!=er[rr]?er[rr]:er.getAttribute(rr),ir=nr+"",or=tr[2],ar=tr[4];return null==nr?"!="===or:!or&&hr.attr?null!=nr:"="===or?ir===ar:"*="===or?ir.indexOf(ar)>=0:"~="===or?(" "+ir+" ").indexOf(ar)>=0:ar?"!="===or?ir!==ar:"^="===or?0===ir.indexOf(ar):"$="===or?ir.substr(ir.length-ar.length)===ar:"|="===or&&(ir===ar||ir.substr(0,ar.length+1)===ar+"-"):ir&&!1!==nr},POS:function POS(er,tr,rr,nr){var ir=tr[2],or=Ar.setFilters[ir];if(or)return or(er,rr,tr,nr)}}},fr=Ar.match.POS,gr=function q(er,tr){return"\\"+(tr-0+1)};for(var mr in Ar.match)Ar.match[mr]=new RegExp(Ar.match[mr].source+/(?![^\[]*\])(?![^\(]*\))/.source),Ar.leftMatch[mr]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Ar.match[mr].source.replace(/\\(\d+)/g,gr));var _r,vr,yr=function s(er,tr){return er=Array.prototype.slice.call(er,0),tr?(tr.push.apply(tr,er),tr):er};try{Array.prototype.slice.call(rr.documentElement.childNodes,0)[0].nodeType}catch(er){yr=function s(er,tr){var rr=0,nr=tr||[];if("[object Array]"===ar.call(er))Array.prototype.push.apply(nr,er);else if("number"==typeof er.length)for(var ir=er.length;rr<ir;rr++)nr.push(er[rr]);else for(;er[rr];rr++)nr.push(er[rr]);return nr}}rr.documentElement.compareDocumentPosition?_r=function u(er,tr){return er===tr?(sr=!0,0):er.compareDocumentPosition&&tr.compareDocumentPosition?4&er.compareDocumentPosition(tr)?-1:1:er.compareDocumentPosition?-1:1}:(_r=function u(er,tr){if(er===tr)return sr=!0,0;if(er.sourceIndex&&tr.sourceIndex)return er.sourceIndex-tr.sourceIndex;var rr,nr,ir=[],or=[],ar=er.parentNode,lr=tr.parentNode,cr=ar;if(ar===lr)return vr(er,tr);if(!ar)return-1;if(!lr)return 1;for(;cr;)ir.unshift(cr),cr=cr.parentNode;for(cr=lr;cr;)or.unshift(cr),cr=cr.parentNode;rr=ir.length,nr=or.length;for(var ur=0;ur<rr&&ur<nr;ur++)if(ir[ur]!==or[ur])return vr(ir[ur],or[ur]);return ur===rr?vr(er,or[ur],-1):vr(ir[ur],tr,1)},vr=function v(er,tr,rr){if(er===tr)return rr;for(var nr=er.nextSibling;nr;){if(nr===tr)return-1;nr=nr.nextSibling}return 1}),function(){var er=rr.createElement("div"),nr="script"+(new Date).getTime(),ir=rr.documentElement;er.innerHTML="<a name='"+nr+"'/>",ir.insertBefore(er,ir.firstChild),rr.getElementById(nr)&&(Ar.find.ID=function(er,rr,nr){if(void 0!==rr.getElementById&&!nr){var ir=rr.getElementById(er[1]);return ir?ir.id===er[1]||void 0!==ir.getAttributeNode&&ir.getAttributeNode("id").nodeValue===er[1]?[ir]:tr:[]}},Ar.filter.ID=function(er,tr){var rr=void 0!==er.getAttributeNode&&er.getAttributeNode("id");return 1===er.nodeType&&rr&&rr.nodeValue===tr}),ir.removeChild(er),ir=er=null}(),function(){var er=rr.createElement("div");er.appendChild(rr.createComment("")),er.getElementsByTagName("*").length>0&&(Ar.find.TAG=function(er,tr){var rr=tr.getElementsByTagName(er[1]);if("*"===er[1]){for(var nr=[],ir=0;rr[ir];ir++)1===rr[ir].nodeType&&nr.push(rr[ir]);rr=nr}return rr}),er.innerHTML="<a href='#'></a>",er.firstChild&&void 0!==er.firstChild.getAttribute&&"#"!==er.firstChild.getAttribute("href")&&(Ar.attrHandle.href=function(er){return er.getAttribute("href",2)}),er=null}(),rr.querySelectorAll&&function(){var er=hr,tr=rr.createElement("div");if(tr.innerHTML="<p class='TEST'></p>",!tr.querySelectorAll||0!==tr.querySelectorAll(".TEST").length){for(var nr in hr=function _m(tr,nr,ir,or){if(nr=nr||rr,!or&&!hr.isXML(nr)){var ar=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(tr);if(ar&&(1===nr.nodeType||9===nr.nodeType)){if(ar[1])return yr(nr.getElementsByTagName(tr),ir);if(ar[2]&&Ar.find.CLASS&&nr.getElementsByClassName)return yr(nr.getElementsByClassName(ar[2]),ir)}if(9===nr.nodeType){if("body"===tr&&nr.body)return yr([nr.body],ir);if(ar&&ar[3]){var sr=nr.getElementById(ar[3]);if(!sr||!sr.parentNode)return yr([],ir);if(sr.id===ar[3])return yr([sr],ir)}try{return yr(nr.querySelectorAll(tr),ir)}catch(er){}}else if(1===nr.nodeType&&"object"!==nr.nodeName.toLowerCase()){var lr=nr,cr=nr.getAttribute("id"),ur=cr||"__sizzle__",dr=nr.parentNode,pr=/^\s*[+~]/.test(tr);cr?ur=ur.replace(/'/g,"\\$&"):nr.setAttribute("id",ur),pr&&dr&&(nr=nr.parentNode);try{if(!pr||dr)return yr(nr.querySelectorAll("[id='"+ur+"'] "+tr),ir)}catch(er){}finally{cr||lr.removeAttribute("id")}}}return er(tr,nr,ir,or)},er)hr[nr]=er[nr];tr=null}}(),function(){var er=rr.documentElement,tr=er.matchesSelector||er.mozMatchesSelector||er.webkitMatchesSelector||er.msMatchesSelector;if(tr){var nr=!tr.call(rr.createElement("div"),"div"),ir=!1;try{tr.call(rr.documentElement,"[test!='']:sizzle")}catch(er){ir=!0}hr.matchesSelector=function(er,rr){if(rr=rr.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!hr.isXML(er))try{if(ir||!Ar.match.PSEUDO.test(rr)&&!/!=/.test(rr)){var or=tr.call(er,rr);if(or||!nr||er.document&&11!==er.document.nodeType)return or}}catch(er){}return hr(rr,null,null,[er]).length>0}}}(),function(){var er=rr.createElement("div");if(er.innerHTML="<div class='test e'></div><div class='test'></div>",er.getElementsByClassName&&0!==er.getElementsByClassName("e").length){if(er.lastChild.className="e",1===er.getElementsByClassName("e").length)return;Ar.order.splice(1,0,"CLASS"),Ar.find.CLASS=function(er,tr,rr){if(void 0!==tr.getElementsByClassName&&!rr)return tr.getElementsByClassName(er[1])},er=null}}(),rr.documentElement.contains?hr.contains=function(er,tr){return er!==tr&&(!er.contains||er.contains(tr))}:rr.documentElement.compareDocumentPosition?hr.contains=function(er,tr){return!!(16&er.compareDocumentPosition(tr))}:hr.contains=function(){return!1},hr.isXML=function(er){var tr=(er?er.ownerDocument||er:0).documentElement;return!!tr&&"HTML"!==tr.nodeName};var br=function y(er,tr,rr){for(var nr,ir=[],or="",ar=tr.nodeType?[tr]:tr;nr=Ar.match.PSEUDO.exec(er);)or+=nr[0],er=er.replace(Ar.match.PSEUDO,"");er=Ar.relative[er]?er+"*":er;for(var sr=0,lr=ar.length;sr<lr;sr++)hr(er,ar[sr],ir,rr);return hr.filter(or,ir)};hr.attr=or.attr,hr.selectors.attrMap={},or.find=hr,or.expr=hr.selectors,or.expr[":"]=or.expr.filters,or.unique=hr.uniqueSort,or.text=hr.getText,or.isXMLDoc=hr.isXML,or.contains=hr.contains}();var Tr=/Until$/,Pr=/^(?:parents|prevUntil|prevAll)/,Fr=/,/,Ur=/^.[^:#\[\.,]*$/,Ir=Array.prototype.slice,Rr=or.expr.match.POS,Mr={children:!0,contents:!0,next:!0,prev:!0};or.fn.extend({find:function find(er){var tr,rr,nr=this;if("string"!=typeof er)return or(er).filter((function(){for(tr=0,rr=nr.length;tr<rr;tr++)if(or.contains(nr[tr],this))return!0}));var ir,ar,sr,lr=this.pushStack("","find",er);for(tr=0,rr=this.length;tr<rr;tr++)if(ir=lr.length,or.find(er,this[tr],lr),tr>0)for(ar=ir;ar<lr.length;ar++)for(sr=0;sr<ir;sr++)if(lr[sr]===lr[ar]){lr.splice(ar--,1);break}return lr},has:function has(er){var tr=or(er);return this.filter((function(){for(var er=0,rr=tr.length;er<rr;er++)if(or.contains(this,tr[er]))return!0}))},not:function not(er){return this.pushStack(T(this,er,!1),"not",er)},filter:function filter(er){return this.pushStack(T(this,er,!0),"filter",er)},is:function is(er){return!!er&&("string"==typeof er?Rr.test(er)?or(er,this.context).index(this[0])>=0:or.filter(er,this).length>0:this.filter(er).length>0)},closest:function closest(er,tr){var rr,nr,ir=[],ar=this[0];if(or.isArray(er)){for(var sr=1;ar&&ar.ownerDocument&&ar!==tr;){for(rr=0;rr<er.length;rr++)or(ar).is(er[rr])&&ir.push({selector:er[rr],elem:ar,level:sr});ar=ar.parentNode,sr++}return ir}var lr=Rr.test(er)||"string"!=typeof er?or(er,tr||this.context):0;for(rr=0,nr=this.length;rr<nr;rr++)for(ar=this[rr];ar;){if(lr?lr.index(ar)>-1:or.find.matchesSelector(ar,er)){ir.push(ar);break}if(!(ar=ar.parentNode)||!ar.ownerDocument||ar===tr||11===ar.nodeType)break}return ir=ir.length>1?or.unique(ir):ir,this.pushStack(ir,"closest",er)},index:function index(er){return er?"string"==typeof er?or.inArray(this[0],or(er)):or.inArray(er.jquery?er[0]:er,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function add(er,tr){var rr="string"==typeof er?or(er,tr):or.makeArray(er&&er.nodeType?[er]:er),nr=or.merge(this.get(),rr);return this.pushStack(S(rr[0])||S(nr[0])?nr:or.unique(nr))},andSelf:function andSelf(){return this.add(this.prevObject)}}),or.each({parent:function parent(er){var tr=er.parentNode;return tr&&11!==tr.nodeType?tr:null},parents:function parents(er){return or.dir(er,"parentNode")},parentsUntil:function parentsUntil(er,tr,rr){return or.dir(er,"parentNode",rr)},next:function next(er){return or.nth(er,2,"nextSibling")},prev:function prev(er){return or.nth(er,2,"previousSibling")},nextAll:function nextAll(er){return or.dir(er,"nextSibling")},prevAll:function prevAll(er){return or.dir(er,"previousSibling")},nextUntil:function nextUntil(er,tr,rr){return or.dir(er,"nextSibling",rr)},prevUntil:function prevUntil(er,tr,rr){return or.dir(er,"previousSibling",rr)},siblings:function siblings(er){return or.sibling(er.parentNode.firstChild,er)},children:function children(er){return or.sibling(er.firstChild)},contents:function contents(er){return or.nodeName(er,"iframe")?er.contentDocument||er.contentWindow.document:or.makeArray(er.childNodes)}},(function(er,tr){or.fn[er]=function(rr,nr){var ir=or.map(this,tr,rr);return Tr.test(er)||(nr=rr),nr&&"string"==typeof nr&&(ir=or.filter(nr,ir)),ir=this.length>1&&!Mr[er]?or.unique(ir):ir,(this.length>1||Fr.test(nr))&&Pr.test(er)&&(ir=ir.reverse()),this.pushStack(ir,er,Ir.call(arguments).join(","))}})),or.extend({filter:function filter(er,tr,rr){return rr&&(er=":not("+er+")"),1===tr.length?or.find.matchesSelector(tr[0],er)?[tr[0]]:[]:or.find.matches(er,tr)},dir:function dir(er,rr,nr){for(var ir=[],ar=er[rr];ar&&9!==ar.nodeType&&(nr===tr||1!==ar.nodeType||!or(ar).is(nr));)1===ar.nodeType&&ir.push(ar),ar=ar[rr];return ir},nth:function nth(er,tr,rr,nr){tr=tr||1;for(var ir=0;er&&(1!==er.nodeType||++ir!==tr);er=er[rr]);return er},sibling:function sibling(er,tr){for(var rr=[];er;er=er.nextSibling)1===er.nodeType&&er!==tr&&rr.push(er);return rr}});var Or="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Qr=/ jQuery\d+="(?:\d+|null)"/g,Dr=/^\s+/,jr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Hr=/<([\w:]+)/,Gr=/<tbody/i,Vr=/<|&#?\w+;/,zr=/<(?:script|style)/i,Kr=/<(?:script|object|embed|option|style)/i,qr=new RegExp("<(?:"+Or+")","i"),Wr=/checked\s*(?:[^=]|=\s*.checked.)/i,Xr=/\/(java|ecma)script/i,Yr=/^\s*<!(?:\[CDATA\[|\-\-)/,Jr={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},$r=U(rr);Jr.optgroup=Jr.option,Jr.tbody=Jr.tfoot=Jr.colgroup=Jr.caption=Jr.thead,Jr.th=Jr.td,or.support.htmlSerialize||(Jr._default=[1,"div<div>","</div>"]),or.fn.extend({text:function text(er){return or.isFunction(er)?this.each((function(tr){var rr=or(this);rr.text(er.call(this,tr,rr.text()))})):"object"!=_typeof(er)&&er!==tr?this.empty().append((this[0]&&this[0].ownerDocument||rr).createTextNode(er)):or.text(this)},wrapAll:function wrapAll(er){if(or.isFunction(er))return this.each((function(tr){or(this).wrapAll(er.call(this,tr))}));if(this[0]){var tr=or(er,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&tr.insertBefore(this[0]),tr.map((function(){for(var er=this;er.firstChild&&1===er.firstChild.nodeType;)er=er.firstChild;return er})).append(this)}return this},wrapInner:function wrapInner(er){return or.isFunction(er)?this.each((function(tr){or(this).wrapInner(er.call(this,tr))})):this.each((function(){var tr=or(this),rr=tr.contents();rr.length?rr.wrapAll(er):tr.append(er)}))},wrap:function wrap(er){var tr=or.isFunction(er);return this.each((function(rr){or(this).wrapAll(tr?er.call(this,rr):er)}))},unwrap:function unwrap(){return this.parent().each((function(){or.nodeName(this,"body")||or(this).replaceWith(this.childNodes)})).end()},append:function append(){return this.domManip(arguments,!0,(function(er){1===this.nodeType&&this.appendChild(er)}))},prepend:function prepend(){return this.domManip(arguments,!0,(function(er){1===this.nodeType&&this.insertBefore(er,this.firstChild)}))},before:function before(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(er){this.parentNode.insertBefore(er,this)}));if(arguments.length){var er=or.clean(arguments);return er.push.apply(er,this.toArray()),this.pushStack(er,"before",arguments)}},after:function after(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(er){this.parentNode.insertBefore(er,this.nextSibling)}));if(arguments.length){var er=this.pushStack(this,"after",arguments);return er.push.apply(er,or.clean(arguments)),er}},remove:function remove(er,tr){for(var rr,nr=0;null!=(rr=this[nr]);nr++)er&&!or.filter(er,[rr]).length||(!tr&&1===rr.nodeType&&(or.cleanData(rr.getElementsByTagName("*")),or.cleanData([rr])),rr.parentNode&&rr.parentNode.removeChild(rr));return this},empty:function empty(){for(var er,tr=0;null!=(er=this[tr]);tr++)for(1===er.nodeType&&or.cleanData(er.getElementsByTagName("*"));er.firstChild;)er.removeChild(er.firstChild);return this},clone:function clone(er,tr){return er=null!=er&&er,tr=null==tr?er:tr,this.map((function(){return or.clone(this,er,tr)}))},html:function html(er){if(er===tr)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(Qr,""):null;if("string"!=typeof er||zr.test(er)||!or.support.leadingWhitespace&&Dr.test(er)||Jr[(Hr.exec(er)||["",""])[1].toLowerCase()])or.isFunction(er)?this.each((function(tr){var rr=or(this);rr.html(er.call(this,tr,rr.html()))})):this.empty().append(er);else{er=er.replace(jr,"<$1></$2>");try{for(var rr=0,nr=this.length;rr<nr;rr++)1===this[rr].nodeType&&(or.cleanData(this[rr].getElementsByTagName("*")),this[rr].innerHTML=er)}catch(tr){this.empty().append(er)}}return this},replaceWith:function replaceWith(er){return this[0]&&this[0].parentNode?or.isFunction(er)?this.each((function(tr){var rr=or(this),nr=rr.html();rr.replaceWith(er.call(this,tr,nr))})):("string"!=typeof er&&(er=or(er).detach()),this.each((function(){var tr=this.nextSibling,rr=this.parentNode;or(this).remove(),tr?or(tr).before(er):or(rr).append(er)}))):this.length?this.pushStack(or(or.isFunction(er)?er():er),"replaceWith",er):this},detach:function detach(er){return this.remove(er,!0)},domManip:function domManip(er,rr,nr){var ir,ar,sr,lr,cr=er[0],ur=[];if(!or.support.checkClone&&3===arguments.length&&"string"==typeof cr&&Wr.test(cr))return this.each((function(){or(this).domManip(er,rr,nr,!0)}));if(or.isFunction(cr))return this.each((function(ir){var ar=or(this);er[0]=cr.call(this,ir,rr?ar.html():tr),ar.domManip(er,rr,nr)}));if(this[0]){if(lr=cr&&cr.parentNode,ar=1===(sr=(ir=or.support.parentNode&&lr&&11===lr.nodeType&&lr.childNodes.length===this.length?{fragment:lr}:or.buildFragment(er,this,ur)).fragment).childNodes.length?sr=sr.firstChild:sr.firstChild){rr=rr&&or.nodeName(ar,"tr");for(var dr=0,hr=this.length,pr=hr-1;dr<hr;dr++)nr.call(rr?bi(this[dr]):this[dr],ir.cacheable||hr>1&&dr<pr?or.clone(sr,!0,!0):sr)}ur.length&&or.each(ur,bp)}return this}}),or.buildFragment=function(er,tr,nr){var ir,ar,sr,lr,cr=er[0];return tr&&tr[0]&&(lr=tr[0].ownerDocument||tr[0]),lr.createDocumentFragment||(lr=rr),1===er.length&&"string"==typeof cr&&cr.length<512&&lr===rr&&"<"===cr.charAt(0)&&!Kr.test(cr)&&(or.support.checkClone||!Wr.test(cr))&&(or.support.html5Clone||!qr.test(cr))&&(ar=!0,(sr=or.fragments[cr])&&1!==sr&&(ir=sr)),ir||(ir=lr.createDocumentFragment(),or.clean(er,lr,ir,nr)),ar&&(or.fragments[cr]=sr?ir:1),{fragment:ir,cacheable:ar}},or.fragments={},or.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(er,tr){or.fn[er]=function(rr){var nr=[],ir=or(rr),ar=1===this.length&&this[0].parentNode;if(ar&&11===ar.nodeType&&1===ar.childNodes.length&&1===ir.length)return ir[tr](this[0]),this;for(var sr=0,lr=ir.length;sr<lr;sr++){var cr=(sr>0?this.clone(!0):this).get();or(ir[sr])[tr](cr),nr=nr.concat(cr)}return this.pushStack(nr,er,ir.selector)}})),or.extend({clone:function clone(er,tr,rr){var nr,ir,ar,sr=or.support.html5Clone||!qr.test("<"+er.nodeName)?er.cloneNode(!0):bo(er);if(!(or.support.noCloneEvent&&or.support.noCloneChecked||1!==er.nodeType&&11!==er.nodeType||or.isXMLDoc(er)))for(bk(er,sr),nr=bl(er),ir=bl(sr),ar=0;nr[ar];++ar)ir[ar]&&bk(nr[ar],ir[ar]);if(tr&&(bj(er,sr),rr))for(nr=bl(er),ir=bl(sr),ar=0;nr[ar];++ar)bj(nr[ar],ir[ar]);return nr=ir=null,sr},clean:function clean(er,tr,nr,ir){var ar;void 0===(tr=tr||rr).createElement&&(tr=tr.ownerDocument||tr[0]&&tr[0].ownerDocument||rr);for(var sr,lr,cr=[],ur=0;null!=(lr=er[ur]);ur++)if("number"==typeof lr&&(lr+=""),lr){if("string"==typeof lr)if(Vr.test(lr)){lr=lr.replace(jr,"<$1></$2>");var dr=(Hr.exec(lr)||["",""])[1].toLowerCase(),hr=Jr[dr]||Jr._default,pr=hr[0],Ar=tr.createElement("div");for(tr===rr?$r.appendChild(Ar):U(tr).appendChild(Ar),Ar.innerHTML=hr[1]+lr+hr[2];pr--;)Ar=Ar.lastChild;if(!or.support.tbody){var fr=Gr.test(lr),gr="table"!==dr||fr?"<table>"!==hr[1]||fr?[]:Ar.childNodes:Ar.firstChild&&Ar.firstChild.childNodes;for(sr=gr.length-1;sr>=0;--sr)or.nodeName(gr[sr],"tbody")&&!gr[sr].childNodes.length&&gr[sr].parentNode.removeChild(gr[sr])}!or.support.leadingWhitespace&&Dr.test(lr)&&Ar.insertBefore(tr.createTextNode(Dr.exec(lr)[0]),Ar.firstChild),lr=Ar.childNodes}else lr=tr.createTextNode(lr);var mr;if(!or.support.appendChecked)if(lr[0]&&"number"==typeof(mr=lr.length))for(sr=0;sr<mr;sr++)bn(lr[sr]);else bn(lr);lr.nodeType?cr.push(lr):cr=or.merge(cr,lr)}if(nr)for(ar=function g(er){return!er.type||Xr.test(er.type)},ur=0;cr[ur];ur++)if(!ir||!or.nodeName(cr[ur],"script")||cr[ur].type&&"text/javascript"!==cr[ur].type.toLowerCase()){if(1===cr[ur].nodeType){var _r=or.grep(cr[ur].getElementsByTagName("script"),ar);cr.splice.apply(cr,[ur+1,0].concat(_r))}nr.appendChild(cr[ur])}else ir.push(cr[ur].parentNode?cr[ur].parentNode.removeChild(cr[ur]):cr[ur]);return cr},cleanData:function cleanData(er){for(var tr,rr,nr,ir=or.cache,ar=or.event.special,sr=or.support.deleteExpando,lr=0;null!=(nr=er[lr]);lr++)if((!nr.nodeName||!or.noData[nr.nodeName.toLowerCase()])&&(rr=nr[or.expando])){if((tr=ir[rr])&&tr.events){for(var cr in tr.events)ar[cr]?or.event.remove(nr,cr):or.removeEvent(nr,cr,tr.handle);tr.handle&&(tr.handle.elem=null)}sr?delete nr[or.expando]:nr.removeAttribute&&nr.removeAttribute(or.expando),delete ir[rr]}}});var Zr,Tn,Un,Qn=/alpha\([^)]*\)/i,Dn=/opacity=([^)]*)/,Hn=/([A-Z]|^ms)/g,Gn=/^-?\d+(?:px)?$/i,Vn=/^-?\d/,zn=/^([\-+])=([\-+.\de]+)/,Kn={position:"absolute",visibility:"hidden",display:"block"},Wn=["Left","Right"],Xn=["Top","Bottom"];or.fn.css=function(er,rr){return 2===arguments.length&&rr===tr?this:or.access(this,er,rr,!0,(function(er,rr,nr){return nr!==tr?or.style(er,rr,nr):or.css(er,rr)}))},or.extend({cssHooks:{opacity:{get:function get(er,tr){if(tr){var rr=Zr(er,"opacity","opacity");return""===rr?"1":rr}return er.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:or.support.cssFloat?"cssFloat":"styleFloat"},style:function style(er,rr,nr,ir){if(er&&3!==er.nodeType&&8!==er.nodeType&&er.style){var ar,sr,lr=or.camelCase(rr),cr=er.style,ur=or.cssHooks[lr];if(rr=or.cssProps[lr]||lr,nr===tr)return ur&&"get"in ur&&(ar=ur.get(er,!1,ir))!==tr?ar:cr[rr];if("string"===(sr=_typeof(nr))&&(ar=zn.exec(nr))&&(nr=+(ar[1]+1)*+ar[2]+parseFloat(or.css(er,rr)),sr="number"),null==nr||"number"===sr&&isNaN(nr))return;if("number"===sr&&!or.cssNumber[lr]&&(nr+="px"),!ur||!("set"in ur)||(nr=ur.set(er,nr))!==tr)try{cr[rr]=nr}catch(er){}}},css:function css(er,rr,nr){var ir,ar;return rr=or.camelCase(rr),ar=or.cssHooks[rr],"cssFloat"===(rr=or.cssProps[rr]||rr)&&(rr="float"),ar&&"get"in ar&&(ir=ar.get(er,!0,nr))!==tr?ir:Zr?Zr(er,rr):void 0},swap:function swap(er,tr,rr){var nr={};for(var ir in tr)nr[ir]=er.style[ir],er.style[ir]=tr[ir];for(ir in rr.call(er),tr)er.style[ir]=nr[ir]}}),or.curCSS=or.css,or.each(["height","width"],(function(er,tr){or.cssHooks[tr]={get:function get(er,rr,nr){var ir;if(rr)return 0!==er.offsetWidth?bC(er,tr,nr):(or.swap(er,Kn,(function(){ir=bC(er,tr,nr)})),ir)},set:function set(er,tr){return Gn.test(tr)?(tr=parseFloat(tr))>=0?tr+"px":void 0:tr}}})),or.support.opacity||(or.cssHooks.opacity={get:function get(er,tr){return Dn.test((tr&&er.currentStyle?er.currentStyle.filter:er.style.filter)||"")?parseFloat(RegExp.$1)/100+"":tr?"1":""},set:function set(er,tr){var rr=er.style,nr=er.currentStyle,ir=or.isNumeric(tr)?"alpha(opacity="+100*tr+")":"",ar=nr&&nr.filter||rr.filter||"";rr.zoom=1,tr>=1&&""===or.trim(ar.replace(Qn,""))&&(rr.removeAttribute("filter"),nr&&!nr.filter)||(rr.filter=Qn.test(ar)?ar.replace(Qn,ir):ar+" "+ir)}}),or((function(){or.support.reliableMarginRight||(or.cssHooks.marginRight={get:function get(er,tr){var rr;return or.swap(er,{display:"inline-block"},(function(){rr=tr?Zr(er,"margin-right","marginRight"):er.style.marginRight})),rr}})})),rr.defaultView&&rr.defaultView.getComputedStyle&&(Tn=function bA(er,tr){var rr,nr,ir;return tr=tr.replace(Hn,"-$1").toLowerCase(),(nr=er.ownerDocument.defaultView)&&(ir=nr.getComputedStyle(er,null))&&(""===(rr=ir.getPropertyValue(tr))&&!or.contains(er.ownerDocument.documentElement,er)&&(rr=or.style(er,tr))),rr}),rr.documentElement.currentStyle&&(Un=function bB(er,tr){var rr,nr,ir,or=er.currentStyle&&er.currentStyle[tr],ar=er.style;return null===or&&ar&&(ir=ar[tr])&&(or=ir),!Gn.test(or)&&Vn.test(or)&&(rr=ar.left,(nr=er.runtimeStyle&&er.runtimeStyle.left)&&(er.runtimeStyle.left=er.currentStyle.left),ar.left="fontSize"===tr?"1em":or||0,or=ar.pixelLeft+"px",ar.left=rr,nr&&(er.runtimeStyle.left=nr)),""===or?"auto":or}),Zr=Tn||Un,or.expr&&or.expr.filters&&(or.expr.filters.hidden=function(er){var tr=er.offsetWidth,rr=er.offsetHeight;return 0===tr&&0===rr||!or.support.reliableHiddenOffsets&&"none"===(er.style&&er.style.display||or.css(er,"display"))},or.expr.filters.visible=function(er){return!or.expr.filters.hidden(er)});var Yn,Jn,$n=/%20/g,Zn=/\[\]$/,ei=/\r?\n/g,ti=/#.*$/,ri=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ni=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ii=/^(?:GET|HEAD)$/,oi=/^\/\//,ai=/\?/,si=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,li=/^(?:select|textarea)/i,ui=/\s+/,di=/([?&])_=[^&]*/,hi=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,pi=or.fn.load,Ai={},fi={},gi=["*/"]+["*"];try{Yn=ir.href}catch(er){(Yn=rr.createElement("a")).href="",Yn=Yn.href}Jn=hi.exec(Yn.toLowerCase())||[],or.fn.extend({load:function load(er,rr,nr){if("string"!=typeof er&&pi)return pi.apply(this,arguments);if(!this.length)return this;var ir=er.indexOf(" ");if(ir>=0){var ar=er.slice(ir,er.length);er=er.slice(0,ir)}var sr="GET";rr&&(or.isFunction(rr)?(nr=rr,rr=tr):"object"==_typeof(rr)&&(rr=or.param(rr,or.ajaxSettings.traditional),sr="POST"));var lr=this;return or.ajax({url:er,type:sr,dataType:"html",data:rr,complete:function complete(er,tr,rr){rr=er.responseText,er.isResolved()&&(er.done((function(er){rr=er})),lr.html(ar?or("<div>").append(rr.replace(si,"")).find(ar):rr)),nr&&lr.each(nr,[rr,tr,er])}}),this},serialize:function serialize(){return or.param(this.serializeArray())},serializeArray:function serializeArray(){return this.map((function(){return this.elements?or.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||li.test(this.nodeName)||ni.test(this.type))})).map((function(er,tr){var rr=or(this).val();return null==rr?null:or.isArray(rr)?or.map(rr,(function(er,rr){return{name:tr.name,value:er.replace(ei,"\r\n")}})):{name:tr.name,value:rr.replace(ei,"\r\n")}})).get()}}),or.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(er,tr){or.fn[tr]=function(er){return this.on(tr,er)}})),or.each(["get","post"],(function(er,rr){or[rr]=function(er,nr,ir,ar){return or.isFunction(nr)&&(ar=ar||ir,ir=nr,nr=tr),or.ajax({type:rr,url:er,data:nr,success:ir,dataType:ar})}})),or.extend({getScript:function getScript(er,rr){return or.get(er,tr,rr,"script")},getJSON:function getJSON(er,tr,rr){return or.get(er,tr,rr,"json")},ajaxSetup:function ajaxSetup(er,tr){return tr?b_(er,or.ajaxSettings):(tr=er,er=or.ajaxSettings),b_(er,tr),er},ajaxSettings:{url:Yn,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Jn[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":gi},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":er.String,"text html":!0,"text json":or.parseJSON,"text xml":or.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(Ai),ajaxTransport:bZ(fi),ajax:function ajax(er,rr){function w(er,rr,ar,cr){if(2!==yr){yr=2,lr&&clearTimeout(lr),sr=tr,ir=cr||"",br.readyState=er>0?4:0;var dr,_r,vr,wr,Sr,xr=rr,kr=ar?function cb(er,rr,nr){var ir,or,ar,sr,lr=er.contents,cr=er.dataTypes,ur=er.responseFields;for(or in ur)or in nr&&(rr[ur[or]]=nr[or]);for(;"*"===cr[0];)cr.shift(),ir===tr&&(ir=er.mimeType||rr.getResponseHeader("content-type"));if(ir)for(or in lr)if(lr[or]&&lr[or].test(ir)){cr.unshift(or);break}if(cr[0]in nr)ar=cr[0];else{for(or in nr){if(!cr[0]||er.converters[or+" "+cr[0]]){ar=or;break}sr||(sr=or)}ar=ar||sr}if(ar)return ar!==cr[0]&&cr.unshift(ar),nr[ar]}(hr,br,ar):tr;if(er>=200&&er<300||304===er)if(hr.ifModified&&((wr=br.getResponseHeader("Last-Modified"))&&(or.lastModified[nr]=wr),(Sr=br.getResponseHeader("Etag"))&&(or.etag[nr]=Sr)),304===er)xr="notmodified",dr=!0;else try{_r=function cc(er,rr){er.dataFilter&&(rr=er.dataFilter(rr,er.dataType));var nr,ir,ar,sr,lr,cr,ur,dr,hr=er.dataTypes,pr={},Ar=hr.length,fr=hr[0];for(nr=1;nr<Ar;nr++){if(1===nr)for(ir in er.converters)"string"==typeof ir&&(pr[ir.toLowerCase()]=er.converters[ir]);if(sr=fr,"*"===(fr=hr[nr]))fr=sr;else if("*"!==sr&&sr!==fr){if(!(cr=pr[lr=sr+" "+fr]||pr["* "+fr]))for(ur in dr=tr,pr)if(((ar=ur.split(" "))[0]===sr||"*"===ar[0])&&(dr=pr[ar[1]+" "+fr])){!0===(ur=pr[ur])?cr=dr:!0===dr&&(cr=ur);break}!cr&&!dr&&or.error("No conversion from "+lr.replace(" "," to ")),!0!==cr&&(rr=cr?cr(rr):dr(ur(rr)))}}return rr}(hr,kr),xr="success",dr=!0}catch(er){xr="parsererror",vr=er}else vr=xr,xr&&!er||(xr="error",er<0&&(er=0));br.status=er,br.statusText=""+(rr||xr),dr?fr.resolveWith(pr,[_r,xr,br]):fr.rejectWith(pr,[br,xr,vr]),br.statusCode(mr),mr=tr,ur&&Ar.trigger("ajax"+(dr?"Success":"Error"),[br,hr,dr?_r:vr]),gr.fireWith(pr,[br,xr]),ur&&(Ar.trigger("ajaxComplete",[br,hr]),--or.active||or.event.trigger("ajaxStop"))}}"object"==_typeof(er)&&(rr=er,er=tr),rr=rr||{};var nr,ir,ar,sr,lr,cr,ur,dr,hr=or.ajaxSetup({},rr),pr=hr.context||hr,Ar=pr!==hr&&(pr.nodeType||pr instanceof or)?or(pr):or.event,fr=or.Deferred(),gr=or.Callbacks("once memory"),mr=hr.statusCode||{},_r={},vr={},yr=0,br={readyState:0,setRequestHeader:function setRequestHeader(er,tr){if(!yr){var rr=er.toLowerCase();er=vr[rr]=vr[rr]||er,_r[er]=tr}return this},getAllResponseHeaders:function getAllResponseHeaders(){return 2===yr?ir:null},getResponseHeader:function getResponseHeader(er){var rr;if(2===yr){if(!ar)for(ar={};rr=ri.exec(ir);)ar[rr[1].toLowerCase()]=rr[2];rr=ar[er.toLowerCase()]}return rr===tr?null:rr},overrideMimeType:function overrideMimeType(er){return yr||(hr.mimeType=er),this},abort:function abort(er){return er=er||"abort",sr&&sr.abort(er),w(0,er),this}};if(fr.promise(br),br.success=br.done,br.error=br.fail,br.complete=gr.add,br.statusCode=function(er){var tr;if(er)if(yr<2)for(tr in er)mr[tr]=[mr[tr],er[tr]];else tr=er[br.status],br.then(tr,tr);return this},hr.url=((er||hr.url)+"").replace(ti,"").replace(oi,Jn[1]+"//"),hr.dataTypes=or.trim(hr.dataType||"*").toLowerCase().split(ui),null==hr.crossDomain&&(cr=hi.exec(hr.url.toLowerCase()),hr.crossDomain=!(!cr||cr[1]==Jn[1]&&cr[2]==Jn[2]&&(cr[3]||("http:"===cr[1]?80:443))==(Jn[3]||("http:"===Jn[1]?80:443)))),hr.data&&hr.processData&&"string"!=typeof hr.data&&(hr.data=or.param(hr.data,hr.traditional)),b$(Ai,hr,rr,br),2===yr)return!1;if(ur=hr.global,hr.type=hr.type.toUpperCase(),hr.hasContent=!ii.test(hr.type),ur&&0==or.active++&&or.event.trigger("ajaxStart"),!hr.hasContent&&(hr.data&&(hr.url+=(ai.test(hr.url)?"&":"?")+hr.data,delete hr.data),nr=hr.url,!1===hr.cache)){var wr=or.now(),Sr=hr.url.replace(di,"$1_="+wr);hr.url=Sr+(Sr===hr.url?(ai.test(hr.url)?"&":"?")+"_="+wr:"")}for(dr in(hr.data&&hr.hasContent&&!1!==hr.contentType||rr.contentType)&&br.setRequestHeader("Content-Type",hr.contentType),hr.ifModified&&(nr=nr||hr.url,or.lastModified[nr]&&br.setRequestHeader("If-Modified-Since",or.lastModified[nr]),or.etag[nr]&&br.setRequestHeader("If-None-Match",or.etag[nr])),br.setRequestHeader("Accept",hr.dataTypes[0]&&hr.accepts[hr.dataTypes[0]]?hr.accepts[hr.dataTypes[0]]+("*"!==hr.dataTypes[0]?", "+gi+"; q=0.01":""):hr.accepts["*"]),hr.headers)br.setRequestHeader(dr,hr.headers[dr]);if(hr.beforeSend&&(!1===hr.beforeSend.call(pr,br,hr)||2===yr))return br.abort(),!1;for(dr in{success:1,error:1,complete:1})br[dr](hr[dr]);if(sr=b$(fi,hr,rr,br)){br.readyState=1,ur&&Ar.trigger("ajaxSend",[br,hr]),hr.async&&hr.timeout>0&&(lr=setTimeout((function(){br.abort("timeout")}),hr.timeout));try{yr=1,sr.send(_r,w)}catch(er){if(!(yr<2))throw er;w(-1,er)}}else w(-1,"No Transport");return br},param:function param(er,rr){var nr=[],ir=function e(er,tr){tr=or.isFunction(tr)?tr():tr,nr[nr.length]=encodeURIComponent(er)+"="+encodeURIComponent(tr)};if(rr===tr&&(rr=or.ajaxSettings.traditional),or.isArray(er)||er.jquery&&!or.isPlainObject(er))or.each(er,(function(){ir(this.name,this.value)}));else for(var ar in er)ca(ar,er[ar],rr,ir);return nr.join("&").replace($n,"+")}}),or.extend({active:0,lastModified:{},etag:{}});var mi=or.now(),_i=/(\=)\?(&|$)|\?\?/i;or.ajaxSetup({jsonp:"callback",jsonpCallback:function jsonpCallback(){return or.expando+"_"+mi++}}),or.ajaxPrefilter("json jsonp",(function(tr,rr,nr){var ir="application/x-www-form-urlencoded"===tr.contentType&&"string"==typeof tr.data;if("jsonp"===tr.dataTypes[0]||!1!==tr.jsonp&&(_i.test(tr.url)||ir&&_i.test(tr.data))){var ar,sr=tr.jsonpCallback=or.isFunction(tr.jsonpCallback)?tr.jsonpCallback():tr.jsonpCallback,lr=er[sr],cr=tr.url,ur=tr.data,dr="$1"+sr+"$2";return!1!==tr.jsonp&&(cr=cr.replace(_i,dr),tr.url===cr&&(ir&&(ur=ur.replace(_i,dr)),tr.data===ur&&(cr+=(/\?/.test(cr)?"&":"?")+tr.jsonp+"="+sr))),tr.url=cr,tr.data=ur,er[sr]=function(er){ar=[er]},nr.always((function(){er[sr]=lr,ar&&or.isFunction(lr)&&er[sr](ar[0])})),tr.converters["script json"]=function(){return ar||or.error(sr+" was not called"),ar[0]},tr.dataTypes[0]="json","script"}})),or.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function textScript(er){return or.globalEval(er),er}}}),or.ajaxPrefilter("script",(function(er){er.cache===tr&&(er.cache=!1),er.crossDomain&&(er.type="GET",er.global=!1)})),or.ajaxTransport("script",(function(er){if(er.crossDomain){var nr,ir=rr.head||rr.getElementsByTagName("head")[0]||rr.documentElement;return{send:function send(or,ar){(nr=rr.createElement("script")).async="async",er.scriptCharset&&(nr.charset=er.scriptCharset),nr.src=er.url,nr.onload=nr.onreadystatechange=function(er,rr){(rr||!nr.readyState||/loaded|complete/.test(nr.readyState))&&(nr.onload=nr.onreadystatechange=null,ir&&nr.parentNode&&ir.removeChild(nr),nr=tr,rr||ar(200,"success"))},ir.insertBefore(nr,ir.firstChild)},abort:function abort(){nr&&nr.onload(0,1)}}}}));var vi,yi=!!er.ActiveXObject&&function(){for(var er in vi)vi[er](0,1)},wi=0;or.ajaxSettings.xhr=er.ActiveXObject?function(){return!this.isLocal&&ci()||function cj(){try{return new er.ActiveXObject("Microsoft.XMLHTTP")}catch(er){}}()}:ci,function(er){or.extend(or.support,{ajax:!!er,cors:!!er&&"withCredentials"in er})}(or.ajaxSettings.xhr()),or.support.ajax&&or.ajaxTransport((function(rr){var nr;if(!rr.crossDomain||or.support.cors)return{send:function send(ir,ar){var sr,lr,cr=rr.xhr();if(rr.username?cr.open(rr.type,rr.url,rr.async,rr.username,rr.password):cr.open(rr.type,rr.url,rr.async),rr.xhrFields)for(lr in rr.xhrFields)cr[lr]=rr.xhrFields[lr];rr.mimeType&&cr.overrideMimeType&&cr.overrideMimeType(rr.mimeType),!rr.crossDomain&&!ir["X-Requested-With"]&&(ir["X-Requested-With"]="XMLHttpRequest");try{for(lr in ir)cr.setRequestHeader(lr,ir[lr])}catch(er){}cr.send(rr.hasContent&&rr.data||null),nr=function d(er,ir){var lr,ur,dr,hr,pr;try{if(nr&&(ir||4===cr.readyState))if(nr=tr,sr&&(cr.onreadystatechange=or.noop,yi&&delete vi[sr]),ir)4!==cr.readyState&&cr.abort();else{lr=cr.status,dr=cr.getAllResponseHeaders(),hr={},(pr=cr.responseXML)&&pr.documentElement&&(hr.xml=pr),hr.text=cr.responseText;try{ur=cr.statusText}catch(er){ur=""}lr||!rr.isLocal||rr.crossDomain?1223===lr&&(lr=204):lr=hr.text?200:404}}catch(er){ir||ar(-1,er)}hr&&ar(lr,ur,hr,dr)},rr.async&&4!==cr.readyState?(sr=++wi,yi&&(vi||(vi={},or(er).unload(yi)),vi[sr]=nr),cr.onreadystatechange=nr):nr()},abort:function abort(){nr&&nr(0,1)}}}));var Si,xi,ki,Ci,Bi={},Ei=/^(?:toggle|show|hide)$/,Ni=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Li=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];or.fn.extend({show:function show(er,tr,rr){var nr,ir;if(er||0===er)return this.animate(cu("show",3),er,tr,rr);for(var ar=0,sr=this.length;ar<sr;ar++)(nr=this[ar]).style&&(ir=nr.style.display,!or._data(nr,"olddisplay")&&"none"===ir&&(ir=nr.style.display=""),""===ir&&"none"===or.css(nr,"display")&&or._data(nr,"olddisplay",cv(nr.nodeName)));for(ar=0;ar<sr;ar++)(nr=this[ar]).style&&(""!==(ir=nr.style.display)&&"none"!==ir||(nr.style.display=or._data(nr,"olddisplay")||""));return this},hide:function hide(er,tr,rr){if(er||0===er)return this.animate(cu("hide",3),er,tr,rr);for(var nr,ir,ar=0,sr=this.length;ar<sr;ar++)(nr=this[ar]).style&&("none"!==(ir=or.css(nr,"display"))&&!or._data(nr,"olddisplay")&&or._data(nr,"olddisplay",ir));for(ar=0;ar<sr;ar++)this[ar].style&&(this[ar].style.display="none");return this},_toggle:or.fn.toggle,toggle:function toggle(er,tr,rr){var nr="boolean"==typeof er;return or.isFunction(er)&&or.isFunction(tr)?this._toggle.apply(this,arguments):null==er||nr?this.each((function(){var tr=nr?er:or(this).is(":hidden");or(this)[tr?"show":"hide"]()})):this.animate(cu("toggle",3),er,tr,rr),this},fadeTo:function fadeTo(er,tr,rr,nr){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:tr},er,rr,nr)},animate:function animate(er,tr,rr,nr){function g(){!1===ir.queue&&or._mark(this);var tr,rr,nr,ar,sr,lr,cr,ur,dr,hr=or.extend({},ir),pr=1===this.nodeType,Ar=pr&&or(this).is(":hidden");for(nr in hr.animatedProperties={},er){if(nr!==(tr=or.camelCase(nr))&&(er[tr]=er[nr],delete er[nr]),rr=er[tr],or.isArray(rr)?(hr.animatedProperties[tr]=rr[1],rr=er[tr]=rr[0]):hr.animatedProperties[tr]=hr.specialEasing&&hr.specialEasing[tr]||hr.easing||"swing","hide"===rr&&Ar||"show"===rr&&!Ar)return hr.complete.call(this);pr&&("height"===tr||"width"===tr)&&(hr.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===or.css(this,"display")&&"none"===or.css(this,"float")&&(or.support.inlineBlockNeedsLayout&&"inline"!==cv(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}for(nr in null!=hr.overflow&&(this.style.overflow="hidden"),er)ar=new or.fx(this,hr,nr),rr=er[nr],Ei.test(rr)?(dr=or._data(this,"toggle"+nr)||("toggle"===rr?Ar?"show":"hide":0))?(or._data(this,"toggle"+nr,"show"===dr?"hide":"show"),ar[dr]()):ar[rr]():(sr=Ni.exec(rr),lr=ar.cur(),sr?(cr=parseFloat(sr[2]),"px"!==(ur=sr[3]||(or.cssNumber[nr]?"":"px"))&&(or.style(this,nr,(cr||1)+ur),lr=(cr||1)/ar.cur()*lr,or.style(this,nr,lr+ur)),sr[1]&&(cr=("-="===sr[1]?-1:1)*cr+lr),ar.custom(lr,cr,ur)):ar.custom(lr,rr,""));return!0}var ir=or.speed(tr,rr,nr);return or.isEmptyObject(er)?this.each(ir.complete,[!1]):(er=or.extend({},er),!1===ir.queue?this.each(g):this.queue(ir.queue,g))},stop:function stop(er,rr,nr){return"string"!=typeof er&&(nr=rr,rr=er,er=tr),rr&&!1!==er&&this.queue(er||"fx",[]),this.each((function(){function h(er,tr,rr){var ir=tr[rr];or.removeData(er,rr,!0),ir.stop(nr)}var tr,rr=!1,ir=or.timers,ar=or._data(this);if(nr||or._unmark(!0,this),null==er)for(tr in ar)ar[tr]&&ar[tr].stop&&tr.indexOf(".run")===tr.length-4&&h(this,ar,tr);else ar[tr=er+".run"]&&ar[tr].stop&&h(this,ar,tr);for(tr=ir.length;tr--;)ir[tr].elem===this&&(null==er||ir[tr].queue===er)&&(nr?ir[tr](!0):ir[tr].saveState(),rr=!0,ir.splice(tr,1));(!nr||!rr)&&or.dequeue(this,er)}))}}),or.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(er,tr){or.fn[er]=function(er,rr,nr){return this.animate(tr,er,rr,nr)}})),or.extend({speed:function speed(er,tr,rr){var nr=er&&"object"==_typeof(er)?or.extend({},er):{complete:rr||!rr&&tr||or.isFunction(er)&&er,duration:er,easing:rr&&tr||tr&&!or.isFunction(tr)&&tr};return nr.duration=or.fx.off?0:"number"==typeof nr.duration?nr.duration:nr.duration in or.fx.speeds?or.fx.speeds[nr.duration]:or.fx.speeds._default,null!=nr.queue&&!0!==nr.queue||(nr.queue="fx"),nr.old=nr.complete,nr.complete=function(er){or.isFunction(nr.old)&&nr.old.call(this),nr.queue?or.dequeue(this,nr.queue):!1!==er&&or._unmark(this)},nr},easing:{linear:function linear(er,tr,rr,nr){return rr+nr*er},swing:function swing(er,tr,rr,nr){return(-Math.cos(er*Math.PI)/2+.5)*nr+rr}},timers:[],fx:function fx(er,tr,rr){this.options=tr,this.elem=er,this.prop=rr,tr.orig=tr.orig||{}}}),or.fx.prototype={update:function update(){this.options.step&&this.options.step.call(this.elem,this.now,this),(or.fx.step[this.prop]||or.fx.step._default)(this)},cur:function cur(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var er,tr=or.css(this.elem,this.prop);return isNaN(er=parseFloat(tr))?tr&&"auto"!==tr?tr:0:er},custom:function custom(er,rr,nr){function h(er){return ir.step(er)}var ir=this,ar=or.fx;this.startTime=Ci||cs(),this.end=rr,this.now=this.start=er,this.pos=this.state=0,this.unit=nr||this.unit||(or.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){ir.options.hide&&or._data(ir.elem,"fxshow"+ir.prop)===tr&&or._data(ir.elem,"fxshow"+ir.prop,ir.start)},h()&&or.timers.push(h)&&!ki&&(ki=setInterval(ar.tick,ar.interval))},show:function show(){var er=or._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=er||or.style(this.elem,this.prop),this.options.show=!0,er!==tr?this.custom(this.cur(),er):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),or(this.elem).show()},hide:function hide(){this.options.orig[this.prop]=or._data(this.elem,"fxshow"+this.prop)||or.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function step(er){var tr,rr,nr,ir=Ci||cs(),ar=!0,sr=this.elem,lr=this.options;if(er||ir>=lr.duration+this.startTime){for(tr in this.now=this.end,this.pos=this.state=1,this.update(),lr.animatedProperties[this.prop]=!0,lr.animatedProperties)!0!==lr.animatedProperties[tr]&&(ar=!1);if(ar){if(null!=lr.overflow&&!or.support.shrinkWrapBlocks&&or.each(["","X","Y"],(function(er,tr){sr.style["overflow"+tr]=lr.overflow[er]})),lr.hide&&or(sr).hide(),lr.hide||lr.show)for(tr in lr.animatedProperties)or.style(sr,tr,lr.orig[tr]),or.removeData(sr,"fxshow"+tr,!0),or.removeData(sr,"toggle"+tr,!0);(nr=lr.complete)&&(lr.complete=!1,nr.call(sr))}return!1}return lr.duration==1/0?this.now=ir:(rr=ir-this.startTime,this.state=rr/lr.duration,this.pos=or.easing[lr.animatedProperties[this.prop]](this.state,rr,0,1,lr.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},or.extend(or.fx,{tick:function tick(){for(var er,tr=or.timers,rr=0;rr<tr.length;rr++)!(er=tr[rr])()&&tr[rr]===er&&tr.splice(rr--,1);tr.length||or.fx.stop()},interval:13,stop:function stop(){clearInterval(ki),ki=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function opacity(er){or.style(er.elem,"opacity",er.now)},_default:function _default(er){er.elem.style&&null!=er.elem.style[er.prop]?er.elem.style[er.prop]=er.now+er.unit:er.elem[er.prop]=er.now}}}),or.each(["width","height"],(function(er,tr){or.fx.step[tr]=function(er){or.style(er.elem,tr,Math.max(0,er.now)+er.unit)}})),or.expr&&or.expr.filters&&(or.expr.filters.animated=function(er){return or.grep(or.timers,(function(tr){return er===tr.elem})).length});var Ti=/^t(?:able|d|h)$/i,Pi=/^(?:body|html)$/i;"getBoundingClientRect"in rr.documentElement?or.fn.offset=function(er){var tr,rr=this[0];if(er)return this.each((function(tr){or.offset.setOffset(this,er,tr)}));if(!rr||!rr.ownerDocument)return null;if(rr===rr.ownerDocument.body)return or.offset.bodyOffset(rr);try{tr=rr.getBoundingClientRect()}catch(er){}var nr=rr.ownerDocument,ir=nr.documentElement;if(!tr||!or.contains(ir,rr))return tr?{top:tr.top,left:tr.left}:{top:0,left:0};var ar=nr.body,sr=cy(nr),lr=ir.clientTop||ar.clientTop||0,cr=ir.clientLeft||ar.clientLeft||0,ur=sr.pageYOffset||or.support.boxModel&&ir.scrollTop||ar.scrollTop,dr=sr.pageXOffset||or.support.boxModel&&ir.scrollLeft||ar.scrollLeft;return{top:tr.top+ur-lr,left:tr.left+dr-cr}}:or.fn.offset=function(er){var tr=this[0];if(er)return this.each((function(tr){or.offset.setOffset(this,er,tr)}));if(!tr||!tr.ownerDocument)return null;if(tr===tr.ownerDocument.body)return or.offset.bodyOffset(tr);for(var rr,nr=tr.offsetParent,ir=tr.ownerDocument,ar=ir.documentElement,sr=ir.body,lr=ir.defaultView,cr=lr?lr.getComputedStyle(tr,null):tr.currentStyle,ur=tr.offsetTop,dr=tr.offsetLeft;(tr=tr.parentNode)&&tr!==sr&&tr!==ar&&(!or.support.fixedPosition||"fixed"!==cr.position);)rr=lr?lr.getComputedStyle(tr,null):tr.currentStyle,ur-=tr.scrollTop,dr-=tr.scrollLeft,tr===nr&&(ur+=tr.offsetTop,dr+=tr.offsetLeft,or.support.doesNotAddBorder&&(!or.support.doesAddBorderForTableAndCells||!Ti.test(tr.nodeName))&&(ur+=parseFloat(rr.borderTopWidth)||0,dr+=parseFloat(rr.borderLeftWidth)||0),nr=tr.offsetParent),or.support.subtractsBorderForOverflowNotVisible&&"visible"!==rr.overflow&&(ur+=parseFloat(rr.borderTopWidth)||0,dr+=parseFloat(rr.borderLeftWidth)||0),cr=rr;return"relative"!==cr.position&&"static"!==cr.position||(ur+=sr.offsetTop,dr+=sr.offsetLeft),or.support.fixedPosition&&"fixed"===cr.position&&(ur+=Math.max(ar.scrollTop,sr.scrollTop),dr+=Math.max(ar.scrollLeft,sr.scrollLeft)),{top:ur,left:dr}},or.offset={bodyOffset:function bodyOffset(er){var tr=er.offsetTop,rr=er.offsetLeft;return or.support.doesNotIncludeMarginInBodyOffset&&(tr+=parseFloat(or.css(er,"marginTop"))||0,rr+=parseFloat(or.css(er,"marginLeft"))||0),{top:tr,left:rr}},setOffset:function setOffset(er,tr,rr){var nr=or.css(er,"position");"static"===nr&&(er.style.position="relative");var ir,ar,sr=or(er),lr=sr.offset(),cr=or.css(er,"top"),ur=or.css(er,"left"),dr={},hr={};("absolute"===nr||"fixed"===nr)&&or.inArray("auto",[cr,ur])>-1?(ir=(hr=sr.position()).top,ar=hr.left):(ir=parseFloat(cr)||0,ar=parseFloat(ur)||0),or.isFunction(tr)&&(tr=tr.call(er,rr,lr)),null!=tr.top&&(dr.top=tr.top-lr.top+ir),null!=tr.left&&(dr.left=tr.left-lr.left+ar),"using"in tr?tr.using.call(er,dr):sr.css(dr)}},or.fn.extend({position:function position(){if(!this[0])return null;var er=this[0],tr=this.offsetParent(),rr=this.offset(),nr=Pi.test(tr[0].nodeName)?{top:0,left:0}:tr.offset();return rr.top-=parseFloat(or.css(er,"marginTop"))||0,rr.left-=parseFloat(or.css(er,"marginLeft"))||0,nr.top+=parseFloat(or.css(tr[0],"borderTopWidth"))||0,nr.left+=parseFloat(or.css(tr[0],"borderLeftWidth"))||0,{top:rr.top-nr.top,left:rr.left-nr.left}},offsetParent:function offsetParent(){return this.map((function(){for(var er=this.offsetParent||rr.body;er&&!Pi.test(er.nodeName)&&"static"===or.css(er,"position");)er=er.offsetParent;return er}))}}),or.each(["Left","Top"],(function(er,rr){var nr="scroll"+rr;or.fn[nr]=function(rr){var ir,ar;return rr===tr?(ir=this[0])?(ar=cy(ir))?"pageXOffset"in ar?ar[er?"pageYOffset":"pageXOffset"]:or.support.boxModel&&ar.document.documentElement[nr]||ar.document.body[nr]:ir[nr]:null:this.each((function(){(ar=cy(this))?ar.scrollTo(er?or(ar).scrollLeft():rr,er?rr:or(ar).scrollTop()):this[nr]=rr}))}})),or.each(["Height","Width"],(function(er,rr){var nr=rr.toLowerCase();or.fn["inner"+rr]=function(){var er=this[0];return er?er.style?parseFloat(or.css(er,nr,"padding")):this[nr]():null},or.fn["outer"+rr]=function(er){var tr=this[0];return tr?tr.style?parseFloat(or.css(tr,nr,er?"margin":"border")):this[nr]():null},or.fn[nr]=function(er){var ir=this[0];if(!ir)return null==er?null:this;if(or.isFunction(er))return this.each((function(tr){var rr=or(this);rr[nr](er.call(this,tr,rr[nr]()))}));if(or.isWindow(ir)){var ar=ir.document.documentElement["client"+rr],sr=ir.document.body;return"CSS1Compat"===ir.document.compatMode&&ar||sr&&sr["client"+rr]||ar}if(9===ir.nodeType)return Math.max(ir.documentElement["client"+rr],ir.body["scroll"+rr],ir.documentElement["scroll"+rr],ir.body["offset"+rr],ir.documentElement["offset"+rr]);if(er===tr){var lr=or.css(ir,nr),cr=parseFloat(lr);return or.isNumeric(cr)?cr:lr}return this.css(nr,"string"==typeof er?er:er+"px")}})),er.jQuery=er.$=or,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],(function(){return or}))}(window);var Ia,Ra,Ma,Oa={},Qa=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Da=sharedKey("IE_PROTO"),ja=Object.prototype,Ha=Qa?Object.getPrototypeOf:function(er){return er=toObject(er),has(er,Da)?er[Da]:"function"==typeof er.constructor&&er instanceof er.constructor?er.constructor.prototype:er instanceof Object?ja:null},Ga=wellKnownSymbol("iterator"),Va=!1;[].keys&&("next"in(Ma=[].keys())?(Ra=Ha(Ha(Ma)))!==Object.prototype&&(Ia=Ra):Va=!0),null==Ia&&(Ia={}),has(Ia,Ga)||_r(Ia,Ga,(function(){return this}));var za={IteratorPrototype:Ia,BUGGY_SAFARI_ITERATORS:Va},Ka=mr.f,qa=wellKnownSymbol("toStringTag"),setToStringTag=function(er,tr,rr){er&&!has(er=rr?er:er.prototype,qa)&&Ka(er,qa,{configurable:!0,value:tr})},Wa=za.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(er,tr,rr){var nr=tr+" Iterator";return er.prototype=Ci(Wa,{next:createPropertyDescriptor(1,rr)}),setToStringTag(er,nr,!1),Oa[nr]=returnThis$1,er},Xa=za.IteratorPrototype,Ya=za.BUGGY_SAFARI_ITERATORS,Ja=wellKnownSymbol("iterator"),$a="keys",Za="values",es="entries",returnThis$2=function(){return this},defineIterator=function(er,tr,rr,nr,ir,or,ar){createIteratorConstructor(rr,tr,nr);var sr,lr,cr,getIterationMethod=function(er){if(er===ir&&Ar)return Ar;if(!Ya&&er in hr)return hr[er];switch(er){case $a:return function keys(){return new rr(this,er)};case Za:return function values(){return new rr(this,er)};case es:return function entries(){return new rr(this,er)}}return function(){return new rr(this)}},ur=tr+" Iterator",dr=!1,hr=er.prototype,pr=hr[Ja]||hr["@@iterator"]||ir&&hr[ir],Ar=!Ya&&pr||getIterationMethod(ir),fr="Array"==tr&&hr.entries||pr;if(fr&&(sr=Ha(fr.call(new er)),Xa!==Object.prototype&&sr.next&&(Ha(sr)!==Xa&&(Qo?Qo(sr,Xa):"function"!=typeof sr[Ja]&&_r(sr,Ja,returnThis$2)),setToStringTag(sr,ur,!0))),ir==Za&&pr&&pr.name!==Za&&(dr=!0,Ar=function values(){return pr.call(this)}),hr[Ja]!==Ar&&_r(hr,Ja,Ar),Oa[tr]=Ar,ir)if(lr={values:getIterationMethod(Za),keys:or?Ar:getIterationMethod($a),entries:getIterationMethod(es)},ar)for(cr in lr)(Ya||dr||!(cr in hr))&&Hr(hr,cr,lr[cr]);else _export({target:tr,proto:!0,forced:Ya||dr},lr);return lr},ts="Array Iterator",rs=jr.set,ns=jr.getterFor(ts),os=defineIterator(Array,"Array",(function(er,tr){rs(this,{type:ts,target:toIndexedObject(er),index:0,kind:tr})}),(function(){var er=ns(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");Oa.Arguments=Oa.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var as=[].slice,ss={},construct=function(er,tr,rr){if(!(tr in ss)){for(var nr=[],ir=0;ir<tr;ir++)nr[ir]="a["+ir+"]";ss[tr]=Function("C,a","return new C("+nr.join(",")+")")}return ss[tr](er,rr)},ls=Function.bind||function bind(er){var tr=aFunction$1(this),rr=as.call(arguments,1),nr=function bound(){var ir=rr.concat(as.call(arguments));return this instanceof nr?construct(tr,ir.length,ir):tr.apply(er,ir)};return isObject(tr.prototype)&&(nr.prototype=tr.prototype),nr};_export({target:"Function",proto:!0},{bind:ls});var us="".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},ds=1..toFixed,hs=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)},ps=ds&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!fails((function(){ds.call({})}));_export({target:"Number",proto:!0,forced:ps},{toFixed:function toFixed(er){var tr,rr,nr,ir,or=function(er){if("number"!=typeof er&&"Number"!=classofRaw(er))throw TypeError("Incorrect invocation");return+er}(this),ar=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=hs(nr/1e7)},divide=function(er){for(var tr=6,rr=0;--tr>=0;)rr+=sr[tr],sr[tr]=hs(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+us.call("0",7-rr.length)+rr}return tr};if(ar<0||ar>20)throw RangeError("Incorrect fraction digits");if(or!=or)return"NaN";if(or<=-1e21||or>=1e21)return String(or);if(or<0&&(lr="-",or=-or),or>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}(or*pow(2,69,1))-69)<0?or*pow(2,-tr,1):or/pow(2,tr,1),rr*=4503599627370496,(tr=52-tr)>0){for(multiply(0,rr),nr=ar;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()+us.call("0",ar);return cr=ar>0?lr+((ir=cr.length)<=ar?"0."+us.call("0",ar-ir)+cr:cr.slice(0,ir-ar)+"."+cr.slice(ir-ar)):lr+cr}});var As={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},fs=wellKnownSymbol("iterator"),gs=wellKnownSymbol("toStringTag"),ms=os.values;for(var _s in As){var vs=rr[_s],ys=vs&&vs.prototype;if(ys){if(ys[fs]!==ms)try{_r(ys,fs,ms)}catch(er){ys[fs]=ms}if(ys[gs]||_r(ys,gs,_s),As[_s])for(var bs in os)if(ys[bs]!==os[bs])try{_r(ys,bs,os[bs])}catch(er){ys[bs]=os[bs]}}}
|
||
/*!
|
||
* jQuery UI 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI
|
||
*/!function(er,tr){function d(tr){return!er(tr).parents().andSelf().filter((function(){return"hidden"===er.curCSS(this,"visibility")||er.expr.filters.hidden(this)})).length}function c(tr,rr){var nr=tr.nodeName.toLowerCase();if("area"===nr){var ir,or=tr.parentNode,ar=or.name;return!(!tr.href||!ar||"map"!==or.nodeName.toLowerCase())&&(!!(ir=er("img[usemap=#"+ar+"]")[0])&&d(ir))}return(/input|select|textarea|button|object/.test(nr)?!tr.disabled:"a"==nr&&tr.href||rr)&&d(tr)}er.ui=er.ui||{},er.ui.version||(er.extend(er.ui,{version:"1.8.17",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),er.fn.extend({propAttr:er.fn.prop||er.fn.attr,_focus:er.fn.focus,focus:function focus(tr,rr){return"number"==typeof tr?this.each((function(){var nr=this;setTimeout((function(){er(nr).focus(),rr&&rr.call(nr)}),tr)})):this._focus.apply(this,arguments)},scrollParent:function scrollParent(){var tr;return tr=er.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(er.curCSS(this,"position",1))&&/(auto|scroll)/.test(er.curCSS(this,"overflow",1)+er.curCSS(this,"overflow-y",1)+er.curCSS(this,"overflow-x",1))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(er.curCSS(this,"overflow",1)+er.curCSS(this,"overflow-y",1)+er.curCSS(this,"overflow-x",1))})).eq(0),/fixed/.test(this.css("position"))||!tr.length?er(document):tr},zIndex:function zIndex(rr){if(rr!==tr)return this.css("zIndex",rr);if(this.length)for(var nr,ir,or=er(this[0]);or.length&&or[0]!==document;){if(("absolute"===(nr=or.css("position"))||"relative"===nr||"fixed"===nr)&&(ir=parseInt(or.css("zIndex"),10),!isNaN(ir)&&0!==ir))return ir;or=or.parent()}return 0},disableSelection:function disableSelection(){return this.bind((er.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(er){er.preventDefault()}))},enableSelection:function enableSelection(){return this.unbind(".ui-disableSelection")}}),er.each(["Width","Height"],(function(rr,nr){function h(tr,rr,nr,or){return er.each(ir,(function(){rr-=parseFloat(er.curCSS(tr,"padding"+this,!0))||0,nr&&(rr-=parseFloat(er.curCSS(tr,"border"+this+"Width",!0))||0),or&&(rr-=parseFloat(er.curCSS(tr,"margin"+this,!0))||0)})),rr}var ir="Width"===nr?["Left","Right"]:["Top","Bottom"],or=nr.toLowerCase(),ar={innerWidth:er.fn.innerWidth,innerHeight:er.fn.innerHeight,outerWidth:er.fn.outerWidth,outerHeight:er.fn.outerHeight};er.fn["inner"+nr]=function(rr){return rr===tr?ar["inner"+nr].call(this):this.each((function(){er(this).css(or,h(this,rr)+"px")}))},er.fn["outer"+nr]=function(tr,rr){return"number"!=typeof tr?ar["outer"+nr].call(this,tr):this.each((function(){er(this).css(or,h(this,tr,!0,rr)+"px")}))}})),er.extend(er.expr[":"],{data:function data(tr,rr,nr){return!!er.data(tr,nr[3])},focusable:function focusable(tr){return c(tr,!isNaN(er.attr(tr,"tabindex")))},tabbable:function tabbable(tr){var rr=er.attr(tr,"tabindex"),nr=isNaN(rr);return(nr||rr>=0)&&c(tr,!nr)}}),er((function(){var tr=document.body,rr=tr.appendChild(rr=document.createElement("div"));er.extend(rr.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),er.support.minHeight=100===rr.offsetHeight,er.support.selectstart="onselectstart"in rr,tr.removeChild(rr).style.display="none"})),er.extend(er.ui,{plugin:{add:function add(tr,rr,nr){var ir=er.ui[tr].prototype;for(var or in nr)ir.plugins[or]=ir.plugins[or]||[],ir.plugins[or].push([rr,nr[or]])},call:function call(er,tr,rr){var nr=er.plugins[tr];if(nr&&er.element[0].parentNode)for(var ir=0;ir<nr.length;ir++)er.options[nr[ir][0]]&&nr[ir][1].apply(er.element,rr)}},contains:function contains(er,tr){return document.compareDocumentPosition?16&er.compareDocumentPosition(tr):er!==tr&&er.contains(tr)},hasScroll:function hasScroll(tr,rr){if("hidden"===er(tr).css("overflow"))return!1;var nr,ir=rr&&"left"===rr?"scrollLeft":"scrollTop";return tr[ir]>0||(tr[ir]=1,nr=tr[ir]>0,tr[ir]=0,nr)},isOverAxis:function isOverAxis(er,tr,rr){return er>tr&&er<tr+rr},isOver:function isOver(tr,rr,nr,ir,or,ar){return er.ui.isOverAxis(tr,nr,or)&&er.ui.isOverAxis(rr,ir,ar)}}))}(jQuery),
|
||
/*!
|
||
* jQuery UI Widget 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI/Widget
|
||
*/
|
||
function(er,tr){if(er.cleanData){var rr=er.cleanData;er.cleanData=function(tr){for(var nr,ir=0;null!=(nr=tr[ir]);ir++)try{er(nr).triggerHandler("remove")}catch(er){}rr(tr)}}else{var nr=er.fn.remove;er.fn.remove=function(tr,rr){return this.each((function(){return rr||(!tr||er.filter(tr,[this]).length)&&er("*",this).add([this]).each((function(){try{er(this).triggerHandler("remove")}catch(er){}})),nr.call(er(this),tr,rr)}))}}er.widget=function(tr,rr,nr){var ir,or=tr.split(".")[0];ir=or+"-"+(tr=tr.split(".")[1]),nr||(nr=rr,rr=er.Widget),er.expr[":"][ir]=function(rr){return!!er.data(rr,tr)},er[or]=er[or]||{},er[or][tr]=function(er,tr){arguments.length&&this._createWidget(er,tr)};var ar=new rr;ar.options=er.extend(!0,{},ar.options),er[or][tr].prototype=er.extend(!0,ar,{namespace:or,widgetName:tr,widgetEventPrefix:er[or][tr].prototype.widgetEventPrefix||tr,widgetBaseClass:ir},nr),er.widget.bridge(tr,er[or][tr])},er.widget.bridge=function(rr,nr){er.fn[rr]=function(ir){var or="string"==typeof ir,ar=Array.prototype.slice.call(arguments,1),sr=this;return ir=!or&&ar.length?er.extend.apply(null,[!0,ir].concat(ar)):ir,or&&"_"===ir.charAt(0)||(or?this.each((function(){var nr=er.data(this,rr),or=nr&&er.isFunction(nr[ir])?nr[ir].apply(nr,ar):nr;if(or!==nr&&or!==tr)return sr=or,!1})):this.each((function(){var tr=er.data(this,rr);tr?tr.option(ir||{})._init():er.data(this,rr,new nr(ir,this))}))),sr}},er.Widget=function(er,tr){arguments.length&&this._createWidget(er,tr)},er.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function _createWidget(tr,rr){er.data(rr,this.widgetName,this),this.element=er(rr),this.options=er.extend(!0,{},this.options,this._getCreateOptions(),tr);var nr=this;this.element.bind("remove."+this.widgetName,(function(){nr.destroy()})),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function _getCreateOptions(){return er.metadata&&er.metadata.get(this.element[0])[this.widgetName]},_create:function _create(){},_init:function _init(){},destroy:function destroy(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function widget(){return this.element},option:function option(rr,nr){var ir=rr;if(0===arguments.length)return er.extend({},this.options);if("string"==typeof rr){if(nr===tr)return this.options[rr];(ir={})[rr]=nr}return this._setOptions(ir),this},_setOptions:function _setOptions(tr){var rr=this;return er.each(tr,(function(er,tr){rr._setOption(er,tr)})),this},_setOption:function _setOption(er,tr){return this.options[er]=tr,"disabled"===er&&this.widget()[tr?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",tr),this},enable:function enable(){return this._setOption("disabled",!1)},disable:function disable(){return this._setOption("disabled",!0)},_trigger:function _trigger(tr,rr,nr){var ir,or,ar=this.options[tr];if(nr=nr||{},(rr=er.Event(rr)).type=(tr===this.widgetEventPrefix?tr:this.widgetEventPrefix+tr).toLowerCase(),rr.target=this.element[0],or=rr.originalEvent)for(ir in or)ir in rr||(rr[ir]=or[ir]);return this.element.trigger(rr,nr),!(er.isFunction(ar)&&!1===ar.call(this.element[0],rr,nr)||rr.isDefaultPrevented())}}}(jQuery),
|
||
/*!
|
||
* jQuery UI Mouse 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI/Mouse
|
||
*
|
||
* Depends:
|
||
* jquery.ui.widget.js
|
||
*/
|
||
function(er,tr){var rr=!1;er(document).mouseup((function(er){rr=!1})),er.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function _mouseInit(){var tr=this;this.element.bind("mousedown."+this.widgetName,(function(er){return tr._mouseDown(er)})).bind("click."+this.widgetName,(function(rr){if(!0===er.data(rr.target,tr.widgetName+".preventClickEvent"))return er.removeData(rr.target,tr.widgetName+".preventClickEvent"),rr.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function _mouseDestroy(){this.element.unbind("."+this.widgetName)},_mouseDown:function _mouseDown(tr){if(!rr){this._mouseStarted&&this._mouseUp(tr),this._mouseDownEvent=tr;var nr=this,ir=1==tr.which,or=!("string"!=typeof this.options.cancel||!tr.target.nodeName)&&er(tr.target).closest(this.options.cancel).length;return!(ir&&!or&&this._mouseCapture(tr))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){nr.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(tr)&&this._mouseDelayMet(tr)&&(this._mouseStarted=!1!==this._mouseStart(tr),!this._mouseStarted)?(tr.preventDefault(),!0):(!0===er.data(tr.target,this.widgetName+".preventClickEvent")&&er.removeData(tr.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(er){return nr._mouseMove(er)},this._mouseUpDelegate=function(er){return nr._mouseUp(er)},er(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),tr.preventDefault(),rr=!0,!0))}},_mouseMove:function _mouseMove(tr){return!er.browser.msie||document.documentMode>=9||tr.button?this._mouseStarted?(this._mouseDrag(tr),tr.preventDefault()):(this._mouseDistanceMet(tr)&&this._mouseDelayMet(tr)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,tr),this._mouseStarted?this._mouseDrag(tr):this._mouseUp(tr)),!this._mouseStarted):this._mouseUp(tr)},_mouseUp:function _mouseUp(tr){return er(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,tr.target==this._mouseDownEvent.target&&er.data(tr.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(tr)),!1},_mouseDistanceMet:function _mouseDistanceMet(er){return Math.max(Math.abs(this._mouseDownEvent.pageX-er.pageX),Math.abs(this._mouseDownEvent.pageY-er.pageY))>=this.options.distance},_mouseDelayMet:function _mouseDelayMet(er){return this.mouseDelayMet},_mouseStart:function _mouseStart(er){},_mouseDrag:function _mouseDrag(er){},_mouseStop:function _mouseStop(er){},_mouseCapture:function _mouseCapture(er){return!0}})}(jQuery),function(er,tr){er.widget("ui.draggable",er.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function _create(){"original"==this.options.helper&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function destroy(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(tr){var rr=this.options;return!(this.helper||rr.disabled||er(tr.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(tr),!!this.handle&&(rr.iframeFix&&er(!0===rr.iframeFix?"iframe":rr.iframeFix).each((function(){er('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(er(this).offset()).appendTo("body")})),!0))},_mouseStart:function _mouseStart(tr){var rr=this.options;return this.helper=this._createHelper(tr),this._cacheHelperProportions(),er.ui.ddmanager&&(er.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},er.extend(this.offset,{click:{left:tr.pageX-this.offset.left,top:tr.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(tr),this.originalPageX=tr.pageX,this.originalPageY=tr.pageY,rr.cursorAt&&this._adjustOffsetFromHelper(rr.cursorAt),rr.containment&&this._setContainment(),!1===this._trigger("start",tr)?(this._clear(),!1):(this._cacheHelperProportions(),er.ui.ddmanager&&!rr.dropBehaviour&&er.ui.ddmanager.prepareOffsets(this,tr),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(tr,!0),er.ui.ddmanager&&er.ui.ddmanager.dragStart(this,tr),!0)},_mouseDrag:function _mouseDrag(tr,rr){if(this.position=this._generatePosition(tr),this.positionAbs=this._convertPositionTo("absolute"),!rr){var nr=this._uiHash();if(!1===this._trigger("drag",tr,nr))return this._mouseUp({}),!1;this.position=nr.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),er.ui.ddmanager&&er.ui.ddmanager.drag(this,tr),!1},_mouseStop:function _mouseStop(tr){var rr=!1;if(er.ui.ddmanager&&!this.options.dropBehaviour&&(rr=er.ui.ddmanager.drop(this,tr)),this.dropped&&(rr=this.dropped,this.dropped=!1),!(this.element[0]&&this.element[0].parentNode||"original"!=this.options.helper))return!1;if("invalid"==this.options.revert&&!rr||"valid"==this.options.revert&&rr||!0===this.options.revert||er.isFunction(this.options.revert)&&this.options.revert.call(this.element,rr)){var nr=this;er(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==nr._trigger("stop",tr)&&nr._clear()}))}else!1!==this._trigger("stop",tr)&&this._clear();return!1},_mouseUp:function _mouseUp(tr){return!0===this.options.iframeFix&&er("div.ui-draggable-iframeFix").each((function(){this.parentNode.removeChild(this)})),er.ui.ddmanager&&er.ui.ddmanager.dragStop(this,tr),er.ui.mouse.prototype._mouseUp.call(this,tr)},cancel:function cancel(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function _getHandle(tr){var rr=!this.options.handle||!er(this.options.handle,this.element).length;return er(this.options.handle,this.element).find("*").andSelf().each((function(){this==tr.target&&(rr=!0)})),rr},_createHelper:function _createHelper(tr){var rr=this.options,nr=er.isFunction(rr.helper)?er(rr.helper.apply(this.element[0],[tr])):"clone"==rr.helper?this.element.clone().removeAttr("id"):this.element;return nr.parents("body").length||nr.appendTo("parent"==rr.appendTo?this.element[0].parentNode:rr.appendTo),nr[0]!=this.element[0]&&!/(fixed|absolute)/.test(nr.css("position"))&&nr.css("position","absolute"),nr},_adjustOffsetFromHelper:function _adjustOffsetFromHelper(tr){"string"==typeof tr&&(tr=tr.split(" ")),er.isArray(tr)&&(tr={left:+tr[0],top:+tr[1]||0}),"left"in tr&&(this.offset.click.left=tr.left+this.margins.left),"right"in tr&&(this.offset.click.left=this.helperProportions.width-tr.right+this.margins.left),"top"in tr&&(this.offset.click.top=tr.top+this.margins.top),"bottom"in tr&&(this.offset.click.top=this.helperProportions.height-tr.bottom+this.margins.top)},_getParentOffset:function _getParentOffset(){this.offsetParent=this.helper.offsetParent();var tr=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&er.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(tr.left+=this.scrollParent.scrollLeft(),tr.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&er.browser.msie)&&(tr={top:0,left:0}),{top:tr.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:tr.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function _getRelativeOffset(){if("relative"==this.cssPosition){var er=this.element.position();return{top:er.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:er.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function _cacheMargins(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function _cacheHelperProportions(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function _setContainment(){var tr=this.options;if("parent"==tr.containment&&(tr.containment=this.helper[0].parentNode),"document"!=tr.containment&&"window"!=tr.containment||(this.containment=["document"==tr.containment?0:er(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==tr.containment?0:er(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==tr.containment?0:er(window).scrollLeft())+er("document"==tr.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==tr.containment?0:er(window).scrollTop())+(er("document"==tr.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(tr.containment)||tr.containment.constructor==Array)tr.containment.constructor==Array&&(this.containment=tr.containment);else{var rr=er(tr.containment),nr=rr[0];if(!nr)return;rr.offset();var ir="hidden"!=er(nr).css("overflow");this.containment=[(parseInt(er(nr).css("borderLeftWidth"),10)||0)+(parseInt(er(nr).css("paddingLeft"),10)||0),(parseInt(er(nr).css("borderTopWidth"),10)||0)+(parseInt(er(nr).css("paddingTop"),10)||0),(ir?Math.max(nr.scrollWidth,nr.offsetWidth):nr.offsetWidth)-(parseInt(er(nr).css("borderLeftWidth"),10)||0)-(parseInt(er(nr).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(ir?Math.max(nr.scrollHeight,nr.offsetHeight):nr.offsetHeight)-(parseInt(er(nr).css("borderTopWidth"),10)||0)-(parseInt(er(nr).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=rr}},_convertPositionTo:function _convertPositionTo(tr,rr){rr||(rr=this.position);var nr="absolute"==tr?1:-1,ir=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&er.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),or=/(html|body)/i.test(ir[0].tagName);return{top:rr.top+this.offset.relative.top*nr+this.offset.parent.top*nr-(er.browser.safari&&er.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():or?0:ir.scrollTop())*nr),left:rr.left+this.offset.relative.left*nr+this.offset.parent.left*nr-(er.browser.safari&&er.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():or?0:ir.scrollLeft())*nr)}},_generatePosition:function _generatePosition(tr){var rr=this.options,nr="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&er.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,ir=/(html|body)/i.test(nr[0].tagName),or=tr.pageX,ar=tr.pageY;if(this.originalPosition){var sr;if(this.containment){if(this.relative_container){var lr=this.relative_container.offset();sr=[this.containment[0]+lr.left,this.containment[1]+lr.top,this.containment[2]+lr.left,this.containment[3]+lr.top]}else sr=this.containment;tr.pageX-this.offset.click.left<sr[0]&&(or=sr[0]+this.offset.click.left),tr.pageY-this.offset.click.top<sr[1]&&(ar=sr[1]+this.offset.click.top),tr.pageX-this.offset.click.left>sr[2]&&(or=sr[2]+this.offset.click.left),tr.pageY-this.offset.click.top>sr[3]&&(ar=sr[3]+this.offset.click.top)}if(rr.grid){var cr=rr.grid[1]?this.originalPageY+Math.round((ar-this.originalPageY)/rr.grid[1])*rr.grid[1]:this.originalPageY;ar=sr&&(cr-this.offset.click.top<sr[1]||cr-this.offset.click.top>sr[3])?cr-this.offset.click.top<sr[1]?cr+rr.grid[1]:cr-rr.grid[1]:cr;var ur=rr.grid[0]?this.originalPageX+Math.round((or-this.originalPageX)/rr.grid[0])*rr.grid[0]:this.originalPageX;or=sr&&(ur-this.offset.click.left<sr[0]||ur-this.offset.click.left>sr[2])?ur-this.offset.click.left<sr[0]?ur+rr.grid[0]:ur-rr.grid[0]:ur}}return{top:ar-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(er.browser.safari&&er.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():ir?0:nr.scrollTop()),left:or-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(er.browser.safari&&er.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():ir?0:nr.scrollLeft())}},_clear:function _clear(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function _trigger(tr,rr,nr){return nr=nr||this._uiHash(),er.ui.plugin.call(this,tr,[rr,nr]),"drag"==tr&&(this.positionAbs=this._convertPositionTo("absolute")),er.Widget.prototype._trigger.call(this,tr,rr,nr)},plugins:{},_uiHash:function _uiHash(er){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),er.extend(er.ui.draggable,{version:"1.8.17"}),er.ui.plugin.add("draggable","connectToSortable",{start:function start(tr,rr){var nr=er(this).data("draggable"),ir=nr.options,or=er.extend({},rr,{item:nr.element});nr.sortables=[],er(ir.connectToSortable).each((function(){var rr=er.data(this,"sortable");rr&&!rr.options.disabled&&(nr.sortables.push({instance:rr,shouldRevert:rr.options.revert}),rr.refreshPositions(),rr._trigger("activate",tr,or))}))},stop:function stop(tr,rr){var nr=er(this).data("draggable"),ir=er.extend({},rr,{item:nr.element});er.each(nr.sortables,(function(){this.instance.isOver?(this.instance.isOver=0,nr.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(tr),this.instance.options.helper=this.instance.options._helper,"original"==nr.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",tr,ir))}))},drag:function drag(tr,rr){var nr=er(this).data("draggable"),ir=this;er.each(nr.sortables,(function(or){this.instance.positionAbs=nr.positionAbs,this.instance.helperProportions=nr.helperProportions,this.instance.offset.click=nr.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=er(ir).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return rr.helper[0]},tr.target=this.instance.currentItem[0],this.instance._mouseCapture(tr,!0),this.instance._mouseStart(tr,!0,!0),this.instance.offset.click.top=nr.offset.click.top,this.instance.offset.click.left=nr.offset.click.left,this.instance.offset.parent.left-=nr.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=nr.offset.parent.top-this.instance.offset.parent.top,nr._trigger("toSortable",tr),nr.dropped=this.instance.element,nr.currentItem=nr.element,this.instance.fromOutside=nr),this.instance.currentItem&&this.instance._mouseDrag(tr)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",tr,this.instance._uiHash(this.instance)),this.instance._mouseStop(tr,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),nr._trigger("fromSortable",tr),nr.dropped=!1)}))}}),er.ui.plugin.add("draggable","cursor",{start:function start(tr,rr){var nr=er("body"),ir=er(this).data("draggable").options;nr.css("cursor")&&(ir._cursor=nr.css("cursor")),nr.css("cursor",ir.cursor)},stop:function stop(tr,rr){var nr=er(this).data("draggable").options;nr._cursor&&er("body").css("cursor",nr._cursor)}}),er.ui.plugin.add("draggable","opacity",{start:function start(tr,rr){var nr=er(rr.helper),ir=er(this).data("draggable").options;nr.css("opacity")&&(ir._opacity=nr.css("opacity")),nr.css("opacity",ir.opacity)},stop:function stop(tr,rr){var nr=er(this).data("draggable").options;nr._opacity&&er(rr.helper).css("opacity",nr._opacity)}}),er.ui.plugin.add("draggable","scroll",{start:function start(tr,rr){var nr=er(this).data("draggable");nr.scrollParent[0]!=document&&"HTML"!=nr.scrollParent[0].tagName&&(nr.overflowOffset=nr.scrollParent.offset())},drag:function drag(tr,rr){var nr=er(this).data("draggable"),ir=nr.options,or=!1;nr.scrollParent[0]!=document&&"HTML"!=nr.scrollParent[0].tagName?(ir.axis&&"x"==ir.axis||(nr.overflowOffset.top+nr.scrollParent[0].offsetHeight-tr.pageY<ir.scrollSensitivity?nr.scrollParent[0].scrollTop=or=nr.scrollParent[0].scrollTop+ir.scrollSpeed:tr.pageY-nr.overflowOffset.top<ir.scrollSensitivity&&(nr.scrollParent[0].scrollTop=or=nr.scrollParent[0].scrollTop-ir.scrollSpeed)),ir.axis&&"y"==ir.axis||(nr.overflowOffset.left+nr.scrollParent[0].offsetWidth-tr.pageX<ir.scrollSensitivity?nr.scrollParent[0].scrollLeft=or=nr.scrollParent[0].scrollLeft+ir.scrollSpeed:tr.pageX-nr.overflowOffset.left<ir.scrollSensitivity&&(nr.scrollParent[0].scrollLeft=or=nr.scrollParent[0].scrollLeft-ir.scrollSpeed))):(ir.axis&&"x"==ir.axis||(tr.pageY-er(document).scrollTop()<ir.scrollSensitivity?or=er(document).scrollTop(er(document).scrollTop()-ir.scrollSpeed):er(window).height()-(tr.pageY-er(document).scrollTop())<ir.scrollSensitivity&&(or=er(document).scrollTop(er(document).scrollTop()+ir.scrollSpeed))),ir.axis&&"y"==ir.axis||(tr.pageX-er(document).scrollLeft()<ir.scrollSensitivity?or=er(document).scrollLeft(er(document).scrollLeft()-ir.scrollSpeed):er(window).width()-(tr.pageX-er(document).scrollLeft())<ir.scrollSensitivity&&(or=er(document).scrollLeft(er(document).scrollLeft()+ir.scrollSpeed)))),!1!==or&&er.ui.ddmanager&&!ir.dropBehaviour&&er.ui.ddmanager.prepareOffsets(nr,tr)}}),er.ui.plugin.add("draggable","snap",{start:function start(tr,rr){var nr=er(this).data("draggable"),ir=nr.options;nr.snapElements=[],er(ir.snap.constructor!=String?ir.snap.items||":data(draggable)":ir.snap).each((function(){var tr=er(this),rr=tr.offset();this!=nr.element[0]&&nr.snapElements.push({item:this,width:tr.outerWidth(),height:tr.outerHeight(),top:rr.top,left:rr.left})}))},drag:function drag(tr,rr){for(var nr=er(this).data("draggable"),ir=nr.options,or=ir.snapTolerance,ar=rr.offset.left,sr=ar+nr.helperProportions.width,lr=rr.offset.top,cr=lr+nr.helperProportions.height,ur=nr.snapElements.length-1;ur>=0;ur--){var dr=nr.snapElements[ur].left,hr=dr+nr.snapElements[ur].width,pr=nr.snapElements[ur].top,Ar=pr+nr.snapElements[ur].height;if(dr-or<ar&&ar<hr+or&&pr-or<lr&&lr<Ar+or||dr-or<ar&&ar<hr+or&&pr-or<cr&&cr<Ar+or||dr-or<sr&&sr<hr+or&&pr-or<lr&&lr<Ar+or||dr-or<sr&&sr<hr+or&&pr-or<cr&&cr<Ar+or){if("inner"!=ir.snapMode){var fr=Math.abs(pr-cr)<=or,gr=Math.abs(Ar-lr)<=or,mr=Math.abs(dr-sr)<=or,_r=Math.abs(hr-ar)<=or;fr&&(rr.position.top=nr._convertPositionTo("relative",{top:pr-nr.helperProportions.height,left:0}).top-nr.margins.top),gr&&(rr.position.top=nr._convertPositionTo("relative",{top:Ar,left:0}).top-nr.margins.top),mr&&(rr.position.left=nr._convertPositionTo("relative",{top:0,left:dr-nr.helperProportions.width}).left-nr.margins.left),_r&&(rr.position.left=nr._convertPositionTo("relative",{top:0,left:hr}).left-nr.margins.left)}var vr=fr||gr||mr||_r;if("outer"!=ir.snapMode){fr=Math.abs(pr-lr)<=or,gr=Math.abs(Ar-cr)<=or,mr=Math.abs(dr-ar)<=or,_r=Math.abs(hr-sr)<=or;fr&&(rr.position.top=nr._convertPositionTo("relative",{top:pr,left:0}).top-nr.margins.top),gr&&(rr.position.top=nr._convertPositionTo("relative",{top:Ar-nr.helperProportions.height,left:0}).top-nr.margins.top),mr&&(rr.position.left=nr._convertPositionTo("relative",{top:0,left:dr}).left-nr.margins.left),_r&&(rr.position.left=nr._convertPositionTo("relative",{top:0,left:hr-nr.helperProportions.width}).left-nr.margins.left)}!nr.snapElements[ur].snapping&&(fr||gr||mr||_r||vr)&&nr.options.snap.snap&&nr.options.snap.snap.call(nr.element,tr,er.extend(nr._uiHash(),{snapItem:nr.snapElements[ur].item})),nr.snapElements[ur].snapping=fr||gr||mr||_r||vr}else nr.snapElements[ur].snapping&&nr.options.snap.release&&nr.options.snap.release.call(nr.element,tr,er.extend(nr._uiHash(),{snapItem:nr.snapElements[ur].item})),nr.snapElements[ur].snapping=!1}}}),er.ui.plugin.add("draggable","stack",{start:function start(tr,rr){var nr=er(this).data("draggable").options,ir=er.makeArray(er(nr.stack)).sort((function(tr,rr){return(parseInt(er(tr).css("zIndex"),10)||0)-(parseInt(er(rr).css("zIndex"),10)||0)}));if(ir.length){var or=parseInt(ir[0].style.zIndex)||0;er(ir).each((function(er){this.style.zIndex=or+er})),this[0].style.zIndex=or+ir.length}}}),er.ui.plugin.add("draggable","zIndex",{start:function start(tr,rr){var nr=er(rr.helper),ir=er(this).data("draggable").options;nr.css("zIndex")&&(ir._zIndex=nr.css("zIndex")),nr.css("zIndex",ir.zIndex)},stop:function stop(tr,rr){var nr=er(this).data("draggable").options;nr._zIndex&&er(rr.helper).css("zIndex",nr._zIndex)}})}(jQuery),function(er,tr){er.widget("ui.slider",er.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function _create(){var tr=this,rr=this.options,nr=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),ir=rr.values&&rr.values.length||1,or=[];this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(rr.disabled?" ui-slider-disabled ui-disabled":"")),this.range=er([]),rr.range&&(!0===rr.range&&(rr.values||(rr.values=[this._valueMin(),this._valueMin()]),rr.values.length&&2!==rr.values.length&&(rr.values=[rr.values[0],rr.values[0]])),this.range=er("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===rr.range||"max"===rr.range?" ui-slider-range-"+rr.range:"")));for(var ar=nr.length;ar<ir;ar+=1)or.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");this.handles=nr.add(er(or.join("")).appendTo(tr.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click((function(er){er.preventDefault()})).hover((function(){rr.disabled||er(this).addClass("ui-state-hover")}),(function(){er(this).removeClass("ui-state-hover")})).focus((function(){rr.disabled?er(this).blur():(er(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),er(this).addClass("ui-state-focus"))})).blur((function(){er(this).removeClass("ui-state-focus")})),this.handles.each((function(tr){er(this).data("index.ui-slider-handle",tr)})),this.handles.keydown((function(rr){var nr,ir,or,ar=!0,sr=er(this).data("index.ui-slider-handle");if(!tr.options.disabled){switch(rr.keyCode){case er.ui.keyCode.HOME:case er.ui.keyCode.END:case er.ui.keyCode.PAGE_UP:case er.ui.keyCode.PAGE_DOWN:case er.ui.keyCode.UP:case er.ui.keyCode.RIGHT:case er.ui.keyCode.DOWN:case er.ui.keyCode.LEFT:if(ar=!1,!tr._keySliding&&(tr._keySliding=!0,er(this).addClass("ui-state-active"),!1===tr._start(rr,sr)))return}switch(or=tr.options.step,nr=ir=tr.options.values&&tr.options.values.length?tr.values(sr):tr.value(),rr.keyCode){case er.ui.keyCode.HOME:ir=tr._valueMin();break;case er.ui.keyCode.END:ir=tr._valueMax();break;case er.ui.keyCode.PAGE_UP:ir=tr._trimAlignValue(nr+(tr._valueMax()-tr._valueMin())/5);break;case er.ui.keyCode.PAGE_DOWN:ir=tr._trimAlignValue(nr-(tr._valueMax()-tr._valueMin())/5);break;case er.ui.keyCode.UP:case er.ui.keyCode.RIGHT:if(nr===tr._valueMax())return;ir=tr._trimAlignValue(nr+or);break;case er.ui.keyCode.DOWN:case er.ui.keyCode.LEFT:if(nr===tr._valueMin())return;ir=tr._trimAlignValue(nr-or)}return tr._slide(rr,sr,ir),ar}})).keyup((function(rr){var nr=er(this).data("index.ui-slider-handle");tr._keySliding&&(tr._keySliding=!1,tr._stop(rr,nr),tr._change(rr,nr),er(this).removeClass("ui-state-active"))})),this._refreshValue(),this._animateOff=!1},destroy:function destroy(){return this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(tr){var rr,nr,ir,or,ar,sr,lr,cr,ur=this.options;return!ur.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),rr={x:tr.pageX,y:tr.pageY},nr=this._normValueFromMouse(rr),ir=this._valueMax()-this._valueMin()+1,ar=this,this.handles.each((function(tr){var rr=Math.abs(nr-ar.values(tr));ir>rr&&(ir=rr,or=er(this),sr=tr)})),!0===ur.range&&this.values(1)===ur.min&&(sr+=1,or=er(this.handles[sr])),!1!==this._start(tr,sr)&&(this._mouseSliding=!0,ar._handleIndex=sr,or.addClass("ui-state-active").focus(),lr=or.offset(),cr=!er(tr.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=cr?{left:0,top:0}:{left:tr.pageX-lr.left-or.width()/2,top:tr.pageY-lr.top-or.height()/2-(parseInt(or.css("borderTopWidth"),10)||0)-(parseInt(or.css("borderBottomWidth"),10)||0)+(parseInt(or.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(tr,sr,nr),this._animateOff=!0,!0))},_mouseStart:function _mouseStart(er){return!0},_mouseDrag:function _mouseDrag(er){var tr={x:er.pageX,y:er.pageY},rr=this._normValueFromMouse(tr);return this._slide(er,this._handleIndex,rr),!1},_mouseStop:function _mouseStop(er){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(er,this._handleIndex),this._change(er,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function _detectOrientation(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function _normValueFromMouse(er){var tr,rr,nr,ir,or;return"horizontal"===this.orientation?(tr=this.elementSize.width,rr=er.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(tr=this.elementSize.height,rr=er.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(nr=rr/tr)>1&&(nr=1),nr<0&&(nr=0),"vertical"===this.orientation&&(nr=1-nr),ir=this._valueMax()-this._valueMin(),or=this._valueMin()+nr*ir,this._trimAlignValue(or)},_start:function _start(er,tr){var rr={handle:this.handles[tr],value:this.value()};return this.options.values&&this.options.values.length&&(rr.value=this.values(tr),rr.values=this.values()),this._trigger("start",er,rr)},_slide:function _slide(er,tr,rr){var nr,ir,or;this.options.values&&this.options.values.length?(nr=this.values(tr?0:1),2===this.options.values.length&&!0===this.options.range&&(0===tr&&rr>nr||1===tr&&rr<nr)&&(rr=nr),rr!==this.values(tr)&&((ir=this.values())[tr]=rr,or=this._trigger("slide",er,{handle:this.handles[tr],value:rr,values:ir}),nr=this.values(tr?0:1),!1!==or&&this.values(tr,rr,!0))):rr!==this.value()&&(!1!==(or=this._trigger("slide",er,{handle:this.handles[tr],value:rr}))&&this.value(rr))},_stop:function _stop(er,tr){var rr={handle:this.handles[tr],value:this.value()};this.options.values&&this.options.values.length&&(rr.value=this.values(tr),rr.values=this.values()),this._trigger("stop",er,rr)},_change:function _change(er,tr){if(!this._keySliding&&!this._mouseSliding){var rr={handle:this.handles[tr],value:this.value()};this.options.values&&this.options.values.length&&(rr.value=this.values(tr),rr.values=this.values()),this._trigger("change",er,rr)}},value:function value(er){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(er),this._refreshValue(),this._change(null,0)},values:function values(tr,rr){var nr,ir,or;if(arguments.length>1)this.options.values[tr]=this._trimAlignValue(rr),this._refreshValue(),this._change(null,tr);else{if(!arguments.length)return this._values();if(!er.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(tr):this.value();for(nr=this.options.values,ir=arguments[0],or=0;or<nr.length;or+=1)nr[or]=this._trimAlignValue(ir[or]),this._change(null,or);this._refreshValue()}},_setOption:function _setOption(tr,rr){var nr,ir=0;switch(er.isArray(this.options.values)&&(ir=this.options.values.length),er.Widget.prototype._setOption.apply(this,arguments),tr){case"disabled":rr?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),nr=0;nr<ir;nr+=1)this._change(null,nr);this._animateOff=!1}},_value:function _value(){var er=this.options.value;return er=this._trimAlignValue(er)},_values:function _values(er){var tr,rr,nr;if(arguments.length)return tr=this.options.values[er],tr=this._trimAlignValue(tr);for(rr=this.options.values.slice(),nr=0;nr<rr.length;nr+=1)rr[nr]=this._trimAlignValue(rr[nr]);return rr},_trimAlignValue:function _trimAlignValue(er){if(er<=this._valueMin())return this._valueMin();if(er>=this._valueMax())return this._valueMax();var tr=this.options.step>0?this.options.step:1,rr=(er-this._valueMin())%tr,nr=er-rr;return 2*Math.abs(rr)>=tr&&(nr+=rr>0?tr:-tr),parseFloat(nr.toFixed(5))},_valueMin:function _valueMin(){return this.options.min},_valueMax:function _valueMax(){return this.options.max},_refreshValue:function _refreshValue(){var tr,rr,nr,ir,or,ar=this.options.range,sr=this.options,lr=this,cr=!this._animateOff&&sr.animate,ur={};this.options.values&&this.options.values.length?this.handles.each((function(nr,ir){tr=(lr.values(nr)-lr._valueMin())/(lr._valueMax()-lr._valueMin())*100,ur["horizontal"===lr.orientation?"left":"bottom"]=tr+"%",er(this).stop(1,1)[cr?"animate":"css"](ur,sr.animate),!0===lr.options.range&&("horizontal"===lr.orientation?(0===nr&&lr.range.stop(1,1)[cr?"animate":"css"]({left:tr+"%"},sr.animate),1===nr&&lr.range[cr?"animate":"css"]({width:tr-rr+"%"},{queue:!1,duration:sr.animate})):(0===nr&&lr.range.stop(1,1)[cr?"animate":"css"]({bottom:tr+"%"},sr.animate),1===nr&&lr.range[cr?"animate":"css"]({height:tr-rr+"%"},{queue:!1,duration:sr.animate}))),rr=tr})):(nr=this.value(),ir=this._valueMin(),or=this._valueMax(),tr=or!==ir?(nr-ir)/(or-ir)*100:0,ur["horizontal"===lr.orientation?"left":"bottom"]=tr+"%",this.handle.stop(1,1)[cr?"animate":"css"](ur,sr.animate),"min"===ar&&"horizontal"===this.orientation&&this.range.stop(1,1)[cr?"animate":"css"]({width:tr+"%"},sr.animate),"max"===ar&&"horizontal"===this.orientation&&this.range[cr?"animate":"css"]({width:100-tr+"%"},{queue:!1,duration:sr.animate}),"min"===ar&&"vertical"===this.orientation&&this.range.stop(1,1)[cr?"animate":"css"]({height:tr+"%"},sr.animate),"max"===ar&&"vertical"===this.orientation&&this.range[cr?"animate":"css"]({height:100-tr+"%"},{queue:!1,duration:sr.animate}))}}),er.extend(er.ui.slider,{version:"1.8.17"})}(jQuery);var ws=document.createElement("template");ws.innerHTML='\n <style>\n :host :hover :not(.disabled)\n {\n background-color: #ffc;\n }\n div\n {\n height: 24px;\n width: 24px;\n margin: 2px 2px 4px;\n padding: 3px;\n box-shadow: inset 1px 1px 2px white, 1px 1px 1px rgba(0,0,0,0.3);\n background-color: #E8E8E8;\n cursor: pointer;\n border-radius: 3px;\n }\n .small {\n width: 14px;\n height: 14px;\n padding: 1px;\n border-radius: 1px;\n }\n img {\n border: none;\n overflow: none;\n width: 100%;\n height: 100%;\n }\n .pressed {\n background-color: #F4E284 !important;\n box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4), 1px 1px 0 white !important;\n }\n .disabled {\n opacity: 0.3;\n cursor: default;\n }\n </style>\n <div title="title">\n <img src="./images/logo.svg" alt="icon">\n </div>\n';var Ss=function(er){_inherits(ToolButton,er);var tr=_createSuper(ToolButton);function ToolButton(){var er;return _classCallCheck(this,ToolButton),(er=tr.call(this))._shadowRoot=er.attachShadow({mode:"open"}),er._shadowRoot.appendChild(ws.content.cloneNode(!0)),er.$div=er._shadowRoot.querySelector("div"),er.$img=er._shadowRoot.querySelector("img"),er}return _createClass(ToolButton,[{key:"attributeChangedCallback",value:function attributeChangedCallback(er,tr,rr){if(tr!==rr)switch(er){case"title":var nr=this.getAttribute("shortcut");this.$div.setAttribute("title","".concat(rr," ").concat(nr?"[".concat(nr,"]"):""));break;case"src":this.$img.setAttribute("src",rr);break;case"pressed":rr?this.$div.classList.add("pressed"):this.$div.classList.remove("pressed");break;case"size":"small"===rr?this.$div.classList.add("small"):this.$div.classList.remove("small");break;case"disabled":rr?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(er))}}},{key:"connectedCallback",value:function connectedCallback(){var er=this,tr=this.getAttribute("shortcut");tr&&document.addEventListener("keydown",(function(rr){if("BODY"===rr.target.nodeName){var nr="".concat(rr.metaKey?"meta+":"").concat(rr.ctrlKey?"ctrl+":"").concat(rr.key.toUpperCase());tr===nr&&(er.click(),rr.preventDefault())}}))}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(er){this.setAttribute("title",er)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(er){er?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(er){er?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(er){this.setAttribute("src",er)}},{key:"size",get:function get(){return this.getAttribute("size")},set:function set(er){this.setAttribute("size",er)}}],[{key:"observedAttributes",get:function get(){return["title","src","pressed","disabled","size"]}}]),ToolButton}(_wrapNativeSuper(HTMLElement));customElements.define("se-button",Ss);var xs=Ai.every,ks=arrayMethodIsStrict("every"),Cs=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!ks||!Cs},{every:function every(er){return xs(this,er,arguments.length>1?arguments[1]:void 0)}});var Bs=Ai.forEach,Es=arrayMethodIsStrict("forEach"),Ns=arrayMethodUsesToLength("forEach"),Ls=Es&&Ns?[].forEach:function forEach(er){return Bs(this,er,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Ls},{forEach:Ls});var Ts=Xr.includes,Ps=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!Ps},{includes:function includes(er){return Ts(this,er,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var createMethod$4=function(er){return function(tr,rr,nr,ir){aFunction$1(rr);var or=toObject(tr),ar=cr(or),sr=toLength(or.length),lr=er?sr-1:0,ur=er?-1:1;if(nr<2)for(;;){if(lr in ar){ir=ar[lr],lr+=ur;break}if(lr+=ur,er?lr<0:sr<=lr)throw TypeError("Reduce of empty array with no initial value")}for(;er?lr>=0:sr>lr;lr+=ur)lr in ar&&(ir=rr(ir,ar[lr],lr,or));return ir}},Fs={left:createMethod$4(!1),right:createMethod$4(!0)},Us=Fs.left,Is=arrayMethodIsStrict("reduce"),Rs=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!Is||!Rs},{reduce:function reduce(er){return Us(this,er,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ms=Ai.some,Os=arrayMethodIsStrict("some"),Qs=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!Os||!Qs},{some:function some(er){return Ms(this,er,arguments.length>1?arguments[1]:void 0)}});var Ds=Zr.f,js=fr.f,Hs=mr.f,Gs=To.trim,Vs="Number",zs=rr.Number,Ks=zs.prototype,qs=classofRaw(Ci(Ks))==Vs,toNumber=function(er){var tr,rr,nr,ir,or,ar,sr,lr,cr=toPrimitive(er,!1);if("string"==typeof cr&&cr.length>2)if(43===(tr=(cr=Gs(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,ir=49;break;case 79:case 111:nr=8,ir=55;break;default:return+cr}for(ar=(or=cr.slice(2)).length,sr=0;sr<ar;sr++)if((lr=or.charCodeAt(sr))<48||lr>ir)return NaN;return parseInt(or,nr)}return+cr};if(zn(Vs,!zs(" 0o1")||!zs("0b1")||zs("+0x1"))){for(var Ws,Xs=function Number(er){var tr=arguments.length<1?0:er,rr=this;return rr instanceof Xs&&(qs?fails((function(){Ks.valueOf.call(rr)})):classofRaw(rr)!=Vs)?inheritIfRequired(new zs(toNumber(tr)),rr,Xs):toNumber(tr)},Ys=nr?Ds(zs):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Js=0;Ys.length>Js;Js++)has(zs,Ws=Ys[Js])&&!has(Xs,Ws)&&Hs(Xs,Ws,js(zs,Ws));Xs.prototype=Ks,Ks.constructor=Xs,Hr(rr,Vs,Xs)}_export({target:"Number",stat:!0},{isNaN:function isNaN(er){return er!=er}}),_export({target:"Number",stat:!0,forced:Number.parseFloat!=Uo},{parseFloat:Uo}),_export({target:"Number",stat:!0,forced:Number.parseInt!=Oo},{parseInt:Oo});var $s=ar.f,createMethod$5=function(er){return function(tr){for(var rr,ir=toIndexedObject(tr),or=wi(ir),ar=or.length,sr=0,lr=[];ar>sr;)rr=or[sr++],nr&&!$s.call(ir,rr)||lr.push(er?[rr,ir[rr]]:ir[rr]);return lr}},Zs={entries:createMethod$5(!0),values:createMethod$5(!1)},el=Zs.entries;_export({target:"Object",stat:!0},{entries:function entries(er){return el(er)}});var tl=fails((function(){wi(1)}));_export({target:"Object",stat:!0,forced:tl},{keys:function keys(er){return wi(toObject(er))}});var rl=Zs.values;_export({target:"Object",stat:!0},{values:function values(er){return rl(er)}});var nl=rr.Promise,redefineAll=function(er,tr,rr){for(var nr in tr)Hr(er,nr,tr[nr],rr);return er},anInstance=function(er,tr,rr){if(!(er instanceof tr))throw TypeError("Incorrect "+(rr?rr+" ":"")+"invocation");return er},il=wellKnownSymbol("iterator"),ol=Array.prototype,isArrayIteratorMethod=function(er){return void 0!==er&&(Oa.Array===er||ol[il]===er)},al=wellKnownSymbol("iterator"),getIteratorMethod=function(er){if(null!=er)return er[al]||er["@@iterator"]||Oa[ko(er)]},callWithSafeIterationClosing=function(er,tr,rr,nr){try{return nr?tr(anObject(rr)[0],rr[1]):tr(rr)}catch(tr){var ir=er.return;throw void 0!==ir&&anObject(ir.call(er)),tr}},sl=createCommonjsModule((function(er){var Result=function(er,tr){this.stopped=er,this.result=tr};(er.exports=function(er,tr,rr,nr,ir){var or,ar,sr,lr,cr,ur,dr,hr=functionBindContext(tr,rr,nr?2:1);if(ir)or=er;else{if("function"!=typeof(ar=getIteratorMethod(er)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(ar)){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)}or=ar.call(er)}for(ur=or.next;!(dr=ur.call(or)).done;)if("object"==typeof(cr=callWithSafeIterationClosing(or,hr,dr.value,nr))&&cr&&cr instanceof Result)return cr;return new Result(!1)}).stop=function(er){return new Result(!0,er)}})),ll=wellKnownSymbol("iterator"),cl=!1;try{var ul=0,dl={next:function(){return{done:!!ul++}},return:function(){cl=!0}};dl[ll]=function(){return this},Array.from(dl,(function(){throw 2}))}catch(er){}var hl,pl,Al,checkCorrectnessOfIteration=function(er,tr){if(!tr&&!cl)return!1;var rr=!1;try{var nr={};nr[ll]=function(){return{next:function(){return{done:rr=!0}}}},er(nr)}catch(er){}return rr},fl=/(iphone|ipod|ipad).*applewebkit/i.test(ti),gl=rr.location,ml=rr.setImmediate,_l=rr.clearImmediate,vl=rr.process,yl=rr.MessageChannel,wl=rr.Dispatch,Sl=0,xl={},kl="onreadystatechange",run=function(er){if(xl.hasOwnProperty(er)){var tr=xl[er];delete xl[er],tr()}},runner=function(er){return function(){run(er)}},listener=function(er){run(er.data)},post=function(er){rr.postMessage(er+"",gl.protocol+"//"+gl.host)};ml&&_l||(ml=function setImmediate(er){for(var tr=[],rr=1;arguments.length>rr;)tr.push(arguments[rr++]);return xl[++Sl]=function(){("function"==typeof er?er:Function(er)).apply(void 0,tr)},hl(Sl),Sl},_l=function clearImmediate(er){delete xl[er]},"process"==classofRaw(vl)?hl=function(er){vl.nextTick(runner(er))}:wl&&wl.now?hl=function(er){wl.now(runner(er))}:yl&&!fl?(Al=(pl=new yl).port2,pl.port1.onmessage=listener,hl=functionBindContext(Al.postMessage,Al,1)):!rr.addEventListener||"function"!=typeof postMessage||rr.importScripts||fails(post)||"file:"===gl.protocol?hl=kl in documentCreateElement("script")?function(er){xi.appendChild(documentCreateElement("script")).onreadystatechange=function(){xi.removeChild(this),run(er)}}:function(er){setTimeout(runner(er),0)}:(hl=post,rr.addEventListener("message",listener,!1)));var Cl,Bl,El,Nl,Ll,Tl,Pl,Fl,Ul={set:ml,clear:_l},Il=fr.f,Rl=Ul.set,Ml=rr.MutationObserver||rr.WebKitMutationObserver,Ol=rr.process,Ql=rr.Promise,Dl="process"==classofRaw(Ol),jl=Il(rr,"queueMicrotask"),Hl=jl&&jl.value;Hl||(Cl=function(){var er,tr;for(Dl&&(er=Ol.domain)&&er.exit();Bl;){tr=Bl.fn,Bl=Bl.next;try{tr()}catch(er){throw Bl?Nl():El=void 0,er}}El=void 0,er&&er.enter()},Dl?Nl=function(){Ol.nextTick(Cl)}:Ml&&!fl?(Ll=!0,Tl=document.createTextNode(""),new Ml(Cl).observe(Tl,{characterData:!0}),Nl=function(){Tl.data=Ll=!Ll}):Ql&&Ql.resolve?(Pl=Ql.resolve(void 0),Fl=Pl.then,Nl=function(){Fl.call(Pl,Cl)}):Nl=function(){Rl.call(rr,Cl)});var Gl,Vl,zl,Kl,ql=Hl||function(er){var tr={fn:er,next:void 0};El&&(El.next=tr),Bl||(Bl=tr,Nl()),El=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)},Wl={f:function(er){return new PromiseCapability(er)}},promiseResolve=function(er,tr){if(anObject(er),isObject(tr)&&tr.constructor===er)return tr;var rr=Wl.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}}},Xl=Ul.set,Yl=wellKnownSymbol("species"),Jl="Promise",$l=jr.get,Zl=jr.set,ec=jr.getterFor(Jl),tc=nl,rc=rr.TypeError,nc=rr.document,ic=rr.process,oc=getBuiltIn("fetch"),ac=Wl.f,sc=ac,lc="process"==classofRaw(ic),uc=!!(nc&&nc.createEvent&&rr.dispatchEvent),dc="unhandledrejection",hc=zn(Jl,(function(){if(!(kr(tc)!==String(tc))){if(66===oi)return!0;if(!lc&&"function"!=typeof PromiseRejectionEvent)return!0}if(oi>=51&&/native code/.test(tc))return!1;var er=tc.resolve(1),FakePromise=function(er){er((function(){}),(function(){}))};return(er.constructor={})[Yl]=FakePromise,!(er.then((function(){}))instanceof FakePromise)})),pc=hc||!checkCorrectnessOfIteration((function(er){tc.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;ql((function(){for(var ir=tr.value,or=1==tr.state,ar=0;nr.length>ar;){var sr,lr,cr,ur=nr[ar++],dr=or?ur.ok:ur.fail,hr=ur.resolve,pr=ur.reject,Ar=ur.domain;try{dr?(or||(2===tr.rejection&&onHandleUnhandled(er,tr),tr.rejection=1),!0===dr?sr=ir:(Ar&&Ar.enter(),sr=dr(ir),Ar&&(Ar.exit(),cr=!0)),sr===ur.promise?pr(rc("Promise-chain cycle")):(lr=isThenable(sr))?lr.call(sr,hr,pr):hr(sr)):pr(ir)}catch(er){Ar&&!cr&&Ar.exit(),pr(er)}}tr.reactions=[],tr.notified=!1,rr&&!tr.rejection&&onUnhandled(er,tr)}))}},dispatchEvent=function(er,tr,nr){var ir,or;uc?((ir=nc.createEvent("Event")).promise=tr,ir.reason=nr,ir.initEvent(er,!1,!0),rr.dispatchEvent(ir)):ir={promise:tr,reason:nr},(or=rr["on"+er])?or(ir):er===dc&&function(er,tr){var nr=rr.console;nr&&nr.error&&(1===arguments.length?nr.error(er):nr.error(er,tr))}("Unhandled promise rejection",nr)},onUnhandled=function(er,tr){Xl.call(rr,(function(){var rr,nr=tr.value;if(isUnhandled(tr)&&(rr=perform((function(){lc?ic.emit("unhandledRejection",nr,er):dispatchEvent(dc,er,nr)})),tr.rejection=lc||isUnhandled(tr)?2:1,rr.error))throw rr.value}))},isUnhandled=function(er){return 1!==er.rejection&&!er.parent},onHandleUnhandled=function(er,tr){Xl.call(rr,(function(){lc?ic.emit("rejectionHandled",er):dispatchEvent("rejectionhandled",er,tr.value)}))},bind=function(er,tr,rr,nr){return function(ir){er(tr,rr,ir,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 rc("Promise can't be resolved itself");var ir=isThenable(rr);ir?ql((function(){var nr={done:!1};try{ir.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)}}};hc&&(tc=function Promise(er){anInstance(this,tc,Jl),aFunction$1(er),Gl.call(this);var tr=$l(this);try{er(bind(internalResolve,this,tr),bind(internalReject,this,tr))}catch(er){internalReject(this,tr,er)}},(Gl=function Promise(er){Zl(this,{type:Jl,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(tc.prototype,{then:function then(er,tr){var rr=ec(this),nr=ac(speciesConstructor(this,tc));return nr.ok="function"!=typeof er||er,nr.fail="function"==typeof tr&&tr,nr.domain=lc?ic.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)}}),Vl=function(){var er=new Gl,tr=$l(er);this.promise=er,this.resolve=bind(internalResolve,er,tr),this.reject=bind(internalReject,er,tr)},Wl.f=ac=function(er){return er===tc||er===zl?new Vl(er):sc(er)},"function"==typeof nl&&(Kl=nl.prototype.then,Hr(nl.prototype,"then",(function then(er,tr){var rr=this;return new tc((function(er,tr){Kl.call(rr,er,tr)})).then(er,tr)}),{unsafe:!0}),"function"==typeof oc&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(er){return promiseResolve(tc,oc.apply(rr,arguments))}}))),_export({global:!0,wrap:!0,forced:hc},{Promise:tc}),setToStringTag(tc,Jl,!1),setSpecies(Jl),zl=getBuiltIn(Jl),_export({target:Jl,stat:!0,forced:hc},{reject:function reject(er){var tr=ac(this);return tr.reject.call(void 0,er),tr.promise}}),_export({target:Jl,stat:!0,forced:hc},{resolve:function resolve(er){return promiseResolve(this,er)}}),_export({target:Jl,stat:!0,forced:pc},{all:function all(er){var tr=this,rr=ac(tr),nr=rr.resolve,ir=rr.reject,or=perform((function(){var rr=aFunction$1(tr.resolve),or=[],ar=0,sr=1;sl(er,(function(er){var lr=ar++,cr=!1;or.push(void 0),sr++,rr.call(tr,er).then((function(er){cr||(cr=!0,or[lr]=er,--sr||nr(or))}),ir)})),--sr||nr(or)}));return or.error&&ir(or.value),rr.promise},race:function race(er){var tr=this,rr=ac(tr),nr=rr.reject,ir=perform((function(){var ir=aFunction$1(tr.resolve);sl(er,(function(er){ir.call(tr,er).then(rr.resolve,nr)}))}));return ir.error&&nr(ir.value),rr.promise}});var notARegexp=function(er){if(isRegexp(er))throw TypeError("The method doesn't accept regular expressions");return er},Ac=wellKnownSymbol("match"),correctIsRegexpLogic=function(er){var tr=/./;try{"/./"[er](tr)}catch(rr){try{return tr[Ac]=!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 fc=ba.charAt,gc="String Iterator",mc=jr.set,_c=jr.getterFor(gc);defineIterator(String,"String",(function(er){mc(this,{type:gc,string:String(er),index:0})}),(function next(){var er,tr=_c(this),rr=tr.string,nr=tr.index;return nr>=rr.length?{value:void 0,done:!0}:(er=fc(rr,nr),tr.index+=er.length,{value:er,done:!1})}));var vc=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 ir=anObject(er),or=String(this),ar=ir.lastIndex;vc(ar,0)||(ir.lastIndex=0);var sr=regexpExecAbstract(ir,or);return vc(ir.lastIndex,ar)||(ir.lastIndex=ar),null===sr?-1:sr.index}]}));var yc,bc=fr.f,wc="".startsWith,Sc=Math.min,xc=correctIsRegexpLogic("startsWith"),kc=!(xc||(yc=bc(String.prototype,"startsWith"),!yc||yc.writable));for(var Cc in _export({target:"String",proto:!0,forced:!kc&&!xc},{startsWith:function startsWith(er){var tr=String(requireObjectCoercible(this));notARegexp(er);var rr=toLength(Sc(arguments.length>1?arguments[1]:void 0,tr.length)),nr=String(er);return wc?wc.call(tr,nr,rr):tr.slice(rr,rr+nr.length)===nr}}),As){var Bc=rr[Cc],Ec=Bc&&Bc.prototype;if(Ec&&Ec.forEach!==Ls)try{_r(Ec,"forEach",Ls)}catch(er){Ec.forEach=Ls}}var Nc=wellKnownSymbol("iterator"),Lc=!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[Nc]||"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})),Tc=Object.assign,Pc=Object.defineProperty,Fc=!Tc||fails((function(){if(nr&&1!==Tc({b:1},Tc(Pc({},"a",{enumerable:!0,get:function(){Pc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var er={},tr={},rr=Symbol(),ir="abcdefghijklmnopqrst";return er[rr]=7,ir.split("").forEach((function(er){tr[er]=er})),7!=Tc({},er)[rr]||wi(Tc({},tr)).join("")!=ir}))?function assign(er,tr){for(var rr=toObject(er),ir=arguments.length,or=1,sr=Tn.f,lr=ar.f;ir>or;)for(var ur,dr=cr(arguments[or++]),hr=sr?wi(dr).concat(sr(dr)):wi(dr),pr=hr.length,Ar=0;pr>Ar;)ur=hr[Ar++],nr&&!lr.call(dr,ur)||(rr[ur]=dr[ur]);return rr}:Tc,Uc=function from(er){var tr,rr,nr,ir,or,ar,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++)ar=dr?ur(sr[pr],pr):sr[pr],createProperty(rr,pr,ar);else for(or=(ir=hr.call(sr)).next,rr=new lr;!(nr=or.call(ir)).done;pr++)ar=dr?callWithSafeIterationClosing(ir,ur,[nr.value,pr],!0):nr.value,createProperty(rr,pr,ar);return rr.length=pr,rr},Ic=2147483647,Rc=/[^\0-\u007E]/,Mc=/[.\u3002\uFF0E\uFF61]/g,Oc="Overflow: input needs wider integers to process",Qc=Math.floor,Dc=String.fromCharCode,digitToBasic=function(er){return er+22+75*(er<26)},adapt=function(er,tr,rr){var nr=0;for(er=rr?Qc(er/700):er>>1,er+=Qc(er/tr);er>455;nr+=36)er=Qc(er/35);return Qc(nr+36*er/(er+38))},encode=function(er){var tr,rr,nr=[],ir=(er=function(er){for(var tr=[],rr=0,nr=er.length;rr<nr;){var ir=er.charCodeAt(rr++);if(ir>=55296&&ir<=56319&&rr<nr){var or=er.charCodeAt(rr++);56320==(64512&or)?tr.push(((1023&ir)<<10)+(1023&or)+65536):(tr.push(ir),rr--)}else tr.push(ir)}return tr}(er)).length,or=128,ar=0,sr=72;for(tr=0;tr<er.length;tr++)(rr=er[tr])<128&&nr.push(Dc(rr));var lr=nr.length,cr=lr;for(lr&&nr.push("-");cr<ir;){var ur=Ic;for(tr=0;tr<er.length;tr++)(rr=er[tr])>=or&&rr<ur&&(ur=rr);var dr=cr+1;if(ur-or>Qc((Ic-ar)/dr))throw RangeError(Oc);for(ar+=(ur-or)*dr,or=ur,tr=0;tr<er.length;tr++){if((rr=er[tr])<or&&++ar>Ic)throw RangeError(Oc);if(rr==or){for(var hr=ar,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(Dc(digitToBasic(Ar+fr%gr))),hr=Qc(fr/gr)}nr.push(Dc(digitToBasic(hr))),sr=adapt(ar,dr,cr==lr),ar=0,++cr}}++ar,++or}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))},jc=getBuiltIn("fetch"),Hc=getBuiltIn("Headers"),Gc=wellKnownSymbol("iterator"),Vc="URLSearchParams",zc="URLSearchParamsIterator",Kc=jr.set,qc=jr.getterFor(Vc),Wc=jr.getterFor(zc),Xc=/\+/g,Yc=Array(4),percentSequence=function(er){return Yc[er-1]||(Yc[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(Xc," "),rr=4;try{return decodeURIComponent(tr)}catch(er){for(;rr;)tr=tr.replace(percentSequence(rr--),percentDecode);return tr}},Jc=/[!'()~]|%20/g,$c={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(er){return $c[er]},serialize=function(er){return encodeURIComponent(er).replace(Jc,replacer)},parseSearchParams=function(er,tr){if(tr)for(var rr,nr,ir=tr.split("&"),or=0;or<ir.length;)(rr=ir[or++]).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")},Zc=createIteratorConstructor((function Iterator(er,tr){Kc(this,{type:zc,iterator:getIterator(qc(er).entries),kind:tr})}),"Iterator",(function next(){var er=Wc(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})),eu=function URLSearchParams(){anInstance(this,eu,Vc);var er,tr,rr,nr,ir,or,ar,sr,lr,cr=arguments.length>0?arguments[0]:void 0,ur=this,dr=[];if(Kc(ur,{type:Vc,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((ar=(or=(ir=getIterator(anObject(nr.value))).next).call(ir)).done||(sr=or.call(ir)).done||!or.call(ir).done)throw TypeError("Expected sequence with length 2");dr.push({key:ar.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+"")},tu=eu.prototype;redefineAll(tu,{append:function append(er,tr){validateArgumentsLength(arguments.length,2);var rr=qc(this);rr.entries.push({key:er+"",value:tr+""}),rr.updateURL()},delete:function(er){validateArgumentsLength(arguments.length,1);for(var tr=qc(this),rr=tr.entries,nr=er+"",ir=0;ir<rr.length;)rr[ir].key===nr?rr.splice(ir,1):ir++;tr.updateURL()},get:function get(er){validateArgumentsLength(arguments.length,1);for(var tr=qc(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=qc(this).entries,rr=er+"",nr=[],ir=0;ir<tr.length;ir++)tr[ir].key===rr&&nr.push(tr[ir].value);return nr},has:function has(er){validateArgumentsLength(arguments.length,1);for(var tr=qc(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=qc(this),ir=nr.entries,or=!1,ar=er+"",sr=tr+"",lr=0;lr<ir.length;lr++)(rr=ir[lr]).key===ar&&(or?ir.splice(lr--,1):(or=!0,rr.value=sr));or||ir.push({key:ar,value:sr}),nr.updateURL()},sort:function sort(){var er,tr,rr,nr=qc(this),ir=nr.entries,or=ir.slice();for(ir.length=0,rr=0;rr<or.length;rr++){for(er=or[rr],tr=0;tr<rr;tr++)if(ir[tr].key>er.key){ir.splice(tr,0,er);break}tr===rr&&ir.push(er)}nr.updateURL()},forEach:function forEach(er){for(var tr,rr=qc(this).entries,nr=functionBindContext(er,arguments.length>1?arguments[1]:void 0,3),ir=0;ir<rr.length;)nr((tr=rr[ir++]).value,tr.key,this)},keys:function keys(){return new Zc(this,"keys")},values:function values(){return new Zc(this,"values")},entries:function entries(){return new Zc(this,"entries")}},{enumerable:!0}),Hr(tu,Gc,tu.entries),Hr(tu,"toString",(function toString(){for(var er,tr=qc(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(eu,Vc),_export({global:!0,forced:!Lc},{URLSearchParams:eu}),Lc||"function"!=typeof jc||"function"!=typeof Hc||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(er){var tr,rr,nr,ir=[er];return arguments.length>1&&(isObject(tr=arguments[1])&&(rr=tr.body,ko(rr)===Vc&&((nr=tr.headers?new Hc(tr.headers):new Hc).has("content-type")||nr.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),tr=Ci(tr,{body:createPropertyDescriptor(0,String(rr)),headers:createPropertyDescriptor(0,nr)}))),ir.push(tr)),jc.apply(this,ir)}});var ru,nu={URLSearchParams:eu,getState:qc},iu=ba.codeAt,ou=rr.URL,au=nu.URLSearchParams,su=nu.getState,lu=jr.set,uu=jr.getterFor("URL"),du=Math.floor,hu=Math.pow,pu="Invalid scheme",Au="Invalid host",fu="Invalid port",gu=/[A-Za-z]/,mu=/[\d+-.A-Za-z]/,_u=/\d/,vu=/^(0x|0X)/,yu=/^[0-7]+$/,bu=/^\d+$/,wu=/^[\dA-Fa-f]+$/,Su=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,xu=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,ku=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Cu=/[\u0009\u000A\u000D]/g,parseHost=function(er,tr){var rr,nr,ir;if("["==tr.charAt(0)){if("]"!=tr.charAt(tr.length-1))return Au;if(!(rr=parseIPv6(tr.slice(1,-1))))return Au;er.host=rr}else if(isSpecial(er)){if(tr=function(er){var tr,rr,nr=[],ir=er.toLowerCase().replace(Mc,".").split(".");for(tr=0;tr<ir.length;tr++)rr=ir[tr],nr.push(Rc.test(rr)?"xn--"+encode(rr):rr);return nr.join(".")}(tr),Su.test(tr))return Au;if(null===(rr=parseIPv4(tr)))return Au;er.host=rr}else{if(xu.test(tr))return Au;for(rr="",nr=Uc(tr),ir=0;ir<nr.length;ir++)rr+=percentEncode(nr[ir],Bu);er.host=rr}},parseIPv4=function(er){var tr,rr,nr,ir,or,ar,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(""==(ir=lr[nr]))return er;if(or=10,ir.length>1&&"0"==ir.charAt(0)&&(or=vu.test(ir)?16:8,ir=ir.slice(8==or?1:2)),""===ir)ar=0;else{if(!(10==or?bu:8==or?yu:wu).test(ir))return er;ar=parseInt(ir,or)}rr.push(ar)}for(nr=0;nr<tr;nr++)if(ar=rr[nr],nr==tr-1){if(ar>=hu(256,5-tr))return null}else if(ar>255)return null;for(sr=rr.pop(),nr=0;nr<rr.length;nr++)sr+=rr[nr]*hu(256,3-nr);return sr},parseIPv6=function(er){var tr,rr,nr,ir,or,ar,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&&wu.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(ir=null,nr>0){if(!("."==char()&&nr<4))return;dr++}if(!_u.test(char()))return;for(;_u.test(char());){if(or=parseInt(char(),10),null===ir)ir=or;else{if(0==ir)return;ir=10*ir+or}if(ir>255)return;dr++}lr[cr]=256*lr[cr]+ir,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(ar=cr-ur,cr=7;0!=cr&&ar>0;)sr=lr[cr],lr[cr--]=lr[ur+ar-1],lr[ur+--ar]=sr;else if(8!=cr)return;return lr},serializeHost=function(er){var tr,rr,nr,ir;if("number"==typeof er){for(tr=[],rr=0;rr<4;rr++)tr.unshift(er%256),er=du(er/256);return tr.join(".")}if("object"==typeof er){for(tr="",nr=function(er){for(var tr=null,rr=1,nr=null,ir=0,or=0;or<8;or++)0!==er[or]?(ir>rr&&(tr=nr,rr=ir),nr=null,ir=0):(null===nr&&(nr=or),++ir);return ir>rr&&(tr=nr,rr=ir),tr}(er),rr=0;rr<8;rr++)ir&&0===er[rr]||(ir&&(ir=!1),nr===rr?(tr+=rr?":":"::",ir=!0):(tr+=er[rr].toString(16),rr<7&&(tr+=":")));return"["+tr+"]"}return er},Bu={},Eu=Fc({},Bu,{" ":1,'"':1,"<":1,">":1,"`":1}),Nu=Fc({},Eu,{"#":1,"?":1,"{":1,"}":1}),Lu=Fc({},Nu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(er,tr){var rr=iu(er,0);return rr>32&&rr<127&&!has(tr,er)?er:encodeURIComponent(er)},Tu={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(er){return has(Tu,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&&gu.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()},Pu={},Fu={},Uu={},Iu={},Ru={},Mu={},Ou={},Qu={},Du={},ju={},Hu={},Gu={},Vu={},zu={},Ku={},qu={},Wu={},Xu={},Yu={},Ju={},$u={},parseURL=function(er,tr,rr,nr){var ir,or,ar,sr,lr,cr=rr||Pu,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(ku,"")),tr=tr.replace(Cu,""),ir=Uc(tr);ur<=ir.length;){switch(or=ir[ur],cr){case Pu:if(!or||!gu.test(or)){if(rr)return pu;cr=Uu;continue}dr+=or.toLowerCase(),cr=Fu;break;case Fu:if(or&&(mu.test(or)||"+"==or||"-"==or||"."==or))dr+=or.toLowerCase();else{if(":"!=or){if(rr)return pu;dr="",cr=Uu,ur=0;continue}if(rr&&(isSpecial(er)!=has(Tu,dr)||"file"==dr&&(includesCredentials(er)||null!==er.port)||"file"==er.scheme&&!er.host))return;if(er.scheme=dr,rr)return void(isSpecial(er)&&Tu[er.scheme]==er.port&&(er.port=null));dr="","file"==er.scheme?cr=zu:isSpecial(er)&&nr&&nr.scheme==er.scheme?cr=Iu:isSpecial(er)?cr=Qu:"/"==ir[ur+1]?(cr=Ru,ur++):(er.cannotBeABaseURL=!0,er.path.push(""),cr=Yu)}break;case Uu:if(!nr||nr.cannotBeABaseURL&&"#"!=or)return pu;if(nr.cannotBeABaseURL&&"#"==or){er.scheme=nr.scheme,er.path=nr.path.slice(),er.query=nr.query,er.fragment="",er.cannotBeABaseURL=!0,cr=$u;break}cr="file"==nr.scheme?zu:Mu;continue;case Iu:if("/"!=or||"/"!=ir[ur+1]){cr=Mu;continue}cr=Du,ur++;break;case Ru:if("/"==or){cr=ju;break}cr=Xu;continue;case Mu:if(er.scheme=nr.scheme,or==ru)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("/"==or||"\\"==or&&isSpecial(er))cr=Ou;else if("?"==or)er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,er.path=nr.path.slice(),er.query="",cr=Ju;else{if("#"!=or){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=Xu;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=$u}break;case Ou:if(!isSpecial(er)||"/"!=or&&"\\"!=or){if("/"!=or){er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,cr=Xu;continue}cr=ju}else cr=Du;break;case Qu:if(cr=Du,"/"!=or||"/"!=dr.charAt(ur+1))continue;ur++;break;case Du:if("/"!=or&&"\\"!=or){cr=ju;continue}break;case ju:if("@"==or){hr&&(dr="%40"+dr),hr=!0,ar=Uc(dr);for(var fr=0;fr<ar.length;fr++){var gr=ar[fr];if(":"!=gr||Ar){var mr=percentEncode(gr,Lu);Ar?er.password+=mr:er.username+=mr}else Ar=!0}dr=""}else if(or==ru||"/"==or||"?"==or||"#"==or||"\\"==or&&isSpecial(er)){if(hr&&""==dr)return"Invalid authority";ur-=Uc(dr).length+1,dr="",cr=Hu}else dr+=or;break;case Hu:case Gu:if(rr&&"file"==er.scheme){cr=qu;continue}if(":"!=or||pr){if(or==ru||"/"==or||"?"==or||"#"==or||"\\"==or&&isSpecial(er)){if(isSpecial(er)&&""==dr)return Au;if(rr&&""==dr&&(includesCredentials(er)||null!==er.port))return;if(sr=parseHost(er,dr))return sr;if(dr="",cr=Wu,rr)return;continue}"["==or?pr=!0:"]"==or&&(pr=!1),dr+=or}else{if(""==dr)return Au;if(sr=parseHost(er,dr))return sr;if(dr="",cr=Vu,rr==Gu)return}break;case Vu:if(!_u.test(or)){if(or==ru||"/"==or||"?"==or||"#"==or||"\\"==or&&isSpecial(er)||rr){if(""!=dr){var _r=parseInt(dr,10);if(_r>65535)return fu;er.port=isSpecial(er)&&_r===Tu[er.scheme]?null:_r,dr=""}if(rr)return;cr=Wu;continue}return fu}dr+=or;break;case zu:if(er.scheme="file","/"==or||"\\"==or)cr=Ku;else{if(!nr||"file"!=nr.scheme){cr=Xu;continue}if(or==ru)er.host=nr.host,er.path=nr.path.slice(),er.query=nr.query;else if("?"==or)er.host=nr.host,er.path=nr.path.slice(),er.query="",cr=Ju;else{if("#"!=or){startsWithWindowsDriveLetter(ir.slice(ur).join(""))||(er.host=nr.host,er.path=nr.path.slice(),shortenURLsPath(er)),cr=Xu;continue}er.host=nr.host,er.path=nr.path.slice(),er.query=nr.query,er.fragment="",cr=$u}}break;case Ku:if("/"==or||"\\"==or){cr=qu;break}nr&&"file"==nr.scheme&&!startsWithWindowsDriveLetter(ir.slice(ur).join(""))&&(isWindowsDriveLetter(nr.path[0],!0)?er.path.push(nr.path[0]):er.host=nr.host),cr=Xu;continue;case qu:if(or==ru||"/"==or||"\\"==or||"?"==or||"#"==or){if(!rr&&isWindowsDriveLetter(dr))cr=Xu;else if(""==dr){if(er.host="",rr)return;cr=Wu}else{if(sr=parseHost(er,dr))return sr;if("localhost"==er.host&&(er.host=""),rr)return;dr="",cr=Wu}continue}dr+=or;break;case Wu:if(isSpecial(er)){if(cr=Xu,"/"!=or&&"\\"!=or)continue}else if(rr||"?"!=or)if(rr||"#"!=or){if(or!=ru&&(cr=Xu,"/"!=or))continue}else er.fragment="",cr=$u;else er.query="",cr=Ju;break;case Xu:if(or==ru||"/"==or||"\\"==or&&isSpecial(er)||!rr&&("?"==or||"#"==or)){if(".."===(lr=(lr=dr).toLowerCase())||"%2e."===lr||".%2e"===lr||"%2e%2e"===lr?(shortenURLsPath(er),"/"==or||"\\"==or&&isSpecial(er)||er.path.push("")):isSingleDot(dr)?"/"==or||"\\"==or&&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&&(or==ru||"?"==or||"#"==or))for(;er.path.length>1&&""===er.path[0];)er.path.shift();"?"==or?(er.query="",cr=Ju):"#"==or&&(er.fragment="",cr=$u)}else dr+=percentEncode(or,Nu);break;case Yu:"?"==or?(er.query="",cr=Ju):"#"==or?(er.fragment="",cr=$u):or!=ru&&(er.path[0]+=percentEncode(or,Bu));break;case Ju:rr||"#"!=or?or!=ru&&("'"==or&&isSpecial(er)?er.query+="%27":er.query+="#"==or?"%23":percentEncode(or,Bu)):(er.fragment="",cr=$u);break;case $u:or!=ru&&(er.fragment+=percentEncode(or,Eu))}ur++}},Zu=function URL(er){var tr,rr,ir=anInstance(this,Zu,"URL"),or=arguments.length>1?arguments[1]:void 0,ar=String(er),sr=lu(ir,{type:"URL"});if(void 0!==or)if(or instanceof Zu)tr=uu(or);else if(rr=parseURL(tr={},String(or)))throw TypeError(rr);if(rr=parseURL(sr,ar,null,tr))throw TypeError(rr);var lr=sr.searchParams=new au,cr=su(lr);cr.updateSearchParams(sr.query),cr.updateURL=function(){sr.query=String(lr)||null},nr||(ir.href=serializeURL.call(ir),ir.origin=getOrigin.call(ir),ir.protocol=getProtocol.call(ir),ir.username=getUsername.call(ir),ir.password=getPassword.call(ir),ir.host=getHost.call(ir),ir.hostname=getHostname.call(ir),ir.port=getPort.call(ir),ir.pathname=getPathname.call(ir),ir.search=getSearch.call(ir),ir.searchParams=getSearchParams.call(ir),ir.hash=getHash.call(ir))},ed=Zu.prototype,serializeURL=function(){var er=uu(this),tr=er.scheme,rr=er.username,nr=er.password,ir=er.host,or=er.port,ar=er.path,sr=er.query,lr=er.fragment,cr=tr+":";return null!==ir?(cr+="//",includesCredentials(er)&&(cr+=rr+(nr?":"+nr:"")+"@"),cr+=serializeHost(ir),null!==or&&(cr+=":"+or)):"file"==tr&&(cr+="//"),cr+=er.cannotBeABaseURL?ar[0]:ar.length?"/"+ar.join("/"):"",null!==sr&&(cr+="?"+sr),null!==lr&&(cr+="#"+lr),cr},getOrigin=function(){var er=uu(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 uu(this).scheme+":"},getUsername=function(){return uu(this).username},getPassword=function(){return uu(this).password},getHost=function(){var er=uu(this),tr=er.host,rr=er.port;return null===tr?"":null===rr?serializeHost(tr):serializeHost(tr)+":"+rr},getHostname=function(){var er=uu(this).host;return null===er?"":serializeHost(er)},getPort=function(){var er=uu(this).port;return null===er?"":String(er)},getPathname=function(){var er=uu(this),tr=er.path;return er.cannotBeABaseURL?tr[0]:tr.length?"/"+tr.join("/"):""},getSearch=function(){var er=uu(this).query;return er?"?"+er:""},getSearchParams=function(){return uu(this).searchParams},getHash=function(){var er=uu(this).fragment;return er?"#"+er:""},accessorDescriptor=function(er,tr){return{get:er,set:tr,configurable:!0,enumerable:!0}};if(nr&&Si(ed,{href:accessorDescriptor(serializeURL,(function(er){var tr=uu(this),rr=String(er),nr=parseURL(tr,rr);if(nr)throw TypeError(nr);su(tr.searchParams).updateSearchParams(tr.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(er){var tr=uu(this);parseURL(tr,String(er)+":",Pu)})),username:accessorDescriptor(getUsername,(function(er){var tr=uu(this),rr=Uc(String(er));if(!cannotHaveUsernamePasswordPort(tr)){tr.username="";for(var nr=0;nr<rr.length;nr++)tr.username+=percentEncode(rr[nr],Lu)}})),password:accessorDescriptor(getPassword,(function(er){var tr=uu(this),rr=Uc(String(er));if(!cannotHaveUsernamePasswordPort(tr)){tr.password="";for(var nr=0;nr<rr.length;nr++)tr.password+=percentEncode(rr[nr],Lu)}})),host:accessorDescriptor(getHost,(function(er){var tr=uu(this);tr.cannotBeABaseURL||parseURL(tr,String(er),Hu)})),hostname:accessorDescriptor(getHostname,(function(er){var tr=uu(this);tr.cannotBeABaseURL||parseURL(tr,String(er),Gu)})),port:accessorDescriptor(getPort,(function(er){var tr=uu(this);cannotHaveUsernamePasswordPort(tr)||(""==(er=String(er))?tr.port=null:parseURL(tr,er,Vu))})),pathname:accessorDescriptor(getPathname,(function(er){var tr=uu(this);tr.cannotBeABaseURL||(tr.path=[],parseURL(tr,er+"",Wu))})),search:accessorDescriptor(getSearch,(function(er){var tr=uu(this);""==(er=String(er))?tr.query=null:("?"==er.charAt(0)&&(er=er.slice(1)),tr.query="",parseURL(tr,er,Ju)),su(tr.searchParams).updateSearchParams(tr.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(er){var tr=uu(this);""!=(er=String(er))?("#"==er.charAt(0)&&(er=er.slice(1)),tr.fragment="",parseURL(tr,er,$u)):tr.fragment=null}))}),Hr(ed,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),Hr(ed,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),ou){var td=ou.createObjectURL,rd=ou.revokeObjectURL;td&&Hr(Zu,"createObjectURL",(function createObjectURL(er){return td.apply(ou,arguments)})),rd&&Hr(Zu,"revokeObjectURL",(function revokeObjectURL(er){return rd.apply(ou,arguments)}))}setToStringTag(Zu,"URL"),_export({global:!0,forced:!Lc,sham:!nr},{URL:Zu});var nd=Zr.f,id={}.toString,od="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ad={f:function getOwnPropertyNames(er){return od&&"[object Window]"==id.call(er)?function(er){try{return nd(er)}catch(er){return od.slice()}}(er):nd(toIndexedObject(er))}},sd={f:wellKnownSymbol},ld=mr.f,defineWellKnownSymbol=function(er){var tr=Gr.Symbol||(Gr.Symbol={});has(tr,er)||ld(tr,er,{value:sd.f(er)})},cd=Ai.forEach,ud=sharedKey("hidden"),dd="Symbol",hd=wellKnownSymbol("toPrimitive"),pd=jr.set,Ad=jr.getterFor(dd),fd=Object.prototype,gd=rr.Symbol,md=getBuiltIn("JSON","stringify"),_d=fr.f,vd=mr.f,yd=ad.f,bd=ar.f,wd=Er("symbols"),Sd=Er("op-symbols"),xd=Er("string-to-symbol-registry"),kd=Er("symbol-to-string-registry"),Cd=Er("wks"),Bd=rr.QObject,Ed=!Bd||!Bd.prototype||!Bd.prototype.findChild,Nd=nr&&fails((function(){return 7!=Ci(vd({},"a",{get:function(){return vd(this,"a",{value:7}).a}})).a}))?function(er,tr,rr){var nr=_d(fd,tr);nr&&delete fd[tr],vd(er,tr,rr),nr&&er!==fd&&vd(fd,tr,nr)}:vd,wrap=function(er,tr){var rr=wd[er]=Ci(gd.prototype);return pd(rr,{type:dd,tag:er,description:tr}),nr||(rr.description=tr),rr},Ld=Yn?function(er){return"symbol"==typeof er}:function(er){return Object(er)instanceof gd},Td=function defineProperty(er,tr,rr){er===fd&&Td(Sd,tr,rr),anObject(er);var nr=toPrimitive(tr,!0);return anObject(rr),has(wd,nr)?(rr.enumerable?(has(er,ud)&&er[ud][nr]&&(er[ud][nr]=!1),rr=Ci(rr,{enumerable:createPropertyDescriptor(0,!1)})):(has(er,ud)||vd(er,ud,createPropertyDescriptor(1,{})),er[ud][nr]=!0),Nd(er,nr,rr)):vd(er,nr,rr)},Pd=function defineProperties(er,tr){anObject(er);var rr=toIndexedObject(tr),ir=wi(rr).concat(Rd(rr));return cd(ir,(function(tr){nr&&!Fd.call(rr,tr)||Td(er,tr,rr[tr])})),er},Fd=function propertyIsEnumerable(er){var tr=toPrimitive(er,!0),rr=bd.call(this,tr);return!(this===fd&&has(wd,tr)&&!has(Sd,tr))&&(!(rr||!has(this,tr)||!has(wd,tr)||has(this,ud)&&this[ud][tr])||rr)},Ud=function getOwnPropertyDescriptor(er,tr){var rr=toIndexedObject(er),nr=toPrimitive(tr,!0);if(rr!==fd||!has(wd,nr)||has(Sd,nr)){var ir=_d(rr,nr);return!ir||!has(wd,nr)||has(rr,ud)&&rr[ud][nr]||(ir.enumerable=!0),ir}},Id=function getOwnPropertyNames(er){var tr=yd(toIndexedObject(er)),rr=[];return cd(tr,(function(er){has(wd,er)||has(Pr,er)||rr.push(er)})),rr},Rd=function getOwnPropertySymbols(er){var tr=er===fd,rr=yd(tr?Sd:toIndexedObject(er)),nr=[];return cd(rr,(function(er){!has(wd,er)||tr&&!has(fd,er)||nr.push(wd[er])})),nr};if(Xn||(Hr((gd=function Symbol(){if(this instanceof gd)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===fd&&setter.call(Sd,er),has(this,ud)&&has(this[ud],tr)&&(this[ud][tr]=!1),Nd(this,tr,createPropertyDescriptor(1,er))};return nr&&Ed&&Nd(fd,tr,{configurable:!0,set:setter}),wrap(tr,er)}).prototype,"toString",(function toString(){return Ad(this).tag})),Hr(gd,"withoutSetter",(function(er){return wrap(uid(er),er)})),ar.f=Fd,mr.f=Td,fr.f=Ud,Zr.f=ad.f=Id,Tn.f=Rd,sd.f=function(er){return wrap(wellKnownSymbol(er),er)},nr&&(vd(gd.prototype,"description",{configurable:!0,get:function description(){return Ad(this).description}}),Hr(fd,"propertyIsEnumerable",Fd,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!Xn,sham:!Xn},{Symbol:gd}),cd(wi(Cd),(function(er){defineWellKnownSymbol(er)})),_export({target:dd,stat:!0,forced:!Xn},{for:function(er){var tr=String(er);if(has(xd,tr))return xd[tr];var rr=gd(tr);return xd[tr]=rr,kd[rr]=tr,rr},keyFor:function keyFor(er){if(!Ld(er))throw TypeError(er+" is not a symbol");if(has(kd,er))return kd[er]},useSetter:function(){Ed=!0},useSimple:function(){Ed=!1}}),_export({target:"Object",stat:!0,forced:!Xn,sham:!nr},{create:function create(er,tr){return void 0===tr?Ci(er):Pd(Ci(er),tr)},defineProperty:Td,defineProperties:Pd,getOwnPropertyDescriptor:Ud}),_export({target:"Object",stat:!0,forced:!Xn},{getOwnPropertyNames:Id,getOwnPropertySymbols:Rd}),_export({target:"Object",stat:!0,forced:fails((function(){Tn.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(er){return Tn.f(toObject(er))}}),md){var Md=!Xn||fails((function(){var er=gd();return"[null]"!=md([er])||"{}"!=md({a:er})||"{}"!=md(Object(er))}));_export({target:"JSON",stat:!0,forced:Md},{stringify:function stringify(er,tr,rr){for(var nr,ir=[er],or=1;arguments.length>or;)ir.push(arguments[or++]);if(nr=tr,(isObject(tr)||void 0!==er)&&!Ld(er))return Wn(tr)||(tr=function(er,tr){if("function"==typeof nr&&(tr=nr.call(this,er,tr)),!Ld(tr))return tr}),ir[1]=tr,md.apply(null,ir)}})}gd.prototype[hd]||_r(gd.prototype,hd,gd.prototype.valueOf),setToStringTag(gd,dd),Pr[ud]=!0;var Od=mr.f,Qd=rr.Symbol;if(nr&&"function"==typeof Qd&&(!("description"in Qd.prototype)||void 0!==Qd().description)){var Dd={},jd=function Symbol(){var er=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),tr=this instanceof jd?new Qd(er):void 0===er?Qd():Qd(er);return""===er&&(Dd[tr]=!0),tr};copyConstructorProperties(jd,Qd);var Hd=jd.prototype=Qd.prototype;Hd.constructor=jd;var Gd=Hd.toString,Vd="Symbol(test)"==String(Qd("test")),zd=/^Symbol\((.*)\)[^)]+$/;Od(Hd,"description",{configurable:!0,get:function description(){var er=isObject(this)?this.valueOf():this,tr=Gd.call(er);if(has(Dd,er))return"";var rr=Vd?tr.slice(7,-1):tr.replace(zd,"$1");return""===rr?void 0:rr}}),_export({global:!0,forced:!0},{Symbol:jd})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag"),setToStringTag(rr.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!nr},{create:Ci}),_export({target:"Object",stat:!0,forced:!nr,sham:!nr},{defineProperty:mr.f});var Kd=fails((function(){Ha(1)}));_export({target:"Object",stat:!0,forced:Kd,sham:!Qa},{getPrototypeOf:function getPrototypeOf(er){return Ha(toObject(er))}}),_export({target:"Object",stat:!0},{setPrototypeOf:Qo});var qd=createCommonjsModule((function(er){var tr=function(er){var tr,rr=Object.prototype,nr=rr.hasOwnProperty,ir="function"==typeof Symbol?Symbol:{},or=ir.iterator||"@@iterator",ar=ir.asyncIterator||"@@asyncIterator",sr=ir.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 ir=tr&&tr.prototype instanceof Generator?tr:Generator,or=Object.create(ir.prototype),ar=new Context(nr||[]);return or._invoke=function makeInvokeMethod(er,tr,rr){var nr=lr;return function invoke(ir,or){if(nr===ur)throw new Error("Generator is already running");if(nr===dr){if("throw"===ir)throw or;return doneResult()}for(rr.method=ir,rr.arg=or;;){var ar=rr.delegate;if(ar){var sr=maybeInvokeDelegate(ar,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,ar),or}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[or]=function(){return this};var Ar=Object.getPrototypeOf,fr=Ar&&Ar(Ar(values([])));fr&&fr!==rr&&nr.call(fr,or)&&(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(ir,or){function callInvokeWithMethodAndArg(){return new tr((function(rr,ar){!function invoke(rr,ir,or,ar){var sr=tryCatch(er[rr],er,ir);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,or,ar)}),(function(er){invoke("throw",er,or,ar)})):tr.resolve(cr).then((function(er){lr.value=er,or(lr)}),(function(er){return invoke("throw",er,or,ar)}))}ar(sr.arg)}(ir,or,rr,ar)}))}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 ir=tryCatch(nr,er.iterator,rr.arg);if("throw"===ir.type)return rr.method="throw",rr.arg=ir.arg,rr.delegate=null,hr;var or=ir.arg;return or?or.done?(rr[er.resultName]=or.value,rr.next=er.nextLoc,"return"!==rr.method&&(rr.method="next",rr.arg=tr),rr.delegate=null,hr):or:(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[or];if(rr)return rr.call(er);if("function"==typeof er.next)return er;if(!isNaN(er.length)){var ir=-1,ar=function next(){for(;++ir<er.length;)if(nr.call(er,ir))return next.value=er[ir],next.done=!1,next;return next.value=tr,next.done=!0,next};return ar.next=ar}}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[ar]=function(){return this},er.AsyncIterator=AsyncIterator,er.async=function(tr,rr,nr,ir,or){void 0===or&&(or=Promise);var ar=new AsyncIterator(wrap(tr,rr,nr,ir),or);return er.isGeneratorFunction(rr)?ar:ar.next().then((function(er){return er.done?er.value:ar.next()}))},defineIteratorMethods(gr),define(gr,sr,"Generator"),gr[or]=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,ir){return ar.type="throw",ar.arg=er,rr.next=nr,ir&&(rr.method="next",rr.arg=tr),!!ir}for(var ir=this.tryEntries.length-1;ir>=0;--ir){var or=this.tryEntries[ir],ar=or.completion;if("root"===or.tryLoc)return handle("end");if(or.tryLoc<=this.prev){var sr=nr.call(or,"catchLoc"),lr=nr.call(or,"finallyLoc");if(sr&&lr){if(this.prev<or.catchLoc)return handle(or.catchLoc,!0);if(this.prev<or.finallyLoc)return handle(or.finallyLoc)}else if(sr){if(this.prev<or.catchLoc)return handle(or.catchLoc,!0)}else{if(!lr)throw new Error("try statement without catch or finally");if(this.prev<or.finallyLoc)return handle(or.finallyLoc)}}}},abrupt:function abrupt(er,tr){for(var rr=this.tryEntries.length-1;rr>=0;--rr){var ir=this.tryEntries[rr];if(ir.tryLoc<=this.prev&&nr.call(ir,"finallyLoc")&&this.prev<ir.finallyLoc){var or=ir;break}}or&&("break"===er||"continue"===er)&&or.tryLoc<=tr&&tr<=or.finallyLoc&&(or=null);var ar=or?or.completion:{};return ar.type=er,ar.arg=tr,or?(this.method="next",this.next=or.finallyLoc,hr):this.complete(ar)},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 ir=nr.arg;resetTryEntry(rr)}return ir}}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)}})),Wd=createCommonjsModule((function(er,tr){er.exports=function(){var er={true:!0,false:!1,null:null};function deparam(tr,rr){var nr={};return tr.replace(/\+/g," ").split("&").forEach((function(tr){var ir=tr.split("="),or=decodeURIComponent(ir[0]),ar=or.split("]["),sr=ar.length-1;if(/\[/.test(ar[0])&&/\]$/.test(ar[sr])?(ar[sr]=ar[sr].replace(/\]$/,""),sr=(ar=ar.shift().split("[").concat(ar)).length-1):sr=0,ir.length>=2){var lr=decodeURIComponent(ir.slice(1).join("="));if(rr&&(lr=lr&&!isNaN(lr)?+lr:"undefined"===lr?void 0:void 0!==er[lr]?er[lr]:lr),sr)for(var cr=nr,ur=0;ur<=sr;ur++)cr=cr[or=""===ar[ur]?cr.length:ar[ur]]=ur<sr?cr[or]||(ar[ur+1]&&isNaN(ar[ur+1])?{}:[]):lr;else Array.isArray(nr[or])?nr[or].push(lr):void 0!==nr[or]?nr[or]=[nr[or],lr]:nr[or]=lr}else or&&(nr[or]=rr?void 0:"")})),nr}return deparam}()}));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 ir=rr.screenX,or=rr.screenY,ar=rr.clientX,sr=rr.clientY,lr=new MouseEvent(nr,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:ir,screenY:or,clientX:ar,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 Xd={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/"},Yd=function getReverseNS(){var er={};return Object.entries(Xd).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ir=rr[1];er[ir]=nr.toLowerCase()})),er};"SVGPathSeg"in window||(window.SVGPathSeg=function(er,tr,rr){this.pathSegType=er,this.pathSegTypeAsLetter=tr,this._owningPathSegList=rr},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(er){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",er)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",er),this._x=tr,this._y=rr},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",er),this._x=tr,this._y=rr},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",er),this._x=tr,this._y=rr},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",er),this._x=tr,this._y=rr},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(er,tr,rr,nr,ir,or,ar){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",er),this._x=tr,this._y=rr,this._x1=nr,this._y1=ir,this._x2=or,this._y2=ar},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(er,tr,rr,nr,ir,or,ar){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",er),this._x=tr,this._y=rr,this._x1=nr,this._y1=ir,this._x2=or,this._y2=ar},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(er,tr,rr,nr,ir){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",er),this._x=tr,this._y=rr,this._x1=nr,this._y1=ir},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(er,tr,rr,nr,ir){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",er),this._x=tr,this._y=rr,this._x1=nr,this._y1=ir},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(er,tr,rr,nr,ir,or,ar,sr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",er),this._x=tr,this._y=rr,this._r1=nr,this._r2=ir,this._angle=or,this._largeArcFlag=ar,this._sweepFlag=sr},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function get(){return this._r1},set:function set(er){this._r1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function get(){return this._r2},set:function set(er){this._r2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function get(){return this._angle},set:function set(er){this._angle=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function get(){return this._largeArcFlag},set:function set(er){this._largeArcFlag=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function get(){return this._sweepFlag},set:function set(er){this._sweepFlag=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(er,tr,rr,nr,ir,or,ar,sr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",er),this._x=tr,this._y=rr,this._r1=nr,this._r2=ir,this._angle=or,this._largeArcFlag=ar,this._sweepFlag=sr},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function get(){return this._r1},set:function set(er){this._r1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function get(){return this._r2},set:function set(er){this._r2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function get(){return this._angle},set:function set(er){this._angle=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function get(){return this._largeArcFlag},set:function set(er){this._largeArcFlag=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function get(){return this._sweepFlag},set:function set(er){this._sweepFlag=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(er,tr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",er),this._x=tr},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(er,tr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",er),this._x=tr},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(er,tr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",er),this._y=tr},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(er,tr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",er),this._y=tr},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(er,tr,rr,nr,ir){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",er),this._x=tr,this._y=rr,this._x2=nr,this._y2=ir},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(er,tr,rr,nr,ir){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",er),this._x=tr,this._y=rr,this._x2=nr,this._y2=ir},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",er),this._x=tr,this._y=rr},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",er),this._x=tr,this._y=rr},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(er,tr){return new window.SVGPathSegMovetoAbs(void 0,er,tr)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(er,tr){return new window.SVGPathSegMovetoRel(void 0,er,tr)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(er,tr){return new window.SVGPathSegLinetoAbs(void 0,er,tr)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(er,tr){return new window.SVGPathSegLinetoRel(void 0,er,tr)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(er,tr,rr,nr,ir,or){return new window.SVGPathSegCurvetoCubicAbs(void 0,er,tr,rr,nr,ir,or)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(er,tr,rr,nr,ir,or){return new window.SVGPathSegCurvetoCubicRel(void 0,er,tr,rr,nr,ir,or)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(er,tr,rr,nr){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,er,tr,rr,nr)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(er,tr,rr,nr){return new window.SVGPathSegCurvetoQuadraticRel(void 0,er,tr,rr,nr)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(er,tr,rr,nr,ir,or,ar){return new window.SVGPathSegArcAbs(void 0,er,tr,rr,nr,ir,or,ar)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(er,tr,rr,nr,ir,or,ar){return new window.SVGPathSegArcRel(void 0,er,tr,rr,nr,ir,or,ar)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(er){return new window.SVGPathSegLinetoHorizontalAbs(void 0,er)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(er){return new window.SVGPathSegLinetoHorizontalRel(void 0,er)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(er){return new window.SVGPathSegLinetoVerticalAbs(void 0,er)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(er){return new window.SVGPathSegLinetoVerticalRel(void 0,er)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(er,tr,rr,nr){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,er,tr,rr,nr)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(er,tr,rr,nr){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,er,tr,rr,nr)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(er,tr){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,er,tr)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(er,tr){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,er,tr)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(er){if(void 0===er||!isFinite(er))throw"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})),"SVGPathSegList"in window&&"appendItem"in window.SVGPathSegList.prototype||(window.SVGPathSegList=function(er){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)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function get(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function get(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(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")))}},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(er){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach((function(er){er._owningPathSegList=null})),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(er){return this._checkPathSynchronizedToList(),this._list=[er],er._owningPathSegList=this,this._writeListToPath(),er},window.SVGPathSegList.prototype._checkValidIndex=function(er){if(isNaN(er)||er<0||er>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(er){return this._checkPathSynchronizedToList(),this._checkValidIndex(er),this._list[er]},window.SVGPathSegList.prototype.insertItemBefore=function(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},window.SVGPathSegList.prototype.replaceItem=function(er,tr){return this._checkPathSynchronizedToList(),er._owningPathSegList&&(er=er.clone()),this._checkValidIndex(tr),this._list[tr]=er,er._owningPathSegList=this,this._writeListToPath(),er},window.SVGPathSegList.prototype.removeItem=function(er){this._checkPathSynchronizedToList(),this._checkValidIndex(er);var tr=this._list[er];return this._list.splice(er,1),this._writeListToPath(),tr},window.SVGPathSegList.prototype.appendItem=function(er){return this._checkPathSynchronizedToList(),er._owningPathSegList&&(er=er.clone()),this._list.push(er),er._owningPathSegList=this,this._writeListToPath(),er},window.SVGPathSegList._pathSegArrayAsString=function(er){var tr="",rr=!0;return er.forEach((function(er){rr?(rr=!1,tr+=er._asPathString()):tr+=" "+er._asPathString()})),tr},window.SVGPathSegList.prototype._parsePath=function(er){if(!er||0==er.length)return[];var tr=this,rr=function Builder(){this.pathSegList=[]};rr.prototype.appendSegment=function(er){this.pathSegList.push(er)};var nr=function Source(er){this._string=er,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};nr.prototype._isCurrentSpace=function(){var er=this._string[this._currentIndex];return er<=" "&&(" "==er||"\n"==er||"\t"==er||"\r"==er||"\f"==er)},nr.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},nr.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},nr.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},nr.prototype.peekSegmentType=function(){var er=this._string[this._currentIndex];return this._pathSegTypeFromChar(er)},nr.prototype._pathSegTypeFromChar=function(er){switch(er){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},nr.prototype._nextCommandHelper=function(er,tr){return("+"==er||"-"==er||"."==er||er>="0"&&er<="9")&&tr!=window.SVGPathSeg.PATHSEG_CLOSEPATH?tr==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:tr==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:tr:window.SVGPathSeg.PATHSEG_UNKNOWN},nr.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var er=this.peekSegmentType();return er==window.SVGPathSeg.PATHSEG_MOVETO_ABS||er==window.SVGPathSeg.PATHSEG_MOVETO_REL},nr.prototype._parseNumber=function(){var er=0,tr=0,rr=1,nr=0,ir=1,or=1,ar=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++,ir=-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!=ar&&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++,or=-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*=ir,er&&(ur*=Math.pow(10,or*er)),ar!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),ur}},nr.prototype._parseArcFlag=function(){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}},nr.prototype.parseSegment=function(){var er=this._string[this._currentIndex],rr=this._pathSegTypeFromChar(er);if(rr==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((rr=this._nextCommandHelper(er,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=rr,rr){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(tr,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(tr,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(tr,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(tr,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(tr);case window.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 window.SVGPathSegCurvetoCubicRel(tr,nr.x,nr.y,nr.x1,nr.y1,nr.x2,nr.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return nr={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(tr,nr.x,nr.y,nr.x1,nr.y1,nr.x2,nr.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return nr={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(tr,nr.x,nr.y,nr.x2,nr.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return nr={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(tr,nr.x,nr.y,nr.x2,nr.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return nr={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(tr,nr.x,nr.y,nr.x1,nr.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return nr={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(tr,nr.x,nr.y,nr.x1,nr.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return nr={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(tr,nr.x,nr.y,nr.x1,nr.y1,nr.arcAngle,nr.arcLarge,nr.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return nr={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(tr,nr.x,nr.y,nr.x1,nr.y1,nr.arcAngle,nr.arcLarge,nr.arcSweep);default:throw"Unknown path seg type."}};var ir=new rr,or=new nr(er);if(!or.initialCommandIsMoveTo())return[];for(;or.hasMoreData();){var ar=or.parseSegment();if(!ar)return[];ir.appendSegment(ar)}return ir.pathSegList});Boolean(document.createElementNS&&document.createElementNS(Xd.SVG,"svg").createSVGRect);var Jd,$d=navigator.userAgent,Zd=document.createElementNS(Xd.SVG,"svg"),eh=Boolean(window.opera),th=$d.includes("AppleWebKit"),rh=$d.includes("Gecko/"),nh=$d.includes("MSIE"),ih=$d.includes("Chrome/"),oh=($d.includes("Windows"),$d.includes("Macintosh")),ah="ontouchstart"in window,sh=Boolean(Zd.querySelector),lh=Boolean(document.evaluate),ch=function(){var er=document.createElementNS(Xd.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}(),uh=function(){var er=document.createElementNS(Xd.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}(),dh=function(){var er=document.createElementNS(Xd.SVG,"svg"),tr=document.createElementNS(Xd.SVG,"svg");document.documentElement.append(er),tr.setAttribute("x",5),er.append(tr);var rr=document.createElementNS(Xd.SVG,"text");rr.textContent="a",tr.append(rr);try{return 0===rr.getStartPositionOfChar(0).x}catch(er){return!1}finally{er.remove()}}(),hh=function(){var er=document.createElementNS(Xd.SVG,"svg");document.documentElement.append(er);var tr=document.createElementNS(Xd.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}(),ph=function(){var er=document.createElementNS(Xd.SVG,"svg");document.documentElement.append(er);var tr=document.createElementNS(Xd.SVG,"path");tr.setAttribute("d","M0,0 10,0");var rr=document.createElementNS(Xd.SVG,"path");rr.setAttribute("d","M5,0 15,0");var nr=document.createElementNS(Xd.SVG,"g");nr.append(tr,rr),er.append(nr);var ir=nr.getBBox();return er.remove(),15===ir.width}(),Ah=((Jd=document.createElementNS(Xd.SVG,"rect")).setAttribute("style","vector-effect:non-scaling-stroke"),"non-scaling-stroke"===Jd.style.vectorEffect),fh=function(){var er=document.createElementNS(Xd.SVG,"rect").transform.baseVal,tr=Zd.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}(),gh=function isWebkit(){return th},mh=function isGecko(){return rh},_h=function isIE(){return nh},vh=function isChrome(){return ih},yh=function isMac(){return oh},bh=function isTouch(){return ah},wh=function supportsGoodTextCharPos(){return dh},Sh=function supportsNonScalingStroke(){return Ah},xh="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},kh=1/0,Ch=Math.abs,Bh=Math.pow,Eh=Math.floor,Nh=Math.log,Lh=Math.LN2,ieee754_pack=function(er,tr,rr){var nr,ir,or,ar=new Array(rr),sr=8*rr-tr-1,lr=(1<<sr)-1,cr=lr>>1,ur=23===tr?Bh(2,-24)-Bh(2,-77):0,dr=er<0||0===er&&1/er<0?1:0,hr=0;for((er=Ch(er))!=er||er===kh?(ir=er!=er?1:0,nr=lr):(nr=Eh(Nh(er)/Lh),er*(or=Bh(2,-nr))<1&&(nr--,or*=2),(er+=nr+cr>=1?ur/or:ur*Bh(2,1-cr))*or>=2&&(nr++,or/=2),nr+cr>=lr?(ir=0,nr=lr):nr+cr>=1?(ir=(er*or-1)*Bh(2,tr),nr+=cr):(ir=er*Bh(2,cr-1)*Bh(2,tr),nr=0));tr>=8;ar[hr++]=255&ir,ir/=256,tr-=8);for(nr=nr<<tr|ir,sr+=tr;sr>0;ar[hr++]=255&nr,nr/=256,sr-=8);return ar[--hr]|=128*dr,ar},ieee754_unpack=function(er,tr){var rr,nr=er.length,ir=8*nr-tr-1,or=(1<<ir)-1,ar=or>>1,sr=ir-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-ar;else{if(ur===or)return rr?NaN:cr?-1/0:kh;rr+=Bh(2,tr),ur-=ar}return(cr?-1:1)*rr*Bh(2,ur-tr)},Th=function fill(er){for(var tr=toObject(this),rr=toLength(tr.length),nr=arguments.length,ir=toAbsoluteIndex(nr>1?arguments[1]:void 0,rr),or=nr>2?arguments[2]:void 0,ar=void 0===or?rr:toAbsoluteIndex(or,rr);ar>ir;)tr[ir++]=er;return tr},Ph=Zr.f,Fh=mr.f,Uh=jr.get,Ih=jr.set,Rh="ArrayBuffer",Mh="DataView",Oh="Wrong index",Qh=rr.ArrayBuffer,Dh=Qh,jh=rr.DataView,Hh=jh&&jh.prototype,Gh=Object.prototype,Vh=rr.RangeError,zh=ieee754_pack,Kh=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 zh(er,23,4)},packFloat64=function(er){return zh(er,52,8)},addGetter=function(er,tr){Fh(er.prototype,tr,{get:function(){return Uh(this)[tr]}})},get$1=function(er,tr,rr,nr){var ir=toIndex(rr),or=Uh(er);if(ir+tr>or.byteLength)throw Vh(Oh);var ar=Uh(or.buffer).bytes,sr=ir+or.byteOffset,lr=ar.slice(sr,sr+tr);return nr?lr:lr.reverse()},set$2=function(er,tr,rr,nr,ir,or){var ar=toIndex(rr),sr=Uh(er);if(ar+tr>sr.byteLength)throw Vh(Oh);for(var lr=Uh(sr.buffer).bytes,cr=ar+sr.byteOffset,ur=nr(+ir),dr=0;dr<tr;dr++)lr[cr+dr]=ur[or?dr:tr-dr-1]};if(xh){if(!fails((function(){Qh(1)}))||!fails((function(){new Qh(-1)}))||fails((function(){return new Qh,new Qh(1.5),new Qh(NaN),Qh.name!=Rh}))){for(var qh,Wh=(Dh=function ArrayBuffer(er){return anInstance(this,Dh),new Qh(toIndex(er))}).prototype=Qh.prototype,Xh=Ph(Qh),Yh=0;Xh.length>Yh;)(qh=Xh[Yh++])in Dh||_r(Dh,qh,Qh[qh]);Wh.constructor=Dh}Qo&&Ha(Hh)!==Gh&&Qo(Hh,Gh);var Jh=new jh(new Dh(2)),$h=Hh.setInt8;Jh.setInt8(0,2147483648),Jh.setInt8(1,2147483649),!Jh.getInt8(0)&&Jh.getInt8(1)||redefineAll(Hh,{setInt8:function setInt8(er,tr){$h.call(this,er,tr<<24>>24)},setUint8:function setUint8(er,tr){$h.call(this,er,tr<<24>>24)}},{unsafe:!0})}else Dh=function ArrayBuffer(er){anInstance(this,Dh,Rh);var tr=toIndex(er);Ih(this,{bytes:Th.call(new Array(tr),0),byteLength:tr}),nr||(this.byteLength=tr)},jh=function DataView(er,tr,rr){anInstance(this,jh,Mh),anInstance(er,Dh,Mh);var ir=Uh(er).byteLength,or=toInteger(tr);if(or<0||or>ir)throw Vh("Wrong offset");if(or+(rr=void 0===rr?ir-or:toLength(rr))>ir)throw Vh("Wrong length");Ih(this,{buffer:er,byteLength:rr,byteOffset:or}),nr||(this.buffer=er,this.byteLength=rr,this.byteOffset=or)},nr&&(addGetter(Dh,"byteLength"),addGetter(jh,"buffer"),addGetter(jh,"byteLength"),addGetter(jh,"byteOffset")),redefineAll(jh.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 Kh(get$1(this,4,er,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(er){return Kh(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(Dh,Rh),setToStringTag(jh,Mh);var Zh={ArrayBuffer:Dh,DataView:jh},ep=Zh.ArrayBuffer,tp=Zh.DataView,rp=ep.prototype.slice,np=fails((function(){return!new ep(2).slice(1,void 0).byteLength}));_export({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:np},{slice:function slice(er,tr){if(void 0!==rp&&void 0===tr)return rp.call(anObject(this),er);for(var rr=anObject(this).byteLength,nr=toAbsoluteIndex(er,rr),ir=toAbsoluteIndex(void 0===tr?rr:tr,rr),or=new(speciesConstructor(this,ep))(toLength(ir-nr)),ar=new tp(this),sr=new tp(or),lr=0;nr<ir;)sr.setUint8(lr++,ar.getUint8(nr++));return or}});var ip,op=mr.f,ap=rr.Int8Array,sp=ap&&ap.prototype,lp=rr.Uint8ClampedArray,cp=lp&&lp.prototype,up=ap&&Ha(ap),dp=sp&&Ha(sp),hp=Object.prototype,pp=hp.isPrototypeOf,Ap=wellKnownSymbol("toStringTag"),fp=uid("TYPED_ARRAY_TAG"),gp=xh&&!!Qo&&"Opera"!==ko(rr.opera),mp=!1,_p={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(_p,ko(er))};for(ip in _p)rr[ip]||(gp=!1);if((!gp||"function"!=typeof up||up===Function.prototype)&&(up=function TypedArray(){throw TypeError("Incorrect invocation")},gp))for(ip in _p)rr[ip]&&Qo(rr[ip],up);if((!gp||!dp||dp===hp)&&(dp=up.prototype,gp))for(ip in _p)rr[ip]&&Qo(rr[ip].prototype,dp);if(gp&&Ha(cp)!==dp&&Qo(cp,dp),nr&&!has(dp,Ap))for(ip in mp=!0,op(dp,Ap,{get:function(){return isObject(this)?this[fp]:void 0}}),_p)rr[ip]&&_r(rr[ip],fp,ip);var vp={NATIVE_ARRAY_BUFFER_VIEWS:gp,TYPED_ARRAY_TAG:mp&&fp,aTypedArray:function(er){if(isTypedArray(er))return er;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(er){if(Qo){if(pp.call(up,er))return er}else for(var tr in _p)if(has(_p,ip)){var nr=rr[tr];if(nr&&(er===nr||pp.call(nr,er)))return er}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(er,tr,ir){if(nr){if(ir)for(var or in _p){var ar=rr[or];ar&&has(ar.prototype,er)&&delete ar.prototype[er]}dp[er]&&!ir||Hr(dp,er,ir?tr:gp&&sp[er]||tr)}},exportTypedArrayStaticMethod:function(er,tr,ir){var or,ar;if(nr){if(Qo){if(ir)for(or in _p)(ar=rr[or])&&has(ar,er)&&delete ar[er];if(up[er]&&!ir)return;try{return Hr(up,er,ir?tr:gp&&ap[er]||tr)}catch(er){}}for(or in _p)!(ar=rr[or])||ar[er]&&!ir||Hr(ar,er,tr)}},isView:function isView(er){var tr=ko(er);return"DataView"===tr||has(_p,tr)},isTypedArray:isTypedArray,TypedArray:up,TypedArrayPrototype:dp},yp=vp.NATIVE_ARRAY_BUFFER_VIEWS,wp=rr.ArrayBuffer,Sp=rr.Int8Array,xp=!yp||!fails((function(){Sp(1)}))||!fails((function(){new Sp(-1)}))||!checkCorrectnessOfIteration((function(er){new Sp,new Sp(null),new Sp(1.5),new Sp(er)}),!0)||fails((function(){return 1!==new Sp(new wp(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},kp=vp.aTypedArrayConstructor,Cp=function from(er){var tr,rr,nr,ir,or,ar,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(ar=(or=dr.call(sr)).next,sr=[];!(ir=ar.call(or)).done;)sr.push(ir.value);for(ur&&lr>2&&(cr=functionBindContext(cr,arguments[2],2)),rr=toLength(sr.length),nr=new(kp(this))(rr),tr=0;rr>tr;tr++)nr[tr]=ur?cr(sr[tr],tr):sr[tr];return nr},Bp=createCommonjsModule((function(er){var tr=Zr.f,ir=Ai.forEach,or=jr.get,ar=jr.set,sr=mr.f,lr=fr.f,cr=Math.round,ur=rr.RangeError,dr=Zh.ArrayBuffer,hr=Zh.DataView,pr=vp.NATIVE_ARRAY_BUFFER_VIEWS,Ar=vp.TYPED_ARRAY_TAG,gr=vp.TypedArray,vr=vp.TypedArrayPrototype,yr=vp.aTypedArrayConstructor,br=vp.isTypedArray,wr="BYTES_PER_ELEMENT",Sr="Wrong length",fromList=function(er,tr){for(var rr=0,nr=tr.length,ir=new(yr(er))(nr);nr>rr;)ir[rr]=tr[rr++];return ir},addGetter=function(er,tr){sr(er,tr,{get:function(){return or(this)[tr]}})},isArrayBuffer=function(er){var tr;return er instanceof dr||"ArrayBuffer"==(tr=ko(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)},kr=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)};nr?(pr||(fr.f=xr,mr.f=kr,addGetter(vr,"buffer"),addGetter(vr,"byteOffset"),addGetter(vr,"byteLength"),addGetter(vr,"length")),_export({target:"Object",stat:!0,forced:!pr},{getOwnPropertyDescriptor:xr,defineProperty:kr}),er.exports=function(er,nr,lr){var fr=er.match(/\d+$/)[0]/8,mr=er+(lr?"Clamped":"")+"Array",yr="get"+er,xr="set"+er,kr=rr[mr],Cr=kr,Br=Cr&&Cr.prototype,Er={},addElement=function(er,tr){sr(er,tr,{get:function(){return function(er,tr){var rr=or(er);return rr.view[yr](tr*fr+rr.byteOffset,!0)}(this,tr)},set:function(er){return function(er,tr,rr){var nr=or(er);lr&&(rr=(rr=cr(rr))<0?0:rr>255?255:255&rr),nr.view[xr](tr*fr+nr.byteOffset,rr,!0)}(this,tr,er)},enumerable:!0})};pr?xp&&(Cr=nr((function(er,tr,rr,nr){return anInstance(er,Cr,mr),inheritIfRequired(isObject(tr)?isArrayBuffer(tr)?void 0!==nr?new kr(tr,toOffset(rr,fr),nr):void 0!==rr?new kr(tr,toOffset(rr,fr)):new kr(tr):br(tr)?fromList(Cr,tr):Cp.call(Cr,tr):new kr(toIndex(tr)),er,Cr)})),Qo&&Qo(Cr,gr),ir(tr(kr),(function(er){er in Cr||_r(Cr,er,kr[er])})),Cr.prototype=Br):(Cr=nr((function(er,tr,rr,nr){anInstance(er,Cr,mr);var ir,or,sr,lr=0,cr=0;if(isObject(tr)){if(!isArrayBuffer(tr))return br(tr)?fromList(Cr,tr):Cp.call(Cr,tr);ir=tr,cr=toOffset(rr,fr);var pr=tr.byteLength;if(void 0===nr){if(pr%fr)throw ur(Sr);if((or=pr-cr)<0)throw ur(Sr)}else if((or=toLength(nr)*fr)+cr>pr)throw ur(Sr);sr=or/fr}else sr=toIndex(tr),ir=new dr(or=sr*fr);for(ar(er,{buffer:ir,byteOffset:cr,byteLength:or,length:sr,view:new hr(ir)});lr<sr;)addElement(er,lr++)})),Qo&&Qo(Cr,gr),Br=Cr.prototype=Ci(vr)),Br.constructor!==Cr&&_r(Br,"constructor",Cr),Ar&&_r(Br,Ar,mr),Er[mr]=Cr,_export({global:!0,forced:Cr!=kr,sham:!pr},Er),wr in Cr||_r(Cr,wr,fr),wr in Br||_r(Br,wr,fr),setSpecies(mr)}):er.exports=function(){}}));Bp("Uint8",(function(er){return function Uint8Array(tr,rr,nr){return er(this,tr,rr,nr)}}));var Ep=Math.min,Np=[].copyWithin||function copyWithin(er,tr){var rr=toObject(this),nr=toLength(rr.length),ir=toAbsoluteIndex(er,nr),or=toAbsoluteIndex(tr,nr),ar=arguments.length>2?arguments[2]:void 0,sr=Ep((void 0===ar?nr:toAbsoluteIndex(ar,nr))-or,nr-ir),lr=1;for(or<ir&&ir<or+sr&&(lr=-1,or+=sr-1,ir+=sr-1);sr-- >0;)or in rr?rr[ir]=rr[or]:delete rr[ir],ir+=lr,or+=lr;return rr},Lp=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("copyWithin",(function copyWithin(er,tr){return Np.call(Lp(this),er,tr,arguments.length>2?arguments[2]:void 0)}));var Tp=Ai.every,Pp=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("every",(function every(er){return Tp(Pp(this),er,arguments.length>1?arguments[1]:void 0)}));var Fp=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("fill",(function fill(er){return Th.apply(Fp(this),arguments)}));var Up=Ai.filter,Ip=vp.aTypedArray,Rp=vp.aTypedArrayConstructor;(0,vp.exportTypedArrayMethod)("filter",(function filter(er){for(var tr=Up(Ip(this),er,arguments.length>1?arguments[1]:void 0),rr=speciesConstructor(this,this.constructor),nr=0,ir=tr.length,or=new(Rp(rr))(ir);ir>nr;)or[nr]=tr[nr++];return or}));var Mp=Ai.find,Op=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("find",(function find(er){return Mp(Op(this),er,arguments.length>1?arguments[1]:void 0)}));var Qp=Ai.findIndex,Dp=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("findIndex",(function findIndex(er){return Qp(Dp(this),er,arguments.length>1?arguments[1]:void 0)}));var jp=Ai.forEach,Hp=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("forEach",(function forEach(er){jp(Hp(this),er,arguments.length>1?arguments[1]:void 0)}));var Gp=Xr.includes,Vp=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("includes",(function includes(er){return Gp(Vp(this),er,arguments.length>1?arguments[1]:void 0)}));var zp=Xr.indexOf,Kp=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("indexOf",(function indexOf(er){return zp(Kp(this),er,arguments.length>1?arguments[1]:void 0)}));var qp=wellKnownSymbol("iterator"),Wp=rr.Uint8Array,Xp=os.values,Yp=os.keys,Jp=os.entries,$p=vp.aTypedArray,Zp=vp.exportTypedArrayMethod,eA=Wp&&Wp.prototype[qp],tA=!!eA&&("values"==eA.name||null==eA.name),rA=function values(){return Xp.call($p(this))};Zp("entries",(function entries(){return Jp.call($p(this))})),Zp("keys",(function keys(){return Yp.call($p(this))})),Zp("values",rA,!tA),Zp(qp,rA,!tA);var nA=vp.aTypedArray,iA=[].join;(0,vp.exportTypedArrayMethod)("join",(function join(er){return iA.apply(nA(this),arguments)}));var oA=Math.min,aA=[].lastIndexOf,sA=!!aA&&1/[1].lastIndexOf(1,-0)<0,lA=arrayMethodIsStrict("lastIndexOf"),cA=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0}),uA=sA||!lA||!cA?function lastIndexOf(er){if(sA)return aA.apply(this,arguments)||0;var tr=toIndexedObject(this),rr=toLength(tr.length),nr=rr-1;for(arguments.length>1&&(nr=oA(nr,toInteger(arguments[1]))),nr<0&&(nr=rr+nr);nr>=0;nr--)if(nr in tr&&tr[nr]===er)return nr||0;return-1}:aA,dA=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(er){return uA.apply(dA(this),arguments)}));var hA=Ai.map,pA=vp.aTypedArray,AA=vp.aTypedArrayConstructor;(0,vp.exportTypedArrayMethod)("map",(function map(er){return hA(pA(this),er,arguments.length>1?arguments[1]:void 0,(function(er,tr){return new(AA(speciesConstructor(er,er.constructor)))(tr)}))}));var fA=Fs.left,gA=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("reduce",(function reduce(er){return fA(gA(this),er,arguments.length,arguments.length>1?arguments[1]:void 0)}));var mA=Fs.right,_A=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("reduceRight",(function reduceRight(er){return mA(_A(this),er,arguments.length,arguments.length>1?arguments[1]:void 0)}));var vA=vp.aTypedArray,yA=vp.exportTypedArrayMethod,wA=Math.floor;yA("reverse",(function reverse(){for(var er,tr=this,rr=vA(tr).length,nr=wA(rr/2),ir=0;ir<nr;)er=tr[ir],tr[ir++]=tr[--rr],tr[rr]=er;return tr}));var SA=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("set",(function set(er){SA(this);var tr=toOffset(arguments.length>1?arguments[1]:void 0,1),rr=this.length,nr=toObject(er),ir=toLength(nr.length),or=0;if(ir+tr>rr)throw RangeError("Wrong length");for(;or<ir;)this[tr+or]=nr[or++]}),fails((function(){new Int8Array(1).set({})})));var xA=vp.aTypedArray,kA=vp.aTypedArrayConstructor,CA=[].slice;(0,vp.exportTypedArrayMethod)("slice",(function slice(er,tr){for(var rr=CA.call(xA(this),er,tr),nr=speciesConstructor(this,this.constructor),ir=0,or=rr.length,ar=new(kA(nr))(or);or>ir;)ar[ir]=rr[ir++];return ar}),fails((function(){new Int8Array(1).slice()})));var BA=Ai.some,EA=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("some",(function some(er){return BA(EA(this),er,arguments.length>1?arguments[1]:void 0)}));var NA=vp.aTypedArray,LA=[].sort;(0,vp.exportTypedArrayMethod)("sort",(function sort(er){return LA.call(NA(this),er)}));var TA=vp.aTypedArray;(0,vp.exportTypedArrayMethod)("subarray",(function subarray(er,tr){var rr=TA(this),nr=rr.length,ir=toAbsoluteIndex(er,nr);return new(speciesConstructor(rr,rr.constructor))(rr.buffer,rr.byteOffset+ir*rr.BYTES_PER_ELEMENT,toLength((void 0===tr?nr:toAbsoluteIndex(tr,nr))-ir))}));var PA=rr.Int8Array,FA=vp.aTypedArray,UA=vp.exportTypedArrayMethod,IA=[].toLocaleString,RA=[].slice,MA=!!PA&&fails((function(){IA.call(new PA(1))}));UA("toLocaleString",(function toLocaleString(){return IA.apply(MA?RA.call(FA(this)):FA(this),arguments)}),fails((function(){return[1,2].toLocaleString()!=new PA([1,2]).toLocaleString()}))||!fails((function(){PA.prototype.toLocaleString.call([1,2])})));var OA=vp.exportTypedArrayMethod,QA=rr.Uint8Array,DA=QA&&QA.prototype||{},jA=[].toString,HA=[].join;fails((function(){jA.call({})}))&&(jA=function toString(){return HA.call(this)});var GA=DA.toString!=jA;
|
||
/**
|
||
* 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 ir=0;ir<nr;++ir){var or=this[ir];if("http://www.w3.org/2000/svg"!==or.namespaceURI)return tr.call(this,er,rr);if(void 0!==rr)or.setAttribute(er,rr);else if(Array.isArray(er)){for(var ar={},sr=er.length;sr--;){var lr=er[sr],cr=or.getAttribute(lr);(cr||"0"===cr)&&(cr=isNaN(cr)?cr:cr-0),ar[lr]=cr}return ar}if("object"!==_typeof(er)){var ur=or.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];or.setAttribute(Ar,fr)}}return this},er}OA("toString",jA,GA);var VA=document.createElementNS(Xd.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(".concat(tr.a,")"):"scale(".concat(tr.a,",").concat(tr.d,")");break;case 4:var nr=0,ir=0;if(0!==er.angle){var or=1-tr.a;ir=(or*tr.f+tr.b*tr.e)/(or*or+tr.b*tr.b),nr=(tr.e-tr.b*ir)/or}rr="rotate("+er.angle+" "+nr+","+ir+")"}return rr}var zA,KA={},qA=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],ir=tr[1].match(/\s*(.*?)\s*\)/);ir[1]=ir[1].replace(/(\d)-/g,"$1 -");var or=ir[1].split(/[, ]+/),ar="abcdef".split(""),sr=VA.createSVGMatrix();Object.values(or).forEach((function(er,tr){or[tr]=Number.parseFloat(er),"matrix"===rr&&(sr[ar[tr]]=or[tr])}));var lr=VA.createSVGTransform(),cr="set"+rr.charAt(0).toUpperCase()+rr.slice(1),ur="matrix"===rr?[sr]:or;"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(KA).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,ir=new Array(this.numberOfItems+1);for(nr=0;nr<tr;++nr)ir[nr]=this._xforms[nr];ir[nr]=er;for(var or=nr+1;nr<this.numberOfItems;++or,++nr)ir[or]=this._xforms[nr];this.numberOfItems++,this._xforms=ir,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 ir=tr;ir<this.numberOfItems-1;++ir,++tr)nr[ir]=this._xforms[tr+1];return this.numberOfItems--,this._xforms=nr,this._list._update(),rr}var or=new Error("DOMException with code=INDEX_SIZE_ERR");throw or.code=1,or}},{key:"appendItem",value:function appendItem(er){return this._removeFromOtherLists(er),this._xforms.push(er),this.numberOfItems++,this._list._update(),er}}]),SVGTransformList}(),WA=function removeElementFromListMap(er){er.id&&KA[er.id]&&delete KA[er.id]},XA=function getTransformList(er){if(!function supportsNativeTransformLists(){return fh}()){var tr=er.id||"temp",rr=KA[tr];return rr&&"temp"!==tr||(KA[tr]=new qA(er),KA[tr]._init(),rr=KA[tr]),rr}return er.transform?er.transform.baseVal:er.gradientTransform?er.gradientTransform.baseVal:er.patternTransform?er.patternTransform.baseVal:null},YA=["x","x1","cx","rx","width"],JA=["y","y1","cy","ry","height"],$A=["r","radius"].concat(YA,JA),ZA={},ef=function getTypeMap(){return ZA},tf=function shortFloat(er){var tr=zA.getRoundDigits();return isNaN(er)?Array.isArray(er)?shortFloat(er[0])+","+shortFloat(er[1]):Number.parseFloat(er).toFixed(tr)-0:Number(Number(er).toFixed(tr))},rf=function convertUnit(er,tr){return tr=tr||zA.getBaseUnit(),tf(er/ZA[tr])},nf=function setUnitAttr(er,tr,rr){er.setAttribute(tr,rr)},of=function convertToNum(er,tr){if(!isNaN(tr))return tr-0;if("%"===tr.substr(-1)){var rr=tr.substr(0,tr.length-1)/100,nr=zA.getWidth(),ir=zA.getHeight();return YA.includes(er)?rr*nr:JA.includes(er)?rr*ir:rr*Math.sqrt(nr*nr+ir*ir)/Math.sqrt(2)}var or=tr.substr(-2);return tr.substr(0,tr.length-2)*ZA[or]},af=function isValidUnit(er,tr,rr){if($A.includes(er))return!isNaN(tr)||(tr=tr.toLowerCase(),Object.keys(ZA).some((function(er){return new RegExp("^-?[\\d\\.]+"+er+"$").test(tr)})));if("id"===er){var nr=!1;try{var ir=zA.getElement(tr);nr=!ir||ir===rr}catch(er){}return nr}return!0},sf=Fs.right,lf=arrayMethodIsStrict("reduceRight"),cf=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!lf||!cf},{reduceRight:function reduceRight(er){return sf(this,er,arguments.length,arguments.length>1?arguments[1]:void 0)}});var uf=1e-14,df=document.createElementNS(Xd.SVG,"svg"),hf=function transformPoint(er,tr,rr){return{x:rr.a*er+rr.c*tr+rr.e,y:rr.b*er+rr.d*tr+rr.f}},pf=function isIdentity(er){return 1===er.a&&0===er.b&&0===er.c&&1===er.d&&0===er.e&&0===er.f},Af=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)<uf&&(nr.a=0),Math.abs(nr.b)<uf&&(nr.b=0),Math.abs(nr.c)<uf&&(nr.c=0),Math.abs(nr.d)<uf&&(nr.d=0),Math.abs(nr.e)<uf&&(nr.e=0),Math.abs(nr.f)<uf&&(nr.f=0),nr},ff=function hasMatrixTransform(er){if(!er)return!1;for(var tr=er.numberOfItems;tr--;){var rr=er.getItem(tr);if(1===rr.type&&!pf(rr.matrix))return!0}return!1},gf=function transformBox(er,tr,rr,nr,ir){var or=hf(er,tr,ir),ar=hf(er+rr,tr,ir),sr=hf(er,tr+nr,ir),lr=hf(er+rr,tr+nr,ir),cr=Math.min(or.x,ar.x,sr.x,lr.x),ur=Math.max(or.x,ar.x,sr.x,lr.x),dr=Math.min(or.y,ar.y,sr.y,lr.y);return{tl:or,tr:ar,bl:sr,br:lr,aabox:{x:cr,y:dr,width:ur-cr,height:Math.max(or.y,ar.y,sr.y,lr.y)-dr}}},mf=function transformListToTransform(er,tr,rr){if(!er)return df.createSVGTransformFromMatrix(df.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 ir=df.createSVGMatrix(),or=tr;or<=rr;++or){var ar=or>=0&&or<er.numberOfItems?er.getItem(or).matrix:df.createSVGMatrix();ir=Af(ir,ar)}return df.createSVGTransformFromMatrix(ir)},_f=function getMatrix(er){var tr=XA(er);return mf(tr).matrix},vf=function snapToAngle(er,tr,rr,nr){var ir=Math.PI/4,or=rr-er,ar=nr-tr,sr=Math.atan2(ar,or),lr=Math.sqrt(or*or+ar*ar),cr=Math.round(sr/ir)*ir;return{x:er+lr*Math.cos(cr),y:tr+lr*Math.sin(cr),a:cr}},yf=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},bf=jQueryPluginSVG(jQuery),wf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Sf="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use,clipPath".split(","),xf=null,kf=null,Cf=null,Bf=null,Ef=function dropXMLInternalSubset(er){return er.replace(/(<!DOCTYPE\s+\w*\s*\[).*(\?]>)/,"$1$2")},Nf=function toXml(er){return er.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};function encode64(er){if(er=Lf(er),window.btoa)return window.btoa(er);var tr=new Array(4*Math.floor((er.length+2)/3)),rr=0,nr=0;do{var ir=er.charCodeAt(rr++),or=er.charCodeAt(rr++),ar=er.charCodeAt(rr++),sr=ir>>2,lr=(3&ir)<<4|or>>4,cr=(15&or)<<2|ar>>6,ur=63&ar;Number.isNaN(or)?(cr=64,ur=64):Number.isNaN(ar)&&(ur=64),tr[nr++]=wf.charAt(sr),tr[nr++]=wf.charAt(lr),tr[nr++]=wf.charAt(cr),tr[nr++]=wf.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=wf.indexOf(er.charAt(rr++)),ir=wf.indexOf(er.charAt(rr++)),or=wf.indexOf(er.charAt(rr++)),ar=wf.indexOf(er.charAt(rr++)),sr=nr<<2|ir>>4,lr=(15&ir)<<4|or>>2,cr=(3&or)<<6|ar;tr+=String.fromCharCode(sr),64!==or&&(tr+=String.fromCharCode(lr)),64!==ar&&(tr+=String.fromCharCode(cr))}while(rr<er.length);return decodeUTF8(tr)}function decodeUTF8(er){return decodeURIComponent(escape(er))}var Lf=function encodeUTF8(er){return unescape(encodeURIComponent(er))},Tf=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]),ir=nr.length,or=new Uint8Array(ir);ir--;)or[ir]=nr.charCodeAt(ir);var ar=new Blob([or],{type:rr});return URL.createObjectURL(ar)},Pf=function createObjectURL(er){return er&&"undefined"!=typeof URL&&URL.createObjectURL?URL.createObjectURL(er):""},Ff=function(){if("undefined"==typeof Blob)return"";var er=new Blob(["<html><head><title>SVG-edit</title></head><body> </body></html>"],{type:"text/html"});return Pf(er)}(),Uf=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},If=function walkTree(er,tr){if(er&&1===er.nodeType){tr(er);for(var rr=er.childNodes.length;rr--;)walkTree(er.childNodes.item(rr),tr)}},Rf=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},Mf=function getHref(er){return er.getAttributeNS(Xd.XLINK,"href")},Of=function setHref(er,tr){er.setAttributeNS(Xd.XLINK,"xlink:href",tr)},Qf=function findDefs(){var er=xf.getSVGContent(),tr=er.getElementsByTagNameNS(Xd.SVG,"defs");return tr.length>0?tr=tr[0]:(tr=er.ownerDocument.createElementNS(Xd.SVG,"defs"),er.firstChild?er.insertBefore(tr,er.firstChild.nextSibling):er.append(tr)),tr},Df=function getPathBBox(er){for(var tr=er.pathSegList,rr=tr.numberOfItems,nr=[[],[]],ir=tr.getItem(0),or=[ir.x,ir.y],ar=function getCalc(er,tr,rr,nr){return function(ir){return 1-Math.pow(ir,3)*or[er]+3-Math.pow(ir,2)*ir*tr[er]+3*(1-ir)*Math.pow(ir,2)*rr[er]+Math.pow(ir,3)*nr[er]}},sr=0;sr<rr;sr++){var lr=tr.getItem(sr);if(void 0!==lr.x)if(nr[0].push(or[0]),nr[1].push(or[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=ar(hr,cr,ur,dr),Ar=6*or[hr]-12*cr[hr]+6*ur[hr],fr=-3*or[hr]+9*cr[hr]-9*ur[hr]+3*dr[hr],gr=3*cr[hr]-3*or[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))}}or=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,Sr=Math.min.apply(null,nr[1]);return{x:br,y:Sr,width:wr,height:Math.max.apply(null,nr[1])-Sr}};function groupBBFix(er){if(function supportsHVLineContainerBBox(){return ph}())try{return er.getBBox()}catch(er){}var tr,rr,nr=bf.data(er,"ref"),ir=null;nr?(rr=bf(nr).children().clone().attr("visibility","hidden"),bf(Bf).append(rr),ir=rr.filter("line, path")):ir=bf(er).find("line, path");var or=!1;if(ir.length)if(ir.each((function(){var er=this.getBBox();er.width&&er.height||(or=!0)})),or){var ar=nr?rr:bf(er).children();tr=qf(ar)}else tr=er.getBBox();else tr=er.getBBox();return nr&&rr.remove(),tr}var jf=function getBBox(er){var tr=er||xf.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 hh}()?nr=Df(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&&gh()){if(nr||(nr=tr.getBBox()),!gh()){var ir=nr,or=ir.x,ar=ir.y;nr={width:ir.width,height:ir.height,x:or+Number.parseFloat(tr.getAttribute("x")||0),y:ar+Number.parseFloat(tr.getAttribute("y")||0)}}}else if(Sf.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=bf(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},Hf=function getPathDFromSegments(er){var tr="";return bf.each(er,(function(er,rr){var nr=_slicedToArray(rr,2),ir=nr[0],or=nr[1];tr+=ir;for(var ar=0;ar<or.length;ar+=2)tr+=or[ar]+","+or[ar+1]+" "})),tr},Gf=function getPathDFromElement(er){var tr,rr,nr,ir,or=1.81;switch(er.tagName){case"ellipse":case"circle":var ar=rr=bf(er).attr(["rx","ry","cx","cy"]),sr=ar.cx,lr=ar.cy,cr=rr;nr=cr.rx,ir=cr.ry,"circle"===er.tagName&&(nr=ir=bf(er).attr("r")),tr=Hf([["M",[sr-nr,lr]],["C",[sr-nr,lr-ir/or,sr-nr/or,lr-ir,sr,lr-ir]],["C",[sr+nr/or,lr-ir,sr+nr,lr-ir/or,sr+nr,lr]],["C",[sr+nr,lr+ir/or,sr+nr/or,lr+ir,sr,lr+ir]],["C",[sr-nr/or,lr+ir,sr-nr,lr+ir/or,sr-nr,lr]],["Z",[]]]);break;case"path":tr=er.getAttribute("d");break;case"line":tr="M"+(rr=bf(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=bf(er).attr(["rx","ry"]);nr=ur.rx,ir=ur.ry;var dr=er.getBBox(),hr=dr.x,pr=dr.y,Ar=dr.width,fr=dr.height;or=4-or,tr=Hf(nr||ir?[["M",[hr,pr+ir]],["C",[hr,pr+ir/or,hr+nr/or,pr,hr+nr,pr]],["L",[hr+Ar-nr,pr]],["C",[hr+Ar-nr/or,pr,hr+Ar,pr+ir/or,hr+Ar,pr+ir]],["L",[hr+Ar,pr+fr-ir]],["C",[hr+Ar,pr+fr-ir/or,hr+Ar-nr/or,pr+fr,hr+Ar-nr,pr+fr]],["L",[hr+nr,pr+fr]],["C",[hr+nr/or,pr+fr,hr,pr+fr-ir/or,hr,pr+fr-ir]],["L",[hr,pr+ir]],["Z",[]]]:[["M",[hr,pr]],["L",[hr+Ar,pr]],["L",[hr+Ar,pr+fr]],["L",[hr,pr+fr]],["L",[hr,pr]],["Z",[]]])}return tr},Vf=function getExtraAttributesForConvertToPath(er){var tr={};return bf.each(["marker-start","marker-end","marker-mid","filter","clip-path"],(function(){var rr=er.getAttribute(this);rr&&(tr[this]=rr)})),tr},zf=function getBBoxOfElementAsPath(er,tr,rr){var nr=tr({element:"path",attr:Vf(er)}),ir=er.getAttribute("transform");ir&&nr.setAttribute("transform",ir);var or=er.parentNode;er.nextSibling?er.before(nr):or.append(nr);var ar=Gf(er);ar?nr.setAttribute("d",ar):nr.remove(),rr.resetOrientation(nr);var sr=!1;try{sr=nr.getBBox()}catch(er){}return nr.remove(),sr};var Kf=function getBBoxWithTransform(er,tr,rr){var nr=jf(er);if(!nr)return null;var ir=XA(er),or=Yf(ir),ar=ff(ir);if(or||ar){var sr=!1;if(function bBoxCanBeOptimizedOverNativeGetBBox(er,tr){var rr=er%90;return tr||!(rr>-.001&&rr<.001||rr<-89.99||rr>89.99)}(or,ar)){if(["ellipse","path","line","polyline","polygon"].includes(er.tagName))nr=sr=zf(er,tr,rr);else if("rect"===er.tagName){var lr=er.getAttribute("rx"),cr=er.getAttribute("ry");(lr||cr)&&(nr=sr=zf(er,tr,rr))}}if(!sr){var ur=mf(ir).matrix;nr=gf(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 qf=function getStrokedBBox(er,tr,rr){if(!er||!er.length)return!1;var nr;if(bf.each(er,(function(){nr||this.parentNode&&(nr=Kf(this,tr,rr))})),void 0===nr)return null;var ir=nr.x+nr.width,or=nr.y+nr.height,ar=nr.x,sr=nr.y;if(1===er.length){var lr=getStrokeOffsetForBBox(er[0]);ar-=lr,sr-=lr,ir+=lr,or+=lr}else bf.each(er,(function(er,nr){var lr=Kf(nr,tr,rr);if(lr){var cr=getStrokeOffsetForBBox(nr);ar=Math.min(ar,lr.x-cr),sr=Math.min(sr,lr.y-cr),1===nr.nodeType&&(ir=Math.max(ir,lr.x+lr.width+cr),or=Math.max(or,lr.y+lr.height+cr))}}));return nr.x=ar,nr.y=sr,nr.width=ir-ar,nr.height=or-sr,nr},Wf=function getVisibleElements(er){er||(er=bf(xf.getSVGContent()).children());var tr=[];return bf(er).children().each((function(er,rr){rr.getBBox&&tr.push(rr)})),tr.reverse()},Xf=function getStrokedBBoxDefaultVisible(er){return er||(er=Wf()),qf(er,xf.addSVGElementFromJson,xf.pathActions)},Yf=function getRotationAngleFromTransformList(er,tr){if(!er)return 0;for(var rr=er.numberOfItems,nr=0;nr<rr;++nr){var ir=er.getItem(nr);if(4===ir.type)return tr?ir.angle*Math.PI/180:ir.angle}return 0},Jf=function getRotationAngle(er,tr){var rr=er||xf.getSelectedElements()[0],nr=XA(rr);return Yf(nr,tr)},$f=function getRefElem(er){return Zf(Rf(er).substr(1))},Zf=function supportsSelectors(){return sh}()?function(er){return Bf.querySelector("#"+er)}:function supportsXpath(){return lh}()?function(er){return kf.evaluate('svg:svg[@id="svgroot"]//svg:*[@id="'+er+'"]',Cf,(function(){return Xd.SVG}),9,null).singleNodeValue}:function(er){return bf(Bf).find("[id=".concat(er,"]"))[0]},eg=function assignAttributes(er,tr,rr,nr){for(var ir=0,or=Object.entries(tr);ir<or.length;ir++){var ar=_slicedToArray(or[ir],2),sr=ar[0],lr=ar[1],cr="xml:"===sr.substr(0,4)?Xd.XML:"xlink:"===sr.substr(0,6)?Xd.XLINK:null;ig(lr)?cr?er.removeAttributeNS(cr,sr):er.removeAttribute(sr):cr?er.setAttributeNS(cr,sr,lr):nr?nf(er,sr,lr):er.setAttribute(sr,lr)}},tg=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],ir=rr[1];er.getAttribute(nr)===String(ir)&&er.removeAttribute(nr)}))},rg=function snapToGrid(er){var tr=xf.getBaseUnit(),rr=xf.getSnappingStep();return"px"!==tr&&(rr*=ef()[tr]),er=Math.round(er/rr)*rr},ng=function preventClickDefault(er){bf(er).click((function(er){er.preventDefault()}))},ig=function isNullish(er){return null==er},og={},ag=function injectExtendedContextMenuItemsIntoDom(){Object.values(og).forEach((function(er){!function injectExtendedContextMenuItemIntoDom(er){Object.keys(og).length||document.getElementById("cmenu_canvas").appendChild("<li class='separator'>");var tr=er.shortcut||"";document.getElementById("cmenu_canvas").appendChild("\n <li class='disabled'><a href='#".concat(er.id,"'>").concat(er.label,"<span class='shortcut'>").concat(tr,"</span></a></li>"))}(er)}))};_export({target:"Array",proto:!0},{fill:Th}),addToUnscopables("fill"),_export({target:"Object",stat:!0,forced:Object.assign!==Fc},{assign:Fc});var sg="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},lg="ArrayBuffer",cg=Zh.ArrayBuffer,ug=rr.ArrayBuffer;_export({global:!0,forced:ug!==cg},{ArrayBuffer:cg}),setSpecies(lg),_export({global:!0,forced:!xh},{DataView:Zh.DataView});var dg=Math.floor;_export({target:"Number",stat:!0},{isInteger:function isInteger(er){return!isObject(er)&&isFinite(er)&&dg(er)===er}}),_export({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991});var hg=fr.f,pg=fails((function(){hg(1)}));_export({target:"Object",stat:!0,forced:!nr||pg,sham:!nr},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(er,tr){return hg(toIndexedObject(er),tr)}});var Ag=ad.f,fg=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:fg},{getOwnPropertyNames:Ag}),nr&&("g"!=/./g.flags||jo.UNSUPPORTED_Y)&&mr.f(RegExp.prototype,"flags",{configurable:!0,get:regexpFlags}),_export({target:"String",proto:!0,forced:stringHtmlForced("link")},{link:function link(er){return createHtml(this,"a","href",er)}}),Bp("Float32",(function(er){return function Float32Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Bp("Float64",(function(er){return function Float64Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Bp("Int8",(function(er){return function Int8Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Bp("Int16",(function(er){return function Int16Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Bp("Int32",(function(er){return function Int32Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Bp("Uint8",(function(er){return function Uint8ClampedArray(tr,rr,nr){return er(this,tr,rr,nr)}}),!0),Bp("Uint16",(function(er){return function Uint16Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Bp("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 gg=function(){return"undefined"!=typeof window?window:void 0!==sg?sg:"undefined"!=typeof self?self:this}();function e(){gg.console&&"function"==typeof gg.console.log&&gg.console.log.apply(gg.console,arguments)}var mg={log:e,warn:function warn(er){gg.console&&("function"==typeof gg.console.warn?gg.console.warn.apply(gg.console,arguments):e.call(null,arguments))},error:function error(er){gg.console&&("function"==typeof gg.console.error?gg.console.error.apply(gg.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(){yg(nr.response,tr,rr)},nr.onerror=function(){mg.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 _g,vg,yg=gg.saveAs||("object"!=("undefined"==typeof window?"undefined":_typeof(window))||window!==gg?function(){}:"download"in HTMLAnchorElement.prototype?function(er,tr,rr){var nr=gg.URL||gg.webkitURL,ir=document.createElement("a");tr=tr||er.name||"download",ir.download=tr,ir.rel="noopener","string"==typeof er?(ir.href=er,ir.origin!==location.origin?i(ir.href)?r(er,tr,rr):a(ir,ir.target="_blank"):a(ir)):(ir.href=nr.createObjectURL(er),setTimeout((function(){nr.revokeObjectURL(ir.href)}),4e4),setTimeout((function(){a(ir)}),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)&&(mg.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 ir="application/octet-stream"===er.type,or=/constructor/i.test(gg.HTMLElement)||gg.safari,ar=/CriOS\/[\d]+/.test(navigator.userAgent);if((ar||ir&&or)&&"object"==("undefined"==typeof FileReader?"undefined":_typeof(FileReader))){var sr=new FileReader;sr.onloadend=function(){var er=sr.result;er=ar?er:er.replace(/^data:[^;]*;/,"data:attachment/file;"),nr?nr.location.href=er:location=er,nr=null},sr.readAsDataURL(er)}else{var lr=gg.URL||gg.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 ir=rr[nr].re,or=rr[nr].process,ar=ir.exec(er);ar&&(tr=or(ar),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 ir=Math.random().toString(35);return tr[er][ir]=[rr,!!nr],ir},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),ir=[];for(var or in tr[rr]){var ar=tr[rr][or];try{ar[0].apply(er,nr)}catch(er){gg.console&&mg.error("jsPDF PubSub Error",er.message,er)}ar[1]&&ir.push(or)}ir.length&&ir.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,ir){if(!(this instanceof d))return new d(er,tr,rr,nr,ir);this.type="axial"===er?2:3,this.coords=tr,this.colors=rr,f$8.call(this,nr,ir)}function p(er,tr,rr,nr,ir){if(!(this instanceof p))return new p(er,tr,rr,nr,ir);this.boundingBox=er,this.xStep=tr,this.yStep=rr,this.stream="",this.cloneIndex=0,f$8.call(this,nr,ir)}function g(er){var tr,rr="string"==typeof arguments[0]?arguments[0]:"p",nr=arguments[1],ir=arguments[2],or=arguments[3],ar=[],sr=1,lr=16,cr="S";"object"==_typeof(er=er||{})&&(rr=er.orientation,nr=er.unit||nr,ir=er.format||ir,or=er.compress||er.compressPdf||or,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"),ar=er.filters||(!0===or?["FlateEncode"]:ar),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]};ir=ir||"a4";var mr={COMPAT:"compat",ADVANCED:"advanced"},_r=mr.COMPAT;function F(){this.saveGraphicsState(),Wr(new Ai(Wn,0,0,-Wn,0,aa()*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)},Sr=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},kr=function q(er){return _r===mr.COMPAT?aa()-er:_r===mr.ADVANCED?er:void 0},Cr=function R(er){return xr(kr(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 Tr=hr.__private__.convertDateToPDFDate=function(er){var tr=er.getTimezoneOffset(),rr=tr<0?"+":"-",nr=Math.floor(Math.abs(tr/60)),ir=Math.abs(tr%60),or=[rr,Rr(nr),"'",Rr(ir),"'"].join("");return["D:",er.getFullYear(),Rr(er.getMonth()+1),Rr(er.getDate()),Rr(er.getHours()),Rr(er.getMinutes()),Rr(er.getSeconds()),or].join("")},Pr=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),ir=parseInt(er.substr(10,2),10),or=parseInt(er.substr(12,2),10),ar=parseInt(er.substr(14,2),10);return new Date(tr,rr,nr,ir,or,ar,0)},Fr=hr.__private__.setCreationDate=function(er){var tr;if(void 0===er&&(er=new Date),er instanceof Date)tr=Tr(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=Pr(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)},Or=0,Qr=[],Dr=[],jr=0,Hr=[],Gr=[],Vr=!1,zr=Dr,Kr=function it(){Or=0,jr=0,Dr=[],Qr=[],Hr=[],Si=vi(),xi=vi()};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={},ei=[],ti={},ri={},ni={},ii={},oi=null,ai=0,si=[],li=new h(hr),ui=er.hotfixes||[],di={},hi={},pi=[],Ai=function Dt(er,tr,rr,nr,ir,or){if(!(this instanceof Dt))return new Dt(er,tr,rr,nr,ir,or);isNaN(er)&&(er=1),isNaN(tr)&&(tr=0),isNaN(rr)&&(rr=0),isNaN(nr)&&(nr=1),isNaN(ir)&&(ir=0),isNaN(or)&&(or=0),this._matrix=[er,tr,rr,nr,ir,or]};Object.defineProperty(Ai.prototype,"sx",{get:function get(){return this._matrix[0]},set:function set(er){this._matrix[0]=er}}),Object.defineProperty(Ai.prototype,"shy",{get:function get(){return this._matrix[1]},set:function set(er){this._matrix[1]=er}}),Object.defineProperty(Ai.prototype,"shx",{get:function get(){return this._matrix[2]},set:function set(er){this._matrix[2]=er}}),Object.defineProperty(Ai.prototype,"sy",{get:function get(){return this._matrix[3]},set:function set(er){this._matrix[3]=er}}),Object.defineProperty(Ai.prototype,"tx",{get:function get(){return this._matrix[4]},set:function set(er){this._matrix[4]=er}}),Object.defineProperty(Ai.prototype,"ty",{get:function get(){return this._matrix[5]},set:function set(er){this._matrix[5]=er}}),Object.defineProperty(Ai.prototype,"a",{get:function get(){return this._matrix[0]},set:function set(er){this._matrix[0]=er}}),Object.defineProperty(Ai.prototype,"b",{get:function get(){return this._matrix[1]},set:function set(er){this._matrix[1]=er}}),Object.defineProperty(Ai.prototype,"c",{get:function get(){return this._matrix[2]},set:function set(er){this._matrix[2]=er}}),Object.defineProperty(Ai.prototype,"d",{get:function get(){return this._matrix[3]},set:function set(er){this._matrix[3]=er}}),Object.defineProperty(Ai.prototype,"e",{get:function get(){return this._matrix[4]},set:function set(er){this._matrix[4]=er}}),Object.defineProperty(Ai.prototype,"f",{get:function get(){return this._matrix[5]},set:function set(er){this._matrix[5]=er}}),Object.defineProperty(Ai.prototype,"rotation",{get:function get(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ai.prototype,"scaleX",{get:function get(){return this.decompose().scale.sx}}),Object.defineProperty(Ai.prototype,"scaleY",{get:function get(){return this.decompose().scale.sy}}),Object.defineProperty(Ai.prototype,"isIdentity",{get:function get(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ai.prototype.join=function(er){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(vr).join(er)},Ai.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,ir=er.shx*this.shy+er.sy*this.sy,or=er.tx*this.sx+er.ty*this.shx+this.tx,ar=er.tx*this.shy+er.ty*this.sy+this.ty;return new Ai(tr,rr,nr,ir,or,ar)},Ai.prototype.decompose=function(){var er=this.sx,tr=this.shy,rr=this.shx,nr=this.sy,ir=this.tx,or=this.ty,ar=Math.sqrt(er*er+tr*tr),sr=(er/=ar)*rr+(tr/=ar)*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,ar=-ar),{scale:new Ai(ar,0,0,lr,0,0),translate:new Ai(1,0,0,1,ir,or),rotate:new Ai(er,tr,-tr,er,0,0),skew:new Ai(1,0,sr,1,0,0)}},Ai.prototype.toString=function(er){return this.join(" ")},Ai.prototype.inversed=function(){var er=this.sx,tr=this.shy,rr=this.shx,nr=this.sy,ir=this.tx,or=this.ty,ar=1/(er*nr-tr*rr),sr=nr*ar,lr=-tr*ar,cr=-rr*ar,ur=er*ar;return new Ai(sr,lr,cr,ur,-sr*ir-cr*or,-lr*ir-ur*or)},Ai.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 $o(tr,rr)},Ai.prototype.applyToRectangle=function(er){var tr=this.applyToPoint(er),rr=this.applyToPoint(new $o(er.x+er.w,er.y+er.h));return new Zo(tr.x,tr.y,rr.x-tr.x,rr.y-tr.y)},Ai.prototype.clone=function(){var er=this.sx,tr=this.shy,rr=this.shx,nr=this.sy,ir=this.tx,or=this.ty;return new Ai(er,tr,rr,nr,ir,or)},hr.Matrix=Ai;var fi=hr.matrixMult=function(er,tr){return tr.multiply(er)},gi=new Ai(1,0,0,1,0,0);hr.unitMatrix=hr.identityMatrix=gi;var mi=function Ht(er,tr){if(!ri[er]){var rr=(tr instanceof d?"Sh":"P")+(Object.keys(ti).length+1).toString(10);tr.id=rr,ri[er]=rr,ti[rr]=tr,li.publish("addPattern",tr)}};hr.ShadingPattern=d,hr.TilingPattern=p,hr.addShadingPattern=function(er,tr){return yr("addShadingPattern()"),mi(er,tr),this},hr.beginTilingPattern=function(er){yr("beginTilingPattern()"),ta(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"),mi(er,tr),li.publish("endTilingPattern",tr),pi.pop().restore()};var _i=hr.__private__.newObject=function(){var er=vi();return yi(er,!0),er},vi=hr.__private__.newObjectDeferred=function(){return Or++,Qr[Or]=function(){return jr},Or},yi=function Gt(er,tr){return tr="boolean"==typeof tr&&tr,Qr[er]=jr,tr&&Wr(er+" 0 obj"),er},wi=hr.__private__.newAdditionalObject=function(){var er={objId:vi(),content:""};return Hr.push(er),er},Si=vi(),xi=vi(),ki=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="#",ir=0;ir<3;ir++)nr+=("0"+Math.floor(255*parseFloat(tr[ir])).toString(16)).slice(-2);return nr},Ci=hr.__private__.encodeColorString=function(er){var tr;"string"==typeof er&&(er={ch1:er});var rr=er.ch1,nr=er.ch2,ir=er.ch3,or=er.ch4,ar="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,ir=255&lr}if(void 0===nr||void 0===or&&rr===nr&&nr===ir)if("string"==typeof rr)tr=rr+" "+ar[0];else switch(er.precision){case 2:tr=wr(rr/255)+" "+ar[0];break;case 3:default:tr=Sr(rr/255)+" "+ar[0]}else if(void 0===or||"object"==_typeof(or)){if(or&&!isNaN(or.a)&&0===or.a)return["1.","1.","1.",ar[1]].join(" ");if("string"==typeof rr)tr=[rr,nr,ir,ar[1]].join(" ");else switch(er.precision){case 2:tr=[wr(rr/255),wr(nr/255),wr(ir/255),ar[1]].join(" ");break;default:case 3:tr=[Sr(rr/255),Sr(nr/255),Sr(ir/255),ar[1]].join(" ")}}else if("string"==typeof rr)tr=[rr,nr,ir,or,ar[2]].join(" ");else switch(er.precision){case 2:tr=[wr(rr),wr(nr),wr(ir),wr(or),ar[2]].join(" ");break;case 3:default:tr=[Sr(rr),Sr(nr),Sr(ir),Sr(or),ar[2]].join(" ")}return tr},Bi=hr.__private__.getFilters=function(){return ar},Ei=hr.__private__.putStream=function(er){var tr=(er=er||{}).data||"",rr=er.filters||Bi(),nr=er.alreadyAppliedFilters||[],ir=er.addLength1||!1,or=tr.length,ar={};!0===rr&&(rr=["FlateEncode"]);var sr=er.additionalKeyValues||[],lr=(ar=void 0!==g.API.processDataByFilters?g.API.processDataByFilters(tr,rr):{data:tr,reverseChain:[]}).reverseChain+(Array.isArray(nr)?nr.join(" "):nr.toString());if(0!==ar.data.length&&(sr.push({key:"Length",value:ar.data.length}),!0===ir&&sr.push({key:"Length1",value:or})),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<ar.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!==ar.data.length&&(Wr("stream"),Wr(ar.data),Wr("endstream"))},Ni=hr.__private__.putPage=function(er){var tr=er.number,rr=er.data,nr=er.objId,ir=er.contentsObjId;yi(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),li.publish("putPage",{objId:nr,pageContext:si[tr],pageNumber:tr,page:rr}),Wr("/Contents "+ir+" 0 R"),Wr(">>"),Wr("endobj");var or=rr.join("\n");return _r===mr.ADVANCED&&(or+="\nQ"),yi(ir,!0),Ei({data:or,filters:Bi()}),Wr("endobj"),nr},Li=hr.__private__.putPages=function(){var er,tr,rr=[];for(er=1;er<=ai;er++)si[er].objId=vi(),si[er].contentsObjId=vi();for(er=1;er<=ai;er++)rr.push(Ni({number:er,data:Gr[er],objId:si[er].objId,contentsObjId:si[er].contentsObjId,mediaBox:si[er].mediaBox,cropBox:si[er].cropBox,bleedBox:si[er].bleedBox,trimBox:si[er].trimBox,artBox:si[er].artBox,userUnit:si[er].userUnit,rootDictionaryObjId:Si,resourceDictionaryObjId:xi}));yi(Si,!0),Wr("<</Type /Pages");var nr="/Kids [";for(tr=0;tr<ai;tr++)nr+=rr[tr]+" 0 R ";Wr(nr+"]"),Wr("/Count "+ai),Wr(">>"),Wr("endobj"),li.publish("postPutPages")},Ti=function ne(er){var tr=function e(er,tr){return-1!==er.indexOf(" ")?"("+eo(er,tr)+")":eo(er,tr)};li.publish("putFont",{font:er,out:Wr,newObject:_i,putStream:Ei,pdfEscapeWithNeededParanthesis:tr}),!0!==er.isAlreadyPutted&&(er.objectNumber=_i(),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"))},Pi=function re(){for(var er in $n)$n.hasOwnProperty(er)&&(!1===ur||!0===ur&&dr.hasOwnProperty(er))&&Ti($n[er])},Fi=function ie(er){er.objectNumber=_i();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");Ei({data:rr,additionalKeyValues:tr}),Wr("endobj")},Ui=function ae(){for(var er in di)di.hasOwnProperty(er)&&Fi(di[er])},Ii=function oe(er,tr){var rr,nr=[],ir=1/(tr-1);for(rr=0;rr<1;rr+=ir)nr.push(rr);if(nr.push(1),0!=er[0].offset){var or={offset:0,color:er[0].color};er.unshift(or)}if(1!=er[er.length-1].offset){var ar={offset:1,color:er[er.length-1].color};er.push(ar)}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()},Ri=function se(er,tr){tr||(tr=21);var rr=_i(),nr=Ii(er.colors,tr),ir=[];ir.push({key:"FunctionType",value:"0"}),ir.push({key:"Domain",value:"[0.0 1.0]"}),ir.push({key:"Size",value:"["+tr+"]"}),ir.push({key:"BitsPerSample",value:"8"}),ir.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ir.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ei({data:nr,additionalKeyValues:ir,alreadyAppliedFilters:["/ASCIIHexDecode"]}),Wr("endobj"),er.objectNumber=_i(),Wr("<< /ShadingType "+er.type),Wr("/ColorSpace /DeviceRGB");var or="/Coords ["+vr(parseFloat(er.coords[0]))+" "+vr(parseFloat(er.coords[1]))+" ";2===er.type?or+=vr(parseFloat(er.coords[2]))+" "+vr(parseFloat(er.coords[3])):or+=vr(parseFloat(er.coords[2]))+" "+vr(parseFloat(er.coords[3]))+" "+vr(parseFloat(er.coords[4]))+" "+vr(parseFloat(er.coords[5])),Wr(or+="]"),er.matrix&&Wr("/Matrix ["+er.matrix.toString()+"]"),Wr("/Function "+rr+" 0 R"),Wr("/Extend [true true]"),Wr(">>"),Wr("endobj")},Mi=function ue(er,tr){var rr=vi(),nr=_i();tr.push({resourcesOid:rr,objectOid:nr}),er.objectNumber=nr;var ir=[];ir.push({key:"Type",value:"/Pattern"}),ir.push({key:"PatternType",value:"1"}),ir.push({key:"PaintType",value:"1"}),ir.push({key:"TilingType",value:"1"}),ir.push({key:"BBox",value:"["+er.boundingBox.map(vr).join(" ")+"]"}),ir.push({key:"XStep",value:vr(er.xStep)}),ir.push({key:"YStep",value:vr(er.yStep)}),ir.push({key:"Resources",value:rr+" 0 R"}),er.matrix&&ir.push({key:"Matrix",value:"["+er.matrix.toString()+"]"}),Ei({data:er.stream,additionalKeyValues:ir}),Wr("endobj")},Oi=function ce(er){var tr;for(tr in ti)ti.hasOwnProperty(tr)&&(ti[tr]instanceof d?Ri(ti[tr]):ti[tr]instanceof p&&Mi(ti[tr],er))},Qi=function he(er){for(var tr in er.objectNumber=_i(),Wr("<<"),er)switch(tr){case"opacity":Wr("/ca "+wr(er[tr]));break;case"stroke-opacity":Wr("/CA "+wr(er[tr]))}Wr(">>"),Wr("endobj")},Di=function le(){var er;for(er in ni)ni.hasOwnProperty(er)&&Qi(ni[er])},ji=function fe(){for(var er in Wr("/XObject <<"),di)di.hasOwnProperty(er)&&di[er].objectNumber>=0&&Wr("/"+er+" "+di[er].objectNumber+" 0 R");li.publish("putXobjectDict"),Wr(">>")},Hi=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(">>")},Gi=function pe(){if(Object.keys(ti).length>0){for(var er in Wr("/Shading <<"),ti)ti.hasOwnProperty(er)&&ti[er]instanceof d&&ti[er].objectNumber>=0&&Wr("/"+er+" "+ti[er].objectNumber+" 0 R");li.publish("putShadingPatternDict"),Wr(">>")}},Vi=function ge(er){if(Object.keys(ti).length>0){for(var tr in Wr("/Pattern <<"),ti)ti.hasOwnProperty(tr)&&ti[tr]instanceof hr.TilingPattern&&ti[tr].objectNumber>=0&&ti[tr].objectNumber<er&&Wr("/"+tr+" "+ti[tr].objectNumber+" 0 R");li.publish("putTilingPatternDict"),Wr(">>")}},zi=function me(){if(Object.keys(ni).length>0){var er;for(er in Wr("/ExtGState <<"),ni)ni.hasOwnProperty(er)&&ni[er].objectNumber>=0&&Wr("/"+er+" "+ni[er].objectNumber+" 0 R");li.publish("putGStateDict"),Wr(">>")}},Ki=function ve(er){yi(er.resourcesOid,!0),Wr("<<"),Wr("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Hi(),Gi(),Vi(er.objectOid),zi(),ji(),Wr(">>"),Wr("endobj")},qi=function be(){var er=[];Pi(),Di(),Ui(),Oi(er),li.publish("putResources"),er.forEach(Ki),Ki({resourcesOid:xi,objectOid:Number.MAX_SAFE_INTEGER}),li.publish("postPutResources")},Wi=function ye(){li.publish("putAdditionalObjects");for(var er=0;er<Hr.length;er++){var tr=Hr[er];yi(tr.objId,!0),Wr(tr.content),Wr("endobj")}li.publish("postPutAdditionalObjects")},Xi=function we(er){Zn[er.fontName]=Zn[er.fontName]||{},Zn[er.fontName][er.fontStyle]=er.id},Yi=function Ne(er,tr,rr,nr,ir){var or={id:"F"+(Object.keys($n).length+1).toString(10),postScriptName:er,fontName:tr,fontStyle:rr,encoding:nr,isStandardFont:ir||!1,metadata:{}};return li.publish("addFont",{font:or,instance:this}),$n[or.id]=or,Xi(or),or.id},Ji=function Le(er){for(var tr=0,rr=Jr.length;tr<rr;tr++){var nr=Yi.call(this,er[tr][0],er[tr][1],er[tr][2],Jr[tr][3],!0);!1===ur&&(dr[nr]=!0);var ir=er[tr][0].split("-");Xi({id:nr,fontName:ir[0],fontStyle:ir[1]||""})}li.publish("addFonts",{fonts:$n,dictionary:Zn})},$i=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(!gg.console)throw new Error(rr);gg.console.error(rr,er),gg.alert&&alert(rr)}},er.foo.bar=er,er.foo},Zi=function Ae(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur;if(ir=(tr=tr||{}).sourceEncoding||"Unicode",ar=tr.outputEncoding,(tr.autoencode||ar)&&$n[Kn].metadata&&$n[Kn].metadata[ir]&&$n[Kn].metadata[ir].encoding&&(or=$n[Kn].metadata[ir].encoding,!ar&&$n[Kn].encoding&&(ar=$n[Kn].encoding),!ar&&or.codePages&&(ar=or.codePages[0]),"string"==typeof ar&&(ar=or[ar]),ar)){for(lr=!1,sr=[],rr=0,nr=er.length;rr<nr;rr++)(cr=ar[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)},eo=hr.__private__.pdfEscape=hr.pdfEscape=function(er,tr){return Zi(er,tr).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},to=hr.__private__.beginPage=function(er){Gr[++ai]=[],si[ai]={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])}},io(ai),qr(Gr[Ir])},ro=function Pe(er,tr){var nr,or,ar;switch(rr=tr||rr,"string"==typeof er&&(nr=gr(er.toLowerCase()),Array.isArray(nr)&&(or=nr[0],ar=nr[1])),Array.isArray(er)&&(or=er[0]*Wn,ar=er[1]*Wn),isNaN(or)&&(or=ir[0],ar=ir[1]),(or>14400||ar>14400)&&(mg.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),or=Math.min(14400,or),ar=Math.min(14400,ar)),ir=[or,ar],rr.substr(0,1)){case"l":ar>or&&(ir=[ar,or]);break;case"p":or>ar&&(ir=[ar,or])}to(ir),Io(Uo),Wr(Go),0!==Xo&&Wr(Xo+" J"),0!==Yo&&Wr(Yo+" j"),li.publish("addPage",{pageNumber:ai})},no=function ke(er){er>0&&er<=ai&&(Gr.splice(er,1),si.splice(er,1),ai--,Ir>ai&&(Ir=ai),this.setPage(Ir))},io=function Fe(er){er>0&&er<=ai&&(Ir=er)},oo=hr.__private__.getNumberOfPages=hr.getNumberOfPages=function(){return Gr.length-1},ao=function Ce(er,tr,rr){var nr,ir=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]?ir=Zn[nr][tr]:void 0!==Zn[er]&&void 0!==Zn[er][tr]?ir=Zn[er][tr]:!1===rr.disableWarning&&mg.warn("Unable to look up font label for font '"+er+"', '"+tr+"'. Refer to getFontList() for available fonts."),ir||rr.noFallback||null==(ir=Zn.times[tr])&&(ir=Zn.times.normal),ir},so=hr.__private__.putInfo=function(){for(var er in _i(),Wr("<<"),Wr("/Producer (jsPDF "+g.version+")"),zn)zn.hasOwnProperty(er)&&zn[er]&&Wr("/"+er.substr(0,1).toUpperCase()+er.substr(1)+" ("+eo(zn[er])+")");Wr("/CreationDate ("+Br+")"),Wr(">>"),Wr("endobj")},lo=hr.__private__.putCatalog=function(er){var tr=(er=er||{}).rootDictionaryObjId||Si;switch(_i(),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),li.publish("putCatalog"),Wr(">>"),Wr("endobj")},co=hr.__private__.putTrailer=function(){Wr("trailer"),Wr("<<"),Wr("/Size "+(Or+1)),Wr("/Root "+Or+" 0 R"),Wr("/Info "+(Or-1)+" 0 R"),Wr("/ID [ <"+Er+"> <"+Er+"> ]"),Wr(">>")},uo=hr.__private__.putHeader=function(){Wr("%PDF-"+pr),Wr("%ºß¬à")},ho=hr.__private__.putXRef=function(){var er="0000000000";Wr("xref"),Wr("0 "+(Or+1)),Wr("0000000000 65535 f ");for(var tr=1;tr<=Or;tr++)"function"==typeof Qr[tr]?Wr((er+Qr[tr]()).slice(-10)+" 00000 n "):void 0!==Qr[tr]?Wr((er+Qr[tr]).slice(-10)+" 00000 n "):Wr("0000000000 00000 n ")},po=hr.__private__.buildDocument=function(){Kr(),qr(Dr),li.publish("buildDocument"),uo(),Li(),Wi(),qi(),so(),lo();var er=jr;return ho(),co(),Wr("startxref"),Wr(""+er),Wr("%%EOF"),qr(Gr[Ir]),Dr.join("\n")},Ao=hr.__private__.getBlob=function(er){return new Blob([Yr(er)],{type:"application/pdf"})},fo=hr.output=hr.__private__.output=$i((function(er,tr){switch("string"==typeof(tr=tr||{})?tr={filename:tr}:tr.filename=tr.filename||"generated.pdf",er){case void 0:return po();case"save":hr.save(tr.filename);break;case"arraybuffer":return Yr(po());case"blob":return Ao(po());case"bloburi":case"bloburl":if(void 0!==gg.URL&&"function"==typeof gg.URL.createObjectURL)return gg.URL&&gg.URL.createObjectURL(Ao(po()))||void 0;mg.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=po();try{rr=vg(nr)}catch(er){rr=vg(unescape(encodeURIComponent(nr)))}return"data:application/pdf;filename="+tr.filename+";base64,"+rr;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(gg)){var ir='<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>",or=gg.open();return null!==or&&or.document.write(ir),or}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(gg)){var ar='<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=gg.open();if(null!==sr){sr.document.write(ar);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(gg))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=gg.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 gg.document.location.href=this.output("datauristring",tr);default:return null}})),go=function De(er){return!0===Array.isArray(ui)&&ui.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==go("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 mo=hr.__private__.getPageInfo=hr.getPageInfo=function(er){if(isNaN(er)||er%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:si[er].objId,pageNumber:er,pageContext:si[er]}},_o=hr.__private__.getPageInfoByObjId=function(er){if(isNaN(er)||er%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var tr in si)if(si[tr].objId===er)break;return mo(tr)},vo=hr.__private__.getCurrentPageInfo=hr.getCurrentPageInfo=function(){return{objId:si[Ir].objId,pageNumber:Ir,pageContext:si[Ir]}};hr.addPage=function(){return ro.apply(this,arguments),this},hr.setPage=function(){return io.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=si[er];for(var ir=er;ir>tr;ir--)Gr[ir]=Gr[ir-1],si[ir]=si[ir-1];Gr[tr]=rr,si[tr]=nr,this.setPage(tr)}else if(er<tr){rr=Gr[er],nr=si[er];for(var or=er;or<tr;or++)Gr[or]=Gr[or+1],si[or]=si[or+1];Gr[tr]=rr,si[tr]=nr,this.setPage(tr)}return this},hr.deletePage=function(){return no.apply(this,arguments),this},hr.__private__.text=hr.text=function(er,tr,rr,nr,ir){var or,ar,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 Ai==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=ir),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:Fo,Sr=Ar.internal.scaleFactor;function y(er){return er=er.split("\t").join(Array(nr.TabLen||9).join(" ")),eo(er,hr)}function w(er){for(var tr,rr=er.concat(),nr=[],ir=rr.length;ir--;)"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,ir,or=er.concat(),ar=[],sr=or.length;sr--;)"string"==typeof(nr=or.shift())?ar.push(tr(nr)[0]):Array.isArray(nr)&&"string"==typeof nr[0]&&(ir=tr(nr[0],nr[1],nr[2]),ar.push([ir[0],ir[1],ir[2]]));rr=ar}return rr}var kr=!1,Cr=!0;if("string"==typeof er)kr=!0;else if(Array.isArray(er)){var Br=er.concat();ar=[];for(var Er,Nr=Br.length;Nr--;)("string"!=typeof(Er=Br.shift())||Array.isArray(Er)&&"string"!=typeof Er[0])&&(Cr=!1);kr=Cr}if(!1===kr)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,Tr=Lr*(Fo-1);switch(nr.baseline){case"bottom":rr-=Tr;break;case"top":rr+=Lr-Tr;break;case"hanging":rr+=Lr-2*Tr;break;case"middle":rr+=Lr/2-Tr}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))),or={text:er,x:tr,y:rr,options:nr,mutex:{pdfEscape:eo,activeFontKey:Kn,fonts:$n,activeFontSize:$r}},li.publish("preProcessText",or),er=or.text,sr=(nr=or.options).angle,pr instanceof Ai==0&&sr&&"number"==typeof sr){sr*=Math.PI/180,0===nr.rotationDirection&&(sr=-sr),_r===mr.ADVANCED&&(sr=-sr);var Pr=Math.cos(sr),Fr=Math.sin(sr);pr=new Ai(Pr,Fr,-Fr,Pr,0,0)}else sr&&sr instanceof Ai&&(pr=sr);_r!==mr.ADVANCED||pr||(pr=gi),void 0!==(cr=nr.charSpace||qo)&&(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 Or,Qr=$r*wr,Dr=Ar.internal.pageSize.getWidth(),jr=$n[Kn];cr=nr.charSpace||qo,ur=nr.maxWidth||0,hr={};var Hr=[];if("[object Array]"===Object.prototype.toString.call(er)){var Gr;ar=w(er),"left"!==lr&&(Or=ar.map((function(er){return Ar.getStringUnitWidth(er,{font:jr,charSpace:cr,fontSize:$r,doKerning:!1})*$r/Sr})));var Vr,zr=0;if("right"===lr){tr-=Or[0],er=[],Nr=ar.length;for(var Kr=0;Kr<Nr;Kr++)0===Kr?(Vr=Qo(tr),Gr=Do(rr)):(Vr=xr(zr-Or[Kr]),Gr=-Qr),er.push([ar[Kr],Vr,Gr]),zr=Or[Kr]}else if("center"===lr){tr-=Or[0]/2,er=[],Nr=ar.length;for(var qr=0;qr<Nr;qr++)0===qr?(Vr=Qo(tr),Gr=Do(rr)):(Vr=xr((zr-Or[qr])/2),Gr=-Qr),er.push([ar[qr],Vr,Gr]),zr=Or[qr]}else if("left"===lr){er=[],Nr=ar.length;for(var Xr=0;Xr<Nr;Xr++)er.push(ar[Xr])}else{if("justify"!==lr)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');er=[],Nr=ar.length,ur=0!==ur?ur:Dr;for(var Yr=0;Yr<Nr;Yr++)Gr=0===Yr?Do(rr):-Qr,Vr=0===Yr?Qo(tr):0,Yr<Nr-1&&Hr.push(vr(xr((ur-Or[Yr])/(ar[Yr].split(" ").length-1)))),er.push([ar[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]}))),or={text:er,x:tr,y:rr,options:nr,mutex:{pdfEscape:eo,activeFontKey:Kn,fonts:$n,activeFontSize:$r}},li.publish("postProcessText",or),er=or.text,br=or.mutex.isHex||!1;var Zr=$n[Kn].encoding;"WinAnsiEncoding"!==Zr&&"StandardEncoding"!==Zr||(er=L(er,(function(er,tr,rr){return[y(er),tr,rr]}))),ar=w(er),er=[];for(var Tn,Qn,Dn,Hn=0,Gn=1,Vn=Array.isArray(ar[0])?Gn:Hn,zn="",Wn=function ct(er,tr,rr){var ir="";return rr instanceof Ai?(rr="number"==typeof nr.angle?fi(rr,new Ai(1,0,0,1,er,tr)):fi(new Ai(1,0,0,1,er,tr),rr),_r===mr.ADVANCED&&(rr=fi(new Ai(1,0,0,-1,0,0),rr)),ir=rr.join(" ")+" Tm\n"):ir=vr(er)+" "+vr(tr)+" Td\n",ir},Xn=0;Xn<ar.length;Xn++){switch(zn="",Vn){case Gn:Dn=(br?"<":"(")+ar[Xn][0]+(br?">":")"),Tn=parseFloat(ar[Xn][1]),Qn=parseFloat(ar[Xn][2]);break;case Hn:Dn=(br?"<":"(")+ar[Xn]+(br?">":")"),Tn=Qo(tr),Qn=Do(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+=zo+"\n",Yn+=gr,Yn+=er,Wr(Yn+="ET"),dr[Kn]=!0,Ar};var yo=hr.__private__.clip=hr.clip=function(er){return Wr("evenodd"===er?"W*":"W"),this};hr.clipEvenOdd=function(){return yo("evenodd")},hr.__private__.discardPath=hr.discardPath=function(){return Wr("n"),this};var wo=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 wo(er)&&(cr=er),this};var So=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},xo=hr.close=function(){return Wr("h"),this};hr.stroke=function(){return Wr("S"),this},hr.fill=function(er){return ko("f",er),this},hr.fillEvenOdd=function(er){return ko("f*",er),this},hr.fillStroke=function(er){return ko("B",er),this},hr.fillStrokeEvenOdd=function(er){return ko("B*",er),this};var ko=function Je(er,tr){"object"==_typeof(tr)?Bo(tr,er):Wr(er)},Co=function Xe(er){null===er||_r===mr.ADVANCED&&void 0===er||(er=So(er),Wr(er))};function Ke(er,tr,rr,nr,ir){var or=new p(tr||this.boundingBox,rr||this.xStep,nr||this.yStep,this.gState,ir||this.matrix);or.stream=this.stream;var ar=er+"$$"+this.cloneIndex+++"$$";return mi(ar,or),or}var Bo=function Ze(er,tr){var rr=ri[er.key],nr=ti[rr];if(nr instanceof d)Wr("q"),Wr(Eo(tr)),nr.gState&&hr.setGState(nr.gState),Wr(er.matrix.toString()+" cm"),Wr("/"+rr+" sh"),Wr("Q");else if(nr instanceof p){var ir=new Ai(1,0,0,-1,0,aa());er.matrix&&(ir=ir.multiply(er.matrix||gi),rr=Ke.call(nr,er.key,er.boundingBox,er.xStep,er.yStep,ir).id),Wr("q"),Wr("/Pattern cs"),Wr("/"+rr+" scn"),nr.gState&&hr.setGState(nr.gState),Wr(tr),Wr("Q")}},Eo=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"}},No=hr.moveTo=function(er,tr){return Wr(vr(xr(er))+" "+vr(Cr(tr))+" m"),this},Lo=hr.lineTo=function(er,tr){return Wr(vr(xr(er))+" "+vr(Cr(tr))+" l"),this},To=hr.curveTo=function(er,tr,rr,nr,ir,or){return Wr([vr(xr(er)),vr(Cr(tr)),vr(xr(rr)),vr(Cr(nr)),vr(xr(ir)),vr(Cr(or)),"c"].join(" ")),this};hr.__private__.line=hr.line=function(er,tr,rr,nr,ir){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||!wo(ir))throw new Error("Invalid arguments passed to jsPDF.line");return _r===mr.COMPAT?this.lines([[rr-er,nr-tr]],er,tr,[1,1],ir||"S"):this.lines([[rr-er,nr-tr]],er,tr,[1,1]).stroke()},hr.__private__.lines=hr.lines=function(er,tr,rr,nr,ir,or){var ar,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],or=or||!1,isNaN(tr)||isNaN(rr)||!Array.isArray(er)||!Array.isArray(nr)||!wo(ir)||"boolean"!=typeof or)throw new Error("Invalid arguments passed to jsPDF.lines");for(No(tr,rr),ar=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]*ar+fr,gr=ur[1]*sr+gr,Lo(fr,gr)):(dr=ur[0]*ar+fr,hr=ur[1]*sr+gr,pr=ur[2]*ar+fr,Ar=ur[3]*sr+gr,fr=ur[4]*ar+fr,gr=ur[5]*sr+gr,To(dr,hr,pr,Ar,fr,gr));return or&&xo(),Co(ir),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":No(nr[0],nr[1]);break;case"l":Lo(nr[0],nr[1]);break;case"c":To.apply(this,nr);break;case"h":xo()}}return this},hr.__private__.rect=hr.rect=function(er,tr,rr,nr,ir){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||!wo(ir))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(" ")),Co(ir),this},hr.__private__.triangle=hr.triangle=function(er,tr,rr,nr,ir,or,ar){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ir)||isNaN(or)||!wo(ar))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[rr-er,nr-tr],[ir-rr,or-nr],[er-ir,tr-or]],er,tr,[1,1],ar,!0),this},hr.__private__.roundedRect=hr.roundedRect=function(er,tr,rr,nr,ir,or,ar){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ir)||isNaN(or)||!wo(ar))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var sr=4/3*(Math.SQRT2-1);return ir=Math.min(ir,.5*rr),or=Math.min(or,.5*nr),this.lines([[rr-2*ir,0],[ir*sr,0,ir,or-or*sr,ir,or],[0,nr-2*or],[0,or*sr,-ir*sr,or,-ir,or],[2*ir-rr,0],[-ir*sr,0,-ir,-or*sr,-ir,-or],[0,2*or-nr],[0,-or*sr,ir*sr,-or,ir,-or]],er+ir,tr,[1,1],ar,!0),this},hr.__private__.ellipse=hr.ellipse=function(er,tr,rr,nr,ir){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||!wo(ir))throw new Error("Invalid arguments passed to jsPDF.ellipse");var or=4/3*(Math.SQRT2-1)*rr,ar=4/3*(Math.SQRT2-1)*nr;return No(er+rr,tr),To(er+rr,tr-ar,er+or,tr-nr,er,tr-nr),To(er-or,tr-nr,er-rr,tr-ar,er-rr,tr),To(er-rr,tr+ar,er-or,tr+nr,er,tr+nr),To(er+or,tr+nr,er+rr,tr+ar,er+rr,tr),Co(ir),this},hr.__private__.circle=hr.circle=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||!wo(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=ao(er,tr,{disableWarning:!1}),this};var Po=hr.__private__.getFont=hr.getFont=function(){return $n[ao.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",Yi.call(this,er,tr,rr,nr)};var Fo,Uo=er.lineWidth||.200025,Io=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 Ro=hr.__private__.getLineHeight=hr.getLineHeight=function(){return $r*Fo};hr.__private__.getLineHeight=hr.getLineHeight=function(){return $r*Fo};var Mo=hr.__private__.setLineHeightFactor=hr.setLineHeightFactor=function(er){return"number"==typeof(er=er||1.15)&&(Fo=er),this},Oo=hr.__private__.getLineHeightFactor=hr.getLineHeightFactor=function(){return Fo};Mo(er.lineHeight);var Qo=hr.__private__.getHorizontalCoordinate=function(er){return xr(er)},Do=hr.__private__.getVerticalCoordinate=function(er){return _r===mr.ADVANCED?er:si[Ir].mediaBox.topRightY-si[Ir].mediaBox.bottomLeftY-xr(er)},jo=hr.__private__.getHorizontalCoordinateString=hr.getHorizontalCoordinateString=function(er){return vr(Qo(er))},Ho=hr.__private__.getVerticalCoordinateString=hr.getVerticalCoordinateString=function(er){return vr(Do(er))},Go=er.strokeColor||"0 G";hr.__private__.getStrokeColor=hr.getDrawColor=function(){return ki(Go)},hr.__private__.setStrokeColor=hr.setDrawColor=function(er,tr,rr,nr){return Go=Ci({ch1:er,ch2:tr,ch3:rr,ch4:nr,pdfColorType:"draw",precision:2}),Wr(Go),this};var Vo=er.fillColor||"0 g";hr.__private__.getFillColor=hr.getFillColor=function(){return ki(Vo)},hr.__private__.setFillColor=hr.setFillColor=function(er,tr,rr,nr){return Vo=Ci({ch1:er,ch2:tr,ch3:rr,ch4:nr,pdfColorType:"fill",precision:2}),Wr(Vo),this};var zo=er.textColor||"0 g",Ko=hr.__private__.getTextColor=hr.getTextColor=function(){return ki(zo)};hr.__private__.setTextColor=hr.setTextColor=function(er,tr,rr,nr){return zo=Ci({ch1:er,ch2:tr,ch3:rr,ch4:nr,pdfColorType:"text",precision:3}),this};var qo=er.charSpace,Wo=hr.__private__.getCharSpace=hr.getCharSpace=function(){return parseFloat(qo||0)};hr.__private__.setCharSpace=hr.setCharSpace=function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return qo=er,this};var Xo=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 Xo=tr,Wr(tr+" J"),this};var Yo=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 Yo=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?ni[ii[er]]:Jo(null,er)).equals(oi)||(Wr("/"+er.id+" gs"),oi=er)};var Jo=function Ln(er,tr){if(!er||!ii[er]){var rr=!1;for(var nr in ni)if(ni.hasOwnProperty(nr)&&ni[nr].equals(tr)){rr=!0;break}if(rr)tr=ni[nr];else{var ir="GS"+(Object.keys(ni).length+1).toString(10);ni[ir]=tr,tr.id=ir}return er&&(ii[er]=tr.id),li.publish("addGState",tr),tr}};hr.addGState=function(er,tr){return Jo(er,tr),this},hr.saveGraphicsState=function(){return Wr("q"),ei.push({key:Kn,size:$r,color:zo}),this},hr.restoreGraphicsState=function(){Wr("Q");var er=ei.pop();return Kn=er.key,$r=er.size,zo=er.color,oi=null,this},hr.setCurrentTransformationMatrix=function(er){return Wr(er.toString()+" cm"),this},hr.comment=function(er){return Wr("#"+er),this};var $o=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 ir="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function get(){return ir},set:function set(er){ir=er.toString()}}),this},Zo=function An(er,tr,rr,nr){$o.call(this,er,tr),this.type="rect";var ir=rr||0;Object.defineProperty(this,"w",{enumerable:!0,get:function get(){return ir},set:function set(er){isNaN(er)||(ir=parseFloat(er))}});var or=nr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function get(){return or},set:function set(er){isNaN(er)||(or=parseFloat(er))}}),this},ea=function _n(){this.page=ai,this.currentPage=Ir,this.pages=Gr.slice(0),this.pagesContext=si.slice(0),this.x=Xn,this.y=Yn,this.matrix=Jn,this.width=ia(Ir),this.height=aa(Ir),this.outputDestination=zr,this.id="",this.objectNumber=-1};ea.prototype.restore=function(){ai=this.page,Ir=this.currentPage,si=this.pagesContext,Gr=this.pages,Xn=this.x,Yn=this.y,Jn=this.matrix,oa(Ir,this.width),sa(Ir,this.height),zr=this.outputDestination};var ta=function Sn(er,tr,rr,nr,ir){pi.push(new ea),ai=Ir=0,Gr=[],Xn=er,Yn=tr,Jn=ir,to([rr,nr])},ra=function Pn(er){if(!hi[er]){var tr=new ea,rr="Xo"+(Object.keys(di).length+1).toString(10);tr.id=rr,hi[er]=rr,di[rr]=tr,li.publish("addFormObject",tr),pi.pop().restore()}};for(var na in hr.beginFormObject=function(er,tr,rr,nr,ir){return ta(er,tr,rr,nr,ir),this},hr.endFormObject=function(er){return ra(er),this},hr.doFormObject=function(er,tr){var rr=di[hi[er]];return Wr("q"),Wr(tr.toString()+" cm"),Wr("/"+rr.id+" Do"),Wr("Q"),this},hr.getFormObject=function(er){var tr=di[hi[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?(yg(Ao(po()),er),"function"==typeof yg.unload&&gg.setTimeout&&setTimeout(yg.unload,911),this):new Promise((function(tr,rr){try{var nr=yg(Ao(po()),er);"function"==typeof yg.unload&&gg.setTimeout&&setTimeout(yg.unload,911),tr(nr)}catch(er){rr(er.message)}}))},g.API)g.API.hasOwnProperty(na)&&("events"===na&&g.API.events.length?function(er,tr){var rr,nr,ir;for(ir=tr.length-1;-1!==ir;ir--)rr=tr[ir][0],nr=tr[ir][1],er.subscribe.apply(er,[rr].concat("function"==typeof nr?[nr]:nr))}(li,g.API.events):hr[na]=g.API[na]);var ia=hr.getPageWidth=function(er){return(si[er=er||Ir].mediaBox.topRightX-si[er].mediaBox.bottomLeftX)/Wn},oa=hr.setPageWidth=function(er,tr){si[er].mediaBox.topRightX=tr*Wn+si[er].mediaBox.bottomLeftX},aa=hr.getPageHeight=function(er){return(si[er=er||Ir].mediaBox.topRightY-si[er].mediaBox.bottomLeftY)/Wn},sa=hr.setPageHeight=function(er,tr){si[er].mediaBox.topRightY=tr*Wn+si[er].mediaBox.bottomLeftY};return hr.internal={pdfEscape:eo,getStyle:So,getFont:Po,getFontSize:Tn,getCharSpace:Wo,getTextColor:Ko,getLineHeight:Ro,getLineHeightFactor:Oo,write:Xr,getHorizontalCoordinate:Qo,getVerticalCoordinate:Do,getCoordinateString:jo,getVerticalCoordinateString:Ho,collections:{},newObject:_i,newAdditionalObject:wi,newObjectDeferred:vi,newObjectDeferredBegin:yi,getFilters:Bi,putStream:Ei,events:li,scaleFactor:Wn,pageSize:{getWidth:function getWidth(){return ia(Ir)},setWidth:function setWidth(er){oa(Ir,er)},getHeight:function getHeight(){return aa(Ir)},setHeight:function setHeight(er){sa(Ir,er)}},output:fo,getNumberOfPages:oo,pages:Gr,out:Wr,f2:wr,f3:Sr,getPageInfo:mo,getPageInfoByObjId:_o,getCurrentPageInfo:vo,getPDFVersion:Ar,Point:$o,Rectangle:Zo,Matrix:Ai,hasHotfix:go},Object.defineProperty(hr.internal.pageSize,"width",{get:function get(){return ia(Ir)},set:function set(er){oa(Ir,er)},enumerable:!0,configurable:!0}),Object.defineProperty(hr.internal.pageSize,"height",{get:function get(){return aa(Ir)},set:function set(er){sa(Ir,er)},enumerable:!0,configurable:!0}),Ji.call(hr,Jr),Kn="F1",ro(ir,rr),li.publish("initialized"),hr}_g=gg.atob,vg=gg.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 bg,wg=g.API,Sg=1,xg=function y(er){return er.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},kg=function w(er){return er.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Cg=function N(er){return er.toFixed(2)},Bg=function L(er){return er.toFixed(5)};wg.__acroform__={};var Eg=function x(er,tr){er.prototype=Object.create(tr.prototype),er.prototype.constructor=er},Ng=function A(er){return er*Sg},Lg=function _(er){var tr=new Zg,rr=pm.internal.getHeight(er)||0,nr=pm.internal.getWidth(er)||0;return tr.BBox=[0,0,Number(Cg(nr)),Number(Cg(rr))],tr},Tg=wg.__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},Pg=wg.__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)},Fg=wg.__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},Ug=wg.__acroform__.getBitForPdf=function(er,tr){if(isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Fg(er,tr-1)},Ig=wg.__acroform__.setBitForPdf=function(er,tr){if(isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Tg(er,tr-1)},Rg=wg.__acroform__.clearBitForPdf=function(er,tr){if(isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Pg(er,tr-1)},Mg=wg.__acroform__.calculateCoordinates=function(er){var tr=this.internal.getHorizontalCoordinate,rr=this.internal.getVerticalCoordinate,nr=er[0],ir=er[1],or=er[2],ar=er[3],sr={};return sr.lowerLeft_X=tr(nr)||0,sr.lowerLeft_Y=rr(ir+ar)||0,sr.upperRight_X=tr(nr+or)||0,sr.upperRight_Y=rr(ir)||0,[Number(Cg(sr.lowerLeft_X)),Number(Cg(sr.lowerLeft_Y)),Number(Cg(sr.upperRight_X)),Number(Cg(sr.upperRight_Y))]},Og=function B(er){if(er.appearanceStreamContent)return er.appearanceStreamContent;if(er.V||er.DV){var tr=[],rr=er.V||er.DV,nr=Qg(er,rr),ir=bg.internal.getFont(er.fontName,er.fontStyle).id;tr.push("/Tx BMC"),tr.push("q"),tr.push("BT"),tr.push(bg.__private__.encodeColorString(er.color)),tr.push("/"+ir+" "+Cg(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 or=new Lg(er);return or.stream=tr.join("\n"),or}},Qg=function O(er,tr){var rr=0===er.fontSize?er.maxFontSize:er.fontSize,nr={text:"",fontSize:""},ir=(tr=")"==(tr="("==tr.substr(0,1)?tr.substr(1):tr).substr(tr.length-1)?tr.substr(0,tr.length-1):tr).split(" "),or=rr,ar=pm.internal.getHeight(er)||0;ar=ar<0?-ar:ar;var sr=pm.internal.getWidth(er)||0;sr=sr<0?-sr:sr;var lr=function u(tr,rr,nr){if(tr+1<ir.length){var or=rr+" "+ir[tr+1];return Dg(or,er,nr).width<=sr-4}return!1};or++;e:for(;or>0;){tr="",or--;var cr,ur,dr=Dg("3",er,or).height,hr=er.multiline?ar-or:(ar-dr)/2,pr=hr+=2,Ar=0,fr=0;if(or<=0){tr="(...) Tj\n",tr+="% Width of Text: "+Dg(tr,er,or=12).width+", FieldWidth:"+sr+"\n";break}var gr="",mr=0;for(var _r in ir)if(ir.hasOwnProperty(_r)){gr=" "==(gr+=ir[_r]+" ").substr(gr.length-1)?gr.substr(0,gr.length-1):gr;var vr=parseInt(_r),yr=lr(vr,gr,or),br=_r>=ir.length-1;if(yr&&!br){gr+=" ";continue}if(yr||br){if(br)fr=vr;else if(er.multiline&&(dr+2)*(mr+2)+2>ar)continue e}else{if(!er.multiline)continue e;if((dr+2)*(mr+2)+2>ar)continue e;fr=vr}for(var wr="",Sr=Ar;Sr<=fr;Sr++)wr+=ir[Sr]+" ";switch(wr=" "==wr.substr(wr.length-1)?wr.substr(0,wr.length-1):wr,ur=Dg(wr,er,or).width,er.textAlign){case"right":cr=sr-ur-2;break;case"center":cr=(sr-ur)/2;break;case"left":default:cr=2}tr+=Cg(cr)+" "+Cg(pr)+" Td\n",tr+="("+xg(wr)+") Tj\n",tr+=-Cg(cr)+" 0 Td\n",pr=-(or+2),ur=0,Ar=fr+1,mr++,gr=""}break}return nr.text=tr,nr.fontSize=or,nr},Dg=function M(er,tr,rr){var nr=bg.internal.getFont(tr.fontName,tr.fontStyle),ir=bg.getStringUnitWidth(er,{font:nr,fontSize:parseFloat(rr),charSpace:0})*parseFloat(rr);return{height:bg.getStringUnitWidth("3",{font:nr,fontSize:parseFloat(rr),charSpace:0})*parseFloat(rr)*1.5,width:ir}},jg={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Hg=function q(){bg.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var er=bg.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var tr in er)if(er.hasOwnProperty(tr)){var rr=er[tr];rr.objId=void 0,rr.hasAnnotation&&Vg.call(bg,rr)}},Gg=function R(er){bg.internal.acroformPlugin.printedOut&&(bg.internal.acroformPlugin.printedOut=!1,bg.internal.acroformPlugin.acroFormDictionaryRoot=null),bg.internal.acroformPlugin.acroFormDictionaryRoot||Xg.call(bg),bg.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(er)},Vg=function T(er){var tr={type:"reference",object:er};void 0===bg.internal.getPageInfo(er.page).pageContext.annotations.find((function(er){return er.type===tr.type&&er.object===tr.object}))&&bg.internal.getPageInfo(er.page).pageContext.annotations.push(tr)},zg=function D(){if(void 0===bg.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");bg.internal.write("/AcroForm "+bg.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},Kg=function U(){bg.internal.events.unsubscribe(bg.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete bg.internal.acroformPlugin.acroFormDictionaryRoot._eventID,bg.internal.acroformPlugin.printedOut=!0},qg=function z(er){var tr=!er;for(var rr in er||(bg.internal.newObjectDeferredBegin(bg.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),bg.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),er=er||bg.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(er.hasOwnProperty(rr)){var nr=er[rr],ir=[],or=nr.Rect;if(nr.Rect&&(nr.Rect=Mg.call(this,nr.Rect)),bg.internal.newObjectDeferredBegin(nr.objId,!0),nr.DA=pm.createDefaultAppearanceStream(nr),"object"==_typeof(nr)&&"function"==typeof nr.getKeyValueListForStream&&(ir=nr.getKeyValueListForStream()),nr.Rect=or,nr.hasAppearanceStream&&!nr.appearanceStreamContent){var ar=Og.call(this,nr);ir.push({key:"AP",value:"<</N "+ar+">>"}),bg.internal.acroformPlugin.xForms.push(ar)}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+" ",bg.internal.acroformPlugin.xForms.indexOf(ur)>=0||bg.internal.acroformPlugin.xForms.push(ur)}}else"function"==typeof(ur=cr)&&(ur=ur.call(this,nr)),sr+="/"+rr+" "+ur,bg.internal.acroformPlugin.xForms.indexOf(ur)>=0||bg.internal.acroformPlugin.xForms.push(ur);sr+=">>"}ir.push({key:"AP",value:"<<\n"+sr+">>"})}bg.internal.putStream({additionalKeyValues:ir}),bg.internal.out("endobj")}tr&&Wg.call(this,bg.internal.acroformPlugin.xForms)},Wg=function H(er){for(var tr in er)if(er.hasOwnProperty(tr)){var rr=tr,nr=er[tr];bg.internal.newObjectDeferredBegin(nr&&nr.objId,!0),"object"==_typeof(nr)&&"function"==typeof nr.putStream&&nr.putStream(),delete er[rr]}},Xg=function W(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(bg=this,tm.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(jg)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Sg=bg.internal.scaleFactor,bg.internal.acroformPlugin.acroFormDictionaryRoot=new em,bg.internal.acroformPlugin.acroFormDictionaryRoot._eventID=bg.internal.events.subscribe("postPutResources",Kg),bg.internal.events.subscribe("buildDocument",Hg),bg.internal.events.subscribe("putCatalog",zg),bg.internal.events.subscribe("postPutPages",qg),bg.internal.acroformPlugin.isInitialized=!0}},Yg=wg.__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+="("+xg(er[rr].toString())+")":tr+=er[rr].toString()}return tr+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Jg=function G(er){return(er=er||"").toString(),"("+xg(er)+")"},$g=function Y(){var er;Object.defineProperty(this,"objId",{configurable:!0,get:function get(){return er||(er=bg.internal.newObjectDeferred()),er},set:function set(tr){er=tr}})};$g.prototype.toString=function(){return this.objId+" 0 R"},$g.prototype.putStream=function(){var er=this.getKeyValueListForStream();bg.internal.putStream({data:this.stream,additionalKeyValues:er}),bg.internal.out("endobj")},$g.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 ir=rr[nr],or=er[ir];or&&(Array.isArray(or)?tr.push({key:ir,value:Yg(or)}):or instanceof $g?tr.push({key:ir,value:or.objId+" 0 R"}):"function"!=typeof or&&tr.push({key:ir,value:or}))}return tr}(this)};var Zg=function J(){$g.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}})};Eg(Zg,$g);var em=function X(){$g.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}})};Eg(em,$g);var tm=function K(){$g.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(Ug(er,3))},set:function set(tr){!0===Boolean(tr)?this.F=Ig(er,3):this.F=Rg(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 ir=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function get(){if(!ir||ir.length<1){if(this instanceof cm)return;ir="FieldObject"+K.FieldNum++}return"("+xg(ir)+")"},set:function set(er){ir=er.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function get(){return ir},set:function set(er){ir=er}});var or="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function get(){return or},set:function set(er){or=er}});var ar="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function get(){return ar},set:function set(er){ar=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/Sg: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 cm||this instanceof dm))return Jg(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 am==0?Jg(dr):dr},set:function set(er){er=er.toString(),dr=this instanceof am==0?"("===er.substr(0,1)?kg(er.substr(1,er.length-2)):kg(er):er}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function get(){return this instanceof am==1?kg(dr.substr(1,dr.length-1)):dr},set:function set(er){er=er.toString(),dr=this instanceof am==1?"/"+er:er}});var hr=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function get(){if(hr)return this instanceof am==0?Jg(hr):hr},set:function set(er){er=er.toString(),hr=this instanceof am==0?"("===er.substr(0,1)?kg(er.substr(1,er.length-2)):kg(er):er}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function get(){return this instanceof am==1?kg(hr.substr(1,hr.length-1)):hr},set:function set(er){er=er.toString(),hr=this instanceof am==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(Ug(this.Ff,1))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,1):this.Ff=Rg(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,2))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,2):this.Ff=Rg(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,3))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,3):this.Ff=Rg(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}}})};Eg(tm,$g);var rm=function Z(){tm.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 Yg(tr)},set:function set(er){var rr,nr;nr=[],"string"==typeof(rr=er)&&(nr=function(er,tr,rr){rr||(rr=1);for(var nr,ir=[];nr=tr.exec(er);)ir.push(nr[rr]);return ir}(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(Ug(this.Ff,18))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,18):this.Ff=Rg(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,19))},set:function set(er){!0===this.combo&&(!0===Boolean(er)?this.Ff=Ig(this.Ff,19):this.Ff=Rg(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,20))},set:function set(er){!0===Boolean(er)?(this.Ff=Ig(this.Ff,20),tr.sort()):this.Ff=Rg(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,22))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,22):this.Ff=Rg(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,23))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,23):this.Ff=Rg(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,27))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,27):this.Ff=Rg(this.Ff,27)}}),this.hasAppearanceStream=!1};Eg(rm,tm);var nm=function $(){rm.call(this),this.fontName="helvetica",this.combo=!1};Eg(nm,rm);var im=function Q(){nm.call(this),this.combo=!0};Eg(im,nm);var om=function tt(){im.call(this),this.edit=!0};Eg(om,im);var am=function et(){tm.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,15))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,15):this.Ff=Rg(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,16))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,16):this.Ff=Rg(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,17))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,17):this.Ff=Rg(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,26))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,26):this.Ff=Rg(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}})};Eg(am,tm);var sm=function nt(){am.call(this),this.pushButton=!0};Eg(sm,am);var lm=function rt(){am.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:[]}})};Eg(lm,am);var cm=function it(){var er,tr;tm.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=pm.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Eg(cm,tm),lm.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()}},lm.prototype.createOption=function(er){var tr=new cm;return tr.Parent=this,tr.optionName=er,this.Kids.push(tr),Am.call(this,tr),tr};var um=function at(){am.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=pm.CheckBox.createAppearanceStream()};Eg(um,am);var dm=function ot(){tm.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,13))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,13):this.Ff=Rg(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,21))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,21):this.Ff=Rg(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,23))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,23):this.Ff=Rg(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,24))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,24):this.Ff=Rg(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,25))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,25):this.Ff=Rg(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,26))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,26):this.Ff=Rg(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}})};Eg(dm,tm);var hm=function st(){dm.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function get(){return Boolean(Ug(this.Ff,14))},set:function set(er){!0===Boolean(er)?this.Ff=Ig(this.Ff,14):this.Ff=Rg(this.Ff,14)}}),this.password=!0};Eg(hm,dm);var pm={CheckBox:{createAppearanceStream:function createAppearanceStream(){return{N:{On:pm.CheckBox.YesNormal},D:{On:pm.CheckBox.YesPushDown,Off:pm.CheckBox.OffPushDown}}},YesPushDown:function YesPushDown(er){var tr=new Lg(er),rr=[],nr=bg.internal.getFont(er.fontName,er.fontStyle).id,ir=bg.__private__.encodeColorString(er.color),or=Qg(er,er.caption);return rr.push("0.749023 g"),rr.push("0 0 "+Cg(pm.internal.getWidth(er))+" "+Cg(pm.internal.getHeight(er))+" re"),rr.push("f"),rr.push("BMC"),rr.push("q"),rr.push("0 0 1 rg"),rr.push("/"+nr+" "+Cg(or.fontSize)+" Tf "+ir),rr.push("BT"),rr.push(or.text),rr.push("ET"),rr.push("Q"),rr.push("EMC"),tr.stream=rr.join("\n"),tr},YesNormal:function YesNormal(er){var tr=new Lg(er),rr=bg.internal.getFont(er.fontName,er.fontStyle).id,nr=bg.__private__.encodeColorString(er.color),ir=[],or=pm.internal.getHeight(er),ar=pm.internal.getWidth(er),sr=Qg(er,er.caption);return ir.push("1 g"),ir.push("0 0 "+Cg(ar)+" "+Cg(or)+" re"),ir.push("f"),ir.push("q"),ir.push("0 0 1 rg"),ir.push("0 0 "+Cg(ar-1)+" "+Cg(or-1)+" re"),ir.push("W"),ir.push("n"),ir.push("0 g"),ir.push("BT"),ir.push("/"+rr+" "+Cg(sr.fontSize)+" Tf "+nr),ir.push(sr.text),ir.push("ET"),ir.push("Q"),tr.stream=ir.join("\n"),tr},OffPushDown:function OffPushDown(er){var tr=new Lg(er),rr=[];return rr.push("0.749023 g"),rr.push("0 0 "+Cg(pm.internal.getWidth(er))+" "+Cg(pm.internal.getHeight(er))+" re"),rr.push("f"),tr.stream=rr.join("\n"),tr}},RadioButton:{Circle:{createAppearanceStream:function createAppearanceStream(er){var tr={D:{Off:pm.RadioButton.Circle.OffPushDown},N:{}};return tr.N[er]=pm.RadioButton.Circle.YesNormal,tr.D[er]=pm.RadioButton.Circle.YesPushDown,tr},getCA:function getCA(){return"l"},YesNormal:function YesNormal(er){var tr=new Lg(er),rr=[],nr=pm.internal.getWidth(er)<=pm.internal.getHeight(er)?pm.internal.getWidth(er)/4:pm.internal.getHeight(er)/4;nr=Number((.9*nr).toFixed(5));var ir=pm.internal.Bezier_C,or=Number((nr*ir).toFixed(5));return rr.push("q"),rr.push("1 0 0 1 "+Bg(pm.internal.getWidth(er)/2)+" "+Bg(pm.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},YesPushDown:function YesPushDown(er){var tr=new Lg(er),rr=[],nr=pm.internal.getWidth(er)<=pm.internal.getHeight(er)?pm.internal.getWidth(er)/4:pm.internal.getHeight(er)/4,ir=(nr=Number((.9*nr).toFixed(5)),Number((2*nr).toFixed(5))),or=Number((ir*pm.internal.Bezier_C).toFixed(5)),ar=Number((nr*pm.internal.Bezier_C).toFixed(5));return rr.push("0.749023 g"),rr.push("q"),rr.push("1 0 0 1 "+Bg(pm.internal.getWidth(er)/2)+" "+Bg(pm.internal.getHeight(er)/2)+" cm"),rr.push(ir+" 0 m"),rr.push(ir+" "+or+" "+or+" "+ir+" 0 "+ir+" c"),rr.push("-"+or+" "+ir+" -"+ir+" "+or+" -"+ir+" 0 c"),rr.push("-"+ir+" -"+or+" -"+or+" -"+ir+" 0 -"+ir+" c"),rr.push(or+" -"+ir+" "+ir+" -"+or+" "+ir+" 0 c"),rr.push("f"),rr.push("Q"),rr.push("0 g"),rr.push("q"),rr.push("1 0 0 1 "+Bg(pm.internal.getWidth(er)/2)+" "+Bg(pm.internal.getHeight(er)/2)+" cm"),rr.push(nr+" 0 m"),rr.push(nr+" "+ar+" "+ar+" "+nr+" 0 "+nr+" c"),rr.push("-"+ar+" "+nr+" -"+nr+" "+ar+" -"+nr+" 0 c"),rr.push("-"+nr+" -"+ar+" -"+ar+" -"+nr+" 0 -"+nr+" c"),rr.push(ar+" -"+nr+" "+nr+" -"+ar+" "+nr+" 0 c"),rr.push("f"),rr.push("Q"),tr.stream=rr.join("\n"),tr},OffPushDown:function OffPushDown(er){var tr=new Lg(er),rr=[],nr=pm.internal.getWidth(er)<=pm.internal.getHeight(er)?pm.internal.getWidth(er)/4:pm.internal.getHeight(er)/4;nr=Number((.9*nr).toFixed(5));var ir=Number((2*nr).toFixed(5)),or=Number((ir*pm.internal.Bezier_C).toFixed(5));return rr.push("0.749023 g"),rr.push("q"),rr.push("1 0 0 1 "+Bg(pm.internal.getWidth(er)/2)+" "+Bg(pm.internal.getHeight(er)/2)+" cm"),rr.push(ir+" 0 m"),rr.push(ir+" "+or+" "+or+" "+ir+" 0 "+ir+" c"),rr.push("-"+or+" "+ir+" -"+ir+" "+or+" -"+ir+" 0 c"),rr.push("-"+ir+" -"+or+" -"+or+" -"+ir+" 0 -"+ir+" c"),rr.push(or+" -"+ir+" "+ir+" -"+or+" "+ir+" 0 c"),rr.push("f"),rr.push("Q"),tr.stream=rr.join("\n"),tr}},Cross:{createAppearanceStream:function createAppearanceStream(er){var tr={D:{Off:pm.RadioButton.Cross.OffPushDown},N:{}};return tr.N[er]=pm.RadioButton.Cross.YesNormal,tr.D[er]=pm.RadioButton.Cross.YesPushDown,tr},getCA:function getCA(){return"8"},YesNormal:function YesNormal(er){var tr=new Lg(er),rr=[],nr=pm.internal.calculateCross(er);return rr.push("q"),rr.push("1 1 "+Cg(pm.internal.getWidth(er)-2)+" "+Cg(pm.internal.getHeight(er)-2)+" re"),rr.push("W"),rr.push("n"),rr.push(Cg(nr.x1.x)+" "+Cg(nr.x1.y)+" m"),rr.push(Cg(nr.x2.x)+" "+Cg(nr.x2.y)+" l"),rr.push(Cg(nr.x4.x)+" "+Cg(nr.x4.y)+" m"),rr.push(Cg(nr.x3.x)+" "+Cg(nr.x3.y)+" l"),rr.push("s"),rr.push("Q"),tr.stream=rr.join("\n"),tr},YesPushDown:function YesPushDown(er){var tr=new Lg(er),rr=pm.internal.calculateCross(er),nr=[];return nr.push("0.749023 g"),nr.push("0 0 "+Cg(pm.internal.getWidth(er))+" "+Cg(pm.internal.getHeight(er))+" re"),nr.push("f"),nr.push("q"),nr.push("1 1 "+Cg(pm.internal.getWidth(er)-2)+" "+Cg(pm.internal.getHeight(er)-2)+" re"),nr.push("W"),nr.push("n"),nr.push(Cg(rr.x1.x)+" "+Cg(rr.x1.y)+" m"),nr.push(Cg(rr.x2.x)+" "+Cg(rr.x2.y)+" l"),nr.push(Cg(rr.x4.x)+" "+Cg(rr.x4.y)+" m"),nr.push(Cg(rr.x3.x)+" "+Cg(rr.x3.y)+" l"),nr.push("s"),nr.push("Q"),tr.stream=nr.join("\n"),tr},OffPushDown:function OffPushDown(er){var tr=new Lg(er),rr=[];return rr.push("0.749023 g"),rr.push("0 0 "+Cg(pm.internal.getWidth(er))+" "+Cg(pm.internal.getHeight(er))+" re"),rr.push("f"),tr.stream=rr.join("\n"),tr}}},createDefaultAppearanceStream:function createDefaultAppearanceStream(er){var tr=bg.internal.getFont(er.fontName,er.fontStyle).id,rr=bg.__private__.encodeColorString(er.color);return"/"+tr+" "+er.fontSize+" Tf "+rr}};pm.internal={Bezier_C:.551915024494,calculateCross:function calculateCross(er){var tr=pm.internal.getWidth(er),rr=pm.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}}}},pm.internal.getWidth=function(er){var tr=0;return"object"==_typeof(er)&&(tr=Ng(er.Rect[2])),tr},pm.internal.getHeight=function(er){var tr=0;return"object"==_typeof(er)&&(tr=Ng(er.Rect[3])),tr};var Am=wg.addField=function(er){if(Xg.call(this),!(er instanceof tm))throw new Error("Invalid argument passed to jsPDF.addField.");return Gg.call(this,er),er.page=bg.internal.getCurrentPageInfo().pageNumber,this};wg.AcroFormChoiceField=rm,wg.AcroFormListBox=nm,wg.AcroFormComboBox=im,wg.AcroFormEditBox=om,wg.AcroFormButton=am,wg.AcroFormPushButton=sm,wg.AcroFormRadioButton=lm,wg.AcroFormCheckBox=um,wg.AcroFormTextField=dm,wg.AcroFormPasswordField=hm,wg.AcroFormAppearance=pm,wg.AcroForm={ChoiceField:rm,ListBox:nm,ComboBox:im,EditBox:om,Button:am,PushButton:sm,RadioButton:lm,CheckBox:um,TextField:dm,PasswordField:hm,Appearance:pm},g.AcroForm={ChoiceField:rm,ListBox:nm,ComboBox:im,EditBox:om,Button:am,PushButton:sm,RadioButton:lm,CheckBox:um,TextField:dm,PasswordField:hm,Appearance:pm},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 ir,or;nr=nr||tr;var ar,sr,lr,cr=tr;if(wr(er))for(lr in rr)for(ar=rr[lr],ir=0;ir<ar.length;ir+=1){for(sr=!0,or=0;or<ar[ir].length;or+=1)if(void 0!==ar[ir][or]&&ar[ir][or]!==er[or]){sr=!1;break}if(!0===sr){cr=lr;break}}else for(lr in rr)for(ar=rr[lr],ir=0;ir<ar.length;ir+=1){for(sr=!0,or=0;or<ar[ir].length;or+=1)if(void 0!==ar[ir][or]&&ar[ir][or]!==er.charCodeAt(or)){sr=!1;break}if(!0===sr){cr=lr;break}}return cr===tr&&nr!==tr&&(cr=nr),cr},ir=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 ir=[];if(ir.push({key:"Type",value:"/XObject"}),ir.push({key:"Subtype",value:"/Image"}),ir.push({key:"Width",value:er.width}),ir.push({key:"Height",value:er.height}),er.colorSpace===gr.INDEXED?ir.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]"}):(ir.push({key:"ColorSpace",value:"/"+er.colorSpace}),er.colorSpace===gr.DEVICE_CMYK&&ir.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ir.push({key:"BitsPerComponent",value:er.bitsPerComponent}),"decodeParameters"in er&&void 0!==er.decodeParameters&&ir.push({key:"DecodeParms",value:"<<"+er.decodeParameters+">>"}),"transparency"in er&&Array.isArray(er.transparency)){for(var or="",ar=0,sr=er.transparency.length;ar<sr;ar++)or+=er.transparency[ar]+" "+er.transparency[ar]+" ";ir.push({key:"Mask",value:"["+or+"]"})}void 0!==er.sMask&&ir.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:ir,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"))},or=function a(){var er=this.internal.collections.addImage_images;for(var tr in er)ir.call(this,er[tr])},ar=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",or),this.internal.events.subscribe("putXobjectDict",ar))},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 _g(unescape(nr).split("base64,").pop());var ir=er.loadFile(nr,!0);if(void 0!==ir)return ir}if("CANVAS"===tr.nodeName){var or;switch(rr){case"PNG":or="image/png";break;case"WEBP":or="image/webp";break;case"JPEG":case"JPG":default:or="image/jpeg"}return _g(tr.toDataURL(or,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,ir,or){var ar=Ar.call(this,rr,nr,ir),sr=this.internal.getCoordinateString,cr=this.internal.getVerticalCoordinateString,ur=lr.call(this);if(rr=ar[0],nr=ar[1],ur[ir.index]=ir,or){or*=Math.PI/180;var dr=Math.cos(or),hr=Math.sin(or),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"),or?(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"+ir.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)},Sr=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 _g(vg(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,ir,or,ar,lr,cr,ur;if("number"==typeof arguments[1]?(rr=tr,nr=arguments[1],ir=arguments[2],or=arguments[3],ar=arguments[4],lr=arguments[5],cr=arguments[6],ur=arguments[7]):(rr=arguments[1],nr=arguments[2],ir=arguments[3],or=arguments[4],ar=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,ir=hr.y||ir||0,or=hr.w||hr.width||or,ar=hr.h||hr.height||ar,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(ir))throw new Error("Invalid coordinates passed to jsPDF.addImage");sr.call(this);var Ar=kr.call(this,er,rr,lr,cr);return fr.call(this,nr,ir,or,ar,Ar,ur),this};var kr=function P(rr,ir,or,ar){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,ir)),ir=nr(rr,ir),!ur(ir))throw new Error("addImage does not support files of type '"+ir+"', please ensure that a plugin for '"+ir+"' support is added.");if((null==(Ar=or)||0===Ar.length)&&(or=function(er){return"string"==typeof er||wr(er)?_r(er):null}(rr)),(sr=pr.call(this,or))||(br()&&(rr instanceof Uint8Array||(lr=rr,rr=Sr(rr))),sr=this["process"+ir.toUpperCase()](rr,cr.call(this),or,function(tr){return tr&&"string"==typeof tr&&(tr=tr.toUpperCase()),tr in er.image_compression?tr:mr.NONE}(ar),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,ir="";if("string"==typeof er){nr=null!==(rr=yr(er))?rr.data:er;try{ir=_g(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 ir};er.getImageProperties=function(rr){var ir,or,ar="";if(dr(rr)&&(rr=hr(rr)),"string"==typeof rr&&nr(rr)===tr&&(""===(ar=Cr(rr,!1))&&(ar=er.loadFile(rr)||""),rr=ar),or=nr(rr),!ur(or))throw new Error("addImage does not support files of type '"+or+"', please ensure that a plugin for '"+or+"' support is added.");if(!br()||rr instanceof Uint8Array||(rr=Sr(rr)),!(ir=this["process"+or.toUpperCase()](rr)))throw new Error("An unknown error occurred whilst processing the image");return ir.fileType=or,ir}}(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,ir,or=this.internal.getCoordinateString,ar=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";ir="<</Type /Annot /Subtype /Text "+(nr="/Rect ["+or(rr.bounds.x)+" "+ar(rr.bounds.y+rr.bounds.h)+" "+or(rr.bounds.x+rr.bounds.w)+" "+ar(rr.bounds.y)+"] ")+"/Contents ("+rr.contents+")",ir+=" /Popup "+pr.objId+" 0 R",ir+=" /P "+sr.objId+" 0 R",ir+=" /T ("+Ar+") >>",hr.content=ir;var fr=hr.objId+" 0 R";ir="<</Type /Annot /Subtype /Popup "+(nr="/Rect ["+or(rr.bounds.x+30)+" "+ar(rr.bounds.y+rr.bounds.h)+" "+or(rr.bounds.x+rr.bounds.w+30)+" "+ar(rr.bounds.y)+"] ")+" /Parent "+fr,rr.open&&(ir+=" /Open true"),ir+=" >>",pr.content=ir,this.internal.write(hr.objId,"0 R",pr.objId,"0 R");break;case"freetext":nr="/Rect ["+or(rr.bounds.x)+" "+ar(rr.bounds.y)+" "+or(rr.bounds.x+rr.bounds.w)+" "+ar(rr.bounds.y+rr.bounds.h)+"] ";var gr=rr.color||"#000000";ir="<</Type /Annot /Subtype /FreeText "+nr+"/Contents ("+rr.contents+")",ir+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+gr+")",ir+=" /Border [0 0 0]",ir+=" >>",this.internal.write(ir);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 ["+or(rr.x)+" "+ar(rr.y)+" "+or(rr.x+rr.w)+" "+ar(rr.y+rr.h)+"] ",ir="",rr.options.url)ir="<</Type /Annot /Subtype /Link "+nr+"/Border [0 0 0] /A <</S /URI /URI ("+rr.options.url+") >>";else if(rr.options.pageNumber)switch(ir="<</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":ir+=" /Fit]";break;case"FitH":ir+=" /FitH "+rr.options.top+"]";break;case"FitV":rr.options.left=rr.options.left||0,ir+=" /FitV "+rr.options.left+"]";break;case"XYZ":default:var _r=ar(rr.options.top);rr.options.left=rr.options.left||0,void 0===rr.options.zoom&&(rr.options.zoom=0),ir+=" /XYZ "+rr.options.left+" "+_r+" "+rr.options.zoom+"]"}""!=ir&&(ir+=" >>",this.internal.write(ir))}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,ir){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:er,y:tr,w:rr,h:nr,options:ir,type:"link"})},er.textWithLink=function(er,tr,rr,nr){var ir=this.getTextWidth(er),or=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(er,tr,rr,nr),rr+=.2*or,this.link(tr,rr-or,ir,or,nr),ir},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},ir=[1570,1571,1573,1575];er.__arabicParser__={};var or=er.__arabicParser__.isInArabicSubstitutionA=function(er){return void 0!==tr[er.charCodeAt(0)]},ar=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 ar(er)&&or(er)&&tr[er.charCodeAt(0)].length<=2},lr=er.__arabicParser__.isArabicAlfLetter=function(er){return ar(er)&&ir.indexOf(er.charCodeAt(0))>=0};er.__arabicParser__.arabicLetterHasIsolatedForm=function(er){return ar(er)&&or(er)&&tr[er.charCodeAt(0)].length>=1};var cr=er.__arabicParser__.arabicLetterHasFinalForm=function(er){return ar(er)&&or(er)&&tr[er.charCodeAt(0)].length>=2};er.__arabicParser__.arabicLetterHasInitialForm=function(er){return ar(er)&&or(er)&&tr[er.charCodeAt(0)].length>=3};var ur=er.__arabicParser__.arabicLetterHasMedialForm=function(er){return ar(er)&&or(er)&&4==tr[er.charCodeAt(0)].length},dr=er.__arabicParser__.resolveLigatures=function(er){var tr=0,nr=rr,ir="",or=0;for(tr=0;tr<er.length;tr+=1)void 0!==nr[er.charCodeAt(tr)]?(or++,"number"==typeof(nr=nr[er.charCodeAt(tr)])&&(ir+=String.fromCharCode(nr),nr=rr,or=0),tr===er.length-1&&(nr=rr,ir+=er.charAt(tr-(or-1)),tr-=or-1,or=0)):(nr=rr,ir+=er.charAt(tr-or),tr-=or,or=0);return ir};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 ar(er)?!1===or(er)?-1:!cr(er)||!ar(tr)&&!ar(rr)||!ar(rr)&&sr(tr)||sr(er)&&!ar(tr)||sr(er)&&lr(tr)||sr(er)&&sr(tr)?0:ur(er)&&ar(tr)&&!sr(tr)&&ar(rr)&&cr(rr)?3:sr(er)||!ar(rr)?1:2:-1},pr=function d(er){var rr=0,nr=0,ir=0,or="",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)or=cr[rr][nr],sr=cr[rr][nr-1],lr=cr[rr][nr+1],ar(or)?(ir=hr(or,sr,lr),ur[rr]+=-1!==ir?String.fromCharCode(tr[or.charCodeAt(0)][ir]):or):ur[rr]+=or;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(),ir.call(this))},ir=function i(){this.internal.__cell__.lastCell=new or,this.internal.__cell__.pages=1},or=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 ir=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function get(){return ir},set:function set(er){ir=er}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function get(){return a},set:function set(er){a=er}});var or=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function get(){return or},set:function set(er){or=er}}),this};or.prototype.clone=function(){return new or(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},or.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(),ir=tr.font||this.getFont(),or=tr.scaleFactor||this.internal.scaleFactor,ar=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++)ar<(lr=this.getStringUnitWidth(er[ur],{font:ir})*rr)&&(ar=lr);return 0!==ar&&(sr=er.length),{w:ar/=or,h:Math.max((sr*rr*this.getLineHeightFactor()-rr*(this.getLineHeightFactor()-1))/or,0)}},er.cellAddPage=function(){nr.call(this),this.addPage();var er=this.internal.__cell__.margins||tr;return this.internal.__cell__.lastCell=new or(er.left,er.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ar=er.cell=function(){var er;er=arguments[0]instanceof or?arguments[0]:new or(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),nr.call(this);var ir=this.internal.__cell__.lastCell,ar=this.internal.__cell__.padding,sr=this.internal.__cell__.margins||tr,lr=this.internal.__cell__.tableHeaderRow,cr=this.internal.__cell__.printHeaders;return void 0!==ir.lineNumber&&(ir.lineNumber===er.lineNumber?(er.x=(ir.x||0)+(ir.width||0),er.y=ir.y||0):ir.y+ir.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=ir.y+ir.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-ar,er.y+ar,{align:"right",baseline:"top"}):"center"===er.align?this.text(er.text,er.x+er.width/2,er.y+ar,{align:"center",baseline:"top",maxWidth:er.width-ar-ar}):this.text(er.text,er.x+ar,er.y+ar,{align:"left",baseline:"top",maxWidth:er.width-ar-ar})),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,Sr=!1!==ur.printHeaders,xr=ur.css&&void 0!==ur.css["font-size"]?16*ur.css["font-size"]:ur.fontSize||12,kr=ur.margins||Object.assign({width:this.getPageWidth()},tr),Cr="number"==typeof ur.padding?ur.padding:3,Br=ur.headerBackgroundColor||"#c8c8c8";if(ir.call(this),this.internal.__cell__.printHeaders=Sr,this.internal.__cell__.margins=kr,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(Sr){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 or(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 Tr=sr.call(this,lr[dr],vr);for(pr=0;pr<fr.length;pr+=1)ar.call(this,new or(er,rr,vr[fr[pr]],Tr,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,ir=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],ir=er[1];return this.splitTextToSize(ir,tr[nr]-rr-rr)}),this).map((function(er){return this.getLineHeightFactor()*er.length*nr/ir+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 ir;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 or(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)ir=this.internal.__cell__.tableHeaderRow[cr].clone(),tr&&(ir.y=this.internal.__cell__.margins.top||0,lr.push(ir)),ir.lineNumber=er,this.setFillColor(this.internal.__cell__.headerBackgroundColor),ar.call(this,ir);lr.length>0&&this.setTableHeaderRow(lr),this.setFont(void 0,"normal"),rr=!1}}(g.API),function(er){var tr,rr,nr,ir,or,ar,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 ar,this.miterLimit=er.miterLimit||10,this.lastPoint=er.lastPoint||new ar,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,ir=this.internal.getHorizontalCoordinate,or=this.internal.getVerticalCoordinate,ar=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 ir=0;Object.defineProperty(this,"posX",{get:function get(){return ir},set:function set(er){isNaN(er)||(ir=er)}});var or=0;Object.defineProperty(this,"posY",{get:function get(){return or},set:function set(er){isNaN(er)||(or=er)}});var ar=!1;Object.defineProperty(this,"autoPaging",{get:function get(){return ar},set:function set(er){ar=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]),ir=tr[4],or=(tr[5],tr[6]),ar=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ir)[2];ir="px"===ar?Math.floor(parseFloat(ir)*this.pdf.internal.scaleFactor):"em"===ar?Math.floor(parseFloat(ir)*this.pdf.getFontSize()):Math.floor(parseFloat(ir)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ir);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=or.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 mg.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var rr=this.ctx.transform.applyToPoint(new ar(er,tr));this.path.push({type:"mt",x:rr.x,y:rr.y}),this.ctx.lastPoint=new ar(er,tr)},dr.prototype.closePath=function(){var er=new ar(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 ar(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 ar(er.x,er.y)},dr.prototype.lineTo=function(er,tr){if(isNaN(er)||isNaN(tr))throw mg.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var rr=this.ctx.transform.applyToPoint(new ar(er,tr));this.path.push({type:"lt",x:rr.x,y:rr.y}),this.ctx.lastPoint=new ar(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 mg.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ir=this.ctx.transform.applyToPoint(new ar(rr,nr)),or=this.ctx.transform.applyToPoint(new ar(er,tr));this.path.push({type:"qct",x1:or.x,y1:or.y,x:ir.x,y:ir.y}),this.ctx.lastPoint=new ar(ir.x,ir.y)},dr.prototype.bezierCurveTo=function(er,tr,rr,nr,ir,or){if(isNaN(ir)||isNaN(or)||isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw mg.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var sr=this.ctx.transform.applyToPoint(new ar(ir,or)),lr=this.ctx.transform.applyToPoint(new ar(er,tr)),cr=this.ctx.transform.applyToPoint(new ar(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 ar(sr.x,sr.y)},dr.prototype.arc=function(er,tr,rr,nr,ir,or){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ir))throw mg.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(or=Boolean(or),!this.ctx.transform.isIdentity){var sr=this.ctx.transform.applyToPoint(new ar(er,tr));er=sr.x,tr=sr.y;var lr=this.ctx.transform.applyToPoint(new ar(0,rr)),cr=this.ctx.transform.applyToPoint(new ar(0,0));rr=Math.sqrt(Math.pow(lr.x-cr.x,2)+Math.pow(lr.y-cr.y,2))}Math.abs(ir-nr)>=2*Math.PI&&(nr=0,ir=2*Math.PI),this.path.push({type:"arc",x:er,y:tr,radius:rr,startAngle:nr,endAngle:ir,counterclockwise:or})},dr.prototype.arcTo=function(er,tr,rr,nr,ir){throw new Error("arcTo not implemented.")},dr.prototype.rect=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw mg.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 mg.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!pr.call(this)){var ir={};"butt"!==this.lineCap&&(ir.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(ir.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(er,tr,rr,nr),this.fill(),ir.hasOwnProperty("lineCap")&&(this.lineCap=ir.lineCap),ir.hasOwnProperty("lineJoin")&&(this.lineJoin=ir.lineJoin)}},dr.prototype.strokeRect=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw mg.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 mg.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,ir;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,ir=0;else{var or=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(er);if(null!==or)tr=parseInt(or[1]),rr=parseInt(or[2]),nr=parseInt(or[3]),ir=1;else if(null!==(or=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(er)))tr=parseInt(or[1]),rr=parseInt(or[2]),nr=parseInt(or[3]),ir=parseFloat(or[4]);else{if(ir=1,"string"==typeof er&&"#"!==er.charAt(0)){var ar=new c(er);er=ar.ok?ar.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:ir,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 mg.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 ir=Pr(this.ctx.transform.rotation),or=this.ctx.transform.scaleX;Cr.call(this,{text:er,x:tr,y:rr,scale:or,angle:ir,align:this.textAlign,maxWidth:nr})}},dr.prototype.strokeText=function(er,tr,rr,nr){if(isNaN(tr)||isNaN(rr)||"string"!=typeof er)throw mg.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 ir=Pr(this.ctx.transform.rotation),or=this.ctx.transform.scaleX;Cr.call(this,{text:er,x:tr,y:rr,scale:or,renderingMode:"stroke",angle:ir,align:this.textAlign,maxWidth:nr})}},dr.prototype.measureText=function(er){if("string"!=typeof er)throw mg.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(),ir=tr.getStringUnitWidth(er)*nr/tr.internal.scaleFactor,or=function o(er){var tr=(er=er||{}).width||0;return Object.defineProperty(this,"width",{get:function get(){return tr}}),this};return new or({width:ir*=Math.round(96*rr/72*1e4)/1e4})},dr.prototype.scale=function(er,tr){if(isNaN(er)||isNaN(tr))throw mg.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 mg.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 mg.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,ir,or){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ir)||isNaN(or))throw mg.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ar=new lr(er,tr,rr,nr,ir,or);this.ctx.transform=this.ctx.transform.multiply(ar)},dr.prototype.setTransform=function(er,tr,rr,nr,ir,or){er=isNaN(er)?1:er,tr=isNaN(tr)?0:tr,rr=isNaN(rr)?0:rr,nr=isNaN(nr)?1:nr,ir=isNaN(ir)?0:ir,or=isNaN(or)?0:or,this.ctx.transform=new lr(er,tr,rr,nr,ir,or)},dr.prototype.drawImage=function(er,tr,rr,nr,ir,or,ar,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/ir,hr=dr.width/nr*cr/nr,pr=dr.height/ir*ur/ir),void 0===or&&(or=tr,ar=rr,tr=0,rr=0),void 0!==nr&&void 0===cr&&(cr=nr,ur=ir),void 0===nr&&void 0===cr&&(cr=dr.width,ur=dr.height);for(var vr,br=this.ctx.transform.decompose(),wr=Pr(br.rotate.shx),Sr=new lr,xr=(Sr=(Sr=(Sr=Sr.multiply(br.translate)).multiply(br.skew)).multiply(br.scale)).applyToRectangle(new sr(or-tr*Ar,ar-rr*gr,nr*hr,ir*pr)),kr=fr.call(this,xr),Cr=[],Br=0;Br<kr.length;Br+=1)-1===Cr.indexOf(kr[Br])&&Cr.push(kr[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 Tr=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=Tr}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 ir=Fr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,er.x1,er.y1,er.x,er.y);nr.push(Math.floor(ir.y/rr)+1),nr.push(Math.floor((ir.y+ir.h)/rr)+1);break;case"bct":var or=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(or.y/rr)+1),nr.push(Math.floor((or.y+or.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 ar=0;ar<nr.length;ar+=1)for(;this.pdf.internal.getNumberOfPages()<nr[ar];)gr.call(this);return nr},gr=function b(){var er=this.fillStyle,tr=this.strokeStyle,rr=this.font,nr=this.lineCap,ir=this.lineWidth,or=this.lineJoin;this.pdf.addPage(),this.fillStyle=er,this.strokeStyle=tr,this.font=rr,this.lineCap=nr,this.lineWidth=ir,this.lineJoin=or},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,ir=this.fillStyle,or=this.strokeStyle,ar=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],Sr=N;Sr<wr+1;Sr++){if(this.pdf.setPage(Sr),this.fillStyle=ir,this.strokeStyle=or,this.lineCap=ar,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*(Sr-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*(Sr-1)+this.posY),!1!==tr&&0!==Sr||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,ir=[],or=this.path,ar=0;ar<or.length;ar++){var sr=or[ar];switch(sr.type){case"begin":ir.push({begin:!0});break;case"close":ir.push({close:!0});break;case"mt":ir.push({start:sr,deltas:[],abs:[]});break;case"lt":var lr=ir.length;if(!isNaN(or[ar-1].x)&&(rr=[sr.x-or[ar-1].x,sr.y-or[ar-1].y],lr>0))for(;lr>=0;lr--)if(!0!==ir[lr-1].close&&!0!==ir[lr-1].begin){ir[lr-1].deltas.push(rr),ir[lr-1].abs.push(sr);break}break;case"bct":rr=[sr.x1-or[ar-1].x,sr.y1-or[ar-1].y,sr.x2-or[ar-1].x,sr.y2-or[ar-1].y,sr.x-or[ar-1].x,sr.y-or[ar-1].y],ir[ir.length-1].deltas.push(rr);break;case"qct":var cr=or[ar-1].x+2/3*(sr.x1-or[ar-1].x),ur=or[ar-1].y+2/3*(sr.y1-or[ar-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-or[ar-1].x,ur-or[ar-1].y,dr-or[ar-1].x,hr-or[ar-1].y,fr-or[ar-1].x,gr-or[ar-1].y],ir[ir.length-1].deltas.push(rr);break;case"arc":ir.push({deltas:[],abs:[],arc:!0}),Array.isArray(ir[ir.length-1].abs)&&ir[ir.length-1].abs.push(sr)}}nr=tr?null:"stroke"===er?"stroke":"fill";for(var mr=0;mr<ir.length;mr++){if(ir[mr].arc){for(var _r=ir[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)}Sr.call(this,nr),this.pdf.internal.out("h")}if(!ir[mr].arc&&!0!==ir[mr].close&&!0!==ir[mr].begin){var br=ir[mr].start.x,L=ir[mr].start.y;Er.call(this,ir[mr].deltas,br,L)}}nr&&Sr.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,ir,or,ar,sr){for(var lr=Lr.call(this,rr,nr,ir,or),cr=0;cr<lr.length;cr++){var ur=lr[cr];0===cr&&kr.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):Sr.call(this,ar)},Sr=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()},kr=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 ar(er.x,er.y)),nr=this.ctx.transform.decompose(),ir=new lr;ir=(ir=(ir=ir.multiply(nr.translate)).multiply(nr.skew)).multiply(nr.scale);for(var or,cr,ur,dr=this.pdf.getTextDimensions(er.text),hr=this.ctx.transform.applyToRectangle(new sr(er.x,er.y,dr.w,dr.h)),pr=ir.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],Sr=br;Sr<wr+1;Sr++){if(this.pdf.setPage(Sr),0!==this.ctx.clip_path.length){var xr=this.path;or=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=mr(or,this.posX,-1*this.pdf.internal.pageSize.height*(Sr-1)+this.posY),yr.call(this,"fill",!0),this.path=xr}var kr=JSON.parse(JSON.stringify(hr));kr=mr([kr],this.posX,-1*this.pdf.internal.pageSize.height*(Sr-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,kr.x,kr.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,ir,or){ir=ir||0,or=or||0,this.pdf.internal.out(rr(er+ir)+" "+nr(tr+or)+" l")},Er=function I(er,tr,rr){return this.pdf.lines(er,tr,rr,null,null)},Nr=function C(er,rr,nr,ar,sr,lr,cr,ur){this.pdf.internal.out([tr(ir(nr+er)),tr(or(ar+rr)),tr(ir(sr+er)),tr(or(lr+rr)),tr(ir(cr+er)),tr(or(ur+rr)),"c"].join(" "))},Lr=function j(er,tr,rr,nr){for(var ir=2*Math.PI,or=Math.PI/2;tr>rr;)tr-=ir;var ar=Math.abs(rr-tr);ar<ir&&nr&&(ar=ir-ar);for(var sr=[],lr=nr?-1:1,cr=tr;ar>1e-5;){var ur=cr+lr*Math.min(ar,or);sr.push(Tr.call(this,er,cr,ur)),ar-=Math.abs(ur-cr),cr=ur}return sr},Tr=function B(er,tr,rr){var nr=(rr-tr)/2,ir=er*Math.cos(nr),or=er*Math.sin(nr),ar=ir,sr=-or,lr=ar*ar+sr*sr,cr=lr+ar*ir+sr*or,ur=4/3*(Math.sqrt(2*lr*cr)-cr)/(ar*or-sr*ir),dr=ar-ur*sr,hr=sr+ur*ar,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)}},Pr=function O(er){return 180*er/Math.PI},Fr=function M(er,tr,rr,nr,ir,or){var ar=er+.5*(rr-er),lr=tr+.5*(nr-tr),cr=ir+.5*(rr-ir),ur=or+.5*(nr-or),dr=Math.min(er,ir,ar,cr),hr=Math.max(er,ir,ar,cr),pr=Math.min(tr,or,lr,ur),Ar=Math.max(tr,or,lr,ur);return new sr(dr,pr,hr-dr,Ar-pr)},Ur=function E(er,tr,rr,nr,ir,or,ar,lr){var cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr=rr-er,xr=nr-tr,kr=ir-rr,Cr=or-nr,Br=ar-ir,Er=lr-or;for(ur=0;ur<41;ur++)mr=(fr=(dr=er+(cr=ur/40)*Sr)+cr*((pr=rr+cr*kr)-dr))+cr*(pr+cr*(ir+cr*Br-pr)-fr),_r=(gr=(hr=tr+cr*xr)+cr*((Ar=nr+cr*Cr)-hr))+cr*(Ar+cr*(or+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 fm=[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,ir,or=er.dyn_tree,ar=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!==or[2*rr]?(tr.heap[++tr.heap_len]=lr=rr,tr.depth[rr]=0):or[2*rr+1]=0;for(;tr.heap_len<2;)or[2*(ir=tr.heap[++tr.heap_len]=lr<2?++lr:0)]=1,tr.depth[ir]=0,tr.opt_len--,ar&&(tr.static_len-=ar[2*ir+1]);for(er.max_code=lr,rr=Math.floor(tr.heap_len/2);rr>=1;rr--)tr.pqdownheap(or,rr);ir=sr;do{rr=tr.heap[1],tr.heap[1]=tr.heap[tr.heap_len--],tr.pqdownheap(or,1),nr=tr.heap[1],tr.heap[--tr.heap_max]=rr,tr.heap[--tr.heap_max]=nr,or[2*ir]=or[2*rr]+or[2*nr],tr.depth[ir]=Math.max(tr.depth[rr],tr.depth[nr])+1,or[2*rr+1]=or[2*nr+1]=ir,tr.heap[1]=ir++,tr.pqdownheap(or,1)}while(tr.heap_len>=2);tr.heap[--tr.heap_max]=tr.heap[1],function(tr){var rr,nr,ir,or,ar,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(or=0;or<=15;or++)tr.bl_count[or]=0;for(lr[2*tr.heap[tr.heap_max]+1]=0,rr=tr.heap_max+1;rr<573;rr++)(or=lr[2*lr[2*(nr=tr.heap[rr])+1]+1]+1)>hr&&(or=hr,pr++),lr[2*nr+1]=or,nr>er.max_code||(tr.bl_count[or]++,ar=0,nr>=dr&&(ar=ur[nr-dr]),sr=lr[2*nr],tr.opt_len+=sr*(or+ar),cr&&(tr.static_len+=sr*(cr[2*nr+1]+ar)));if(0!==pr){do{for(or=hr-1;0===tr.bl_count[or];)or--;tr.bl_count[or]--,tr.bl_count[or+1]+=2,tr.bl_count[hr]--,pr-=2}while(pr>0);for(or=hr;0!==or;or--)for(nr=tr.bl_count[or];0!==nr;)(ir=tr.heap[--rr])>er.max_code||(lr[2*ir+1]!==or&&(tr.opt_len+=(or-lr[2*ir+1])*lr[2*ir],lr[2*ir+1]=or),nr--)}}(tr),function(er,tr,rr){var nr,ir,or,ar=[],sr=0;for(nr=1;nr<=15;nr++)ar[nr]=sr=sr+rr[nr-1]<<1;for(ir=0;ir<=tr;ir++)0!==(or=er[2*ir+1])&&(er[2*ir]=e(ar[or]++,or))}(or,er.max_code,tr.bl_count)}}function dt(er,tr,rr,nr,ir){this.static_tree=er,this.extra_bits=tr,this.extra_base=rr,this.elems=nr,this.max_length=ir}function pt(er,tr,rr,nr,ir){this.good_length=er,this.max_lazy=tr,this.nice_length=rr,this.max_chain=nr,this.func=ir}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?fm[er]:fm[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 gm,mm,vm,ym=[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)],wm=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function wt(er,tr,rr,nr){var ir=er[2*tr],or=er[2*rr];return ir<or||ir===or&&nr[tr]<=nr[rr]}function Nt(){var er,tr,rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr,Cr,Br,Er,Nr,Lr,Tr,Pr,Fr,Ur,Ir,Rr,Mr,Or,Qr,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++)Tr[2*er]=0;for(er=0;er<19;er++)Pr[2*er]=0;Lr[512]=1,jr.opt_len=jr.static_len=0,Ir=Mr=0}function G(er,tr){var rr,nr,ir=-1,or=er[1],ar=0,sr=7,lr=4;for(0===or&&(sr=138,lr=3),er[2*(tr+1)+1]=65535,rr=0;rr<=tr;rr++)nr=or,or=er[2*(rr+1)+1],++ar<sr&&nr===or||(ar<lr?Pr[2*nr]+=ar:0!==nr?(nr!==ir&&Pr[2*nr]++,Pr[32]++):ar<=10?Pr[34]++:Pr[36]++,ar=0,ir=nr,0===or?(sr=138,lr=3):nr===or?(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(Qr|=(rr=er)<<Dr&65535),Qr=rr>>>16-Dr,Dr+=nr-16):(Qr|=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,ir=-1,or=er[1],ar=0,sr=7,lr=4;for(0===or&&(sr=138,lr=3),rr=0;rr<=tr;rr++)if(nr=or,or=er[2*(rr+1)+1],!(++ar<sr&&nr===or)){if(ar<lr)do{K(nr,Pr)}while(0!=--ar);else 0!==nr?(nr!==ir&&(K(nr,Pr),ar--),K(16,Pr),X(ar-3,2)):ar<=10?(K(17,Pr),X(ar-3,3)):(K(18,Pr),X(ar-11,7));ar=0,ir=nr,0===or?(sr=138,lr=3):nr===or?(sr=6,lr=3):(sr=7,lr=4)}}function $(){16===Dr?(J(Qr),Qr=0,Dr=0):Dr>=8&&(Y(255&Qr),Qr>>>=8,Dr-=8)}function Q(er,tr){var rr,nr,ir;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)]++,Tr[2*ft.d_code(er)]++),0==(8191&Ir)&&Cr>2){for(rr=8*Ir,nr=yr-gr,ir=0;ir<30;ir++)rr+=Tr[2*ir]*(5+ft.extra_dbits[ir]);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,ir,or,ar=0;if(0!==Ir)do{rr=jr.pending_buf[Rr+2*ar]<<8&65280|255&jr.pending_buf[Rr+2*ar+1],nr=255&jr.pending_buf[Fr+ar],ar++,0===rr?K(nr,er):(K((ir=ft._length_code[nr])+256+1,er),0!==(or=ft.extra_lbits[ir])&&X(nr-=ft.base_length[ir],or),rr--,K(ir=ft.d_code(rr),tr),0!==(or=ft.extra_dbits[ir])&&X(rr-=ft.base_dist[ir],or))}while(ar<Ir);K(256,er),Or=er[513]}function et(){Dr>8?J(Qr):Dr>0&&Y(255&Qr),Qr=0,Dr=0}function nt(er,tr,rr){X(0+(rr?1:0),3),function(er,tr,rr){et(),Or=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,ir,or=0;Cr>0?(Hr.build_tree(jr),Gr.build_tree(jr),or=function(){var er;for(G(Lr,Hr.max_code),G(Tr,Gr.max_code),Vr.build_tree(jr),er=18;er>=3&&0===Pr[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,(ir=jr.static_len+3+7>>>3)<=nr&&(nr=ir)):nr=ir=tr+5,tr+4<=nr&&-1!==er?nt(er,tr,rr):ir===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(Pr[2*ft.bl_order[nr]+1],3);Z(Lr,er-1),Z(Tr,tr-1)}(Hr.max_code+1,Gr.max_code+1,or+1),tt(Lr,Tr)),V(),rr&&et()})(gr>=0?gr:-1,yr-gr,tr),gr=yr,er.flush_pending()}function at(){var tr,rr,nr,or;do{if(0==(or=lr-wr-yr)&&0===yr&&0===wr)or=ir;else if(-1===or)or--;else if(yr>=ir+ir-262){sr.set(sr.subarray(ir,ir+ir),0),br-=ir,yr-=ir,gr-=ir,nr=tr=hr;do{rr=65535&ur[--nr],ur[nr]=rr>=ir?rr-ir:0}while(0!=--tr);nr=tr=ir;do{rr=65535&cr[--nr],cr[nr]=rr>=ir?rr-ir:0}while(0!=--tr);or+=ir}if(0===er.avail_in)return;tr=er.read_buf(sr,yr+wr,or),(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,or=yr,lr=Sr,ur=yr>ir-262?yr-(ir-262):0,dr=Nr,hr=ar,pr=yr+258,Ar=sr[or+lr-1],fr=sr[or+lr];Sr>=Er&&(nr>>=2),dr>wr&&(dr=wr);do{if(sr[(tr=er)+lr]===fr&&sr[tr+lr-1]===Ar&&sr[tr]===sr[or]&&sr[++tr]===sr[or+1]){or+=2,tr++;do{}while(sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&or<pr);if(rr=258-(pr-or),or=pr-258,rr>lr){if(br=er,lr=rr,rr>=dr)break;Ar=sr[or+lr-1],fr=sr[or+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=Tr,Gr.stat_desc=dt.static_d_desc,Vr.dyn_tree=Pr,Vr.stat_desc=dt.static_bl_desc,Qr=0,Dr=0,Or=8,V(),function(){var er;for(lr=2*ir,ur[hr-1]=0,er=0;er<hr-1;er++)ur[er]=0;kr=ym[Cr].max_lazy,Er=ym[Cr].good_length,Nr=ym[Cr].nice_length,xr=ym[Cr].max_chain,yr=0,gr=0,wr=0,mr=Sr=2,vr=0,dr=0}(),0}jr.depth=[],jr.bl_count=[],jr.heap=[],Lr=[],Tr=[],Pr=[],jr.pqdownheap=function(er,tr){for(var rr=jr.heap,nr=rr[tr],ir=tr<<1;ir<=jr.heap_len&&(ir<jr.heap_len&&wt(er,rr[ir+1],rr[ir],jr.depth)&&ir++,!wt(er,nr,rr[ir],jr.depth));)rr[tr]=rr[ir],tr=ir,ir<<=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,ar=(ir=1<<(or=nr))-1,Ar=(hr=1<<(pr=dr+7))-1,fr=Math.floor((pr+3-1)/3),sr=new Uint8Array(2*ir),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:(ym[Cr].func!==ym[tr].func&&0!==er.total_in&&(nr=er.deflate(1)),Cr!==tr&&(kr=ym[Cr=tr].max_lazy,Er=ym[Cr].good_length,Nr=ym[Cr].nice_length,xr=ym[Cr].max_chain),Br=rr,nr)},jr.deflateSetDictionary=function(er,rr,nr){var or,lr=nr,hr=0;if(!rr||42!==tr)return-2;if(lr<3)return 0;for(lr>ir-262&&(hr=nr-(lr=ir-262)),sr.set(rr.subarray(hr,hr+lr),0),yr=lr,gr=lr,dr=((dr=255&sr[0])<<fr^255&sr[1])&Ar,or=0;or<=lr-3;or++)dr=(dr<<fr^255&sr[or+2])&Ar,cr[or&ar]=ur[dr],ur[dr]=or;return 0},jr.deflate=function(lr,pr){var xr,Er,Nr,Lr,Tr,Pr;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=wm[4],-2;if(0===lr.avail_out)return lr.msg=wm[7],-5;if(er=lr,Lr=nr,nr=pr,42===tr&&(Er=8+(or-8<<4)<<8,(Nr=(Cr-1&255)>>1)>3&&(Nr=3),Er|=Nr<<6,0!==yr&&(Er|=32),tr=113,Y((Pr=Er+=31-Er%31)>>8&255),Y(255&Pr)),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=wm[7],-5;if(666===tr&&0!==er.avail_in)return lr.msg=wm[7],-5;if(0!==er.avail_in||0!==wr||0!==pr&&666!==tr){switch(Tr=-1,ym[Cr].func){case 0:Tr=function(tr){var nr,or=65535;for(or>rr-5&&(or=rr-5);;){if(wr<=1){if(at(),0===wr&&0===tr)return 0;if(0===wr)break}if(yr+=wr,wr=0,nr=gr+or,(0===yr||yr>=nr)&&(wr=yr-nr,yr=nr,it(!1),0===er.avail_out))return 0;if(yr-gr>=ir-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:Tr=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&ar]=ur[dr],ur[dr]=yr),0!==nr&&(yr-nr&65535)<=ir-262&&2!==Br&&(mr=ot(nr)),mr>=3)if(rr=Q(yr-br,mr-3),wr-=mr,mr<=kr&&wr>=3){mr--;do{yr++,dr=(dr<<fr^255&sr[yr+2])&Ar,nr=65535&ur[dr],cr[yr&ar]=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:Tr=function(tr){for(var rr,nr,or=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,or=65535&ur[dr],cr[yr&ar]=ur[dr],ur[dr]=yr),Sr=mr,_r=br,mr=2,0!==or&&Sr<kr&&(yr-or&65535)<=ir-262&&(2!==Br&&(mr=ot(or)),mr<=5&&(1===Br||3===mr&&yr-br>4096)&&(mr=2)),Sr>=3&&mr<=Sr){nr=yr+wr-3,rr=Q(yr-1-_r,Sr-3),wr-=Sr-1,Sr-=2;do{++yr<=nr&&(dr=(dr<<fr^255&sr[yr+2])&Ar,or=65535&ur[dr],cr[yr&ar]=ur[dr],ur[dr]=yr)}while(0!=--Sr);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!==Tr&&3!==Tr||(tr=666),0===Tr||2===Tr)return 0===er.avail_out&&(nr=-1),0;if(1===Tr){if(1===pr)X(2,3),K(256,dt.static_ltree),$(),1+Or+10-Dr<9&&(X(2,3),K(256,dt.static_ltree),$()),Or=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 ir,or=[],ar=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?or.push(new Uint8Array(rr)):or.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!==ar&&(nr(tr.next_in_index),ar=tr.next_in_index)}while(tr.avail_in>0||0===tr.avail_out);return ir=new Uint8Array(lr),or.forEach((function(er){ir.set(er,sr),sr+=er.length})),ir}},this.flush=function(){var er,nr,ir=[],or=0,ar=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&&ir.push(new Uint8Array(rr.subarray(0,tr.next_out_index))),ar+=tr.next_out_index}while(tr.avail_in>0||0===tr.avail_out);return tr.deflateEnd(),nr=new Uint8Array(ar),ir.forEach((function(er){nr.set(er,or),or+=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,ir,or,ar,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!==(ir=(er.charCodeAt(rr)<<24)+(er.charCodeAt(rr+1)<<16)+(er.charCodeAt(rr+2)<<8)+er.charCodeAt(rr+3))?(or=(ir=((ir=((ir=((ir=(ir-(cr=ir%85))/85)-(lr=ir%85))/85)-(sr=ir%85))/85)-(ar=ir%85))/85)%85,tr.push(or+33,ar+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,ir,or=String,ar="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,ir=(er+=tr="uuuuu"[cr](er[ar]%5||5))[ar];ir>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[ar]),or.fromCharCode.apply(or,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},ir=function i(tr){for(var rr,nr,i,ir,or,ar=[],sr=tr.length;sr--;)ar[sr]=tr.charCodeAt(sr);return rr=er.adler32cs.from(tr),i=tr=(nr=new xt(6)).append(new Uint8Array(ar)),ir=nr.flush(),(or=new Uint8Array(i.byteLength+ir.byteLength)).set(new Uint8Array(i),0),or.set(new Uint8Array(ir),i.byteLength),tr=or,(ar=new Uint8Array(tr.byteLength+6)).set(new Uint8Array([120,156])),ar.set(tr,2),ar.set(new Uint8Array([255&rr,rr>>8&255,rr>>16&255,rr>>24&255]),tr.byteLength+2),ar.reduce((function(er,tr){return er+String.fromCharCode(tr)}),"")};er.processDataByFilters=function(er,or){var ar=0,sr=er||"",lr=[];for("string"==typeof(or=or||[])&&(or=[or]),ar=0;ar<or.length;ar+=1)switch(or[ar]){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=ir(sr),lr.push("/FlateDecode");break;default:throw new Error('The filter: "'+or[ar]+'" 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,ir=0,or=function a(er){var tr=er.length,rr=[],nr=String.fromCharCode;for(ir=0;ir<tr;ir+=1)rr.push(nr(255&er.charCodeAt(ir)));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(or(this.responseText)):rr(void 0)}),nr.send(null),tr&&200===nr.status)return or(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(gg.html2canvas?Promise.resolve(gg.html2canvas):Promise.resolve().then((function(){return rU}))).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(gg.DOMPurify?Promise.resolve(gg.DOMPurify):Promise.resolve().then((function(){return gU}))).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 ir=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:nr.convert(Object.assign({},this),Promise.prototype),or=rr.call(ir,er,tr);return nr.convert(or,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 ir,or=(""+rr).toLowerCase(),ar={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":ir=1;break;case"mm":ir=72/25.4;break;case"cm":ir=72/2.54;break;case"in":ir=72;break;case"px":ir=.75;break;case"pc":case"em":ir=12;break;case"ex":ir=6;break;default:throw"Invalid unit: "+tr}var sr,lr=0,cr=0;if(ar.hasOwnProperty(or))lr=ar[or][1]/ir,cr=ar[or][0]/ir;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:ir,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 vm=er,this.internal.events.subscribe("postPutResources",(function(){gm=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(gm+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),mm=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+vm+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==gm&&void 0!==mm&&this.internal.out("/Names <</JavaScript "+gm+" 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/),ir=0;ir<nr.length;ir++){var or=nr[ir],ar=rr.exec(or);if(null!=ar){var sr=ar[1];er.internal.newObjectDeferredBegin(sr,!1)}er.internal.write(or)}if(this.outline.createNamedDestinations){var lr=this.internal.pages.length,cr=[];for(ir=0;ir<lr;ir++){var ur=er.internal.newObject();cr.push(ur);var dr=er.internal.getPageInfo(ir+1);er.internal.write("<< /D["+dr.objId+" 0 R /XYZ null null null]>> endobj")}var hr=er.internal.newObject();for(er.internal.write("<< /Names [ "),ir=0;ir<cr.length;ir++)er.internal.write("(page_"+(ir+1)+")"+cr[ir]+" 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 ir=tr.children[nr];this.objStart(ir),this.line("/Title "+this.makeString(ir.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])),ir.children.length>0&&(this.line("/First "+this.makeRef(ir.children[0])),this.line("/Last "+this.makeRef(ir.children[ir.children.length-1])));var or=this.count=this.count_r({count:0},ir);if(or>0&&this.line("/Count "+or),ir.options&&ir.options.pageNumber){var ar=er.internal.getPageInfo(ir.options.pageNumber);this.line("/Dest ["+ar.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,ir,or,ar){var sr,lr=this.decode.DCT_DECODE,cr=null;if("string"==typeof er||this.__addimage__.isArrayBuffer(er)||this.__addimage__.isArrayBufferView(er)){switch(er=or||er,er=this.__addimage__.isArrayBuffer(er)?new Uint8Array(er):er,(sr=function(er){for(var rr,nr=256*er.charCodeAt(4)+er.charCodeAt(5),ir=er.length,or={width:0,height:0,numcomponents:1},ar=4;ar<ir;ar+=2){if(ar+=nr,-1!==tr.indexOf(er.charCodeAt(ar+1))){rr=256*er.charCodeAt(ar+5)+er.charCodeAt(ar+6),or={width:256*er.charCodeAt(ar+7)+er.charCodeAt(ar+8),height:rr,numcomponents:er.charCodeAt(ar+9)};break}nr=256*er.charCodeAt(ar+2)+er.charCodeAt(ar+3)}return or}(er=this.__addimage__.isArrayBufferView(er)?this.__addimage__.arrayBufferToBinaryString(er):er)).numcomponents){case 1:ar=this.color_spaces.DEVICE_GRAY;break;case 4:ar=this.color_spaces.DEVICE_CMYK;break;case 3:ar=this.color_spaces.DEVICE_RGB}cr={data:er,width:sr.width,height:sr.height,colorSpace:ar,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 Sm,xm,km,Cm,Bm,Em=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 ir=new Uint8Array(nr),or=0;or<rr;++or)ir[or]=tr[or];return this.buffer=ir},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}(),Nm=("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==sg&&sg||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],ir=[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(Em.prototype),o.prototype.getBits=function(er){for(var tr,rr=this.codeSize,nr=this.codeBuf,ir=this.bytes,or=this.bytesPos;rr<er;)void 0===(tr=ir[or++])&&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=or,tr},o.prototype.getCode=function(er){for(var tr=er[0],rr=er[1],nr=this.codeSize,ir=this.codeBuf,or=this.bytes,ar=this.bytesPos;nr<rr;){var sr;void 0===(sr=or[ar++])&&a("Bad encoding in flate stream"),ir|=sr<<nr,nr+=8}var lr=tr[ir&(1<<rr)-1],cr=lr>>16,ur=65535&lr;return(0==nr||nr<cr||0==cr)&&a("Bad encoding in flate stream"),this.codeBuf=ir>>cr,this.codeSize=nr-cr,this.bytesPos=ar,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 ir=1<<rr,or=new Uint32Array(ir),ar=1,sr=0,lr=2;ar<=rr;++ar,sr<<=1,lr<<=1)for(var cr=0;cr<tr;++cr)if(er[cr]==ar){var ur=0,dr=sr;for(nr=0;nr<ar;++nr)ur=ur<<1|1&dr,dr>>=1;for(nr=ur;nr<ir;nr+=lr)or[nr]=ar<<16|cr;++sr}return[or,rr]},o.prototype.readBlock=function(){function o(er,tr,rr,nr,ir){for(var or=er.getBits(rr)+nr;or-- >0;)tr[hr++]=ir}var or=this.getBits(3);if(1&or&&(this.eof=!0),0!=(or>>=1)){var ar,sr;if(1==or)ar=nr,sr=ir;else if(2==or){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}ar=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(ar);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 Sr=0;Sr<Ar;++Sr,++vr)Lr[vr]=Lr[vr-wr]}}}else{var xr,kr=this.bytes,Cr=this.bytesPos;void 0===(xr=kr[Cr++])&&a("Bad block header in flate stream");var Br=xr;void 0===(xr=kr[Cr++])&&a("Bad block header in flate stream"),Br|=xr<<8,void 0===(xr=kr[Cr++])&&a("Bad block header in flate stream");var Er=xr;void 0===(xr=kr[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),Tr=Nr+Br;this.bufferLength=Tr;for(var Pr=Nr;Pr<Tr;++Pr){if(void 0===(xr=kr[Cr++])){this.eof=!0;break}Lr[Pr]=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,Em.call(this)}}(),Lm=function(){var er,tr,rr;function i(er){var tr,rr,nr,ir,or,ar,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={},ar=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":ar&&this.animation.frames.push(ar),this.pos+=4,ar={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},or=this.readUInt16(),ir=this.readUInt16()||100,ar.delay=1e3*or/ir,ar.disposeOp=this.data[this.pos++],ar.blendOp=this.data[this.pos++],ar.data=[];break;case"IDAT":case"fdAT":for("fdAT"===cr&&(this.pos+=4,tr-=4),er=(null!=ar?ar.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 ar&&this.animation.frames.push(ar),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,ir=this;if(null==er&&(er=this.imgData),0===er.length)return new Uint8Array(0);function a(or,ar,sr,lr){var cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr,Cr,Br,Er,Nr,Lr=Math.ceil((ir.width-or)/sr),Tr=Math.ceil((ir.height-ar)/lr),Pr=ir.width==Lr&&ir.height==Tr;for(wr=tr*Lr,yr=Pr?rr:new Uint8Array(wr*Tr),Ar=er.length,br=0,ur=0;br<Tr&&nr<Ar;){switch(er[nr++]){case 0:for(hr=kr=0;kr<wr;hr=kr+=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,Sr=br&&yr[(br-1)*wr+dr*tr+hr%tr],yr[ur++]=(Sr+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],Sr=br&&yr[(br-1)*wr+dr*tr+hr%tr],yr[ur++]=(cr+Math.floor((pr+Sr)/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?Sr=xr=0:(Sr=yr[(br-1)*wr+dr*tr+hr%tr],xr=dr&&yr[(br-1)*wr+(dr-1)*tr+hr%tr]),fr=pr+Sr-xr,gr=Math.abs(fr-pr),_r=Math.abs(fr-Sr),vr=Math.abs(fr-xr),mr=gr<=_r&&gr<=vr?pr:_r<=vr?Sr:xr,yr[ur++]=(cr+mr)%256;break;default:throw new Error("Invalid filter algorithm: "+er[nr-1])}if(!Pr){var Fr=((ar+br*lr)*ir.width+or)*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 Nm(er)).getBytes(),1==ir.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,ir,or,ar,sr,lr;for(rr=this.palette,or=this.transparency.indexed||[],ir=new Uint8Array((or.length||0)+rr.length),nr=0,er=0,tr=ar=0,sr=rr.length;ar<sr;tr=ar+=3)ir[nr++]=rr[tr],ir[nr++]=rr[tr+1],ir[nr++]=rr[tr+2],ir[nr++]=null!=(lr=or[er++])?lr:255;return ir},i.prototype.copyToImageData=function(er,tr){var rr,nr,ir,or,ar,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=(ir=er.data||er).length,ar=ur||tr,or=sr=0,1===nr)for(;or<cr;)lr=ur?4*tr[or/4]:sr,dr=ar[lr++],ir[or++]=dr,ir[or++]=dr,ir[or++]=dr,ir[or++]=rr?ar[lr++]:255,sr=lr;else for(;or<cr;)lr=ur?4*tr[or/4]:sr,ir[or++]=ar[lr++],ir[or++]=ar[lr++],ir[or++]=ar[lr++],ir[or++]=rr?ar[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(gg)){try{tr=gg.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,ir,or,ar,sr,lr,cr;if(this.animation){for(cr=[],nr=ar=0,sr=(lr=this.animation.frames).length;ar<sr;nr=++ar)rr=lr[nr],ir=tr.createImageData(rr.width,rr.height),or=this.decodePixels(new Uint8Array(rr.data)),this.copyToImageData(ir,or),rr.imageData=ir,cr.push(rr.image=er(ir));return cr}},i.prototype.renderFrame=function(er,tr){var rr,nr,ir;return rr=(nr=this.animation.frames)[tr],ir=nr[tr-1],0===tr&&er.clearRect(0,0,this.width,this.height),1===(null!=ir?ir.disposeOp:void 0)?er.clearRect(ir.xOffset,ir.yOffset,ir.width,ir.height):2===(null!=ir?ir.disposeOp:void 0)&&er.putImageData(ir.imageData,ir.xOffset,ir.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,ir,or,ar,sr=this;return rr=0,ar=this.animation,ir=ar.numFrames,nr=ar.frames,or=ar.numPlays,(tr=function e(){var ar,lr;if(ar=rr++%ir,lr=nr[ar],sr.renderFrame(er,ar),ir>1&&rr/ir<or)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,ir=er[tr++],or=ir>>7,ar=1<<1+(7&ir);er[tr++],er[tr++];var sr=null,lr=null;or&&(sr=tr,lr=ar,tr+=3*ar);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),Sr=sr,xr=lr,kr=!1;yr>>7&&(kr=!0,Sr=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:kr,palette_offset:Sr,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 ir=this.frameInfo(tr),or=ir.width*ir.height,ar=new Uint8Array(or);Bt(er,ir.data_offset,ar,or);var sr=ir.palette_offset,lr=ir.transparent_index;null===lr&&(lr=256);var cr=ir.width,ur=rr-cr,dr=cr,hr=4*(ir.y*rr+ir.x),pr=4*((ir.y+ir.height)*rr+ir.x),Ar=hr,fr=4*ur;!0===ir.interlaced&&(fr+=4*rr*7);for(var gr=8,mr=0,_r=ar.length;mr<_r;++mr){var vr=ar[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 ir=this.frameInfo(tr),or=ir.width*ir.height,ar=new Uint8Array(or);Bt(er,ir.data_offset,ar,or);var sr=ir.palette_offset,lr=ir.transparent_index;null===lr&&(lr=256);var cr=ir.width,ur=rr-cr,dr=cr,hr=4*(ir.y*rr+ir.x),pr=4*((ir.y+ir.height)*rr+ir.x),Ar=hr,fr=4*ur;!0===ir.interlaced&&(fr+=4*rr*7);for(var gr=8,mr=0,_r=ar.length;mr<_r;++mr){var vr=ar[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 ir=er[tr++],or=1<<ir,ar=or+1,sr=ar+1,lr=ir+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!==or){if(gr===ar)break;for(var mr=gr<sr?gr:fr,_r=0,vr=mr;vr>or;)vr=Ar[vr]>>8,++_r;var yr=vr;if(hr+_r+(mr!==gr?1:0)>nr)return void mg.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=ar+1,cr=(1<<(lr=ir+1))-1,fr=null}return hr!==nr&&mg.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,ir,or,ar=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),Sr=[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],kr=[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],Tr=[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,ir=new Array,or=1;or<=16;or++){for(var ar=1;ar<=er[or];ar++)ir[tr[nr]]=[],ir[tr[nr]][0]=rr,ir[tr[nr]][1]=or,nr++,rr++;rr*=2}return ir}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,ir){for(var or,ar=ir[0],sr=ir[240],lr=function(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr=0;for(ur=0;ur<8;++ur){rr=er[hr],nr=er[hr+1],ir=er[hr+2],or=er[hr+3],ar=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=ir+sr,vr=ir-sr,yr=or+ar,br=or-ar,wr=Ar+yr,Sr=Ar-yr,xr=gr+_r,kr=gr-_r;er[hr]=wr+xr,er[hr+4]=wr-xr;var Cr=.707106781*(kr+Sr);er[hr+2]=Sr+Cr,er[hr+6]=Sr-Cr;var Br=.382683433*((wr=br+vr)-(kr=mr+fr)),Er=.5411961*wr+Br,Nr=1.306562965*kr+Br,Lr=.707106781*(xr=vr+mr),Tr=fr+Lr,Pr=fr-Lr;er[hr+5]=Pr+Er,er[hr+3]=Pr-Er,er[hr+1]=Tr+Nr,er[hr+7]=Tr-Nr,hr+=8}for(hr=0,ur=0;ur<8;++ur){rr=er[hr],nr=er[hr+8],ir=er[hr+16],or=er[hr+24],ar=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=ir+sr,Or=ir-sr,Qr=or+ar,Dr=or-ar,jr=Fr+Qr,Hr=Fr-Qr,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+Or)-(Vr=Rr+Ur)),qr=.5411961*jr+Kr,Wr=1.306562965*Vr+Kr,Xr=.707106781*(Gr=Or+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[Sr[cr]]=lr[cr];var ur=Ar[0]-rr;rr=Ar[0],0==ur?B(nr[0]):(B(nr[hr[or=32767+ur]]),B(dr[or]));for(var fr=63;fr>0&&0==Ar[fr];)fr--;if(0==fr)return B(ar),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}or=32767+Ar[mr],B(ir[(vr<<4)+hr[or]]),B(dr[or]),mr++}return 63!=fr&&B(ar),rr}function q(er){er=Math.min(Math.max(er,1),100),or!=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=ar((tr[rr]*er+50)/100);nr=Math.min(Math.max(nr,1),255),sr[Sr[rr]]=nr}for(var ir=[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],or=0;or<64;or++){var dr=ar((ir[or]*er+50)/100);dr=Math.min(Math.max(dr,1),255),lr[Sr[or]]=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[Sr[pr]]*hr[Ar]*hr[fr]*8),ur[pr]=1/(lr[Sr[pr]]*hr[Ar]*hr[fr]*8),pr++}(er<50?Math.floor(5e3/er):Math.floor(200-2*er)),or=er)}this.encode=function(er,or){or&&q(or),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(kr[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 ir=0;ir<16;ir++)O(Er[ir+1]);for(var or=0;or<=11;or++)O(Nr[or]);O(17);for(var ar=0;ar<16;ar++)O(Lr[ar+1]);for(var sr=0;sr<=161;sr++)O(Tr[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 ar=0,dr=0,hr=0;gr=0,mr=7,this.encode.displayName="_encode_";for(var pr,Ar,br,Sr,Pr,Fr,Ur,Ir,Rr,Mr=er.data,Or=er.width,Qr=er.height,Dr=4*Or,jr=0;jr<Qr;){for(pr=0;pr<Dr;){for(Pr=Dr*jr+pr,Ur=-1,Ir=0,Rr=0;Rr<64;Rr++)Fr=Pr+(Ir=Rr>>3)*Dr+(Ur=4*(7&Rr)),jr+Ir>=Qr&&(Fr-=Dr*(jr+1+Ir-Qr)),pr+Ur>=Dr&&(Fr-=pr+Ur-Dr+4),Ar=Mr[Fr++],br=Mr[Fr++],Sr=Mr[Fr++],_r[Rr]=(wr[Ar]+wr[br+256>>0]+wr[Sr+512>>0]>>16)-128,vr[Rr]=(wr[Ar+768>>0]+wr[br+1024>>0]+wr[Sr+1280>>0]>>16)-128,yr[Rr]=(wr[Ar+1280>>0]+wr[br+1536>>0]+wr[Sr+1792>>0]>>16)-128;ar=E(_r,cr,ar,tr,nr),dr=E(vr,ur,dr,rr,ir),hr=E(yr,ur,hr,rr,ir),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,kr),rr=j(Er,Nr),nr=j(Cr,Br),ir=j(Lr,Tr),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 ir=-(tr-1);ir<=-er;ir++)hr[32767+ir]=rr,dr[32767+ir]=[],dr[32767+ir][1]=rr,dr[32767+ir][0]=tr-1+ir;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,ir){for(var or=0;or<ir;or++)er[tr+or]=rr[nr+or]}function i(er,tr,rr,nr){for(var ir=0;ir<nr;ir++)er[tr+ir]=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 ir=nr[rr],or=0;or<ir&&(er.push(nr.length>rr+1?[]:new tr),!(nr.length<rr+1));or++)t(er[or],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,ir){e(!(nr%rr));do{er[tr+(nr-=rr)]=ir}while(0<nr)}function h(er,tr,rr,nr,ir){if(e(2328>=ir),512>=ir)var or=a(512);else if(null==(or=a(ir)))return 0;return function(er,tr,rr,nr,ir,or){var ar,sr,lr=tr,cr=1<<rr,ur=a(16),dr=a(16);for(e(0!=ir),e(null!=nr),e(null!=er),e(0<rr),sr=0;sr<ir;++sr){if(15<nr[sr])return 0;++ur[nr[sr]]}if(ur[0]==ir)return 0;for(dr[1]=0,ar=1;15>ar;++ar){if(ur[ar]>1<<ar)return 0;dr[ar+1]=dr[ar]+ur[ar]}for(sr=0;sr<ir;++sr)ar=nr[sr],0<nr[sr]&&(or[dr[ar]++]=sr);if(1==dr[15])return(nr=new l).g=0,nr.value=or[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,ar=1,ir=2;ar<=rr;++ar,ir<<=1){if(gr+=mr<<=1,0>(mr-=ur[ar]))return 0;for(;0<ur[ar];--ur[ar])(nr=new l).g=ar,nr.value=or[sr++],c(er,lr+fr,ir,_r,nr),fr=u(fr,ar)}for(ar=rr+1,ir=2;15>=ar;++ar,ir<<=1){if(gr+=mr<<=1,0>(mr-=ur[ar]))return 0;for(;0<ur[ar];--ur[ar]){if(nr=new l,(fr&Ar)!=pr){for(lr+=_r,hr=1<<(pr=ar)-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=ar-rr,nr.value=or[sr++],c(er,lr+(fr>>rr),ir,_r,nr),fr=u(fr,ar)}}return gr!=2*dr[15]-1?0:cr}(er,tr,rr,nr,ir,or)}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 ir,or=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),ir=0;ir<nr;++ir)or+=tr[rr+ir]<<8*ir;er.Ra=or,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]<<ir-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 ir=L(er)&rr[tr];return er.u+=tr,b(er),ir}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&ir-1)>>>0}function x(er){return e(er.bb<=er.Sb),er.h||er.bb==er.Sb&&er.u>ir}function A(er,tr){er.u=tr,er.h=x(er)}function _(er){er.u>=or&&(e(er.u>=or),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,ir=rr*tr>>>8,or=(er.I>>>nr>ir)+0;for(or?(rr-=ir,er.I-=ir+1<<nr>>>0):rr=ir+1,nr=rr,ir=0;256<=nr;)ir+=8,nr>>=8;return nr=7^ir+ar[nr],er.b-=nr,er.Ca=(rr<<nr)-1,or}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 ir=rr[0],or=nr[0];return 0==ir&&(ir=(er*or+tr/2)/tr),0==or&&(or=(tr*ir+er/2)/er),0>=ir||0>=or?0:(rr[0]=ir,nr[0]=or,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,ir,or,ar,sr,lr){var cr;for(cr=0;cr<ar;++cr){var ur=er[tr](sr[lr+cr-1],ir,or+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,ir,or,ar){for(nr=or[ar-1],rr=0;rr<ir;++rr)or[ar+rr]=nr=R(er[tr+rr],nr)}function G(er,tr,rr,nr,ir){var or;for(or=0;or<rr;++or){var ar=er[tr+or],sr=ar>>8&255,lr=16711935&(lr=(lr=16711935&ar)+((sr<<16)+sr));nr[ir+or]=(4278255360&ar)+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,ir,or){var ar;for(ar=0;ar<nr;++ar){var sr=tr[rr+ar],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)),ir[or+ar]=(4278255360&sr)+(ur<<16)+cr}}function X(tr,rr,nr,ir,or){er[rr]=function(er,tr,rr,nr,ar,sr,lr,cr,ur){for(nr=lr;nr<cr;++nr)for(lr=0;lr<ur;++lr)ar[sr++]=or(rr[ir(er[tr++])])},er[tr]=function(tr,rr,ar,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<ar;++rr){var fr,gr=0;for(fr=0;fr<hr;++fr)fr&tr||(gr=ir(sr[lr++])),cr[ur++]=or(pr[gr&Ar]),gr>>=dr}else er["VP8LMapColor"+nr](sr,lr,pr,Ar,cr,ur,rr,ar,hr)}}function K(er,tr,rr,nr,ir){for(rr=tr+rr;tr<rr;){var or=er[tr++];nr[ir++]=or>>16&255,nr[ir++]=or>>8&255,nr[ir++]=or>>0&255}}function Z(er,tr,rr,nr,ir){for(rr=tr+rr;tr<rr;){var or=er[tr++];nr[ir++]=or>>16&255,nr[ir++]=or>>8&255,nr[ir++]=or>>0&255,nr[ir++]=or>>24&255}}function $(er,tr,rr,nr,ir){for(rr=tr+rr;tr<rr;){var or=(ar=er[tr++])>>16&240|ar>>12&15,ar=ar>>0&240|ar>>28&15;nr[ir++]=or,nr[ir++]=ar}}function Q(er,tr,rr,nr,ir){for(rr=tr+rr;tr<rr;){var or=(ar=er[tr++])>>16&248|ar>>13&7,ar=ar>>5&224|ar>>3&31;nr[ir++]=or,nr[ir++]=ar}}function tt(er,tr,rr,nr,ir){for(rr=tr+rr;tr<rr;){var or=er[tr++];nr[ir++]=or>>0&255,nr[ir++]=or>>8&255,nr[ir++]=or>>16&255}}function et(er,tr,rr,nr,ir,or){if(0==or)for(rr=tr+rr;tr<rr;)F(nr,((or=er[tr++])[0]>>24|or[1]>>8&65280|or[2]<<8&16711680|or[3]<<24)>>>0),ir+=32;else r(nr,ir,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,ir=nr.eb,or=nr.fb+er.ka*nr.A,ar=vi[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?ar(sr,lr,null,null,cr,ur,dr,hr,cr,ur,dr,hr,ir,or,null,null,vr):(ar(tr.ec,tr.fc,sr,lr,pr,Ar,fr,gr,cr,ur,dr,hr,ir,or-nr.A,ir,or,vr),++rr);mr+2<_r;mr+=2)pr=cr,Ar=ur,fr=dr,gr=hr,ur+=er.Rc,hr+=er.Rc,or+=2*nr.A,ar(sr,(lr+=2*er.fa)-er.fa,sr,lr,pr,Ar,fr,gr,cr,ur,dr,hr,ir,or-nr.A,ir,or,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||ar(sr,lr,null,null,cr,ur,dr,hr,cr,ur,dr,hr,ir,or+nr.A,null,null,vr),rr}function lt(er,tr,rr){var nr=er.F,ir=[er.J];if(null!=nr){var or=er.U,ar=tr.ba.S,sr=ar==Qn||ar==zn;tr=tr.ba.f.RGBA;var lr=[0],cr=er.ka;lr[0]=er.T,er.Kb&&(0==cr?--lr[0]:(--cr,ir[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,ir[0],er.width,or,lr,ur,cr+(sr?0:3),tr.A),e(rr==lr),er&&rt(ar)&&Qr(ur,cr,sr,or,lr,tr.A)}return 0}function ft(er){var tr=er.ma,rr=tr.ba.S,nr=11>rr,ir=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,ir?11:12))return 0;if(ir&&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");ir&&(tr.Jb=lt,nr&&vn())}if(nr&&!Ui){for(er=0;256>er;++er)Ii[er]=89858*(er-128)+Ni>>Ei,Oi[er]=-22014*(er-128)+Ni,Mi[er]=-45773*(er-128),Ri[er]=113618*(er-128)+Ni>>Ei;for(er=Li;er<Ti;++er)tr=76283*(er-16)+Ni>>Ei,Qi[er-Li]=Vt(tr,255),Di[er-Li]=Vt(tr+8>>4,15);Ui=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),ir=er[tr+=255&nr].g-8;return 0<ir&&(A(rr,rr.u+8),nr=L(rr),tr+=er[tr].value,tr+=nr&(1<<ir)-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 ir=er.ab,or=er.c*tr,ar=er.C;tr=ar+tr;var dr=rr,hr=nr;for(nr=er.Ta,rr=er.Ua;0<ir--;){var pr=er.gc[ir],gr=ar,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,Sr=hr,xr=dr,kr=(Lr=pr).Ea;0==br&&(sr(_r,vr,null,null,1,Sr,xr),V(_r,vr+1,0,0,kr-1,Sr,xr+1),vr+=kr,xr+=kr,++br);for(var Cr=1<<Lr.b,Br=Cr-1,Er=q(kr,Lr.b),Nr=Lr.K,Lr=Lr.w+(br>>Lr.b)*Er;br<wr;){var Tr=Nr,Pr=Lr,Fr=1;for(lr(_r,vr,Sr,xr-kr,1,Sr,xr);Fr<kr;){var Ur=(Fr&~Br)+Cr;Ur>kr&&(Ur=kr),(0,Ar[Tr[Pr++]>>8&15])(_r,vr+ +Fr,Sr,xr+Fr-kr,Ur-Fr,Sr,xr+Fr),Fr=Ur}vr+=kr,xr+=kr,++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,kr=(_r=pr.Ea)-(xr=_r&~(Sr=(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,Tr=wr+_r;wr<Lr;)Y(Br[Er++],Nr),fr(Nr,yr,wr,vr,hr,dr),wr+=vr,dr+=vr;wr<Tr&&(Y(Br[Er++],Nr),fr(Nr,yr,wr,kr,hr,dr),wr+=kr,dr+=kr),++gr&Sr||(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,Sr=dr,br=[],xr=(kr=xr)-1;0<=xr;--xr)br[xr]=vr[Sr+xr];for(xr=kr-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,or)}function Lt(er,tr){var rr=er.V,nr=er.Ba+er.c*er.C,ir=tr-er.C;if(e(tr<=er.l.o),e(16>=ir),0<ir){var or=er.l,ar=er.Ta,sr=er.Ua,lr=or.width;if(Nt(er,ir,rr,nr),ir=sr=[sr],e((rr=er.C)<(nr=tr)),e(or.v<or.va),nr>or.o&&(nr=or.o),rr<or.j){var cr=or.j-rr;rr=or.j,ir[0]+=cr*lr}if(rr>=nr?rr=0:(ir[0]+=4*or.v,or.ka=rr-or.j,or.U=or.va-or.v,or.T=nr-rr,rr=1),rr){if(sr=sr[0],11>(rr=er.ca).S){var ur=rr.f.RGBA,dr=(nr=rr.S,ir=or.U,or=or.T,cr=ur.eb,ur.A),hr=or;for(ur=ur.fb+er.Ma*ur.A;0<hr--;){var pr=ar,Ar=sr,fr=ir,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),Qr(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),Qr(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),Qr(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+=or}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,ir,or){if(0!=er.Z){var ar=er.qd,sr=er.rd;for(e(null!=_i[er.Z]);tr<rr;++tr)_i[er.Z](ar,sr,nr,ir,nr,ir,or),ar=nr,sr=ir,ir+=or;er.qd=ar,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 ir=er.l.width,or=rr.ca,ar=rr.tb+ir*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,or,ar),At(rr,nr,tr,or,ar,ir)}er.C=er.Ma=tr}function St(er,rr,nr,ir,or,ar,sr){var lr=er.$/ir,cr=er.$%ir,ur=er.m,dr=er.s,hr=nr+er.$,pr=hr;or=nr+ir*or;var Ar=nr+ir*ar,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<ar),e(Ar<=or);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+ti}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 Sr=hr,xr=vr.pd[L(br)&tr-1];e(vr.jc),256>xr.g?(A(br,br.u+xr.g),wr[Sr]=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),Sr=bt(vr.G[3],vr.H[3],ur),ur.h)break;rr[hr]=(Sr<<24|yr<<16|br<<8|wr)>>>0}if(yr=!1,++hr,++cr>=ir&&(cr=0,++lr,null!=sr&&lr<=ar&&!(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(ir,wr=mt(wr,ur)),ur.h)break;if(hr-nr<wr||or-hr<br)break e;for(Sr=0;Sr<br;++Sr)rr[hr+Sr]=rr[hr+Sr-wr];for(hr+=br,cr+=br;cr>=ir;)cr-=ir,++lr,null!=sr&&lr<=ar&&!(lr%16)&&sr(er,lr);if(e(hr<=or),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<or)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>ar?ar: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=mi,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,ir,or){var ar=1,sr=[er],lr=[rr],cr=ir.m,ur=ir.s,dr=null,hr=0;e:for(;;){if(nr)for(;ar&&y(cr,1);){var pr=sr,Ar=lr,fr=ir,gr=1,mr=fr.m,_r=fr.gc[fr.ab],vr=y(mr,2);if(fr.Oc&1<<vr)ar=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 Sr,xr=br,kr=_r,Cr=1<<(8>>kr.b),Br=a(Cr);if(null==Br)yr=0;else{var Er=kr.K[0],Nr=kr.w;for(Br[0]=kr.K[0][0],Sr=1;Sr<1*xr;++Sr)Br[Sr]=R(Er[Nr+Sr],Br[Sr-1]);for(;Sr<4*Cr;++Sr)Br[Sr]=0;kr.K[0]=null,kr.K[0]=Br,yr=1}}gr=yr;break;case 2:break;default:e(0)}ar=gr}}if(sr=sr[0],lr=lr[0],ar&&y(cr,1)&&!(ar=1<=(hr=y(cr,4))&&11>=hr)){ir.a=3;break e}var Lr;if(Lr=ar)t:{var Tr,Pr,Fr,Ur=ir,Ir=sr,Rr=lr,Mr=hr,Or=nr,Qr=Ur.m,Dr=Ur.s,jr=[null],Hr=1,Gr=0,Vr=ei[Mr];r:for(;;){if(Or&&y(Qr,1)){var zr=y(Qr,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,Tr=0;Tr<Wr;++Tr){var Xr=jr[Tr]>>8&65535;jr[Tr]=Xr,Xr>=Hr&&(Hr=Xr+1)}}if(Qr.h)break r;for(Pr=0;5>Pr;++Pr){var Yr=Yn[Pr];!Pr&&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(Tr=Fr=0;Tr<Hr;++Tr){var Dn=Tn[Tr],Hn=Dn.G,Gn=Dn.H,Vn=0,zn=1,Kn=0;for(Pr=0;5>Pr;++Pr){Yr=Yn[Pr],Hn[Pr]=Qn,Gn[Pr]=Fr,!Pr&&0<Mr&&(Yr+=1<<Mr);n:{var Zn,ti=Yr,ri=Ur,ni=Un,ii=Qn,oi=Fr,ai=0,si=ri.m,li=y(si,1);if(i(ni,0,0,ti),li){var ui=y(si,1)+1,di=y(si,1),hi=y(si,0==di?1:8);ni[hi]=1,2==ui&&(ni[hi=y(si,8)]=1);var pi=1}else{var Ai=a(19),fi=y(si,4)+4;if(19<fi){ri.a=3;var mi=0;break n}for(Zn=0;Zn<fi;++Zn)Ai[$n[Zn]]=y(si,3);var _i=void 0,vi=void 0,yi=ri,wi=Ai,Si=ti,xi=ni,ki=0,Ci=yi.m,Bi=8,Ei=o(128,l);i:for(;h(Ei,0,7,wi,19);){if(y(Ci,1)){var Ni=2+2*y(Ci,3);if((_i=2+y(Ci,Ni))>Si)break i}else _i=Si;for(vi=0;vi<Si&&_i--;){_(Ci);var Li=Ei[0+(127&L(Ci))];A(Ci,Ci.u+Li.g);var Ti=Li.value;if(16>Ti)xi[vi++]=Ti,0!=Ti&&(Bi=Ti);else{var Pi=16==Ti,Fi=Ti-16,Ui=Xn[Fi],Ii=y(Ci,Wn[Fi])+Ui;if(vi+Ii>Si)break i;for(var Ri=Pi?Bi:0;0<Ii--;)xi[vi++]=Ri}}ki=1;break i}ki||(yi.a=3),pi=ki}(pi=pi&&!si.h)&&(ai=h(ii,oi,8,ni,ti)),pi&&0!=ai?mi=ai:(ri.a=3,mi=0)}if(0==mi)break r;if(zn&&1==Jn[Pr]&&(zn=0==Qn[Fr].g),Vn+=Qn[Fr].g,Fr+=mi,3>=Pr){var Mi,Oi=Un[0];for(Mi=1;Mi<Yr;++Mi)Un[Mi]>Oi&&(Oi=Un[Mi]);Kn+=Oi}}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 Qi,Di=Dn;for(Qi=0;Qi<tr;++Qi){var ji=Qi,Hi=Di.pd[ji],Gi=Di.G[0][Di.H[0]+ji];256<=Gi.value?(Hi.g=Gi.g+256,Hi.value=Gi.value):(Hi.g=0,Hi.value=0,ji>>=yt(Gi,8,Hi),ji>>=yt(Di.G[1][Di.H[1]+ji],16,Hi),ji>>=yt(Di.G[2][Di.H[2]+ji],0,Hi),yt(Di.G[3][Di.H[3]+ji],24,Hi))}}}Dr.vc=jr,Dr.Wb=Hr,Dr.Ya=Tn,Dr.yc=Jr,Lr=1;break t}Lr=0}if(!(ar=Lr)){ir.a=3;break e}if(0<hr){if(ur.ua=1<<hr,!B(ur.Wa,hr)){ir.a=1,ar=0;break e}}else ur.ua=0;var Vi=ir,zi=sr,Ki=lr,qi=Vi.s,Wi=qi.xc;if(Vi.c=zi,Vi.i=Ki,qi.md=q(zi,Wi),qi.wc=0==Wi?-1:(1<<Wi)-1,nr){ir.xb=gi;break e}if(null==(dr=a(sr*lr))){ir.a=1,ar=0;break e}ar=(ar=St(ir,dr,0,sr,lr,lr,null))&&!cr.h;break e}return ar?(null!=or?or[0]=dr:(e(null==dr),e(nr)),ir.$=0,nr||Pt(ur)):Pt(ur),ar}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,ir=er.V,or=er.Ba+er.c*rr;for(e(tr<=er.l.o);0<nr;){var ar=16<nr?16:nr,sr=er.l.ma,lr=er.l.width,cr=lr*ar,ur=sr.ca,dr=sr.tb+lr*rr,hr=er.Ta,pr=er.Ua;Nt(er,ar,ir,or),Hr(hr,pr,ur,dr,cr),At(sr,rr,rr+ar,ur,dr,lr),nr-=ar,ir+=ar*er.c,rr+=ar}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],ir=0;ir<nr&&(er.push(rr.length>tr+1?[]:0),!(rr.length<tr+1));ir++)t(er[ir],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,ii||(ii=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,ir=tr.ha;if(4>ir)return Jt(er,7,"Truncated header.");var or=rr[nr+0]|rr[nr+1]<<8|rr[nr+2]<<16,ar=er.Od;if(ar.Rb=!(1&or),ar.td=or>>1&7,ar.yd=or>>4&1,ar.ub=or>>5,3<ar.td)return Jt(er,3,"Incorrect keyframe parameters.");if(!ar.yd)return Jt(er,4,"Frame not displayable.");nr+=3,ir-=3;var sr=er.Kc;if(ar.Rb){if(7>ir)return Jt(er,7,"cannot parse picture header");if(!Xt(rr,nr,ir))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,ir-=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((or=er.Pa).jb,0,255,or.jb.length),e(null!=(or=er.Qa)),or.Cb=0,or.Bb=0,or.Fb=1,i(or.Zb,0,0,or.Zb.length),i(or.Lb,0,0,or.Lb)}if(ar.ub>ir)return Jt(er,7,"bad partition length");p(or=er.m,rr,nr,ar.ub),nr+=ar.ub,ir-=ar.ub,ar.Rb&&(sr.Ld=P(or),sr.Kd=P(or)),sr=er.Qa;var lr,cr=er.Pa;if(e(null!=or),e(null!=sr),sr.Cb=P(or),sr.Cb){if(sr.Bb=P(or),P(or)){for(sr.Fb=P(or),lr=0;4>lr;++lr)sr.Zb[lr]=P(or)?m(or,7):0;for(lr=0;4>lr;++lr)sr.Lb[lr]=P(or)?m(or,6):0}if(sr.Bb)for(lr=0;3>lr;++lr)cr.jb[lr]=P(or)?g(or,8):255}else sr.Bb=0;if(or.Ka)return Jt(er,3,"cannot parse segment header");if((sr=er.ed).zd=P(or),sr.Tb=g(or,6),sr.wb=g(or,3),sr.Pc=P(or),sr.Pc&&P(or)){for(cr=0;4>cr;++cr)P(or)&&(sr.vd[cr]=m(or,6));for(cr=0;4>cr;++cr)P(or)&&(sr.od[cr]=m(or,6))}if(er.L=0==sr.Tb?0:sr.zd?1:2,or.Ka)return Jt(er,3,"cannot parse filter header");var ur=ir;if(ir=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[ir+0]|rr[ir+1]<<8|rr[ir+2]<<16;dr>sr&&(dr=sr),p(er.Jc[+ur],rr,lr,dr),lr+=dr,sr-=dr,ir+=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),ir=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]=ri[Vt(hr+ir,127)],pr.Sc[1]=ni[Vt(hr+0,127)],pr.Eb[0]=2*ri[Vt(hr+nr,127)],pr.Eb[1]=101581*ni[Vt(hr+sr,127)]>>16,8>pr.Eb[1]&&(pr.Eb[1]=8),pr.Qc[0]=ri[Vt(hr+cr,117)],pr.Qc[1]=ni[Vt(hr+lr,127)],pr.lc=hr+lr}if(!ar.Rb)return Jt(er,4,"Not a key frame.");for(P(or),ar=er.Pa,rr=0;4>rr;++rr){for(ir=0;8>ir;++ir)for(nr=0;3>nr;++nr)for(sr=0;11>sr;++sr)cr=k(or,di[rr][ir][nr][sr])?g(or,8):li[rr][ir][nr][sr],ar.Wc[rr][ir].Yb[nr][sr]=cr;for(ir=0;17>ir;++ir)ar.Xc[rr][ir]=ar.Wc[rr][hi[ir]]}return er.kc=P(or),er.kc&&(er.Bd=g(or,8)),er.cb=1}function Zt(er,tr,rr,nr,ir,or,ar){var sr=tr[ir].Yb[rr];for(rr=0;16>ir;++ir){if(!k(er,sr[rr+0]))return ir;for(;!k(er,sr[rr+1]);)if(sr=tr[++ir].Yb[0],rr=0,16==ir)return 16;var lr=tr[ir+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=oi[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=ar+ai[ir],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,or[lr]=((ur^pr)-pr)*nr[(0<ir)+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=Hi[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 ir;if(er.Qa.Cb){var or=er.Qa.Lb[rr];er.Qa.Fb||(or+=nr.Tb)}else or=nr.Tb;for(ir=0;1>=ir;++ir){var ar=er.gd[rr][ir],sr=or;if(nr.Pc&&(sr+=nr.vd[0],ir&&(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),ar.dd=lr,ar.tc=2*sr+lr,ar.ld=40<=sr?2:15<=sr?1:0}else ar.tc=0;ar.La=ir}}}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=Vi);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((ar=nr+832+(ir=3*(16*rr+Hi[er.L])/2*cr)+(or=null!=er.Fa&&0<er.Fa.length?er.Kc.c*er.Kc.i:0))!=ar)rr=0;else{if(ar>er.Vb){if(er.Vb=0,er.Ec=a(ar),er.Fc=0,null==er.Ec){rr=Jt(er,1,"no memory during frame initialization.");break e}er.Vb=ar}ar=er.Ec,sr=er.Fc,er.Ac=ar,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=ar,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=Hi[er.L])*er.R,cr=cr/2*er.B,er.sa=ar,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+=ir,er.mb=or?ar:null,er.nb=or?sr:null,e(sr+or<=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,kr=se,Cr=ue,Sr=ie,Br=Je,Er=Xe,Nr=$e,Lr=Qe,Tr=Ke,Pr=Ze,Fr=tn,Ur=en,Ir=ze,Rr=He,Mr=We,Or=Ve,Ai[0]=Ae,Ai[1]=le,Ai[2]=Le,Ai[3]=xe,Ai[4]=_e,Ai[5]=Pe,Ai[6]=Se,Ai[7]=ke,Ai[8]=Ie,Ai[9]=Fe,pi[0]=ve,pi[1]=de,pi[2]=pe,pi[3]=ge,pi[4]=be,pi[5]=ye,pi[6]=we,fi[0]=Oe,fi[1]=fe,fi[2]=Ce,fi[3]=je,fi[4]=Ee,fi[5]=Me,fi[6]=qe,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],ir=er.m,or=er;for(rr=0;rr<or.za;++rr){var ar=ir,sr=or,lr=sr.Ac,cr=sr.Bc+4*rr,ur=sr.zc,dr=sr.ya[sr.aa+rr];if(sr.Qa.Bb?dr.$b=k(ar,sr.Pa.jb[0])?2+k(ar,sr.Pa.jb[2]):k(ar,sr.Pa.jb[1]):dr.$b=0,sr.kc&&(dr.Ad=k(ar,sr.Bd)),dr.Za=!k(ar,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=ui[lr[cr+Ar]][fr];for(var gr=si[k(ar,fr[0])];0<gr;)gr=si[2*gr+k(ar,fr[gr])];fr=-gr,lr[cr+Ar]=fr}r(hr,pr,lr,cr,4),pr+=4,ur[0+sr]=fr}}else fr=k(ar,156)?k(ar,128)?1:3:k(ar,163)?2:0,dr.Ob[0]=fr,i(lr,cr,fr,4),i(ur,0,fr,4);dr.Dd=k(ar,142)?k(ar,114)?k(ar,183)?1:3:2:0}if(or.m.Ka)return Jt(er,7,"Premature end-of-partition0 encountered.");for(;er.ja<er.za;++er.ja){if(or=nr,ar=(ir=er).rb[ir.sb-1],lr=ir.rb[ir.sb+ir.ja],rr=ir.ya[ir.aa+ir.ja],cr=ir.kc?rr.Ad:0)ar.la=lr.la=0,rr.Za||(ar.Na=lr.Na=0),rr.Hc=0,rr.Gc=0,rr.ia=0;else{var mr,_r;if(ar=lr,lr=or,cr=ir.Pa.Xc,ur=ir.ya[ir.aa+ir.ja],dr=ir.pb[ur.$b],sr=ur.ad,hr=0,pr=ir.rb[ir.sb-1],fr=Ar=0,i(sr,hr,0,384),ur.Za)var vr=0,yr=cr[3];else{gr=a(16);var wr=ar.Na+pr.Na;if(wr=ii(lr,cr[1],wr,dr.Eb,0,gr,0),ar.Na=pr.Na=(0<wr)+0,1<wr)br(gr,0,sr,hr);else{var Sr=gr[0]+3>>3;for(gr=0;256>gr;gr+=16)sr[hr+gr]=Sr}vr=1,yr=cr[0]}var xr=15&ar.la,kr=15&pr.la;for(gr=0;4>gr;++gr){var Cr=1&kr;for(Sr=_r=0;4>Sr;++Sr)xr=xr>>1|(Cr=(wr=ii(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,kr=kr>>1|Cr<<7,Ar=(Ar<<8|_r)>>>0}for(yr=xr,vr=kr>>4,mr=0;4>mr;mr+=2){for(_r=0,xr=ar.la>>4+mr,kr=pr.la>>4+mr,gr=0;2>gr;++gr){for(Cr=1&kr,Sr=0;2>Sr;++Sr)wr=Cr+(1&xr),xr=xr>>1|(Cr=0<(wr=ii(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,kr=kr>>1|Cr<<5}fr|=_r<<4*mr,yr|=xr<<4<<mr,vr|=(240&kr)<<mr}ar.la=yr,pr.la=vr,ur.Hc=Ar,ur.Gc=fr,ur.ia=43690&fr?0:dr.ia,cr=!(Ar|fr)}if(0<ir.L&&(ir.wa[ir.Y+ir.ja]=ir.gd[rr.$b][rr.Za],ir.wa[ir.Y+ir.ja].La|=!cr),or.Ka)return Jt(er,7,"Premature end-of-file encountered.")}if($t(er),ir=tr,or=1,rr=(nr=er).D,ar=0<nr.L&&nr.M>=nr.zb&&nr.M<=nr.Va,0==nr.Aa)e:{if(rr.M=nr.M,rr.uc=ar,On(nr,rr),or=1,rr=(_r=nr.D).Nb,ar=(fr=Hi[nr.L])*nr.R,lr=fr/2*nr.B,gr=16*rr*nr.R,Sr=8*rr*nr.B,cr=nr.sa,ur=nr.ta-ar+gr,dr=nr.qa,sr=nr.ra-lr+Sr,hr=nr.Ha,pr=nr.Ia-lr+Sr,kr=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 Qr=(Dr=(Xr=wr).D).Nb;mr=Xr.R;var Dr=Dr.wa[Dr.Y+vr],jr=Xr.sa,Hr=Xr.ta+16*Qr*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&&Or(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*Qr*zr+8*vr,Wr=Xr.Ha,Xr=Xr.Ia+8*Qr*zr+8*vr;Qr=Dr.ld,0<vr&&(Er(jr,Hr,mr,Vr+4,Gr,Qr),Lr(Kr,qr,Wr,Xr,zr,Vr+4,Gr,Qr)),Dr.La&&(Pr(jr,Hr,mr,Vr,Gr,Qr),Ur(Kr,qr,Wr,Xr,zr,Vr,Gr,Qr)),0<yr&&(Br(jr,Hr,mr,Vr+4,Gr,Qr),Nr(Kr,qr,Wr,Xr,zr,Vr+4,Gr,Qr)),Dr.La&&(Tr(jr,Hr,mr,Vr,Gr,Qr),Fr(Kr,qr,Wr,Xr,zr,Vr,Gr,Qr))}}if(nr.ia&&alert("todo:DitherRow"),null!=ir.put){if(_r=16*xr,xr=16*(xr+1),kr?(ir.y=nr.sa,ir.O=nr.ta+gr,ir.f=nr.qa,ir.N=nr.ra+Sr,ir.ea=nr.Ha,ir.W=nr.Ia+Sr):(_r-=fr,ir.y=cr,ir.O=ur,ir.f=dr,ir.N=sr,ir.ea=hr,ir.W=pr),Ar||(xr-=fr),xr>ir.o&&(xr=ir.o),ir.F=null,ir.J=null,null!=nr.Fa&&0<nr.Fa.length&&_r<xr&&(ir.J=fn(nr,ir,_r,xr-_r),ir.F=nr.mb,null==ir.F&&0==ir.F.length)){or=Jt(nr,3,"Could not decode alpha data.");break e}_r<ir.j&&(fr=ir.j-_r,_r=ir.j,e(!(1&fr)),ir.O+=nr.R*fr,ir.N+=nr.B*(fr>>1),ir.W+=nr.B*(fr>>1),null!=ir.F&&(ir.J+=ir.width*fr)),_r<xr&&(ir.O+=ir.v,ir.N+=ir.v>>1,ir.W+=ir.v>>1,null!=ir.F&&(ir.J+=ir.v),ir.ka=_r-ir.j,ir.U=ir.va-ir.v,ir.T=xr-_r,or=ir.put(ir))}rr+1!=nr.Ic||Ar||(r(nr.sa,nr.ta-ar,cr,ur+16*nr.R,ar),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(!or)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,ir){ir=er[tr+rr+32*nr]+(ir>>3),er[tr+rr+32*nr]=-256&ir?0>ir?0:255:ir}function ee(er,tr,rr,nr,ir,or){te(er,tr,0,rr,nr+ir),te(er,tr,1,rr,nr+or),te(er,tr,2,rr,nr-or),te(er,tr,3,rr,nr-ir)}function ne(er){return(20091*er>>16)+er}function re(er,tr,rr,nr){var ir,or=0,ar=a(16);for(ir=0;4>ir;++ir){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);ar[or+0]=sr+ur,ar[or+1]=lr+cr,ar[or+2]=lr-cr,ar[or+3]=sr-ur,or+=4,tr++}for(ir=or=0;4>ir;++ir)sr=(er=ar[or+0]+4)+ar[or+8],lr=er-ar[or+8],cr=(35468*ar[or+4]>>16)-ne(ar[or+12]),te(rr,nr,0,0,sr+(ur=ne(ar[or+4])+(35468*ar[or+12]>>16))),te(rr,nr,1,0,lr+cr),te(rr,nr,2,0,lr-cr),te(rr,nr,3,0,sr-ur),or++,nr+=32}function ie(er,tr,rr,nr){var ir=er[tr+0]+4,or=35468*er[tr+4]>>16,ar=ne(er[tr+4]),sr=35468*er[tr+1]>>16;ee(rr,nr,0,ir+ar,er=ne(er[tr+1]),sr),ee(rr,nr,1,ir+or,er,sr),ee(rr,nr,2,ir-or,er,sr),ee(rr,nr,3,ir-ar,er,sr)}function ae(er,tr,rr,nr,ir){re(er,tr,rr,nr),ir&&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 ir;for(er=er[tr+0]+4,ir=0;4>ir;++ir)for(tr=0;4>tr;++tr)te(rr,nr,tr,ir,er)}function ue(er,tr,rr,nr){er[tr+0]&&kr(er,tr+0,rr,nr),er[tr+16]&&kr(er,tr+16,rr,nr+4),er[tr+32]&&kr(er,tr+32,rr,nr+128),er[tr+48]&&kr(er,tr+48,rr,nr+128+4)}function ce(er,tr,rr,nr){var ir,or=a(16);for(ir=0;4>ir;++ir){var ar=er[tr+0+ir]+er[tr+12+ir],sr=er[tr+4+ir]+er[tr+8+ir],lr=er[tr+4+ir]-er[tr+8+ir],cr=er[tr+0+ir]-er[tr+12+ir];or[0+ir]=ar+sr,or[8+ir]=ar-sr,or[4+ir]=cr+lr,or[12+ir]=cr-lr}for(ir=0;4>ir;++ir)ar=(er=or[0+4*ir]+3)+or[3+4*ir],sr=or[1+4*ir]+or[2+4*ir],lr=or[1+4*ir]-or[2+4*ir],cr=er-or[3+4*ir],rr[nr+0]=ar+sr>>3,rr[nr+16]=cr+lr>>3,rr[nr+32]=ar-sr>>3,rr[nr+48]=cr-lr>>3,nr+=64}function he(er,tr,rr){var nr,ir=tr-32,or=Yr,ar=255-er[ir-1];for(nr=0;nr<rr;++nr){var sr,lr=or,cr=ar+er[tr-1];for(sr=0;sr<rr;++sr)er[tr+sr]=lr[cr+er[ir+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],ir=er[tr-1+64],or=er[tr-1+96];F(er,tr+0,16843009*Ne(er[tr-1-32],rr,nr)),F(er,tr+32,16843009*Ne(rr,nr,ir)),F(er,tr+64,16843009*Ne(nr,ir,or)),F(er,tr+96,16843009*Ne(ir,or,or))}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],ir=er[tr-1+64],or=er[tr-1-32],ar=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,ir,er[tr-1+96]),er[tr+1+96]=er[tr+0+64]=Ne(rr,nr,ir),er[tr+2+96]=er[tr+1+64]=er[tr+0+32]=Ne(or,rr,nr),er[tr+3+96]=er[tr+2+64]=er[tr+1+32]=er[tr+0+0]=Ne(ar,or,rr),er[tr+3+64]=er[tr+2+32]=er[tr+1+0]=Ne(sr,ar,or),er[tr+3+32]=er[tr+2+0]=Ne(lr,sr,ar),er[tr+3+0]=Ne(cr,lr,sr)}function Se(er,tr){var rr=er[tr+1-32],nr=er[tr+2-32],ir=er[tr+3-32],or=er[tr+4-32],ar=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,ir),er[tr+2+0]=er[tr+1+32]=er[tr+0+64]=Ne(nr,ir,or),er[tr+3+0]=er[tr+2+32]=er[tr+1+64]=er[tr+0+96]=Ne(ir,or,ar),er[tr+3+32]=er[tr+2+64]=er[tr+1+96]=Ne(or,ar,sr),er[tr+3+64]=er[tr+2+96]=Ne(ar,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],ir=er[tr-1+64],or=er[tr-1-32],ar=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]=or+ar+1>>1,er[tr+1+0]=er[tr+2+64]=ar+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(ir,nr,rr),er[tr+0+64]=Ne(nr,rr,or),er[tr+0+32]=er[tr+1+96]=Ne(rr,or,ar),er[tr+1+32]=er[tr+2+96]=Ne(or,ar,sr),er[tr+2+32]=er[tr+3+96]=Ne(ar,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],ir=er[tr+2-32],or=er[tr+3-32],ar=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+ir+1>>1,er[tr+2+0]=er[tr+1+64]=ir+or+1>>1,er[tr+3+0]=er[tr+2+64]=or+ar+1>>1,er[tr+0+32]=Ne(rr,nr,ir),er[tr+1+32]=er[tr+0+96]=Ne(nr,ir,or),er[tr+2+32]=er[tr+1+96]=Ne(ir,or,ar),er[tr+3+32]=er[tr+2+96]=Ne(or,ar,sr),er[tr+3+64]=Ne(ar,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],ir=er[tr-1+64],or=er[tr-1+96];er[tr+0+0]=rr+nr+1>>1,er[tr+2+0]=er[tr+0+32]=nr+ir+1>>1,er[tr+2+32]=er[tr+0+64]=ir+or+1>>1,er[tr+1+0]=Ne(rr,nr,ir),er[tr+3+0]=er[tr+1+32]=Ne(nr,ir,or),er[tr+3+32]=er[tr+1+64]=Ne(ir,or,or),er[tr+3+64]=er[tr+2+64]=er[tr+0+96]=er[tr+1+96]=er[tr+2+96]=er[tr+3+96]=or}function Ie(er,tr){var rr=er[tr-1+0],nr=er[tr-1+32],ir=er[tr-1+64],or=er[tr-1+96],ar=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+ar+1>>1,er[tr+0+32]=er[tr+2+64]=nr+rr+1>>1,er[tr+0+64]=er[tr+2+96]=ir+nr+1>>1,er[tr+0+96]=or+ir+1>>1,er[tr+3+0]=Ne(sr,lr,cr),er[tr+2+0]=Ne(ar,sr,lr),er[tr+1+0]=er[tr+3+32]=Ne(rr,ar,sr),er[tr+1+32]=er[tr+3+64]=Ne(nr,rr,ar),er[tr+1+64]=er[tr+3+96]=Ne(ir,nr,rr),er[tr+1+96]=Ne(or,ir,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],ir=er[tr+0],or=3*(ir-nr)+Wr[1020+er[tr-2*rr]-er[tr+rr]],ar=Xr[112+(or+4>>3)];er[tr-rr]=Yr[255+nr+Xr[112+(or+3>>3)]],er[tr+0]=Yr[255+ir-ar]}function Te(er,tr,rr,nr){var ir=er[tr+0],or=er[tr+rr];return Jr[255+er[tr-2*rr]-er[tr-rr]]>nr||Jr[255+or-ir]>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,ir){var or=er[tr-3*rr],ar=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+ar-cr]>nr?0:Jr[255+er[tr-4*rr]-or]<=ir&&Jr[255+or-ar]<=ir&&Jr[255+ar-sr]<=ir&&Jr[255+dr-ur]<=ir&&Jr[255+ur-cr]<=ir&&Jr[255+cr-lr]<=ir}function ze(er,tr,rr,nr){var ir=2*nr+1;for(nr=0;16>nr;++nr)De(er,tr+nr,rr,ir)&&Re(er,tr+nr,rr)}function He(er,tr,rr,nr){var ir=2*nr+1;for(nr=0;16>nr;++nr)De(er,tr+nr*rr,1,ir)&&Re(er,tr+nr*rr,1)}function We(er,tr,rr,nr){var ir;for(ir=3;0<ir;--ir)ze(er,tr+=4*rr,rr,nr)}function Ve(er,tr,rr,nr){var ir;for(ir=3;0<ir;--ir)He(er,tr+=4,rr,nr)}function Ge(er,tr,rr,nr,ir,or,ar,sr){for(or=2*or+1;0<ir--;){if(Ue(er,tr,rr,or,ar))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,ir,or,ar,sr){for(or=2*or+1;0<ir--;){if(Ue(er,tr,rr,or,ar))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,ir,or){Ge(er,tr,rr,1,16,nr,ir,or)}function Xe(er,tr,rr,nr,ir,or){Ge(er,tr,1,rr,16,nr,ir,or)}function Ke(er,tr,rr,nr,ir,or){var ar;for(ar=3;0<ar;--ar)Ye(er,tr+=4*rr,rr,1,16,nr,ir,or)}function Ze(er,tr,rr,nr,ir,or){var ar;for(ar=3;0<ar;--ar)Ye(er,tr+=4,1,rr,16,nr,ir,or)}function $e(er,tr,rr,nr,ir,or,ar,sr){Ge(er,tr,ir,1,8,or,ar,sr),Ge(rr,nr,ir,1,8,or,ar,sr)}function Qe(er,tr,rr,nr,ir,or,ar,sr){Ge(er,tr,1,ir,8,or,ar,sr),Ge(rr,nr,1,ir,8,or,ar,sr)}function tn(er,tr,rr,nr,ir,or,ar,sr){Ye(er,tr+4*ir,ir,1,8,or,ar,sr),Ye(rr,nr+4*ir,ir,1,8,or,ar,sr)}function en(er,tr,rr,nr,ir,or,ar,sr){Ye(er,tr+4,1,ir,8,or,ar,sr),Ye(rr,nr+4,1,ir,8,or,ar,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,ir,or,ar){for(er=null==er?0:er[tr+0],tr=0;tr<ar;++tr)ir[or+tr]=er+rr[nr+tr]&255,er=ir[or+tr]}function hn(er,tr,rr,nr,ir,or,ar){var sr;if(null==er)cn(null,null,rr,nr,ir,or,ar);else for(sr=0;sr<ar;++sr)ir[or+sr]=er[tr+sr]+rr[nr+sr]&255}function ln(er,tr,rr,nr,ir,or,ar){if(null==er)cn(null,null,rr,nr,ir,or,ar);else{var sr,lr=er[tr+0],cr=lr,ur=lr;for(sr=0;sr<ar;++sr)cr=ur+(lr=er[tr+sr])-cr,ur=rr[nr+sr]+(-256&cr?0>cr?0:255:cr)&255,cr=lr,ir[or+sr]=ur}}function fn(er,tr,rr,nr){var ir=tr.width,or=tr.o;if(e(null!=er&&null!=tr),0>rr||0>=nr||rr+nr>or)return null;if(!er.Cc){if(null==er.ga){var ar;if(er.ga=new un,(ar=null==er.ga)||(ar=tr.width*tr.o,e(0==er.Gb.length),er.Gb=a(ar),er.Uc=0,null==er.Gb?ar=0:(er.mb=er.Gb,er.nb=er.Uc,er.rc=null,ar=1),ar=!ar),!ar){ar=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=ar.l;if(e(null!=sr&&null!=ur&&null!=tr),_i[0]=null,_i[1]=cn,_i[2]=hn,_i[3]=ln,ar.ca=ur,ar.tb=dr,ar.c=tr.width,ar.i=tr.height,e(0<ar.c&&0<ar.i),1>=cr)tr=0;else if(ar.$a=sr[lr+0]>>0&3,ar.Z=sr[lr+0]>>2&3,ar.Lc=sr[lr+0]>>4&3,lr=sr[lr+0]>>6&3,0>ar.$a||1<ar.$a||4<=ar.Z||1<ar.Lc||lr)tr=0;else if(Ar.put=dt,Ar.ac=ft,Ar.bc=pt,Ar.ma=ar,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,ar.$a)e:{e(1==ar.$a),tr=kt();t:for(;;){if(null==tr){tr=0;break e}if(e(null!=ar),ar.mc=tr,tr.c=ar.c,tr.i=ar.i,tr.l=ar.l,tr.l.ma=ar,tr.l.width=ar.c,tr.l.height=ar.i,tr.a=0,v(tr.m,sr,hr,pr),!Ft(ar.c,ar.i,1,tr,null))break t;if(1==tr.ab&&3==tr.gc[0].hc&&xt(tr.s)?(ar.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):(ar.ic=0,tr=It(tr,ar.c)),!tr)break t;tr=1;break e}ar.mc=null,tr=0}else tr=pr>=ar.c*ar.i;ar=!tr}if(ar)return null;1!=er.ga.Lc?er.Ga=0:nr=or-rr}e(null!=er.ga),e(rr+nr<=or);e:{if(tr=(sr=er.ga).c,or=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!=_i[sr.Z]),ar=0;ar<nr;++ar)_i[sr.Z](hr,pr,Ar,lr,cr,ur,tr),hr=cr,pr=ur,ur+=tr,lr+=tr;else for(ar=0;ar<nr;++ar)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!=(ar=sr.mc)),e(tr<=ar.i),ar.C>=tr)tr=1;else if(sr.ic||vn(),sr.ic){sr=ar.V,hr=ar.Ba,pr=ar.c;var fr=ar.i,gr=(Ar=1,lr=ar.$/pr,cr=ar.$%pr,ur=ar.m,dr=ar.s,ar.$),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(ar,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(ar,lr);gr<_r&&cr&vr&&(yr=wt(dr,cr,lr))}e(ur.h==x(ur))}_t(ar,lr>tr?tr:lr);break t}!Ar||ur.h&&gr<mr?(Ar=0,ar.a=ur.h?5:3):ar.$=gr,tr=Ar}else tr=St(ar,ar.V,ar.Ba,ar.c,ar.i,tr,Ct);if(!tr){nr=0;break e}}rr+nr>=or&&(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*ir}function dn(er,tr,rr,nr,ir,or){for(;0<ir--;){var ar,sr=er,lr=tr+(rr?1:0),cr=er,ur=tr+(rr?0:3);for(ar=0;ar<nr;++ar){var dr=cr[ur+4*ar];255!=dr&&(dr*=32897,sr[lr+4*ar+0]=sr[lr+4*ar+0]*dr>>23,sr[lr+4*ar+1]=sr[lr+4*ar+1]*dr>>23,sr[lr+4*ar+2]=sr[lr+4*ar+2]*dr>>23)}tr+=or}}function pn(er,tr,rr,nr,ir){for(;0<nr--;){var or;for(or=0;or<rr;++or){var ar=er[tr+2*or+0],sr=15&(cr=er[tr+2*or+1]),lr=4369*sr,cr=(240&cr|cr>>4)*lr>>16;er[tr+2*or+0]=(240&ar|ar>>4)*lr>>16&240|(15&ar|ar<<4)*lr>>16>>4&15,er[tr+2*or+1]=240&cr|sr}tr+=ir}}function gn(er,tr,rr,nr,ir,or,ar,sr){var lr,cr,ur=255;for(cr=0;cr<ir;++cr){for(lr=0;lr<nr;++lr){var dr=er[tr+lr];or[ar+4*lr]=dr,ur&=dr}tr+=rr,ar+=sr}return 255!=ur}function mn(er,tr,rr,nr,ir){var or;for(or=0;or<ir;++or)rr[nr+or]=er[tr+or]>>8}function vn(){Qr=dn,Dr=pn,jr=gn,Hr=mn}function bn(tr,rr,nr){er[tr]=function(er,tr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r){var vr,yr=_r-1>>1,br=ar[sr+0]|lr[cr+0]<<16,wr=ur[dr+0]|hr[pr+0]<<16;e(null!=er);var Sr=3*br+wr+131074>>2;for(rr(er[tr+0],255&Sr,Sr>>16,Ar,fr),null!=ir&&(Sr=3*wr+br+131074>>2,rr(ir[or+0],255&Sr,Sr>>16,gr,mr)),vr=1;vr<=yr;++vr){var xr=ar[sr+vr]|lr[cr+vr]<<16,kr=ur[dr+vr]|hr[pr+vr]<<16,Cr=br+xr+wr+kr+524296,Br=Cr+2*(xr+wr)>>3;Sr=Br+br>>1,br=(Cr=Cr+2*(br+kr)>>3)+xr>>1,rr(er[tr+2*vr-1],255&Sr,Sr>>16,Ar,fr+(2*vr-1)*nr),rr(er[tr+2*vr-0],255&br,br>>16,Ar,fr+(2*vr-0)*nr),null!=ir&&(Sr=Cr+wr>>1,br=Br+kr>>1,rr(ir[or+2*vr-1],255&Sr,Sr>>16,gr,mr+(2*vr-1)*nr),rr(ir[or+2*vr+0],255&br,br>>16,gr,mr+(2*vr+0)*nr)),br=xr,wr=kr}1&_r||(Sr=3*br+wr+131074>>2,rr(er[tr+_r-1],255&Sr,Sr>>16,Ar,fr+(_r-1)*nr),null!=ir&&(Sr=3*wr+br+131074>>2,rr(ir[or+_r-1],255&Sr,Sr>>16,gr,mr+(_r-1)*nr)))}}function yn(){vi[$r]=yi,vi[Zr]=Si,vi[Tn]=wi,vi[Un]=xi,vi[Qn]=ki,vi[Dn]=Ci,vi[Hn]=Bi,vi[Gn]=Si,vi[Vn]=xi,vi[zn]=ki,vi[Kn]=Ci}function wn(er){return er&~Fi?0>er?0:255:er>>Pi}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,ir){nr[ir+0]=Nn(er,rr),nr[ir+1]=Ln(er,tr,rr),nr[ir+2]=xn(er,tr)}function _n(er,tr,rr,nr,ir){nr[ir+0]=xn(er,tr),nr[ir+1]=Ln(er,tr,rr),nr[ir+2]=Nn(er,rr)}function Sn(er,tr,rr,nr,ir){var or=Ln(er,tr,rr);tr=or<<3&224|xn(er,tr)>>3,nr[ir+0]=248&Nn(er,rr)|or>>5,nr[ir+1]=tr}function Pn(er,tr,rr,nr,ir){var or=240&xn(er,tr)|15;nr[ir+0]=240&Nn(er,rr)|Ln(er,tr,rr)>>4,nr[ir+1]=or}function kn(er,tr,rr,nr,ir){nr[ir+0]=255,An(er,tr,rr,nr,ir+1)}function Fn(er,tr,rr,nr,ir){_n(er,tr,rr,nr,ir),nr[ir+3]=255}function In(er,tr,rr,nr,ir){An(er,tr,rr,nr,ir),nr[ir+3]=255}function Vt(er,tr){return 0>er?0:er>tr?tr:er}function Cn(tr,rr,nr){er[tr]=function(er,tr,ir,or,ar,sr,lr,cr,ur){for(var dr=cr+(-2&ur)*nr;cr!=dr;)rr(er[tr+0],ir[or+0],ar[sr+0],lr,cr),rr(er[tr+1],ir[or+0],ar[sr+0],lr,cr+nr),tr+=2,++or,++sr,cr+=2*nr;1&ur&&rr(er[tr+0],ir[or+0],ar[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,ir){switch(er>>>30){case 3:wr(tr,rr,nr,ir,0);break;case 2:Sr(tr,rr,nr,ir);break;case 1:kr(tr,rr,nr,ir)}}function On(er,tr){var rr,nr,ir=tr.M,or=tr.Nb,ar=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)ar[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<ir?ar[sr-1-32]=lr[cr-1-32]=ur[dr-1-32]=129:(i(ar,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(ar,sr+32*rr-4,ar,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<ir&&(r(ar,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=ar,_r=sr-32+16;for(0<ir&&(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=ar,_r=sr+ji[rr],Ai[hr.Ob[rr]](mr,_r),Bn(gr,fr,16*+rr,mr,_r)}else if(mr=jn(nr,ir,hr.Ob[0]),pi[mr](ar,sr),0!=gr)for(rr=0;16>rr;++rr,gr<<=2)Bn(gr,fr,16*+rr,ar,sr+ji[rr]);for(rr=hr.Gc,mr=jn(nr,ir,hr.Dd),fi[mr](lr,cr),fi[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)),ir<er.Ub-1&&(r(pr[Ar].y,0,ar,sr+480,16),r(pr[Ar].f,0,lr,cr+224,8),r(pr[Ar].ea,0,ur,dr+224,8)),rr=8*or*er.B,pr=er.sa,Ar=er.ta+16*nr+16*or*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,ar,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,ir,or,ar,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),Sr=1+C(_r,fr[0]+12);if(2147483648<=Sr*(_r=1+C(_r,fr[0]+15))){gr=3;break e}null!=br&&(br[0]=wr),null!=vr&&(vr[0]=Sr),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!=or&&(or[0]=!!(16&Ar)),null!=ar&&(ar[0]=fr),null!=sr&&(sr[0]=0),ar=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,Sr=22,e(null!=wr),e(null!=mr),_r=gr[0];var kr=mr[0];for(e(null!=vr),e(null!=br),vr[0]=null,yr[0]=null,br[0]=0;;){if(gr[0]=_r,mr[0]=kr,8>kr){gr=7;break e}var Cr=j(wr,_r+4);if(4294967286<Cr){gr=3;break e}var Br=8+Cr+1&-2;if(Sr+=Br,0<xr&&Sr>xr){gr=3;break e}if(!n(wr,_r,"VP8 ")||!n(wr,_r,"VP8L")){gr=0;break e}if(kr[0]<Br){gr=7;break e}n(wr,_r,"ALPH")||(vr[0]=wr,yr[0]=_r+8,br[0]=Cr),_r+=Br,kr-=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 "),Sr=!n(xr,wr,"VP8L"),e(null!=xr),e(null!=mr),e(null!=yr),e(null!=br),8>mr[0])gr=7;else{if(_r||Sr){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]=Sr}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),ar=[ar],Ar=[Ar],pr.xa){if(5>rr){gr=7;break}sr=ar,hr=Ar,fr=or,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:(ar&&(ar[0]=fr),sr&&(sr[0]=er),er=1))}if(!er)return 3;if(ar=ar[0],Ar=Ar[0],dr&&(cr[0]!=ar||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!=or&&(or[0]|=null!=pr.na&&0<pr.na.length),null!=nr&&(nr[0]=ar),null!=ir&&(ir[0]=Ar),0):gr}function En(er,tr,rr){var nr=tr.width,ir=tr.height,or=0,ar=0,sr=nr,lr=ir;if(tr.Da=null!=er&&0<er.Da,tr.Da&&(sr=er.cd,lr=er.bd,or=er.v,ar=er.j,11>rr||(or&=-2,ar&=-2),0>or||0>ar||0>=sr||0>=lr||or+sr>nr||ar+lr>ir))return 0;if(tr.v=or,tr.j=ar,tr.va=or+sr,tr.o=ar+lr,tr.U=sr,tr.T=lr,tr.da=null!=er&&0<er.da,tr.da){if(!E(sr,lr,rr=[er.ib],or=[er.hb]))return 0;tr.ib=rr[0],tr.hb=or[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*ir/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 ir=rr.cd,or=rr.bd,ar=-2&rr.v,sr=-2&rr.j;if(0>ar||0>sr||0>=ir||0>=or||ar+ir>er||sr+or>tr)return 2;er=ir,tr=or}if(rr.da){if(!E(er,tr,ir=[rr.ib],or=[rr.hb]))return 2;er=ir[0],tr=or[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){ar=or=ir=tr=0;var ur=(sr=lr*zi[er])*cr;if(11>er||(or=(cr+1)/2*(tr=(lr+1)/2),12==er&&(ar=(ir=lr)*cr)),null==(cr=a(ur+2*or+ar))){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=or,lr.ea=cr,lr.W=0+ur+or,lr.Db=tr,lr.Ed=or,12==er&&(lr.F=cr,lr.J=0+ur+2*or),lr.Tc=ar,lr.lb=ir)}if(tr=1,ir=nr.S,or=nr.width,ar=nr.height,ir>=$r&&13>ir)if(11>ir)er=nr.f.RGBA,tr&=(sr=Math.abs(er.A))*(ar-1)+or<=er.size,tr&=sr>=or*zi[ir],tr&=null!=er.eb;else{er=nr.f.kb,sr=(or+1)/2,ur=(ar+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*(ar-1)+or;tr&=lr*(ar-1)+or<=er.Fd,tr&=cr*(ur-1)+sr<=er.Cd,tr=(tr&=dr*(ur-1)+sr<=er.Ed)&lr>=or&cr>=sr&dr>=sr,tr&=null!=er.y,tr&=null!=er.f,tr&=null!=er.ea,12==ir&&(tr&=hr>=or,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,ir=32,or=8,ar=[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,Sr,xr,kr,Cr,Br,Er,Nr,Lr,Tr,Pr,Fr,Ur,Ir,Rr,Mr,Or,Qr,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],ei=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ri=[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],ni=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ii=null,oi=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ai=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],si=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],li=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ui=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],di=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],hi=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],pi=[],Ai=[],fi=[],gi=1,mi=2,_i=[],vi=[];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 yi=er.UpsampleRgbLinePair,wi=er.UpsampleBgrLinePair,Si=er.UpsampleRgbaLinePair,xi=er.UpsampleBgraLinePair,ki=er.UpsampleArgbLinePair,Ci=er.UpsampleRgba4444LinePair,Bi=er.UpsampleRgb565LinePair,Ei=16,Ni=1<<Ei-1,Li=-227,Ti=482,Pi=6,Fi=(256<<Pi)-1,Ui=0,Ii=a(256),Ri=a(256),Mi=a(256),Oi=a(256),Qi=a(Ti-Li),Di=a(Ti-Li);Cn("YuvToRgbRow",An,3),Cn("YuvToBgrRow",_n,3),Cn("YuvToRgbaRow",In,4),Cn("YuvToBgraRow",Fn,4),Cn("YuvToArgbRow",kn,4),Cn("YuvToRgba4444Row",Pn,2),Cn("YuvToRgb565Row",Sn,2);var ji=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Hi=[0,2,8],Gi=[8,7,6,4,4,2,2,2,1,1,1,1],Vi=1;this.WebPDecodeRGBA=function(er,tr,rr,nr,ir){var or=Zr,ar=new nn,sr=new ot;ar.ba=sr,sr.S=or,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!=ir&&(ir[0]=sr.height);e:{if(nr=new Gt,(ir=new rn).data=er,ir.w=tr,ir.ha=rr,ir.kd=1,tr=[0],e(null!=ir),(0==(er=Mn(ir.data,ir.w,ir.ha,null,null,null,tr,null,ir))||7==er)&&tr[0]&&(er=4),0==(tr=er)){if(e(null!=ar),nr.data=ir.data,nr.w=ir.w+ir.offset,nr.ha=ir.ha-ir.offset,nr.put=dt,nr.ac=ft,nr.bc=pt,nr.ma=ar,ir.xa){if(null==(er=kt())){ar=1;break e}if(function(er,tr){var rr=[0],nr=[0],ir=[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,ir)){er.a=3;break t}if(er.xb=mi,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,ar.Oa,ar.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!=(ir=rr.ma)),0!=nr.xb){if(nr.ca=ir.ba,nr.tb=ir.tb,e(null!=nr.ca),!En(ir.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;ir.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)){ar=1;break e}if(er.Fa=ir.na,er.P=ir.P,er.qc=ir.Sa,Kt(er,nr)){if(0==(tr=Rn(nr.width,nr.height,ar.Oa,ar.ba))){if(er.Aa=0,rr=ar.Oa,e(null!=(ir=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=ir.pb[cr]).lc&&(dr.ia=lr*Gi[0>dr.lc?0:dr.lc]>>3),ur|=dr.ia;ur&&(alert("todo:VP8InitRandom"),ir.ia=1)}ir.Ga=rr.Id,100<ir.Ga?ir.Ga=100:0>ir.Ga&&(ir.Ga=0)}Qt(er,nr)||(tr=er.a)}}else tr=er.a}0==tr&&null!=ar.Oa&&ar.Oa.fd&&(tr=qn(ar.ba))}ar=tr}or=0!=ar?null:11>or?sr.f.RGBA.eb:sr.f.kb.y}else or=null;return or};var zi=[3,4,3,4,4,2,2,4,4,4,2,1,1]});var tr=[0],rr=[0],nr=[],ir=new Et,or=er,ar=function(er,tr){var rr={},nr=0,ir=!1,or=0,ar=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 ir=0;ir<4;ir++)if(er[tr+ir]!="RIFF".charCodeAt(ir))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=ir?ar:tr-8,Ar.src_size=or+ur+8,nr++,ir&&(ir=!1,or=0,ar=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":ir=!0,or=dr+8,ar=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}}(or,0);ar.response=or,ar.rgbaoutput=!0,ar.dataurl=!1;var sr=ar.header?ar.header:null,lr=ar.frames?ar.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=ir.WebPDecodeRGBA(or,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,ir,cr,ur){var dr=5,hr=ar;switch(ur){case er.image_compression.FAST:dr=3,hr=or;break;case er.image_compression.MEDIUM:dr=6,hr=sr;break;case er.image_compression.SLOW:dr=9,hr=lr}tr=nr(tr,ir,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,ir,or,ar=er.length/tr,sr=new Uint8Array(er.length+ar),lr=ur(),cr=0;cr<ar;cr+=1){if(or=cr*tr,i=er.subarray(or,or+tr),nr)sr.set(nr(i,rr,ir),or+cr);else{for(var hr,pr=lr.length,Ar=[];hr<pr;hr+=1)Ar[hr]=lr[hr](i,rr,ir);var fr=dr(Ar.concat());sr.set(Ar[fr],or+cr)}ir=i}return sr},ir=function a(er){var tr=Array.apply([],er);return tr.unshift(0),tr},or=function o(er,tr){var rr,nr=[],ir=er.length;nr[0]=1;for(var or=0;or<ir;or+=1)rr=er[or-tr]||0,nr[or+1]=er[or]-rr+256&255;return nr},ar=function s(er,tr,rr){var nr,ir=[],or=er.length;ir[0]=2;for(var ar=0;ar<or;ar+=1)nr=rr&&rr[ar]||0,ir[ar+1]=er[ar]-nr+256&255;return ir},sr=function u(er,tr,rr){var nr,ir,or=[],ar=er.length;or[0]=3;for(var sr=0;sr<ar;sr+=1)nr=er[sr-tr]||0,ir=rr&&rr[sr]||0,or[sr+1]=er[sr]+256-(nr+ir>>>1)&255;return or},lr=function c(er,tr,rr){var nr,ir,or,ar,sr=[],lr=er.length;sr[0]=4;for(var c=0;c<lr;c+=1)nr=er[c-tr]||0,ir=rr&&rr[c]||0,or=rr&&rr[c-tr]||0,ar=cr(nr,ir,or),sr[c+1]=er[c]-ar+256&255;return sr},cr=function h(er,tr,rr){if(er===tr&&tr===rr)return er;var nr=Math.abs(tr-rr),ir=Math.abs(er-rr),or=Math.abs(er+tr-rr-rr);return nr<=ir&&nr<=or?er:ir<=or?tr:rr},ur=function l(){return[ir,or,ar,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,ir,or){var ar,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 Lm(rr)).imgData,sr=lr.bits,ar=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 Sr,xr=lr.pixelBitlength-lr.bits;for(vr=0,yr=0;vr<Ar;vr++){for(_r=pr[vr],Sr=0;Sr<xr;)gr[yr++]=_r>>>Sr&255,Sr+=lr.bits;fr[vr]=_r>>>Sr&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 kr=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[kr++]=_r>>>16&255;sr=8}or!==er.image_compression.NONE?(rr=tr(gr,lr.width*lr.colors,lr.colors,or),hr=tr(fr,lr.width,1,or)):(rr=gr,hr=fr,br=void 0)}if(3===lr.colorType&&(ar=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}(or);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:ir,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:ar}}}}(g.API),function(er){er.processGIF89A=function(tr,rr,nr,ir){var or=new jt(tr),ar=or.width,sr=or.height,lr=[];or.decodeAndBlitFrameRGBA(0,lr);var cr={data:lr,width:ar,height:sr},ur=new Ot(100).encode(cr,100);return er.processJPEG.call(this,ur,rr,nr,ir)},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),ir=this.datav.getUint8(this.pos++,!0),or=this.datav.getUint8(this.pos++,!0);this.palette[tr]={red:ir,green:nr,blue:rr,quad:or}}}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){mg.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,ir=0;ir<tr;ir++)for(var or=this.datav.getUint8(this.pos++,!0),ar=nr*this.width*4+8*ir*4,sr=0;sr<8&&8*ir+sr<this.width;sr++){var lr=this.palette[or>>7-sr&1];this.data[ar+4*sr]=lr.blue,this.data[ar+4*sr+1]=lr.green,this.data[ar+4*sr+2]=lr.red,this.data[ar+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,ir=0;ir<er;ir++){var or=this.datav.getUint8(this.pos++,!0),ar=nr*this.width*4+2*ir*4,sr=or>>4,lr=15&or,cr=this.palette[sr];if(this.data[ar]=cr.blue,this.data[ar+1]=cr.green,this.data[ar+2]=cr.red,this.data[ar+3]=255,2*ir+1>=this.width)break;cr=this.palette[lr],this.data[ar+4]=cr.blue,this.data[ar+4+1]=cr.green,this.data[ar+4+2]=cr.red,this.data[ar+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 ir=this.datav.getUint8(this.pos++,!0),or=rr*this.width*4+4*nr;if(ir<this.palette.length){var ar=this.palette[ir];this.data[or]=ar.red,this.data[or+1]=ar.green,this.data[or+2]=ar.blue,this.data[or+3]=255}else this.data[or]=255,this.data[or+1]=255,this.data[or+2]=255,this.data[or+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,ir=0;ir<this.width;ir++){var or=this.datav.getUint16(this.pos,!0);this.pos+=2;var ar=(or&tr)/tr*255|0,sr=(or>>5&tr)/tr*255|0,lr=(or>>10&tr)/tr*255|0,cr=or>>15?255:0,ur=nr*this.width*4+4*ir;this.data[ur]=lr,this.data[ur+1]=sr,this.data[ur+2]=ar,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 ir=this.bottom_up?nr:this.height-1-nr,or=0;or<this.width;or++){var ar=this.datav.getUint16(this.pos,!0);this.pos+=2;var sr=(ar&tr)/tr*255|0,lr=(ar>>5&rr)/rr*255|0,cr=(ar>>11)/tr*255|0,ur=ir*this.width*4+4*or;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),ir=this.datav.getUint8(this.pos++,!0),or=this.datav.getUint8(this.pos++,!0),ar=tr*this.width*4+4*rr;this.data[ar]=or,this.data[ar+1]=ir,this.data[ar+2]=nr,this.data[ar+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),ir=this.datav.getUint8(this.pos++,!0),or=this.datav.getUint8(this.pos++,!0),ar=this.datav.getUint8(this.pos++,!0),sr=tr*this.width*4+4*rr;this.data[sr]=or,this.data[sr+1]=ir,this.data[sr+2]=nr,this.data[sr+3]=ar}},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,ir){var or=new Mt(tr,!1),ar=or.width,sr=or.height,lr={data:or.getData(),width:ar,height:sr},cr=new Ot(100).encode(lr,100);return er.processJPEG.call(this,cr,rr,nr,ir)}}(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,ir){var or=new Et(tr,!1),ar=or.width,sr=or.height,lr={data:or.getData(),width:ar,height:sr},cr=new Ot(100).encode(lr,100);return er.processJPEG.call(this,cr,rr,nr,ir)}}(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.
|
||
* ====================================================================
|
||
*/
|
||
Sm=g.API,xm=Sm.getCharWidthsArray=function(er,tr){var rr,nr,ir=(tr=tr||{}).font||this.internal.getFont(),or=tr.fontSize||this.internal.getFontSize(),ar=tr.charSpace||this.internal.getCharSpace(),sr=tr.widths?tr.widths:ir.metadata.Unicode.widths,lr=sr.fof?sr.fof:1,cr=tr.kerning?tr.kerning:ir.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 ir.metadata.widthOfString?gr.push((ir.metadata.widthOfGlyph(ir.metadata.characterToGlyph(nr))+ar*(1e3/or)||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},km=Sm.getStringUnitWidth=function(er,tr){var rr=(tr=tr||{}).fontSize||this.internal.getFontSize(),nr=tr.font||this.internal.getFont(),ir=tr.charSpace||this.internal.getCharSpace();return Sm.processArabic&&(er=Sm.processArabic(er)),"function"==typeof nr.metadata.widthOfString?nr.metadata.widthOfString(er,rr,ir)/rr:xm.apply(this,arguments).reduce((function(er,tr){return er+tr}),0)},Cm=function Pt(er,tr,rr,nr){for(var ir=[],or=0,ar=er.length,sr=0;or!==ar&&sr+tr[or]<rr;)sr+=tr[or],or++;ir.push(er.slice(0,or));var lr=or;for(sr=0;or!==ar;)sr+tr[or]>nr&&(ir.push(er.slice(lr,or)),sr=0,lr=or),sr+=tr[or],or++;return lr!==or&&ir.push(er.slice(lr,or)),ir},Bm=function kt(er,tr,rr){rr||(rr={});var nr,ir,or,ar,sr,lr,cr,ur=[],dr=[ur],hr=rr.textIndent||0,pr=0,Ar=0,fr=er.split(" "),gr=xm.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=km.apply(this,[mr,rr])}for(or=0,ar=fr.length;or<ar;or++){var vr=0;if(nr=fr[or],lr&&"\n"==nr[0]&&(nr=nr.substr(1),vr=1),hr+pr+(Ar=(ir=xm.apply(this,[nr,rr])).reduce((function(er,tr){return er+tr}),0))>tr||vr){if(Ar>tr){for(sr=Cm.apply(this,[nr,ir,tr-(hr+pr),tr]),ur.push(sr.shift()),ur=[sr.pop()];sr.length;)dr.push([sr.shift()]);Ar=ir.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)},Sm.splitTextToSize=function(er,tr,rr){var nr,ir=(rr=rr||{}).fontSize||this.internal.getFontSize(),or=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 ar=1*this.internal.scaleFactor*tr/ir;or.textIndent=rr.textIndent?1*rr.textIndent*this.internal.scaleFactor/ir:0,or.lineIndent=rr.lineIndent;var sr,lr,cr=[];for(sr=0,lr=nr.length;sr<lr;sr++)cr=cr.concat(Bm.apply(this,[nr[sr],ar,or]));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={},ir=0;ir<tr.length;ir++)rr[tr[ir]]="0123456789abcdef"[ir],nr["0123456789abcdef"[ir]]=tr[ir];var or=function a(er){return"0x"+parseInt(er,10).toString(16)},ar=er.__fontmetrics__.compress=function(er){var tr,rr,ir,sr,lr=["{"];for(var cr in er){if(tr=er[cr],isNaN(parseInt(cr,10))?rr="'"+cr+"'":(cr=parseInt(cr,10),rr=(rr=or(cr).slice(2)).slice(0,-1)+nr[rr.slice(-1)]),"number"==typeof tr)tr<0?(ir=or(tr).slice(3),sr="-"):(ir=or(tr).slice(2),sr=""),ir=sr+ir.slice(0,-1)+nr[ir.slice(-1)];else{if("object"!=_typeof(tr))throw new Error("Don't know what to do with value type "+_typeof(tr)+".");ir=ar(tr)}lr.push(rr+ir)}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,ir,or,ar={},sr=1,lr=ar,cr=[],ur="",dr="",hr=er.length-1,pr=1;pr<hr;pr+=1)"'"==(or=er[pr])?tr?(ir=tr.join(""),tr=void 0):tr=[]:tr?tr.push(or):"{"==or?(cr.push([lr,ir]),lr={},ir=void 0):"}"==or?((nr=cr.pop())[0][nr[1]]=lr,ir=void 0,lr=nr[0]):"-"==or?sr=-1:void 0===ir?rr.hasOwnProperty(or)?(ur+=rr[or],ir=parseInt(ur,16)*sr,sr=1,ur=""):ur+=or:rr.hasOwnProperty(or)?(dr+=rr[or],lr[ir]=parseInt(dr,16)*sr,sr=1,ir=void 0,dr=""):dr+=or;return ar},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,ir=rr.font,or=rr.instance;if(!ir.isStandardFont){if(void 0===or)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ir.postScriptName+"').");if("string"!=typeof(nr=!1===or.existsFileInVFS(ir.postScriptName)?or.loadFile(ir.postScriptName):or.getFileFromVFS(ir.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ir.postScriptName+"').");!function(rr,nr){nr=/^\x00\x01\x00\x00/.test(nr)?tr(nr):tr(_g(nr)),rr.metadata=er.API.TTFFont.open(nr),rr.metadata.Unicode=rr.metadata.Unicode||{encoding:{},kerning:{},widths:[]},rr.metadata.glyIdsUsed=[0]}(ir,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(gg.canvg?Promise.resolve(gg.canvg):Promise.resolve().then((function(){return CT}))).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,ir,or,ar,sr){if(isNaN(tr)||isNaN(rr))throw mg.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(nr)||isNaN(ir))throw mg.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=ir;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,ir,ar,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 ir=0;ir<this.internal.pages[nr].length;ir++)this.internal.pages[nr][ir]=this.internal.pages[nr][ir].replace(tr,rr);return this},g.API.viewerPreferences=function(er,tr){var rr;er=er||{},tr=tr||!1;var nr,ir,or,ar={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(ar),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(ar)),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(ir in er)if(or=er[ir],f(sr,ir)&&void 0!==or){if("boolean"===rr[ir].type&&"boolean"==typeof or)rr[ir].value=or;else if("name"===rr[ir].type&&f(rr[ir].valueSet,or))rr[ir].value=or;else if("integer"===rr[ir].type&&Number.isInteger(or))rr[ir].value=or;else if("array"===rr[ir].type){for(cr=0;cr<or.length;cr+=1)if(nr=!0,1===or[cr].length&&"number"==typeof or[cr][0])lr.push(String(or[cr]-1));else if(or[cr].length>1){for(ur=0;ur<or[cr].length;ur+=1)"number"!=typeof or[cr][ur]&&(nr=!1);!0===nr&&lr.push([or[cr][0]-1,or[cr][1]-1].join(" "))}rr[ir].value="["+lr.join(" ")+"]"}else rr[ir].value=rr[ir].defaultValue;rr[ir].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>")),ir=unescape(encodeURIComponent("</x:xmpmeta>")),or=tr.length+rr.length+nr.length+e.length+ir.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+or+" >>"),this.internal.write("stream"),this.internal.write(e+tr+rr+nr+ir),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,ir=["","0","00","000","0000"],or=[""],ar=0,sr=er.length;ar<sr;++ar){if(rr=tr.metadata.characterToGlyph(er.charCodeAt(ar)),tr.metadata.glyIdsUsed.push(rr),tr.metadata.toUnicode[rr]=er.charCodeAt(ar),-1==nr.indexOf(rr)&&(nr.push(rr),nr.push([parseInt(tr.metadata.widthOfGlyph(rr),10)])),"0"==rr)return or.join("");rr=rr.toString(16),or.push(ir[4-rr.length],rr)}return or.join("")},nr=function r(er){var tr,rr,r,nr,ir,or,ar;for(ir="/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=[],or=0,ar=(rr=Object.keys(er).sort((function(er,tr){return er-tr}))).length;or<ar;or++)tr=rr[or],r.length>=100&&(ir+="\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&&(ir+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),ir+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};tr.events.push(["putFont",function(tr){!function(tr){var rr=tr.font,ir=tr.out,or=tr.newObject,ar=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=or();ar({data:ur,addLength1:!0}),ir("endobj");var pr=or();ar({data:nr(rr.metadata.toUnicode),addLength1:!0}),ir("endobj");var Ar=or();ir("<<"),ir("/Type /FontDescriptor"),ir("/FontName /"+sr(rr.fontName)),ir("/FontFile2 "+hr+" 0 R"),ir("/FontBBox "+er.API.PDFObject.convert(rr.metadata.bbox)),ir("/Flags "+rr.metadata.flags),ir("/StemV "+rr.metadata.stemV),ir("/ItalicAngle "+rr.metadata.italicAngle),ir("/Ascent "+rr.metadata.ascender),ir("/Descent "+rr.metadata.decender),ir("/CapHeight "+rr.metadata.capHeight),ir(">>"),ir("endobj");var fr=or();ir("<<"),ir("/Type /Font"),ir("/BaseFont /"+sr(rr.fontName)),ir("/FontDescriptor "+Ar+" 0 R"),ir("/W "+er.API.PDFObject.convert(lr)),ir("/CIDToGIDMap /Identity"),ir("/DW 1000"),ir("/Subtype /CIDFontType2"),ir("/CIDSystemInfo"),ir("<<"),ir("/Supplement 0"),ir("/Registry (Adobe)"),ir("/Ordering ("+rr.encoding+")"),ir(">>"),ir(">>"),ir("endobj"),rr.objectNumber=or(),ir("<<"),ir("/Type /Font"),ir("/Subtype /Type0"),ir("/ToUnicode "+pr+" 0 R"),ir("/BaseFont /"+sr(rr.fontName)),ir("/Encoding /"+rr.encoding),ir("/DescendantFonts ["+fr+" 0 R]"),ir(">>"),ir("endobj"),rr.isAlreadyPutted=!0}}(tr)}]),tr.events.push(["putFont",function(tr){!function(tr){var rr=tr.font,ir=tr.out,or=tr.newObject,ar=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=or();ar({data:cr,addLength1:!0}),ir("endobj");var hr=or();ar({data:nr(rr.metadata.toUnicode),addLength1:!0}),ir("endobj");var pr=or();ir("<<"),ir("/Descent "+rr.metadata.decender),ir("/CapHeight "+rr.metadata.capHeight),ir("/StemV "+rr.metadata.stemV),ir("/Type /FontDescriptor"),ir("/FontFile2 "+dr+" 0 R"),ir("/Flags 96"),ir("/FontBBox "+er.API.PDFObject.convert(rr.metadata.bbox)),ir("/FontName /"+sr(rr.fontName)),ir("/ItalicAngle "+rr.metadata.italicAngle),ir("/Ascent "+rr.metadata.ascender),ir(">>"),ir("endobj"),rr.objectNumber=or();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));ir("<</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)+">>"),ir("endobj"),rr.isAlreadyPutted=!0}}(tr)}]);var ir=function i(er){var tr,nr=er.text||"",i=er.x,ir=er.y,or=er.options||{},ar=er.mutex||{},sr=ar.pdfEscape,lr=ar.activeFontKey,cr=ar.fonts,ur=lr,dr="",hr=0,pr="",Ar=cr[ur].encoding;if("Identity-H"!==cr[ur].encoding)return{text:nr,x:i,y:ir,options:or,mutex:ar};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])),ar.isHex=!0,{text:fr,x:i,y:ir,options:or,mutex:ar}};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 or=0;for(or=0;or<tr.length;or+=1)Array.isArray(tr[or])&&3===tr[or].length?rr.push([ir(Object.assign({},nr,{text:tr[or][0]})).text,tr[or][1],tr[or][2]]):rr.push(ir(Object.assign({},nr,{text:tr[or]})).text);er.text=rr}else er.text=ir(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,ir,or,ar,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,ar,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=ar[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?ar[sr-1]:"B")&&sr+1<tr.length&&"EN"===tr[sr+1]?"EN":"N";break;case"ET":if(sr>0&&"EN"===ar[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(ir&&!or){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":ar[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,ir){var or,ar,sr,lr,cr,pr=-1,Ar=er.length,fr=0,vr=[],br=mr?dr:ur,L=[];for(gr=!1,rr=!1,nr=!1,ar=0;ar<Ar;ar++)L[ar]=_r(er[ar]);for(sr=0;sr<Ar;sr++){if(cr=fr,vr[sr]=yr(er,L,vr,sr),or=240&(fr=br[cr][hr[vr[sr]]]),fr&=15,tr[sr]=lr=br[fr][5],or>0)if(16===or){for(ar=pr;ar<sr;ar++)tr[ar]=1;pr=-1}else pr=-1;if(br[fr][6])-1===pr&&(pr=sr);else if(pr>-1){for(ar=pr;ar<sr;ar++)tr[ar]=lr;pr=-1}"B"===L[sr]&&(tr[sr]=0),ir.hiLevel|=lr}nr&&function(er,tr,rr){for(var nr=0;nr<rr;nr++)if("S"===er[nr]){tr[nr]=mr;for(var ir=nr-1;ir>=0&&"WS"===er[ir];ir--)tr[ir]=mr}}(L,tr,Ar)},Sr=function x(er,tr,nr,ir,or){if(!(or.hiLevel<er)){if(1===er&&1===mr&&!rr)return tr.reverse(),void(nr&&nr.reverse());for(var ar,sr,lr,cr,ur=tr.length,dr=0;dr<ur;){if(ir[dr]>=er){for(lr=dr+1;lr<ur&&ir[lr]>=er;)lr++;for(cr=dr,sr=lr-1;cr<sr;cr++,sr--)ar=tr[cr],tr[cr]=tr[sr],tr[sr]=ar,nr&&(ar=nr[cr],nr[cr]=nr[sr],nr[sr]=ar);dr=lr}dr++}}},xr=function A(er,tr,rr){var nr=er.split(""),ir={hiLevel:mr};return rr||(rr=[]),wr(nr,rr,ir),function(er,tr,rr){if(0!==rr.hiLevel&&lr)for(var nr,ir=0;ir<er.length;ir++)1===tr[ir]&&(nr=Ar.indexOf(er[ir]))>=0&&(er[ir]=Ar[nr+1])}(nr,rr,ir),Sr(2,nr,tr,rr,ir),Sr(1,nr,tr,rr,ir),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===or&&(or=vr(er)),void 0===sr&&(sr=vr(er))}(er,tr),ir||!ar||sr)if(ir&&ar&&or^sr)mr=or?1:0,er=br(er,tr,rr);else if(!ir&&ar&&sr)mr=or?1:0,er=xr(er,tr,rr),er=br(er,tr);else if(!ir||or||ar||sr){if(ir&&!ar&&or^sr)er=br(er,tr),or?(mr=0,er=xr(er,tr,rr)):(mr=1,er=xr(er,tr,rr),er=br(er,tr));else if(ir&&or&&!ar&&sr)mr=1,er=xr(er,tr,rr),er=br(er,tr);else if(!ir&&!ar&&or^sr){var nr=lr;or?(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=or?1:0,er=xr(er,tr,rr);return er},this.__bidiEngine__.setOptions=function(er){er&&(ir=er.isInputVisual,ar=er.isOutputVisual,or=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||{}),ir=(er.mutex,nr.lang,[]);if(nr.isInputVisual="boolean"!=typeof nr.isInputVisual||nr.isInputVisual,rr.setOptions(nr),"[object Array]"===Object.prototype.toString.call(tr)){var or=0;for(ir=[],or=0;or<tr.length;or+=1)"[object Array]"===Object.prototype.toString.call(tr[or])?ir.push([rr.doBidiReorder(tr[or][0]),tr[or][1],tr[or][2]]):ir.push([rr.doBidiReorder(tr[or])]);er.text=ir}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 Pm(er),this.contents.pos=4,"ttcf"===tr.readString(4))throw new Error("TTCF not supported.");tr.pos=0,this.parse(),this.subset=new Jm(this),this.registerTTF()}return t.open=function(er){return new t(er)},t.prototype.parse=function(){return this.directory=new Fm(this.contents),this.head=new Rm(this),this.name=new Gm(this),this.cmap=new Om(this),this.toUnicode={},this.hhea=new Qm(this),this.maxp=new Vm(this),this.hmtx=new zm(this),this.post=new jm(this),this.os2=new Dm(this),this.loca=new Ym(this),this.glyf=new qm(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,ir;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var tr,rr,nr,ir;for(ir=[],tr=0,rr=(nr=this.bbox).length;tr<rr;tr++)er=nr[tr],ir.push(Math.round(er*this.scaleFactor));return ir}.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===(ir=this.familyClass)||2===ir||3===ir||4===ir||5===ir||7===ir,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,ir,or,ar;for(or=0,ir=0,ar=(er=""+er).length;0<=ar?ir<ar:ir>ar;ir=0<=ar?++ir:--ir)nr=er.charCodeAt(ir),or+=this.widthOfGlyph(this.characterToGlyph(nr))+rr*(1e3/tr)||0;return or*(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 Tm,Pm=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,ir,or,ar,sr;return er=this.readByte(),tr=this.readByte(),rr=this.readByte(),nr=this.readByte(),ir=this.readByte(),or=this.readByte(),ar=this.readByte(),sr=this.readByte(),128&er?-1*(72057594037927940*(255^er)+281474976710656*(255^tr)+1099511627776*(255^rr)+4294967296*(255^nr)+16777216*(255^ir)+65536*(255^or)+256*(255^ar)+(255^sr)+1):72057594037927940*er+281474976710656*tr+1099511627776*rr+4294967296*nr+16777216*ir+65536*or+256*ar+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,ir;for(ir=[],rr=0,nr=er.length;rr<nr;rr++)tr=er[rr],ir.push(this.writeByte(tr));return ir},t}(),Fm=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,ir,or,ar,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),or=Math.floor(ur/sr),cr=16*hr-ur,(nr=new Pm).writeInt(this.scalarType),nr.writeShort(hr),nr.writeShort(ur),nr.writeShort(or),nr.writeShort(cr),ir=16*hr,lr=nr.pos+ir,ar=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&&(ar=lr),lr+=dr.length;lr%4;)pr.push(0),lr++;return nr.write(pr),rr=2981146554-er(nr.data),nr.pos=ar+8,nr.writeUInt32(rr),nr.data},er=function t(er){var tr,rr,nr,ir;for(er=Km.call(er);er.length%4;)er.push(0);for(nr=new Pm(er),rr=0,tr=0,ir=er.length;tr<ir;tr=tr+=4)rr+=nr.readUInt32();return 4294967295&rr},e}(),Um={}.hasOwnProperty,Im=function Ut(er,tr){for(var rr in tr)Um.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};Tm=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 Rm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Im(e,Tm),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 Pm).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}(),Mm=function(){function t(er,tr){var rr,nr,ir,or,ar,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,ir=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,ar=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=ir.length;gr<_r;sr=++gr)for(fr=ir[sr],rr=mr=pr=Ar[sr];pr<=fr?mr<=fr:mr>=fr;rr=pr<=fr?++mr:--mr)0===cr[sr]?or=rr+lr[sr]:0!==(or=ar[cr[sr]/2+(rr-pr)-(dr-sr)]||0)&&(or+=lr[sr]),this.codeMap[rr]=65535&or}er.pos=ur}return t.encode=function(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr,Cr,Br,Er,Nr,Lr,Tr,Pr,Fr,Ur,Ir,Rr,Mr,Or,Qr,Dr,jr,Hr,Gr,Vr,zr,Kr,qr;switch(Nr=new Pm,or=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},ir={},Lr=0,Ur=or.length;Lr<Ur;Lr++)null==mr[Vr=er[nr=or[Lr]]]&&(mr[Vr]=++Ar),ir[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:ir,subtable:Nr.data,maxGlyphID:Ar+1};case"unicode":for(Br=[],ur=[],_r=0,mr={},rr={},gr=lr=null,Tr=0,Ir=or.length;Tr<Ir;Tr++)null==mr[yr=er[nr=or[Tr]]]&&(mr[yr]=++_r),rr[nr]={old:yr,new:mr[yr]},ar=mr[yr]-nr,null!=gr&&ar===lr||(gr&&ur.push(gr),Br.push(nr),lr=ar),gr=nr;for(gr&&ur.push(gr),ur.push(65535),Br.push(65535),kr=2*(xr=Br.length),Sr=2*Math.pow(Math.log(xr)/Math.LN2,2),dr=Math.log(Sr/2)/Math.LN2,wr=2*xr-Sr,sr=[],br=[],hr=[],pr=Pr=0,Rr=Br.length;Pr<Rr;pr=++Pr){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(kr),Nr.writeUInt16(Sr),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,Or=Br.length;Gr<Or;Gr++)nr=Br[Gr],Nr.writeUInt16(nr);for(zr=0,Qr=sr.length;zr<Qr;zr++)ar=sr[zr],Nr.writeUInt16(ar);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}(),Om=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Im(e,Tm),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 Mm(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=Mm.encode(er,tr),(nr=new Pm).writeUInt16(0),nr.writeUInt16(1),rr.table=nr.data.concat(rr.subtable),rr},e}(),Qm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Im(e,Tm),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}(),Dm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Im(e,Tm),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}(),jm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Im(e,Tm),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 ir;for(rr=er.readUInt16(),this.glyphNameIndex=[],ir=0;0<=rr?ir<rr:ir>rr;ir=0<=rr?++ir:--ir)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=[],ir=tr=0,rr=this.file.maxp.numGlyphs;0<=rr?tr<rr:tr>rr;ir=0<=rr?++tr:--tr)nr.push(er.readUInt32());return nr}.call(this)}},e}(),Hm=function Jt(er,tr){this.raw=er,this.length=er.length,this.platformID=tr.platformID,this.encodingID=tr.encodingID,this.languageID=tr.languageID},Gm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Im(e,Tm),e.prototype.tag="name",e.prototype.parse=function(er){var tr,rr,nr,ir,or,ar,sr,lr,cr,ur,dr;for(er.pos=this.offset,er.readShort(),tr=er.readShort(),ar=er.readShort(),rr=[],ir=0;0<=tr?ir<tr:ir>tr;ir=0<=tr?++ir:--ir)rr.push({platformID:er.readShort(),encodingID:er.readShort(),languageID:er.readShort(),nameID:er.readShort(),length:er.readShort(),offset:this.offset+ar+er.readShort()});for(sr={},ir=cr=0,ur=rr.length;cr<ur;ir=++cr)nr=rr[ir],er.pos=nr.offset,lr=er.readString(nr.length),or=new Hm(lr,nr),null==sr[dr=nr.nameID]&&(sr[dr]=[]),sr[nr.nameID].push(or);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}(),Vm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Im(e,Tm),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}(),zm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Im(e,Tm),e.prototype.tag="hmtx",e.prototype.parse=function(er){var tr,rr,nr,ir,or,ar,sr;for(er.pos=this.offset,this.metrics=[],tr=0,ar=this.file.hhea.numberOfMetrics;0<=ar?tr<ar:tr>ar;tr=0<=ar?++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,ir;for(ir=[],tr=rr=0;0<=nr?rr<nr:rr>nr;tr=0<=nr?++rr:--rr)ir.push(er.readInt16());return ir}(),this.widths=function(){var er,tr,rr,nr;for(nr=[],er=0,tr=(rr=this.metrics).length;er<tr;er++)ir=rr[er],nr.push(ir.advance);return nr}.call(this),rr=this.widths[this.widths.length-1],sr=[],tr=or=0;0<=nr?or<nr:or>nr;tr=0<=nr?++or:--or)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}(),Km=[].slice,qm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Im(e,Tm),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(er){var tr,rr,nr,ir,or,ar,sr,lr,cr,ur;return er in this.cache?this.cache[er]:(ir=this.file.loca,tr=this.file.contents,rr=ir.indexOf(er),0===(nr=ir.lengthOf(er))?this.cache[er]=null:(tr.pos=this.offset+rr,or=(ar=new Pm(tr.read(nr))).readShort(),lr=ar.readShort(),ur=ar.readShort(),sr=ar.readShort(),cr=ar.readShort(),this.cache[er]=-1===or?new Xm(ar,lr,ur,sr,cr):new Wm(ar,or,lr,ur,sr,cr),this.cache[er]))},e.prototype.encode=function(er,tr,rr){var nr,ir,or,ar,sr;for(or=[],ir=[],ar=0,sr=tr.length;ar<sr;ar++)nr=er[tr[ar]],ir.push(or.length),nr&&(or=or.concat(nr.encode(rr)));return ir.push(or.length),{table:or,offsets:ir}},e}(),Wm=function(){function t(er,tr,rr,nr,ir,or){this.raw=er,this.numberOfContours=tr,this.xMin=rr,this.yMin=nr,this.xMax=ir,this.yMax=or,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Xm=function(){function t(er,tr,rr,nr,ir){var or,ar;for(this.raw=er,this.xMin=tr,this.yMin=rr,this.xMax=nr,this.yMax=ir,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],or=this.raw;ar=or.readShort(),this.glyphOffsets.push(or.pos),this.glyphIDs.push(or.readUInt16()),32&ar;)or.pos+=1&ar?4:2,128&ar?or.pos+=8:64&ar?or.pos+=4:8&ar&&(or.pos+=2)}return t.prototype.encode=function(){var er,tr,rr;for(tr=new Pm(Km.call(this.raw.data)),er=0,rr=this.glyphIDs.length;er<rr;++er)tr.pos=this.glyphOffsets[er];return tr.data},t}(),Ym=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return Im(e,Tm),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,ir=0,or=0;or<rr.length;++or)if(rr[or]=nr,ir<tr.length&&tr[ir]==or){++ir,rr[or]=nr;var ar=this.offsets[or],sr=this.offsets[or+1]-ar;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}(),Jm=function(){function t(er){this.font=er,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var er,tr,rr,nr,ir;for(tr in nr=this.font.cmap.tables[0].codeMap,er={},ir=this.subset)rr=ir[tr],er[tr]=nr[rr];return er},t.prototype.glyphsFor=function(er){var tr,rr,nr,ir,or,ar,sr;for(nr={},or=0,ar=er.length;or<ar;or++)nr[ir=er[or]]=this.font.glyf.glyphFor(ir);for(ir in tr=[],nr)(null!=(rr=nr[ir])?rr.compound:void 0)&&tr.push.apply(tr,rr.glyphIDs);if(tr.length>0)for(ir in sr=this.glyphsFor(tr))rr=sr[ir],nr[ir]=rr;return nr},t.prototype.encode=function(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr;for(nr in rr=Om.encode(this.generateCmap(),"unicode"),or=this.glyphsFor(er),hr={0:0},gr=rr.charMap)hr[(sr=gr[nr]).old]=sr.new;for(pr in dr=rr.maxGlyphID,or)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++)ar=ur[er],rr.push(cr[ar]);return rr}(),ir=this.font.glyf.encode(or,Ar,hr),lr=this.font.loca.encode(ir.offsets,Ar),fr={cmap:this.font.cmap.raw(),glyf:ir.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,ir,or;if(Array.isArray(tr))return"["+function(){var er,nr,ir;for(ir=[],er=0,nr=tr.length;er<nr;er++)rr=tr[er],ir.push(e.convert(rr));return ir}().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 ir=["<<"],tr)or=tr[nr],ir.push("/"+nr+" "+e.convert(or));return ir.push(">>"),ir.join("\n")}return""+tr},e}(),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2012 chick307 <chick307@gmail.com>
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er,tr){er.API.adler32cs=function(){var er,tr,rr,nr,ir,or="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,ar=null,sr=function(){if(!or)return function(){return!1};try{var er={};"function"==typeof er.Buffer&&(ar=er.Buffer)}catch(er){}return function(er){return er instanceof ArrayBuffer||null!==ar&&er instanceof ar}}(),lr=null!==ar?function(er){return new ar(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,ir=tr.length;i<ir;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,ir=0,a=tr.length;ir<a;ir++)nr=(nr+(rr=(rr+tr[ir])%65521))%65521;return(nr<<16|rr)>>>0},dr={},hr=dr.Adler32=((ir=(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=ir,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=ir,tr),or&&(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=ir,rr)),ir.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)},ir.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)},or&&(ir.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)}),ir.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)},or&&(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}()}(g),_export({target:"Array",proto:!0,forced:uA!==[].lastIndexOf},{lastIndexOf:uA}),_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 $m={}.hasOwnProperty,Zm=/[ -,\.\/:-@\[-\^`\{-~]/,e_=/[ -,\.\/:-@\[\]\^`\{-~]/,t_=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,r_=function cssesc(er,tr){"single"!=(tr=function merge(er,tr){if(!er)return tr;var rr={};for(var nr in tr)rr[nr]=$m.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,ir=er.charAt(0),or="",ar=0,sr=er.length;ar<sr;){var lr=er.charAt(ar++),cr=lr.charCodeAt(),ur=void 0;if(cr<32||cr>126){if(cr>=55296&&cr<=56319&&ar<sr){var dr=er.charCodeAt(ar++);56320==(64512&dr)?cr=((1023&cr)<<10)+(1023&dr)+65536:ar--}ur="\\"+cr.toString(16).toUpperCase()+" "}else ur=tr.escapeEverything?Zm.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&&e_.test(lr)?"\\"+lr:lr;or+=ur}return nr&&(/^-[-\d]/.test(or)?or="\\-"+or.slice(1):/\d/.test(ir)&&(or="\\3"+ir+" "+or.slice(1))),or=or.replace(t_,(function(er,tr,rr){return tr&&tr.length%2?er:(tr||"")+rr})),!nr&&tr.wrap?rr+or+rr:or};r_.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},r_.version="3.0.0";var n_=r_,i_=/[a-z0-9_-]/i,o_=/[\s\t]/,a_=function parse(er){for(var tr,rr,nr=!0,ir=0,or="",ar=0,sr=[];;){if(rr=er[ar],0===ir){if(!rr&&nr)break;if(!rr&&!nr)throw new Error("Parse error");if('"'===rr||"'"===rr)tr=rr,ir=1,nr=!1;else if(o_.test(rr));else{if(!i_.test(rr))throw new Error("Parse error");ir=3,nr=!1,ar--}}else if(1===ir){if(!rr)throw new Error("Parse Error");"\\"===rr?ir=2:rr===tr?(sr.push(or),or="",ir=4):or+=rr}else if(2===ir){if(rr!==tr&&"\\"!==rr)throw new Error("Parse error");or+=rr,ir=1}else if(3===ir){if(!rr){sr.push(or);break}if(i_.test(rr))or+=rr;else if(","===rr)sr.push(or),or="",ir=0;else{if(!o_.test(rr))throw new Error("Parse error");ir=5}}else if(5===ir){if(!rr){sr.push(or);break}if(i_.test(rr))or+=" "+rr,ir=3;else if(","===rr)sr.push(or),or="",ir=0;else if(!o_.test(rr))throw new Error("Parse error")}else if(4===ir){if(!rr)break;if(","===rr)ir=0;else if(!o_.test(rr))throw new Error("Parse error")}ar++}return sr},s_={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},l_=[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&&l_.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,ir=er.max,or=!1,ar=!1,sr=!1,lr=!1;if(nr>=ir)er.err="SvgPath: missed param (at pos "+nr+")";else if(43!==(tr=er.path.charCodeAt(nr))&&45!==tr||(tr=++nr<ir?er.path.charCodeAt(nr):0),isDigit(tr)||46===tr){if(46!==tr){if(or=48===tr,tr=++nr<ir?er.path.charCodeAt(nr):0,or&&nr<ir&&tr&&isDigit(tr))return void(er.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+rr+")");for(;nr<ir&&isDigit(er.path.charCodeAt(nr));)nr++,ar=!0;tr=nr<ir?er.path.charCodeAt(nr):0}if(46===tr){for(lr=!0,nr++;isDigit(er.path.charCodeAt(nr));)nr++,sr=!0;tr=nr<ir?er.path.charCodeAt(nr):0}if(101===tr||69===tr){if(lr&&!ar&&!sr)return void(er.err="SvgPath: invalid float exponent (at pos "+nr+")");if(43!==(tr=++nr<ir?er.path.charCodeAt(nr):0)&&45!==tr||nr++,!(nr<ir&&isDigit(er.path.charCodeAt(nr))))return void(er.err="SvgPath: invalid float exponent (at pos "+nr+")");for(;nr<ir&&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>=s_[rr]&&(er.result.push([tr].concat(nr.splice(0,s_[rr]))),s_[rr]););}function scanSegment(er){var tr,rr,nr,ir,or,ar=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(ir=s_[er.path[er.index].toLowerCase()],er.index++,skipSpaces(er),er.data=[],ir){for(nr=!1;;){for(or=ir;or>0;or--){if(!rr||3!==or&&4!==or?scanParam(er):scanFlag(er),er.err.length)return;er.data.push(er.param),skipSpaces(er),nr=!1,er.index<ar&&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,ir,or;return 0!==er&&(this.translate(tr,rr),nr=er*Math.PI/180,ir=Math.cos(nr),or=Math.sin(nr),this.queue.push([ir,or,-or,ir,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 c_=Matrix,u_={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},d_=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,h_=/[\s,]+/,p_=2*Math.PI;function unit_vector_angle(er,tr,rr,nr){var ir=er*rr+tr*nr;return ir>1&&(ir=1),ir<-1&&(ir=-1),(er*nr-tr*rr<0?-1:1)*Math.acos(ir)}function approximate_unit_arc(er,tr){var rr=4/3*Math.tan(tr/4),nr=Math.cos(er),ir=Math.sin(er),or=Math.cos(er+tr),ar=Math.sin(er+tr);return[nr,ir,nr-ir*rr,ir+nr*rr,or+ar*rr,ar-or*rr,or,ar]}var A_=function a2c(er,tr,rr,nr,ir,or,ar,sr,lr){var cr=Math.sin(lr*p_/360),ur=Math.cos(lr*p_/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===ar||0===sr)return[];ar=Math.abs(ar),sr=Math.abs(sr);var pr=dr*dr/(ar*ar)+hr*hr/(sr*sr);pr>1&&(ar*=Math.sqrt(pr),sr*=Math.sqrt(pr));var Ar=function get_arc_center(er,tr,rr,nr,ir,or,ar,sr,lr,cr){var ur=cr*(er-rr)/2+lr*(tr-nr)/2,dr=-lr*(er-rr)/2+cr*(tr-nr)/2,hr=ar*ar,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)*(ir===or?-1:1))*ar/sr*dr,_r=gr*-sr/ar*ur,vr=cr*mr-lr*_r+(er+rr)/2,yr=lr*mr+cr*_r+(tr+nr)/2,br=(ur-mr)/ar,wr=(dr-_r)/sr,Sr=(-ur-mr)/ar,xr=(-dr-_r)/sr,kr=unit_vector_angle(1,0,br,wr),Cr=unit_vector_angle(br,wr,Sr,xr);return 0===or&&Cr>0&&(Cr-=p_),1===or&&Cr<0&&(Cr+=p_),[vr,yr,kr,Cr]}(er,tr,rr,nr,ir,or,ar,sr,cr,ur),fr=[],gr=Ar[2],mr=Ar[3],_r=Math.max(Math.ceil(Math.abs(mr)/(p_/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],ir=ur*(rr*=ar)-cr*(nr*=sr),or=cr*rr+ur*nr;er[tr+0]=ir+Ar[0],er[tr+1]=or+Ar[1]}return er}))},f_=1e-10,g_=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*g_),rr=Math.sin(this.ax*g_),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)],ir=nr[0]*nr[0]+nr[2]*nr[2],or=nr[1]*nr[1]+nr[3]*nr[3],ar=((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=(ir+or)/2;if(ar<f_*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+(ar=Math.sqrt(ar))/2,ur=sr-ar/2;return this.ax=Math.abs(lr)<f_&&Math.abs(cr-or)<f_?90:180*Math.atan(Math.abs(lr)>Math.abs(cr-or)?(cr-ir)/lr:lr/(cr-or))/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<f_*this.ry||this.ry<f_*this.rx};var m_=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 c_().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,ir,or,ar){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(or,nr[1],!1))[0]===er.calc(or,ar,!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],ar,!1))[1]===er.calc(or,ar,!1)[1]?["H",sr[0]]:["L",sr[0],sr[1]];break;case"a":case"A":var dr=er.toArray(),hr=m_(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]===or&&nr[7]===ar||"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=ir>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[ir]=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=c_(),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(c_().translate(er,tr||0)),this},SvgPath.prototype.scale=function(er,tr){return this.__stack.push(c_().scale(er,tr||0===tr?tr:er)),this},SvgPath.prototype.rotate=function(er,tr,rr){return this.__stack.push(c_().rotate(er,tr||0,rr||0)),this},SvgPath.prototype.skewX=function(er){return this.__stack.push(c_().skewX(er)),this},SvgPath.prototype.skewY=function(er){return this.__stack.push(c_().skewY(er)),this},SvgPath.prototype.matrix=function(er){return this.__stack.push(c_().matrix(er)),this},SvgPath.prototype.transform=function(er){return er.trim()?(this.__stack.push(function transformParse(er){var tr,rr,nr=new c_;return er.split(d_).forEach((function(er){if(er.length)if(void 0===u_[er])switch(rr=er.split(h_).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,ir=0,or=0;return er=er||0,this.__evaluateStack(),this.segments.forEach((function(ar){var sr=ar[0].toLowerCase()===ar[0];switch(ar[0]){case"H":case"h":return sr&&(ar[1]+=ir),ir=ar[1]-ar[1].toFixed(er),void(ar[1]=+ar[1].toFixed(er));case"V":case"v":return sr&&(ar[1]+=or),or=ar[1]-ar[1].toFixed(er),void(ar[1]=+ar[1].toFixed(er));case"Z":case"z":return ir=rr,void(or=nr);case"M":case"m":return sr&&(ar[1]+=ir,ar[2]+=or),ir=ar[1]-ar[1].toFixed(er),or=ar[2]-ar[2].toFixed(er),rr=ir,nr=or,ar[1]=+ar[1].toFixed(er),void(ar[2]=+ar[2].toFixed(er));case"A":case"a":return sr&&(ar[6]+=ir,ar[7]+=or),ir=ar[6]-ar[6].toFixed(er),or=ar[7]-ar[7].toFixed(er),ar[1]=+ar[1].toFixed(er),ar[2]=+ar[2].toFixed(er),ar[3]=+ar[3].toFixed(er+2),ar[6]=+ar[6].toFixed(er),void(ar[7]=+ar[7].toFixed(er));default:return tr=ar.length,sr&&(ar[tr-2]+=ir,ar[tr-1]+=or),ir=ar[tr-2]-ar[tr-2].toFixed(er),or=ar[tr-1]-ar[tr-1].toFixed(er),void ar.forEach((function(tr,rr){rr&&(ar[rr]=+ar[rr].toFixed(er))}))}})),this},SvgPath.prototype.iterate=function(er,tr){var rr,nr,ir,or=this.segments,ar={},sr=!1,lr=0,cr=0,ur=0,dr=0;if(tr||this.__evaluateStack(),or.forEach((function(tr,rr){var nr=er(tr,rr,lr,cr);Array.isArray(nr)&&(ar[rr]=nr,sr=!0);var ir=tr[0]===tr[0].toLowerCase();switch(tr[0]){case"m":case"M":return lr=tr[1]+(ir?lr:0),cr=tr[2]+(ir?cr:0),ur=lr,void(dr=cr);case"h":case"H":return void(lr=tr[1]+(ir?lr:0));case"v":case"V":return void(cr=tr[1]+(ir?cr:0));case"z":case"Z":return lr=ur,void(cr=dr);default:lr=tr[tr.length-2]+(ir?lr:0),cr=tr[tr.length-1]+(ir?cr:0)}})),!sr)return this;for(ir=[],rr=0;rr<or.length;rr++)if(void 0!==ar[rr])for(nr=0;nr<ar[rr].length;nr++)ir.push(ar[rr][nr]);else ir.push(or[rr]);return this.segments=ir,this},SvgPath.prototype.abs=function(){return this.iterate((function(er,tr,rr,nr){var ir,or=er[0],ar=or.toUpperCase();if(or!==ar)switch(er[0]=ar,or){case"v":return void(er[1]+=nr);case"a":return er[6]+=rr,void(er[7]+=nr);default:for(ir=1;ir<er.length;ir++)er[ir]+=ir%2?rr:nr}}),!0),this},SvgPath.prototype.rel=function(){return this.iterate((function(er,tr,rr,nr){var ir,or=er[0],ar=or.toLowerCase();if(or!==ar&&(0!==tr||"M"!==or))switch(er[0]=ar,or){case"V":return void(er[1]-=nr);case"A":return er[6]-=rr,void(er[7]-=nr);default:for(ir=1;ir<er.length;ir++)er[ir]-=ir%2?rr:nr}}),!0),this},SvgPath.prototype.unarc=function(){return this.iterate((function(er,tr,rr,nr){var ir,or,ar,sr=[],lr=er[0];return"A"!==lr&&"a"!==lr?null:("a"===lr?(or=rr+er[6],ar=nr+er[7]):(or=er[6],ar=er[7]),0===(ir=A_(rr,nr,or,ar,er[4],er[5],er[1],er[2],er[3])).length?[["a"===er[0]?"l":"L",er[6],er[7]]]:(ir.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,ir,or=this.segments;return this.iterate((function(ar,sr,lr,cr){var ur,dr=ar[0],hr=dr.toUpperCase();sr&&("T"===hr?(ur="t"===dr,"Q"===(rr=or[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,ir=-tr,ur||(nr+=lr,ir+=cr),or[sr]=[ur?"q":"Q",nr,ir,ar[1],ar[2]]):"S"===hr&&(ur="s"===dr,"C"===(rr=or[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,ir=-tr,ur||(nr+=lr,ir+=cr),or[sr]=[ur?"c":"C",nr,ir,ar[1],ar[2],ar[3],ar[4]]))})),this};var v_=SvgPath,y_=function calculateSingle(er){var tr,rr,nr=er,ir={a:0,b:0,c:0},or=[];return tr=function findMatch(tr,rr){var ar,sr,lr,cr,ur,dr;if(tr.test(nr))for(sr=0,lr=(ar=nr.match(tr)).length;sr<lr;sr+=1)ir[rr]+=1,cr=ar[sr],ur=nr.indexOf(cr),dr=cr.length,or.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,ir,or;if(er.test(nr))for(rr=0,ir=(tr=nr.match(er)).length;rr<ir;rr+=1)or=tr[rr],nr=nr.replace(or,Array(or.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,ir,or=/{[^]*/gm;if(or.test(nr))for(tr=0,rr=(er=nr.match(or)).length;tr<rr;tr+=1)ir=er[tr],nr=nr.replace(ir,Array(ir.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"),or.sort((function(er,tr){return er.index-tr.index})),{selector:er,specificity:"0,"+ir.a.toString()+","+ir.b.toString()+","+ir.c.toString(),specificityArray:[0,ir.a,ir.b,ir.c],parts:or}},w_=function extendStatics(er,tr){return(w_=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}w_(er,tr),er.prototype=null===tr?Object.create(tr):(__.prototype=tr.prototype,new __)}var S_=function __assign(){return(S_=Object.assign||function __assign(er){for(var tr,rr=1,nr=arguments.length;rr<nr;rr++)for(var ir in tr=arguments[rr])Object.prototype.hasOwnProperty.call(tr,ir)&&(er[ir]=tr[ir]);return er}).apply(this,arguments)};function __awaiter(er,tr,rr,nr){return new(rr||(rr=Promise))((function(ir,or){function fulfilled(er){try{step(nr.next(er))}catch(er){or(er)}}function rejected(er){try{step(nr.throw(er))}catch(er){or(er)}}function step(er){er.done?ir(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,ir,or,ar={label:0,sent:function sent(){if(1&ir[0])throw ir[1];return ir[1]},trys:[],ops:[]};return or={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(or[Symbol.iterator]=function(){return this}),or;function verb(or){return function(sr){return function step(or){if(rr)throw new TypeError("Generator is already executing.");for(;ar;)try{if(rr=1,nr&&(ir=2&or[0]?nr.return:or[0]?nr.throw||((ir=nr.return)&&ir.call(nr),0):nr.next)&&!(ir=ir.call(nr,or[1])).done)return ir;switch(nr=0,ir&&(or=[2&or[0],ir.value]),or[0]){case 0:case 1:ir=or;break;case 4:return ar.label++,{value:or[1],done:!1};case 5:ar.label++,nr=or[1],or=[0];continue;case 7:or=ar.ops.pop(),ar.trys.pop();continue;default:if(!(ir=ar.trys,(ir=ir.length>0&&ir[ir.length-1])||6!==or[0]&&2!==or[0])){ar=0;continue}if(3===or[0]&&(!ir||or[1]>ir[0]&&or[1]<ir[3])){ar.label=or[1];break}if(6===or[0]&&ar.label<ir[1]){ar.label=ir[1],ir=or;break}if(ir&&ar.label<ir[2]){ar.label=ir[2],ar.ops.push(or);break}ir[2]&&ar.ops.pop(),ar.trys.pop();continue}or=tr.call(er,ar)}catch(er){or=[6,er],nr=0}finally{rr=ir=0}if(5&or[0])throw or[1];return{value:or[0]?or[1]:void 0,done:!0}}([or,sr])}}}var x_=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,ir=this.colorDefs[rr].process,or=nr.exec(er);if(or){var ar=ir(or);this.r=ar[0],this.g=ar[1],this.b=ar[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 ir in this.simpleColors)er[er.length]=ir;var or=document.createElement("ul");or.setAttribute("id","rgbcolor-examples");for(tr=0;tr<er.length;tr++)try{var ar=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());ar.appendChild(lr),ar.appendChild(cr),or.appendChild(ar)}catch(er){}return or},RGBColor}(),k_=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}(),C_=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 k_(new x_("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}(),B_=/url\(["']?#([^"']+)["']?\)/,E_={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"},N_="http://www.w3.org/2000/svg",L_=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),ir=0;switch(rr){case"end":ir=nr;break;case"middle":ir=nr/2}return ir},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(N_,"text");var er=document.createElementNS(N_,"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,ir){var or=document.createElement("canvas").getContext("2d");return null!=or?(or.font=[nr,ir,rr,tr].join(" "),or.measureText(er).width):0},TextMeasure.prototype.svgTextMeasure=function(er,tr,rr,nr,ir,or){void 0===or&&(or=this.getMeasurementTextNode());var ar=or;return ar.setAttribute("font-family",tr),ar.setAttribute("font-size",rr),ar.setAttribute("font-style",nr),ar.setAttribute("font-weight",ir),ar.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ar.textContent=er,ar.getBBox().width},TextMeasure.prototype.getMeasureFunction=function(er){var tr=this.measureMethods[er];if(!tr){var rr="16px",nr="normal",ir="normal",or=this.canvasTextMeasure(TextMeasure.testString,er,rr,nr,ir),ar=this.svgTextMeasure(TextMeasure.testString,er,rr,nr,ir);tr=Math.abs(or-ar)<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}(),T_=function(){function Context(er,tr){var rr,nr,ir,or,ar,sr;this.pdf=er,this.svg2pdfParameters=tr.svg2pdfParameters,this.attributeState=tr.attributeState?tr.attributeState.clone():C_.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!==(ir=tr.textMeasure)&&void 0!==ir?ir:new L_,this.transform=null!==(or=tr.transform)&&void 0!==or?or:this.pdf.unitMatrix,this.withinClipPath=null!==(ar=tr.withinClipPath)&&void 0!==ar&&ar,this.withinUse=null!==(sr=tr.withinUse)&&void 0!==sr&&sr}return Context.prototype.clone=function(er){var tr,rr,nr,ir,or,ar,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!==(ir=er.styleSheets)&&void 0!==ir?ir:this.styleSheets,textMeasure:null!==(or=er.textMeasure)&&void 0!==or?or:this.textMeasure,transform:null!==(ar=er.transform)&&void 0!==ar?ar: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}(),P_=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[n_(er,{isIdentifier:!0})]},ReferencesHandler}();function getAngle(er,tr){return Math.atan2(tr[1]-er[1],tr[0]-er[0])}var F_=2/3;function toCubic(er,tr){return[F_*(tr[0]-er[0])+er[0],F_*(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 U_=function(){function Path(){this.segments=[]}return Path.prototype.moveTo=function(er,tr){return this.segments.push(new I_(er,tr)),this},Path.prototype.lineTo=function(er,tr){return this.segments.push(new R_(er,tr)),this},Path.prototype.curveTo=function(er,tr,rr,nr,ir,or){return this.segments.push(new M_(er,tr,rr,nr,ir,or)),this},Path.prototype.close=function(){return this.segments.push(new O_),this},Path.prototype.transform=function(er){this.segments.forEach((function(tr){if(tr instanceof I_||tr instanceof R_||tr instanceof M_){var rr=multVecMatrix([tr.x,tr.y],er);tr.x=rr[0],tr.y=rr[1]}if(tr instanceof M_){var nr=multVecMatrix([tr.x1,tr.y1],er),ir=multVecMatrix([tr.x2,tr.y2],er);tr.x1=nr[0],tr.y1=nr[1],tr.x2=ir[0],tr.y2=ir[1]}}))},Path.prototype.draw=function(er){var tr=er.pdf;this.segments.forEach((function(er){er instanceof I_?tr.moveTo(er.x,er.y):er instanceof R_?tr.lineTo(er.x,er.y):er instanceof M_?tr.curveTo(er.x1,er.y1,er.x2,er.y2,er.x,er.y):tr.close()}))},Path}(),I_=function I_(er,tr){this.x=er,this.y=tr},R_=function R_(er,tr){this.x=er,this.y=tr},M_=function M_(er,tr,rr,nr,ir,or){this.x1=er,this.y1=tr,this.x2=rr,this.y2=nr,this.x=ir,this.y=or},O_=function O_(){};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 ir=er.style.getPropertyValue(nr);return ir||(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,ir=getAttribute(er.element,rr.styleSheets,"visibility");return ir&&(nr="hidden"!==ir),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 Q_=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,ir,or,ar,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,ir=rr.angle,or=rr.anchor,ar=Math.cos(ir),sr=Math.sin(ir),nr=er.pdf.Matrix(ar,sr,-sr,ar,or[0],or[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}(),D_=function D_(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 E_[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 x_("rgb(0,0,0)");return tr.a=0,tr}var rr=/\s*rgba\(((?:[^,\)]*,){3}[^,\)]*)\)\s*/.exec(er);if(rr){var nr=parseFloats(rr[1]),ir=new x_("rgb("+nr.slice(0,3).join(",")+")");return ir.a=nr[3],ir}return new x_(er)}var j_={"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,ir=rr(er.getAttribute("x2"))||nr+rr(getAttribute(er,tr.styleSheets,"width"))||rr(getAttribute(er,tr.styleSheets,"cx"))+rr(getAttribute(er,tr.styleSheets,"r"))||0,or=rr(er.getAttribute("y1"))||rr(getAttribute(er,tr.styleSheets,"y"))||rr(getAttribute(er,tr.styleSheets,"cy"))-rr(getAttribute(er,tr.styleSheets,"r"))||0,ar=rr(er.getAttribute("y2"))||or+rr(getAttribute(er,tr.styleSheets,"height"))||rr(getAttribute(er,tr.styleSheets,"cy"))+rr(getAttribute(er,tr.styleSheets,"r"))||0;return[Math.min(nr,ir),Math.min(or,ar),Math.max(nr,ir)-Math.min(nr,ir),Math.max(or,ar)-Math.min(or,ar)]}function computeViewBoxTransform(er,tr,rr,nr,ir,or,ar,sr){void 0===sr&&(sr=!1);var lr,cr,ur=tr[0],dr=tr[1],hr=tr[2],pr=tr[3],Ar=ir/hr,fr=or/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 ar.pdf.Matrix(Ar,0,0,fr,0,0);var _r=rr-ur*Ar,vr=nr-dr*fr;lr.indexOf("xMid")>=0?_r+=(ir-hr*Ar)/2:lr.indexOf("xMax")>=0&&(_r+=ir-hr*Ar),lr.indexOf("YMid")>=0?vr+=(or-pr*fr)/2:lr.indexOf("YMax")>=0&&(vr+=or-pr*fr);var yr=ar.pdf.Matrix(1,0,0,1,_r,vr),br=ar.pdf.Matrix(Ar,0,0,fr,0,0);return ar.pdf.matrixMult(br,yr)}function parseTransform(er,tr){if(!er||"none"===er)return tr.pdf.unitMatrix;for(var rr,nr,ir=/^[\s,]*matrix\(([^\)]+)\)\s*/,or=/^[\s,]*translate\(([^\)]+)\)\s*/,ar=/^[\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=ir.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=ar.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=or.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 H_=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}(),G_=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}(H_),V_=function(er){function Gradient(tr,rr,nr){var ir=er.call(this,rr,nr)||this;return ir.pdfGradientType=tr,ir}return __extends(Gradient,er),Gradient.prototype.apply=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or,ar;return __generator(this,(function(sr){return(tr=this.element.getAttribute("id"))?(rr=[],nr=0,ir=!1,this.children.forEach((function(tr){if("stop"===tr.element.tagName.toLowerCase()){var or=new x_(getAttribute(tr.element,er.styleSheets,"stop-color"));rr.push({offset:Gradient.parseGradientOffset(tr.element.getAttribute("offset")||"0"),color:[or.r,or.g,or.b]});var ar=getAttribute(tr.element,er.styleSheets,"stop-opacity");ar&&"1"!==ar&&(nr+=parseFloat(ar),ir=!0)}})),ir&&(or=new l({opacity:nr/rr.length})),ar=new d(this.pdfGradientType,this.getCoordinates(),rr,or),er.pdf.addShadingPattern(tr,ar),[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}(G_),z_=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}(V_),K_=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}(V_),q_=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,ir;return __generator(this,(function(or){switch(or.label){case 0:return[4,tr.refsHandler.getRendered(this.key,(function(er){return er.apply(new T_(tr.pdf,{refsHandler:tr.refsHandler,textMeasure:tr.textMeasure,styleSheets:tr.styleSheets,viewport:tr.viewport,svg2pdfParameters:tr.svg2pdfParameters}))}))];case 1:return or.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])),ir=parseTransform(getAttribute(this.gradient.element,tr.styleSheets,"gradientTransform","transform"),tr),[2,{key:this.key,matrix:tr.pdf.matrixMult(ir,rr)}]}}))}))},GradientFill}(),W_=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,ir,or;return __generator(this,(function(ar){switch(ar.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),ir=0,or=this.children,ar.label=1;case 1:return ir<or.length?[4,or[ir].render(new T_(er.pdf,{attributeState:er.attributeState,refsHandler:er.refsHandler,styleSheets:er.styleSheets,viewport:er.viewport,svg2pdfParameters:er.svg2pdfParameters}))]:[3,4];case 2:ar.sent(),ar.label=3;case 3:return ir++,[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}(G_),X_=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,ir,or,ar,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 T_(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},ir=tr.pdf.unitMatrix,this.pattern.element.hasAttribute("patternUnits")&&"objectboundingbox"!==this.pattern.element.getAttribute("patternUnits").toLowerCase()||(nr=er.getBoundingBox(tr),ir=tr.pdf.Matrix(1,0,0,1,nr[0],nr[1]),ar=this.pattern.getBoundingBox(tr),sr=ar[0]*nr[0]||0,lr=ar[1]*nr[1]||0,cr=ar[2]*nr[2]||0,ur=ar[3]*nr[3]||0,rr.boundingBox=[sr,lr,sr+cr,lr+ur],rr.xStep=cr,rr.yStep=ur),or=tr.pdf.unitMatrix,this.pattern.element.hasAttribute("patternContentUnits")&&"objectboundingbox"===this.pattern.element.getAttribute("patternContentUnits").toLowerCase()&&(nr||(nr=er.getBoundingBox(tr)),or=tr.pdf.Matrix(nr[2],0,0,nr[3],0,0),ar=rr.boundingBox||this.pattern.getBoundingBox(tr),sr=ar[0]/nr[0]||0,lr=ar[1]/nr[1]||0,cr=ar[2]/nr[2]||0,ur=ar[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=or,pr=tr.pdf.matrixMult(pr,ir),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,ir=getAttribute(nr,er.styleSheets,"visibility");ir&&(er.attributeState.visibility=ir);var or=getAttribute(nr,er.styleSheets,"fill");or&&(er.attributeState.fill=function parseFill(er,tr){var rr=B_.exec(er);if(rr){var nr=rr[1],ir=tr.refsHandler.get(nr);return ir&&(ir instanceof z_||ir instanceof K_)?new q_(nr,ir):ir&&ir instanceof W_?new X_(nr,ir):new k_(new x_("rgb(0, 0, 0)"))}var or=parseColor(er);return or.ok?new k_(or):null}(or,er));var ar=getAttribute(nr,er.styleSheets,"fill-opacity");ar&&(er.attributeState.fillOpacity=parseFloat(ar));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 k_(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=a_(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 ir=rr.pdf.getFontList(),or="";return tr.some((function(er){var tr=ir[er];return tr&&tr.indexOf(nr)>=0?(or=er,!0):(er=er.toLowerCase(),!!j_.hasOwnProperty(er)&&(or=er,!0))}))||(or="times"),or}(er.attributeState,br,er)}var wr=getAttribute(nr,er.styleSheets,"font-size");if(wr){var Sr=er.pdf.getFontSize();er.attributeState.fontSize=toPixels(wr,Sr)}var xr=getAttribute(nr,er.styleSheets,"vertical-align")||getAttribute(nr,er.styleSheets,"alignment-baseline");if(xr){var kr=xr.match(/(baseline|text-bottom|alphabetic|ideographic|middle|central|mathematical|text-top|bottom|center|top|hanging)/);kr&&(er.attributeState.alignmentBaseline=kr[0])}var Cr=getAttribute(nr,er.styleSheets,"text-anchor");Cr&&(er.attributeState.textAnchor=Cr)}function applyAttributes(er,tr,rr){var nr=1,ir=1;nr*=er.attributeState.fillOpacity,nr*=er.attributeState.opacity,er.attributeState.fill instanceof k_&&void 0!==er.attributeState.fill.color.a&&(nr*=er.attributeState.fill.color.a),ir*=er.attributeState.strokeOpacity,ir*=er.attributeState.opacity,er.attributeState.stroke instanceof k_&&void 0!==er.attributeState.stroke.color.a&&(ir*=er.attributeState.stroke.color.a);var or,ar,sr=nr<1,lr=ir<1;if(nodeIs(rr,"use")?(sr=!0,lr=!0,nr*=er.attributeState.fill?1:0,ir*=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,ir*=er.attributeState.stroke?1:0):lr&&!er.attributeState.stroke&&(ir=0)),sr||lr){var cr={};sr&&(cr.opacity=nr),lr&&(cr["stroke-opacity"]=ir),er.pdf.setGState(new l(cr))}if(er.attributeState.fill&&er.attributeState.fill!==tr.attributeState.fill&&er.attributeState.fill instanceof k_&&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 k_&&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&&(or=j_.hasOwnProperty(er.attributeState.fontFamily)?j_[er.attributeState.fontFamily]:er.attributeState.fontFamily),er.attributeState.fill&&er.attributeState.fill!==tr.attributeState.fill&&er.attributeState.fill instanceof k_&&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||(ar="","bold"===er.attributeState.fontWeight&&(ar="bold"),"italic"===er.attributeState.fontStyle&&(ar+="italic"),""===ar&&(ar="normal")),void 0===or&&void 0===ar||(void 0===or&&(or=j_.hasOwnProperty(er.attributeState.fontFamily)?j_[er.attributeState.fontFamily]:er.attributeState.fontFamily),er.pdf.setFont(or,ar)),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=B_.exec(rr);if(nr){var ir=nr[1];return tr.refsHandler.get(ir)||void 0}}}function applyClipPath(er,tr,rr){return __awaiter(this,void 0,void 0,(function(){var nr,ir;return __generator(this,(function(or){switch(or.label){case 0:return nr=rr.clone(),tr.element.hasAttribute("clipPathUnits")&&"objectboundingbox"===tr.element.getAttribute("clipPathUnits").toLowerCase()&&(ir=er.getBoundingBox(rr),nr.transform=rr.pdf.matrixMult(rr.pdf.Matrix(ir[2],0,0,ir[3],ir[0],ir[1]),rr.transform)),[4,tr.apply(nr)];case 1:return or.sent(),[2]}}))}))}var Y_=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(ir){switch(ir.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 ir.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 ir.sent(),tr.withinClipPath||tr.pdf.restoreGraphicsState(),rr&&tr.pdf.restoreGraphicsState(),[2]}}))}))},RenderedNode}(H_),J_=function(er){function GraphicsNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(GraphicsNode,er),GraphicsNode}(Y_),$_=function(er){function GeometryNode(tr,rr,nr){var ir=er.call(this,rr,nr)||this;return ir.cachedPath=null,ir.hasMarkers=tr,ir}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,ir,or;return __generator(this,(function(ar){switch(ar.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 ir=ar.sent(),[3,3];case 2:ir=void 0,ar.label=3;case 3:return nr=ir,or="evenodd"===getAttribute(this.element,er.styleSheets,"fill-rule"),tr&&rr||er.withinUse?or?er.pdf.fillStrokeEvenOdd(nr):er.pdf.fillStroke(nr):tr?or?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,ir=Number.NEGATIVE_INFINITY,or=Number.NEGATIVE_INFINITY,ar=0,sr=0,lr=0;lr<tr.segments.length;lr++){var cr=tr.segments[lr];(cr instanceof I_||cr instanceof R_||cr instanceof M_)&&(ar=cr.x,sr=cr.y),cr instanceof M_?(rr=Math.min(rr,ar,cr.x1,cr.x2,cr.x),ir=Math.max(ir,ar,cr.x1,cr.x2,cr.x),nr=Math.min(nr,sr,cr.y1,cr.y2,cr.y),or=Math.max(or,sr,cr.y1,cr.y2,cr.y)):(rr=Math.min(rr,ar),ir=Math.max(ir,ar),nr=Math.min(nr,sr),or=Math.max(or,sr))}return[rr,nr,ir-rr,or-nr]},GeometryNode.prototype.getMarkers=function(er,tr){var rr=getAttribute(this.element,tr.styleSheets,"marker-start"),nr=getAttribute(this.element,tr.styleSheets,"marker-mid"),ir=getAttribute(this.element,tr.styleSheets,"marker-end"),or=new Q_;if(rr||nr||ir){ir&&(ir=iri(ir)),rr&&(rr=iri(rr)),nr&&(nr=iri(nr));for(var ar=er.segments,sr=[1,0],lr=void 0,cr=!1,ur=[1,0],dr=!1,hr=function _loop_1(er){var tr=ar[er],hr=rr&&(1===er||!(ar[er]instanceof I_)&&ar[er-1]instanceof I_);hr&&ar.forEach((function(tr,rr){if(!dr&&tr instanceof O_&&rr>er){var nr=ar[rr-1];dr=(nr instanceof I_||nr instanceof R_||nr instanceof M_)&&nr}}));var pr=ir&&(er===ar.length-1||!(ar[er]instanceof I_)&&ar[er+1]instanceof I_),Ar=nr&&er>0&&!(1===er&&ar[er-1]instanceof I_),fr=ar[er-1]||null;if(fr instanceof I_||fr instanceof R_||fr instanceof M_){if(tr instanceof M_)hr&&or.addMarker(new D_(rr,[fr.x,fr.y],getAngle(dr?[dr.x,dr.y]:[fr.x,fr.y],[tr.x1,tr.y1]))),pr&&or.addMarker(new D_(ir,[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 I_?lr:normalize$1(addVectors(sr,lr)),or.addMarker(new D_(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 I_||tr instanceof R_){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;or.addMarker(new D_(rr,[fr.x,fr.y],Math.atan2(gr[1],gr[0])))}if(pr&&or.addMarker(new D_(ir,[tr.x,tr.y],Math.atan2(lr[1],lr[0]))),Ar){gr=tr instanceof I_?sr:fr instanceof I_?lr:normalize$1(addVectors(sr,lr));or.addMarker(new D_(nr,[fr.x,fr.y],Math.atan2(gr[1],gr[0])))}sr=lr}else if(tr instanceof O_){if(lr=getDirectionVector([fr.x,fr.y],[cr.x,cr.y]),Ar){gr=fr instanceof I_?lr:normalize$1(addVectors(sr,lr));or.addMarker(new D_(nr,[fr.x,fr.y],Math.atan2(gr[1],gr[0])))}if(pr){gr=normalize$1(addVectors(lr,ur));or.addMarker(new D_(ir,[cr.x,cr.y],Math.atan2(gr[1],gr[0])))}sr=lr}}else{cr=tr instanceof I_&&tr;var mr=ar[er+1];(mr instanceof I_||mr instanceof R_||mr instanceof M_)&&(ur=getDirectionVector([cr.x,cr.y],[mr.x,mr.y]))}},pr=0;pr<ar.length;pr++)hr(pr)}return or},GeometryNode}(J_);function iri(er){var tr=B_.exec(er);return tr&&tr[1]||void 0}var Z_=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"),ir=parseFloat(this.element.getAttribute("y2")||"0");return tr||nr||rr||ir?(new U_).moveTo(tr,rr).lineTo(nr,ir):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}($_),ev=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,ir;return __generator(this,(function(or){switch(or.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 or.sent(),[3,3];case 2:return[2];case 3:applyAttributes(tr,er,this.element),nr=0,ir=this.children,or.label=4;case 4:return nr<ir.length?[4,ir[nr].render(tr)]:[3,7];case 5:or.sent(),or.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 ir=parseFloats(nr),or=parseFloat(getAttribute(this.element,er.styleSheets,"width")||getAttribute(this.element.ownerSVGElement,er.styleSheets,"width")||nr[2]),ar=parseFloat(getAttribute(this.element,er.styleSheets,"height")||getAttribute(this.element.ownerSVGElement,er.styleSheets,"height")||nr[3]);return computeViewBoxTransform(this.element,ir,tr,rr,or,ar,er)}return er.pdf.Matrix(1,0,0,1,tr,rr)},_Symbol}(G_),tv=function tv(er,tr){this.width=er,this.height=tr},rv=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,ir,or,ar,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),ir=er.refsHandler.get(nr),or=nodeIs(ir.element,"symbol,svg")&&ir.element.hasAttribute("viewBox"),ar=tr(getAttribute(this.element,er.styleSheets,"x")||"0"),sr=tr(getAttribute(this.element,er.styleSheets,"y")||"0"),lr=void 0,cr=void 0,or?(lr=tr(getAttribute(this.element,er.styleSheets,"width")||getAttribute(ir.element,er.styleSheets,"width")||"0"),cr=tr(getAttribute(this.element,er.styleSheets,"height")||getAttribute(ir.element,er.styleSheets,"height")||"0"),ar+=tr(getAttribute(ir.element,er.styleSheets,"x")||"0"),sr+=tr(getAttribute(ir.element,er.styleSheets,"y")||"0"),dr=parseFloats(ir.element.getAttribute("viewBox")),ur=computeViewBoxTransform(ir.element,dr,ar,sr,lr,cr,er)):ur=er.pdf.Matrix(1,0,0,1,ar,sr),hr=new T_(er.pdf,{refsHandler:er.refsHandler,styleSheets:er.styleSheets,withinUse:!0,viewport:or?new tv(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),or&&"visible"!==getAttribute(ir.element,er.styleSheets,"overflow")&&(er.pdf.rect(ar,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 ev?[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}(J_),nv=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"),ir=getAttribute(this.element,er.styleSheets,"ry"),or=Math.min(parseFloat(nr||ir||"0"),.5*tr),ar=Math.min(parseFloat(ir||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===or&&0===ar?(new U_).moveTo(sr,lr).lineTo(sr+tr,lr).lineTo(sr+tr,lr+rr).lineTo(sr,lr+rr).close():(new U_).moveTo(sr+=or,lr).lineTo(sr+=tr-2*or,lr).curveTo(sr+or*cr,lr,sr+or,lr+(ar-ar*cr),sr+=or,lr+=ar).lineTo(sr,lr+=rr-2*ar).curveTo(sr,lr+ar*cr,sr-or*cr,lr+ar,sr-=or,lr+=ar).lineTo(sr+=2*or-tr,lr).curveTo(sr-or*cr,lr,sr-or,lr-ar*cr,sr-=or,lr-=ar).lineTo(sr,lr+=2*ar-rr).curveTo(sr,lr-ar*cr,sr+or*cr,lr-ar,sr+=or,lr-=ar).close()},Rect.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Rect.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},Rect}($_),iv=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"),ir=parseFloat(getAttribute(this.element,er.styleSheets,"cy")||"0"),or=4/3*(Math.SQRT2-1)*tr,ar=4/3*(Math.SQRT2-1)*rr;return(new U_).moveTo(nr+tr,ir).curveTo(nr+tr,ir-ar,nr+or,ir-rr,nr,ir-rr).curveTo(nr-or,ir-rr,nr-tr,ir-ar,nr-tr,ir).curveTo(nr-tr,ir+ar,nr-or,ir+rr,nr,ir+rr).curveTo(nr+or,ir+rr,nr+tr,ir+ar,nr+tr,ir)},EllipseBase.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},EllipseBase.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},EllipseBase}($_),ov=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}(iv);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 av=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,ir=[],or=[],ar=[],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 x_(Ar)).ok&&(pr.attributeState.stroke=new k_(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))}ar[tr]=pr,ir[tr]=dr,or[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(ar[tr],er,rr);var vr=ar[tr].attributeState.alignmentBaseline,yr=getTextRenderingMode(ar[tr].attributeState);er.pdf.text(this.texts[tr],ir[tr]-_r,or[tr],{baseline:mapAlignmentBaseline(vr),angle:er.transform,renderingMode:"fill"===yr?void 0:yr}),er.pdf.restoreGraphicsState()}return[sr,lr]},TextChunk}(),sv=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,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr;return __generator(this,(function(Cr){if(er.pdf.saveGraphicsState(),tr=0,rr=er.pdf.getFontSize(),nr=toPixels(this.element.getAttribute("x"),rr),ir=toPixels(this.element.getAttribute("y"),rr),or=toPixels(this.element.getAttribute("dx"),rr),ar=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),kr=transformText(this.element,xr,er),tr=er.textMeasure.getTextOffset(kr,er.attributeState),"visible"===sr&&(cr=er.attributeState.alignmentBaseline,ur=getTextRenderingMode(er.attributeState),er.pdf.text(kr,nr+or-tr,ir+ar,{baseline:mapAlignmentBaseline(cr),angle:er.transform,renderingMode:"fill"===ur?void 0:ur}));else{for(dr=new av(this,er.attributeState.textAnchor,nr+or,ir+ar),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 av(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 av(this,getAttribute(gr,er.styleSheets,"text-anchor")||er.attributeState.textAnchor,_r[0],wr)),(Sr=gr.getAttribute("xml:space"))&&(Ar=Sr)}}xr=replaceTabsBySpace(xr=removeNewlines(fr)),"default"===Ar&&(0===hr&&(xr=xr.replace(/^\s+/,"")),hr===lr-1&&(xr=trimRight(xr)),xr=consolidateSpaces(xr)),kr=transformText(this.element,xr,er),dr.add(pr,kr)}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}(J_),lv=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 v_(getAttribute(this.element,er.styleSheets,"d")||"").unshort().unarc().abs(),ir=new U_;return nr.iterate((function(er,nr){var or=er[0];switch(or){case"M":ir.moveTo(er[1],er[2]);break;case"L":ir.lineTo(er[1],er[2]);break;case"H":ir.lineTo(er[1],rr);break;case"V":ir.lineTo(tr,er[1]);break;case"C":ir.curveTo(er[1],er[2],er[3],er[4],er[5],er[6]);break;case"Q":var ar=toCubic([tr,rr],[er[1],er[2]]),sr=toCubic([er[3],er[4]],[er[1],er[2]]);ir.curveTo(ar[0],ar[1],sr[0],sr[1],er[3],er[4]);break;case"Z":ir.close()}switch(or){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]}})),ir},PathNode}($_),uv=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*\s*)$/i,dv=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,ir,or,ar,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"),ir=parseFloat(getAttribute(this.element,er.styleSheets,"y")||"0"),!isFinite(tr)||tr<=0||!isFinite(rr)||rr<=0?[2]:[4,this.imageLoadingPromise]):[2];case 1:return or=pr.sent(),ar=or.data,0!==(sr=or.format).indexOf("svg")?[3,3]:(lr=new DOMParser,cr=lr.parseFromString(ar,"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(ir)),cr.setAttribute("width",String(tr)),cr.setAttribute("height",String(rr)),[4,parse$1(cr,dr={}).render(new T_(er.pdf,{refsHandler:new P_(dr),styleSheets:er.styleSheets,viewport:new tv(tr,rr),svg2pdfParameters:er.svg2pdfParameters}))]);case 2:return pr.sent(),[2];case 3:hr="data:image/"+sr+";base64,"+btoa(ar);try{er.pdf.addImage(hr,"",nr,ir,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,ir,or;return __generator(this,(function(ar){switch(ar.label){case 0:if(!(nr=er.match(uv)))return[3,1];if(ir=nr[2],"image"!==(or=ir.split("/"))[0])throw new Error("Unsupported image URL: "+er);return rr=or[1],tr=nr[5],tr="base64"===nr[4]?atob(tr):decodeURIComponent(tr),[3,3];case 1:return[4,ImageNode.fetchImage(er)];case 2:tr=ar.sent(),rr=er.substring(er.lastIndexOf(".")+1),ar.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),ir="",or=0;or<rr.length;or++)ir+=String.fromCharCode(rr[or]);tr(ir)},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}(J_),hv=function(er){function Traverse(tr,rr,nr){var ir=er.call(this,!0,rr,nr)||this;return ir.closed=tr,ir}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 U_;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 ir=tr[nr],or=tr[nr+1];rr.push([ir,or])}return rr},Traverse}($_),pv=function(er){function Polygon(tr,rr){return er.call(this,!0,tr,rr)||this}return __extends(Polygon,er),Polygon}(hv),Av=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}(H_),fv=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,ir;return __generator(this,(function(or){switch(or.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,ir=this.children,or.label=1;case 1:return nr<ir.length?[4,ir[nr].render(new T_(er.pdf,{refsHandler:er.refsHandler,styleSheets:er.styleSheets,viewport:er.viewport,svg2pdfParameters:er.svg2pdfParameters}))]:[3,4];case 2:or.sent(),or.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"),ir=this.element.getAttribute("viewBox");if(ir){var or=parseFloats(ir);tr=computeViewBoxTransform(this.element,or,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}(G_),gv=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}(iv),mv=function(er){function Polyline(tr,rr){return er.call(this,!1,tr,rr)||this}return __extends(Polyline,er),Polyline}(hv),_v=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}(Y_),vv=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,ir,or,ar;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),ir=this.getWidth(tr),or=this.getHeight(tr),tr.pdf.saveGraphicsState(),ar=tr.transform,this.element.hasAttribute("transform")&&(ar=tr.pdf.matrixMult(parseTransform(this.element.getAttribute("transform"),tr),ar)),tr.pdf.setCurrentTransformationMatrix(ar),tr.withinUse||"visible"===getAttribute(this.element,tr.styleSheets,"overflow")||tr.pdf.rect(rr,nr,ir,or).clip().discardPath(),[4,er.prototype.render.call(this,tr.clone({transform:tr.pdf.unitMatrix,viewport:tr.withinUse?tr.viewport:new tv(ir,or)}))]):[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),ir=this.getViewBox();if(ir){var or=this.getWidth(er),ar=this.getHeight(er);tr=computeViewBoxTransform(this.element,ir,rr,nr,or,ar,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 ir=this.getViewBox();if(ir&&(null!=nr.height||getAttribute(this.element,er.styleSheets,"height"))){var or=ir[2]/ir[3];tr=this.getHeight(er)*or}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 ir=this.getViewBox();if(ir){var or=ir[2]/ir[3];tr=this.getWidth(er)/or}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}(_v),yv=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}(_v),bv=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(ir){switch(ir.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,ir.label=1;case 1:return rr<nr.length?[4,nr[rr].render(new T_(er.pdf,{refsHandler:er.refsHandler,styleSheets:er.styleSheets,viewport:er.viewport,withinClipPath:!0,svg2pdfParameters:er.svg2pdfParameters}))]:[3,4];case 2:ir.sent(),ir.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}(G_);function parse$1(er,tr){var rr,nr=[];switch(function forEachChild(er,tr){for(var rr=[],nr=0;nr<er.childNodes.length;nr++){var ir=er.childNodes[nr];"#"!==ir.nodeName.charAt(0)&&rr.push(ir)}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 yv(er,nr);break;case"circle":rr=new gv(er,nr);break;case"clippath":rr=new bv(er,nr);break;case"ellipse":rr=new ov(er,nr);break;case"lineargradient":rr=new z_(er,nr);break;case"image":rr=new dv(er,nr);break;case"line":rr=new Z_(er,nr);break;case"marker":rr=new fv(er,nr);break;case"path":rr=new lv(er,nr);break;case"pattern":rr=new W_(er,nr);break;case"polygon":rr=new pv(er,nr);break;case"polyline":rr=new mv(er,nr);break;case"radialgradient":rr=new K_(er,nr);break;case"rect":rr=new nv(er,nr);break;case"svg":rr=new vv(er,nr);break;case"symbol":rr=new ev(er,nr);break;case"text":rr=new sv(er,nr);break;case"use":rr=new rv(er,nr);break;default:rr=new Av(er,nr)}if(null!=tr&&rr.element.hasAttribute("id")){var ir=n_(rr.element.id,{isIdentifier:!0});tr[ir]=tr[ir]||rr}return rr}var wv=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,ir;return __generator(this,(function(or){switch(or.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(ir=rr[nr],"style")?er.push(ir.textContent):this.loadExternalSheets&&nodeIs(ir,"link")&&"stylesheet"===ir.getAttribute("rel")&&ir.hasAttribute("href")&&er.push(StyleSheets.loadSheet(ir.getAttribute("href")));return[4,Promise.all(er)];case 1:return[2,or.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 ir=nr[rr],or=tr.createElement("style");or.textContent=ir,tr.body.appendChild(or);var ar=or.sheet;if(ar instanceof CSSStyleSheet){for(var sr=ar.cssRules.length-1;sr>=0;sr--){var lr=ar.cssRules[sr];lr instanceof CSSStyleRule||ar.deleteRule(sr);var cr=lr;if(cr.selectorText.indexOf(",")>=0){ar.deleteRule(sr);for(var ur=cr.cssText.substring(cr.selectorText.length),dr=StyleSheets.splitSelectorAtCommas(cr.selectorText),hr=0;hr<dr.length;hr++)ar.insertRule(dr[hr]+ur,sr+hr)}}this.styleSheets.push(ar)}}},StyleSheets.splitSelectorAtCommas=function(er){for(var tr,rr=/,|["']/g,nr=/[^\\]["]/g,ir=/[^\\][']/g,or=[],ar="initial",sr=-1,lr=nr,cr=0;cr<er.length;)switch(ar){case"initial":rr.lastIndex=cr,(tr=rr.exec(er))?(","===tr[0]?(or.push(er.substring(sr+1,rr.lastIndex-1).trim()),sr=rr.lastIndex-1):(ar="withinQuotes",lr='"'===tr[0]?nr:ir),cr=rr.lastIndex):(or.push(er.substring(sr+1).trim()),cr=er.length);break;case"withinQuotes":lr.lastIndex=cr,(tr=lr.exec(er))&&(cr=lr.lastIndex,ar="initial")}return or},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,ir=this.styleSheets;nr<ir.length;nr++)for(var or=ir[nr],ar=0;ar<or.cssRules.length;ar++){var sr=or.cssRules[ar];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,ir;if("string"==typeof er){if(-1!==er.indexOf(","))throw"Invalid CSS selector";rr=y_(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=y_(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(ir=0;ir<4;ir+=1){if(rr[ir]<nr[ir])return-1;if(rr[ir]>nr[ir])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}();function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}g.API.svg=function(er,tr){return void 0===tr&&(tr={}),function svg2pdf(er,tr,rr){var nr,ir,or;return void 0===rr&&(rr={}),__awaiter(this,void 0,void 0,(function(){var ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr;return __generator(this,(function(gr){switch(gr.label){case 0:return ar=null!==(nr=rr.x)&&void 0!==nr?nr:0,sr=null!==(ir=rr.y)&&void 0!==ir?ir:0,lr=null!==(or=rr.loadExternalStyleSheets)&&void 0!==or&&or,ur=new P_(cr={}),[4,(dr=new wv(er,lr)).load()];case 1:return gr.sent(),hr=new tv(tr.internal.pageSize.getWidth(),tr.internal.pageSize.getHeight()),pr=S_(S_({},rr),{element:er}),Ar=new T_(tr,{refsHandler:ur,styleSheets:dr,viewport:hr,svg2pdfParameters:pr}),tr.advancedAPI(),tr.saveGraphicsState(),tr.setCurrentTransformationMatrix(tr.Matrix(1,0,0,1,ar,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 Sv=defaultSetTimout,xv=defaultClearTimeout;function runTimeout(er){if(Sv===setTimeout)return setTimeout(er,0);if((Sv===defaultSetTimout||!Sv)&&setTimeout)return Sv=setTimeout,setTimeout(er,0);try{return Sv(er,0)}catch(tr){try{return Sv.call(null,er,0)}catch(tr){return Sv.call(this,er,0)}}}"function"==typeof sg.setTimeout&&(Sv=setTimeout),"function"==typeof sg.clearTimeout&&(xv=clearTimeout);var kv,Cv=[],Bv=!1,Ev=-1;function cleanUpNextTick(){Bv&&kv&&(Bv=!1,kv.length?Cv=kv.concat(Cv):Ev=-1,Cv.length&&drainQueue())}function drainQueue(){if(!Bv){var er=runTimeout(cleanUpNextTick);Bv=!0;for(var tr=Cv.length;tr;){for(kv=Cv,Cv=[];++Ev<tr;)kv&&kv[Ev].run();Ev=-1,tr=Cv.length}kv=null,Bv=!1,function runClearTimeout(er){if(xv===clearTimeout)return clearTimeout(er);if((xv===defaultClearTimeout||!xv)&&clearTimeout)return xv=clearTimeout,clearTimeout(er);try{return xv(er)}catch(tr){try{return xv.call(null,er)}catch(tr){return xv.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 Nv=noop,Lv=noop,Tv=noop,Pv=noop,Fv=noop,Uv=noop,Iv=noop;var Rv=sg.performance||{},Mv=Rv.now||Rv.mozNow||Rv.msNow||Rv.oNow||Rv.webkitNow||function(){return(new Date).getTime()};var Ov=new Date;var Qv={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];Cv.push(new Item(er,tr)),1!==Cv.length||Bv||runTimeout(drainQueue)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Nv,addListener:Lv,once:Tv,off:Pv,removeListener:Fv,removeAllListeners:Uv,emit:Iv,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*Mv.call(Rv),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-Ov)/1e3}},Dv=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),jv=createCommonjsModule((function(er){var tr=mr.f,rr=uid("meta"),nr=0,ir=Object.isExtensible||function(){return!0},setMetadata=function(er){tr(er,rr,{value:{objectID:"O"+ ++nr,weakData:{}}})},or=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(!ir(er))return"F";if(!tr)return"E";setMetadata(er)}return er[rr].objectID},getWeakData:function(er,tr){if(!has(er,rr)){if(!ir(er))return!0;if(!tr)return!1;setMetadata(er)}return er[rr].weakData},onFreeze:function(er){return Dv&&or.REQUIRED&&ir(er)&&!has(er,rr)&&setMetadata(er),er}};Pr[rr]=!0})),Hv=jv.onFreeze,Gv=Object.freeze,Vv=fails((function(){Gv(1)}));_export({target:"Object",stat:!0,forced:Vv,sham:!Dv},{freeze:function freeze(er){return Gv&&isObject(er)?Gv(Hv(er)):er}}),_export({global:!0},{globalThis:rr});var zv=function check(er){return er&&er.Math==Math&&er},Kv=zv("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis))&&globalThis)||zv("object"==("undefined"==typeof window?"undefined":_typeof(window))&&window)||zv("object"==("undefined"==typeof self?"undefined":_typeof(self))&&self)||zv("object"==_typeof(er)&&er)||Function("return this")(),qv=function fails(er){try{return!!er()}catch(er){return!0}},Wv=!qv((function(){return 7!=Object.defineProperty({},1,{get:function get(){return 7}})[1]})),Xv={}.propertyIsEnumerable,Yv=Object.getOwnPropertyDescriptor,Jv={f:Yv&&!Xv.call({1:2},1)?function propertyIsEnumerable(er){var tr=Yv(this,er);return!!tr&&tr.enumerable}:Xv},$v=function createPropertyDescriptor(er,tr){return{enumerable:!(1&er),configurable:!(2&er),writable:!(4&er),value:tr}},Zv={}.toString,ey=function classofRaw(er){return Zv.call(er).slice(8,-1)},ty="".split,ry=qv((function(){return!Object("z").propertyIsEnumerable(0)}))?function(er){return"String"==ey(er)?ty.call(er,""):Object(er)}:Object,ny=function requireObjectCoercible(er){if(null==er)throw TypeError("Can't call method on "+er);return er},iy=function toIndexedObject(er){return ry(ny(er))},oy=function isObject(er){return"object"===_typeof(er)?null!==er:"function"==typeof er},ay=function toPrimitive(er,tr){if(!oy(er))return er;var rr,nr;if(tr&&"function"==typeof(rr=er.toString)&&!oy(nr=rr.call(er)))return nr;if("function"==typeof(rr=er.valueOf)&&!oy(nr=rr.call(er)))return nr;if(!tr&&"function"==typeof(rr=er.toString)&&!oy(nr=rr.call(er)))return nr;throw TypeError("Can't convert object to primitive value")},sy={}.hasOwnProperty,ly=function has(er,tr){return sy.call(er,tr)},uy=Kv.document,dy=oy(uy)&&oy(uy.createElement),hy=function documentCreateElement(er){return dy?uy.createElement(er):{}},py=!Wv&&!qv((function(){return 7!=Object.defineProperty(hy("div"),"a",{get:function get(){return 7}}).a})),Ay=Object.getOwnPropertyDescriptor,fy={f:Wv?Ay:function getOwnPropertyDescriptor(er,tr){if(er=iy(er),tr=ay(tr,!0),py)try{return Ay(er,tr)}catch(er){}if(ly(er,tr))return $v(!Jv.f.call(er,tr),er[tr])}},gy=/#|\.prototype\./,my=function isForced(er,tr){var rr=vy[_y(er)];return rr==by||rr!=yy&&("function"==typeof tr?qv(tr):!!tr)},_y=my.normalize=function(er){return String(er).replace(gy,".").toLowerCase()},vy=my.data={},yy=my.NATIVE="N",by=my.POLYFILL="P",wy=my,Sy={},xy=function aFunction(er){if("function"!=typeof er)throw TypeError(String(er)+" is not a function");return er},ky=function functionBindContext(er,tr,rr){if(xy(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,ir){return er.call(tr,rr,nr,ir)}}return function(){return er.apply(tr,arguments)}},Cy=function anObject(er){if(!oy(er))throw TypeError(String(er)+" is not an object");return er},By=Object.defineProperty,Ey={f:Wv?By:function defineProperty(er,tr,rr){if(Cy(er),tr=ay(tr,!0),Cy(rr),py)try{return By(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}},Ny=Wv?function(er,tr,rr){return Ey.f(er,tr,$v(1,rr))}:function(er,tr,rr){return er[tr]=rr,er},Ly=fy.f,Ty=function wrapConstructor(er){var tr=function Wrapper(tr,rr,nr){if(this instanceof er){switch(arguments.length){case 0:return new er;case 1:return new er(tr);case 2:return new er(tr,rr)}return new er(tr,rr,nr)}return er.apply(this,arguments)};return tr.prototype=er.prototype,tr},Py=function _export(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur=er.target,dr=er.global,hr=er.stat,pr=er.proto,Ar=dr?Kv:hr?Kv[ur]:(Kv[ur]||{}).prototype,fr=dr?Sy:Sy[ur]||(Sy[ur]={}),gr=fr.prototype;for(ir in tr)rr=!wy(dr?ir:ur+(hr?".":"#")+ir,er.forced)&&Ar&&ly(Ar,ir),ar=fr[ir],rr&&(sr=er.noTargetGet?(cr=Ly(Ar,ir))&&cr.value:Ar[ir]),or=rr&&sr?sr:tr[ir],rr&&_typeof(ar)===_typeof(or)||(lr=er.bind&&rr?ky(or,Kv):er.wrap&&rr?Ty(or):pr&&"function"==typeof or?ky(Function.call,or):or,(er.sham||or&&or.sham||ar&&ar.sham)&&Ny(lr,"sham",!0),fr[ir]=lr,pr&&(ly(Sy,nr=ur+"Prototype")||Ny(Sy,nr,{}),Sy[nr][ir]=or,er.real&&gr&&!gr[ir]&&Ny(gr,ir,or)))},Fy=Math.ceil,Uy=Math.floor,Iy=function toInteger(er){return isNaN(er=+er)?0:(er>0?Uy:Fy)(er)},Ry=Math.min,My=function toLength(er){return er>0?Ry(Iy(er),9007199254740991):0},Oy="__core-js_shared__",Qy=Kv[Oy]||function setGlobal(er,tr){try{Ny(Kv,er,tr)}catch(rr){Kv[er]=tr}return tr}(Oy,{}),Dy=createCommonjsModule((function(er){(er.exports=function(er,tr){return Qy[er]||(Qy[er]=void 0!==tr?tr:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),jy=0,Hy=Math.random(),Gy=function uid(er){return"Symbol("+String(void 0===er?"":er)+")_"+(++jy+Hy).toString(36)},Vy=!!Object.getOwnPropertySymbols&&!qv((function(){return!String(Symbol())})),zy=Vy&&!Symbol.sham&&"symbol"==_typeof(Symbol.iterator),Ky=Dy("wks"),qy=Kv.Symbol,Wy=zy?qy:qy&&qy.withoutSetter||Gy,Xy=function wellKnownSymbol(er){return ly(Ky,er)||(Vy&&ly(qy,er)?Ky[er]=qy[er]:Ky[er]=Wy("Symbol."+er)),Ky[er]},Yy=Xy("match"),Jy=function notARegexp(er){if(function isRegexp(er){var tr;return oy(er)&&(void 0!==(tr=er[Yy])?!!tr:"RegExp"==ey(er))}(er))throw TypeError("The method doesn't accept regular expressions");return er},$y=Xy("match"),Zy=function correctIsRegexpLogic(er){var tr=/./;try{"/./"[er](tr)}catch(rr){try{return tr[$y]=!1,"/./"[er](tr)}catch(er){}}return!1},eb="".startsWith,tb=Math.min,rb=Zy("startsWith");Py({target:"String",proto:!0,forced:!rb},{startsWith:function startsWith(er){var tr=String(ny(this));Jy(er);var rr=My(tb(arguments.length>1?arguments[1]:void 0,tr.length)),nr=String(er);return eb?eb.call(tr,nr,rr):tr.slice(rr,rr+nr.length)===nr}});var nb=function entryVirtual(er){return Sy[er+"Prototype"]},ib=nb("String").startsWith,ob=String.prototype,ab=function startsWith_1(er){var tr=er.startsWith;return"string"==typeof er||er===ob||er instanceof String&&tr===ob.startsWith?ib:tr},sb="\t\n\v\f\r \u2028\u2029\ufeff",lb="["+sb+"]",ub=RegExp("^"+lb+lb+"*"),db=RegExp(lb+lb+"*$"),hb=function createMethod(er){return function(tr){var rr=String(ny(tr));return 1&er&&(rr=rr.replace(ub,"")),2&er&&(rr=rr.replace(db,"")),rr}},pb={start:hb(1),end:hb(2),trim:hb(3)},Ab=pb.trim,fb=Kv.parseFloat,gb=1/fb(sb+"-0")!=-1/0?function parseFloat(er){var tr=Ab(String(er)),rr=fb(tr);return 0===rr&&"-"==tr.charAt(0)?-0:rr}:fb;Py({global:!0,forced:parseFloat!=gb},{parseFloat:gb});var mb,_b,vb=Sy.parseFloat,yb=function toObject(er){return Object(ny(er))},bb=Array.isArray||function isArray(er){return"Array"==ey(er)},wb=Xy("species"),Sb=function arraySpeciesCreate(er,tr){var rr;return bb(er)&&("function"!=typeof(rr=er.constructor)||rr!==Array&&!bb(rr.prototype)?oy(rr)&&null===(rr=rr[wb])&&(rr=void 0):rr=void 0),new(void 0===rr?Array:rr)(0===tr?0:tr)},xb=[].push,kb=function createMethod(er){var tr=1==er,rr=2==er,nr=3==er,ir=4==er,or=6==er,ar=5==er||or;return function(sr,lr,cr,ur){for(var dr,hr,pr=yb(sr),Ar=ry(pr),fr=ky(lr,cr,3),gr=My(Ar.length),mr=0,_r=ur||Sb,vr=tr?_r(sr,gr):rr?_r(sr,0):void 0;gr>mr;mr++)if((ar||mr in Ar)&&(hr=fr(dr=Ar[mr],mr,pr),er))if(tr)vr[mr]=hr;else if(hr)switch(er){case 3:return!0;case 5:return dr;case 6:return mr;case 2:xb.call(vr,dr)}else if(ir)return!1;return or?-1:nr||ir?ir:vr}},Cb={forEach:kb(0),map:kb(1),filter:kb(2),some:kb(3),every:kb(4),find:kb(5),findIndex:kb(6)},Bb=function aFunction(er){return"function"==typeof er?er:void 0},Eb=function getBuiltIn(er,tr){return arguments.length<2?Bb(Sy[er])||Bb(Kv[er]):Sy[er]&&Sy[er][tr]||Kv[er]&&Kv[er][tr]},Nb=Eb("navigator","userAgent")||"",Lb=Kv.process,Tb=Lb&&Lb.versions,Pb=Tb&&Tb.v8;Pb?_b=(mb=Pb.split("."))[0]+mb[1]:Nb&&(!(mb=Nb.match(/Edge\/(\d+)/))||mb[1]>=74)&&(mb=Nb.match(/Chrome\/(\d+)/))&&(_b=mb[1]);var Fb=_b&&+_b,Ub=Xy("species"),Ib=function arrayMethodHasSpeciesSupport(er){return Fb>=51||!qv((function(){var tr=[];return(tr.constructor={})[Ub]=function(){return{foo:1}},1!==tr[er](Boolean).foo}))},Rb=Object.defineProperty,Mb={},Ob=function thrower(er){throw er},Qb=function arrayMethodUsesToLength(er,tr){if(ly(Mb,er))return Mb[er];tr||(tr={});var rr=[][er],nr=!!ly(tr,"ACCESSORS")&&tr.ACCESSORS,ir=ly(tr,0)?tr[0]:Ob,or=ly(tr,1)?tr[1]:void 0;return Mb[er]=!!rr&&!qv((function(){if(nr&&!Wv)return!0;var er={length:-1};nr?Rb(er,1,{enumerable:!0,get:Ob}):er[1]=1,rr.call(er,ir,or)}))},Db=Cb.map,jb=Ib("map"),Hb=Qb("map");Py({target:"Array",proto:!0,forced:!jb||!Hb},{map:function map(er){return Db(this,er,arguments.length>1?arguments[1]:void 0)}});var Gb=nb("Array").map,Vb=Array.prototype,zb=function map_1(er){var tr=er.map;return er===Vb||er instanceof Array&&tr===Vb.map?Gb:tr};Py({target:"Array",stat:!0},{isArray:bb});var Kb=Sy.Array.isArray,qb=Kb;var Wb=function _arrayWithHoles$1(er){if(qb(er))return er},Xb={},Yb=jv.getWeakData,Jb=jr.set,$b=jr.getterFor,Zb=Ai.find,ew=Ai.findIndex,tw=0,uncaughtFrozenStore=function(er){return er.frozen||(er.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(er,tr){return Zb(er.entries,(function(er){return er[0]===tr}))};UncaughtFrozenStore.prototype={get:function(er){var tr=findUncaughtFrozen(this,er);if(tr)return tr[1]},has:function(er){return!!findUncaughtFrozen(this,er)},set:function(er,tr){var rr=findUncaughtFrozen(this,er);rr?rr[1]=tr:this.entries.push([er,tr])},delete:function(er){var tr=ew(this.entries,(function(tr){return tr[0]===er}));return~tr&&this.entries.splice(tr,1),!!~tr}};var rw={getConstructor:function(er,tr,rr,nr){var ir=er((function(er,or){anInstance(er,ir,tr),Jb(er,{type:tr,id:tw++,frozen:void 0}),null!=or&&sl(or,er[nr],er,rr)})),or=$b(tr),define=function(er,tr,rr){var nr=or(er),ir=Yb(anObject(tr),!0);return!0===ir?uncaughtFrozenStore(nr).set(tr,rr):ir[nr.id]=rr,er};return redefineAll(ir.prototype,{delete:function(er){var tr=or(this);if(!isObject(er))return!1;var rr=Yb(er);return!0===rr?uncaughtFrozenStore(tr).delete(er):rr&&has(rr,tr.id)&&delete rr[tr.id]},has:function has$1(er){var tr=or(this);if(!isObject(er))return!1;var rr=Yb(er);return!0===rr?uncaughtFrozenStore(tr).has(er):rr&&has(rr,tr.id)}}),redefineAll(ir.prototype,rr?{get:function get(er){var tr=or(this);if(isObject(er)){var rr=Yb(er);return!0===rr?uncaughtFrozenStore(tr).get(er):rr?rr[tr.id]:void 0}},set:function set(er,tr){return define(this,er,tr)}}:{add:function add(er){return define(this,er,!0)}}),ir}},nw=(createCommonjsModule((function(er){var tr,nr=jr.enforce,ir=!rr.ActiveXObject&&"ActiveXObject"in rr,or=Object.isExtensible,wrapper=function(er){return function WeakMap(){return er(this,arguments.length?arguments[0]:void 0)}},ar=er.exports=function(er,tr,nr){var ir=-1!==er.indexOf("Map"),or=-1!==er.indexOf("Weak"),ar=ir?"set":"add",sr=rr[er],lr=sr&&sr.prototype,cr=sr,ur={},fixMethod=function(er){var tr=lr[er];Hr(lr,er,"add"==er?function add(er){return tr.call(this,0===er?0:er),this}:"delete"==er?function(er){return!(or&&!isObject(er))&&tr.call(this,0===er?0:er)}:"get"==er?function get(er){return or&&!isObject(er)?void 0:tr.call(this,0===er?0:er)}:"has"==er?function has(er){return!(or&&!isObject(er))&&tr.call(this,0===er?0:er)}:function set(er,rr){return tr.call(this,0===er?0:er,rr),this})};if(zn(er,"function"!=typeof sr||!(or||lr.forEach&&!fails((function(){(new sr).entries().next()})))))cr=nr.getConstructor(tr,er,ir,ar),jv.REQUIRED=!0;else if(zn(er,!0)){var dr=new cr,hr=dr[ar](or?{}:-0,1)!=dr,pr=fails((function(){dr.has(1)})),Ar=checkCorrectnessOfIteration((function(er){new sr(er)})),fr=!or&&fails((function(){for(var er=new sr,tr=5;tr--;)er[ar](tr,tr);return!er.has(-0)}));Ar||((cr=tr((function(tr,rr){anInstance(tr,cr,er);var nr=inheritIfRequired(new sr,tr,cr);return null!=rr&&sl(rr,nr[ar],nr,ir),nr}))).prototype=lr,lr.constructor=cr),(pr||fr)&&(fixMethod("delete"),fixMethod("has"),ir&&fixMethod("get")),(fr||hr)&&fixMethod(ar),or&&lr.clear&&delete lr.clear}return ur[er]=cr,_export({global:!0,forced:cr!=sr},ur),setToStringTag(cr,er),or||nr.setStrong(cr,er,ir),cr}("WeakMap",wrapper,rw);if(Br&&ir){tr=rw.getConstructor(wrapper,"WeakMap",!0),jv.REQUIRED=!0;var sr=ar.prototype,lr=sr.delete,cr=sr.has,ur=sr.get,dr=sr.set;redefineAll(sr,{delete:function(er){if(isObject(er)&&!or(er)){var rr=nr(this);return rr.frozen||(rr.frozen=new tr),lr.call(this,er)||rr.frozen.delete(er)}return lr.call(this,er)},has:function has(er){if(isObject(er)&&!or(er)){var rr=nr(this);return rr.frozen||(rr.frozen=new tr),cr.call(this,er)||rr.frozen.has(er)}return cr.call(this,er)},get:function get(er){if(isObject(er)&&!or(er)){var rr=nr(this);return rr.frozen||(rr.frozen=new tr),cr.call(this,er)?ur.call(this,er):rr.frozen.get(er)}return ur.call(this,er)},set:function set(er,rr){if(isObject(er)&&!or(er)){var ir=nr(this);ir.frozen||(ir.frozen=new tr),cr.call(this,er)?dr.call(this,er,rr):ir.frozen.set(er,rr)}else dr.call(this,er,rr);return this}})}})),Function.toString);"function"!=typeof Qy.inspectSource&&(Qy.inspectSource=function(er){return nw.call(er)});var iw,ow,aw,sw=Qy.inspectSource,lw=Kv.WeakMap,cw="function"==typeof lw&&/native code/.test(sw(lw)),uw=Dy("keys"),dw=function sharedKey(er){return uw[er]||(uw[er]=Gy(er))},hw={},pw=Kv.WeakMap;if(cw){var Aw=new pw,fw=Aw.get,gw=Aw.has,mw=Aw.set;iw=function set(er,tr){return mw.call(Aw,er,tr),tr},ow=function get(er){return fw.call(Aw,er)||{}},aw=function has(er){return gw.call(Aw,er)}}else{var _w=dw("state");hw[_w]=!0,iw=function set(er,tr){return Ny(er,_w,tr),tr},ow=function get(er){return ly(er,_w)?er[_w]:{}},aw=function has(er){return ly(er,_w)}}var vw,yw,bw,ww={set:iw,get:ow,has:aw,enforce:function enforce(er){return aw(er)?ow(er):iw(er,{})},getterFor:function getterFor(er){return function(tr){var rr;if(!oy(tr)||(rr=ow(tr)).type!==er)throw TypeError("Incompatible receiver, "+er+" required");return rr}}},Sw=!qv((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),xw=dw("IE_PROTO"),kw=Object.prototype,Cw=Sw?Object.getPrototypeOf:function(er){return er=yb(er),ly(er,xw)?er[xw]:"function"==typeof er.constructor&&er instanceof er.constructor?er.constructor.prototype:er instanceof Object?kw:null},Bw=(Xy("iterator"),!1);[].keys&&("next"in(bw=[].keys())?(yw=Cw(Cw(bw)))!==Object.prototype&&(vw=yw):Bw=!0),null==vw&&(vw={});var Ew={IteratorPrototype:vw,BUGGY_SAFARI_ITERATORS:Bw};_export({target:"Object",stat:!0,forced:!nr,sham:!nr},{defineProperties:Si});var Nw,Lw=Math.max,Tw=Math.min,Pw=function toAbsoluteIndex(er,tr){var rr=Iy(er);return rr<0?Lw(rr+tr,0):Tw(rr,tr)},Fw=function createMethod(er){return function(tr,rr,nr){var ir,or=iy(tr),ar=My(or.length),sr=Pw(nr,ar);if(er&&rr!=rr){for(;ar>sr;)if((ir=or[sr++])!=ir)return!0}else for(;ar>sr;sr++)if((er||sr in or)&&or[sr]===rr)return er||sr||0;return!er&&-1}},Uw={includes:Fw(!0),indexOf:Fw(!1)},Iw=Uw.indexOf,Rw=function objectKeysInternal(er,tr){var rr,nr=iy(er),ir=0,or=[];for(rr in nr)!ly(hw,rr)&&ly(nr,rr)&&or.push(rr);for(;tr.length>ir;)ly(nr,rr=tr[ir++])&&(~Iw(or,rr)||or.push(rr));return or},Mw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ow=Object.keys||function keys(er){return Rw(er,Mw)},Qw=Wv?Object.defineProperties:function defineProperties(er,tr){Cy(er);for(var rr,nr=Ow(tr),ir=nr.length,or=0;ir>or;)Ey.f(er,rr=nr[or++],tr[rr]);return er},Dw=Eb("document","documentElement"),jw=dw("IE_PROTO"),Hw=function EmptyConstructor(){},Gw=function scriptTag(er){return"<script>"+er+"</"+"script>"},Vw=function NullProtoObject(){try{Nw=document.domain&&new ActiveXObject("htmlfile")}catch(er){}Vw=Nw?function NullProtoObjectViaActiveX(er){er.write(Gw("")),er.close();var tr=er.parentWindow.Object;return er=null,tr}(Nw):function NullProtoObjectViaIFrame(){var er,tr=hy("iframe");return tr.style.display="none",Dw.appendChild(tr),tr.src=String("javascript:"),(er=tr.contentWindow.document).open(),er.write(Gw("document.F=Object")),er.close(),er.F}();for(var er=Mw.length;er--;)delete Vw.prototype[Mw[er]];return Vw()};hw[jw]=!0;var zw=Object.create||function create(er,tr){var rr;return null!==er?(Hw.prototype=Cy(er),rr=new Hw,Hw.prototype=null,rr[jw]=er):rr=Vw(),void 0===tr?rr:Qw(rr,tr)},Kw={};Kw[Xy("toStringTag")]="z";var qw="[object z]"===String(Kw),Ww=Xy("toStringTag"),Xw="Arguments"==ey(function(){return arguments}()),Yw=qw?ey:function(er){var tr,rr,nr;return void 0===er?"Undefined":null===er?"Null":"string"==typeof(rr=function tryGet(er,tr){try{return er[tr]}catch(er){}}(tr=Object(er),Ww))?rr:Xw?ey(tr):"Object"==(nr=ey(tr))&&"function"==typeof tr.callee?"Arguments":nr},Jw=qw?{}.toString:function toString(){return"[object "+Yw(this)+"]"},$w=Ey.f,Zw=Xy("toStringTag"),eS=function setToStringTag(er,tr,rr,nr){if(er){var ir=rr?er:er.prototype;ly(ir,Zw)||$w(ir,Zw,{configurable:!0,value:tr}),nr&&!qw&&Ny(ir,"toString",Jw)}},tS=Ew.IteratorPrototype,rS=function returnThis(){return this},nS=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 Cy(rr),function aPossiblePrototype(er){if(!oy(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),iS=function redefine(er,tr,rr,nr){nr&&nr.enumerable?er[tr]=rr:Ny(er,tr,rr)},oS=Ew.IteratorPrototype,aS=Ew.BUGGY_SAFARI_ITERATORS,sS=Xy("iterator"),lS="keys",cS="values",uS="entries",dS=function returnThis(){return this},hS=function defineIterator(er,tr,rr,nr,ir,or,ar){!function createIteratorConstructor(er,tr,rr){var nr=tr+" Iterator";er.prototype=zw(tS,{next:$v(1,rr)}),eS(er,nr,!1,!0),Xb[nr]=rS}(rr,tr,nr);var sr,lr,cr,ur=function getIterationMethod(er){if(er===ir&&fr)return fr;if(!aS&&er in pr)return pr[er];switch(er){case lS:return function keys(){return new rr(this,er)};case cS:return function values(){return new rr(this,er)};case uS:return function entries(){return new rr(this,er)}}return function(){return new rr(this)}},dr=tr+" Iterator",hr=!1,pr=er.prototype,Ar=pr[sS]||pr["@@iterator"]||ir&&pr[ir],fr=!aS&&Ar||ur(ir),gr="Array"==tr&&pr.entries||Ar;if(gr&&(sr=Cw(gr.call(new er)),oS!==Object.prototype&&sr.next&&(eS(sr,dr,!0,!0),Xb[dr]=dS)),ir==cS&&Ar&&Ar.name!==cS&&(hr=!0,fr=function values(){return Ar.call(this)}),ar&&pr[sS]!==fr&&Ny(pr,sS,fr),Xb[tr]=fr,ir)if(lr={values:ur(cS),keys:or?fr:ur(lS),entries:ur(uS)},ar)for(cr in lr)(aS||hr||!(cr in pr))&&iS(pr,cr,lr[cr]);else Py({target:tr,proto:!0,forced:aS||hr},lr);return lr},pS="Array Iterator",AS=ww.set,fS=ww.getterFor(pS);hS(Array,"Array",(function(er,tr){AS(this,{type:pS,target:iy(er),index:0,kind:tr})}),(function(){var er=fS(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");Xb.Arguments=Xb.Array;var gS=Xy("toStringTag");for(var mS in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var _S=Kv[mS],vS=_S&&_S.prototype;vS&&Yw(vS)!==gS&&Ny(vS,gS,mS),Xb[mS]=Xb.Array}var yS=function createMethod(er){return function(tr,rr){var nr,ir,or=String(ny(tr)),ar=Iy(rr),sr=or.length;return ar<0||ar>=sr?er?"":void 0:(nr=or.charCodeAt(ar))<55296||nr>56319||ar+1===sr||(ir=or.charCodeAt(ar+1))<56320||ir>57343?er?or.charAt(ar):nr:er?or.slice(ar,ar+2):ir-56320+(nr-55296<<10)+65536}},bS={codeAt:yS(!1),charAt:yS(!0)}.charAt,wS="String Iterator",SS=ww.set,xS=ww.getterFor(wS);hS(String,"String",(function(er){SS(this,{type:wS,string:String(er),index:0})}),(function next(){var er,tr=xS(this),rr=tr.string,nr=tr.index;return nr>=rr.length?{value:void 0,done:!0}:(er=bS(rr,nr),tr.index+=er.length,{value:er,done:!1})}));var kS=Xy("iterator"),CS=function getIteratorMethod(er){if(null!=er)return er[kS]||er["@@iterator"]||Xb[Yw(er)]},BS=function getIterator(er){var tr=CS(er);if("function"!=typeof tr)throw TypeError(String(er)+" is not iterable");return Cy(tr.call(er))},ES=Xy("iterator"),NS=function isIterable(er){var tr=Object(er);return void 0!==tr[ES]||"@@iterator"in tr||Xb.hasOwnProperty(Yw(tr))},LS=function createProperty(er,tr,rr){var nr=ay(tr);nr in er?Ey.f(er,nr,$v(0,rr)):er[nr]=rr},TS=Xy("isConcatSpreadable"),PS=9007199254740991,FS="Maximum allowed index exceeded",US=Fb>=51||!qv((function(){var er=[];return er[TS]=!1,er.concat()[0]!==er})),IS=Ib("concat"),RS=function isConcatSpreadable(er){if(!oy(er))return!1;var tr=er[TS];return void 0!==tr?!!tr:bb(er)};Py({target:"Array",proto:!0,forced:!US||!IS},{concat:function concat(er){var tr,rr,nr,ir,or,ar=yb(this),sr=Sb(ar,0),lr=0;for(tr=-1,nr=arguments.length;tr<nr;tr++)if(RS(or=-1===tr?ar:arguments[tr])){if(lr+(ir=My(or.length))>PS)throw TypeError(FS);for(rr=0;rr<ir;rr++,lr++)rr in or&&LS(sr,lr,or[rr])}else{if(lr>=PS)throw TypeError(FS);LS(sr,lr++,or)}return sr.length=lr,sr}});var MS=Mw.concat("length","prototype"),OS={f:Object.getOwnPropertyNames||function getOwnPropertyNames(er){return Rw(er,MS)}},QS=OS.f,DS={}.toString,jS="object"==("undefined"==typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],HS={f:function getOwnPropertyNames(er){return jS&&"[object Window]"==DS.call(er)?function getWindowNames(er){try{return QS(er)}catch(er){return jS.slice()}}(er):QS(iy(er))}},GS={f:Object.getOwnPropertySymbols},VS={f:Xy},zS=Ey.f,KS=function defineWellKnownSymbol(er){var tr=Sy.Symbol||(Sy.Symbol={});ly(tr,er)||zS(tr,er,{value:VS.f(er)})},qS=Cb.forEach,WS=dw("hidden"),XS="Symbol",YS=Xy("toPrimitive"),JS=ww.set,$S=ww.getterFor(XS),ZS=Object.prototype,ex=Kv.Symbol,tx=Eb("JSON","stringify"),rx=fy.f,nx=Ey.f,ix=HS.f,ox=Jv.f,ax=Dy("symbols"),sx=Dy("op-symbols"),lx=Dy("string-to-symbol-registry"),cx=Dy("symbol-to-string-registry"),ux=Dy("wks"),dx=Kv.QObject,hx=!dx||!dx.prototype||!dx.prototype.findChild,px=Wv&&qv((function(){return 7!=zw(nx({},"a",{get:function get(){return nx(this,"a",{value:7}).a}})).a}))?function(er,tr,rr){var nr=rx(ZS,tr);nr&&delete ZS[tr],nx(er,tr,rr),nr&&er!==ZS&&nx(ZS,tr,nr)}:nx,Ax=function wrap(er,tr){var rr=ax[er]=zw(ex.prototype);return JS(rr,{type:XS,tag:er,description:tr}),Wv||(rr.description=tr),rr},gx=zy?function(er){return"symbol"==_typeof(er)}:function(er){return Object(er)instanceof ex},mx=function defineProperty(er,tr,rr){er===ZS&&mx(sx,tr,rr),Cy(er);var nr=ay(tr,!0);return Cy(rr),ly(ax,nr)?(rr.enumerable?(ly(er,WS)&&er[WS][nr]&&(er[WS][nr]=!1),rr=zw(rr,{enumerable:$v(0,!1)})):(ly(er,WS)||nx(er,WS,$v(1,{})),er[WS][nr]=!0),px(er,nr,rr)):nx(er,nr,rr)},_x=function defineProperties(er,tr){Cy(er);var rr=iy(tr),nr=Ow(rr).concat(wx(rr));return qS(nr,(function(tr){Wv&&!vx.call(rr,tr)||mx(er,tr,rr[tr])})),er},vx=function propertyIsEnumerable(er){var tr=ay(er,!0),rr=ox.call(this,tr);return!(this===ZS&&ly(ax,tr)&&!ly(sx,tr))&&(!(rr||!ly(this,tr)||!ly(ax,tr)||ly(this,WS)&&this[WS][tr])||rr)},yx=function getOwnPropertyDescriptor(er,tr){var rr=iy(er),nr=ay(tr,!0);if(rr!==ZS||!ly(ax,nr)||ly(sx,nr)){var ir=rx(rr,nr);return!ir||!ly(ax,nr)||ly(rr,WS)&&rr[WS][nr]||(ir.enumerable=!0),ir}},bx=function getOwnPropertyNames(er){var tr=ix(iy(er)),rr=[];return qS(tr,(function(er){ly(ax,er)||ly(hw,er)||rr.push(er)})),rr},wx=function getOwnPropertySymbols(er){var tr=er===ZS,rr=ix(tr?sx:iy(er)),nr=[];return qS(rr,(function(er){!ly(ax,er)||tr&&!ly(ZS,er)||nr.push(ax[er])})),nr};if(Vy||(iS((ex=function _Symbol(){if(this instanceof ex)throw TypeError("Symbol is not a constructor");var er=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,tr=Gy(er),rr=function setter(er){this===ZS&&setter.call(sx,er),ly(this,WS)&&ly(this[WS],tr)&&(this[WS][tr]=!1),px(this,tr,$v(1,er))};return Wv&&hx&&px(ZS,tr,{configurable:!0,set:rr}),Ax(tr,er)}).prototype,"toString",(function toString(){return $S(this).tag})),iS(ex,"withoutSetter",(function(er){return Ax(Gy(er),er)})),Jv.f=vx,Ey.f=mx,fy.f=yx,OS.f=HS.f=bx,GS.f=wx,VS.f=function(er){return Ax(Xy(er),er)},Wv&&nx(ex.prototype,"description",{configurable:!0,get:function description(){return $S(this).description}})),Py({global:!0,wrap:!0,forced:!Vy,sham:!Vy},{Symbol:ex}),qS(Ow(ux),(function(er){KS(er)})),Py({target:XS,stat:!0,forced:!Vy},{for:function _for(er){var tr=String(er);if(ly(lx,tr))return lx[tr];var rr=ex(tr);return lx[tr]=rr,cx[rr]=tr,rr},keyFor:function keyFor(er){if(!gx(er))throw TypeError(er+" is not a symbol");if(ly(cx,er))return cx[er]},useSetter:function useSetter(){hx=!0},useSimple:function useSimple(){hx=!1}}),Py({target:"Object",stat:!0,forced:!Vy,sham:!Wv},{create:function create(er,tr){return void 0===tr?zw(er):_x(zw(er),tr)},defineProperty:mx,defineProperties:_x,getOwnPropertyDescriptor:yx}),Py({target:"Object",stat:!0,forced:!Vy},{getOwnPropertyNames:bx,getOwnPropertySymbols:wx}),Py({target:"Object",stat:!0,forced:qv((function(){GS.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(er){return GS.f(yb(er))}}),tx){var Sx=!Vy||qv((function(){var er=ex();return"[null]"!=tx([er])||"{}"!=tx({a:er})||"{}"!=tx(Object(er))}));Py({target:"JSON",stat:!0,forced:Sx},{stringify:function stringify(er,tr,rr){for(var nr,ir=[er],or=1;arguments.length>or;)ir.push(arguments[or++]);if(nr=tr,(oy(tr)||void 0!==er)&&!gx(er))return bb(tr)||(tr=function replacer(er,tr){if("function"==typeof nr&&(tr=nr.call(this,er,tr)),!gx(tr))return tr}),ir[1]=tr,tx.apply(null,ir)}})}ex.prototype[YS]||Ny(ex.prototype,YS,ex.prototype.valueOf),eS(ex,XS),hw[WS]=!0,KS("asyncIterator"),KS("hasInstance"),KS("isConcatSpreadable"),KS("iterator"),KS("match"),KS("matchAll"),KS("replace"),KS("search"),KS("species"),KS("split"),KS("toPrimitive"),KS("toStringTag"),KS("unscopables"),eS(Math,"Math",!0),eS(Kv.JSON,"JSON",!0);var xx=Sy.Symbol;KS("asyncDispose"),KS("dispose"),KS("observable"),KS("patternMatch"),KS("replaceAll");var kx=xx;var Cx=function _iterableToArrayLimit$1(er,tr){if(void 0!==kx&&NS(Object(er))){var rr=[],nr=!0,ir=!1,or=void 0;try{for(var ar,sr=BS(er);!(nr=(ar=sr.next()).done)&&(rr.push(ar.value),!tr||rr.length!==tr);nr=!0);}catch(er){ir=!0,or=er}finally{try{nr||null==sr.return||sr.return()}finally{if(ir)throw or}}return rr}},Bx=!checkCorrectnessOfIteration((function(er){Array.from(er)}));_export({target:"Array",stat:!0,forced:Bx},{from:Uc});var Ex=function callWithSafeIterationClosing(er,tr,rr,nr){try{return nr?tr(Cy(rr)[0],rr[1]):tr(rr)}catch(tr){var ir=er.return;throw void 0!==ir&&Cy(ir.call(er)),tr}},Nx=Xy("iterator"),Lx=Array.prototype,Tx=function isArrayIteratorMethod(er){return void 0!==er&&(Xb.Array===er||Lx[Nx]===er)},Px=Xy("iterator"),Fx=!1;try{var Ux=0,Ix={next:function next(){return{done:!!Ux++}},return:function _return(){Fx=!0}};Ix[Px]=function(){return this},Array.from(Ix,(function(){throw 2}))}catch(er){}var Rx=function checkCorrectnessOfIteration(er,tr){if(!tr&&!Fx)return!1;var rr=!1;try{var nr={};nr[Px]=function(){return{next:function next(){return{done:rr=!0}}}},er(nr)}catch(er){}return rr},Mx=!Rx((function(er){Array.from(er)}));Py({target:"Array",stat:!0,forced:Mx},{from:function from(er){var tr,rr,nr,ir,or,ar,sr=yb(er),lr="function"==typeof this?this:Array,cr=arguments.length,ur=cr>1?arguments[1]:void 0,dr=void 0!==ur,hr=CS(sr),pr=0;if(dr&&(ur=ky(ur,cr>2?arguments[2]:void 0,2)),null==hr||lr==Array&&Tx(hr))for(rr=new lr(tr=My(sr.length));tr>pr;pr++)ar=dr?ur(sr[pr],pr):sr[pr],LS(rr,pr,ar);else for(or=(ir=hr.call(sr)).next,rr=new lr;!(nr=or.call(ir)).done;pr++)ar=dr?Ex(ir,ur,[nr.value,pr],!0):nr.value,LS(rr,pr,ar);return rr.length=pr,rr}});var Ox=Sy.Array.from,Qx=Ox,Dx=Ib("slice"),jx=Qb("slice",{ACCESSORS:!0,0:0,1:2}),Hx=Xy("species"),Gx=[].slice,Vx=Math.max;Py({target:"Array",proto:!0,forced:!Dx||!jx},{slice:function slice(er,tr){var rr,nr,ir,or=iy(this),ar=My(or.length),sr=Pw(er,ar),lr=Pw(void 0===tr?ar:tr,ar);if(bb(or)&&("function"!=typeof(rr=or.constructor)||rr!==Array&&!bb(rr.prototype)?oy(rr)&&null===(rr=rr[Hx])&&(rr=void 0):rr=void 0,rr===Array||void 0===rr))return Gx.call(or,sr,lr);for(nr=new(void 0===rr?Array:rr)(Vx(lr-sr,0)),ir=0;sr<lr;sr++,ir++)sr in or&&LS(nr,ir,or[sr]);return nr.length=ir,nr}});var zx=nb("Array").slice,Kx=Array.prototype,qx=function slice_1(er){var tr=er.slice;return er===Kx||er instanceof Array&&tr===Kx.slice?zx:tr},Wx=qx;var Xx=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 Yx=function _unsupportedIterableToArray$1(er,tr){var rr;if(er){if("string"==typeof er)return Xx(er,tr);var nr=Wx(rr=Object.prototype.toString.call(er)).call(rr,8,-1);return"Object"===nr&&er.constructor&&(nr=er.constructor.name),"Map"===nr||"Set"===nr?Qx(er):"Arguments"===nr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nr)?Xx(er,tr):void 0}};var Jx=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 $x=function _slicedToArray$1(er,tr){return Wb(er)||Cx(er,tr)||Yx(er,tr)||Jx()};Py({target:"Object",stat:!0,forced:!Wv,sham:!Wv},{defineProperty:Ey.f});var Zx=createCommonjsModule((function(er){var tr=Sy.Object,rr=er.exports=function defineProperty(er,rr,nr){return tr.defineProperty(er,rr,nr)};tr.defineProperty.sham&&(rr.sham=!0)})),ek=Zx;Py({target:"Object",stat:!0,forced:!Wv,sham:!Wv},{defineProperties:Qw});var tk=createCommonjsModule((function(er){var tr=Sy.Object,rr=er.exports=function defineProperties(er,rr){return tr.defineProperties(er,rr)};tr.defineProperties.sham&&(rr.sham=!0)})),rk=Eb("Reflect","ownKeys")||function ownKeys(er){var tr=OS.f(Cy(er)),rr=GS.f;return rr?tr.concat(rr(er)):tr};Py({target:"Object",stat:!0,sham:!Wv},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(er){for(var tr,rr,nr=iy(er),ir=fy.f,or=rk(nr),ar={},sr=0;or.length>sr;)void 0!==(rr=ir(nr,tr=or[sr++]))&&LS(ar,tr,rr);return ar}});var nk=Sy.Object.getOwnPropertyDescriptors,ik=function arrayMethodIsStrict(er,tr){var rr=[][er];return!!rr&&qv((function(){rr.call(null,tr||function(){throw 1},1)}))},ok=Cb.forEach,ak=ik("forEach"),sk=Qb("forEach"),lk=ak&&sk?[].forEach:function forEach(er){return ok(this,er,arguments.length>1?arguments[1]:void 0)};Py({target:"Array",proto:!0,forced:[].forEach!=lk},{forEach:lk});var ck=nb("Array").forEach,uk=Array.prototype,dk={DOMTokenList:!0,NodeList:!0},hk=function forEach_1(er){var tr=er.forEach;return er===uk||er instanceof Array&&tr===uk.forEach||dk.hasOwnProperty(Yw(er))?ck:tr},pk=fy.f,Ak=qv((function(){pk(1)}));Py({target:"Object",stat:!0,forced:!Wv||Ak,sham:!Wv},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(er,tr){return pk(iy(er),tr)}});var fk=createCommonjsModule((function(er){var tr=Sy.Object,rr=er.exports=function getOwnPropertyDescriptor(er,rr){return tr.getOwnPropertyDescriptor(er,rr)};tr.getOwnPropertyDescriptor.sham&&(rr.sham=!0)})),gk=fk,mk=Cb.filter,_k=Ib("filter"),vk=Qb("filter");Py({target:"Array",proto:!0,forced:!_k||!vk},{filter:function filter(er){return mk(this,er,arguments.length>1?arguments[1]:void 0)}});var yk=nb("Array").filter,wk=Array.prototype,Sk=function filter_1(er){var tr=er.filter;return er===wk||er instanceof Array&&tr===wk.filter?yk:tr},xk=Sy.Object.getOwnPropertySymbols,kk=qv((function(){Ow(1)}));Py({target:"Object",stat:!0,forced:kk},{keys:function keys(er){return Ow(yb(er))}});var Ck=Sy.Object.keys,Bk=qd,Ek=!!nl&&fails((function(){nl.prototype.finally.call({then:function(){}},(function(){}))}));_export({target:"Promise",proto:!0,real:!0,forced:Ek},{finally:function(er){var tr=speciesConstructor(this,getBuiltIn("Promise")),rr="function"==typeof er;return this.then(rr?function(rr){return promiseResolve(tr,er()).then((function(){return rr}))}:er,rr?function(rr){return promiseResolve(tr,er()).then((function(){throw rr}))}:er)}}),"function"!=typeof nl||nl.prototype.finally||Hr(nl.prototype,"finally",getBuiltIn("Promise").prototype.finally);var Nk=Kv.Promise,Lk=function redefineAll(er,tr,rr){for(var nr in tr)rr&&rr.unsafe&&er[nr]?er[nr]=tr[nr]:iS(er,nr,tr[nr],rr);return er},Tk=Xy("species"),Pk=function setSpecies(er){var tr=Eb(er),rr=Ey.f;Wv&&tr&&!tr[Tk]&&rr(tr,Tk,{configurable:!0,get:function get(){return this}})},Fk=function anInstance(er,tr,rr){if(!(er instanceof tr))throw TypeError("Incorrect "+(rr?rr+" ":"")+"invocation");return er},Uk=createCommonjsModule((function(er){var tr=function Result(er,tr){this.stopped=er,this.result=tr};(er.exports=function(er,rr,nr,ir,or){var ar,sr,lr,cr,ur,dr,hr,pr=ky(rr,nr,ir?2:1);if(or)ar=er;else{if("function"!=typeof(sr=CS(er)))throw TypeError("Target is not iterable");if(Tx(sr)){for(lr=0,cr=My(er.length);cr>lr;lr++)if((ur=ir?pr(Cy(hr=er[lr])[0],hr[1]):pr(er[lr]))&&ur instanceof tr)return ur;return new tr(!1)}ar=sr.call(er)}for(dr=ar.next;!(hr=dr.call(ar)).done;)if("object"==_typeof(ur=Ex(ar,pr,hr.value,ir))&&ur&&ur instanceof tr)return ur;return new tr(!1)}).stop=function(er){return new tr(!0,er)}})),Ik=Xy("species"),Rk=function speciesConstructor(er,tr){var rr,nr=Cy(er).constructor;return void 0===nr||null==(rr=Cy(nr)[Ik])?tr:xy(rr)},Mk=!rr.setImmediate||!rr.clearImmediate;_export({global:!0,bind:!0,enumerable:!0,forced:Mk},{setImmediate:Ul.set,clearImmediate:Ul.clear});var Ok,Qk,Dk,jk=/(iphone|ipod|ipad).*applewebkit/i.test(Nb),Hk=Kv.location,Gk=Kv.setImmediate,Vk=Kv.clearImmediate,zk=Kv.process,Kk=Kv.MessageChannel,qk=Kv.Dispatch,Wk=0,Xk={},Yk="onreadystatechange",Jk=function run(er){if(Xk.hasOwnProperty(er)){var tr=Xk[er];delete Xk[er],tr()}},$k=function runner(er){return function(){Jk(er)}},Zk=function listener(er){Jk(er.data)},eC=function post(er){Kv.postMessage(er+"",Hk.protocol+"//"+Hk.host)};Gk&&Vk||(Gk=function setImmediate(er){for(var tr=[],rr=1;arguments.length>rr;)tr.push(arguments[rr++]);return Xk[++Wk]=function(){("function"==typeof er?er:Function(er)).apply(void 0,tr)},Ok(Wk),Wk},Vk=function clearImmediate(er){delete Xk[er]},"process"==ey(zk)?Ok=function defer(er){zk.nextTick($k(er))}:qk&&qk.now?Ok=function defer(er){qk.now($k(er))}:Kk&&!jk?(Dk=(Qk=new Kk).port2,Qk.port1.onmessage=Zk,Ok=ky(Dk.postMessage,Dk,1)):!Kv.addEventListener||"function"!=typeof postMessage||Kv.importScripts||qv(eC)||"file:"===Hk.protocol?Ok=Yk in hy("script")?function defer(er){Dw.appendChild(hy("script")).onreadystatechange=function(){Dw.removeChild(this),Jk(er)}}:function defer(er){setTimeout($k(er),0)}:(Ok=eC,Kv.addEventListener("message",Zk,!1)));var tC,rC,nC,iC,oC,aC,sC,lC,cC={set:Gk,clear:Vk},uC=fy.f,dC=cC.set,hC=Kv.MutationObserver||Kv.WebKitMutationObserver,pC=Kv.process,AC=Kv.Promise,fC="process"==ey(pC),gC=uC(Kv,"queueMicrotask"),mC=gC&&gC.value;mC||(tC=function flush(){var er,tr;for(fC&&(er=pC.domain)&&er.exit();rC;){tr=rC.fn,rC=rC.next;try{tr()}catch(er){throw rC?iC():nC=void 0,er}}nC=void 0,er&&er.enter()},fC?iC=function notify(){pC.nextTick(tC)}:hC&&!jk?(oC=!0,aC=document.createTextNode(""),new hC(tC).observe(aC,{characterData:!0}),iC=function notify(){aC.data=oC=!oC}):AC&&AC.resolve?(sC=AC.resolve(void 0),lC=sC.then,iC=function notify(){lC.call(sC,tC)}):iC=function notify(){dC.call(Kv,tC)});var _C,vC,yC,wC=mC||function(er){var tr={fn:er,next:void 0};nC&&(nC.next=tr),rC||(rC=tr,iC()),nC=tr},SC=function PromiseCapability(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=xy(tr),this.reject=xy(rr)},xC={f:function f(er){return new SC(er)}},kC=function promiseResolve(er,tr){if(Cy(er),oy(tr)&&tr.constructor===er)return tr;var rr=xC.f(er);return(0,rr.resolve)(tr),rr.promise},CC=function perform(er){try{return{error:!1,value:er()}}catch(er){return{error:!0,value:er}}},BC=cC.set,EC=Xy("species"),NC="Promise",LC=ww.get,TC=ww.set,PC=ww.getterFor(NC),FC=Nk,UC=Kv.TypeError,IC=Kv.document,RC=Kv.process,MC=(Eb("fetch"),xC.f),OC=MC,QC="process"==ey(RC),DC=!!(IC&&IC.createEvent&&Kv.dispatchEvent),jC="unhandledrejection",HC=wy(NC,(function(){if(!(sw(FC)!==String(FC))){if(66===Fb)return!0;if(!QC&&"function"!=typeof PromiseRejectionEvent)return!0}if(!FC.prototype.finally)return!0;if(Fb>=51&&/native code/.test(FC))return!1;var er=FC.resolve(1),tr=function FakePromise(er){er((function(){}),(function(){}))};return(er.constructor={})[EC]=tr,!(er.then((function(){}))instanceof tr)})),GC=HC||!Rx((function(er){FC.all(er).catch((function(){}))})),VC=function isThenable(er){var tr;return!(!oy(er)||"function"!=typeof(tr=er.then))&&tr},zC=function notify(er,tr,rr){if(!tr.notified){tr.notified=!0;var nr=tr.reactions;wC((function(){for(var ir=tr.value,or=1==tr.state,ar=0;nr.length>ar;){var sr,lr,cr,ur=nr[ar++],dr=or?ur.ok:ur.fail,hr=ur.resolve,pr=ur.reject,Ar=ur.domain;try{dr?(or||(2===tr.rejection&&XC(er,tr),tr.rejection=1),!0===dr?sr=ir:(Ar&&Ar.enter(),sr=dr(ir),Ar&&(Ar.exit(),cr=!0)),sr===ur.promise?pr(UC("Promise-chain cycle")):(lr=VC(sr))?lr.call(sr,hr,pr):hr(sr)):pr(ir)}catch(er){Ar&&!cr&&Ar.exit(),pr(er)}}tr.reactions=[],tr.notified=!1,rr&&!tr.rejection&&qC(er,tr)}))}},KC=function dispatchEvent(er,tr,rr){var nr,ir;DC?((nr=IC.createEvent("Event")).promise=tr,nr.reason=rr,nr.initEvent(er,!1,!0),Kv.dispatchEvent(nr)):nr={promise:tr,reason:rr},(ir=Kv["on"+er])?ir(nr):er===jC&&function hostReportErrors(er,tr){var rr=Kv.console;rr&&rr.error&&(1===arguments.length?rr.error(er):rr.error(er,tr))}("Unhandled promise rejection",rr)},qC=function onUnhandled(er,tr){BC.call(Kv,(function(){var rr,nr=tr.value;if(WC(tr)&&(rr=CC((function(){QC?RC.emit("unhandledRejection",nr,er):KC(jC,er,nr)})),tr.rejection=QC||WC(tr)?2:1,rr.error))throw rr.value}))},WC=function isUnhandled(er){return 1!==er.rejection&&!er.parent},XC=function onHandleUnhandled(er,tr){BC.call(Kv,(function(){QC?RC.emit("rejectionHandled",er):KC("rejectionhandled",er,tr.value)}))},YC=function bind(er,tr,rr,nr){return function(ir){er(tr,rr,ir,nr)}},JC=function internalReject(er,tr,rr,nr){tr.done||(tr.done=!0,nr&&(tr=nr),tr.value=rr,tr.state=2,zC(er,tr,!0))},$C=function internalResolve(er,tr,rr,nr){if(!tr.done){tr.done=!0,nr&&(tr=nr);try{if(er===rr)throw UC("Promise can't be resolved itself");var ir=VC(rr);ir?wC((function(){var nr={done:!1};try{ir.call(rr,YC(internalResolve,er,nr,tr),YC(JC,er,nr,tr))}catch(rr){JC(er,nr,rr,tr)}})):(tr.value=rr,tr.state=1,zC(er,tr,!1))}catch(rr){JC(er,{done:!1},rr,tr)}}};HC&&(FC=function Promise(er){Fk(this,FC,NC),xy(er),_C.call(this);var tr=LC(this);try{er(YC($C,this,tr),YC(JC,this,tr))}catch(er){JC(this,tr,er)}},(_C=function Promise(er){TC(this,{type:NC,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Lk(FC.prototype,{then:function then(er,tr){var rr=PC(this),nr=MC(Rk(this,FC));return nr.ok="function"!=typeof er||er,nr.fail="function"==typeof tr&&tr,nr.domain=QC?RC.domain:void 0,rr.parent=!0,rr.reactions.push(nr),0!=rr.state&&zC(this,rr,!1),nr.promise},catch:function _catch(er){return this.then(void 0,er)}}),vC=function OwnPromiseCapability(){var er=new _C,tr=LC(er);this.promise=er,this.resolve=YC($C,er,tr),this.reject=YC(JC,er,tr)},xC.f=MC=function newPromiseCapability(er){return er===FC||er===yC?new vC(er):OC(er)}),Py({global:!0,wrap:!0,forced:HC},{Promise:FC}),eS(FC,NC,!1,!0),Pk(NC),yC=Eb(NC),Py({target:NC,stat:!0,forced:HC},{reject:function reject(er){var tr=MC(this);return tr.reject.call(void 0,er),tr.promise}}),Py({target:NC,stat:!0,forced:!0},{resolve:function resolve(er){return kC(this===yC?FC:this,er)}}),Py({target:NC,stat:!0,forced:GC},{all:function all(er){var tr=this,rr=MC(tr),nr=rr.resolve,ir=rr.reject,or=CC((function(){var rr=xy(tr.resolve),or=[],ar=0,sr=1;Uk(er,(function(er){var lr=ar++,cr=!1;or.push(void 0),sr++,rr.call(tr,er).then((function(er){cr||(cr=!0,or[lr]=er,--sr||nr(or))}),ir)})),--sr||nr(or)}));return or.error&&ir(or.value),rr.promise},race:function race(er){var tr=this,rr=MC(tr),nr=rr.reject,ir=CC((function(){var ir=xy(tr.resolve);Uk(er,(function(er){ir.call(tr,er).then(rr.resolve,nr)}))}));return ir.error&&nr(ir.value),rr.promise}}),Py({target:"Promise",stat:!0},{allSettled:function allSettled(er){var tr=this,rr=xC.f(tr),nr=rr.resolve,ir=rr.reject,or=CC((function(){var rr=xy(tr.resolve),ir=[],or=0,ar=1;Uk(er,(function(er){var sr=or++,lr=!1;ir.push(void 0),ar++,rr.call(tr,er).then((function(er){lr||(lr=!0,ir[sr]={status:"fulfilled",value:er},--ar||nr(ir))}),(function(er){lr||(lr=!0,ir[sr]={status:"rejected",reason:er},--ar||nr(ir))}))})),--ar||nr(ir)}));return or.error&&ir(or.value),rr.promise}});var ZC=!!Nk&&qv((function(){Nk.prototype.finally.call({then:function then(){}},(function(){}))}));Py({target:"Promise",proto:!0,real:!0,forced:ZC},{finally:function _finally(er){var tr=Rk(this,Eb("Promise")),rr="function"==typeof er;return this.then(rr?function(rr){return kC(tr,er()).then((function(){return rr}))}:er,rr?function(rr){return kC(tr,er()).then((function(){throw rr}))}:er)}});var eB=Sy.Promise,tB=ww.set,rB=ww.getterFor("AggregateError"),nB=function AggregateError(er,tr){var rr=this;if(!(rr instanceof nB))return new nB(er,tr);nS&&(rr=nS(new Error(tr),Cw(rr)));var nr=[];return Uk(er,nr.push,nr),Wv?tB(rr,{errors:nr,type:"AggregateError"}):rr.errors=nr,void 0!==tr&&Ny(rr,"message",String(tr)),rr};nB.prototype=zw(Error.prototype,{constructor:$v(5,nB),message:$v(5,""),name:$v(5,"AggregateError")}),Wv&&Ey.f(nB.prototype,"errors",{get:function get(){return rB(this).errors},configurable:!0}),Py({global:!0},{AggregateError:nB}),Py({target:"Promise",stat:!0},{try:function _try(er){var tr=xC.f(this),rr=CC(er);return(rr.error?tr.reject:tr.resolve)(rr.value),tr.promise}});var iB="No one promise resolved";Py({target:"Promise",stat:!0},{any:function any(er){var tr=this,rr=xC.f(tr),nr=rr.resolve,ir=rr.reject,or=CC((function(){var rr=xy(tr.resolve),or=[],ar=0,sr=1,lr=!1;Uk(er,(function(er){var cr=ar++,ur=!1;or.push(void 0),sr++,rr.call(tr,er).then((function(er){ur||lr||(lr=!0,nr(er))}),(function(er){ur||lr||(ur=!0,or[cr]=er,--sr||ir(new(Eb("AggregateError"))(or,iB)))}))})),--sr||ir(new(Eb("AggregateError"))(or,iB))}));return or.error&&ir(or.value),rr.promise}});var oB=eB;function asyncGeneratorStep$1(er,tr,rr,nr,ir,or,ar){try{var sr=er[or](ar),lr=sr.value}catch(er){return void rr(er)}sr.done?tr(lr):oB.resolve(lr).then(nr,ir)}var aB=function _asyncToGenerator$1(er){return function(){var tr=this,rr=arguments;return new oB((function(nr,ir){var or=er.apply(tr,rr);function _next(er){asyncGeneratorStep$1(or,nr,ir,_next,_throw,"next",er)}function _throw(er){asyncGeneratorStep$1(or,nr,ir,_next,_throw,"throw",er)}_next(void 0)}))}},sB=Zx;var lB=function _defineProperty$1(er,tr,rr){return tr in er?sB(er,tr,{value:rr,enumerable:!0,configurable:!0,writable:!0}):er[tr]=rr,er};var cB=function _classCallCheck$1(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),sB(er,nr.key,nr)}}var uB=function _createClass$1(er,tr,rr){return tr&&_defineProperties$1(er.prototype,tr),rr&&_defineProperties$1(er,rr),er},dB=nb("Array").concat,hB=Array.prototype,pB=function concat_1(er){var tr=er.concat;return er===hB||er instanceof Array&&tr===hB.concat?dB:tr},AB=function createMethod(er){return function(tr,rr,nr,ir){xy(rr);var or=yb(tr),ar=ry(or),sr=My(or.length),lr=er?sr-1:0,cr=er?-1:1;if(nr<2)for(;;){if(lr in ar){ir=ar[lr],lr+=cr;break}if(lr+=cr,er?lr<0:sr<=lr)throw TypeError("Reduce of empty array with no initial value")}for(;er?lr>=0:sr>lr;lr+=cr)lr in ar&&(ir=rr(ir,ar[lr],lr,or));return ir}},fB={left:AB(!1),right:AB(!0)}.left,gB=ik("reduce"),mB=Qb("reduce",{1:0});Py({target:"Array",proto:!0,forced:!gB||!mB},{reduce:function reduce(er){return fB(this,er,arguments.length,arguments.length>1?arguments[1]:void 0)}});var vB=nb("Array").reduce,yB=Array.prototype,wB=function reduce_1(er){var tr=er.reduce;return er===yB||er instanceof Array&&tr===yB.reduce?vB:tr};Py({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var SB=Sy.Date.now,xB=Cb.every,kB=ik("every"),CB=Qb("every");Py({target:"Array",proto:!0,forced:!kB||!CB},{every:function every(er){return xB(this,er,arguments.length>1?arguments[1]:void 0)}});var BB=nb("Array").every,EB=Array.prototype,NB=function every_1(er){var tr=er.every;return er===EB||er instanceof Array&&tr===EB.every?BB:tr},LB=eB,TB=[].slice,PB={},FB=function construct(er,tr,rr){if(!(tr in PB)){for(var nr=[],ir=0;ir<tr;ir++)nr[ir]="a["+ir+"]";PB[tr]=Function("C,a","return new C("+nr.join(",")+")")}return PB[tr](er,rr)},UB=Function.bind||function bind(er){var tr=xy(this),rr=TB.call(arguments,1),nr=function bound(){var ir=rr.concat(TB.call(arguments));return this instanceof nr?FB(tr,ir.length,ir):tr.apply(er,ir)};return oy(tr.prototype)&&(nr.prototype=tr.prototype),nr};Py({target:"Function",proto:!0},{bind:UB});var IB=nb("Function").bind,RB=Function.prototype,MB=function bind_1(er){var tr=er.bind;return er===RB||er instanceof Function&&tr===RB.bind?IB:tr};_export({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});for(var OB=createCommonjsModule((function(tr){(function(){var er,rr,nr,ir,or,ar;"undefined"!=typeof performance&&null!==performance&&performance.now?tr.exports=function(){return performance.now()}:null!=Qv&&Qv.hrtime?(tr.exports=function(){return(er()-or)/1e6},rr=Qv.hrtime,ir=(er=function getNanoSeconds(){var er;return 1e9*(er=rr())[0]+er[1]})(),ar=1e9*Qv.uptime(),or=ir-ar):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)})),QB="undefined"==typeof window?er:window,DB=["moz","webkit"],jB="AnimationFrame",HB=QB["request"+jB],GB=QB["cancel"+jB]||QB["cancelRequest"+jB],VB=0;!HB&&VB<DB.length;VB++)HB=QB[DB[VB]+"Request"+jB],GB=QB[DB[VB]+"Cancel"+jB]||QB[DB[VB]+"CancelRequest"+jB];if(!HB||!GB){var zB=0,KB=0,qB=[];HB=function raf(er){if(0===qB.length){var tr=OB(),rr=Math.max(0,16.666666666666668-(tr-zB));zB=rr+tr,setTimeout((function(){var er=qB.slice(0);qB.length=0;for(var tr=0;tr<er.length;tr++)if(!er[tr].cancelled)try{er[tr].callback(zB)}catch(er){setTimeout((function(){throw er}),0)}}),Math.round(rr))}return qB.push({handle:++KB,callback:er,cancelled:!1}),KB},GB=function caf(er){for(var tr=0;tr<qB.length;tr++)qB[tr].handle===er&&(qB[tr].cancelled=!0)}}var WB=function raf_1(er){return HB.call(QB,er)};WB.cancel=function cancel(){GB.apply(QB,arguments)},WB.polyfill=function polyfill(er){er||(er=QB),er.requestAnimationFrame=HB,er.cancelAnimationFrame=GB};var XB=pb.trim;Py({target:"String",proto:!0,forced:function stringTrimForced(er){return qv((function(){return!!sb[er]()||"
"!="
"[er]()||sb[er].name!==er}))}("trim")},{trim:function trim(){return XB(this)}});var YB=nb("String").trim,JB=String.prototype,$B=function trim_1(er){var tr=er.trim;return"string"==typeof er||er===JB||er instanceof String&&tr===JB.trim?YB:tr},ZB=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 ir=rr[nr].re,or=rr[nr].process,ar=ir.exec(er);if(ar){var sr=or(ar);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 ir=rr[nr].example,or=0;or<ir.length;or++)er[er.length]=ir[or];for(var ar in tr)er[er.length]=ar;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}},eE=Eb("Reflect","construct"),tE=qv((function(){function F(){}return!(eE((function(){}),[],F)instanceof F)})),rE=!qv((function(){eE((function(){}))})),nE=tE||rE;Py({target:"Reflect",stat:!0,forced:nE,sham:nE},{construct:function construct(er,tr){xy(er),Cy(tr);var rr=arguments.length<3?er:xy(arguments[2]);if(rE&&!tE)return eE(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(UB.apply(er,nr))}var ir=rr.prototype,or=zw(oy(ir)?ir:Object.prototype),ar=Function.apply.call(er,or,tr);return oy(ar)?ar:or}});var iE=Sy.Reflect.construct;Py({target:"Object",stat:!0,sham:!Wv},{create:zw});var oE=Sy.Object,aE=function create(er,tr){return oE.create(er,tr)};Py({target:"Object",stat:!0},{setPrototypeOf:nS});var sE=Sy.Object.setPrototypeOf,lE=createCommonjsModule((function(er){function _setPrototypeOf(tr,rr){return er.exports=_setPrototypeOf=sE||function _setPrototypeOf(er,tr){return er.__proto__=tr,er},_setPrototypeOf(tr,rr)}er.exports=_setPrototypeOf}));var cE=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=aE(tr&&tr.prototype,{constructor:{value:er,writable:!0,configurable:!0}}),tr&&lE(er,tr)},uE=VS.f("iterator"),dE=createCommonjsModule((function(er){function _typeof(tr){return er.exports=_typeof="function"==typeof kx&&"symbol"==typeof uE?function _typeof(er){return typeof er}:function _typeof(er){return er&&"function"==typeof kx&&er.constructor===kx&&er!==kx.prototype?"symbol":typeof er},_typeof(tr)}er.exports=_typeof}));var hE=function _assertThisInitialized$1(er){if(void 0===er)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return er};var pE=function _possibleConstructorReturn$1(er,tr){return!tr||"object"!==dE(tr)&&"function"!=typeof tr?hE(er):tr},AE=qv((function(){Cw(1)}));Py({target:"Object",stat:!0,forced:AE,sham:!Sw},{getPrototypeOf:function getPrototypeOf(er){return Cw(yb(er))}});var fE=Sy.Object.getPrototypeOf,gE=createCommonjsModule((function(er){function _getPrototypeOf(tr){return er.exports=_getPrototypeOf=sE?fE:function _getPrototypeOf(er){return er.__proto__||fE(er)},_getPrototypeOf(tr)}er.exports=_getPrototypeOf}));var mE=function _arrayWithoutHoles$1(er){if(qb(er))return Xx(er)};var _E=function _iterableToArray$1(er){if(void 0!==kx&&NS(Object(er)))return Qx(er)};var vE=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 yE=function _toConsumableArray$1(er){return mE(er)||_E(er)||Yx(er)||vE()},bE=Cb.some,wE=ik("some"),SE=Qb("some");Py({target:"Array",proto:!0,forced:!wE||!SE},{some:function some(er){return bE(this,er,arguments.length>1?arguments[1]:void 0)}});var xE=nb("Array").some,kE=Array.prototype,CE=function some_1(er){var tr=er.some;return er===kE||er instanceof Array&&tr===kE.some?xE:tr},BE=Uw.includes,EE=Qb("indexOf",{ACCESSORS:!0,1:0});Py({target:"Array",proto:!0,forced:!EE},{includes:function includes(er){return BE(this,er,arguments.length>1?arguments[1]:void 0)}});var NE=nb("Array").includes;Py({target:"String",proto:!0,forced:!Zy("includes")},{includes:function includes(er){return!!~String(ny(this)).indexOf(Jy(er),arguments.length>1?arguments[1]:void 0)}});var LE=nb("String").includes,TE=Array.prototype,PE=String.prototype,FE=function includes$2(er){var tr=er.includes;return er===TE||er instanceof Array&&tr===TE.includes?NE:"string"==typeof er||er===PE||er instanceof String&&tr===PE.includes?LE:tr},UE=Ox,IE=[].reverse,ME=[1,2];Py({target:"Array",proto:!0,forced:String(ME)===String(ME.reverse())},{reverse:function reverse(){return bb(this)&&(this.length=this.length),IE.call(this)}});var OE=nb("Array").reverse,QE=Array.prototype,DE=function reverse_1(er){var tr=er.reverse;return er===QE||er instanceof Array&&tr===QE.reverse?OE:tr},jE=Uw.indexOf,HE=[].indexOf,GE=!!HE&&1/[1].indexOf(1,-0)<0,VE=ik("indexOf"),zE=Qb("indexOf",{ACCESSORS:!0,1:0});Py({target:"Array",proto:!0,forced:GE||!VE||!zE},{indexOf:function indexOf(er){return GE?HE.apply(this,arguments)||0:jE(this,er,arguments.length>1?arguments[1]:void 0)}});var KE=nb("Array").indexOf,qE=Array.prototype,WE=function indexOf_1(er){var tr=er.indexOf;return er===qE||er instanceof Array&&tr===qE.indexOf?KE:tr},XE=fk;Py({target:"Reflect",stat:!0},{get:function get$3(er,tr){var rr,nr,ir=arguments.length<3?er:arguments[2];return Cy(er)===ir?er[tr]:(rr=fy.f(er,tr))?ly(rr,"value")?rr.value:void 0===rr.get?void 0:rr.get.call(ir):oy(nr=Cw(er))?get$3(nr,tr,ir):void 0}});var YE=Sy.Reflect.get;var JE=function _superPropBase$1(er,tr){for(;!Object.prototype.hasOwnProperty.call(er,tr)&&null!==(er=gE(er)););return er},$E=createCommonjsModule((function(er){function _get(tr,rr,nr){return"undefined"!=typeof Reflect&&YE?er.exports=_get=YE:er.exports=_get=function _get(er,tr,rr){var nr=JE(er,tr);if(nr){var ir=XE(nr,tr);return ir.get?ir.get.call(rr):ir.value}},_get(tr,rr,nr||tr)}er.exports=_get}));Py({target:"Array",proto:!0},{fill:function fill(er){for(var tr=yb(this),rr=My(tr.length),nr=arguments.length,ir=Pw(nr>1?arguments[1]:void 0,rr),or=nr>2?arguments[2]:void 0,ar=void 0===or?rr:Pw(or,rr);ar>ir;)tr[ir++]=er;return tr}});var ZE=nb("Array").fill,eN=Array.prototype,tN=function fill_1(er){var tr=er.fill;return er===eN||er instanceof Array&&tr===eN.fill?ZE:tr},rN=function t(er,tr){return(rN=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 r$1(er,tr){function i(){this.constructor=er}rN(er,tr),er.prototype=null===tr?Object.create(tr):(i.prototype=tr.prototype,new i)}function i$2(er,tr){var rr=er[0],nr=er[1];return[rr*Math.cos(tr)-nr*Math.sin(tr),rr*Math.sin(tr)+nr*Math.cos(tr)]}function a$1(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];for(var rr=0;rr<er.length;rr++)if("number"!=typeof er[rr])throw new Error("assertNumbers arguments["+rr+"] is not a number. "+_typeof(er[rr])+" == typeof "+er[rr]);return!0}var nN=Math.PI;function o$1(er,tr,rr){er.lArcFlag=0===er.lArcFlag?0:1,er.sweepFlag=0===er.sweepFlag?0:1;var nr=er.rX,ir=er.rY,or=er.x,ar=er.y;nr=Math.abs(er.rX),ir=Math.abs(er.rY);var sr=i$2([(tr-or)/2,(rr-ar)/2],-er.xRot/180*nN),lr=sr[0],cr=sr[1],ur=Math.pow(lr,2)/Math.pow(nr,2)+Math.pow(cr,2)/Math.pow(ir,2);1<ur&&(nr*=Math.sqrt(ur),ir*=Math.sqrt(ur)),er.rX=nr,er.rY=ir;var dr=Math.pow(nr,2)*Math.pow(cr,2)+Math.pow(ir,2)*Math.pow(lr,2),hr=(er.lArcFlag!==er.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(nr,2)*Math.pow(ir,2)-dr)/dr)),pr=nr*cr/ir*hr,Ar=-ir*lr/nr*hr,fr=i$2([pr,Ar],er.xRot/180*nN);er.cX=fr[0]+(tr+or)/2,er.cY=fr[1]+(rr+ar)/2,er.phi1=Math.atan2((cr-Ar)/ir,(lr-pr)/nr),er.phi2=Math.atan2((-cr-Ar)/ir,(-lr-pr)/nr),0===er.sweepFlag&&er.phi2>er.phi1&&(er.phi2-=2*nN),1===er.sweepFlag&&er.phi2<er.phi1&&(er.phi2+=2*nN),er.phi1*=180/nN,er.phi2*=180/nN}function s$1(er,tr,rr){a$1(er,tr,rr);var nr=er*er+tr*tr-rr*rr;if(0>nr)return[];if(0===nr)return[[er*rr/(er*er+tr*tr),tr*rr/(er*er+tr*tr)]];var ir=Math.sqrt(nr);return[[(er*rr+tr*ir)/(er*er+tr*tr),(tr*rr-er*ir)/(er*er+tr*tr)],[(er*rr-tr*ir)/(er*er+tr*tr),(tr*rr+er*ir)/(er*er+tr*tr)]]}var iN,oN=Math.PI/180;function c$1(er,tr,rr){return(1-rr)*er+rr*tr}function y$1(er,tr,rr,nr){return er+Math.cos(nr/180*nN)*tr+Math.sin(nr/180*nN)*rr}function p$1(er,tr,rr,nr){var ir=tr-er,or=rr-tr,ar=3*ir+3*(nr-rr)-6*or,sr=6*(or-ir),lr=3*ir;return Math.abs(ar)<1e-6?[-lr/sr]:function(er,tr,rr){void 0===rr&&(rr=1e-6);var nr=er*er/4-tr;if(nr<-rr)return[];if(nr<=rr)return[-er/2];var ir=Math.sqrt(nr);return[-er/2-ir,-er/2+ir]}(sr/ar,lr/ar,1e-6)}function m$1(er,tr,rr,nr,ir){var or=1-ir;return er*(or*or*or)+tr*(3*or*or*ir)+rr*(3*or*ir*ir)+nr*(ir*ir*ir)}!function(er){function r(){return u((function(er,tr,rr){return er.relative&&(void 0!==er.x1&&(er.x1+=tr),void 0!==er.y1&&(er.y1+=rr),void 0!==er.x2&&(er.x2+=tr),void 0!==er.y2&&(er.y2+=rr),void 0!==er.x&&(er.x+=tr),void 0!==er.y&&(er.y+=rr),er.relative=!1),er}))}function e(){var er=NaN,tr=NaN,rr=NaN,nr=NaN;return u((function(ir,or,ar){return ir.type&dN.SMOOTH_CURVE_TO&&(ir.type=dN.CURVE_TO,er=isNaN(er)?or:er,tr=isNaN(tr)?ar:tr,ir.x1=ir.relative?or-er:2*or-er,ir.y1=ir.relative?ar-tr:2*ar-tr),ir.type&dN.CURVE_TO?(er=ir.relative?or+ir.x2:ir.x2,tr=ir.relative?ar+ir.y2:ir.y2):(er=NaN,tr=NaN),ir.type&dN.SMOOTH_QUAD_TO&&(ir.type=dN.QUAD_TO,rr=isNaN(rr)?or:rr,nr=isNaN(nr)?ar:nr,ir.x1=ir.relative?or-rr:2*or-rr,ir.y1=ir.relative?ar-nr:2*ar-nr),ir.type&dN.QUAD_TO?(rr=ir.relative?or+ir.x1:ir.x1,nr=ir.relative?ar+ir.y1:ir.y1):(rr=NaN,nr=NaN),ir}))}function n(){var er=NaN,tr=NaN;return u((function(rr,nr,ir){if(rr.type&dN.SMOOTH_QUAD_TO&&(rr.type=dN.QUAD_TO,er=isNaN(er)?nr:er,tr=isNaN(tr)?ir:tr,rr.x1=rr.relative?nr-er:2*nr-er,rr.y1=rr.relative?ir-tr:2*ir-tr),rr.type&dN.QUAD_TO){er=rr.relative?nr+rr.x1:rr.x1,tr=rr.relative?ir+rr.y1:rr.y1;var or=rr.x1,ar=rr.y1;rr.type=dN.CURVE_TO,rr.x1=((rr.relative?0:nr)+2*or)/3,rr.y1=((rr.relative?0:ir)+2*ar)/3,rr.x2=(rr.x+2*or)/3,rr.y2=(rr.y+2*ar)/3}else er=NaN,tr=NaN;return rr}))}function u(er){var tr=0,rr=0,nr=NaN,ir=NaN;return function(or){if(isNaN(nr)&&!(or.type&dN.MOVE_TO))throw new Error("path must start with moveto");var ar=er(or,tr,rr,nr,ir);return or.type&dN.CLOSE_PATH&&(tr=nr,rr=ir),void 0!==or.x&&(tr=or.relative?tr+or.x:or.x),void 0!==or.y&&(rr=or.relative?rr+or.y:or.y),or.type&dN.MOVE_TO&&(nr=tr,ir=rr),ar}}function O(er,tr,rr,nr,ir,or){return a$1(er,tr,rr,nr,ir,or),u((function(ar,sr,lr,cr){var ur=ar.x1,dr=ar.x2,hr=ar.relative&&!isNaN(cr),pr=void 0!==ar.x?ar.x:hr?0:sr,Ar=void 0!==ar.y?ar.y:hr?0:lr;function T(er){return er*er}ar.type&dN.HORIZ_LINE_TO&&0!==tr&&(ar.type=dN.LINE_TO,ar.y=ar.relative?0:lr),ar.type&dN.VERT_LINE_TO&&0!==rr&&(ar.type=dN.LINE_TO,ar.x=ar.relative?0:sr),void 0!==ar.x&&(ar.x=ar.x*er+Ar*rr+(hr?0:ir)),void 0!==ar.y&&(ar.y=pr*tr+ar.y*nr+(hr?0:or)),void 0!==ar.x1&&(ar.x1=ar.x1*er+ar.y1*rr+(hr?0:ir)),void 0!==ar.y1&&(ar.y1=ur*tr+ar.y1*nr+(hr?0:or)),void 0!==ar.x2&&(ar.x2=ar.x2*er+ar.y2*rr+(hr?0:ir)),void 0!==ar.y2&&(ar.y2=dr*tr+ar.y2*nr+(hr?0:or));var fr=er*nr-tr*rr;if(void 0!==ar.xRot&&(1!==er||0!==tr||0!==rr||1!==nr))if(0===fr)delete ar.rX,delete ar.rY,delete ar.xRot,delete ar.lArcFlag,delete ar.sweepFlag,ar.type=dN.LINE_TO;else{var gr=ar.xRot*Math.PI/180,mr=Math.sin(gr),_r=Math.cos(gr),vr=1/T(ar.rX),yr=1/T(ar.rY),br=T(_r)*vr+T(mr)*yr,wr=2*mr*_r*(vr-yr),Sr=T(mr)*vr+T(_r)*yr,xr=br*nr*nr-wr*tr*nr+Sr*tr*tr,kr=wr*(er*nr+tr*rr)-2*(br*rr*nr+Sr*er*tr),Cr=br*rr*rr-wr*er*rr+Sr*er*er,Br=(Math.atan2(kr,xr-Cr)+Math.PI)%Math.PI/2,Er=Math.sin(Br),Nr=Math.cos(Br);ar.rX=Math.abs(fr)/Math.sqrt(xr*T(Nr)+kr*Er*Nr+Cr*T(Er)),ar.rY=Math.abs(fr)/Math.sqrt(xr*T(Er)-kr*Er*Nr+Cr*T(Nr)),ar.xRot=180*Br/Math.PI}return void 0!==ar.sweepFlag&&0>fr&&(ar.sweepFlag=+!ar.sweepFlag),ar}))}er.ROUND=function(er){function r(tr){return Math.round(tr*er)/er}return void 0===er&&(er=1e13),a$1(er),function(er){return void 0!==er.x1&&(er.x1=r(er.x1)),void 0!==er.y1&&(er.y1=r(er.y1)),void 0!==er.x2&&(er.x2=r(er.x2)),void 0!==er.y2&&(er.y2=r(er.y2)),void 0!==er.x&&(er.x=r(er.x)),void 0!==er.y&&(er.y=r(er.y)),void 0!==er.rX&&(er.rX=r(er.rX)),void 0!==er.rY&&(er.rY=r(er.rY)),er}},er.TO_ABS=r,er.TO_REL=function(){return u((function(er,tr,rr){return er.relative||(void 0!==er.x1&&(er.x1-=tr),void 0!==er.y1&&(er.y1-=rr),void 0!==er.x2&&(er.x2-=tr),void 0!==er.y2&&(er.y2-=rr),void 0!==er.x&&(er.x-=tr),void 0!==er.y&&(er.y-=rr),er.relative=!0),er}))},er.NORMALIZE_HVZ=function(er,tr,rr){return void 0===er&&(er=!0),void 0===tr&&(tr=!0),void 0===rr&&(rr=!0),u((function(nr,ir,or,ar,sr){if(isNaN(ar)&&!(nr.type&dN.MOVE_TO))throw new Error("path must start with moveto");return tr&&nr.type&dN.HORIZ_LINE_TO&&(nr.type=dN.LINE_TO,nr.y=nr.relative?0:or),rr&&nr.type&dN.VERT_LINE_TO&&(nr.type=dN.LINE_TO,nr.x=nr.relative?0:ir),er&&nr.type&dN.CLOSE_PATH&&(nr.type=dN.LINE_TO,nr.x=nr.relative?ar-ir:ar,nr.y=nr.relative?sr-or:sr),nr.type&dN.ARC&&(0===nr.rX||0===nr.rY)&&(nr.type=dN.LINE_TO,delete nr.rX,delete nr.rY,delete nr.xRot,delete nr.lArcFlag,delete nr.sweepFlag),nr}))},er.NORMALIZE_ST=e,er.QT_TO_C=n,er.INFO=u,er.SANITIZE=function(er){void 0===er&&(er=0),a$1(er);var tr=NaN,rr=NaN,nr=NaN,ir=NaN;return u((function(or,ar,sr,lr,cr){var ur=Math.abs,dr=!1,hr=0,pr=0;if(or.type&dN.SMOOTH_CURVE_TO&&(hr=isNaN(tr)?0:ar-tr,pr=isNaN(rr)?0:sr-rr),or.type&(dN.CURVE_TO|dN.SMOOTH_CURVE_TO)?(tr=or.relative?ar+or.x2:or.x2,rr=or.relative?sr+or.y2:or.y2):(tr=NaN,rr=NaN),or.type&dN.SMOOTH_QUAD_TO?(nr=isNaN(nr)?ar:2*ar-nr,ir=isNaN(ir)?sr:2*sr-ir):or.type&dN.QUAD_TO?(nr=or.relative?ar+or.x1:or.x1,ir=or.relative?sr+or.y1:or.y2):(nr=NaN,ir=NaN),or.type&dN.LINE_COMMANDS||or.type&dN.ARC&&(0===or.rX||0===or.rY||!or.lArcFlag)||or.type&dN.CURVE_TO||or.type&dN.SMOOTH_CURVE_TO||or.type&dN.QUAD_TO||or.type&dN.SMOOTH_QUAD_TO){var Ar=void 0===or.x?0:or.relative?or.x:or.x-ar,fr=void 0===or.y?0:or.relative?or.y:or.y-sr;hr=isNaN(nr)?void 0===or.x1?hr:or.relative?or.x:or.x1-ar:nr-ar,pr=isNaN(ir)?void 0===or.y1?pr:or.relative?or.y:or.y1-sr:ir-sr;var gr=void 0===or.x2?0:or.relative?or.x:or.x2-ar,mr=void 0===or.y2?0:or.relative?or.y:or.y2-sr;ur(Ar)<=er&&ur(fr)<=er&&ur(hr)<=er&&ur(pr)<=er&&ur(gr)<=er&&ur(mr)<=er&&(dr=!0)}return or.type&dN.CLOSE_PATH&&ur(ar-lr)<=er&&ur(sr-cr)<=er&&(dr=!0),dr?[]:or}))},er.MATRIX=O,er.ROTATE=function(er,tr,rr){void 0===tr&&(tr=0),void 0===rr&&(rr=0),a$1(er,tr,rr);var nr=Math.sin(er),ir=Math.cos(er);return O(ir,nr,-nr,ir,tr-tr*ir+rr*nr,rr-tr*nr-rr*ir)},er.TRANSLATE=function(er,tr){return void 0===tr&&(tr=0),a$1(er,tr),O(1,0,0,1,er,tr)},er.SCALE=function(er,tr){return void 0===tr&&(tr=er),a$1(er,tr),O(er,0,0,tr,0,0)},er.SKEW_X=function(er){return a$1(er),O(1,0,Math.atan(er),1,0,0)},er.SKEW_Y=function(er){return a$1(er),O(1,Math.atan(er),0,1,0,0)},er.X_AXIS_SYMMETRY=function(er){return void 0===er&&(er=0),a$1(er),O(-1,0,0,1,er,0)},er.Y_AXIS_SYMMETRY=function(er){return void 0===er&&(er=0),a$1(er),O(1,0,0,-1,0,er)},er.A_TO_C=function(){return u((function(er,tr,rr){return dN.ARC===er.type?function(er,tr,rr){var nr,ir,or,ar;er.cX||o$1(er,tr,rr);for(var sr=Math.min(er.phi1,er.phi2),lr=Math.max(er.phi1,er.phi2)-sr,cr=Math.ceil(lr/90),ur=new Array(cr),dr=tr,hr=rr,pr=0;pr<cr;pr++){var Ar=c$1(er.phi1,er.phi2,pr/cr),fr=c$1(er.phi1,er.phi2,(pr+1)/cr),gr=fr-Ar,mr=4/3*Math.tan(gr*oN/4),_r=[Math.cos(Ar*oN)-mr*Math.sin(Ar*oN),Math.sin(Ar*oN)+mr*Math.cos(Ar*oN)],vr=_r[0],yr=_r[1],br=[Math.cos(fr*oN),Math.sin(fr*oN)],wr=br[0],Sr=br[1],xr=[wr+mr*Math.sin(fr*oN),Sr-mr*Math.cos(fr*oN)],kr=xr[0],Cr=xr[1];ur[pr]={relative:er.relative,type:dN.CURVE_TO};var Br=function H(tr,rr){var nr=i$2([tr*er.rX,rr*er.rY],er.xRot),ir=nr[0],or=nr[1];return[er.cX+ir,er.cY+or]};nr=Br(vr,yr),ur[pr].x1=nr[0],ur[pr].y1=nr[1],ir=Br(kr,Cr),ur[pr].x2=ir[0],ur[pr].y2=ir[1],or=Br(wr,Sr),ur[pr].x=or[0],ur[pr].y=or[1],er.relative&&(ur[pr].x1-=dr,ur[pr].y1-=hr,ur[pr].x2-=dr,ur[pr].y2-=hr,ur[pr].x-=dr,ur[pr].y-=hr),dr=(ar=[ur[pr].x,ur[pr].y])[0],hr=ar[1]}return ur}(er,er.relative?0:tr,er.relative?0:rr):er}))},er.ANNOTATE_ARCS=function(){return u((function(er,tr,rr){return er.relative&&(tr=0,rr=0),dN.ARC===er.type&&o$1(er,tr,rr),er}))},er.CLONE=function T(){return function(er){var tr={};for(var rr in er)tr[rr]=er[rr];return tr}},er.CALCULATE_BOUNDS=function(){var er=r(),tr=n(),rr=e(),nr=u((function(ir,or,ar){var sr=rr(tr(er(function t(er){var tr={};for(var rr in er)tr[rr]=er[rr];return tr}(ir))));function O(er){er>nr.maxX&&(nr.maxX=er),er<nr.minX&&(nr.minX=er)}function T(er){er>nr.maxY&&(nr.maxY=er),er<nr.minY&&(nr.minY=er)}if(sr.type&dN.DRAWING_COMMANDS&&(O(or),T(ar)),sr.type&dN.HORIZ_LINE_TO&&O(sr.x),sr.type&dN.VERT_LINE_TO&&T(sr.y),sr.type&dN.LINE_TO&&(O(sr.x),T(sr.y)),sr.type&dN.CURVE_TO){O(sr.x),T(sr.y);for(var lr=0,cr=p$1(or,sr.x1,sr.x2,sr.x);lr<cr.length;lr++)0<(kr=cr[lr])&&1>kr&&O(m$1(or,sr.x1,sr.x2,sr.x,kr));for(var ur=0,dr=p$1(ar,sr.y1,sr.y2,sr.y);ur<dr.length;ur++)0<(kr=dr[ur])&&1>kr&&T(m$1(ar,sr.y1,sr.y2,sr.y,kr))}if(sr.type&dN.ARC){O(sr.x),T(sr.y),o$1(sr,or,ar);for(var hr=sr.xRot/180*Math.PI,pr=Math.cos(hr)*sr.rX,Ar=Math.sin(hr)*sr.rX,fr=-Math.sin(hr)*sr.rY,gr=Math.cos(hr)*sr.rY,mr=sr.phi1<sr.phi2?[sr.phi1,sr.phi2]:-180>sr.phi2?[sr.phi2+360,sr.phi1+360]:[sr.phi2,sr.phi1],_r=mr[0],vr=mr[1],yr=function I(er){var tr=er[0],rr=er[1],nr=180*Math.atan2(rr,tr)/Math.PI;return nr<_r?nr+360:nr},br=0,wr=s$1(fr,-pr,0).map(yr);br<wr.length;br++)(kr=wr[br])>_r&&kr<vr&&O(y$1(sr.cX,pr,fr,kr));for(var Sr=0,xr=s$1(gr,-Ar,0).map(yr);Sr<xr.length;Sr++){var kr;(kr=xr[Sr])>_r&&kr<vr&&T(y$1(sr.cY,Ar,gr,kr))}}return ir}));return nr.minX=1/0,nr.maxX=-1/0,nr.minY=1/0,nr.maxY=-1/0,nr}}(iN||(iN={}));var aN,sN=function(){function t(){}return t.prototype.round=function(er){return this.transform(iN.ROUND(er))},t.prototype.toAbs=function(){return this.transform(iN.TO_ABS())},t.prototype.toRel=function(){return this.transform(iN.TO_REL())},t.prototype.normalizeHVZ=function(er,tr,rr){return this.transform(iN.NORMALIZE_HVZ(er,tr,rr))},t.prototype.normalizeST=function(){return this.transform(iN.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(iN.QT_TO_C())},t.prototype.aToC=function(){return this.transform(iN.A_TO_C())},t.prototype.sanitize=function(er){return this.transform(iN.SANITIZE(er))},t.prototype.translate=function(er,tr){return this.transform(iN.TRANSLATE(er,tr))},t.prototype.scale=function(er,tr){return this.transform(iN.SCALE(er,tr))},t.prototype.rotate=function(er,tr,rr){return this.transform(iN.ROTATE(er,tr,rr))},t.prototype.matrix=function(er,tr,rr,nr,ir,or){return this.transform(iN.MATRIX(er,tr,rr,nr,ir,or))},t.prototype.skewX=function(er){return this.transform(iN.SKEW_X(er))},t.prototype.skewY=function(er){return this.transform(iN.SKEW_Y(er))},t.prototype.xSymmetry=function(er){return this.transform(iN.X_AXIS_SYMMETRY(er))},t.prototype.ySymmetry=function(er){return this.transform(iN.Y_AXIS_SYMMETRY(er))},t.prototype.annotateArcs=function(){return this.transform(iN.ANNOTATE_ARCS())},t}(),lN=function v(er){return" "===er||"\t"===er||"\r"===er||"\n"===er},cN=function l(er){return"0".charCodeAt(0)<=er.charCodeAt(0)&&er.charCodeAt(0)<="9".charCodeAt(0)},uN=function(er){function e(){var tr=er.call(this)||this;return tr.curNumber="",tr.curCommandType=-1,tr.curCommandRelative=!1,tr.canParseCommandOrComma=!0,tr.curNumberHasExp=!1,tr.curNumberHasExpDigits=!1,tr.curNumberHasDecimal=!1,tr.curArgs=[],tr}return r$1(e,er),e.prototype.finish=function(er){if(void 0===er&&(er=[]),this.parse(" ",er),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return er},e.prototype.parse=function(er,tr){var rr=this;void 0===tr&&(tr=[]);for(var nr=function i(er){tr.push(er),rr.curArgs.length=0,rr.canParseCommandOrComma=!0},ir=0;ir<er.length;ir++){var or=er[ir],ar=!(this.curCommandType!==dN.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),sr=cN(or)&&("0"===this.curNumber&&"0"===or||ar);if(!cN(or)||sr)if("e"!==or&&"E"!==or)if("-"!==or&&"+"!==or||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==or||this.curNumberHasExp||this.curNumberHasDecimal||ar){if(this.curNumber&&-1!==this.curCommandType){var lr=Number(this.curNumber);if(isNaN(lr))throw new SyntaxError("Invalid number ending at "+ir);if(this.curCommandType===dN.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>lr)throw new SyntaxError('Expected positive number, got "'+lr+'" at index "'+ir+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+ir+'"');this.curArgs.push(lr),this.curArgs.length===hN[this.curCommandType]&&(dN.HORIZ_LINE_TO===this.curCommandType?nr({type:dN.HORIZ_LINE_TO,relative:this.curCommandRelative,x:lr}):dN.VERT_LINE_TO===this.curCommandType?nr({type:dN.VERT_LINE_TO,relative:this.curCommandRelative,y:lr}):this.curCommandType===dN.MOVE_TO||this.curCommandType===dN.LINE_TO||this.curCommandType===dN.SMOOTH_QUAD_TO?(nr({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),dN.MOVE_TO===this.curCommandType&&(this.curCommandType=dN.LINE_TO)):this.curCommandType===dN.CURVE_TO?nr({type:dN.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===dN.SMOOTH_CURVE_TO?nr({type:dN.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===dN.QUAD_TO?nr({type:dN.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===dN.ARC&&nr({type:dN.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!lN(or))if(","===or&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==or&&"-"!==or&&"."!==or)if(sr)this.curNumber=or,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+ir+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+or+'" at index '+ir+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==or&&"Z"!==or)if("h"===or||"H"===or)this.curCommandType=dN.HORIZ_LINE_TO,this.curCommandRelative="h"===or;else if("v"===or||"V"===or)this.curCommandType=dN.VERT_LINE_TO,this.curCommandRelative="v"===or;else if("m"===or||"M"===or)this.curCommandType=dN.MOVE_TO,this.curCommandRelative="m"===or;else if("l"===or||"L"===or)this.curCommandType=dN.LINE_TO,this.curCommandRelative="l"===or;else if("c"===or||"C"===or)this.curCommandType=dN.CURVE_TO,this.curCommandRelative="c"===or;else if("s"===or||"S"===or)this.curCommandType=dN.SMOOTH_CURVE_TO,this.curCommandRelative="s"===or;else if("q"===or||"Q"===or)this.curCommandType=dN.QUAD_TO,this.curCommandRelative="q"===or;else if("t"===or||"T"===or)this.curCommandType=dN.SMOOTH_QUAD_TO,this.curCommandRelative="t"===or;else{if("a"!==or&&"A"!==or)throw new SyntaxError('Unexpected character "'+or+'" at index '+ir+".");this.curCommandType=dN.ARC,this.curCommandRelative="a"===or}else tr.push({type:dN.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=or,this.curNumberHasDecimal="."===or}else this.curNumber+=or,this.curNumberHasDecimal=!0;else this.curNumber+=or;else this.curNumber+=or,this.curNumberHasExp=!0;else this.curNumber+=or,this.curNumberHasExpDigits=this.curNumberHasExp}return tr},e.prototype.transform=function(er){return Object.create(this,{parse:{value:function value(tr,rr){void 0===rr&&(rr=[]);for(var nr=0,ir=Object.getPrototypeOf(this).parse.call(this,tr);nr<ir.length;nr++){var or=ir[nr],ar=er(or);Array.isArray(ar)?rr.push.apply(rr,ar):rr.push(ar)}return rr}}})},e}(sN),dN=function(er){function i(tr){var rr=er.call(this)||this;return rr.commands="string"==typeof tr?i.parse(tr):tr,rr}return r$1(i,er),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var er=iN.CALCULATE_BOUNDS();return this.transform(er),er},i.prototype.transform=function(er){for(var tr=[],rr=0,nr=this.commands;rr<nr.length;rr++){var ir=er(nr[rr]);Array.isArray(ir)?tr.push.apply(tr,ir):tr.push(ir)}return this.commands=tr,this},i.encode=function(er){return function e$1(er){var tr="";Array.isArray(er)||(er=[er]);for(var rr=0;rr<er.length;rr++){var nr=er[rr];if(nr.type===dN.CLOSE_PATH)tr+="z";else if(nr.type===dN.HORIZ_LINE_TO)tr+=(nr.relative?"h":"H")+nr.x;else if(nr.type===dN.VERT_LINE_TO)tr+=(nr.relative?"v":"V")+nr.y;else if(nr.type===dN.MOVE_TO)tr+=(nr.relative?"m":"M")+nr.x+" "+nr.y;else if(nr.type===dN.LINE_TO)tr+=(nr.relative?"l":"L")+nr.x+" "+nr.y;else if(nr.type===dN.CURVE_TO)tr+=(nr.relative?"c":"C")+nr.x1+" "+nr.y1+" "+nr.x2+" "+nr.y2+" "+nr.x+" "+nr.y;else if(nr.type===dN.SMOOTH_CURVE_TO)tr+=(nr.relative?"s":"S")+nr.x2+" "+nr.y2+" "+nr.x+" "+nr.y;else if(nr.type===dN.QUAD_TO)tr+=(nr.relative?"q":"Q")+nr.x1+" "+nr.y1+" "+nr.x+" "+nr.y;else if(nr.type===dN.SMOOTH_QUAD_TO)tr+=(nr.relative?"t":"T")+nr.x+" "+nr.y;else{if(nr.type!==dN.ARC)throw new Error('Unexpected command type "'+nr.type+'" at index '+rr+".");tr+=(nr.relative?"a":"A")+nr.rX+" "+nr.rY+" "+nr.xRot+" "+ +nr.lArcFlag+" "+ +nr.sweepFlag+" "+nr.x+" "+nr.y}}return tr}(er)},i.parse=function(er){var tr=new uN,rr=[];return tr.parse(er,rr),tr.finish(rr),rr},i.CLOSE_PATH=1,i.MOVE_TO=2,i.HORIZ_LINE_TO=4,i.VERT_LINE_TO=8,i.LINE_TO=16,i.CURVE_TO=32,i.SMOOTH_CURVE_TO=64,i.QUAD_TO=128,i.SMOOTH_QUAD_TO=256,i.ARC=512,i.LINE_COMMANDS=i.LINE_TO|i.HORIZ_LINE_TO|i.VERT_LINE_TO,i.DRAWING_COMMANDS=i.HORIZ_LINE_TO|i.VERT_LINE_TO|i.LINE_TO|i.CURVE_TO|i.SMOOTH_CURVE_TO|i.QUAD_TO|i.SMOOTH_QUAD_TO|i.ARC,i}(sN),hN=((aN={})[dN.MOVE_TO]=2,aN[dN.LINE_TO]=2,aN[dN.HORIZ_LINE_TO]=1,aN[dN.VERT_LINE_TO]=1,aN[dN.CLOSE_PATH]=0,aN[dN.QUAD_TO]=4,aN[dN.SMOOTH_QUAD_TO]=2,aN[dN.CURVE_TO]=6,aN[dN.SMOOTH_CURVE_TO]=4,aN[dN.ARC]=7,aN),pN=fy.f;Py({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(er,tr){var rr=pN(Cy(er),tr);return!(rr&&!rr.configurable)&&delete er[tr]}});var AN=Sy.Reflect.deleteProperty,fN=nb("Array").values,gN=Array.prototype,mN={DOMTokenList:!0,NodeList:!0},_N=function values_1(er){var tr=er.values;return er===gN||er instanceof Array&&tr===gN.values||mN.hasOwnProperty(Yw(er))?fN:tr},vN=pb.trim,yN=Kv.parseInt,bN=/^[+-]?0[Xx]/,wN=8!==yN(sb+"08")||22!==yN(sb+"0x16")?function parseInt(er,tr){var rr=vN(String(er));return yN(rr,tr>>>0||(bN.test(rr)?16:10))}:yN;Py({global:!0,forced:parseInt!=wN},{parseInt:wN});var SN=Sy.parseInt,xN=Kb,kN=CS,CN=xx,BN=qx,EN=Object.isExtensible,NN=fails((function(){EN(1)}));_export({target:"Object",stat:!0,forced:NN},{isExtensible:function isExtensible(er){return!!isObject(er)&&(!EN||EN(er))}});var LN=jv.onFreeze,TN=Object.preventExtensions,PN=fails((function(){TN(1)}));_export({target:"Object",stat:!0,forced:PN,sham:!Dv},{preventExtensions:function preventExtensions(er){return TN&&isObject(er)?TN(LN(er)):er}});var FN=!qv((function(){return Object.isExtensible(Object.preventExtensions({}))})),UN=createCommonjsModule((function(er){var tr=Ey.f,rr=Gy("meta"),nr=0,ir=Object.isExtensible||function(){return!0},or=function setMetadata(er){tr(er,rr,{value:{objectID:"O"+ ++nr,weakData:{}}})},ar=er.exports={REQUIRED:!1,fastKey:function fastKey(er,tr){if(!oy(er))return"symbol"==_typeof(er)?er:("string"==typeof er?"S":"P")+er;if(!ly(er,rr)){if(!ir(er))return"F";if(!tr)return"E";or(er)}return er[rr].objectID},getWeakData:function getWeakData(er,tr){if(!ly(er,rr)){if(!ir(er))return!0;if(!tr)return!1;or(er)}return er[rr].weakData},onFreeze:function onFreeze(er){return FN&&ar.REQUIRED&&ir(er)&&!ly(er,rr)&&or(er),er}};hw[rr]=!0})),IN=Ey.f,RN=Cb.forEach,MN=ww.set,ON=ww.getterFor,QN=Ey.f,DN=UN.fastKey,jN=ww.set,HN=ww.getterFor,GN=(function collection(er,tr,rr){var nr,ir=-1!==er.indexOf("Map"),or=-1!==er.indexOf("Weak"),ar=ir?"set":"add",sr=Kv[er],lr=sr&&sr.prototype,cr={};if(Wv&&"function"==typeof sr&&(or||lr.forEach&&!qv((function(){(new sr).entries().next()})))){nr=tr((function(tr,rr){MN(Fk(tr,nr,er),{type:er,collection:new sr}),null!=rr&&Uk(rr,tr[ar],tr,ir)}));var ur=ON(er);RN(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(er){var tr="add"==er||"set"==er;!(er in lr)||or&&"clear"==er||Ny(nr.prototype,er,(function(rr,nr){var ir=ur(this).collection;if(!tr&&or&&!oy(rr))return"get"==er&&void 0;var ar=ir[er](0===rr?0:rr,nr);return tr?this:ar}))})),or||IN(nr.prototype,"size",{configurable:!0,get:function get(){return ur(this).collection.size}})}else nr=rr.getConstructor(tr,er,ir,ar),UN.REQUIRED=!0;eS(nr,er,!1,!0),cr[er]=nr,Py({global:!0,forced:!0},cr),or||rr.setStrong(nr,er,ir)}("Map",(function(er){return function Map(){return er(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function getConstructor(er,tr,rr,nr){var ir=er((function(er,or){Fk(er,ir,tr),jN(er,{type:tr,index:zw(null),first:void 0,last:void 0,size:0}),Wv||(er.size=0),null!=or&&Uk(or,er[nr],er,rr)})),or=HN(tr),ar=function define(er,tr,rr){var nr,ir,ar=or(er),lr=sr(er,tr);return lr?lr.value=rr:(ar.last=lr={index:ir=DN(tr,!0),key:tr,value:rr,previous:nr=ar.last,next:void 0,removed:!1},ar.first||(ar.first=lr),nr&&(nr.next=lr),Wv?ar.size++:er.size++,"F"!==ir&&(ar.index[ir]=lr)),er},sr=function getEntry(er,tr){var rr,nr=or(er),ir=DN(tr);if("F"!==ir)return nr.index[ir];for(rr=nr.first;rr;rr=rr.next)if(rr.key==tr)return rr};return Lk(ir.prototype,{clear:function clear(){for(var er=or(this),tr=er.index,rr=er.first;rr;)rr.removed=!0,rr.previous&&(rr.previous=rr.previous.next=void 0),delete tr[rr.index],rr=rr.next;er.first=er.last=void 0,Wv?er.size=0:this.size=0},delete:function _delete(er){var tr=this,rr=or(tr),nr=sr(tr,er);if(nr){var ir=nr.next,ar=nr.previous;delete rr.index[nr.index],nr.removed=!0,ar&&(ar.next=ir),ir&&(ir.previous=ar),rr.first==nr&&(rr.first=ir),rr.last==nr&&(rr.last=ar),Wv?rr.size--:tr.size--}return!!nr},forEach:function forEach(er){for(var tr,rr=or(this),nr=ky(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!!sr(this,er)}}),Lk(ir.prototype,rr?{get:function get(er){var tr=sr(this,er);return tr&&tr.value},set:function set(er,tr){return ar(this,0===er?0:er,tr)}}:{add:function add(er){return ar(this,er=0===er?0:er,er)}}),Wv&&QN(ir.prototype,"size",{get:function get(){return or(this).size}}),ir},setStrong:function setStrong(er,tr,rr){var nr=tr+" Iterator",ir=HN(tr),or=HN(nr);hS(er,tr,(function(er,tr){jN(this,{type:nr,target:er,state:ir(er),kind:tr,last:void 0})}),(function(){for(var er=or(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),Pk(tr)}}),Sy.Map),VN=Eb("Reflect","apply"),zN=Function.apply,KN=!qv((function(){VN((function(){}))}));Py({target:"Reflect",stat:!0,forced:KN},{apply:function apply(er,tr,rr){return xy(er),Cy(rr),VN?VN(er,tr,rr):zN.call(er,tr,rr)}});var qN=Sy.Reflect.apply;Py({target:"Reflect",stat:!0,sham:!Sw},{getPrototypeOf:function getPrototypeOf(er){return Cw(Cy(er))}});var WN=Sy.Reflect.getPrototypeOf;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 XN=[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],YN=[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,ir,or){if(!(isNaN(or)||or<1)){or|=0;var ar=function getImageDataFromCanvas(er,tr,rr,nr,ir){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 or=er.getContext("2d");try{return or.getImageData(tr,rr,nr,ir)}catch(er){throw new Error("unable to access image data: "+er)}}(er,tr,rr,nr,ir);ar=function processImageDataRGBA(er,tr,rr,nr,ir,or){for(var ar,sr=er.data,lr=2*or+1,cr=nr-1,ur=ir-1,dr=or+1,hr=dr*(dr+1)/2,pr=new JN,Ar=pr,fr=1;fr<lr;fr++)Ar=Ar.next=new JN,fr===dr&&(ar=Ar);Ar.next=pr;for(var gr=null,mr=null,_r=0,vr=0,yr=XN[or],br=YN[or],wr=0;wr<ir;wr++){Ar=pr;for(var Sr=sr[vr],xr=sr[vr+1],kr=sr[vr+2],Cr=sr[vr+3],Br=0;Br<dr;Br++)Ar.r=Sr,Ar.g=xr,Ar.b=kr,Ar.a=Cr,Ar=Ar.next;for(var Er=0,Nr=0,Lr=0,Tr=0,Pr=dr*Sr,Fr=dr*xr,Ur=dr*kr,Ir=dr*Cr,Rr=hr*Sr,Mr=hr*xr,Or=hr*kr,Qr=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,Or+=(Ar.b=Vr)*Kr,Qr+=(Ar.a=zr)*Kr,Er+=Hr,Nr+=Gr,Lr+=Vr,Tr+=zr,Ar=Ar.next}gr=pr,mr=ar;for(var qr=0;qr<nr;qr++){var Wr=Qr*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]=(Or*yr>>br)*Xr}else sr[vr]=sr[vr+1]=sr[vr+2]=0;Rr-=Pr,Mr-=Fr,Or-=Ur,Qr-=Ir,Pr-=gr.r,Fr-=gr.g,Ur-=gr.b,Ir-=gr.a;var Yr=qr+or+1;Yr=_r+(Yr<cr?Yr:cr)<<2,Rr+=Er+=gr.r=sr[Yr],Mr+=Nr+=gr.g=sr[Yr+1],Or+=Lr+=gr.b=sr[Yr+2],Qr+=Tr+=gr.a=sr[Yr+3],gr=gr.next;var Jr=mr,$r=Jr.r,Zr=Jr.g,Tn=Jr.b,Un=Jr.a;Pr+=$r,Fr+=Zr,Ur+=Tn,Ir+=Un,Er-=$r,Nr-=Zr,Lr-=Tn,Tr-=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 ei=0;ei<dr;ei++)Ar.r=Dn,Ar.g=Hn,Ar.b=Gn,Ar.a=Vn,Ar=Ar.next;for(var ti=nr,ri=0,ni=0,ii=0,oi=0,ai=1;ai<=or;ai++){vr=ti+Qn<<2;var si=dr-ai;Yn+=(Ar.r=Dn=sr[vr])*si,Jn+=(Ar.g=Hn=sr[vr+1])*si,$n+=(Ar.b=Gn=sr[vr+2])*si,Zn+=(Ar.a=Vn=sr[vr+3])*si,oi+=Dn,ri+=Hn,ni+=Gn,ii+=Vn,Ar=Ar.next,ai<ur&&(ti+=nr)}vr=Qn,gr=pr,mr=ar;for(var li=0;li<ir;li++){var ui=vr<<2;sr[ui+3]=Vn=Zn*yr>>br,Vn>0?(Vn=255/Vn,sr[ui]=(Yn*yr>>br)*Vn,sr[ui+1]=(Jn*yr>>br)*Vn,sr[ui+2]=($n*yr>>br)*Vn):sr[ui]=sr[ui+1]=sr[ui+2]=0,Yn-=zn,Jn-=Kn,$n-=Wn,Zn-=Xn,zn-=gr.r,Kn-=gr.g,Wn-=gr.b,Xn-=gr.a,ui=Qn+((ui=li+dr)<ur?ui:ur)*nr<<2,Yn+=oi+=gr.r=sr[ui],Jn+=ri+=gr.g=sr[ui+1],$n+=ni+=gr.b=sr[ui+2],Zn+=ii+=gr.a=sr[ui+3],gr=gr.next,zn+=Dn=mr.r,Kn+=Hn=mr.g,Wn+=Gn=mr.b,Xn+=Vn=mr.a,oi-=Dn,ri-=Hn,ni-=Gn,ii-=Vn,mr=mr.next,vr+=nr}}return er}(ar,0,0,nr,ir,or),er.getContext("2d").putImageData(ar,tr,rr)}}var JN=function BlurStack(){!function _classCallCheck$2(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){var tr=(er||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return zb(tr).call(tr,vb)}var $N=/^[A-Z-]+$/;function normalizeAttributeName(er){return $N.test(er)?er.toLowerCase():er}function parseExternalUrl(er){var tr=er.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return tr[2]||tr[3]||tr[4]}function normalizeColor(er){if(!ab(er).call(er,"rgb"))return er;var tr=3;return er.replace(/\d+(\.\d+)?/g,(function(er,rr){return tr--&&rr?String(Math.round(vb(er))):er}))}var ZN=/(\[[^\]]+\])/g,eL=/(#[^\s\+>~\.\[:]+)/g,tL=/(\.[^\s\+>~\.\[:]+)/g,rL=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,nL=/(:[\w-]+\([^\)]*\))/gi,iL=/(:[^\s\+>~\.\[:]+)/g,oL=/([^\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,ir=findSelectorMatch(rr,ZN),or=$x(ir,2);rr=or[0],nr=or[1],tr[1]+=nr;var ar=findSelectorMatch(rr,eL),sr=$x(ar,2);rr=sr[0],nr=sr[1],tr[0]+=nr;var lr=findSelectorMatch(rr,tL),cr=$x(lr,2);rr=cr[0],nr=cr[1],tr[1]+=nr;var ur=findSelectorMatch(rr,rL),dr=$x(ur,2);rr=dr[0],nr=dr[1],tr[2]+=nr;var hr=findSelectorMatch(rr,nL),pr=$x(hr,2);rr=pr[0],nr=pr[1],tr[1]+=nr;var Ar=findSelectorMatch(rr,iL),fr=$x(Ar,2);rr=fr[0],nr=fr[1],tr[1]+=nr;var gr=findSelectorMatch(rr=rr.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),oL),mr=$x(gr,2);return rr=mr[0],nr=mr[1],tr[2]+=nr,tr.join("")}var aL=1e-8;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)}var sL=function(){function Property(er,tr,rr){cB(this,Property),this.document=er,this.name=tr,this.value=rr,this.isNormalizedColor=!1}return uB(Property,[{key:"split",value:function split(){var er,tr,rr=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",nr=this.document,ir=this.name;return zb(er=$B(tr=compressSpaces(this.getString())).call(tr).split(rr)).call(er,(function(er){return new Property(nr,ir,er)}))}},{key:"hasValue",value:function hasValue(er){var tr=this.value;return null!==tr&&""!==tr&&(er||0!==tr)&&void 0!==tr}},{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:vb(er);var tr=this.value,rr=vb(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=$x(rr,2),ir=nr[0],or=nr[1],ar=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(ar.computeSize("x"),ar.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(ar.computeSize("x"),ar.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*ar.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*ar.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(/%$/)&&or:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*ar.computeSize(ir);default:var sr=this.getNumber();return tr&&sr<1?sr*ar.computeSize(ir):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,ir=0;ir<rr&&(","===tr[ir]&&nr++,3!==nr);ir++);if(er.hasValue()&&this.isString()&&3!==nr){var or=new ZB(tr);or.ok&&(or.alpha=er.getNumber(),tr=or.toRGBA())}return new Property(this.document,this.name,tr)}}],[{key:"empty",value:function empty(er){return new Property(er,"EMPTY","")}}]),Property}();sL.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 lL=function(){function ViewPort(){cB(this,ViewPort),this.viewPorts=[]}return uB(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}(),cL=function(){function Point(er,tr){cB(this,Point),this.x=er,this.y=tr}return uB(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],ir=tr*er[1]+rr*er[3]+er[5];this.x=nr,this.y=ir}}],[{key:"parse",value:function parse(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,rr=toNumbers(er),nr=$x(rr,2),ir=nr[0],or=void 0===ir?tr:ir,ar=nr[1],sr=void 0===ar?tr:ar;return new Point(or,sr)}},{key:"parseScale",value:function parseScale(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,rr=toNumbers(er),nr=$x(rr,2),ir=nr[0],or=void 0===ir?tr:ir,ar=nr[1],sr=void 0===ar?or:ar;return new Point(or,sr)}},{key:"parsePath",value:function parsePath(er){for(var tr=toNumbers(er),rr=tr.length,nr=[],ir=0;ir<rr;ir+=2)nr.push(new Point(tr[ir],tr[ir+1]));return nr}}]),Point}(),uL=function(){function Mouse(er){var tr,rr;cB(this,Mouse),this.screen=er,this.working=!1,this.events=[],this.eventElements=[],this.onClick=MB(tr=this.onClick).call(tr,this),this.onMouseMove=MB(rr=this.onMouseMove).call(rr,this)}return uB(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=""),hk(tr).call(tr,(function(er,tr){for(var nr=er.run,ir=rr[tr];ir;)nr(ir),ir=ir.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(er,tr){if(this.working&&tr){var rr=this.events,nr=this.eventElements;hk(rr).call(rr,(function(rr,ir){var or=rr.x,ar=rr.y;!nr[ir]&&tr.isPointInPath&&tr.isPointInPath(or,ar)&&(nr[ir]=er)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(er,tr){if(this.working&&tr){var rr=this.events,nr=this.eventElements;hk(rr).call(rr,(function(rr,ir){var or=rr.x,ar=rr.y;!nr[ir]&&tr.isPointInBox(or,ar)&&(nr[ir]=er)}))}}},{key:"mapXY",value:function mapXY(er,tr){for(var rr=this.screen,nr=rr.window,ir=rr.ctx,or=new cL(er,tr),ar=ir.canvas;ar;)or.x-=ar.offsetLeft,or.y-=ar.offsetTop,ar=ar.offsetParent;return nr.scrollX&&(or.x+=nr.scrollX),nr.scrollY&&(or.y+=nr.scrollY),or}},{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}(),dL="undefined"!=typeof window?window:null,hL="undefined"!=typeof fetch?MB(fetch).call(fetch,void 0):null,pL=function(){function Screen(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.fetch,nr=void 0===rr?hL:rr,ir=tr.window,or=void 0===ir?dL:ir;cB(this,Screen),this.ctx=er,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new lL,this.mouse=new uL(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=or,this.fetch=nr}return uB(Screen,[{key:"wait",value:function wait(er){this.waits.push(er)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:LB.resolve()}},{key:"isReady",value:function isReady(){var er;if(this.isReadyLock)return!0;var tr=NB(er=this.waits).call(er,(function(er){return er()}));return tr&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=tr,tr}},{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,ir=er.width,or=er.desiredWidth,ar=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=$x(yr,2),wr=br[0]||"xMidYMid",Sr=br[1]||"meet",xr=ir/or,kr=ar/sr,Cr=Math.min(xr,kr),Br=Math.max(xr,kr),Er=or,Nr=sr;"meet"===Sr&&(Er*=Cr,Nr*=Cr),"slice"===Sr&&(Er*=Br,Nr*=Br);var Lr=new sL(tr,"refX",hr),Tr=new sL(tr,"refY",pr),Pr=Lr.hasValue()&&Tr.hasValue();if(Pr&&rr.translate(-Cr*Lr.getPixels("x"),-Cr*Tr.getPixels("y")),fr){var Fr=Cr*mr,Ur=Cr*vr;rr.beginPath(),rr.moveTo(Fr,Ur),rr.lineTo(ir,Ur),rr.lineTo(ir,ar),rr.lineTo(Fr,ar),rr.closePath(),rr.clip()}if(!Pr){var Ir="meet"===Sr&&Cr===kr,Rr="slice"===Sr&&Br===kr,Mr="meet"===Sr&&Cr===xr,Or="slice"===Sr&&Br===xr;/^xMid/.test(wr)&&(Ir||Rr)&&rr.translate(ir/2-Er/2,0),/YMid$/.test(wr)&&(Mr||Or)&&rr.translate(0,ar/2-Nr/2),/^xMax/.test(wr)&&(Ir||Rr)&&rr.translate(ir-Er,0),/YMax$/.test(wr)&&(Mr||Or)&&rr.translate(0,ar-Nr)}switch(!0){case"none"===wr:rr.scale(xr,kr);break;case"meet"===Sr:rr.scale(Cr,Cr);break;case"slice"===Sr: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,ir=void 0!==nr&&nr,or=rr.ignoreMouse,ar=void 0!==or&&or,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 LB((function(er){tr.resolveReady=er})),this.isReady()&&this.render(er,ur,hr,Ar,fr,gr,mr),ir){var br=SB(),wr=br,Sr=0,xr=function tick(){br=SB(),(Sr=br-wr)>=yr&&(wr=br-Sr%yr,tr.shouldUpdate(lr,pr)&&(tr.render(er,ur,hr,Ar,fr,gr,mr),vr.runEvents())),tr.intervalId=WB(tick)};ar||vr.start(),this.intervalId=WB(xr)}}},{key:"stop",value:function stop(){this.intervalId&&(WB.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(er,tr){if(!er){var rr,nr=this.frameDuration,shouldUpdate=wB(rr=this.animations).call(rr,(function(er,tr){return tr.update(nr)||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,ir,or,ar){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 ir)&&(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 or&&er.getAttribute("x",!0).setValue(or),"number"==typeof ar&&er.getAttribute("y",!0).setValue(ar),"number"==typeof nr||"number"==typeof ir){var mr,_r,vr=toNumbers(er.getAttribute("viewBox").getString()),yr=0,br=0;if("number"==typeof nr){var wr=er.getStyle("width");wr.hasValue()?yr=wr.getPixels("x")/nr:isNaN(vr[2])||(yr=vr[2]/nr)}if("number"==typeof ir){var Sr=er.getStyle("height");Sr.hasValue()?br=Sr.getPixels("y")/ir:isNaN(vr[3])||(br=vr[3]/ir)}yr||(yr=br),br||(br=yr),er.getAttribute("width",!0).setValue(nr),er.getAttribute("height",!0).setValue(ir);var xr=er.getStyle("transform",!0,!0);xr.setValue(pB(mr=pB(_r="".concat(xr.getString()," scale(")).call(_r,1/yr,", ")).call(mr,1/br,")"))}rr||ur.clearRect(0,0,fr,gr),er.render(ur),dr&&(this.isFirstRender=!1)}}]),Screen}();pL.defaultWindow=dL,pL.defaultFetch=hL;var AL=pL.defaultFetch,fL="undefined"!=typeof DOMParser?DOMParser:null,gL=function(){function Parser(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tr=er.fetch,rr=void 0===tr?AL:tr,nr=er.DOMParser,ir=void 0===nr?fL:nr;cB(this,Parser),this.fetch=rr,this.DOMParser=ir}var er,tr;return uB(Parser,[{key:"parse",value:(tr=aB(Bk.mark((function _callee(er){return Bk.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=aB(Bk.mark((function _callee2(er){var tr,rr;return Bk.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}(),mL=function(){function Translate(er,tr){cB(this,Translate),this.type="translate",this.point=null,this.point=cL.parse(tr)}return uB(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}(),_L=function(){function Rotate(er,tr,rr){cB(this,Rotate),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var nr=toNumbers(tr);this.angle=new sL(er,"angle",nr[0]),this.originX=rr[0],this.originY=rr[1],this.cx=nr[1]||0,this.cy=nr[2]||0}return uB(Rotate,[{key:"apply",value:function apply(er){var tr=this.cx,rr=this.cy,nr=this.originX,ir=this.originY,or=this.angle,ar=tr+nr.getPixels("x"),sr=rr+ir.getPixels("y");er.translate(ar,sr),er.rotate(or.getRadians()),er.translate(-ar,-sr)}},{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}(),vL=function(){function Scale(er,tr){cB(this,Scale),this.type="scale",this.scale=null;var rr=cL.parseScale(tr);0!==rr.x&&0!==rr.y||(rr.x=aL,rr.y=aL),this.scale=rr}return uB(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}(),yL=function(){function Matrix(er,tr){cB(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(tr)}return uB(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],ir=tr[4],or=tr[1],ar=tr[3],sr=tr[5],lr=1/(rr*(1*ar-0*sr)-nr*(1*or-0*sr)+ir*(0*or-0*ar));er.transform(lr*(1*ar-0*sr),lr*(0*sr-1*or),lr*(0*ir-1*nr),lr*(1*rr-0*ir),lr*(nr*sr-ir*ar),lr*(ir*or-rr*sr))}},{key:"applyToPoint",value:function applyToPoint(er){er.applyTransform(this.matrix)}}]),Matrix}();function _createSuper$1(er){var tr=function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var bL=function(er){cE(Skew,er);var tr=_createSuper$1(Skew);function Skew(er,rr){var nr;return cB(this,Skew),(nr=tr.call(this,er,rr)).type="skew",nr.angle=null,nr.angle=new sL(er,"angle",rr),nr}return Skew}(yL);function _createSuper$1$1(er){var tr=function _isNativeReflectConstruct$1$1(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var wL=function(er){cE(SkewX,er);var tr=_createSuper$1$1(SkewX);function SkewX(er,rr){var nr;return cB(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}(bL);function _createSuper$2(er){var tr=function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var SL=function(er){cE(SkewY,er);var tr=_createSuper$2(SkewY);function SkewY(er,rr){var nr;return cB(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}(bL);var xL=function(){function Transform(er,tr,rr){var nr=this;cB(this,Transform),this.document=er,this.transforms=[];var ir=function parseTransforms(er){var tr;return $B(tr=compressSpaces(er)).call(tr).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(tr);hk(ir).call(ir,(function(er){if("none"!==er){var tr=function parseTransform$1(er){var tr=er.split("("),rr=$x(tr,2),nr=rr[0],ir=rr[1];return[$B(nr).call(nr),$B(ir).call(ir).replace(")","")]}(er),ir=$x(tr,2),or=ir[0],ar=ir[1],sr=Transform.transformTypes[or];void 0!==sr&&nr.transforms.push(new sr(nr.document,ar,rr))}}))}return uB(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).split(),ir=$x(nr,2),or=ir[0],ar=ir[1],sr=[or,void 0===ar?or:ar];return rr.hasValue()?new Transform(er,rr.getString(),sr):null}}]),Transform}();xL.transformTypes={translate:mL,rotate:_L,scale:vL,matrix:yL,skewX:wL,skewY:SL};var kL=function(){function Element(er,tr){var rr,nr,ir=this,or=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(cB(this,Element),this.document=er,this.node=tr,this.captureTextNodes=or,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],tr&&1===tr.nodeType){if(hk(rr=UE(tr.attributes)).call(rr,(function(tr){var rr=normalizeAttributeName(tr.nodeName);ir.attributes[rr]=new sL(er,rr,tr.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var ar,sr=zb(ar=this.getAttribute("style").getString().split(";")).call(ar,(function(er){return $B(er).call(er)}));hk(sr).call(sr,(function(tr){var rr;if(tr){var nr=zb(rr=tr.split(":")).call(rr,(function(er){return $B(er).call(er)})),or=$x(nr,2),ar=or[0],sr=or[1];ir.styles[ar]=new sL(er,ar,sr)}}))}var lr=er.definitions,cr=this.getAttribute("id");cr.hasValue()&&(lr[cr.getValue()]||(lr[cr.getValue()]=this)),hk(nr=UE(tr.childNodes)).call(nr,(function(tr){if(1===tr.nodeType)ir.addChild(tr);else if(or&&(3===tr.nodeType||4===tr.nodeType)){var rr=er.createTextNode(tr);rr.getText().length>0&&ir.addChild(rr)}}))}}return uB(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 sL(this.document,er,"");return this.attributes[er]=nr,nr}return rr||sL.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 sL.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 ir=this.getAttribute(er);if(ir&&ir.hasValue())return this.styles[er]=ir,ir;if(!rr){var or=this.parent;if(or){var ar=or.getStyle(er);if(ar&&ar.hasValue())return ar}}if(tr){var sr=new sL(this.document,er,"");return this.styles[er]=sr,sr}return nr||sL.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=xL.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){var tr;hk(tr=this.children).call(tr,(function(tr){tr.render(er)}))}},{key:"addChild",value:function addChild(er){var tr,rr=er instanceof Element?er:this.document.createElement(er);rr.parent=this,FE(tr=Element.ignoreChildTypes).call(tr,rr.type)||this.children.push(rr)}},{key:"matchesSelector",value:function matchesSelector(er){var tr,rr=this.node;if("function"==typeof rr.matches)return rr.matches(er);var nr=rr.getAttribute("class");return!(!nr||""===nr)&&CE(tr=nr.split(" ")).call(tr,(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 ir=tr[nr],or=rr[nr];if(ir)for(var ar in ir){var sr=this.stylesSpecificity[ar];void 0===sr&&(sr="000"),or>=sr&&(this.styles[ar]=ir[ar],this.stylesSpecificity[ar]=or)}}}},{key:"removeStyles",value:function removeStyles(er,tr){return wB(tr).call(tr,(function(tr,rr){var nr,ir=er.getStyle(rr);if(!ir.hasValue())return tr;var or=ir.getString();return ir.setValue(""),pB(nr=[]).call(nr,yE(tr),[[rr,or]])}),[])}},{key:"restoreStyles",value:function restoreStyles(er,tr){hk(tr).call(tr,(function(tr){var rr=$x(tr,2),nr=rr[0],ir=rr[1];er.getStyle(nr,!0).setValue(ir)}))}}]),Element}();function _createSuper$3(er){var tr=function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}kL.ignoreChildTypes=["title"];var CL=function(er){cE(UnknownElement,er);var tr=_createSuper$3(UnknownElement);function UnknownElement(er,rr,nr){return cB(this,UnknownElement),tr.call(this,er,rr,nr)}return UnknownElement}(kL);function wrapFontFamily(er){var tr=$B(er).call(er);return/^('|")/.test(tr)?tr:'"'.concat(tr,'"')}function prepareFontStyle(er){if(!er)return"";var tr=$B(er).call(er).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=$B(er).call(er).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 BL=function(){function Font(er,tr,rr,nr,ir,or){cB(this,Font);var ar=or?"string"==typeof or?Font.parse(or):or:{};this.fontFamily=ir||ar.fontFamily,this.fontSize=nr||ar.fontSize,this.fontStyle=er||ar.fontStyle,this.fontWeight=rr||ar.fontWeight,this.fontVariant=tr||ar.fontVariant}return uB(Font,[{key:"toString",value:function toString(){var er,tr,rr;return $B(er=[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(tr=this.fontFamily,void 0===Qv?tr:zb(rr=$B(tr).call(tr).split(",")).call(rr,wrapFontFamily).join(","))].join(" ")).call(er)}}],[{key:"parse",value:function parse(){var er,tr=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",rr=arguments.length>1?arguments[1]:void 0,nr="",ir="",or="",ar="",sr="",lr=$B(er=compressSpaces(tr)).call(er).split(" "),cr={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return hk(lr).call(lr,(function(er){var tr,rr,lr;switch(!0){case!cr.fontStyle&&FE(tr=Font.styles).call(tr,er):"inherit"!==er&&(nr=er),cr.fontStyle=!0;break;case!cr.fontVariant&&FE(rr=Font.variants).call(rr,er):"inherit"!==er&&(ir=er),cr.fontStyle=!0,cr.fontVariant=!0;break;case!cr.fontWeight&&FE(lr=Font.weights).call(lr,er):"inherit"!==er&&(or=er),cr.fontStyle=!0,cr.fontVariant=!0,cr.fontWeight=!0;break;case!cr.fontSize:if("inherit"!==er){var ur=er.split("/"),dr=$x(ur,1);ar=dr[0]}cr.fontStyle=!0,cr.fontVariant=!0,cr.fontWeight=!0,cr.fontSize=!0;break;default:"inherit"!==er&&(sr+=er)}})),new Font(nr,ir,or,ar,sr,rr)}}]),Font}();BL.styles="normal|italic|oblique|inherit",BL.variants="normal|small-caps|inherit",BL.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var EL=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;cB(this,BoundingBox),this.x1=er,this.y1=tr,this.x2=rr,this.y2=nr,this.addPoint(er,tr),this.addPoint(rr,nr)}return uB(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,ir=er.y2;this.addPoint(tr,rr),this.addPoint(nr,ir)}}},{key:"sumCubic",value:function sumCubic(er,tr,rr,nr,ir){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)*ir}},{key:"bezierCurveAdd",value:function bezierCurveAdd(er,tr,rr,nr,ir){var or=6*tr-12*rr+6*nr,ar=-3*tr+9*rr-9*nr+3*ir,sr=3*rr-3*tr;if(0!==ar){var lr=Math.pow(or,2)-4*sr*ar;if(!(lr<0)){var cr=(-or+Math.sqrt(lr))/(2*ar);0<cr&&cr<1&&(er?this.addX(this.sumCubic(cr,tr,rr,nr,ir)):this.addY(this.sumCubic(cr,tr,rr,nr,ir)));var ur=(-or-Math.sqrt(lr))/(2*ar);0<ur&&ur<1&&(er?this.addX(this.sumCubic(ur,tr,rr,nr,ir)):this.addY(this.sumCubic(ur,tr,rr,nr,ir)))}}else{if(0===or)return;var dr=-sr/or;0<dr&&dr<1&&(er?this.addX(this.sumCubic(dr,tr,rr,nr,ir)):this.addY(this.sumCubic(dr,tr,rr,nr,ir)))}}},{key:"addBezierCurve",value:function addBezierCurve(er,tr,rr,nr,ir,or,ar,sr){this.addPoint(er,tr),this.addPoint(ar,sr),this.bezierCurveAdd(!0,er,rr,ir,ar),this.bezierCurveAdd(!1,tr,nr,or,sr)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(er,tr,rr,nr,ir,or){var ar=er+2/3*(rr-er),sr=tr+2/3*(nr-tr),lr=ar+1/3*(ir-er),cr=sr+1/3*(or-tr);this.addBezierCurve(er,tr,ar,lr,sr,cr,ir,or)}},{key:"isPointInBox",value:function isPointInBox(er,tr){var rr=this.x1,nr=this.y1,ir=this.x2,or=this.y2;return rr<=er&&er<=ir&&nr<=tr&&tr<=or}},{key:"x",get:function get(){return this.x1}},{key:"y",get:function get(){return this.y1}},{key:"width",get:function get(){return this.x2-this.x1}},{key:"height",get:function get(){return this.y2-this.y1}}]),BoundingBox}();function _createSuper$4(er){var tr=function _isNativeReflectConstruct$4(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var NL=function(er){cE(RenderedElement,er);var tr=_createSuper$4(RenderedElement);function RenderedElement(){var er;return cB(this,RenderedElement),(er=tr.apply(this,arguments)).modifiedEmSizeStack=!1,er}return uB(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var er=1,tr=this;tr;){var rr=tr.getStyle("opacity",!1,!0);rr.hasValue(!0)&&(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"),ir=this.getStyle("stroke"),or=this.getStyle("stroke-opacity");if(rr.isUrlDefinition()){var ar=rr.getFillStyleDefinition(this,nr);ar&&(er.fillStyle=ar)}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 sL(this.document,"fill",er.fillStyle).addOpacity(nr).getColor();er.fillStyle=lr}if(ir.isUrlDefinition()){var cr=ir.getFillStyleDefinition(this,or);cr&&(er.strokeStyle=cr)}else if(ir.hasValue()){"currentColor"===ir.getString()&&ir.setValue(this.getStyle("color").getColor());var ur=ir.getString();"inherit"!==ur&&(er.strokeStyle="none"===ur?"rgba(0,0,0,0)":ur)}if(or.hasValue()){var dr=new sL(this.document,"stroke",er.strokeStyle).addOpacity(or).getString();er.strokeStyle=dr}var hr=this.getStyle("stroke-width");if(hr.hasValue()){var pr=hr.getPixels();er.lineWidth=pr||aL}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"),Sr=this.getStyle("font-style"),xr=this.getStyle("font-variant"),kr=this.getStyle("font-weight"),Cr=this.getStyle("font-size"),Br=this.getStyle("font-family"),Er=new BL(Sr.getString(),xr.getString(),kr.getString(),Cr.hasValue()?"".concat(Cr.getPixels(!0),"px"):"",Br.getString(),BL.parse(wr.getString(),er.font));Sr.setValue(Er.fontStyle),xr.setValue(Er.fontVariant),kr.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){$E(gE(RenderedElement.prototype),"clearContext",this).call(this,er),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}(kL);function _createSuper$5(er){var tr=function _isNativeReflectConstruct$5(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var LL=function(er){cE(TextElement,er);var tr=_createSuper$5(TextElement);function TextElement(er,rr,nr){var ir;return cB(this,TextElement),(ir=tr.call(this,er,rr,(this instanceof TextElement?this.constructor:void 0)===TextElement||nr)).type="text",ir.x=0,ir.y=0,ir.measureCache=-1,ir}return uB(TextElement,[{key:"setContext",value:function setContext(er){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1];$E(gE(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,rr=this;if("text"!==this.type)return this.getTElementBoundingBox(er);this.initializeCoordinates(er);var nr=null;return hk(tr=this.children).call(tr,(function(tr,ir){var or=rr.getChildBoundingBox(er,rr,rr,ir);nr?nr.addBoundingBox(or):nr=or})),nr}},{key:"getFontSize",value:function getFontSize(){var er=this.document,tr=this.parent,rr=BL.parse(er.ctx.font).fontSize;return tr.getStyle("font-size").getNumber(rr)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(er){var tr=this.getFontSize();return new EL(this.x,this.y-tr,this.x+this.measureText(er),this.y)}},{key:"getGlyph",value:function getGlyph(er,tr,rr){var nr=tr[rr],ir=null;if(er.isArabic){var or=tr.length,ar=tr[rr-1],sr=tr[rr+1],lr="isolated";(0===rr||" "===ar)&&rr<or-2&&" "!==sr&&(lr="terminal"),rr>0&&" "!==ar&&rr<or-2&&" "!==sr&&(lr="medial"),rr>0&&" "!==ar&&(rr===or-1||" "===sr)&&(lr="initial"),void 0!==er.glyphs[nr]&&((ir=er.glyphs[nr][lr])||"glyph"!==er.glyphs[nr].type||(ir=er.glyphs[nr]))}else ir=er.glyphs[nr];return ir||(ir=er.missingGlyph),ir}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(er){var tr=er||this.node,rr=UE(tr.parentNode.childNodes),nr=WE(rr).call(rr,tr),ir=rr.length-1,or=compressSpaces(tr.value||tr.text||tr.textContent||"");return 0===nr&&(or=trimLeft$1(or)),nr===ir&&(or=trimRight$1(or)),or}},{key:"renderChildren",value:function renderChildren(er){var tr,rr=this;if("text"===this.type){this.initializeCoordinates(er),hk(tr=this.children).call(tr,(function(tr,nr){rr.renderChild(er,rr,rr,nr)}));var nr=this.document.screen.mouse;nr.isWorking()&&nr.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(),ir=rr.getStyle("font-family").getDefinition();if(ir)for(var or,ar=ir.fontFace.unitsPerEm,sr=BL.parse(tr.ctx.font),lr=rr.getStyle("font-size").getNumber(sr.fontSize),cr=rr.getStyle("font-style").getString(sr.fontStyle),ur=lr/ar,dr=ir.isRTL?DE(or=nr.split("")).call(or).join(""):nr,hr=toNumbers(rr.getAttribute("dx").getString()),pr=dr.length,Ar=0;Ar<pr;Ar++){var fr=this.getGlyph(ir,dr,Ar);er.translate(this.x,this.y),er.scale(ur,-ur);var gr=er.lineWidth;er.lineWidth=er.lineWidth*ar/lr,"italic"===cr&&er.transform(1,0,.4,1,0,0),fr.render(er),"italic"===cr&&er.transform(1,0,-.4,1,0,0),er.lineWidth=gr,er.scale(1/ur,-1/ur),er.translate(-this.x,-this.y),this.x+=lr*(fr.horizAdvX||ir.horizAdvX)/ar,void 0===hr[Ar]||isNaN(hr[Ar])||(this.x+=hr[Ar])}else{var mr=this.x,_r=this.y;"stroke"===er.paintOrder?(er.strokeStyle&&er.strokeText(nr,mr,_r),er.fillStyle&&er.fillText(nr,mr,_r)):(er.fillStyle&&er.fillText(nr,mr,_r),er.strokeStyle&&er.strokeText(nr,mr,_r))}}},{key:"getAnchorDelta",value:function getAnchorDelta(er,tr,rr){var nr=this.getStyle("text-anchor").getString("start");if("start"!==nr){for(var ir=tr.children,or=ir.length,ar=null,sr=0,lr=rr;lr<or&&(ar=ir[lr],!(lr>rr&&ar.getAttribute("x").hasValue()||ar.getAttribute("text-anchor").hasValue()));lr++)sr+=ar.measureTextRecursive(er);return-1*("end"===nr?sr:sr/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(er,tr,rr,nr){var ir=rr.children[nr];if("function"!=typeof ir.measureText)return ir;er.save(),ir.setContext(er,!0);var or=ir.getAttribute("x"),ar=ir.getAttribute("y"),sr=ir.getAttribute("dx"),lr=ir.getAttribute("dy"),cr=ir.getAttribute("text-anchor").getString("start");if(0===nr&&"textNode"!==ir.type&&(or.hasValue()||or.setValue(tr.getAttribute("x").getValue("0")),ar.hasValue()||ar.setValue(tr.getAttribute("y").getValue("0")),sr.hasValue()||sr.setValue(tr.getAttribute("dx").getValue("0")),lr.hasValue()||lr.setValue(tr.getAttribute("dy").getValue("0"))),or.hasValue()){if(ir.x=or.getPixels("x")+tr.getAnchorDelta(er,rr,nr),"start"!==cr){var ur=ir.measureTextRecursive(er);ir.x+=-1*("end"===cr?ur:ur/2)}sr.hasValue()&&(ir.x+=sr.getPixels("x"))}else{if("start"!==cr){var dr=ir.measureTextRecursive(er);tr.x+=-1*("end"===cr?dr:dr/2)}sr.hasValue()&&(tr.x+=sr.getPixels("x")),ir.x=tr.x}return tr.x=ir.x+ir.measureText(er),ar.hasValue()?(ir.y=ar.getPixels("y"),lr.hasValue()&&(ir.y+=lr.getPixels("y"))):(lr.hasValue()&&(tr.y+=lr.getPixels("y")),ir.y=tr.y),tr.y=ir.y,ir.clearContext(er),er.restore(),ir}},{key:"getChildBoundingBox",value:function getChildBoundingBox(er,tr,rr,nr){var ir,or=this.adjustChildCoordinates(er,tr,rr,nr);if("function"!=typeof or.getBoundingBox)return null;var ar=or.getBoundingBox(er);return ar?(hk(ir=or.children).call(ir,(function(rr,nr){var ir=tr.getChildBoundingBox(er,tr,or,nr);ar.addBoundingBox(ir)})),ar):null}},{key:"renderChild",value:function renderChild(er,tr,rr,nr){var ir,or=this.adjustChildCoordinates(er,tr,rr,nr);or.render(er),hk(ir=or.children).call(ir,(function(rr,nr){tr.renderChild(er,tr,or,nr)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(er){var tr;return wB(tr=this.children).call(tr,(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 ir,or=this.getFontSize(),ar=nr.isRTL?DE(ir=tr.split("")).call(ir).join(""):tr,sr=toNumbers(rr.getAttribute("dx").getString()),lr=ar.length,cr=0,ur=0;ur<lr;ur++){cr+=(this.getGlyph(nr,ar,ur).horizAdvX||nr.horizAdvX)*or/nr.fontFace.unitsPerEm,void 0===sr[ur]||isNaN(sr[ur])||(cr+=sr[ur])}return cr}if(!er.measureText)return 10*tr.length;er.save(),this.setContext(er,!0);var dr=er.measureText(tr).width;return this.clearContext(er),er.restore(),dr}}]),TextElement}(NL);function _createSuper$6(er){var tr=function _isNativeReflectConstruct$6(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var TL=function(er){cE(TSpanElement,er);var tr=_createSuper$6(TSpanElement);function TSpanElement(er,rr,nr){var ir;return cB(this,TSpanElement),(ir=tr.call(this,er,rr,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||nr)).type="tspan",ir.text=ir.children.length>0?"":ir.getTextFromNode(),ir}return uB(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}(LL);function _createSuper$7(er){var tr=function _isNativeReflectConstruct$7(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var PL=function(er){cE(TextNode,er);var tr=_createSuper$7(TextNode);function TextNode(){var er;return cB(this,TextNode),(er=tr.apply(this,arguments)).type="textNode",er}return TextNode}(TL);function _createSuper$8(er){var tr=function _isNativeReflectConstruct$8(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var FL=function(er){cE(PathParser,er);var tr=_createSuper$8(PathParser);function PathParser(er){var rr;return cB(this,PathParser),(rr=tr.call(this,er.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,rr.start=null,rr.current=null,rr.command=null,rr.commands=rr.commands,rr.i=-1,rr.previousCommand=null,rr.points=[],rr.angles=[],rr}return uB(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new cL(0,0),this.control=new cL(0,0),this.current=new cL(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function isEnd(){return this.i>=this.commands.length-1}},{key:"next",value:function next(){var er=this.commands[++this.i];return this.previousCommand=this.command,this.command=er,er}},{key:"getPoint",value:function getPoint(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",rr=new cL(this.command[er],this.command[tr]);return this.makeAbsolute(rr)}},{key:"getAsControlPoint",value:function getAsControlPoint(er,tr){var rr=this.getPoint(er,tr);return this.control=rr,rr}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(er,tr){var rr=this.getPoint(er,tr);return this.current=rr,rr}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var er=this.previousCommand.type;if(er!==dN.CURVE_TO&&er!==dN.SMOOTH_CURVE_TO&&er!==dN.QUAD_TO&&er!==dN.SMOOTH_QUAD_TO)return this.current;var tr=this.current,rr=tr.x,nr=tr.y,ir=this.control,or=ir.x,ar=ir.y;return new cL(2*rr-or,2*nr-ar)}},{key:"makeAbsolute",value:function makeAbsolute(er){if(this.command.relative){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,ir=this.angles;rr&&ir.length>0&&!ir[ir.length-1]&&(ir[ir.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}(dN);function _createSuper$9(er){var tr=function _isNativeReflectConstruct$9(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var UL=function(er){cE(PathElement,er);var tr=_createSuper$9(PathElement);function PathElement(er,rr,nr){var ir;return cB(this,PathElement),(ir=tr.call(this,er,rr,nr)).type="path",ir.pathParser=null,ir.pathParser=new FL(ir.getAttribute("d").getString()),ir}return uB(PathElement,[{key:"path",value:function path(er){var tr=this.pathParser,rr=new EL;for(tr.reset(),er&&er.beginPath();!tr.isEnd();)switch(tr.next().type){case FL.MOVE_TO:this.pathM(er,rr);break;case FL.LINE_TO:this.pathL(er,rr);break;case FL.HORIZ_LINE_TO:this.pathH(er,rr);break;case FL.VERT_LINE_TO:this.pathV(er,rr);break;case FL.CURVE_TO:this.pathC(er,rr);break;case FL.SMOOTH_CURVE_TO:this.pathS(er,rr);break;case FL.QUAD_TO:this.pathQ(er,rr);break;case FL.SMOOTH_QUAD_TO:this.pathT(er,rr);break;case FL.ARC:this.pathA(er,rr);break;case FL.CLOSE_PATH: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 zb(tr).call(tr,(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")?tN(er).call(er,tr.getString()):tN(er).call(er)),""!==er.strokeStyle&&er.stroke();var rr=this.getMarkers();if(rr){var nr=rr.length-1,ir=this.getStyle("marker-start"),or=this.getStyle("marker-mid"),ar=this.getStyle("marker-end");if(ir.isUrlDefinition()){var sr=ir.getDefinition(),lr=$x(rr[0],2),cr=lr[0],ur=lr[1];sr.render(er,cr,ur)}if(or.isUrlDefinition())for(var dr=or.getDefinition(),hr=1;hr<nr;hr++){var pr=$x(rr[hr],2),Ar=pr[0],fr=pr[1];dr.render(er,Ar,fr)}if(ar.isUrlDefinition()){var gr=ar.getDefinition(),mr=$x(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=PathElement.pathM(rr).point,ir=nr.x,or=nr.y;rr.addMarker(nr),tr.addPoint(ir,or),er&&er.moveTo(ir,or)}},{key:"pathL",value:function pathL(er,tr){var rr=this.pathParser,nr=PathElement.pathL(rr),ir=nr.current,or=nr.point,ar=or.x,sr=or.y;rr.addMarker(or,ir),tr.addPoint(ar,sr),er&&er.lineTo(ar,sr)}},{key:"pathH",value:function pathH(er,tr){var rr=this.pathParser,nr=PathElement.pathH(rr),ir=nr.current,or=nr.point,ar=or.x,sr=or.y;rr.addMarker(or,ir),tr.addPoint(ar,sr),er&&er.lineTo(ar,sr)}},{key:"pathV",value:function pathV(er,tr){var rr=this.pathParser,nr=PathElement.pathV(rr),ir=nr.current,or=nr.point,ar=or.x,sr=or.y;rr.addMarker(or,ir),tr.addPoint(ar,sr),er&&er.lineTo(ar,sr)}},{key:"pathC",value:function pathC(er,tr){var rr=this.pathParser,nr=PathElement.pathC(rr),ir=nr.current,or=nr.point,ar=nr.controlPoint,sr=nr.currentPoint;rr.addMarker(sr,ar,or),tr.addBezierCurve(ir.x,ir.y,or.x,or.y,ar.x,ar.y,sr.x,sr.y),er&&er.bezierCurveTo(or.x,or.y,ar.x,ar.y,sr.x,sr.y)}},{key:"pathS",value:function pathS(er,tr){var rr=this.pathParser,nr=PathElement.pathS(rr),ir=nr.current,or=nr.point,ar=nr.controlPoint,sr=nr.currentPoint;rr.addMarker(sr,ar,or),tr.addBezierCurve(ir.x,ir.y,or.x,or.y,ar.x,ar.y,sr.x,sr.y),er&&er.bezierCurveTo(or.x,or.y,ar.x,ar.y,sr.x,sr.y)}},{key:"pathQ",value:function pathQ(er,tr){var rr=this.pathParser,nr=PathElement.pathQ(rr),ir=nr.current,or=nr.controlPoint,ar=nr.currentPoint;rr.addMarker(ar,or,or),tr.addQuadraticCurve(ir.x,ir.y,or.x,or.y,ar.x,ar.y),er&&er.quadraticCurveTo(or.x,or.y,ar.x,ar.y)}},{key:"pathT",value:function pathT(er,tr){var rr=this.pathParser,nr=PathElement.pathT(rr),ir=nr.current,or=nr.controlPoint,ar=nr.currentPoint;rr.addMarker(ar,or,or),tr.addQuadraticCurve(ir.x,ir.y,or.x,or.y,ar.x,ar.y),er&&er.quadraticCurveTo(or.x,or.y,ar.x,ar.y)}},{key:"pathA",value:function pathA(er,tr){var rr=this.pathParser,nr=PathElement.pathA(rr),ir=nr.currentPoint,or=nr.rX,ar=nr.rY,sr=nr.sweepFlag,lr=nr.xAxisRotation,cr=nr.centp,ur=nr.a1,dr=nr.ad,hr=1-sr?1:-1,pr=ur+hr*(dr/2),Ar=new cL(cr.x+or*Math.cos(pr),cr.y+ar*Math.sin(pr));if(rr.addMarkerAngle(Ar,pr-hr*Math.PI/2),rr.addMarkerAngle(ir,pr-hr*Math.PI),tr.addPoint(ir.x,ir.y),er&&!isNaN(ur)&&!isNaN(dr)){var fr=or>ar?or:ar,gr=or>ar?1:or/ar,mr=or>ar?ar/or:1;er.translate(cr.x,cr.y),er.rotate(lr),er.scale(gr,mr),er.arc(0,0,fr,ur,ur+dr,Boolean(1-sr)),er.scale(1/gr,1/mr),er.rotate(-lr),er.translate(-cr.x,-cr.y)}}},{key:"pathZ",value:function pathZ(er,tr){PathElement.pathZ(this.pathParser),er&&tr.x1!==tr.x2&&tr.y1!==tr.y2&&er.closePath()}}],[{key:"pathM",value:function pathM(er){var tr=er.getAsCurrentPoint();return er.start=er.current,{point:tr}}},{key:"pathL",value:function pathL(er){return{current:er.current,point:er.getAsCurrentPoint()}}},{key:"pathH",value:function pathH(er){var tr=er.current,rr=er.command,nr=new cL((rr.relative?tr.x:0)+rr.x,tr.y);return er.current=nr,{current:tr,point:nr}}},{key:"pathV",value:function pathV(er){var tr=er.current,rr=er.command,nr=new cL(tr.x,(rr.relative?tr.y:0)+rr.y);return er.current=nr,{current:tr,point:nr}}},{key:"pathC",value:function pathC(er){return{current:er.current,point:er.getPoint("x1","y1"),controlPoint:er.getAsControlPoint("x2","y2"),currentPoint:er.getAsCurrentPoint()}}},{key:"pathS",value:function pathS(er){return{current:er.current,point:er.getReflectedControlPoint(),controlPoint:er.getAsControlPoint("x2","y2"),currentPoint:er.getAsCurrentPoint()}}},{key:"pathQ",value:function pathQ(er){return{current:er.current,controlPoint:er.getAsControlPoint("x1","y1"),currentPoint:er.getAsCurrentPoint()}}},{key:"pathT",value:function pathT(er){var tr=er.current,rr=er.getReflectedControlPoint();return er.control=rr,{current:tr,controlPoint:rr,currentPoint:er.getAsCurrentPoint()}}},{key:"pathA",value:function pathA(er){var tr=er.current,rr=er.command,nr=rr.rX,ir=rr.rY,or=rr.xRot,ar=rr.lArcFlag,sr=rr.sweepFlag,lr=or*(Math.PI/180),cr=er.getAsCurrentPoint(),ur=new cL(Math.cos(lr)*(tr.x-cr.x)/2+Math.sin(lr)*(tr.y-cr.y)/2,-Math.sin(lr)*(tr.x-cr.x)/2+Math.cos(lr)*(tr.y-cr.y)/2),dr=Math.pow(ur.x,2)/Math.pow(nr,2)+Math.pow(ur.y,2)/Math.pow(ir,2);dr>1&&(nr*=Math.sqrt(dr),ir*=Math.sqrt(dr));var hr=(ar===sr?-1:1)*Math.sqrt((Math.pow(nr,2)*Math.pow(ir,2)-Math.pow(nr,2)*Math.pow(ur.y,2)-Math.pow(ir,2)*Math.pow(ur.x,2))/(Math.pow(nr,2)*Math.pow(ur.y,2)+Math.pow(ir,2)*Math.pow(ur.x,2)));isNaN(hr)&&(hr=0);var pr=new cL(hr*nr*ur.y/ir,hr*-ir*ur.x/nr),Ar=new cL((tr.x+cr.x)/2+Math.cos(lr)*pr.x-Math.sin(lr)*pr.y,(tr.y+cr.y)/2+Math.sin(lr)*pr.x+Math.cos(lr)*pr.y),fr=vectorsAngle([1,0],[(ur.x-pr.x)/nr,(ur.y-pr.y)/ir]),gr=[(ur.x-pr.x)/nr,(ur.y-pr.y)/ir],mr=[(-ur.x-pr.x)/nr,(-ur.y-pr.y)/ir],_r=vectorsAngle(gr,mr);return vectorsRatio(gr,mr)<=-1&&(_r=Math.PI),vectorsRatio(gr,mr)>=1&&(_r=0),{currentPoint:cr,rX:nr,rY:ir,sweepFlag:sr,xAxisRotation:lr,centp:Ar,a1:fr,ad:_r}}},{key:"pathZ",value:function pathZ(er){er.current=er.start}}]),PathElement}(NL);function _createSuper$a(er){var tr=function _isNativeReflectConstruct$a(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var IL=function(er){cE(SVGElement,er);var tr=_createSuper$a(SVGElement);function SVGElement(){var er;return cB(this,SVGElement),(er=tr.apply(this,arguments)).type="svg",er.root=!1,er}return uB(SVGElement,[{key:"setContext",value:function setContext(er){var tr=this.document,rr=tr.screen,nr=tr.window,ir=er.canvas;if(rr.setDefaults(er),ir.style&&void 0!==er.font&&nr&&void 0!==nr.getComputedStyle){er.font=nr.getComputedStyle(ir).getPropertyValue("font");var or=new sL(tr,"fontSize",BL.parse(er.font).fontSize);or.hasValue()&&(tr.rootEmSize=or.getPixels("y"),tr.emSize=tr.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var ar=rr.viewPort,sr=ar.width,lr=ar.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.getStyle("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),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),$E(gE(SVGElement.prototype),"setContext",this).call(this,er),er.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),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:"clearContext",value:function clearContext(er){$E(gE(SVGElement.prototype),"clearContext",this).call(this,er),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function resize(er){var tr,rr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,nr=arguments.length>2&&void 0!==arguments[2]&&arguments[2],ir=this.getAttribute("width",!0),or=this.getAttribute("height",!0),ar=this.getAttribute("viewBox"),sr=this.getAttribute("style"),lr=ir.getNumber(0),cr=or.getNumber(0);if(nr)if("string"==typeof nr)this.getAttribute("preserveAspectRatio",!0).setValue(nr);else{var ur=this.getAttribute("preserveAspectRatio");ur.hasValue()&&ur.setValue(ur.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}(ir.setValue(er),or.setValue(rr),ar.hasValue())||ar.setValue(pB(tr="0 0 ".concat(lr||er," ")).call(tr,cr||rr));if(sr.hasValue()){var dr=this.getStyle("width"),hr=this.getStyle("height");dr.hasValue()&&dr.setValue("".concat(er,"px")),hr.hasValue()&&hr.setValue("".concat(rr,"px"))}}}]),SVGElement}(NL);function _createSuper$b(er){var tr=function _isNativeReflectConstruct$b(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var RL=function(er){cE(RectElement,er);var tr=_createSuper$b(RectElement);function RectElement(){var er;return cB(this,RectElement),(er=tr.apply(this,arguments)).type="rect",er}return uB(RectElement,[{key:"path",value:function path(er){var tr=this.getAttribute("x").getPixels("x"),rr=this.getAttribute("y").getPixels("y"),nr=this.getStyle("width",!1,!0).getPixels("x"),ir=this.getStyle("height",!1,!0).getPixels("y"),or=this.getAttribute("rx"),ar=this.getAttribute("ry"),sr=or.getPixels("x"),lr=ar.getPixels("y");if(or.hasValue()&&!ar.hasValue()&&(lr=sr),ar.hasValue()&&!or.hasValue()&&(sr=lr),sr=Math.min(sr,nr/2),lr=Math.min(lr,ir/2),er){var cr=(Math.sqrt(2)-1)/3*4;er.beginPath(),ir>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+ir-lr),er.bezierCurveTo(tr+nr,rr+ir-lr+cr*lr,tr+nr-sr+cr*sr,rr+ir,tr+nr-sr,rr+ir),er.lineTo(tr+sr,rr+ir),er.bezierCurveTo(tr+sr-cr*sr,rr+ir,tr,rr+ir-lr+cr*lr,tr,rr+ir-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 EL(tr,rr,tr+nr,rr+ir)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}(UL);function _createSuper$c(er){var tr=function _isNativeReflectConstruct$c(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var ML=function(er){cE(CircleElement,er);var tr=_createSuper$c(CircleElement);function CircleElement(){var er;return cB(this,CircleElement),(er=tr.apply(this,arguments)).type="circle",er}return uB(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 EL(tr-nr,rr-nr,tr+nr,rr+nr)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}(UL);function _createSuper$d(er){var tr=function _isNativeReflectConstruct$d(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var OL=function(er){cE(EllipseElement,er);var tr=_createSuper$d(EllipseElement);function EllipseElement(){var er;return cB(this,EllipseElement),(er=tr.apply(this,arguments)).type="ellipse",er}return uB(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"),ir=this.getAttribute("cx").getPixels("x"),or=this.getAttribute("cy").getPixels("y");return er&&rr>0&&nr>0&&(er.beginPath(),er.moveTo(ir+rr,or),er.bezierCurveTo(ir+rr,or+tr*nr,ir+tr*rr,or+nr,ir,or+nr),er.bezierCurveTo(ir-tr*rr,or+nr,ir-rr,or+tr*nr,ir-rr,or),er.bezierCurveTo(ir-rr,or-tr*nr,ir-tr*rr,or-nr,ir,or-nr),er.bezierCurveTo(ir+tr*rr,or-nr,ir+rr,or-tr*nr,ir+rr,or),er.closePath()),new EL(ir-rr,or-nr,ir+rr,or+nr)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}(UL);function _createSuper$e(er){var tr=function _isNativeReflectConstruct$e(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var QL=function(er){cE(LineElement,er);var tr=_createSuper$e(LineElement);function LineElement(){var er;return cB(this,LineElement),(er=tr.apply(this,arguments)).type="line",er}return uB(LineElement,[{key:"getPoints",value:function getPoints(){return[new cL(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new cL(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(er){var tr=this.getPoints(),rr=$x(tr,2),nr=rr[0],ir=nr.x,or=nr.y,ar=rr[1],sr=ar.x,lr=ar.y;return er&&(er.beginPath(),er.moveTo(ir,or),er.lineTo(sr,lr)),new EL(ir,or,sr,lr)}},{key:"getMarkers",value:function getMarkers(){var er=this.getPoints(),tr=$x(er,2),rr=tr[0],nr=tr[1],ir=rr.angleTo(nr);return[[rr,ir],[nr,ir]]}}]),LineElement}(UL);function _createSuper$f(er){var tr=function _isNativeReflectConstruct$f(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var DL=function(er){cE(PolylineElement,er);var tr=_createSuper$f(PolylineElement);function PolylineElement(er,rr,nr){var ir;return cB(this,PolylineElement),(ir=tr.call(this,er,rr,nr)).type="polyline",ir.points=[],ir.points=cL.parsePath(ir.getAttribute("points").getString()),ir}return uB(PolylineElement,[{key:"path",value:function path(er){var tr=this.points,rr=$x(tr,1)[0],nr=rr.x,ir=rr.y,or=new EL(nr,ir);return er&&(er.beginPath(),er.moveTo(nr,ir)),hk(tr).call(tr,(function(tr){var rr=tr.x,nr=tr.y;or.addPoint(rr,nr),er&&er.lineTo(rr,nr)})),or}},{key:"getMarkers",value:function getMarkers(){var er=this.points,tr=er.length-1,rr=[];return hk(er).call(er,(function(nr,ir){ir!==tr&&rr.push([nr,nr.angleTo(er[ir+1])])})),rr.length>0&&rr.push([er[er.length-1],rr[rr.length-1][1]]),rr}}]),PolylineElement}(UL);function _createSuper$g(er){var tr=function _isNativeReflectConstruct$g(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var jL=function(er){cE(PolygonElement,er);var tr=_createSuper$g(PolygonElement);function PolygonElement(){var er;return cB(this,PolygonElement),(er=tr.apply(this,arguments)).type="polygon",er}return uB(PolygonElement,[{key:"path",value:function path(er){var tr=$E(gE(PolygonElement.prototype),"path",this).call(this,er),rr=$x(this.points,1)[0],nr=rr.x,ir=rr.y;return er&&(er.lineTo(nr,ir),er.closePath()),tr}}]),PolygonElement}(DL);function _createSuper$h(er){var tr=function _isNativeReflectConstruct$h(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var HL=function(er){cE(PatternElement,er);var tr=_createSuper$h(PatternElement);function PatternElement(){var er;return cB(this,PatternElement),(er=tr.apply(this,arguments)).type="pattern",er}return uB(PatternElement,[{key:"createPattern",value:function createPattern(er,tr,rr){var nr=this.getStyle("width").getPixels("x",!0),ir=this.getStyle("height").getPixels("y",!0),or=new IL(this.document,null);or.attributes.viewBox=new sL(this.document,"viewBox",this.getAttribute("viewBox").getValue()),or.attributes.width=new sL(this.document,"width","".concat(nr,"px")),or.attributes.height=new sL(this.document,"height","".concat(ir,"px")),or.attributes.transform=new sL(this.document,"transform",this.getAttribute("patternTransform").getValue()),or.children=this.children;var ar=this.document.createCanvas(nr,ir),sr=ar.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:AN(this.styles,"fill-opacity");for(var ur=-1;ur<=1;ur++)for(var dr=-1;dr<=1;dr++)sr.save(),or.attributes.x=new sL(this.document,"x",ur*ar.width),or.attributes.y=new sL(this.document,"y",dr*ar.height),or.render(sr),sr.restore();return er.createPattern(ar,"repeat")}}]),PatternElement}(kL);function _createSuper$i(er){var tr=function _isNativeReflectConstruct$i(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var GL=function(er){cE(MarkerElement,er);var tr=_createSuper$i(MarkerElement);function MarkerElement(){var er;return cB(this,MarkerElement),(er=tr.apply(this,arguments)).type="marker",er}return uB(MarkerElement,[{key:"render",value:function render(er,tr,rr){if(tr){var nr=tr.x,ir=tr.y,or=this.getAttribute("orient").getValue("auto"),ar=this.getAttribute("markerUnits").getValue("strokeWidth");er.translate(nr,ir),"auto"===or&&er.rotate(rr),"strokeWidth"===ar&&er.scale(er.lineWidth,er.lineWidth),er.save();var sr=new IL(this.document,null);sr.type=this.type,sr.attributes.viewBox=new sL(this.document,"viewBox",this.getAttribute("viewBox").getValue()),sr.attributes.refX=new sL(this.document,"refX",this.getAttribute("refX").getValue()),sr.attributes.refY=new sL(this.document,"refY",this.getAttribute("refY").getValue()),sr.attributes.width=new sL(this.document,"width",this.getAttribute("markerWidth").getValue()),sr.attributes.height=new sL(this.document,"height",this.getAttribute("markerHeight").getValue()),sr.attributes.overflow=new sL(this.document,"overflow",this.getAttribute("overflow").getValue()),sr.attributes.fill=new sL(this.document,"fill",this.getAttribute("fill").getColor("black")),sr.attributes.stroke=new sL(this.document,"stroke",this.getAttribute("stroke").getValue("none")),sr.children=this.children,sr.render(er),er.restore(),"strokeWidth"===ar&&er.scale(1/er.lineWidth,1/er.lineWidth),"auto"===or&&er.rotate(-rr),er.translate(-nr,-ir)}}}]),MarkerElement}(kL);function _createSuper$j(er){var tr=function _isNativeReflectConstruct$j(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var VL=function(er){cE(DefsElement,er);var tr=_createSuper$j(DefsElement);function DefsElement(){var er;return cB(this,DefsElement),(er=tr.apply(this,arguments)).type="defs",er}return uB(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}(kL);function _createSuper$k(er){var tr=function _isNativeReflectConstruct$k(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var zL=function(er){cE(GElement,er);var tr=_createSuper$k(GElement);function GElement(){var er;return cB(this,GElement),(er=tr.apply(this,arguments)).type="g",er}return uB(GElement,[{key:"getBoundingBox",value:function getBoundingBox(er){var tr,rr=new EL;return hk(tr=this.children).call(tr,(function(tr){rr.addBoundingBox(tr.getBoundingBox(er))})),rr}}]),GElement}(NL);function _createSuper$l(er){var tr=function _isNativeReflectConstruct$l(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var KL=function(er){cE(GradientElement,er);var tr=_createSuper$l(GradientElement);function GradientElement(er,rr,nr){var ir;cB(this,GradientElement),(ir=tr.call(this,er,rr,nr)).attributesToInherit=["gradientUnits"],ir.stops=[];var or=hE(ir),ar=or.stops,sr=or.children;return hk(sr).call(sr,(function(er){"stop"===er.type&&ar.push(er)})),ir}return uB(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(er,tr,rr){var nr=this,ir=this;this.getHrefAttribute().hasValue()&&(ir=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(ir));var or=ir.stops,ar=this.getGradient(er,tr);if(!ar)return this.addParentOpacity(rr,or[or.length-1].color);if(hk(or).call(or,(function(er){ar.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=$x(ur.viewPorts,1)[0],hr=new RL(sr,null);hr.attributes.x=new sL(sr,"x",-cr/3),hr.attributes.y=new sL(sr,"y",-cr/3),hr.attributes.width=new sL(sr,"width",cr),hr.attributes.height=new sL(sr,"height",cr);var pr=new zL(sr,null);pr.attributes.transform=new sL(sr,"transform",this.getAttribute("gradientTransform").getValue()),pr.children=[hr];var Ar=new IL(sr,null);Ar.attributes.x=new sL(sr,"x",0),Ar.attributes.y=new sL(sr,"y",0),Ar.attributes.width=new sL(sr,"width",dr.width),Ar.attributes.height=new sL(sr,"height",dr.height),Ar.children=[pr];var fr=sr.createCanvas(dr.width,dr.height),gr=fr.getContext("2d");return gr.fillStyle=ar,Ar.render(gr),gr.createPattern(fr,"no-repeat")}return ar}},{key:"inheritStopContainer",value:function inheritStopContainer(er){var tr,rr=this;hk(tr=this.attributesToInherit).call(tr,(function(tr){!rr.getAttribute(tr).hasValue()&&er.getAttribute(tr).hasValue()&&rr.getAttribute(tr,!0).setValue(er.getAttribute(tr).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(er,tr){return er.hasValue()?new sL(this.document,"color",tr).addOpacity(er).getColor():tr}}]),GradientElement}(kL);function _createSuper$m(er){var tr=function _isNativeReflectConstruct$m(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var qL=function(er){cE(LinearGradientElement,er);var tr=_createSuper$m(LinearGradientElement);function LinearGradientElement(er,rr,nr){var ir;return cB(this,LinearGradientElement),(ir=tr.call(this,er,rr,nr)).type="linearGradient",ir.attributesToInherit.push("x1","y1","x2","y2"),ir}return uB(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 ir=rr?nr.x+nr.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),or=rr?nr.y+nr.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),ar=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 ir===ar&&or===sr?null:er.createLinearGradient(ir,or,ar,sr)}}]),LinearGradientElement}(KL);function _createSuper$n(er){var tr=function _isNativeReflectConstruct$n(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var WL=function(er){cE(RadialGradientElement,er);var tr=_createSuper$n(RadialGradientElement);function RadialGradientElement(er,rr,nr){var ir;return cB(this,RadialGradientElement),(ir=tr.call(this,er,rr,nr)).type="radialGradient",ir.attributesToInherit.push("cx","cy","r","fx","fy","fr"),ir}return uB(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 ir=rr?nr.x+nr.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),or=rr?nr.y+nr.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),ar=ir,sr=or;this.getAttribute("fx").hasValue()&&(ar=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(ar,sr,cr,ir,or,lr)}}]),RadialGradientElement}(KL);function _createSuper$o(er){var tr=function _isNativeReflectConstruct$o(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var XL=function(er){cE(StopElement,er);var tr=_createSuper$o(StopElement);function StopElement(er,rr,nr){var ir;cB(this,StopElement),(ir=tr.call(this,er,rr,nr)).type="stop";var or=Math.max(0,Math.min(1,ir.getAttribute("offset").getNumber())),ar=ir.getStyle("stop-opacity"),sr=ir.getStyle("stop-color",!0);return""===sr.getString()&&sr.setValue("#000"),ar.hasValue()&&(sr=sr.addOpacity(ar)),ir.offset=or,ir.color=sr.getColor(),ir}return StopElement}(kL);function _createSuper$p(er){var tr=function _isNativeReflectConstruct$p(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var YL=function(er){cE(AnimateElement,er);var tr=_createSuper$p(AnimateElement);function AnimateElement(er,rr,nr){var ir;return cB(this,AnimateElement),(ir=tr.call(this,er,rr,nr)).type="animate",ir.duration=0,ir.initialValue=null,ir.initialUnits="",ir.removed=!1,ir.frozen=!1,er.screen.animations.push(hE(ir)),ir.begin=ir.getAttribute("begin").getMilliseconds(),ir.maxDuration=ir.begin+ir.getAttribute("dur").getMilliseconds(),ir.from=ir.getAttribute("from"),ir.to=ir.getAttribute("to"),ir.values=ir.getAttribute("values"),_N(ir).hasValue()&&_N(ir).setValue(_N(ir).getString().split(";")),ir}return uB(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,tr=this.initialUnits,rr=this.getProgress(),nr=rr.progress,ir=rr.from,or=rr.to,ar=ir.getNumber()+(or.getNumber()-ir.getNumber())*nr;return"%"===tr&&(ar*=100),pB(er="".concat(ar)).call(er,tr)}},{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 ir=!1;if(this.begin<this.duration){var or=this.calcValue(),ar=this.getAttribute("type");if(ar.hasValue()){var sr,lr=ar.getString();or=pB(sr="".concat(lr,"(")).call(sr,or,")")}rr.setValue(or),ir=!0}return ir}},{key:"getProgress",value:function getProgress(){var er=this.document,tr=_N(this),rr={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(tr.hasValue()){var nr=rr.progress*(tr.getValue().length-1),ir=Math.floor(nr),or=Math.ceil(nr);rr.from=new sL(er,"from",vb(tr.getValue()[ir])),rr.to=new sL(er,"to",vb(tr.getValue()[or])),rr.progress=(nr-ir)/(or-ir)}else rr.from=this.from,rr.to=this.to;return rr}}]),AnimateElement}(kL);function _createSuper$q(er){var tr=function _isNativeReflectConstruct$q(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var JL=function(er){cE(AnimateColorElement,er);var tr=_createSuper$q(AnimateColorElement);function AnimateColorElement(){var er;return cB(this,AnimateColorElement),(er=tr.apply(this,arguments)).type="animateColor",er}return uB(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var er=this.getProgress(),tr=er.progress,rr=er.from,nr=er.to,ir=new ZB(rr.getColor()),or=new ZB(nr.getColor());if(ir.ok&&or.ok){var ar,sr,lr=ir.r+(or.r-ir.r)*tr,cr=ir.g+(or.g-ir.g)*tr,ur=ir.b+(or.b-ir.b)*tr;return pB(ar=pB(sr="rgb(".concat(SN(lr,10),", ")).call(sr,SN(cr,10),", ")).call(ar,SN(ur,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}(YL);function _createSuper$r(er){var tr=function _isNativeReflectConstruct$r(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var $L=function(er){cE(AnimateTransformElement,er);var tr=_createSuper$r(AnimateTransformElement);function AnimateTransformElement(){var er;return cB(this,AnimateTransformElement),(er=tr.apply(this,arguments)).type="animateTransform",er}return uB(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var er=this.getProgress(),tr=er.progress,rr=er.from,nr=er.to,ir=toNumbers(rr.getString()),or=toNumbers(nr.getString());return zb(ir).call(ir,(function(er,rr){return er+(or[rr]-er)*tr})).join(" ")}}]),AnimateTransformElement}(YL);function _createForOfIteratorHelper$1(er,tr){var rr;if(void 0===CN||null==kN(er)){if(xN(er)||(rr=function _unsupportedIterableToArray$2(er,tr){var rr;if(!er)return;if("string"==typeof er)return _arrayLikeToArray$2(er,tr);var nr=BN(rr=Object.prototype.toString.call(er)).call(rr,8,-1);"Object"===nr&&er.constructor&&(nr=er.constructor.name);if("Map"===nr||"Set"===nr)return UE(er);if("Arguments"===nr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nr))return _arrayLikeToArray$2(er,tr)}(er))||tr&&er&&"number"==typeof er.length){rr&&(er=rr);var nr=0,ir=function F(){};return{s:ir,n:function n(){return nr>=er.length?{done:!0}:{done:!1,value:er[nr++]}},e:function e(er){throw er},f:ir}}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 or,ar=!0,sr=!1;return{s:function s(){rr=BS(er)},n:function n(){var er=rr.next();return ar=er.done,er},e:function e(er){sr=!0,or=er},f:function f(){try{ar||null==rr.return||rr.return()}finally{if(sr)throw or}}}}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 _createSuper$s(er){var tr=function _isNativeReflectConstruct$s(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var ZL=function(er){cE(FontElement,er);var tr=_createSuper$s(FontElement);function FontElement(er,rr,nr){var ir;cB(this,FontElement),(ir=tr.call(this,er,rr,nr)).type="font",ir.glyphs={},ir.horizAdvX=ir.getAttribute("horiz-adv-x").getNumber();var or,ar=er.definitions,sr=_createForOfIteratorHelper$1(hE(ir).children);try{for(sr.s();!(or=sr.n()).done;){var lr=or.value;switch(lr.type){case"font-face":ir.fontFace=lr;var cr=lr.getStyle("font-family");cr.hasValue()&&(ar[cr.getString()]=hE(ir));break;case"missing-glyph":ir.missingGlyph=lr;break;case"glyph":var ur=lr;ur.arabicForm?(ir.isRTL=!0,ir.isArabic=!0,void 0===ir.glyphs[ur.unicode]&&(ir.glyphs[ur.unicode]={}),ir.glyphs[ur.unicode][ur.arabicForm]=ur):ir.glyphs[ur.unicode]=ur}}}catch(er){sr.e(er)}finally{sr.f()}return ir}return uB(FontElement,[{key:"render",value:function render(){}}]),FontElement}(kL);function _createSuper$t(er){var tr=function _isNativeReflectConstruct$t(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var eT=function(er){cE(FontFaceElement,er);var tr=_createSuper$t(FontFaceElement);function FontFaceElement(er,rr,nr){var ir;return cB(this,FontFaceElement),(ir=tr.call(this,er,rr,nr)).type="font-face",ir.ascent=ir.getAttribute("ascent").getNumber(),ir.descent=ir.getAttribute("descent").getNumber(),ir.unitsPerEm=ir.getAttribute("units-per-em").getNumber(),ir}return FontFaceElement}(kL);function _createSuper$u(er){var tr=function _isNativeReflectConstruct$u(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var tT=function(er){cE(MissingGlyphElement,er);var tr=_createSuper$u(MissingGlyphElement);function MissingGlyphElement(){var er;return cB(this,MissingGlyphElement),(er=tr.apply(this,arguments)).type="missing-glyph",er.horizAdvX=0,er}return MissingGlyphElement}(UL);function _createSuper$v(er){var tr=function _isNativeReflectConstruct$v(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var rT=function(er){cE(GlyphElement,er);var tr=_createSuper$v(GlyphElement);function GlyphElement(er,rr,nr){var ir;return cB(this,GlyphElement),(ir=tr.call(this,er,rr,nr)).type="glyph",ir.horizAdvX=ir.getAttribute("horiz-adv-x").getNumber(),ir.unicode=ir.getAttribute("unicode").getString(),ir.arabicForm=ir.getAttribute("arabic-form").getString(),ir}return GlyphElement}(UL);function _createSuper$w(er){var tr=function _isNativeReflectConstruct$w(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var nT=function(er){cE(TRefElement,er);var tr=_createSuper$w(TRefElement);function TRefElement(){var er;return cB(this,TRefElement),(er=tr.apply(this,arguments)).type="tref",er}return uB(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}(LL);function _createSuper$x(er){var tr=function _isNativeReflectConstruct$x(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var iT=function(er){cE(AElement,er);var tr=_createSuper$x(AElement);function AElement(er,rr,nr){var ir,or;cB(this,AElement),(or=tr.call(this,er,rr,nr)).type="a";var ar=rr.childNodes,sr=ar[0],lr=ar.length>0&&NB(ir=UE(ar)).call(ir,(function(er){return 3===er.nodeType}));return or.hasText=lr,or.text=lr?or.getTextFromNode(sr):"",or}return uB(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(er){if(this.hasText){$E(gE(AElement.prototype),"renderChildren",this).call(this,er);var tr=this.document,rr=this.x,nr=this.y,ir=tr.screen.mouse,or=new sL(tr,"fontSize",BL.parse(tr.ctx.font).fontSize);ir.isWorking()&&ir.checkBoundingBox(this,new EL(rr,nr-or.getPixels("y"),rr+this.measureText(er),nr))}else if(this.children.length>0){var ar=new zL(this.document,null);ar.children=this.children,ar.parent=this,ar.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}(LL);function _createForOfIteratorHelper$1$1(er,tr){var rr;if(void 0===CN||null==kN(er)){if(xN(er)||(rr=function _unsupportedIterableToArray$1$1(er,tr){var rr;if(!er)return;if("string"==typeof er)return _arrayLikeToArray$1$1(er,tr);var nr=BN(rr=Object.prototype.toString.call(er)).call(rr,8,-1);"Object"===nr&&er.constructor&&(nr=er.constructor.name);if("Map"===nr||"Set"===nr)return UE(er);if("Arguments"===nr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nr))return _arrayLikeToArray$1$1(er,tr)}(er))||tr&&er&&"number"==typeof er.length){rr&&(er=rr);var nr=0,ir=function F(){};return{s:ir,n:function n(){return nr>=er.length?{done:!0}:{done:!1,value:er[nr++]}},e:function e(er){throw er},f:ir}}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 or,ar=!0,sr=!1;return{s:function s(){rr=BS(er)},n:function n(){var er=rr.next();return ar=er.done,er},e:function e(er){sr=!0,or=er},f:function f(){try{ar||null==rr.return||rr.return()}finally{if(sr)throw or}}}}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 ownKeys$3(er,tr){var rr=Ck(er);if(xk){var nr=xk(er);tr&&(nr=Sk(nr).call(nr,(function(tr){return gk(er,tr).enumerable}))),rr.push.apply(rr,nr)}return rr}function _objectSpread(er){for(var tr=1;tr<arguments.length;tr++){var rr,nr=null!=arguments[tr]?arguments[tr]:{};if(tr%2)hk(rr=ownKeys$3(Object(nr),!0)).call(rr,(function(tr){lB(er,tr,nr[tr])}));else if(nk)tk(er,nk(nr));else{var ir;hk(ir=ownKeys$3(Object(nr))).call(ir,(function(tr){ek(er,tr,gk(nr,tr))}))}}return er}function _createSuper$y(er){var tr=function _isNativeReflectConstruct$y(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var oT=function(er){cE(TextPathElement,er);var tr=_createSuper$y(TextPathElement);function TextPathElement(er,rr,nr){var ir;cB(this,TextPathElement),(ir=tr.call(this,er,rr,nr)).type="textPath",ir.textWidth=0,ir.textHeight=0,ir.pathLength=-1,ir.glyphInfo=null,ir.letterSpacingCache=[],ir.measuresCache=new GN([["",0]]);var or=ir.getHrefAttribute().getDefinition();return ir.text=ir.getTextFromNode(),ir.dataArray=ir.parsePathData(or),ir}return uB(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(er){var tr=this.dataArray;er&&er.beginPath(),hk(tr).call(tr,(function(tr){var rr=tr.type,nr=tr.points;switch(rr){case FL.LINE_TO:er&&er.lineTo(nr[0],nr[1]);break;case FL.MOVE_TO:er&&er.moveTo(nr[0],nr[1]);break;case FL.CURVE_TO:er&&er.bezierCurveTo(nr[0],nr[1],nr[2],nr[3],nr[4],nr[5]);break;case FL.QUAD_TO:er&&er.quadraticCurveTo(nr[0],nr[1],nr[2],nr[3]);break;case FL.ARC:var ir=$x(nr,8),or=ir[0],ar=ir[1],sr=ir[2],lr=ir[3],cr=ir[4],ur=ir[5],dr=ir[6],hr=ir[7],pr=sr>lr?sr:lr,Ar=sr>lr?1:sr/lr,fr=sr>lr?lr/sr:1;er&&(er.translate(or,ar),er.rotate(dr),er.scale(Ar,fr),er.arc(0,0,pr,cr,cr+ur,Boolean(1-hr)),er.scale(1/Ar,1/fr),er.rotate(-dr),er.translate(-or,-ar));break;case FL.CLOSE_PATH: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,ir=er.fillStyle;"underline"===tr&&er.beginPath(),hk(nr).call(nr,(function(nr,ir){var or=nr.p0,ar=nr.p1,sr=nr.rotation,lr=nr.text;er.save(),er.translate(or.x,or.y),er.rotate(sr),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(ar.x,ar.y+rr/5))})),"underline"===tr&&(er.lineWidth=rr/20,er.strokeStyle=ir,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,ir,or,ar,sr,lr){var cr=or,ur=this.measureText(er,sr);" "===sr&&"justify"===tr&&rr<nr&&(ur+=(nr-rr)/ir),lr>-1&&(cr+=this.getLetterSpacingAt(lr));var dr=this.textHeight/20,hr=this.getEquidistantPointOnPath(cr,dr,0),pr=this.getEquidistantPointOnPath(cr+ur,dr,0),Ar={p0:hr,p1:pr},fr=hr&&pr?Math.atan2(pr.y-hr.y,pr.x-hr.x):0;if(ar){var gr=Math.cos(Math.PI/2+fr)*ar,mr=Math.cos(-fr)*ar;Ar.p0=_objectSpread(_objectSpread({},hr),{},{x:hr.x+gr,y:hr.y+mr}),Ar.p1=_objectSpread(_objectSpread({},pr),{},{x:pr.x+gr,y:pr.y+mr})}return{offset:cr+=ur,segment:Ar,rotation:fr}}},{key:"measureText",value:function measureText(er,tr){var rr=this.measuresCache,nr=tr||this.getText();if(rr.has(nr))return rr.get(nr);var ir=this.measureTargetText(er,nr);return rr.set(nr,ir),ir}},{key:"setTextData",value:function setTextData(er){var tr,rr=this;if(!this.glyphInfo){var nr=this.getText(),ir=nr.split(""),or=nr.split(" ").length-1,ar=zb(tr=this.parent.getAttribute("dx").split()).call(tr,(function(er){return er.getPixels("x")})),sr=this.parent.getAttribute("dy").getPixels("y"),lr=this.parent.getStyle("text-anchor").getString("start"),cr=this.getStyle("letter-spacing"),ur=this.parent.getStyle("letter-spacing"),dr=0;cr.hasValue()&&"inherit"!==cr.getValue()?cr.hasValue()&&"initial"!==cr.getValue()&&"unset"!==cr.getValue()&&(dr=cr.getPixels()):dr=ur.getPixels();var hr=[],pr=nr.length;this.letterSpacingCache=hr;for(var Ar=0;Ar<pr;Ar++)hr.push(void 0!==ar[Ar]?ar[Ar]:dr);var fr=wB(hr).call(hr,(function(er,tr,rr){return 0===rr?0:er+tr||0}),0),gr=this.measureText(er),mr=Math.max(gr+fr,0);this.textWidth=gr,this.textHeight=this.getFontSize(),this.glyphInfo=[];var _r=this.getPathLength(),vr=this.getStyle("startOffset").getNumber(0)*_r,yr=0;"middle"!==lr&&"center"!==lr||(yr=-mr/2),"end"!==lr&&"right"!==lr||(yr=-mr),yr+=vr,hk(ir).call(ir,(function(tr,nr){var ar=rr.findSegmentToFitChar(er,lr,mr,_r,or,yr,sr,tr,nr),cr=ar.offset,ur=ar.segment,dr=ar.rotation;yr=cr,ur.p0&&ur.p1&&rr.glyphInfo.push({text:ir[nr],p0:ur.p0,p1:ur.p1,rotation:dr})}))}}},{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,ir=nr?nr.x:0,or=nr?nr.y:0,ar=rr.next(),sr=ar.type,lr=[];switch(ar.type){case FL.MOVE_TO:this.pathM(rr,lr);break;case FL.LINE_TO:sr=this.pathL(rr,lr);break;case FL.HORIZ_LINE_TO:sr=this.pathH(rr,lr);break;case FL.VERT_LINE_TO:sr=this.pathV(rr,lr);break;case FL.CURVE_TO:this.pathC(rr,lr);break;case FL.SMOOTH_CURVE_TO:sr=this.pathS(rr,lr);break;case FL.QUAD_TO:this.pathQ(rr,lr);break;case FL.SMOOTH_QUAD_TO:sr=this.pathT(rr,lr);break;case FL.ARC:lr=this.pathA(rr);break;case FL.CLOSE_PATH:UL.pathZ(rr)}ar.type!==FL.CLOSE_PATH?tr.push({type:sr,points:lr,start:{x:ir,y:or},pathLength:this.calcLength(ir,or,sr,lr)}):tr.push({type:FL.CLOSE_PATH,points:[],pathLength:0})}return tr}},{key:"pathM",value:function pathM(er,tr){var rr=UL.pathM(er).point,nr=rr.x,ir=rr.y;tr.push(nr,ir)}},{key:"pathL",value:function pathL(er,tr){var rr=UL.pathL(er).point,nr=rr.x,ir=rr.y;return tr.push(nr,ir),FL.LINE_TO}},{key:"pathH",value:function pathH(er,tr){var rr=UL.pathH(er).point,nr=rr.x,ir=rr.y;return tr.push(nr,ir),FL.LINE_TO}},{key:"pathV",value:function pathV(er,tr){var rr=UL.pathV(er).point,nr=rr.x,ir=rr.y;return tr.push(nr,ir),FL.LINE_TO}},{key:"pathC",value:function pathC(er,tr){var rr=UL.pathC(er),nr=rr.point,ir=rr.controlPoint,or=rr.currentPoint;tr.push(nr.x,nr.y,ir.x,ir.y,or.x,or.y)}},{key:"pathS",value:function pathS(er,tr){var rr=UL.pathS(er),nr=rr.point,ir=rr.controlPoint,or=rr.currentPoint;return tr.push(nr.x,nr.y,ir.x,ir.y,or.x,or.y),FL.CURVE_TO}},{key:"pathQ",value:function pathQ(er,tr){var rr=UL.pathQ(er),nr=rr.controlPoint,ir=rr.currentPoint;tr.push(nr.x,nr.y,ir.x,ir.y)}},{key:"pathT",value:function pathT(er,tr){var rr=UL.pathT(er),nr=rr.controlPoint,ir=rr.currentPoint;return tr.push(nr.x,nr.y,ir.x,ir.y),FL.QUAD_TO}},{key:"pathA",value:function pathA(er){var tr=UL.pathA(er),rr=tr.rX,nr=tr.rY,ir=tr.sweepFlag,or=tr.xAxisRotation,ar=tr.centp,sr=tr.a1,lr=tr.ad;return 0===ir&&lr>0&&(lr-=2*Math.PI),1===ir&&lr<0&&(lr+=2*Math.PI),[ar.x,ar.y,rr,nr,sr,lr,or,ir]}},{key:"calcLength",value:function calcLength(er,tr,rr,nr){var ir=0,or=null,ar=null,sr=0;switch(rr){case FL.LINE_TO:return this.getLineLength(er,tr,nr[0],nr[1]);case FL.CURVE_TO:for(ir=0,or=this.getPointOnCubicBezier(0,er,tr,nr[0],nr[1],nr[2],nr[3],nr[4],nr[5]),sr=.01;sr<=1;sr+=.01)ar=this.getPointOnCubicBezier(sr,er,tr,nr[0],nr[1],nr[2],nr[3],nr[4],nr[5]),ir+=this.getLineLength(or.x,or.y,ar.x,ar.y),or=ar;return ir;case FL.QUAD_TO:for(ir=0,or=this.getPointOnQuadraticBezier(0,er,tr,nr[0],nr[1],nr[2],nr[3]),sr=.01;sr<=1;sr+=.01)ar=this.getPointOnQuadraticBezier(sr,er,tr,nr[0],nr[1],nr[2],nr[3]),ir+=this.getLineLength(or.x,or.y,ar.x,ar.y),or=ar;return ir;case FL.ARC:ir=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)),or=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],lr,0),cr<0)for(sr=lr-dr;sr>ur;sr-=dr)ar=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],sr,0),ir+=this.getLineLength(or.x,or.y,ar.x,ar.y),or=ar;else for(sr=lr+dr;sr<ur;sr+=dr)ar=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],sr,0),ir+=this.getLineLength(or.x,or.y,ar.x,ar.y),or=ar;return ar=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],ur,0),ir+=this.getLineLength(or.x,or.y,ar.x,ar.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(er,tr,rr,nr,ir){var or=arguments.length>5&&void 0!==arguments[5]?arguments[5]:tr,ar=arguments.length>6&&void 0!==arguments[6]?arguments[6]:rr,sr=(ir-rr)/(nr-tr+aL),lr=Math.sqrt(er*er/(1+sr*sr));nr<tr&&(lr*=-1);var cr=sr*lr,ur=null;if(nr===tr)ur={x:or,y:ar+cr};else if((ar-rr)/(or-tr+aL)===sr)ur={x:or+lr,y:ar+cr};else{var dr=0,hr=0,pr=this.getLineLength(tr,rr,nr,ir);if(pr<aL)return null;var Ar=(or-tr)*(nr-tr)+(ar-rr)*(ir-rr);dr=tr+(Ar/=pr*pr)*(nr-tr),hr=rr+Ar*(ir-rr);var fr=this.getLineLength(or,ar,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 ir,or=_createForOfIteratorHelper$1$1(this.dataArray);try{for(or.s();!(ir=or.n()).done;){var ar=ir.value;if(!ar||!(ar.pathLength<5e-5||rr+ar.pathLength+5e-5<er)){var sr=er-rr,lr=0;switch(ar.type){case FL.LINE_TO:nr=this.getPointOnLine(sr,ar.start.x,ar.start.y,ar.points[0],ar.points[1],ar.start.x,ar.start.y);break;case FL.ARC:var cr=ar.points[4],ur=ar.points[5],dr=ar.points[4]+ur;if(lr=cr+sr/ar.pathLength*ur,ur<0&&lr<dr||ur>=0&&lr>dr)break;nr=this.getPointOnEllipticalArc(ar.points[0],ar.points[1],ar.points[2],ar.points[3],lr,ar.points[6]);break;case FL.CURVE_TO:(lr=sr/ar.pathLength)>1&&(lr=1),nr=this.getPointOnCubicBezier(lr,ar.start.x,ar.start.y,ar.points[0],ar.points[1],ar.points[2],ar.points[3],ar.points[4],ar.points[5]);break;case FL.QUAD_TO:(lr=sr/ar.pathLength)>1&&(lr=1),nr=this.getPointOnQuadraticBezier(lr,ar.start.x,ar.start.y,ar.points[0],ar.points[1],ar.points[2],ar.points[3])}if(nr)return nr;break}rr+=ar.pathLength}}catch(er){or.e(er)}finally{or.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(){var er;-1===this.pathLength&&(this.pathLength=wB(er=this.dataArray).call(er,(function(er,tr){return tr.pathLength>0?er+tr.pathLength:er}),0));return this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(er,tr,rr,nr,ir,or,ar,sr,lr){return{x:sr*CB1(er)+or*CB2(er)+nr*CB3(er)+tr*CB4(er),y:lr*CB1(er)+ar*CB2(er)+ir*CB3(er)+rr*CB4(er)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(er,tr,rr,nr,ir,or,ar){return{x:or*QB1(er)+nr*QB2(er)+tr*QB3(er),y:ar*QB1(er)+ir*QB2(er)+rr*QB3(er)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(er,tr,rr,nr,ir,or){var ar=Math.cos(or),sr=Math.sin(or),lr=rr*Math.cos(ir),cr=nr*Math.sin(ir);return{x:er+(lr*ar-cr*sr),y:tr+(lr*sr+cr*ar)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(er,tr){var rr=this.getPathLength(),nr=tr||.25,ir=er||rr/100;if(!this.equidistantCache||this.equidistantCache.step!==ir||this.equidistantCache.precision!==nr){this.equidistantCache={step:ir,precision:nr,points:[]};for(var or=0,ar=0;ar<=rr;ar+=nr){var sr=this.getPointOnPath(ar),lr=this.getPointOnPath(ar+nr);sr&&lr&&((or+=this.getLineLength(sr.x,sr.y,lr.x,lr.y))>=ir&&(this.equidistantCache.points.push({x:sr.x,y:sr.y,distance:ar}),or-=ir))}}}},{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}(LL);function _createSuper$z(er){var tr=function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var aT=function(er){cE(ImageElement,er);var tr,rr,nr=_createSuper$z(ImageElement);function ImageElement(er,tr,rr){var ir;cB(this,ImageElement),(ir=nr.call(this,er,tr,rr)).type="image",ir.loaded=!1;var or=ir.getHrefAttribute().getString();if(!or)return pE(ir);var ar=/\.svg$/.test(or);return er.images.push(hE(ir)),ar?ir.loadSvg(or):ir.loadImage(or),ir.isSvg=ar,ir}return uB(ImageElement,[{key:"loadImage",value:(rr=aB(Bk.mark((function _callee(er){var tr;return Bk.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=aB(Bk.mark((function _callee2(er){var tr,rr;return Bk.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,ir=this.getAttribute("x").getPixels("x"),or=this.getAttribute("y").getPixels("y"),ar=this.getStyle("width").getPixels("x"),sr=this.getStyle("height").getPixels("y");if(nr&&rr&&ar&&sr){if(er.save(),this.isSvg)tr.canvg.forkString(er,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:ir,offsetY:or,scaleWidth:ar,scaleHeight:sr}).render();else{var lr=this.image;er.translate(ir,or),tr.setViewBox({ctx:er,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:ar,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 EL(er,tr,er+rr,tr+nr)}}]),ImageElement}(NL);function _createSuper$A(er){var tr=function _isNativeReflectConstruct$A(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var sT=function(er){cE(SymbolElement,er);var tr=_createSuper$A(SymbolElement);function SymbolElement(){var er;return cB(this,SymbolElement),(er=tr.apply(this,arguments)).type="symbol",er}return uB(SymbolElement,[{key:"render",value:function render(er){}}]),SymbolElement}(NL),lT=function(){function SVGFontLoader(er){cB(this,SVGFontLoader),this.document=er,this.loaded=!1,er.fonts.push(this)}var er;return uB(SVGFontLoader,[{key:"load",value:(er=aB(Bk.mark((function _callee(er,tr){var rr,nr,ir,or;return Bk.wrap((function _callee$(ar){for(;;)switch(ar.prev=ar.next){case 0:return ar.prev=0,nr=this.document,ar.next=4,nr.canvg.parser.load(tr);case 4:ir=ar.sent,or=ir.getElementsByTagName("font"),hk(rr=UE(or)).call(rr,(function(tr){var rr=nr.createElement(tr);nr.definitions[er]=rr})),ar.next=12;break;case 9:ar.prev=9,ar.t0=ar.catch(0),console.error('Error while loading font "'.concat(tr,'":'),ar.t0);case 12:this.loaded=!0;case 13:case"end":return ar.stop()}}),_callee,this,[[0,9]])}))),function load(tr,rr){return er.apply(this,arguments)})}]),SVGFontLoader}();function _createSuper$B(er){var tr=function _isNativeReflectConstruct$B(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var cT=function(er){cE(StyleElement,er);var tr=_createSuper$B(StyleElement);function StyleElement(er,rr,nr){var ir,or;cB(this,StyleElement),(or=tr.call(this,er,rr,nr)).type="style";var ar=compressSpaces(zb(ir=UE(rr.childNodes)).call(ir,(function(er){return er.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return hk(ar).call(ar,(function(tr){var rr=$B(tr).call(tr);if(rr){var nr=rr.split("{"),ir=nr[0].split(","),or=nr[1].split(";");hk(ir).call(ir,(function(tr){var rr=$B(tr).call(tr);if(rr){var nr=er.styles[rr]||{};if(hk(or).call(or,(function(tr){var rr,ir,or=WE(tr).call(tr,":"),ar=$B(rr=tr.substr(0,or)).call(rr),sr=$B(ir=tr.substr(or+1,tr.length-or)).call(ir);ar&&sr&&(nr[ar]=new sL(er,ar,sr))})),er.styles[rr]=nr,er.stylesSpecificity[rr]=getSelectorSpecificity(rr),"@font-face"===rr){var ir=nr["font-family"].getString().replace(/"|'/g,""),ar=nr.src.getString().split(",");hk(ar).call(ar,(function(tr){if(WE(tr).call(tr,'format("svg")')>0){var rr=parseExternalUrl(tr);rr&&new lT(er).load(ir,rr)}}))}}}))}})),or}return StyleElement}(kL);function _createSuper$C(er){var tr=function _isNativeReflectConstruct$C(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}cT.parseExternalUrl=parseExternalUrl;var uT=function(er){cE(UseElement,er);var tr=_createSuper$C(UseElement);function UseElement(){var er;return cB(this,UseElement),(er=tr.apply(this,arguments)).type="use",er}return uB(UseElement,[{key:"setContext",value:function setContext(er){$E(gE(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 IL(tr,null)).attributes.viewBox=new sL(tr,"viewBox",rr.getAttribute("viewBox").getString()),nr.attributes.preserveAspectRatio=new sL(tr,"preserveAspectRatio",rr.getAttribute("preserveAspectRatio").getString()),nr.attributes.overflow=new sL(tr,"overflow",rr.getAttribute("overflow").getString()),nr.children=rr.children,rr.styles.opacity=new sL(tr,"opacity",this.calculateOpacity())),"svg"===nr.type){var ir=this.getStyle("width",!1,!0),or=this.getStyle("height",!1,!0);ir.hasValue()&&(nr.attributes.width=new sL(tr,"width",ir.getString())),or.hasValue()&&(nr.attributes.height=new sL(tr,"height",or.getString()))}var ar=nr.parent;nr.parent=this,nr.render(er),nr.parent=ar}}},{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 xL.fromElement(er,tr)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}(NL);function _createSuper$D(er){var tr=function _isNativeReflectConstruct$D(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}function imGet(er,tr,rr,nr,ir,or){return er[rr*nr*4+4*tr+or]}function imSet(er,tr,rr,nr,ir,or,ar){er[rr*nr*4+4*tr+or]=ar}function m$2(er,tr,rr){return er[tr]*rr}function c$2(er,tr,rr,nr){return tr+Math.cos(er)*rr+Math.sin(er)*nr}var dT=function(er){cE(FeColorMatrixElement,er);var tr=_createSuper$D(FeColorMatrixElement);function FeColorMatrixElement(er,rr,nr){var ir;cB(this,FeColorMatrixElement),(ir=tr.call(this,er,rr,nr)).type="feColorMatrix";var or=toNumbers(ir.getAttribute("values").getString());switch(ir.getAttribute("type").getString("matrix")){case"saturate":var ar=or[0];or=[.213+.787*ar,.715-.715*ar,.072-.072*ar,0,0,.213-.213*ar,.715+.285*ar,.072-.072*ar,0,0,.213-.213*ar,.715-.715*ar,.072+.928*ar,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var sr=or[0]*Math.PI/180;or=[c$2(sr,.213,.787,-.213),c$2(sr,.715,-.715,-.715),c$2(sr,.072,-.072,.928),0,0,c$2(sr,.213,-.213,.143),c$2(sr,.715,.285,.14),c$2(sr,.072,-.072,-.283),0,0,c$2(sr,.213,-.213,-.787),c$2(sr,.715,-.715,.715),c$2(sr,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":or=[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 ir.matrix=or,ir.includeOpacity=ir.getAttribute("includeOpacity").hasValue(),ir}return uB(FeColorMatrixElement,[{key:"apply",value:function apply(er,tr,rr,nr,ir){for(var or=this.includeOpacity,ar=this.matrix,sr=er.getImageData(0,0,nr,ir),lr=0;lr<ir;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$2(ar,0,ur)+m$2(ar,1,dr)+m$2(ar,2,hr)+m$2(ar,3,pr)+m$2(ar,4,1),fr=m$2(ar,5,ur)+m$2(ar,6,dr)+m$2(ar,7,hr)+m$2(ar,8,pr)+m$2(ar,9,1),gr=m$2(ar,10,ur)+m$2(ar,11,dr)+m$2(ar,12,hr)+m$2(ar,13,pr)+m$2(ar,14,1),mr=m$2(ar,15,ur)+m$2(ar,16,dr)+m$2(ar,17,hr)+m$2(ar,18,pr)+m$2(ar,19,1);or&&(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,ir),er.putImageData(sr,0,0)}}]),FeColorMatrixElement}(kL);function _createSuper$E(er){var tr=function _isNativeReflectConstruct$E(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var hT=function(er){cE(MaskElement,er);var tr=_createSuper$E(MaskElement);function MaskElement(){var er;return cB(this,MaskElement),(er=tr.apply(this,arguments)).type="mask",er}return uB(MaskElement,[{key:"apply",value:function apply(er,tr){var rr=this.document,nr=this.getAttribute("x").getPixels("x"),ir=this.getAttribute("y").getPixels("y"),or=this.getStyle("width").getPixels("x"),ar=this.getStyle("height").getPixels("y");if(!or&&!ar){var sr,lr=new EL;hk(sr=this.children).call(sr,(function(tr){lr.addBoundingBox(tr.getBoundingBox(er))})),nr=Math.floor(lr.x1),ir=Math.floor(lr.y1),or=Math.floor(lr.width),ar=Math.floor(lr.height)}var cr=this.removeStyles(tr,MaskElement.ignoreStyles),ur=rr.createCanvas(nr+or,ir+ar),dr=ur.getContext("2d");rr.screen.setDefaults(dr),this.renderChildren(dr),new dT(rr,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(dr,0,0,nr+or,ir+ar);var hr=rr.createCanvas(nr+or,ir+ar),pr=hr.getContext("2d");rr.screen.setDefaults(pr),tr.render(pr),pr.globalCompositeOperation="destination-in",pr.fillStyle=dr.createPattern(ur,"no-repeat"),pr.fillRect(0,0,nr+or,ir+ar),er.fillStyle=pr.createPattern(hr,"no-repeat"),er.fillRect(0,0,nr+or,ir+ar),this.restoreStyles(tr,cr)}},{key:"render",value:function render(er){}}]),MaskElement}(kL);function _createSuper$F(er){var tr=function _isNativeReflectConstruct$F(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}hT.ignoreStyles=["mask","transform","clip-path"];var pT=function noop(){},AT=function(er){cE(ClipPathElement,er);var tr=_createSuper$F(ClipPathElement);function ClipPathElement(){var er;return cB(this,ClipPathElement),(er=tr.apply(this,arguments)).type="clipPath",er}return uB(ClipPathElement,[{key:"apply",value:function apply(er){var tr,rr=this.document,nr=WN(er),ir=er.beginPath,or=er.closePath;nr&&(nr.beginPath=pT,nr.closePath=pT),qN(ir,er,[]),hk(tr=this.children).call(tr,(function(tr){if(void 0!==tr.path){var ir=void 0!==tr.elementTransform?tr.elementTransform():null;ir||(ir=xL.fromElement(rr,tr)),ir&&ir.apply(er),tr.path(er),nr&&(nr.closePath=or),ir&&ir.unapply(er)}})),qN(or,er,[]),er.clip(),nr&&(nr.beginPath=ir,nr.closePath=or)}},{key:"render",value:function render(er){}}]),ClipPathElement}(kL);function _createSuper$G(er){var tr=function _isNativeReflectConstruct$G(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var fT=function(er){cE(FilterElement,er);var tr=_createSuper$G(FilterElement);function FilterElement(){var er;return cB(this,FilterElement),(er=tr.apply(this,arguments)).type="filter",er}return uB(FilterElement,[{key:"apply",value:function apply(er,tr){var rr=this.document,nr=this.children,ir=tr.getBoundingBox(er);if(ir){var or=0,ar=0;hk(nr).call(nr,(function(er){var tr=er.extraFilterDistance||0;or=Math.max(or,tr),ar=Math.max(ar,tr)}));var sr=Math.floor(ir.width),lr=Math.floor(ir.height),cr=sr+2*or,ur=lr+2*ar;if(!(cr<1||ur<1)){var dr=Math.floor(ir.x),hr=Math.floor(ir.y),pr=this.removeStyles(tr,FilterElement.ignoreStyles),Ar=rr.createCanvas(cr,ur),fr=Ar.getContext("2d");rr.screen.setDefaults(fr),fr.translate(-dr+or,-hr+ar),tr.render(fr),hk(nr).call(nr,(function(er){"function"==typeof er.apply&&er.apply(fr,0,0,cr,ur)})),er.drawImage(Ar,0,0,cr,ur,dr-or,hr-ar,cr,ur),this.restoreStyles(tr,pr)}}}},{key:"render",value:function render(er){}}]),FilterElement}(kL);function _createSuper$H(er){var tr=function _isNativeReflectConstruct$H(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}fT.ignoreStyles=["filter","transform","clip-path"];var gT=function(er){cE(FeDropShadowElement,er);var tr=_createSuper$H(FeDropShadowElement);function FeDropShadowElement(er,rr,nr){var ir;return cB(this,FeDropShadowElement),(ir=tr.call(this,er,rr,nr)).type="feDropShadow",ir.addStylesFromStyleDefinition(),ir}return uB(FeDropShadowElement,[{key:"apply",value:function apply(er,tr,rr,nr,ir){}}]),FeDropShadowElement}(kL);function _createSuper$I(er){var tr=function _isNativeReflectConstruct$I(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var mT=function(er){cE(FeMorphologyElement,er);var tr=_createSuper$I(FeMorphologyElement);function FeMorphologyElement(){var er;return cB(this,FeMorphologyElement),(er=tr.apply(this,arguments)).type="feMorphology",er}return uB(FeMorphologyElement,[{key:"apply",value:function apply(er,tr,rr,nr,ir){}}]),FeMorphologyElement}(kL);function _createSuper$J(er){var tr=function _isNativeReflectConstruct$J(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var _T=function(er){cE(FeCompositeElement,er);var tr=_createSuper$J(FeCompositeElement);function FeCompositeElement(){var er;return cB(this,FeCompositeElement),(er=tr.apply(this,arguments)).type="feComposite",er}return uB(FeCompositeElement,[{key:"apply",value:function apply(er,tr,rr,nr,ir){}}]),FeCompositeElement}(kL);function _createSuper$K(er){var tr=function _isNativeReflectConstruct$K(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var vT=function(er){cE(FeGaussianBlurElement,er);var tr=_createSuper$K(FeGaussianBlurElement);function FeGaussianBlurElement(er,rr,nr){var ir;return cB(this,FeGaussianBlurElement),(ir=tr.call(this,er,rr,nr)).type="feGaussianBlur",ir.blurRadius=Math.floor(ir.getAttribute("stdDeviation").getNumber()),ir.extraFilterDistance=ir.blurRadius,ir}return uB(FeGaussianBlurElement,[{key:"apply",value:function apply(er,tr,rr,nr,ir){var or=this.document,ar=this.blurRadius,sr=or.window?or.window.document.body:null,lr=er.canvas;lr.id=or.getUniqueId(),sr&&(lr.style.display="none",sr.appendChild(lr)),processCanvasRGBA(lr,tr,rr,nr,ir,ar),sr&&sr.removeChild(lr)}}]),FeGaussianBlurElement}(kL);function _createSuper$L(er){var tr=function _isNativeReflectConstruct$L(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var yT=function(er){cE(TitleElement,er);var tr=_createSuper$L(TitleElement);function TitleElement(){var er;return cB(this,TitleElement),(er=tr.apply(this,arguments)).type="title",er}return TitleElement}(kL);function _createSuper$M(er){var tr=function _isNativeReflectConstruct$M(){if("undefined"==typeof Reflect||!iE)return!1;if(iE.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(iE(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=gE(er);if(tr){var ir=gE(this).constructor;rr=iE(nr,arguments,ir)}else rr=nr.apply(this,arguments);return pE(this,rr)}}var bT=function(er){cE(DescElement,er);var tr=_createSuper$M(DescElement);function DescElement(){var er;return cB(this,DescElement),(er=tr.apply(this,arguments)).type="desc",er}return DescElement}(kL),wT={svg:IL,rect:RL,circle:ML,ellipse:OL,line:QL,polyline:DL,polygon:jL,path:UL,pattern:HL,marker:GL,defs:VL,linearGradient:qL,radialGradient:WL,stop:XL,animate:YL,animateColor:JL,animateTransform:$L,font:ZL,"font-face":eT,"missing-glyph":tT,glyph:rT,text:LL,tspan:TL,tref:nT,a:iT,textPath:oT,image:aT,g:zL,symbol:sT,style:cT,use:uT,mask:hT,clipPath:AT,filter:fT,feDropShadow:gT,feMorphology:mT,feComposite:_T,feColorMatrix:dT,feGaussianBlur:vT,title:yT,desc:bT};function ownKeys$1$1(er,tr){var rr=Ck(er);if(xk){var nr=xk(er);tr&&(nr=Sk(nr).call(nr,(function(tr){return gk(er,tr).enumerable}))),rr.push.apply(rr,nr)}return rr}function _createImage(){return(_createImage=aB(Bk.mark((function _callee(er){var tr,rr,nr=arguments;return Bk.wrap((function _callee$(ir){for(;;)switch(ir.prev=ir.next){case 0:return tr=nr.length>1&&void 0!==nr[1]&&nr[1],rr=document.createElement("img"),tr&&(rr.crossOrigin="Anonymous"),ir.abrupt("return",new LB((function(tr,nr){rr.onload=function(){tr(rr)},rr.onerror=function(){nr()},rr.src=er})));case 4:case"end":return ir.stop()}}),_callee)})))).apply(this,arguments)}var ST=function(){function Document(er){var tr,rr,nr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ir=nr.rootEmSize,or=void 0===ir?12:ir,ar=nr.emSize,sr=void 0===ar?12:ar,lr=nr.createCanvas,cr=void 0===lr?Document.createCanvas:lr,ur=nr.createImage,dr=void 0===ur?Document.createImage:ur,hr=nr.anonymousCrossOrigin;cB(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=or,this.emSize=sr,this.createCanvas=cr,this.createImage=this.bindCreateImage(dr,hr),this.screen.wait(MB(tr=this.isImagesLoaded).call(tr,this)),this.screen.wait(MB(rr=this.isFontsLoaded).call(rr,this))}return uB(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(){var er;return NB(er=this.images).call(er,(function(er){return er.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){var er;return NB(er=this.fonts).call(er,(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 CL(this,er)}},{key:"createTextNode",value:function createTextNode(er){return new PL(this,er)}},{key:"setViewBox",value:function setViewBox(er){this.screen.setViewBox(function _objectSpread$1(er){for(var tr=1;tr<arguments.length;tr++){var rr,nr=null!=arguments[tr]?arguments[tr]:{};if(tr%2)hk(rr=ownKeys$1$1(Object(nr),!0)).call(rr,(function(tr){lB(er,tr,nr[tr])}));else if(nk)tk(er,nk(nr));else{var ir;hk(ir=ownKeys$1$1(Object(nr))).call(ir,(function(tr){ek(er,tr,gk(nr,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$2$1(er,tr){var rr=Ck(er);if(xk){var nr=xk(er);tr&&(nr=Sk(nr).call(nr,(function(tr){return gk(er,tr).enumerable}))),rr.push.apply(rr,nr)}return rr}function _objectSpread$2(er){for(var tr=1;tr<arguments.length;tr++){var rr,nr=null!=arguments[tr]?arguments[tr]:{};if(tr%2)hk(rr=ownKeys$2$1(Object(nr),!0)).call(rr,(function(tr){lB(er,tr,nr[tr])}));else if(nk)tk(er,nk(nr));else{var ir;hk(ir=ownKeys$2$1(Object(nr))).call(ir,(function(tr){ek(er,tr,gk(nr,tr))}))}}return er}ST.createCanvas=function createCanvas(er,tr){var rr=document.createElement("canvas");return rr.width=er,rr.height=tr,rr},ST.createImage=function createImage(er){return _createImage.apply(this,arguments)},ST.elementTypes=wT;var xT=function(){function Canvg(er,tr){var rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};cB(this,Canvg),this.parser=new gL(rr),this.screen=new pL(er,rr),this.options=rr;var nr=new ST(this,rr),ir=nr.createDocumentElement(tr);this.document=nr,this.documentElement=ir}var er,tr;return uB(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$2(_objectSpread$2({},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$2(_objectSpread$2({},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=aB(Bk.mark((function _callee(){var er,tr=arguments;return Bk.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$2({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$2(_objectSpread$2({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=aB(Bk.mark((function _callee2(er,tr){var rr,nr,ir,or=arguments;return Bk.wrap((function _callee2$(ar){for(;;)switch(ar.prev=ar.next){case 0:return rr=or.length>2&&void 0!==or[2]?or[2]:{},nr=new gL(rr),ar.next=4,nr.parse(tr);case 4:return ir=ar.sent,ar.abrupt("return",new Canvg(er,ir,rr));case 6:case"end":return ar.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 gL(rr),ir=nr.parseFromString(tr);return new Canvg(er,ir,rr)}}]),Canvg}();var kT=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 aB(Bk.mark((function _callee(){var tr,rr,nr;return Bk.wrap((function _callee$(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.next=2,fetch(er);case 2:return tr=ir.sent,ir.next=5,tr.blob();case 5:return rr=ir.sent,ir.next=8,createImageBitmap(rr);case 8:return nr=ir.sent,ir.abrupt("return",nr);case 10:case"end":return ir.stop()}}),_callee)})))()}};return"undefined"==typeof DOMParser&&void 0!==tr||AN(rr,"DOMParser"),rr},node:function node$2(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}}}),CT=Object.freeze({__proto__:null,default:xT,AElement:iT,AnimateColorElement:JL,AnimateElement:YL,AnimateTransformElement:$L,BoundingBox:EL,CB1:CB1,CB2:CB2,CB3:CB3,CB4:CB4,Canvg:xT,CircleElement:ML,ClipPathElement:AT,DefsElement:VL,DescElement:bT,Document:ST,Element:kL,EllipseElement:OL,FeColorMatrixElement:dT,FeCompositeElement:_T,FeDropShadowElement:gT,FeGaussianBlurElement:vT,FeMorphologyElement:mT,FilterElement:fT,Font:BL,FontElement:ZL,FontFaceElement:eT,GElement:zL,GlyphElement:rT,GradientElement:KL,ImageElement:aT,LineElement:QL,LinearGradientElement:qL,MarkerElement:GL,MaskElement:hT,Matrix:yL,MissingGlyphElement:tT,Mouse:uL,PSEUDO_ZERO:aL,Parser:gL,PathElement:UL,PathParser:FL,PatternElement:HL,Point:cL,PolygonElement:jL,PolylineElement:DL,Property:sL,QB1:QB1,QB2:QB2,QB3:QB3,RadialGradientElement:WL,RectElement:RL,RenderedElement:NL,Rotate:_L,SVGElement:IL,SVGFontLoader:lT,Scale:vL,Screen:pL,Skew:bL,SkewX:wL,SkewY:SL,StopElement:XL,StyleElement:cT,SymbolElement:sT,TRefElement:nT,TSpanElement:TL,TextElement:LL,TextPathElement:oT,TitleElement:yT,Transform:xL,Translate:mL,UnknownElement:CL,UseElement:uT,ViewPort:lL,compressSpaces:compressSpaces,getSelectorSpecificity:getSelectorSpecificity,normalizeAttributeName:normalizeAttributeName,normalizeColor:normalizeColor,parseExternalUrl:parseExternalUrl,presets:kT,toNumbers:toNumbers,trimLeft:trimLeft$1,trimRight:trimRight$1,vectorMagnitude:vectorMagnitude,vectorsAngle:vectorsAngle,vectorsRatio:vectorsRatio});function jQueryPluginDBox(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.ok,nr=void 0===rr?"Ok":rr,ir=tr.cancel,or=void 0===ir?"Cancel":ir;er("#dialog_container").draggable({cancel:"#dialog_content, #dialog_buttons *",containment:"window"}).css("position","absolute");var ar=er("#dialog_box"),sr=er("#dialog_buttons"),lr=er("#dialog_content");function dbox(tr,rr,ir,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="'+or+'">').appendTo(sr).click((function(){ar.hide(),nr(!1)})),"prompt"===tr)(Ar=er('<input type="text">').prependTo(sr)).val(ir||""),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),ir&&Ar.val(ir),ur&&Ar.bind("change","return",ur),Ar.bind("keydown","return",(function(){hr.click()}))}else"process"===tr&&hr.hide();ar.show(),hr.click((function(){ar.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,ir){return dbox("select",er,nr,tr,rr,ir)},er}var BT,ET,NT,LT,TT,PT={BEFORE_APPLY:"before_apply",AFTER_APPLY:"after_apply",BEFORE_UNAPPLY:"before_unapply",AFTER_UNAPPLY:"after_unapply"},FT=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(PT.BEFORE_APPLY,this),tr(er),er&&er.handleHistoryEvent(PT.AFTER_APPLY,this)}},{key:"unapply",value:function unapply(er,tr){er&&er.handleHistoryEvent(PT.BEFORE_UNAPPLY,this),tr(),er&&er.handleHistoryEvent(PT.AFTER_UNAPPLY,this)}},{key:"elements",value:function elements(){return[this.elem]}},{key:"type",value:function type(){return this.constructor.name}}]),Command}(),UT=function(er){_inherits(MoveElementCommand,er);var tr=_createSuper(MoveElementCommand);function MoveElementCommand(er,rr,nr,ir){var or;return _classCallCheck(this,MoveElementCommand),(or=tr.call(this)).elem=er,or.text=ir?"Move "+er.tagName+" to "+ir:"Move "+er.tagName,or.oldNextSibling=rr,or.oldParent=nr,or.newNextSibling=er.nextSibling,or.newParent=er.parentNode,or}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}(FT),IT=function(er){_inherits(InsertElementCommand,er);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}(FT),RT=function(er){_inherits(RemoveElementCommand,er);var tr=_createSuper(RemoveElementCommand);function RemoveElementCommand(er,rr,nr,ir){var or;return _classCallCheck(this,RemoveElementCommand),(or=tr.call(this)).elem=er,or.text=ir||"Delete "+er.tagName,or.nextSibling=rr,or.parent=nr,WA(er),or}return _createClass(RemoveElementCommand,[{key:"apply",value:function apply(er){var tr=this;_get(_getPrototypeOf(RemoveElementCommand.prototype),"apply",this).call(this,er,(function(){WA(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(){WA(tr.elem),ig(tr.nextSibling)&&window.console&&console.error("Reference element was lost"),tr.parent.insertBefore(tr.elem,tr.nextSibling)}))}}]),RemoveElementCommand}(FT),MT=function(er){_inherits(ChangeElementCommand,er);var tr=_createSuper(ChangeElementCommand);function ChangeElementCommand(er,rr,nr){var ir;for(var or in _classCallCheck(this,ChangeElementCommand),(ir=tr.call(this)).elem=er,ir.text=nr?"Change "+er.tagName+" "+nr:"Change "+er.tagName,ir.newValues={},ir.oldValues=rr,rr)ir.newValues[or]="#text"===or?er.textContent:"#href"===or?Mf(er):er.getAttribute(or);return ir}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),ir=nr[0],or=nr[1];or?"#text"===ir?tr.elem.textContent=or:"#href"===ir?Of(tr.elem,or):tr.elem.setAttribute(ir,or):"#text"===ir?tr.elem.textContent="":(tr.elem.setAttribute(ir,""),tr.elem.removeAttribute(ir)),"transform"===ir&&(er=!0)})),!er){var rr=Jf(tr.elem);if(rr){var nr=tr.elem.getBBox(),ir=["rotate(",rr," ",nr.x+nr.width/2,",",nr.y+nr.height/2,")"].join("");ir!==tr.elem.getAttribute("transform")&&tr.elem.setAttribute("transform",ir)}}}))}},{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),ir=nr[0],or=nr[1];or?"#text"===ir?tr.elem.textContent=or:"#href"===ir?Of(tr.elem,or):tr.elem.setAttribute(ir,or):"#text"===ir?tr.elem.textContent="":tr.elem.removeAttribute(ir),"transform"===ir&&(er=!0)})),!er){var rr=Jf(tr.elem);if(rr){var nr=tr.elem.getBBox(),ir=["rotate(",rr," ",nr.x+nr.width/2,",",nr.y+nr.height/2,")"].join("");ir!==tr.elem.getAttribute("transform")&&tr.elem.setAttribute("transform",ir)}}WA(tr.elem)}))}}]),ChangeElementCommand}(FT),OT=function(er){_inherits(BatchCommand,er);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}(FT),QT=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,ir=new Array(nr),or=new Array(nr);nr--;){var ar=tr[nr];ig(ar)||(or[nr]=ar,ir[nr]=ar.getAttribute(er))}this.undoableChangeStack[rr]={attrName:er,oldValues:ir,elements:or}}},{key:"finishUndoableChange",value:function finishUndoableChange(){for(var er=this.undoChangeStackPointer--,tr=this.undoableChangeStack[er],rr=tr.attrName,nr=new OT("Change "+rr),ir=tr.elements.length;ir--;){var or=tr.elements[ir];if(!ig(or)){var ar={};ar[rr]=tr.oldValues[ir],ar[rr]!==or.getAttribute(rr)&&nr.addSubCommand(new MT(or,ar,rr))}}return this.undoableChangeStack[er]=null,nr}}]),UndoManager}(),DT=Object.freeze({__proto__:null,HistoryEventTypes:PT,Command:FT,MoveElementCommand:UT,InsertElementCommand:IT,RemoveElementCommand:RT,ChangeElementCommand:MT,BatchCommand:OT,UndoManager:QT}),jT=jQuery,HT={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"]},GT={},VT=function setUiStrings(er){Object.assign(GT,er.ui)},zT=[],KT=!0,qT={},WT=null,XT=null,YT=function init(er){XT=er,zT=[0,"ClosePath"];jT.each(["Moveto","Lineto","CurvetoCubic","CurvetoQuadratic","Arc","LinetoHorizontal","LinetoVertical","CurvetoCubicSmooth","CurvetoQuadraticSmooth"],(function(er,tr){zT.push(tr+"Abs"),zT.push(tr+"Rel")}))},JT=function insertItemBefore(er,tr,rr){var nr=er.pathSegList;if(function supportsPathInsertItemBefore(){return uh}())nr.insertItemBefore(tr,rr);else{for(var ir=nr.numberOfItems,or=[],ar=0;ar<ir;ar++){var sr=nr.getItem(ar);or.push(sr)}nr.clear();for(var lr=0;lr<ir;lr++)lr===rr&&nr.appendItem(tr),nr.appendItem(or[lr])}},$T=function ptObjToArr(er,tr){return HT[er].map((function(er){return tr[er]}))},ZT=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=hf(nr.x,nr.y,rr.matrix));var ir=XT.getCurrentZoom();return nr.x*=ir,nr.y*=ir,nr},eP=function getPointFromGrip(er,tr){var rr={x:er.x,y:er.y};tr.matrix&&(er=hf(rr.x,rr.y,tr.imatrix),rr.x=er.x,rr.y=er.y);var nr=XT.getCurrentZoom();return rr.x/=nr,rr.y/=nr,rr},tP=function addPointGrip(er,tr,rr){var nr=rP(),ir=Zf("pathpointgrip_"+er);if(!ir){ir=document.createElementNS(Xd.SVG,"circle");var or={id:"pathpointgrip_"+er,display:"none",r:4,fill:"#0FF",stroke:"#00F","stroke-width":2,cursor:"move",style:"pointer-events:all"};"pathNodeTooltip"in GT&&(or["xlink:title"]=GT.pathNodeTooltip),eg(ir,or),ir=nr.appendChild(ir),jT("#pathpointgrip_"+er).dblclick((function(){WT&&WT.setSegType()}))}return tr&&rr&&eg(ir,{cx:tr,cy:rr,display:"inline"}),ir},rP=function getGripContainer(){var er=Zf("pathpointgrip_container");er||((er=Zf("selectorParentGroup").appendChild(document.createElementNS(Xd.SVG,"g"))).id="pathpointgrip_container");return er},nP=function addCtrlGrip(er){var tr=Zf("ctrlpointgrip_"+er);if(tr)return tr;tr=document.createElementNS(Xd.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 GT&&(rr["xlink:title"]=GT.pathCtrlPtTooltip),eg(tr,rr),rP().append(tr),tr},iP=function getCtrlLine(er){var tr=Zf("ctrlLine_"+er);return tr||(tr=document.createElementNS(Xd.SVG,"line"),eg(tr,{id:"ctrlLine_"+er,stroke:"#555","stroke-width":1,style:"pointer-events:none"}),rP().append(tr),tr)},oP=function getControlPoints(er){var tr=er.item,rr=er.index;if(!("x1"in tr)||!("x2"in tr))return null;var nr={};rP();for(var ir=[WT.segs[rr-1].item,tr],or=1;or<3;or++){var ar=rr+"c"+or,sr=nr["c"+or+"_line"]=iP(ar),lr=ZT(er,{x:tr["x"+or],y:tr["y"+or]}),cr=ZT(er,{x:ir[or-1].x,y:ir[or-1].y});eg(sr,{x1:lr.x,y1:lr.y,x2:cr.x,y2:cr.y,display:"inline"}),nr["c"+or+"_line"]=sr;var ur=nr["c"+or]=nP(ar);eg(ur,{cx:lr.x,cy:lr.y,display:"inline"}),nr["c"+or]=ur}return nr},aP=function replacePathSeg(er,tr,rr,nr){var ir=nr||WT.elem,or=ir["createSVGPathSeg"+zT[er]].apply(ir,_toConsumableArray(rr));if(function supportsPathReplaceItem(){return ch}())ir.pathSegList.replaceItem(or,tr);else{for(var ar=ir.pathSegList,sr=ar.numberOfItems,lr=[],cr=0;cr<sr;cr++){var ur=ar.getItem(cr);lr.push(ur)}ar.clear();for(var dr=0;dr<sr;dr++)dr===tr?ar.appendItem(or):ar.appendItem(lr[dr])}},sP=function getSegSelector(er,tr){var rr=er.index,nr=Zf("segline_"+rr);if(!nr){var ir=rP();nr=document.createElementNS(Xd.SVG,"path"),eg(nr,{id:"segline_"+rr,display:"none",fill:"none",stroke:"#0FF","stroke-width":2,style:"pointer-events:none",d:"M0,0 0,0"}),ir.append(nr)}if(tr){var or=er.prev;if(!or)return nr.setAttribute("display","none"),nr;var ar=ZT(or);aP(2,0,[ar.x,ar.y],nr);for(var sr=$T(er.type,er.item),lr=0;lr<sr.length;lr+=2){var cr=ZT(er,{x:sr[lr],y:sr[lr+1]});sr[lr]=cr.x,sr[lr+1]=cr.y}aP(er.type,1,sr,nr)}return nr},lP=function smoothControlPoints(er,tr,rr){var nr=er.x-rr.x,ir=er.y-rr.y,or=tr.x-rr.x,ar=tr.y-rr.y;if(!(0===nr&&0===ir||0===or&&0===ar)){var sr=Math.sqrt(nr*nr+ir*ir),lr=Math.sqrt(or*or+ar*ar),cr=XT.getSVGRoot().createSVGPoint(),ur=XT.getSVGRoot().createSVGPoint(),dr=Math.atan2(ir,nr),hr=Math.atan2(ar,or);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]}},cP=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){jT("#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=tP(rr);if(tr){var ir=ZT(er);eg(nr,{cx:ir.x,cy:ir.y,display:"inline"})}return nr}(this,!0),this.ctrlpts=oP(this),this.segsel=sP(this,!0)}},{key:"update",value:function update(er){if(this.ptgrip){var tr=ZT(this);eg(this.ptgrip,{cx:tr.x,cy:tr.y}),sP(this,!0),this.ctrlpts&&(er&&(this.item=WT.elem.pathSegList.getItem(this.index),this.type=this.item.pathSegType),oP(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(aP(this.type,this.index,10===this.type?$T(this.type,rr):nr),this.next&&this.next.ctrlpts){var ir=this.next.item,or=[ir.x,ir.y,ir.x1+=er,ir.y1+=tr,ir.x2,ir.y2];aP(this.next.type,this.next.index,or)}if(this.mate){var ar=this.mate.item,sr=[ar.x+=er,ar.y+=tr];aP(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 ir=tr.item;ir["x"+rr]=nr.x+(nr.x-this.item["x"+er]),ir["y"+rr]=nr.y+(nr.y-this.item["y"+er]);var or=[ir.x,ir.y,ir.x1,ir.y1,ir.x2,ir.y2];aP(tr.type,tr.index,or),tr.update(!0)}},{key:"moveCtrl",value:function moveCtrl(er,tr,rr){var nr=this.item;nr["x"+er]+=tr,nr["y"+er]+=rr;var ir=[nr.x,nr.y,nr.x1,nr.y1,nr.x2,nr.y2];aP(this.type,this.index,ir),this.update(!0)}},{key:"setType",value:function setType(er,tr){aP(er,this.index,tr),this.type=er,this.item=WT.elem.pathSegList.getItem(this.index),this.showCtrlPts(6===er),this.ctrlpts=oP(this),this.update(!0)}}]),Segment}(),uP=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=[],WT=this,this.init()}return _createClass(Path,[{key:"init",value:function init(){jT(rP()).find("*").each((function(){jT(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),ir=new cP(rr,nr);ir.path=this,this.segs.push(ir)}for(var or=this.segs,ar=null,sr=0;sr<tr;sr++){var lr=or[sr],cr=sr+1>=tr?null:or[sr+1],ur=sr-1<0?null:or[sr-1];if(2===lr.type){if(ur&&1!==ur.type){var dr=or[ar];dr.next=or[ar+1],dr.next.prev=dr,dr.addGrip()}ar=sr}else if(cr&&1===cr.type)lr.next=or[ar+1],lr.next.prev=lr,lr.mate=or[ar],lr.addGrip(),ig(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=or[ar];hr.next=or[ar+1],hr.next.prev=hr,hr.addGrip(),lr.addGrip(),this.first_seg||(this.first_seg=or[ar])}}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,ir,or=tr.prev;switch(tr.item.pathSegType){case 4:nr=(tr.item.x+or.item.x)/2,ir=(tr.item.y+or.item.y)/2,rr=this.elem.createSVGPathSegLinetoAbs(nr,ir);break;case 6:var ar=(or.item.x+tr.item.x1)/2,sr=(tr.item.x1+tr.item.x2)/2,lr=(tr.item.x2+tr.item.x)/2,cr=(ar+sr)/2,ur=(sr+lr)/2;nr=(cr+ur)/2;var dr=(or.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;ir=(Ar+fr)/2,rr=this.elem.createSVGPathSegCurvetoCubicAbs(nr,ir,ar,dr,cr,Ar);var gr=[tr.item.x,tr.item.y,ur,fr,lr,pr];aP(tr.type,er,gr)}JT(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 ir=[nr.item.x,nr.item.y];aP(2,nr.index,ir),aP(4,tr.index,ir),rr.removeItem(tr.mate.index)}else if(tr.prev)rr.removeItem(er);else{var or=[nr.item.x,nr.item.y];aP(2,tr.next.index,or),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),KT&&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],ir=this.segs[nr],or=ir.prev;if(or){if(!er)tr="Toggle Path Segment Type",er=6===ir.type?4:6;er=Number(er);var ar=ir.item.x,sr=ir.item.y,lr=or.item.x,cr=or.item.y,ur=void 0;switch(er){case 6:if(ir.olditem){var dr=ir.olditem;ur=[ar,sr,dr.x1,dr.y1,dr.x2,dr.y2]}else{var hr=ar-lr,pr=sr-cr;ur=[ar,sr,lr+hr/3,cr+pr/3,ar-hr/3,sr-pr/3]}break;case 4:ur=[ar,sr],ir.olditem=ir.item}ir.setType(er,ur)}}WT.endChanges(tr)}},{key:"selectPt",value:function selectPt(er,tr){this.clearSelection(),ig(er)&&this.eachSeg((function(tr){this.prev&&(er=tr)})),this.addPtsToSelection(er),tr&&(this.dragctrl=tr,KT&&this.segs[er].setLinked(tr))}},{key:"update",value:function update(){var er=this.elem;return Jf(er)?(this.matrix=_f(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){gh()&&XT.resetD(this.elem);var tr=new MT(this.elem,{d:this.last_d},er);XT.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 ir=this.selected_pts[rr],or=this.segs[ir];or.select(!0),nr[rr]=or.ptgrip}var ar=Path.subpathIsClosed(this.selected_pts[0]);XT.addPtsToSelection({grips:nr,closedSubpath:ar})}}],[{key:"subpathIsClosed",value:function subpathIsClosed(er){var tr=!1;return WT.eachSeg((function(rr){return rr<=er||2!==this.type&&(1!==this.type||(tr=!0,!1))})),tr}}]),Path}(),dP=function getPath_(er){var tr=qT[er.id];return tr||(tr=qT[er.id]=new uP(er)),tr},hP=function removePath_(er){er in qT&&delete qT[er]},pP=function getRotVals(er,tr){var rr=er-NT,nr=tr-LT,ir=Math.sqrt(rr*rr+nr*nr),or=Math.atan2(nr,rr)+TT;return rr=ir*Math.cos(or)+NT,nr=ir*Math.sin(or)+LT,rr-=BT,nr-=ET,ir=Math.sqrt(rr*rr+nr*nr),or=Math.atan2(nr,rr)-TT,{x:ir*Math.cos(or)+BT,y:ir*Math.sin(or)+ET}},AP=function recalcRotatedPath(){var er=WT.elem;if(TT=Jf(er,!0)){var tr=WT.oldbbox;NT=tr.x+tr.width/2,LT=tr.y+tr.height/2;var rr=jf(er);BT=rr.x+rr.width/2,ET=rr.y+rr.height/2;var nr=BT-NT,ir=ET-LT,or=Math.sqrt(nr*nr+ir*ir),ar=Math.atan2(ir,nr)+TT;BT=or*Math.cos(ar)+NT,ET=or*Math.sin(ar)+LT;for(var sr=er.pathSegList,lr=sr.numberOfItems;lr;){lr-=1;var cr=sr.getItem(lr),ur=cr.pathSegType;if(1!==ur){var dr=pP(cr.x,cr.y),hr=[dr.x,dr.y];if(!ig(cr.x1)&&!ig(cr.x2)){var pr=pP(cr.x1,cr.y1),Ar=pP(cr.x2,cr.y2);hr.splice(hr.length,0,pr.x,pr.y,Ar.x,Ar.y)}aP(ur,lr,hr)}}jf(er);var fr=XT.getSVGRoot().createSVGTransform(),gr=XA(er);fr.setRotate(180*TT/Math.PI,BT,ET),gr.replaceItem(fr,0)}},fP=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"],gP=function convertPath(er,tr){for(var rr=er.pathSegList,nr=rr.numberOfItems,ir=0,or=0,ar="",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=fP[gr][tr?"toLowerCase":"toUpperCase"]();switch(gr){case 1:ar+="z",sr&&!tr&&(ir=sr[0],or=sr[1]);break;case 12:ur-=ir;case 13:tr?(dr=0,ir+=ur,mr="l"):(dr=or,ir=ur+=ir,mr="L"),ar+=pathDSegment(mr,[[ur,dr]]);break;case 14:dr-=or;case 15:tr?(ur=0,or+=dr,mr="l"):(ur=ir,or=dr+=or,mr="L"),ar+=pathDSegment(mr,[[ur,dr]]);break;case 2:case 4:case 18:ur-=ir,dr-=or;case 5:case 3:case 19:tr?(ir+=ur,or+=dr):(ir=ur+=ir,or=dr+=or),2!==gr&&3!==gr||(sr=[ir,or]),ar+=pathDSegment(mr,[[ur,dr]]);break;case 6:ur-=ir,hr-=ir,Ar-=ir,dr-=or,pr-=or,fr-=or;case 7:tr?(ir+=ur,or+=dr):(hr+=ir,Ar+=ir,pr+=or,fr+=or,ir=ur+=ir,or=dr+=or),ar+=pathDSegment(mr,[[hr,pr],[Ar,fr],[ur,dr]]);break;case 8:ur-=ir,hr-=ir,dr-=or,pr-=or;case 9:tr?(ir+=ur,or+=dr):(hr+=ir,pr+=or,ir=ur+=ir,or=dr+=or),ar+=pathDSegment(mr,[[hr,pr],[ur,dr]]);break;case 10:ur-=ir,dr-=or;case 11:tr?(ir+=ur,or+=dr):(ir=ur+=ir,or=dr+=or),ar+=pathDSegment(mr,[[cr.r1,cr.r2]],[cr.angle,cr.largeArcFlag?1:0,cr.sweepFlag?1:0],[ur,dr]);break;case 16:ur-=ir,Ar-=ir,dr-=or,fr-=or;case 17:tr?(ir+=ur,or+=dr):(Ar+=ir,fr+=or,ir=ur+=ir,or=dr+=or),ar+=pathDSegment(mr,[[Ar,fr],[ur,dr]])}}return ar};function pathDSegment(er,tr,rr,nr){jT.each(tr,(function(er,rr){tr[er]=tf(rr)}));var ir=er+tr.join(" ");return rr&&(ir+=" "+rr.join(" ")),nr&&(ir+=" "+tf(nr)),ir}var mP,_P,vP,yP,bP,wP=(vP=!1,yP=null,bP=!1,{mouseDown:function mouseDown(er,tr,rr,nr){var ir;if("path"!==XT.getCurrentMode()){if(WT){var or;if(WT.storeD(),"pathpointgrip_"===(ir=er.target.id).substr(0,14)){or=WT.cur_pt=Number.parseInt(ir.substr(14)),WT.dragging=[rr,nr];var ar=WT.segs[or];er.shiftKey?ar.selected?WT.removePtFromSelection(or):WT.addPtsToSelection(or):((WT.selected_pts.length<=1||!ar.selected)&&WT.clearSelection(),WT.addPtsToSelection(or))}else if(ir.startsWith("ctrlpointgrip_")){WT.dragging=[rr,nr];var sr=ir.split("_")[1].split("c");or=Number(sr[0]);var lr=Number(sr[1]);WT.selectPt(or,lr)}if(!WT.dragging){var cr=XT.getRubberBox();ig(cr)&&(cr=XT.setRubberBox(XT.selectorManager.getRubberBandBox())),ur=XT.getCurrentZoom(),eg(cr,{x:rr*ur,y:nr*ur,width:0,height:0,display:"inline"})}}}else{var ur,dr=rr,hr=nr,pr=dr/(ur=XT.getCurrentZoom()),Ar=hr/ur,fr=Zf("path_stretch_line");mP=[pr,Ar],XT.getGridSnapping()&&(pr=rg(pr),Ar=rg(Ar),dr=rg(dr),hr=rg(hr)),fr||(fr=document.createElementNS(Xd.SVG,"path"),eg(fr,{id:"path_stretch_line",stroke:"#22C","stroke-width":"0.5",fill:"none"}),fr=Zf("selectorParentGroup").appendChild(fr)),fr.setAttribute("display","inline");var gr,mr=XT.getDrawnPath();if(mr){for(var _r=mr.pathSegList,vr=_r.numberOfItems,yr=6/ur,br=!1;vr;){vr--;var wr=_r.getItem(vr),Sr=wr.x,xr=wr.y;if(pr>=Sr-yr&&pr<=Sr+yr&&Ar>=xr-yr&&Ar<=xr+yr){br=!0;break}}ir=XT.getId(),hP(ir);var kr,Cr,Br=Zf(ir),Er=_r.numberOfItems;if(br){if(vr<=1&&Er>=2){var Nr=_r.getItem(0).x,Lr=_r.getItem(0).y;kr=4===(Cr=fr.pathSegList.getItem(1)).pathSegType?mr.createSVGPathSegLinetoAbs(Nr,Lr):mr.createSVGPathSegCurvetoCubicAbs(Nr,Lr,Cr.x1/ur,Cr.y1/ur,Nr,Lr);var Tr=mr.createSVGPathSegClosePath();_r.appendItem(kr),_r.appendItem(Tr)}else if(Er<3)return!1;if(jT(fr).remove(),XT.setDrawnPath(null),XT.setStarted(!1),vP){WT.matrix&&XT.remapElement(Br,{},WT.matrix.inverse());var Pr=Br.getAttribute("d"),Fr=jT(WT.elem).attr("d");return jT(WT.elem).attr("d",Fr+Pr),jT(Br).remove(),WT.matrix&&AP(),YT(),wP.toEditMode(WT.elem),WT.selectPt(),!1}}else{if(!jT.contains(XT.getContainer(),XT.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 Or=vf(Rr,Mr,pr,Ar);pr=Or.x,Ar=Or.y}kr=4===(Cr=fr.pathSegList.getItem(1)).pathSegType?mr.createSVGPathSegLinetoAbs(XT.round(pr),XT.round(Ar)):mr.createSVGPathSegCurvetoCubicAbs(XT.round(pr),XT.round(Ar),Cr.x1/ur,Cr.y1/ur,Cr.x2/ur,Cr.y2/ur),mr.pathSegList.appendItem(kr),pr*=ur,Ar*=ur,fr.setAttribute("d",["M",pr,Ar,pr,Ar].join(" ")),gr=Ur,vP&&(gr+=WT.segs.length),tP(gr,pr,Ar)}}else{var Qr="M"+pr+","+Ar+" ";XT.setDrawnPath(XT.addSVGElementFromJson({element:"path",curStyles:!0,attr:{d:Qr,id:XT.getNextId(),opacity:XT.getOpacity()/2}})),fr.setAttribute("d",["M",dr,hr,dr,hr].join(" ")),gr=vP?WT.segs.length:0,tP(gr,dr,hr)}}},mouseMove:function mouseMove(er,tr){var rr=XT.getCurrentZoom();bP=!0;var nr=XT.getDrawnPath();if("path"!==XT.getCurrentMode())if(WT.dragging){var ir=eP({x:WT.dragging[0],y:WT.dragging[1]},WT),or=eP({x:er,y:tr},WT),ar=or.x-ir.x,sr=or.y-ir.y;WT.dragging=[er,tr],WT.dragctrl?WT.moveCtrl(ar,sr):WT.movePts(ar,sr)}else WT.selected_pts=[],WT.eachSeg((function(er){var tr=this;if(tr.next||tr.prev){var rr=XT.getRubberBox().getBBox(),nr=ZT(tr),ir={x:nr.x,y:nr.y,width:0,height:0},or=yf(rr,ir);this.select(or),or&&WT.selected_pts.push(tr.index)}}));else{if(!nr)return;var lr=nr.pathSegList,cr=lr.numberOfItems-1;if(mP){var ur=nP("1c1"),dr=nP("0c2");ur.setAttribute("cx",er),ur.setAttribute("cy",tr),ur.setAttribute("display","inline");var hr=mP[0],pr=mP[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=iP(1);if(eg(gr,{x1:er,y1:tr,x2:Ar*rr,y2:fr*rr,display:"inline"}),0===cr)_P=[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):_P&&(_r=_P[0]/rr,vr=_P[1]/rr),aP(6,cr,[hr,pr,_r,vr,Ar,fr],nr)}}else{var yr=Zf("path_stretch_line");if(yr){var br=lr.getItem(cr);if(6===br.pathSegType){var wr=br.x+(br.x-br.x2),Sr=br.y+(br.y-br.y2);aP(6,1,[er,tr,wr*rr,Sr*rr,er,tr],yr)}else _P?aP(6,1,[er,tr,_P[0],_P[1],er,tr],yr):aP(4,1,[er,tr],yr)}}}},mouseUp:function mouseUp(er,tr,rr,nr){var ir=XT.getDrawnPath();if("path"===XT.getCurrentMode())return mP=null,ir||(tr=Zf(XT.getId()),XT.setStarted(!1),_P=null),{keep:!0,element:tr};var or=XT.getRubberBox();if(WT.dragging){var ar=WT.cur_pt;WT.dragging=!1,WT.dragctrl=!1,WT.update(),bP&&WT.endChanges("Move path point(s)"),er.shiftKey||bP||WT.selectPt(ar)}else or&&"none"!==or.getAttribute("display")?(or.setAttribute("display","none"),or.getAttribute("width")<=2&&or.getAttribute("height")<=2&&wP.toSelectMode(er.target)):wP.toSelectMode(er.target);bP=!1},toEditMode:function toEditMode(er){WT=dP(er),XT.setCurrentMode("pathedit"),XT.clearSelection(),WT.show(!0).update(),WT.oldbbox=jf(WT.elem),vP=!1},toSelectMode:function toSelectMode(er){var tr=er===WT.elem;XT.setCurrentMode("select"),WT.show(!1),yP=!1,XT.clearSelection(),WT.matrix&&AP(),tr&&(XT.call("selected",[er]),XT.addToSelection([er],!0))},addSubPath:function addSubPath(er){er?(XT.setCurrentMode("path"),vP=!0):(wP.clear(!0),wP.toEditMode(WT.elem))},select:function select(er){yP===er?(wP.toEditMode(er),XT.setCurrentMode("pathedit")):yP=er},reorient:function reorient(){var er=XT.getSelectedElements()[0];if(er&&0!==Jf(er)){var tr=new OT("Reorient path"),rr={d:er.getAttribute("d"),transform:er.getAttribute("transform")};tr.addSubCommand(new MT(er,rr)),XT.clearSelection(),this.resetOrientation(er),XT.addCommandToHistory(tr),dP(er).show(!1).matrix=null,this.clear(),XT.addToSelection([er],!0),XT.call("changed",XT.getSelectedElements())}},clear:function clear(er){var tr=XT.getDrawnPath();if(yP=null,tr){var rr=Zf(XT.getId());jT(Zf("path_stretch_line")).remove(),jT(rr).remove(),jT(Zf("pathpointgrip_container")).find("*").attr("display","none"),_P=null,XT.setDrawnPath(null),XT.setStarted(!1)}else"pathedit"===XT.getCurrentMode()&&this.toSelectMode();WT&&WT.init().show(!1)},resetOrientation:function resetOrientation(er){if(ig(er)||"path"!==er.nodeName)return!1;var tr=XA(er),rr=mf(tr).matrix;tr.clear(),er.removeAttribute("transform");for(var nr=er.pathSegList,ir=nr.numberOfItems,or=function _loop(tr){var ir=nr.getItem(tr),or=ir.pathSegType;if(1===or)return"continue";var ar=[];jT.each(["",1,2],(function(er,tr){var nr=ir["x"+tr],or=ir["y"+tr];if(void 0!==nr&&void 0!==or){var sr=hf(nr,or,rr);ar.splice(ar.length,0,sr.x,sr.y)}})),aP(or,tr,ar,er)},ar=0;ar<ir;++ar)or(ar);!function reorientGrads(er,tr){for(var rr=jf(er),nr=0;nr<2;nr++){var ir=0===nr?"fill":"stroke",or=er.getAttribute(ir);if(or&&or.startsWith("url(")){var ar=$f(or);if("linearGradient"===ar.tagName){var sr=ar.getAttribute("x1")||0,lr=ar.getAttribute("y1")||0,cr=ar.getAttribute("x2")||1,ur=ar.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=hf(sr,lr,tr),hr=hf(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=ar.cloneNode(!0);jT(Ar).attr(pr),Ar.id=XT.getNextId(),Qf().append(Ar),er.setAttribute(ir,"url(#"+Ar.id+")")}}}}(er,rr)},zoomChange:function zoomChange(){"pathedit"===XT.getCurrentMode()&&WT.update()},getNodePoint:function getNodePoint(){var er=WT.selected_pts.length?WT.selected_pts[0]:1,tr=WT.segs[er];return{x:tr.item.x,y:tr.item.y,type:tr.type}},linkControlPoints:function linkControlPoints(er){!function setLinkControlPoints(er){KT=er}(er)},clonePathNode:function clonePathNode(){WT.storeD();for(var er=WT.selected_pts,tr=er.length,rr=[];tr--;){var nr=er[tr];WT.addSeg(nr),rr.push(nr+tr),rr.push(nr+tr+1)}WT.init().addPtsToSelection(rr),WT.endChanges("Clone path node(s)")},opencloseSubPath:function opencloseSubPath(){var er=WT.selected_pts;if(1===er.length){var tr,rr,nr=WT.elem,ir=nr.pathSegList,or=er[0],ar=null,sr=null;if(WT.eachSeg((function(er){return 2===this.type&&er<=or&&(sr=this.item),er<=or||(2===this.type?(ar=er,!1):1!==this.type||(ar=!1,!1))})),ig(ar)&&(ar=WT.segs.length-1),!1!==ar){var lr=nr.createSVGPathSegLinetoAbs(sr.x,sr.y),cr=nr.createSVGPathSegClosePath();return ar===WT.segs.length-1?(ir.appendItem(lr),ir.appendItem(cr)):(JT(nr,cr,ar),JT(nr,lr,ar)),void WT.init().selectPt(ar+1)}if(WT.segs[or].mate)return ir.removeItem(or),ir.removeItem(or),void WT.init().selectPt(or-1);for(var ur=0;ur<ir.numberOfItems;ur++){var dr=ir.getItem(ur);if(2===dr.pathSegType)tr=ur;else if(ur===or)ir.removeItem(tr);else if(1===dr.pathSegType&&or<ur){rr=ur-1,ir.removeItem(ur);break}}for(var hr=or-tr-1;hr--;)JT(nr,ir.getItem(tr),rr);var pr=ir.getItem(tr);aP(2,tr,[pr.x,pr.y]),WT.init().selectPt(0)}},deletePathNode:function deletePathNode(){if(wP.canDeleteNodes){WT.storeD();for(var er=WT.selected_pts,tr=er.length;tr--;){var rr=er[tr];WT.deleteSeg(rr)}if(function cleanup(){var er=WT.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 ir=er.getItem(tr-1),or=er.getItem(tr-2);if(2===ir.pathSegType){rr(tr-1,2),cleanup();break}if(2===or.pathSegType){rr(tr-2,3),cleanup();break}}else if(2===nr.pathSegType&&tr>0){var ar=er.getItem(tr-1).pathSegType;if(2===ar){rr(tr-1,1),cleanup();break}if(1===ar&&er.numberOfItems-1===tr){rr(tr,1),cleanup();break}}}return!1}(),WT.elem.pathSegList.numberOfItems<=1)return wP.toSelectMode(WT.elem),void XT.canvas.deleteSelectedElements();if(WT.init(),WT.clearSelection(),window.opera){var nr=jT(WT.elem);nr.attr("d",nr.attr("d"))}WT.endChanges("Delete path node(s)")}},smoothPolylineIntoPath:function smoothPolylineIntoPath(er){var tr,rr=er.points,nr=rr.numberOfItems;if(nr>=4){var ir=rr.getItem(0),or=null,ar=[];for(ar.push(["M",ir.x,",",ir.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(or){var ur=lP(or,sr,ir);if(ur&&2===ur.length){var dr=ar[ar.length-1].split(",");dr[2]=ur[0].x,dr[3]=ur[0].y,ar[ar.length-1]=dr.join(","),sr=ur[1]}}ar.push([sr.x,sr.y,lr.x,lr.y,cr.x,cr.y].join(",")),ir=cr,or=lr}for(ar.push("L");tr<nr;){var hr=rr.getItem(tr);ar.push([hr.x,hr.y].join(",")),tr++}ar=ar.join(" "),er=XT.addSVGElementFromJson({element:"path",curStyles:!0,attr:{id:XT.getId(),d:ar,fill:"none"}})}return er},setSegType:function setSegType(er){WT.setSegType(er)},moveNode:function moveNode(er,tr){var rr=WT.selected_pts;if(rr.length){WT.storeD();var nr=WT.segs[rr[0]],ir={x:0,y:0};ir[er]=tr-nr.item[er],nr.move(ir.x,ir.y),WT.endChanges("Move path point")}},fixEnd:function fixEnd(er){for(var tr,rr=er.pathSegList,nr=rr.numberOfItems,ir=0;ir<nr;++ir){var or=rr.getItem(ir);if(2===or.pathSegType&&(tr=or),1===or.pathSegType){var ar=rr.getItem(ir-1);if(ar.x!==tr.x||ar.y!==tr.y){var sr=er.createSVGPathSegLinetoAbs(tr.x,tr.y);JT(er,sr,ir),wP.fixEnd(er);break}}}gh()&&XT.resetD(er)},convertPath:gP}),SP=jQuery,xP=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(Xd.SVG,"g");var ir=nr.createElementNS(Xd.SVG,"title");ir.textContent=er,this.group_.append(ir),tr?SP(tr).after(this.group_):rr.append(this.group_)}addLayerClass(this.group_),If(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 ig(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=Nf(er);var nr=this.getTitleElement();return nr?(SP(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");ig(tr)||!tr.length?er.setAttribute("class",xP.CLASS_NAME):xP.CLASS_REGEX.test(tr)||er.setAttribute("class",tr+" "+xP.CLASS_NAME)}xP.CLASS_NAME="layer",xP.CLASS_REGEX=new RegExp("(\\s|^)"+xP.CLASS_NAME+"(\\s|$)");var kP=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 OT(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 UT(er,tr,rr,nr)),this):this}},{key:"insertElement",value:function insertElement(er,tr){return this.undoManager_?(this.addCommand_(new IT(er,tr)),this):this}},{key:"removeElement",value:function removeElement(er,tr,rr,nr){return this.undoManager_?(this.addCommand_(new RT(er,tr,rr,nr)),this):this}},{key:"changeElement",value:function changeElement(er,tr,rr){return this.undoManager_?(this.addCommand_(new MT(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}();kP.NO_HISTORY=new kP;var CP=jQueryPluginSVG(jQuery),BP=jQuery,EP="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use".split(","),NP=1,LP=2,TP=0,PP=[];function historyRecordingService(er){return er||new kP(FP.undoMgr)}function findLayerNameInGroup(er){return BP("title",er).text()||(function isOpera(){return eh}()&&er.querySelectorAll?BP(er.querySelectorAll("title")).text():"")}function getNewLayerName(er){for(var tr=1;er.includes("Layer "+tr);)tr++;return"Layer "+tr}var FP,UP=function(){function Drawing(er,tr){if(_classCallCheck(this,Drawing),!er||!er.tagName||!er.namespaceURI||"svg"!==er.tagName||er.namespaceURI!==Xd.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(Xd.SE,"nonce");rr&&TP!==LP?this.nonce_=rr:TP===NP&&this.setNonce(Math.floor(100001*Math.random()))}return _createClass(Drawing,[{key:"getElem_",value:function getElem_(er){return this.svgElem_.querySelector?this.svgElem_.querySelector("#"+er):BP(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(Xd.XMLNS,"xmlns:se",Xd.SE),this.svgElem_.setAttributeNS(Xd.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(),ir=nr.nextSibling,or=null;return er>tr?er<rr-1&&(or=this.all_layers[er+1].getGroup()):or=this.all_layers[er].getGroup(),this.svgElem_.insertBefore(nr,or),this.identifyLayers(),this.setCurrentLayer(this.getLayerName(er)),{currentGroup:nr,oldNextSibling:ir}}return null}},{key:"mergeLayer",value:function mergeLayer(er){var tr=this.current_layer.getGroup(),rr=BP(tr).prev()[0];if(rr){er.startBatchCommand("Merge Layer");var nr=tr.nextSibling;for(er.removeElement(tr,nr,this.svgElem_);tr.firstChild;){var ir=tr.firstChild;if("title"!==ir.localName){var or=ir.nextSibling;rr.append(ir),er.moveElement(ir,or,tr)}else er.removeElement(ir,ir.nextSibling,tr),ir.remove()}this.current_layer.removeGroup();var ar=this.all_layers.indexOf(this.current_layer);if(ar>0){var sr=this.current_layer.getName();this.current_layer=this.all_layers[ar-1],this.all_layers.splice(ar,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,ir=!1,or=0;or<er;++or){var ar=this.svgElem_.childNodes.item(or);if(ar&&1===ar.nodeType)if("g"===ar.tagName){ir=!0;var sr=findLayerNameInGroup(ar);sr?(rr.push(sr),nr=new xP(sr,ar),this.all_layers.push(nr),this.layer_map[sr]=nr):tr.push(ar)}else EP.includes(ar.nodeName)&&tr.push(ar)}tr.length>0||!ir?((nr=new xP(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 xP(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(),ir=new xP(er,nr,this.svgElem_),or=ir.getGroup();_toConsumableArray(nr.childNodes).forEach((function(er){"title"!==er.localName&&or.append(rr.copyElem(er))})),tr&&(tr.startBatchCommand("Duplicate Layer"),tr.insertElement(or),tr.endBatchCommand());var ar=this.all_layers.indexOf(this.current_layer);return ar>=0?this.all_layers.splice(ar+1,0,ir):this.all_layers.push(ir),this.layer_map[er]=ir,this.current_layer=ir,or}},{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(CP.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(),gh()&&"path"===er.nodeName){var nr=gP(er);rr.setAttribute("d",nr)}if(CP.each(er.childNodes,(function(er,nr){switch(nr.nodeType){case 1:rr.append(copyElem(nr,tr));break;case 3:rr.textContent=nr.nodeValue}})),CP(er).data("gsvg"))CP(rr).data("gsvg",rr.firstChild);else if(CP(er).data("symbol")){var ir=CP(er).data("symbol");CP(rr).data("ref",ir).data("symbol",ir)}else"image"===rr.tagName&&ng(rr);return rr}(er,(function getNextIdClosure(){return tr.getNextId()}))}}]),Drawing}(),IP=function randomizeIds(er,tr){(TP=!1===er?LP:NP)!==NP||tr.getNonce()?TP===LP&&tr.getNonce()&&tr.clearNonce():tr.setNonce(Math.floor(100001*Math.random()))},RP=function identifyLayers(){qP(),FP.getCurrentDrawing().identifyLayers()},MP=function createLayer(er,tr){var rr=FP.getCurrentDrawing().createLayer(er,historyRecordingService(tr));FP.clearSelection(),FP.call("changed",[rr])},OP=function cloneLayer(er,tr){var rr=FP.getCurrentDrawing().cloneLayer(er,historyRecordingService(tr));FP.clearSelection(),qP(),FP.call("changed",[rr])},QP=function deleteCurrentLayer(){var er=FP.getCurrentDrawing().getCurrentLayer(),tr=er.nextSibling,rr=er.parentNode;if(er=FP.getCurrentDrawing().deleteCurrentLayer()){var nr=new OT("Delete Layer");return nr.addSubCommand(new RT(er,tr,rr)),FP.addCommandToHistory(nr),FP.clearSelection(),FP.call("changed",[rr]),!0}return!1},DP=function setCurrentLayer(er){var tr=FP.getCurrentDrawing().setCurrentLayer(Nf(er));return tr&&FP.clearSelection(),tr},jP=function renameCurrentLayer(er){var tr=FP.getCurrentDrawing(),rr=tr.getCurrentLayer();if(rr&&tr.setCurrentLayerName(er,historyRecordingService()))return FP.call("changed",[rr]),!0;return!1},HP=function setCurrentLayerPosition(er){var tr=FP.getCurrentDrawing().setCurrentLayerPosition(er);return!!tr&&(FP.addCommandToHistory(new UT(tr.currentGroup,tr.oldNextSibling,FP.getSVGContent())),!0)},GP=function setLayerVisibility(er,tr){var rr=FP.getCurrentDrawing(),nr=rr.getLayerVisibility(er),ir=rr.setLayerVisibility(er,tr);if(!ir)return!1;var or=nr?"inline":"none";return FP.addCommandToHistory(new MT(ir,{display:or},"Layer Visibility")),ir===rr.getCurrentLayer()&&(FP.clearSelection(),FP.pathActions.clear()),!0},VP=function moveSelectedToLayer(er){var tr=FP.getCurrentDrawing().getLayerByName(er);if(!tr)return!1;for(var rr=new OT("Move Elements to Layer"),nr=FP.getSelectedElements(),ir=nr.length;ir--;){var or=nr[ir];if(or){var ar=or.nextSibling,sr=or.parentNode;tr.append(or),rr.addSubCommand(new UT(or,ar,sr))}}return FP.addCommandToHistory(rr),!0},zP=function mergeLayer(er){FP.getCurrentDrawing().mergeLayer(historyRecordingService(er)),FP.clearSelection(),qP(),FP.changeSVGContent()},KP=function mergeAllLayers(er){FP.getCurrentDrawing().mergeAllLayers(historyRecordingService(er)),FP.clearSelection(),qP(),FP.changeSVGContent()},qP=function leaveContext(){var er=PP.length;if(er){for(var tr=0;tr<er;tr++){var rr=PP[tr],nr=FP.elData(rr,"orig_opac");1!==nr?rr.setAttribute("opacity",nr):rr.removeAttribute("opacity"),rr.setAttribute("style","pointer-events: inherit")}PP=[],FP.clearSelection(!0),FP.call("contextset",null)}FP.setCurrentGroup(null)},WP=function setContext(er){qP(),"string"==typeof er&&(er=Zf(er)),FP.setCurrentGroup(er),BP(er).parentsUntil("#svgcontent").andSelf().siblings().each((function(){var er=this.getAttribute("opacity")||1;FP.elData(this,"orig_opac",er),this.setAttribute("opacity",.33*er),this.setAttribute("style","pointer-events: none"),PP.push(this)})),FP.clearSelection(),FP.call("contextset",FP.getCurrentGroup())},XP=Yd(),YP={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:[]},JP={};Object.entries(YP).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1],ir={};Object.entries(nr).forEach((function(er){var tr=_slicedToArray(er,2),rr=(tr[0],tr[1]);if(rr.includes(":")){var nr=rr.split(":");ir[nr[1]]=Xd[nr[0].toUpperCase()]}else ir[rr]="xmlns"===rr?Xd.XMLNS:null})),JP[rr]=ir}));var $P,ZP,eF,tF,rF=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=YP[er.nodeName],ir=JP[er.nodeName];if(void 0!==nr){for(var or=[],ar=er.attributes.length;ar--;){var sr=er.attributes.item(ar),lr=sr.nodeName,cr=sr.localName,ur=sr.namespaceURI;if({}.hasOwnProperty.call(ir,cr)&&ur===ir[cr]&&ur!==Xd.XMLNS||ur===Xd.XMLNS&&XP[sr.value]||((lr.startsWith("se:")||lr.startsWith("data-"))&&or.push([lr,sr.value]),er.removeAttributeNS(ur,cr)),mh())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(or).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ir=rr[1];er.setAttributeNS(Xd.SE,nr,ir)}));var vr=Mf(er);if(vr&&["filter","linearGradient","pattern","radialGradient","textPath","use"].includes(er.nodeName)&&"#"!==vr[0]&&(Of(er,""),er.removeAttributeNS(Xd.XLINK,"href")),"use"===er.nodeName&&!Mf(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=Rf(rr))&&"#"!==rr[0]&&(er.setAttribute(tr,""),er.removeAttribute(tr))})),ar=er.childNodes.length;ar--;)sanitizeSvg(er.childNodes.item(ar))}else{for(var yr=[];er.hasChildNodes();)yr.push(rr.insertBefore(er.firstChild,er));er.remove();for(var br=yr.length;br--;)sanitizeSvg(yr[br])}}}},nF=jQuery,iF=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"],oF=null,aF=function remapElement(er,tr,rr){for(var nr=function remap(er,tr){return hf(er,tr,rr)},ir=function scalew(er){return rr.a*er},or=function scaleh(er){return rr.d*er},ar=oF.getGridSnapping()&&"svg"===er.parentNode.parentNode.localName,sr=function finishUp(){ar&&Object.entries(tr).forEach((function(er){var rr=_slicedToArray(er,2),nr=rr[0],ir=rr[1];tr[nr]=rg(ir)})),eg(er,tr,0,!0)},lr=jf(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=$f(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=oF.getDrawing().getNextId(),Qf().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=XA(er),vr=oF.getSVGRoot().createSVGTransform();vr.setMatrix(Af(mf(_r).matrix,rr)),_r.clear(),_r.appendItem(vr)}else{var yr=mf(er).matrix,br=Af(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=XA(er),Sr=oF.getSVGRoot().createSVGTransform();Sr.setMatrix(Af(mf(wr).matrix,rr)),wr.clear(),wr.appendItem(Sr)}else{var xr=nr(tr.x,tr.y);tr.width=ir(tr.width),tr.height=or(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 kr=nr(tr.cx,tr.cy);tr.cx=kr.x,tr.cy=kr.y,tr.rx=ir(tr.rx),tr.ry=or(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=gf(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),Tr=nr(tr.x2,tr.y2);tr.x1=Lr.x,tr.y1=Lr.y,tr.x2=Tr.x,tr.y2=Tr.y;case"text":case"tspan":case"use":sr();break;case"g":var Pr=nF(er).data("gsvg");Pr&&eg(Pr,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,Or=Rr.y;tr.points[Ur].x=Mr,tr.points[Ur].y=Or}for(var Qr="",Dr=0;Dr<Fr;++Dr){var jr=tr.points[Dr];Qr+=jr.x+","+jr.y+" "}er.setAttribute("points",Qr);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=ir(Xr.r1),Xr.r2=or(Xr.r2)}else Xr.x=ir(Xr.x),Xr.y=or(Xr.y),Xr.x1=ir(Xr.x1),Xr.y1=or(Xr.y1),Xr.x2=ir(Xr.x2),Xr.y2=or(Xr.y2),Xr.r1=ir(Xr.r1),Xr.r2=or(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+=iF[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)}},sF=jQueryPluginSVG(jQuery),lF=function updateClipPath(er,tr,rr){var nr=$f(er).firstChild,ir=XA(nr),or=$P.getSVGRoot().createSVGTransform();or.setTranslate(tr,rr),ir.appendItem(or),cF(nr)},cF=function recalculateDimensions(er){if(ig(er))return null;if("svg"===er.nodeName&&navigator.userAgent.includes("Firefox/20"))return null;var tr=$P.getSVGRoot(),rr=XA(er);if(rr&&rr.numberOfItems>0){for(var nr=rr.numberOfItems,ir=nr;nr--;){var or=rr.getItem(nr);if(0===or.type)rr.removeItem(nr);else if(1===or.type){if(pf(or.matrix)){if(1===ir)return er.removeAttribute("transform"),null;rr.removeItem(nr)}}else 4===or.type&&0===or.angle&&rr.removeItem(nr)}if(1===rr.numberOfItems&&Jf(er))return null}if(!rr||0===rr.numberOfItems)return er.setAttribute("transform",""),er.removeAttribute("transform"),null;if(rr){for(var ar=[],sr=rr.numberOfItems;sr--;){var lr=rr.getItem(sr);1===lr.type?ar.push([lr.matrix,sr]):ar.length&&(ar=[])}if(2===ar.length){var cr=tr.createSVGTransformFromMatrix(Af(ar[1][0],ar[0][0]));rr.removeItem(ar[0][1]),rr.removeItem(ar[1][1]),rr.insertItemBefore(cr,ar[1][1])}if((sr=rr.numberOfItems)>=2&&1===rr.getItem(sr-2).type&&2===rr.getItem(sr-1).type){var ur=tr.createSVGTransform(),dr=Af(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=sF(er).data("gsvg"),fr=new OT("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=sF(er).attr(_r),sF.each(gr,(function(er,tr){gr[er]=of(er,tr)}))):Ar&&(gr={x:sF(Ar).attr("x")||0,y:sF(Ar).attr("y")||0}),ig(mr)&&(mr=sF.extend(!0,{},gr),sF.each(mr,(function(er,tr){mr[er]=of(er,tr)}))),mr.transform=$P.getStartTransform()||"","g"===er.tagName&&!Ar||"a"===er.tagName){var Sr=jf(er);hr={x:Sr.x+Sr.width/2,y:Sr.y+Sr.height/2},pr=hf(Sr.x+Sr.width/2,Sr.y+Sr.height/2,mf(rr).matrix);var xr=Jf(er);if(xr)for(var kr=xr*Math.PI/180,Cr=Math.abs(kr)>1e-10?Math.sin(kr)/(1-Math.cos(kr)):2/kr,Br=0;Br<rr.numberOfItems;++Br){var Er=rr.getItem(Br);if(4===Er.type){var Nr=Er.matrix;hr.y=(Cr*Nr.e+Nr.f)/2,hr.x=(Nr.e-Cr*Nr.f)/2,rr.removeItem(Br);break}}var Lr,Tr,Pr=rr.numberOfItems,Fr=0,Ur=0,Ir=0;if(Pr&&(Lr=rr.getItem(0).matrix),Pr>=3&&3===rr.getItem(Pr-2).type&&2===rr.getItem(Pr-3).type&&2===rr.getItem(Pr-1).type){Ir=3;for(var Rr=rr.getItem(Pr-3).matrix,Mr=rr.getItem(Pr-2).matrix,Or=rr.getItem(Pr-1).matrix,Qr=er.childNodes,Dr=Qr.length;Dr--;){var jr=Qr.item(Dr);if(Fr=0,Ur=0,1===jr.nodeType){var Hr=XA(jr);if(!Hr)continue;var Gr=mf(Hr).matrix,Vr=Jf(jr);if(Tr=$P.getStartTransform(),$P.setStartTransform(jr.getAttribute("transform")),Vr||ff(Hr)){var zr=tr.createSVGTransform();zr.setMatrix(Af(Rr,Mr,Or,Gr)),Hr.clear(),Hr.appendItem(zr)}else{var Kr=Af(Gr.inverse(),Or,Gr),qr=tr.createSVGMatrix();qr.e=-Kr.e,qr.f=-Kr.f;var Wr=Af(qr.inverse(),Gr.inverse(),Rr,Mr,Or,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)),$P.setStartTransform(Tr)}}rr.removeItem(Pr-1),rr.removeItem(Pr-2),rr.removeItem(Pr-3)}else if(Pr>=3&&1===rr.getItem(Pr-1).type){Ir=3;var $r=mf(rr).matrix,Zr=tr.createSVGTransform();Zr.setMatrix($r),rr.clear(),rr.appendItem(Zr)}else if((1===Pr||Pr>1&&3!==rr.getItem(1).type)&&2===rr.getItem(0).type){Ir=2;var Tn=mf(rr).matrix;rr.removeItem(0);var Un=mf(rr).matrix.inverse(),Qn=Af(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)||(lF(zn,Fr,Ur),Gn.push(zn))}Tr=$P.getStartTransform(),$P.setStartTransform(Vn.getAttribute("transform"));var Kn=XA(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(Xd.SVG,"use"),Yn="#"+Vn.id,Jn=Xn.length;Jn--;){var $n=Xn.item(Jn);if(Yn===Mf($n)){var Zn=tr.createSVGTransform();Zn.setTranslate(-Fr,-Ur),XA($n).insertItemBefore(Zn,0),fr.addSubCommand(recalculateDimensions($n))}}$P.setStartTransform(Tr)}}}$P.setStartTransform(Tr)}}else{if(1!==Pr||1!==rr.getItem(0).type||xr){if(xr){var ei=tr.createSVGTransform();ei.setRotate(xr,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(ei,0):rr.appendItem(ei)}return 0===rr.numberOfItems&&er.removeAttribute("transform"),null}Ir=1;for(var ti=rr.getItem(0).matrix,ri=er.childNodes,ni=ri.length;ni--;){var ii=ri.item(ni);if(1===ii.nodeType){Tr=$P.getStartTransform(),$P.setStartTransform(ii.getAttribute("transform"));var oi=XA(ii);if(!oi)continue;var ai=Af(ti,mf(oi).matrix),si=tr.createSVGTransform();si.setMatrix(ai),oi.clear(),oi.appendItem(si,0),fr.addSubCommand(recalculateDimensions(ii)),$P.setStartTransform(Tr);var li=ii.getAttribute("stroke-width");if("none"!==ii.getAttribute("stroke")&&!isNaN(li)){var ui=(Math.abs(ai.a)+Math.abs(ai.d))/2;ii.setAttribute("stroke-width",li*ui)}}}rr.clear()}if(2===Ir){if(xr){pr={x:hr.x+Lr.e,y:hr.y+Lr.f};var di=tr.createSVGTransform();di.setRotate(xr,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(di,0):rr.appendItem(di)}}else if(3===Ir){var hi=mf(rr).matrix,pi=tr.createSVGTransform();pi.setRotate(xr,hr.x,hr.y);var Ai=pi.matrix,fi=tr.createSVGTransform();fi.setRotate(xr,pr.x,pr.y);var gi=fi.matrix.inverse(),mi=hi.inverse(),_i=Af(mi,gi,Ai,hi);if(Fr=_i.e,Ur=_i.f,0!==Fr||0!==Ur)for(var vi=er.childNodes,yi=vi.length;yi--;){var wi=vi.item(yi);if(1===wi.nodeType){Tr=$P.getStartTransform(),$P.setStartTransform(wi.getAttribute("transform"));var Si=XA(wi),xi=tr.createSVGTransform();xi.setTranslate(Fr,Ur),Si.numberOfItems?Si.insertItemBefore(xi,0):Si.appendItem(xi),fr.addSubCommand(recalculateDimensions(wi)),$P.setStartTransform(Tr)}}xr&&(rr.numberOfItems?rr.insertItemBefore(fi,0):rr.appendItem(fi))}}else{var ki,Ci=jf(er);if(!Ci&&"path"!==er.tagName)return null;var Bi=Jf(er);if(Bi){hr={x:Ci.x+Ci.width/2,y:Ci.y+Ci.height/2},pr=hf(Ci.x+Ci.width/2,Ci.y+Ci.height/2,mf(rr).matrix);for(var Ei=Bi*Math.PI/180,Ni=Math.abs(Ei)>1e-10?Math.sin(Ei)/(1-Math.cos(Ei)):2/Ei,Li=0;Li<rr.numberOfItems;++Li){var Ti=rr.getItem(Li);if(4===Ti.type){var Pi=Ti.matrix;hr.y=(Ni*Pi.e+Pi.f)/2,hr.x=(Pi.e-Ni*Pi.f)/2,rr.removeItem(Li);break}}}var Fi=0,Ui=rr.numberOfItems;if(!gh()){var Ii=er.getAttribute("fill");if(Ii&&Ii.startsWith("url(")){var Ri=$f(Ii),Mi="pattern";if(Ri.tagName!==Mi&&(Mi="gradient"),"userSpaceOnUse"===Ri.getAttribute(Mi+"Units")){ki=mf(rr).matrix;var Oi=XA(Ri),Qi=mf(Oi).matrix,Di="matrix("+[(ki=Af(ki,Qi)).a,ki.b,ki.c,ki.d,ki.e,ki.f].join(",")+")";Ri.setAttribute(Mi+"Transform",Di)}}}if(Ui>=3&&3===rr.getItem(Ui-2).type&&2===rr.getItem(Ui-3).type&&2===rr.getItem(Ui-1).type)Fi=3,ki=mf(rr,Ui-3,Ui-1).matrix,rr.removeItem(Ui-1),rr.removeItem(Ui-2),rr.removeItem(Ui-3);else if(4===Ui&&1===rr.getItem(Ui-1).type){Fi=3,ki=mf(rr).matrix;var ji=tr.createSVGTransform();ji.setMatrix(ki),rr.clear(),rr.appendItem(ji),ki=tr.createSVGMatrix()}else if((1===Ui||Ui>1&&3!==rr.getItem(1).type)&&2===rr.getItem(0).type){Fi=2;var Hi=rr.getItem(0).matrix,Gi=mf(rr,1).matrix,Vi=Gi.inverse();ki=Af(Vi,Hi,Gi),rr.removeItem(0)}else{if(1!==Ui||1!==rr.getItem(0).type||Bi){if(Bi){var zi=tr.createSVGTransform();zi.setRotate(Bi,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(zi,0):rr.appendItem(zi)}return 0===rr.numberOfItems&&er.removeAttribute("transform"),null}switch(ki=mf(rr).matrix,er.tagName){case"line":gr=sF(er).attr(["x1","y1","x2","y2"]);case"polyline":case"polygon":if(gr.points=er.getAttribute("points"),gr.points){var Ki=er.points,qi=Ki.numberOfItems;gr.points=new Array(qi);for(var Wi=0;Wi<qi;++Wi){var Xi=Ki.getItem(Wi);gr.points[Wi]={x:Xi.x,y:Xi.y}}}case"path":gr.d=er.getAttribute("d"),Fi=1,rr.clear()}}if(1!==Fi&&2!==Fi&&3!==Fi||aF(er,gr,ki),2===Fi){if(Bi){ff(rr)||(pr={x:hr.x+ki.e,y:hr.y+ki.f});var Yi=tr.createSVGTransform();Yi.setRotate(Bi,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(Yi,0):rr.appendItem(Yi)}if("text"===er.tagName)for(var Ji=er.childNodes,$i=Ji.length;$i--;){var Zi=Ji.item($i);if("tspan"===Zi.tagName){var eo={x:sF(Zi).attr("x")||0,y:sF(Zi).attr("y")||0};aF(Zi,eo,ki)}}}else if(3===Fi&&Bi){var to=mf(rr).matrix,ro=tr.createSVGTransform();ro.setRotate(Bi,hr.x,hr.y);var no=ro.matrix,io=tr.createSVGTransform();io.setRotate(Bi,pr.x,pr.y);var oo=io.matrix.inverse(),ao=to.inverse(),so=Af(ao,oo,no,to);aF(er,gr,so),Bi&&(rr.numberOfItems?rr.insertItemBefore(io,0):rr.appendItem(io))}}return 0===rr.numberOfItems&&er.removeAttribute("transform"),fr.addSubCommand(new MT(er,mr)),fr},uF=jQuery,dF=bh()?10:4,hF=function(){function Selector(er,tr,rr){_classCallCheck(this,Selector),this.id=er,this.selectedElement=tr,this.locked=!0,this.selectorGroup=ZP.createSVGElement({element:"g",attr:{id:"selectorGroup"+this.id}}),this.selectorRect=this.selectorGroup.appendChild(ZP.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";tF.selectorGripsGroup.setAttribute("display",tr);var rr=this.selectedElement;this.hasGrips=er,rr&&er&&(this.selectorGroup.append(tF.selectorGripsGroup),Selector.updateGripCursors(Jf(rr)))}},{key:"resize",value:function resize(er){var tr=this.selectorRect,rr=tF,nr=rr.selectorGrips,ir=this.selectedElement,or=ir.getAttribute("stroke-width"),ar=ZP.getCurrentZoom(),sr=1/ar;"none"===ir.getAttribute("stroke")||isNaN(or)||(sr+=or/2);var lr=ir.tagName;"text"===lr&&(sr+=2/ar);var cr=XA(ir),ur=mf(cr).matrix;if(ur.e*=ar,ur.f*=ar,er||(er=jf(ir)),"g"===lr&&!uF.data(ir,"gsvg")){var dr=qf([ir.childNodes]);dr&&(er=dr)}var hr=er.x,pr=er.y,Ar=er.width,fr=er.height;sr*=ar;var gr=gf(hr*ar,pr*ar,Ar*ar,fr*ar,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,Sr=vr+br/2,xr=Jf(ir);if(xr){var kr=ZP.svgRoot().createSVGTransform();kr.setRotate(-xr,wr,Sr);var Cr=kr.matrix;gr.tl=hf(gr.tl.x,gr.tl.y,Cr),gr.tr=hf(gr.tr.x,gr.tr.y,Cr),gr.bl=hf(gr.bl.x,gr.bl.y,Cr),gr.br=hf(gr.br.x,gr.br.y,Cr);var Br=gr.tl,Er=Br.x,Nr=Br.y,Lr=Br.x,Tr=Br.y,Pr=Math.min,Fr=Math.max;_r=Er=Pr(Er,Pr(gr.tr.x,Pr(gr.bl.x,gr.br.x)))-sr,vr=Nr=Pr(Nr,Pr(gr.tr.y,Pr(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=(Tr=Fr(Tr,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,Sr].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],ir=tr[1];nr[rr].setAttribute("cx",ir[0]),nr[rr].setAttribute("cy",ir[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*dF),rr.rotateGrip.setAttribute("cx",_r+yr/2),rr.rotateGrip.setAttribute("cy",vr-5*dF)}}],[{key:"updateGripCursors",value:function updateGripCursors(er){var tr=Object.keys(tF.selectorGrips),rr=Math.round(er/45);for(rr<0&&(rr+=8);rr>0;)tr.push(tr.shift()),rr--;Object.values(tF.selectorGrips).forEach((function(er,rr){er.setAttribute("style","cursor:"+tr[rr]+"-resize")}))}}]),Selector}(),pF=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=ZP.createSVGElement({element:"g",attr:{id:"selectorParentGroup"}}),this.selectorGripsGroup=ZP.createSVGElement({element:"g",attr:{display:"none"}}),this.selectorParentGroup.append(this.selectorGripsGroup),ZP.svgRoot().append(this.selectorParentGroup),this.selectorMap={},this.selectors=[],this.rubberBandBox=null,Object.keys(this.selectorGrips).forEach((function(tr){var rr=ZP.createSVGElement({element:"circle",attr:{id:"selectorGrip_resize_"+tr,fill:"#22C",r:dF,style:"cursor:"+tr+"-resize","stroke-width":2,"pointer-events":"all"}});uF.data(rr,"dir",tr),uF.data(rr,"type","resize"),er.selectorGrips[tr]=er.selectorGripsGroup.appendChild(rr)})),this.rotateGripConnector=this.selectorGripsGroup.appendChild(ZP.createSVGElement({element:"line",attr:{id:"selectorGrip_rotateconnector",stroke:"#22C","stroke-width":"1"}})),this.rotateGrip=this.selectorGripsGroup.appendChild(ZP.createSVGElement({element:"circle",attr:{id:"selectorGrip_rotate",fill:"lime",r:dF,stroke:"#22C","stroke-width":2,style:"cursor:url("+eF.imgPath+"rotate.png) 12 12, auto;"}})),uF.data(this.rotateGrip,"type","rotate"),!uF("#canvasBackground").length){var tr=_slicedToArray(eF.dimensions,2),rr=tr[0],nr=tr[1],ir=ZP.createSVGElement({element:"svg",attr:{id:"canvasBackground",width:rr,height:nr,x:0,y:0,overflow:gh()?"none":"visible",style:"pointer-events:none"}}),or=ZP.createSVGElement({element:"rect",attr:{width:"100%",height:"100%",x:0,y:0,"stroke-width":1,stroke:"#000",fill:"#FFF",style:"pointer-events:none"}});ir.append(or),ZP.svgRoot().insertBefore(ir,ZP.svgContent())}}},{key:"requestSelector",value:function requestSelector(er,tr){if(ig(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 hF(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(!ig(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(ZP.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}(),AF=jQueryPluginSVG(jQuery),fF=UT,gF=IT,mF=RT,_F=MT,vF=OT,yF=QT,bF=PT;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 wF=function SvgCanvas(er,tr){_classCallCheck(this,SvgCanvas);var rr={show_outside_canvas:!0,selectNew:!0,dimensions:[640,480]};tr&&AF.extend(rr,tr);var nr=rr.dimensions,ir=this,or=window.document,ar=or.importNode(Uf('<svg id="svgroot" xmlns="'+Xd.SVG+'" xlinkns="'+Xd.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(ar);var sr=or.createElementNS(Xd.SVG,"svg");(ir.clearSvgContentElement=function(){AF(sr).empty(),AF(sr).attr({id:"svgcontent",width:nr[0],height:nr[1],x:nr[0],y:nr[1],overflow:rr.show_outside_canvas?"visible":"hidden",xmlns:Xd.SVG,"xmlns:se":Xd.SE,"xmlns:xlink":Xd.XLINK}).appendTo(ar);var er=or.createComment(" Created with SVG-edit - https://github.com/SVG-Edit/svgedit");sr.append(er)})();var lr="svg_";ir.setIdPrefix=function(er){lr=er},ir.current_drawing_=new UP(sr,lr);var cr=ir.getCurrentDrawing=function(){return ir.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=AF.extend(!0,{},hr.shape),AF.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 ir,or=0;ir=er.childNodes[or];or++)rr.children[or]=fr(ir);return rr},gr=this.addSVGElementFromJson=function(er){if("string"==typeof er)return or.createTextNode(er);var tr=Zf(er.attr.id),rr=cr().getCurrentLayer();if(tr&&er.element!==tr.tagName&&(tr.remove(),tr=null),!tr){var nr=er.namespace||Xd.SVG;tr=or.createElementNS(nr,er.element),rr&&(dr||rr).append(tr)}return er.curStyles&&eg(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"}),eg(tr,er.attr),tg(tr),er.children&&er.children.forEach((function(er){tr.append(gr(er))})),tr};ir.getTransformList=XA,ir.matrixMultiply=Af,ir.hasMatrixTransform=ff,ir.transformListToTransform=mf;var mr=function getBaseUnit(){return rr.baseUnit};!function init(er){zA=er;var tr=document.createElementNS(Xd.SVG,"svg");document.body.append(tr);var rr=document.createElementNS(Xd.SVG,"rect");rr.setAttribute("width","1em"),rr.setAttribute("height","1ex"),rr.setAttribute("x","1in"),tr.append(rr);var nr=rr.getBBox();tr.remove();var ir=nr.x;ZA={em:nr.width,ex:nr.height,in:ir,cm:ir/2.54,mm:ir/25.4,pt:ir/72,pc:ir/6,px:1,"%":0}}({getBaseUnit:mr,getElement:Zf,getHeight:function getHeight(){return sr.getAttribute("height")/ur},getWidth:function getWidth(){return sr.getAttribute("width")/ur},getRoundDigits:function getRoundDigits(){return Gr.round_digits}}),ir.convertToNum=of;var _r=function getSVGContent(){return sr},vr=this.getSelectedElems=function(){return Ar},yr=wP,br=function getSVGRoot(){return ar};!function init(er){xf=er,kf=er.getDOMDocument(),Cf=er.getDOMContainer(),Bf=er.getSVGRoot()}({pathActions:yr,getSVGContent:_r,addSVGElementFromJson:gr,getSelectedElements:vr,getDOMDocument:function getDOMDocument(){return or},getDOMContainer:function getDOMContainer(){return er},getSVGRoot:br,getBaseUnit:mr,getSnappingStep:function getSnappingStep(){return rr.snappingStep}}),ir.findDefs=Qf,ir.getUrlFromAttr=Rf,ir.getHref=Mf,ir.setHref=Of,ir.getBBox=jf,ir.getRotationAngle=Jf,ir.getElem=Zf,ir.getRefElem=$f,ir.assignAttributes=eg,this.cleanupElement=tg;var wr=function getGridSnapping(){return rr.gridSnapping};!function init(er){oF=er}({getDrawing:function getDrawing(){return cr()},getSVGRoot:br,getGridSnapping:wr}),this.remapElement=aF,function init(er){$P=er}({getSVGRoot:br,getStartTransform:function getStartTransform(){return Yr},setStartTransform:function setStartTransform(er){Yr=er}}),this.recalculateDimensions=cF;var Sr=Yd();ir.sanitizeSvg=rF;var xr=ir.undoMgr=new yF({handleHistoryEvent:function handleHistoryEvent(er,tr){var rr=bF;if(er===rr.BEFORE_UNAPPLY||er===rr.BEFORE_APPLY)ir.clearSelection();else if(er===rr.AFTER_APPLY||er===rr.AFTER_UNAPPLY){var nr=tr.elements();ir.pathActions.clear(),Tr("changed",nr);var or=tr.type(),ar=er===rr.AFTER_APPLY;if("MoveElementCommand"===or)(ar?tr.newParent:tr.oldParent)===sr&&RP();else if("InsertElementCommand"===or||"RemoveElementCommand"===or)tr.parent===sr&&RP(),"InsertElementCommand"===or?ar&&jr(tr.elem):ar||jr(tr.elem),tr.elem&&"use"===tr.elem.tagName&&vi(tr.elem);else if("ChangeElementCommand"===or){"title"===tr.elem.tagName&&tr.elem.parentNode.parentNode===sr&&RP();var lr=ar?tr.newValues:tr.oldValues;lr.stdDeviation&&ir.setBlurOffsets(tr.elem.parentNode,lr.stdDeviation)}}}}),kr=function addCommandToHistory(er){ir.undoMgr.addCommandToHistory(er)},Cr=this.getZoom=function(){return ur},Br=this.round=function(er){return Number.parseInt(er*ur)/ur};!function init(er,tr){eF=er,ZP=tr,tF=new pF}(rr,{createSVGElement:function createSVGElement(er){return ir.addSVGElementFromJson(er)},svgRoot:function svgRoot(){return ar},svgContent:function svgContent(){return sr},getCurrentZoom:Cr});var Er=this.selectorManager=function getSelectorManager(){return tF}(),Nr=ir.getNextId=function(){return cr().getNextId()},Lr=ir.getId=function(){return cr().getId()},Tr=function call(er,tr){if(Kn[er])return Kn[er](window,tr)},Pr=this.clearSelection=function(er){Ar.forEach((function(er){ig(er)||Er.releaseSelector(er)})),Ar=[],er||Tr("selected",Ar)},Fr=this.addToSelection=function(er,tr){if(er.length){for(var rr=0;rr<Ar.length&&!ig(Ar[rr]);)++rr;for(var nr=er.length;nr--;){var ir=er[nr];if(ir){var or=jf(ir);if(or&&("a"===ir.tagName&&1===ir.childNodes.length&&(ir=ir.firstChild),!Ar.includes(ir))){Ar[rr]=ir,rr++;var ar=Er.requestSelector(ir,or);Ar.length>1&&ar.showGrips(!1)}}}if(Ar.length)for(Tr("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)):ig(er)?1:0}));ig(Ar[0]);)Ar.shift(0)}},Ur=function getOpacity(){return pr.opacity},Ir=this.getMouseTarget=function(tr){if(ig(tr))return null;var rr=tr.target;if(rr.correspondingUseElement&&(rr=rr.correspondingUseElement),[Xd.MATH,Xd.HTML].includes(rr.namespaceURI)&&"svgcanvas"!==rr.id)for(;"foreignObject"!==rr.nodeName;)if(!(rr=rr.parentNode))return ar;var nr=cr().getCurrentLayer();if([ar,er,sr,nr].includes(rr))return ar;if(AF(rr).closest("#selectorParentGroup").length)return Er.selectorParentGroup;for(;rr.parentNode!==(dr||nr);)rr=rr.parentNode;return rr};ir.pathActions=yr,YT({selectorManager:Er,canvas:ir,call:Tr,resetD:function resetD(er){er.setAttribute("d",yr.convertPath(er))},round:Br,clearSelection:Pr,addToSelection:Fr,addCommandToHistory:kr,remapElement:aF,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,Tr("pointsAdded",{closedSubpath:tr,grips:rr}),Tr("selected",rr)},endChanges:function endChanges(er){var tr=er.cmd,rr=er.elem;kr(tr),Tr("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 fi},setDrawnPath:function setDrawnPath(er){return fi=er},getSVGRoot:br});var Rr={},Mr="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use",Or=["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"],Qr=AF.data,Dr=document.createElementNS(Xd.SVG,"animate");AF(Dr).attr({attributeName:"opacity",begin:"indefinite",dur:1,fill:"freeze"}).appendTo(ar);var jr=function restoreRefElems(er){var tr=AF(er).attr(Or);Object.values(tr).forEach((function(er){if(er&&er.startsWith("url(")){var tr=Rf(er).substr(1);Zf(tr)||(Qf().append(qr[tr]),delete qr[tr])}}));var rr=er.getElementsByTagName("*");if(rr.length)for(var nr=0,ir=rr.length;nr<ir;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 ir=!!rr&&[];return AF.each(Kr,(function(or,ar){nr&&!nr(or)||ar&&er in ar&&("function"==typeof tr&&(tr=tr(or)),rr?ir.push(ar[er](tr)):ir=ar[er](tr))})),ir};this.addExtension=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee(er,tr,rr){var nr,or,lr,ur;return regeneratorRuntime.wrap((function _callee$(dr){for(;;)switch(dr.prev=dr.next){case 0:if(nr=rr.$,or=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=AF.extend(ir.getPrivateMethods(),{$:nr,importLocale:or,svgroot:ar,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",Tr("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(ig(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 ir=null;if(_h()||"function"==typeof ar.getIntersectionList&&(tr.x+=Number.parseInt(sr.getAttribute("x")),tr.y+=Number.parseInt(sr.getAttribute("y")),ir=ar.getIntersectionList(tr,rr)),ig(ir)||"function"!=typeof ir.item){ir=[],Qn.length||(Qn=Vn(rr));for(var or=Qn.length;or--;)tr.width&&yf(tr,Qn[or].bbox)&&ir.push(Qn[or].elem)}return ir};this.getStrokedBBox=Xf,this.getVisibleElements=Wf;var Vn=this.getVisibleElementsAndBBoxes=function(er){er||(er=AF(sr).children());var tr=[];return AF(er).children().each((function(er,rr){rr.getBBox&&tr.push({elem:rr,bbox:Xf([rr])})})),tr.reverse()},zn=this.groupSvgElem=function(er){var tr=document.createElementNS(Xd.SVG,"g");er.replaceWith(tr),AF(tr).append(er).data("gsvg",er)[0].id=Nr()},Kn={};ir.call=Tr,ir.bind=function(er,tr){var rr=Kn[er];return Kn[er]=tr,rr},this.prepareSvg=function(er){this.sanitizeSvg(er.documentElement),_toConsumableArray(er.getElementsByTagNameNS(Xd.SVG,"path")).forEach((function(er){er.setAttribute("d",yr.convertPath(er)),yr.fixEnd(er)}))};var Wn=function ffClone(er){if(!mh())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"),ir=jf(rr),or=ir.x+ir.width/2,sr=ir.y+ir.height/2,lr=XA(rr);lr.numberOfItems>0&&(4===lr.getItem(0).type&&lr.removeItem(0));if(0!==er){var cr=hf(or,sr,mf(lr).matrix),ur=ar.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),Ni("transform",dr,Ar),Tr("changed",Ar)}Er.requestSelector(Ar[0]).resize(),hF.updateGripCursors(er)};var Xn=this.recalculateAllSelectedDimensions=function(){for(var er=new vF("none"===$r?"position":"size"),tr=Ar.length;tr--;){var rr=Ar[tr],nr=cF(rr);nr&&er.addSubCommand(nr)}er.isEmpty()||(kr(er),Tr("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){Pr(!0),Fr(er,tr)};this.removeFromSelection=function(er){if(!ig(Ar[0])&&er.length){for(var tr=[],rr=Ar.length,nr=0;nr<rr;++nr){var ir=Ar[nr];ir&&(er.includes(ir)?Er.releaseSelector(ir):tr.push(ir))}Ar=tr}},this.selectAllInCurrentLayer=function(){var er=cr().getCurrentLayer();er&&(Jr="select",$n(AF(dr||er).children()))};var Zn,ei,ti,ri,ni,ii,oi,ai,si,li,ui,di,hi,pi,Ai,fi=null;ei={minx:null,miny:null,maxx:null,maxy:null},ti=null,ri=null,ni=null,ii=null,oi={},ai=0,si={x:0,y:0},li={x:0,y:0},ui={x:0,y:0},di={x:0,y:0},hi={x:0,y:0},pi={x:0,y:0},Ai=function getBsplinePoint(er){var tr={x:0,y:0},rr=si,nr=li,ir=ui,or=di,ar=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=ar*((rr.x*cr[0][0]+nr.x*cr[0][1]+ir.x*cr[0][2]+or.x*cr[0][3])*lr+(rr.x*cr[1][0]+nr.x*cr[1][1]+ir.x*cr[1][2]+or.x*cr[1][3])*sr+(rr.x*cr[2][0]+nr.x*cr[2][1]+ir.x*cr[2][2]+or.x*cr[2][3])*er+(rr.x*cr[3][0]+nr.x*cr[3][1]+ir.x*cr[3][2]+or.x*cr[3][3])),tr.y=ar*((rr.y*cr[0][0]+nr.y*cr[0][1]+ir.y*cr[0][2]+or.y*cr[0][3])*lr+(rr.y*cr[1][0]+nr.y*cr[1][1]+ir.y*cr[1][2]+or.y*cr[1][3])*sr+(rr.y*cr[2][0]+nr.y*cr[2][1]+ir.y*cr[2][2]+or.y*cr[2][3])*er+(rr.y*cr[3][0]+nr.y*cr[3][1]+ir.y*cr[3][2]+or.y*cr[3][3])),{x:tr.x,y:tr.y}},AF(er).mousedown((function mouseDown(er){if(!ir.spaceKey&&1!==er.button){var tr=2===er.button;er.altKey&&ir.cloneSelectedElements(0,0),Jn=AF("#svgcontent g")[0].getScreenCTM().inverse();var nr=hf(er.pageX,er.pageY,Jn),or=nr.x*ur,sr=nr.y*ur;er.preventDefault(),tr&&(Jr="select",Dn=nr);var lr=or/ur,cr=sr/ur,dr=Ir(er);"a"===dr.tagName&&1===dr.childNodes.length&&(dr=dr.firstChild);var hr=lr;ni=ti=lr;var fr=cr;if(ii=ri=cr,rr.gridSnapping&&(lr=rg(lr),cr=rg(cr),ti=rg(ti),ri=rg(ri)),dr===Er.selectorParentGroup&&!ig(Ar[0])){var mr=er.target,_r=Qr(mr,"type");"rotate"===_r?Jr="rotate":"resize"===_r&&(Jr="resize",$r=Qr(mr,"dir")),dr=Ar[0]}Yr=dr.getAttribute("transform");var vr=XA(dr);switch(Jr){case"select":if(Xr=!0,$r="none",tr&&(Xr=!1),dr!==ar){if(Ar.includes(dr)||(er.shiftKey||Pr(!0),Fr([dr]),Tn=dr,yr.clear()),!tr){var br,wr=_createForOfIteratorHelper(Ar);try{for(wr.s();!(br=wr.n()).done;){var Sr=br.value;if(!ig(Sr)){var xr=XA(Sr);xr.numberOfItems?xr.insertItemBefore(ar.createSVGTransform(),0):xr.appendItem(ar.createSVGTransform())}}}catch(er){wr.e(er)}finally{wr.f()}}}else tr||(Pr(),Jr="multiselect",ig(Un)&&(Un=Er.getRubberBandBox()),eg(Un,{x:ni*=ur,y:ii*=ur,width:0,height:0,display:"inline"}));break;case"zoom":Xr=!0,ig(Un)&&(Un=Er.getRubberBandBox()),eg(Un,{x:hr*ur,y:hr*ur,width:0,height:0,display:"inline"});break;case"resize":Xr=!0,ti=lr,ri=cr,oi=jf(AF("#selectedBox0")[0]);var kr={};AF.each(oi,(function(er,tr){kr[er]=tr/ur})),oi=kr;var Cr=Jf(dr)?1:0;if(ff(vr))vr.insertItemBefore(ar.createSVGTransform(),Cr),vr.insertItemBefore(ar.createSVGTransform(),Cr),vr.insertItemBefore(ar.createSVGTransform(),Cr);else if(vr.appendItem(ar.createSVGTransform()),vr.appendItem(ar.createSVGTransform()),vr.appendItem(ar.createSVGTransform()),Sh()){var Br,Lr=gh();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 Tr=dr.getElementsByTagName("*"),Ur=Tr.length,Rr=0;Rr<Ur;Rr++)Tr[Rr].style&&(Tr[Rr].style.vectorEffect="non-scaling-stroke",Lr&&Br(Tr[Rr]))}break;case"fhellipse":case"fhrect":case"fhpath":ui.x=hr,ui.y=fr,li={x:0,y:0},si={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"}}),ei.minx=hr,ei.maxx=hr,ei.miny=fr,ei.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"}});Of(Mr,Wr),ng(Mr);break;case"square":case"rect":Xr=!0,ti=lr,ri=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 Or=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":Or,"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":ti*=ur,ri*=ur,yr.mouseDown(er,dr,ti,ri),Xr=!0;break;case"textedit":ti*=ur,ri*=ur,gi.mouseDown(er,dr,ti,ri),Xr=!0;break;case"rotate":Xr=!0,ir.undoMgr.beginUndoableChange("transform",Ar)}var Dr=Hn("mouseDown",{event:er,start_x:ti,start_y:ri,selectedElements:Ar},!0);AF.each(Dr,(function(er,tr){tr&&tr.started&&(Xr=!0)}))}})).mousemove((function mouseMove(er){if(Xr&&1!==er.button&&!ir.spaceKey){var tr,nr,or,lr,cr,dr,hr,pr,fr,gr,mr=Ar[0],_r=hf(er.pageX,er.pageY,Jn),vr=_r.x*ur,br=_r.y*ur,wr=Zf(Lr()),Sr=vr/ur,xr=Sr,kr=br/ur,Cr=kr;switch(rr.gridSnapping&&(xr=rg(xr),Cr=rg(Cr)),er.preventDefault(),Jr){case"select":if(null!==Ar[0]&&(cr=xr-ti,dr=Cr-ri,rr.gridSnapping&&(cr=rg(cr),dr=rg(dr)),0!==cr||0!==dr)){for(hr=Ar.length,tr=0;tr<hr&&(mr=Ar[tr],!ig(mr));++tr){var Br=ar.createSVGTransform();gr=XA(mr),Br.setTranslate(cr,dr),gr.numberOfItems?gr.replaceItem(Br,0):gr.appendItem(Br),Er.requestSelector(mr).resize()}Tr("transition",Ar)}break;case"multiselect":Sr*=ur,kr*=ur,eg(Un,{x:Math.min(ni,Sr),y:Math.min(ii,kr),width:Math.abs(Sr-ni),height:Math.abs(kr-ii)});var Nr=Ar.slice(),Pr=[],Fr=Gn();for(hr=Fr.length,tr=0;tr<hr;++tr){var Ur=Fr[tr];Ar.includes(Ur)||Pr.push(Ur);var Ir=Nr.indexOf(Ur);-1!==Ir&&Nr.splice(Ir,1)}Nr.length>0&&ir.removeFromSelection(Nr),Pr.length>0&&ir.addToSelection(Pr);break;case"resize":gr=XA(mr);var Rr=ff(gr),Mr=(fr=Rr?oi:jf(mr)).x,Or=fr.y,Qr=fr,Dr=Qr.width,jr=Qr.height;if(cr=xr-ti,dr=Cr-ri,rr.gridSnapping&&(cr=rg(cr),dr=rg(dr),jr=rg(jr),Dr=rg(Dr)),pr=Jf(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=ar.createSVGTransform(),Yr=ar.createSVGTransform(),Zr=ar.createSVGTransform();if(rr.gridSnapping&&(Mr=rg(Mr),Vr=rg(Vr),Or=rg(Or),zr=rg(zr)),Wr.setTranslate(-(Mr+Vr),-(Or+zr)),er.shiftKey&&(1===qr?qr=Kr:Kr=qr),Yr.setScale(qr,Kr),Zr.setTranslate(Mr+Vr,Or+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(),Tr("transition",Ar);break;case"zoom":Sr*=ur,kr*=ur,eg(Un,{x:Math.min(ni*ur,Sr),y:Math.min(ii*ur,kr),width:Math.abs(Sr-ni*ur),height:Math.abs(kr-ii*ur)});break;case"text":eg(wr,{x:xr,y:Cr});break;case"line":rr.gridSnapping&&(xr=rg(xr),Cr=rg(Cr));var Dn=xr,Vn=Cr;er.shiftKey&&(Dn=(nr=vf(ti,ri,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-ti),Yn=Math.abs(Cr-ri);Wn?(Xn=Yn=Math.max(Xn,Yn),zn=ti<xr?ti:ti-Xn,Kn=ri<Cr?ri:ri-Yn):(zn=Math.min(ti,xr),Kn=Math.min(ri,Cr)),rr.gridSnapping&&(Xn=rg(Xn),Yn=rg(Yn),zn=rg(zn),Kn=rg(Kn)),eg(wr,{width:Xn,height:Yn,x:zn,y:Kn});break;case"circle":var $n=AF(wr).attr(["cx","cy"]);or=$n.cx,lr=$n.cy;var fi=Math.sqrt((xr-or)*(xr-or)+(Cr-lr)*(Cr-lr));rr.gridSnapping&&(fi=rg(fi)),wr.setAttribute("r",fi);break;case"ellipse":var mi=AF(wr).attr(["cx","cy"]);or=mi.cx,lr=mi.cy,rr.gridSnapping&&(xr=rg(xr),or=rg(or),Cr=rg(Cr),lr=rg(lr)),wr.setAttribute("rx",Math.abs(xr-or));var _i=Math.abs(er.shiftKey?xr-or:Cr-lr);wr.setAttribute("ry",_i);break;case"fhellipse":case"fhrect":ei.minx=Math.min(Sr,ei.minx),ei.maxx=Math.max(Sr,ei.maxx),ei.miny=Math.min(kr,ei.miny),ei.maxy=Math.max(kr,ei.maxy);case"fhpath":if(di.x=Sr,di.y=kr,si.x&&si.y)for(tr=0;tr<9;tr++)if(Zn=tr/10,hi=Ai((tr+1)/10),pi=hi,hi=Ai(Zn),(ai+=Math.sqrt((pi.x-hi.x)*(pi.x-hi.x)+(pi.y-hi.y)*(pi.y-hi.y)))>.8){ai-=.8;var vi=sr.createSVGPoint();vi.x=hi.x,vi.y=hi.y,wr.points.appendItem(vi)}si={x:li.x,y:li.y},li={x:ui.x,y:ui.y},ui={x:di.x,y:di.y};break;case"path":case"pathedit":if(xr*=ur,Cr*=ur,rr.gridSnapping&&(xr=rg(xr),Cr=rg(Cr),ti=rg(ti),ri=rg(ri)),er.shiftKey){var yi,wi,Si=WT;Si?(yi=Si.dragging?Si.dragging[0]:ti,wi=Si.dragging?Si.dragging[1]:ri):(yi=ti,wi=ri);var xi=nr=vf(yi,wi,xr,Cr);xr=xi.x,Cr=xi.y}Un&&"none"!==Un.getAttribute("display")&&(Sr*=ur,kr*=ur,eg(Un,{x:Math.min(ni*ur,Sr),y:Math.min(ii*ur,kr),width:Math.abs(Sr-ni*ur),height:Math.abs(kr-ii*ur)})),yr.mouseMove(xr,Cr);break;case"textedit":xr*=ur,Cr*=ur,gi.mouseMove(vr,br);break;case"rotate":or=(fr=jf(mr)).x+fr.width/2,lr=fr.y+fr.height/2;var ki=_f(mr),Ci=hf(or,lr,ki);or=Ci.x,lr=Ci.y,pr=(Math.atan2(lr-Cr,or-xr)*(180/Math.PI)-90)%360,rr.gridSnapping&&(pr=rg(pr)),er.shiftKey&&(pr=45*Math.round(pr/45)),ir.setRotationAngle(pr<-180?360+pr:pr,!0),Tr("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 ir=hf(er.pageX,er.pageY,Jn);gi.select(rr,ir.x,ir.y)}tr!==dr&&("g"!==nr&&"a"!==nr||!Jf(rr)||(Ti(rr),rr=Ar[0],Pr(!0)),dr&&qP(),"g"!==tr.tagName&&"a"!==tr.tagName||tr===cr().getCurrentLayer()||rr===Er.selectorParentGroup||WP(rr))})).mouseup((function mouseUp(er){if(2!==er.button){var tr=Tn;if(Tn=null,Xr){var nr,or,ar=hf(er.pageX,er.pageY,Jn),sr=ar.x*ur,lr=ar.y*ur,dr=sr/ur,hr=lr/ur,fr=Zf(Lr()),mr=!1,_r=dr,vr=hr;switch(Xr=!1,Jr){case"resize":case"multiselect":ig(Un)||(Un.setAttribute("display","none"),Qn=[]),Jr="select";case"select":if(!ig(Ar[0])){if(ig(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!==ni||vr!==ii)for(var wr=Ar.length,Sr=0;Sr<wr&&!ig(Ar[Sr]);++Sr)Ar[Sr].firstChild||Er.requestSelector(Ar[Sr]).resize();else or=er.target,"path"===Ar[0].nodeName&&ig(Ar[1])?yr.select(Ar[0]):er.shiftKey&&tr!==or&&ir.removeFromSelection([or]);if(Sh()){var xr=Ar[0];xr&&(xr.removeAttribute("style"),If(xr,(function(er){er.removeAttribute("style")})))}}return;case"zoom":ig(Un)||Un.setAttribute("display","none");var Cr=er.shiftKey?.5:2;return void Tr("zoomed",{x:Math.min(ni,_r),y:Math.min(ii,vr),width:Math.abs(_r-ni),height:Math.abs(vr-ii),factor:Cr});case"fhpath":ai=0,si={x:0,y:0},li={x:0,y:0},ui={x:0,y:0},di={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=AF(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=AF(fr).attr(["width","height"]),mr=nr.width||nr.height||"image"===Jr;break;case"circle":mr="0"!==fr.getAttribute("r");break;case"ellipse":nr=AF(fr).attr(["rx","ry"]),mr=nr.rx||nr.ry;break;case"fhellipse":ei.maxx-ei.minx>0&&ei.maxy-ei.miny>0&&(fr=gr({element:"ellipse",curStyles:!0,attr:{cx:(ei.minx+ei.maxx)/2,cy:(ei.miny+ei.maxy)/2,rx:(ei.maxx-ei.minx)/2,ry:(ei.maxy-ei.miny)/2,id:Lr()}}),Tr("changed",[fr]),mr=!0);break;case"fhrect":ei.maxx-ei.minx>0&&ei.maxy-ei.miny>0&&(fr=gr({element:"rect",curStyles:!0,attr:{x:ei.minx,y:ei.miny,width:ei.maxx-ei.minx,height:ei.maxy-ei.miny,id:Lr()}}),Tr("changed",[fr]),mr=!0);break;case"text":mr=!0,$n([fr]),gi.start(fr);break;case"path":fr=null,Xr=!0;var Pr=yr.mouseUp(er,fr,sr,lr);fr=Pr.element,mr=Pr.keep;break;case"pathedit":mr=!0,fr=null,yr.mouseUp(er);break;case"textedit":mr=!1,fr=null,gi.mouseUp(er,sr,lr);break;case"rotate":mr=!0,fr=null,Jr="select";var Fr=ir.undoMgr.finishUndoableChange();Fr.isEmpty()||kr(Fr),Xn(),Tr("changed",Ar)}var Ur=Hn("mouseUp",{event:er,mouse_x:sr,mouse_y:lr},!0);if(AF.each(Ur,(function(er,tr){tr&&(mr=tr.keep||mr,fr=tr.element,Xr=tr.started||Xr)})),mr||ig(fr)){if(!ig(fr)){ir.addedNew=!0;var Ir,Rr=.2;if(Dr.beginElement&&Number.parseFloat(fr.getAttribute("opacity"))!==pr.opacity){Ir=AF(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"),tg(fr),"path"===Jr?yr.toEditMode(fr):rr.selectNew&&$n([fr],!0),kr(new gF(fr)),Tr("changed",[fr])}),1e3*Rr)}}else{for(cr().releaseId(Lr()),fr.remove(),fr=null,or=er.target;or&&or.parentNode&&or.parentNode.parentNode&&"g"===or.parentNode.parentNode.tagName;)or=or.parentNode;"path"===Jr&&fi||!or||!or.parentNode||"selectorParentGroup"===or.parentNode.id||"svgcanvas"===or.id||"svgroot"===or.id||(ir.setMode("select"),$n([or],!0))}Yr=null}}})),AF(er).bind("mousewheel DOMMouseScroll",(function(er){if(er.shiftKey){er.preventDefault();var tr=er.originalEvent;Jn=AF("#svgcontent g")[0].getScreenCTM().inverse();var nr=AF("#workarea"),or=rr.showRulers?16:0,ar=hf(tr.pageX,tr.pageY,Jn),sr=nr.width(),lr=nr.height(),cr=sr-15-or,dr=lr-15-or,hr=cr*Jn.a,pr=dr*Jn.d,Ar=nr.offset(),fr=Ar.left+or,gr=Ar.top+or,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=hf(fr,gr,Jn),Sr={x:(ar.x-(ar.x-wr.x)/yr)*br-or+sr/2,y:(ar.y-(ar.y-wr.y)/yr)*br-or+lr/2};ir.setZoom(br),AF("#zoom").val((100*br).toFixed(1)),Tr("updateCanvas",{center:!1,newCtr:Sr}),Tr("zoomDone")}}}}));var gi=ir.textActions=function(){var er,tr,rr,nr,or,sr,lr,cr,dr,hr,pr=[];function setCursor(er){var ir=""===tr.value;if(AF(tr).focus(),!arguments.length)if(ir)er=0;else{if(tr.selectionEnd!==tr.selectionStart)return;er=tr.selectionEnd}var ar=pr[er];ir||tr.setSelectionRange(er,er),(rr=Zf("text_cursor"))||(rr=document.createElementNS(Xd.SVG,"line"),eg(rr,{id:"text_cursor",stroke:"#333","stroke-width":1}),rr=Zf("selectorParentGroup").appendChild(rr)),or||(or=setInterval((function(){var er="none"===rr.getAttribute("display");rr.setAttribute("display",er?"inline":"none")}),600));var lr=ptToScreen(ar.x,sr.y),cr=ptToScreen(ar.x,sr.y+sr.height);eg(rr,{x1:lr.x,y1:lr.y,x2:cr.x,y2:cr.y,visibility:"visible",display:"inline"}),nr&&nr.setAttribute("d","")}function setSelection(er,ir,or){if(er!==ir){or||tr.setSelectionRange(er,ir),(nr=Zf("text_selectblock"))||(nr=document.createElementNS(Xd.SVG,"path"),eg(nr,{id:"text_selectblock",fill:"green",opacity:.5,style:"pointer-events:none"}),Zf("selectorParentGroup").append(nr));var ar=pr[er],lr=pr[ir];rr.setAttribute("visibility","hidden");var cr=ptToScreen(ar.x,sr.y),ur=ptToScreen(ar.x+(lr.x-ar.x),sr.y),dr=ptToScreen(ar.x,sr.y+sr.height),hr=ptToScreen(ar.x+(lr.x-ar.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";eg(nr,{d:Ar,display:"inline"})}else setCursor(ir)}function getIndexFromPoint(tr,rr){var nr=ar.createSVGPoint();if(nr.x=tr,nr.y=rr,1===pr.length)return 0;var ir=er.getCharNumAtPosition(nr);ir<0?(ir=pr.length-2,tr<=pr[0].x&&(ir=0)):ir>=pr.length-2&&(ir=pr.length-2);var or=pr[ir];return tr>or.x+or.width/2&&ir++,ir}function setCursorFromPoint(er,tr){setCursor(getIndexFromPoint(er,tr))}function setEndSelectionFromPoint(er,rr,nr){var ir=tr.selectionStart,or=getIndexFromPoint(er,rr);setSelection(Math.min(ir,or),Math.max(ir,or),!nr)}function screenToPt(er,tr){var rr={x:er,y:tr};if(rr.x/=ur,rr.y/=ur,lr){var nr=hf(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=hf(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),AF(this).unbind(tr)}function selectWord(tr){if(hr&&er){var rr=hf(tr.pageX,tr.pageY,Jn),nr=screenToPt(rr.x*ur,rr.y*ur),ir=getIndexFromPoint(nr.x,nr.y),or=er.textContent,ar=or.substr(0,ir).replace(/[a-z\d]+$/i,"").length,sr=or.substr(ir).match(/^[a-z\d]+/i);setSelection(ar,(sr?sr[0].length:0)+ir),AF(tr.target).click(selectAll),setTimeout((function(){AF(tr.target).unbind("click",selectAll)}),300)}}return{select:function select(tr,rr,nr){er=tr,gi.toEditMode(rr,nr)},start:function start(tr){er=tr,gi.toEditMode()},mouseDown:function mouseDown(er,rr,nr,ir){var or=screenToPt(nr,ir);tr.focus(),setCursorFromPoint(or.x,or.y),cr=nr,dr=ir},mouseMove:function mouseMove(er,tr){var rr=screenToPt(er,tr);setEndSelectionFromPoint(rr.x,rr.y)},mouseUp:function mouseUp(tr,rr,nr){var ir=screenToPt(rr,nr);setEndSelectionFromPoint(ir.x,ir.y,!0),tr.target!==er&&rr<cr+2&&rr>cr-2&&nr<dr+2&&nr>dr-2&&gi.toSelectMode(!0)},setCursor:setCursor,toEditMode:function toEditMode(tr,rr){if(hr=!1,Jr="textedit",Er.requestSelector(er).showGrips(!1),Er.requestSelector(er),gi.init(),AF(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(ar){Jr="select",clearInterval(or),or=null,nr&&AF(nr).attr("display","none"),rr&&AF(rr).attr("visibility","hidden"),AF(er).css("cursor","move"),ar&&(Pr(),AF(er).css("cursor","move"),Tr("selected",[er]),Fr([er],!0)),er&&!er.textContent.length&&ir.deleteSelectedElements(),AF(tr).blur(),er=!1},setInputElem:function setInputElem(er){tr=er},clear:function clear(){"textedit"===Jr&&gi.toSelectMode()},init:function init(rr){if(er){var nr,or;er.parentNode||(er=Ar[0],Er.requestSelector(er).showGrips(!1));var ar=er.textContent.length,cr=er.getAttribute("transform");for(sr=jf(er),lr=cr?_f(er):null,(pr=[]).length=ar,tr.focus(),AF(er).unbind("dblclick",selectWord).dblclick(selectWord),ar||(or={x:sr.x+sr.width/2,width:0}),nr=0;nr<ar;nr++){var dr=er.getStartPositionOfChar(nr);if(or=er.getEndPositionOfChar(nr),!wh()){var hr=ir.contentW*ur;dr.x-=hr,or.x-=hr,dr.x/=ur,or.x/=ur}pr[nr]={x:dr.x,y:sr.y,width:or.x-dr.x,height:sr.height}}pr.push({x:or.x,width:0}),setSelection(tr.selectionStart,tr.selectionEnd,!0)}}}}(),mi=this.removeUnusedDefElems=function(){var er=sr.getElementsByTagNameNS(Xd.SVG,"defs");if(!er||!er.length)return 0;var tr,rr,nr=[],ir=0,or=["fill","stroke","filter","marker-start","marker-mid","marker-end"],ar=or.length,lr=sr.getElementsByTagNameNS(Xd.SVG,"*"),cr=lr.length;for(tr=0;tr<cr;tr++){var ur=lr[tr];for(rr=0;rr<ar;rr++){var dr=Rf(ur.getAttribute(or[rr]));dr&&nr.push(dr.substr(1))}var hr=Mf(ur);hr&&hr.startsWith("#")&&nr.push(hr.substr(1))}var pr=AF(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(),ir++)}return ir};function getIssues(){Pr();var er=[],tr=[],rr={feGaussianBlur:Rr.exportNoBlur,foreignObject:Rr.exportNoforeignObject,"[stroke-dasharray]":Rr.exportNoDashArray},nr=AF(sr);return"font"in AF("<canvas>")[0].getContext("2d")||(rr.text=Rr.exportNoText),AF.each(rr,(function(rr,ir){nr.find(rr).length&&(tr.push(rr),er.push(ir))})),{issues:er,issueCodes:tr}}this.svgCanvasToString=function(){for(;mi()>0;);yr.clear(!0),AF.each(sr.childNodes,(function(er,tr){er&&8===tr.nodeType&&tr.data.includes("Created with")&&sr.firstChild.before(tr)})),dr&&(qP(),$n([dr]));var er=[];AF(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 ir=this.firstChild;er.push(ir),AF(this).replaceWith(ir)}}));var tr=this.svgToString(sr,0);return er.length&&AF(er).each((function(){zn(this)})),tr},this.svgToString=function(er,tr){var nr=[],ir=rr.baseUnit,or=new RegExp("^-?[\\d\\.]+"+ir+"$");if(er){tg(er);var ar=_toConsumableArray(er.attributes),sr=er.childNodes;ar.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=xi();"px"!==ir&&(cr.w=rf(cr.w,ir)+ir,cr.h=rf(cr.h,ir)+ir),nr.push(' width="'+cr.w+'" height="'+cr.h+'" xmlns="'+Xd.SVG+'"');var ur={};AF(er).find("*").andSelf().each((function(){var er=this.namespaceURI;er&&!ur[er]&&Sr[er]&&"xmlns"!==Sr[er]&&"xml"!==Sr[er]&&(ur[er]=!0,nr.push(" xmlns:"+Sr[er]+'="'+er+'"')),AF.each(this.attributes,(function(er,tr){var rr=tr.namespaceURI;rr&&!ur[rr]&&"xmlns"!==Sr[rr]&&"xml"!==Sr[rr]&&(ur[rr]=!0,nr.push(" xmlns:"+Sr[rr]+'="'+rr+'"'))}))}));for(var dr=ar.length,hr=["width","height","xmlns","x","y","viewBox","id","overflow"];dr--;){var pr=ar[dr],Ar=Nf(pr.value);pr.nodeName.startsWith("xmlns:")||(""===Ar||hr.includes(pr.localName)||pr.namespaceURI&&!Sr[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=ar.length-1;gr>=0;gr--){var mr=ar[gr],_r=Nf(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)?or.test(_r)&&(_r=tf(_r)+ir):_r=tf(_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!==Xd.SVG&&!Sr[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 kr=sr.item(xr);switch(kr.nodeType){case 1:nr.push("\n"),nr.push(this.svgToString(kr,tr));break;case 3:var Cr=kr.nodeValue.replace(/^\s+|\s+$/g,"");""!==Cr&&(wr=!0,nr.push(String(Nf(Cr))));break;case 4:nr.push("\n"),nr.push(new Array(tr+1).join(" ")),nr.push("<![CDATA["),nr.push(kr.nodeValue),nr.push("]]>");break;case 8:nr.push("\n"),nr.push(new Array(tr+1).join(" ")),nr.push("\x3c!--"),nr.push(kr.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){AF(new Image).load((function(nr,ir,or){if("error"!==ir){var ar=document.createElement("canvas");ar.width=this.width,ar.height=this.height,ar.getContext("2d").drawImage(this,0,0);try{var sr=";svgedit_url="+encodeURIComponent(er);sr=ar.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: "+or.status+" "+or.statusText))})).attr("src",er)}))},this.setGoodImage=function(er){Wr=er},this.open=function(){},this.save=function(er){Pr(),er&&AF.extend(Gr,er),Gr.apply=!0;var tr=this.svgCanvasToString();Tr("saved",tr)},this.rasterExport=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(er,tr,rr){var nr,or,ar,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]:{},ar="image/"+(or="ICO"===er?"BMP":er||"PNG").toLowerCase(),sr=getIssues(),lr=sr.issues,cr=sr.issueCodes,ur=this.svgCanvasToString(),AF("#export_canvas").length||AF("<canvas>",{id:"export_canvas"}).hide().appendTo("body"),(dr=AF("#export_canvas")[0]).width=ir.contentW,dr.height=ir.contentH,pr.next=11,xT(dr,ur);case 11:return pr.abrupt("return",new Promise((function(ir,sr){var hr,pr=or.toLowerCase(),Ar=tr?dr.toDataURL("image/"+pr,tr):dr.toDataURL("image/"+pr);function done(){var or={datauri:Ar,bloburl:hr,svg:ur,issues:lr,issueCodes:cr,type:er,mimeType:ar,quality:tr,exportWindowName:rr};nr.avoidEvent||Tr("exported",or),ir(or)}dr.toBlob?dr.toBlob((function(er){hr=Pf(er),done()}),ar,tr):(hr=Tf(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,ir,or,ar,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]:vh()?"save":void 0,rr=xi(),nr=rr.w>rr.h?"landscape":"portrait",ir=g({orientation:nr,unit:"pt",format:[rr.w,rr.h]}),or=ki(),ir.setProperties({title:or}),ar=getIssues(),lr=ar.issues,cr=ar.issueCodes,hr.next=10,ir.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=ir.output(tr,"save"===tr?er||"svg.pdf":void 0),Tr("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){IP(!(arguments.length>0&&!1===er),cr())};var _i=this.uniquifyElems=function(er){var tr={},rr=["filter","linearGradient","pattern","radialGradient","symbol","textPath","use"];for(var nr in If(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),AF.each(Or,(function(rr,nr){var ir=er.getAttributeNode(nr);if(ir){var or=Rf(ir.value),ar=or?or.substr(1):null;ar&&(ar in tr||(tr[ar]={elem:null,attrs:[],hrefs:[]}),tr[ar].attrs.push(ir))}}));var nr=Mf(er);if(nr&&rr.includes(er.nodeName)){var ir=nr.substr(1);ir&&(ir in tr||(tr[ir]={elem:null,attrs:[],hrefs:[]}),tr[ir].hrefs.push(er))}}})),tr)if(nr){var ir=tr[nr].elem;if(ir){var or=Nr();ir.id=or;for(var ar=tr[nr].attrs,sr=ar.length;sr--;){var lr=ar[sr];lr.ownerElement.setAttribute(lr.name,"url(#"+or+")")}for(var cr=tr[nr].hrefs,ur=cr.length;ur--;){var dr=cr[ur];Of(dr,"#"+or)}}}},vi=this.setUseData=function(er){var tr=AF(er);"use"!==er.tagName&&(tr=tr.find("use")),tr.each((function(){var er=Mf(this).substr(1),tr=Zf(er);tr&&(AF(this).data("ref",tr),"symbol"!==tr.tagName&&"svg"!==tr.tagName||AF(this).data("symbol",tr).data("ref",tr))}))},yi=this.convertGradients=function(er){var tr=AF(er).find("linearGradient, radialGradient");!tr.length&&gh()&&(tr=AF(er).find("*").filter((function(){return this.tagName.includes("Gradient")}))),tr.each((function(){var er=this;if("userSpaceOnUse"===AF(er).attr("gradientUnits")){var tr=AF(sr).find('[fill="url(#'+er.id+')"],[stroke="url(#'+er.id+')"]');if(!tr.length)return;var rr=jf(tr[0]);if(!rr)return;if("linearGradient"===er.tagName){var nr=AF(er).attr(["x1","y1","x2","y2"]),ir=er.gradientTransform.baseVal;if(ir&&ir.numberOfItems>0){var or=mf(ir).matrix,ar=hf(nr.x1,nr.y1,or),lr=hf(nr.x2,nr.y2,or);nr.x1=ar.x,nr.y1=ar.y,nr.x2=lr.x,nr.y2=lr.y,er.removeAttribute("gradientTransform")}AF(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")}}}))},wi=this.convertToGroup=function(er){er||(er=Ar[0]);var tr,rr=AF(er),nr=new vF;if(rr.data("gsvg")){var ir=er.firstChild,lr=AF(ir).attr(["x","y"]);AF(er.firstChild.firstChild).unwrap(),AF(er).removeData("gsvg");var cr=XA(er),ur=ar.createSVGTransform();ur.setTranslate(lr.x,lr.y),cr.appendItem(ur),cF(er),Tr("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 mF(rr[0],rr[0].nextSibling,rr[0].parentNode)),rr.remove();var gr,mr=AF(sr).find("use:data(symbol)").length,_r=or.createElementNS(Xd.SVG,"g"),vr=er.childNodes;for(gr=0;gr<vr.length;gr++)_r.append(vr[gr].cloneNode(!0));if(mh()){var yr=AF(Qf()).children("linearGradient,radialGradient,pattern").clone();AF(_r).append(yr)}tr&&_r.setAttribute("transform",tr);var br=er.parentNode;if(_i(_r),mh()&&AF(Qf()).append(AF(_r).find("linearGradient,radialGradient,pattern")),_r.id=Nr(),fr.after(_r),br){if(!mr){var wr=er.nextSibling;er.remove(),nr.addSubCommand(new mF(er,wr,br))}nr.addSubCommand(new gF(_r))}vi(_r),mh()?yi(Qf()):yi(_r),function walkTreePost(er,tr){if(er&&1===er.nodeType){for(var rr=er.childNodes.length;rr--;)If(er.childNodes.item(rr),tr);tr(er)}}(_r,(function(er){try{cF(er)}catch(er){console.log(er)}})),AF(_r).find(Mr).each((function(){this.id||(this.id=Nr())})),$n([_r]);var Sr=Ti(_r,!0);Sr&&nr.addSubCommand(Sr),kr(nr)}else console.log("Unexpected element to ungroup:",er)};this.setSvgString=function(er,tr){try{var nr=Uf(er);if(nr.firstElementChild&&nr.firstElementChild.namespaceURI!==Xd.SVG)return!1;this.prepareSvg(nr);var dr=new vF("Change Source"),hr=sr.nextSibling;sr.remove();var pr=sr;dr.addSubCommand(new mF(pr,hr,ar)),sr=or.adoptNode?or.adoptNode(nr.documentElement):or.importNode(nr.documentElement,!0),ar.append(sr);var Ar=AF(sr);ir.current_drawing_=new UP(sr,lr);var fr=cr().getNonce();fr?Tr("setnonce",fr):Tr("unsetnonce"),Ar.find("image").each((function(){var er=this;ng(er);var tr=Mf(this);if(tr){if(tr.startsWith("data:")){var rr=tr.match(/svgedit_url=(.*?);/);if(rr){var nr=decodeURIComponent(rr[1]);AF(new Image).load((function(){er.setAttributeNS(Xd.XLINK,"xlink:href",nr)})).attr("src",nr)}}ir.embedImage(tr)}})),Ar.find("svg").each((function(){if(!AF(this).closest("defs").length){_i(this);var er=this.parentNode;1===er.childNodes.length&&"g"===er.nodeName?(AF(er).data("gsvg",this),er.id=er.id||Nr()):zn(this)}})),mh()&&Ar.find("linearGradient, radialGradient, pattern").appendTo(Qf()),vi(Ar),yi(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 AF.each(["width","height"],(function(er,tr){var rr=Ar.attr(tr)||"100%";"%"===String(rr).substr(-1)?mr=!0:gr[tr]=of(tr,rr)}));if(RP(),Ar.children().find(Mr).each((function(){this.id||(this.id=Nr())})),mr){var vr=Xf();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 gF(sr));var yr=Ar.attr(["width","height"]);dr.addSubCommand(new _F(ar,yr)),ur=1,function resetListMap(){KA={}}(),Pr(),function clearData(){qT={}}(),ar.append(Er.selectorParentGroup),tr||kr(dr),Tr("changed",[sr])}catch(er){return console.log(er),!1}return!0},this.importSvgString=function(er){var tr,rr,nr;try{var ir=encode64(er.length+er).substr(0,32),ar=!1;Vr[ir]&&AF(Vr[ir].symbol).parents("#svgroot").length&&(ar=!0);var lr,ur=new vF("Import Image");if(ar)lr=Vr[ir].symbol,rr=Vr[ir].xform;else{var hr=Uf(er);this.prepareSvg(hr);var pr=or.adoptNode?or.adoptNode(hr.documentElement):or.importNode(hr.documentElement,!0);_i(pr);var Ar=of("width",pr.getAttribute("width")),fr=of("height",pr.getAttribute("height")),gr=pr.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=or.createElementNS(Xd.SVG,"symbol");var vr=Qf();for(mh()&&AF(pr).find("linearGradient, radialGradient, pattern").appendTo(vr);pr.firstChild;){var yr=pr.firstChild;lr.append(yr)}var br,wr=_createForOfIteratorHelper(pr.attributes);try{for(wr.s();!(br=wr.n()).done;){var Sr=br.value;lr.setAttribute(Sr.nodeName,Sr.value)}}catch(er){wr.e(er)}finally{wr.f()}lr.id=Nr(),Vr[ir]={symbol:lr,xform:rr},Qf().append(lr),ur.addSubCommand(new gF(lr))}(nr=or.createElementNS(Xd.SVG,"use")).id=Nr(),Of(nr,"#"+lr.id),(dr||cr().getCurrentLayer()).append(nr),ur.addSubCommand(new gF(nr)),Pr(),nr.setAttribute("transform",rr),cF(nr),AF(nr).data("symbol",lr).data("ref",lr),Fr([nr]),kr(ur),Tr("changed",[sr])}catch(er){return console.log(er),null}return nr};var Si={identifyLayers:RP,createLayer:MP,cloneLayer:OP,deleteCurrentLayer:QP,setCurrentLayer:DP,renameCurrentLayer:jP,setCurrentLayerPosition:HP,setLayerVisibility:GP,moveSelectedToLayer:VP,mergeLayer:zP,mergeAllLayers:KP,leaveContext:qP,setContext:WP};Object.entries(Si).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];ir[rr]=nr})),function init(er){FP=er}({pathActions:yr,getCurrentGroup:function getCurrentGroup(){return dr},setCurrentGroup:function setCurrentGroup(er){dr=er},getSelectedElements:vr,getSVGContent:_r,undoMgr:xr,elData:Qr,getCurrentDrawing:cr,clearSelection:Pr,call:Tr,addCommandToHistory:kr,changeSVGContent:function changeSVGContent(){Tr("changed",[sr])}}),this.clear=function(){yr.clear(),Pr(),ir.clearSvgContentElement(),ir.current_drawing_=new UP(sr),ir.createLayer("Layer 1"),ir.undoMgr.resetUndoStack(),Er.initGroup(),Un=Er.getRubberBandBox(),Tr("cleared")},this.linkControlPoints=yr.linkControlPoints,this.getContentElem=function(){return sr},this.getRootElem=function(){return ar};var xi=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),AF=jQueryPluginDBox(AF,er.common),VT(er)},this.setConfig=function(er){Object.assign(rr,er)},this.getTitle=function(er){if(er=er||Ar[0]){var tr,rr=_createForOfIteratorHelper((er=AF(er).data("gsvg")||AF(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=AF(tr).data("gsvg")||tr;var rr,nr=AF(tr).children("title"),ir=new vF("Set Label");if(er.length)nr.length?(rr=nr[0],ir.addSubCommand(new _F(rr,{"#text":rr.textContent})),rr.textContent=er):((rr=or.createElementNS(Xd.SVG,"title")).textContent=er,AF(tr).prepend(rr),ir.addSubCommand(new gF(rr)));else{var ar=nr.nextSibling;ir.addSubCommand(new mF(nr[0],ar,tr)),nr.remove()}kr(ir)};var ki=this.getDocumentTitle=function(){return ir.getTitle(sr)};this.setDocumentTitle=function(er){var tr,rr=sr.childNodes,nr=!1,ir="",ar=new vF("Change Image Title"),lr=_createForOfIteratorHelper(rr);try{for(lr.s();!(tr=lr.n()).done;){var cr=tr.value;if("title"===cr.nodeName){ir=(nr=cr).textContent;break}}}catch(er){lr.e(er)}finally{lr.f()}nr||(nr=or.createElementNS(Xd.SVG,"title"),sr.insertBefore(nr,sr.firstChild)),er.length?nr.textContent=er:nr.remove(),ar.addSubCommand(new _F(nr,{"#text":ir})),kr(ar)},this.getEditorNS=function(er){return er&&sr.setAttribute("xmlns:se",Xd.SE),Xd.SE},this.setResolution=function(er,tr){var rr,nr=xi(),or=nr.w,ar=nr.h;if("fit"===er){var lr=Xf();if(!lr)return!1;rr=new vF("Fit Canvas to Content");var cr=Wf();Fr(cr);var dr=[],hr=[];AF.each(cr,(function(er,tr){dr.push(-1*lr.x),hr.push(-1*lr.y)}));var pr=ir.moveSelectedElements(dr,hr,!0);rr.addSubCommand(pr),Pr(),er=Math.round(lr.width),tr=Math.round(lr.height)}return er===or&&tr===ar||(rr||(rr=new vF("Change Image Dimensions")),er=of("width",er),tr=of("height",tr),sr.setAttribute("width",er),sr.setAttribute("height",tr),this.contentW=er,this.contentH=tr,rr.addSubCommand(new _F(sr,{width:or,height:ar})),sr.setAttribute("viewBox",[0,0,er/ur,tr/ur].join(" ")),rr.addSubCommand(new _F(sr,{viewBox:["0 0",or,ar].join(" ")})),kr(rr),Tr("changed",[sr])),!0},this.getOffset=function(){return AF(sr).attr(["x","y"])},this.setBBoxZoom=function(er,tr,rr){var nr,or=.85,ar=function calcZoom(er){if(!er)return!1;var nr=Math.round(tr/er.width*100*or)/100,ar=Math.round(rr/er.height*100*or)/100,sr=Math.min(nr,ar);return ir.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 ir.setZoom(sr),{zoom:ur,bbox:nr}}return ar(nr)}switch(er){case"selection":if(!Ar[0])return;var lr=AF.map(Ar,(function(er){if(er)return er}));nr=Xf(lr);break;case"canvas":var dr=xi();or=.95,nr={width:dr.w,height:dr.h,x:0,y:0};break;case"content":nr=Xf();break;case"layer":nr=Xf(Wf(cr().getCurrentLayer()));break;default:return}return ar(nr)},this.setZoom=function(er){var tr=xi();sr.setAttribute("viewBox","0 0 "+tr.w/er+" "+tr.h/er),ur=er,AF.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),gi.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 ir=Ar.length;ir--;){var or=Ar[ir];or&&("g"===or.tagName?If(or,addNonG):"fill"===er?"polyline"!==or.tagName&&"line"!==or.tagName&&nr.push(or):nr.push(or))}nr.length>0&&(rr?Ei(er,tr,nr):(Ni(er,tr,nr),Tr("changed",nr)))};var Ci=this.setGradient=function(er){if(Zr[er+"_paint"]&&"solidColor"!==Zr[er+"_paint"].type){var tr=ir[er+"Grad"],rr=Bi(tr),nr=Qf();rr?tr=rr:(tr=nr.appendChild(or.importNode(tr,!0))).id=Nr(),ir.setColor(er,"url(#"+tr.id+")")}},Bi=function findDuplicateGradient(er){for(var tr=Qf(),rr=AF(tr).find("linearGradient, radialGradient"),nr=rr.length,ir=["r","cx","cy","fx","fy"];nr--;){var or=rr[nr];if("linearGradient"===er.tagName){if(er.getAttribute("x1")!==or.getAttribute("x1")||er.getAttribute("y1")!==or.getAttribute("y1")||er.getAttribute("x2")!==or.getAttribute("x2")||er.getAttribute("y2")!==or.getAttribute("y2"))continue}else if("continue"===function(){var tr=AF(er).attr(ir),rr=AF(or).attr(ir),nr=!1;if(AF.each(ir,(function(er,ir){tr[ir]!==rr[ir]&&(nr=!0)})),nr)return"continue"}())continue;var ar=er.getElementsByTagNameNS(Xd.SVG,"stop"),sr=or.getElementsByTagNameNS(Xd.SVG,"stop");if(ar.length===sr.length){for(var lr=ar.length;lr--;){var cr=ar[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 or}}return null};this.setPaint=function(er,tr){var rr=new AF.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":ir[er+"Grad"]=rr[rr.type],Ci(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))ir.setStrokeWidth(1);else{Zr.stroke_width=er;for(var tr=[],rr=Ar.length;rr--;){var nr=Ar[rr];nr&&("g"===nr.tagName?If(nr,addNonG):tr.push(nr))}tr.length>0&&(Ni("stroke-width",er,tr),Tr("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 ir=Ar[nr];ir&&("g"===ir.tagName?If(ir,(function(er){"g"!==er.nodeName&&rr.push(er)})):rr.push(ir))}rr.length>0&&(Ni(er,tr,rr),Tr("changed",Ar))},this.getStyle=function(){return pr},this.getOpacity=Ur,this.setOpacity=function(er){pr.opacity=er,Ni("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?Ei(er+"-opacity",tr):Ni(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=Zf(er.id+"_blur");rr&&(tr=rr.firstChild.getAttribute("stdDeviation"))}return tr},function(){var er=null,tr=null,rr=!1;function finishChange(){var rr=ir.undoMgr.finishUndoableChange();er.addSubCommand(rr),kr(er),er=null,tr=null}ir.setBlurNoUndo=function(er){if(tr)if(0===er)Ei("filter",""),rr=!0;else{var nr=Ar[0];rr&&Ei("filter","url(#"+nr.id+"_blur)"),gh()&&(nr.removeAttribute("filter"),nr.setAttribute("filter","url(#"+nr.id+"_blur)")),Ei("stdDeviation",er,[tr.firstChild]),ir.setBlurOffsets(tr,er)}else ir.setBlur(er)},ir.setBlurOffsets=function(er,tr){tr>3?eg(er,{x:"-50%",y:"-50%",width:"200%",height:"200%"}):gh()||(er.removeAttribute("x"),er.removeAttribute("y"),er.removeAttribute("width"),er.removeAttribute("height"))},ir.setBlur=function(rr,nr){if(er)finishChange();else{var or=Ar[0],ar=or.id;tr=Zf(ar+"_blur"),rr-=0;var sr=new vF;if(tr)0===rr&&(tr=null);else{var lr=gr({element:"feGaussianBlur",attr:{in:"SourceGraphic",stdDeviation:rr}});(tr=gr({element:"filter",attr:{id:ar+"_blur"}})).append(lr),Qf().append(tr),sr.addSubCommand(new gF(tr))}var cr={filter:or.getAttribute("filter")};if(0===rr)return or.removeAttribute("filter"),void sr.addSubCommand(new _F(or,cr));Ni("filter","url(#"+ar+"_blur)"),sr.addSubCommand(new _F(or,cr)),ir.setBlurOffsets(tr,rr),er=sr,ir.undoMgr.beginUndoableChange("stdDeviation",[tr?tr.firstChild:null]),nr&&(ir.setBlurNoUndo(rr),finishChange())}}}(),this.getBold=function(){var er=Ar[0];return!(ig(er)||"text"!==er.tagName||!ig(Ar[1]))&&"bold"===er.getAttribute("font-weight")},this.setBold=function(er){var tr=Ar[0];!ig(tr)&&"text"===tr.tagName&&ig(Ar[1])&&Ni("font-weight",er?"bold":"normal"),Ar[0].textContent||gi.setCursor()},this.getItalic=function(){var er=Ar[0];return!(ig(er)||"text"!==er.tagName||!ig(Ar[1]))&&"italic"===er.getAttribute("font-style")},this.setItalic=function(er){var tr=Ar[0];!ig(tr)&&"text"===tr.tagName&&ig(Ar[1])&&Ni("font-style",er?"italic":"normal"),Ar[0].textContent||gi.setCursor()},this.getFontFamily=function(){return zr.font_family},this.setFontFamily=function(er){zr.font_family=er,Ni("font-family",er),Ar[0]&&!Ar[0].textContent&&gi.setCursor()},this.setFontColor=function(er){zr.fill=er,Ni("fill",er)},this.getFontColor=function(){return zr.fill},this.getFontSize=function(){return zr.font_size},this.setFontSize=function(er){zr.font_size=er,Ni("font-size",er),Ar[0].textContent||gi.setCursor()},this.getText=function(){var er=Ar[0];return ig(er)?"":er.textContent},this.setTextContent=function(er){Ni("#text",er),gi.init(er),gi.setCursor()},this.setImageURL=function(er){var tr=Ar[0];if(tr){var rr=AF(tr).attr(["width","height"]),nr=!rr.width||!rr.height,ir=Mf(tr);if(ir!==er||nr){var or=new vF("Change Image URL");Of(tr,er),or.addSubCommand(new _F(tr,{"#href":ir})),AF(new Image).load((function(){var er=AF(tr).attr(["width","height"]);AF(tr).attr({width:this.width,height:this.height}),Er.requestSelector(tr).resize(),or.addSubCommand(new _F(tr,er)),kr(or),Tr("changed",[tr])})).attr("src",er)}}},this.setLinkURL=function(er){var tr=Ar[0];if(tr){if("a"!==tr.tagName){var rr=AF(tr).parents("a");if(!rr.length)return;tr=rr[0]}var nr=Mf(tr);if(nr!==er){var ir=new vF("Change Link URL");Of(tr,er),ir.addSubCommand(new _F(tr,{"#href":nr})),kr(ir)}}},this.setRectRadius=function(er){var tr=Ar[0];if(!ig(tr)&&"rect"===tr.tagName){var rr=tr.getAttribute("rx");rr!==String(er)&&(tr.setAttribute("rx",er),tr.setAttribute("ry",er),kr(new _F(tr,{rx:rr,ry:rr},"Radius")),Tr("changed",[tr]))}},this.makeHyperlink=function(er){ir.groupSelectedElements("a",er)},this.removeHyperlink=function(){ir.ungroupSelectedElement()},this.setSegType=function(er){yr.setSegType(er)},this.convertToPath=function(er,tr){if(!ig(er))return tr?zf(er,gr,yr):function convertToPath(er,tr,rr,nr,ir,or,ar,sr){var lr=new ar.BatchCommand("Convert element to Path"),cr=rr({element:"path",attr:tr=bf.extend({},tr,Vf(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=Gf(er);if(pr){if(cr.setAttribute("d",pr),ur){var Ar=XA(cr);ff(Ar)&&nr.resetOrientation(cr)}var fr=er.nextSibling;return lr.addSubCommand(new ar.RemoveElementCommand(er,fr,parent)),lr.addSubCommand(new ar.InsertElementCommand(cr)),ir(),er.remove(),cr.setAttribute("id",dr),cr.removeAttribute("visibility"),or([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,Pr,Fr,DT,kr);var rr=Ar;AF.each(rr,(function(er,tr){tr&&ir.convertToPath(tr)}))};var Ei=function changeSelectedAttributeNoUndo(er,tr,rr){"pathedit"===Jr&&yr.moveNode(er,tr);for(var nr=(rr=rr||Ar).length,or=["g","polyline","path"],sr=function _loop(){var sr=rr[nr];if(ig(sr))return"continue";if(("x"===er||"y"===er)&&or.includes(sr.tagName)){var lr=Xf([sr]),cr="x"===er?tr-lr.x:0,dr="y"===er?tr-lr.y:0;return ir.moveSelectedElements(cr*ur,dr*ur,!0),"continue"}var hr="#text"===er?sr.textContent:sr.getAttribute(er);if(ig(hr)&&(hr=""),hr!==String(tr)){"#text"===er?(sr.textContent=tr,/rotate/.test(sr.getAttribute("transform"))&&(sr=Wn(sr))):"#href"===er?Of(sr,tr):sr.setAttribute(er,tr),"textedit"===Jr&&"#text"!==er&&sr.textContent.length&&gi.toSelectMode(sr),mh()&&"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=Jf(sr);if(0!==pr&&"transform"!==er)for(var fr=XA(sr),gr=fr.numberOfItems;gr--;){if(4===fr.getItem(gr).type){fr.removeItem(gr);var mr=jf(sr),_r=hf(mr.x+mr.width/2,mr.y+mr.height/2,mf(fr).matrix),vr=_r.x,yr=_r.y,br=ar.createSVGTransform();br.setRotate(pr,vr,yr),fr.insertItemBefore(br,gr);break}}}};nr--;)sr()},Ni=this.changeSelectedAttribute=function(er,tr,rr){rr=rr||Ar,ir.undoMgr.beginUndoableChange(er,rr),Ei(er,tr,rr);var nr=ir.undoMgr.finishUndoableChange();nr.isEmpty()||kr(nr)};this.deleteSelectedElements=function(){for(var er=new vF("Delete Elements"),tr=Ar.length,rr=[],nr=0;nr<tr;++nr){var ir=Ar[nr];if(ig(ir))break;var or=ir.parentNode,ar=ir;Er.releaseSelector(ar),hP(ar.id),"a"===or.tagName&&1===or.childNodes.length&&(ar=or,or=or.parentNode);var sr=ar.nextSibling;ar.remove();var lr=ar;rr.push(ir),er.addSubCommand(new mF(lr,sr,or))}Ar=[],er.isEmpty()||kr(er),Tr("changed",rr),Pr()},this.cutSelectedElements=function(){ir.copySelectedElements(),ir.deleteSelectedElements()};var Li="svgedit_clipboard";function flashStorage(){var er=sessionStorage.getItem(Li);localStorage.setItem(Li,er),setTimeout((function(){localStorage.removeItem(Li)}),1)}window.addEventListener("storage",(function storageChange(er){er.newValue&&(er.key===Li+"_startup"?(localStorage.removeItem(Li+"_startup"),flashStorage()):er.key===Li&&sessionStorage.setItem(Li,er.newValue))}),!1),localStorage.setItem(Li+"_startup",Math.random()),this.copySelectedElements=function(){var er=JSON.stringify(Ar.map((function(er){return fr(er)})));sessionStorage.setItem(Li,er),flashStorage();var tr=AF("#cmenu_canvas");tr.enableContextMenuItems&&tr.enableContextMenuItems("#paste,#paste_in_place")},this.pasteElements=function(er,tr,rr){var nr=JSON.parse(sessionStorage.getItem(Li));if(nr){var or=nr.length;if(or){var ar=[],sr=new vF("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}))}))}));or--;){var cr=nr[or];if(cr){var ur=gr(cr);ar.push(ur),sr.addSubCommand(new gF(ur)),jr(ur)}}if($n(ar),"in_place"!==er){var dr,hr;er?"point"===er&&(dr=tr,hr=rr):(dr=Dn.x,hr=Dn.y);var pr=Xf(ar),Ar=dr-(pr.x+pr.width/2),fr=hr-(pr.y+pr.height/2),mr=[],_r=[];AF.each(ar,(function(er,tr){mr.push(Ar),_r.push(fr)}));var vr=ir.moveSelectedElements(mr,_r,!1);vr&&sr.addSubCommand(vr)}kr(sr),Tr("changed",ar)}}},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 ir=new vF(nr),or=gr({element:er,attr:{id:Nr()}});"a"===er&&Of(or,rr),ir.addSubCommand(new gF(or));for(var ar=Ar.length;ar--;){var sr=Ar[ar];if(!ig(sr)){"a"===sr.parentNode.tagName&&1===sr.parentNode.childNodes.length&&(sr=sr.parentNode);var lr=sr.nextSibling,cr=sr.parentNode;or.append(sr),ir.addSubCommand(new fF(sr,lr,cr))}}ir.isEmpty()||kr(ir),$n([or],!0)};var Ti=this.pushGroupProperties=function(er,tr){for(var rr,nr,or,sr=er.childNodes,lr=sr.length,ur=er.getAttribute("transform"),dr=XA(er),hr=mf(dr).matrix,pr=new vF("Push group properties"),Ar=Jf(er),fr=AF(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;Ni("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=$f(_r.getAttribute("filter")):rr?(rr=gr.copyElem(rr),Qf().append(rr)):rr=$f(fr.filter);var wr="feGaussianBlur"===rr.firstChild.tagName?"blur":"filter";rr.id=_r.id+"_"+wr,Ni("filter","url(#"+rr.id+")",[_r]),yr&&(Ni("stdDeviation",yr,[rr.firstChild]),ir.setBlurOffsets(rr,yr))}var Sr=XA(_r);if(_r.tagName.includes("Gradient")&&(Sr=null),Sr&&"defs"!==_r.tagName&&dr.numberOfItems){if(Ar&&1===dr.numberOfItems){var xr=dr.getItem(0).matrix,kr=ar.createSVGMatrix(),Cr=Jf(_r);Cr&&(kr=Sr.getItem(0).matrix);var Br=jf(_r),Er=mf(Sr).matrix,Nr=hf(Br.x+Br.width/2,Br.y+Br.height/2,Er),Lr=Ar+Cr,Tr=ar.createSVGTransform();Tr.setRotate(Lr,Nr.x,Nr.y);var Pr=Af(xr,kr,Tr.matrix.inverse());if(Cr&&Sr.removeItem(0),Lr&&(Sr.numberOfItems?Sr.insertItemBefore(Tr,0):Sr.appendItem(Tr)),Pr.e||Pr.f){var Fr=ar.createSVGTransform();Fr.setTranslate(Pr.e,Pr.f),Sr.numberOfItems?Sr.insertItemBefore(Fr,0):Sr.appendItem(Fr)}}else{var Ur=_r.getAttribute("transform");(or={}).transform=Ur||"";var Ir=ar.createSVGTransform(),Rr=mf(Sr).matrix,Mr=Rr.inverse(),Or=Af(Mr,hr,Rr);Ir.setMatrix(Or),Sr.appendItem(Ir)}var Qr=cF(_r);Qr&&pr.addSubCommand(Qr)}}}if(ur&&((or={}).transform=ur,er.setAttribute("transform",""),er.removeAttribute("transform"),pr.addSubCommand(new _F(er,or))),tr&&!pr.isEmpty())return pr};this.ungroupSelectedElement=function(){var er=Ar[0];if(er)if(AF(er).data("gsvg")||AF(er).data("symbol"))wi(er);else{if("use"===er.tagName){var tr=Zf(Mf(er).substr(1));return AF(er).data("symbol",tr).data("ref",tr),void wi(er)}var rr=AF(er).parents("a");if(rr.length&&(er=rr[0]),"g"===er.tagName||"a"===er.tagName){var nr=new vF("Ungroup Elements"),ir=Ti(er,!0);ir&&nr.addSubCommand(ir);for(var or=er.parentNode,ar=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)ar?ar.before(cr):er.after(cr),sr[lr++]=cr,nr.addSubCommand(new fF(cr,ur,dr));else{var hr=cr.nextSibling;nr.addSubCommand(new mF(cr,hr,dr)),cr.remove()}}Pr();var pr=er.nextSibling;er.remove(),nr.addSubCommand(new mF(er,pr,or)),nr.isEmpty()||kr(nr),Fr(sr)}}},this.moveToTopSelectedElement=function(){var er=_slicedToArray(Ar,1)[0];if(!ig(er)){var tr=er,rr=tr.parentNode,nr=tr.nextSibling;nr!==(tr=tr.parentNode.appendChild(tr)).nextSibling&&(kr(new fF(tr,nr,rr,"top")),Tr("changed",[tr]))}},this.moveToBottomSelectedElement=function(){var er=_slicedToArray(Ar,1)[0];if(!ig(er)){var tr=er,rr=tr.parentNode,nr=tr.nextSibling,ir=tr.parentNode.firstChild;"title"===ir.tagName&&(ir=ir.nextSibling),"defs"===ir.tagName&&(ir=ir.nextSibling),nr!==(tr=tr.parentNode.insertBefore(tr,ir)).nextSibling&&(kr(new fF(tr,nr,rr,"bottom")),Tr("changed",[tr]))}},this.moveUpDownSelected=function(er){var tr=Ar[0];if(tr){var rr,nr;Qn=[];var ir=AF(Gn(Xf([tr]))).toArray();if("Down"===er&&ir.reverse(),AF.each(ir,(function(){return nr?(rr=this,!1):(this===tr&&(nr=!0),!0)})),rr){var or=tr,ar=or.parentNode,sr=or.nextSibling;AF(rr)["Down"===er?"before":"after"](or),sr!==or.nextSibling&&(kr(new fF(or,sr,ar,"Move "+er)),Tr("changed",[or]))}}},this.moveSelectedElements=function(er,tr,rr){er.constructor!==Array&&(er/=ur,tr/=ur),rr=rr||!0;for(var nr=new vF("position"),ir=Ar.length;ir--;){var or=Ar[ir];if(!ig(or)){var sr=ar.createSVGTransform(),lr=XA(or);er.constructor===Array?sr.setTranslate(er[ir],tr[ir]):sr.setTranslate(er,tr),lr.numberOfItems?lr.insertItemBefore(sr,0):lr.appendItem(sr);var cr=cF(or);cr&&nr.addSubCommand(cr),Er.requestSelector(or).resize()}}if(!nr.isEmpty())return rr&&kr(nr),Tr("changed",Ar),nr},this.cloneSelectedElements=function(er,tr){var rr,nr,ir=new vF("Clone Elements"),or=Ar.length;for(Ar.sort((function sortfunction(er,tr){return AF(tr).index()-AF(er).index()})),rr=0;rr<or&&(nr=Ar[rr],!ig(nr));++rr);var ar=Ar.slice(0,rr);this.clearSelection(!0);var sr=cr();for(rr=ar.length;rr--;)nr=ar[rr]=sr.copyElem(ar[rr]),(dr||sr.getCurrentLayer()).append(nr),ir.addSubCommand(new gF(nr));ir.isEmpty()||(Fr(ar.reverse()),this.moveSelectedElements(er,tr,!1),kr(ir))},this.alignSelectedElements=function(er,tr){var rr=[],nr=Ar.length;if(nr){for(var or=Number.MAX_VALUE,ar=Number.MIN_VALUE,sr=Number.MAX_VALUE,lr=Number.MIN_VALUE,cr=Number.MIN_VALUE,ur=Number.MIN_VALUE,dr=0;dr<nr&&!ig(Ar[dr]);++dr){var hr=Ar[dr];switch(rr[dr]=Xf([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))&&(or=rr[dr].x,sr=rr[dr].y,ar=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))&&(or=rr[dr].x,sr=rr[dr].y,ar=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<or&&(or=rr[dr].x),rr[dr].y<sr&&(sr=rr[dr].y),rr[dr].x+rr[dr].width>ar&&(ar=rr[dr].x+rr[dr].width),rr[dr].y+rr[dr].height>lr&&(lr=rr[dr].y+rr[dr].height)}}"page"===tr&&(or=0,sr=0,ar=ir.contentW,lr=ir.contentH);for(var pr=new Array(nr),fr=new Array(nr),gr=0;gr<nr&&!ig(Ar[gr]);++gr){var mr=rr[gr];switch(pr[gr]=0,fr[gr]=0,er){case"l":pr[gr]=or-mr.x;break;case"c":pr[gr]=(or+ar)/2-(mr.x+mr.width/2);break;case"r":pr[gr]=ar-(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=xi().w,this.contentH=xi().h,this.updateCanvas=function(er,tr){ar.setAttribute("width",er),ar.setAttribute("height",tr);var rr=AF("#canvasBackground")[0],nr=sr.getAttribute("x"),ir=sr.getAttribute("y"),or=(er-this.contentW*ur)/2,lr=(tr-this.contentH*ur)/2;eg(sr,{width:this.contentW*ur,height:this.contentH*ur,x:or,y:lr,viewBox:"0 0 "+this.contentW+" "+this.contentH}),eg(rr,{width:sr.getAttribute("width"),height:sr.getAttribute("height"),x:or,y:lr});var cr=Zf("background_image");return cr&&eg(cr,{width:"100%",height:"100%"}),Er.selectorParentGroup.setAttribute("transform","translate("+or+","+lr+")"),Hn("canvasUpdated",{new_x:or,new_y:lr,old_x:nr,old_y:ir,d_x:or-nr,d_y:lr-ir}),{x:or,y:lr,old_x:nr,old_y:ir,d_x:or-nr,d_y:lr-ir}},this.setBackground=function(er,tr){var rr=Zf("canvasBackground"),nr=AF(rr).find("rect")[0],ir=Zf("background_image"),ar=Zf("background_pattern");if(nr.setAttribute("fill","chessboard"===er?"#fff":er),"chessboard"===er){if(!ar){ar=or.createElementNS(Xd.SVG,"foreignObject"),eg(ar,{id:"background_pattern",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"});var sr=document.createElement("div");eg(sr,{style:"pointer-events:none;width:100%;height:100%;background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"}),ar.appendChild(sr),rr.append(ar)}}else ar&&ar.remove();tr?(ir||(ir=or.createElementNS(Xd.SVG,"image"),eg(ir,{id:"background_image",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"})),Of(ir,tr),rr.append(ir)):ir&&ir.remove()},this.cycleElement=function(er){var tr,rr=Ar[0],nr=!1,ir=Wf(dr||cr().getCurrentLayer());if(ir.length){if(ig(rr))nr=ir[tr=er?ir.length-1:0];else for(var or=ir.length;or--;)if(ir[or]===rr){(tr=er?or-1:or+1)>=ir.length?tr=0:tr<0&&(tr=ir.length-1),nr=ir[tr];break}$n([nr],!0),Tr("selected",Ar)}},this.clear(),this.getPrivateMethods=function(){return{addCommandToHistory:kr,BatchCommand:vF,ChangeElementCommand:_F,decode64:decode64,dropXMLInternalSubset:Ef,encode64:encode64,ffClone:Wn,findDefs:Qf,findDuplicateGradient:Bi,getElem:Zf,getPathBBox:Df,getTypeMap:ef,getUrlFromAttr:Rf,identifyLayers:RP,InsertElementCommand:gF,isChrome:vh,isIdentity:pf,isIE:_h,logMatrix:Yn,MoveElementCommand:fF,NS:Xd,preventClickDefault:ng,RemoveElementCommand:mF,SVGEditTransformList:qA,text2xml:Uf,transformBox:gf,transformPoint:hf,walkTree:If}}};var SF=Boolean(window.opera),xF=function fixIDs(er,tr,rr){var nr=er.find("defs");if(!nr.length)return er;var ir=SF?nr.find("*").filter((function(){return Boolean(this.id)})):nr.find("[id]"),or=er[0].getElementsByTagName("*"),ar=or.length;return ir.each((function(er){var rr=this.id,nr="x"+rr+tr+er;this.id=nr;var ir="url(#"+rr+")",sr="url(#"+nr+")";for(er=0;er<ar;er++){var lr=or[er];lr.getAttribute("fill")===ir&&lr.setAttribute("fill",sr),lr.getAttribute("stroke")===ir&&lr.setAttribute("stroke",sr),lr.getAttribute("filter")===ir&&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 kF="http://www.w3.org/2000/svg",CF="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 BF,EF=function isNullish(er){return null==er};function __variableDynamicImportRuntime0__(er){switch(er){case"./locale/lang.af.js":return Promise.resolve().then((function(){return mU}));case"./locale/lang.ar.js":return Promise.resolve().then((function(){return _U}));case"./locale/lang.az.js":return Promise.resolve().then((function(){return vU}));case"./locale/lang.be.js":return Promise.resolve().then((function(){return yU}));case"./locale/lang.bg.js":return Promise.resolve().then((function(){return bU}));case"./locale/lang.ca.js":return Promise.resolve().then((function(){return wU}));case"./locale/lang.cs.js":return Promise.resolve().then((function(){return SU}));case"./locale/lang.cy.js":return Promise.resolve().then((function(){return xU}));case"./locale/lang.da.js":return Promise.resolve().then((function(){return kU}));case"./locale/lang.de.js":return Promise.resolve().then((function(){return CU}));case"./locale/lang.el.js":return Promise.resolve().then((function(){return BU}));case"./locale/lang.en.js":return Promise.resolve().then((function(){return EU}));case"./locale/lang.es.js":return Promise.resolve().then((function(){return NU}));case"./locale/lang.et.js":return Promise.resolve().then((function(){return LU}));case"./locale/lang.fa.js":return Promise.resolve().then((function(){return TU}));case"./locale/lang.fi.js":return Promise.resolve().then((function(){return PU}));case"./locale/lang.fr.js":return Promise.resolve().then((function(){return FU}));case"./locale/lang.fy.js":return Promise.resolve().then((function(){return UU}));case"./locale/lang.ga.js":return Promise.resolve().then((function(){return IU}));case"./locale/lang.gl.js":return Promise.resolve().then((function(){return RU}));case"./locale/lang.he.js":return Promise.resolve().then((function(){return MU}));case"./locale/lang.hi.js":return Promise.resolve().then((function(){return OU}));case"./locale/lang.hr.js":return Promise.resolve().then((function(){return QU}));case"./locale/lang.hu.js":return Promise.resolve().then((function(){return DU}));case"./locale/lang.hy.js":return Promise.resolve().then((function(){return jU}));case"./locale/lang.id.js":return Promise.resolve().then((function(){return HU}));case"./locale/lang.is.js":return Promise.resolve().then((function(){return GU}));case"./locale/lang.it.js":return Promise.resolve().then((function(){return VU}));case"./locale/lang.ja.js":return Promise.resolve().then((function(){return zU}));case"./locale/lang.ko.js":return Promise.resolve().then((function(){return KU}));case"./locale/lang.lt.js":return Promise.resolve().then((function(){return qU}));case"./locale/lang.lv.js":return Promise.resolve().then((function(){return WU}));case"./locale/lang.mk.js":return Promise.resolve().then((function(){return XU}));case"./locale/lang.ms.js":return Promise.resolve().then((function(){return YU}));case"./locale/lang.mt.js":return Promise.resolve().then((function(){return JU}));case"./locale/lang.nl.js":return Promise.resolve().then((function(){return $U}));case"./locale/lang.no.js":return Promise.resolve().then((function(){return ZU}));case"./locale/lang.pl.js":return Promise.resolve().then((function(){return eI}));case"./locale/lang.pt-BR.js":return Promise.resolve().then((function(){return tI}));case"./locale/lang.pt-PT.js":return Promise.resolve().then((function(){return rI}));case"./locale/lang.ro.js":return Promise.resolve().then((function(){return nI}));case"./locale/lang.ru.js":return Promise.resolve().then((function(){return iI}));case"./locale/lang.sk.js":return Promise.resolve().then((function(){return oI}));case"./locale/lang.sl.js":return Promise.resolve().then((function(){return aI}));case"./locale/lang.sq.js":return Promise.resolve().then((function(){return sI}));case"./locale/lang.sr.js":return Promise.resolve().then((function(){return lI}));case"./locale/lang.sv.js":return Promise.resolve().then((function(){return cI}));case"./locale/lang.sw.js":return Promise.resolve().then((function(){return uI}));case"./locale/lang.test.js":return Promise.resolve().then((function(){return dI}));case"./locale/lang.th.js":return Promise.resolve().then((function(){return hI}));case"./locale/lang.tl.js":return Promise.resolve().then((function(){return pI}));case"./locale/lang.tr.js":return Promise.resolve().then((function(){return AI}));case"./locale/lang.uk.js":return Promise.resolve().then((function(){return fI}));case"./locale/lang.vi.js":return Promise.resolve().then((function(){return gI}));case"./locale/lang.yi.js":return Promise.resolve().then((function(){return mI}));case"./locale/lang.zh-CN.js":return Promise.resolve().then((function(){return _I}));case"./locale/lang.zh-HK.js":return Promise.resolve().then((function(){return vI}));case"./locale/lang.zh-TW.js":return Promise.resolve().then((function(){return yI}));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 NF=function setStrings(er,tr,rr){var nr=document.getElementById("svg_editor").parentNode;Object.entries(tr).forEach((function(tr){var ir=_slicedToArray(tr,2),or=ir[0],ar=ir[1];if(ar){rr&&(or="#"+or);var sr=nr.querySelectorAll(or);if(sr.length){var lr=sr[0];switch(er){case"aria-label":lr.setAttribute("aria-label",ar);break;case"content":_toConsumableArray(sr).some((function(er){return!(3!==er.nodeType||!er.textContent.trim())&&(er.textContent=ar,!0)}));break;case"title":lr.setAttribute("title",ar)}}else console.log("Missing element for localization: "+or)}else console.log(or)}))},LF=function readLang(er){var tr=er.tools,rr=er.properties,nr=er.config,ir=er.layers,or=er.common,ar=er.ui;NF("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:ir.layers,page:tr.page,relativeToLabel:tr.relativeTo,selLayerLabel:ir.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:or.height,svginfo_icons:nr.icon_size,svginfo_image_props:nr.image_props,svginfo_lang:nr.language,svginfo_title:nr.doc_title,svginfo_width:or.width,tool_docprops_cancel:or.cancel,tool_docprops_save:or.ok,tool_source_cancel:or.cancel,tool_source_save:or.ok,tool_prefs_cancel:or.cancel,tool_prefs_save:or.ok,sidepanel_handle:ir.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+'"]']=ir[er]})),sr['#cmenu_layers a[href="#delete"]']=ir.del,NF("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:ar.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:ar.zoom_level}).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];lr["#"+rr]=nr})),NF("aria-label",lr),NF("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:ir.del,layer_down:ir.move_down,layer_new:ir.new,layer_rename:ir.rename,layer_moreopts:or.more_opts,layer_up:ir.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:ar.palette_info,zoom_panel:ar.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:ir.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:ar.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:BF,langData:er}},TF=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?BF=er:navigator.userLanguage?BF=navigator.userLanguage:navigator.language&&(BF=navigator.language),console.log("Lang: "+BF),tr.includes(BF)||"test"===BF||(BF="en"),nr.next=5,__variableDynamicImportRuntime0__("./locale/lang.".concat(encodeURIComponent(BF),".js"));case 5:return rr=nr.sent,nr.abrupt("return",LF(rr.default));case 7:case"end":return nr.stop()}}),_callee)})));return function putLocale(tr,rr){return er.apply(this,arguments)}}(),PF=function $q(er){return document.querySelector(er)},FF=function $qq(er){return _toConsumableArray(document.querySelectorAll(er))},UF=function $id(er){return document.getElementById(er)},IF={},RF=[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 ir="keypress"!==tr.type&&er.hotkeys.specialKeys[tr.which],or=String.fromCharCode(tr.which).toLowerCase(),ar="",sr={};tr.altKey&&"alt"!==ir&&(ar+="alt+"),tr.ctrlKey&&"ctrl"!==ir&&(ar+="ctrl+"),tr.metaKey&&!tr.ctrlKey&&"meta"!==ir&&(ar+="meta+"),tr.shiftKey&&"shift"!==ir&&(ar+="shift+"),ir?sr[ar+ir]=!0:(sr[ar+or]=!0,sr[ar+er.hotkeys.shiftNums[or]]=!0,"shift+"===ar&&(sr[er.hotkeys.shiftNums[or]]=!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,ir,or,ar,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){ar=er('<object data="'+rr+'" type=image/svg+xml>').appendTo("body").hide();try{ir=ar[0].contentDocument,ar.load(getIcons),getIcons(0,!0)}catch(er){useFallback()}}else{var mr=new DOMParser;er.ajax({url:rr,dataType:"string",success:function success(tr){tr?(ir=mr.parseFromString(tr,"text/xml"),er((function(){getIcons("ajax")}))):er(useFallback)},error:function error(tr){window.opera?er((function(){useFallback()})):tr.responseText?((ir=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=(ir=ar[0].contentDocument)&&ir.getElementById("svg_eof");if(!(sr||rr&&sr))return void(++fr<50?setTimeout(getIcons,20):(useFallback(),Ar=!0));Ar=!0}if(nr=er(ir.firstChild).children(),lr.no_img)setTimeout((function(){pr||makeIcons()}),500);else{var cr=gr+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNzUiIGhlaWdodD0iMjc1Ij48L3N2Zz4%3D";or=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(SF&&tr.css("visibility","hidden"),lr.replace){nr&&tr.attr("id",rr);var ir=er.attr("class");if(ir&&tr.attr("class","svg_icon "+ir),!er.alt){var or="icon";lr.alts&&(or=lr.alts[rr]||or),tr.attr("alt",or)}er.replaceWith(tr)}else er.append(tr);SF&&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],ir=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"),ir){var fr=lr.fallback_path||"";er.each(ir,(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],Sr=wr.getAttribute("width"),xr=wr.getAttribute("height");wr.removeAttribute("width"),wr.removeAttribute("height");var kr=wr.getAttribute("viewBox");kr||wr.setAttribute("viewBox",[0,0,Sr,xr].join(" ")),br.setAttribute("xmlns",cr),br.setAttribute("width",dr),br.setAttribute("height",hr),br.setAttribute("xmlns:xlink",ur),br.setAttribute("class","svg_icon"),SF||(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=xF(er(br),_r);addIcon(Cr,yr)}lr.placement&&er.each(lr.placement,(function(nr,ir){tr[ir]&&er(nr).each((function(nr){var or=tr[ir].clone();nr>0&&!rr&&(or=xF(or,nr)),setIcon(er(this),or,ir)}))})),ir||(rr&&Ar.remove(),ar&&ar.remove(),or&&or.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=xF(nr,0).clone(!0)),nr},er.resizeSvgIcons=function(tr){var rr=!er(".svg_icon:first").length;er.each(tr,(function(tr,nr){var ir=Array.isArray(nr),or=ir?nr[0]:nr,ar=ir?nr[1]:nr;rr&&(tr=tr.replace(/\.svg_icon/g,"svg")),er(tr).each((function(){this.setAttribute("width",or),this.setAttribute("height",ar),window.opera&&window.widget&&(this.parentNode.style.width=or+"px",this.parentNode.style.height=ar+"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 ir=document.createElementNS(kF,er);return function setAttrs(er,rr){tr?Object.entries(rr).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ir=rr[1];er.setAttribute(nr,ir)})):Object.entries(rr).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ir=rr[1],or=er[nr];or&&"SVGLength"===or.constructor?or.baseVal.value=ir:er.setAttribute(nr,ir)}))}(ir,rr),nr&&nr.append(ir),ir}return er.fn.jGraduate=function(tr,rr,nr){return this.each((function(){var ir=er(this),or=er.extend(!0,{},er.fn.jGraduateDefaults,tr||{}),ar=ir.attr("id"),sr="#"+ir.attr("id")+" ";if(sr){var lr=function okClicked(){switch(ir.paint.type){case"radialGradient":ir.paint.linearGradient=null;break;case"linearGradient":ir.paint.radialGradient=null;break;case"solidColor":ir.paint.radialGradient=ir.paint.linearGradient=null}"function"==typeof ir.okCallback&&ir.okCallback(ir.paint),ir.hide()},cr=function cancelClicked(){"function"==typeof ir.cancelCallback&&ir.cancelCallback(),ir.hide()};er.extend(!0,ir,{paint:new er.jGraduate.Paint({copy:or.paint}),okCallback:"function"==typeof rr?rr:null,cancelCallback:"function"==typeof nr?nr:null});var ur=null,dr=er(window);"none"===ir.paint.type&&(ir.paint=new er.jGraduate.Paint({solidColor:"ffffff"})),ir.addClass("jGraduate_Picker"),ir.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="'+ar+'_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>');var hr=er(sr+"> .jGraduate_colPick"),pr=er(sr+"> .jGraduate_gradPick");pr.html('<div id="'+ar+'_jGraduate_Swatch" class="jGraduate_Swatch"><h2 class="jGraduate_Title">'+or.window.pickerTitle+'</h2><div id="'+ar+'_jGraduate_GradContainer" class="jGraduate_GradContainer"></div><div id="'+ar+'_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="'+ar+'_jGraduate_x1" size="3" title="Enter starting x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+ar+'_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="'+ar+'_jGraduate_x2" size="3" title="Enter ending x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+ar+'_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="'+ar+'_jGraduate_cx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+ar+'_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="'+ar+'_jGraduate_match_ctr"/></label><br/><label>x:</label><input type="text" id="'+ar+'_jGraduate_fx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+ar+'_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="'+ar+'_jGraduate_Radius" class="jGraduate_SliderBar jGraduate_Radius" title="Click to set radius"><img id="'+ar+'_jGraduate_RadiusArrows" class="jGraduate_RadiusArrows" src="'+or.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+ar+'_jGraduate_RadiusInput" size="3" value="100"/>%</label></div><div class="jGraduate_Slider jGraduate_EllipField jGraduate_rg_field"><label class="prelabel">Ellip:</label><div id="'+ar+'_jGraduate_Ellip" class="jGraduate_SliderBar jGraduate_Ellip" title="Click to set Ellip"><img id="'+ar+'_jGraduate_EllipArrows" class="jGraduate_EllipArrows" src="'+or.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+ar+'_jGraduate_EllipInput" size="3" value="0"/>%</label></div><div class="jGraduate_Slider jGraduate_AngleField jGraduate_rg_field"><label class="prelabel">Angle:</label><div id="'+ar+'_jGraduate_Angle" class="jGraduate_SliderBar jGraduate_Angle" title="Click to set Angle"><img id="'+ar+'_jGraduate_AngleArrows" class="jGraduate_AngleArrows" src="'+or.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+ar+'_jGraduate_AngleInput" size="3" value="0"/>deg</label></div><div class="jGraduate_Slider jGraduate_OpacField"><label class="prelabel">Opac:</label><div id="'+ar+'_jGraduate_Opac" class="jGraduate_SliderBar jGraduate_Opac" title="Click to set Opac"><img id="'+ar+'_jGraduate_OpacArrows" class="jGraduate_OpacArrows" src="'+or.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+ar+'_jGraduate_OpacInput" size="3" value="100"/>%</label></div></div><div class="jGraduate_OkCancel"><input type="button" id="'+ar+'_jGraduate_Ok" class="jGraduate_Ok" value="OK"/><input type="button" id="'+ar+'_jGraduate_Cancel" class="jGraduate_Cancel" value="Cancel"/></div>');var Ar=256,fr={},gr=145;er(".jGraduate_SliderBar").width(gr);var mr,_r=er("#"+ar+"_jGraduate_GradContainer")[0],vr=mkElem("svg",{id:ar+"_jgraduate_svg",width:Ar,height:Ar,xmlns:kF},_r),yr=ir.paint.type,br=ir.paint[yr],wr=br,Sr=ir.paint.alpha,xr="solidColor"===yr;switch(yr){case"solidColor":case"linearGradient":if(xr||(wr.id=ar+"_lg_jgraduate_grad",br=wr=vr.appendChild(wr)),mkElem("radialGradient",{id:ar+"_rg_jgraduate_grad"},vr),"linearGradient"===yr)break;case"radialGradient":xr||(wr.id=ar+"_rg_jgraduate_grad",br=wr=vr.appendChild(wr)),mkElem("linearGradient",{id:ar+"_lg_jgraduate_grad"},vr)}if(xr){br=wr=er("#"+ar+"_lg_jgraduate_grad")[0],mkStop(0,"#"+(ur=ir.paint[yr]),1);var kr=_typeof(or.newstop);if("string"===kr)switch(or.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"===kr){var Nr="opac"in or.newstop?or.newstop.opac:1;mkStop(1,or.newstop.color||"#"+ur,Nr)}}var Lr,Tr=Number.parseFloat(br.getAttribute("x1")||0),Pr=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),Or=Number.parseFloat(br.getAttribute("fy")||Rr),Qr=mkElem("rect",{id:ar+"_jgraduate_rect",x:0,y:0,width:256,height:256,fill:"url(#"+ar+"_jgraduate_grad)","fill-opacity":Sr/100},vr),Dr=er("<div/>").attr({class:"grad_coord jGraduate_lg_field",title:"Begin Stop"}).text(1).css({top:Pr*Ar,left:Tr*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:Or*Ar,left:Mr*Ar,display:"none"}).attr("title","Focus point").data("coord","focus").appendTo(_r);Gr[0].id=ar+"_jGraduate_focusCoord",er.each(["x1","y1","x2","y2","cx","cy","fx","fy"],(function(tr,rr){var nr=isNaN(rr[1]),ir=wr.getAttribute(rr);ir||(ir=nr?"0.5":"x2"===rr?"1.0":"0.0"),fr[rr]=er("#"+ar+"_jGraduate_"+rr).val(ir).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("#"+ar+"_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=or.images.clientPath+"map-opacity.png";Dn.setAttributeNS(CF,"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,ir=rr/256,or=Xn.data("coord"),ar=wr;switch(or){case"start":fr.x1.val(nr),fr.y1.val(ir),ar.setAttribute("x1",nr),ar.setAttribute("y1",ir);break;case"end":fr.x2.val(nr),fr.y2.val(ir),ar.setAttribute("x2",nr),ar.setAttribute("y2",ir);break;case"center":fr.cx.val(nr),fr.cy.val(ir),ar.setAttribute("cx",nr),ar.setAttribute("cy",ir),Zr=nr,Tn=ir,xform();break;case"focus":fr.fx.val(nr),fr.fy.val(ir),ar.setAttribute("fx",nr),ar.setAttribute("fy",ir),xform()}er.preventDefault()},Jn=function onCoordUp(){Xn=null,dr.unbind("mousemove",Yn).unbind("mouseup",onCoordUp)},$n=(Vr=wr.getElementsByTagNameNS(kF,"stop")).length;if($n<2){for(;$n<2;)wr.append(document.createElementNS(kF,"stop")),++$n;Vr=wr.getElementsByTagNameNS(kF,"stop")}for(var Zn=0;Zn<$n;Zn++)mkStop(0,0,0,0,Vr[Zn]);if(Wn.val(wr.getAttribute("spreadMethod")||"pad"),Lr=!1,Qr.setAttribute("fill-opacity",Sr/100),er("#"+ar+" div.grad_coord").mousedown((function(tr){tr.preventDefault(),Xn=er(this),Gn=Xn.parent().offset(),dr.mousemove(Yn).mouseup(Jn)})),er("#"+ar+"_jGraduate_Ok").bind("click",(function(){ir.paint.type=yr,ir.paint[yr]=wr.cloneNode(!0),ir.paint.solidColor=null,lr()})),er("#"+ar+"_jGraduate_Cancel").bind("click",(function(er){cr()})),"radialGradient"===yr&&(Lr?Gr.show():(Gr.hide(),fr.fx.val(""),fr.fy.val(""))),er("#"+ar+"_jGraduate_match_ctr")[0].checked=!Lr,er("#"+ar+"_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(kF,"stop")).length)<2){for(;$n<2;)wr.append(document.createElementNS(kF,"stop")),++$n;Vr=wr.getElementsByTagNameNS(kF,"stop")}var ei=0,ti=0;if("radialGradient"===yr){var ri=wr.gradientTransform.baseVal;if(2===ri.numberOfItems){var ni=ri.getItem(0),ii=ri.getItem(1);if(2===ni.type&&3===ii.type){var oi=ii.matrix;1!==oi.a?ei=Math.round(100*-(1-oi.a)):1!==oi.d&&(ei=Math.round(100*(1-oi.d)))}}else if(3===ri.numberOfItems){var ai=ri.getItem(0),si=ri.getItem(1),li=ri.getItem(2);if(4===ai.type&&2===si.type&&3===li.type){ti=Math.round(ai.angle);var ui=li.matrix;1!==ui.a?ei=Math.round(100*-(1-ui.a)):1!==ui.d&&(ei=Math.round(100*(1-ui.d)))}}}var di={radius:{handle:"#"+ar+"_jGraduate_RadiusArrows",input:"#"+ar+"_jGraduate_RadiusInput",val:100*(wr.getAttribute("r")||.5)},opacity:{handle:"#"+ar+"_jGraduate_OpacArrows",input:"#"+ar+"_jGraduate_OpacInput",val:ir.paint.alpha||100},ellip:{handle:"#"+ar+"_jGraduate_EllipArrows",input:"#"+ar+"_jGraduate_EllipInput",val:ei},angle:{handle:"#"+ar+"_jGraduate_AngleArrows",input:"#"+ar+"_jGraduate_AngleInput",val:ti}};er.each(di,(function(tr,rr){var nr=er(rr.handle);nr.mousedown((function(ir){var or=nr.parent();Kn={type:tr,elem:nr,input:er(rr.input),parent:or,offset:or.offset()},dr.mousemove(hi).mouseup(pi),ir.preventDefault()})),er(rr.input).val(rr.val).change((function(){var er="radialGradient"===yr,rr=Number(this.value),or=0;switch(tr){case"radius":er&&wr.setAttribute("r",rr/100),or=Math.pow(rr/100,.4)/2*gr;break;case"opacity":ir.paint.alpha=rr,Qr.setAttribute("fill-opacity",rr/100),or=1.45*rr;break;case"ellip":if(Yr=Jr=1,0===rr){or=72.5;break}rr>99.5&&(rr=99.5),rr>0?Jr=1-rr/100:Yr=-rr/100-1,or=gr*((rr+100)/2)/100,er&&xform();break;case"angle":or=($r=rr)/180,or+=.5,or*=gr,er&&xform()}or>gr?or=gr:or<0&&(or=0),nr.css({"margin-left":or-5})})).change()}));for(var hi=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 or=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":ir.paint.alpha=Number.parseInt(100*nr),Qr.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":or}),nr=Math.round(100*nr),Kn.input.val(nr)}(er),er.preventDefault()},pi=function stopSlider(er){dr.unbind("mousemove",hi).unbind("mouseup",stopSlider),Kn=null},Ai=(255*ir.paint.alpha/100).toString(16);Ai.length<2;)Ai="0"+Ai;Ai=Ai.split(".")[0],ur="none"===ir.paint.solidColor?"":ir.paint.solidColor+Ai,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:or.window.pickerTitle},images:{clientPath:or.images.clientPath},color:{active:ur,alphaSupport:!0}},(function(er){ir.paint.type="solidColor",ir.paint.alpha=er.val("ahex")?Math.round(er.val("a")/255*100):100,ir.paint.solidColor=er.val("hex")?er.val("hex"):"none",ir.paint.radialGradient=null,lr()}),null,(function(){cr()}));var fi,gi=er(sr+" .jGraduate_tabs li");switch(gi.click((function(){gi.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("#"+ar+"_jgraduate_rect")[0].setAttribute("fill","url(#"+ar+"_"+tr+"_jgraduate_grad)"),yr="lg"===tr?"linearGradient":"radialGradient",er("#"+ar+"_jGraduate_OpacInput").val(ir.paint.alpha).change();var rr=er("#"+ar+"_"+tr+"_jgraduate_grad")[0];if(wr!==rr){var nr=er(wr).find("stop");er(rr).empty().append(nr),wr=rr;var or=Wn.val();wr.setAttribute("spreadMethod",or)}Lr="rg"===tr&&null!==wr.getAttribute("fx")&&!(Ir===Mr&&Rr===Or),er("#"+ar+"_jGraduate_focusCoord").toggle(Lr),Lr&&(er("#"+ar+"_jGraduate_match_ctr")[0].checked=!1)}else er(sr+" .jGraduate_gradPick").hide(),er(sr+" .jGraduate_colPick").show()})),er(sr+" > div").hide(),gi.removeClass("jGraduate_tab_current"),ir.paint.type){case"linearGradient":fi=er(sr+" .jGraduate_tab_lingrad");break;case"radialGradient":fi=er(sr+" .jGraduate_tab_radgrad");break;default:fi=er(sr+" .jGraduate_tab_color")}ir.show(),setTimeout((function(){fi.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,ir,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,ir=lr.getAttribute("stop-color")||1,sr=(255*Number.parseFloat(nr)).toString(16);sr.length<2;)sr="0"+sr;rr=ir.substr(1)+sr,er("#"+ar+"_jGraduate_stopPicker").css({left:100,bottom:15}).jPicker({window:{title:"Pick the start color and opacity for the gradient"},images:{clientPath:or.images.clientPath},color:{active:rr,alphaSupport:!0}},(function(rr,or){ir=rr.val("hex")?"#"+rr.val("hex"):"none",nr=null!==rr.val("a")?rr.val("a")/256:1,tr.setAttribute("fill",ir),tr.setAttribute("fill-opacity",nr),lr.setAttribute("stop-color",ir),lr.setAttribute("stop-opacity",nr),er("div.jGraduate_LightBox").hide(),er("#"+ar+"_jGraduate_stopPicker").hide()}),null,(function(){er("div.jGraduate_LightBox").hide(),er("#"+ar+"_jGraduate_stopPicker").hide()}))})),er(wr).find("stop").each((function(){var nr=er(this);if(Number(this.getAttribute("offset"))>tr){if(!rr){var ir=this.getAttribute("stop-color"),or=this.getAttribute("stop-opacity");lr.setAttribute("stop-color",ir),hr.setAttribute("fill",ir),lr.setAttribute("stop-opacity",null===or?1:or),hr.setAttribute("fill-opacity",null===or?1:or)}return nr.before(lr),!1}return!0})),ir&&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,ir="translate("+(rr=rr<10?10:rr>266?266:rr)+", 26)";nr<-60||nr>130?(Xr.setAttribute("display","block"),Xr.setAttribute("transform",ir)):Xr.setAttribute("display","none"),Kr.setAttribute("transform",ir),er.data(Kr,"bg").setAttribute("transform",ir);var or=er.data(Kr,"stop"),ar=(rr-10)/Ar;or.setAttribute("offset",ar);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,ir=tr[rr];(tr=tr.offsetParent)&&tr!==nr;)er.browser.msie&&"relative"===tr.currentStyle.position||(ir+=tr[rr]);return ir}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,ir=rr.pageY||rr.y,or=rr.target,ar=tr.stateObj.tool_scale||1,sr=er(or).height()/2,lr=nr>coord(or,"offsetLeft")+or.offsetWidth*ar-this.spinCfg._btn_width?ir<coord(or,"offsetTop")+sr*ar?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},function jQueryContextMenu(er){var tr=er(window),rr=er(document);return er.extend(er.fn,{contextMenu:function contextMenu(nr,ir){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 or=er(this),ar=er(or).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&&yh()){if(cr.stopPropagation(),er(".contextMenu").hide(),or.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(),ir&&ir(er(this).attr("href").substr(1),er(ur),{x:dr-ar.left,y:hr-ar.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(or).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 ir=rr.value;er(this).find('A[href="'+ir+'"]').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 ir=rr.value;er(this).find('A[href="'+ir+'"]').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 ar=tr.offset();ir={l:0|ar.left,t:0|ar.top},clearTimeout(or),or=setTimeout((function(){setValuesFromMousePosition.call(nr,rr)}),0),er(document).bind("mousemove",mouseMove).bind("mouseup",mouseUp),rr.preventDefault()}function mouseMove(er){return clearTimeout(or),or=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,or=tr.h,ar=er.pageX-ir.l,sr=er.pageY-ir.t;ar<0?ar=0:ar>rr&&(ar=rr),sr<0?sr=0:sr>or&&(sr=or),val.call(nr,"xy",{x:ar/rr*ur+lr,y:sr/or*pr+dr})}function val(er,tr,rr){if(!(void 0!==tr))switch(EF(er)&&(er="xy"),er.toLowerCase()){case"x":return ar;case"y":return sr;case"xy":default:return{x:ar,y:sr}}if(EF(rr)||rr!==nr){var ir,or,ur=!1;switch(EF(er)&&(er="xy"),er.toLowerCase()){case"x":ir=tr&&(tr.x&&0|tr.x||0|tr)||0;break;case"y":or=tr&&(tr.y&&0|tr.y||0|tr)||0;break;case"xy":default:ir=tr&&tr.x&&0|tr.x||0,or=tr&&tr.y&&0|tr.y||0}EF(ir)||(ir<lr?ir=lr:ir>cr&&(ir=cr),ar!==ir&&(ar=ir,ur=!0)),EF(or)||(or<dr?or=dr:or>hr&&(or=hr),sr!==or&&(sr=or,ur=!0)),ur&&fireChangeEvents.call(nr,rr||nr)}}function bind(er){"function"==typeof er&&fr.push(er)}var ir,or,ar=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,ir,or;if(!(void 0!==tr))switch(EF(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(EF(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":ir=tr&&(tr.minY&&0|tr.minY||0|tr)||0;break;case"maxy":or=tr&&(tr.maxY&&0|tr.maxY||0|tr)||0;break;case"rangey":ir=tr&&tr.minY&&0|tr.minY||0,or=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,ir=tr&&tr.minY&&0|tr.minY||0,or=tr&&tr.maxY&&0|tr.maxY||0}EF(rr)||lr===rr||(ur=cr-(lr=rr)),EF(nr)||cr===nr||(ur=(cr=nr)-lr),EF(ir)||dr===ir||(pr=hr-(dr=ir)),EF(or)||hr===or||(pr=(hr=or)-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,ir=Ar.h,or=0,lr=0;setTimeout((function(){ur>0&&(or=ar===cr?er:ar/ur*er|0),pr>0&&(lr=sr===hr?rr:sr/pr*rr|0),nr>=er?or=(er>>1)-(nr>>1):or-=nr>>1,ir>=rr?lr=(rr>>1)-(ir>>1):lr-=ir>>1,Ar.css({left:or+"px",top:lr+"px"})}))}))},rr=function ColorValuePicker(tr,rr,nr,ir){_classCallCheck(this,ColorValuePicker);var or=this,ar=tr.find("td.Text input");function keyDown(er){if(""!==er.target.value||er.target===Ar.get(0)||(EF(nr)||er.target===nr.get(0))&&!EF(nr)){if(!validateKey(er))return er;switch(er.target){case sr.get(0):switch(er.keyCode){case 38:return sr.val(setValueInRange.call(or,1+(sr.val()<<0),0,255)),rr.val("r",sr.val(),er.target),!1;case 40:return sr.val(setValueInRange.call(or,(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(or,1+(lr.val()<<0),0,255)),rr.val("g",lr.val(),er.target),!1;case 40:return lr.val(setValueInRange.call(or,(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(or,1+(cr.val()<<0),0,255)),rr.val("b",cr.val(),er.target),!1;case 40:return cr.val(setValueInRange.call(or,(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(or,Number.parseFloat(ur.val())+1,0,100)),rr.val("a",toFixedNumeric(255*ur.val()/100,ir),er.target),!1;case 40:return ur.val(setValueInRange.call(or,Number.parseFloat(ur.val())-1,0,100)),rr.val("a",toFixedNumeric(255*ur.val()/100,ir),er.target),!1}break;case dr.get(0):switch(er.keyCode){case 38:return dr.val(setValueInRange.call(or,1+(dr.val()<<0),0,360)),rr.val("h",dr.val(),er.target),!1;case 40:return dr.val(setValueInRange.call(or,(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(or,1+(hr.val()<<0),0,100)),rr.val("s",hr.val(),er.target),!1;case 40:return hr.val(setValueInRange.call(or,(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(or,1+(pr.val()<<0),0,100)),rr.val("v",pr.val(),er.target),!1;case 40:return pr.val(setValueInRange.call(or,(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)||(EF(nr)||er.target===nr.get(0))&&!EF(nr)){if(!validateKey(er))return er;switch(er.target){case sr.get(0):sr.val(setValueInRange.call(or,sr.val(),0,255)),rr.val("r",sr.val(),er.target);break;case lr.get(0):lr.val(setValueInRange.call(or,lr.val(),0,255)),rr.val("g",lr.val(),er.target);break;case cr.get(0):cr.val(setValueInRange.call(or,cr.val(),0,255)),rr.val("b",cr.val(),er.target);break;case ur&&ur.get(0):ur.val(setValueInRange.call(or,ur.val(),0,100)),rr.val("a",toFixedNumeric(255*ur.val()/100,ir),er.target);break;case dr.get(0):dr.val(setValueInRange.call(or,dr.val(),0,360)),rr.val("h",dr.val(),er.target);break;case hr.get(0):hr.val(setValueInRange.call(or,hr.val(),0,100)),rr.val("s",hr.val(),er.target);break;case pr.get(0):pr.val(setValueInRange.call(or,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",EF(fr.val())?null:Number.parseInt(fr.val(),16),er.target)}}}function blur(er){if(!EF(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,ir));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(EF(rr)?"":rr.r),tr!==lr.get(0)&&lr.val(EF(rr)?"":rr.g),tr!==cr.get(0)&&cr.val(EF(rr)?"":rr.b),ur&&tr!==ur.get(0)&&ur.val(EF(rr)?"":toFixedNumeric(100*rr.a/255,ir)),tr!==dr.get(0)&&dr.val(EF(rr)?"":rr.h),tr!==hr.get(0)&&hr.val(EF(rr)?"":rr.s),tr!==pr.get(0)&&pr.val(EF(rr)?"":rr.v),tr!==Ar.get(0)&&(nr&&tr!==nr.get(0)||!nr)&&Ar.val(EF(rr)?"":rr.hex),nr&&tr!==nr.get(0)&&tr!==Ar.get(0)&&nr.val(EF(rr)?"":rr.hex),fr&&tr!==fr.get(0)&&fr.val(EF(rr)?"":rr.ahex.substring(6))}var sr=ar.eq(3),lr=ar.eq(4),cr=ar.eq(5),ur=ar.length>7?ar.eq(6):null,dr=ar.eq(0),hr=ar.eq(1),pr=ar.eq(2),Ar=ar.eq(ar.length>7?7:6),fr=ar.length>7?ar.eq(8):null;er.extend(!0,or,{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((EF(er)||""===er)&&(er="all"),EF(nr))return null;switch(er.toLowerCase()){case"ahex":return ar.rgbaToHex({r:nr,g:ir,b:or,a:sr});case"hex":return val("ahex").substring(0,6);case"all":return{r:nr,g:ir,b:or,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=ir:pr.g=ir;break;case"b":1===Ar?pr=or:pr.b=or;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(EF(dr)||dr!==rr){EF(er)&&(er="");var fr=!1;if(EF(tr))return EF(nr)||(nr=null,fr=!0),EF(ir)||(ir=null,fr=!0),EF(or)||(or=null,fr=!0),EF(sr)||(sr=null,fr=!0),EF(lr)||(lr=null,fr=!0),EF(cr)||(cr=null,fr=!0),EF(ur)||(ur=null,fr=!0),void(fr&&fireChangeEvents.call(rr,dr||rr));switch(er.toLowerCase()){case"ahex":case"hex":var gr=ar.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:EF(sr)?255:sr},dr);break;default:if(tr&&(!EF(tr.ahex)||!EF(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),ir!==mr.g&&(ir=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),or!==mr.b&&(or=mr.b,fr=!0);break;case"a":mr.a=tr&&!EF(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=EF(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=EF(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,ir=ir||0,or=or||0;var yr=ar.rgbToHsv({r:nr,g:ir,b:or});lr=yr.h,cr=yr.s,ur=yr.v}else if(vr){lr=lr||0,cr=EF(cr)?100:cr,ur=EF(ur)?100:ur;var br=ar.hsvToRgb({h:lr,s:cr,v:ur});nr=br.r,ir=br.g,or=br.b}sr=EF(sr)?255:sr,fireChangeEvents.call(rr,dr||rr)}}}}var nr,ir,or,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&&(EF(tr.ahex)?EF(tr.hex)?EF(tr.r)||EF(tr.g)||EF(tr.b)?EF(tr.h)||EF(tr.s)||EF(tr.v)||val("hsv"+(EF(tr.a)?"":"a"),tr):val("rgb"+(EF(tr.a)?"":"a"),tr):val((EF(tr.a)?"":"a")+"hex",EF(tr.a)?tr:{ahex:tr.hex+ar.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",ir="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),ir=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(ir)}},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,ir=er.b/255,or={h:0,s:0,v:0},ar=0,sr=0;return rr>=nr&&rr>=ir?(sr=rr,ar=nr>ir?ir:nr):nr>=ir&&nr>=rr?(sr=nr,ar=rr>ir?ir:rr):(sr=ir,ar=nr>rr?rr:nr),or.v=sr,or.s=sr?(sr-ar)/sr:0,or.s?(tr=sr-ar,or.h=rr===sr?(nr-ir)/tr:nr===sr?2+(ir-rr)/tr:4+(rr-nr)/tr,or.h=Number.parseInt(60*or.h),or.h<0&&(or.h+=360)):or.h=0,or.s=100*or.s|0,or.v=100*or.v|0,or},hsvToRgb:function hsvToRgb(er){var tr={r:0,g:0,b:0,a:100},rr=er.h,nr=er.s,ir=er.v;if(0===nr)tr.r=tr.g=tr.b=0===ir?0:255*ir/100|0;else{360===rr&&(rr=0);var or=0|(rr/=60),ar=rr-or,sr=(ir/=100)*(1-(nr/=100)),lr=ir*(1-nr*ar),cr=ir*(1-nr*(1-ar));switch(or){case 0:tr.r=ir,tr.g=cr,tr.b=sr;break;case 1:tr.r=lr,tr.g=ir,tr.b=sr;break;case 2:tr.r=sr,tr.g=ir,tr.b=cr;break;case 3:tr.r=sr,tr.g=lr,tr.b=ir;break;case 4:tr.r=cr,tr.g=sr,tr.b=ir;break;case 5:tr.r=ir,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,ir=nr.Color,or=nr.List,ar=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 ir({hex:null}),dr.color.current=new ir({hex:null})):ar.validateHex(er(ur).val())&&(dr.color.active=new ir({hex:er(ur).val(),a:dr.color.active.val("a")}),dr.color.current=new ir({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,ir=nr.val("hex");switch(dr.color.mode=er,er){case"h":if(setTimeout((function(){setBG.call(ur,br,"transparent"),setImgLoc.call(ur,Sr,0),setAlpha.call(ur,Sr,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,Tr,260),setAlpha.call(ur,Tr,100)}),0),Pr.range("all",{minX:0,maxX:100,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:360}),EF(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("s"),y:100-nr.val("v")},Pr),Fr.val("y",360-nr.val("h"),Fr);break;case"s":if(setTimeout((function(){setBG.call(ur,br,"transparent"),setImgLoc.call(ur,Sr,-260),setImgLoc.call(ur,xr,-520),setImgLoc.call(ur,Cr,-260),setImgLoc.call(ur,Br,-520),setImgLoc.call(ur,Tr,260),setAlpha.call(ur,Tr,100)}),0),Pr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:100}),EF(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("h"),y:100-nr.val("v")},Pr),Fr.val("y",100-nr.val("s"),Fr);break;case"v":if(setTimeout((function(){setBG.call(ur,br,"000000"),setImgLoc.call(ur,Sr,-780),setImgLoc.call(ur,xr,260),setBG.call(ur,wr,ir),setImgLoc.call(ur,Cr,-520),setImgLoc.call(ur,Br,260),setAlpha.call(ur,Br,100),setImgLoc.call(ur,Tr,260),setAlpha.call(ur,Tr,100)}),0),Pr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:100}),EF(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("h"),y:100-nr.val("s")},Pr),Fr.val("y",100-nr.val("v"),Fr);break;case"r":if(tr=-1040,rr=-780,Pr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Fr.range("rangeY",{minY:0,maxY:255}),EF(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("b"),y:255-nr.val("g")},Pr),Fr.val("y",255-nr.val("r"),Fr);break;case"g":if(tr=-1560,rr=-1820,Pr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Fr.range("rangeY",{minY:0,maxY:255}),EF(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("b"),y:255-nr.val("r")},Pr),Fr.val("y",255-nr.val("g"),Fr);break;case"b":if(tr=-2080,rr=-2860,Pr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Fr.range("rangeY",{minY:0,maxY:255}),EF(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("r"),y:255-nr.val("g")},Pr),Fr.val("y",255-nr.val("b"),Fr);break;case"a":if(setTimeout((function(){setBG.call(ur,br,"transparent"),setImgLoc.call(ur,Sr,-260),setImgLoc.call(ur,xr,-520),setImgLoc.call(ur,Cr,260),setImgLoc.call(ur,Br,260),setAlpha.call(ur,Br,100),setImgLoc.call(ur,Tr,0),setAlpha.call(ur,Tr,100)}),0),Pr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:255}),EF(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("h"),y:100-nr.val("v")},Pr),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,Sr,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,Sr,100),setImgLoc.call(ur,Sr,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,Tr,260),setAlpha.call(ur,Tr,100)}),0)}EF(nr.val("ahex"))||activeColorChanged.call(ur,nr)}function activeColorChanged(er,tr){(EF(tr)||tr!==Fr&&tr!==Pr)&&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===Pr||!EF(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||!EF(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!==Pr)switch(dr.color.mode){case"h":var rr=er.val("sv");Pr.val("xy",{x:EF(rr)?100:rr.s,y:100-(EF(rr)?100:rr.v)},tr);break;case"s":case"a":var nr=er.val("hv");Pr.val("xy",{x:nr&&nr.h||0,y:100-(EF(nr)?100:nr.v)},tr);break;case"v":var ir=er.val("hs");Pr.val("xy",{x:ir&&ir.h||0,y:100-(EF(ir)?100:ir.s)},tr);break;case"r":var or=er.val("bg");Pr.val("xy",{x:or&&or.b||0,y:255-(or&&or.g||0)},tr);break;case"g":var ar=er.val("br");Pr.val("xy",{x:ar&&ar.b||0,y:255-(ar&&ar.r||0)},tr);break;case"b":var sr=er.val("rg");Pr.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-(EF(lr)?100:lr),tr);break;case"v":var cr=er.val("v");Fr.val("y",100-(EF(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-(EF(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 ir({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-(EF(tr)?100:tr));break;case"v":var rr=er.val("v");setAlpha.call(ur,Sr,EF(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,kr,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 ir({h:rr&&rr.h||0,s:100,v:EF(rr)?100:rr.v});setBG.call(ur,wr,nr.val("hex")),setAlpha.call(ur,Br,100-(EF(rr)?100:rr.v)),setAlpha.call(ur,Lr,toFixedNumeric(100*(255-(rr&&rr.a||0))/255,4));break;case"v":var or=er.val("hsa"),ar=new ir({h:or&&or.h||0,s:EF(or)?100:or.s,v:100});setBG.call(ur,wr,ar.val("hex")),setAlpha.call(ur,Lr,toFixedNumeric(100*(255-(or&&or.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,EF(pr)?100:0),setAlpha.call(ur,Tr,EF(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");!EF(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");!EF(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,Or)}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:EF(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,or=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 ar=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(EF(ar)?"":ar.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(EF(ar)?"":ar.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(EF(ar)?"":ar.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(EF(ar)?"":ar.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(EF(ar)?"":ar.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(EF(ar)?"":ar.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(EF(ar)?"":toFixedNumeric(100*ar.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(EF(ar)?"":ar.hex,'"/></label>').concat(nr.alphaSupport?'<input type="text" maxlength="2" class="AHex" value="'.concat(EF(ar)?"":ar.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?or.offset().left-530-("center"===nr.position.y?25:0)+"px":"center"===nr.position.x?or.offset().left-260+"px":"right"===nr.position.x?or.offset().left-10+("center"===nr.position.y?25:0)+"px":"screenCenter"===nr.position.x?(er(document).width()>>1)-260+"px":or.offset().left+Number.parseInt(nr.position.x)+"px",position:"absolute",top:"top"===nr.position.y?or.offset().top-312+"px":"center"===nr.position.y?or.offset().top-156+"px":"bottom"===nr.position.y?or.offset().top+25+"px":or.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");Sr=hr.filter(".Map1:first"),xr=hr.filter(".Map2:first"),kr=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"),Tr=gr.filter(".Map6:first"),(Pr=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=EF(ar)?null:ar.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),Or=vr.find(".Cancel:first").bind("click",cancelClicked),Qr=vr.find(".Grid:first"),setTimeout((function(){setImg.call(ur,Sr,pr.clientPath+"Maps.png"),setImg.call(ur,xr,pr.clientPath+"Maps.png"),setImg.call(ur,kr,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,Tr,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 ir({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,Qr,pr.clientPath+"bar-opacity.png"),Qr.html(Vr),Qr.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=or.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-(EF(ar)?0:ar.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:EF(ar)||ar.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 ir({ahex:!dr.window.alphaSupport&&dr.color.active?dr.color.active.substring(0,6)+"ff":dr.color.active}):new ir({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 ir({ahex:!dr.window.alphaSupport&&dr.color.active?dr.color.active.substring(0,6)+"ff":dr.color.active}):new ir({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,Sr=null,xr=null,kr=null,Cr=null,Br=null,Er=null,Nr=null,Lr=null,Tr=null,Pr=null,Fr=null,Ur=null,Ir=null,Rr=null,Mr=null,Or=null,Qr=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),Or.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,Sr=null,xr=null,kr=null,Cr=null,Br=null,Er=null,Nr=null,Lr=null,Tr=null,Pr.destroy(),Pr=null,Fr.destroy(),Fr=null,Ur.destroy(),Ur=null,Ir=null,Rr=null,Mr=null,Or=null,Qr=null,sr=null,cr=null,lr=null,yr.html("");for(var er=0;er<or.length;er++)or[er]===ur&&(or.splice(er,1),er--)}}),or.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 ir({ahex:"#ffcc00ff"}),quickList:[new ir({h:360,s:33,v:100}),new ir({h:360,s:66,v:100}),new ir({h:360,s:100,v:100}),new ir({h:360,s:100,v:75}),new ir({h:360,s:100,v:50}),new ir({h:180,s:0,v:100}),new ir({h:30,s:33,v:100}),new ir({h:30,s:66,v:100}),new ir({h:30,s:100,v:100}),new ir({h:30,s:100,v:75}),new ir({h:30,s:100,v:50}),new ir({h:180,s:0,v:90}),new ir({h:60,s:33,v:100}),new ir({h:60,s:66,v:100}),new ir({h:60,s:100,v:100}),new ir({h:60,s:100,v:75}),new ir({h:60,s:100,v:50}),new ir({h:180,s:0,v:80}),new ir({h:90,s:33,v:100}),new ir({h:90,s:66,v:100}),new ir({h:90,s:100,v:100}),new ir({h:90,s:100,v:75}),new ir({h:90,s:100,v:50}),new ir({h:180,s:0,v:70}),new ir({h:120,s:33,v:100}),new ir({h:120,s:66,v:100}),new ir({h:120,s:100,v:100}),new ir({h:120,s:100,v:75}),new ir({h:120,s:100,v:50}),new ir({h:180,s:0,v:60}),new ir({h:150,s:33,v:100}),new ir({h:150,s:66,v:100}),new ir({h:150,s:100,v:100}),new ir({h:150,s:100,v:75}),new ir({h:150,s:100,v:50}),new ir({h:180,s:0,v:50}),new ir({h:180,s:33,v:100}),new ir({h:180,s:66,v:100}),new ir({h:180,s:100,v:100}),new ir({h:180,s:100,v:75}),new ir({h:180,s:100,v:50}),new ir({h:180,s:0,v:40}),new ir({h:210,s:33,v:100}),new ir({h:210,s:66,v:100}),new ir({h:210,s:100,v:100}),new ir({h:210,s:100,v:75}),new ir({h:210,s:100,v:50}),new ir({h:180,s:0,v:30}),new ir({h:240,s:33,v:100}),new ir({h:240,s:66,v:100}),new ir({h:240,s:100,v:100}),new ir({h:240,s:100,v:75}),new ir({h:240,s:100,v:50}),new ir({h:180,s:0,v:20}),new ir({h:270,s:33,v:100}),new ir({h:270,s:66,v:100}),new ir({h:270,s:100,v:100}),new ir({h:270,s:100,v:75}),new ir({h:270,s:100,v:50}),new ir({h:180,s:0,v:10}),new ir({h:300,s:33,v:100}),new ir({h:300,s:66,v:100}),new ir({h:300,s:100,v:100}),new ir({h:300,s:100,v:75}),new ir({h:300,s:100,v:50}),new ir({h:180,s:0,v:0}),new ir({h:330,s:33,v:100}),new ir({h:330,s:66,v:100}),new ir({h:330,s:100,v:100}),new ir({h:330,s:100,v:75}),new ir({h:330,s:100,v:50}),new ir]},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);IF.tool_scale=1,IF.exportWindowCt=0,IF.langChanged=!1,IF.showSaveWarning=!1,IF.storagePromptState="ignore";var MF,OF=[],QF={lang:"",iconsize:"",bkgd_color:"#FFF",bkgd_url:"",img_save:"embed",save_notice_done:!1,export_notice_done:!1},DF=["ext-connector","ext-eyedropper","ext-grid","ext-imagelib","ext-markers","ext-overview_window","ext-panning","ext-polygon","ext-shapes","ext-star","ext-storage"],jF={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,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},HF=IF.uiStrings={},GF={},VF=!1,zF=!1,KF=!1,qF={},WF={extensions:[],userExtensions:[],allowedOrigins:[]},XF=function loadSvgString(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.noAlert,nr=!1!==MF.setSvgString(er);if(!nr)throw rr||window.alert(HF.notification.errorLoadingSVG),new Error("Error loading SVG")};IF.pref=function(er,tr,rr){return rr||tr?(qF[er]=tr,void(IF.curPrefs=qF)):er in qF?qF[er]:QF[er]},IF.putLocale=TF,IF.readLang=LF,IF.setStrings=NF,IF.loadContentAndPrefs=function(){if(WF.forceStorage||!WF.noStorageOnLoad&&document.cookie.match(/(?:^|;\s*)svgeditstore=(?:prefsAndContent|prefsOnly)/)){if(IF.storage&&(WF.forceStorage||!WF.noStorageOnLoad&&document.cookie.match(/(?:^|;\s*)svgeditstore=prefsAndContent/))){var er="svgedit-"+WF.canvasName,tr=IF.storage.getItem(er);tr&&IF.loadFromString(tr)}Object.keys(QF).forEach((function(er){var tr="svg-edit-"+er;if(IF.storage){var rr=IF.storage.getItem(tr);rr&&(QF[er]=String(rr))}else if(window.widget)QF[er]=window.widget.preferenceForKey(tr);else{var nr=document.cookie.match(new RegExp("(?:^|;\\s*)"+function regexEscape(er){return String(er).replace(/[.\\+*?[^\]$(){}=!<>|:-]/g,"\\$&")}(encodeURIComponent(tr))+"=([^;]+)"));QF[er]=nr?decodeURIComponent(nr[1]):""}}))}},IF.setConfig=function(er,tr){function extendOrAdd(er,tr,rr){er[tr]&&"object"===_typeof(er[tr])?RF.extend(!0,er[tr],rr):er[tr]=rr}tr=tr||{},Object.entries(er).forEach((function(er){var rr=_slicedToArray(er,2),nr=rr[0],ir=rr[1];if({}.hasOwnProperty.call(QF,nr)){if(!1===tr.overwrite&&(WF.preventAllURLConfig||{}.hasOwnProperty.call(qF,nr)))return;!0===tr.allowInitialUserOverride?QF[nr]=ir:IF.pref(nr,ir)}else if(["extensions","userExtensions","allowedOrigins"].includes(nr)){if(!1===tr.overwrite&&(WF.preventAllURLConfig||["allowedOrigins"].includes(nr)||"extensions"===nr&&WF.lockExtensions))return;WF[nr]=WF[nr].concat(ir)}else if({}.hasOwnProperty.call(jF,nr)){if(!1===tr.overwrite&&(WF.preventAllURLConfig||{}.hasOwnProperty.call(WF,nr)))return;if({}.hasOwnProperty.call(WF,nr)){if(!1===tr.overwrite)return;extendOrAdd(WF,nr,ir)}else!0===tr.allowInitialUserOverride?extendOrAdd(jF,nr,ir):jF[nr]&&"object"===_typeof(jF[nr])?(WF[nr]=Array.isArray(jF[nr])?[]:{},RF.extend(!0,WF[nr],ir)):WF[nr]=ir}})),IF.curConfig=WF},IF.setCustomHandlers=function(er){return IF.ready((function(){er.open&&(RF('#tool_open > input[type="file"]').remove(),RF("#tool_open").show(),MF.open=er.open),er.save&&(IF.showSaveWarning=!1,MF.bind("saved",er.save)),er.exportImage&&(zF=er.exportImage,MF.bind("exported",zF)),er.exportPDF&&(KF=er.exportPDF,MF.bind("exportedPDF",KF))}))},IF.randomizeIds=function(er){MF.randomizeIds(er)},IF.init=function(){try{"localStorage"in window&&(IF.storage=localStorage)}catch(er){}var er=_toConsumableArray(document.querySelectorAll("#lang_select option")).map((function(er){return er.value}));function setupCurConfig(){(WF=_objectSpread2(_objectSpread2({},jF),WF)).noDefaultExtensions||(WF.extensions=WF.extensions.concat(DF)),["extensions","allowedOrigins"].forEach((function(er){WF[er]=RF.grep(WF[er],(function(tr,rr){return rr===WF[er].indexOf(tr)}))})),IF.curConfig=WF}!function(){var er=new URL(location),tr=er.search,rr=er.searchParams;if(tr){if(GF=Wd(rr.toString(),!0),["initStroke","initFill"].forEach((function(er){rr.has("".concat(er,"[color]"))&&(GF[er].color=rr.get("".concat(er,"[color]")))})),rr.has("bkgd_color")&&(GF.bkgd_color="#"+rr.get("bkgd_color")),GF.dimensions&&(GF.dimensions=GF.dimensions.split(",")),GF.extensions&&(GF.extensions=GF.extensions.match(/[:/\\]/)?"":GF.extensions.split(",")),["userExtensions","imgPath"].forEach((function(er){GF[er]&&delete GF[er]})),IF.setConfig(GF,{overwrite:!1}),setupCurConfig(),!WF.preventURLContentLoading){var nr=GF.source;if(!nr){var ir=rr.get("source");ir&&ir.startsWith("data:")&&(nr=ir)}if(nr)return void(nr.startsWith("data:")?IF.loadFromDataURI(nr):IF.loadFromString(nr));if(GF.url)return void IF.loadFromURL(GF.url)}GF.noStorageOnLoad&&!WF.forceStorage||IF.loadContentAndPrefs()}else setupCurConfig(),IF.loadContentAndPrefs()}(),function setupCurPrefs(){qF=_objectSpread2(_objectSpread2({},QF),qF),IF.curPrefs=qF}();var rr=IF.setIcon=function(er,tr,rr){var nr="string"==typeof tr?RF.getSvgIcon(tr,!0):tr.clone();nr?RF(er).empty().append(nr):console.log("NOTE: Icon image missing: "+tr)},nr=function(){var rr=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var rr,nr,ir,or,ar,sr;return regeneratorRuntime.wrap((function _callee3$(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,IF.putLocale(IF.pref("lang"),er);case 2:return rr=lr.sent,nr=rr.langParam,ir=rr.langData,lr.next=7,Po(nr,ir);case 7:return or=HF.common,ar=or.ok,sr=or.cancel,jQueryPluginDBox(RF,{ok:ar,cancel:sr}),RF.svgIcons(WF.imgPath+"svg_edit_icons.svg",{w:24,h:24,id_match:!1,no_img:!gh(),fallback_path:WF.imgPath,fallback:{logo:"logo.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",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",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":"new_image","#tool_save div":"save","#tool_export div":"export","#tool_open div":"open","#tool_import div":"import","#tool_docprops > div":"docprops","#tool_editor_prefs > div":"config","#tool_editor_homepage > div":"globe_link","#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_image":"image","#tool_zoom":"zoom","#tool_node_clone":"node_clone","#tool_node_delete":"node_delete","#tool_add_subpath":"add_subpath","#tool_openclose_path":"open_path","#tool_node_link":"link_controls","#tool_reorient":"reorient","#tool_group_elements":"group_elements","#tool_ungroup":"ungroup","#tool_unlink_use":"unlink_use","#tool_posleft":"align_left","#tool_poscenter":"align_center","#tool_posright":"align_right","#tool_postop":"align_top","#tool_posmiddle":"align_middle","#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","#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_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,".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 _callee4(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee4$(nr){for(;;)switch(nr.prev=nr.next){case 0:return RF(".toolbar_button button > svg, .toolbar_button button > img").each((function(){RF(this).parent().prepend(this)})),(er=RF("#tools_left")).length&&(tr=er.offset().top+er.outerHeight()),rr=IF.pref("iconsize"),IF.setIconSize(rr||(RF(window).height()<tr?"s":"m")),RF(".tools_flyout").each((function(){var er=RF("#"+this.id+"_show"),tr=er.attr("data-curopt");if(!er.children("svg, img").length){var rr=RF(tr).children().clone();rr.length&&(rr[0].removeAttribute("style"),er.append(rr))}})),RF("#svg_container")[0].style.visibility="visible",nr.next=9,IF.runCallbacks();case 9:case"end":return nr.stop()}}),_callee4)})))()}}),lr.prev=10,lr.next=13,Promise.all(WF.extensions.map(function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee(er){var rr,ir,or,ar,sr;return regeneratorRuntime.wrap((function _callee$(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.prev=0,lr.next=3,tr.import("./extensions/".concat(encodeURIComponent(er),"/").concat(encodeURIComponent(er),".js"));case 3:return rr=lr.sent,ir=rr.default,or=ir.name,ar=void 0===or?er:or,sr=ir.init,lr.abrupt("return",IF.addExtension(ar,sr&&sr.bind(IF),{$:RF,langParam:nr}));case 8:return lr.prev=8,lr.t0=lr.catch(0),console.error("Extension failed to load: "+er+"; ",lr.t0),lr.abrupt("return",void 0);case 12:case"end":return lr.stop()}}),_callee,null,[[0,8]])})));return function(tr){return er.apply(this,arguments)}}()));case 13:return lr.next=15,Promise.all(WF.userExtensions.map(function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(er){var rr,ir,or,ar;return regeneratorRuntime.wrap((function _callee2$(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.prev=0,sr.next=3,tr.import(encodeURI(er));case 3:return rr=sr.sent,ir=rr.default,or=ir.name,ar=ir.init,sr.abrupt("return",IF.addExtension(or,ar&&ar.bind(IF),{$:RF,langParam:nr}));case 8:return sr.prev=8,sr.t0=sr.catch(0),console.error("Extension failed to load: "+er+"; ",sr.t0),sr.abrupt("return",void 0);case 12:case"end":return sr.stop()}}),_callee2,null,[[0,8]])})));return function(tr){return er.apply(this,arguments)}}()));case 15:MF.bind("extensions_added",(function(er,tr){YF=!0,Bo.setAll(),RF(".flyout_arrow_horiz:empty").each((function(){RF(this).append(RF.getSvgIcon("arrow_right",!0).width(5).height(5))})),"ignore"===IF.storagePromptState&&Rr(!0),JF.forEach((function(er){MF.call("message",er)}))})),MF.call("extensions_added"),lr.next=22;break;case 19:lr.prev=19,lr.t0=lr.catch(10),console.log(lr.t0);case 22:case"end":return lr.stop()}}),_callee3,null,[[10,19]])})));return function extAndLocaleFunc(){return rr.apply(this,arguments)}}(),ir={tool_scale:IF.tool_scale},or=function setFlyoutPositions(){RF(".tools_flyout").each((function(){var er=RF("#"+this.id+"_show"),tr=er.offset(),rr=tr.left,nr=tr.top,ir=er.outerWidth();RF(this).css({left:(rr+ir)*IF.tool_scale,top:nr})}))},ar=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":""}(),sr=IF.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=RF(tr),nr=1;if("number"==typeof er)nr=er;else{nr={s:.75,m:1,l:1.25,xl:1.5}[er]}ir.tool_scale=IF.tool_scale=nr,or();var sr=rr.parents(":hidden");sr.css("visibility","hidden").show(),sr.css("visibility","visible").hide(),IF.pref("iconsize",er),RF("#iconsize").val(er);var lr={"#tools_top":{left:50+RF("#main_button").width(),height:72},"#tools_left":{width:31,top:74},"div#workarea":{left:38,top:74}},cr=RF("#tool_size_rules");if(cr.length?cr.empty():cr=RF('<style id="tool_size_rules"></style>').appendTo("head"),"m"!==er){var ur="";RF.each(lr,(function(tr,rr){tr="#svg_editor "+tr.replace(/,/g,", #svg_editor"),ur+=tr+"{",RF.each(rr,(function(tr,rr){var ir;"number"==typeof rr?ir=rr*nr+"px":(rr[er]||rr.all)&&(ir=rr[er]||rr.all),ur+=tr+":"+ir+";"})),ur+="}"}));var dr="-"+ar.toLowerCase()+"-";ur+=tr+"{"+dr+"transform: scale("+nr+");} #svg_editor div.toolset .toolset {"+dr+"transform: scale(1); margin: 1px !important;} #svg_editor .ui-slider {"+dr+"transform: scale("+1/nr+");}",cr.text(ur)}or()};IF.canvas=MF=new wF(document.getElementById("svgcanvas"),WF);var lr,cr,ur=yh()?"meta+":"ctrl+",dr=MF.pathActions,hr=MF.undoMgr,pr=RF("#workarea"),Ar=RF("#cmenu_canvas"),fr={fill:null,stroke:null},gr=null,mr=WF.imgPath+"logo.png",_r="crosshair",vr="crosshair",yr="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 br=RF("title:first").text(),wr=[],Sr=.1;Sr<1e5;Sr*=10)wr.push(Sr),wr.push(2*Sr),wr.push(5*Sr);var xr=function toggleHighlightLayer(er){var tr,rr=[],nr=MF.getCurrentDrawing().getNumLayers();for(tr=0;tr<nr;tr++)rr[tr]=MF.getCurrentDrawing().getLayerName(tr);er?rr.forEach((function(tr){tr!==er&&MF.getCurrentDrawing().setLayerOpacity(tr,.5)})):rr.forEach((function(er){MF.getCurrentDrawing().setLayerOpacity(er,1)}))},kr=function populateLayers(){MF.clearSelection();for(var er=RF("#layerlist tbody").empty(),tr=RF("#selLayerNames").empty(),rr=MF.getCurrentDrawing(),nr=rr.getCurrentLayerName(),ir=RF.getSvgIcon("eye"),or=MF.getCurrentDrawing().getNumLayers();or--;){var ar=rr.getLayerName(or),sr=RF('<tr class="layer">').toggleClass("layersel",ar===nr),lr=RF('<td class="layervis">').toggleClass("layerinvis",!rr.getLayerVisibility(ar)),cr=RF('<td class="layername">'+ar+"</td>");er.append(sr.append(lr,cr)),tr.append('<option value="'+ar+'">'+ar+"</option>")}if(void 0!==ir){var ur=ir.clone();RF("td.layervis",er).append(ur),RF.resizeSvgIcons({"td.layervis .svg_icon":14})}RF("#layerlist td.layername").mouseup((function(er){RF("#layerlist tr.layer").removeClass("layersel"),RF(this.parentNode).addClass("layersel"),MF.setCurrentLayer(this.textContent),er.preventDefault()})).mouseover((function(){xr(this.textContent)})).mouseout((function(){xr()})),RF("#layerlist td.layervis").click((function(){var er=RF(this.parentNode).prevAll().length,tr=RF("#layerlist tr.layer:eq("+er+") td.layername").text(),rr=RF(this).hasClass("layerinvis");MF.setLayerVisibility(tr,rr),RF(this).toggleClass("layerinvis")}));for(var dr=5-RF("#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=MF.getSvgString(),RF("#save_output_btns").toggle(Boolean(tr)),RF("#tool_source_back").toggle(!tr),RF("#svg_source_textarea").val(Br),RF("#svg_source_editor").fadeIn(),RF("#svg_source_textarea").focus())},Nr=null,Lr=!1,Tr=function operaRepaint(){window.opera&&RF("<p/>").hide().appendTo("body").remove()};function setStrokeOpt(er,tr){var nr=er.id,ir=_slicedToArray(nr.split("_"),2),or=ir[0],ar=ir[1];tr&&MF.setStrokeAttr("stroke-"+or,ar),Tr(),rr("#cur_"+or,nr,20),RF(er).addClass("current").siblings().removeClass("current")}var Pr=IF.toolButtonClick=function(er,tr){if(RF(er).hasClass("disabled"))return!1;if(RF(er).parent().hasClass("tools_flyout"))return!0;return tr||RF(".tools_flyout").fadeOut("normal"),RF("#styleoverrides").text(""),pr.css("cursor","auto"),RF(".tool_button_current").removeClass("tool_button_current").addClass("tool_button"),RF(er).addClass("tool_button_current").removeClass("tool_button"),!0},Fr=function leftPanelClick(er){return!er.disabled&&(FF(".tools_panel se-button[pressed]").forEach((function(er){er.pressed=!1})),UF(er).pressed=!0,!0)},Ur=function clickSelect(){Fr("tool_select")&&(pr.css("cursor","auto"),MF.setMode("select"))},Ir=IF.setImageURL=function(er){er||(er=mr),MF.setImageURL(er),RF("#image_url").val(er),er.startsWith("data:")?(RF("#image_url").hide(),RF("#change_image_url").show()):(MF.embedImage(er,(function(tr){RF("#url_notice").toggle(!tr),mr=er})),RF("#image_url").show(),RF("#change_image_url").hide())};function setBackground(er,tr){IF.pref("bkgd_color",er),IF.pref("bkgd_url",tr,!0),MF.setBackground(er,tr)}function promptImgURL(){return _promptImgURL.apply(this,arguments)}function _promptImgURL(){return(_promptImgURL=_asyncToGenerator(regeneratorRuntime.mark((function _callee17(){var er,tr,rr,nr,ir,or=arguments;return regeneratorRuntime.wrap((function _callee17$(ar){for(;;)switch(ar.prev=ar.next){case 0:return er=or.length>0&&void 0!==or[0]?or[0]:{},tr=er.cancelDeletes,rr=void 0!==tr&&tr,nr=(nr=MF.getHref(Nr)).startsWith("data:")?"":nr,ar.next=5,RF.prompt(HF.notification.enterNewImgURL,nr);case 5:(ir=ar.sent)?Ir(ir):rr&&MF.deleteSelectedElements();case 7:case"end":return ar.stop()}}),_callee17)})))).apply(this,arguments)}function updateRulers(er,tr){var rr,nr;tr||(tr=MF.getZoom()),er||(er=RF("#svgcanvas"));var ir=3e4,or=MF.getContentElem(),ar=ef()[WF.baseUnit];for(rr=0;rr<2;rr++){var sr=0===rr,lr=sr?"x":"y",cr=sr?"width":"height",ur=Number(or.getAttribute(lr)),dr=RF("#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>=ir){vr=Number.parseInt(Ar/ir)+1,(mr=[])[0]=gr;var yr=void 0;for(nr=1;nr<vr;nr++)pr[cr]=ir,yr=pr.cloneNode(!0),pr.parentNode.append(yr),mr[nr]=yr.getContext("2d");yr[cr]=Ar%ir,Ar=ir}pr[cr]=Ar;var br=ar*tr,Sr=50/br,xr=1;for(nr=0;nr<wr.length&&(xr=_r=wr[nr],!(Sr<=_r));nr++);var kr=xr*br;gr.font="9px sans-serif";for(var Cr=ur/br%xr*br,Br=Cr-kr,Er=0;Cr<fr;){Br+=kr;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 Tr=String(xr).split(".")[1].length;Lr=_r.toFixed(Tr)}if(0!==Lr&&1e3!==Lr&&Lr%1e3==0&&(Lr=Lr/1e3+"K"),sr)gr.fillText(Lr,Cr+2,8);else{var Pr=String(Lr).split("");for(nr=0;nr<Pr.length;nr++)gr.fillText(Pr[nr],1,Cr+9+9*nr)}var Fr=kr/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-=ir,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+=kr}gr.strokeStyle="#000",gr.stroke()}}var Rr=IF.updateCanvas=function(er,tr){var rr=MF.getZoom(),nr=pr,ir=RF("#svgcanvas"),or=pr.width(),ar=pr.height(),sr=or,lr=ar,cr=nr[0].scrollLeft+sr/2,ur=nr[0].scrollTop+lr/2,dr=WF.canvas_expansion;or=Math.max(sr,MF.contentW*rr*dr),ar=Math.max(lr,MF.contentH*rr*dr),or===sr&&ar===lr?pr.css("overflow","hidden"):pr.css("overflow","scroll");var hr=ir.height()/2,Ar=ir.width()/2;ir.width(or).height(ar);var fr=ar/2,gr=or/2,mr=MF.updateCanvas(or,ar),_r=gr/Ar,vr=or/2-sr/2,yr=ar/2-lr/2;tr?(tr.x+=mr.x,tr.y+=mr.y):tr={x:gr+(cr-Ar)*_r,y:fr+(ur-hr)*_r};er?MF.contentW>nr.width()?(pr[0].scrollLeft=mr.x-10,pr[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),WF.showRulers&&(updateRulers(ir,rr),pr.scroll()),!0!==GF.storagePrompt&&"ignore"===IF.storagePromptState&&RF("#dialog_box").hide()},Mr=function updateToolButtonState(){var er="none"===MF.getColor("fill"),tr="none"===MF.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){RF(er).hasClass("tool_button_current")&&Ur(),RF(er).addClass("disabled")})):rr.forEach((function(er){RF(er).removeClass("disabled")})),tr&&er?nr.forEach((function(er){RF(er).hasClass("tool_button_current")&&Ur(),RF(er).addClass("disabled")})):nr.forEach((function(er){RF(er).removeClass("disabled")})),MF.runExtensions("toolButtonStateUpdate",{nofill:er,nostroke:tr}),RF(".tools_flyout").each((function(){var er=RF("#"+this.id+"_show"),tr=!1;RF(this).children().each((function(){RF(this).hasClass("disabled")||(tr=!0)})),er.toggleClass("disabled",!tr)})),Tr()},Or=function updateContextPanel(){var er=Nr;ig(er)||er.parentNode||(er=null);var tr=MF.getCurrentDrawing().getCurrentLayerName(),nr=MF.getMode(),ir="px"!==WF.baseUnit?WF.baseUnit:null,or="pathedit"===nr,ar=RF("#cmenu_canvas li");if(RF("#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(),ig(er))Lr?(RF("#multiselected_panel").show(),ar.enableContextMenuItems("#group").disableContextMenuItems("#ungroup")):ar.disableContextMenuItems("#delete,#cut,#copy,#group,#ungroup,#move_front,#move_up,#move_down,#move_back");else{var sr=er.nodeName,lr=MF.getRotationAngle(er);RF("#angle").val(lr);var cr=MF.getBlur(er);if(RF("#blur").val(cr),RF("#blur_slider").slider("option","value",cr),MF.addedNew&&"image"===sr&&"image"===MF.getMode()&&(MF.getHref(er).startsWith("data:")||promptImgURL({cancelDeletes:!0})),or||"pathedit"===nr){var ur=dr.getNodePoint();if(RF("#tool_add_subpath").removeClass("push_button_pressed").addClass("tool_button"),RF("#tool_node_delete").toggleClass("disabled",!dr.canDeleteNodes),rr("#tool_openclose_path",dr.closed_subpath?"open_path":"close_path"),ur){var pr=RF("#seg_type");ir&&(ur.x=rf(ur.x),ur.y=rf(ur.y)),RF("#path_node_x").val(ur.x),RF("#path_node_y").val(ur.y),ur.type?pr.val(ur.type).removeAttr("disabled"):pr.val(4).attr("disabled","disabled")}return}if(RF("#selected_panel").show(),["line","circle","ellipse"].includes(sr))RF("#xy_panel").hide();else{var fr,gr;if(["g","polyline","path"].includes(sr)){var mr=MF.getStrokedBBox([er]);mr&&(fr=mr.x,gr=mr.y)}else fr=er.getAttribute("x"),gr=er.getAttribute("y");ir&&(fr=rf(fr),gr=rf(gr)),RF("#selected_x").val(fr||0),RF("#selected_y").val(gr||0),RF("#xy_panel").show()}var _r=!["image","text","path","g","use"].includes(sr);RF("#tool_topath").toggle(_r),RF("#tool_reorient").toggle("path"===sr),RF("#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=MF.getHref(er),RF("#g_panel").show()),"a"===er.parentNode.tagName&&(RF(er).siblings().length||(RF("#a_panel").show(),br=MF.getHref(er.parentNode))),RF("#tool_make_link, #tool_make_link_multi").toggle(!br),br&&RF("#link_url").val(br),vr[yr]){var wr=vr[yr];if(RF("#"+yr+"_panel").show(),RF.each(wr,(function(tr,rr){var nr=er.getAttribute(rr);if("px"!==WF.baseUnit&&er[rr]){var ir=er[rr].baseVal.value;nr=rf(ir)}RF("#"+yr+"_"+rr).val(nr||0)})),"text"===yr)RF("#text_panel").css("display","inline"),RF("#tool_font_size").css("display","inline"),MF.getItalic()?RF("#tool_italic").addClass("push_button_pressed").removeClass("tool_button"):RF("#tool_italic").removeClass("push_button_pressed").addClass("tool_button"),MF.getBold()?RF("#tool_bold").addClass("push_button_pressed").removeClass("tool_button"):RF("#tool_bold").removeClass("push_button_pressed").addClass("tool_button"),RF("#font_family").val(er.getAttribute("font-family")),RF("#font_size").val(er.getAttribute("font-size")),RF("#text").val(er.textContent),MF.addedNew&&setTimeout((function(){RF("#text").focus().select()}),100);else if("image"===yr&&"image"===MF.getMode())Ir(MF.getHref(er));else if("g"===yr||"use"===yr){RF("#container_panel").show();var Sr=MF.getTitle(),xr=RF("#g_title")[0];xr.value=Sr,function setInputWidth(er){var tr=Math.min(Math.max(12+6*er.value.length,50),300);RF(er).width(tr)}(xr),RF("#g_title").prop("disabled","use"===yr)}}ar[("g"===yr?"en":"dis")+"ableContextMenuItems"]("#ungroup"),ar[("g"!==yr&&Lr?"en":"dis")+"ableContextMenuItems"]("#group")}UF("tool_undo").disabled=0===hr.getUndoStackSize(),UF("tool_redo").disabled=0===hr.getRedoStackSize(),MF.addedNew=!1,er&&!or||Lr?(RF("#selLayerNames").removeAttr("disabled").val(tr),Ar.enableContextMenuItems("#delete,#cut,#copy,#move_front,#move_up,#move_down,#move_back")):RF("#selLayerNames").attr("disabled","disabled")},Qr=function updateWireFrame(){if(!ho){var er="\n #workarea.wireframe #svgcontent * {\n stroke-width: ".concat(1/MF.getZoom(),"px;\n }\n ");RF("#wireframe_rules").text(pr.hasClass("wireframe")?er:"")}},Dr="",jr=function updateTitle(er){er=er||MF.getDocumentTitle();var tr=br+(er?": "+er:"");RF("title:first").text(tr)};var Hr=function zoomDone(){Qr()},Gr=MF.zoomChanged=function(er,tr,rr){var nr=pr,ir=MF.setBBoxZoom(tr,nr.width()-15,nr.height()-15);if(ir){var or=ir.zoom,ar=ir.bbox;or<.001?Vr({value:.1}):(RF("#zoom").val((100*or).toFixed(1)),rr?Rr():Rr(!1,{x:ar.x*or+ar.width*or/2,y:ar.y*or+ar.height*or/2}),"zoom"===MF.getMode()&&ar.width&&Ur(),Hr())}},Vr=function changeZoom(er){var tr=er.value/100;if(tr<.001)er.value=.1;else{var rr=MF.getZoom(),nr=pr;Gr(window,{width:0,height:0,x:(nr[0].scrollLeft+nr.width()/2)/rr,y:(nr[0].scrollTop+nr.height()/2)/rr,zoom:tr},!0)}};RF("#cur_context_panel").delegate("a","click",(function(){var er=RF(this);return er.attr("data-root")?MF.leaveContext():MF.setContext(er.text()),MF.clearSelection(),!1}));var zr=function prepPaints(){fr.fill.prep(),fr.stroke.prep()},Kr={},qr=function setFlyoutTitles(){RF(".tools_flyout").each((function(){var er=RF("#"+this.id+"_show");if(!er.data("isLibrary")){var tr=RF(this).children().map((function(){return this.title})).get();er[0].title=tr.join(" / ")}}))},Wr={},Xr=function setupFlyouts(er){RF.each(er,(function(tr,rr){var nr;Wr[tr]||(Wr[tr]=[]),(nr=Wr[tr]).push.apply(nr,_toConsumableArray(rr));var ir,or=RF(tr).children().not(".tool_button_evt_handled"),ar=tr+"_show",sr=RF(ar),lr=!1;or.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})),ir=_slicedToArray(nr,2),or=ir[0],cr=ir[1];Kr[cr.sel]=cr.fn,cr.isDefault&&(lr=or);var ur=function flyoutAction(tr){var rr=cr;if("keydown"===tr.type){var nr=RF(rr.parent+"_show").hasClass("tool_button_current"),ir=RF(rr.parent+"_show").attr("data-curopt");Object.entries(er[cr.parent]).some((function(or){var ar=_slicedToArray(or,2),sr=ar[0],lr=ar[1];return lr.sel===ir&&(tr.shiftKey&&nr?(sr=Number.parseInt(sr),rr=Wr[cr.parent][sr+1]||er[cr.parent][0]):rr=lr,!0)}))}if(RF(this).hasClass("disabled"))return!1;Pr(ar)&&rr.fn();var or=rr.icon?RF.getSvgIcon(rr.icon,!0):RF(rr.sel).children().eq(0).clone();return or[0].setAttribute("width",sr.width()),or[0].setAttribute("height",sr.height()),sr.children(":not(.flyout_arrow_horiz)").remove(),sr.append(or).attr("data-curopt",rr.sel),!0};return RF(this).mouseup(ur),cr.key&&RF(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=RF(tr),nr=RF(ar).position().left+34,or=-1*rr.width(),lr=rr.data("shown_popop")?200:0;return ir=setTimeout((function(){sr.data("isLibrary")?rr.css("left",nr).show():rr.css("left",or).show().animate({left:nr},150),rr.data("shown_popop",!0)}),lr),er.preventDefault(),!0})).mouseup((function(er){clearTimeout(ir);var tr=RF(this).attr("data-curopt");sr.data("isLibrary")&&RF(ar.replace("_show","")).is(":visible")?Pr(ar,!0):Pr(ar)&&Kr[tr]&&Kr[tr]()}))})),qr(),or()},Yr=function makeFlyoutHolder(er,tr){return RF("<div>",{class:"tools_flyout",id:er}).appendTo("#svg_editor").append(tr)},Jr=function addAltDropDown(er,tr,nr,ir){var or=RF(er),ar=ir.dropUp,sr=RF(tr);ar&&RF(er).addClass("dropup"),sr.find("li").bind("mouseup",(function(){ir.seticon&&(rr("#cur_"+or[0].id,RF(this).children()),RF(this).addClass("current").siblings().removeClass("current"));for(var er=arguments.length,tr=new Array(er),ar=0;ar<er;ar++)tr[ar]=arguments[ar];nr.apply.apply(nr,[this].concat(tr))}));var lr=!1;RF(window).mouseup((function(er){lr||(or.removeClass("down"),sr.hide(),sr.css({top:0,left:0})),lr=!1})),or.bind("mousedown",(function(){var er=or.offset();ar?(er.top-=sr.height(),er.left+=8):er.top+=or.height(),sr.offset(er),or.hasClass("down")?(sr.hide(),sr.css({top:0,left:0})):(sr.show(),lr=!0),or.toggleClass("down")})).hover((function(){lr=!0})).mouseout((function(){lr=!1})),ir.multiclick&&sr.mousedown((function(){lr=!0}))},$r=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee5(er,tr){var rr,nr,ir,or,ar,cr,ur,dr,hr,pr,Ar;return regeneratorRuntime.wrap((function _callee5$(er){for(;;)switch(er.prev=er.next){case 0:if(or=function _prepResize(){lr&&(clearTimeout(lr),lr=null),nr||(lr=setTimeout((function(){nr=!0,sr(IF.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(!IF.langChanged){er.next=10;break}return ir=IF.pref("lang"),er.next=10,tr.langReady({lang:ir});case 10:if(ar=function runCallback(){tr.callback&&!rr&&(rr=!0,tr.callback.call(IF))},cr=[],tr.context_tools&&RF.each(tr.context_tools,(function(er,tr){var rr,nr=tr.container_id?' id="'+tr.container_id+'"':"",ir=RF("#"+tr.panel);switch(ir.length||(ir=RF("<div>",{id:tr.panel}).appendTo("#tools_top")),tr.type){case"tool_button":rr='<div class="tool_button">'+tr.id+"</div>";var or=RF(rr).appendTo(ir);tr.events&&RF.each(tr.events,(function(er,tr){RF(or).bind(er,tr)}));break;case"select":rr="<label"+nr+'><select id="'+tr.id+'">',RF.each(tr.options,(function(er,nr){var ir=er===tr.defval?" selected":"";rr+='<option value="'+er+'"'+ir+">"+nr+"</option>"}));var ar=RF(rr+="</select></label>").appendTo(ir).find("select");RF.each(tr.events,(function(er,tr){RF(ar).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=RF('<ul id="'+tr.id+'_opts"></ul>').appendTo("#option_lists");tr.colnum&&sr.addClass("optcols"+tr.colnum),RF(rr).appendTo(ir).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=RF(rr).appendTo(ir).find("input");tr.spindata&&lr.SpinButton(tr.spindata),tr.events&&RF.each(tr.events,(function(er,tr){lr.bind(er,tr)}))}})),ur=tr.svgicons,!tr.buttons){er.next=20;break}if(dr={},hr={},pr={},Ar={},RF.each(tr.buttons,(function(er,tr){for(var rr,nr,ir,or,ar,sr,lr,cr=tr.id,fr=er;RF("#"+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=RF('<img src="'+tr.icon+(tr.title?'" alt="'+tr.title:"")+'">');switch(tr.type){case"mode_flyout":case"mode":nr="tool_button",ir="#tools_left";break;case"context":nr="tool_button",ir="#"+tr.panel,RF(ir).length||RF("<div>",{id:tr.panel}).appendTo("#tools_top");break;case"app_menu":nr="",ir="#main_menu ul"}var mr,_r=RF(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"),RF("#"+tr.list+"_opts").append(_r),tr.isDefault){RF("#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;or=(lr=RF(br.button)).parent(),lr.parent().hasClass("tools_flyout")||(yr=lr[0].id.replace("tool_","tools_"),ar=lr.clone().attr("id",yr+"_show").append(RF("<div>",{class:"flyout_arrow_horiz"})),lr.before(ar),or=Yr(yr,lr)),sr=Bo.getButtonData(br.button),br.isDefault&&(pr["#"+yr+"_show"]=tr.id);var wr=Ar["#"+or[0].id]=[{sel:"#"+cr,fn:tr.events.click,icon:tr.id,key:tr.key,isDefault:Boolean(tr.includeWith&&tr.includeWith.isDefault)},sr],Sr="position"in br?br.position:"last",xr=or.children().length;!isNaN(Sr)&&Sr>=0&&Sr<xr?or.children().eq(Sr).before(_r):(or.append(_r),wr.reverse())}}else"position"in tr?RF(ir).children().eq(tr.position).length?RF(ir).children().eq(tr.position).before(_r):RF(ir).children().last().after(_r):_r.appendTo(ir),"mode_flyout"===tr.type?(or=(lr=RF(_r)).parent(),lr.parent().hasClass("tools_flyout")||(mr=lr[0].id.replace("tool_","tools_"),ar=lr.clone().attr("id",mr+"_show").append(RF("<div>",{class:"flyout_arrow_horiz"})),lr.before(ar),(or=Yr(mr,lr)).data("isLibrary",!0),ar.data("isLibrary",!0)),pr["#"+mr+"_show"]=tr.id,Ar["#"+or[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||RF.each(tr.events,(function(er,rr){"click"===er&&"mode"===tr.type?(bh()&&"click"===er&&(er="mousedown"),tr.includeWith?_r.bind(er,rr):_r.bind(er,(function(){Pr(_r)&&rr()})),tr.key&&(RF(document).bind("keydown",tr.key,rr),tr.title&&_r.attr("title",tr.title+" ["+tr.key+"]"))):_r.bind(er,rr)})),Xr(Ar)})),RF.each(cr,(function(){Jr(this.elem,this.list,this.callback,{seticon:!0})})),!ur){er.next=20;break}return er.abrupt("return",new Promise((function(er,tr){RF.svgIcons("".concat(WF.imgPath).concat(ur),{w:24,h:24,id_match:!1,no_img:!gh(),fallback:dr,placement:pr,callback:function callback(tr){"m"!==IF.pref("iconsize")&&or(),ar(),er()}})})));case 20:return er.abrupt("return",ar());case 21:case"end":return er.stop()}}),_callee5)})));return function extAdded(tr,rr){return er.apply(this,arguments)}}();MF.bind("selected",(function selectedChanged(er,tr){var rr=MF.getMode();"select"===rr&&Ur();var nr="pathedit"===rr;Nr=1===tr.length||ig(tr[1])?tr[0]:null,Lr=tr.length>=2&&!ig(tr[1]),ig(Nr)||nr||function updateToolbar(){var er,tr;if(!ig(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 ir=rr[er].getAttribute("stroke-width");0===er?nr=ir:nr!==ir&&(nr=null)}RF("#stroke_width").val(null===nr?"":nr),fr.fill.update(!0),fr.stroke.update(!0);break;default:fr.fill.update(!0),fr.stroke.update(!0),RF("#stroke_width").val(Nr.getAttribute("stroke-width")||1),RF("#stroke_style").val(Nr.getAttribute("stroke-dasharray")||"none");var or=Nr.getAttribute("stroke-linejoin")||"miter";RF("#linejoin_"+or).length&&setStrokeOpt(RF("#linejoin_"+or)[0]),or=Nr.getAttribute("stroke-linecap")||"butt",RF("#linecap_"+or).length&&setStrokeOpt(RF("#linecap_"+or)[0])}if(!ig(Nr)){var ar=100*(Nr.getAttribute("opacity")||1);RF("#group_opacity").val(ar),RF("#opac_slider").slider("option","value",ar),RF("#elem_id").val(Nr.id),RF("#elem_class").val(Nr.getAttribute("class"))}Mr()}(),function togglePathEditMode(er,tr){er?(RF(".tool_button_current").removeClass("tool_button_current").addClass("tool_button"),RF("#tool_select").addClass("tool_button_current").removeClass("tool_button"),Lr=!1,tr.length&&(Nr=tr[0])):setTimeout((function(){}),1e3)}(nr,tr),Or(),MF.runExtensions("selectedChanged",{elems:tr,selectedElement:Nr,multiselected:Lr})})),MF.bind("transition",(function elementTransition(er,tr){var rr=MF.getMode(),nr=tr[0];if(nr){if(!(Lr=tr.length>=2&&!ig(tr[1])))switch(rr){case"rotate":var ir=MF.getRotationAngle(nr);RF("#angle").val(ir),RF("#tool_reorient").toggleClass("disabled",0===ir)}MF.runExtensions("elementTransition",{elems:tr})}})),MF.bind("changed",(function elementChanged(er,tr){var rr=MF.getMode();"select"===rr&&Ur(),tr.forEach((function(er){var tr=er&&"svg"===er.tagName;tr||function isLayer(er){return er&&"g"===er.tagName&&xP.CLASS_REGEX.test(er.getAttribute("class"))}(er)?(kr(),tr&&Rr()):er&&Nr&&ig(Nr.parentNode)&&(Nr=er)})),IF.showSaveWarning=!0,Or(),Nr&&"select"===rr&&(fr.fill.update(),fr.stroke.update()),MF.runExtensions("elementChanged",{elems:tr})})),MF.bind("saved",(function saveHandler(er,tr){if(IF.showSaveWarning=!1,tr='<?xml version="1.0"?>\n'+tr,_h())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=IF.pref("save_notice_done");if("all"!==nr){var ir=HF.notification.saveFromBrowser.replace("%s","SVG");mh()?tr.includes("<defs")?(ir+="\n\n"+HF.notification.defsFailOnSave,IF.pref("save_notice_done","all"),nr="all"):IF.pref("save_notice_done","part"):IF.pref("save_notice_done","all"),"part"!==nr&&RF.alert(ir)}}})),MF.bind("exported",(function exportHandler(er,tr){var rr=tr.issues,nr=tr.exportWindowName;if((gr=window.open(Ff||"",nr))&&!gr.closed){if(gr.location.href=tr.bloburl||tr.datauri,"all"!==IF.pref("export_notice_done")){var ir=HF.notification.saveFromBrowser.replace("%s",tr.type);if(rr.length){var or="\n • ";ir+="\n\n"+HF.notification.noteTheseIssues+or+rr.join(or)}IF.pref("export_notice_done","all"),gr.alert(ir)}}else RF.alert(HF.notification.popupWindowBlocked)})),MF.bind("exportedPDF",(function(er,tr){if(tr.output){var rr=tr.exportWindowName;rr&&(gr=window.open("",rr)),gr&&!gr.closed?gr.location.href=tr.output:RF.alert(HF.notification.popupWindowBlocked)}})),MF.bind("zoomed",Gr),MF.bind("zoomDone",Hr),MF.bind("updateCanvas",(function(er,tr){var rr=tr.center,nr=tr.newCtr;Rr(rr,nr)})),MF.bind("contextset",(function contextChanged(er,tr){var rr="";if(tr){var nr="";rr='<a href="#" data-root="y">'+MF.getCurrentDrawing().getCurrentLayerName()+"</a>",RF(tr).parentsUntil("#svgcontent > g").andSelf().each((function(){this.id&&(nr+=" > "+this.id,rr+=this!==tr?' > <a href="#">'.concat(this.id,"</a>"):" > ".concat(this.id))})),Dr=nr}else Dr=null;RF("#cur_context_panel").toggle(Boolean(tr)).html(rr),jr()})),MF.bind("extension_added",$r),MF.textActions.setInputElem(RF("#text")[0]);var Zr='<div class="palette_item" data-rgb="none"></div>';RF.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){Zr+='<div class="palette_item" style="background-color: '+tr+';" data-rgb="'+tr+'"></div>'})),RF("#palette").append(Zr);Zr="",RF.each(["#FFF","#888","#000","chessboard"],(function(er,tr){Zr+="chessboard"===tr?'<div class="color_block" data-bgcolor="'.concat(tr,'" style="background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjGgq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"></div>'):'<div class="color_block" data-bgcolor="'.concat(tr,'" style="background-color:').concat(tr,';"></div>')})),RF("#bg_blocks").append(Zr);var Tn=RF("#bg_blocks div"),Un="cur_background";Tn.each((function(){RF(this).click((function(){Tn.removeClass(Un),RF(this).addClass(Un)}))})),setBackground(IF.pref("bkgd_color"),IF.pref("bkgd_url")),RF("#image_save_opts input").val([IF.pref("img_save")]);var Qn=function changeOpacity(er,tr){ig(tr)&&(tr=er.value),RF("#group_opacity").val(tr),er&&er.handle||RF("#opac_slider").slider("option","value",tr),MF.setOpacity(tr/100)},Dn=function changeBlur(er,tr,rr){ig(tr)&&(tr=er.value),RF("#blur").val(tr);var nr=!1;er&&er.handle||(RF("#blur_slider").slider("option","value",tr),nr=!0),rr?MF.setBlurNoUndo(tr):MF.setBlur(tr,nr)};RF("#stroke_style").change((function(){MF.setStrokeAttr("stroke-dasharray",RF(this).val()),Tr()})),RF("#stroke_linejoin").change((function(){MF.setStrokeAttr("stroke-linejoin",RF(this).val()),Tr()})),RF("select").change((function(){RF(this).blur()}));var Hn,Gn,Vn,zn,Kn,Wn=!1;RF("#selLayerNames").change(_asyncToGenerator(regeneratorRuntime.mark((function _callee6(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee6$(nr){for(;;)switch(nr.prev=nr.next){case 0:if(er=this.options[this.selectedIndex].value,tr=HF.notification.QmoveElemsToLayer.replace("%s",er),rr=function moveToLayer(tr){tr&&(Wn=!0,MF.moveSelectedToLayer(er),MF.clearSelection(),kr())},!er){nr.next=14;break}if(!Wn){nr.next=8;break}rr(!0),nr.next=14;break;case 8:return nr.next=10,RF.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()}}),_callee6,this)})))),RF("#font_family").change((function(){MF.setFontFamily(this.value)})),RF("#seg_type").change((function(){MF.setSegType(RF(this).val())})),RF("#text").bind("keyup input",(function(){MF.setTextContent(this.value)})),RF("#image_url").change((function(){Ir(this.value)})),RF("#link_url").change((function(){this.value.length?MF.setLinkURL(this.value):MF.removeHyperlink()})),RF("#g_title").change((function(){MF.setGroupTitle(this.value)})),RF(".attr_changer").change((function(){var er=this.getAttribute("data-attr"),tr=this.value;if(!af(er,tr,Nr))return this.value=Nr.getAttribute(er),RF.alert(HF.notification.invalidAttrValGiven),!1;if("id"!==er&&"class"!==er)if(isNaN(tr))tr=MF.convertToNum(er,tr);else if("px"!==WF.baseUnit){var rr=ef();(Nr[er]||"pathedit"===MF.getMode()||"x"===er||"y"===er)&&(tr*=rr[WF.baseUnit])}if("id"===er){var nr=Nr;MF.clearSelection(),nr.id=tr,MF.addToSelection([nr],!0)}else MF.changeSelectedAttribute(er,tr);return this.blur(),!0})),RF("#palette").mouseover((function(){var er=RF('<input type="hidden">');RF(this).append(er),er.focus().remove()})),RF(".palette_item").mousedown((function(er){var tr,rr=er.shiftKey||2===er.button?"stroke":"fill",nr=RF(this).data("rgb");"none"===nr||"transparent"===nr||"initial"===nr?(nr="none",tr=new RF.jGraduate.Paint):tr=new RF.jGraduate.Paint({alpha:100,solidColor:nr.substr(1)}),fr[rr].setPaint(tr),MF.setColor(rr,nr),"none"!==nr&&1!==MF.getPaintOpacity(rr)&&MF.setPaintOpacity(rr,1),Mr()})).bind("contextmenu",(function(er){er.preventDefault()})),RF("#toggle_stroke_tools").on("click",(function(){RF("#tools_bottom").toggleClass("expanded")})),Hn=pr[0],Gn=null,Vn=null,zn=!1,Kn=!1,RF("#svgcanvas").bind("mousemove mouseup",(function(er){return!1===zn||(Hn.scrollLeft-=er.clientX-Gn,Hn.scrollTop-=er.clientY-Vn,Gn=er.clientX,Vn=er.clientY,"mouseup"===er.type&&(zn=!1),!1)})).mousedown((function(er){return 1!==er.button&&!0!==Kn||(zn=!0,Gn=er.clientX,Vn=er.clientY,!1)})),RF(window).mouseup((function(){zn=!1})),RF(document).bind("keydown","space",(function(er){MF.spaceKey=Kn=!0,er.preventDefault()})).bind("keyup","space",(function(er){er.preventDefault(),MF.spaceKey=Kn=!1})).bind("keydown","shift",(function(er){"zoom"===MF.getMode()&&pr.css("cursor",vr)})).bind("keyup","shift",(function(er){"zoom"===MF.getMode()&&pr.css("cursor",_r)})),IF.setPanning=function(er){MF.spaceKey=Kn=er},function(){var er=RF("#main_icon"),tr=RF("#main_icon span"),rr=RF("#main_menu"),nr=!1,ir=0,or=!0,ar=!1;RF(window).mouseup((function(tr){nr||(er.removeClass("buttondown"),"INPUT"!==tr.target.tagName?rr.fadeOut(200):ar||(ar=!0,RF(tr.target).click((function(){rr.css("margin-left","-9999px").show()})))),nr=!1})).mousedown((function(er){RF(er.target).closest("div.tools_flyout, .contextMenu").length||RF(".tools_flyout:visible,.contextMenu").fadeOut(250)})),tr.bind("mousedown",(function(){er.hasClass("buttondown")?rr.fadeOut(200):(rr.css("margin-left",0).show(),ir||(ir=rr.height()),rr.css("height",0).animate({height:ir},200),nr=!0),er.toggleClass("buttondown buttonup")})).hover((function(){nr=!0})).mouseout((function(){nr=!1}));var sr=RF("#main_menu li");sr.mouseover((function(){or="rgba(0, 0, 0, 0)"===RF(this).css("background-color"),sr.unbind("mouseover"),or&&sr.mouseover((function(){this.style.backgroundColor="#FFC"})).mouseout((function(){return this.style.backgroundColor="transparent",!0}))}))}(),IF.addDropDown=function(er,tr,rr){if(RF(er).length){var nr=RF(er).find("button"),ir=RF(er).find("ul").attr("id",RF(er)[0].id+"-list");rr?RF(er).addClass("dropup"):RF("#option_lists").append(ir),ir.find("li").bind("mouseup",tr);var or=!1;RF(window).mouseup((function(er){or||(nr.removeClass("down"),ir.hide()),or=!1})),nr.bind("mousedown",(function(){if(nr.hasClass("down"))ir.hide();else{if(!rr){var tr=RF(er).position();ir.css({top:tr.top+24,left:tr.left-10})}ir.show(),or=!0}nr.toggleClass("down")})).hover((function(){or=!0})).mouseout((function(){or=!1}))}},IF.addDropDown("#font_family_dropdown",(function(){RF("#font_family").val(RF(this).text()).change()})),IF.addDropDown("#opacity_dropdown",(function(){if(!RF(this).find("div").length){var er=Number.parseInt(RF(this).text().split("%")[0]);Qn(!1,er)}}),!0),RF("#opac_slider").slider({start:function start(){RF("#opacity_dropdown li:not(.special)").hide()},stop:function stop(){RF("#opacity_dropdown li").show(),RF(window).mouseup()},slide:function slide(er,tr){Qn(tr)}}),IF.addDropDown("#blur_dropdown",RF.noop);var Xn,Yn,Jn=!1;RF("#blur_slider").slider({max:10,step:.1,stop:function stop(er,tr){Jn=!1,Dn(tr),RF("#blur_dropdown li").show(),RF(window).mouseup()},start:function start(){Jn=!0},slide:function slide(er,tr){Dn(tr,null,Jn)}}),IF.addDropDown("#zoom_dropdown",(function(){var er=RF(this),tr=er.data("val");tr?Gr(window,tr):Vr({value:Number.parseFloat(er.text())})}),!0),Jr("#stroke_linecap","#linecap_opts",(function(){setStrokeOpt(this,!0)}),{dropUp:!0}),Jr("#stroke_linejoin","#linejoin_opts",(function(){setStrokeOpt(this,!0)}),{dropUp:!0}),Jr("#tool_position","#position_opts",(function(){var er=this.id.replace("tool_pos","").charAt(0);MF.alignSelectedElements(er,"page")}),{multiclick:!0}),Yn=function unfocus(){RF(Xn).blur()},RF("#svg_editor").find("button, select, input:not(#text)").focus((function(){Xn=this,yr="toolbars",pr.mousedown(Yn)})).blur((function(){yr="canvas",pr.unbind("mousedown",Yn),"textedit"===MF.getMode()&&RF("#text").focus()}));var $n,Zn=function clickFHPath(){Fr("tool_fhpath")&&MF.setMode("fhpath")},ei=function clickLine(){Pr("#tool_line")&&MF.setMode("line")},ti=function clickSquare(){Pr("#tool_square")&&MF.setMode("square")},ri=function clickRect(){Pr("#tool_rect")&&MF.setMode("rect")},ni=function clickFHRect(){Pr("#tool_fhrect")&&MF.setMode("fhrect")},ii=function clickCircle(){Pr("#tool_circle")&&MF.setMode("circle")},oi=function clickEllipse(){Pr("#tool_ellipse")&&MF.setMode("ellipse")},ai=function clickFHEllipse(){Pr("#tool_fhellipse")&&MF.setMode("fhellipse")},si=function clickImage(){Fr("tool_image")&&MF.setMode("image")},li=function clickZoom(){Fr("tool_zoom")&&(MF.setMode("zoom"),pr.css("cursor",_r))},ui=function zoomImage(er){var tr=MF.getResolution();er=er?tr.zoom*er:1,RF("#zoom").val(100*er),MF.setZoom(er),Hr(),Rr(!0)},di=function dblclickZoom(){Pr("#tool_zoom")&&(ui(),Ur())},hi=function clickText(){Fr("tool_text")&&MF.setMode("text")},pi=function clickPath(){Fr("tool_path")&&MF.setMode("path")},Ai=function deleteSelected(){ig(Nr)&&!Lr||MF.deleteSelectedElements()},fi=function cutSelected(){ig(Nr)&&!Lr||MF.cutSelectedElements()},gi=function copySelected(){ig(Nr)&&!Lr||MF.copySelectedElements()},mi=function pasteInCenter(){var er=MF.getZoom(),tr=(pr[0].scrollLeft+pr.width()/2)/er-MF.contentW,rr=(pr[0].scrollTop+pr.height()/2)/er-MF.contentH;MF.pasteElements("point",tr,rr)},_i=function moveToTopSelected(){ig(Nr)||MF.moveToTopSelectedElement()},vi=function moveToBottomSelected(){ig(Nr)||MF.moveToBottomSelectedElement()},yi=function moveUpDownSelected(er){ig(Nr)||MF.moveUpDownSelected(er)},wi=function convertToPath(){ig(Nr)||MF.convertToPath()},Si=function reorientPath(){ig(Nr)||dr.reorient()},xi=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee7(){var er;return regeneratorRuntime.wrap((function _callee7$(tr){for(;;)switch(tr.prev=tr.next){case 0:if(ig(Nr)&&!Lr){tr.next=5;break}return tr.next=3,RF.prompt(HF.notification.enterNewLinkURL,"http://");case 3:(er=tr.sent)&&MF.makeHyperlink(er);case 5:case"end":return tr.stop()}}),_callee7)})));return function makeHyperlink(){return er.apply(this,arguments)}}(),ki=function moveSelected(er,tr){if(!ig(Nr)||Lr){if(WF.gridSnapping){var rr=MF.getZoom()*WF.snappingStep;er*=rr,tr*=rr}MF.moveSelectedElements(er,tr)}},Ci=function linkControlPoints(){RF("#tool_node_link").toggleClass("push_button_pressed tool_button");var er=RF("#tool_node_link").hasClass("push_button_pressed");dr.linkControlPoints(er)},Bi=function clonePathNode(){dr.getNodePoint()&&dr.clonePathNode()},Ei=function deletePathNode(){dr.getNodePoint()&&dr.deletePathNode()},Ni=function addSubPath(){var er=RF("#tool_add_subpath"),tr=!er.hasClass("push_button_pressed");er.toggleClass("push_button_pressed tool_button"),dr.addSubPath(tr)},Li=function opencloseSubPath(){dr.opencloseSubPath()},Ti=function selectNext(){MF.cycleElement(1)},Pi=function selectPrev(){MF.cycleElement(0)},Fi=function rotateSelected(er,tr){if(!ig(Nr)&&!Lr){er||(tr*=-1);var rr=Number.parseFloat(RF("#angle").val())+tr;MF.setRotationAngle(rr),Or()}},Ui=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee8(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee8$(nr){for(;;)switch(nr.prev=nr.next){case 0:return er=_slicedToArray(WF.dimensions,2),tr=er[0],rr=er[1],nr.next=3,RF.confirm(HF.notification.QwantToClear);case 3:if(nr.sent){nr.next=6;break}return nr.abrupt("return");case 6:Ur(),MF.clear(),MF.setResolution(tr,rr),Rr(!0),ui(),kr(),Or(),zr(),MF.runExtensions("onNewDocument");case 15:case"end":return nr.stop()}}),_callee8)})));return function clickClear(){return er.apply(this,arguments)}}(),Ii=function clickBold(){return MF.setBold(!MF.getBold()),Or(),!1},Ri=function clickItalic(){return MF.setItalic(!MF.getItalic()),Or(),!1},Mi=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee9(){var er,tr,rr,nr,ir;return regeneratorRuntime.wrap((function _callee9$(or){for(;;)switch(or.prev=or.next){case 0:return rr=function _openExportWindow(){var er,rr,nr=HF.notification.loadingImage;if("new"===WF.exportWindowType&&IF.exportWindowCt++,tr=WF.canvasName+IF.exportWindowCt,$n)rr=$n;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 ir=new Blob([er],{type:"text/html"});rr=URL.createObjectURL(ir)}else rr="data:text/html;base64;charset=utf-8,"+encode64(er);$n=rr}gr=window.open(rr,tr)},or.next=3,RF.select("Select an image type for export: ",["PNG","JPEG","BMP","WEBP","PDF"],(function(){var er=RF(this);"JPEG"===er.val()||"WEBP"===er.val()?RF("#image-slider").length||RF("<div><label>".concat(HF.ui.quality,'\n <input id="image-slider"\n type="range" min="1" max="100" value="92" />\n </label></div>')).appendTo(er.parent()):RF("#image-slider").parent().remove()}));case 3:if(er=or.sent){or.next=6;break}return or.abrupt("return");case 6:if(nr=vh(),"PDF"!==er){or.next=12;break}KF||nr||rr(),MF.exportPDF(tr),or.next=16;break;case 12:return zF||rr(),ir=Number.parseInt(RF("#image-slider").val())/100,or.next=16,MF.rasterExport(er,ir,tr);case 16:case"end":return or.stop()}}),_callee9)})));return function clickExport(){return er.apply(this,arguments)}}(),Oi=function clickOpen(){MF.open()},Qi=function clickImport(){},Di=function clickUndo(){hr.getUndoStackSize()>0&&(hr.undo(),kr())},ji=function clickRedo(){hr.getRedoStackSize()>0&&(hr.redo(),kr())},Hi=function clickGroup(){Lr?MF.groupSelectedElements():Nr&&MF.ungroupSelectedElement()},Gi=function clickClone(){MF.cloneSelectedElements(20,20)},Vi=function clickAlign(er){MF.alignSelectedElements(er,RF("#align_relative_to").val())},zi=function clickWireframe(){if(UF("tool_wireframe").pressed=!UF("tool_wireframe").pressed,pr.toggleClass("wireframe"),!ho){var er=RF("#wireframe_rules");er.length?er.empty():RF('<style id="wireframe_rules"></style>').appendTo("head"),Qr()}};RF("#svg_docprops_container, #svg_prefs_container").draggable({cancel:"button,fieldset",containment:"window"}).css("position","absolute");var Ki,qi,Wi=!1,Xi=!1,Yi=function showDocProperties(){if(!Wi){Wi=!0,RF("#image_save_opts input").val([IF.pref("img_save")]);var er=MF.getResolution();"px"!==WF.baseUnit&&(er.w=rf(er.w)+WF.baseUnit,er.h=rf(er.h)+WF.baseUnit),RF("#canvas_width").val(er.w),RF("#canvas_height").val(er.h),RF("#canvas_title").val(MF.getDocumentTitle()),RF("#svg_docprops").show()}},Ji=function showPreferences(){if(!Xi){Xi=!0,RF("#main_menu").hide();var er=qF.bkgd_color,tr=IF.pref("bkgd_url");Tn.each((function(){var tr=RF(this),rr=tr.data("bgcolor")===er;tr.toggleClass(Un,rr)})),er||Tn.eq(0).addClass(Un),tr&&RF("#canvas_bg_url").val(tr),RF("#grid_snapping_on").prop("checked",WF.gridSnapping),RF("#grid_snapping_step").attr("value",WF.snappingStep),RF("#grid_color").attr("value",WF.gridColor),RF("#svg_prefs").show()}},$i=function openHomePage(){window.open("https://github.com/SVG-Edit/svgedit","_blank")},Zi=function hideSourceEditor(){RF("#svg_source_editor").hide(),Cr=!1,RF("#svg_source_textarea").blur()},eo=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee10(){var er;return regeneratorRuntime.wrap((function _callee10$(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(){MF.clearSelection(),Zi(),ui(),kr(),jr(),zr()},MF.setSvgString(RF("#svg_source_textarea").val())){tr.next=11;break}return tr.next=6,RF.confirm(HF.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(),Ur();case 13:case"end":return tr.stop()}}),_callee10)})));return function saveSourceEditor(){return er.apply(this,arguments)}}(),to=function hideDocProperties(){RF("#svg_docprops").hide(),RF("#canvas_width,#canvas_height").removeAttr("disabled"),RF("#resolution")[0].selectedIndex=0,RF("#image_save_opts input").val([IF.pref("img_save")]),Wi=!1},ro=function hidePreferences(){RF("#svg_prefs").hide(),Xi=!1},no=function saveDocProperties(){var er=RF("#canvas_title").val();jr(er),MF.setDocumentTitle(er);var tr=RF("#canvas_width"),rr=tr.val(),nr=RF("#canvas_height"),ir=nr.val();return"fit"===rr||af("width",rr)?(tr.parent().removeClass("error"),"fit"===ir||af("height",ir)?(nr.parent().removeClass("error"),MF.setResolution(rr,ir)?(IF.pref("img_save",RF("#image_save_opts :checked").val()),Rr(),to(),!0):(RF.alert(HF.notification.noContentToFitTo),!1)):(nr.parent().addClass("error"),RF.alert(HF.notification.invalidAttrValGiven),!1)):(tr.parent().addClass("error"),RF.alert(HF.notification.invalidAttrValGiven),!1)},io=IF.savePreferences=_asyncToGenerator(regeneratorRuntime.mark((function _callee11(){var tr,rr,nr,ir;return regeneratorRuntime.wrap((function _callee11$(or){for(;;)switch(or.prev=or.next){case 0:if(setBackground(RF("#bg_blocks div.cur_background").data("bgcolor")||"#FFF",RF("#canvas_bg_url").val()),!(tr=RF("#lang_select").val())||tr===IF.pref("lang")){or.next=11;break}return or.next=6,IF.putLocale(tr,er);case 6:return rr=or.sent,nr=rr.langParam,ir=rr.langData,or.next=11,Po(nr,ir);case 11:sr(RF("#iconsize").val()),WF.gridSnapping=RF("#grid_snapping_on")[0].checked,WF.snappingStep=RF("#grid_snapping_step").val(),WF.gridColor=RF("#grid_color").val(),WF.showRulers=RF("#show_rulers")[0].checked,RF("#rulers").toggle(WF.showRulers),WF.showRulers&&updateRulers(),WF.baseUnit=RF("#base_unit").val(),MF.setConfig(WF),Rr(),ro();case 22:case"end":return or.stop()}}),_callee11)}))),oo=RF.noop,ao=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee12(){return regeneratorRuntime.wrap((function _callee12$(er){for(;;)switch(er.prev=er.next){case 0:if(RF("#dialog_box").hide(),Cr||Wi||Xi){er.next=4;break}return Dr&&MF.leaveContext(),er.abrupt("return");case 4:if(!Cr){er.next=15;break}if(Br===RF("#svg_source_textarea").val()){er.next=12;break}return er.next=8,RF.confirm(HF.notification.QignoreSourceChanges);case 8:er.sent&&Zi(),er.next=13;break;case 12:Zi();case 13:er.next=16;break;case 15:Wi?to():Xi&&ro();case 16:oo();case 17:case"end":return er.stop()}}),_callee12)})));return function cancelOverlays(){return er.apply(this,arguments)}}(),so={width:RF(window).width(),height:RF(window).height()};_h()&&(oo=function resetScrollPos(){0===pr[0].scrollLeft&&0===pr[0].scrollTop&&(pr[0].scrollLeft=cr.left,pr[0].scrollTop=cr.top)},cr={left:pr[0].scrollLeft,top:pr[0].scrollTop},RF(window).resize(oo),IF.ready((function(){return new Promise((function(er,tr){setTimeout((function(){oo(),er()}),500)}))})),pr.scroll((function(){cr={left:pr[0].scrollLeft,top:pr[0].scrollTop}}))),RF(window).resize((function(er){RF.each(so,(function(er,tr){var rr=RF(window)[er]();pr[0]["scroll"+("width"===er?"Left":"Top")]-=(rr-tr)/2,so[er]=rr})),or()})),pr.scroll((function(){RF("#ruler_x").length&&(RF("#ruler_x")[0].scrollLeft=pr[0].scrollLeft),RF("#ruler_y").length&&(RF("#ruler_y")[0].scrollTop=pr[0].scrollTop)})),RF("#url_notice").click((function(){RF.alert(this.title)})),RF("#change_image_url").click(promptImgURL),Ki="tool_button_current",qi="",RF.each(["clear","open","save","delete","delete_multi","paste","clone","clone_multi","move_top","move_bottom"],(function(er,tr){qi+=(er?",":"")+"#tool_"+tr})),RF(qi).mousedown((function(){RF(this).addClass(Ki)})).bind("mousedown mouseout",(function(){RF(this).removeClass(Ki)}));var lo=function colorPicker(er){var tr="stroke_color"===er.attr("id")?"stroke":"fill",rr="stroke"===tr?HF.ui.pick_stroke_paint_opacity:HF.ui.pick_fill_paint_opacity,nr=er.offset(),ir=fr[tr].paint;RF("#color_picker").draggable({cancel:".jGraduate_tabs, .jGraduate_colPick, .jGraduate_gradPick, .jPicker",containment:"window"}).css(WF.colorPickerCSS||{left:nr.left-140,bottom:40}).jGraduate({images:{clientPath:"./jgraduate/images/"},paint:ir,window:{pickerTitle:rr},newstop:"inverse"},(function(er){ir=new RF.jGraduate.Paint(er),fr[tr].setPaint(ir),MF.setPaint(tr,ir),RF("#color_picker").hide()}),(function(){RF("#color_picker").hide()}))},co=function(){function PaintBox(er,tr){_classCallCheck(this,PaintBox);var rr=WF["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=RF(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 RF.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,ir="none";switch(rr){case"solidColor":ir="none"!==er[rr]?"#"+er[rr]:er[rr];break;case"linearGradient":case"radialGradient":this.grad.remove(),this.grad=this.defs.appendChild(er[rr]),ir="url(#"+(this.grad.id="gradbox_"+this.type)+")"}this.rect.setAttribute("fill",ir),this.rect.setAttribute("opacity",nr),tr&&(MF.setColor(this.type,this._paintColor,!0),MF.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,ir=0,or=rr.length;ir<or;ir++){var ar=rr[ir].getAttribute(tr);if(0===ir)nr=ar;else if(nr!==ar){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&&(MF.setColor(tr,this._paintColor,!0),MF.setPaintOpacity(tr,this._paintOpacity,!0)),this._paintOpacity*=100;var lr=function getPaint(er,tr,rr){var nr={alpha:tr};if(er.startsWith("url(#")){var ir=MF.getRefElem(er);nr[(ir=ir?ir.cloneNode(!0):RF("#"+rr+"_color defs *")[0]).tagName]=ir}else er.startsWith("#")?nr.solidColor=er.substr(1):nr.solidColor="none";return new RF.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 RF.jGraduate.Paint({copy:this.paint});MF.setPaint(this.type,er)}}}]),PaintBox}();co.ctr=0,fr.fill=new co("#fill_color","fill"),fr.stroke=new co("#stroke_color","stroke"),RF("#stroke_width").val(WF.initStroke.width),RF("#group_opacity").val(100*WF.initOpacity);var uo=fr.fill.rect.cloneNode(!1);uo.setAttribute("style","vector-effect:non-scaling-stroke");var ho="non-scaling-stroke"===uo.style.vectorEffect;uo.removeAttribute("style");var po,Ao,fo=fr.fill.rect.ownerDocument.createElementNS(Xd.SVG,"feGaussianBlur");void 0===fo.stdDeviationX&&RF("#tool_blur").hide(),RF(fo).remove(),po="-"+ar.toLowerCase()+"-zoom-",Ao=po+"in",pr.css("cursor",Ao),pr.css("cursor")===Ao&&(_r=Ao,vr=po+"out"),pr.css("cursor","auto"),setTimeout((function(){MF.embedImage("images/logo.png",(function(er){er||(RF("#image_save_opts [value=embed]").attr("disabled","disabled"),RF("#image_save_opts input").val(["ref"]),IF.pref("img_save","ref"),RF("#image_opt_embed").css("color","#666").attr("title",HF.notification.featNotSupported))}))}),1e3),RF("#fill_color, #tool_fill .icon_label").click((function(){lo(RF("#fill_color")),Mr()})),RF("#stroke_color, #tool_stroke .icon_label").click((function(){lo(RF("#stroke_color")),Mr()})),RF("#group_opacityLabel").click((function(){RF("#opacity_dropdown button").mousedown(),RF(window).mouseup()})),RF("#zoomLabel").click((function(){RF("#zoom_dropdown button").mousedown(),RF(window).mouseup()})),RF(".push_button").mousedown((function(){RF(this).hasClass("disabled")||RF(this).addClass("push_button_pressed").removeClass("push_button")})).mouseout((function(){RF(this).removeClass("push_button_pressed").addClass("push_button")})).mouseup((function(){RF(this).removeClass("push_button_pressed").addClass("push_button")}));var go=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee13(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee13$(nr){for(;;)switch(nr.prev=nr.next){case 0:tr=MF.getCurrentDrawing().getNumLayers();do{er=HF.layers.layer+" "+ ++tr}while(MF.getCurrentDrawing().hasLayer(er));return nr.next=4,RF.prompt(HF.notification.enterUniqueLayerName,er);case 4:if(rr=nr.sent){nr.next=7;break}return nr.abrupt("return");case 7:if(!MF.getCurrentDrawing().hasLayer(rr)){nr.next=10;break}return RF.alert(HF.notification.dupeLayerName),nr.abrupt("return");case 10:MF.createLayer(rr),Or(),kr();case 13:case"end":return nr.stop()}}),_callee13)})));return function newLayer(){return er.apply(this,arguments)}}();function deleteLayer(){MF.deleteCurrentLayer()&&(Or(),kr(),RF("#layerlist tr.layer").removeClass("layersel"),RF("#layerlist tr.layer:first").addClass("layersel"))}function _cloneLayer(){return(_cloneLayer=_asyncToGenerator(regeneratorRuntime.mark((function _callee18(){var er,tr;return regeneratorRuntime.wrap((function _callee18$(rr){for(;;)switch(rr.prev=rr.next){case 0:return er=MF.getCurrentDrawing().getCurrentLayerName()+" copy",rr.next=3,RF.prompt(HF.notification.enterUniqueLayerName,er);case 3:if(tr=rr.sent){rr.next=6;break}return rr.abrupt("return");case 6:if(!MF.getCurrentDrawing().hasLayer(tr)){rr.next=9;break}return RF.alert(HF.notification.dupeLayerName),rr.abrupt("return");case 9:MF.cloneLayer(tr),Or(),kr();case 12:case"end":return rr.stop()}}),_callee18)})))).apply(this,arguments)}var mo=function moveLayer(er){var tr=MF.getCurrentDrawing().getNumLayers(),rr=RF("#layerlist tr.layersel").index();(rr>0||rr<tr-1)&&(rr+=er,MF.setCurrentLayerPosition(tr-rr-1),kr())},_o=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee14(){var er,tr;return regeneratorRuntime.wrap((function _callee14$(rr){for(;;)switch(rr.prev=rr.next){case 0:return er=RF("#layerlist tr.layersel td.layername").text(),rr.next=3,RF.prompt(HF.notification.enterNewLayerName,"");case 3:if(tr=rr.sent){rr.next=6;break}return rr.abrupt("return");case 6:if(er!==tr&&!MF.getCurrentDrawing().hasLayer(tr)){rr.next=9;break}return RF.alert(HF.notification.layerHasThatName),rr.abrupt("return");case 9:MF.renameCurrentLayer(tr),kr();case 11:case"end":return rr.stop()}}),_callee14)})));return function layerRename(){return er.apply(this,arguments)}}(),vo=-1,yo=!1,wo=!1,So=function changeSidePanelWidth(er){var tr=RF("#ruler_x");RF("#sidepanels").width("+="+er),RF("#layerpanel").width("+="+er),tr.css("right",Number.parseInt(tr.css("right"))+er),pr.css("right",Number.parseInt(pr.css("right"))+er),MF.runExtensions("workareaResized")},xo=function resizeSidePanel(er){if(wo&&-1!==vo){yo=!0;var tr=vo-er.pageX,rr=RF("#sidepanels").width();rr+tr>300?tr=300-rr:rr+tr<2&&(tr=2-rr),0!==tr&&(vo-=tr,So(tr))}},ko=function toggleSidePanel(er){var tr=window.devicePixelRatio||1,rr=RF("#sidepanels").width();So(((tr<1?rr:rr/tr)>2||er?0:150*(tr<1?1:tr))-rr)};RF("#sidepanel_handle").mousedown((function(er){vo=er.pageX,RF(window).mousemove(xo),wo=!1,setTimeout((function(){wo=!0}),20)})).mouseup((function(er){yo||ko(),vo=-1,yo=!1})),RF(window).mouseup((function(){vo=-1,yo=!1,RF("#svg_editor").unbind("mousemove",xo)})),kr();RF(window).bind("load resize",(function centerCanvas(){pr.css("line-height",pr.height()+"px")})),RF("#resolution").change((function(){var er=RF("#canvas_width,#canvas_height");if(this.selectedIndex)if("content"===this.value)er.val("fit").attr("disabled","disabled");else{var tr=this.value.split("x");RF("#canvas_width").val(tr[0]),RF("#canvas_height").val(tr[1]),er.removeAttr("disabled")}else"fit"===RF("#canvas_width").val()&&er.removeAttr("disabled").val(100)})),RF("input,select").attr("autocomplete","off");var Co=["#tool_source_cancel","#tool_docprops_cancel","#tool_prefs_cancel",".overlay"],Bo=function(){UF("tool_source").addEventListener("click",Er),UF("tool_wireframe").addEventListener("click",zi),UF("tool_undo").addEventListener("click",Di),UF("tool_redo").addEventListener("click",ji),UF("tool_clone").addEventListener("click",Gi),UF("tool_clone_multi").addEventListener("click",Gi),UF("tool_delete").addEventListener("click",Ai),UF("tool_delete_multi").addEventListener("click",Ai),UF("tool_move_top").addEventListener("click",_i),UF("tool_move_bottom").addEventListener("click",vi),UF("tool_topath").addEventListener("click",wi),UF("tool_make_link").addEventListener("click",xi),UF("tool_make_link_multi").addEventListener("click",xi),UF("tool_reorient").addEventListener("click",Si),UF("tool_group_elements").addEventListener("click",Hi),UF("tool_align_left").addEventListener("click",(function(){return Vi("left")})),UF("tool_align_right").addEventListener("click",(function(){return Vi("right")})),UF("tool_align_center").addEventListener("click",(function(){return Vi("center")})),UF("tool_align_top").addEventListener("click",(function(){return Vi("top")})),UF("tool_align_bottom").addEventListener("click",(function(){return Vi("bottom")})),UF("tool_align_middle").addEventListener("click",(function(){return Vi("middle")})),UF("tool_select").addEventListener("click",Ur),UF("tool_fhpath").addEventListener("click",Zn),UF("tool_text").addEventListener("click",hi),UF("tool_image").addEventListener("click",si),UF("tool_zoom").addEventListener("click",li),UF("tool_path").addEventListener("click",pi),UF("layer_new").addEventListener("click",go),UF("layer_delete").addEventListener("click",deleteLayer),UF("layer_up").addEventListener("click",(function(){return mo(-1)})),UF("layer_down").addEventListener("click",(function(){return mo(1)})),UF("layer_rename").addEventListener("click",_o);var er=[{sel:"#tool_line",fn:ei,evt:"click",key:["L",!0],parent:"#tools_line",prepend:!0},{sel:"#tool_rect",fn:ri,evt:"mouseup",key:["R",!0],parent:"#tools_rect",icon:"rect"},{sel:"#tool_square",fn:ti,evt:"mouseup",parent:"#tools_rect",icon:"square"},{sel:"#tool_fhrect",fn:ni,evt:"mouseup",parent:"#tools_rect",icon:"fh_rect"},{sel:"#tool_ellipse",fn:oi,evt:"mouseup",key:["E",!0],parent:"#tools_ellipse",icon:"ellipse"},{sel:"#tool_circle",fn:ii,evt:"mouseup",parent:"#tools_ellipse",icon:"circle"},{sel:"#tool_fhellipse",fn:ai,evt:"mouseup",parent:"#tools_ellipse",icon:"fh_ellipse"},{sel:"#tool_clear",fn:Ui,evt:"mouseup",key:["N",!0]},{sel:"#tool_save",fn:function fn(){Cr?eo():function clickSave(){var er={images:IF.pref("img_save"),round_digits:6};MF.save(er)}()},evt:"mouseup",key:["S",!0]},{sel:"#tool_export",fn:Mi,evt:"mouseup"},{sel:"#tool_open",fn:Oi,evt:"mouseup",key:["O",!0]},{sel:"#tool_import",fn:Qi,evt:"mouseup"},{key:["esc",!1,!1],fn:function fn(){Co.every((function(er){return RF(er+":hidden").length}))&&MF.clearSelection()},hidekey:!0},{sel:Co.join(","),fn:ao,evt:"click",key:["esc",!1,!1],hidekey:!0},{sel:"#tool_source_save",fn:eo,evt:"click"},{sel:"#tool_docprops_save",fn:no,evt:"click"},{sel:"#tool_docprops",fn:Yi,evt:"click"},{sel:"#tool_prefs_save",fn:io,evt:"click"},{sel:"#tool_editor_prefs",fn:Ji,evt:"click"},{sel:"#tool_editor_homepage",fn:$i,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_node_link",fn:Ci,evt:"click"},{sel:"#tool_node_clone",fn:Bi,evt:"click"},{sel:"#tool_node_delete",fn:Ei,evt:"click"},{sel:"#tool_openclose_path",fn:Li,evt:"click"},{sel:"#tool_add_subpath",fn:Ni,evt:"click"},{sel:"#tool_ungroup",fn:Hi,evt:"click"},{sel:"#tool_unlink_use",fn:Hi,evt:"click"},{sel:"#tool_bold",fn:Ii,evt:"mousedown"},{sel:"#tool_italic",fn:Ri,evt:"mousedown"},{sel:"#sidepanel_handle",fn:ko,key:["X"]},{sel:"#copy_save_done",fn:ao,evt:"click"},{key:"ctrl+left",fn:function fn(){Fi(0,1)}},{key:"ctrl+right",fn:function fn(){Fi(1,1)}},{key:"ctrl+shift+left",fn:function fn(){Fi(0,5)}},{key:"ctrl+shift+right",fn:function fn(){Fi(1,5)}},{key:"shift+O",fn:Pi},{key:"shift+P",fn:Ti},{key:[ur+"up",!0],fn:function fn(){ui(2)}},{key:[ur+"down",!0],fn:function fn(){ui(.5)}},{key:[ur+"]",!0],fn:function fn(){yi("Up")}},{key:[ur+"[",!0],fn:function fn(){yi("Down")}},{key:["up",!0],fn:function fn(){ki(0,-1)}},{key:["down",!0],fn:function fn(){ki(0,1)}},{key:["left",!0],fn:function fn(){ki(-1,0)}},{key:["right",!0],fn:function fn(){ki(1,0)}},{key:"shift+up",fn:function fn(){ki(0,-10)}},{key:"shift+down",fn:function fn(){ki(0,10)}},{key:"shift+left",fn:function fn(){ki(-10,0)}},{key:"shift+right",fn:function fn(){ki(10,0)}},{key:["alt+up",!0],fn:function fn(){MF.cloneSelectedElements(0,-1)}},{key:["alt+down",!0],fn:function fn(){MF.cloneSelectedElements(0,1)}},{key:["alt+left",!0],fn:function fn(){MF.cloneSelectedElements(-1,0)}},{key:["alt+right",!0],fn:function fn(){MF.cloneSelectedElements(1,0)}},{key:["alt+shift+up",!0],fn:function fn(){MF.cloneSelectedElements(0,-10)}},{key:["alt+shift+down",!0],fn:function fn(){MF.cloneSelectedElements(0,10)}},{key:["alt+shift+left",!0],fn:function fn(){MF.cloneSelectedElements(-10,0)}},{key:["alt+shift+right",!0],fn:function fn(){MF.cloneSelectedElements(10,0)}},{key:"a",fn:function fn(){MF.selectAllInCurrentLayer()}},{key:ur+"a",fn:function fn(){MF.selectAllInCurrentLayer()}},{key:ur+"z",fn:Di},{key:ur+"shift+z",fn:ji},{key:ur+"y",fn:ji},{key:ur+"x",fn:fi},{key:ur+"c",fn:gi},{key:ur+"v",fn:mi}],tr={"4/Shift+4":"#tools_rect_show","5/Shift+5":"#tools_ellipse_show"};return{setAll:function setAll(){var rr={},nr={};er.forEach((function(er){var ir;if(er.sel){if(null===(ir=PF(er.sel)))return!0;if(er.evt&&(bh()&&"click"===er.evt&&(er.evt="mousedown"),ir.addEventListener(er.evt,er.fn)),er.parent&&RF(er.parent+"_show").length){var or=RF(er.parent);or.length||(or=Yr(er.parent.substr(1))),er.prepend&&(ir.style.margin="initial"),or[er.prepend?"prepend":"append"](ir),Array.isArray(rr[er.parent])||(rr[er.parent]=[]),rr[er.parent].push(er)}}if(er.key){var ar=er.key,sr=!1;Array.isArray(er.key)&&(ar=er.key[0],er.key.length>1&&(sr=er.key[1])),ar=String(ar);var lr=er.fn;if(ar.split("/").forEach((function(er){nr[er]={fn:lr,pd:sr}})),er.sel&&!er.hidekey&&ir.title){var cr="".concat(ir.title.split("[")[0]," (").concat(ar,")");tr[ar]=er.sel,null===ir.closest("#main_menu")&&ir.setAttribute("title",cr)}}return!0})),document.addEventListener("keydown",(function(er){if("BODY"===er.target.nodeName){var tr="".concat(er.metaKey?"meta+":"").concat(er.ctrlKey?"ctrl+":"").concat(er.key.toLowerCase());nr[tr]&&(nr[tr].fn(),nr[tr].pd&&er.preventDefault())}})),Xr(rr),RF(".attr_changer, #image_url").bind("keydown","return",(function(er){RF(this).change(),er.preventDefault()})),RF(window).bind("keydown","tab",(function(er){"canvas"===yr&&(er.preventDefault(),Ti())})).bind("keydown","shift+tab",(function(er){"canvas"===yr&&(er.preventDefault(),Pi())})),RF("#tool_zoom").dblclick(di)},setTitles:function setTitles(){RF.each(tr,(function(er,tr){var rr=RF(tr).parents("#main_menu").length;RF(tr).each((function(){var tr=rr?RF(this).text().split(" [")[0]:this.title.split(" [")[0],nr="";RF.each(er.split("/"),(function(er,tr){var rr=tr.split("+"),ir="";rr.length>1&&(ir=rr[0]+"+",tr=rr[1]),nr+=(er?"/":"")+ir+(HF["key_"+tr]||tr)})),rr?this.lastChild.textContent=tr+" ["+nr+"]":this.title=tr+" ["+nr+"]"}))}))},getButtonData:function getButtonData(tr){return Object.values(er).find((function(er){return er.sel===tr}))}}}();IF.ready((function(){var er=document.getElementById("tool_".concat(WF.initTool)),tr=document.getElementById(WF.initTool),rr=document.getElementById("tool_select"),nr=new Event("mouseup");er?(er.click(),er.dispatchEvent(nr)):tr?(tr.click(),tr.dispatchEvent(nr)):(rr.click(),rr.dispatchEvent(nr)),WF.wireframe&&RF("#tool_wireframe").click(),WF.showlayers&&ko(),RF("#rulers").toggle(Boolean(WF.showRulers)),WF.showRulers&&(RF("#show_rulers")[0].checked=!0),WF.baseUnit&&RF("#base_unit").val(WF.baseUnit),WF.gridSnapping&&(RF("#grid_snapping_on")[0].checked=!0),WF.snappingStep&&RF("#grid_snapping_step").val(WF.snappingStep),WF.gridColor&&RF("#grid_color").val(WF.gridColor)})),RF("#rect_rx").SpinButton({min:0,max:1e3,stateObj:ir,callback:function changeRectRadius(er){MF.setRectRadius(er.value)}}),RF("#stroke_width").SpinButton({min:0,max:99,smallStep:.1,stateObj:ir,callback:function changeStrokeWidth(er){var tr=er.value;0===tr&&Nr&&["line","polyline"].includes(Nr.nodeName)&&(tr=er.value=1),MF.setStrokeWidth(tr)}}),RF("#angle").SpinButton({min:-180,max:180,step:5,stateObj:ir,callback:function changeRotationAngle(er){MF.setRotationAngle(er.value),RF("#tool_reorient").toggleClass("disabled",0===Number.parseInt(er.value))}}),RF("#font_size").SpinButton({min:.001,stepfunc:function stepFontSize(er,tr){var rr=Number(er.value),nr=rr+tr,ir=nr>=rr;return 0===tr?rr:rr>=24?ir?Math.round(1.1*rr):Math.round(rr/1.1):rr<=1?ir?2*rr:rr/2:nr},stateObj:ir,callback:function changeFontSize(er){MF.setFontSize(er.value)}}),RF("#group_opacity").SpinButton({min:0,max:100,step:5,stateObj:ir,callback:Qn}),RF("#blur").SpinButton({min:0,max:10,step:.1,stateObj:ir,callback:Dn}),RF("#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:ir,callback:Vr}).val(100*MF.getZoom()),RF("#workarea").contextMenu({menu:"cmenu_canvas",inSpeed:0},(function(er,tr,rr){switch(er){case"delete":Ai();break;case"cut":fi();break;case"copy":gi();break;case"paste":MF.pasteElements();break;case"paste_in_place":MF.pasteElements("in_place");break;case"group":case"group_elements":MF.groupSelectedElements();break;case"ungroup":MF.ungroupSelectedElement();break;case"move_front":_i();break;case"move_up":yi("Up");break;case"move_down":yi("Down");break;case"move_back":vi();break;default:(function hasCustomHandler(er){return Boolean(og[er])})(er)&&function getCustomHandler(er){return og[er].action}(er).call()}}));var Eo=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(){RF("#layerlist tr.layersel").index()!==MF.getCurrentDrawing().getNumLayers()-1&&(MF.mergeLayer(),Or(),kr())}();break;case"merge_all":MF.mergeAllLayers(),Or(),kr()}};function enableOrDisableClipboard(){var er;try{er=localStorage.getItem("svgedit_clipboard")}catch(er){}Ar[(er?"en":"dis")+"ableContextMenuItems"]("#paste,#paste_in_place")}if(RF("#layerlist").contextMenu({menu:"cmenu_layers",inSpeed:0},Eo),RF("#layer_moreopts").contextMenu({menu:"cmenu_layers",inSpeed:0,allowLeft:!0},Eo),RF(".contextMenu li").mousedown((function(er){er.preventDefault()})),RF("#cmenu_canvas li").disableContextMenu(),Ar.enableContextMenuItems("#delete,#cut,#copy"),enableOrDisableClipboard(),window.addEventListener("storage",(function(er){"svgedit_clipboard"===er.key&&enableOrDisableClipboard()})),window.addEventListener("beforeunload",(function(er){return 0===hr.getUndoStackSize()&&(IF.showSaveWarning=!1),!(!WF.no_save_warning&&IF.showSaveWarning)||(er.returnValue=HF.notification.unsavedChanges,HF.notification.unsavedChanges)})),IF.canvas.getUIStrings=function(){return HF},IF.openPrep=function(){return RF("#main_menu").hide(),0===hr.getUndoStackSize()||RF.confirm(HF.notification.QwantToOpen)},window.FileReader){var No=function importImage(er){RF.process_cancel(HF.notification.loadingImage),er.stopPropagation(),er.preventDefault(),RF("#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=MF.importSvgString(er.target.result,!0);MF.ungroupSelectedElement(),MF.ungroupSelectedElement(),MF.groupSelectedElements(),MF.alignSelectedElements("m","page"),MF.alignSelectedElements("c","page"),MF.selectOnly([tr]),RF("#dialog_box").hide()},tr.readAsText(rr)):((tr=new FileReader).onloadend=function(er){var tr=er.target.result,rr=100,nr=100,ir=new Image;ir.style.opacity=0,ir.addEventListener("load",(function(){rr=ir.offsetWidth||ir.naturalWidth||ir.width,nr=ir.offsetHeight||ir.naturalHeight||ir.height,function insertNewImage(er,rr){var nr=MF.addSVGElementFromJson({element:"image",attr:{x:0,y:0,width:er,height:rr,id:MF.getNextId(),style:"pointer-events:inherit"}});MF.setHref(nr,tr),MF.selectOnly([nr]),MF.alignSelectedElements("m","page"),MF.alignSelectedElements("c","page"),Or(),RF("#dialog_box").hide()}(rr,nr)})),ir.src=tr},tr.readAsDataURL(rr))):RF("#dialog_box").hide()};pr[0].addEventListener("dragenter",(function onDragEnter(er){er.stopPropagation(),er.preventDefault()})),pr[0].addEventListener("dragover",(function onDragOver(er){er.stopPropagation(),er.preventDefault()})),pr[0].addEventListener("dragleave",(function onDragLeave(er){er.stopPropagation(),er.preventDefault()})),pr[0].addEventListener("drop",No);var Lo=RF('<input type="file">').change(function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee16(er){var tr;return regeneratorRuntime.wrap((function _callee16$(er){for(;;)switch(er.prev=er.next){case 0:return er.next=2,IF.openPrep();case 2:if(er.sent){er.next=5;break}return er.abrupt("return");case 5:MF.clear(),1===this.files.length&&(RF.process_cancel(HF.notification.loadingImage),(tr=new FileReader).onloadend=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee15(er){var tr;return regeneratorRuntime.wrap((function _callee15$(rr){for(;;)switch(rr.prev=rr.next){case 0:return tr=er.target,rr.next=3,XF(tr.result);case 3:Rr();case 4:case"end":return rr.stop()}}),_callee15)})));return function(tr){return er.apply(this,arguments)}}(),tr.readAsText(this.files[0]));case 7:case"end":return er.stop()}}),_callee16,this)})));return function(tr){return er.apply(this,arguments)}}());RF("#tool_open").show(),RF(window).on("openImage",(function(){return Lo.click()}));var To=RF('<input type="file">').change(No);RF("#tool_import").show(),RF(window).on("importImage",(function(){return To.click()}))}Rr(!0);var Po=IF.setLang=function(er,tr){if(IF.langChanged=!0,IF.pref("lang",er),RF("#lang_select").val(er),tr){document.documentElement.lang=tr.lang,RF.extend(HF,tr);var rr=RF("#layerlist tr.layersel td.layername").text()===HF.common.layer+" 1";MF.setUiStrings(tr),Bo.setTitles(),rr&&(MF.renameCurrentLayer(HF.common.layer+" 1"),kr()),MF.runExtensions("langChanged",er),qr();RF.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){RF(tr).attr("title",RF(er)[0].title)})),RF("#multiselected_panel div[id^=tool_align]").each((function(){RF("#tool_pos"+this.id.substr(10))[0].title=this.title}))}};nr()},IF.ready=function(er){return new Promise((function(tr,rr){VF?tr(er()):OF.push([er,tr,rr])}))},IF.runCallbacks=_asyncToGenerator(regeneratorRuntime.mark((function _callee19(){return regeneratorRuntime.wrap((function _callee19$(er){for(;;)switch(er.prev=er.next){case 0:return er.prev=0,er.next=3,Promise.all(OF.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),OF.forEach((function(er){(0,_slicedToArray(er,3)[2])()})),er.t0;case 9:OF.forEach((function(er){(0,_slicedToArray(er,2)[1])()})),VF=!0;case 11:case"end":return er.stop()}}),_callee19,null,[[0,5]])}))),IF.loadFromString=function(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.noAlert;return IF.ready(_asyncToGenerator(regeneratorRuntime.mark((function _callee20(){return regeneratorRuntime.wrap((function _callee20$(tr){for(;;)switch(tr.prev=tr.next){case 0:return tr.prev=0,tr.next=3,XF(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()}}),_callee20,null,[[0,5]])}))))},IF.loadFromURL=function(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.cache,nr=tr.noAlert;return IF.ready((function(){return new Promise((function(tr,ir){RF.ajax({url:er,dataType:"text",cache:Boolean(rr),beforeSend:function beforeSend(){RF.process_cancel(HF.notification.loadingImage)},success:function success(er){XF(er,{noAlert:nr})},error:function error(er,rr,or){404!==er.status&&er.responseText?XF(er.responseText,{noAlert:nr}):nr?ir(new Error("URLLoadFail")):(RF.alert(HF.notification.URLLoadFail+": \n"+or),tr())},complete:function complete(){RF("#dialog_box").hide()}})}))}))},IF.loadFromDataURI=function(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.noAlert;return IF.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 ir=er.slice(nr.length);return XF(tr?decode64(ir):decodeURIComponent(ir),{noAlert:rr})}))},IF.addExtension=function(er,tr,rr){if(!MF)throw new Error("Extension added too early");return MF.addExtension.call(this,er,tr,rr)},IF.ready((function(){ag()}));var YF=!1,JF=[];window.addEventListener("message",(function messageListener(er){var tr={data:er.data,origin:er.origin};YF?MF.call("message",tr):JF.push(tr)})),_asyncToGenerator(regeneratorRuntime.mark((function _callee21(){return regeneratorRuntime.wrap((function _callee21$(er){for(;;)switch(er.prev=er.next){case 0:return er.prev=0,er.next=3,Promise.resolve();case 3:IF.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()}}),_callee21,null,[[0,6]])})))(),IF.setConfig({}),IF.setConfig({},{allowInitialUserOverride:!0}),IF.setConfig({extensions:[],noDefaultExtensions:!1,userExtensions:[]}),IF.setConfig({}),IF.setConfig({});try{XDOMAIN&&(IF.setConfig({canvasName:"xdomain",allowedOrigins:["*"]}),console.info("xdomain config activated"))}catch(er){}var $F=String.fromCharCode,ZF=String.fromCodePoint,eU=!!ZF&&1!=ZF.length;_export({target:"String",stat:!0,forced:eU},{fromCodePoint:function fromCodePoint(er){for(var tr,rr=[],nr=arguments.length,ir=0;nr>ir;){if(tr=+arguments[ir++],toAbsoluteIndex(tr,1114111)!==tr)throw RangeError(tr+" is not a valid code point");rr.push(tr<65536?$F(tr):$F(55296+((tr-=65536)>>10),tr%1024+56320))}return rr.join("")}});var tU=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 ir in tr=arguments[rr])Object.prototype.hasOwnProperty.call(tr,ir)&&(er[ir]=tr[ir]);return er}).apply(this,arguments)};function __awaiter(er,tr,rr,nr){return new(rr||(rr=Promise))((function(ir,or){function fulfilled(er){try{step(nr.next(er))}catch(er){or(er)}}function rejected(er){try{step(nr.throw(er))}catch(er){or(er)}}function step(er){er.done?ir(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,ir,or,ar={label:0,sent:function sent(){if(1&ir[0])throw ir[1];return ir[1]},trys:[],ops:[]};return or={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(or[Symbol.iterator]=function(){return this}),or;function verb(er){return function(tr){return step([er,tr])}}function step(or){if(rr)throw new TypeError("Generator is already executing.");for(;ar;)try{if(rr=1,nr&&(ir=2&or[0]?nr.return:or[0]?nr.throw||((ir=nr.return)&&ir.call(nr),0):nr.next)&&!(ir=ir.call(nr,or[1])).done)return ir;switch(nr=0,ir&&(or=[2&or[0],ir.value]),or[0]){case 0:case 1:ir=or;break;case 4:return ar.label++,{value:or[1],done:!1};case 5:ar.label++,nr=or[1],or=[0];continue;case 7:or=ar.ops.pop(),ar.trys.pop();continue;default:if(!((ir=(ir=ar.trys).length>0&&ir[ir.length-1])||6!==or[0]&&2!==or[0])){ar=0;continue}if(3===or[0]&&(!ir||or[1]>ir[0]&&or[1]<ir[3])){ar.label=or[1];break}if(6===or[0]&&ar.label<ir[1]){ar.label=ir[1],ir=or;break}if(ir&&ar.label<ir[2]){ar.label=ir[2],ar.ops.push(or);break}ir[2]&&ar.ops.pop(),ar.trys.pop();continue}or=tr.call(er,ar)}catch(er){or=[6,er],nr=0}finally{rr=ir=0}if(5&or[0])throw or[1];return{value:or[0]?or[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())},ir=function parseDocumentSize(er){var tr=er.body,nr=er.documentElement;if(!tr||!nr)throw new Error("Unable to get document size");var ir=Math.max(Math.max(tr.scrollWidth,nr.scrollWidth),Math.max(tr.offsetWidth,nr.offsetWidth),Math.max(tr.clientWidth,nr.clientWidth)),or=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,ir,or)},or=function toCodePoints(er){for(var tr=[],rr=0,nr=er.length;rr<nr;){var ir=er.charCodeAt(rr++);if(ir>=55296&&ir<=56319&&rr<nr){var or=er.charCodeAt(rr++);56320==(64512&or)?tr.push(((1023&ir)<<10)+(1023&or)+65536):(tr.push(ir),rr--)}else tr.push(ir)}return tr},ar=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=[],ir=-1,or="";++ir<rr;){var ar=er[ir];ar<=65535?nr.push(ar):(ar-=65536,nr.push(55296+(ar>>10),ar%1024+56320)),(ir+1===rr||nr.length>16384)&&(or+=String.fromCharCode.apply(String,nr),nr.length=0)}return or},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,ir,or,ar=.75*er.length,sr=er.length,cr=0;"="===er[er.length-1]&&(ar--,"="===er[er.length-2]&&ar--);var ur="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(ar):new Array(ar),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)],ir=lr[er.charCodeAt(tr+2)],or=lr[er.charCodeAt(tr+3)],dr[cr++]=rr<<2|nr>>4,dr[cr++]=(15&nr)<<4|ir>>2,dr[cr++]=(3&ir)<<6|63∨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))},Sr=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),ir=24,or=wr(nr,ir/2,rr[4]/2),ar=2===rr[5]?wr(nr,(ir+rr[4])/2):Sr(rr,Math.ceil((ir+rr[4])/4));return new kr(rr[0],rr[1],rr[2],rr[3],or,ar)},kr=function(){function Trie(er,tr,rr,nr,ir,or){this.initialValue=er,this.errorValue=tr,this.highStart=rr,this.highValueIndex=nr,this.index=ir,this.data=or}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,Tr=5,Pr=7,Fr=8,Ur=9,Ir=10,Rr=11,Mr=12,Or=13,Qr=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,ei="!",ti="×",ri="÷",ni=xr("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),ii=[Un,zn],oi=[Br,Er,Nr,Tr],ai=[Ir,Fr],si=[$r,Jr],li=oi.concat(ai),ui=[Wn,Xn,Yn,Gn,Vn],di=[Dr,Or],hi=function codePointsToCharacterClasses(er,tr){void 0===tr&&(tr="strict");var rr=[],nr=[],ir=[];return er.forEach((function(er,or){var ar=ni.get(er);if(ar>Cr?(ir.push(!0),ar-=Cr):ir.push(!1),-1!==["normal","auto","loose"].indexOf(tr)&&-1!==[8208,8211,12316,12448].indexOf(er))return nr.push(or),rr.push(jr);if(ar===Lr||ar===Rr){if(0===or)return nr.push(or),rr.push(Un);var sr=rr[or-1];return-1===li.indexOf(sr)?(nr.push(nr[or-1]),rr.push(sr)):(nr.push(or),rr.push(Un))}return nr.push(or),ar===Qn?rr.push("strict"===tr?Kr:Kn):ar===$n||ar===Tn?rr.push(Un):ar===Zn?er>=131072&&er<=196605||er>=196608&&er<=262141?rr.push(Kn):rr.push(Un):void rr.push(ar)})),[nr,rr,ir]},pi=function isAdjacentWithSpaceIgnored(er,tr,rr,nr){var ir=nr[rr];if(Array.isArray(er)?-1!==er.indexOf(ir):er===ir)for(var or=rr;or<=nr.length;){if((lr=nr[++or])===tr)return!0;if(lr!==Ir)break}if(ir===Ir)for(or=rr;or>0;){var ar=nr[--or];if(Array.isArray(er)?-1!==er.indexOf(ar):er===ar)for(var sr=rr;sr<=nr.length;){var lr;if((lr=nr[++sr])===tr)return!0;if(lr!==Ir)break}if(ar!==Ir)break}return!1},Ai=function previousNonSpaceClassType(er,tr){for(var rr=er;rr>=0;){var nr=tr[rr];if(nr!==Ir)return nr;rr--}return 0},fi=function _lineBreakAtIndex(er,tr,rr,nr,ir){if(0===rr[nr])return ti;var or=nr-1;if(Array.isArray(ir)&&!0===ir[or])return ti;var ar=or-1,sr=or+1,lr=tr[or],cr=ar>=0?tr[ar]:0,ur=tr[sr];if(lr===Er&&ur===Nr)return ti;if(-1!==oi.indexOf(lr))return ei;if(-1!==oi.indexOf(ur))return ti;if(-1!==ai.indexOf(ur))return ti;if(Ai(or,tr)===Fr)return ri;if(ni.get(er[or])===Rr&&(ur===Kn||ur===Dn||ur===Hn))return ti;if(lr===Pr||ur===Pr)return ti;if(lr===Ur)return ti;if(-1===[Ir,Or,Dr].indexOf(lr)&&ur===Ur)return ti;if(-1!==[Hr,Gr,Vr,Xr,Zr].indexOf(ur))return ti;if(Ai(or,tr)===qr)return ti;if(pi(Wr,qr,or,tr))return ti;if(pi([Hr,Gr],Kr,or,tr))return ti;if(pi(Mr,Mr,or,tr))return ti;if(lr===Ir)return ri;if(lr===Wr||ur===Wr)return ti;if(ur===jr||lr===jr)return ri;if(-1!==[Or,Dr,Kr].indexOf(ur)||lr===Qr)return ti;if(cr===zn&&-1!==di.indexOf(lr))return ti;if(lr===Zr&&ur===zn)return ti;if(ur===zr&&-1!==ii.concat(zr,Vr,Yr,Kn,Dn,Hn).indexOf(lr))return ti;if(-1!==ii.indexOf(ur)&&lr===Yr||-1!==ii.indexOf(lr)&&ur===Yr)return ti;if(lr===$r&&-1!==[Kn,Dn,Hn].indexOf(ur)||-1!==[Kn,Dn,Hn].indexOf(lr)&&ur===Jr)return ti;if(-1!==ii.indexOf(lr)&&-1!==si.indexOf(ur)||-1!==si.indexOf(lr)&&-1!==ii.indexOf(ur))return ti;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 ti;if(-1!==[Yr,Zr,Xr,Hr,Gr].indexOf(ur))for(var dr=or;dr>=0;){if((hr=tr[dr])===Yr)return ti;if(-1===[Zr,Xr].indexOf(hr))break;dr--}if(-1!==[$r,Jr].indexOf(ur))for(dr=-1!==[Hr,Gr].indexOf(lr)?ar:or;dr>=0;){var hr;if((hr=tr[dr])===Yr)return ti;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 ti;if(-1!==ui.indexOf(lr)&&-1!==[zr,Jr].indexOf(ur)||-1!==ui.indexOf(ur)&&lr===$r)return ti;if(-1!==ii.indexOf(lr)&&-1!==ii.indexOf(ur))return ti;if(lr===Xr&&-1!==ii.indexOf(ur))return ti;if(-1!==ii.concat(Yr).indexOf(lr)&&ur===qr||-1!==ii.concat(Yr).indexOf(ur)&&lr===Gr)return ti;if(lr===Jn&&ur===Jn){for(var pr=rr[or],Ar=1;pr>0&&tr[--pr]===Jn;)Ar++;if(Ar%2!=0)return ti}return lr===Dn&&ur===Hn?ti:ri},gi=function cssFormattedClasses(er,tr){tr||(tr={lineBreak:"normal",wordBreak:"normal"});var rr=hi(er,tr.lineBreak),nr=rr[0],ir=rr[1],or=rr[2];return"break-all"!==tr.wordBreak&&"break-word"!==tr.wordBreak||(ir=ir.map((function(er){return-1!==[Yr,Un,$n].indexOf(er)?Kn:er}))),[nr,ir,"keep-all"===tr.wordBreak?or.map((function(tr,rr){return tr&&er[rr]>=19968&&er[rr]<=40959})):void 0]},mi=function(){function Break(er,tr,rr,nr){this.codePoints=er,this.required=tr===ei,this.start=rr,this.end=nr}return Break.prototype.slice=function(){return ar.apply(void 0,this.codePoints.slice(this.start,this.end))},Break}(),_i=function LineBreaker(er,tr){var rr=or(er),nr=gi(rr,tr),ir=nr[0],ar=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=ti;ur<lr&&(er=fi(rr,ar,ir,++ur,sr))===ti;);if(er!==ti||ur===lr){var tr=new mi(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 vi=1,yi=2,wi=4,Si=8,xi=10,ki=47,Ci=92,Bi=9,Ei=32,Ni=34,Li=61,Ti=35,Pi=36,Fi=37,Ui=39,Ii=40,Ri=41,Mi=95,Oi=45,Qi=33,Di=60,ji=62,Hi=64,Gi=91,Vi=93,zi=61,Ki=123,qi=63,Wi=125,Xi=124,Yi=126,Ji=128,$i=65533,Zi=42,eo=43,to=44,ro=58,no=59,io=46,oo=0,ao=8,so=11,lo=14,co=31,uo=127,ho=-1,po=48,Ao=97,fo=101,go=102,mo=117,_o=122,vo=65,yo=69,wo=70,So=85,xo=90,ko=function isDigit(er){return er>=po&&er<=57},Co=function isSurrogateCodePoint(er){return er>=55296&&er<=57343},Bo=function isHex(er){return ko(er)||er>=vo&&er<=wo||er>=Ao&&er<=go},Eo=function isLowerCaseLetter(er){return er>=Ao&&er<=_o},No=function isUpperCaseLetter(er){return er>=vo&&er<=xo},Lo=function isLetter(er){return Eo(er)||No(er)},To=function isNonASCIICodePoint(er){return er>=Ji},Po=function isWhiteSpace(er){return er===xi||er===Bi||er===Ei},Fo=function isNameStartCodePoint(er){return Lo(er)||To(er)||er===Mi},Uo=function isNameCodePoint(er){return Fo(er)||ko(er)||er===Oi},Io=function isNonPrintableCodePoint(er){return er>=oo&&er<=ao||er===so||er>=lo&&er<=co||er===uo},Ro=function isValidEscape(er,tr){return er===Ci&&tr!==xi},Mo=function isIdentifierStart(er,tr,rr){return er===Oi?Fo(tr)||Ro(tr,rr):!!Fo(er)||!(er!==Ci||!Ro(er,tr))},Oo=function isNumberStart(er,tr,rr){return er===eo||er===Oi?!!ko(tr)||tr===io&&ko(rr):ko(er===io?tr:er)},Qo=function stringToNumber(er){var tr=0,rr=1;er[tr]!==eo&&er[tr]!==Oi||(er[tr]===Oi&&(rr=-1),tr++);for(var nr=[];ko(er[tr]);)nr.push(er[tr++]);var ir=nr.length?parseInt(ar.apply(void 0,nr),10):0;er[tr]===io&&tr++;for(var or=[];ko(er[tr]);)or.push(er[tr++]);var sr=or.length,lr=sr?parseInt(ar.apply(void 0,or),10):0;er[tr]!==yo&&er[tr]!==fo||tr++;var cr=1;er[tr]!==eo&&er[tr]!==Oi||(er[tr]===Oi&&(cr=-1),tr++);for(var ur=[];ko(er[tr]);)ur.push(er[tr++]);var dr=ur.length?parseInt(ar.apply(void 0,ur),10):0;return rr*(ir+lr*Math.pow(10,-sr))*Math.pow(10,cr*dr)},Do={type:ur.LEFT_PARENTHESIS_TOKEN},jo={type:ur.RIGHT_PARENTHESIS_TOKEN},Ho={type:ur.COMMA_TOKEN},Go={type:ur.SUFFIX_MATCH_TOKEN},Vo={type:ur.PREFIX_MATCH_TOKEN},zo={type:ur.COLUMN_TOKEN},Ko={type:ur.DASH_MATCH_TOKEN},qo={type:ur.INCLUDE_MATCH_TOKEN},Wo={type:ur.LEFT_CURLY_BRACKET_TOKEN},Xo={type:ur.RIGHT_CURLY_BRACKET_TOKEN},Yo={type:ur.SUBSTRING_MATCH_TOKEN},Jo={type:ur.BAD_URL_TOKEN},$o={type:ur.BAD_STRING_TOKEN},Zo={type:ur.CDO_TOKEN},ea={type:ur.CDC_TOKEN},ta={type:ur.COLON_TOKEN},ra={type:ur.SEMICOLON_TOKEN},na={type:ur.LEFT_SQUARE_BRACKET_TOKEN},ia={type:ur.RIGHT_SQUARE_BRACKET_TOKEN},oa={type:ur.WHITESPACE_TOKEN},aa={type:ur.EOF_TOKEN},sa=function(){function Tokenizer(){this._value=[]}return Tokenizer.prototype.write=function(er){this._value=this._value.concat(or(er))},Tokenizer.prototype.read=function(){for(var er=[],tr=this.consumeToken();tr!==aa;)er.push(tr),tr=this.consumeToken();return er},Tokenizer.prototype.consumeToken=function(){var er=this.consumeCodePoint();switch(er){case Ni:return this.consumeStringToken(Ni);case Ti:var tr=this.peekCodePoint(0),rr=this.peekCodePoint(1),nr=this.peekCodePoint(2);if(Uo(tr)||Ro(rr,nr)){var ir=Mo(tr,rr,nr)?yi:vi,or=this.consumeName();return{type:ur.HASH_TOKEN,value:or,flags:ir}}break;case Pi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Go;break;case Ui:return this.consumeStringToken(Ui);case Ii:return Do;case Ri:return jo;case Zi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Yo;break;case eo:if(Oo(er,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(er),this.consumeNumericToken();break;case to:return Ho;case Oi:var sr=er,lr=this.peekCodePoint(0),cr=this.peekCodePoint(1);if(Oo(sr,lr,cr))return this.reconsumeCodePoint(er),this.consumeNumericToken();if(Mo(sr,lr,cr))return this.reconsumeCodePoint(er),this.consumeIdentLikeToken();if(lr===Oi&&cr===ji)return this.consumeCodePoint(),this.consumeCodePoint(),ea;break;case io:if(Oo(er,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(er),this.consumeNumericToken();break;case ki:if(this.peekCodePoint(0)===Zi)for(this.consumeCodePoint();;){var dr=this.consumeCodePoint();if(dr===Zi&&(dr=this.consumeCodePoint())===ki)return this.consumeToken();if(dr===ho)return this.consumeToken()}break;case ro:return ta;case no:return ra;case Di:if(this.peekCodePoint(0)===Qi&&this.peekCodePoint(1)===Oi&&this.peekCodePoint(2)===Oi)return this.consumeCodePoint(),this.consumeCodePoint(),Zo;break;case Hi:var hr=this.peekCodePoint(0),pr=this.peekCodePoint(1),Ar=this.peekCodePoint(2);if(Mo(hr,pr,Ar))return or=this.consumeName(),{type:ur.AT_KEYWORD_TOKEN,value:or};break;case Gi:return na;case Ci:if(Ro(er,this.peekCodePoint(0)))return this.reconsumeCodePoint(er),this.consumeIdentLikeToken();break;case Vi:return ia;case zi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Vo;break;case Ki:return Wo;case Wi:return Xo;case mo:case So:var fr=this.peekCodePoint(0),gr=this.peekCodePoint(1);return fr!==eo||!Bo(gr)&&gr!==qi||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(er),this.consumeIdentLikeToken();case Xi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Ko;if(this.peekCodePoint(0)===Xi)return this.consumeCodePoint(),zo;break;case Yi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),qo;break;case ho:return aa}return Po(er)?(this.consumeWhiteSpace(),oa):ko(er)?(this.reconsumeCodePoint(er),this.consumeNumericToken()):Fo(er)?(this.reconsumeCodePoint(er),this.consumeIdentLikeToken()):{type:ur.DELIM_TOKEN,value:ar(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();Bo(tr)&&er.length<6;)er.push(tr),tr=this.consumeCodePoint();for(var rr=!1;tr===qi&&er.length<6;)er.push(tr),tr=this.consumeCodePoint(),rr=!0;if(rr){var nr=parseInt(ar.apply(void 0,er.map((function(er){return er===qi?po:er}))),16),ir=parseInt(ar.apply(void 0,er.map((function(er){return er===qi?wo:er}))),16);return{type:ur.UNICODE_RANGE_TOKEN,start:nr,end:ir}}var or=parseInt(ar.apply(void 0,er),16);if(this.peekCodePoint(0)===Oi&&Bo(this.peekCodePoint(1))){this.consumeCodePoint(),tr=this.consumeCodePoint();for(var sr=[];Bo(tr)&&sr.length<6;)sr.push(tr),tr=this.consumeCodePoint();return ir=parseInt(ar.apply(void 0,sr),16),{type:ur.UNICODE_RANGE_TOKEN,start:or,end:ir}}return{type:ur.UNICODE_RANGE_TOKEN,start:or,end:or}},Tokenizer.prototype.consumeIdentLikeToken=function(){var er=this.consumeName();return"url"===er.toLowerCase()&&this.peekCodePoint(0)===Ii?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ii?(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)===ho)return{type:ur.URL_TOKEN,value:""};var tr=this.peekCodePoint(0);if(tr===Ui||tr===Ni){var rr=this.consumeStringToken(this.consumeCodePoint());return rr.type===ur.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ho||this.peekCodePoint(0)===Ri)?(this.consumeCodePoint(),{type:ur.URL_TOKEN,value:rr.value}):(this.consumeBadUrlRemnants(),Jo)}for(;;){var nr=this.consumeCodePoint();if(nr===ho||nr===Ri)return{type:ur.URL_TOKEN,value:ar.apply(void 0,er)};if(Po(nr))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ho||this.peekCodePoint(0)===Ri?(this.consumeCodePoint(),{type:ur.URL_TOKEN,value:ar.apply(void 0,er)}):(this.consumeBadUrlRemnants(),Jo);if(nr===Ni||nr===Ui||nr===Ii||Io(nr))return this.consumeBadUrlRemnants(),Jo;if(nr===Ci){if(!Ro(nr,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Jo;er.push(this.consumeEscapedCodePoint())}else er.push(nr)}},Tokenizer.prototype.consumeWhiteSpace=function(){for(;Po(this.peekCodePoint(0));)this.consumeCodePoint()},Tokenizer.prototype.consumeBadUrlRemnants=function(){for(;;){var er=this.consumeCodePoint();if(er===Ri||er===ho)return;Ro(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+=ar.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===ho||void 0===nr||nr===er)return tr+=this.consumeStringSlice(rr),{type:ur.STRING_TOKEN,value:tr};if(nr===xi)return this._value.splice(0,rr),$o;if(nr===Ci){var ir=this._value[rr+1];ir!==ho&&void 0!==ir&&(ir===xi?(tr+=this.consumeStringSlice(rr),rr=-1,this._value.shift()):Ro(nr,ir)&&(tr+=this.consumeStringSlice(rr),tr+=ar(this.consumeEscapedCodePoint()),rr=-1))}rr++}},Tokenizer.prototype.consumeNumber=function(){var er=[],tr=wi,rr=this.peekCodePoint(0);for(rr!==eo&&rr!==Oi||er.push(this.consumeCodePoint());ko(this.peekCodePoint(0));)er.push(this.consumeCodePoint());rr=this.peekCodePoint(0);var nr=this.peekCodePoint(1);if(rr===io&&ko(nr))for(er.push(this.consumeCodePoint(),this.consumeCodePoint()),tr=Si;ko(this.peekCodePoint(0));)er.push(this.consumeCodePoint());rr=this.peekCodePoint(0),nr=this.peekCodePoint(1);var ir=this.peekCodePoint(2);if((rr===yo||rr===fo)&&((nr===eo||nr===Oi)&&ko(ir)||ko(nr)))for(er.push(this.consumeCodePoint(),this.consumeCodePoint()),tr=Si;ko(this.peekCodePoint(0));)er.push(this.consumeCodePoint());return[Qo(er),tr]},Tokenizer.prototype.consumeNumericToken=function(){var er=this.consumeNumber(),tr=er[0],rr=er[1],nr=this.peekCodePoint(0),ir=this.peekCodePoint(1),or=this.peekCodePoint(2);if(Mo(nr,ir,or)){var ar=this.consumeName();return{type:ur.DIMENSION_TOKEN,number:tr,flags:rr,unit:ar}}return nr===Fi?(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(Bo(er)){for(var tr=ar(er);Bo(this.peekCodePoint(0))&&tr.length<6;)tr+=ar(this.consumeCodePoint());Po(this.peekCodePoint(0))&&this.consumeCodePoint();var rr=parseInt(tr,16);return 0===rr||Co(rr)||rr>1114111?$i:rr}return er===ho?$i:er},Tokenizer.prototype.consumeName=function(){for(var er="";;){var tr=this.consumeCodePoint();if(Uo(tr))er+=ar(tr);else{if(!Ro(tr,this.peekCodePoint(0)))return this.reconsumeCodePoint(tr),er;er+=ar(this.consumeEscapedCodePoint())}}},Tokenizer}(),la=function(){function Parser(er){this._tokens=er}return Parser.create=function(er){var tr=new sa;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||_a(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?aa:er},Parser.prototype.reconsumeToken=function(er){this._tokens.unshift(er)},Parser}(),ua=function isDimensionToken(er){return er.type===ur.DIMENSION_TOKEN},da=function isNumberToken(er){return er.type===ur.NUMBER_TOKEN},ha=function isIdentToken(er){return er.type===ur.IDENT_TOKEN},pa=function isStringToken(er){return er.type===ur.STRING_TOKEN},Aa=function isIdentWithValue(er,tr){return ha(er)&&er.value===tr},fa=function nonWhiteSpace(er){return er.type!==ur.WHITESPACE_TOKEN},ga=function nonFunctionArgSeparator(er){return er.type!==ur.WHITESPACE_TOKEN&&er.type!==ur.COMMA_TOKEN},ma=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},_a=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},va=function isLength(er){return er.type===ur.NUMBER_TOKEN||er.type===ur.DIMENSION_TOKEN},ya=function isLengthPercentage(er){return er.type===ur.PERCENTAGE_TOKEN||va(er)},ba=function parseLengthPercentageTuple(er){return er.length>1?[er[0],er[1]]:[er[0]]},wa={type:ur.NUMBER_TOKEN,number:0,flags:wi},Sa={type:ur.PERCENTAGE_TOKEN,number:50,flags:wi},xa={type:ur.PERCENTAGE_TOKEN,number:100,flags:wi},ka=function getAbsoluteValueForTuple(er,tr,rr){var nr=er[0],ir=er[1];return[Ca(nr,tr),Ca(void 0!==ir?ir:nr,rr)]},Ca=function getAbsoluteValue(er,tr){if(er.type===ur.PERCENTAGE_TOKEN)return er.number/100*tr;if(ua(er))switch(er.unit){case"rem":case"em":return 16*er.number;case"px":default:return er.number}return er.number},Ba="deg",Ea="grad",Na="rad",La="turn",Ta={name:"angle",parse:function parse(er){if(er.type===ur.DIMENSION_TOKEN)switch(er.unit){case Ba:return Math.PI*er.number/180;case Ea:return Math.PI/200*er.number;case Na:return er.number;case La:return 2*Math.PI*er.number}throw new Error("Unsupported angle type")}},Pa=function isAngle(er){return er.type===ur.DIMENSION_TOKEN&&(er.unit===Ba||er.unit===Ea||er.unit===Na||er.unit===La)},Fa=function parseNamedSide(er){switch(er.filter(ha).map((function(er){return er.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[wa,wa];case"to top":case"bottom":return Ua(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[wa,xa];case"to right":case"left":return Ua(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[xa,xa];case"to bottom":case"top":return Ua(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[xa,wa];case"to left":case"right":return Ua(270)}return 0},Ua=function deg(er){return Math.PI*er/180},Ia={name:"color",parse:function parse(er){if(er.type===ur.FUNCTION){var tr=Va[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),ir=er.value.substring(2,3);return Oa(parseInt(rr+rr,16),parseInt(nr+nr,16),parseInt(ir+ir,16),1)}if(4===er.value.length){rr=er.value.substring(0,1),nr=er.value.substring(1,2),ir=er.value.substring(2,3);var or=er.value.substring(3,4);return Oa(parseInt(rr+rr,16),parseInt(nr+nr,16),parseInt(ir+ir,16),parseInt(or+or,16)/255)}if(6===er.value.length)return rr=er.value.substring(0,2),nr=er.value.substring(2,4),ir=er.value.substring(4,6),Oa(parseInt(rr,16),parseInt(nr,16),parseInt(ir,16),1);if(8===er.value.length)return rr=er.value.substring(0,2),nr=er.value.substring(2,4),ir=er.value.substring(4,6),or=er.value.substring(6,8),Oa(parseInt(rr,16),parseInt(nr,16),parseInt(ir,16),parseInt(or,16)/255)}if(er.type===ur.IDENT_TOKEN){var ar=za[er.value.toUpperCase()];if(void 0!==ar)return ar}return za.TRANSPARENT}},Ra=function isTransparent(er){return 0==(255&er)},Ma=function asString(er){var tr=255&er,rr=255&er>>8,nr=255&er>>16,ir=255&er>>24;return tr<255?"rgba("+ir+","+nr+","+rr+","+tr/255+")":"rgb("+ir+","+nr+","+rr+")"},Oa=function pack(er,tr,rr,nr){return(er<<24|tr<<16|rr<<8|Math.round(255*nr)<<0)>>>0},Qa=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},Da=function rgb(er){var tr=er.filter(ga);if(3===tr.length){var rr=tr.map(Qa),nr=rr[0],ir=rr[1],or=rr[2];return Oa(nr,ir,or,1)}if(4===tr.length){var ar=tr.map(Qa),sr=(nr=ar[0],ir=ar[1],or=ar[2],ar[3]);return Oa(nr,ir,or,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 ja,Ha,Ga=function hsl(er){var tr=er.filter(ga),rr=tr[0],nr=tr[1],ir=tr[2],or=tr[3],ar=(rr.type===ur.NUMBER_TOKEN?Ua(rr.number):Ta.parse(rr))/(2*Math.PI),sr=ya(nr)?nr.number/100:0,lr=ya(ir)?ir.number/100:0,cr=void 0!==or&&ya(or)?Ca(or,1):1;if(0===sr)return Oa(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,ar+1/3),Ar=hue2rgb(hr,dr,ar),fr=hue2rgb(hr,dr,ar-1/3);return Oa(255*pr,255*Ar,255*fr,cr)},Va={hsl:Ga,hsla:Ga,rgb:Da,rgba:Da},za={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(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"})(ja||(ja={})),function(er){er[er.BORDER_BOX=0]="BORDER_BOX",er[er.PADDING_BOX=1]="PADDING_BOX",er[er.CONTENT_BOX=2]="CONTENT_BOX"}(Ha||(Ha={}));var Ka,qa={name:"background-clip",initialValue:"border-box",prefix:!1,type:ja.LIST,parse:function parse(er){return er.map((function(er){if(ha(er))switch(er.value){case"padding-box":return Ha.PADDING_BOX;case"content-box":return Ha.CONTENT_BOX}return Ha.BORDER_BOX}))}},Wa={name:"background-color",initialValue:"transparent",prefix:!1,type:ja.TYPE_VALUE,format:"color"},Xa=function parseColorStop(er){var tr=Ia.parse(er[0]),rr=er[1];return rr&&ya(rr)?{color:tr,stop:rr}:{color:tr,stop:null}},Ya=function processColorStops(er,tr){var rr=er[0],nr=er[er.length-1];null===rr.stop&&(rr.stop=wa),null===nr.stop&&(nr.stop=xa);for(var ir=[],or=0,ar=0;ar<er.length;ar++){var sr=er[ar].stop;if(null!==sr){var lr=Ca(sr,tr);lr>or?ir.push(lr):ir.push(or),or=lr}else ir.push(null)}var cr=null;for(ar=0;ar<ir.length;ar++){var ur=ir[ar];if(null===ur)null===cr&&(cr=ar);else if(null!==cr){for(var dr=ar-cr,hr=(ur-ir[cr-1])/(dr+1),pr=1;pr<=dr;pr++)ir[cr+pr-1]=hr*pr;cr=null}}return er.map((function(er,rr){return{color:er.color,stop:Math.max(Math.min(1,ir[rr]/tr),0)}}))},Ja=function getAngleFromCorner(er,tr,rr){var nr=tr/2,ir=rr/2,or=Ca(er[0],tr)-nr,ar=ir-Ca(er[1],rr);return(Math.atan2(ar,or)+2*Math.PI)%(2*Math.PI)},$a=function calculateGradientDirection(er,tr,rr){var nr="number"==typeof er?er:Ja(er,tr,rr),ir=Math.abs(tr*Math.sin(nr))+Math.abs(rr*Math.cos(nr)),or=tr/2,ar=rr/2,sr=ir/2,lr=Math.sin(nr-Math.PI/2)*sr,cr=Math.cos(nr-Math.PI/2)*sr;return[ir,or-cr,or+cr,ar-lr,ar+lr]},Za=function distance(er,tr){return Math.sqrt(er*er+tr*tr)},es=function findCorner(er,tr,rr,nr,ir){return[[0,0],[0,tr],[er,0],[er,tr]].reduce((function(er,tr){var or=tr[0],ar=tr[1],sr=Za(rr-or,nr-ar);return(ir?sr<er.optimumDistance:sr>er.optimumDistance)?{optimumCorner:tr,optimumDistance:sr}:er}),{optimumDistance:ir?1/0:-1/0,optimumCorner:null}).optimumCorner},ts=function calculateRadius(er,tr,rr,nr,ir){var or=0,ar=0;switch(er.size){case Os.CLOSEST_SIDE:er.shape===Ms.CIRCLE?or=ar=Math.min(Math.abs(tr),Math.abs(tr-nr),Math.abs(rr),Math.abs(rr-ir)):er.shape===Ms.ELLIPSE&&(or=Math.min(Math.abs(tr),Math.abs(tr-nr)),ar=Math.min(Math.abs(rr),Math.abs(rr-ir)));break;case Os.CLOSEST_CORNER:if(er.shape===Ms.CIRCLE)or=ar=Math.min(Za(tr,rr),Za(tr,rr-ir),Za(tr-nr,rr),Za(tr-nr,rr-ir));else if(er.shape===Ms.ELLIPSE){var sr=Math.min(Math.abs(rr),Math.abs(rr-ir))/Math.min(Math.abs(tr),Math.abs(tr-nr)),lr=es(nr,ir,tr,rr,!0),cr=lr[0],ur=lr[1];ar=sr*(or=Za(cr-tr,(ur-rr)/sr))}break;case Os.FARTHEST_SIDE:er.shape===Ms.CIRCLE?or=ar=Math.max(Math.abs(tr),Math.abs(tr-nr),Math.abs(rr),Math.abs(rr-ir)):er.shape===Ms.ELLIPSE&&(or=Math.max(Math.abs(tr),Math.abs(tr-nr)),ar=Math.max(Math.abs(rr),Math.abs(rr-ir)));break;case Os.FARTHEST_CORNER:if(er.shape===Ms.CIRCLE)or=ar=Math.max(Za(tr,rr),Za(tr,rr-ir),Za(tr-nr,rr),Za(tr-nr,rr-ir));else if(er.shape===Ms.ELLIPSE){sr=Math.max(Math.abs(rr),Math.abs(rr-ir))/Math.max(Math.abs(tr),Math.abs(tr-nr));var dr=es(nr,ir,tr,rr,!1);cr=dr[0],ur=dr[1],ar=sr*(or=Za(cr-tr,(ur-rr)/sr))}}return Array.isArray(er.size)&&(or=Ca(er.size[0],nr),ar=2===er.size.length?Ca(er.size[1],ir):or),[or,ar]},rs=function linearGradient(er){var tr=Ua(180),rr=[];return ma(er).forEach((function(er,nr){if(0===nr){var ir=er[0];if(ir.type===ur.IDENT_TOKEN&&"to"===ir.value)return void(tr=Fa(er));if(Pa(ir))return void(tr=Ta.parse(ir))}var or=Xa(er);rr.push(or)})),{angle:tr,stops:rr,type:Ka.LINEAR_GRADIENT}},ns=function prefixLinearGradient(er){var tr=Ua(180),rr=[];return ma(er).forEach((function(er,nr){if(0===nr){var ir=er[0];if(ir.type===ur.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(ir.value))return void(tr=Fa(er));if(Pa(ir))return void(tr=(Ta.parse(ir)+Ua(270))%Ua(360))}var or=Xa(er);rr.push(or)})),{angle:tr,stops:rr,type:Ka.LINEAR_GRADIENT}},os=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 ir=rr.getBoundingClientRect(),or=Math.round(ir.height);if(er.body.removeChild(nr),or===tr)return!0}}return!1},as=function testCORS(){return void 0!==(new Image).crossOrigin},ss=function testResponseType(){return"string"==typeof(new XMLHttpRequest).responseType},ls=function testSVG(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},us=function isGreenPixel(er){return 0===er[0]&&255===er[1]&&0===er[2]&&255===er[3]},ds=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 ir=new Image,or=tr.toDataURL();ir.src=or;var ar=hs(rr,rr,0,0,ir);return nr.fillStyle="red",nr.fillRect(0,0,rr,rr),ps(ar).then((function(tr){nr.drawImage(tr,0,0);var ir=nr.getImageData(0,0,rr,rr).data;nr.fillStyle="red",nr.fillRect(0,0,rr,rr);var ar=er.createElement("div");return ar.style.backgroundImage="url("+or+")",ar.style.height=rr+"px",us(ir)?ps(hs(rr,rr,0,0,ar)):Promise.reject(!1)})).then((function(er){return nr.drawImage(er,0,0),us(nr.getImageData(0,0,rr,rr).data)})).catch((function(){return!1}))},hs=function createForeignObjectSVG(er,tr,rr,nr,ir){var or="http://www.w3.org/2000/svg",ar=document.createElementNS(or,"svg"),sr=document.createElementNS(or,"foreignObject");return ar.setAttributeNS(null,"width",er.toString()),ar.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"),ar.appendChild(sr),sr.appendChild(ir),ar},ps=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))}))},As={get SUPPORT_RANGE_BOUNDS(){var er=os(document);return Object.defineProperty(As,"SUPPORT_RANGE_BOUNDS",{value:er}),er},get SUPPORT_SVG_DRAWING(){var er=ls(document);return Object.defineProperty(As,"SUPPORT_SVG_DRAWING",{value:er}),er},get SUPPORT_FOREIGNOBJECT_DRAWING(){var er="function"==typeof Array.from&&"function"==typeof window.fetch?ds(document):Promise.resolve(!1);return Object.defineProperty(As,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:er}),er},get SUPPORT_CORS_IMAGES(){var er=as();return Object.defineProperty(As,"SUPPORT_CORS_IMAGES",{value:er}),er},get SUPPORT_RESPONSE_TYPE(){var er=ss();return Object.defineProperty(As,"SUPPORT_RESPONSE_TYPE",{value:er}),er},get SUPPORT_CORS_XHR(){var er="withCredentials"in new XMLHttpRequest;return Object.defineProperty(As,"SUPPORT_CORS_XHR",{value:er}),er}},fs=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}(),gs=function(){function CacheStorage(){}return CacheStorage.create=function(er,tr){return CacheStorage._caches[er]=new ms(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}(),ms=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:xs(er)||bs(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,ir,or=this;return __generator(this,(function(ar){switch(ar.label){case 0:return tr=gs.isSameOrigin(er),rr=!ws(er)&&!0===this._options.useCORS&&As.SUPPORT_CORS_IMAGES&&!tr,nr=!ws(er)&&!tr&&"string"==typeof this._options.proxy&&As.SUPPORT_CORS_XHR&&!rr,tr||!1!==this._options.allowTaint||ws(er)||nr||rr?(ir=er,nr?[4,this.proxy(ir)]:[3,2]):[2];case 1:ir=ar.sent(),ar.label=2;case 2:return fs.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,(Ss(ir)||rr)&&(nr.crossOrigin="anonymous"),nr.src=ir,!0===nr.complete&&setTimeout((function(){return er(nr)}),500),or._options.imageTimeout>0&&setTimeout((function(){return tr("Timed out ("+or._options.imageTimeout+"ms) loading image")}),or._options.imageTimeout)}))];case 3:return[2,ar.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(ir,or){var ar=As.SUPPORT_RESPONSE_TYPE?"blob":"text",sr=new XMLHttpRequest;if(sr.onload=function(){if(200===sr.status)if("text"===ar)ir(sr.response);else{var er=new FileReader;er.addEventListener("load",(function(){return ir(er.result)}),!1),er.addEventListener("error",(function(er){return or(er)}),!1),er.readAsDataURL(sr.response)}else or("Failed to proxy resource "+nr+" with status code "+sr.status)},sr.onerror=or,sr.open("GET",rr+"?url="+encodeURIComponent(er)+"&responseType="+ar),"text"!==ar&&sr instanceof XMLHttpRequest&&(sr.responseType=ar),tr._options.imageTimeout){var lr=tr._options.imageTimeout;sr.timeout=lr,sr.ontimeout=function(){return or("Timed out ("+lr+"ms) proxying "+nr)}}sr.send()}))},Cache}(),_s=/^data:image\/svg\+xml/i,vs=/^data:image\/.*;base64,/i,ys=/^data:image\/.*/i,bs=function isRenderable(er){return As.SUPPORT_SVG_DRAWING||!ks(er)},ws=function isInlineImage(er){return ys.test(er)},Ss=function isInlineBase64Image(er){return vs.test(er)},xs=function isBlobImage(er){return"blob"===er.substr(0,4)},ks=function isSVG(er){return"svg"===er.substr(-3).toLowerCase()||_s.test(er)},Cs=function webkitGradient(er){var tr=Ua(180),rr=[],nr=Ka.LINEAR_GRADIENT,ir=Ms.CIRCLE,or=Os.FARTHEST_CORNER,ar=[];return ma(er).forEach((function(er,tr){var ir=er[0];if(0===tr){if(ha(ir)&&"linear"===ir.value)return void(nr=Ka.LINEAR_GRADIENT);if(ha(ir)&&"radial"===ir.value)return void(nr=Ka.RADIAL_GRADIENT)}if(ir.type===ur.FUNCTION)if("from"===ir.name){var or=Ia.parse(ir.values[0]);rr.push({stop:wa,color:or})}else if("to"===ir.name)or=Ia.parse(ir.values[0]),rr.push({stop:xa,color:or});else if("color-stop"===ir.name){var ar=ir.values.filter(ga);if(2===ar.length){or=Ia.parse(ar[1]);var sr=ar[0];da(sr)&&rr.push({stop:{type:ur.PERCENTAGE_TOKEN,number:100*sr.number,flags:sr.flags},color:or})}}})),nr===Ka.LINEAR_GRADIENT?{angle:(tr+Ua(180))%Ua(360),stops:rr,type:nr}:{size:or,shape:ir,stops:rr,position:ar,type:nr}},Bs="closest-side",Es="farthest-side",Ns="closest-corner",Ls="farthest-corner",Ts="circle",Ps="ellipse",Fs="cover",Us="contain",Is=function radialGradient(er){var tr=Ms.CIRCLE,rr=Os.FARTHEST_CORNER,nr=[],ir=[];return ma(er).forEach((function(er,or){var ar=!0;if(0===or){var sr=!1;ar=er.reduce((function(er,nr){if(sr)if(ha(nr))switch(nr.value){case"center":return ir.push(Sa),er;case"top":case"left":return ir.push(wa),er;case"right":case"bottom":return ir.push(xa),er}else(ya(nr)||va(nr))&&ir.push(nr);else if(ha(nr))switch(nr.value){case Ts:return tr=Ms.CIRCLE,!1;case Ps:return tr=Ms.ELLIPSE,!1;case"at":return sr=!0,!1;case Bs:return rr=Os.CLOSEST_SIDE,!1;case Fs:case Es:return rr=Os.FARTHEST_SIDE,!1;case Us:case Ns:return rr=Os.CLOSEST_CORNER,!1;case Ls:return rr=Os.FARTHEST_CORNER,!1}else if(va(nr)||ya(nr))return Array.isArray(rr)||(rr=[]),rr.push(nr),!1;return er}),ar)}if(ar){var lr=Xa(er);nr.push(lr)}})),{size:rr,shape:tr,stops:nr,position:ir,type:Ka.RADIAL_GRADIENT}},Rs=function prefixRadialGradient(er){var tr=Ms.CIRCLE,rr=Os.FARTHEST_CORNER,nr=[],ir=[];return ma(er).forEach((function(er,or){var ar=!0;if(0===or?ar=er.reduce((function(er,tr){if(ha(tr))switch(tr.value){case"center":return ir.push(Sa),!1;case"top":case"left":return ir.push(wa),!1;case"right":case"bottom":return ir.push(xa),!1}else if(ya(tr)||va(tr))return ir.push(tr),!1;return er}),ar):1===or&&(ar=er.reduce((function(er,nr){if(ha(nr))switch(nr.value){case Ts:return tr=Ms.CIRCLE,!1;case Ps:return tr=Ms.ELLIPSE,!1;case Us:case Bs:return rr=Os.CLOSEST_SIDE,!1;case Es:return rr=Os.FARTHEST_SIDE,!1;case Ns:return rr=Os.CLOSEST_CORNER,!1;case Fs:case Ls:return rr=Os.FARTHEST_CORNER,!1}else if(va(nr)||ya(nr))return Array.isArray(rr)||(rr=[]),rr.push(nr),!1;return er}),ar)),ar){var sr=Xa(er);nr.push(sr)}})),{size:rr,shape:tr,stops:nr,position:ir,type:Ka.RADIAL_GRADIENT}};!function(er){er[er.URL=0]="URL",er[er.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",er[er.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(Ka||(Ka={}));var Ms,Os,Qs=function isLinearGradient(er){return er.type===Ka.LINEAR_GRADIENT},Ds=function isRadialGradient(er){return er.type===Ka.RADIAL_GRADIENT};(function(er){er[er.CIRCLE=0]="CIRCLE",er[er.ELLIPSE=1]="ELLIPSE"})(Ms||(Ms={})),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"}(Os||(Os={}));var js={name:"image",parse:function parse(er){if(er.type===ur.URL_TOKEN){var tr={url:er.value,type:Ka.URL};return gs.getInstance().addImage(er.value),tr}if(er.type===ur.FUNCTION){var rr=Gs[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||Gs[er.name]}var Hs,Gs={"linear-gradient":rs,"-moz-linear-gradient":ns,"-ms-linear-gradient":ns,"-o-linear-gradient":ns,"-webkit-linear-gradient":ns,"radial-gradient":Is,"-moz-radial-gradient":Rs,"-ms-radial-gradient":Rs,"-o-radial-gradient":Rs,"-webkit-radial-gradient":Rs,"-webkit-gradient":Cs},Vs={name:"background-image",initialValue:"none",type:ja.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 ga(er)&&isSupportedImage(er)})).map(js.parse)}},zs={name:"background-origin",initialValue:"border-box",prefix:!1,type:ja.LIST,parse:function parse(er){return er.map((function(er){if(ha(er))switch(er.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ks={name:"background-position",initialValue:"0% 0%",type:ja.LIST,prefix:!1,parse:function parse(er){return ma(er).map((function(er){return er.filter(ya)})).map(ba)}};!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"}(Hs||(Hs={}));var qs,Ws={name:"background-repeat",initialValue:"repeat",prefix:!1,type:ja.LIST,parse:function parse(er){return ma(er).map((function(er){return er.filter(ha).map((function(er){return er.value})).join(" ")})).map(Xs)}},Xs=function parseBackgroundRepeat(er){switch(er){case"no-repeat":return Hs.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Hs.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Hs.REPEAT_Y;case"repeat":default:return Hs.REPEAT}};!function(er){er.AUTO="auto",er.CONTAIN="contain",er.COVER="cover"}(qs||(qs={}));var Ys,Js={name:"background-size",initialValue:"0",prefix:!1,type:ja.LIST,parse:function parse(er){return ma(er).map((function(er){return er.filter($s)}))}},$s=function isBackgroundSizeInfoToken(er){return ha(er)||ya(er)},Zs=function borderColorForSide(er){return{name:"border-"+er+"-color",initialValue:"transparent",prefix:!1,type:ja.TYPE_VALUE,format:"color"}},el=Zs("top"),tl=Zs("right"),rl=Zs("bottom"),nl=Zs("left"),il=function borderRadiusForSide(er){return{name:"border-radius-"+er,initialValue:"0 0",prefix:!1,type:ja.LIST,parse:function parse(er){return ba(er.filter(ya))}}},ol=il("top-left"),al=il("top-right"),sl=il("bottom-right"),ll=il("bottom-left");!function(er){er[er.NONE=0]="NONE",er[er.SOLID=1]="SOLID"}(Ys||(Ys={}));var cl,ul=function borderStyleForSide(er){return{name:"border-"+er+"-style",initialValue:"solid",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"none":return Ys.NONE}return Ys.SOLID}}},dl=ul("top"),hl=ul("right"),pl=ul("bottom"),Al=ul("left"),fl=function borderWidthForSide(er){return{name:"border-"+er+"-width",initialValue:"0",type:ja.VALUE,prefix:!1,parse:function parse(er){return ua(er)?er.number:0}}},gl=fl("top"),ml=fl("right"),_l=fl("bottom"),vl=fl("left"),yl={name:"color",initialValue:"transparent",prefix:!1,type:ja.TYPE_VALUE,format:"color"},wl={name:"display",initialValue:"inline-block",prefix:!1,type:ja.LIST,parse:function parse(er){return er.filter(ha).reduce((function(er,tr){return er|Sl(tr.value)}),0)}},Sl=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"}(cl||(cl={}));var xl,kl={name:"float",initialValue:"none",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"left":return cl.LEFT;case"right":return cl.RIGHT;case"inline-start":return cl.INLINE_START;case"inline-end":return cl.INLINE_END}return cl.NONE}},Cl={name:"letter-spacing",initialValue:"0",prefix:!1,type:ja.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"}(xl||(xl={}));var Bl,El={name:"line-break",initialValue:"normal",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"strict":return xl.STRICT;case"normal":default:return xl.NORMAL}}},Nl={name:"line-height",initialValue:"normal",prefix:!1,type:ja.TOKEN_VALUE},Ll=function computeLineHeight(er,tr){return ha(er)&&"normal"===er.value?1.2*tr:er.type===ur.NUMBER_TOKEN?tr*er.number:ya(er)?Ca(er,tr):tr},Tl={name:"list-style-image",initialValue:"none",type:ja.VALUE,prefix:!1,parse:function parse(er){return er.type===ur.IDENT_TOKEN&&"none"===er.value?null:js.parse(er)}};!function(er){er[er.INSIDE=0]="INSIDE",er[er.OUTSIDE=1]="OUTSIDE"}(Bl||(Bl={}));var Pl,Fl={name:"list-style-position",initialValue:"outside",prefix:!1,type:ja.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"}(Pl||(Pl={}));var Ul,Il={name:"list-style-type",initialValue:"none",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"disc":return Pl.DISC;case"circle":return Pl.CIRCLE;case"square":return Pl.SQUARE;case"decimal":return Pl.DECIMAL;case"cjk-decimal":return Pl.CJK_DECIMAL;case"decimal-leading-zero":return Pl.DECIMAL_LEADING_ZERO;case"lower-roman":return Pl.LOWER_ROMAN;case"upper-roman":return Pl.UPPER_ROMAN;case"lower-greek":return Pl.LOWER_GREEK;case"lower-alpha":return Pl.LOWER_ALPHA;case"upper-alpha":return Pl.UPPER_ALPHA;case"arabic-indic":return Pl.ARABIC_INDIC;case"armenian":return Pl.ARMENIAN;case"bengali":return Pl.BENGALI;case"cambodian":return Pl.CAMBODIAN;case"cjk-earthly-branch":return Pl.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Pl.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Pl.CJK_IDEOGRAPHIC;case"devanagari":return Pl.DEVANAGARI;case"ethiopic-numeric":return Pl.ETHIOPIC_NUMERIC;case"georgian":return Pl.GEORGIAN;case"gujarati":return Pl.GUJARATI;case"gurmukhi":return Pl.GURMUKHI;case"hebrew":return Pl.HEBREW;case"hiragana":return Pl.HIRAGANA;case"hiragana-iroha":return Pl.HIRAGANA_IROHA;case"japanese-formal":return Pl.JAPANESE_FORMAL;case"japanese-informal":return Pl.JAPANESE_INFORMAL;case"kannada":return Pl.KANNADA;case"katakana":return Pl.KATAKANA;case"katakana-iroha":return Pl.KATAKANA_IROHA;case"khmer":return Pl.KHMER;case"korean-hangul-formal":return Pl.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Pl.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Pl.KOREAN_HANJA_INFORMAL;case"lao":return Pl.LAO;case"lower-armenian":return Pl.LOWER_ARMENIAN;case"malayalam":return Pl.MALAYALAM;case"mongolian":return Pl.MONGOLIAN;case"myanmar":return Pl.MYANMAR;case"oriya":return Pl.ORIYA;case"persian":return Pl.PERSIAN;case"simp-chinese-formal":return Pl.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Pl.SIMP_CHINESE_INFORMAL;case"tamil":return Pl.TAMIL;case"telugu":return Pl.TELUGU;case"thai":return Pl.THAI;case"tibetan":return Pl.TIBETAN;case"trad-chinese-formal":return Pl.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Pl.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Pl.UPPER_ARMENIAN;case"disclosure-open":return Pl.DISCLOSURE_OPEN;case"disclosure-closed":return Pl.DISCLOSURE_CLOSED;case"none":default:return Pl.NONE}}},Rl=function marginForSide(er){return{name:"margin-"+er,initialValue:"0",prefix:!1,type:ja.TOKEN_VALUE}},Ml=Rl("top"),Ol=Rl("right"),Ql=Rl("bottom"),Dl=Rl("left");!function(er){er[er.VISIBLE=0]="VISIBLE",er[er.HIDDEN=1]="HIDDEN",er[er.SCROLL=2]="SCROLL",er[er.AUTO=3]="AUTO"}(Ul||(Ul={}));var jl,Hl={name:"overflow",initialValue:"visible",prefix:!1,type:ja.LIST,parse:function parse(er){return er.filter(ha).map((function(er){switch(er.value){case"hidden":return Ul.HIDDEN;case"scroll":return Ul.SCROLL;case"auto":return Ul.AUTO;case"visible":default:return Ul.VISIBLE}}))}};!function(er){er.NORMAL="normal",er.BREAK_WORD="break-word"}(jl||(jl={}));var Gl,Vl={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"break-word":return jl.BREAK_WORD;case"normal":default:return jl.NORMAL}}},zl=function paddingForSide(er){return{name:"padding-"+er,initialValue:"0",prefix:!1,type:ja.TYPE_VALUE,format:"length-percentage"}},Kl=zl("top"),ql=zl("right"),Wl=zl("bottom"),Xl=zl("left");!function(er){er[er.LEFT=0]="LEFT",er[er.CENTER=1]="CENTER",er[er.RIGHT=2]="RIGHT"}(Gl||(Gl={}));var Yl,Jl={name:"text-align",initialValue:"left",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"right":return Gl.RIGHT;case"center":case"justify":return Gl.CENTER;case"left":default:return Gl.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"}(Yl||(Yl={}));var $l,Zl={name:"position",initialValue:"static",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"relative":return Yl.RELATIVE;case"absolute":return Yl.ABSOLUTE;case"fixed":return Yl.FIXED;case"sticky":return Yl.STICKY}return Yl.STATIC}},ec={name:"text-shadow",initialValue:"none",type:ja.LIST,prefix:!1,parse:function parse(er){return 1===er.length&&Aa(er[0],"none")?[]:ma(er).map((function(er){for(var tr={color:za.TRANSPARENT,offsetX:wa,offsetY:wa,blur:wa},rr=0,nr=0;nr<er.length;nr++){var ir=er[nr];va(ir)?(0===rr?tr.offsetX=ir:1===rr?tr.offsetY=ir:tr.blur=ir,rr++):tr.color=Ia.parse(ir)}return tr}))}};!function(er){er[er.NONE=0]="NONE",er[er.LOWERCASE=1]="LOWERCASE",er[er.UPPERCASE=2]="UPPERCASE",er[er.CAPITALIZE=3]="CAPITALIZE"}($l||($l={}));var tc,rc={name:"text-transform",initialValue:"none",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"uppercase":return $l.UPPERCASE;case"lowercase":return $l.LOWERCASE;case"capitalize":return $l.CAPITALIZE}return $l.NONE}},nc={name:"transform",initialValue:"none",prefix:!0,type:ja.VALUE,parse:function parse(er){if(er.type===ur.IDENT_TOKEN&&"none"===er.value)return null;if(er.type===ur.FUNCTION){var tr=ic[er.name];if(void 0===tr)throw new Error('Attempting to parse an unsupported transform function "'+er.name+'"');return tr(er.values)}return null}},ic={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],ir=(tr[2],tr[3],tr[4]),or=tr[5],ar=(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,ir,or,ar,sr]:null}},oc={type:ur.PERCENTAGE_TOKEN,number:50,flags:wi},ac=[oc,oc],sc={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:ja.LIST,parse:function parse(er){var tr=er.filter(ya);return 2!==tr.length?ac:[tr[0],tr[1]]}};!function(er){er[er.VISIBLE=0]="VISIBLE",er[er.HIDDEN=1]="HIDDEN",er[er.COLLAPSE=2]="COLLAPSE"}(tc||(tc={}));var lc,uc={name:"visible",initialValue:"none",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"hidden":return tc.HIDDEN;case"collapse":return tc.COLLAPSE;case"visible":default:return tc.VISIBLE}}};!function(er){er.NORMAL="normal",er.BREAK_ALL="break-all",er.KEEP_ALL="keep-all"}(lc||(lc={}));var dc,hc={name:"word-break",initialValue:"normal",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"break-all":return lc.BREAK_ALL;case"keep-all":return lc.KEEP_ALL;case"normal":default:return lc.NORMAL}}},pc={name:"z-index",initialValue:"auto",prefix:!1,type:ja.VALUE,parse:function parse(er){if(er.type===ur.IDENT_TOKEN)return{auto:!0,order:0};if(da(er))return{auto:!1,order:er.number};throw new Error("Invalid z-index number parsed")}},Ac={name:"opacity",initialValue:"1",type:ja.VALUE,prefix:!1,parse:function parse(er){return da(er)?er.number:1}},fc={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:ja.TYPE_VALUE,format:"color"},gc={name:"text-decoration-line",initialValue:"none",prefix:!1,type:ja.LIST,parse:function parse(er){return er.filter(ha).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}))}},mc={name:"font-family",initialValue:"",prefix:!1,type:ja.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+"'"}))}},_c={name:"font-size",initialValue:"0",prefix:!1,type:ja.TYPE_VALUE,format:"length"},vc={name:"font-weight",initialValue:"normal",type:ja.VALUE,prefix:!1,parse:function parse(er){if(da(er))return er.number;if(ha(er))switch(er.value){case"bold":return 700;case"normal":default:return 400}return 400}},yc={name:"font-variant",initialValue:"none",type:ja.LIST,prefix:!1,parse:function parse(er){return er.filter(ha).map((function(er){return er.value}))}};!function(er){er.NORMAL="normal",er.ITALIC="italic",er.OBLIQUE="oblique"}(dc||(dc={}));var bc,wc={name:"font-style",initialValue:"normal",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"oblique":return dc.OBLIQUE;case"italic":return dc.ITALIC;case"normal":default:return dc.NORMAL}}},Sc=function contains(er,tr){return 0!=(er&tr)},xc={name:"content",initialValue:"none",type:ja.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}},kc={name:"counter-increment",initialValue:"none",prefix:!0,type:ja.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(fa),ir=0;ir<nr.length;ir++){var or=nr[ir],ar=nr[ir+1];if(or.type===ur.IDENT_TOKEN){var sr=ar&&da(ar)?ar.number:1;rr.push({counter:or.value,increment:sr})}}return rr}},Cc={name:"counter-reset",initialValue:"none",prefix:!0,type:ja.LIST,parse:function parse(er){if(0===er.length)return[];for(var tr=[],rr=er.filter(fa),nr=0;nr<rr.length;nr++){var ir=rr[nr],or=rr[nr+1];if(ha(ir)&&"none"!==ir.value){var ar=or&&da(or)?or.number:0;tr.push({counter:ir.value,reset:ar})}}return tr}},Bc={name:"quotes",initialValue:"none",prefix:!0,type:ja.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(pa);if(nr.length%2!=0)return null;for(var ir=0;ir<nr.length;ir+=2){var or=nr[ir].value,ar=nr[ir+1].value;rr.push({open:or,close:ar})}return rr}},Ec=function getQuote(er,tr,rr){if(!er)return"";var nr=er[Math.min(tr,er.length-1)];return nr?rr?nr.open:nr.close:""},Nc={name:"box-shadow",initialValue:"none",type:ja.LIST,prefix:!1,parse:function parse(er){return 1===er.length&&Aa(er[0],"none")?[]:ma(er).map((function(er){for(var tr={color:255,offsetX:wa,offsetY:wa,blur:wa,spread:wa,inset:!1},rr=0,nr=0;nr<er.length;nr++){var ir=er[nr];Aa(ir,"inset")?tr.inset=!0:va(ir)?(0===rr?tr.offsetX=ir:1===rr?tr.offsetY=ir:2===rr?tr.blur=ir:tr.spread=ir,rr++):tr.color=Ia.parse(ir)}return tr}))}},Lc=function(){function CSSParsedDeclaration(er){this.backgroundClip=Fc(qa,er.backgroundClip),this.backgroundColor=Fc(Wa,er.backgroundColor),this.backgroundImage=Fc(Vs,er.backgroundImage),this.backgroundOrigin=Fc(zs,er.backgroundOrigin),this.backgroundPosition=Fc(Ks,er.backgroundPosition),this.backgroundRepeat=Fc(Ws,er.backgroundRepeat),this.backgroundSize=Fc(Js,er.backgroundSize),this.borderTopColor=Fc(el,er.borderTopColor),this.borderRightColor=Fc(tl,er.borderRightColor),this.borderBottomColor=Fc(rl,er.borderBottomColor),this.borderLeftColor=Fc(nl,er.borderLeftColor),this.borderTopLeftRadius=Fc(ol,er.borderTopLeftRadius),this.borderTopRightRadius=Fc(al,er.borderTopRightRadius),this.borderBottomRightRadius=Fc(sl,er.borderBottomRightRadius),this.borderBottomLeftRadius=Fc(ll,er.borderBottomLeftRadius),this.borderTopStyle=Fc(dl,er.borderTopStyle),this.borderRightStyle=Fc(hl,er.borderRightStyle),this.borderBottomStyle=Fc(pl,er.borderBottomStyle),this.borderLeftStyle=Fc(Al,er.borderLeftStyle),this.borderTopWidth=Fc(gl,er.borderTopWidth),this.borderRightWidth=Fc(ml,er.borderRightWidth),this.borderBottomWidth=Fc(_l,er.borderBottomWidth),this.borderLeftWidth=Fc(vl,er.borderLeftWidth),this.boxShadow=Fc(Nc,er.boxShadow),this.color=Fc(yl,er.color),this.display=Fc(wl,er.display),this.float=Fc(kl,er.cssFloat),this.fontFamily=Fc(mc,er.fontFamily),this.fontSize=Fc(_c,er.fontSize),this.fontStyle=Fc(wc,er.fontStyle),this.fontVariant=Fc(yc,er.fontVariant),this.fontWeight=Fc(vc,er.fontWeight),this.letterSpacing=Fc(Cl,er.letterSpacing),this.lineBreak=Fc(El,er.lineBreak),this.lineHeight=Fc(Nl,er.lineHeight),this.listStyleImage=Fc(Tl,er.listStyleImage),this.listStylePosition=Fc(Fl,er.listStylePosition),this.listStyleType=Fc(Il,er.listStyleType),this.marginTop=Fc(Ml,er.marginTop),this.marginRight=Fc(Ol,er.marginRight),this.marginBottom=Fc(Ql,er.marginBottom),this.marginLeft=Fc(Dl,er.marginLeft),this.opacity=Fc(Ac,er.opacity);var tr=Fc(Hl,er.overflow);this.overflowX=tr[0],this.overflowY=tr[tr.length>1?1:0],this.overflowWrap=Fc(Vl,er.overflowWrap),this.paddingTop=Fc(Kl,er.paddingTop),this.paddingRight=Fc(ql,er.paddingRight),this.paddingBottom=Fc(Wl,er.paddingBottom),this.paddingLeft=Fc(Xl,er.paddingLeft),this.position=Fc(Zl,er.position),this.textAlign=Fc(Jl,er.textAlign),this.textDecorationColor=Fc(fc,er.textDecorationColor||er.color),this.textDecorationLine=Fc(gc,er.textDecorationLine),this.textShadow=Fc(ec,er.textShadow),this.textTransform=Fc(rc,er.textTransform),this.transform=Fc(nc,er.transform),this.transformOrigin=Fc(sc,er.transformOrigin),this.visibility=Fc(uc,er.visibility),this.wordBreak=Fc(hc,er.wordBreak),this.zIndex=Fc(pc,er.zIndex)}return CSSParsedDeclaration.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===tc.VISIBLE},CSSParsedDeclaration.prototype.isTransparent=function(){return Ra(this.backgroundColor)},CSSParsedDeclaration.prototype.isTransformed=function(){return null!==this.transform},CSSParsedDeclaration.prototype.isPositioned=function(){return this.position!==Yl.STATIC},CSSParsedDeclaration.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},CSSParsedDeclaration.prototype.isFloating=function(){return this.float!==cl.NONE},CSSParsedDeclaration.prototype.isInlineLevel=function(){return Sc(this.display,4)||Sc(this.display,33554432)||Sc(this.display,268435456)||Sc(this.display,536870912)||Sc(this.display,67108864)||Sc(this.display,134217728)},CSSParsedDeclaration}(),Tc=function(){function CSSParsedPseudoDeclaration(er){this.content=Fc(xc,er.content),this.quotes=Fc(Bc,er.quotes)}return CSSParsedPseudoDeclaration}(),Pc=function(){function CSSParsedCounterDeclaration(er){this.counterIncrement=Fc(kc,er.counterIncrement),this.counterReset=Fc(Cc,er.counterReset)}return CSSParsedCounterDeclaration}(),Fc=function parse(er,tr){var rr=new sa,nr=null!=tr?tr.toString():er.initialValue;rr.write(nr);var ir=new la(rr.read());switch(er.type){case ja.IDENT_VALUE:var or=ir.parseComponentValue();return er.parse(ha(or)?or.value:er.initialValue);case ja.VALUE:return er.parse(ir.parseComponentValue());case ja.LIST:return er.parse(ir.parseComponentValues());case ja.TOKEN_VALUE:return ir.parseComponentValue();case ja.TYPE_VALUE:switch(er.format){case"angle":return Ta.parse(ir.parseComponentValue());case"color":return Ia.parse(ir.parseComponentValue());case"image":return js.parse(ir.parseComponentValue());case"length":var ar=ir.parseComponentValue();return va(ar)?ar:wa;case"length-percentage":var sr=ir.parseComponentValue();return ya(sr)?sr:wa}}throw new Error("Attempting to parse unsupported css format type "+er.format)},Uc=function(){function ElementContainer(er){this.styles=new Lc(window.getComputedStyle(er,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&_u(er)&&(er.style.transform="none"),this.bounds=nr(er),this.flags=0}return ElementContainer}(),Ic=function(){function TextBounds(er,tr){this.text=er,this.bounds=tr}return TextBounds}(),Rc=function parseTextBounds(er,tr,rr){var nr=Qc(er,tr),ir=[],or=0;return nr.forEach((function(er){if(tr.textDecorationLine.length||er.trim().length>0)if(As.SUPPORT_RANGE_BOUNDS)ir.push(new Ic(er,Oc(rr,or,er.length)));else{var nr=rr.splitText(er.length);ir.push(new Ic(er,Mc(rr))),rr=nr}else As.SUPPORT_RANGE_BOUNDS||(rr=rr.splitText(er.length));or+=er.length})),ir},Mc=function getWrapperBounds(er){var tr=er.ownerDocument;if(tr){var ir=tr.createElement("html2canvaswrapper");ir.appendChild(er.cloneNode(!0));var or=er.parentNode;if(or){or.replaceChild(ir,er);var ar=nr(ir);return ir.firstChild&&or.replaceChild(ir.firstChild,ir),ar}}return new rr(0,0,0,0)},Oc=function getRangeBounds(er,tr,nr){var ir=er.ownerDocument;if(!ir)throw new Error("Node has no owner document");var or=ir.createRange();return or.setStart(er,tr),or.setEnd(er,tr+nr),rr.fromClientRect(or.getBoundingClientRect())},Qc=function breakText(er,tr){return 0!==tr.letterSpacing?or(er).map((function(er){return ar(er)})):Dc(er,tr)},Dc=function breakWords(er,tr){for(var rr,nr=_i(er,{lineBreak:tr.lineBreak,wordBreak:tr.overflowWrap===jl.BREAK_WORD?"break-word":tr.wordBreak}),ir=[];!(rr=nr.next()).done;)rr.value&&ir.push(rr.value.slice());return ir},jc=function(){function TextContainer(er,tr){this.text=Hc(er.data,tr.textTransform),this.textBounds=Rc(this.text,tr,er)}return TextContainer}(),Hc=function transform$1(er,tr){switch(tr){case $l.LOWERCASE:return er.toLowerCase();case $l.CAPITALIZE:return er.replace(Gc,Vc);case $l.UPPERCASE:return er.toUpperCase();default:return er}},Gc=/(^|\s|:|-|\(|\))([a-z])/g,Vc=function capitalize(er,tr,rr){return er.length>0?tr+rr.toUpperCase():er},zc=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,gs.getInstance().addImage(rr.src),rr}return __extends(ImageElementContainer,er),ImageElementContainer}(Uc),Kc=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}(Uc),qc=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,gs.getInstance().addImage(rr.svg),rr}return __extends(SVGElementContainer,er),SVGElementContainer}(Uc),Wc=function(er){function LIElementContainer(tr){var rr=er.call(this,tr)||this;return rr.value=tr.value,rr}return __extends(LIElementContainer,er),LIElementContainer}(Uc),Xc=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}(Uc),Yc=[{type:ur.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Jc=[{type:ur.PERCENTAGE_TOKEN,flags:0,number:50}],$c=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},Zc=function getInputValue(er){var tr=er.type===ru?new Array(er.value.length+1).join("•"):er.value;return 0===tr.length?er.placeholder||"":tr},eu="checkbox",tu="radio",ru="password",nu=707406591,iu=function(er){function InputElementContainer(tr){var rr=er.call(this,tr)||this;switch(rr.type=tr.type.toLowerCase(),rr.checked=tr.checked,rr.value=Zc(tr),rr.type!==eu&&rr.type!==tu||(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=Ys.SOLID,rr.styles.backgroundClip=[Ha.BORDER_BOX],rr.styles.backgroundOrigin=[0],rr.bounds=$c(rr.bounds)),rr.type){case eu:rr.styles.borderTopRightRadius=rr.styles.borderTopLeftRadius=rr.styles.borderBottomRightRadius=rr.styles.borderBottomLeftRadius=Yc;break;case tu:rr.styles.borderTopRightRadius=rr.styles.borderTopLeftRadius=rr.styles.borderBottomRightRadius=rr.styles.borderBottomLeftRadius=Jc}return rr}return __extends(InputElementContainer,er),InputElementContainer}(Uc),ou=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}(Uc),au=function(er){function TextareaElementContainer(tr){var rr=er.call(this,tr)||this;return rr.value=tr.value,rr}return __extends(TextareaElementContainer,er),TextareaElementContainer}(Uc),su=function parseColor(er){return Ia.parse(la.create(er).parseComponentValue())},lu=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=pu(tr.contentWindow.document.documentElement);var nr=tr.contentWindow.document.documentElement?su(getComputedStyle(tr.contentWindow.document.documentElement).backgroundColor):za.TRANSPARENT,ir=tr.contentWindow.document.body?su(getComputedStyle(tr.contentWindow.document.body).backgroundColor):za.TRANSPARENT;rr.backgroundColor=Ra(nr)?Ra(ir)?rr.styles.backgroundColor:ir:nr}}catch(er){}return rr}return __extends(IFrameElementContainer,er),IFrameElementContainer}(Uc),uu=["OL","UL","MENU"],du=function parseNodeTree(er,tr,rr){for(var nr=er.firstChild,ir=void 0;nr;nr=ir)if(ir=nr.nextSibling,gu(nr)&&nr.data.trim().length>0)tr.textNodes.push(new jc(nr,tr.styles));else if(mu(nr)){var or=hu(nr);or.styles.isVisible()&&(Au(nr,or,rr)?or.flags|=4:fu(or.styles)&&(or.flags|=2),-1!==uu.indexOf(nr.tagName)&&(or.flags|=8),tr.elements.push(or),Tu(nr)||xu(nr)||Pu(nr)||parseNodeTree(nr,or,rr))}},hu=function createContainer(er){return Bu(er)?new zc(er):Cu(er)?new Kc(er):xu(er)?new qc(er):yu(er)?new Wc(er):bu(er)?new Xc(er):wu(er)?new iu(er):Pu(er)?new ou(er):Tu(er)?new au(er):Eu(er)?new lu(er):new Uc(er)},pu=function parseTree(er){var tr=hu(er);return tr.flags|=4,du(er,tr,tr),tr},Au=function createsRealStackingContext(er,tr,rr){return tr.styles.isPositionedWithZIndex()||tr.styles.opacity<1||tr.styles.isTransformed()||ku(er)&&rr.styles.isTransparent()},fu=function createsStackingContext(er){return er.isPositioned()||er.isFloating()},gu=function isTextNode(er){return er.nodeType===Node.TEXT_NODE},mu=function isElementNode(er){return er.nodeType===Node.ELEMENT_NODE},_u=function isHTMLElementNode(er){return mu(er)&&void 0!==er.style&&!vu(er)},vu=function isSVGElementNode(er){return"object"===_typeof(er.className)},yu=function isLIElement(er){return"LI"===er.tagName},bu=function isOLElement(er){return"OL"===er.tagName},wu=function isInputElement(er){return"INPUT"===er.tagName},Su=function isHTMLElement(er){return"HTML"===er.tagName},xu=function isSVGElement(er){return"svg"===er.tagName},ku=function isBodyElement(er){return"BODY"===er.tagName},Cu=function isCanvasElement(er){return"CANVAS"===er.tagName},Bu=function isImageElement(er){return"IMG"===er.tagName},Eu=function isIFrameElement(er){return"IFRAME"===er.tagName},Nu=function isStyleElement(er){return"STYLE"===er.tagName},Lu=function isScriptElement(er){return"SCRIPT"===er.tagName},Tu=function isTextareaElement(er){return"TEXTAREA"===er.tagName},Pu=function isSelectElement(er){return"SELECT"===er.tagName},Fu=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,ir=!0;null!==rr&&rr.forEach((function(er){var rr=tr.counters[er.counter];rr&&0!==er.increment&&(ir=!1,rr[Math.max(0,rr.length-1)]+=er.increment)}));var or=[];return ir&&nr.forEach((function(er){var rr=tr.counters[er.counter];or.push(er.counter),rr||(rr=tr.counters[er.counter]=[]),rr.push(er.reset)})),or},CounterState}(),Uu={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"]},Iu={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ru={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Mu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ou=function createAdditiveCounter(er,tr,rr,nr,ir,or){return er<tr||er>rr?Ju(er,ir,or.length>0):nr.integers.reduce((function(tr,rr,ir){for(;er>=rr;)er-=rr,tr+=nr.values[ir];return tr}),"")+or},Qu=function createCounterStyleWithSymbolResolver(er,tr,rr,nr){var ir="";do{rr||er--,ir=nr(er)+ir,er/=tr}while(er*tr>=tr);return ir},Du=function createCounterStyleFromRange(er,tr,rr,nr,ir){var or=rr-tr+1;return(er<0?"-":"")+(Qu(Math.abs(er),or,nr,(function(er){return ar(Math.floor(er%or)+tr)}))+ir)},ju=function createCounterStyleFromSymbols(er,tr,rr){void 0===rr&&(rr=". ");var nr=tr.length;return Qu(Math.abs(er),nr,!1,(function(er){return tr[Math.floor(er%nr)]}))+rr},Hu=1,Gu=2,Vu=4,zu=8,Ku=function createCJKCounter(er,tr,rr,nr,ir,or){if(er<-9999||er>9999)return Ju(er,Pl.CJK_DECIMAL,ir.length>0);var ar=Math.abs(er),sr=ir;if(0===ar)return tr[0]+sr;for(var lr=0;ar>0&&lr<=4;lr++){var cr=ar%10;0===cr&&Sc(or,Hu)&&""!==sr?sr=tr[cr]+sr:cr>1||1===cr&&0===lr||1===cr&&1===lr&&Sc(or,Gu)||1===cr&&1===lr&&Sc(or,Vu)&&er>100||1===cr&&lr>1&&Sc(or,zu)?sr=tr[cr]+(lr>0?rr[lr-1]:"")+sr:1===cr&&lr>0&&(sr=rr[lr-1]+sr),ar=Math.floor(ar/10)}return(er<0?nr:"")+sr},qu="十百千萬",Wu="拾佰仟萬",Xu="マイナス",Yu="마이너스",Ju=function createCounterText(er,tr,rr){var nr=rr?". ":"",ir=rr?"、":"",or=rr?", ":"",ar=rr?" ":"";switch(tr){case Pl.DISC:return"•"+ar;case Pl.CIRCLE:return"◦"+ar;case Pl.SQUARE:return"◾"+ar;case Pl.DECIMAL_LEADING_ZERO:var sr=Du(er,48,57,!0,nr);return sr.length<4?"0"+sr:sr;case Pl.CJK_DECIMAL:return ju(er,"〇一二三四五六七八九",ir);case Pl.LOWER_ROMAN:return Ou(er,1,3999,Uu,Pl.DECIMAL,nr).toLowerCase();case Pl.UPPER_ROMAN:return Ou(er,1,3999,Uu,Pl.DECIMAL,nr);case Pl.LOWER_GREEK:return Du(er,945,969,!1,nr);case Pl.LOWER_ALPHA:return Du(er,97,122,!1,nr);case Pl.UPPER_ALPHA:return Du(er,65,90,!1,nr);case Pl.ARABIC_INDIC:return Du(er,1632,1641,!0,nr);case Pl.ARMENIAN:case Pl.UPPER_ARMENIAN:return Ou(er,1,9999,Iu,Pl.DECIMAL,nr);case Pl.LOWER_ARMENIAN:return Ou(er,1,9999,Iu,Pl.DECIMAL,nr).toLowerCase();case Pl.BENGALI:return Du(er,2534,2543,!0,nr);case Pl.CAMBODIAN:case Pl.KHMER:return Du(er,6112,6121,!0,nr);case Pl.CJK_EARTHLY_BRANCH:return ju(er,"子丑寅卯辰巳午未申酉戌亥",ir);case Pl.CJK_HEAVENLY_STEM:return ju(er,"甲乙丙丁戊己庚辛壬癸",ir);case Pl.CJK_IDEOGRAPHIC:case Pl.TRAD_CHINESE_INFORMAL:return Ku(er,"零一二三四五六七八九",qu,"負",ir,Gu|Vu|zu);case Pl.TRAD_CHINESE_FORMAL:return Ku(er,"零壹貳參肆伍陸柒捌玖",Wu,"負",ir,Hu|Gu|Vu|zu);case Pl.SIMP_CHINESE_INFORMAL:return Ku(er,"零一二三四五六七八九",qu,"负",ir,Gu|Vu|zu);case Pl.SIMP_CHINESE_FORMAL:return Ku(er,"零壹贰叁肆伍陆柒捌玖",Wu,"负",ir,Hu|Gu|Vu|zu);case Pl.JAPANESE_INFORMAL:return Ku(er,"〇一二三四五六七八九","十百千万",Xu,ir,0);case Pl.JAPANESE_FORMAL:return Ku(er,"零壱弐参四伍六七八九","拾百千万",Xu,ir,Hu|Gu|Vu);case Pl.KOREAN_HANGUL_FORMAL:return Ku(er,"영일이삼사오육칠팔구","십백천만",Yu,or,Hu|Gu|Vu);case Pl.KOREAN_HANJA_INFORMAL:return Ku(er,"零一二三四五六七八九","十百千萬",Yu,or,0);case Pl.KOREAN_HANJA_FORMAL:return Ku(er,"零壹貳參四五六七八九","拾百千",Yu,or,Hu|Gu|Vu);case Pl.DEVANAGARI:return Du(er,2406,2415,!0,nr);case Pl.GEORGIAN:return Ou(er,1,19999,Mu,Pl.DECIMAL,nr);case Pl.GUJARATI:return Du(er,2790,2799,!0,nr);case Pl.GURMUKHI:return Du(er,2662,2671,!0,nr);case Pl.HEBREW:return Ou(er,1,10999,Ru,Pl.DECIMAL,nr);case Pl.HIRAGANA:return ju(er,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Pl.HIRAGANA_IROHA:return ju(er,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Pl.KANNADA:return Du(er,3302,3311,!0,nr);case Pl.KATAKANA:return ju(er,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",ir);case Pl.KATAKANA_IROHA:return ju(er,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",ir);case Pl.LAO:return Du(er,3792,3801,!0,nr);case Pl.MONGOLIAN:return Du(er,6160,6169,!0,nr);case Pl.MYANMAR:return Du(er,4160,4169,!0,nr);case Pl.ORIYA:return Du(er,2918,2927,!0,nr);case Pl.PERSIAN:return Du(er,1776,1785,!0,nr);case Pl.TAMIL:return Du(er,3046,3055,!0,nr);case Pl.TELUGU:return Du(er,3174,3183,!0,nr);case Pl.THAI:return Du(er,3664,3673,!0,nr);case Pl.TIBETAN:return Du(er,3872,3881,!0,nr);case Pl.DECIMAL:default:return Du(er,48,57,!0,nr)}},$u="data-html2canvas-ignore",Zu=function(){function DocumentCloner(er,tr){if(this.options=tr,this.scrolledElements=[],this.referenceElement=er,this.counters=new Fu,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=td(er,tr);if(!nr.contentWindow)return Promise.reject("Unable to find iframe window");var ir=er.defaultView.pageXOffset,or=er.defaultView.pageYOffset,ar=nr.contentWindow,sr=ar.document,lr=rd(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(ad),ar&&(ar.scrollTo(tr.left,tr.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||ar.scrollY===tr.top&&ar.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(id(document.doctype)+"<html></html>"),od(this.referenceElement.ownerDocument,ir,or),sr.replaceChild(sr.adoptNode(this.documentElement),sr.documentElement),sr.close(),lr},DocumentCloner.prototype.createElementClone=function(er){if(Cu(er))return this.createCanvasClone(er);if(Nu(er))return this.createStyleClone(er);var tr=er.cloneNode(!1);return Bu(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(fs.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){fs.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"),ir=rr.getContext("2d");return ir&&(nr?ir.putImageData(nr.getImageData(0,0,er.width,er.height),0,0):ir.drawImage(er,0,0)),rr}catch(er){}return rr},DocumentCloner.prototype.cloneNode=function(er){if(gu(er))return document.createTextNode(er.data);if(!er.ownerDocument)return er.cloneNode(!1);var tr=er.ownerDocument.defaultView;if(tr&&mu(er)&&(_u(er)||vu(er))){var rr=this.createElementClone(er),nr=tr.getComputedStyle(er),ir=tr.getComputedStyle(er,":before"),or=tr.getComputedStyle(er,":after");this.referenceElement===er&&_u(rr)&&(this.clonedReferenceElement=rr),ku(rr)&&hd(rr);for(var ar=this.counters.parse(new Pc(nr)),sr=this.resolvePseudoContent(er,rr,ir,bc.BEFORE),lr=er.firstChild;lr;lr=lr.nextSibling)mu(lr)&&(Lu(lr)||lr.hasAttribute($u)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(lr))||this.options.copyStyles&&mu(lr)&&Nu(lr)||rr.appendChild(this.cloneNode(lr));sr&&rr.insertBefore(sr,rr.firstChild);var cr=this.resolvePseudoContent(er,rr,or,bc.AFTER);return cr&&rr.appendChild(cr),this.counters.pop(ar),nr&&(this.options.copyStyles||vu(er))&&!Eu(er)&&nd(nr,rr),0===er.scrollTop&&0===er.scrollLeft||this.scrolledElements.push([rr,er.scrollLeft,er.scrollTop]),(Tu(er)||Pu(er))&&(Tu(rr)||Pu(rr))&&(rr.value=er.value),rr}return er.cloneNode(!1)},DocumentCloner.prototype.resolvePseudoContent=function(er,tr,rr,nr){var ir=this;if(rr){var or=rr.content,ar=tr.ownerDocument;if(ar&&or&&"none"!==or&&"-moz-alt-content"!==or&&"none"!==rr.display){this.counters.parse(new Pc(rr));var sr=new Tc(rr),lr=ar.createElement("html2canvaspseudoelement");nd(rr,lr),sr.content.forEach((function(tr){if(tr.type===ur.STRING_TOKEN)lr.appendChild(ar.createTextNode(tr.value));else if(tr.type===ur.URL_TOKEN){var rr=ar.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(ha);nr.length&&lr.appendChild(ar.createTextNode(er.getAttribute(nr[0].value)||""))}else if("counter"===tr.name){var or=tr.values.filter(ga),cr=or[0],dr=or[1];if(cr&&ha(cr)){var hr=ir.counters.getCounterValue(cr.value),pr=dr&&ha(dr)?Il.parse(dr.value):Pl.DECIMAL;lr.appendChild(ar.createTextNode(Ju(hr,pr,!1)))}}else if("counters"===tr.name){var Ar=tr.values.filter(ga),fr=(cr=Ar[0],Ar[1]);if(dr=Ar[2],cr&&ha(cr)){var gr=ir.counters.getCounterValues(cr.value),mr=dr&&ha(dr)?Il.parse(dr.value):Pl.DECIMAL,_r=fr&&fr.type===ur.STRING_TOKEN?fr.value:"",vr=gr.map((function(er){return Ju(er,mr,!1)})).join(_r);lr.appendChild(ar.createTextNode(vr))}}}else if(tr.type===ur.IDENT_TOKEN)switch(tr.value){case"open-quote":lr.appendChild(ar.createTextNode(Ec(sr.quotes,ir.quoteDepth++,!0)));break;case"close-quote":lr.appendChild(ar.createTextNode(Ec(sr.quotes,--ir.quoteDepth,!1)));break;default:lr.appendChild(ar.createTextNode(tr.value))}})),lr.className=cd+" "+ud;var cr=nr===bc.BEFORE?" "+cd:" "+ud;return vu(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"}(bc||(bc={}));var ed,td=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($u,"true"),er.body.appendChild(rr),rr},rd=function iframeLoader(er){return new Promise((function(tr,rr){var nr=er.contentWindow;if(!nr)return rr("No window assigned for iframe");var ir=nr.document;nr.onload=er.onload=ir.onreadystatechange=function(){nr.onload=er.onload=ir.onreadystatechange=null;var rr=setInterval((function(){ir.body.childNodes.length>0&&"complete"===ir.readyState&&(clearInterval(rr),tr(er))}),50)}}))},nd=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},id=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},od=function restoreOwnerScroll(er,tr,rr){er&&er.defaultView&&(tr!==er.defaultView.pageXOffset||rr!==er.defaultView.pageYOffset)&&er.defaultView.scrollTo(tr,rr)},ad=function restoreNodeScroll(er){var tr=er[0],rr=er[1],nr=er[2];tr.scrollLeft=rr,tr.scrollTop=nr},sd=":before",ld=":after",cd="___html2canvas___pseudoelement_before",ud="___html2canvas___pseudoelement_after",dd='{\n content: "" !important;\n display: none !important;\n}',hd=function createPseudoHideStyles(er){pd(er,"."+cd+sd+dd+"\n ."+ud+ld+dd)},pd=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"}(ed||(ed={}));var Ad,fd=function equalPath(er,tr){return er.length===tr.length&&er.some((function(er,rr){return er===tr[rr]}))},gd=function transformPath(er,tr,rr,nr,ir){return er.map((function(er,or){switch(or){case 0:return er.add(tr,rr);case 1:return er.add(tr+nr,rr);case 2:return er.add(tr+nr,rr+ir);case 3:return er.add(tr,rr+ir)}return er}))},md=function(){function Vector(er,tr){this.type=ed.VECTOR,this.x=er,this.y=tr}return Vector.prototype.add=function(er,tr){return new Vector(this.x+er,this.y+tr)},Vector}(),_d=function lerp(er,tr,rr){return new md(er.x+(tr.x-er.x)*rr,er.y+(tr.y-er.y)*rr)},vd=function(){function BezierCurve(er,tr,rr,nr){this.type=ed.BEZIER_CURVE,this.start=er,this.startControl=tr,this.endControl=rr,this.end=nr}return BezierCurve.prototype.subdivide=function(er,tr){var rr=_d(this.start,this.startControl,er),nr=_d(this.startControl,this.endControl,er),ir=_d(this.endControl,this.end,er),or=_d(rr,nr,er),ar=_d(nr,ir,er),sr=_d(or,ar,er);return tr?new BezierCurve(this.start,rr,or,sr):new BezierCurve(sr,ar,ir,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}(),yd=function isBezierCurve(er){return er.type===ed.BEZIER_CURVE},bd=function(){function BoundCurves(er){var tr=er.styles,rr=er.bounds,nr=ka(tr.borderTopLeftRadius,rr.width,rr.height),ir=nr[0],or=nr[1],ar=ka(tr.borderTopRightRadius,rr.width,rr.height),sr=ar[0],lr=ar[1],cr=ka(tr.borderBottomRightRadius,rr.width,rr.height),ur=cr[0],dr=cr[1],hr=ka(tr.borderBottomLeftRadius,rr.width,rr.height),pr=hr[0],Ar=hr[1],fr=[];fr.push((ir+sr)/rr.width),fr.push((pr+ur)/rr.width),fr.push((or+Ar)/rr.height),fr.push((lr+dr)/rr.height);var gr=Math.max.apply(Math,fr);gr>1&&(ir/=gr,or/=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,Sr=tr.borderBottomWidth,xr=tr.borderLeftWidth,kr=Ca(tr.paddingTop,er.bounds.width),Cr=Ca(tr.paddingRight,er.bounds.width),Br=Ca(tr.paddingBottom,er.bounds.width),Er=Ca(tr.paddingLeft,er.bounds.width);this.topLeftBorderBox=ir>0||or>0?wd(rr.left,rr.top,ir,or,Ad.TOP_LEFT):new md(rr.left,rr.top),this.topRightBorderBox=sr>0||lr>0?wd(rr.left+mr,rr.top,sr,lr,Ad.TOP_RIGHT):new md(rr.left+rr.width,rr.top),this.bottomRightBorderBox=ur>0||dr>0?wd(rr.left+vr,rr.top+_r,ur,dr,Ad.BOTTOM_RIGHT):new md(rr.left+rr.width,rr.top+rr.height),this.bottomLeftBorderBox=pr>0||Ar>0?wd(rr.left,rr.top+yr,pr,Ar,Ad.BOTTOM_LEFT):new md(rr.left,rr.top+rr.height),this.topLeftPaddingBox=ir>0||or>0?wd(rr.left+xr,rr.top+br,Math.max(0,ir-xr),Math.max(0,or-br),Ad.TOP_LEFT):new md(rr.left+xr,rr.top+br),this.topRightPaddingBox=sr>0||lr>0?wd(rr.left+Math.min(mr,rr.width+xr),rr.top+br,mr>rr.width+xr?0:sr-xr,lr-br,Ad.TOP_RIGHT):new md(rr.left+rr.width-wr,rr.top+br),this.bottomRightPaddingBox=ur>0||dr>0?wd(rr.left+Math.min(vr,rr.width-xr),rr.top+Math.min(_r,rr.height+br),Math.max(0,ur-wr),dr-Sr,Ad.BOTTOM_RIGHT):new md(rr.left+rr.width-wr,rr.top+rr.height-Sr),this.bottomLeftPaddingBox=pr>0||Ar>0?wd(rr.left+xr,rr.top+yr,Math.max(0,pr-xr),Ar-Sr,Ad.BOTTOM_LEFT):new md(rr.left+xr,rr.top+rr.height-Sr),this.topLeftContentBox=ir>0||or>0?wd(rr.left+xr+Er,rr.top+br+kr,Math.max(0,ir-(xr+Er)),Math.max(0,or-(br+kr)),Ad.TOP_LEFT):new md(rr.left+xr+Er,rr.top+br+kr),this.topRightContentBox=sr>0||lr>0?wd(rr.left+Math.min(mr,rr.width+xr+Er),rr.top+br+kr,mr>rr.width+xr+Er?0:sr-xr+Er,lr-(br+kr),Ad.TOP_RIGHT):new md(rr.left+rr.width-(wr+Cr),rr.top+br+kr),this.bottomRightContentBox=ur>0||dr>0?wd(rr.left+Math.min(vr,rr.width-(xr+Er)),rr.top+Math.min(_r,rr.height+br+kr),Math.max(0,ur-(wr+Cr)),dr-(Sr+Br),Ad.BOTTOM_RIGHT):new md(rr.left+rr.width-(wr+Cr),rr.top+rr.height-(Sr+Br)),this.bottomLeftContentBox=pr>0||Ar>0?wd(rr.left+xr+Er,rr.top+yr,Math.max(0,pr-(xr+Er)),Ar-(Sr+Br),Ad.BOTTOM_LEFT):new md(rr.left+xr+Er,rr.top+rr.height-(Sr+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"}(Ad||(Ad={}));var wd=function getCurvePoints(er,tr,rr,nr,ir){var or=(Math.sqrt(2)-1)/3*4,ar=rr*or,sr=nr*or,lr=er+rr,cr=tr+nr;switch(ir){case Ad.TOP_LEFT:return new vd(new md(er,cr),new md(er,cr-sr),new md(lr-ar,tr),new md(lr,tr));case Ad.TOP_RIGHT:return new vd(new md(er,tr),new md(er+ar,tr),new md(lr,cr-sr),new md(lr,cr));case Ad.BOTTOM_RIGHT:return new vd(new md(lr,tr),new md(lr,tr+sr),new md(er+ar,cr),new md(er,cr));case Ad.BOTTOM_LEFT:default:return new vd(new md(lr,cr),new md(lr-ar,cr),new md(er,tr+sr),new md(er,tr))}},Sd=function calculateBorderBoxPath(er){return[er.topLeftBorderBox,er.topRightBorderBox,er.bottomRightBorderBox,er.bottomLeftBorderBox]},xd=function calculateContentBoxPath(er){return[er.topLeftContentBox,er.topRightContentBox,er.bottomRightContentBox,er.bottomLeftContentBox]},kd=function calculatePaddingBoxPath(er){return[er.topLeftPaddingBox,er.topRightPaddingBox,er.bottomRightPaddingBox,er.bottomLeftPaddingBox]},Cd=function(){function TransformEffect(er,tr,rr){this.type=0,this.offsetX=er,this.offsetY=tr,this.matrix=rr,this.target=6}return TransformEffect}(),Bd=function(){function ClipEffect(er,tr){this.type=1,this.target=tr,this.path=er}return ClipEffect}(),Ed=function isTransformEffect(er){return 0===er.type},Nd=function isClipEffect(er){return 1===er.type},Ld=function(){function StackingContext(er){this.element=er,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return StackingContext}(),Td=function(){function ElementPaint(er,tr){if(this.container=er,this.effects=tr.slice(0),this.curves=new bd(er),null!==er.styles.transform){var rr=er.bounds.left+er.styles.transformOrigin[0].number,nr=er.bounds.top+er.styles.transformOrigin[1].number,ir=er.styles.transform;this.effects.push(new Cd(rr,nr,ir))}if(er.styles.overflowX!==Ul.VISIBLE){var or=Sd(this.curves),ar=kd(this.curves);fd(or,ar)?this.effects.push(new Bd(or,6)):(this.effects.push(new Bd(or,2)),this.effects.push(new Bd(ar,4)))}}return ElementPaint.prototype.getParentEffects=function(){var er=this.effects.slice(0);if(this.container.styles.overflowX!==Ul.VISIBLE){var tr=Sd(this.curves),rr=kd(this.curves);fd(tr,rr)||er.push(new Bd(rr,6))}return er},ElementPaint}(),Pd=function parseStackTree(er,tr,rr,nr){er.container.elements.forEach((function(ir){var or=Sc(ir.flags,4),ar=Sc(ir.flags,2),sr=new Td(ir,er.getParentEffects());Sc(ir.styles.display,2048)&&nr.push(sr);var lr=Sc(ir.flags,8)?[]:nr;if(or||ar){var cr=or||ir.styles.isPositioned()?rr:tr,ur=new Ld(sr);if(ir.styles.isPositioned()||ir.styles.opacity<1||ir.styles.isTransformed()){var dr=ir.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 ir.styles.isFloating()?cr.nonPositionedFloats.push(ur):cr.nonPositionedInlineLevel.push(ur);parseStackTree(sr,ur,or?ur:rr,lr)}else ir.styles.isInlineLevel()?tr.inlineLevel.push(sr):tr.nonInlineLevel.push(sr),parseStackTree(sr,tr,rr,lr);Sc(ir.flags,8)&&Fd(ir,lr)}))},Fd=function processListItems(er,tr){for(var rr=er instanceof Xc?er.start:1,nr=er instanceof Xc&&er.reversed,ir=0;ir<tr.length;ir++){var or=tr[ir];or.container instanceof Wc&&"number"==typeof or.container.value&&0!==or.container.value&&(rr=or.container.value),or.listValue=Ju(rr,or.container.styles.listStyleType,!0),rr+=nr?-1:1}},Ud=function parseStackingContexts(er){var tr=new Td(er,[]),rr=new Ld(tr),nr=[];return Pd(tr,rr,rr,nr),Fd(tr.container,nr),rr},Id=function parsePathForBorder(er,tr){switch(tr){case 0:return Rd(er.topLeftBorderBox,er.topLeftPaddingBox,er.topRightBorderBox,er.topRightPaddingBox);case 1:return Rd(er.topRightBorderBox,er.topRightPaddingBox,er.bottomRightBorderBox,er.bottomRightPaddingBox);case 2:return Rd(er.bottomRightBorderBox,er.bottomRightPaddingBox,er.bottomLeftBorderBox,er.bottomLeftPaddingBox);case 3:default:return Rd(er.bottomLeftBorderBox,er.bottomLeftPaddingBox,er.topLeftBorderBox,er.topLeftPaddingBox)}},Rd=function createPathFromCurves(er,tr,rr,nr){var ir=[];return yd(er)?ir.push(er.subdivide(.5,!1)):ir.push(er),yd(rr)?ir.push(rr.subdivide(.5,!0)):ir.push(rr),yd(nr)?ir.push(nr.subdivide(.5,!0).reverse()):ir.push(nr),yd(tr)?ir.push(tr.subdivide(.5,!1).reverse()):ir.push(tr),ir},Md=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))},Od=function contentBox(er){var tr=er.styles,rr=er.bounds,nr=Ca(tr.paddingLeft,rr.width),ir=Ca(tr.paddingRight,rr.width),or=Ca(tr.paddingTop,rr.width),ar=Ca(tr.paddingBottom,rr.width);return rr.add(nr+tr.borderLeftWidth,or+tr.borderTopWidth,-(tr.borderRightWidth+tr.borderLeftWidth+nr+ir),-(tr.borderTopWidth+tr.borderBottomWidth+or+ar))},Qd=function calculateBackgroundPositioningArea(er,tr){return 0===er?tr.bounds:2===er?Od(tr):Md(tr)},Dd=function calculateBackgroundPaintingArea(er,tr){return er===Ha.BORDER_BOX?tr.bounds:er===Ha.CONTENT_BOX?Od(tr):Md(tr)},jd=function calculateBackgroundRendering(er,tr,rr){var nr=Qd(zd(er.styles.backgroundOrigin,tr),er),ir=Dd(zd(er.styles.backgroundClip,tr),er),or=Vd(zd(er.styles.backgroundSize,tr),rr,nr),ar=or[0],sr=or[1],lr=ka(zd(er.styles.backgroundPosition,tr),nr.width-ar,nr.height-sr);return[Kd(zd(er.styles.backgroundRepeat,tr),lr,or,nr,ir),Math.round(nr.left+lr[0]),Math.round(nr.top+lr[1]),ar,sr]},Hd=function isAuto(er){return ha(er)&&er.value===qs.AUTO},Gd=function hasIntrinsicValue(er){return"number"==typeof er},Vd=function calculateBackgroundSize(er,tr,rr){var nr=tr[0],ir=tr[1],or=tr[2],ar=er[0],sr=er[1];if(ya(ar)&&sr&&ya(sr))return[Ca(ar,rr.width),Ca(sr,rr.height)];var lr=Gd(or);if(ha(ar)&&(ar.value===qs.CONTAIN||ar.value===qs.COVER))return Gd(or)?rr.width/rr.height<or!=(ar.value===qs.COVER)?[rr.width,rr.width/or]:[rr.height*or,rr.height]:[rr.width,rr.height];var cr=Gd(nr),ur=Gd(ir),dr=cr||ur;if(Hd(ar)&&(!sr||Hd(sr)))return cr&&ur?[nr,ir]:lr||dr?dr&&lr?[cr?nr:ir*or,ur?ir:nr/or]:[cr?nr:rr.width,ur?ir:rr.height]:[rr.width,rr.height];if(lr){var hr=0,pr=0;return ya(ar)?hr=Ca(ar,rr.width):ya(sr)&&(pr=Ca(sr,rr.height)),Hd(ar)?hr=pr*or:sr&&!Hd(sr)||(pr=hr/or),[hr,pr]}var Ar=null,fr=null;if(ya(ar)?Ar=Ca(ar,rr.width):sr&&ya(sr)&&(fr=Ca(sr,rr.height)),null===Ar||sr&&!Hd(sr)||(fr=cr&&ur?Ar/nr*ir:rr.height),null!==fr&&Hd(ar)&&(Ar=cr&&ur?fr/ir*nr:rr.width),null!==Ar&&null!==fr)return[Ar,fr];throw new Error("Unable to calculate background-size for element")},zd=function getBackgroundValueForIndex(er,tr){var rr=er[tr];return void 0===rr?er[0]:rr},Kd=function calculateBackgroundRepeatPath(er,tr,rr,nr,ir){var or=tr[0],ar=tr[1],sr=rr[0],lr=rr[1];switch(er){case Hs.REPEAT_X:return[new md(Math.round(nr.left),Math.round(nr.top+ar)),new md(Math.round(nr.left+nr.width),Math.round(nr.top+ar)),new md(Math.round(nr.left+nr.width),Math.round(lr+nr.top+ar)),new md(Math.round(nr.left),Math.round(lr+nr.top+ar))];case Hs.REPEAT_Y:return[new md(Math.round(nr.left+or),Math.round(nr.top)),new md(Math.round(nr.left+or+sr),Math.round(nr.top)),new md(Math.round(nr.left+or+sr),Math.round(nr.height+nr.top)),new md(Math.round(nr.left+or),Math.round(nr.height+nr.top))];case Hs.NO_REPEAT:return[new md(Math.round(nr.left+or),Math.round(nr.top+ar)),new md(Math.round(nr.left+or+sr),Math.round(nr.top+ar)),new md(Math.round(nr.left+or+sr),Math.round(nr.top+ar+lr)),new md(Math.round(nr.left+or),Math.round(nr.top+ar+lr))];default:return[new md(Math.round(ir.left),Math.round(ir.top)),new md(Math.round(ir.left+ir.width),Math.round(ir.top)),new md(Math.round(ir.left+ir.width),Math.round(ir.height+ir.top)),new md(Math.round(ir.left),Math.round(ir.height+ir.top))]}},qd="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Wd="Hidden Text",Xd=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"),ir=this._document.createElement("span"),or=this._document.body;rr.style.visibility="hidden",rr.style.fontFamily=er,rr.style.fontSize=tr,rr.style.margin="0",rr.style.padding="0",or.appendChild(rr),nr.src=qd,nr.width=1,nr.height=1,nr.style.margin="0",nr.style.padding="0",nr.style.verticalAlign="baseline",ir.style.fontFamily=er,ir.style.fontSize=tr,ir.style.margin="0",ir.style.padding="0",ir.appendChild(this._document.createTextNode(Wd)),rr.appendChild(ir),rr.appendChild(nr);var ar=nr.offsetTop-ir.offsetTop+2;rr.removeChild(ir),rr.appendChild(this._document.createTextNode(Wd)),rr.style.lineHeight="normal",nr.style.verticalAlign="super";var sr=nr.offsetTop-rr.offsetTop+2;return or.removeChild(rr),{baseline:ar,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}(),Yd=1e4,Jd=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 Xd(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=[],fs.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 Sc(er.target,tr)})).forEach((function(er){return rr.applyEffect(er)}))},CanvasRenderer.prototype.applyEffect=function(er){this.ctx.save(),Ed(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)),Nd(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):or(er.text).map((function(er){return ar(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=ua(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,ir,or,ar=this;return __generator(this,(function(sr){return rr=this.createFontStyle(tr),nr=rr[0],ir=rr[1],or=rr[2],this.ctx.font=nr,er.textBounds.forEach((function(er){ar.ctx.fillStyle=Ma(tr.color),ar.renderTextWithLetterSpacing(er,tr.letterSpacing);var rr=tr.textShadow;rr.length&&er.text.trim().length&&(rr.slice(0).reverse().forEach((function(tr){ar.ctx.shadowColor=Ma(tr.color),ar.ctx.shadowOffsetX=tr.offsetX.number*ar.options.scale,ar.ctx.shadowOffsetY=tr.offsetY.number*ar.options.scale,ar.ctx.shadowBlur=tr.blur.number,ar.ctx.fillText(er.text,er.bounds.left,er.bounds.top+er.bounds.height)})),ar.ctx.shadowColor="",ar.ctx.shadowOffsetX=0,ar.ctx.shadowOffsetY=0,ar.ctx.shadowBlur=0),tr.textDecorationLine.length&&(ar.ctx.fillStyle=Ma(tr.textDecorationColor||tr.color),tr.textDecorationLine.forEach((function(tr){switch(tr){case 1:var rr=ar.fontMetrics.getMetrics(ir,or).baseline;ar.ctx.fillRect(er.bounds.left,Math.round(er.bounds.top+rr),er.bounds.width,1);break;case 2:ar.ctx.fillRect(er.bounds.left,Math.round(er.bounds.top),er.bounds.width,1);break;case 3:var nr=ar.fontMetrics.getMetrics(ir,or).middle;ar.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=Od(er),ir=kd(tr);this.path(ir),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,ir,or,ar,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,ir=tr.styles,or=0,ar=tr.textNodes,gr.label=1;case 1:return or<ar.length?(sr=ar[or],[4,this.renderTextNode(sr,ir)]):[3,4];case 2:gr.sent(),gr.label=3;case 3:return or++,[3,1];case 4:if(!(tr instanceof zc))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(),fs.getInstance(this.options.id).error("Error loading image "+tr.src),[3,8];case 8:if(tr instanceof Kc&&this.renderReplacedElement(tr,nr,tr.canvas),!(tr instanceof qc))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(),fs.getInstance(this.options.id).error("Error loading svg "+tr.svg.substring(0,255)),[3,12];case 12:return tr instanceof lu&&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 iu&&(cr=Math.min(tr.bounds.width,tr.bounds.height),tr.type===eu?tr.checked&&(this.ctx.save(),this.path([new md(tr.bounds.left+.39363*cr,tr.bounds.top+.79*cr),new md(tr.bounds.left+.16*cr,tr.bounds.top+.5549*cr),new md(tr.bounds.left+.27347*cr,tr.bounds.top+.44071*cr),new md(tr.bounds.left+.39694*cr,tr.bounds.top+.5649*cr),new md(tr.bounds.left+.72983*cr,tr.bounds.top+.23*cr),new md(tr.bounds.left+.84*cr,tr.bounds.top+.34085*cr),new md(tr.bounds.left+.39363*cr,tr.bounds.top+.79*cr)]),this.ctx.fillStyle=Ma(nu),this.ctx.fill(),this.ctx.restore()):tr.type===tu&&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=Ma(nu),this.ctx.fill(),this.ctx.restore())),$d(tr)&&tr.value.length){switch(this.ctx.font=this.createFontStyle(ir)[0],this.ctx.fillStyle=Ma(ir.color),this.ctx.textBaseline="middle",this.ctx.textAlign=eh(tr.styles.textAlign),fr=Od(tr),ur=0,tr.styles.textAlign){case Gl.CENTER:ur+=fr.width/2;break;case Gl.RIGHT:ur+=fr.width}dr=fr.add(ur,0,0,-fr.height/2+1),this.ctx.save(),this.path([new md(fr.left,fr.top),new md(fr.left+fr.width,fr.top),new md(fr.left+fr.width,fr.top+fr.height),new md(fr.left,fr.top+fr.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ic(tr.value,dr),ir.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!Sc(tr.styles.display,2048))return[3,20];if(null===tr.styles.listStyleImage)return[3,19];if((hr=tr.styles.listStyleImage).type!==Ka.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(),fs.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!==Pl.NONE&&(this.ctx.font=this.createFontStyle(ir)[0],this.ctx.fillStyle=Ma(ir.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",fr=new rr(tr.bounds.left,tr.bounds.top+Ca(tr.styles.paddingTop,tr.bounds.width),tr.bounds.width,Ll(ir.lineHeight,ir.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ic(er.listValue,fr),ir.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,ir,or,ar,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,ir=er.nonInlineLevel,gr.label=7;case 7:return nr<ir.length?(fr=ir[nr],[4,this.renderNode(fr)]):[3,10];case 8:gr.sent(),gr.label=9;case 9:return nr++,[3,7];case 10:or=0,ar=er.nonPositionedFloats,gr.label=11;case 11:return or<ar.length?(fr=ar[or],[4,this.renderStack(fr)]):[3,14];case 12:gr.sent(),gr.label=13;case 13:return or++,[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=yd(er)?er.start:er;0===rr?tr.ctx.moveTo(nr.x,nr.y):tr.ctx.lineTo(nr.x,nr.y),yd(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,ir,or,ar;return __generator(this,(function(sr){switch(sr.label){case 0:tr=er.styles.backgroundImage.length-1,rr=function _loop_1(rr){var ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr,Cr,Br,Er,Nr,Lr,Tr,Pr,Fr,Ur;return __generator(this,(function(Ir){switch(Ir.label){case 0:if(rr.type!==Ka.URL)return[3,5];ir=void 0,or=rr.url,Ir.label=1;case 1:return Ir.trys.push([1,3,,4]),[4,nr.options.cache.match(or)];case 2:return ir=Ir.sent(),[3,4];case 3:return Ir.sent(),fs.getInstance(nr.options.id).error("Error loading background-image "+or),[3,4];case 4:return ir&&(ar=jd(er,tr,[ir.width,ir.height,ir.width/ir.height]),vr=ar[0],kr=ar[1],Cr=ar[2],wr=ar[3],Sr=ar[4],mr=nr.ctx.createPattern(nr.resizeImage(ir,wr,Sr),"repeat"),nr.renderRepeat(vr,mr,kr,Cr)),[3,6];case 5:Qs(rr)?(sr=jd(er,tr,[null,null,null]),vr=sr[0],kr=sr[1],Cr=sr[2],wr=sr[3],Sr=sr[4],lr=$a(rr.angle,wr,Sr),cr=lr[0],ur=lr[1],dr=lr[2],hr=lr[3],pr=lr[4],(Ar=document.createElement("canvas")).width=wr,Ar.height=Sr,fr=Ar.getContext("2d"),gr=fr.createLinearGradient(ur,hr,dr,pr),Ya(rr.stops,cr).forEach((function(er){return gr.addColorStop(er.stop,Ma(er.color))})),fr.fillStyle=gr,fr.fillRect(0,0,wr,Sr),wr>0&&Sr>0&&(mr=nr.ctx.createPattern(Ar,"repeat"),nr.renderRepeat(vr,mr,kr,Cr))):Ds(rr)&&(_r=jd(er,tr,[null,null,null]),vr=_r[0],yr=_r[1],br=_r[2],wr=_r[3],Sr=_r[4],xr=0===rr.position.length?[Sa]:rr.position,kr=Ca(xr[0],wr),Cr=Ca(xr[xr.length-1],Sr),Br=ts(rr,kr,Cr,wr,Sr),Er=Br[0],Nr=Br[1],Er>0&&Er>0&&(Lr=nr.ctx.createRadialGradient(yr+kr,br+Cr,0,yr+kr,br+Cr,Er),Ya(rr.stops,2*Er).forEach((function(er){return Lr.addColorStop(er.stop,Ma(er.color))})),nr.path(vr),nr.ctx.fillStyle=Lr,Er!==Nr?(Tr=er.bounds.left+.5*er.bounds.width,Pr=er.bounds.top+.5*er.bounds.height,Ur=1/(Fr=Nr/Er),nr.ctx.save(),nr.ctx.translate(Tr,Pr),nr.ctx.transform(1,0,0,Fr,0,0),nr.ctx.translate(-Tr,-Pr),nr.ctx.fillRect(yr,Ur*(br-Pr)+Pr,wr,Sr*Ur),nr.ctx.restore()):nr.ctx.fill())),Ir.label=6;case 6:return tr--,[2]}}))},nr=this,ir=0,or=er.styles.backgroundImage.slice(0).reverse(),sr.label=1;case 1:return ir<or.length?(ar=or[ir],[5,rr(ar)]):[3,4];case 2:sr.sent(),sr.label=3;case 3:return ir++,[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(Id(rr,tr)),this.ctx.fillStyle=Ma(er),this.ctx.fill(),[2]}))}))},CanvasRenderer.prototype.renderNodeBackgroundAndBorders=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or,ar,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=!Ra(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}],ir=Zd(zd(tr.backgroundClip,0),er.curves),rr||tr.boxShadow.length?(this.ctx.save(),this.path(ir),this.ctx.clip(),Ra(tr.backgroundColor)||(this.ctx.fillStyle=Ma(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=Sd(er.curves),nr=tr.inset?0:Yd,ir=gd(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(ir)):(cr.mask(rr),cr.ctx.clip(),cr.path(ir)),cr.ctx.shadowOffsetX=tr.offsetX.number+nr,cr.ctx.shadowOffsetY=tr.offsetY.number,cr.ctx.shadowColor=Ma(tr.color),cr.ctx.shadowBlur=tr.blur.number,cr.ctx.fillStyle=tr.inset?Ma(tr.color):"rgba(0,0,0,1)",cr.ctx.fill(),cr.ctx.restore()})),ur.label=2;case 2:or=0,ar=0,sr=nr,ur.label=3;case 3:return ar<sr.length?(lr=sr[ar]).style===Ys.NONE||Ra(lr.color)?[3,5]:[4,this.renderBorder(lr.color,or,er.curves)]:[3,7];case 4:ur.sent(),ur.label=5;case 5:or++,ur.label=6;case 6:return ar++,[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=Ma(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),tr=Ud(er),[4,this.renderStack(tr)];case 1:return rr.sent(),this.applyEffects([],2),[2,this.canvas]}}))}))},CanvasRenderer}(),$d=function isTextInputElement(er){return er instanceof au||er instanceof ou||er instanceof iu&&er.type!==tu&&er.type!==eu},Zd=function calculateBackgroundCurvedPaintingArea(er,tr){switch(er){case Ha.BORDER_BOX:return Sd(tr);case Ha.CONTENT_BOX:return xd(tr);case Ha.PADDING_BOX:default:return kd(tr)}},eh=function canvasTextAlign(er){switch(er){case Gl.CENTER:return"center";case Gl.RIGHT:return"right";case Gl.LEFT:default:return"left"}},th=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),fs.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=hs(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,er),[4,rh(tr)];case 1:return rr=nr.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ma(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(rr,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},ForeignObjectRenderer}(),rh=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))}))},nh=void 0,ih=function parseColor$1(er){return Ia.parse(la.create(er).parseComponentValue())},oh=function html2canvas(er,tr){return void 0===tr&&(tr={}),ah(er,tr)};"undefined"!=typeof window&&gs.setContext(window);var ah=function renderElement(er,or){return __awaiter(nh,void 0,void 0,(function(){var ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr,Cr,Br,Er;return __generator(this,(function(Nr){switch(Nr.label){case 0:if(!(ar=er.ownerDocument))throw new Error("Element is not attached to a Document");if(!(sr=ar.defaultView))throw new Error("Document is not attached to a Window");return lr=(Math.round(1e3*Math.random())+Date.now()).toString(16),cr=ku(er)||Su(er)?ir(ar):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},or),fr={backgroundColor:"#ffffff",cache:or.cache?or.cache:gs.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,or),mr=new rr(gr.scrollX,gr.scrollY,gr.windowWidth,gr.windowHeight),fs.create({id:lr,enabled:gr.logging}),fs.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(ar,mr)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return yr=Nr.sent(),br=ar.documentElement?ih(getComputedStyle(ar.documentElement).backgroundColor):za.TRANSPARENT,wr=ar.body?ih(getComputedStyle(ar.body).backgroundColor):za.TRANSPARENT,Sr=or.backgroundColor,xr="string"==typeof Sr?ih(Sr):null===Sr?za.TRANSPARENT:4294967295,kr=er===ar.documentElement?Ra(br)?Ra(wr)?xr:wr:br:xr,Cr={id:lr,cache:gr.cache,canvas:gr.canvas,backgroundColor:kr,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?(fs.getInstance(lr).debug("Document cloned, using foreign object rendering"),[4,new th(Cr).render(vr)]):[3,3];case 2:return Br=Nr.sent(),[3,5];case 3:return fs.getInstance(lr).debug("Document cloned, using computed rendering"),gs.attachInstance(gr.cache),fs.getInstance(lr).debug("Starting DOM parsing"),Er=pu(vr),gs.detachInstance(),kr===Er.styles.backgroundColor&&(Er.styles.backgroundColor=za.TRANSPARENT),fs.getInstance(lr).debug("Starting renderer"),[4,new Jd(Cr).render(Er)];case 4:Br=Nr.sent(),Nr.label=5;case 5:return!0===gr.removeContainer&&(Zu.destroy(yr)||fs.getInstance(lr).error("Cannot detach cloned iframe as it is not in the DOM anymore")),fs.getInstance(lr).debug("Finished rendering"),fs.destroy(lr),gs.destroy(lr),[2,Br]}}))}))};return oh}()})),rU=Object.freeze(Object.assign(Object.create(null),tU,{default:tU})),nU=Object.isFrozen,iU=fails((function(){nU(1)}));_export({target:"Object",stat:!0,forced:iU},{isFrozen:function isFrozen(er){return!isObject(er)||!!nU&&nU(er)}});var oU=jv.onFreeze,aU=Object.seal,sU=fails((function(){aU(1)}));_export({target:"Object",stat:!0,forced:sU,sham:!Dv},{seal:function seal(er){return aU&&isObject(er)?aU(oU(er)):er}});var lU=getBuiltIn("Reflect","apply"),cU=Function.apply,uU=!fails((function(){lU((function(){}))}));_export({target:"Reflect",stat:!0,forced:uU},{apply:function apply(er,tr,rr){return aFunction$1(er),anObject(rr),lU?lU(er,tr,rr):cU.call(er,tr,rr)}});var dU=getBuiltIn("Reflect","construct"),hU=fails((function(){function F(){}return!(dU((function(){}),[],F)instanceof F)})),pU=!fails((function(){dU((function(){}))})),AU=hU||pU;_export({target:"Reflect",stat:!0,forced:AU,sham:AU},{construct:function construct(er,tr){aFunction$1(er),anObject(tr);var rr=arguments.length<3?er:aFunction$1(arguments[2]);if(pU&&!hU)return dU(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(ls.apply(er,nr))}var ir=rr.prototype,or=Ci(isObject(ir)?ir:Object.prototype),ar=Function.apply.call(er,or,tr);return isObject(ar)?ar:or}});var fU=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,ir=Object.freeze,or=Object.seal,ar="undefined"!=typeof Reflect&&Reflect,sr=ar.apply,lr=ar.construct;sr||(sr=function apply(er,tr,rr){return er.apply(tr,rr)}),ir||(ir=function freeze(er){return er}),or||(or=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),ir=1;ir<rr;ir++)nr[ir-1]=arguments[ir];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 ir=nr.length;ir--;){var or=nr[ir];if("string"==typeof or){var ar=fr(or);ar!==or&&(rr(nr)||(nr[ir]=ar),or=ar)}er[or]=!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 Sr=ir(["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=ir(["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"]),kr=ir(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cr=ir(["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=ir(["#text"]),Er=ir(["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=ir(["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=ir(["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"]),Tr=ir(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Pr=or(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Fr=or(/<%[\s\S]*|[\s\S]*%>/gm),Ur=or(/^data-[\-\w.\u00B7-\uFFFF]/),Ir=or(/^aria-[\-\w]+$/),Rr=or(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Mr=or(/^(?:\w+script|data):/i),Or=or(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),Qr="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":Qr(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 ir="dompurify"+(rr?"#"+rr:"");try{return er.createPolicy(ir,{createHTML:function createHTML(er){return er}})}catch(er){return console.warn("TrustedTypes policy "+ir+" 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,or=!1,ar=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=ar.createElement("template");Yr.content&&Yr.content.ownerDocument&&(ar=Yr.content.ownerDocument)}var Jr=jr(Xr,rr),$r=Jr&&gi?Jr.createHTML(""):"",Zr=ar,Tn=Zr.implementation,Un=Zr.createNodeIterator,Qn=Zr.getElementsByTagName,Dn=Zr.createDocumentFragment,Hn=rr.importNode,Gn={};tr.isSupported=Tn&&void 0!==Tn.createHTMLDocument&&9!==ar.documentMode;var Vn=Pr,zn=Fr,Kn=Ur,Wn=Ir,Xn=Mr,Yn=Or,Jn=Rr,$n=null,Zn=addToSet({},[].concat(_toConsumableArray$1(Sr),_toConsumableArray$1(xr),_toConsumableArray$1(kr),_toConsumableArray$1(Cr),_toConsumableArray$1(Br))),ei=null,ti=addToSet({},[].concat(_toConsumableArray$1(Er),_toConsumableArray$1(Nr),_toConsumableArray$1(Lr),_toConsumableArray$1(Tr))),ri=null,ni=null,ii=!0,oi=!0,ai=!1,si=!1,li=!1,ui=!1,di=!1,hi=!1,pi=!1,Ai=!1,fi=!1,gi=!1,mi=!0,_i=!0,vi=!1,yi={},wi=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Si=null,xi=addToSet({},["audio","video","img","source","image","track"]),ki=null,Ci=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Bi=null,Ei=ar.createElement("form"),Ni=function _parseConfig(er){Bi&&Bi===er||(er&&"object"===(void 0===er?"undefined":Qr(er))||(er={}),$n="ALLOWED_TAGS"in er?addToSet({},er.ALLOWED_TAGS):Zn,ei="ALLOWED_ATTR"in er?addToSet({},er.ALLOWED_ATTR):ti,ki="ADD_URI_SAFE_ATTR"in er?addToSet(clone(Ci),er.ADD_URI_SAFE_ATTR):Ci,Si="ADD_DATA_URI_TAGS"in er?addToSet(clone(xi),er.ADD_DATA_URI_TAGS):xi,ri="FORBID_TAGS"in er?addToSet({},er.FORBID_TAGS):{},ni="FORBID_ATTR"in er?addToSet({},er.FORBID_ATTR):{},yi="USE_PROFILES"in er&&er.USE_PROFILES,ii=!1!==er.ALLOW_ARIA_ATTR,oi=!1!==er.ALLOW_DATA_ATTR,ai=er.ALLOW_UNKNOWN_PROTOCOLS||!1,si=er.SAFE_FOR_JQUERY||!1,li=er.SAFE_FOR_TEMPLATES||!1,ui=er.WHOLE_DOCUMENT||!1,pi=er.RETURN_DOM||!1,Ai=er.RETURN_DOM_FRAGMENT||!1,fi=er.RETURN_DOM_IMPORT||!1,gi=er.RETURN_TRUSTED_TYPE||!1,hi=er.FORCE_BODY||!1,mi=!1!==er.SANITIZE_DOM,_i=!1!==er.KEEP_CONTENT,vi=er.IN_PLACE||!1,Jn=er.ALLOWED_URI_REGEXP||Jn,li&&(oi=!1),Ai&&(pi=!0),yi&&($n=addToSet({},[].concat(_toConsumableArray$1(Br))),ei=[],!0===yi.html&&(addToSet($n,Sr),addToSet(ei,Er)),!0===yi.svg&&(addToSet($n,xr),addToSet(ei,Nr),addToSet(ei,Tr)),!0===yi.svgFilters&&(addToSet($n,kr),addToSet(ei,Nr),addToSet(ei,Tr)),!0===yi.mathMl&&(addToSet($n,Cr),addToSet(ei,Lr),addToSet(ei,Tr))),er.ADD_TAGS&&($n===Zn&&($n=clone($n)),addToSet($n,er.ADD_TAGS)),er.ADD_ATTR&&(ei===ti&&(ei=clone(ei)),addToSet(ei,er.ADD_ATTR)),er.ADD_URI_SAFE_ATTR&&addToSet(ki,er.ADD_URI_SAFE_ATTR),_i&&($n["#text"]=!0),ui&&addToSet($n,["html","head","body"]),$n.table&&(addToSet($n,["tbody"]),delete ri.tbody),ir&&ir(er),Bi=er)},Li=function _forceRemove(er){pr(tr.removed,{element:er});try{er.parentNode.removeChild(er)}catch(tr){er.outerHTML=$r}},Ti=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)},Pi=function _initDocument(er){var tr=void 0,rr=void 0;if(hi)er="<remove></remove>"+er;else{var nr=gr(er,/^[\r\n\t ]+/);rr=nr&&nr[0]}var ir=Jr?Jr.createHTML(er):er;try{tr=(new Wr).parseFromString(ir,"text/html")}catch(er){}if(or&&addToSet(ri,["title"]),!tr||!tr.documentElement){var sr=(tr=Tn.createHTMLDocument("")).body;sr.parentNode.removeChild(sr.parentNode.firstElementChild),sr.outerHTML=ir}return er&&rr&&tr.body.insertBefore(ar.createTextNode(rr),tr.body.childNodes[0]||null),Qn.call(tr,ui?"html":"body")[0]};tr.isSupported&&function(){try{var er=Pi("<x/><title></title><img>");yr(/<\/title/,er.querySelector("title").innerHTML)&&(or=!0)}catch(er){}}();var Fi=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)},Ui=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)},Ii=function _isNode(er){return"object"===(void 0===Hr?"undefined":Qr(Hr))?er instanceof Hr:er&&"object"===(void 0===er?"undefined":Qr(er))&&"number"==typeof er.nodeType&&"string"==typeof er.nodeName},Ri=function _executeHook(er,rr,nr){Gn[er]&&cr(Gn[er],(function(er){er.call(tr,rr,nr,Bi)}))},Mi=function _sanitizeElements(er){var rr=void 0;if(Ri("beforeSanitizeElements",er,null),Ui(er))return Li(er),!0;var nr=fr(er.nodeName);if(Ri("uponSanitizeElement",er,{tagName:nr,allowedTags:$n}),("svg"===nr||"math"===nr)&&0!==er.querySelectorAll("p, br").length)return Li(er),!0;if(!$n[nr]||ri[nr]){if(_i&&!wi[nr]&&"function"==typeof er.insertAdjacentHTML)try{var ir=er.innerHTML;er.insertAdjacentHTML("AfterEnd",Jr?Jr.createHTML(ir):ir)}catch(er){}return Li(er),!0}return"noscript"===nr&&yr(/<\/noscript/i,er.innerHTML)||"noembed"===nr&&yr(/<\/noembed/i,er.innerHTML)?(Li(er),!0):(!si||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,"<")),li&&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)),Ri("afterSanitizeElements",er,null),!1)},Oi=function _isValidAttribute(er,tr,rr){if(mi&&("id"===tr||"name"===tr)&&(rr in ar||rr in Ei))return!1;if(oi&&yr(Kn,tr));else if(ii&&yr(Wn,tr));else{if(!ei[tr]||ni[tr])return!1;if(ki[tr]);else if(yr(Jn,mr(rr,Yn,"")));else if("src"!==tr&&"xlink:href"!==tr&&"href"!==tr||"script"===er||0!==_r(rr,"data:")||!Si[er])if(ai&&!yr(Xn,mr(rr,Yn,"")));else if(rr)return!1}return!0},Qi=function _sanitizeAttributes(er){var rr=void 0,ir=void 0,or=void 0,ar=void 0,sr=void 0;Ri("beforeSanitizeAttributes",er,null);var lr=er.attributes;if(lr){var cr={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ei};for(sr=lr.length;sr--;){var pr=rr=lr[sr],gr=pr.name,_r=pr.namespaceURI;if(ir=vr(rr.value),or=fr(gr),cr.attrName=or,cr.attrValue=ir,cr.keepAttr=!0,cr.forceKeepAttr=void 0,Ri("uponSanitizeAttribute",er,cr),ir=cr.attrValue,!cr.forceKeepAttr){if("name"===or&&"IMG"===er.nodeName&&lr.id)ar=lr.id,lr=Ar(lr,[]),Ti("id",er),Ti(gr,er),ur(lr,ar)>sr&&er.setAttribute("id",ar.value);else{if("INPUT"===er.nodeName&&"type"===or&&"file"===ir&&cr.keepAttr&&(ei[or]||!ni[or]))continue;"id"===gr&&er.setAttribute(gr,""),Ti(gr,er)}if(cr.keepAttr)if(si&&yr(/\/>/i,ir))Ti(gr,er);else if(yr(/svg|math/i,er.namespaceURI)&&yr(br("</("+dr(nr(wi),"|")+")","i"),ir))Ti(gr,er);else{li&&(ir=mr(ir,Vn," "),ir=mr(ir,zn," "));var wr=er.nodeName.toLowerCase();if(Oi(wr,or,ir))try{_r?er.setAttributeNS(_r,gr,ir):er.setAttribute(gr,ir),hr(tr.removed)}catch(er){}}}}Ri("afterSanitizeAttributes",er,null)}},Di=function _sanitizeShadowDOM(er){var tr=void 0,rr=Fi(er);for(Ri("beforeSanitizeShadowDOM",er,null);tr=rr.nextNode();)Ri("uponSanitizeShadowNode",tr,null),Mi(tr)||(tr.content instanceof sr&&_sanitizeShadowDOM(tr.content),Qi(tr));Ri("afterSanitizeShadowDOM",er,null)};return tr.sanitize=function(nr,ir){var or=void 0,ar=void 0,lr=void 0,cr=void 0,ur=void 0;if(nr||(nr="\x3c!--\x3e"),"string"!=typeof nr&&!Ii(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"===Qr(er.toStaticHTML)||"function"==typeof er.toStaticHTML){if("string"==typeof nr)return er.toStaticHTML(nr);if(Ii(nr))return er.toStaticHTML(nr.outerHTML)}return nr}if(di||Ni(ir),tr.removed=[],"string"==typeof nr&&(vi=!1),vi);else if(nr instanceof Hr)1===(ar=(or=Pi("\x3c!--\x3e")).ownerDocument.importNode(nr,!0)).nodeType&&"BODY"===ar.nodeName||"HTML"===ar.nodeName?or=ar:or.appendChild(ar);else{if(!pi&&!li&&!ui&&-1===nr.indexOf("<"))return Jr&&gi?Jr.createHTML(nr):nr;if(!(or=Pi(nr)))return pi?null:$r}or&&hi&&Li(or.firstChild);for(var dr=Fi(vi?nr:or);lr=dr.nextNode();)3===lr.nodeType&&lr===cr||Mi(lr)||(lr.content instanceof sr&&Di(lr.content),Qi(lr),cr=lr);if(cr=null,vi)return nr;if(pi){if(Ai)for(ur=Dn.call(or.ownerDocument);or.firstChild;)ur.appendChild(or.firstChild);else ur=or;return fi&&(ur=Hn.call(rr,ur,!0)),ur}var hr=ui?or.outerHTML:or.innerHTML;return li&&(hr=mr(hr,Vn," "),hr=mr(hr,zn," ")),Jr&&gi?Jr.createHTML(hr):hr},tr.setConfig=function(er){Ni(er),di=!0},tr.clearConfig=function(){Bi=null,di=!1},tr.isValidAttribute=function(er,tr,rr){Bi||Ni({});var nr=fr(er),ir=fr(tr);return Oi(nr,ir,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()}()})),gU=Object.freeze(Object.assign(Object.create(null),fU,{default:fU})),mU=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"}}}),_U=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"}}}),vU=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"}}}),yU=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"}}}),bU=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"}}}),wU=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"}}}),SU=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"}}}),xU=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"}}}),kU=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"}}}),CU=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"}}}),BU=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"}}}),EU=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",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"}}}),NU=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"}}}),LU=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"}}}),TU=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"}}}),PU=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"}}}),FU=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"}}}),UU=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"}}}),IU=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"}}}),RU=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"}}}),MU=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"}}}),OU=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"}}}),QU=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"}}}),DU=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"}}}),jU=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"}}}),HU=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"}}}),GU=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"}}}),VU=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"}}}),zU=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"}}}),KU=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"}}}),qU=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"}}}),WU=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"}}}),XU=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"}}}),YU=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"}}}),JU=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"}}}),$U=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"}}}),ZU=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"}}}),eI=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"}}}),tI=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"}}}),rI=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"}}}),nI=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"}}}),iI=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:"Текст может показываться не так как должен"}}}),oI=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"}}}),aI=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"}}}),sI=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"}}}),lI=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"}}}),cI=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"}}}),uI=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"}}}),dI=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"}}}),hI=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"}}}),pI=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"}}}),AI=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"}}}),fI=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"}}}),gI=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"}}}),mI=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"}}}),_I=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"}}}),vI=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"}}}),yI=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"}}})}}}));
|