2 lines
281 KiB
JavaScript
2 lines
281 KiB
JavaScript
System.register([],(function(h){"use strict";return{execute:function(){var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(h,g,d){return h(d={path:g,exports:{},require:function(h,g){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==g&&d.path)}},d.exports),d.exports}var check=function(h){return h&&h.Math==Math&&h},d=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof g&&g)||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 g=S(this,h);return!!g&&g.enumerable}:b},createPropertyDescriptor=function(h,g){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:g}},E={}.toString,classofRaw=function(h){return E.call(h).slice(8,-1)},A="".split,P=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==classofRaw(h)?A.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 P(requireObjectCoercible(h))},isObject=function(h){return"object"==typeof h?null!==h:"function"==typeof h},toPrimitive=function(h,g){if(!isObject(h))return h;var d,x;if(g&&"function"==typeof(d=h.toString)&&!isObject(x=d.call(h)))return x;if("function"==typeof(d=h.valueOf)&&!isObject(x=d.call(h)))return x;if(!g&&"function"==typeof(d=h.toString)&&!isObject(x=d.call(h)))return x;throw TypeError("Can't convert object to primitive value")},k={}.hasOwnProperty,has=function(h,g){return k.call(h,g)},_=d.document,C=isObject(_)&&isObject(_.createElement),documentCreateElement=function(h){return C?_.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,g){if(h=toIndexedObject(h),g=toPrimitive(g,!0),R)try{return M(h,g)}catch(h){}if(has(h,g))return createPropertyDescriptor(!w.f.call(h,g),h[g])}},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,g,d){if(anObject(h),g=toPrimitive(g,!0),anObject(d),R)try{return L(h,g,d)}catch(h){}if("get"in d||"set"in d)throw TypeError("Accessors not supported");return"value"in d&&(h[g]=d.value),h}},j=x?function(h,g,d){return D.f(h,g,createPropertyDescriptor(1,d))}:function(h,g,d){return h[g]=d,h},setGlobal=function(h,g){try{j(d,h,g)}catch(x){d[h]=g}return g},V="__core-js_shared__",$=d[V]||setGlobal(V,{}),B=Function.toString;"function"!=typeof $.inspectSource&&($.inspectSource=function(h){return B.call(h)});var U,z,G,q=$.inspectSource,X=d.WeakMap,Y="function"==typeof X&&/native code/.test(q(X)),W=createCommonjsModule((function(h){(h.exports=function(h,g){return $[h]||($[h]=void 0!==g?g:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Q=0,Z=Math.random(),uid=function(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Q+Z).toString(36)},K=W("keys"),sharedKey=function(h){return K[h]||(K[h]=uid(h))},J={},tt=d.WeakMap;if(Y){var et=new tt,rt=et.get,nt=et.has,it=et.set;U=function(h,g){return it.call(et,h,g),g},z=function(h){return rt.call(et,h)||{}},G=function(h){return nt.call(et,h)}}else{var at=sharedKey("state");J[at]=!0,U=function(h,g){return j(h,at,g),g},z=function(h){return has(h,at)?h[at]:{}},G=function(h){return has(h,at)}}var ot,ut,st={set:U,get:z,has:G,enforce:function(h){return G(h)?z(h):U(h,{})},getterFor:function(h){return function(g){var d;if(!isObject(g)||(d=z(g)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return d}}},ct=createCommonjsModule((function(h){var g=st.get,x=st.enforce,b=String(String).split("String");(h.exports=function(h,g,S,w){var E=!!w&&!!w.unsafe,A=!!w&&!!w.enumerable,P=!!w&&!!w.noTargetGet;"function"==typeof S&&("string"!=typeof g||has(S,"name")||j(S,"name",g),x(S).source=b.join("string"==typeof g?g:"")),h!==d?(E?!P&&h[g]&&(A=!0):delete h[g],A?h[g]=S:j(h,g,S)):A?h[g]=S:setGlobal(g,S)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&g(this).source||q(this)}))})),lt=d,aFunction=function(h){return"function"==typeof h?h:void 0},getBuiltIn=function(h,g){return arguments.length<2?aFunction(lt[h])||aFunction(d[h]):lt[h]&<[h][g]||d[h]&&d[h][g]},ft=Math.ceil,ht=Math.floor,toInteger=function(h){return isNaN(h=+h)?0:(h>0?ht:ft)(h)},pt=Math.min,toLength=function(h){return h>0?pt(toInteger(h),9007199254740991):0},yt=Math.max,vt=Math.min,toAbsoluteIndex=function(h,g){var d=toInteger(h);return d<0?yt(d+g,0):vt(d,g)},createMethod=function(h){return function(g,d,x){var b,S=toIndexedObject(g),w=toLength(S.length),E=toAbsoluteIndex(x,w);if(h&&d!=d){for(;w>E;)if((b=S[E++])!=b)return!0}else for(;w>E;E++)if((h||E in S)&&S[E]===d)return h||E||0;return!h&&-1}},gt={includes:createMethod(!0),indexOf:createMethod(!1)},dt=gt.indexOf,objectKeysInternal=function(h,g){var d,x=toIndexedObject(h),b=0,S=[];for(d in x)!has(J,d)&&has(x,d)&&S.push(d);for(;g.length>b;)has(x,d=g[b++])&&(~dt(S,d)||S.push(d));return S},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xt=mt.concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return objectKeysInternal(h,xt)}},St={f:Object.getOwnPropertySymbols},wt=getBuiltIn("Reflect","ownKeys")||function ownKeys(h){var g=bt.f(anObject(h)),d=St.f;return d?g.concat(d(h)):g},copyConstructorProperties=function(h,g){for(var d=wt(g),x=D.f,b=N.f,S=0;S<d.length;S++){var w=d[S];has(h,w)||x(h,w,b(g,w))}},Et=/#|\.prototype\./,isForced=function(h,g){var d=Pt[At(h)];return d==kt||d!=Tt&&("function"==typeof g?fails(g):!!g)},At=isForced.normalize=function(h){return String(h).replace(Et,".").toLowerCase()},Pt=isForced.data={},Tt=isForced.NATIVE="N",kt=isForced.POLYFILL="P",_t=isForced,Ot=N.f,_export=function(h,g){var x,b,S,w,E,A=h.target,P=h.global,k=h.stat;if(x=P?d:k?d[A]||setGlobal(A,{}):(d[A]||{}).prototype)for(b in g){if(w=g[b],S=h.noTargetGet?(E=Ot(x,b))&&E.value:x[b],!_t(P?b:A+(k?".":"#")+b,h.forced)&&void 0!==S){if(typeof w==typeof S)continue;copyConstructorProperties(w,S)}(h.sham||S&&S.sham)&&j(w,"sham",!0),ct(x,b,w,h)}},Ct=Array.isArray||function isArray(h){return"Array"==classofRaw(h)},toObject=function(h){return Object(requireObjectCoercible(h))},createProperty=function(h,g,d){var x=toPrimitive(g);x in h?D.f(h,x,createPropertyDescriptor(0,d)):h[x]=d},Rt=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),Mt=Rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Nt=W("wks"),It=d.Symbol,Lt=Mt?It:It&&It.withoutSetter||uid,wellKnownSymbol=function(h){return has(Nt,h)||(Rt&&has(It,h)?Nt[h]=It[h]:Nt[h]=Lt("Symbol."+h)),Nt[h]},Dt=wellKnownSymbol("species"),arraySpeciesCreate=function(h,g){var d;return Ct(h)&&("function"!=typeof(d=h.constructor)||d!==Array&&!Ct(d.prototype)?isObject(d)&&null===(d=d[Dt])&&(d=void 0):d=void 0),new(void 0===d?Array:d)(0===g?0:g)},jt=getBuiltIn("navigator","userAgent")||"",Vt=d.process,$t=Vt&&Vt.versions,Ft=$t&&$t.v8;Ft?ut=(ot=Ft.split("."))[0]+ot[1]:jt&&(!(ot=jt.match(/Edge\/(\d+)/))||ot[1]>=74)&&(ot=jt.match(/Chrome\/(\d+)/))&&(ut=ot[1]);var Bt=ut&&+ut,Ut=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(h){return Bt>=51||!fails((function(){var g=[];return(g.constructor={})[Ut]=function(){return{foo:1}},1!==g[h](Boolean).foo}))},zt=wellKnownSymbol("isConcatSpreadable"),Gt=9007199254740991,Ht="Maximum allowed index exceeded",qt=Bt>=51||!fails((function(){var h=[];return h[zt]=!1,h.concat()[0]!==h})),Xt=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(h){if(!isObject(h))return!1;var g=h[zt];return void 0!==g?!!g:Ct(h)};_export({target:"Array",proto:!0,forced:!qt||!Xt},{concat:function concat(h){var g,d,x,b,S,w=toObject(this),E=arraySpeciesCreate(w,0),A=0;for(g=-1,x=arguments.length;g<x;g++)if(isConcatSpreadable(S=-1===g?w:arguments[g])){if(A+(b=toLength(S.length))>Gt)throw TypeError(Ht);for(d=0;d<b;d++,A++)d in S&&createProperty(E,A,S[d])}else{if(A>=Gt)throw TypeError(Ht);createProperty(E,A++,S)}return E.length=A,E}});var Yt,Wt=Object.keys||function keys(h){return objectKeysInternal(h,mt)},Qt=x?Object.defineProperties:function defineProperties(h,g){anObject(h);for(var d,x=Wt(g),b=x.length,S=0;b>S;)D.f(h,d=x[S++],g[d]);return h},Zt=getBuiltIn("document","documentElement"),Kt=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(h){return"<script>"+h+"</"+"script>"},NullProtoObject=function(){try{Yt=document.domain&&new ActiveXObject("htmlfile")}catch(h){}var h,g;NullProtoObject=Yt?function(h){h.write(scriptTag("")),h.close();var g=h.parentWindow.Object;return h=null,g}(Yt):((g=documentCreateElement("iframe")).style.display="none",Zt.appendChild(g),g.src=String("javascript:"),(h=g.contentWindow.document).open(),h.write(scriptTag("document.F=Object")),h.close(),h.F);for(var d=mt.length;d--;)delete NullProtoObject.prototype[mt[d]];return NullProtoObject()};J[Kt]=!0;var Jt=Object.create||function create(h,g){var d;return null!==h?(EmptyConstructor.prototype=anObject(h),d=new EmptyConstructor,EmptyConstructor.prototype=null,d[Kt]=h):d=NullProtoObject(),void 0===g?d:Qt(d,g)},te=wellKnownSymbol("unscopables"),ee=Array.prototype;null==ee[te]&&D.f(ee,te,{configurable:!0,value:Jt(null)});var re,ne,ie,addToUnscopables=function(h){ee[te][h]=!0},ae={},oe=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),ue=sharedKey("IE_PROTO"),se=Object.prototype,ce=oe?Object.getPrototypeOf:function(h){return h=toObject(h),has(h,ue)?h[ue]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?se:null},le=wellKnownSymbol("iterator"),fe=!1;[].keys&&("next"in(ie=[].keys())?(ne=ce(ce(ie)))!==Object.prototype&&(re=ne):fe=!0),null==re&&(re={}),has(re,le)||j(re,le,(function(){return this}));var he={IteratorPrototype:re,BUGGY_SAFARI_ITERATORS:fe},pe=D.f,ye=wellKnownSymbol("toStringTag"),setToStringTag=function(h,g,d){h&&!has(h=d?h:h.prototype,ye)&&pe(h,ye,{configurable:!0,value:g})},ve=he.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(h,g,d){var x=g+" Iterator";return h.prototype=Jt(ve,{next:createPropertyDescriptor(1,d)}),setToStringTag(h,x,!1),ae[x]=returnThis$1,h},ge=Object.setPrototypeOf||("__proto__"in{}?function(){var h,g=!1,d={};try{(h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(d,[]),g=d instanceof Array}catch(h){}return function setPrototypeOf(d,x){return anObject(d),function(h){if(!isObject(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype")}(x),g?h.call(d,x):d.__proto__=x,d}}():void 0),de=he.IteratorPrototype,me=he.BUGGY_SAFARI_ITERATORS,xe=wellKnownSymbol("iterator"),be="keys",Se="values",we="entries",returnThis$2=function(){return this},defineIterator=function(h,g,d,x,b,S,w){createIteratorConstructor(d,g,x);var E,A,P,getIterationMethod=function(h){if(h===b&&M)return M;if(!me&&h in C)return C[h];switch(h){case be:return function keys(){return new d(this,h)};case Se:return function values(){return new d(this,h)};case we:return function entries(){return new d(this,h)}}return function(){return new d(this)}},k=g+" Iterator",_=!1,C=h.prototype,R=C[xe]||C["@@iterator"]||b&&C[b],M=!me&&R||getIterationMethod(b),N="Array"==g&&C.entries||R;if(N&&(E=ce(N.call(new h)),de!==Object.prototype&&E.next&&(ce(E)!==de&&(ge?ge(E,de):"function"!=typeof E[xe]&&j(E,xe,returnThis$2)),setToStringTag(E,k,!0))),b==Se&&R&&R.name!==Se&&(_=!0,M=function values(){return R.call(this)}),C[xe]!==M&&j(C,xe,M),ae[g]=M,b)if(A={values:getIterationMethod(Se),keys:S?M:getIterationMethod(be),entries:getIterationMethod(we)},w)for(P in A)(me||_||!(P in C))&&ct(C,P,A[P]);else _export({target:g,proto:!0,forced:me||_},A);return A},Ee="Array Iterator",Ae=st.set,Pe=st.getterFor(Ee),Te=defineIterator(Array,"Array",(function(h,g){Ae(this,{type:Ee,target:toIndexedObject(h),index:0,kind:g})}),(function(){var h=Pe(this),g=h.target,d=h.kind,x=h.index++;return!g||x>=g.length?(h.target=void 0,{value:void 0,done:!0}):"keys"==d?{value:x,done:!1}:"values"==d?{value:g[x],done:!1}:{value:[x,g[x]],done:!1}}),"values");ae.Arguments=ae.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var ke={};ke[wellKnownSymbol("toStringTag")]="z";var _e="[object z]"===String(ke),Oe=wellKnownSymbol("toStringTag"),Ce="Arguments"==classofRaw(function(){return arguments}()),Re=_e?classofRaw:function(h){var g,d,x;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(d=function(h,g){try{return h[g]}catch(h){}}(g=Object(h),Oe))?d:Ce?classofRaw(g):"Object"==(x=classofRaw(g))&&"function"==typeof g.callee?"Arguments":x},Me=_e?{}.toString:function toString(){return"[object "+Re(this)+"]"};_e||ct(Object.prototype,"toString",Me,{unsafe:!0});var Ne=d.Promise,redefineAll=function(h,g,d){for(var x in g)ct(h,x,g[x],d);return h},Ie=wellKnownSymbol("species"),setSpecies=function(h){var g=getBuiltIn(h),d=D.f;x&&g&&!g[Ie]&&d(g,Ie,{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,g,d){if(!(h instanceof g))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return h},Le=wellKnownSymbol("iterator"),De=Array.prototype,isArrayIteratorMethod=function(h){return void 0!==h&&(ae.Array===h||De[Le]===h)},functionBindContext=function(h,g,d){if(aFunction$1(h),void 0===g)return h;switch(d){case 0:return function(){return h.call(g)};case 1:return function(d){return h.call(g,d)};case 2:return function(d,x){return h.call(g,d,x)};case 3:return function(d,x,b){return h.call(g,d,x,b)}}return function(){return h.apply(g,arguments)}},je=wellKnownSymbol("iterator"),getIteratorMethod=function(h){if(null!=h)return h[je]||h["@@iterator"]||ae[Re(h)]},callWithSafeIterationClosing=function(h,g,d,x){try{return x?g(anObject(d)[0],d[1]):g(d)}catch(g){var b=h.return;throw void 0!==b&&anObject(b.call(h)),g}},Ve=createCommonjsModule((function(h){var Result=function(h,g){this.stopped=h,this.result=g};(h.exports=function(h,g,d,x,b){var S,w,E,A,P,k,_,C=functionBindContext(g,d,x?2:1);if(b)S=h;else{if("function"!=typeof(w=getIteratorMethod(h)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(w)){for(E=0,A=toLength(h.length);A>E;E++)if((P=x?C(anObject(_=h[E])[0],_[1]):C(h[E]))&&P instanceof Result)return P;return new Result(!1)}S=w.call(h)}for(k=S.next;!(_=k.call(S)).done;)if("object"==typeof(P=callWithSafeIterationClosing(S,C,_.value,x))&&P&&P instanceof Result)return P;return new Result(!1)}).stop=function(h){return new Result(!0,h)}})),$e=wellKnownSymbol("iterator"),Fe=!1;try{var Be=0,Ue={next:function(){return{done:!!Be++}},return:function(){Fe=!0}};Ue[$e]=function(){return this},Array.from(Ue,(function(){throw 2}))}catch(h){}var ze,Ge,He,checkCorrectnessOfIteration=function(h,g){if(!g&&!Fe)return!1;var d=!1;try{var x={};x[$e]=function(){return{next:function(){return{done:d=!0}}}},h(x)}catch(h){}return d},qe=wellKnownSymbol("species"),speciesConstructor=function(h,g){var d,x=anObject(h).constructor;return void 0===x||null==(d=anObject(x)[qe])?g:aFunction$1(d)},Xe=/(iphone|ipod|ipad).*applewebkit/i.test(jt),Ye=d.location,We=d.setImmediate,Qe=d.clearImmediate,Ze=d.process,Ke=d.MessageChannel,Je=d.Dispatch,tr=0,er={},rr="onreadystatechange",run=function(h){if(er.hasOwnProperty(h)){var g=er[h];delete er[h],g()}},runner=function(h){return function(){run(h)}},listener=function(h){run(h.data)},post=function(h){d.postMessage(h+"",Ye.protocol+"//"+Ye.host)};We&&Qe||(We=function setImmediate(h){for(var g=[],d=1;arguments.length>d;)g.push(arguments[d++]);return er[++tr]=function(){("function"==typeof h?h:Function(h)).apply(void 0,g)},ze(tr),tr},Qe=function clearImmediate(h){delete er[h]},"process"==classofRaw(Ze)?ze=function(h){Ze.nextTick(runner(h))}:Je&&Je.now?ze=function(h){Je.now(runner(h))}:Ke&&!Xe?(He=(Ge=new Ke).port2,Ge.port1.onmessage=listener,ze=functionBindContext(He.postMessage,He,1)):!d.addEventListener||"function"!=typeof postMessage||d.importScripts||fails(post)||"file:"===Ye.protocol?ze=rr in documentCreateElement("script")?function(h){Zt.appendChild(documentCreateElement("script")).onreadystatechange=function(){Zt.removeChild(this),run(h)}}:function(h){setTimeout(runner(h),0)}:(ze=post,d.addEventListener("message",listener,!1)));var nr,ir,ar,or,ur,sr,cr,lr,fr={set:We,clear:Qe},hr=N.f,pr=fr.set,yr=d.MutationObserver||d.WebKitMutationObserver,vr=d.process,gr=d.Promise,dr="process"==classofRaw(vr),mr=hr(d,"queueMicrotask"),xr=mr&&mr.value;xr||(nr=function(){var h,g;for(dr&&(h=vr.domain)&&h.exit();ir;){g=ir.fn,ir=ir.next;try{g()}catch(h){throw ir?or():ar=void 0,h}}ar=void 0,h&&h.enter()},dr?or=function(){vr.nextTick(nr)}:yr&&!Xe?(ur=!0,sr=document.createTextNode(""),new yr(nr).observe(sr,{characterData:!0}),or=function(){sr.data=ur=!ur}):gr&&gr.resolve?(cr=gr.resolve(void 0),lr=cr.then,or=function(){lr.call(cr,nr)}):or=function(){pr.call(d,nr)});var br,Sr,wr,Er,Ar=xr||function(h){var g={fn:h,next:void 0};ar&&(ar.next=g),ir||(ir=g,or()),ar=g},PromiseCapability=function(h){var g,d;this.promise=new h((function(h,x){if(void 0!==g||void 0!==d)throw TypeError("Bad Promise constructor");g=h,d=x})),this.resolve=aFunction$1(g),this.reject=aFunction$1(d)},Pr={f:function(h){return new PromiseCapability(h)}},promiseResolve=function(h,g){if(anObject(h),isObject(g)&&g.constructor===h)return g;var d=Pr.f(h);return(0,d.resolve)(g),d.promise},perform=function(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}},Tr=fr.set,kr=wellKnownSymbol("species"),_r="Promise",Or=st.get,Cr=st.set,Rr=st.getterFor(_r),Mr=Ne,Nr=d.TypeError,Ir=d.document,Lr=d.process,Dr=getBuiltIn("fetch"),jr=Pr.f,Vr=jr,$r="process"==classofRaw(Lr),Fr=!!(Ir&&Ir.createEvent&&d.dispatchEvent),Br="unhandledrejection",Ur=_t(_r,(function(){if(!(q(Mr)!==String(Mr))){if(66===Bt)return!0;if(!$r&&"function"!=typeof PromiseRejectionEvent)return!0}if(Bt>=51&&/native code/.test(Mr))return!1;var h=Mr.resolve(1),FakePromise=function(h){h((function(){}),(function(){}))};return(h.constructor={})[kr]=FakePromise,!(h.then((function(){}))instanceof FakePromise)})),zr=Ur||!checkCorrectnessOfIteration((function(h){Mr.all(h).catch((function(){}))})),isThenable=function(h){var g;return!(!isObject(h)||"function"!=typeof(g=h.then))&&g},notify$1=function(h,g,d){if(!g.notified){g.notified=!0;var x=g.reactions;Ar((function(){for(var b=g.value,S=1==g.state,w=0;x.length>w;){var E,A,P,k=x[w++],_=S?k.ok:k.fail,C=k.resolve,R=k.reject,M=k.domain;try{_?(S||(2===g.rejection&&onHandleUnhandled(h,g),g.rejection=1),!0===_?E=b:(M&&M.enter(),E=_(b),M&&(M.exit(),P=!0)),E===k.promise?R(Nr("Promise-chain cycle")):(A=isThenable(E))?A.call(E,C,R):C(E)):R(b)}catch(h){M&&!P&&M.exit(),R(h)}}g.reactions=[],g.notified=!1,d&&!g.rejection&&onUnhandled(h,g)}))}},dispatchEvent=function(h,g,x){var b,S;Fr?((b=Ir.createEvent("Event")).promise=g,b.reason=x,b.initEvent(h,!1,!0),d.dispatchEvent(b)):b={promise:g,reason:x},(S=d["on"+h])?S(b):h===Br&&function(h,g){var x=d.console;x&&x.error&&(1===arguments.length?x.error(h):x.error(h,g))}("Unhandled promise rejection",x)},onUnhandled=function(h,g){Tr.call(d,(function(){var d,x=g.value;if(isUnhandled(g)&&(d=perform((function(){$r?Lr.emit("unhandledRejection",x,h):dispatchEvent(Br,h,x)})),g.rejection=$r||isUnhandled(g)?2:1,d.error))throw d.value}))},isUnhandled=function(h){return 1!==h.rejection&&!h.parent},onHandleUnhandled=function(h,g){Tr.call(d,(function(){$r?Lr.emit("rejectionHandled",h):dispatchEvent("rejectionhandled",h,g.value)}))},bind=function(h,g,d,x){return function(b){h(g,d,b,x)}},internalReject=function(h,g,d,x){g.done||(g.done=!0,x&&(g=x),g.value=d,g.state=2,notify$1(h,g,!0))},internalResolve=function(h,g,d,x){if(!g.done){g.done=!0,x&&(g=x);try{if(h===d)throw Nr("Promise can't be resolved itself");var b=isThenable(d);b?Ar((function(){var x={done:!1};try{b.call(d,bind(internalResolve,h,x,g),bind(internalReject,h,x,g))}catch(d){internalReject(h,x,d,g)}})):(g.value=d,g.state=1,notify$1(h,g,!1))}catch(d){internalReject(h,{done:!1},d,g)}}};Ur&&(Mr=function Promise(h){anInstance(this,Mr,_r),aFunction$1(h),br.call(this);var g=Or(this);try{h(bind(internalResolve,this,g),bind(internalReject,this,g))}catch(h){internalReject(this,g,h)}},(br=function Promise(h){Cr(this,{type:_r,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(Mr.prototype,{then:function then(h,g){var d=Rr(this),x=jr(speciesConstructor(this,Mr));return x.ok="function"!=typeof h||h,x.fail="function"==typeof g&&g,x.domain=$r?Lr.domain:void 0,d.parent=!0,d.reactions.push(x),0!=d.state&¬ify$1(this,d,!1),x.promise},catch:function(h){return this.then(void 0,h)}}),Sr=function(){var h=new br,g=Or(h);this.promise=h,this.resolve=bind(internalResolve,h,g),this.reject=bind(internalReject,h,g)},Pr.f=jr=function(h){return h===Mr||h===wr?new Sr(h):Vr(h)},"function"==typeof Ne&&(Er=Ne.prototype.then,ct(Ne.prototype,"then",(function then(h,g){var d=this;return new Mr((function(h,g){Er.call(d,h,g)})).then(h,g)}),{unsafe:!0}),"function"==typeof Dr&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(h){return promiseResolve(Mr,Dr.apply(d,arguments))}}))),_export({global:!0,wrap:!0,forced:Ur},{Promise:Mr}),setToStringTag(Mr,_r,!1),setSpecies(_r),wr=getBuiltIn(_r),_export({target:_r,stat:!0,forced:Ur},{reject:function reject(h){var g=jr(this);return g.reject.call(void 0,h),g.promise}}),_export({target:_r,stat:!0,forced:Ur},{resolve:function resolve(h){return promiseResolve(this,h)}}),_export({target:_r,stat:!0,forced:zr},{all:function all(h){var g=this,d=jr(g),x=d.resolve,b=d.reject,S=perform((function(){var d=aFunction$1(g.resolve),S=[],w=0,E=1;Ve(h,(function(h){var A=w++,P=!1;S.push(void 0),E++,d.call(g,h).then((function(h){P||(P=!0,S[A]=h,--E||x(S))}),b)})),--E||x(S)}));return S.error&&b(S.value),d.promise},race:function race(h){var g=this,d=jr(g),x=d.reject,b=perform((function(){var b=aFunction$1(g.resolve);Ve(h,(function(h){b.call(g,h).then(d.resolve,x)}))}));return b.error&&x(b.value),d.promise}});var regexpFlags=function(){var h=anObject(this),g="";return h.global&&(g+="g"),h.ignoreCase&&(g+="i"),h.multiline&&(g+="m"),h.dotAll&&(g+="s"),h.unicode&&(g+="u"),h.sticky&&(g+="y"),g};function RE(h,g){return RegExp(h,g)}var Gr={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")}))},Hr=RegExp.prototype.exec,qr=String.prototype.replace,Xr=Hr,Yr=function(){var h=/a/,g=/b*/g;return Hr.call(h,"a"),Hr.call(g,"a"),0!==h.lastIndex||0!==g.lastIndex}(),Wr=Gr.UNSUPPORTED_Y||Gr.BROKEN_CARET,Qr=void 0!==/()??/.exec("")[1];(Yr||Qr||Wr)&&(Xr=function exec(h){var g,d,x,b,S=this,w=Wr&&S.sticky,E=regexpFlags.call(S),A=S.source,P=0,k=h;return w&&(-1===(E=E.replace("y","")).indexOf("g")&&(E+="g"),k=String(h).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==h[S.lastIndex-1])&&(A="(?: "+A+")",k=" "+k,P++),d=new RegExp("^(?:"+A+")",E)),Qr&&(d=new RegExp("^"+A+"$(?!\\s)",E)),Yr&&(g=S.lastIndex),x=Hr.call(w?d:S,k),w?x?(x.input=x.input.slice(P),x[0]=x[0].slice(P),x.index=S.lastIndex,S.lastIndex+=x[0].length):S.lastIndex=0:Yr&&x&&(S.lastIndex=S.global?x.index+x[0].length:g),Qr&&x&&x.length>1&&qr.call(x[0],d,(function(){for(b=1;b<arguments.length-2;b++)void 0===arguments[b]&&(x[b]=void 0)})),x});var Zr=Xr;_export({target:"RegExp",proto:!0,forced:/./.exec!==Zr},{exec:Zr});var createMethod$1=function(h){return function(g,d){var x,b,S=String(requireObjectCoercible(g)),w=toInteger(d),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}},Kr={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},Jr=Kr.charAt,tn="String Iterator",en=st.set,rn=st.getterFor(tn);defineIterator(String,"String",(function(h){en(this,{type:tn,string:String(h),index:0})}),(function next(){var h,g=rn(this),d=g.string,x=g.index;return x>=d.length?{value:void 0,done:!0}:(h=Jr(d,x),g.index+=h.length,{value:h,done:!1})}));var nn=wellKnownSymbol("species"),an=!fails((function(){var h=/./;return h.exec=function(){var h=[];return h.groups={a:"7"},h},"7"!=="".replace(h,"$<a>")})),on="$0"==="a".replace(/./,"$0"),un=wellKnownSymbol("replace"),sn=!!/./[un]&&""===/./[un]("a","$0"),cn=!fails((function(){var h=/(?:)/,g=h.exec;h.exec=function(){return g.apply(this,arguments)};var d="ab".split(h);return 2!==d.length||"a"!==d[0]||"b"!==d[1]})),fixRegexpWellKnownSymbolLogic=function(h,g,d,x){var b=wellKnownSymbol(h),S=!fails((function(){var g={};return g[b]=function(){return 7},7!=""[h](g)})),w=S&&!fails((function(){var g=!1,d=/a/;return"split"===h&&((d={}).constructor={},d.constructor[nn]=function(){return d},d.flags="",d[b]=/./[b]),d.exec=function(){return g=!0,null},d[b](""),!g}));if(!S||!w||"replace"===h&&(!an||!on||sn)||"split"===h&&!cn){var E=/./[b],A=d(b,""[h],(function(h,g,d,x,b){return g.exec===Zr?S&&!b?{done:!0,value:E.call(g,d,x)}:{done:!0,value:h.call(d,g,x)}:{done:!1}}),{REPLACE_KEEPS_$0:on,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:sn}),P=A[0],k=A[1];ct(String.prototype,h,P),ct(RegExp.prototype,b,2==g?function(h,g){return k.call(h,this,g)}:function(h){return k.call(h,this)})}x&&j(RegExp.prototype[b],"sham",!0)},ln=Kr.charAt,advanceStringIndex=function(h,g,d){return g+(d?ln(h,g).length:1)},regexpExecAbstract=function(h,g){var d=h.exec;if("function"==typeof d){var x=d.call(h,g);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,g)},fn=Math.max,hn=Math.min,pn=Math.floor,yn=/\$([$&'`]|\d\d?|<[^>]*>)/g,vn=/\$([$&'`]|\d\d?)/g;fixRegexpWellKnownSymbolLogic("replace",2,(function(h,g,d,x){var b=x.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,S=x.REPLACE_KEEPS_$0,w=b?"$":"$0";return[function replace(d,x){var b=requireObjectCoercible(this),S=null==d?void 0:d[h];return void 0!==S?S.call(d,b,x):g.call(String(b),d,x)},function(h,x){if(!b&&S||"string"==typeof x&&-1===x.indexOf(w)){var E=d(g,h,this,x);if(E.done)return E.value}var A=anObject(h),P=String(this),k="function"==typeof x;k||(x=String(x));var _=A.global;if(_){var C=A.unicode;A.lastIndex=0}for(var R=[];;){var M=regexpExecAbstract(A,P);if(null===M)break;if(R.push(M),!_)break;""===String(M[0])&&(A.lastIndex=advanceStringIndex(P,toLength(A.lastIndex),C))}for(var N,L="",D=0,j=0;j<R.length;j++){M=R[j];for(var V=String(M[0]),$=fn(hn(toInteger(M.index),P.length),0),B=[],U=1;U<M.length;U++)B.push(void 0===(N=M[U])?N:String(N));var z=M.groups;if(k){var G=[V].concat(B,$,P);void 0!==z&&G.push(z);var q=String(x.apply(void 0,G))}else q=getSubstitution(V,P,$,B,z,x);$>=D&&(L+=P.slice(D,$)+q,D=$+V.length)}return L+P.slice(D)}];function getSubstitution(h,d,x,b,S,w){var E=x+h.length,A=b.length,P=vn;return void 0!==S&&(S=toObject(S),P=yn),g.call(w,P,(function(g,w){var P;switch(w.charAt(0)){case"$":return"$";case"&":return h;case"`":return d.slice(0,x);case"'":return d.slice(E);case"<":P=S[w.slice(1,-1)];break;default:var k=+w;if(0===k)return g;if(k>A){var _=pn(k/10);return 0===_?g:_<=A?void 0===b[_-1]?w.charAt(1):b[_-1]+w.charAt(1):g}P=b[k-1]}return void 0===P?"":P}))}}));var gn={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},dn=wellKnownSymbol("iterator"),mn=wellKnownSymbol("toStringTag"),xn=Te.values;for(var bn in gn){var Sn=d[bn],wn=Sn&&Sn.prototype;if(wn){if(wn[dn]!==xn)try{j(wn,dn,xn)}catch(h){wn[dn]=xn}if(wn[mn]||j(wn,mn,bn),gn[bn])for(var En in Te)if(wn[En]!==Te[En])try{j(wn,En,Te[En])}catch(h){wn[En]=Te[En]}}}var An=wellKnownSymbol("iterator"),Pn=!fails((function(){var h=new URL("b?a=1&b=2&c=3","http://a"),g=h.searchParams,d="";return h.pathname="c%20d",g.forEach((function(h,x){g.delete("b"),d+=x+h})),!g.sort||"http://a/c%20d?a=1&c=3"!==h.href||"3"!==g.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!g[An]||"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"!==d||"x"!==new URL("http://x",void 0).host})),Tn=Object.assign,kn=Object.defineProperty,_n=!Tn||fails((function(){if(x&&1!==Tn({b:1},Tn(kn({},"a",{enumerable:!0,get:function(){kn(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var h={},g={},d=Symbol(),b="abcdefghijklmnopqrst";return h[d]=7,b.split("").forEach((function(h){g[h]=h})),7!=Tn({},h)[d]||Wt(Tn({},g)).join("")!=b}))?function assign(h,g){for(var d=toObject(h),b=arguments.length,S=1,E=St.f,A=w.f;b>S;)for(var k,_=P(arguments[S++]),C=E?Wt(_).concat(E(_)):Wt(_),R=C.length,M=0;R>M;)k=C[M++],x&&!A.call(_,k)||(d[k]=_[k]);return d}:Tn,On=function from(h){var g,d,x,b,S,w,E=toObject(h),A="function"==typeof this?this:Array,P=arguments.length,k=P>1?arguments[1]:void 0,_=void 0!==k,C=getIteratorMethod(E),R=0;if(_&&(k=functionBindContext(k,P>2?arguments[2]:void 0,2)),null==C||A==Array&&isArrayIteratorMethod(C))for(d=new A(g=toLength(E.length));g>R;R++)w=_?k(E[R],R):E[R],createProperty(d,R,w);else for(S=(b=C.call(E)).next,d=new A;!(x=S.call(b)).done;R++)w=_?callWithSafeIterationClosing(b,k,[x.value,R],!0):x.value,createProperty(d,R,w);return d.length=R,d},Cn=2147483647,Rn=/[^\0-\u007E]/,Mn=/[.\u3002\uFF0E\uFF61]/g,Nn="Overflow: input needs wider integers to process",In=Math.floor,Ln=String.fromCharCode,digitToBasic=function(h){return h+22+75*(h<26)},adapt=function(h,g,d){var x=0;for(h=d?In(h/700):h>>1,h+=In(h/g);h>455;x+=36)h=In(h/35);return In(x+36*h/(h+38))},encode=function(h){var g,d,x=[],b=(h=function(h){for(var g=[],d=0,x=h.length;d<x;){var b=h.charCodeAt(d++);if(b>=55296&&b<=56319&&d<x){var S=h.charCodeAt(d++);56320==(64512&S)?g.push(((1023&b)<<10)+(1023&S)+65536):(g.push(b),d--)}else g.push(b)}return g}(h)).length,S=128,w=0,E=72;for(g=0;g<h.length;g++)(d=h[g])<128&&x.push(Ln(d));var A=x.length,P=A;for(A&&x.push("-");P<b;){var k=Cn;for(g=0;g<h.length;g++)(d=h[g])>=S&&d<k&&(k=d);var _=P+1;if(k-S>In((Cn-w)/_))throw RangeError(Nn);for(w+=(k-S)*_,S=k,g=0;g<h.length;g++){if((d=h[g])<S&&++w>Cn)throw RangeError(Nn);if(d==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(Ln(digitToBasic(M+N%L))),C=In(N/L)}x.push(Ln(digitToBasic(C))),E=adapt(w,_,P==A),w=0,++P}}++w,++S}return x.join("")},getIterator=function(h){var g=getIteratorMethod(h);if("function"!=typeof g)throw TypeError(String(h)+" is not iterable");return anObject(g.call(h))},Dn=getBuiltIn("fetch"),jn=getBuiltIn("Headers"),Vn=wellKnownSymbol("iterator"),$n="URLSearchParams",Fn="URLSearchParamsIterator",Bn=st.set,Un=st.getterFor($n),zn=st.getterFor(Fn),Gn=/\+/g,Hn=Array(4),percentSequence=function(h){return Hn[h-1]||(Hn[h-1]=RegExp("((?:%[\\da-f]{2}){"+h+"})","gi"))},percentDecode=function(h){try{return decodeURIComponent(h)}catch(g){return h}},deserialize=function(h){var g=h.replace(Gn," "),d=4;try{return decodeURIComponent(g)}catch(h){for(;d;)g=g.replace(percentSequence(d--),percentDecode);return g}},qn=/[!'()~]|%20/g,Xn={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(h){return Xn[h]},serialize=function(h){return encodeURIComponent(h).replace(qn,replacer)},parseSearchParams=function(h,g){if(g)for(var d,x,b=g.split("&"),S=0;S<b.length;)(d=b[S++]).length&&(x=d.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,g){if(h<g)throw TypeError("Not enough arguments")},Yn=createIteratorConstructor((function Iterator(h,g){Bn(this,{type:Fn,iterator:getIterator(Un(h).entries),kind:g})}),"Iterator",(function next(){var h=zn(this),g=h.kind,d=h.iterator.next(),x=d.value;return d.done||(d.value="keys"===g?x.key:"values"===g?x.value:[x.key,x.value]),d})),Wn=function URLSearchParams(){anInstance(this,Wn,$n);var h,g,d,x,b,S,w,E,A,P=arguments.length>0?arguments[0]:void 0,k=this,_=[];if(Bn(k,{type:$n,entries:_,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==P)if(isObject(P))if("function"==typeof(h=getIteratorMethod(P)))for(d=(g=h.call(P)).next;!(x=d.call(g)).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");_.push({key:w.value+"",value:E.value+""})}else for(A in P)has(P,A)&&_.push({key:A,value:P[A]+""});else parseSearchParams(_,"string"==typeof P?"?"===P.charAt(0)?P.slice(1):P:P+"")},Qn=Wn.prototype;redefineAll(Qn,{append:function append(h,g){validateArgumentsLength(arguments.length,2);var d=Un(this);d.entries.push({key:h+"",value:g+""}),d.updateURL()},delete:function(h){validateArgumentsLength(arguments.length,1);for(var g=Un(this),d=g.entries,x=h+"",b=0;b<d.length;)d[b].key===x?d.splice(b,1):b++;g.updateURL()},get:function get(h){validateArgumentsLength(arguments.length,1);for(var g=Un(this).entries,d=h+"",x=0;x<g.length;x++)if(g[x].key===d)return g[x].value;return null},getAll:function getAll(h){validateArgumentsLength(arguments.length,1);for(var g=Un(this).entries,d=h+"",x=[],b=0;b<g.length;b++)g[b].key===d&&x.push(g[b].value);return x},has:function has(h){validateArgumentsLength(arguments.length,1);for(var g=Un(this).entries,d=h+"",x=0;x<g.length;)if(g[x++].key===d)return!0;return!1},set:function set(h,g){validateArgumentsLength(arguments.length,1);for(var d,x=Un(this),b=x.entries,S=!1,w=h+"",E=g+"",A=0;A<b.length;A++)(d=b[A]).key===w&&(S?b.splice(A--,1):(S=!0,d.value=E));S||b.push({key:w,value:E}),x.updateURL()},sort:function sort(){var h,g,d,x=Un(this),b=x.entries,S=b.slice();for(b.length=0,d=0;d<S.length;d++){for(h=S[d],g=0;g<d;g++)if(b[g].key>h.key){b.splice(g,0,h);break}g===d&&b.push(h)}x.updateURL()},forEach:function forEach(h){for(var g,d=Un(this).entries,x=functionBindContext(h,arguments.length>1?arguments[1]:void 0,3),b=0;b<d.length;)x((g=d[b++]).value,g.key,this)},keys:function keys(){return new Yn(this,"keys")},values:function values(){return new Yn(this,"values")},entries:function entries(){return new Yn(this,"entries")}},{enumerable:!0}),ct(Qn,Vn,Qn.entries),ct(Qn,"toString",(function toString(){for(var h,g=Un(this).entries,d=[],x=0;x<g.length;)h=g[x++],d.push(serialize(h.key)+"="+serialize(h.value));return d.join("&")}),{enumerable:!0}),setToStringTag(Wn,$n),_export({global:!0,forced:!Pn},{URLSearchParams:Wn}),Pn||"function"!=typeof Dn||"function"!=typeof jn||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(h){var g,d,x,b=[h];return arguments.length>1&&(isObject(g=arguments[1])&&(d=g.body,Re(d)===$n&&((x=g.headers?new jn(g.headers):new jn).has("content-type")||x.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),g=Jt(g,{body:createPropertyDescriptor(0,String(d)),headers:createPropertyDescriptor(0,x)}))),b.push(g)),Dn.apply(this,b)}});var Zn,Kn={URLSearchParams:Wn,getState:Un},Jn=Kr.codeAt,ti=d.URL,ei=Kn.URLSearchParams,ri=Kn.getState,ni=st.set,ii=st.getterFor("URL"),ai=Math.floor,oi=Math.pow,ui="Invalid scheme",si="Invalid host",ci="Invalid port",li=/[A-Za-z]/,fi=/[\d+-.A-Za-z]/,hi=/\d/,pi=/^(0x|0X)/,yi=/^[0-7]+$/,vi=/^\d+$/,gi=/^[\dA-Fa-f]+$/,di=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,mi=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,xi=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,bi=/[\u0009\u000A\u000D]/g,parseHost=function(h,g){var d,x,b;if("["==g.charAt(0)){if("]"!=g.charAt(g.length-1))return si;if(!(d=parseIPv6(g.slice(1,-1))))return si;h.host=d}else if(isSpecial(h)){if(g=function(h){var g,d,x=[],b=h.toLowerCase().replace(Mn,".").split(".");for(g=0;g<b.length;g++)d=b[g],x.push(Rn.test(d)?"xn--"+encode(d):d);return x.join(".")}(g),di.test(g))return si;if(null===(d=parseIPv4(g)))return si;h.host=d}else{if(mi.test(g))return si;for(d="",x=On(g),b=0;b<x.length;b++)d+=percentEncode(x[b],Si);h.host=d}},parseIPv4=function(h){var g,d,x,b,S,w,E,A=h.split(".");if(A.length&&""==A[A.length-1]&&A.pop(),(g=A.length)>4)return h;for(d=[],x=0;x<g;x++){if(""==(b=A[x]))return h;if(S=10,b.length>1&&"0"==b.charAt(0)&&(S=pi.test(b)?16:8,b=b.slice(8==S?1:2)),""===b)w=0;else{if(!(10==S?vi:8==S?yi:gi).test(b))return h;w=parseInt(b,S)}d.push(w)}for(x=0;x<g;x++)if(w=d[x],x==g-1){if(w>=oi(256,5-g))return null}else if(w>255)return null;for(E=d.pop(),x=0;x<d.length;x++)E+=d[x]*oi(256,3-x);return E},parseIPv6=function(h){var g,d,x,b,S,w,E,A=[0,0,0,0,0,0,0,0],P=0,k=null,_=0,char=function(){return h.charAt(_)};if(":"==char()){if(":"!=h.charAt(1))return;_+=2,k=++P}for(;char();){if(8==P)return;if(":"!=char()){for(g=d=0;d<4&&gi.test(char());)g=16*g+parseInt(char(),16),_++,d++;if("."==char()){if(0==d)return;if(_-=d,P>6)return;for(x=0;char();){if(b=null,x>0){if(!("."==char()&&x<4))return;_++}if(!hi.test(char()))return;for(;hi.test(char());){if(S=parseInt(char(),10),null===b)b=S;else{if(0==b)return;b=10*b+S}if(b>255)return;_++}A[P]=256*A[P]+b,2!=++x&&4!=x||P++}if(4!=x)return;break}if(":"==char()){if(_++,!char())return}else if(char())return;A[P++]=g}else{if(null!==k)return;_++,k=++P}}if(null!==k)for(w=P-k,P=7;0!=P&&w>0;)E=A[P],A[P--]=A[k+w-1],A[k+--w]=E;else if(8!=P)return;return A},serializeHost=function(h){var g,d,x,b;if("number"==typeof h){for(g=[],d=0;d<4;d++)g.unshift(h%256),h=ai(h/256);return g.join(".")}if("object"==typeof h){for(g="",x=function(h){for(var g=null,d=1,x=null,b=0,S=0;S<8;S++)0!==h[S]?(b>d&&(g=x,d=b),x=null,b=0):(null===x&&(x=S),++b);return b>d&&(g=x,d=b),g}(h),d=0;d<8;d++)b&&0===h[d]||(b&&(b=!1),x===d?(g+=d?":":"::",b=!0):(g+=h[d].toString(16),d<7&&(g+=":")));return"["+g+"]"}return h},Si={},wi=_n({},Si,{" ":1,'"':1,"<":1,">":1,"`":1}),Ei=_n({},wi,{"#":1,"?":1,"{":1,"}":1}),Ai=_n({},Ei,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(h,g){var d=Jn(h,0);return d>32&&d<127&&!has(g,h)?h:encodeURIComponent(h)},Pi={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(h){return has(Pi,h.scheme)},includesCredentials=function(h){return""!=h.username||""!=h.password},cannotHaveUsernamePasswordPort=function(h){return!h.host||h.cannotBeABaseURL||"file"==h.scheme},isWindowsDriveLetter=function(h,g){var d;return 2==h.length&&li.test(h.charAt(0))&&(":"==(d=h.charAt(1))||!g&&"|"==d)},startsWithWindowsDriveLetter=function(h){var g;return h.length>1&&isWindowsDriveLetter(h.slice(0,2))&&(2==h.length||"/"===(g=h.charAt(2))||"\\"===g||"?"===g||"#"===g)},shortenURLsPath=function(h){var g=h.path,d=g.length;!d||"file"==h.scheme&&1==d&&isWindowsDriveLetter(g[0],!0)||g.pop()},isSingleDot=function(h){return"."===h||"%2e"===h.toLowerCase()},Ti={},ki={},_i={},Oi={},Ci={},Ri={},Mi={},Ni={},Ii={},Li={},Di={},ji={},Vi={},$i={},Fi={},Bi={},Ui={},zi={},Gi={},Hi={},qi={},parseURL=function(h,g,d,x){var b,S,w,E,A,P=d||Ti,k=0,_="",C=!1,R=!1,M=!1;for(d||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,g=g.replace(xi,"")),g=g.replace(bi,""),b=On(g);k<=b.length;){switch(S=b[k],P){case Ti:if(!S||!li.test(S)){if(d)return ui;P=_i;continue}_+=S.toLowerCase(),P=ki;break;case ki:if(S&&(fi.test(S)||"+"==S||"-"==S||"."==S))_+=S.toLowerCase();else{if(":"!=S){if(d)return ui;_="",P=_i,k=0;continue}if(d&&(isSpecial(h)!=has(Pi,_)||"file"==_&&(includesCredentials(h)||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=_,d)return void(isSpecial(h)&&Pi[h.scheme]==h.port&&(h.port=null));_="","file"==h.scheme?P=$i:isSpecial(h)&&x&&x.scheme==h.scheme?P=Oi:isSpecial(h)?P=Ni:"/"==b[k+1]?(P=Ci,k++):(h.cannotBeABaseURL=!0,h.path.push(""),P=Gi)}break;case _i:if(!x||x.cannotBeABaseURL&&"#"!=S)return ui;if(x.cannotBeABaseURL&&"#"==S){h.scheme=x.scheme,h.path=x.path.slice(),h.query=x.query,h.fragment="",h.cannotBeABaseURL=!0,P=qi;break}P="file"==x.scheme?$i:Ri;continue;case Oi:if("/"!=S||"/"!=b[k+1]){P=Ri;continue}P=Ii,k++;break;case Ci:if("/"==S){P=Li;break}P=zi;continue;case Ri:if(h.scheme=x.scheme,S==Zn)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))P=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="",P=Hi;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(),P=zi;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="",P=qi}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,P=zi;continue}P=Li}else P=Ii;break;case Ni:if(P=Ii,"/"!=S||"/"!=_.charAt(k+1))continue;k++;break;case Ii:if("/"!=S&&"\\"!=S){P=Li;continue}break;case Li:if("@"==S){C&&(_="%40"+_),C=!0,w=On(_);for(var N=0;N<w.length;N++){var L=w[N];if(":"!=L||M){var D=percentEncode(L,Ai);M?h.password+=D:h.username+=D}else M=!0}_=""}else if(S==Zn||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)){if(C&&""==_)return"Invalid authority";k-=On(_).length+1,_="",P=Di}else _+=S;break;case Di:case ji:if(d&&"file"==h.scheme){P=Bi;continue}if(":"!=S||R){if(S==Zn||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)){if(isSpecial(h)&&""==_)return si;if(d&&""==_&&(includesCredentials(h)||null!==h.port))return;if(E=parseHost(h,_))return E;if(_="",P=Ui,d)return;continue}"["==S?R=!0:"]"==S&&(R=!1),_+=S}else{if(""==_)return si;if(E=parseHost(h,_))return E;if(_="",P=Vi,d==ji)return}break;case Vi:if(!hi.test(S)){if(S==Zn||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)||d){if(""!=_){var j=parseInt(_,10);if(j>65535)return ci;h.port=isSpecial(h)&&j===Pi[h.scheme]?null:j,_=""}if(d)return;P=Ui;continue}return ci}_+=S;break;case $i:if(h.scheme="file","/"==S||"\\"==S)P=Fi;else{if(!x||"file"!=x.scheme){P=zi;continue}if(S==Zn)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="",P=Hi;else{if("#"!=S){startsWithWindowsDriveLetter(b.slice(k).join(""))||(h.host=x.host,h.path=x.path.slice(),shortenURLsPath(h)),P=zi;continue}h.host=x.host,h.path=x.path.slice(),h.query=x.query,h.fragment="",P=qi}}break;case Fi:if("/"==S||"\\"==S){P=Bi;break}x&&"file"==x.scheme&&!startsWithWindowsDriveLetter(b.slice(k).join(""))&&(isWindowsDriveLetter(x.path[0],!0)?h.path.push(x.path[0]):h.host=x.host),P=zi;continue;case Bi:if(S==Zn||"/"==S||"\\"==S||"?"==S||"#"==S){if(!d&&isWindowsDriveLetter(_))P=zi;else if(""==_){if(h.host="",d)return;P=Ui}else{if(E=parseHost(h,_))return E;if("localhost"==h.host&&(h.host=""),d)return;_="",P=Ui}continue}_+=S;break;case Ui:if(isSpecial(h)){if(P=zi,"/"!=S&&"\\"!=S)continue}else if(d||"?"!=S)if(d||"#"!=S){if(S!=Zn&&(P=zi,"/"!=S))continue}else h.fragment="",P=qi;else h.query="",P=Hi;break;case zi:if(S==Zn||"/"==S||"\\"==S&&isSpecial(h)||!d&&("?"==S||"#"==S)){if(".."===(A=(A=_).toLowerCase())||"%2e."===A||".%2e"===A||"%2e%2e"===A?(shortenURLsPath(h),"/"==S||"\\"==S&&isSpecial(h)||h.path.push("")):isSingleDot(_)?"/"==S||"\\"==S&&isSpecial(h)||h.path.push(""):("file"==h.scheme&&!h.path.length&&isWindowsDriveLetter(_)&&(h.host&&(h.host=""),_=_.charAt(0)+":"),h.path.push(_)),_="","file"==h.scheme&&(S==Zn||"?"==S||"#"==S))for(;h.path.length>1&&""===h.path[0];)h.path.shift();"?"==S?(h.query="",P=Hi):"#"==S&&(h.fragment="",P=qi)}else _+=percentEncode(S,Ei);break;case Gi:"?"==S?(h.query="",P=Hi):"#"==S?(h.fragment="",P=qi):S!=Zn&&(h.path[0]+=percentEncode(S,Si));break;case Hi:d||"#"!=S?S!=Zn&&("'"==S&&isSpecial(h)?h.query+="%27":h.query+="#"==S?"%23":percentEncode(S,Si)):(h.fragment="",P=qi);break;case qi:S!=Zn&&(h.fragment+=percentEncode(S,wi))}k++}},Xi=function URL(h){var g,d,b=anInstance(this,Xi,"URL"),S=arguments.length>1?arguments[1]:void 0,w=String(h),E=ni(b,{type:"URL"});if(void 0!==S)if(S instanceof Xi)g=ii(S);else if(d=parseURL(g={},String(S)))throw TypeError(d);if(d=parseURL(E,w,null,g))throw TypeError(d);var A=E.searchParams=new ei,P=ri(A);P.updateSearchParams(E.query),P.updateURL=function(){E.query=String(A)||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))},Yi=Xi.prototype,serializeURL=function(){var h=ii(this),g=h.scheme,d=h.username,x=h.password,b=h.host,S=h.port,w=h.path,E=h.query,A=h.fragment,P=g+":";return null!==b?(P+="//",includesCredentials(h)&&(P+=d+(x?":"+x:"")+"@"),P+=serializeHost(b),null!==S&&(P+=":"+S)):"file"==g&&(P+="//"),P+=h.cannotBeABaseURL?w[0]:w.length?"/"+w.join("/"):"",null!==E&&(P+="?"+E),null!==A&&(P+="#"+A),P},getOrigin=function(){var h=ii(this),g=h.scheme,d=h.port;if("blob"==g)try{return new URL(g.path[0]).origin}catch(h){return"null"}return"file"!=g&&isSpecial(h)?g+"://"+serializeHost(h.host)+(null!==d?":"+d:""):"null"},getProtocol=function(){return ii(this).scheme+":"},getUsername=function(){return ii(this).username},getPassword=function(){return ii(this).password},getHost=function(){var h=ii(this),g=h.host,d=h.port;return null===g?"":null===d?serializeHost(g):serializeHost(g)+":"+d},getHostname=function(){var h=ii(this).host;return null===h?"":serializeHost(h)},getPort=function(){var h=ii(this).port;return null===h?"":String(h)},getPathname=function(){var h=ii(this),g=h.path;return h.cannotBeABaseURL?g[0]:g.length?"/"+g.join("/"):""},getSearch=function(){var h=ii(this).query;return h?"?"+h:""},getSearchParams=function(){return ii(this).searchParams},getHash=function(){var h=ii(this).fragment;return h?"#"+h:""},accessorDescriptor=function(h,g){return{get:h,set:g,configurable:!0,enumerable:!0}};if(x&&Qt(Yi,{href:accessorDescriptor(serializeURL,(function(h){var g=ii(this),d=String(h),x=parseURL(g,d);if(x)throw TypeError(x);ri(g.searchParams).updateSearchParams(g.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(h){var g=ii(this);parseURL(g,String(h)+":",Ti)})),username:accessorDescriptor(getUsername,(function(h){var g=ii(this),d=On(String(h));if(!cannotHaveUsernamePasswordPort(g)){g.username="";for(var x=0;x<d.length;x++)g.username+=percentEncode(d[x],Ai)}})),password:accessorDescriptor(getPassword,(function(h){var g=ii(this),d=On(String(h));if(!cannotHaveUsernamePasswordPort(g)){g.password="";for(var x=0;x<d.length;x++)g.password+=percentEncode(d[x],Ai)}})),host:accessorDescriptor(getHost,(function(h){var g=ii(this);g.cannotBeABaseURL||parseURL(g,String(h),Di)})),hostname:accessorDescriptor(getHostname,(function(h){var g=ii(this);g.cannotBeABaseURL||parseURL(g,String(h),ji)})),port:accessorDescriptor(getPort,(function(h){var g=ii(this);cannotHaveUsernamePasswordPort(g)||(""==(h=String(h))?g.port=null:parseURL(g,h,Vi))})),pathname:accessorDescriptor(getPathname,(function(h){var g=ii(this);g.cannotBeABaseURL||(g.path=[],parseURL(g,h+"",Ui))})),search:accessorDescriptor(getSearch,(function(h){var g=ii(this);""==(h=String(h))?g.query=null:("?"==h.charAt(0)&&(h=h.slice(1)),g.query="",parseURL(g,h,Hi)),ri(g.searchParams).updateSearchParams(g.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(h){var g=ii(this);""!=(h=String(h))?("#"==h.charAt(0)&&(h=h.slice(1)),g.fragment="",parseURL(g,h,qi)):g.fragment=null}))}),ct(Yi,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),ct(Yi,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),ti){var Wi=ti.createObjectURL,Qi=ti.revokeObjectURL;Wi&&ct(Xi,"createObjectURL",(function createObjectURL(h){return Wi.apply(ti,arguments)})),Qi&&ct(Xi,"revokeObjectURL",(function revokeObjectURL(h){return Qi.apply(ti,arguments)}))}setToStringTag(Xi,"URL"),_export({global:!0,forced:!Pn,sham:!x},{URL:Xi});var Zi=bt.f,Ki={}.toString,Ji="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ta={f:function getOwnPropertyNames(h){return Ji&&"[object Window]"==Ki.call(h)?function(h){try{return Zi(h)}catch(h){return Ji.slice()}}(h):Zi(toIndexedObject(h))}},ea={f:wellKnownSymbol},ra=D.f,defineWellKnownSymbol=function(h){var g=lt.Symbol||(lt.Symbol={});has(g,h)||ra(g,h,{value:ea.f(h)})},na=[].push,createMethod$2=function(h){var g=1==h,d=2==h,x=3==h,b=4==h,S=6==h,w=5==h||S;return function(E,A,k,_){for(var C,R,M=toObject(E),N=P(M),L=functionBindContext(A,k,3),D=toLength(N.length),j=0,V=_||arraySpeciesCreate,$=g?V(E,D):d?V(E,0):void 0;D>j;j++)if((w||j in N)&&(R=L(C=N[j],j,M),h))if(g)$[j]=R;else if(R)switch(h){case 3:return!0;case 5:return C;case 6:return j;case 2:na.call($,C)}else if(b)return!1;return S?-1:x||b?b:$}},ia={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)},aa=ia.forEach,oa=sharedKey("hidden"),ua="Symbol",sa=wellKnownSymbol("toPrimitive"),ca=st.set,la=st.getterFor(ua),fa=Object.prototype,ha=d.Symbol,pa=getBuiltIn("JSON","stringify"),ya=N.f,va=D.f,ga=ta.f,da=w.f,ma=W("symbols"),xa=W("op-symbols"),ba=W("string-to-symbol-registry"),Sa=W("symbol-to-string-registry"),wa=W("wks"),Ea=d.QObject,Aa=!Ea||!Ea.prototype||!Ea.prototype.findChild,Pa=x&&fails((function(){return 7!=Jt(va({},"a",{get:function(){return va(this,"a",{value:7}).a}})).a}))?function(h,g,d){var x=ya(fa,g);x&&delete fa[g],va(h,g,d),x&&h!==fa&&va(fa,g,x)}:va,wrap=function(h,g){var d=ma[h]=Jt(ha.prototype);return ca(d,{type:ua,tag:h,description:g}),x||(d.description=g),d},Ta=Mt?function(h){return"symbol"==typeof h}:function(h){return Object(h)instanceof ha},ka=function defineProperty(h,g,d){h===fa&&ka(xa,g,d),anObject(h);var x=toPrimitive(g,!0);return anObject(d),has(ma,x)?(d.enumerable?(has(h,oa)&&h[oa][x]&&(h[oa][x]=!1),d=Jt(d,{enumerable:createPropertyDescriptor(0,!1)})):(has(h,oa)||va(h,oa,createPropertyDescriptor(1,{})),h[oa][x]=!0),Pa(h,x,d)):va(h,x,d)},_a=function defineProperties(h,g){anObject(h);var d=toIndexedObject(g),b=Wt(d).concat(Ma(d));return aa(b,(function(g){x&&!Oa.call(d,g)||ka(h,g,d[g])})),h},Oa=function propertyIsEnumerable(h){var g=toPrimitive(h,!0),d=da.call(this,g);return!(this===fa&&has(ma,g)&&!has(xa,g))&&(!(d||!has(this,g)||!has(ma,g)||has(this,oa)&&this[oa][g])||d)},Ca=function getOwnPropertyDescriptor(h,g){var d=toIndexedObject(h),x=toPrimitive(g,!0);if(d!==fa||!has(ma,x)||has(xa,x)){var b=ya(d,x);return!b||!has(ma,x)||has(d,oa)&&d[oa][x]||(b.enumerable=!0),b}},Ra=function getOwnPropertyNames(h){var g=ga(toIndexedObject(h)),d=[];return aa(g,(function(h){has(ma,h)||has(J,h)||d.push(h)})),d},Ma=function getOwnPropertySymbols(h){var g=h===fa,d=ga(g?xa:toIndexedObject(h)),x=[];return aa(d,(function(h){!has(ma,h)||g&&!has(fa,h)||x.push(ma[h])})),x};if(Rt||(ct((ha=function Symbol(){if(this instanceof ha)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,g=uid(h),setter=function(h){this===fa&&setter.call(xa,h),has(this,oa)&&has(this[oa],g)&&(this[oa][g]=!1),Pa(this,g,createPropertyDescriptor(1,h))};return x&&Aa&&Pa(fa,g,{configurable:!0,set:setter}),wrap(g,h)}).prototype,"toString",(function toString(){return la(this).tag})),ct(ha,"withoutSetter",(function(h){return wrap(uid(h),h)})),w.f=Oa,D.f=ka,N.f=Ca,bt.f=ta.f=Ra,St.f=Ma,ea.f=function(h){return wrap(wellKnownSymbol(h),h)},x&&(va(ha.prototype,"description",{configurable:!0,get:function description(){return la(this).description}}),ct(fa,"propertyIsEnumerable",Oa,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!Rt,sham:!Rt},{Symbol:ha}),aa(Wt(wa),(function(h){defineWellKnownSymbol(h)})),_export({target:ua,stat:!0,forced:!Rt},{for:function(h){var g=String(h);if(has(ba,g))return ba[g];var d=ha(g);return ba[g]=d,Sa[d]=g,d},keyFor:function keyFor(h){if(!Ta(h))throw TypeError(h+" is not a symbol");if(has(Sa,h))return Sa[h]},useSetter:function(){Aa=!0},useSimple:function(){Aa=!1}}),_export({target:"Object",stat:!0,forced:!Rt,sham:!x},{create:function create(h,g){return void 0===g?Jt(h):_a(Jt(h),g)},defineProperty:ka,defineProperties:_a,getOwnPropertyDescriptor:Ca}),_export({target:"Object",stat:!0,forced:!Rt},{getOwnPropertyNames:Ra,getOwnPropertySymbols:Ma}),_export({target:"Object",stat:!0,forced:fails((function(){St.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return St.f(toObject(h))}}),pa){var Na=!Rt||fails((function(){var h=ha();return"[null]"!=pa([h])||"{}"!=pa({a:h})||"{}"!=pa(Object(h))}));_export({target:"JSON",stat:!0,forced:Na},{stringify:function stringify(h,g,d){for(var x,b=[h],S=1;arguments.length>S;)b.push(arguments[S++]);if(x=g,(isObject(g)||void 0!==h)&&!Ta(h))return Ct(g)||(g=function(h,g){if("function"==typeof x&&(g=x.call(this,h,g)),!Ta(g))return g}),b[1]=g,pa.apply(null,b)}})}ha.prototype[sa]||j(ha.prototype,sa,ha.prototype.valueOf),setToStringTag(ha,ua),J[oa]=!0;var Ia=D.f,La=d.Symbol;if(x&&"function"==typeof La&&(!("description"in La.prototype)||void 0!==La().description)){var Da={},ja=function Symbol(){var h=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),g=this instanceof ja?new La(h):void 0===h?La():La(h);return""===h&&(Da[g]=!0),g};copyConstructorProperties(ja,La);var Va=ja.prototype=La.prototype;Va.constructor=ja;var $a=Va.toString,Fa="Symbol(test)"==String(La("test")),Ba=/^Symbol\((.*)\)[^)]+$/;Ia(Va,"description",{configurable:!0,get:function description(){var h=isObject(this)?this.valueOf():this,g=$a.call(h);if(has(Da,h))return"";var d=Fa?g.slice(7,-1):g.replace(Ba,"$1");return""===d?void 0:d}}),_export({global:!0,forced:!0},{Symbol:ja})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag");var arrayMethodIsStrict=function(h,g){var d=[][h];return!!d&&fails((function(){d.call(null,g||function(){throw 1},1)}))},Ua=Object.defineProperty,za={},thrower=function(h){throw h},arrayMethodUsesToLength=function(h,g){if(has(za,h))return za[h];g||(g={});var d=[][h],b=!!has(g,"ACCESSORS")&&g.ACCESSORS,S=has(g,0)?g[0]:thrower,w=has(g,1)?g[1]:void 0;return za[h]=!!d&&!fails((function(){if(b&&!x)return!0;var h={length:-1};b?Ua(h,1,{enumerable:!0,get:thrower}):h[1]=1,d.call(h,S,w)}))},Ga=ia.forEach,Ha=arrayMethodIsStrict("forEach"),qa=arrayMethodUsesToLength("forEach"),Xa=Ha&&qa?[].forEach:function forEach(h){return Ga(this,h,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Xa},{forEach:Xa});var Ya=[].reverse,Wa=[1,2];_export({target:"Array",proto:!0,forced:String(Wa)===String(Wa.reverse())},{reverse:function reverse(){return Ct(this)&&(this.length=this.length),Ya.call(this)}});var Qa=arrayMethodHasSpeciesSupport("slice"),Za=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),Ka=wellKnownSymbol("species"),Ja=[].slice,to=Math.max;_export({target:"Array",proto:!0,forced:!Qa||!Za},{slice:function slice(h,g){var d,x,b,S=toIndexedObject(this),w=toLength(S.length),E=toAbsoluteIndex(h,w),A=toAbsoluteIndex(void 0===g?w:g,w);if(Ct(S)&&("function"!=typeof(d=S.constructor)||d!==Array&&!Ct(d.prototype)?isObject(d)&&null===(d=d[Ka])&&(d=void 0):d=void 0,d===Array||void 0===d))return Ja.call(S,E,A);for(x=new(void 0===d?Array:d)(to(A-E,0)),b=0;E<A;E++,b++)E in S&&createProperty(x,b,S[E]);return x.length=b,x}});var eo=Date.prototype,ro="Invalid Date",no="toString",io=eo.toString,ao=eo.getTime;new Date(NaN)+""!=ro&&ct(eo,no,(function toString(){var h=ao.call(this);return h==h?io.call(this):ro}));var oo=D.f,uo=Function.prototype,so=uo.toString,co=/^\s*function ([^ (]*)/,lo="name";x&&!(lo in uo)&&oo(uo,lo,{configurable:!0,get:function(){try{return so.call(this).match(co)[1]}catch(h){return""}}}),setToStringTag(d.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!x},{create:Jt}),_export({target:"Object",stat:!0,forced:!x,sham:!x},{defineProperty:D.f});var fo=fails((function(){ce(1)}));_export({target:"Object",stat:!0,forced:fo,sham:!oe},{getPrototypeOf:function getPrototypeOf(h){return ce(toObject(h))}}),_export({target:"Object",stat:!0},{setPrototypeOf:ge});var ho="toString",po=RegExp.prototype,yo=po.toString,vo=fails((function(){return"/a/b"!=yo.call({source:"a",flags:"b"})})),go=yo.name!=ho;for(var mo in(vo||go)&&ct(RegExp.prototype,ho,(function toString(){var h=anObject(this),g=String(h.source),d=h.flags;return"/"+g+"/"+String(void 0===d&&h instanceof RegExp&&!("flags"in po)?regexpFlags.call(h):d)}),{unsafe:!0}),gn){var xo=d[mo],bo=xo&&xo.prototype;if(bo&&bo.forEach!==Xa)try{j(bo,"forEach",Xa)}catch(h){bo.forEach=Xa}}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,g,d,x,b,S,w){try{var E=h[S](w),A=E.value}catch(h){return void d(h)}E.done?g(A):Promise.resolve(A).then(x,b)}function _asyncToGenerator(h){return function(){var g=this,d=arguments;return new Promise((function(x,b){var S=h.apply(g,d);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 So=createCommonjsModule((function(h){var g=function(h){var g,d=Object.prototype,x=d.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},S=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",E=b.toStringTag||"@@toStringTag";function define(h,g,d){return Object.defineProperty(h,g,{value:d,enumerable:!0,configurable:!0,writable:!0}),h[g]}try{define({},"")}catch(h){define=function define(h,g,d){return h[g]=d}}function wrap(h,g,d,x){var b=g&&g.prototype instanceof Generator?g:Generator,S=Object.create(b.prototype),w=new Context(x||[]);return S._invoke=function makeInvokeMethod(h,g,d){var x=A;return function invoke(b,S){if(x===k)throw new Error("Generator is already running");if(x===_){if("throw"===b)throw S;return doneResult()}for(d.method=b,d.arg=S;;){var w=d.delegate;if(w){var E=maybeInvokeDelegate(w,d);if(E){if(E===C)continue;return E}}if("next"===d.method)d.sent=d._sent=d.arg;else if("throw"===d.method){if(x===A)throw x=_,d.arg;d.dispatchException(d.arg)}else"return"===d.method&&d.abrupt("return",d.arg);x=k;var R=tryCatch(h,g,d);if("normal"===R.type){if(x=d.done?_:P,R.arg===C)continue;return{value:R.arg,done:d.done}}"throw"===R.type&&(x=_,d.method="throw",d.arg=R.arg)}}}(h,d,w),S}function tryCatch(h,g,d){try{return{type:"normal",arg:h.call(g,d)}}catch(h){return{type:"throw",arg:h}}}h.wrap=wrap;var A="suspendedStart",P="suspendedYield",k="executing",_="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!==d&&x.call(N,S)&&(R=N);var L=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(R);function defineIteratorMethods(h){["next","throw","return"].forEach((function(g){define(h,g,(function(h){return this._invoke(g,h)}))}))}function AsyncIterator(h,g){var d;this._invoke=function enqueue(b,S){function callInvokeWithMethodAndArg(){return new g((function(d,w){!function invoke(d,b,S,w){var E=tryCatch(h[d],h,b);if("throw"!==E.type){var A=E.arg,P=A.value;return P&&"object"===_typeof(P)&&x.call(P,"__await")?g.resolve(P.__await).then((function(h){invoke("next",h,S,w)}),(function(h){invoke("throw",h,S,w)})):g.resolve(P).then((function(h){A.value=h,S(A)}),(function(h){return invoke("throw",h,S,w)}))}w(E.arg)}(b,S,d,w)}))}return d=d?d.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(h,d){var x=h.iterator[d.method];if(x===g){if(d.delegate=null,"throw"===d.method){if(h.iterator.return&&(d.method="return",d.arg=g,maybeInvokeDelegate(h,d),"throw"===d.method))return C;d.method="throw",d.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var b=tryCatch(x,h.iterator,d.arg);if("throw"===b.type)return d.method="throw",d.arg=b.arg,d.delegate=null,C;var S=b.arg;return S?S.done?(d[h.resultName]=S.value,d.next=h.nextLoc,"return"!==d.method&&(d.method="next",d.arg=g),d.delegate=null,C):S:(d.method="throw",d.arg=new TypeError("iterator result is not an object"),d.delegate=null,C)}function pushTryEntry(h){var g={tryLoc:h[0]};1 in h&&(g.catchLoc=h[1]),2 in h&&(g.finallyLoc=h[2],g.afterLoc=h[3]),this.tryEntries.push(g)}function resetTryEntry(h){var g=h.completion||{};g.type="normal",delete g.arg,h.completion=g}function Context(h){this.tryEntries=[{tryLoc:"root"}],h.forEach(pushTryEntry,this),this.reset(!0)}function values(h){if(h){var d=h[S];if(d)return d.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=g,next.done=!0,next};return w.next=w}}return{next:doneResult}}function doneResult(){return{value:g,done:!0}}return GeneratorFunction.prototype=L.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,E,"GeneratorFunction"),h.isGeneratorFunction=function(h){var g="function"==typeof h&&h.constructor;return!!g&&(g===GeneratorFunction||"GeneratorFunction"===(g.displayName||g.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(g,d,x,b,S){void 0===S&&(S=Promise);var w=new AsyncIterator(wrap(g,d,x,b),S);return h.isGeneratorFunction(d)?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 g=[];for(var d in h)g.push(d);return g.reverse(),function next(){for(;g.length;){var d=g.pop();if(d in h)return next.value=d,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=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(resetTryEntry),!h)for(var d in this)"t"===d.charAt(0)&&x.call(this,d)&&!isNaN(+d.slice(1))&&(this[d]=g)},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 d=this;function handle(x,b){return w.type="throw",w.arg=h,d.next=x,b&&(d.method="next",d.arg=g),!!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"),A=x.call(S,"finallyLoc");if(E&&A){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(!A)throw new Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return handle(S.finallyLoc)}}}},abrupt:function abrupt(h,g){for(var d=this.tryEntries.length-1;d>=0;--d){var b=this.tryEntries[d];if(b.tryLoc<=this.prev&&x.call(b,"finallyLoc")&&this.prev<b.finallyLoc){var S=b;break}}S&&("break"===h||"continue"===h)&&S.tryLoc<=g&&g<=S.finallyLoc&&(S=null);var w=S?S.completion:{};return w.type=h,w.arg=g,S?(this.method="next",this.next=S.finallyLoc,C):this.complete(w)},complete:function complete(h,g){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&&g&&(this.next=g),C},finish:function finish(h){for(var g=this.tryEntries.length-1;g>=0;--g){var d=this.tryEntries[g];if(d.finallyLoc===h)return this.complete(d.completion,d.afterLoc),resetTryEntry(d),C}},catch:function _catch(h){for(var g=this.tryEntries.length-1;g>=0;--g){var d=this.tryEntries[g];if(d.tryLoc===h){var x=d.completion;if("throw"===x.type){var b=x.arg;resetTryEntry(d)}return b}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(h,d,x){return this.delegate={iterator:values(h),resultName:d,nextLoc:x},"next"===this.method&&(this.arg=g),C}},h}(h.exports);try{regeneratorRuntime=g}catch(h){Function("r","regeneratorRuntime = r")(g)}})),wo="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var Eo=defaultSetTimout,Ao=defaultClearTimeout;function runTimeout(h){if(Eo===setTimeout)return setTimeout(h,0);if((Eo===defaultSetTimout||!Eo)&&setTimeout)return Eo=setTimeout,setTimeout(h,0);try{return Eo(h,0)}catch(g){try{return Eo.call(null,h,0)}catch(g){return Eo.call(this,h,0)}}}"function"==typeof wo.setTimeout&&(Eo=setTimeout),"function"==typeof wo.clearTimeout&&(Ao=clearTimeout);var Po,To=[],ko=!1,_o=-1;function cleanUpNextTick(){ko&&Po&&(ko=!1,Po.length?To=Po.concat(To):_o=-1,To.length&&drainQueue())}function drainQueue(){if(!ko){var h=runTimeout(cleanUpNextTick);ko=!0;for(var g=To.length;g;){for(Po=To,To=[];++_o<g;)Po&&Po[_o].run();_o=-1,g=To.length}Po=null,ko=!1,function runClearTimeout(h){if(Ao===clearTimeout)return clearTimeout(h);if((Ao===defaultClearTimeout||!Ao)&&clearTimeout)return Ao=clearTimeout,clearTimeout(h);try{return Ao(h)}catch(g){try{return Ao.call(null,h)}catch(g){return Ao.call(this,h)}}}(h)}}function Item(h,g){this.fun=h,this.array=g}Item.prototype.run=function(){this.fun.apply(null,this.array)};function noop(){}var Oo=noop,Co=noop,Ro=noop,Mo=noop,No=noop,Io=noop,Lo=noop;var Do=wo.performance||{},jo=Do.now||Do.mozNow||Do.msNow||Do.oNow||Do.webkitNow||function(){return(new Date).getTime()};var Vo=new Date;var $o={nextTick:function nextTick(h){var g=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)g[d-1]=arguments[d];To.push(new Item(h,g)),1!==To.length||ko||runTimeout(drainQueue)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Oo,addListener:Co,once:Ro,off:Mo,removeListener:No,removeAllListeners:Io,emit:Lo,binding:function binding(h){throw new Error("process.binding is not supported")},cwd:function cwd(){return"/"},chdir:function chdir(h){throw new Error("process.chdir is not supported")},umask:function umask(){return 0},hrtime:function hrtime(h){var g=.001*jo.call(Do),d=Math.floor(g),x=Math.floor(g%1*1e9);return h&&(d-=h[0],(x-=h[1])<0&&(d--,x+=1e9)),[d,x]},platform:"browser",release:{},config:{},uptime:function uptime(){return(new Date-Vo)/1e3}};_export({target:"Array",proto:!0},{fill:function fill(h){for(var g=toObject(this),d=toLength(g.length),x=arguments.length,b=toAbsoluteIndex(x>1?arguments[1]:void 0,d),S=x>2?arguments[2]:void 0,w=void 0===S?d:toAbsoluteIndex(S,d);w>b;)g[b++]=h;return g}}),addToUnscopables("fill");var Fo=[].join,Bo=P!=Object,Uo=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:Bo||!Uo},{join:function join(h){return Fo.call(toIndexedObject(this),void 0===h?",":h)}});var inheritIfRequired=function(h,g,d){var x,b;return ge&&"function"==typeof(x=g.constructor)&&x!==d&&isObject(b=x.prototype)&&b!==d.prototype&&ge(h,b),h},zo="\t\n\v\f\r \u2028\u2029\ufeff",Go="["+zo+"]",Ho=RegExp("^"+Go+Go+"*"),qo=RegExp(Go+Go+"*$"),createMethod$3=function(h){return function(g){var d=String(requireObjectCoercible(g));return 1&h&&(d=d.replace(Ho,"")),2&h&&(d=d.replace(qo,"")),d}},Xo={start:createMethod$3(1),end:createMethod$3(2),trim:createMethod$3(3)},Yo=bt.f,Wo=N.f,Qo=D.f,Zo=Xo.trim,Ko="Number",Jo=d.Number,tu=Jo.prototype,eu=classofRaw(Jt(tu))==Ko,toNumber=function(h){var g,d,x,b,S,w,E,A,P=toPrimitive(h,!1);if("string"==typeof P&&P.length>2)if(43===(g=(P=Zo(P)).charCodeAt(0))||45===g){if(88===(d=P.charCodeAt(2))||120===d)return NaN}else if(48===g){switch(P.charCodeAt(1)){case 66:case 98:x=2,b=49;break;case 79:case 111:x=8,b=55;break;default:return+P}for(w=(S=P.slice(2)).length,E=0;E<w;E++)if((A=S.charCodeAt(E))<48||A>b)return NaN;return parseInt(S,x)}return+P};if(_t(Ko,!Jo(" 0o1")||!Jo("0b1")||Jo("+0x1"))){for(var ru,nu=function Number(h){var g=arguments.length<1?0:h,d=this;return d instanceof nu&&(eu?fails((function(){tu.valueOf.call(d)})):classofRaw(d)!=Ko)?inheritIfRequired(new Jo(toNumber(g)),d,nu):toNumber(g)},iu=x?Yo(Jo):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),au=0;iu.length>au;au++)has(Jo,ru=iu[au])&&!has(nu,ru)&&Qo(nu,ru,Wo(Jo,ru));nu.prototype=tu,tu.constructor=nu,ct(d,Ko,nu)}var ou=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),uu=createCommonjsModule((function(h){var g=D.f,d=uid("meta"),x=0,b=Object.isExtensible||function(){return!0},setMetadata=function(h){g(h,d,{value:{objectID:"O"+ ++x,weakData:{}}})},S=h.exports={REQUIRED:!1,fastKey:function(h,g){if(!isObject(h))return"symbol"==typeof h?h:("string"==typeof h?"S":"P")+h;if(!has(h,d)){if(!b(h))return"F";if(!g)return"E";setMetadata(h)}return h[d].objectID},getWeakData:function(h,g){if(!has(h,d)){if(!b(h))return!0;if(!g)return!1;setMetadata(h)}return h[d].weakData},onFreeze:function(h){return ou&&S.REQUIRED&&b(h)&&!has(h,d)&&setMetadata(h),h}};J[d]=!0})),su=uu.onFreeze,cu=Object.freeze,lu=fails((function(){cu(1)}));_export({target:"Object",stat:!0,forced:lu,sham:!ou},{freeze:function freeze(h){return cu&&isObject(h)?cu(su(h)):h}}),fixRegexpWellKnownSymbolLogic("match",1,(function(h,g,d){return[function match(g){var d=requireObjectCoercible(this),x=null==g?void 0:g[h];return void 0!==x?x.call(g,d):new RegExp(g)[h](String(d))},function(h){var x=d(g,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,A=[],P=0;null!==(E=regexpExecAbstract(b,S));){var k=String(E[0]);A[P]=k,""===k&&(b.lastIndex=advanceStringIndex(S,toLength(b.lastIndex),w)),P++}return 0===P?null:A}]}));var fu=wellKnownSymbol("match"),isRegexp=function(h){var g;return isObject(h)&&(void 0!==(g=h[fu])?!!g:"RegExp"==classofRaw(h))},hu=[].push,pu=Math.min,yu=4294967295,vu=!fails((function(){return!RegExp(yu,"y")}));fixRegexpWellKnownSymbolLogic("split",2,(function(h,g,d){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,d){var x=String(requireObjectCoercible(this)),b=void 0===d?yu:d>>>0;if(0===b)return[];if(void 0===h)return[x];if(!isRegexp(h))return g.call(x,h,b);for(var S,w,E,A=[],P=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),k=0,_=new RegExp(h.source,P+"g");(S=Zr.call(_,x))&&!((w=_.lastIndex)>k&&(A.push(x.slice(k,S.index)),S.length>1&&S.index<x.length&&hu.apply(A,S.slice(1)),E=S[0].length,k=w,A.length>=b));)_.lastIndex===S.index&&_.lastIndex++;return k===x.length?!E&&_.test("")||A.push(""):A.push(x.slice(k)),A.length>b?A.slice(0,b):A}:"0".split(void 0,0).length?function(h,d){return void 0===h&&0===d?[]:g.call(this,h,d)}:g,[function split(g,d){var b=requireObjectCoercible(this),S=null==g?void 0:g[h];return void 0!==S?S.call(g,b,d):x.call(String(b),g,d)},function(h,b){var S=d(x,h,this,b,x!==g);if(S.done)return S.value;var w=anObject(h),E=String(this),A=speciesConstructor(w,RegExp),P=w.unicode,k=(w.ignoreCase?"i":"")+(w.multiline?"m":"")+(w.unicode?"u":"")+(vu?"y":"g"),_=new A(vu?w:"^(?:"+w.source+")",k),C=void 0===b?yu:b>>>0;if(0===C)return[];if(0===E.length)return null===regexpExecAbstract(_,E)?[E]:[];for(var R=0,M=0,N=[];M<E.length;){_.lastIndex=vu?M:0;var L,D=regexpExecAbstract(_,vu?E:E.slice(M));if(null===D||(L=pu(toLength(_.lastIndex+(vu?0:M)),E.length))===R)M=advanceStringIndex(E,M,P);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}]}),!vu);var gu,notARegexp=function(h){if(isRegexp(h))throw TypeError("The method doesn't accept regular expressions");return h},du=wellKnownSymbol("match"),correctIsRegexpLogic=function(h){var g=/./;try{"/./"[h](g)}catch(d){try{return g[du]=!1,"/./"[h](g)}catch(h){}}return!1},mu=N.f,xu="".startsWith,bu=Math.min,Su=correctIsRegexpLogic("startsWith"),wu=!(Su||(gu=mu(String.prototype,"startsWith"),!gu||gu.writable));_export({target:"String",proto:!0,forced:!wu&&!Su},{startsWith:function startsWith(h){var g=String(requireObjectCoercible(this));notARegexp(h);var d=toLength(bu(arguments.length>1?arguments[1]:void 0,g.length)),x=String(h);return xu?xu.call(g,x,d):g.slice(d,d+x.length)===x}});var Eu=[].slice,Au={},construct=function(h,g,d){if(!(g in Au)){for(var x=[],b=0;b<g;b++)x[b]="a["+b+"]";Au[g]=Function("C,a","return new C("+x.join(",")+")")}return Au[g](h,d)},Pu=Function.bind||function bind(h){var g=aFunction$1(this),d=Eu.call(arguments,1),x=function bound(){var b=d.concat(Eu.call(arguments));return this instanceof x?construct(g,b.length,b):g.apply(h,b)};return isObject(g.prototype)&&(x.prototype=g.prototype),x};_export({target:"Function",proto:!0},{bind:Pu}),_export({global:!0},{globalThis:d});var Tu=function check(h){return h&&h.Math==Math&&h},ku=Tu("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis))&&globalThis)||Tu("object"==("undefined"==typeof window?"undefined":_typeof(window))&&window)||Tu("object"==("undefined"==typeof self?"undefined":_typeof(self))&&self)||Tu("object"==_typeof(g)&&g)||Function("return this")(),_u=N.f,Ou=fails((function(){_u(1)}));_export({target:"Object",stat:!0,forced:!x||Ou,sham:!x},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,g){return _u(toIndexedObject(h),g)}});var Cu=function fails(h){try{return!!h()}catch(h){return!0}},Ru=!Cu((function(){return 7!=Object.defineProperty({},1,{get:function get(){return 7}})[1]})),Mu={}.propertyIsEnumerable,Nu=Object.getOwnPropertyDescriptor,Iu={f:Nu&&!Mu.call({1:2},1)?function propertyIsEnumerable(h){var g=Nu(this,h);return!!g&&g.enumerable}:Mu},Lu=function createPropertyDescriptor(h,g){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:g}},Du={}.toString,ju=function classofRaw(h){return Du.call(h).slice(8,-1)},Vu="".split,$u=Cu((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==ju(h)?Vu.call(h,""):Object(h)}:Object,Fu=function requireObjectCoercible(h){if(null==h)throw TypeError("Can't call method on "+h);return h},Bu=function toIndexedObject(h){return $u(Fu(h))},Uu=function isObject(h){return"object"===_typeof(h)?null!==h:"function"==typeof h},zu=function toPrimitive(h,g){if(!Uu(h))return h;var d,x;if(g&&"function"==typeof(d=h.toString)&&!Uu(x=d.call(h)))return x;if("function"==typeof(d=h.valueOf)&&!Uu(x=d.call(h)))return x;if(!g&&"function"==typeof(d=h.toString)&&!Uu(x=d.call(h)))return x;throw TypeError("Can't convert object to primitive value")},Gu={}.hasOwnProperty,Hu=function has(h,g){return Gu.call(h,g)},qu=ku.document,Xu=Uu(qu)&&Uu(qu.createElement),Yu=function documentCreateElement(h){return Xu?qu.createElement(h):{}},Wu=!Ru&&!Cu((function(){return 7!=Object.defineProperty(Yu("div"),"a",{get:function get(){return 7}}).a})),Qu=Object.getOwnPropertyDescriptor,Zu={f:Ru?Qu:function getOwnPropertyDescriptor(h,g){if(h=Bu(h),g=zu(g,!0),Wu)try{return Qu(h,g)}catch(h){}if(Hu(h,g))return Lu(!Iu.f.call(h,g),h[g])}},Ku=/#|\.prototype\./,Ju=function isForced(h,g){var d=es[ts(h)];return d==ns||d!=rs&&("function"==typeof g?Cu(g):!!g)},ts=Ju.normalize=function(h){return String(h).replace(Ku,".").toLowerCase()},es=Ju.data={},rs=Ju.NATIVE="N",ns=Ju.POLYFILL="P",is=Ju,as={},os=function aFunction(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h},us=function functionBindContext(h,g,d){if(os(h),void 0===g)return h;switch(d){case 0:return function(){return h.call(g)};case 1:return function(d){return h.call(g,d)};case 2:return function(d,x){return h.call(g,d,x)};case 3:return function(d,x,b){return h.call(g,d,x,b)}}return function(){return h.apply(g,arguments)}},ss=function anObject(h){if(!Uu(h))throw TypeError(String(h)+" is not an object");return h},cs=Object.defineProperty,ls={f:Ru?cs:function defineProperty(h,g,d){if(ss(h),g=zu(g,!0),ss(d),Wu)try{return cs(h,g,d)}catch(h){}if("get"in d||"set"in d)throw TypeError("Accessors not supported");return"value"in d&&(h[g]=d.value),h}},fs=Ru?function(h,g,d){return ls.f(h,g,Lu(1,d))}:function(h,g,d){return h[g]=d,h},hs=Zu.f,ps=function wrapConstructor(h){var g=function Wrapper(g,d,x){if(this instanceof h){switch(arguments.length){case 0:return new h;case 1:return new h(g);case 2:return new h(g,d)}return new h(g,d,x)}return h.apply(this,arguments)};return g.prototype=h.prototype,g},ys=function _export(h,g){var d,x,b,S,w,E,A,P,k=h.target,_=h.global,C=h.stat,R=h.proto,M=_?ku:C?ku[k]:(ku[k]||{}).prototype,N=_?as:as[k]||(as[k]={}),L=N.prototype;for(b in g)d=!is(_?b:k+(C?".":"#")+b,h.forced)&&M&&Hu(M,b),w=N[b],d&&(E=h.noTargetGet?(P=hs(M,b))&&P.value:M[b]),S=d&&E?E:g[b],d&&_typeof(w)===_typeof(S)||(A=h.bind&&d?us(S,ku):h.wrap&&d?ps(S):R&&"function"==typeof S?us(Function.call,S):S,(h.sham||S&&S.sham||w&&w.sham)&&fs(A,"sham",!0),N[b]=A,R&&(Hu(as,x=k+"Prototype")||fs(as,x,{}),as[x][b]=S,h.real&&L&&!L[b]&&fs(L,b,S)))},vs=Math.ceil,gs=Math.floor,ds=function toInteger(h){return isNaN(h=+h)?0:(h>0?gs:vs)(h)},ms=Math.min,xs=function toLength(h){return h>0?ms(ds(h),9007199254740991):0},bs="__core-js_shared__",Ss=ku[bs]||function setGlobal(h,g){try{fs(ku,h,g)}catch(d){ku[h]=g}return g}(bs,{}),ws=createCommonjsModule((function(h){(h.exports=function(h,g){return Ss[h]||(Ss[h]=void 0!==g?g:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Es=0,As=Math.random(),Ps=function uid(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Es+As).toString(36)},Ts=!!Object.getOwnPropertySymbols&&!Cu((function(){return!String(Symbol())})),ks=Ts&&!Symbol.sham&&"symbol"==_typeof(Symbol.iterator),_s=ws("wks"),Os=ku.Symbol,Cs=ks?Os:Os&&Os.withoutSetter||Ps,Rs=function wellKnownSymbol(h){return Hu(_s,h)||(Ts&&Hu(Os,h)?_s[h]=Os[h]:_s[h]=Cs("Symbol."+h)),_s[h]},Ms=Rs("match"),Ns=function notARegexp(h){if(function isRegexp(h){var g;return Uu(h)&&(void 0!==(g=h[Ms])?!!g:"RegExp"==ju(h))}(h))throw TypeError("The method doesn't accept regular expressions");return h},Is=Rs("match"),Ls=function correctIsRegexpLogic(h){var g=/./;try{"/./"[h](g)}catch(d){try{return g[Is]=!1,"/./"[h](g)}catch(h){}}return!1},Ds="".startsWith,js=Math.min,Vs=Ls("startsWith");ys({target:"String",proto:!0,forced:!Vs},{startsWith:function startsWith(h){var g=String(Fu(this));Ns(h);var d=xs(js(arguments.length>1?arguments[1]:void 0,g.length)),x=String(h);return Ds?Ds.call(g,x,d):g.slice(d,d+x.length)===x}});var $s=function entryVirtual(h){return as[h+"Prototype"]},Fs=$s("String").startsWith,Bs=String.prototype,Us=function startsWith_1(h){var g=h.startsWith;return"string"==typeof h||h===Bs||h instanceof String&&g===Bs.startsWith?Fs:g},zs=Xo.trim,Gs=d.parseFloat,Hs=1/Gs(zo+"-0")!=-1/0?function parseFloat(h){var g=zs(String(h)),d=Gs(g);return 0===d&&"-"==g.charAt(0)?-0:d}:Gs;_export({global:!0,forced:parseFloat!=Hs},{parseFloat:Hs});var qs=Xo.trim;_export({target:"String",proto:!0,forced:function(h){return fails((function(){return!!zo[h]()||"
"!="
"[h]()||zo[h].name!==h}))}("trim")},{trim:function trim(){return qs(this)}});var Xs=D.f,Ys=bt.f,Ws=st.set,Qs=wellKnownSymbol("match"),Zs=d.RegExp,Ks=Zs.prototype,Js=/a/g,tc=/a/g,ec=new Zs(Js)!==Js,rc=Gr.UNSUPPORTED_Y;if(x&&_t("RegExp",!ec||rc||fails((function(){return tc[Qs]=!1,Zs(Js)!=Js||Zs(tc)==tc||"/a/i"!=Zs(Js,"i")})))){for(var nc=function RegExp(h,g){var d,x=this instanceof nc,b=isRegexp(h),S=void 0===g;if(!x&&b&&h.constructor===nc&&S)return h;ec?b&&!S&&(h=h.source):h instanceof nc&&(S&&(g=regexpFlags.call(h)),h=h.source),rc&&(d=!!g&&g.indexOf("y")>-1)&&(g=g.replace(/y/g,""));var w=inheritIfRequired(ec?new Zs(h,g):Zs(h,g),x?this:Ks,nc);return rc&&d&&Ws(w,{sticky:d}),w},proxy=function(h){h in nc||Xs(nc,h,{configurable:!0,get:function(){return Zs[h]},set:function(g){Zs[h]=g}})},ic=Ys(Zs),ac=0;ic.length>ac;)proxy(ic[ac++]);Ks.constructor=nc,nc.prototype=Ks,ct(d,"RegExp",nc)}setSpecies("RegExp");var oc="\t\n\v\f\r \u2028\u2029\ufeff",uc="["+oc+"]",sc=RegExp("^"+uc+uc+"*"),cc=RegExp(uc+uc+"*$"),lc=function createMethod(h){return function(g){var d=String(Fu(g));return 1&h&&(d=d.replace(sc,"")),2&h&&(d=d.replace(cc,"")),d}},fc={start:lc(1),end:lc(2),trim:lc(3)},hc=fc.trim,pc=ku.parseFloat,yc=1/pc(oc+"-0")!=-1/0?function parseFloat(h){var g=hc(String(h)),d=pc(g);return 0===d&&"-"==g.charAt(0)?-0:d}:pc;ys({global:!0,forced:parseFloat!=yc},{parseFloat:yc});var vc=as.parseFloat,gc=ia.map,dc=arrayMethodHasSpeciesSupport("map"),mc=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!dc||!mc},{map:function map(h){return gc(this,h,arguments.length>1?arguments[1]:void 0)}});var xc=function toObject(h){return Object(Fu(h))};_export({target:"Array",stat:!0},{isArray:Ct});var bc,Sc,wc=Array.isArray||function isArray(h){return"Array"==ju(h)},Ec=Rs("species"),Ac=function arraySpeciesCreate(h,g){var d;return wc(h)&&("function"!=typeof(d=h.constructor)||d!==Array&&!wc(d.prototype)?Uu(d)&&null===(d=d[Ec])&&(d=void 0):d=void 0),new(void 0===d?Array:d)(0===g?0:g)},Pc=[].push,Tc=function createMethod(h){var g=1==h,d=2==h,x=3==h,b=4==h,S=6==h,w=5==h||S;return function(E,A,P,k){for(var _,C,R=xc(E),M=$u(R),N=us(A,P,3),L=xs(M.length),D=0,j=k||Ac,V=g?j(E,L):d?j(E,0):void 0;L>D;D++)if((w||D in M)&&(C=N(_=M[D],D,R),h))if(g)V[D]=C;else if(C)switch(h){case 3:return!0;case 5:return _;case 6:return D;case 2:Pc.call(V,_)}else if(b)return!1;return S?-1:x||b?b:V}},kc={forEach:Tc(0),map:Tc(1),filter:Tc(2),some:Tc(3),every:Tc(4),find:Tc(5),findIndex:Tc(6)},_c=function aFunction(h){return"function"==typeof h?h:void 0},Oc=function getBuiltIn(h,g){return arguments.length<2?_c(as[h])||_c(ku[h]):as[h]&&as[h][g]||ku[h]&&ku[h][g]},Cc=Oc("navigator","userAgent")||"",Rc=ku.process,Mc=Rc&&Rc.versions,Nc=Mc&&Mc.v8;Nc?Sc=(bc=Nc.split("."))[0]+bc[1]:Cc&&(!(bc=Cc.match(/Edge\/(\d+)/))||bc[1]>=74)&&(bc=Cc.match(/Chrome\/(\d+)/))&&(Sc=bc[1]);var Ic=Sc&&+Sc,Lc=Rs("species"),Dc=function arrayMethodHasSpeciesSupport(h){return Ic>=51||!Cu((function(){var g=[];return(g.constructor={})[Lc]=function(){return{foo:1}},1!==g[h](Boolean).foo}))},jc=Object.defineProperty,Vc={},$c=function thrower(h){throw h},Fc=function arrayMethodUsesToLength(h,g){if(Hu(Vc,h))return Vc[h];g||(g={});var d=[][h],x=!!Hu(g,"ACCESSORS")&&g.ACCESSORS,b=Hu(g,0)?g[0]:$c,S=Hu(g,1)?g[1]:void 0;return Vc[h]=!!d&&!Cu((function(){if(x&&!Ru)return!0;var h={length:-1};x?jc(h,1,{enumerable:!0,get:$c}):h[1]=1,d.call(h,b,S)}))},Bc=kc.map,Uc=Dc("map"),zc=Fc("map");ys({target:"Array",proto:!0,forced:!Uc||!zc},{map:function map(h){return Bc(this,h,arguments.length>1?arguments[1]:void 0)}});var Gc=$s("Array").map,Hc=Array.prototype,qc=function map_1(h){var g=h.map;return h===Hc||h instanceof Array&&g===Hc.map?Gc:g};ys({target:"Array",stat:!0},{isArray:wc});var Xc=as.Array.isArray,Yc=Xc;var Wc=function _arrayWithHoles(h){if(Yc(h))return h},Qc={},Zc=uu.getWeakData,Kc=st.set,Jc=st.getterFor,tl=ia.find,el=ia.findIndex,rl=0,uncaughtFrozenStore=function(h){return h.frozen||(h.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(h,g){return tl(h.entries,(function(h){return h[0]===g}))};UncaughtFrozenStore.prototype={get:function(h){var g=findUncaughtFrozen(this,h);if(g)return g[1]},has:function(h){return!!findUncaughtFrozen(this,h)},set:function(h,g){var d=findUncaughtFrozen(this,h);d?d[1]=g:this.entries.push([h,g])},delete:function(h){var g=el(this.entries,(function(g){return g[0]===h}));return~g&&this.entries.splice(g,1),!!~g}};var nl={getConstructor:function(h,g,d,x){var b=h((function(h,S){anInstance(h,b,g),Kc(h,{type:g,id:rl++,frozen:void 0}),null!=S&&Ve(S,h[x],h,d)})),S=Jc(g),define=function(h,g,d){var x=S(h),b=Zc(anObject(g),!0);return!0===b?uncaughtFrozenStore(x).set(g,d):b[x.id]=d,h};return redefineAll(b.prototype,{delete:function(h){var g=S(this);if(!isObject(h))return!1;var d=Zc(h);return!0===d?uncaughtFrozenStore(g).delete(h):d&&has(d,g.id)&&delete d[g.id]},has:function has$1(h){var g=S(this);if(!isObject(h))return!1;var d=Zc(h);return!0===d?uncaughtFrozenStore(g).has(h):d&&has(d,g.id)}}),redefineAll(b.prototype,d?{get:function get(h){var g=S(this);if(isObject(h)){var d=Zc(h);return!0===d?uncaughtFrozenStore(g).get(h):d?d[g.id]:void 0}},set:function set(h,g){return define(this,h,g)}}:{add:function add(h){return define(this,h,!0)}}),b}},il=(createCommonjsModule((function(h){var g,x=st.enforce,b=!d.ActiveXObject&&"ActiveXObject"in d,S=Object.isExtensible,wrapper=function(h){return function WeakMap(){return h(this,arguments.length?arguments[0]:void 0)}},w=h.exports=function(h,g,x){var b=-1!==h.indexOf("Map"),S=-1!==h.indexOf("Weak"),w=b?"set":"add",E=d[h],A=E&&E.prototype,P=E,k={},fixMethod=function(h){var g=A[h];ct(A,h,"add"==h?function add(h){return g.call(this,0===h?0:h),this}:"delete"==h?function(h){return!(S&&!isObject(h))&&g.call(this,0===h?0:h)}:"get"==h?function get(h){return S&&!isObject(h)?void 0:g.call(this,0===h?0:h)}:"has"==h?function has(h){return!(S&&!isObject(h))&&g.call(this,0===h?0:h)}:function set(h,d){return g.call(this,0===h?0:h,d),this})};if(_t(h,"function"!=typeof E||!(S||A.forEach&&!fails((function(){(new E).entries().next()})))))P=x.getConstructor(g,h,b,w),uu.REQUIRED=!0;else if(_t(h,!0)){var _=new P,C=_[w](S?{}:-0,1)!=_,R=fails((function(){_.has(1)})),M=checkCorrectnessOfIteration((function(h){new E(h)})),N=!S&&fails((function(){for(var h=new E,g=5;g--;)h[w](g,g);return!h.has(-0)}));M||((P=g((function(g,d){anInstance(g,P,h);var x=inheritIfRequired(new E,g,P);return null!=d&&Ve(d,x[w],x,b),x}))).prototype=A,A.constructor=P),(R||N)&&(fixMethod("delete"),fixMethod("has"),b&&fixMethod("get")),(N||C)&&fixMethod(w),S&&A.clear&&delete A.clear}return k[h]=P,_export({global:!0,forced:P!=E},k),setToStringTag(P,h),S||x.setStrong(P,h,b),P}("WeakMap",wrapper,nl);if(Y&&b){g=nl.getConstructor(wrapper,"WeakMap",!0),uu.REQUIRED=!0;var E=w.prototype,A=E.delete,P=E.has,k=E.get,_=E.set;redefineAll(E,{delete:function(h){if(isObject(h)&&!S(h)){var d=x(this);return d.frozen||(d.frozen=new g),A.call(this,h)||d.frozen.delete(h)}return A.call(this,h)},has:function has(h){if(isObject(h)&&!S(h)){var d=x(this);return d.frozen||(d.frozen=new g),P.call(this,h)||d.frozen.has(h)}return P.call(this,h)},get:function get(h){if(isObject(h)&&!S(h)){var d=x(this);return d.frozen||(d.frozen=new g),P.call(this,h)?k.call(this,h):d.frozen.get(h)}return k.call(this,h)},set:function set(h,d){if(isObject(h)&&!S(h)){var b=x(this);b.frozen||(b.frozen=new g),P.call(this,h)?_.call(this,h,d):b.frozen.set(h,d)}else _.call(this,h,d);return this}})}})),Function.toString);"function"!=typeof Ss.inspectSource&&(Ss.inspectSource=function(h){return il.call(h)});var al,ol,ul,sl=Ss.inspectSource,cl=ku.WeakMap,ll="function"==typeof cl&&/native code/.test(sl(cl)),fl=ws("keys"),hl=function sharedKey(h){return fl[h]||(fl[h]=Ps(h))},pl={},yl=ku.WeakMap;if(ll){var vl=new yl,gl=vl.get,dl=vl.has,ml=vl.set;al=function set(h,g){return ml.call(vl,h,g),g},ol=function get(h){return gl.call(vl,h)||{}},ul=function has(h){return dl.call(vl,h)}}else{var xl=hl("state");pl[xl]=!0,al=function set(h,g){return fs(h,xl,g),g},ol=function get(h){return Hu(h,xl)?h[xl]:{}},ul=function has(h){return Hu(h,xl)}}var bl,Sl,wl,El={set:al,get:ol,has:ul,enforce:function enforce(h){return ul(h)?ol(h):al(h,{})},getterFor:function getterFor(h){return function(g){var d;if(!Uu(g)||(d=ol(g)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return d}}},Al=!Cu((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Pl=hl("IE_PROTO"),Tl=Object.prototype,kl=Al?Object.getPrototypeOf:function(h){return h=xc(h),Hu(h,Pl)?h[Pl]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?Tl:null},_l=(Rs("iterator"),!1);[].keys&&("next"in(wl=[].keys())?(Sl=kl(kl(wl)))!==Object.prototype&&(bl=Sl):_l=!0),null==bl&&(bl={});var Ol={IteratorPrototype:bl,BUGGY_SAFARI_ITERATORS:_l};_export({target:"Object",stat:!0,forced:!x,sham:!x},{defineProperties:Qt});var Cl=fails((function(){Wt(1)}));_export({target:"Object",stat:!0,forced:Cl},{keys:function keys(h){return Wt(toObject(h))}});var Rl=gt.indexOf,Ml=[].indexOf,Nl=!!Ml&&1/[1].indexOf(1,-0)<0,Il=arrayMethodIsStrict("indexOf"),Ll=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:Nl||!Il||!Ll},{indexOf:function indexOf(h){return Nl?Ml.apply(this,arguments)||0:Rl(this,h,arguments.length>1?arguments[1]:void 0)}});var Dl,jl=Math.max,Vl=Math.min,$l=function toAbsoluteIndex(h,g){var d=ds(h);return d<0?jl(d+g,0):Vl(d,g)},Fl=function createMethod(h){return function(g,d,x){var b,S=Bu(g),w=xs(S.length),E=$l(x,w);if(h&&d!=d){for(;w>E;)if((b=S[E++])!=b)return!0}else for(;w>E;E++)if((h||E in S)&&S[E]===d)return h||E||0;return!h&&-1}},Bl={includes:Fl(!0),indexOf:Fl(!1)},Ul=Bl.indexOf,zl=function objectKeysInternal(h,g){var d,x=Bu(h),b=0,S=[];for(d in x)!Hu(pl,d)&&Hu(x,d)&&S.push(d);for(;g.length>b;)Hu(x,d=g[b++])&&(~Ul(S,d)||S.push(d));return S},Gl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hl=Object.keys||function keys(h){return zl(h,Gl)},ql=Ru?Object.defineProperties:function defineProperties(h,g){ss(h);for(var d,x=Hl(g),b=x.length,S=0;b>S;)ls.f(h,d=x[S++],g[d]);return h},Xl=Oc("document","documentElement"),Yl=hl("IE_PROTO"),Wl=function EmptyConstructor(){},Ql=function scriptTag(h){return"<script>"+h+"</"+"script>"},Zl=function NullProtoObject(){try{Dl=document.domain&&new ActiveXObject("htmlfile")}catch(h){}Zl=Dl?function NullProtoObjectViaActiveX(h){h.write(Ql("")),h.close();var g=h.parentWindow.Object;return h=null,g}(Dl):function NullProtoObjectViaIFrame(){var h,g=Yu("iframe");return g.style.display="none",Xl.appendChild(g),g.src=String("javascript:"),(h=g.contentWindow.document).open(),h.write(Ql("document.F=Object")),h.close(),h.F}();for(var h=Gl.length;h--;)delete Zl.prototype[Gl[h]];return Zl()};pl[Yl]=!0;var Kl=Object.create||function create(h,g){var d;return null!==h?(Wl.prototype=ss(h),d=new Wl,Wl.prototype=null,d[Yl]=h):d=Zl(),void 0===g?d:ql(d,g)},Jl={};Jl[Rs("toStringTag")]="z";var tf="[object z]"===String(Jl),ef=Rs("toStringTag"),rf="Arguments"==ju(function(){return arguments}()),nf=tf?ju:function(h){var g,d,x;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(d=function tryGet(h,g){try{return h[g]}catch(h){}}(g=Object(h),ef))?d:rf?ju(g):"Object"==(x=ju(g))&&"function"==typeof g.callee?"Arguments":x},af=tf?{}.toString:function toString(){return"[object "+nf(this)+"]"},of=ls.f,uf=Rs("toStringTag"),sf=function setToStringTag(h,g,d,x){if(h){var b=d?h:h.prototype;Hu(b,uf)||of(b,uf,{configurable:!0,value:g}),x&&!tf&&fs(b,"toString",af)}},cf=Ol.IteratorPrototype,lf=function returnThis(){return this},ff=Object.setPrototypeOf||("__proto__"in{}?function(){var h,g=!1,d={};try{(h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(d,[]),g=d instanceof Array}catch(h){}return function setPrototypeOf(d,x){return ss(d),function aPossiblePrototype(h){if(!Uu(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype")}(x),g?h.call(d,x):d.__proto__=x,d}}():void 0),hf=function redefine(h,g,d,x){x&&x.enumerable?h[g]=d:fs(h,g,d)},pf=Ol.IteratorPrototype,yf=Ol.BUGGY_SAFARI_ITERATORS,vf=Rs("iterator"),gf="keys",df="values",mf="entries",xf=function returnThis(){return this},bf=function defineIterator(h,g,d,x,b,S,w){!function createIteratorConstructor(h,g,d){var x=g+" Iterator";h.prototype=Kl(cf,{next:Lu(1,d)}),sf(h,x,!1,!0),Qc[x]=lf}(d,g,x);var E,A,P,k=function getIterationMethod(h){if(h===b&&N)return N;if(!yf&&h in R)return R[h];switch(h){case gf:return function keys(){return new d(this,h)};case df:return function values(){return new d(this,h)};case mf:return function entries(){return new d(this,h)}}return function(){return new d(this)}},_=g+" Iterator",C=!1,R=h.prototype,M=R[vf]||R["@@iterator"]||b&&R[b],N=!yf&&M||k(b),L="Array"==g&&R.entries||M;if(L&&(E=kl(L.call(new h)),pf!==Object.prototype&&E.next&&(sf(E,_,!0,!0),Qc[_]=xf)),b==df&&M&&M.name!==df&&(C=!0,N=function values(){return M.call(this)}),w&&R[vf]!==N&&fs(R,vf,N),Qc[g]=N,b)if(A={values:k(df),keys:S?N:k(gf),entries:k(mf)},w)for(P in A)(yf||C||!(P in R))&&hf(R,P,A[P]);else ys({target:g,proto:!0,forced:yf||C},A);return A},Sf="Array Iterator",wf=El.set,Ef=El.getterFor(Sf);bf(Array,"Array",(function(h,g){wf(this,{type:Sf,target:Bu(h),index:0,kind:g})}),(function(){var h=Ef(this),g=h.target,d=h.kind,x=h.index++;return!g||x>=g.length?(h.target=void 0,{value:void 0,done:!0}):"keys"==d?{value:x,done:!1}:"values"==d?{value:g[x],done:!1}:{value:[x,g[x]],done:!1}}),"values");Qc.Arguments=Qc.Array;var Af=Rs("toStringTag");for(var Pf 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 Tf=ku[Pf],kf=Tf&&Tf.prototype;kf&&nf(kf)!==Af&&fs(kf,Af,Pf),Qc[Pf]=Qc.Array}var _f=function createMethod(h){return function(g,d){var x,b,S=String(Fu(g)),w=ds(d),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}},Of={codeAt:_f(!1),charAt:_f(!0)}.charAt,Cf="String Iterator",Rf=El.set,Mf=El.getterFor(Cf);bf(String,"String",(function(h){Rf(this,{type:Cf,string:String(h),index:0})}),(function next(){var h,g=Mf(this),d=g.string,x=g.index;return x>=d.length?{value:void 0,done:!0}:(h=Of(d,x),g.index+=h.length,{value:h,done:!1})}));var Nf=Rs("iterator"),If=function getIteratorMethod(h){if(null!=h)return h[Nf]||h["@@iterator"]||Qc[nf(h)]},Lf=function getIterator(h){var g=If(h);if("function"!=typeof g)throw TypeError(String(h)+" is not iterable");return ss(g.call(h))},Df=Rs("iterator"),jf=function isIterable(h){var g=Object(h);return void 0!==g[Df]||"@@iterator"in g||Qc.hasOwnProperty(nf(g))},Vf=function createProperty(h,g,d){var x=zu(g);x in h?ls.f(h,x,Lu(0,d)):h[x]=d},$f=Rs("isConcatSpreadable"),Ff=9007199254740991,Bf="Maximum allowed index exceeded",Uf=Ic>=51||!Cu((function(){var h=[];return h[$f]=!1,h.concat()[0]!==h})),zf=Dc("concat"),Gf=function isConcatSpreadable(h){if(!Uu(h))return!1;var g=h[$f];return void 0!==g?!!g:wc(h)};ys({target:"Array",proto:!0,forced:!Uf||!zf},{concat:function concat(h){var g,d,x,b,S,w=xc(this),E=Ac(w,0),A=0;for(g=-1,x=arguments.length;g<x;g++)if(Gf(S=-1===g?w:arguments[g])){if(A+(b=xs(S.length))>Ff)throw TypeError(Bf);for(d=0;d<b;d++,A++)d in S&&Vf(E,A,S[d])}else{if(A>=Ff)throw TypeError(Bf);Vf(E,A++,S)}return E.length=A,E}});var Hf=ta.f,qf=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:qf},{getOwnPropertyNames:Hf});var Xf=Gl.concat("length","prototype"),Yf={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return zl(h,Xf)}},Wf=Yf.f,Qf={}.toString,Zf="object"==("undefined"==typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kf={f:function getOwnPropertyNames(h){return Zf&&"[object Window]"==Qf.call(h)?function getWindowNames(h){try{return Wf(h)}catch(h){return Zf.slice()}}(h):Wf(Bu(h))}},Jf={f:Object.getOwnPropertySymbols},th={f:Rs},eh=ls.f,rh=function defineWellKnownSymbol(h){var g=as.Symbol||(as.Symbol={});Hu(g,h)||eh(g,h,{value:th.f(h)})},nh=kc.forEach,ih=hl("hidden"),ah="Symbol",oh=Rs("toPrimitive"),uh=El.set,sh=El.getterFor(ah),ch=Object.prototype,lh=ku.Symbol,fh=Oc("JSON","stringify"),hh=Zu.f,ph=ls.f,yh=Kf.f,vh=Iu.f,gh=ws("symbols"),dh=ws("op-symbols"),mh=ws("string-to-symbol-registry"),xh=ws("symbol-to-string-registry"),bh=ws("wks"),Sh=ku.QObject,wh=!Sh||!Sh.prototype||!Sh.prototype.findChild,Eh=Ru&&Cu((function(){return 7!=Kl(ph({},"a",{get:function get(){return ph(this,"a",{value:7}).a}})).a}))?function(h,g,d){var x=hh(ch,g);x&&delete ch[g],ph(h,g,d),x&&h!==ch&&ph(ch,g,x)}:ph,Ah=function wrap(h,g){var d=gh[h]=Kl(lh.prototype);return uh(d,{type:ah,tag:h,description:g}),Ru||(d.description=g),d},Ph=ks?function(h){return"symbol"==_typeof(h)}:function(h){return Object(h)instanceof lh},Th=function defineProperty(h,g,d){h===ch&&Th(dh,g,d),ss(h);var x=zu(g,!0);return ss(d),Hu(gh,x)?(d.enumerable?(Hu(h,ih)&&h[ih][x]&&(h[ih][x]=!1),d=Kl(d,{enumerable:Lu(0,!1)})):(Hu(h,ih)||ph(h,ih,Lu(1,{})),h[ih][x]=!0),Eh(h,x,d)):ph(h,x,d)},kh=function defineProperties(h,g){ss(h);var d=Bu(g),x=Hl(d).concat(Rh(d));return nh(x,(function(g){Ru&&!_h.call(d,g)||Th(h,g,d[g])})),h},_h=function propertyIsEnumerable(h){var g=zu(h,!0),d=vh.call(this,g);return!(this===ch&&Hu(gh,g)&&!Hu(dh,g))&&(!(d||!Hu(this,g)||!Hu(gh,g)||Hu(this,ih)&&this[ih][g])||d)},Oh=function getOwnPropertyDescriptor(h,g){var d=Bu(h),x=zu(g,!0);if(d!==ch||!Hu(gh,x)||Hu(dh,x)){var b=hh(d,x);return!b||!Hu(gh,x)||Hu(d,ih)&&d[ih][x]||(b.enumerable=!0),b}},Ch=function getOwnPropertyNames(h){var g=yh(Bu(h)),d=[];return nh(g,(function(h){Hu(gh,h)||Hu(pl,h)||d.push(h)})),d},Rh=function getOwnPropertySymbols(h){var g=h===ch,d=yh(g?dh:Bu(h)),x=[];return nh(d,(function(h){!Hu(gh,h)||g&&!Hu(ch,h)||x.push(gh[h])})),x};if(Ts||(hf((lh=function _Symbol(){if(this instanceof lh)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,g=Ps(h),d=function setter(h){this===ch&&setter.call(dh,h),Hu(this,ih)&&Hu(this[ih],g)&&(this[ih][g]=!1),Eh(this,g,Lu(1,h))};return Ru&&wh&&Eh(ch,g,{configurable:!0,set:d}),Ah(g,h)}).prototype,"toString",(function toString(){return sh(this).tag})),hf(lh,"withoutSetter",(function(h){return Ah(Ps(h),h)})),Iu.f=_h,ls.f=Th,Zu.f=Oh,Yf.f=Kf.f=Ch,Jf.f=Rh,th.f=function(h){return Ah(Rs(h),h)},Ru&&ph(lh.prototype,"description",{configurable:!0,get:function description(){return sh(this).description}})),ys({global:!0,wrap:!0,forced:!Ts,sham:!Ts},{Symbol:lh}),nh(Hl(bh),(function(h){rh(h)})),ys({target:ah,stat:!0,forced:!Ts},{for:function _for(h){var g=String(h);if(Hu(mh,g))return mh[g];var d=lh(g);return mh[g]=d,xh[d]=g,d},keyFor:function keyFor(h){if(!Ph(h))throw TypeError(h+" is not a symbol");if(Hu(xh,h))return xh[h]},useSetter:function useSetter(){wh=!0},useSimple:function useSimple(){wh=!1}}),ys({target:"Object",stat:!0,forced:!Ts,sham:!Ru},{create:function create(h,g){return void 0===g?Kl(h):kh(Kl(h),g)},defineProperty:Th,defineProperties:kh,getOwnPropertyDescriptor:Oh}),ys({target:"Object",stat:!0,forced:!Ts},{getOwnPropertyNames:Ch,getOwnPropertySymbols:Rh}),ys({target:"Object",stat:!0,forced:Cu((function(){Jf.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return Jf.f(xc(h))}}),fh){var Mh=!Ts||Cu((function(){var h=lh();return"[null]"!=fh([h])||"{}"!=fh({a:h})||"{}"!=fh(Object(h))}));ys({target:"JSON",stat:!0,forced:Mh},{stringify:function stringify(h,g,d){for(var x,b=[h],S=1;arguments.length>S;)b.push(arguments[S++]);if(x=g,(Uu(g)||void 0!==h)&&!Ph(h))return wc(g)||(g=function replacer(h,g){if("function"==typeof x&&(g=x.call(this,h,g)),!Ph(g))return g}),b[1]=g,fh.apply(null,b)}})}lh.prototype[oh]||fs(lh.prototype,oh,lh.prototype.valueOf),sf(lh,ah),pl[ih]=!0,rh("asyncIterator"),rh("hasInstance"),rh("isConcatSpreadable"),rh("iterator"),rh("match"),rh("matchAll"),rh("replace"),rh("search"),rh("species"),rh("split"),rh("toPrimitive"),rh("toStringTag"),rh("unscopables"),sf(Math,"Math",!0),sf(ku.JSON,"JSON",!0);var Nh=as.Symbol;rh("asyncDispose"),rh("dispose"),rh("observable"),rh("patternMatch"),rh("replaceAll");var Ih=Nh;var Lh=function _iterableToArrayLimit(h,g){if(void 0!==Ih&&jf(Object(h))){var d=[],x=!0,b=!1,S=void 0;try{for(var w,E=Lf(h);!(x=(w=E.next()).done)&&(d.push(w.value),!g||d.length!==g);x=!0);}catch(h){b=!0,S=h}finally{try{x||null==E.return||E.return()}finally{if(b)throw S}}return d}},Dh=!checkCorrectnessOfIteration((function(h){Array.from(h)}));_export({target:"Array",stat:!0,forced:Dh},{from:On});var jh=function callWithSafeIterationClosing(h,g,d,x){try{return x?g(ss(d)[0],d[1]):g(d)}catch(g){var b=h.return;throw void 0!==b&&ss(b.call(h)),g}},Vh=Rs("iterator"),$h=Array.prototype,Fh=function isArrayIteratorMethod(h){return void 0!==h&&(Qc.Array===h||$h[Vh]===h)},Bh=Rs("iterator"),Uh=!1;try{var zh=0,Gh={next:function next(){return{done:!!zh++}},return:function _return(){Uh=!0}};Gh[Bh]=function(){return this},Array.from(Gh,(function(){throw 2}))}catch(h){}var Hh=function checkCorrectnessOfIteration(h,g){if(!g&&!Uh)return!1;var d=!1;try{var x={};x[Bh]=function(){return{next:function next(){return{done:d=!0}}}},h(x)}catch(h){}return d},qh=!Hh((function(h){Array.from(h)}));ys({target:"Array",stat:!0,forced:qh},{from:function from(h){var g,d,x,b,S,w,E=xc(h),A="function"==typeof this?this:Array,P=arguments.length,k=P>1?arguments[1]:void 0,_=void 0!==k,C=If(E),R=0;if(_&&(k=us(k,P>2?arguments[2]:void 0,2)),null==C||A==Array&&Fh(C))for(d=new A(g=xs(E.length));g>R;R++)w=_?k(E[R],R):E[R],Vf(d,R,w);else for(S=(b=C.call(E)).next,d=new A;!(x=S.call(b)).done;R++)w=_?jh(b,k,[x.value,R],!0):x.value,Vf(d,R,w);return d.length=R,d}});var Xh=as.Array.from,Yh=Xh,Wh=Dc("slice"),Qh=Fc("slice",{ACCESSORS:!0,0:0,1:2}),Zh=Rs("species"),Kh=[].slice,Jh=Math.max;ys({target:"Array",proto:!0,forced:!Wh||!Qh},{slice:function slice(h,g){var d,x,b,S=Bu(this),w=xs(S.length),E=$l(h,w),A=$l(void 0===g?w:g,w);if(wc(S)&&("function"!=typeof(d=S.constructor)||d!==Array&&!wc(d.prototype)?Uu(d)&&null===(d=d[Zh])&&(d=void 0):d=void 0,d===Array||void 0===d))return Kh.call(S,E,A);for(x=new(void 0===d?Array:d)(Jh(A-E,0)),b=0;E<A;E++,b++)E in S&&Vf(x,b,S[E]);return x.length=b,x}});var tp=$s("Array").slice,ep=Array.prototype,rp=function slice_1(h){var g=h.slice;return h===ep||h instanceof Array&&g===ep.slice?tp:g},np=rp;var ip=function _arrayLikeToArray(h,g){(null==g||g>h.length)&&(g=h.length);for(var d=0,x=new Array(g);d<g;d++)x[d]=h[d];return x};var ap=function _unsupportedIterableToArray(h,g){var d;if(h){if("string"==typeof h)return ip(h,g);var x=np(d=Object.prototype.toString.call(h)).call(d,8,-1);return"Object"===x&&h.constructor&&(x=h.constructor.name),"Map"===x||"Set"===x?Yh(h):"Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x)?ip(h,g):void 0}};var op=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 up=function _slicedToArray(h,g){return Wc(h)||Lh(h,g)||ap(h,g)||op()};ys({target:"Object",stat:!0,forced:!Ru,sham:!Ru},{defineProperty:ls.f});var sp=createCommonjsModule((function(h){var g=as.Object,d=h.exports=function defineProperty(h,d,x){return g.defineProperty(h,d,x)};g.defineProperty.sham&&(d.sham=!0)})),cp=sp;ys({target:"Object",stat:!0,forced:!Ru,sham:!Ru},{defineProperties:ql});var lp=createCommonjsModule((function(h){var g=as.Object,d=h.exports=function defineProperties(h,d){return g.defineProperties(h,d)};g.defineProperties.sham&&(d.sham=!0)})),fp=Oc("Reflect","ownKeys")||function ownKeys(h){var g=Yf.f(ss(h)),d=Jf.f;return d?g.concat(d(h)):g};ys({target:"Object",stat:!0,sham:!Ru},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(h){for(var g,d,x=Bu(h),b=Zu.f,S=fp(x),w={},E=0;S.length>E;)void 0!==(d=b(x,g=S[E++]))&&Vf(w,g,d);return w}});var hp=as.Object.getOwnPropertyDescriptors,pp=function arrayMethodIsStrict(h,g){var d=[][h];return!!d&&Cu((function(){d.call(null,g||function(){throw 1},1)}))},yp=kc.forEach,vp=pp("forEach"),gp=Fc("forEach"),dp=vp&&gp?[].forEach:function forEach(h){return yp(this,h,arguments.length>1?arguments[1]:void 0)};ys({target:"Array",proto:!0,forced:[].forEach!=dp},{forEach:dp});var mp=$s("Array").forEach,xp=Array.prototype,bp={DOMTokenList:!0,NodeList:!0},Sp=function forEach_1(h){var g=h.forEach;return h===xp||h instanceof Array&&g===xp.forEach||bp.hasOwnProperty(nf(h))?mp:g},wp=Zu.f,Ep=Cu((function(){wp(1)}));ys({target:"Object",stat:!0,forced:!Ru||Ep,sham:!Ru},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,g){return wp(Bu(h),g)}});var Ap=createCommonjsModule((function(h){var g=as.Object,d=h.exports=function getOwnPropertyDescriptor(h,d){return g.getOwnPropertyDescriptor(h,d)};g.getOwnPropertyDescriptor.sham&&(d.sham=!0)})),Pp=Ap,Tp=ia.filter,kp=arrayMethodHasSpeciesSupport("filter"),_p=arrayMethodUsesToLength("filter");_export({target:"Array",proto:!0,forced:!kp||!_p},{filter:function filter(h){return Tp(this,h,arguments.length>1?arguments[1]:void 0)}});var Op=kc.filter,Cp=Dc("filter"),Rp=Fc("filter");ys({target:"Array",proto:!0,forced:!Cp||!Rp},{filter:function filter(h){return Op(this,h,arguments.length>1?arguments[1]:void 0)}});var Mp=$s("Array").filter,Np=Array.prototype,Ip=function filter_1(h){var g=h.filter;return h===Np||h instanceof Array&&g===Np.filter?Mp:g},Lp=as.Object.getOwnPropertySymbols,Dp=Cu((function(){Hl(1)}));ys({target:"Object",stat:!0,forced:Dp},{keys:function keys(h){return Hl(xc(h))}});var jp=as.Object.keys,Vp=So,$p=!!Ne&&fails((function(){Ne.prototype.finally.call({then:function(){}},(function(){}))}));_export({target:"Promise",proto:!0,real:!0,forced:$p},{finally:function(h){var g=speciesConstructor(this,getBuiltIn("Promise")),d="function"==typeof h;return this.then(d?function(d){return promiseResolve(g,h()).then((function(){return d}))}:h,d?function(d){return promiseResolve(g,h()).then((function(){throw d}))}:h)}}),"function"!=typeof Ne||Ne.prototype.finally||ct(Ne.prototype,"finally",getBuiltIn("Promise").prototype.finally);var Fp=ku.Promise,Bp=function redefineAll(h,g,d){for(var x in g)d&&d.unsafe&&h[x]?h[x]=g[x]:hf(h,x,g[x],d);return h},Up=Rs("species"),zp=function setSpecies(h){var g=Oc(h),d=ls.f;Ru&&g&&!g[Up]&&d(g,Up,{configurable:!0,get:function get(){return this}})},Gp=function anInstance(h,g,d){if(!(h instanceof g))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return h},Hp=createCommonjsModule((function(h){var g=function Result(h,g){this.stopped=h,this.result=g};(h.exports=function(h,d,x,b,S){var w,E,A,P,k,_,C,R=us(d,x,b?2:1);if(S)w=h;else{if("function"!=typeof(E=If(h)))throw TypeError("Target is not iterable");if(Fh(E)){for(A=0,P=xs(h.length);P>A;A++)if((k=b?R(ss(C=h[A])[0],C[1]):R(h[A]))&&k instanceof g)return k;return new g(!1)}w=E.call(h)}for(_=w.next;!(C=_.call(w)).done;)if("object"==_typeof(k=jh(w,R,C.value,b))&&k&&k instanceof g)return k;return new g(!1)}).stop=function(h){return new g(!0,h)}})),qp=Rs("species"),Xp=function speciesConstructor(h,g){var d,x=ss(h).constructor;return void 0===x||null==(d=ss(x)[qp])?g:os(d)},Yp=!d.setImmediate||!d.clearImmediate;_export({global:!0,bind:!0,enumerable:!0,forced:Yp},{setImmediate:fr.set,clearImmediate:fr.clear});var Wp,Qp,Zp,Kp=/(iphone|ipod|ipad).*applewebkit/i.test(Cc),Jp=ku.location,ty=ku.setImmediate,ey=ku.clearImmediate,ry=ku.process,ny=ku.MessageChannel,iy=ku.Dispatch,ay=0,oy={},uy="onreadystatechange",sy=function run(h){if(oy.hasOwnProperty(h)){var g=oy[h];delete oy[h],g()}},cy=function runner(h){return function(){sy(h)}},ly=function listener(h){sy(h.data)},fy=function post(h){ku.postMessage(h+"",Jp.protocol+"//"+Jp.host)};ty&&ey||(ty=function setImmediate(h){for(var g=[],d=1;arguments.length>d;)g.push(arguments[d++]);return oy[++ay]=function(){("function"==typeof h?h:Function(h)).apply(void 0,g)},Wp(ay),ay},ey=function clearImmediate(h){delete oy[h]},"process"==ju(ry)?Wp=function defer(h){ry.nextTick(cy(h))}:iy&&iy.now?Wp=function defer(h){iy.now(cy(h))}:ny&&!Kp?(Zp=(Qp=new ny).port2,Qp.port1.onmessage=ly,Wp=us(Zp.postMessage,Zp,1)):!ku.addEventListener||"function"!=typeof postMessage||ku.importScripts||Cu(fy)||"file:"===Jp.protocol?Wp=uy in Yu("script")?function defer(h){Xl.appendChild(Yu("script")).onreadystatechange=function(){Xl.removeChild(this),sy(h)}}:function defer(h){setTimeout(cy(h),0)}:(Wp=fy,ku.addEventListener("message",ly,!1)));var hy,py,yy,vy,gy,dy,my,xy,by={set:ty,clear:ey},Sy=Zu.f,wy=by.set,Ey=ku.MutationObserver||ku.WebKitMutationObserver,Ay=ku.process,Py=ku.Promise,Ty="process"==ju(Ay),ky=Sy(ku,"queueMicrotask"),_y=ky&&ky.value;_y||(hy=function flush(){var h,g;for(Ty&&(h=Ay.domain)&&h.exit();py;){g=py.fn,py=py.next;try{g()}catch(h){throw py?vy():yy=void 0,h}}yy=void 0,h&&h.enter()},Ty?vy=function notify(){Ay.nextTick(hy)}:Ey&&!Kp?(gy=!0,dy=document.createTextNode(""),new Ey(hy).observe(dy,{characterData:!0}),vy=function notify(){dy.data=gy=!gy}):Py&&Py.resolve?(my=Py.resolve(void 0),xy=my.then,vy=function notify(){xy.call(my,hy)}):vy=function notify(){wy.call(ku,hy)});var Oy,Cy,Ry,My=_y||function(h){var g={fn:h,next:void 0};yy&&(yy.next=g),py||(py=g,vy()),yy=g},Ny=function PromiseCapability(h){var g,d;this.promise=new h((function(h,x){if(void 0!==g||void 0!==d)throw TypeError("Bad Promise constructor");g=h,d=x})),this.resolve=os(g),this.reject=os(d)},Iy={f:function f(h){return new Ny(h)}},Ly=function promiseResolve(h,g){if(ss(h),Uu(g)&&g.constructor===h)return g;var d=Iy.f(h);return(0,d.resolve)(g),d.promise},Dy=function perform(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}},jy=by.set,Vy=Rs("species"),$y="Promise",Fy=El.get,By=El.set,Uy=El.getterFor($y),zy=Fp,Gy=ku.TypeError,Hy=ku.document,qy=ku.process,Xy=(Oc("fetch"),Iy.f),Yy=Xy,Wy="process"==ju(qy),Qy=!!(Hy&&Hy.createEvent&&ku.dispatchEvent),Zy="unhandledrejection",Ky=is($y,(function(){if(!(sl(zy)!==String(zy))){if(66===Ic)return!0;if(!Wy&&"function"!=typeof PromiseRejectionEvent)return!0}if(!zy.prototype.finally)return!0;if(Ic>=51&&/native code/.test(zy))return!1;var h=zy.resolve(1),g=function FakePromise(h){h((function(){}),(function(){}))};return(h.constructor={})[Vy]=g,!(h.then((function(){}))instanceof g)})),Jy=Ky||!Hh((function(h){zy.all(h).catch((function(){}))})),tv=function isThenable(h){var g;return!(!Uu(h)||"function"!=typeof(g=h.then))&&g},ev=function notify(h,g,d){if(!g.notified){g.notified=!0;var x=g.reactions;My((function(){for(var b=g.value,S=1==g.state,w=0;x.length>w;){var E,A,P,k=x[w++],_=S?k.ok:k.fail,C=k.resolve,R=k.reject,M=k.domain;try{_?(S||(2===g.rejection&&av(h,g),g.rejection=1),!0===_?E=b:(M&&M.enter(),E=_(b),M&&(M.exit(),P=!0)),E===k.promise?R(Gy("Promise-chain cycle")):(A=tv(E))?A.call(E,C,R):C(E)):R(b)}catch(h){M&&!P&&M.exit(),R(h)}}g.reactions=[],g.notified=!1,d&&!g.rejection&&nv(h,g)}))}},rv=function dispatchEvent(h,g,d){var x,b;Qy?((x=Hy.createEvent("Event")).promise=g,x.reason=d,x.initEvent(h,!1,!0),ku.dispatchEvent(x)):x={promise:g,reason:d},(b=ku["on"+h])?b(x):h===Zy&&function hostReportErrors(h,g){var d=ku.console;d&&d.error&&(1===arguments.length?d.error(h):d.error(h,g))}("Unhandled promise rejection",d)},nv=function onUnhandled(h,g){jy.call(ku,(function(){var d,x=g.value;if(iv(g)&&(d=Dy((function(){Wy?qy.emit("unhandledRejection",x,h):rv(Zy,h,x)})),g.rejection=Wy||iv(g)?2:1,d.error))throw d.value}))},iv=function isUnhandled(h){return 1!==h.rejection&&!h.parent},av=function onHandleUnhandled(h,g){jy.call(ku,(function(){Wy?qy.emit("rejectionHandled",h):rv("rejectionhandled",h,g.value)}))},ov=function bind(h,g,d,x){return function(b){h(g,d,b,x)}},uv=function internalReject(h,g,d,x){g.done||(g.done=!0,x&&(g=x),g.value=d,g.state=2,ev(h,g,!0))},sv=function internalResolve(h,g,d,x){if(!g.done){g.done=!0,x&&(g=x);try{if(h===d)throw Gy("Promise can't be resolved itself");var b=tv(d);b?My((function(){var x={done:!1};try{b.call(d,ov(internalResolve,h,x,g),ov(uv,h,x,g))}catch(d){uv(h,x,d,g)}})):(g.value=d,g.state=1,ev(h,g,!1))}catch(d){uv(h,{done:!1},d,g)}}};Ky&&(zy=function Promise(h){Gp(this,zy,$y),os(h),Oy.call(this);var g=Fy(this);try{h(ov(sv,this,g),ov(uv,this,g))}catch(h){uv(this,g,h)}},(Oy=function Promise(h){By(this,{type:$y,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Bp(zy.prototype,{then:function then(h,g){var d=Uy(this),x=Xy(Xp(this,zy));return x.ok="function"!=typeof h||h,x.fail="function"==typeof g&&g,x.domain=Wy?qy.domain:void 0,d.parent=!0,d.reactions.push(x),0!=d.state&&ev(this,d,!1),x.promise},catch:function _catch(h){return this.then(void 0,h)}}),Cy=function OwnPromiseCapability(){var h=new Oy,g=Fy(h);this.promise=h,this.resolve=ov(sv,h,g),this.reject=ov(uv,h,g)},Iy.f=Xy=function newPromiseCapability(h){return h===zy||h===Ry?new Cy(h):Yy(h)}),ys({global:!0,wrap:!0,forced:Ky},{Promise:zy}),sf(zy,$y,!1,!0),zp($y),Ry=Oc($y),ys({target:$y,stat:!0,forced:Ky},{reject:function reject(h){var g=Xy(this);return g.reject.call(void 0,h),g.promise}}),ys({target:$y,stat:!0,forced:!0},{resolve:function resolve(h){return Ly(this===Ry?zy:this,h)}}),ys({target:$y,stat:!0,forced:Jy},{all:function all(h){var g=this,d=Xy(g),x=d.resolve,b=d.reject,S=Dy((function(){var d=os(g.resolve),S=[],w=0,E=1;Hp(h,(function(h){var A=w++,P=!1;S.push(void 0),E++,d.call(g,h).then((function(h){P||(P=!0,S[A]=h,--E||x(S))}),b)})),--E||x(S)}));return S.error&&b(S.value),d.promise},race:function race(h){var g=this,d=Xy(g),x=d.reject,b=Dy((function(){var b=os(g.resolve);Hp(h,(function(h){b.call(g,h).then(d.resolve,x)}))}));return b.error&&x(b.value),d.promise}}),ys({target:"Promise",stat:!0},{allSettled:function allSettled(h){var g=this,d=Iy.f(g),x=d.resolve,b=d.reject,S=Dy((function(){var d=os(g.resolve),b=[],S=0,w=1;Hp(h,(function(h){var E=S++,A=!1;b.push(void 0),w++,d.call(g,h).then((function(h){A||(A=!0,b[E]={status:"fulfilled",value:h},--w||x(b))}),(function(h){A||(A=!0,b[E]={status:"rejected",reason:h},--w||x(b))}))})),--w||x(b)}));return S.error&&b(S.value),d.promise}});var cv=!!Fp&&Cu((function(){Fp.prototype.finally.call({then:function then(){}},(function(){}))}));ys({target:"Promise",proto:!0,real:!0,forced:cv},{finally:function _finally(h){var g=Xp(this,Oc("Promise")),d="function"==typeof h;return this.then(d?function(d){return Ly(g,h()).then((function(){return d}))}:h,d?function(d){return Ly(g,h()).then((function(){throw d}))}:h)}});var lv=as.Promise,fv=El.set,hv=El.getterFor("AggregateError"),pv=function AggregateError(h,g){var d=this;if(!(d instanceof pv))return new pv(h,g);ff&&(d=ff(new Error(g),kl(d)));var x=[];return Hp(h,x.push,x),Ru?fv(d,{errors:x,type:"AggregateError"}):d.errors=x,void 0!==g&&fs(d,"message",String(g)),d};pv.prototype=Kl(Error.prototype,{constructor:Lu(5,pv),message:Lu(5,""),name:Lu(5,"AggregateError")}),Ru&&ls.f(pv.prototype,"errors",{get:function get(){return hv(this).errors},configurable:!0}),ys({global:!0},{AggregateError:pv}),ys({target:"Promise",stat:!0},{try:function _try(h){var g=Iy.f(this),d=Dy(h);return(d.error?g.reject:g.resolve)(d.value),g.promise}});var yv="No one promise resolved";ys({target:"Promise",stat:!0},{any:function any(h){var g=this,d=Iy.f(g),x=d.resolve,b=d.reject,S=Dy((function(){var d=os(g.resolve),S=[],w=0,E=1,A=!1;Hp(h,(function(h){var P=w++,k=!1;S.push(void 0),E++,d.call(g,h).then((function(h){k||A||(A=!0,x(h))}),(function(h){k||A||(k=!0,S[P]=h,--E||b(new(Oc("AggregateError"))(S,yv)))}))})),--E||b(new(Oc("AggregateError"))(S,yv))}));return S.error&&b(S.value),d.promise}});var vv=lv;function asyncGeneratorStep$1(h,g,d,x,b,S,w){try{var E=h[S](w),A=E.value}catch(h){return void d(h)}E.done?g(A):vv.resolve(A).then(x,b)}var gv=function _asyncToGenerator$1(h){return function(){var g=this,d=arguments;return new vv((function(x,b){var S=h.apply(g,d);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)}))}},dv=sp;var mv=function _defineProperty(h,g,d){return g in h?dv(h,g,{value:d,enumerable:!0,configurable:!0,writable:!0}):h[g]=d,h};var xv=function _classCallCheck(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")};function _defineProperties(h,g){for(var d=0;d<g.length;d++){var x=g[d];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),dv(h,x.key,x)}}var bv=function _createClass(h,g,d){return g&&_defineProperties(h.prototype,g),d&&_defineProperties(h,d),h},Sv=$s("Array").concat,wv=Array.prototype,Ev=function concat_1(h){var g=h.concat;return h===wv||h instanceof Array&&g===wv.concat?Sv:g},createMethod$8=function(h){return function(g,d,x,b){aFunction$1(d);var S=toObject(g),w=P(S),E=toLength(S.length),A=h?E-1:0,k=h?-1:1;if(x<2)for(;;){if(A in w){b=w[A],A+=k;break}if(A+=k,h?A<0:E<=A)throw TypeError("Reduce of empty array with no initial value")}for(;h?A>=0:E>A;A+=k)A in w&&(b=d(b,w[A],A,S));return b}},Av={left:createMethod$8(!1),right:createMethod$8(!0)}.left,Pv=arrayMethodIsStrict("reduce"),Tv=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!Pv||!Tv},{reduce:function reduce(h){return Av(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}});var kv=function createMethod(h){return function(g,d,x,b){os(d);var S=xc(g),w=$u(S),E=xs(S.length),A=h?E-1:0,P=h?-1:1;if(x<2)for(;;){if(A in w){b=w[A],A+=P;break}if(A+=P,h?A<0:E<=A)throw TypeError("Reduce of empty array with no initial value")}for(;h?A>=0:E>A;A+=P)A in w&&(b=d(b,w[A],A,S));return b}},_v={left:kv(!1),right:kv(!0)}.left,Ov=pp("reduce"),Cv=Fc("reduce",{1:0});ys({target:"Array",proto:!0,forced:!Ov||!Cv},{reduce:function reduce(h){return _v(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Rv=$s("Array").reduce,Mv=Array.prototype,Nv=function reduce_1(h){var g=h.reduce;return h===Mv||h instanceof Array&&g===Mv.reduce?Rv:g};ys({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var Iv=as.Date.now,Lv=ia.every,Dv=arrayMethodIsStrict("every"),jv=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!Dv||!jv},{every:function every(h){return Lv(this,h,arguments.length>1?arguments[1]:void 0)}});var Vv=kc.every,$v=pp("every"),Fv=Fc("every");ys({target:"Array",proto:!0,forced:!$v||!Fv},{every:function every(h){return Vv(this,h,arguments.length>1?arguments[1]:void 0)}});var Bv=$s("Array").every,Uv=Array.prototype,zv=function every_1(h){var g=h.every;return h===Uv||h instanceof Array&&g===Uv.every?Bv:g},Gv=lv,Hv=[].slice,qv={},Xv=function construct(h,g,d){if(!(g in qv)){for(var x=[],b=0;b<g;b++)x[b]="a["+b+"]";qv[g]=Function("C,a","return new C("+x.join(",")+")")}return qv[g](h,d)},Yv=Function.bind||function bind(h){var g=os(this),d=Hv.call(arguments,1),x=function bound(){var b=d.concat(Hv.call(arguments));return this instanceof x?Xv(g,b.length,b):g.apply(h,b)};return Uu(g.prototype)&&(x.prototype=g.prototype),x};ys({target:"Function",proto:!0},{bind:Yv});var Wv=$s("Function").bind,Qv=Function.prototype,Zv=function bind_1(h){var g=h.bind;return h===Qv||h instanceof Function&&g===Qv.bind?Wv:g};_export({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});for(var Kv=createCommonjsModule((function(h){(function(){var g,d,x,b,S,w;"undefined"!=typeof performance&&null!==performance&&performance.now?h.exports=function(){return performance.now()}:null!=$o&&$o.hrtime?(h.exports=function(){return(g()-S)/1e6},d=$o.hrtime,b=(g=function getNanoSeconds(){var h;return 1e9*(h=d())[0]+h[1]})(),w=1e9*$o.uptime(),S=b-w):Date.now?(h.exports=function(){return Date.now()-x},x=Date.now()):(h.exports=function(){return(new Date).getTime()-x},x=(new Date).getTime())}).call(g)})),Jv="undefined"==typeof window?g:window,tg=["moz","webkit"],eg="AnimationFrame",rg=Jv["request"+eg],ng=Jv["cancel"+eg]||Jv["cancelRequest"+eg],ig=0;!rg&&ig<tg.length;ig++)rg=Jv[tg[ig]+"Request"+eg],ng=Jv[tg[ig]+"Cancel"+eg]||Jv[tg[ig]+"CancelRequest"+eg];if(!rg||!ng){var ag=0,og=0,ug=[];rg=function raf(h){if(0===ug.length){var g=Kv(),d=Math.max(0,16.666666666666668-(g-ag));ag=d+g,setTimeout((function(){var h=ug.slice(0);ug.length=0;for(var g=0;g<h.length;g++)if(!h[g].cancelled)try{h[g].callback(ag)}catch(h){setTimeout((function(){throw h}),0)}}),Math.round(d))}return ug.push({handle:++og,callback:h,cancelled:!1}),og},ng=function caf(h){for(var g=0;g<ug.length;g++)ug[g].handle===h&&(ug[g].cancelled=!0)}}var sg=function raf_1(h){return rg.call(Jv,h)};sg.cancel=function cancel(){ng.apply(Jv,arguments)},sg.polyfill=function polyfill(h){h||(h=Jv),h.requestAnimationFrame=rg,h.cancelAnimationFrame=ng};var cg=fc.trim;ys({target:"String",proto:!0,forced:function stringTrimForced(h){return Cu((function(){return!!oc[h]()||"
"!="
"[h]()||oc[h].name!==h}))}("trim")},{trim:function trim(){return cg(this)}});var lg=$s("String").trim,fg=String.prototype,hg=function trim_1(h){var g=h.trim;return"string"==typeof h||h===fg||h instanceof String&&g===fg.trim?lg:g},pg=Xo.trim,yg=d.parseInt,vg=/^[+-]?0[Xx]/,gg=8!==yg(zo+"08")||22!==yg(zo+"0x16")?function parseInt(h,g){var d=pg(String(h));return yg(d,g>>>0||(vg.test(d)?16:10))}:yg;_export({global:!0,forced:parseInt!=gg},{parseInt:gg});var dg=function rgbcolor(h){this.ok=!1,this.alpha=1,"#"==h.charAt(0)&&(h=h.substr(1,6)),h=(h=h.replace(/ /g,"")).toLowerCase();var g={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=g[h]||h;for(var d=[{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<d.length;x++){var b=d[x].re,S=d[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),g=this.g.toString(16),d=this.b.toString(16);return 1==h.length&&(h="0"+h),1==g.length&&(g="0"+g),1==d.length&&(d="0"+d),"#"+h+g+d},this.getHelpXML=function(){for(var h=new Array,x=0;x<d.length;x++)for(var b=d[x].example,S=0;S<b.length;S++)h[h.length]=b[S];for(var w in g)h[h.length]=w;var E=document.createElement("ul");E.setAttribute("id","rgbcolor-examples");for(x=0;x<h.length;x++)try{var A=document.createElement("li"),P=new RGBColor(h[x]),k=document.createElement("div");k.style.cssText="margin: 3px; border: 1px solid black; background:"+P.toHex()+"; color:"+P.toHex(),k.appendChild(document.createTextNode("test"));var _=document.createTextNode(" "+h[x]+" -> "+P.toRGB()+" -> "+P.toHex());A.appendChild(k),A.appendChild(_),E.appendChild(A)}catch(h){}return E}},mg=Oc("Reflect","construct"),xg=Cu((function(){function F(){}return!(mg((function(){}),[],F)instanceof F)})),bg=!Cu((function(){mg((function(){}))})),Sg=xg||bg;ys({target:"Reflect",stat:!0,forced:Sg,sham:Sg},{construct:function construct(h,g){os(h),ss(g);var d=arguments.length<3?h:os(arguments[2]);if(bg&&!xg)return mg(h,g,d);if(h==d){switch(g.length){case 0:return new h;case 1:return new h(g[0]);case 2:return new h(g[0],g[1]);case 3:return new h(g[0],g[1],g[2]);case 4:return new h(g[0],g[1],g[2],g[3])}var x=[null];return x.push.apply(x,g),new(Yv.apply(h,x))}var b=d.prototype,S=Kl(Uu(b)?b:Object.prototype),w=Function.apply.call(h,S,g);return Uu(w)?w:S}});var wg=as.Reflect.construct;ys({target:"Object",stat:!0,sham:!Ru},{create:Kl});var Eg=as.Object,Ag=function create(h,g){return Eg.create(h,g)};ys({target:"Object",stat:!0},{setPrototypeOf:ff});var Pg=as.Object.setPrototypeOf,Tg=createCommonjsModule((function(h){function _setPrototypeOf(g,d){return h.exports=_setPrototypeOf=Pg||function _setPrototypeOf(h,g){return h.__proto__=g,h},_setPrototypeOf(g,d)}h.exports=_setPrototypeOf}));var kg=function _inherits(h,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");h.prototype=Ag(g&&g.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),g&&Tg(h,g)},_g=th.f("iterator"),Og=createCommonjsModule((function(h){function _typeof(g){return h.exports=_typeof="function"==typeof Ih&&"symbol"==typeof _g?function _typeof(h){return typeof h}:function _typeof(h){return h&&"function"==typeof Ih&&h.constructor===Ih&&h!==Ih.prototype?"symbol":typeof h},_typeof(g)}h.exports=_typeof}));var Cg=function _assertThisInitialized(h){if(void 0===h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h};var Rg=function _possibleConstructorReturn(h,g){return!g||"object"!==Og(g)&&"function"!=typeof g?Cg(h):g},Mg=Cu((function(){kl(1)}));ys({target:"Object",stat:!0,forced:Mg,sham:!Al},{getPrototypeOf:function getPrototypeOf(h){return kl(xc(h))}});var Ng=as.Object.getPrototypeOf,Ig=createCommonjsModule((function(h){function _getPrototypeOf(g){return h.exports=_getPrototypeOf=Pg?Ng:function _getPrototypeOf(h){return h.__proto__||Ng(h)},_getPrototypeOf(g)}h.exports=_getPrototypeOf}));var Lg=function _arrayWithoutHoles(h){if(Yc(h))return ip(h)};var Dg=function _iterableToArray(h){if(void 0!==Ih&&jf(Object(h)))return Yh(h)};var jg=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 Vg=function _toConsumableArray(h){return Lg(h)||Dg(h)||ap(h)||jg()},$g=ia.some,Fg=arrayMethodIsStrict("some"),Bg=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!Fg||!Bg},{some:function some(h){return $g(this,h,arguments.length>1?arguments[1]:void 0)}});var Ug=kc.some,zg=pp("some"),Gg=Fc("some");ys({target:"Array",proto:!0,forced:!zg||!Gg},{some:function some(h){return Ug(this,h,arguments.length>1?arguments[1]:void 0)}});var Hg=$s("Array").some,qg=Array.prototype,Xg=function some_1(h){var g=h.some;return h===qg||h instanceof Array&&g===qg.some?Hg:g},Yg=gt.includes,Wg=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!Wg},{includes:function includes(h){return Yg(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 Qg=Bl.includes,Zg=Fc("indexOf",{ACCESSORS:!0,1:0});ys({target:"Array",proto:!0,forced:!Zg},{includes:function includes(h){return Qg(this,h,arguments.length>1?arguments[1]:void 0)}});var Kg=$s("Array").includes;ys({target:"String",proto:!0,forced:!Ls("includes")},{includes:function includes(h){return!!~String(Fu(this)).indexOf(Ns(h),arguments.length>1?arguments[1]:void 0)}});var Jg=$s("String").includes,td=Array.prototype,ed=String.prototype,rd=function includes$2(h){var g=h.includes;return h===td||h instanceof Array&&g===td.includes?Kg:"string"==typeof h||h===ed||h instanceof String&&g===ed.includes?Jg:g},nd=Xh,id=[].reverse,ad=[1,2];ys({target:"Array",proto:!0,forced:String(ad)===String(ad.reverse())},{reverse:function reverse(){return wc(this)&&(this.length=this.length),id.call(this)}});var od=$s("Array").reverse,ud=Array.prototype,sd=function reverse_1(h){var g=h.reverse;return h===ud||h instanceof Array&&g===ud.reverse?od:g},cd=Bl.indexOf,ld=[].indexOf,fd=!!ld&&1/[1].indexOf(1,-0)<0,hd=pp("indexOf"),pd=Fc("indexOf",{ACCESSORS:!0,1:0});ys({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=$s("Array").indexOf,vd=Array.prototype,gd=function indexOf_1(h){var g=h.indexOf;return h===vd||h instanceof Array&&g===vd.indexOf?yd:g},dd=Ap;ys({target:"Reflect",stat:!0},{get:function get$2(h,g){var d,x,b=arguments.length<3?h:arguments[2];return ss(h)===b?h[g]:(d=Zu.f(h,g))?Hu(d,"value")?d.value:void 0===d.get?void 0:d.get.call(b):Uu(x=kl(h))?get$2(x,g,b):void 0}});var md=as.Reflect.get;var xd=function _superPropBase(h,g){for(;!Object.prototype.hasOwnProperty.call(h,g)&&null!==(h=Ig(h)););return h},bd=createCommonjsModule((function(h){function _get(g,d,x){return"undefined"!=typeof Reflect&&md?h.exports=_get=md:h.exports=_get=function _get(h,g,d){var x=xd(h,g);if(x){var b=dd(x,g);return b.get?b.get.call(d):b.value}},_get(g,d,x||g)}h.exports=_get}));ys({target:"Array",proto:!0},{fill:function fill(h){for(var g=xc(this),d=xs(g.length),x=arguments.length,b=$l(x>1?arguments[1]:void 0,d),S=x>2?arguments[2]:void 0,w=void 0===S?d:$l(S,d);w>b;)g[b++]=h;return g}});var Sd=$s("Array").fill,wd=Array.prototype,Ed=function fill_1(h){var g=h.fill;return h===wd||h instanceof Array&&g===wd.fill?Sd:g},Ad=function t(h,g){return(Ad=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var d in g)g.hasOwnProperty(d)&&(h[d]=g[d])})(h,g)};function r(h,g){function i(){this.constructor=h}Ad(h,g),h.prototype=null===g?Object.create(g):(i.prototype=g.prototype,new i)}function i$1(h,g){var d=h[0],x=h[1];return[d*Math.cos(g)-x*Math.sin(g),d*Math.sin(g)+x*Math.cos(g)]}function a(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];for(var d=0;d<h.length;d++)if("number"!=typeof h[d])throw new Error("assertNumbers arguments["+d+"] is not a number. "+_typeof(h[d])+" == typeof "+h[d]);return!0}var Pd=Math.PI;function o(h,g,d){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([(g-S)/2,(d-w)/2],-h.xRot/180*Pd),A=E[0],P=E[1],k=Math.pow(A,2)/Math.pow(x,2)+Math.pow(P,2)/Math.pow(b,2);1<k&&(x*=Math.sqrt(k),b*=Math.sqrt(k)),h.rX=x,h.rY=b;var _=Math.pow(x,2)*Math.pow(P,2)+Math.pow(b,2)*Math.pow(A,2),C=(h.lArcFlag!==h.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(x,2)*Math.pow(b,2)-_)/_)),R=x*P/b*C,M=-b*A/x*C,N=i$1([R,M],h.xRot/180*Pd);h.cX=N[0]+(g+S)/2,h.cY=N[1]+(d+w)/2,h.phi1=Math.atan2((P-M)/b,(A-R)/x),h.phi2=Math.atan2((-P-M)/b,(-A-R)/x),0===h.sweepFlag&&h.phi2>h.phi1&&(h.phi2-=2*Pd),1===h.sweepFlag&&h.phi2<h.phi1&&(h.phi2+=2*Pd),h.phi1*=180/Pd,h.phi2*=180/Pd}function s(h,g,d){a(h,g,d);var x=h*h+g*g-d*d;if(0>x)return[];if(0===x)return[[h*d/(h*h+g*g),g*d/(h*h+g*g)]];var b=Math.sqrt(x);return[[(h*d+g*b)/(h*h+g*g),(g*d-h*b)/(h*h+g*g)],[(h*d-g*b)/(h*h+g*g),(g*d+h*b)/(h*h+g*g)]]}var Td,kd=Math.PI/180;function c(h,g,d){return(1-d)*h+d*g}function y(h,g,d,x){return h+Math.cos(x/180*Pd)*g+Math.sin(x/180*Pd)*d}function p(h,g,d,x){var b=g-h,S=d-g,w=3*b+3*(x-d)-6*S,E=6*(S-b),A=3*b;return Math.abs(w)<1e-6?[-A/E]:function(h,g,d){void 0===d&&(d=1e-6);var x=h*h/4-g;if(x<-d)return[];if(x<=d)return[-h/2];var b=Math.sqrt(x);return[-h/2-b,-h/2+b]}(E/w,A/w,1e-6)}function m(h,g,d,x,b){var S=1-b;return h*(S*S*S)+g*(3*S*S*b)+d*(3*S*b*b)+x*(b*b*b)}!function(h){function r(){return u((function(h,g,d){return h.relative&&(void 0!==h.x1&&(h.x1+=g),void 0!==h.y1&&(h.y1+=d),void 0!==h.x2&&(h.x2+=g),void 0!==h.y2&&(h.y2+=d),void 0!==h.x&&(h.x+=g),void 0!==h.y&&(h.y+=d),h.relative=!1),h}))}function e(){var h=NaN,g=NaN,d=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,g=isNaN(g)?w:g,b.x1=b.relative?S-h:2*S-h,b.y1=b.relative?w-g:2*w-g),b.type&Nd.CURVE_TO?(h=b.relative?S+b.x2:b.x2,g=b.relative?w+b.y2:b.y2):(h=NaN,g=NaN),b.type&Nd.SMOOTH_QUAD_TO&&(b.type=Nd.QUAD_TO,d=isNaN(d)?S:d,x=isNaN(x)?w:x,b.x1=b.relative?S-d:2*S-d,b.y1=b.relative?w-x:2*w-x),b.type&Nd.QUAD_TO?(d=b.relative?S+b.x1:b.x1,x=b.relative?w+b.y1:b.y1):(d=NaN,x=NaN),b}))}function n(){var h=NaN,g=NaN;return u((function(d,x,b){if(d.type&Nd.SMOOTH_QUAD_TO&&(d.type=Nd.QUAD_TO,h=isNaN(h)?x:h,g=isNaN(g)?b:g,d.x1=d.relative?x-h:2*x-h,d.y1=d.relative?b-g:2*b-g),d.type&Nd.QUAD_TO){h=d.relative?x+d.x1:d.x1,g=d.relative?b+d.y1:d.y1;var S=d.x1,w=d.y1;d.type=Nd.CURVE_TO,d.x1=((d.relative?0:x)+2*S)/3,d.y1=((d.relative?0:b)+2*w)/3,d.x2=(d.x+2*S)/3,d.y2=(d.y+2*w)/3}else h=NaN,g=NaN;return d}))}function u(h){var g=0,d=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,g,d,x,b);return S.type&Nd.CLOSE_PATH&&(g=x,d=b),void 0!==S.x&&(g=S.relative?g+S.x:S.x),void 0!==S.y&&(d=S.relative?d+S.y:S.y),S.type&Nd.MOVE_TO&&(x=g,b=d),w}}function O(h,g,d,x,b,S){return a(h,g,d,x,b,S),u((function(w,E,A,P){var k=w.x1,_=w.x2,C=w.relative&&!isNaN(P),R=void 0!==w.x?w.x:C?0:E,M=void 0!==w.y?w.y:C?0:A;function T(h){return h*h}w.type&Nd.HORIZ_LINE_TO&&0!==g&&(w.type=Nd.LINE_TO,w.y=w.relative?0:A),w.type&Nd.VERT_LINE_TO&&0!==d&&(w.type=Nd.LINE_TO,w.x=w.relative?0:E),void 0!==w.x&&(w.x=w.x*h+M*d+(C?0:b)),void 0!==w.y&&(w.y=R*g+w.y*x+(C?0:S)),void 0!==w.x1&&(w.x1=w.x1*h+w.y1*d+(C?0:b)),void 0!==w.y1&&(w.y1=k*g+w.y1*x+(C?0:S)),void 0!==w.x2&&(w.x2=w.x2*h+w.y2*d+(C?0:b)),void 0!==w.y2&&(w.y2=_*g+w.y2*x+(C?0:S));var N=h*x-g*d;if(void 0!==w.xRot&&(1!==h||0!==g||0!==d||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),B=T(j)*V+T(D)*$,U=2*D*j*(V-$),z=T(D)*V+T(j)*$,G=B*x*x-U*g*x+z*g*g,q=U*(h*x+g*d)-2*(B*d*x+z*h*g),X=B*d*d-U*h*d+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(g){return Math.round(g*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,g,d){return h.relative||(void 0!==h.x1&&(h.x1-=g),void 0!==h.y1&&(h.y1-=d),void 0!==h.x2&&(h.x2-=g),void 0!==h.y2&&(h.y2-=d),void 0!==h.x&&(h.x-=g),void 0!==h.y&&(h.y-=d),h.relative=!0),h}))},h.NORMALIZE_HVZ=function(h,g,d){return void 0===h&&(h=!0),void 0===g&&(g=!0),void 0===d&&(d=!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 g&&x.type&Nd.HORIZ_LINE_TO&&(x.type=Nd.LINE_TO,x.y=x.relative?0:S),d&&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 g=NaN,d=NaN,x=NaN,b=NaN;return u((function(S,w,E,A,P){var k=Math.abs,_=!1,C=0,R=0;if(S.type&Nd.SMOOTH_CURVE_TO&&(C=isNaN(g)?0:w-g,R=isNaN(d)?0:E-d),S.type&(Nd.CURVE_TO|Nd.SMOOTH_CURVE_TO)?(g=S.relative?w+S.x2:S.x2,d=S.relative?E+S.y2:S.y2):(g=NaN,d=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;k(M)<=h&&k(N)<=h&&k(C)<=h&&k(R)<=h&&k(L)<=h&&k(D)<=h&&(_=!0)}return S.type&Nd.CLOSE_PATH&&k(w-A)<=h&&k(E-P)<=h&&(_=!0),_?[]:S}))},h.MATRIX=O,h.ROTATE=function(h,g,d){void 0===g&&(g=0),void 0===d&&(d=0),a(h,g,d);var x=Math.sin(h),b=Math.cos(h);return O(b,x,-x,b,g-g*b+d*x,d-g*x-d*b)},h.TRANSLATE=function(h,g){return void 0===g&&(g=0),a(h,g),O(1,0,0,1,h,g)},h.SCALE=function(h,g){return void 0===g&&(g=h),a(h,g),O(h,0,0,g,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,g,d){return Nd.ARC===h.type?function(h,g,d){var x,b,S,w;h.cX||o(h,g,d);for(var E=Math.min(h.phi1,h.phi2),A=Math.max(h.phi1,h.phi2)-E,P=Math.ceil(A/90),k=new Array(P),_=g,C=d,R=0;R<P;R++){var M=c(h.phi1,h.phi2,R/P),N=c(h.phi1,h.phi2,(R+1)/P),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],B=[Math.cos(N*kd),Math.sin(N*kd)],U=B[0],z=B[1],G=[U+D*Math.sin(N*kd),z-D*Math.cos(N*kd)],q=G[0],X=G[1];k[R]={relative:h.relative,type:Nd.CURVE_TO};var Y=function H(g,d){var x=i$1([g*h.rX,d*h.rY],h.xRot),b=x[0],S=x[1];return[h.cX+b,h.cY+S]};x=Y(V,$),k[R].x1=x[0],k[R].y1=x[1],b=Y(q,X),k[R].x2=b[0],k[R].y2=b[1],S=Y(U,z),k[R].x=S[0],k[R].y=S[1],h.relative&&(k[R].x1-=_,k[R].y1-=C,k[R].x2-=_,k[R].y2-=C,k[R].x-=_,k[R].y-=C),_=(w=[k[R].x,k[R].y])[0],C=w[1]}return k}(h,h.relative?0:g,h.relative?0:d):h}))},h.ANNOTATE_ARCS=function(){return u((function(h,g,d){return h.relative&&(g=0,d=0),Nd.ARC===h.type&&o(h,g,d),h}))},h.CLONE=function T(){return function(h){var g={};for(var d in h)g[d]=h[d];return g}},h.CALCULATE_BOUNDS=function(){var h=r(),g=n(),d=e(),x=u((function(b,S,w){var E=d(g(h(function t(h){var g={};for(var d in h)g[d]=h[d];return g}(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 A=0,P=p(S,E.x1,E.x2,E.x);A<P.length;A++)0<(q=P[A])&&1>q&&O(m(S,E.x1,E.x2,E.x,q));for(var k=0,_=p(w,E.y1,E.y2,E.y);k<_.length;k++)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 g=h[0],d=h[1],x=180*Math.atan2(d,g)/Math.PI;return x<j?x+360:x},B=0,U=s(N,-R,0).map($);B<U.length;B++)(q=U[B])>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}}(Td||(Td={}));var _d,Od=function(){function t(){}return t.prototype.round=function(h){return this.transform(Td.ROUND(h))},t.prototype.toAbs=function(){return this.transform(Td.TO_ABS())},t.prototype.toRel=function(){return this.transform(Td.TO_REL())},t.prototype.normalizeHVZ=function(h,g,d){return this.transform(Td.NORMALIZE_HVZ(h,g,d))},t.prototype.normalizeST=function(){return this.transform(Td.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Td.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Td.A_TO_C())},t.prototype.sanitize=function(h){return this.transform(Td.SANITIZE(h))},t.prototype.translate=function(h,g){return this.transform(Td.TRANSLATE(h,g))},t.prototype.scale=function(h,g){return this.transform(Td.SCALE(h,g))},t.prototype.rotate=function(h,g,d){return this.transform(Td.ROTATE(h,g,d))},t.prototype.matrix=function(h,g,d,x,b,S){return this.transform(Td.MATRIX(h,g,d,x,b,S))},t.prototype.skewX=function(h){return this.transform(Td.SKEW_X(h))},t.prototype.skewY=function(h){return this.transform(Td.SKEW_Y(h))},t.prototype.xSymmetry=function(h){return this.transform(Td.X_AXIS_SYMMETRY(h))},t.prototype.ySymmetry=function(h){return this.transform(Td.Y_AXIS_SYMMETRY(h))},t.prototype.annotateArcs=function(){return this.transform(Td.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 g=h.call(this)||this;return g.curNumber="",g.curCommandType=-1,g.curCommandRelative=!1,g.canParseCommandOrComma=!0,g.curNumberHasExp=!1,g.curNumberHasExpDigits=!1,g.curNumberHasDecimal=!1,g.curArgs=[],g}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,g){var d=this;void 0===g&&(g=[]);for(var x=function i(h){g.push(h),d.curArgs.length=0,d.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 A=Number(this.curNumber);if(isNaN(A))throw new SyntaxError("Invalid number ending at "+b);if(this.curCommandType===Nd.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>A)throw new SyntaxError('Expected positive number, got "'+A+'" 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(A),this.curArgs.length===Id[this.curCommandType]&&(Nd.HORIZ_LINE_TO===this.curCommandType?x({type:Nd.HORIZ_LINE_TO,relative:this.curCommandRelative,x:A}):Nd.VERT_LINE_TO===this.curCommandType?x({type:Nd.VERT_LINE_TO,relative:this.curCommandRelative,y:A}):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 g.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 g},e.prototype.transform=function(h){return Object.create(this,{parse:{value:function value(g,d){void 0===d&&(d=[]);for(var x=0,b=Object.getPrototypeOf(this).parse.call(this,g);x<b.length;x++){var S=b[x],w=h(S);Array.isArray(w)?d.push.apply(d,w):d.push(w)}return d}}})},e}(Od),Nd=function(h){function i(g){var d=h.call(this)||this;return d.commands="string"==typeof g?i.parse(g):g,d}return r(i,h),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var h=Td.CALCULATE_BOUNDS();return this.transform(h),h},i.prototype.transform=function(h){for(var g=[],d=0,x=this.commands;d<x.length;d++){var b=h(x[d]);Array.isArray(b)?g.push.apply(g,b):g.push(b)}return this.commands=g,this},i.encode=function(h){return function e(h){var g="";Array.isArray(h)||(h=[h]);for(var d=0;d<h.length;d++){var x=h[d];if(x.type===Nd.CLOSE_PATH)g+="z";else if(x.type===Nd.HORIZ_LINE_TO)g+=(x.relative?"h":"H")+x.x;else if(x.type===Nd.VERT_LINE_TO)g+=(x.relative?"v":"V")+x.y;else if(x.type===Nd.MOVE_TO)g+=(x.relative?"m":"M")+x.x+" "+x.y;else if(x.type===Nd.LINE_TO)g+=(x.relative?"l":"L")+x.x+" "+x.y;else if(x.type===Nd.CURVE_TO)g+=(x.relative?"c":"C")+x.x1+" "+x.y1+" "+x.x2+" "+x.y2+" "+x.x+" "+x.y;else if(x.type===Nd.SMOOTH_CURVE_TO)g+=(x.relative?"s":"S")+x.x2+" "+x.y2+" "+x.x+" "+x.y;else if(x.type===Nd.QUAD_TO)g+=(x.relative?"q":"Q")+x.x1+" "+x.y1+" "+x.x+" "+x.y;else if(x.type===Nd.SMOOTH_QUAD_TO)g+=(x.relative?"t":"T")+x.x+" "+x.y;else{if(x.type!==Nd.ARC)throw new Error('Unexpected command type "'+x.type+'" at index '+d+".");g+=(x.relative?"a":"A")+x.rX+" "+x.rY+" "+x.xRot+" "+ +x.lArcFlag+" "+ +x.sweepFlag+" "+x.x+" "+x.y}}return g}(h)},i.parse=function(h){var g=new Md,d=[];return g.parse(h,d),g.finish(d),d},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=((_d={})[Nd.MOVE_TO]=2,_d[Nd.LINE_TO]=2,_d[Nd.HORIZ_LINE_TO]=1,_d[Nd.VERT_LINE_TO]=1,_d[Nd.CLOSE_PATH]=0,_d[Nd.QUAD_TO]=4,_d[Nd.SMOOTH_QUAD_TO]=2,_d[Nd.CURVE_TO]=6,_d[Nd.SMOOTH_CURVE_TO]=4,_d[Nd.ARC]=7,_d),Ld=Zu.f;ys({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(h,g){var d=Ld(ss(h),g);return!(d&&!d.configurable)&&delete h[g]}});var Dd=as.Reflect.deleteProperty,jd=$s("Array").values,Vd=Array.prototype,$d={DOMTokenList:!0,NodeList:!0},Fd=function values_1(h){var g=h.values;return h===Vd||h instanceof Array&&g===Vd.values||$d.hasOwnProperty(nf(h))?jd:g},Bd=fc.trim,Ud=ku.parseInt,zd=/^[+-]?0[Xx]/,Gd=8!==Ud(oc+"08")||22!==Ud(oc+"0x16")?function parseInt(h,g){var d=Bd(String(h));return Ud(d,g>>>0||(zd.test(d)?16:10))}:Ud;ys({global:!0,forced:parseInt!=Gd},{parseInt:Gd});var Hd=as.parseInt,qd=Xc,Xd=If,Yd=Nh,Wd=rp,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=uu.onFreeze,Jd=Object.preventExtensions,tm=fails((function(){Jd(1)}));_export({target:"Object",stat:!0,forced:tm,sham:!ou},{preventExtensions:function preventExtensions(h){return Jd&&isObject(h)?Jd(Kd(h)):h}});var em=!Cu((function(){return Object.isExtensible(Object.preventExtensions({}))})),rm=createCommonjsModule((function(h){var g=ls.f,d=Ps("meta"),x=0,b=Object.isExtensible||function(){return!0},S=function setMetadata(h){g(h,d,{value:{objectID:"O"+ ++x,weakData:{}}})},w=h.exports={REQUIRED:!1,fastKey:function fastKey(h,g){if(!Uu(h))return"symbol"==_typeof(h)?h:("string"==typeof h?"S":"P")+h;if(!Hu(h,d)){if(!b(h))return"F";if(!g)return"E";S(h)}return h[d].objectID},getWeakData:function getWeakData(h,g){if(!Hu(h,d)){if(!b(h))return!0;if(!g)return!1;S(h)}return h[d].weakData},onFreeze:function onFreeze(h){return em&&w.REQUIRED&&b(h)&&!Hu(h,d)&&S(h),h}};pl[d]=!0})),nm=ls.f,im=kc.forEach,am=El.set,om=El.getterFor,um=ls.f,sm=rm.fastKey,cm=El.set,lm=El.getterFor,fm=(function collection(h,g,d){var x,b=-1!==h.indexOf("Map"),S=-1!==h.indexOf("Weak"),w=b?"set":"add",E=ku[h],A=E&&E.prototype,P={};if(Ru&&"function"==typeof E&&(S||A.forEach&&!Cu((function(){(new E).entries().next()})))){x=g((function(g,d){am(Gp(g,x,h),{type:h,collection:new E}),null!=d&&Hp(d,g[w],g,b)}));var k=om(h);im(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(h){var g="add"==h||"set"==h;!(h in A)||S&&"clear"==h||fs(x.prototype,h,(function(d,x){var b=k(this).collection;if(!g&&S&&!Uu(d))return"get"==h&&void 0;var w=b[h](0===d?0:d,x);return g?this:w}))})),S||nm(x.prototype,"size",{configurable:!0,get:function get(){return k(this).collection.size}})}else x=d.getConstructor(g,h,b,w),rm.REQUIRED=!0;sf(x,h,!1,!0),P[h]=x,ys({global:!0,forced:!0},P),S||d.setStrong(x,h,b)}("Map",(function(h){return function Map(){return h(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function getConstructor(h,g,d,x){var b=h((function(h,S){Gp(h,b,g),cm(h,{type:g,index:Kl(null),first:void 0,last:void 0,size:0}),Ru||(h.size=0),null!=S&&Hp(S,h[x],h,d)})),S=lm(g),w=function define(h,g,d){var x,b,w=S(h),A=E(h,g);return A?A.value=d:(w.last=A={index:b=sm(g,!0),key:g,value:d,previous:x=w.last,next:void 0,removed:!1},w.first||(w.first=A),x&&(x.next=A),Ru?w.size++:h.size++,"F"!==b&&(w.index[b]=A)),h},E=function getEntry(h,g){var d,x=S(h),b=sm(g);if("F"!==b)return x.index[b];for(d=x.first;d;d=d.next)if(d.key==g)return d};return Bp(b.prototype,{clear:function clear(){for(var h=S(this),g=h.index,d=h.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete g[d.index],d=d.next;h.first=h.last=void 0,Ru?h.size=0:this.size=0},delete:function _delete(h){var g=this,d=S(g),x=E(g,h);if(x){var b=x.next,w=x.previous;delete d.index[x.index],x.removed=!0,w&&(w.next=b),b&&(b.previous=w),d.first==x&&(d.first=b),d.last==x&&(d.last=w),Ru?d.size--:g.size--}return!!x},forEach:function forEach(h){for(var g,d=S(this),x=us(h,arguments.length>1?arguments[1]:void 0,3);g=g?g.next:d.first;)for(x(g.value,g.key,this);g&&g.removed;)g=g.previous},has:function has(h){return!!E(this,h)}}),Bp(b.prototype,d?{get:function get(h){var g=E(this,h);return g&&g.value},set:function set(h,g){return w(this,0===h?0:h,g)}}:{add:function add(h){return w(this,h=0===h?0:h,h)}}),Ru&&um(b.prototype,"size",{get:function get(){return S(this).size}}),b},setStrong:function setStrong(h,g,d){var x=g+" Iterator",b=lm(g),S=lm(x);bf(h,g,(function(h,g){cm(this,{type:x,target:h,state:b(h),kind:g,last:void 0})}),(function(){for(var h=S(this),g=h.kind,d=h.last;d&&d.removed;)d=d.previous;return h.target&&(h.last=d=d?d.next:h.state.first)?"keys"==g?{value:d.key,done:!1}:"values"==g?{value:d.value,done:!1}:{value:[d.key,d.value],done:!1}:(h.target=void 0,{value:void 0,done:!0})}),d?"entries":"values",!d,!0),zp(g)}}),as.Map),hm=Oc("Reflect","apply"),pm=Function.apply,ym=!Cu((function(){hm((function(){}))}));ys({target:"Reflect",stat:!0,forced:ym},{apply:function apply(h,g,d){return os(h),ss(d),hm?hm(h,g,d):pm.call(h,g,d)}});var vm=as.Reflect.apply;ys({target:"Reflect",stat:!0,sham:!Al},{getPrototypeOf:function getPrototypeOf(h){return kl(ss(h))}});var gm=as.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 dm=[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],mm=[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,g,d,x,b,S){if(!(isNaN(S)||S<1)){S|=0;var w=function getImageDataFromCanvas(h,g,d,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(g,d,x,b)}catch(h){throw new Error("unable to access image data: "+h)}}(h,g,d,x,b);w=function processImageDataRGBA(h,g,d,x,b,S){for(var w,E=h.data,A=2*S+1,P=x-1,k=b-1,_=S+1,C=_*(_+1)/2,R=new xm,M=R,N=1;N<A;N++)M=M.next=new xm,N===_&&(w=M);M.next=R;for(var L=null,D=null,j=0,V=0,$=dm[S],B=mm[S],U=0;U<b;U++){M=R;for(var z=E[V],G=E[V+1],q=E[V+2],X=E[V+3],Y=0;Y<_;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=_*z,tt=_*G,et=_*q,rt=_*X,nt=C*z,it=C*G,at=C*q,ot=C*X,ut=1;ut<_;ut++){var st=V+((P<ut?P:ut)<<2),ct=E[st],lt=E[st+1],ft=E[st+2],ht=E[st+3],pt=_-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*$>>B;if(E[V+3]=vt,0!==vt){var gt=255/vt;E[V]=(nt*$>>B)*gt,E[V+1]=(it*$>>B)*gt,E[V+2]=(at*$>>B)*gt}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 dt=yt+S+1;dt=j+(dt<P?dt:P)<<2,nt+=W+=L.r=E[dt],it+=Q+=L.g=E[dt+1],at+=Z+=L.b=E[dt+2],ot+=K+=L.a=E[dt+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 At=E[V=Et<<2],Pt=E[V+1],Tt=E[V+2],kt=E[V+3],_t=_*At,Ot=_*Pt,Ct=_*Tt,Rt=_*kt,Mt=C*At,Nt=C*Pt,It=C*Tt,Lt=C*kt;M=R;for(var Dt=0;Dt<_;Dt++)M.r=At,M.g=Pt,M.b=Tt,M.a=kt,M=M.next;for(var jt=x,Vt=0,$t=0,Ft=0,Bt=0,Ut=1;Ut<=S;Ut++){V=jt+Et<<2;var zt=_-Ut;Mt+=(M.r=At=E[V])*zt,Nt+=(M.g=Pt=E[V+1])*zt,It+=(M.b=Tt=E[V+2])*zt,Lt+=(M.a=kt=E[V+3])*zt,Bt+=At,Vt+=Pt,$t+=Tt,Ft+=kt,M=M.next,Ut<k&&(jt+=x)}V=Et,L=R,D=w;for(var Gt=0;Gt<b;Gt++){var Ht=V<<2;E[Ht+3]=kt=Lt*$>>B,kt>0?(kt=255/kt,E[Ht]=(Mt*$>>B)*kt,E[Ht+1]=(Nt*$>>B)*kt,E[Ht+2]=(It*$>>B)*kt):E[Ht]=E[Ht+1]=E[Ht+2]=0,Mt-=_t,Nt-=Ot,It-=Ct,Lt-=Rt,_t-=L.r,Ot-=L.g,Ct-=L.b,Rt-=L.a,Ht=Et+((Ht=Gt+_)<k?Ht:k)*x<<2,Mt+=Bt+=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,_t+=At=D.r,Ot+=Pt=D.g,Ct+=Tt=D.b,Rt+=kt=D.a,Bt-=At,Vt-=Pt,$t-=Tt,Ft-=kt,D=D.next,V+=x}}return h}(w,0,0,x,b,S),h.getContext("2d").putImageData(w,g,d)}}var xm=function BlurStack(){!function _classCallCheck$1(h,g){if(!(h instanceof g))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 g=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return qc(g).call(g,vc)}var bm=/^[A-Z-]+$/;function normalizeAttributeName(h){return bm.test(h)?h.toLowerCase():h}function parseExternalUrl(h){var g=h.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return g[2]||g[3]||g[4]}var Sm=/(\[[^\]]+\])/g,wm=/(#[^\s\+>~\.\[:]+)/g,Em=/(\.[^\s\+>~\.\[:]+)/g,Am=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,Pm=/(:[\w-]+\([^\)]*\))/gi,Tm=/(:[^\s\+>~\.\[:]+)/g,km=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(h,g){var d=h.match(g);return d?[h.replace(g," "),d.length]:[h,0]}var _m=1e-8;function vectorMagnitude(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function vectorsRatio(h,g){return(h[0]*g[0]+h[1]*g[1])/(vectorMagnitude(h)*vectorMagnitude(g))}function vectorsAngle(h,g){return(h[0]*g[1]<h[1]*g[0]?-1:1)*Math.acos(vectorsRatio(h,g))}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 Om=function(){function Property(h,g,d){xv(this,Property),this.document=h,this.name=g,this.value=d,this.isNormalizedColor=!1}return bv(Property,[{key:"split",value:function split(){var h,g,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",x=this.document,b=this.name;return qc(h=hg(g=compressSpaces(this.getString())).call(g).split(d)).call(h,(function(h){return new Property(x,b,h)}))}},{key:"hasValue",value:function hasValue(h){var g=this.value;return null!==g&&""!==g&&(h||0!==g)&&void 0!==g}},{key:"isString",value:function isString(h){var g=this.value,d="string"==typeof g;return d&&h?h.test(g):d}},{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:vc(h);var g=this.value,d=vc(g);return this.isString(/%$/)&&(d/=100),d}},{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 g=this.getString(h);return this.isNormalizedColor||(this.isNormalizedColor=!0,g=function normalizeColor(h){if(!Us(h).call(h,"rgb"))return h;var g=3;return h.replace(/\d+(\.\d+)?/g,(function(h,d){return g--&&d?String(Math.round(vc(h))):h}))}(g),this.value=g),g}},{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 g=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var d="boolean"==typeof h?[void 0,h]:[h],x=up(d,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 g&&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(),g=h.match(/#([^\)'"]+)/);return g&&(g=g[1]),g||(g=h),this.document.definitions[g]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(h,g){var d=this.getDefinition();if(!d)return null;if("function"==typeof d.createGradient)return d.createGradient(this.document.ctx,h,g);if("function"==typeof d.createPattern){if(d.getHrefAttribute().hasValue()){var x=d.getAttribute("patternTransform");d=d.getHrefAttribute().getDefinition(),x.hasValue()&&d.getAttribute("patternTransform",!0).setValue(x.value)}return d.createPattern(this.document.ctx,h,g)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(h){for(var g=this.getColor(),d=g.length,x=0,b=0;b<d&&(","===g[b]&&x++,3!==x);b++);if(h.hasValue()&&this.isString()&&3!==x){var S=new dg(g);S.ok&&(S.alpha=h.getNumber(),g=S.toRGBA())}return new Property(this.document,this.name,g)}}],[{key:"empty",value:function empty(h){return new Property(h,"EMPTY","")}}]),Property}();Om.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 Cm=function(){function ViewPort(){xv(this,ViewPort),this.viewPorts=[]}return bv(ViewPort,[{key:"clear",value:function clear(){this.viewPorts=[]}},{key:"setCurrent",value:function setCurrent(h,g){this.viewPorts.push({width:h,height:g})}},{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}(),Rm=function(){function Point(h,g){xv(this,Point),this.x=h,this.y=g}return bv(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 g=this.x,d=this.y,x=g*h[0]+d*h[2]+h[4],b=g*h[1]+d*h[3]+h[5];this.x=x,this.y=b}}],[{key:"parse",value:function parse(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,d=toNumbers(h),x=up(d,2),b=x[0],S=void 0===b?g:b,w=x[1],E=void 0===w?g:w;return new Point(S,E)}},{key:"parseScale",value:function parseScale(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,d=toNumbers(h),x=up(d,2),b=x[0],S=void 0===b?g:b,w=x[1],E=void 0===w?S:w;return new Point(S,E)}},{key:"parsePath",value:function parsePath(h){for(var g=toNumbers(h),d=g.length,x=[],b=0;b<d;b+=2)x.push(new Point(g[b],g[b+1]));return x}}]),Point}(),Mm=function(){function Mouse(h){var g,d;xv(this,Mouse),this.screen=h,this.working=!1,this.events=[],this.eventElements=[],this.onClick=Zv(g=this.onClick).call(g,this),this.onMouseMove=Zv(d=this.onMouseMove).call(d,this)}return bv(Mouse,[{key:"isWorking",value:function isWorking(){return this.working}},{key:"start",value:function start(){if(!this.working){var h=this.screen,g=this.onClick,d=this.onMouseMove,x=h.ctx.canvas;x.onclick=g,x.onmousemove=d,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,g=this.events,d=this.eventElements,x=h.ctx.canvas.style;x&&(x.cursor=""),Sp(g).call(g,(function(h,g){for(var x=h.run,b=d[g];b;)x(b),b=b.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(h,g){if(this.working&&g){var d=this.events,x=this.eventElements;Sp(d).call(d,(function(d,b){var S=d.x,w=d.y;!x[b]&&g.isPointInPath&&g.isPointInPath(S,w)&&(x[b]=h)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(h,g){if(this.working&&g){var d=this.events,x=this.eventElements;Sp(d).call(d,(function(d,b){var S=d.x,w=d.y;!x[b]&&g.isPointInBox(S,w)&&(x[b]=h)}))}}},{key:"mapXY",value:function mapXY(h,g){for(var d=this.screen,x=d.window,b=d.ctx,S=new Rm(h,g),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 g=this.mapXY((h||event).clientX,(h||event).clientY),d=g.x,x=g.y;this.events.push({type:"onclick",x:d,y:x,run:function run(h){h.onClick&&h.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(h){var g=this.mapXY((h||event).clientX,(h||event).clientY),d=g.x,x=g.y;this.events.push({type:"onmousemove",x:d,y:x,run:function run(h){h.onMouseMove&&h.onMouseMove()}})}}]),Mouse}(),Nm="undefined"!=typeof window?window:null,Im="undefined"!=typeof fetch?Zv(fetch).call(fetch,void 0):null,Lm=function(){function Screen(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=g.fetch,x=void 0===d?Im:d,b=g.window,S=void 0===b?Nm:b;xv(this,Screen),this.ctx=h,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Cm,this.mouse=new Mm(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=S,this.fetch=x}return bv(Screen,[{key:"wait",value:function wait(h){this.waits.push(h)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:Gv.resolve()}},{key:"isReady",value:function isReady(){var h;if(this.isReadyLock)return!0;var g=zv(h=this.waits).call(h,(function(h){return h()}));return g&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=g,g}},{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 g=h.document,d=h.ctx,x=h.aspectRatio,b=h.width,S=h.desiredWidth,w=h.height,E=h.desiredHeight,A=h.minX,P=void 0===A?0:A,k=h.minY,_=void 0===k?0:k,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(" "),B=up($,2),U=B[0]||"xMidYMid",z=B[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 Om(g,"refX",C),K=new Om(g,"refY",R),J=Z.hasValue()&&K.hasValue();if(J&&d.translate(-X*Z.getPixels("x"),-X*K.getPixels("y")),N){var tt=X*D,et=X*V;d.beginPath(),d.moveTo(tt,et),d.lineTo(b,et),d.lineTo(b,w),d.lineTo(tt,w),d.closePath(),d.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(U)&&(rt||nt)&&d.translate(b/2-W/2,0),/YMid$/.test(U)&&(it||at)&&d.translate(0,w/2-Q/2),/^xMax/.test(U)&&(rt||nt)&&d.translate(b-W,0),/YMax$/.test(U)&&(it||at)&&d.translate(0,w-Q)}switch(!0){case"none"===U:d.scale(G,q);break;case"meet"===z:d.scale(X,X);break;case"slice"===z:d.scale(Y,Y)}d.translate(-P,-_)}},{key:"start",value:function start(h){var g=this,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},x=d.enableRedraw,b=void 0!==x&&x,S=d.ignoreMouse,w=void 0!==S&&S,E=d.ignoreAnimation,A=void 0!==E&&E,P=d.ignoreDimensions,k=void 0!==P&&P,_=d.ignoreClear,C=void 0!==_&&_,R=d.forceRedraw,M=d.scaleWidth,N=d.scaleHeight,L=d.offsetX,D=d.offsetY,j=this.FRAMERATE,V=this.mouse,$=1e3/j;if(this.frameDuration=$,this.readyPromise=new Gv((function(h){g.resolveReady=h})),this.isReady()&&this.render(h,k,C,M,N,L,D),b){var B=Iv(),U=B,z=0,G=function tick(){B=Iv(),(z=B-U)>=$&&(U=B-z%$,g.shouldUpdate(A,R)&&(g.render(h,k,C,M,N,L,D),V.runEvents())),g.intervalId=sg(tick)};w||V.start(),this.intervalId=sg(G)}}},{key:"stop",value:function stop(){this.intervalId&&(sg.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(h,g){if(!h){var d,x=this.frameDuration,shouldUpdate=Nv(d=this.animations).call(d,(function(h,g){return g.update(x)||h}),!1);if(shouldUpdate)return!0}return!("function"!=typeof g||!g())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(h,g,d,x,b,S,w){var E=this.CLIENT_WIDTH,A=this.CLIENT_HEIGHT,P=this.viewPort,k=this.ctx,_=this.isFirstRender,C=k.canvas;P.clear(),C.width&&C.height?P.setCurrent(C.width,C.height):P.setCurrent(E,A);var R=h.getStyle("width"),M=h.getStyle("height");!g&&(_||"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(g&&R.hasValue()&&M.hasValue()&&(N=R.getPixels("x"),L=M.getPixels("y")),P.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,B=0;if("number"==typeof x){var U=h.getStyle("width");U.hasValue()?$=U.getPixels("x")/x:isNaN(V[2])||($=V[2]/x)}if("number"==typeof b){var z=h.getStyle("height");z.hasValue()?B=z.getPixels("y")/b:isNaN(V[3])||(B=V[3]/b)}$||($=B),B||(B=$),h.getAttribute("width",!0).setValue(x),h.getAttribute("height",!0).setValue(b);var G=h.getStyle("transform",!0,!0);G.setValue(Ev(D=Ev(j="".concat(G.getString()," scale(")).call(j,1/$,", ")).call(D,1/B,")"))}d||k.clearRect(0,0,N,L),h.render(k),_&&(this.isFirstRender=!1)}}]),Screen}();Lm.defaultWindow=Nm,Lm.defaultFetch=Im;var Dm=Lm.defaultFetch,jm="undefined"!=typeof DOMParser?DOMParser:null,Vm=function(){function Parser(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=h.fetch,d=void 0===g?Dm:g,x=h.DOMParser,b=void 0===x?jm:x;xv(this,Parser),this.fetch=d,this.DOMParser=b}var h,g;return bv(Parser,[{key:"parse",value:(g=gv(Vp.mark((function _callee(h){return Vp.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:if(!/^</.test(h)){g.next=2;break}return g.abrupt("return",this.parseFromString(h));case 2:return g.abrupt("return",this.load(h));case 3:case"end":return g.stop()}}),_callee,this)}))),function parse(h){return g.apply(this,arguments)})},{key:"parseFromString",value:function parseFromString(h){var g=new this.DOMParser;try{return this.checkDocument(g.parseFromString(h,"image/svg+xml"))}catch(d){return this.checkDocument(g.parseFromString(h,"text/xml"))}}},{key:"checkDocument",value:function checkDocument(h){var g=h.getElementsByTagName("parsererror")[0];if(g)throw new Error(g.textContent);return h}},{key:"load",value:(h=gv(Vp.mark((function _callee2(h){var g,d;return Vp.wrap((function _callee2$(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,this.fetch(h);case 2:return g=x.sent,x.next=5,g.text();case 5:return d=x.sent,x.abrupt("return",this.parseFromString(d));case 7:case"end":return x.stop()}}),_callee2,this)}))),function load(g){return h.apply(this,arguments)})}]),Parser}(),$m=function(){function Translate(h,g){xv(this,Translate),this.type="translate",this.point=null,this.point=Rm.parse(g)}return bv(Translate,[{key:"apply",value:function apply(h){var g=this.point,d=g.x,x=g.y;h.translate(d||0,x||0)}},{key:"unapply",value:function unapply(h){var g=this.point,d=g.x,x=g.y;h.translate(-1*d||0,-1*x||0)}},{key:"applyToPoint",value:function applyToPoint(h){var g=this.point,d=g.x,x=g.y;h.applyTransform([1,0,0,1,d||0,x||0])}}]),Translate}(),Fm=function(){function Rotate(h,g,d){xv(this,Rotate),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var x=toNumbers(g);this.angle=new Om(h,"angle",x[0]),this.originX=d[0],this.originY=d[1],this.cx=x[1]||0,this.cy=x[2]||0}return bv(Rotate,[{key:"apply",value:function apply(h){var g=this.cx,d=this.cy,x=this.originX,b=this.originY,S=this.angle,w=g+x.getPixels("x"),E=d+b.getPixels("y");h.translate(w,E),h.rotate(S.getRadians()),h.translate(-w,-E)}},{key:"unapply",value:function unapply(h){var g=this.cx,d=this.cy,x=this.angle;h.translate(g,d),h.rotate(-1*x.getRadians()),h.translate(-g,-d)}},{key:"applyToPoint",value:function applyToPoint(h){var g=this.cx,d=this.cy,x=this.angle.getRadians();h.applyTransform([1,0,0,1,g||0,d||0]),h.applyTransform([Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0]),h.applyTransform([1,0,0,1,-g||0,-d||0])}}]),Rotate}(),Bm=function(){function Scale(h,g){xv(this,Scale),this.type="scale",this.scale=null;var d=Rm.parseScale(g);0!==d.x&&0!==d.y||(d.x=_m,d.y=_m),this.scale=d}return bv(Scale,[{key:"apply",value:function apply(h){var g=this.scale,d=g.x,x=g.y;h.scale(d,x||d)}},{key:"unapply",value:function unapply(h){var g=this.scale,d=g.x,x=g.y;h.scale(1/d,1/x||d)}},{key:"applyToPoint",value:function applyToPoint(h){var g=this.scale,d=g.x,x=g.y;h.applyTransform([d||0,0,0,x||0,0,0])}}]),Scale}(),Um=function(){function Matrix(h,g){xv(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(g)}return bv(Matrix,[{key:"apply",value:function apply(h){var g=this.matrix;h.transform(g[0],g[1],g[2],g[3],g[4],g[5])}},{key:"unapply",value:function unapply(h){var g=this.matrix,d=g[0],x=g[2],b=g[4],S=g[1],w=g[3],E=g[5],A=1/(d*(1*w-0*E)-x*(1*S-0*E)+b*(0*S-0*w));h.transform(A*(1*w-0*E),A*(0*E-1*S),A*(0*b-1*x),A*(1*d-0*b),A*(x*E-b*w),A*(b*S-d*E))}},{key:"applyToPoint",value:function applyToPoint(h){h.applyTransform(this.matrix)}}]),Matrix}();function _createSuper(h){var g=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var zm=function(h){kg(Skew,h);var g=_createSuper(Skew);function Skew(h,d){var x;return xv(this,Skew),(x=g.call(this,h,d)).type="skew",x.angle=null,x.angle=new Om(h,"angle",d),x}return Skew}(Um);function _createSuper$1(h){var g=function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Gm=function(h){kg(SkewX,h);var g=_createSuper$1(SkewX);function SkewX(h,d){var x;return xv(this,SkewX),(x=g.call(this,h,d)).type="skewX",x.matrix=[1,0,Math.tan(x.angle.getRadians()),1,0,0],x}return SkewX}(zm);function _createSuper$2(h){var g=function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Hm=function(h){kg(SkewY,h);var g=_createSuper$2(SkewY);function SkewY(h,d){var x;return xv(this,SkewY),(x=g.call(this,h,d)).type="skewY",x.matrix=[1,Math.tan(x.angle.getRadians()),0,1,0,0],x}return SkewY}(zm);var qm=function(){function Transform(h,g,d){var x=this;xv(this,Transform),this.document=h,this.transforms=[];var b=function parseTransforms(h){var g;return hg(g=compressSpaces(h)).call(g).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(g);Sp(b).call(b,(function(h){if("none"!==h){var g=function parseTransform(h){var g=h.split("("),d=up(g,2),x=d[0],b=d[1];return[hg(x).call(x),hg(b).call(b).replace(")","")]}(h),b=up(g,2),S=b[0],w=b[1],E=Transform.transformTypes[S];void 0!==E&&x.transforms.push(new E(x.document,w,d))}}))}return bv(Transform,[{key:"apply",value:function apply(h){for(var g=this.transforms,d=g.length,x=0;x<d;x++)g[x].apply(h)}},{key:"unapply",value:function unapply(h){for(var g=this.transforms,d=g.length-1;d>=0;d--)g[d].unapply(h)}},{key:"applyToPoint",value:function applyToPoint(h){for(var g=this.transforms,d=g.length,x=0;x<d;x++)g[x].applyToPoint(h)}}],[{key:"fromElement",value:function fromElement(h,g){var d=g.getStyle("transform",!1,!0),x=g.getStyle("transform-origin",!1,!0).split(),b=up(x,2),S=b[0],w=b[1],E=[S,void 0===w?S:w];return d.hasValue()?new Transform(h,d.getString(),E):null}}]),Transform}();qm.transformTypes={translate:$m,rotate:Fm,scale:Bm,matrix:Um,skewX:Gm,skewY:Hm};var Xm=function(){function Element(h,g){var d,x,b=this,S=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(xv(this,Element),this.document=h,this.node=g,this.captureTextNodes=S,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],g&&1===g.nodeType){if(Sp(d=nd(g.attributes)).call(d,(function(g){var d=normalizeAttributeName(g.nodeName);b.attributes[d]=new Om(h,d,g.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var w,E=qc(w=this.getAttribute("style").getString().split(";")).call(w,(function(h){return hg(h).call(h)}));Sp(E).call(E,(function(g){var d;if(g){var x=qc(d=g.split(":")).call(d,(function(h){return hg(h).call(h)})),S=up(x,2),w=S[0],E=S[1];b.styles[w]=new Om(h,w,E)}}))}var A=h.definitions,P=this.getAttribute("id");P.hasValue()&&(A[P.getValue()]||(A[P.getValue()]=this)),Sp(x=nd(g.childNodes)).call(x,(function(g){if(1===g.nodeType)b.addChild(g);else if(S&&(3===g.nodeType||4===g.nodeType)){var d=h.createTextNode(g);d.getText().length>0&&b.addChild(d)}}))}}return bv(Element,[{key:"getAttribute",value:function getAttribute(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=this.attributes[h];if(!d&&g){var x=new Om(this.document,h,"");return this.attributes[h]=x,x}return d||Om.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 Om.empty(this.document)}},{key:"getStyle",value:function getStyle(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=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(!d){var S=this.parent;if(S){var w=S.getStyle(h);if(w&&w.hasValue())return w}}if(g){var E=new Om(this.document,h,"");return this.styles[h]=E,E}return x||Om.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 g=this.getStyle("mask").getDefinition();g&&(this.applyEffects(h),g.apply(h,this))}else if("none"!==this.getStyle("filter").getValue("none")){var d=this.getStyle("filter").getDefinition();d&&(this.applyEffects(h),d.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 g=qm.fromElement(this.document,this);g&&g.apply(h);var d=this.getStyle("clip-path",!1,!0);if(d.hasValue()){var x=d.getDefinition();x&&x.apply(h)}}},{key:"clearContext",value:function clearContext(h){}},{key:"renderChildren",value:function renderChildren(h){var g;Sp(g=this.children).call(g,(function(g){g.render(h)}))}},{key:"addChild",value:function addChild(h){var g,d=h instanceof Element?h:this.document.createElement(h);d.parent=this,rd(g=Element.ignoreChildTypes).call(g,d.type)||this.children.push(d)}},{key:"matchesSelector",value:function matchesSelector(h){var g,d=this.node;if("function"==typeof d.matches)return d.matches(h);var x=d.getAttribute("class");return!(!x||""===x)&&Xg(g=x.split(" ")).call(g,(function(g){if(".".concat(g)===h)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var h=this.document,g=h.styles,d=h.stylesSpecificity;for(var x in g)if("@"!==x[0]&&this.matchesSelector(x)){var b=g[x],S=d[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,g){return Nv(g).call(g,(function(g,d){var x,b=h.getStyle(d);if(!b.hasValue())return g;var S=b.getString();return b.setValue(""),Ev(x=[]).call(x,Vg(g),[[d,S]])}),[])}},{key:"restoreStyles",value:function restoreStyles(h,g){Sp(g).call(g,(function(g){var d=up(g,2),x=d[0],b=d[1];h.getStyle(x,!0).setValue(b)}))}}]),Element}();function _createSuper$3(h){var g=function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}Xm.ignoreChildTypes=["title"];var Ym=function(h){kg(UnknownElement,h);var g=_createSuper$3(UnknownElement);function UnknownElement(h,d,x){return xv(this,UnknownElement),g.call(this,h,d,x)}return UnknownElement}(Xm);function wrapFontFamily(h){var g=hg(h).call(h);return/^('|")/.test(g)?g:'"'.concat(g,'"')}function prepareFontStyle(h){if(!h)return"";var g=hg(h).call(h).toLowerCase();switch(g){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return g;default:return/^oblique\s+(-|)\d+deg$/.test(g)?g:""}}function prepareFontWeight(h){if(!h)return"";var g=hg(h).call(h).toLowerCase();switch(g){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return g;default:return/^[\d.]+$/.test(g)?g:""}}var Wm=function(){function Font(h,g,d,x,b,S){xv(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=d||w.fontWeight,this.fontVariant=g||w.fontVariant}return bv(Font,[{key:"toString",value:function toString(){var h,g,d;return hg(h=[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(g=this.fontFamily,void 0===$o?g:qc(d=hg(g).call(g).split(",")).call(d,wrapFontFamily).join(","))].join(" ")).call(h)}}],[{key:"parse",value:function parse(){var h,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",d=arguments.length>1?arguments[1]:void 0,x="",b="",S="",w="",E="",A=hg(h=compressSpaces(g)).call(h).split(" "),P={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return Sp(A).call(A,(function(h){var g,d,A;switch(!0){case!P.fontStyle&&rd(g=Font.styles).call(g,h):"inherit"!==h&&(x=h),P.fontStyle=!0;break;case!P.fontVariant&&rd(d=Font.variants).call(d,h):"inherit"!==h&&(b=h),P.fontStyle=!0,P.fontVariant=!0;break;case!P.fontWeight&&rd(A=Font.weights).call(A,h):"inherit"!==h&&(S=h),P.fontStyle=!0,P.fontVariant=!0,P.fontWeight=!0;break;case!P.fontSize:if("inherit"!==h){var k=h.split("/"),_=up(k,1);w=_[0]}P.fontStyle=!0,P.fontVariant=!0,P.fontWeight=!0,P.fontSize=!0;break;default:"inherit"!==h&&(E+=h)}})),new Font(x,b,S,w,E,d)}}]),Font}();Wm.styles="normal|italic|oblique|inherit",Wm.variants="normal|small-caps|inherit",Wm.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Qm=function(){function BoundingBox(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,x=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;xv(this,BoundingBox),this.x1=h,this.y1=g,this.x2=d,this.y2=x,this.addPoint(h,g),this.addPoint(d,x)}return bv(BoundingBox,[{key:"addPoint",value:function addPoint(h,g){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!==g&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=g,this.y2=g),g<this.y1&&(this.y1=g),g>this.y2&&(this.y2=g))}},{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 g=h.x1,d=h.y1,x=h.x2,b=h.y2;this.addPoint(g,d),this.addPoint(x,b)}}},{key:"sumCubic",value:function sumCubic(h,g,d,x,b){return Math.pow(1-h,3)*g+3*Math.pow(1-h,2)*h*d+3*(1-h)*Math.pow(h,2)*x+Math.pow(h,3)*b}},{key:"bezierCurveAdd",value:function bezierCurveAdd(h,g,d,x,b){var S=6*g-12*d+6*x,w=-3*g+9*d-9*x+3*b,E=3*d-3*g;if(0!==w){var A=Math.pow(S,2)-4*E*w;if(!(A<0)){var P=(-S+Math.sqrt(A))/(2*w);0<P&&P<1&&(h?this.addX(this.sumCubic(P,g,d,x,b)):this.addY(this.sumCubic(P,g,d,x,b)));var k=(-S-Math.sqrt(A))/(2*w);0<k&&k<1&&(h?this.addX(this.sumCubic(k,g,d,x,b)):this.addY(this.sumCubic(k,g,d,x,b)))}}else{if(0===S)return;var _=-E/S;0<_&&_<1&&(h?this.addX(this.sumCubic(_,g,d,x,b)):this.addY(this.sumCubic(_,g,d,x,b)))}}},{key:"addBezierCurve",value:function addBezierCurve(h,g,d,x,b,S,w,E){this.addPoint(h,g),this.addPoint(w,E),this.bezierCurveAdd(!0,h,d,b,w),this.bezierCurveAdd(!1,g,x,S,E)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(h,g,d,x,b,S){var w=h+2/3*(d-h),E=g+2/3*(x-g),A=w+1/3*(b-h),P=E+1/3*(S-g);this.addBezierCurve(h,g,w,A,E,P,b,S)}},{key:"isPointInBox",value:function isPointInBox(h,g){var d=this.x1,x=this.y1,b=this.x2,S=this.y2;return d<=h&&h<=b&&x<=g&&g<=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 g=function _isNativeReflectConstruct$4(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Zm=function(h){kg(RenderedElement,h);var g=_createSuper$4(RenderedElement);function RenderedElement(){var h;return xv(this,RenderedElement),(h=g.apply(this,arguments)).modifiedEmSizeStack=!1,h}return bv(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var h=1,g=this;g;){var d=g.getStyle("opacity",!1,!0);d.hasValue(!0)&&(h*=d.getNumber()),g=g.parent}return h}},{key:"setContext",value:function setContext(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!g){var d=this.getStyle("fill"),x=this.getStyle("fill-opacity"),b=this.getStyle("stroke"),S=this.getStyle("stroke-opacity");if(d.isUrlDefinition()){var w=d.getFillStyleDefinition(this,x);w&&(h.fillStyle=w)}else if(d.hasValue()){"currentColor"===d.getString()&&d.setValue(this.getStyle("color").getColor());var E=d.getColor();"inherit"!==E&&(h.fillStyle="none"===E?"rgba(0,0,0,0)":E)}if(x.hasValue()){var A=new Om(this.document,"fill",h.fillStyle).addOpacity(x).getColor();h.fillStyle=A}if(b.isUrlDefinition()){var P=b.getFillStyleDefinition(this,S);P&&(h.strokeStyle=P)}else if(b.hasValue()){"currentColor"===b.getString()&&b.setValue(this.getStyle("color").getColor());var k=b.getString();"inherit"!==k&&(h.strokeStyle="none"===k?"rgba(0,0,0,0)":k)}if(S.hasValue()){var _=new Om(this.document,"stroke",h.strokeStyle).addOpacity(S).getString();h.strokeStyle=_}var C=this.getStyle("stroke-width");if(C.hasValue()){var R=C.getPixels();h.lineWidth=R||_m}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 B=V.getPixels();void 0!==h.lineDashOffset?h.lineDashOffset=B:void 0!==h.webkitLineDashOffset?h.webkitLineDashOffset=B:void 0!==h.mozDashOffset&&(h.mozDashOffset=B)}}if(this.modifiedEmSizeStack=!1,void 0!==h.font){var U=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 Wm(z.getString(),G.getString(),q.getString(),X.hasValue()?"".concat(X.getPixels(!0),"px"):"",Y.getString(),Wm.parse(U.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)}g||(this.applyEffects(h),h.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(h){bd(Ig(RenderedElement.prototype),"clearContext",this).call(this,h),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}(Xm);function _createSuper$5(h){var g=function _isNativeReflectConstruct$5(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Km=function(h){kg(TextElement,h);var g=_createSuper$5(TextElement);function TextElement(h,d,x){var b;return xv(this,TextElement),(b=g.call(this,h,d,(this instanceof TextElement?this.constructor:void 0)===TextElement||x)).type="text",b.x=0,b.y=0,b.measureCache=-1,b}return bv(TextElement,[{key:"setContext",value:function setContext(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1];bd(Ig(TextElement.prototype),"setContext",this).call(this,h,g);var d=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();d&&(h.textBaseline=d)}},{key:"initializeCoordinates",value:function initializeCoordinates(h){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var g=this.getAttribute("dx"),d=this.getAttribute("dy");g.hasValue()&&(this.x+=g.getPixels("x")),d.hasValue()&&(this.y+=d.getPixels("y")),this.x+=this.getAnchorDelta(h,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(h){var g,d=this;if("text"!==this.type)return this.getTElementBoundingBox(h);this.initializeCoordinates(h);var x=null;return Sp(g=this.children).call(g,(function(g,b){var S=d.getChildBoundingBox(h,d,d,b);x?x.addBoundingBox(S):x=S})),x}},{key:"getFontSize",value:function getFontSize(){var h=this.document,g=this.parent,d=Wm.parse(h.ctx.font).fontSize;return g.getStyle("font-size").getNumber(d)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(h){var g=this.getFontSize();return new Qm(this.x,this.y-g,this.x+this.measureText(h),this.y)}},{key:"getGlyph",value:function getGlyph(h,g,d){var x=g[d],b=null;if(h.isArabic){var S=g.length,w=g[d-1],E=g[d+1],A="isolated";(0===d||" "===w)&&d<S-2&&" "!==E&&(A="terminal"),d>0&&" "!==w&&d<S-2&&" "!==E&&(A="medial"),d>0&&" "!==w&&(d===S-1||" "===E)&&(A="initial"),void 0!==h.glyphs[x]&&((b=h.glyphs[x][A])||"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 g=h||this.node,d=nd(g.parentNode.childNodes),x=gd(d).call(d,g),b=d.length-1,S=compressSpaces(g.value||g.text||g.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 g,d=this;if("text"===this.type){this.initializeCoordinates(h),Sp(g=this.children).call(g,(function(g,x){d.renderChild(h,d,d,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 g=this.document,d=this.parent,x=this.getText(),b=d.getStyle("font-family").getDefinition();if(b)for(var S,w=b.fontFace.unitsPerEm,E=Wm.parse(g.ctx.font),A=d.getStyle("font-size").getNumber(E.fontSize),P=d.getStyle("font-style").getString(E.fontStyle),k=A/w,_=b.isRTL?sd(S=x.split("")).call(S).join(""):x,C=toNumbers(d.getAttribute("dx").getString()),R=_.length,M=0;M<R;M++){var N=this.getGlyph(b,_,M);h.translate(this.x,this.y),h.scale(k,-k);var L=h.lineWidth;h.lineWidth=h.lineWidth*w/A,"italic"===P&&h.transform(1,0,.4,1,0,0),N.render(h),"italic"===P&&h.transform(1,0,-.4,1,0,0),h.lineWidth=L,h.scale(1/k,-1/k),h.translate(-this.x,-this.y),this.x+=A*(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,g,d){var x=this.getStyle("text-anchor").getString("start");if("start"!==x){for(var b=g.children,S=b.length,w=null,E=0,A=d;A<S&&(w=b[A],!(A>d&&w.getAttribute("x").hasValue()||w.getAttribute("text-anchor").hasValue()));A++)E+=w.measureTextRecursive(h);return-1*("end"===x?E:E/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(h,g,d,x){var b=d.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"),A=b.getAttribute("dy"),P=b.getAttribute("text-anchor").getString("start");if(0===x&&"textNode"!==b.type&&(S.hasValue()||S.setValue(g.getAttribute("x").getValue("0")),w.hasValue()||w.setValue(g.getAttribute("y").getValue("0")),E.hasValue()||E.setValue(g.getAttribute("dx").getValue("0")),A.hasValue()||A.setValue(g.getAttribute("dy").getValue("0"))),S.hasValue()){if(b.x=S.getPixels("x")+g.getAnchorDelta(h,d,x),"start"!==P){var k=b.measureTextRecursive(h);b.x+=-1*("end"===P?k:k/2)}E.hasValue()&&(b.x+=E.getPixels("x"))}else{if("start"!==P){var _=b.measureTextRecursive(h);g.x+=-1*("end"===P?_:_/2)}E.hasValue()&&(g.x+=E.getPixels("x")),b.x=g.x}return g.x=b.x+b.measureText(h),w.hasValue()?(b.y=w.getPixels("y"),A.hasValue()&&(b.y+=A.getPixels("y"))):(A.hasValue()&&(g.y+=A.getPixels("y")),b.y=g.y),g.y=b.y,b.clearContext(h),h.restore(),b}},{key:"getChildBoundingBox",value:function getChildBoundingBox(h,g,d,x){var b,S=this.adjustChildCoordinates(h,g,d,x);if("function"!=typeof S.getBoundingBox)return null;var w=S.getBoundingBox(h);return w?(Sp(b=S.children).call(b,(function(d,x){var b=g.getChildBoundingBox(h,g,S,x);w.addBoundingBox(b)})),w):null}},{key:"renderChild",value:function renderChild(h,g,d,x){var b,S=this.adjustChildCoordinates(h,g,d,x);S.render(h),Sp(b=S.children).call(b,(function(d,x){g.renderChild(h,g,S,x)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(h){var g;return Nv(g=this.children).call(g,(function(g,d){return g+d.measureTextRecursive(h)}),this.measureText(h))}},{key:"measureText",value:function measureText(h){var g=this.measureCache;if(~g)return g;var d=this.getText(),x=this.measureTargetText(h,d);return this.measureCache=x,x}},{key:"measureTargetText",value:function measureTargetText(h,g){if(!g.length)return 0;var d=this.parent,x=d.getStyle("font-family").getDefinition();if(x){for(var b,S=this.getFontSize(),w=x.isRTL?sd(b=g.split("")).call(b).join(""):g,E=toNumbers(d.getAttribute("dx").getString()),A=w.length,P=0,k=0;k<A;k++){P+=(this.getGlyph(x,w,k).horizAdvX||x.horizAdvX)*S/x.fontFace.unitsPerEm,void 0===E[k]||isNaN(E[k])||(P+=E[k])}return P}if(!h.measureText)return 10*g.length;h.save(),this.setContext(h,!0);var _=h.measureText(g).width;return this.clearContext(h),h.restore(),_}}]),TextElement}(Zm);function _createSuper$6(h){var g=function _isNativeReflectConstruct$6(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Jm=function(h){kg(TSpanElement,h);var g=_createSuper$6(TSpanElement);function TSpanElement(h,d,x){var b;return xv(this,TSpanElement),(b=g.call(this,h,d,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||x)).type="tspan",b.text=b.children.length>0?"":b.getTextFromNode(),b}return bv(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}(Km);function _createSuper$7(h){var g=function _isNativeReflectConstruct$7(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var tx=function(h){kg(TextNode,h);var g=_createSuper$7(TextNode);function TextNode(){var h;return xv(this,TextNode),(h=g.apply(this,arguments)).type="textNode",h}return TextNode}(Jm);function _createSuper$8(h){var g=function _isNativeReflectConstruct$8(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var ex=function(h){kg(PathParser,h);var g=_createSuper$8(PathParser);function PathParser(h){var d;return xv(this,PathParser),(d=g.call(this,h.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,d.start=null,d.current=null,d.command=null,d.commands=d.commands,d.i=-1,d.previousCommand=null,d.points=[],d.angles=[],d}return bv(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Rm(0,0),this.control=new Rm(0,0),this.current=new Rm(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",g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",d=new Rm(this.command[h],this.command[g]);return this.makeAbsolute(d)}},{key:"getAsControlPoint",value:function getAsControlPoint(h,g){var d=this.getPoint(h,g);return this.control=d,d}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(h,g){var d=this.getPoint(h,g);return this.current=d,d}},{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 g=this.current,d=g.x,x=g.y,b=this.control,S=b.x,w=b.y;return new Rm(2*d-S,2*x-w)}},{key:"makeAbsolute",value:function makeAbsolute(h){if(this.command.relative){var g=this.current,d=g.x,x=g.y;h.x+=d,h.y+=x}return h}},{key:"addMarker",value:function addMarker(h,g,d){var x=this.points,b=this.angles;d&&b.length>0&&!b[b.length-1]&&(b[b.length-1]=x[x.length-1].angleTo(d)),this.addMarkerAngle(h,g?g.angleTo(h):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(h,g){this.points.push(h),this.angles.push(g)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var h=this.angles,g=h.length,d=0;d<g;d++)if(!h[d])for(var x=d+1;x<g;x++)if(h[x]){h[d]=h[x];break}return h}}]),PathParser}(Nd);function _createSuper$9(h){var g=function _isNativeReflectConstruct$9(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var rx=function(h){kg(PathElement,h);var g=_createSuper$9(PathElement);function PathElement(h,d,x){var b;return xv(this,PathElement),(b=g.call(this,h,d,x)).type="path",b.pathParser=null,b.pathParser=new ex(b.getAttribute("d").getString()),b}return bv(PathElement,[{key:"path",value:function path(h){var g=this.pathParser,d=new Qm;for(g.reset(),h&&h.beginPath();!g.isEnd();)switch(g.next().type){case ex.MOVE_TO:this.pathM(h,d);break;case ex.LINE_TO:this.pathL(h,d);break;case ex.HORIZ_LINE_TO:this.pathH(h,d);break;case ex.VERT_LINE_TO:this.pathV(h,d);break;case ex.CURVE_TO:this.pathC(h,d);break;case ex.SMOOTH_CURVE_TO:this.pathS(h,d);break;case ex.QUAD_TO:this.pathQ(h,d);break;case ex.SMOOTH_QUAD_TO:this.pathT(h,d);break;case ex.ARC:this.pathA(h,d);break;case ex.CLOSE_PATH:this.pathZ(h,d)}return d}},{key:"getBoundingBox",value:function getBoundingBox(h){return this.path()}},{key:"getMarkers",value:function getMarkers(){var h=this.pathParser,g=h.getMarkerPoints(),d=h.getMarkerAngles();return qc(g).call(g,(function(h,g){return[h,d[g]]}))}},{key:"renderChildren",value:function renderChildren(h){this.path(h),this.document.screen.mouse.checkPath(this,h);var g=this.getStyle("fill-rule");""!==h.fillStyle&&("inherit"!==g.getString("inherit")?Ed(h).call(h,g.getString()):Ed(h).call(h)),""!==h.strokeStyle&&h.stroke();var d=this.getMarkers();if(d){var x=d.length-1,b=this.getStyle("marker-start"),S=this.getStyle("marker-mid"),w=this.getStyle("marker-end");if(b.isUrlDefinition()){var E=b.getDefinition(),A=up(d[0],2),P=A[0],k=A[1];E.render(h,P,k)}if(S.isUrlDefinition())for(var _=S.getDefinition(),C=1;C<x;C++){var R=up(d[C],2),M=R[0],N=R[1];_.render(h,M,N)}if(w.isUrlDefinition()){var L=w.getDefinition(),D=up(d[x],2),j=D[0],V=D[1];L.render(h,j,V)}}}},{key:"pathM",value:function pathM(h,g){var d=this.pathParser,x=PathElement.pathM(d).point,b=x.x,S=x.y;d.addMarker(x),g.addPoint(b,S),h&&h.moveTo(b,S)}},{key:"pathL",value:function pathL(h,g){var d=this.pathParser,x=PathElement.pathL(d),b=x.current,S=x.point,w=S.x,E=S.y;d.addMarker(S,b),g.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathH",value:function pathH(h,g){var d=this.pathParser,x=PathElement.pathH(d),b=x.current,S=x.point,w=S.x,E=S.y;d.addMarker(S,b),g.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathV",value:function pathV(h,g){var d=this.pathParser,x=PathElement.pathV(d),b=x.current,S=x.point,w=S.x,E=S.y;d.addMarker(S,b),g.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathC",value:function pathC(h,g){var d=this.pathParser,x=PathElement.pathC(d),b=x.current,S=x.point,w=x.controlPoint,E=x.currentPoint;d.addMarker(E,w,S),g.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,g){var d=this.pathParser,x=PathElement.pathS(d),b=x.current,S=x.point,w=x.controlPoint,E=x.currentPoint;d.addMarker(E,w,S),g.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,g){var d=this.pathParser,x=PathElement.pathQ(d),b=x.current,S=x.controlPoint,w=x.currentPoint;d.addMarker(w,S,S),g.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,g){var d=this.pathParser,x=PathElement.pathT(d),b=x.current,S=x.controlPoint,w=x.currentPoint;d.addMarker(w,S,S),g.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,g){var d=this.pathParser,x=PathElement.pathA(d),b=x.currentPoint,S=x.rX,w=x.rY,E=x.sweepFlag,A=x.xAxisRotation,P=x.centp,k=x.a1,_=x.ad,C=1-E?1:-1,R=k+C*(_/2),M=new Rm(P.x+S*Math.cos(R),P.y+w*Math.sin(R));if(d.addMarkerAngle(M,R-C*Math.PI/2),d.addMarkerAngle(b,R-C*Math.PI),g.addPoint(b.x,b.y),h&&!isNaN(k)&&!isNaN(_)){var N=S>w?S:w,L=S>w?1:S/w,D=S>w?w/S:1;h.translate(P.x,P.y),h.rotate(A),h.scale(L,D),h.arc(0,0,N,k,k+_,Boolean(1-E)),h.scale(1/L,1/D),h.rotate(-A),h.translate(-P.x,-P.y)}}},{key:"pathZ",value:function pathZ(h,g){PathElement.pathZ(this.pathParser),h&&g.x1!==g.x2&&g.y1!==g.y2&&h.closePath()}}],[{key:"pathM",value:function pathM(h){var g=h.getAsCurrentPoint();return h.start=h.current,{point:g}}},{key:"pathL",value:function pathL(h){return{current:h.current,point:h.getAsCurrentPoint()}}},{key:"pathH",value:function pathH(h){var g=h.current,d=h.command,x=new Rm((d.relative?g.x:0)+d.x,g.y);return h.current=x,{current:g,point:x}}},{key:"pathV",value:function pathV(h){var g=h.current,d=h.command,x=new Rm(g.x,(d.relative?g.y:0)+d.y);return h.current=x,{current:g,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 g=h.current,d=h.getReflectedControlPoint();return h.control=d,{current:g,controlPoint:d,currentPoint:h.getAsCurrentPoint()}}},{key:"pathA",value:function pathA(h){var g=h.current,d=h.command,x=d.rX,b=d.rY,S=d.xRot,w=d.lArcFlag,E=d.sweepFlag,A=S*(Math.PI/180),P=h.getAsCurrentPoint(),k=new Rm(Math.cos(A)*(g.x-P.x)/2+Math.sin(A)*(g.y-P.y)/2,-Math.sin(A)*(g.x-P.x)/2+Math.cos(A)*(g.y-P.y)/2),_=Math.pow(k.x,2)/Math.pow(x,2)+Math.pow(k.y,2)/Math.pow(b,2);_>1&&(x*=Math.sqrt(_),b*=Math.sqrt(_));var C=(w===E?-1:1)*Math.sqrt((Math.pow(x,2)*Math.pow(b,2)-Math.pow(x,2)*Math.pow(k.y,2)-Math.pow(b,2)*Math.pow(k.x,2))/(Math.pow(x,2)*Math.pow(k.y,2)+Math.pow(b,2)*Math.pow(k.x,2)));isNaN(C)&&(C=0);var R=new Rm(C*x*k.y/b,C*-b*k.x/x),M=new Rm((g.x+P.x)/2+Math.cos(A)*R.x-Math.sin(A)*R.y,(g.y+P.y)/2+Math.sin(A)*R.x+Math.cos(A)*R.y),N=vectorsAngle([1,0],[(k.x-R.x)/x,(k.y-R.y)/b]),L=[(k.x-R.x)/x,(k.y-R.y)/b],D=[(-k.x-R.x)/x,(-k.y-R.y)/b],j=vectorsAngle(L,D);return vectorsRatio(L,D)<=-1&&(j=Math.PI),vectorsRatio(L,D)>=1&&(j=0),{currentPoint:P,rX:x,rY:b,sweepFlag:E,xAxisRotation:A,centp:M,a1:N,ad:j}}},{key:"pathZ",value:function pathZ(h){h.current=h.start}}]),PathElement}(Zm);function _createSuper$a(h){var g=function _isNativeReflectConstruct$a(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var nx=function(h){kg(SVGElement,h);var g=_createSuper$a(SVGElement);function SVGElement(){var h;return xv(this,SVGElement),(h=g.apply(this,arguments)).type="svg",h.root=!1,h}return bv(SVGElement,[{key:"setContext",value:function setContext(h){var g=this.document,d=g.screen,x=g.window,b=h.canvas;if(d.setDefaults(h),b.style&&void 0!==h.font&&x&&void 0!==x.getComputedStyle){h.font=x.getComputedStyle(b).getPropertyValue("font");var S=new Om(g,"fontSize",Wm.parse(h.font).fontSize);S.hasValue()&&(g.rootEmSize=S.getPixels("y"),g.emSize=g.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var w=d.viewPort,E=w.width,A=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 P=this.getAttribute("refX"),k=this.getAttribute("refY"),_=this.getAttribute("viewBox"),C=_.hasValue()?toNumbers(_.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"),A=this.getStyle("height").getPixels("y"),"marker"===this.type&&(L=M,D=N,M=0,N=0)),d.viewPort.setCurrent(E,A),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(Ig(SVGElement.prototype),"setContext",this).call(this,h),h.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),C&&(E=C[2],A=C[3]),g.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:d.viewPort.width,desiredWidth:E,height:d.viewPort.height,desiredHeight:A,minX:M,minY:N,refX:P.getValue(),refY:k.getValue(),clip:R,clipX:L,clipY:D}),C&&(d.viewPort.removeCurrent(),d.viewPort.setCurrent(E,A))}},{key:"clearContext",value:function clearContext(h){bd(Ig(SVGElement.prototype),"clearContext",this).call(this,h),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function resize(h){var g,d=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"),A=b.getNumber(0),P=S.getNumber(0);if(x)if("string"==typeof x)this.getAttribute("preserveAspectRatio",!0).setValue(x);else{var k=this.getAttribute("preserveAspectRatio");k.hasValue()&&k.setValue(k.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}(b.setValue(h),S.setValue(d),w.hasValue())||w.setValue(Ev(g="0 0 ".concat(A||h," ")).call(g,P||d));if(E.hasValue()){var _=this.getStyle("width"),C=this.getStyle("height");_.hasValue()&&_.setValue("".concat(h,"px")),C.hasValue()&&C.setValue("".concat(d,"px"))}}}]),SVGElement}(Zm);function _createSuper$b(h){var g=function _isNativeReflectConstruct$b(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var ix=function(h){kg(RectElement,h);var g=_createSuper$b(RectElement);function RectElement(){var h;return xv(this,RectElement),(h=g.apply(this,arguments)).type="rect",h}return bv(RectElement,[{key:"path",value:function path(h){var g=this.getAttribute("x").getPixels("x"),d=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"),A=w.getPixels("y");if(S.hasValue()&&!w.hasValue()&&(A=E),w.hasValue()&&!S.hasValue()&&(E=A),E=Math.min(E,x/2),A=Math.min(A,b/2),h){var P=(Math.sqrt(2)-1)/3*4;h.beginPath(),b>0&&x>0&&(h.moveTo(g+E,d),h.lineTo(g+x-E,d),h.bezierCurveTo(g+x-E+P*E,d,g+x,d+A-P*A,g+x,d+A),h.lineTo(g+x,d+b-A),h.bezierCurveTo(g+x,d+b-A+P*A,g+x-E+P*E,d+b,g+x-E,d+b),h.lineTo(g+E,d+b),h.bezierCurveTo(g+E-P*E,d+b,g,d+b-A+P*A,g,d+b-A),h.lineTo(g,d+A),h.bezierCurveTo(g,d+A-P*A,g+E-P*E,d,g+E,d),h.closePath())}return new Qm(g,d,g+x,d+b)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}(rx);function _createSuper$c(h){var g=function _isNativeReflectConstruct$c(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var ax=function(h){kg(CircleElement,h);var g=_createSuper$c(CircleElement);function CircleElement(){var h;return xv(this,CircleElement),(h=g.apply(this,arguments)).type="circle",h}return bv(CircleElement,[{key:"path",value:function path(h){var g=this.getAttribute("cx").getPixels("x"),d=this.getAttribute("cy").getPixels("y"),x=this.getAttribute("r").getPixels();return h&&x>0&&(h.beginPath(),h.arc(g,d,x,0,2*Math.PI,!1),h.closePath()),new Qm(g-x,d-x,g+x,d+x)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}(rx);function _createSuper$d(h){var g=function _isNativeReflectConstruct$d(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var ox=function(h){kg(EllipseElement,h);var g=_createSuper$d(EllipseElement);function EllipseElement(){var h;return xv(this,EllipseElement),(h=g.apply(this,arguments)).type="ellipse",h}return bv(EllipseElement,[{key:"path",value:function path(h){var g=(Math.sqrt(2)-1)/3*4,d=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&&d>0&&x>0&&(h.beginPath(),h.moveTo(b+d,S),h.bezierCurveTo(b+d,S+g*x,b+g*d,S+x,b,S+x),h.bezierCurveTo(b-g*d,S+x,b-d,S+g*x,b-d,S),h.bezierCurveTo(b-d,S-g*x,b-g*d,S-x,b,S-x),h.bezierCurveTo(b+g*d,S-x,b+d,S-g*x,b+d,S),h.closePath()),new Qm(b-d,S-x,b+d,S+x)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}(rx);function _createSuper$e(h){var g=function _isNativeReflectConstruct$e(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var ux=function(h){kg(LineElement,h);var g=_createSuper$e(LineElement);function LineElement(){var h;return xv(this,LineElement),(h=g.apply(this,arguments)).type="line",h}return bv(LineElement,[{key:"getPoints",value:function getPoints(){return[new Rm(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Rm(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(h){var g=this.getPoints(),d=up(g,2),x=d[0],b=x.x,S=x.y,w=d[1],E=w.x,A=w.y;return h&&(h.beginPath(),h.moveTo(b,S),h.lineTo(E,A)),new Qm(b,S,E,A)}},{key:"getMarkers",value:function getMarkers(){var h=this.getPoints(),g=up(h,2),d=g[0],x=g[1],b=d.angleTo(x);return[[d,b],[x,b]]}}]),LineElement}(rx);function _createSuper$f(h){var g=function _isNativeReflectConstruct$f(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var sx=function(h){kg(PolylineElement,h);var g=_createSuper$f(PolylineElement);function PolylineElement(h,d,x){var b;return xv(this,PolylineElement),(b=g.call(this,h,d,x)).type="polyline",b.points=[],b.points=Rm.parsePath(b.getAttribute("points").getString()),b}return bv(PolylineElement,[{key:"path",value:function path(h){var g=this.points,d=up(g,1)[0],x=d.x,b=d.y,S=new Qm(x,b);return h&&(h.beginPath(),h.moveTo(x,b)),Sp(g).call(g,(function(g){var d=g.x,x=g.y;S.addPoint(d,x),h&&h.lineTo(d,x)})),S}},{key:"getMarkers",value:function getMarkers(){var h=this.points,g=h.length-1,d=[];return Sp(h).call(h,(function(x,b){b!==g&&d.push([x,x.angleTo(h[b+1])])})),d.length>0&&d.push([h[h.length-1],d[d.length-1][1]]),d}}]),PolylineElement}(rx);function _createSuper$g(h){var g=function _isNativeReflectConstruct$g(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var cx=function(h){kg(PolygonElement,h);var g=_createSuper$g(PolygonElement);function PolygonElement(){var h;return xv(this,PolygonElement),(h=g.apply(this,arguments)).type="polygon",h}return bv(PolygonElement,[{key:"path",value:function path(h){var g=bd(Ig(PolygonElement.prototype),"path",this).call(this,h),d=up(this.points,1)[0],x=d.x,b=d.y;return h&&(h.lineTo(x,b),h.closePath()),g}}]),PolygonElement}(sx);function _createSuper$h(h){var g=function _isNativeReflectConstruct$h(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var lx=function(h){kg(PatternElement,h);var g=_createSuper$h(PatternElement);function PatternElement(){var h;return xv(this,PatternElement),(h=g.apply(this,arguments)).type="pattern",h}return bv(PatternElement,[{key:"createPattern",value:function createPattern(h,g,d){var x=this.getStyle("width").getPixels("x",!0),b=this.getStyle("height").getPixels("y",!0),S=new nx(this.document,null);S.attributes.viewBox=new Om(this.document,"viewBox",this.getAttribute("viewBox").getValue()),S.attributes.width=new Om(this.document,"width","".concat(x,"px")),S.attributes.height=new Om(this.document,"height","".concat(b,"px")),S.attributes.transform=new Om(this.document,"transform",this.getAttribute("patternTransform").getValue()),S.children=this.children;var w=this.document.createCanvas(x,b),E=w.getContext("2d"),A=this.getAttribute("x"),P=this.getAttribute("y");A.hasValue()&&P.hasValue()&&E.translate(A.getPixels("x",!0),P.getPixels("y",!0)),d.hasValue()?this.styles["fill-opacity"]=d:Dd(this.styles,"fill-opacity");for(var k=-1;k<=1;k++)for(var _=-1;_<=1;_++)E.save(),S.attributes.x=new Om(this.document,"x",k*w.width),S.attributes.y=new Om(this.document,"y",_*w.height),S.render(E),E.restore();return h.createPattern(w,"repeat")}}]),PatternElement}(Xm);function _createSuper$i(h){var g=function _isNativeReflectConstruct$i(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var fx=function(h){kg(MarkerElement,h);var g=_createSuper$i(MarkerElement);function MarkerElement(){var h;return xv(this,MarkerElement),(h=g.apply(this,arguments)).type="marker",h}return bv(MarkerElement,[{key:"render",value:function render(h,g,d){if(g){var x=g.x,b=g.y,S=this.getAttribute("orient").getValue("auto"),w=this.getAttribute("markerUnits").getValue("strokeWidth");h.translate(x,b),"auto"===S&&h.rotate(d),"strokeWidth"===w&&h.scale(h.lineWidth,h.lineWidth),h.save();var E=new nx(this.document,null);E.type=this.type,E.attributes.viewBox=new Om(this.document,"viewBox",this.getAttribute("viewBox").getValue()),E.attributes.refX=new Om(this.document,"refX",this.getAttribute("refX").getValue()),E.attributes.refY=new Om(this.document,"refY",this.getAttribute("refY").getValue()),E.attributes.width=new Om(this.document,"width",this.getAttribute("markerWidth").getValue()),E.attributes.height=new Om(this.document,"height",this.getAttribute("markerHeight").getValue()),E.attributes.overflow=new Om(this.document,"overflow",this.getAttribute("overflow").getValue()),E.attributes.fill=new Om(this.document,"fill",this.getAttribute("fill").getColor("black")),E.attributes.stroke=new Om(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(-d),h.translate(-x,-b)}}}]),MarkerElement}(Xm);function _createSuper$j(h){var g=function _isNativeReflectConstruct$j(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var hx=function(h){kg(DefsElement,h);var g=_createSuper$j(DefsElement);function DefsElement(){var h;return xv(this,DefsElement),(h=g.apply(this,arguments)).type="defs",h}return bv(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}(Xm);function _createSuper$k(h){var g=function _isNativeReflectConstruct$k(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var px=function(h){kg(GElement,h);var g=_createSuper$k(GElement);function GElement(){var h;return xv(this,GElement),(h=g.apply(this,arguments)).type="g",h}return bv(GElement,[{key:"getBoundingBox",value:function getBoundingBox(h){var g,d=new Qm;return Sp(g=this.children).call(g,(function(g){d.addBoundingBox(g.getBoundingBox(h))})),d}}]),GElement}(Zm);function _createSuper$l(h){var g=function _isNativeReflectConstruct$l(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var yx=function(h){kg(GradientElement,h);var g=_createSuper$l(GradientElement);function GradientElement(h,d,x){var b;xv(this,GradientElement),(b=g.call(this,h,d,x)).attributesToInherit=["gradientUnits"],b.stops=[];var S=Cg(b),w=S.stops,E=S.children;return Sp(E).call(E,(function(h){"stop"===h.type&&w.push(h)})),b}return bv(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(h,g,d){var x=this,b=this;this.getHrefAttribute().hasValue()&&(b=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(b));var S=b.stops,w=this.getGradient(h,g);if(!w)return this.addParentOpacity(d,S[S.length-1].color);if(Sp(S).call(S,(function(h){w.addColorStop(h.offset,x.addParentOpacity(d,h.color))})),this.getAttribute("gradientTransform").hasValue()){var E=this.document,A=E.screen,P=A.MAX_VIRTUAL_PIXELS,k=A.viewPort,_=up(k.viewPorts,1)[0],C=new ix(E,null);C.attributes.x=new Om(E,"x",-P/3),C.attributes.y=new Om(E,"y",-P/3),C.attributes.width=new Om(E,"width",P),C.attributes.height=new Om(E,"height",P);var R=new px(E,null);R.attributes.transform=new Om(E,"transform",this.getAttribute("gradientTransform").getValue()),R.children=[C];var M=new nx(E,null);M.attributes.x=new Om(E,"x",0),M.attributes.y=new Om(E,"y",0),M.attributes.width=new Om(E,"width",_.width),M.attributes.height=new Om(E,"height",_.height),M.children=[R];var N=E.createCanvas(_.width,_.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 g,d=this;Sp(g=this.attributesToInherit).call(g,(function(g){!d.getAttribute(g).hasValue()&&h.getAttribute(g).hasValue()&&d.getAttribute(g,!0).setValue(h.getAttribute(g).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(h,g){return h.hasValue()?new Om(this.document,"color",g).addOpacity(h).getColor():g}}]),GradientElement}(Xm);function _createSuper$m(h){var g=function _isNativeReflectConstruct$m(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var vx=function(h){kg(LinearGradientElement,h);var g=_createSuper$m(LinearGradientElement);function LinearGradientElement(h,d,x){var b;return xv(this,LinearGradientElement),(b=g.call(this,h,d,x)).type="linearGradient",b.attributesToInherit.push("x1","y1","x2","y2"),b}return bv(LinearGradientElement,[{key:"getGradient",value:function getGradient(h,g){var d="objectBoundingBox"===this.getGradientUnits(),x=d?g.getBoundingBox(h):null;if(d&&!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=d?x.x+x.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),S=d?x.y+x.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),w=d?x.x+x.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),E=d?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}(yx);function _createSuper$n(h){var g=function _isNativeReflectConstruct$n(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var gx=function(h){kg(RadialGradientElement,h);var g=_createSuper$n(RadialGradientElement);function RadialGradientElement(h,d,x){var b;return xv(this,RadialGradientElement),(b=g.call(this,h,d,x)).type="radialGradient",b.attributesToInherit.push("cx","cy","r","fx","fy","fr"),b}return bv(RadialGradientElement,[{key:"getGradient",value:function getGradient(h,g){var d="objectBoundingBox"===this.getGradientUnits(),x=g.getBoundingBox(h);if(d&&!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=d?x.x+x.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),S=d?x.y+x.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),w=b,E=S;this.getAttribute("fx").hasValue()&&(w=d?x.x+x.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(E=d?x.y+x.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var A=d?(x.width+x.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),P=this.getAttribute("fr").getPixels();return h.createRadialGradient(w,E,P,b,S,A)}}]),RadialGradientElement}(yx);function _createSuper$o(h){var g=function _isNativeReflectConstruct$o(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var dx=function(h){kg(StopElement,h);var g=_createSuper$o(StopElement);function StopElement(h,d,x){var b;xv(this,StopElement),(b=g.call(this,h,d,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}(Xm);function _createSuper$p(h){var g=function _isNativeReflectConstruct$p(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var mx=function(h){kg(AnimateElement,h);var g=_createSuper$p(AnimateElement);function AnimateElement(h,d,x){var b;return xv(this,AnimateElement),(b=g.call(this,h,d,x)).type="animate",b.duration=0,b.initialValue=null,b.initialUnits="",b.removed=!1,b.frozen=!1,h.screen.animations.push(Cg(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 bv(AnimateElement,[{key:"getProperty",value:function getProperty(){var h=this.getAttribute("attributeType").getString(),g=this.getAttribute("attributeName").getString();return"CSS"===h?this.parent.getStyle(g,!0):this.parent.getAttribute(g,!0)}},{key:"calcValue",value:function calcValue(){var h,g=this.initialUnits,d=this.getProgress(),x=d.progress,b=d.from,S=d.to,w=b.getNumber()+(S.getNumber()-b.getNumber())*x;return"%"===g&&(w*=100),Ev(h="".concat(w)).call(h,g)}},{key:"update",value:function update(h){var g=this.parent,d=this.getProperty();if(this.initialValue||(this.initialValue=d.getString(),this.initialUnits=d.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,d.setValue(g.animationFrozen?g.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,g.animationFrozen=!0,g.animationFrozenValue=d.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,A=w.getString();S=Ev(E="".concat(A,"(")).call(E,S,")")}d.setValue(S),b=!0}return b}},{key:"getProgress",value:function getProgress(){var h=this.document,g=Fd(this),d={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(g.hasValue()){var x=d.progress*(g.getValue().length-1),b=Math.floor(x),S=Math.ceil(x);d.from=new Om(h,"from",vc(g.getValue()[b])),d.to=new Om(h,"to",vc(g.getValue()[S])),d.progress=(x-b)/(S-b)}else d.from=this.from,d.to=this.to;return d}}]),AnimateElement}(Xm);function _createSuper$q(h){var g=function _isNativeReflectConstruct$q(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var xx=function(h){kg(AnimateColorElement,h);var g=_createSuper$q(AnimateColorElement);function AnimateColorElement(){var h;return xv(this,AnimateColorElement),(h=g.apply(this,arguments)).type="animateColor",h}return bv(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),g=h.progress,d=h.from,x=h.to,b=new dg(d.getColor()),S=new dg(x.getColor());if(b.ok&&S.ok){var w,E,A=b.r+(S.r-b.r)*g,P=b.g+(S.g-b.g)*g,k=b.b+(S.b-b.b)*g;return Ev(w=Ev(E="rgb(".concat(Hd(A,10),", ")).call(E,Hd(P,10),", ")).call(w,Hd(k,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}(mx);function _createSuper$r(h){var g=function _isNativeReflectConstruct$r(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var bx=function(h){kg(AnimateTransformElement,h);var g=_createSuper$r(AnimateTransformElement);function AnimateTransformElement(){var h;return xv(this,AnimateTransformElement),(h=g.apply(this,arguments)).type="animateTransform",h}return bv(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),g=h.progress,d=h.from,x=h.to,b=toNumbers(d.getString()),S=toNumbers(x.getString());return qc(b).call(b,(function(h,d){return h+(S[d]-h)*g})).join(" ")}}]),AnimateTransformElement}(mx);function _createForOfIteratorHelper(h,g){var d;if(void 0===Yd||null==Xd(h)){if(qd(h)||(d=function _unsupportedIterableToArray$1(h,g){var d;if(!h)return;if("string"==typeof h)return _arrayLikeToArray$1(h,g);var x=Wd(d=Object.prototype.toString.call(h)).call(d,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,g)}(h))||g&&h&&"number"==typeof h.length){d&&(h=d);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(){d=Lf(h)},n:function n(){var h=d.next();return w=h.done,h},e:function e(h){E=!0,S=h},f:function f(){try{w||null==d.return||d.return()}finally{if(E)throw S}}}}function _arrayLikeToArray$1(h,g){(null==g||g>h.length)&&(g=h.length);for(var d=0,x=new Array(g);d<g;d++)x[d]=h[d];return x}function _createSuper$s(h){var g=function _isNativeReflectConstruct$s(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Sx=function(h){kg(FontElement,h);var g=_createSuper$s(FontElement);function FontElement(h,d,x){var b;xv(this,FontElement),(b=g.call(this,h,d,x)).type="font",b.glyphs={},b.horizAdvX=b.getAttribute("horiz-adv-x").getNumber();var S,w=h.definitions,E=_createForOfIteratorHelper(Cg(b).children);try{for(E.s();!(S=E.n()).done;){var A=S.value;switch(A.type){case"font-face":b.fontFace=A;var P=A.getStyle("font-family");P.hasValue()&&(w[P.getString()]=Cg(b));break;case"missing-glyph":b.missingGlyph=A;break;case"glyph":var k=A;k.arabicForm?(b.isRTL=!0,b.isArabic=!0,void 0===b.glyphs[k.unicode]&&(b.glyphs[k.unicode]={}),b.glyphs[k.unicode][k.arabicForm]=k):b.glyphs[k.unicode]=k}}}catch(h){E.e(h)}finally{E.f()}return b}return bv(FontElement,[{key:"render",value:function render(){}}]),FontElement}(Xm);function _createSuper$t(h){var g=function _isNativeReflectConstruct$t(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var wx=function(h){kg(FontFaceElement,h);var g=_createSuper$t(FontFaceElement);function FontFaceElement(h,d,x){var b;return xv(this,FontFaceElement),(b=g.call(this,h,d,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}(Xm);function _createSuper$u(h){var g=function _isNativeReflectConstruct$u(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Ex=function(h){kg(MissingGlyphElement,h);var g=_createSuper$u(MissingGlyphElement);function MissingGlyphElement(){var h;return xv(this,MissingGlyphElement),(h=g.apply(this,arguments)).type="missing-glyph",h.horizAdvX=0,h}return MissingGlyphElement}(rx);function _createSuper$v(h){var g=function _isNativeReflectConstruct$v(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Ax=function(h){kg(GlyphElement,h);var g=_createSuper$v(GlyphElement);function GlyphElement(h,d,x){var b;return xv(this,GlyphElement),(b=g.call(this,h,d,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}(rx);function _createSuper$w(h){var g=function _isNativeReflectConstruct$w(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Px=function(h){kg(TRefElement,h);var g=_createSuper$w(TRefElement);function TRefElement(){var h;return xv(this,TRefElement),(h=g.apply(this,arguments)).type="tref",h}return bv(TRefElement,[{key:"getText",value:function getText(){var h=this.getHrefAttribute().getDefinition();if(h){var g=h.children[0];if(g)return g.getText()}return""}}]),TRefElement}(Km);function _createSuper$x(h){var g=function _isNativeReflectConstruct$x(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Tx=function(h){kg(AElement,h);var g=_createSuper$x(AElement);function AElement(h,d,x){var b,S;xv(this,AElement),(S=g.call(this,h,d,x)).type="a";var w=d.childNodes,E=w[0],A=w.length>0&&zv(b=nd(w)).call(b,(function(h){return 3===h.nodeType}));return S.hasText=A,S.text=A?S.getTextFromNode(E):"",S}return bv(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(h){if(this.hasText){bd(Ig(AElement.prototype),"renderChildren",this).call(this,h);var g=this.document,d=this.x,x=this.y,b=g.screen.mouse,S=new Om(g,"fontSize",Wm.parse(g.ctx.font).fontSize);b.isWorking()&&b.checkBoundingBox(this,new Qm(d,x-S.getPixels("y"),d+this.measureText(h),x))}else if(this.children.length>0){var w=new px(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}(Km);function _createForOfIteratorHelper$1(h,g){var d;if(void 0===Yd||null==Xd(h)){if(qd(h)||(d=function _unsupportedIterableToArray$1$1(h,g){var d;if(!h)return;if("string"==typeof h)return _arrayLikeToArray$1$1(h,g);var x=Wd(d=Object.prototype.toString.call(h)).call(d,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,g)}(h))||g&&h&&"number"==typeof h.length){d&&(h=d);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(){d=Lf(h)},n:function n(){var h=d.next();return w=h.done,h},e:function e(h){E=!0,S=h},f:function f(){try{w||null==d.return||d.return()}finally{if(E)throw S}}}}function _arrayLikeToArray$1$1(h,g){(null==g||g>h.length)&&(g=h.length);for(var d=0,x=new Array(g);d<g;d++)x[d]=h[d];return x}function ownKeys$2(h,g){var d=jp(h);if(Lp){var x=Lp(h);g&&(x=Ip(x).call(x,(function(g){return Pp(h,g).enumerable}))),d.push.apply(d,x)}return d}function _objectSpread(h){for(var g=1;g<arguments.length;g++){var d,x=null!=arguments[g]?arguments[g]:{};if(g%2)Sp(d=ownKeys$2(Object(x),!0)).call(d,(function(g){mv(h,g,x[g])}));else if(hp)lp(h,hp(x));else{var b;Sp(b=ownKeys$2(Object(x))).call(b,(function(g){cp(h,g,Pp(x,g))}))}}return h}function _createSuper$y(h){var g=function _isNativeReflectConstruct$y(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var kx=function(h){kg(TextPathElement,h);var g=_createSuper$y(TextPathElement);function TextPathElement(h,d,x){var b;xv(this,TextPathElement),(b=g.call(this,h,d,x)).type="textPath",b.textWidth=0,b.textHeight=0,b.pathLength=-1,b.glyphInfo=null,b.letterSpacingCache=[],b.measuresCache=new fm([["",0]]);var S=b.getHrefAttribute().getDefinition();return b.text=b.getTextFromNode(),b.dataArray=b.parsePathData(S),b}return bv(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(h){var g=this.dataArray;h&&h.beginPath(),Sp(g).call(g,(function(g){var d=g.type,x=g.points;switch(d){case ex.LINE_TO:h&&h.lineTo(x[0],x[1]);break;case ex.MOVE_TO:h&&h.moveTo(x[0],x[1]);break;case ex.CURVE_TO:h&&h.bezierCurveTo(x[0],x[1],x[2],x[3],x[4],x[5]);break;case ex.QUAD_TO:h&&h.quadraticCurveTo(x[0],x[1],x[2],x[3]);break;case ex.ARC:var b=up(x,8),S=b[0],w=b[1],E=b[2],A=b[3],P=b[4],k=b[5],_=b[6],C=b[7],R=E>A?E:A,M=E>A?1:E/A,N=E>A?A/E:1;h&&(h.translate(S,w),h.rotate(_),h.scale(M,N),h.arc(0,0,R,P,P+k,Boolean(1-C)),h.scale(1/M,1/N),h.rotate(-_),h.translate(-S,-w));break;case ex.CLOSE_PATH:h&&h.closePath()}}))}},{key:"renderChildren",value:function renderChildren(h){this.setTextData(h),h.save();var g=this.parent.getStyle("text-decoration").getString(),d=this.getFontSize(),x=this.glyphInfo,b=h.fillStyle;"underline"===g&&h.beginPath(),Sp(x).call(x,(function(x,b){var S=x.p0,w=x.p1,E=x.rotation,A=x.text;h.save(),h.translate(S.x,S.y),h.rotate(E),h.fillStyle&&h.fillText(A,0,0),h.strokeStyle&&h.strokeText(A,0,0),h.restore(),"underline"===g&&(0===b&&h.moveTo(S.x,S.y+d/8),h.lineTo(w.x,w.y+d/5))})),"underline"===g&&(h.lineWidth=d/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,g,d,x,b,S,w,E,A){var P=S,k=this.measureText(h,E);" "===E&&"justify"===g&&d<x&&(k+=(x-d)/b),A>-1&&(P+=this.getLetterSpacingAt(A));var _=this.textHeight/20,C=this.getEquidistantPointOnPath(P,_,0),R=this.getEquidistantPointOnPath(P+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:P+=k,segment:M,rotation:N}}},{key:"measureText",value:function measureText(h,g){var d=this.measuresCache,x=g||this.getText();if(d.has(x))return d.get(x);var b=this.measureTargetText(h,x);return d.set(x,b),b}},{key:"setTextData",value:function setTextData(h){var g,d=this;if(!this.glyphInfo){var x=this.getText(),b=x.split(""),S=x.split(" ").length-1,w=qc(g=this.parent.getAttribute("dx").split()).call(g,(function(h){return h.getPixels("x")})),E=this.parent.getAttribute("dy").getPixels("y"),A=this.parent.getStyle("text-anchor").getString("start"),P=this.getStyle("letter-spacing"),k=this.parent.getStyle("letter-spacing"),_=0;P.hasValue()&&"inherit"!==P.getValue()?P.hasValue()&&"initial"!==P.getValue()&&"unset"!==P.getValue()&&(_=P.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]:_);var N=Nv(C).call(C,(function(h,g,d){return 0===d?0:h+g||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"!==A&&"center"!==A||($=-D/2),"end"!==A&&"right"!==A||($=-D),$+=V,Sp(b).call(b,(function(g,x){var w=d.findSegmentToFitChar(h,A,D,j,S,$,E,g,x),P=w.offset,k=w.segment,_=w.rotation;$=P,k.p0&&k.p1&&d.glyphInfo.push({text:b[x],p0:k.p0,p1:k.p1,rotation:_})}))}}},{key:"parsePathData",value:function parsePathData(h){if(this.pathLength=-1,!h)return[];var g=[],d=h.pathParser;for(d.reset();!d.isEnd();){var x=d.current,b=x?x.x:0,S=x?x.y:0,w=d.next(),E=w.type,A=[];switch(w.type){case ex.MOVE_TO:this.pathM(d,A);break;case ex.LINE_TO:E=this.pathL(d,A);break;case ex.HORIZ_LINE_TO:E=this.pathH(d,A);break;case ex.VERT_LINE_TO:E=this.pathV(d,A);break;case ex.CURVE_TO:this.pathC(d,A);break;case ex.SMOOTH_CURVE_TO:E=this.pathS(d,A);break;case ex.QUAD_TO:this.pathQ(d,A);break;case ex.SMOOTH_QUAD_TO:E=this.pathT(d,A);break;case ex.ARC:A=this.pathA(d);break;case ex.CLOSE_PATH:rx.pathZ(d)}w.type!==ex.CLOSE_PATH?g.push({type:E,points:A,start:{x:b,y:S},pathLength:this.calcLength(b,S,E,A)}):g.push({type:ex.CLOSE_PATH,points:[],pathLength:0})}return g}},{key:"pathM",value:function pathM(h,g){var d=rx.pathM(h).point,x=d.x,b=d.y;g.push(x,b)}},{key:"pathL",value:function pathL(h,g){var d=rx.pathL(h).point,x=d.x,b=d.y;return g.push(x,b),ex.LINE_TO}},{key:"pathH",value:function pathH(h,g){var d=rx.pathH(h).point,x=d.x,b=d.y;return g.push(x,b),ex.LINE_TO}},{key:"pathV",value:function pathV(h,g){var d=rx.pathV(h).point,x=d.x,b=d.y;return g.push(x,b),ex.LINE_TO}},{key:"pathC",value:function pathC(h,g){var d=rx.pathC(h),x=d.point,b=d.controlPoint,S=d.currentPoint;g.push(x.x,x.y,b.x,b.y,S.x,S.y)}},{key:"pathS",value:function pathS(h,g){var d=rx.pathS(h),x=d.point,b=d.controlPoint,S=d.currentPoint;return g.push(x.x,x.y,b.x,b.y,S.x,S.y),ex.CURVE_TO}},{key:"pathQ",value:function pathQ(h,g){var d=rx.pathQ(h),x=d.controlPoint,b=d.currentPoint;g.push(x.x,x.y,b.x,b.y)}},{key:"pathT",value:function pathT(h,g){var d=rx.pathT(h),x=d.controlPoint,b=d.currentPoint;return g.push(x.x,x.y,b.x,b.y),ex.QUAD_TO}},{key:"pathA",value:function pathA(h){var g=rx.pathA(h),d=g.rX,x=g.rY,b=g.sweepFlag,S=g.xAxisRotation,w=g.centp,E=g.a1,A=g.ad;return 0===b&&A>0&&(A-=2*Math.PI),1===b&&A<0&&(A+=2*Math.PI),[w.x,w.y,d,x,E,A,S,b]}},{key:"calcLength",value:function calcLength(h,g,d,x){var b=0,S=null,w=null,E=0;switch(d){case ex.LINE_TO:return this.getLineLength(h,g,x[0],x[1]);case ex.CURVE_TO:for(b=0,S=this.getPointOnCubicBezier(0,h,g,x[0],x[1],x[2],x[3],x[4],x[5]),E=.01;E<=1;E+=.01)w=this.getPointOnCubicBezier(E,h,g,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 ex.QUAD_TO:for(b=0,S=this.getPointOnQuadraticBezier(0,h,g,x[0],x[1],x[2],x[3]),E=.01;E<=1;E+=.01)w=this.getPointOnQuadraticBezier(E,h,g,x[0],x[1],x[2],x[3]),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;return b;case ex.ARC:b=0;var A=x[4],P=x[5],k=x[4]+P,_=Math.PI/180;if(Math.abs(A-k)<_&&(_=Math.abs(A-k)),S=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],A,0),P<0)for(E=A-_;E>k;E-=_)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=A+_;E<k;E+=_)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],k,0),b+=this.getLineLength(S.x,S.y,w.x,w.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(h,g,d,x,b){var S=arguments.length>5&&void 0!==arguments[5]?arguments[5]:g,w=arguments.length>6&&void 0!==arguments[6]?arguments[6]:d,E=(b-d)/(x-g+_m),A=Math.sqrt(h*h/(1+E*E));x<g&&(A*=-1);var P=E*A,k=null;if(x===g)k={x:S,y:w+P};else if((w-d)/(S-g+_m)===E)k={x:S+A,y:w+P};else{var _=0,C=0,R=this.getLineLength(g,d,x,b);if(R<_m)return null;var M=(S-g)*(x-g)+(w-d)*(b-d);_=g+(M/=R*R)*(x-g),C=d+M*(b-d);var N=this.getLineLength(S,w,_,C),L=Math.sqrt(h*h-N*N);A=Math.sqrt(L*L/(1+E*E)),x<g&&(A*=-1),k={x:_+A,y:C+(P=E*A)}}return k}},{key:"getPointOnPath",value:function getPointOnPath(h){var g=this.getPathLength(),d=0,x=null;if(h<-5e-5||h-5e-5>g)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||d+w.pathLength+5e-5<h)){var E=h-d,A=0;switch(w.type){case ex.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 ex.ARC:var P=w.points[4],k=w.points[5],_=w.points[4]+k;if(A=P+E/w.pathLength*k,k<0&&A<_||k>=0&&A>_)break;x=this.getPointOnEllipticalArc(w.points[0],w.points[1],w.points[2],w.points[3],A,w.points[6]);break;case ex.CURVE_TO:(A=E/w.pathLength)>1&&(A=1),x=this.getPointOnCubicBezier(A,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 ex.QUAD_TO:(A=E/w.pathLength)>1&&(A=1),x=this.getPointOnQuadraticBezier(A,w.start.x,w.start.y,w.points[0],w.points[1],w.points[2],w.points[3])}if(x)return x;break}d+=w.pathLength}}catch(h){S.e(h)}finally{S.f()}return null}},{key:"getLineLength",value:function getLineLength(h,g,d,x){return Math.sqrt((d-h)*(d-h)+(x-g)*(x-g))}},{key:"getPathLength",value:function getPathLength(){var h;-1===this.pathLength&&(this.pathLength=Nv(h=this.dataArray).call(h,(function(h,g){return g.pathLength>0?h+g.pathLength:h}),0));return this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(h,g,d,x,b,S,w,E,A){return{x:E*CB1(h)+S*CB2(h)+x*CB3(h)+g*CB4(h),y:A*CB1(h)+w*CB2(h)+b*CB3(h)+d*CB4(h)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(h,g,d,x,b,S,w){return{x:S*QB1(h)+x*QB2(h)+g*QB3(h),y:w*QB1(h)+b*QB2(h)+d*QB3(h)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(h,g,d,x,b,S){var w=Math.cos(S),E=Math.sin(S),A=d*Math.cos(b),P=x*Math.sin(b);return{x:h+(A*w-P*E),y:g+(A*E+P*w)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(h,g){var d=this.getPathLength(),x=g||.25,b=h||d/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<=d;w+=x){var E=this.getPointOnPath(w),A=this.getPointOnPath(w+x);E&&A&&((S+=this.getLineLength(E.x,E.y,A.x,A.y))>=b&&(this.equidistantCache.points.push({x:E.x,y:E.y,distance:w}),S-=b))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(h,g,d){if(this.buildEquidistantCache(g,d),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}(Km);function _createSuper$z(h){var g=function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var _x=function(h){kg(ImageElement,h);var g,d,x=_createSuper$z(ImageElement);function ImageElement(h,g,d){var b;xv(this,ImageElement),(b=x.call(this,h,g,d)).type="image",b.loaded=!1;var S=b.getHrefAttribute().getString();if(!S)return Rg(b);var w=/\.svg$/.test(S);return h.images.push(Cg(b)),w?b.loadSvg(S):b.loadImage(S),b.isSvg=w,b}return bv(ImageElement,[{key:"loadImage",value:(d=gv(Vp.mark((function _callee(h){var g;return Vp.wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,this.document.createImage(h);case 3:g=d.sent,this.image=g,d.next=10;break;case 7:d.prev=7,d.t0=d.catch(0),console.error('Error while loading image "'.concat(h,'":'),d.t0);case 10:this.loaded=!0;case 11:case"end":return d.stop()}}),_callee,this,[[0,7]])}))),function loadImage(h){return d.apply(this,arguments)})},{key:"loadSvg",value:(g=gv(Vp.mark((function _callee2(h){var g,d;return Vp.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 g=x.sent,x.next=6,g.text();case 6:d=x.sent,this.image=d,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 g.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(h){var g=this.document,d=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&&d&&w&&E){if(h.save(),this.isSvg)g.canvg.forkString(h,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:b,offsetY:S,scaleWidth:w,scaleHeight:E}).render();else{var A=this.image;h.translate(b,S),g.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:w,desiredWidth:A.width,height:E,desiredHeight:A.height}),this.loaded&&(void 0===A.complete||A.complete)&&h.drawImage(A,0,0)}h.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var h=this.getAttribute("x").getPixels("x"),g=this.getAttribute("y").getPixels("y"),d=this.getStyle("width").getPixels("x"),x=this.getStyle("height").getPixels("y");return new Qm(h,g,h+d,g+x)}}]),ImageElement}(Zm);function _createSuper$A(h){var g=function _isNativeReflectConstruct$A(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Ox=function(h){kg(SymbolElement,h);var g=_createSuper$A(SymbolElement);function SymbolElement(){var h;return xv(this,SymbolElement),(h=g.apply(this,arguments)).type="symbol",h}return bv(SymbolElement,[{key:"render",value:function render(h){}}]),SymbolElement}(Zm),Cx=function(){function SVGFontLoader(h){xv(this,SVGFontLoader),this.document=h,this.loaded=!1,h.fonts.push(this)}var h;return bv(SVGFontLoader,[{key:"load",value:(h=gv(Vp.mark((function _callee(h,g){var d,x,b,S;return Vp.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(g);case 4:b=w.sent,S=b.getElementsByTagName("font"),Sp(d=nd(S)).call(d,(function(g){var d=x.createElement(g);x.definitions[h]=d})),w.next=12;break;case 9:w.prev=9,w.t0=w.catch(0),console.error('Error while loading font "'.concat(g,'":'),w.t0);case 12:this.loaded=!0;case 13:case"end":return w.stop()}}),_callee,this,[[0,9]])}))),function load(g,d){return h.apply(this,arguments)})}]),SVGFontLoader}();function _createSuper$B(h){var g=function _isNativeReflectConstruct$B(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Rx=function(h){kg(StyleElement,h);var g=_createSuper$B(StyleElement);function StyleElement(h,d,x){var b,S;xv(this,StyleElement),(S=g.call(this,h,d,x)).type="style";var w=compressSpaces(qc(b=nd(d.childNodes)).call(b,(function(h){return h.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return Sp(w).call(w,(function(g){var d=hg(g).call(g);if(d){var x=d.split("{"),b=x[0].split(","),S=x[1].split(";");Sp(b).call(b,(function(g){var d=hg(g).call(g);if(d){var x=h.styles[d]||{};if(Sp(S).call(S,(function(g){var d,b,S=gd(g).call(g,":"),w=hg(d=g.substr(0,S)).call(d),E=hg(b=g.substr(S+1,g.length-S)).call(b);w&&E&&(x[w]=new Om(h,w,E))})),h.styles[d]=x,h.stylesSpecificity[d]=function getSelectorSpecificity(h){var g=[0,0,0],d=h.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),x=0,b=findSelectorMatch(d,Sm),S=up(b,2);d=S[0],x=S[1],g[1]+=x;var w=findSelectorMatch(d,wm),E=up(w,2);d=E[0],x=E[1],g[0]+=x;var A=findSelectorMatch(d,Em),P=up(A,2);d=P[0],x=P[1],g[1]+=x;var k=findSelectorMatch(d,Am),_=up(k,2);d=_[0],x=_[1],g[2]+=x;var C=findSelectorMatch(d,Pm),R=up(C,2);d=R[0],x=R[1],g[1]+=x;var M=findSelectorMatch(d,Tm),N=up(M,2);d=N[0],x=N[1],g[1]+=x;var L=findSelectorMatch(d=d.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),km),D=up(L,2);return d=D[0],x=D[1],g[2]+=x,g.join("")}(d),"@font-face"===d){var b=x["font-family"].getString().replace(/"|'/g,""),w=x.src.getString().split(",");Sp(w).call(w,(function(g){if(gd(g).call(g,'format("svg")')>0){var d=parseExternalUrl(g);d&&new Cx(h).load(b,d)}}))}}}))}})),S}return StyleElement}(Xm);function _createSuper$C(h){var g=function _isNativeReflectConstruct$C(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}Rx.parseExternalUrl=parseExternalUrl;var Mx=function(h){kg(UseElement,h);var g=_createSuper$C(UseElement);function UseElement(){var h;return xv(this,UseElement),(h=g.apply(this,arguments)).type="use",h}return bv(UseElement,[{key:"setContext",value:function setContext(h){bd(Ig(UseElement.prototype),"setContext",this).call(this,h);var g=this.getAttribute("x"),d=this.getAttribute("y");g.hasValue()&&h.translate(g.getPixels("x"),0),d.hasValue()&&h.translate(0,d.getPixels("y"))}},{key:"path",value:function path(h){var g=this.element;g&&g.path(h)}},{key:"renderChildren",value:function renderChildren(h){var g=this.document,d=this.element;if(d){var x=d;if("symbol"===d.type&&((x=new nx(g,null)).attributes.viewBox=new Om(g,"viewBox",d.getAttribute("viewBox").getString()),x.attributes.preserveAspectRatio=new Om(g,"preserveAspectRatio",d.getAttribute("preserveAspectRatio").getString()),x.attributes.overflow=new Om(g,"overflow",d.getAttribute("overflow").getString()),x.children=d.children,d.styles.opacity=new Om(g,"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 Om(g,"width",b.getString())),S.hasValue()&&(x.attributes.height=new Om(g,"height",S.getString()))}var w=x.parent;x.parent=this,x.render(h),x.parent=w}}},{key:"getBoundingBox",value:function getBoundingBox(h){var g=this.element;return g?g.getBoundingBox(h):null}},{key:"elementTransform",value:function elementTransform(){var h=this.document,g=this.element;return qm.fromElement(h,g)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}(Zm);function _createSuper$D(h){var g=function _isNativeReflectConstruct$D(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}function imGet(h,g,d,x,b,S){return h[d*x*4+4*g+S]}function imSet(h,g,d,x,b,S,w){h[d*x*4+4*g+S]=w}function m$1(h,g,d){return h[g]*d}function c$1(h,g,d,x){return g+Math.cos(h)*d+Math.sin(h)*x}var Nx=function(h){kg(FeColorMatrixElement,h);var g=_createSuper$D(FeColorMatrixElement);function FeColorMatrixElement(h,d,x){var b;xv(this,FeColorMatrixElement),(b=g.call(this,h,d,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 bv(FeColorMatrixElement,[{key:"apply",value:function apply(h,g,d,x,b){for(var S=this.includeOpacity,w=this.matrix,E=h.getImageData(0,0,x,b),A=0;A<b;A++)for(var P=0;P<x;P++){var k=imGet(E.data,P,A,x,0,0),_=imGet(E.data,P,A,x,0,1),C=imGet(E.data,P,A,x,0,2),R=imGet(E.data,P,A,x,0,3),M=m$1(w,0,k)+m$1(w,1,_)+m$1(w,2,C)+m$1(w,3,R)+m$1(w,4,1),N=m$1(w,5,k)+m$1(w,6,_)+m$1(w,7,C)+m$1(w,8,R)+m$1(w,9,1),L=m$1(w,10,k)+m$1(w,11,_)+m$1(w,12,C)+m$1(w,13,R)+m$1(w,14,1),D=m$1(w,15,k)+m$1(w,16,_)+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,P,A,x,0,0,M),imSet(E.data,P,A,x,0,1,N),imSet(E.data,P,A,x,0,2,L),imSet(E.data,P,A,x,0,3,D)}h.clearRect(0,0,x,b),h.putImageData(E,0,0)}}]),FeColorMatrixElement}(Xm);function _createSuper$E(h){var g=function _isNativeReflectConstruct$E(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var Ix=function(h){kg(MaskElement,h);var g=_createSuper$E(MaskElement);function MaskElement(){var h;return xv(this,MaskElement),(h=g.apply(this,arguments)).type="mask",h}return bv(MaskElement,[{key:"apply",value:function apply(h,g){var d=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,A=new Qm;Sp(E=this.children).call(E,(function(g){A.addBoundingBox(g.getBoundingBox(h))})),x=Math.floor(A.x1),b=Math.floor(A.y1),S=Math.floor(A.width),w=Math.floor(A.height)}var P=this.removeStyles(g,MaskElement.ignoreStyles),k=d.createCanvas(x+S,b+w),_=k.getContext("2d");d.screen.setDefaults(_),this.renderChildren(_),new Nx(d,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(_,0,0,x+S,b+w);var C=d.createCanvas(x+S,b+w),R=C.getContext("2d");d.screen.setDefaults(R),g.render(R),R.globalCompositeOperation="destination-in",R.fillStyle=_.createPattern(k,"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(g,P)}},{key:"render",value:function render(h){}}]),MaskElement}(Xm);function _createSuper$F(h){var g=function _isNativeReflectConstruct$F(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}Ix.ignoreStyles=["mask","transform","clip-path"];var Lx=function noop(){},Dx=function(h){kg(ClipPathElement,h);var g=_createSuper$F(ClipPathElement);function ClipPathElement(){var h;return xv(this,ClipPathElement),(h=g.apply(this,arguments)).type="clipPath",h}return bv(ClipPathElement,[{key:"apply",value:function apply(h){var g,d=this.document,x=gm(h),b=h.beginPath,S=h.closePath;x&&(x.beginPath=Lx,x.closePath=Lx),vm(b,h,[]),Sp(g=this.children).call(g,(function(g){if(void 0!==g.path){var b=void 0!==g.elementTransform?g.elementTransform():null;b||(b=qm.fromElement(d,g)),b&&b.apply(h),g.path(h),x&&(x.closePath=S),b&&b.unapply(h)}})),vm(S,h,[]),h.clip(),x&&(x.beginPath=b,x.closePath=S)}},{key:"render",value:function render(h){}}]),ClipPathElement}(Xm);function _createSuper$G(h){var g=function _isNativeReflectConstruct$G(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}var jx=function(h){kg(FilterElement,h);var g=_createSuper$G(FilterElement);function FilterElement(){var h;return xv(this,FilterElement),(h=g.apply(this,arguments)).type="filter",h}return bv(FilterElement,[{key:"apply",value:function apply(h,g){var d=this.document,x=this.children,b=g.getBoundingBox(h);if(b){var S=0,w=0;Sp(x).call(x,(function(h){var g=h.extraFilterDistance||0;S=Math.max(S,g),w=Math.max(w,g)}));var E=Math.floor(b.width),A=Math.floor(b.height),P=E+2*S,k=A+2*w;if(!(P<1||k<1)){var _=Math.floor(b.x),C=Math.floor(b.y),R=this.removeStyles(g,FilterElement.ignoreStyles),M=d.createCanvas(P,k),N=M.getContext("2d");d.screen.setDefaults(N),N.translate(-_+S,-C+w),g.render(N),Sp(x).call(x,(function(h){"function"==typeof h.apply&&h.apply(N,0,0,P,k)})),h.drawImage(M,0,0,P,k,_-S,C-w,P,k),this.restoreStyles(g,R)}}}},{key:"render",value:function render(h){}}]),FilterElement}(Xm);function _createSuper$H(h){var g=function _isNativeReflectConstruct$H(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}function _createSuper$I(h){var g=function _isNativeReflectConstruct$I(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}function _createSuper$J(h){var g=function _isNativeReflectConstruct$J(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}function _createSuper$K(h){var g=function _isNativeReflectConstruct$K(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}function _createSuper$L(h){var g=function _isNativeReflectConstruct$L(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}function _createSuper$M(h){var g=function _isNativeReflectConstruct$M(){if("undefined"==typeof Reflect||!wg)return!1;if(wg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wg(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,x=Ig(h);if(g){var b=Ig(this).constructor;d=wg(x,arguments,b)}else d=x.apply(this,arguments);return Rg(this,d)}}jx.ignoreStyles=["filter","transform","clip-path"];var Vx={svg:nx,rect:ix,circle:ax,ellipse:ox,line:ux,polyline:sx,polygon:cx,path:rx,pattern:lx,marker:fx,defs:hx,linearGradient:vx,radialGradient:gx,stop:dx,animate:mx,animateColor:xx,animateTransform:bx,font:Sx,"font-face":wx,"missing-glyph":Ex,glyph:Ax,text:Km,tspan:Jm,tref:Px,a:Tx,textPath:kx,image:_x,g:px,symbol:Ox,style:Rx,use:Mx,mask:Ix,clipPath:Dx,filter:jx,feDropShadow:function(h){kg(FeDropShadowElement,h);var g=_createSuper$H(FeDropShadowElement);function FeDropShadowElement(h,d,x){var b;return xv(this,FeDropShadowElement),(b=g.call(this,h,d,x)).type="feDropShadow",b.addStylesFromStyleDefinition(),b}return bv(FeDropShadowElement,[{key:"apply",value:function apply(h,g,d,x,b){}}]),FeDropShadowElement}(Xm),feMorphology:function(h){kg(FeMorphologyElement,h);var g=_createSuper$I(FeMorphologyElement);function FeMorphologyElement(){var h;return xv(this,FeMorphologyElement),(h=g.apply(this,arguments)).type="feMorphology",h}return bv(FeMorphologyElement,[{key:"apply",value:function apply(h,g,d,x,b){}}]),FeMorphologyElement}(Xm),feComposite:function(h){kg(FeCompositeElement,h);var g=_createSuper$J(FeCompositeElement);function FeCompositeElement(){var h;return xv(this,FeCompositeElement),(h=g.apply(this,arguments)).type="feComposite",h}return bv(FeCompositeElement,[{key:"apply",value:function apply(h,g,d,x,b){}}]),FeCompositeElement}(Xm),feColorMatrix:Nx,feGaussianBlur:function(h){kg(FeGaussianBlurElement,h);var g=_createSuper$K(FeGaussianBlurElement);function FeGaussianBlurElement(h,d,x){var b;return xv(this,FeGaussianBlurElement),(b=g.call(this,h,d,x)).type="feGaussianBlur",b.blurRadius=Math.floor(b.getAttribute("stdDeviation").getNumber()),b.extraFilterDistance=b.blurRadius,b}return bv(FeGaussianBlurElement,[{key:"apply",value:function apply(h,g,d,x,b){var S=this.document,w=this.blurRadius,E=S.window?S.window.document.body:null,A=h.canvas;A.id=S.getUniqueId(),E&&(A.style.display="none",E.appendChild(A)),processCanvasRGBA(A,g,d,x,b,w),E&&E.removeChild(A)}}]),FeGaussianBlurElement}(Xm),title:function(h){kg(TitleElement,h);var g=_createSuper$L(TitleElement);function TitleElement(){var h;return xv(this,TitleElement),(h=g.apply(this,arguments)).type="title",h}return TitleElement}(Xm),desc:function(h){kg(DescElement,h);var g=_createSuper$M(DescElement);function DescElement(){var h;return xv(this,DescElement),(h=g.apply(this,arguments)).type="desc",h}return DescElement}(Xm)};function ownKeys$1$1(h,g){var d=jp(h);if(Lp){var x=Lp(h);g&&(x=Ip(x).call(x,(function(g){return Pp(h,g).enumerable}))),d.push.apply(d,x)}return d}function _createImage(){return(_createImage=gv(Vp.mark((function _callee(h){var g,d,x=arguments;return Vp.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:return g=x.length>1&&void 0!==x[1]&&x[1],d=document.createElement("img"),g&&(d.crossOrigin="Anonymous"),b.abrupt("return",new Gv((function(g,x){d.onload=function(){g(d)},d.onerror=function(){x()},d.src=h})));case 4:case"end":return b.stop()}}),_callee)})))).apply(this,arguments)}var $x=function(){function Document(h){var g,d,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,A=x.createCanvas,P=void 0===A?Document.createCanvas:A,k=x.createImage,_=void 0===k?Document.createImage:k,C=x.anonymousCrossOrigin;xv(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=P,this.createImage=this.bindCreateImage(_,C),this.screen.wait(Zv(g=this.isImagesLoaded).call(g,this)),this.screen.wait(Zv(d=this.isFontsLoaded).call(d,this))}return bv(Document,[{key:"bindCreateImage",value:function bindCreateImage(h,g){return"boolean"==typeof g?function(d,x){return h(d,"boolean"==typeof x?x:g)}: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 zv(h=this.images).call(h,(function(h){return h.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){var h;return zv(h=this.fonts).call(h,(function(h){return h.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(h){var g=this.createElement(h.documentElement);return g.root=!0,g.addStylesFromStyleDefinition(),this.documentElement=g,g}},{key:"createElement",value:function createElement(h){var g=h.nodeName.replace(/^[^:]+:/,""),d=Document.elementTypes[g];return void 0!==d?new d(this,h):new Ym(this,h)}},{key:"createTextNode",value:function createTextNode(h){return new tx(this,h)}},{key:"setViewBox",value:function setViewBox(h){this.screen.setViewBox(function _objectSpread$1(h){for(var g=1;g<arguments.length;g++){var d,x=null!=arguments[g]?arguments[g]:{};if(g%2)Sp(d=ownKeys$1$1(Object(x),!0)).call(d,(function(g){mv(h,g,x[g])}));else if(hp)lp(h,hp(x));else{var b;Sp(b=ownKeys$1$1(Object(x))).call(b,(function(g){cp(h,g,Pp(x,g))}))}}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,g){var d=jp(h);if(Lp){var x=Lp(h);g&&(x=Ip(x).call(x,(function(g){return Pp(h,g).enumerable}))),d.push.apply(d,x)}return d}function _objectSpread$2(h){for(var g=1;g<arguments.length;g++){var d,x=null!=arguments[g]?arguments[g]:{};if(g%2)Sp(d=ownKeys$2$1(Object(x),!0)).call(d,(function(g){mv(h,g,x[g])}));else if(hp)lp(h,hp(x));else{var b;Sp(b=ownKeys$2$1(Object(x))).call(b,(function(g){cp(h,g,Pp(x,g))}))}}return h}$x.createCanvas=function createCanvas(h,g){var d=document.createElement("canvas");return d.width=h,d.height=g,d},$x.createImage=function createImage(h){return _createImage.apply(this,arguments)},$x.elementTypes=Vx;var Fx=function(){function Canvg(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};xv(this,Canvg),this.parser=new Vm(d),this.screen=new Lm(h,d),this.options=d;var x=new $x(this,d),b=x.createDocumentElement(g);this.document=x,this.documentElement=b}var h,g;return bv(Canvg,[{key:"fork",value:function fork(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(h,g,_objectSpread$2(_objectSpread$2({},this.options),d))}},{key:"forkString",value:function forkString(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(h,g,_objectSpread$2(_objectSpread$2({},this.options),d))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(g=gv(Vp.mark((function _callee(){var h,g=arguments;return Vp.wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:return h=g.length>0&&void 0!==g[0]?g[0]:{},this.start(_objectSpread$2({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},h)),d.next=4,this.ready();case 4:this.stop();case 5:case"end":return d.stop()}}),_callee,this)}))),function render(){return g.apply(this,arguments)})},{key:"start",value:function start(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=this.documentElement,d=this.screen,x=this.options;d.start(g,_objectSpread$2(_objectSpread$2({enableRedraw:!0},x),h))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(h,g,d)}}],[{key:"from",value:(h=gv(Vp.mark((function _callee2(h,g){var d,x,b,S=arguments;return Vp.wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:return d=S.length>2&&void 0!==S[2]?S[2]:{},x=new Vm(d),w.next=4,x.parse(g);case 4:return b=w.sent,w.abrupt("return",new Canvg(h,b,d));case 6:case"end":return w.stop()}}),_callee2)}))),function from(g,d){return h.apply(this,arguments)})},{key:"fromString",value:function fromString(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},x=new Vm(d),b=x.parseFromString(g);return new Canvg(h,b,d)}}]),Canvg}();function __variableDynamicImportRuntime0__(h){switch(h){case"./locale/en.js":return Promise.resolve().then((function(){return Ux}));case"./locale/zh-CN.js":return Promise.resolve().then((function(){return zx}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+h))}}var Bx=function(){var h=_asyncToGenerator(regeneratorRuntime.mark((function _callee(h){var g;return regeneratorRuntime.wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,__variableDynamicImportRuntime0__("./locale/".concat(encodeURIComponent(h),".js"));case 3:g=d.sent,d.next=12;break;case 6:return d.prev=6,d.t0=d.catch(0),console.error("Missing translation (".concat(h,") - using 'en'")),d.next=11,Promise.resolve().then((function(){return Ux}));case 11:g=d.sent;case 12:return d.abrupt("return",g.default);case 13:case"end":return d.stop()}}),_callee,null,[[0,6]])})));return function loadExtensionTranslation(g){return h.apply(this,arguments)}}(),Ux=(h("default",{name:"server_moinsave",init:function init(h){var g=this;return _asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var d,x,b,S,w;return regeneratorRuntime.wrap((function _callee3$(E){for(;;)switch(E.prev=E.next){case 0:return d=h.$,x=h.encode64,h.importLocale,b=g,E.next=4,Bx(b.curPrefs.lang);case 4:S=E.sent,w=b.canvas,"/+modify",d('<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,g){return _asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var h,b,E,A,P,k,_,C;return regeneratorRuntime.wrap((function _callee2$(R){for(;;)switch(R.prev=R.next){case 0:return h='<?xml version="1.0"?>\n'+g,b=new URL(location),E=b.pathname,A=E.replace(/\/+get\//,""),P=x(h),d("#export_canvas").length||d("<canvas>",{id:"export_canvas"}).hide().appendTo("body"),(k=d("#export_canvas")[0]).width=w.contentW,k.height=w.contentH,R.next=10,Fx(k,h);case 10:_=k.toDataURL("image/png"),C=x(_),d("<form>").attr({method:"post",action:"/+modify/"+A,target:"output_frame"}).append('\n <input type="hidden" name="png_data" value="'.concat(C,'">\n <input type="hidden" name="filepath" value="').concat(P,'">\n <input type="hidden" name="filename" value="drawing.svg">\n <input type="hidden" name="contenttype" value="application/x-svgdraw">\n ')).appendTo("body").submit().remove(),d.alert(S.saved),top.window.location="/"+A;case 15:case"end":return R.stop()}}),_callee2)})))()}});case 9:case"end":return E.stop()}}),_callee3)})))()}}),Object.freeze({__proto__:null,default:{saved:"Saved! Return to Item View!",hiddenframe:"Moinsave frame to store hidden values"}})),zx=Object.freeze({__proto__:null,default:{saved:"已保存! 返回视图!",hiddenframe:"Moinsave frame to store hidden values"}})}}}));
|