You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
157 KiB
6 lines
157 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[1935],{19662:function(d,S,n){var l=n(60614),h=n(26352),c=TypeError;d.exports=function(g){if(l(g))return g;throw c(h(g)+" is not a function")}},39483:function(d,S,n){var l=n(4411),h=n(26352),c=TypeError;d.exports=function(g){if(l(g))return g;throw c(h(g)+" is not a constructor")}},96077:function(d,S,n){var l=n(60614),h=String,c=TypeError;d.exports=function(g){if(typeof g=="object"||l(g))return g;throw c("Can't set "+h(g)+" as a prototype")}},51223:function(d,S,n){var l=n(5112),h=n(70030),c=n(3070).f,g=l("unscopables"),y=Array.prototype;y[g]==null&&c(y,g,{configurable:!0,value:h(null)}),d.exports=function(E){y[g][E]=!0}},31530:function(d,S,n){"use strict";var l=n(28710).charAt;d.exports=function(h,c,g){return c+(g?l(h,c).length:1)}},91675:function(d,S,n){var l=n(47976),h=TypeError;d.exports=function(c,g){if(l(g,c))return c;throw h("Incorrect invocation")}},19670:function(d,S,n){var l=n(70111),h=String,c=TypeError;d.exports=function(g){if(l(g))return g;throw c(h(g)+" is not an object")}},41318:function(d,S,n){var l=n(45656),h=n(51400),c=n(26244),g=function(y){return function(E,x,b){var C=l(E),A=c(C),P=h(b,A),R;if(y&&x!=x){for(;A>P;)if(R=C[P++],R!=R)return!0}else for(;A>P;P++)if((y||P in C)&&C[P]===x)return y||P||0;return!y&&-1}};d.exports={includes:g(!0),indexOf:g(!1)}},9341:function(d,S,n){"use strict";var l=n(47293);d.exports=function(h,c){var g=[][h];return!!g&&l(function(){g.call(null,c||function(){return 1},1)})}},53671:function(d,S,n){var l=n(19662),h=n(47908),c=n(68361),g=n(26244),y=TypeError,E=function(x){return function(b,C,A,P){l(C);var R=h(b),N=c(R),w=g(R),I=x?w-1:0,F=x?-1:1;if(A<2)for(;;){if(I in N){P=N[I],I+=F;break}if(I+=F,x?I<0:w<=I)throw y("Reduce of empty array with no initial value")}for(;x?I>=0:w>I;I+=F)I in N&&(P=C(P,N[I],I,R));return P}};d.exports={left:E(!1),right:E(!0)}},41589:function(d,S,n){var l=n(51400),h=n(26244),c=n(86135),g=Array,y=Math.max;d.exports=function(E,x,b){for(var C=h(E),A=l(x,C),P=l(b===void 0?C:b,C),R=g(y(P-A,0)),N=0;A<P;A++,N++)c(R,N,E[A]);return R.length=N,R}},50206:function(d,S,n){var l=n(1702);d.exports=l([].slice)},17072:function(d,S,n){var l=n(5112),h=l("iterator"),c=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){c=!0}};y[h]=function(){return this},Array.from(y,function(){throw 2})}catch(E){}d.exports=function(E,x){if(!x&&!c)return!1;var b=!1;try{var C={};C[h]=function(){return{next:function(){return{done:b=!0}}}},E(C)}catch(A){}return b}},84326:function(d,S,n){var l=n(1702),h=l({}.toString),c=l("".slice);d.exports=function(g){return c(h(g),8,-1)}},70648:function(d,S,n){var l=n(51694),h=n(60614),c=n(84326),g=n(5112),y=g("toStringTag"),E=Object,x=c(function(){return arguments}())=="Arguments",b=function(C,A){try{return C[A]}catch(P){}};d.exports=l?c:function(C){var A,P,R;return C===void 0?"Undefined":C===null?"Null":typeof(P=b(A=E(C),y))=="string"?P:x?c(A):(R=c(A))=="Object"&&h(A.callee)?"Arguments":R}},99920:function(d,S,n){var l=n(92597),h=n(53887),c=n(31236),g=n(3070);d.exports=function(y,E,x){for(var b=h(E),C=g.f,A=c.f,P=0;P<b.length;P++){var R=b[P];!l(y,R)&&!(x&&l(x,R))&&C(y,R,A(E,R))}}},84964:function(d,S,n){var l=n(5112),h=l("match");d.exports=function(c){var g=/./;try{"/./"[c](g)}catch(y){try{return g[h]=!1,"/./"[c](g)}catch(E){}}return!1}},49920:function(d,S,n){var l=n(47293);d.exports=!l(function(){function h(){}return h.prototype.constructor=null,Object.getPrototypeOf(new h)!==h.prototype})},76178:function(d){d.exports=function(S,n){return{value:S,done:n}}},68880:function(d,S,n){var l=n(19781),h=n(3070),c=n(79114);d.exports=l?function(g,y,E){return h.f(g,y,c(1,E))}:function(g,y,E){return g[y]=E,g}},79114:function(d){d.exports=function(S,n){return{enumerable:!(S&1),configurable:!(S&2),writable:!(S&4),value:n}}},86135:function(d,S,n){"use strict";var l=n(34948),h=n(3070),c=n(79114);d.exports=function(g,y,E){var x=l(y);x in g?h.f(g,x,c(0,E)):g[x]=E}},36926:function(d,S,n){var l=n(56339),h=n(3070);d.exports=function(c,g,y){return y.get&&l(y.get,g,{getter:!0}),y.set&&l(y.set,g,{setter:!0}),h.f(c,g,y)}},98052:function(d,S,n){var l=n(60614),h=n(3070),c=n(56339),g=n(13072);d.exports=function(y,E,x,b){b||(b={});var C=b.enumerable,A=b.name!==void 0?b.name:E;if(l(x)&&c(x,A,b),b.global)C?y[E]=x:g(E,x);else{try{b.unsafe?y[E]&&(C=!0):delete y[E]}catch(P){}C?y[E]=x:h.f(y,E,{value:x,enumerable:!1,configurable:!b.nonConfigurable,writable:!b.nonWritable})}return y}},13072:function(d,S,n){var l=n(17854),h=Object.defineProperty;d.exports=function(c,g){try{h(l,c,{value:g,configurable:!0,writable:!0})}catch(y){l[c]=g}return g}},19781:function(d,S,n){var l=n(47293);d.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},4154:function(d){var S=typeof document=="object"&&document.all,n=typeof S=="undefined"&&S!==void 0;d.exports={all:S,IS_HTMLDDA:n}},80317:function(d,S,n){var l=n(17854),h=n(70111),c=l.document,g=h(c)&&h(c.createElement);d.exports=function(y){return g?c.createElement(y):{}}},48324:function(d){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}},98509:function(d,S,n){var l=n(80317),h=l("span").classList,c=h&&h.constructor&&h.constructor.prototype;d.exports=c===Object.prototype?void 0:c},7871:function(d,S,n){var l=n(83823),h=n(35268);d.exports=!l&&!h&&typeof window=="object"&&typeof document=="object"},83823:function(d){d.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},71528:function(d,S,n){var l=n(88113);d.exports=/ipad|iphone|ipod/i.test(l)&&typeof Pebble!="undefined"},28334:function(d,S,n){var l=n(88113);d.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(l)},35268:function(d,S,n){var l=n(34155),h=n(84326);d.exports=typeof l!="undefined"&&h(l)=="process"},71036:function(d,S,n){var l=n(88113);d.exports=/web0s(?!.*chrome)/i.test(l)},88113:function(d){d.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},7392:function(d,S,n){var l=n(17854),h=n(88113),c=l.process,g=l.Deno,y=c&&c.versions||g&&g.version,E=y&&y.v8,x,b;E&&(x=E.split("."),b=x[0]>0&&x[0]<4?1:+(x[0]+x[1])),!b&&h&&(x=h.match(/Edge\/(\d+)/),(!x||x[1]>=74)&&(x=h.match(/Chrome\/(\d+)/),x&&(b=+x[1]))),d.exports=b},80748:function(d){d.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:function(d,S,n){var l=n(17854),h=n(31236).f,c=n(68880),g=n(98052),y=n(13072),E=n(99920),x=n(96114);d.exports=function(b,C){var A=b.target,P=b.global,R=b.stat,N,w,I,F,G,Y;if(P?w=l:R?w=l[A]||y(A,{}):w=(l[A]||{}).prototype,w)for(I in C){if(G=C[I],b.dontCallGetSet?(Y=h(w,I),F=Y&&Y.value):F=w[I],N=x(P?I:A+(R?".":"#")+I,b.forced),!N&&F!==void 0){if(typeof G==typeof F)continue;E(G,F)}(b.sham||F&&F.sham)&&c(G,"sham",!0),g(w,I,G,b)}}},47293:function(d){d.exports=function(S){try{return!!S()}catch(n){return!0}}},27007:function(d,S,n){"use strict";n(74916);var l=n(21470),h=n(98052),c=n(22261),g=n(47293),y=n(5112),E=n(68880),x=y("species"),b=RegExp.prototype;d.exports=function(C,A,P,R){var N=y(C),w=!g(function(){var Y={};return Y[N]=function(){return 7},""[C](Y)!=7}),I=w&&!g(function(){var Y=!1,D=/a/;return C==="split"&&(D={},D.constructor={},D.constructor[x]=function(){return D},D.flags="",D[N]=/./[N]),D.exec=function(){return Y=!0,null},D[N](""),!Y});if(!w||!I||P){var F=l(/./[N]),G=A(N,""[C],function(Y,D,$,H,Z){var tt=l(Y),J=D.exec;return J===c||J===b.exec?w&&!Z?{done:!0,value:F(D,$,H)}:{done:!0,value:tt($,D,H)}:{done:!1}});h(String.prototype,C,G[0]),h(b,N,G[1])}R&&E(b[N],"sham",!0)}},22104:function(d,S,n){var l=n(34374),h=Function.prototype,c=h.apply,g=h.call;d.exports=typeof Reflect=="object"&&Reflect.apply||(l?g.bind(c):function(){return g.apply(c,arguments)})},49974:function(d,S,n){var l=n(21470),h=n(19662),c=n(34374),g=l(l.bind);d.exports=function(y,E){return h(y),E===void 0?y:c?g(y,E):function(){return y.apply(E,arguments)}}},34374:function(d,S,n){var l=n(47293);d.exports=!l(function(){var h=function(){}.bind();return typeof h!="function"||h.hasOwnProperty("prototype")})},46916:function(d,S,n){var l=n(34374),h=Function.prototype.call;d.exports=l?h.bind(h):function(){return h.apply(h,arguments)}},76530:function(d,S,n){var l=n(19781),h=n(92597),c=Function.prototype,g=l&&Object.getOwnPropertyDescriptor,y=h(c,"name"),E=y&&function(){}.name==="something",x=y&&(!l||l&&g(c,"name").configurable);d.exports={EXISTS:y,PROPER:E,CONFIGURABLE:x}},30605:function(d,S,n){var l=n(1702),h=n(19662);d.exports=function(c,g,y){try{return l(h(Object.getOwnPropertyDescriptor(c,g)[y]))}catch(E){}}},21470:function(d,S,n){var l=n(84326),h=n(1702);d.exports=function(c){if(l(c)==="Function")return h(c)}},1702:function(d,S,n){var l=n(34374),h=Function.prototype,c=h.call,g=l&&h.bind.bind(c,c);d.exports=l?g:function(y){return function(){return c.apply(y,arguments)}}},35005:function(d,S,n){var l=n(17854),h=n(60614),c=function(g){return h(g)?g:void 0};d.exports=function(g,y){return arguments.length<2?c(l[g]):l[g]&&l[g][y]}},71246:function(d,S,n){var l=n(70648),h=n(58173),c=n(68554),g=n(97497),y=n(5112),E=y("iterator");d.exports=function(x){if(!c(x))return h(x,E)||h(x,"@@iterator")||g[l(x)]}},14121:function(d,S,n){var l=n(46916),h=n(19662),c=n(19670),g=n(26352),y=n(71246),E=TypeError;d.exports=function(x,b){var C=arguments.length<2?y(x):b;if(h(C))return c(l(C,x));throw E(g(x)+" is not iterable")}},58173:function(d,S,n){var l=n(19662),h=n(68554);d.exports=function(c,g){var y=c[g];return h(y)?void 0:l(y)}},10647:function(d,S,n){var l=n(1702),h=n(47908),c=Math.floor,g=l("".charAt),y=l("".replace),E=l("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,b=/\$([$&'`]|\d{1,2})/g;d.exports=function(C,A,P,R,N,w){var I=P+C.length,F=R.length,G=b;return N!==void 0&&(N=h(N),G=x),y(w,G,function(Y,D){var $;switch(g(D,0)){case"$":return"$";case"&":return C;case"`":return E(A,0,P);case"'":return E(A,I);case"<":$=N[E(D,1,-1)];break;default:var H=+D;if(H===0)return Y;if(H>F){var Z=c(H/10);return Z===0?Y:Z<=F?R[Z-1]===void 0?g(D,1):R[Z-1]+g(D,1):Y}$=R[H-1]}return $===void 0?"":$})}},17854:function(d,S,n){var l=function(h){return h&&h.Math==Math&&h};d.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof n.g=="object"&&n.g)||function(){return this}()||Function("return this")()},92597:function(d,S,n){var l=n(1702),h=n(47908),c=l({}.hasOwnProperty);d.exports=Object.hasOwn||function(y,E){return c(h(y),E)}},3501:function(d){d.exports={}},842:function(d){d.exports=function(S,n){try{arguments.length==1?console.error(S):console.error(S,n)}catch(l){}}},60490:function(d,S,n){var l=n(35005);d.exports=l("document","documentElement")},64664:function(d,S,n){var l=n(19781),h=n(47293),c=n(80317);d.exports=!l&&!h(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},68361:function(d,S,n){var l=n(1702),h=n(47293),c=n(84326),g=Object,y=l("".split);d.exports=h(function(){return!g("z").propertyIsEnumerable(0)})?function(E){return c(E)=="String"?y(E,""):g(E)}:g},42788:function(d,S,n){var l=n(1702),h=n(60614),c=n(5465),g=l(Function.toString);h(c.inspectSource)||(c.inspectSource=function(y){return g(y)}),d.exports=c.inspectSource},29909:function(d,S,n){var l=n(94811),h=n(17854),c=n(70111),g=n(68880),y=n(92597),E=n(5465),x=n(6200),b=n(3501),C="Object already initialized",A=h.TypeError,P=h.WeakMap,R,N,w,I=function(D){return w(D)?N(D):R(D,{})},F=function(D){return function($){var H;if(!c($)||(H=N($)).type!==D)throw A("Incompatible receiver, "+D+" required");return H}};if(l||E.state){var G=E.state||(E.state=new P);G.get=G.get,G.has=G.has,G.set=G.set,R=function(D,$){if(G.has(D))throw A(C);return $.facade=D,G.set(D,$),$},N=function(D){return G.get(D)||{}},w=function(D){return G.has(D)}}else{var Y=x("state");b[Y]=!0,R=function(D,$){if(y(D,Y))throw A(C);return $.facade=D,g(D,Y,$),$},N=function(D){return y(D,Y)?D[Y]:{}},w=function(D){return y(D,Y)}}d.exports={set:R,get:N,has:w,enforce:I,getterFor:F}},97659:function(d,S,n){var l=n(5112),h=n(97497),c=l("iterator"),g=Array.prototype;d.exports=function(y){return y!==void 0&&(h.Array===y||g[c]===y)}},43157:function(d,S,n){var l=n(84326);d.exports=Array.isArray||function(c){return l(c)=="Array"}},60614:function(d,S,n){var l=n(4154),h=l.all;d.exports=l.IS_HTMLDDA?function(c){return typeof c=="function"||c===h}:function(c){return typeof c=="function"}},4411:function(d,S,n){var l=n(1702),h=n(47293),c=n(60614),g=n(70648),y=n(35005),E=n(42788),x=function(){},b=[],C=y("Reflect","construct"),A=/^\s*(?:class|function)\b/,P=l(A.exec),R=!A.exec(x),N=function(F){if(!c(F))return!1;try{return C(x,b,F),!0}catch(G){return!1}},w=function(F){if(!c(F))return!1;switch(g(F)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return R||!!P(A,E(F))}catch(G){return!0}};w.sham=!0,d.exports=!C||h(function(){var I;return N(N.call)||!N(Object)||!N(function(){I=!0})||I})?w:N},96114:function(d,S,n){var l=n(47293),h=n(60614),c=/#|\.prototype\./,g=function(C,A){var P=E[y(C)];return P==b?!0:P==x?!1:h(A)?l(A):!!A},y=g.normalize=function(C){return String(C).replace(c,".").toLowerCase()},E=g.data={},x=g.NATIVE="N",b=g.POLYFILL="P";d.exports=g},68554:function(d){d.exports=function(S){return S==null}},70111:function(d,S,n){var l=n(60614),h=n(4154),c=h.all;d.exports=h.IS_HTMLDDA?function(g){return typeof g=="object"?g!==null:l(g)||g===c}:function(g){return typeof g=="object"?g!==null:l(g)}},31913:function(d){d.exports=!1},47850:function(d,S,n){var l=n(70111),h=n(84326),c=n(5112),g=c("match");d.exports=function(y){var E;return l(y)&&((E=y[g])!==void 0?!!E:h(y)=="RegExp")}},52190:function(d,S,n){var l=n(35005),h=n(60614),c=n(47976),g=n(43307),y=Object;d.exports=g?function(E){return typeof E=="symbol"}:function(E){var x=l("Symbol");return h(x)&&c(x.prototype,y(E))}},20408:function(d,S,n){var l=n(49974),h=n(46916),c=n(19670),g=n(26352),y=n(97659),E=n(26244),x=n(47976),b=n(14121),C=n(71246),A=n(99212),P=TypeError,R=function(w,I){this.stopped=w,this.result=I},N=R.prototype;d.exports=function(w,I,F){var G=F&&F.that,Y=!!(F&&F.AS_ENTRIES),D=!!(F&&F.IS_RECORD),$=!!(F&&F.IS_ITERATOR),H=!!(F&&F.INTERRUPTED),Z=l(I,G),tt,J,ht,rt,ot,ft,pt,lt=function(K){return tt&&A(tt,"normal",K),new R(!0,K)},X=function(K){return Y?(c(K),H?Z(K[0],K[1],lt):Z(K[0],K[1])):H?Z(K,lt):Z(K)};if(D)tt=w.iterator;else if($)tt=w;else{if(J=C(w),!J)throw P(g(w)+" is not iterable");if(y(J)){for(ht=0,rt=E(w);rt>ht;ht++)if(ot=X(w[ht]),ot&&x(N,ot))return ot;return new R(!1)}tt=b(w,J)}for(ft=D?w.next:tt.next;!(pt=h(ft,tt)).done;){try{ot=X(pt.value)}catch(K){A(tt,"throw",K)}if(typeof ot=="object"&&ot&&x(N,ot))return ot}return new R(!1)}},99212:function(d,S,n){var l=n(46916),h=n(19670),c=n(58173);d.exports=function(g,y,E){var x,b;h(g);try{if(x=c(g,"return"),!x){if(y==="throw")throw E;return E}x=l(x,g)}catch(C){b=!0,x=C}if(y==="throw")throw E;if(b)throw x;return h(x),E}},63061:function(d,S,n){"use strict";var l=n(13383).IteratorPrototype,h=n(70030),c=n(79114),g=n(58003),y=n(97497),E=function(){return this};d.exports=function(x,b,C,A){var P=b+" Iterator";return x.prototype=h(l,{next:c(+!A,C)}),g(x,P,!1,!0),y[P]=E,x}},51656:function(d,S,n){"use strict";var l=n(82109),h=n(46916),c=n(31913),g=n(76530),y=n(60614),E=n(63061),x=n(79518),b=n(27674),C=n(58003),A=n(68880),P=n(98052),R=n(5112),N=n(97497),w=n(13383),I=g.PROPER,F=g.CONFIGURABLE,G=w.IteratorPrototype,Y=w.BUGGY_SAFARI_ITERATORS,D=R("iterator"),$="keys",H="values",Z="entries",tt=function(){return this};d.exports=function(J,ht,rt,ot,ft,pt,lt){E(rt,ht,ot);var X=function(It){if(It===ft&&vt)return vt;if(!Y&&It in q)return q[It];switch(It){case $:return function(){return new rt(this,It)};case H:return function(){return new rt(this,It)};case Z:return function(){return new rt(this,It)}}return function(){return new rt(this)}},K=ht+" Iterator",ut=!1,q=J.prototype,at=q[D]||q["@@iterator"]||ft&&q[ft],vt=!Y&&at||X(ft),M=ht=="Array"&&q.entries||at,bt,Tt,Rt;if(M&&(bt=x(M.call(new J)),bt!==Object.prototype&&bt.next&&(!c&&x(bt)!==G&&(b?b(bt,G):y(bt[D])||P(bt,D,tt)),C(bt,K,!0,!0),c&&(N[K]=tt))),I&&ft==H&&at&&at.name!==H&&(!c&&F?A(q,"name",H):(ut=!0,vt=function(){return h(at,this)})),ft)if(Tt={values:X(H),keys:pt?vt:X($),entries:X(Z)},lt)for(Rt in Tt)(Y||ut||!(Rt in q))&&P(q,Rt,Tt[Rt]);else l({target:ht,proto:!0,forced:Y||ut},Tt);return(!c||lt)&&q[D]!==vt&&P(q,D,vt,{name:ft}),N[ht]=vt,Tt}},13383:function(d,S,n){"use strict";var l=n(47293),h=n(60614),c=n(70111),g=n(70030),y=n(79518),E=n(98052),x=n(5112),b=n(31913),C=x("iterator"),A=!1,P,R,N;[].keys&&(N=[].keys(),"next"in N?(R=y(y(N)),R!==Object.prototype&&(P=R)):A=!0);var w=!c(P)||l(function(){var I={};return P[C].call(I)!==I});w?P={}:b&&(P=g(P)),h(P[C])||E(P,C,function(){return this}),d.exports={IteratorPrototype:P,BUGGY_SAFARI_ITERATORS:A}},97497:function(d){d.exports={}},26244:function(d,S,n){var l=n(17466);d.exports=function(h){return l(h.length)}},56339:function(d,S,n){var l=n(1702),h=n(47293),c=n(60614),g=n(92597),y=n(19781),E=n(76530).CONFIGURABLE,x=n(42788),b=n(29909),C=b.enforce,A=b.get,P=String,R=Object.defineProperty,N=l("".slice),w=l("".replace),I=l([].join),F=y&&!h(function(){return R(function(){},"length",{value:8}).length!==8}),G=String(String).split("String"),Y=d.exports=function(D,$,H){N(P($),0,7)==="Symbol("&&($="["+w(P($),/^Symbol\(([^)]*)\)/,"$1")+"]"),H&&H.getter&&($="get "+$),H&&H.setter&&($="set "+$),(!g(D,"name")||E&&D.name!==$)&&(y?R(D,"name",{value:$,configurable:!0}):D.name=$),F&&H&&g(H,"arity")&&D.length!==H.arity&&R(D,"length",{value:H.arity});try{H&&g(H,"constructor")&&H.constructor?y&&R(D,"prototype",{writable:!1}):D.prototype&&(D.prototype=void 0)}catch(tt){}var Z=C(D);return g(Z,"source")||(Z.source=I(G,typeof $=="string"?$:"")),D};Function.prototype.toString=Y(function(){return c(this)&&A(this).source||x(this)},"toString")},74758:function(d){var S=Math.ceil,n=Math.floor;d.exports=Math.trunc||function(h){var c=+h;return(c>0?n:S)(c)}},95948:function(d,S,n){var l=n(17854),h=n(49974),c=n(31236).f,g=n(20261).set,y=n(18572),E=n(28334),x=n(71528),b=n(71036),C=n(35268),A=l.MutationObserver||l.WebKitMutationObserver,P=l.document,R=l.process,N=l.Promise,w=c(l,"queueMicrotask"),I=w&&w.value,F,G,Y,D,$;if(!I){var H=new y,Z=function(){var tt,J;for(C&&(tt=R.domain)&&tt.exit();J=H.get();)try{J()}catch(ht){throw H.head&&F(),ht}tt&&tt.enter()};!E&&!C&&!b&&A&&P?(G=!0,Y=P.createTextNode(""),new A(Z).observe(Y,{characterData:!0}),F=function(){Y.data=G=!G}):!x&&N&&N.resolve?(D=N.resolve(void 0),D.constructor=N,$=h(D.then,D),F=function(){$(Z)}):C?F=function(){R.nextTick(Z)}:(g=h(g,l),F=function(){g(Z)}),I=function(tt){H.head||F(),H.add(tt)}}d.exports=I},78523:function(d,S,n){"use strict";var l=n(19662),h=TypeError,c=function(g){var y,E;this.promise=new g(function(x,b){if(y!==void 0||E!==void 0)throw h("Bad Promise constructor");y=x,E=b}),this.resolve=l(y),this.reject=l(E)};d.exports.f=function(g){return new c(g)}},3929:function(d,S,n){var l=n(47850),h=TypeError;d.exports=function(c){if(l(c))throw h("The method doesn't accept regular expressions");return c}},70030:function(d,S,n){var l=n(19670),h=n(36048),c=n(80748),g=n(3501),y=n(60490),E=n(80317),x=n(6200),b=">",C="<",A="prototype",P="script",R=x("IE_PROTO"),N=function(){},w=function(D){return C+P+b+D+C+"/"+P+b},I=function(D){D.write(w("")),D.close();var $=D.parentWindow.Object;return D=null,$},F=function(){var D=E("iframe"),$="java"+P+":",H;return D.style.display="none",y.appendChild(D),D.src=String($),H=D.contentWindow.document,H.open(),H.write(w("document.F=Object")),H.close(),H.F},G,Y=function(){try{G=new ActiveXObject("htmlfile")}catch($){}Y=typeof document!="undefined"?document.domain&&G?I(G):F():I(G);for(var D=c.length;D--;)delete Y[A][c[D]];return Y()};g[R]=!0,d.exports=Object.create||function($,H){var Z;return $!==null?(N[A]=l($),Z=new N,N[A]=null,Z[R]=$):Z=Y(),H===void 0?Z:h.f(Z,H)}},36048:function(d,S,n){var l=n(19781),h=n(3353),c=n(3070),g=n(19670),y=n(45656),E=n(81956);S.f=l&&!h?Object.defineProperties:function(b,C){g(b);for(var A=y(C),P=E(C),R=P.length,N=0,w;R>N;)c.f(b,w=P[N++],A[w]);return b}},3070:function(d,S,n){var l=n(19781),h=n(64664),c=n(3353),g=n(19670),y=n(34948),E=TypeError,x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,C="enumerable",A="configurable",P="writable";S.f=l?c?function(N,w,I){if(g(N),w=y(w),g(I),typeof N=="function"&&w==="prototype"&&"value"in I&&P in I&&!I[P]){var F=b(N,w);F&&F[P]&&(N[w]=I.value,I={configurable:A in I?I[A]:F[A],enumerable:C in I?I[C]:F[C],writable:!1})}return x(N,w,I)}:x:function(N,w,I){if(g(N),w=y(w),g(I),h)try{return x(N,w,I)}catch(F){}if("get"in I||"set"in I)throw E("Accessors not supported");return"value"in I&&(N[w]=I.value),N}},31236:function(d,S,n){var l=n(19781),h=n(46916),c=n(55296),g=n(79114),y=n(45656),E=n(34948),x=n(92597),b=n(64664),C=Object.getOwnPropertyDescriptor;S.f=l?C:function(P,R){if(P=y(P),R=E(R),b)try{return C(P,R)}catch(N){}if(x(P,R))return g(!h(c.f,P,R),P[R])}},8006:function(d,S,n){var l=n(16324),h=n(80748),c=h.concat("length","prototype");S.f=Object.getOwnPropertyNames||function(y){return l(y,c)}},25181:function(d,S){S.f=Object.getOwnPropertySymbols},79518:function(d,S,n){var l=n(92597),h=n(60614),c=n(47908),g=n(6200),y=n(49920),E=g("IE_PROTO"),x=Object,b=x.prototype;d.exports=y?x.getPrototypeOf:function(C){var A=c(C);if(l(A,E))return A[E];var P=A.constructor;return h(P)&&A instanceof P?P.prototype:A instanceof x?b:null}},47976:function(d,S,n){var l=n(1702);d.exports=l({}.isPrototypeOf)},16324:function(d,S,n){var l=n(1702),h=n(92597),c=n(45656),g=n(41318).indexOf,y=n(3501),E=l([].push);d.exports=function(x,b){var C=c(x),A=0,P=[],R;for(R in C)!h(y,R)&&h(C,R)&&E(P,R);for(;b.length>A;)h(C,R=b[A++])&&(~g(P,R)||E(P,R));return P}},81956:function(d,S,n){var l=n(16324),h=n(80748);d.exports=Object.keys||function(g){return l(g,h)}},55296:function(d,S){"use strict";var n={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,h=l&&!n.call({1:2},1);S.f=h?function(g){var y=l(this,g);return!!y&&y.enumerable}:n},27674:function(d,S,n){var l=n(30605),h=n(19670),c=n(96077);d.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g=!1,y={},E;try{E=l(Object.prototype,"__proto__","set"),E(y,[]),g=y instanceof Array}catch(x){}return function(b,C){return h(b),c(C),g?E(b,C):b.__proto__=C,b}}():void 0)},92140:function(d,S,n){var l=n(46916),h=n(60614),c=n(70111),g=TypeError;d.exports=function(y,E){var x,b;if(E==="string"&&h(x=y.toString)&&!c(b=l(x,y))||h(x=y.valueOf)&&!c(b=l(x,y))||E!=="string"&&h(x=y.toString)&&!c(b=l(x,y)))return b;throw g("Can't convert object to primitive value")}},53887:function(d,S,n){var l=n(35005),h=n(1702),c=n(8006),g=n(25181),y=n(19670),E=h([].concat);d.exports=l("Reflect","ownKeys")||function(b){var C=c.f(y(b)),A=g.f;return A?E(C,A(b)):C}},12534:function(d){d.exports=function(S){try{return{error:!1,value:S()}}catch(n){return{error:!0,value:n}}}},63702:function(d,S,n){var l=n(17854),h=n(85341),c=n(60614),g=n(96114),y=n(42788),E=n(5112),x=n(7871),b=n(83823),C=n(31913),A=n(7392),P=h&&h.prototype,R=E("species"),N=!1,w=c(l.PromiseRejectionEvent),I=g("Promise",function(){var F=y(h),G=F!==String(h);if(!G&&A===66||C&&!(P.catch&&P.finally))return!0;if(!A||A<51||!/native code/.test(F)){var Y=new h(function(H){H(1)}),D=function(H){H(function(){},function(){})},$=Y.constructor={};if($[R]=D,N=Y.then(function(){})instanceof D,!N)return!0}return!G&&(x||b)&&!w});d.exports={CONSTRUCTOR:I,REJECTION_EVENT:w,SUBCLASSING:N}},85341:function(d,S,n){var l=n(17854);d.exports=l.Promise},69478:function(d,S,n){var l=n(19670),h=n(70111),c=n(78523);d.exports=function(g,y){if(l(g),h(y)&&y.constructor===g)return y;var E=c.f(g),x=E.resolve;return x(y),E.promise}},80612:function(d,S,n){var l=n(85341),h=n(17072),c=n(63702).CONSTRUCTOR;d.exports=c||!h(function(g){l.all(g).then(void 0,function(){})})},18572:function(d){var S=function(){this.head=null,this.tail=null};S.prototype={add:function(n){var l={item:n,next:null},h=this.tail;h?h.next=l:this.head=l,this.tail=l},get:function(){var n=this.head;if(n){var l=this.head=n.next;return l===null&&(this.tail=null),n.item}}},d.exports=S},97651:function(d,S,n){var l=n(46916),h=n(19670),c=n(60614),g=n(84326),y=n(22261),E=TypeError;d.exports=function(x,b){var C=x.exec;if(c(C)){var A=l(C,x,b);return A!==null&&h(A),A}if(g(x)==="RegExp")return l(y,x,b);throw E("RegExp#exec called on incompatible receiver")}},22261:function(d,S,n){"use strict";var l=n(46916),h=n(1702),c=n(41340),g=n(67066),y=n(52999),E=n(72309),x=n(70030),b=n(29909).get,C=n(9441),A=n(38173),P=E("native-string-replace",String.prototype.replace),R=RegExp.prototype.exec,N=R,w=h("".charAt),I=h("".indexOf),F=h("".replace),G=h("".slice),Y=function(){var Z=/a/,tt=/b*/g;return l(R,Z,"a"),l(R,tt,"a"),Z.lastIndex!==0||tt.lastIndex!==0}(),D=y.BROKEN_CARET,$=/()??/.exec("")[1]!==void 0,H=Y||$||D||C||A;H&&(N=function(tt){var J=this,ht=b(J),rt=c(tt),ot=ht.raw,ft,pt,lt,X,K,ut,q;if(ot)return ot.lastIndex=J.lastIndex,ft=l(N,ot,rt),J.lastIndex=ot.lastIndex,ft;var at=ht.groups,vt=D&&J.sticky,M=l(g,J),bt=J.source,Tt=0,Rt=rt;if(vt&&(M=F(M,"y",""),I(M,"g")===-1&&(M+="g"),Rt=G(rt,J.lastIndex),J.lastIndex>0&&(!J.multiline||J.multiline&&w(rt,J.lastIndex-1)!==`
|
|
`)&&(bt="(?: "+bt+")",Rt=" "+Rt,Tt++),pt=new RegExp("^(?:"+bt+")",M)),$&&(pt=new RegExp("^"+bt+"$(?!\\s)",M)),Y&&(lt=J.lastIndex),X=l(R,vt?pt:J,Rt),vt?X?(X.input=G(X.input,Tt),X[0]=G(X[0],Tt),X.index=J.lastIndex,J.lastIndex+=X[0].length):J.lastIndex=0:Y&&X&&(J.lastIndex=J.global?X.index+X[0].length:lt),$&&X&&X.length>1&&l(P,X[0],pt,function(){for(K=1;K<arguments.length-2;K++)arguments[K]===void 0&&(X[K]=void 0)}),X&&at)for(X.groups=ut=x(null),K=0;K<at.length;K++)q=at[K],ut[q[0]]=X[q[1]];return X}),d.exports=N},67066:function(d,S,n){"use strict";var l=n(19670);d.exports=function(){var h=l(this),c="";return h.hasIndices&&(c+="d"),h.global&&(c+="g"),h.ignoreCase&&(c+="i"),h.multiline&&(c+="m"),h.dotAll&&(c+="s"),h.unicode&&(c+="u"),h.unicodeSets&&(c+="v"),h.sticky&&(c+="y"),c}},34706:function(d,S,n){var l=n(46916),h=n(92597),c=n(47976),g=n(67066),y=RegExp.prototype;d.exports=function(E){var x=E.flags;return x===void 0&&!("flags"in y)&&!h(E,"flags")&&c(y,E)?l(g,E):x}},52999:function(d,S,n){var l=n(47293),h=n(17854),c=h.RegExp,g=l(function(){var x=c("a","y");return x.lastIndex=2,x.exec("abcd")!=null}),y=g||l(function(){return!c("a","y").sticky}),E=g||l(function(){var x=c("^r","gy");return x.lastIndex=2,x.exec("str")!=null});d.exports={BROKEN_CARET:E,MISSED_STICKY:y,UNSUPPORTED_Y:g}},9441:function(d,S,n){var l=n(47293),h=n(17854),c=h.RegExp;d.exports=l(function(){var g=c(".","s");return!(g.dotAll&&g.exec(`
|
|
`)&&g.flags==="s")})},38173:function(d,S,n){var l=n(47293),h=n(17854),c=h.RegExp;d.exports=l(function(){var g=c("(?<a>b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$<a>c")!=="bc"})},84488:function(d,S,n){var l=n(68554),h=TypeError;d.exports=function(c){if(l(c))throw h("Can't call method on "+c);return c}},10262:function(d,S,n){"use strict";var l=n(35005),h=n(36926),c=n(5112),g=n(19781),y=c("species");d.exports=function(E){var x=l(E);g&&x&&!x[y]&&h(x,y,{configurable:!0,get:function(){return this}})}},58003:function(d,S,n){var l=n(3070).f,h=n(92597),c=n(5112),g=c("toStringTag");d.exports=function(y,E,x){y&&!x&&(y=y.prototype),y&&!h(y,g)&&l(y,g,{configurable:!0,value:E})}},6200:function(d,S,n){var l=n(72309),h=n(69711),c=l("keys");d.exports=function(g){return c[g]||(c[g]=h(g))}},5465:function(d,S,n){var l=n(17854),h=n(13072),c="__core-js_shared__",g=l[c]||h(c,{});d.exports=g},72309:function(d,S,n){var l=n(31913),h=n(5465);(d.exports=function(c,g){return h[c]||(h[c]=g!==void 0?g:{})})("versions",[]).push({version:"3.29.1",mode:l?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},36707:function(d,S,n){var l=n(19670),h=n(39483),c=n(68554),g=n(5112),y=g("species");d.exports=function(E,x){var b=l(E).constructor,C;return b===void 0||c(C=l(b)[y])?x:h(C)}},28710:function(d,S,n){var l=n(1702),h=n(19303),c=n(41340),g=n(84488),y=l("".charAt),E=l("".charCodeAt),x=l("".slice),b=function(C){return function(A,P){var R=c(g(A)),N=h(P),w=R.length,I,F;return N<0||N>=w?C?"":void 0:(I=E(R,N),I<55296||I>56319||N+1===w||(F=E(R,N+1))<56320||F>57343?C?y(R,N):I:C?x(R,N,N+2):(I-55296<<10)+(F-56320)+65536)}};d.exports={codeAt:b(!1),charAt:b(!0)}},76091:function(d,S,n){var l=n(76530).PROPER,h=n(47293),c=n(81361),g="\u200B\x85\u180E";d.exports=function(y){return h(function(){return!!c[y]()||g[y]()!==g||l&&c[y].name!==y})}},53111:function(d,S,n){var l=n(1702),h=n(84488),c=n(41340),g=n(81361),y=l("".replace),E=RegExp("^["+g+"]+"),x=RegExp("(^|[^"+g+"])["+g+"]+$"),b=function(C){return function(A){var P=c(h(A));return C&1&&(P=y(P,E,"")),C&2&&(P=y(P,x,"$1")),P}};d.exports={start:b(1),end:b(2),trim:b(3)}},36293:function(d,S,n){var l=n(7392),h=n(47293);d.exports=!!Object.getOwnPropertySymbols&&!h(function(){var c=Symbol();return!String(c)||!(Object(c)instanceof Symbol)||!Symbol.sham&&l&&l<41})},20261:function(d,S,n){var l=n(17854),h=n(22104),c=n(49974),g=n(60614),y=n(92597),E=n(47293),x=n(60490),b=n(50206),C=n(80317),A=n(48053),P=n(28334),R=n(35268),N=l.setImmediate,w=l.clearImmediate,I=l.process,F=l.Dispatch,G=l.Function,Y=l.MessageChannel,D=l.String,$=0,H={},Z="onreadystatechange",tt,J,ht,rt;E(function(){tt=l.location});var ot=function(X){if(y(H,X)){var K=H[X];delete H[X],K()}},ft=function(X){return function(){ot(X)}},pt=function(X){ot(X.data)},lt=function(X){l.postMessage(D(X),tt.protocol+"//"+tt.host)};(!N||!w)&&(N=function(K){A(arguments.length,1);var ut=g(K)?K:G(K),q=b(arguments,1);return H[++$]=function(){h(ut,void 0,q)},J($),$},w=function(K){delete H[K]},R?J=function(X){I.nextTick(ft(X))}:F&&F.now?J=function(X){F.now(ft(X))}:Y&&!P?(ht=new Y,rt=ht.port2,ht.port1.onmessage=pt,J=c(rt.postMessage,rt)):l.addEventListener&&g(l.postMessage)&&!l.importScripts&&tt&&tt.protocol!=="file:"&&!E(lt)?(J=lt,l.addEventListener("message",pt,!1)):Z in C("script")?J=function(X){x.appendChild(C("script"))[Z]=function(){x.removeChild(this),ot(X)}}:J=function(X){setTimeout(ft(X),0)}),d.exports={set:N,clear:w}},51400:function(d,S,n){var l=n(19303),h=Math.max,c=Math.min;d.exports=function(g,y){var E=l(g);return E<0?h(E+y,0):c(E,y)}},45656:function(d,S,n){var l=n(68361),h=n(84488);d.exports=function(c){return l(h(c))}},19303:function(d,S,n){var l=n(74758);d.exports=function(h){var c=+h;return c!==c||c===0?0:l(c)}},17466:function(d,S,n){var l=n(19303),h=Math.min;d.exports=function(c){return c>0?h(l(c),9007199254740991):0}},47908:function(d,S,n){var l=n(84488),h=Object;d.exports=function(c){return h(l(c))}},57593:function(d,S,n){var l=n(46916),h=n(70111),c=n(52190),g=n(58173),y=n(92140),E=n(5112),x=TypeError,b=E("toPrimitive");d.exports=function(C,A){if(!h(C)||c(C))return C;var P=g(C,b),R;if(P){if(A===void 0&&(A="default"),R=l(P,C,A),!h(R)||c(R))return R;throw x("Can't convert object to primitive value")}return A===void 0&&(A="number"),y(C,A)}},34948:function(d,S,n){var l=n(57593),h=n(52190);d.exports=function(c){var g=l(c,"string");return h(g)?g:g+""}},51694:function(d,S,n){var l=n(5112),h=l("toStringTag"),c={};c[h]="z",d.exports=String(c)==="[object z]"},41340:function(d,S,n){var l=n(70648),h=String;d.exports=function(c){if(l(c)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return h(c)}},26352:function(d){var S=String;d.exports=function(n){try{return S(n)}catch(l){return"Object"}}},69711:function(d,S,n){var l=n(1702),h=0,c=Math.random(),g=l(1 .toString);d.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++h+c,36)}},43307:function(d,S,n){var l=n(36293);d.exports=l&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},3353:function(d,S,n){var l=n(19781),h=n(47293);d.exports=l&&h(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},48053:function(d){var S=TypeError;d.exports=function(n,l){if(n<l)throw S("Not enough arguments");return n}},94811:function(d,S,n){var l=n(17854),h=n(60614),c=l.WeakMap;d.exports=h(c)&&/native code/.test(String(c))},5112:function(d,S,n){var l=n(17854),h=n(72309),c=n(92597),g=n(69711),y=n(36293),E=n(43307),x=l.Symbol,b=h("wks"),C=E?x.for||x:x&&x.withoutSetter||g;d.exports=function(A){return c(b,A)||(b[A]=y&&c(x,A)?x[A]:C("Symbol."+A)),b[A]}},81361:function(d){d.exports=`
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},82772:function(d,S,n){"use strict";var l=n(82109),h=n(21470),c=n(41318).indexOf,g=n(9341),y=h([].indexOf),E=!!y&&1/y([1],1,-0)<0,x=E||!g("indexOf");l({target:"Array",proto:!0,forced:x},{indexOf:function(C){var A=arguments.length>1?arguments[1]:void 0;return E?y(this,C,A)||0:c(this,C,A)}})},66992:function(d,S,n){"use strict";var l=n(45656),h=n(51223),c=n(97497),g=n(29909),y=n(3070).f,E=n(51656),x=n(76178),b=n(31913),C=n(19781),A="Array Iterator",P=g.set,R=g.getterFor(A);d.exports=E(Array,"Array",function(w,I){P(this,{type:A,target:l(w),index:0,kind:I})},function(){var w=R(this),I=w.target,F=w.kind,G=w.index++;return!I||G>=I.length?(w.target=void 0,x(void 0,!0)):F=="keys"?x(G,!1):F=="values"?x(I[G],!1):x([G,I[G]],!1)},"values");var N=c.Arguments=c.Array;if(h("keys"),h("values"),h("entries"),!b&&C&&N.name!=="values")try{y(N,"name",{value:"values"})}catch(w){}},85827:function(d,S,n){"use strict";var l=n(82109),h=n(53671).left,c=n(9341),g=n(7392),y=n(35268),E=!y&&g>79&&g<83,x=E||!c("reduce");l({target:"Array",proto:!0,forced:x},{reduce:function(C){var A=arguments.length;return h(this,C,A,A>1?arguments[1]:void 0)}})},65069:function(d,S,n){"use strict";var l=n(82109),h=n(1702),c=n(43157),g=h([].reverse),y=[1,2];l({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return c(this)&&(this.length=this.length),g(this)}})},70821:function(d,S,n){"use strict";var l=n(82109),h=n(46916),c=n(19662),g=n(78523),y=n(12534),E=n(20408),x=n(80612);l({target:"Promise",stat:!0,forced:x},{all:function(C){var A=this,P=g.f(A),R=P.resolve,N=P.reject,w=y(function(){var I=c(A.resolve),F=[],G=0,Y=1;E(C,function(D){var $=G++,H=!1;Y++,h(I,A,D).then(function(Z){H||(H=!0,F[$]=Z,--Y||R(F))},N)}),--Y||R(F)});return w.error&&N(w.value),P.promise}})},94164:function(d,S,n){"use strict";var l=n(82109),h=n(31913),c=n(63702).CONSTRUCTOR,g=n(85341),y=n(35005),E=n(60614),x=n(98052),b=g&&g.prototype;if(l({target:"Promise",proto:!0,forced:c,real:!0},{catch:function(A){return this.then(void 0,A)}}),!h&&E(g)){var C=y("Promise").prototype.catch;b.catch!==C&&x(b,"catch",C,{unsafe:!0})}},43401:function(d,S,n){"use strict";var l=n(82109),h=n(31913),c=n(35268),g=n(17854),y=n(46916),E=n(98052),x=n(27674),b=n(58003),C=n(10262),A=n(19662),P=n(60614),R=n(70111),N=n(91675),w=n(36707),I=n(20261).set,F=n(95948),G=n(842),Y=n(12534),D=n(18572),$=n(29909),H=n(85341),Z=n(63702),tt=n(78523),J="Promise",ht=Z.CONSTRUCTOR,rt=Z.REJECTION_EVENT,ot=Z.SUBCLASSING,ft=$.getterFor(J),pt=$.set,lt=H&&H.prototype,X=H,K=lt,ut=g.TypeError,q=g.document,at=g.process,vt=tt.f,M=vt,bt=!!(q&&q.createEvent&&g.dispatchEvent),Tt="unhandledrejection",Rt="rejectionhandled",It=0,At=1,$t=2,_t=1,kt=2,Yt,fe,se,ve,te=function(Q){var nt;return R(Q)&&P(nt=Q.then)?nt:!1},ce=function(Q,nt){var ct=nt.value,yt=nt.state==At,Pt=yt?Q.ok:Q.fail,ge=Q.resolve,Ve=Q.reject,de=Q.domain,pe,We,re;try{Pt?(yt||(nt.rejection===kt&&Xe(nt),nt.rejection=_t),Pt===!0?pe=ct:(de&&de.enter(),pe=Pt(ct),de&&(de.exit(),re=!0)),pe===Q.promise?Ve(ut("Promise-chain cycle")):(We=te(pe))?y(We,pe,ge,Ve):ge(pe)):Ve(ct)}catch(Qe){de&&!re&&de.exit(),Ve(Qe)}},be=function(Q,nt){Q.notified||(Q.notified=!0,F(function(){for(var ct=Q.reactions,yt;yt=ct.get();)ce(yt,Q);Q.notified=!1,nt&&!Q.rejection&&or(Q)}))},Ce=function(Q,nt,ct){var yt,Pt;bt?(yt=q.createEvent("Event"),yt.promise=nt,yt.reason=ct,yt.initEvent(Q,!1,!0),g.dispatchEvent(yt)):yt={promise:nt,reason:ct},!rt&&(Pt=g["on"+Q])?Pt(yt):Q===Tt&&G("Unhandled promise rejection",ct)},or=function(Q){y(I,g,function(){var nt=Q.facade,ct=Q.value,yt=ee(Q),Pt;if(yt&&(Pt=Y(function(){c?at.emit("unhandledRejection",ct,nt):Ce(Tt,nt,ct)}),Q.rejection=c||ee(Q)?kt:_t,Pt.error))throw Pt.value})},ee=function(Q){return Q.rejection!==_t&&!Q.parent},Xe=function(Q){y(I,g,function(){var nt=Q.facade;c?at.emit("rejectionHandled",nt):Ce(Rt,nt,Q.value)})},oe=function(Q,nt,ct){return function(yt){Q(nt,yt,ct)}},Dt=function(Q,nt,ct){Q.done||(Q.done=!0,ct&&(Q=ct),Q.value=nt,Q.state=$t,be(Q,!0))},je=function(Q,nt,ct){if(!Q.done){Q.done=!0,ct&&(Q=ct);try{if(Q.facade===nt)throw ut("Promise can't be resolved itself");var yt=te(nt);yt?F(function(){var Pt={done:!1};try{y(yt,nt,oe(je,Pt,Q),oe(Dt,Pt,Q))}catch(ge){Dt(Pt,ge,Q)}}):(Q.value=nt,Q.state=At,be(Q,!1))}catch(Pt){Dt({done:!1},Pt,Q)}}};if(ht&&(X=function(nt){N(this,K),A(nt),y(Yt,this);var ct=ft(this);try{nt(oe(je,ct),oe(Dt,ct))}catch(yt){Dt(ct,yt)}},K=X.prototype,Yt=function(nt){pt(this,{type:J,done:!1,notified:!1,parent:!1,reactions:new D,rejection:!1,state:It,value:void 0})},Yt.prototype=E(K,"then",function(nt,ct){var yt=ft(this),Pt=vt(w(this,X));return yt.parent=!0,Pt.ok=P(nt)?nt:!0,Pt.fail=P(ct)&&ct,Pt.domain=c?at.domain:void 0,yt.state==It?yt.reactions.add(Pt):F(function(){ce(Pt,yt)}),Pt.promise}),fe=function(){var Q=new Yt,nt=ft(Q);this.promise=Q,this.resolve=oe(je,nt),this.reject=oe(Dt,nt)},tt.f=vt=function(Q){return Q===X||Q===se?new fe(Q):M(Q)},!h&&P(H)&<!==Object.prototype)){ve=lt.then,ot||E(lt,"then",function(nt,ct){var yt=this;return new X(function(Pt,ge){y(ve,yt,Pt,ge)}).then(nt,ct)},{unsafe:!0});try{delete lt.constructor}catch(Q){}x&&x(lt,K)}l({global:!0,constructor:!0,wrap:!0,forced:ht},{Promise:X}),b(X,J,!1,!0),C(J)},88674:function(d,S,n){n(43401),n(70821),n(94164),n(6027),n(60683),n(96294)},6027:function(d,S,n){"use strict";var l=n(82109),h=n(46916),c=n(19662),g=n(78523),y=n(12534),E=n(20408),x=n(80612);l({target:"Promise",stat:!0,forced:x},{race:function(C){var A=this,P=g.f(A),R=P.reject,N=y(function(){var w=c(A.resolve);E(C,function(I){h(w,A,I).then(P.resolve,R)})});return N.error&&R(N.value),P.promise}})},60683:function(d,S,n){"use strict";var l=n(82109),h=n(46916),c=n(78523),g=n(63702).CONSTRUCTOR;l({target:"Promise",stat:!0,forced:g},{reject:function(E){var x=c.f(this);return h(x.reject,void 0,E),x.promise}})},96294:function(d,S,n){"use strict";var l=n(82109),h=n(35005),c=n(31913),g=n(85341),y=n(63702).CONSTRUCTOR,E=n(69478),x=h("Promise"),b=c&&!y;l({target:"Promise",stat:!0,forced:c||y},{resolve:function(A){return E(b&&this===x?g:this,A)}})},74916:function(d,S,n){"use strict";var l=n(82109),h=n(22261);l({target:"RegExp",proto:!0,forced:/./.exec!==h},{exec:h})},39714:function(d,S,n){"use strict";var l=n(76530).PROPER,h=n(98052),c=n(19670),g=n(41340),y=n(47293),E=n(34706),x="toString",b=RegExp.prototype,C=b[x],A=y(function(){return C.call({source:"a",flags:"b"})!="/a/b"}),P=l&&C.name!=x;(A||P)&&h(RegExp.prototype,x,function(){var N=c(this),w=g(N.source),I=g(E(N));return"/"+w+"/"+I},{unsafe:!0})},27852:function(d,S,n){"use strict";var l=n(82109),h=n(21470),c=n(31236).f,g=n(17466),y=n(41340),E=n(3929),x=n(84488),b=n(84964),C=n(31913),A=h("".endsWith),P=h("".slice),R=Math.min,N=b("endsWith"),w=!C&&!N&&!!function(){var I=c(String.prototype,"endsWith");return I&&!I.writable}();l({target:"String",proto:!0,forced:!w&&!N},{endsWith:function(F){var G=y(x(this));E(F);var Y=arguments.length>1?arguments[1]:void 0,D=G.length,$=Y===void 0?D:R(g(Y),D),H=y(F);return A?A(G,H,$):P(G,$-H.length,$)===H}})},32023:function(d,S,n){"use strict";var l=n(82109),h=n(1702),c=n(3929),g=n(84488),y=n(41340),E=n(84964),x=h("".indexOf);l({target:"String",proto:!0,forced:!E("includes")},{includes:function(C){return!!~x(y(g(this)),y(c(C)),arguments.length>1?arguments[1]:void 0)}})},4723:function(d,S,n){"use strict";var l=n(46916),h=n(27007),c=n(19670),g=n(68554),y=n(17466),E=n(41340),x=n(84488),b=n(58173),C=n(31530),A=n(97651);h("match",function(P,R,N){return[function(I){var F=x(this),G=g(I)?void 0:b(I,P);return G?l(G,I,F):new RegExp(I)[P](E(F))},function(w){var I=c(this),F=E(w),G=N(R,I,F);if(G.done)return G.value;if(!I.global)return A(I,F);var Y=I.unicode;I.lastIndex=0;for(var D=[],$=0,H;(H=A(I,F))!==null;){var Z=E(H[0]);D[$]=Z,Z===""&&(I.lastIndex=C(F,y(I.lastIndex),Y)),$++}return $===0?null:D}]})},15306:function(d,S,n){"use strict";var l=n(22104),h=n(46916),c=n(1702),g=n(27007),y=n(47293),E=n(19670),x=n(60614),b=n(68554),C=n(19303),A=n(17466),P=n(41340),R=n(84488),N=n(31530),w=n(58173),I=n(10647),F=n(97651),G=n(5112),Y=G("replace"),D=Math.max,$=Math.min,H=c([].concat),Z=c([].push),tt=c("".indexOf),J=c("".slice),ht=function(pt){return pt===void 0?pt:String(pt)},rt=function(){return"a".replace(/./,"$0")==="$0"}(),ot=function(){return/./[Y]?/./[Y]("a","$0")==="":!1}(),ft=!y(function(){var pt=/./;return pt.exec=function(){var lt=[];return lt.groups={a:"7"},lt},"".replace(pt,"$<a>")!=="7"});g("replace",function(pt,lt,X){var K=ot?"$":"$0";return[function(q,at){var vt=R(this),M=b(q)?void 0:w(q,Y);return M?h(M,q,vt,at):h(lt,P(vt),q,at)},function(ut,q){var at=E(this),vt=P(ut);if(typeof q=="string"&&tt(q,K)===-1&&tt(q,"$<")===-1){var M=X(lt,at,vt,q);if(M.done)return M.value}var bt=x(q);bt||(q=P(q));var Tt=at.global;if(Tt){var Rt=at.unicode;at.lastIndex=0}for(var It=[];;){var At=F(at,vt);if(At===null||(Z(It,At),!Tt))break;var $t=P(At[0]);$t===""&&(at.lastIndex=N(vt,A(at.lastIndex),Rt))}for(var _t="",kt=0,Yt=0;Yt<It.length;Yt++){At=It[Yt];for(var fe=P(At[0]),se=D($(C(At.index),vt.length),0),ve=[],te=1;te<At.length;te++)Z(ve,ht(At[te]));var ce=At.groups;if(bt){var be=H([fe],ve,se,vt);ce!==void 0&&Z(be,ce);var Ce=P(l(q,void 0,be))}else Ce=I(fe,vt,se,ve,ce,q);se>=kt&&(_t+=J(vt,kt,se)+Ce,kt=se+fe.length)}return _t+J(vt,kt)}]},!ft||!rt||ot)},23123:function(d,S,n){"use strict";var l=n(22104),h=n(46916),c=n(1702),g=n(27007),y=n(19670),E=n(68554),x=n(47850),b=n(84488),C=n(36707),A=n(31530),P=n(17466),R=n(41340),N=n(58173),w=n(41589),I=n(97651),F=n(22261),G=n(52999),Y=n(47293),D=G.UNSUPPORTED_Y,$=4294967295,H=Math.min,Z=[].push,tt=c(/./.exec),J=c(Z),ht=c("".slice),rt=!Y(function(){var ot=/(?:)/,ft=ot.exec;ot.exec=function(){return ft.apply(this,arguments)};var pt="ab".split(ot);return pt.length!==2||pt[0]!=="a"||pt[1]!=="b"});g("split",function(ot,ft,pt){var lt;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?lt=function(X,K){var ut=R(b(this)),q=K===void 0?$:K>>>0;if(q===0)return[];if(X===void 0)return[ut];if(!x(X))return h(ft,ut,X,q);for(var at=[],vt=(X.ignoreCase?"i":"")+(X.multiline?"m":"")+(X.unicode?"u":"")+(X.sticky?"y":""),M=0,bt=new RegExp(X.source,vt+"g"),Tt,Rt,It;(Tt=h(F,bt,ut))&&(Rt=bt.lastIndex,!(Rt>M&&(J(at,ht(ut,M,Tt.index)),Tt.length>1&&Tt.index<ut.length&&l(Z,at,w(Tt,1)),It=Tt[0].length,M=Rt,at.length>=q)));)bt.lastIndex===Tt.index&&bt.lastIndex++;return M===ut.length?(It||!tt(bt,""))&&J(at,""):J(at,ht(ut,M)),at.length>q?w(at,0,q):at}:"0".split(void 0,0).length?lt=function(X,K){return X===void 0&&K===0?[]:h(ft,this,X,K)}:lt=ft,[function(K,ut){var q=b(this),at=E(K)?void 0:N(K,ot);return at?h(at,K,q,ut):h(lt,R(q),K,ut)},function(X,K){var ut=y(this),q=R(X),at=pt(lt,ut,q,K,lt!==ft);if(at.done)return at.value;var vt=C(ut,RegExp),M=ut.unicode,bt=(ut.ignoreCase?"i":"")+(ut.multiline?"m":"")+(ut.unicode?"u":"")+(D?"g":"y"),Tt=new vt(D?"^(?:"+ut.source+")":ut,bt),Rt=K===void 0?$:K>>>0;if(Rt===0)return[];if(q.length===0)return I(Tt,q)===null?[q]:[];for(var It=0,At=0,$t=[];At<q.length;){Tt.lastIndex=D?0:At;var _t=I(Tt,D?ht(q,At):q),kt;if(_t===null||(kt=H(P(Tt.lastIndex+(D?At:0)),q.length))===It)At=A(q,At,M);else{if(J($t,ht(q,It,At)),$t.length===Rt)return $t;for(var Yt=1;Yt<=_t.length-1;Yt++)if(J($t,_t[Yt]),$t.length===Rt)return $t;At=It=kt}}return J($t,ht(q,It)),$t}]},!rt,D)},23157:function(d,S,n){"use strict";var l=n(82109),h=n(21470),c=n(31236).f,g=n(17466),y=n(41340),E=n(3929),x=n(84488),b=n(84964),C=n(31913),A=h("".startsWith),P=h("".slice),R=Math.min,N=b("startsWith"),w=!C&&!N&&!!function(){var I=c(String.prototype,"startsWith");return I&&!I.writable}();l({target:"String",proto:!0,forced:!w&&!N},{startsWith:function(F){var G=y(x(this));E(F);var Y=g(R(arguments.length>1?arguments[1]:void 0,G.length)),D=y(F);return A?A(G,D,Y):P(G,Y,Y+D.length)===D}})},73210:function(d,S,n){"use strict";var l=n(82109),h=n(53111).trim,c=n(76091);l({target:"String",proto:!0,forced:c("trim")},{trim:function(){return h(this)}})},33948:function(d,S,n){var l=n(17854),h=n(48324),c=n(98509),g=n(66992),y=n(68880),E=n(5112),x=E("iterator"),b=E("toStringTag"),C=g.values,A=function(R,N){if(R){if(R[x]!==C)try{y(R,x,C)}catch(I){R[x]=C}if(R[b]||y(R,b,N),h[N]){for(var w in g)if(R[w]!==g[w])try{y(R,w,g[w])}catch(I){R[w]=g[w]}}}};for(var P in h)A(l[P]&&l[P].prototype,P);A(c,"DOMTokenList")},75:function(d,S,n){var l=n(34155);(function(){var h,c,g,y,E,x;typeof performance!="undefined"&&performance!==null&&performance.now?d.exports=function(){return performance.now()}:typeof l!="undefined"&&l!==null&&l.hrtime?(d.exports=function(){return(h()-E)/1e6},c=l.hrtime,h=function(){var b;return b=c(),b[0]*1e9+b[1]},y=h(),x=l.uptime()*1e9,E=y-x):Date.now?(d.exports=function(){return Date.now()-g},g=Date.now()):(d.exports=function(){return new Date().getTime()-g},g=new Date().getTime())}).call(this)},54087:function(d,S,n){for(var l=n(75),h=typeof window=="undefined"?n.g:window,c=["moz","webkit"],g="AnimationFrame",y=h["request"+g],E=h["cancel"+g]||h["cancelRequest"+g],x=0;!y&&x<c.length;x++)y=h[c[x]+"Request"+g],E=h[c[x]+"Cancel"+g]||h[c[x]+"CancelRequest"+g];if(!y||!E){var b=0,C=0,A=[],P=1e3/60;y=function(R){if(A.length===0){var N=l(),w=Math.max(0,P-(N-b));b=w+N,setTimeout(function(){var I=A.slice(0);A.length=0;for(var F=0;F<I.length;F++)if(!I[F].cancelled)try{I[F].callback(b)}catch(G){setTimeout(function(){throw G},0)}},Math.round(w))}return A.push({handle:++C,callback:R,cancelled:!1}),C},E=function(R){for(var N=0;N<A.length;N++)A[N].handle===R&&(A[N].cancelled=!0)}}d.exports=function(R){return y.call(h,R)},d.exports.cancel=function(){E.apply(h,arguments)},d.exports.polyfill=function(R){R||(R=h),R.requestAnimationFrame=y,R.cancelAnimationFrame=E}},26131:function(d){d.exports=function(S){this.ok=!1,this.alpha=1,S.charAt(0)=="#"&&(S=S.substr(1,6)),S=S.replace(/ /g,""),S=S.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"};S=n[S]||S;for(var l=[{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(x){return[parseInt(x[1]),parseInt(x[2]),parseInt(x[3]),parseFloat(x[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(x){return[parseInt(x[1]),parseInt(x[2]),parseInt(x[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(x){return[parseInt(x[1],16),parseInt(x[2],16),parseInt(x[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(x){return[parseInt(x[1]+x[1],16),parseInt(x[2]+x[2],16),parseInt(x[3]+x[3],16)]}}],h=0;h<l.length;h++){var c=l[h].re,g=l[h].process,y=c.exec(S);if(y){var E=g(y);this.r=E[0],this.g=E[1],this.b=E[2],E.length>3&&(this.alpha=E[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var x=this.r.toString(16),b=this.g.toString(16),C=this.b.toString(16);return x.length==1&&(x="0"+x),b.length==1&&(b="0"+b),C.length==1&&(C="0"+C),"#"+x+b+C},this.getHelpXML=function(){for(var x=new Array,b=0;b<l.length;b++)for(var C=l[b].example,A=0;A<C.length;A++)x[x.length]=C[A];for(var P in n)x[x.length]=P;var R=document.createElement("ul");R.setAttribute("id","rgbcolor-examples");for(var b=0;b<x.length;b++)try{var N=document.createElement("li"),w=new RGBColor(x[b]),I=document.createElement("div");I.style.cssText="margin: 3px; border: 1px solid black; background:"+w.toHex()+"; color:"+w.toHex(),I.appendChild(document.createTextNode("test"));var F=document.createTextNode(" "+x[b]+" -> "+w.toRGB()+" -> "+w.toHex());N.appendChild(I),N.appendChild(F),R.appendChild(N)}catch(Y){}return R}}},71935:function(d,S,n){"use strict";n.r(S),n.d(S,{AElement:function(){return un},AnimateColorElement:function(){return en},AnimateElement:function(){return Je},AnimateTransformElement:function(){return rn},BoundingBox:function(){return Jt},CB1:function(){return hr},CB2:function(){return fr},CB3:function(){return vr},CB4:function(){return cr},Canvg:function(){return Re},CircleElement:function(){return Xr},ClipPathElement:function(){return pn},DefsElement:function(){return Jr},DescElement:function(){return On},Document:function(){return he},Element:function(){return Nt},EllipseElement:function(){return Wr},FeColorMatrixElement:function(){return br},FeCompositeElement:function(){return xn},FeDropShadowElement:function(){return yn},FeGaussianBlurElement:function(){return En},FeMorphologyElement:function(){return mn},FilterElement:function(){return $e},Font:function(){return Ht},FontElement:function(){return nn},FontFaceElement:function(){return an},GElement:function(){return ke},GlyphElement:function(){return xr},GradientElement:function(){return Or},ImageElement:function(){return fn},LineElement:function(){return Qr},LinearGradientElement:function(){return qr},MarkerElement:function(){return kr},MaskElement:function(){return He},Matrix:function(){return yr},MissingGlyphElement:function(){return sn},Mouse:function(){return Br},PSEUDO_ZERO:function(){return Ae},Parser:function(){return Ze},PathElement:function(){return xt},PathParser:function(){return it},PatternElement:function(){return Zr},Point:function(){return wt},PolygonElement:function(){return Kr},PolylineElement:function(){return Tr},Property:function(){return _},QB1:function(){return gr},QB2:function(){return dr},QB3:function(){return pr},RadialGradientElement:function(){return _r},RectElement:function(){return Er},RenderedElement:function(){return me},Rotate:function(){return zr},SVGElement:function(){return De},SVGFontLoader:function(){return cn},Scale:function(){return Gr},Screen:function(){return ze},Skew:function(){return mr},SkewX:function(){return Hr},SkewY:function(){return $r},StopElement:function(){return tn},StyleElement:function(){return Sr},SymbolElement:function(){return vn},TRefElement:function(){return on},TSpanElement:function(){return Ge},TextElement:function(){return ue},TextPathElement:function(){return hn},TitleElement:function(){return Tn},Transform:function(){return ye},Translate:function(){return jr},UnknownElement:function(){return Yr},UseElement:function(){return gn},ViewPort:function(){return Lr},compressSpaces:function(){return ee},default:function(){return Re},getSelectorSpecificity:function(){return Qe},normalizeAttributeName:function(){return Q},normalizeColor:function(){return ct},parseExternalUrl:function(){return nt},presets:function(){return or},toNumbers:function(){return Dt},trimLeft:function(){return Xe},trimRight:function(){return oe},vectorMagnitude:function(){return ur},vectorsAngle:function(){return lr},vectorsRatio:function(){return Ke}});var l=n(88674),h=n(15861),c=n(4723),g=n(15306),y=n(23157),E=n(66992),x=n(33948),b=n(4942),C=n(85827),A=n(27852),P=n(23123),R=n(54087),N=n(73210),w=n(26131),I=n(82772),F=n(32023),G=n(65069);var Y=function(f,t){return(Y=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])})(f,t)};function D(f,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=f}Y(f,t),f.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function $(f){var t="";Array.isArray(f)||(f=[f]);for(var e=0;e<f.length;e++){var r=f[e];if(r.type===M.CLOSE_PATH)t+="z";else if(r.type===M.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===M.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===M.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===M.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===M.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===M.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===M.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===M.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==M.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}function H(f,t){var e=f[0],r=f[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function Z(){for(var f=[],t=0;t<arguments.length;t++)f[t]=arguments[t];for(var e=0;e<f.length;e++)if(typeof f[e]!="number")throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof f[e]+" == typeof "+f[e]);return!0}var tt=Math.PI;function J(f,t,e){f.lArcFlag=f.lArcFlag===0?0:1,f.sweepFlag=f.sweepFlag===0?0:1;var r=f.rX,a=f.rY,i=f.x,o=f.y;r=Math.abs(f.rX),a=Math.abs(f.rY);var s=H([(t-i)/2,(e-o)/2],-f.xRot/180*tt),u=s[0],v=s[1],p=Math.pow(u,2)/Math.pow(r,2)+Math.pow(v,2)/Math.pow(a,2);1<p&&(r*=Math.sqrt(p),a*=Math.sqrt(p)),f.rX=r,f.rY=a;var T=Math.pow(r,2)*Math.pow(v,2)+Math.pow(a,2)*Math.pow(u,2),O=(f.lArcFlag!==f.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(a,2)-T)/T)),m=r*v/a*O,L=-a*u/r*O,V=H([m,L],f.xRot/180*tt);f.cX=V[0]+(t+i)/2,f.cY=V[1]+(e+o)/2,f.phi1=Math.atan2((v-L)/a,(u-m)/r),f.phi2=Math.atan2((-v-L)/a,(-u-m)/r),f.sweepFlag===0&&f.phi2>f.phi1&&(f.phi2-=2*tt),f.sweepFlag===1&&f.phi2<f.phi1&&(f.phi2+=2*tt),f.phi1*=180/tt,f.phi2*=180/tt}function ht(f,t,e){Z(f,t,e);var r=f*f+t*t-e*e;if(0>r)return[];if(r===0)return[[f*e/(f*f+t*t),t*e/(f*f+t*t)]];var a=Math.sqrt(r);return[[(f*e+t*a)/(f*f+t*t),(t*e-f*a)/(f*f+t*t)],[(f*e-t*a)/(f*f+t*t),(t*e+f*a)/(f*f+t*t)]]}var rt,ot=Math.PI/180;function ft(f,t,e){return(1-e)*f+e*t}function pt(f,t,e,r){return f+Math.cos(r/180*tt)*t+Math.sin(r/180*tt)*e}function lt(f,t,e,r){var a=1e-6,i=t-f,o=e-t,s=3*i+3*(r-e)-6*o,u=6*(o-i),v=3*i;return Math.abs(s)<a?[-v/u]:function(p,T,O){O===void 0&&(O=1e-6);var m=p*p/4-T;if(m<-O)return[];if(m<=O)return[-p/2];var L=Math.sqrt(m);return[-p/2-L,-p/2+L]}(u/s,v/s,a)}function X(f,t,e,r,a){var i=1-a;return f*(i*i*i)+t*(3*i*i*a)+e*(3*i*a*a)+r*(a*a*a)}(function(f){function t(){return a(function(s,u,v){return s.relative&&(s.x1!==void 0&&(s.x1+=u),s.y1!==void 0&&(s.y1+=v),s.x2!==void 0&&(s.x2+=u),s.y2!==void 0&&(s.y2+=v),s.x!==void 0&&(s.x+=u),s.y!==void 0&&(s.y+=v),s.relative=!1),s})}function e(){var s=NaN,u=NaN,v=NaN,p=NaN;return a(function(T,O,m){return T.type&M.SMOOTH_CURVE_TO&&(T.type=M.CURVE_TO,s=isNaN(s)?O:s,u=isNaN(u)?m:u,T.x1=T.relative?O-s:2*O-s,T.y1=T.relative?m-u:2*m-u),T.type&M.CURVE_TO?(s=T.relative?O+T.x2:T.x2,u=T.relative?m+T.y2:T.y2):(s=NaN,u=NaN),T.type&M.SMOOTH_QUAD_TO&&(T.type=M.QUAD_TO,v=isNaN(v)?O:v,p=isNaN(p)?m:p,T.x1=T.relative?O-v:2*O-v,T.y1=T.relative?m-p:2*m-p),T.type&M.QUAD_TO?(v=T.relative?O+T.x1:T.x1,p=T.relative?m+T.y1:T.y1):(v=NaN,p=NaN),T})}function r(){var s=NaN,u=NaN;return a(function(v,p,T){if(v.type&M.SMOOTH_QUAD_TO&&(v.type=M.QUAD_TO,s=isNaN(s)?p:s,u=isNaN(u)?T:u,v.x1=v.relative?p-s:2*p-s,v.y1=v.relative?T-u:2*T-u),v.type&M.QUAD_TO){s=v.relative?p+v.x1:v.x1,u=v.relative?T+v.y1:v.y1;var O=v.x1,m=v.y1;v.type=M.CURVE_TO,v.x1=((v.relative?0:p)+2*O)/3,v.y1=((v.relative?0:T)+2*m)/3,v.x2=(v.x+2*O)/3,v.y2=(v.y+2*m)/3}else s=NaN,u=NaN;return v})}function a(s){var u=0,v=0,p=NaN,T=NaN;return function(O){if(isNaN(p)&&!(O.type&M.MOVE_TO))throw new Error("path must start with moveto");var m=s(O,u,v,p,T);return O.type&M.CLOSE_PATH&&(u=p,v=T),O.x!==void 0&&(u=O.relative?u+O.x:O.x),O.y!==void 0&&(v=O.relative?v+O.y:O.y),O.type&M.MOVE_TO&&(p=u,T=v),m}}function i(s,u,v,p,T,O){return Z(s,u,v,p,T,O),a(function(m,L,V,B){var U=m.x1,k=m.x2,j=m.relative&&!isNaN(B),z=m.x!==void 0?m.x:j?0:L,et=m.y!==void 0?m.y:j?0:V;function st(Gt){return Gt*Gt}m.type&M.HORIZ_LINE_TO&&u!==0&&(m.type=M.LINE_TO,m.y=m.relative?0:V),m.type&M.VERT_LINE_TO&&v!==0&&(m.type=M.LINE_TO,m.x=m.relative?0:L),m.x!==void 0&&(m.x=m.x*s+et*v+(j?0:T)),m.y!==void 0&&(m.y=z*u+m.y*p+(j?0:O)),m.x1!==void 0&&(m.x1=m.x1*s+m.y1*v+(j?0:T)),m.y1!==void 0&&(m.y1=U*u+m.y1*p+(j?0:O)),m.x2!==void 0&&(m.x2=m.x2*s+m.y2*v+(j?0:T)),m.y2!==void 0&&(m.y2=k*u+m.y2*p+(j?0:O));var W=s*p-u*v;if(m.xRot!==void 0&&(s!==1||u!==0||v!==0||p!==1))if(W===0)delete m.rX,delete m.rY,delete m.xRot,delete m.lArcFlag,delete m.sweepFlag,m.type=M.LINE_TO;else{var gt=m.xRot*Math.PI/180,dt=Math.sin(gt),mt=Math.cos(gt),Ct=1/st(m.rX),Ot=1/st(m.rY),Ft=st(mt)*Ct+st(dt)*Ot,Ut=2*dt*mt*(Ct-Ot),Mt=st(dt)*Ct+st(mt)*Ot,Lt=Ft*p*p-Ut*u*p+Mt*u*u,Vt=Ut*(s*p+u*v)-2*(Ft*v*p+Mt*s*u),zt=Ft*v*v-Ut*s*v+Mt*s*s,Et=(Math.atan2(Vt,Lt-zt)+Math.PI)%Math.PI/2,St=Math.sin(Et),jt=Math.cos(Et);m.rX=Math.abs(W)/Math.sqrt(Lt*st(jt)+Vt*St*jt+zt*st(St)),m.rY=Math.abs(W)/Math.sqrt(Lt*st(St)-Vt*St*jt+zt*st(jt)),m.xRot=180*Et/Math.PI}return m.sweepFlag!==void 0&&0>W&&(m.sweepFlag=+!m.sweepFlag),m})}function o(){return function(s){var u={};for(var v in s)u[v]=s[v];return u}}f.ROUND=function(s){function u(v){return Math.round(v*s)/s}return s===void 0&&(s=1e13),Z(s),function(v){return v.x1!==void 0&&(v.x1=u(v.x1)),v.y1!==void 0&&(v.y1=u(v.y1)),v.x2!==void 0&&(v.x2=u(v.x2)),v.y2!==void 0&&(v.y2=u(v.y2)),v.x!==void 0&&(v.x=u(v.x)),v.y!==void 0&&(v.y=u(v.y)),v.rX!==void 0&&(v.rX=u(v.rX)),v.rY!==void 0&&(v.rY=u(v.rY)),v}},f.TO_ABS=t,f.TO_REL=function(){return a(function(s,u,v){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=v),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=v),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=v),s.relative=!0),s})},f.NORMALIZE_HVZ=function(s,u,v){return s===void 0&&(s=!0),u===void 0&&(u=!0),v===void 0&&(v=!0),a(function(p,T,O,m,L){if(isNaN(m)&&!(p.type&M.MOVE_TO))throw new Error("path must start with moveto");return u&&p.type&M.HORIZ_LINE_TO&&(p.type=M.LINE_TO,p.y=p.relative?0:O),v&&p.type&M.VERT_LINE_TO&&(p.type=M.LINE_TO,p.x=p.relative?0:T),s&&p.type&M.CLOSE_PATH&&(p.type=M.LINE_TO,p.x=p.relative?m-T:m,p.y=p.relative?L-O:L),p.type&M.ARC&&(p.rX===0||p.rY===0)&&(p.type=M.LINE_TO,delete p.rX,delete p.rY,delete p.xRot,delete p.lArcFlag,delete p.sweepFlag),p})},f.NORMALIZE_ST=e,f.QT_TO_C=r,f.INFO=a,f.SANITIZE=function(s){s===void 0&&(s=0),Z(s);var u=NaN,v=NaN,p=NaN,T=NaN;return a(function(O,m,L,V,B){var U=Math.abs,k=!1,j=0,z=0;if(O.type&M.SMOOTH_CURVE_TO&&(j=isNaN(u)?0:m-u,z=isNaN(v)?0:L-v),O.type&(M.CURVE_TO|M.SMOOTH_CURVE_TO)?(u=O.relative?m+O.x2:O.x2,v=O.relative?L+O.y2:O.y2):(u=NaN,v=NaN),O.type&M.SMOOTH_QUAD_TO?(p=isNaN(p)?m:2*m-p,T=isNaN(T)?L:2*L-T):O.type&M.QUAD_TO?(p=O.relative?m+O.x1:O.x1,T=O.relative?L+O.y1:O.y2):(p=NaN,T=NaN),O.type&M.LINE_COMMANDS||O.type&M.ARC&&(O.rX===0||O.rY===0||!O.lArcFlag)||O.type&M.CURVE_TO||O.type&M.SMOOTH_CURVE_TO||O.type&M.QUAD_TO||O.type&M.SMOOTH_QUAD_TO){var et=O.x===void 0?0:O.relative?O.x:O.x-m,st=O.y===void 0?0:O.relative?O.y:O.y-L;j=isNaN(p)?O.x1===void 0?j:O.relative?O.x:O.x1-m:p-m,z=isNaN(T)?O.y1===void 0?z:O.relative?O.y:O.y1-L:T-L;var W=O.x2===void 0?0:O.relative?O.x:O.x2-m,gt=O.y2===void 0?0:O.relative?O.y:O.y2-L;U(et)<=s&&U(st)<=s&&U(j)<=s&&U(z)<=s&&U(W)<=s&&U(gt)<=s&&(k=!0)}return O.type&M.CLOSE_PATH&&U(m-V)<=s&&U(L-B)<=s&&(k=!0),k?[]:O})},f.MATRIX=i,f.ROTATE=function(s,u,v){u===void 0&&(u=0),v===void 0&&(v=0),Z(s,u,v);var p=Math.sin(s),T=Math.cos(s);return i(T,p,-p,T,u-u*T+v*p,v-u*p-v*T)},f.TRANSLATE=function(s,u){return u===void 0&&(u=0),Z(s,u),i(1,0,0,1,s,u)},f.SCALE=function(s,u){return u===void 0&&(u=s),Z(s,u),i(s,0,0,u,0,0)},f.SKEW_X=function(s){return Z(s),i(1,0,Math.atan(s),1,0,0)},f.SKEW_Y=function(s){return Z(s),i(1,Math.atan(s),0,1,0,0)},f.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Z(s),i(-1,0,0,1,s,0)},f.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Z(s),i(1,0,0,-1,0,s)},f.A_TO_C=function(){return a(function(s,u,v){return M.ARC===s.type?function(p,T,O){var m,L,V,B;p.cX||J(p,T,O);for(var U=Math.min(p.phi1,p.phi2),k=Math.max(p.phi1,p.phi2)-U,j=Math.ceil(k/90),z=new Array(j),et=T,st=O,W=0;W<j;W++){var gt=ft(p.phi1,p.phi2,W/j),dt=ft(p.phi1,p.phi2,(W+1)/j),mt=dt-gt,Ct=4/3*Math.tan(mt*ot/4),Ot=[Math.cos(gt*ot)-Ct*Math.sin(gt*ot),Math.sin(gt*ot)+Ct*Math.cos(gt*ot)],Ft=Ot[0],Ut=Ot[1],Mt=[Math.cos(dt*ot),Math.sin(dt*ot)],Lt=Mt[0],Vt=Mt[1],zt=[Lt+Ct*Math.sin(dt*ot),Vt-Ct*Math.cos(dt*ot)],Et=zt[0],St=zt[1];z[W]={relative:p.relative,type:M.CURVE_TO};var jt=function(Gt,Wt){var Xt=H([Gt*p.rX,Wt*p.rY],p.xRot),Qt=Xt[0],qt=Xt[1];return[p.cX+Qt,p.cY+qt]};m=jt(Ft,Ut),z[W].x1=m[0],z[W].y1=m[1],L=jt(Et,St),z[W].x2=L[0],z[W].y2=L[1],V=jt(Lt,Vt),z[W].x=V[0],z[W].y=V[1],p.relative&&(z[W].x1-=et,z[W].y1-=st,z[W].x2-=et,z[W].y2-=st,z[W].x-=et,z[W].y-=st),et=(B=[z[W].x,z[W].y])[0],st=B[1]}return z}(s,s.relative?0:u,s.relative?0:v):s})},f.ANNOTATE_ARCS=function(){return a(function(s,u,v){return s.relative&&(u=0,v=0),M.ARC===s.type&&J(s,u,v),s})},f.CLONE=o,f.CALCULATE_BOUNDS=function(){var s=function(O){var m={};for(var L in O)m[L]=O[L];return m},u=t(),v=r(),p=e(),T=a(function(O,m,L){var V=p(v(u(s(O))));function B(St){St>T.maxX&&(T.maxX=St),St<T.minX&&(T.minX=St)}function U(St){St>T.maxY&&(T.maxY=St),St<T.minY&&(T.minY=St)}if(V.type&M.DRAWING_COMMANDS&&(B(m),U(L)),V.type&M.HORIZ_LINE_TO&&B(V.x),V.type&M.VERT_LINE_TO&&U(V.y),V.type&M.LINE_TO&&(B(V.x),U(V.y)),V.type&M.CURVE_TO){B(V.x),U(V.y);for(var k=0,j=lt(m,V.x1,V.x2,V.x);k<j.length;k++)0<(Et=j[k])&&1>Et&&B(X(m,V.x1,V.x2,V.x,Et));for(var z=0,et=lt(L,V.y1,V.y2,V.y);z<et.length;z++)0<(Et=et[z])&&1>Et&&U(X(L,V.y1,V.y2,V.y,Et))}if(V.type&M.ARC){B(V.x),U(V.y),J(V,m,L);for(var st=V.xRot/180*Math.PI,W=Math.cos(st)*V.rX,gt=Math.sin(st)*V.rX,dt=-Math.sin(st)*V.rY,mt=Math.cos(st)*V.rY,Ct=V.phi1<V.phi2?[V.phi1,V.phi2]:-180>V.phi2?[V.phi2+360,V.phi1+360]:[V.phi2,V.phi1],Ot=Ct[0],Ft=Ct[1],Ut=function(St){var jt=St[0],Gt=St[1],Wt=180*Math.atan2(Gt,jt)/Math.PI;return Wt<Ot?Wt+360:Wt},Mt=0,Lt=ht(dt,-W,0).map(Ut);Mt<Lt.length;Mt++)(Et=Lt[Mt])>Ot&&Et<Ft&&B(pt(V.cX,W,dt,Et));for(var Vt=0,zt=ht(mt,-gt,0).map(Ut);Vt<zt.length;Vt++){var Et;(Et=zt[Vt])>Ot&&Et<Ft&&U(pt(V.cY,gt,mt,Et))}}return O});return T.minX=1/0,T.maxX=-1/0,T.minY=1/0,T.maxY=-1/0,T}})(rt||(rt={}));var K,ut=function(){function f(){}return f.prototype.round=function(t){return this.transform(rt.ROUND(t))},f.prototype.toAbs=function(){return this.transform(rt.TO_ABS())},f.prototype.toRel=function(){return this.transform(rt.TO_REL())},f.prototype.normalizeHVZ=function(t,e,r){return this.transform(rt.NORMALIZE_HVZ(t,e,r))},f.prototype.normalizeST=function(){return this.transform(rt.NORMALIZE_ST())},f.prototype.qtToC=function(){return this.transform(rt.QT_TO_C())},f.prototype.aToC=function(){return this.transform(rt.A_TO_C())},f.prototype.sanitize=function(t){return this.transform(rt.SANITIZE(t))},f.prototype.translate=function(t,e){return this.transform(rt.TRANSLATE(t,e))},f.prototype.scale=function(t,e){return this.transform(rt.SCALE(t,e))},f.prototype.rotate=function(t,e,r){return this.transform(rt.ROTATE(t,e,r))},f.prototype.matrix=function(t,e,r,a,i,o){return this.transform(rt.MATRIX(t,e,r,a,i,o))},f.prototype.skewX=function(t){return this.transform(rt.SKEW_X(t))},f.prototype.skewY=function(t){return this.transform(rt.SKEW_Y(t))},f.prototype.xSymmetry=function(t){return this.transform(rt.X_AXIS_SYMMETRY(t))},f.prototype.ySymmetry=function(t){return this.transform(rt.Y_AXIS_SYMMETRY(t))},f.prototype.annotateArcs=function(){return this.transform(rt.ANNOTATE_ARCS())},f}(),q=function(f){return f===" "||f===" "||f==="\r"||f===`
|
|
`},at=function(f){return 48<=f.charCodeAt(0)&&f.charCodeAt(0)<=57},vt=function(f){function t(){var e=f.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 D(t,f),t.prototype.finish=function(e){if(e===void 0&&(e=[]),this.parse(" ",e),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,r){var a=this;r===void 0&&(r=[]);for(var i=function(T){r.push(T),a.curArgs.length=0,a.canParseCommandOrComma=!0},o=0;o<e.length;o++){var s=e[o],u=!(this.curCommandType!==M.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),v=at(s)&&(this.curNumber==="0"&&s==="0"||u);if(!at(s)||v)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||u){if(this.curNumber&&this.curCommandType!==-1){var p=Number(this.curNumber);if(isNaN(p))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===M.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>p)throw new SyntaxError('Expected positive number, got "'+p+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(p),this.curArgs.length===bt[this.curCommandType]&&(M.HORIZ_LINE_TO===this.curCommandType?i({type:M.HORIZ_LINE_TO,relative:this.curCommandRelative,x:p}):M.VERT_LINE_TO===this.curCommandType?i({type:M.VERT_LINE_TO,relative:this.curCommandRelative,y:p}):this.curCommandType===M.MOVE_TO||this.curCommandType===M.LINE_TO||this.curCommandType===M.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),M.MOVE_TO===this.curCommandType&&(this.curCommandType=M.LINE_TO)):this.curCommandType===M.CURVE_TO?i({type:M.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===M.SMOOTH_CURVE_TO?i({type:M.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===M.QUAD_TO?i({type:M.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===M.ARC&&i({type:M.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(!q(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(v)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=M.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=M.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=M.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=M.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=M.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=M.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=M.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=M.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=M.ARC,this.curCommandRelative=s==="a"}else r.push({type:M.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){a===void 0&&(a=[]);for(var i=0,o=Object.getPrototypeOf(this).parse.call(this,r);i<o.length;i++){var s=o[i],u=e(s);Array.isArray(u)?a.push.apply(a,u):a.push(u)}return a}}})},t}(ut),M=function(f){function t(e){var r=f.call(this)||this;return r.commands=typeof e=="string"?t.parse(e):e,r}return D(t,f),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=rt.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 $(e)},t.parse=function(e){var r=new vt,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}(ut),bt=((K={})[M.MOVE_TO]=2,K[M.LINE_TO]=2,K[M.HORIZ_LINE_TO]=1,K[M.VERT_LINE_TO]=1,K[M.CLOSE_PATH]=0,K[M.QUAD_TO]=4,K[M.SMOOTH_QUAD_TO]=2,K[M.CURVE_TO]=6,K[M.SMOOTH_CURVE_TO]=4,K[M.ARC]=7,K),Tt=n(39714);function Rt(f){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rt=function(t){return typeof t}:Rt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(f)}function It(f,t){if(!(f instanceof t))throw new TypeError("Cannot call a class as a function")}var At=[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],$t=[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 _t(f,t,e,r,a,i){if(typeof f=="string"&&(f=document.getElementById(f)),!(!f||!("naturalWidth"in f))){var o=a?"offset":"natural",s=f[o+"Width"],u=f[o+"Height"];if(typeof t=="string"&&(t=document.getElementById(t)),!(!t||!("getContext"in t))){i||(t.style.width=s+"px",t.style.height=u+"px"),t.width=s,t.height=u;var v=t.getContext("2d");v.clearRect(0,0,s,u),v.drawImage(f,0,0,f.naturalWidth,f.naturalHeight,0,0,s,u),!(isNaN(e)||e<1)&&(r?Yt(t,0,0,s,u,e):se(t,0,0,s,u,e))}}}function kt(f,t,e,r,a){if(typeof f=="string"&&(f=document.getElementById(f)),!f||Rt(f)!=="object"||!("getContext"in f))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=f.getContext("2d");try{return i.getImageData(t,e,r,a)}catch(o){throw new Error("unable to access image data: "+o)}}function Yt(f,t,e,r,a,i){if(!(isNaN(i)||i<1)){i|=0;var o=kt(f,t,e,r,a);o=fe(o,t,e,r,a,i),f.getContext("2d").putImageData(o,t,e)}}function fe(f,t,e,r,a,i){for(var o=f.data,s=2*i+1,u=r-1,v=a-1,p=i+1,T=p*(p+1)/2,O=new te,m=O,L,V=1;V<s;V++)m=m.next=new te,V===p&&(L=m);m.next=O;for(var B=null,U=null,k=0,j=0,z=At[i],et=$t[i],st=0;st<a;st++){m=O;for(var W=o[j],gt=o[j+1],dt=o[j+2],mt=o[j+3],Ct=0;Ct<p;Ct++)m.r=W,m.g=gt,m.b=dt,m.a=mt,m=m.next;for(var Ot=0,Ft=0,Ut=0,Mt=0,Lt=p*W,Vt=p*gt,zt=p*dt,Et=p*mt,St=T*W,jt=T*gt,Gt=T*dt,Wt=T*mt,Xt=1;Xt<p;Xt++){var Qt=j+((u<Xt?u:Xt)<<2),qt=o[Qt],ne=o[Qt+1],Le=o[Qt+2],Be=o[Qt+3],xe=p-Xt;St+=(m.r=qt)*xe,jt+=(m.g=ne)*xe,Gt+=(m.b=Le)*xe,Wt+=(m.a=Be)*xe,Ot+=qt,Ft+=ne,Ut+=Le,Mt+=Be,m=m.next}B=O,U=L;for(var Ee=0;Ee<r;Ee++){var Te=Wt*z>>et;if(o[j+3]=Te,Te!==0){var Oe=255/Te;o[j]=(St*z>>et)*Oe,o[j+1]=(jt*z>>et)*Oe,o[j+2]=(Gt*z>>et)*Oe}else o[j]=o[j+1]=o[j+2]=0;St-=Lt,jt-=Vt,Gt-=zt,Wt-=Et,Lt-=B.r,Vt-=B.g,zt-=B.b,Et-=B.a;var ae=Ee+i+1;ae=k+(ae<u?ae:u)<<2,Ot+=B.r=o[ae],Ft+=B.g=o[ae+1],Ut+=B.b=o[ae+2],Mt+=B.a=o[ae+3],St+=Ot,jt+=Ft,Gt+=Ut,Wt+=Mt,B=B.next;var Se=U,Fe=Se.r,Ue=Se.g,Ne=Se.b,Ye=Se.a;Lt+=Fe,Vt+=Ue,zt+=Ne,Et+=Ye,Ot-=Fe,Ft-=Ue,Ut-=Ne,Mt-=Ye,U=U.next,j+=4}k+=r}for(var ie=0;ie<r;ie++){j=ie<<2;var Ie=o[j],Me=o[j+1],we=o[j+2],Kt=o[j+3],Ar=p*Ie,Pr=p*Me,Rr=p*we,Nr=p*Kt,er=T*Ie,rr=T*Me,nr=T*we,ar=T*Kt;m=O;for(var Cn=0;Cn<p;Cn++)m.r=Ie,m.g=Me,m.b=we,m.a=Kt,m=m.next;for(var An=r,Ir=0,Mr=0,wr=0,Vr=0,ir=1;ir<=i;ir++){j=An+ie<<2;var sr=p-ir;er+=(m.r=Ie=o[j])*sr,rr+=(m.g=Me=o[j+1])*sr,nr+=(m.b=we=o[j+2])*sr,ar+=(m.a=Kt=o[j+3])*sr,Vr+=Ie,Ir+=Me,Mr+=we,wr+=Kt,m=m.next,ir<v&&(An+=r)}j=ie,B=O,U=L;for(var Dr=0;Dr<a;Dr++){var Zt=j<<2;o[Zt+3]=Kt=ar*z>>et,Kt>0?(Kt=255/Kt,o[Zt]=(er*z>>et)*Kt,o[Zt+1]=(rr*z>>et)*Kt,o[Zt+2]=(nr*z>>et)*Kt):o[Zt]=o[Zt+1]=o[Zt+2]=0,er-=Ar,rr-=Pr,nr-=Rr,ar-=Nr,Ar-=B.r,Pr-=B.g,Rr-=B.b,Nr-=B.a,Zt=ie+((Zt=Dr+p)<v?Zt:v)*r<<2,er+=Vr+=B.r=o[Zt],rr+=Ir+=B.g=o[Zt+1],nr+=Mr+=B.b=o[Zt+2],ar+=wr+=B.a=o[Zt+3],B=B.next,Ar+=Ie=U.r,Pr+=Me=U.g,Rr+=we=U.b,Nr+=Kt=U.a,Vr-=Ie,Ir-=Me,Mr-=we,wr-=Kt,U=U.next,j+=r}}return f}function se(f,t,e,r,a,i){if(!(isNaN(i)||i<1)){i|=0;var o=kt(f,t,e,r,a);o=ve(o,t,e,r,a,i),f.getContext("2d").putImageData(o,t,e)}}function ve(f,t,e,r,a,i){for(var o=f.data,s=2*i+1,u=r-1,v=a-1,p=i+1,T=p*(p+1)/2,O=new te,m=O,L,V=1;V<s;V++)m=m.next=new te,V===p&&(L=m);m.next=O;for(var B=null,U=null,k=At[i],j=$t[i],z,et,st=0,W=0,gt=0;gt<a;gt++){var dt=o[W],mt=o[W+1],Ct=o[W+2],Ot=p*dt,Ft=p*mt,Ut=p*Ct,Mt=T*dt,Lt=T*mt,Vt=T*Ct;m=O;for(var zt=0;zt<p;zt++)m.r=dt,m.g=mt,m.b=Ct,m=m.next;for(var Et=0,St=0,jt=0,Gt=1;Gt<p;Gt++)z=W+((u<Gt?u:Gt)<<2),Mt+=(m.r=dt=o[z])*(et=p-Gt),Lt+=(m.g=mt=o[z+1])*et,Vt+=(m.b=Ct=o[z+2])*et,Et+=dt,St+=mt,jt+=Ct,m=m.next;B=O,U=L;for(var Wt=0;Wt<r;Wt++)o[W]=Mt*k>>j,o[W+1]=Lt*k>>j,o[W+2]=Vt*k>>j,Mt-=Ot,Lt-=Ft,Vt-=Ut,Ot-=B.r,Ft-=B.g,Ut-=B.b,z=st+((z=Wt+i+1)<u?z:u)<<2,Et+=B.r=o[z],St+=B.g=o[z+1],jt+=B.b=o[z+2],Mt+=Et,Lt+=St,Vt+=jt,B=B.next,Ot+=dt=U.r,Ft+=mt=U.g,Ut+=Ct=U.b,Et-=dt,St-=mt,jt-=Ct,U=U.next,W+=4;st+=r}for(var Xt=0;Xt<r;Xt++){W=Xt<<2;var Qt=o[W],qt=o[W+1],ne=o[W+2],Le=p*Qt,Be=p*qt,xe=p*ne,Ee=T*Qt,Te=T*qt,Oe=T*ne;m=O;for(var ae=0;ae<p;ae++)m.r=Qt,m.g=qt,m.b=ne,m=m.next;for(var Se=0,Fe=0,Ue=0,Ne=1,Ye=r;Ne<=i;Ne++)W=Ye+Xt<<2,Ee+=(m.r=Qt=o[W])*(et=p-Ne),Te+=(m.g=qt=o[W+1])*et,Oe+=(m.b=ne=o[W+2])*et,Se+=Qt,Fe+=qt,Ue+=ne,m=m.next,Ne<v&&(Ye+=r);W=Xt,B=O,U=L;for(var ie=0;ie<a;ie++)z=W<<2,o[z]=Ee*k>>j,o[z+1]=Te*k>>j,o[z+2]=Oe*k>>j,Ee-=Le,Te-=Be,Oe-=xe,Le-=B.r,Be-=B.g,xe-=B.b,z=Xt+((z=ie+p)<v?z:v)*r<<2,Ee+=Se+=B.r=o[z],Te+=Fe+=B.g=o[z+1],Oe+=Ue+=B.b=o[z+2],B=B.next,Le+=Qt=U.r,Be+=qt=U.g,xe+=ne=U.b,Se-=Qt,Fe-=qt,Ue-=ne,U=U.next,W+=r}return f}var te=function f(){It(this,f),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null},ce=n(34155);function be(){var{DOMParser:f}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:f,createCanvas(e,r){return new OffscreenCanvas(e,r)},createImage(e){return(0,h.Z)(function*(){var r=yield fetch(e),a=yield r.blob(),i=yield createImageBitmap(a);return i})()}};return(typeof DOMParser!="undefined"||typeof f=="undefined")&&Reflect.deleteProperty(t,"DOMParser"),t}function Ce(f){var{DOMParser:t,canvas:e,fetch:r}=f;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:e.createCanvas,createImage:e.loadImage}}var or=Object.freeze({__proto__:null,offscreen:be,node:Ce});function ee(f){return f.replace(/(?!\u3000)\s+/gm," ")}function Xe(f){return f.replace(/^[\n \t]+/,"")}function oe(f){return f.replace(/[\n \t]+$/,"")}function Dt(f){var t=(f||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return t.map(parseFloat)}var je=/^[A-Z-]+$/;function Q(f){return je.test(f)?f.toLowerCase():f}function nt(f){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(f)||[];return t[2]||t[3]||t[4]}function ct(f){if(!f.startsWith("rgb"))return f;var t=3,e=f.replace(/\d+(\.\d+)?/g,(r,a)=>t--&&a?String(Math.round(parseFloat(r))):r);return e}var yt=/(\[[^\]]+\])/g,Pt=/(#[^\s+>~.[:]+)/g,ge=/(\.[^\s+>~.[:]+)/g,Ve=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,de=/(:[\w-]+\([^)]*\))/gi,pe=/(:[^\s+>~.[:]+)/g,We=/([^\s+>~.[:]+)/g;function re(f,t){var e=t.exec(f);return e?[f.replace(t," "),e.length]:[f,0]}function Qe(f){var t=[0,0,0],e=f.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[e,r]=re(e,yt),t[1]+=r,[e,r]=re(e,Pt),t[0]+=r,[e,r]=re(e,ge),t[1]+=r,[e,r]=re(e,Ve),t[2]+=r,[e,r]=re(e,de),t[1]+=r,[e,r]=re(e,pe),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=re(e,We),t[2]+=r,t.join("")}var Ae=1e-8;function ur(f){return Math.sqrt(Math.pow(f[0],2)+Math.pow(f[1],2))}function Ke(f,t){return(f[0]*t[0]+f[1]*t[1])/(ur(f)*ur(t))}function lr(f,t){return(f[0]*t[1]<f[1]*t[0]?-1:1)*Math.acos(Ke(f,t))}function hr(f){return f*f*f}function fr(f){return 3*f*f*(1-f)}function vr(f){return 3*f*(1-f)*(1-f)}function cr(f){return(1-f)*(1-f)*(1-f)}function gr(f){return f*f}function dr(f){return 2*f*(1-f)}function pr(f){return(1-f)*(1-f)}class _{constructor(t,e,r){this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}static empty(t){return new _(t,"EMPTY","")}split(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:e,name:r}=this;return ee(this.getString()).trim().split(t).map(a=>new _(e,r,a))}hasValue(t){var{value:e}=this;return e!==null&&e!==""&&(t||e!==0)&&typeof e!="undefined"}isString(t){var{value:e}=this,r=typeof e=="string";return!r||!t?r:t.test(e)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return typeof t=="undefined"||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return typeof t=="undefined"?0:parseFloat(t);var{value:e}=this,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}getString(t){return typeof t=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=ct(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,a]=typeof t=="boolean"?[void 0,t]:[t],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&a):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(r);default:{var o=this.getNumber();return e&&o<1?o*i.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,t,e);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var a=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),a.hasValue()&&r.getAttribute("patternTransform",!0).setValue(a.value)}return r.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?_.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,a=0,i=0;i<r&&(e[i]===","&&a++,a!==3);i++);if(t.hasValue()&&this.isString()&&a!==3){var o=new w(e);o.ok&&(o.alpha=t.getNumber(),e=o.toRGBA())}return new _(this.document,this.name,e)}}_.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class Lr{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 typeof t=="number"?t:t==="x"?this.width:t==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class wt{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=e,a=e]=Dt(t);return new wt(r,a)}static parseScale(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=e,a=r]=Dt(t);return new wt(r,a)}static parsePath(t){for(var e=Dt(t),r=e.length,a=[],i=0;i<r;i+=2)a.push(new wt(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,a=e*t[0]+r*t[2]+t[4],i=e*t[1]+r*t[3]+t[5];this.x=a,this.y=i}}class Br{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 wt(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 Fr=typeof window!="undefined"?window:null,Ur=typeof fetch!="undefined"?fetch.bind(void 0):null;class ze{constructor(t){var{fetch:e=Ur,window:r=Fr}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Lr,this.mouse=new Br(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every(e=>e());return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:r,aspectRatio:a,width:i,desiredWidth:o,height:s,desiredHeight:u,minX:v=0,minY:p=0,refX:T,refY:O,clip:m=!1,clipX:L=0,clipY:V=0}=t,B=ee(a).replace(/^defer\s/,""),[U,k]=B.split(" "),j=U||"xMidYMid",z=k||"meet",et=i/o,st=s/u,W=Math.min(et,st),gt=Math.max(et,st),dt=o,mt=u;z==="meet"&&(dt*=W,mt*=W),z==="slice"&&(dt*=gt,mt*=gt);var Ct=new _(e,"refX",T),Ot=new _(e,"refY",O),Ft=Ct.hasValue()&&Ot.hasValue();if(Ft&&r.translate(-W*Ct.getPixels("x"),-W*Ot.getPixels("y")),m){var Ut=W*L,Mt=W*V;r.beginPath(),r.moveTo(Ut,Mt),r.lineTo(i,Mt),r.lineTo(i,s),r.lineTo(Ut,s),r.closePath(),r.clip()}if(!Ft){var Lt=z==="meet"&&W===st,Vt=z==="slice"&>===st,zt=z==="meet"&&W===et,Et=z==="slice"&>===et;j.startsWith("xMid")&&(Lt||Vt)&&r.translate(i/2-dt/2,0),j.endsWith("YMid")&&(zt||Et)&&r.translate(0,s/2-mt/2),j.startsWith("xMax")&&(Lt||Vt)&&r.translate(i-dt,0),j.endsWith("YMax")&&(zt||Et)&&r.translate(0,s-mt)}switch(!0){case j==="none":r.scale(et,st);break;case z==="meet":r.scale(W,W);break;case z==="slice":r.scale(gt,gt);break}r.translate(-v,-p)}start(t){var{enableRedraw:e=!1,ignoreMouse:r=!1,ignoreAnimation:a=!1,ignoreDimensions:i=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:u,scaleHeight:v,offsetX:p,offsetY:T}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:O,mouse:m}=this,L=1e3/O;if(this.frameDuration=L,this.readyPromise=new Promise(j=>{this.resolveReady=j}),this.isReady()&&this.render(t,i,o,u,v,p,T),!!e){var V=Date.now(),B=V,U=0,k=()=>{V=Date.now(),U=V-B,U>=L&&(B=V-U%L,this.shouldUpdate(a,s)&&(this.render(t,i,o,u,v,p,T),m.runEvents())),this.intervalId=R(k)};r||m.start(),this.intervalId=R(k)}}stop(){this.intervalId&&(R.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:r}=this,a=this.animations.reduce((i,o)=>o.update(r)||i,!1);if(a)return!0}return!!(typeof e=="function"&&e()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(t,e,r,a,i,o,s){var{CLIENT_WIDTH:u,CLIENT_HEIGHT:v,viewPort:p,ctx:T,isFirstRender:O}=this,m=T.canvas;p.clear(),m.width&&m.height?p.setCurrent(m.width,m.height):p.setCurrent(u,v);var L=t.getStyle("width"),V=t.getStyle("height");!e&&(O||typeof a!="number"&&typeof i!="number")&&(L.hasValue()&&(m.width=L.getPixels("x"),m.style&&(m.style.width="".concat(m.width,"px"))),V.hasValue()&&(m.height=V.getPixels("y"),m.style&&(m.style.height="".concat(m.height,"px"))));var B=m.clientWidth||m.width,U=m.clientHeight||m.height;if(e&&L.hasValue()&&V.hasValue()&&(B=L.getPixels("x"),U=V.getPixels("y")),p.setCurrent(B,U),typeof o=="number"&&t.getAttribute("x",!0).setValue(o),typeof s=="number"&&t.getAttribute("y",!0).setValue(s),typeof a=="number"||typeof i=="number"){var k=Dt(t.getAttribute("viewBox").getString()),j=0,z=0;if(typeof a=="number"){var et=t.getStyle("width");et.hasValue()?j=et.getPixels("x")/a:isNaN(k[2])||(j=k[2]/a)}if(typeof i=="number"){var st=t.getStyle("height");st.hasValue()?z=st.getPixels("y")/i:isNaN(k[3])||(z=k[3]/i)}j||(j=z),z||(z=j),t.getAttribute("width",!0).setValue(a),t.getAttribute("height",!0).setValue(i);var W=t.getStyle("transform",!0,!0);W.setValue("".concat(W.getString()," scale(").concat(1/j,", ").concat(1/z,")"))}r||T.clearRect(0,0,B,U),t.render(T),O&&(this.isFirstRender=!1)}}ze.defaultWindow=Fr,ze.defaultFetch=Ur;var{defaultFetch:Pn}=ze,Rn=typeof DOMParser!="undefined"?DOMParser:null;class Ze{constructor(){var{fetch:t=Pn,DOMParser:e=Rn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return(0,h.Z)(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(r){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(0,h.Z)(function*(){var r=yield e.fetch(t),a=yield r.text();return e.parseFromString(a)})()}}class jr{constructor(t,e){this.type="translate",this.point=null,this.point=wt.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 zr{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var a=Dt(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=wt.parseScale(e);(a.x===0||a.y===0)&&(a.x=Ae,a.y=Ae),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 yr{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Dt(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],v=a[3],p=a[5],T=0,O=0,m=1,L=1/(i*(v*m-p*O)-o*(u*m-p*T)+s*(u*O-v*T)),V=e.getPixels("x"),B=r.getPixels("y");t.translate(V,B),t.transform(L*(v*m-p*O),L*(p*T-u*m),L*(s*O-o*m),L*(i*m-s*T),L*(o*p-s*v),L*(s*u-i*p)),t.translate(-V,-B)}applyToPoint(t){t.applyTransform(this.matrix)}}class mr extends yr{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new _(t,"angle",e)}}class Hr extends mr{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 mr{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function Nn(f){return ee(f).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function In(f){var[t,e]=f.split("(");return[t.trim(),e.trim().replace(")","")]}class ye{constructor(t,e,r){this.document=t,this.transforms=[];var a=Nn(e);a.forEach(i=>{if(i!=="none"){var[o,s]=In(i),u=ye.transformTypes[o];typeof u!="undefined"&&this.transforms.push(new u(this.document,s,r))}})}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[a,i=a]=e.getStyle("transform-origin",!1,!0).split(),o=[a,i];return r.hasValue()?new ye(t,r.getString(),o):null}apply(t){for(var{transforms:e}=this,r=e.length,a=0;a<r;a++)e[a].apply(t)}unapply(t){for(var{transforms:e}=this,r=e.length,a=r-1;a>=0;a--)e[a].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,r=e.length,a=0;a<r;a++)e[a].applyToPoint(t)}}ye.transformTypes={translate:jr,rotate:zr,scale:Gr,matrix:yr,skewX:Hr,skewY:$r};class Nt{constructor(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=t,this.node=e,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!e||e.nodeType!==1)){if(Array.from(e.attributes).forEach(s=>{var u=Q(s.nodeName);this.attributes[u]=new _(t,u,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var a=this.getAttribute("style").getString().split(";").map(s=>s.trim());a.forEach(s=>{if(s){var[u,v]=s.split(":").map(p=>p.trim());this.styles[u]=new _(t,u,v)}})}var{definitions:i}=t,o=this.getAttribute("id");o.hasValue()&&(i[o.getString()]||(i[o.getString()]=this)),Array.from(e.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var u=t.createTextNode(s);u.getText().length>0&&this.addChild(u)}})}}getAttribute(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[t];if(!r&&e){var a=new _(this.document,t,"");return this.attributes[t]=a,a}return r||_.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if(t==="href"||t.endsWith(":href"))return this.attributes[t];return _.empty(this.document)}getStyle(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.styles[t];if(a)return a;var i=this.getAttribute(t);if(i!=null&&i.hasValue())return this.styles[t]=i,i;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(t);if(s!=null&&s.hasValue())return s}}if(e){var u=new _(this.document,t,"");return this.styles[t]=u,u}return a||_.empty(this.document)}render(t){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=ye.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var a=r.getDefinition();a&&a.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach(e=>{e.render(t)})}addChild(t){var e=t instanceof Nt?t:this.document.createElement(t);e.parent=this,Nt.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var e,{node:r}=this;if(typeof r.matches=="function")return r.matches(t);var a=(e=r.getAttribute)===null||e===void 0?void 0:e.call(r,"class");return!a||a===""?!1:a.split(" ").some(i=>".".concat(i)===t)}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var a=t[r],i=e[r];if(a)for(var o in a){var s=this.stylesSpecificity[o];typeof s=="undefined"&&(s="000"),i>=s&&(this.styles[o]=a[o],this.stylesSpecificity[o]=i)}}}removeStyles(t,e){var r=e.reduce((a,i)=>{var o=t.getStyle(i);if(!o.hasValue())return a;var s=o.getString();return o.setValue(""),[...a,[i,s]]},[]);return r}restoreStyles(t,e){e.forEach(r=>{var[a,i]=r;t.getStyle(a,!0).setValue(i)})}isFirstChild(){var t;return((t=this.parent)===null||t===void 0?void 0:t.children.indexOf(this))===0}}Nt.ignoreChildTypes=["title"];class Yr extends Nt{constructor(t,e,r){super(t,e,r)}}function Mn(f){var t=f.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function wn(f){return typeof ce=="undefined"?f:f.trim().split(",").map(Mn).join(",")}function Vn(f){if(!f)return"";var t=f.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 Dn(f){if(!f)return"";var t=f.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:""}}class Ht{constructor(t,e,r,a,i,o){var s=o?typeof o=="string"?Ht.parse(o):o:{};this.fontFamily=i||s.fontFamily,this.fontSize=a||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=e||s.fontVariant}static parse(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,r="",a="",i="",o="",s="",u=ee(t).trim().split(" "),v={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach(p=>{switch(!0){case(!v.fontStyle&&Ht.styles.includes(p)):p!=="inherit"&&(r=p),v.fontStyle=!0;break;case(!v.fontVariant&&Ht.variants.includes(p)):p!=="inherit"&&(a=p),v.fontStyle=!0,v.fontVariant=!0;break;case(!v.fontWeight&&Ht.weights.includes(p)):p!=="inherit"&&(i=p),v.fontStyle=!0,v.fontVariant=!0,v.fontWeight=!0;break;case!v.fontSize:p!=="inherit"&&([o]=p.split("/")),v.fontStyle=!0,v.fontVariant=!0,v.fontWeight=!0,v.fontSize=!0;break;default:p!=="inherit"&&(s+=p)}}),new Ht(r,a,i,o,s,e)}toString(){return[Vn(this.fontStyle),this.fontVariant,Dn(this.fontWeight),this.fontSize,wn(this.fontFamily)].join(" ").trim()}}Ht.styles="normal|italic|oblique|inherit",Ht.variants="normal|small-caps|inherit",Ht.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Jt{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,a=arguments.length>3&&arguments[3]!==void 0?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!="undefined"&&((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!="undefined"&&((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(s===0){if(o===0)return;var v=-u/o;0<v&&v<1&&(t?this.addX(this.sumCubic(v,e,r,a,i)):this.addY(this.sumCubic(v,e,r,a,i)));return}var p=Math.pow(o,2)-4*u*s;if(!(p<0)){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)));var O=(-o-Math.sqrt(p))/(2*s);0<O&&O<1&&(t?this.addX(this.sumCubic(O,e,r,a,i)):this.addY(this.sumCubic(O,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),v=s+1/3*(i-t),p=u+1/3*(o-e);this.addBezierCurve(t,e,s,v,u,p,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 it extends M{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 wt(0,0),this.control=new wt(0,0),this.current=new wt(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 t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new wt(this.command[t],this.command[e]);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!==M.CURVE_TO&&t!==M.SMOOTH_CURVE_TO&&t!==M.QUAD_TO&&t!==M.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:a,y:i}}=this,o=new wt(2*e-a,2*r-i);return o}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 me extends Nt{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&&arguments[1]!==void 0?arguments[1]:!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()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();u!=="inherit"&&(t.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(a.hasValue()){var v=new _(this.document,"fill",t.fillStyle).addOpacity(a).getColor();t.fillStyle=v}if(i.isUrlDefinition()){var p=i.getFillStyleDefinition(this,o);p&&(t.strokeStyle=p)}else if(i.hasValue()){i.getString()==="currentColor"&&i.setValue(this.getStyle("color").getColor());var T=i.getString();T!=="inherit"&&(t.strokeStyle=T==="none"?"rgba(0,0,0,0)":T)}if(o.hasValue()){var O=new _(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=O}var m=this.getStyle("stroke-width");if(m.hasValue()){var L=m.getPixels();t.lineWidth=L||Ae}var V=this.getStyle("stroke-linecap"),B=this.getStyle("stroke-linejoin"),U=this.getStyle("stroke-miterlimit"),k=this.getStyle("stroke-dasharray"),j=this.getStyle("stroke-dashoffset");if(V.hasValue()&&(t.lineCap=V.getString()),B.hasValue()&&(t.lineJoin=B.getString()),U.hasValue()&&(t.miterLimit=U.getNumber()),k.hasValue()&&k.getString()!=="none"){var z=Dt(k.getString());typeof t.setLineDash!="undefined"?t.setLineDash(z):typeof t.webkitLineDash!="undefined"?t.webkitLineDash=z:typeof t.mozDash!="undefined"&&!(z.length===1&&z[0]===0)&&(t.mozDash=z);var et=j.getPixels();typeof t.lineDashOffset!="undefined"?t.lineDashOffset=et:typeof t.webkitLineDashOffset!="undefined"?t.webkitLineDashOffset=et:typeof t.mozDashOffset!="undefined"&&(t.mozDashOffset=et)}}if(this.modifiedEmSizeStack=!1,typeof t.font!="undefined"){var st=this.getStyle("font"),W=this.getStyle("font-style"),gt=this.getStyle("font-variant"),dt=this.getStyle("font-weight"),mt=this.getStyle("font-size"),Ct=this.getStyle("font-family"),Ot=new Ht(W.getString(),gt.getString(),dt.getString(),mt.hasValue()?"".concat(mt.getPixels(!0),"px"):"",Ct.getString(),Ht.parse(st.getString(),t.font));W.setValue(Ot.fontStyle),gt.setValue(Ot.fontVariant),dt.setValue(Ot.fontWeight),mt.setValue(Ot.fontSize),Ct.setValue(Ot.fontFamily),t.font=Ot.toString(),mt.isPixels()&&(this.document.emSize=mt.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class xt extends me{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new it(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new Jt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case it.MOVE_TO:this.pathM(t,r);break;case it.LINE_TO:this.pathL(t,r);break;case it.HORIZ_LINE_TO:this.pathH(t,r);break;case it.VERT_LINE_TO:this.pathV(t,r);break;case it.CURVE_TO:this.pathC(t,r);break;case it.SMOOTH_CURVE_TO:this.pathS(t,r);break;case it.QUAD_TO:this.pathQ(t,r);break;case it.SMOOTH_QUAD_TO:this.pathT(t,r);break;case it.ARC:this.pathA(t,r);break;case it.CLOSE_PATH:this.pathZ(t,r);break}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles(),a=e.map((i,o)=>[i,r[o]]);return a}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");t.fillStyle!==""&&(e.getString("inherit")!=="inherit"?t.fill(e.getString()):t.fill()),t.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(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(),[v,p]=r[0];u.render(t,v,p)}if(o.isUrlDefinition())for(var T=o.getDefinition(),O=1;O<a;O++){var[m,L]=r[O];T.render(t,m,L)}if(s.isUrlDefinition()){var V=s.getDefinition(),[B,U]=r[a];V.render(t,B,U)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:r}=this,{point:a}=xt.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,r=t.getAsCurrentPoint();return{current:e,point:r}}pathL(t,e){var{pathParser:r}=this,{current:a,point:i}=xt.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 wt((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}=xt.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 wt(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}=xt.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,r=t.getPoint("x1","y1"),a=t.getAsControlPoint("x2","y2"),i=t.getAsCurrentPoint();return{current:e,point:r,controlPoint:a,currentPoint:i}}pathC(t,e){var{pathParser:r}=this,{current:a,point:i,controlPoint:o,currentPoint:s}=xt.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,r=t.getReflectedControlPoint(),a=t.getAsControlPoint("x2","y2"),i=t.getAsCurrentPoint();return{current:e,point:r,controlPoint:a,currentPoint:i}}pathS(t,e){var{pathParser:r}=this,{current:a,point:i,controlPoint:o,currentPoint:s}=xt.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,r=t.getAsControlPoint("x1","y1"),a=t.getAsCurrentPoint();return{current:e,controlPoint:r,currentPoint:a}}pathQ(t,e){var{pathParser:r}=this,{current:a,controlPoint:i,currentPoint:o}=xt.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();t.control=r;var a=t.getAsCurrentPoint();return{current:e,controlPoint:r,currentPoint:a}}pathT(t,e){var{pathParser:r}=this,{current:a,controlPoint:i,currentPoint:o}=xt.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,v=o*(Math.PI/180),p=t.getAsCurrentPoint(),T=new wt(Math.cos(v)*(e.x-p.x)/2+Math.sin(v)*(e.y-p.y)/2,-Math.sin(v)*(e.x-p.x)/2+Math.cos(v)*(e.y-p.y)/2),O=Math.pow(T.x,2)/Math.pow(a,2)+Math.pow(T.y,2)/Math.pow(i,2);O>1&&(a*=Math.sqrt(O),i*=Math.sqrt(O));var m=(s===u?-1:1)*Math.sqrt((Math.pow(a,2)*Math.pow(i,2)-Math.pow(a,2)*Math.pow(T.y,2)-Math.pow(i,2)*Math.pow(T.x,2))/(Math.pow(a,2)*Math.pow(T.y,2)+Math.pow(i,2)*Math.pow(T.x,2)));isNaN(m)&&(m=0);var L=new wt(m*a*T.y/i,m*-i*T.x/a),V=new wt((e.x+p.x)/2+Math.cos(v)*L.x-Math.sin(v)*L.y,(e.y+p.y)/2+Math.sin(v)*L.x+Math.cos(v)*L.y),B=lr([1,0],[(T.x-L.x)/a,(T.y-L.y)/i]),U=[(T.x-L.x)/a,(T.y-L.y)/i],k=[(-T.x-L.x)/a,(-T.y-L.y)/i],j=lr(U,k);return Ke(U,k)<=-1&&(j=Math.PI),Ke(U,k)>=1&&(j=0),{currentPoint:p,rX:a,rY:i,sweepFlag:u,xAxisRotation:v,centp:V,a1:B,ad:j}}pathA(t,e){var{pathParser:r}=this,{currentPoint:a,rX:i,rY:o,sweepFlag:s,xAxisRotation:u,centp:v,a1:p,ad:T}=xt.pathA(r),O=1-s?1:-1,m=p+O*(T/2),L=new wt(v.x+i*Math.cos(m),v.y+o*Math.sin(m));if(r.addMarkerAngle(L,m-O*Math.PI/2),r.addMarkerAngle(a,m-O*Math.PI),e.addPoint(a.x,a.y),t&&!isNaN(p)&&!isNaN(T)){var V=i>o?i:o,B=i>o?1:i/o,U=i>o?o/i:1;t.translate(v.x,v.y),t.rotate(u),t.scale(B,U),t.arc(0,0,V,p,p+T,!!(1-s)),t.scale(1/B,1/U),t.rotate(-u),t.translate(-v.x,-v.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){xt.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class xr extends xt{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 ue extends me{constructor(t,e,r){super(t,e,new.target===ue?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(t,e);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(this.type!=="text")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=Ht.parse(t.ctx.font).fontSize,a=e.getStyle("font-size").getNumber(r);return a}getTElementBoundingBox(t){var e=this.getFontSize();return new Jt(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],v="isolated";if((r===0||s===" ")&&r<o-1&&u!==" "&&(v="terminal"),r>0&&s!==" "&&r<o-1&&u!==" "&&(v="medial"),r>0&&s!==" "&&(r===o-1||u===" ")&&(v="initial"),typeof t.glyphs[a]!="undefined"){var p=t.glyphs[a];i=p instanceof xr?p:p[v]}}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=ee(e.textContent||"");return a===0&&(o=Xe(o)),a===i&&(o=oe(o)),o}renderChildren(t){if(this.type!=="text"){this.renderTElementChildren(t);return}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))}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=Ht.parse(e.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),v=r.getStyle("font-style").getString(s.fontStyle),p=u/o,T=i.isRTL?a.split("").reverse().join(""):a,O=Dt(r.getAttribute("dx").getString()),m=T.length,L=0;L<m;L++){var V=this.getGlyph(i,T,L);t.translate(this.x,this.y),t.scale(p,-p);var B=t.lineWidth;t.lineWidth=t.lineWidth*o/u,v==="italic"&&t.transform(1,0,.4,1,0,0),V.render(t),v==="italic"&&t.transform(1,0,-.4,1,0,0),t.lineWidth=B,t.scale(1/p,-1/p),t.translate(-this.x,-this.y),this.x+=u*(V.horizAdvX||i.horizAdvX)/o,typeof O[L]!="undefined"&&!isNaN(O[L])&&(this.x+=O[L])}return}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 t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r=!1,a=0;e==="start"&&!r||e==="end"&&r?a=t.x-this.minX:e==="end"&&!r||e==="start"&&r?a=t.x-this.maxX:a=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(typeof i.measureText!="function")return i;t.save(),i.setContext(t,!0);var o=i.getAttribute("x"),s=i.getAttribute("y"),u=i.getAttribute("dx"),v=i.getAttribute("dy"),p=i.getStyle("font-family").getDefinition(),T=!!p&&p.isRTL;a===0&&(o.hasValue()||o.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),u.hasValue()||u.setValue(i.getInheritedAttribute("dx")),v.hasValue()||v.setValue(i.getInheritedAttribute("dy")));var O=i.measureText(t);return T&&(e.x-=O),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,T||(e.x+=O),s.hasValue()?(i.y=s.getPixels("y"),v.hasValue()&&(i.y+=v.getPixels("y"))):(v.hasValue()&&(e.y+=v.getPixels("y")),i.y=e.y),e.y=i.y,e.leafTexts.push(i),e.minX=Math.min(e.minX,i.x,i.x+O),e.maxX=Math.max(e.maxX,i.x,i.x+O),i.clearContext(t),t.restore(),i}getChildBoundingBox(t,e,r,a){var i=r.children[a];if(typeof i.getBoundingBox!="function")return null;var o=i.getBoundingBox(t);return o?(i.children.forEach((s,u)=>{var v=e.getChildBoundingBox(t,e,i,u);o.addBoundingBox(v)}),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=Dt(r.getAttribute("dx").getString()),u=o.length,v=0,p=0;p<u;p++){var T=this.getGlyph(a,o,p);v+=(T.horizAdvX||a.horizAdvX)*i/a.fontFace.unitsPerEm,typeof s[p]!="undefined"&&!isNaN(s[p])&&(v+=s[p])}return v}if(!t.measureText)return e.length*10;t.save(),this.setContext(t,!0);var{width:O}=t.measureText(e);return this.clearContext(t),t.restore(),O}getInheritedAttribute(t){for(var e=this;e instanceof ue&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}}class Ge extends ue{constructor(t,e,r){super(t,e,new.target===Ge?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Ln extends Ge{constructor(){super(...arguments),this.type="textNode"}}class De extends me{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!="undefined"&&i&&typeof i.getComputedStyle!="undefined"){t.font=i.getComputedStyle(o).getPropertyValue("font");var s=new _(r,"fontSize",Ht.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:v}=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"),T=this.getAttribute("refY"),O=this.getAttribute("viewBox"),m=O.hasValue()?Dt(O.getString()):null,L=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",V=0,B=0,U=0,k=0;m&&(V=m[0],B=m[1]),this.root||(u=this.getStyle("width").getPixels("x"),v=this.getStyle("height").getPixels("y"),this.type==="marker"&&(U=V,k=B,V=0,B=0)),a.viewPort.setCurrent(u,v),this.node&&(!this.parent||((e=this.node.parentNode)===null||e===void 0?void 0:e.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),m&&(u=m[2],v=m[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a.viewPort.width,desiredWidth:u,height:a.viewPort.height,desiredHeight:v,minX:V,minY:B,refX:p.getValue(),refY:T.getValue(),clip:L,clipX:U,clipY:k}),m&&(a.viewPort.removeCurrent(),a.viewPort.setCurrent(u,v))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=a.getNumber(0),v=i.getNumber(0);if(r)if(typeof r=="string")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(v||e)),s.hasValue()){var T=this.getStyle("width"),O=this.getStyle("height");T.hasValue()&&T.setValue("".concat(t,"px")),O.hasValue()&&O.setValue("".concat(e,"px"))}}}class Er extends xt{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"),v=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(v=u),s.hasValue()&&!o.hasValue()&&(u=v),u=Math.min(u,a/2),v=Math.min(v,i/2),t){var p=4*((Math.sqrt(2)-1)/3);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+v-p*v,e+a,r+v),t.lineTo(e+a,r+i-v),t.bezierCurveTo(e+a,r+i-v+p*v,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-v+p*v,e,r+i-v),t.lineTo(e,r+v),t.bezierCurveTo(e,r+v-p*v,e+u-p*u,r,e+u,r),t.closePath())}return new Jt(e,r,e+a,r+i)}getMarkers(){return null}}class Xr extends xt{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,Math.PI*2,!1),t.closePath()),new Jt(e-a,r-a,e+a,r+a)}getMarkers(){return null}}class Wr extends xt{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=4*((Math.sqrt(2)-1)/3),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 Jt(i-r,o-a,i+r,o+a)}getMarkers(){return null}}class Qr extends xt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new wt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new wt(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 Jt(e,r,a,i)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class Tr extends xt{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=wt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:a}]=e,i=new Jt(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 Kr extends Tr{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 Zr extends Nt{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"),v=this.getAttribute("x"),p=this.getAttribute("y");v.hasValue()&&p.hasValue()&&u.translate(v.getPixels("x",!0),p.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var T=-1;T<=1;T++)for(var O=-1;O<=1;O++)u.save(),o.attributes.x=new _(this.document,"x",T*s.width),o.attributes.y=new _(this.document,"y",O*s.height),o.render(u),u.restore();var m=t.createPattern(s,"repeat");return m}}class kr extends Nt{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),o==="auto"&&t.rotate(r),s==="strokeWidth"&&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(),s==="strokeWidth"&&t.scale(1/t.lineWidth,1/t.lineWidth),o==="auto"&&t.rotate(-r),t.translate(-a,-i)}}}class Jr extends Nt{constructor(){super(...arguments),this.type="defs"}render(){}}class ke extends me{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new Jt;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class Or extends Nt{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:a,children:i}=this;i.forEach(o=>{o.type==="stop"&&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(B=>{o.addColorStop(B.offset,this.addParentOpacity(r,B.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:v}=s.screen,[p]=v.viewPorts,T=new Er(s,null);T.attributes.x=new _(s,"x",-u/3),T.attributes.y=new _(s,"y",-u/3),T.attributes.width=new _(s,"width",u),T.attributes.height=new _(s,"height",u);var O=new ke(s,null);O.attributes.transform=new _(s,"transform",this.getAttribute("gradientTransform").getValue()),O.children=[T];var m=new De(s,null);m.attributes.x=new _(s,"x",0),m.attributes.y=new _(s,"y",0),m.attributes.width=new _(s,"width",p.width),m.attributes.height=new _(s,"height",p.height),m.children=[O];var L=s.createCanvas(p.width,p.height),V=L.getContext("2d");return V.fillStyle=o,m.render(V),V.createPattern(L,"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){if(t.hasValue()){var r=new _(this.document,"color",e);return r.addOpacity(t).getColor()}return e}}class qr extends Or{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r=this.getGradientUnits()==="objectBoundingBox",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 _r extends Or{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=this.getGradientUnits()==="objectBoundingBox",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 v=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,v)}}class tn extends Nt{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 Je extends Nt{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 t==="CSS"?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(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(a==="freeze"&&!this.frozen)this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();else if(a==="remove"&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0;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 en extends Je{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),a=new w(e.getColor()),i=new w(r.getColor());if(a.ok&&i.ok){var o=a.r+(i.r-a.r)*t,s=a.g+(i.g-a.g)*t,u=a.b+(i.b-a.b)*t;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}}class rn extends Je{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),a=Dt(e.getString()),i=Dt(r.getString()),o=a.map((s,u)=>{var v=i[u];return s+(v-s)*t}).join(" ");return o}}class nn extends Nt{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},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]=="undefined"&&(this.glyphs[u.unicode]={}),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}}class an extends Nt{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 sn extends xt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class on extends ue{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 un extends ue{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=>s.nodeType===3);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",Ht.parse(e.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new Jt(r,a-o.getPixels("y"),r+this.measureText(t),a))}else if(this.children.length>0){var s=new ke(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(){var t=this.document.ctx;t.canvas.style.cursor="pointer"}}function ln(f,t){var e=Object.keys(f);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(f);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(f,a).enumerable})),e.push.apply(e,r)}return e}function qe(f){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ln(Object(e),!0).forEach(function(r){(0,b.Z)(f,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(e)):ln(Object(e)).forEach(function(r){Object.defineProperty(f,r,Object.getOwnPropertyDescriptor(e,r))})}return f}class hn extends ue{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 it.LINE_TO:t&&t.lineTo(i[0],i[1]);break;case it.MOVE_TO:t&&t.moveTo(i[0],i[1]);break;case it.CURVE_TO:t&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case it.QUAD_TO:t&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case it.ARC:{var[o,s,u,v,p,T,O,m]=i,L=u>v?u:v,V=u>v?1:u/v,B=u>v?v/u:1;t&&(t.translate(o,s),t.rotate(O),t.scale(V,B),t.arc(0,0,L,p,p+T,!!(1-m)),t.scale(1/V,1/B),t.rotate(-O),t.translate(-o,-s));break}case it.CLOSE_PATH:t&&t.closePath();break}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:a}=this,i=t.fillStyle;e==="underline"&&t.beginPath(),a.forEach((o,s)=>{var{p0:u,p1:v,rotation:p,text:T}=o;t.save(),t.translate(u.x,u.y),t.rotate(p),t.fillStyle&&t.fillText(T,0,0),t.strokeStyle&&t.strokeText(T,0,0),t.restore(),e==="underline"&&(s===0&&t.moveTo(u.x,u.y+r/8),t.lineTo(v.x,v.y+r/5))}),e==="underline"&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,r,a,i,o,s,u,v){var p=o,T=this.measureText(t,u);u===" "&&e==="justify"&&r<a&&(T+=(a-r)/i),v>-1&&(p+=this.getLetterSpacingAt(v));var O=this.textHeight/20,m=this.getEquidistantPointOnPath(p,O,0),L=this.getEquidistantPointOnPath(p+T,O,0),V={p0:m,p1:L},B=m&&L?Math.atan2(L.y-m.y,L.x-m.x):0;if(s){var U=Math.cos(Math.PI/2+B)*s,k=Math.cos(-B)*s;V.p0=qe(qe({},m),{},{x:m.x+U,y:m.y+k}),V.p1=qe(qe({},L),{},{x:L.x+U,y:L.y+k})}return p+=T,{offset:p,segment:V,rotation:B}}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(z=>z.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),v=this.parent.getStyle("letter-spacing"),p=0;!u.hasValue()||u.getValue()==="inherit"?p=v.getPixels():u.hasValue()&&u.getValue()!=="initial"&&u.getValue()!=="unset"&&(p=u.getPixels());var T=[],O=e.length;this.letterSpacingCache=T;for(var m=0;m<O;m++)T.push(typeof i[m]!="undefined"?i[m]:p);var L=T.reduce((z,et,st)=>st===0?0:z+et||0,0),V=this.measureText(t),B=Math.max(V+L,0);this.textWidth=V,this.textHeight=this.getFontSize(),this.glyphInfo=[];var U=this.getPathLength(),k=this.getStyle("startOffset").getNumber(0)*U,j=0;(s==="middle"||s==="center")&&(j=-B/2),(s==="end"||s==="right")&&(j=-B),j+=k,r.forEach((z,et)=>{var{offset:st,segment:W,rotation:gt}=this.findSegmentToFitChar(t,s,B,U,a,j,o,z,et);j=st,!(!W.p0||!W.p1)&&this.glyphInfo.push({text:r[et],p0:W.p0,p1:W.p1,rotation:gt})})}}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,v=[];switch(s.type){case it.MOVE_TO:this.pathM(r,v);break;case it.LINE_TO:u=this.pathL(r,v);break;case it.HORIZ_LINE_TO:u=this.pathH(r,v);break;case it.VERT_LINE_TO:u=this.pathV(r,v);break;case it.CURVE_TO:this.pathC(r,v);break;case it.SMOOTH_CURVE_TO:u=this.pathS(r,v);break;case it.QUAD_TO:this.pathQ(r,v);break;case it.SMOOTH_QUAD_TO:u=this.pathT(r,v);break;case it.ARC:v=this.pathA(r);break;case it.CLOSE_PATH:xt.pathZ(r);break}s.type!==it.CLOSE_PATH?e.push({type:u,points:v,start:{x:i,y:o},pathLength:this.calcLength(i,o,u,v)}):e.push({type:it.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:a}=xt.pathM(t).point;e.push(r,a)}pathL(t,e){var{x:r,y:a}=xt.pathL(t).point;return e.push(r,a),it.LINE_TO}pathH(t,e){var{x:r,y:a}=xt.pathH(t).point;return e.push(r,a),it.LINE_TO}pathV(t,e){var{x:r,y:a}=xt.pathV(t).point;return e.push(r,a),it.LINE_TO}pathC(t,e){var{point:r,controlPoint:a,currentPoint:i}=xt.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}=xt.pathS(t);return e.push(r.x,r.y,a.x,a.y,i.x,i.y),it.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:a}=xt.pathQ(t);e.push(r.x,r.y,a.x,a.y)}pathT(t,e){var{controlPoint:r,currentPoint:a}=xt.pathT(t);return e.push(r.x,r.y,a.x,a.y),it.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:a,xAxisRotation:i,centp:o,a1:s,ad:u}=xt.pathA(t);return a===0&&u>0&&(u-=2*Math.PI),a===1&&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 it.LINE_TO:return this.getLineLength(t,e,a[0],a[1]);case it.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 it.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 it.ARC:{i=0;var v=a[4],p=a[5],T=a[4]+p,O=Math.PI/180;if(Math.abs(v-T)<O&&(O=Math.abs(v-T)),o=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],v,0),p<0)for(u=v-O;u>T;u-=O)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=v+O;u<T;u+=O)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],T,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),i}}return 0}getPointOnLine(t,e,r,a,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,u=(i-r)/(a-e+Ae),v=Math.sqrt(t*t/(1+u*u));a<e&&(v*=-1);var p=u*v,T=null;if(a===e)T={x:o,y:s+p};else if((s-r)/(o-e+Ae)===u)T={x:o+v,y:s+p};else{var O=0,m=0,L=this.getLineLength(e,r,a,i);if(L<Ae)return null;var V=(o-e)*(a-e)+(s-r)*(i-r);V/=L*L,O=e+V*(a-e),m=r+V*(i-r);var B=this.getLineLength(o,s,O,m),U=Math.sqrt(t*t-B*B);v=Math.sqrt(U*U/(1+u*u)),a<e&&(v*=-1),p=u*v,T={x:O+v,y:m+p}}return T}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)){r+=o.pathLength;continue}var s=t-r,u=0;switch(o.type){case it.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 it.ARC:{var v=o.points[4],p=o.points[5],T=o.points[4]+p;if(u=v+s/o.pathLength*p,p<0&&u<T||p>=0&&u>T)break;a=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case it.CURVE_TO:u=s/o.pathLength,u>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 it.QUAD_TO:u=s/o.pathLength,u>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]);break}if(a)return a;break}return null}getLineLength(t,e,r,a){return Math.sqrt((r-t)*(r-t)+(a-e)*(a-e))}getPathLength(){return this.pathLength===-1&&(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,v){var p=u*hr(t)+o*fr(t)+a*vr(t)+e*cr(t),T=v*hr(t)+s*fr(t)+i*vr(t)+r*cr(t);return{x:p,y:T}}getPointOnQuadraticBezier(t,e,r,a,i,o,s){var u=o*gr(t)+a*dr(t)+e*pr(t),v=s*gr(t)+i*dr(t)+r*pr(t);return{x:u,y:v}}getPointOnEllipticalArc(t,e,r,a,i,o){var s=Math.cos(o),u=Math.sin(o),v={x:r*Math.cos(i),y:a*Math.sin(i)};return{x:t+(v.x*s-v.y*u),y:e+(v.x*u+v.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),v=this.getPointOnPath(s+a);!u||!v||(o+=this.getLineLength(u.x,u.y,v.x,v.y),o>=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 Bn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class fn extends me{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(0,h.Z)(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(0,h.Z)(function*(){var r=Bn.exec(t);if(r){var a=r[5];r[4]==="base64"?e.image=atob(a):e.image=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 v=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});v.document.documentElement.parent=this,v.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=="undefined"||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 Jt(t,e,t+r,e+a)}}class vn extends me{constructor(){super(...arguments),this.type="symbol"}render(t){}}class cn{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return(0,h.Z)(function*(){try{var{document:a}=r,i=yield a.canvg.parser.load(e),o=i.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})()}}class Sr extends Nt{constructor(t,e,r){super(t,e,r),this.type="style";var a=ee(Array.from(e.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=a.split("}");i.forEach(o=>{var s=o.trim();if(s){var u=s.split("{"),v=u[0].split(","),p=u[1].split(";");v.forEach(T=>{var O=T.trim();if(O){var m=t.styles[O]||{};if(p.forEach(B=>{var U=B.indexOf(":"),k=B.substr(0,U).trim(),j=B.substr(U+1,B.length-U).trim();k&&j&&(m[k]=new _(t,k,j))}),t.styles[O]=m,t.stylesSpecificity[O]=Qe(O),O==="@font-face"){var L=m["font-family"].getString().replace(/"|'/g,""),V=m.src.getString().split(",");V.forEach(B=>{if(B.indexOf('format("svg")')>0){var U=nt(B);U&&new cn(t).load(L,U)}})}}})}})}}Sr.parseExternalUrl=nt;class gn extends me{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(r.type==="symbol"&&(a=new De(e,null),a.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())),a.type==="svg"){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 ye.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function _e(f,t,e,r,a,i){return f[e*r*4+t*4+i]}function tr(f,t,e,r,a,i,o){f[e*r*4+t*4+i]=o}function Bt(f,t,e){var r=f[t];return r*e}function le(f,t,e,r){return t+Math.cos(f)*e+Math.sin(f)*r}class br extends Nt{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var a=Dt(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=[le(o,.213,.787,-.213),le(o,.715,-.715,-.715),le(o,.072,-.072,.928),0,0,le(o,.213,-.213,.143),le(o,.715,.285,.14),le(o,.072,-.072,-.283),0,0,le(o,.213,-.213,-.787),le(o,.715,-.715,.715),le(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];break}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),v=0;v<i;v++)for(var p=0;p<a;p++){var T=_e(u.data,p,v,a,i,0),O=_e(u.data,p,v,a,i,1),m=_e(u.data,p,v,a,i,2),L=_e(u.data,p,v,a,i,3),V=Bt(s,0,T)+Bt(s,1,O)+Bt(s,2,m)+Bt(s,3,L)+Bt(s,4,1),B=Bt(s,5,T)+Bt(s,6,O)+Bt(s,7,m)+Bt(s,8,L)+Bt(s,9,1),U=Bt(s,10,T)+Bt(s,11,O)+Bt(s,12,m)+Bt(s,13,L)+Bt(s,14,1),k=Bt(s,15,T)+Bt(s,16,O)+Bt(s,17,m)+Bt(s,18,L)+Bt(s,19,1);o&&(V=0,B=0,U=0,k*=L/255),tr(u.data,p,v,a,i,0,V),tr(u.data,p,v,a,i,1,B),tr(u.data,p,v,a,i,2,U),tr(u.data,p,v,a,i,3,k)}t.clearRect(0,0,a,i),t.putImageData(u,0,0)}}class He extends Nt{constructor(){super(...arguments),this.type="mask"}apply(t,e){var{document:r}=this,a=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var u=new Jt;this.children.forEach(L=>{u.addBoundingBox(L.getBoundingBox(t))}),a=Math.floor(u.x1),i=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var v=this.removeStyles(e,He.ignoreStyles),p=r.createCanvas(a+o,i+s),T=p.getContext("2d");r.screen.setDefaults(T),this.renderChildren(T),new br(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(T,0,0,a+o,i+s);var O=r.createCanvas(a+o,i+s),m=O.getContext("2d");r.screen.setDefaults(m),e.render(m),m.globalCompositeOperation="destination-in",m.fillStyle=T.createPattern(p,"no-repeat"),m.fillRect(0,0,a+o,i+s),t.fillStyle=m.createPattern(O,"no-repeat"),t.fillRect(0,0,a+o,i+s),this.restoreStyles(e,v)}render(t){}}He.ignoreStyles=["mask","transform","clip-path"];var dn=()=>{};class pn extends Nt{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:a,closePath:i}=t;r&&(r.beginPath=dn,r.closePath=dn),Reflect.apply(a,t,[]),this.children.forEach(o=>{if(typeof o.path!="undefined"){var s=typeof o.elementTransform!="undefined"?o.elementTransform():null;s||(s=ye.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){}}class $e extends Nt{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:a}=this,i=e.getBoundingBox(t);if(i){var o=0,s=0;a.forEach(U=>{var k=U.extraFilterDistance||0;o=Math.max(o,k),s=Math.max(s,k)});var u=Math.floor(i.width),v=Math.floor(i.height),p=u+2*o,T=v+2*s;if(!(p<1||T<1)){var O=Math.floor(i.x),m=Math.floor(i.y),L=this.removeStyles(e,$e.ignoreStyles),V=r.createCanvas(p,T),B=V.getContext("2d");r.screen.setDefaults(B),B.translate(-O+o,-m+s),e.render(B),a.forEach(U=>{typeof U.apply=="function"&&U.apply(B,0,0,p,T)}),t.drawImage(V,0,0,p,T,O-o,m-s,p,T),this.restoreStyles(e,L)}}}render(t){}}$e.ignoreStyles=["filter","transform","clip-path"];class yn extends Nt{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,a,i){}}class mn extends Nt{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,a,i){}}class xn extends Nt{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,a,i){}}class En extends Nt{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,v=t.canvas;v.id=o.getUniqueId(),u&&(v.style.display="none",u.appendChild(v)),Yt(v,e,r,a,i,s),u&&u.removeChild(v)}}class Tn extends Nt{constructor(){super(...arguments),this.type="title"}}class On extends Nt{constructor(){super(...arguments),this.type="desc"}}var Fn={svg:De,rect:Er,circle:Xr,ellipse:Wr,line:Qr,polyline:Tr,polygon:Kr,path:xt,pattern:Zr,marker:kr,defs:Jr,linearGradient:qr,radialGradient:_r,stop:tn,animate:Je,animateColor:en,animateTransform:rn,font:nn,"font-face":an,"missing-glyph":sn,glyph:xr,text:ue,tspan:Ge,tref:on,a:un,textPath:hn,image:fn,g:ke,symbol:vn,style:Sr,use:gn,mask:He,clipPath:pn,filter:$e,feDropShadow:yn,feMorphology:mn,feComposite:xn,feColorMatrix:br,feGaussianBlur:En,title:Tn,desc:On};function Sn(f,t){var e=Object.keys(f);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(f);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(f,a).enumerable})),e.push.apply(e,r)}return e}function Un(f){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Sn(Object(e),!0).forEach(function(r){(0,b.Z)(f,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(e)):Sn(Object(e)).forEach(function(r){Object.defineProperty(f,r,Object.getOwnPropertyDescriptor(e,r))})}return f}function jn(f,t){var e=document.createElement("canvas");return e.width=f,e.height=t,e}function zn(f){return Cr.apply(this,arguments)}function Cr(){return Cr=(0,h.Z)(function*(f){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=document.createElement("img");return t&&(e.crossOrigin="Anonymous"),new Promise((r,a)=>{e.onload=()=>{r(e)},e.onerror=(i,o,s,u,v)=>{a(v)},e.src=f})}),Cr.apply(this,arguments)}class he{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:a=he.createCanvas,createImage:i=he.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=a,this.createImage=this.bindCreateImage(i,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return typeof e=="boolean"?(r,a)=>t(r,typeof a=="boolean"?a:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(t=>t.loaded)}isFontsLoaded(){return this.fonts.every(t=>t.loaded)}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=he.elementTypes[e];return typeof r!="undefined"?new r(this,t):new Yr(this,t)}createTextNode(t){return new Ln(this,t)}setViewBox(t){this.screen.setViewBox(Un({document:this},t))}}he.createCanvas=jn,he.createImage=zn,he.elementTypes=Fn;function bn(f,t){var e=Object.keys(f);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(f);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(f,a).enumerable})),e.push.apply(e,r)}return e}function Pe(f){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?bn(Object(e),!0).forEach(function(r){(0,b.Z)(f,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(e)):bn(Object(e)).forEach(function(r){Object.defineProperty(f,r,Object.getOwnPropertyDescriptor(e,r))})}return f}class Re{constructor(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Ze(r),this.screen=new ze(t,r),this.options=r;var a=new he(this,r),i=a.createDocumentElement(e);this.document=a,this.documentElement=i}static from(t,e){var r=arguments;return(0,h.Z)(function*(){var a=r.length>2&&r[2]!==void 0?r[2]:{},i=new Ze(a),o=yield i.parse(e);return new Re(t,o,a)})()}static fromString(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=new Ze(r),i=a.parseFromString(e);return new Re(t,i,r)}fork(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Re.from(t,e,Pe(Pe({},this.options),r))}forkString(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Re.fromString(t,e,Pe(Pe({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return(0,h.Z)(function*(){var r=t.length>0&&t[0]!==void 0?t[0]:{};e.start(Pe({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield e.ready(),e.stop()})()}start(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:e,screen:r,options:a}=this;r.start(e,Pe(Pe({enableRedraw:!0},a),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(t,e,r)}}}}]);
|