PageSourceSearch

https://www.zidatech.ch/dist/assets/index.es-7b40c69d.js

js zidatech.ch collected 2026-09-29 00:55:53 UTC 156,555 bytes, 18 lines download raw bytes

1var oh=Object.defineProperty;var v=(a,e)=>oh(a,"name",{value:e,configurable:!0});import{c as Ze,_ as Wa}from"./app-e79c52a2.js";var gt=v(function(a){return a&&a.Math===Math&&a},"check"),L=gt(typeof globalThis=="object"&&globalThis)||gt(typeof window=="object"&&window)||gt(typeof self=="object"&&self)||gt(typeof Ze=="object"&&Ze)||gt(typeof Ze=="object"&&Ze)||function(){return this}()||Function("return this")(),Ct={},k=v(function(a){try{return!!a()}catch(e){return!0}},"fails$l"),uh=k,fe=!uh(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),lh=k,wr=!lh(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),hh=wr,Xt=Function.prototype.call,X=hh?Xt.bind(Xt):function(){return Xt.apply(Xt,arguments)},Go={},Ho={}.propertyIsEnumerable,Yo=Object.getOwnPropertyDescriptor,vh=Yo&&!Ho.call({1:2},1);Go.f=vh?v(function(e){var t=Yo(this,e);return!!t&&t.enumerable},"propertyIsEnumerable"):Ho;var wi=v(function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},"createPropertyDescriptor$3"),Xo=wr,Wo=Function.prototype,qa=Wo.call,fh=Xo&&Wo.bind.bind(qa,qa),B=Xo?fh:function(a){return function(){return qa.apply(a,arguments)}},qo=B,ch=qo({}.toString),gh=qo("".slice),Fe=v(function(a){return gh(ch(a),8,-1)},"classofRaw$2"),dh=B,ph=k,yh=Fe,ra=Object,mh=dh("".split),Qo=ph(function(){return!ra("z").propertyIsEnumerable(0)})?function(a){return yh(a)==="String"?mh(a,""):ra(a)}:ra,Cr=v(function(a){return a==null},"isNullOrUndefined$4"),bh=Cr,xh=TypeError,ce=v(function(a){if(bh(a))throw new xh("Can't call method on "+a);return a},"requireObjectCoercible$b"),Th=Qo,Oh=ce,At=v(function(a){return Th(Oh(a))},"toIndexedObject$5"),aa=typeof document=="object"&&document.all,j=typeof aa=="undefined"&&aa!==void 0?function(a){return typeof a=="function"||a===aa}:function(a){return typeof a=="function"},Sh=j,ie=v(function(a){return typeof a=="object"?a!==null:Sh(a)},"isObject$e"),ia=L,$h=j,Eh=v(function(a){return $h(a)?a:void 0},"aFunction"),ze=v(function(a,e){return arguments.length<2?Eh(ia[a]):ia[a]&&ia[a][e]},"getBuiltIn$7"),wh=B,Ar=wh({}.isPrototypeOf),Ch=L,En=Ch.navigator,wn=En&&En.userAgent,Pt=wn?String(wn):"",Ko=L,na=Pt,Cn=Ko.process,An=Ko.Deno,Pn=Cn&&Cn.versions||An&&An.version,Rn=Pn&&Pn.v8,ve,br;Rn&&(ve=Rn.split("."),br=ve[0]>0&&ve[0]<4?1:+(ve[0]+ve[1]));!br&&na&&(ve=na.match(/Edge\/(\d+)/),(!ve||ve[1]>=74)&&(ve=na.match(/Chrome\/(\d+)/),ve&&(br=+ve[1])));var Ci=br,Nn=Ci,Ah=k,Ph=L,Rh=Ph.String,Zo=!!Object.getOwnPropertySymbols&&!Ah(function(){var a=Symbol("symbol detection");return!Rh(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&Nn&&Nn<41}),Nh=Zo,Jo=Nh&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ih=ze,Mh=j,_h=Ar,Vh=Jo,Dh=Object,eu=Vh?function(a){return typeof a=="symbol"}:function(a){var e=Ih("Symbol");return Mh(e)&&_h(e.prototype,Dh(a))},Lh=String,Pr=v(function(a){try{return Lh(a)}catch(e){return"Object"}},"tryToString$4"),kh=j,Bh=Pr,jh=TypeError,$e=v(function(a){if(kh(a))return a;throw new jh(Bh(a)+" is not a function")},"aCallable$9"),Uh=$e,Fh=Cr,lt=v(function(a,e){var t=a[e];return Fh(t)?void 0:Uh(t)},"getMethod$6"),sa=X,oa=j,ua=ie,zh=TypeError,Gh=v(function(a,e){var t,r;if(e==="string"&&oa(t=a.toString)&&!ua(r=sa(t,a))||oa(t=a.valueOf)&&!ua(r=sa(t,a))||e!=="string"&&oa(t=a.toString)&&!ua(r=sa(t,a)))return r;throw new zh("Can't convert object to primitive value")},"ordinaryToPrimitive$1"),St={},Hh={get exports(){return St},set exports(a){St=a}},In=L,Yh=Object.defineProperty,Ai=v(function(a,e){try{Yh(In,a,{value:e,configurable:!0,writable:!0})}catch(t){In[a]=e}return e},"defineGlobalProperty$3"),Xh=L,Wh=Ai,Mn="__core-js_shared__",_n=Hh.exports=Xh[Mn]||Wh(Mn,{});(_n.versions||(_n.versions=[])).push({version:"3.42.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Vn=St,Pi=v(function(a,e){return Vn[a]||(Vn[a]=e||{})},"shared$4"),qh=ce,Qh=Object,Rr=v(function(a){return Qh(qh(a))},"toObject$4"),Kh=B,Zh=Rr,Jh=Kh({}.hasOwnProperty),ge=Object.hasOwn||v(function(e,t){return Jh(Zh(e),t)},"hasOwn"),ev=B,tv=0,rv=Math.random(),av=ev(1 .toString),tu=v(function(a){return"Symbol("+(a===void 0?"":a)+")_"+av(++tv+rv,36)},"uid$2"),iv=L,nv=Pi,Dn=ge,sv=tu,ov=Zo,uv=Jo,Je=iv.Symbol,la=nv("wks"),lv=uv?Je.for||Je:Je&&Je.withoutSetter||sv,H=v(function(a){return Dn(la,a)||(la[a]=ov&&Dn(Je,a)?Je[a
1]:lv("Symbol."+a)),la[a]},"wellKnownSymbol$i"),hv=X,Ln=ie,kn=eu,vv=lt,fv=Gh,cv=H,gv=TypeError,dv=cv("toPrimitive"),pv=v(function(a,e){if(!Ln(a)||kn(a))return a;var t=vv(a,dv),r;if(t){if(e===void 0&&(e="default"),r=hv(t,a,e),!Ln(r)||kn(r))return r;throw new gv("Can't convert object to primitive value")}return e===void 0&&(e="number"),fv(a,e)},"toPrimitive$2"),yv=pv,mv=eu,ru=v(function(a){var e=yv(a,"string");return mv(e)?e:e+""},"toPropertyKey$3"),bv=L,Bn=ie,Qa=bv.document,xv=Bn(Qa)&&Bn(Qa.createElement),Nr=v(function(a){return xv?Qa.createElement(a):{}},"documentCreateElement$2"),Tv=fe,Ov=k,Sv=Nr,au=!Tv&&!Ov(function(){return Object.defineProperty(Sv("div"),"a",{get:function(){return 7}}).a!==7}),$v=fe,Ev=X,wv=Go,Cv=wi,Av=At,Pv=ru,Rv=ge,Nv=au,jn=Object.getOwnPropertyDescriptor;Ct.f=$v?jn:v(function(e,t){if(e=Av(e),t=Pv(t),Nv)try{return jn(e,t)}catch(r){}if(Rv(e,t))return Cv(!Ev(wv.f,e,t),e[t])},"getOwnPropertyDescriptor");var Ee={},Iv=fe,Mv=k,iu=Iv&&Mv(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),_v=ie,Vv=String,Dv=TypeError,ee=v(function(a){if(_v(a))return a;throw new Dv(Vv(a)+" is not an object")},"anObject$f"),Lv=fe,kv=au,Bv=iu,Wt=ee,Un=ru,jv=TypeError,ha=Object.defineProperty,Uv=Object.getOwnPropertyDescriptor,va="enumerable",fa="configurable",ca="writable";Ee.f=Lv?Bv?v(function(e,t,r){if(Wt(e),t=Un(t),Wt(r),typeof e=="function"&&t==="prototype"&&"value"in r&&ca in r&&!r[ca]){var i=Uv(e,t);i&&i[ca]&&(e[t]=r.value,r={configurable:fa in r?r[fa]:i[fa],enumerable:va in r?r[va]:i[va],writable:!1})}return ha(e,t,r)},"defineProperty"):ha:v(function(e,t,r){if(Wt(e),t=Un(t),Wt(r),kv)try{return ha(e,t,r)}catch(i){}if("get"in r||"set"in r)throw new jv("Accessors not supported");return"value"in r&&(e[t]=r.value),e},"defineProperty");var Fv=fe,zv=Ee,Gv=wi,Rt=Fv?function(a,e,t){return zv.f(a,e,Gv(1,t))}:function(a,e,t){return a[e]=t,a},xr={},Hv={get exports(){return xr},set exports(a){xr=a}},Ka=fe,Yv=ge,nu=Function.prototype,Xv=Ka&&Object.getOwnPropertyDescriptor,Ri=Yv(nu,"name"),Wv=Ri&&v(function(){},"something").name==="something",qv=Ri&&(!Ka||Ka&&Xv(nu,"name").configurable),Ir={EXISTS:Ri,PROPER:Wv,CONFIGURABLE:qv},Qv=B,Kv=j,Za=St,Zv=Qv(Function.toString);Kv(Za.inspectSource)||(Za.inspectSource=function(a){return Zv(a)});var Ni=Za.inspectSource,Jv=L,ef=j,Fn=Jv.WeakMap,tf=ef(Fn)&&/native code/.test(String(Fn)),rf=Pi,af=tu,zn=rf("keys"),Ii=v(function(a){return zn[a]||(zn[a]=af(a))},"sharedKey$3"),Mi={},nf=tf,su=L,sf=ie,of=Rt,ga=ge,da=St,uf=Ii,lf=Mi,Gn="Object already initialized",Ja=su.TypeError,hf=su.WeakMap,Tr,$t,Or,vf=v(function(a){return Or(a)?$t(a):Tr(a,{})},"enforce"),ff=v(function(a){return function(e){var t;if(!sf(e)||(t=$t(e)).type!==a)throw new Ja("Incompatible receiver, "+a+" required");return t}},"getterFor");if(nf||da.state){var pe=da.state||(da.state=new hf);pe.get=pe.get,pe.has=pe.has,pe.set=pe.set,Tr=v(function(a,e){if(pe.has(a))throw new Ja(Gn);return e.facade=a,pe.set(a,e),e},"set$1"),$t=v(function(a){return pe.get(a)||{}},"get"),Or=v(function(a){return pe.has(a)},"has")}else{var Xe=uf("state");lf[Xe]=!0,Tr=v(function(a,e){if(ga(a,Xe))throw new Ja(Gn);return e.facade=a,of(a,Xe,e),e},"set$1"),$t=v(function(a){return ga(a,Xe)?a[Xe]:{}},"get"),Or=v(function(a){return ga(a,Xe)},"has")}var Mr={set:Tr,get:$t,has:Or,enforce:vf,getterFor:ff},_i=B,cf=k,gf=j,qt=ge,ei=fe,df=Ir.CONFIGURABLE,pf=Ni,ou=Mr,yf=ou.enforce,mf=ou.get,Hn=String,fr=Object.defineProperty,bf=_i("".slice),xf=_i("".replace),Tf=_i([].join),Of=ei&&!cf(function(){return fr(function(){},"length",{value:8}).length!==8}),Sf=String(String).split("String"),$f=Hv.exports=function(a,e,t){bf(Hn(e),0,7)==="Symbol("&&(e="["+xf(Hn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!qt(a,"name")||df&&a.name!==e)&&(ei?fr(a,"name",{value:e,configurable:!0}):a.name=e),Of&&t&&qt(t,"arity")&&a.length!==t.arity&&fr(a,"length",{value:t.arity});try{t&&qt(t,"constructor")&&t.constructor?ei&&fr(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch(i){}var r=yf(a);return qt(r,"source")||(r.source=Tf(Sf,typeof e=="string"?e:"")),a};Function.prototype.toString=$f(v(function(){return gf(this)&&mf(this).source||pf(this)},"toString"),"toString");var Ef=j,wf=Ee,Cf=xr,Af=Ai,Ge=v(function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Ef(t)&&Cf(t,n,r),r.global)i?a[e]=t:Af(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch(o){}
1i?a[e]=t:wf.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},"defineBuiltIn$7"),uu={},Pf=Math.ceil,Rf=Math.floor,Nf=Math.trunc||v(function(e){var t=+e;return(t>0?Rf:Pf)(t)},"trunc"),If=Nf,_r=v(function(a){var e=+a;return e!==e||e===0?0:If(e)},"toIntegerOrInfinity$4"),Mf=_r,_f=Math.max,Vf=Math.min,Df=v(function(a,e){var t=Mf(a);return t<0?_f(t+e,0):Vf(t,e)},"toAbsoluteIndex$1"),Lf=_r,kf=Math.min,ht=v(function(a){var e=Lf(a);return e>0?kf(e,9007199254740991):0},"toLength$6"),Bf=ht,Vi=v(function(a){return Bf(a.length)},"lengthOfArrayLike$3"),jf=At,Uf=Df,Ff=Vi,Yn=v(function(a){return function(e,t,r){var i=jf(e),n=Ff(i);if(n===0)return!a&&-1;var o=Uf(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},"createMethod$3"),lu={includes:Yn(!0),indexOf:Yn(!1)},zf=B,pa=ge,Gf=At,Hf=lu.indexOf,Yf=Mi,Xn=zf([].push),hu=v(function(a,e){var t=Gf(a),r=0,i=[],n;for(n in t)!pa(Yf,n)&&pa(t,n)&&Xn(i,n);for(;e.length>r;)pa(t,n=e[r++])&&(~Hf(i,n)||Xn(i,n));return i},"objectKeysInternal"),Di=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xf=hu,Wf=Di,qf=Wf.concat("length","prototype");uu.f=Object.getOwnPropertyNames||v(function(e){return Xf(e,qf)},"getOwnPropertyNames");var vu={};vu.f=Object.getOwnPropertySymbols;var Qf=ze,Kf=B,Zf=uu,Jf=vu,ec=ee,tc=Kf([].concat),rc=Qf("Reflect","ownKeys")||v(function(e){var t=Zf.f(ec(e)),r=Jf.f;return r?tc(t,r(e)):t},"ownKeys"),Wn=ge,ac=rc,ic=Ct,nc=Ee,sc=v(function(a,e,t){for(var r=ac(e),i=nc.f,n=ic.f,o=0;o<r.length;o++){var s=r[o];!Wn(a,s)&&!(t&&Wn(t,s))&&i(a,s,n(e,s))}},"copyConstructorProperties$1"),oc=k,uc=j,lc=/#|\.prototype\./,Nt=v(function(a,e){var t=vc[hc(a)];return t===cc?!0:t===fc?!1:uc(e)?oc(e):!!e},"isForced$2"),hc=Nt.normalize=function(a){return String(a).replace(lc,".").toLowerCase()},vc=Nt.data={},fc=Nt.NATIVE="N",cc=Nt.POLYFILL="P",fu=Nt,Qt=L,gc=Ct.f,dc=Rt,pc=Ge,yc=Ai,mc=sc,bc=fu,te=v(function(a,e){var t=a.target,r=a.global,i=a.stat,n,o,s,u,l,h;if(r?o=Qt:i?o=Qt[t]||yc(t,{}):o=Qt[t]&&Qt[t].prototype,o)for(s in e){if(l=e[s],a.dontCallGetSet?(h=gc(o,s),u=h&&h.value):u=o[s],n=bc(r?s:t+(i?".":"#")+s,a.forced),!n&&u!==void 0){if(typeof l==typeof u)continue;mc(l,u)}(a.sham||u&&u.sham)&&dc(l,"sham",!0),pc(o,s,l,a)}},"_export"),dt=L,xc=Pt,Tc=Fe,Kt=v(function(a){return xc.slice(0,a.length)===a},"userAgentStartsWith"),cu=function(){return Kt("Bun/")?"BUN":Kt("Cloudflare-Workers")?"CLOUDFLARE":Kt("Deno/")?"DENO":Kt("Node.js/")?"NODE":dt.Bun&&typeof Bun.version=="string"?"BUN":dt.Deno&&typeof Deno.version=="object"?"DENO":Tc(dt.process)==="process"?"NODE":dt.window&&dt.document?"BROWSER":"REST"}(),Oc=cu,Vr=Oc==="NODE",Sc=B,$c=$e,Ec=v(function(a,e,t){try{return Sc($c(Object.getOwnPropertyDescriptor(a,e)[t]))}catch(r){}},"functionUncurryThisAccessor"),wc=ie,Cc=v(function(a){return wc(a)||a===null},"isPossiblePrototype$1"),Ac=Cc,Pc=String,Rc=TypeError,Nc=v(function(a){if(Ac(a))return a;throw new Rc("Can't set "+Pc(a)+" as a prototype")},"aPossiblePrototype$1"),Ic=Ec,Mc=ie,_c=ce,Vc=Nc,gu=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,e={},t;try{t=Ic(Object.prototype,"__proto__","set"),t(e,[]),a=e instanceof Array}catch(r){}return v(function(i,n){return _c(i),Vc(n),Mc(i)&&(a?t(i,n):i.__proto__=n),i},"setPrototypeOf")}():void 0),Dc=Ee.f,Lc=ge,kc=H,qn=kc("toStringTag"),Dr=v(function(a,e,t){a&&!t&&(a=a.prototype),a&&!Lc(a,qn)&&Dc(a,qn,{configurable:!0,value:e})},"setToStringTag$4"),Qn=xr,Bc=Ee,jc=v(function(a,e,t){return t.get&&Qn(t.get,e,{getter:!0}),t.set&&Qn(t.set,e,{setter:!0}),Bc.f(a,e,t)},"defineBuiltInAccessor$1"),Uc=ze,Fc=jc,zc=H,Gc=fe,Kn=zc("species"),Hc=v(function(a){var e=Uc(a);Gc&&e&&!e[Kn]&&Fc(e,Kn,{configurable:!0,get:function(){return this}})},"setSpecies$1"),Yc=Ar,Xc=TypeError,Wc=v(function(a,e){if(Yc(e,a))return a;throw new Xc("Incorrect invocation")},"anInstance$1"),qc=H,Qc=qc("toStringTag"),du={};du[Qc]="z";var Kc=String(du)==="[object z]",Zc=Kc,Jc=j,cr=Fe,eg=H,tg=eg("toStringTag"),rg=Object,ag=cr(function(){return arguments}())==="Arguments",ig=v(function(a,e){try{return a[e]}catch(t){}},"tryGet"),Li=Zc?cr:function(a){var e,t,r;return a===void 0?"Undefined":a===null?"Null":typeof(t=ig(e=rg(a),tg))=="string"?t:ag?cr(e):(r=cr(e))==="Object"&&Jc(e.callee)?"Arguments":r},ng=B,sg=k,pu=j,og=Li,ug=ze,lg=Ni,yu=v(function(){},"noop$1"),mu=ug("Reflect","construct"),ki=/^\s*(?:class|function)\b/,hg=ng(ki.exec),vg=!ki.test(yu),pt=v(function(e){if(!pu(e))return!1;try{return mu(yu,[],e),!0}catch(t){return!1}},"isConstructor"),bu=v(function(e){if(!pu(e))return!1;switch(og(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vg||!!hg(ki,lg(e))}catch(t){return!0}},"isConstructor");bu.sham=!0;var fg=!mu||sg(function(){var a;return pt(pt.call)||!pt(Object)||!pt(function(){a=!0})||a}
1)?bu:pt,cg=fg,gg=Pr,dg=TypeError,pg=v(function(a){if(cg(a))return a;throw new dg(gg(a)+" is not a constructor")},"aConstructor$1"),Zn=ee,yg=pg,mg=Cr,bg=H,xg=bg("species"),xu=v(function(a,e){var t=Zn(a).constructor,r;return t===void 0||mg(r=Zn(t)[xg])?e:yg(r)},"speciesConstructor$2"),Tg=wr,Tu=Function.prototype,Jn=Tu.apply,es=Tu.call,Ou=typeof Reflect=="object"&&Reflect.apply||(Tg?es.bind(Jn):function(){return es.apply(Jn,arguments)}),Og=Fe,Sg=B,Lr=v(function(a){if(Og(a)==="Function")return Sg(a)},"functionUncurryThisClause"),ts=Lr,$g=$e,Eg=wr,wg=ts(ts.bind),Bi=v(function(a,e){return $g(a),e===void 0?a:Eg?wg(a,e):function(){return a.apply(e,arguments)}},"functionBindContext"),Cg=ze,Su=Cg("document","documentElement"),Ag=B,Pg=Ag([].slice),Rg=TypeError,Ng=v(function(a,e){if(a<e)throw new Rg("Not enough arguments");return a},"validateArgumentsLength$1"),Ig=Pt,$u=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ig),ne=L,Mg=Ou,_g=Bi,rs=j,Vg=ge,Eu=k,as=Su,Dg=Pg,is=Nr,Lg=Ng,kg=$u,Bg=Vr,ti=ne.setImmediate,ri=ne.clearImmediate,jg=ne.process,ya=ne.Dispatch,Ug=ne.Function,ns=ne.MessageChannel,Fg=ne.String,ma=0,Tt={},ss="onreadystatechange",Et,Ve,ba,xa;Eu(function(){Et=ne.location});var ji=v(function(a){if(Vg(Tt,a)){var e=Tt[a];delete Tt[a],e()}},"run"),Ta=v(function(a){return function(){ji(a)}},"runner"),os=v(function(a){ji(a.data)},"eventListener"),us=v(function(a){ne.postMessage(Fg(a),Et.protocol+"//"+Et.host)},"globalPostMessageDefer");(!ti||!ri)&&(ti=v(function(e){Lg(arguments.length,1);var t=rs(e)?e:Ug(e),r=Dg(arguments,1);return Tt[++ma]=function(){Mg(t,void 0,r)},Ve(ma),ma},"setImmediate"),ri=v(function(e){delete Tt[e]},"clearImmediate"),Bg?Ve=v(function(a){jg.nextTick(Ta(a))},"defer"):ya&&ya.now?Ve=v(function(a){ya.now(Ta(a))},"defer"):ns&&!kg?(ba=new ns,xa=ba.port2,ba.port1.onmessage=os,Ve=_g(xa.postMessage,xa)):ne.addEventListener&&rs(ne.postMessage)&&!ne.importScripts&&Et&&Et.protocol!=="file:"&&!Eu(us)?(Ve=us,ne.addEventListener("message",os,!1)):ss in is("script")?Ve=v(function(a){as.appendChild(is("script"))[ss]=function(){as.removeChild(this),ji(a)}},"defer"):Ve=v(function(a){setTimeout(Ta(a),0)},"defer"));var wu={set:ti,clear:ri},ls=L,zg=fe,Gg=Object.getOwnPropertyDescriptor,Hg=v(function(a){if(!zg)return ls[a];var e=Gg(ls,a);return e&&e.value},"safeGetBuiltIn$1"),Cu=v(function(){this.head=null,this.tail=null},"Queue$2");Cu.prototype={add:function(a){var e={item:a,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var a=this.head;if(a){var e=this.head=a.next;return e===null&&(this.tail=null),a.item}}};var Au=Cu,Yg=Pt,Xg=/ipad|iphone|ipod/i.test(Yg)&&typeof Pebble!="undefined",Wg=Pt,qg=/web0s(?!.*chrome)/i.test(Wg),st=L,Qg=Hg,hs=Bi,Oa=wu.set,Kg=Au,Zg=$u,Jg=Xg,ed=qg,Sa=Vr,vs=st.MutationObserver||st.WebKitMutationObserver,fs=st.document,cs=st.process,Zt=st.Promise,ai=Qg("queueMicrotask"),We,$a,Ea,Jt,gs;if(!ai){var er=new Kg,tr=v(function(){var a,e;for(Sa&&(a=cs.domain)&&a.exit();e=er.get();)try{e()}catch(t){throw er.head&&We(),t}a&&a.enter()},"flush");!Zg&&!Sa&&!ed&&vs&&fs?($a=!0,Ea=fs.createTextNode(""),new vs(tr).observe(Ea,{characterData:!0}),We=v(function(){Ea.data=$a=!$a},"notify$1")):!Jg&&Zt&&Zt.resolve?(Jt=Zt.resolve(void 0),Jt.constructor=Zt,gs=hs(Jt.then,Jt),We=v(function(){gs(tr)},"notify$1")):Sa?We=v(function(){cs.nextTick(tr)},"notify$1"):(Oa=hs(Oa,st),We=v(function(){Oa(tr)},"notify$1")),ai=v(function(a){er.head||We(),er.add(a)},"microtask$1")}var td=ai,rd=v(function(a,e){try{arguments.length===1?console.error(a):console.error(a,e)}catch(t){}},"hostReportErrors$1"),Ui=v(function(a){try{return{error:!1,value:a()}}catch(e){return{error:!0,value:e}}},"perform$3"),ad=L,kr=ad.Promise,id=L,Ot=kr,nd=j,sd=fu,od=Ni,ud=H,ds=cu,wa=Ci;Ot&&Ot.prototype;var ld=ud("species"),ii=!1,Pu=nd(id.PromiseRejectionEvent),hd=sd("Promise",function(){var a=od(Ot),e=a!==String(Ot);if(!e&&wa===66)return!0;if(!wa||wa<51||!/native code/.test(a)){var t=new Ot(function(n){n(1)}),r=v(function(n){n(function(){},function(){})},"FakePromise"),i=t.constructor={};if(i[ld]=r,ii=t.then(function(){})instanceof r,!ii)return!0}return!e&&(ds==="BROWSER"||ds==="DENO")&&!Pu}),It={CONSTRUCTOR:hd,REJECTION_EVENT:Pu,SUBCLASSING:ii},vt={},ps=$e,vd=TypeError,fd=v(function(a){var e,t;this.promise=new a(function(r,i){if(e!==void 0||t!==void 0)throw new vd("Bad Promise constructor");e=r,t=i}),this.resolve=ps(e),this.reject=ps(t)},"PromiseCapability");vt.f=function(a){return new fd(a)};var cd=te,Sr=Vr,Ae=L,ot=X,ys=Ge,ms=gu,gd=Dr,dd=Hc,pd=$e,gr=j,yd=ie,md=Wc,bd=xu,Ru=wu.set,Fi=td,xd=rd,Td=Ui,Od=Au,Nu=Mr,$r=kr,zi=It,Iu=vt,Br="Promise",Mu=zi.CONSTRUCTOR,Sd=zi.REJECTION_EVENT,$d=zi.SUBCLASSING,Ca=Nu.getterFor(Br),Ed=Nu.set,Ke=$r&&$r.prototype,Be
1=$r,rr=Ke,_u=Ae.TypeError,ni=Ae.document,Gi=Ae.process,si=Iu.f,wd=si,Cd=!!(ni&&ni.createEvent&&Ae.dispatchEvent),Vu="unhandledrejection",Ad="rejectionhandled",bs=0,Du=1,Pd=2,Hi=1,Lu=2,ar,xs,Rd,Ts,ku=v(function(a){var e;return yd(a)&&gr(e=a.then)?e:!1},"isThenable"),Bu=v(function(a,e){var t=e.value,r=e.state===Du,i=r?a.ok:a.fail,n=a.resolve,o=a.reject,s=a.domain,u,l,h;try{i?(r||(e.rejection===Lu&&Id(e),e.rejection=Hi),i===!0?u=t:(s&&s.enter(),u=i(t),s&&(s.exit(),h=!0)),u===a.promise?o(new _u("Promise-chain cycle")):(l=ku(u))?ot(l,u,n,o):n(u)):o(t)}catch(c){s&&!h&&s.exit(),o(c)}},"callReaction"),ju=v(function(a,e){a.notified||(a.notified=!0,Fi(function(){for(var t=a.reactions,r;r=t.get();)Bu(r,a);a.notified=!1,e&&!a.rejection&&Nd(a)}))},"notify"),Uu=v(function(a,e,t){var r,i;Cd?(r=ni.createEvent("Event"),r.promise=e,r.reason=t,r.initEvent(a,!1,!0),Ae.dispatchEvent(r)):r={promise:e,reason:t},!Sd&&(i=Ae["on"+a])?i(r):a===Vu&&xd("Unhandled promise rejection",t)},"dispatchEvent"),Nd=v(function(a){ot(Ru,Ae,function(){var e=a.facade,t=a.value,r=Os(a),i;if(r&&(i=Td(function(){Sr?Gi.emit("unhandledRejection",t,e):Uu(Vu,e,t)}),a.rejection=Sr||Os(a)?Lu:Hi,i.error))throw i.value})},"onUnhandled"),Os=v(function(a){return a.rejection!==Hi&&!a.parent},"isUnhandled"),Id=v(function(a){ot(Ru,Ae,function(){var e=a.facade;Sr?Gi.emit("rejectionHandled",e):Uu(Ad,e,a.value)})},"onHandleUnhandled"),et=v(function(a,e,t){return function(r){a(e,r,t)}},"bind$1"),at=v(function(a,e,t){a.done||(a.done=!0,t&&(a=t),a.value=e,a.state=Pd,ju(a,!0))},"internalReject"),oi=v(function(a,e,t){if(!a.done){a.done=!0,t&&(a=t);try{if(a.facade===e)throw new _u("Promise can't be resolved itself");var r=ku(e);r?Fi(function(){var i={done:!1};try{ot(r,e,et(oi,i,a),et(at,i,a))}catch(n){at(i,n,a)}}):(a.value=e,a.state=Du,ju(a,!1))}catch(i){at({done:!1},i,a)}}},"internalResolve");if(Mu&&(Be=v(function(e){md(this,rr),pd(e),ot(ar,this);var t=Ca(this);try{e(et(oi,t),et(at,t))}catch(r){at(t,r)}},"Promise"),rr=Be.prototype,ar=v(function(e){Ed(this,{type:Br,done:!1,notified:!1,parent:!1,reactions:new Od,rejection:!1,state:bs,value:null})},"Promise"),ar.prototype=ys(rr,"then",v(function(e,t){var r=Ca(this),i=si(bd(this,Be));return r.parent=!0,i.ok=gr(e)?e:!0,i.fail=gr(t)&&t,i.domain=Sr?Gi.domain:void 0,r.state===bs?r.reactions.add(i):Fi(function(){Bu(i,r)}),i.promise},"then")),xs=v(function(){var a=new ar,e=Ca(a);this.promise=a,this.resolve=et(oi,e),this.reject=et(at,e)},"OwnPromiseCapability"),Iu.f=si=v(function(a){return a===Be||a===Rd?new xs(a):wd(a)},"newPromiseCapability$1"),gr($r)&&Ke!==Object.prototype)){Ts=Ke.then,$d||ys(Ke,"then",v(function(e,t){var r=this;return new Be(function(i,n){ot(Ts,r,i,n)}).then(e,t)},"then"),{unsafe:!0});try{delete Ke.constructor}catch(a){}ms&&ms(Ke,rr)}cd({global:!0,constructor:!0,wrap:!0,forced:Mu},{Promise:Be});gd(Be,Br,!1);dd(Br);var Mt={},Md=H,_d=Mt,Vd=Md("iterator"),Dd=Array.prototype,Ld=v(function(a){return a!==void 0&&(_d.Array===a||Dd[Vd]===a)},"isArrayIteratorMethod$1"),kd=Li,Ss=lt,Bd=Cr,jd=Mt,Ud=H,Fd=Ud("iterator"),Fu=v(function(a){if(!Bd(a))return Ss(a,Fd)||Ss(a,"@@iterator")||jd[kd(a)]},"getIteratorMethod$2"),zd=X,Gd=$e,Hd=ee,Yd=Pr,Xd=Fu,Wd=TypeError,qd=v(function(a,e){var t=arguments.length<2?Xd(a):e;if(Gd(t))return Hd(zd(t,a));throw new Wd(Yd(a)+" is not iterable")},"getIterator$1"),Qd=X,$s=ee,Kd=lt,Zd=v(function(a,e,t){var r,i;$s(a);try{if(r=Kd(a,"return"),!r){if(e==="throw")throw t;return t}r=Qd(r,a)}catch(n){i=!0,r=n}if(e==="throw")throw t;if(i)throw r;return $s(r),t},"iteratorClose$1"),Jd=Bi,ep=X,tp=ee,rp=Pr,ap=Ld,ip=Vi,Es=Ar,np=qd,sp=Fu,ws=Zd,op=TypeError,dr=v(function(a,e){this.stopped=a,this.result=e},"Result"),Cs=dr.prototype,zu=v(function(a,e,t){var r=t&&t.that,i=!!(t&&t.AS_ENTRIES),n=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=Jd(e,r),l,h,c,g,f,p,d,y=v(function(T){return l&&ws(l,"normal",T),new dr(!0,T)},"stop"),m=v(function(T){return i?(tp(T),s?u(T[0],T[1],y):u(T[0],T[1])):s?u(T,y):u(T)},"callFn");if(n)l=a.iterator;else if(o)l=a;else{if(h=sp(a),!h)throw new op(rp(a)+" is not iterable");if(ap(h)){for(c=0,g=ip(a);g>c;c++)if(f=m(a[c]),f&&Es(Cs,f))return f;return new dr(!1)}l=np(a,h)}for(p=n?a.next:l.next;!(d=ep(p,l)).done;){try{f=m(d.value)}catch(T){ws(l,"throw",T)}if(typeof f=="object"&&f&&Es(Cs,f))return f}return new dr(!1)},"iterate$2"),up=H,Gu=up("iterator"),Hu=!1;try{var lp=0,As={next:function(){return{done:!!lp++}},return:function(){Hu=!0}};As[Gu]=function(){return this},Array.from(As,function(){throw 2})}catch(a){}var hp=v(function(a,e){try{if(!e&&!Hu)return!1}catch(i){return!1}var t=!1;try{var r={};r[Gu]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch(i){}return t},"checkCorrectnessOfIteration$1"),vp=kr,fp=hp,cp=It.CONSTRUCTOR,Yu=cp||!fp(function(a){vp.all(a).then(void 0,function(){})}),gp=te,dp=X,pp=$e,yp=vt,mp=Ui,bp=zu,xp=Yu;gp({target:"Promise",stat:!0,forced:xp},{all:v(function(e){var t=this,r=yp.f(t),i=r.resolve,n=r.reject,o=mp(function(){var s=pp(t.resolve),u=[],l=0,h=1;bp(e,function(c){var g=l++,f=!1;h++,dp(s,t,c).then(function(p){f||(f=!0,u[g]=p,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise},"all")});var Tp=te,Op=It.CONSTRUCTOR,ui=kr,Sp=ze,$p=j,Ep=Ge,Ps=ui&&ui.prototype;Tp({target:"Promise",proto:!0,forced:Op,real:!0},{catch:function(a){return this.then(void 0,a)}});if($p(ui)){var Rs=Sp("Promise").prototype.catch;Ps.catch!==Rs&&Ep(Ps,"catch",Rs,{unsafe:!0})}var wp=te,Cp=X,Ap=$e,Pp=vt,Rp=Ui,Np=zu,Ip=Yu;wp({target:"Promise",stat:!0,forced:Ip},{race:v(function(e){var t=this,r=Pp.f(t),i=r.reject,n=Rp(function(){var o=Ap(t.resolve);Np(e,function(s){Cp(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise},"race")});var Mp=te,_p=vt,Vp=It.CONSTRUCTOR;Mp({target:"Promise",stat:!0,forced:Vp},{reject:v(function(e){var t=_p.f(this),r=t.reject;return r(e),t.promise},"reject")});var Dp=ee,Lp=ie,kp=vt,Bp=v(function(a,e){if(Dp(a),Lp(e)&&e.constructor===a)return e;var t=kp.f(a),r=t.resolve;return r(e),t.promise},"promiseResolve$1"),jp=te,Up=ze,Fp=It.CONSTRUCTOR,zp=Bp;Up("Promise");jp({target:"Promise",stat:!0,forced:Fp},{resolve:v(function(e){return zp(this,e)},"resolve")});function Ns(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){return void t(l)}s.done?e(u):Promise.resolve(u).then(r,i)}v(Ns,"asyncGeneratorStep");function Oe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){Ns(n,r,i,o,s,"next",u)}v(o,"_next");function s(u){Ns(n,r,i,o,s,"throw",u)}v(s,"_throw"),o(void 0)})}}v(Oe,"_asyncToGenerator");
1var Gp=Li,Hp=String,ye=v(function(a){if(Gp(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Hp(a)},"toString$9"),Yp=ee,Xu=v(function(){var a=Yp(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},"regexpFlags$1"),Yi=k,Xp=L,Xi=Xp.RegExp,Wi=Yi(function(){var a=Xi("a","y");return a.lastIndex=2,a.exec("abcd")!==null}),Wp=Wi||Yi(function(){return!Xi("a","y").sticky}),qp=Wi||Yi(function(){var a=Xi("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Wu={BROKEN_CARET:qp,MISSED_STICKY:Wp,UNSUPPORTED_Y:Wi},qu={},Qp=hu,Kp=Di,Zp=Object.keys||v(function(e){return Qp(e,Kp)},"keys"),Jp=fe,ey=iu,ty=Ee,ry=ee,ay=At,iy=Zp;qu.f=Jp&&!ey?Object.defineProperties:v(function(e,t){ry(e);for(var r=ay(t),i=iy(t),n=i.length,o=0,s;n>o;)ty.f(e,s=i[o++],r[s]);return e},"defineProperties");var ny=ee,sy=qu,Is=Di,oy=Mi,uy=Su,ly=Nr,hy=Ii,Ms=">",_s="<",li="prototype",hi="script",Qu=hy("IE_PROTO"),Aa=v(function(){},"EmptyConstructor"),Ku=v(function(a){return _s+hi+Ms+a+_s+"/"+hi+Ms},"scriptTag"),Vs=v(function(a){a.write(Ku("")),a.close();var e=a.parentWindow.Object;return a=null,e},"NullProtoObjectViaActiveX"),vy=v(function(){var a=ly("iframe"),e="java"+hi+":",t;return a.style.display="none",uy.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(Ku("document.F=Object")),t.close(),t.F},"NullProtoObjectViaIFrame"),ir,pr=v(function(){try{ir=new ActiveXObject("htmlfile")}catch(e){}pr=typeof document!="undefined"?document.domain&&ir?Vs(ir):vy():Vs(ir);for(var a=Is.length;a--;)delete pr[li][Is[a]];return pr()},"NullProtoObject");oy[Qu]=!0;var qi=Object.create||v(function(e,t){var r;return e!==null?(Aa[li]=ny(e),r=new Aa,Aa[li]=null,r[Qu]=e):r=pr(),t===void 0?r:sy.f(r,t)},"create"),fy=k,cy=L,gy=cy.RegExp,dy=fy(function(){var a=gy(".","s");return!(a.dotAll&&a.test(`
2`)&&a.flags==="s")}),py=k,yy=L,my=yy.RegExp,by=py(function(){var a=my("(?<a>b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$<a>c")!=="bc"}),tt=X,jr=B,xy=ye,Ty=Xu,Oy=Wu,Sy=Pi,$y=qi,Ey=Mr.get,wy=dy,Cy=by,Ay=Sy("native-string-replace",String.prototype.replace),Er=RegExp.prototype.exec,vi=Er,Py=jr("".charAt),Ry=jr("".indexOf),Ny=jr("".replace),Pa=jr("".slice),fi=function(){var a=/a/,e=/b*/g;return tt(Er,a,"a"),tt(Er,e,"a"),a.lastIndex!==0||e.lastIndex!==0}(),Zu=Oy.BROKEN_CARET,ci=/()??/.exec("")[1]!==void 0,Iy=fi||ci||Zu||wy||Cy;Iy&&(vi=v(function(e){var t=this,r=Ey(t),i=xy(e),n=r.raw,o,s,u,l,h,c,g;if(n)return n.lastIndex=t.lastIndex,o=tt(vi,n,i),t.lastIndex=n.lastIndex,o;var f=r.groups,p=Zu&&t.sticky,d=tt(Ty,t),y=t.source,m=0,T=i;if(p&&(d=Ny(d,"y",""),Ry(d,"g")===-1&&(d+="g"),T=Pa(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&Py(i,t.lastIndex-1)!==`
3`)&&(y="(?: "+y+")",T=" "+T,m++),s=new RegExp("^(?:"+y+")",d)),ci&&(s=new RegExp("^"+y+"$(?!\\s)",d)),fi&&(u=t.lastIndex),l=tt(Er,p?s:t,T),p?l?(l.input=Pa(l.input,m),l[0]=Pa(l[0],m),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:fi&&l&&(t.lastIndex=t.global?l.index+l[0].length:u),ci&&l&&l.length>1&&tt(Ay,l[0],s,function(){for(h=1;h<arguments.length-2;h++)arguments[h]===void 0&&(l[h]=void 0)}),l&&f)for(l.groups=c=$y(null),h=0;h<f.length;h++)g=f[h],c[g[0]]=l[g[1]];return l},"exec"));var Qi=vi,My=te,Ds=Qi;My({target:"RegExp",proto:!0,forced:/./.exec!==Ds},{exec:Ds});var Ls=X,ks=Ge,_y=Qi,Bs=k,Ju=H,Vy=Rt,Dy=Ju("species"),Ra=RegExp.prototype,Ki=v(function(a,e,t,r){var i=Ju(a),n=!Bs(function(){var l={};return l[i]=function(){return 7},""[a](l)!==7}),o=n&&!Bs(function(){var l=!1,h=/a/;return a==="split"&&(h={},h.constructor={},h.constructor[Dy]=function(){return h},h.flags="",h[i]=/./[i]),h.exec=function(){return l=!0,null},h[i](""),!l});if(!n||!o||t){var s=/./[i],u=e(i,""[a],function(l,h,c,g,f){var p=h.exec;return p===_y||p===Ra.exec?n&&!f?{done:!0,value:Ls(s,h,c,g)}:{done:!0,value:Ls(l,c,h,g)}:{done:!1}});ks(String.prototype,a,u[0]),ks(Ra,i,u[1])}r&&Vy(Ra[i],"sham",!0)},"fixRegexpWellKnownSymbolLogic"),Zi=B,Ly=_r,ky=ye,By=ce,jy=Zi("".charAt),js=Zi("".charCodeAt),Uy=Zi("".slice),Us=v(function(a){return function(e,t){var r=ky(By(e)),i=Ly(t),n=r.length,o,s;return i<0||i>=n?a?"":void 0:(o=js(r,i),o<55296||o>56319||i+1===n||(s=js(r,i+1))<56320||s>57343?a?jy(r,i):o:a?Uy(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},"createMethod$2"),Fy={codeAt:Us(!1),charAt:Us(!0)},zy=Fy.charAt,Ji=v(function(a,e,t){return e+(t?zy(a,e).length:1)},"advanceStringIndex$3"),Fs=X,Gy=ee,Hy=j,Yy=Fe,Xy=Qi,Wy=TypeError,en=v(function(a,e){var t=a.exec;if(Hy(t)){var r=Fs(t,a,e);return r!==null&&Gy(r),r}if(Yy(a)==="RegExp")return Fs(Xy,a,e);throw new Wy("RegExp#exec called on incompatible receiver")},"regexpExecAbstract"),qy=X,Qy=Ki,Ky=ee,Zy=ie,Jy=ht,Na=ye,e0=ce,t0=lt,r0=Ji,zs=en;Qy("match",function(a,e,t){return[v(function(i){var n=e0(this),o=Zy(i)?t0(i,a):void 0;return o?qy(o,i,n):new RegExp(i)[a](Na(n))},"match"),function(r){var i=Ky(this),n=Na(r),o=t(e,i,n);if(o.done)return o.value;if(!i.global)return zs(i,n);var s=i.unicode;i.lastIndex=0;for(var u=[],l=0,h;(h=zs(i,n))!==null;){var c=Na(h[0]);u[l]=c,c===""&&(i.lastIndex=r0(n,Jy(i.lastIndex),s)),l++}return l===0?null:u}]});var tn=B,a0=Rr,i0=Math.floor,Ia=tn("".charAt),n0=tn("".replace),Ma=tn("".slice),s0=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o0=/\$([$&'`]|\d{1,2})/g,u0=v(function(a,e,t,r,i,n){var o=t+a.length,s=r.length,u=o0;return i!==void 0&&(i=a0(i),u=s0),n0(n,u,function(l,h){var c;switch(Ia(h,0)){case"$":return"$";case"&":return a;case"`":return Ma(e,0,t);case"'":return Ma(e,o);case"<":c=i[Ma(h,1,-1)];break;default:var g=+h;if(g===0)return l;if(g>s){var f=i0(g/10);return f===0?l:f<=s?r[f-1]===void 0?Ia(h,1):r[f-1]+Ia(h,1):l}c=r[g-1]}return c===void 0?"":c})},"getSubstitution$1"),l0=Ou,Gs=X,Ur=B,h0=Ki,v0=k,f0=ee,c0=j,g0=ie,d0=_r,p0=ht,qe=ye,y0=ce,m0=Ji,b0=lt,x0=u0,T0=en,O0=H,gi=O0("replace"),S0=Math.max,$0=Math.min,E0=Ur([].
3concat),_a=Ur([].push),Hs=Ur("".indexOf),Ys=Ur("".slice),w0=v(function(a){return a===void 0?a:String(a)},"maybeToString"),C0=function(){return"a".replace(/./,"$0")==="$0"}(),Xs=function(){return/./[gi]?/./[gi]("a","$0")==="":!1}(),A0=!v0(function(){var a=/./;return a.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(a,"$<a>")!=="7"});h0("replace",function(a,e,t){var r=Xs?"$":"$0";return[v(function(n,o){var s=y0(this),u=g0(n)?b0(n,gi):void 0;return u?Gs(u,n,s,o):Gs(e,qe(s),n,o)},"replace"),function(i,n){var o=f0(this),s=qe(i);if(typeof n=="string"&&Hs(n,r)===-1&&Hs(n,"$<")===-1){var u=t(e,o,s,n);if(u.done)return u.value}var l=c0(n);l||(n=qe(n));var h=o.global,c;h&&(c=o.unicode,o.lastIndex=0);for(var g=[],f;f=T0(o,s),!(f===null||(_a(g,f),!h));){var p=qe(f[0]);p===""&&(o.lastIndex=m0(s,p0(o.lastIndex),c))}for(var d="",y=0,m=0;m<g.length;m++){f=g[m];for(var T=qe(f[0]),x=S0($0(d0(f.index),s.length),0),O=[],C,E=1;E<f.length;E++)_a(O,w0(f[E]));var S=f.groups;if(l){var A=E0([T],O,x,s);S!==void 0&&_a(A,S),C=qe(l0(n,void 0,A))}else C=x0(T,s,x,O,S,n);x>=y&&(d+=Ys(s,y,x)+C,y=x+T.length)}return d+Ys(s,y)}]},!A0||!C0||Xs);var P0=ie,R0=Fe,N0=H,I0=N0("match"),M0=v(function(a){var e;return P0(a)&&((e=a[I0])!==void 0?!!e:R0(a)==="RegExp")},"isRegexp"),_0=M0,V0=TypeError,rn=v(function(a){if(_0(a))throw new V0("The method doesn't accept regular expressions");return a},"notARegexp"),D0=H,L0=D0("match"),an=v(function(a){var e=/./;try{"/./"[a](e)}catch(t){try{return e[L0]=!1,"/./"[a](e)}catch(r){}}return!1},"correctIsRegexpLogic"),k0=te,B0=Lr,j0=Ct.f,U0=ht,Ws=ye,F0=rn,z0=ce,G0=an,H0=B0("".slice),Y0=Math.min,el=G0("startsWith"),X0=!el&&!!function(){var a=j0(String.prototype,"startsWith");return a&&!a.writable}();k0({target:"String",proto:!0,forced:!X0&&!el},{startsWith:v(function(e){var t=Ws(z0(this));F0(e);var r=U0(Y0(arguments.length>1?arguments[1]:void 0,t.length)),i=Ws(e);return H0(t,r,r+i.length)===i},"startsWith")});var W0=H,q0=qi,Q0=Ee.f,di=W0("unscopables"),pi=Array.prototype;pi[di]===void 0&&Q0(pi,di,{configurable:!0,value:q0(null)});var K0=v(function(a){pi[di][a]=!0},"addToUnscopables$1"),Z0=k,J0=!Z0(function(){function a(){}return v(a,"F"),a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}),em=ge,tm=j,rm=Rr,am=Ii,im=J0,qs=am("IE_PROTO"),yi=Object,nm=yi.prototype,tl=im?yi.getPrototypeOf:function(a){var e=rm(a);if(em(e,qs))return e[qs];var t=e.constructor;return tm(t)&&e instanceof t?t.prototype:e instanceof yi?nm:null},sm=k,om=j,um=ie,Qs=tl,lm=Ge,hm=H,mi=hm("iterator"),rl=!1,Ue,Va,Da;[].keys&&(Da=[].keys(),"next"in Da?(Va=Qs(Qs(Da)),Va!==Object.prototype&&(Ue=Va)):rl=!0);var vm=!um(Ue)||sm(function(){var a={};return Ue[mi].call(a)!==a});vm&&(Ue={});om(Ue[mi])||lm(Ue,mi,function(){return this});var al={IteratorPrototype:Ue,BUGGY_SAFARI_ITERATORS:rl},fm=al.IteratorPrototype,cm=qi,gm=wi,dm=Dr,pm=Mt,ym=v(function(){return this},"returnThis$1"),mm=v(function(a,e,t,r){var i=e+" Iterator";return a.prototype=cm(fm,{next:gm(+!r,t)}),dm(a,i,!1),pm[i]=ym,a},"iteratorCreateConstructor"),bm=te,xm=X,il=Ir,Tm=j,Om=mm,Ks=tl,Zs=gu,Sm=Dr,$m=Rt,La=Ge,Em=H,wm=Mt,nl=al,Cm=il.PROPER,Am=il.CONFIGURABLE,Js=nl.IteratorPrototype,nr=nl.BUGGY_SAFARI_ITERATORS,yt=Em("iterator"),eo="keys",mt="values",to="entries",Pm=v(function(){return this},"returnThis"),Rm=v(function(a,e,t,r,i,n,o){Om(t,e,r);var s=v(function(m){if(m===i&&g)return g;if(!nr&&m&&m in h)return h[m];switch(m){case eo:return v(function(){return new t(this,m)},"keys");case mt:return v(function(){return new t(this,m)},"values");case to:return v(function(){return new t(this,m)},"entries")}return function(){return new t(this)}},"getIterationMethod"),u=e+" Iterator",l=!1,h=a.prototype,c=h[yt]||h["@@iterator"]||i&&h[i],g=!nr&&c||s(i),f=e==="Array"&&h.entries||c,p,d,y;if(f&&(p=Ks(f.call(new a)),p!==Object.prototype&&p.next&&(Ks(p)!==Js&&(Zs?Zs(p,Js):Tm(p[yt])||La(p,yt,Pm)),Sm(p,u,!0))),Cm&&i===mt&&c&&c.name!==mt&&(Am?$m(h,"name",mt):(l=!0,g=v(function(){return xm(c,this)},"values"))),i)if(d={values:s(mt),keys:n?g:s(eo),entries:s(to)},o)for(y in d)(nr||l||!(y in h))&&La(h,y,d[y]);else bm({target:e,proto:!0,forced:nr||l},d);return h[yt]!==g&&La(h,yt,g,{name:i}),wm[e]=g,d},"iteratorDefine"),Nm=v(function(a,e){return{value:a,done:e}},"createIterResultObject$1"),Im=At,nn=K0,ro=Mt,sl=Mr,Mm=Ee.f,_m=Rm,sr=Nm,Vm=fe,ol="Array Iterator",Dm=sl.set,Lm=sl.getterFor(ol),km=_m(Array,"Array",function(a,e){Dm(this,{type:ol,target:Im(a),index:0,kind:e})},function(){var a=Lm(this),e=a.target,t=a.index++;if(!e||t>=e.length)return a.target=null,sr(void 0,!0);switch(a.kind){case"keys":return sr(t,!1);case"values":return sr(e[t],!1)}return sr([t,e[t]],!1)},"values"),ao=ro.Arguments=ro.Array;nn("keys");nn("values");nn("entries");if(Vm&&ao.name!=="values")try{Mm(ao,"name",{value:"values"})}catch(a){}
3var Bm={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},jm=Nr,ka=jm("span").classList,io=ka&&ka.constructor&&ka.constructor.prototype,Um=io===Object.prototype?void 0:io,no=L,ul=Bm,Fm=Um,xt=km,so=Rt,zm=Dr,Gm=H,Ba=Gm("iterator"),ja=xt.values,ll=v(function(a,e){if(a){if(a[Ba]!==ja)try{so(a,Ba,ja)}catch(r){a[Ba]=ja}if(zm(a,e,!0),ul[e]){for(var t in xt)if(a[t]!==xt[t])try{so(a,t,xt[t])}catch(r){a[t]=xt[t]}}}},"handlePrototype");for(var Ua in ul)ll(no[Ua]&&no[Ua].prototype,Ua);ll(Fm,"DOMTokenList");function Hm(a,e){if(Wa(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e||"default");if(Wa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}v(Hm,"toPrimitive");function Ym(a){var e=Hm(a,"string");return Wa(e)=="symbol"?e:e+""}v(Ym,"toPropertyKey");function sn(a,e,t){return(e=Ym(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}v(sn,"_defineProperty");var Xm=$e,Wm=Rr,qm=Qo,Qm=Vi,oo=TypeError,uo="Reduce of empty array with no initial value",lo=v(function(a){return function(e,t,r,i){var n=Wm(e),o=qm(n),s=Qm(n);if(Xm(t),s===0&&r<2)throw new oo(uo);var u=a?s-1:0,l=a?-1:1;if(r<2)for(;;){if(u in o){i=o[u],u+=l;break}if(u+=l,a?u<0:s<=u)throw new oo(uo)}for(;a?u>=0:s>u;u+=l)u in o&&(i=t(i,o[u],u,n));return i}},"createMethod$1"),Km={left:lo(!1),right:lo(!0)},Zm=k,hl=v(function(a,e){var t=[][a];return!!t&&Zm(function(){t.call(null,e||function(){return 1},1)})}
3,"arrayMethodIsStrict$2"),Jm=te,eb=Km.left,tb=hl,ho=Ci,rb=Vr,ab=!rb&&ho>79&&ho<83,ib=ab||!tb("reduce");Jm({target:"Array",proto:!0,forced:ib},{reduce:v(function(e){var t=arguments.length;return eb(this,e,t,t>1?arguments[1]:void 0)},"reduce")});var nb=te,sb=Lr,ob=Ct.f,ub=ht,vo=ye,lb=rn,hb=ce,vb=an,fb=sb("".slice),cb=Math.min,vl=vb("endsWith"),gb=!vl&&!!function(){var a=ob(String.prototype,"endsWith");return a&&!a.writable}();nb({target:"String",proto:!0,forced:!gb&&!vl},{endsWith:v(function(e){var t=vo(hb(this));lb(e);var r=arguments.length>1?arguments[1]:void 0,i=t.length,n=r===void 0?i:cb(ub(r),i),o=vo(e);return fb(t,n-o.length,n)===o},"endsWith")});var Fa=X,fl=B,db=Ki,pb=ee,yb=ie,mb=ce,bb=xu,xb=Ji,Tb=ht,fo=ye,Ob=lt,co=en,Sb=Wu,$b=k,Qe=Sb.UNSUPPORTED_Y,Eb=4294967295,wb=Math.min,za=fl([].push),Ga=fl("".slice),Cb=!$b(function(){var a=/(?:)/,e=a.exec;a.exec=function(){return e.apply(this,arguments)};var t="ab".split(a);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),go="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;db("split",function(a,e,t){var r="0".split(void 0,0).length?function(i,n){return i===void 0&&n===0?[]:Fa(e,this,i,n)}:e;return[v(function(n,o){var s=mb(this),u=yb(n)?Ob(n,a):void 0;return u?Fa(u,n,s,o):Fa(r,fo(s),n,o)},"split"),function(i,n){var o=pb(this),s=fo(i);if(!go){var u=t(r,o,s,n,r!==e);if(u.done)return u.value}var l=bb(o,RegExp),h=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Qe?"g":"y"),g=new l(Qe?"^(?:"+o.source+")":o,c),f=n===void 0?Eb:n>>>0;if(f===0)return[];if(s.length===0)return co(g,s)===null?[s]:[];for(var p=0,d=0,y=[];d<s.length;){g.lastIndex=Qe?0:d;var m=co(g,Qe?Ga(s,d):s),T;if(m===null||(T=wb(Tb(g.lastIndex+(Qe?d:0)),s.length))===p)d=xb(s,d,h);else{if(za(y,Ga(s,p,d)),y.length===f)return y;for(var x=1;x<=m.length-1;x++)if(za(y,m[x]),y.length===f)return y;d=p=T}}return za(y,Ga(s,p)),y}]},go||!Cb,Qe);var je={},Ab={get exports(){return je},set exports(a){je=a}},bi={},or={get exports(){return bi},set exports(a){bi=a}};(function(){var a,e,t,r,i,n;typeof performance!="undefined"&&performance!==null&&performance.now?or.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(or.exports=function(){return(a()-i)/1e6},e=process.hrtime,a=v(function(){var o;return o=e(),o[0]*1e9+o[1]},"getNanoSeconds"),r=a(),n=process.uptime()*1e9,i=r-n):Date.now?(or.exports=function(){return Date.now()-t},t=Date.now()):(or.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(Ze);var Pb=bi,xe=typeof window=="undefined"?Ze:window,ur=["moz","webkit"],it="AnimationFrame",ut=xe["request"+it],wt=xe["cancel"+it]||xe["cancelRequest"+it];for(var bt=0;!ut&&bt<ur.length;bt++)ut=xe[ur[bt]+"Request"+it],wt=xe[ur[bt]+"Cancel"+it]||xe[ur[bt]+"CancelRequest"+it];if(!ut||!wt){var Ha=0,po=0,De=[],Rb=1e3/60;ut=v(function(a){if(De.length===0){var e=Pb(),t=Math.max(0,Rb-(e-Ha));Ha=t+e,setTimeout(function(){var r=De.slice(0);De.length=0;for(var i=0;i<r.length;i++)if(!r[i].cancelled)try{r[i].callback(Ha)}catch(n){setTimeout(function(){throw n},0)}},Math.round(t))}return De.push({handle:++po,callback:a,cancelled:!1}),po},"raf"),wt=v(function(a){for(var e=0;e<De.length;e++)De[e].handle===a&&(De[e].cancelled=!0)},"caf")}Ab.exports=function(a){return ut.call(xe,a)};je.cancel=function(){wt.apply(xe,arguments)};je.polyfill=function(a){a||(a=xe),a.requestAnimationFrame=ut,a.cancelAnimationFrame=wt};var cl=`	
4\v\f\r                 \u2028\u2029\uFEFF`,Nb=B,Ib=ce,Mb=ye,xi=cl,yo=Nb("".replace),_b=RegExp("^["+xi+"]+"),Vb=RegExp("(^|[^"+xi+"])["+xi+"]+$"),Ya=v(function(a){return function(e){var t=Mb(Ib(e));return a&1&&(t=yo(t,_b,"")),a&2&&(t=yo(t,Vb,"$1")),t}},"createMethod"),Db={start:Ya(1),end:Ya(2),trim:Ya(3)},Lb=Ir.PROPER,kb=k,mo=cl,bo="​…᠎",Bb=v(function(a){return kb(function(){return!!mo[a]()||bo[a]()!==bo||Lb&&mo[a].name!==a})},"stringTrimForced"),jb=te,Ub=Db.trim,Fb=Bb;jb({target:"String",proto:!0,forced:Fb("trim")},{trim:v(function(){return Ub(this)},"trim")});var Ti=v(function(a){this.ok=!1,this.alpha=1,a.charAt(0)=="#"&&(a=a.substr(1,6)),a=a.replace(/ /g,""),a=a.toLowerCase();var e={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:"90ee9
40",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"};a=e[a]||a;for(var t=[{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(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[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(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],r=0;r<t.length;r++){var i=t[r].re,n=t[r].process,o=i.exec(a);if(o){var s=n(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[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 u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l<t.length;l++)for(var h=t[l].example,c=0;c<h.length;c++)u[u.length]=h[c];for(var g in e)u[u.length]=g;var f=document.createElement("ul");f.setAttribute("id","rgbcolor-examples");for(var l=0;l<u.length;l++)try{var p=document.createElement("li"),d=new RGBColor(u[l]),y=document.createElement("div");y.style.cssText="margin: 3px; border: 1px solid black; background:"+d.toHex()+"; color:"+d.toHex(),y.appendChild(document.createTextNode("test"));var m=document.createTextNode(" "+u[l]+" -> "+d.toRGB()+" -> "+d.toHex());p.appendChild(y),p.appendChild(m),f.appendChild(p)}catch(x){}return f}},"rgbcolor"),zb=te,Gb=Lr,Hb=lu.indexOf,Yb=hl,Oi=Gb([].indexOf),gl=!!Oi&&1/Oi([1],1,-0)<0,Xb=gl||!Yb("indexOf");zb({target:"Array",proto:!0,forced:Xb},{indexOf:v(function(e){var t=arguments.length>1?arguments[1]:void 0;return gl?Oi(this,e,t)||0:Hb(this,e,t)},"indexOf")});var Wb=te,qb=B,Qb=rn,Kb=ce,xo=ye,Zb=an,Jb=qb("".indexOf);Wb({target:"String",proto:!0,forced:!Zb("includes")},{includes:v(function(e){return!!~Jb(xo(Kb(this)),xo(Qb(e)),arguments.length>1?arguments[1]:void 0)},"includes")});var e1=Fe,t1=Array.isArray||v(function(e){return e1(e)==="Array"},"isArray"),r1=te,a1=B,i1=t1,n1=a1([].reverse),To=[1,2];r1({target:"Array",proto:!0,forced:String(To)===String(To.reverse())},{reverse:v(function(){return i1(this)&&(this.length=this.length),n1(this)},"reverse")});/*! *****************************************************************************
5Copyright (c) Microsoft Corporation.
6
7Permission to use, copy, modify, and/or distribute this software for any
8purpose with or without fee is hereby granted.
9
10THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16PERFORMANCE OF THIS SOFTWARE.
17***************************************************************************** */var dl=v(function(a,e){return(dl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(a,e)},"t");function pl(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=a}
vendor: 16,871 bytes, lines 17-18
17v(t,"i"),dl(a,e),a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}v(pl,"r");function s1(a){var e="";Array.isArray(a)||(a=[a]);for(var t=0;t<a.length;t++){var r=a[t];if(r.type===b.CLOSE_PATH)e+="z";else if(r.type===b.HORIZ_LINE_TO)e+=(r.relative?"h":"H")+r.x;else if(r.type===b.VERT_LINE_TO)e+=(r.relative?"v":"V")+r.y;else if(r.type===b.MOVE_TO)e+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===b.LINE_TO)e+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===b.CURVE_TO)e+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===b.SMOOTH_CURVE_TO)e+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===b.QUAD_TO)e+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===b.SMOOTH_QUAD_TO)e+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==b.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+t+".");e+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return e}v(s1,"e");function Si(a,e){var t=a[0],r=a[1];return[t*Math.cos(e)-r*Math.sin(e),t*Math.sin(e)+r*Math.cos(e)]}v(Si,"i");function he(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];for(var t=0;t<a.length;t++)if(typeof a[t]!="number")throw new Error("assertNumbers arguments["+t+"] is not a number. "+typeof a[t]+" == typeof "+a[t]);return!0}v(he,"a");var Ce=Math.PI;function Xa(a,e,t){a.lArcFlag=a.lArcFlag===0?0:1,a.sweepFlag=a.sweepFlag===0?0:1;var r=a.rX,i=a.rY,n=a.x,o=a.y;r=Math.abs(a.rX),i=Math.abs(a.rY);var s=Si([(e-n)/2,(t-o)/2],-a.xRot/180*Ce),u=s[0],l=s[1],h=Math.pow(u,2)/Math.pow(r,2)+Math.pow(l,2)/Math.pow(i,2);1<h&&(r*=Math.sqrt(h),i*=Math.sqrt(h)),a.rX=r,a.rY=i;var c=Math.pow(r,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(u,2),g=(a.lArcFlag!==a.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-c)/c)),f=r*l/i*g,p=-i*u/r*g,d=Si([f,p],a.xRot/180*Ce);a.cX=d[0]+(e+n)/2,a.cY=d[1]+(t+o)/2,a.phi1=Math.atan2((l-p)/i,(u-f)/r),a.phi2=Math.atan2((-l-p)/i,(-u-f)/r),a.sweepFlag===0&&a.phi2>a.phi1&&(a.phi2-=2*Ce),a.sweepFlag===1&&a.phi2<a.phi1&&(a.phi2+=2*Ce),a.phi1*=180/Ce,a.phi2*=180/Ce}v(Xa,"o");function Oo(a,e,t){he(a,e,t);var r=a*a+e*e-t*t;if(0>r)return[];if(r===0)return[[a*t/(a*a+e*e),e*t/(a*a+e*e)]];var i=Math.sqrt(r);return[[(a*t+e*i)/(a*a+e*e),(e*t-a*i)/(a*a+e*e)],[(a*t-e*i)/(a*a+e*e),(e*t+a*i)/(a*a+e*e)]]}v(Oo,"s");var z,me=Math.PI/180;function So(a,e,t){return(1-t)*a+t*e}v(So,"c$1");function $o(a,e,t,r){return a+Math.cos(r/180*Ce)*e+Math.sin(r/180*Ce)*t}v($o,"y");function Eo(a,e,t,r){var i=1e-6,n=e-a,o=t-e,s=3*n+3*(r-t)-6*o,u=6*(o-n),l=3*n;return Math.abs(s)<i?[-l/u]:function(h,c,g){g===void 0&&(g=1e-6);var f=h*h/4-c;if(f<-g)return[];if(f<=g)return[-h/2];var p=Math.sqrt(f);return[-h/2-p,-h/2+p]}(u/s,l/s,i)}v(Eo,"p");function wo(a,e,t,r,i){var n=1-i;return a*(n*n*n)+e*(3*n*n*i)+t*(3*n*i*i)+r*(i*i*i)}v(wo,"m$1");(function(a){function e(){return i(function(s,u,l){return s.relative&&(s.x1!==void 0&&(s.x1+=u),s.y1!==void 0&&(s.y1+=l),s.x2!==void 0&&(s.x2+=u),s.y2!==void 0&&(s.y2+=l),s.x!==void 0&&(s.x+=u),s.y!==void 0&&(s.y+=l),s.relative=!1),s})}v(e,"r");function t(){var s=NaN,u=NaN,l=NaN,h=NaN;return i(function(c,g,f){return c.type&b.SMOOTH_CURVE_TO&&(c.type=b.CURVE_TO,s=isNaN(s)?g:s,u=isNaN(u)?f:u,c.x1=c.relative?g-s:2*g-s,c.y1=c.relative?f-u:2*f-u),c.type&b.CURVE_TO?(s=c.relative?g+c.x2:c.x2,u=c.relative?f+c.y2:c.y2):(s=NaN,u=NaN),c.type&b.SMOOTH_QUAD_TO&&(c.type=b.QUAD_TO,l=isNaN(l)?g:l,h=isNaN(h)?f:h,c.x1=c.relative?g-l:2*g-l,c.y1=c.relative?f-h:2*f-h),c.type&b.QUAD_TO?(l=c.relative?g+c.x1:c.x1,h=c.relative?f+c.y1:c.y1):(l=NaN,h=NaN),c})}v(t,"e");function r(){var s=NaN,u=NaN;return i(function(l,h,c){if(l.type&b.SMOOTH_QUAD_TO&&(l.type=b.QUAD_TO,s=isNaN(s)?h:s,u=isNaN(u)?c:u,l.x1=l.relative?h-s:2*h-s,l.y1=l.relative?c-u:2*c-u),l.type&b.QUAD_TO){s=l.relative?h+l.x1:l.x1,u=l.relative?c+l.y1:l.y1;var g=l.x1,f=l.y1;l.type=b.CURVE_TO,l.x1=((l.relative?0:h)+2*g)/3,l.y1=((l.relative?0:c)+2*f)/3,l.x2=(l.x+2*g)/3,l.y2=(l.y+2*f)/3}else s=NaN,u=NaN;return l})}v(r,"n");function i(s){var u=0,l=0,h=NaN,c=NaN;return function(g){if(isNaN(h)&&!(g.type&b.MOVE_TO))throw new Error("path must start with moveto");var f=s(g,u,l,h,c);return g.type&b.CLOSE_PATH&&(u=h,l=c),g.x!==void 0&&(u=g.relative?u+g.x:g.x),g.y!==void 0&&(l=g.relative?l+g.y:g.y),g.type&b.MOVE_TO&&(h=u,c=l),f}}v(i,"u");function n(s,u,l,h,c,g){return he(s,u,l,h,c,g),i(function(f,p,d,y){var m=f.x1,T=f.x2,x=f.relative&&!isNaN(y),O=f.x!==void 0?f.x:x?0:p,C=f.y!==void 0?f.y:x?0:d;function E(ue){return ue*ue}v(E,"l"),f.type&b.HORIZ_LINE_TO&&u!==0&&(f.type=b.LINE_TO,f.y=f.relative?0:d),f.type&b.VERT_LINE_TO&&l!==0&&(f.type=b.LINE_TO,f.x=f.relative?0:p),f.x!==void 0&&(f.x=f.x*s+C*l+(x?0:c)),f.y!==void 0&&(f.y=O*u+f.y*h+(x?0:g)),f.x1!==void 0&&(f.x1=f.x1*s+f.y1*l+(x?0:c)),f.y1!==void 0&&(f.y1=m*u+f.y1*h+(x?0:g)),f.x2!==void 0&&(f.x2=f.x2*s+f.y2*l+(x?0:c)),f.y2!==void 0&&(f.y2=T*u+f.y2*h+(x?0:g));var S=s*h-u*l;if(f.xRot!==void 0&&(s!==1||u!==0||l!==0||h!==1))if(S===0)delete f.rX,delete f.rY,delete f.xRot,delete f.lArcFlag,delete f.sweepFlag,f.type=b.LINE_TO;else{var A=f.xRot*Math.PI/180,M=Math.sin(A),V=Math.cos(A),U=1/E(f.rX),N=1/E(f.rY),W=E(V)*U+E(M)*N,q=2*M*V*(U-N),G=E(M)*U+E(V)*N,Q=W*h*h-q*u*h+G*u*u,Y=q*(s*h+u*l)-2*(W*l*h+G*s*u),K=W*l*l-q*s*l+G*s*s,I=(Math.atan2(Y,Q-K)+Math.PI)%Math.PI/2,_=Math.sin(I),J=Math.cos(I);f.rX=Math.abs(S)/Math.sqrt(Q*E(J)+Y*_*J+K*E(_)),f.rY=Math.abs(S)/Math.sqrt(Q*E(_)-Y*_*J+K*E(J)),f.xRot=180*I/Math.PI}return f.sweepFlag!==void 0&&0>S&&(f.sweepFlag=+!f.sweepFlag),f})}v(n,"O");function o(){return function(s){var u={};for(var l in s)u[l]=s[l];return u}}v(o,"l"),a.ROUND=function(s){function u(l){return Math.round(l*s)/s}return v(u,"r"),s===void 0&&(s=1e13),he(s),function(l){return l.x1!==void 0&&(l.x1=u(l.x1)),l.y1!==void 0&&(l.y1=u(l.y1)),l.x2!==void 0&&(l.x2=u(l.x2)),l.y2!==void 0&&(l.y2=u(l.y2)),l.x!==void 0&&(l.x=u(l.x)),l.y!==void 0&&(l.y=u(l.y)),l.rX!==void 0&&(l.rX=u(l.rX)),l.rY!==void 0&&(l.rY=u(l.rY)),l}},a.TO_ABS=e,a.TO_REL=function(){return i(function(s,u,l){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=l),s.relative=!0),s})},a.NORMALIZE_HVZ=function(s,u,l){return s===void 0&&(s=!0),u===void 0&&(u=!0),l===void 0&&(l=!0),i(function(h,c,g,f,p){if(isNaN(f)&&!(h.type&b.MOVE_TO))throw new Error("path must start with moveto");return u&&h.type&b.HORIZ_LINE_TO&&(h.type=b.LINE_TO,h.y=h.relative?0:g),l&&h.type&b.VERT_LINE_TO&&(h.type=b.LINE_TO,h.x=h.relative?0:c),s&&h.type&b.CLOSE_PATH&&(h.type=b.LINE_TO,h.x=h.relative?f-c:f,h.y=h.relative?p-g:p),h.type&b.ARC&&(h.rX===0||h.rY===0)&&(h.type=b.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h})},a.NORMALIZE_ST=t,a.QT_TO_C=r,a.INFO=i,a.SANITIZE=function(s){s===void 0&&(s=0),he(s);var u=NaN,l=NaN,h=NaN,c=NaN;return i(function(g,f,p,d,y){var m=Math.abs,T=!1,x=0,O=0;if(g.type&b.SMOOTH_CURVE_TO&&(x=isNaN(u)?0:f-u,O=isNaN(l)?0:p-l),g.type&(b.CURVE_TO|b.SMOOTH_CURVE_TO)?(u=g.relative?f+g.x2:g.x2,l=g.relative?p+g.y2:g.y2):(u=NaN,l=NaN),g.type&b.SMOOTH_QUAD_TO?(h=isNaN(h)?f:2*f-h,c=isNaN(c)?p:2*p-c):g.type&b.QUAD_TO?(h=g.relative?f+g.x1:g.x1,c=g.relative?p+g.y1:g.y2):(h=NaN,c=NaN),g.type&b.LINE_COMMANDS||g.type&b.ARC&&(g.rX===0||g.rY===0||!g.lArcFlag)||g.type&b.CURVE_TO||g.type&b.SMOOTH_CURVE_TO||g.type&b.QUAD_TO||g.type&b.SMOOTH_QUAD_TO){var C=g.x===void 0?0:g.relative?g.x:g.x-f,E=g.y===void 0?0:g.relative?g.y:g.y-p;x=isNaN(h)?g.x1===void 0?x:g.relative?g.x:g.x1-f:h-f,O=isNaN(c)?g.y1===void 0?O:g.relative?g.y:g.y1-p:c-p;var S=g.x2===void 0?0:g.relative?g.x:g.x2-f,A=g.y2===void 0?0:g.relative?g.y:g.y2-p;m(C)<=s&&m(E)<=s&&m(x)<=s&&m(O)<=s&&m(S)<=s&&m(A)<=s&&(T=!0)}return g.type&b.CLOSE_PATH&&m(f-d)<=s&&m(p-y)<=s&&(T=!0),T?[]:g})},a.MATRIX=n,a.ROTATE=function(s,u,l){u===void 0&&(u=0),l===void 0&&(l=0),he(s,u,l);var h=Math.sin(s),c=Math.cos(s);return n(c,h,-h,c,u-u*c+l*h,l-u*h-l*c)},a.TRANSLATE=function(s,u){return u===void 0&&(u=0),he(s,u),n(1,0,0,1,s,u)},a.SCALE=function(s,u){return u===void 0&&(u=s),he(s,u),n(s,0,0,u,0,0)},a.SKEW_X=function(s){return he(s),n(1,0,Math.atan(s),1,0,0)},a.SKEW_Y=function(s){return he(s),n(1,Math.atan(s),0,1,0,0)},a.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),he(s),n(-1,0,0,1,s,0)},a.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),he(s),n(1,0,0,-1,0,s)},a.A_TO_C=function(){return i(function(s,u,l){return b.ARC===s.type?function(h,c,g){var f,p,d,y;h.cX||Xa(h,c,g);for(var m=Math.min(h.phi1,h.phi2),T=Math.max(h.phi1,h.phi2)-m,x=Math.ceil(T/90),O=new Array(x),C=c,E=g,S=0;S<x;S++){var A=So(h.phi1,h.phi2,S/x),M=So(h.phi1,h.phi2,(S+1)/x),V=M-A,U=4/3*Math.tan(V*me/4),N=[Math.cos(A*me)-U*Math.sin(A*me),Math.sin(A*me)+U*Math.cos(A*me)],W=N[0],q=N[1],G=[Math.cos(M*me),Math.sin(M*me)],Q=G[0],Y=G[1],K=[Q+U*Math.sin(M*me),Y-U*Math.cos(M*me)],I=K[0],_=K[1];O[S]={relative:h.relative,type:b.CURVE_TO};var J=v(function(ue,de){var we=Si([ue*h.rX,de*h.rY],h.xRot),He=we[0],kt=we[1];return[h.cX+He,h.cY+kt]},"H");f=J(W,q),O[S].x1=f[0],O[S].y1=f[1],p=J(I,_),O[S].x2=p[0],O[S].y2=p[1],d=J(Q,Y),O[S].x=d[0],O[S].y=d[1],h.relative&&(O[S].x1-=C,O[S].y1-=E,O[S].x2-=C,O[S].y2-=E,O[S].x-=C,O[S].y-=E),C=(y=[O[S].x,O[S].y])[0],E=y[1]}return O}(s,s.relative?0:u,s.relative?0:l):s})},a.ANNOTATE_ARCS=function(){return i(function(s,u,l){return s.relative&&(u=0,l=0),b.ARC===s.type&&Xa(s,u,l),s})},a.CLONE=o,a.CALCULATE_BOUNDS=function(){var s=v(function(g){var f={};for(var p in g)f[p]=g[p];return f},"t"),u=e(),l=r(),h=t(),c=i(function(g,f,p){var d=h(l(u(s(g))));function y(_){_>c.maxX&&(c.maxX=_),_<c.minX&&(c.minX=_)}v(y,"O");function m(_){_>c.maxY&&(c.maxY=_),_<c.minY&&(c.minY=_)}if(v(m,"l"),d.type&b.DRAWING_COMMANDS&&(y(f),m(p)),d.type&b.HORIZ_LINE_TO&&y(d.x),d.type&b.VERT_LINE_TO&&m(d.y),d.type&b.LINE_TO&&(y(d.x),m(d.y)),d.type&b.CURVE_TO){y(d.x),m(d.y);for(var T=0,x=Eo(f,d.x1,d.x2,d.x);T<x.length;T++)0<(I=x[T])&&1>I&&y(wo(f,d.x1,d.x2,d.x,I));for(var O=0,C=Eo(p,d.y1,d.y2,d.y);O<C.length;O++)0<(I=C[O])&&1>I&&m(wo(p,d.y1,d.y2,d.y,I))}if(d.type&b.ARC){y(d.x),m(d.y),Xa(d,f,p);for(var E=d.xRot/180*Math.PI,S=Math.cos(E)*d.rX,A=Math.sin(E)*d.rX,M=-Math.sin(E)*d.rY,V=Math.cos(E)*d.rY,U=d.phi1<d.phi2?[d.phi1,d.phi2]:-180>d.phi2?[d.phi2+360,d.phi1+360]:[d.phi2,d.phi1],N=U[0],W=U[1],q=function(_){var J=_[0],ue=_[1],de=180*Math.atan2(ue,J)/Math.PI;return de<N?de+360:de},G=0,Q=Oo(M,-S,0).map(q);G<Q.length;G++)(I=Q[G])>N&&I<W&&y($o(d.cX,S,M,I));for(var Y=0,K=Oo(V,-A,0).map(q);Y<K.length;Y++){var I;(I=K[Y])>N&&I<W&&m($o(d.cY,A,V,I))}}return g});return c.minX=1/0,c.maxX=-1/0,c.minY=1/0,c.maxY=-1/0,c}})(z||(z={}));var le,yl=function(){function a(){}return v(a,"t"),a.prototype.round=function(e){return this.transform(z.ROUND(e))},a.prototype.toAbs=function(){return this.transform(z.TO_ABS())},a.prototype.toRel=function(){return this.transform(z.TO_REL())},a.prototype.normalizeHVZ=function(e,t,r){return this.transform(z.NORMALIZE_HVZ(e,t,r))},a.prototype.normalizeST=function(){return this.transform(z.NORMALIZE_ST())},a.prototype.qtToC=function(){return this.transform(z.QT_TO_C())},a.prototype.aToC=function(){return this.transform(z.A_TO_C())},a.prototype.sanitize=function(e){return this.transform(z.SANITIZE(e))},a.prototype.translate=function(e,t){return this.transform(z.TRANSLATE(e,t))},a.prototype.scale=function(e,t){return this.transform(z.SCALE(e,t))},a.prototype.rotate=function(e,t,r){return this.transform(z.ROTATE(e,t,r))},a.prototype.matrix=function(e,t,r,i,n,o){return this.transform(z.MATRIX(e,t,r,i,n,o))},a.prototype.skewX=function(e){return this.transform(z.SKEW_X(e))},a.prototype.skewY=function(e){return this.transform(z.SKEW_Y(e))},a.prototype.xSymmetry=function(e){return this.transform(z.X_AXIS_SYMMETRY(e))},a.prototype.ySymmetry=function(e){return this.transform(z.Y_AXIS_SYMMETRY(e))},a.prototype.annotateArcs=function(){return this.transform(z.ANNOTATE_ARCS())},a}(),o1=v(function(a){return a===" "||a==="	"||a==="\r"||a===`
18`},"T"),Co=v(function(a){return"0".charCodeAt(0)<=a.charCodeAt(0)&&a.charCodeAt(0)<="9".charCodeAt(0)},"v"),u1=function(a){function e(){var t=a.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return v(e,"e"),pl(e,a),e.prototype.finish=function(t){if(t===void 0&&(t=[]),this.parse(" ",t),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,r){var i=this;r===void 0&&(r=[]);for(var n=function(c){r.push(c),i.curArgs.length=0,i.canParseCommandOrComma=!0},o=0;o<t.length;o++){var s=t[o],u=!(this.curCommandType!==b.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=Co(s)&&(this.curNumber==="0"&&s==="0"||u);if(!Co(s)||l)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||u){if(this.curNumber&&this.curCommandType!==-1){var h=Number(this.curNumber);if(isNaN(h))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===b.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>h)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(h),this.curArgs.length===l1[this.curCommandType]&&(b.HORIZ_LINE_TO===this.curCommandType?n({type:b.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):b.VERT_LINE_TO===this.curCommandType?n({type:b.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===b.MOVE_TO||this.curCommandType===b.LINE_TO||this.curCommandType===b.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),b.MOVE_TO===this.curCommandType&&(this.curCommandType=b.LINE_TO)):this.curCommandType===b.CURVE_TO?n({type:b.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===b.SMOOTH_CURVE_TO?n({type:b.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===b.QUAD_TO?n({type:b.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===b.ARC&&n({type:b.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(!o1(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=b.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=b.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=b.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=b.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=b.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=b.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=b.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=b.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=b.ARC,this.curCommandRelative=s==="a"}else r.push({type:b.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(r,i){i===void 0&&(i=[]);for(var n=0,o=Object.getPrototypeOf(this).parse.call(this,r);
18n<o.length;n++){var s=o[n],u=t(s);Array.isArray(u)?i.push.apply(i,u):i.push(u)}return i}}})},e}(yl),b=function(a){function e(t){var r=a.call(this)||this;return r.commands=typeof t=="string"?e.parse(t):t,r}return v(e,"i"),pl(e,a),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=z.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var r=[],i=0,n=this.commands;i<n.length;i++){var o=t(n[i]);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return this.commands=r,this},e.encode=function(t){return s1(t)},e.parse=function(t){var r=new u1,i=[];return r.parse(t,i),r.finish(i),i},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(yl),l1=((le={})[b.MOVE_TO]=2,le[b.LINE_TO]=2,le[b.HORIZ_LINE_TO]=1,le[b.VERT_LINE_TO]=1,le[b.CLOSE_PATH]=0,le[b.QUAD_TO]=4,le[b.SMOOTH_QUAD_TO]=2,le[b.CURVE_TO]=6,le[b.SMOOTH_CURVE_TO]=4,le[b.ARC]=7,le),h1=X,v1=ge,f1=Ar,c1=Xu,Ao=RegExp.prototype,g1=v(function(a){var e=a.flags;return e===void 0&&!("flags"in Ao)&&!v1(a,"flags")&&f1(Ao,a)?h1(c1,a):e},"regexpGetFlags"),d1=Ir.PROPER,p1=Ge,y1=ee,Po=ye,m1=k,b1=g1,on="toString",ml=RegExp.prototype,bl=ml[on],x1=m1(function(){return bl.call({source:"a",flags:"b"})!=="/a/b"}),T1=d1&&bl.name!==on;(x1||T1)&&p1(ml,on,v(function(){var e=y1(this),t=Po(e.source),r=Po(b1(e));return"/"+t+"/"+r},"toString"),{unsafe:!0});function yr(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yr=v(function(e){return typeof e},"_typeof"):yr=v(function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},"_typeof"),yr(a)}v(yr,"_typeof");function O1(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}v(O1,"_classCallCheck");var S1=[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,39
vendor: 4,620 bytes, line 18
186,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],$1=[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 E1(a,e,t,r,i){if(typeof a=="string"&&(a=document.getElementById(a)),!a||yr(a)!=="object"||!("getContext"in a))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var n=a.getContext("2d");try{return n.getImageData(e,t,r,i)}catch(o){throw new Error("unable to access image data: "+o)}}v(E1,"getImageDataFromCanvas");function w1(a,e,t,r,i,n){if(!(isNaN(n)||n<1)){n|=0;var o=E1(a,e,t,r,i);o=C1(o,e,t,r,i,n),a.getContext("2d").putImageData(o,e,t)}}v(w1,"processCanvasRGBA");function C1(a,e,t,r,i,n){for(var o=a.data,s=2*n+1,u=r-1,l=i-1,h=n+1,c=h*(h+1)/2,g=new Ro,f=g,p,d=1;d<s;d++)f=f.next=new Ro,d===h&&(p=f);f.next=g;for(var y=null,m=null,T=0,x=0,O=S1[n],C=$1[n],E=0;E<i;E++){f=g;for(var S=o[x],A=o[x+1],M=o[x+2],V=o[x+3],U=0;U<h;U++)f.r=S,f.g=A,f.b=M,f.a=V,f=f.next;for(var N=0,W=0,q=0,G=0,Q=h*S,Y=h*A,K=h*M,I=h*V,_=c*S,J=c*A,ue=c*M,de=c*V,we=1;we<h;we++){var He=x+((u<we?u:we)<<2),kt=o[He],pn=o[He+1],yn=o[He+2],mn=o[He+3],Bt=h-we;_+=(f.r=kt)*Bt,J+=(f.g=pn)*Bt,ue+=(f.b=yn)*Bt,de+=(f.a=mn)*Bt,N+=kt,W+=pn,q+=yn,G+=mn,f=f.next}y=g,m=p;for(var Gr=0;Gr<r;Gr++){var Hr=de*O>>>C;if(o[x+3]=Hr,Hr!==0){var Yr=255/Hr;o[x]=(_*O>>>C)*Yr,o[x+1]=(J*O>>>C)*Yr,o[x+2]=(ue*O>>>C)*Yr}else o[x]=o[x+1]=o[x+2]=0;_-=Q,J-=Y,ue-=K,de-=I,Q-=y.r,Y-=y.g,K-=y.b,I-=y.a;var Ne=Gr+n+1;Ne=T+(Ne<u?Ne:u)<<2,N+=y.r=o[Ne],W+=y.g=o[Ne+1],q+=y.b=o[Ne+2],G+=y.a=o[Ne+3],_+=N,J+=W,ue+=q,de+=G,y=y.next;var jt=m,bn=jt.r,xn=jt.g,Tn=jt.b,On=jt.a;Q+=bn,Y+=xn,K+=Tn,I+=On,N-=bn,W-=xn,q-=Tn,G-=On,m=m.next,x+=4}T+=r}for(var Ye=0;Ye<r;Ye++){x=Ye<<2;var Ie=o[x],Me=o[x+1],_e=o[x+2],re=o[x+3],Xr=h*Ie,Wr=h*Me,qr=h*_e,Qr=h*re,Ut=c*Ie,Ft=c*Me,zt=c*_e,Gt=c*re;f=g;for(var Sn=0;Sn<h;Sn++)f.r=Ie,f.g=Me,f.b=_e,f.a=re,f=f.next;for(var $n=r,Kr=0,Zr=0,Jr=0,ea=0,Ht=1;Ht<=n;Ht++){x=$n+Ye<<2;var Yt=h-Ht;Ut+=(f.r=Ie=o[x])*Yt,Ft+=(f.g=Me=o[x+1])*Yt,zt+=(f.b=_e=o[x+2])*Yt,Gt+=(f.a=re=o[x+3])*Yt,ea+=Ie,Kr+=Me,Zr+=_e,Jr+=re,f=f.next,Ht<l&&($n+=r)}x=Ye,y=g,m=p;for(var ta=0;ta<i;ta++){var ae=x<<2;o[ae+3]=re=Gt*O>>>C,re>0?(re=255/re,o[ae]=(Ut*O>>>C)*re,o[ae+1]=(Ft*O>>>C)*re,o[ae+2]=(zt*O>>>C)*re):o[ae]=o[ae+1]=o[ae+2]=0,Ut-=Xr,Ft-=Wr,zt-=qr,Gt-=Qr,Xr-=y.r,Wr-=y.g,qr-=y.b,Qr-=y.a,ae=Ye+((ae=ta+h)<l?ae:l)*r<<2,Ut+=ea+=y.r=o[ae],Ft+=Kr+=y.g=o[ae+1],zt+=Zr+=y.b=o[ae+2],Gt+=Jr+=y.a=o[ae+3],y=y.next,Xr+=Ie=m.r,Wr+=Me=m.g,qr+=_e=m.b,Qr+=re=m.a,ea-=Ie,Kr-=Me,Zr-=_e,Jr-=re,m=m.next,x+=r}}return a}v(C1,"processImageDataRGBA");var Ro=v(function a(){O1(this,a),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null},"BlurStack");function A1(){var{DOMParser:a}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:a,createCanvas(t,r){return new OffscreenCanvas(t,r)},createImage(t){return Oe(function*(){var r=yield fetch(t),i=yield r.blob(),n=yield createImageBitmap(i);return n})()}};return(typeof DOMParser!="undefined"||typeof a=="undefined")&&Reflect.deleteProperty(e,"DOMParser"),e}v(A1,"offscreen");function P1(a){var{DOMParser:e,canvas:t,fetch:r}=a;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:r,createCanvas:t.createCanvas,createImage:t.loadImage}}v(P1,"node");var i2=Object.freeze({__proto__:null,offscreen:A1,node:P1});function ft(a){return a.replace(/(?!\u3000)\s+/gm," ")}v(ft,"compressSpaces");function R1(a){return a.replace(/^[\n \t]+/,"")}v(R1,"trimLeft");function N1(a){return a.replace(/[\n \t]+$/,"")}v(N1,"trimRight");function se(a){var e=(a||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}v(se,"toNumbers");var I1=/^[A-Z-]+$/;function M1(a){return I1.test(a)?a.toLowerCase():a}v(M1,"normalizeAttributeName");
18function xl(a){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a)||[];return e[2]||e[3]||e[4]}v(xl,"parseExternalUrl");function _1(a){if(!a.startsWith("rgb"))return a;var e=3,t=a.replace(/\d+(\.\d+)?/g,(r,i)=>e--&&i?String(Math.round(parseFloat(r))):r);return t}v(_1,"normalizeColor");var V1=/(\[[^\]]+\])/g,D1=/(#[^\s+>~.[:]+)/g,L1=/(\.[^\s+>~.[:]+)/g,k1=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,B1=/(:[\w-]+\([^)]*\))/gi,j1=/(:[^\s+>~.[:]+)/g,U1=/([^\s+>~.[:]+)/g;function Le(a,e){var t=e.exec(a);return t?[a.replace(e," "),t.length]:[a,0]}v(Le,"findSelectorMatch");function F1(a){var e=[0,0,0],t=a.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),r=0;return[t,r]=Le(t,V1),e[1]+=r,[t,r]=Le(t,D1),e[0]+=r,[t,r]=Le(t,L1),e[1]+=r,[t,r]=Le(t,k1),e[2]+=r,[t,r]=Le(t,B1),e[1]+=r,[t,r]=Le(t,j1),e[1]+=r,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,r]=Le(t,U1),e[2]+=r,e.join("")}v(F1,"getSelectorSpecificity");var nt=1e-8;function No(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2))}v(No,"vectorMagnitude");function $i(a,e){return(a[0]*e[0]+a[1]*e[1])/(No(a)*No(e))}v($i,"vectorsRatio");function Io(a,e){return(a[0]*e[1]<a[1]*e[0]?-1:1)*Math.acos($i(a,e))}v(Io,"vectorsAngle");function Mo(a){return a*a*a}v(Mo,"CB1");function _o(a){return 3*a*a*(1-a)}v(_o,"CB2");function Vo(a){return 3*a*(1-a)*(1-a)}v(Vo,"CB3");function Do(a){return(1-a)*(1-a)*(1-a)}v(Do,"CB4");function Lo(a){return a*a}v(Lo,"QB1");function ko(a){return 2*a*(1-a)}v(ko,"QB2");function Bo(a){return(1-a)*(1-a)}v(Bo,"QB3");class ${constructor(e,t,r){this.document=e,this.name=t,this.value=r,this.isNormalizedColor=!1}static empty(e){return new $(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:r}=this;return ft(this.getString()).trim().split(e).map(i=>new $(t,r,i))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t!="undefined"}isString(e){var{value:t}=this,r=typeof t=="string";return!r||!e?r:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e=="undefined"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e=="undefined"?0:parseFloat(e);var{value:t}=this,r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(e){return typeof e=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=_1(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.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 this.getNumber()*15;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(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:{var o=this.getNumber();return t&&o<1?o*n.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}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)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,e,t);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?$.textBaselineMapping[this.get
vendor: 6,633 bytes, line 18
18String()]:null}addOpacity(e){for(var t=this.getColor(),r=t.length,i=0,n=0;n<r&&(t[n]===","&&i++,i!==3);n++);if(e.hasValue()&&this.isString()&&i!==3){var o=new Ti(t);o.ok&&(o.alpha=e.getNumber(),t=o.toRGBA())}return new $(this.document,this.name,t)}}v($,"Property");$.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"};class Tl{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}v(Tl,"ViewPort");class D{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=t,i=t]=se(e);return new D(r,i)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=t,i=r]=se(e);return new D(r,i)}static parsePath(e){for(var t=se(e),r=t.length,i=[],n=0;n<r;n+=2)i.push(new D(t[n],t[n+1]));return i}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:r}=this,i=t*e[0]+r*e[2]+e[4],n=t*e[1]+r*e[3]+e[5];this.x=i,this.y=n}}v(D,"Point");class Ol{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:r}=this,i=e.ctx.canvas;i.onclick=t,i.onmousemove=r,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:r}=this,{style:i}=e.ctx.canvas;i&&(i.cursor=""),t.forEach((n,o)=>{for(var{run:s}=n,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInPath&&t.isPointInPath(s,u)&&(i[o]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInBox(s,u)&&(i[o]=e)})}}mapXY(e,t){for(var{window:r,ctx:i}=this.screen,n=new D(e,t),o=i.canvas;o;)n.x-=o.offsetLeft,n.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}}v(Ol,"Mouse");var Sl=typeof window!="undefined"?window:null,$l=typeof fetch!="undefined"?fetch.bind(void 0):null;class _t{constructor(e){var{fetch:t=$l,window:r=Sl}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Tl,this.mouse=new Ol(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(t=>t());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:r,aspectRatio:i,width:n,desiredWidth:o,height:s,desiredHeight:u,minX:l=0,minY:h=0,refX:c,refY:g,clip:f=!1,clipX:p=0,clipY:d=0}=e,y=ft(i).replace(/^defer\s/,""),[m,T]=y.split(" "),x=m||"xMidYMid",O=T||"meet",C=n/o,E=s/u,S=Math.min(C,E),A=Math.max(C,E),M=o,V=u;O==="meet"&&(M*=S,V*=S),O==="slice"&&(M*=A,V*=A);var U=new $(t,"refX",c),N=new $(t,"refY",g),W=U.hasValue()&&N.hasValue();if(W&&r.translate(-S*U.getPixels("x"),-S*N.getPixels("y")),f){var q=S*p,G=S*d;r.beginPath(),r.moveTo(q,G),r.lineTo(n,G),r.lineTo(n,s),r.lineTo(q,s),r.closePath(),r.clip()}if(!W){var Q=O==="meet"&&S===E,Y=O==="slice"&&A===E,K=O==="meet"&&S===C,I=O==="slice"&&A===C;x.startsWith("xMid")&&(Q||Y)&&r.translate(n/2-M/2,0),x.endsWith("YMid")&&(K||I)&&r.translate(0,s/2-V/2),x.startsWith("xMax")&&(Q||Y)&&r.translate(n-M,0),x.endsWith("YMax")&&(K||I)&&r.translate(0,s-V)}switch(!0){case x==="none":r.scale(C,E);break;case O==="meet":r.scale(S,S);break;case O==="slice":r.scale(A,A);break}r.translate(-l,-h)}start(e){var{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:u,scaleHeight:l,offsetX:h,offsetY:c}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:g,mouse:f}=this,p=1e3/g;if(this.frameDuration=p,this.readyPromise=new Promise(x=>{this.resolveReady=x}),this.isReady()&&this.render(e,n,o,u,l,h,c),!!t){var d=Date.now(),y=d,m=0,T=v(()=>{d=Date.now(),m=d-y,m>=p&&(y=d-m%p,this.shouldUpdate(i,s)&&(this.render(e,n,o,u,l,h,c),f.runEvents())),this.intervalId=je(T)},"tick");r||f.start(),this.intervalId=je(T)}}stop(){this.intervalId&&(je.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:r}=this,i=this.animations.reduce((n,o)=>o.update(r)||n,!1);if(i)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,r,i,n,o,s){var{CLIENT_WIDTH:u,CLIENT_HEIGHT:l,viewPort:h,ctx:c,isFirstRender:g}=this,f=c.canvas;h.clear(),f.width&&f.height?h.setCurrent(f.width,f.height):h.setCurrent(u,l);var p=e.getStyle("width"),d=e.getStyle("height");!t&&(g||typeof i!="number"&&typeof n!="number")&&(p.hasValue()&&(f.width=p.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),d.hasValue()&&(f.height=d.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var y=f.clientWidth||f.width,m=f.clientHeight||f.height;if(t&&p.hasValue()&&d.hasValue()&&(y=p.getPixels("x"),m=d.getPixels("y")),h.setCurrent(y,m),typeof o=="number"&&e.getAttribute("x",!0).setValue(o),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof n=="number"){var T=se(e.getAttribute("viewBox").getString()),x=0,O=0;
18if(typeof i=="number"){var C=e.getStyle("width");C.hasValue()?x=C.getPixels("x")/i:isNaN(T[2])||(x=T[2]/i)}if(typeof n=="number"){var E=e.getStyle("height");E.hasValue()?O=E.getPixels("y")/n:isNaN(T[3])||(O=T[3]/n)}x||(x=O),O||(O=x),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(n);var S=e.getStyle("transform",!0,!0);S.setValue("".concat(S.getString()," scale(").concat(1/x,", ").concat(1/O,")"))}r||c.clearRect(0,0,y,m),e.render(c),g&&(this.isFirstRender=!1)}}v(_t,"Screen");_t.defaultWindow=Sl;_t.defaultFetch=$l;var{defaultFetch:z1}=_t,G1=typeof DOMParser!="undefined"?DOMParser:null;class mr{constructor(){var{fetch:e=z1,DOMParser:t=G1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return Oe(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(r){return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return Oe(function*(){var r=yield t.fetch(e),i=yield r.text();return t.parseFromString(i)})()}}v(mr,"Parser");class El{constructor(e,t){this.type="translate",this.point=null,this.point=D.parse(t)}apply(e){var{x:t,y:r}=this.point;e.translate(t||0,r||0)}unapply(e){var{x:t,y:r}=this.point;e.translate(-1*t||0,-1*r||0)}applyToPoint(e){var{x:t,y:r}=this.point;e.applyTransform([1,0,0,1,t||0,r||0])}}v(El,"Translate");class wl{constructor(e,t,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=se(t);this.angle=new $(e,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(o.getRadians()),e.translate(-s,-u)}unapply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(-1*o.getRadians()),e.translate(-s,-u)}applyToPoint(e){var{cx:t,cy:r,angle:i}=this,n=i.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}}v(wl,"Rotate");class Cl{constructor(e,t,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=D.parseScale(t);(i.x===0||i.y===0)&&(i.x=nt,i.y=nt),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(t,r||t),e.translate(-o,-s)}unapply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(1/t,1/r||t),e.translate(-o,-s)}applyToPoint(e){var{x:t,y:r}=this.scale;e.applyTransform([t||0,0,0,r||0,0,0])}}v(Cl,"Scale");class un{constructor(e,t,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=se(t),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:t,originY:r,matrix:i}=this,n=t.getPixels("x"),o=r.getPixels("y");e.translate(n,o),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),e.translate(-n,-o)}unapply(e){var{originX:t,originY:r,matrix:i}=this,n=i[0],o=i[2],s=i[4],u=i[1],l=i[3],h=i[5],c=0,g=0,f=1,p=1/(n*(l*f-h*g)-o*(u*f-h*c)+s*(u*g-l*c)),d=t.getPixels("x"),y=r.getPixels("y");e.translate(d,y),e.transform(p*(l*f-h*g),p*(h*c-u*f),p*(s*g-o*f),p*(n*f-s*c),p*(o*h-s*l),p*(s*u-n*h)),e.translate(-d,-y)}applyToPoint(e){e.applyTransform(this.matrix)}}v(un,"Matrix");class ln extends un{constructor(e,t,r){super(e,t,r),this.type="skew",this.angle=null,this.angle=new $(e,"angle",t)}}v(ln,"Skew");class Al extends ln{constructor(e,t,r){super(e,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}v(Al,"SkewX");class Pl extends ln{constructor(e,t,r){super(e,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}v(Pl,"SkewY");function H1(a){return ft(a).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}v(H1,"parseTransforms");function Y1(a){var[e,t]=a.split("(");return[e.trim(),t.trim().replace(")","")]}v(Y1,"parseTransform");class Pe{constructor(e,t,r){this.document=e,this.transforms=[];var i=H1(t);
vendor: 57,196 bytes, line 18
18i.forEach(n=>{if(n!=="none"){var[o,s]=Y1(n),u=Pe.transformTypes[o];typeof u!="undefined"&&this.transforms.push(new u(this.document,s,r))}})}static fromElement(e,t){var r=t.getStyle("transform",!1,!0),[i,n=i]=t.getStyle("transform-origin",!1,!0).split(),o=[i,n];return r.hasValue()?new Pe(e,r.getString(),o):null}apply(e){for(var{transforms:t}=this,r=t.length,i=0;i<r;i++)t[i].apply(e)}unapply(e){for(var{transforms:t}=this,r=t.length,i=r-1;i>=0;i--)t[i].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,r=t.length,i=0;i<r;i++)t[i].applyToPoint(e)}}v(Pe,"Transform");Pe.transformTypes={translate:El,rotate:wl,scale:Cl,matrix:un,skewX:Al,skewY:Pl};class R{constructor(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=r,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(s=>{var u=M1(s.nodeName);this.attributes[u]=new $(e,u,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(s){var[u,l]=s.split(":").map(h=>h.trim());this.styles[u]=new $(e,u,l)}})}var{definitions:n}=e,o=this.getAttribute("id");o.hasValue()&&(n[o.getString()]||(n[o.getString()]=this)),Array.from(t.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var u=e.createTextNode(s);u.getText().length>0&&this.addChild(u)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[e];if(!r&&t){var i=new $(this.document,e,"");return this.attributes[e]=i,i}return r||$.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return $.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[e];if(i)return i;var n=this.getAttribute(e);if(n!=null&&n.hasValue())return this.styles[e]=n,n;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(e);if(s!=null&&s.hasValue())return s}}if(t){var u=new $(this.document,e,"");return this.styles[e]=u,u}return i||$.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=Pe.fromElement(this.document,this);t&&t.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof R?e:this.document.createElement(e);t.parent=this,R.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:r}=this;if(typeof r.matches=="function")return r.matches(e);var i=(t=r.getAttribute)===null||t===void 0?void 0:t.call(r,"class");return!i||i===""?!1:i.split(" ").some(n=>".".concat(n)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=e[r],n=t[r];if(i)for(var o in i){var s=this.stylesSpecificity[o];typeof s=="undefined"&&(s="000"),n>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=n)}}}removeStyles(e,t){var r=t.reduce((i,n)=>{var o=e.getStyle(n);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[...i,[n,s]]},[]);return r}restoreStyles(e,t){t.forEach(r=>{var[i,n]=r;e.getStyle(i,!0).setValue(n)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}}v(R,"Element");R.ignoreChildTypes=["title"];class Rl extends R{constructor(e,t,r){super(e,t,r)}}v(Rl,"UnknownElement");function X1(a){var e=a.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}v(X1,"wrapFontFamily");function W1(a){return typeof process=="undefined"?a:a.trim().split(",").map(X1).join(",")}v(W1,"prepareFontFamily");function q1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}v(q1,"prepareFontStyle");function Q1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}v(Q1,"prepareFontWeight");class Z{constructor(e,t,r,i,n,o){var s=o?typeof o=="string"?Z.parse(o):o:{};this.fontFamily=n||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r="",i="",n="",o="",s="",u=ft(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach(h=>{switch(!0){case(!l.fontStyle&&Z.styles.includes(h)):h!=="inherit"&&(r=h),l.fontStyle=!0;break;case(!l.fontVariant&&Z.variants.includes(h)):h!=="inherit"&&(i=h),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&Z.weights.includes(h)):h!=="inherit"&&(n=h),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:h!=="inherit"&&([o]=h.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:h!=="inherit"&&(s+=h)}}),new Z(r,i,n,o,s,t)}toString(){return[q1(this.fontStyle),this.fontVariant,Q1(this.fontWeight),this.fontSize,W1(this.fontFamily)].join(" ").trim()}}v(Z,"Font");Z.styles="normal|italic|oblique|inherit";Z.variants="normal|small-caps|inherit";Z.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class oe{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=r,this.y2=i,this.addPoint(e,t),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){typeof e!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:r,x2:i,y2:n}=e;this.addPoint(t,r),this.addPoint(i,n)}}sumCubic(e,t,r,i,n){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*i+Math.pow(e,3)*n}bezierCurveAdd(e,t,r,i,n){var o=6*t-12*r+6*i,s=-3*t+9*r-9*i+3*n,u=3*r-3*t;if(s===0){if(o===0)return;var l=-u/o;0<l&&l<1&&(e?this.addX(this.sumCubic(l,t,r,i,n)):this.addY(this.sumCubic(l,t,r,i,n)));return}var h=Math.pow(o,2)-4*u*s;if(!(h<0)){var c=(-o+Math.sqrt(h))/(2*s);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,r,i,n)):this.addY(this.sumCubic(c,t,r,i,n)));var g=(-o-Math.sqrt(h))/(2*s);0<g&&g<1&&(e?this.addX(this.sumCubic(g,t,r,i,n)):this.addY(this.sumCubic(g,t,r,i,n)))}}addBezierCurve(e,t,r,i,n,o,s,u){this.addPoint(e,t),this.addPoint(s,u),this.bezierCurveAdd(!0,e,r,n,s),this.bezierCurveAdd(!1,t,i,o,u)}addQuadraticCurve(e,t,r,i,n,o){var s=e+.6666666666666666*(r-e),u=t+2/3*(i-t),l=s+1/3*(n-e),h=u+1/3*(o-t);this.addBezierCurve(e,t,s,l,u,h,n,o)}isPointInBox(e,t){var{x1:r,y1:i,x2:n,y2:o}=this;return r<=e&&e<=n&&i<=t&&t<=o}}v(oe,"BoundingBox");class w extends b{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new D(0,0),this.control=new D(0,0),this.current=new D(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new D(this.command[e],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(e,t){var r=this.getPoint(e,t);return this.control=r,r}getAsCurrentPoint(e,t){var r=this.getPoint(e,t);return this.current=r,r}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==b.CURVE_TO&&e!==b.SMOOTH_CURVE_TO&&e!==b.QUAD_TO&&e!==b.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:r},control:{x:i,y:n}}=this,o=new D(2*t-i,2*r-n);return o}makeAbsolute(e){if(this.command.relative){var{x:t,y:r}=this.current;e.x+=t,e.y+=r}return e}addMarker(e,t,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,r=0;r<t;r++)if(!e[r]){for(var i=r+1;i<t;i++)if(e[i]){e[r]=e[i];break}}return e}}v(w,"PathParser");class Re extends R{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var r=t.getStyle("opacity",!1,!0);r.hasValue(!0)&&(e*=r.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(e.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();u!=="inherit"&&(e.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(i.hasValue()){var l=new $(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=l}if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,o);h&&(e.strokeStyle=h)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var c=n.getString();c!=="inherit"&&(e.strokeStyle=c==="none"?"rgba(0,0,0,0)":c)}if(o.hasValue()){var g=new $(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=g}var f=this.getStyle("stroke-width");if(f.hasValue()){var p=f.getPixels();e.lineWidth=p||nt}var d=this.getStyle("stroke-linecap"),y=this.getStyle("stroke-linejoin"),m=this.getStyle("stroke-miterlimit"),T=this.getStyle("stroke-dasharray"),x=this.getStyle("stroke-dashoffset");if(d.hasValue()&&(e.lineCap=d.getString()),y.hasValue()&&(e.lineJoin=y.getString()),m.hasValue()&&(e.miterLimit=m.getNumber()),T.hasValue()&&T.getString()!=="none"){var O=se(T.getString());typeof e.setLineDash!="undefined"?e.setLineDash(O):typeof e.webkitLineDash!="undefined"?e.webkitLineDash=O:typeof e.mozDash!="undefined"&&!(O.length===1&&O[0]===0)&&(e.mozDash=O);var C=x.getPixels();typeof e.lineDashOffset!="undefined"?e.lineDashOffset=C:typeof e.webkitLineDashOffset!="undefined"?e.webkitLineDashOffset=C:typeof e.mozDashOffset!="undefined"&&(e.mozDashOffset=C)}}if(this.modifiedEmSizeStack=!1,typeof e.font!="undefined"){var E=this.getStyle("font"),S=this.getStyle("font-style"),A=this.getStyle("font-variant"),M=this.getStyle("font-weight"),V=this.getStyle("font-size"),U=this.getStyle("font-family"),N=new Z(S.getString(),A.getString(),M.getString(),V.hasValue()?"".concat(V.getPixels(!0),"px"):"",U.getString(),Z.parse(E.getString(),e.font));S.setValue(N.fontStyle),A.setValue(N.fontVariant),M.setValue(N.fontWeight),V.setValue(N.fontSize),U.setValue(N.fontFamily),e.font=N.toString(),V.isPixels()&&(this.document.emSize=V.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}v(Re,"RenderedElement");class P extends Re{constructor(e,t,r){super(e,t,r),this.type="path",this.pathParser=null,this.pathParser=new w(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,r=new oe;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case w.MOVE_TO:this.pathM(e,r);break;case w.LINE_TO:this.pathL(e,r);break;case w.HORIZ_LINE_TO:this.pathH(e,r);break;case w.VERT_LINE_TO:this.pathV(e,r);break;case w.CURVE_TO:this.pathC(e,r);break;case w.SMOOTH_CURVE_TO:this.pathS(e,r);break;case w.QUAD_TO:this.pathQ(e,r);break;case w.SMOOTH_QUAD_TO:this.pathT(e,r);break;case w.ARC:this.pathA(e,r);break;case w.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),r=e.getMarkerAngles(),i=t.map((n,o)=>[n,r[o]]);return i}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");e.fillStyle!==""&&(t.getString("inherit")!=="inherit"?e.fill(t.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var i=r.length-1,n=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var u=n.getDefinition(),[l,h]=r[0];u.render(e,l,h)}if(o.isUrlDefinition())for(var c=o.getDefinition(),g=1;g<i;g++){var[f,p]=r[g];c.render(e,f,p)}if(s.isUrlDefinition()){var d=s.getDefinition(),[y,m]=r[i];d.render(e,y,m)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:r}=this,{point:i}=P.pathM(r),{x:n,y:o}=i;r.addMarker(i),t.addPoint(n,o),e&&e.moveTo(n,o)}static pathL(e){var{current:t}=e,r=e.getAsCurrentPoint();return{current:t,point:r}}pathL(e,t){var{pathParser:r}=this,{current:i,point:n}=P.pathL(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathH(e){var{current:t,command:r}=e,i=new D((r.relative?t.x:0)+r.x,t.y);return e.current=i,{current:t,point:i}}pathH(e,t){var{pathParser:r}=this,{current:i,point:n}=P.pathH(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathV(e){var{current:t,command:r}=e,i=new D(t.x,(r.relative?t.y:0)+r.y);return e.current=i,{current:t,point:i}}pathV(e,t){var{pathParser:r}=this,{current:i,point:n}=P.pathV(r),{x:o,y:s}=n;r.addMarker(n,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathC(e){var{current:t}=e,r=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:i,currentPoint:n}}pathC(e,t){var{pathParser:r}=this,{current:i,point:n,controlPoint:o,currentPoint:s}=P.pathC(r);r.addMarker(s,o,n),t.addBezierCurve(i.x,i.y,n.x,n.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(n.x,n.y,o.x,o.y,s.x,s.y)}static pathS(e){var{current:t}=e,r=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),n=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:i,currentPoint:n}}pathS(e,t){var{pathParser:r}=this,{current:i,point:n,controlPoint:o,currentPoint:s}=P.pathS(r);r.addMarker(s,o,n),t.addBezierCurve(i.x,i.y,n.x,n.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(n.x,n.y,o.x,o.y,s.x,s.y)}static pathQ(e){var{current:t}=e,r=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:i}}pathQ(e,t){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:o}=P.pathQ(r);r.addMarker(o,n,n),t.addQuadraticCurve(i.x,i.y,n.x,n.y,o.x,o.y),e&&e.quadraticCurveTo(n.x,n.y,o.x,o.y)}static pathT(e){var{current:t}=e,r=e.getReflectedControlPoint();e.control=r;var i=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:i}}pathT(e,t){var{pathParser:r}=this,{current:i,controlPoint:n,currentPoint:o}=P.pathT(r);r.addMarker(o,n,n),t.addQuadraticCurve(i.x,i.y,n.x,n.y,o.x,o.y),e&&e.quadraticCurveTo(n.x,n.y,o.x,o.y)}static pathA(e){var{current:t,command:r}=e,{rX:i,rY:n,xRot:o,lArcFlag:s,sweepFlag:u}=r,l=o*(Math.PI/180),h=e.getAsCurrentPoint(),c=new D(Math.cos(l)*(t.x-h.x)/2+Math.sin(l)*(t.y-h.y)/2,-Math.sin(l)*(t.x-h.x)/2+Math.cos(l)*(t.y-h.y)/2),g=Math.pow(c.x,2)/Math.pow(i,2)+Math.pow(c.y,2)/Math.pow(n,2);g>1&&(i*=Math.sqrt(g),n*=Math.sqrt(g));var f=(s===u?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(c.y,2)-Math.pow(n,2)*Math.pow(c.x,2))/(Math.pow(i,2)*Math.pow(c.y,2)+Math.pow(n,2)*Math.pow(c.x,2)));isNaN(f)&&(f=0);var p=new D(f*i*c.y/n,f*-n*c.x/i),d=new D((t.x+h.x)/2+Math.cos(l)*p.x-Math.sin(l)*p.y,(t.y+h.y)/2+Math.sin(l)*p.x+Math.cos(l)*p.y),y=Io([1,0],[(c.x-p.x)/i,(c.y-p.y)/n]),m=[(c.x-p.x)/i,(c.y-p.y)/n],T=[(-c.x-p.x)/i,(-c.y-p.y)/n],x=Io(m,T);return $i(m,T)<=-1&&(x=Math.PI),$i(m,T)>=1&&(x=0),{currentPoint:h,rX:i,rY:n,sweepFlag:u,xAxisRotation:l,centp:d,a1:y,ad:x}}pathA(e,t){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:o,sweepFlag:s,xAxisRotation:u,centp:l,a1:h,ad:c}=P.pathA(r),g=1-s?1:-1,f=h+g*(c/2),p=new D(l.x+n*Math.cos(f),l.y+o*Math.sin(f));if(r.addMarkerAngle(p,f-g*Math.PI/2),r.addMarkerAngle(i,f-g*Math.PI),t.addPoint(i.x,i.y),e&&!isNaN(h)&&!isNaN(c)){var d=n>o?n:o,y=n>o?1:n/o,m=n>o?o/n:1;e.translate(l.x,l.y),e.rotate(u),e.scale(y,m),e.arc(0,0,d,h,h+c,Boolean(1-s)),e.scale(1/y,1/m),e.rotate(-u),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){P.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}v(P,"PathElement");class hn extends P{constructor(e,t,r){super(e,t,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}v(hn,"GlyphElement");class Se extends Re{constructor(e,t,r){super(e,t,new.target===Se?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((r,i)=>{var n=this.getChildBoundingBox(e,this,this,i);t?t.addBoundingBox(n):t=n}),t}getFontSize(){var{document:e,parent:t}=this,r=Z.parse(e.ctx.font).fontSize,i=t.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(e){var t=this.getFontSize();return new oe(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,r){var i=t[r],n=null;if(e.isArabic){var o=t.length,s=t[r-1],u=t[r+1],l="isolated";if((r===0||s===" ")&&r<o-1&&u!==" "&&(l="terminal"),r>0&&s!==" "&&r<o-1&&u!==" "&&(l="medial"),r>0&&s!==" "&&(r===o-1||u===" ")&&(l="initial"),typeof e.glyphs[i]!="undefined"){var h=e.glyphs[i];n=h instanceof hn?h:h[l]}}else n=e.glyphs[i];return n||(n=e.missingGlyph),n}getText(){return""}getTextFromNode(e){var t=e||this.node,r=Array.from(t.parentNode.childNodes),i=r.indexOf(t),n=r.length-1,o=ft(t.textContent||"");return i===0&&(o=R1(o)),i===n&&(o=N1(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((r,i)=>{this.renderChild(e,this,this,i)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n){for(var{unitsPerEm:o}=n.fontFace,s=Z.parse(t.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),l=r.getStyle("font-style").getString(s.fontStyle),h=u/o,c=n.isRTL?i.split("").reverse().join(""):i,g=se(r.getAttribute("dx").getString()),f=c.length,p=0;p<f;p++){var d=this.getGlyph(n,c,p);e.translate(this.x,this.y),e.scale(h,-h);var y=e.lineWidth;e.lineWidth=e.lineWidth*o/u,l==="italic"&&e.transform(1,0,.4,1,0,0),d.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=y,e.scale(1/h,-1/h),e.translate(-this.x,-this.y),this.x+=u*(d.horizAdvX||n.horizAdvX)/o,typeof g[p]!="undefined"&&!isNaN(g[p])&&(this.x+=g[p])}return}var{x:m,y:T}=this;e.fillStyle&&e.fillText(i,m,T),e.strokeStyle&&e.strokeText(i,m,T)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),r=!1,i=0;t==="start"&&!r||t==="end"&&r?i=e.x-this.minX:t==="end"&&!r||t==="start"&&r?i=e.x-this.maxX:i=e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n<this.leafTexts.length;n++)this.leafTexts[n].x+=i;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((t,r)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,r,i){var n=r.children[i];n.children.length>0?n.children.forEach((o,s)=>{t.adjustChildCoordinatesRecursiveCore(e,t,n,s)}):this.adjustChildCoordinates(e,t,r,i)}adjustChildCoordinates(e,t,r,i){var n=r.children[i];if(typeof n.measureText!="function")return n;e.save(),n.setContext(e,!0);var o=n.getAttribute("x"),s=n.getAttribute("y"),u=n.getAttribute("dx"),l=n.getAttribute("dy"),h=n.getStyle("font-family").getDefinition(),c=Boolean(h)&&h.isRTL;i===0&&(o.hasValue()||o.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),u.hasValue()||u.setValue(n.getInheritedAttribute("dx")),l.hasValue()||l.setValue(n.getInheritedAttribute("dy")));var g=n.measureText(e);return c&&(t.x-=g),o.hasValue()?(t.applyAnchoring(),n.x=o.getPixels("x"),u.hasValue()&&(n.x+=u.getPixels("x"))):(u.hasValue()&&(t.x+=u.getPixels("x")),n.x=t.x),t.x=n.x,c||(t.x+=g),s.hasValue()?(n.y=s.getPixels("y"),l.hasValue()&&(n.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),n.y=t.y),t.y=n.y,t.leafTexts.push(n),t.minX=Math.min(t.minX,n.x,n.x+g),t.maxX=Math.max(t.maxX,n.x,n.x+g),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,t,r,i){var n=r.children[i];if(typeof n.getBoundingBox!="function")return null;var o=n.getBoundingBox(e);return o?(n.children.forEach((s,u)=>{var l=t.getChildBoundingBox(e,t,n,u);o.addBoundingBox(l)}),o):null}renderChild(e,t,r,i){var n=r.children[i];n.render(e),n.children.forEach((o,s)=>{t.renderChild(e,t,n,s)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var r=this.getText(),i=this.measureTargetText(e,r);return this.measureCache=i,i}measureTargetText(e,t){if(!t.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),o=i.isRTL?t.split("").reverse().join(""):t,s=se(r.getAttribute("dx").getString()),u=o.length,l=0,h=0;h<u;h++){var c=this.getGlyph(i,o,h);l+=(c.horizAdvX||i.horizAdvX)*n/i.fontFace.unitsPerEm,typeof s[h]!="undefined"&&!isNaN(s[h])&&(l+=s[h])}return l}if(!e.measureText)return t.length*10;e.save(),this.setContext(e,!0);var{width:g}=e.measureText(t);return this.clearContext(e),e.restore(),g}getInheritedAttribute(e){for(var t=this;t instanceof Se&&t.isFirstChild();){var r=t.parent.getAttribute(e);if(r.hasValue(!0))return r.getValue("0");t=t.parent}return null}}v(Se,"TextElement");class Vt extends Se{constructor(e,t,r){super(e,t,new.target===Vt?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}v(Vt,"TSpanElement");class Nl extends Vt{constructor(){super(...arguments),this.type="textNode"}}v(Nl,"TextNode");class ct extends Re{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:r}=this,{screen:i,window:n}=r,o=e.canvas;if(i.setDefaults(e),o.style&&typeof e.font!="undefined"&&n&&typeof n.getComputedStyle!="undefined"){e.font=n.getComputedStyle(o).getPropertyValue("font");var s=new $(r,"fontSize",Z.parse(e.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:u,height:l}=i.viewPort;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 h=this.getAttribute("refX"),c=this.getAttribute("refY"),g=this.getAttribute("viewBox"),f=g.hasValue()?se(g.getString()):null,p=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",d=0,y=0,m=0,T=0;f&&(d=f[0],y=f[1]),this.root||(u=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(m=d,T=y,d=0,y=0)),i.viewPort.setCurrent(u,l),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(u=f[2],l=f[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:u,height:i.viewPort.height,desiredHeight:l,minX:d,minY:y,refX:h.getValue(),refY:c.getValue(),clip:p,clipX:m,clipY:T}),f&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(u,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=i.getNumber(0),l=n.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),n.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(u||e," ").concat(l||t)),s.hasValue()){var c=this.getStyle("width"),g=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),g.hasValue()&&g.setValue("".concat(t,"px"))}}}v(ct,"SVGElement");class vn extends P{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),l=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(l=u),s.hasValue()&&!o.hasValue()&&(u=l),u=Math.min(u,i/2),l=Math.min(l,n/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),n>0&&i>0&&(e.moveTo(t+u,r),e.lineTo(t+i-u,r),e.bezierCurveTo(t+i-u+h*u,r,t+i,r+l-h*l,t+i,r+l),e.lineTo(t+i,r+n-l),e.bezierCurveTo(t+i,r+n-l+h*l,t+i-u+h*u,r+n,t+i-u,r+n),e.lineTo(t+u,r+n),e.bezierCurveTo(t+u-h*u,r+n,t,r+n-l+h*l,t,r+n-l),e.lineTo(t,r+l),e.bezierCurveTo(t,r+l-h*l,t+u-h*u,r,t+u,r),e.closePath())}return new oe(t,r,t+i,r+n)}getMarkers(){return null}}v(vn,"RectElement");class Il extends P{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(t,r,i,0,Math.PI*2,!1),e.closePath()),new oe(t-i,r-i,t+i,r+i)}getMarkers(){return null}}v(Il,"CircleElement");class Ml extends P{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&r>0&&i>0&&(e.beginPath(),e.moveTo(n+r,o),e.bezierCurveTo(n+r,o+t*i,n+t*r,o+i,n,o+i),e.bezierCurveTo(n-t*r,o+i,n-r,o+t*i,n-r,o),e.bezierCurveTo(n-r,o-t*i,n-t*r,o-i,n,o-i),e.bezierCurveTo(n+t*r,o-i,n+r,o-t*i,n+r,o),e.closePath()),new oe(n-r,o-i,n+r,o+i)}getMarkers(){return null}}v(Ml,"EllipseElement");class _l extends P{constructor(){super(...arguments),this.type="line"}getPoints(){return[new D(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new D(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:r},{x:i,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,r),e.lineTo(i,n)),new oe(t,r,i,n)}getMarkers(){var[e,t]=this.getPoints(),r=e.angleTo(t);return[[e,r],[t,r]]}}v(_l,"LineElement");class fn extends P{constructor(e,t,r){super(e,t,r),this.type="polyline",this.points=[],this.points=D.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:r,y:i}]=t,n=new oe(r,i);return e&&(e.beginPath(),e.moveTo(r,i)),t.forEach(o=>{var{x:s,y:u}=o;n.addPoint(s,u),e&&e.lineTo(s,u)}),n}getMarkers(){var{points:e}=this,t=e.length-1,r=[];return e.forEach((i,n)=>{n!==t&&r.push([i,i.angleTo(e[n+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}v(fn,"PolylineElement");class Vl extends fn{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:r,y:i}]=this.points;return e&&(e.lineTo(r,i),e.closePath()),t}}v(Vl,"PolygonElement");class Dl extends R{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),o=new ct(this.document,null);o.attributes.viewBox=new $(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new $(this.document,"width","".concat(i,"px")),o.attributes.height=new $(this.document,"height","".concat(n,"px")),o.attributes.transform=new $(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(i,n),u=s.getContext("2d"),l=this.getAttribute("x"),h=this.getAttribute("y");l.hasValue()&&h.hasValue()&&u.translate(l.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var g=-1;g<=1;g++)u.save(),o.attributes.x=new $(this.document,"x",c*s.width),o.attributes.y=new $(this.document,"y",g*s.height),o.render(u),u.restore();var f=e.createPattern(s,"repeat");return f}}v(Dl,"PatternElement");class Ll extends R{constructor(){super(...arguments),this.type="marker"}render(e,t,r){if(t){var{x:i,y:n}=t,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,n),o==="auto"&&e.rotate(r),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var u=new ct(this.document,null);u.type=this.type,u.attributes.viewBox=new $(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new $(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new $(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new $(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new $(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new $(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new $(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new $(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),o==="auto"&&e.rotate(-r),e.translate(-i,-n)}}}v(Ll,"MarkerElement");class kl extends R{constructor(){super(...arguments),this.type="defs"}render(){}}v(kl,"DefsElement");class Fr extends Re{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new oe;return this.children.forEach(r=>{t.addBoundingBox(r.getBoundingBox(e))}),t}}v(Fr,"GElement");class cn extends R{constructor(e,t,r){super(e,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach(o=>{o.type==="stop"&&i.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach(y=>{o.addColorStop(y.offset,this.addParentOpacity(r,y.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:l}=s.screen,[h]=l.viewPorts,c=new vn(s,null);c.attributes.x=new $(s,"x",-u/3),c.attributes.y=new $(s,"y",-u/3),c.attributes.width=new $(s,"width",u),c.attributes.height=new $(s,"height",u);var g=new Fr(s,null);g.attributes.transform=new $(s,"transform",this.getAttribute("gradientTransform").getValue()),g.children=[c];var f=new ct(s,null);f.attributes.x=new $(s,"x",0),f.attributes.y=new $(s,"y",0),f.attributes.width=new $(s,"width",h.width),f.attributes.height=new $(s,"height",h.height),f.children=[g];var p=s.createCanvas(h.width,h.height),d=p.getContext("2d");return d.fillStyle=o,f.render(d),d.createPattern(p,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var r=new $(this.document,"color",t);return r.addOpacity(e).getColor()}return t}}v(cn,"GradientElement");class Bl extends cn{constructor(e,t,r){super(e,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=r?t.getBoundingBox(e):null;if(r&&!i)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 n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&o===u?null:e.createLinearGradient(n,o,s,u)}}v(Bl,"LinearGradientElement");class jl extends cn{constructor(e,t,r){super(e,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=t.getBoundingBox(e);if(r&&!i)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 n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,u=o;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,u,h,n,o,l)}}v(jl,"RadialGradientElement");class Ul extends R{constructor(e,t,r){super(e,t,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),n.hasValue()&&(o=o.addOpacity(n)),this.offset=i,this.color=o.getColor()}}v(Ul,"StopElement");class zr extends R{constructor(e,t,r){super(e,t,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new $(e,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*t;return e==="%"&&(n*=100),"".concat(n).concat(e)}update(e){var{parent:t}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var n=!1;if(this.begin<this.duration){var o=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var u=s.getString();o="".concat(u,"(").concat(o,")")}r.setValue(o),n=!0}return n}getProgress(){var{document:e,values:t}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var i=r.progress*(t.getValue().length-1),n=Math.floor(i),o=Math.ceil(i);r.from=new $(e,"from",parseFloat(t.getValue()[n])),r.to=new $(e,"to",parseFloat(t.getValue()[o])),r.progress=(i-n)/(o-n)}else r.from=this.from,r.to=this.to;return r}}v(zr,"AnimateElement");class Fl extends zr{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),i=new Ti(t.getColor()),n=new Ti(r.getColor());if(i.ok&&n.ok){var o=i.r+(n.r-i.r)*e,s=i.g+(n.g-i.g)*e,u=i.b+(n.b-i.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}}v(Fl,"AnimateColorElement");class zl extends zr{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:r}=this.getProgress(),i=se(t.getString()),n=se(r.getString()),o=i.map((s,u)=>{var l=n[u];return s+(l-s)*e}).join(" ");return o}}v(zl,"AnimateTransformElement");class Gl extends R{constructor(e,t,r){super(e,t,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=e,{children:n}=this;for(var o of n)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]=="undefined"&&(this.glyphs[u.unicode]=Object.create(null)),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}}v(Gl,"FontElement");class Hl extends R{constructor(e,t,r){super(e,t,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}v(Hl,"FontFaceElement");class Yl extends P{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}v(Yl,"MissingGlyphElement");class Xl extends Se{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}v(Xl,"TRefElement");class Wl extends Se{constructor(e,t,r){super(e,t,r),this.type="a";var{childNodes:i}=t,n=i[0],o=i.length>0&&Array.from(i).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:r,y:i}=this,{mouse:n}=t.screen,o=new $(t,"fontSize",Z.parse(t.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new oe(r,i-o.getPixels("y"),r+this.measureText(e),i))}else if(this.children.length>0){var s=new Fr(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}v(Wl,"AElement");function jo(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}v(jo,"ownKeys$2");function lr(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?jo(Object(t),!0).forEach(function(r){sn(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):jo(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}v(lr,"_objectSpread$2");class ql extends Se{constructor(e,t,r){super(e,t,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var i=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(i)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(r=>{var{type:i,points:n}=r;switch(i){case w.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case w.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case w.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case w.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case w.ARC:{var[o,s,u,l,h,c,g,f]=n,p=u>l?u:l,d=u>l?1:u/l,y=u>l?l/u:1;e&&(e.translate(o,s),e.rotate(g),e.scale(d,y),e.arc(0,0,p,h,h+c,Boolean(1-f)),e.scale(1/d,1/y),e.rotate(-g),e.translate(-o,-s));break}case w.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=e.fillStyle;t==="underline"&&e.beginPath(),i.forEach((o,s)=>{var{p0:u,p1:l,rotation:h,text:c}=o;e.save(),e.translate(u.x,u.y),e.rotate(h),e.fillStyle&&e.fillText(c,0,0),e.strokeStyle&&e.strokeText(c,0,0),e.restore(),t==="underline"&&(s===0&&e.moveTo(u.x,u.y+r/8),e.lineTo(l.x,l.y+r/5))}),t==="underline"&&(e.lineWidth=r/20,e.strokeStyle=n,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,r,i,n,o,s,u,l){var h=o,c=this.measureText(e,u);u===" "&&t==="justify"&&r<i&&(c+=(i-r)/n),l>-1&&(h+=this.getLetterSpacingAt(l));var g=this.textHeight/20,f=this.getEquidistantPointOnPath(h,g,0),p=this.getEquidistantPointOnPath(h+c,g,0),d={p0:f,p1:p},y=f&&p?Math.atan2(p.y-f.y,p.x-f.x):0;if(s){var m=Math.cos(Math.PI/2+y)*s,T=Math.cos(-y)*s;d.p0=lr(lr({},f),{},{x:f.x+m,y:f.y+T}),d.p1=lr(lr({},p),{},{x:p.x+m,y:p.y+T})}return h+=c,{offset:h,segment:d,rotation:y}}measureText(e,t){var{measuresCache:r}=this,i=t||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(e,i);return r.set(i,n),n}setTextData(e){if(!this.glyphInfo){var t=this.getText(),r=t.split(""),i=t.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(O=>O.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;!u.hasValue()||u.getValue()==="inherit"?h=l.getPixels():u.hasValue()&&u.getValue()!=="initial"&&u.getValue()!=="unset"&&(h=u.getPixels());var c=[],g=t.length;this.letterSpacingCache=c;for(var f=0;f<g;f++)c.push(typeof n[f]!="undefined"?n[f]:h);var p=c.reduce((O,C,E)=>E===0?0:O+C||0,0),d=this.measureText(e),y=Math.max(d+p,0);this.textWidth=d,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),T=this.getStyle("startOffset").getNumber(0)*m,x=0;(s==="middle"||s==="center")&&(x=-y/2),(s==="end"||s==="right")&&(x=-y),x+=T,r.forEach((O,C)=>{var{offset:E,segment:S,rotation:A}=this.findSegmentToFitChar(e,s,y,m,i,x,o,O,C);x=E,!(!S.p0||!S.p1)&&this.glyphInfo.push({text:r[C],p0:S.p0,p1:S.p1,rotation:A})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:i}=r,n=i?i.x:0,o=i?i.y:0,s=r.next(),u=s.type,l=[];switch(s.type){case w.MOVE_TO:this.pathM(r,l);break;case w.LINE_TO:u=this.pathL(r,l);break;case w.HORIZ_LINE_TO:u=this.pathH(r,l);break;case w.VERT_LINE_TO:u=this.pathV(r,l);break;case w.CURVE_TO:this.pathC(r,l);break;case w.SMOOTH_CURVE_TO:u=this.pathS(r,l);break;case w.QUAD_TO:this.pathQ(r,l);break;case w.SMOOTH_QUAD_TO:u=this.pathT(r,l);break;case w.ARC:l=this.pathA(r);break;case w.CLOSE_PATH:P.pathZ(r);break}s.type!==w.CLOSE_PATH?t.push({type:u,points:l,start:{x:n,y:o},pathLength:this.calcLength(n,o,u,l)}):t.push({type:w.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:r,y:i}=P.pathM(e).point;t.push(r,i)}pathL(e,t){var{x:r,y:i}=P.pathL(e).point;return t.push(r,i),w.LINE_TO}pathH(e,t){var{x:r,y:i}=P.pathH(e).point;return t.push(r,i),w.LINE_TO}pathV(e,t){var{x:r,y:i}=P.pathV(e).point;return t.push(r,i),w.LINE_TO}pathC(e,t){var{point:r,controlPoint:i,currentPoint:n}=P.pathC(e);t.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(e,t){var{point:r,controlPoint:i,currentPoint:n}=P.pathS(e);return t.push(r.x,r.y,i.x,i.y,n.x,n.y),w.CURVE_TO}pathQ(e,t){var{controlPoint:r,currentPoint:i}=P.pathQ(e);t.push(r.x,r.y,i.x,i.y)}pathT(e,t){var{controlPoint:r,currentPoint:i}=P.pathT(e);return t.push(r.x,r.y,i.x,i.y),w.QUAD_TO}pathA(e){var{rX:t,rY:r,sweepFlag:i,xAxisRotation:n,centp:o,a1:s,ad:u}=P.pathA(e);return i===0&&u>0&&(u-=2*Math.PI),i===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,t,r,s,u,n,i]}calcLength(e,t,r,i){var n=0,o=null,s=null,u=0;switch(r){case w.LINE_TO:return this.getLineLength(e,t,i[0],i[1]);case w.CURVE_TO:for(n=0,o=this.getPointOnCubicBezier(0,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case w.QUAD_TO:for(n=0,o=this.getPointOnQuadraticBezier(0,e,t,i[0],i[1],i[2],i[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,e,t,i[0],i[1],i[2],i[3]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case w.ARC:{n=0;var l=i[4],h=i[5],c=i[4]+h,g=Math.PI/180;if(Math.abs(l-c)<g&&(g=Math.abs(l-c)),o=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),h<0)for(u=l-g;u>c;u-=g)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=l+g;u<c;u+=g)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),n}}return 0}getPointOnLine(e,t,r,i,n){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,u=(n-r)/(i-t+nt),l=Math.sqrt(e*e/(1+u*u));i<t&&(l*=-1);var h=u*l,c=null;if(i===t)c={x:o,y:s+h};else if((s-r)/(o-t+nt)===u)c={x:o+l,y:s+h};else{var g=0,f=0,p=this.getLineLength(t,r,i,n);if(p<nt)return null;var d=(o-t)*(i-t)+(s-r)*(n-r);d/=p*p,g=t+d*(i-t),f=r+d*(n-r);var y=this.getLineLength(o,s,g,f),m=Math.sqrt(e*e-y*y);l=Math.sqrt(m*m/(1+u*u)),i<t&&(l*=-1),h=u*l,c={x:g+l,y:f+h}}return c}getPointOnPath(e){var t=this.getPathLength(),r=0,i=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:n}=this;for(var o of n){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5<e)){r+=o.pathLength;continue}var s=e-r,u=0;switch(o.type){case w.LINE_TO:i=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case w.ARC:{var l=o.points[4],h=o.points[5],c=o.points[4]+h;if(u=l+s/o.pathLength*h,h<0&&u<c||h>=0&&u>c)break;i=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case w.CURVE_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case w.QUAD_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(i)return i;break}return null}getLineLength(e,t,r,i){return Math.sqrt((r-e)*(r-e)+(i-t)*(i-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,r,i,n,o,s,u,l){var h=u*Mo(e)+o*_o(e)+i*Vo(e)+t*Do(e),c=l*Mo(e)+s*_o(e)+n*Vo(e)+r*Do(e);return{x:h,y:c}}getPointOnQuadraticBezier(e,t,r,i,n,o,s){var u=o*Lo(e)+i*ko(e)+t*Bo(e),l=s*Lo(e)+n*ko(e)+r*Bo(e);return{x:u,y:l}}getPointOnEllipticalArc(e,t,r,i,n,o){var s=Math.cos(o),u=Math.sin(o),l={x:r*Math.cos(n),y:i*Math.sin(n)};return{x:e+(l.x*s-l.y*u),y:t+(l.x*u+l.y*s)}}buildEquidistantCache(e,t){var r=this.getPathLength(),i=t||.25,n=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var o=0,s=0;s<=r;s+=i){var u=this.getPointOnPath(s),l=this.getPointOnPath(s+i);!u||!l||(o+=this.getLineLength(u.x,u.y,l.x,l.y),o>=n&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=n))}}}getEquidistantPointOnPath(e,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}v(ql,"TextPathElement");var K1=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Ql extends Re{constructor(e,t,r){super(e,t,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);e.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(e){var t=this;return Oe(function*(){try{var r=yield t.document.createImage(e);t.image=r}catch(i){console.error('Error while loading image "'.concat(e,'":'),i)}t.loaded=!0})()}loadSvg(e){var t=this;return Oe(function*(){var r=K1.exec(e);if(r){var i=r[5];r[4]==="base64"?t.image=atob(i):t.image=decodeURIComponent(i)}else try{var n=yield t.document.fetch(e),o=yield n.text();t.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}t.loaded=!0})()}renderChildren(e){var{document:t,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!(!i||!r||!s||!u)){if(e.save(),e.translate(n,o),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});l.document.documentElement.parent=this,l.render()}else{var h=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:u,desiredHeight:h.height}),this.loaded&&(typeof h.complete=="undefined"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new oe(e,t,e+r,t+i)}}v(Ql,"ImageElement");class Kl extends Re{constructor(){super(...arguments),this.type="symbol"}render(e){}}v(Kl,"SymbolElement");class Zl{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var r=this;return Oe(function*(){try{var{document:i}=r,n=yield i.canvg.parser.load(t),o=n.getElementsByTagName("font");Array.from(o).forEach(s=>{var u=i.createElement(s);i.definitions[e]=u})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}r.loaded=!0})()}}v(Zl,"SVGFontLoader");class gn extends R{constructor(e,t,r){super(e,t,r),this.type="style";var i=ft(Array.from(t.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),n=i.split("}");n.forEach(o=>{var s=o.trim();if(s){var u=s.split("{"),l=u[0].split(","),h=u[1].split(";");l.forEach(c=>{var g=c.trim();if(g){var f=e.styles[g]||{};if(h.forEach(y=>{var m=y.indexOf(":"),T=y.substr(0,m).trim(),x=y.substr(m+1,y.length-m).trim();T&&x&&(f[T]=new $(e,T,x))}),e.styles[g]=f,e.stylesSpecificity[g]=F1(g),g==="@font-face"){var p=f["font-family"].getString().replace(/"|'/g,""),d=f.src.getString().split(",");d.forEach(y=>{if(y.indexOf('format("svg")')>0){var m=xl(y);m&&new Zl(e).load(p,m)}})}}})}})}}v(gn,"StyleElement");gn.parseExternalUrl=xl;class Jl extends Re{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:r}=this;if(r){var i=r;if(r.type==="symbol"&&(i=new ct(t,null),i.attributes.viewBox=new $(t,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new $(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new $(t,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new $(t,"opacity",this.calculateOpacity())),i.type==="svg"){var n=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new $(t,"width",n.getString())),o.hasValue()&&(i.attributes.height=new $(t,"height",o.getString()))}var s=i.parent;i.parent=this,i.render(e),i.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return Pe.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}v(Jl,"UseElement");function hr(a,e,t,r,i,n){return a[t*r*4+e*4+n]}v(hr,"imGet");function vr(a,e,t,r,i,n,o){a[t*r*4+e*4+n]=o}v(vr,"imSet");function F(a,e,t){var r=a[e];return r*t}v(F,"m");function be(a,e,t,r){return e+Math.cos(a)*t+Math.sin(a)*r}v(be,"c");class dn extends R{constructor(e,t,r){super(e,t,r),this.type="feColorMatrix";var i=se(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var n=i[0];i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=i[0]*Math.PI/180;i=[be(o,.213,.787,-.213),be(o,.715,-.715,-.715),be(o,.072,-.072,.928),0,0,be(o,.213,-.213,.143),be(o,.715,.285,.14),be(o,.072,-.072,-.283),0,0,be(o,.213,-.213,-.787),be(o,.715,-.715,.715),be(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[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];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,r,i,n){for(var{includeOpacity:o,matrix:s}=this,u=e.getImageData(0,0,i,n),l=0;l<n;l++)for(var h=0;h<i;h++){var c=hr(u.data,h,l,i,n,0),g=hr(u.data,h,l,i,n,1),f=hr(u.data,h,l,i,n,2),p=hr(u.data,h,l,i,n,3),d=F(s,0,c)+F(s,1,g)+F(s,2,f)+F(s,3,p)+F(s,4,1),y=F(s,5,c)+F(s,6,g)+F(s,7,f)+F(s,8,p)+F(s,9,1),m=F(s,10,c)+F(s,11,g)+F(s,12,f)+F(s,13,p)+F(s,14,1),T=F(s,15,c)+F(s,16,g)+F(s,17,f)+F(s,18,p)+F(s,19,1);o&&(d=0,y=0,m=0,T*=p/255),vr(u.data,h,l,i,n,0,d),vr(u.data,h,l,i,n,1,y),vr(u.data,h,l,i,n,2,m),vr(u.data,h,l,i,n,3,T)}e.clearRect(0,0,i,n),e.putImageData(u,0,0)}}v(dn,"FeColorMatrixElement");class Dt extends R{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:r}=this,i=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var u=new oe;
18this.children.forEach(p=>{u.addBoundingBox(p.getBoundingBox(e))}),i=Math.floor(u.x1),n=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var l=this.removeStyles(t,Dt.ignoreStyles),h=r.createCanvas(i+o,n+s),c=h.getContext("2d");r.screen.setDefaults(c),this.renderChildren(c),new dn(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,i+o,n+s);var g=r.createCanvas(i+o,n+s),f=g.getContext("2d");r.screen.setDefaults(f),t.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=c.createPattern(h,"no-repeat"),f.fillRect(0,0,i+o,n+s),e.fillStyle=f.createPattern(g,"no-repeat"),e.fillRect(0,0,i+o,n+s),this.restoreStyles(t,l)}render(e){}}v(Dt,"MaskElement");Dt.ignoreStyles=["mask","transform","clip-path"];var Uo=v(()=>{},"noop");class eh extends R{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,r=Reflect.getPrototypeOf(e),{beginPath:i,closePath:n}=e;r&&(r.beginPath=Uo,r.closePath=Uo),Reflect.apply(i,e,[]),this.children.forEach(o=>{if(typeof o.path!="undefined"){var s=typeof o.elementTransform!="undefined"?o.elementTransform():null;s||(s=Pe.fromElement(t,o)),s&&s.apply(e),o.path(e),r&&(r.closePath=n),s&&s.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),r&&(r.beginPath=i,r.closePath=n)}render(e){}}v(eh,"ClipPathElement");class Lt extends R{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:r,children:i}=this,n=t.getBoundingBox(e);if(n){var o=0,s=0;i.forEach(m=>{var T=m.extraFilterDistance||0;o=Math.max(o,T),s=Math.max(s,T)});var u=Math.floor(n.width),l=Math.floor(n.height),h=u+2*o,c=l+2*s;if(!(h<1||c<1)){var g=Math.floor(n.x),f=Math.floor(n.y),p=this.removeStyles(t,Lt.ignoreStyles),d=r.createCanvas(h,c),y=d.getContext("2d");r.screen.setDefaults(y),y.translate(-g+o,-f+s),t.render(y),i.forEach(m=>{typeof m.apply=="function"&&m.apply(y,0,0,h,c)}),e.drawImage(d,0,0,h,c,g-o,f-s,h,c),this.restoreStyles(t,p)}}}render(e){}}v(Lt,"FilterElement");Lt.ignoreStyles=["filter","transform","clip-path"];class th extends R{constructor(e,t,r){super(e,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,r,i,n){}}v(th,"FeDropShadowElement");class rh extends R{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,r,i,n){}}v(rh,"FeMorphologyElement");class ah extends R{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,r,i,n){}}v(ah,"FeCompositeElement");class ih extends R{constructor(e,t,r){super(e,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,r,i,n){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),u&&(l.style.display="none",u.appendChild(l)),w1(l,t,r,i,n,s),u&&u.removeChild(l)}}v(ih,"FeGaussianBlurElement");class nh extends R{constructor(){super(...arguments),this.type="title"}}v(nh,"TitleElement");class sh extends R{constructor(){super(...arguments),this.type="desc"}}v(sh,"DescElement");var Z1={svg:ct,rect:vn,circle:Il,ellipse:Ml,line:_l,polyline:fn,polygon:Vl,path:P,pattern:Dl,marker:Ll,defs:kl,linearGradient:Bl,radialGradient:jl,stop:Ul,animate:zr,animateColor:Fl,animateTransform:zl,font:Gl,"font-face":Hl,"missing-glyph":Yl,glyph:hn,text:Se,tspan:Vt,tref:Xl,a:Wl,textPath:ql,image:Ql,g:Fr,symbol:Kl,style:gn,use:Jl,mask:Dt,clipPath:eh,filter:Lt,feDropShadow:th,feMorphology:rh,feComposite:ah,feColorMatrix:dn,feGaussianBlur:ih,title:nh,desc:sh};function Fo(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}v(Fo,"ownKeys$1");function J1(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Fo(Object(t),!0).forEach(function(r){sn(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Fo(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}v(J1,"_objectSpread$1");function e2(a,e){var t=document.createElement("canvas");return t.width=a,t.height=e,t}v(e2,"createCanvas");function t2(a){return Ei.apply(this,arguments)}v(t2,"createImage");function Ei(){return Ei=Oe(function*(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return e&&(t.crossOrigin="Anonymous"),new Promise((r,i)=>{t.onload=()=>{r(t)},t.onerror=(n,o,s,u,l)=>{i(l)},t.src=a})}),Ei.apply(this,arguments)}v(Ei,"_createImage");class Te{constructor(e){var{rootEmSize:t=12,emSize:r=12,createCanvas:i=Te.createCanvas,createImage:n=Te.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(r,i)=>e(r,typeof i=="boolean"?i:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),r=Te.elementTypes[t];return typeof r!="undefined"?new r(this,e):new Rl(this,e)}createTextNode(e){return new Nl(this,e)}
18setViewBox(e){this.screen.setViewBox(J1({document:this},e))}}v(Te,"Document");Te.createCanvas=e2;Te.createImage=t2;Te.elementTypes=Z1;function zo(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}v(zo,"ownKeys");function ke(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?zo(Object(t),!0).forEach(function(r){sn(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):zo(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}v(ke,"_objectSpread");class rt{constructor(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new mr(r),this.screen=new _t(e,r),this.options=r;var i=new Te(this,r),n=i.createDocumentElement(t);this.document=i,this.documentElement=n}static from(e,t){var r=arguments;return Oe(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},n=new mr(i),o=yield n.parse(t);return new rt(e,o,i)})()}static fromString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new mr(r),n=i.parseFromString(t);return new rt(e,n,r)}fork(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return rt.from(e,t,ke(ke({},this.options),r))}forkString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return rt.fromString(e,t,ke(ke({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return Oe(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{};t.start(ke({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:r,options:i}=this;r.start(t,ke(ke({enableRedraw:!0},i),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,r)}}v(rt,"Canvg");export{Wl as AElement,Fl as AnimateColorElement,zr as AnimateElement,zl as AnimateTransformElement,oe as BoundingBox,Mo as CB1,_o as CB2,Vo as CB3,Do as CB4,rt as Canvg,Il as CircleElement,eh as ClipPathElement,kl as DefsElement,sh as DescElement,Te as Document,R as Element,Ml as EllipseElement,dn as FeColorMatrixElement,ah as FeCompositeElement,th as FeDropShadowElement,ih as FeGaussianBlurElement,rh as FeMorphologyElement,Lt as FilterElement,Z as Font,Gl as FontElement,Hl as FontFaceElement,Fr as GElement,hn as GlyphElement,cn as GradientElement,Ql as ImageElement,_l as LineElement,Bl as LinearGradientElement,Ll as MarkerElement,Dt as MaskElement,un as Matrix,Yl as MissingGlyphElement,Ol as Mouse,nt as PSEUDO_ZERO,mr as Parser,P as PathElement,w as PathParser,Dl as PatternElement,D as Point,Vl as PolygonElement,fn as PolylineElement,$ as Property,Lo as QB1,ko as QB2,Bo as QB3,jl as RadialGradientElement,vn as RectElement,Re as RenderedElement,wl as Rotate,ct as SVGElement,Zl as SVGFontLoader,Cl as Scale,_t as Screen,ln as Skew,Al as SkewX,Pl as SkewY,Ul as StopElement,gn as StyleElement,Kl as SymbolElement,Xl as TRefElement,Vt as TSpanElement,Se as TextElement,ql as TextPathElement,nh as TitleElement,Pe as Transform,El as Translate,Rl as UnknownElement,Jl as UseElement,Tl as ViewPort,ft as compressSpaces,rt as default,F1 as getSelectorSpecificity,M1 as normalizeAttributeName,_1 as normalizeColor,xl as parseExternalUrl,i2 as presets,se as toNumbers,R1 as trimLeft,N1 as trimRight,No as vectorMagnitude,Io as vectorsAngle,$i as vectorsRatio};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.