| Server IP : 185.143.234.238 / Your IP : 185.215.232.195 Web Server : Apache System : Linux 81-12-52-146.cprapid.com 4.18.0-553.76.1.lve.el8.x86_64 #1 SMP Wed Oct 1 16:05:07 UTC 2025 x86_64 User : noavaranesama ( 1039) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/lvemanager-xray/xray-admin/ |
Upload File : |
(self.webpackChunkxray=self.webpackChunkxray||[]).push([[850],{32374(d){(function(){var b,n,h,v,c,g;typeof performance<"u"&&null!==performance&&performance.now?d.exports=function(){return performance.now()}:typeof process<"u"&&null!==process&&process.hrtime?(d.exports=function(){return(b()-c)/1e6},n=process.hrtime,v=(b=function(){var y;return 1e9*(y=n())[0]+y[1]})(),g=1e9*process.uptime(),c=v-g):Date.now?(d.exports=function(){return Date.now()-h},h=Date.now()):(d.exports=function(){return(new Date).getTime()-h},h=(new Date).getTime())}).call(this)},3663(d,b,n){for(var h=n(32374),v=typeof window>"u"?global:window,c=["moz","webkit"],g="AnimationFrame",y=v["request"+g],O=v["cancel"+g]||v["cancelRequest"+g],m=0;!y&&m<c.length;m++)y=v[c[m]+"Request"+g],O=v[c[m]+"Cancel"+g]||v[c[m]+"CancelRequest"+g];if(!y||!O){var S=0,C=0,P=[],R=1e3/60;y=function(A){if(0===P.length){var I=h(),M=Math.max(0,R-(I-S));S=M+I,setTimeout(function(){var D=P.slice(0);P.length=0;for(var F=0;F<D.length;F++)if(!D[F].cancelled)try{D[F].callback(S)}catch(Y){setTimeout(function(){throw Y},0)}},Math.round(M))}return P.push({handle:++C,callback:A,cancelled:!1}),C},O=function(A){for(var I=0;I<P.length;I++)P[I].handle===A&&(P[I].cancelled=!0)}}d.exports=function(A){return y.call(v,A)},d.exports.cancel=function(){O.apply(v,arguments)},d.exports.polyfill=function(A){A||(A=v),A.requestAnimationFrame=y,A.cancelAnimationFrame=O}},77948(d){d.exports=function(b){this.ok=!1,this.alpha=1,"#"==b.charAt(0)&&(b=b.substr(1,6)),b=(b=b.replace(/ /g,"")).toLowerCase();var n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};b=n[b]||b;for(var h=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(m){return[parseInt(m[1]),parseInt(m[2]),parseInt(m[3]),parseFloat(m[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(m){return[parseInt(m[1]),parseInt(m[2]),parseInt(m[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(m){return[parseInt(m[1],16),parseInt(m[2],16),parseInt(m[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(m){return[parseInt(m[1]+m[1],16),parseInt(m[2]+m[2],16),parseInt(m[3]+m[3],16)]}}],v=0;v<h.length;v++){var g=h[v].process,y=h[v].re.exec(b);if(y){var O=g(y);this.r=O[0],this.g=O[1],this.b=O[2],O.length>3&&(this.alpha=O[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 m=this.r.toString(16),S=this.g.toString(16),C=this.b.toString(16);return 1==m.length&&(m="0"+m),1==S.length&&(S="0"+S),1==C.length&&(C="0"+C),"#"+m+S+C},this.getHelpXML=function(){for(var m=new Array,S=0;S<h.length;S++)for(var C=h[S].example,P=0;P<C.length;P++)m[m.length]=C[P];for(var R in n)m[m.length]=R;var A=document.createElement("ul");for(A.setAttribute("id","rgbcolor-examples"),S=0;S<m.length;S++)try{var I=document.createElement("li"),M=new RGBColor(m[S]),D=document.createElement("div");D.style.cssText="margin: 3px; border: 1px solid black; background:"+M.toHex()+"; color:"+M.toHex(),D.appendChild(document.createTextNode("test"));var F=document.createTextNode(" "+m[S]+" -> "+M.toRGB()+" -> "+M.toHex());I.appendChild(D),I.appendChild(F),A.appendChild(I)}catch{}return A}}},65596(d,b,n){"use strict";var h=n(73111),v=n(71197),c=TypeError;d.exports=function(g){if(h(g))return g;throw new c(v(g)+" is not a function")}},4562(d,b,n){"use strict";var h=n(12531),v=n(71197),c=TypeError;d.exports=function(g){if(h(g))return g;throw new c(v(g)+" is not a constructor")}},58872(d,b,n){"use strict";var h=n(86403),v=String,c=TypeError;d.exports=function(g){if(h(g))return g;throw new c("Can't set "+v(g)+" as a prototype")}},38971(d,b,n){"use strict";var h=n(20525),v=n(46614),c=n(47887).f,g=h("unscopables"),y=Array.prototype;void 0===y[g]&&c(y,g,{configurable:!0,value:v(null)}),d.exports=function(O){y[g][O]=!0}},58655(d,b,n){"use strict";var h=n(5517).charAt;d.exports=function(v,c,g){return c+(g&&h(v,c).length||1)}},91481(d,b,n){"use strict";var h=n(97603),v=TypeError;d.exports=function(c,g){if(h(g,c))return c;throw new v("Incorrect invocation")}},53777(d,b,n){"use strict";var h=n(58412),v=String,c=TypeError;d.exports=function(g){if(h(g))return g;throw new c(v(g)+" is not an object")}},92759(d,b,n){"use strict";var h=n(9667),v=n(32308),c=n(31180),g=function(y){return function(O,m,S){var C=h(O),P=c(C);if(0===P)return!y&&-1;var A,R=v(S,P);if(y&&m!=m){for(;P>R;)if((A=C[R++])!=A)return!0}else for(;P>R;R++)if((y||R in C)&&C[R]===m)return y||R||0;return!y&&-1}};d.exports={includes:g(!0),indexOf:g(!1)}},30252(d,b,n){"use strict";var h=n(80589);d.exports=function(v,c){var g=[][v];return!!g&&h(function(){g.call(null,c||function(){return 1},1)})}},89992(d,b,n){"use strict";var h=n(65596),v=n(61231),c=n(89069),g=n(31180),y=TypeError,O="Reduce of empty array with no initial value",m=function(S){return function(C,P,R,A){var I=v(C),M=c(I),D=g(I);if(h(P),0===D&&R<2)throw new y(O);var F=S?D-1:0,Y=S?-1:1;if(R<2)for(;;){if(F in M){A=M[F],F+=Y;break}if(F+=Y,S?F<0:D<=F)throw new y(O)}for(;S?F>=0:D>F;F+=Y)F in M&&(A=P(A,M[F],F,I));return A}};d.exports={left:m(!1),right:m(!0)}},190(d,b,n){"use strict";var h=n(4286);d.exports=h([].slice)},28142(d,b,n){"use strict";var v=n(20525)("iterator"),c=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){c=!0}};y[v]=function(){return this},Array.from(y,function(){throw 2})}catch{}d.exports=function(O,m){try{if(!m&&!c)return!1}catch{return!1}var S=!1;try{var C={};C[v]=function(){return{next:function(){return{done:S=!0}}}},O(C)}catch{}return S}},56922(d,b,n){"use strict";var h=n(4286),v=h({}.toString),c=h("".slice);d.exports=function(g){return c(v(g),8,-1)}},81117(d,b,n){"use strict";var h=n(62718),v=n(73111),c=n(56922),y=n(20525)("toStringTag"),O=Object,m="Arguments"===c(function(){return arguments}());d.exports=h?c:function(C){var P,R,A;return void 0===C?"Undefined":null===C?"Null":"string"==typeof(R=function(C,P){try{return C[P]}catch{}}(P=O(C),y))?R:m?c(P):"Object"===(A=c(P))&&v(P.callee)?"Arguments":A}},71170(d,b,n){"use strict";var h=n(11719),v=n(70941),c=n(61901),g=n(47887);d.exports=function(y,O,m){for(var S=v(O),C=g.f,P=c.f,R=0;R<S.length;R++){var A=S[R];!h(y,A)&&(!m||!h(m,A))&&C(y,A,P(O,A))}}},87470(d,b,n){"use strict";var v=n(20525)("match");d.exports=function(c){var g=/./;try{"/./"[c](g)}catch{try{return g[v]=!1,"/./"[c](g)}catch{}}return!1}},6981(d,b,n){"use strict";var h=n(80589);d.exports=!h(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},36763(d){"use strict";d.exports=function(b,n){return{value:b,done:n}}},75457(d,b,n){"use strict";var h=n(26242),v=n(47887),c=n(26134);d.exports=h?function(g,y,O){return v.f(g,y,c(1,O))}:function(g,y,O){return g[y]=O,g}},26134(d){"use strict";d.exports=function(b,n){return{enumerable:!(1&b),configurable:!(2&b),writable:!(4&b),value:n}}},90228(d,b,n){"use strict";var h=n(10493),v=n(47887);d.exports=function(c,g,y){return y.get&&h(y.get,g,{getter:!0}),y.set&&h(y.set,g,{setter:!0}),v.f(c,g,y)}},31030(d,b,n){"use strict";var h=n(73111),v=n(47887),c=n(10493),g=n(72747);d.exports=function(y,O,m,S){S||(S={});var C=S.enumerable,P=void 0!==S.name?S.name:O;if(h(m)&&c(m,P,S),S.global)C?y[O]=m:g(O,m);else{try{S.unsafe?y[O]&&(C=!0):delete y[O]}catch{}C?y[O]=m:v.f(y,O,{value:m,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return y}},72747(d,b,n){"use strict";var h=n(80910),v=Object.defineProperty;d.exports=function(c,g){try{v(h,c,{value:g,configurable:!0,writable:!0})}catch{h[c]=g}return g}},26242(d,b,n){"use strict";var h=n(80589);d.exports=!h(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},68709(d,b,n){"use strict";var h=n(80910),v=n(58412),c=h.document,g=v(c)&&v(c.createElement);d.exports=function(y){return g?c.createElement(y):{}}},12558(d){"use strict";d.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}},52210(d,b,n){"use strict";var v=n(68709)("span").classList,c=v&&v.constructor&&v.constructor.prototype;d.exports=c===Object.prototype?void 0:c},84113(d){"use strict";d.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},88611(d,b,n){"use strict";var h=n(82425);d.exports=/ipad|iphone|ipod/i.test(h)&&typeof Pebble<"u"},37646(d,b,n){"use strict";var h=n(82425);d.exports=/ipad|iphone|ipod/i.test(h)&&/applewebkit/i.test(h)},27123(d,b,n){"use strict";var h=n(12197);d.exports="NODE"===h},6370(d,b,n){"use strict";var h=n(82425);d.exports=/web0s(?!.*chrome)/i.test(h)},82425(d,b,n){"use strict";var v=n(80910).navigator,c=v&&v.userAgent;d.exports=c?String(c):""},80969(d,b,n){"use strict";var m,S,h=n(80910),v=n(82425),c=h.process,g=h.Deno,y=c&&c.versions||g&&g.version,O=y&&y.v8;O&&(S=(m=O.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!S&&v&&(!(m=v.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=v.match(/Chrome\/(\d+)/))&&(S=+m[1]),d.exports=S},12197(d,b,n){"use strict";var h=n(80910),v=n(82425),c=n(56922),g=function(y){return v.slice(0,y.length)===y};d.exports=g("Bun/")?"BUN":g("Cloudflare-Workers")?"CLOUDFLARE":g("Deno/")?"DENO":g("Node.js/")?"NODE":h.Bun&&"string"==typeof Bun.version?"BUN":h.Deno&&"object"==typeof Deno.version?"DENO":"process"===c(h.process)?"NODE":h.window&&h.document?"BROWSER":"REST"},99224(d,b,n){"use strict";var h=n(80910),v=n(61901).f,c=n(75457),g=n(31030),y=n(72747),O=n(71170),m=n(4726);d.exports=function(S,C){var M,D,F,Y,G,P=S.target,R=S.global,A=S.stat;if(M=R?h:A?h[P]||y(P,{}):h[P]&&h[P].prototype)for(D in C){if(Y=C[D],F=S.dontCallGetSet?(G=v(M,D))&&G.value:M[D],!m(R?D:P+(A?".":"#")+D,S.forced)&&void 0!==F){if(typeof Y==typeof F)continue;O(Y,F)}(S.sham||F&&F.sham)&&c(Y,"sham",!0),g(M,D,Y,S)}}},80589(d){"use strict";d.exports=function(b){try{return!!b()}catch{return!0}}},24578(d,b,n){"use strict";n(75537);var h=n(37099),v=n(31030),c=n(39541),g=n(80589),y=n(20525),O=n(75457),m=y("species"),S=RegExp.prototype;d.exports=function(C,P,R,A){var I=y(C),M=!g(function(){var G={};return G[I]=function(){return 7},7!==""[C](G)}),D=M&&!g(function(){var G=!1,B=/a/;if("split"===C){var z={};z[m]=function(){return B},(B={constructor:z,flags:""})[I]=/./[I]}return B.exec=function(){return G=!0,null},B[I](""),!G});if(!M||!D||R){var F=/./[I],Y=P(I,""[C],function(G,B,z,X,J){var tt=B.exec;return tt===c||tt===S.exec?M&&!J?{done:!0,value:h(F,B,z,X)}:{done:!0,value:h(G,z,B,X)}:{done:!1}});v(String.prototype,C,Y[0]),v(S,I,Y[1])}A&&O(S[I],"sham",!0)}},55927(d,b,n){"use strict";var h=n(84126),v=Function.prototype,c=v.apply,g=v.call;d.exports="object"==typeof Reflect&&Reflect.apply||(h?g.bind(c):function(){return g.apply(c,arguments)})},41870(d,b,n){"use strict";var h=n(69382),v=n(65596),c=n(84126),g=h(h.bind);d.exports=function(y,O){return v(y),void 0===O?y:c?g(y,O):function(){return y.apply(O,arguments)}}},84126(d,b,n){"use strict";var h=n(80589);d.exports=!h(function(){var v=function(){}.bind();return"function"!=typeof v||v.hasOwnProperty("prototype")})},37099(d,b,n){"use strict";var h=n(84126),v=Function.prototype.call;d.exports=h?v.bind(v):function(){return v.apply(v,arguments)}},78740(d,b,n){"use strict";var h=n(26242),v=n(11719),c=Function.prototype,g=h&&Object.getOwnPropertyDescriptor,y=v(c,"name"),O=y&&"something"===function(){}.name,m=y&&(!h||h&&g(c,"name").configurable);d.exports={EXISTS:y,PROPER:O,CONFIGURABLE:m}},86668(d,b,n){"use strict";var h=n(4286),v=n(65596);d.exports=function(c,g,y){try{return h(v(Object.getOwnPropertyDescriptor(c,g)[y]))}catch{}}},69382(d,b,n){"use strict";var h=n(56922),v=n(4286);d.exports=function(c){if("Function"===h(c))return v(c)}},4286(d,b,n){"use strict";var h=n(84126),v=Function.prototype,c=v.call,g=h&&v.bind.bind(c,c);d.exports=h?g:function(y){return function(){return c.apply(y,arguments)}}},93173(d,b,n){"use strict";var h=n(80910),v=n(73111);d.exports=function(g,y){return arguments.length<2?function(g){return v(g)?g:void 0}(h[g]):h[g]&&h[g][y]}},88557(d,b,n){"use strict";var h=n(81117),v=n(36104),c=n(23739),g=n(49467),O=n(20525)("iterator");d.exports=function(m){if(!c(m))return v(m,O)||v(m,"@@iterator")||g[h(m)]}},94243(d,b,n){"use strict";var h=n(37099),v=n(65596),c=n(53777),g=n(71197),y=n(88557),O=TypeError;d.exports=function(m,S){var C=arguments.length<2?y(m):S;if(v(C))return c(h(C,m));throw new O(g(m)+" is not iterable")}},36104(d,b,n){"use strict";var h=n(65596),v=n(23739);d.exports=function(c,g){var y=c[g];return v(y)?void 0:h(y)}},97192(d,b,n){"use strict";var h=n(4286),v=n(61231),c=Math.floor,g=h("".charAt),y=h("".replace),O=h("".slice),m=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,S=/\$([$&'`]|\d{1,2})/g;d.exports=function(C,P,R,A,I,M){var D=R+C.length,F=A.length,Y=S;return void 0!==I&&(I=v(I),Y=m),y(M,Y,function(G,B){var z;switch(g(B,0)){case"$":return"$";case"&":return C;case"`":return O(P,0,R);case"'":return O(P,D);case"<":z=I[O(B,1,-1)];break;default:var X=+B;if(0===X)return G;if(X>F){var J=c(X/10);return 0===J?G:J<=F?void 0===A[J-1]?g(B,1):A[J-1]+g(B,1):G}z=A[X-1]}return void 0===z?"":z})}},80910(d){"use strict";var b=function(n){return n&&n.Math===Math&&n};d.exports=b("object"==typeof globalThis&&globalThis)||b("object"==typeof window&&window)||b("object"==typeof self&&self)||b("object"==typeof global&&global)||b("object"==typeof this&&this)||function(){return this}()||Function("return this")()},11719(d,b,n){"use strict";var h=n(4286),v=n(61231),c=h({}.hasOwnProperty);d.exports=Object.hasOwn||function(y,O){return c(v(y),O)}},7079(d){"use strict";d.exports={}},75631(d){"use strict";d.exports=function(b,n){try{1===arguments.length?console.error(b):console.error(b,n)}catch{}}},99167(d,b,n){"use strict";var h=n(93173);d.exports=h("document","documentElement")},60475(d,b,n){"use strict";var h=n(26242),v=n(80589),c=n(68709);d.exports=!h&&!v(function(){return 7!==Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a})},89069(d,b,n){"use strict";var h=n(4286),v=n(80589),c=n(56922),g=Object,y=h("".split);d.exports=v(function(){return!g("z").propertyIsEnumerable(0)})?function(O){return"String"===c(O)?y(O,""):g(O)}:g},82168(d,b,n){"use strict";var h=n(4286),v=n(73111),c=n(64435),g=h(Function.toString);v(c.inspectSource)||(c.inspectSource=function(y){return g(y)}),d.exports=c.inspectSource},94471(d,b,n){"use strict";var A,I,M,h=n(30232),v=n(80910),c=n(58412),g=n(75457),y=n(11719),O=n(64435),m=n(62013),S=n(7079),C="Object already initialized",P=v.TypeError;if(h||O.state){var Y=O.state||(O.state=new(0,v.WeakMap));Y.get=Y.get,Y.has=Y.has,Y.set=Y.set,A=function(B,z){if(Y.has(B))throw new P(C);return z.facade=B,Y.set(B,z),z},I=function(B){return Y.get(B)||{}},M=function(B){return Y.has(B)}}else{var G=m("state");S[G]=!0,A=function(B,z){if(y(B,G))throw new P(C);return z.facade=B,g(B,G,z),z},I=function(B){return y(B,G)?B[G]:{}},M=function(B){return y(B,G)}}d.exports={set:A,get:I,has:M,enforce:function(B){return M(B)?I(B):A(B,{})},getterFor:function(B){return function(z){var X;if(!c(z)||(X=I(z)).type!==B)throw new P("Incompatible receiver, "+B+" required");return X}}}},47359(d,b,n){"use strict";var h=n(20525),v=n(49467),c=h("iterator"),g=Array.prototype;d.exports=function(y){return void 0!==y&&(v.Array===y||g[c]===y)}},88726(d,b,n){"use strict";var h=n(56922);d.exports=Array.isArray||function(c){return"Array"===h(c)}},73111(d){"use strict";var b="object"==typeof document&&document.all;d.exports=typeof b>"u"&&void 0!==b?function(n){return"function"==typeof n||n===b}:function(n){return"function"==typeof n}},12531(d,b,n){"use strict";var h=n(4286),v=n(80589),c=n(73111),g=n(81117),y=n(93173),O=n(82168),m=function(){},S=y("Reflect","construct"),C=/^\s*(?:class|function)\b/,P=h(C.exec),R=!C.test(m),A=function(D){if(!c(D))return!1;try{return S(m,[],D),!0}catch{return!1}},I=function(D){if(!c(D))return!1;switch(g(D)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return R||!!P(C,O(D))}catch{return!0}};I.sham=!0,d.exports=!S||v(function(){var M;return A(A.call)||!A(Object)||!A(function(){M=!0})||M})?I:A},4726(d,b,n){"use strict";var h=n(80589),v=n(73111),c=/#|\.prototype\./,g=function(C,P){var R=O[y(C)];return R===S||R!==m&&(v(P)?h(P):!!P)},y=g.normalize=function(C){return String(C).replace(c,".").toLowerCase()},O=g.data={},m=g.NATIVE="N",S=g.POLYFILL="P";d.exports=g},23739(d){"use strict";d.exports=function(b){return null==b}},58412(d,b,n){"use strict";var h=n(73111);d.exports=function(v){return"object"==typeof v?null!==v:h(v)}},86403(d,b,n){"use strict";var h=n(58412);d.exports=function(v){return h(v)||null===v}},3745(d){"use strict";d.exports=!1},16870(d,b,n){"use strict";var h=n(58412),v=n(56922),g=n(20525)("match");d.exports=function(y){var O;return h(y)&&(void 0!==(O=y[g])?!!O:"RegExp"===v(y))}},47027(d,b,n){"use strict";var h=n(93173),v=n(73111),c=n(97603),g=n(33602),y=Object;d.exports=g?function(O){return"symbol"==typeof O}:function(O){var m=h("Symbol");return v(m)&&c(m.prototype,y(O))}},70518(d,b,n){"use strict";var h=n(41870),v=n(37099),c=n(53777),g=n(71197),y=n(47359),O=n(31180),m=n(97603),S=n(94243),C=n(88557),P=n(30205),R=TypeError,A=function(M,D){this.stopped=M,this.result=D},I=A.prototype;d.exports=function(M,D,F){var tt,et,k,rt,st,vt,pt,G=!(!F||!F.AS_ENTRIES),B=!(!F||!F.IS_RECORD),z=!(!F||!F.IS_ITERATOR),X=!(!F||!F.INTERRUPTED),J=h(D,F&&F.that),Z=function(gt){var lt=tt;return tt=void 0,lt&&P(lt,"normal"),new A(!0,gt)},Q=function(gt){return G?(c(gt),X?J(gt[0],gt[1],Z):J(gt[0],gt[1])):X?J(gt,Z):J(gt)};if(B)tt=M.iterator;else if(z)tt=M;else{if(!(et=C(M)))throw new R(g(M)+" is not iterable");if(y(et)){for(k=0,rt=O(M);rt>k;k++)if((st=Q(M[k]))&&m(I,st))return st;return new A(!1)}tt=S(M,et)}for(vt=B?M.next:tt.next;!(pt=v(vt,tt)).done;){var ct=pt.value;try{st=Q(ct)}catch(gt){if(!tt)throw gt;P(tt,"throw",gt)}if("object"==typeof st&&st&&m(I,st))return st}return new A(!1)}},30205(d,b,n){"use strict";var h=n(37099),v=n(53777),c=n(36104);d.exports=function(g,y,O){var m,S;v(g);try{if(!(m=c(g,"return"))){if("throw"===y)throw O;return O}m=h(m,g)}catch(C){S=!0,m=C}if("throw"===y)throw O;if(S)throw m;return v(m),O}},31292(d,b,n){"use strict";var h=n(76831).IteratorPrototype,v=n(46614),c=n(26134),g=n(6217),y=n(49467),O=function(){return this};d.exports=function(m,S,C,P){var R=S+" Iterator";return m.prototype=v(h,{next:c(+!P,C)}),g(m,R,!1,!0),y[R]=O,m}},64546(d,b,n){"use strict";var h=n(99224),v=n(37099),c=n(3745),g=n(78740),y=n(73111),O=n(31292),m=n(69921),S=n(71021),C=n(6217),P=n(75457),R=n(31030),A=n(20525),I=n(49467),M=n(76831),D=g.PROPER,F=g.CONFIGURABLE,Y=M.IteratorPrototype,G=M.BUGGY_SAFARI_ITERATORS,B=A("iterator"),z="keys",X="values",J="entries",tt=function(){return this};d.exports=function(et,k,rt,st,vt,pt,Z){O(rt,k,st);var Pt,ut,Rt,Q=function(w){if(w===vt&&ot)return ot;if(!G&&w&&w in lt)return lt[w];switch(w){case z:case X:case J:return function(){return new rt(this,w)}}return function(){return new rt(this)}},ct=k+" Iterator",gt=!1,lt=et.prototype,ft=lt[B]||lt["@@iterator"]||vt&<[vt],ot=!G&&ft||Q(vt),Tt="Array"===k&<.entries||ft;if(Tt&&(Pt=m(Tt.call(new et)))!==Object.prototype&&Pt.next&&(!c&&m(Pt)!==Y&&(S?S(Pt,Y):y(Pt[B])||R(Pt,B,tt)),C(Pt,ct,!0,!0),c&&(I[ct]=tt)),D&&vt===X&&ft&&ft.name!==X&&(!c&&F?P(lt,"name",X):(gt=!0,ot=function(){return v(ft,this)})),vt)if(ut={values:Q(X),keys:pt?ot:Q(z),entries:Q(J)},Z)for(Rt in ut)(G||gt||!(Rt in lt))&&R(lt,Rt,ut[Rt]);else h({target:k,proto:!0,forced:G||gt},ut);return(!c||Z)&<[B]!==ot&&R(lt,B,ot,{name:vt}),I[k]=ot,ut}},76831(d,b,n){"use strict";var R,A,I,h=n(80589),v=n(73111),c=n(58412),g=n(46614),y=n(69921),O=n(31030),m=n(20525),S=n(3745),C=m("iterator"),P=!1;[].keys&&("next"in(I=[].keys())?(A=y(y(I)))!==Object.prototype&&(R=A):P=!0),!c(R)||h(function(){var D={};return R[C].call(D)!==D})?R={}:S&&(R=g(R)),v(R[C])||O(R,C,function(){return this}),d.exports={IteratorPrototype:R,BUGGY_SAFARI_ITERATORS:P}},49467(d){"use strict";d.exports={}},31180(d,b,n){"use strict";var h=n(19864);d.exports=function(v){return h(v.length)}},10493(d,b,n){"use strict";var h=n(4286),v=n(80589),c=n(73111),g=n(11719),y=n(26242),O=n(78740).CONFIGURABLE,m=n(82168),S=n(94471),C=S.enforce,P=S.get,R=String,A=Object.defineProperty,I=h("".slice),M=h("".replace),D=h([].join),F=y&&!v(function(){return 8!==A(function(){},"length",{value:8}).length}),Y=String(String).split("String"),G=d.exports=function(B,z,X){"Symbol("===I(R(z),0,7)&&(z="["+M(R(z),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),X&&X.getter&&(z="get "+z),X&&X.setter&&(z="set "+z),(!g(B,"name")||O&&B.name!==z)&&(y?A(B,"name",{value:z,configurable:!0}):B.name=z),F&&X&&g(X,"arity")&&B.length!==X.arity&&A(B,"length",{value:X.arity});try{X&&g(X,"constructor")&&X.constructor?y&&A(B,"prototype",{writable:!1}):B.prototype&&(B.prototype=void 0)}catch{}var J=C(B);return g(J,"source")||(J.source=D(Y,"string"==typeof z?z:"")),B};Function.prototype.toString=G(function(){return c(this)&&P(this).source||m(this)},"toString")},14131(d){"use strict";var b=Math.ceil,n=Math.floor;d.exports=Math.trunc||function(v){var c=+v;return(c>0?n:b)(c)}},80661(d,b,n){"use strict";var D,F,Y,G,B,h=n(80910),v=n(42975),c=n(41870),g=n(98835).set,y=n(17959),O=n(37646),m=n(88611),S=n(6370),C=n(27123),P=h.MutationObserver||h.WebKitMutationObserver,R=h.document,A=h.process,I=h.Promise,M=v("queueMicrotask");if(!M){var z=new y,X=function(){var J,tt;for(C&&(J=A.domain)&&J.exit();tt=z.get();)try{tt()}catch(et){throw z.head&&D(),et}J&&J.enter()};O||C||S||!P||!R?!m&&I&&I.resolve?((G=I.resolve(void 0)).constructor=I,B=c(G.then,G),D=function(){B(X)}):C?D=function(){A.nextTick(X)}:(g=c(g,h),D=function(){g(X)}):(F=!0,Y=R.createTextNode(""),new P(X).observe(Y,{characterData:!0}),D=function(){Y.data=F=!F}),M=function(J){z.head||D(),z.add(J)}}d.exports=M},4097(d,b,n){"use strict";var h=n(65596),v=TypeError,c=function(g){var y,O;this.promise=new g(function(m,S){if(void 0!==y||void 0!==O)throw new v("Bad Promise constructor");y=m,O=S}),this.resolve=h(y),this.reject=h(O)};d.exports.f=function(g){return new c(g)}},27257(d,b,n){"use strict";var h=n(16870),v=TypeError;d.exports=function(c){if(h(c))throw new v("The method doesn't accept regular expressions");return c}},46614(d,b,n){"use strict";var Y,h=n(53777),v=n(99427),c=n(84113),g=n(7079),y=n(99167),O=n(68709),m=n(62013),P="prototype",R="script",A=m("IE_PROTO"),I=function(){},M=function(B){return"<"+R+">"+B+"</"+R+">"},D=function(B){B.write(M("")),B.close();var z=B.parentWindow.Object;return B=null,z},G=function(){try{Y=new ActiveXObject("htmlfile")}catch{}G=typeof document<"u"?document.domain&&Y?D(Y):function(){var X,B=O("iframe"),z="java"+R+":";return B.style.display="none",y.appendChild(B),B.src=String(z),(X=B.contentWindow.document).open(),X.write(M("document.F=Object")),X.close(),X.F}():D(Y);for(var B=c.length;B--;)delete G[P][c[B]];return G()};g[A]=!0,d.exports=Object.create||function(z,X){var J;return null!==z?(I[P]=h(z),J=new I,I[P]=null,J[A]=z):J=G(),void 0===X?J:v.f(J,X)}},99427(d,b,n){"use strict";var h=n(26242),v=n(60444),c=n(47887),g=n(53777),y=n(9667),O=n(66950);b.f=h&&!v?Object.defineProperties:function(S,C){g(S);for(var M,P=y(C),R=O(C),A=R.length,I=0;A>I;)c.f(S,M=R[I++],P[M]);return S}},47887(d,b,n){"use strict";var h=n(26242),v=n(60475),c=n(60444),g=n(53777),y=n(48619),O=TypeError,m=Object.defineProperty,S=Object.getOwnPropertyDescriptor,C="enumerable",P="configurable",R="writable";b.f=h?c?function(I,M,D){if(g(I),M=y(M),g(D),"function"==typeof I&&"prototype"===M&&"value"in D&&R in D&&!D[R]){var F=S(I,M);F&&F[R]&&(I[M]=D.value,D={configurable:P in D?D[P]:F[P],enumerable:C in D?D[C]:F[C],writable:!1})}return m(I,M,D)}:m:function(I,M,D){if(g(I),M=y(M),g(D),v)try{return m(I,M,D)}catch{}if("get"in D||"set"in D)throw new O("Accessors not supported");return"value"in D&&(I[M]=D.value),I}},61901(d,b,n){"use strict";var h=n(26242),v=n(37099),c=n(85183),g=n(26134),y=n(9667),O=n(48619),m=n(11719),S=n(60475),C=Object.getOwnPropertyDescriptor;b.f=h?C:function(R,A){if(R=y(R),A=O(A),S)try{return C(R,A)}catch{}if(m(R,A))return g(!v(c.f,R,A),R[A])}},86274(d,b,n){"use strict";var h=n(4410),c=n(84113).concat("length","prototype");b.f=Object.getOwnPropertyNames||function(y){return h(y,c)}},71575(d,b){"use strict";b.f=Object.getOwnPropertySymbols},69921(d,b,n){"use strict";var h=n(11719),v=n(73111),c=n(61231),g=n(62013),y=n(6981),O=g("IE_PROTO"),m=Object,S=m.prototype;d.exports=y?m.getPrototypeOf:function(C){var P=c(C);if(h(P,O))return P[O];var R=P.constructor;return v(R)&&P instanceof R?R.prototype:P instanceof m?S:null}},97603(d,b,n){"use strict";var h=n(4286);d.exports=h({}.isPrototypeOf)},4410(d,b,n){"use strict";var h=n(4286),v=n(11719),c=n(9667),g=n(92759).indexOf,y=n(7079),O=h([].push);d.exports=function(m,S){var A,C=c(m),P=0,R=[];for(A in C)!v(y,A)&&v(C,A)&&O(R,A);for(;S.length>P;)v(C,A=S[P++])&&(~g(R,A)||O(R,A));return R}},66950(d,b,n){"use strict";var h=n(4410),v=n(84113);d.exports=Object.keys||function(g){return h(g,v)}},85183(d,b){"use strict";var n={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,v=h&&!n.call({1:2},1);b.f=v?function(g){var y=h(this,g);return!!y&&y.enumerable}:n},71021(d,b,n){"use strict";var h=n(86668),v=n(58412),c=n(50815),g=n(58872);d.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m,y=!1,O={};try{(m=h(Object.prototype,"__proto__","set"))(O,[]),y=O instanceof Array}catch{}return function(C,P){return c(C),g(P),v(C)&&(y?m(C,P):C.__proto__=P),C}}():void 0)},55304(d,b,n){"use strict";var h=n(37099),v=n(73111),c=n(58412),g=TypeError;d.exports=function(y,O){var m,S;if("string"===O&&v(m=y.toString)&&!c(S=h(m,y))||v(m=y.valueOf)&&!c(S=h(m,y))||"string"!==O&&v(m=y.toString)&&!c(S=h(m,y)))return S;throw new g("Can't convert object to primitive value")}},70941(d,b,n){"use strict";var h=n(93173),v=n(4286),c=n(86274),g=n(71575),y=n(53777),O=v([].concat);d.exports=h("Reflect","ownKeys")||function(S){var C=c.f(y(S)),P=g.f;return P?O(C,P(S)):C}},40977(d,b,n){"use strict";var h=n(80910);d.exports=h},88485(d){"use strict";d.exports=function(b){try{return{error:!1,value:b()}}catch(n){return{error:!0,value:n}}}},43810(d,b,n){"use strict";var h=n(80910),v=n(99092),c=n(73111),g=n(4726),y=n(82168),O=n(20525),m=n(12197),S=n(3745),C=n(80969),P=v&&v.prototype,R=O("species"),A=!1,I=c(h.PromiseRejectionEvent),M=g("Promise",function(){var D=y(v),F=D!==String(v);if(!F&&66===C||S&&(!P.catch||!P.finally))return!0;if(!C||C<51||!/native code/.test(D)){var Y=new v(function(z){z(1)}),G=function(z){z(function(){},function(){})};if((Y.constructor={})[R]=G,!(A=Y.then(function(){})instanceof G))return!0}return!(F||"BROWSER"!==m&&"DENO"!==m||I)});d.exports={CONSTRUCTOR:M,REJECTION_EVENT:I,SUBCLASSING:A}},99092(d,b,n){"use strict";var h=n(80910);d.exports=h.Promise},73080(d,b,n){"use strict";var h=n(53777),v=n(58412),c=n(4097);d.exports=function(g,y){if(h(g),v(y)&&y.constructor===g)return y;var O=c.f(g);return(0,O.resolve)(y),O.promise}},36795(d,b,n){"use strict";var h=n(99092),v=n(28142),c=n(43810).CONSTRUCTOR;d.exports=c||!v(function(g){h.all(g).then(void 0,function(){})})},17959(d){"use strict";var b=function(){this.head=null,this.tail=null};b.prototype={add:function(n){var h={item:n,next:null},v=this.tail;v?v.next=h:this.head=h,this.tail=h},get:function(){var n=this.head;if(n)return null===(this.head=n.next)&&(this.tail=null),n.item}},d.exports=b},57536(d,b,n){"use strict";var h=n(37099),v=n(53777),c=n(73111),g=n(56922),y=n(39541),O=TypeError;d.exports=function(m,S){var C=m.exec;if(c(C)){var P=h(C,m,S);return null!==P&&v(P),P}if("RegExp"===g(m))return h(y,m,S);throw new O("RegExp#exec called on incompatible receiver")}},39541(d,b,n){"use strict";var tt,et,h=n(37099),v=n(4286),c=n(69657),g=n(9457),y=n(38791),O=n(55939),m=n(46614),S=n(94471).get,C=n(6121),P=n(46972),R=O("native-string-replace",String.prototype.replace),A=RegExp.prototype.exec,I=A,M=v("".charAt),D=v("".indexOf),F=v("".replace),Y=v("".slice),G=(et=/b*/g,h(A,tt=/a/,"a"),h(A,et,"a"),0!==tt.lastIndex||0!==et.lastIndex),B=y.BROKEN_CARET,z=void 0!==/()??/.exec("")[1],J=function(tt,et){for(var k=tt.groups=m(null),rt=0;rt<et.length;rt++){var st=et[rt];k[st[0]]=tt[st[1]]}};(G||z||B||C||P)&&(I=function(et){var pt,Z,Q,k=this,rt=S(k),st=c(et),vt=rt.raw;if(vt)return vt.lastIndex=k.lastIndex,pt=h(I,vt,st),k.lastIndex=vt.lastIndex,pt&&rt.groups&&J(pt,rt.groups),pt;var ct=rt.groups,gt=B&&k.sticky,lt=h(g,k),ft=k.source,ot=0,Tt=st;if(gt){lt=F(lt,"y",""),-1===D(lt,"g")&&(lt+="g"),Tt=Y(st,k.lastIndex);var Pt=k.lastIndex>0&&M(st,k.lastIndex-1);k.lastIndex>0&&(!k.multiline||k.multiline&&"\n"!==Pt&&"\r"!==Pt&&"\u2028"!==Pt&&"\u2029"!==Pt)&&(ft="(?: (?:"+ft+"))",Tt=" "+Tt,ot++),Z=new RegExp("^(?:"+ft+")",lt)}z&&(Z=new RegExp("^"+ft+"$(?!\\s)",lt)),G&&(Q=k.lastIndex);var ut=h(A,gt?Z:k,Tt);return gt?ut?(ut.input=st,ut[0]=Y(ut[0],ot),ut.index=k.lastIndex,k.lastIndex+=ut[0].length):k.lastIndex=0:G&&ut&&(k.lastIndex=k.global?ut.index+ut[0].length:Q),z&&ut&&ut.length>1&&h(R,ut[0],Z,function(){for(var Rt=1;Rt<arguments.length-2;Rt++)void 0===arguments[Rt]&&(ut[Rt]=void 0)}),ut&&ct&&J(ut,ct),ut}),d.exports=I},7287(d,b,n){"use strict";var h=n(80910),v=n(80589),c=h.RegExp,g=!v(function(){var y=!0;try{c(".","d")}catch{y=!1}var O={},m="",S=y?"dgimsy":"gimsy",C=function(I,M){Object.defineProperty(O,I,{get:function(){return m+=M,!0}})},P={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var R in y&&(P.hasIndices="d"),P)C(R,P[R]);return Object.getOwnPropertyDescriptor(c.prototype,"flags").get.call(O)!==S||m!==S});d.exports={correct:g}},9457(d,b,n){"use strict";var h=n(53777);d.exports=function(){var v=h(this),c="";return v.hasIndices&&(c+="d"),v.global&&(c+="g"),v.ignoreCase&&(c+="i"),v.multiline&&(c+="m"),v.dotAll&&(c+="s"),v.unicode&&(c+="u"),v.unicodeSets&&(c+="v"),v.sticky&&(c+="y"),c}},17292(d,b,n){"use strict";var h=n(37099),v=n(11719),c=n(97603),g=n(7287),y=n(9457),O=RegExp.prototype;d.exports=g.correct?function(m){return m.flags}:function(m){return g.correct||!c(O,m)||v(m,"flags")?m.flags:h(y,m)}},38791(d,b,n){"use strict";var h=n(80589),c=n(80910).RegExp,g=h(function(){var m=c("a","y");return m.lastIndex=2,null!==m.exec("abcd")}),y=g||h(function(){return!c("a","y").sticky}),O=g||h(function(){var m=c("^r","gy");return m.lastIndex=2,null!==m.exec("str")});d.exports={BROKEN_CARET:O,MISSED_STICKY:y,UNSUPPORTED_Y:g}},6121(d,b,n){"use strict";var h=n(80589),c=n(80910).RegExp;d.exports=h(function(){var g=c(".","s");return!(g.dotAll&&g.test("\n")&&"s"===g.flags)})},46972(d,b,n){"use strict";var h=n(80589),c=n(80910).RegExp;d.exports=h(function(){var g=c("(?<a>b)","g");return"b"!==g.exec("b").groups.a||"bc"!=="b".replace(g,"$<a>c")})},50815(d,b,n){"use strict";var h=n(23739),v=TypeError;d.exports=function(c){if(h(c))throw new v("Can't call method on "+c);return c}},42975(d,b,n){"use strict";var h=n(80910),v=n(26242),c=Object.getOwnPropertyDescriptor;d.exports=function(g){if(!v)return h[g];var y=c(h,g);return y&&y.value}},91855(d,b,n){"use strict";var h=n(93173),v=n(90228),c=n(20525),g=n(26242),y=c("species");d.exports=function(O){var m=h(O);g&&m&&!m[y]&&v(m,y,{configurable:!0,get:function(){return this}})}},6217(d,b,n){"use strict";var h=n(47887).f,v=n(11719),g=n(20525)("toStringTag");d.exports=function(y,O,m){y&&!m&&(y=y.prototype),y&&!v(y,g)&&h(y,g,{configurable:!0,value:O})}},62013(d,b,n){"use strict";var h=n(55939),v=n(65678),c=h("keys");d.exports=function(g){return c[g]||(c[g]=v(g))}},64435(d,b,n){"use strict";var h=n(3745),v=n(80910),c=n(72747),g="__core-js_shared__",y=d.exports=v[g]||c(g,{});(y.versions||(y.versions=[])).push({version:"3.49.0",mode:h?"pure":"global",copyright:"\xa9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},55939(d,b,n){"use strict";var h=n(64435);d.exports=function(v,c){return h[v]||(h[v]=c||{})}},76911(d,b,n){"use strict";var h=n(53777),v=n(4562),c=n(23739),y=n(20525)("species");d.exports=function(O,m){var C,S=h(O).constructor;return void 0===S||c(C=h(S)[y])?m:v(C)}},5517(d,b,n){"use strict";var h=n(4286),v=n(86769),c=n(69657),g=n(50815),y=h("".charAt),O=h("".charCodeAt),m=h("".slice),S=function(C){return function(P,R){var D,F,A=c(g(P)),I=v(R),M=A.length;return I<0||I>=M?C?"":void 0:(D=O(A,I))<55296||D>56319||I+1===M||(F=O(A,I+1))<56320||F>57343?C?y(A,I):D:C?m(A,I,I+2):F-56320+(D-55296<<10)+65536}};d.exports={codeAt:S(!1),charAt:S(!0)}},8312(d,b,n){"use strict";var h=n(78740).PROPER,v=n(80589),c=n(18274);d.exports=function(y){return v(function(){return!!c[y]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[y]()||h&&c[y].name!==y})}},77732(d,b,n){"use strict";var h=n(4286),v=n(50815),c=n(69657),g=n(18274),y=h("".replace),O=RegExp("^["+g+"]+"),m=RegExp("(^|[^"+g+"])["+g+"]+$"),S=function(C){return function(P){var R=c(v(P));return 1&C&&(R=y(R,O,"")),2&C&&(R=y(R,m,"$1")),R}};d.exports={start:S(1),end:S(2),trim:S(3)}},32649(d,b,n){"use strict";var h=n(80969),v=n(80589),g=n(80910).String;d.exports=!!Object.getOwnPropertySymbols&&!v(function(){var y=Symbol("symbol detection");return!g(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&h&&h<41})},98835(d,b,n){"use strict";var tt,et,k,rt,h=n(80910),v=n(55927),c=n(41870),g=n(73111),y=n(11719),O=n(80589),m=n(99167),S=n(190),C=n(68709),P=n(64182),R=n(37646),A=n(27123),I=h.setImmediate,M=h.clearImmediate,D=h.process,F=h.Dispatch,Y=h.Function,G=h.MessageChannel,B=h.String,z=0,X={},J="onreadystatechange";O(function(){tt=h.location});var st=function(Q){if(y(X,Q)){var ct=X[Q];delete X[Q],ct()}},vt=function(Q){return function(){st(Q)}},pt=function(Q){st(Q.data)},Z=function(Q){h.postMessage(B(Q),tt.protocol+"//"+tt.host)};(!I||!M)&&(I=function(ct){P(arguments.length,1);var gt=g(ct)?ct:Y(ct),lt=S(arguments,1);return X[++z]=function(){v(gt,void 0,lt)},et(z),z},M=function(ct){delete X[ct]},A?et=function(Q){D.nextTick(vt(Q))}:F&&F.now?et=function(Q){F.now(vt(Q))}:G&&!R?(rt=(k=new G).port2,k.port1.onmessage=pt,et=c(rt.postMessage,rt)):h.addEventListener&&g(h.postMessage)&&!h.importScripts&&tt&&"file:"!==tt.protocol&&!O(Z)?(et=Z,h.addEventListener("message",pt,!1)):et=J in C("script")?function(Q){m.appendChild(C("script"))[J]=function(){m.removeChild(this),st(Q)}}:function(Q){setTimeout(vt(Q),0)}),d.exports={set:I,clear:M}},32308(d,b,n){"use strict";var h=n(86769),v=Math.max,c=Math.min;d.exports=function(g,y){var O=h(g);return O<0?v(O+y,0):c(O,y)}},9667(d,b,n){"use strict";var h=n(89069),v=n(50815);d.exports=function(c){return h(v(c))}},86769(d,b,n){"use strict";var h=n(14131);d.exports=function(v){var c=+v;return c!=c||0===c?0:h(c)}},19864(d,b,n){"use strict";var h=n(86769),v=Math.min;d.exports=function(c){var g=h(c);return g>0?v(g,9007199254740991):0}},61231(d,b,n){"use strict";var h=n(50815),v=Object;d.exports=function(c){return v(h(c))}},50055(d,b,n){"use strict";var h=n(37099),v=n(58412),c=n(47027),g=n(36104),y=n(55304),O=n(20525),m=TypeError,S=O("toPrimitive");d.exports=function(C,P){if(!v(C)||c(C))return C;var A,R=g(C,S);if(R){if(void 0===P&&(P="default"),A=h(R,C,P),!v(A)||c(A))return A;throw new m("Can't convert object to primitive value")}return void 0===P&&(P="number"),y(C,P)}},48619(d,b,n){"use strict";var h=n(50055),v=n(47027);d.exports=function(c){var g=h(c,"string");return v(g)?g:g+""}},62718(d,b,n){"use strict";var c={};c[n(20525)("toStringTag")]="z",d.exports="[object z]"===String(c)},69657(d,b,n){"use strict";var h=n(81117),v=String;d.exports=function(c){if("Symbol"===h(c))throw new TypeError("Cannot convert a Symbol value to a string");return v(c)}},71197(d){"use strict";var b=String;d.exports=function(n){try{return b(n)}catch{return"Object"}}},65678(d,b,n){"use strict";var h=n(4286),v=0,c=Math.random(),g=h(1.1.toString);d.exports=function(y){return"Symbol("+(void 0===y?"":y)+")_"+g(++v+c,36)}},33602(d,b,n){"use strict";var h=n(32649);d.exports=h&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},60444(d,b,n){"use strict";var h=n(26242),v=n(80589);d.exports=h&&v(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},64182(d){"use strict";var b=TypeError;d.exports=function(n,h){if(n<h)throw new b("Not enough arguments");return n}},30232(d,b,n){"use strict";var h=n(80910),v=n(73111),c=h.WeakMap;d.exports=v(c)&&/native code/.test(String(c))},20525(d,b,n){"use strict";var h=n(80910),v=n(55939),c=n(11719),g=n(65678),y=n(32649),O=n(33602),m=h.Symbol,S=v("wks"),C=O?m.for||m:m&&m.withoutSetter||g;d.exports=function(P){return c(S,P)||(S[P]=y&&c(m,P)?m[P]:C("Symbol."+P)),S[P]}},18274(d){"use strict";d.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},88850(d,b,n){"use strict";var h=n(99224),v=n(69382),c=n(92759).indexOf,g=n(30252),y=v([].indexOf),O=!!y&&1/y([1],1,-0)<0;h({target:"Array",proto:!0,forced:O||!g("indexOf")},{indexOf:function(C){var P=arguments.length>1?arguments[1]:void 0;return O?y(this,C,P)||0:c(this,C,P)}})},4662(d,b,n){"use strict";var h=n(9667),v=n(38971),c=n(49467),g=n(94471),y=n(47887).f,O=n(64546),m=n(36763),S=n(3745),C=n(26242),P="Array Iterator",R=g.set,A=g.getterFor(P);d.exports=O(Array,"Array",function(M,D){R(this,{type:P,target:h(M),index:0,kind:D})},function(){var M=A(this),D=M.target,F=M.index++;if(!D||F>=D.length)return M.target=null,m(void 0,!0);switch(M.kind){case"keys":return m(F,!1);case"values":return m(D[F],!1)}return m([F,D[F]],!1)},"values");var I=c.Arguments=c.Array;if(v("keys"),v("values"),v("entries"),!S&&C&&"values"!==I.name)try{y(I,"name",{value:"values"})}catch{}},72970(d,b,n){"use strict";var h=n(99224),v=n(89992).left,c=n(30252),g=n(80969);h({target:"Array",proto:!0,forced:!n(27123)&&g>79&&g<83||!c("reduce")},{reduce:function(C){var P=arguments.length;return v(this,C,P,P>1?arguments[1]:void 0)}})},52088(d,b,n){"use strict";var h=n(99224),v=n(4286),c=n(88726),g=v([].reverse),y=[1,2];h({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return c(this)&&(this.length=this.length),g(this)}})},56941(d,b,n){"use strict";var h=n(99224),v=n(37099),c=n(65596),g=n(4097),y=n(88485),O=n(70518);h({target:"Promise",stat:!0,forced:n(36795)},{all:function(C){var P=this,R=g.f(P),A=R.resolve,I=R.reject,M=y(function(){var D=c(P.resolve),F=[],Y=0,G=1;O(C,function(B){var z=Y++,X=!1;G++,v(D,P,B).then(function(J){X||(X=!0,F[z]=J,--G||A(F))},I)}),--G||A(F)});return M.error&&I(M.value),R.promise}})},17125(d,b,n){"use strict";var h=n(99224),v=n(3745),c=n(43810).CONSTRUCTOR,g=n(99092),y=n(93173),O=n(73111),m=n(31030),S=g&&g.prototype;if(h({target:"Promise",proto:!0,forced:c,real:!0},{catch:function(P){return this.then(void 0,P)}}),!v&&O(g)){var C=y("Promise").prototype.catch;S.catch!==C&&m(S,"catch",C,{unsafe:!0})}},32694(d,b,n){"use strict";var Kt,Te,ne,qt,h=n(99224),v=n(3745),c=n(27123),g=n(80910),y=n(40977),O=n(37099),m=n(31030),S=n(71021),C=n(6217),P=n(91855),R=n(65596),A=n(73111),I=n(58412),M=n(91481),D=n(76911),F=n(98835).set,Y=n(80661),G=n(75631),B=n(88485),z=n(17959),X=n(94471),J=n(99092),tt=n(43810),et=n(4097),k="Promise",rt=tt.CONSTRUCTOR,st=tt.REJECTION_EVENT,vt=tt.SUBCLASSING,pt=X.getterFor(k),Z=X.set,Q=J&&J.prototype,ct=J,gt=Q,lt=g.TypeError,ft=g.document,ot=g.process,Tt=et.f,Pt=Tt,ut=!!(ft&&ft.createEvent&&g.dispatchEvent),Rt="unhandledrejection",ue=function(H){var it;return!(!I(H)||!A(it=H.then))&&it},le=function(H,it){var ce,$e,He,mt=it.value,yt=1===it.state,At=yt?H.ok:H.fail,fe=H.resolve,Ve=H.reject,ve=H.domain;try{At?(yt||(2===it.rejection&&ar(it),it.rejection=1),!0===At?ce=mt:(ve&&ve.enter(),ce=At(mt),ve&&(ve.exit(),He=!0)),ce===H.promise?Ve(new lt("Promise-chain cycle")):($e=ue(ce))?O($e,ce,fe,Ve):fe(ce)):Ve(mt)}catch(ir){ve&&!He&&ve.exit(),Ve(ir)}},he=function(H,it){H.notified||(H.notified=!0,Y(function(){for(var yt,mt=H.reactions;yt=mt.get();)le(yt,H);H.notified=!1,it&&!H.rejection&&Me(H)}))},_t=function(H,it,mt){var yt,At;ut?((yt=ft.createEvent("Event")).promise=it,yt.reason=mt,yt.initEvent(H,!1,!0),g.dispatchEvent(yt)):yt={promise:it,reason:mt},!st&&(At=g["on"+H])?At(yt):H===Rt&&G("Unhandled promise rejection",mt)},Me=function(H){O(F,g,function(){var At,it=H.facade,mt=H.value;if(ze(H)&&(At=B(function(){c?ot.emit("unhandledRejection",mt,it):_t(Rt,it,mt)}),H.rejection=c||ze(H)?2:1,At.error))throw At.value})},ze=function(H){return 1!==H.rejection&&!H.parent},ar=function(H){O(F,g,function(){var it=H.facade;c?ot.emit("rejectionHandled",it):_t("rejectionhandled",it,H.value)})},$t=function(H,it,mt){return function(yt){H(it,yt,mt)}},ae=function(H,it,mt){H.done||(H.done=!0,mt&&(H=mt),H.value=it,H.state=2,he(H,!0))},we=function(H,it,mt){if(!H.done){H.done=!0,mt&&(H=mt);try{if(H.facade===it)throw new lt("Promise can't be resolved itself");var yt=ue(it);yt?Y(function(){var At={done:!1};try{O(yt,it,$t(we,At,H),$t(ae,At,H))}catch(fe){ae(At,fe,H)}}):(H.value=it,H.state=1,he(H,!1))}catch(At){ae({done:!1},At,H)}}};if(rt&&(ct=function(it){M(this,gt),R(it),O(Kt,this);var mt=pt(this);try{it($t(we,mt),$t(ae,mt))}catch(yt){ae(mt,yt)}},(Kt=function(it){Z(this,{type:k,done:!1,notified:!1,parent:!1,reactions:new z,rejection:!1,state:0,value:null})}).prototype=m(gt=ct.prototype,"then",function(it,mt){var yt=pt(this),At=Tt(D(this,ct));return yt.parent=!0,At.ok=!A(it)||it,At.fail=A(mt)&&mt,At.domain=c?ot.domain:void 0,0===yt.state?yt.reactions.add(At):Y(function(){le(At,yt)}),At.promise}),Te=function(){var H=new Kt,it=pt(H);this.promise=H,this.resolve=$t(we,it),this.reject=$t(ae,it)},et.f=Tt=function(H){return H===ct||H===ne?new Te(H):Pt(H)},!v&&A(J)&&Q!==Object.prototype)){qt=Q.then,vt||m(Q,"then",function(it,mt){var yt=this;return new ct(function(At,fe){O(qt,yt,At,fe)}).then(it,mt)},{unsafe:!0});try{delete Q.constructor}catch{}S&&S(Q,gt)}h({global:!0,constructor:!0,wrap:!0,forced:rt},{Promise:ct}),ne=y.Promise,C(ct,k,!1,!0),P(k)},84520(d,b,n){"use strict";n(32694),n(56941),n(17125),n(19045),n(915),n(58682)},19045(d,b,n){"use strict";var h=n(99224),v=n(37099),c=n(65596),g=n(4097),y=n(88485),O=n(70518);h({target:"Promise",stat:!0,forced:n(36795)},{race:function(C){var P=this,R=g.f(P),A=R.reject,I=y(function(){var M=c(P.resolve);O(C,function(D){v(M,P,D).then(R.resolve,A)})});return I.error&&A(I.value),R.promise}})},915(d,b,n){"use strict";var h=n(99224),v=n(4097);h({target:"Promise",stat:!0,forced:n(43810).CONSTRUCTOR},{reject:function(y){var O=v.f(this);return(0,O.reject)(y),O.promise}})},58682(d,b,n){"use strict";var h=n(99224),v=n(93173),c=n(3745),g=n(99092),y=n(43810).CONSTRUCTOR,O=n(73080),m=v("Promise"),S=c&&!y;h({target:"Promise",stat:!0,forced:c||y},{resolve:function(P){return O(S&&this===m?g:this,P)}})},75537(d,b,n){"use strict";var h=n(99224),v=n(39541);h({target:"RegExp",proto:!0,forced:/./.exec!==v},{exec:v})},34227(d,b,n){"use strict";var h=n(78740).PROPER,v=n(31030),c=n(53777),g=n(69657),y=n(80589),O=n(17292),m="toString",S=RegExp.prototype,C=S[m];(y(function(){return"/a/b"!==C.call({source:"a",flags:"b"})})||h&&C.name!==m)&&v(S,m,function(){var I=c(this);return"/"+g(I.source)+"/"+g(O(I))},{unsafe:!0})},62823(d,b,n){"use strict";var M,h=n(99224),v=n(69382),c=n(61901).f,g=n(19864),y=n(69657),O=n(27257),m=n(50815),S=n(87470),C=n(3745),P=v("".slice),R=Math.min,A=S("endsWith");h({target:"String",proto:!0,forced:!(!C&&!A&&(M=c(String.prototype,"endsWith"),M&&!M.writable)||A)},{endsWith:function(D){var F=y(m(this));O(D);var Y=y(D),G=arguments.length>1?arguments[1]:void 0,B=F.length,z=void 0===G?B:R(g(G),B);return P(F,z-Y.length,z)===Y}})},9629(d,b,n){"use strict";var h=n(99224),v=n(4286),c=n(27257),g=n(50815),y=n(69657),O=n(87470),m=v("".indexOf);h({target:"String",proto:!0,forced:!O("includes")},{includes:function(C){return!!~m(y(g(this)),y(c(C)),arguments.length>1?arguments[1]:void 0)}})},82439(d,b,n){"use strict";var h=n(37099),v=n(4286),c=n(24578),g=n(53777),y=n(58412),O=n(19864),m=n(69657),S=n(50815),C=n(36104),P=n(58655),R=n(17292),A=n(57536),I=v("".indexOf);c("match",function(M,D,F){return[function(G){var B=S(this),z=y(G)?C(G,M):void 0;return z?h(z,G,B):new RegExp(G)[M](m(B))},function(Y){var G=g(this),B=m(Y),z=F(D,G,B);if(z.done)return z.value;var X=m(R(G));if(!~I(X,"g"))return A(G,B);var J=!!~I(X,"u")||!!~I(X,"v");G.lastIndex=0;for(var k,tt=[],et=0;null!==(k=A(G,B));){var rt=m(k[0]);tt[et]=rt,""===rt&&(G.lastIndex=P(B,O(G.lastIndex),J)),et++}return 0===et?null:tt}]})},298(d,b,n){"use strict";var h=n(55927),v=n(37099),c=n(4286),g=n(24578),y=n(80589),O=n(53777),m=n(73111),S=n(58412),C=n(86769),P=n(19864),R=n(69657),A=n(50815),I=n(58655),M=n(36104),D=n(97192),F=n(17292),Y=n(57536),B=n(20525)("replace"),z=Math.max,X=Math.min,J=c([].concat),tt=c([].push),et=c("".indexOf),k=c("".slice),rt=function(Z){return void 0===Z?Z:String(Z)},st="$0"==="a".replace(/./,"$0"),vt=!!/./[B]&&""===/./[B]("a","$0");g("replace",function(Z,Q,ct){var gt=vt?"$":"$0";return[function(ft,ot){var Tt=A(this),Pt=S(ft)?M(ft,B):void 0;return Pt?v(Pt,ft,Tt,ot):v(Q,R(Tt),ft,ot)},function(lt,ft){var ot=O(this),Tt=R(lt),Pt=m(ft);Pt||(ft=R(ft));var ut=R(F(ot));if("string"==typeof ft&&!~et(ft,gt)&&!~et(ft,"$<")&&!~et(ut,"y")){var Rt=ct(Q,ot,Tt,ft);if(Rt.done)return Rt.value}var Qt,w=!!~et(ut,"g");w&&(Qt=!!~et(ut,"u")||!!~et(ut,"v"),ot.lastIndex=0);for(var jt,Jt=[];null!==(jt=Y(ot,Tt))&&(tt(Jt,jt),w);)""===R(jt[0])&&(ot.lastIndex=I(Tt,P(ot.lastIndex),Qt));for(var oe="",Kt=0,Te=0;Te<Jt.length;Te++){for(var le,ne=R((jt=Jt[Te])[0]),qt=z(X(C(jt.index),Tt.length),0),ue=[],he=1;he<jt.length;he++)tt(ue,rt(jt[he]));var _t=jt.groups;if(Pt){var Me=J([ne],ue,qt,Tt);void 0!==_t&&tt(Me,_t),le=R(h(ft,void 0,Me))}else le=D(ne,Tt,qt,ue,_t,ft);qt>=Kt&&(oe+=k(Tt,Kt,qt)+le,Kt=qt+ne.length)}return oe+k(Tt,Kt)}]},!!y(function(){var Z=/./;return Z.exec=function(){var Q=[];return Q.groups={a:"7"},Q},"7"!=="".replace(Z,"$<a>")})||!st||vt)},39966(d,b,n){"use strict";var h=n(37099),v=n(4286),c=n(24578),g=n(53777),y=n(58412),O=n(50815),m=n(76911),S=n(58655),C=n(19864),P=n(69657),R=n(36104),A=n(17292),I=n(57536),M=n(38791),D=n(80589),F=M.UNSUPPORTED_Y,G=Math.min,B=v([].push),z=v("".slice),X=v("".indexOf),J=!D(function(){var et=/(?:)/,k=et.exec;et.exec=function(){return k.apply(this,arguments)};var rt="ab".split(et);return 2!==rt.length||"a"!==rt[0]||"b"!==rt[1]}),tt="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;c("split",function(et,k,rt){var st="0".split(void 0,0).length?function(vt,pt){return void 0===vt&&0===pt?[]:h(k,this,vt,pt)}:k;return[function(pt,Z){var Q=O(this),ct=y(pt)?R(pt,et):void 0;return ct?h(ct,pt,Q,Z):h(st,P(Q),pt,Z)},function(vt,pt){var Z=g(this),Q=P(vt);if(!tt){var ct=rt(st,Z,Q,pt,st!==k);if(ct.done)return ct.value}var gt=m(Z,RegExp),lt=P(A(Z)),ft=!!~X(lt,"u")||!!~X(lt,"v");F?~X(lt,"g")||(lt+="g"):~X(lt,"y")||(lt+="y");var ot=new gt(F?"^(?:"+Z.source+")":Z,lt),Tt=void 0===pt?4294967295:pt>>>0;if(0===Tt)return[];if(0===Q.length)return null===I(ot,Q)?[Q]:[];for(var Pt=0,ut=0,Rt=[];ut<Q.length;){ot.lastIndex=F?0:ut;var Qt,w=I(ot,F?z(Q,ut):Q);if(null===w||(Qt=G(C(ot.lastIndex+(F?ut:0)),Q.length))===Pt)ut=S(Q,ut,ft);else{if(B(Rt,z(Q,Pt,ut)),Rt.length===Tt)return Rt;for(var Jt=1;Jt<=w.length-1;Jt++)if(B(Rt,w[Jt]),Rt.length===Tt)return Rt;ut=Pt=Qt}}return B(Rt,z(Q,Pt)),Rt}]},tt||!J,F)},44370(d,b,n){"use strict";var M,h=n(99224),v=n(69382),c=n(61901).f,g=n(19864),y=n(69657),O=n(27257),m=n(50815),S=n(87470),C=n(3745),P=v("".slice),R=Math.min,A=S("startsWith");h({target:"String",proto:!0,forced:!(!C&&!A&&(M=c(String.prototype,"startsWith"),M&&!M.writable)||A)},{startsWith:function(D){var F=y(m(this));O(D);var Y=y(D),G=g(R(arguments.length>1?arguments[1]:void 0,F.length));return P(F,G,G+Y.length)===Y}})},43660(d,b,n){"use strict";var h=n(99224),v=n(77732).trim;h({target:"String",proto:!0,forced:n(8312)("trim")},{trim:function(){return v(this)}})},98171(d,b,n){"use strict";var h=n(80910),v=n(12558),c=n(52210),g=n(4662),y=n(75457),O=n(6217),S=n(20525)("iterator"),C=g.values,P=function(A,I){if(A){if(A[S]!==C)try{y(A,S,C)}catch{A[S]=C}if(O(A,I,!0),v[I])for(var M in g)if(A[M]!==g[M])try{y(A,M,g[M])}catch{A[M]=g[M]}}};for(var R in v)P(h[R]&&h[R].prototype,R);P(c,"DOMTokenList")},97850(d,b,n){"use strict";function v(l,t,e,r,a,i,o){try{var s=l[i](o),u=s.value}catch(f){return void e(f)}s.done?t(u):Promise.resolve(u).then(r,a)}function c(l){return function(){var t=this,e=arguments;return new Promise(function(r,a){var i=l.apply(t,e);function o(u){v(i,r,a,o,s,"next",u)}function s(u){v(i,r,a,o,s,"throw",u)}o(void 0)})}}function C(l){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(l)}function A(l,t,e){return(t=function R(l){var t=function P(l,t){if("object"!=C(l)||!l)return l;var e=l[Symbol.toPrimitive];if(void 0!==e){var r=e.call(l,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(l)}(l,"string");return"symbol"==C(t)?t:t+""}(t))in l?Object.defineProperty(l,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):l[t]=e,l}n.r(b),n.d(b,{AElement:()=>on,AnimateColorElement:()=>tn,AnimateElement:()=>Ke,AnimateTransformElement:()=>en,BoundingBox:()=>kt,CB1:()=>ur,CB2:()=>lr,CB3:()=>hr,CB4:()=>fr,Canvg:()=>Pe,CircleElement:()=>Yr,ClipPathElement:()=>yn,DefsElement:()=>Zr,DescElement:()=>Sn,Document:()=>Pn,Element:()=>Mt,EllipseElement:()=>Xr,FeColorMatrixElement:()=>Or,FeCompositeElement:()=>Tn,FeDropShadowElement:()=>xn,FeGaussianBlurElement:()=>On,FeMorphologyElement:()=>En,FilterElement:()=>mn,Font:()=>Se,FontElement:()=>rn,FontFaceElement:()=>nn,GElement:()=>Qe,GlyphElement:()=>mr,GradientElement:()=>Tr,ImageElement:()=>hn,LineElement:()=>Wr,LinearGradientElement:()=>Jr,MarkerElement:()=>kr,MaskElement:()=>dn,Matrix:()=>pr,MissingGlyphElement:()=>an,Mouse:()=>Lr,PSEUDO_ZERO:()=>be,Parser:()=>Xe,PathElement:()=>Ot,PathParser:()=>nt,PatternElement:()=>Kr,Point:()=>It,PolygonElement:()=>Qr,PolylineElement:()=>Er,Property:()=>_,QB1:()=>vr,QB2:()=>cr,QB3:()=>gr,RadialGradientElement:()=>qr,RectElement:()=>xr,RenderedElement:()=>ge,Rotate:()=>jr,SVGElement:()=>De,SVGFontLoader:()=>vn,Scale:()=>Gr,Screen:()=>dr,Skew:()=>yr,SkewX:()=>zr,SkewY:()=>$r,StopElement:()=>_r,StyleElement:()=>cn,SymbolElement:()=>fn,TRefElement:()=>sn,TSpanElement:()=>je,TextElement:()=>ie,TextPathElement:()=>ln,TitleElement:()=>bn,Transform:()=>We,Translate:()=>Ur,UnknownElement:()=>Hr,UseElement:()=>gn,ViewPort:()=>Dr,compressSpaces:()=>$t,default:()=>Pe,getSelectorSpecificity:()=>Vr,normalizeAttributeName:()=>mt,normalizeColor:()=>At,parseExternalUrl:()=>yt,presets:()=>ar,toNumbers:()=>H,trimLeft:()=>ae,trimRight:()=>we,vectorMagnitude:()=>sr,vectorsAngle:()=>or,vectorsRatio:()=>Ye}),n(84520),n(82439),n(298),n(44370),n(4662),n(98171),n(72970),n(62823),n(39966);var F=n(3663),G=(n(43660),n(77948)),J=(n(88850),n(9629),n(52088),function(l,t){return(J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])})(l,t)});function tt(l,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=l}J(l,t),l.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}function k(l,t){var e=l[0],r=l[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function rt(){for(var l=[],t=0;t<arguments.length;t++)l[t]=arguments[t];for(var e=0;e<l.length;e++)if("number"!=typeof l[e])throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof l[e]+" == typeof "+l[e]);return!0}var st=Math.PI;function vt(l,t,e){l.lArcFlag=0===l.lArcFlag?0:1,l.sweepFlag=0===l.sweepFlag?0:1;var r=l.rX,a=l.rY,i=l.x,o=l.y;r=Math.abs(l.rX),a=Math.abs(l.rY);var s=k([(t-i)/2,(e-o)/2],-l.xRot/180*st),u=s[0],f=s[1],p=Math.pow(u,2)/Math.pow(r,2)+Math.pow(f,2)/Math.pow(a,2);1<p&&(r*=Math.sqrt(p),a*=Math.sqrt(p)),l.rX=r,l.rY=a;var E=Math.pow(r,2)*Math.pow(f,2)+Math.pow(a,2)*Math.pow(u,2),T=(l.lArcFlag!==l.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(a,2)-E)/E)),x=r*f/a*T,N=-a*u/r*T,V=k([x,N],l.xRot/180*st);l.cX=V[0]+(t+i)/2,l.cY=V[1]+(e+o)/2,l.phi1=Math.atan2((f-N)/a,(u-x)/r),l.phi2=Math.atan2((-f-N)/a,(-u-x)/r),0===l.sweepFlag&&l.phi2>l.phi1&&(l.phi2-=2*st),1===l.sweepFlag&&l.phi2<l.phi1&&(l.phi2+=2*st),l.phi1*=180/st,l.phi2*=180/st}function pt(l,t,e){rt(l,t,e);var r=l*l+t*t-e*e;if(0>r)return[];if(0===r)return[[l*e/(l*l+t*t),t*e/(l*l+t*t)]];var a=Math.sqrt(r);return[[(l*e+t*a)/(l*l+t*t),(t*e-l*a)/(l*l+t*t)],[(l*e-t*a)/(l*l+t*t),(t*e+l*a)/(l*l+t*t)]]}var Z,Q=Math.PI/180;function ct(l,t,e){return(1-e)*l+e*t}function gt(l,t,e,r){return l+Math.cos(r/180*st)*t+Math.sin(r/180*st)*e}function lt(l,t,e,r){var a=1e-6,i=t-l,o=e-t,s=3*i+3*(r-e)-6*o,u=6*(o-i),f=3*i;return Math.abs(s)<a?[-f/u]:function(p,E,T){void 0===T&&(T=1e-6);var x=p*p/4-E;if(x<-T)return[];if(x<=T)return[-p/2];var N=Math.sqrt(x);return[-p/2-N,-p/2+N]}(u/s,f/s,a)}function ft(l,t,e,r,a){var i=1-a;return l*(i*i*i)+t*(3*i*i*a)+e*(3*i*a*a)+r*(a*a*a)}!function(l){function t(){return a(function(s,u,f){return s.relative&&(void 0!==s.x1&&(s.x1+=u),void 0!==s.y1&&(s.y1+=f),void 0!==s.x2&&(s.x2+=u),void 0!==s.y2&&(s.y2+=f),void 0!==s.x&&(s.x+=u),void 0!==s.y&&(s.y+=f),s.relative=!1),s})}function e(){var s=NaN,u=NaN,f=NaN,p=NaN;return a(function(E,T,x){return E.type&w.SMOOTH_CURVE_TO&&(E.type=w.CURVE_TO,s=isNaN(s)?T:s,u=isNaN(u)?x:u,E.x1=E.relative?T-s:2*T-s,E.y1=E.relative?x-u:2*x-u),E.type&w.CURVE_TO?(s=E.relative?T+E.x2:E.x2,u=E.relative?x+E.y2:E.y2):(s=NaN,u=NaN),E.type&w.SMOOTH_QUAD_TO&&(E.type=w.QUAD_TO,f=isNaN(f)?T:f,p=isNaN(p)?x:p,E.x1=E.relative?T-f:2*T-f,E.y1=E.relative?x-p:2*x-p),E.type&w.QUAD_TO?(f=E.relative?T+E.x1:E.x1,p=E.relative?x+E.y1:E.y1):(f=NaN,p=NaN),E})}function r(){var s=NaN,u=NaN;return a(function(f,p,E){if(f.type&w.SMOOTH_QUAD_TO&&(f.type=w.QUAD_TO,s=isNaN(s)?p:s,u=isNaN(u)?E:u,f.x1=f.relative?p-s:2*p-s,f.y1=f.relative?E-u:2*E-u),f.type&w.QUAD_TO){s=f.relative?p+f.x1:f.x1,u=f.relative?E+f.y1:f.y1;var T=f.x1,x=f.y1;f.type=w.CURVE_TO,f.x1=((f.relative?0:p)+2*T)/3,f.y1=((f.relative?0:E)+2*x)/3,f.x2=(f.x+2*T)/3,f.y2=(f.y+2*x)/3}else s=NaN,u=NaN;return f})}function a(s){var u=0,f=0,p=NaN,E=NaN;return function(T){if(isNaN(p)&&!(T.type&w.MOVE_TO))throw new Error("path must start with moveto");var x=s(T,u,f,p,E);return T.type&w.CLOSE_PATH&&(u=p,f=E),void 0!==T.x&&(u=T.relative?u+T.x:T.x),void 0!==T.y&&(f=T.relative?f+T.y:T.y),T.type&w.MOVE_TO&&(p=u,E=f),x}}function i(s,u,f,p,E,T){return rt(s,u,f,p,E,T),a(function(x,N,V,L){var U=x.x1,K=x.x2,$=x.relative&&!isNaN(L),j=void 0!==x.x?x.x:$?0:N,q=void 0!==x.y?x.y:$?0:V;function at(Gt){return Gt*Gt}x.type&w.HORIZ_LINE_TO&&0!==u&&(x.type=w.LINE_TO,x.y=x.relative?0:V),x.type&w.VERT_LINE_TO&&0!==f&&(x.type=w.LINE_TO,x.x=x.relative?0:N),void 0!==x.x&&(x.x=x.x*s+q*f+($?0:E)),void 0!==x.y&&(x.y=j*u+x.y*p+($?0:T)),void 0!==x.x1&&(x.x1=x.x1*s+x.y1*f+($?0:E)),void 0!==x.y1&&(x.y1=U*u+x.y1*p+($?0:T)),void 0!==x.x2&&(x.x2=x.x2*s+x.y2*f+($?0:E)),void 0!==x.y2&&(x.y2=K*u+x.y2*p+($?0:T));var W=s*p-u*f;if(void 0!==x.xRot&&(1!==s||0!==u||0!==f||1!==p))if(0===W)delete x.rX,delete x.rY,delete x.xRot,delete x.lArcFlag,delete x.sweepFlag,x.type=w.LINE_TO;else{var ht=x.xRot*Math.PI/180,dt=Math.sin(ht),Et=Math.cos(ht),bt=1/at(x.rX),Ct=1/at(x.rY),Lt=at(Et)*bt+at(dt)*Ct,Bt=2*dt*Et*(bt-Ct),Nt=at(dt)*bt+at(Et)*Ct,Vt=Lt*p*p-Bt*u*p+Nt*u*u,wt=Bt*(s*p+u*f)-2*(Lt*f*p+Nt*s*u),Ut=Lt*f*f-Bt*s*f+Nt*s*s,St=(Math.atan2(wt,Vt-Ut)+Math.PI)%Math.PI/2,xt=Math.sin(St),Ft=Math.cos(St);x.rX=Math.abs(W)/Math.sqrt(Vt*at(Ft)+wt*xt*Ft+Ut*at(xt)),x.rY=Math.abs(W)/Math.sqrt(Vt*at(xt)-wt*xt*Ft+Ut*at(Ft)),x.xRot=180*St/Math.PI}return void 0!==x.sweepFlag&&0>W&&(x.sweepFlag=+!x.sweepFlag),x})}l.ROUND=function(s){function u(f){return Math.round(f*s)/s}return void 0===s&&(s=1e13),rt(s),function(f){return void 0!==f.x1&&(f.x1=u(f.x1)),void 0!==f.y1&&(f.y1=u(f.y1)),void 0!==f.x2&&(f.x2=u(f.x2)),void 0!==f.y2&&(f.y2=u(f.y2)),void 0!==f.x&&(f.x=u(f.x)),void 0!==f.y&&(f.y=u(f.y)),void 0!==f.rX&&(f.rX=u(f.rX)),void 0!==f.rY&&(f.rY=u(f.rY)),f}},l.TO_ABS=t,l.TO_REL=function(){return a(function(s,u,f){return s.relative||(void 0!==s.x1&&(s.x1-=u),void 0!==s.y1&&(s.y1-=f),void 0!==s.x2&&(s.x2-=u),void 0!==s.y2&&(s.y2-=f),void 0!==s.x&&(s.x-=u),void 0!==s.y&&(s.y-=f),s.relative=!0),s})},l.NORMALIZE_HVZ=function(s,u,f){return void 0===s&&(s=!0),void 0===u&&(u=!0),void 0===f&&(f=!0),a(function(p,E,T,x,N){if(isNaN(x)&&!(p.type&w.MOVE_TO))throw new Error("path must start with moveto");return u&&p.type&w.HORIZ_LINE_TO&&(p.type=w.LINE_TO,p.y=p.relative?0:T),f&&p.type&w.VERT_LINE_TO&&(p.type=w.LINE_TO,p.x=p.relative?0:E),s&&p.type&w.CLOSE_PATH&&(p.type=w.LINE_TO,p.x=p.relative?x-E:x,p.y=p.relative?N-T:N),p.type&w.ARC&&(0===p.rX||0===p.rY)&&(p.type=w.LINE_TO,delete p.rX,delete p.rY,delete p.xRot,delete p.lArcFlag,delete p.sweepFlag),p})},l.NORMALIZE_ST=e,l.QT_TO_C=r,l.INFO=a,l.SANITIZE=function(s){void 0===s&&(s=0),rt(s);var u=NaN,f=NaN,p=NaN,E=NaN;return a(function(T,x,N,V,L){var U=Math.abs,K=!1,$=0,j=0;if(T.type&w.SMOOTH_CURVE_TO&&($=isNaN(u)?0:x-u,j=isNaN(f)?0:N-f),T.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?(u=T.relative?x+T.x2:T.x2,f=T.relative?N+T.y2:T.y2):(u=NaN,f=NaN),T.type&w.SMOOTH_QUAD_TO?(p=isNaN(p)?x:2*x-p,E=isNaN(E)?N:2*N-E):T.type&w.QUAD_TO?(p=T.relative?x+T.x1:T.x1,E=T.relative?N+T.y1:T.y2):(p=NaN,E=NaN),T.type&w.LINE_COMMANDS||T.type&w.ARC&&(0===T.rX||0===T.rY||!T.lArcFlag)||T.type&w.CURVE_TO||T.type&w.SMOOTH_CURVE_TO||T.type&w.QUAD_TO||T.type&w.SMOOTH_QUAD_TO){var q=void 0===T.x?0:T.relative?T.x:T.x-x,at=void 0===T.y?0:T.relative?T.y:T.y-N;$=isNaN(p)?void 0===T.x1?$:T.relative?T.x:T.x1-x:p-x,j=isNaN(E)?void 0===T.y1?j:T.relative?T.y:T.y1-N:E-N;var W=void 0===T.x2?0:T.relative?T.x:T.x2-x,ht=void 0===T.y2?0:T.relative?T.y:T.y2-N;U(q)<=s&&U(at)<=s&&U($)<=s&&U(j)<=s&&U(W)<=s&&U(ht)<=s&&(K=!0)}return T.type&w.CLOSE_PATH&&U(x-V)<=s&&U(N-L)<=s&&(K=!0),K?[]:T})},l.MATRIX=i,l.ROTATE=function(s,u,f){void 0===u&&(u=0),void 0===f&&(f=0),rt(s,u,f);var p=Math.sin(s),E=Math.cos(s);return i(E,p,-p,E,u-u*E+f*p,f-u*p-f*E)},l.TRANSLATE=function(s,u){return void 0===u&&(u=0),rt(s,u),i(1,0,0,1,s,u)},l.SCALE=function(s,u){return void 0===u&&(u=s),rt(s,u),i(s,0,0,u,0,0)},l.SKEW_X=function(s){return rt(s),i(1,0,Math.atan(s),1,0,0)},l.SKEW_Y=function(s){return rt(s),i(1,Math.atan(s),0,1,0,0)},l.X_AXIS_SYMMETRY=function(s){return void 0===s&&(s=0),rt(s),i(-1,0,0,1,s,0)},l.Y_AXIS_SYMMETRY=function(s){return void 0===s&&(s=0),rt(s),i(1,0,0,-1,0,s)},l.A_TO_C=function(){return a(function(s,u,f){return w.ARC===s.type?function(p,E,T){var x,N,V,L;p.cX||vt(p,E,T);for(var U=Math.min(p.phi1,p.phi2),K=Math.max(p.phi1,p.phi2)-U,$=Math.ceil(K/90),j=new Array($),q=E,at=T,W=0;W<$;W++){var ht=ct(p.phi1,p.phi2,W/$),dt=ct(p.phi1,p.phi2,(W+1)/$),bt=4/3*Math.tan((dt-ht)*Q/4),Ct=[Math.cos(ht*Q)-bt*Math.sin(ht*Q),Math.sin(ht*Q)+bt*Math.cos(ht*Q)],Lt=Ct[0],Bt=Ct[1],Nt=[Math.cos(dt*Q),Math.sin(dt*Q)],Vt=Nt[0],wt=Nt[1],Ut=[Vt+bt*Math.sin(dt*Q),wt-bt*Math.cos(dt*Q)],St=Ut[0],xt=Ut[1];j[W]={relative:p.relative,type:w.CURVE_TO};var Ft=function(Gt,Ht){var zt=k([Gt*p.rX,Ht*p.rY],p.xRot);return[p.cX+zt[0],p.cY+zt[1]]};x=Ft(Lt,Bt),j[W].x1=x[0],j[W].y1=x[1],N=Ft(St,xt),j[W].x2=N[0],j[W].y2=N[1],V=Ft(Vt,wt),j[W].x=V[0],j[W].y=V[1],p.relative&&(j[W].x1-=q,j[W].y1-=at,j[W].x2-=q,j[W].y2-=at,j[W].x-=q,j[W].y-=at),q=(L=[j[W].x,j[W].y])[0],at=L[1]}return j}(s,s.relative?0:u,s.relative?0:f):s})},l.ANNOTATE_ARCS=function(){return a(function(s,u,f){return s.relative&&(u=0,f=0),w.ARC===s.type&&vt(s,u,f),s})},l.CLONE=function o(){return function(s){var u={};for(var f in s)u[f]=s[f];return u}},l.CALCULATE_BOUNDS=function(){var u=t(),f=r(),p=e(),E=a(function(T,x,N){var V=p(f(u(function(T){var x={};for(var N in T)x[N]=T[N];return x}(T))));function L(xt){xt>E.maxX&&(E.maxX=xt),xt<E.minX&&(E.minX=xt)}function U(xt){xt>E.maxY&&(E.maxY=xt),xt<E.minY&&(E.minY=xt)}if(V.type&w.DRAWING_COMMANDS&&(L(x),U(N)),V.type&w.HORIZ_LINE_TO&&L(V.x),V.type&w.VERT_LINE_TO&&U(V.y),V.type&w.LINE_TO&&(L(V.x),U(V.y)),V.type&w.CURVE_TO){L(V.x),U(V.y);for(var K=0,$=lt(x,V.x1,V.x2,V.x);K<$.length;K++)0<(St=$[K])&&1>St&&L(ft(x,V.x1,V.x2,V.x,St));for(var j=0,q=lt(N,V.y1,V.y2,V.y);j<q.length;j++)0<(St=q[j])&&1>St&&U(ft(N,V.y1,V.y2,V.y,St))}if(V.type&w.ARC){L(V.x),U(V.y),vt(V,x,N);for(var at=V.xRot/180*Math.PI,W=Math.cos(at)*V.rX,ht=Math.sin(at)*V.rX,dt=-Math.sin(at)*V.rY,Et=Math.cos(at)*V.rY,bt=V.phi1<V.phi2?[V.phi1,V.phi2]:-180>V.phi2?[V.phi2+360,V.phi1+360]:[V.phi2,V.phi1],Ct=bt[0],Lt=bt[1],Bt=function(xt){var Ht=180*Math.atan2(xt[1],xt[0])/Math.PI;return Ht<Ct?Ht+360:Ht},Nt=0,Vt=pt(dt,-W,0).map(Bt);Nt<Vt.length;Nt++)(St=Vt[Nt])>Ct&&St<Lt&&L(gt(V.cX,W,dt,St));for(var wt=0,Ut=pt(Et,-ht,0).map(Bt);wt<Ut.length;wt++){var St;(St=Ut[wt])>Ct&&St<Lt&&U(gt(V.cY,ht,Et,St))}}return T});return E.minX=1/0,E.maxX=-1/0,E.minY=1/0,E.maxY=-1/0,E}}(Z||(Z={}));var ot,Tt=function(){function l(){}return l.prototype.round=function(t){return this.transform(Z.ROUND(t))},l.prototype.toAbs=function(){return this.transform(Z.TO_ABS())},l.prototype.toRel=function(){return this.transform(Z.TO_REL())},l.prototype.normalizeHVZ=function(t,e,r){return this.transform(Z.NORMALIZE_HVZ(t,e,r))},l.prototype.normalizeST=function(){return this.transform(Z.NORMALIZE_ST())},l.prototype.qtToC=function(){return this.transform(Z.QT_TO_C())},l.prototype.aToC=function(){return this.transform(Z.A_TO_C())},l.prototype.sanitize=function(t){return this.transform(Z.SANITIZE(t))},l.prototype.translate=function(t,e){return this.transform(Z.TRANSLATE(t,e))},l.prototype.scale=function(t,e){return this.transform(Z.SCALE(t,e))},l.prototype.rotate=function(t,e,r){return this.transform(Z.ROTATE(t,e,r))},l.prototype.matrix=function(t,e,r,a,i,o){return this.transform(Z.MATRIX(t,e,r,a,i,o))},l.prototype.skewX=function(t){return this.transform(Z.SKEW_X(t))},l.prototype.skewY=function(t){return this.transform(Z.SKEW_Y(t))},l.prototype.xSymmetry=function(t){return this.transform(Z.X_AXIS_SYMMETRY(t))},l.prototype.ySymmetry=function(t){return this.transform(Z.Y_AXIS_SYMMETRY(t))},l.prototype.annotateArcs=function(){return this.transform(Z.ANNOTATE_ARCS())},l}(),Pt=function(l){return" "===l||"\t"===l||"\r"===l||"\n"===l},ut=function(l){return 48<=l.charCodeAt(0)&&l.charCodeAt(0)<=57},Rt=function(l){function t(){var e=l.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return tt(t,l),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,r){var a=this;void 0===r&&(r=[]);for(var i=function(E){r.push(E),a.curArgs.length=0,a.canParseCommandOrComma=!0},o=0;o<e.length;o++){var s=e[o],u=!(this.curCommandType!==w.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),f=ut(s)&&("0"===this.curNumber&&"0"===s||u);if(!ut(s)||f)if("e"!==s&&"E"!==s)if("-"!==s&&"+"!==s||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==s||this.curNumberHasExp||this.curNumberHasDecimal||u){if(this.curNumber&&-1!==this.curCommandType){var p=Number(this.curNumber);if(isNaN(p))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===w.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>p)throw new SyntaxError('Expected positive number, got "'+p+'" at index "'+o+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"');this.curArgs.push(p),this.curArgs.length===Qt[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?i({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:p}):w.VERT_LINE_TO===this.curCommandType?i({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:p}):this.curCommandType===w.MOVE_TO||this.curCommandType===w.LINE_TO||this.curCommandType===w.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),w.MOVE_TO===this.curCommandType&&(this.curCommandType=w.LINE_TO)):this.curCommandType===w.CURVE_TO?i({type:w.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===w.SMOOTH_CURVE_TO?i({type:w.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.QUAD_TO?i({type:w.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.ARC&&i({type:w.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(!Pt(s))if(","===s&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==s&&"-"!==s&&"."!==s)if(f)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==s&&"Z"!==s)if("h"===s||"H"===s)this.curCommandType=w.HORIZ_LINE_TO,this.curCommandRelative="h"===s;else if("v"===s||"V"===s)this.curCommandType=w.VERT_LINE_TO,this.curCommandRelative="v"===s;else if("m"===s||"M"===s)this.curCommandType=w.MOVE_TO,this.curCommandRelative="m"===s;else if("l"===s||"L"===s)this.curCommandType=w.LINE_TO,this.curCommandRelative="l"===s;else if("c"===s||"C"===s)this.curCommandType=w.CURVE_TO,this.curCommandRelative="c"===s;else if("s"===s||"S"===s)this.curCommandType=w.SMOOTH_CURVE_TO,this.curCommandRelative="s"===s;else if("q"===s||"Q"===s)this.curCommandType=w.QUAD_TO,this.curCommandRelative="q"===s;else if("t"===s||"T"===s)this.curCommandType=w.SMOOTH_QUAD_TO,this.curCommandRelative="t"===s;else{if("a"!==s&&"A"!==s)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=w.ARC,this.curCommandRelative="a"===s}else r.push({type:w.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal="."===s}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(r,a){void 0===a&&(a=[]);for(var i=0,o=Object.getPrototypeOf(this).parse.call(this,r);i<o.length;i++){var u=e(o[i]);Array.isArray(u)?a.push.apply(a,u):a.push(u)}return a}}})},t}(Tt),w=function(l){function t(e){var r=l.call(this)||this;return r.commands="string"==typeof e?t.parse(e):e,r}return tt(t,l),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=Z.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var r=[],a=0,i=this.commands;a<i.length;a++){var o=e(i[a]);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return this.commands=r,this},t.encode=function(e){return function et(l){var t="";Array.isArray(l)||(l=[l]);for(var e=0;e<l.length;e++){var r=l[e];if(r.type===w.CLOSE_PATH)t+="z";else if(r.type===w.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===w.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===w.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===w.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===w.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===w.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===w.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===w.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==w.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+e+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}(e)},t.parse=function(e){var r=new Rt,a=[];return r.parse(e,a),r.finish(a),a},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(Tt),Qt=((ot={})[w.MOVE_TO]=2,ot[w.LINE_TO]=2,ot[w.HORIZ_LINE_TO]=1,ot[w.VERT_LINE_TO]=1,ot[w.CLOSE_PATH]=0,ot[w.QUAD_TO]=4,ot[w.SMOOTH_QUAD_TO]=2,ot[w.CURVE_TO]=6,ot[w.SMOOTH_CURVE_TO]=4,ot[w.ARC]=7,ot);function jt(l){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(l)}n(34227);var oe=[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],Kt=[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 qt(l,t,e,r,a,i){if(!(isNaN(i)||i<1)){i|=0;var o=function ne(l,t,e,r,a){if("string"==typeof l&&(l=document.getElementById(l)),!l||"object"!==jt(l)||!("getContext"in l))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=l.getContext("2d");try{return i.getImageData(t,e,r,a)}catch(o){throw new Error("unable to access image data: "+o)}}(l,t,e,r,a);o=function ue(l,t,e,r,a,i){for(var N,o=l.data,s=2*i+1,u=r-1,f=a-1,p=i+1,E=p*(p+1)/2,T=new _t,x=T,V=1;V<s;V++)x=x.next=new _t,V===p&&(N=x);x.next=T;for(var L=null,U=null,K=0,$=0,j=oe[i],q=Kt[i],at=0;at<a;at++){x=T;for(var W=o[$],ht=o[$+1],dt=o[$+2],Et=o[$+3],bt=0;bt<p;bt++)x.r=W,x.g=ht,x.b=dt,x.a=Et,x=x.next;for(var Ct=0,Lt=0,Bt=0,Nt=0,Vt=p*W,wt=p*ht,Ut=p*dt,St=p*Et,xt=E*W,Ft=E*ht,Gt=E*dt,Ht=E*Et,zt=1;zt<p;zt++){var Yt=$+((u<zt?u:zt)<<2),Zt=o[Yt],te=o[Yt+1],Le=o[Yt+2],Be=o[Yt+3],de=p-zt;xt+=(x.r=Zt)*de,Ft+=(x.g=te)*de,Gt+=(x.b=Le)*de,Ht+=(x.a=Be)*de,Ct+=Zt,Lt+=te,Bt+=Le,Nt+=Be,x=x.next}L=T,U=N;for(var pe=0;pe<r;pe++){var ye=Ht*j>>>q;if(o[$+3]=ye,0!==ye){var me=255/ye;o[$]=(xt*j>>>q)*me,o[$+1]=(Ft*j>>>q)*me,o[$+2]=(Gt*j>>>q)*me}else o[$]=o[$+1]=o[$+2]=0;xt-=Vt,Ft-=wt,Gt-=Ut,Ht-=St,Vt-=L.r,wt-=L.g,Ut-=L.b,St-=L.a;var ee=pe+i+1;xt+=Ct+=L.r=o[ee=K+(ee<u?ee:u)<<2],Ft+=Lt+=L.g=o[ee+1],Gt+=Bt+=L.b=o[ee+2],Ht+=Nt+=L.a=o[ee+3],L=L.next;var Fe=U.r,Ue=U.g,Ae=U.b,Ge=U.a;Vt+=Fe,wt+=Ue,Ut+=Ae,St+=Ge,Ct-=Fe,Lt-=Ue,Bt-=Ae,Nt-=Ge,U=U.next,$+=4}K+=r}for(var re=0;re<r;re++){var Re=o[$=re<<2],Ne=o[$+1],Ie=o[$+2],Xt=o[$+3],Sr=p*Re,Cr=p*Ne,Pr=p*Ie,Ar=p*Xt,qe=E*Re,_e=E*Ne,tr=E*Ie,er=E*Xt;x=T;for(var Rn=0;Rn<p;Rn++)x.r=Re,x.g=Ne,x.b=Ie,x.a=Xt,x=x.next;for(var Nn=r,Rr=0,Nr=0,Ir=0,Mr=0,rr=1;rr<=i;rr++){var nr=p-rr;qe+=(x.r=Re=o[$=Nn+re<<2])*nr,_e+=(x.g=Ne=o[$+1])*nr,tr+=(x.b=Ie=o[$+2])*nr,er+=(x.a=Xt=o[$+3])*nr,Mr+=Re,Rr+=Ne,Nr+=Ie,Ir+=Xt,x=x.next,rr<f&&(Nn+=r)}$=re,L=T,U=N;for(var wr=0;wr<a;wr++){var Wt=$<<2;o[Wt+3]=Xt=er*j>>>q,Xt>0?(o[Wt]=(qe*j>>>q)*(Xt=255/Xt),o[Wt+1]=(_e*j>>>q)*Xt,o[Wt+2]=(tr*j>>>q)*Xt):o[Wt]=o[Wt+1]=o[Wt+2]=0,qe-=Sr,_e-=Cr,tr-=Pr,er-=Ar,Sr-=L.r,Cr-=L.g,Pr-=L.b,Ar-=L.a,Wt=re+((Wt=wr+p)<f?Wt:f)*r<<2,qe+=Mr+=L.r=o[Wt],_e+=Rr+=L.g=o[Wt+1],tr+=Nr+=L.b=o[Wt+2],er+=Ir+=L.a=o[Wt+3],L=L.next,Sr+=Re=U.r,Cr+=Ne=U.g,Pr+=Ie=U.b,Ar+=Xt=U.a,Mr-=Re,Rr-=Ne,Nr-=Ie,Ir-=Xt,U=U.next,$+=r}}return l}(o,0,0,r,a,i),l.getContext("2d").putImageData(o,t,e)}}var _t=function l(){(function Ee(l,t){if(!(l instanceof t))throw new TypeError("Cannot call a class as a function")})(this,l),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null},ar=Object.freeze({__proto__:null,offscreen:function Me(){var{DOMParser:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:l,createCanvas:(e,r)=>new OffscreenCanvas(e,r),createImage:e=>c(function*(){var r=yield fetch(e),a=yield r.blob();return yield createImageBitmap(a)})()};return(typeof DOMParser<"u"||typeof l>"u")&&Reflect.deleteProperty(t,"DOMParser"),t},node:function ze(l){var{DOMParser:t,canvas:e,fetch:r}=l;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:e.createCanvas,createImage:e.loadImage}}});function $t(l){return l.replace(/(?!\u3000)\s+/gm," ")}function ae(l){return l.replace(/^[\n \t]+/,"")}function we(l){return l.replace(/[\n \t]+$/,"")}function H(l){return((l||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var it=/^[A-Z-]+$/;function mt(l){return it.test(l)?l.toLowerCase():l}function yt(l){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(l)||[];return t[2]||t[3]||t[4]}function At(l){if(!l.startsWith("rgb"))return l;var t=3;return l.replace(/\d+(\.\d+)?/g,(r,a)=>t--&&a?String(Math.round(parseFloat(r))):r)}var fe=/(\[[^\]]+\])/g,Ve=/(#[^\s+>~.[:]+)/g,ve=/(\.[^\s+>~.[:]+)/g,ce=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,$e=/(:[\w-]+\([^)]*\))/gi,He=/(:[^\s+>~.[:]+)/g,ir=/([^\s+>~.[:]+)/g;function Oe(l,t){var e=t.exec(l);return e?[l.replace(t," "),e.length]:[l,0]}function Vr(l){var t=[0,0,0],e=l.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[e,r]=Oe(e,fe),t[1]+=r,[e,r]=Oe(e,Ve),t[0]+=r,[e,r]=Oe(e,ve),t[1]+=r,[e,r]=Oe(e,ce),t[2]+=r,[e,r]=Oe(e,$e),t[1]+=r,[e,r]=Oe(e,He),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=Oe(e,ir),t[2]+=r,t.join("")}var be=1e-8;function sr(l){return Math.sqrt(Math.pow(l[0],2)+Math.pow(l[1],2))}function Ye(l,t){return(l[0]*t[0]+l[1]*t[1])/(sr(l)*sr(t))}function or(l,t){return(l[0]*t[1]<l[1]*t[0]?-1:1)*Math.acos(Ye(l,t))}function ur(l){return l*l*l}function lr(l){return 3*l*l*(1-l)}function hr(l){return 3*l*(1-l)*(1-l)}function fr(l){return(1-l)*(1-l)*(1-l)}function vr(l){return l*l}function cr(l){return 2*l*(1-l)}function gr(l){return(1-l)*(1-l)}let _=(()=>{class l{constructor(e,r,a){this.document=e,this.name=r,this.value=a,this.isNormalizedColor=!1}static empty(e){return new l(e,"EMPTY","")}split(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:r,name:a}=this;return $t(this.getString()).trim().split(e).map(i=>new l(r,a,i))}hasValue(e){var{value:r}=this;return null!==r&&""!==r&&(e||0!==r)&&typeof r<"u"}isString(e){var{value:r}=this,a="string"==typeof r;return a&&e?e.test(r):a}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:r}=this,a=parseFloat(r);return this.isString(/%$/)&&(a/=100),a}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var r=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,r=At(r),this.value=r),r}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[a,i]="boolean"==typeof e?[void 0,e]:[e],{viewPort:o}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(o.computeSize("x"),o.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(o.computeSize("x"),o.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*o.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*o.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&i:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(a);default:var s=this.getNumber();return r&&s<1?s*o.computeSize(a):s}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),r=/#([^)'"]+)/.exec(e);return r&&(r=r[1]),r||(r=e),this.document.definitions[r]}getFillStyleDefinition(e,r){var a=this.getDefinition();if(!a)return null;if("function"==typeof a.createGradient)return a.createGradient(this.document.ctx,e,r);if("function"==typeof a.createPattern){if(a.getHrefAttribute().hasValue()){var i=a.getAttribute("patternTransform");a=a.getHrefAttribute().getDefinition(),i.hasValue()&&a.getAttribute("patternTransform",!0).setValue(i.value)}return a.createPattern(this.document.ctx,e,r)}return null}getTextBaseline(){return this.hasValue()?l.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var r=this.getColor(),a=r.length,i=0,o=0;o<a&&(","===r[o]&&i++,3!==i);o++);if(e.hasValue()&&this.isString()&&3!==i){var s=new G(r);s.ok&&(s.alpha=e.getNumber(),r=s.toRGBA())}return new l(this.document,this.name,r)}}return l.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"},l})();class Dr{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,e){this.viewPorts.push({width:t,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class It{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r=e,a=e]=H(t);return new It(r,a)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,a=r]=H(t);return new It(r,a)}static parsePath(t){for(var e=H(t),r=e.length,a=[],i=0;i<r;i+=2)a.push(new It(e[i],e[i+1]));return a}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:r}=this,i=e*t[1]+r*t[3]+t[5];this.x=e*t[0]+r*t[2]+t[4],this.y=i}}class Lr{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:t,onClick:e,onMouseMove:r}=this,a=t.ctx.canvas;a.onclick=e,a.onmousemove=r,this.working=!0}}stop(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:a}=t.ctx.canvas;a&&(a.cursor=""),e.forEach((i,o)=>{for(var{run:s}=i,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:a}=this;r.forEach((i,o)=>{var{x:s,y:u}=i;!a[o]&&e.isPointInPath&&e.isPointInPath(s,u)&&(a[o]=t)})}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:a}=this;r.forEach((i,o)=>{var{x:s,y:u}=i;!a[o]&&e.isPointInBox(s,u)&&(a[o]=t)})}}mapXY(t,e){for(var{window:r,ctx:a}=this.screen,i=new It(t,e),o=a.canvas;o;)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(i.x+=r.scrollX),r.scrollY&&(i.y+=r.scrollY),i}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(a){a.onClick&&a.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(a){a.onMouseMove&&a.onMouseMove()}})}}var Br=typeof window<"u"?window:null,Fr=typeof fetch<"u"?fetch.bind(void 0):null;let dr=(()=>{class l{constructor(e){var{fetch:r=Fr,window:a=Br}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Dr,this.mouse=new Lr(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=r}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(r=>r());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:r,ctx:a,aspectRatio:i,width:o,desiredWidth:s,height:u,desiredHeight:f,minX:p=0,minY:E=0,refX:T,refY:x,clip:N=!1,clipX:V=0,clipY:L=0}=e,U=$t(i).replace(/^defer\s/,""),[K,$]=U.split(" "),j=K||"xMidYMid",q=$||"meet",at=o/s,W=u/f,ht=Math.min(at,W),dt=Math.max(at,W),Et=s,bt=f;"meet"===q&&(Et*=ht,bt*=ht),"slice"===q&&(Et*=dt,bt*=dt);var Ct=new _(r,"refX",T),Lt=new _(r,"refY",x),Bt=Ct.hasValue()&&Lt.hasValue();if(Bt&&a.translate(-ht*Ct.getPixels("x"),-ht*Lt.getPixels("y")),N){var Nt=ht*V,Vt=ht*L;a.beginPath(),a.moveTo(Nt,Vt),a.lineTo(o,Vt),a.lineTo(o,u),a.lineTo(Nt,u),a.closePath(),a.clip()}if(!Bt){var wt="meet"===q&&ht===W,Ut="slice"===q&&dt===W,St="meet"===q&&ht===at,xt="slice"===q&&dt===at;j.startsWith("xMid")&&(wt||Ut)&&a.translate(o/2-Et/2,0),j.endsWith("YMid")&&(St||xt)&&a.translate(0,u/2-bt/2),j.startsWith("xMax")&&(wt||Ut)&&a.translate(o-Et,0),j.endsWith("YMax")&&(St||xt)&&a.translate(0,u-bt)}switch(!0){case"none"===j:a.scale(at,W);break;case"meet"===q:a.scale(ht,ht);break;case"slice"===q:a.scale(dt,dt)}a.translate(-p,-E)}start(e){var{enableRedraw:r=!1,ignoreMouse:a=!1,ignoreAnimation:i=!1,ignoreDimensions:o=!1,ignoreClear:s=!1,forceRedraw:u,scaleWidth:f,scaleHeight:p,offsetX:E,offsetY:T}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:x,mouse:N}=this,V=1e3/x;if(this.frameDuration=V,this.readyPromise=new Promise(j=>{this.resolveReady=j}),this.isReady()&&this.render(e,o,s,f,p,E,T),r){var L=Date.now(),U=L,K=0,$=()=>{L=Date.now(),(K=L-U)>=V&&(U=L-K%V,this.shouldUpdate(i,u)&&(this.render(e,o,s,f,p,E,T),N.runEvents())),this.intervalId=F($)};a||N.start(),this.intervalId=F($)}}stop(){this.intervalId&&(F.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,r){if(!e){var{frameDuration:a}=this;if(this.animations.reduce((o,s)=>s.update(a)||o,!1))return!0}return!!("function"==typeof r&&r()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,r,a,i,o,s,u){var{CLIENT_WIDTH:f,CLIENT_HEIGHT:p,viewPort:E,ctx:T,isFirstRender:x}=this,N=T.canvas;E.clear(),N.width&&N.height?E.setCurrent(N.width,N.height):E.setCurrent(f,p);var V=e.getStyle("width"),L=e.getStyle("height");!r&&(x||"number"!=typeof i&&"number"!=typeof o)&&(V.hasValue()&&(N.width=V.getPixels("x"),N.style&&(N.style.width="".concat(N.width,"px"))),L.hasValue()&&(N.height=L.getPixels("y"),N.style&&(N.style.height="".concat(N.height,"px"))));var U=N.clientWidth||N.width,K=N.clientHeight||N.height;if(r&&V.hasValue()&&L.hasValue()&&(U=V.getPixels("x"),K=L.getPixels("y")),E.setCurrent(U,K),"number"==typeof s&&e.getAttribute("x",!0).setValue(s),"number"==typeof u&&e.getAttribute("y",!0).setValue(u),"number"==typeof i||"number"==typeof o){var $=H(e.getAttribute("viewBox").getString()),j=0,q=0;if("number"==typeof i){var at=e.getStyle("width");at.hasValue()?j=at.getPixels("x")/i:isNaN($[2])||(j=$[2]/i)}if("number"==typeof o){var W=e.getStyle("height");W.hasValue()?q=W.getPixels("y")/o:isNaN($[3])||(q=$[3]/o)}j||(j=q),q||(q=j),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(o);var ht=e.getStyle("transform",!0,!0);ht.setValue("".concat(ht.getString()," scale(").concat(1/j,", ").concat(1/q,")"))}a||T.clearRect(0,0,U,K),e.render(T),x&&(this.isFirstRender=!1)}}return l.defaultWindow=Br,l.defaultFetch=Fr,l})();var{defaultFetch:In}=dr,Mn=typeof DOMParser<"u"?DOMParser:null;class Xe{constructor(){var{fetch:t=In,DOMParser:e=Mn}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return c(function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)})()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch{return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return c(function*(){var r=yield e.fetch(t),a=yield r.text();return e.parseFromString(a)})()}}class Ur{constructor(t,e){this.type="translate",this.point=null,this.point=It.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class jr{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var a=H(e);this.angle=new _(t,"angle",a[0]),this.originX=r[0],this.originY=r[1],this.cx=a[1]||0,this.cy=a[2]||0}apply(t){var{cx:e,cy:r,originX:a,originY:i,angle:o}=this,s=e+a.getPixels("x"),u=r+i.getPixels("y");t.translate(s,u),t.rotate(o.getRadians()),t.translate(-s,-u)}unapply(t){var{cx:e,cy:r,originX:a,originY:i,angle:o}=this,s=e+a.getPixels("x"),u=r+i.getPixels("y");t.translate(s,u),t.rotate(-1*o.getRadians()),t.translate(-s,-u)}applyToPoint(t){var{cx:e,cy:r,angle:a}=this,i=a.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class Gr{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var a=It.parseScale(e);(0===a.x||0===a.y)&&(a.x=be,a.y=be),this.scale=a,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:a,originY:i}=this,o=a.getPixels("x"),s=i.getPixels("y");t.translate(o,s),t.scale(e,r||e),t.translate(-o,-s)}unapply(t){var{scale:{x:e,y:r},originX:a,originY:i}=this,o=a.getPixels("x"),s=i.getPixels("y");t.translate(o,s),t.scale(1/e,1/r||e),t.translate(-o,-s)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class pr{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=H(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:a}=this,i=e.getPixels("x"),o=r.getPixels("y");t.translate(i,o),t.transform(a[0],a[1],a[2],a[3],a[4],a[5]),t.translate(-i,-o)}unapply(t){var{originX:e,originY:r,matrix:a}=this,i=a[0],o=a[2],s=a[4],u=a[1],f=a[3],p=a[5],N=1/(i*(1*f-0*p)-o*(1*u-0*p)+s*(0*u-0*f)),V=e.getPixels("x"),L=r.getPixels("y");t.translate(V,L),t.transform(N*(1*f-0*p),N*(0*p-1*u),N*(0*s-1*o),N*(1*i-0*s),N*(o*p-s*f),N*(s*u-i*p)),t.translate(-V,-L)}applyToPoint(t){t.applyTransform(this.matrix)}}class yr extends pr{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new _(t,"angle",e)}}class zr extends yr{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class $r extends yr{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}let We=(()=>{class l{constructor(e,r,a){this.document=e,this.transforms=[];var i=function wn(l){return $t(l).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r);i.forEach(o=>{if("none"!==o){var[s,u]=function Vn(l){var[t,e]=l.split("(");return[t.trim(),e.trim().replace(")","")]}(o),f=l.transformTypes[s];typeof f<"u"&&this.transforms.push(new f(this.document,u,a))}})}static fromElement(e,r){var a=r.getStyle("transform",!1,!0),[i,o=i]=r.getStyle("transform-origin",!1,!0).split(),s=[i,o];return a.hasValue()?new l(e,a.getString(),s):null}apply(e){for(var{transforms:r}=this,a=r.length,i=0;i<a;i++)r[i].apply(e)}unapply(e){for(var{transforms:r}=this,i=r.length-1;i>=0;i--)r[i].unapply(e)}applyToPoint(e){for(var{transforms:r}=this,a=r.length,i=0;i<a;i++)r[i].applyToPoint(e)}}return l.transformTypes={translate:Ur,rotate:jr,scale:Gr,matrix:pr,skewX:zr,skewY:$r},l})(),Mt=(()=>{class l{constructor(e,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=r,this.captureTextNodes=a,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){Array.from(r.attributes).forEach(u=>{var f=mt(u.nodeName);this.attributes[f]=new _(e,f,u.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(u=>u.trim()).forEach(u=>{if(u){var[f,p]=u.split(":").map(E=>E.trim());this.styles[f]=new _(e,f,p)}});var{definitions:o}=e,s=this.getAttribute("id");s.hasValue()&&(o[s.getString()]||(o[s.getString()]=this)),Array.from(r.childNodes).forEach(u=>{if(1===u.nodeType)this.addChild(u);else if(a&&(3===u.nodeType||4===u.nodeType)){var f=e.createTextNode(u);f.getText().length>0&&this.addChild(f)}})}}getAttribute(e){var a=this.attributes[e];if(!a&&arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var i=new _(this.document,e,"");return this.attributes[e]=i,i}return a||_.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return _.empty(this.document)}getStyle(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.styles[e];if(i)return i;var o=this.getAttribute(e);if(null!=o&&o.hasValue())return this.styles[e]=o,o;if(!a){var{parent:s}=this;if(s){var u=s.getStyle(e);if(null!=u&&u.hasValue())return u}}if(r){var f=new _(this.document,e,"");return this.styles[e]=f,f}return i||_.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var r=this.getStyle("mask").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var a=this.getStyle("filter").getDefinition();a&&(this.applyEffects(e),a.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var r=We.fromElement(this.document,this);r&&r.apply(e);var a=this.getStyle("clip-path",!1,!0);if(a.hasValue()){var i=a.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(r=>{r.render(e)})}addChild(e){var r=e instanceof l?e:this.document.createElement(e);r.parent=this,l.ignoreChildTypes.includes(r.type)||this.children.push(r)}matchesSelector(e){var r,{node:a}=this;if("function"==typeof a.matches)return a.matches(e);var i=null===(r=a.getAttribute)||void 0===r?void 0:r.call(a,"class");return!(!i||""===i)&&i.split(" ").some(o=>".".concat(o)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:r}=this.document;for(var a in e)if(!a.startsWith("@")&&this.matchesSelector(a)){var i=e[a],o=r[a];if(i)for(var s in i){var u=this.stylesSpecificity[s];typeof u>"u"&&(u="000"),o>=u&&(this.styles[s]=i[s],this.stylesSpecificity[s]=o)}}}removeStyles(e,r){return r.reduce((i,o)=>{var s=e.getStyle(o);if(!s.hasValue())return i;var u=s.getString();return s.setValue(""),[...i,[o,u]]},[])}restoreStyles(e,r){r.forEach(a=>{var[i,o]=a;e.getStyle(i,!0).setValue(o)})}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}}return l.ignoreChildTypes=["title"],l})();class Hr extends Mt{constructor(t,e,r){super(t,e,r)}}function Dn(l){var t=l.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function Ln(l){return typeof process>"u"?l:l.trim().split(",").map(Dn).join(",")}function Bn(l){if(!l)return"";var t=l.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function Fn(l){if(!l)return"";var t=l.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}let Se=(()=>{class l{constructor(e,r,a,i,o,s){var u=s?"string"==typeof s?l.parse(s):s:{};this.fontFamily=o||u.fontFamily,this.fontSize=i||u.fontSize,this.fontStyle=e||u.fontStyle,this.fontWeight=a||u.fontWeight,this.fontVariant=r||u.fontVariant}static parse(){var r=arguments.length>1?arguments[1]:void 0,a="",i="",o="",s="",u="",f=$t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),p={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return f.forEach(E=>{switch(!0){case!p.fontStyle&&l.styles.includes(E):"inherit"!==E&&(a=E),p.fontStyle=!0;break;case!p.fontVariant&&l.variants.includes(E):"inherit"!==E&&(i=E),p.fontStyle=!0,p.fontVariant=!0;break;case!p.fontWeight&&l.weights.includes(E):"inherit"!==E&&(o=E),p.fontStyle=!0,p.fontVariant=!0,p.fontWeight=!0;break;case!p.fontSize:"inherit"!==E&&([s]=E.split("/")),p.fontStyle=!0,p.fontVariant=!0,p.fontWeight=!0,p.fontSize=!0;break;default:"inherit"!==E&&(u+=E)}}),new l(a,i,o,s,u,r)}toString(){return[Bn(this.fontStyle),this.fontVariant,Fn(this.fontWeight),this.fontSize,Ln(this.fontFamily)].join(" ").trim()}}return l.styles="normal|italic|oblique|inherit",l.variants="normal|small-caps|inherit",l.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",l})();class kt{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=a,this.addPoint(t,e),this.addPoint(r,a)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){typeof t<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),typeof e<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:a,y2:i}=t;this.addPoint(e,r),this.addPoint(a,i)}}sumCubic(t,e,r,a,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*a+Math.pow(t,3)*i}bezierCurveAdd(t,e,r,a,i){var o=6*e-12*r+6*a,s=-3*e+9*r-9*a+3*i,u=3*r-3*e;if(0!==s){var p=Math.pow(o,2)-4*u*s;if(!(p<0)){var E=(-o+Math.sqrt(p))/(2*s);0<E&&E<1&&(t?this.addX(this.sumCubic(E,e,r,a,i)):this.addY(this.sumCubic(E,e,r,a,i)));var T=(-o-Math.sqrt(p))/(2*s);0<T&&T<1&&(t?this.addX(this.sumCubic(T,e,r,a,i)):this.addY(this.sumCubic(T,e,r,a,i)))}}else{if(0===o)return;var f=-u/o;0<f&&f<1&&(t?this.addX(this.sumCubic(f,e,r,a,i)):this.addY(this.sumCubic(f,e,r,a,i)))}}addBezierCurve(t,e,r,a,i,o,s,u){this.addPoint(t,e),this.addPoint(s,u),this.bezierCurveAdd(!0,t,r,i,s),this.bezierCurveAdd(!1,e,a,o,u)}addQuadraticCurve(t,e,r,a,i,o){var s=t+.6666666666666666*(r-t),u=e+2/3*(a-e);this.addBezierCurve(t,e,s,s+1/3*(i-t),u,u+1/3*(o-e),i,o)}isPointInBox(t,e){var{x1:r,y1:a,x2:i,y2:o}=this;return r<=t&&t<=i&&a<=e&&e<=o}}class nt extends w{constructor(t){super(t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new It(0,0),this.control=new It(0,0),this.current=new It(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:e}=this;return t>=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var r=new It(this.command[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x"],this.command[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y"]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==w.CURVE_TO&&t!==w.SMOOTH_CURVE_TO&&t!==w.QUAD_TO&&t!==w.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:a,y:i}}=this;return new It(2*e-a,2*r-i)}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:a,angles:i}=this;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=a[a.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r<e;r++)if(!t[r])for(var a=r+1;a<e;a++)if(t[a]){t[r]=t[a];break}return t}}class ge extends Mt{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),a=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,a);s&&(t.fillStyle=s)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();"inherit"!==u&&(t.fillStyle="none"===u?"rgba(0,0,0,0)":u)}if(a.hasValue()){var f=new _(this.document,"fill",t.fillStyle).addOpacity(a).getColor();t.fillStyle=f}if(i.isUrlDefinition()){var p=i.getFillStyleDefinition(this,o);p&&(t.strokeStyle=p)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var E=i.getString();"inherit"!==E&&(t.strokeStyle="none"===E?"rgba(0,0,0,0)":E)}if(o.hasValue()){var T=new _(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=T}var x=this.getStyle("stroke-width");if(x.hasValue()){var N=x.getPixels();t.lineWidth=N||be}var V=this.getStyle("stroke-linecap"),L=this.getStyle("stroke-linejoin"),U=this.getStyle("stroke-miterlimit"),K=this.getStyle("stroke-dasharray"),$=this.getStyle("stroke-dashoffset");if(V.hasValue()&&(t.lineCap=V.getString()),L.hasValue()&&(t.lineJoin=L.getString()),U.hasValue()&&(t.miterLimit=U.getNumber()),K.hasValue()&&"none"!==K.getString()){var j=H(K.getString());typeof t.setLineDash<"u"?t.setLineDash(j):typeof t.webkitLineDash<"u"?t.webkitLineDash=j:typeof t.mozDash<"u"&&(1!==j.length||0!==j[0])&&(t.mozDash=j);var q=$.getPixels();typeof t.lineDashOffset<"u"?t.lineDashOffset=q:typeof t.webkitLineDashOffset<"u"?t.webkitLineDashOffset=q:typeof t.mozDashOffset<"u"&&(t.mozDashOffset=q)}}if(this.modifiedEmSizeStack=!1,typeof t.font<"u"){var at=this.getStyle("font"),W=this.getStyle("font-style"),ht=this.getStyle("font-variant"),dt=this.getStyle("font-weight"),Et=this.getStyle("font-size"),bt=this.getStyle("font-family"),Ct=new Se(W.getString(),ht.getString(),dt.getString(),Et.hasValue()?"".concat(Et.getPixels(!0),"px"):"",bt.getString(),Se.parse(at.getString(),t.font));W.setValue(Ct.fontStyle),ht.setValue(Ct.fontVariant),dt.setValue(Ct.fontWeight),Et.setValue(Ct.fontSize),bt.setValue(Ct.fontFamily),t.font=Ct.toString(),Et.isPixels()&&(this.document.emSize=Et.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Ot extends ge{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new nt(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new kt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case nt.MOVE_TO:this.pathM(t,r);break;case nt.LINE_TO:this.pathL(t,r);break;case nt.HORIZ_LINE_TO:this.pathH(t,r);break;case nt.VERT_LINE_TO:this.pathV(t,r);break;case nt.CURVE_TO:this.pathC(t,r);break;case nt.SMOOTH_CURVE_TO:this.pathS(t,r);break;case nt.QUAD_TO:this.pathQ(t,r);break;case nt.SMOOTH_QUAD_TO:this.pathT(t,r);break;case nt.ARC:this.pathA(t,r);break;case nt.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map((i,o)=>[i,r[o]])}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var a=r.length-1,i=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var u=i.getDefinition(),[f,p]=r[0];u.render(t,f,p)}if(o.isUrlDefinition())for(var E=o.getDefinition(),T=1;T<a;T++){var[x,N]=r[T];E.render(t,x,N)}if(s.isUrlDefinition()){var V=s.getDefinition(),[L,U]=r[a];V.render(t,L,U)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:r}=this,{point:a}=Ot.pathM(r),{x:i,y:o}=a;r.addMarker(a),e.addPoint(i,o),t&&t.moveTo(i,o)}static pathL(t){var{current:e}=t;return{current:e,point:t.getAsCurrentPoint()}}pathL(t,e){var{pathParser:r}=this,{current:a,point:i}=Ot.pathL(r),{x:o,y:s}=i;r.addMarker(i,a),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathH(t){var{current:e,command:r}=t,a=new It((r.relative?e.x:0)+r.x,e.y);return t.current=a,{current:e,point:a}}pathH(t,e){var{pathParser:r}=this,{current:a,point:i}=Ot.pathH(r),{x:o,y:s}=i;r.addMarker(i,a),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathV(t){var{current:e,command:r}=t,a=new It(e.x,(r.relative?e.y:0)+r.y);return t.current=a,{current:e,point:a}}pathV(t,e){var{pathParser:r}=this,{current:a,point:i}=Ot.pathV(r),{x:o,y:s}=i;r.addMarker(i,a),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathC(t){var{current:e}=t;return{current:e,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathC(t,e){var{pathParser:r}=this,{current:a,point:i,controlPoint:o,currentPoint:s}=Ot.pathC(r);r.addMarker(s,o,i),e.addBezierCurve(a.x,a.y,i.x,i.y,o.x,o.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,o.x,o.y,s.x,s.y)}static pathS(t){var{current:e}=t;return{current:e,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathS(t,e){var{pathParser:r}=this,{current:a,point:i,controlPoint:o,currentPoint:s}=Ot.pathS(r);r.addMarker(s,o,i),e.addBezierCurve(a.x,a.y,i.x,i.y,o.x,o.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,o.x,o.y,s.x,s.y)}static pathQ(t){var{current:e}=t;return{current:e,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}pathQ(t,e){var{pathParser:r}=this,{current:a,controlPoint:i,currentPoint:o}=Ot.pathQ(r);r.addMarker(o,i,i),e.addQuadraticCurve(a.x,a.y,i.x,i.y,o.x,o.y),t&&t.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathT(t){var{current:e}=t,r=t.getReflectedControlPoint();return t.control=r,{current:e,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}pathT(t,e){var{pathParser:r}=this,{current:a,controlPoint:i,currentPoint:o}=Ot.pathT(r);r.addMarker(o,i,i),e.addQuadraticCurve(a.x,a.y,i.x,i.y,o.x,o.y),t&&t.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathA(t){var{current:e,command:r}=t,{rX:a,rY:i,xRot:o,lArcFlag:s,sweepFlag:u}=r,f=o*(Math.PI/180),p=t.getAsCurrentPoint(),E=new It(Math.cos(f)*(e.x-p.x)/2+Math.sin(f)*(e.y-p.y)/2,-Math.sin(f)*(e.x-p.x)/2+Math.cos(f)*(e.y-p.y)/2),T=Math.pow(E.x,2)/Math.pow(a,2)+Math.pow(E.y,2)/Math.pow(i,2);T>1&&(a*=Math.sqrt(T),i*=Math.sqrt(T));var x=(s===u?-1:1)*Math.sqrt((Math.pow(a,2)*Math.pow(i,2)-Math.pow(a,2)*Math.pow(E.y,2)-Math.pow(i,2)*Math.pow(E.x,2))/(Math.pow(a,2)*Math.pow(E.y,2)+Math.pow(i,2)*Math.pow(E.x,2)));isNaN(x)&&(x=0);var N=new It(x*a*E.y/i,x*-i*E.x/a),V=new It((e.x+p.x)/2+Math.cos(f)*N.x-Math.sin(f)*N.y,(e.y+p.y)/2+Math.sin(f)*N.x+Math.cos(f)*N.y),L=or([1,0],[(E.x-N.x)/a,(E.y-N.y)/i]),U=[(E.x-N.x)/a,(E.y-N.y)/i],K=[(-E.x-N.x)/a,(-E.y-N.y)/i],$=or(U,K);return Ye(U,K)<=-1&&($=Math.PI),Ye(U,K)>=1&&($=0),{currentPoint:p,rX:a,rY:i,sweepFlag:u,xAxisRotation:f,centp:V,a1:L,ad:$}}pathA(t,e){var{pathParser:r}=this,{currentPoint:a,rX:i,rY:o,sweepFlag:s,xAxisRotation:u,centp:f,a1:p,ad:E}=Ot.pathA(r),T=1-s?1:-1,x=p+T*(E/2),N=new It(f.x+i*Math.cos(x),f.y+o*Math.sin(x));if(r.addMarkerAngle(N,x-T*Math.PI/2),r.addMarkerAngle(a,x-T*Math.PI),e.addPoint(a.x,a.y),t&&!isNaN(p)&&!isNaN(E)){var V=i>o?i:o,L=i>o?1:i/o,U=i>o?o/i:1;t.translate(f.x,f.y),t.rotate(u),t.scale(L,U),t.arc(0,0,V,p,p+E,!!(1-s)),t.scale(1/L,1/U),t.rotate(-u),t.translate(-f.x,-f.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){Ot.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class mr extends Ot{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class ie extends ge{constructor(t,e,r){super(t,e,new.target===ie||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){super.setContext(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach((r,a)=>{var i=this.getChildBoundingBox(t,this,this,a);e?e.addBoundingBox(i):e=i}),e}getFontSize(){var{document:t,parent:e}=this,r=Se.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new kt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var a=e[r],i=null;if(t.isArabic){var o=e.length,s=e[r-1],u=e[r+1],f="isolated";if((0===r||" "===s)&&r<o-1&&" "!==u&&(f="terminal"),r>0&&" "!==s&&r<o-1&&" "!==u&&(f="medial"),r>0&&" "!==s&&(r===o-1||" "===u)&&(f="initial"),typeof t.glyphs[a]<"u"){var p=t.glyphs[a];i=p instanceof mr?p:p[f]}}else i=t.glyphs[a];return i||(i=t.missingGlyph),i}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),a=r.indexOf(e),i=r.length-1,o=$t(e.textContent||"");return 0===a&&(o=ae(o)),a===i&&(o=we(o)),o}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((r,a)=>{this.renderChild(t,this,this,a)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,a=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var{unitsPerEm:o}=i.fontFace,s=Se.parse(e.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),f=r.getStyle("font-style").getString(s.fontStyle),p=u/o,E=i.isRTL?a.split("").reverse().join(""):a,T=H(r.getAttribute("dx").getString()),x=E.length,N=0;N<x;N++){var V=this.getGlyph(i,E,N);t.translate(this.x,this.y),t.scale(p,-p);var L=t.lineWidth;t.lineWidth=t.lineWidth*o/u,"italic"===f&&t.transform(1,0,.4,1,0,0),V.render(t),"italic"===f&&t.transform(1,0,-.4,1,0,0),t.lineWidth=L,t.scale(1/p,-1/p),t.translate(-this.x,-this.y),this.x+=u*(V.horizAdvX||i.horizAdvX)/o,typeof T[N]<"u"&&!isNaN(T[N])&&(this.x+=T[N])}else{var{x:U,y:K}=this;t.fillStyle&&t.fillText(a,U,K),t.strokeStyle&&t.strokeText(a,U,K)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var a,t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start");a="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=a;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(t){this.children.forEach((e,r)=>{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,r,a){var i=r.children[a];i.children.length>0?i.children.forEach((o,s)=>{e.adjustChildCoordinatesRecursiveCore(t,e,i,s)}):this.adjustChildCoordinates(t,e,r,a)}adjustChildCoordinates(t,e,r,a){var i=r.children[a];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var o=i.getAttribute("x"),s=i.getAttribute("y"),u=i.getAttribute("dx"),f=i.getAttribute("dy"),p=i.getStyle("font-family").getDefinition(),E=!!p&&p.isRTL;0===a&&(o.hasValue()||o.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),u.hasValue()||u.setValue(i.getInheritedAttribute("dx")),f.hasValue()||f.setValue(i.getInheritedAttribute("dy")));var T=i.measureText(t);return E&&(e.x-=T),o.hasValue()?(e.applyAnchoring(),i.x=o.getPixels("x"),u.hasValue()&&(i.x+=u.getPixels("x"))):(u.hasValue()&&(e.x+=u.getPixels("x")),i.x=e.x),e.x=i.x,E||(e.x+=T),s.hasValue()?(i.y=s.getPixels("y"),f.hasValue()&&(i.y+=f.getPixels("y"))):(f.hasValue()&&(e.y+=f.getPixels("y")),i.y=e.y),e.y=i.y,e.leafTexts.push(i),e.minX=Math.min(e.minX,i.x,i.x+T),e.maxX=Math.max(e.maxX,i.x,i.x+T),i.clearContext(t),t.restore(),i}getChildBoundingBox(t,e,r,a){var i=r.children[a];if("function"!=typeof i.getBoundingBox)return null;var o=i.getBoundingBox(t);return o?(i.children.forEach((s,u)=>{var f=e.getChildBoundingBox(t,e,i,u);o.addBoundingBox(f)}),o):null}renderChild(t,e,r,a){var i=r.children[a];i.render(t),i.children.forEach((o,s)=>{e.renderChild(t,e,i,s)})}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),a=this.measureTargetText(t,r);return this.measureCache=a,a}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,a=r.getStyle("font-family").getDefinition();if(a){for(var i=this.getFontSize(),o=a.isRTL?e.split("").reverse().join(""):e,s=H(r.getAttribute("dx").getString()),u=o.length,f=0,p=0;p<u;p++)f+=(this.getGlyph(a,o,p).horizAdvX||a.horizAdvX)*i/a.fontFace.unitsPerEm,typeof s[p]<"u"&&!isNaN(s[p])&&(f+=s[p]);return f}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var{width:T}=t.measureText(e);return this.clearContext(t),t.restore(),T}getInheritedAttribute(t){for(var e=this;e instanceof ie&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}}class je extends ie{constructor(t,e,r){super(t,e,new.target===je||r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Un extends je{constructor(){super(...arguments),this.type="textNode"}}class De extends ge{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:a,window:i}=r,o=t.canvas;if(a.setDefaults(t),o.style&&typeof t.font<"u"&&i&&typeof i.getComputedStyle<"u"){t.font=i.getComputedStyle(o).getPropertyValue("font");var s=new _(r,"fontSize",Se.parse(t.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:u,height:f}=a.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var p=this.getAttribute("refX"),E=this.getAttribute("refY"),T=this.getAttribute("viewBox"),x=T.hasValue()?H(T.getString()):null,N=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),V=0,L=0,U=0,K=0;x&&(V=x[0],L=x[1]),this.root||(u=this.getStyle("width").getPixels("x"),f=this.getStyle("height").getPixels("y"),"marker"===this.type&&(U=V,K=L,V=0,L=0)),a.viewPort.setCurrent(u,f),this.node&&(!this.parent||"foreignObject"===(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName))&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),x&&(u=x[2],f=x[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a.viewPort.width,desiredWidth:u,height:a.viewPort.height,desiredHeight:f,minX:V,minY:L,refX:p.getValue(),refY:E.getValue(),clip:N,clipX:U,clipY:K}),x&&(a.viewPort.removeCurrent(),a.viewPort.setCurrent(u,f))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=a.getNumber(0),f=i.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var p=this.getAttribute("preserveAspectRatio");p.hasValue()&&p.setValue(p.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(a.setValue(t),i.setValue(e),o.hasValue()||o.setValue("0 0 ".concat(u||t," ").concat(f||e)),s.hasValue()){var E=this.getStyle("width"),T=this.getStyle("height");E.hasValue()&&E.setValue("".concat(t,"px")),T.hasValue()&&T.setValue("".concat(e,"px"))}}}class xr extends Ot{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),a=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),f=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(f=u),s.hasValue()&&!o.hasValue()&&(u=f),u=Math.min(u,a/2),f=Math.min(f,i/2),t){var p=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&a>0&&(t.moveTo(e+u,r),t.lineTo(e+a-u,r),t.bezierCurveTo(e+a-u+p*u,r,e+a,r+f-p*f,e+a,r+f),t.lineTo(e+a,r+i-f),t.bezierCurveTo(e+a,r+i-f+p*f,e+a-u+p*u,r+i,e+a-u,r+i),t.lineTo(e+u,r+i),t.bezierCurveTo(e+u-p*u,r+i,e,r+i-f+p*f,e,r+i-f),t.lineTo(e,r+f),t.bezierCurveTo(e,r+f-p*f,e+u-p*u,r,e+u,r),t.closePath())}return new kt(e,r,e+a,r+i)}getMarkers(){return null}}class Yr extends Ot{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),a=this.getAttribute("r").getPixels();return t&&a>0&&(t.beginPath(),t.arc(e,r,a,0,2*Math.PI,!1),t.closePath()),new kt(e-a,r-a,e+a,r+a)}getMarkers(){return null}}class Xr extends Ot{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),a=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&r>0&&a>0&&(t.beginPath(),t.moveTo(i+r,o),t.bezierCurveTo(i+r,o+e*a,i+e*r,o+a,i,o+a),t.bezierCurveTo(i-e*r,o+a,i-r,o+e*a,i-r,o),t.bezierCurveTo(i-r,o-e*a,i-e*r,o-a,i,o-a),t.bezierCurveTo(i+e*r,o-a,i+r,o-e*a,i+r,o),t.closePath()),new kt(i-r,o-a,i+r,o+a)}getMarkers(){return null}}class Wr extends Ot{constructor(){super(...arguments),this.type="line"}getPoints(){return[new It(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new It(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:a,y:i}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(a,i)),new kt(e,r,a,i)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class Er extends Ot{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=It.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:a}]=e,i=new kt(r,a);return t&&(t.beginPath(),t.moveTo(r,a)),e.forEach(o=>{var{x:s,y:u}=o;i.addPoint(s,u),t&&t.lineTo(s,u)}),i}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((a,i)=>{i!==e&&r.push([a,a.angleTo(t[i+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class Qr extends Er{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:a}]=this.points;return t&&(t.lineTo(r,a),t.closePath()),e}}class Kr extends Mt{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var a=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new De(this.document,null);o.attributes.viewBox=new _(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new _(this.document,"width","".concat(a,"px")),o.attributes.height=new _(this.document,"height","".concat(i,"px")),o.attributes.transform=new _(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(a,i),u=s.getContext("2d"),f=this.getAttribute("x"),p=this.getAttribute("y");f.hasValue()&&p.hasValue()&&u.translate(f.getPixels("x",!0),p.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var E=-1;E<=1;E++)for(var T=-1;T<=1;T++)u.save(),o.attributes.x=new _(this.document,"x",E*s.width),o.attributes.y=new _(this.document,"y",T*s.height),o.render(u),u.restore();return t.createPattern(s,"repeat")}}class kr extends Mt{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:a,y:i}=e,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(a,i),"auto"===o&&t.rotate(r),"strokeWidth"===s&&t.scale(t.lineWidth,t.lineWidth),t.save();var u=new De(this.document,null);u.type=this.type,u.attributes.viewBox=new _(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new _(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new _(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new _(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new _(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new _(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new _(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new _(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(t),t.restore(),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-r),t.translate(-a,-i)}}}class Zr extends Mt{constructor(){super(...arguments),this.type="defs"}render(){}}class Qe extends ge{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new kt;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class Tr extends Mt{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:a,children:i}=this;i.forEach(o=>{"stop"===o.type&&a.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var a=this;this.getHrefAttribute().hasValue()&&(a=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(a));var{stops:i}=a,o=this.getGradient(t,e);if(!o)return this.addParentOpacity(r,i[i.length-1].color);if(i.forEach(L=>{o.addColorStop(L.offset,this.addParentOpacity(r,L.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:f}=s.screen,[p]=f.viewPorts,E=new xr(s,null);E.attributes.x=new _(s,"x",-u/3),E.attributes.y=new _(s,"y",-u/3),E.attributes.width=new _(s,"width",u),E.attributes.height=new _(s,"height",u);var T=new Qe(s,null);T.attributes.transform=new _(s,"transform",this.getAttribute("gradientTransform").getValue()),T.children=[E];var x=new De(s,null);x.attributes.x=new _(s,"x",0),x.attributes.y=new _(s,"y",0),x.attributes.width=new _(s,"width",p.width),x.attributes.height=new _(s,"height",p.height),x.children=[T];var N=s.createCanvas(p.width,p.height),V=N.getContext("2d");return V.fillStyle=o,x.render(V),V.createPattern(N,"no-repeat")}return o}inheritStopContainer(t){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}addParentOpacity(t,e){return t.hasValue()?new _(this.document,"color",e).addOpacity(t).getColor():e}}class Jr extends Tr{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),a=r?e.getBoundingBox(t):null;if(r&&!a)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 i=r?a.x+a.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?a.y+a.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?a.x+a.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?a.y+a.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&o===u?null:t.createLinearGradient(i,o,s,u)}}class qr extends Tr{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),a=e.getBoundingBox(t);if(r&&!a)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 i=r?a.x+a.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?a.y+a.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,u=o;this.getAttribute("fx").hasValue()&&(s=r?a.x+a.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?a.y+a.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var f=r?(a.width+a.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),p=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,u,p,i,o,f)}}class _r extends Mt{constructor(t,e,r){super(t,e,r),this.type="stop";var a=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);""===o.getString()&&o.setValue("#000"),i.hasValue()&&(o=o.addOpacity(i)),this.offset=a,this.color=o.getColor()}}class Ke extends Mt{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new _(t,"values",null);var a=this.getAttribute("values");a.hasValue()&&this.values.setValue(a.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:a}=this.getProgress(),i=r.getNumber()+(a.getNumber()-r.getNumber())*e;return"%"===t&&(i*=100),"".concat(i).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var a=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==a||this.frozen){if("remove"===a&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var i=!1;if(this.begin<this.duration){var o=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var u=s.getString();o="".concat(u,"(").concat(o,")")}r.setValue(o),i=!0}return i}getProgress(){var{document:t,values:e}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var a=r.progress*(e.getValue().length-1),i=Math.floor(a),o=Math.ceil(a);r.from=new _(t,"from",parseFloat(e.getValue()[i])),r.to=new _(t,"to",parseFloat(e.getValue()[o])),r.progress=(a-i)/(o-i)}else r.from=this.from,r.to=this.to;return r}}class tn extends Ke{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),a=new G(e.getColor()),i=new G(r.getColor());if(a.ok&&i.ok){var s=a.g+(i.g-a.g)*t,u=a.b+(i.b-a.b)*t;return"rgb(".concat(Math.floor(a.r+(i.r-a.r)*t),", ").concat(Math.floor(s),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}}class en extends Ke{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),a=H(e.getString()),i=H(r.getString());return a.map((s,u)=>s+(i[u]-s)*t).join(" ")}}class rn extends Mt{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:a}=t,{children:i}=this;for(var o of i)switch(o.type){case"font-face":this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(a[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=o;break;case"glyph":var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]>"u"&&(this.glyphs[u.unicode]=Object.create(null)),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u}}render(){}}class nn extends Mt{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class an extends Ot{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class sn extends ie{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class on extends ie{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:a}=e,i=a[0],o=a.length>0&&Array.from(a).every(s=>3===s.nodeType);this.hasText=o,this.text=o?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:a}=this,{mouse:i}=e.screen,o=new _(e,"fontSize",Se.parse(e.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new kt(r,a-o.getPixels("y"),r+this.measureText(t),a))}else if(this.children.length>0){var s=new Qe(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function un(l,t){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),e.push.apply(e,r)}return e}function ke(l){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?un(Object(e),!0).forEach(function(r){A(l,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(e)):un(Object(e)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(e,r))})}return l}class ln extends ie{constructor(t,e,r){super(t,e,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var a=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(a)}getText(){return this.text}path(t){var{dataArray:e}=this;t&&t.beginPath(),e.forEach(r=>{var{type:a,points:i}=r;switch(a){case nt.LINE_TO:t&&t.lineTo(i[0],i[1]);break;case nt.MOVE_TO:t&&t.moveTo(i[0],i[1]);break;case nt.CURVE_TO:t&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case nt.QUAD_TO:t&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case nt.ARC:var[o,s,u,f,p,E,T,x]=i,N=u>f?u:f,V=u>f?1:u/f,L=u>f?f/u:1;t&&(t.translate(o,s),t.rotate(T),t.scale(V,L),t.arc(0,0,N,p,p+E,!!(1-x)),t.scale(1/V,1/L),t.rotate(-T),t.translate(-o,-s));break;case nt.CLOSE_PATH:t&&t.closePath()}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:a}=this,i=t.fillStyle;"underline"===e&&t.beginPath(),a.forEach((o,s)=>{var{p0:u,p1:f,rotation:p,text:E}=o;t.save(),t.translate(u.x,u.y),t.rotate(p),t.fillStyle&&t.fillText(E,0,0),t.strokeStyle&&t.strokeText(E,0,0),t.restore(),"underline"===e&&(0===s&&t.moveTo(u.x,u.y+r/8),t.lineTo(f.x,f.y+r/5))}),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){return this.letterSpacingCache[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0]||0}findSegmentToFitChar(t,e,r,a,i,o,s,u,f){var p=o,E=this.measureText(t,u);" "===u&&"justify"===e&&r<a&&(E+=(a-r)/i),f>-1&&(p+=this.getLetterSpacingAt(f));var T=this.textHeight/20,x=this.getEquidistantPointOnPath(p,T,0),N=this.getEquidistantPointOnPath(p+E,T,0),V={p0:x,p1:N},L=x&&N?Math.atan2(N.y-x.y,N.x-x.x):0;if(s){var U=Math.cos(Math.PI/2+L)*s,K=Math.cos(-L)*s;V.p0=ke(ke({},x),{},{x:x.x+U,y:x.y+K}),V.p1=ke(ke({},N),{},{x:N.x+U,y:N.y+K})}return{offset:p+=E,segment:V,rotation:L}}measureText(t,e){var{measuresCache:r}=this,a=e||this.getText();if(r.has(a))return r.get(a);var i=this.measureTargetText(t,a);return r.set(a,i),i}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),a=e.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(j=>j.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),f=this.parent.getStyle("letter-spacing"),p=0;u.hasValue()&&"inherit"!==u.getValue()?u.hasValue()&&"initial"!==u.getValue()&&"unset"!==u.getValue()&&(p=u.getPixels()):p=f.getPixels();var E=[],T=e.length;this.letterSpacingCache=E;for(var x=0;x<T;x++)E.push(typeof i[x]<"u"?i[x]:p);var N=E.reduce((j,q,at)=>0===at?0:j+q||0,0),V=this.measureText(t),L=Math.max(V+N,0);this.textWidth=V,this.textHeight=this.getFontSize(),this.glyphInfo=[];var U=this.getPathLength(),K=this.getStyle("startOffset").getNumber(0)*U,$=0;("middle"===s||"center"===s)&&($=-L/2),("end"===s||"right"===s)&&($=-L),$+=K,r.forEach((j,q)=>{var{offset:at,segment:W,rotation:ht}=this.findSegmentToFitChar(t,s,L,U,a,$,o,j,q);$=at,W.p0&&W.p1&&this.glyphInfo.push({text:r[q],p0:W.p0,p1:W.p1,rotation:ht})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:a}=r,i=a?a.x:0,o=a?a.y:0,s=r.next(),u=s.type,f=[];switch(s.type){case nt.MOVE_TO:this.pathM(r,f);break;case nt.LINE_TO:u=this.pathL(r,f);break;case nt.HORIZ_LINE_TO:u=this.pathH(r,f);break;case nt.VERT_LINE_TO:u=this.pathV(r,f);break;case nt.CURVE_TO:this.pathC(r,f);break;case nt.SMOOTH_CURVE_TO:u=this.pathS(r,f);break;case nt.QUAD_TO:this.pathQ(r,f);break;case nt.SMOOTH_QUAD_TO:u=this.pathT(r,f);break;case nt.ARC:f=this.pathA(r);break;case nt.CLOSE_PATH:Ot.pathZ(r)}e.push(s.type!==nt.CLOSE_PATH?{type:u,points:f,start:{x:i,y:o},pathLength:this.calcLength(i,o,u,f)}:{type:nt.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:a}=Ot.pathM(t).point;e.push(r,a)}pathL(t,e){var{x:r,y:a}=Ot.pathL(t).point;return e.push(r,a),nt.LINE_TO}pathH(t,e){var{x:r,y:a}=Ot.pathH(t).point;return e.push(r,a),nt.LINE_TO}pathV(t,e){var{x:r,y:a}=Ot.pathV(t).point;return e.push(r,a),nt.LINE_TO}pathC(t,e){var{point:r,controlPoint:a,currentPoint:i}=Ot.pathC(t);e.push(r.x,r.y,a.x,a.y,i.x,i.y)}pathS(t,e){var{point:r,controlPoint:a,currentPoint:i}=Ot.pathS(t);return e.push(r.x,r.y,a.x,a.y,i.x,i.y),nt.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:a}=Ot.pathQ(t);e.push(r.x,r.y,a.x,a.y)}pathT(t,e){var{controlPoint:r,currentPoint:a}=Ot.pathT(t);return e.push(r.x,r.y,a.x,a.y),nt.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:a,xAxisRotation:i,centp:o,a1:s,ad:u}=Ot.pathA(t);return 0===a&&u>0&&(u-=2*Math.PI),1===a&&u<0&&(u+=2*Math.PI),[o.x,o.y,e,r,s,u,i,a]}calcLength(t,e,r,a){var i=0,o=null,s=null,u=0;switch(r){case nt.LINE_TO:return this.getLineLength(t,e,a[0],a[1]);case nt.CURVE_TO:for(i=0,o=this.getPointOnCubicBezier(0,t,e,a[0],a[1],a[2],a[3],a[4],a[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,t,e,a[0],a[1],a[2],a[3],a[4],a[5]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case nt.QUAD_TO:for(i=0,o=this.getPointOnQuadraticBezier(0,t,e,a[0],a[1],a[2],a[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,t,e,a[0],a[1],a[2],a[3]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case nt.ARC:i=0;var f=a[4],p=a[5],E=a[4]+p,T=Math.PI/180;if(Math.abs(f-E)<T&&(T=Math.abs(f-E)),o=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],f,0),p<0)for(u=f-T;u>E;u-=T)s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],u,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=f+T;u<E;u+=T)s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],u,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],E,0),i+this.getLineLength(o.x,o.y,s.x,s.y)}return 0}getPointOnLine(t,e,r,a,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,u=(i-r)/(a-e+be),f=Math.sqrt(t*t/(1+u*u));a<e&&(f*=-1);var p=u*f,E=null;if(a===e)E={x:o,y:s+p};else if((s-r)/(o-e+be)===u)E={x:o+f,y:s+p};else{var T,x,N=this.getLineLength(e,r,a,i);if(N<be)return null;var V=(o-e)*(a-e)+(s-r)*(i-r),L=this.getLineLength(o,s,T=e+(V/=N*N)*(a-e),x=r+V*(i-r)),U=Math.sqrt(t*t-L*L);f=Math.sqrt(U*U/(1+u*u)),a<e&&(f*=-1),E={x:T+f,y:x+(p=u*f)}}return E}getPointOnPath(t){var e=this.getPathLength(),r=0,a=null;if(t<-5e-5||t-5e-5>e)return null;var{dataArray:i}=this;for(var o of i){if(!o||!(o.pathLength<5e-5||r+o.pathLength+5e-5<t)){var s=t-r,u=0;switch(o.type){case nt.LINE_TO:a=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case nt.ARC:var p=o.points[5],E=o.points[4]+p;if(u=o.points[4]+s/o.pathLength*p,p<0&&u<E||p>=0&&u>E)break;a=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break;case nt.CURVE_TO:(u=s/o.pathLength)>1&&(u=1),a=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case nt.QUAD_TO:(u=s/o.pathLength)>1&&(u=1),a=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3])}if(a)return a;break}r+=o.pathLength}return null}getLineLength(t,e,r,a){return Math.sqrt((r-t)*(r-t)+(a-e)*(a-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,a,i,o,s,u,f){return{x:u*ur(t)+o*lr(t)+a*hr(t)+e*fr(t),y:f*ur(t)+s*lr(t)+i*hr(t)+r*fr(t)}}getPointOnQuadraticBezier(t,e,r,a,i,o,s){return{x:o*vr(t)+a*cr(t)+e*gr(t),y:s*vr(t)+i*cr(t)+r*gr(t)}}getPointOnEllipticalArc(t,e,r,a,i,o){var s=Math.cos(o),u=Math.sin(o),f_x=r*Math.cos(i),f_y=a*Math.sin(i);return{x:t+(f_x*s-f_y*u),y:e+(f_x*u+f_y*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),a=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==a){this.equidistantCache={step:i,precision:a,points:[]};for(var o=0,s=0;s<=r;s+=a){var u=this.getPointOnPath(s),f=this.getPointOnPath(s+a);!u||!f||(o+=this.getLineLength(u.x,u.y,f.x,f.y))>=i&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=i)}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var a=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[a]||null}}var jn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class hn extends ge{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var a=this.getHrefAttribute().getString();if(a){var i=a.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(a);t.images.push(this),i?this.loadSvg(a):this.loadImage(a),this.isSvg=i}}loadImage(t){var e=this;return c(function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(a){console.error('Error while loading image "'.concat(t,'":'),a)}e.loaded=!0})()}loadSvg(t){var e=this;return c(function*(){var r=jn.exec(t);if(r){var a=r[5];e.image="base64"===r[4]?atob(a):decodeURIComponent(a)}else try{var i=yield e.document.fetch(t),o=yield i.text();e.image=o}catch(s){console.error('Error while loading image "'.concat(t,'":'),s)}e.loaded=!0})()}renderChildren(t){var{document:e,image:r,loaded:a}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(a&&r&&s&&u){if(t.save(),t.translate(i,o),this.isSvg){var f=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});f.document.documentElement.parent=this,f.render()}else{var p=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:p.width,height:u,desiredHeight:p.height}),this.loaded&&(typeof p.complete>"u"||p.complete)&&t.drawImage(p,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");return new kt(t,e,t+r,e+a)}}class fn extends ge{constructor(){super(...arguments),this.type="symbol"}render(t){}}class vn{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return c(function*(){try{var{document:a}=r,o=(yield a.canvg.parser.load(e)).getElementsByTagName("font");Array.from(o).forEach(s=>{var u=a.createElement(s);a.definitions[t]=u})}catch(s){console.error('Error while loading font "'.concat(e,'":'),s)}r.loaded=!0})()}}let cn=(()=>{class l extends Mt{constructor(e,r,a){super(e,r,a),this.type="style",$t(Array.from(r.childNodes).map(s=>s.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(s=>{var u=s.trim();if(u){var f=u.split("{"),p=f[0].split(","),E=f[1].split(";");p.forEach(T=>{var x=T.trim();if(x){var N=e.styles[x]||{};if(E.forEach(U=>{var K=U.indexOf(":"),$=U.substr(0,K).trim(),j=U.substr(K+1,U.length-K).trim();$&&j&&(N[$]=new _(e,$,j))}),e.styles[x]=N,e.stylesSpecificity[x]=Vr(x),"@font-face"===x){var V=N["font-family"].getString().replace(/"|'/g,"");N.src.getString().split(",").forEach(U=>{if(U.indexOf('format("svg")')>0){var K=yt(U);K&&new vn(e).load(V,K)}})}}})}})}}return l.parseExternalUrl=yt,l})();class gn extends ge{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var a=r;if("symbol"===r.type&&((a=new De(e,null)).attributes.viewBox=new _(e,"viewBox",r.getAttribute("viewBox").getString()),a.attributes.preserveAspectRatio=new _(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),a.attributes.overflow=new _(e,"overflow",r.getAttribute("overflow").getString()),a.children=r.children,r.styles.opacity=new _(e,"opacity",this.calculateOpacity())),"svg"===a.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(a.attributes.width=new _(e,"width",i.getString())),o.hasValue()&&(a.attributes.height=new _(e,"height",o.getString()))}var s=a.parent;a.parent=this,a.render(t),a.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return We.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function Ze(l,t,e,r,a,i){return l[e*r*4+4*t+i]}function Je(l,t,e,r,a,i,o){l[e*r*4+4*t+i]=o}function Dt(l,t,e){return l[t]*e}function se(l,t,e,r){return t+Math.cos(l)*e+Math.sin(l)*r}class Or extends Mt{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var a=H(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var i=a[0];a=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=a[0]*Math.PI/180;a=[se(o,.213,.787,-.213),se(o,.715,-.715,-.715),se(o,.072,-.072,.928),0,0,se(o,.213,-.213,.143),se(o,.715,.285,.14),se(o,.072,-.072,-.283),0,0,se(o,.213,-.213,-.787),se(o,.715,-.715,.715),se(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":a=[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]}this.matrix=a,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,a,i){for(var{includeOpacity:o,matrix:s}=this,u=t.getImageData(0,0,a,i),f=0;f<i;f++)for(var p=0;p<a;p++){var E=Ze(u.data,p,f,a,0,0),T=Ze(u.data,p,f,a,0,1),x=Ze(u.data,p,f,a,0,2),N=Ze(u.data,p,f,a,0,3),V=Dt(s,0,E)+Dt(s,1,T)+Dt(s,2,x)+Dt(s,3,N)+Dt(s,4,1),L=Dt(s,5,E)+Dt(s,6,T)+Dt(s,7,x)+Dt(s,8,N)+Dt(s,9,1),U=Dt(s,10,E)+Dt(s,11,T)+Dt(s,12,x)+Dt(s,13,N)+Dt(s,14,1),K=Dt(s,15,E)+Dt(s,16,T)+Dt(s,17,x)+Dt(s,18,N)+Dt(s,19,1);o&&(V=0,L=0,U=0,K*=N/255),Je(u.data,p,f,a,0,0,V),Je(u.data,p,f,a,0,1,L),Je(u.data,p,f,a,0,2,U),Je(u.data,p,f,a,0,3,K)}t.clearRect(0,0,a,i),t.putImageData(u,0,0)}}let dn=(()=>{class l extends Mt{constructor(){super(...arguments),this.type="mask"}apply(e,r){var{document:a}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!s&&!u){var f=new kt;this.children.forEach(V=>{f.addBoundingBox(V.getBoundingBox(e))}),i=Math.floor(f.x1),o=Math.floor(f.y1),s=Math.floor(f.width),u=Math.floor(f.height)}var p=this.removeStyles(r,l.ignoreStyles),E=a.createCanvas(i+s,o+u),T=E.getContext("2d");a.screen.setDefaults(T),this.renderChildren(T),new Or(a,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(T,0,0,i+s,o+u);var x=a.createCanvas(i+s,o+u),N=x.getContext("2d");a.screen.setDefaults(N),r.render(N),N.globalCompositeOperation="destination-in",N.fillStyle=T.createPattern(E,"no-repeat"),N.fillRect(0,0,i+s,o+u),e.fillStyle=N.createPattern(x,"no-repeat"),e.fillRect(0,0,i+s,o+u),this.restoreStyles(r,p)}render(e){}}return l.ignoreStyles=["mask","transform","clip-path"],l})();var pn=()=>{};class yn extends Mt{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:a,closePath:i}=t;r&&(r.beginPath=pn,r.closePath=pn),Reflect.apply(a,t,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=We.fromElement(e,o)),s&&s.apply(t),o.path(t),r&&(r.closePath=i),s&&s.unapply(t)}}),Reflect.apply(i,t,[]),t.clip(),r&&(r.beginPath=a,r.closePath=i)}render(t){}}let mn=(()=>{class l extends Mt{constructor(){super(...arguments),this.type="filter"}apply(e,r){var{document:a,children:i}=this,o=r.getBoundingBox(e);if(o){var s=0,u=0;i.forEach(K=>{var $=K.extraFilterDistance||0;s=Math.max(s,$),u=Math.max(u,$)});var f=Math.floor(o.width),p=Math.floor(o.height),E=f+2*s,T=p+2*u;if(!(E<1||T<1)){var x=Math.floor(o.x),N=Math.floor(o.y),V=this.removeStyles(r,l.ignoreStyles),L=a.createCanvas(E,T),U=L.getContext("2d");a.screen.setDefaults(U),U.translate(-x+s,-N+u),r.render(U),i.forEach(K=>{"function"==typeof K.apply&&K.apply(U,0,0,E,T)}),e.drawImage(L,0,0,E,T,x-s,N-u,E,T),this.restoreStyles(r,V)}}}render(e){}}return l.ignoreStyles=["filter","transform","clip-path"],l})();class xn extends Mt{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,a,i){}}class En extends Mt{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,a,i){}}class Tn extends Mt{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,a,i){}}class On extends Mt{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,a,i){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,f=t.canvas;f.id=o.getUniqueId(),u&&(f.style.display="none",u.appendChild(f)),qt(f,e,r,a,i,s),u&&u.removeChild(f)}}class bn extends Mt{constructor(){super(...arguments),this.type="title"}}class Sn extends Mt{constructor(){super(...arguments),this.type="desc"}}var Gn={svg:De,rect:xr,circle:Yr,ellipse:Xr,line:Wr,polyline:Er,polygon:Qr,path:Ot,pattern:Kr,marker:kr,defs:Zr,linearGradient:Jr,radialGradient:qr,stop:_r,animate:Ke,animateColor:tn,animateTransform:en,font:rn,"font-face":nn,"missing-glyph":an,glyph:mr,text:ie,tspan:je,tref:sn,a:on,textPath:ln,image:hn,g:Qe,symbol:fn,style:cn,use:gn,mask:dn,clipPath:yn,filter:mn,feDropShadow:xn,feMorphology:En,feComposite:Tn,feColorMatrix:Or,feGaussianBlur:On,title:bn,desc:Sn};function Cn(l,t){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),e.push.apply(e,r)}return e}function $n(l,t){var e=document.createElement("canvas");return e.width=l,e.height=t,e}function Hn(l){return br.apply(this,arguments)}function br(){return br=c(function*(l){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=document.createElement("img");return t&&(e.crossOrigin="Anonymous"),new Promise((r,a)=>{e.onload=()=>{r(e)},e.onerror=(i,o,s,u,f)=>{a(f)},e.src=l})}),br.apply(this,arguments)}let Pn=(()=>{class l{constructor(e){var{rootEmSize:r=12,emSize:a=12,createCanvas:i=l.createCanvas,createImage:o=l.createImage,anonymousCrossOrigin:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=r,this.emSize=a,this.createCanvas=i,this.createImage=this.bindCreateImage(o,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,r){return"boolean"==typeof r?(a,i)=>e(a,"boolean"==typeof i?i:r):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:r}=this;r.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var r=this.createElement(e.documentElement);return r.root=!0,r.addStylesFromStyleDefinition(),this.documentElement=r,r}createElement(e){var r=e.nodeName.replace(/^[^:]+:/,""),a=l.elementTypes[r];return typeof a<"u"?new a(this,e):new Hr(this,e)}createTextNode(e){return new Un(this,e)}setViewBox(e){this.screen.setViewBox(function zn(l){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(e),!0).forEach(function(r){A(l,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(e)):Cn(Object(e)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(e,r))})}return l}({document:this},e))}}return l.createCanvas=$n,l.createImage=Hn,l.elementTypes=Gn,l})();function An(l,t){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),e.push.apply(e,r)}return e}function Ce(l){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?An(Object(e),!0).forEach(function(r){A(l,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(e)):An(Object(e)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(e,r))})}return l}class Pe{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Xe(r),this.screen=new dr(t,r),this.options=r;var a=new Pn(this,r),i=a.createDocumentElement(e);this.document=a,this.documentElement=i}static from(t,e){var r=arguments;return c(function*(){var a=r.length>2&&void 0!==r[2]?r[2]:{},i=new Xe(a),o=yield i.parse(e);return new Pe(t,o,a)})()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new Xe(r).parseFromString(e);return new Pe(t,i,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Pe.from(t,e,Ce(Ce({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Pe.fromString(t,e,Ce(Ce({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return c(function*(){e.start(Ce({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t.length>0&&void 0!==t[0]?t[0]:{})),yield e.ready(),e.stop()})()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:a}=this;r.start(e,Ce(Ce({enableRedraw:!0},a),t))}stop(){this.screen.stop()}resize(t){this.documentElement.resize(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}}}}]);