@colijnit/sharedcomponents 259.1.20 → 259.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ (self.webpackChunk_colijnit_sharedcomponents=self.webpackChunk_colijnit_sharedcomponents||[]).push([[13],{58163:function(p){(function(){var T,o,c,v,g,m;"undefined"!=typeof performance&&null!==performance&&performance.now?p.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(p.exports=function(){return(T()-g)/1e6},o=process.hrtime,v=(T=function(){var E;return 1e9*(E=o())[0]+E[1]})(),m=1e9*process.uptime(),g=v-m):Date.now?(p.exports=function(){return Date.now()-c},c=Date.now()):(p.exports=function(){return(new Date).getTime()-c},c=(new Date).getTime())}).call(this)},97352:(p,T,o)=>{for(var c=o(58163),v="undefined"==typeof window?global:window,g=["moz","webkit"],m="AnimationFrame",E=v["request"+m],O=v["cancel"+m]||v["cancelRequest"+m],b=0;!E&&b<g.length;b++)E=v[g[b]+"Request"+m],O=v[g[b]+"Cancel"+m]||v[g[b]+"CancelRequest"+m];if(!E||!O){var S=0,P=0,A=[];E=function(w){if(0===A.length){var L=c(),D=Math.max(0,16.666666666666668-(L-S));S=D+L,setTimeout(function(){var Y=A.slice(0);A.length=0;for(var j=0;j<Y.length;j++)if(!Y[j].cancelled)try{Y[j].callback(S)}catch(H){setTimeout(function(){throw H},0)}},Math.round(D))}return A.push({handle:++P,callback:w,cancelled:!1}),P},O=function(w){for(var L=0;L<A.length;L++)A[L].handle===w&&(A[L].cancelled=!0)}}p.exports=function(w){return E.call(v,w)},p.exports.cancel=function(){O.apply(v,arguments)},p.exports.polyfill=function(w){w||(w=v),w.requestAnimationFrame=E,w.cancelAnimationFrame=O}},81997:p=>{p.exports=function(T){this.ok=!1,this.alpha=1,"#"==T.charAt(0)&&(T=T.substr(1,6)),T=(T=T.replace(/ /g,"")).toLowerCase();var o={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"};T=o[T]||T;for(var c=[{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(b){return[parseInt(b[1]),parseInt(b[2]),parseInt(b[3]),parseFloat(b[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(b){return[parseInt(b[1]),parseInt(b[2]),parseInt(b[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(b){return[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(b){return[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)]}}],v=0;v<c.length;v++){var m=c[v].process,E=c[v].re.exec(T);if(E){var O=m(E);this.r=O[0],this.g=O[1],this.b=O[2],O.length>3&&(this.alpha=O[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var b=this.r.toString(16),S=this.g.toString(16),P=this.b.toString(16);return 1==b.length&&(b="0"+b),1==S.length&&(S="0"+S),1==P.length&&(P="0"+P),"#"+b+S+P},this.getHelpXML=function(){for(var b=new Array,S=0;S<c.length;S++)for(var P=c[S].example,A=0;A<P.length;A++)b[b.length]=P[A];for(var I in o)b[b.length]=I;var w=document.createElement("ul");for(w.setAttribute("id","rgbcolor-examples"),S=0;S<b.length;S++)try{var L=document.createElement("li"),D=new RGBColor(b[S]),Y=document.createElement("div");Y.style.cssText="margin: 3px; border: 1px solid black; background:"+D.toHex()+"; color:"+D.toHex(),Y.appendChild(document.createTextNode("test"));var j=document.createTextNode(" "+b[S]+" -> "+D.toRGB()+" -> "+D.toHex());L.appendChild(Y),L.appendChild(j),w.appendChild(L)}catch(F){}return w}}},97625:p=>{p.exports=function(T){if("function"!=typeof T)throw TypeError(String(T)+" is not a function");return T}},95143:(p,T,o)=>{var c=o(60726);p.exports=function(v){if(!c(v)&&null!==v)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},24094:(p,T,o)=>{var c=o(84563),v=o(38724),g=o(52975),m=c("unscopables"),E=Array.prototype;null==E[m]&&g.f(E,m,{configurable:!0,value:v(null)}),p.exports=function(O){E[m][O]=!0}},27678:(p,T,o)=>{"use strict";var c=o(64487).charAt;p.exports=function(v,g,m){return g+(m?c(v,g).length:1)}},86063:p=>{p.exports=function(T,o,c){if(!(T instanceof o))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return T}},21099:(p,T,o)=>{var c=o(60726);p.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},70452:(p,T,o)=>{var c=o(8643),v=o(15902),g=o(20222),m=function(E){return function(O,b,S){var w,P=c(O),A=v(P.length),I=g(S,A);if(E&&b!=b){for(;A>I;)if((w=P[I++])!=w)return!0}else for(;A>I;I++)if((E||I in P)&&P[I]===b)return E||I||0;return!E&&-1}};p.exports={includes:m(!0),indexOf:m(!1)}},47051:(p,T,o)=>{"use strict";var c=o(8597);p.exports=function(v,g){var m=[][v];return!!m&&c(function(){m.call(null,g||function(){throw 1},1)})}},14716:(p,T,o)=>{var c=o(97625),v=o(16174),g=o(56169),m=o(15902),E=function(O){return function(b,S,P,A){c(S);var I=v(b),w=g(I),L=m(I.length),D=O?L-1:0,Y=O?-1:1;if(P<2)for(;;){if(D in w){A=w[D],D+=Y;break}if(D+=Y,O?D<0:L<=D)throw TypeError("Reduce of empty array with no initial value")}for(;O?D>=0:L>D;D+=Y)D in w&&(A=S(A,w[D],D,I));return A}};p.exports={left:E(!1),right:E(!0)}},56297:(p,T,o)=>{var v=o(84563)("iterator"),g=!1;try{var m=0,E={next:function(){return{done:!!m++}},return:function(){g=!0}};E[v]=function(){return this},Array.from(E,function(){throw 2})}catch(O){}p.exports=function(O,b){if(!b&&!g)return!1;var S=!1;try{var P={};P[v]=function(){return{next:function(){return{done:S=!0}}}},O(P)}catch(A){}return S}},96644:p=>{var T={}.toString;p.exports=function(o){return T.call(o).slice(8,-1)}},99420:(p,T,o)=>{var c=o(72900),v=o(96644),m=o(84563)("toStringTag"),E="Arguments"==v(function(){return arguments}());p.exports=c?v:function(b){var S,P,A;return void 0===b?"Undefined":null===b?"Null":"string"==typeof(P=function(b,S){try{return b[S]}catch(P){}}(S=Object(b),m))?P:E?v(S):"Object"==(A=v(S))&&"function"==typeof S.callee?"Arguments":A}},30009:(p,T,o)=>{var c=o(67791),v=o(99376),g=o(93099),m=o(52975);p.exports=function(E,O){for(var b=v(O),S=m.f,P=g.f,A=0;A<b.length;A++){var I=b[A];c(E,I)||S(E,I,P(O,I))}}},363:(p,T,o)=>{var v=o(84563)("match");p.exports=function(g){var m=/./;try{"/./"[g](m)}catch(E){try{return m[v]=!1,"/./"[g](m)}catch(O){}}return!1}},51335:(p,T,o)=>{var c=o(8597);p.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},17453:(p,T,o)=>{"use strict";var c=o(92053).IteratorPrototype,v=o(38724),g=o(53203),m=o(58242),E=o(72339),O=function(){return this};p.exports=function(b,S,P){var A=S+" Iterator";return b.prototype=v(c,{next:g(1,P)}),m(b,A,!1,!0),E[A]=O,b}},815:(p,T,o)=>{var c=o(47012),v=o(52975),g=o(53203);p.exports=c?function(m,E,O){return v.f(m,E,g(1,O))}:function(m,E,O){return m[E]=O,m}},53203:p=>{p.exports=function(T,o){return{enumerable:!(1&T),configurable:!(2&T),writable:!(4&T),value:o}}},66038:(p,T,o)=>{"use strict";var c=o(51163),v=o(17453),g=o(3963),m=o(91464),E=o(58242),O=o(815),b=o(87763),S=o(84563),P=o(97515),A=o(72339),I=o(92053),w=I.IteratorPrototype,L=I.BUGGY_SAFARI_ITERATORS,D=S("iterator"),Y="keys",j="values",H="entries",F=function(){return this};p.exports=function(X,J,G,Q,_,W,k){v(G,J,Q);var Tt,St,Ot,Z=function(ct){if(ct===_&&st)return st;if(!L&&ct in vt)return vt[ct];switch(ct){case Y:case j:case H:return function(){return new G(this,ct)}}return function(){return new G(this)}},xt=J+" Iterator",bt=!1,vt=X.prototype,dt=vt[D]||vt["@@iterator"]||_&&vt[_],st=!L&&dt||Z(_),ot="Array"==J&&vt.entries||dt;if(ot&&(Tt=g(ot.call(new X)),w!==Object.prototype&&Tt.next&&(!P&&g(Tt)!==w&&(m?m(Tt,w):"function"!=typeof Tt[D]&&O(Tt,D,F)),E(Tt,xt,!0,!0),P&&(A[xt]=F))),_==j&&dt&&dt.name!==j&&(bt=!0,st=function(){return dt.call(this)}),(!P||k)&&vt[D]!==st&&O(vt,D,st),A[J]=st,_)if(St={values:Z(j),keys:W?st:Z(Y),entries:Z(H)},k)for(Ot in St)(L||bt||!(Ot in vt))&&b(vt,Ot,St[Ot]);else c({target:J,proto:!0,forced:L||bt},St);return St}},47012:(p,T,o)=>{var c=o(8597);p.exports=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},85815:(p,T,o)=>{var c=o(31864),v=o(60726),g=c.document,m=v(g)&&v(g.createElement);p.exports=function(E){return m?g.createElement(E):{}}},26877:p=>{p.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}},92846:p=>{p.exports="object"==typeof window},40586:(p,T,o)=>{var c=o(73792);p.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},32002:(p,T,o)=>{var c=o(96644),v=o(31864);p.exports="process"==c(v.process)},36607:(p,T,o)=>{var c=o(73792);p.exports=/web0s(?!.*chrome)/i.test(c)},73792:(p,T,o)=>{var c=o(73626);p.exports=c("navigator","userAgent")||""},17189:(p,T,o)=>{var b,S,c=o(31864),v=o(73792),g=c.process,m=c.Deno,E=g&&g.versions||m&&m.version,O=E&&E.v8;O?S=(b=O.split("."))[0]<4?1:b[0]+b[1]:v&&(!(b=v.match(/Edge\/(\d+)/))||b[1]>=74)&&(b=v.match(/Chrome\/(\d+)/))&&(S=b[1]),p.exports=S&&+S},71001:p=>{p.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},51163:(p,T,o)=>{var c=o(31864),v=o(93099).f,g=o(815),m=o(87763),E=o(22341),O=o(30009),b=o(87215);p.exports=function(S,P){var D,Y,j,H,F,A=S.target,I=S.global,w=S.stat;if(D=I?c:w?c[A]||E(A,{}):(c[A]||{}).prototype)for(Y in P){if(H=P[Y],j=S.noTargetGet?(F=v(D,Y))&&F.value:D[Y],!b(I?Y:A+(w?".":"#")+Y,S.forced)&&void 0!==j){if(typeof H==typeof j)continue;O(H,j)}(S.sham||j&&j.sham)&&g(H,"sham",!0),m(D,Y,H,S)}}},8597:p=>{p.exports=function(T){try{return!!T()}catch(o){return!0}}},9357:(p,T,o)=>{"use strict";o(69665);var c=o(87763),v=o(93084),g=o(8597),m=o(84563),E=o(815),O=m("species"),b=RegExp.prototype;p.exports=function(S,P,A,I){var w=m(S),L=!g(function(){var H={};return H[w]=function(){return 7},7!=""[S](H)}),D=L&&!g(function(){var H=!1,F=/a/;return"split"===S&&((F={}).constructor={},F.constructor[O]=function(){return F},F.flags="",F[w]=/./[w]),F.exec=function(){return H=!0,null},F[w](""),!H});if(!L||!D||A){var Y=/./[w],j=P(w,""[S],function(H,F,X,J,G){var Q=F.exec;return Q===v||Q===b.exec?L&&!G?{done:!0,value:Y.call(F,X,J)}:{done:!0,value:H.call(X,F,J)}:{done:!1}});c(String.prototype,S,j[0]),c(b,w,j[1])}I&&E(b[w],"sham",!0)}},29727:(p,T,o)=>{var c=o(97625);p.exports=function(v,g,m){if(c(v),void 0===g)return v;switch(m){case 0:return function(){return v.call(g)};case 1:return function(E){return v.call(g,E)};case 2:return function(E,O){return v.call(g,E,O)};case 3:return function(E,O,b){return v.call(g,E,O,b)}}return function(){return v.apply(g,arguments)}}},73626:(p,T,o)=>{var c=o(31864),v=function(g){return"function"==typeof g?g:void 0};p.exports=function(g,m){return arguments.length<2?v(c[g]):c[g]&&c[g][m]}},63076:(p,T,o)=>{var c=o(99420),v=o(72339),m=o(84563)("iterator");p.exports=function(E){if(null!=E)return E[m]||E["@@iterator"]||v[c(E)]}},16162:(p,T,o)=>{var c=o(16174),v=Math.floor,g="".replace,m=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,E=/\$([$&'`]|\d{1,2})/g;p.exports=function(O,b,S,P,A,I){var w=S+O.length,L=P.length,D=E;return void 0!==A&&(A=c(A),D=m),g.call(I,D,function(Y,j){var H;switch(j.charAt(0)){case"$":return"$";case"&":return O;case"`":return b.slice(0,S);case"'":return b.slice(w);case"<":H=A[j.slice(1,-1)];break;default:var F=+j;if(0===F)return Y;if(F>L){var X=v(F/10);return 0===X?Y:X<=L?void 0===P[X-1]?j.charAt(1):P[X-1]+j.charAt(1):Y}H=P[F-1]}return void 0===H?"":H})}},31864:p=>{var T=function(o){return o&&o.Math==Math&&o};p.exports=T("object"==typeof globalThis&&globalThis)||T("object"==typeof window&&window)||T("object"==typeof self&&self)||T("object"==typeof global&&global)||function(){return this}()||Function("return this")()},67791:(p,T,o)=>{var c=o(16174),v={}.hasOwnProperty;p.exports=Object.hasOwn||function(m,E){return v.call(c(m),E)}},3536:p=>{p.exports={}},99989:(p,T,o)=>{var c=o(31864);p.exports=function(v,g){var m=c.console;m&&m.error&&(1===arguments.length?m.error(v):m.error(v,g))}},67538:(p,T,o)=>{var c=o(73626);p.exports=c("document","documentElement")},27091:(p,T,o)=>{var c=o(47012),v=o(8597),g=o(85815);p.exports=!c&&!v(function(){return 7!=Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a})},56169:(p,T,o)=>{var c=o(8597),v=o(96644),g="".split;p.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(m){return"String"==v(m)?g.call(m,""):Object(m)}:Object},87720:(p,T,o)=>{var c=o(59941),v=Function.toString;"function"!=typeof c.inspectSource&&(c.inspectSource=function(g){return v.call(g)}),p.exports=c.inspectSource},52493:(p,T,o)=>{var I,w,L,c=o(51635),v=o(31864),g=o(60726),m=o(815),E=o(67791),O=o(59941),b=o(42650),S=o(3536),P="Object already initialized";if(c||O.state){var j=O.state||(O.state=new(0,v.WeakMap)),H=j.get,F=j.has,X=j.set;I=function(G,Q){if(F.call(j,G))throw new TypeError(P);return Q.facade=G,X.call(j,G,Q),Q},w=function(G){return H.call(j,G)||{}},L=function(G){return F.call(j,G)}}else{var J=b("state");S[J]=!0,I=function(G,Q){if(E(G,J))throw new TypeError(P);return Q.facade=G,m(G,J,Q),Q},w=function(G){return E(G,J)?G[J]:{}},L=function(G){return E(G,J)}}p.exports={set:I,get:w,has:L,enforce:function(G){return L(G)?w(G):I(G,{})},getterFor:function(G){return function(Q){var _;if(!g(Q)||(_=w(Q)).type!==G)throw TypeError("Incompatible receiver, "+G+" required");return _}}}},81643:(p,T,o)=>{var c=o(84563),v=o(72339),g=c("iterator"),m=Array.prototype;p.exports=function(E){return void 0!==E&&(v.Array===E||m[g]===E)}},47883:(p,T,o)=>{var c=o(96644);p.exports=Array.isArray||function(g){return"Array"==c(g)}},87215:(p,T,o)=>{var c=o(8597),v=/#|\.prototype\./,g=function(S,P){var A=E[m(S)];return A==b||A!=O&&("function"==typeof P?c(P):!!P)},m=g.normalize=function(S){return String(S).replace(v,".").toLowerCase()},E=g.data={},O=g.NATIVE="N",b=g.POLYFILL="P";p.exports=g},60726:p=>{p.exports=function(T){return"object"==typeof T?null!==T:"function"==typeof T}},97515:p=>{p.exports=!1},99482:(p,T,o)=>{var c=o(60726),v=o(96644),m=o(84563)("match");p.exports=function(E){var O;return c(E)&&(void 0!==(O=E[m])?!!O:"RegExp"==v(E))}},26186:(p,T,o)=>{var c=o(73626),v=o(24431);p.exports=v?function(g){return"symbol"==typeof g}:function(g){var m=c("Symbol");return"function"==typeof m&&Object(g)instanceof m}},53284:(p,T,o)=>{var c=o(21099),v=o(81643),g=o(15902),m=o(29727),E=o(63076),O=o(87883),b=function(S,P){this.stopped=S,this.result=P};p.exports=function(S,P,A){var j,H,F,X,J,G,Q,w=!(!A||!A.AS_ENTRIES),L=!(!A||!A.IS_ITERATOR),D=!(!A||!A.INTERRUPTED),Y=m(P,A&&A.that,1+w+D),_=function(k){return j&&O(j),new b(!0,k)},W=function(k){return w?(c(k),D?Y(k[0],k[1],_):Y(k[0],k[1])):D?Y(k,_):Y(k)};if(L)j=S;else{if("function"!=typeof(H=E(S)))throw TypeError("Target is not iterable");if(v(H)){for(F=0,X=g(S.length);X>F;F++)if((J=W(S[F]))&&J instanceof b)return J;return new b(!1)}j=H.call(S)}for(G=j.next;!(Q=G.call(j)).done;){try{J=W(Q.value)}catch(k){throw O(j),k}if("object"==typeof J&&J&&J instanceof b)return J}return new b(!1)}},87883:(p,T,o)=>{var c=o(21099);p.exports=function(v){var g=v.return;if(void 0!==g)return c(g.call(v)).value}},92053:(p,T,o)=>{"use strict";var A,I,w,c=o(8597),v=o(3963),g=o(815),m=o(67791),E=o(84563),O=o(97515),b=E("iterator"),S=!1;[].keys&&("next"in(w=[].keys())?(I=v(v(w)))!==Object.prototype&&(A=I):S=!0);var L=null==A||c(function(){var D={};return A[b].call(D)!==D});L&&(A={}),(!O||L)&&!m(A,b)&&g(A,b,function(){return this}),p.exports={IteratorPrototype:A,BUGGY_SAFARI_ITERATORS:S}},72339:p=>{p.exports={}},81463:(p,T,o)=>{var L,D,Y,j,H,F,X,J,c=o(31864),v=o(93099).f,g=o(82040).set,m=o(40586),E=o(36607),O=o(32002),b=c.MutationObserver||c.WebKitMutationObserver,S=c.document,P=c.process,A=c.Promise,I=v(c,"queueMicrotask"),w=I&&I.value;w||(L=function(){var G,Q;for(O&&(G=P.domain)&&G.exit();D;){Q=D.fn,D=D.next;try{Q()}catch(_){throw D?j():Y=void 0,_}}Y=void 0,G&&G.enter()},m||O||E||!b||!S?A&&A.resolve?((X=A.resolve(void 0)).constructor=A,J=X.then,j=function(){J.call(X,L)}):j=O?function(){P.nextTick(L)}:function(){g.call(c,L)}:(H=!0,F=S.createTextNode(""),new b(L).observe(F,{characterData:!0}),j=function(){F.data=H=!H})),p.exports=w||function(G){var Q={fn:G,next:void 0};Y&&(Y.next=Q),D||(D=Q,j()),Y=Q}},36866:(p,T,o)=>{var c=o(31864);p.exports=c.Promise},77040:(p,T,o)=>{var c=o(17189),v=o(8597);p.exports=!!Object.getOwnPropertySymbols&&!v(function(){var g=Symbol();return!String(g)||!(Object(g)instanceof Symbol)||!Symbol.sham&&c&&c<41})},51635:(p,T,o)=>{var c=o(31864),v=o(87720),g=c.WeakMap;p.exports="function"==typeof g&&/native code/.test(v(g))},29723:(p,T,o)=>{"use strict";var c=o(97625),v=function(g){var m,E;this.promise=new g(function(O,b){if(void 0!==m||void 0!==E)throw TypeError("Bad Promise constructor");m=O,E=b}),this.resolve=c(m),this.reject=c(E)};p.exports.f=function(g){return new v(g)}},93270:(p,T,o)=>{var c=o(99482);p.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},38724:(p,T,o)=>{var H,c=o(21099),v=o(10988),g=o(71001),m=o(3536),E=o(67538),O=o(85815),b=o(42650),A="prototype",I="script",w=b("IE_PROTO"),L=function(){},D=function(X){return"<"+I+">"+X+"</"+I+">"},Y=function(X){X.write(D("")),X.close();var J=X.parentWindow.Object;return X=null,J},F=function(){try{H=new ActiveXObject("htmlfile")}catch(J){}F=document.domain&&H?Y(H):function(){var G,X=O("iframe");if(X.style)return X.style.display="none",E.appendChild(X),X.src=String("javascript:"),(G=X.contentWindow.document).open(),G.write(D("document.F=Object")),G.close(),G.F}()||Y(H);for(var X=g.length;X--;)delete F[A][g[X]];return F()};m[w]=!0,p.exports=Object.create||function(J,G){var Q;return null!==J?(L[A]=c(J),Q=new L,L[A]=null,Q[w]=J):Q=F(),void 0===G?Q:v(Q,G)}},10988:(p,T,o)=>{var c=o(47012),v=o(52975),g=o(21099),m=o(68032);p.exports=c?Object.defineProperties:function(O,b){g(O);for(var I,S=m(b),P=S.length,A=0;P>A;)v.f(O,I=S[A++],b[I]);return O}},52975:(p,T,o)=>{var c=o(47012),v=o(27091),g=o(21099),m=o(16582),E=Object.defineProperty;T.f=c?E:function(b,S,P){if(g(b),S=m(S),g(P),v)try{return E(b,S,P)}catch(A){}if("get"in P||"set"in P)throw TypeError("Accessors not supported");return"value"in P&&(b[S]=P.value),b}},93099:(p,T,o)=>{var c=o(47012),v=o(5600),g=o(53203),m=o(8643),E=o(16582),O=o(67791),b=o(27091),S=Object.getOwnPropertyDescriptor;T.f=c?S:function(A,I){if(A=m(A),I=E(I),b)try{return S(A,I)}catch(w){}if(O(A,I))return g(!v.f.call(A,I),A[I])}},94564:(p,T,o)=>{var c=o(77759),g=o(71001).concat("length","prototype");T.f=Object.getOwnPropertyNames||function(E){return c(E,g)}},77593:(p,T)=>{T.f=Object.getOwnPropertySymbols},3963:(p,T,o)=>{var c=o(67791),v=o(16174),g=o(42650),m=o(51335),E=g("IE_PROTO"),O=Object.prototype;p.exports=m?Object.getPrototypeOf:function(b){return b=v(b),c(b,E)?b[E]:"function"==typeof b.constructor&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?O:null}},77759:(p,T,o)=>{var c=o(67791),v=o(8643),g=o(70452).indexOf,m=o(3536);p.exports=function(E,O){var A,b=v(E),S=0,P=[];for(A in b)!c(m,A)&&c(b,A)&&P.push(A);for(;O.length>S;)c(b,A=O[S++])&&(~g(P,A)||P.push(A));return P}},68032:(p,T,o)=>{var c=o(77759),v=o(71001);p.exports=Object.keys||function(m){return c(m,v)}},5600:(p,T)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!o.call({1:2},1);T.f=v?function(m){var E=c(this,m);return!!E&&E.enumerable}:o},91464:(p,T,o)=>{var c=o(21099),v=o(95143);p.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var E,g=!1,m={};try{(E=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(m,[]),g=m instanceof Array}catch(O){}return function(b,S){return c(b),v(S),g?E.call(b,S):b.__proto__=S,b}}():void 0)},48297:(p,T,o)=>{var c=o(60726);p.exports=function(v,g){var m,E;if("string"===g&&"function"==typeof(m=v.toString)&&!c(E=m.call(v))||"function"==typeof(m=v.valueOf)&&!c(E=m.call(v))||"string"!==g&&"function"==typeof(m=v.toString)&&!c(E=m.call(v)))return E;throw TypeError("Can't convert object to primitive value")}},99376:(p,T,o)=>{var c=o(73626),v=o(94564),g=o(77593),m=o(21099);p.exports=c("Reflect","ownKeys")||function(O){var b=v.f(m(O)),S=g.f;return S?b.concat(S(O)):b}},4113:p=>{p.exports=function(T){try{return{error:!1,value:T()}}catch(o){return{error:!0,value:o}}}},6223:(p,T,o)=>{var c=o(21099),v=o(60726),g=o(29723);p.exports=function(m,E){if(c(m),v(E)&&E.constructor===m)return E;var O=g.f(m);return(0,O.resolve)(E),O.promise}},78715:(p,T,o)=>{var c=o(87763);p.exports=function(v,g,m){for(var E in g)c(v,E,g[E],m);return v}},87763:(p,T,o)=>{var c=o(31864),v=o(815),g=o(67791),m=o(22341),E=o(87720),O=o(52493),b=O.get,S=O.enforce,P=String(String).split("String");(p.exports=function(A,I,w,L){var H,D=!!L&&!!L.unsafe,Y=!!L&&!!L.enumerable,j=!!L&&!!L.noTargetGet;"function"==typeof w&&("string"==typeof I&&!g(w,"name")&&v(w,"name",I),(H=S(w)).source||(H.source=P.join("string"==typeof I?I:""))),A!==c?(D?!j&&A[I]&&(Y=!0):delete A[I],Y?A[I]=w:v(A,I,w)):Y?A[I]=w:m(I,w)})(Function.prototype,"toString",function(){return"function"==typeof this&&b(this).source||E(this)})},53793:(p,T,o)=>{var c=o(96644),v=o(93084);p.exports=function(g,m){var E=g.exec;if("function"==typeof E){var O=E.call(g,m);if("object"!=typeof O)throw TypeError("RegExp exec method returned something other than an Object or null");return O}if("RegExp"!==c(g))throw TypeError("RegExp#exec called on incompatible receiver");return v.call(g,m)}},93084:(p,T,o)=>{"use strict";var j,H,c=o(73574),v=o(41891),g=o(29895),m=o(77719),E=o(38724),O=o(52493).get,b=o(38126),S=o(31053),P=RegExp.prototype.exec,A=m("native-string-replace",String.prototype.replace),I=P,w=(H=/b*/g,P.call(j=/a/,"a"),P.call(H,"a"),0!==j.lastIndex||0!==H.lastIndex),L=g.UNSUPPORTED_Y||g.BROKEN_CARET,D=void 0!==/()??/.exec("")[1];(w||D||L||b||S)&&(I=function(H){var Q,_,W,k,Z,xt,bt,F=this,X=O(F),J=c(H),G=X.raw;if(G)return G.lastIndex=F.lastIndex,Q=I.call(G,J),F.lastIndex=G.lastIndex,Q;var vt=X.groups,dt=L&&F.sticky,st=v.call(F),ot=F.source,Tt=0,St=J;if(dt&&(-1===(st=st.replace("y","")).indexOf("g")&&(st+="g"),St=J.slice(F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&"\n"!==J.charAt(F.lastIndex-1))&&(ot="(?: "+ot+")",St=" "+St,Tt++),_=new RegExp("^(?:"+ot+")",st)),D&&(_=new RegExp("^"+ot+"$(?!\\s)",st)),w&&(W=F.lastIndex),k=P.call(dt?_:F,St),dt?k?(k.input=k.input.slice(Tt),k[0]=k[0].slice(Tt),k.index=F.lastIndex,F.lastIndex+=k[0].length):F.lastIndex=0:w&&k&&(F.lastIndex=F.global?k.index+k[0].length:W),D&&k&&k.length>1&&A.call(k[0],_,function(){for(Z=1;Z<arguments.length-2;Z++)void 0===arguments[Z]&&(k[Z]=void 0)}),k&&vt)for(k.groups=xt=E(null),Z=0;Z<vt.length;Z++)xt[(bt=vt[Z])[0]]=k[bt[1]];return k}),p.exports=I},41891:(p,T,o)=>{"use strict";var c=o(21099);p.exports=function(){var v=c(this),g="";return v.global&&(g+="g"),v.ignoreCase&&(g+="i"),v.multiline&&(g+="m"),v.dotAll&&(g+="s"),v.unicode&&(g+="u"),v.sticky&&(g+="y"),g}},29895:(p,T,o)=>{var c=o(8597),v=function(g,m){return RegExp(g,m)};T.UNSUPPORTED_Y=c(function(){var g=v("a","y");return g.lastIndex=2,null!=g.exec("abcd")}),T.BROKEN_CARET=c(function(){var g=v("^r","gy");return g.lastIndex=2,null!=g.exec("str")})},38126:(p,T,o)=>{var c=o(8597);p.exports=c(function(){var v=RegExp(".","string".charAt(0));return!(v.dotAll&&v.exec("\n")&&"s"===v.flags)})},31053:(p,T,o)=>{var c=o(8597);p.exports=c(function(){var v=RegExp("(?<a>b)","string".charAt(5));return"b"!==v.exec("b").groups.a||"bc"!=="b".replace(v,"$<a>c")})},95025:p=>{p.exports=function(T){if(null==T)throw TypeError("Can't call method on "+T);return T}},22341:(p,T,o)=>{var c=o(31864);p.exports=function(v,g){try{Object.defineProperty(c,v,{value:g,configurable:!0,writable:!0})}catch(m){c[v]=g}return g}},37374:(p,T,o)=>{"use strict";var c=o(73626),v=o(52975),g=o(84563),m=o(47012),E=g("species");p.exports=function(O){var b=c(O);m&&b&&!b[E]&&(0,v.f)(b,E,{configurable:!0,get:function(){return this}})}},58242:(p,T,o)=>{var c=o(52975).f,v=o(67791),m=o(84563)("toStringTag");p.exports=function(E,O,b){E&&!v(E=b?E:E.prototype,m)&&c(E,m,{configurable:!0,value:O})}},42650:(p,T,o)=>{var c=o(77719),v=o(94295),g=c("keys");p.exports=function(m){return g[m]||(g[m]=v(m))}},59941:(p,T,o)=>{var c=o(31864),v=o(22341),g="__core-js_shared__",m=c[g]||v(g,{});p.exports=m},77719:(p,T,o)=>{var c=o(97515),v=o(59941);(p.exports=function(g,m){return v[g]||(v[g]=void 0!==m?m:{})})("versions",[]).push({version:"3.16.0",mode:c?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},47211:(p,T,o)=>{var c=o(21099),v=o(97625),m=o(84563)("species");p.exports=function(E,O){var S,b=c(E).constructor;return void 0===b||null==(S=c(b)[m])?O:v(S)}},64487:(p,T,o)=>{var c=o(59463),v=o(73574),g=o(95025),m=function(E){return function(O,b){var I,w,S=v(g(O)),P=c(b),A=S.length;return P<0||P>=A?E?"":void 0:(I=S.charCodeAt(P))<55296||I>56319||P+1===A||(w=S.charCodeAt(P+1))<56320||w>57343?E?S.charAt(P):I:E?S.slice(P,P+2):w-56320+(I-55296<<10)+65536}};p.exports={codeAt:m(!1),charAt:m(!0)}},5637:(p,T,o)=>{var c=o(8597),v=o(48004);p.exports=function(m){return c(function(){return!!v[m]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[m]()||v[m].name!==m})}},51664:(p,T,o)=>{var c=o(95025),v=o(73574),m="["+o(48004)+"]",E=RegExp("^"+m+m+"*"),O=RegExp(m+m+"*$"),b=function(S){return function(P){var A=v(c(P));return 1&S&&(A=A.replace(E,"")),2&S&&(A=A.replace(O,"")),A}};p.exports={start:b(1),end:b(2),trim:b(3)}},82040:(p,T,o)=>{var j,H,F,X,c=o(31864),v=o(8597),g=o(29727),m=o(67538),E=o(85815),O=o(40586),b=o(32002),S=c.setImmediate,P=c.clearImmediate,A=c.process,I=c.MessageChannel,w=c.Dispatch,L=0,D={},Y="onreadystatechange";try{j=c.location}catch(W){}var J=function(W){if(D.hasOwnProperty(W)){var k=D[W];delete D[W],k()}},G=function(W){return function(){J(W)}},Q=function(W){J(W.data)},_=function(W){c.postMessage(String(W),j.protocol+"//"+j.host)};(!S||!P)&&(S=function(k){for(var Z=[],xt=arguments.length,bt=1;xt>bt;)Z.push(arguments[bt++]);return D[++L]=function(){("function"==typeof k?k:Function(k)).apply(void 0,Z)},H(L),L},P=function(k){delete D[k]},b?H=function(W){A.nextTick(G(W))}:w&&w.now?H=function(W){w.now(G(W))}:I&&!O?(X=(F=new I).port2,F.port1.onmessage=Q,H=g(X.postMessage,X,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts&&j&&"file:"!==j.protocol&&!v(_)?(H=_,c.addEventListener("message",Q,!1)):H=Y in E("script")?function(W){m.appendChild(E("script"))[Y]=function(){m.removeChild(this),J(W)}}:function(W){setTimeout(G(W),0)}),p.exports={set:S,clear:P}},20222:(p,T,o)=>{var c=o(59463),v=Math.max,g=Math.min;p.exports=function(m,E){var O=c(m);return O<0?v(O+E,0):g(O,E)}},8643:(p,T,o)=>{var c=o(56169),v=o(95025);p.exports=function(g){return c(v(g))}},59463:p=>{var T=Math.ceil,o=Math.floor;p.exports=function(c){return isNaN(c=+c)?0:(c>0?o:T)(c)}},15902:(p,T,o)=>{var c=o(59463),v=Math.min;p.exports=function(g){return g>0?v(c(g),9007199254740991):0}},16174:(p,T,o)=>{var c=o(95025);p.exports=function(v){return Object(c(v))}},28495:(p,T,o)=>{var c=o(60726),v=o(26186),g=o(48297),E=o(84563)("toPrimitive");p.exports=function(O,b){if(!c(O)||v(O))return O;var P,S=O[E];if(void 0!==S){if(void 0===b&&(b="default"),P=S.call(O,b),!c(P)||v(P))return P;throw TypeError("Can't convert object to primitive value")}return void 0===b&&(b="number"),g(O,b)}},16582:(p,T,o)=>{var c=o(28495),v=o(26186);p.exports=function(g){var m=c(g,"string");return v(m)?m:String(m)}},72900:(p,T,o)=>{var g={};g[o(84563)("toStringTag")]="z",p.exports="[object z]"===String(g)},73574:(p,T,o)=>{var c=o(26186);p.exports=function(v){if(c(v))throw TypeError("Cannot convert a Symbol value to a string");return String(v)}},94295:p=>{var T=0,o=Math.random();p.exports=function(c){return"Symbol("+String(void 0===c?"":c)+")_"+(++T+o).toString(36)}},24431:(p,T,o)=>{var c=o(77040);p.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},84563:(p,T,o)=>{var c=o(31864),v=o(77719),g=o(67791),m=o(94295),E=o(77040),O=o(24431),b=v("wks"),S=c.Symbol,P=O?S:S&&S.withoutSetter||m;p.exports=function(A){return(!g(b,A)||!(E||"string"==typeof b[A]))&&(b[A]=E&&g(S,A)?S[A]:P("Symbol."+A)),b[A]}},48004:p=>{p.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},74984:(p,T,o)=>{"use strict";var c=o(51163),v=o(70452).indexOf,g=o(47051),m=[].indexOf,E=!!m&&1/[1].indexOf(1,-0)<0,O=g("indexOf");c({target:"Array",proto:!0,forced:E||!O},{indexOf:function(S){return E?m.apply(this,arguments)||0:v(this,S,arguments.length>1?arguments[1]:void 0)}})},66837:(p,T,o)=>{"use strict";var c=o(8643),v=o(24094),g=o(72339),m=o(52493),E=o(66038),O="Array Iterator",b=m.set,S=m.getterFor(O);p.exports=E(Array,"Array",function(P,A){b(this,{type:O,target:c(P),index:0,kind:A})},function(){var P=S(this),A=P.target,I=P.kind,w=P.index++;return!A||w>=A.length?(P.target=void 0,{value:void 0,done:!0}):"keys"==I?{value:w,done:!1}:"values"==I?{value:A[w],done:!1}:{value:[w,A[w]],done:!1}},"values"),g.Arguments=g.Array,v("keys"),v("values"),v("entries")},35319:(p,T,o)=>{"use strict";var c=o(51163),v=o(14716).left,g=o(47051),m=o(17189),E=o(32002);c({target:"Array",proto:!0,forced:!g("reduce")||!E&&m>79&&m<83},{reduce:function(P){return v(this,P,arguments.length,arguments.length>1?arguments[1]:void 0)}})},57353:(p,T,o)=>{"use strict";var c=o(51163),v=o(47883),g=[].reverse,m=[1,2];c({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){return v(this)&&(this.length=this.length),g.call(this)}})},54541:(p,T,o)=>{"use strict";var we,_t,Re,Fe,c=o(51163),v=o(97515),g=o(31864),m=o(73626),E=o(36866),O=o(87763),b=o(78715),S=o(91464),P=o(58242),A=o(37374),I=o(60726),w=o(97625),L=o(86063),D=o(87720),Y=o(53284),j=o(56297),H=o(47211),F=o(82040).set,X=o(81463),J=o(6223),G=o(99989),Q=o(29723),_=o(4113),W=o(52493),k=o(87215),Z=o(84563),xt=o(92846),bt=o(32002),vt=o(17189),dt=Z("species"),st="Promise",ot=W.get,Tt=W.set,St=W.getterFor(st),Ot=E&&E.prototype,ct=E,N=Ot,qt=g.TypeError,oe=g.document,Xt=g.process,Wt=Q.f,me=Wt,xe=!!(oe&&oe.createEvent&&g.dispatchEvent),or="function"==typeof PromiseRejectionEvent,De="unhandledrejection",Be=!1,Mt=k(st,function(){var z=D(ct),tt=z!==String(ct);if(!tt&&66===vt||v&&!N.finally)return!0;if(vt>=51&&/native code/.test(z))return!1;var nt=new ct(function(Rt){Rt(1)}),rt=function(Rt){Rt(function(){},function(){})};return(nt.constructor={})[dt]=rt,!(Be=nt.then(function(){})instanceof rt)||!tt&&xt&&!or}),lr=Mt||!j(function(z){ct.all(z).catch(function(){})}),Ue=function(z){var tt;return!(!I(z)||"function"!=typeof(tt=z.then))&&tt},be=function(z,tt){if(!z.notified){z.notified=!0;var nt=z.reactions;X(function(){for(var rt=z.value,lt=1==z.state,Rt=0;nt.length>Rt;){var $t,fe,ae,Ut=nt[Rt++],Kt=lt?Ut.ok:Ut.fail,Jt=Ut.resolve,te=Ut.reject,kt=Ut.domain;try{Kt?(lt||(2===z.rejection&&fr(z),z.rejection=1),!0===Kt?$t=rt:(kt&&kt.enter(),$t=Kt(rt),kt&&(kt.exit(),ae=!0)),$t===Ut.promise?te(qt("Promise-chain cycle")):(fe=Ue($t))?fe.call($t,Jt,te):Jt($t)):te(rt)}catch(q){kt&&!ae&&kt.exit(),te(q)}}z.reactions=[],z.notified=!1,tt&&!z.rejection&&hr(z)})}},je=function(z,tt,nt){var rt,lt;xe?((rt=oe.createEvent("Event")).promise=tt,rt.reason=nt,rt.initEvent(z,!1,!0),g.dispatchEvent(rt)):rt={promise:tt,reason:nt},!or&&(lt=g["on"+z])?lt(rt):z===De&&G("Unhandled promise rejection",nt)},hr=function(z){F.call(g,function(){var lt,tt=z.facade,nt=z.value;if($e(z)&&(lt=_(function(){bt?Xt.emit("unhandledRejection",nt,tt):je(De,tt,nt)}),z.rejection=bt||$e(z)?2:1,lt.error))throw lt.value})},$e=function(z){return 1!==z.rejection&&!z.parent},fr=function(z){F.call(g,function(){var tt=z.facade;bt?Xt.emit("rejectionHandled",tt):je("rejectionhandled",tt,z.value)})},le=function(z,tt,nt){return function(rt){z(tt,rt,nt)}},he=function(z,tt,nt){z.done||(z.done=!0,nt&&(z=nt),z.value=tt,z.state=2,be(z,!0))},ke=function(z,tt,nt){if(!z.done){z.done=!0,nt&&(z=nt);try{if(z.facade===tt)throw qt("Promise can't be resolved itself");var rt=Ue(tt);rt?X(function(){var lt={done:!1};try{rt.call(tt,le(ke,lt,z),le(he,lt,z))}catch(Rt){he(lt,Rt,z)}}):(z.value=tt,z.state=1,be(z,!1))}catch(lt){he({done:!1},lt,z)}}};if(Mt&&(ct=function(tt){L(this,ct,st),w(tt),we.call(this);var nt=ot(this);try{tt(le(ke,nt),le(he,nt))}catch(rt){he(nt,rt)}},(we=function(tt){Tt(this,{type:st,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=b(N=ct.prototype,{then:function(tt,nt){var rt=St(this),lt=Wt(H(this,ct));return lt.ok="function"!=typeof tt||tt,lt.fail="function"==typeof nt&&nt,lt.domain=bt?Xt.domain:void 0,rt.parent=!0,rt.reactions.push(lt),0!=rt.state&&be(rt,!1),lt.promise},catch:function(z){return this.then(void 0,z)}}),_t=function(){var z=new we,tt=ot(z);this.promise=z,this.resolve=le(ke,tt),this.reject=le(he,tt)},Q.f=Wt=function(z){return z===ct||z===Re?new _t(z):me(z)},!v&&"function"==typeof E&&Ot!==Object.prototype)){Fe=Ot.then,Be||(O(Ot,"then",function(tt,nt){var rt=this;return new ct(function(lt,Rt){Fe.call(rt,lt,Rt)}).then(tt,nt)},{unsafe:!0}),O(Ot,"catch",N.catch,{unsafe:!0}));try{delete Ot.constructor}catch(z){}S&&S(Ot,N)}c({global:!0,wrap:!0,forced:Mt},{Promise:ct}),P(ct,st,!1,!0),A(st),Re=m(st),c({target:st,stat:!0,forced:Mt},{reject:function(tt){var nt=Wt(this);return nt.reject.call(void 0,tt),nt.promise}}),c({target:st,stat:!0,forced:v||Mt},{resolve:function(tt){return J(v&&this===Re?ct:this,tt)}}),c({target:st,stat:!0,forced:lr},{all:function(tt){var nt=this,rt=Wt(nt),lt=rt.resolve,Rt=rt.reject,Ut=_(function(){var Kt=w(nt.resolve),Jt=[],te=0,kt=1;Y(tt,function($t){var fe=te++,ae=!1;Jt.push(void 0),kt++,Kt.call(nt,$t).then(function(q){ae||(ae=!0,Jt[fe]=q,--kt||lt(Jt))},Rt)}),--kt||lt(Jt)});return Ut.error&&Rt(Ut.value),rt.promise},race:function(tt){var nt=this,rt=Wt(nt),lt=rt.reject,Rt=_(function(){var Ut=w(nt.resolve);Y(tt,function(Kt){Ut.call(nt,Kt).then(rt.resolve,lt)})});return Rt.error&&lt(Rt.value),rt.promise}})},69665:(p,T,o)=>{"use strict";var c=o(51163),v=o(93084);c({target:"RegExp",proto:!0,forced:/./.exec!==v},{exec:v})},94119:(p,T,o)=>{"use strict";var c=o(87763),v=o(21099),g=o(73574),m=o(8597),E=o(41891),O="toString",b=RegExp.prototype,S=b[O];(m(function(){return"/a/b"!=S.call({source:"a",flags:"b"})})||S.name!=O)&&c(RegExp.prototype,O,function(){var w=v(this),L=g(w.source),D=w.flags;return"/"+L+"/"+g(void 0===D&&w instanceof RegExp&&!("flags"in b)?E.call(w):D)},{unsafe:!0})},30706:(p,T,o)=>{"use strict";var L,c=o(51163),v=o(93099).f,g=o(15902),m=o(73574),E=o(93270),O=o(95025),b=o(363),S=o(97515),P="".endsWith,A=Math.min,I=b("endsWith");c({target:"String",proto:!0,forced:!(!S&&!I&&(L=v(String.prototype,"endsWith"),L&&!L.writable)||I)},{endsWith:function(D){var Y=m(O(this));E(D);var j=arguments.length>1?arguments[1]:void 0,H=g(Y.length),F=void 0===j?H:A(g(j),H),X=m(D);return P?P.call(Y,X,F):Y.slice(F-X.length,F)===X}})},13358:(p,T,o)=>{"use strict";var c=o(51163),v=o(93270),g=o(95025),m=o(73574);c({target:"String",proto:!0,forced:!o(363)("includes")},{includes:function(b){return!!~m(g(this)).indexOf(m(v(b)),arguments.length>1?arguments[1]:void 0)}})},26954:(p,T,o)=>{"use strict";var c=o(9357),v=o(21099),g=o(15902),m=o(73574),E=o(95025),O=o(27678),b=o(53793);c("match",function(S,P,A){return[function(w){var L=E(this),D=null==w?void 0:w[S];return void 0!==D?D.call(w,L):new RegExp(w)[S](m(L))},function(I){var w=v(this),L=m(I),D=A(P,w,L);if(D.done)return D.value;if(!w.global)return b(w,L);var Y=w.unicode;w.lastIndex=0;for(var F,j=[],H=0;null!==(F=b(w,L));){var X=m(F[0]);j[H]=X,""===X&&(w.lastIndex=O(L,g(w.lastIndex),Y)),H++}return 0===H?null:j}]})},66262:(p,T,o)=>{"use strict";var c=o(9357),v=o(8597),g=o(21099),m=o(59463),E=o(15902),O=o(73574),b=o(95025),S=o(27678),P=o(16162),A=o(53793),w=o(84563)("replace"),L=Math.max,D=Math.min,Y=function(X){return void 0===X?X:String(X)},j="$0"==="a".replace(/./,"$0"),H=!!/./[w]&&""===/./[w]("a","$0");c("replace",function(X,J,G){var Q=H?"$":"$0";return[function(W,k){var Z=b(this),xt=null==W?void 0:W[w];return void 0!==xt?xt.call(W,Z,k):J.call(O(Z),W,k)},function(_,W){var k=g(this),Z=O(_);if("string"==typeof W&&-1===W.indexOf(Q)&&-1===W.indexOf("$<")){var xt=G(J,k,Z,W);if(xt.done)return xt.value}var bt="function"==typeof W;bt||(W=O(W));var vt=k.global;if(vt){var dt=k.unicode;k.lastIndex=0}for(var st=[];;){var ot=A(k,Z);if(null===ot||(st.push(ot),!vt))break;""===O(ot[0])&&(k.lastIndex=S(Z,E(k.lastIndex),dt))}for(var St="",Ot=0,ct=0;ct<st.length;ct++){for(var N=O((ot=st[ct])[0]),qt=L(D(m(ot.index),Z.length),0),oe=[],Xt=1;Xt<ot.length;Xt++)oe.push(Y(ot[Xt]));var Wt=ot.groups;if(bt){var me=[N].concat(oe,qt,Z);void 0!==Wt&&me.push(Wt);var xe=O(W.apply(void 0,me))}else xe=P(N,Z,qt,oe,Wt,W);qt>=Ot&&(St+=Z.slice(Ot,qt)+xe,Ot=qt+N.length)}return St+Z.slice(Ot)}]},!!v(function(){var X=/./;return X.exec=function(){var J=[];return J.groups={a:"7"},J},"7"!=="".replace(X,"$<a>")})||!j||H)},55374:(p,T,o)=>{"use strict";var c=o(9357),v=o(99482),g=o(21099),m=o(95025),E=o(47211),O=o(27678),b=o(15902),S=o(73574),P=o(53793),A=o(93084),I=o(29895),w=o(8597),L=I.UNSUPPORTED_Y,D=[].push,Y=Math.min,j=4294967295;c("split",function(F,X,J){var G;return G="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(Q,_){var W=S(m(this)),k=void 0===_?j:_>>>0;if(0===k)return[];if(void 0===Q)return[W];if(!v(Q))return X.call(W,Q,k);for(var dt,st,ot,Z=[],bt=0,vt=new RegExp(Q.source,(Q.ignoreCase?"i":"")+(Q.multiline?"m":"")+(Q.unicode?"u":"")+(Q.sticky?"y":"")+"g");(dt=A.call(vt,W))&&!((st=vt.lastIndex)>bt&&(Z.push(W.slice(bt,dt.index)),dt.length>1&&dt.index<W.length&&D.apply(Z,dt.slice(1)),ot=dt[0].length,bt=st,Z.length>=k));)vt.lastIndex===dt.index&&vt.lastIndex++;return bt===W.length?(ot||!vt.test(""))&&Z.push(""):Z.push(W.slice(bt)),Z.length>k?Z.slice(0,k):Z}:"0".split(void 0,0).length?function(Q,_){return void 0===Q&&0===_?[]:X.call(this,Q,_)}:X,[function(_,W){var k=m(this),Z=null==_?void 0:_[F];return void 0!==Z?Z.call(_,k,W):G.call(S(k),_,W)},function(Q,_){var W=g(this),k=S(Q),Z=J(G,W,k,_,G!==X);if(Z.done)return Z.value;var xt=E(W,RegExp),bt=W.unicode,dt=new xt(L?"^(?:"+W.source+")":W,(W.ignoreCase?"i":"")+(W.multiline?"m":"")+(W.unicode?"u":"")+(L?"g":"y")),st=void 0===_?j:_>>>0;if(0===st)return[];if(0===k.length)return null===P(dt,k)?[k]:[];for(var ot=0,Tt=0,St=[];Tt<k.length;){dt.lastIndex=L?0:Tt;var ct,Ot=P(dt,L?k.slice(Tt):k);if(null===Ot||(ct=Y(b(dt.lastIndex+(L?Tt:0)),k.length))===ot)Tt=O(k,Tt,bt);else{if(St.push(k.slice(ot,Tt)),St.length===st)return St;for(var N=1;N<=Ot.length-1;N++)if(St.push(Ot[N]),St.length===st)return St;Tt=ot=ct}}return St.push(k.slice(ot)),St}]},!!w(function(){var F=/(?:)/,X=F.exec;F.exec=function(){return X.apply(this,arguments)};var J="ab".split(F);return 2!==J.length||"a"!==J[0]||"b"!==J[1]}),L)},15139:(p,T,o)=>{"use strict";var L,c=o(51163),v=o(93099).f,g=o(15902),m=o(73574),E=o(93270),O=o(95025),b=o(363),S=o(97515),P="".startsWith,A=Math.min,I=b("startsWith");c({target:"String",proto:!0,forced:!(!S&&!I&&(L=v(String.prototype,"startsWith"),L&&!L.writable)||I)},{startsWith:function(D){var Y=m(O(this));E(D);var j=g(A(arguments.length>1?arguments[1]:void 0,Y.length)),H=m(D);return P?P.call(Y,H,j):Y.slice(j,j+H.length)===H}})},77176:(p,T,o)=>{"use strict";var c=o(51163),v=o(51664).trim;c({target:"String",proto:!0,forced:o(5637)("trim")},{trim:function(){return v(this)}})},22603:(p,T,o)=>{var c=o(31864),v=o(26877),g=o(66837),m=o(815),E=o(84563),O=E("iterator"),b=E("toStringTag"),S=g.values;for(var P in v){var A=c[P],I=A&&A.prototype;if(I){if(I[O]!==S)try{m(I,O,S)}catch(L){I[O]=S}if(I[b]||m(I,b,P),v[P])for(var w in g)if(I[w]!==g[w])try{m(I,w,g[w])}catch(L){I[w]=g[w]}}}},30013:(p,T,o)=>{"use strict";o.r(T),o.d(T,{AElement:()=>rn,AnimateColorElement:()=>Kr,AnimateElement:()=>Je,AnimateTransformElement:()=>Jr,BoundingBox:()=>Qt,CB1:()=>Kt,CB2:()=>Jt,CB3:()=>te,CB4:()=>kt,Canvg:()=>Se,CircleElement:()=>kr,ClipPathElement:()=>cn,DefsElement:()=>Wr,DescElement:()=>bn,Document:()=>Tn,Element:()=>Pt,EllipseElement:()=>zr,FeColorMatrixElement:()=>xr,FeCompositeElement:()=>yn,FeDropShadowElement:()=>dn,FeGaussianBlurElement:()=>mn,FeMorphologyElement:()=>pn,FilterElement:()=>gn,Font:()=>Ee,FontElement:()=>qr,FontFaceElement:()=>_r,GElement:()=>Ke,GlyphElement:()=>dr,GradientElement:()=>mr,ImageElement:()=>sn,LineElement:()=>Hr,LinearGradientElement:()=>$r,MarkerElement:()=>Xr,MaskElement:()=>fn,Matrix:()=>cr,MissingGlyphElement:()=>tn,Mouse:()=>Mr,PSEUDO_ZERO:()=>rt,Parser:()=>Qe,PathElement:()=>pt,PathParser:()=>at,PatternElement:()=>Yr,Point:()=>Ct,PolygonElement:()=>Gr,PolylineElement:()=>yr,Property:()=>q,QB1:()=>$t,QB2:()=>fe,QB3:()=>ae,RadialGradientElement:()=>Qr,RectElement:()=>pr,RenderedElement:()=>ve,Rotate:()=>Dr,SVGElement:()=>Ne,SVGFontLoader:()=>un,Scale:()=>Br,Screen:()=>vr,Skew:()=>gr,SkewX:()=>Fr,SkewY:()=>Ur,StopElement:()=>Zr,StyleElement:()=>ln,SymbolElement:()=>on,TRefElement:()=>en,TSpanElement:()=>ze,TextElement:()=>ie,TextPathElement:()=>an,TitleElement:()=>xn,Transform:()=>Ze,Translate:()=>Lr,UnknownElement:()=>jr,UseElement:()=>hn,ViewPort:()=>Nr,compressSpaces:()=>_t,default:()=>Se,getSelectorSpecificity:()=>nt,normalizeAttributeName:()=>Ue,normalizeColor:()=>je,parseExternalUrl:()=>be,presets:()=>we,toNumbers:()=>Mt,trimLeft:()=>Re,trimRight:()=>Fe,vectorMagnitude:()=>lt,vectorsAngle:()=>Ut,vectorsRatio:()=>Rt}),o(54541);var v=o(8239);function S(l,t,e){return t in l?Object.defineProperty(l,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):l[t]=e,l}o(26954),o(66262),o(15139),o(66837),o(22603),o(35319),o(30706),o(55374);var w=o(97352),D=(o(77176),o(81997)),F=(o(74984),o(13358),o(57353),function(l,t){return(F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])})(l,t)});function X(l,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=l}F(l,t),l.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}function G(l,t){var e=l[0],r=l[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function Q(){for(var l=[],t=0;t<arguments.length;t++)l[t]=arguments[t];for(var e=0;e<l.length;e++)if("number"!=typeof l[e])throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof l[e]+" == typeof "+l[e]);return!0}var _=Math.PI;function W(l,t,e){l.lArcFlag=0===l.lArcFlag?0:1,l.sweepFlag=0===l.sweepFlag?0:1;var r=l.rX,n=l.rY,a=l.x,s=l.y;r=Math.abs(l.rX),n=Math.abs(l.rY);var i=G([(t-a)/2,(e-s)/2],-l.xRot/180*_),u=i[0],h=i[1],f=Math.pow(u,2)/Math.pow(r,2)+Math.pow(h,2)/Math.pow(n,2);1<f&&(r*=Math.sqrt(f),n*=Math.sqrt(f)),l.rX=r,l.rY=n;var y=Math.pow(r,2)*Math.pow(h,2)+Math.pow(n,2)*Math.pow(u,2),x=(l.lArcFlag!==l.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(n,2)-y)/y)),d=r*h/n*x,C=-n*u/r*x,R=G([d,C],l.xRot/180*_);l.cX=R[0]+(t+a)/2,l.cY=R[1]+(e+s)/2,l.phi1=Math.atan2((h-C)/n,(u-d)/r),l.phi2=Math.atan2((-h-C)/n,(-u-d)/r),0===l.sweepFlag&&l.phi2>l.phi1&&(l.phi2-=2*_),1===l.sweepFlag&&l.phi2<l.phi1&&(l.phi2+=2*_),l.phi1*=180/_,l.phi2*=180/_}function k(l,t,e){Q(l,t,e);var r=l*l+t*t-e*e;if(0>r)return[];if(0===r)return[[l*e/(l*l+t*t),t*e/(l*l+t*t)]];var n=Math.sqrt(r);return[[(l*e+t*n)/(l*l+t*t),(t*e-l*n)/(l*l+t*t)],[(l*e-t*n)/(l*l+t*t),(t*e+l*n)/(l*l+t*t)]]}var Z,xt=Math.PI/180;function bt(l,t,e){return(1-e)*l+e*t}function vt(l,t,e,r){return l+Math.cos(r/180*_)*t+Math.sin(r/180*_)*e}function dt(l,t,e,r){var n=1e-6,a=t-l,s=e-t,i=3*a+3*(r-e)-6*s,u=6*(s-a),h=3*a;return Math.abs(i)<n?[-h/u]:function(f,y,x){void 0===x&&(x=1e-6);var d=f*f/4-y;if(d<-x)return[];if(d<=x)return[-f/2];var C=Math.sqrt(d);return[-f/2-C,-f/2+C]}(u/i,h/i,n)}function st(l,t,e,r,n){var a=1-n;return l*(a*a*a)+t*(3*a*a*n)+e*(3*a*n*n)+r*(n*n*n)}!function(l){function t(){return n(function(i,u,h){return i.relative&&(void 0!==i.x1&&(i.x1+=u),void 0!==i.y1&&(i.y1+=h),void 0!==i.x2&&(i.x2+=u),void 0!==i.y2&&(i.y2+=h),void 0!==i.x&&(i.x+=u),void 0!==i.y&&(i.y+=h),i.relative=!1),i})}function e(){var i=NaN,u=NaN,h=NaN,f=NaN;return n(function(y,x,d){return y.type&N.SMOOTH_CURVE_TO&&(y.type=N.CURVE_TO,i=isNaN(i)?x:i,u=isNaN(u)?d:u,y.x1=y.relative?x-i:2*x-i,y.y1=y.relative?d-u:2*d-u),y.type&N.CURVE_TO?(i=y.relative?x+y.x2:y.x2,u=y.relative?d+y.y2:y.y2):(i=NaN,u=NaN),y.type&N.SMOOTH_QUAD_TO&&(y.type=N.QUAD_TO,h=isNaN(h)?x:h,f=isNaN(f)?d:f,y.x1=y.relative?x-h:2*x-h,y.y1=y.relative?d-f:2*d-f),y.type&N.QUAD_TO?(h=y.relative?x+y.x1:y.x1,f=y.relative?d+y.y1:y.y1):(h=NaN,f=NaN),y})}function r(){var i=NaN,u=NaN;return n(function(h,f,y){if(h.type&N.SMOOTH_QUAD_TO&&(h.type=N.QUAD_TO,i=isNaN(i)?f:i,u=isNaN(u)?y:u,h.x1=h.relative?f-i:2*f-i,h.y1=h.relative?y-u:2*y-u),h.type&N.QUAD_TO){i=h.relative?f+h.x1:h.x1,u=h.relative?y+h.y1:h.y1;var x=h.x1,d=h.y1;h.type=N.CURVE_TO,h.x1=((h.relative?0:f)+2*x)/3,h.y1=((h.relative?0:y)+2*d)/3,h.x2=(h.x+2*x)/3,h.y2=(h.y+2*d)/3}else i=NaN,u=NaN;return h})}function n(i){var u=0,h=0,f=NaN,y=NaN;return function(x){if(isNaN(f)&&!(x.type&N.MOVE_TO))throw new Error("path must start with moveto");var d=i(x,u,h,f,y);return x.type&N.CLOSE_PATH&&(u=f,h=y),void 0!==x.x&&(u=x.relative?u+x.x:x.x),void 0!==x.y&&(h=x.relative?h+x.y:x.y),x.type&N.MOVE_TO&&(f=u,y=h),d}}function a(i,u,h,f,y,x){return Q(i,u,h,f,y,x),n(function(d,C,R,M){var V=d.x1,K=d.x2,U=d.relative&&!isNaN(M),B=void 0!==d.x?d.x:U?0:C,et=void 0!==d.y?d.y:U?0:R;function it(Ft){return Ft*Ft}d.type&N.HORIZ_LINE_TO&&0!==u&&(d.type=N.LINE_TO,d.y=d.relative?0:R),d.type&N.VERT_LINE_TO&&0!==h&&(d.type=N.LINE_TO,d.x=d.relative?0:C),void 0!==d.x&&(d.x=d.x*i+et*h+(U?0:y)),void 0!==d.y&&(d.y=B*u+d.y*f+(U?0:x)),void 0!==d.x1&&(d.x1=d.x1*i+d.y1*h+(U?0:y)),void 0!==d.y1&&(d.y1=V*u+d.y1*f+(U?0:x)),void 0!==d.x2&&(d.x2=d.x2*i+d.y2*h+(U?0:y)),void 0!==d.y2&&(d.y2=K*u+d.y2*f+(U?0:x));var $=i*f-u*h;if(void 0!==d.xRot&&(1!==i||0!==u||0!==h||1!==f))if(0===$)delete d.rX,delete d.rY,delete d.xRot,delete d.lArcFlag,delete d.sweepFlag,d.type=N.LINE_TO;else{var ut=d.xRot*Math.PI/180,ht=Math.sin(ut),gt=Math.cos(ut),yt=1/it(d.rX),Et=1/it(d.rY),Vt=it(gt)*yt+it(ht)*Et,Lt=2*ht*gt*(yt-Et),At=it(ht)*yt+it(gt)*Et,Nt=Vt*f*f-Lt*u*f+At*u*u,wt=Lt*(i*f+u*h)-2*(Vt*h*f+At*i*u),Bt=Vt*h*h-Lt*i*h+At*i*i,mt=(Math.atan2(wt,Nt-Bt)+Math.PI)%Math.PI/2,ft=Math.sin(mt),Dt=Math.cos(mt);d.rX=Math.abs($)/Math.sqrt(Nt*it(Dt)+wt*ft*Dt+Bt*it(ft)),d.rY=Math.abs($)/Math.sqrt(Nt*it(ft)-wt*ft*Dt+Bt*it(Dt)),d.xRot=180*mt/Math.PI}return void 0!==d.sweepFlag&&0>$&&(d.sweepFlag=+!d.sweepFlag),d})}l.ROUND=function(i){function u(h){return Math.round(h*i)/i}return void 0===i&&(i=1e13),Q(i),function(h){return void 0!==h.x1&&(h.x1=u(h.x1)),void 0!==h.y1&&(h.y1=u(h.y1)),void 0!==h.x2&&(h.x2=u(h.x2)),void 0!==h.y2&&(h.y2=u(h.y2)),void 0!==h.x&&(h.x=u(h.x)),void 0!==h.y&&(h.y=u(h.y)),void 0!==h.rX&&(h.rX=u(h.rX)),void 0!==h.rY&&(h.rY=u(h.rY)),h}},l.TO_ABS=t,l.TO_REL=function(){return n(function(i,u,h){return i.relative||(void 0!==i.x1&&(i.x1-=u),void 0!==i.y1&&(i.y1-=h),void 0!==i.x2&&(i.x2-=u),void 0!==i.y2&&(i.y2-=h),void 0!==i.x&&(i.x-=u),void 0!==i.y&&(i.y-=h),i.relative=!0),i})},l.NORMALIZE_HVZ=function(i,u,h){return void 0===i&&(i=!0),void 0===u&&(u=!0),void 0===h&&(h=!0),n(function(f,y,x,d,C){if(isNaN(d)&&!(f.type&N.MOVE_TO))throw new Error("path must start with moveto");return u&&f.type&N.HORIZ_LINE_TO&&(f.type=N.LINE_TO,f.y=f.relative?0:x),h&&f.type&N.VERT_LINE_TO&&(f.type=N.LINE_TO,f.x=f.relative?0:y),i&&f.type&N.CLOSE_PATH&&(f.type=N.LINE_TO,f.x=f.relative?d-y:d,f.y=f.relative?C-x:C),f.type&N.ARC&&(0===f.rX||0===f.rY)&&(f.type=N.LINE_TO,delete f.rX,delete f.rY,delete f.xRot,delete f.lArcFlag,delete f.sweepFlag),f})},l.NORMALIZE_ST=e,l.QT_TO_C=r,l.INFO=n,l.SANITIZE=function(i){void 0===i&&(i=0),Q(i);var u=NaN,h=NaN,f=NaN,y=NaN;return n(function(x,d,C,R,M){var V=Math.abs,K=!1,U=0,B=0;if(x.type&N.SMOOTH_CURVE_TO&&(U=isNaN(u)?0:d-u,B=isNaN(h)?0:C-h),x.type&(N.CURVE_TO|N.SMOOTH_CURVE_TO)?(u=x.relative?d+x.x2:x.x2,h=x.relative?C+x.y2:x.y2):(u=NaN,h=NaN),x.type&N.SMOOTH_QUAD_TO?(f=isNaN(f)?d:2*d-f,y=isNaN(y)?C:2*C-y):x.type&N.QUAD_TO?(f=x.relative?d+x.x1:x.x1,y=x.relative?C+x.y1:x.y2):(f=NaN,y=NaN),x.type&N.LINE_COMMANDS||x.type&N.ARC&&(0===x.rX||0===x.rY||!x.lArcFlag)||x.type&N.CURVE_TO||x.type&N.SMOOTH_CURVE_TO||x.type&N.QUAD_TO||x.type&N.SMOOTH_QUAD_TO){var et=void 0===x.x?0:x.relative?x.x:x.x-d,it=void 0===x.y?0:x.relative?x.y:x.y-C;U=isNaN(f)?void 0===x.x1?U:x.relative?x.x:x.x1-d:f-d,B=isNaN(y)?void 0===x.y1?B:x.relative?x.y:x.y1-C:y-C;var $=void 0===x.x2?0:x.relative?x.x:x.x2-d,ut=void 0===x.y2?0:x.relative?x.y:x.y2-C;V(et)<=i&&V(it)<=i&&V(U)<=i&&V(B)<=i&&V($)<=i&&V(ut)<=i&&(K=!0)}return x.type&N.CLOSE_PATH&&V(d-R)<=i&&V(C-M)<=i&&(K=!0),K?[]:x})},l.MATRIX=a,l.ROTATE=function(i,u,h){void 0===u&&(u=0),void 0===h&&(h=0),Q(i,u,h);var f=Math.sin(i),y=Math.cos(i);return a(y,f,-f,y,u-u*y+h*f,h-u*f-h*y)},l.TRANSLATE=function(i,u){return void 0===u&&(u=0),Q(i,u),a(1,0,0,1,i,u)},l.SCALE=function(i,u){return void 0===u&&(u=i),Q(i,u),a(i,0,0,u,0,0)},l.SKEW_X=function(i){return Q(i),a(1,0,Math.atan(i),1,0,0)},l.SKEW_Y=function(i){return Q(i),a(1,Math.atan(i),0,1,0,0)},l.X_AXIS_SYMMETRY=function(i){return void 0===i&&(i=0),Q(i),a(-1,0,0,1,i,0)},l.Y_AXIS_SYMMETRY=function(i){return void 0===i&&(i=0),Q(i),a(1,0,0,-1,0,i)},l.A_TO_C=function(){return n(function(i,u,h){return N.ARC===i.type?function(f,y,x){var d,C,R,M;f.cX||W(f,y,x);for(var V=Math.min(f.phi1,f.phi2),K=Math.max(f.phi1,f.phi2)-V,U=Math.ceil(K/90),B=new Array(U),et=y,it=x,$=0;$<U;$++){var ut=bt(f.phi1,f.phi2,$/U),ht=bt(f.phi1,f.phi2,($+1)/U),yt=4/3*Math.tan((ht-ut)*xt/4),Et=[Math.cos(ut*xt)-yt*Math.sin(ut*xt),Math.sin(ut*xt)+yt*Math.cos(ut*xt)],Vt=Et[0],Lt=Et[1],At=[Math.cos(ht*xt),Math.sin(ht*xt)],Nt=At[0],wt=At[1],Bt=[Nt+yt*Math.sin(ht*xt),wt-yt*Math.cos(ht*xt)],mt=Bt[0],ft=Bt[1];B[$]={relative:f.relative,type:N.CURVE_TO};var Dt=function(Ft,zt){var jt=G([Ft*f.rX,zt*f.rY],f.xRot);return[f.cX+jt[0],f.cY+jt[1]]};d=Dt(Vt,Lt),B[$].x1=d[0],B[$].y1=d[1],C=Dt(mt,ft),B[$].x2=C[0],B[$].y2=C[1],R=Dt(Nt,wt),B[$].x=R[0],B[$].y=R[1],f.relative&&(B[$].x1-=et,B[$].y1-=it,B[$].x2-=et,B[$].y2-=it,B[$].x-=et,B[$].y-=it),et=(M=[B[$].x,B[$].y])[0],it=M[1]}return B}(i,i.relative?0:u,i.relative?0:h):i})},l.ANNOTATE_ARCS=function(){return n(function(i,u,h){return i.relative&&(u=0,h=0),N.ARC===i.type&&W(i,u,h),i})},l.CLONE=function(){return function(i){var u={};for(var h in i)u[h]=i[h];return u}},l.CALCULATE_BOUNDS=function(){var u=t(),h=r(),f=e(),y=n(function(x,d,C){var R=f(h(u(function(x){var d={};for(var C in x)d[C]=x[C];return d}(x))));function M(ft){ft>y.maxX&&(y.maxX=ft),ft<y.minX&&(y.minX=ft)}function V(ft){ft>y.maxY&&(y.maxY=ft),ft<y.minY&&(y.minY=ft)}if(R.type&N.DRAWING_COMMANDS&&(M(d),V(C)),R.type&N.HORIZ_LINE_TO&&M(R.x),R.type&N.VERT_LINE_TO&&V(R.y),R.type&N.LINE_TO&&(M(R.x),V(R.y)),R.type&N.CURVE_TO){M(R.x),V(R.y);for(var K=0,U=dt(d,R.x1,R.x2,R.x);K<U.length;K++)0<(mt=U[K])&&1>mt&&M(st(d,R.x1,R.x2,R.x,mt));for(var B=0,et=dt(C,R.y1,R.y2,R.y);B<et.length;B++)0<(mt=et[B])&&1>mt&&V(st(C,R.y1,R.y2,R.y,mt))}if(R.type&N.ARC){M(R.x),V(R.y),W(R,d,C);for(var it=R.xRot/180*Math.PI,$=Math.cos(it)*R.rX,ut=Math.sin(it)*R.rX,ht=-Math.sin(it)*R.rY,gt=Math.cos(it)*R.rY,yt=R.phi1<R.phi2?[R.phi1,R.phi2]:-180>R.phi2?[R.phi2+360,R.phi1+360]:[R.phi2,R.phi1],Et=yt[0],Vt=yt[1],Lt=function(ft){var zt=180*Math.atan2(ft[1],ft[0])/Math.PI;return zt<Et?zt+360:zt},At=0,Nt=k(ht,-$,0).map(Lt);At<Nt.length;At++)(mt=Nt[At])>Et&&mt<Vt&&M(vt(R.cX,$,ht,mt));for(var wt=0,Bt=k(gt,-ut,0).map(Lt);wt<Bt.length;wt++){var mt;(mt=Bt[wt])>Et&&mt<Vt&&V(vt(R.cY,ut,gt,mt))}}return x});return y.minX=1/0,y.maxX=-1/0,y.minY=1/0,y.maxY=-1/0,y}}(Z||(Z={}));var ot,Tt=function(){function l(){}return l.prototype.round=function(t){return this.transform(Z.ROUND(t))},l.prototype.toAbs=function(){return this.transform(Z.TO_ABS())},l.prototype.toRel=function(){return this.transform(Z.TO_REL())},l.prototype.normalizeHVZ=function(t,e,r){return this.transform(Z.NORMALIZE_HVZ(t,e,r))},l.prototype.normalizeST=function(){return this.transform(Z.NORMALIZE_ST())},l.prototype.qtToC=function(){return this.transform(Z.QT_TO_C())},l.prototype.aToC=function(){return this.transform(Z.A_TO_C())},l.prototype.sanitize=function(t){return this.transform(Z.SANITIZE(t))},l.prototype.translate=function(t,e){return this.transform(Z.TRANSLATE(t,e))},l.prototype.scale=function(t,e){return this.transform(Z.SCALE(t,e))},l.prototype.rotate=function(t,e,r){return this.transform(Z.ROTATE(t,e,r))},l.prototype.matrix=function(t,e,r,n,a,s){return this.transform(Z.MATRIX(t,e,r,n,a,s))},l.prototype.skewX=function(t){return this.transform(Z.SKEW_X(t))},l.prototype.skewY=function(t){return this.transform(Z.SKEW_Y(t))},l.prototype.xSymmetry=function(t){return this.transform(Z.X_AXIS_SYMMETRY(t))},l.prototype.ySymmetry=function(t){return this.transform(Z.Y_AXIS_SYMMETRY(t))},l.prototype.annotateArcs=function(){return this.transform(Z.ANNOTATE_ARCS())},l}(),St=function(l){return" "===l||"\t"===l||"\r"===l||"\n"===l},Ot=function(l){return"0".charCodeAt(0)<=l.charCodeAt(0)&&l.charCodeAt(0)<="9".charCodeAt(0)},ct=function(l){function t(){var e=l.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return X(t,l),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,r){var n=this;void 0===r&&(r=[]);for(var a=function(y){r.push(y),n.curArgs.length=0,n.canParseCommandOrComma=!0},s=0;s<e.length;s++){var i=e[s],u=!(this.curCommandType!==N.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),h=Ot(i)&&("0"===this.curNumber&&"0"===i||u);if(!Ot(i)||h)if("e"!==i&&"E"!==i)if("-"!==i&&"+"!==i||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==i||this.curNumberHasExp||this.curNumberHasDecimal||u){if(this.curNumber&&-1!==this.curCommandType){var f=Number(this.curNumber);if(isNaN(f))throw new SyntaxError("Invalid number ending at "+s);if(this.curCommandType===N.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>f)throw new SyntaxError('Expected positive number, got "'+f+'" at index "'+s+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+s+'"');this.curArgs.push(f),this.curArgs.length===qt[this.curCommandType]&&(N.HORIZ_LINE_TO===this.curCommandType?a({type:N.HORIZ_LINE_TO,relative:this.curCommandRelative,x:f}):N.VERT_LINE_TO===this.curCommandType?a({type:N.VERT_LINE_TO,relative:this.curCommandRelative,y:f}):this.curCommandType===N.MOVE_TO||this.curCommandType===N.LINE_TO||this.curCommandType===N.SMOOTH_QUAD_TO?(a({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),N.MOVE_TO===this.curCommandType&&(this.curCommandType=N.LINE_TO)):this.curCommandType===N.CURVE_TO?a({type:N.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===N.SMOOTH_CURVE_TO?a({type:N.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.QUAD_TO?a({type:N.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.ARC&&a({type:N.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!St(i))if(","===i&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==i&&"-"!==i&&"."!==i)if(h)this.curNumber=i,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+s+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+i+'" at index '+s+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==i&&"Z"!==i)if("h"===i||"H"===i)this.curCommandType=N.HORIZ_LINE_TO,this.curCommandRelative="h"===i;else if("v"===i||"V"===i)this.curCommandType=N.VERT_LINE_TO,this.curCommandRelative="v"===i;else if("m"===i||"M"===i)this.curCommandType=N.MOVE_TO,this.curCommandRelative="m"===i;else if("l"===i||"L"===i)this.curCommandType=N.LINE_TO,this.curCommandRelative="l"===i;else if("c"===i||"C"===i)this.curCommandType=N.CURVE_TO,this.curCommandRelative="c"===i;else if("s"===i||"S"===i)this.curCommandType=N.SMOOTH_CURVE_TO,this.curCommandRelative="s"===i;else if("q"===i||"Q"===i)this.curCommandType=N.QUAD_TO,this.curCommandRelative="q"===i;else if("t"===i||"T"===i)this.curCommandType=N.SMOOTH_QUAD_TO,this.curCommandRelative="t"===i;else{if("a"!==i&&"A"!==i)throw new SyntaxError('Unexpected character "'+i+'" at index '+s+".");this.curCommandType=N.ARC,this.curCommandRelative="a"===i}else r.push({type:N.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=i,this.curNumberHasDecimal="."===i}else this.curNumber+=i,this.curNumberHasDecimal=!0;else this.curNumber+=i;else this.curNumber+=i,this.curNumberHasExp=!0;else this.curNumber+=i,this.curNumberHasExpDigits=this.curNumberHasExp}return r},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(r,n){void 0===n&&(n=[]);for(var a=0,s=Object.getPrototypeOf(this).parse.call(this,r);a<s.length;a++){var u=e(s[a]);Array.isArray(u)?n.push.apply(n,u):n.push(u)}return n}}})},t}(Tt),N=function(l){function t(e){var r=l.call(this)||this;return r.commands="string"==typeof e?t.parse(e):e,r}return X(t,l),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=Z.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var r=[],n=0,a=this.commands;n<a.length;n++){var s=e(a[n]);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return this.commands=r,this},t.encode=function(e){return function(l){var t="";Array.isArray(l)||(l=[l]);for(var e=0;e<l.length;e++){var r=l[e];if(r.type===N.CLOSE_PATH)t+="z";else if(r.type===N.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===N.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===N.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===N.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===N.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===N.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===N.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===N.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==N.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+e+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}(e)},t.parse=function(e){var r=new ct,n=[];return r.parse(e,n),r.finish(n),n},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(Tt),qt=((ot={})[N.MOVE_TO]=2,ot[N.LINE_TO]=2,ot[N.HORIZ_LINE_TO]=1,ot[N.VERT_LINE_TO]=1,ot[N.CLOSE_PATH]=0,ot[N.QUAD_TO]=4,ot[N.SMOOTH_QUAD_TO]=2,ot[N.CURVE_TO]=6,ot[N.SMOOTH_CURVE_TO]=4,ot[N.ARC]=7,ot);function Xt(l){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(l)}o(94119);var me=[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],xe=[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 Ge(l,t,e,r,n,a){if(!(isNaN(a)||a<1)){a|=0;var s=function(l,t,e,r,n){if("string"==typeof l&&(l=document.getElementById(l)),!l||"object"!==Xt(l)||!("getContext"in l))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var a=l.getContext("2d");try{return a.getImageData(t,e,r,n)}catch(s){throw new Error("unable to access image data: "+s)}}(l,t,e,r,n);s=function(l,t,e,r,n,a){for(var C,s=l.data,i=2*a+1,u=r-1,h=n-1,f=a+1,y=f*(f+1)/2,x=new ue,d=x,R=1;R<i;R++)d=d.next=new ue,R===f&&(C=d);d.next=x;for(var M=null,V=null,K=0,U=0,B=me[a],et=xe[a],it=0;it<n;it++){d=x;for(var $=s[U],ut=s[U+1],ht=s[U+2],gt=s[U+3],yt=0;yt<f;yt++)d.r=$,d.g=ut,d.b=ht,d.a=gt,d=d.next;for(var Et=0,Vt=0,Lt=0,At=0,Nt=f*$,wt=f*ut,Bt=f*ht,mt=f*gt,ft=y*$,Dt=y*ut,Ft=y*ht,zt=y*gt,jt=1;jt<f;jt++){var Ht=U+((u<jt?u:jt)<<2),Zt=s[Ht],ee=s[Ht+1],Me=s[Ht+2],Ie=s[Ht+3],ce=f-jt;ft+=(d.r=Zt)*ce,Dt+=(d.g=ee)*ce,Ft+=(d.b=Me)*ce,zt+=(d.a=Ie)*ce,Et+=Zt,Vt+=ee,Lt+=Me,At+=Ie,d=d.next}M=x,V=C;for(var ge=0;ge<r;ge++){var de=zt*B>>>et;if(s[U+3]=de,0!==de){var pe=255/de;s[U]=(ft*B>>>et)*pe,s[U+1]=(Dt*B>>>et)*pe,s[U+2]=(Ft*B>>>et)*pe}else s[U]=s[U+1]=s[U+2]=0;ft-=Nt,Dt-=wt,Ft-=Bt,zt-=mt,Nt-=M.r,wt-=M.g,Bt-=M.b,mt-=M.a;var re=ge+a+1;ft+=Et+=M.r=s[re=K+(re<u?re:u)<<2],Dt+=Vt+=M.g=s[re+1],Ft+=Lt+=M.b=s[re+2],zt+=At+=M.a=s[re+3],M=M.next;var Ve=V.r,Le=V.g,Oe=V.b,He=V.a;Nt+=Ve,wt+=Le,Bt+=Oe,mt+=He,Et-=Ve,Vt-=Le,Lt-=Oe,At-=He,V=V.next,U+=4}K+=r}for(var ne=0;ne<r;ne++){var Ae=s[U=ne<<2],Ce=s[U+1],Pe=s[U+2],Gt=s[U+3],Er=f*Ae,Tr=f*Ce,Sr=f*Pe,Or=f*Gt,er=y*Ae,rr=y*Ce,nr=y*Pe,ar=y*Gt;d=x;for(var On=0;On<f;On++)d.r=Ae,d.g=Ce,d.b=Pe,d.a=Gt,d=d.next;for(var An=r,Ar=0,Cr=0,Pr=0,wr=0,ir=1;ir<=a;ir++){var sr=f-ir;er+=(d.r=Ae=s[U=An+ne<<2])*sr,rr+=(d.g=Ce=s[U+1])*sr,nr+=(d.b=Pe=s[U+2])*sr,ar+=(d.a=Gt=s[U+3])*sr,wr+=Ae,Ar+=Ce,Cr+=Pe,Pr+=Gt,d=d.next,ir<h&&(An+=r)}U=ne,M=x,V=C;for(var Rr=0;Rr<n;Rr++){var Yt=U<<2;s[Yt+3]=Gt=ar*B>>>et,Gt>0?(s[Yt]=(er*B>>>et)*(Gt=255/Gt),s[Yt+1]=(rr*B>>>et)*Gt,s[Yt+2]=(nr*B>>>et)*Gt):s[Yt]=s[Yt+1]=s[Yt+2]=0,er-=Er,rr-=Tr,nr-=Sr,ar-=Or,Er-=M.r,Tr-=M.g,Sr-=M.b,Or-=M.a,Yt=ne+((Yt=Rr+f)<h?Yt:h)*r<<2,er+=wr+=M.r=s[Yt],rr+=Ar+=M.g=s[Yt+1],nr+=Cr+=M.b=s[Yt+2],ar+=Pr+=M.a=s[Yt+3],M=M.next,Er+=Ae=V.r,Tr+=Ce=V.g,Sr+=Pe=V.b,Or+=Gt=V.a,wr-=Ae,Ar-=Ce,Cr-=Pe,Pr-=Gt,V=V.next,U+=r}}return l}(s,0,0,r,n,a),l.getContext("2d").putImageData(s,t,e)}}var ue=function l(){(function(l,t){if(!(l instanceof t))throw new TypeError("Cannot call a class as a function")})(this,l),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null},we=Object.freeze({__proto__:null,offscreen:function(){var{DOMParser:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:l,createCanvas:(e,r)=>new OffscreenCanvas(e,r),createImage:e=>(0,v.Z)(function*(){var r=yield fetch(e),n=yield r.blob();return yield createImageBitmap(n)})()};return("undefined"!=typeof DOMParser||void 0===l)&&Reflect.deleteProperty(t,"DOMParser"),t},node:function(l){var{DOMParser:t,canvas:e,fetch:r}=l;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:e.createCanvas,createImage:e.loadImage}}});function _t(l){return l.replace(/(?!\u3000)\s+/gm," ")}function Re(l){return l.replace(/^[\n \t]+/,"")}function Fe(l){return l.replace(/[\n \t]+$/,"")}function Mt(l){return((l||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var lr=/^[A-Z-]+$/;function Ue(l){return lr.test(l)?l.toLowerCase():l}function be(l){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(l)||[];return t[2]||t[3]||t[4]}function je(l){if(!l.startsWith("rgb"))return l;var t=3;return l.replace(/\d+(\.\d+)?/g,(r,n)=>t--&&n?String(Math.round(parseFloat(r))):r)}var hr=/(\[[^\]]+\])/g,$e=/(#[^\s+>~.[:]+)/g,fr=/(\.[^\s+>~.[:]+)/g,le=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,he=/(:[\w-]+\([^)]*\))/gi,ke=/(:[^\s+>~.[:]+)/g,z=/([^\s+>~.[:]+)/g;function tt(l,t){var e=t.exec(l);return e?[l.replace(t," "),e.length]:[l,0]}function nt(l){var t=[0,0,0],e=l.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[e,r]=tt(e,hr),t[1]+=r,[e,r]=tt(e,$e),t[0]+=r,[e,r]=tt(e,fr),t[1]+=r,[e,r]=tt(e,le),t[2]+=r,[e,r]=tt(e,he),t[1]+=r,[e,r]=tt(e,ke),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=tt(e,z),t[2]+=r,t.join("")}var rt=1e-8;function lt(l){return Math.sqrt(Math.pow(l[0],2)+Math.pow(l[1],2))}function Rt(l,t){return(l[0]*t[0]+l[1]*t[1])/(lt(l)*lt(t))}function Ut(l,t){return(l[0]*t[1]<l[1]*t[0]?-1:1)*Math.acos(Rt(l,t))}function Kt(l){return l*l*l}function Jt(l){return 3*l*l*(1-l)}function te(l){return 3*l*(1-l)*(1-l)}function kt(l){return(1-l)*(1-l)*(1-l)}function $t(l){return l*l}function fe(l){return 2*l*(1-l)}function ae(l){return(1-l)*(1-l)}let q=(()=>{class l{constructor(e,r,n){this.document=e,this.name=r,this.value=n,this.isNormalizedColor=!1}static empty(e){return new l(e,"EMPTY","")}split(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:r,name:n}=this;return _t(this.getString()).trim().split(e).map(a=>new l(r,n,a))}hasValue(e){var{value:r}=this;return null!==r&&""!==r&&(e||0!==r)&&void 0!==r}isString(e){var{value:r}=this,n="string"==typeof r;return n&&e?e.test(r):n}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return void 0===e||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return void 0===e?0:parseFloat(e);var{value:r}=this,n=parseFloat(r);return this.isString(/%$/)&&(n/=100),n}getString(e){return void 0===e||this.hasValue()?void 0===this.value?"":String(this.value):String(e)}getColor(e){var r=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,r=je(r),this.value=r),r}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[n,a]="boolean"==typeof e?[void 0,e]:[e],{viewPort:s}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&a:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(n);default:var i=this.getNumber();return r&&i<1?i*s.computeSize(n):i}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),r=/#([^)'"]+)/.exec(e);return r&&(r=r[1]),r||(r=e),this.document.definitions[r]}getFillStyleDefinition(e,r){var n=this.getDefinition();if(!n)return null;if("function"==typeof n.createGradient)return n.createGradient(this.document.ctx,e,r);if("function"==typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var a=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),a.hasValue()&&n.getAttribute("patternTransform",!0).setValue(a.value)}return n.createPattern(this.document.ctx,e,r)}return null}getTextBaseline(){return this.hasValue()?l.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var r=this.getColor(),n=r.length,a=0,s=0;s<n&&(","===r[s]&&a++,3!==a);s++);if(e.hasValue()&&this.isString()&&3!==a){var i=new D(r);i.ok&&(i.alpha=e.getNumber(),r=i.toRGBA())}return new l(this.document,this.name,r)}}return l.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"},l})();class Nr{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,e){this.viewPorts.push({width:t,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Ct{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r=e,n=e]=Mt(t);return new Ct(r,n)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,n=r]=Mt(t);return new Ct(r,n)}static parsePath(t){for(var e=Mt(t),r=e.length,n=[],a=0;a<r;a+=2)n.push(new Ct(e[a],e[a+1]));return n}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:r}=this,a=e*t[1]+r*t[3]+t[5];this.x=e*t[0]+r*t[2]+t[4],this.y=a}}class Mr{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,n=t.ctx.canvas;n.onclick=e,n.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:n}=t.ctx.canvas;n&&(n.cursor=""),e.forEach((a,s)=>{for(var{run:i}=a,u=r[s];u;)i(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:n}=this;r.forEach((a,s)=>{var{x:i,y:u}=a;!n[s]&&e.isPointInPath&&e.isPointInPath(i,u)&&(n[s]=t)})}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:n}=this;r.forEach((a,s)=>{var{x:i,y:u}=a;!n[s]&&e.isPointInBox(i,u)&&(n[s]=t)})}}mapXY(t,e){for(var{window:r,ctx:n}=this.screen,a=new Ct(t,e),s=n.canvas;s;)a.x-=s.offsetLeft,a.y-=s.offsetTop,s=s.offsetParent;return r.scrollX&&(a.x+=r.scrollX),r.scrollY&&(a.y+=r.scrollY),a}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(n){n.onClick&&n.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(n){n.onMouseMove&&n.onMouseMove()}})}}var Ir="undefined"!=typeof window?window:null,Vr="undefined"!=typeof fetch?fetch.bind(void 0):null;let vr=(()=>{class l{constructor(e){var{fetch:r=Vr,window:n=Ir}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Nr,this.mouse=new Mr(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=r}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(r=>r());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:r,ctx:n,aspectRatio:a,width:s,desiredWidth:i,height:u,desiredHeight:h,minX:f=0,minY:y=0,refX:x,refY:d,clip:C=!1,clipX:R=0,clipY:M=0}=e,V=_t(a).replace(/^defer\s/,""),[K,U]=V.split(" "),B=K||"xMidYMid",et=U||"meet",it=s/i,$=u/h,ut=Math.min(it,$),ht=Math.max(it,$),gt=i,yt=h;"meet"===et&&(gt*=ut,yt*=ut),"slice"===et&&(gt*=ht,yt*=ht);var Et=new q(r,"refX",x),Vt=new q(r,"refY",d),Lt=Et.hasValue()&&Vt.hasValue();if(Lt&&n.translate(-ut*Et.getPixels("x"),-ut*Vt.getPixels("y")),C){var At=ut*R,Nt=ut*M;n.beginPath(),n.moveTo(At,Nt),n.lineTo(s,Nt),n.lineTo(s,u),n.lineTo(At,u),n.closePath(),n.clip()}if(!Lt){var wt="meet"===et&&ut===$,Bt="slice"===et&&ht===$,mt="meet"===et&&ut===it,ft="slice"===et&&ht===it;B.startsWith("xMid")&&(wt||Bt)&&n.translate(s/2-gt/2,0),B.endsWith("YMid")&&(mt||ft)&&n.translate(0,u/2-yt/2),B.startsWith("xMax")&&(wt||Bt)&&n.translate(s-gt,0),B.endsWith("YMax")&&(mt||ft)&&n.translate(0,u-yt)}switch(!0){case"none"===B:n.scale(it,$);break;case"meet"===et:n.scale(ut,ut);break;case"slice"===et:n.scale(ht,ht)}n.translate(-f,-y)}start(e){var{enableRedraw:r=!1,ignoreMouse:n=!1,ignoreAnimation:a=!1,ignoreDimensions:s=!1,ignoreClear:i=!1,forceRedraw:u,scaleWidth:h,scaleHeight:f,offsetX:y,offsetY:x}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:d,mouse:C}=this,R=1e3/d;if(this.frameDuration=R,this.readyPromise=new Promise(B=>{this.resolveReady=B}),this.isReady()&&this.render(e,s,i,h,f,y,x),r){var M=Date.now(),V=M,K=0,U=()=>{M=Date.now(),(K=M-V)>=R&&(V=M-K%R,this.shouldUpdate(a,u)&&(this.render(e,s,i,h,f,y,x),C.runEvents())),this.intervalId=w(U)};n||C.start(),this.intervalId=w(U)}}stop(){this.intervalId&&(w.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,r){if(!e){var{frameDuration:n}=this;if(this.animations.reduce((s,i)=>i.update(n)||s,!1))return!0}return!!("function"==typeof r&&r()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,r,n,a,s,i,u){var{CLIENT_WIDTH:h,CLIENT_HEIGHT:f,viewPort:y,ctx:x,isFirstRender:d}=this,C=x.canvas;y.clear(),C.width&&C.height?y.setCurrent(C.width,C.height):y.setCurrent(h,f);var R=e.getStyle("width"),M=e.getStyle("height");!r&&(d||"number"!=typeof a&&"number"!=typeof s)&&(R.hasValue()&&(C.width=R.getPixels("x"),C.style&&(C.style.width="".concat(C.width,"px"))),M.hasValue()&&(C.height=M.getPixels("y"),C.style&&(C.style.height="".concat(C.height,"px"))));var V=C.clientWidth||C.width,K=C.clientHeight||C.height;if(r&&R.hasValue()&&M.hasValue()&&(V=R.getPixels("x"),K=M.getPixels("y")),y.setCurrent(V,K),"number"==typeof i&&e.getAttribute("x",!0).setValue(i),"number"==typeof u&&e.getAttribute("y",!0).setValue(u),"number"==typeof a||"number"==typeof s){var U=Mt(e.getAttribute("viewBox").getString()),B=0,et=0;if("number"==typeof a){var it=e.getStyle("width");it.hasValue()?B=it.getPixels("x")/a:isNaN(U[2])||(B=U[2]/a)}if("number"==typeof s){var $=e.getStyle("height");$.hasValue()?et=$.getPixels("y")/s:isNaN(U[3])||(et=U[3]/s)}B||(B=et),et||(et=B),e.getAttribute("width",!0).setValue(a),e.getAttribute("height",!0).setValue(s);var ut=e.getStyle("transform",!0,!0);ut.setValue("".concat(ut.getString()," scale(").concat(1/B,", ").concat(1/et,")"))}n||x.clearRect(0,0,V,K),e.render(x),d&&(this.isFirstRender=!1)}}return l.defaultWindow=Ir,l.defaultFetch=Vr,l})();var{defaultFetch:Cn}=vr,Pn="undefined"!=typeof DOMParser?DOMParser:null;class Qe{constructor(){var{fetch:t=Cn,DOMParser:e=Pn}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return(0,v.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,v.Z)(function*(){var r=yield e.fetch(t),n=yield r.text();return e.parseFromString(n)})()}}class Lr{constructor(t,e){this.type="translate",this.point=null,this.point=Ct.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 Dr{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=Mt(e);this.angle=new q(t,"angle",n[0]),this.originX=r[0],this.originY=r[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(t){var{cx:e,cy:r,originX:n,originY:a,angle:s}=this,i=e+n.getPixels("x"),u=r+a.getPixels("y");t.translate(i,u),t.rotate(s.getRadians()),t.translate(-i,-u)}unapply(t){var{cx:e,cy:r,originX:n,originY:a,angle:s}=this,i=e+n.getPixels("x"),u=r+a.getPixels("y");t.translate(i,u),t.rotate(-1*s.getRadians()),t.translate(-i,-u)}applyToPoint(t){var{cx:e,cy:r,angle:n}=this,a=n.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(a),Math.sin(a),-Math.sin(a),Math.cos(a),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class Br{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=Ct.parseScale(e);(0===n.x||0===n.y)&&(n.x=rt,n.y=rt),this.scale=n,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:n,originY:a}=this,s=n.getPixels("x"),i=a.getPixels("y");t.translate(s,i),t.scale(e,r||e),t.translate(-s,-i)}unapply(t){var{scale:{x:e,y:r},originX:n,originY:a}=this,s=n.getPixels("x"),i=a.getPixels("y");t.translate(s,i),t.scale(1/e,1/r||e),t.translate(-s,-i)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class cr{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Mt(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:n}=this,a=e.getPixels("x"),s=r.getPixels("y");t.translate(a,s),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.translate(-a,-s)}unapply(t){var{originX:e,originY:r,matrix:n}=this,a=n[0],s=n[2],i=n[4],u=n[1],h=n[3],f=n[5],C=1/(a*(1*h-0*f)-s*(1*u-0*f)+i*(0*u-0*h)),R=e.getPixels("x"),M=r.getPixels("y");t.translate(R,M),t.transform(C*(1*h-0*f),C*(0*f-1*u),C*(0*i-1*s),C*(1*a-0*i),C*(s*f-i*h),C*(i*u-a*f)),t.translate(-R,-M)}applyToPoint(t){t.applyTransform(this.matrix)}}class gr extends cr{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new q(t,"angle",e)}}class Fr extends gr{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class Ur extends gr{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}let Ze=(()=>{class l{constructor(e,r,n){this.document=e,this.transforms=[];var a=function(l){return _t(l).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r);a.forEach(s=>{if("none"!==s){var[i,u]=function(l){var[t,e]=l.split("(");return[t.trim(),e.trim().replace(")","")]}(s),h=l.transformTypes[i];void 0!==h&&this.transforms.push(new h(this.document,u,n))}})}static fromElement(e,r){var n=r.getStyle("transform",!1,!0),[a,s=a]=r.getStyle("transform-origin",!1,!0).split(),i=[a,s];return n.hasValue()?new l(e,n.getString(),i):null}apply(e){for(var{transforms:r}=this,n=r.length,a=0;a<n;a++)r[a].apply(e)}unapply(e){for(var{transforms:r}=this,a=r.length-1;a>=0;a--)r[a].unapply(e)}applyToPoint(e){for(var{transforms:r}=this,n=r.length,a=0;a<n;a++)r[a].applyToPoint(e)}}return l.transformTypes={translate:Lr,rotate:Dr,scale:Br,matrix:cr,skewX:Fr,skewY:Ur},l})(),Pt=(()=>{class l{constructor(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=r,this.captureTextNodes=n,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){Array.from(r.attributes).forEach(u=>{var h=Ue(u.nodeName);this.attributes[h]=new q(e,h,u.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(u=>u.trim()).forEach(u=>{if(u){var[h,f]=u.split(":").map(y=>y.trim());this.styles[h]=new q(e,h,f)}});var{definitions:s}=e,i=this.getAttribute("id");i.hasValue()&&(s[i.getString()]||(s[i.getString()]=this)),Array.from(r.childNodes).forEach(u=>{if(1===u.nodeType)this.addChild(u);else if(n&&(3===u.nodeType||4===u.nodeType)){var h=e.createTextNode(u);h.getText().length>0&&this.addChild(h)}})}}getAttribute(e){var n=this.attributes[e];if(!n&&arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var a=new q(this.document,e,"");return this.attributes[e]=a,a}return n||q.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return q.empty(this.document)}getStyle(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=this.styles[e];if(a)return a;var s=this.getAttribute(e);if(null!=s&&s.hasValue())return this.styles[e]=s,s;if(!n){var{parent:i}=this;if(i){var u=i.getStyle(e);if(null!=u&&u.hasValue())return u}}if(r){var h=new q(this.document,e,"");return this.styles[e]=h,h}return a||q.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var r=this.getStyle("mask").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var r=Ze.fromElement(this.document,this);r&&r.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var a=n.getDefinition();a&&a.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(r=>{r.render(e)})}addChild(e){var r=e instanceof l?e:this.document.createElement(e);r.parent=this,l.ignoreChildTypes.includes(r.type)||this.children.push(r)}matchesSelector(e){var r,{node:n}=this;if("function"==typeof n.matches)return n.matches(e);var a=null===(r=n.getAttribute)||void 0===r?void 0:r.call(n,"class");return!(!a||""===a)&&a.split(" ").some(s=>".".concat(s)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:r}=this.document;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var a=e[n],s=r[n];if(a)for(var i in a){var u=this.stylesSpecificity[i];void 0===u&&(u="000"),s>=u&&(this.styles[i]=a[i],this.stylesSpecificity[i]=s)}}}removeStyles(e,r){return r.reduce((a,s)=>{var i=e.getStyle(s);if(!i.hasValue())return a;var u=i.getString();return i.setValue(""),[...a,[s,u]]},[])}restoreStyles(e,r){r.forEach(n=>{var[a,s]=n;e.getStyle(a,!0).setValue(s)})}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}}return l.ignoreChildTypes=["title"],l})();class jr extends Pt{constructor(t,e,r){super(t,e,r)}}function Nn(l){var t=l.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function Mn(l){return"undefined"==typeof process?l:l.trim().split(",").map(Nn).join(",")}function In(l){if(!l)return"";var t=l.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function Vn(l){if(!l)return"";var t=l.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}let Ee=(()=>{class l{constructor(e,r,n,a,s,i){var u=i?"string"==typeof i?l.parse(i):i:{};this.fontFamily=s||u.fontFamily,this.fontSize=a||u.fontSize,this.fontStyle=e||u.fontStyle,this.fontWeight=n||u.fontWeight,this.fontVariant=r||u.fontVariant}static parse(){var r=arguments.length>1?arguments[1]:void 0,n="",a="",s="",i="",u="",h=_t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),f={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return h.forEach(y=>{switch(!0){case!f.fontStyle&&l.styles.includes(y):"inherit"!==y&&(n=y),f.fontStyle=!0;break;case!f.fontVariant&&l.variants.includes(y):"inherit"!==y&&(a=y),f.fontStyle=!0,f.fontVariant=!0;break;case!f.fontWeight&&l.weights.includes(y):"inherit"!==y&&(s=y),f.fontStyle=!0,f.fontVariant=!0,f.fontWeight=!0;break;case!f.fontSize:"inherit"!==y&&([i]=y.split("/")),f.fontStyle=!0,f.fontVariant=!0,f.fontWeight=!0,f.fontSize=!0;break;default:"inherit"!==y&&(u+=y)}}),new l(n,a,s,i,u,r)}toString(){return[In(this.fontStyle),this.fontVariant,Vn(this.fontWeight),this.fontSize,Mn(this.fontFamily)].join(" ").trim()}}return l.styles="normal|italic|oblique|inherit",l.variants="normal|small-caps|inherit",l.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",l})();class Qt{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=n,this.addPoint(t,e),this.addPoint(r,n)}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){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((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:n,y2:a}=t;this.addPoint(e,r),this.addPoint(n,a)}}sumCubic(t,e,r,n,a){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*a}bezierCurveAdd(t,e,r,n,a){var s=6*e-12*r+6*n,i=-3*e+9*r-9*n+3*a,u=3*r-3*e;if(0!==i){var f=Math.pow(s,2)-4*u*i;if(!(f<0)){var y=(-s+Math.sqrt(f))/(2*i);0<y&&y<1&&(t?this.addX(this.sumCubic(y,e,r,n,a)):this.addY(this.sumCubic(y,e,r,n,a)));var x=(-s-Math.sqrt(f))/(2*i);0<x&&x<1&&(t?this.addX(this.sumCubic(x,e,r,n,a)):this.addY(this.sumCubic(x,e,r,n,a)))}}else{if(0===s)return;var h=-u/s;0<h&&h<1&&(t?this.addX(this.sumCubic(h,e,r,n,a)):this.addY(this.sumCubic(h,e,r,n,a)))}}addBezierCurve(t,e,r,n,a,s,i,u){this.addPoint(t,e),this.addPoint(i,u),this.bezierCurveAdd(!0,t,r,a,i),this.bezierCurveAdd(!1,e,n,s,u)}addQuadraticCurve(t,e,r,n,a,s){var i=t+2/3*(r-t),u=e+2/3*(n-e);this.addBezierCurve(t,e,i,i+1/3*(a-t),u,u+1/3*(s-e),a,s)}isPointInBox(t,e){var{x1:r,y1:n,x2:a,y2:s}=this;return r<=t&&t<=a&&n<=e&&e<=s}}class at extends N{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 Ct(0,0),this.control=new Ct(0,0),this.current=new Ct(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:e}=this;return t>=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var r=new Ct(this.command[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x"],this.command[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y"]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==N.CURVE_TO&&t!==N.SMOOTH_CURVE_TO&&t!==N.QUAD_TO&&t!==N.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:n,y:a}}=this;return new Ct(2*e-n,2*r-a)}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:n,angles:a}=this;r&&a.length>0&&!a[a.length-1]&&(a[a.length-1]=n[n.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 n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}return t}}class ve extends Pt{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),a=this.getStyle("stroke"),s=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var i=r.getFillStyleDefinition(this,n);i&&(t.fillStyle=i)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();"inherit"!==u&&(t.fillStyle="none"===u?"rgba(0,0,0,0)":u)}if(n.hasValue()){var h=new q(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=h}if(a.isUrlDefinition()){var f=a.getFillStyleDefinition(this,s);f&&(t.strokeStyle=f)}else if(a.hasValue()){"currentColor"===a.getString()&&a.setValue(this.getStyle("color").getColor());var y=a.getString();"inherit"!==y&&(t.strokeStyle="none"===y?"rgba(0,0,0,0)":y)}if(s.hasValue()){var x=new q(this.document,"stroke",t.strokeStyle).addOpacity(s).getString();t.strokeStyle=x}var d=this.getStyle("stroke-width");if(d.hasValue()){var C=d.getPixels();t.lineWidth=C||rt}var R=this.getStyle("stroke-linecap"),M=this.getStyle("stroke-linejoin"),V=this.getStyle("stroke-miterlimit"),K=this.getStyle("stroke-dasharray"),U=this.getStyle("stroke-dashoffset");if(R.hasValue()&&(t.lineCap=R.getString()),M.hasValue()&&(t.lineJoin=M.getString()),V.hasValue()&&(t.miterLimit=V.getNumber()),K.hasValue()&&"none"!==K.getString()){var B=Mt(K.getString());void 0!==t.setLineDash?t.setLineDash(B):void 0!==t.webkitLineDash?t.webkitLineDash=B:void 0!==t.mozDash&&(1!==B.length||0!==B[0])&&(t.mozDash=B);var et=U.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=et:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=et:void 0!==t.mozDashOffset&&(t.mozDashOffset=et)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var it=this.getStyle("font"),$=this.getStyle("font-style"),ut=this.getStyle("font-variant"),ht=this.getStyle("font-weight"),gt=this.getStyle("font-size"),yt=this.getStyle("font-family"),Et=new Ee($.getString(),ut.getString(),ht.getString(),gt.hasValue()?"".concat(gt.getPixels(!0),"px"):"",yt.getString(),Ee.parse(it.getString(),t.font));$.setValue(Et.fontStyle),ut.setValue(Et.fontVariant),ht.setValue(Et.fontWeight),gt.setValue(Et.fontSize),yt.setValue(Et.fontFamily),t.font=Et.toString(),gt.isPixels()&&(this.document.emSize=gt.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class pt extends ve{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new at(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new Qt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case at.MOVE_TO:this.pathM(t,r);break;case at.LINE_TO:this.pathL(t,r);break;case at.HORIZ_LINE_TO:this.pathH(t,r);break;case at.VERT_LINE_TO:this.pathV(t,r);break;case at.CURVE_TO:this.pathC(t,r);break;case at.SMOOTH_CURVE_TO:this.pathS(t,r);break;case at.QUAD_TO:this.pathQ(t,r);break;case at.SMOOTH_QUAD_TO:this.pathT(t,r);break;case at.ARC:this.pathA(t,r);break;case at.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map((a,s)=>[a,r[s]])}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var n=r.length-1,a=this.getStyle("marker-start"),s=this.getStyle("marker-mid"),i=this.getStyle("marker-end");if(a.isUrlDefinition()){var u=a.getDefinition(),[h,f]=r[0];u.render(t,h,f)}if(s.isUrlDefinition())for(var y=s.getDefinition(),x=1;x<n;x++){var[d,C]=r[x];y.render(t,d,C)}if(i.isUrlDefinition()){var R=i.getDefinition(),[M,V]=r[n];R.render(t,M,V)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:r}=this,{point:n}=pt.pathM(r),{x:a,y:s}=n;r.addMarker(n),e.addPoint(a,s),t&&t.moveTo(a,s)}static pathL(t){var{current:e}=t;return{current:e,point:t.getAsCurrentPoint()}}pathL(t,e){var{pathParser:r}=this,{current:n,point:a}=pt.pathL(r),{x:s,y:i}=a;r.addMarker(a,n),e.addPoint(s,i),t&&t.lineTo(s,i)}static pathH(t){var{current:e,command:r}=t,n=new Ct((r.relative?e.x:0)+r.x,e.y);return t.current=n,{current:e,point:n}}pathH(t,e){var{pathParser:r}=this,{current:n,point:a}=pt.pathH(r),{x:s,y:i}=a;r.addMarker(a,n),e.addPoint(s,i),t&&t.lineTo(s,i)}static pathV(t){var{current:e,command:r}=t,n=new Ct(e.x,(r.relative?e.y:0)+r.y);return t.current=n,{current:e,point:n}}pathV(t,e){var{pathParser:r}=this,{current:n,point:a}=pt.pathV(r),{x:s,y:i}=a;r.addMarker(a,n),e.addPoint(s,i),t&&t.lineTo(s,i)}static pathC(t){var{current:e}=t;return{current:e,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathC(t,e){var{pathParser:r}=this,{current:n,point:a,controlPoint:s,currentPoint:i}=pt.pathC(r);r.addMarker(i,s,a),e.addBezierCurve(n.x,n.y,a.x,a.y,s.x,s.y,i.x,i.y),t&&t.bezierCurveTo(a.x,a.y,s.x,s.y,i.x,i.y)}static pathS(t){var{current:e}=t;return{current:e,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathS(t,e){var{pathParser:r}=this,{current:n,point:a,controlPoint:s,currentPoint:i}=pt.pathS(r);r.addMarker(i,s,a),e.addBezierCurve(n.x,n.y,a.x,a.y,s.x,s.y,i.x,i.y),t&&t.bezierCurveTo(a.x,a.y,s.x,s.y,i.x,i.y)}static pathQ(t){var{current:e}=t;return{current:e,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}pathQ(t,e){var{pathParser:r}=this,{current:n,controlPoint:a,currentPoint:s}=pt.pathQ(r);r.addMarker(s,a,a),e.addQuadraticCurve(n.x,n.y,a.x,a.y,s.x,s.y),t&&t.quadraticCurveTo(a.x,a.y,s.x,s.y)}static pathT(t){var{current:e}=t,r=t.getReflectedControlPoint();return t.control=r,{current:e,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}pathT(t,e){var{pathParser:r}=this,{current:n,controlPoint:a,currentPoint:s}=pt.pathT(r);r.addMarker(s,a,a),e.addQuadraticCurve(n.x,n.y,a.x,a.y,s.x,s.y),t&&t.quadraticCurveTo(a.x,a.y,s.x,s.y)}static pathA(t){var{current:e,command:r}=t,{rX:n,rY:a,xRot:s,lArcFlag:i,sweepFlag:u}=r,h=s*(Math.PI/180),f=t.getAsCurrentPoint(),y=new Ct(Math.cos(h)*(e.x-f.x)/2+Math.sin(h)*(e.y-f.y)/2,-Math.sin(h)*(e.x-f.x)/2+Math.cos(h)*(e.y-f.y)/2),x=Math.pow(y.x,2)/Math.pow(n,2)+Math.pow(y.y,2)/Math.pow(a,2);x>1&&(n*=Math.sqrt(x),a*=Math.sqrt(x));var d=(i===u?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(a,2)-Math.pow(n,2)*Math.pow(y.y,2)-Math.pow(a,2)*Math.pow(y.x,2))/(Math.pow(n,2)*Math.pow(y.y,2)+Math.pow(a,2)*Math.pow(y.x,2)));isNaN(d)&&(d=0);var C=new Ct(d*n*y.y/a,d*-a*y.x/n),R=new Ct((e.x+f.x)/2+Math.cos(h)*C.x-Math.sin(h)*C.y,(e.y+f.y)/2+Math.sin(h)*C.x+Math.cos(h)*C.y),M=Ut([1,0],[(y.x-C.x)/n,(y.y-C.y)/a]),V=[(y.x-C.x)/n,(y.y-C.y)/a],K=[(-y.x-C.x)/n,(-y.y-C.y)/a],U=Ut(V,K);return Rt(V,K)<=-1&&(U=Math.PI),Rt(V,K)>=1&&(U=0),{currentPoint:f,rX:n,rY:a,sweepFlag:u,xAxisRotation:h,centp:R,a1:M,ad:U}}pathA(t,e){var{pathParser:r}=this,{currentPoint:n,rX:a,rY:s,sweepFlag:i,xAxisRotation:u,centp:h,a1:f,ad:y}=pt.pathA(r),x=1-i?1:-1,d=f+x*(y/2),C=new Ct(h.x+a*Math.cos(d),h.y+s*Math.sin(d));if(r.addMarkerAngle(C,d-x*Math.PI/2),r.addMarkerAngle(n,d-x*Math.PI),e.addPoint(n.x,n.y),t&&!isNaN(f)&&!isNaN(y)){var R=a>s?a:s,M=a>s?1:a/s,V=a>s?s/a:1;t.translate(h.x,h.y),t.rotate(u),t.scale(M,V),t.arc(0,0,R,f,f+y,Boolean(1-i)),t.scale(1/M,1/V),t.rotate(-u),t.translate(-h.x,-h.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){pt.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class dr extends pt{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class ie extends ve{constructor(t,e,r){super(t,e,new.target===ie||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){super.setContext(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach((r,n)=>{var a=this.getChildBoundingBox(t,this,this,n);e?e.addBoundingBox(a):e=a}),e}getFontSize(){var{document:t,parent:e}=this,r=Ee.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new Qt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var n=e[r],a=null;if(t.isArabic){var s=e.length,i=e[r-1],u=e[r+1],h="isolated";if((0===r||" "===i)&&r<s-1&&" "!==u&&(h="terminal"),r>0&&" "!==i&&r<s-1&&" "!==u&&(h="medial"),r>0&&" "!==i&&(r===s-1||" "===u)&&(h="initial"),void 0!==t.glyphs[n]){var f=t.glyphs[n];a=f instanceof dr?f:f[h]}}else a=t.glyphs[n];return a||(a=t.missingGlyph),a}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),n=r.indexOf(e),a=r.length-1,s=_t(e.textContent||"");return 0===n&&(s=Re(s)),n===a&&(s=Fe(s)),s}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((r,n)=>{this.renderChild(t,this,this,n)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,n=this.getText(),a=r.getStyle("font-family").getDefinition();if(a)for(var{unitsPerEm:s}=a.fontFace,i=Ee.parse(e.ctx.font),u=r.getStyle("font-size").getNumber(i.fontSize),h=r.getStyle("font-style").getString(i.fontStyle),f=u/s,y=a.isRTL?n.split("").reverse().join(""):n,x=Mt(r.getAttribute("dx").getString()),d=y.length,C=0;C<d;C++){var R=this.getGlyph(a,y,C);t.translate(this.x,this.y),t.scale(f,-f);var M=t.lineWidth;t.lineWidth=t.lineWidth*s/u,"italic"===h&&t.transform(1,0,.4,1,0,0),R.render(t),"italic"===h&&t.transform(1,0,-.4,1,0,0),t.lineWidth=M,t.scale(1/f,-1/f),t.translate(-this.x,-this.y),this.x+=u*(R.horizAdvX||a.horizAdvX)/s,void 0!==x[C]&&!isNaN(x[C])&&(this.x+=x[C])}else{var{x:V,y:K}=this;t.fillStyle&&t.fillText(n,V,K),t.strokeStyle&&t.strokeText(n,V,K)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var n,t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start");n="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var a=this.textChunkStart;a<this.leafTexts.length;a++)this.leafTexts[a].x+=n;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,n){var a=r.children[n];a.children.length>0?a.children.forEach((s,i)=>{e.adjustChildCoordinatesRecursiveCore(t,e,a,i)}):this.adjustChildCoordinates(t,e,r,n)}adjustChildCoordinates(t,e,r,n){var a=r.children[n];if("function"!=typeof a.measureText)return a;t.save(),a.setContext(t,!0);var s=a.getAttribute("x"),i=a.getAttribute("y"),u=a.getAttribute("dx"),h=a.getAttribute("dy"),f=a.getStyle("font-family").getDefinition(),y=Boolean(f)&&f.isRTL;0===n&&(s.hasValue()||s.setValue(a.getInheritedAttribute("x")),i.hasValue()||i.setValue(a.getInheritedAttribute("y")),u.hasValue()||u.setValue(a.getInheritedAttribute("dx")),h.hasValue()||h.setValue(a.getInheritedAttribute("dy")));var x=a.measureText(t);return y&&(e.x-=x),s.hasValue()?(e.applyAnchoring(),a.x=s.getPixels("x"),u.hasValue()&&(a.x+=u.getPixels("x"))):(u.hasValue()&&(e.x+=u.getPixels("x")),a.x=e.x),e.x=a.x,y||(e.x+=x),i.hasValue()?(a.y=i.getPixels("y"),h.hasValue()&&(a.y+=h.getPixels("y"))):(h.hasValue()&&(e.y+=h.getPixels("y")),a.y=e.y),e.y=a.y,e.leafTexts.push(a),e.minX=Math.min(e.minX,a.x,a.x+x),e.maxX=Math.max(e.maxX,a.x,a.x+x),a.clearContext(t),t.restore(),a}getChildBoundingBox(t,e,r,n){var a=r.children[n];if("function"!=typeof a.getBoundingBox)return null;var s=a.getBoundingBox(t);return s?(a.children.forEach((i,u)=>{var h=e.getChildBoundingBox(t,e,a,u);s.addBoundingBox(h)}),s):null}renderChild(t,e,r,n){var a=r.children[n];a.render(t),a.children.forEach((s,i)=>{e.renderChild(t,e,a,i)})}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),n=this.measureTargetText(t,r);return this.measureCache=n,n}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,n=r.getStyle("font-family").getDefinition();if(n){for(var a=this.getFontSize(),s=n.isRTL?e.split("").reverse().join(""):e,i=Mt(r.getAttribute("dx").getString()),u=s.length,h=0,f=0;f<u;f++)h+=(this.getGlyph(n,s,f).horizAdvX||n.horizAdvX)*a/n.fontFace.unitsPerEm,void 0!==i[f]&&!isNaN(i[f])&&(h+=i[f]);return h}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var{width:x}=t.measureText(e);return this.clearContext(t),t.restore(),x}getInheritedAttribute(t){for(var e=this;e instanceof ie&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}}class ze extends ie{constructor(t,e,r){super(t,e,new.target===ze||r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Ln extends ze{constructor(){super(...arguments),this.type="textNode"}}class Ne extends ve{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:n,window:a}=r,s=t.canvas;if(n.setDefaults(t),s.style&&void 0!==t.font&&a&&void 0!==a.getComputedStyle){t.font=a.getComputedStyle(s).getPropertyValue("font");var i=new q(r,"fontSize",Ee.parse(t.font).fontSize);i.hasValue()&&(r.rootEmSize=i.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:h}=n.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 f=this.getAttribute("refX"),y=this.getAttribute("refY"),x=this.getAttribute("viewBox"),d=x.hasValue()?Mt(x.getString()):null,C=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),R=0,M=0,V=0,K=0;d&&(R=d[0],M=d[1]),this.root||(u=this.getStyle("width").getPixels("x"),h=this.getStyle("height").getPixels("y"),"marker"===this.type&&(V=R,K=M,R=0,M=0)),n.viewPort.setCurrent(u,h),this.node&&(!this.parent||"foreignObject"===(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName))&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),d&&(u=d[2],h=d[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:u,height:n.viewPort.height,desiredHeight:h,minX:R,minY:M,refX:f.getValue(),refY:y.getValue(),clip:C,clipX:V,clipY:K}),d&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(u,h))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),a=this.getAttribute("height",!0),s=this.getAttribute("viewBox"),i=this.getAttribute("style"),u=n.getNumber(0),h=a.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var f=this.getAttribute("preserveAspectRatio");f.hasValue()&&f.setValue(f.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(t),a.setValue(e),s.hasValue()||s.setValue("0 0 ".concat(u||t," ").concat(h||e)),i.hasValue()){var y=this.getStyle("width"),x=this.getStyle("height");y.hasValue()&&y.setValue("".concat(t,"px")),x.hasValue()&&x.setValue("".concat(e,"px"))}}}class pr extends pt{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),a=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),i=this.getAttribute("ry"),u=s.getPixels("x"),h=i.getPixels("y");if(s.hasValue()&&!i.hasValue()&&(h=u),i.hasValue()&&!s.hasValue()&&(u=h),u=Math.min(u,n/2),h=Math.min(h,a/2),t){var f=(Math.sqrt(2)-1)/3*4;t.beginPath(),a>0&&n>0&&(t.moveTo(e+u,r),t.lineTo(e+n-u,r),t.bezierCurveTo(e+n-u+f*u,r,e+n,r+h-f*h,e+n,r+h),t.lineTo(e+n,r+a-h),t.bezierCurveTo(e+n,r+a-h+f*h,e+n-u+f*u,r+a,e+n-u,r+a),t.lineTo(e+u,r+a),t.bezierCurveTo(e+u-f*u,r+a,e,r+a-h+f*h,e,r+a-h),t.lineTo(e,r+h),t.bezierCurveTo(e,r+h-f*h,e+u-f*u,r,e+u,r),t.closePath())}return new Qt(e,r,e+n,r+a)}getMarkers(){return null}}class kr extends pt{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&n>0&&(t.beginPath(),t.arc(e,r,n,0,2*Math.PI,!1),t.closePath()),new Qt(e-n,r-n,e+n,r+n)}getMarkers(){return null}}class zr extends pt{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),a=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return t&&r>0&&n>0&&(t.beginPath(),t.moveTo(a+r,s),t.bezierCurveTo(a+r,s+e*n,a+e*r,s+n,a,s+n),t.bezierCurveTo(a-e*r,s+n,a-r,s+e*n,a-r,s),t.bezierCurveTo(a-r,s-e*n,a-e*r,s-n,a,s-n),t.bezierCurveTo(a+e*r,s-n,a+r,s-e*n,a+r,s),t.closePath()),new Qt(a-r,s-n,a+r,s+n)}getMarkers(){return null}}class Hr extends pt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Ct(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Ct(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:n,y:a}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(n,a)),new Qt(e,r,n,a)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class yr extends pt{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=Ct.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:n}]=e,a=new Qt(r,n);return t&&(t.beginPath(),t.moveTo(r,n)),e.forEach(s=>{var{x:i,y:u}=s;a.addPoint(i,u),t&&t.lineTo(i,u)}),a}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((n,a)=>{a!==e&&r.push([n,n.angleTo(t[a+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class Gr extends yr{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:n}]=this.points;return t&&(t.lineTo(r,n),t.closePath()),e}}class Yr extends Pt{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var n=this.getStyle("width").getPixels("x",!0),a=this.getStyle("height").getPixels("y",!0),s=new Ne(this.document,null);s.attributes.viewBox=new q(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new q(this.document,"width","".concat(n,"px")),s.attributes.height=new q(this.document,"height","".concat(a,"px")),s.attributes.transform=new q(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children;var i=this.document.createCanvas(n,a),u=i.getContext("2d"),h=this.getAttribute("x"),f=this.getAttribute("y");h.hasValue()&&f.hasValue()&&u.translate(h.getPixels("x",!0),f.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var y=-1;y<=1;y++)for(var x=-1;x<=1;x++)u.save(),s.attributes.x=new q(this.document,"x",y*i.width),s.attributes.y=new q(this.document,"y",x*i.height),s.render(u),u.restore();return t.createPattern(i,"repeat")}}class Xr extends Pt{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:n,y:a}=e,s=this.getAttribute("orient").getString("auto"),i=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(n,a),"auto"===s&&t.rotate(r),"strokeWidth"===i&&t.scale(t.lineWidth,t.lineWidth),t.save();var u=new Ne(this.document,null);u.type=this.type,u.attributes.viewBox=new q(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new q(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new q(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new q(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new q(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new q(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new q(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new q(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(t),t.restore(),"strokeWidth"===i&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===s&&t.rotate(-r),t.translate(-n,-a)}}}class Wr extends Pt{constructor(){super(...arguments),this.type="defs"}render(){}}class Ke extends ve{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new Qt;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class mr extends Pt{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:a}=this;a.forEach(s=>{"stop"===s.type&&n.push(s)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:a}=n,s=this.getGradient(t,e);if(!s)return this.addParentOpacity(r,a[a.length-1].color);if(a.forEach(M=>{s.addColorStop(M.offset,this.addParentOpacity(r,M.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:i}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:h}=i.screen,[f]=h.viewPorts,y=new pr(i,null);y.attributes.x=new q(i,"x",-u/3),y.attributes.y=new q(i,"y",-u/3),y.attributes.width=new q(i,"width",u),y.attributes.height=new q(i,"height",u);var x=new Ke(i,null);x.attributes.transform=new q(i,"transform",this.getAttribute("gradientTransform").getValue()),x.children=[y];var d=new Ne(i,null);d.attributes.x=new q(i,"x",0),d.attributes.y=new q(i,"y",0),d.attributes.width=new q(i,"width",f.width),d.attributes.height=new q(i,"height",f.height),d.children=[x];var C=i.createCanvas(f.width,f.height),R=C.getContext("2d");return R.fillStyle=s,d.render(R),R.createPattern(C,"no-repeat")}return s}inheritStopContainer(t){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}addParentOpacity(t,e){return t.hasValue()?new q(this.document,"color",e).addOpacity(t).getColor():e}}class $r extends mr{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):null;if(r&&!n)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 a=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),s=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),i=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return a===i&&s===u?null:t.createLinearGradient(a,s,i,u)}}class Qr extends mr{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);if(r&&!n)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 a=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),s=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),i=a,u=s;this.getAttribute("fx").hasValue()&&(i=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var h=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),f=this.getAttribute("fr").getPixels();return t.createRadialGradient(i,u,f,a,s,h)}}class Zr extends Pt{constructor(t,e,r){super(t,e,r),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),a=this.getStyle("stop-opacity"),s=this.getStyle("stop-color",!0);""===s.getString()&&s.setValue("#000"),a.hasValue()&&(s=s.addOpacity(a)),this.offset=n,this.color=s.getColor()}}class Je extends Pt{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 q(t,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:n}=this.getProgress(),a=r.getNumber()+(n.getNumber()-r.getNumber())*e;return"%"===t&&(a*=100),"".concat(a).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 n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var a=!1;if(this.begin<this.duration){var s=this.calcValue(),i=this.getAttribute("type");if(i.hasValue()){var u=i.getString();s="".concat(u,"(").concat(s,")")}r.setValue(s),a=!0}return a}getProgress(){var{document:t,values:e}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var n=r.progress*(e.getValue().length-1),a=Math.floor(n),s=Math.ceil(n);r.from=new q(t,"from",parseFloat(e.getValue()[a])),r.to=new q(t,"to",parseFloat(e.getValue()[s])),r.progress=(n-a)/(s-a)}else r.from=this.from,r.to=this.to;return r}}class Kr extends Je{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),n=new D(e.getColor()),a=new D(r.getColor());if(n.ok&&a.ok){var i=n.g+(a.g-n.g)*t,u=n.b+(a.b-n.b)*t;return"rgb(".concat(Math.floor(n.r+(a.r-n.r)*t),", ").concat(Math.floor(i),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}}class Jr extends Je{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),n=Mt(e.getString()),a=Mt(r.getString());return n.map((i,u)=>i+(a[u]-i)*t).join(" ")}}class qr extends Pt{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=t,{children:a}=this;for(var s of a)switch(s.type){case"font-face":this.fontFace=s;var i=s.getStyle("font-family");i.hasValue()&&(n[i.getString()]=this);break;case"missing-glyph":this.missingGlyph=s;break;case"glyph":var u=s;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[u.unicode]&&(this.glyphs[u.unicode]={}),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u}}render(){}}class _r extends Pt{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 tn extends pt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class en extends ie{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class rn extends ie{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:n}=e,a=n[0],s=n.length>0&&Array.from(n).every(i=>3===i.nodeType);this.hasText=s,this.text=s?this.getTextFromNode(a):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:n}=this,{mouse:a}=e.screen,s=new q(e,"fontSize",Ee.parse(e.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new Qt(r,n-s.getPixels("y"),r+this.measureText(t),n))}else if(this.children.length>0){var i=new Ke(this.document,null);i.children=this.children,i.parent=this,i.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function nn(l,t){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),e.push.apply(e,r)}return e}function qe(l){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(e),!0).forEach(function(r){S(l,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(e)):nn(Object(e)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(e,r))})}return l}class an extends ie{constructor(t,e,r){super(t,e,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(t){var{dataArray:e}=this;t&&t.beginPath(),e.forEach(r=>{var{type:n,points:a}=r;switch(n){case at.LINE_TO:t&&t.lineTo(a[0],a[1]);break;case at.MOVE_TO:t&&t.moveTo(a[0],a[1]);break;case at.CURVE_TO:t&&t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case at.QUAD_TO:t&&t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case at.ARC:var[s,i,u,h,f,y,x,d]=a,C=u>h?u:h,R=u>h?1:u/h,M=u>h?h/u:1;t&&(t.translate(s,i),t.rotate(x),t.scale(R,M),t.arc(0,0,C,f,f+y,Boolean(1-d)),t.scale(1/R,1/M),t.rotate(-x),t.translate(-s,-i));break;case at.CLOSE_PATH:t&&t.closePath()}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:n}=this,a=t.fillStyle;"underline"===e&&t.beginPath(),n.forEach((s,i)=>{var{p0:u,p1:h,rotation:f,text:y}=s;t.save(),t.translate(u.x,u.y),t.rotate(f),t.fillStyle&&t.fillText(y,0,0),t.strokeStyle&&t.strokeText(y,0,0),t.restore(),"underline"===e&&(0===i&&t.moveTo(u.x,u.y+r/8),t.lineTo(h.x,h.y+r/5))}),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=a,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){return this.letterSpacingCache[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0]||0}findSegmentToFitChar(t,e,r,n,a,s,i,u,h){var f=s,y=this.measureText(t,u);" "===u&&"justify"===e&&r<n&&(y+=(n-r)/a),h>-1&&(f+=this.getLetterSpacingAt(h));var x=this.textHeight/20,d=this.getEquidistantPointOnPath(f,x,0),C=this.getEquidistantPointOnPath(f+y,x,0),R={p0:d,p1:C},M=d&&C?Math.atan2(C.y-d.y,C.x-d.x):0;if(i){var V=Math.cos(Math.PI/2+M)*i,K=Math.cos(-M)*i;R.p0=qe(qe({},d),{},{x:d.x+V,y:d.y+K}),R.p1=qe(qe({},C),{},{x:C.x+V,y:C.y+K})}return{offset:f+=y,segment:R,rotation:M}}measureText(t,e){var{measuresCache:r}=this,n=e||this.getText();if(r.has(n))return r.get(n);var a=this.measureTargetText(t,n);return r.set(n,a),a}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),n=e.split(" ").length-1,a=this.parent.getAttribute("dx").split().map(B=>B.getPixels("x")),s=this.parent.getAttribute("dy").getPixels("y"),i=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),h=this.parent.getStyle("letter-spacing"),f=0;u.hasValue()&&"inherit"!==u.getValue()?u.hasValue()&&"initial"!==u.getValue()&&"unset"!==u.getValue()&&(f=u.getPixels()):f=h.getPixels();var y=[],x=e.length;this.letterSpacingCache=y;for(var d=0;d<x;d++)y.push(void 0!==a[d]?a[d]:f);var C=y.reduce((B,et,it)=>0===it?0:B+et||0,0),R=this.measureText(t),M=Math.max(R+C,0);this.textWidth=R,this.textHeight=this.getFontSize(),this.glyphInfo=[];var V=this.getPathLength(),K=this.getStyle("startOffset").getNumber(0)*V,U=0;("middle"===i||"center"===i)&&(U=-M/2),("end"===i||"right"===i)&&(U=-M),U+=K,r.forEach((B,et)=>{var{offset:it,segment:$,rotation:ut}=this.findSegmentToFitChar(t,i,M,V,n,U,s,B,et);U=it,$.p0&&$.p1&&this.glyphInfo.push({text:r[et],p0:$.p0,p1:$.p1,rotation:ut})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:n}=r,a=n?n.x:0,s=n?n.y:0,i=r.next(),u=i.type,h=[];switch(i.type){case at.MOVE_TO:this.pathM(r,h);break;case at.LINE_TO:u=this.pathL(r,h);break;case at.HORIZ_LINE_TO:u=this.pathH(r,h);break;case at.VERT_LINE_TO:u=this.pathV(r,h);break;case at.CURVE_TO:this.pathC(r,h);break;case at.SMOOTH_CURVE_TO:u=this.pathS(r,h);break;case at.QUAD_TO:this.pathQ(r,h);break;case at.SMOOTH_QUAD_TO:u=this.pathT(r,h);break;case at.ARC:h=this.pathA(r);break;case at.CLOSE_PATH:pt.pathZ(r)}e.push(i.type!==at.CLOSE_PATH?{type:u,points:h,start:{x:a,y:s},pathLength:this.calcLength(a,s,u,h)}:{type:at.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:n}=pt.pathM(t).point;e.push(r,n)}pathL(t,e){var{x:r,y:n}=pt.pathL(t).point;return e.push(r,n),at.LINE_TO}pathH(t,e){var{x:r,y:n}=pt.pathH(t).point;return e.push(r,n),at.LINE_TO}pathV(t,e){var{x:r,y:n}=pt.pathV(t).point;return e.push(r,n),at.LINE_TO}pathC(t,e){var{point:r,controlPoint:n,currentPoint:a}=pt.pathC(t);e.push(r.x,r.y,n.x,n.y,a.x,a.y)}pathS(t,e){var{point:r,controlPoint:n,currentPoint:a}=pt.pathS(t);return e.push(r.x,r.y,n.x,n.y,a.x,a.y),at.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:n}=pt.pathQ(t);e.push(r.x,r.y,n.x,n.y)}pathT(t,e){var{controlPoint:r,currentPoint:n}=pt.pathT(t);return e.push(r.x,r.y,n.x,n.y),at.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:n,xAxisRotation:a,centp:s,a1:i,ad:u}=pt.pathA(t);return 0===n&&u>0&&(u-=2*Math.PI),1===n&&u<0&&(u+=2*Math.PI),[s.x,s.y,e,r,i,u,a,n]}calcLength(t,e,r,n){var a=0,s=null,i=null,u=0;switch(r){case at.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case at.CURVE_TO:for(a=0,s=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),u=.01;u<=1;u+=.01)i=this.getPointOnCubicBezier(u,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),a+=this.getLineLength(s.x,s.y,i.x,i.y),s=i;return a;case at.QUAD_TO:for(a=0,s=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),u=.01;u<=1;u+=.01)i=this.getPointOnQuadraticBezier(u,t,e,n[0],n[1],n[2],n[3]),a+=this.getLineLength(s.x,s.y,i.x,i.y),s=i;return a;case at.ARC:a=0;var h=n[4],f=n[5],y=n[4]+f,x=Math.PI/180;if(Math.abs(h-y)<x&&(x=Math.abs(h-y)),s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],h,0),f<0)for(u=h-x;u>y;u-=x)i=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),a+=this.getLineLength(s.x,s.y,i.x,i.y),s=i;else for(u=h+x;u<y;u+=x)i=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),a+=this.getLineLength(s.x,s.y,i.x,i.y),s=i;return i=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],y,0),a+this.getLineLength(s.x,s.y,i.x,i.y)}return 0}getPointOnLine(t,e,r,n,a){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,u=(a-r)/(n-e+rt),h=Math.sqrt(t*t/(1+u*u));n<e&&(h*=-1);var f=u*h,y=null;if(n===e)y={x:s,y:i+f};else if((i-r)/(s-e+rt)===u)y={x:s+h,y:i+f};else{var x,d,C=this.getLineLength(e,r,n,a);if(C<rt)return null;var R=(s-e)*(n-e)+(i-r)*(a-r),M=this.getLineLength(s,i,x=e+(R/=C*C)*(n-e),d=r+R*(a-r)),V=Math.sqrt(t*t-M*M);h=Math.sqrt(V*V/(1+u*u)),n<e&&(h*=-1),y={x:x+h,y:d+(f=u*h)}}return y}getPointOnPath(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||t-5e-5>e)return null;var{dataArray:a}=this;for(var s of a){if(!s||!(s.pathLength<5e-5||r+s.pathLength+5e-5<t)){var i=t-r,u=0;switch(s.type){case at.LINE_TO:n=this.getPointOnLine(i,s.start.x,s.start.y,s.points[0],s.points[1],s.start.x,s.start.y);break;case at.ARC:var f=s.points[5],y=s.points[4]+f;if(u=s.points[4]+i/s.pathLength*f,f<0&&u<y||f>=0&&u>y)break;n=this.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],u,s.points[6]);break;case at.CURVE_TO:(u=i/s.pathLength)>1&&(u=1),n=this.getPointOnCubicBezier(u,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3],s.points[4],s.points[5]);break;case at.QUAD_TO:(u=i/s.pathLength)>1&&(u=1),n=this.getPointOnQuadraticBezier(u,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3])}if(n)return n;break}r+=s.pathLength}return null}getLineLength(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,n,a,s,i,u,h){return{x:u*Kt(t)+s*Jt(t)+n*te(t)+e*kt(t),y:h*Kt(t)+i*Jt(t)+a*te(t)+r*kt(t)}}getPointOnQuadraticBezier(t,e,r,n,a,s,i){return{x:s*$t(t)+n*fe(t)+e*ae(t),y:i*$t(t)+a*fe(t)+r*ae(t)}}getPointOnEllipticalArc(t,e,r,n,a,s){var i=Math.cos(s),u=Math.sin(s),h_x=r*Math.cos(a),h_y=n*Math.sin(a);return{x:t+(h_x*i-h_y*u),y:e+(h_x*u+h_y*i)}}buildEquidistantCache(t,e){var r=this.getPathLength(),n=e||.25,a=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==a||this.equidistantCache.precision!==n){this.equidistantCache={step:a,precision:n,points:[]};for(var s=0,i=0;i<=r;i+=n){var u=this.getPointOnPath(i),h=this.getPointOnPath(i+n);!u||!h||(s+=this.getLineLength(u.x,u.y,h.x,h.y))>=a&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:i}),s-=a)}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}var Dn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class sn extends ve{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var a=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);t.images.push(this),a?this.loadSvg(n):this.loadImage(n),this.isSvg=a}}loadImage(t){var e=this;return(0,v.Z)(function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(n){console.error('Error while loading image "'.concat(t,'":'),n)}e.loaded=!0})()}loadSvg(t){var e=this;return(0,v.Z)(function*(){var r=Dn.exec(t);if(r){var n=r[5];e.image="base64"===r[4]?atob(n):decodeURIComponent(n)}else try{var a=yield e.document.fetch(t),s=yield a.text();e.image=s}catch(i){console.error('Error while loading image "'.concat(t,'":'),i)}e.loaded=!0})()}renderChildren(t){var{document:e,image:r,loaded:n}=this,a=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),i=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(n&&r&&i&&u){if(t.save(),t.translate(a,s),this.isSvg){var h=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:i,scaleHeight:u});h.document.documentElement.parent=this,h.render()}else{var f=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i,desiredWidth:f.width,height:u,desiredHeight:f.height}),this.loaded&&(void 0===f.complete||f.complete)&&t.drawImage(f,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Qt(t,e,t+r,e+n)}}class on extends ve{constructor(){super(...arguments),this.type="symbol"}render(t){}}class un{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return(0,v.Z)(function*(){try{var{document:n}=r,s=(yield n.canvg.parser.load(e)).getElementsByTagName("font");Array.from(s).forEach(i=>{var u=n.createElement(i);n.definitions[t]=u})}catch(i){console.error('Error while loading font "'.concat(e,'":'),i)}r.loaded=!0})()}}let ln=(()=>{class l extends Pt{constructor(e,r,n){super(e,r,n),this.type="style",_t(Array.from(r.childNodes).map(i=>i.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(i=>{var u=i.trim();if(u){var h=u.split("{"),f=h[0].split(","),y=h[1].split(";");f.forEach(x=>{var d=x.trim();if(d){var C=e.styles[d]||{};if(y.forEach(V=>{var K=V.indexOf(":"),U=V.substr(0,K).trim(),B=V.substr(K+1,V.length-K).trim();U&&B&&(C[U]=new q(e,U,B))}),e.styles[d]=C,e.stylesSpecificity[d]=nt(d),"@font-face"===d){var R=C["font-family"].getString().replace(/"|'/g,"");C.src.getString().split(",").forEach(V=>{if(V.indexOf('format("svg")')>0){var K=be(V);K&&new un(e).load(R,K)}})}}})}})}}return l.parseExternalUrl=be,l})();class hn extends ve{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 n=r;if("symbol"===r.type&&((n=new Ne(e,null)).attributes.viewBox=new q(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new q(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new q(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new q(e,"opacity",this.calculateOpacity())),"svg"===n.type){var a=this.getStyle("width",!1,!0),s=this.getStyle("height",!1,!0);a.hasValue()&&(n.attributes.width=new q(e,"width",a.getString())),s.hasValue()&&(n.attributes.height=new q(e,"height",s.getString()))}var i=n.parent;n.parent=this,n.render(t),n.parent=i}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return Ze.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function _e(l,t,e,r,n,a){return l[e*r*4+4*t+a]}function tr(l,t,e,r,n,a,s){l[e*r*4+4*t+a]=s}function It(l,t,e){return l[t]*e}function se(l,t,e,r){return t+Math.cos(l)*e+Math.sin(l)*r}class xr extends Pt{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var n=Mt(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var a=n[0];n=[.213+.787*a,.715-.715*a,.072-.072*a,0,0,.213-.213*a,.715+.285*a,.072-.072*a,0,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var s=n[0]*Math.PI/180;n=[se(s,.213,.787,-.213),se(s,.715,-.715,-.715),se(s,.072,-.072,.928),0,0,se(s,.213,-.213,.143),se(s,.715,.285,.14),se(s,.072,-.072,-.283),0,0,se(s,.213,-.213,-.787),se(s,.715,-.715,.715),se(s,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,n,a){for(var{includeOpacity:s,matrix:i}=this,u=t.getImageData(0,0,n,a),h=0;h<a;h++)for(var f=0;f<n;f++){var y=_e(u.data,f,h,n,0,0),x=_e(u.data,f,h,n,0,1),d=_e(u.data,f,h,n,0,2),C=_e(u.data,f,h,n,0,3),R=It(i,0,y)+It(i,1,x)+It(i,2,d)+It(i,3,C)+It(i,4,1),M=It(i,5,y)+It(i,6,x)+It(i,7,d)+It(i,8,C)+It(i,9,1),V=It(i,10,y)+It(i,11,x)+It(i,12,d)+It(i,13,C)+It(i,14,1),K=It(i,15,y)+It(i,16,x)+It(i,17,d)+It(i,18,C)+It(i,19,1);s&&(R=0,M=0,V=0,K*=C/255),tr(u.data,f,h,n,0,0,R),tr(u.data,f,h,n,0,1,M),tr(u.data,f,h,n,0,2,V),tr(u.data,f,h,n,0,3,K)}t.clearRect(0,0,n,a),t.putImageData(u,0,0)}}let fn=(()=>{class l extends Pt{constructor(){super(...arguments),this.type="mask"}apply(e,r){var{document:n}=this,a=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),i=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!i&&!u){var h=new Qt;this.children.forEach(R=>{h.addBoundingBox(R.getBoundingBox(e))}),a=Math.floor(h.x1),s=Math.floor(h.y1),i=Math.floor(h.width),u=Math.floor(h.height)}var f=this.removeStyles(r,l.ignoreStyles),y=n.createCanvas(a+i,s+u),x=y.getContext("2d");n.screen.setDefaults(x),this.renderChildren(x),new xr(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(x,0,0,a+i,s+u);var d=n.createCanvas(a+i,s+u),C=d.getContext("2d");n.screen.setDefaults(C),r.render(C),C.globalCompositeOperation="destination-in",C.fillStyle=x.createPattern(y,"no-repeat"),C.fillRect(0,0,a+i,s+u),e.fillStyle=C.createPattern(d,"no-repeat"),e.fillRect(0,0,a+i,s+u),this.restoreStyles(r,f)}render(e){}}return l.ignoreStyles=["mask","transform","clip-path"],l})();var vn=()=>{};class cn extends Pt{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:n,closePath:a}=t;r&&(r.beginPath=vn,r.closePath=vn),Reflect.apply(n,t,[]),this.children.forEach(s=>{if(void 0!==s.path){var i=void 0!==s.elementTransform?s.elementTransform():null;i||(i=Ze.fromElement(e,s)),i&&i.apply(t),s.path(t),r&&(r.closePath=a),i&&i.unapply(t)}}),Reflect.apply(a,t,[]),t.clip(),r&&(r.beginPath=n,r.closePath=a)}render(t){}}let gn=(()=>{class l extends Pt{constructor(){super(...arguments),this.type="filter"}apply(e,r){var{document:n,children:a}=this,s=r.getBoundingBox(e);if(s){var i=0,u=0;a.forEach(K=>{var U=K.extraFilterDistance||0;i=Math.max(i,U),u=Math.max(u,U)});var h=Math.floor(s.width),f=Math.floor(s.height),y=h+2*i,x=f+2*u;if(!(y<1||x<1)){var d=Math.floor(s.x),C=Math.floor(s.y),R=this.removeStyles(r,l.ignoreStyles),M=n.createCanvas(y,x),V=M.getContext("2d");n.screen.setDefaults(V),V.translate(-d+i,-C+u),r.render(V),a.forEach(K=>{"function"==typeof K.apply&&K.apply(V,0,0,y,x)}),e.drawImage(M,0,0,y,x,d-i,C-u,y,x),this.restoreStyles(r,R)}}}render(e){}}return l.ignoreStyles=["filter","transform","clip-path"],l})();class dn extends Pt{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,n,a){}}class pn extends Pt{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,n,a){}}class yn extends Pt{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,n,a){}}class mn extends Pt{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,n,a){var{document:s,blurRadius:i}=this,u=s.window?s.window.document.body:null,h=t.canvas;h.id=s.getUniqueId(),u&&(h.style.display="none",u.appendChild(h)),Ge(h,e,r,n,a,i),u&&u.removeChild(h)}}class xn extends Pt{constructor(){super(...arguments),this.type="title"}}class bn extends Pt{constructor(){super(...arguments),this.type="desc"}}var Bn={svg:Ne,rect:pr,circle:kr,ellipse:zr,line:Hr,polyline:yr,polygon:Gr,path:pt,pattern:Yr,marker:Xr,defs:Wr,linearGradient:$r,radialGradient:Qr,stop:Zr,animate:Je,animateColor:Kr,animateTransform:Jr,font:qr,"font-face":_r,"missing-glyph":tn,glyph:dr,text:ie,tspan:ze,tref:en,a:rn,textPath:an,image:sn,g:Ke,symbol:on,style:ln,use:hn,mask:fn,clipPath:cn,filter:gn,feDropShadow:dn,feMorphology:pn,feComposite:yn,feColorMatrix:xr,feGaussianBlur:mn,title:xn,desc:bn};function En(l,t){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),e.push.apply(e,r)}return e}function Un(l,t){var e=document.createElement("canvas");return e.width=l,e.height=t,e}function jn(l){return br.apply(this,arguments)}function br(){return br=(0,v.Z)(function*(l){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=document.createElement("img");return t&&(e.crossOrigin="Anonymous"),new Promise((r,n)=>{e.onload=()=>{r(e)},e.onerror=(a,s,i,u,h)=>{n(h)},e.src=l})}),br.apply(this,arguments)}let Tn=(()=>{class l{constructor(e){var{rootEmSize:r=12,emSize:n=12,createCanvas:a=l.createCanvas,createImage:s=l.createImage,anonymousCrossOrigin:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=r,this.emSize=n,this.createCanvas=a,this.createImage=this.bindCreateImage(s,i),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,r){return"boolean"==typeof r?(n,a)=>e(n,"boolean"==typeof a?a:r):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:r}=this;r.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var r=this.createElement(e.documentElement);return r.root=!0,r.addStylesFromStyleDefinition(),this.documentElement=r,r}createElement(e){var r=e.nodeName.replace(/^[^:]+:/,""),n=l.elementTypes[r];return void 0!==n?new n(this,e):new jr(this,e)}createTextNode(e){return new Ln(this,e)}setViewBox(e){this.screen.setViewBox(function(l){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?En(Object(e),!0).forEach(function(r){S(l,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(e)):En(Object(e)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(e,r))})}return l}({document:this},e))}}return l.createCanvas=Un,l.createImage=jn,l.elementTypes=Bn,l})();function Sn(l,t){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(l,n).enumerable})),e.push.apply(e,r)}return e}function Te(l){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(e),!0).forEach(function(r){S(l,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(e)):Sn(Object(e)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(e,r))})}return l}class Se{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Qe(r),this.screen=new vr(t,r),this.options=r;var n=new Tn(this,r),a=n.createDocumentElement(e);this.document=n,this.documentElement=a}static from(t,e){var r=arguments;return(0,v.Z)(function*(){var n=r.length>2&&void 0!==r[2]?r[2]:{},a=new Qe(n),s=yield a.parse(e);return new Se(t,s,n)})()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=new Qe(r).parseFromString(e);return new Se(t,a,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Se.from(t,e,Te(Te({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Se.fromString(t,e,Te(Te({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return(0,v.Z)(function*(){e.start(Te({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t.length>0&&void 0!==t[0]?t[0]:{})),yield e.ready(),e.stop()})()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:n}=this;r.start(e,Te(Te({enableRedraw:!0},n),t))}stop(){this.screen.stop()}resize(t){this.documentElement.resize(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_colijnit_sharedcomponents=self.webpackChunk_colijnit_sharedcomponents||[]).push([[358],{23358:function(ht){ht.exports=function(){"use strict";function w(a){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(a)}function j(a,n){return(j=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s})(a,n)}function Et(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function Z(a,n,o){return(Z=Et()?Reflect.construct:function(c,b,y){var D=[null];D.push.apply(D,b);var X=new(Function.bind.apply(c,D));return y&&j(X,y.prototype),X}).apply(null,arguments)}function R(a){return function(a){if(Array.isArray(a))return ce(a)}(a)||function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(a)||function(a,n){if(a){if("string"==typeof a)return ce(a,n);var o=Object.prototype.toString.call(a).slice(8,-1);if("Object"===o&&a.constructor&&(o=a.constructor.name),"Map"===o||"Set"===o)return Array.from(a);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ce(a,n)}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(a,n){(null==n||n>a.length)&&(n=a.length);for(var o=0,s=new Array(n);o<n;o++)s[o]=a[o];return s}var bt=Object.hasOwnProperty,ze=Object.setPrototypeOf,Ot=Object.isFrozen,Rt=Object.getPrototypeOf,Lt=Object.getOwnPropertyDescriptor,E=Object.freeze,g=Object.seal,Mt=Object.create,Ge="undefined"!=typeof Reflect&&Reflect,J=Ge.apply,me=Ge.construct;J||(J=function(n,o,s){return n.apply(o,s)}),E||(E=function(n){return n}),g||(g=function(n){return n}),me||(me=function(n,o){return Z(n,R(o))});var a,Dt=S(Array.prototype.forEach),We=S(Array.prototype.pop),Y=S(Array.prototype.push),Q=S(String.prototype.toLowerCase),pe=S(String.prototype.toString),Be=S(String.prototype.match),L=S(String.prototype.replace),Nt=S(String.prototype.indexOf),wt=S(String.prototype.trim),_=S(RegExp.prototype.test),de=(a=TypeError,function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return me(a,o)});function S(a){return function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return J(a,n,s)}}function l(a,n,o){var s;o=null!==(s=o)&&void 0!==s?s:Q,ze&&ze(a,null);for(var c=n.length;c--;){var b=n[c];if("string"==typeof b){var y=o(b);y!==b&&(Ot(n)||(n[c]=y),b=y)}a[b]=!0}return a}function x(a){var o,n=Mt(null);for(o in a)!0===J(bt,a,[o])&&(n[o]=a[o]);return n}function ee(a,n){for(;null!==a;){var o=Lt(a,n);if(o){if(o.get)return S(o.get);if("function"==typeof o.value)return S(o.value)}a=Rt(a)}return function(c){return console.warn("fallback value for",c),null}}var $e=E(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Te=E(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_e=E(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),It=E(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ve=E(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),xt=E(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),je=E(["#text"]),Ye=E(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),he=E(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Xe=E(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),te=E(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kt=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pt=g(/<%[\w\W]*|[\w\W]*%>/gm),Ft=g(/\${[\w\W]*}/gm),Ut=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ht=g(/^aria-[\-\w]+$/),zt=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gt=g(/^(?:\w+script|data):/i),Wt=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bt=g(/^html$/i),$t=g(/^[a-z][.\w]*(-[.\w]+)+$/i),jt=function(){return"undefined"==typeof window?null:window},Yt=function(n,o){if("object"!==w(n)||"function"!=typeof n.createPolicy)return null;var s=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(s=o.currentScript.getAttribute(c));var b="dompurify"+(s?"#"+s:"");try{return n.createPolicy(b,{createHTML:function(D){return D},createScriptURL:function(D){return D}})}catch(y){return console.warn("TrustedTypes policy "+b+" could not be created."),null}};return function Ve(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jt(),n=function(e){return Ve(e)};if(n.version="2.5.8",n.removed=[],!a||!a.document||9!==a.document.nodeType)return n.isSupported=!1,n;var o=a.document,s=a.document,c=a.DocumentFragment,b=a.HTMLTemplateElement,y=a.Node,D=a.Element,k=a.NodeFilter,X=a.NamedNodeMap,Vt=void 0===X?a.NamedNodeMap||a.MozNamedAttrMap:X,qt=a.HTMLFormElement,Kt=a.DOMParser,re=a.trustedTypes,ae=D.prototype,Zt=ee(ae,"cloneNode"),Jt=ee(ae,"nextSibling"),Qt=ee(ae,"childNodes"),Ee=ee(ae,"parentNode");if("function"==typeof b){var Ae=s.createElement("template");Ae.content&&Ae.content.ownerDocument&&(s=Ae.content.ownerDocument)}var M=Yt(re,o),ye=M?M.createHTML(""):"",ge=s.implementation,er=s.createNodeIterator,tr=s.createDocumentFragment,rr=s.getElementsByTagName,ar=o.importNode,qe={};try{qe=x(s).documentMode?s.documentMode:{}}catch(i){}var N={};n.isSupported="function"==typeof Ee&&ge&&void 0!==ge.createHTMLDocument&&9!==qe;var F,T,Se=kt,be=Pt,Oe=Ft,nr=Ut,ir=Ht,or=Gt,Ke=Wt,lr=$t,Re=zt,p=null,Ze=l({},[].concat(R($e),R(Te),R(_e),R(ve),R(je))),d=null,Je=l({},[].concat(R(Ye),R(he),R(Xe),R(te))),f=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,Le=null,Qe=!0,Me=!0,et=!1,tt=!0,H=!1,De=!0,P=!1,Ne=!1,we=!1,z=!1,ie=!1,oe=!1,rt=!0,at=!1,sr="user-content-",Ce=!0,q=!1,G={},W=null,nt=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),it=null,ot=l({},["audio","video","img","source","image","track"]),Ie=null,lt=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),le="http://www.w3.org/1998/Math/MathML",se="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xhtml",B=C,xe=!1,ke=null,ur=l({},[le,se,C],pe),fr=["application/xhtml+xml","text/html"],cr="text/html",$=null,mr=s.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},Pe=function(e){$&&$===e||((!e||"object"!==w(e))&&(e={}),e=x(e),F=F=-1===fr.indexOf(e.PARSER_MEDIA_TYPE)?cr:e.PARSER_MEDIA_TYPE,T="application/xhtml+xml"===F?pe:Q,p="ALLOWED_TAGS"in e?l({},e.ALLOWED_TAGS,T):Ze,d="ALLOWED_ATTR"in e?l({},e.ALLOWED_ATTR,T):Je,ke="ALLOWED_NAMESPACES"in e?l({},e.ALLOWED_NAMESPACES,pe):ur,Ie="ADD_URI_SAFE_ATTR"in e?l(x(lt),e.ADD_URI_SAFE_ATTR,T):lt,it="ADD_DATA_URI_TAGS"in e?l(x(ot),e.ADD_DATA_URI_TAGS,T):ot,W="FORBID_CONTENTS"in e?l({},e.FORBID_CONTENTS,T):nt,V="FORBID_TAGS"in e?l({},e.FORBID_TAGS,T):{},Le="FORBID_ATTR"in e?l({},e.FORBID_ATTR,T):{},G="USE_PROFILES"in e&&e.USE_PROFILES,Qe=!1!==e.ALLOW_ARIA_ATTR,Me=!1!==e.ALLOW_DATA_ATTR,et=e.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,H=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,P=e.WHOLE_DOCUMENT||!1,z=e.RETURN_DOM||!1,ie=e.RETURN_DOM_FRAGMENT||!1,oe=e.RETURN_TRUSTED_TYPE||!1,we=e.FORCE_BODY||!1,rt=!1!==e.SANITIZE_DOM,at=e.SANITIZE_NAMED_PROPS||!1,Ce=!1!==e.KEEP_CONTENT,q=e.IN_PLACE||!1,Re=e.ALLOWED_URI_REGEXP||Re,B=e.NAMESPACE||C,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(Me=!1),ie&&(z=!0),G&&(p=l({},R(je)),d=[],!0===G.html&&(l(p,$e),l(d,Ye)),!0===G.svg&&(l(p,Te),l(d,he),l(d,te)),!0===G.svgFilters&&(l(p,_e),l(d,he),l(d,te)),!0===G.mathMl&&(l(p,ve),l(d,Xe),l(d,te))),e.ADD_TAGS&&(p===Ze&&(p=x(p)),l(p,e.ADD_TAGS,T)),e.ADD_ATTR&&(d===Je&&(d=x(d)),l(d,e.ADD_ATTR,T)),e.ADD_URI_SAFE_ATTR&&l(Ie,e.ADD_URI_SAFE_ATTR,T),e.FORBID_CONTENTS&&(W===nt&&(W=x(W)),l(W,e.FORBID_CONTENTS,T)),Ce&&(p["#text"]=!0),P&&l(p,["html","head","body"]),p.table&&(l(p,["tbody"]),delete V.tbody),E&&E(e),$=e)},ut=l({},["mi","mo","mn","ms","mtext"]),ft=l({},["annotation-xml"]),pr=l({},["title","style","font","a","script"]),ue=l({},Te);l(ue,_e),l(ue,It);var Fe=l({},ve);l(Fe,xt);var dr=function(e){var t=Ee(e);(!t||!t.tagName)&&(t={namespaceURI:B,tagName:"template"});var r=Q(e.tagName),u=Q(t.tagName);return!!ke[e.namespaceURI]&&(e.namespaceURI===se?t.namespaceURI===C?"svg"===r:t.namespaceURI===le?"svg"===r&&("annotation-xml"===u||ut[u]):Boolean(ue[r]):e.namespaceURI===le?t.namespaceURI===C?"math"===r:t.namespaceURI===se?"math"===r&&ft[u]:Boolean(Fe[r]):e.namespaceURI===C?!(t.namespaceURI===se&&!ft[u]||t.namespaceURI===le&&!ut[u])&&!Fe[r]&&(pr[r]||!ue[r]):!("application/xhtml+xml"!==F||!ke[e.namespaceURI]))},O=function(e){Y(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ye}catch(r){e.remove()}}},fe=function(e,t){try{Y(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Y(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!d[e])if(z||ie)try{O(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},ct=function(e){var t,r;if(we)e="<remove></remove>"+e;else{var u=Be(e,/^[\r\n\t ]+/);r=u&&u[0]}"application/xhtml+xml"===F&&B===C&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var A=M?M.createHTML(e):e;if(B===C)try{t=(new Kt).parseFromString(A,F)}catch(v){}if(!t||!t.documentElement){t=ge.createDocument(B,"template",null);try{t.documentElement.innerHTML=xe?ye:A}catch(v){}}var h=t.body||t.documentElement;return e&&r&&h.insertBefore(s.createTextNode(r),h.childNodes[0]||null),B===C?rr.call(t,P?"html":"body")[0]:P?t.documentElement:h},mt=function(e){return er.call(e.ownerDocument||e,e,k.SHOW_ELEMENT|k.SHOW_COMMENT|k.SHOW_TEXT|k.SHOW_PROCESSING_INSTRUCTION|k.SHOW_CDATA_SECTION,null,!1)},Ue=function(e){return e instanceof qt&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof Vt)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},K=function(e){return"object"===w(y)?e instanceof y:e&&"object"===w(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},I=function(e,t,r){!N[e]||Dt(N[e],function(u){u.call(n,t,r,$)})},pt=function(e){var t;if(I("beforeSanitizeElements",e,null),Ue(e)||_(/[\u0080-\uFFFF]/,e.nodeName))return O(e),!0;var r=T(e.nodeName);if(I("uponSanitizeElement",e,{tagName:r,allowedTags:p}),e.hasChildNodes()&&!K(e.firstElementChild)&&(!K(e.content)||!K(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent)||"select"===r&&_(/<template/i,e.innerHTML)||7===e.nodeType||De&&8===e.nodeType&&_(/<[/\w]/g,e.data))return O(e),!0;if(!p[r]||V[r]){if(!V[r]&&Tt(r)&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,r)||f.tagNameCheck instanceof Function&&f.tagNameCheck(r)))return!1;if(Ce&&!W[r]){var u=Ee(e)||e.parentNode,A=Qt(e)||e.childNodes;if(A&&u)for(var v=A.length-1;v>=0;--v){var U=Zt(A[v],!0);U.__removalCount=(e.__removalCount||0)+1,u.insertBefore(U,Jt(e))}}return O(e),!0}return e instanceof D&&!dr(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&_(/<\/no(script|embed|frames)/i,e.innerHTML)?(O(e),!0):(H&&3===e.nodeType&&(t=L(t=e.textContent,Se," "),t=L(t,be," "),t=L(t,Oe," "),e.textContent!==t&&(Y(n.removed,{element:e.cloneNode()}),e.textContent=t)),I("afterSanitizeElements",e,null),!1)},dt=function(e,t,r){if(rt&&("id"===t||"name"===t)&&(r in s||r in mr))return!1;if((!Me||Le[t]||!_(nr,t))&&(!Qe||!_(ir,t)))if(!d[t]||Le[t]){if(!(Tt(e)&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&_(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||"is"===t&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,r)||f.tagNameCheck instanceof Function&&f.tagNameCheck(r))))return!1}else if(!Ie[t]&&!_(Re,L(r,Ke,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Nt(r,"data:")||!it[e])&&(!et||_(or,L(r,Ke,"")))&&r)return!1;return!0},Tt=function(e){return"annotation-xml"!==e&&Be(e,lr)},_t=function(e){var t,r,u,A;I("beforeSanitizeAttributes",e,null);var h=e.attributes;if(h&&!Ue(e)){var v={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d};for(A=h.length;A--;){var m=(t=h[A]).name,He=t.namespaceURI;if(r="value"===m?t.value:wt(t.value),u=T(m),v.attrName=u,v.attrValue=r,v.keepAttr=!0,v.forceKeepAttr=void 0,I("uponSanitizeAttribute",e,v),r=v.attrValue,!v.forceKeepAttr&&(fe(m,e),v.keepAttr)){if(!tt&&_(/\/>/i,r)){fe(m,e);continue}H&&(r=L(r,Se," "),r=L(r,be," "),r=L(r,Oe," "));var vt=T(e.nodeName);if(dt(vt,u,r)){if(at&&("id"===u||"name"===u)&&(fe(m,e),r=sr+r),De&&_(/((--!?|])>)|<\/(style|title)/i,r)){fe(m,e);continue}if(M&&"object"===w(re)&&"function"==typeof re.getAttributeType&&!He)switch(re.getAttributeType(vt,u)){case"TrustedHTML":r=M.createHTML(r);break;case"TrustedScriptURL":r=M.createScriptURL(r)}try{He?e.setAttributeNS(He,m,r):e.setAttribute(m,r),Ue(e)?O(e):We(n.removed)}catch(_r){}}}}I("afterSanitizeAttributes",e,null)}},Tr=function i(e){var t,r=mt(e);for(I("beforeSanitizeShadowDOM",e,null);t=r.nextNode();)I("uponSanitizeShadowNode",t,null),pt(t),_t(t),t.content instanceof c&&i(t.content);I("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(i){var t,r,u,A,h,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((xe=!i)&&(i="\x3c!--\x3e"),"string"!=typeof i&&!K(i)){if("function"!=typeof i.toString)throw de("toString is not a function");if("string"!=typeof(i=i.toString()))throw de("dirty is not a string, aborting")}if(!n.isSupported){if("object"===w(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof i)return a.toStaticHTML(i);if(K(i))return a.toStaticHTML(i.outerHTML)}return i}if(Ne||Pe(e),n.removed=[],"string"==typeof i&&(q=!1),q){if(i.nodeName){var v=T(i.nodeName);if(!p[v]||V[v])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof y)1===(r=(t=ct("\x3c!----\x3e")).ownerDocument.importNode(i,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?t=r:t.appendChild(r);else{if(!z&&!H&&!P&&-1===i.indexOf("<"))return M&&oe?M.createHTML(i):i;if(!(t=ct(i)))return z?null:oe?ye:""}t&&we&&O(t.firstChild);for(var U=mt(q?i:t);u=U.nextNode();)3===u.nodeType&&u===A||(pt(u),_t(u),u.content instanceof c&&Tr(u.content),A=u);if(A=null,q)return i;if(z){if(ie)for(h=tr.call(t.ownerDocument);t.firstChild;)h.appendChild(t.firstChild);else h=t;return(d.shadowroot||d.shadowrootmod)&&(h=ar.call(o,h,!0)),h}var m=P?t.outerHTML:t.innerHTML;return P&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&_(Bt,t.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+m),H&&(m=L(m,Se," "),m=L(m,be," "),m=L(m,Oe," ")),M&&oe?M.createHTML(m):m},n.setConfig=function(i){Pe(i),Ne=!0},n.clearConfig=function(){$=null,Ne=!1},n.isValidAttribute=function(i,e,t){$||Pe({});var r=T(i),u=T(e);return dt(r,u,t)},n.addHook=function(i,e){"function"==typeof e&&(N[i]=N[i]||[],Y(N[i],e))},n.removeHook=function(i){if(N[i])return We(N[i])},n.removeHooks=function(i){N[i]&&(N[i]=[])},n.removeAllHooks=function(){N={}},n}()}()}}]);