Files
svgedit/dist/editor/extensions/ext-server_moinsave/ext-server_moinsave.js
2021-02-14 20:17:48 +01:00

3 lines
279 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import h from"process";var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(h,d,g){return h(g={path:d,exports:{},require:function(h,d){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==d&&g.path)}},g.exports),g.exports}var check=function(h){return h&&h.Math==Math&&h},g=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof d&&d)||function(){return this}()||Function("return this")(),fails=function(h){try{return!!h()}catch(h){return!0}},x=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,w={f:S&&!b.call({1:2},1)?function propertyIsEnumerable(h){var d=S(this,h);return!!d&&d.enumerable}:b},createPropertyDescriptor=function(h,d){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:d}},E={}.toString,classofRaw=function(h){return E.call(h).slice(8,-1)},P="".split,A=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==classofRaw(h)?P.call(h,""):Object(h)}:Object,requireObjectCoercible=function(h){if(null==h)throw TypeError("Can't call method on "+h);return h},toIndexedObject=function(h){return A(requireObjectCoercible(h))},isObject=function(h){return"object"==typeof h?null!==h:"function"==typeof h},toPrimitive=function(h,d){if(!isObject(h))return h;var g,x;if(d&&"function"==typeof(g=h.toString)&&!isObject(x=g.call(h)))return x;if("function"==typeof(g=h.valueOf)&&!isObject(x=g.call(h)))return x;if(!d&&"function"==typeof(g=h.toString)&&!isObject(x=g.call(h)))return x;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,has=function(h,d){return _.call(h,d)},k=g.document,C=isObject(k)&&isObject(k.createElement),documentCreateElement=function(h){return C?k.createElement(h):{}},R=!x&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),M=Object.getOwnPropertyDescriptor,N={f:x?M:function getOwnPropertyDescriptor(h,d){if(h=toIndexedObject(h),d=toPrimitive(d,!0),R)try{return M(h,d)}catch(h){}if(has(h,d))return createPropertyDescriptor(!w.f.call(h,d),h[d])}},anObject=function(h){if(!isObject(h))throw TypeError(String(h)+" is not an object");return h},L=Object.defineProperty,D={f:x?L:function defineProperty(h,d,g){if(anObject(h),d=toPrimitive(d,!0),anObject(g),R)try{return L(h,d,g)}catch(h){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[d]=g.value),h}},j=x?function(h,d,g){return D.f(h,d,createPropertyDescriptor(1,g))}:function(h,d,g){return h[d]=g,h},setGlobal=function(h,d){try{j(g,h,d)}catch(x){g[h]=d}return d},V=g["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),$=Function.toString;"function"!=typeof V.inspectSource&&(V.inspectSource=function(h){return $.call(h)});var U,B,z,G=V.inspectSource,q=g.WeakMap,X="function"==typeof q&&/native code/.test(G(q)),Y=createCommonjsModule((function(h){(h.exports=function(h,d){return V[h]||(V[h]=void 0!==d?d:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),W=0,Q=Math.random(),uid=function(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++W+Q).toString(36)},Z=Y("keys"),sharedKey=function(h){return Z[h]||(Z[h]=uid(h))},K={},J=g.WeakMap;if(X){var tt=V.state||(V.state=new J),et=tt.get,rt=tt.has,nt=tt.set;U=function(h,d){return d.facade=h,nt.call(tt,h,d),d},B=function(h){return et.call(tt,h)||{}},z=function(h){return rt.call(tt,h)}}else{var it=sharedKey("state");K[it]=!0,U=function(h,d){return d.facade=h,j(h,it,d),d},B=function(h){return has(h,it)?h[it]:{}},z=function(h){return has(h,it)}}var at,ot,ut={set:U,get:B,has:z,enforce:function(h){return z(h)?B(h):U(h,{})},getterFor:function(h){return function(d){var g;if(!isObject(d)||(g=B(d)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return g}}},st=createCommonjsModule((function(h){var d=ut.get,x=ut.enforce,b=String(String).split("String");(h.exports=function(h,d,S,w){var E,P=!!w&&!!w.unsafe,A=!!w&&!!w.enumerable,_=!!w&&!!w.noTargetGet;"function"==typeof S&&("string"!=typeof d||has(S,"name")||j(S,"name",d),(E=x(S)).source||(E.source=b.join("string"==typeof d?d:""))),h!==g?(P?!_&&h[d]&&(A=!0):delete h[d],A?h[d]=S:j(h,d,S)):A?h[d]=S:setGlobal(d,S)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&d(this).source||G(this)}))})),ct=g,aFunction=function(h){return"function"==typeof h?h:void 0},getBuiltIn=function(h,d){return arguments.length<2?aFunction(ct[h])||aFunction(g[h]):ct[h]&&ct[h][d]||g[h]&&g[h][d]},lt=Math.ceil,ft=Math.floor,toInteger=function(h){return isNaN(h=+h)?0:(h>0?ft:lt)(h)},ht=Math.min,toLength=function(h){return h>0?ht(toInteger(h),9007199254740991):0},pt=Math.max,yt=Math.min,toAbsoluteIndex=function(h,d){var g=toInteger(h);return g<0?pt(g+d,0):yt(g,d)},createMethod=function(h){return function(d,g,x){var b,S=toIndexedObject(d),w=toLength(S.length),E=toAbsoluteIndex(x,w);if(h&&g!=g){for(;w>E;)if((b=S[E++])!=b)return!0}else for(;w>E;E++)if((h||E in S)&&S[E]===g)return h||E||0;return!h&&-1}},vt={includes:createMethod(!0),indexOf:createMethod(!1)},dt=vt.indexOf,objectKeysInternal=function(h,d){var g,x=toIndexedObject(h),b=0,S=[];for(g in x)!has(K,g)&&has(x,g)&&S.push(g);for(;d.length>b;)has(x,g=d[b++])&&(~dt(S,g)||S.push(g));return S},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mt=gt.concat("length","prototype"),xt={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return objectKeysInternal(h,mt)}},bt={f:Object.getOwnPropertySymbols},St=getBuiltIn("Reflect","ownKeys")||function ownKeys(h){var d=xt.f(anObject(h)),g=bt.f;return g?d.concat(g(h)):d},copyConstructorProperties=function(h,d){for(var g=St(d),x=D.f,b=N.f,S=0;S<g.length;S++){var w=g[S];has(h,w)||x(h,w,b(d,w))}},wt=/#|\.prototype\./,isForced=function(h,d){var g=Pt[Et(h)];return g==_t||g!=At&&("function"==typeof d?fails(d):!!d)},Et=isForced.normalize=function(h){return String(h).replace(wt,".").toLowerCase()},Pt=isForced.data={},At=isForced.NATIVE="N",_t=isForced.POLYFILL="P",kt=isForced,Tt=N.f,_export=function(h,d){var x,b,S,w,E,P=h.target,A=h.global,_=h.stat;if(x=A?g:_?g[P]||setGlobal(P,{}):(g[P]||{}).prototype)for(b in d){if(w=d[b],S=h.noTargetGet?(E=Tt(x,b))&&E.value:x[b],!kt(A?b:P+(_?".":"#")+b,h.forced)&&void 0!==S){if(typeof w==typeof S)continue;copyConstructorProperties(w,S)}(h.sham||S&&S.sham)&&j(w,"sham",!0),st(x,b,w,h)}},Ot=Array.isArray||function isArray(h){return"Array"==classofRaw(h)},toObject=function(h){return Object(requireObjectCoercible(h))},createProperty=function(h,d,g){var x=toPrimitive(d);x in h?D.f(h,x,createPropertyDescriptor(0,g)):h[x]=g},Ct=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),Rt=Ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mt=Y("wks"),Nt=g.Symbol,It=Rt?Nt:Nt&&Nt.withoutSetter||uid,wellKnownSymbol=function(h){return has(Mt,h)||(Ct&&has(Nt,h)?Mt[h]=Nt[h]:Mt[h]=It("Symbol."+h)),Mt[h]},Lt=wellKnownSymbol("species"),arraySpeciesCreate=function(h,d){var g;return Ot(h)&&("function"!=typeof(g=h.constructor)||g!==Array&&!Ot(g.prototype)?isObject(g)&&null===(g=g[Lt])&&(g=void 0):g=void 0),new(void 0===g?Array:g)(0===d?0:d)},Dt=getBuiltIn("navigator","userAgent")||"",jt=g.process,Vt=jt&&jt.versions,$t=Vt&&Vt.v8;$t?ot=(at=$t.split("."))[0]+at[1]:Dt&&(!(at=Dt.match(/Edge\/(\d+)/))||at[1]>=74)&&(at=Dt.match(/Chrome\/(\d+)/))&&(ot=at[1]);var Ft=ot&&+ot,Ut=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(h){return Ft>=51||!fails((function(){var d=[];return(d.constructor={})[Ut]=function(){return{foo:1}},1!==d[h](Boolean).foo}))},Bt=wellKnownSymbol("isConcatSpreadable"),zt=Ft>=51||!fails((function(){var h=[];return h[Bt]=!1,h.concat()[0]!==h})),Gt=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(h){if(!isObject(h))return!1;var d=h[Bt];return void 0!==d?!!d:Ot(h)};_export({target:"Array",proto:!0,forced:!zt||!Gt},{concat:function concat(h){var d,g,x,b,S,w=toObject(this),E=arraySpeciesCreate(w,0),P=0;for(d=-1,x=arguments.length;d<x;d++)if(isConcatSpreadable(S=-1===d?w:arguments[d])){if(P+(b=toLength(S.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(g=0;g<b;g++,P++)g in S&&createProperty(E,P,S[g])}else{if(P>=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(E,P++,S)}return E.length=P,E}});var Ht,qt=Object.keys||function keys(h){return objectKeysInternal(h,gt)},Xt=x?Object.defineProperties:function defineProperties(h,d){anObject(h);for(var g,x=qt(d),b=x.length,S=0;b>S;)D.f(h,g=x[S++],d[g]);return h},Yt=getBuiltIn("document","documentElement"),Wt=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(h){return"<script>"+h+"<\/script>"},NullProtoObject=function(){try{Ht=document.domain&&new ActiveXObject("htmlfile")}catch(h){}var h,d;NullProtoObject=Ht?function(h){h.write(scriptTag("")),h.close();var d=h.parentWindow.Object;return h=null,d}(Ht):((d=documentCreateElement("iframe")).style.display="none",Yt.appendChild(d),d.src=String("javascript:"),(h=d.contentWindow.document).open(),h.write(scriptTag("document.F=Object")),h.close(),h.F);for(var g=gt.length;g--;)delete NullProtoObject.prototype[gt[g]];return NullProtoObject()};K[Wt]=!0;var Qt=Object.create||function create(h,d){var g;return null!==h?(EmptyConstructor.prototype=anObject(h),g=new EmptyConstructor,EmptyConstructor.prototype=null,g[Wt]=h):g=NullProtoObject(),void 0===d?g:Xt(g,d)},Zt=wellKnownSymbol("unscopables"),Kt=Array.prototype;null==Kt[Zt]&&D.f(Kt,Zt,{configurable:!0,value:Qt(null)});var Jt,te,ee,addToUnscopables=function(h){Kt[Zt][h]=!0},re={},ne=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),ie=sharedKey("IE_PROTO"),ae=Object.prototype,oe=ne?Object.getPrototypeOf:function(h){return h=toObject(h),has(h,ie)?h[ie]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?ae:null},ue=wellKnownSymbol("iterator"),se=!1;[].keys&&("next"in(ee=[].keys())?(te=oe(oe(ee)))!==Object.prototype&&(Jt=te):se=!0),(null==Jt||fails((function(){var h={};return Jt[ue].call(h)!==h})))&&(Jt={}),has(Jt,ue)||j(Jt,ue,(function(){return this}));var ce={IteratorPrototype:Jt,BUGGY_SAFARI_ITERATORS:se},le=D.f,fe=wellKnownSymbol("toStringTag"),setToStringTag=function(h,d,g){h&&!has(h=g?h:h.prototype,fe)&&le(h,fe,{configurable:!0,value:d})},he=ce.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(h,d,g){var x=d+" Iterator";return h.prototype=Qt(he,{next:createPropertyDescriptor(1,g)}),setToStringTag(h,x,!1),re[x]=returnThis$1,h},pe=Object.setPrototypeOf||("__proto__"in{}?function(){var h,d=!1,g={};try{(h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(g,[]),d=g instanceof Array}catch(h){}return function setPrototypeOf(g,x){return anObject(g),function(h){if(!isObject(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype")}(x),d?h.call(g,x):g.__proto__=x,g}}():void 0),ye=ce.IteratorPrototype,ve=ce.BUGGY_SAFARI_ITERATORS,de=wellKnownSymbol("iterator"),returnThis$2=function(){return this},defineIterator=function(h,d,g,x,b,S,w){createIteratorConstructor(g,d,x);var E,P,A,getIterationMethod=function(h){if(h===b&&M)return M;if(!ve&&h in C)return C[h];switch(h){case"keys":return function keys(){return new g(this,h)};case"values":return function values(){return new g(this,h)};case"entries":return function entries(){return new g(this,h)}}return function(){return new g(this)}},_=d+" Iterator",k=!1,C=h.prototype,R=C[de]||C["@@iterator"]||b&&C[b],M=!ve&&R||getIterationMethod(b),N="Array"==d&&C.entries||R;if(N&&(E=oe(N.call(new h)),ye!==Object.prototype&&E.next&&(oe(E)!==ye&&(pe?pe(E,ye):"function"!=typeof E[de]&&j(E,de,returnThis$2)),setToStringTag(E,_,!0))),"values"==b&&R&&"values"!==R.name&&(k=!0,M=function values(){return R.call(this)}),C[de]!==M&&j(C,de,M),re[d]=M,b)if(P={values:getIterationMethod("values"),keys:S?M:getIterationMethod("keys"),entries:getIterationMethod("entries")},w)for(A in P)(ve||k||!(A in C))&&st(C,A,P[A]);else _export({target:d,proto:!0,forced:ve||k},P);return P},ge=ut.set,me=ut.getterFor("Array Iterator"),xe=defineIterator(Array,"Array",(function(h,d){ge(this,{type:"Array Iterator",target:toIndexedObject(h),index:0,kind:d})}),(function(){var h=me(this),d=h.target,g=h.kind,x=h.index++;return!d||x>=d.length?(h.target=void 0,{value:void 0,done:!0}):"keys"==g?{value:x,done:!1}:"values"==g?{value:d[x],done:!1}:{value:[x,d[x]],done:!1}}),"values");re.Arguments=re.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var be={};be[wellKnownSymbol("toStringTag")]="z";var Se="[object z]"===String(be),we=wellKnownSymbol("toStringTag"),Ee="Arguments"==classofRaw(function(){return arguments}()),Pe=Se?classofRaw:function(h){var d,g,x;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(g=function(h,d){try{return h[d]}catch(h){}}(d=Object(h),we))?g:Ee?classofRaw(d):"Object"==(x=classofRaw(d))&&"function"==typeof d.callee?"Arguments":x},Ae=Se?{}.toString:function toString(){return"[object "+Pe(this)+"]"};Se||st(Object.prototype,"toString",Ae,{unsafe:!0});var _e=g.Promise,redefineAll=function(h,d,g){for(var x in d)st(h,x,d[x],g);return h},ke=wellKnownSymbol("species"),setSpecies=function(h){var d=getBuiltIn(h),g=D.f;x&&d&&!d[ke]&&g(d,ke,{configurable:!0,get:function(){return this}})},aFunction$1=function(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h},anInstance=function(h,d,g){if(!(h instanceof d))throw TypeError("Incorrect "+(g?g+" ":"")+"invocation");return h},Te=wellKnownSymbol("iterator"),Oe=Array.prototype,isArrayIteratorMethod=function(h){return void 0!==h&&(re.Array===h||Oe[Te]===h)},functionBindContext=function(h,d,g){if(aFunction$1(h),void 0===d)return h;switch(g){case 0:return function(){return h.call(d)};case 1:return function(g){return h.call(d,g)};case 2:return function(g,x){return h.call(d,g,x)};case 3:return function(g,x,b){return h.call(d,g,x,b)}}return function(){return h.apply(d,arguments)}},Ce=wellKnownSymbol("iterator"),getIteratorMethod=function(h){if(null!=h)return h[Ce]||h["@@iterator"]||re[Pe(h)]},iteratorClose=function(h){var d=h.return;if(void 0!==d)return anObject(d.call(h)).value},Result=function(h,d){this.stopped=h,this.result=d},iterate=function(h,d,g){var x,b,S,w,E,P,A,_=g&&g.that,k=!(!g||!g.AS_ENTRIES),C=!(!g||!g.IS_ITERATOR),R=!(!g||!g.INTERRUPTED),M=functionBindContext(d,_,1+k+R),stop=function(h){return x&&iteratorClose(x),new Result(!0,h)},callFn=function(h){return k?(anObject(h),R?M(h[0],h[1],stop):M(h[0],h[1])):R?M(h,stop):M(h)};if(C)x=h;else{if("function"!=typeof(b=getIteratorMethod(h)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(b)){for(S=0,w=toLength(h.length);w>S;S++)if((E=callFn(h[S]))&&E instanceof Result)return E;return new Result(!1)}x=b.call(h)}for(P=x.next;!(A=P.call(x)).done;){try{E=callFn(A.value)}catch(h){throw iteratorClose(x),h}if("object"==typeof E&&E&&E instanceof Result)return E}return new Result(!1)},Re=wellKnownSymbol("iterator"),Me=!1;try{var Ne=0,Ie={next:function(){return{done:!!Ne++}},return:function(){Me=!0}};Ie[Re]=function(){return this},Array.from(Ie,(function(){throw 2}))}catch(h){}var Le,De,je,checkCorrectnessOfIteration=function(h,d){if(!d&&!Me)return!1;var g=!1;try{var x={};x[Re]=function(){return{next:function(){return{done:g=!0}}}},h(x)}catch(h){}return g},Ve=wellKnownSymbol("species"),speciesConstructor=function(h,d){var g,x=anObject(h).constructor;return void 0===x||null==(g=anObject(x)[Ve])?d:aFunction$1(g)},$e=/(iphone|ipod|ipad).*applewebkit/i.test(Dt),Fe="process"==classofRaw(g.process),Ue=g.location,Be=g.setImmediate,ze=g.clearImmediate,Ge=g.process,He=g.MessageChannel,qe=g.Dispatch,Xe=0,Ye={},run=function(h){if(Ye.hasOwnProperty(h)){var d=Ye[h];delete Ye[h],d()}},runner=function(h){return function(){run(h)}},listener=function(h){run(h.data)},post=function(h){g.postMessage(h+"",Ue.protocol+"//"+Ue.host)};Be&&ze||(Be=function setImmediate(h){for(var d=[],g=1;arguments.length>g;)d.push(arguments[g++]);return Ye[++Xe]=function(){("function"==typeof h?h:Function(h)).apply(void 0,d)},Le(Xe),Xe},ze=function clearImmediate(h){delete Ye[h]},Fe?Le=function(h){Ge.nextTick(runner(h))}:qe&&qe.now?Le=function(h){qe.now(runner(h))}:He&&!$e?(je=(De=new He).port2,De.port1.onmessage=listener,Le=functionBindContext(je.postMessage,je,1)):g.addEventListener&&"function"==typeof postMessage&&!g.importScripts&&Ue&&"file:"!==Ue.protocol&&!fails(post)?(Le=post,g.addEventListener("message",listener,!1)):Le="onreadystatechange"in documentCreateElement("script")?function(h){Yt.appendChild(documentCreateElement("script")).onreadystatechange=function(){Yt.removeChild(this),run(h)}}:function(h){setTimeout(runner(h),0)});var We,Qe,Ze,Ke,Je,tr,er,rr,nr={set:Be,clear:ze},ir=/web0s(?!.*chrome)/i.test(Dt),ar=N.f,or=nr.set,ur=g.MutationObserver||g.WebKitMutationObserver,sr=g.document,cr=g.process,lr=g.Promise,fr=ar(g,"queueMicrotask"),hr=fr&&fr.value;hr||(We=function(){var h,d;for(Fe&&(h=cr.domain)&&h.exit();Qe;){d=Qe.fn,Qe=Qe.next;try{d()}catch(h){throw Qe?Ke():Ze=void 0,h}}Ze=void 0,h&&h.enter()},$e||Fe||ir||!ur||!sr?lr&&lr.resolve?(er=lr.resolve(void 0),rr=er.then,Ke=function(){rr.call(er,We)}):Ke=Fe?function(){cr.nextTick(We)}:function(){or.call(g,We)}:(Je=!0,tr=sr.createTextNode(""),new ur(We).observe(tr,{characterData:!0}),Ke=function(){tr.data=Je=!Je}));var pr,yr,vr,dr,gr=hr||function(h){var d={fn:h,next:void 0};Ze&&(Ze.next=d),Qe||(Qe=d,Ke()),Ze=d},PromiseCapability=function(h){var d,g;this.promise=new h((function(h,x){if(void 0!==d||void 0!==g)throw TypeError("Bad Promise constructor");d=h,g=x})),this.resolve=aFunction$1(d),this.reject=aFunction$1(g)},mr={f:function(h){return new PromiseCapability(h)}},promiseResolve=function(h,d){if(anObject(h),isObject(d)&&d.constructor===h)return d;var g=mr.f(h);return(0,g.resolve)(d),g.promise},perform=function(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}},xr=nr.set,br=wellKnownSymbol("species"),Sr="Promise",wr=ut.get,Er=ut.set,Pr=ut.getterFor(Sr),Ar=_e,_r=g.TypeError,kr=g.document,Tr=g.process,Or=getBuiltIn("fetch"),Cr=mr.f,Rr=Cr,Mr=!!(kr&&kr.createEvent&&g.dispatchEvent),Nr="function"==typeof PromiseRejectionEvent,Ir=kt(Sr,(function(){if(!(G(Ar)!==String(Ar))){if(66===Ft)return!0;if(!Fe&&!Nr)return!0}if(Ft>=51&&/native code/.test(Ar))return!1;var h=Ar.resolve(1),FakePromise=function(h){h((function(){}),(function(){}))};return(h.constructor={})[br]=FakePromise,!(h.then((function(){}))instanceof FakePromise)})),Lr=Ir||!checkCorrectnessOfIteration((function(h){Ar.all(h).catch((function(){}))})),isThenable=function(h){var d;return!(!isObject(h)||"function"!=typeof(d=h.then))&&d},notify$1=function(h,d){if(!h.notified){h.notified=!0;var g=h.reactions;gr((function(){for(var x=h.value,b=1==h.state,S=0;g.length>S;){var w,E,P,A=g[S++],_=b?A.ok:A.fail,k=A.resolve,C=A.reject,R=A.domain;try{_?(b||(2===h.rejection&&onHandleUnhandled(h),h.rejection=1),!0===_?w=x:(R&&R.enter(),w=_(x),R&&(R.exit(),P=!0)),w===A.promise?C(_r("Promise-chain cycle")):(E=isThenable(w))?E.call(w,k,C):k(w)):C(x)}catch(h){R&&!P&&R.exit(),C(h)}}h.reactions=[],h.notified=!1,d&&!h.rejection&&onUnhandled(h)}))}},dispatchEvent=function(h,d,x){var b,S;Mr?((b=kr.createEvent("Event")).promise=d,b.reason=x,b.initEvent(h,!1,!0),g.dispatchEvent(b)):b={promise:d,reason:x},!Nr&&(S=g["on"+h])?S(b):"unhandledrejection"===h&&function(h,d){var x=g.console;x&&x.error&&(1===arguments.length?x.error(h):x.error(h,d))}("Unhandled promise rejection",x)},onUnhandled=function(h){xr.call(g,(function(){var d,g=h.facade,x=h.value;if(isUnhandled(h)&&(d=perform((function(){Fe?Tr.emit("unhandledRejection",x,g):dispatchEvent("unhandledrejection",g,x)})),h.rejection=Fe||isUnhandled(h)?2:1,d.error))throw d.value}))},isUnhandled=function(h){return 1!==h.rejection&&!h.parent},onHandleUnhandled=function(h){xr.call(g,(function(){var d=h.facade;Fe?Tr.emit("rejectionHandled",d):dispatchEvent("rejectionhandled",d,h.value)}))},bind=function(h,d,g){return function(x){h(d,x,g)}},internalReject=function(h,d,g){h.done||(h.done=!0,g&&(h=g),h.value=d,h.state=2,notify$1(h,!0))},internalResolve=function(h,d,g){if(!h.done){h.done=!0,g&&(h=g);try{if(h.facade===d)throw _r("Promise can't be resolved itself");var x=isThenable(d);x?gr((function(){var g={done:!1};try{x.call(d,bind(internalResolve,g,h),bind(internalReject,g,h))}catch(d){internalReject(g,d,h)}})):(h.value=d,h.state=1,notify$1(h,!1))}catch(d){internalReject({done:!1},d,h)}}};Ir&&(Ar=function Promise(h){anInstance(this,Ar,Sr),aFunction$1(h),pr.call(this);var d=wr(this);try{h(bind(internalResolve,d),bind(internalReject,d))}catch(h){internalReject(d,h)}},(pr=function Promise(h){Er(this,{type:Sr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(Ar.prototype,{then:function then(h,d){var g=Pr(this),x=Cr(speciesConstructor(this,Ar));return x.ok="function"!=typeof h||h,x.fail="function"==typeof d&&d,x.domain=Fe?Tr.domain:void 0,g.parent=!0,g.reactions.push(x),0!=g.state&&notify$1(g,!1),x.promise},catch:function(h){return this.then(void 0,h)}}),yr=function(){var h=new pr,d=wr(h);this.promise=h,this.resolve=bind(internalResolve,d),this.reject=bind(internalReject,d)},mr.f=Cr=function(h){return h===Ar||h===vr?new yr(h):Rr(h)},"function"==typeof _e&&(dr=_e.prototype.then,st(_e.prototype,"then",(function then(h,d){var g=this;return new Ar((function(h,d){dr.call(g,h,d)})).then(h,d)}),{unsafe:!0}),"function"==typeof Or&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(h){return promiseResolve(Ar,Or.apply(g,arguments))}}))),_export({global:!0,wrap:!0,forced:Ir},{Promise:Ar}),setToStringTag(Ar,Sr,!1),setSpecies(Sr),vr=getBuiltIn(Sr),_export({target:Sr,stat:!0,forced:Ir},{reject:function reject(h){var d=Cr(this);return d.reject.call(void 0,h),d.promise}}),_export({target:Sr,stat:!0,forced:Ir},{resolve:function resolve(h){return promiseResolve(this,h)}}),_export({target:Sr,stat:!0,forced:Lr},{all:function all(h){var d=this,g=Cr(d),x=g.resolve,b=g.reject,S=perform((function(){var g=aFunction$1(d.resolve),S=[],w=0,E=1;iterate(h,(function(h){var P=w++,A=!1;S.push(void 0),E++,g.call(d,h).then((function(h){A||(A=!0,S[P]=h,--E||x(S))}),b)})),--E||x(S)}));return S.error&&b(S.value),g.promise},race:function race(h){var d=this,g=Cr(d),x=g.reject,b=perform((function(){var b=aFunction$1(d.resolve);iterate(h,(function(h){b.call(d,h).then(g.resolve,x)}))}));return b.error&&x(b.value),g.promise}});var regexpFlags=function(){var h=anObject(this),d="";return h.global&&(d+="g"),h.ignoreCase&&(d+="i"),h.multiline&&(d+="m"),h.dotAll&&(d+="s"),h.unicode&&(d+="u"),h.sticky&&(d+="y"),d};function RE(h,d){return RegExp(h,d)}var Dr={UNSUPPORTED_Y:fails((function(){var h=RE("a","y");return h.lastIndex=2,null!=h.exec("abcd")})),BROKEN_CARET:fails((function(){var h=RE("^r","gy");return h.lastIndex=2,null!=h.exec("str")}))},jr=RegExp.prototype.exec,Vr=String.prototype.replace,$r=jr,Fr=function(){var h=/a/,d=/b*/g;return jr.call(h,"a"),jr.call(d,"a"),0!==h.lastIndex||0!==d.lastIndex}(),Ur=Dr.UNSUPPORTED_Y||Dr.BROKEN_CARET,Br=void 0!==/()??/.exec("")[1];(Fr||Br||Ur)&&($r=function exec(h){var d,g,x,b,S=this,w=Ur&&S.sticky,E=regexpFlags.call(S),P=S.source,A=0,_=h;return w&&(-1===(E=E.replace("y","")).indexOf("g")&&(E+="g"),_=String(h).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==h[S.lastIndex-1])&&(P="(?: "+P+")",_=" "+_,A++),g=new RegExp("^(?:"+P+")",E)),Br&&(g=new RegExp("^"+P+"$(?!\\s)",E)),Fr&&(d=S.lastIndex),x=jr.call(w?g:S,_),w?x?(x.input=x.input.slice(A),x[0]=x[0].slice(A),x.index=S.lastIndex,S.lastIndex+=x[0].length):S.lastIndex=0:Fr&&x&&(S.lastIndex=S.global?x.index+x[0].length:d),Br&&x&&x.length>1&&Vr.call(x[0],g,(function(){for(b=1;b<arguments.length-2;b++)void 0===arguments[b]&&(x[b]=void 0)})),x});var zr=$r;_export({target:"RegExp",proto:!0,forced:/./.exec!==zr},{exec:zr});var createMethod$1=function(h){return function(d,g){var x,b,S=String(requireObjectCoercible(d)),w=toInteger(g),E=S.length;return w<0||w>=E?h?"":void 0:(x=S.charCodeAt(w))<55296||x>56319||w+1===E||(b=S.charCodeAt(w+1))<56320||b>57343?h?S.charAt(w):x:h?S.slice(w,w+2):b-56320+(x-55296<<10)+65536}},Gr={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},Hr=Gr.charAt,qr=ut.set,Xr=ut.getterFor("String Iterator");defineIterator(String,"String",(function(h){qr(this,{type:"String Iterator",string:String(h),index:0})}),(function next(){var h,d=Xr(this),g=d.string,x=d.index;return x>=g.length?{value:void 0,done:!0}:(h=Hr(g,x),d.index+=h.length,{value:h,done:!1})}));var Yr=wellKnownSymbol("species"),Wr=!fails((function(){var h=/./;return h.exec=function(){var h=[];return h.groups={a:"7"},h},"7"!=="".replace(h,"$<a>")})),Qr="$0"==="a".replace(/./,"$0"),Zr=wellKnownSymbol("replace"),Kr=!!/./[Zr]&&""===/./[Zr]("a","$0"),Jr=!fails((function(){var h=/(?:)/,d=h.exec;h.exec=function(){return d.apply(this,arguments)};var g="ab".split(h);return 2!==g.length||"a"!==g[0]||"b"!==g[1]})),fixRegexpWellKnownSymbolLogic=function(h,d,g,x){var b=wellKnownSymbol(h),S=!fails((function(){var d={};return d[b]=function(){return 7},7!=""[h](d)})),w=S&&!fails((function(){var d=!1,g=/a/;return"split"===h&&((g={}).constructor={},g.constructor[Yr]=function(){return g},g.flags="",g[b]=/./[b]),g.exec=function(){return d=!0,null},g[b](""),!d}));if(!S||!w||"replace"===h&&(!Wr||!Qr||Kr)||"split"===h&&!Jr){var E=/./[b],P=g(b,""[h],(function(h,d,g,x,b){return d.exec===zr?S&&!b?{done:!0,value:E.call(d,g,x)}:{done:!0,value:h.call(g,d,x)}:{done:!1}}),{REPLACE_KEEPS_$0:Qr,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Kr}),A=P[0],_=P[1];st(String.prototype,h,A),st(RegExp.prototype,b,2==d?function(h,d){return _.call(h,this,d)}:function(h){return _.call(h,this)})}x&&j(RegExp.prototype[b],"sham",!0)},tn=Gr.charAt,advanceStringIndex=function(h,d,g){return d+(g?tn(h,d).length:1)},en=Math.floor,rn="".replace,nn=/\$([$&'`]|\d\d?|<[^>]*>)/g,an=/\$([$&'`]|\d\d?)/g,getSubstitution=function(h,d,g,x,b,S){var w=g+h.length,E=x.length,P=an;return void 0!==b&&(b=toObject(b),P=nn),rn.call(S,P,(function(S,P){var A;switch(P.charAt(0)){case"$":return"$";case"&":return h;case"`":return d.slice(0,g);case"'":return d.slice(w);case"<":A=b[P.slice(1,-1)];break;default:var _=+P;if(0===_)return S;if(_>E){var k=en(_/10);return 0===k?S:k<=E?void 0===x[k-1]?P.charAt(1):x[k-1]+P.charAt(1):S}A=x[_-1]}return void 0===A?"":A}))},regexpExecAbstract=function(h,d){var g=h.exec;if("function"==typeof g){var x=g.call(h,d);if("object"!=typeof x)throw TypeError("RegExp exec method returned something other than an Object or null");return x}if("RegExp"!==classofRaw(h))throw TypeError("RegExp#exec called on incompatible receiver");return zr.call(h,d)},on=Math.max,un=Math.min;fixRegexpWellKnownSymbolLogic("replace",2,(function(h,d,g,x){var b=x.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,S=x.REPLACE_KEEPS_$0,w=b?"$":"$0";return[function replace(g,x){var b=requireObjectCoercible(this),S=null==g?void 0:g[h];return void 0!==S?S.call(g,b,x):d.call(String(b),g,x)},function(h,x){if(!b&&S||"string"==typeof x&&-1===x.indexOf(w)){var E=g(d,h,this,x);if(E.done)return E.value}var P=anObject(h),A=String(this),_="function"==typeof x;_||(x=String(x));var k=P.global;if(k){var C=P.unicode;P.lastIndex=0}for(var R=[];;){var M=regexpExecAbstract(P,A);if(null===M)break;if(R.push(M),!k)break;""===String(M[0])&&(P.lastIndex=advanceStringIndex(A,toLength(P.lastIndex),C))}for(var N,L="",D=0,j=0;j<R.length;j++){M=R[j];for(var V=String(M[0]),$=on(un(toInteger(M.index),A.length),0),U=[],B=1;B<M.length;B++)U.push(void 0===(N=M[B])?N:String(N));var z=M.groups;if(_){var G=[V].concat(U,$,A);void 0!==z&&G.push(z);var q=String(x.apply(void 0,G))}else q=getSubstitution(V,A,$,U,z,x);$>=D&&(L+=A.slice(D,$)+q,D=$+V.length)}return L+A.slice(D)}]}));var sn={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},cn=wellKnownSymbol("iterator"),ln=wellKnownSymbol("toStringTag"),fn=xe.values;for(var hn in sn){var pn=g[hn],yn=pn&&pn.prototype;if(yn){if(yn[cn]!==fn)try{j(yn,cn,fn)}catch(h){yn[cn]=fn}if(yn[ln]||j(yn,ln,hn),sn[hn])for(var vn in xe)if(yn[vn]!==xe[vn])try{j(yn,vn,xe[vn])}catch(h){yn[vn]=xe[vn]}}}var dn=wellKnownSymbol("iterator"),gn=!fails((function(){var h=new URL("b?a=1&b=2&c=3","http://a"),d=h.searchParams,g="";return h.pathname="c%20d",d.forEach((function(h,x){d.delete("b"),g+=x+h})),!d.sort||"http://a/c%20d?a=1&c=3"!==h.href||"3"!==d.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!d[dn]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==g||"x"!==new URL("http://x",void 0).host})),mn=Object.assign,xn=Object.defineProperty,bn=!mn||fails((function(){if(x&&1!==mn({b:1},mn(xn({},"a",{enumerable:!0,get:function(){xn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var h={},d={},g=Symbol(),b="abcdefghijklmnopqrst";return h[g]=7,b.split("").forEach((function(h){d[h]=h})),7!=mn({},h)[g]||qt(mn({},d)).join("")!=b}))?function assign(h,d){for(var g=toObject(h),b=arguments.length,S=1,E=bt.f,P=w.f;b>S;)for(var _,k=A(arguments[S++]),C=E?qt(k).concat(E(k)):qt(k),R=C.length,M=0;R>M;)_=C[M++],x&&!P.call(k,_)||(g[_]=k[_]);return g}:mn,callWithSafeIterationClosing=function(h,d,g,x){try{return x?d(anObject(g)[0],g[1]):d(g)}catch(d){throw iteratorClose(h),d}},Sn=function from(h){var d,g,x,b,S,w,E=toObject(h),P="function"==typeof this?this:Array,A=arguments.length,_=A>1?arguments[1]:void 0,k=void 0!==_,C=getIteratorMethod(E),R=0;if(k&&(_=functionBindContext(_,A>2?arguments[2]:void 0,2)),null==C||P==Array&&isArrayIteratorMethod(C))for(g=new P(d=toLength(E.length));d>R;R++)w=k?_(E[R],R):E[R],createProperty(g,R,w);else for(S=(b=C.call(E)).next,g=new P;!(x=S.call(b)).done;R++)w=k?callWithSafeIterationClosing(b,_,[x.value,R],!0):x.value,createProperty(g,R,w);return g.length=R,g},wn=/[^\0-\u007E]/,En=/[.\u3002\uFF0E\uFF61]/g,Pn="Overflow: input needs wider integers to process",An=Math.floor,_n=String.fromCharCode,digitToBasic=function(h){return h+22+75*(h<26)},adapt=function(h,d,g){var x=0;for(h=g?An(h/700):h>>1,h+=An(h/d);h>455;x+=36)h=An(h/35);return An(x+36*h/(h+38))},encode=function(h){var d,g,x=[],b=(h=function(h){for(var d=[],g=0,x=h.length;g<x;){var b=h.charCodeAt(g++);if(b>=55296&&b<=56319&&g<x){var S=h.charCodeAt(g++);56320==(64512&S)?d.push(((1023&b)<<10)+(1023&S)+65536):(d.push(b),g--)}else d.push(b)}return d}(h)).length,S=128,w=0,E=72;for(d=0;d<h.length;d++)(g=h[d])<128&&x.push(_n(g));var P=x.length,A=P;for(P&&x.push("-");A<b;){var _=2147483647;for(d=0;d<h.length;d++)(g=h[d])>=S&&g<_&&(_=g);var k=A+1;if(_-S>An((2147483647-w)/k))throw RangeError(Pn);for(w+=(_-S)*k,S=_,d=0;d<h.length;d++){if((g=h[d])<S&&++w>2147483647)throw RangeError(Pn);if(g==S){for(var C=w,R=36;;R+=36){var M=R<=E?1:R>=E+26?26:R-E;if(C<M)break;var N=C-M,L=36-M;x.push(_n(digitToBasic(M+N%L))),C=An(N/L)}x.push(_n(digitToBasic(C))),E=adapt(w,k,A==P),w=0,++A}}++w,++S}return x.join("")},getIterator=function(h){var d=getIteratorMethod(h);if("function"!=typeof d)throw TypeError(String(h)+" is not iterable");return anObject(d.call(h))},kn=getBuiltIn("fetch"),Tn=getBuiltIn("Headers"),On=wellKnownSymbol("iterator"),Cn=ut.set,Rn=ut.getterFor("URLSearchParams"),Mn=ut.getterFor("URLSearchParamsIterator"),Nn=/\+/g,In=Array(4),percentSequence=function(h){return In[h-1]||(In[h-1]=RegExp("((?:%[\\da-f]{2}){"+h+"})","gi"))},percentDecode=function(h){try{return decodeURIComponent(h)}catch(d){return h}},deserialize=function(h){var d=h.replace(Nn," "),g=4;try{return decodeURIComponent(d)}catch(h){for(;g;)d=d.replace(percentSequence(g--),percentDecode);return d}},Ln=/[!'()~]|%20/g,Dn={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(h){return Dn[h]},serialize=function(h){return encodeURIComponent(h).replace(Ln,replacer)},parseSearchParams=function(h,d){if(d)for(var g,x,b=d.split("&"),S=0;S<b.length;)(g=b[S++]).length&&(x=g.split("="),h.push({key:deserialize(x.shift()),value:deserialize(x.join("="))}))},updateSearchParams=function(h){this.entries.length=0,parseSearchParams(this.entries,h)},validateArgumentsLength=function(h,d){if(h<d)throw TypeError("Not enough arguments")},jn=createIteratorConstructor((function Iterator(h,d){Cn(this,{type:"URLSearchParamsIterator",iterator:getIterator(Rn(h).entries),kind:d})}),"Iterator",(function next(){var h=Mn(this),d=h.kind,g=h.iterator.next(),x=g.value;return g.done||(g.value="keys"===d?x.key:"values"===d?x.value:[x.key,x.value]),g})),Vn=function URLSearchParams(){anInstance(this,Vn,"URLSearchParams");var h,d,g,x,b,S,w,E,P,A=arguments.length>0?arguments[0]:void 0,_=this,k=[];if(Cn(_,{type:"URLSearchParams",entries:k,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==A)if(isObject(A))if("function"==typeof(h=getIteratorMethod(A)))for(g=(d=h.call(A)).next;!(x=g.call(d)).done;){if((w=(S=(b=getIterator(anObject(x.value))).next).call(b)).done||(E=S.call(b)).done||!S.call(b).done)throw TypeError("Expected sequence with length 2");k.push({key:w.value+"",value:E.value+""})}else for(P in A)has(A,P)&&k.push({key:P,value:A[P]+""});else parseSearchParams(k,"string"==typeof A?"?"===A.charAt(0)?A.slice(1):A:A+"")},$n=Vn.prototype;redefineAll($n,{append:function append(h,d){validateArgumentsLength(arguments.length,2);var g=Rn(this);g.entries.push({key:h+"",value:d+""}),g.updateURL()},delete:function(h){validateArgumentsLength(arguments.length,1);for(var d=Rn(this),g=d.entries,x=h+"",b=0;b<g.length;)g[b].key===x?g.splice(b,1):b++;d.updateURL()},get:function get(h){validateArgumentsLength(arguments.length,1);for(var d=Rn(this).entries,g=h+"",x=0;x<d.length;x++)if(d[x].key===g)return d[x].value;return null},getAll:function getAll(h){validateArgumentsLength(arguments.length,1);for(var d=Rn(this).entries,g=h+"",x=[],b=0;b<d.length;b++)d[b].key===g&&x.push(d[b].value);return x},has:function has(h){validateArgumentsLength(arguments.length,1);for(var d=Rn(this).entries,g=h+"",x=0;x<d.length;)if(d[x++].key===g)return!0;return!1},set:function set(h,d){validateArgumentsLength(arguments.length,1);for(var g,x=Rn(this),b=x.entries,S=!1,w=h+"",E=d+"",P=0;P<b.length;P++)(g=b[P]).key===w&&(S?b.splice(P--,1):(S=!0,g.value=E));S||b.push({key:w,value:E}),x.updateURL()},sort:function sort(){var h,d,g,x=Rn(this),b=x.entries,S=b.slice();for(b.length=0,g=0;g<S.length;g++){for(h=S[g],d=0;d<g;d++)if(b[d].key>h.key){b.splice(d,0,h);break}d===g&&b.push(h)}x.updateURL()},forEach:function forEach(h){for(var d,g=Rn(this).entries,x=functionBindContext(h,arguments.length>1?arguments[1]:void 0,3),b=0;b<g.length;)x((d=g[b++]).value,d.key,this)},keys:function keys(){return new jn(this,"keys")},values:function values(){return new jn(this,"values")},entries:function entries(){return new jn(this,"entries")}},{enumerable:!0}),st($n,On,$n.entries),st($n,"toString",(function toString(){for(var h,d=Rn(this).entries,g=[],x=0;x<d.length;)h=d[x++],g.push(serialize(h.key)+"="+serialize(h.value));return g.join("&")}),{enumerable:!0}),setToStringTag(Vn,"URLSearchParams"),_export({global:!0,forced:!gn},{URLSearchParams:Vn}),gn||"function"!=typeof kn||"function"!=typeof Tn||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(h){var d,g,x,b=[h];return arguments.length>1&&(isObject(d=arguments[1])&&(g=d.body,"URLSearchParams"===Pe(g)&&((x=d.headers?new Tn(d.headers):new Tn).has("content-type")||x.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),d=Qt(d,{body:createPropertyDescriptor(0,String(g)),headers:createPropertyDescriptor(0,x)}))),b.push(d)),kn.apply(this,b)}});var Fn,Un={URLSearchParams:Vn,getState:Rn},Bn=Gr.codeAt,zn=g.URL,Gn=Un.URLSearchParams,Hn=Un.getState,qn=ut.set,Xn=ut.getterFor("URL"),Yn=Math.floor,Wn=Math.pow,Qn=/[A-Za-z]/,Zn=/[\d+-.A-Za-z]/,Kn=/\d/,Jn=/^(0x|0X)/,ti=/^[0-7]+$/,ei=/^\d+$/,ri=/^[\dA-Fa-f]+$/,ni=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,ii=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,ai=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,oi=/[\u0009\u000A\u000D]/g,parseHost=function(h,d){var g,x,b;if("["==d.charAt(0)){if("]"!=d.charAt(d.length-1))return"Invalid host";if(!(g=parseIPv6(d.slice(1,-1))))return"Invalid host";h.host=g}else if(isSpecial(h)){if(d=function(h){var d,g,x=[],b=h.toLowerCase().replace(En,".").split(".");for(d=0;d<b.length;d++)g=b[d],x.push(wn.test(g)?"xn--"+encode(g):g);return x.join(".")}(d),ni.test(d))return"Invalid host";if(null===(g=parseIPv4(d)))return"Invalid host";h.host=g}else{if(ii.test(d))return"Invalid host";for(g="",x=Sn(d),b=0;b<x.length;b++)g+=percentEncode(x[b],ui);h.host=g}},parseIPv4=function(h){var d,g,x,b,S,w,E,P=h.split(".");if(P.length&&""==P[P.length-1]&&P.pop(),(d=P.length)>4)return h;for(g=[],x=0;x<d;x++){if(""==(b=P[x]))return h;if(S=10,b.length>1&&"0"==b.charAt(0)&&(S=Jn.test(b)?16:8,b=b.slice(8==S?1:2)),""===b)w=0;else{if(!(10==S?ei:8==S?ti:ri).test(b))return h;w=parseInt(b,S)}g.push(w)}for(x=0;x<d;x++)if(w=g[x],x==d-1){if(w>=Wn(256,5-d))return null}else if(w>255)return null;for(E=g.pop(),x=0;x<g.length;x++)E+=g[x]*Wn(256,3-x);return E},parseIPv6=function(h){var d,g,x,b,S,w,E,P=[0,0,0,0,0,0,0,0],A=0,_=null,k=0,char=function(){return h.charAt(k)};if(":"==char()){if(":"!=h.charAt(1))return;k+=2,_=++A}for(;char();){if(8==A)return;if(":"!=char()){for(d=g=0;g<4&&ri.test(char());)d=16*d+parseInt(char(),16),k++,g++;if("."==char()){if(0==g)return;if(k-=g,A>6)return;for(x=0;char();){if(b=null,x>0){if(!("."==char()&&x<4))return;k++}if(!Kn.test(char()))return;for(;Kn.test(char());){if(S=parseInt(char(),10),null===b)b=S;else{if(0==b)return;b=10*b+S}if(b>255)return;k++}P[A]=256*P[A]+b,2!=++x&&4!=x||A++}if(4!=x)return;break}if(":"==char()){if(k++,!char())return}else if(char())return;P[A++]=d}else{if(null!==_)return;k++,_=++A}}if(null!==_)for(w=A-_,A=7;0!=A&&w>0;)E=P[A],P[A--]=P[_+w-1],P[_+--w]=E;else if(8!=A)return;return P},serializeHost=function(h){var d,g,x,b;if("number"==typeof h){for(d=[],g=0;g<4;g++)d.unshift(h%256),h=Yn(h/256);return d.join(".")}if("object"==typeof h){for(d="",x=function(h){for(var d=null,g=1,x=null,b=0,S=0;S<8;S++)0!==h[S]?(b>g&&(d=x,g=b),x=null,b=0):(null===x&&(x=S),++b);return b>g&&(d=x,g=b),d}(h),g=0;g<8;g++)b&&0===h[g]||(b&&(b=!1),x===g?(d+=g?":":"::",b=!0):(d+=h[g].toString(16),g<7&&(d+=":")));return"["+d+"]"}return h},ui={},si=bn({},ui,{" ":1,'"':1,"<":1,">":1,"`":1}),ci=bn({},si,{"#":1,"?":1,"{":1,"}":1}),li=bn({},ci,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(h,d){var g=Bn(h,0);return g>32&&g<127&&!has(d,h)?h:encodeURIComponent(h)},fi={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(h){return has(fi,h.scheme)},includesCredentials=function(h){return""!=h.username||""!=h.password},cannotHaveUsernamePasswordPort=function(h){return!h.host||h.cannotBeABaseURL||"file"==h.scheme},isWindowsDriveLetter=function(h,d){var g;return 2==h.length&&Qn.test(h.charAt(0))&&(":"==(g=h.charAt(1))||!d&&"|"==g)},startsWithWindowsDriveLetter=function(h){var d;return h.length>1&&isWindowsDriveLetter(h.slice(0,2))&&(2==h.length||"/"===(d=h.charAt(2))||"\\"===d||"?"===d||"#"===d)},shortenURLsPath=function(h){var d=h.path,g=d.length;!g||"file"==h.scheme&&1==g&&isWindowsDriveLetter(d[0],!0)||d.pop()},isSingleDot=function(h){return"."===h||"%2e"===h.toLowerCase()},hi={},pi={},yi={},vi={},di={},gi={},mi={},xi={},bi={},Si={},wi={},Ei={},Pi={},Ai={},_i={},ki={},Ti={},Oi={},Ci={},Ri={},Mi={},parseURL=function(h,d,g,x){var b,S,w,E,P,A=g||hi,_=0,k="",C=!1,R=!1,M=!1;for(g||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,d=d.replace(ai,"")),d=d.replace(oi,""),b=Sn(d);_<=b.length;){switch(S=b[_],A){case hi:if(!S||!Qn.test(S)){if(g)return"Invalid scheme";A=yi;continue}k+=S.toLowerCase(),A=pi;break;case pi:if(S&&(Zn.test(S)||"+"==S||"-"==S||"."==S))k+=S.toLowerCase();else{if(":"!=S){if(g)return"Invalid scheme";k="",A=yi,_=0;continue}if(g&&(isSpecial(h)!=has(fi,k)||"file"==k&&(includesCredentials(h)||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=k,g)return void(isSpecial(h)&&fi[h.scheme]==h.port&&(h.port=null));k="","file"==h.scheme?A=Ai:isSpecial(h)&&x&&x.scheme==h.scheme?A=vi:isSpecial(h)?A=xi:"/"==b[_+1]?(A=di,_++):(h.cannotBeABaseURL=!0,h.path.push(""),A=Ci)}break;case yi:if(!x||x.cannotBeABaseURL&&"#"!=S)return"Invalid scheme";if(x.cannotBeABaseURL&&"#"==S){h.scheme=x.scheme,h.path=x.path.slice(),h.query=x.query,h.fragment="",h.cannotBeABaseURL=!0,A=Mi;break}A="file"==x.scheme?Ai:gi;continue;case vi:if("/"!=S||"/"!=b[_+1]){A=gi;continue}A=bi,_++;break;case di:if("/"==S){A=Si;break}A=Oi;continue;case gi:if(h.scheme=x.scheme,S==Fn)h.username=x.username,h.password=x.password,h.host=x.host,h.port=x.port,h.path=x.path.slice(),h.query=x.query;else if("/"==S||"\\"==S&&isSpecial(h))A=mi;else if("?"==S)h.username=x.username,h.password=x.password,h.host=x.host,h.port=x.port,h.path=x.path.slice(),h.query="",A=Ri;else{if("#"!=S){h.username=x.username,h.password=x.password,h.host=x.host,h.port=x.port,h.path=x.path.slice(),h.path.pop(),A=Oi;continue}h.username=x.username,h.password=x.password,h.host=x.host,h.port=x.port,h.path=x.path.slice(),h.query=x.query,h.fragment="",A=Mi}break;case mi:if(!isSpecial(h)||"/"!=S&&"\\"!=S){if("/"!=S){h.username=x.username,h.password=x.password,h.host=x.host,h.port=x.port,A=Oi;continue}A=Si}else A=bi;break;case xi:if(A=bi,"/"!=S||"/"!=k.charAt(_+1))continue;_++;break;case bi:if("/"!=S&&"\\"!=S){A=Si;continue}break;case Si:if("@"==S){C&&(k="%40"+k),C=!0,w=Sn(k);for(var N=0;N<w.length;N++){var L=w[N];if(":"!=L||M){var D=percentEncode(L,li);M?h.password+=D:h.username+=D}else M=!0}k=""}else if(S==Fn||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)){if(C&&""==k)return"Invalid authority";_-=Sn(k).length+1,k="",A=wi}else k+=S;break;case wi:case Ei:if(g&&"file"==h.scheme){A=ki;continue}if(":"!=S||R){if(S==Fn||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)){if(isSpecial(h)&&""==k)return"Invalid host";if(g&&""==k&&(includesCredentials(h)||null!==h.port))return;if(E=parseHost(h,k))return E;if(k="",A=Ti,g)return;continue}"["==S?R=!0:"]"==S&&(R=!1),k+=S}else{if(""==k)return"Invalid host";if(E=parseHost(h,k))return E;if(k="",A=Pi,g==Ei)return}break;case Pi:if(!Kn.test(S)){if(S==Fn||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)||g){if(""!=k){var j=parseInt(k,10);if(j>65535)return"Invalid port";h.port=isSpecial(h)&&j===fi[h.scheme]?null:j,k=""}if(g)return;A=Ti;continue}return"Invalid port"}k+=S;break;case Ai:if(h.scheme="file","/"==S||"\\"==S)A=_i;else{if(!x||"file"!=x.scheme){A=Oi;continue}if(S==Fn)h.host=x.host,h.path=x.path.slice(),h.query=x.query;else if("?"==S)h.host=x.host,h.path=x.path.slice(),h.query="",A=Ri;else{if("#"!=S){startsWithWindowsDriveLetter(b.slice(_).join(""))||(h.host=x.host,h.path=x.path.slice(),shortenURLsPath(h)),A=Oi;continue}h.host=x.host,h.path=x.path.slice(),h.query=x.query,h.fragment="",A=Mi}}break;case _i:if("/"==S||"\\"==S){A=ki;break}x&&"file"==x.scheme&&!startsWithWindowsDriveLetter(b.slice(_).join(""))&&(isWindowsDriveLetter(x.path[0],!0)?h.path.push(x.path[0]):h.host=x.host),A=Oi;continue;case ki:if(S==Fn||"/"==S||"\\"==S||"?"==S||"#"==S){if(!g&&isWindowsDriveLetter(k))A=Oi;else if(""==k){if(h.host="",g)return;A=Ti}else{if(E=parseHost(h,k))return E;if("localhost"==h.host&&(h.host=""),g)return;k="",A=Ti}continue}k+=S;break;case Ti:if(isSpecial(h)){if(A=Oi,"/"!=S&&"\\"!=S)continue}else if(g||"?"!=S)if(g||"#"!=S){if(S!=Fn&&(A=Oi,"/"!=S))continue}else h.fragment="",A=Mi;else h.query="",A=Ri;break;case Oi:if(S==Fn||"/"==S||"\\"==S&&isSpecial(h)||!g&&("?"==S||"#"==S)){if(".."===(P=(P=k).toLowerCase())||"%2e."===P||".%2e"===P||"%2e%2e"===P?(shortenURLsPath(h),"/"==S||"\\"==S&&isSpecial(h)||h.path.push("")):isSingleDot(k)?"/"==S||"\\"==S&&isSpecial(h)||h.path.push(""):("file"==h.scheme&&!h.path.length&&isWindowsDriveLetter(k)&&(h.host&&(h.host=""),k=k.charAt(0)+":"),h.path.push(k)),k="","file"==h.scheme&&(S==Fn||"?"==S||"#"==S))for(;h.path.length>1&&""===h.path[0];)h.path.shift();"?"==S?(h.query="",A=Ri):"#"==S&&(h.fragment="",A=Mi)}else k+=percentEncode(S,ci);break;case Ci:"?"==S?(h.query="",A=Ri):"#"==S?(h.fragment="",A=Mi):S!=Fn&&(h.path[0]+=percentEncode(S,ui));break;case Ri:g||"#"!=S?S!=Fn&&("'"==S&&isSpecial(h)?h.query+="%27":h.query+="#"==S?"%23":percentEncode(S,ui)):(h.fragment="",A=Mi);break;case Mi:S!=Fn&&(h.fragment+=percentEncode(S,si))}_++}},Ni=function URL(h){var d,g,b=anInstance(this,Ni,"URL"),S=arguments.length>1?arguments[1]:void 0,w=String(h),E=qn(b,{type:"URL"});if(void 0!==S)if(S instanceof Ni)d=Xn(S);else if(g=parseURL(d={},String(S)))throw TypeError(g);if(g=parseURL(E,w,null,d))throw TypeError(g);var P=E.searchParams=new Gn,A=Hn(P);A.updateSearchParams(E.query),A.updateURL=function(){E.query=String(P)||null},x||(b.href=serializeURL.call(b),b.origin=getOrigin.call(b),b.protocol=getProtocol.call(b),b.username=getUsername.call(b),b.password=getPassword.call(b),b.host=getHost.call(b),b.hostname=getHostname.call(b),b.port=getPort.call(b),b.pathname=getPathname.call(b),b.search=getSearch.call(b),b.searchParams=getSearchParams.call(b),b.hash=getHash.call(b))},Ii=Ni.prototype,serializeURL=function(){var h=Xn(this),d=h.scheme,g=h.username,x=h.password,b=h.host,S=h.port,w=h.path,E=h.query,P=h.fragment,A=d+":";return null!==b?(A+="//",includesCredentials(h)&&(A+=g+(x?":"+x:"")+"@"),A+=serializeHost(b),null!==S&&(A+=":"+S)):"file"==d&&(A+="//"),A+=h.cannotBeABaseURL?w[0]:w.length?"/"+w.join("/"):"",null!==E&&(A+="?"+E),null!==P&&(A+="#"+P),A},getOrigin=function(){var h=Xn(this),d=h.scheme,g=h.port;if("blob"==d)try{return new URL(d.path[0]).origin}catch(h){return"null"}return"file"!=d&&isSpecial(h)?d+"://"+serializeHost(h.host)+(null!==g?":"+g:""):"null"},getProtocol=function(){return Xn(this).scheme+":"},getUsername=function(){return Xn(this).username},getPassword=function(){return Xn(this).password},getHost=function(){var h=Xn(this),d=h.host,g=h.port;return null===d?"":null===g?serializeHost(d):serializeHost(d)+":"+g},getHostname=function(){var h=Xn(this).host;return null===h?"":serializeHost(h)},getPort=function(){var h=Xn(this).port;return null===h?"":String(h)},getPathname=function(){var h=Xn(this),d=h.path;return h.cannotBeABaseURL?d[0]:d.length?"/"+d.join("/"):""},getSearch=function(){var h=Xn(this).query;return h?"?"+h:""},getSearchParams=function(){return Xn(this).searchParams},getHash=function(){var h=Xn(this).fragment;return h?"#"+h:""},accessorDescriptor=function(h,d){return{get:h,set:d,configurable:!0,enumerable:!0}};if(x&&Xt(Ii,{href:accessorDescriptor(serializeURL,(function(h){var d=Xn(this),g=String(h),x=parseURL(d,g);if(x)throw TypeError(x);Hn(d.searchParams).updateSearchParams(d.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(h){var d=Xn(this);parseURL(d,String(h)+":",hi)})),username:accessorDescriptor(getUsername,(function(h){var d=Xn(this),g=Sn(String(h));if(!cannotHaveUsernamePasswordPort(d)){d.username="";for(var x=0;x<g.length;x++)d.username+=percentEncode(g[x],li)}})),password:accessorDescriptor(getPassword,(function(h){var d=Xn(this),g=Sn(String(h));if(!cannotHaveUsernamePasswordPort(d)){d.password="";for(var x=0;x<g.length;x++)d.password+=percentEncode(g[x],li)}})),host:accessorDescriptor(getHost,(function(h){var d=Xn(this);d.cannotBeABaseURL||parseURL(d,String(h),wi)})),hostname:accessorDescriptor(getHostname,(function(h){var d=Xn(this);d.cannotBeABaseURL||parseURL(d,String(h),Ei)})),port:accessorDescriptor(getPort,(function(h){var d=Xn(this);cannotHaveUsernamePasswordPort(d)||(""==(h=String(h))?d.port=null:parseURL(d,h,Pi))})),pathname:accessorDescriptor(getPathname,(function(h){var d=Xn(this);d.cannotBeABaseURL||(d.path=[],parseURL(d,h+"",Ti))})),search:accessorDescriptor(getSearch,(function(h){var d=Xn(this);""==(h=String(h))?d.query=null:("?"==h.charAt(0)&&(h=h.slice(1)),d.query="",parseURL(d,h,Ri)),Hn(d.searchParams).updateSearchParams(d.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(h){var d=Xn(this);""!=(h=String(h))?("#"==h.charAt(0)&&(h=h.slice(1)),d.fragment="",parseURL(d,h,Mi)):d.fragment=null}))}),st(Ii,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),st(Ii,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),zn){var Li=zn.createObjectURL,Di=zn.revokeObjectURL;Li&&st(Ni,"createObjectURL",(function createObjectURL(h){return Li.apply(zn,arguments)})),Di&&st(Ni,"revokeObjectURL",(function revokeObjectURL(h){return Di.apply(zn,arguments)}))}setToStringTag(Ni,"URL"),_export({global:!0,forced:!gn,sham:!x},{URL:Ni});var ji=xt.f,Vi={}.toString,$i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Fi={f:function getOwnPropertyNames(h){return $i&&"[object Window]"==Vi.call(h)?function(h){try{return ji(h)}catch(h){return $i.slice()}}(h):ji(toIndexedObject(h))}},Ui={f:wellKnownSymbol},Bi=D.f,defineWellKnownSymbol=function(h){var d=ct.Symbol||(ct.Symbol={});has(d,h)||Bi(d,h,{value:Ui.f(h)})},zi=[].push,createMethod$2=function(h){var d=1==h,g=2==h,x=3==h,b=4==h,S=6==h,w=7==h,E=5==h||S;return function(P,_,k,C){for(var R,M,N=toObject(P),L=A(N),D=functionBindContext(_,k,3),j=toLength(L.length),V=0,$=C||arraySpeciesCreate,U=d?$(P,j):g||w?$(P,0):void 0;j>V;V++)if((E||V in L)&&(M=D(R=L[V],V,N),h))if(d)U[V]=M;else if(M)switch(h){case 3:return!0;case 5:return R;case 6:return V;case 2:zi.call(U,R)}else switch(h){case 4:return!1;case 7:zi.call(U,R)}return S?-1:x||b?b:U}},Gi={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterOut:createMethod$2(7)},Hi=Gi.forEach,qi=sharedKey("hidden"),Xi=wellKnownSymbol("toPrimitive"),Yi=ut.set,Wi=ut.getterFor("Symbol"),Qi=Object.prototype,Zi=g.Symbol,Ki=getBuiltIn("JSON","stringify"),Ji=N.f,ta=D.f,ea=Fi.f,ra=w.f,na=Y("symbols"),ia=Y("op-symbols"),aa=Y("string-to-symbol-registry"),oa=Y("symbol-to-string-registry"),ua=Y("wks"),sa=g.QObject,ca=!sa||!sa.prototype||!sa.prototype.findChild,la=x&&fails((function(){return 7!=Qt(ta({},"a",{get:function(){return ta(this,"a",{value:7}).a}})).a}))?function(h,d,g){var x=Ji(Qi,d);x&&delete Qi[d],ta(h,d,g),x&&h!==Qi&&ta(Qi,d,x)}:ta,wrap=function(h,d){var g=na[h]=Qt(Zi.prototype);return Yi(g,{type:"Symbol",tag:h,description:d}),x||(g.description=d),g},fa=Rt?function(h){return"symbol"==typeof h}:function(h){return Object(h)instanceof Zi},ha=function defineProperty(h,d,g){h===Qi&&ha(ia,d,g),anObject(h);var x=toPrimitive(d,!0);return anObject(g),has(na,x)?(g.enumerable?(has(h,qi)&&h[qi][x]&&(h[qi][x]=!1),g=Qt(g,{enumerable:createPropertyDescriptor(0,!1)})):(has(h,qi)||ta(h,qi,createPropertyDescriptor(1,{})),h[qi][x]=!0),la(h,x,g)):ta(h,x,g)},pa=function defineProperties(h,d){anObject(h);var g=toIndexedObject(d),b=qt(g).concat(ga(g));return Hi(b,(function(d){x&&!ya.call(g,d)||ha(h,d,g[d])})),h},ya=function propertyIsEnumerable(h){var d=toPrimitive(h,!0),g=ra.call(this,d);return!(this===Qi&&has(na,d)&&!has(ia,d))&&(!(g||!has(this,d)||!has(na,d)||has(this,qi)&&this[qi][d])||g)},va=function getOwnPropertyDescriptor(h,d){var g=toIndexedObject(h),x=toPrimitive(d,!0);if(g!==Qi||!has(na,x)||has(ia,x)){var b=Ji(g,x);return!b||!has(na,x)||has(g,qi)&&g[qi][x]||(b.enumerable=!0),b}},da=function getOwnPropertyNames(h){var d=ea(toIndexedObject(h)),g=[];return Hi(d,(function(h){has(na,h)||has(K,h)||g.push(h)})),g},ga=function getOwnPropertySymbols(h){var d=h===Qi,g=ea(d?ia:toIndexedObject(h)),x=[];return Hi(g,(function(h){!has(na,h)||d&&!has(Qi,h)||x.push(na[h])})),x};if(Ct||(st((Zi=function Symbol(){if(this instanceof Zi)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,d=uid(h),setter=function(h){this===Qi&&setter.call(ia,h),has(this,qi)&&has(this[qi],d)&&(this[qi][d]=!1),la(this,d,createPropertyDescriptor(1,h))};return x&&ca&&la(Qi,d,{configurable:!0,set:setter}),wrap(d,h)}).prototype,"toString",(function toString(){return Wi(this).tag})),st(Zi,"withoutSetter",(function(h){return wrap(uid(h),h)})),w.f=ya,D.f=ha,N.f=va,xt.f=Fi.f=da,bt.f=ga,Ui.f=function(h){return wrap(wellKnownSymbol(h),h)},x&&(ta(Zi.prototype,"description",{configurable:!0,get:function description(){return Wi(this).description}}),st(Qi,"propertyIsEnumerable",ya,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!Ct,sham:!Ct},{Symbol:Zi}),Hi(qt(ua),(function(h){defineWellKnownSymbol(h)})),_export({target:"Symbol",stat:!0,forced:!Ct},{for:function(h){var d=String(h);if(has(aa,d))return aa[d];var g=Zi(d);return aa[d]=g,oa[g]=d,g},keyFor:function keyFor(h){if(!fa(h))throw TypeError(h+" is not a symbol");if(has(oa,h))return oa[h]},useSetter:function(){ca=!0},useSimple:function(){ca=!1}}),_export({target:"Object",stat:!0,forced:!Ct,sham:!x},{create:function create(h,d){return void 0===d?Qt(h):pa(Qt(h),d)},defineProperty:ha,defineProperties:pa,getOwnPropertyDescriptor:va}),_export({target:"Object",stat:!0,forced:!Ct},{getOwnPropertyNames:da,getOwnPropertySymbols:ga}),_export({target:"Object",stat:!0,forced:fails((function(){bt.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return bt.f(toObject(h))}}),Ki){var ma=!Ct||fails((function(){var h=Zi();return"[null]"!=Ki([h])||"{}"!=Ki({a:h})||"{}"!=Ki(Object(h))}));_export({target:"JSON",stat:!0,forced:ma},{stringify:function stringify(h,d,g){for(var x,b=[h],S=1;arguments.length>S;)b.push(arguments[S++]);if(x=d,(isObject(d)||void 0!==h)&&!fa(h))return Ot(d)||(d=function(h,d){if("function"==typeof x&&(d=x.call(this,h,d)),!fa(d))return d}),b[1]=d,Ki.apply(null,b)}})}Zi.prototype[Xi]||j(Zi.prototype,Xi,Zi.prototype.valueOf),setToStringTag(Zi,"Symbol"),K[qi]=!0;var xa=D.f,ba=g.Symbol;if(x&&"function"==typeof ba&&(!("description"in ba.prototype)||void 0!==ba().description)){var Sa={},wa=function Symbol(){var h=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),d=this instanceof wa?new ba(h):void 0===h?ba():ba(h);return""===h&&(Sa[d]=!0),d};copyConstructorProperties(wa,ba);var Ea=wa.prototype=ba.prototype;Ea.constructor=wa;var Pa=Ea.toString,Aa="Symbol(test)"==String(ba("test")),_a=/^Symbol\((.*)\)[^)]+$/;xa(Ea,"description",{configurable:!0,get:function description(){var h=isObject(this)?this.valueOf():this,d=Pa.call(h);if(has(Sa,h))return"";var g=Aa?d.slice(7,-1):d.replace(_a,"$1");return""===g?void 0:g}}),_export({global:!0,forced:!0},{Symbol:wa})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag");var arrayMethodIsStrict=function(h,d){var g=[][h];return!!g&&fails((function(){g.call(null,d||function(){throw 1},1)}))},ka=Object.defineProperty,Ta={},thrower=function(h){throw h},arrayMethodUsesToLength=function(h,d){if(has(Ta,h))return Ta[h];d||(d={});var g=[][h],b=!!has(d,"ACCESSORS")&&d.ACCESSORS,S=has(d,0)?d[0]:thrower,w=has(d,1)?d[1]:void 0;return Ta[h]=!!g&&!fails((function(){if(b&&!x)return!0;var h={length:-1};b?ka(h,1,{enumerable:!0,get:thrower}):h[1]=1,g.call(h,S,w)}))},Oa=Gi.forEach,Ca=arrayMethodIsStrict("forEach"),Ra=arrayMethodUsesToLength("forEach"),Ma=Ca&&Ra?[].forEach:function forEach(h){return Oa(this,h,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Ma},{forEach:Ma});var Na=[].reverse,Ia=[1,2];_export({target:"Array",proto:!0,forced:String(Ia)===String(Ia.reverse())},{reverse:function reverse(){return Ot(this)&&(this.length=this.length),Na.call(this)}});var La=arrayMethodHasSpeciesSupport("slice"),Da=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),ja=wellKnownSymbol("species"),Va=[].slice,$a=Math.max;_export({target:"Array",proto:!0,forced:!La||!Da},{slice:function slice(h,d){var g,x,b,S=toIndexedObject(this),w=toLength(S.length),E=toAbsoluteIndex(h,w),P=toAbsoluteIndex(void 0===d?w:d,w);if(Ot(S)&&("function"!=typeof(g=S.constructor)||g!==Array&&!Ot(g.prototype)?isObject(g)&&null===(g=g[ja])&&(g=void 0):g=void 0,g===Array||void 0===g))return Va.call(S,E,P);for(x=new(void 0===g?Array:g)($a(P-E,0)),b=0;E<P;E++,b++)E in S&&createProperty(x,b,S[E]);return x.length=b,x}});var Fa=D.f,Ua=Function.prototype,Ba=Ua.toString,za=/^\s*function ([^ (]*)/;x&&!("name"in Ua)&&Fa(Ua,"name",{configurable:!0,get:function(){try{return Ba.call(this).match(za)[1]}catch(h){return""}}}),setToStringTag(g.JSON,"JSON",!0),setToStringTag(Math,"Math",!0);var Ga=fails((function(){oe(1)}));_export({target:"Object",stat:!0,forced:Ga,sham:!ne},{getPrototypeOf:function getPrototypeOf(h){return oe(toObject(h))}}),_export({target:"Object",stat:!0},{setPrototypeOf:pe});var Ha=RegExp.prototype,qa=Ha.toString,Xa=fails((function(){return"/a/b"!=qa.call({source:"a",flags:"b"})})),Ya="toString"!=qa.name;for(var Wa in(Xa||Ya)&&st(RegExp.prototype,"toString",(function toString(){var h=anObject(this),d=String(h.source),g=h.flags;return"/"+d+"/"+String(void 0===g&&h instanceof RegExp&&!("flags"in Ha)?regexpFlags.call(h):g)}),{unsafe:!0}),sn){var Qa=g[Wa],Za=Qa&&Qa.prototype;if(Za&&Za.forEach!==Ma)try{j(Za,"forEach",Ma)}catch(h){Za.forEach=Ma}}function _typeof(h){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(h)}function asyncGeneratorStep(h,d,g,x,b,S,w){try{var E=h[S](w),P=E.value}catch(h){return void g(h)}E.done?d(P):Promise.resolve(P).then(x,b)}function _asyncToGenerator(h){return function(){var d=this,g=arguments;return new Promise((function(x,b){var S=h.apply(d,g);function _next(h){asyncGeneratorStep(S,x,b,_next,_throw,"next",h)}function _throw(h){asyncGeneratorStep(S,x,b,_next,_throw,"throw",h)}_next(void 0)}))}}var Ka=createCommonjsModule((function(h){var d=function(h){var d,g=Object.prototype,x=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},S=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",E=b.toStringTag||"@@toStringTag";function define(h,d,g){return Object.defineProperty(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}),h[d]}try{define({},"")}catch(h){define=function define(h,d,g){return h[d]=g}}function wrap(h,d,g,x){var b=d&&d.prototype instanceof Generator?d:Generator,S=Object.create(b.prototype),w=new Context(x||[]);return S._invoke=function makeInvokeMethod(h,d,g){var x=P;return function invoke(b,S){if(x===_)throw new Error("Generator is already running");if(x===k){if("throw"===b)throw S;return doneResult()}for(g.method=b,g.arg=S;;){var w=g.delegate;if(w){var E=maybeInvokeDelegate(w,g);if(E){if(E===C)continue;return E}}if("next"===g.method)g.sent=g._sent=g.arg;else if("throw"===g.method){if(x===P)throw x=k,g.arg;g.dispatchException(g.arg)}else"return"===g.method&&g.abrupt("return",g.arg);x=_;var R=tryCatch(h,d,g);if("normal"===R.type){if(x=g.done?k:A,R.arg===C)continue;return{value:R.arg,done:g.done}}"throw"===R.type&&(x=k,g.method="throw",g.arg=R.arg)}}}(h,g,w),S}function tryCatch(h,d,g){try{return{type:"normal",arg:h.call(d,g)}}catch(h){return{type:"throw",arg:h}}}h.wrap=wrap;var P="suspendedStart",A="suspendedYield",_="executing",k="completed",C={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var R={};R[S]=function(){return this};var M=Object.getPrototypeOf,N=M&&M(M(values([])));N&&N!==g&&x.call(N,S)&&(R=N);var L=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(R);function defineIteratorMethods(h){["next","throw","return"].forEach((function(d){define(h,d,(function(h){return this._invoke(d,h)}))}))}function AsyncIterator(h,d){var g;this._invoke=function enqueue(b,S){function callInvokeWithMethodAndArg(){return new d((function(g,w){!function invoke(g,b,S,w){var E=tryCatch(h[g],h,b);if("throw"!==E.type){var P=E.arg,A=P.value;return A&&"object"===_typeof(A)&&x.call(A,"__await")?d.resolve(A.__await).then((function(h){invoke("next",h,S,w)}),(function(h){invoke("throw",h,S,w)})):d.resolve(A).then((function(h){P.value=h,S(P)}),(function(h){return invoke("throw",h,S,w)}))}w(E.arg)}(b,S,g,w)}))}return g=g?g.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(h,g){var x=h.iterator[g.method];if(x===d){if(g.delegate=null,"throw"===g.method){if(h.iterator.return&&(g.method="return",g.arg=d,maybeInvokeDelegate(h,g),"throw"===g.method))return C;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var b=tryCatch(x,h.iterator,g.arg);if("throw"===b.type)return g.method="throw",g.arg=b.arg,g.delegate=null,C;var S=b.arg;return S?S.done?(g[h.resultName]=S.value,g.next=h.nextLoc,"return"!==g.method&&(g.method="next",g.arg=d),g.delegate=null,C):S:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,C)}function pushTryEntry(h){var d={tryLoc:h[0]};1 in h&&(d.catchLoc=h[1]),2 in h&&(d.finallyLoc=h[2],d.afterLoc=h[3]),this.tryEntries.push(d)}function resetTryEntry(h){var d=h.completion||{};d.type="normal",delete d.arg,h.completion=d}function Context(h){this.tryEntries=[{tryLoc:"root"}],h.forEach(pushTryEntry,this),this.reset(!0)}function values(h){if(h){var g=h[S];if(g)return g.call(h);if("function"==typeof h.next)return h;if(!isNaN(h.length)){var b=-1,w=function next(){for(;++b<h.length;)if(x.call(h,b))return next.value=h[b],next.done=!1,next;return next.value=d,next.done=!0,next};return w.next=w}}return{next:doneResult}}function doneResult(){return{value:d,done:!0}}return GeneratorFunction.prototype=L.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,E,"GeneratorFunction"),h.isGeneratorFunction=function(h){var d="function"==typeof h&&h.constructor;return!!d&&(d===GeneratorFunction||"GeneratorFunction"===(d.displayName||d.name))},h.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,GeneratorFunctionPrototype):(h.__proto__=GeneratorFunctionPrototype,define(h,E,"GeneratorFunction")),h.prototype=Object.create(L),h},h.awrap=function(h){return{__await:h}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[w]=function(){return this},h.AsyncIterator=AsyncIterator,h.async=function(d,g,x,b,S){void 0===S&&(S=Promise);var w=new AsyncIterator(wrap(d,g,x,b),S);return h.isGeneratorFunction(g)?w:w.next().then((function(h){return h.done?h.value:w.next()}))},defineIteratorMethods(L),define(L,E,"Generator"),L[S]=function(){return this},L.toString=function(){return"[object Generator]"},h.keys=function(h){var d=[];for(var g in h)d.push(g);return d.reverse(),function next(){for(;d.length;){var g=d.pop();if(g in h)return next.value=g,next.done=!1,next}return next.done=!0,next}},h.values=values,Context.prototype={constructor:Context,reset:function reset(h){if(this.prev=0,this.next=0,this.sent=this._sent=d,this.done=!1,this.delegate=null,this.method="next",this.arg=d,this.tryEntries.forEach(resetTryEntry),!h)for(var g in this)"t"===g.charAt(0)&&x.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=d)},stop:function stop(){this.done=!0;var h=this.tryEntries[0].completion;if("throw"===h.type)throw h.arg;return this.rval},dispatchException:function dispatchException(h){if(this.done)throw h;var g=this;function handle(x,b){return w.type="throw",w.arg=h,g.next=x,b&&(g.method="next",g.arg=d),!!b}for(var b=this.tryEntries.length-1;b>=0;--b){var S=this.tryEntries[b],w=S.completion;if("root"===S.tryLoc)return handle("end");if(S.tryLoc<=this.prev){var E=x.call(S,"catchLoc"),P=x.call(S,"finallyLoc");if(E&&P){if(this.prev<S.catchLoc)return handle(S.catchLoc,!0);if(this.prev<S.finallyLoc)return handle(S.finallyLoc)}else if(E){if(this.prev<S.catchLoc)return handle(S.catchLoc,!0)}else{if(!P)throw new Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return handle(S.finallyLoc)}}}},abrupt:function abrupt(h,d){for(var g=this.tryEntries.length-1;g>=0;--g){var b=this.tryEntries[g];if(b.tryLoc<=this.prev&&x.call(b,"finallyLoc")&&this.prev<b.finallyLoc){var S=b;break}}S&&("break"===h||"continue"===h)&&S.tryLoc<=d&&d<=S.finallyLoc&&(S=null);var w=S?S.completion:{};return w.type=h,w.arg=d,S?(this.method="next",this.next=S.finallyLoc,C):this.complete(w)},complete:function complete(h,d){if("throw"===h.type)throw h.arg;return"break"===h.type||"continue"===h.type?this.next=h.arg:"return"===h.type?(this.rval=this.arg=h.arg,this.method="return",this.next="end"):"normal"===h.type&&d&&(this.next=d),C},finish:function finish(h){for(var d=this.tryEntries.length-1;d>=0;--d){var g=this.tryEntries[d];if(g.finallyLoc===h)return this.complete(g.completion,g.afterLoc),resetTryEntry(g),C}},catch:function _catch(h){for(var d=this.tryEntries.length-1;d>=0;--d){var g=this.tryEntries[d];if(g.tryLoc===h){var x=g.completion;if("throw"===x.type){var b=x.arg;resetTryEntry(g)}return b}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(h,g,x){return this.delegate={iterator:values(h),resultName:g,nextLoc:x},"next"===this.method&&(this.arg=d),C}},h}(h.exports);try{regeneratorRuntime=d}catch(h){Function("r","regeneratorRuntime = r")(d)}}));_export({target:"Array",proto:!0},{fill:function fill(h){for(var d=toObject(this),g=toLength(d.length),x=arguments.length,b=toAbsoluteIndex(x>1?arguments[1]:void 0,g),S=x>2?arguments[2]:void 0,w=void 0===S?g:toAbsoluteIndex(S,g);w>b;)d[b++]=h;return d}}),addToUnscopables("fill");var Ja=[].join,to=A!=Object,eo=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:to||!eo},{join:function join(h){return Ja.call(toIndexedObject(this),void 0===h?",":h)}});var inheritIfRequired=function(h,d,g){var x,b;return pe&&"function"==typeof(x=d.constructor)&&x!==g&&isObject(b=x.prototype)&&b!==g.prototype&&pe(h,b),h},ro="\t\n\v\f\r    \u2028\u2029\ufeff",no="["+ro+"]",io=RegExp("^"+no+no+"*"),ao=RegExp(no+no+"*$"),createMethod$3=function(h){return function(d){var g=String(requireObjectCoercible(d));return 1&h&&(g=g.replace(io,"")),2&h&&(g=g.replace(ao,"")),g}},oo={start:createMethod$3(1),end:createMethod$3(2),trim:createMethod$3(3)},uo=xt.f,so=N.f,co=D.f,lo=oo.trim,fo=g.Number,ho=fo.prototype,po="Number"==classofRaw(Qt(ho)),toNumber=function(h){var d,g,x,b,S,w,E,P,A=toPrimitive(h,!1);if("string"==typeof A&&A.length>2)if(43===(d=(A=lo(A)).charCodeAt(0))||45===d){if(88===(g=A.charCodeAt(2))||120===g)return NaN}else if(48===d){switch(A.charCodeAt(1)){case 66:case 98:x=2,b=49;break;case 79:case 111:x=8,b=55;break;default:return+A}for(w=(S=A.slice(2)).length,E=0;E<w;E++)if((P=S.charCodeAt(E))<48||P>b)return NaN;return parseInt(S,x)}return+A};if(kt("Number",!fo(" 0o1")||!fo("0b1")||fo("+0x1"))){for(var yo,vo=function Number(h){var d=arguments.length<1?0:h,g=this;return g instanceof vo&&(po?fails((function(){ho.valueOf.call(g)})):"Number"!=classofRaw(g))?inheritIfRequired(new fo(toNumber(d)),g,vo):toNumber(d)},go=x?uo(fo):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),mo=0;go.length>mo;mo++)has(fo,yo=go[mo])&&!has(vo,yo)&&co(vo,yo,so(fo,yo));vo.prototype=ho,ho.constructor=vo,st(g,"Number",vo)}var xo=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),bo=createCommonjsModule((function(h){var d=D.f,g=uid("meta"),x=0,b=Object.isExtensible||function(){return!0},setMetadata=function(h){d(h,g,{value:{objectID:"O"+ ++x,weakData:{}}})},S=h.exports={REQUIRED:!1,fastKey:function(h,d){if(!isObject(h))return"symbol"==typeof h?h:("string"==typeof h?"S":"P")+h;if(!has(h,g)){if(!b(h))return"F";if(!d)return"E";setMetadata(h)}return h[g].objectID},getWeakData:function(h,d){if(!has(h,g)){if(!b(h))return!0;if(!d)return!1;setMetadata(h)}return h[g].weakData},onFreeze:function(h){return xo&&S.REQUIRED&&b(h)&&!has(h,g)&&setMetadata(h),h}};K[g]=!0})),So=bo.onFreeze,wo=Object.freeze,Eo=fails((function(){wo(1)}));_export({target:"Object",stat:!0,forced:Eo,sham:!xo},{freeze:function freeze(h){return wo&&isObject(h)?wo(So(h)):h}}),fixRegexpWellKnownSymbolLogic("match",1,(function(h,d,g){return[function match(d){var g=requireObjectCoercible(this),x=null==d?void 0:d[h];return void 0!==x?x.call(d,g):new RegExp(d)[h](String(g))},function(h){var x=g(d,h,this);if(x.done)return x.value;var b=anObject(h),S=String(this);if(!b.global)return regexpExecAbstract(b,S);var w=b.unicode;b.lastIndex=0;for(var E,P=[],A=0;null!==(E=regexpExecAbstract(b,S));){var _=String(E[0]);P[A]=_,""===_&&(b.lastIndex=advanceStringIndex(S,toLength(b.lastIndex),w)),A++}return 0===A?null:P}]}));var Po=wellKnownSymbol("match"),isRegexp=function(h){var d;return isObject(h)&&(void 0!==(d=h[Po])?!!d:"RegExp"==classofRaw(h))},Ao=[].push,_o=Math.min,ko=!fails((function(){return!RegExp(4294967295,"y")}));fixRegexpWellKnownSymbolLogic("split",2,(function(h,d,g){var x;return x="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(h,g){var x=String(requireObjectCoercible(this)),b=void 0===g?4294967295:g>>>0;if(0===b)return[];if(void 0===h)return[x];if(!isRegexp(h))return d.call(x,h,b);for(var S,w,E,P=[],A=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),_=0,k=new RegExp(h.source,A+"g");(S=zr.call(k,x))&&!((w=k.lastIndex)>_&&(P.push(x.slice(_,S.index)),S.length>1&&S.index<x.length&&Ao.apply(P,S.slice(1)),E=S[0].length,_=w,P.length>=b));)k.lastIndex===S.index&&k.lastIndex++;return _===x.length?!E&&k.test("")||P.push(""):P.push(x.slice(_)),P.length>b?P.slice(0,b):P}:"0".split(void 0,0).length?function(h,g){return void 0===h&&0===g?[]:d.call(this,h,g)}:d,[function split(d,g){var b=requireObjectCoercible(this),S=null==d?void 0:d[h];return void 0!==S?S.call(d,b,g):x.call(String(b),d,g)},function(h,b){var S=g(x,h,this,b,x!==d);if(S.done)return S.value;var w=anObject(h),E=String(this),P=speciesConstructor(w,RegExp),A=w.unicode,_=(w.ignoreCase?"i":"")+(w.multiline?"m":"")+(w.unicode?"u":"")+(ko?"y":"g"),k=new P(ko?w:"^(?:"+w.source+")",_),C=void 0===b?4294967295:b>>>0;if(0===C)return[];if(0===E.length)return null===regexpExecAbstract(k,E)?[E]:[];for(var R=0,M=0,N=[];M<E.length;){k.lastIndex=ko?M:0;var L,D=regexpExecAbstract(k,ko?E:E.slice(M));if(null===D||(L=_o(toLength(k.lastIndex+(ko?0:M)),E.length))===R)M=advanceStringIndex(E,M,A);else{if(N.push(E.slice(R,M)),N.length===C)return N;for(var j=1;j<=D.length-1;j++)if(N.push(D[j]),N.length===C)return N;M=R=L}}return N.push(E.slice(R)),N}]}),!ko);var To,notARegexp=function(h){if(isRegexp(h))throw TypeError("The method doesn't accept regular expressions");return h},Oo=wellKnownSymbol("match"),correctIsRegexpLogic=function(h){var d=/./;try{"/./"[h](d)}catch(g){try{return d[Oo]=!1,"/./"[h](d)}catch(h){}}return!1},Co=N.f,Ro="".startsWith,Mo=Math.min,No=correctIsRegexpLogic("startsWith"),Io=!(No||(To=Co(String.prototype,"startsWith"),!To||To.writable));_export({target:"String",proto:!0,forced:!Io&&!No},{startsWith:function startsWith(h){var d=String(requireObjectCoercible(this));notARegexp(h);var g=toLength(Mo(arguments.length>1?arguments[1]:void 0,d.length)),x=String(h);return Ro?Ro.call(d,x,g):d.slice(g,g+x.length)===x}}),_export({global:!0},{globalThis:g});var Lo=function check(h){return h&&h.Math==Math&&h},Do=Lo("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis))&&globalThis)||Lo("object"==("undefined"==typeof window?"undefined":_typeof(window))&&window)||Lo("object"==("undefined"==typeof self?"undefined":_typeof(self))&&self)||Lo("object"==_typeof(d)&&d)||function(){return this}()||Function("return this")(),jo=N.f,Vo=fails((function(){jo(1)}));_export({target:"Object",stat:!0,forced:!x||Vo,sham:!x},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,d){return jo(toIndexedObject(h),d)}});var $o=function fails(h){try{return!!h()}catch(h){return!0}},Fo=!$o((function(){return 7!=Object.defineProperty({},1,{get:function get(){return 7}})[1]})),Uo={}.propertyIsEnumerable,Bo=Object.getOwnPropertyDescriptor,zo={f:Bo&&!Uo.call({1:2},1)?function propertyIsEnumerable(h){var d=Bo(this,h);return!!d&&d.enumerable}:Uo},Go=function createPropertyDescriptor(h,d){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:d}},Ho={}.toString,qo=function classofRaw(h){return Ho.call(h).slice(8,-1)},Xo="".split,Yo=$o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==qo(h)?Xo.call(h,""):Object(h)}:Object,Wo=function requireObjectCoercible(h){if(null==h)throw TypeError("Can't call method on "+h);return h},Qo=function toIndexedObject(h){return Yo(Wo(h))},Zo=function isObject(h){return"object"===_typeof(h)?null!==h:"function"==typeof h},Ko=function toPrimitive(h,d){if(!Zo(h))return h;var g,x;if(d&&"function"==typeof(g=h.toString)&&!Zo(x=g.call(h)))return x;if("function"==typeof(g=h.valueOf)&&!Zo(x=g.call(h)))return x;if(!d&&"function"==typeof(g=h.toString)&&!Zo(x=g.call(h)))return x;throw TypeError("Can't convert object to primitive value")},Jo={}.hasOwnProperty,tu=function has(h,d){return Jo.call(h,d)},eu=Do.document,ru=Zo(eu)&&Zo(eu.createElement),nu=function documentCreateElement(h){return ru?eu.createElement(h):{}},iu=!Fo&&!$o((function(){return 7!=Object.defineProperty(nu("div"),"a",{get:function get(){return 7}}).a})),au=Object.getOwnPropertyDescriptor,ou={f:Fo?au:function getOwnPropertyDescriptor(h,d){if(h=Qo(h),d=Ko(d,!0),iu)try{return au(h,d)}catch(h){}if(tu(h,d))return Go(!zo.f.call(h,d),h[d])}},uu=/#|\.prototype\./,su=function isForced(h,d){var g=lu[cu(h)];return g==hu||g!=fu&&("function"==typeof d?$o(d):!!d)},cu=su.normalize=function(h){return String(h).replace(uu,".").toLowerCase()},lu=su.data={},fu=su.NATIVE="N",hu=su.POLYFILL="P",pu=su,yu={},vu=function aFunction(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h},du=function functionBindContext(h,d,g){if(vu(h),void 0===d)return h;switch(g){case 0:return function(){return h.call(d)};case 1:return function(g){return h.call(d,g)};case 2:return function(g,x){return h.call(d,g,x)};case 3:return function(g,x,b){return h.call(d,g,x,b)}}return function(){return h.apply(d,arguments)}},gu=function anObject(h){if(!Zo(h))throw TypeError(String(h)+" is not an object");return h},mu=Object.defineProperty,xu={f:Fo?mu:function defineProperty(h,d,g){if(gu(h),d=Ko(d,!0),gu(g),iu)try{return mu(h,d,g)}catch(h){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[d]=g.value),h}},bu=Fo?function(h,d,g){return xu.f(h,d,Go(1,g))}:function(h,d,g){return h[d]=g,h},Su=ou.f,wu=function wrapConstructor(h){var d=function Wrapper(d,g,x){if(this instanceof h){switch(arguments.length){case 0:return new h;case 1:return new h(d);case 2:return new h(d,g)}return new h(d,g,x)}return h.apply(this,arguments)};return d.prototype=h.prototype,d},Eu=function _export(h,d){var g,x,b,S,w,E,P,A,_=h.target,k=h.global,C=h.stat,R=h.proto,M=k?Do:C?Do[_]:(Do[_]||{}).prototype,N=k?yu:yu[_]||(yu[_]={}),L=N.prototype;for(b in d)g=!pu(k?b:_+(C?".":"#")+b,h.forced)&&M&&tu(M,b),w=N[b],g&&(E=h.noTargetGet?(A=Su(M,b))&&A.value:M[b]),S=g&&E?E:d[b],g&&_typeof(w)===_typeof(S)||(P=h.bind&&g?du(S,Do):h.wrap&&g?wu(S):R&&"function"==typeof S?du(Function.call,S):S,(h.sham||S&&S.sham||w&&w.sham)&&bu(P,"sham",!0),N[b]=P,R&&(tu(yu,x=_+"Prototype")||bu(yu,x,{}),yu[x][b]=S,h.real&&L&&!L[b]&&bu(L,b,S)))},Pu=Math.ceil,Au=Math.floor,_u=function toInteger(h){return isNaN(h=+h)?0:(h>0?Au:Pu)(h)},ku=Math.min,Tu=function toLength(h){return h>0?ku(_u(h),9007199254740991):0},Ou=Do["__core-js_shared__"]||function setGlobal(h,d){try{bu(Do,h,d)}catch(g){Do[h]=d}return d}("__core-js_shared__",{}),Cu=createCommonjsModule((function(h){(h.exports=function(h,d){return Ou[h]||(Ou[h]=void 0!==d?d:{})})("versions",[]).push({version:"3.8.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Ru=0,Mu=Math.random(),Nu=function uid(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Ru+Mu).toString(36)},Iu=!!Object.getOwnPropertySymbols&&!$o((function(){return!String(Symbol())})),Lu=Iu&&!Symbol.sham&&"symbol"==_typeof(Symbol.iterator),Du=Cu("wks"),ju=Do.Symbol,Vu=Lu?ju:ju&&ju.withoutSetter||Nu,$u=function wellKnownSymbol(h){return tu(Du,h)||(Iu&&tu(ju,h)?Du[h]=ju[h]:Du[h]=Vu("Symbol."+h)),Du[h]},Fu=$u("match"),Uu=function notARegexp(h){if(function isRegexp(h){var d;return Zo(h)&&(void 0!==(d=h[Fu])?!!d:"RegExp"==qo(h))}(h))throw TypeError("The method doesn't accept regular expressions");return h},Bu=$u("match"),zu=function correctIsRegexpLogic(h){var d=/./;try{"/./"[h](d)}catch(g){try{return d[Bu]=!1,"/./"[h](d)}catch(h){}}return!1},Gu="".startsWith,Hu=Math.min,qu=zu("startsWith");Eu({target:"String",proto:!0,forced:!qu},{startsWith:function startsWith(h){var d=String(Wo(this));Uu(h);var g=Tu(Hu(arguments.length>1?arguments[1]:void 0,d.length)),x=String(h);return Gu?Gu.call(d,x,g):d.slice(g,g+x.length)===x}});var Xu=function entryVirtual(h){return yu[h+"Prototype"]},Yu=Xu("String").startsWith,Wu=String.prototype,Qu=function startsWith_1(h){var d=h.startsWith;return"string"==typeof h||h===Wu||h instanceof String&&d===Wu.startsWith?Yu:d},Zu=oo.trim,Ku=g.parseFloat,Ju=1/Ku(ro+"-0")!=-1/0?function parseFloat(h){var d=Zu(String(h)),g=Ku(d);return 0===g&&"-"==d.charAt(0)?-0:g}:Ku;_export({global:!0,forced:parseFloat!=Ju},{parseFloat:Ju});var ts=oo.trim;_export({target:"String",proto:!0,forced:function(h){return fails((function(){return!!ro[h]()||"…"!="…"[h]()||ro[h].name!==h}))}("trim")},{trim:function trim(){return ts(this)}});var es=D.f,rs=xt.f,ns=ut.set,is=wellKnownSymbol("match"),as=g.RegExp,os=as.prototype,us=/a/g,ss=/a/g,cs=new as(us)!==us,ls=Dr.UNSUPPORTED_Y;if(x&&kt("RegExp",!cs||ls||fails((function(){return ss[is]=!1,as(us)!=us||as(ss)==ss||"/a/i"!=as(us,"i")})))){for(var fs=function RegExp(h,d){var g,x=this instanceof fs,b=isRegexp(h),S=void 0===d;if(!x&&b&&h.constructor===fs&&S)return h;cs?b&&!S&&(h=h.source):h instanceof fs&&(S&&(d=regexpFlags.call(h)),h=h.source),ls&&(g=!!d&&d.indexOf("y")>-1)&&(d=d.replace(/y/g,""));var w=inheritIfRequired(cs?new as(h,d):as(h,d),x?this:os,fs);return ls&&g&&ns(w,{sticky:g}),w},proxy=function(h){h in fs||es(fs,h,{configurable:!0,get:function(){return as[h]},set:function(d){as[h]=d}})},hs=rs(as),ps=0;hs.length>ps;)proxy(hs[ps++]);os.constructor=fs,fs.prototype=os,st(g,"RegExp",fs)}setSpecies("RegExp");var ys="\t\n\v\f\r    \u2028\u2029\ufeff",vs="["+ys+"]",ds=RegExp("^"+vs+vs+"*"),gs=RegExp(vs+vs+"*$"),ms=function createMethod(h){return function(d){var g=String(Wo(d));return 1&h&&(g=g.replace(ds,"")),2&h&&(g=g.replace(gs,"")),g}},xs={start:ms(1),end:ms(2),trim:ms(3)},bs=xs.trim,Ss=Do.parseFloat,ws=1/Ss(ys+"-0")!=-1/0?function parseFloat(h){var d=bs(String(h)),g=Ss(d);return 0===g&&"-"==d.charAt(0)?-0:g}:Ss;Eu({global:!0,forced:parseFloat!=ws},{parseFloat:ws});var Es=yu.parseFloat,Ps=Gi.map,As=arrayMethodHasSpeciesSupport("map"),_s=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!As||!_s},{map:function map(h){return Ps(this,h,arguments.length>1?arguments[1]:void 0)}});var ks,Ts,Os=function toObject(h){return Object(Wo(h))},Cs=Array.isArray||function isArray(h){return"Array"==qo(h)},Rs=$u("species"),Ms=function arraySpeciesCreate(h,d){var g;return Cs(h)&&("function"!=typeof(g=h.constructor)||g!==Array&&!Cs(g.prototype)?Zo(g)&&null===(g=g[Rs])&&(g=void 0):g=void 0),new(void 0===g?Array:g)(0===d?0:d)},Ns=[].push,Is=function createMethod(h){var d=1==h,g=2==h,x=3==h,b=4==h,S=6==h,w=7==h,E=5==h||S;return function(P,A,_,k){for(var C,R,M=Os(P),N=Yo(M),L=du(A,_,3),D=Tu(N.length),j=0,V=k||Ms,$=d?V(P,D):g||w?V(P,0):void 0;D>j;j++)if((E||j in N)&&(R=L(C=N[j],j,M),h))if(d)$[j]=R;else if(R)switch(h){case 3:return!0;case 5:return C;case 6:return j;case 2:Ns.call($,C)}else switch(h){case 4:return!1;case 7:Ns.call($,C)}return S?-1:x||b?b:$}},Ls={forEach:Is(0),map:Is(1),filter:Is(2),some:Is(3),every:Is(4),find:Is(5),findIndex:Is(6),filterOut:Is(7)},Ds=function aFunction(h){return"function"==typeof h?h:void 0},js=function getBuiltIn(h,d){return arguments.length<2?Ds(yu[h])||Ds(Do[h]):yu[h]&&yu[h][d]||Do[h]&&Do[h][d]},Vs=js("navigator","userAgent")||"",$s=Do.process,Fs=$s&&$s.versions,Us=Fs&&Fs.v8;Us?Ts=(ks=Us.split("."))[0]+ks[1]:Vs&&(!(ks=Vs.match(/Edge\/(\d+)/))||ks[1]>=74)&&(ks=Vs.match(/Chrome\/(\d+)/))&&(Ts=ks[1]);var Bs=Ts&&+Ts,zs=$u("species"),Gs=function arrayMethodHasSpeciesSupport(h){return Bs>=51||!$o((function(){var d=[];return(d.constructor={})[zs]=function(){return{foo:1}},1!==d[h](Boolean).foo}))},Hs=Object.defineProperty,qs={},Xs=function thrower(h){throw h},Ys=function arrayMethodUsesToLength(h,d){if(tu(qs,h))return qs[h];d||(d={});var g=[][h],x=!!tu(d,"ACCESSORS")&&d.ACCESSORS,b=tu(d,0)?d[0]:Xs,S=tu(d,1)?d[1]:void 0;return qs[h]=!!g&&!$o((function(){if(x&&!Fo)return!0;var h={length:-1};x?Hs(h,1,{enumerable:!0,get:Xs}):h[1]=1,g.call(h,b,S)}))},Ws=Ls.map,Qs=Gs("map"),Zs=Ys("map");Eu({target:"Array",proto:!0,forced:!Qs||!Zs},{map:function map(h){return Ws(this,h,arguments.length>1?arguments[1]:void 0)}});var Ks=Xu("Array").map,Js=Array.prototype,tc=function map_1(h){var d=h.map;return h===Js||h instanceof Array&&d===Js.map?Ks:d};Eu({target:"Array",stat:!0},{isArray:Cs});var ec=yu.Array.isArray,rc=ec;var nc=function _arrayWithHoles(h){if(rc(h))return h},ic={},ac=bo.getWeakData,oc=ut.set,uc=ut.getterFor,sc=Gi.find,cc=Gi.findIndex,lc=0,uncaughtFrozenStore=function(h){return h.frozen||(h.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(h,d){return sc(h.entries,(function(h){return h[0]===d}))};UncaughtFrozenStore.prototype={get:function(h){var d=findUncaughtFrozen(this,h);if(d)return d[1]},has:function(h){return!!findUncaughtFrozen(this,h)},set:function(h,d){var g=findUncaughtFrozen(this,h);g?g[1]=d:this.entries.push([h,d])},delete:function(h){var d=cc(this.entries,(function(d){return d[0]===h}));return~d&&this.entries.splice(d,1),!!~d}};var fc={getConstructor:function(h,d,g,x){var b=h((function(h,S){anInstance(h,b,d),oc(h,{type:d,id:lc++,frozen:void 0}),null!=S&&iterate(S,h[x],{that:h,AS_ENTRIES:g})})),S=uc(d),define=function(h,d,g){var x=S(h),b=ac(anObject(d),!0);return!0===b?uncaughtFrozenStore(x).set(d,g):b[x.id]=g,h};return redefineAll(b.prototype,{delete:function(h){var d=S(this);if(!isObject(h))return!1;var g=ac(h);return!0===g?uncaughtFrozenStore(d).delete(h):g&&has(g,d.id)&&delete g[d.id]},has:function has$1(h){var d=S(this);if(!isObject(h))return!1;var g=ac(h);return!0===g?uncaughtFrozenStore(d).has(h):g&&has(g,d.id)}}),redefineAll(b.prototype,g?{get:function get(h){var d=S(this);if(isObject(h)){var g=ac(h);return!0===g?uncaughtFrozenStore(d).get(h):g?g[d.id]:void 0}},set:function set(h,d){return define(this,h,d)}}:{add:function add(h){return define(this,h,!0)}}),b}};createCommonjsModule((function(h){var d,x=ut.enforce,b=!g.ActiveXObject&&"ActiveXObject"in g,S=Object.isExtensible,wrapper=function(h){return function WeakMap(){return h(this,arguments.length?arguments[0]:void 0)}},w=h.exports=function(h,d,x){var b=-1!==h.indexOf("Map"),S=-1!==h.indexOf("Weak"),w=b?"set":"add",E=g[h],P=E&&E.prototype,A=E,_={},fixMethod=function(h){var d=P[h];st(P,h,"add"==h?function add(h){return d.call(this,0===h?0:h),this}:"delete"==h?function(h){return!(S&&!isObject(h))&&d.call(this,0===h?0:h)}:"get"==h?function get(h){return S&&!isObject(h)?void 0:d.call(this,0===h?0:h)}:"has"==h?function has(h){return!(S&&!isObject(h))&&d.call(this,0===h?0:h)}:function set(h,g){return d.call(this,0===h?0:h,g),this})};if(kt(h,"function"!=typeof E||!(S||P.forEach&&!fails((function(){(new E).entries().next()})))))A=x.getConstructor(d,h,b,w),bo.REQUIRED=!0;else if(kt(h,!0)){var k=new A,C=k[w](S?{}:-0,1)!=k,R=fails((function(){k.has(1)})),M=checkCorrectnessOfIteration((function(h){new E(h)})),N=!S&&fails((function(){for(var h=new E,d=5;d--;)h[w](d,d);return!h.has(-0)}));M||((A=d((function(d,g){anInstance(d,A,h);var x=inheritIfRequired(new E,d,A);return null!=g&&iterate(g,x[w],{that:x,AS_ENTRIES:b}),x}))).prototype=P,P.constructor=A),(R||N)&&(fixMethod("delete"),fixMethod("has"),b&&fixMethod("get")),(N||C)&&fixMethod(w),S&&P.clear&&delete P.clear}return _[h]=A,_export({global:!0,forced:A!=E},_),setToStringTag(A,h),S||x.setStrong(A,h,b),A}("WeakMap",wrapper,fc);if(X&&b){d=fc.getConstructor(wrapper,"WeakMap",!0),bo.REQUIRED=!0;var E=w.prototype,P=E.delete,A=E.has,_=E.get,k=E.set;redefineAll(E,{delete:function(h){if(isObject(h)&&!S(h)){var g=x(this);return g.frozen||(g.frozen=new d),P.call(this,h)||g.frozen.delete(h)}return P.call(this,h)},has:function has(h){if(isObject(h)&&!S(h)){var g=x(this);return g.frozen||(g.frozen=new d),A.call(this,h)||g.frozen.has(h)}return A.call(this,h)},get:function get(h){if(isObject(h)&&!S(h)){var g=x(this);return g.frozen||(g.frozen=new d),A.call(this,h)?_.call(this,h):g.frozen.get(h)}return _.call(this,h)},set:function set(h,g){if(isObject(h)&&!S(h)){var b=x(this);b.frozen||(b.frozen=new d),A.call(this,h)?k.call(this,h,g):b.frozen.set(h,g)}else k.call(this,h,g);return this}})}}));var hc=Function.toString;"function"!=typeof Ou.inspectSource&&(Ou.inspectSource=function(h){return hc.call(h)});var pc,yc,vc,dc=Ou.inspectSource,gc=Do.WeakMap,mc="function"==typeof gc&&/native code/.test(dc(gc)),xc=Cu("keys"),bc=function sharedKey(h){return xc[h]||(xc[h]=Nu(h))},Sc={},wc=Do.WeakMap;if(mc){var Ec=Ou.state||(Ou.state=new wc),Pc=Ec.get,Ac=Ec.has,_c=Ec.set;pc=function set(h,d){return d.facade=h,_c.call(Ec,h,d),d},yc=function get(h){return Pc.call(Ec,h)||{}},vc=function has(h){return Ac.call(Ec,h)}}else{var kc=bc("state");Sc[kc]=!0,pc=function set(h,d){return d.facade=h,bu(h,kc,d),d},yc=function get(h){return tu(h,kc)?h[kc]:{}},vc=function has(h){return tu(h,kc)}}var Tc,Oc,Cc,Rc={set:pc,get:yc,has:vc,enforce:function enforce(h){return vc(h)?yc(h):pc(h,{})},getterFor:function getterFor(h){return function(d){var g;if(!Zo(d)||(g=yc(d)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return g}}},Mc=!$o((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Nc=bc("IE_PROTO"),Ic=Object.prototype,Lc=Mc?Object.getPrototypeOf:function(h){return h=Os(h),tu(h,Nc)?h[Nc]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?Ic:null},Dc=$u("iterator"),jc=!1;[].keys&&("next"in(Cc=[].keys())?(Oc=Lc(Lc(Cc)))!==Object.prototype&&(Tc=Oc):jc=!0);var Vc=null==Tc||$o((function(){var h={};return Tc[Dc].call(h)!==h}));Vc&&(Tc={}),Vc&&!tu(Tc,Dc)&&bu(Tc,Dc,(function returnThis(){return this}));var $c={IteratorPrototype:Tc,BUGGY_SAFARI_ITERATORS:jc},Fc=fails((function(){qt(1)}));_export({target:"Object",stat:!0,forced:Fc},{keys:function keys(h){return qt(toObject(h))}});var Uc=vt.indexOf,Bc=[].indexOf,zc=!!Bc&&1/[1].indexOf(1,-0)<0,Gc=arrayMethodIsStrict("indexOf"),Hc=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:zc||!Gc||!Hc},{indexOf:function indexOf(h){return zc?Bc.apply(this,arguments)||0:Uc(this,h,arguments.length>1?arguments[1]:void 0)}});var qc,Xc=Math.max,Yc=Math.min,Wc=function toAbsoluteIndex(h,d){var g=_u(h);return g<0?Xc(g+d,0):Yc(g,d)},Qc=function createMethod(h){return function(d,g,x){var b,S=Qo(d),w=Tu(S.length),E=Wc(x,w);if(h&&g!=g){for(;w>E;)if((b=S[E++])!=b)return!0}else for(;w>E;E++)if((h||E in S)&&S[E]===g)return h||E||0;return!h&&-1}},Zc={includes:Qc(!0),indexOf:Qc(!1)},Kc=Zc.indexOf,Jc=function objectKeysInternal(h,d){var g,x=Qo(h),b=0,S=[];for(g in x)!tu(Sc,g)&&tu(x,g)&&S.push(g);for(;d.length>b;)tu(x,g=d[b++])&&(~Kc(S,g)||S.push(g));return S},tl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],el=Object.keys||function keys(h){return Jc(h,tl)},rl=Fo?Object.defineProperties:function defineProperties(h,d){gu(h);for(var g,x=el(d),b=x.length,S=0;b>S;)xu.f(h,g=x[S++],d[g]);return h},nl=js("document","documentElement"),il=bc("IE_PROTO"),al=function EmptyConstructor(){},ol=function scriptTag(h){return"<script>"+h+"<\/script>"},ul=function NullProtoObject(){try{qc=document.domain&&new ActiveXObject("htmlfile")}catch(h){}ul=qc?function NullProtoObjectViaActiveX(h){h.write(ol("")),h.close();var d=h.parentWindow.Object;return h=null,d}(qc):function NullProtoObjectViaIFrame(){var h,d=nu("iframe");return d.style.display="none",nl.appendChild(d),d.src=String("javascript:"),(h=d.contentWindow.document).open(),h.write(ol("document.F=Object")),h.close(),h.F}();for(var h=tl.length;h--;)delete ul.prototype[tl[h]];return ul()};Sc[il]=!0;var sl=Object.create||function create(h,d){var g;return null!==h?(al.prototype=gu(h),g=new al,al.prototype=null,g[il]=h):g=ul(),void 0===d?g:rl(g,d)},cl={};cl[$u("toStringTag")]="z";var ll="[object z]"===String(cl),fl=$u("toStringTag"),hl="Arguments"==qo(function(){return arguments}()),pl=ll?qo:function(h){var d,g,x;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(g=function tryGet(h,d){try{return h[d]}catch(h){}}(d=Object(h),fl))?g:hl?qo(d):"Object"==(x=qo(d))&&"function"==typeof d.callee?"Arguments":x},yl=ll?{}.toString:function toString(){return"[object "+pl(this)+"]"},vl=xu.f,dl=$u("toStringTag"),gl=function setToStringTag(h,d,g,x){if(h){var b=g?h:h.prototype;tu(b,dl)||vl(b,dl,{configurable:!0,value:d}),x&&!ll&&bu(b,"toString",yl)}},ml=$c.IteratorPrototype,xl=function returnThis(){return this},bl=Object.setPrototypeOf||("__proto__"in{}?function(){var h,d=!1,g={};try{(h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(g,[]),d=g instanceof Array}catch(h){}return function setPrototypeOf(g,x){return gu(g),function aPossiblePrototype(h){if(!Zo(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype")}(x),d?h.call(g,x):g.__proto__=x,g}}():void 0),Sl=function redefine(h,d,g,x){x&&x.enumerable?h[d]=g:bu(h,d,g)},wl=$c.IteratorPrototype,El=$c.BUGGY_SAFARI_ITERATORS,Pl=$u("iterator"),Al=function returnThis(){return this},_l=function defineIterator(h,d,g,x,b,S,w){!function createIteratorConstructor(h,d,g){var x=d+" Iterator";h.prototype=sl(ml,{next:Go(1,g)}),gl(h,x,!1,!0),ic[x]=xl}(g,d,x);var E,P,A,_=function getIterationMethod(h){if(h===b&&N)return N;if(!El&&h in R)return R[h];switch(h){case"keys":return function keys(){return new g(this,h)};case"values":return function values(){return new g(this,h)};case"entries":return function entries(){return new g(this,h)}}return function(){return new g(this)}},k=d+" Iterator",C=!1,R=h.prototype,M=R[Pl]||R["@@iterator"]||b&&R[b],N=!El&&M||_(b),L="Array"==d&&R.entries||M;if(L&&(E=Lc(L.call(new h)),wl!==Object.prototype&&E.next&&(gl(E,k,!0,!0),ic[k]=Al)),"values"==b&&M&&"values"!==M.name&&(C=!0,N=function values(){return M.call(this)}),w&&R[Pl]!==N&&bu(R,Pl,N),ic[d]=N,b)if(P={values:_("values"),keys:S?N:_("keys"),entries:_("entries")},w)for(A in P)(El||C||!(A in R))&&Sl(R,A,P[A]);else Eu({target:d,proto:!0,forced:El||C},P);return P},kl=Rc.set,Tl=Rc.getterFor("Array Iterator");_l(Array,"Array",(function(h,d){kl(this,{type:"Array Iterator",target:Qo(h),index:0,kind:d})}),(function(){var h=Tl(this),d=h.target,g=h.kind,x=h.index++;return!d||x>=d.length?(h.target=void 0,{value:void 0,done:!0}):"keys"==g?{value:x,done:!1}:"values"==g?{value:d[x],done:!1}:{value:[x,d[x]],done:!1}}),"values"),ic.Arguments=ic.Array;var Ol=$u("toStringTag");for(var Cl in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Rl=Do[Cl],Ml=Rl&&Rl.prototype;Ml&&pl(Ml)!==Ol&&bu(Ml,Ol,Cl),ic[Cl]=ic.Array}var Nl=function createMethod(h){return function(d,g){var x,b,S=String(Wo(d)),w=_u(g),E=S.length;return w<0||w>=E?h?"":void 0:(x=S.charCodeAt(w))<55296||x>56319||w+1===E||(b=S.charCodeAt(w+1))<56320||b>57343?h?S.charAt(w):x:h?S.slice(w,w+2):b-56320+(x-55296<<10)+65536}},Il={codeAt:Nl(!1),charAt:Nl(!0)}.charAt,Ll=Rc.set,Dl=Rc.getterFor("String Iterator");_l(String,"String",(function(h){Ll(this,{type:"String Iterator",string:String(h),index:0})}),(function next(){var h,d=Dl(this),g=d.string,x=d.index;return x>=g.length?{value:void 0,done:!0}:(h=Il(g,x),d.index+=h.length,{value:h,done:!1})}));var jl=$u("iterator"),Vl=function getIteratorMethod(h){if(null!=h)return h[jl]||h["@@iterator"]||ic[pl(h)]},$l=function getIterator(h){var d=Vl(h);if("function"!=typeof d)throw TypeError(String(h)+" is not iterable");return gu(d.call(h))},Fl=$u("iterator"),Ul=function isIterable(h){var d=Object(h);return void 0!==d[Fl]||"@@iterator"in d||ic.hasOwnProperty(pl(d))},Bl=function createProperty(h,d,g){var x=Ko(d);x in h?xu.f(h,x,Go(0,g)):h[x]=g},zl=$u("isConcatSpreadable"),Gl=Bs>=51||!$o((function(){var h=[];return h[zl]=!1,h.concat()[0]!==h})),Hl=Gs("concat"),ql=function isConcatSpreadable(h){if(!Zo(h))return!1;var d=h[zl];return void 0!==d?!!d:Cs(h)};Eu({target:"Array",proto:!0,forced:!Gl||!Hl},{concat:function concat(h){var d,g,x,b,S,w=Os(this),E=Ms(w,0),P=0;for(d=-1,x=arguments.length;d<x;d++)if(ql(S=-1===d?w:arguments[d])){if(P+(b=Tu(S.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(g=0;g<b;g++,P++)g in S&&Bl(E,P,S[g])}else{if(P>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Bl(E,P++,S)}return E.length=P,E}});var Xl=Fi.f,Yl=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:Yl},{getOwnPropertyNames:Xl});var Wl=tl.concat("length","prototype"),Ql={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return Jc(h,Wl)}},Zl=Ql.f,Kl={}.toString,Jl="object"==("undefined"==typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tf={f:function getOwnPropertyNames(h){return Jl&&"[object Window]"==Kl.call(h)?function getWindowNames(h){try{return Zl(h)}catch(h){return Jl.slice()}}(h):Zl(Qo(h))}},ef={f:Object.getOwnPropertySymbols},rf={f:$u},nf=xu.f,af=function defineWellKnownSymbol(h){var d=yu.Symbol||(yu.Symbol={});tu(d,h)||nf(d,h,{value:rf.f(h)})},of=Ls.forEach,uf=bc("hidden"),sf=$u("toPrimitive"),cf=Rc.set,lf=Rc.getterFor("Symbol"),ff=Object.prototype,hf=Do.Symbol,pf=js("JSON","stringify"),yf=ou.f,vf=xu.f,df=tf.f,gf=zo.f,mf=Cu("symbols"),xf=Cu("op-symbols"),bf=Cu("string-to-symbol-registry"),Sf=Cu("symbol-to-string-registry"),wf=Cu("wks"),Ef=Do.QObject,Pf=!Ef||!Ef.prototype||!Ef.prototype.findChild,Af=Fo&&$o((function(){return 7!=sl(vf({},"a",{get:function get(){return vf(this,"a",{value:7}).a}})).a}))?function(h,d,g){var x=yf(ff,d);x&&delete ff[d],vf(h,d,g),x&&h!==ff&&vf(ff,d,x)}:vf,_f=function wrap(h,d){var g=mf[h]=sl(hf.prototype);return cf(g,{type:"Symbol",tag:h,description:d}),Fo||(g.description=d),g},kf=Lu?function(h){return"symbol"==_typeof(h)}:function(h){return Object(h)instanceof hf},Tf=function defineProperty(h,d,g){h===ff&&Tf(xf,d,g),gu(h);var x=Ko(d,!0);return gu(g),tu(mf,x)?(g.enumerable?(tu(h,uf)&&h[uf][x]&&(h[uf][x]=!1),g=sl(g,{enumerable:Go(0,!1)})):(tu(h,uf)||vf(h,uf,Go(1,{})),h[uf][x]=!0),Af(h,x,g)):vf(h,x,g)},Of=function defineProperties(h,d){gu(h);var g=Qo(d),x=el(g).concat(Nf(g));return of(x,(function(d){Fo&&!Cf.call(g,d)||Tf(h,d,g[d])})),h},Cf=function propertyIsEnumerable(h){var d=Ko(h,!0),g=gf.call(this,d);return!(this===ff&&tu(mf,d)&&!tu(xf,d))&&(!(g||!tu(this,d)||!tu(mf,d)||tu(this,uf)&&this[uf][d])||g)},Rf=function getOwnPropertyDescriptor(h,d){var g=Qo(h),x=Ko(d,!0);if(g!==ff||!tu(mf,x)||tu(xf,x)){var b=yf(g,x);return!b||!tu(mf,x)||tu(g,uf)&&g[uf][x]||(b.enumerable=!0),b}},Mf=function getOwnPropertyNames(h){var d=df(Qo(h)),g=[];return of(d,(function(h){tu(mf,h)||tu(Sc,h)||g.push(h)})),g},Nf=function getOwnPropertySymbols(h){var d=h===ff,g=df(d?xf:Qo(h)),x=[];return of(g,(function(h){!tu(mf,h)||d&&!tu(ff,h)||x.push(mf[h])})),x};if(Iu||(Sl((hf=function _Symbol(){if(this instanceof hf)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,d=Nu(h),g=function setter(h){this===ff&&setter.call(xf,h),tu(this,uf)&&tu(this[uf],d)&&(this[uf][d]=!1),Af(this,d,Go(1,h))};return Fo&&Pf&&Af(ff,d,{configurable:!0,set:g}),_f(d,h)}).prototype,"toString",(function toString(){return lf(this).tag})),Sl(hf,"withoutSetter",(function(h){return _f(Nu(h),h)})),zo.f=Cf,xu.f=Tf,ou.f=Rf,Ql.f=tf.f=Mf,ef.f=Nf,rf.f=function(h){return _f($u(h),h)},Fo&&vf(hf.prototype,"description",{configurable:!0,get:function description(){return lf(this).description}})),Eu({global:!0,wrap:!0,forced:!Iu,sham:!Iu},{Symbol:hf}),of(el(wf),(function(h){af(h)})),Eu({target:"Symbol",stat:!0,forced:!Iu},{for:function _for(h){var d=String(h);if(tu(bf,d))return bf[d];var g=hf(d);return bf[d]=g,Sf[g]=d,g},keyFor:function keyFor(h){if(!kf(h))throw TypeError(h+" is not a symbol");if(tu(Sf,h))return Sf[h]},useSetter:function useSetter(){Pf=!0},useSimple:function useSimple(){Pf=!1}}),Eu({target:"Object",stat:!0,forced:!Iu,sham:!Fo},{create:function create(h,d){return void 0===d?sl(h):Of(sl(h),d)},defineProperty:Tf,defineProperties:Of,getOwnPropertyDescriptor:Rf}),Eu({target:"Object",stat:!0,forced:!Iu},{getOwnPropertyNames:Mf,getOwnPropertySymbols:Nf}),Eu({target:"Object",stat:!0,forced:$o((function(){ef.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return ef.f(Os(h))}}),pf){var If=!Iu||$o((function(){var h=hf();return"[null]"!=pf([h])||"{}"!=pf({a:h})||"{}"!=pf(Object(h))}));Eu({target:"JSON",stat:!0,forced:If},{stringify:function stringify(h,d,g){for(var x,b=[h],S=1;arguments.length>S;)b.push(arguments[S++]);if(x=d,(Zo(d)||void 0!==h)&&!kf(h))return Cs(d)||(d=function replacer(h,d){if("function"==typeof x&&(d=x.call(this,h,d)),!kf(d))return d}),b[1]=d,pf.apply(null,b)}})}hf.prototype[sf]||bu(hf.prototype,sf,hf.prototype.valueOf),gl(hf,"Symbol"),Sc[uf]=!0,af("asyncIterator"),af("hasInstance"),af("isConcatSpreadable"),af("iterator"),af("match"),af("matchAll"),af("replace"),af("search"),af("species"),af("split"),af("toPrimitive"),af("toStringTag"),af("unscopables"),gl(Do.JSON,"JSON",!0);var Lf=yu.Symbol;af("asyncDispose"),af("dispose"),af("observable"),af("patternMatch"),af("replaceAll");var Df=Lf;var jf=function _iterableToArrayLimit(h,d){if(void 0!==Df&&Ul(Object(h))){var g=[],x=!0,b=!1,S=void 0;try{for(var w,E=$l(h);!(x=(w=E.next()).done)&&(g.push(w.value),!d||g.length!==d);x=!0);}catch(h){b=!0,S=h}finally{try{x||null==E.return||E.return()}finally{if(b)throw S}}return g}},Vf=!checkCorrectnessOfIteration((function(h){Array.from(h)}));_export({target:"Array",stat:!0,forced:Vf},{from:Sn});var $f=function iteratorClose(h){var d=h.return;if(void 0!==d)return gu(d.call(h)).value},Ff=function callWithSafeIterationClosing(h,d,g,x){try{return x?d(gu(g)[0],g[1]):d(g)}catch(d){throw $f(h),d}},Uf=$u("iterator"),Bf=Array.prototype,zf=function isArrayIteratorMethod(h){return void 0!==h&&(ic.Array===h||Bf[Uf]===h)},Gf=$u("iterator"),Hf=!1;try{var qf=0,Xf={next:function next(){return{done:!!qf++}},return:function _return(){Hf=!0}};Xf[Gf]=function(){return this},Array.from(Xf,(function(){throw 2}))}catch(h){}var Yf=function checkCorrectnessOfIteration(h,d){if(!d&&!Hf)return!1;var g=!1;try{var x={};x[Gf]=function(){return{next:function next(){return{done:g=!0}}}},h(x)}catch(h){}return g},Wf=!Yf((function(h){Array.from(h)}));Eu({target:"Array",stat:!0,forced:Wf},{from:function from(h){var d,g,x,b,S,w,E=Os(h),P="function"==typeof this?this:Array,A=arguments.length,_=A>1?arguments[1]:void 0,k=void 0!==_,C=Vl(E),R=0;if(k&&(_=du(_,A>2?arguments[2]:void 0,2)),null==C||P==Array&&zf(C))for(g=new P(d=Tu(E.length));d>R;R++)w=k?_(E[R],R):E[R],Bl(g,R,w);else for(S=(b=C.call(E)).next,g=new P;!(x=S.call(b)).done;R++)w=k?Ff(b,_,[x.value,R],!0):x.value,Bl(g,R,w);return g.length=R,g}});var Qf=yu.Array.from,Zf=Qf,Kf=Gs("slice"),Jf=Ys("slice",{ACCESSORS:!0,0:0,1:2}),th=$u("species"),eh=[].slice,rh=Math.max;Eu({target:"Array",proto:!0,forced:!Kf||!Jf},{slice:function slice(h,d){var g,x,b,S=Qo(this),w=Tu(S.length),E=Wc(h,w),P=Wc(void 0===d?w:d,w);if(Cs(S)&&("function"!=typeof(g=S.constructor)||g!==Array&&!Cs(g.prototype)?Zo(g)&&null===(g=g[th])&&(g=void 0):g=void 0,g===Array||void 0===g))return eh.call(S,E,P);for(x=new(void 0===g?Array:g)(rh(P-E,0)),b=0;E<P;E++,b++)E in S&&Bl(x,b,S[E]);return x.length=b,x}});var nh=Xu("Array").slice,ih=Array.prototype,ah=function slice_1(h){var d=h.slice;return h===ih||h instanceof Array&&d===ih.slice?nh:d},oh=ah;var uh=function _arrayLikeToArray(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x};var sh=function _unsupportedIterableToArray(h,d){var g;if(h){if("string"==typeof h)return uh(h,d);var x=oh(g=Object.prototype.toString.call(h)).call(g,8,-1);return"Object"===x&&h.constructor&&(x=h.constructor.name),"Map"===x||"Set"===x?Zf(h):"Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x)?uh(h,d):void 0}};var ch=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var lh=function _slicedToArray(h,d){return nc(h)||jf(h,d)||sh(h,d)||ch()};Eu({target:"Object",stat:!0,forced:!Fo,sham:!Fo},{defineProperty:xu.f});var fh=createCommonjsModule((function(h){var d=yu.Object,g=h.exports=function defineProperty(h,g,x){return d.defineProperty(h,g,x)};d.defineProperty.sham&&(g.sham=!0)})),hh=fh;Eu({target:"Object",stat:!0,forced:!Fo,sham:!Fo},{defineProperties:rl});var ph=createCommonjsModule((function(h){var d=yu.Object,g=h.exports=function defineProperties(h,g){return d.defineProperties(h,g)};d.defineProperties.sham&&(g.sham=!0)})),yh=js("Reflect","ownKeys")||function ownKeys(h){var d=Ql.f(gu(h)),g=ef.f;return g?d.concat(g(h)):d};Eu({target:"Object",stat:!0,sham:!Fo},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(h){for(var d,g,x=Qo(h),b=ou.f,S=yh(x),w={},E=0;S.length>E;)void 0!==(g=b(x,d=S[E++]))&&Bl(w,d,g);return w}});var vh=yu.Object.getOwnPropertyDescriptors,dh=function arrayMethodIsStrict(h,d){var g=[][h];return!!g&&$o((function(){g.call(null,d||function(){throw 1},1)}))},gh=Ls.forEach,mh=dh("forEach"),xh=Ys("forEach"),bh=mh&&xh?[].forEach:function forEach(h){return gh(this,h,arguments.length>1?arguments[1]:void 0)};Eu({target:"Array",proto:!0,forced:[].forEach!=bh},{forEach:bh});var Sh=Xu("Array").forEach,wh=Array.prototype,Eh={DOMTokenList:!0,NodeList:!0},Ph=function forEach_1(h){var d=h.forEach;return h===wh||h instanceof Array&&d===wh.forEach||Eh.hasOwnProperty(pl(h))?Sh:d},Ah=ou.f,_h=$o((function(){Ah(1)}));Eu({target:"Object",stat:!0,forced:!Fo||_h,sham:!Fo},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,d){return Ah(Qo(h),d)}});var kh=createCommonjsModule((function(h){var d=yu.Object,g=h.exports=function getOwnPropertyDescriptor(h,g){return d.getOwnPropertyDescriptor(h,g)};d.getOwnPropertyDescriptor.sham&&(g.sham=!0)})),Th=kh,Oh=Gi.filter,Ch=arrayMethodHasSpeciesSupport("filter"),Rh=arrayMethodUsesToLength("filter");_export({target:"Array",proto:!0,forced:!Ch||!Rh},{filter:function filter(h){return Oh(this,h,arguments.length>1?arguments[1]:void 0)}});var Mh=Ls.filter,Nh=Gs("filter"),Ih=Ys("filter");Eu({target:"Array",proto:!0,forced:!Nh||!Ih},{filter:function filter(h){return Mh(this,h,arguments.length>1?arguments[1]:void 0)}});var Lh=Xu("Array").filter,Dh=Array.prototype,jh=function filter_1(h){var d=h.filter;return h===Dh||h instanceof Array&&d===Dh.filter?Lh:d},Vh=yu.Object.getOwnPropertySymbols,$h=$o((function(){el(1)}));Eu({target:"Object",stat:!0,forced:$h},{keys:function keys(h){return el(Os(h))}});var Fh=yu.Object.keys,Uh=Ka,Bh=function Result(h,d){this.stopped=h,this.result=d},zh=function iterate(h,d,g){var x,b,S,w,E,P,A,_=g&&g.that,k=!(!g||!g.AS_ENTRIES),C=!(!g||!g.IS_ITERATOR),R=!(!g||!g.INTERRUPTED),M=du(d,_,1+k+R),N=function stop(h){return x&&$f(x),new Bh(!0,h)},L=function callFn(h){return k?(gu(h),R?M(h[0],h[1],N):M(h[0],h[1])):R?M(h,N):M(h)};if(C)x=h;else{if("function"!=typeof(b=Vl(h)))throw TypeError("Target is not iterable");if(zf(b)){for(S=0,w=Tu(h.length);w>S;S++)if((E=L(h[S]))&&E instanceof Bh)return E;return new Bh(!1)}x=b.call(h)}for(P=x.next;!(A=P.call(x)).done;){try{E=L(A.value)}catch(h){throw $f(x),h}if("object"==_typeof(E)&&E&&E instanceof Bh)return E}return new Bh(!1)},Gh=function AggregateError(h,d){var g=this;if(!(g instanceof Gh))return new Gh(h,d);bl&&(g=bl(new Error(void 0),Lc(g))),void 0!==d&&bu(g,"message",String(d));var x=[];return zh(h,x.push,{that:x}),bu(g,"errors",x),g};Gh.prototype=sl(Error.prototype,{constructor:Go(5,Gh),message:Go(5,""),name:Go(5,"AggregateError")}),Eu({global:!0},{AggregateError:Gh});var Hh=!!_e&&fails((function(){_e.prototype.finally.call({then:function(){}},(function(){}))}));_export({target:"Promise",proto:!0,real:!0,forced:Hh},{finally:function(h){var d=speciesConstructor(this,getBuiltIn("Promise")),g="function"==typeof h;return this.then(g?function(g){return promiseResolve(d,h()).then((function(){return g}))}:h,g?function(g){return promiseResolve(d,h()).then((function(){throw g}))}:h)}}),"function"!=typeof _e||_e.prototype.finally||st(_e.prototype,"finally",getBuiltIn("Promise").prototype.finally);var qh=Do.Promise,Xh=function redefineAll(h,d,g){for(var x in d)g&&g.unsafe&&h[x]?h[x]=d[x]:Sl(h,x,d[x],g);return h},Yh=$u("species"),Wh=function setSpecies(h){var d=js(h),g=xu.f;Fo&&d&&!d[Yh]&&g(d,Yh,{configurable:!0,get:function get(){return this}})},Qh=function anInstance(h,d,g){if(!(h instanceof d))throw TypeError("Incorrect "+(g?g+" ":"")+"invocation");return h},Zh=$u("species"),Kh=function speciesConstructor(h,d){var g,x=gu(h).constructor;return void 0===x||null==(g=gu(x)[Zh])?d:vu(g)},Jh=!g.setImmediate||!g.clearImmediate;_export({global:!0,bind:!0,enumerable:!0,forced:Jh},{setImmediate:nr.set,clearImmediate:nr.clear});var tp,ep,rp,np=/(iphone|ipod|ipad).*applewebkit/i.test(Vs),ip="process"==qo(Do.process),ap=Do.location,op=Do.setImmediate,up=Do.clearImmediate,sp=Do.process,cp=Do.MessageChannel,lp=Do.Dispatch,fp=0,hp={},pp=function run(h){if(hp.hasOwnProperty(h)){var d=hp[h];delete hp[h],d()}},yp=function runner(h){return function(){pp(h)}},vp=function listener(h){pp(h.data)},dp=function post(h){Do.postMessage(h+"",ap.protocol+"//"+ap.host)};op&&up||(op=function setImmediate(h){for(var d=[],g=1;arguments.length>g;)d.push(arguments[g++]);return hp[++fp]=function(){("function"==typeof h?h:Function(h)).apply(void 0,d)},tp(fp),fp},up=function clearImmediate(h){delete hp[h]},ip?tp=function defer(h){sp.nextTick(yp(h))}:lp&&lp.now?tp=function defer(h){lp.now(yp(h))}:cp&&!np?(rp=(ep=new cp).port2,ep.port1.onmessage=vp,tp=du(rp.postMessage,rp,1)):Do.addEventListener&&"function"==typeof postMessage&&!Do.importScripts&&ap&&"file:"!==ap.protocol&&!$o(dp)?(tp=dp,Do.addEventListener("message",vp,!1)):tp="onreadystatechange"in nu("script")?function defer(h){nl.appendChild(nu("script")).onreadystatechange=function(){nl.removeChild(this),pp(h)}}:function defer(h){setTimeout(yp(h),0)});var gp,mp,xp,bp,Sp,wp,Ep,Pp,Ap={set:op,clear:up},_p=/web0s(?!.*chrome)/i.test(Vs),kp=ou.f,Tp=Ap.set,Op=Do.MutationObserver||Do.WebKitMutationObserver,Cp=Do.document,Rp=Do.process,Mp=Do.Promise,Np=kp(Do,"queueMicrotask"),Ip=Np&&Np.value;Ip||(gp=function flush(){var h,d;for(ip&&(h=Rp.domain)&&h.exit();mp;){d=mp.fn,mp=mp.next;try{d()}catch(h){throw mp?bp():xp=void 0,h}}xp=void 0,h&&h.enter()},np||ip||_p||!Op||!Cp?Mp&&Mp.resolve?(Ep=Mp.resolve(void 0),Pp=Ep.then,bp=function notify(){Pp.call(Ep,gp)}):bp=ip?function notify(){Rp.nextTick(gp)}:function notify(){Tp.call(Do,gp)}:(Sp=!0,wp=Cp.createTextNode(""),new Op(gp).observe(wp,{characterData:!0}),bp=function notify(){wp.data=Sp=!Sp}));var Lp=Ip||function(h){var d={fn:h,next:void 0};xp&&(xp.next=d),mp||(mp=d,bp()),xp=d},Dp=function PromiseCapability(h){var d,g;this.promise=new h((function(h,x){if(void 0!==d||void 0!==g)throw TypeError("Bad Promise constructor");d=h,g=x})),this.resolve=vu(d),this.reject=vu(g)},jp={f:function f(h){return new Dp(h)}},Vp=function promiseResolve(h,d){if(gu(h),Zo(d)&&d.constructor===h)return d;var g=jp.f(h);return(0,g.resolve)(d),g.promise},$p=function perform(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}},Fp=Ap.set,Up=$u("species"),Bp=Rc.get,zp=Rc.set,Gp=Rc.getterFor("Promise"),Hp=qh,qp=Do.TypeError,Xp=Do.document,Yp=Do.process;js("fetch");var Wp,Qp,Zp,Kp=jp.f,Jp=Kp,ty=!!(Xp&&Xp.createEvent&&Do.dispatchEvent),ey="function"==typeof PromiseRejectionEvent,ry=pu("Promise",(function(){if(!(dc(Hp)!==String(Hp))){if(66===Bs)return!0;if(!ip&&!ey)return!0}if(!Hp.prototype.finally)return!0;if(Bs>=51&&/native code/.test(Hp))return!1;var h=Hp.resolve(1),d=function FakePromise(h){h((function(){}),(function(){}))};return(h.constructor={})[Up]=d,!(h.then((function(){}))instanceof d)})),ny=ry||!Yf((function(h){Hp.all(h).catch((function(){}))})),iy=function isThenable(h){var d;return!(!Zo(h)||"function"!=typeof(d=h.then))&&d},ay=function notify(h,d){if(!h.notified){h.notified=!0;var g=h.reactions;Lp((function(){for(var x=h.value,b=1==h.state,S=0;g.length>S;){var w,E,P,A=g[S++],_=b?A.ok:A.fail,k=A.resolve,C=A.reject,R=A.domain;try{_?(b||(2===h.rejection&&cy(h),h.rejection=1),!0===_?w=x:(R&&R.enter(),w=_(x),R&&(R.exit(),P=!0)),w===A.promise?C(qp("Promise-chain cycle")):(E=iy(w))?E.call(w,k,C):k(w)):C(x)}catch(h){R&&!P&&R.exit(),C(h)}}h.reactions=[],h.notified=!1,d&&!h.rejection&&uy(h)}))}},oy=function dispatchEvent(h,d,g){var x,b;ty?((x=Xp.createEvent("Event")).promise=d,x.reason=g,x.initEvent(h,!1,!0),Do.dispatchEvent(x)):x={promise:d,reason:g},!ey&&(b=Do["on"+h])?b(x):"unhandledrejection"===h&&function hostReportErrors(h,d){var g=Do.console;g&&g.error&&(1===arguments.length?g.error(h):g.error(h,d))}("Unhandled promise rejection",g)},uy=function onUnhandled(h){Fp.call(Do,(function(){var d,g=h.facade,x=h.value;if(sy(h)&&(d=$p((function(){ip?Yp.emit("unhandledRejection",x,g):oy("unhandledrejection",g,x)})),h.rejection=ip||sy(h)?2:1,d.error))throw d.value}))},sy=function isUnhandled(h){return 1!==h.rejection&&!h.parent},cy=function onHandleUnhandled(h){Fp.call(Do,(function(){var d=h.facade;ip?Yp.emit("rejectionHandled",d):oy("rejectionhandled",d,h.value)}))},ly=function bind(h,d,g){return function(x){h(d,x,g)}},fy=function internalReject(h,d,g){h.done||(h.done=!0,g&&(h=g),h.value=d,h.state=2,ay(h,!0))},hy=function internalResolve(h,d,g){if(!h.done){h.done=!0,g&&(h=g);try{if(h.facade===d)throw qp("Promise can't be resolved itself");var x=iy(d);x?Lp((function(){var g={done:!1};try{x.call(d,ly(internalResolve,g,h),ly(fy,g,h))}catch(d){fy(g,d,h)}})):(h.value=d,h.state=1,ay(h,!1))}catch(d){fy({done:!1},d,h)}}};ry&&(Hp=function Promise(h){Qh(this,Hp,"Promise"),vu(h),Wp.call(this);var d=Bp(this);try{h(ly(hy,d),ly(fy,d))}catch(h){fy(d,h)}},(Wp=function Promise(h){zp(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Xh(Hp.prototype,{then:function then(h,d){var g=Gp(this),x=Kp(Kh(this,Hp));return x.ok="function"!=typeof h||h,x.fail="function"==typeof d&&d,x.domain=ip?Yp.domain:void 0,g.parent=!0,g.reactions.push(x),0!=g.state&&ay(g,!1),x.promise},catch:function _catch(h){return this.then(void 0,h)}}),Qp=function OwnPromiseCapability(){var h=new Wp,d=Bp(h);this.promise=h,this.resolve=ly(hy,d),this.reject=ly(fy,d)},jp.f=Kp=function newPromiseCapability(h){return h===Hp||h===Zp?new Qp(h):Jp(h)}),Eu({global:!0,wrap:!0,forced:ry},{Promise:Hp}),gl(Hp,"Promise",!1,!0),Wh("Promise"),Zp=js("Promise"),Eu({target:"Promise",stat:!0,forced:ry},{reject:function reject(h){var d=Kp(this);return d.reject.call(void 0,h),d.promise}}),Eu({target:"Promise",stat:!0,forced:!0},{resolve:function resolve(h){return Vp(this===Zp?Hp:this,h)}}),Eu({target:"Promise",stat:!0,forced:ny},{all:function all(h){var d=this,g=Kp(d),x=g.resolve,b=g.reject,S=$p((function(){var g=vu(d.resolve),S=[],w=0,E=1;zh(h,(function(h){var P=w++,A=!1;S.push(void 0),E++,g.call(d,h).then((function(h){A||(A=!0,S[P]=h,--E||x(S))}),b)})),--E||x(S)}));return S.error&&b(S.value),g.promise},race:function race(h){var d=this,g=Kp(d),x=g.reject,b=$p((function(){var b=vu(d.resolve);zh(h,(function(h){b.call(d,h).then(g.resolve,x)}))}));return b.error&&x(b.value),g.promise}}),Eu({target:"Promise",stat:!0},{allSettled:function allSettled(h){var d=this,g=jp.f(d),x=g.resolve,b=g.reject,S=$p((function(){var g=vu(d.resolve),b=[],S=0,w=1;zh(h,(function(h){var E=S++,P=!1;b.push(void 0),w++,g.call(d,h).then((function(h){P||(P=!0,b[E]={status:"fulfilled",value:h},--w||x(b))}),(function(h){P||(P=!0,b[E]={status:"rejected",reason:h},--w||x(b))}))})),--w||x(b)}));return S.error&&b(S.value),g.promise}});Eu({target:"Promise",stat:!0},{any:function any(h){var d=this,g=jp.f(d),x=g.resolve,b=g.reject,S=$p((function(){var g=vu(d.resolve),S=[],w=0,E=1,P=!1;zh(h,(function(h){var A=w++,_=!1;S.push(void 0),E++,g.call(d,h).then((function(h){_||P||(P=!0,x(h))}),(function(h){_||P||(_=!0,S[A]=h,--E||b(new(js("AggregateError"))(S,"No one promise resolved")))}))})),--E||b(new(js("AggregateError"))(S,"No one promise resolved"))}));return S.error&&b(S.value),g.promise}});var py=!!qh&&$o((function(){qh.prototype.finally.call({then:function then(){}},(function(){}))}));Eu({target:"Promise",proto:!0,real:!0,forced:py},{finally:function _finally(h){var d=Kh(this,js("Promise")),g="function"==typeof h;return this.then(g?function(g){return Vp(d,h()).then((function(){return g}))}:h,g?function(g){return Vp(d,h()).then((function(){throw g}))}:h)}});var yy=yu.Promise;Eu({target:"Promise",stat:!0},{try:function _try(h){var d=jp.f(this),g=$p(h);return(g.error?d.reject:d.resolve)(g.value),d.promise}});var vy=yy;function asyncGeneratorStep$1(h,d,g,x,b,S,w){try{var E=h[S](w),P=E.value}catch(h){return void g(h)}E.done?d(P):vy.resolve(P).then(x,b)}var dy=function _asyncToGenerator$1(h){return function(){var d=this,g=arguments;return new vy((function(x,b){var S=h.apply(d,g);function _next(h){asyncGeneratorStep$1(S,x,b,_next,_throw,"next",h)}function _throw(h){asyncGeneratorStep$1(S,x,b,_next,_throw,"throw",h)}_next(void 0)}))}},gy=fh;var my=function _defineProperty(h,d,g){return d in h?gy(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[d]=g,h};var xy=function _classCallCheck(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")};function _defineProperties(h,d){for(var g=0;g<d.length;g++){var x=d[g];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),gy(h,x.key,x)}}var by=function _createClass(h,d,g){return d&&_defineProperties(h.prototype,d),g&&_defineProperties(h,g),h},Sy=Xu("Array").concat,wy=Array.prototype,Ey=function concat_1(h){var d=h.concat;return h===wy||h instanceof Array&&d===wy.concat?Sy:d},createMethod$8=function(h){return function(d,g,x,b){aFunction$1(g);var S=toObject(d),w=A(S),E=toLength(S.length),P=h?E-1:0,_=h?-1:1;if(x<2)for(;;){if(P in w){b=w[P],P+=_;break}if(P+=_,h?P<0:E<=P)throw TypeError("Reduce of empty array with no initial value")}for(;h?P>=0:E>P;P+=_)P in w&&(b=g(b,w[P],P,S));return b}},Py={left:createMethod$8(!1),right:createMethod$8(!0)}.left,Ay=arrayMethodIsStrict("reduce"),_y=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!Ay||!_y||!Fe&&Ft>79&&Ft<83},{reduce:function reduce(h){return Py(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}});var ky=function createMethod(h){return function(d,g,x,b){vu(g);var S=Os(d),w=Yo(S),E=Tu(S.length),P=h?E-1:0,A=h?-1:1;if(x<2)for(;;){if(P in w){b=w[P],P+=A;break}if(P+=A,h?P<0:E<=P)throw TypeError("Reduce of empty array with no initial value")}for(;h?P>=0:E>P;P+=A)P in w&&(b=g(b,w[P],P,S));return b}},Ty={left:ky(!1),right:ky(!0)}.left,Oy=dh("reduce"),Cy=Ys("reduce",{1:0});Eu({target:"Array",proto:!0,forced:!Oy||!Cy||!ip&&Bs>79&&Bs<83},{reduce:function reduce(h){return Ty(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ry=Xu("Array").reduce,My=Array.prototype,Ny=function reduce_1(h){var d=h.reduce;return h===My||h instanceof Array&&d===My.reduce?Ry:d};Eu({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var Iy=yu.Date.now,Ly=Gi.every,Dy=arrayMethodIsStrict("every"),jy=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!Dy||!jy},{every:function every(h){return Ly(this,h,arguments.length>1?arguments[1]:void 0)}});var Vy=Ls.every,$y=dh("every"),Fy=Ys("every");Eu({target:"Array",proto:!0,forced:!$y||!Fy},{every:function every(h){return Vy(this,h,arguments.length>1?arguments[1]:void 0)}});var Uy=Xu("Array").every,By=Array.prototype,zy=function every_1(h){var d=h.every;return h===By||h instanceof Array&&d===By.every?Uy:d},Gy=yy,Hy=[].slice,qy={},Xy=function construct(h,d,g){if(!(d in qy)){for(var x=[],b=0;b<d;b++)x[b]="a["+b+"]";qy[d]=Function("C,a","return new C("+x.join(",")+")")}return qy[d](h,g)},Yy=Function.bind||function bind(h){var d=vu(this),g=Hy.call(arguments,1),x=function bound(){var b=g.concat(Hy.call(arguments));return this instanceof x?Xy(d,b.length,b):d.apply(h,b)};return Zo(d.prototype)&&(x.prototype=d.prototype),x};Eu({target:"Function",proto:!0},{bind:Yy});for(var Wy=Xu("Function").bind,Qy=Function.prototype,Zy=function bind_1(h){var d=h.bind;return h===Qy||h instanceof Function&&d===Qy.bind?Wy:d},Ky=createCommonjsModule((function(g){(function(){var d,x,b,S,w,E;"undefined"!=typeof performance&&null!==performance&&performance.now?g.exports=function(){return performance.now()}:null!=h&&h.hrtime?(g.exports=function(){return(d()-w)/1e6},x=h.hrtime,S=(d=function getNanoSeconds(){var h;return 1e9*(h=x())[0]+h[1]})(),E=1e9*h.uptime(),w=S-E):Date.now?(g.exports=function(){return Date.now()-b},b=Date.now()):(g.exports=function(){return(new Date).getTime()-b},b=(new Date).getTime())}).call(d)})),Jy="undefined"==typeof window?d:window,tv=["moz","webkit"],ev="AnimationFrame",rv=Jy["request"+ev],nv=Jy["cancel"+ev]||Jy["cancelRequest"+ev],iv=0;!rv&&iv<tv.length;iv++)rv=Jy[tv[iv]+"Request"+ev],nv=Jy[tv[iv]+"Cancel"+ev]||Jy[tv[iv]+"CancelRequest"+ev];if(!rv||!nv){var av=0,ov=0,uv=[];rv=function raf(h){if(0===uv.length){var d=Ky(),g=Math.max(0,16.666666666666668-(d-av));av=g+d,setTimeout((function(){var h=uv.slice(0);uv.length=0;for(var d=0;d<h.length;d++)if(!h[d].cancelled)try{h[d].callback(av)}catch(h){setTimeout((function(){throw h}),0)}}),Math.round(g))}return uv.push({handle:++ov,callback:h,cancelled:!1}),ov},nv=function caf(h){for(var d=0;d<uv.length;d++)uv[d].handle===h&&(uv[d].cancelled=!0)}}var sv=function raf_1(h){return rv.call(Jy,h)};sv.cancel=function cancel(){nv.apply(Jy,arguments)},sv.polyfill=function polyfill(h){h||(h=Jy),h.requestAnimationFrame=rv,h.cancelAnimationFrame=nv};var cv=xs.trim;Eu({target:"String",proto:!0,forced:function stringTrimForced(h){return $o((function(){return!!ys[h]()||"…"!="…"[h]()||ys[h].name!==h}))}("trim")},{trim:function trim(){return cv(this)}});var lv=Xu("String").trim,fv=String.prototype,hv=function trim_1(h){var d=h.trim;return"string"==typeof h||h===fv||h instanceof String&&d===fv.trim?lv:d},pv=oo.trim,yv=g.parseInt,vv=/^[+-]?0[Xx]/,dv=8!==yv(ro+"08")||22!==yv(ro+"0x16")?function parseInt(h,d){var g=pv(String(h));return yv(g,d>>>0||(vv.test(g)?16:10))}:yv;_export({global:!0,forced:parseInt!=dv},{parseInt:dv});var gv=function rgbcolor(h){this.ok=!1,this.alpha=1,"#"==h.charAt(0)&&(h=h.substr(1,6)),h=(h=h.replace(/ /g,"")).toLowerCase();var d={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};h=d[h]||h;for(var g=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function process(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3]),parseFloat(h[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function process(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function process(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],x=0;x<g.length;x++){var b=g[x].re,S=g[x].process,w=b.exec(h);if(w){var E=S(w);this.r=E[0],this.g=E[1],this.b=E[2],E.length>3&&(this.alpha=E[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 h=this.r.toString(16),d=this.g.toString(16),g=this.b.toString(16);return 1==h.length&&(h="0"+h),1==d.length&&(d="0"+d),1==g.length&&(g="0"+g),"#"+h+d+g},this.getHelpXML=function(){for(var h=new Array,x=0;x<g.length;x++)for(var b=g[x].example,S=0;S<b.length;S++)h[h.length]=b[S];for(var w in d)h[h.length]=w;var E=document.createElement("ul");E.setAttribute("id","rgbcolor-examples");for(x=0;x<h.length;x++)try{var P=document.createElement("li"),A=new RGBColor(h[x]),_=document.createElement("div");_.style.cssText="margin: 3px; border: 1px solid black; background:"+A.toHex()+"; color:"+A.toHex(),_.appendChild(document.createTextNode("test"));var k=document.createTextNode(" "+h[x]+" -> "+A.toRGB()+" -> "+A.toHex());P.appendChild(_),P.appendChild(k),E.appendChild(P)}catch(h){}return E}},mv=js("Reflect","construct"),xv=$o((function(){function F(){}return!(mv((function(){}),[],F)instanceof F)})),bv=!$o((function(){mv((function(){}))})),Sv=xv||bv;Eu({target:"Reflect",stat:!0,forced:Sv,sham:Sv},{construct:function construct(h,d){vu(h),gu(d);var g=arguments.length<3?h:vu(arguments[2]);if(bv&&!xv)return mv(h,d,g);if(h==g){switch(d.length){case 0:return new h;case 1:return new h(d[0]);case 2:return new h(d[0],d[1]);case 3:return new h(d[0],d[1],d[2]);case 4:return new h(d[0],d[1],d[2],d[3])}var x=[null];return x.push.apply(x,d),new(Yy.apply(h,x))}var b=g.prototype,S=sl(Zo(b)?b:Object.prototype),w=Function.apply.call(h,S,d);return Zo(w)?w:S}});var wv=yu.Reflect.construct;Eu({target:"Object",stat:!0,sham:!Fo},{create:sl});var Ev=yu.Object,Pv=function create(h,d){return Ev.create(h,d)};Eu({target:"Object",stat:!0},{setPrototypeOf:bl});var Av=yu.Object.setPrototypeOf,_v=createCommonjsModule((function(h){function _setPrototypeOf(d,g){return h.exports=_setPrototypeOf=Av||function _setPrototypeOf(h,d){return h.__proto__=d,h},_setPrototypeOf(d,g)}h.exports=_setPrototypeOf}));var kv=function _inherits(h,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function");h.prototype=Pv(d&&d.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),d&&_v(h,d)},Tv=rf.f("iterator"),Ov=createCommonjsModule((function(h){function _typeof(d){return h.exports=_typeof="function"==typeof Df&&"symbol"==typeof Tv?function _typeof(h){return typeof h}:function _typeof(h){return h&&"function"==typeof Df&&h.constructor===Df&&h!==Df.prototype?"symbol":typeof h},_typeof(d)}h.exports=_typeof}));var Cv=function _assertThisInitialized(h){if(void 0===h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h};var Rv=function _possibleConstructorReturn(h,d){return!d||"object"!==Ov(d)&&"function"!=typeof d?Cv(h):d},Mv=$o((function(){Lc(1)}));Eu({target:"Object",stat:!0,forced:Mv,sham:!Mc},{getPrototypeOf:function getPrototypeOf(h){return Lc(Os(h))}});var Nv=yu.Object.getPrototypeOf,Iv=createCommonjsModule((function(h){function _getPrototypeOf(d){return h.exports=_getPrototypeOf=Av?Nv:function _getPrototypeOf(h){return h.__proto__||Nv(h)},_getPrototypeOf(d)}h.exports=_getPrototypeOf}));var Lv=function _arrayWithoutHoles(h){if(rc(h))return uh(h)};var Dv=function _iterableToArray(h){if(void 0!==Df&&Ul(Object(h)))return Zf(h)};var jv=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Vv=function _toConsumableArray(h){return Lv(h)||Dv(h)||sh(h)||jv()},$v=Gi.some,Fv=arrayMethodIsStrict("some"),Uv=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!Fv||!Uv},{some:function some(h){return $v(this,h,arguments.length>1?arguments[1]:void 0)}});var Bv=Ls.some,zv=dh("some"),Gv=Ys("some");Eu({target:"Array",proto:!0,forced:!zv||!Gv},{some:function some(h){return Bv(this,h,arguments.length>1?arguments[1]:void 0)}});var Hv=Xu("Array").some,qv=Array.prototype,Xv=function some_1(h){var d=h.some;return h===qv||h instanceof Array&&d===qv.some?Hv:d},Yv=vt.includes,Wv=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!Wv},{includes:function includes(h){return Yv(this,h,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes"),_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function includes(h){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(h),arguments.length>1?arguments[1]:void 0)}});var Qv=Zc.includes,Zv=Ys("indexOf",{ACCESSORS:!0,1:0});Eu({target:"Array",proto:!0,forced:!Zv},{includes:function includes(h){return Qv(this,h,arguments.length>1?arguments[1]:void 0)}});var Kv=Xu("Array").includes;Eu({target:"String",proto:!0,forced:!zu("includes")},{includes:function includes(h){return!!~String(Wo(this)).indexOf(Uu(h),arguments.length>1?arguments[1]:void 0)}});var Jv=Xu("String").includes,td=Array.prototype,ed=String.prototype,rd=function includes$2(h){var d=h.includes;return h===td||h instanceof Array&&d===td.includes?Kv:"string"==typeof h||h===ed||h instanceof String&&d===ed.includes?Jv:d},nd=Qf,id=[].reverse,ad=[1,2];Eu({target:"Array",proto:!0,forced:String(ad)===String(ad.reverse())},{reverse:function reverse(){return Cs(this)&&(this.length=this.length),id.call(this)}});var od=Xu("Array").reverse,ud=Array.prototype,sd=function reverse_1(h){var d=h.reverse;return h===ud||h instanceof Array&&d===ud.reverse?od:d},cd=Zc.indexOf,ld=[].indexOf,fd=!!ld&&1/[1].indexOf(1,-0)<0,hd=dh("indexOf"),pd=Ys("indexOf",{ACCESSORS:!0,1:0});Eu({target:"Array",proto:!0,forced:fd||!hd||!pd},{indexOf:function indexOf(h){return fd?ld.apply(this,arguments)||0:cd(this,h,arguments.length>1?arguments[1]:void 0)}});var yd=Xu("Array").indexOf,vd=Array.prototype,dd=function indexOf_1(h){var d=h.indexOf;return h===vd||h instanceof Array&&d===vd.indexOf?yd:d},gd=kh;Eu({target:"Reflect",stat:!0},{get:function get$2(h,d){var g,x,b=arguments.length<3?h:arguments[2];return gu(h)===b?h[d]:(g=ou.f(h,d))?tu(g,"value")?g.value:void 0===g.get?void 0:g.get.call(b):Zo(x=Lc(h))?get$2(x,d,b):void 0}});var md=yu.Reflect.get;var xd=function _superPropBase(h,d){for(;!Object.prototype.hasOwnProperty.call(h,d)&&null!==(h=Iv(h)););return h},bd=createCommonjsModule((function(h){function _get(d,g,x){return"undefined"!=typeof Reflect&&md?h.exports=_get=md:h.exports=_get=function _get(h,d,g){var x=xd(h,d);if(x){var b=gd(x,d);return b.get?b.get.call(g):b.value}},_get(d,g,x||d)}h.exports=_get}));Eu({target:"Array",proto:!0},{fill:function fill(h){for(var d=Os(this),g=Tu(d.length),x=arguments.length,b=Wc(x>1?arguments[1]:void 0,g),S=x>2?arguments[2]:void 0,w=void 0===S?g:Wc(S,g);w>b;)d[b++]=h;return d}});var Sd=Xu("Array").fill,wd=Array.prototype,Ed=function fill_1(h){var d=h.fill;return h===wd||h instanceof Array&&d===wd.fill?Sd:d},Pd=function t(h,d){return(Pd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var g in d)d.hasOwnProperty(g)&&(h[g]=d[g])})(h,d)};function r(h,d){function i(){this.constructor=h}Pd(h,d),h.prototype=null===d?Object.create(d):(i.prototype=d.prototype,new i)}function i$1(h,d){var g=h[0],x=h[1];return[g*Math.cos(d)-x*Math.sin(d),g*Math.sin(d)+x*Math.cos(d)]}function a(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];for(var g=0;g<h.length;g++)if("number"!=typeof h[g])throw new Error("assertNumbers arguments["+g+"] is not a number. "+_typeof(h[g])+" == typeof "+h[g]);return!0}var Ad=Math.PI;function o(h,d,g){h.lArcFlag=0===h.lArcFlag?0:1,h.sweepFlag=0===h.sweepFlag?0:1;var x=h.rX,b=h.rY,S=h.x,w=h.y;x=Math.abs(h.rX),b=Math.abs(h.rY);var E=i$1([(d-S)/2,(g-w)/2],-h.xRot/180*Ad),P=E[0],A=E[1],_=Math.pow(P,2)/Math.pow(x,2)+Math.pow(A,2)/Math.pow(b,2);1<_&&(x*=Math.sqrt(_),b*=Math.sqrt(_)),h.rX=x,h.rY=b;var k=Math.pow(x,2)*Math.pow(A,2)+Math.pow(b,2)*Math.pow(P,2),C=(h.lArcFlag!==h.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(x,2)*Math.pow(b,2)-k)/k)),R=x*A/b*C,M=-b*P/x*C,N=i$1([R,M],h.xRot/180*Ad);h.cX=N[0]+(d+S)/2,h.cY=N[1]+(g+w)/2,h.phi1=Math.atan2((A-M)/b,(P-R)/x),h.phi2=Math.atan2((-A-M)/b,(-P-R)/x),0===h.sweepFlag&&h.phi2>h.phi1&&(h.phi2-=2*Ad),1===h.sweepFlag&&h.phi2<h.phi1&&(h.phi2+=2*Ad),h.phi1*=180/Ad,h.phi2*=180/Ad}function s(h,d,g){a(h,d,g);var x=h*h+d*d-g*g;if(0>x)return[];if(0===x)return[[h*g/(h*h+d*d),d*g/(h*h+d*d)]];var b=Math.sqrt(x);return[[(h*g+d*b)/(h*h+d*d),(d*g-h*b)/(h*h+d*d)],[(h*g-d*b)/(h*h+d*d),(d*g+h*b)/(h*h+d*d)]]}var _d,kd=Math.PI/180;function c(h,d,g){return(1-g)*h+g*d}function y(h,d,g,x){return h+Math.cos(x/180*Ad)*d+Math.sin(x/180*Ad)*g}function p(h,d,g,x){var b=d-h,S=g-d,w=3*b+3*(x-g)-6*S,E=6*(S-b),P=3*b;return Math.abs(w)<1e-6?[-P/E]:function(h,d,g){void 0===g&&(g=1e-6);var x=h*h/4-d;if(x<-g)return[];if(x<=g)return[-h/2];var b=Math.sqrt(x);return[-h/2-b,-h/2+b]}(E/w,P/w,1e-6)}function m(h,d,g,x,b){var S=1-b;return h*(S*S*S)+d*(3*S*S*b)+g*(3*S*b*b)+x*(b*b*b)}!function(h){function r(){return u((function(h,d,g){return h.relative&&(void 0!==h.x1&&(h.x1+=d),void 0!==h.y1&&(h.y1+=g),void 0!==h.x2&&(h.x2+=d),void 0!==h.y2&&(h.y2+=g),void 0!==h.x&&(h.x+=d),void 0!==h.y&&(h.y+=g),h.relative=!1),h}))}function e(){var h=NaN,d=NaN,g=NaN,x=NaN;return u((function(b,S,w){return b.type&Nd.SMOOTH_CURVE_TO&&(b.type=Nd.CURVE_TO,h=isNaN(h)?S:h,d=isNaN(d)?w:d,b.x1=b.relative?S-h:2*S-h,b.y1=b.relative?w-d:2*w-d),b.type&Nd.CURVE_TO?(h=b.relative?S+b.x2:b.x2,d=b.relative?w+b.y2:b.y2):(h=NaN,d=NaN),b.type&Nd.SMOOTH_QUAD_TO&&(b.type=Nd.QUAD_TO,g=isNaN(g)?S:g,x=isNaN(x)?w:x,b.x1=b.relative?S-g:2*S-g,b.y1=b.relative?w-x:2*w-x),b.type&Nd.QUAD_TO?(g=b.relative?S+b.x1:b.x1,x=b.relative?w+b.y1:b.y1):(g=NaN,x=NaN),b}))}function n(){var h=NaN,d=NaN;return u((function(g,x,b){if(g.type&Nd.SMOOTH_QUAD_TO&&(g.type=Nd.QUAD_TO,h=isNaN(h)?x:h,d=isNaN(d)?b:d,g.x1=g.relative?x-h:2*x-h,g.y1=g.relative?b-d:2*b-d),g.type&Nd.QUAD_TO){h=g.relative?x+g.x1:g.x1,d=g.relative?b+g.y1:g.y1;var S=g.x1,w=g.y1;g.type=Nd.CURVE_TO,g.x1=((g.relative?0:x)+2*S)/3,g.y1=((g.relative?0:b)+2*w)/3,g.x2=(g.x+2*S)/3,g.y2=(g.y+2*w)/3}else h=NaN,d=NaN;return g}))}function u(h){var d=0,g=0,x=NaN,b=NaN;return function(S){if(isNaN(x)&&!(S.type&Nd.MOVE_TO))throw new Error("path must start with moveto");var w=h(S,d,g,x,b);return S.type&Nd.CLOSE_PATH&&(d=x,g=b),void 0!==S.x&&(d=S.relative?d+S.x:S.x),void 0!==S.y&&(g=S.relative?g+S.y:S.y),S.type&Nd.MOVE_TO&&(x=d,b=g),w}}function O(h,d,g,x,b,S){return a(h,d,g,x,b,S),u((function(w,E,P,A){var _=w.x1,k=w.x2,C=w.relative&&!isNaN(A),R=void 0!==w.x?w.x:C?0:E,M=void 0!==w.y?w.y:C?0:P;function T(h){return h*h}w.type&Nd.HORIZ_LINE_TO&&0!==d&&(w.type=Nd.LINE_TO,w.y=w.relative?0:P),w.type&Nd.VERT_LINE_TO&&0!==g&&(w.type=Nd.LINE_TO,w.x=w.relative?0:E),void 0!==w.x&&(w.x=w.x*h+M*g+(C?0:b)),void 0!==w.y&&(w.y=R*d+w.y*x+(C?0:S)),void 0!==w.x1&&(w.x1=w.x1*h+w.y1*g+(C?0:b)),void 0!==w.y1&&(w.y1=_*d+w.y1*x+(C?0:S)),void 0!==w.x2&&(w.x2=w.x2*h+w.y2*g+(C?0:b)),void 0!==w.y2&&(w.y2=k*d+w.y2*x+(C?0:S));var N=h*x-d*g;if(void 0!==w.xRot&&(1!==h||0!==d||0!==g||1!==x))if(0===N)delete w.rX,delete w.rY,delete w.xRot,delete w.lArcFlag,delete w.sweepFlag,w.type=Nd.LINE_TO;else{var L=w.xRot*Math.PI/180,D=Math.sin(L),j=Math.cos(L),V=1/T(w.rX),$=1/T(w.rY),U=T(j)*V+T(D)*$,B=2*D*j*(V-$),z=T(D)*V+T(j)*$,G=U*x*x-B*d*x+z*d*d,q=B*(h*x+d*g)-2*(U*g*x+z*h*d),X=U*g*g-B*h*g+z*h*h,Y=(Math.atan2(q,G-X)+Math.PI)%Math.PI/2,W=Math.sin(Y),Q=Math.cos(Y);w.rX=Math.abs(N)/Math.sqrt(G*T(Q)+q*W*Q+X*T(W)),w.rY=Math.abs(N)/Math.sqrt(G*T(W)-q*W*Q+X*T(Q)),w.xRot=180*Y/Math.PI}return void 0!==w.sweepFlag&&0>N&&(w.sweepFlag=+!w.sweepFlag),w}))}h.ROUND=function(h){function r(d){return Math.round(d*h)/h}return void 0===h&&(h=1e13),a(h),function(h){return void 0!==h.x1&&(h.x1=r(h.x1)),void 0!==h.y1&&(h.y1=r(h.y1)),void 0!==h.x2&&(h.x2=r(h.x2)),void 0!==h.y2&&(h.y2=r(h.y2)),void 0!==h.x&&(h.x=r(h.x)),void 0!==h.y&&(h.y=r(h.y)),void 0!==h.rX&&(h.rX=r(h.rX)),void 0!==h.rY&&(h.rY=r(h.rY)),h}},h.TO_ABS=r,h.TO_REL=function(){return u((function(h,d,g){return h.relative||(void 0!==h.x1&&(h.x1-=d),void 0!==h.y1&&(h.y1-=g),void 0!==h.x2&&(h.x2-=d),void 0!==h.y2&&(h.y2-=g),void 0!==h.x&&(h.x-=d),void 0!==h.y&&(h.y-=g),h.relative=!0),h}))},h.NORMALIZE_HVZ=function(h,d,g){return void 0===h&&(h=!0),void 0===d&&(d=!0),void 0===g&&(g=!0),u((function(x,b,S,w,E){if(isNaN(w)&&!(x.type&Nd.MOVE_TO))throw new Error("path must start with moveto");return d&&x.type&Nd.HORIZ_LINE_TO&&(x.type=Nd.LINE_TO,x.y=x.relative?0:S),g&&x.type&Nd.VERT_LINE_TO&&(x.type=Nd.LINE_TO,x.x=x.relative?0:b),h&&x.type&Nd.CLOSE_PATH&&(x.type=Nd.LINE_TO,x.x=x.relative?w-b:w,x.y=x.relative?E-S:E),x.type&Nd.ARC&&(0===x.rX||0===x.rY)&&(x.type=Nd.LINE_TO,delete x.rX,delete x.rY,delete x.xRot,delete x.lArcFlag,delete x.sweepFlag),x}))},h.NORMALIZE_ST=e,h.QT_TO_C=n,h.INFO=u,h.SANITIZE=function(h){void 0===h&&(h=0),a(h);var d=NaN,g=NaN,x=NaN,b=NaN;return u((function(S,w,E,P,A){var _=Math.abs,k=!1,C=0,R=0;if(S.type&Nd.SMOOTH_CURVE_TO&&(C=isNaN(d)?0:w-d,R=isNaN(g)?0:E-g),S.type&(Nd.CURVE_TO|Nd.SMOOTH_CURVE_TO)?(d=S.relative?w+S.x2:S.x2,g=S.relative?E+S.y2:S.y2):(d=NaN,g=NaN),S.type&Nd.SMOOTH_QUAD_TO?(x=isNaN(x)?w:2*w-x,b=isNaN(b)?E:2*E-b):S.type&Nd.QUAD_TO?(x=S.relative?w+S.x1:S.x1,b=S.relative?E+S.y1:S.y2):(x=NaN,b=NaN),S.type&Nd.LINE_COMMANDS||S.type&Nd.ARC&&(0===S.rX||0===S.rY||!S.lArcFlag)||S.type&Nd.CURVE_TO||S.type&Nd.SMOOTH_CURVE_TO||S.type&Nd.QUAD_TO||S.type&Nd.SMOOTH_QUAD_TO){var M=void 0===S.x?0:S.relative?S.x:S.x-w,N=void 0===S.y?0:S.relative?S.y:S.y-E;C=isNaN(x)?void 0===S.x1?C:S.relative?S.x:S.x1-w:x-w,R=isNaN(b)?void 0===S.y1?R:S.relative?S.y:S.y1-E:b-E;var L=void 0===S.x2?0:S.relative?S.x:S.x2-w,D=void 0===S.y2?0:S.relative?S.y:S.y2-E;_(M)<=h&&_(N)<=h&&_(C)<=h&&_(R)<=h&&_(L)<=h&&_(D)<=h&&(k=!0)}return S.type&Nd.CLOSE_PATH&&_(w-P)<=h&&_(E-A)<=h&&(k=!0),k?[]:S}))},h.MATRIX=O,h.ROTATE=function(h,d,g){void 0===d&&(d=0),void 0===g&&(g=0),a(h,d,g);var x=Math.sin(h),b=Math.cos(h);return O(b,x,-x,b,d-d*b+g*x,g-d*x-g*b)},h.TRANSLATE=function(h,d){return void 0===d&&(d=0),a(h,d),O(1,0,0,1,h,d)},h.SCALE=function(h,d){return void 0===d&&(d=h),a(h,d),O(h,0,0,d,0,0)},h.SKEW_X=function(h){return a(h),O(1,0,Math.atan(h),1,0,0)},h.SKEW_Y=function(h){return a(h),O(1,Math.atan(h),0,1,0,0)},h.X_AXIS_SYMMETRY=function(h){return void 0===h&&(h=0),a(h),O(-1,0,0,1,h,0)},h.Y_AXIS_SYMMETRY=function(h){return void 0===h&&(h=0),a(h),O(1,0,0,-1,0,h)},h.A_TO_C=function(){return u((function(h,d,g){return Nd.ARC===h.type?function(h,d,g){var x,b,S,w;h.cX||o(h,d,g);for(var E=Math.min(h.phi1,h.phi2),P=Math.max(h.phi1,h.phi2)-E,A=Math.ceil(P/90),_=new Array(A),k=d,C=g,R=0;R<A;R++){var M=c(h.phi1,h.phi2,R/A),N=c(h.phi1,h.phi2,(R+1)/A),L=N-M,D=4/3*Math.tan(L*kd/4),j=[Math.cos(M*kd)-D*Math.sin(M*kd),Math.sin(M*kd)+D*Math.cos(M*kd)],V=j[0],$=j[1],U=[Math.cos(N*kd),Math.sin(N*kd)],B=U[0],z=U[1],G=[B+D*Math.sin(N*kd),z-D*Math.cos(N*kd)],q=G[0],X=G[1];_[R]={relative:h.relative,type:Nd.CURVE_TO};var Y=function H(d,g){var x=i$1([d*h.rX,g*h.rY],h.xRot),b=x[0],S=x[1];return[h.cX+b,h.cY+S]};x=Y(V,$),_[R].x1=x[0],_[R].y1=x[1],b=Y(q,X),_[R].x2=b[0],_[R].y2=b[1],S=Y(B,z),_[R].x=S[0],_[R].y=S[1],h.relative&&(_[R].x1-=k,_[R].y1-=C,_[R].x2-=k,_[R].y2-=C,_[R].x-=k,_[R].y-=C),k=(w=[_[R].x,_[R].y])[0],C=w[1]}return _}(h,h.relative?0:d,h.relative?0:g):h}))},h.ANNOTATE_ARCS=function(){return u((function(h,d,g){return h.relative&&(d=0,g=0),Nd.ARC===h.type&&o(h,d,g),h}))},h.CLONE=function T(){return function(h){var d={};for(var g in h)d[g]=h[g];return d}},h.CALCULATE_BOUNDS=function(){var h=r(),d=n(),g=e(),x=u((function(b,S,w){var E=g(d(h(function t(h){var d={};for(var g in h)d[g]=h[g];return d}(b))));function O(h){h>x.maxX&&(x.maxX=h),h<x.minX&&(x.minX=h)}function T(h){h>x.maxY&&(x.maxY=h),h<x.minY&&(x.minY=h)}if(E.type&Nd.DRAWING_COMMANDS&&(O(S),T(w)),E.type&Nd.HORIZ_LINE_TO&&O(E.x),E.type&Nd.VERT_LINE_TO&&T(E.y),E.type&Nd.LINE_TO&&(O(E.x),T(E.y)),E.type&Nd.CURVE_TO){O(E.x),T(E.y);for(var P=0,A=p(S,E.x1,E.x2,E.x);P<A.length;P++)0<(q=A[P])&&1>q&&O(m(S,E.x1,E.x2,E.x,q));for(var _=0,k=p(w,E.y1,E.y2,E.y);_<k.length;_++)0<(q=k[_])&&1>q&&T(m(w,E.y1,E.y2,E.y,q))}if(E.type&Nd.ARC){O(E.x),T(E.y),o(E,S,w);for(var C=E.xRot/180*Math.PI,R=Math.cos(C)*E.rX,M=Math.sin(C)*E.rX,N=-Math.sin(C)*E.rY,L=Math.cos(C)*E.rY,D=E.phi1<E.phi2?[E.phi1,E.phi2]:-180>E.phi2?[E.phi2+360,E.phi1+360]:[E.phi2,E.phi1],j=D[0],V=D[1],$=function I(h){var d=h[0],g=h[1],x=180*Math.atan2(g,d)/Math.PI;return x<j?x+360:x},U=0,B=s(N,-R,0).map($);U<B.length;U++)(q=B[U])>j&&q<V&&O(y(E.cX,R,N,q));for(var z=0,G=s(L,-M,0).map($);z<G.length;z++){var q;(q=G[z])>j&&q<V&&T(y(E.cY,M,L,q))}}return b}));return x.minX=1/0,x.maxX=-1/0,x.minY=1/0,x.maxY=-1/0,x}}(_d||(_d={}));var Td,Od=function(){function t(){}return t.prototype.round=function(h){return this.transform(_d.ROUND(h))},t.prototype.toAbs=function(){return this.transform(_d.TO_ABS())},t.prototype.toRel=function(){return this.transform(_d.TO_REL())},t.prototype.normalizeHVZ=function(h,d,g){return this.transform(_d.NORMALIZE_HVZ(h,d,g))},t.prototype.normalizeST=function(){return this.transform(_d.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(_d.QT_TO_C())},t.prototype.aToC=function(){return this.transform(_d.A_TO_C())},t.prototype.sanitize=function(h){return this.transform(_d.SANITIZE(h))},t.prototype.translate=function(h,d){return this.transform(_d.TRANSLATE(h,d))},t.prototype.scale=function(h,d){return this.transform(_d.SCALE(h,d))},t.prototype.rotate=function(h,d,g){return this.transform(_d.ROTATE(h,d,g))},t.prototype.matrix=function(h,d,g,x,b,S){return this.transform(_d.MATRIX(h,d,g,x,b,S))},t.prototype.skewX=function(h){return this.transform(_d.SKEW_X(h))},t.prototype.skewY=function(h){return this.transform(_d.SKEW_Y(h))},t.prototype.xSymmetry=function(h){return this.transform(_d.X_AXIS_SYMMETRY(h))},t.prototype.ySymmetry=function(h){return this.transform(_d.Y_AXIS_SYMMETRY(h))},t.prototype.annotateArcs=function(){return this.transform(_d.ANNOTATE_ARCS())},t}(),Cd=function v(h){return" "===h||"\t"===h||"\r"===h||"\n"===h},Rd=function l(h){return"0".charCodeAt(0)<=h.charCodeAt(0)&&h.charCodeAt(0)<="9".charCodeAt(0)},Md=function(h){function e(){var d=h.call(this)||this;return d.curNumber="",d.curCommandType=-1,d.curCommandRelative=!1,d.canParseCommandOrComma=!0,d.curNumberHasExp=!1,d.curNumberHasExpDigits=!1,d.curNumberHasDecimal=!1,d.curArgs=[],d}return r(e,h),e.prototype.finish=function(h){if(void 0===h&&(h=[]),this.parse(" ",h),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return h},e.prototype.parse=function(h,d){var g=this;void 0===d&&(d=[]);for(var x=function i(h){d.push(h),g.curArgs.length=0,g.canParseCommandOrComma=!0},b=0;b<h.length;b++){var S=h[b],w=!(this.curCommandType!==Nd.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),E=Rd(S)&&("0"===this.curNumber&&"0"===S||w);if(!Rd(S)||E)if("e"!==S&&"E"!==S)if("-"!==S&&"+"!==S||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==S||this.curNumberHasExp||this.curNumberHasDecimal||w){if(this.curNumber&&-1!==this.curCommandType){var P=Number(this.curNumber);if(isNaN(P))throw new SyntaxError("Invalid number ending at "+b);if(this.curCommandType===Nd.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>P)throw new SyntaxError('Expected positive number, got "'+P+'" at index "'+b+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+b+'"');this.curArgs.push(P),this.curArgs.length===Id[this.curCommandType]&&(Nd.HORIZ_LINE_TO===this.curCommandType?x({type:Nd.HORIZ_LINE_TO,relative:this.curCommandRelative,x:P}):Nd.VERT_LINE_TO===this.curCommandType?x({type:Nd.VERT_LINE_TO,relative:this.curCommandRelative,y:P}):this.curCommandType===Nd.MOVE_TO||this.curCommandType===Nd.LINE_TO||this.curCommandType===Nd.SMOOTH_QUAD_TO?(x({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Nd.MOVE_TO===this.curCommandType&&(this.curCommandType=Nd.LINE_TO)):this.curCommandType===Nd.CURVE_TO?x({type:Nd.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===Nd.SMOOTH_CURVE_TO?x({type:Nd.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Nd.QUAD_TO?x({type:Nd.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Nd.ARC&&x({type:Nd.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(!Cd(S))if(","===S&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==S&&"-"!==S&&"."!==S)if(E)this.curNumber=S,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+b+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+S+'" at index '+b+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==S&&"Z"!==S)if("h"===S||"H"===S)this.curCommandType=Nd.HORIZ_LINE_TO,this.curCommandRelative="h"===S;else if("v"===S||"V"===S)this.curCommandType=Nd.VERT_LINE_TO,this.curCommandRelative="v"===S;else if("m"===S||"M"===S)this.curCommandType=Nd.MOVE_TO,this.curCommandRelative="m"===S;else if("l"===S||"L"===S)this.curCommandType=Nd.LINE_TO,this.curCommandRelative="l"===S;else if("c"===S||"C"===S)this.curCommandType=Nd.CURVE_TO,this.curCommandRelative="c"===S;else if("s"===S||"S"===S)this.curCommandType=Nd.SMOOTH_CURVE_TO,this.curCommandRelative="s"===S;else if("q"===S||"Q"===S)this.curCommandType=Nd.QUAD_TO,this.curCommandRelative="q"===S;else if("t"===S||"T"===S)this.curCommandType=Nd.SMOOTH_QUAD_TO,this.curCommandRelative="t"===S;else{if("a"!==S&&"A"!==S)throw new SyntaxError('Unexpected character "'+S+'" at index '+b+".");this.curCommandType=Nd.ARC,this.curCommandRelative="a"===S}else d.push({type:Nd.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 d},e.prototype.transform=function(h){return Object.create(this,{parse:{value:function value(d,g){void 0===g&&(g=[]);for(var x=0,b=Object.getPrototypeOf(this).parse.call(this,d);x<b.length;x++){var S=b[x],w=h(S);Array.isArray(w)?g.push.apply(g,w):g.push(w)}return g}}})},e}(Od),Nd=function(h){function i(d){var g=h.call(this)||this;return g.commands="string"==typeof d?i.parse(d):d,g}return r(i,h),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var h=_d.CALCULATE_BOUNDS();return this.transform(h),h},i.prototype.transform=function(h){for(var d=[],g=0,x=this.commands;g<x.length;g++){var b=h(x[g]);Array.isArray(b)?d.push.apply(d,b):d.push(b)}return this.commands=d,this},i.encode=function(h){return function e(h){var d="";Array.isArray(h)||(h=[h]);for(var g=0;g<h.length;g++){var x=h[g];if(x.type===Nd.CLOSE_PATH)d+="z";else if(x.type===Nd.HORIZ_LINE_TO)d+=(x.relative?"h":"H")+x.x;else if(x.type===Nd.VERT_LINE_TO)d+=(x.relative?"v":"V")+x.y;else if(x.type===Nd.MOVE_TO)d+=(x.relative?"m":"M")+x.x+" "+x.y;else if(x.type===Nd.LINE_TO)d+=(x.relative?"l":"L")+x.x+" "+x.y;else if(x.type===Nd.CURVE_TO)d+=(x.relative?"c":"C")+x.x1+" "+x.y1+" "+x.x2+" "+x.y2+" "+x.x+" "+x.y;else if(x.type===Nd.SMOOTH_CURVE_TO)d+=(x.relative?"s":"S")+x.x2+" "+x.y2+" "+x.x+" "+x.y;else if(x.type===Nd.QUAD_TO)d+=(x.relative?"q":"Q")+x.x1+" "+x.y1+" "+x.x+" "+x.y;else if(x.type===Nd.SMOOTH_QUAD_TO)d+=(x.relative?"t":"T")+x.x+" "+x.y;else{if(x.type!==Nd.ARC)throw new Error('Unexpected command type "'+x.type+'" at index '+g+".");d+=(x.relative?"a":"A")+x.rX+" "+x.rY+" "+x.xRot+" "+ +x.lArcFlag+" "+ +x.sweepFlag+" "+x.x+" "+x.y}}return d}(h)},i.parse=function(h){var d=new Md,g=[];return d.parse(h,g),d.finish(g),g},i.CLOSE_PATH=1,i.MOVE_TO=2,i.HORIZ_LINE_TO=4,i.VERT_LINE_TO=8,i.LINE_TO=16,i.CURVE_TO=32,i.SMOOTH_CURVE_TO=64,i.QUAD_TO=128,i.SMOOTH_QUAD_TO=256,i.ARC=512,i.LINE_COMMANDS=i.LINE_TO|i.HORIZ_LINE_TO|i.VERT_LINE_TO,i.DRAWING_COMMANDS=i.HORIZ_LINE_TO|i.VERT_LINE_TO|i.LINE_TO|i.CURVE_TO|i.SMOOTH_CURVE_TO|i.QUAD_TO|i.SMOOTH_QUAD_TO|i.ARC,i}(Od),Id=((Td={})[Nd.MOVE_TO]=2,Td[Nd.LINE_TO]=2,Td[Nd.HORIZ_LINE_TO]=1,Td[Nd.VERT_LINE_TO]=1,Td[Nd.CLOSE_PATH]=0,Td[Nd.QUAD_TO]=4,Td[Nd.SMOOTH_QUAD_TO]=2,Td[Nd.CURVE_TO]=6,Td[Nd.SMOOTH_CURVE_TO]=4,Td[Nd.ARC]=7,Td),Ld=ou.f;Eu({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(h,d){var g=Ld(gu(h),d);return!(g&&!g.configurable)&&delete h[d]}});var Dd=yu.Reflect.deleteProperty,jd=Xu("Array").values,Vd=Array.prototype,$d={DOMTokenList:!0,NodeList:!0},Fd=function values_1(h){var d=h.values;return h===Vd||h instanceof Array&&d===Vd.values||$d.hasOwnProperty(pl(h))?jd:d},Ud=xs.trim,Bd=Do.parseInt,zd=/^[+-]?0[Xx]/,Gd=8!==Bd(ys+"08")||22!==Bd(ys+"0x16")?function parseInt(h,d){var g=Ud(String(h));return Bd(g,d>>>0||(zd.test(g)?16:10))}:Bd;Eu({global:!0,forced:parseInt!=Gd},{parseInt:Gd});var Hd=yu.parseInt,qd=ec,Xd=Vl,Yd=Lf,Wd=ah,Qd=Object.isExtensible,Zd=fails((function(){Qd(1)}));_export({target:"Object",stat:!0,forced:Zd},{isExtensible:function isExtensible(h){return!!isObject(h)&&(!Qd||Qd(h))}});var Kd=bo.onFreeze,Jd=Object.preventExtensions,tg=fails((function(){Jd(1)}));_export({target:"Object",stat:!0,forced:tg,sham:!xo},{preventExtensions:function preventExtensions(h){return Jd&&isObject(h)?Jd(Kd(h)):h}});var eg=!$o((function(){return Object.isExtensible(Object.preventExtensions({}))})),rg=createCommonjsModule((function(h){var d=xu.f,g=Nu("meta"),x=0,b=Object.isExtensible||function(){return!0},S=function setMetadata(h){d(h,g,{value:{objectID:"O"+ ++x,weakData:{}}})},w=h.exports={REQUIRED:!1,fastKey:function fastKey(h,d){if(!Zo(h))return"symbol"==_typeof(h)?h:("string"==typeof h?"S":"P")+h;if(!tu(h,g)){if(!b(h))return"F";if(!d)return"E";S(h)}return h[g].objectID},getWeakData:function getWeakData(h,d){if(!tu(h,g)){if(!b(h))return!0;if(!d)return!1;S(h)}return h[g].weakData},onFreeze:function onFreeze(h){return eg&&w.REQUIRED&&b(h)&&!tu(h,g)&&S(h),h}};Sc[g]=!0})),ng=xu.f,ig=Ls.forEach,ag=Rc.set,og=Rc.getterFor,ug=xu.f,sg=rg.fastKey,cg=Rc.set,lg=Rc.getterFor;!function collection(h,d,g){var x,b=-1!==h.indexOf("Map"),S=-1!==h.indexOf("Weak"),w=b?"set":"add",E=Do[h],P=E&&E.prototype,A={};if(Fo&&"function"==typeof E&&(S||P.forEach&&!$o((function(){(new E).entries().next()})))){x=d((function(d,g){ag(Qh(d,x,h),{type:h,collection:new E}),null!=g&&zh(g,d[w],{that:d,AS_ENTRIES:b})}));var _=og(h);ig(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(h){var d="add"==h||"set"==h;!(h in P)||S&&"clear"==h||bu(x.prototype,h,(function(g,x){var b=_(this).collection;if(!d&&S&&!Zo(g))return"get"==h&&void 0;var w=b[h](0===g?0:g,x);return d?this:w}))})),S||ng(x.prototype,"size",{configurable:!0,get:function get(){return _(this).collection.size}})}else x=g.getConstructor(d,h,b,w),rg.REQUIRED=!0;gl(x,h,!1,!0),A[h]=x,Eu({global:!0,forced:!0},A),S||g.setStrong(x,h,b)}("Map",(function(h){return function Map(){return h(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function getConstructor(h,d,g,x){var b=h((function(h,S){Qh(h,b,d),cg(h,{type:d,index:sl(null),first:void 0,last:void 0,size:0}),Fo||(h.size=0),null!=S&&zh(S,h[x],{that:h,AS_ENTRIES:g})})),S=lg(d),w=function define(h,d,g){var x,b,w=S(h),P=E(h,d);return P?P.value=g:(w.last=P={index:b=sg(d,!0),key:d,value:g,previous:x=w.last,next:void 0,removed:!1},w.first||(w.first=P),x&&(x.next=P),Fo?w.size++:h.size++,"F"!==b&&(w.index[b]=P)),h},E=function getEntry(h,d){var g,x=S(h),b=sg(d);if("F"!==b)return x.index[b];for(g=x.first;g;g=g.next)if(g.key==d)return g};return Xh(b.prototype,{clear:function clear(){for(var h=S(this),d=h.index,g=h.first;g;)g.removed=!0,g.previous&&(g.previous=g.previous.next=void 0),delete d[g.index],g=g.next;h.first=h.last=void 0,Fo?h.size=0:this.size=0},delete:function _delete(h){var d=this,g=S(d),x=E(d,h);if(x){var b=x.next,w=x.previous;delete g.index[x.index],x.removed=!0,w&&(w.next=b),b&&(b.previous=w),g.first==x&&(g.first=b),g.last==x&&(g.last=w),Fo?g.size--:d.size--}return!!x},forEach:function forEach(h){for(var d,g=S(this),x=du(h,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:g.first;)for(x(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function has(h){return!!E(this,h)}}),Xh(b.prototype,g?{get:function get(h){var d=E(this,h);return d&&d.value},set:function set(h,d){return w(this,0===h?0:h,d)}}:{add:function add(h){return w(this,h=0===h?0:h,h)}}),Fo&&ug(b.prototype,"size",{get:function get(){return S(this).size}}),b},setStrong:function setStrong(h,d,g){var x=d+" Iterator",b=lg(d),S=lg(x);_l(h,d,(function(h,d){cg(this,{type:x,target:h,state:b(h),kind:d,last:void 0})}),(function(){for(var h=S(this),d=h.kind,g=h.last;g&&g.removed;)g=g.previous;return h.target&&(h.last=g=g?g.next:h.state.first)?"keys"==d?{value:g.key,done:!1}:"values"==d?{value:g.value,done:!1}:{value:[g.key,g.value],done:!1}:(h.target=void 0,{value:void 0,done:!0})}),g?"entries":"values",!g,!0),Wh(d)}});var fg=yu.Map,hg=js("Reflect","apply"),pg=Function.apply,yg=!$o((function(){hg((function(){}))}));Eu({target:"Reflect",stat:!0,forced:yg},{apply:function apply(h,d,g){return vu(h),gu(g),hg?hg(h,d,g):pg.call(h,d,g)}});var vg=yu.Reflect.apply;Eu({target:"Reflect",stat:!0,sham:!Mc},{getPrototypeOf:function getPrototypeOf(h){return Lc(gu(h))}});var dg=yu.Reflect.getPrototypeOf;function _typeof$1(h){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(h){return typeof h}:function _typeof(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(h)}var gg=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],mg=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function processCanvasRGBA(h,d,g,x,b,S){if(!(isNaN(S)||S<1)){S|=0;var w=function getImageDataFromCanvas(h,d,g,x,b){if("string"==typeof h&&(h=document.getElementById(h)),!h||"object"!==_typeof$1(h)||!("getContext"in h))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var S=h.getContext("2d");try{return S.getImageData(d,g,x,b)}catch(h){throw new Error("unable to access image data: "+h)}}(h,d,g,x,b);w=function processImageDataRGBA(h,d,g,x,b,S){for(var w,E=h.data,P=2*S+1,A=x-1,_=b-1,k=S+1,C=k*(k+1)/2,R=new xg,M=R,N=1;N<P;N++)M=M.next=new xg,N===k&&(w=M);M.next=R;for(var L=null,D=null,j=0,V=0,$=gg[S],U=mg[S],B=0;B<b;B++){M=R;for(var z=E[V],G=E[V+1],q=E[V+2],X=E[V+3],Y=0;Y<k;Y++)M.r=z,M.g=G,M.b=q,M.a=X,M=M.next;for(var W=0,Q=0,Z=0,K=0,J=k*z,tt=k*G,et=k*q,rt=k*X,nt=C*z,it=C*G,at=C*q,ot=C*X,ut=1;ut<k;ut++){var st=V+((A<ut?A:ut)<<2),ct=E[st],lt=E[st+1],ft=E[st+2],ht=E[st+3],pt=k-ut;nt+=(M.r=ct)*pt,it+=(M.g=lt)*pt,at+=(M.b=ft)*pt,ot+=(M.a=ht)*pt,W+=ct,Q+=lt,Z+=ft,K+=ht,M=M.next}L=R,D=w;for(var yt=0;yt<x;yt++){var vt=ot*$>>U;if(E[V+3]=vt,0!==vt){var dt=255/vt;E[V]=(nt*$>>U)*dt,E[V+1]=(it*$>>U)*dt,E[V+2]=(at*$>>U)*dt}else E[V]=E[V+1]=E[V+2]=0;nt-=J,it-=tt,at-=et,ot-=rt,J-=L.r,tt-=L.g,et-=L.b,rt-=L.a;var gt=yt+S+1;gt=j+(gt<A?gt:A)<<2,nt+=W+=L.r=E[gt],it+=Q+=L.g=E[gt+1],at+=Z+=L.b=E[gt+2],ot+=K+=L.a=E[gt+3],L=L.next;var mt=D,xt=mt.r,bt=mt.g,St=mt.b,wt=mt.a;J+=xt,tt+=bt,et+=St,rt+=wt,W-=xt,Q-=bt,Z-=St,K-=wt,D=D.next,V+=4}j+=x}for(var Et=0;Et<x;Et++){var Pt=E[V=Et<<2],At=E[V+1],_t=E[V+2],kt=E[V+3],Tt=k*Pt,Ot=k*At,Ct=k*_t,Rt=k*kt,Mt=C*Pt,Nt=C*At,It=C*_t,Lt=C*kt;M=R;for(var Dt=0;Dt<k;Dt++)M.r=Pt,M.g=At,M.b=_t,M.a=kt,M=M.next;for(var jt=x,Vt=0,$t=0,Ft=0,Ut=0,Bt=1;Bt<=S;Bt++){V=jt+Et<<2;var zt=k-Bt;Mt+=(M.r=Pt=E[V])*zt,Nt+=(M.g=At=E[V+1])*zt,It+=(M.b=_t=E[V+2])*zt,Lt+=(M.a=kt=E[V+3])*zt,Ut+=Pt,Vt+=At,$t+=_t,Ft+=kt,M=M.next,Bt<_&&(jt+=x)}V=Et,L=R,D=w;for(var Gt=0;Gt<b;Gt++){var Ht=V<<2;E[Ht+3]=kt=Lt*$>>U,kt>0?(kt=255/kt,E[Ht]=(Mt*$>>U)*kt,E[Ht+1]=(Nt*$>>U)*kt,E[Ht+2]=(It*$>>U)*kt):E[Ht]=E[Ht+1]=E[Ht+2]=0,Mt-=Tt,Nt-=Ot,It-=Ct,Lt-=Rt,Tt-=L.r,Ot-=L.g,Ct-=L.b,Rt-=L.a,Ht=Et+((Ht=Gt+k)<_?Ht:_)*x<<2,Mt+=Ut+=L.r=E[Ht],Nt+=Vt+=L.g=E[Ht+1],It+=$t+=L.b=E[Ht+2],Lt+=Ft+=L.a=E[Ht+3],L=L.next,Tt+=Pt=D.r,Ot+=At=D.g,Ct+=_t=D.b,Rt+=kt=D.a,Ut-=Pt,Vt-=At,$t-=_t,Ft-=kt,D=D.next,V+=x}}return h}(w,0,0,x,b,S),h.getContext("2d").putImageData(w,d,g)}}var xg=function BlurStack(){!function _classCallCheck$1(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}(this,BlurStack),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function compressSpaces(h){return h.replace(/(?!\u3000)\s+/gm," ")}function toNumbers(h){var d=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return tc(d).call(d,Es)}var bg=/^[A-Z-]+$/;function normalizeAttributeName(h){return bg.test(h)?h.toLowerCase():h}function parseExternalUrl(h){var d=h.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return d[2]||d[3]||d[4]}var Sg=/(\[[^\]]+\])/g,wg=/(#[^\s\+>~\.\[:]+)/g,Eg=/(\.[^\s\+>~\.\[:]+)/g,Pg=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,Ag=/(:[\w-]+\([^\)]*\))/gi,_g=/(:[^\s\+>~\.\[:]+)/g,kg=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(h,d){var g=h.match(d);return g?[h.replace(d," "),g.length]:[h,0]}function vectorMagnitude(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function vectorsRatio(h,d){return(h[0]*d[0]+h[1]*d[1])/(vectorMagnitude(h)*vectorMagnitude(d))}function vectorsAngle(h,d){return(h[0]*d[1]<h[1]*d[0]?-1:1)*Math.acos(vectorsRatio(h,d))}function CB1(h){return h*h*h}function CB2(h){return 3*h*h*(1-h)}function CB3(h){return 3*h*(1-h)*(1-h)}function CB4(h){return(1-h)*(1-h)*(1-h)}function QB1(h){return h*h}function QB2(h){return 2*h*(1-h)}function QB3(h){return(1-h)*(1-h)}var Tg=function(){function Property(h,d,g){xy(this,Property),this.document=h,this.name=d,this.value=g,this.isNormalizedColor=!1}return by(Property,[{key:"split",value:function split(){var h,d,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",x=this.document,b=this.name;return tc(h=hv(d=compressSpaces(this.getString())).call(d).split(g)).call(h,(function(h){return new Property(x,b,h)}))}},{key:"hasValue",value:function hasValue(h){var d=this.value;return null!==d&&""!==d&&(h||0!==d)&&void 0!==d}},{key:"isString",value:function isString(h){var d=this.value,g="string"==typeof d;return g&&h?h.test(d):g}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.isString(/^url\(/)}},{key:"isPixels",value:function isPixels(){if(!this.hasValue())return!1;var h=this.getString();switch(!0){case/px$/.test(h):case/^[0-9]+$/.test(h):return!0;default:return!1}}},{key:"setValue",value:function setValue(h){return this.value=h,this}},{key:"getValue",value:function getValue(h){return void 0===h||this.hasValue()?this.value:h}},{key:"getNumber",value:function getNumber(h){if(!this.hasValue())return void 0===h?0:Es(h);var d=this.value,g=Es(d);return this.isString(/%$/)&&(g/=100),g}},{key:"getString",value:function getString(h){return void 0===h||this.hasValue()?void 0===this.value?"":String(this.value):String(h)}},{key:"getColor",value:function getColor(h){var d=this.getString(h);return this.isNormalizedColor||(this.isNormalizedColor=!0,d=function normalizeColor(h){if(!Qu(h).call(h,"rgb"))return h;var d=3;return h.replace(/\d+(\.\d+)?/g,(function(h,g){return d--&&g?String(Math.round(Es(h))):h}))}(d),this.value=d),d}},{key:"getDpi",value:function getDpi(){return 96}},{key:"getRem",value:function getRem(){return this.document.rootEmSize}},{key:"getEm",value:function getEm(){return this.document.emSize}},{key:"getUnits",value:function getUnits(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function getPixels(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var g="boolean"==typeof h?[void 0,h]:[h],x=lh(g,2),b=x[0],S=x[1],w=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(w.computeSize("x"),w.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(w.computeSize("x"),w.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*w.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*w.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&S:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*w.computeSize(b);default:var E=this.getNumber();return d&&E<1?E*w.computeSize(b):E}}},{key:"getMilliseconds",value:function getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function getDefinition(){var h=this.getString(),d=h.match(/#([^\)'"]+)/);return d&&(d=d[1]),d||(d=h),this.document.definitions[d]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(h,d){var g=this.getDefinition();if(!g)return null;if("function"==typeof g.createGradient)return g.createGradient(this.document.ctx,h,d);if("function"==typeof g.createPattern){if(g.getHrefAttribute().hasValue()){var x=g.getAttribute("patternTransform");g=g.getHrefAttribute().getDefinition(),x.hasValue()&&g.getAttribute("patternTransform",!0).setValue(x.value)}return g.createPattern(this.document.ctx,h,d)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(h){for(var d=this.getColor(),g=d.length,x=0,b=0;b<g&&(","===d[b]&&x++,3!==x);b++);if(h.hasValue()&&this.isString()&&3!==x){var S=new gv(d);S.ok&&(S.alpha=h.getNumber(),d=S.toRGBA())}return new Property(this.document,this.name,d)}}],[{key:"empty",value:function empty(h){return new Property(h,"EMPTY","")}}]),Property}();Tg.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var Og=function(){function ViewPort(){xy(this,ViewPort),this.viewPorts=[]}return by(ViewPort,[{key:"clear",value:function clear(){this.viewPorts=[]}},{key:"setCurrent",value:function setCurrent(h,d){this.viewPorts.push({width:h,height:d})}},{key:"removeCurrent",value:function removeCurrent(){this.viewPorts.pop()}},{key:"getCurrent",value:function getCurrent(){var h=this.viewPorts;return h[h.length-1]}},{key:"computeSize",value:function computeSize(h){return"number"==typeof h?h:"x"===h?this.width:"y"===h?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function get(){return this.getCurrent().width}},{key:"height",get:function get(){return this.getCurrent().height}}]),ViewPort}(),Cg=function(){function Point(h,d){xy(this,Point),this.x=h,this.y=d}return by(Point,[{key:"angleTo",value:function angleTo(h){return Math.atan2(h.y-this.y,h.x-this.x)}},{key:"applyTransform",value:function applyTransform(h){var d=this.x,g=this.y,x=d*h[0]+g*h[2]+h[4],b=d*h[1]+g*h[3]+h[5];this.x=x,this.y=b}}],[{key:"parse",value:function parse(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,g=toNumbers(h),x=lh(g,2),b=x[0],S=void 0===b?d:b,w=x[1],E=void 0===w?d:w;return new Point(S,E)}},{key:"parseScale",value:function parseScale(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,g=toNumbers(h),x=lh(g,2),b=x[0],S=void 0===b?d:b,w=x[1],E=void 0===w?S:w;return new Point(S,E)}},{key:"parsePath",value:function parsePath(h){for(var d=toNumbers(h),g=d.length,x=[],b=0;b<g;b+=2)x.push(new Point(d[b],d[b+1]));return x}}]),Point}(),Rg=function(){function Mouse(h){var d,g;xy(this,Mouse),this.screen=h,this.working=!1,this.events=[],this.eventElements=[],this.onClick=Zy(d=this.onClick).call(d,this),this.onMouseMove=Zy(g=this.onMouseMove).call(g,this)}return by(Mouse,[{key:"isWorking",value:function isWorking(){return this.working}},{key:"start",value:function start(){if(!this.working){var h=this.screen,d=this.onClick,g=this.onMouseMove,x=h.ctx.canvas;x.onclick=d,x.onmousemove=g,this.working=!0}}},{key:"stop",value:function stop(){if(this.working){var h=this.screen.ctx.canvas;this.working=!1,h.onclick=null,h.onmousemove=null}}},{key:"hasEvents",value:function hasEvents(){return this.working&&this.events.length>0}},{key:"runEvents",value:function runEvents(){if(this.working){var h=this.screen,d=this.events,g=this.eventElements,x=h.ctx.canvas.style;x&&(x.cursor=""),Ph(d).call(d,(function(h,d){for(var x=h.run,b=g[d];b;)x(b),b=b.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(h,d){if(this.working&&d){var g=this.events,x=this.eventElements;Ph(g).call(g,(function(g,b){var S=g.x,w=g.y;!x[b]&&d.isPointInPath&&d.isPointInPath(S,w)&&(x[b]=h)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(h,d){if(this.working&&d){var g=this.events,x=this.eventElements;Ph(g).call(g,(function(g,b){var S=g.x,w=g.y;!x[b]&&d.isPointInBox(S,w)&&(x[b]=h)}))}}},{key:"mapXY",value:function mapXY(h,d){for(var g=this.screen,x=g.window,b=g.ctx,S=new Cg(h,d),w=b.canvas;w;)S.x-=w.offsetLeft,S.y-=w.offsetTop,w=w.offsetParent;return x.scrollX&&(S.x+=x.scrollX),x.scrollY&&(S.y+=x.scrollY),S}},{key:"onClick",value:function onClick(h){var d=this.mapXY((h||event).clientX,(h||event).clientY),g=d.x,x=d.y;this.events.push({type:"onclick",x:g,y:x,run:function run(h){h.onClick&&h.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(h){var d=this.mapXY((h||event).clientX,(h||event).clientY),g=d.x,x=d.y;this.events.push({type:"onmousemove",x:g,y:x,run:function run(h){h.onMouseMove&&h.onMouseMove()}})}}]),Mouse}(),Mg="undefined"!=typeof window?window:null,Ng="undefined"!=typeof fetch?Zy(fetch).call(fetch,void 0):null,Ig=function(){function Screen(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=d.fetch,x=void 0===g?Ng:g,b=d.window,S=void 0===b?Mg:b;xy(this,Screen),this.ctx=h,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Og,this.mouse=new Rg(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=S,this.fetch=x}return by(Screen,[{key:"wait",value:function wait(h){this.waits.push(h)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:Gy.resolve()}},{key:"isReady",value:function isReady(){var h;if(this.isReadyLock)return!0;var d=zy(h=this.waits).call(h,(function(h){return h()}));return d&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=d,d}},{key:"setDefaults",value:function setDefaults(h){h.strokeStyle="rgba(0,0,0,0)",h.lineCap="butt",h.lineJoin="miter",h.miterLimit=4}},{key:"setViewBox",value:function setViewBox(h){var d=h.document,g=h.ctx,x=h.aspectRatio,b=h.width,S=h.desiredWidth,w=h.height,E=h.desiredHeight,P=h.minX,A=void 0===P?0:P,_=h.minY,k=void 0===_?0:_,C=h.refX,R=h.refY,M=h.clip,N=void 0!==M&&M,L=h.clipX,D=void 0===L?0:L,j=h.clipY,V=void 0===j?0:j,$=compressSpaces(x).replace(/^defer\s/,"").split(" "),U=lh($,2),B=U[0]||"xMidYMid",z=U[1]||"meet",G=b/S,q=w/E,X=Math.min(G,q),Y=Math.max(G,q),W=S,Q=E;"meet"===z&&(W*=X,Q*=X),"slice"===z&&(W*=Y,Q*=Y);var Z=new Tg(d,"refX",C),K=new Tg(d,"refY",R),J=Z.hasValue()&&K.hasValue();if(J&&g.translate(-X*Z.getPixels("x"),-X*K.getPixels("y")),N){var tt=X*D,et=X*V;g.beginPath(),g.moveTo(tt,et),g.lineTo(b,et),g.lineTo(b,w),g.lineTo(tt,w),g.closePath(),g.clip()}if(!J){var rt="meet"===z&&X===q,nt="slice"===z&&Y===q,it="meet"===z&&X===G,at="slice"===z&&Y===G;/^xMid/.test(B)&&(rt||nt)&&g.translate(b/2-W/2,0),/YMid$/.test(B)&&(it||at)&&g.translate(0,w/2-Q/2),/^xMax/.test(B)&&(rt||nt)&&g.translate(b-W,0),/YMax$/.test(B)&&(it||at)&&g.translate(0,w-Q)}switch(!0){case"none"===B:g.scale(G,q);break;case"meet"===z:g.scale(X,X);break;case"slice"===z:g.scale(Y,Y)}g.translate(-A,-k)}},{key:"start",value:function start(h){var d=this,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},x=g.enableRedraw,b=void 0!==x&&x,S=g.ignoreMouse,w=void 0!==S&&S,E=g.ignoreAnimation,P=void 0!==E&&E,A=g.ignoreDimensions,_=void 0!==A&&A,k=g.ignoreClear,C=void 0!==k&&k,R=g.forceRedraw,M=g.scaleWidth,N=g.scaleHeight,L=g.offsetX,D=g.offsetY,j=this.FRAMERATE,V=this.mouse,$=1e3/j;if(this.frameDuration=$,this.readyPromise=new Gy((function(h){d.resolveReady=h})),this.isReady()&&this.render(h,_,C,M,N,L,D),b){var U=Iy(),B=U,z=0,G=function tick(){U=Iy(),(z=U-B)>=$&&(B=U-z%$,d.shouldUpdate(P,R)&&(d.render(h,_,C,M,N,L,D),V.runEvents())),d.intervalId=sv(tick)};w||V.start(),this.intervalId=sv(G)}}},{key:"stop",value:function stop(){this.intervalId&&(sv.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(h,d){if(!h){var g,x=this.frameDuration,shouldUpdate=Ny(g=this.animations).call(g,(function(h,d){return d.update(x)||h}),!1);if(shouldUpdate)return!0}return!("function"!=typeof d||!d())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(h,d,g,x,b,S,w){var E=this.CLIENT_WIDTH,P=this.CLIENT_HEIGHT,A=this.viewPort,_=this.ctx,k=this.isFirstRender,C=_.canvas;A.clear(),C.width&&C.height?A.setCurrent(C.width,C.height):A.setCurrent(E,P);var R=h.getStyle("width"),M=h.getStyle("height");!d&&(k||"number"!=typeof x&&"number"!=typeof b)&&(R.hasValue()&&(C.width=R.getPixels("x"),C.style&&(C.style.width="".concat(C.width,"px"))),M.hasValue()&&(C.height=M.getPixels("y"),C.style&&(C.style.height="".concat(C.height,"px"))));var N=C.clientWidth||C.width,L=C.clientHeight||C.height;if(d&&R.hasValue()&&M.hasValue()&&(N=R.getPixels("x"),L=M.getPixels("y")),A.setCurrent(N,L),"number"==typeof S&&h.getAttribute("x",!0).setValue(S),"number"==typeof w&&h.getAttribute("y",!0).setValue(w),"number"==typeof x||"number"==typeof b){var D,j,V=toNumbers(h.getAttribute("viewBox").getString()),$=0,U=0;if("number"==typeof x){var B=h.getStyle("width");B.hasValue()?$=B.getPixels("x")/x:isNaN(V[2])||($=V[2]/x)}if("number"==typeof b){var z=h.getStyle("height");z.hasValue()?U=z.getPixels("y")/b:isNaN(V[3])||(U=V[3]/b)}$||($=U),U||(U=$),h.getAttribute("width",!0).setValue(x),h.getAttribute("height",!0).setValue(b);var G=h.getStyle("transform",!0,!0);G.setValue(Ey(D=Ey(j="".concat(G.getString()," scale(")).call(j,1/$,", ")).call(D,1/U,")"))}g||_.clearRect(0,0,N,L),h.render(_),k&&(this.isFirstRender=!1)}}]),Screen}();Ig.defaultWindow=Mg,Ig.defaultFetch=Ng;var Lg=Ig.defaultFetch,Dg="undefined"!=typeof DOMParser?DOMParser:null,jg=function(){function Parser(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=h.fetch,g=void 0===d?Lg:d,x=h.DOMParser,b=void 0===x?Dg:x;xy(this,Parser),this.fetch=g,this.DOMParser=b}var h,d;return by(Parser,[{key:"parse",value:(d=dy(Uh.mark((function _callee(h){return Uh.wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:if(!/^</.test(h)){d.next=2;break}return d.abrupt("return",this.parseFromString(h));case 2:return d.abrupt("return",this.load(h));case 3:case"end":return d.stop()}}),_callee,this)}))),function parse(h){return d.apply(this,arguments)})},{key:"parseFromString",value:function parseFromString(h){var d=new this.DOMParser;try{return this.checkDocument(d.parseFromString(h,"image/svg+xml"))}catch(g){return this.checkDocument(d.parseFromString(h,"text/xml"))}}},{key:"checkDocument",value:function checkDocument(h){var d=h.getElementsByTagName("parsererror")[0];if(d)throw new Error(d.textContent);return h}},{key:"load",value:(h=dy(Uh.mark((function _callee2(h){var d,g;return Uh.wrap((function _callee2$(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,this.fetch(h);case 2:return d=x.sent,x.next=5,d.text();case 5:return g=x.sent,x.abrupt("return",this.parseFromString(g));case 7:case"end":return x.stop()}}),_callee2,this)}))),function load(d){return h.apply(this,arguments)})}]),Parser}(),Vg=function(){function Translate(h,d){xy(this,Translate),this.type="translate",this.point=null,this.point=Cg.parse(d)}return by(Translate,[{key:"apply",value:function apply(h){var d=this.point,g=d.x,x=d.y;h.translate(g||0,x||0)}},{key:"unapply",value:function unapply(h){var d=this.point,g=d.x,x=d.y;h.translate(-1*g||0,-1*x||0)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.point,g=d.x,x=d.y;h.applyTransform([1,0,0,1,g||0,x||0])}}]),Translate}(),$g=function(){function Rotate(h,d,g){xy(this,Rotate),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var x=toNumbers(d);this.angle=new Tg(h,"angle",x[0]),this.originX=g[0],this.originY=g[1],this.cx=x[1]||0,this.cy=x[2]||0}return by(Rotate,[{key:"apply",value:function apply(h){var d=this.cx,g=this.cy,x=this.originX,b=this.originY,S=this.angle,w=d+x.getPixels("x"),E=g+b.getPixels("y");h.translate(w,E),h.rotate(S.getRadians()),h.translate(-w,-E)}},{key:"unapply",value:function unapply(h){var d=this.cx,g=this.cy,x=this.angle;h.translate(d,g),h.rotate(-1*x.getRadians()),h.translate(-d,-g)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.cx,g=this.cy,x=this.angle.getRadians();h.applyTransform([1,0,0,1,d||0,g||0]),h.applyTransform([Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0]),h.applyTransform([1,0,0,1,-d||0,-g||0])}}]),Rotate}(),Fg=function(){function Scale(h,d){xy(this,Scale),this.type="scale",this.scale=null;var g=Cg.parseScale(d);0!==g.x&&0!==g.y||(g.x=1e-8,g.y=1e-8),this.scale=g}return by(Scale,[{key:"apply",value:function apply(h){var d=this.scale,g=d.x,x=d.y;h.scale(g,x||g)}},{key:"unapply",value:function unapply(h){var d=this.scale,g=d.x,x=d.y;h.scale(1/g,1/x||g)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.scale,g=d.x,x=d.y;h.applyTransform([g||0,0,0,x||0,0,0])}}]),Scale}(),Ug=function(){function Matrix(h,d){xy(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(d)}return by(Matrix,[{key:"apply",value:function apply(h){var d=this.matrix;h.transform(d[0],d[1],d[2],d[3],d[4],d[5])}},{key:"unapply",value:function unapply(h){var d=this.matrix,g=d[0],x=d[2],b=d[4],S=d[1],w=d[3],E=d[5],P=1/(g*(1*w-0*E)-x*(1*S-0*E)+b*(0*S-0*w));h.transform(P*(1*w-0*E),P*(0*E-1*S),P*(0*b-1*x),P*(1*g-0*b),P*(x*E-b*w),P*(b*S-g*E))}},{key:"applyToPoint",value:function applyToPoint(h){h.applyTransform(this.matrix)}}]),Matrix}();function _createSuper(h){var d=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Bg=function(h){kv(Skew,Ug);var d=_createSuper(Skew);function Skew(h,g){var x;return xy(this,Skew),(x=d.call(this,h,g)).type="skew",x.angle=null,x.angle=new Tg(h,"angle",g),x}return Skew}();function _createSuper$1(h){var d=function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var zg=function(h){kv(SkewX,Bg);var d=_createSuper$1(SkewX);function SkewX(h,g){var x;return xy(this,SkewX),(x=d.call(this,h,g)).type="skewX",x.matrix=[1,0,Math.tan(x.angle.getRadians()),1,0,0],x}return SkewX}();function _createSuper$2(h){var d=function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Gg=function(h){kv(SkewY,Bg);var d=_createSuper$2(SkewY);function SkewY(h,g){var x;return xy(this,SkewY),(x=d.call(this,h,g)).type="skewY",x.matrix=[1,Math.tan(x.angle.getRadians()),0,1,0,0],x}return SkewY}();var Hg=function(){function Transform(h,d,g){var x=this;xy(this,Transform),this.document=h,this.transforms=[];var b=function parseTransforms(h){var d;return hv(d=compressSpaces(h)).call(d).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(d);Ph(b).call(b,(function(h){if("none"!==h){var d=function parseTransform(h){var d=h.split("("),g=lh(d,2),x=g[0],b=g[1];return[hv(x).call(x),hv(b).call(b).replace(")","")]}(h),b=lh(d,2),S=b[0],w=b[1],E=Transform.transformTypes[S];void 0!==E&&x.transforms.push(new E(x.document,w,g))}}))}return by(Transform,[{key:"apply",value:function apply(h){for(var d=this.transforms,g=d.length,x=0;x<g;x++)d[x].apply(h)}},{key:"unapply",value:function unapply(h){for(var d=this.transforms,g=d.length-1;g>=0;g--)d[g].unapply(h)}},{key:"applyToPoint",value:function applyToPoint(h){for(var d=this.transforms,g=d.length,x=0;x<g;x++)d[x].applyToPoint(h)}}],[{key:"fromElement",value:function fromElement(h,d){var g=d.getStyle("transform",!1,!0),x=d.getStyle("transform-origin",!1,!0).split(),b=lh(x,2),S=b[0],w=b[1],E=[S,void 0===w?S:w];return g.hasValue()?new Transform(h,g.getString(),E):null}}]),Transform}();Hg.transformTypes={translate:Vg,rotate:$g,scale:Fg,matrix:Ug,skewX:zg,skewY:Gg};var qg=function(){function Element(h,d){var g,x,b=this,S=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(xy(this,Element),this.document=h,this.node=d,this.captureTextNodes=S,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],d&&1===d.nodeType){if(Ph(g=nd(d.attributes)).call(g,(function(d){var g=normalizeAttributeName(d.nodeName);b.attributes[g]=new Tg(h,g,d.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var w,E=tc(w=this.getAttribute("style").getString().split(";")).call(w,(function(h){return hv(h).call(h)}));Ph(E).call(E,(function(d){var g;if(d){var x=tc(g=d.split(":")).call(g,(function(h){return hv(h).call(h)})),S=lh(x,2),w=S[0],E=S[1];b.styles[w]=new Tg(h,w,E)}}))}var P=h.definitions,A=this.getAttribute("id");A.hasValue()&&(P[A.getValue()]||(P[A.getValue()]=this)),Ph(x=nd(d.childNodes)).call(x,(function(d){if(1===d.nodeType)b.addChild(d);else if(S&&(3===d.nodeType||4===d.nodeType)){var g=h.createTextNode(d);g.getText().length>0&&b.addChild(g)}}))}}return by(Element,[{key:"getAttribute",value:function getAttribute(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=this.attributes[h];if(!g&&d){var x=new Tg(this.document,h,"");return this.attributes[h]=x,x}return g||Tg.empty(this.document)}},{key:"getHrefAttribute",value:function getHrefAttribute(){for(var h in this.attributes)if("href"===h||/:href$/.test(h))return this.attributes[h];return Tg.empty(this.document)}},{key:"getStyle",value:function getStyle(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],x=this.styles[h];if(x)return x;var b=this.getAttribute(h);if(b&&b.hasValue())return this.styles[h]=b,b;if(!g){var S=this.parent;if(S){var w=S.getStyle(h);if(w&&w.hasValue())return w}}if(d){var E=new Tg(this.document,h,"");return this.styles[h]=E,E}return x||Tg.empty(this.document)}},{key:"render",value:function render(h){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(h.save(),this.getStyle("mask").hasValue()){var d=this.getStyle("mask").getDefinition();d&&(this.applyEffects(h),d.apply(h,this))}else if("none"!==this.getStyle("filter").getValue("none")){var g=this.getStyle("filter").getDefinition();g&&(this.applyEffects(h),g.apply(h,this))}else this.setContext(h),this.renderChildren(h),this.clearContext(h);h.restore()}}},{key:"setContext",value:function setContext(h){}},{key:"applyEffects",value:function applyEffects(h){var d=Hg.fromElement(this.document,this);d&&d.apply(h);var g=this.getStyle("clip-path",!1,!0);if(g.hasValue()){var x=g.getDefinition();x&&x.apply(h)}}},{key:"clearContext",value:function clearContext(h){}},{key:"renderChildren",value:function renderChildren(h){var d;Ph(d=this.children).call(d,(function(d){d.render(h)}))}},{key:"addChild",value:function addChild(h){var d,g=h instanceof Element?h:this.document.createElement(h);g.parent=this,rd(d=Element.ignoreChildTypes).call(d,g.type)||this.children.push(g)}},{key:"matchesSelector",value:function matchesSelector(h){var d,g=this.node;if("function"==typeof g.matches)return g.matches(h);var x=g.getAttribute("class");return!(!x||""===x)&&Xv(d=x.split(" ")).call(d,(function(d){if(".".concat(d)===h)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var h=this.document,d=h.styles,g=h.stylesSpecificity;for(var x in d)if("@"!==x[0]&&this.matchesSelector(x)){var b=d[x],S=g[x];if(b)for(var w in b){var E=this.stylesSpecificity[w];void 0===E&&(E="000"),S>=E&&(this.styles[w]=b[w],this.stylesSpecificity[w]=S)}}}},{key:"removeStyles",value:function removeStyles(h,d){return Ny(d).call(d,(function(d,g){var x,b=h.getStyle(g);if(!b.hasValue())return d;var S=b.getString();return b.setValue(""),Ey(x=[]).call(x,Vv(d),[[g,S]])}),[])}},{key:"restoreStyles",value:function restoreStyles(h,d){Ph(d).call(d,(function(d){var g=lh(d,2),x=g[0],b=g[1];h.getStyle(x,!0).setValue(b)}))}}]),Element}();function _createSuper$3(h){var d=function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}qg.ignoreChildTypes=["title"];var Xg=function(h){kv(UnknownElement,qg);var d=_createSuper$3(UnknownElement);function UnknownElement(h,g,x){return xy(this,UnknownElement),d.call(this,h,g,x)}return UnknownElement}();function wrapFontFamily(h){var d=hv(h).call(h);return/^('|")/.test(d)?d:'"'.concat(d,'"')}function prepareFontStyle(h){if(!h)return"";var d=hv(h).call(h).toLowerCase();switch(d){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return d;default:return/^oblique\s+(-|)\d+deg$/.test(d)?d:""}}function prepareFontWeight(h){if(!h)return"";var d=hv(h).call(h).toLowerCase();switch(d){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return d;default:return/^[\d.]+$/.test(d)?d:""}}var Yg=function(){function Font(h,d,g,x,b,S){xy(this,Font);var w=S?"string"==typeof S?Font.parse(S):S:{};this.fontFamily=b||w.fontFamily,this.fontSize=x||w.fontSize,this.fontStyle=h||w.fontStyle,this.fontWeight=g||w.fontWeight,this.fontVariant=d||w.fontVariant}return by(Font,[{key:"toString",value:function toString(){var d,g,x;return hv(d=[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(g=this.fontFamily,void 0===h?g:tc(x=hv(g).call(g).split(",")).call(x,wrapFontFamily).join(","))].join(" ")).call(d)}}],[{key:"parse",value:function parse(){var h,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",g=arguments.length>1?arguments[1]:void 0,x="",b="",S="",w="",E="",P=hv(h=compressSpaces(d)).call(h).split(" "),A={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return Ph(P).call(P,(function(h){var d,g,P;switch(!0){case!A.fontStyle&&rd(d=Font.styles).call(d,h):"inherit"!==h&&(x=h),A.fontStyle=!0;break;case!A.fontVariant&&rd(g=Font.variants).call(g,h):"inherit"!==h&&(b=h),A.fontStyle=!0,A.fontVariant=!0;break;case!A.fontWeight&&rd(P=Font.weights).call(P,h):"inherit"!==h&&(S=h),A.fontStyle=!0,A.fontVariant=!0,A.fontWeight=!0;break;case!A.fontSize:if("inherit"!==h){var _=h.split("/"),k=lh(_,1);w=k[0]}A.fontStyle=!0,A.fontVariant=!0,A.fontWeight=!0,A.fontSize=!0;break;default:"inherit"!==h&&(E+=h)}})),new Font(x,b,S,w,E,g)}}]),Font}();Yg.styles="normal|italic|oblique|inherit",Yg.variants="normal|small-caps|inherit",Yg.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Wg=function(){function BoundingBox(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,x=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;xy(this,BoundingBox),this.x1=h,this.y1=d,this.x2=g,this.y2=x,this.addPoint(h,d),this.addPoint(g,x)}return by(BoundingBox,[{key:"addPoint",value:function addPoint(h,d){void 0!==h&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=h,this.x2=h),h<this.x1&&(this.x1=h),h>this.x2&&(this.x2=h)),void 0!==d&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=d,this.y2=d),d<this.y1&&(this.y1=d),d>this.y2&&(this.y2=d))}},{key:"addX",value:function addX(h){this.addPoint(h,null)}},{key:"addY",value:function addY(h){this.addPoint(null,h)}},{key:"addBoundingBox",value:function addBoundingBox(h){if(h){var d=h.x1,g=h.y1,x=h.x2,b=h.y2;this.addPoint(d,g),this.addPoint(x,b)}}},{key:"sumCubic",value:function sumCubic(h,d,g,x,b){return Math.pow(1-h,3)*d+3*Math.pow(1-h,2)*h*g+3*(1-h)*Math.pow(h,2)*x+Math.pow(h,3)*b}},{key:"bezierCurveAdd",value:function bezierCurveAdd(h,d,g,x,b){var S=6*d-12*g+6*x,w=-3*d+9*g-9*x+3*b,E=3*g-3*d;if(0!==w){var P=Math.pow(S,2)-4*E*w;if(!(P<0)){var A=(-S+Math.sqrt(P))/(2*w);0<A&&A<1&&(h?this.addX(this.sumCubic(A,d,g,x,b)):this.addY(this.sumCubic(A,d,g,x,b)));var _=(-S-Math.sqrt(P))/(2*w);0<_&&_<1&&(h?this.addX(this.sumCubic(_,d,g,x,b)):this.addY(this.sumCubic(_,d,g,x,b)))}}else{if(0===S)return;var k=-E/S;0<k&&k<1&&(h?this.addX(this.sumCubic(k,d,g,x,b)):this.addY(this.sumCubic(k,d,g,x,b)))}}},{key:"addBezierCurve",value:function addBezierCurve(h,d,g,x,b,S,w,E){this.addPoint(h,d),this.addPoint(w,E),this.bezierCurveAdd(!0,h,g,b,w),this.bezierCurveAdd(!1,d,x,S,E)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(h,d,g,x,b,S){var w=h+2/3*(g-h),E=d+2/3*(x-d),P=w+1/3*(b-h),A=E+1/3*(S-d);this.addBezierCurve(h,d,w,P,E,A,b,S)}},{key:"isPointInBox",value:function isPointInBox(h,d){var g=this.x1,x=this.y1,b=this.x2,S=this.y2;return g<=h&&h<=b&&x<=d&&d<=S}},{key:"x",get:function get(){return this.x1}},{key:"y",get:function get(){return this.y1}},{key:"width",get:function get(){return this.x2-this.x1}},{key:"height",get:function get(){return this.y2-this.y1}}]),BoundingBox}();function _createSuper$4(h){var d=function _isNativeReflectConstruct$4(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Qg=function(h){kv(RenderedElement,qg);var d=_createSuper$4(RenderedElement);function RenderedElement(){var h;return xy(this,RenderedElement),(h=d.apply(this,arguments)).modifiedEmSizeStack=!1,h}return by(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var h=1,d=this;d;){var g=d.getStyle("opacity",!1,!0);g.hasValue(!0)&&(h*=g.getNumber()),d=d.parent}return h}},{key:"setContext",value:function setContext(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!d){var g=this.getStyle("fill"),x=this.getStyle("fill-opacity"),b=this.getStyle("stroke"),S=this.getStyle("stroke-opacity");if(g.isUrlDefinition()){var w=g.getFillStyleDefinition(this,x);w&&(h.fillStyle=w)}else if(g.hasValue()){"currentColor"===g.getString()&&g.setValue(this.getStyle("color").getColor());var E=g.getColor();"inherit"!==E&&(h.fillStyle="none"===E?"rgba(0,0,0,0)":E)}if(x.hasValue()){var P=new Tg(this.document,"fill",h.fillStyle).addOpacity(x).getColor();h.fillStyle=P}if(b.isUrlDefinition()){var A=b.getFillStyleDefinition(this,S);A&&(h.strokeStyle=A)}else if(b.hasValue()){"currentColor"===b.getString()&&b.setValue(this.getStyle("color").getColor());var _=b.getString();"inherit"!==_&&(h.strokeStyle="none"===_?"rgba(0,0,0,0)":_)}if(S.hasValue()){var k=new Tg(this.document,"stroke",h.strokeStyle).addOpacity(S).getString();h.strokeStyle=k}var C=this.getStyle("stroke-width");if(C.hasValue()){var R=C.getPixels();h.lineWidth=R||1e-8}var M=this.getStyle("stroke-linecap"),N=this.getStyle("stroke-linejoin"),L=this.getStyle("stroke-miterlimit"),D=this.getStyle("paint-order"),j=this.getStyle("stroke-dasharray"),V=this.getStyle("stroke-dashoffset");if(M.hasValue()&&(h.lineCap=M.getString()),N.hasValue()&&(h.lineJoin=N.getString()),L.hasValue()&&(h.miterLimit=L.getNumber()),D.hasValue()&&(h.paintOrder=D.getValue()),j.hasValue()&&"none"!==j.getString()){var $=toNumbers(j.getString());void 0!==h.setLineDash?h.setLineDash($):void 0!==h.webkitLineDash?h.webkitLineDash=$:void 0===h.mozDash||1===$.length&&0===$[0]||(h.mozDash=$);var U=V.getPixels();void 0!==h.lineDashOffset?h.lineDashOffset=U:void 0!==h.webkitLineDashOffset?h.webkitLineDashOffset=U:void 0!==h.mozDashOffset&&(h.mozDashOffset=U)}}if(this.modifiedEmSizeStack=!1,void 0!==h.font){var B=this.getStyle("font"),z=this.getStyle("font-style"),G=this.getStyle("font-variant"),q=this.getStyle("font-weight"),X=this.getStyle("font-size"),Y=this.getStyle("font-family"),W=new Yg(z.getString(),G.getString(),q.getString(),X.hasValue()?"".concat(X.getPixels(!0),"px"):"",Y.getString(),Yg.parse(B.getString(),h.font));z.setValue(W.fontStyle),G.setValue(W.fontVariant),q.setValue(W.fontWeight),X.setValue(W.fontSize),Y.setValue(W.fontFamily),h.font=W.toString(),X.isPixels()&&(this.document.emSize=X.getPixels(),this.modifiedEmSizeStack=!0)}d||(this.applyEffects(h),h.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(h){bd(Iv(RenderedElement.prototype),"clearContext",this).call(this,h),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}();function _createSuper$5(h){var d=function _isNativeReflectConstruct$5(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Zg=function(h){kv(TextElement,Qg);var d=_createSuper$5(TextElement);function TextElement(h,g,x){var b;return xy(this,TextElement),(b=d.call(this,h,g,(this instanceof TextElement?this.constructor:void 0)===TextElement||x)).type="text",b.x=0,b.y=0,b.measureCache=-1,b}return by(TextElement,[{key:"setContext",value:function setContext(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];bd(Iv(TextElement.prototype),"setContext",this).call(this,h,d);var g=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();g&&(h.textBaseline=g)}},{key:"initializeCoordinates",value:function initializeCoordinates(h){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var d=this.getAttribute("dx"),g=this.getAttribute("dy");d.hasValue()&&(this.x+=d.getPixels("x")),g.hasValue()&&(this.y+=g.getPixels("y")),this.x+=this.getAnchorDelta(h,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(h){var d,g=this;if("text"!==this.type)return this.getTElementBoundingBox(h);this.initializeCoordinates(h);var x=null;return Ph(d=this.children).call(d,(function(d,b){var S=g.getChildBoundingBox(h,g,g,b);x?x.addBoundingBox(S):x=S})),x}},{key:"getFontSize",value:function getFontSize(){var h=this.document,d=this.parent,g=Yg.parse(h.ctx.font).fontSize;return d.getStyle("font-size").getNumber(g)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(h){var d=this.getFontSize();return new Wg(this.x,this.y-d,this.x+this.measureText(h),this.y)}},{key:"getGlyph",value:function getGlyph(h,d,g){var x=d[g],b=null;if(h.isArabic){var S=d.length,w=d[g-1],E=d[g+1],P="isolated";(0===g||" "===w)&&g<S-2&&" "!==E&&(P="terminal"),g>0&&" "!==w&&g<S-2&&" "!==E&&(P="medial"),g>0&&" "!==w&&(g===S-1||" "===E)&&(P="initial"),void 0!==h.glyphs[x]&&((b=h.glyphs[x][P])||"glyph"!==h.glyphs[x].type||(b=h.glyphs[x]))}else b=h.glyphs[x];return b||(b=h.missingGlyph),b}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(h){var d=h||this.node,g=nd(d.parentNode.childNodes),x=dd(g).call(g,d),b=g.length-1,S=compressSpaces(d.value||d.text||d.textContent||"");return 0===x&&(S=function trimLeft(h){return h.replace(/^[\n \t]+/,"")}(S)),x===b&&(S=function trimRight(h){return h.replace(/[\n \t]+$/,"")}(S)),S}},{key:"renderChildren",value:function renderChildren(h){var d,g=this;if("text"===this.type){this.initializeCoordinates(h),Ph(d=this.children).call(d,(function(d,x){g.renderChild(h,g,g,x)}));var x=this.document.screen.mouse;x.isWorking()&&x.checkBoundingBox(this,this.getBoundingBox(h))}else this.renderTElementChildren(h)}},{key:"renderTElementChildren",value:function renderTElementChildren(h){var d=this.document,g=this.parent,x=this.getText(),b=g.getStyle("font-family").getDefinition();if(b)for(var S,w=b.fontFace.unitsPerEm,E=Yg.parse(d.ctx.font),P=g.getStyle("font-size").getNumber(E.fontSize),A=g.getStyle("font-style").getString(E.fontStyle),_=P/w,k=b.isRTL?sd(S=x.split("")).call(S).join(""):x,C=toNumbers(g.getAttribute("dx").getString()),R=k.length,M=0;M<R;M++){var N=this.getGlyph(b,k,M);h.translate(this.x,this.y),h.scale(_,-_);var L=h.lineWidth;h.lineWidth=h.lineWidth*w/P,"italic"===A&&h.transform(1,0,.4,1,0,0),N.render(h),"italic"===A&&h.transform(1,0,-.4,1,0,0),h.lineWidth=L,h.scale(1/_,-1/_),h.translate(-this.x,-this.y),this.x+=P*(N.horizAdvX||b.horizAdvX)/w,void 0===C[M]||isNaN(C[M])||(this.x+=C[M])}else{var D=this.x,j=this.y;"stroke"===h.paintOrder?(h.strokeStyle&&h.strokeText(x,D,j),h.fillStyle&&h.fillText(x,D,j)):(h.fillStyle&&h.fillText(x,D,j),h.strokeStyle&&h.strokeText(x,D,j))}}},{key:"getAnchorDelta",value:function getAnchorDelta(h,d,g){var x=this.getStyle("text-anchor").getString("start");if("start"!==x){for(var b=d.children,S=b.length,w=null,E=0,P=g;P<S&&(w=b[P],!(P>g&&w.getAttribute("x").hasValue()||w.getAttribute("text-anchor").hasValue()));P++)E+=w.measureTextRecursive(h);return-1*("end"===x?E:E/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(h,d,g,x){var b=g.children[x];if("function"!=typeof b.measureText)return b;h.save(),b.setContext(h,!0);var S=b.getAttribute("x"),w=b.getAttribute("y"),E=b.getAttribute("dx"),P=b.getAttribute("dy"),A=b.getAttribute("text-anchor").getString("start");if(0===x&&"textNode"!==b.type&&(S.hasValue()||S.setValue(d.getAttribute("x").getValue("0")),w.hasValue()||w.setValue(d.getAttribute("y").getValue("0")),E.hasValue()||E.setValue(d.getAttribute("dx").getValue("0")),P.hasValue()||P.setValue(d.getAttribute("dy").getValue("0"))),S.hasValue()){if(b.x=S.getPixels("x")+d.getAnchorDelta(h,g,x),"start"!==A){var _=b.measureTextRecursive(h);b.x+=-1*("end"===A?_:_/2)}E.hasValue()&&(b.x+=E.getPixels("x"))}else{if("start"!==A){var k=b.measureTextRecursive(h);d.x+=-1*("end"===A?k:k/2)}E.hasValue()&&(d.x+=E.getPixels("x")),b.x=d.x}return d.x=b.x+b.measureText(h),w.hasValue()?(b.y=w.getPixels("y"),P.hasValue()&&(b.y+=P.getPixels("y"))):(P.hasValue()&&(d.y+=P.getPixels("y")),b.y=d.y),d.y=b.y,b.clearContext(h),h.restore(),b}},{key:"getChildBoundingBox",value:function getChildBoundingBox(h,d,g,x){var b,S=this.adjustChildCoordinates(h,d,g,x);if("function"!=typeof S.getBoundingBox)return null;var w=S.getBoundingBox(h);return w?(Ph(b=S.children).call(b,(function(g,x){var b=d.getChildBoundingBox(h,d,S,x);w.addBoundingBox(b)})),w):null}},{key:"renderChild",value:function renderChild(h,d,g,x){var b,S=this.adjustChildCoordinates(h,d,g,x);S.render(h),Ph(b=S.children).call(b,(function(g,x){d.renderChild(h,d,S,x)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(h){var d;return Ny(d=this.children).call(d,(function(d,g){return d+g.measureTextRecursive(h)}),this.measureText(h))}},{key:"measureText",value:function measureText(h){var d=this.measureCache;if(~d)return d;var g=this.getText(),x=this.measureTargetText(h,g);return this.measureCache=x,x}},{key:"measureTargetText",value:function measureTargetText(h,d){if(!d.length)return 0;var g=this.parent,x=g.getStyle("font-family").getDefinition();if(x){for(var b,S=this.getFontSize(),w=x.isRTL?sd(b=d.split("")).call(b).join(""):d,E=toNumbers(g.getAttribute("dx").getString()),P=w.length,A=0,_=0;_<P;_++){A+=(this.getGlyph(x,w,_).horizAdvX||x.horizAdvX)*S/x.fontFace.unitsPerEm,void 0===E[_]||isNaN(E[_])||(A+=E[_])}return A}if(!h.measureText)return 10*d.length;h.save(),this.setContext(h,!0);var k=h.measureText(d).width;return this.clearContext(h),h.restore(),k}}]),TextElement}();function _createSuper$6(h){var d=function _isNativeReflectConstruct$6(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Kg=function(h){kv(TSpanElement,Zg);var d=_createSuper$6(TSpanElement);function TSpanElement(h,g,x){var b;return xy(this,TSpanElement),(b=d.call(this,h,g,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||x)).type="tspan",b.text=b.children.length>0?"":b.getTextFromNode(),b}return by(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}();function _createSuper$7(h){var d=function _isNativeReflectConstruct$7(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Jg=function(h){kv(TextNode,Kg);var d=_createSuper$7(TextNode);function TextNode(){var h;return xy(this,TextNode),(h=d.apply(this,arguments)).type="textNode",h}return TextNode}();function _createSuper$8(h){var d=function _isNativeReflectConstruct$8(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var tm=function(h){kv(PathParser,Nd);var d=_createSuper$8(PathParser);function PathParser(h){var g;return xy(this,PathParser),(g=d.call(this,h.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,g.start=null,g.current=null,g.command=null,g.commands=g.commands,g.i=-1,g.previousCommand=null,g.points=[],g.angles=[],g}return by(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Cg(0,0),this.control=new Cg(0,0),this.current=new Cg(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function isEnd(){return this.i>=this.commands.length-1}},{key:"next",value:function next(){var h=this.commands[++this.i];return this.previousCommand=this.command,this.command=h,h}},{key:"getPoint",value:function getPoint(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",g=new Cg(this.command[h],this.command[d]);return this.makeAbsolute(g)}},{key:"getAsControlPoint",value:function getAsControlPoint(h,d){var g=this.getPoint(h,d);return this.control=g,g}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(h,d){var g=this.getPoint(h,d);return this.current=g,g}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var h=this.previousCommand.type;if(h!==Nd.CURVE_TO&&h!==Nd.SMOOTH_CURVE_TO&&h!==Nd.QUAD_TO&&h!==Nd.SMOOTH_QUAD_TO)return this.current;var d=this.current,g=d.x,x=d.y,b=this.control,S=b.x,w=b.y;return new Cg(2*g-S,2*x-w)}},{key:"makeAbsolute",value:function makeAbsolute(h){if(this.command.relative){var d=this.current,g=d.x,x=d.y;h.x+=g,h.y+=x}return h}},{key:"addMarker",value:function addMarker(h,d,g){var x=this.points,b=this.angles;g&&b.length>0&&!b[b.length-1]&&(b[b.length-1]=x[x.length-1].angleTo(g)),this.addMarkerAngle(h,d?d.angleTo(h):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(h,d){this.points.push(h),this.angles.push(d)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var h=this.angles,d=h.length,g=0;g<d;g++)if(!h[g])for(var x=g+1;x<d;x++)if(h[x]){h[g]=h[x];break}return h}}]),PathParser}();function _createSuper$9(h){var d=function _isNativeReflectConstruct$9(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var em=function(h){kv(PathElement,Qg);var d=_createSuper$9(PathElement);function PathElement(h,g,x){var b;return xy(this,PathElement),(b=d.call(this,h,g,x)).type="path",b.pathParser=null,b.pathParser=new tm(b.getAttribute("d").getString()),b}return by(PathElement,[{key:"path",value:function path(h){var d=this.pathParser,g=new Wg;for(d.reset(),h&&h.beginPath();!d.isEnd();)switch(d.next().type){case tm.MOVE_TO:this.pathM(h,g);break;case tm.LINE_TO:this.pathL(h,g);break;case tm.HORIZ_LINE_TO:this.pathH(h,g);break;case tm.VERT_LINE_TO:this.pathV(h,g);break;case tm.CURVE_TO:this.pathC(h,g);break;case tm.SMOOTH_CURVE_TO:this.pathS(h,g);break;case tm.QUAD_TO:this.pathQ(h,g);break;case tm.SMOOTH_QUAD_TO:this.pathT(h,g);break;case tm.ARC:this.pathA(h,g);break;case tm.CLOSE_PATH:this.pathZ(h,g)}return g}},{key:"getBoundingBox",value:function getBoundingBox(h){return this.path()}},{key:"getMarkers",value:function getMarkers(){var h=this.pathParser,d=h.getMarkerPoints(),g=h.getMarkerAngles();return tc(d).call(d,(function(h,d){return[h,g[d]]}))}},{key:"renderChildren",value:function renderChildren(h){this.path(h),this.document.screen.mouse.checkPath(this,h);var d=this.getStyle("fill-rule");""!==h.fillStyle&&("inherit"!==d.getString("inherit")?Ed(h).call(h,d.getString()):Ed(h).call(h)),""!==h.strokeStyle&&h.stroke();var g=this.getMarkers();if(g){var x=g.length-1,b=this.getStyle("marker-start"),S=this.getStyle("marker-mid"),w=this.getStyle("marker-end");if(b.isUrlDefinition()){var E=b.getDefinition(),P=lh(g[0],2),A=P[0],_=P[1];E.render(h,A,_)}if(S.isUrlDefinition())for(var k=S.getDefinition(),C=1;C<x;C++){var R=lh(g[C],2),M=R[0],N=R[1];k.render(h,M,N)}if(w.isUrlDefinition()){var L=w.getDefinition(),D=lh(g[x],2),j=D[0],V=D[1];L.render(h,j,V)}}}},{key:"pathM",value:function pathM(h,d){var g=this.pathParser,x=PathElement.pathM(g).point,b=x.x,S=x.y;g.addMarker(x),d.addPoint(b,S),h&&h.moveTo(b,S)}},{key:"pathL",value:function pathL(h,d){var g=this.pathParser,x=PathElement.pathL(g),b=x.current,S=x.point,w=S.x,E=S.y;g.addMarker(S,b),d.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathH",value:function pathH(h,d){var g=this.pathParser,x=PathElement.pathH(g),b=x.current,S=x.point,w=S.x,E=S.y;g.addMarker(S,b),d.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathV",value:function pathV(h,d){var g=this.pathParser,x=PathElement.pathV(g),b=x.current,S=x.point,w=S.x,E=S.y;g.addMarker(S,b),d.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathC",value:function pathC(h,d){var g=this.pathParser,x=PathElement.pathC(g),b=x.current,S=x.point,w=x.controlPoint,E=x.currentPoint;g.addMarker(E,w,S),d.addBezierCurve(b.x,b.y,S.x,S.y,w.x,w.y,E.x,E.y),h&&h.bezierCurveTo(S.x,S.y,w.x,w.y,E.x,E.y)}},{key:"pathS",value:function pathS(h,d){var g=this.pathParser,x=PathElement.pathS(g),b=x.current,S=x.point,w=x.controlPoint,E=x.currentPoint;g.addMarker(E,w,S),d.addBezierCurve(b.x,b.y,S.x,S.y,w.x,w.y,E.x,E.y),h&&h.bezierCurveTo(S.x,S.y,w.x,w.y,E.x,E.y)}},{key:"pathQ",value:function pathQ(h,d){var g=this.pathParser,x=PathElement.pathQ(g),b=x.current,S=x.controlPoint,w=x.currentPoint;g.addMarker(w,S,S),d.addQuadraticCurve(b.x,b.y,S.x,S.y,w.x,w.y),h&&h.quadraticCurveTo(S.x,S.y,w.x,w.y)}},{key:"pathT",value:function pathT(h,d){var g=this.pathParser,x=PathElement.pathT(g),b=x.current,S=x.controlPoint,w=x.currentPoint;g.addMarker(w,S,S),d.addQuadraticCurve(b.x,b.y,S.x,S.y,w.x,w.y),h&&h.quadraticCurveTo(S.x,S.y,w.x,w.y)}},{key:"pathA",value:function pathA(h,d){var g=this.pathParser,x=PathElement.pathA(g),b=x.currentPoint,S=x.rX,w=x.rY,E=x.sweepFlag,P=x.xAxisRotation,A=x.centp,_=x.a1,k=x.ad,C=1-E?1:-1,R=_+C*(k/2),M=new Cg(A.x+S*Math.cos(R),A.y+w*Math.sin(R));if(g.addMarkerAngle(M,R-C*Math.PI/2),g.addMarkerAngle(b,R-C*Math.PI),d.addPoint(b.x,b.y),h&&!isNaN(_)&&!isNaN(k)){var N=S>w?S:w,L=S>w?1:S/w,D=S>w?w/S:1;h.translate(A.x,A.y),h.rotate(P),h.scale(L,D),h.arc(0,0,N,_,_+k,Boolean(1-E)),h.scale(1/L,1/D),h.rotate(-P),h.translate(-A.x,-A.y)}}},{key:"pathZ",value:function pathZ(h,d){PathElement.pathZ(this.pathParser),h&&d.x1!==d.x2&&d.y1!==d.y2&&h.closePath()}}],[{key:"pathM",value:function pathM(h){var d=h.getAsCurrentPoint();return h.start=h.current,{point:d}}},{key:"pathL",value:function pathL(h){return{current:h.current,point:h.getAsCurrentPoint()}}},{key:"pathH",value:function pathH(h){var d=h.current,g=h.command,x=new Cg((g.relative?d.x:0)+g.x,d.y);return h.current=x,{current:d,point:x}}},{key:"pathV",value:function pathV(h){var d=h.current,g=h.command,x=new Cg(d.x,(g.relative?d.y:0)+g.y);return h.current=x,{current:d,point:x}}},{key:"pathC",value:function pathC(h){return{current:h.current,point:h.getPoint("x1","y1"),controlPoint:h.getAsControlPoint("x2","y2"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathS",value:function pathS(h){return{current:h.current,point:h.getReflectedControlPoint(),controlPoint:h.getAsControlPoint("x2","y2"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathQ",value:function pathQ(h){return{current:h.current,controlPoint:h.getAsControlPoint("x1","y1"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathT",value:function pathT(h){var d=h.current,g=h.getReflectedControlPoint();return h.control=g,{current:d,controlPoint:g,currentPoint:h.getAsCurrentPoint()}}},{key:"pathA",value:function pathA(h){var d=h.current,g=h.command,x=g.rX,b=g.rY,S=g.xRot,w=g.lArcFlag,E=g.sweepFlag,P=S*(Math.PI/180),A=h.getAsCurrentPoint(),_=new Cg(Math.cos(P)*(d.x-A.x)/2+Math.sin(P)*(d.y-A.y)/2,-Math.sin(P)*(d.x-A.x)/2+Math.cos(P)*(d.y-A.y)/2),k=Math.pow(_.x,2)/Math.pow(x,2)+Math.pow(_.y,2)/Math.pow(b,2);k>1&&(x*=Math.sqrt(k),b*=Math.sqrt(k));var C=(w===E?-1:1)*Math.sqrt((Math.pow(x,2)*Math.pow(b,2)-Math.pow(x,2)*Math.pow(_.y,2)-Math.pow(b,2)*Math.pow(_.x,2))/(Math.pow(x,2)*Math.pow(_.y,2)+Math.pow(b,2)*Math.pow(_.x,2)));isNaN(C)&&(C=0);var R=new Cg(C*x*_.y/b,C*-b*_.x/x),M=new Cg((d.x+A.x)/2+Math.cos(P)*R.x-Math.sin(P)*R.y,(d.y+A.y)/2+Math.sin(P)*R.x+Math.cos(P)*R.y),N=vectorsAngle([1,0],[(_.x-R.x)/x,(_.y-R.y)/b]),L=[(_.x-R.x)/x,(_.y-R.y)/b],D=[(-_.x-R.x)/x,(-_.y-R.y)/b],j=vectorsAngle(L,D);return vectorsRatio(L,D)<=-1&&(j=Math.PI),vectorsRatio(L,D)>=1&&(j=0),{currentPoint:A,rX:x,rY:b,sweepFlag:E,xAxisRotation:P,centp:M,a1:N,ad:j}}},{key:"pathZ",value:function pathZ(h){h.current=h.start}}]),PathElement}();function _createSuper$a(h){var d=function _isNativeReflectConstruct$a(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var rm=function(h){kv(SVGElement,Qg);var d=_createSuper$a(SVGElement);function SVGElement(){var h;return xy(this,SVGElement),(h=d.apply(this,arguments)).type="svg",h.root=!1,h}return by(SVGElement,[{key:"setContext",value:function setContext(h){var d=this.document,g=d.screen,x=d.window,b=h.canvas;if(g.setDefaults(h),b.style&&void 0!==h.font&&x&&void 0!==x.getComputedStyle){h.font=x.getComputedStyle(b).getPropertyValue("font");var S=new Tg(d,"fontSize",Yg.parse(h.font).fontSize);S.hasValue()&&(d.rootEmSize=S.getPixels("y"),d.emSize=d.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var w=g.viewPort,E=w.width,P=w.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var A=this.getAttribute("refX"),_=this.getAttribute("refY"),k=this.getAttribute("viewBox"),C=k.hasValue()?toNumbers(k.getString()):null,R=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),M=0,N=0,L=0,D=0;C&&(M=C[0],N=C[1]),this.root||(E=this.getStyle("width").getPixels("x"),P=this.getStyle("height").getPixels("y"),"marker"===this.type&&(L=M,D=N,M=0,N=0)),g.viewPort.setCurrent(E,P),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),bd(Iv(SVGElement.prototype),"setContext",this).call(this,h),h.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),C&&(E=C[2],P=C[3]),d.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:g.viewPort.width,desiredWidth:E,height:g.viewPort.height,desiredHeight:P,minX:M,minY:N,refX:A.getValue(),refY:_.getValue(),clip:R,clipX:L,clipY:D}),C&&(g.viewPort.removeCurrent(),g.viewPort.setCurrent(E,P))}},{key:"clearContext",value:function clearContext(h){bd(Iv(SVGElement.prototype),"clearContext",this).call(this,h),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function resize(h){var d,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,x=arguments.length>2&&void 0!==arguments[2]&&arguments[2],b=this.getAttribute("width",!0),S=this.getAttribute("height",!0),w=this.getAttribute("viewBox"),E=this.getAttribute("style"),P=b.getNumber(0),A=S.getNumber(0);if(x)if("string"==typeof x)this.getAttribute("preserveAspectRatio",!0).setValue(x);else{var _=this.getAttribute("preserveAspectRatio");_.hasValue()&&_.setValue(_.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}(b.setValue(h),S.setValue(g),w.hasValue())||w.setValue(Ey(d="0 0 ".concat(P||h," ")).call(d,A||g));if(E.hasValue()){var k=this.getStyle("width"),C=this.getStyle("height");k.hasValue()&&k.setValue("".concat(h,"px")),C.hasValue()&&C.setValue("".concat(g,"px"))}}}]),SVGElement}();function _createSuper$b(h){var d=function _isNativeReflectConstruct$b(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var nm=function(h){kv(RectElement,em);var d=_createSuper$b(RectElement);function RectElement(){var h;return xy(this,RectElement),(h=d.apply(this,arguments)).type="rect",h}return by(RectElement,[{key:"path",value:function path(h){var d=this.getAttribute("x").getPixels("x"),g=this.getAttribute("y").getPixels("y"),x=this.getStyle("width",!1,!0).getPixels("x"),b=this.getStyle("height",!1,!0).getPixels("y"),S=this.getAttribute("rx"),w=this.getAttribute("ry"),E=S.getPixels("x"),P=w.getPixels("y");if(S.hasValue()&&!w.hasValue()&&(P=E),w.hasValue()&&!S.hasValue()&&(E=P),E=Math.min(E,x/2),P=Math.min(P,b/2),h){var A=(Math.sqrt(2)-1)/3*4;h.beginPath(),b>0&&x>0&&(h.moveTo(d+E,g),h.lineTo(d+x-E,g),h.bezierCurveTo(d+x-E+A*E,g,d+x,g+P-A*P,d+x,g+P),h.lineTo(d+x,g+b-P),h.bezierCurveTo(d+x,g+b-P+A*P,d+x-E+A*E,g+b,d+x-E,g+b),h.lineTo(d+E,g+b),h.bezierCurveTo(d+E-A*E,g+b,d,g+b-P+A*P,d,g+b-P),h.lineTo(d,g+P),h.bezierCurveTo(d,g+P-A*P,d+E-A*E,g,d+E,g),h.closePath())}return new Wg(d,g,d+x,g+b)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}();function _createSuper$c(h){var d=function _isNativeReflectConstruct$c(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var im=function(h){kv(CircleElement,em);var d=_createSuper$c(CircleElement);function CircleElement(){var h;return xy(this,CircleElement),(h=d.apply(this,arguments)).type="circle",h}return by(CircleElement,[{key:"path",value:function path(h){var d=this.getAttribute("cx").getPixels("x"),g=this.getAttribute("cy").getPixels("y"),x=this.getAttribute("r").getPixels();return h&&x>0&&(h.beginPath(),h.arc(d,g,x,0,2*Math.PI,!1),h.closePath()),new Wg(d-x,g-x,d+x,g+x)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}();function _createSuper$d(h){var d=function _isNativeReflectConstruct$d(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var am=function(h){kv(EllipseElement,em);var d=_createSuper$d(EllipseElement);function EllipseElement(){var h;return xy(this,EllipseElement),(h=d.apply(this,arguments)).type="ellipse",h}return by(EllipseElement,[{key:"path",value:function path(h){var d=(Math.sqrt(2)-1)/3*4,g=this.getAttribute("rx").getPixels("x"),x=this.getAttribute("ry").getPixels("y"),b=this.getAttribute("cx").getPixels("x"),S=this.getAttribute("cy").getPixels("y");return h&&g>0&&x>0&&(h.beginPath(),h.moveTo(b+g,S),h.bezierCurveTo(b+g,S+d*x,b+d*g,S+x,b,S+x),h.bezierCurveTo(b-d*g,S+x,b-g,S+d*x,b-g,S),h.bezierCurveTo(b-g,S-d*x,b-d*g,S-x,b,S-x),h.bezierCurveTo(b+d*g,S-x,b+g,S-d*x,b+g,S),h.closePath()),new Wg(b-g,S-x,b+g,S+x)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}();function _createSuper$e(h){var d=function _isNativeReflectConstruct$e(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var om=function(h){kv(LineElement,em);var d=_createSuper$e(LineElement);function LineElement(){var h;return xy(this,LineElement),(h=d.apply(this,arguments)).type="line",h}return by(LineElement,[{key:"getPoints",value:function getPoints(){return[new Cg(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Cg(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(h){var d=this.getPoints(),g=lh(d,2),x=g[0],b=x.x,S=x.y,w=g[1],E=w.x,P=w.y;return h&&(h.beginPath(),h.moveTo(b,S),h.lineTo(E,P)),new Wg(b,S,E,P)}},{key:"getMarkers",value:function getMarkers(){var h=this.getPoints(),d=lh(h,2),g=d[0],x=d[1],b=g.angleTo(x);return[[g,b],[x,b]]}}]),LineElement}();function _createSuper$f(h){var d=function _isNativeReflectConstruct$f(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var um=function(h){kv(PolylineElement,em);var d=_createSuper$f(PolylineElement);function PolylineElement(h,g,x){var b;return xy(this,PolylineElement),(b=d.call(this,h,g,x)).type="polyline",b.points=[],b.points=Cg.parsePath(b.getAttribute("points").getString()),b}return by(PolylineElement,[{key:"path",value:function path(h){var d=this.points,g=lh(d,1)[0],x=g.x,b=g.y,S=new Wg(x,b);return h&&(h.beginPath(),h.moveTo(x,b)),Ph(d).call(d,(function(d){var g=d.x,x=d.y;S.addPoint(g,x),h&&h.lineTo(g,x)})),S}},{key:"getMarkers",value:function getMarkers(){var h=this.points,d=h.length-1,g=[];return Ph(h).call(h,(function(x,b){b!==d&&g.push([x,x.angleTo(h[b+1])])})),g.length>0&&g.push([h[h.length-1],g[g.length-1][1]]),g}}]),PolylineElement}();function _createSuper$g(h){var d=function _isNativeReflectConstruct$g(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var sm=function(h){kv(PolygonElement,um);var d=_createSuper$g(PolygonElement);function PolygonElement(){var h;return xy(this,PolygonElement),(h=d.apply(this,arguments)).type="polygon",h}return by(PolygonElement,[{key:"path",value:function path(h){var d=bd(Iv(PolygonElement.prototype),"path",this).call(this,h),g=lh(this.points,1)[0],x=g.x,b=g.y;return h&&(h.lineTo(x,b),h.closePath()),d}}]),PolygonElement}();function _createSuper$h(h){var d=function _isNativeReflectConstruct$h(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var cm=function(h){kv(PatternElement,qg);var d=_createSuper$h(PatternElement);function PatternElement(){var h;return xy(this,PatternElement),(h=d.apply(this,arguments)).type="pattern",h}return by(PatternElement,[{key:"createPattern",value:function createPattern(h,d,g){var x=this.getStyle("width").getPixels("x",!0),b=this.getStyle("height").getPixels("y",!0),S=new rm(this.document,null);S.attributes.viewBox=new Tg(this.document,"viewBox",this.getAttribute("viewBox").getValue()),S.attributes.width=new Tg(this.document,"width","".concat(x,"px")),S.attributes.height=new Tg(this.document,"height","".concat(b,"px")),S.attributes.transform=new Tg(this.document,"transform",this.getAttribute("patternTransform").getValue()),S.children=this.children;var w=this.document.createCanvas(x,b),E=w.getContext("2d"),P=this.getAttribute("x"),A=this.getAttribute("y");P.hasValue()&&A.hasValue()&&E.translate(P.getPixels("x",!0),A.getPixels("y",!0)),g.hasValue()?this.styles["fill-opacity"]=g:Dd(this.styles,"fill-opacity");for(var _=-1;_<=1;_++)for(var k=-1;k<=1;k++)E.save(),S.attributes.x=new Tg(this.document,"x",_*w.width),S.attributes.y=new Tg(this.document,"y",k*w.height),S.render(E),E.restore();return h.createPattern(w,"repeat")}}]),PatternElement}();function _createSuper$i(h){var d=function _isNativeReflectConstruct$i(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var lm=function(h){kv(MarkerElement,qg);var d=_createSuper$i(MarkerElement);function MarkerElement(){var h;return xy(this,MarkerElement),(h=d.apply(this,arguments)).type="marker",h}return by(MarkerElement,[{key:"render",value:function render(h,d,g){if(d){var x=d.x,b=d.y,S=this.getAttribute("orient").getValue("auto"),w=this.getAttribute("markerUnits").getValue("strokeWidth");h.translate(x,b),"auto"===S&&h.rotate(g),"strokeWidth"===w&&h.scale(h.lineWidth,h.lineWidth),h.save();var E=new rm(this.document,null);E.type=this.type,E.attributes.viewBox=new Tg(this.document,"viewBox",this.getAttribute("viewBox").getValue()),E.attributes.refX=new Tg(this.document,"refX",this.getAttribute("refX").getValue()),E.attributes.refY=new Tg(this.document,"refY",this.getAttribute("refY").getValue()),E.attributes.width=new Tg(this.document,"width",this.getAttribute("markerWidth").getValue()),E.attributes.height=new Tg(this.document,"height",this.getAttribute("markerHeight").getValue()),E.attributes.overflow=new Tg(this.document,"overflow",this.getAttribute("overflow").getValue()),E.attributes.fill=new Tg(this.document,"fill",this.getAttribute("fill").getColor("black")),E.attributes.stroke=new Tg(this.document,"stroke",this.getAttribute("stroke").getValue("none")),E.children=this.children,E.render(h),h.restore(),"strokeWidth"===w&&h.scale(1/h.lineWidth,1/h.lineWidth),"auto"===S&&h.rotate(-g),h.translate(-x,-b)}}}]),MarkerElement}();function _createSuper$j(h){var d=function _isNativeReflectConstruct$j(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var fm=function(h){kv(DefsElement,qg);var d=_createSuper$j(DefsElement);function DefsElement(){var h;return xy(this,DefsElement),(h=d.apply(this,arguments)).type="defs",h}return by(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}();function _createSuper$k(h){var d=function _isNativeReflectConstruct$k(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var hm=function(h){kv(GElement,Qg);var d=_createSuper$k(GElement);function GElement(){var h;return xy(this,GElement),(h=d.apply(this,arguments)).type="g",h}return by(GElement,[{key:"getBoundingBox",value:function getBoundingBox(h){var d,g=new Wg;return Ph(d=this.children).call(d,(function(d){g.addBoundingBox(d.getBoundingBox(h))})),g}}]),GElement}();function _createSuper$l(h){var d=function _isNativeReflectConstruct$l(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var pm=function(h){kv(GradientElement,qg);var d=_createSuper$l(GradientElement);function GradientElement(h,g,x){var b;xy(this,GradientElement),(b=d.call(this,h,g,x)).attributesToInherit=["gradientUnits"],b.stops=[];var S=Cv(b),w=S.stops,E=S.children;return Ph(E).call(E,(function(h){"stop"===h.type&&w.push(h)})),b}return by(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(h,d,g){var x=this,b=this;this.getHrefAttribute().hasValue()&&(b=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(b));var S=b.stops,w=this.getGradient(h,d);if(!w)return this.addParentOpacity(g,S[S.length-1].color);if(Ph(S).call(S,(function(h){w.addColorStop(h.offset,x.addParentOpacity(g,h.color))})),this.getAttribute("gradientTransform").hasValue()){var E=this.document,P=E.screen,A=P.MAX_VIRTUAL_PIXELS,_=P.viewPort,k=lh(_.viewPorts,1)[0],C=new nm(E,null);C.attributes.x=new Tg(E,"x",-A/3),C.attributes.y=new Tg(E,"y",-A/3),C.attributes.width=new Tg(E,"width",A),C.attributes.height=new Tg(E,"height",A);var R=new hm(E,null);R.attributes.transform=new Tg(E,"transform",this.getAttribute("gradientTransform").getValue()),R.children=[C];var M=new rm(E,null);M.attributes.x=new Tg(E,"x",0),M.attributes.y=new Tg(E,"y",0),M.attributes.width=new Tg(E,"width",k.width),M.attributes.height=new Tg(E,"height",k.height),M.children=[R];var N=E.createCanvas(k.width,k.height),L=N.getContext("2d");return L.fillStyle=w,M.render(L),L.createPattern(N,"no-repeat")}return w}},{key:"inheritStopContainer",value:function inheritStopContainer(h){var d,g=this;Ph(d=this.attributesToInherit).call(d,(function(d){!g.getAttribute(d).hasValue()&&h.getAttribute(d).hasValue()&&g.getAttribute(d,!0).setValue(h.getAttribute(d).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(h,d){return h.hasValue()?new Tg(this.document,"color",d).addOpacity(h).getColor():d}}]),GradientElement}();function _createSuper$m(h){var d=function _isNativeReflectConstruct$m(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var ym=function(h){kv(LinearGradientElement,pm);var d=_createSuper$m(LinearGradientElement);function LinearGradientElement(h,g,x){var b;return xy(this,LinearGradientElement),(b=d.call(this,h,g,x)).type="linearGradient",b.attributesToInherit.push("x1","y1","x2","y2"),b}return by(LinearGradientElement,[{key:"getGradient",value:function getGradient(h,d){var g="objectBoundingBox"===this.getGradientUnits(),x=g?d.getBoundingBox(h):null;if(g&&!x)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 b=g?x.x+x.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),S=g?x.y+x.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),w=g?x.x+x.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),E=g?x.y+x.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return b===w&&S===E?null:h.createLinearGradient(b,S,w,E)}}]),LinearGradientElement}();function _createSuper$n(h){var d=function _isNativeReflectConstruct$n(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var vm=function(h){kv(RadialGradientElement,pm);var d=_createSuper$n(RadialGradientElement);function RadialGradientElement(h,g,x){var b;return xy(this,RadialGradientElement),(b=d.call(this,h,g,x)).type="radialGradient",b.attributesToInherit.push("cx","cy","r","fx","fy","fr"),b}return by(RadialGradientElement,[{key:"getGradient",value:function getGradient(h,d){var g="objectBoundingBox"===this.getGradientUnits(),x=d.getBoundingBox(h);if(g&&!x)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 b=g?x.x+x.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),S=g?x.y+x.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),w=b,E=S;this.getAttribute("fx").hasValue()&&(w=g?x.x+x.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(E=g?x.y+x.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var P=g?(x.width+x.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),A=this.getAttribute("fr").getPixels();return h.createRadialGradient(w,E,A,b,S,P)}}]),RadialGradientElement}();function _createSuper$o(h){var d=function _isNativeReflectConstruct$o(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var dm=function(h){kv(StopElement,qg);var d=_createSuper$o(StopElement);function StopElement(h,g,x){var b;xy(this,StopElement),(b=d.call(this,h,g,x)).type="stop";var S=Math.max(0,Math.min(1,b.getAttribute("offset").getNumber())),w=b.getStyle("stop-opacity"),E=b.getStyle("stop-color",!0);return""===E.getString()&&E.setValue("#000"),w.hasValue()&&(E=E.addOpacity(w)),b.offset=S,b.color=E.getColor(),b}return StopElement}();function _createSuper$p(h){var d=function _isNativeReflectConstruct$p(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var gm=function(h){kv(AnimateElement,qg);var d=_createSuper$p(AnimateElement);function AnimateElement(h,g,x){var b;return xy(this,AnimateElement),(b=d.call(this,h,g,x)).type="animate",b.duration=0,b.initialValue=null,b.initialUnits="",b.removed=!1,b.frozen=!1,h.screen.animations.push(Cv(b)),b.begin=b.getAttribute("begin").getMilliseconds(),b.maxDuration=b.begin+b.getAttribute("dur").getMilliseconds(),b.from=b.getAttribute("from"),b.to=b.getAttribute("to"),b.values=b.getAttribute("values"),Fd(b).hasValue()&&Fd(b).setValue(Fd(b).getString().split(";")),b}return by(AnimateElement,[{key:"getProperty",value:function getProperty(){var h=this.getAttribute("attributeType").getString(),d=this.getAttribute("attributeName").getString();return"CSS"===h?this.parent.getStyle(d,!0):this.parent.getAttribute(d,!0)}},{key:"calcValue",value:function calcValue(){var h,d=this.initialUnits,g=this.getProgress(),x=g.progress,b=g.from,S=g.to,w=b.getNumber()+(S.getNumber()-b.getNumber())*x;return"%"===d&&(w*=100),Ey(h="".concat(w)).call(h,d)}},{key:"update",value:function update(h){var d=this.parent,g=this.getProperty();if(this.initialValue||(this.initialValue=g.getString(),this.initialUnits=g.getUnits()),this.duration>this.maxDuration){var x=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==x||this.frozen){if("remove"===x&&!this.removed)return this.removed=!0,g.setValue(d.animationFrozen?d.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,d.animationFrozen=!0,d.animationFrozenValue=g.getString();return!1}this.duration+=h;var b=!1;if(this.begin<this.duration){var S=this.calcValue(),w=this.getAttribute("type");if(w.hasValue()){var E,P=w.getString();S=Ey(E="".concat(P,"(")).call(E,S,")")}g.setValue(S),b=!0}return b}},{key:"getProgress",value:function getProgress(){var h=this.document,d=Fd(this),g={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(d.hasValue()){var x=g.progress*(d.getValue().length-1),b=Math.floor(x),S=Math.ceil(x);g.from=new Tg(h,"from",Es(d.getValue()[b])),g.to=new Tg(h,"to",Es(d.getValue()[S])),g.progress=(x-b)/(S-b)}else g.from=this.from,g.to=this.to;return g}}]),AnimateElement}();function _createSuper$q(h){var d=function _isNativeReflectConstruct$q(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var mm=function(h){kv(AnimateColorElement,gm);var d=_createSuper$q(AnimateColorElement);function AnimateColorElement(){var h;return xy(this,AnimateColorElement),(h=d.apply(this,arguments)).type="animateColor",h}return by(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),d=h.progress,g=h.from,x=h.to,b=new gv(g.getColor()),S=new gv(x.getColor());if(b.ok&&S.ok){var w,E,P=b.r+(S.r-b.r)*d,A=b.g+(S.g-b.g)*d,_=b.b+(S.b-b.b)*d;return Ey(w=Ey(E="rgb(".concat(Hd(P,10),", ")).call(E,Hd(A,10),", ")).call(w,Hd(_,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}();function _createSuper$r(h){var d=function _isNativeReflectConstruct$r(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var xm=function(h){kv(AnimateTransformElement,gm);var d=_createSuper$r(AnimateTransformElement);function AnimateTransformElement(){var h;return xy(this,AnimateTransformElement),(h=d.apply(this,arguments)).type="animateTransform",h}return by(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),d=h.progress,g=h.from,x=h.to,b=toNumbers(g.getString()),S=toNumbers(x.getString());return tc(b).call(b,(function(h,g){return h+(S[g]-h)*d})).join(" ")}}]),AnimateTransformElement}();function _createForOfIteratorHelper(h,d){var g;if(void 0===Yd||null==Xd(h)){if(qd(h)||(g=function _unsupportedIterableToArray$1(h,d){var g;if(!h)return;if("string"==typeof h)return _arrayLikeToArray$1(h,d);var x=Wd(g=Object.prototype.toString.call(h)).call(g,8,-1);"Object"===x&&h.constructor&&(x=h.constructor.name);if("Map"===x||"Set"===x)return nd(h);if("Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return _arrayLikeToArray$1(h,d)}(h))||d&&h&&"number"==typeof h.length){g&&(h=g);var x=0,b=function F(){};return{s:b,n:function n(){return x>=h.length?{done:!0}:{done:!1,value:h[x++]}},e:function e(h){throw h},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S,w=!0,E=!1;return{s:function s(){g=$l(h)},n:function n(){var h=g.next();return w=h.done,h},e:function e(h){E=!0,S=h},f:function f(){try{w||null==g.return||g.return()}finally{if(E)throw S}}}}function _arrayLikeToArray$1(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x}function _createSuper$s(h){var d=function _isNativeReflectConstruct$s(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var bm=function(h){kv(FontElement,qg);var d=_createSuper$s(FontElement);function FontElement(h,g,x){var b;xy(this,FontElement),(b=d.call(this,h,g,x)).type="font",b.glyphs={},b.horizAdvX=b.getAttribute("horiz-adv-x").getNumber();var S,w=h.definitions,E=_createForOfIteratorHelper(Cv(b).children);try{for(E.s();!(S=E.n()).done;){var P=S.value;switch(P.type){case"font-face":b.fontFace=P;var A=P.getStyle("font-family");A.hasValue()&&(w[A.getString()]=Cv(b));break;case"missing-glyph":b.missingGlyph=P;break;case"glyph":var _=P;_.arabicForm?(b.isRTL=!0,b.isArabic=!0,void 0===b.glyphs[_.unicode]&&(b.glyphs[_.unicode]={}),b.glyphs[_.unicode][_.arabicForm]=_):b.glyphs[_.unicode]=_}}}catch(h){E.e(h)}finally{E.f()}return b}return by(FontElement,[{key:"render",value:function render(){}}]),FontElement}();function _createSuper$t(h){var d=function _isNativeReflectConstruct$t(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Sm=function(h){kv(FontFaceElement,qg);var d=_createSuper$t(FontFaceElement);function FontFaceElement(h,g,x){var b;return xy(this,FontFaceElement),(b=d.call(this,h,g,x)).type="font-face",b.ascent=b.getAttribute("ascent").getNumber(),b.descent=b.getAttribute("descent").getNumber(),b.unitsPerEm=b.getAttribute("units-per-em").getNumber(),b}return FontFaceElement}();function _createSuper$u(h){var d=function _isNativeReflectConstruct$u(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var wm=function(h){kv(MissingGlyphElement,em);var d=_createSuper$u(MissingGlyphElement);function MissingGlyphElement(){var h;return xy(this,MissingGlyphElement),(h=d.apply(this,arguments)).type="missing-glyph",h.horizAdvX=0,h}return MissingGlyphElement}();function _createSuper$v(h){var d=function _isNativeReflectConstruct$v(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Em=function(h){kv(GlyphElement,em);var d=_createSuper$v(GlyphElement);function GlyphElement(h,g,x){var b;return xy(this,GlyphElement),(b=d.call(this,h,g,x)).type="glyph",b.horizAdvX=b.getAttribute("horiz-adv-x").getNumber(),b.unicode=b.getAttribute("unicode").getString(),b.arabicForm=b.getAttribute("arabic-form").getString(),b}return GlyphElement}();function _createSuper$w(h){var d=function _isNativeReflectConstruct$w(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Pm=function(h){kv(TRefElement,Zg);var d=_createSuper$w(TRefElement);function TRefElement(){var h;return xy(this,TRefElement),(h=d.apply(this,arguments)).type="tref",h}return by(TRefElement,[{key:"getText",value:function getText(){var h=this.getHrefAttribute().getDefinition();if(h){var d=h.children[0];if(d)return d.getText()}return""}}]),TRefElement}();function _createSuper$x(h){var d=function _isNativeReflectConstruct$x(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Am=function(h){kv(AElement,Zg);var d=_createSuper$x(AElement);function AElement(h,g,x){var b,S;xy(this,AElement),(S=d.call(this,h,g,x)).type="a";var w=g.childNodes,E=w[0],P=w.length>0&&zy(b=nd(w)).call(b,(function(h){return 3===h.nodeType}));return S.hasText=P,S.text=P?S.getTextFromNode(E):"",S}return by(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(h){if(this.hasText){bd(Iv(AElement.prototype),"renderChildren",this).call(this,h);var d=this.document,g=this.x,x=this.y,b=d.screen.mouse,S=new Tg(d,"fontSize",Yg.parse(d.ctx.font).fontSize);b.isWorking()&&b.checkBoundingBox(this,new Wg(g,x-S.getPixels("y"),g+this.measureText(h),x))}else if(this.children.length>0){var w=new hm(this.document,null);w.children=this.children,w.parent=this,w.render(h)}}},{key:"onClick",value:function onClick(){var h=this.document.window;h&&h.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}]),AElement}();function _createForOfIteratorHelper$1(h,d){var g;if(void 0===Yd||null==Xd(h)){if(qd(h)||(g=function _unsupportedIterableToArray$1$1(h,d){var g;if(!h)return;if("string"==typeof h)return _arrayLikeToArray$1$1(h,d);var x=Wd(g=Object.prototype.toString.call(h)).call(g,8,-1);"Object"===x&&h.constructor&&(x=h.constructor.name);if("Map"===x||"Set"===x)return nd(h);if("Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return _arrayLikeToArray$1$1(h,d)}(h))||d&&h&&"number"==typeof h.length){g&&(h=g);var x=0,b=function F(){};return{s:b,n:function n(){return x>=h.length?{done:!0}:{done:!1,value:h[x++]}},e:function e(h){throw h},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S,w=!0,E=!1;return{s:function s(){g=$l(h)},n:function n(){var h=g.next();return w=h.done,h},e:function e(h){E=!0,S=h},f:function f(){try{w||null==g.return||g.return()}finally{if(E)throw S}}}}function _arrayLikeToArray$1$1(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x}function ownKeys$2(h,d){var g=Fh(h);if(Vh){var x=Vh(h);d&&(x=jh(x).call(x,(function(d){return Th(h,d).enumerable}))),g.push.apply(g,x)}return g}function _objectSpread(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)Ph(g=ownKeys$2(Object(x),!0)).call(g,(function(d){my(h,d,x[d])}));else if(vh)ph(h,vh(x));else{var b;Ph(b=ownKeys$2(Object(x))).call(b,(function(d){hh(h,d,Th(x,d))}))}}return h}function _createSuper$y(h){var d=function _isNativeReflectConstruct$y(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var _m=function(h){kv(TextPathElement,Zg);var d=_createSuper$y(TextPathElement);function TextPathElement(h,g,x){var b;xy(this,TextPathElement),(b=d.call(this,h,g,x)).type="textPath",b.textWidth=0,b.textHeight=0,b.pathLength=-1,b.glyphInfo=null,b.letterSpacingCache=[],b.measuresCache=new fg([["",0]]);var S=b.getHrefAttribute().getDefinition();return b.text=b.getTextFromNode(),b.dataArray=b.parsePathData(S),b}return by(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(h){var d=this.dataArray;h&&h.beginPath(),Ph(d).call(d,(function(d){var g=d.type,x=d.points;switch(g){case tm.LINE_TO:h&&h.lineTo(x[0],x[1]);break;case tm.MOVE_TO:h&&h.moveTo(x[0],x[1]);break;case tm.CURVE_TO:h&&h.bezierCurveTo(x[0],x[1],x[2],x[3],x[4],x[5]);break;case tm.QUAD_TO:h&&h.quadraticCurveTo(x[0],x[1],x[2],x[3]);break;case tm.ARC:var b=lh(x,8),S=b[0],w=b[1],E=b[2],P=b[3],A=b[4],_=b[5],k=b[6],C=b[7],R=E>P?E:P,M=E>P?1:E/P,N=E>P?P/E:1;h&&(h.translate(S,w),h.rotate(k),h.scale(M,N),h.arc(0,0,R,A,A+_,Boolean(1-C)),h.scale(1/M,1/N),h.rotate(-k),h.translate(-S,-w));break;case tm.CLOSE_PATH:h&&h.closePath()}}))}},{key:"renderChildren",value:function renderChildren(h){this.setTextData(h),h.save();var d=this.parent.getStyle("text-decoration").getString(),g=this.getFontSize(),x=this.glyphInfo,b=h.fillStyle;"underline"===d&&h.beginPath(),Ph(x).call(x,(function(x,b){var S=x.p0,w=x.p1,E=x.rotation,P=x.text;h.save(),h.translate(S.x,S.y),h.rotate(E),h.fillStyle&&h.fillText(P,0,0),h.strokeStyle&&h.strokeText(P,0,0),h.restore(),"underline"===d&&(0===b&&h.moveTo(S.x,S.y+g/8),h.lineTo(w.x,w.y+g/5))})),"underline"===d&&(h.lineWidth=g/20,h.strokeStyle=b,h.stroke(),h.closePath()),h.restore()}},{key:"getLetterSpacingAt",value:function getLetterSpacingAt(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[h]||0}},{key:"findSegmentToFitChar",value:function findSegmentToFitChar(h,d,g,x,b,S,w,E,P){var A=S,_=this.measureText(h,E);" "===E&&"justify"===d&&g<x&&(_+=(x-g)/b),P>-1&&(A+=this.getLetterSpacingAt(P));var k=this.textHeight/20,C=this.getEquidistantPointOnPath(A,k,0),R=this.getEquidistantPointOnPath(A+_,k,0),M={p0:C,p1:R},N=C&&R?Math.atan2(R.y-C.y,R.x-C.x):0;if(w){var L=Math.cos(Math.PI/2+N)*w,D=Math.cos(-N)*w;M.p0=_objectSpread(_objectSpread({},C),{},{x:C.x+L,y:C.y+D}),M.p1=_objectSpread(_objectSpread({},R),{},{x:R.x+L,y:R.y+D})}return{offset:A+=_,segment:M,rotation:N}}},{key:"measureText",value:function measureText(h,d){var g=this.measuresCache,x=d||this.getText();if(g.has(x))return g.get(x);var b=this.measureTargetText(h,x);return g.set(x,b),b}},{key:"setTextData",value:function setTextData(h){var d,g=this;if(!this.glyphInfo){var x=this.getText(),b=x.split(""),S=x.split(" ").length-1,w=tc(d=this.parent.getAttribute("dx").split()).call(d,(function(h){return h.getPixels("x")})),E=this.parent.getAttribute("dy").getPixels("y"),P=this.parent.getStyle("text-anchor").getString("start"),A=this.getStyle("letter-spacing"),_=this.parent.getStyle("letter-spacing"),k=0;A.hasValue()&&"inherit"!==A.getValue()?A.hasValue()&&"initial"!==A.getValue()&&"unset"!==A.getValue()&&(k=A.getPixels()):k=_.getPixels();var C=[],R=x.length;this.letterSpacingCache=C;for(var M=0;M<R;M++)C.push(void 0!==w[M]?w[M]:k);var N=Ny(C).call(C,(function(h,d,g){return 0===g?0:h+d||0}),0),L=this.measureText(h),D=Math.max(L+N,0);this.textWidth=L,this.textHeight=this.getFontSize(),this.glyphInfo=[];var j=this.getPathLength(),V=this.getStyle("startOffset").getNumber(0)*j,$=0;"middle"!==P&&"center"!==P||($=-D/2),"end"!==P&&"right"!==P||($=-D),$+=V,Ph(b).call(b,(function(d,x){var w=g.findSegmentToFitChar(h,P,D,j,S,$,E,d,x),A=w.offset,_=w.segment,k=w.rotation;$=A,_.p0&&_.p1&&g.glyphInfo.push({text:b[x],p0:_.p0,p1:_.p1,rotation:k})}))}}},{key:"parsePathData",value:function parsePathData(h){if(this.pathLength=-1,!h)return[];var d=[],g=h.pathParser;for(g.reset();!g.isEnd();){var x=g.current,b=x?x.x:0,S=x?x.y:0,w=g.next(),E=w.type,P=[];switch(w.type){case tm.MOVE_TO:this.pathM(g,P);break;case tm.LINE_TO:E=this.pathL(g,P);break;case tm.HORIZ_LINE_TO:E=this.pathH(g,P);break;case tm.VERT_LINE_TO:E=this.pathV(g,P);break;case tm.CURVE_TO:this.pathC(g,P);break;case tm.SMOOTH_CURVE_TO:E=this.pathS(g,P);break;case tm.QUAD_TO:this.pathQ(g,P);break;case tm.SMOOTH_QUAD_TO:E=this.pathT(g,P);break;case tm.ARC:P=this.pathA(g);break;case tm.CLOSE_PATH:em.pathZ(g)}w.type!==tm.CLOSE_PATH?d.push({type:E,points:P,start:{x:b,y:S},pathLength:this.calcLength(b,S,E,P)}):d.push({type:tm.CLOSE_PATH,points:[],pathLength:0})}return d}},{key:"pathM",value:function pathM(h,d){var g=em.pathM(h).point,x=g.x,b=g.y;d.push(x,b)}},{key:"pathL",value:function pathL(h,d){var g=em.pathL(h).point,x=g.x,b=g.y;return d.push(x,b),tm.LINE_TO}},{key:"pathH",value:function pathH(h,d){var g=em.pathH(h).point,x=g.x,b=g.y;return d.push(x,b),tm.LINE_TO}},{key:"pathV",value:function pathV(h,d){var g=em.pathV(h).point,x=g.x,b=g.y;return d.push(x,b),tm.LINE_TO}},{key:"pathC",value:function pathC(h,d){var g=em.pathC(h),x=g.point,b=g.controlPoint,S=g.currentPoint;d.push(x.x,x.y,b.x,b.y,S.x,S.y)}},{key:"pathS",value:function pathS(h,d){var g=em.pathS(h),x=g.point,b=g.controlPoint,S=g.currentPoint;return d.push(x.x,x.y,b.x,b.y,S.x,S.y),tm.CURVE_TO}},{key:"pathQ",value:function pathQ(h,d){var g=em.pathQ(h),x=g.controlPoint,b=g.currentPoint;d.push(x.x,x.y,b.x,b.y)}},{key:"pathT",value:function pathT(h,d){var g=em.pathT(h),x=g.controlPoint,b=g.currentPoint;return d.push(x.x,x.y,b.x,b.y),tm.QUAD_TO}},{key:"pathA",value:function pathA(h){var d=em.pathA(h),g=d.rX,x=d.rY,b=d.sweepFlag,S=d.xAxisRotation,w=d.centp,E=d.a1,P=d.ad;return 0===b&&P>0&&(P-=2*Math.PI),1===b&&P<0&&(P+=2*Math.PI),[w.x,w.y,g,x,E,P,S,b]}},{key:"calcLength",value:function calcLength(h,d,g,x){var b=0,S=null,w=null,E=0;switch(g){case tm.LINE_TO:return this.getLineLength(h,d,x[0],x[1]);case tm.CURVE_TO:for(b=0,S=this.getPointOnCubicBezier(0,h,d,x[0],x[1],x[2],x[3],x[4],x[5]),E=.01;E<=1;E+=.01)w=this.getPointOnCubicBezier(E,h,d,x[0],x[1],x[2],x[3],x[4],x[5]),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;return b;case tm.QUAD_TO:for(b=0,S=this.getPointOnQuadraticBezier(0,h,d,x[0],x[1],x[2],x[3]),E=.01;E<=1;E+=.01)w=this.getPointOnQuadraticBezier(E,h,d,x[0],x[1],x[2],x[3]),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;return b;case tm.ARC:b=0;var P=x[4],A=x[5],_=x[4]+A,k=Math.PI/180;if(Math.abs(P-_)<k&&(k=Math.abs(P-_)),S=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],P,0),A<0)for(E=P-k;E>_;E-=k)w=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],E,0),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;else for(E=P+k;E<_;E+=k)w=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],E,0),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;return w=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],_,0),b+=this.getLineLength(S.x,S.y,w.x,w.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(h,d,g,x,b){var S=arguments.length>5&&void 0!==arguments[5]?arguments[5]:d,w=arguments.length>6&&void 0!==arguments[6]?arguments[6]:g,E=(b-g)/(x-d+1e-8),P=Math.sqrt(h*h/(1+E*E));x<d&&(P*=-1);var A=E*P,_=null;if(x===d)_={x:S,y:w+A};else if((w-g)/(S-d+1e-8)===E)_={x:S+P,y:w+A};else{var k=0,C=0,R=this.getLineLength(d,g,x,b);if(R<1e-8)return null;var M=(S-d)*(x-d)+(w-g)*(b-g);k=d+(M/=R*R)*(x-d),C=g+M*(b-g);var N=this.getLineLength(S,w,k,C),L=Math.sqrt(h*h-N*N);P=Math.sqrt(L*L/(1+E*E)),x<d&&(P*=-1),_={x:k+P,y:C+(A=E*P)}}return _}},{key:"getPointOnPath",value:function getPointOnPath(h){var d=this.getPathLength(),g=0,x=null;if(h<-5e-5||h-5e-5>d)return null;var b,S=_createForOfIteratorHelper$1(this.dataArray);try{for(S.s();!(b=S.n()).done;){var w=b.value;if(!w||!(w.pathLength<5e-5||g+w.pathLength+5e-5<h)){var E=h-g,P=0;switch(w.type){case tm.LINE_TO:x=this.getPointOnLine(E,w.start.x,w.start.y,w.points[0],w.points[1],w.start.x,w.start.y);break;case tm.ARC:var A=w.points[4],_=w.points[5],k=w.points[4]+_;if(P=A+E/w.pathLength*_,_<0&&P<k||_>=0&&P>k)break;x=this.getPointOnEllipticalArc(w.points[0],w.points[1],w.points[2],w.points[3],P,w.points[6]);break;case tm.CURVE_TO:(P=E/w.pathLength)>1&&(P=1),x=this.getPointOnCubicBezier(P,w.start.x,w.start.y,w.points[0],w.points[1],w.points[2],w.points[3],w.points[4],w.points[5]);break;case tm.QUAD_TO:(P=E/w.pathLength)>1&&(P=1),x=this.getPointOnQuadraticBezier(P,w.start.x,w.start.y,w.points[0],w.points[1],w.points[2],w.points[3])}if(x)return x;break}g+=w.pathLength}}catch(h){S.e(h)}finally{S.f()}return null}},{key:"getLineLength",value:function getLineLength(h,d,g,x){return Math.sqrt((g-h)*(g-h)+(x-d)*(x-d))}},{key:"getPathLength",value:function getPathLength(){var h;-1===this.pathLength&&(this.pathLength=Ny(h=this.dataArray).call(h,(function(h,d){return d.pathLength>0?h+d.pathLength:h}),0));return this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(h,d,g,x,b,S,w,E,P){return{x:E*CB1(h)+S*CB2(h)+x*CB3(h)+d*CB4(h),y:P*CB1(h)+w*CB2(h)+b*CB3(h)+g*CB4(h)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(h,d,g,x,b,S,w){return{x:S*QB1(h)+x*QB2(h)+d*QB3(h),y:w*QB1(h)+b*QB2(h)+g*QB3(h)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(h,d,g,x,b,S){var w=Math.cos(S),E=Math.sin(S),P=g*Math.cos(b),A=x*Math.sin(b);return{x:h+(P*w-A*E),y:d+(P*E+A*w)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(h,d){var g=this.getPathLength(),x=d||.25,b=h||g/100;if(!this.equidistantCache||this.equidistantCache.step!==b||this.equidistantCache.precision!==x){this.equidistantCache={step:b,precision:x,points:[]};for(var S=0,w=0;w<=g;w+=x){var E=this.getPointOnPath(w),P=this.getPointOnPath(w+x);E&&P&&((S+=this.getLineLength(E.x,E.y,P.x,P.y))>=b&&(this.equidistantCache.points.push({x:E.x,y:E.y,distance:w}),S-=b))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(h,d,g){if(this.buildEquidistantCache(d,g),h<0||h-this.getPathLength()>5e-5)return null;var x=Math.round(h/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[x]||null}}]),TextPathElement}();function _createSuper$z(h){var d=function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var km=function(h){kv(ImageElement,Qg);var d,g,x=_createSuper$z(ImageElement);function ImageElement(h,d,g){var b;xy(this,ImageElement),(b=x.call(this,h,d,g)).type="image",b.loaded=!1;var S=b.getHrefAttribute().getString();if(!S)return Rv(b);var w=/\.svg$/.test(S);return h.images.push(Cv(b)),w?b.loadSvg(S):b.loadImage(S),b.isSvg=w,b}return by(ImageElement,[{key:"loadImage",value:(g=dy(Uh.mark((function _callee(h){var d;return Uh.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=0,g.next=3,this.document.createImage(h);case 3:d=g.sent,this.image=d,g.next=10;break;case 7:g.prev=7,g.t0=g.catch(0),console.error('Error while loading image "'.concat(h,'":'),g.t0);case 10:this.loaded=!0;case 11:case"end":return g.stop()}}),_callee,this,[[0,7]])}))),function loadImage(h){return g.apply(this,arguments)})},{key:"loadSvg",value:(d=dy(Uh.mark((function _callee2(h){var d,g;return Uh.wrap((function _callee2$(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,x.next=3,this.document.fetch(h);case 3:return d=x.sent,x.next=6,d.text();case 6:g=x.sent,this.image=g,x.next=13;break;case 10:x.prev=10,x.t0=x.catch(0),console.error('Error while loading image "'.concat(h,'":'),x.t0);case 13:this.loaded=!0;case 14:case"end":return x.stop()}}),_callee2,this,[[0,10]])}))),function loadSvg(h){return d.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(h){var d=this.document,g=this.image,x=this.loaded,b=this.getAttribute("x").getPixels("x"),S=this.getAttribute("y").getPixels("y"),w=this.getStyle("width").getPixels("x"),E=this.getStyle("height").getPixels("y");if(x&&g&&w&&E){if(h.save(),this.isSvg)d.canvg.forkString(h,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:b,offsetY:S,scaleWidth:w,scaleHeight:E}).render();else{var P=this.image;h.translate(b,S),d.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:w,desiredWidth:P.width,height:E,desiredHeight:P.height}),this.loaded&&(void 0===P.complete||P.complete)&&h.drawImage(P,0,0)}h.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var h=this.getAttribute("x").getPixels("x"),d=this.getAttribute("y").getPixels("y"),g=this.getStyle("width").getPixels("x"),x=this.getStyle("height").getPixels("y");return new Wg(h,d,h+g,d+x)}}]),ImageElement}();function _createSuper$A(h){var d=function _isNativeReflectConstruct$A(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Tm=function(h){kv(SymbolElement,Qg);var d=_createSuper$A(SymbolElement);function SymbolElement(){var h;return xy(this,SymbolElement),(h=d.apply(this,arguments)).type="symbol",h}return by(SymbolElement,[{key:"render",value:function render(h){}}]),SymbolElement}(),Om=function(){function SVGFontLoader(h){xy(this,SVGFontLoader),this.document=h,this.loaded=!1,h.fonts.push(this)}var h;return by(SVGFontLoader,[{key:"load",value:(h=dy(Uh.mark((function _callee(h,d){var g,x,b,S;return Uh.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:return w.prev=0,x=this.document,w.next=4,x.canvg.parser.load(d);case 4:b=w.sent,S=b.getElementsByTagName("font"),Ph(g=nd(S)).call(g,(function(d){var g=x.createElement(d);x.definitions[h]=g})),w.next=12;break;case 9:w.prev=9,w.t0=w.catch(0),console.error('Error while loading font "'.concat(d,'":'),w.t0);case 12:this.loaded=!0;case 13:case"end":return w.stop()}}),_callee,this,[[0,9]])}))),function load(d,g){return h.apply(this,arguments)})}]),SVGFontLoader}();function _createSuper$B(h){var d=function _isNativeReflectConstruct$B(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Cm=function(h){kv(StyleElement,qg);var d=_createSuper$B(StyleElement);function StyleElement(h,g,x){var b,S;xy(this,StyleElement),(S=d.call(this,h,g,x)).type="style";var w=compressSpaces(tc(b=nd(g.childNodes)).call(b,(function(h){return h.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return Ph(w).call(w,(function(d){var g=hv(d).call(d);if(g){var x=g.split("{"),b=x[0].split(","),S=x[1].split(";");Ph(b).call(b,(function(d){var g=hv(d).call(d);if(g){var x=h.styles[g]||{};if(Ph(S).call(S,(function(d){var g,b,S=dd(d).call(d,":"),w=hv(g=d.substr(0,S)).call(g),E=hv(b=d.substr(S+1,d.length-S)).call(b);w&&E&&(x[w]=new Tg(h,w,E))})),h.styles[g]=x,h.stylesSpecificity[g]=function getSelectorSpecificity(h){var d=[0,0,0],g=h.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),x=0,b=findSelectorMatch(g,Sg),S=lh(b,2);g=S[0],x=S[1],d[1]+=x;var w=findSelectorMatch(g,wg),E=lh(w,2);g=E[0],x=E[1],d[0]+=x;var P=findSelectorMatch(g,Eg),A=lh(P,2);g=A[0],x=A[1],d[1]+=x;var _=findSelectorMatch(g,Pg),k=lh(_,2);g=k[0],x=k[1],d[2]+=x;var C=findSelectorMatch(g,Ag),R=lh(C,2);g=R[0],x=R[1],d[1]+=x;var M=findSelectorMatch(g,_g),N=lh(M,2);g=N[0],x=N[1],d[1]+=x;var L=findSelectorMatch(g=g.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),kg),D=lh(L,2);return g=D[0],x=D[1],d[2]+=x,d.join("")}(g),"@font-face"===g){var b=x["font-family"].getString().replace(/"|'/g,""),w=x.src.getString().split(",");Ph(w).call(w,(function(d){if(dd(d).call(d,'format("svg")')>0){var g=parseExternalUrl(d);g&&new Om(h).load(b,g)}}))}}}))}})),S}return StyleElement}();function _createSuper$C(h){var d=function _isNativeReflectConstruct$C(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}Cm.parseExternalUrl=parseExternalUrl;var Rm=function(h){kv(UseElement,Qg);var d=_createSuper$C(UseElement);function UseElement(){var h;return xy(this,UseElement),(h=d.apply(this,arguments)).type="use",h}return by(UseElement,[{key:"setContext",value:function setContext(h){bd(Iv(UseElement.prototype),"setContext",this).call(this,h);var d=this.getAttribute("x"),g=this.getAttribute("y");d.hasValue()&&h.translate(d.getPixels("x"),0),g.hasValue()&&h.translate(0,g.getPixels("y"))}},{key:"path",value:function path(h){var d=this.element;d&&d.path(h)}},{key:"renderChildren",value:function renderChildren(h){var d=this.document,g=this.element;if(g){var x=g;if("symbol"===g.type&&((x=new rm(d,null)).attributes.viewBox=new Tg(d,"viewBox",g.getAttribute("viewBox").getString()),x.attributes.preserveAspectRatio=new Tg(d,"preserveAspectRatio",g.getAttribute("preserveAspectRatio").getString()),x.attributes.overflow=new Tg(d,"overflow",g.getAttribute("overflow").getString()),x.children=g.children,g.styles.opacity=new Tg(d,"opacity",this.calculateOpacity())),"svg"===x.type){var b=this.getStyle("width",!1,!0),S=this.getStyle("height",!1,!0);b.hasValue()&&(x.attributes.width=new Tg(d,"width",b.getString())),S.hasValue()&&(x.attributes.height=new Tg(d,"height",S.getString()))}var w=x.parent;x.parent=this,x.render(h),x.parent=w}}},{key:"getBoundingBox",value:function getBoundingBox(h){var d=this.element;return d?d.getBoundingBox(h):null}},{key:"elementTransform",value:function elementTransform(){var h=this.document,d=this.element;return Hg.fromElement(h,d)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}();function _createSuper$D(h){var d=function _isNativeReflectConstruct$D(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}function imGet(h,d,g,x,b,S){return h[g*x*4+4*d+S]}function imSet(h,d,g,x,b,S,w){h[g*x*4+4*d+S]=w}function m$1(h,d,g){return h[d]*g}function c$1(h,d,g,x){return d+Math.cos(h)*g+Math.sin(h)*x}var Mm=function(h){kv(FeColorMatrixElement,qg);var d=_createSuper$D(FeColorMatrixElement);function FeColorMatrixElement(h,g,x){var b;xy(this,FeColorMatrixElement),(b=d.call(this,h,g,x)).type="feColorMatrix";var S=toNumbers(b.getAttribute("values").getString());switch(b.getAttribute("type").getString("matrix")){case"saturate":var w=S[0];S=[.213+.787*w,.715-.715*w,.072-.072*w,0,0,.213-.213*w,.715+.285*w,.072-.072*w,0,0,.213-.213*w,.715-.715*w,.072+.928*w,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var E=S[0]*Math.PI/180;S=[c$1(E,.213,.787,-.213),c$1(E,.715,-.715,-.715),c$1(E,.072,-.072,.928),0,0,c$1(E,.213,-.213,.143),c$1(E,.715,.285,.14),c$1(E,.072,-.072,-.283),0,0,c$1(E,.213,-.213,-.787),c$1(E,.715,-.715,.715),c$1(E,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return b.matrix=S,b.includeOpacity=b.getAttribute("includeOpacity").hasValue(),b}return by(FeColorMatrixElement,[{key:"apply",value:function apply(h,d,g,x,b){for(var S=this.includeOpacity,w=this.matrix,E=h.getImageData(0,0,x,b),P=0;P<b;P++)for(var A=0;A<x;A++){var _=imGet(E.data,A,P,x,0,0),k=imGet(E.data,A,P,x,0,1),C=imGet(E.data,A,P,x,0,2),R=imGet(E.data,A,P,x,0,3),M=m$1(w,0,_)+m$1(w,1,k)+m$1(w,2,C)+m$1(w,3,R)+m$1(w,4,1),N=m$1(w,5,_)+m$1(w,6,k)+m$1(w,7,C)+m$1(w,8,R)+m$1(w,9,1),L=m$1(w,10,_)+m$1(w,11,k)+m$1(w,12,C)+m$1(w,13,R)+m$1(w,14,1),D=m$1(w,15,_)+m$1(w,16,k)+m$1(w,17,C)+m$1(w,18,R)+m$1(w,19,1);S&&(M=N=L=0,D*=R/255),imSet(E.data,A,P,x,0,0,M),imSet(E.data,A,P,x,0,1,N),imSet(E.data,A,P,x,0,2,L),imSet(E.data,A,P,x,0,3,D)}h.clearRect(0,0,x,b),h.putImageData(E,0,0)}}]),FeColorMatrixElement}();function _createSuper$E(h){var d=function _isNativeReflectConstruct$E(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Nm=function(h){kv(MaskElement,qg);var d=_createSuper$E(MaskElement);function MaskElement(){var h;return xy(this,MaskElement),(h=d.apply(this,arguments)).type="mask",h}return by(MaskElement,[{key:"apply",value:function apply(h,d){var g=this.document,x=this.getAttribute("x").getPixels("x"),b=this.getAttribute("y").getPixels("y"),S=this.getStyle("width").getPixels("x"),w=this.getStyle("height").getPixels("y");if(!S&&!w){var E,P=new Wg;Ph(E=this.children).call(E,(function(d){P.addBoundingBox(d.getBoundingBox(h))})),x=Math.floor(P.x1),b=Math.floor(P.y1),S=Math.floor(P.width),w=Math.floor(P.height)}var A=this.removeStyles(d,MaskElement.ignoreStyles),_=g.createCanvas(x+S,b+w),k=_.getContext("2d");g.screen.setDefaults(k),this.renderChildren(k),new Mm(g,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(k,0,0,x+S,b+w);var C=g.createCanvas(x+S,b+w),R=C.getContext("2d");g.screen.setDefaults(R),d.render(R),R.globalCompositeOperation="destination-in",R.fillStyle=k.createPattern(_,"no-repeat"),R.fillRect(0,0,x+S,b+w),h.fillStyle=R.createPattern(C,"no-repeat"),h.fillRect(0,0,x+S,b+w),this.restoreStyles(d,A)}},{key:"render",value:function render(h){}}]),MaskElement}();function _createSuper$F(h){var d=function _isNativeReflectConstruct$F(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}Nm.ignoreStyles=["mask","transform","clip-path"];var Im=function noop(){},Lm=function(h){kv(ClipPathElement,qg);var d=_createSuper$F(ClipPathElement);function ClipPathElement(){var h;return xy(this,ClipPathElement),(h=d.apply(this,arguments)).type="clipPath",h}return by(ClipPathElement,[{key:"apply",value:function apply(h){var d,g=this.document,x=dg(h),b=h.beginPath,S=h.closePath;x&&(x.beginPath=Im,x.closePath=Im),vg(b,h,[]),Ph(d=this.children).call(d,(function(d){if(void 0!==d.path){var b=void 0!==d.elementTransform?d.elementTransform():null;b||(b=Hg.fromElement(g,d)),b&&b.apply(h),d.path(h),x&&(x.closePath=S),b&&b.unapply(h)}})),vg(S,h,[]),h.clip(),x&&(x.beginPath=b,x.closePath=S)}},{key:"render",value:function render(h){}}]),ClipPathElement}();function _createSuper$G(h){var d=function _isNativeReflectConstruct$G(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}var Dm=function(h){kv(FilterElement,qg);var d=_createSuper$G(FilterElement);function FilterElement(){var h;return xy(this,FilterElement),(h=d.apply(this,arguments)).type="filter",h}return by(FilterElement,[{key:"apply",value:function apply(h,d){var g=this.document,x=this.children,b=d.getBoundingBox(h);if(b){var S=0,w=0;Ph(x).call(x,(function(h){var d=h.extraFilterDistance||0;S=Math.max(S,d),w=Math.max(w,d)}));var E=Math.floor(b.width),P=Math.floor(b.height),A=E+2*S,_=P+2*w;if(!(A<1||_<1)){var k=Math.floor(b.x),C=Math.floor(b.y),R=this.removeStyles(d,FilterElement.ignoreStyles),M=g.createCanvas(A,_),N=M.getContext("2d");g.screen.setDefaults(N),N.translate(-k+S,-C+w),d.render(N),Ph(x).call(x,(function(h){"function"==typeof h.apply&&h.apply(N,0,0,A,_)})),h.drawImage(M,0,0,A,_,k-S,C-w,A,_),this.restoreStyles(d,R)}}}},{key:"render",value:function render(h){}}]),FilterElement}();function _createSuper$H(h){var d=function _isNativeReflectConstruct$H(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}function _createSuper$I(h){var d=function _isNativeReflectConstruct$I(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}function _createSuper$J(h){var d=function _isNativeReflectConstruct$J(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}function _createSuper$K(h){var d=function _isNativeReflectConstruct$K(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}function _createSuper$L(h){var d=function _isNativeReflectConstruct$L(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}function _createSuper$M(h){var d=function _isNativeReflectConstruct$M(){if("undefined"==typeof Reflect||!wv)return!1;if(wv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Iv(h);if(d){var b=Iv(this).constructor;g=wv(x,arguments,b)}else g=x.apply(this,arguments);return Rv(this,g)}}Dm.ignoreStyles=["filter","transform","clip-path"];var jm={svg:rm,rect:nm,circle:im,ellipse:am,line:om,polyline:um,polygon:sm,path:em,pattern:cm,marker:lm,defs:fm,linearGradient:ym,radialGradient:vm,stop:dm,animate:gm,animateColor:mm,animateTransform:xm,font:bm,"font-face":Sm,"missing-glyph":wm,glyph:Em,text:Zg,tspan:Kg,tref:Pm,a:Am,textPath:_m,image:km,g:hm,symbol:Tm,style:Cm,use:Rm,mask:Nm,clipPath:Lm,filter:Dm,feDropShadow:function(h){kv(FeDropShadowElement,qg);var d=_createSuper$H(FeDropShadowElement);function FeDropShadowElement(h,g,x){var b;return xy(this,FeDropShadowElement),(b=d.call(this,h,g,x)).type="feDropShadow",b.addStylesFromStyleDefinition(),b}return by(FeDropShadowElement,[{key:"apply",value:function apply(h,d,g,x,b){}}]),FeDropShadowElement}(),feMorphology:function(h){kv(FeMorphologyElement,qg);var d=_createSuper$I(FeMorphologyElement);function FeMorphologyElement(){var h;return xy(this,FeMorphologyElement),(h=d.apply(this,arguments)).type="feMorphology",h}return by(FeMorphologyElement,[{key:"apply",value:function apply(h,d,g,x,b){}}]),FeMorphologyElement}(),feComposite:function(h){kv(FeCompositeElement,qg);var d=_createSuper$J(FeCompositeElement);function FeCompositeElement(){var h;return xy(this,FeCompositeElement),(h=d.apply(this,arguments)).type="feComposite",h}return by(FeCompositeElement,[{key:"apply",value:function apply(h,d,g,x,b){}}]),FeCompositeElement}(),feColorMatrix:Mm,feGaussianBlur:function(h){kv(FeGaussianBlurElement,qg);var d=_createSuper$K(FeGaussianBlurElement);function FeGaussianBlurElement(h,g,x){var b;return xy(this,FeGaussianBlurElement),(b=d.call(this,h,g,x)).type="feGaussianBlur",b.blurRadius=Math.floor(b.getAttribute("stdDeviation").getNumber()),b.extraFilterDistance=b.blurRadius,b}return by(FeGaussianBlurElement,[{key:"apply",value:function apply(h,d,g,x,b){var S=this.document,w=this.blurRadius,E=S.window?S.window.document.body:null,P=h.canvas;P.id=S.getUniqueId(),E&&(P.style.display="none",E.appendChild(P)),processCanvasRGBA(P,d,g,x,b,w),E&&E.removeChild(P)}}]),FeGaussianBlurElement}(),title:function(h){kv(TitleElement,qg);var d=_createSuper$L(TitleElement);function TitleElement(){var h;return xy(this,TitleElement),(h=d.apply(this,arguments)).type="title",h}return TitleElement}(),desc:function(h){kv(DescElement,qg);var d=_createSuper$M(DescElement);function DescElement(){var h;return xy(this,DescElement),(h=d.apply(this,arguments)).type="desc",h}return DescElement}()};function ownKeys$1$1(h,d){var g=Fh(h);if(Vh){var x=Vh(h);d&&(x=jh(x).call(x,(function(d){return Th(h,d).enumerable}))),g.push.apply(g,x)}return g}function _createImage(){return(_createImage=dy(Uh.mark((function _callee(h){var d,g,x=arguments;return Uh.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:return d=x.length>1&&void 0!==x[1]&&x[1],g=document.createElement("img"),d&&(g.crossOrigin="Anonymous"),b.abrupt("return",new Gy((function(d,x){g.onload=function(){d(g)},g.onerror=function(){x()},g.src=h})));case 4:case"end":return b.stop()}}),_callee)})))).apply(this,arguments)}var Vm=function(){function Document(h){var d,g,x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=x.rootEmSize,S=void 0===b?12:b,w=x.emSize,E=void 0===w?12:w,P=x.createCanvas,A=void 0===P?Document.createCanvas:P,_=x.createImage,k=void 0===_?Document.createImage:_,C=x.anonymousCrossOrigin;xy(this,Document),this.canvg=h,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=h.screen,this.rootEmSize=S,this.emSize=E,this.createCanvas=A,this.createImage=this.bindCreateImage(k,C),this.screen.wait(Zy(d=this.isImagesLoaded).call(d,this)),this.screen.wait(Zy(g=this.isFontsLoaded).call(g,this))}return by(Document,[{key:"bindCreateImage",value:function bindCreateImage(h,d){return"boolean"==typeof d?function(g,x){return h(g,"boolean"==typeof x?x:d)}:h}},{key:"popEmSize",value:function popEmSize(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function getUniqueId(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function isImagesLoaded(){var h;return zy(h=this.images).call(h,(function(h){return h.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){var h;return zy(h=this.fonts).call(h,(function(h){return h.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(h){var d=this.createElement(h.documentElement);return d.root=!0,d.addStylesFromStyleDefinition(),this.documentElement=d,d}},{key:"createElement",value:function createElement(h){var d=h.nodeName.replace(/^[^:]+:/,""),g=Document.elementTypes[d];return void 0!==g?new g(this,h):new Xg(this,h)}},{key:"createTextNode",value:function createTextNode(h){return new Jg(this,h)}},{key:"setViewBox",value:function setViewBox(h){this.screen.setViewBox(function _objectSpread$1(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)Ph(g=ownKeys$1$1(Object(x),!0)).call(g,(function(d){my(h,d,x[d])}));else if(vh)ph(h,vh(x));else{var b;Ph(b=ownKeys$1$1(Object(x))).call(b,(function(d){hh(h,d,Th(x,d))}))}}return h}({document:this},h))}},{key:"window",get:function get(){return this.screen.window}},{key:"fetch",get:function get(){return this.screen.fetch}},{key:"ctx",get:function get(){return this.screen.ctx}},{key:"emSize",get:function get(){var h=this.emSizeStack;return h[h.length-1]},set:function set(h){this.emSizeStack.push(h)}}]),Document}();function ownKeys$2$1(h,d){var g=Fh(h);if(Vh){var x=Vh(h);d&&(x=jh(x).call(x,(function(d){return Th(h,d).enumerable}))),g.push.apply(g,x)}return g}function _objectSpread$2(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)Ph(g=ownKeys$2$1(Object(x),!0)).call(g,(function(d){my(h,d,x[d])}));else if(vh)ph(h,vh(x));else{var b;Ph(b=ownKeys$2$1(Object(x))).call(b,(function(d){hh(h,d,Th(x,d))}))}}return h}Vm.createCanvas=function createCanvas(h,d){var g=document.createElement("canvas");return g.width=h,g.height=d,g},Vm.createImage=function createImage(h){return _createImage.apply(this,arguments)},Vm.elementTypes=jm;var $m=function(){function Canvg(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};xy(this,Canvg),this.parser=new jg(g),this.screen=new Ig(h,g),this.options=g;var x=new Vm(this,g),b=x.createDocumentElement(d);this.document=x,this.documentElement=b}var h,d;return by(Canvg,[{key:"fork",value:function fork(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(h,d,_objectSpread$2(_objectSpread$2({},this.options),g))}},{key:"forkString",value:function forkString(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(h,d,_objectSpread$2(_objectSpread$2({},this.options),g))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(d=dy(Uh.mark((function _callee(){var h,d=arguments;return Uh.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:return h=d.length>0&&void 0!==d[0]?d[0]:{},this.start(_objectSpread$2({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},h)),g.next=4,this.ready();case 4:this.stop();case 5:case"end":return g.stop()}}),_callee,this)}))),function render(){return d.apply(this,arguments)})},{key:"start",value:function start(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=this.documentElement,g=this.screen,x=this.options;g.start(d,_objectSpread$2(_objectSpread$2({enableRedraw:!0},x),h))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(h,d,g)}}],[{key:"from",value:(h=dy(Uh.mark((function _callee2(h,d){var g,x,b,S=arguments;return Uh.wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:return g=S.length>2&&void 0!==S[2]?S[2]:{},x=new jg(g),w.next=4,x.parse(d);case 4:return b=w.sent,w.abrupt("return",new Canvg(h,b,g));case 6:case"end":return w.stop()}}),_callee2)}))),function from(d,g){return h.apply(this,arguments)})},{key:"fromString",value:function fromString(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},x=new jg(g),b=x.parseFromString(d);return new Canvg(h,b,g)}}]),Canvg}();function __variableDynamicImportRuntime0__(h){switch(h){case"./locale/en.js":return Promise.resolve().then((function(){return Bm}));case"./locale/zh-CN.js":return Promise.resolve().then((function(){return zm}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+h))}}var Fm=function(){var h=_asyncToGenerator(regeneratorRuntime.mark((function _callee(h){var d;return regeneratorRuntime.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=0,g.next=3,__variableDynamicImportRuntime0__("./locale/".concat(encodeURIComponent(h),".js"));case 3:d=g.sent,g.next=12;break;case 6:return g.prev=6,g.t0=g.catch(0),console.error("Missing translation (".concat(h,") - using 'en'")),g.next=11,Promise.resolve().then((function(){return Bm}));case 11:d=g.sent;case 12:return g.abrupt("return",d.default);case 13:case"end":return g.stop()}}),_callee,null,[[0,6]])})));return function loadExtensionTranslation(d){return h.apply(this,arguments)}}(),Um={name:"server_moinsave",init:function init(h){var d=this;return _asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var g,x,b,S,w;return regeneratorRuntime.wrap((function _callee3$(E){for(;;)switch(E.prev=E.next){case 0:return g=h.$,x=h.encode64,h.importLocale,b=d,E.next=4,Fm(b.curPrefs.lang);case 4:S=E.sent,w=b.canvas,"/+modify",g('<iframe name="output_frame" title="'.concat(S.hiddenframe,'"\n style="width: 0; height: 0;" src="data:text/html;base64,PGh0bWw+PC9odG1sPg=="/>')).appendTo("body"),b.setCustomHandlers({save:function save(h,d){return _asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var h,b,E,P,A,_,k,C;return regeneratorRuntime.wrap((function _callee2$(R){for(;;)switch(R.prev=R.next){case 0:return h='<?xml version="1.0"?>\n'+d,b=new URL(location),E=b.pathname,P=E.replace(/\/+get\//,""),A=x(h),g("#export_canvas").length||g("<canvas>",{id:"export_canvas"}).hide().appendTo("body"),(_=g("#export_canvas")[0]).width=w.contentW,_.height=w.contentH,R.next=10,$m(_,h);case 10:k=_.toDataURL("image/png"),C=x(k),g("<form>").attr({method:"post",action:"/+modify/"+P,target:"output_frame"}).append('\n <input type="hidden" name="png_data" value="'.concat(C,'">\n <input type="hidden" name="filepath" value="').concat(A,'">\n <input type="hidden" name="filename" value="drawing.svg">\n <input type="hidden" name="contenttype" value="application/x-svgdraw">\n ')).appendTo("body").submit().remove(),g.alert(S.saved),top.window.location="/"+P;case 15:case"end":return R.stop()}}),_callee2)})))()}});case 9:case"end":return E.stop()}}),_callee3)})))()}},Bm=Object.freeze({__proto__:null,default:{saved:"Saved! Return to Item View!",hiddenframe:"Moinsave frame to store hidden values"}}),zm=Object.freeze({__proto__:null,default:{saved:"已保存! 返回视图!",hiddenframe:"Moinsave frame to store hidden values"}});export default Um;
//# sourceMappingURL=ext-server_moinsave.js.map