diff --git a/.DS_Store b/.DS_Store index e3ea8d7392..e2da74597a 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/266.2e3b7bfd.async.js b/266.2e3b7bfd.async.js new file mode 100644 index 0000000000..a6e339e285 --- /dev/null +++ b/266.2e3b7bfd.async.js @@ -0,0 +1,18 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[266],{"++4Y":function(m,x,t){var c=t("eRwv");m.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"/TZh":function(m,x,t){var c=t("11yv"),f=c("match");m.exports=function(p){var g=/./;try{"/./"[p](g)}catch(y){try{return g[f]=!1,"/./"[p](g)}catch(j){}}return!1}},"/pbl":function(m,x,t){var c=t("eE3R");m.exports=/web0s(?!.*chrome)/i.test(c)},"0r2v":function(m,x,t){var c=t("aLaa");m.exports=c([].slice)},"11yv":function(m,x,t){var c=t("Ks5W"),f=t("aNr2"),p=t("YELS"),g=t("MURR"),y=t("plO+"),j=t("1Sr1"),T=f("wks"),A=c.Symbol,M=A&&A.for,U=j?A:A&&A.withoutSetter||g;m.exports=function(F){if(!p(T,F)||!(y||typeof T[F]=="string")){var N="Symbol."+F;y&&p(A,F)?T[F]=A[F]:j&&M?T[F]=M(N):T[F]=U(N)}return T[F]}},"1Sr1":function(m,x,t){var c=t("plO+");m.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"1mOU":function(m,x){var t=Function.prototype,c=t.apply,f=t.bind,p=t.call;m.exports=typeof Reflect=="object"&&Reflect.apply||(f?p.bind(c):function(){return p.apply(c,arguments)})},"2lHc":function(m,x,t){var c=t("Ks5W"),f=t("m7zg"),p=t("JTf3"),g=t("SwuV"),y=c.TypeError;m.exports=function(j,T){var A,M;if(T==="string"&&p(A=j.toString)&&!g(M=f(A,j)))return M;if(p(A=j.valueOf)&&!g(M=f(A,j)))return M;if(T!=="string"&&p(A=j.toString)&&!g(M=f(A,j)))return M;throw y("Can't convert object to primitive value")}},"3Xd8":function(m,x,t){var c=t("aLaa");m.exports=c({}.isPrototypeOf)},"3agc":function(m,x,t){"use strict";var c=t("qjFr").IteratorPrototype,f=t("XFuk"),p=t("4uGi"),g=t("ueY1"),y=t("AoAp"),j=function(){return this};m.exports=function(T,A,M,U){var F=A+" Iterator";return T.prototype=f(c,{next:p(+!U,M)}),g(T,F,!1,!0),y[F]=j,T}},"3fk+":function(m,x,t){var c=t("Ks5W"),f=t("m7zg"),p=t("WxoH"),g=t("JTf3"),y=t("ba8b"),j=t("WMbf"),T=c.TypeError;m.exports=function(A,M){var U=A.exec;if(g(U)){var F=f(U,A,M);return F!==null&&p(F),F}if(y(A)==="RegExp")return f(j,A,M);throw T("RegExp#exec called on incompatible receiver")}},"3n0U":function(m,x,t){var c=t("11yv"),f=t("AoAp"),p=c("iterator"),g=Array.prototype;m.exports=function(y){return y!==void 0&&(f.Array===y||g[p]===y)}},"4Qxg":function(m,x,t){var c=t("eRwv"),f=t("Ks5W"),p=f.RegExp;m.exports=c(function(){var g=p(".","s");return!(g.dotAll&&g.exec(` +`)&&g.flags==="s")})},"4YbN":function(m,x,t){var c=t("aLaa"),f=t("eRwv"),p=t("JTf3"),g=t("g8+u"),y=t("RYfq"),j=t("sNJV"),T=function(){},A=[],M=y("Reflect","construct"),U=/^\s*(?:class|function)\b/,F=c(U.exec),N=!U.exec(T),V=function($){if(!p($))return!1;try{return M(T,A,$),!0}catch(Z){return!1}},H=function($){if(!p($))return!1;switch(g($)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return N||!!F(U,j($))}catch(Z){return!0}};H.sham=!0,m.exports=!M||f(function(){var G;return V(V.call)||!V(Object)||!V(function(){G=!0})||G})?H:V},"4gdG":function(m,x,t){var c=t("Ks5W"),f=t("nATg"),p="__core-js_shared__",g=c[p]||f(p,{});m.exports=g},"4uGi":function(m,x){m.exports=function(t,c){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:c}}},"5JCY":function(m,x,t){var c=t("N6FT").PROPER,f=t("eRwv"),p=t("noWC"),g="\u200B\x85\u180E";m.exports=function(y){return f(function(){return!!p[y]()||g[y]()!==g||c&&p[y].name!==y})}},"5r2E":function(m,x,t){"use strict";var c={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,p=f&&!c.call({1:2},1);x.f=p?function(y){var j=f(this,y);return!!j&&j.enumerable}:c},"721z":function(m,x,t){var c=t("Ks5W"),f=t("XaNE"),p=c.Object;m.exports=function(g){return p(f(g))}},"8HiI":function(m,x,t){var c=t("Ks5W"),f=t("JTf3"),p=t("IL+x"),g=c.TypeError;m.exports=function(y){if(f(y))return y;throw g(p(y)+" is not a function")}},"8ODz":function(m,x,t){var c=t("++4Y"),f=t("FlRv"),p=t("4uGi");m.exports=c?function(g,y,j){return f.f(g,y,p(1,j))}:function(g,y,j){return g[y]=j,g}},"8Ys4":function(m,x,t){var c=t("Ks5W"),f=t("n6S8"),p=t("tMNq"),g=t("oauk"),y=c.Array,j=Math.max;m.exports=function(T,A,M){for(var U=p(T),F=f(A,U),N=f(M===void 0?U:M,U),V=y(j(N-F,0)),H=0;F0&&arguments[0]!==void 0?arguments[0]:{},u=h.DOMParser,r={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:u,createCanvas:function(e,o){return new OffscreenCanvas(e,o)},createImage:function(e){return fe()(re.a.mark(function o(){var n,i,s;return re.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,fetch(e);case 2:return n=d.sent,d.next=5,n.blob();case 5:return i=d.sent,d.next=8,createImageBitmap(i);case 8:return s=d.sent,d.abrupt("return",s);case 10:case"end":return d.stop()}},o)}))()}};return(typeof DOMParser!="undefined"||typeof u=="undefined")&&Reflect.deleteProperty(r,"DOMParser"),r}function Ue(h){var u=h.DOMParser,r=h.canvas,a=h.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:u,fetch:a,createCanvas:r.createCanvas,createImage:r.loadImage}}var Ke=Object.freeze({__proto__:null,offscreen:De,node:Ue});function Be(h){return h.replace(/(?!\u3000)\s+/gm," ")}function we(h){return h.replace(/^[\n \t]+/,"")}function Le(h){return h.replace(/[\n \t]+$/,"")}function Re(h){var u=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return u.map(parseFloat)}var Je=/^[A-Z-]+$/;function st(h){return Je.test(h)?h.toLowerCase():h}function _e(h){var u=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(h)||[];return u[2]||u[3]||u[4]}function lt(h){if(!h.startsWith("rgb"))return h;var u=3,r=h.replace(/\d+(\.\d+)?/g,function(a,e){return u--&&e?String(Math.round(parseFloat(a))):a});return r}var gt=/(\[[^\]]+\])/g,mt=/(#[^\s+>~.[:]+)/g,wt=/(\.[^\s+>~.[:]+)/g,Mt=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Lt=/(:[\w-]+\([^)]*\))/gi,ut=/(:[^\s+>~.[:]+)/g,ct=/([^\s+>~.[:]+)/g;function rt(h,u){var r=u.exec(h);return r?[h.replace(u," "),r.length]:[h,0]}function ue(h){var u=[0,0,0],r=h.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,e=rt(r,gt),o=Object(ie.a)(e,2);r=o[0],a=o[1],u[1]+=a;var n=rt(r,mt),i=Object(ie.a)(n,2);r=i[0],a=i[1],u[0]+=a;var s=rt(r,wt),l=Object(ie.a)(s,2);r=l[0],a=l[1],u[1]+=a;var d=rt(r,Mt),v=Object(ie.a)(d,2);r=v[0],a=v[1],u[2]+=a;var b=rt(r,Lt),L=Object(ie.a)(b,2);r=L[0],a=L[1],u[1]+=a;var Q=rt(r,ut),ne=Object(ie.a)(Q,2);r=ne[0],a=ne[1],u[1]+=a,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var le=rt(r,ct),ae=Object(ie.a)(le,2);return r=ae[0],a=ae[1],u[2]+=a,u.join("")}var he=1e-8;function xe(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function Oe(h,u){return(h[0]*u[0]+h[1]*u[1])/(xe(h)*xe(u))}function Pe(h,u){return(h[0]*u[1]0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,e=this.name;return Be(this.getString()).trim().split(r).map(function(o){return new h(a,e,o)})}},{key:"hasValue",value:function(r){var a=this.value;return a!==null&&a!==""&&(r||a!==0)&&typeof a!="undefined"}},{key:"isString",value:function(r){var a=this.value,e=typeof a=="string";return!e||!r?e:r.test(a)}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var r=this.getString();switch(!0){case r.endsWith("px"):case/^[0-9]+$/.test(r):return!0;default:return!1}}},{key:"setValue",value:function(r){return this.value=r,this}},{key:"getValue",value:function(r){return typeof r=="undefined"||this.hasValue()?this.value:r}},{key:"getNumber",value:function(r){if(!this.hasValue())return typeof r=="undefined"?0:parseFloat(r);var a=this.value,e=parseFloat(a);return this.isString(/%$/)&&(e/=100),e}},{key:"getString",value:function(r){return typeof r=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(r)}},{key:"getColor",value:function(r){var a=this.getString(r);return this.isNormalizedColor||(this.isNormalizedColor=!0,a=lt(a),this.value=a),a}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var e=typeof r=="boolean"?[void 0,r]:[r],o=Object(ie.a)(e,2),n=o[0],i=o[1],s=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(n);default:{var l=this.getNumber();return a&&l<1?l*s.computeSize(n):l}}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}},{key:"getRadians",value:function(){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(){var r=this.getString(),a=/#([^)'"]+)/.exec(r);return a&&(a=a[1]),a||(a=r),this.document.definitions[a]}},{key:"getFillStyleDefinition",value:function(r,a){var e=this.getDefinition();if(!e)return null;if(typeof e.createGradient=="function")return e.createGradient(this.document.ctx,r,a);if(typeof e.createPattern=="function"){if(e.getHrefAttribute().hasValue()){var o=e.getAttribute("patternTransform");e=e.getHrefAttribute().getDefinition(),o.hasValue()&&e.getAttribute("patternTransform",!0).setValue(o.value)}return e.createPattern(this.document.ctx,r,a)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?h.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(r){for(var a=this.getColor(),e=a.length,o=0,n=0;n1&&arguments[1]!==void 0?arguments[1]:0,e=Re(r),o=Object(ie.a)(e,2),n=o[0],i=n===void 0?a:n,s=o[1],l=s===void 0?a:s;return new h(i,l)}},{key:"parseScale",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e=Re(r),o=Object(ie.a)(e,2),n=o[0],i=n===void 0?a:n,s=o[1],l=s===void 0?i:s;return new h(i,l)}},{key:"parsePath",value:function(r){for(var a=Re(r),e=a.length,o=[],n=0;n0}},{key:"runEvents",value:function(){if(!this.working)return;var r=this.screen,a=this.events,e=this.eventElements,o=r.ctx.canvas.style;o&&(o.cursor=""),a.forEach(function(n,i){for(var s=n.run,l=e[i];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}},{key:"checkPath",value:function(r,a){if(!this.working||!a)return;var e=this.events,o=this.eventElements;e.forEach(function(n,i){var s=n.x,l=n.y;!o[i]&&a.isPointInPath&&a.isPointInPath(s,l)&&(o[i]=r)})}},{key:"checkBoundingBox",value:function(r,a){if(!this.working||!a)return;var e=this.events,o=this.eventElements;e.forEach(function(n,i){var s=n.x,l=n.y;!o[i]&&a.isPointInBox(s,l)&&(o[i]=r)})}},{key:"mapXY",value:function(r,a){for(var e=this.screen,o=e.window,n=e.ctx,i=new We(r,a),s=n.canvas;s;)i.x-=s.offsetLeft,i.y-=s.offsetTop,s=s.offsetParent;return o.scrollX&&(i.x+=o.scrollX),o.scrollY&&(i.y+=o.scrollY),i}},{key:"onClick",value:function(r){var a=this.mapXY(r.clientX,r.clientY),e=a.x,o=a.y;this.events.push({type:"onclick",x:e,y:o,run:function(i){i.onClick&&i.onClick()}})}},{key:"onMouseMove",value:function(r){var a=this.mapXY(r.clientX,r.clientY),e=a.x,o=a.y;this.events.push({type:"onmousemove",x:e,y:o,run:function(i){i.onMouseMove&&i.onMouseMove()}})}}]),h}(),Qt=typeof window!="undefined"?window:null,Jt=typeof fetch!="undefined"?fetch.bind(void 0):null,Ot=function(){function h(u){Object(Y.a)(this,h);var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.fetch,e=a===void 0?Jt:a,o=r.window,n=o===void 0?Qt:o;this.ctx=u,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Et,this.mouse=new Xt(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=e}return Object(J.a)(h,[{key:"wait",value:function(r){this.waits.push(r)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var r=this.waits.every(function(a){return a()});return r&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=r,r}},{key:"setDefaults",value:function(r){r.strokeStyle="rgba(0,0,0,0)",r.lineCap="butt",r.lineJoin="miter",r.miterLimit=4}},{key:"setViewBox",value:function(r){var a=r.document,e=r.ctx,o=r.aspectRatio,n=r.width,i=r.desiredWidth,s=r.height,l=r.desiredHeight,d=r.minX,v=d===void 0?0:d,b=r.minY,L=b===void 0?0:b,Q=r.refX,ne=r.refY,le=r.clip,ae=le===void 0?!1:le,be=r.clipX,ve=be===void 0?0:be,de=r.clipY,ye=de===void 0?0:de,Ie=Be(o).replace(/^defer\s/,""),Ne=Ie.split(" "),ze=Object(ie.a)(Ne,2),tt=ze[0],nt=ze[1],Qe=tt||"xMidYMid",Ye=nt||"meet",qe=n/i,ht=s/l,He=Math.min(qe,ht),xt=Math.max(qe,ht),Nt=i,Dt=l;Ye==="meet"&&(Nt*=He,Dt*=He),Ye==="slice"&&(Nt*=xt,Dt*=xt);var Bn=new ge(a,"refX",Q),Fn=new ge(a,"refY",ne),Wn=Bn.hasValue()&&Fn.hasValue();if(Wn&&e.translate(-He*Bn.getPixels("x"),-He*Fn.getPixels("y")),ae){var kn=He*ve,Gn=He*ye;e.beginPath(),e.moveTo(kn,Gn),e.lineTo(n,Gn),e.lineTo(n,s),e.lineTo(kn,s),e.closePath(),e.clip()}if(!Wn){var zn=Ye==="meet"&&He===ht,Hn=Ye==="slice"&&xt===ht,Kn=Ye==="meet"&&He===qe,Yn=Ye==="slice"&&xt===qe;Qe.startsWith("xMid")&&(zn||Hn)&&e.translate(n/2-Nt/2,0),Qe.endsWith("YMid")&&(Kn||Yn)&&e.translate(0,s/2-Dt/2),Qe.startsWith("xMax")&&(zn||Hn)&&e.translate(n-Nt,0),Qe.endsWith("YMax")&&(Kn||Yn)&&e.translate(0,s-Dt)}switch(!0){case Qe==="none":e.scale(qe,ht);break;case Ye==="meet":e.scale(He,He);break;case Ye==="slice":e.scale(xt,xt);break}e.translate(-v,-L)}},{key:"start",value:function(r){var a=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.enableRedraw,n=o===void 0?!1:o,i=e.ignoreMouse,s=i===void 0?!1:i,l=e.ignoreAnimation,d=l===void 0?!1:l,v=e.ignoreDimensions,b=v===void 0?!1:v,L=e.ignoreClear,Q=L===void 0?!1:L,ne=e.forceRedraw,le=e.scaleWidth,ae=e.scaleHeight,be=e.offsetX,ve=e.offsetY,de=this.FRAMERATE,ye=this.mouse,Ie=1e3/de;if(this.frameDuration=Ie,this.readyPromise=new Promise(function(Qe){a.resolveReady=Qe}),this.isReady()&&this.render(r,b,Q,le,ae,be,ve),!n)return;var Ne=Date.now(),ze=Ne,tt=0,nt=function Qe(){Ne=Date.now(),tt=Ne-ze,tt>=Ie&&(ze=Ne-tt%Ie,a.shouldUpdate(d,ne)&&(a.render(r,b,Q,le,ae,be,ve),ye.runEvents())),a.intervalId=Me()(Qe)};s||ye.start(),this.intervalId=Me()(nt)}},{key:"stop",value:function(){this.intervalId&&(Me.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(r,a){if(!r){var e=this.frameDuration,o=this.animations.reduce(function(n,i){return i.update(e)||n},!1);if(o)return!0}return typeof a=="function"&&a()||!this.isReadyLock&&this.isReady()?!0:!!this.mouse.hasEvents()}},{key:"render",value:function(r,a,e,o,n,i,s){var l=this.CLIENT_WIDTH,d=this.CLIENT_HEIGHT,v=this.viewPort,b=this.ctx,L=this.isFirstRender,Q=b.canvas;v.clear(),Q.width&&Q.height?v.setCurrent(Q.width,Q.height):v.setCurrent(l,d);var ne=r.getStyle("width"),le=r.getStyle("height");!a&&(L||typeof o!="number"&&typeof n!="number")&&(ne.hasValue()&&(Q.width=ne.getPixels("x"),Q.style&&(Q.style.width="".concat(Q.width,"px"))),le.hasValue()&&(Q.height=le.getPixels("y"),Q.style&&(Q.style.height="".concat(Q.height,"px"))));var ae=Q.clientWidth||Q.width,be=Q.clientHeight||Q.height;if(a&&ne.hasValue()&&le.hasValue()&&(ae=ne.getPixels("x"),be=le.getPixels("y")),v.setCurrent(ae,be),typeof i=="number"&&r.getAttribute("x",!0).setValue(i),typeof s=="number"&&r.getAttribute("y",!0).setValue(s),typeof o=="number"||typeof n=="number"){var ve=Re(r.getAttribute("viewBox").getString()),de=0,ye=0;if(typeof o=="number"){var Ie=r.getStyle("width");Ie.hasValue()?de=Ie.getPixels("x")/o:isNaN(ve[2])||(de=ve[2]/o)}if(typeof n=="number"){var Ne=r.getStyle("height");Ne.hasValue()?ye=Ne.getPixels("y")/n:isNaN(ve[3])||(ye=ve[3]/n)}de||(de=ye),ye||(ye=de),r.getAttribute("width",!0).setValue(o),r.getAttribute("height",!0).setValue(n);var ze=r.getStyle("transform",!0,!0);ze.setValue("".concat(ze.getString()," scale(").concat(1/de,", ").concat(1/ye,")"))}e||b.clearRect(0,0,ae,be),r.render(b),L&&(this.isFirstRender=!1)}}]),h}();Ot.defaultWindow=Qt,Ot.defaultFetch=Jt;var $n=Ot.defaultFetch,Xn=typeof DOMParser!="undefined"?DOMParser:null,Pt=function(){function h(){Object(Y.a)(this,h);var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=u.fetch,a=r===void 0?$n:r,e=u.DOMParser,o=e===void 0?Xn:e;this.fetch=a,this.DOMParser=o}return Object(J.a)(h,[{key:"parse",value:function(r){var a=this;return fe()(re.a.mark(function e(){return re.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!r.startsWith("<")){n.next=2;break}return n.abrupt("return",a.parseFromString(r));case 2:return n.abrupt("return",a.load(r));case 3:case"end":return n.stop()}},e)}))()}},{key:"parseFromString",value:function(r){var a=new this.DOMParser;try{return this.checkDocument(a.parseFromString(r,"image/svg+xml"))}catch(e){return this.checkDocument(a.parseFromString(r,"text/xml"))}}},{key:"checkDocument",value:function(r){var a=r.getElementsByTagName("parsererror")[0];if(a)throw new Error(a.textContent);return r}},{key:"load",value:function(r){var a=this;return fe()(re.a.mark(function e(){var o,n;return re.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,a.fetch(r);case 2:return o=s.sent,s.next=5,o.text();case 5:return n=s.sent,s.abrupt("return",a.parseFromString(n));case 7:case"end":return s.stop()}},e)}))()}}]),h}(),Zt=function(){function h(u,r){Object(Y.a)(this,h),this.type="translate",this.point=null,this.point=We.parse(r)}return Object(J.a)(h,[{key:"apply",value:function(r){var a=this.point,e=a.x,o=a.y;r.translate(e||0,o||0)}},{key:"unapply",value:function(r){var a=this.point,e=a.x,o=a.y;r.translate(-1*e||0,-1*o||0)}},{key:"applyToPoint",value:function(r){var a=this.point,e=a.x,o=a.y;r.applyTransform([1,0,0,1,e||0,o||0])}}]),h}(),qt=function(){function h(u,r,a){Object(Y.a)(this,h),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var e=Re(r);this.angle=new ge(u,"angle",e[0]),this.originX=a[0],this.originY=a[1],this.cx=e[1]||0,this.cy=e[2]||0}return Object(J.a)(h,[{key:"apply",value:function(r){var a=this.cx,e=this.cy,o=this.originX,n=this.originY,i=this.angle,s=a+o.getPixels("x"),l=e+n.getPixels("y");r.translate(s,l),r.rotate(i.getRadians()),r.translate(-s,-l)}},{key:"unapply",value:function(r){var a=this.cx,e=this.cy,o=this.originX,n=this.originY,i=this.angle,s=a+o.getPixels("x"),l=e+n.getPixels("y");r.translate(s,l),r.rotate(-1*i.getRadians()),r.translate(-s,-l)}},{key:"applyToPoint",value:function(r){var a=this.cx,e=this.cy,o=this.angle,n=o.getRadians();r.applyTransform([1,0,0,1,a||0,e||0]),r.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),r.applyTransform([1,0,0,1,-a||0,-e||0])}}]),h}(),_t=function(){function h(u,r,a){Object(Y.a)(this,h),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var e=We.parseScale(r);(e.x===0||e.y===0)&&(e.x=he,e.y=he),this.scale=e,this.originX=a[0],this.originY=a[1]}return Object(J.a)(h,[{key:"apply",value:function(r){var a=this.scale,e=a.x,o=a.y,n=this.originX,i=this.originY,s=n.getPixels("x"),l=i.getPixels("y");r.translate(s,l),r.scale(e,o||e),r.translate(-s,-l)}},{key:"unapply",value:function(r){var a=this.scale,e=a.x,o=a.y,n=this.originX,i=this.originY,s=n.getPixels("x"),l=i.getPixels("y");r.translate(s,l),r.scale(1/e,1/o||e),r.translate(-s,-l)}},{key:"applyToPoint",value:function(r){var a=this.scale,e=a.x,o=a.y;r.applyTransform([e||0,0,0,o||0,0,0])}}]),h}(),Ut=function(){function h(u,r,a){Object(Y.a)(this,h),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Re(r),this.originX=a[0],this.originY=a[1]}return Object(J.a)(h,[{key:"apply",value:function(r){var a=this.originX,e=this.originY,o=this.matrix,n=a.getPixels("x"),i=e.getPixels("y");r.translate(n,i),r.transform(o[0],o[1],o[2],o[3],o[4],o[5]),r.translate(-n,-i)}},{key:"unapply",value:function(r){var a=this.originX,e=this.originY,o=this.matrix,n=o[0],i=o[2],s=o[4],l=o[1],d=o[3],v=o[5],b=0,L=0,Q=1,ne=1/(n*(d*Q-v*L)-i*(l*Q-v*b)+s*(l*L-d*b)),le=a.getPixels("x"),ae=e.getPixels("y");r.translate(le,ae),r.transform(ne*(d*Q-v*L),ne*(v*b-l*Q),ne*(s*L-i*Q),ne*(n*Q-s*b),ne*(i*v-s*d),ne*(s*l-n*v)),r.translate(-le,-ae)}},{key:"applyToPoint",value:function(r){r.applyTransform(this.matrix)}}]),h}(),Vt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="skew",n.angle=null,n.angle=new ge(a,"angle",e),n}return r}(Ut),en=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="skewX",n.matrix=[1,0,Math.tan(n.angle.getRadians()),1,0,0],n}return r}(Vt),tn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="skewY",n.matrix=[1,Math.tan(n.angle.getRadians()),0,1,0,0],n}return r}(Vt);function Qn(h){return Be(h).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Jn(h){var u=h.split("("),r=Object(ie.a)(u,2),a=r[0],e=r[1];return[a.trim(),e.trim().replace(")","")]}var St=function(){function h(u,r,a){var e=this;Object(Y.a)(this,h),this.document=u,this.transforms=[];var o=Qn(r);o.forEach(function(n){if(n==="none")return;var i=Jn(n),s=Object(ie.a)(i,2),l=s[0],d=s[1],v=h.transformTypes[l];typeof v!="undefined"&&e.transforms.push(new v(e.document,d,a))})}return Object(J.a)(h,[{key:"apply",value:function(r){for(var a=this.transforms,e=a.length,o=0;o=0;o--)a[o].unapply(r)}},{key:"applyToPoint",value:function(r){for(var a=this.transforms,e=a.length,o=0;o2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=u,this.node=r,this.captureTextNodes=e,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!r||r.nodeType!==1)return;if(Array.from(r.attributes).forEach(function(s){var l=st(s.nodeName);a.attributes[l]=new ge(u,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var o=this.getAttribute("style").getString().split(";").map(function(s){return s.trim()});o.forEach(function(s){if(!s)return;var l=s.split(":").map(function(L){return L.trim()}),d=Object(ie.a)(l,2),v=d[0],b=d[1];a.styles[v]=new ge(u,v,b)})}var n=u.definitions,i=this.getAttribute("id");i.hasValue()&&(n[i.getString()]||(n[i.getString()]=this)),Array.from(r.childNodes).forEach(function(s){if(s.nodeType===1)a.addChild(s);else if(e&&(s.nodeType===3||s.nodeType===4)){var l=u.createTextNode(s);l.getText().length>0&&a.addChild(l)}})}return Object(J.a)(h,[{key:"getAttribute",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=this.attributes[r];if(!e&&a){var o=new ge(this.document,r,"");return this.attributes[r]=o,o}return e||ge.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var r in this.attributes)if(r==="href"||r.endsWith(":href"))return this.attributes[r];return ge.empty(this.document)}},{key:"getStyle",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.styles[r];if(o)return o;var n=this.getAttribute(r);if(n!=null&&n.hasValue())return this.styles[r]=n,n;if(!e){var i=this.parent;if(i){var s=i.getStyle(r);if(s!=null&&s.hasValue())return s}}if(a){var l=new ge(this.document,r,"");return this.styles[r]=l,l}return o||ge.empty(this.document)}},{key:"render",value:function(r){if(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")return;if(r.save(),this.getStyle("mask").hasValue()){var a=this.getStyle("mask").getDefinition();a&&(this.applyEffects(r),a.apply(r,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var e=this.getStyle("filter").getDefinition();e&&(this.applyEffects(r),e.apply(r,this))}else this.setContext(r),this.renderChildren(r),this.clearContext(r);r.restore()}},{key:"setContext",value:function(r){}},{key:"applyEffects",value:function(r){var a=St.fromElement(this.document,this);a&&a.apply(r);var e=this.getStyle("clip-path",!1,!0);if(e.hasValue()){var o=e.getDefinition();o&&o.apply(r)}}},{key:"clearContext",value:function(r){}},{key:"renderChildren",value:function(r){this.children.forEach(function(a){a.render(r)})}},{key:"addChild",value:function(r){var a=r instanceof h?r:this.document.createElement(r);a.parent=this,h.ignoreChildTypes.includes(a.type)||this.children.push(a)}},{key:"matchesSelector",value:function(r){var a=this.node;if(typeof a.matches=="function")return a.matches(r);var e=a.getAttribute("class");return!e||e===""?!1:e.split(" ").some(function(o){return".".concat(o)===r})}},{key:"addStylesFromStyleDefinition",value:function(){var r=this.document,a=r.styles,e=r.stylesSpecificity;for(var o in a)if(!o.startsWith("@")&&this.matchesSelector(o)){var n=a[o],i=e[o];if(n)for(var s in n){var l=this.stylesSpecificity[s];typeof l=="undefined"&&(l="000"),i>=l&&(this.styles[s]=n[s],this.stylesSpecificity[s]=i)}}}},{key:"removeStyles",value:function(r,a){var e=a.reduce(function(o,n){var i=r.getStyle(n);if(!i.hasValue())return o;var s=i.getString();return i.setValue(""),[].concat(Object(B.a)(o),[[n,s]])},[]);return e}},{key:"restoreStyles",value:function(r,a){a.forEach(function(e){var o=Object(ie.a)(e,2),n=o[0],i=o[1];r.getStyle(n,!0).setValue(i)})}}]),h}();Ve.ignoreChildTypes=["title"];var nn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){return Object(Y.a)(this,r),u.call(this,a,e,o)}return r}(Ve);function Zn(h){var u=h.trim();return/^('|")/.test(u)?u:'"'.concat(u,'"')}function qn(h){return typeof c=="undefined"?h:h.trim().split(",").map(Zn).join(",")}function _n(h){if(!h)return"";var u=h.trim().toLowerCase();switch(u){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return u;default:return/^oblique\s+(-|)\d+deg$/.test(u)?u:""}}function er(h){if(!h)return"";var u=h.trim().toLowerCase();switch(u){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return u;default:return/^[\d.]+$/.test(u)?u:""}}var ot=function(){function h(u,r,a,e,o,n){Object(Y.a)(this,h);var i=n?typeof n=="string"?h.parse(n):n:{};this.fontFamily=o||i.fontFamily,this.fontSize=e||i.fontSize,this.fontStyle=u||i.fontStyle,this.fontWeight=a||i.fontWeight,this.fontVariant=r||i.fontVariant}return Object(J.a)(h,[{key:"toString",value:function(){return[_n(this.fontStyle),this.fontVariant,er(this.fontWeight),this.fontSize,qn(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,e="",o="",n="",i="",s="",l=Be(r).trim().split(" "),d={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(v){switch(!0){case(!d.fontStyle&&h.styles.includes(v)):v!=="inherit"&&(e=v),d.fontStyle=!0;break;case(!d.fontVariant&&h.variants.includes(v)):v!=="inherit"&&(o=v),d.fontStyle=!0,d.fontVariant=!0;break;case(!d.fontWeight&&h.weights.includes(v)):v!=="inherit"&&(n=v),d.fontStyle=!0,d.fontVariant=!0,d.fontWeight=!0;break;case!d.fontSize:if(v!=="inherit"){var b=v.split("/"),L=Object(ie.a)(b,1);i=L[0]}d.fontStyle=!0,d.fontVariant=!0,d.fontWeight=!0,d.fontSize=!0;break;default:v!=="inherit"&&(s+=v)}}),new h(e,o,n,i,s,a)}}]),h}();ot.styles="normal|italic|oblique|inherit",ot.variants="normal|small-caps|inherit",ot.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var et=function(){function h(){Object(Y.a)(this,h);var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=u,this.y1=r,this.x2=a,this.y2=e,this.addPoint(u,r),this.addPoint(a,e)}return Object(J.a)(h,[{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}},{key:"addPoint",value:function(r,a){typeof r!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=r,this.x2=r),rthis.x2&&(this.x2=r)),typeof a!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=a,this.y2=a),athis.y2&&(this.y2=a))}},{key:"addX",value:function(r){this.addPoint(r,null)}},{key:"addY",value:function(r){this.addPoint(null,r)}},{key:"addBoundingBox",value:function(r){if(!r)return;var a=r.x1,e=r.y1,o=r.x2,n=r.y2;this.addPoint(a,e),this.addPoint(o,n)}},{key:"sumCubic",value:function(r,a,e,o,n){return Math.pow(1-r,3)*a+3*Math.pow(1-r,2)*r*e+3*(1-r)*Math.pow(r,2)*o+Math.pow(r,3)*n}},{key:"bezierCurveAdd",value:function(r,a,e,o,n){var i=6*a-12*e+6*o,s=-3*a+9*e-9*o+3*n,l=3*e-3*a;if(s===0){if(i===0)return;var d=-l/i;0=o.length-1}},{key:"next",value:function(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}},{key:"getPoint",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",n=new We(this.command[e],this.command[o]);return this.makeAbsolute(n)}},{key:"getAsControlPoint",value:function(e,o){var n=this.getPoint(e,o);return this.control=n,n}},{key:"getAsCurrentPoint",value:function(e,o){var n=this.getPoint(e,o);return this.current=n,n}},{key:"getReflectedControlPoint",value:function(){var e=this.previousCommand.type;if(e!==Se.a.CURVE_TO&&e!==Se.a.SMOOTH_CURVE_TO&&e!==Se.a.QUAD_TO&&e!==Se.a.SMOOTH_QUAD_TO)return this.current;var o=this.current,n=o.x,i=o.y,s=this.control,l=s.x,d=s.y,v=new We(2*n-l,2*i-d);return v}},{key:"makeAbsolute",value:function(e){if(this.command.relative){var o=this.current,n=o.x,i=o.y;e.x+=n,e.y+=i}return e}},{key:"addMarker",value:function(e,o,n){var i=this.points,s=this.angles;n&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=i[i.length-1].angleTo(n)),this.addMarkerAngle(e,o?o.angleTo(e):null)}},{key:"addMarkerAngle",value:function(e,o){this.points.push(e),this.angles.push(o)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var e=this.angles,o=e.length,n=0;n1&&arguments[1]!==void 0?arguments[1]:!1;if(!o){var n=this.getStyle("fill"),i=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),l=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var d=n.getFillStyleDefinition(this,i);d&&(e.fillStyle=d)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var v=n.getColor();v!=="inherit"&&(e.fillStyle=v==="none"?"rgba(0,0,0,0)":v)}if(i.hasValue()){var b=new ge(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=b}if(s.isUrlDefinition()){var L=s.getFillStyleDefinition(this,l);L&&(e.strokeStyle=L)}else if(s.hasValue()){s.getString()==="currentColor"&&s.setValue(this.getStyle("color").getColor());var Q=s.getString();Q!=="inherit"&&(e.strokeStyle=Q==="none"?"rgba(0,0,0,0)":Q)}if(l.hasValue()){var ne=new ge(this.document,"stroke",e.strokeStyle).addOpacity(l).getString();e.strokeStyle=ne}var le=this.getStyle("stroke-width");if(le.hasValue()){var ae=le.getPixels();e.lineWidth=ae||he}var be=this.getStyle("stroke-linecap"),ve=this.getStyle("stroke-linejoin"),de=this.getStyle("stroke-miterlimit"),ye=this.getStyle("stroke-dasharray"),Ie=this.getStyle("stroke-dashoffset");if(be.hasValue()&&(e.lineCap=be.getString()),ve.hasValue()&&(e.lineJoin=ve.getString()),de.hasValue()&&(e.miterLimit=de.getNumber()),ye.hasValue()&&ye.getString()!=="none"){var Ne=Re(ye.getString());typeof e.setLineDash!="undefined"?e.setLineDash(Ne):typeof e.webkitLineDash!="undefined"?e.webkitLineDash=Ne:typeof e.mozDash!="undefined"&&!(Ne.length===1&&Ne[0]===0)&&(e.mozDash=Ne);var ze=Ie.getPixels();typeof e.lineDashOffset!="undefined"?e.lineDashOffset=ze:typeof e.webkitLineDashOffset!="undefined"?e.webkitLineDashOffset=ze:typeof e.mozDashOffset!="undefined"&&(e.mozDashOffset=ze)}}if(this.modifiedEmSizeStack=!1,typeof e.font!="undefined"){var tt=this.getStyle("font"),nt=this.getStyle("font-style"),Qe=this.getStyle("font-variant"),Ye=this.getStyle("font-weight"),qe=this.getStyle("font-size"),ht=this.getStyle("font-family"),He=new ot(nt.getString(),Qe.getString(),Ye.getString(),qe.hasValue()?"".concat(qe.getPixels(!0),"px"):"",ht.getString(),ot.parse(tt.getString(),e.font));nt.setValue(He.fontStyle),Qe.setValue(He.fontVariant),Ye.setValue(He.fontWeight),qe.setValue(He.fontSize),ht.setValue(He.fontFamily),e.font=He.toString(),qe.isPixels()&&(this.document.emSize=qe.getPixels(),this.modifiedEmSizeStack=!0)}o||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(e){Object(z.a)(Object(I.a)(r.prototype),"clearContext",this).call(this,e),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}(Ve),Ge=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="path",n.pathParser=null,n.pathParser=new Ce(n.getAttribute("d").getString()),n}return Object(J.a)(r,[{key:"path",value:function(e){var o=this.pathParser,n=new et;for(o.reset(),e&&e.beginPath();!o.isEnd();)switch(o.next().type){case Ce.MOVE_TO:this.pathM(e,n);break;case Ce.LINE_TO:this.pathL(e,n);break;case Ce.HORIZ_LINE_TO:this.pathH(e,n);break;case Ce.VERT_LINE_TO:this.pathV(e,n);break;case Ce.CURVE_TO:this.pathC(e,n);break;case Ce.SMOOTH_CURVE_TO:this.pathS(e,n);break;case Ce.QUAD_TO:this.pathQ(e,n);break;case Ce.SMOOTH_QUAD_TO:this.pathT(e,n);break;case Ce.ARC:this.pathA(e,n);break;case Ce.CLOSE_PATH:this.pathZ(e,n);break}return n}},{key:"getBoundingBox",value:function(e){return this.path()}},{key:"getMarkers",value:function(){var e=this.pathParser,o=e.getMarkerPoints(),n=e.getMarkerAngles(),i=o.map(function(s,l){return[s,n[l]]});return i}},{key:"renderChildren",value:function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var o=this.getStyle("fill-rule");e.fillStyle!==""&&(o.getString("inherit")!=="inherit"?e.fill(o.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var i=n.length-1,s=this.getStyle("marker-start"),l=this.getStyle("marker-mid"),d=this.getStyle("marker-end");if(s.isUrlDefinition()){var v=s.getDefinition(),b=Object(ie.a)(n[0],2),L=b[0],Q=b[1];v.render(e,L,Q)}if(l.isUrlDefinition())for(var ne=l.getDefinition(),le=1;led?l:d,de=l>d?1:l/d,ye=l>d?d/l:1;e.translate(L.x,L.y),e.rotate(b),e.scale(de,ye),e.arc(0,0,ve,Q,Q+ne,Boolean(1-v)),e.scale(1/de,1/ye),e.rotate(-b),e.translate(-L.x,-L.y)}}},{key:"pathZ",value:function(e,o){r.pathZ(this.pathParser),e&&(o.x1!==o.x2&&o.y1!==o.y2&&e.closePath())}}],[{key:"pathM",value:function(e){var o=e.getAsCurrentPoint();return e.start=e.current,{point:o}}},{key:"pathL",value:function(e){var o=e.current,n=e.getAsCurrentPoint();return{current:o,point:n}}},{key:"pathH",value:function(e){var o=e.current,n=e.command,i=new We((n.relative?o.x:0)+n.x,o.y);return e.current=i,{current:o,point:i}}},{key:"pathV",value:function(e){var o=e.current,n=e.command,i=new We(o.x,(n.relative?o.y:0)+n.y);return e.current=i,{current:o,point:i}}},{key:"pathC",value:function(e){var o=e.current,n=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:o,point:n,controlPoint:i,currentPoint:s}}},{key:"pathS",value:function(e){var o=e.current,n=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:o,point:n,controlPoint:i,currentPoint:s}}},{key:"pathQ",value:function(e){var o=e.current,n=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:o,controlPoint:n,currentPoint:i}}},{key:"pathT",value:function(e){var o=e.current,n=e.getReflectedControlPoint();e.control=n;var i=e.getAsCurrentPoint();return{current:o,controlPoint:n,currentPoint:i}}},{key:"pathA",value:function(e){var o=e.current,n=e.command,i=n.rX,s=n.rY,l=n.xRot,d=n.lArcFlag,v=n.sweepFlag,b=l*(Math.PI/180),L=e.getAsCurrentPoint(),Q=new We(Math.cos(b)*(o.x-L.x)/2+Math.sin(b)*(o.y-L.y)/2,-Math.sin(b)*(o.x-L.x)/2+Math.cos(b)*(o.y-L.y)/2),ne=Math.pow(Q.x,2)/Math.pow(i,2)+Math.pow(Q.y,2)/Math.pow(s,2);ne>1&&(i*=Math.sqrt(ne),s*=Math.sqrt(ne));var le=(d===v?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(s,2)-Math.pow(i,2)*Math.pow(Q.y,2)-Math.pow(s,2)*Math.pow(Q.x,2))/(Math.pow(i,2)*Math.pow(Q.y,2)+Math.pow(s,2)*Math.pow(Q.x,2)));isNaN(le)&&(le=0);var ae=new We(le*i*Q.y/s,le*-s*Q.x/i),be=new We((o.x+L.x)/2+Math.cos(b)*ae.x-Math.sin(b)*ae.y,(o.y+L.y)/2+Math.sin(b)*ae.x+Math.cos(b)*ae.y),ve=Pe([1,0],[(Q.x-ae.x)/i,(Q.y-ae.y)/s]),de=[(Q.x-ae.x)/i,(Q.y-ae.y)/s],ye=[(-Q.x-ae.x)/i,(-Q.y-ae.y)/s],Ie=Pe(de,ye);return Oe(de,ye)<=-1&&(Ie=Math.PI),Oe(de,ye)>=1&&(Ie=0),{currentPoint:L,rX:i,rY:s,sweepFlag:v,xAxisRotation:b,centp:be,a1:ve,ad:Ie}}},{key:"pathZ",value:function(e){e.current=e.start}}]),r}(ft),Bt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="glyph",n.horizAdvX=n.getAttribute("horiz-adv-x").getNumber(),n.unicode=n.getAttribute("unicode").getString(),n.arabicForm=n.getAttribute("arabic-form").getString(),n}return r}(Ge),yt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,new.target===r?!0:o),n.type="text",n.x=0,n.y=0,n.measureCache=-1,n}return Object(J.a)(r,[{key:"setContext",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(z.a)(Object(I.a)(r.prototype),"setContext",this).call(this,e,o);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}},{key:"initializeCoordinates",value:function(e){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var o=this.getAttribute("dx"),n=this.getAttribute("dy");o.hasValue()&&(this.x+=o.getPixels("x")),n.hasValue()&&(this.y+=n.getPixels("y")),this.x+=this.getAnchorDelta(e,this,0)}},{key:"getBoundingBox",value:function(e){var o=this;if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(e);var n=null;return this.children.forEach(function(i,s){var l=o.getChildBoundingBox(e,o,o,s);n?n.addBoundingBox(l):n=l}),n}},{key:"getFontSize",value:function(){var e=this.document,o=this.parent,n=ot.parse(e.ctx.font).fontSize,i=o.getStyle("font-size").getNumber(n);return i}},{key:"getTElementBoundingBox",value:function(e){var o=this.getFontSize();return new et(this.x,this.y-o,this.x+this.measureText(e),this.y)}},{key:"getGlyph",value:function(e,o,n){var i=o[n],s=null;if(e.isArabic){var l=o.length,d=o[n-1],v=o[n+1],b="isolated";if((n===0||d===" ")&&n0&&d!==" "&&n0&&d!==" "&&(n===l-1||v===" ")&&(b="initial"),typeof e.glyphs[i]!="undefined"){var L=e.glyphs[i];s=L instanceof Bt?L:L[b]}}else s=e.glyphs[i];return s||(s=e.missingGlyph),s}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(e){var o=e||this.node,n=Array.from(o.parentNode.childNodes),i=n.indexOf(o),s=n.length-1,l=Be(o.textContent||"");return i===0&&(l=we(l)),i===s&&(l=Le(l)),l}},{key:"renderChildren",value:function(e){var o=this;if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(e),this.children.forEach(function(i,s){o.renderChild(e,o,o,s)});var n=this.document.screen.mouse;n.isWorking()&&n.checkBoundingBox(this,this.getBoundingBox(e))}},{key:"renderTElementChildren",value:function(e){var o=this.document,n=this.parent,i=this.getText(),s=n.getStyle("font-family").getDefinition();if(s){for(var l=s.fontFace.unitsPerEm,d=ot.parse(o.ctx.font),v=n.getStyle("font-size").getNumber(d.fontSize),b=n.getStyle("font-style").getString(d.fontStyle),L=v/l,Q=s.isRTL?i.split("").reverse().join(""):i,ne=Re(n.getAttribute("dx").getString()),le=Q.length,ae=0;aen&&d.getAttribute("x").hasValue()||d.getAttribute("text-anchor").hasValue());b++)v+=d.measureTextRecursive(e);return-1*(i==="end"?v:v/2)}return 0}},{key:"adjustChildCoordinates",value:function(e,o,n,i){var s=n.children[i];if(typeof s.measureText!="function")return s;e.save(),s.setContext(e,!0);var l=s.getAttribute("x"),d=s.getAttribute("y"),v=s.getAttribute("dx"),b=s.getAttribute("dy"),L=s.getAttribute("text-anchor").getString("start");if(i===0&&s.type!=="textNode"&&(l.hasValue()||l.setValue(o.getAttribute("x").getValue("0")),d.hasValue()||d.setValue(o.getAttribute("y").getValue("0")),v.hasValue()||v.setValue(o.getAttribute("dx").getValue("0")),b.hasValue()||b.setValue(o.getAttribute("dy").getValue("0"))),l.hasValue()){if(s.x=l.getPixels("x")+o.getAnchorDelta(e,n,i),L!=="start"){var Q=s.measureTextRecursive(e);s.x+=-1*(L==="end"?Q:Q/2)}v.hasValue()&&(s.x+=v.getPixels("x"))}else{if(L!=="start"){var ne=s.measureTextRecursive(e);o.x+=-1*(L==="end"?ne:ne/2)}v.hasValue()&&(o.x+=v.getPixels("x")),s.x=o.x}return o.x=s.x+s.measureText(e),d.hasValue()?(s.y=d.getPixels("y"),b.hasValue()&&(s.y+=b.getPixels("y"))):(b.hasValue()&&(o.y+=b.getPixels("y")),s.y=o.y),o.y=s.y,s.clearContext(e),e.restore(),s}},{key:"getChildBoundingBox",value:function(e,o,n,i){var s=this.adjustChildCoordinates(e,o,n,i);if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(e);return l?(s.children.forEach(function(d,v){var b=o.getChildBoundingBox(e,o,s,v);l.addBoundingBox(b)}),l):null}},{key:"renderChild",value:function(e,o,n,i){var s=this.adjustChildCoordinates(e,o,n,i);s.render(e),s.children.forEach(function(l,d){o.renderChild(e,o,s,d)})}},{key:"measureTextRecursive",value:function(e){var o=this.children.reduce(function(n,i){return n+i.measureTextRecursive(e)},this.measureText(e));return o}},{key:"measureText",value:function(e){var o=this.measureCache;if(~o)return o;var n=this.getText(),i=this.measureTargetText(e,n);return this.measureCache=i,i}},{key:"measureTargetText",value:function(e,o){if(!o.length)return 0;var n=this.parent,i=n.getStyle("font-family").getDefinition();if(i){for(var s=this.getFontSize(),l=i.isRTL?o.split("").reverse().join(""):o,d=Re(n.getAttribute("dx").getString()),v=l.length,b=0,L=0;L0?"":n.getTextFromNode(),n}return Object(J.a)(r,[{key:"getText",value:function(){return this.text}}]),r}(yt),tr=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="textNode",a}return r}(Ft),bt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(J.a)(r,[{key:"setContext",value:function(e){var o,n=this.document,i=n.screen,s=n.window,l=e.canvas;if(i.setDefaults(e),l.style&&typeof e.font!="undefined"&&s&&typeof s.getComputedStyle!="undefined"){e.font=s.getComputedStyle(l).getPropertyValue("font");var d=new ge(n,"fontSize",ot.parse(e.font).fontSize);d.hasValue()&&(n.rootEmSize=d.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var v=i.viewPort,b=v.width,L=v.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 Q=this.getAttribute("refX"),ne=this.getAttribute("refY"),le=this.getAttribute("viewBox"),ae=le.hasValue()?Re(le.getString()):null,be=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",ve=0,de=0,ye=0,Ie=0;ae&&(ve=ae[0],de=ae[1]),this.root||(b=this.getStyle("width").getPixels("x"),L=this.getStyle("height").getPixels("y"),this.type==="marker"&&(ye=ve,Ie=de,ve=0,de=0)),i.viewPort.setCurrent(b,L),this.node&&(!this.parent||((o=this.node.parentNode)===null||o===void 0?void 0:o.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Object(z.a)(Object(I.a)(r.prototype),"setContext",this).call(this,e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),ae&&(b=ae[2],L=ae[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:b,height:i.viewPort.height,desiredHeight:L,minX:ve,minY:de,refX:Q.getValue(),refY:ne.getValue(),clip:be,clipX:ye,clipY:Ie}),ae&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(b,L))}},{key:"clearContext",value:function(e){Object(z.a)(Object(I.a)(r.prototype),"clearContext",this).call(this,e),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),s=this.getAttribute("height",!0),l=this.getAttribute("viewBox"),d=this.getAttribute("style"),v=i.getNumber(0),b=s.getNumber(0);if(n)if(typeof n=="string")this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var L=this.getAttribute("preserveAspectRatio");L.hasValue()&&L.setValue(L.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),s.setValue(o),l.hasValue()||l.setValue("0 0 ".concat(v||e," ").concat(b||o)),d.hasValue()){var Q=this.getStyle("width"),ne=this.getStyle("height");Q.hasValue()&&Q.setValue("".concat(e,"px")),ne.hasValue()&&ne.setValue("".concat(o,"px"))}}}]),r}(ft),Wt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="rect",a}return Object(J.a)(r,[{key:"path",value:function(e){var o=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),l=this.getAttribute("rx"),d=this.getAttribute("ry"),v=l.getPixels("x"),b=d.getPixels("y");if(l.hasValue()&&!d.hasValue()&&(b=v),d.hasValue()&&!l.hasValue()&&(v=b),v=Math.min(v,i/2),b=Math.min(b,s/2),e){var L=4*((Math.sqrt(2)-1)/3);e.beginPath(),s>0&&i>0&&(e.moveTo(o+v,n),e.lineTo(o+i-v,n),e.bezierCurveTo(o+i-v+L*v,n,o+i,n+b-L*b,o+i,n+b),e.lineTo(o+i,n+s-b),e.bezierCurveTo(o+i,n+s-b+L*b,o+i-v+L*v,n+s,o+i-v,n+s),e.lineTo(o+v,n+s),e.bezierCurveTo(o+v-L*v,n+s,o,n+s-b+L*b,o,n+s-b),e.lineTo(o,n+b),e.bezierCurveTo(o,n+b-L*b,o+v-L*v,n,o+v,n),e.closePath())}return new et(o,n,o+i,n+s)}},{key:"getMarkers",value:function(){return null}}]),r}(Ge),rn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="circle",a}return Object(J.a)(r,[{key:"path",value:function(e){var o=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(o,n,i,0,Math.PI*2,!1),e.closePath()),new et(o-i,n-i,o+i,n+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Ge),an=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="ellipse",a}return Object(J.a)(r,[{key:"path",value:function(e){var o=4*((Math.sqrt(2)-1)/3),n=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),l=this.getAttribute("cy").getPixels("y");return e&&n>0&&i>0&&(e.beginPath(),e.moveTo(s+n,l),e.bezierCurveTo(s+n,l+o*i,s+o*n,l+i,s,l+i),e.bezierCurveTo(s-o*n,l+i,s-n,l+o*i,s-n,l),e.bezierCurveTo(s-n,l-o*i,s-o*n,l-i,s,l-i),e.bezierCurveTo(s+o*n,l-i,s+n,l-o*i,s+n,l),e.closePath()),new et(s-n,l-i,s+n,l+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Ge),on=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="line",a}return Object(J.a)(r,[{key:"getPoints",value:function(){return[new We(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new We(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(e){var o=this.getPoints(),n=Object(ie.a)(o,2),i=n[0],s=i.x,l=i.y,d=n[1],v=d.x,b=d.y;return e&&(e.beginPath(),e.moveTo(s,l),e.lineTo(v,b)),new et(s,l,v,b)}},{key:"getMarkers",value:function(){var e=this.getPoints(),o=Object(ie.a)(e,2),n=o[0],i=o[1],s=n.angleTo(i);return[[n,s],[i,s]]}}]),r}(Ge),kt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="polyline",n.points=[],n.points=We.parsePath(n.getAttribute("points").getString()),n}return Object(J.a)(r,[{key:"path",value:function(e){var o=this.points,n=Object(ie.a)(o,1),i=n[0],s=i.x,l=i.y,d=new et(s,l);return e&&(e.beginPath(),e.moveTo(s,l)),o.forEach(function(v){var b=v.x,L=v.y;d.addPoint(b,L),e&&e.lineTo(b,L)}),d}},{key:"getMarkers",value:function(){var e=this.points,o=e.length-1,n=[];return e.forEach(function(i,s){if(s===o)return;n.push([i,i.angleTo(e[s+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}]),r}(Ge),sn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="polygon",a}return Object(J.a)(r,[{key:"path",value:function(e){var o=Object(z.a)(Object(I.a)(r.prototype),"path",this).call(this,e),n=Object(ie.a)(this.points,1),i=n[0],s=i.x,l=i.y;return e&&(e.lineTo(s,l),e.closePath()),o}}]),r}(kt),ln=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="pattern",a}return Object(J.a)(r,[{key:"createPattern",value:function(e,o,n){var i=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),l=new bt(this.document,null);l.attributes.viewBox=new ge(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new ge(this.document,"width","".concat(i,"px")),l.attributes.height=new ge(this.document,"height","".concat(s,"px")),l.attributes.transform=new ge(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var d=this.document.createCanvas(i,s),v=d.getContext("2d"),b=this.getAttribute("x"),L=this.getAttribute("y");b.hasValue()&&L.hasValue()&&v.translate(b.getPixels("x",!0),L.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var Q=-1;Q<=1;Q++)for(var ne=-1;ne<=1;ne++)v.save(),l.attributes.x=new ge(this.document,"x",Q*d.width),l.attributes.y=new ge(this.document,"y",ne*d.height),l.render(v),v.restore();var le=e.createPattern(d,"repeat");return le}}]),r}(Ve),un=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="marker",a}return Object(J.a)(r,[{key:"render",value:function(e,o,n){if(!o)return;var i=o.x,s=o.y,l=this.getAttribute("orient").getString("auto"),d=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,s),l==="auto"&&e.rotate(n),d==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var v=new bt(this.document,null);v.type=this.type,v.attributes.viewBox=new ge(this.document,"viewBox",this.getAttribute("viewBox").getValue()),v.attributes.refX=new ge(this.document,"refX",this.getAttribute("refX").getValue()),v.attributes.refY=new ge(this.document,"refY",this.getAttribute("refY").getValue()),v.attributes.width=new ge(this.document,"width",this.getAttribute("markerWidth").getValue()),v.attributes.height=new ge(this.document,"height",this.getAttribute("markerHeight").getValue()),v.attributes.overflow=new ge(this.document,"overflow",this.getAttribute("overflow").getValue()),v.attributes.fill=new ge(this.document,"fill",this.getAttribute("fill").getColor("black")),v.attributes.stroke=new ge(this.document,"stroke",this.getAttribute("stroke").getValue("none")),v.children=this.children,v.render(e),e.restore(),d==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),l==="auto"&&e.rotate(-n),e.translate(-i,-s)}}]),r}(Ve),cn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="defs",a}return Object(J.a)(r,[{key:"render",value:function(){}}]),r}(Ve),jt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="g",a}return Object(J.a)(r,[{key:"getBoundingBox",value:function(e){var o=new et;return this.children.forEach(function(n){o.addBoundingBox(n.getBoundingBox(e))}),o}}]),r}(ft),Gt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.attributesToInherit=["gradientUnits"],n.stops=[];var i=Object(R.a)(n),s=i.stops,l=i.children;return l.forEach(function(d){d.type==="stop"&&s.push(d)}),n}return Object(J.a)(r,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(e,o,n){var i=this,s=this;this.getHrefAttribute().hasValue()&&(s=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(s));var l=s,d=l.stops,v=this.getGradient(e,o);if(!v)return this.addParentOpacity(n,d[d.length-1].color);if(d.forEach(function(Ne){v.addColorStop(Ne.offset,i.addParentOpacity(n,Ne.color))}),this.getAttribute("gradientTransform").hasValue()){var b=this.document,L=b.screen,Q=L.MAX_VIRTUAL_PIXELS,ne=L.viewPort,le=Object(ie.a)(ne.viewPorts,1),ae=le[0],be=new Wt(b,null);be.attributes.x=new ge(b,"x",-Q/3),be.attributes.y=new ge(b,"y",-Q/3),be.attributes.width=new ge(b,"width",Q),be.attributes.height=new ge(b,"height",Q);var ve=new jt(b,null);ve.attributes.transform=new ge(b,"transform",this.getAttribute("gradientTransform").getValue()),ve.children=[be];var de=new bt(b,null);de.attributes.x=new ge(b,"x",0),de.attributes.y=new ge(b,"y",0),de.attributes.width=new ge(b,"width",ae.width),de.attributes.height=new ge(b,"height",ae.height),de.children=[ve];var ye=b.createCanvas(ae.width,ae.height),Ie=ye.getContext("2d");return Ie.fillStyle=v,de.render(Ie),Ie.createPattern(ye,"no-repeat")}return v}},{key:"inheritStopContainer",value:function(e){var o=this;this.attributesToInherit.forEach(function(n){!o.getAttribute(n).hasValue()&&e.getAttribute(n).hasValue()&&o.getAttribute(n,!0).setValue(e.getAttribute(n).getValue())})}},{key:"addParentOpacity",value:function(e,o){if(e.hasValue()){var n=new ge(this.document,"color",o);return n.addOpacity(e).getColor()}return o}}]),r}(Ve),dn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="linearGradient",n.attributesToInherit.push("x1","y1","x2","y2"),n}return Object(J.a)(r,[{key:"getGradient",value:function(e,o){var n=this.getGradientUnits()==="objectBoundingBox",i=n?o.getBoundingBox(e):null;if(n&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var s=n?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),l=n?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),d=n?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),v=n?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===d&&l===v?null:e.createLinearGradient(s,l,d,v)}}]),r}(Gt),fn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;return Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="radialGradient",n.attributesToInherit.push("cx","cy","r","fx","fy","fr"),n}return Object(J.a)(r,[{key:"getGradient",value:function(e,o){var n=this.getGradientUnits()==="objectBoundingBox",i=o.getBoundingBox(e);if(n&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var s=n?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),l=n?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),d=s,v=l;this.getAttribute("fx").hasValue()&&(d=n?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(v=n?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var b=n?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),L=this.getAttribute("fr").getPixels();return e.createRadialGradient(d,v,L,s,l,b)}}]),r}(Gt),hn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="stop";var i=Math.max(0,Math.min(1,n.getAttribute("offset").getNumber())),s=n.getStyle("stop-opacity"),l=n.getStyle("stop-color",!0);return l.getString()===""&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),n.offset=i,n.color=l.getColor(),n}return r}(Ve),Tt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="animate",n.duration=0,n.initialValue=null,n.initialUnits="",n.removed=!1,n.frozen=!1,a.screen.animations.push(Object(R.a)(n)),n.begin=n.getAttribute("begin").getMilliseconds(),n.maxDuration=n.begin+n.getAttribute("dur").getMilliseconds(),n.from=n.getAttribute("from"),n.to=n.getAttribute("to"),n.values=new ge(a,"values",null);var i=n.getAttribute("values");return i.hasValue()&&n.values.setValue(i.getString().split(";")),n}return Object(J.a)(r,[{key:"getProperty",value:function(){var e=this.getAttribute("attributeType").getString(),o=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(o,!0):this.parent.getAttribute(o,!0)}},{key:"calcValue",value:function(){var e=this.initialUnits,o=this.getProgress(),n=o.progress,i=o.from,s=o.to,l=i.getNumber()+(s.getNumber()-i.getNumber())*n;return e==="%"&&(l*=100),"".concat(l).concat(e)}},{key:"update",value:function(e){var o=this.parent,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,o.animationFrozen=!0,o.animationFrozenValue=n.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,n.setValue(o.animationFrozen?o.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var s=!1;if(this.begin0&&Array.from(i).every(function(d){return d.nodeType===3});return n.hasText=l,n.text=l?n.getTextFromNode(s):"",n}return Object(J.a)(r,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(e){if(this.hasText){Object(z.a)(Object(I.a)(r.prototype),"renderChildren",this).call(this,e);var o=this.document,n=this.x,i=this.y,s=o.screen.mouse,l=new ge(o,"fontSize",ot.parse(o.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new et(n,i-l.getPixels("y"),n+this.measureText(e),i))}else if(this.children.length>0){var d=new jt(this.document,null);d.children=this.children,d.parent=this,d.render(e)}}},{key:"onClick",value:function(){var e=this.document.window;e&&e.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}]),r}(yt);function En(h,u){var r=Object.keys(h);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(h);u&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(h,e).enumerable})),r.push.apply(r,a)}return r}function At(h){for(var u=1;uL?b:L,ve=b>L?1:b/L,de=b>L?L/b:1;e&&(e.translate(d,v),e.rotate(le),e.scale(ve,de),e.arc(0,0,be,Q,Q+ne,Boolean(1-ae)),e.scale(1/ve,1/de),e.rotate(-le),e.translate(-d,-v));break}case Ce.CLOSE_PATH:e&&e.closePath();break}})}},{key:"renderChildren",value:function(e){this.setTextData(e),e.save();var o=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),i=this.glyphInfo,s=e.fillStyle;o==="underline"&&e.beginPath(),i.forEach(function(l,d){var v=l.p0,b=l.p1,L=l.rotation,Q=l.text;e.save(),e.translate(v.x,v.y),e.rotate(L),e.fillStyle&&e.fillText(Q,0,0),e.strokeStyle&&e.strokeText(Q,0,0),e.restore(),o==="underline"&&(d===0&&e.moveTo(v.x,v.y+n/8),e.lineTo(b.x,b.y+n/5))}),o==="underline"&&(e.lineWidth=n/20,e.strokeStyle=s,e.stroke(),e.closePath()),e.restore()}},{key:"getLetterSpacingAt",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}},{key:"findSegmentToFitChar",value:function(e,o,n,i,s,l,d,v,b){var L=l,Q=this.measureText(e,v);v===" "&&o==="justify"&&n-1&&(L+=this.getLetterSpacingAt(b));var ne=this.textHeight/20,le=this.getEquidistantPointOnPath(L,ne,0),ae=this.getEquidistantPointOnPath(L+Q,ne,0),be={p0:le,p1:ae},ve=le&&ae?Math.atan2(ae.y-le.y,ae.x-le.x):0;if(d){var de=Math.cos(Math.PI/2+ve)*d,ye=Math.cos(-ve)*d;be.p0=At(At({},le),{},{x:le.x+de,y:le.y+ye}),be.p1=At(At({},ae),{},{x:ae.x+de,y:ae.y+ye})}return L+=Q,{offset:L,segment:be,rotation:ve}}},{key:"measureText",value:function(e,o){var n=this.measuresCache,i=o||this.getText();if(n.has(i))return n.get(i);var s=this.measureTargetText(e,i);return n.set(i,s),s}},{key:"setTextData",value:function(e){var o=this;if(this.glyphInfo)return;var n=this.getText(),i=n.split(""),s=n.split(" ").length-1,l=this.parent.getAttribute("dx").split().map(function(ze){return ze.getPixels("x")}),d=this.parent.getAttribute("dy").getPixels("y"),v=this.parent.getStyle("text-anchor").getString("start"),b=this.getStyle("letter-spacing"),L=this.parent.getStyle("letter-spacing"),Q=0;!b.hasValue()||b.getValue()==="inherit"?Q=L.getPixels():b.hasValue()&&(b.getValue()!=="initial"&&b.getValue()!=="unset"&&(Q=b.getPixels()));var ne=[],le=n.length;this.letterSpacingCache=ne;for(var ae=0;ae0&&(b-=2*Math.PI),s===1&&b<0&&(b+=2*Math.PI),[d.x,d.y,n,i,v,b,l,s]}},{key:"calcLength",value:function(e,o,n,i){var s=0,l=null,d=null,v=0;switch(n){case Ce.LINE_TO:return this.getLineLength(e,o,i[0],i[1]);case Ce.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,e,o,i[0],i[1],i[2],i[3],i[4],i[5]),v=.01;v<=1;v+=.01)d=this.getPointOnCubicBezier(v,e,o,i[0],i[1],i[2],i[3],i[4],i[5]),s+=this.getLineLength(l.x,l.y,d.x,d.y),l=d;return s;case Ce.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,e,o,i[0],i[1],i[2],i[3]),v=.01;v<=1;v+=.01)d=this.getPointOnQuadraticBezier(v,e,o,i[0],i[1],i[2],i[3]),s+=this.getLineLength(l.x,l.y,d.x,d.y),l=d;return s;case Ce.ARC:{s=0;var b=i[4],L=i[5],Q=i[4]+L,ne=Math.PI/180;if(Math.abs(b-Q)Q;v-=ne)d=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],v,0),s+=this.getLineLength(l.x,l.y,d.x,d.y),l=d;else for(v=b+ne;v5&&arguments[5]!==void 0?arguments[5]:o,d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,v=(s-n)/(i-o+he),b=Math.sqrt(e*e/(1+v*v));io)return null;var s=this.dataArray,l=Object(C.a)(s),d;try{for(l.s();!(d=l.n()).done;){var v=d.value;if(v&&(v.pathLength<5e-5||n+v.pathLength+5e-5=0&&L>le)break;i=this.getPointOnEllipticalArc(v.points[0],v.points[1],v.points[2],v.points[3],L,v.points[6]);break}case Ce.CURVE_TO:L=b/v.pathLength,L>1&&(L=1),i=this.getPointOnCubicBezier(L,v.start.x,v.start.y,v.points[0],v.points[1],v.points[2],v.points[3],v.points[4],v.points[5]);break;case Ce.QUAD_TO:L=b/v.pathLength,L>1&&(L=1),i=this.getPointOnQuadraticBezier(L,v.start.x,v.start.y,v.points[0],v.points[1],v.points[2],v.points[3]);break}if(i)return i;break}}catch(ae){l.e(ae)}finally{l.f()}return null}},{key:"getLineLength",value:function(e,o,n,i){return Math.sqrt((n-e)*(n-e)+(i-o)*(i-o))}},{key:"getPathLength",value:function(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce(function(e,o){return o.pathLength>0?e+o.pathLength:e},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(e,o,n,i,s,l,d,v,b){var L=v*Fe(e)+l*Ze(e)+i*$e(e)+o*Xe(e),Q=b*Fe(e)+d*Ze(e)+s*$e(e)+n*Xe(e);return{x:L,y:Q}}},{key:"getPointOnQuadraticBezier",value:function(e,o,n,i,s,l,d){var v=l*dt(e)+i*at(e)+o*vt(e),b=d*dt(e)+s*at(e)+n*vt(e);return{x:v,y:b}}},{key:"getPointOnEllipticalArc",value:function(e,o,n,i,s,l){var d=Math.cos(l),v=Math.sin(l),b={x:n*Math.cos(s),y:i*Math.sin(s)};return{x:e+(b.x*d-b.y*v),y:o+(b.x*v+b.y*d)}}},{key:"buildEquidistantCache",value:function(e,o){var n=this.getPathLength(),i=o||.25,s=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==i){this.equidistantCache={step:s,precision:i,points:[]};for(var l=0,d=0;d<=n;d+=i){var v=this.getPointOnPath(d),b=this.getPointOnPath(d+i);if(!v||!b)continue;l+=this.getLineLength(v.x,v.y,b.x,b.y),l>=s&&(this.equidistantCache.points.push({x:v.x,y:v.y,distance:d}),l-=s)}}}},{key:"getEquidistantPointOnPath",value:function(e,o,n){if(this.buildEquidistantCache(o,n),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}]),r}(yt),nr=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Sn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="image",n.loaded=!1;var i=n.getHrefAttribute().getString();if(!i)return Object(w.a)(n);var s=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);return a.images.push(Object(R.a)(n)),s?void n.loadSvg(i):void n.loadImage(i),n.isSvg=s,n}return Object(J.a)(r,[{key:"loadImage",value:function(e){var o=this;return fe()(re.a.mark(function n(){var i;return re.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,o.document.createImage(e);case 3:i=l.sent,o.image=i,l.next=10;break;case 7:l.prev=7,l.t0=l.catch(0),console.error('Error while loading image "'.concat(e,'":'),l.t0);case 10:o.loaded=!0;case 11:case"end":return l.stop()}},n,null,[[0,7]])}))()}},{key:"loadSvg",value:function(e){var o=this;return fe()(re.a.mark(function n(){var i,s,l,d;return re.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(i=nr.exec(e),!i){b.next=6;break}s=i[5],i[4]==="base64"?o.image=atob(s):o.image=decodeURIComponent(s),b.next=19;break;case 6:return b.prev=6,b.next=9,o.document.fetch(e);case 9:return l=b.sent,b.next=12,l.text();case 12:d=b.sent,o.image=d,b.next=19;break;case 16:b.prev=16,b.t0=b.catch(6),console.error('Error while loading image "'.concat(e,'":'),b.t0);case 19:o.loaded=!0;case 20:case"end":return b.stop()}},n,null,[[6,16]])}))()}},{key:"renderChildren",value:function(e){var o=this.document,n=this.image,i=this.loaded,s=this.getAttribute("x").getPixels("x"),l=this.getAttribute("y").getPixels("y"),d=this.getStyle("width").getPixels("x"),v=this.getStyle("height").getPixels("y");if(!i||!n||!d||!v)return;if(e.save(),e.translate(s,l),this.isSvg){var b=o.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:d,scaleHeight:v});b.document.documentElement.parent=this,void b.render()}else{var L=this.image;o.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:d,desiredWidth:L.width,height:v,desiredHeight:L.height}),this.loaded&&((typeof L.complete=="undefined"||L.complete)&&e.drawImage(L,0,0))}e.restore()}},{key:"getBoundingBox",value:function(){var e=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new et(e,o,e+n,o+i)}}]),r}(ft),Cn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="symbol",a}return Object(J.a)(r,[{key:"render",value:function(e){}}]),r}(ft),Mn=function(){function h(u){Object(Y.a)(this,h),this.document=u,this.loaded=!1,u.fonts.push(this)}return Object(J.a)(h,[{key:"load",value:function(r,a){var e=this;return fe()(re.a.mark(function o(){var n,i,s;return re.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,n=e.document,d.next=4,n.canvg.parser.load(a);case 4:i=d.sent,s=i.getElementsByTagName("font"),Array.from(s).forEach(function(v){var b=n.createElement(v);n.definitions[r]=b}),d.next=12;break;case 9:d.prev=9,d.t0=d.catch(0),console.error('Error while loading font "'.concat(a,'":'),d.t0);case 12:e.loaded=!0;case 13:case"end":return d.stop()}},o,null,[[0,9]])}))()}}]),h}(),zt=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="style";var i=Be(Array.from(e.childNodes).map(function(l){return l.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=i.split("}");return s.forEach(function(l){var d=l.trim();if(!d)return;var v=d.split("{"),b=v[0].split(","),L=v[1].split(";");b.forEach(function(Q){var ne=Q.trim();if(!ne)return;var le=a.styles[ne]||{};if(L.forEach(function(ve){var de=ve.indexOf(":"),ye=ve.substr(0,de).trim(),Ie=ve.substr(de+1,ve.length-de).trim();ye&&Ie&&(le[ye]=new ge(a,ye,Ie))}),a.styles[ne]=le,a.stylesSpecificity[ne]=ue(ne),ne==="@font-face"){var ae=le["font-family"].getString().replace(/"|'/g,""),be=le.src.getString().split(",");be.forEach(function(ve){if(ve.indexOf('format("svg")')>0){var de=_e(ve);de&&void new Mn(a).load(ae,de)}})}})}),n}return r}(Ve);zt.parseExternalUrl=_e;var Pn=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(){var a;return Object(Y.a)(this,r),a=u.apply(this,arguments),a.type="use",a}return Object(J.a)(r,[{key:"setContext",value:function(e){Object(z.a)(Object(I.a)(r.prototype),"setContext",this).call(this,e);var o=this.getAttribute("x"),n=this.getAttribute("y");o.hasValue()&&e.translate(o.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}},{key:"path",value:function(e){var o=this.element;o&&o.path(e)}},{key:"renderChildren",value:function(e){var o=this.document,n=this.element;if(n){var i=n;if(n.type==="symbol"&&(i=new bt(o,null),i.attributes.viewBox=new ge(o,"viewBox",n.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new ge(o,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new ge(o,"overflow",n.getAttribute("overflow").getString()),i.children=n.children,n.styles.opacity=new ge(o,"opacity",this.calculateOpacity())),i.type==="svg"){var s=this.getStyle("width",!1,!0),l=this.getStyle("height",!1,!0);s.hasValue()&&(i.attributes.width=new ge(o,"width",s.getString())),l.hasValue()&&(i.attributes.height=new ge(o,"height",l.getString()))}var d=i.parent;i.parent=this,i.render(e),i.parent=d}}},{key:"getBoundingBox",value:function(e){var o=this.element;return o?o.getBoundingBox(e):null}},{key:"elementTransform",value:function(){var e=this.document,o=this.element;return St.fromElement(e,o)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),r}(ft);function Rt(h,u,r,a,e,o){return h[r*a*4+u*4+o]}function It(h,u,r,a,e,o,n){h[r*a*4+u*4+o]=n}function ke(h,u,r){var a=h[u];return a*r}function it(h,u,r,a){return u+Math.cos(h)*r+Math.sin(h)*a}var Ht=function(h){Object(X.a)(r,h);var u=Object(k.a)(r);function r(a,e,o){var n;Object(Y.a)(this,r),n=u.call(this,a,e,o),n.type="feColorMatrix";var i=Re(n.getAttribute("values").getString());switch(n.getAttribute("type").getString("matrix")){case"saturate":{var s=i[0];i=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var l=i[0]*Math.PI/180;i=[it(l,.213,.787,-.213),it(l,.715,-.715,-.715),it(l,.072,-.072,.928),0,0,it(l,.213,-.213,.143),it(l,.715,.285,.14),it(l,.072,-.072,-.283),0,0,it(l,.213,-.213,-.787),it(l,.715,-.715,.715),it(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}return n.matrix=i,n.includeOpacity=n.getAttribute("includeOpacity").hasValue(),n}return Object(J.a)(r,[{key:"apply",value:function(e,o,n,i,s){for(var l=this.includeOpacity,d=this.matrix,v=e.getImageData(0,0,i,s),b=0;b1&&e[1]!==void 0?e[1]:!1,a=document.createElement("img"),r&&(a.crossOrigin="Anonymous"),n.abrupt("return",new Promise(function(i,s){a.onload=function(){i(a)},a.onerror=function(l,d,v,b,L){s(L)},a.src=u}));case 4:case"end":return n.stop()}},h)})),$t.apply(this,arguments)}var Ct=function(){function h(u){Object(Y.a)(this,h);var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.rootEmSize,e=a===void 0?12:a,o=r.emSize,n=o===void 0?12:o,i=r.createCanvas,s=i===void 0?h.createCanvas:i,l=r.createImage,d=l===void 0?h.createImage:l,v=r.anonymousCrossOrigin;this.canvg=u,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=u.screen,this.rootEmSize=e,this.emSize=n,this.createCanvas=s,this.createImage=this.bindCreateImage(d,v),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(J.a)(h,[{key:"bindCreateImage",value:function(r,a){return typeof a=="boolean"?function(e,o){return r(e,typeof o=="boolean"?o:a)}:r}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var r=this.emSizeStack;return r[r.length-1]},set:function(r){var a=this.emSizeStack;a.push(r)}},{key:"popEmSize",value:function(){var r=this.emSizeStack;r.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(r){return r.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(r){return r.loaded})}},{key:"createDocumentElement",value:function(r){var a=this.createElement(r.documentElement);return a.root=!0,a.addStylesFromStyleDefinition(),this.documentElement=a,a}},{key:"createElement",value:function(r){var a=r.nodeName.replace(/^[^:]+:/,""),e=h.elementTypes[a];return typeof e!="undefined"?new e(this,r):new nn(this,r)}},{key:"createTextNode",value:function(r){return new tr(this,r)}},{key:"setViewBox",value:function(r){this.screen.setViewBox(ar({document:this},r))}}]),h}();Ct.createCanvas=or,Ct.createImage=ir,Ct.elementTypes=rr;function Un(h,u){var r=Object.keys(h);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(h);u&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(h,e).enumerable})),r.push.apply(r,a)}return r}function pt(h){for(var u=1;u2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Pt(a),this.screen=new Ot(u,a),this.options=a;var e=new Ct(this,a),o=e.createDocumentElement(r);this.document=e,this.documentElement=o}return Object(J.a)(h,[{key:"fork",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.from(r,a,pt(pt({},this.options),e))}},{key:"forkString",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.fromString(r,a,pt(pt({},this.options),e))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var r=arguments,a=this;return fe()(re.a.mark(function e(){var o;return re.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return o=r.length>0&&r[0]!==void 0?r[0]:{},a.start(pt({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},o)),i.next=4,a.ready();case 4:a.stop();case 5:case"end":return i.stop()}},e)}))()}},{key:"start",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this.documentElement,e=this.screen,o=this.options;e.start(a,pt(pt({enableRedraw:!0},o),r))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(r,a,e)}}],[{key:"from",value:function(r,a){var e=arguments;return fe()(re.a.mark(function o(){var n,i,s;return re.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return n=e.length>2&&e[2]!==void 0?e[2]:{},i=new Pt(n),d.next=4,i.parse(a);case 4:return s=d.sent,d.abrupt("return",new h(r,s,n));case 6:case"end":return d.stop()}},o)}))()}},{key:"fromString",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=new Pt(e),n=o.parseFromString(a);return new h(r,n,e)}}]),h}();x.default=Vn}.call(this,t("Q2Ig"))},Dk1u:function(m,x,t){var c=t("Ks5W"),f=t("4YbN"),p=t("IL+x"),g=c.TypeError;m.exports=function(y){if(f(y))return y;throw g(p(y)+" is not a constructor")}},ENhe:function(m,x){m.exports={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}},FjAG:function(m,x,t){var c=t("Ks5W"),f=t("8HiI"),p=t("721z"),g=t("p5Ma"),y=t("tMNq"),j=c.TypeError,T=function(A){return function(M,U,F,N){f(U);var V=p(M),H=g(V),G=y(V),$=A?G-1:0,Z=A?-1:1;if(F<2)for(;;){if($ in H){N=H[$],$+=Z;break}if($+=Z,A?$<0:G<=$)throw j("Reduce of empty array with no initial value")}for(;A?$>=0:G>$;$+=Z)$ in H&&(N=U(N,H[$],$,V));return N}};m.exports={left:T(!1),right:T(!0)}},FkIU:function(m,x,t){var c=t("++4Y"),f=t("eRwv");m.exports=c&&f(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},FlRv:function(m,x,t){var c=t("Ks5W"),f=t("++4Y"),p=t("pVCk"),g=t("FkIU"),y=t("WxoH"),j=t("GTqx"),T=c.TypeError,A=Object.defineProperty,M=Object.getOwnPropertyDescriptor,U="enumerable",F="configurable",N="writable";x.f=f?g?function(H,G,$){if(y(H),G=j(G),y($),typeof H=="function"&&G==="prototype"&&"value"in $&&N in $&&!$[N]){var Z=M(H,G);Z&&Z[N]&&(H[G]=$.value,$={configurable:F in $?$[F]:Z[F],enumerable:U in $?$[U]:Z[U],writable:!1})}return A(H,G,$)}:A:function(H,G,$){if(y(H),G=j(G),y($),p)try{return A(H,G,$)}catch(Z){}if("get"in $||"set"in $)throw T("Accessors not supported");return"value"in $&&(H[G]=$.value),H}},FqHY:function(m,x,t){var c=t("eE3R"),f=t("Ks5W");m.exports=/ipad|iphone|ipod/i.test(c)&&f.Pebble!==void 0},G5Kn:function(m,x,t){var c=t("11yv"),f=t("XFuk"),p=t("FlRv"),g=c("unscopables"),y=Array.prototype;y[g]==null&&p.f(y,g,{configurable:!0,value:f(null)}),m.exports=function(j){y[g][j]=!0}},GI0h:function(m,x,t){var c=t("me6S"),f=c("span").classList,p=f&&f.constructor&&f.constructor.prototype;m.exports=p===Object.prototype?void 0:p},GTqx:function(m,x,t){var c=t("ms20"),f=t("bT0D");m.exports=function(p){var g=c(p,"string");return f(g)?g:g+""}},GVkW:function(m,x,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("fKql").f,g=t("c3MK"),y=t("qzpy"),j=t("OU4x"),T=t("XaNE"),A=t("/TZh"),M=t("jybJ"),U=f("".endsWith),F=f("".slice),N=Math.min,V=A("endsWith"),H=!M&&!V&&!!function(){var G=p(String.prototype,"endsWith");return G&&!G.writable}();c({target:"String",proto:!0,forced:!H&&!V},{endsWith:function($){var Z=y(T(this));j($);var W=arguments.length>1?arguments[1]:void 0,_=Z.length,D=W===void 0?_:N(g(W),_),te=y($);return U?U(Z,te,D):F(Z,D-te.length,D)===te}})},GgKt:function(m,x,t){var c=t("eE3R");m.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},Gywb:function(m,x,t){var c=t("eRwv");m.exports=!c(function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype})},"HTC/":function(m,x,t){"use strict";var c=t("WxoH");m.exports=function(){var f=c(this),p="";return f.global&&(p+="g"),f.ignoreCase&&(p+="i"),f.multiline&&(p+="m"),f.dotAll&&(p+="s"),f.unicode&&(p+="u"),f.sticky&&(p+="y"),p}},IGIO:function(m,x,t){var c=t("ba8b"),f=t("Ks5W");m.exports=c(f.process)=="process"},"IL+x":function(m,x,t){var c=t("Ks5W"),f=c.String;m.exports=function(p){try{return f(p)}catch(g){return"Object"}}},JHvW:function(m,x,t){var c=t("aLaa"),f=t("WxoH"),p=t("NIpK");m.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g=!1,y={},j;try{j=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),j(y,[]),g=y instanceof Array}catch(T){}return function(A,M){return f(A),p(M),g?j(A,M):A.__proto__=M,A}}():void 0)},JTf3:function(m,x){m.exports=function(t){return typeof t=="function"}},KKe4:function(m,x,t){"use strict";var c=t("m7zg"),f=t("WONN"),p=t("WxoH"),g=t("c3MK"),y=t("qzpy"),j=t("XaNE"),T=t("oK8H"),A=t("M/+V"),M=t("3fk+");f("match",function(U,F,N){return[function(H){var G=j(this),$=H==null?void 0:T(H,U);return $?c($,H,G):new RegExp(H)[U](y(G))},function(V){var H=p(this),G=y(V),$=N(F,H,G);if($.done)return $.value;if(!H.global)return M(H,G);var Z=H.unicode;H.lastIndex=0;for(var W=[],_=0,D;(D=M(H,G))!==null;){var te=y(D[0]);W[_]=te,te===""&&(H.lastIndex=A(G,g(H.lastIndex),Z)),_++}return _===0?null:W}]})},KLN8:function(m,x,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("fKql").f,g=t("c3MK"),y=t("qzpy"),j=t("OU4x"),T=t("XaNE"),A=t("/TZh"),M=t("jybJ"),U=f("".startsWith),F=f("".slice),N=Math.min,V=A("startsWith"),H=!M&&!V&&!!function(){var G=p(String.prototype,"startsWith");return G&&!G.writable}();c({target:"String",proto:!0,forced:!H&&!V},{startsWith:function($){var Z=y(T(this));j($);var W=g(N(arguments.length>1?arguments[1]:void 0,Z.length)),_=y($);return U?U(Z,_,W):F(Z,W,W+_.length)===_}})},Ks5W:function(m,x,t){(function(c){var f=function(p){return p&&p.Math==Math&&p};m.exports=f(typeof globalThis=="object"&&globalThis)||f(typeof window=="object"&&window)||f(typeof self=="object"&&self)||f(typeof c=="object"&&c)||function(){return this}()||Function("return this")()}).call(this,t("yLpj"))},LOfi:function(m,x,t){var c=t("WrAw");m.exports=function(f,p,g){for(var y in p)c(f,y,p[y],g);return f}},Lltv:function(m,x,t){"use strict";var c=t("vkZI"),f=t("G5Kn"),p=t("AoAp"),g=t("UQ6y"),y=t("FlRv").f,j=t("jgt4"),T=t("jybJ"),A=t("++4Y"),M="Array Iterator",U=g.set,F=g.getterFor(M);m.exports=j(Array,"Array",function(V,H){U(this,{type:M,target:c(V),index:0,kind:H})},function(){var V=F(this),H=V.target,G=V.kind,$=V.index++;return!H||$>=H.length?(V.target=void 0,{value:void 0,done:!0}):G=="keys"?{value:$,done:!1}:G=="values"?{value:H[$],done:!1}:{value:[$,H[$]],done:!1}},"values");var N=p.Arguments=p.Array;if(f("keys"),f("values"),f("entries"),!T&&A&&N.name!=="values")try{y(N,"name",{value:"values"})}catch(V){}},"M/+V":function(m,x,t){"use strict";var c=t("ymN0").charAt;m.exports=function(f,p,g){return p+(g?c(f,p).length:1)}},MNKV:function(m,x,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("OU4x"),g=t("XaNE"),y=t("qzpy"),j=t("/TZh"),T=f("".indexOf);c({target:"String",proto:!0,forced:!j("includes")},{includes:function(M){return!!~T(y(g(this)),y(p(M)),arguments.length>1?arguments[1]:void 0)}})},MURR:function(m,x,t){var c=t("aLaa"),f=0,p=Math.random(),g=c(1 .toString);m.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++f+p,36)}},N6FT:function(m,x,t){var c=t("++4Y"),f=t("YELS"),p=Function.prototype,g=c&&Object.getOwnPropertyDescriptor,y=f(p,"name"),j=y&&function(){}.name==="something",T=y&&(!c||c&&g(p,"name").configurable);m.exports={EXISTS:y,PROPER:j,CONFIGURABLE:T}},NCkV:function(m,x,t){"use strict";var c=t("1mOU"),f=t("m7zg"),p=t("aLaa"),g=t("WONN"),y=t("COGW"),j=t("WxoH"),T=t("XaNE"),A=t("NudO"),M=t("M/+V"),U=t("c3MK"),F=t("qzpy"),N=t("oK8H"),V=t("8Ys4"),H=t("3fk+"),G=t("WMbf"),$=t("RhGR"),Z=t("eRwv"),W=$.UNSUPPORTED_Y,_=4294967295,D=Math.min,te=[].push,O=p(/./.exec),S=p(te),P=p("".slice),K=!Z(function(){var q=/(?:)/,ee=q.exec;q.exec=function(){return ee.apply(this,arguments)};var oe="ab".split(q);return oe.length!==2||oe[0]!=="a"||oe[1]!=="b"});g("split",function(q,ee,oe){var E;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(w,C){var R=F(T(this)),z=C===void 0?_:C>>>0;if(z===0)return[];if(w===void 0)return[R];if(!y(w))return f(ee,R,w,z);for(var I=[],B=(w.ignoreCase?"i":"")+(w.multiline?"m":"")+(w.unicode?"u":"")+(w.sticky?"y":""),X=0,k=new RegExp(w.source,B+"g"),Y,J,ie;(Y=f(G,k,R))&&!(J=k.lastIndex,J>X&&(S(I,P(R,X,Y.index)),Y.length>1&&Y.index=z));)k.lastIndex===Y.index&&k.lastIndex++;return X===R.length?(ie||!O(k,""))&&S(I,""):S(I,P(R,X)),I.length>z?V(I,0,z):I}:"0".split(void 0,0).length?E=function(w,C){return w===void 0&&C===0?[]:f(ee,this,w,C)}:E=ee,[function(C,R){var z=T(this),I=C==null?void 0:N(C,q);return I?f(I,C,z,R):f(E,F(z),C,R)},function(w,C){var R=j(this),z=F(w),I=oe(E,R,z,C,E!==ee);if(I.done)return I.value;var B=A(R,RegExp),X=R.unicode,k=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(W?"g":"y"),Y=new B(W?"^(?:"+R.source+")":R,k),J=C===void 0?_:C>>>0;if(J===0)return[];if(z.length===0)return H(Y,z)===null?[z]:[];for(var ie=0,se=0,re=[];se]*>)/g,A=/\$([$&'`]|\d{1,2})/g;m.exports=function(M,U,F,N,V,H){var G=F+M.length,$=N.length,Z=A;return V!==void 0&&(V=f(V),Z=T),y(H,Z,function(W,_){var D;switch(g(_,0)){case"$":return"$";case"&":return M;case"`":return j(U,0,F);case"'":return j(U,G);case"<":D=V[j(_,1,-1)];break;default:var te=+_;if(te===0)return W;if(te>$){var O=p(te/10);return O===0?W:O<=$?N[O-1]===void 0?g(_,1):N[O-1]+g(_,1):W}D=N[te-1]}return D===void 0?"":D})}},NudO:function(m,x,t){var c=t("WxoH"),f=t("Dk1u"),p=t("11yv"),g=p("species");m.exports=function(y,j){var T=c(y).constructor,A;return T===void 0||(A=c(T)[g])==null?j:f(A)}},Nybj:function(m,x,t){var c=t("vkZI"),f=t("n6S8"),p=t("tMNq"),g=function(y){return function(j,T,A){var M=c(j),U=p(M),F=f(A,U),N;if(y&&T!=T){for(;U>F;)if(N=M[F++],N!=N)return!0}else for(;U>F;F++)if((y||F in M)&&M[F]===T)return y||F||0;return!y&&-1}};m.exports={includes:g(!0),indexOf:g(!1)}},OU4x:function(m,x,t){var c=t("Ks5W"),f=t("COGW"),p=c.TypeError;m.exports=function(g){if(f(g))throw p("The method doesn't accept regular expressions");return g}},Ppro:function(m,x,t){"use strict";var c=t("nCzB"),f=t("WMbf");c({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},QELg:function(m,x,t){"use strict";var c=t("eRwv");m.exports=function(f,p){var g=[][f];return!!g&&c(function(){g.call(null,p||function(){throw 1},1)})}},QrM1:function(m,x,t){var c=t("ZpKI"),f=t("Yzn+"),p=f.concat("length","prototype");x.f=Object.getOwnPropertyNames||function(y){return c(y,p)}},"RXj+":function(m,x,t){var c=t("aLaa"),f=t("XaNE"),p=t("qzpy"),g=t("noWC"),y=c("".replace),j="["+g+"]",T=RegExp("^"+j+j+"*"),A=RegExp(j+j+"*$"),M=function(U){return function(F){var N=p(f(F));return U&1&&(N=y(N,T,"")),U&2&&(N=y(N,A,"")),N}};m.exports={start:M(1),end:M(2),trim:M(3)}},RYfq:function(m,x,t){var c=t("Ks5W"),f=t("JTf3"),p=function(g){return f(g)?g:void 0};m.exports=function(g,y){return arguments.length<2?p(c[g]):c[g]&&c[g][y]}},RhGR:function(m,x,t){var c=t("eRwv"),f=t("Ks5W"),p=f.RegExp,g=c(function(){var T=p("a","y");return T.lastIndex=2,T.exec("abcd")!=null}),y=g||c(function(){return!p("a","y").sticky}),j=g||c(function(){var T=p("^r","gy");return T.lastIndex=2,T.exec("str")!=null});m.exports={BROKEN_CARET:j,MISSED_STICKY:y,UNSUPPORTED_Y:g}},S3az:function(m,x,t){var c=t("Ks5W"),f=t("JTf3"),p=t("sNJV"),g=c.WeakMap;m.exports=f(g)&&/native code/.test(p(g))},SDGZ:function(m,x,t){"use strict";t.d(x,"a",function(){return D});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var c=function(S,P){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,q){K.__proto__=q}||function(K,q){for(var ee in q)Object.prototype.hasOwnProperty.call(q,ee)&&(K[ee]=q[ee])})(S,P)};function f(O,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function P(){this.constructor=O}c(O,S),O.prototype=S===null?Object.create(S):(P.prototype=S.prototype,new P)}function p(O){var S="";Array.isArray(O)||(O=[O]);for(var P=0;PO.phi1&&(O.phi2-=2*j),O.sweepFlag===1&&O.phi2K)return[];if(K===0)return[[O*P/(O*O+S*S),S*P/(O*O+S*S)]];var q=Math.sqrt(K);return[[(O*P+S*q)/(O*O+S*S),(S*P-O*q)/(O*O+S*S)],[(O*P-S*q)/(O*O+S*S),(S*P+O*q)/(O*O+S*S)]]}var M,U=Math.PI/180;function F(O,S,P){return(1-P)*O+P*S}function N(O,S,P,K){return O+Math.cos(K/180*j)*S+Math.sin(K/180*j)*P}function V(O,S,P,K){var q=1e-6,ee=S-O,oe=P-S,E=3*ee+3*(K-P)-6*oe,w=6*(oe-ee),C=3*ee;return Math.abs(E)ce&&(B.sweepFlag=+!B.sweepFlag),B})}function oe(){return function(E){var w={};for(var C in E)w[C]=E[C];return w}}O.ROUND=function(E){function w(C){return Math.round(C*E)/E}return E===void 0&&(E=1e13),y(E),function(C){return C.x1!==void 0&&(C.x1=w(C.x1)),C.y1!==void 0&&(C.y1=w(C.y1)),C.x2!==void 0&&(C.x2=w(C.x2)),C.y2!==void 0&&(C.y2=w(C.y2)),C.x!==void 0&&(C.x=w(C.x)),C.y!==void 0&&(C.y=w(C.y)),C.rX!==void 0&&(C.rX=w(C.rX)),C.rY!==void 0&&(C.rY=w(C.rY)),C}},O.TO_ABS=S,O.TO_REL=function(){return q(function(E,w,C){return E.relative||(E.x1!==void 0&&(E.x1-=w),E.y1!==void 0&&(E.y1-=C),E.x2!==void 0&&(E.x2-=w),E.y2!==void 0&&(E.y2-=C),E.x!==void 0&&(E.x-=w),E.y!==void 0&&(E.y-=C),E.relative=!0),E})},O.NORMALIZE_HVZ=function(E,w,C){return E===void 0&&(E=!0),w===void 0&&(w=!0),C===void 0&&(C=!0),q(function(R,z,I,B,X){if(isNaN(B)&&!(R.type&D.MOVE_TO))throw new Error("path must start with moveto");return w&&R.type&D.HORIZ_LINE_TO&&(R.type=D.LINE_TO,R.y=R.relative?0:I),C&&R.type&D.VERT_LINE_TO&&(R.type=D.LINE_TO,R.x=R.relative?0:z),E&&R.type&D.CLOSE_PATH&&(R.type=D.LINE_TO,R.x=R.relative?B-z:B,R.y=R.relative?X-I:X),R.type&D.ARC&&(R.rX===0||R.rY===0)&&(R.type=D.LINE_TO,delete R.rX,delete R.rY,delete R.xRot,delete R.lArcFlag,delete R.sweepFlag),R})},O.NORMALIZE_ST=P,O.QT_TO_C=K,O.INFO=q,O.SANITIZE=function(E){E===void 0&&(E=0),y(E);var w=NaN,C=NaN,R=NaN,z=NaN;return q(function(I,B,X,k,Y){var J=Math.abs,ie=!1,se=0,re=0;if(I.type&D.SMOOTH_CURVE_TO&&(se=isNaN(w)?0:B-w,re=isNaN(C)?0:X-C),I.type&(D.CURVE_TO|D.SMOOTH_CURVE_TO)?(w=I.relative?B+I.x2:I.x2,C=I.relative?X+I.y2:I.y2):(w=NaN,C=NaN),I.type&D.SMOOTH_QUAD_TO?(R=isNaN(R)?B:2*B-R,z=isNaN(z)?X:2*X-z):I.type&D.QUAD_TO?(R=I.relative?B+I.x1:I.x1,z=I.relative?X+I.y1:I.y2):(R=NaN,z=NaN),I.type&D.LINE_COMMANDS||I.type&D.ARC&&(I.rX===0||I.rY===0||!I.lArcFlag)||I.type&D.CURVE_TO||I.type&D.SMOOTH_CURVE_TO||I.type&D.QUAD_TO||I.type&D.SMOOTH_QUAD_TO){var je=I.x===void 0?0:I.relative?I.x:I.x-B,fe=I.y===void 0?0:I.relative?I.y:I.y-X;se=isNaN(R)?I.x1===void 0?se:I.relative?I.x:I.x1-B:R-B,re=isNaN(z)?I.y1===void 0?re:I.relative?I.y:I.y1-X:z-X;var ce=I.x2===void 0?0:I.relative?I.x:I.x2-B,Ee=I.y2===void 0?0:I.relative?I.y:I.y2-X;J(je)<=E&&J(fe)<=E&&J(se)<=E&&J(re)<=E&&J(ce)<=E&&J(Ee)<=E&&(ie=!0)}return I.type&D.CLOSE_PATH&&J(B-k)<=E&&J(X-Y)<=E&&(ie=!0),ie?[]:I})},O.MATRIX=ee,O.ROTATE=function(E,w,C){w===void 0&&(w=0),C===void 0&&(C=0),y(E,w,C);var R=Math.sin(E),z=Math.cos(E);return ee(z,R,-R,z,w-w*z+C*R,C-w*R-C*z)},O.TRANSLATE=function(E,w){return w===void 0&&(w=0),y(E,w),ee(1,0,0,1,E,w)},O.SCALE=function(E,w){return w===void 0&&(w=E),y(E,w),ee(E,0,0,w,0,0)},O.SKEW_X=function(E){return y(E),ee(1,0,Math.atan(E),1,0,0)},O.SKEW_Y=function(E){return y(E),ee(1,Math.atan(E),0,1,0,0)},O.X_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),y(E),ee(-1,0,0,1,E,0)},O.Y_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),y(E),ee(1,0,0,-1,0,E)},O.A_TO_C=function(){return q(function(E,w,C){return D.ARC===E.type?function(R,z,I){var B,X,k,Y;R.cX||T(R,z,I);for(var J=Math.min(R.phi1,R.phi2),ie=Math.max(R.phi1,R.phi2)-J,se=Math.ceil(ie/90),re=new Array(se),je=z,fe=I,ce=0;cez.maxX&&(z.maxX=Le),Lez.maxY&&(z.maxY=Le),Lewe&&Y(H(B,k.x1,k.x2,k.x,we));for(var re=0,je=V(X,k.y1,k.y2,k.y);rewe&&J(H(X,k.y1,k.y2,k.y,we))}if(k.type&D.ARC){Y(k.x),J(k.y),T(k,B,X);for(var fe=k.xRot/180*Math.PI,ce=Math.cos(fe)*k.rX,Ee=Math.sin(fe)*k.rX,me=-Math.sin(fe)*k.rY,Me=Math.cos(fe)*k.rY,pe=k.phi1k.phi2?[k.phi2+360,k.phi1+360]:[k.phi2,k.phi1],Te=pe[0],Se=pe[1],Ae=function(Re){var Je=Re[0],st=Re[1],_e=180*Math.atan2(st,Je)/Math.PI;return _eTe&&weTe&&weR)throw new SyntaxError('Expected positive number, got "'+R+'" at index "'+oe+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+oe+'"')}this.curArgs.push(R),this.curArgs.length===te[this.curCommandType]&&(D.HORIZ_LINE_TO===this.curCommandType?ee({type:D.HORIZ_LINE_TO,relative:this.curCommandRelative,x:R}):D.VERT_LINE_TO===this.curCommandType?ee({type:D.VERT_LINE_TO,relative:this.curCommandRelative,y:R}):this.curCommandType===D.MOVE_TO||this.curCommandType===D.LINE_TO||this.curCommandType===D.SMOOTH_QUAD_TO?(ee({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),D.MOVE_TO===this.curCommandType&&(this.curCommandType=D.LINE_TO)):this.curCommandType===D.CURVE_TO?ee({type:D.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===D.SMOOTH_CURVE_TO?ee({type:D.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===D.QUAD_TO?ee({type:D.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===D.ARC&&ee({type:D.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(!Z(E))if(E===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(E!=="+"&&E!=="-"&&E!==".")if(C)this.curNumber=E,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+oe+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+E+'" at index '+oe+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,E!=="z"&&E!=="Z")if(E==="h"||E==="H")this.curCommandType=D.HORIZ_LINE_TO,this.curCommandRelative=E==="h";else if(E==="v"||E==="V")this.curCommandType=D.VERT_LINE_TO,this.curCommandRelative=E==="v";else if(E==="m"||E==="M")this.curCommandType=D.MOVE_TO,this.curCommandRelative=E==="m";else if(E==="l"||E==="L")this.curCommandType=D.LINE_TO,this.curCommandRelative=E==="l";else if(E==="c"||E==="C")this.curCommandType=D.CURVE_TO,this.curCommandRelative=E==="c";else if(E==="s"||E==="S")this.curCommandType=D.SMOOTH_CURVE_TO,this.curCommandRelative=E==="s";else if(E==="q"||E==="Q")this.curCommandType=D.QUAD_TO,this.curCommandRelative=E==="q";else if(E==="t"||E==="T")this.curCommandType=D.SMOOTH_QUAD_TO,this.curCommandRelative=E==="t";else{if(E!=="a"&&E!=="A")throw new SyntaxError('Unexpected character "'+E+'" at index '+oe+".");this.curCommandType=D.ARC,this.curCommandRelative=E==="a"}else K.push({type:D.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=E,this.curNumberHasDecimal=E==="."}else this.curNumber+=E,this.curNumberHasDecimal=!0;else this.curNumber+=E;else this.curNumber+=E,this.curNumberHasExp=!0;else this.curNumber+=E,this.curNumberHasExpDigits=this.curNumberHasExp}return K},S.prototype.transform=function(P){return Object.create(this,{parse:{value:function(q,ee){ee===void 0&&(ee=[]);for(var oe=0,E=Object.getPrototypeOf(this).parse.call(this,q);oe0?c:t)(p)}},"ST+I":function(m,x,t){var c=t("aNr2"),f=t("MURR"),p=c("keys");m.exports=function(g){return p[g]||(p[g]=f(g))}},SkNP:function(m,x){m.exports={}},SwuV:function(m,x,t){var c=t("JTf3");m.exports=function(f){return typeof f=="object"?f!==null:c(f)}},TRzv:function(m,x,t){var c=t("WxoH"),f=t("SwuV"),p=t("zFjv");m.exports=function(g,y){if(c(g),f(y)&&y.constructor===g)return y;var j=p.f(g),T=j.resolve;return T(y),j.promise}},Ttl4:function(m,x,t){var c=t("YELS"),f=t("x1+7"),p=t("fKql"),g=t("FlRv");m.exports=function(y,j,T){for(var A=f(j),M=g.f,U=p.f,F=0;F0&&(!P.multiline||P.multiline&&H(q,P.lastIndex-1)!==` +`)&&(Y="(?: "+Y+")",ie=" "+ie,J++),E=new RegExp("^(?:"+Y+")",k)),D&&(E=new RegExp("^"+Y+"$(?!\\s)",k)),W&&(w=P.lastIndex),C=c(N,X?E:P,ie),X?C?(C.input=Z(C.input,J),C[0]=Z(C[0],J),C.index=P.lastIndex,P.lastIndex+=C[0].length):P.lastIndex=0:W&&C&&(P.lastIndex=P.global?C.index+C[0].length:w),D&&C&&C.length>1&&c(F,C[0],E,function(){for(R=1;R3&&(this.alpha=T[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 A=this.r.toString(16),M=this.g.toString(16),U=this.b.toString(16);return A.length==1&&(A="0"+A),M.length==1&&(M="0"+M),U.length==1&&(U="0"+U),"#"+A+M+U},this.getHelpXML=function(){for(var A=new Array,M=0;M "+G.toRGB()+" -> "+G.toHex());H.appendChild($),H.appendChild(Z),V.appendChild(H)}catch(_){}return V}}},WONN:function(m,x,t){"use strict";t("Ppro");var c=t("aLaa"),f=t("WrAw"),p=t("WMbf"),g=t("eRwv"),y=t("11yv"),j=t("8ODz"),T=y("species"),A=RegExp.prototype;m.exports=function(M,U,F,N){var V=y(M),H=!g(function(){var W={};return W[V]=function(){return 7},""[M](W)!=7}),G=H&&!g(function(){var W=!1,_=/a/;return M==="split"&&(_={},_.constructor={},_.constructor[T]=function(){return _},_.flags="",_[V]=/./[V]),_.exec=function(){return W=!0,null},_[V](""),!W});if(!H||!G||F){var $=c(/./[V]),Z=U(V,""[M],function(W,_,D,te,O){var S=c(W),P=_.exec;return P===p||P===A.exec?H&&!O?{done:!0,value:$(_,D,te)}:{done:!0,value:S(D,_,te)}:{done:!1}});f(String.prototype,M,Z[0]),f(A,V,Z[1])}N&&j(A[V],"sham",!0)}},WrAw:function(m,x,t){var c=t("Ks5W"),f=t("JTf3"),p=t("YELS"),g=t("8ODz"),y=t("nATg"),j=t("sNJV"),T=t("UQ6y"),A=t("N6FT").CONFIGURABLE,M=T.get,U=T.enforce,F=String(String).split("String");(m.exports=function(N,V,H,G){var $=G?!!G.unsafe:!1,Z=G?!!G.enumerable:!1,W=G?!!G.noTargetGet:!1,_=G&&G.name!==void 0?G.name:V,D;if(f(H)&&(String(_).slice(0,7)==="Symbol("&&(_="["+String(_).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!p(H,"name")||A&&H.name!==_)&&g(H,"name",_),D=U(H),D.source||(D.source=F.join(typeof _=="string"?_:""))),N===c){Z?N[V]=H:y(V,H);return}else $?!W&&N[V]&&(Z=!0):delete N[V];Z?N[V]=H:g(N,V,H)})(Function.prototype,"toString",function(){return f(this)&&M(this).source||j(this)})},WxoH:function(m,x,t){var c=t("Ks5W"),f=t("SwuV"),p=c.String,g=c.TypeError;m.exports=function(y){if(f(y))return y;throw g(p(y)+" is not an object")}},"X/EZ":function(m,x,t){var c=t("11yv"),f=c("iterator"),p=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){p=!0}};y[f]=function(){return this},Array.from(y,function(){throw 2})}catch(j){}m.exports=function(j,T){if(!T&&!p)return!1;var A=!1;try{var M={};M[f]=function(){return{next:function(){return{done:A=!0}}}},j(M)}catch(U){}return A}},XFuk:function(m,x,t){var c=t("WxoH"),f=t("oR5W"),p=t("Yzn+"),g=t("SkNP"),y=t("bUA4"),j=t("me6S"),T=t("ST+I"),A=">",M="<",U="prototype",F="script",N=T("IE_PROTO"),V=function(){},H=function(_){return M+F+A+_+M+"/"+F+A},G=function(_){_.write(H("")),_.close();var D=_.parentWindow.Object;return _=null,D},$=function(){var _=j("iframe"),D="java"+F+":",te;return _.style.display="none",y.appendChild(_),_.src=String(D),te=_.contentWindow.document,te.open(),te.write(H("document.F=Object")),te.close(),te.F},Z,W=function(){try{Z=new ActiveXObject("htmlfile")}catch(D){}W=typeof document!="undefined"?document.domain&&Z?G(Z):$():G(Z);for(var _=p.length;_--;)delete W[U][p[_]];return W()};g[N]=!0,m.exports=Object.create||function(D,te){var O;return D!==null?(V[U]=c(D),O=new V,V[U]=null,O[N]=D):O=W(),te===void 0?O:f.f(O,te)}},XTcp:function(m,x,t){var c=t("Ks5W"),f=t("1mOU"),p=t("mcoe"),g=t("JTf3"),y=t("YELS"),j=t("eRwv"),T=t("bUA4"),A=t("0r2v"),M=t("me6S"),U=t("GgKt"),F=t("IGIO"),N=c.setImmediate,V=c.clearImmediate,H=c.process,G=c.Dispatch,$=c.Function,Z=c.MessageChannel,W=c.String,_=0,D={},te="onreadystatechange",O,S,P,K;try{O=c.location}catch(w){}var q=function(w){if(y(D,w)){var C=D[w];delete D[w],C()}},ee=function(w){return function(){q(w)}},oe=function(w){q(w.data)},E=function(w){c.postMessage(W(w),O.protocol+"//"+O.host)};(!N||!V)&&(N=function(C){var R=A(arguments,1);return D[++_]=function(){f(g(C)?C:$(C),void 0,R)},S(_),_},V=function(C){delete D[C]},F?S=function(w){H.nextTick(ee(w))}:G&&G.now?S=function(w){G.now(ee(w))}:Z&&!U?(P=new Z,K=P.port2,P.port1.onmessage=oe,S=p(K.postMessage,K)):c.addEventListener&&g(c.postMessage)&&!c.importScripts&&O&&O.protocol!=="file:"&&!j(E)?(S=E,c.addEventListener("message",oe,!1)):te in M("script")?S=function(w){T.appendChild(M("script"))[te]=function(){T.removeChild(this),q(w)}}:S=function(w){setTimeout(ee(w),0)}),m.exports={set:N,clear:V}},XaNE:function(m,x,t){var c=t("Ks5W"),f=c.TypeError;m.exports=function(p){if(p==null)throw f("Can't call method on "+p);return p}},Xp4B:function(m,x,t){"use strict";t.d(x,"a",function(){return T});function c(N){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(H){return typeof H}:c=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},c(N)}function f(N,V){if(!(N instanceof V))throw new TypeError("Cannot call a class as a function")}var p=[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],g=[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 y(N,V,H,G){if(typeof N=="string"&&(N=document.getElementById(N)),!N||!("naturalWidth"in N))return;var $=N.naturalWidth,Z=N.naturalHeight;if(typeof V=="string"&&(V=document.getElementById(V)),!V||!("getContext"in V))return;V.style.width=$+"px",V.style.height=Z+"px",V.width=$,V.height=Z;var W=V.getContext("2d");if(W.clearRect(0,0,$,Z),W.drawImage(N,0,0),isNaN(H)||H<1)return;G?T(V,0,0,$,Z,H):M(V,0,0,$,Z,H)}function j(N,V,H,G,$){if(typeof N=="string"&&(N=document.getElementById(N)),!N||c(N)!=="object"||!("getContext"in N))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var Z=N.getContext("2d");try{return Z.getImageData(V,H,G,$)}catch(W){throw new Error("unable to access image data: "+W)}}function T(N,V,H,G,$,Z){if(isNaN(Z)||Z<1)return;Z|=0;var W=j(N,V,H,G,$);W=A(W,V,H,G,$,Z),N.getContext("2d").putImageData(W,V,H)}function A(N,V,H,G,$,Z){var W=N.data,_,D,te,O,S,P,K,q,ee,oe,E,w,C,R,z,I,B,X,k,Y,J,ie,se,re,je=2*Z+1,fe=G-1,ce=$-1,Ee=Z+1,me=Ee*(Ee+1)/2,Me=new F,pe=Me,Te;for(te=1;te>Ue,se!==0?(se=255/se,W[P]=(q*De>>Ue)*se,W[P+1]=(ee*De>>Ue)*se,W[P+2]=(oe*De>>Ue)*se):W[P]=W[P+1]=W[P+2]=0,q-=w,ee-=C,oe-=R,E-=z,w-=Se.r,C-=Se.g,R-=Se.b,z-=Se.a,O=K+((O=_+Z+1)>Ue,se>0?(se=255/se,W[O]=(q*De>>Ue)*se,W[O+1]=(ee*De>>Ue)*se,W[O+2]=(oe*De>>Ue)*se):W[O]=W[O+1]=W[O+2]=0,q-=w,ee-=C,oe-=R,E-=z,w-=Se.r,C-=Se.g,R-=Se.b,z-=Se.a,O=_+((O=D+Ee)>Te,W[P+1]=ee*pe>>Te,W[P+2]=oe*pe>>Te,q-=E,ee-=w,oe-=C,E-=me.r,w-=me.g,C-=me.b,O=K+((O=_+Z+1)>Te,W[O+1]=ee*pe>>Te,W[O+2]=oe*pe>>Te,q-=E,ee-=w,oe-=C,E-=me.r,w-=me.g,C-=me.b,O=_+((O=D+re)U;)f(M,N=A[U++])&&(~g(F,N)||j(F,N));return F}},a9Cf:function(m,x,t){var c=t("11yv"),f=c("toStringTag"),p={};p[f]="z",m.exports=String(p)==="[object z]"},aLaa:function(m,x){var t=Function.prototype,c=t.bind,f=t.call,p=c&&c.bind(f,f);m.exports=c?function(g){return g&&p(g)}:function(g){return g&&function(){return f.apply(g,arguments)}}},aNIs:function(m,x,t){var c=t("Ks5W"),f=t("eE3R"),p=c.process,g=c.Deno,y=p&&p.versions||g&&g.version,j=y&&y.v8,T,A;j&&(T=j.split("."),A=T[0]>0&&T[0]<4?1:+(T[0]+T[1])),!A&&f&&(T=f.match(/Edge\/(\d+)/),(!T||T[1]>=74)&&(T=f.match(/Chrome\/(\d+)/),T&&(A=+T[1]))),m.exports=A},aNr2:function(m,x,t){var c=t("jybJ"),f=t("4gdG");(m.exports=function(p,g){return f[p]||(f[p]=g!==void 0?g:{})})("versions",[]).push({version:"3.20.2",mode:c?"pure":"global",copyright:"\xA9 2022 Denis Pushkarev (zloirock.ru)"})},bT0D:function(m,x,t){var c=t("Ks5W"),f=t("RYfq"),p=t("JTf3"),g=t("3Xd8"),y=t("1Sr1"),j=c.Object;m.exports=y?function(T){return typeof T=="symbol"}:function(T){var A=f("Symbol");return p(A)&&g(A.prototype,j(T))}},bUA4:function(m,x,t){var c=t("RYfq");m.exports=c("document","documentElement")},ba8b:function(m,x,t){var c=t("aLaa"),f=c({}.toString),p=c("".slice);m.exports=function(g){return p(f(g),8,-1)}},c3MK:function(m,x,t){var c=t("SN6V"),f=Math.min;m.exports=function(p){return p>0?f(c(p),9007199254740991):0}},c55Z:function(m,x,t){var c=t("eRwv"),f=t("Ks5W"),p=f.RegExp;m.exports=c(function(){var g=p("(?b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$c")!=="bc"})},eE3R:function(m,x,t){var c=t("RYfq");m.exports=c("navigator","userAgent")||""},eRwv:function(m,x){m.exports=function(t){try{return!!t()}catch(c){return!0}}},fKql:function(m,x,t){var c=t("++4Y"),f=t("m7zg"),p=t("5r2E"),g=t("4uGi"),y=t("vkZI"),j=t("GTqx"),T=t("YELS"),A=t("pVCk"),M=Object.getOwnPropertyDescriptor;x.f=c?M:function(F,N){if(F=y(F),N=j(N),A)try{return M(F,N)}catch(V){}if(T(F,N))return g(!f(p.f,F,N),F[N])}},"g8+u":function(m,x,t){var c=t("Ks5W"),f=t("a9Cf"),p=t("JTf3"),g=t("ba8b"),y=t("11yv"),j=y("toStringTag"),T=c.Object,A=g(function(){return arguments}())=="Arguments",M=function(U,F){try{return U[F]}catch(N){}};m.exports=f?g:function(U){var F,N,V;return U===void 0?"Undefined":U===null?"Null":typeof(N=M(F=T(U),j))=="string"?N:A?g(F):(V=g(F))=="Object"&&p(F.callee)?"Arguments":V}},g9jQ:function(m,x,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("Nybj").indexOf,g=t("QELg"),y=f([].indexOf),j=!!y&&1/y([1],1,-0)<0,T=g("indexOf");c({target:"Array",proto:!0,forced:j||!T},{indexOf:function(M){var U=arguments.length>1?arguments[1]:void 0;return j?y(this,M,U)||0:p(this,M,U)}})},gzPo:function(m,x,t){var c=t("Ks5W"),f=t("mcoe"),p=t("fKql").f,g=t("XTcp").set,y=t("GgKt"),j=t("FqHY"),T=t("/pbl"),A=t("IGIO"),M=c.MutationObserver||c.WebKitMutationObserver,U=c.document,F=c.process,N=c.Promise,V=p(c,"queueMicrotask"),H=V&&V.value,G,$,Z,W,_,D,te,O;H||(G=function(){var S,P;for(A&&(S=F.domain)&&S.exit();$;){P=$.fn,$=$.next;try{P()}catch(K){throw $?W():Z=void 0,K}}Z=void 0,S&&S.enter()},!y&&!A&&!T&&M&&U?(_=!0,D=U.createTextNode(""),new M(G).observe(D,{characterData:!0}),W=function(){D.data=_=!_}):!j&&N&&N.resolve?(te=N.resolve(void 0),te.constructor=N,O=f(te.then,te),W=function(){O(G)}):A?W=function(){F.nextTick(G)}:(g=f(g,c),W=function(){g(G)})),m.exports=H||function(S){var P={fn:S,next:void 0};Z&&(Z.next=P),$||($=P,W()),Z=P}},hIaP:function(m,x,t){var c=t("Ks5W"),f=t("m7zg"),p=t("8HiI"),g=t("WxoH"),y=t("IL+x"),j=t("ltkU"),T=c.TypeError;m.exports=function(A,M){var U=arguments.length<2?j(A):M;if(p(U))return g(f(U,A));throw T(y(A)+" is not iterable")}},"iBj/":function(m,x,t){var c=t("m7zg"),f=t("WxoH"),p=t("oK8H");m.exports=function(g,y,j){var T,A;f(g);try{if(T=p(g,"return"),!T){if(y==="throw")throw j;return j}T=c(T,g)}catch(M){A=!0,T=M}if(y==="throw")throw j;if(A)throw T;return f(T),j}},iWRt:function(m,x,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("uZ/K"),g=f([].reverse),y=[1,2];c({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return p(this)&&(this.length=this.length),g(this)}})},jgt4:function(m,x,t){"use strict";var c=t("nCzB"),f=t("m7zg"),p=t("jybJ"),g=t("N6FT"),y=t("JTf3"),j=t("3agc"),T=t("WLJ+"),A=t("JHvW"),M=t("ueY1"),U=t("8ODz"),F=t("WrAw"),N=t("11yv"),V=t("AoAp"),H=t("qjFr"),G=g.PROPER,$=g.CONFIGURABLE,Z=H.IteratorPrototype,W=H.BUGGY_SAFARI_ITERATORS,_=N("iterator"),D="keys",te="values",O="entries",S=function(){return this};m.exports=function(P,K,q,ee,oe,E,w){j(q,K,ee);var C=function(se){if(se===oe&&X)return X;if(!W&&se in I)return I[se];switch(se){case D:return function(){return new q(this,se)};case te:return function(){return new q(this,se)};case O:return function(){return new q(this,se)}}return function(){return new q(this)}},R=K+" Iterator",z=!1,I=P.prototype,B=I[_]||I["@@iterator"]||oe&&I[oe],X=!W&&B||C(oe),k=K=="Array"&&I.entries||B,Y,J,ie;if(k&&(Y=T(k.call(new P)),Y!==Object.prototype&&Y.next&&(!p&&T(Y)!==Z&&(A?A(Y,Z):y(Y[_])||F(Y,_,S)),M(Y,R,!0,!0),p&&(V[R]=S))),G&&oe==te&&B&&B.name!==te&&(!p&&$?U(I,"name",te):(z=!0,X=function(){return f(B,this)})),oe)if(J={values:C(te),keys:E?X:C(D),entries:C(O)},w)for(ie in J)(W||z||!(ie in I))&&F(I,ie,J[ie]);else c({target:K,proto:!0,forced:W||z},J);return(!p||w)&&I[_]!==X&&F(I,_,X,{name:oe}),V[K]=X,J}},jybJ:function(m,x){m.exports=!1},lAFk:function(m,x,t){var c=t("Ks5W");m.exports=function(f,p){var g=c.console;g&&g.error&&(arguments.length==1?g.error(f):g.error(f,p))}},ltkU:function(m,x,t){var c=t("g8+u"),f=t("oK8H"),p=t("AoAp"),g=t("11yv"),y=g("iterator");m.exports=function(j){if(j!=null)return f(j,y)||f(j,"@@iterator")||p[c(j)]}},m7zg:function(m,x){var t=Function.prototype.call;m.exports=t.bind?t.bind(t):function(){return t.apply(t,arguments)}},"mGb/":function(m,x,t){var c=t("eRwv"),f=t("JTf3"),p=/#|\.prototype\./,g=function(M,U){var F=j[y(M)];return F==A?!0:F==T?!1:f(U)?c(U):!!U},y=g.normalize=function(M){return String(M).replace(p,".").toLowerCase()},j=g.data={},T=g.NATIVE="N",A=g.POLYFILL="P";m.exports=g},mcoe:function(m,x,t){var c=t("aLaa"),f=t("8HiI"),p=c(c.bind);m.exports=function(g,y){return f(g),y===void 0?g:p?p(g,y):function(){return g.apply(y,arguments)}}},mdxj:function(m,x,t){"use strict";var c=t("nCzB"),f=t("FjAG").left,p=t("QELg"),g=t("aNIs"),y=t("IGIO"),j=p("reduce"),T=!y&&g>79&&g<83;c({target:"Array",proto:!0,forced:!j||T},{reduce:function(M){var U=arguments.length;return f(this,M,U,U>1?arguments[1]:void 0)}})},me6S:function(m,x,t){var c=t("Ks5W"),f=t("SwuV"),p=c.document,g=f(p)&&f(p.createElement);m.exports=function(y){return g?p.createElement(y):{}}},ms20:function(m,x,t){var c=t("Ks5W"),f=t("m7zg"),p=t("SwuV"),g=t("bT0D"),y=t("oK8H"),j=t("2lHc"),T=t("11yv"),A=c.TypeError,M=T("toPrimitive");m.exports=function(U,F){if(!p(U)||g(U))return U;var N=y(U,M),V;if(N){if(F===void 0&&(F="default"),V=f(N,U,F),!p(V)||g(V))return V;throw A("Can't convert object to primitive value")}return F===void 0&&(F="number"),j(U,F)}},n6S8:function(m,x,t){var c=t("SN6V"),f=Math.max,p=Math.min;m.exports=function(g,y){var j=c(g);return j<0?f(j+y,0):p(j,y)}},nATg:function(m,x,t){var c=t("Ks5W"),f=Object.defineProperty;m.exports=function(p,g){try{f(c,p,{value:g,configurable:!0,writable:!0})}catch(y){c[p]=g}return g}},nCzB:function(m,x,t){var c=t("Ks5W"),f=t("fKql").f,p=t("8ODz"),g=t("WrAw"),y=t("nATg"),j=t("Ttl4"),T=t("mGb/");m.exports=function(A,M){var U=A.target,F=A.global,N=A.stat,V,H,G,$,Z,W;if(F?H=c:N?H=c[U]||y(U,{}):H=(c[U]||{}).prototype,H)for(G in M){if(Z=M[G],A.noTargetGet?(W=f(H,G),$=W&&W.value):$=H[G],V=T(F?G:U+(N?".":"#")+G,A.forced),!V&&$!==void 0){if(typeof Z==typeof $)continue;j(Z,$)}(A.sham||$&&$.sham)&&p(Z,"sham",!0),g(H,G,Z,A)}}},noWC:function(m,x){m.exports=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},nvEG:function(m,x,t){var c=t("Ks5W"),f=t("mcoe"),p=t("m7zg"),g=t("WxoH"),y=t("IL+x"),j=t("3n0U"),T=t("tMNq"),A=t("3Xd8"),M=t("hIaP"),U=t("ltkU"),F=t("iBj/"),N=c.TypeError,V=function(G,$){this.stopped=G,this.result=$},H=V.prototype;m.exports=function(G,$,Z){var W=Z&&Z.that,_=!!(Z&&Z.AS_ENTRIES),D=!!(Z&&Z.IS_ITERATOR),te=!!(Z&&Z.INTERRUPTED),O=f($,W),S,P,K,q,ee,oe,E,w=function(R){return S&&F(S,"normal",R),new V(!0,R)},C=function(R){return _?(g(R),te?O(R[0],R[1],w):O(R[0],R[1])):te?O(R,w):O(R)};if(D)S=G;else{if(P=U(G),!P)throw N(y(G)+" is not iterable");if(j(P)){for(K=0,q=T(G);q>K;K++)if(ee=C(G[K]),ee&&A(H,ee))return ee;return new V(!1)}S=M(G,P)}for(oe=S.next;!(E=p(oe,S)).done;){try{ee=C(E.value)}catch(R){F(S,"throw",R)}if(typeof ee=="object"&&ee&&A(H,ee))return ee}return new V(!1)}},oK8H:function(m,x,t){var c=t("8HiI");m.exports=function(f,p){var g=f[p];return g==null?void 0:c(g)}},oR5W:function(m,x,t){var c=t("++4Y"),f=t("FkIU"),p=t("FlRv"),g=t("WxoH"),y=t("vkZI"),j=t("Ai06");x.f=c&&!f?Object.defineProperties:function(A,M){g(A);for(var U=y(M),F=j(M),N=F.length,V=0,H;N>V;)p.f(A,H=F[V++],U[H]);return A}},oauk:function(m,x,t){"use strict";var c=t("GTqx"),f=t("FlRv"),p=t("4uGi");m.exports=function(g,y,j){var T=c(y);T in g?f.f(g,T,p(0,j)):g[T]=j}},p5Ma:function(m,x,t){var c=t("Ks5W"),f=t("aLaa"),p=t("eRwv"),g=t("ba8b"),y=c.Object,j=f("".split);m.exports=p(function(){return!y("z").propertyIsEnumerable(0)})?function(T){return g(T)=="String"?j(T,""):y(T)}:y},pVCk:function(m,x,t){var c=t("++4Y"),f=t("eRwv"),p=t("me6S");m.exports=!c&&!f(function(){return Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a!=7})},"plO+":function(m,x,t){var c=t("aNIs"),f=t("eRwv");m.exports=!!Object.getOwnPropertySymbols&&!f(function(){var p=Symbol();return!String(p)||!(Object(p)instanceof Symbol)||!Symbol.sham&&c&&c<41})},qJvV:function(m,x,t){var c=t("Ks5W"),f=t("ENhe"),p=t("GI0h"),g=t("Lltv"),y=t("8ODz"),j=t("11yv"),T=j("iterator"),A=j("toStringTag"),M=g.values,U=function(N,V){if(N){if(N[T]!==M)try{y(N,T,M)}catch(G){N[T]=M}if(N[A]||y(N,A,V),f[V]){for(var H in g)if(N[H]!==g[H])try{y(N,H,g[H])}catch(G){N[H]=g[H]}}}};for(var F in f)U(c[F]&&c[F].prototype,F);U(p,"DOMTokenList")},qjFr:function(m,x,t){"use strict";var c=t("eRwv"),f=t("JTf3"),p=t("XFuk"),g=t("WLJ+"),y=t("WrAw"),j=t("11yv"),T=t("jybJ"),A=j("iterator"),M=!1,U,F,N;[].keys&&(N=[].keys(),"next"in N?(F=g(g(N)),F!==Object.prototype&&(U=F)):M=!0);var V=U==null||c(function(){var H={};return U[A].call(H)!==H});V?U={}:T&&(U=p(U)),f(U[A])||y(U,A,function(){return this}),m.exports={IteratorPrototype:U,BUGGY_SAFARI_ITERATORS:M}},qzpy:function(m,x,t){var c=t("Ks5W"),f=t("g8+u"),p=c.String;m.exports=function(g){if(f(g)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return p(g)}},sNJV:function(m,x,t){var c=t("aLaa"),f=t("JTf3"),p=t("4gdG"),g=c(Function.toString);f(p.inspectSource)||(p.inspectSource=function(y){return g(y)}),m.exports=p.inspectSource},tMNq:function(m,x,t){var c=t("c3MK");m.exports=function(f){return c(f.length)}},"uZ/K":function(m,x,t){var c=t("ba8b");m.exports=Array.isArray||function(p){return c(p)=="Array"}},ueY1:function(m,x,t){var c=t("FlRv").f,f=t("YELS"),p=t("11yv"),g=p("toStringTag");m.exports=function(y,j,T){y&&!T&&(y=y.prototype),y&&!f(y,g)&&c(y,g,{configurable:!0,value:j})}},uoua:function(m,x,t){var c=t("Ks5W"),f=t("3Xd8"),p=c.TypeError;m.exports=function(g,y){if(f(y,g))return g;throw p("Incorrect invocation")}},vTDQ:function(m,x){m.exports=typeof window=="object"},vkZI:function(m,x,t){var c=t("p5Ma"),f=t("XaNE");m.exports=function(p){return c(f(p))}},vrKp:function(m,x,t){"use strict";var c=t("nCzB"),f=t("jybJ"),p=t("Ks5W"),g=t("RYfq"),y=t("m7zg"),j=t("BDtL"),T=t("WrAw"),A=t("LOfi"),M=t("JHvW"),U=t("ueY1"),F=t("9Bi7"),N=t("8HiI"),V=t("JTf3"),H=t("SwuV"),G=t("uoua"),$=t("sNJV"),Z=t("nvEG"),W=t("X/EZ"),_=t("NudO"),D=t("XTcp").set,te=t("gzPo"),O=t("TRzv"),S=t("lAFk"),P=t("zFjv"),K=t("8xe4"),q=t("zUnQ"),ee=t("UQ6y"),oe=t("mGb/"),E=t("11yv"),w=t("vTDQ"),C=t("IGIO"),R=t("aNIs"),z=E("species"),I="Promise",B=ee.getterFor(I),X=ee.set,k=ee.getterFor(I),Y=j&&j.prototype,J=j,ie=Y,se=p.TypeError,re=p.document,je=p.process,fe=P.f,ce=fe,Ee=!!(re&&re.createEvent&&p.dispatchEvent),me=V(p.PromiseRejectionEvent),Me="unhandledrejection",pe="rejectionhandled",Te=0,Se=1,Ae=2,De=1,Ue=2,Ke=!1,Be,we,Le,Re,Je=oe(I,function(){var ue=$(J),he=ue!==String(J);if(!he&&R===66)return!0;if(f&&!ie.finally)return!0;if(R>=51&&/native code/.test(ue))return!1;var xe=new J(function(Fe){Fe(1)}),Oe=function(Fe){Fe(function(){},function(){})},Pe=xe.constructor={};return Pe[z]=Oe,Ke=xe.then(function(){})instanceof Oe,Ke?!he&&w&&!me:!0}),st=Je||!W(function(ue){J.all(ue).catch(function(){})}),_e=function(ue){var he;return H(ue)&&V(he=ue.then)?he:!1},lt=function(ue,he){var xe=he.value,Oe=he.state==Se,Pe=Oe?ue.ok:ue.fail,Fe=ue.resolve,Ze=ue.reject,$e=ue.domain,Xe,dt,at;try{Pe?(Oe||(he.rejection===Ue&&Lt(he),he.rejection=De),Pe===!0?Xe=xe:($e&&$e.enter(),Xe=Pe(xe),$e&&($e.exit(),at=!0)),Xe===ue.promise?Ze(se("Promise-chain cycle")):(dt=_e(Xe))?y(dt,Xe,Fe,Ze):Fe(Xe)):Ze(xe)}catch(vt){$e&&!at&&$e.exit(),Ze(vt)}},gt=function(ue,he){if(ue.notified)return;ue.notified=!0,te(function(){for(var xe=ue.reactions,Oe;Oe=xe.get();)lt(Oe,ue);ue.notified=!1,he&&!ue.rejection&&wt(ue)})},mt=function(ue,he,xe){var Oe,Pe;Ee?(Oe=re.createEvent("Event"),Oe.promise=he,Oe.reason=xe,Oe.initEvent(ue,!1,!0),p.dispatchEvent(Oe)):Oe={promise:he,reason:xe},!me&&(Pe=p["on"+ue])?Pe(Oe):ue===Me&&S("Unhandled promise rejection",xe)},wt=function(ue){y(D,p,function(){var he=ue.facade,xe=ue.value,Oe=Mt(ue),Pe;if(Oe&&(Pe=K(function(){C?je.emit("unhandledRejection",xe,he):mt(Me,he,xe)}),ue.rejection=C||Mt(ue)?Ue:De,Pe.error))throw Pe.value})},Mt=function(ue){return ue.rejection!==De&&!ue.parent},Lt=function(ue){y(D,p,function(){var he=ue.facade;C?je.emit("rejectionHandled",he):mt(pe,he,ue.value)})},ut=function(ue,he,xe){return function(Oe){ue(he,Oe,xe)}},ct=function(ue,he,xe){if(ue.done)return;ue.done=!0,xe&&(ue=xe),ue.value=he,ue.state=Ae,gt(ue,!0)},rt=function(ue,he,xe){if(ue.done)return;ue.done=!0,xe&&(ue=xe);try{if(ue.facade===he)throw se("Promise can't be resolved itself");var Oe=_e(he);Oe?te(function(){var Pe={done:!1};try{y(Oe,he,ut(rt,Pe,ue),ut(ct,Pe,ue))}catch(Fe){ct(Pe,Fe,ue)}}):(ue.value=he,ue.state=Se,gt(ue,!1))}catch(Pe){ct({done:!1},Pe,ue)}};if(Je&&(J=function(he){G(this,ie),N(he),y(Be,this);var xe=B(this);try{he(ut(rt,xe),ut(ct,xe))}catch(Oe){ct(xe,Oe)}},ie=J.prototype,Be=function(he){X(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new q,rejection:!1,state:Te,value:void 0})},Be.prototype=A(ie,{then:function(he,xe){var Oe=k(this),Pe=fe(_(this,J));return Oe.parent=!0,Pe.ok=V(he)?he:!0,Pe.fail=V(xe)&&xe,Pe.domain=C?je.domain:void 0,Oe.state==Te?Oe.reactions.add(Pe):te(function(){lt(Pe,Oe)}),Pe.promise},catch:function(ue){return this.then(void 0,ue)}}),we=function(){var ue=new Be,he=B(ue);this.promise=ue,this.resolve=ut(rt,he),this.reject=ut(ct,he)},P.f=fe=function(ue){return ue===J||ue===Le?new we(ue):ce(ue)},!f&&V(j)&&Y!==Object.prototype)){Re=Y.then,Ke||(T(Y,"then",function(he,xe){var Oe=this;return new J(function(Pe,Fe){y(Re,Oe,Pe,Fe)}).then(he,xe)},{unsafe:!0}),T(Y,"catch",ie.catch,{unsafe:!0}));try{delete Y.constructor}catch(ue){}M&&M(Y,ie)}c({global:!0,wrap:!0,forced:Je},{Promise:J}),U(J,I,!1,!0),F(I),Le=g(I),c({target:I,stat:!0,forced:Je},{reject:function(he){var xe=fe(this);return y(xe.reject,void 0,he),xe.promise}}),c({target:I,stat:!0,forced:f||Je},{resolve:function(he){return O(f&&this===Le?J:this,he)}}),c({target:I,stat:!0,forced:st},{all:function(he){var xe=this,Oe=fe(xe),Pe=Oe.resolve,Fe=Oe.reject,Ze=K(function(){var $e=N(xe.resolve),Xe=[],dt=0,at=1;Z(he,function(vt){var ge=dt++,Et=!1;at++,y($e,xe,vt).then(function(We){if(Et)return;Et=!0,Xe[ge]=We,--at||Pe(Xe)},Fe)}),--at||Pe(Xe)});return Ze.error&&Fe(Ze.value),Oe.promise},race:function(he){var xe=this,Oe=fe(xe),Pe=Oe.reject,Fe=K(function(){var Ze=N(xe.resolve);Z(he,function($e){y(Ze,xe,$e).then(Oe.resolve,Pe)})});return Fe.error&&Pe(Fe.value),Oe.promise}})},wOD2:function(m,x,t){"use strict";var c=t("nCzB"),f=t("RXj+").trim,p=t("5JCY");c({target:"String",proto:!0,forced:p("trim")},{trim:function(){return f(this)}})},"x1+7":function(m,x,t){var c=t("RYfq"),f=t("aLaa"),p=t("QrM1"),g=t("UCFi"),y=t("WxoH"),j=f([].concat);m.exports=c("Reflect","ownKeys")||function(A){var M=p.f(y(A)),U=g.f;return U?j(M,U(A)):M}},x8x8:function(m,x,t){"use strict";var c=t("1mOU"),f=t("m7zg"),p=t("aLaa"),g=t("WONN"),y=t("eRwv"),j=t("WxoH"),T=t("JTf3"),A=t("SN6V"),M=t("c3MK"),U=t("qzpy"),F=t("XaNE"),N=t("M/+V"),V=t("oK8H"),H=t("Ne/+"),G=t("3fk+"),$=t("11yv"),Z=$("replace"),W=Math.max,_=Math.min,D=p([].concat),te=p([].push),O=p("".indexOf),S=p("".slice),P=function(oe){return oe===void 0?oe:String(oe)},K=function(){return"a".replace(/./,"$0")==="$0"}(),q=function(){return/./[Z]?/./[Z]("a","$0")==="":!1}(),ee=!y(function(){var oe=/./;return oe.exec=function(){var E=[];return E.groups={a:"7"},E},"".replace(oe,"$")!=="7"});g("replace",function(oe,E,w){var C=q?"$":"$0";return[function(z,I){var B=F(this),X=z==null?void 0:V(z,Z);return X?f(X,z,B,I):f(E,U(B),z,I)},function(R,z){var I=j(this),B=U(R);if(typeof z=="string"&&O(z,C)===-1&&O(z,"$<")===-1){var X=w(E,I,B,z);if(X.done)return X.value}var k=T(z);k||(z=U(z));var Y=I.global;if(Y){var J=I.unicode;I.lastIndex=0}for(var ie=[];;){var se=G(I,B);if(se===null)break;if(te(ie,se),!Y)break;var re=U(se[0]);re===""&&(I.lastIndex=N(B,M(I.lastIndex),J))}for(var je="",fe=0,ce=0;ce=fe&&(je+=S(B,fe,me)+Ae,fe=me+Ee.length)}return je+S(B,fe)}]},!ee||!K||q)},yD9w:function(m,x,t){"use strict";var c=t("aLaa"),f=t("N6FT").PROPER,p=t("WrAw"),g=t("WxoH"),y=t("3Xd8"),j=t("qzpy"),T=t("eRwv"),A=t("HTC/"),M="toString",U=RegExp.prototype,F=U[M],N=c(A),V=T(function(){return F.call({source:"a",flags:"b"})!="/a/b"}),H=f&&F.name!=M;(V||H)&&p(RegExp.prototype,M,function(){var $=g(this),Z=j($.source),W=$.flags,_=j(W===void 0&&y(U,$)&&!("flags"in U)?N($):W);return"/"+Z+"/"+_},{unsafe:!0})},yXPU:function(m,x){function t(f,p,g,y,j,T,A){try{var M=f[T](A),U=M.value}catch(F){g(F);return}M.done?p(U):Promise.resolve(U).then(y,j)}function c(f){return function(){var p=this,g=arguments;return new Promise(function(y,j){var T=f.apply(p,g);function A(U){t(T,y,j,A,M,"next",U)}function M(U){t(T,y,j,A,M,"throw",U)}A(void 0)})}}m.exports=c,m.exports.default=m.exports,m.exports.__esModule=!0},ymN0:function(m,x,t){var c=t("aLaa"),f=t("SN6V"),p=t("qzpy"),g=t("XaNE"),y=c("".charAt),j=c("".charCodeAt),T=c("".slice),A=function(M){return function(U,F){var N=p(g(U)),V=f(F),H=N.length,G,$;return V<0||V>=H?M?"":void 0:(G=j(N,V),G<55296||G>56319||V+1===H||($=j(N,V+1))<56320||$>57343?M?y(N,V):G:M?T(N,V,V+2):(G-55296<<10)+($-56320)+65536)}};m.exports={codeAt:A(!1),charAt:A(!0)}},zFjv:function(m,x,t){"use strict";var c=t("8HiI"),f=function(p){var g,y;this.promise=new p(function(j,T){if(g!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");g=j,y=T}),this.resolve=c(g),this.reject=c(y)};m.exports.f=function(p){return new f(p)}},zUnQ:function(m,x){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(c){var f={item:c,next:null};this.head?this.tail.next=f:this.head=f,this.tail=f},get:function(){var c=this.head;if(c)return this.head=c.next,this.tail===c&&(this.tail=null),c.item}},m.exports=t}}]); diff --git a/266.32b1e4db.async.js b/266.32b1e4db.async.js deleted file mode 100644 index 31857e73d8..0000000000 --- a/266.32b1e4db.async.js +++ /dev/null @@ -1,18 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[266],{"++4Y":function(g,x,t){var c=t("eRwv");g.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"/TZh":function(g,x,t){var c=t("11yv"),d=c("match");g.exports=function(v){var m=/./;try{"/./"[v](m)}catch(y){try{return m[d]=!1,"/./"[v](m)}catch(M){}}return!1}},"/pbl":function(g,x,t){var c=t("eE3R");g.exports=/web0s(?!.*chrome)/i.test(c)},"0B/8":function(g,x,t){"use strict";t.d(x,"a",function(){return N});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var c=function(C,D){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,_){P.__proto__=_}||function(P,_){for(var re in _)Object.prototype.hasOwnProperty.call(_,re)&&(P[re]=_[re])})(C,D)};function d(S,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function D(){this.constructor=S}c(S,C),S.prototype=C===null?Object.create(C):(D.prototype=C.prototype,new D)}function v(S){var C="";Array.isArray(S)||(S=[S]);for(var D=0;DS.phi1&&(S.phi2-=2*M),S.sweepFlag===1&&S.phi2P)return[];if(P===0)return[[S*D/(S*S+C*C),C*D/(S*S+C*C)]];var _=Math.sqrt(P);return[[(S*D+C*_)/(S*S+C*C),(C*D-S*_)/(S*S+C*C)],[(S*D-C*_)/(S*S+C*C),(C*D+S*_)/(S*S+C*C)]]}var T,L=Math.PI/180;function B(S,C,D){return(1-D)*S+D*C}function I(S,C,D,P){return S+Math.cos(P/180*M)*C+Math.sin(P/180*M)*D}function V(S,C,D,P){var _=1e-6,re=C-S,q=D-C,b=3*re+3*(P-D)-6*q,H=6*(q-re),O=3*re;return Math.abs(b)<_?[-O/H]:function(j,k,w){w===void 0&&(w=1e-6);var W=j*j/4-k;if(W<-w)return[];if(W<=w)return[-j/2];var J=Math.sqrt(W);return[-j/2-J,-j/2+J]}(H/b,O/b,_)}function G(S,C,D,P,_){var re=1-_;return S*(re*re*re)+C*(3*re*re*_)+D*(3*re*_*_)+P*(_*_*_)}!function(S){function C(){return _(function(b,H,O){return b.relative&&(b.x1!==void 0&&(b.x1+=H),b.y1!==void 0&&(b.y1+=O),b.x2!==void 0&&(b.x2+=H),b.y2!==void 0&&(b.y2+=O),b.x!==void 0&&(b.x+=H),b.y!==void 0&&(b.y+=O),b.relative=!1),b})}function D(){var b=NaN,H=NaN,O=NaN,j=NaN;return _(function(k,w,W){return k.type&N.SMOOTH_CURVE_TO&&(k.type=N.CURVE_TO,b=isNaN(b)?w:b,H=isNaN(H)?W:H,k.x1=k.relative?w-b:2*w-b,k.y1=k.relative?W-H:2*W-H),k.type&N.CURVE_TO?(b=k.relative?w+k.x2:k.x2,H=k.relative?W+k.y2:k.y2):(b=NaN,H=NaN),k.type&N.SMOOTH_QUAD_TO&&(k.type=N.QUAD_TO,O=isNaN(O)?w:O,j=isNaN(j)?W:j,k.x1=k.relative?w-O:2*w-O,k.y1=k.relative?W-j:2*W-j),k.type&N.QUAD_TO?(O=k.relative?w+k.x1:k.x1,j=k.relative?W+k.y1:k.y1):(O=NaN,j=NaN),k})}function P(){var b=NaN,H=NaN;return _(function(O,j,k){if(O.type&N.SMOOTH_QUAD_TO&&(O.type=N.QUAD_TO,b=isNaN(b)?j:b,H=isNaN(H)?k:H,O.x1=O.relative?j-b:2*j-b,O.y1=O.relative?k-H:2*k-H),O.type&N.QUAD_TO){b=O.relative?j+O.x1:O.x1,H=O.relative?k+O.y1:O.y1;var w=O.x1,W=O.y1;O.type=N.CURVE_TO,O.x1=((O.relative?0:j)+2*w)/3,O.y1=((O.relative?0:k)+2*W)/3,O.x2=(O.x+2*w)/3,O.y2=(O.y+2*W)/3}else b=NaN,H=NaN;return O})}function _(b){var H=0,O=0,j=NaN,k=NaN;return function(w){if(isNaN(j)&&!(w.type&N.MOVE_TO))throw new Error("path must start with moveto");var W=b(w,H,O,j,k);return w.type&N.CLOSE_PATH&&(H=j,O=k),w.x!==void 0&&(H=w.relative?H+w.x:w.x),w.y!==void 0&&(O=w.relative?O+w.y:w.y),w.type&N.MOVE_TO&&(j=H,k=O),W}}function re(b,H,O,j,k,w){return y(b,H,O,j,k,w),_(function(W,J,Y,X){var Q=W.x1,ie=W.x2,ce=W.relative&&!isNaN(X),se=W.x!==void 0?W.x:ce?0:J,Ce=W.y!==void 0?W.y:ce?0:Y;function ve(ze){return ze*ze}W.type&N.HORIZ_LINE_TO&&H!==0&&(W.type=N.LINE_TO,W.y=W.relative?0:Y),W.type&N.VERT_LINE_TO&&O!==0&&(W.type=N.LINE_TO,W.x=W.relative?0:J),W.x!==void 0&&(W.x=W.x*b+Ce*O+(ce?0:k)),W.y!==void 0&&(W.y=se*H+W.y*j+(ce?0:w)),W.x1!==void 0&&(W.x1=W.x1*b+W.y1*O+(ce?0:k)),W.y1!==void 0&&(W.y1=Q*H+W.y1*j+(ce?0:w)),W.x2!==void 0&&(W.x2=W.x2*b+W.y2*O+(ce?0:k)),W.y2!==void 0&&(W.y2=ie*H+W.y2*j+(ce?0:w));var me=b*j-H*O;if(W.xRot!==void 0&&(b!==1||H!==0||O!==0||j!==1))if(me===0)delete W.rX,delete W.rY,delete W.xRot,delete W.lArcFlag,delete W.sweepFlag,W.type=N.LINE_TO;else{var Pe=W.xRot*Math.PI/180,Me=Math.sin(Pe),Ae=Math.cos(Pe),Re=1/ve(W.rX),Te=1/ve(W.rY),Ie=ve(Ae)*Re+ve(Me)*Te,we=2*Me*Ae*(Re-Te),Ne=ve(Me)*Re+ve(Ae)*Te,Be=Ie*j*j-we*H*j+Ne*H*H,Ue=we*(b*j+H*O)-2*(Ie*O*j+Ne*b*H),De=Ie*O*O-we*b*O+Ne*b*b,je=(Math.atan2(Ue,Be-De)+Math.PI)%Math.PI/2,Se=Math.sin(je),Oe=Math.cos(je);W.rX=Math.abs(me)/Math.sqrt(Be*ve(Oe)+Ue*Se*Oe+De*ve(Se)),W.rY=Math.abs(me)/Math.sqrt(Be*ve(Se)-Ue*Se*Oe+De*ve(Oe)),W.xRot=180*je/Math.PI}return W.sweepFlag!==void 0&&0>me&&(W.sweepFlag=+!W.sweepFlag),W})}function q(){return function(b){var H={};for(var O in b)H[O]=b[O];return H}}S.ROUND=function(b){function H(O){return Math.round(O*b)/b}return b===void 0&&(b=1e13),y(b),function(O){return O.x1!==void 0&&(O.x1=H(O.x1)),O.y1!==void 0&&(O.y1=H(O.y1)),O.x2!==void 0&&(O.x2=H(O.x2)),O.y2!==void 0&&(O.y2=H(O.y2)),O.x!==void 0&&(O.x=H(O.x)),O.y!==void 0&&(O.y=H(O.y)),O.rX!==void 0&&(O.rX=H(O.rX)),O.rY!==void 0&&(O.rY=H(O.rY)),O}},S.TO_ABS=C,S.TO_REL=function(){return _(function(b,H,O){return b.relative||(b.x1!==void 0&&(b.x1-=H),b.y1!==void 0&&(b.y1-=O),b.x2!==void 0&&(b.x2-=H),b.y2!==void 0&&(b.y2-=O),b.x!==void 0&&(b.x-=H),b.y!==void 0&&(b.y-=O),b.relative=!0),b})},S.NORMALIZE_HVZ=function(b,H,O){return b===void 0&&(b=!0),H===void 0&&(H=!0),O===void 0&&(O=!0),_(function(j,k,w,W,J){if(isNaN(W)&&!(j.type&N.MOVE_TO))throw new Error("path must start with moveto");return H&&j.type&N.HORIZ_LINE_TO&&(j.type=N.LINE_TO,j.y=j.relative?0:w),O&&j.type&N.VERT_LINE_TO&&(j.type=N.LINE_TO,j.x=j.relative?0:k),b&&j.type&N.CLOSE_PATH&&(j.type=N.LINE_TO,j.x=j.relative?W-k:W,j.y=j.relative?J-w:J),j.type&N.ARC&&(j.rX===0||j.rY===0)&&(j.type=N.LINE_TO,delete j.rX,delete j.rY,delete j.xRot,delete j.lArcFlag,delete j.sweepFlag),j})},S.NORMALIZE_ST=D,S.QT_TO_C=P,S.INFO=_,S.SANITIZE=function(b){b===void 0&&(b=0),y(b);var H=NaN,O=NaN,j=NaN,k=NaN;return _(function(w,W,J,Y,X){var Q=Math.abs,ie=!1,ce=0,se=0;if(w.type&N.SMOOTH_CURVE_TO&&(ce=isNaN(H)?0:W-H,se=isNaN(O)?0:J-O),w.type&(N.CURVE_TO|N.SMOOTH_CURVE_TO)?(H=w.relative?W+w.x2:w.x2,O=w.relative?J+w.y2:w.y2):(H=NaN,O=NaN),w.type&N.SMOOTH_QUAD_TO?(j=isNaN(j)?W:2*W-j,k=isNaN(k)?J:2*J-k):w.type&N.QUAD_TO?(j=w.relative?W+w.x1:w.x1,k=w.relative?J+w.y1:w.y2):(j=NaN,k=NaN),w.type&N.LINE_COMMANDS||w.type&N.ARC&&(w.rX===0||w.rY===0||!w.lArcFlag)||w.type&N.CURVE_TO||w.type&N.SMOOTH_CURVE_TO||w.type&N.QUAD_TO||w.type&N.SMOOTH_QUAD_TO){var Ce=w.x===void 0?0:w.relative?w.x:w.x-W,ve=w.y===void 0?0:w.relative?w.y:w.y-J;ce=isNaN(j)?w.x1===void 0?ce:w.relative?w.x:w.x1-W:j-W,se=isNaN(k)?w.y1===void 0?se:w.relative?w.y:w.y1-J:k-J;var me=w.x2===void 0?0:w.relative?w.x:w.x2-W,Pe=w.y2===void 0?0:w.relative?w.y:w.y2-J;Q(Ce)<=b&&Q(ve)<=b&&Q(ce)<=b&&Q(se)<=b&&Q(me)<=b&&Q(Pe)<=b&&(ie=!0)}return w.type&N.CLOSE_PATH&&Q(W-Y)<=b&&Q(J-X)<=b&&(ie=!0),ie?[]:w})},S.MATRIX=re,S.ROTATE=function(b,H,O){H===void 0&&(H=0),O===void 0&&(O=0),y(b,H,O);var j=Math.sin(b),k=Math.cos(b);return re(k,j,-j,k,H-H*k+O*j,O-H*j-O*k)},S.TRANSLATE=function(b,H){return H===void 0&&(H=0),y(b,H),re(1,0,0,1,b,H)},S.SCALE=function(b,H){return H===void 0&&(H=b),y(b,H),re(b,0,0,H,0,0)},S.SKEW_X=function(b){return y(b),re(1,0,Math.atan(b),1,0,0)},S.SKEW_Y=function(b){return y(b),re(1,Math.atan(b),0,1,0,0)},S.X_AXIS_SYMMETRY=function(b){return b===void 0&&(b=0),y(b),re(-1,0,0,1,b,0)},S.Y_AXIS_SYMMETRY=function(b){return b===void 0&&(b=0),y(b),re(1,0,0,-1,0,b)},S.A_TO_C=function(){return _(function(b,H,O){return N.ARC===b.type?function(j,k,w){var W,J,Y,X;j.cX||A(j,k,w);for(var Q=Math.min(j.phi1,j.phi2),ie=Math.max(j.phi1,j.phi2)-Q,ce=Math.ceil(ie/90),se=new Array(ce),Ce=k,ve=w,me=0;mek.maxX&&(k.maxX=Se),Sek.maxY&&(k.maxY=Se),Seje&&X(G(W,Y.x1,Y.x2,Y.x,je));for(var se=0,Ce=V(J,Y.y1,Y.y2,Y.y);seje&&Q(G(J,Y.y1,Y.y2,Y.y,je))}if(Y.type&N.ARC){X(Y.x),Q(Y.y),A(Y,W,J);for(var ve=Y.xRot/180*Math.PI,me=Math.cos(ve)*Y.rX,Pe=Math.sin(ve)*Y.rX,Me=-Math.sin(ve)*Y.rY,Ae=Math.cos(ve)*Y.rY,Re=Y.phi1Y.phi2?[Y.phi2+360,Y.phi1+360]:[Y.phi2,Y.phi1],Te=Re[0],Ie=Re[1],we=function(Oe){var ze=Oe[0],qe=Oe[1],Ge=180*Math.atan2(qe,ze)/Math.PI;return GeTe&&jeTe&&jej)throw new SyntaxError('Expected positive number, got "'+j+'" at index "'+q+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+q+'"')}this.curArgs.push(j),this.curArgs.length===le[this.curCommandType]&&(N.HORIZ_LINE_TO===this.curCommandType?re({type:N.HORIZ_LINE_TO,relative:this.curCommandRelative,x:j}):N.VERT_LINE_TO===this.curCommandType?re({type:N.VERT_LINE_TO,relative:this.curCommandRelative,y:j}):this.curCommandType===N.MOVE_TO||this.curCommandType===N.LINE_TO||this.curCommandType===N.SMOOTH_QUAD_TO?(re({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),N.MOVE_TO===this.curCommandType&&(this.curCommandType=N.LINE_TO)):this.curCommandType===N.CURVE_TO?re({type:N.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===N.SMOOTH_CURVE_TO?re({type:N.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.QUAD_TO?re({type:N.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.ARC&&re({type:N.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(!Z(b))if(b===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(b!=="+"&&b!=="-"&&b!==".")if(O)this.curNumber=b,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+q+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+b+'" at index '+q+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,b!=="z"&&b!=="Z")if(b==="h"||b==="H")this.curCommandType=N.HORIZ_LINE_TO,this.curCommandRelative=b==="h";else if(b==="v"||b==="V")this.curCommandType=N.VERT_LINE_TO,this.curCommandRelative=b==="v";else if(b==="m"||b==="M")this.curCommandType=N.MOVE_TO,this.curCommandRelative=b==="m";else if(b==="l"||b==="L")this.curCommandType=N.LINE_TO,this.curCommandRelative=b==="l";else if(b==="c"||b==="C")this.curCommandType=N.CURVE_TO,this.curCommandRelative=b==="c";else if(b==="s"||b==="S")this.curCommandType=N.SMOOTH_CURVE_TO,this.curCommandRelative=b==="s";else if(b==="q"||b==="Q")this.curCommandType=N.QUAD_TO,this.curCommandRelative=b==="q";else if(b==="t"||b==="T")this.curCommandType=N.SMOOTH_QUAD_TO,this.curCommandRelative=b==="t";else{if(b!=="a"&&b!=="A")throw new SyntaxError('Unexpected character "'+b+'" at index '+q+".");this.curCommandType=N.ARC,this.curCommandRelative=b==="a"}else P.push({type:N.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=b,this.curNumberHasDecimal=b==="."}else this.curNumber+=b,this.curNumberHasDecimal=!0;else this.curNumber+=b;else this.curNumber+=b,this.curNumberHasExp=!0;else this.curNumber+=b,this.curNumberHasExpDigits=this.curNumberHasExp}return P},C.prototype.transform=function(D){return Object.create(this,{parse:{value:function(_,re){re===void 0&&(re=[]);for(var q=0,b=Object.getPrototypeOf(this).parse.call(this,_);q0&&arguments[0]!==void 0?arguments[0]:{},u=h.DOMParser,r={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:u,createCanvas:function(e,o){return new OffscreenCanvas(e,o)},createImage:function(e){return ve()(se.a.mark(function o(){var n,i,s;return se.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,fetch(e);case 2:return n=f.sent,f.next=5,n.blob();case 5:return i=f.sent,f.next=8,createImageBitmap(i);case 8:return s=f.sent,f.abrupt("return",s);case 10:case"end":return f.stop()}},o)}))()}};return(typeof DOMParser!="undefined"||typeof u=="undefined")&&Reflect.deleteProperty(r,"DOMParser"),r}function Be(h){var u=h.DOMParser,r=h.canvas,a=h.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:u,fetch:a,createCanvas:r.createCanvas,createImage:r.loadImage}}var Ue=Object.freeze({__proto__:null,offscreen:Ne,node:Be});function De(h){return h.replace(/(?!\u3000)\s+/gm," ")}function je(h){return h.replace(/^[\n \t]+/,"")}function Se(h){return h.replace(/[\n \t]+$/,"")}function Oe(h){var u=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return u.map(parseFloat)}var ze=/^[A-Z-]+$/;function qe(h){return ze.test(h)?h.toLowerCase():h}function Ge(h){var u=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(h)||[];return u[2]||u[3]||u[4]}function _e(h){if(!h.startsWith("rgb"))return h;var u=3,r=h.replace(/\d+(\.\d+)?/g,function(a,e){return u--&&e?String(Math.round(parseFloat(a))):a});return r}var it=/(\[[^\]]+\])/g,st=/(#[^\s+>~.[:]+)/g,ht=/(\.[^\s+>~.[:]+)/g,mt=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,at=/(:[\w-]+\([^)]*\))/gi,tt=/(:[^\s+>~.[:]+)/g,nt=/([^\s+>~.[:]+)/g;function Ke(h,u){var r=u.exec(h);return r?[h.replace(u," "),r.length]:[h,0]}function ne(h){var u=[0,0,0],r=h.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,e=Ke(r,it),o=Object(ie.a)(e,2);r=o[0],a=o[1],u[1]+=a;var n=Ke(r,st),i=Object(ie.a)(n,2);r=i[0],a=i[1],u[0]+=a;var s=Ke(r,ht),l=Object(ie.a)(s,2);r=l[0],a=l[1],u[1]+=a;var f=Ke(r,mt),p=Object(ie.a)(f,2);r=p[0],a=p[1],u[2]+=a;var E=Ke(r,at),U=Object(ie.a)(E,2);r=U[0],a=U[1],u[1]+=a;var $=Ke(r,tt),ee=Object(ie.a)($,2);r=ee[0],a=ee[1],u[1]+=a,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var oe=Ke(r,nt),ae=Object(ie.a)(oe,2);return r=ae[0],a=ae[1],u[2]+=a,u.join("")}var de=1e-8;function pe(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function ye(h,u){return(h[0]*u[0]+h[1]*u[1])/(pe(h)*pe(u))}function Ee(h,u){return(h[0]*u[1]0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,e=this.name;return De(this.getString()).trim().split(r).map(function(o){return new h(a,e,o)})}},{key:"hasValue",value:function(r){var a=this.value;return a!==null&&a!==""&&(r||a!==0)&&typeof a!="undefined"}},{key:"isString",value:function(r){var a=this.value,e=typeof a=="string";return!e||!r?e:r.test(a)}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var r=this.getString();switch(!0){case r.endsWith("px"):case/^[0-9]+$/.test(r):return!0;default:return!1}}},{key:"setValue",value:function(r){return this.value=r,this}},{key:"getValue",value:function(r){return typeof r=="undefined"||this.hasValue()?this.value:r}},{key:"getNumber",value:function(r){if(!this.hasValue())return typeof r=="undefined"?0:parseFloat(r);var a=this.value,e=parseFloat(a);return this.isString(/%$/)&&(e/=100),e}},{key:"getString",value:function(r){return typeof r=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(r)}},{key:"getColor",value:function(r){var a=this.getString(r);return this.isNormalizedColor||(this.isNormalizedColor=!0,a=_e(a),this.value=a),a}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var e=typeof r=="boolean"?[void 0,r]:[r],o=Object(ie.a)(e,2),n=o[0],i=o[1],s=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(n);default:{var l=this.getNumber();return a&&l<1?l*s.computeSize(n):l}}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}},{key:"getRadians",value:function(){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(){var r=this.getString(),a=/#([^)'"]+)/.exec(r);return a&&(a=a[1]),a||(a=r),this.document.definitions[a]}},{key:"getFillStyleDefinition",value:function(r,a){var e=this.getDefinition();if(!e)return null;if(typeof e.createGradient=="function")return e.createGradient(this.document.ctx,r,a);if(typeof e.createPattern=="function"){if(e.getHrefAttribute().hasValue()){var o=e.getAttribute("patternTransform");e=e.getHrefAttribute().getDefinition(),o.hasValue()&&e.getAttribute("patternTransform",!0).setValue(o.value)}return e.createPattern(this.document.ctx,r,a)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?h.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(r){for(var a=this.getColor(),e=a.length,o=0,n=0;n1&&arguments[1]!==void 0?arguments[1]:0,e=Oe(r),o=Object(ie.a)(e,2),n=o[0],i=n===void 0?a:n,s=o[1],l=s===void 0?a:s;return new h(i,l)}},{key:"parseScale",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e=Oe(r),o=Object(ie.a)(e,2),n=o[0],i=n===void 0?a:n,s=o[1],l=s===void 0?i:s;return new h(i,l)}},{key:"parsePath",value:function(r){for(var a=Oe(r),e=a.length,o=[],n=0;n0}},{key:"runEvents",value:function(){if(!this.working)return;var r=this.screen,a=this.events,e=this.eventElements,o=r.ctx.canvas.style;o&&(o.cursor=""),a.forEach(function(n,i){for(var s=n.run,l=e[i];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}},{key:"checkPath",value:function(r,a){if(!this.working||!a)return;var e=this.events,o=this.eventElements;e.forEach(function(n,i){var s=n.x,l=n.y;!o[i]&&a.isPointInPath&&a.isPointInPath(s,l)&&(o[i]=r)})}},{key:"checkBoundingBox",value:function(r,a){if(!this.working||!a)return;var e=this.events,o=this.eventElements;e.forEach(function(n,i){var s=n.x,l=n.y;!o[i]&&a.isPointInBox(s,l)&&(o[i]=r)})}},{key:"mapXY",value:function(r,a){for(var e=this.screen,o=e.window,n=e.ctx,i=new We(r,a),s=n.canvas;s;)i.x-=s.offsetLeft,i.y-=s.offsetTop,s=s.offsetParent;return o.scrollX&&(i.x+=o.scrollX),o.scrollY&&(i.y+=o.scrollY),i}},{key:"onClick",value:function(r){var a=this.mapXY(r.clientX,r.clientY),e=a.x,o=a.y;this.events.push({type:"onclick",x:e,y:o,run:function(i){i.onClick&&i.onClick()}})}},{key:"onMouseMove",value:function(r){var a=this.mapXY(r.clientX,r.clientY),e=a.x,o=a.y;this.events.push({type:"onmousemove",x:e,y:o,run:function(i){i.onMouseMove&&i.onMouseMove()}})}}]),h}(),Ct=typeof window!="undefined"?window:null,Mt=typeof fetch!="undefined"?fetch.bind(void 0):null,He=function(){function h(u){Object(X.a)(this,h);var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.fetch,e=a===void 0?Mt:a,o=r.window,n=o===void 0?Ct:o;this.ctx=u,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new yt,this.mouse=new Ot(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=e}return Object(Q.a)(h,[{key:"wait",value:function(r){this.waits.push(r)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var r=this.waits.every(function(a){return a()});return r&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=r,r}},{key:"setDefaults",value:function(r){r.strokeStyle="rgba(0,0,0,0)",r.lineCap="butt",r.lineJoin="miter",r.miterLimit=4}},{key:"setViewBox",value:function(r){var a=r.document,e=r.ctx,o=r.aspectRatio,n=r.width,i=r.desiredWidth,s=r.height,l=r.desiredHeight,f=r.minX,p=f===void 0?0:f,E=r.minY,U=E===void 0?0:E,$=r.refX,ee=r.refY,oe=r.clip,ae=oe===void 0?!1:oe,xe=r.clipX,fe=xe===void 0?0:xe,ue=r.clipY,ge=ue===void 0?0:ue,Le=De(o).replace(/^defer\s/,""),Ve=Le.split(" "),Ze=Object(ie.a)(Ve,2),dt=Ze[0],ft=Ze[1],ot=dt||"xMidYMid",rt=ft||"meet",ut=n/i,Et=s/l,et=Math.min(ut,Et),Pt=Math.max(ut,Et),Vt=i,Bt=l;rt==="meet"&&(Vt*=et,Bt*=et),rt==="slice"&&(Vt*=Pt,Bt*=Pt);var Bn=new he(a,"refX",$),Fn=new he(a,"refY",ee),Wn=Bn.hasValue()&&Fn.hasValue();if(Wn&&e.translate(-et*Bn.getPixels("x"),-et*Fn.getPixels("y")),ae){var Gn=et*fe,kn=et*ge;e.beginPath(),e.moveTo(Gn,kn),e.lineTo(n,kn),e.lineTo(n,s),e.lineTo(Gn,s),e.closePath(),e.clip()}if(!Wn){var zn=rt==="meet"&&et===Et,Hn=rt==="slice"&&Pt===Et,Yn=rt==="meet"&&et===ut,Kn=rt==="slice"&&Pt===ut;ot.startsWith("xMid")&&(zn||Hn)&&e.translate(n/2-Vt/2,0),ot.endsWith("YMid")&&(Yn||Kn)&&e.translate(0,s/2-Bt/2),ot.startsWith("xMax")&&(zn||Hn)&&e.translate(n-Vt,0),ot.endsWith("YMax")&&(Yn||Kn)&&e.translate(0,s-Bt)}switch(!0){case ot==="none":e.scale(ut,Et);break;case rt==="meet":e.scale(et,et);break;case rt==="slice":e.scale(Pt,Pt);break}e.translate(-p,-U)}},{key:"start",value:function(r){var a=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.enableRedraw,n=o===void 0?!1:o,i=e.ignoreMouse,s=i===void 0?!1:i,l=e.ignoreAnimation,f=l===void 0?!1:l,p=e.ignoreDimensions,E=p===void 0?!1:p,U=e.ignoreClear,$=U===void 0?!1:U,ee=e.forceRedraw,oe=e.scaleWidth,ae=e.scaleHeight,xe=e.offsetX,fe=e.offsetY,ue=this.FRAMERATE,ge=this.mouse,Le=1e3/ue;if(this.frameDuration=Le,this.readyPromise=new Promise(function(ot){a.resolveReady=ot}),this.isReady()&&this.render(r,E,$,oe,ae,xe,fe),!n)return;var Ve=Date.now(),Ze=Ve,dt=0,ft=function ot(){Ve=Date.now(),dt=Ve-Ze,dt>=Le&&(Ze=Ve-dt%Le,a.shouldUpdate(f,ee)&&(a.render(r,E,$,oe,ae,xe,fe),ge.runEvents())),a.intervalId=Ae()(ot)};s||ge.start(),this.intervalId=Ae()(ft)}},{key:"stop",value:function(){this.intervalId&&(Ae.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(r,a){if(!r){var e=this.frameDuration,o=this.animations.reduce(function(n,i){return i.update(e)||n},!1);if(o)return!0}return typeof a=="function"&&a()||!this.isReadyLock&&this.isReady()?!0:!!this.mouse.hasEvents()}},{key:"render",value:function(r,a,e,o,n,i,s){var l=this.CLIENT_WIDTH,f=this.CLIENT_HEIGHT,p=this.viewPort,E=this.ctx,U=this.isFirstRender,$=E.canvas;p.clear(),$.width&&$.height?p.setCurrent($.width,$.height):p.setCurrent(l,f);var ee=r.getStyle("width"),oe=r.getStyle("height");!a&&(U||typeof o!="number"&&typeof n!="number")&&(ee.hasValue()&&($.width=ee.getPixels("x"),$.style&&($.style.width="".concat($.width,"px"))),oe.hasValue()&&($.height=oe.getPixels("y"),$.style&&($.style.height="".concat($.height,"px"))));var ae=$.clientWidth||$.width,xe=$.clientHeight||$.height;if(a&&ee.hasValue()&&oe.hasValue()&&(ae=ee.getPixels("x"),xe=oe.getPixels("y")),p.setCurrent(ae,xe),typeof i=="number"&&r.getAttribute("x",!0).setValue(i),typeof s=="number"&&r.getAttribute("y",!0).setValue(s),typeof o=="number"||typeof n=="number"){var fe=Oe(r.getAttribute("viewBox").getString()),ue=0,ge=0;if(typeof o=="number"){var Le=r.getStyle("width");Le.hasValue()?ue=Le.getPixels("x")/o:isNaN(fe[2])||(ue=fe[2]/o)}if(typeof n=="number"){var Ve=r.getStyle("height");Ve.hasValue()?ge=Ve.getPixels("y")/n:isNaN(fe[3])||(ge=fe[3]/n)}ue||(ue=ge),ge||(ge=ue),r.getAttribute("width",!0).setValue(o),r.getAttribute("height",!0).setValue(n);var Ze=r.getStyle("transform",!0,!0);Ze.setValue("".concat(Ze.getString()," scale(").concat(1/ue,", ").concat(1/ge,")"))}e||E.clearRect(0,0,ae,xe),r.render(E),U&&(this.isFirstRender=!1)}}]),h}();He.defaultWindow=Ct,He.defaultFetch=Mt;var $n=He.defaultFetch,Xn=typeof DOMParser!="undefined"?DOMParser:null,It=function(){function h(){Object(X.a)(this,h);var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=u.fetch,a=r===void 0?$n:r,e=u.DOMParser,o=e===void 0?Xn:e;this.fetch=a,this.DOMParser=o}return Object(Q.a)(h,[{key:"parse",value:function(r){var a=this;return ve()(se.a.mark(function e(){return se.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!r.startsWith("<")){n.next=2;break}return n.abrupt("return",a.parseFromString(r));case 2:return n.abrupt("return",a.load(r));case 3:case"end":return n.stop()}},e)}))()}},{key:"parseFromString",value:function(r){var a=new this.DOMParser;try{return this.checkDocument(a.parseFromString(r,"image/svg+xml"))}catch(e){return this.checkDocument(a.parseFromString(r,"text/xml"))}}},{key:"checkDocument",value:function(r){var a=r.getElementsByTagName("parsererror")[0];if(a)throw new Error(a.textContent);return r}},{key:"load",value:function(r){var a=this;return ve()(se.a.mark(function e(){var o,n;return se.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,a.fetch(r);case 2:return o=s.sent,s.next=5,o.text();case 5:return n=s.sent,s.abrupt("return",a.parseFromString(n));case 7:case"end":return s.stop()}},e)}))()}}]),h}(),Zt=function(){function h(u,r){Object(X.a)(this,h),this.type="translate",this.point=null,this.point=We.parse(r)}return Object(Q.a)(h,[{key:"apply",value:function(r){var a=this.point,e=a.x,o=a.y;r.translate(e||0,o||0)}},{key:"unapply",value:function(r){var a=this.point,e=a.x,o=a.y;r.translate(-1*e||0,-1*o||0)}},{key:"applyToPoint",value:function(r){var a=this.point,e=a.x,o=a.y;r.applyTransform([1,0,0,1,e||0,o||0])}}]),h}(),qt=function(){function h(u,r,a){Object(X.a)(this,h),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var e=Oe(r);this.angle=new he(u,"angle",e[0]),this.originX=a[0],this.originY=a[1],this.cx=e[1]||0,this.cy=e[2]||0}return Object(Q.a)(h,[{key:"apply",value:function(r){var a=this.cx,e=this.cy,o=this.originX,n=this.originY,i=this.angle,s=a+o.getPixels("x"),l=e+n.getPixels("y");r.translate(s,l),r.rotate(i.getRadians()),r.translate(-s,-l)}},{key:"unapply",value:function(r){var a=this.cx,e=this.cy,o=this.originX,n=this.originY,i=this.angle,s=a+o.getPixels("x"),l=e+n.getPixels("y");r.translate(s,l),r.rotate(-1*i.getRadians()),r.translate(-s,-l)}},{key:"applyToPoint",value:function(r){var a=this.cx,e=this.cy,o=this.angle,n=o.getRadians();r.applyTransform([1,0,0,1,a||0,e||0]),r.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),r.applyTransform([1,0,0,1,-a||0,-e||0])}}]),h}(),_t=function(){function h(u,r,a){Object(X.a)(this,h),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var e=We.parseScale(r);(e.x===0||e.y===0)&&(e.x=de,e.y=de),this.scale=e,this.originX=a[0],this.originY=a[1]}return Object(Q.a)(h,[{key:"apply",value:function(r){var a=this.scale,e=a.x,o=a.y,n=this.originX,i=this.originY,s=n.getPixels("x"),l=i.getPixels("y");r.translate(s,l),r.scale(e,o||e),r.translate(-s,-l)}},{key:"unapply",value:function(r){var a=this.scale,e=a.x,o=a.y,n=this.originX,i=this.originY,s=n.getPixels("x"),l=i.getPixels("y");r.translate(s,l),r.scale(1/e,1/o||e),r.translate(-s,-l)}},{key:"applyToPoint",value:function(r){var a=this.scale,e=a.x,o=a.y;r.applyTransform([e||0,0,0,o||0,0,0])}}]),h}(),Ft=function(){function h(u,r,a){Object(X.a)(this,h),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Oe(r),this.originX=a[0],this.originY=a[1]}return Object(Q.a)(h,[{key:"apply",value:function(r){var a=this.originX,e=this.originY,o=this.matrix,n=a.getPixels("x"),i=e.getPixels("y");r.translate(n,i),r.transform(o[0],o[1],o[2],o[3],o[4],o[5]),r.translate(-n,-i)}},{key:"unapply",value:function(r){var a=this.originX,e=this.originY,o=this.matrix,n=o[0],i=o[2],s=o[4],l=o[1],f=o[3],p=o[5],E=0,U=0,$=1,ee=1/(n*(f*$-p*U)-i*(l*$-p*E)+s*(l*U-f*E)),oe=a.getPixels("x"),ae=e.getPixels("y");r.translate(oe,ae),r.transform(ee*(f*$-p*U),ee*(p*E-l*$),ee*(s*U-i*$),ee*(n*$-s*E),ee*(i*p-s*f),ee*(s*l-n*p)),r.translate(-oe,-ae)}},{key:"applyToPoint",value:function(r){r.applyTransform(this.matrix)}}]),h}(),Wt=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="skew",n.angle=null,n.angle=new he(a,"angle",e),n}return Object(Q.a)(r)}(Ft),en=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="skewX",n.matrix=[1,0,Math.tan(n.angle.getRadians()),1,0,0],n}return Object(Q.a)(r)}(Wt),tn=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="skewY",n.matrix=[1,Math.tan(n.angle.getRadians()),0,1,0,0],n}return Object(Q.a)(r)}(Wt);function Qn(h){return De(h).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Jn(h){var u=h.split("("),r=Object(ie.a)(u,2),a=r[0],e=r[1];return[a.trim(),e.trim().replace(")","")]}var At=function(){function h(u,r,a){var e=this;Object(X.a)(this,h),this.document=u,this.transforms=[];var o=Qn(r);o.forEach(function(n){if(n==="none")return;var i=Jn(n),s=Object(ie.a)(i,2),l=s[0],f=s[1],p=h.transformTypes[l];typeof p!="undefined"&&e.transforms.push(new p(e.document,f,a))})}return Object(Q.a)(h,[{key:"apply",value:function(r){for(var a=this.transforms,e=a.length,o=0;o=0;o--)a[o].unapply(r)}},{key:"applyToPoint",value:function(r){for(var a=this.transforms,e=a.length,o=0;o2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=u,this.node=r,this.captureTextNodes=e,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!r||r.nodeType!==1)return;if(Array.from(r.attributes).forEach(function(s){var l=qe(s.nodeName);a.attributes[l]=new he(u,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var o=this.getAttribute("style").getString().split(";").map(function(s){return s.trim()});o.forEach(function(s){if(!s)return;var l=s.split(":").map(function(U){return U.trim()}),f=Object(ie.a)(l,2),p=f[0],E=f[1];a.styles[p]=new he(u,p,E)})}var n=u.definitions,i=this.getAttribute("id");i.hasValue()&&(n[i.getString()]||(n[i.getString()]=this)),Array.from(r.childNodes).forEach(function(s){if(s.nodeType===1)a.addChild(s);else if(e&&(s.nodeType===3||s.nodeType===4)){var l=u.createTextNode(s);l.getText().length>0&&a.addChild(l)}})}return Object(Q.a)(h,[{key:"getAttribute",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=this.attributes[r];if(!e&&a){var o=new he(this.document,r,"");return this.attributes[r]=o,o}return e||he.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var r in this.attributes)if(r==="href"||r.endsWith(":href"))return this.attributes[r];return he.empty(this.document)}},{key:"getStyle",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.styles[r];if(o)return o;var n=this.getAttribute(r);if(n!=null&&n.hasValue())return this.styles[r]=n,n;if(!e){var i=this.parent;if(i){var s=i.getStyle(r);if(s!=null&&s.hasValue())return s}}if(a){var l=new he(this.document,r,"");return this.styles[r]=l,l}return o||he.empty(this.document)}},{key:"render",value:function(r){if(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")return;if(r.save(),this.getStyle("mask").hasValue()){var a=this.getStyle("mask").getDefinition();a&&(this.applyEffects(r),a.apply(r,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var e=this.getStyle("filter").getDefinition();e&&(this.applyEffects(r),e.apply(r,this))}else this.setContext(r),this.renderChildren(r),this.clearContext(r);r.restore()}},{key:"setContext",value:function(r){}},{key:"applyEffects",value:function(r){var a=At.fromElement(this.document,this);a&&a.apply(r);var e=this.getStyle("clip-path",!1,!0);if(e.hasValue()){var o=e.getDefinition();o&&o.apply(r)}}},{key:"clearContext",value:function(r){}},{key:"renderChildren",value:function(r){this.children.forEach(function(a){a.render(r)})}},{key:"addChild",value:function(r){var a=r instanceof h?r:this.document.createElement(r);a.parent=this,h.ignoreChildTypes.includes(a.type)||this.children.push(a)}},{key:"matchesSelector",value:function(r){var a,e=this.node;if(typeof e.matches=="function")return e.matches(r);var o=(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"class");return!o||o===""?!1:o.split(" ").some(function(n){return".".concat(n)===r})}},{key:"addStylesFromStyleDefinition",value:function(){var r=this.document,a=r.styles,e=r.stylesSpecificity;for(var o in a)if(!o.startsWith("@")&&this.matchesSelector(o)){var n=a[o],i=e[o];if(n)for(var s in n){var l=this.stylesSpecificity[s];typeof l=="undefined"&&(l="000"),i>=l&&(this.styles[s]=n[s],this.stylesSpecificity[s]=i)}}}},{key:"removeStyles",value:function(r,a){var e=a.reduce(function(o,n){var i=r.getStyle(n);if(!i.hasValue())return o;var s=i.getString();return i.setValue(""),[].concat(Object(W.a)(o),[[n,s]])},[]);return e}},{key:"restoreStyles",value:function(r,a){a.forEach(function(e){var o=Object(ie.a)(e,2),n=o[0],i=o[1];r.getStyle(n,!0).setValue(i)})}},{key:"isFirstChild",value:function(){var r;return((r=this.parent)===null||r===void 0?void 0:r.children.indexOf(this))===0}}]),h}();ke.ignoreChildTypes=["title"];var nn=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){return Object(X.a)(this,r),u.call(this,a,e,o)}return Object(Q.a)(r)}(ke);function Zn(h){var u=h.trim();return/^('|")/.test(u)?u:'"'.concat(u,'"')}function qn(h){return typeof c=="undefined"?h:h.trim().split(",").map(Zn).join(",")}function _n(h){if(!h)return"";var u=h.trim().toLowerCase();switch(u){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return u;default:return/^oblique\s+(-|)\d+deg$/.test(u)?u:""}}function er(h){if(!h)return"";var u=h.trim().toLowerCase();switch(u){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return u;default:return/^[\d.]+$/.test(u)?u:""}}var gt=function(){function h(u,r,a,e,o,n){Object(X.a)(this,h);var i=n?typeof n=="string"?h.parse(n):n:{};this.fontFamily=o||i.fontFamily,this.fontSize=e||i.fontSize,this.fontStyle=u||i.fontStyle,this.fontWeight=a||i.fontWeight,this.fontVariant=r||i.fontVariant}return Object(Q.a)(h,[{key:"toString",value:function(){return[_n(this.fontStyle),this.fontVariant,er(this.fontWeight),this.fontSize,qn(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,e="",o="",n="",i="",s="",l=De(r).trim().split(" "),f={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(p){switch(!0){case(!f.fontStyle&&h.styles.includes(p)):p!=="inherit"&&(e=p),f.fontStyle=!0;break;case(!f.fontVariant&&h.variants.includes(p)):p!=="inherit"&&(o=p),f.fontStyle=!0,f.fontVariant=!0;break;case(!f.fontWeight&&h.weights.includes(p)):p!=="inherit"&&(n=p),f.fontStyle=!0,f.fontVariant=!0,f.fontWeight=!0;break;case!f.fontSize:if(p!=="inherit"){var E=p.split("/"),U=Object(ie.a)(E,1);i=U[0]}f.fontStyle=!0,f.fontVariant=!0,f.fontWeight=!0,f.fontSize=!0;break;default:p!=="inherit"&&(s+=p)}}),new h(e,o,n,i,s,a)}}]),h}();gt.styles="normal|italic|oblique|inherit",gt.variants="normal|small-caps|inherit",gt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var ct=function(){function h(){Object(X.a)(this,h);var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=u,this.y1=r,this.x2=a,this.y2=e,this.addPoint(u,r),this.addPoint(a,e)}return Object(Q.a)(h,[{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}},{key:"addPoint",value:function(r,a){typeof r!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=r,this.x2=r),rthis.x2&&(this.x2=r)),typeof a!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=a,this.y2=a),athis.y2&&(this.y2=a))}},{key:"addX",value:function(r){this.addPoint(r,null)}},{key:"addY",value:function(r){this.addPoint(null,r)}},{key:"addBoundingBox",value:function(r){if(!r)return;var a=r.x1,e=r.y1,o=r.x2,n=r.y2;this.addPoint(a,e),this.addPoint(o,n)}},{key:"sumCubic",value:function(r,a,e,o,n){return Math.pow(1-r,3)*a+3*Math.pow(1-r,2)*r*e+3*(1-r)*Math.pow(r,2)*o+Math.pow(r,3)*n}},{key:"bezierCurveAdd",value:function(r,a,e,o,n){var i=6*a-12*e+6*o,s=-3*a+9*e-9*o+3*n,l=3*e-3*a;if(s===0){if(i===0)return;var f=-l/i;0=o.length-1}},{key:"next",value:function(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}},{key:"getPoint",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",n=new We(this.command[e],this.command[o]);return this.makeAbsolute(n)}},{key:"getAsControlPoint",value:function(e,o){var n=this.getPoint(e,o);return this.control=n,n}},{key:"getAsCurrentPoint",value:function(e,o){var n=this.getPoint(e,o);return this.current=n,n}},{key:"getReflectedControlPoint",value:function(){var e=this.previousCommand.type;if(e!==Ie.a.CURVE_TO&&e!==Ie.a.SMOOTH_CURVE_TO&&e!==Ie.a.QUAD_TO&&e!==Ie.a.SMOOTH_QUAD_TO)return this.current;var o=this.current,n=o.x,i=o.y,s=this.control,l=s.x,f=s.y,p=new We(2*n-l,2*i-f);return p}},{key:"makeAbsolute",value:function(e){if(this.command.relative){var o=this.current,n=o.x,i=o.y;e.x+=n,e.y+=i}return e}},{key:"addMarker",value:function(e,o,n){var i=this.points,s=this.angles;n&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=i[i.length-1].angleTo(n)),this.addMarkerAngle(e,o?o.angleTo(e):null)}},{key:"addMarkerAngle",value:function(e,o){this.points.push(e),this.angles.push(o)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var e=this.angles,o=e.length,n=0;n1&&arguments[1]!==void 0?arguments[1]:!1;if(!o){var n=this.getStyle("fill"),i=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),l=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var f=n.getFillStyleDefinition(this,i);f&&(e.fillStyle=f)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var p=n.getColor();p!=="inherit"&&(e.fillStyle=p==="none"?"rgba(0,0,0,0)":p)}if(i.hasValue()){var E=new he(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=E}if(s.isUrlDefinition()){var U=s.getFillStyleDefinition(this,l);U&&(e.strokeStyle=U)}else if(s.hasValue()){s.getString()==="currentColor"&&s.setValue(this.getStyle("color").getColor());var $=s.getString();$!=="inherit"&&(e.strokeStyle=$==="none"?"rgba(0,0,0,0)":$)}if(l.hasValue()){var ee=new he(this.document,"stroke",e.strokeStyle).addOpacity(l).getString();e.strokeStyle=ee}var oe=this.getStyle("stroke-width");if(oe.hasValue()){var ae=oe.getPixels();e.lineWidth=ae||de}var xe=this.getStyle("stroke-linecap"),fe=this.getStyle("stroke-linejoin"),ue=this.getStyle("stroke-miterlimit"),ge=this.getStyle("stroke-dasharray"),Le=this.getStyle("stroke-dashoffset");if(xe.hasValue()&&(e.lineCap=xe.getString()),fe.hasValue()&&(e.lineJoin=fe.getString()),ue.hasValue()&&(e.miterLimit=ue.getNumber()),ge.hasValue()&&ge.getString()!=="none"){var Ve=Oe(ge.getString());typeof e.setLineDash!="undefined"?e.setLineDash(Ve):typeof e.webkitLineDash!="undefined"?e.webkitLineDash=Ve:typeof e.mozDash!="undefined"&&!(Ve.length===1&&Ve[0]===0)&&(e.mozDash=Ve);var Ze=Le.getPixels();typeof e.lineDashOffset!="undefined"?e.lineDashOffset=Ze:typeof e.webkitLineDashOffset!="undefined"?e.webkitLineDashOffset=Ze:typeof e.mozDashOffset!="undefined"&&(e.mozDashOffset=Ze)}}if(this.modifiedEmSizeStack=!1,typeof e.font!="undefined"){var dt=this.getStyle("font"),ft=this.getStyle("font-style"),ot=this.getStyle("font-variant"),rt=this.getStyle("font-weight"),ut=this.getStyle("font-size"),Et=this.getStyle("font-family"),et=new gt(ft.getString(),ot.getString(),rt.getString(),ut.hasValue()?"".concat(ut.getPixels(!0),"px"):"",Et.getString(),gt.parse(dt.getString(),e.font));ft.setValue(et.fontStyle),ot.setValue(et.fontVariant),rt.setValue(et.fontWeight),ut.setValue(et.fontSize),Et.setValue(et.fontFamily),e.font=et.toString(),ut.isPixels()&&(this.document.emSize=ut.getPixels(),this.modifiedEmSizeStack=!0)}o||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(e){Object(k.a)(Object(w.a)(r.prototype),"clearContext",this).call(this,e),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}(ke),Qe=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="path",n.pathParser=null,n.pathParser=new be(n.getAttribute("d").getString()),n}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.pathParser,n=new ct;for(o.reset(),e&&e.beginPath();!o.isEnd();)switch(o.next().type){case be.MOVE_TO:this.pathM(e,n);break;case be.LINE_TO:this.pathL(e,n);break;case be.HORIZ_LINE_TO:this.pathH(e,n);break;case be.VERT_LINE_TO:this.pathV(e,n);break;case be.CURVE_TO:this.pathC(e,n);break;case be.SMOOTH_CURVE_TO:this.pathS(e,n);break;case be.QUAD_TO:this.pathQ(e,n);break;case be.SMOOTH_QUAD_TO:this.pathT(e,n);break;case be.ARC:this.pathA(e,n);break;case be.CLOSE_PATH:this.pathZ(e,n);break}return n}},{key:"getBoundingBox",value:function(e){return this.path()}},{key:"getMarkers",value:function(){var e=this.pathParser,o=e.getMarkerPoints(),n=e.getMarkerAngles(),i=o.map(function(s,l){return[s,n[l]]});return i}},{key:"renderChildren",value:function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var o=this.getStyle("fill-rule");e.fillStyle!==""&&(o.getString("inherit")!=="inherit"?e.fill(o.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var i=n.length-1,s=this.getStyle("marker-start"),l=this.getStyle("marker-mid"),f=this.getStyle("marker-end");if(s.isUrlDefinition()){var p=s.getDefinition(),E=Object(ie.a)(n[0],2),U=E[0],$=E[1];p.render(e,U,$)}if(l.isUrlDefinition())for(var ee=l.getDefinition(),oe=1;oef?l:f,ue=l>f?1:l/f,ge=l>f?f/l:1;e.translate(U.x,U.y),e.rotate(E),e.scale(ue,ge),e.arc(0,0,fe,$,$+ee,Boolean(1-p)),e.scale(1/ue,1/ge),e.rotate(-E),e.translate(-U.x,-U.y)}}},{key:"pathZ",value:function(e,o){r.pathZ(this.pathParser),e&&(o.x1!==o.x2&&o.y1!==o.y2&&e.closePath())}}],[{key:"pathM",value:function(e){var o=e.getAsCurrentPoint();return e.start=e.current,{point:o}}},{key:"pathL",value:function(e){var o=e.current,n=e.getAsCurrentPoint();return{current:o,point:n}}},{key:"pathH",value:function(e){var o=e.current,n=e.command,i=new We((n.relative?o.x:0)+n.x,o.y);return e.current=i,{current:o,point:i}}},{key:"pathV",value:function(e){var o=e.current,n=e.command,i=new We(o.x,(n.relative?o.y:0)+n.y);return e.current=i,{current:o,point:i}}},{key:"pathC",value:function(e){var o=e.current,n=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:o,point:n,controlPoint:i,currentPoint:s}}},{key:"pathS",value:function(e){var o=e.current,n=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:o,point:n,controlPoint:i,currentPoint:s}}},{key:"pathQ",value:function(e){var o=e.current,n=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:o,controlPoint:n,currentPoint:i}}},{key:"pathT",value:function(e){var o=e.current,n=e.getReflectedControlPoint();e.control=n;var i=e.getAsCurrentPoint();return{current:o,controlPoint:n,currentPoint:i}}},{key:"pathA",value:function(e){var o=e.current,n=e.command,i=n.rX,s=n.rY,l=n.xRot,f=n.lArcFlag,p=n.sweepFlag,E=l*(Math.PI/180),U=e.getAsCurrentPoint(),$=new We(Math.cos(E)*(o.x-U.x)/2+Math.sin(E)*(o.y-U.y)/2,-Math.sin(E)*(o.x-U.x)/2+Math.cos(E)*(o.y-U.y)/2),ee=Math.pow($.x,2)/Math.pow(i,2)+Math.pow($.y,2)/Math.pow(s,2);ee>1&&(i*=Math.sqrt(ee),s*=Math.sqrt(ee));var oe=(f===p?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(s,2)-Math.pow(i,2)*Math.pow($.y,2)-Math.pow(s,2)*Math.pow($.x,2))/(Math.pow(i,2)*Math.pow($.y,2)+Math.pow(s,2)*Math.pow($.x,2)));isNaN(oe)&&(oe=0);var ae=new We(oe*i*$.y/s,oe*-s*$.x/i),xe=new We((o.x+U.x)/2+Math.cos(E)*ae.x-Math.sin(E)*ae.y,(o.y+U.y)/2+Math.sin(E)*ae.x+Math.cos(E)*ae.y),fe=Ee([1,0],[($.x-ae.x)/i,($.y-ae.y)/s]),ue=[($.x-ae.x)/i,($.y-ae.y)/s],ge=[(-$.x-ae.x)/i,(-$.y-ae.y)/s],Le=Ee(ue,ge);return ye(ue,ge)<=-1&&(Le=Math.PI),ye(ue,ge)>=1&&(Le=0),{currentPoint:U,rX:i,rY:s,sweepFlag:p,xAxisRotation:E,centp:xe,a1:fe,ad:Le}}},{key:"pathZ",value:function(e){e.current=e.start}}]),r}(bt),Gt=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="glyph",n.horizAdvX=n.getAttribute("horiz-adv-x").getNumber(),n.unicode=n.getAttribute("unicode").getString(),n.arabicForm=n.getAttribute("arabic-form").getString(),n}return Object(Q.a)(r)}(Qe),Tt=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,new.target===r?!0:o),n.type="text",n.x=0,n.y=0,n.measureCache=-1,n}return Object(Q.a)(r,[{key:"setContext",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(k.a)(Object(w.a)(r.prototype),"setContext",this).call(this,e,o);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}},{key:"initializeCoordinates",value:function(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}},{key:"getBoundingBox",value:function(e){var o=this;if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var n=null;return this.children.forEach(function(i,s){var l=o.getChildBoundingBox(e,o,o,s);n?n.addBoundingBox(l):n=l}),n}},{key:"getFontSize",value:function(){var e=this.document,o=this.parent,n=gt.parse(e.ctx.font).fontSize,i=o.getStyle("font-size").getNumber(n);return i}},{key:"getTElementBoundingBox",value:function(e){var o=this.getFontSize();return new ct(this.x,this.y-o,this.x+this.measureText(e),this.y)}},{key:"getGlyph",value:function(e,o,n){var i=o[n],s=null;if(e.isArabic){var l=o.length,f=o[n-1],p=o[n+1],E="isolated";if((n===0||f===" ")&&n0&&f!==" "&&n0&&f!==" "&&(n===l-1||p===" ")&&(E="initial"),typeof e.glyphs[i]!="undefined"){var U=e.glyphs[i];s=U instanceof Gt?U:U[E]}}else s=e.glyphs[i];return s||(s=e.missingGlyph),s}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(e){var o=e||this.node,n=Array.from(o.parentNode.childNodes),i=n.indexOf(o),s=n.length-1,l=De(o.textContent||"");return i===0&&(l=je(l)),i===s&&(l=Se(l)),l}},{key:"renderChildren",value:function(e){var o=this;if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach(function(i,s){o.renderChild(e,o,o,s)});var n=this.document.screen.mouse;n.isWorking()&&n.checkBoundingBox(this,this.getBoundingBox(e))}},{key:"renderTElementChildren",value:function(e){var o=this.document,n=this.parent,i=this.getText(),s=n.getStyle("font-family").getDefinition();if(s){for(var l=s.fontFace.unitsPerEm,f=gt.parse(o.ctx.font),p=n.getStyle("font-size").getNumber(f.fontSize),E=n.getStyle("font-style").getString(f.fontStyle),U=p/l,$=s.isRTL?i.split("").reverse().join(""):i,ee=Oe(n.getAttribute("dx").getString()),oe=$.length,ae=0;ae=this.leafTexts.length)return;var e=this.leafTexts[this.textChunkStart],o=e.getStyle("text-anchor").getString("start"),n=!1,i=0;o==="start"&&!n||o==="end"&&n?i=e.x-this.minX:o==="end"&&!n||o==="start"&&n?i=e.x-this.maxX:i=e.x-(this.minX+this.maxX)/2;for(var s=this.textChunkStart;s0?s.children.forEach(function(l,f){o.adjustChildCoordinatesRecursiveCore(e,o,s,f)}):this.adjustChildCoordinates(e,o,n,i)}},{key:"adjustChildCoordinates",value:function(e,o,n,i){var s=n.children[i];if(typeof s.measureText!="function")return s;e.save(),s.setContext(e,!0);var l=s.getAttribute("x"),f=s.getAttribute("y"),p=s.getAttribute("dx"),E=s.getAttribute("dy"),U=s.getStyle("font-family").getDefinition(),$=Boolean(U)&&U.isRTL;i===0&&(l.hasValue()||l.setValue(s.getInheritedAttribute("x")),f.hasValue()||f.setValue(s.getInheritedAttribute("y")),p.hasValue()||p.setValue(s.getInheritedAttribute("dx")),E.hasValue()||E.setValue(s.getInheritedAttribute("dy")));var ee=s.measureText(e);return $&&(o.x-=ee),l.hasValue()?(o.applyAnchoring(),s.x=l.getPixels("x"),p.hasValue()&&(s.x+=p.getPixels("x"))):(p.hasValue()&&(o.x+=p.getPixels("x")),s.x=o.x),o.x=s.x,$||(o.x+=ee),f.hasValue()?(s.y=f.getPixels("y"),E.hasValue()&&(s.y+=E.getPixels("y"))):(E.hasValue()&&(o.y+=E.getPixels("y")),s.y=o.y),o.y=s.y,o.leafTexts.push(s),o.minX=Math.min(o.minX,s.x,s.x+ee),o.maxX=Math.max(o.maxX,s.x,s.x+ee),s.clearContext(e),e.restore(),s}},{key:"getChildBoundingBox",value:function(e,o,n,i){var s=n.children[i];if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(e);return l?(s.children.forEach(function(f,p){var E=o.getChildBoundingBox(e,o,s,p);l.addBoundingBox(E)}),l):null}},{key:"renderChild",value:function(e,o,n,i){var s=n.children[i];s.render(e),s.children.forEach(function(l,f){o.renderChild(e,o,s,f)})}},{key:"measureText",value:function(e){var o=this.measureCache;if(~o)return o;var n=this.getText(),i=this.measureTargetText(e,n);return this.measureCache=i,i}},{key:"measureTargetText",value:function(e,o){if(!o.length)return 0;var n=this.parent,i=n.getStyle("font-family").getDefinition();if(i){for(var s=this.getFontSize(),l=i.isRTL?o.split("").reverse().join(""):o,f=Oe(n.getAttribute("dx").getString()),p=l.length,E=0,U=0;U0?"":n.getTextFromNode(),n}return Object(Q.a)(r,[{key:"getText",value:function(){return this.text}}]),r}(Tt),tr=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="textNode",a}return Object(Q.a)(r)}(kt),jt=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(Q.a)(r,[{key:"setContext",value:function(e){var o,n=this.document,i=n.screen,s=n.window,l=e.canvas;if(i.setDefaults(e),l.style&&typeof e.font!="undefined"&&s&&typeof s.getComputedStyle!="undefined"){e.font=s.getComputedStyle(l).getPropertyValue("font");var f=new he(n,"fontSize",gt.parse(e.font).fontSize);f.hasValue()&&(n.rootEmSize=f.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var p=i.viewPort,E=p.width,U=p.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 $=this.getAttribute("refX"),ee=this.getAttribute("refY"),oe=this.getAttribute("viewBox"),ae=oe.hasValue()?Oe(oe.getString()):null,xe=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",fe=0,ue=0,ge=0,Le=0;ae&&(fe=ae[0],ue=ae[1]),this.root||(E=this.getStyle("width").getPixels("x"),U=this.getStyle("height").getPixels("y"),this.type==="marker"&&(ge=fe,Le=ue,fe=0,ue=0)),i.viewPort.setCurrent(E,U),this.node&&(!this.parent||((o=this.node.parentNode)===null||o===void 0?void 0:o.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Object(k.a)(Object(w.a)(r.prototype),"setContext",this).call(this,e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),ae&&(E=ae[2],U=ae[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:E,height:i.viewPort.height,desiredHeight:U,minX:fe,minY:ue,refX:$.getValue(),refY:ee.getValue(),clip:xe,clipX:ge,clipY:Le}),ae&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(E,U))}},{key:"clearContext",value:function(e){Object(k.a)(Object(w.a)(r.prototype),"clearContext",this).call(this,e),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),s=this.getAttribute("height",!0),l=this.getAttribute("viewBox"),f=this.getAttribute("style"),p=i.getNumber(0),E=s.getNumber(0);if(n)if(typeof n=="string")this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var U=this.getAttribute("preserveAspectRatio");U.hasValue()&&U.setValue(U.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),s.setValue(o),l.hasValue()||l.setValue("0 0 ".concat(p||e," ").concat(E||o)),f.hasValue()){var $=this.getStyle("width"),ee=this.getStyle("height");$.hasValue()&&$.setValue("".concat(e,"px")),ee.hasValue()&&ee.setValue("".concat(o,"px"))}}}]),r}(bt),zt=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="rect",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),l=this.getAttribute("rx"),f=this.getAttribute("ry"),p=l.getPixels("x"),E=f.getPixels("y");if(l.hasValue()&&!f.hasValue()&&(E=p),f.hasValue()&&!l.hasValue()&&(p=E),p=Math.min(p,i/2),E=Math.min(E,s/2),e){var U=4*((Math.sqrt(2)-1)/3);e.beginPath(),s>0&&i>0&&(e.moveTo(o+p,n),e.lineTo(o+i-p,n),e.bezierCurveTo(o+i-p+U*p,n,o+i,n+E-U*E,o+i,n+E),e.lineTo(o+i,n+s-E),e.bezierCurveTo(o+i,n+s-E+U*E,o+i-p+U*p,n+s,o+i-p,n+s),e.lineTo(o+p,n+s),e.bezierCurveTo(o+p-U*p,n+s,o,n+s-E+U*E,o,n+s-E),e.lineTo(o,n+E),e.bezierCurveTo(o,n+E-U*E,o+p-U*p,n,o+p,n),e.closePath())}return new ct(o,n,o+i,n+s)}},{key:"getMarkers",value:function(){return null}}]),r}(Qe),rn=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="circle",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(o,n,i,0,Math.PI*2,!1),e.closePath()),new ct(o-i,n-i,o+i,n+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Qe),an=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="ellipse",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=4*((Math.sqrt(2)-1)/3),n=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),l=this.getAttribute("cy").getPixels("y");return e&&n>0&&i>0&&(e.beginPath(),e.moveTo(s+n,l),e.bezierCurveTo(s+n,l+o*i,s+o*n,l+i,s,l+i),e.bezierCurveTo(s-o*n,l+i,s-n,l+o*i,s-n,l),e.bezierCurveTo(s-n,l-o*i,s-o*n,l-i,s,l-i),e.bezierCurveTo(s+o*n,l-i,s+n,l-o*i,s+n,l),e.closePath()),new ct(s-n,l-i,s+n,l+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Qe),on=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="line",a}return Object(Q.a)(r,[{key:"getPoints",value:function(){return[new We(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new We(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(e){var o=this.getPoints(),n=Object(ie.a)(o,2),i=n[0],s=i.x,l=i.y,f=n[1],p=f.x,E=f.y;return e&&(e.beginPath(),e.moveTo(s,l),e.lineTo(p,E)),new ct(s,l,p,E)}},{key:"getMarkers",value:function(){var e=this.getPoints(),o=Object(ie.a)(e,2),n=o[0],i=o[1],s=n.angleTo(i);return[[n,s],[i,s]]}}]),r}(Qe),Ht=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="polyline",n.points=[],n.points=We.parsePath(n.getAttribute("points").getString()),n}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.points,n=Object(ie.a)(o,1),i=n[0],s=i.x,l=i.y,f=new ct(s,l);return e&&(e.beginPath(),e.moveTo(s,l)),o.forEach(function(p){var E=p.x,U=p.y;f.addPoint(E,U),e&&e.lineTo(E,U)}),f}},{key:"getMarkers",value:function(){var e=this.points,o=e.length-1,n=[];return e.forEach(function(i,s){if(s===o)return;n.push([i,i.angleTo(e[s+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}]),r}(Qe),sn=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="polygon",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=Object(k.a)(Object(w.a)(r.prototype),"path",this).call(this,e),n=Object(ie.a)(this.points,1),i=n[0],s=i.x,l=i.y;return e&&(e.lineTo(s,l),e.closePath()),o}}]),r}(Ht),ln=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="pattern",a}return Object(Q.a)(r,[{key:"createPattern",value:function(e,o,n){var i=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),l=new jt(this.document,null);l.attributes.viewBox=new he(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new he(this.document,"width","".concat(i,"px")),l.attributes.height=new he(this.document,"height","".concat(s,"px")),l.attributes.transform=new he(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var f=this.document.createCanvas(i,s),p=f.getContext("2d"),E=this.getAttribute("x"),U=this.getAttribute("y");E.hasValue()&&U.hasValue()&&p.translate(E.getPixels("x",!0),U.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var $=-1;$<=1;$++)for(var ee=-1;ee<=1;ee++)p.save(),l.attributes.x=new he(this.document,"x",$*f.width),l.attributes.y=new he(this.document,"y",ee*f.height),l.render(p),p.restore();var oe=e.createPattern(f,"repeat");return oe}}]),r}(ke),un=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="marker",a}return Object(Q.a)(r,[{key:"render",value:function(e,o,n){if(!o)return;var i=o.x,s=o.y,l=this.getAttribute("orient").getString("auto"),f=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,s),l==="auto"&&e.rotate(n),f==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var p=new jt(this.document,null);p.type=this.type,p.attributes.viewBox=new he(this.document,"viewBox",this.getAttribute("viewBox").getValue()),p.attributes.refX=new he(this.document,"refX",this.getAttribute("refX").getValue()),p.attributes.refY=new he(this.document,"refY",this.getAttribute("refY").getValue()),p.attributes.width=new he(this.document,"width",this.getAttribute("markerWidth").getValue()),p.attributes.height=new he(this.document,"height",this.getAttribute("markerHeight").getValue()),p.attributes.overflow=new he(this.document,"overflow",this.getAttribute("overflow").getValue()),p.attributes.fill=new he(this.document,"fill",this.getAttribute("fill").getColor("black")),p.attributes.stroke=new he(this.document,"stroke",this.getAttribute("stroke").getValue("none")),p.children=this.children,p.render(e),e.restore(),f==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),l==="auto"&&e.rotate(-n),e.translate(-i,-s)}}]),r}(ke),cn=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="defs",a}return Object(Q.a)(r,[{key:"render",value:function(){}}]),r}(ke),Nt=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="g",a}return Object(Q.a)(r,[{key:"getBoundingBox",value:function(e){var o=new ct;return this.children.forEach(function(n){o.addBoundingBox(n.getBoundingBox(e))}),o}}]),r}(bt),Yt=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.attributesToInherit=["gradientUnits"],n.stops=[];var i=Object(j.a)(n),s=i.stops,l=i.children;return l.forEach(function(f){f.type==="stop"&&s.push(f)}),n}return Object(Q.a)(r,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(e,o,n){var i=this,s=this;this.getHrefAttribute().hasValue()&&(s=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(s));var l=s,f=l.stops,p=this.getGradient(e,o);if(!p)return this.addParentOpacity(n,f[f.length-1].color);if(f.forEach(function(Ve){p.addColorStop(Ve.offset,i.addParentOpacity(n,Ve.color))}),this.getAttribute("gradientTransform").hasValue()){var E=this.document,U=E.screen,$=U.MAX_VIRTUAL_PIXELS,ee=U.viewPort,oe=Object(ie.a)(ee.viewPorts,1),ae=oe[0],xe=new zt(E,null);xe.attributes.x=new he(E,"x",-$/3),xe.attributes.y=new he(E,"y",-$/3),xe.attributes.width=new he(E,"width",$),xe.attributes.height=new he(E,"height",$);var fe=new Nt(E,null);fe.attributes.transform=new he(E,"transform",this.getAttribute("gradientTransform").getValue()),fe.children=[xe];var ue=new jt(E,null);ue.attributes.x=new he(E,"x",0),ue.attributes.y=new he(E,"y",0),ue.attributes.width=new he(E,"width",ae.width),ue.attributes.height=new he(E,"height",ae.height),ue.children=[fe];var ge=E.createCanvas(ae.width,ae.height),Le=ge.getContext("2d");return Le.fillStyle=p,ue.render(Le),Le.createPattern(ge,"no-repeat")}return p}},{key:"inheritStopContainer",value:function(e){var o=this;this.attributesToInherit.forEach(function(n){!o.getAttribute(n).hasValue()&&e.getAttribute(n).hasValue()&&o.getAttribute(n,!0).setValue(e.getAttribute(n).getValue())})}},{key:"addParentOpacity",value:function(e,o){if(e.hasValue()){var n=new he(this.document,"color",o);return n.addOpacity(e).getColor()}return o}}]),r}(ke),dn=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="linearGradient",n.attributesToInherit.push("x1","y1","x2","y2"),n}return Object(Q.a)(r,[{key:"getGradient",value:function(e,o){var n=this.getGradientUnits()==="objectBoundingBox",i=n?o.getBoundingBox(e):null;if(n&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var s=n?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),l=n?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),f=n?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),p=n?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===f&&l===p?null:e.createLinearGradient(s,l,f,p)}}]),r}(Yt),fn=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="radialGradient",n.attributesToInherit.push("cx","cy","r","fx","fy","fr"),n}return Object(Q.a)(r,[{key:"getGradient",value:function(e,o){var n=this.getGradientUnits()==="objectBoundingBox",i=o.getBoundingBox(e);if(n&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var s=n?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),l=n?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),f=s,p=l;this.getAttribute("fx").hasValue()&&(f=n?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(p=n?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var E=n?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),U=this.getAttribute("fr").getPixels();return e.createRadialGradient(f,p,U,s,l,E)}}]),r}(Yt),hn=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="stop";var i=Math.max(0,Math.min(1,n.getAttribute("offset").getNumber())),s=n.getStyle("stop-opacity"),l=n.getStyle("stop-color",!0);return l.getString()===""&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),n.offset=i,n.color=l.getColor(),n}return Object(Q.a)(r)}(ke),Dt=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="animate",n.duration=0,n.initialValue=null,n.initialUnits="",n.removed=!1,n.frozen=!1,a.screen.animations.push(Object(j.a)(n)),n.begin=n.getAttribute("begin").getMilliseconds(),n.maxDuration=n.begin+n.getAttribute("dur").getMilliseconds(),n.from=n.getAttribute("from"),n.to=n.getAttribute("to"),n.values=new he(a,"values",null);var i=n.getAttribute("values");return i.hasValue()&&n.values.setValue(i.getString().split(";")),n}return Object(Q.a)(r,[{key:"getProperty",value:function(){var e=this.getAttribute("attributeType").getString(),o=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(o,!0):this.parent.getAttribute(o,!0)}},{key:"calcValue",value:function(){var e=this.initialUnits,o=this.getProgress(),n=o.progress,i=o.from,s=o.to,l=i.getNumber()+(s.getNumber()-i.getNumber())*n;return e==="%"&&(l*=100),"".concat(l).concat(e)}},{key:"update",value:function(e){var o=this.parent,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,o.animationFrozen=!0,o.animationFrozenValue=n.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,n.setValue(o.animationFrozen?o.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var s=!1;if(this.begin0&&Array.from(i).every(function(f){return f.nodeType===3});return n.hasText=l,n.text=l?n.getTextFromNode(s):"",n}return Object(Q.a)(r,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(e){if(this.hasText){Object(k.a)(Object(w.a)(r.prototype),"renderChildren",this).call(this,e);var o=this.document,n=this.x,i=this.y,s=o.screen.mouse,l=new he(o,"fontSize",gt.parse(o.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new ct(n,i-l.getPixels("y"),n+this.measureText(e),i))}else if(this.children.length>0){var f=new Nt(this.document,null);f.children=this.children,f.parent=this,f.render(e)}}},{key:"onClick",value:function(){var e=this.document.window;e&&e.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}]),r}(Tt);function En(h,u){var r=Object.keys(h);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(h);u&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(h,e).enumerable})),r.push.apply(r,a)}return r}function wt(h){for(var u=1;uU?E:U,fe=E>U?1:E/U,ue=E>U?U/E:1;e&&(e.translate(f,p),e.rotate(oe),e.scale(fe,ue),e.arc(0,0,xe,$,$+ee,Boolean(1-ae)),e.scale(1/fe,1/ue),e.rotate(-oe),e.translate(-f,-p));break}case be.CLOSE_PATH:e&&e.closePath();break}})}},{key:"renderChildren",value:function(e){this.setTextData(e),e.save();var o=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),i=this.glyphInfo,s=e.fillStyle;o==="underline"&&e.beginPath(),i.forEach(function(l,f){var p=l.p0,E=l.p1,U=l.rotation,$=l.text;e.save(),e.translate(p.x,p.y),e.rotate(U),e.fillStyle&&e.fillText($,0,0),e.strokeStyle&&e.strokeText($,0,0),e.restore(),o==="underline"&&(f===0&&e.moveTo(p.x,p.y+n/8),e.lineTo(E.x,E.y+n/5))}),o==="underline"&&(e.lineWidth=n/20,e.strokeStyle=s,e.stroke(),e.closePath()),e.restore()}},{key:"getLetterSpacingAt",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}},{key:"findSegmentToFitChar",value:function(e,o,n,i,s,l,f,p,E){var U=l,$=this.measureText(e,p);p===" "&&o==="justify"&&n-1&&(U+=this.getLetterSpacingAt(E));var ee=this.textHeight/20,oe=this.getEquidistantPointOnPath(U,ee,0),ae=this.getEquidistantPointOnPath(U+$,ee,0),xe={p0:oe,p1:ae},fe=oe&&ae?Math.atan2(ae.y-oe.y,ae.x-oe.x):0;if(f){var ue=Math.cos(Math.PI/2+fe)*f,ge=Math.cos(-fe)*f;xe.p0=wt(wt({},oe),{},{x:oe.x+ue,y:oe.y+ge}),xe.p1=wt(wt({},ae),{},{x:ae.x+ue,y:ae.y+ge})}return U+=$,{offset:U,segment:xe,rotation:fe}}},{key:"measureText",value:function(e,o){var n=this.measuresCache,i=o||this.getText();if(n.has(i))return n.get(i);var s=this.measureTargetText(e,i);return n.set(i,s),s}},{key:"setTextData",value:function(e){var o=this;if(this.glyphInfo)return;var n=this.getText(),i=n.split(""),s=n.split(" ").length-1,l=this.parent.getAttribute("dx").split().map(function(Ze){return Ze.getPixels("x")}),f=this.parent.getAttribute("dy").getPixels("y"),p=this.parent.getStyle("text-anchor").getString("start"),E=this.getStyle("letter-spacing"),U=this.parent.getStyle("letter-spacing"),$=0;!E.hasValue()||E.getValue()==="inherit"?$=U.getPixels():E.hasValue()&&(E.getValue()!=="initial"&&E.getValue()!=="unset"&&($=E.getPixels()));var ee=[],oe=n.length;this.letterSpacingCache=ee;for(var ae=0;ae0&&(E-=2*Math.PI),s===1&&E<0&&(E+=2*Math.PI),[f.x,f.y,n,i,p,E,l,s]}},{key:"calcLength",value:function(e,o,n,i){var s=0,l=null,f=null,p=0;switch(n){case be.LINE_TO:return this.getLineLength(e,o,i[0],i[1]);case be.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,e,o,i[0],i[1],i[2],i[3],i[4],i[5]),p=.01;p<=1;p+=.01)f=this.getPointOnCubicBezier(p,e,o,i[0],i[1],i[2],i[3],i[4],i[5]),s+=this.getLineLength(l.x,l.y,f.x,f.y),l=f;return s;case be.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,e,o,i[0],i[1],i[2],i[3]),p=.01;p<=1;p+=.01)f=this.getPointOnQuadraticBezier(p,e,o,i[0],i[1],i[2],i[3]),s+=this.getLineLength(l.x,l.y,f.x,f.y),l=f;return s;case be.ARC:{s=0;var E=i[4],U=i[5],$=i[4]+U,ee=Math.PI/180;if(Math.abs(E-$)$;p-=ee)f=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),s+=this.getLineLength(l.x,l.y,f.x,f.y),l=f;else for(p=E+ee;p<$;p+=ee)f=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),s+=this.getLineLength(l.x,l.y,f.x,f.y),l=f;return f=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],$,0),s+=this.getLineLength(l.x,l.y,f.x,f.y),s}}return 0}},{key:"getPointOnLine",value:function(e,o,n,i,s){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:o,f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,p=(s-n)/(i-o+de),E=Math.sqrt(e*e/(1+p*p));io)return null;var s=this.dataArray,l=Object(O.a)(s),f;try{for(l.s();!(f=l.n()).done;){var p=f.value;if(p&&(p.pathLength<5e-5||n+p.pathLength+5e-5=0&&U>oe)break;i=this.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],U,p.points[6]);break}case be.CURVE_TO:U=E/p.pathLength,U>1&&(U=1),i=this.getPointOnCubicBezier(U,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);break;case be.QUAD_TO:U=E/p.pathLength,U>1&&(U=1),i=this.getPointOnQuadraticBezier(U,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3]);break}if(i)return i;break}}catch(ae){l.e(ae)}finally{l.f()}return null}},{key:"getLineLength",value:function(e,o,n,i){return Math.sqrt((n-e)*(n-e)+(i-o)*(i-o))}},{key:"getPathLength",value:function(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce(function(e,o){return o.pathLength>0?e+o.pathLength:e},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(e,o,n,i,s,l,f,p,E){var U=p*Fe(e)+l*Je(e)+i*$e(e)+o*Xe(e),$=E*Fe(e)+f*Je(e)+s*$e(e)+n*Xe(e);return{x:U,y:$}}},{key:"getPointOnQuadraticBezier",value:function(e,o,n,i,s,l,f){var p=l*vt(e)+i*lt(e)+o*pt(e),E=f*vt(e)+s*lt(e)+n*pt(e);return{x:p,y:E}}},{key:"getPointOnEllipticalArc",value:function(e,o,n,i,s,l){var f=Math.cos(l),p=Math.sin(l),E={x:n*Math.cos(s),y:i*Math.sin(s)};return{x:e+(E.x*f-E.y*p),y:o+(E.x*p+E.y*f)}}},{key:"buildEquidistantCache",value:function(e,o){var n=this.getPathLength(),i=o||.25,s=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==i){this.equidistantCache={step:s,precision:i,points:[]};for(var l=0,f=0;f<=n;f+=i){var p=this.getPointOnPath(f),E=this.getPointOnPath(f+i);if(!p||!E)continue;l+=this.getLineLength(p.x,p.y,E.x,E.y),l>=s&&(this.equidistantCache.points.push({x:p.x,y:p.y,distance:f}),l-=s)}}}},{key:"getEquidistantPointOnPath",value:function(e,o,n){if(this.buildEquidistantCache(o,n),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}]),r}(Tt),nr=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Cn=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="image",n.loaded=!1;var i=n.getHrefAttribute().getString();if(!i)return Object(H.a)(n);var s=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);return a.images.push(Object(j.a)(n)),s?void n.loadSvg(i):void n.loadImage(i),n.isSvg=s,n}return Object(Q.a)(r,[{key:"loadImage",value:function(e){var o=this;return ve()(se.a.mark(function n(){var i;return se.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,o.document.createImage(e);case 3:i=l.sent,o.image=i,l.next=10;break;case 7:l.prev=7,l.t0=l.catch(0),console.error('Error while loading image "'.concat(e,'":'),l.t0);case 10:o.loaded=!0;case 11:case"end":return l.stop()}},n,null,[[0,7]])}))()}},{key:"loadSvg",value:function(e){var o=this;return ve()(se.a.mark(function n(){var i,s,l,f;return se.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=nr.exec(e),!i){E.next=6;break}s=i[5],i[4]==="base64"?o.image=atob(s):o.image=decodeURIComponent(s),E.next=19;break;case 6:return E.prev=6,E.next=9,o.document.fetch(e);case 9:return l=E.sent,E.next=12,l.text();case 12:f=E.sent,o.image=f,E.next=19;break;case 16:E.prev=16,E.t0=E.catch(6),console.error('Error while loading image "'.concat(e,'":'),E.t0);case 19:o.loaded=!0;case 20:case"end":return E.stop()}},n,null,[[6,16]])}))()}},{key:"renderChildren",value:function(e){var o=this.document,n=this.image,i=this.loaded,s=this.getAttribute("x").getPixels("x"),l=this.getAttribute("y").getPixels("y"),f=this.getStyle("width").getPixels("x"),p=this.getStyle("height").getPixels("y");if(!i||!n||!f||!p)return;if(e.save(),e.translate(s,l),this.isSvg){var E=o.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:f,scaleHeight:p});E.document.documentElement.parent=this,void E.render()}else{var U=this.image;o.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:f,desiredWidth:U.width,height:p,desiredHeight:U.height}),this.loaded&&((typeof U.complete=="undefined"||U.complete)&&e.drawImage(U,0,0))}e.restore()}},{key:"getBoundingBox",value:function(){var e=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new ct(e,o,e+n,o+i)}}]),r}(bt),Sn=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="symbol",a}return Object(Q.a)(r,[{key:"render",value:function(e){}}]),r}(bt),Mn=function(){function h(u){Object(X.a)(this,h),this.document=u,this.loaded=!1,u.fonts.push(this)}return Object(Q.a)(h,[{key:"load",value:function(r,a){var e=this;return ve()(se.a.mark(function o(){var n,i,s;return se.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,n=e.document,f.next=4,n.canvg.parser.load(a);case 4:i=f.sent,s=i.getElementsByTagName("font"),Array.from(s).forEach(function(p){var E=n.createElement(p);n.definitions[r]=E}),f.next=12;break;case 9:f.prev=9,f.t0=f.catch(0),console.error('Error while loading font "'.concat(a,'":'),f.t0);case 12:e.loaded=!0;case 13:case"end":return f.stop()}},o,null,[[0,9]])}))()}}]),h}(),Kt=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="style";var i=De(Array.from(e.childNodes).map(function(l){return l.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=i.split("}");return s.forEach(function(l){var f=l.trim();if(!f)return;var p=f.split("{"),E=p[0].split(","),U=p[1].split(";");E.forEach(function($){var ee=$.trim();if(!ee)return;var oe=a.styles[ee]||{};if(U.forEach(function(fe){var ue=fe.indexOf(":"),ge=fe.substr(0,ue).trim(),Le=fe.substr(ue+1,fe.length-ue).trim();ge&&Le&&(oe[ge]=new he(a,ge,Le))}),a.styles[ee]=oe,a.stylesSpecificity[ee]=ne(ee),ee==="@font-face"){var ae=oe["font-family"].getString().replace(/"|'/g,""),xe=oe.src.getString().split(",");xe.forEach(function(fe){if(fe.indexOf('format("svg")')>0){var ue=Ge(fe);ue&&void new Mn(a).load(ae,ue)}})}})}),n}return Object(Q.a)(r)}(ke);Kt.parseExternalUrl=Ge;var Tn=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="use",a}return Object(Q.a)(r,[{key:"setContext",value:function(e){Object(k.a)(Object(w.a)(r.prototype),"setContext",this).call(this,e);var o=this.getAttribute("x"),n=this.getAttribute("y");o.hasValue()&&e.translate(o.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}},{key:"path",value:function(e){var o=this.element;o&&o.path(e)}},{key:"renderChildren",value:function(e){var o=this.document,n=this.element;if(n){var i=n;if(n.type==="symbol"&&(i=new jt(o,null),i.attributes.viewBox=new he(o,"viewBox",n.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new he(o,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new he(o,"overflow",n.getAttribute("overflow").getString()),i.children=n.children,n.styles.opacity=new he(o,"opacity",this.calculateOpacity())),i.type==="svg"){var s=this.getStyle("width",!1,!0),l=this.getStyle("height",!1,!0);s.hasValue()&&(i.attributes.width=new he(o,"width",s.getString())),l.hasValue()&&(i.attributes.height=new he(o,"height",l.getString()))}var f=i.parent;i.parent=this,i.render(e),i.parent=f}}},{key:"getBoundingBox",value:function(e){var o=this.element;return o?o.getBoundingBox(e):null}},{key:"elementTransform",value:function(){var e=this.document,o=this.element;return At.fromElement(e,o)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),r}(bt);function Lt(h,u,r,a,e,o){return h[r*a*4+u*4+o]}function Ut(h,u,r,a,e,o,n){h[r*a*4+u*4+o]=n}function Ye(h,u,r){var a=h[u];return a*r}function xt(h,u,r,a){return u+Math.cos(h)*r+Math.sin(h)*a}var $t=function(h){Object(J.a)(r,h);var u=Object(Y.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="feColorMatrix";var i=Oe(n.getAttribute("values").getString());switch(n.getAttribute("type").getString("matrix")){case"saturate":{var s=i[0];i=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var l=i[0]*Math.PI/180;i=[xt(l,.213,.787,-.213),xt(l,.715,-.715,-.715),xt(l,.072,-.072,.928),0,0,xt(l,.213,-.213,.143),xt(l,.715,.285,.14),xt(l,.072,-.072,-.283),0,0,xt(l,.213,-.213,-.787),xt(l,.715,-.715,.715),xt(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}return n.matrix=i,n.includeOpacity=n.getAttribute("includeOpacity").hasValue(),n}return Object(Q.a)(r,[{key:"apply",value:function(e,o,n,i,s){for(var l=this.includeOpacity,f=this.matrix,p=e.getImageData(0,0,i,s),E=0;E1&&e[1]!==void 0?e[1]:!1,a=document.createElement("img"),r&&(a.crossOrigin="Anonymous"),n.abrupt("return",new Promise(function(i,s){a.onload=function(){i(a)},a.onerror=function(l,f,p,E,U){s(U)},a.src=u}));case 4:case"end":return n.stop()}},h)})),Jt.apply(this,arguments)}var Rt=function(){function h(u){Object(X.a)(this,h);var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.rootEmSize,e=a===void 0?12:a,o=r.emSize,n=o===void 0?12:o,i=r.createCanvas,s=i===void 0?h.createCanvas:i,l=r.createImage,f=l===void 0?h.createImage:l,p=r.anonymousCrossOrigin;this.canvg=u,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=u.screen,this.rootEmSize=e,this.emSize=n,this.createCanvas=s,this.createImage=this.bindCreateImage(f,p),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(Q.a)(h,[{key:"bindCreateImage",value:function(r,a){return typeof a=="boolean"?function(e,o){return r(e,typeof o=="boolean"?o:a)}:r}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var r=this.emSizeStack;return r[r.length-1]},set:function(r){var a=this.emSizeStack;a.push(r)}},{key:"popEmSize",value:function(){var r=this.emSizeStack;r.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(r){return r.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(r){return r.loaded})}},{key:"createDocumentElement",value:function(r){var a=this.createElement(r.documentElement);return a.root=!0,a.addStylesFromStyleDefinition(),this.documentElement=a,a}},{key:"createElement",value:function(r){var a=r.nodeName.replace(/^[^:]+:/,""),e=h.elementTypes[a];return typeof e!="undefined"?new e(this,r):new nn(this,r)}},{key:"createTextNode",value:function(r){return new tr(this,r)}},{key:"setViewBox",value:function(r){this.screen.setViewBox(ar({document:this},r))}}]),h}();Rt.createCanvas=or,Rt.createImage=ir,Rt.elementTypes=rr;function Un(h,u){var r=Object.keys(h);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(h);u&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(h,e).enumerable})),r.push.apply(r,a)}return r}function St(h){for(var u=1;u2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new It(a),this.screen=new He(u,a),this.options=a;var e=new Rt(this,a),o=e.createDocumentElement(r);this.document=e,this.documentElement=o}return Object(Q.a)(h,[{key:"fork",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.from(r,a,St(St({},this.options),e))}},{key:"forkString",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.fromString(r,a,St(St({},this.options),e))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var r=arguments,a=this;return ve()(se.a.mark(function e(){var o;return se.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return o=r.length>0&&r[0]!==void 0?r[0]:{},a.start(St({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},o)),i.next=4,a.ready();case 4:a.stop();case 5:case"end":return i.stop()}},e)}))()}},{key:"start",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this.documentElement,e=this.screen,o=this.options;e.start(a,St(St({enableRedraw:!0},o),r))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(r,a,e)}}],[{key:"from",value:function(r,a){var e=arguments;return ve()(se.a.mark(function o(){var n,i,s;return se.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return n=e.length>2&&e[2]!==void 0?e[2]:{},i=new It(n),f.next=4,i.parse(a);case 4:return s=f.sent,f.abrupt("return",new h(r,s,n));case 6:case"end":return f.stop()}},o)}))()}},{key:"fromString",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=new It(e),n=o.parseFromString(a);return new h(r,n,e)}}]),h}()}.call(this,t("Q2Ig"))},Dk1u:function(g,x,t){var c=t("Ks5W"),d=t("4YbN"),v=t("IL+x"),m=c.TypeError;g.exports=function(y){if(d(y))return y;throw m(v(y)+" is not a constructor")}},ENhe:function(g,x){g.exports={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}},FjAG:function(g,x,t){var c=t("Ks5W"),d=t("8HiI"),v=t("721z"),m=t("p5Ma"),y=t("tMNq"),M=c.TypeError,A=function(R){return function(T,L,B,I){d(L);var V=v(T),G=m(V),z=y(V),K=R?z-1:0,Z=R?-1:1;if(B<2)for(;;){if(K in G){I=G[K],K+=Z;break}if(K+=Z,R?K<0:z<=K)throw M("Reduce of empty array with no initial value")}for(;R?K>=0:z>K;K+=Z)K in G&&(I=L(I,G[K],K,V));return I}};g.exports={left:A(!1),right:A(!0)}},FkIU:function(g,x,t){var c=t("++4Y"),d=t("eRwv");g.exports=c&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},FlRv:function(g,x,t){var c=t("Ks5W"),d=t("++4Y"),v=t("pVCk"),m=t("FkIU"),y=t("WxoH"),M=t("GTqx"),A=c.TypeError,R=Object.defineProperty,T=Object.getOwnPropertyDescriptor,L="enumerable",B="configurable",I="writable";x.f=d?m?function(G,z,K){if(y(G),z=M(z),y(K),typeof G=="function"&&z==="prototype"&&"value"in K&&I in K&&!K[I]){var Z=T(G,z);Z&&Z[I]&&(G[z]=K.value,K={configurable:B in K?K[B]:Z[B],enumerable:L in K?K[L]:Z[L],writable:!1})}return R(G,z,K)}:R:function(G,z,K){if(y(G),z=M(z),y(K),v)try{return R(G,z,K)}catch(Z){}if("get"in K||"set"in K)throw A("Accessors not supported");return"value"in K&&(G[z]=K.value),G}},FqHY:function(g,x,t){var c=t("eE3R"),d=t("Ks5W");g.exports=/ipad|iphone|ipod/i.test(c)&&d.Pebble!==void 0},G5Kn:function(g,x,t){var c=t("11yv"),d=t("XFuk"),v=t("FlRv"),m=c("unscopables"),y=Array.prototype;y[m]==null&&v.f(y,m,{configurable:!0,value:d(null)}),g.exports=function(M){y[m][M]=!0}},GI0h:function(g,x,t){var c=t("me6S"),d=c("span").classList,v=d&&d.constructor&&d.constructor.prototype;g.exports=v===Object.prototype?void 0:v},GTqx:function(g,x,t){var c=t("ms20"),d=t("bT0D");g.exports=function(v){var m=c(v,"string");return d(m)?m:m+""}},GVkW:function(g,x,t){"use strict";var c=t("nCzB"),d=t("aLaa"),v=t("fKql").f,m=t("c3MK"),y=t("qzpy"),M=t("OU4x"),A=t("XaNE"),R=t("/TZh"),T=t("jybJ"),L=d("".endsWith),B=d("".slice),I=Math.min,V=R("endsWith"),G=!T&&!V&&!!function(){var z=v(String.prototype,"endsWith");return z&&!z.writable}();c({target:"String",proto:!0,forced:!G&&!V},{endsWith:function(K){var Z=y(A(this));M(K);var F=arguments.length>1?arguments[1]:void 0,te=Z.length,N=F===void 0?te:I(m(F),te),le=y(K);return L?L(Z,le,N):B(Z,N-le.length,N)===le}})},GgKt:function(g,x,t){var c=t("eE3R");g.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},Gywb:function(g,x,t){var c=t("eRwv");g.exports=!c(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},"HTC/":function(g,x,t){"use strict";var c=t("WxoH");g.exports=function(){var d=c(this),v="";return d.global&&(v+="g"),d.ignoreCase&&(v+="i"),d.multiline&&(v+="m"),d.dotAll&&(v+="s"),d.unicode&&(v+="u"),d.sticky&&(v+="y"),v}},IGIO:function(g,x,t){var c=t("ba8b"),d=t("Ks5W");g.exports=c(d.process)=="process"},"IL+x":function(g,x,t){var c=t("Ks5W"),d=c.String;g.exports=function(v){try{return d(v)}catch(m){return"Object"}}},JHvW:function(g,x,t){var c=t("aLaa"),d=t("WxoH"),v=t("NIpK");g.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,y={},M;try{M=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),M(y,[]),m=y instanceof Array}catch(A){}return function(R,T){return d(R),v(T),m?M(R,T):R.__proto__=T,R}}():void 0)},JTf3:function(g,x){g.exports=function(t){return typeof t=="function"}},KKe4:function(g,x,t){"use strict";var c=t("m7zg"),d=t("WONN"),v=t("WxoH"),m=t("c3MK"),y=t("qzpy"),M=t("XaNE"),A=t("oK8H"),R=t("M/+V"),T=t("3fk+");d("match",function(L,B,I){return[function(G){var z=M(this),K=G==null?void 0:A(G,L);return K?c(K,G,z):new RegExp(G)[L](y(z))},function(V){var G=v(this),z=y(V),K=I(B,G,z);if(K.done)return K.value;if(!G.global)return T(G,z);var Z=G.unicode;G.lastIndex=0;for(var F=[],te=0,N;(N=T(G,z))!==null;){var le=y(N[0]);F[te]=le,le===""&&(G.lastIndex=R(z,m(G.lastIndex),Z)),te++}return te===0?null:F}]})},KLN8:function(g,x,t){"use strict";var c=t("nCzB"),d=t("aLaa"),v=t("fKql").f,m=t("c3MK"),y=t("qzpy"),M=t("OU4x"),A=t("XaNE"),R=t("/TZh"),T=t("jybJ"),L=d("".startsWith),B=d("".slice),I=Math.min,V=R("startsWith"),G=!T&&!V&&!!function(){var z=v(String.prototype,"startsWith");return z&&!z.writable}();c({target:"String",proto:!0,forced:!G&&!V},{startsWith:function(K){var Z=y(A(this));M(K);var F=m(I(arguments.length>1?arguments[1]:void 0,Z.length)),te=y(K);return L?L(Z,te,F):B(Z,F,F+te.length)===te}})},Ks5W:function(g,x,t){(function(c){var d=function(v){return v&&v.Math==Math&&v};g.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof c=="object"&&c)||function(){return this}()||Function("return this")()}).call(this,t("yLpj"))},LOfi:function(g,x,t){var c=t("WrAw");g.exports=function(d,v,m){for(var y in v)c(d,y,v[y],m);return d}},Lltv:function(g,x,t){"use strict";var c=t("vkZI"),d=t("G5Kn"),v=t("AoAp"),m=t("UQ6y"),y=t("FlRv").f,M=t("jgt4"),A=t("jybJ"),R=t("++4Y"),T="Array Iterator",L=m.set,B=m.getterFor(T);g.exports=M(Array,"Array",function(V,G){L(this,{type:T,target:c(V),index:0,kind:G})},function(){var V=B(this),G=V.target,z=V.kind,K=V.index++;return!G||K>=G.length?(V.target=void 0,{value:void 0,done:!0}):z=="keys"?{value:K,done:!1}:z=="values"?{value:G[K],done:!1}:{value:[K,G[K]],done:!1}},"values");var I=v.Arguments=v.Array;if(d("keys"),d("values"),d("entries"),!A&&R&&I.name!=="values")try{y(I,"name",{value:"values"})}catch(V){}},"M/+V":function(g,x,t){"use strict";var c=t("ymN0").charAt;g.exports=function(d,v,m){return v+(m?c(d,v).length:1)}},MNKV:function(g,x,t){"use strict";var c=t("nCzB"),d=t("aLaa"),v=t("OU4x"),m=t("XaNE"),y=t("qzpy"),M=t("/TZh"),A=d("".indexOf);c({target:"String",proto:!0,forced:!M("includes")},{includes:function(T){return!!~A(y(m(this)),y(v(T)),arguments.length>1?arguments[1]:void 0)}})},MURR:function(g,x,t){var c=t("aLaa"),d=0,v=Math.random(),m=c(1 .toString);g.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+m(++d+v,36)}},N6FT:function(g,x,t){var c=t("++4Y"),d=t("YELS"),v=Function.prototype,m=c&&Object.getOwnPropertyDescriptor,y=d(v,"name"),M=y&&function(){}.name==="something",A=y&&(!c||c&&m(v,"name").configurable);g.exports={EXISTS:y,PROPER:M,CONFIGURABLE:A}},NCkV:function(g,x,t){"use strict";var c=t("1mOU"),d=t("m7zg"),v=t("aLaa"),m=t("WONN"),y=t("COGW"),M=t("WxoH"),A=t("XaNE"),R=t("NudO"),T=t("M/+V"),L=t("c3MK"),B=t("qzpy"),I=t("oK8H"),V=t("8Ys4"),G=t("3fk+"),z=t("WMbf"),K=t("RhGR"),Z=t("eRwv"),F=K.UNSUPPORTED_Y,te=4294967295,N=Math.min,le=[].push,S=v(/./.exec),C=v(le),D=v("".slice),P=!Z(function(){var _=/(?:)/,re=_.exec;_.exec=function(){return re.apply(this,arguments)};var q="ab".split(_);return q.length!==2||q[0]!=="a"||q[1]!=="b"});m("split",function(_,re,q){var b;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?b=function(H,O){var j=B(A(this)),k=O===void 0?te:O>>>0;if(k===0)return[];if(H===void 0)return[j];if(!y(H))return d(re,j,H,k);for(var w=[],W=(H.ignoreCase?"i":"")+(H.multiline?"m":"")+(H.unicode?"u":"")+(H.sticky?"y":""),J=0,Y=new RegExp(H.source,W+"g"),X,Q,ie;(X=d(z,Y,j))&&!(Q=Y.lastIndex,Q>J&&(C(w,D(j,J,X.index)),X.length>1&&X.index=k));)Y.lastIndex===X.index&&Y.lastIndex++;return J===j.length?(ie||!S(Y,""))&&C(w,""):C(w,D(j,J)),w.length>k?V(w,0,k):w}:"0".split(void 0,0).length?b=function(H,O){return H===void 0&&O===0?[]:d(re,this,H,O)}:b=re,[function(O,j){var k=A(this),w=O==null?void 0:I(O,_);return w?d(w,O,k,j):d(b,B(k),O,j)},function(H,O){var j=M(this),k=B(H),w=q(b,j,k,O,b!==re);if(w.done)return w.value;var W=R(j,RegExp),J=j.unicode,Y=(j.ignoreCase?"i":"")+(j.multiline?"m":"")+(j.unicode?"u":"")+(F?"g":"y"),X=new W(F?"^(?:"+j.source+")":j,Y),Q=O===void 0?te:O>>>0;if(Q===0)return[];if(k.length===0)return G(X,k)===null?[k]:[];for(var ie=0,ce=0,se=[];ce]*>)/g,R=/\$([$&'`]|\d{1,2})/g;g.exports=function(T,L,B,I,V,G){var z=B+T.length,K=I.length,Z=R;return V!==void 0&&(V=d(V),Z=A),y(G,Z,function(F,te){var N;switch(m(te,0)){case"$":return"$";case"&":return T;case"`":return M(L,0,B);case"'":return M(L,z);case"<":N=V[M(te,1,-1)];break;default:var le=+te;if(le===0)return F;if(le>K){var S=v(le/10);return S===0?F:S<=K?I[S-1]===void 0?m(te,1):I[S-1]+m(te,1):F}N=I[le-1]}return N===void 0?"":N})}},NudO:function(g,x,t){var c=t("WxoH"),d=t("Dk1u"),v=t("11yv"),m=v("species");g.exports=function(y,M){var A=c(y).constructor,R;return A===void 0||(R=c(A)[m])==null?M:d(R)}},Nybj:function(g,x,t){var c=t("vkZI"),d=t("n6S8"),v=t("tMNq"),m=function(y){return function(M,A,R){var T=c(M),L=v(T),B=d(R,L),I;if(y&&A!=A){for(;L>B;)if(I=T[B++],I!=I)return!0}else for(;L>B;B++)if((y||B in T)&&T[B]===A)return y||B||0;return!y&&-1}};g.exports={includes:m(!0),indexOf:m(!1)}},OU4x:function(g,x,t){var c=t("Ks5W"),d=t("COGW"),v=c.TypeError;g.exports=function(m){if(d(m))throw v("The method doesn't accept regular expressions");return m}},Ppro:function(g,x,t){"use strict";var c=t("nCzB"),d=t("WMbf");c({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},QELg:function(g,x,t){"use strict";var c=t("eRwv");g.exports=function(d,v){var m=[][d];return!!m&&c(function(){m.call(null,v||function(){return 1},1)})}},QrM1:function(g,x,t){var c=t("ZpKI"),d=t("Yzn+"),v=d.concat("length","prototype");x.f=Object.getOwnPropertyNames||function(y){return c(y,v)}},"RXj+":function(g,x,t){var c=t("aLaa"),d=t("XaNE"),v=t("qzpy"),m=t("noWC"),y=c("".replace),M="["+m+"]",A=RegExp("^"+M+M+"*"),R=RegExp(M+M+"*$"),T=function(L){return function(B){var I=v(d(B));return L&1&&(I=y(I,A,"")),L&2&&(I=y(I,R,"")),I}};g.exports={start:T(1),end:T(2),trim:T(3)}},RYfq:function(g,x,t){var c=t("Ks5W"),d=t("JTf3"),v=function(m){return d(m)?m:void 0};g.exports=function(m,y){return arguments.length<2?v(c[m]):c[m]&&c[m][y]}},RhGR:function(g,x,t){var c=t("eRwv"),d=t("Ks5W"),v=d.RegExp,m=c(function(){var A=v("a","y");return A.lastIndex=2,A.exec("abcd")!=null}),y=m||c(function(){return!v("a","y").sticky}),M=m||c(function(){var A=v("^r","gy");return A.lastIndex=2,A.exec("str")!=null});g.exports={BROKEN_CARET:M,MISSED_STICKY:y,UNSUPPORTED_Y:m}},S3az:function(g,x,t){var c=t("Ks5W"),d=t("JTf3"),v=t("sNJV"),m=c.WeakMap;g.exports=d(m)&&/native code/.test(v(m))},SN6V:function(g,x){var t=Math.ceil,c=Math.floor;g.exports=function(d){var v=+d;return v!==v||v===0?0:(v>0?c:t)(v)}},"ST+I":function(g,x,t){var c=t("aNr2"),d=t("MURR"),v=c("keys");g.exports=function(m){return v[m]||(v[m]=d(m))}},SkNP:function(g,x){g.exports={}},SwuV:function(g,x,t){var c=t("JTf3");g.exports=function(d){return typeof d=="object"?d!==null:c(d)}},TRzv:function(g,x,t){var c=t("WxoH"),d=t("SwuV"),v=t("zFjv");g.exports=function(m,y){if(c(m),d(y)&&y.constructor===m)return y;var M=v.f(m),A=M.resolve;return A(y),M.promise}},Ttl4:function(g,x,t){var c=t("YELS"),d=t("x1+7"),v=t("fKql"),m=t("FlRv");g.exports=function(y,M,A){for(var R=d(M),T=m.f,L=v.f,B=0;B0&&(!D.multiline||D.multiline&&G(_,D.lastIndex-1)!==` -`)&&(X="(?: "+X+")",ie=" "+ie,Q++),b=new RegExp("^(?:"+X+")",Y)),N&&(b=new RegExp("^"+X+"$(?!\\s)",Y)),F&&(H=D.lastIndex),O=c(I,J?b:D,ie),J?O?(O.input=Z(O.input,Q),O[0]=Z(O[0],Q),O.index=D.lastIndex,D.lastIndex+=O[0].length):D.lastIndex=0:F&&O&&(D.lastIndex=D.global?O.index+O[0].length:H),N&&O&&O.length>1&&c(B,O[0],b,function(){for(j=1;j3&&(this.alpha=A[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 R=this.r.toString(16),T=this.g.toString(16),L=this.b.toString(16);return R.length==1&&(R="0"+R),T.length==1&&(T="0"+T),L.length==1&&(L="0"+L),"#"+R+T+L},this.getHelpXML=function(){for(var R=new Array,T=0;T "+z.toRGB()+" -> "+z.toHex());G.appendChild(K),G.appendChild(Z),V.appendChild(G)}catch(te){}return V}}},WONN:function(g,x,t){"use strict";t("Ppro");var c=t("aLaa"),d=t("WrAw"),v=t("WMbf"),m=t("eRwv"),y=t("11yv"),M=t("8ODz"),A=y("species"),R=RegExp.prototype;g.exports=function(T,L,B,I){var V=y(T),G=!m(function(){var F={};return F[V]=function(){return 7},""[T](F)!=7}),z=G&&!m(function(){var F=!1,te=/a/;return T==="split"&&(te={},te.constructor={},te.constructor[A]=function(){return te},te.flags="",te[V]=/./[V]),te.exec=function(){return F=!0,null},te[V](""),!F});if(!G||!z||B){var K=c(/./[V]),Z=L(V,""[T],function(F,te,N,le,S){var C=c(F),D=te.exec;return D===v||D===R.exec?G&&!S?{done:!0,value:K(te,N,le)}:{done:!0,value:C(N,te,le)}:{done:!1}});d(String.prototype,T,Z[0]),d(R,V,Z[1])}I&&M(R[V],"sham",!0)}},WrAw:function(g,x,t){var c=t("Ks5W"),d=t("JTf3"),v=t("YELS"),m=t("8ODz"),y=t("nATg"),M=t("sNJV"),A=t("UQ6y"),R=t("N6FT").CONFIGURABLE,T=A.get,L=A.enforce,B=String(String).split("String");(g.exports=function(I,V,G,z){var K=z?!!z.unsafe:!1,Z=z?!!z.enumerable:!1,F=z?!!z.noTargetGet:!1,te=z&&z.name!==void 0?z.name:V,N;if(d(G)&&(String(te).slice(0,7)==="Symbol("&&(te="["+String(te).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!v(G,"name")||R&&G.name!==te)&&m(G,"name",te),N=L(G),N.source||(N.source=B.join(typeof te=="string"?te:""))),I===c){Z?I[V]=G:y(V,G);return}else K?!F&&I[V]&&(Z=!0):delete I[V];Z?I[V]=G:m(I,V,G)})(Function.prototype,"toString",function(){return d(this)&&T(this).source||M(this)})},WxoH:function(g,x,t){var c=t("Ks5W"),d=t("SwuV"),v=c.String,m=c.TypeError;g.exports=function(y){if(d(y))return y;throw m(v(y)+" is not an object")}},"X/EZ":function(g,x,t){var c=t("11yv"),d=c("iterator"),v=!1;try{var m=0,y={next:function(){return{done:!!m++}},return:function(){v=!0}};y[d]=function(){return this},Array.from(y,function(){throw 2})}catch(M){}g.exports=function(M,A){if(!A&&!v)return!1;var R=!1;try{var T={};T[d]=function(){return{next:function(){return{done:R=!0}}}},M(T)}catch(L){}return R}},XFuk:function(g,x,t){var c=t("WxoH"),d=t("oR5W"),v=t("Yzn+"),m=t("SkNP"),y=t("bUA4"),M=t("me6S"),A=t("ST+I"),R=">",T="<",L="prototype",B="script",I=A("IE_PROTO"),V=function(){},G=function(te){return T+B+R+te+T+"/"+B+R},z=function(te){te.write(G("")),te.close();var N=te.parentWindow.Object;return te=null,N},K=function(){var te=M("iframe"),N="java"+B+":",le;return te.style.display="none",y.appendChild(te),te.src=String(N),le=te.contentWindow.document,le.open(),le.write(G("document.F=Object")),le.close(),le.F},Z,F=function(){try{Z=new ActiveXObject("htmlfile")}catch(N){}F=typeof document!="undefined"?document.domain&&Z?z(Z):K():z(Z);for(var te=v.length;te--;)delete F[L][v[te]];return F()};m[I]=!0,g.exports=Object.create||function(N,le){var S;return N!==null?(V[L]=c(N),S=new V,V[L]=null,S[I]=N):S=F(),le===void 0?S:d.f(S,le)}},XTcp:function(g,x,t){var c=t("Ks5W"),d=t("1mOU"),v=t("mcoe"),m=t("JTf3"),y=t("YELS"),M=t("eRwv"),A=t("bUA4"),R=t("0r2v"),T=t("me6S"),L=t("k2qh"),B=t("GgKt"),I=t("IGIO"),V=c.setImmediate,G=c.clearImmediate,z=c.process,K=c.Dispatch,Z=c.Function,F=c.MessageChannel,te=c.String,N=0,le={},S="onreadystatechange",C,D,P,_;try{C=c.location}catch(O){}var re=function(O){if(y(le,O)){var j=le[O];delete le[O],j()}},q=function(O){return function(){re(O)}},b=function(O){re(O.data)},H=function(O){c.postMessage(te(O),C.protocol+"//"+C.host)};(!V||!G)&&(V=function(j){L(arguments.length,1);var k=m(j)?j:Z(j),w=R(arguments,1);return le[++N]=function(){d(k,void 0,w)},D(N),N},G=function(j){delete le[j]},I?D=function(O){z.nextTick(q(O))}:K&&K.now?D=function(O){K.now(q(O))}:F&&!B?(P=new F,_=P.port2,P.port1.onmessage=b,D=v(_.postMessage,_)):c.addEventListener&&m(c.postMessage)&&!c.importScripts&&C&&C.protocol!=="file:"&&!M(H)?(D=H,c.addEventListener("message",b,!1)):S in T("script")?D=function(O){A.appendChild(T("script"))[S]=function(){A.removeChild(this),re(O)}}:D=function(O){setTimeout(q(O),0)}),g.exports={set:V,clear:G}},XaNE:function(g,x,t){var c=t("Ks5W"),d=c.TypeError;g.exports=function(v){if(v==null)throw d("Can't call method on "+v);return v}},Xp4B:function(g,x,t){"use strict";t.d(x,"a",function(){return A});function c(I){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(G){return typeof G}:c=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},c(I)}function d(I,V){if(!(I instanceof V))throw new TypeError("Cannot call a class as a function")}var v=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],m=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function y(I,V,G,z,K,Z){if(typeof I=="string"&&(I=document.getElementById(I)),!I||!("naturalWidth"in I))return;var F=K?"offset":"natural",te=I[F+"Width"],N=I[F+"Height"];if(typeof V=="string"&&(V=document.getElementById(V)),!V||!("getContext"in V))return;Z||(V.style.width=te+"px",V.style.height=N+"px"),V.width=te,V.height=N;var le=V.getContext("2d");if(le.clearRect(0,0,te,N),le.drawImage(I,0,0,I.naturalWidth,I.naturalHeight,0,0,te,N),isNaN(G)||G<1)return;z?A(V,0,0,te,N,G):T(V,0,0,te,N,G)}function M(I,V,G,z,K){if(typeof I=="string"&&(I=document.getElementById(I)),!I||c(I)!=="object"||!("getContext"in I))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var Z=I.getContext("2d");try{return Z.getImageData(V,G,z,K)}catch(F){throw new Error("unable to access image data: "+F)}}function A(I,V,G,z,K,Z){if(isNaN(Z)||Z<1)return;Z|=0;var F=M(I,V,G,z,K);F=R(F,V,G,z,K,Z),I.getContext("2d").putImageData(F,V,G)}function R(I,V,G,z,K,Z){for(var F=I.data,te=2*Z+1,N=z-1,le=K-1,S=Z+1,C=S*(S+1)/2,D=new B,P=D,_,re=1;re>k;if(F[O+3]=ze,ze!==0){var qe=255/ze;F[O]=(Ae*j>>k)*qe,F[O+1]=(Re*j>>k)*qe,F[O+2]=(Te*j>>k)*qe}else F[O]=F[O+1]=F[O+2]=0;Ae-=ve,Re-=me,Te-=Pe,Ie-=Me,ve-=q.r,me-=q.g,Pe-=q.b,Me-=q.a;var Ge=Oe+Z+1;Ge=H+(Ge>k,ne>0?(ne=255/ne,F[He]=(Fe*j>>k)*ne,F[He+1]=(Je*j>>k)*ne,F[He+2]=($e*j>>k)*ne):F[He]=F[He+1]=F[He+2]=0,Fe-=de,Je-=pe,$e-=ye,Xe-=Ee,de-=q.r,pe-=q.g,ye-=q.b,Ee-=q.a,He=at+((He=Mt+S)>O,F[W+1]=ve*H>>O,F[W+2]=me*H>>O,Ce-=ie,ve-=ce,me-=se,ie-=q.r,ce-=q.g,se-=q.b,j=w+((j=Ie+Z+1)>O,F[j+1]=ze*H>>O,F[j+2]=qe*H>>O,Oe-=De,ze-=je,qe-=Se,De-=q.r,je-=q.g,Se-=q.b,j=we+((j=at+S)L;)d(T,I=R[L++])&&(~m(B,I)||M(B,I));return B}},a9Cf:function(g,x,t){var c=t("11yv"),d=c("toStringTag"),v={};v[d]="z",g.exports=String(v)==="[object z]"},aLaa:function(g,x,t){var c=t("66qH"),d=Function.prototype,v=d.bind,m=d.call,y=c&&v.bind(m,m);g.exports=c?function(M){return M&&y(M)}:function(M){return M&&function(){return m.apply(M,arguments)}}},aNIs:function(g,x,t){var c=t("Ks5W"),d=t("eE3R"),v=c.process,m=c.Deno,y=v&&v.versions||m&&m.version,M=y&&y.v8,A,R;M&&(A=M.split("."),R=A[0]>0&&A[0]<4?1:+(A[0]+A[1])),!R&&d&&(A=d.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=d.match(/Chrome\/(\d+)/),A&&(R=+A[1]))),g.exports=R},aNr2:function(g,x,t){var c=t("jybJ"),d=t("4gdG");(g.exports=function(v,m){return d[v]||(d[v]=m!==void 0?m:{})})("versions",[]).push({version:"3.21.1",mode:c?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},bT0D:function(g,x,t){var c=t("Ks5W"),d=t("RYfq"),v=t("JTf3"),m=t("3Xd8"),y=t("1Sr1"),M=c.Object;g.exports=y?function(A){return typeof A=="symbol"}:function(A){var R=d("Symbol");return v(R)&&m(R.prototype,M(A))}},bUA4:function(g,x,t){var c=t("RYfq");g.exports=c("document","documentElement")},ba8b:function(g,x,t){var c=t("aLaa"),d=c({}.toString),v=c("".slice);g.exports=function(m){return v(d(m),8,-1)}},c3MK:function(g,x,t){var c=t("SN6V"),d=Math.min;g.exports=function(v){return v>0?d(c(v),9007199254740991):0}},c55Z:function(g,x,t){var c=t("eRwv"),d=t("Ks5W"),v=d.RegExp;g.exports=c(function(){var m=v("(?b)","g");return m.exec("b").groups.a!=="b"||"b".replace(m,"$c")!=="bc"})},eE3R:function(g,x,t){var c=t("RYfq");g.exports=c("navigator","userAgent")||""},eRwv:function(g,x){g.exports=function(t){try{return!!t()}catch(c){return!0}}},fKql:function(g,x,t){var c=t("++4Y"),d=t("m7zg"),v=t("5r2E"),m=t("4uGi"),y=t("vkZI"),M=t("GTqx"),A=t("YELS"),R=t("pVCk"),T=Object.getOwnPropertyDescriptor;x.f=c?T:function(B,I){if(B=y(B),I=M(I),R)try{return T(B,I)}catch(V){}if(A(B,I))return m(!d(v.f,B,I),B[I])}},"g8+u":function(g,x,t){var c=t("Ks5W"),d=t("a9Cf"),v=t("JTf3"),m=t("ba8b"),y=t("11yv"),M=y("toStringTag"),A=c.Object,R=m(function(){return arguments}())=="Arguments",T=function(L,B){try{return L[B]}catch(I){}};g.exports=d?m:function(L){var B,I,V;return L===void 0?"Undefined":L===null?"Null":typeof(I=T(B=A(L),M))=="string"?I:R?m(B):(V=m(B))=="Object"&&v(B.callee)?"Arguments":V}},g9jQ:function(g,x,t){"use strict";var c=t("nCzB"),d=t("aLaa"),v=t("Nybj").indexOf,m=t("QELg"),y=d([].indexOf),M=!!y&&1/y([1],1,-0)<0,A=m("indexOf");c({target:"Array",proto:!0,forced:M||!A},{indexOf:function(T){var L=arguments.length>1?arguments[1]:void 0;return M?y(this,T,L)||0:v(this,T,L)}})},gzPo:function(g,x,t){var c=t("Ks5W"),d=t("mcoe"),v=t("fKql").f,m=t("XTcp").set,y=t("GgKt"),M=t("FqHY"),A=t("/pbl"),R=t("IGIO"),T=c.MutationObserver||c.WebKitMutationObserver,L=c.document,B=c.process,I=c.Promise,V=v(c,"queueMicrotask"),G=V&&V.value,z,K,Z,F,te,N,le,S;G||(z=function(){var C,D;for(R&&(C=B.domain)&&C.exit();K;){D=K.fn,K=K.next;try{D()}catch(P){throw K?F():Z=void 0,P}}Z=void 0,C&&C.enter()},!y&&!R&&!A&&T&&L?(te=!0,N=L.createTextNode(""),new T(z).observe(N,{characterData:!0}),F=function(){N.data=te=!te}):!M&&I&&I.resolve?(le=I.resolve(void 0),le.constructor=I,S=d(le.then,le),F=function(){S(z)}):R?F=function(){B.nextTick(z)}:(m=d(m,c),F=function(){m(z)})),g.exports=G||function(C){var D={fn:C,next:void 0};Z&&(Z.next=D),K||(K=D,F()),Z=D}},hIaP:function(g,x,t){var c=t("Ks5W"),d=t("m7zg"),v=t("8HiI"),m=t("WxoH"),y=t("IL+x"),M=t("ltkU"),A=c.TypeError;g.exports=function(R,T){var L=arguments.length<2?M(R):T;if(v(L))return m(d(L,R));throw A(y(R)+" is not iterable")}},"iBj/":function(g,x,t){var c=t("m7zg"),d=t("WxoH"),v=t("oK8H");g.exports=function(m,y,M){var A,R;d(m);try{if(A=v(m,"return"),!A){if(y==="throw")throw M;return M}A=c(A,m)}catch(T){R=!0,A=T}if(y==="throw")throw M;if(R)throw A;return d(A),M}},iWRt:function(g,x,t){"use strict";var c=t("nCzB"),d=t("aLaa"),v=t("uZ/K"),m=d([].reverse),y=[1,2];c({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return v(this)&&(this.length=this.length),m(this)}})},jgt4:function(g,x,t){"use strict";var c=t("nCzB"),d=t("m7zg"),v=t("jybJ"),m=t("N6FT"),y=t("JTf3"),M=t("3agc"),A=t("WLJ+"),R=t("JHvW"),T=t("ueY1"),L=t("8ODz"),B=t("WrAw"),I=t("11yv"),V=t("AoAp"),G=t("qjFr"),z=m.PROPER,K=m.CONFIGURABLE,Z=G.IteratorPrototype,F=G.BUGGY_SAFARI_ITERATORS,te=I("iterator"),N="keys",le="values",S="entries",C=function(){return this};g.exports=function(D,P,_,re,q,b,H){M(_,P,re);var O=function(ce){if(ce===q&&J)return J;if(!F&&ce in w)return w[ce];switch(ce){case N:return function(){return new _(this,ce)};case le:return function(){return new _(this,ce)};case S:return function(){return new _(this,ce)}}return function(){return new _(this)}},j=P+" Iterator",k=!1,w=D.prototype,W=w[te]||w["@@iterator"]||q&&w[q],J=!F&&W||O(q),Y=P=="Array"&&w.entries||W,X,Q,ie;if(Y&&(X=A(Y.call(new D)),X!==Object.prototype&&X.next&&(!v&&A(X)!==Z&&(R?R(X,Z):y(X[te])||B(X,te,C)),T(X,j,!0,!0),v&&(V[j]=C))),z&&q==le&&W&&W.name!==le&&(!v&&K?L(w,"name",le):(k=!0,J=function(){return d(W,this)})),q)if(Q={values:O(le),keys:b?J:O(N),entries:O(S)},H)for(ie in Q)(F||k||!(ie in w))&&B(w,ie,Q[ie]);else c({target:P,proto:!0,forced:F||k},Q);return(!v||H)&&w[te]!==J&&B(w,te,J,{name:q}),V[P]=J,Q}},jybJ:function(g,x){g.exports=!1},k2qh:function(g,x,t){var c=t("Ks5W"),d=c.TypeError;g.exports=function(v,m){if(v79&&m<83;c({target:"Array",proto:!0,forced:!M||A},{reduce:function(T){var L=arguments.length;return d(this,T,L,L>1?arguments[1]:void 0)}})},me6S:function(g,x,t){var c=t("Ks5W"),d=t("SwuV"),v=c.document,m=d(v)&&d(v.createElement);g.exports=function(y){return m?v.createElement(y):{}}},ms20:function(g,x,t){var c=t("Ks5W"),d=t("m7zg"),v=t("SwuV"),m=t("bT0D"),y=t("oK8H"),M=t("2lHc"),A=t("11yv"),R=c.TypeError,T=A("toPrimitive");g.exports=function(L,B){if(!v(L)||m(L))return L;var I=y(L,T),V;if(I){if(B===void 0&&(B="default"),V=d(I,L,B),!v(V)||m(V))return V;throw R("Can't convert object to primitive value")}return B===void 0&&(B="number"),M(L,B)}},n6S8:function(g,x,t){var c=t("SN6V"),d=Math.max,v=Math.min;g.exports=function(m,y){var M=c(m);return M<0?d(M+y,0):v(M,y)}},nATg:function(g,x,t){var c=t("Ks5W"),d=Object.defineProperty;g.exports=function(v,m){try{d(c,v,{value:m,configurable:!0,writable:!0})}catch(y){c[v]=m}return m}},nCzB:function(g,x,t){var c=t("Ks5W"),d=t("fKql").f,v=t("8ODz"),m=t("WrAw"),y=t("nATg"),M=t("Ttl4"),A=t("mGb/");g.exports=function(R,T){var L=R.target,B=R.global,I=R.stat,V,G,z,K,Z,F;if(B?G=c:I?G=c[L]||y(L,{}):G=(c[L]||{}).prototype,G)for(z in T){if(Z=T[z],R.noTargetGet?(F=d(G,z),K=F&&F.value):K=G[z],V=A(B?z:L+(I?".":"#")+z,R.forced),!V&&K!==void 0){if(typeof Z==typeof K)continue;M(Z,K)}(R.sham||K&&K.sham)&&v(Z,"sham",!0),m(G,z,Z,R)}}},noWC:function(g,x){g.exports=` -\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},nvEG:function(g,x,t){var c=t("Ks5W"),d=t("mcoe"),v=t("m7zg"),m=t("WxoH"),y=t("IL+x"),M=t("3n0U"),A=t("tMNq"),R=t("3Xd8"),T=t("hIaP"),L=t("ltkU"),B=t("iBj/"),I=c.TypeError,V=function(z,K){this.stopped=z,this.result=K},G=V.prototype;g.exports=function(z,K,Z){var F=Z&&Z.that,te=!!(Z&&Z.AS_ENTRIES),N=!!(Z&&Z.IS_ITERATOR),le=!!(Z&&Z.INTERRUPTED),S=d(K,F),C,D,P,_,re,q,b,H=function(j){return C&&B(C,"normal",j),new V(!0,j)},O=function(j){return te?(m(j),le?S(j[0],j[1],H):S(j[0],j[1])):le?S(j,H):S(j)};if(N)C=z;else{if(D=L(z),!D)throw I(y(z)+" is not iterable");if(M(D)){for(P=0,_=A(z);_>P;P++)if(re=O(z[P]),re&&R(G,re))return re;return new V(!1)}C=T(z,D)}for(q=C.next;!(b=v(q,C)).done;){try{re=O(b.value)}catch(j){B(C,"throw",j)}if(typeof re=="object"&&re&&R(G,re))return re}return new V(!1)}},oK8H:function(g,x,t){var c=t("8HiI");g.exports=function(d,v){var m=d[v];return m==null?void 0:c(m)}},oR5W:function(g,x,t){var c=t("++4Y"),d=t("FkIU"),v=t("FlRv"),m=t("WxoH"),y=t("vkZI"),M=t("Ai06");x.f=c&&!d?Object.defineProperties:function(R,T){m(R);for(var L=y(T),B=M(T),I=B.length,V=0,G;I>V;)v.f(R,G=B[V++],L[G]);return R}},oauk:function(g,x,t){"use strict";var c=t("GTqx"),d=t("FlRv"),v=t("4uGi");g.exports=function(m,y,M){var A=c(y);A in m?d.f(m,A,v(0,M)):m[A]=M}},p5Ma:function(g,x,t){var c=t("Ks5W"),d=t("aLaa"),v=t("eRwv"),m=t("ba8b"),y=c.Object,M=d("".split);g.exports=v(function(){return!y("z").propertyIsEnumerable(0)})?function(A){return m(A)=="String"?M(A,""):y(A)}:y},pVCk:function(g,x,t){var c=t("++4Y"),d=t("eRwv"),v=t("me6S");g.exports=!c&&!d(function(){return Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a!=7})},"plO+":function(g,x,t){var c=t("aNIs"),d=t("eRwv");g.exports=!!Object.getOwnPropertySymbols&&!d(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&c&&c<41})},qJvV:function(g,x,t){var c=t("Ks5W"),d=t("ENhe"),v=t("GI0h"),m=t("Lltv"),y=t("8ODz"),M=t("11yv"),A=M("iterator"),R=M("toStringTag"),T=m.values,L=function(I,V){if(I){if(I[A]!==T)try{y(I,A,T)}catch(z){I[A]=T}if(I[R]||y(I,R,V),d[V]){for(var G in m)if(I[G]!==m[G])try{y(I,G,m[G])}catch(z){I[G]=m[G]}}}};for(var B in d)L(c[B]&&c[B].prototype,B);L(v,"DOMTokenList")},qjFr:function(g,x,t){"use strict";var c=t("eRwv"),d=t("JTf3"),v=t("XFuk"),m=t("WLJ+"),y=t("WrAw"),M=t("11yv"),A=t("jybJ"),R=M("iterator"),T=!1,L,B,I;[].keys&&(I=[].keys(),"next"in I?(B=m(m(I)),B!==Object.prototype&&(L=B)):T=!0);var V=L==null||c(function(){var G={};return L[R].call(G)!==G});V?L={}:A&&(L=v(L)),d(L[R])||y(L,R,function(){return this}),g.exports={IteratorPrototype:L,BUGGY_SAFARI_ITERATORS:T}},qzpy:function(g,x,t){var c=t("Ks5W"),d=t("g8+u"),v=c.String;g.exports=function(m){if(d(m)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return v(m)}},sNJV:function(g,x,t){var c=t("aLaa"),d=t("JTf3"),v=t("4gdG"),m=c(Function.toString);d(v.inspectSource)||(v.inspectSource=function(y){return m(y)}),g.exports=v.inspectSource},tMNq:function(g,x,t){var c=t("c3MK");g.exports=function(d){return c(d.length)}},"uZ/K":function(g,x,t){var c=t("ba8b");g.exports=Array.isArray||function(v){return c(v)=="Array"}},ueY1:function(g,x,t){var c=t("FlRv").f,d=t("YELS"),v=t("11yv"),m=v("toStringTag");g.exports=function(y,M,A){y&&!A&&(y=y.prototype),y&&!d(y,m)&&c(y,m,{configurable:!0,value:M})}},uoua:function(g,x,t){var c=t("Ks5W"),d=t("3Xd8"),v=c.TypeError;g.exports=function(m,y){if(d(y,m))return m;throw v("Incorrect invocation")}},vTDQ:function(g,x){g.exports=typeof window=="object"},vkZI:function(g,x,t){var c=t("p5Ma"),d=t("XaNE");g.exports=function(v){return c(d(v))}},vrKp:function(g,x,t){"use strict";var c=t("nCzB"),d=t("jybJ"),v=t("Ks5W"),m=t("RYfq"),y=t("m7zg"),M=t("BDtL"),A=t("WrAw"),R=t("LOfi"),T=t("JHvW"),L=t("ueY1"),B=t("9Bi7"),I=t("8HiI"),V=t("JTf3"),G=t("SwuV"),z=t("uoua"),K=t("sNJV"),Z=t("nvEG"),F=t("X/EZ"),te=t("NudO"),N=t("XTcp").set,le=t("gzPo"),S=t("TRzv"),C=t("lAFk"),D=t("zFjv"),P=t("8xe4"),_=t("zUnQ"),re=t("UQ6y"),q=t("mGb/"),b=t("11yv"),H=t("vTDQ"),O=t("IGIO"),j=t("aNIs"),k=b("species"),w="Promise",W=re.getterFor(w),J=re.set,Y=re.getterFor(w),X=M&&M.prototype,Q=M,ie=X,ce=v.TypeError,se=v.document,Ce=v.process,ve=D.f,me=ve,Pe=!!(se&&se.createEvent&&v.dispatchEvent),Me=V(v.PromiseRejectionEvent),Ae="unhandledrejection",Re="rejectionhandled",Te=0,Ie=1,we=2,Ne=1,Be=2,Ue=!1,De,je,Se,Oe,ze=q(w,function(){var ne=K(Q),de=ne!==String(Q);if(!de&&j===66)return!0;if(d&&!ie.finally)return!0;if(j>=51&&/native code/.test(ne))return!1;var pe=new Q(function(Fe){Fe(1)}),ye=function(Fe){Fe(function(){},function(){})},Ee=pe.constructor={};return Ee[k]=ye,Ue=pe.then(function(){})instanceof ye,Ue?!de&&H&&!Me:!0}),qe=ze||!F(function(ne){Q.all(ne).catch(function(){})}),Ge=function(ne){var de;return G(ne)&&V(de=ne.then)?de:!1},_e=function(ne,de){var pe=de.value,ye=de.state==Ie,Ee=ye?ne.ok:ne.fail,Fe=ne.resolve,Je=ne.reject,$e=ne.domain,Xe,vt,lt;try{Ee?(ye||(de.rejection===Be&&at(de),de.rejection=Ne),Ee===!0?Xe=pe:($e&&$e.enter(),Xe=Ee(pe),$e&&($e.exit(),lt=!0)),Xe===ne.promise?Je(ce("Promise-chain cycle")):(vt=Ge(Xe))?y(vt,Xe,Fe,Je):Fe(Xe)):Je(pe)}catch(pt){$e&&!lt&&$e.exit(),Je(pt)}},it=function(ne,de){if(ne.notified)return;ne.notified=!0,le(function(){for(var pe=ne.reactions,ye;ye=pe.get();)_e(ye,ne);ne.notified=!1,de&&!ne.rejection&&ht(ne)})},st=function(ne,de,pe){var ye,Ee;Pe?(ye=se.createEvent("Event"),ye.promise=de,ye.reason=pe,ye.initEvent(ne,!1,!0),v.dispatchEvent(ye)):ye={promise:de,reason:pe},!Me&&(Ee=v["on"+ne])?Ee(ye):ne===Ae&&C("Unhandled promise rejection",pe)},ht=function(ne){y(N,v,function(){var de=ne.facade,pe=ne.value,ye=mt(ne),Ee;if(ye&&(Ee=P(function(){O?Ce.emit("unhandledRejection",pe,de):st(Ae,de,pe)}),ne.rejection=O||mt(ne)?Be:Ne,Ee.error))throw Ee.value})},mt=function(ne){return ne.rejection!==Ne&&!ne.parent},at=function(ne){y(N,v,function(){var de=ne.facade;O?Ce.emit("rejectionHandled",de):st(Re,de,ne.value)})},tt=function(ne,de,pe){return function(ye){ne(de,ye,pe)}},nt=function(ne,de,pe){if(ne.done)return;ne.done=!0,pe&&(ne=pe),ne.value=de,ne.state=we,it(ne,!0)},Ke=function(ne,de,pe){if(ne.done)return;ne.done=!0,pe&&(ne=pe);try{if(ne.facade===de)throw ce("Promise can't be resolved itself");var ye=Ge(de);ye?le(function(){var Ee={done:!1};try{y(ye,de,tt(Ke,Ee,ne),tt(nt,Ee,ne))}catch(Fe){nt(Ee,Fe,ne)}}):(ne.value=de,ne.state=Ie,it(ne,!1))}catch(Ee){nt({done:!1},Ee,ne)}};if(ze&&(Q=function(de){z(this,ie),I(de),y(De,this);var pe=W(this);try{de(tt(Ke,pe),tt(nt,pe))}catch(ye){nt(pe,ye)}},ie=Q.prototype,De=function(de){J(this,{type:w,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:Te,value:void 0})},De.prototype=R(ie,{then:function(de,pe){var ye=Y(this),Ee=ve(te(this,Q));return ye.parent=!0,Ee.ok=V(de)?de:!0,Ee.fail=V(pe)&&pe,Ee.domain=O?Ce.domain:void 0,ye.state==Te?ye.reactions.add(Ee):le(function(){_e(Ee,ye)}),Ee.promise},catch:function(ne){return this.then(void 0,ne)}}),je=function(){var ne=new De,de=W(ne);this.promise=ne,this.resolve=tt(Ke,de),this.reject=tt(nt,de)},D.f=ve=function(ne){return ne===Q||ne===Se?new je(ne):me(ne)},!d&&V(M)&&X!==Object.prototype)){Oe=X.then,Ue||(A(X,"then",function(de,pe){var ye=this;return new Q(function(Ee,Fe){y(Oe,ye,Ee,Fe)}).then(de,pe)},{unsafe:!0}),A(X,"catch",ie.catch,{unsafe:!0}));try{delete X.constructor}catch(ne){}T&&T(X,ie)}c({global:!0,wrap:!0,forced:ze},{Promise:Q}),L(Q,w,!1,!0),B(w),Se=m(w),c({target:w,stat:!0,forced:ze},{reject:function(de){var pe=ve(this);return y(pe.reject,void 0,de),pe.promise}}),c({target:w,stat:!0,forced:d||ze},{resolve:function(de){return S(d&&this===Se?Q:this,de)}}),c({target:w,stat:!0,forced:qe},{all:function(de){var pe=this,ye=ve(pe),Ee=ye.resolve,Fe=ye.reject,Je=P(function(){var $e=I(pe.resolve),Xe=[],vt=0,lt=1;Z(de,function(pt){var he=vt++,yt=!1;lt++,y($e,pe,pt).then(function(We){if(yt)return;yt=!0,Xe[he]=We,--lt||Ee(Xe)},Fe)}),--lt||Ee(Xe)});return Je.error&&Fe(Je.value),ye.promise},race:function(de){var pe=this,ye=ve(pe),Ee=ye.reject,Fe=P(function(){var Je=I(pe.resolve);Z(de,function($e){y(Je,pe,$e).then(ye.resolve,Ee)})});return Fe.error&&Ee(Fe.value),ye.promise}})},wOD2:function(g,x,t){"use strict";var c=t("nCzB"),d=t("RXj+").trim,v=t("5JCY");c({target:"String",proto:!0,forced:v("trim")},{trim:function(){return d(this)}})},"x1+7":function(g,x,t){var c=t("RYfq"),d=t("aLaa"),v=t("QrM1"),m=t("UCFi"),y=t("WxoH"),M=d([].concat);g.exports=c("Reflect","ownKeys")||function(R){var T=v.f(y(R)),L=m.f;return L?M(T,L(R)):T}},x8x8:function(g,x,t){"use strict";var c=t("1mOU"),d=t("m7zg"),v=t("aLaa"),m=t("WONN"),y=t("eRwv"),M=t("WxoH"),A=t("JTf3"),R=t("SN6V"),T=t("c3MK"),L=t("qzpy"),B=t("XaNE"),I=t("M/+V"),V=t("oK8H"),G=t("Ne/+"),z=t("3fk+"),K=t("11yv"),Z=K("replace"),F=Math.max,te=Math.min,N=v([].concat),le=v([].push),S=v("".indexOf),C=v("".slice),D=function(q){return q===void 0?q:String(q)},P=function(){return"a".replace(/./,"$0")==="$0"}(),_=function(){return/./[Z]?/./[Z]("a","$0")==="":!1}(),re=!y(function(){var q=/./;return q.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(q,"$")!=="7"});m("replace",function(q,b,H){var O=_?"$":"$0";return[function(k,w){var W=B(this),J=k==null?void 0:V(k,Z);return J?d(J,k,W,w):d(b,L(W),k,w)},function(j,k){var w=M(this),W=L(j);if(typeof k=="string"&&S(k,O)===-1&&S(k,"$<")===-1){var J=H(b,w,W,k);if(J.done)return J.value}var Y=A(k);Y||(k=L(k));var X=w.global;if(X){var Q=w.unicode;w.lastIndex=0}for(var ie=[];;){var ce=z(w,W);if(ce===null)break;if(le(ie,ce),!X)break;var se=L(ce[0]);se===""&&(w.lastIndex=I(W,T(w.lastIndex),Q))}for(var Ce="",ve=0,me=0;me=ve&&(Ce+=C(W,ve,Me)+we,ve=Me+Pe.length)}return Ce+C(W,ve)}]},!re||!P||_)},yD9w:function(g,x,t){"use strict";var c=t("aLaa"),d=t("N6FT").PROPER,v=t("WrAw"),m=t("WxoH"),y=t("3Xd8"),M=t("qzpy"),A=t("eRwv"),R=t("HTC/"),T="toString",L=RegExp.prototype,B=L[T],I=c(R),V=A(function(){return B.call({source:"a",flags:"b"})!="/a/b"}),G=d&&B.name!=T;(V||G)&&v(RegExp.prototype,T,function(){var K=m(this),Z=M(K.source),F=K.flags,te=M(F===void 0&&y(L,K)&&!("flags"in L)?I(K):F);return"/"+Z+"/"+te},{unsafe:!0})},yXPU:function(g,x){function t(d,v,m,y,M,A,R){try{var T=d[A](R),L=T.value}catch(B){m(B);return}T.done?v(L):Promise.resolve(L).then(y,M)}function c(d){return function(){var v=this,m=arguments;return new Promise(function(y,M){var A=d.apply(v,m);function R(L){t(A,y,M,R,T,"next",L)}function T(L){t(A,y,M,R,T,"throw",L)}R(void 0)})}}g.exports=c,g.exports.__esModule=!0,g.exports.default=g.exports},ymN0:function(g,x,t){var c=t("aLaa"),d=t("SN6V"),v=t("qzpy"),m=t("XaNE"),y=c("".charAt),M=c("".charCodeAt),A=c("".slice),R=function(T){return function(L,B){var I=v(m(L)),V=d(B),G=I.length,z,K;return V<0||V>=G?T?"":void 0:(z=M(I,V),z<55296||z>56319||V+1===G||(K=M(I,V+1))<56320||K>57343?T?y(I,V):z:T?A(I,V,V+2):(z-55296<<10)+(K-56320)+65536)}};g.exports={codeAt:R(!1),charAt:R(!0)}},zFjv:function(g,x,t){"use strict";var c=t("8HiI"),d=function(v){var m,y;this.promise=new v(function(M,A){if(m!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");m=M,y=A}),this.resolve=c(m),this.reject=c(y)};g.exports.f=function(v){return new d(v)}},zUnQ:function(g,x){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(c){var d={item:c,next:null};this.head?this.tail.next=d:this.head=d,this.tail=d},get:function(){var c=this.head;if(c)return this.head=c.next,this.tail===c&&(this.tail=null),c.item}},g.exports=t}}]); diff --git a/268.54b98de9.async.js b/268.0a0c4ed0.async.js similarity index 100% rename from 268.54b98de9.async.js rename to 268.0a0c4ed0.async.js diff --git a/269.6cdde892.async.js b/269.47565b15.async.js similarity index 100% rename from 269.6cdde892.async.js rename to 269.47565b15.async.js diff --git a/270.cbbddfd5.async.js b/270.a56d14bd.async.js similarity index 100% rename from 270.cbbddfd5.async.js rename to 270.a56d14bd.async.js diff --git a/271.95557831.async.js b/271.95557831.async.js deleted file mode 100644 index f28d6f452c..0000000000 --- a/271.95557831.async.js +++ /dev/null @@ -1,2 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[271],{qZ2Q:function(lt,Jt,Zt){/*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */(function(ke,ne){lt.exports=ne()})(this,function(){"use strict";function ke(n){if(Array.isArray(n)){for(var r=0,o=Array(n.length);r1?o-1:0),p=1;p/gm),_t=_(/^data-[\-\w.\u00B7-\uFFFF]/),At=_(/^aria-[\-\w]+$/),Et=_(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wt=_(/^(?:\w+script|data):/i),Mt=_(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Dt=_(/^html$/i),z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};function A(n){if(Array.isArray(n)){for(var r=0,o=Array(n.length);r0&&arguments[0]!==void 0?arguments[0]:Ot(),r=function(e){return He(e)};if(r.version="2.3.6",r.removed=[],!n||!n.document||n.document.nodeType!==9)return r.isSupported=!1,r;var o=n.document,l=n.document,p=n.DocumentFragment,K=n.HTMLTemplateElement,x=n.Node,q=n.Element,ce=n.NodeFilter,Fe=n.NamedNodeMap,Nt=Fe===void 0?n.NamedNodeMap||n.MozNamedAttrMap:Fe,Lt=n.HTMLFormElement,xt=n.DOMParser,Rt=n.trustedTypes,X=q.prototype,Ct=$(X,"cloneNode"),It=$(X,"nextSibling"),Pt=$(X,"childNodes"),me=$(X,"parentNode");if(typeof K=="function"){var fe=l.createElement("template");fe.content&&fe.content.ownerDocument&&(l=fe.content.ownerDocument)}var O=kt(Rt,o),Ue=O?O.createHTML(""):"",J=l,de=J.implementation,Ht=J.createNodeIterator,Ft=J.createDocumentFragment,Ut=J.getElementsByTagName,zt=o.importNode,ze={};try{ze=S(l).documentMode?l.documentMode:{}}catch(i){}var E={};r.isSupported=typeof me=="function"&&de&&typeof de.createHTMLDocument!="undefined"&&ze!==9;var pe=yt,he=Tt,Gt=_t,Bt=At,Wt=wt,Ge=Mt,ve=Et,m=null,Be=s({},[].concat(A(Re),A(oe),A(se),A(le),A(Ce))),f=null,We=s({},[].concat(A(Ie),A(ue),A(Pe),A(Y))),c=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,ge=null,je=!0,be=!0,Ve=!1,R=!1,N=!1,ye=!1,Te=!1,C=!1,Z=!1,Q=!1,$e=!0,_e=!0,B=!1,I={},P=null,Ye=s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ke=null,qe=s({},["audio","video","img","source","image","track"]),Ae=null,Xe=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ee="http://www.w3.org/1998/Math/MathML",we="http://www.w3.org/2000/svg",k="http://www.w3.org/1999/xhtml",ee=k,Me=!1,H=void 0,jt=["application/xhtml+xml","text/html"],Vt="text/html",L=void 0,F=null,$t=l.createElement("form"),Je=function(e){return e instanceof RegExp||e instanceof Function},De=function(e){if(F&&F===e)return;(!e||(typeof e=="undefined"?"undefined":z(e))!=="object")&&(e={}),e=S(e),m="ALLOWED_TAGS"in e?s({},e.ALLOWED_TAGS):Be,f="ALLOWED_ATTR"in e?s({},e.ALLOWED_ATTR):We,Ae="ADD_URI_SAFE_ATTR"in e?s(S(Xe),e.ADD_URI_SAFE_ATTR):Xe,Ke="ADD_DATA_URI_TAGS"in e?s(S(qe),e.ADD_DATA_URI_TAGS):qe,P="FORBID_CONTENTS"in e?s({},e.FORBID_CONTENTS):Ye,G="FORBID_TAGS"in e?s({},e.FORBID_TAGS):{},ge="FORBID_ATTR"in e?s({},e.FORBID_ATTR):{},I="USE_PROFILES"in e?e.USE_PROFILES:!1,je=e.ALLOW_ARIA_ATTR!==!1,be=e.ALLOW_DATA_ATTR!==!1,Ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,R=e.SAFE_FOR_TEMPLATES||!1,N=e.WHOLE_DOCUMENT||!1,C=e.RETURN_DOM||!1,Z=e.RETURN_DOM_FRAGMENT||!1,Q=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,$e=e.SANITIZE_DOM!==!1,_e=e.KEEP_CONTENT!==!1,B=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||ve,ee=e.NAMESPACE||k,e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(c.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(c.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(c.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H=jt.indexOf(e.PARSER_MEDIA_TYPE)===-1?H=Vt:H=e.PARSER_MEDIA_TYPE,L=H==="application/xhtml+xml"?function(t){return t}:V,R&&(be=!1),Z&&(C=!0),I&&(m=s({},[].concat(A(Ce))),f=[],I.html===!0&&(s(m,Re),s(f,Ie)),I.svg===!0&&(s(m,oe),s(f,ue),s(f,Y)),I.svgFilters===!0&&(s(m,se),s(f,ue),s(f,Y)),I.mathMl===!0&&(s(m,le),s(f,Pe),s(f,Y))),e.ADD_TAGS&&(m===Be&&(m=S(m)),s(m,e.ADD_TAGS)),e.ADD_ATTR&&(f===We&&(f=S(f)),s(f,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&s(Ae,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(P===Ye&&(P=S(P)),s(P,e.FORBID_CONTENTS)),_e&&(m["#text"]=!0),N&&s(m,["html","head","body"]),m.table&&(s(m,["tbody"]),delete G.tbody),g&&g(e),F=e},Ze=s({},["mi","mo","mn","ms","mtext"]),Qe=s({},["foreignobject","desc","title","annotation-xml"]),te=s({},oe);s(te,se),s(te,gt);var Oe=s({},le);s(Oe,bt);var Yt=function(e){var t=me(e);(!t||!t.tagName)&&(t={namespaceURI:k,tagName:"template"});var a=V(e.tagName),u=V(t.tagName);if(e.namespaceURI===we)return t.namespaceURI===k?a==="svg":t.namespaceURI===Ee?a==="svg"&&(u==="annotation-xml"||Ze[u]):Boolean(te[a]);if(e.namespaceURI===Ee)return t.namespaceURI===k?a==="math":t.namespaceURI===we?a==="math"&&Qe[u]:Boolean(Oe[a]);if(e.namespaceURI===k){if(t.namespaceURI===we&&!Qe[u])return!1;if(t.namespaceURI===Ee&&!Ze[u])return!1;var h=s({},["title","style","font","a","script"]);return!Oe[a]&&(h[a]||!te[a])}return!1},w=function(e){U(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Ue}catch(a){e.remove()}}},et=function(e,t){try{U(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(a){U(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!f[e])if(C||Z)try{w(t)}catch(a){}else try{t.setAttribute(e,"")}catch(a){}},tt=function(e){var t=void 0,a=void 0;if(Te)e=""+e;else{var u=xe(e,/^[\r\n\t ]+/);a=u&&u[0]}H==="application/xhtml+xml"&&(e=''+e+"");var h=O?O.createHTML(e):e;if(ee===k)try{t=new xt().parseFromString(h,H)}catch(d){}if(!t||!t.documentElement){t=de.createDocument(ee,"template",null);try{t.documentElement.innerHTML=Me?"":h}catch(d){}}var v=t.body||t.documentElement;return e&&a&&v.insertBefore(l.createTextNode(a),v.childNodes[0]||null),ee===k?Ut.call(t,N?"html":"body")[0]:N?t.documentElement:v},at=function(e){return Ht.call(e.ownerDocument||e,e,ce.SHOW_ELEMENT|ce.SHOW_COMMENT|ce.SHOW_TEXT,null,!1)},Kt=function(e){return e instanceof Lt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Nt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function")},W=function(e){return(typeof x=="undefined"?"undefined":z(x))==="object"?e instanceof x:e&&(typeof e=="undefined"?"undefined":z(e))==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},M=function(e,t,a){if(!E[e])return;dt(E[e],function(u){u.call(r,t,a,F)})},nt=function(e){var t=void 0;if(M("beforeSanitizeElements",e,null),Kt(e))return w(e),!0;if(xe(e.nodeName,/[\u0080-\uFFFF]/))return w(e),!0;var a=L(e.nodeName);if(M("uponSanitizeElement",e,{tagName:a,allowedTags:m}),!W(e.firstElementChild)&&(!W(e.content)||!W(e.content.firstElementChild))&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return w(e),!0;if(a==="select"&&b(/